Browsed by
Author: Matthias Walter

Magento1 since 2008 / Magento2 since 2015 Passionate Road Bike Rider (~3.500km/yr) Loves building software with a elaborate architecture and design 3x Magento Certified Software Developer >10 years Head of Magento Development @ netz98
Creating Configurable Products

Creating Configurable Products

Basically there are different ways for creating Configurable Products in Magento2 (like in Magento1). You can create it using the Admin Panel, using a Setup\InstallData or Setup\UpgradeData class or during a custom import. ADDING THE ATTRIBUTE Let’s assume we are creating our attribute using the Setup\UpgradeData class in our module. The code we might initially create could look something like the following: protected function addAttributeDiameter() { $this->eavSetup->addAttribute( ProductModel::ENTITY, ‘dev98_diameter’, [ ‘type’ => ‘int’, ‘backend’ => ”, ‘frontend’ => ”, ‘label’ =>…

Read More Read More