コード例 #1
0
ファイル: Combine.php プロジェクト: bevello/bevello
 /**
  * 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'))));
 }
コード例 #2
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}storeview")->getNewChildSelectOptions(), Mage::getModel("{$prefix}attributes")->getNewChildSelectOptions()));
 }
コード例 #3
0
ファイル: Cart.php プロジェクト: bevello/bevello
 public function __construct()
 {
     parent::__construct();
     $this->setType('bronto_reminder/rule_condition_cart');
     $this->setValue(null);
 }
コード例 #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'))));
 }
コード例 #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;
 }
コード例 #6
0
ファイル: Subselection.php プロジェクト: bevello/bevello
 /**
  * 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;
 }