Beispiel #1
0
 public function box()
 {
     $this->references['types_menu'] = menuoptions(ShoppScreenDiscountEditor::types(), $this->references['Promotion']->type, true);
     parent::box();
 }
Beispiel #2
0
?>
,
	TARGET_LANG = <?php 
ShoppScreenDiscountEditor::targets();
?>
,
	RULES_LANG = <?php 
ShoppScreenDiscountEditor::rules();
?>
,
	conditions = <?php 
ShoppScreenDiscountEditor::conditions();
?>
,
	logic = <?php 
ShoppScreenDiscountEditor::logic();
?>
,

	Conditional = function (type,settings,location) {
		var target = $('#promotion-target').val(),
			row = false, i = false;

		if (!type) type = 'condition';

		if (type == "cartitem") {
			i = itemidx;
			if (!location) row = $('<tr />').appendTo('#cartitem');
			else row = $('<tr></tr>').insertAfter(location);
		} else {
			i = ruleidx;