?> , 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;