예제 #1
0
 public function getNewChildSelectOptions()
 {
     $conditions = array(array('label' => Mage::helper('M2ePro')->__('Conditions Combination'), 'value' => $this->getConditionCombine()));
     $customAttribute = $this->getCustomOptionsAttributes();
     if ($this->_useCustomOptions && !empty($customAttribute)) {
         $conditions[] = array('label' => $this->getCustomLabel(), 'value' => $this->getCustomOptions());
     }
     $conditions[] = array('label' => Mage::helper('M2ePro')->__('Product Attribute'), 'value' => $this->getProductOptions());
     return array_merge_recursive(parent::getNewChildSelectOptions(), $conditions);
 }
예제 #2
0
 public function getNewChildSelectOptions()
 {
     $productAttributes = Mage::getModel('M2ePro/Magento_Product_Rule_Condition_Product')->getAttributeOption();
     $attributes = array();
     foreach ($productAttributes as $code => $label) {
         $attributes[] = array('value' => 'M2ePro/Magento_Product_Rule_Condition_Product|' . $code, 'label' => $label);
     }
     $conditions = parent::getNewChildSelectOptions();
     $conditions = array_merge_recursive($conditions, array(array('value' => 'M2ePro/Magento_Product_Rule_Condition_Combine', 'label' => Mage::helper('M2ePro')->__('Conditions Combination')), array('label' => Mage::helper('M2ePro')->__('Product Attribute'), 'value' => $attributes)));
     return $conditions;
 }