예제 #1
0
 /**
  * Construct
  *
  * @param array $defaultConfig
  * @param array $defaultData
  */
 public function __construct(array $defaultConfig = array(), array $defaultData = array())
 {
     parent::__construct($defaultConfig, $defaultData);
     $this->_data[self::CONFIGURABLE]['data']['affect_configurable_product_attributes'] = 'Template %isolation%';
     $this->_data[self::CONFIGURABLE_ADVANCED_PRICING] = $this->getConfigurableAdvancedPricing();
     $this->_data[self::CONFIGURABLE_MAP] = $this->addMapToConfigurable($this->_data[self::CONFIGURABLE]);
     $this->_data[self::PRODUCT_VARIATIONS] = array('config' => $defaultConfig, 'data' => $this->buildProductVariations($defaultData));
     $this->_data['edit_configurable'] = $this->editConfigurable();
 }
예제 #2
0
 /**
  * {inheritdoc}
  */
 public function __construct(array $defaultConfig = [], array $defaultData = [])
 {
     parent::__construct($defaultConfig, $defaultData);
     $this->_data[self::ADVANCED_INVENTORY] = $this->getSimpleAdvancedInventory();
     $this->_data[self::NEW_CATEGORY] = ['config' => $defaultConfig, 'data' => $this->buildSimpleWithNewCategoryData($defaultData)];
     $this->_data[self::ADVANCED_PRICING] = $this->getSimpleAdvancedPricing();
     $this->_data[self::CUSTOM_OPTIONS] = $this->getSimpleCustomOption();
     $this->_data[self::SIMPLE_WITH_MAP] = $this->getSimpleAppliedMap($defaultData);
     $this->_data[self::SIMPLE_OUT_OF_STOCK] = $this->_getSimpleOutOfStock();
 }