public function __Construct()
 {
     parent::__construct();
     $this->setName('FREESHIPPINGWHENOVERX');
     $this->displayName = GetLang($this->getName() . 'displayName');
     $this->addJavascriptValidation('amount', 'int');
     $this->addActionType('freeshipping');
     $this->ruleType = 'Order';
 }
 public function __Construct()
 {
     parent::__construct();
     $this->setName('XOFFFORREPEATCUSTOMERS');
     $this->displayName = GetLang($this->getName() . 'displayName');
     $this->addJavascriptValidation('orders', 'int');
     $this->addJavascriptValidation('amount', 'int');
     $this->addActionType('orderdiscount');
     $this->ruleType = 'Order';
 }
 public function __Construct()
 {
     parent::__construct();
     $this->setName('XAMOUNTOFFWHENXORMORE');
     $this->displayName = GetLang($this->getName() . 'displayName');
     $this->addJavascriptValidation('amount', 'int');
     $this->addJavascriptValidation('amount_off', 'int');
     $this->addActionType('orderdiscount');
     $this->ruleType = 'Order';
 }
Ejemplo n.º 4
0
 public function __Construct()
 {
     parent::__construct();
     $this->setName('BUYXGETX');
     $this->displayName = GetLang($this->getName() . 'displayName');
     $this->addJavascriptValidation('amount', 'int');
     $this->addJavascriptValidation('amount_free', 'int');
     $this->addJavascriptValidation('ps', 'string');
     $this->addJavascriptValidation('prodids', 'string');
     $this->addActionType('freeitem');
     $this->ruleType = 'Product';
 }
 public function __Construct($amount = 0, $catids = array())
 {
     parent::__construct();
     $this->amount = $amount;
     $this->catids = $catids;
     $this->setName('PERCENTOFFITEMSINCAT');
     $this->displayName = GetLang($this->getName() . 'displayName');
     $this->addJavascriptValidation('amount', 'int', 0, 100);
     $this->addJavascriptValidation('catids', 'array');
     $this->addActionType('itemdiscount');
     $this->ruleType = 'Product';
 }
 public function __Construct($amount = 0, $prodids = array())
 {
     parent::__construct();
     $this->amount = $amount;
     $this->prodids = $prodids;
     $this->setName('BUYXGETFREESHIPPING');
     $this->displayName = GetLang($this->getName() . 'displayName');
     $this->addJavascriptValidation('amount', 'int');
     $this->addJavascriptValidation('ps', 'string');
     $this->addJavascriptValidation('prodids', 'string');
     $this->ruleType = 'Order';
 }
	public function __Construct()
	{
		parent::__construct();

		$this->setName('FREESHIPPINGWHENOVERX');

		$currency = GetDefaultCurrency();
		if ($currency['currencystringposition'] == "LEFT") {
			$x = $currency['currencystring'] . "X";
		}
		else {
			$x = "X" . $currency['currencystring'];
		}
		$this->displayName = sprintf(GetLang($this->getName().'displayName'), $x);

		$this->addJavascriptValidation('amount', 'int');
		$this->addActionType('freeshipping');

		$this->ruleType = 'Order';
	}
	public function __Construct()
	{
		parent::__construct();

		$this->setName('XOFFFORREPEATCUSTOMERS');

		$currency = GetDefaultCurrency();
		if ($currency['currencystringposition'] == "LEFT") {
			$x = $currency['currencystring'] . "X";
		}
		else {
			$x = "X" . $currency['currencystring'];
		}
		$this->displayName = sprintf(GetLang($this->getName().'displayName'), $x);

		$this->addJavascriptValidation('orders', 'int');
		$this->addJavascriptValidation('amount', 'int');

		$this->addActionType('orderdiscount');
		$this->ruleType = 'Order';
	}
	public function __Construct()
	{
		parent::__construct();

		$this->setName('XAMOUNTOFFWHENXORMORE');

		$currency = GetDefaultCurrency();
		if ($currency['currencystringposition'] == "LEFT") {
			$x = $currency['currencystring'] . "X";
			$y = $currency['currencystring'] . "Y";
		}
		else {
			$x = "X" . $currency['currencystring'];
			$y = "Y" . $currency['currencystring'];
		}
		$this->displayName = sprintf(GetLang($this->getName().'displayName'), $x, $y);

		$this->addJavascriptValidation('amount', 'int');
		$this->addJavascriptValidation('amount_off', 'int');

		$this->addActionType('orderdiscount');
		$this->ruleType = 'Order';
	}