/**
  * Add buy_x_get_y to the sales_rule_options
  *
  * @author Mohamed Meabed <*****@*****.**>
  *
  * @return $this
  */
 public function loadAttributeOptions()
 {
     $salesRule = parent::loadAttributeOptions();
     $originalAttributes = $salesRule->getAttributeOption();
     $attributes = array('buy_x_get_y' => Mage::helper('web_rules')->__('Buy X get Y from Category')) + $originalAttributes;
     $this->setAttributeOption($attributes);
     return $this;
 }
Example #2
0
 public function loadAttributeOptions()
 {
     parent::loadAttributeOptions();
     $attributes = $this->getAttributeOption();
     unset($attributes['shipping_method']);
     $attributes['street'] = Mage::helper('salesrule')->__('Address Line');
     $this->setAttributeOption($attributes);
     return $this;
 }
Example #3
0
 public function loadAttributeOptions()
 {
     /*$attributes = array(
           'base_subtotal_inc_tax' => Mage::helper('autoadd')->__('Subtotal (Incl. Tax)'),
           'base_subtotal' => Mage::helper('autoadd')->__('Subtotal'),
           'total_qty' => Mage::helper('autoadd')->__('Total Items Quantity'),
           'weight' => Mage::helper('autoadd')->__('Total Weight'),
           'payment_method' => Mage::helper('autoadd')->__('Payment Method'),
           'shipping_method' => Mage::helper('autoadd')->__('Shipping Method'),
           'postcode' => Mage::helper('autoadd')->__('Shipping Postcode'),
           'region' => Mage::helper('autoadd')->__('Shipping Region'),
           'region_id' => Mage::helper('autoadd')->__('Shipping State/Province'),
           'country_id' => Mage::helper('autoadd')->__('Shipping Country'),
       );*/
     $temp = parent::loadAttributeOptions();
     $attributes = $temp->getAttributeOption();
     $attributes = array('base_subtotal_inc_tax' => Mage::helper('rewardpoints')->__('Subtotal (Incl. Tax)')) + $attributes;
     $this->setAttributeOption($attributes);
     return $this;
 }