PageRenderTime 30ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/prestashop/_/cache/smarty/compile/57/96/87/57968774dad30046502d1520fa458aca95144eb9.file.actions.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 235 lines | 215 code | 20 blank | 0 comment | 22 complexity | 08d7537c5f4e5a632be7591e7b1f2ff9 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:06:34
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\admin\themes\default\template\controllers\cart_rules\actions.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:2051457c495ca2d89b0-98011019%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '57968774dad30046502d1520fa458aca95144eb9' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\admin\\themes\\default\\template\\controllers\\cart_rules\\actions.tpl',
  10. 1 => 1472500718,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '2051457c495ca2d89b0-98011019',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'currentObject' => 0,
  21. 'currentTab' => 0,
  22. 'currencies' => 0,
  23. 'currency' => 0,
  24. 'defaultCurrency' => 0,
  25. 'product_rule_groups' => 0,
  26. 'reductionProductFilter' => 0,
  27. 'giftProductFilter' => 0,
  28. 'gift_product_select' => 0,
  29. 'hasAttribute' => 0,
  30. 'gift_product_attribute_select' => 0,
  31. ),
  32. 'has_nocache_code' => false,
  33. 'version' => 'Smarty-3.1.19',
  34. 'unifunc' => 'content_57c495ca636ba5_78698737',
  35. ),false); /*/%%SmartyHeaderCode%%*/?>
  36. <?php if ($_valid && !is_callable('content_57c495ca636ba5_78698737')) {function content_57c495ca636ba5_78698737($_smarty_tpl) {?><div class="form-group">
  37. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Free shipping'),$_smarty_tpl);?>
  38. </label>
  39. <div class="col-lg-9">
  40. <span class="switch prestashop-switch fixed-width-lg">
  41. <input type="radio" name="free_shipping" id="free_shipping_on" value="1" <?php if (intval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'free_shipping'))) {?>checked="checked"<?php }?> />
  42. <label class="t" for="free_shipping_on">
  43. <?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
  44. </label>
  45. <input type="radio" name="free_shipping" id="free_shipping_off" value="0" <?php if (!intval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'free_shipping'))) {?>checked="checked"<?php }?> />
  46. <label class="t" for="free_shipping_off">
  47. <?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
  48. </label>
  49. <a class="slide-button btn"></a>
  50. </span>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Apply a discount'),$_smarty_tpl);?>
  55. </label>
  56. <div class="col-lg-9">
  57. <div class="radio">
  58. <label for="apply_discount_percent">
  59. <input type="radio" name="apply_discount" id="apply_discount_percent" value="percent" <?php if (floatval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_percent'))>0) {?>checked="checked"<?php }?> />
  60. <?php echo smartyTranslate(array('s'=>'Percent (%)'),$_smarty_tpl);?>
  61. </label>
  62. </div>
  63. <div class="radio">
  64. <label for="apply_discount_amount">
  65. <input type="radio" name="apply_discount" id="apply_discount_amount" value="amount" <?php if (floatval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_amount'))>0) {?>checked="checked"<?php }?> />
  66. <?php echo smartyTranslate(array('s'=>'Amount'),$_smarty_tpl);?>
  67. </label>
  68. </div>
  69. <div class="radio">
  70. <label for="apply_discount_off">
  71. <input type="radio" name="apply_discount" id="apply_discount_off" value="off" <?php if (!floatval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_amount'))>0&&!floatval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_percent'))>0) {?>checked="checked"<?php }?> />
  72. <i class="icon-remove color_danger"></i> <?php echo smartyTranslate(array('s'=>'None'),$_smarty_tpl);?>
  73. </label>
  74. </div>
  75. </div>
  76. </div>
  77. <div id="apply_discount_percent_div" class="form-group">
  78. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Value'),$_smarty_tpl);?>
  79. </label>
  80. <div class="col-lg-9">
  81. <div class="input-group col-lg-2">
  82. <span class="input-group-addon">%</span>
  83. <input type="text" id="reduction_percent" class="input-mini" name="reduction_percent" value="<?php echo floatval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_percent'));?>
  84. " />
  85. </div>
  86. <span class="help-block"><i class="icon-warning-sign"></i> <?php echo smartyTranslate(array('s'=>'Does not apply to the shipping costs'),$_smarty_tpl);?>
  87. </span>
  88. </div>
  89. </div>
  90. <div id="apply_discount_amount_div" class="form-group">
  91. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Amount'),$_smarty_tpl);?>
  92. </label>
  93. <div class="col-lg-7">
  94. <div class="row">
  95. <div class="col-lg-4">
  96. <input type="text" id="reduction_amount" name="reduction_amount" value="<?php echo floatval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_amount'));?>
  97. " onchange="this.value = this.value.replace(/,/g, '.');" />
  98. </div>
  99. <div class="col-lg-4">
  100. <select name="reduction_currency" >
  101. <?php $_smarty_tpl->tpl_vars['currency'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['currency']->_loop = false;
  102. $_from = $_smarty_tpl->tpl_vars['currencies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  103. foreach ($_from as $_smarty_tpl->tpl_vars['currency']->key => $_smarty_tpl->tpl_vars['currency']->value) {
  104. $_smarty_tpl->tpl_vars['currency']->_loop = true;
  105. ?>
  106. <option value="<?php echo intval($_smarty_tpl->tpl_vars['currency']->value['id_currency']);?>
  107. " <?php if ($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_currency')==$_smarty_tpl->tpl_vars['currency']->value['id_currency']||(!$_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_currency')&&$_smarty_tpl->tpl_vars['currency']->value['id_currency']==$_smarty_tpl->tpl_vars['defaultCurrency']->value)) {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['currency']->value['iso_code'];?>
  108. </option>
  109. <?php } ?>
  110. </select>
  111. </div>
  112. <div class="col-lg-4">
  113. <select name="reduction_tax" >
  114. <option value="0" <?php if ($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_tax')==0) {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Tax excluded'),$_smarty_tpl);?>
  115. </option>
  116. <option value="1" <?php if ($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_tax')==1) {?>selected="selected"<?php }?>><?php echo smartyTranslate(array('s'=>'Tax included'),$_smarty_tpl);?>
  117. </option>
  118. </select>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <div id="apply_discount_to_div" class="form-group">
  124. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Apply a discount to'),$_smarty_tpl);?>
  125. </label>
  126. <div class="col-lg-7">
  127. <p class="radio">
  128. <label for="apply_discount_to_order">
  129. <input type="radio" name="apply_discount_to" id="apply_discount_to_order" value="order"<?php if (intval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_product'))==0) {?> checked="checked"<?php }?> />
  130. <?php echo smartyTranslate(array('s'=>'Order (without shipping)'),$_smarty_tpl);?>
  131. </label>
  132. </p>
  133. <p class="radio">
  134. <label for="apply_discount_to_product">
  135. <input type="radio" name="apply_discount_to" id="apply_discount_to_product" value="specific"<?php if (intval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_product'))>0) {?> checked="checked"<?php }?> />
  136. <?php echo smartyTranslate(array('s'=>'Specific product'),$_smarty_tpl);?>
  137. </label>
  138. </p>
  139. <p class="radio">
  140. <label for="apply_discount_to_cheapest">
  141. <input type="radio" name="apply_discount_to" id="apply_discount_to_cheapest" value="cheapest"<?php if (intval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_product'))==-1) {?> checked="checked"<?php }?> />
  142. <?php echo smartyTranslate(array('s'=>'Cheapest product'),$_smarty_tpl);?>
  143. </label>
  144. </p>
  145. <p class="radio">
  146. <label for="apply_discount_to_selection">
  147. <input type="radio" name="apply_discount_to" id="apply_discount_to_selection" value="selection"<?php if (intval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_product'))==-2) {?> checked="checked"<?php }?><?php if (count($_smarty_tpl->tpl_vars['product_rule_groups']->value)==0) {?>disabled="disabled"<?php }?> />
  148. <?php echo smartyTranslate(array('s'=>'Selected product(s)'),$_smarty_tpl);?>
  149. <?php if (count($_smarty_tpl->tpl_vars['product_rule_groups']->value)==0) {?>&nbsp;<span id="apply_discount_to_selection_warning" class="text-muted clearfix"><i class="icon-warning-sign"></i> <a href="#" id="apply_discount_to_selection_shortcut"><?php echo smartyTranslate(array('s'=>'You must select some products before'),$_smarty_tpl);?>
  150. </a></span><?php }?>
  151. </label>
  152. </p>
  153. </div>
  154. </div>
  155. <div id="apply_discount_to_product_div" class="form-group">
  156. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Product'),$_smarty_tpl);?>
  157. </label>
  158. <div class="col-lg-9">
  159. <div class="input-group col-lg-5">
  160. <input type="text" id="reductionProductFilter" name="reductionProductFilter" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['reductionProductFilter']->value, ENT_QUOTES, 'UTF-8', true);?>
  161. " />
  162. <input type="hidden" id="reduction_product" name="reduction_product" value="<?php echo intval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'reduction_product'));?>
  163. " />
  164. <span class="input-group-addon"><i class="icon-search"></i></span>
  165. </div>
  166. </div>
  167. </div>
  168. <div class="form-group">
  169. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Send a free gift'),$_smarty_tpl);?>
  170. </label>
  171. <div class="col-lg-9">
  172. <span class="switch prestashop-switch fixed-width-lg">
  173. <input type="radio" name="free_gift" id="free_gift_on" value="1" <?php if (intval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'gift_product'))) {?>checked="checked"<?php }?> />
  174. <label class="t" for="free_gift_on">
  175. <?php echo smartyTranslate(array('s'=>'Yes'),$_smarty_tpl);?>
  176. </label>
  177. <input type="radio" name="free_gift" id="free_gift_off" value="0" <?php if (!intval($_smarty_tpl->tpl_vars['currentTab']->value->getFieldValue($_smarty_tpl->tpl_vars['currentObject']->value,'gift_product'))) {?>checked="checked"<?php }?> />
  178. <label class="t" for="free_gift_off">
  179. <?php echo smartyTranslate(array('s'=>'No'),$_smarty_tpl);?>
  180. </label>
  181. <a class="slide-button btn"></a>
  182. </span>
  183. </div>
  184. </div>
  185. <div id="free_gift_div" class="form-group">
  186. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Search a product'),$_smarty_tpl);?>
  187. </label>
  188. <div class="col-lg-9">
  189. <div class="input-group col-lg-5">
  190. <input type="text" id="giftProductFilter" value="<?php echo $_smarty_tpl->tpl_vars['giftProductFilter']->value;?>
  191. " />
  192. <span class="input-group-addon"><i class="icon-search"></i></span>
  193. </div>
  194. </div>
  195. </div>
  196. <div id="gift_products_found" <?php if ($_smarty_tpl->tpl_vars['gift_product_select']->value=='') {?>style="display:none"<?php }?>>
  197. <div id="gift_product_list" class="form-group">
  198. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Matching products'),$_smarty_tpl);?>
  199. </label>
  200. <div class="col-lg-5">
  201. <select name="gift_product" id="gift_product" onclick="displayProductAttributes();" class="control-form">
  202. <?php echo $_smarty_tpl->tpl_vars['gift_product_select']->value;?>
  203. </select>
  204. </div>
  205. </div>
  206. <div id="gift_attributes_list" class="form-group" <?php if (!$_smarty_tpl->tpl_vars['hasAttribute']->value) {?>style="display:none"<?php }?>>
  207. <label class="control-label col-lg-3"><?php echo smartyTranslate(array('s'=>'Available combinations'),$_smarty_tpl);?>
  208. </label>
  209. <div class="col-lg-5" id="gift_attributes_list_select">
  210. <?php echo $_smarty_tpl->tpl_vars['gift_product_attribute_select']->value;?>
  211. </div>
  212. </div>
  213. </div>
  214. <div id="gift_products_err" class="alert alert-warning" style="display:none"></div>
  215. <?php }} ?>