PageRenderTime 53ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 1ms

/prestashop/_/cache/smarty/compile/85/ae/58/85ae5825f0ecc116df7cd025321b82c10742acf0.file.order-address-product-line.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 154 lines | 153 code | 1 blank | 0 comment | 28 complexity | 84b5a4414b3d8d71d8b1bca643410f68 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:07:01
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\themes\default-bootstrap\order-address-product-line.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:993257c495e51a39d2-70439195%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '85ae5825f0ecc116df7cd025321b82c10742acf0' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\themes\\default-bootstrap\\order-address-product-line.tpl',
  10. 1 => 1472500917,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '993257c495e51a39d2-70439195',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'product' => 0,
  21. 'productLast' => 0,
  22. 'productFirst' => 0,
  23. 'productId' => 0,
  24. 'productAttributeId' => 0,
  25. 'customizedDatas' => 0,
  26. 'quantityDisplayed' => 0,
  27. 'odd' => 0,
  28. 'link' => 0,
  29. 'smallSize' => 0,
  30. 'cannotModify' => 0,
  31. 'token_cart' => 0,
  32. 'delivery' => 0,
  33. 'address_list' => 0,
  34. 'address' => 0,
  35. ),
  36. 'has_nocache_code' => false,
  37. 'version' => 'Smarty-3.1.19',
  38. 'unifunc' => 'content_57c495e5b71b09_42080471',
  39. ),false); /*/%%SmartyHeaderCode%%*/?>
  40. <?php if ($_valid && !is_callable('content_57c495e5b71b09_42080471')) {function content_57c495e5b71b09_42080471($_smarty_tpl) {?>
  41. <tr id="product_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  42. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  43. _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
  44. " class="<?php if ($_smarty_tpl->tpl_vars['productLast']->value) {?>last_item<?php } elseif ($_smarty_tpl->tpl_vars['productFirst']->value) {?>first_item<?php }?> <?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])&&$_smarty_tpl->tpl_vars['quantityDisplayed']->value==0) {?>alternate_item<?php }?> cart_item <?php if ($_smarty_tpl->tpl_vars['odd']->value) {?>odd<?php } else { ?>even<?php }?>">
  45. <td class="cart_product">
  46. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category']), ENT_QUOTES, 'UTF-8', true);?>
  47. "><img src="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['id_image'],'small_default'), ENT_QUOTES, 'UTF-8', true);?>
  48. " alt="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
  49. " <?php if (isset($_smarty_tpl->tpl_vars['smallSize']->value)) {?>width="<?php echo $_smarty_tpl->tpl_vars['smallSize']->value['width'];?>
  50. " height="<?php echo $_smarty_tpl->tpl_vars['smallSize']->value['height'];?>
  51. " <?php }?> /></a>
  52. </td>
  53. <td class="cart_description">
  54. <p class="product-name"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category']), ENT_QUOTES, 'UTF-8', true);?>
  55. "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
  56. </a></p>
  57. <?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes'])&&$_smarty_tpl->tpl_vars['product']->value['attributes']) {?><small><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getProductLink($_smarty_tpl->tpl_vars['product']->value['id_product'],$_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['category']), ENT_QUOTES, 'UTF-8', true);?>
  58. "><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['attributes'], ENT_QUOTES, 'UTF-8', true);?>
  59. </a></small><?php }?>
  60. </td>
  61. <td class="cart_ref"><?php if ($_smarty_tpl->tpl_vars['product']->value['reference']) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['reference'], ENT_QUOTES, 'UTF-8', true);?>
  62. <?php } else { ?>--<?php }?></td>
  63. <td class="cart_avail"><?php if ($_smarty_tpl->tpl_vars['product']->value['stock_quantity']>0) {?><span class="label label-success"><?php echo smartyTranslate(array('s'=>'In Stock'),$_smarty_tpl);?>
  64. </span><?php } else { ?><span class="label label-warning"><?php echo smartyTranslate(array('s'=>'Out of Stock'),$_smarty_tpl);?>
  65. </span><?php }?></td>
  66. <td class="cart_quantity <?php if (isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])&&$_smarty_tpl->tpl_vars['quantityDisplayed']->value==0) {?> text-center <?php }?>">
  67. <?php if (isset($_smarty_tpl->tpl_vars['cannotModify']->value)&&$_smarty_tpl->tpl_vars['cannotModify']->value==1) {?>
  68. <span><?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value==0&&isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) {?><?php echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]);?>
  69. <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value;?>
  70. <?php }?></span>
  71. <?php } else { ?>
  72. <?php if (!isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])||$_smarty_tpl->tpl_vars['quantityDisplayed']->value>0) {?>
  73. <input type="hidden" value="<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value==0&&isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) {?><?php echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]);?>
  74. <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value;?>
  75. <?php }?>" name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  76. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  77. _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
  78. _hidden" />
  79. <input size="2" type="text" class="cart_quantity_input form-control grey" value="<?php if ($_smarty_tpl->tpl_vars['quantityDisplayed']->value==0&&isset($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value])) {?><?php echo count($_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value]);?>
  80. <?php } else { ?><?php echo $_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value;?>
  81. <?php }?>" name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  82. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  83. _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
  84. " />
  85. <div class="cart_quantity_button">
  86. <?php if ($_smarty_tpl->tpl_vars['product']->value['minimal_quantity']<($_smarty_tpl->tpl_vars['product']->value['cart_quantity']-$_smarty_tpl->tpl_vars['quantityDisplayed']->value)||$_smarty_tpl->tpl_vars['product']->value['minimal_quantity']<=1) {?>
  87. <a rel="nofollow" class="cart_quantity_down btn btn-default button-minus" id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  88. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  89. _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
  90. " href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
  91. <?php $_tmp19=ob_get_clean();?><?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);?>
  92. <?php $_tmp20=ob_get_clean();?><?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
  93. <?php $_tmp21=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart',true,null,"add=1&amp;id_product=".$_tmp19."&amp;ipa=".$_tmp20."&amp;id_address_delivery=".$_tmp21."&amp;op=down&amp;token=".((string)$_smarty_tpl->tpl_vars['token_cart']->value)), ENT_QUOTES, 'UTF-8', true);?>
  94. " title="<?php echo smartyTranslate(array('s'=>'Subtract'),$_smarty_tpl);?>
  95. "><span><i class="icon-minus"></i></span></a>
  96. <?php } else { ?>
  97. <a class="cart_quantity_down btn btn-default button-minus disabled" href="#" id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  98. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  99. _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
  100. " title="<?php echo smartyTranslate(array('s'=>'You must purchase a minimum of %d of this product.','sprintf'=>$_smarty_tpl->tpl_vars['product']->value['minimal_quantity']),$_smarty_tpl);?>
  101. "><span><i class="icon-minus"></i></span></a>
  102. <?php }?>
  103. <a rel="nofollow" class="cart_quantity_up btn btn-default button-plus" id="cart_quantity_up_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  104. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  105. _0_<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
  106. " href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
  107. <?php $_tmp22=ob_get_clean();?><?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);?>
  108. <?php $_tmp23=ob_get_clean();?><?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
  109. <?php $_tmp24=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart',true,null,"add=1&amp;id_product=".$_tmp22."&amp;ipa=".$_tmp23."&amp;id_address_delivery=".$_tmp24."&amp;token=".((string)$_smarty_tpl->tpl_vars['token_cart']->value)), ENT_QUOTES, 'UTF-8', true);?>
  110. " title="<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
  111. "><span><i class="icon-plus"></i></span></a>
  112. </div>
  113. <?php }?>
  114. <?php }?>
  115. </td>
  116. <td>
  117. <form method="post" action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('cart',true,null,"token=".((string)$_smarty_tpl->tpl_vars['token_cart']->value)), ENT_QUOTES, 'UTF-8', true);?>
  118. ">
  119. <div class="selector2">
  120. <input type="hidden" name="id_product" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  121. " />
  122. <input type="hidden" name="id_product_attribute" value="<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  123. " />
  124. <select name="address_delivery" id="select_address_delivery_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  125. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  126. _<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']);?>
  127. " class="cart_address_delivery form-control">
  128. <?php if ($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']==0&&$_smarty_tpl->tpl_vars['delivery']->value->id==0) {?>
  129. <option></option>
  130. <?php }?>
  131. <option value="-1"><?php echo smartyTranslate(array('s'=>'Create a new address'),$_smarty_tpl);?>
  132. </option>
  133. <?php $_smarty_tpl->tpl_vars['address'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['address']->_loop = false;
  134. $_from = $_smarty_tpl->tpl_vars['address_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  135. foreach ($_from as $_smarty_tpl->tpl_vars['address']->key => $_smarty_tpl->tpl_vars['address']->value) {
  136. $_smarty_tpl->tpl_vars['address']->_loop = true;
  137. ?>
  138. <option value="<?php echo $_smarty_tpl->tpl_vars['address']->value['id_address'];?>
  139. "
  140. <?php if (($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']>0&&$_smarty_tpl->tpl_vars['product']->value['id_address_delivery']==$_smarty_tpl->tpl_vars['address']->value['id_address'])||($_smarty_tpl->tpl_vars['product']->value['id_address_delivery']==0&&$_smarty_tpl->tpl_vars['address']->value['id_address']==$_smarty_tpl->tpl_vars['delivery']->value->id)) {?>
  141. selected="selected"
  142. <?php }?>
  143. >
  144. <?php echo $_smarty_tpl->tpl_vars['address']->value['alias'];?>
  145. </option>
  146. <?php } ?>
  147. <option value="-2"><?php echo smartyTranslate(array('s'=>'Ship to multiple addresses'),$_smarty_tpl);?>
  148. </option>
  149. </select>
  150. </div>
  151. </form>
  152. </td>
  153. </tr><?php }} ?>