Author Archives: Utsav Thakur

How to create configuration sets in shopware 5 ?

To create configuration sets in shopware 5 follow the below steps: Step 1: Go to shopware theme directory of your website. Step 2: Open Theme.php file to add the configuration set. Step 3: Add below code in Theme.php use Doctrine\Common\Collections\ArrayCollection; use Shopware\Components\Theme\ConfigSet; public function createConfigSets(ArrayCollection $collection) { $set = new ConfigSet(); $set->setName(‘Red theme’); $set->setDescription(‘Set all […]

How to Discard JavaScript and CSS from other Themes in shopware 5?

To discard JavaScript and CSS from other themes in shopware 5 follow the below steps: Step 1: Go to your theme your directory in shopware 5 setup. Step 2: Open Theme.php file to discard the js and css. Step 3: Add below code in Theme.php file. protected $discardedLessThemes = [\Shopware\Themes\Responsive\Theme::class]; //for CSS protected $discardedJavascriptThemes = […]

How to create a new shopping world element in shopware 5?

How To Create A New Shopping World Element In Shopware 5

To create new shopping world element in shopware 5 follow the following steps. Step 1: Create a new sub-directory in plugin directory. File Structure custom>plugins>ShoppingWorldElement Note:- ShoppingWorldElement is a new plugin in which we edit this directory to create new shopping world element. Step 2: Create ShoppingWorldElement.php in ShoppingWorldElement directory. Step 3: Write this code […]