PageRenderTime 59ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/smarty/compile/0a22dc7d7629a2f640b06e6a624fbd7293096d7e.file.shopping-cart.tpl.php

http://marocmall.googlecode.com/
PHP | 576 lines | 561 code | 13 blank | 2 comment | 92 complexity | 878b3f3bb299d7c98fd232ec71d7ec97 MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php /* Smarty version Smarty-3.0.7, created on 2011-12-29 10:47:08
  2. compiled from "C:\D\prestashoplf\prestashop/themes/ling/shopping-cart.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:119344efc452ca07f87-85153754%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '0a22dc7d7629a2f640b06e6a624fbd7293096d7e' =>
  8. array (
  9. 0 => 'C:\\D\\prestashoplf\\prestashop/themes/ling/shopping-cart.tpl',
  10. 1 => 1309335596,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '119344efc452ca07f87-85153754',
  15. 'function' =>
  16. array (
  17. ),
  18. 'has_nocache_code' => false,
  19. )); /*/%%SmartyHeaderCode%%*/?>
  20. <?php if (!is_callable('smarty_modifier_escape')) include 'C:\D\prestashoplf\prestashop\tools\smarty\plugins\modifier.escape.php';
  21. ?><?php ob_start(); ?><?php echo smartyTranslate(array('s'=>'Your shopping cart'),$_smarty_tpl);?>
  22. <?php Smarty::$_smarty_vars['capture']['path']=ob_get_clean();?>
  23. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  24. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  25. <h1 id="cart_title"><?php echo smartyTranslate(array('s'=>'Shopping cart summary'),$_smarty_tpl);?>
  26. </h1>
  27. <?php $_smarty_tpl->tpl_vars['current_step'] = new Smarty_variable('summary', null, null);?>
  28. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./order-steps.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  29. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  30. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./errors.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  31. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  32. <?php if (isset($_smarty_tpl->getVariable('empty',null,true,false)->value)){?>
  33. <p class="warning"><?php echo smartyTranslate(array('s'=>'Your shopping cart is empty.'),$_smarty_tpl);?>
  34. </p>
  35. <?php }elseif($_smarty_tpl->getVariable('PS_CATALOG_MODE')->value){?>
  36. <p class="warning"><?php echo smartyTranslate(array('s'=>'This store has not accepted your new order.'),$_smarty_tpl);?>
  37. </p>
  38. <?php }else{ ?>
  39. <script type="text/javascript">
  40. // <![CDATA[
  41. var baseDir = '<?php echo $_smarty_tpl->getVariable('base_dir_ssl')->value;?>
  42. ';
  43. var currencySign = '<?php echo html_entity_decode($_smarty_tpl->getVariable('currencySign')->value,2,"UTF-8");?>
  44. ';
  45. var currencyRate = '<?php echo floatval($_smarty_tpl->getVariable('currencyRate')->value);?>
  46. ';
  47. var currencyFormat = '<?php echo intval($_smarty_tpl->getVariable('currencyFormat')->value);?>
  48. ';
  49. var currencyBlank = '<?php echo intval($_smarty_tpl->getVariable('currencyBlank')->value);?>
  50. ';
  51. var txtProduct = "<?php echo smartyTranslate(array('s'=>'product'),$_smarty_tpl);?>
  52. ";
  53. var txtProducts = "<?php echo smartyTranslate(array('s'=>'products'),$_smarty_tpl);?>
  54. ";
  55. // ]]>
  56. </script>
  57. <p style="display:none" id="emptyCartWarning" class="warning"><?php echo smartyTranslate(array('s'=>'Your shopping cart is empty.'),$_smarty_tpl);?>
  58. </p>
  59. <?php if (isset($_smarty_tpl->getVariable('lastProductAdded',null,true,false)->value)&&$_smarty_tpl->getVariable('lastProductAdded')->value){?>
  60. <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable;
  61. $_from = $_smarty_tpl->getVariable('products')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  62. if ($_smarty_tpl->_count($_from) > 0){
  63. foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
  64. ?>
  65. <?php if ($_smarty_tpl->tpl_vars['product']->value['id_product']==$_smarty_tpl->getVariable('lastProductAdded')->value['id_product']&&(!$_smarty_tpl->tpl_vars['product']->value['id_product_attribute']||($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']==$_smarty_tpl->getVariable('lastProductAdded')->value['id_product_attribute']))){?>
  66. <table class="cart_last_product std">
  67. <tr>
  68. <th colspan="2"><?php echo smartyTranslate(array('s'=>'Last added product'),$_smarty_tpl);?>
  69. </th>
  70. </tr>
  71. <tr>
  72. <td class="cart_product"><a class="cart_last_product_img" href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('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']),'htmlall','UTF-8');?>
  73. "><img src="<?php echo $_smarty_tpl->getVariable('link')->value->getImageLink($_smarty_tpl->tpl_vars['product']->value['link_rewrite'],$_smarty_tpl->tpl_vars['product']->value['id_image'],'small');?>
  74. " alt="<?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'],'htmlall','UTF-8');?>
  75. "/></a></td>
  76. <td>
  77. <h5><a class="product_link" href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('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']),'htmlall','UTF-8');?>
  78. "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['name'],'htmlall','UTF-8');?>
  79. </a></h5>
  80. <?php if (isset($_smarty_tpl->tpl_vars['product']->value['attributes'])&&$_smarty_tpl->tpl_vars['product']->value['attributes']){?><a class="product_descr" href="<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('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']),'htmlall','UTF-8');?>
  81. "><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['product']->value['attributes'],'htmlall','UTF-8');?>
  82. </a><?php }?>
  83. </td>
  84. </tr>
  85. </table>
  86. <?php }?>
  87. <?php }} ?>
  88. <?php }?>
  89. <p><?php echo smartyTranslate(array('s'=>'Your shopping cart contains'),$_smarty_tpl);?>
  90. <span id="summary_products_quantity"><?php echo $_smarty_tpl->getVariable('productNumber')->value;?>
  91. <?php if ($_smarty_tpl->getVariable('productNumber')->value==1){?><?php echo smartyTranslate(array('s'=>'product'),$_smarty_tpl);?>
  92. <?php }else{ ?><?php echo smartyTranslate(array('s'=>'products'),$_smarty_tpl);?>
  93. <?php }?></span></p>
  94. <div id="order-detail-content" class="table_block">
  95. <table id="cart_summary" class="std">
  96. <thead>
  97. <tr>
  98. <th class="cart_product first_item"><?php echo smartyTranslate(array('s'=>'Product'),$_smarty_tpl);?>
  99. </th>
  100. <th class="cart_description item"><?php echo smartyTranslate(array('s'=>'Description'),$_smarty_tpl);?>
  101. </th>
  102. <th class="cart_ref item"><?php echo smartyTranslate(array('s'=>'Ref.'),$_smarty_tpl);?>
  103. </th>
  104. <th class="cart_availability item"><?php echo smartyTranslate(array('s'=>'Avail.'),$_smarty_tpl);?>
  105. </th>
  106. <th class="cart_unit item"><?php echo smartyTranslate(array('s'=>'Unit price'),$_smarty_tpl);?>
  107. </th>
  108. <th class="cart_quantity item"><?php echo smartyTranslate(array('s'=>'Qty'),$_smarty_tpl);?>
  109. </th>
  110. <th class="cart_total last_item"><?php echo smartyTranslate(array('s'=>'Total'),$_smarty_tpl);?>
  111. </th>
  112. </tr>
  113. </thead>
  114. <tfoot>
  115. <?php if ($_smarty_tpl->getVariable('use_taxes')->value){?>
  116. <?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?>
  117. <tr class="cart_total_price">
  118. <td colspan="6"><?php echo smartyTranslate(array('s'=>'Total products'),$_smarty_tpl);?>
  119. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
  120. <?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  121. </td>
  122. <td class="price" id="total_product"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_products')->value),$_smarty_tpl);?>
  123. </span></td>
  124. </tr>
  125. <?php }else{ ?>
  126. <tr class="cart_total_price">
  127. <td colspan="6"><?php echo smartyTranslate(array('s'=>'Total products'),$_smarty_tpl);?>
  128. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>
  129. <?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  130. </td>
  131. <td class="price" id="total_product"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_products_wt')->value),$_smarty_tpl);?>
  132. </span></td>
  133. </tr>
  134. <?php }?>
  135. <?php }else{ ?>
  136. <tr class="cart_total_price">
  137. <td colspan="6"><?php echo smartyTranslate(array('s'=>'Total products:'),$_smarty_tpl);?>
  138. </td>
  139. <td class="price" id="total_product"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_products')->value),$_smarty_tpl);?>
  140. </span></td>
  141. </tr>
  142. <?php }?>
  143. <tr class="cart_total_voucher" <?php if ($_smarty_tpl->getVariable('total_discounts')->value==0){?>style="display: none;"<?php }?>>
  144. <td colspan="6">
  145. <?php if ($_smarty_tpl->getVariable('use_taxes')->value){?>
  146. <?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?>
  147. <?php echo smartyTranslate(array('s'=>'Total vouchers'),$_smarty_tpl);?>
  148. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
  149. <?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  150. <?php }else{ ?>
  151. <?php echo smartyTranslate(array('s'=>'Total vouchers'),$_smarty_tpl);?>
  152. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>
  153. <?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  154. <?php }?>
  155. <?php }else{ ?>
  156. <?php echo smartyTranslate(array('s'=>'Total vouchers:'),$_smarty_tpl);?>
  157. <?php }?>
  158. </td>
  159. <td class="price-discount" id="total_discount">
  160. <span class="price"><?php if ($_smarty_tpl->getVariable('use_taxes')->value){?><?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_discounts_tax_exc')->value),$_smarty_tpl);?>
  161. <?php }else{ ?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_discounts')->value),$_smarty_tpl);?>
  162. <?php }?><?php }else{ ?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_discounts_tax_exc')->value),$_smarty_tpl);?>
  163. <?php }?></span>
  164. </td>
  165. </tr>
  166. <tr class="cart_total_voucher" <?php if ($_smarty_tpl->getVariable('total_wrapping')->value==0){?>style="display: none;"<?php }?>>
  167. <td colspan="6">
  168. <?php if ($_smarty_tpl->getVariable('use_taxes')->value){?>
  169. <?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?>
  170. <?php echo smartyTranslate(array('s'=>'Total gift-wrapping'),$_smarty_tpl);?>
  171. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
  172. <?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  173. <?php }else{ ?>
  174. <?php echo smartyTranslate(array('s'=>'Total gift-wrapping'),$_smarty_tpl);?>
  175. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>
  176. <?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  177. <?php }?>
  178. <?php }else{ ?>
  179. <?php echo smartyTranslate(array('s'=>'Total gift-wrapping:'),$_smarty_tpl);?>
  180. <?php }?>
  181. </td>
  182. <td class="price-discount" id="total_wrapping">
  183. <span class="price"><?php if ($_smarty_tpl->getVariable('use_taxes')->value){?><?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_wrapping_tax_exc')->value),$_smarty_tpl);?>
  184. <?php }else{ ?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_wrapping')->value),$_smarty_tpl);?>
  185. <?php }?><?php }else{ ?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_wrapping_tax_exc')->value),$_smarty_tpl);?>
  186. <?php }?></span>
  187. </td>
  188. </tr>
  189. <?php if ($_smarty_tpl->getVariable('use_taxes')->value){?>
  190. <?php if ($_smarty_tpl->getVariable('priceDisplay')->value){?>
  191. <tr class="cart_total_delivery" <?php if ($_smarty_tpl->getVariable('shippingCost')->value<=0){?> style="display:none;"<?php }?>>
  192. <td colspan="6"><?php echo smartyTranslate(array('s'=>'Total shipping'),$_smarty_tpl);?>
  193. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax excl.)'),$_smarty_tpl);?>
  194. <?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  195. </td>
  196. <td class="price" id="total_shipping"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('shippingCostTaxExc')->value),$_smarty_tpl);?>
  197. </span></td>
  198. </tr>
  199. <?php }else{ ?>
  200. <tr class="cart_total_delivery"<?php if ($_smarty_tpl->getVariable('shippingCost')->value<=0){?> style="display:none;"<?php }?>>
  201. <td colspan="6"><?php echo smartyTranslate(array('s'=>'Total shipping'),$_smarty_tpl);?>
  202. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?> <?php echo smartyTranslate(array('s'=>'(tax incl.)'),$_smarty_tpl);?>
  203. <?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  204. </td>
  205. <td class="price" id="total_shipping" ><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('shippingCost')->value),$_smarty_tpl);?>
  206. </span></td>
  207. </tr>
  208. <?php }?>
  209. <?php }else{ ?>
  210. <tr class="cart_total_delivery"<?php if ($_smarty_tpl->getVariable('shippingCost')->value<=0){?> style="display:none;"<?php }?>>
  211. <td colspan="6"><?php echo smartyTranslate(array('s'=>'Total shipping:'),$_smarty_tpl);?>
  212. </td>
  213. <td class="price" id="total_shipping" ><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('shippingCostTaxExc')->value),$_smarty_tpl);?>
  214. </span></td>
  215. </tr>
  216. <?php }?>
  217. <?php if ($_smarty_tpl->getVariable('use_taxes')->value){?>
  218. <tr class="cart_total_price">
  219. <td colspan="6">
  220. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?>
  221. <?php echo smartyTranslate(array('s'=>'Total (tax excl.):'),$_smarty_tpl);?>
  222. <?php }else{ ?>
  223. <?php echo smartyTranslate(array('s'=>'Subtotal:'),$_smarty_tpl);?>
  224. <?php }?>
  225. </td>
  226. <td class="price" id="total_price_without_tax"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_price_without_tax')->value),$_smarty_tpl);?>
  227. </span></td>
  228. </tr>
  229. <tr class="cart_total_tax">
  230. <td colspan="6">
  231. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?>
  232. <?php echo smartyTranslate(array('s'=>'Total tax:'),$_smarty_tpl);?>
  233. <?php }else{ ?>
  234. <?php echo smartyTranslate(array('s'=>'Estimated Sales Tax:'),$_smarty_tpl);?>
  235. <?php }?>
  236. </td>
  237. <td class="price" id="total_tax"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_tax')->value),$_smarty_tpl);?>
  238. </span></td>
  239. </tr>
  240. <tr class="cart_total_price">
  241. <td colspan="6">
  242. <?php if ($_smarty_tpl->getVariable('display_tax_label')->value){?>
  243. <?php echo smartyTranslate(array('s'=>'Total (tax incl.):'),$_smarty_tpl);?>
  244. <?php }else{ ?>
  245. <?php echo smartyTranslate(array('s'=>'Total:'),$_smarty_tpl);?>
  246. <?php }?>
  247. </td>
  248. <td class="price" id="total_price"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_price')->value),$_smarty_tpl);?>
  249. </span></td>
  250. </tr>
  251. <?php }else{ ?>
  252. <tr class="cart_total_price">
  253. <td colspan="6"><?php echo smartyTranslate(array('s'=>'Total:'),$_smarty_tpl);?>
  254. </td>
  255. <td class="price" id="total_price"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('total_price_without_tax')->value),$_smarty_tpl);?>
  256. </span></td>
  257. </tr>
  258. <?php }?>
  259. <tr class="cart_free_shipping" <?php if ($_smarty_tpl->getVariable('free_ship')->value<=0||$_smarty_tpl->getVariable('isVirtualCart')->value){?> style="display:none;" <?php }?>>
  260. <td colspan="6" style="white-space:normal;"><?php echo smartyTranslate(array('s'=>'Remaining amount to be added to your cart in order to obtain free shipping:'),$_smarty_tpl);?>
  261. </td>
  262. <td id="free_shipping" class="price"><span class="price"><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->getVariable('free_ship')->value),$_smarty_tpl);?>
  263. </span></td>
  264. </tr>
  265. </tfoot>
  266. <tbody>
  267. <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable;
  268. $_from = $_smarty_tpl->getVariable('products')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  269. if ($_smarty_tpl->_count($_from) > 0){
  270. foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value){
  271. ?>
  272. <?php $_smarty_tpl->tpl_vars['productId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product'], null, null);?>
  273. <?php $_smarty_tpl->tpl_vars['productAttributeId'] = new Smarty_variable($_smarty_tpl->tpl_vars['product']->value['id_product_attribute'], null, null);?>
  274. <?php $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable(0, null, null);?>
  275. <?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./shopping-cart-product-line.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  276. echo $_template->getRenderedTemplate();?><?php unset($_template);?>
  277. <?php if (isset($_smarty_tpl->getVariable('customizedDatas',null,true,false)->value[$_smarty_tpl->getVariable('productId',null,true,false)->value][$_smarty_tpl->getVariable('productAttributeId',null,true,false)->value])){?>
  278. <?php $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable;
  279. $_smarty_tpl->tpl_vars['id_customization'] = new Smarty_Variable;
  280. $_from = $_smarty_tpl->getVariable('customizedDatas')->value[$_smarty_tpl->getVariable('productId')->value][$_smarty_tpl->getVariable('productAttributeId')->value]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  281. if ($_smarty_tpl->_count($_from) > 0){
  282. foreach ($_from as $_smarty_tpl->tpl_vars['customization']->key => $_smarty_tpl->tpl_vars['customization']->value){
  283. $_smarty_tpl->tpl_vars['id_customization']->value = $_smarty_tpl->tpl_vars['customization']->key;
  284. ?>
  285. <tr id="product_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  286. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  287. _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
  288. " class="alternate_item cart_item">
  289. <td colspan="5">
  290. <?php $_smarty_tpl->tpl_vars['datas'] = new Smarty_Variable;
  291. $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable;
  292. $_from = $_smarty_tpl->tpl_vars['customization']->value['datas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  293. if ($_smarty_tpl->_count($_from) > 0){
  294. foreach ($_from as $_smarty_tpl->tpl_vars['datas']->key => $_smarty_tpl->tpl_vars['datas']->value){
  295. $_smarty_tpl->tpl_vars['type']->value = $_smarty_tpl->tpl_vars['datas']->key;
  296. ?>
  297. <?php if ($_smarty_tpl->tpl_vars['type']->value==$_smarty_tpl->getVariable('CUSTOMIZE_FILE')->value){?>
  298. <div class="customizationUploaded">
  299. <ul class="customizationUploaded">
  300. <?php $_smarty_tpl->tpl_vars['picture'] = new Smarty_Variable;
  301. $_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  302. if ($_smarty_tpl->_count($_from) > 0){
  303. foreach ($_from as $_smarty_tpl->tpl_vars['picture']->key => $_smarty_tpl->tpl_vars['picture']->value){
  304. ?><li><img src="<?php echo $_smarty_tpl->getVariable('pic_dir')->value;?>
  305. <?php echo $_smarty_tpl->tpl_vars['picture']->value['value'];?>
  306. _small" alt="" class="customizationUploaded" /></li><?php }} ?>
  307. </ul>
  308. </div>
  309. <?php }elseif($_smarty_tpl->tpl_vars['type']->value==$_smarty_tpl->getVariable('CUSTOMIZE_TEXTFIELD')->value){?>
  310. <ul class="typedText">
  311. <?php $_smarty_tpl->tpl_vars['textField'] = new Smarty_Variable;
  312. $_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  313. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['typedText']['index']=-1;
  314. if ($_smarty_tpl->_count($_from) > 0){
  315. foreach ($_from as $_smarty_tpl->tpl_vars['textField']->key => $_smarty_tpl->tpl_vars['textField']->value){
  316. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['typedText']['index']++;
  317. ?><li><?php if ($_smarty_tpl->tpl_vars['textField']->value['name']){?><?php echo $_smarty_tpl->tpl_vars['textField']->value['name'];?>
  318. <?php }else{ ?><?php echo smartyTranslate(array('s'=>'Text #'),$_smarty_tpl);?>
  319. <?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['typedText']['index']+1;?>
  320. <?php }?><?php echo smartyTranslate(array('s'=>':'),$_smarty_tpl);?>
  321. <?php echo $_smarty_tpl->tpl_vars['textField']->value['value'];?>
  322. </li><?php }} ?>
  323. </ul>
  324. <?php }?>
  325. <?php }} ?>
  326. </td>
  327. <td class="cart_quantity">
  328. <div id="cart_quantity_button" style="float:left">
  329. <a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  330. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  331. _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
  332. " href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('cart.php',true);?>
  333. ?add&amp;id_product=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
  334. &amp;ipa=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);?>
  335. &amp;id_customization=<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
  336. &amp;token=<?php echo $_smarty_tpl->getVariable('token_cart')->value;?>
  337. " title="<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
  338. "><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
  339. icon/quantity_up.png" alt="<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
  340. " /></a>
  341. <?php if ($_smarty_tpl->tpl_vars['product']->value['minimal_quantity']<($_smarty_tpl->tpl_vars['customization']->value['quantity']-$_smarty_tpl->getVariable('quantityDisplayed')->value)||$_smarty_tpl->tpl_vars['product']->value['minimal_quantity']<=1){?>
  342. <input class="text" size="2" type="text" value="<?php echo $_smarty_tpl->tpl_vars['customization']->value['quantity'];?>
  343. " class="cart_quantity_input" name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  344. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  345. _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
  346. "/>
  347. <a rel="nofollow" class="cart_quantity_down" id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  348. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  349. _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
  350. " href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('cart.php',true);?>
  351. ?add&amp;id_product=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
  352. &amp;ipa=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);?>
  353. &amp;id_customization=<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
  354. &amp;op=down&amp;token=<?php echo $_smarty_tpl->getVariable('token_cart')->value;?>
  355. " title="<?php echo smartyTranslate(array('s'=>'Subtract'),$_smarty_tpl);?>
  356. "><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
  357. icon/quantity_down.png" alt="<?php echo smartyTranslate(array('s'=>'Subtract'),$_smarty_tpl);?>
  358. " /></a>
  359. <?php }else{ ?>
  360. <a class="cart_quantity_down" style="opacity:0.3;" id="cart_quantity_down_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  361. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  362. _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
  363. " href="#" title="<?php echo smartyTranslate(array('s'=>'Subtract'),$_smarty_tpl);?>
  364. "><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
  365. icon/quantity_down.png" alt="<?php echo smartyTranslate(array('s'=>'Subtract'),$_smarty_tpl);?>
  366. " /></a>
  367. <?php }?>
  368. </div>
  369. <a rel="nofollow" class="cart_quantity_delete" id="<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  370. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  371. _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
  372. " href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('cart.php',true);?>
  373. ?delete&amp;id_product=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product']);?>
  374. &amp;ipa=<?php echo intval($_smarty_tpl->tpl_vars['product']->value['id_product_attribute']);?>
  375. &amp;id_customization=<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
  376. &amp;token=<?php echo $_smarty_tpl->getVariable('token_cart')->value;?>
  377. "><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
  378. icon/delete.gif" alt="<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
  379. " title="<?php echo smartyTranslate(array('s'=>'Delete this customization'),$_smarty_tpl);?>
  380. " class="icon" /></a>
  381. <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['customization']->value['quantity'];?>
  382. " name="quantity_<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product'];?>
  383. _<?php echo $_smarty_tpl->tpl_vars['product']->value['id_product_attribute'];?>
  384. _<?php echo $_smarty_tpl->tpl_vars['id_customization']->value;?>
  385. _hidden"/>
  386. </td>
  387. <td class="cart_total"></td>
  388. </tr>
  389. <?php $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable($_smarty_tpl->getVariable('quantityDisplayed')->value+$_smarty_tpl->tpl_vars['customization']->value['quantity'], null, null);?>
  390. <?php }} ?>
  391. <?php if ($_smarty_tpl->tpl_vars['product']->value['quantity']-$_smarty_tpl->getVariable('quantityDisplayed')->value>0){?><?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./shopping-cart-product-line.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
  392. echo $_template->getRenderedTemplate();?><?php unset($_template);?><?php }?>
  393. <?php }?>
  394. <?php }} ?>
  395. </tbody>
  396. <?php if (sizeof($_smarty_tpl->getVariable('discounts')->value)){?>
  397. <tbody>
  398. <?php $_smarty_tpl->tpl_vars['discount'] = new Smarty_Variable;
  399. $_from = $_smarty_tpl->getVariable('discounts')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  400. $_smarty_tpl->tpl_vars['discount']->total= $_smarty_tpl->_count($_from);
  401. $_smarty_tpl->tpl_vars['discount']->iteration=0;
  402. $_smarty_tpl->tpl_vars['discount']->index=-1;
  403. if ($_smarty_tpl->tpl_vars['discount']->total > 0){
  404. foreach ($_from as $_smarty_tpl->tpl_vars['discount']->key => $_smarty_tpl->tpl_vars['discount']->value){
  405. $_smarty_tpl->tpl_vars['discount']->iteration++;
  406. $_smarty_tpl->tpl_vars['discount']->index++;
  407. $_smarty_tpl->tpl_vars['discount']->first = $_smarty_tpl->tpl_vars['discount']->index === 0;
  408. $_smarty_tpl->tpl_vars['discount']->last = $_smarty_tpl->tpl_vars['discount']->iteration === $_smarty_tpl->tpl_vars['discount']->total;
  409. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['discountLoop']['first'] = $_smarty_tpl->tpl_vars['discount']->first;
  410. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['discountLoop']['last'] = $_smarty_tpl->tpl_vars['discount']->last;
  411. ?>
  412. <tr class="cart_discount <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['discountLoop']['last']){?>last_item<?php }elseif($_smarty_tpl->getVariable('smarty')->value['foreach']['discountLoop']['first']){?>first_item<?php }else{ ?>item<?php }?>" id="cart_discount_<?php echo $_smarty_tpl->tpl_vars['discount']->value['id_discount'];?>
  413. ">
  414. <td class="cart_discount_name" colspan="2"><?php echo $_smarty_tpl->tpl_vars['discount']->value['name'];?>
  415. </td>
  416. <td class="cart_discount_description" colspan="3"><?php echo $_smarty_tpl->tpl_vars['discount']->value['description'];?>
  417. </td>
  418. <td class="cart_discount_delete"><a href="<?php if ($_smarty_tpl->getVariable('opc')->value){?><?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order-opc.php',true);?>
  419. <?php }else{ ?><?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order.php',true);?>
  420. <?php }?>?deleteDiscount=<?php echo $_smarty_tpl->tpl_vars['discount']->value['id_discount'];?>
  421. " title="<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
  422. "><img src="<?php echo $_smarty_tpl->getVariable('img_dir')->value;?>
  423. icon/delete.gif" alt="<?php echo smartyTranslate(array('s'=>'Delete'),$_smarty_tpl);?>
  424. " class="icon" /></a></td>
  425. <td class="cart_discount_price"><span class="price-discount price">
  426. <?php if ($_smarty_tpl->tpl_vars['discount']->value['value_real']>0){?>
  427. <?php if (!$_smarty_tpl->getVariable('priceDisplay')->value){?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['discount']->value['value_real']*-1),$_smarty_tpl);?>
  428. <?php }else{ ?><?php echo Tools::displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['discount']->value['value_tax_exc']*-1),$_smarty_tpl);?>
  429. <?php }?>
  430. <?php }?>
  431. </span></td>
  432. </tr>
  433. <?php }} ?>
  434. </tbody>
  435. <?php }?>
  436. </table>
  437. </div>
  438. <?php if ($_smarty_tpl->getVariable('voucherAllowed')->value){?>
  439. <div id="cart_voucher" class="table_block">
  440. <?php if (isset($_smarty_tpl->getVariable('errors_discount',null,true,false)->value)&&$_smarty_tpl->getVariable('errors_discount')->value){?>
  441. <ul class="error">
  442. <?php $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable;
  443. $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
  444. $_from = $_smarty_tpl->getVariable('errors_discount')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  445. if ($_smarty_tpl->_count($_from) > 0){
  446. foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value){
  447. $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['error']->key;
  448. ?>
  449. <li><?php echo smarty_modifier_escape($_smarty_tpl->tpl_vars['error']->value,'htmlall','UTF-8');?>
  450. </li>
  451. <?php }} ?>
  452. </ul>
  453. <?php }?>
  454. <form action="<?php if ($_smarty_tpl->getVariable('opc')->value){?><?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order-opc.php',true);?>
  455. <?php }else{ ?><?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order.php',true);?>
  456. <?php }?>" method="post" id="voucher">
  457. <fieldset>
  458. <h2><?php echo smartyTranslate(array('s'=>'Vouchers'),$_smarty_tpl);?>
  459. </h2>
  460. <p class="text">
  461. <label for="discount_name"><?php echo smartyTranslate(array('s'=>'Code:'),$_smarty_tpl);?>
  462. </label>
  463. <input type="text" id="discount_name" name="discount_name" value="<?php if (isset($_smarty_tpl->getVariable('discount_name',null,true,false)->value)&&$_smarty_tpl->getVariable('discount_name')->value){?><?php echo $_smarty_tpl->getVariable('discount_name')->value;?>
  464. <?php }?>" />
  465. </p>
  466. <p class="submit"><input type="hidden" name="submitDiscount" /><input type="submit" name="submitAddDiscount" value="<?php echo smartyTranslate(array('s'=>'Add'),$_smarty_tpl);?>
  467. " class="button" /></p>
  468. <?php if ($_smarty_tpl->getVariable('displayVouchers')->value){?>
  469. <div class="clearblock"></div>
  470. <div id="display_cart_vouchers">
  471. <h4><?php echo smartyTranslate(array('s'=>'Take advantage of our offers:'),$_smarty_tpl);?>
  472. </h4>
  473. <?php $_smarty_tpl->tpl_vars['voucher'] = new Smarty_Variable;
  474. $_from = $_smarty_tpl->getVariable('displayVouchers')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  475. if ($_smarty_tpl->_count($_from) > 0){
  476. foreach ($_from as $_smarty_tpl->tpl_vars['voucher']->key => $_smarty_tpl->tpl_vars['voucher']->value){
  477. ?>
  478. <div><span onclick="$('#discount_name').val('<?php echo $_smarty_tpl->tpl_vars['voucher']->value['name'];?>
  479. ');return false;" class="voucher_name"><?php echo $_smarty_tpl->tpl_vars['voucher']->value['name'];?>
  480. </span> &mdash; <?php echo $_smarty_tpl->tpl_vars['voucher']->value['description'];?>
  481. </div>
  482. <?php }} ?>
  483. </div>
  484. <?php }?>
  485. </fieldset>
  486. </form>
  487. </div>
  488. <?php }?>
  489. <div id="HOOK_SHOPPING_CART"><?php echo $_smarty_tpl->getVariable('HOOK_SHOPPING_CART')->value;?>
  490. </div>
  491. <?php if ((($_smarty_tpl->getVariable('carrier')->value->id&&!isset($_smarty_tpl->getVariable('virtualCart',null,true,false)->value))||$_smarty_tpl->getVariable('delivery')->value->id||$_smarty_tpl->getVariable('invoice')->value->id)&&!$_smarty_tpl->getVariable('opc')->value){?>
  492. <div class="order_delivery">
  493. <?php if ($_smarty_tpl->getVariable('delivery')->value->id){?>
  494. <ul id="delivery_address" class="address item">
  495. <li class="address_title"><?php echo smartyTranslate(array('s'=>'Delivery address'),$_smarty_tpl);?>
  496. </li>
  497. <?php if ($_smarty_tpl->getVariable('delivery')->value->company){?><li class="address_company"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->company,'htmlall','UTF-8');?>
  498. </li><?php }?>
  499. <li class="address_name"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->firstname,'htmlall','UTF-8');?>
  500. <?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->lastname,'htmlall','UTF-8');?>
  501. </li>
  502. <li class="address_address1"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->address1,'htmlall','UTF-8');?>
  503. </li>
  504. <?php if ($_smarty_tpl->getVariable('delivery')->value->address2){?><li class="address_address2"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->address2,'htmlall','UTF-8');?>
  505. </li><?php }?>
  506. <li class="address_city"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->postcode,'htmlall','UTF-8');?>
  507. <?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->city,'htmlall','UTF-8');?>
  508. </li>
  509. <li class="address_country"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery')->value->country,'htmlall','UTF-8');?>
  510. <?php if ($_smarty_tpl->getVariable('delivery_state')->value){?>(<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('delivery_state')->value,'htmlall','UTF-8');?>
  511. )<?php }?></li>
  512. </ul>
  513. <?php }?>
  514. <?php if ($_smarty_tpl->getVariable('invoice')->value->id){?>
  515. <ul id="invoice_address" class="address alternate_item">
  516. <li class="address_title"><?php echo smartyTranslate(array('s'=>'Invoice address'),$_smarty_tpl);?>
  517. </li>
  518. <?php if ($_smarty_tpl->getVariable('invoice')->value->company){?><li class="address_company"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->company,'htmlall','UTF-8');?>
  519. </li><?php }?>
  520. <li class="address_name"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->firstname,'htmlall','UTF-8');?>
  521. <?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->lastname,'htmlall','UTF-8');?>
  522. </li>
  523. <li class="address_address1"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->address1,'htmlall','UTF-8');?>
  524. </li>
  525. <?php if ($_smarty_tpl->getVariable('invoice')->value->address2){?><li class="address_address2"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->address2,'htmlall','UTF-8');?>
  526. </li><?php }?>
  527. <li class="address_city"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->postcode,'htmlall','UTF-8');?>
  528. <?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->city,'htmlall','UTF-8');?>
  529. </li>
  530. <li class="address_country"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice')->value->country,'htmlall','UTF-8');?>
  531. <?php if ($_smarty_tpl->getVariable('invoice_state')->value){?>(<?php echo smarty_modifier_escape($_smarty_tpl->getVariable('invoice_state')->value,'htmlall','UTF-8');?>
  532. )<?php }?></li>
  533. </ul>
  534. <?php }?>
  535. <div class="clearblock"></div>
  536. <?php if ($_smarty_tpl->getVariable('carrier')->value->id&&!isset($_smarty_tpl->getVariable('virtualCart',null,true,false)->value)){?>
  537. <div id="order_carrier">
  538. <h4><?php echo smartyTranslate(array('s'=>'Carrier:'),$_smarty_tpl);?>
  539. </h4>
  540. <?php if (isset($_smarty_tpl->getVariable('carrierPicture',null,true,false)->value)){?><img src="<?php echo $_smarty_tpl->getVariable('img_ship_dir')->value;?>
  541. <?php echo $_smarty_tpl->getVariable('carrier')->value->id;?>
  542. .jpg" alt="<?php echo smartyTranslate(array('s'=>'Carrier'),$_smarty_tpl);?>
  543. " /><?php }?>
  544. <span><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('carrier')->value->name,'htmlall','UTF-8');?>
  545. </span>
  546. </div>
  547. <?php }?>
  548. </div>
  549. <?php }?>
  550. <p class="cart_navigation">
  551. <?php if (!$_smarty_tpl->getVariable('opc')->value){?><a href="<?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('order.php',true);?>
  552. ?step=1<?php if ($_smarty_tpl->getVariable('back')->value){?>&amp;back=<?php echo $_smarty_tpl->getVariable('back')->value;?>
  553. <?php }?>" class="exclusive" title="<?php echo smartyTranslate(array('s'=>'Next'),$_smarty_tpl);?>
  554. "><?php echo smartyTranslate(array('s'=>'Next'),$_smarty_tpl);?>
  555. &raquo;</a><?php }?>
  556. <a href="<?php if ((isset($_SERVER['HTTP_REFERER'])&&strstr($_SERVER['HTTP_REFERER'],'order.php'))||!isset($_SERVER['HTTP_REFERER'])){?><?php echo $_smarty_tpl->getVariable('link')->value->getPageLink('index.php');?>
  557. <?php }else{ ?><?php echo Tools::secureReferrer(smarty_modifier_escape($_SERVER['HTTP_REFERER'],'htmlall','UTF-8'));?>
  558. <?php }?>" class="button_large" title="<?php echo smartyTranslate(array('s'=>'Continue shopping'),$_smarty_tpl);?>
  559. ">&laquo; <?php echo smartyTranslate(array('s'=>'Continue shopping'),$_smarty_tpl);?>
  560. </a>
  561. </p>
  562. <?php echo $_smarty_tpl->getVariable('HOOK_SHOPPING_CART_EXTRA')->value;?>
  563. <?php }?>