Exemplo n.º 1
0
 /**
  * Get inherited conditions selectors
  *
  * @return array
  */
 public function getNewChildSelectOptions()
 {
     $prefix = 'bronto_reminder/rule_condition_wishlist_';
     return array_merge_recursive(parent::getNewChildSelectOptions(), array($this->_getRecursiveChildSelectOption(), Mage::getModel("{$prefix}sharing")->getNewChildSelectOptions(), Mage::getModel("{$prefix}quantity")->getNewChildSelectOptions(), array('value' => 'bronto_reminder/rule_condition_wishlist_subselection', 'label' => Mage::helper('bronto_reminder')->__('Items Subselection'))));
 }
 /**
  * Get inherited conditions selectors
  *
  * @return array
  */
 public function getNewChildSelectOptions()
 {
     $prefix = 'bronto_reminder/rule_condition_wishlist_';
     return array_merge_recursive(parent::getNewChildSelectOptions(), array($this->_getRecursiveChildSelectOption(), Mage::getModel("{$prefix}storeview")->getNewChildSelectOptions(), Mage::getModel("{$prefix}attributes")->getNewChildSelectOptions()));
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->setType('bronto_reminder/rule_condition_cart');
     $this->setValue(null);
 }
Exemplo n.º 4
0
 /**
  * Get inherited conditions selectors
  *
  * @return array
  */
 public function getNewChildSelectOptions()
 {
     $prefix = 'bronto_reminder/rule_condition_cart_';
     return array_merge_recursive(parent::getNewChildSelectOptions(), array($this->_getRecursiveChildSelectOption(), Mage::getModel("{$prefix}couponcode")->getNewChildSelectOptions(), Mage::getModel("{$prefix}itemsquantity")->getNewChildSelectOptions(), Mage::getModel("{$prefix}totalquantity")->getNewChildSelectOptions(), Mage::getModel("{$prefix}virtual")->getNewChildSelectOptions(), Mage::getModel("{$prefix}amount")->getNewChildSelectOptions(), array('value' => 'bronto_reminder/rule_condition_cart_subselection', 'label' => Mage::helper('bronto_reminder')->__('Items Subselection'))));
 }
Exemplo n.º 5
0
 /**
  * Get inherited conditions selectors
  *
  * @return array
  */
 public function getNewChildSelectOptions()
 {
     $conditions = array(array('value' => 'bronto_reminder/rule_condition_wishlist', 'label' => Mage::helper('bronto_reminder')->__('Wishlist')), array('value' => 'bronto_reminder/rule_condition_cart', 'label' => Mage::helper('bronto_reminder')->__('Shopping Cart')));
     $conditions = array_merge_recursive(parent::getNewChildSelectOptions(), $conditions);
     return $conditions;
 }
Exemplo n.º 6
0
 /**
  * Prepare operator select options
  *
  * @return Bronto_Reminder_Model_Rule_Condition_Cart_Subselection
  */
 public function loadOperatorOptions()
 {
     parent::loadOperatorOptions();
     $this->setOperatorOption(array('==' => Mage::helper('bronto_reminder')->__('found'), '!=' => Mage::helper('bronto_reminder')->__('not found')));
     return $this;
 }