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

/prestashop/_/cache/smarty/compile/16/19/88/1619881d1a460c41f45815f5d33bc7218f73e596.file.order-return.tpl.php

https://gitlab.com/A.Julien/sendstockbymail-module-prestashop
PHP | 210 lines | 203 code | 7 blank | 0 comment | 28 complexity | 1bc40f179e0a7393f1657b7fe222cb83 MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-08-29 22:07:17
  2. compiled from "C:\xampp\htdocs\prestashop\prestashop\_\themes\default-bootstrap\order-return.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:329857c495f5b06e01-94208946%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '1619881d1a460c41f45815f5d33bc7218f73e596' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\themes\\default-bootstrap\\order-return.tpl',
  10. 1 => 1472500916,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '329857c495f5b06e01-94208946',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'orderRet' => 0,
  21. 'order' => 0,
  22. 'nbdaysreturn' => 0,
  23. 'state_name' => 0,
  24. 'products' => 0,
  25. 'returnedCustomizations' => 0,
  26. 'customization' => 0,
  27. 'product' => 0,
  28. 'productId' => 0,
  29. 'productAttributeId' => 0,
  30. 'addressDeliveryId' => 0,
  31. 'customizationId' => 0,
  32. 'customizedDatas' => 0,
  33. 'type' => 0,
  34. 'datas' => 0,
  35. 'pic_dir' => 0,
  36. 'data' => 0,
  37. 'customizationFieldName' => 0,
  38. 'quantityDisplayed' => 0,
  39. 'link' => 0,
  40. ),
  41. 'has_nocache_code' => false,
  42. 'version' => 'Smarty-3.1.19',
  43. 'unifunc' => 'content_57c495f60a7d81_53346400',
  44. ),false); /*/%%SmartyHeaderCode%%*/?>
  45. <?php if ($_valid && !is_callable('content_57c495f60a7d81_53346400')) {function content_57c495f60a7d81_53346400($_smarty_tpl) {?><?php if (!is_callable('smarty_function_counter')) include 'C:\\xampp\\htdocs\\prestashop\\prestashop\\_\\tools\\smarty\\plugins\\function.counter.php';
  46. ?>
  47. <?php echo $_smarty_tpl->getSubTemplate ("./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
  48. <?php if (isset($_smarty_tpl->tpl_vars['orderRet']->value)) {?>
  49. <div class="box">
  50. <h2 class="page-subheading"><?php echo smartyTranslate(array('s'=>'RE#'),$_smarty_tpl);?>
  51. <?php echo sprintf("%06d",$_smarty_tpl->tpl_vars['orderRet']->value->id);?>
  52. <?php echo smartyTranslate(array('s'=>'on'),$_smarty_tpl);?>
  53. <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date'=>$_smarty_tpl->tpl_vars['order']->value->date_add,'full'=>0),$_smarty_tpl);?>
  54. </h2>
  55. <p class="bold"><?php echo smartyTranslate(array('s'=>'We have logged your return request.'),$_smarty_tpl);?>
  56. </p>
  57. <p><?php echo smartyTranslate(array('s'=>'Your package must be returned to us within'),$_smarty_tpl);?>
  58. <?php echo $_smarty_tpl->tpl_vars['nbdaysreturn']->value;?>
  59. <?php echo smartyTranslate(array('s'=>'days of receiving your order.'),$_smarty_tpl);?>
  60. </p>
  61. <p><?php echo smartyTranslate(array('s'=>'The current status of your merchandise return is:'),$_smarty_tpl);?>
  62. <span class="bold"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['state_name']->value, ENT_QUOTES, 'UTF-8', true);?>
  63. </span></p>
  64. <p><?php echo smartyTranslate(array('s'=>'List of items to be returned:'),$_smarty_tpl);?>
  65. </p>
  66. </div>
  67. <div id="order-detail-content" class="table_block">
  68. <table class="table table-bordered">
  69. <thead>
  70. <tr>
  71. <th class="first_item"><?php echo smartyTranslate(array('s'=>'Reference'),$_smarty_tpl);?>
  72. </th>
  73. <th class="item"><?php echo smartyTranslate(array('s'=>'Product'),$_smarty_tpl);?>
  74. </th>
  75. <th class="last_item"><?php echo smartyTranslate(array('s'=>'Quantity'),$_smarty_tpl);?>
  76. </th>
  77. </tr>
  78. </thead>
  79. <tbody>
  80. <?php $_smarty_tpl->tpl_vars['product'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['product']->_loop = false;
  81. $_from = $_smarty_tpl->tpl_vars['products']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  82. $_smarty_tpl->tpl_vars['product']->index=-1;
  83. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['index']=-1;
  84. foreach ($_from as $_smarty_tpl->tpl_vars['product']->key => $_smarty_tpl->tpl_vars['product']->value) {
  85. $_smarty_tpl->tpl_vars['product']->_loop = true;
  86. $_smarty_tpl->tpl_vars['product']->index++;
  87. $_smarty_tpl->tpl_vars['product']->first = $_smarty_tpl->tpl_vars['product']->index === 0;
  88. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['first'] = $_smarty_tpl->tpl_vars['product']->first;
  89. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['index']++;
  90. ?>
  91. <?php $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable(0, null, 0);?>
  92. <?php $_smarty_tpl->tpl_vars['customization'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['customization']->_loop = false;
  93. $_from = $_smarty_tpl->tpl_vars['returnedCustomizations']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  94. $_smarty_tpl->tpl_vars['customization']->index=-1;
  95. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['index']=-1;
  96. foreach ($_from as $_smarty_tpl->tpl_vars['customization']->key => $_smarty_tpl->tpl_vars['customization']->value) {
  97. $_smarty_tpl->tpl_vars['customization']->_loop = true;
  98. $_smarty_tpl->tpl_vars['customization']->index++;
  99. $_smarty_tpl->tpl_vars['customization']->first = $_smarty_tpl->tpl_vars['customization']->index === 0;
  100. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['first'] = $_smarty_tpl->tpl_vars['customization']->first;
  101. $_smarty_tpl->tpl_vars['smarty']->value['foreach']['products']['index']++;
  102. ?>
  103. <?php if ($_smarty_tpl->tpl_vars['customization']->value['product_id']==$_smarty_tpl->tpl_vars['product']->value['product_id']) {?>
  104. <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['first']) {?>first_item<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index']%2) {?>alternate_item<?php } else { ?>item<?php }?>">
  105. <td><?php if ($_smarty_tpl->tpl_vars['customization']->value['reference']) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customization']->value['reference'], ENT_QUOTES, 'UTF-8', true);?>
  106. <?php } else { ?>--<?php }?></td>
  107. <td class="bold"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['customization']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
  108. </td>
  109. <td><span class="order_qte_span editable"><?php echo intval($_smarty_tpl->tpl_vars['customization']->value['product_quantity']);?>
  110. </span></td>
  111. </tr>
  112. <?php $_smarty_tpl->tpl_vars['productId'] = new Smarty_variable($_smarty_tpl->tpl_vars['customization']->value['product_id'], null, 0);?>
  113. <?php $_smarty_tpl->tpl_vars['productAttributeId'] = new Smarty_variable($_smarty_tpl->tpl_vars['customization']->value['product_attribute_id'], null, 0);?>
  114. <?php $_smarty_tpl->tpl_vars['customizationId'] = new Smarty_variable($_smarty_tpl->tpl_vars['customization']->value['id_customization'], null, 0);?>
  115. <?php $_smarty_tpl->tpl_vars['addressDeliveryId'] = new Smarty_variable($_smarty_tpl->tpl_vars['customization']->value['id_address_delivery'], null, 0);?>
  116. <?php $_smarty_tpl->tpl_vars['datas'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['datas']->_loop = false;
  117. $_smarty_tpl->tpl_vars['type'] = new Smarty_Variable;
  118. $_from = $_smarty_tpl->tpl_vars['customizedDatas']->value[$_smarty_tpl->tpl_vars['productId']->value][$_smarty_tpl->tpl_vars['productAttributeId']->value][$_smarty_tpl->tpl_vars['addressDeliveryId']->value][$_smarty_tpl->tpl_vars['customizationId']->value]['datas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  119. foreach ($_from as $_smarty_tpl->tpl_vars['datas']->key => $_smarty_tpl->tpl_vars['datas']->value) {
  120. $_smarty_tpl->tpl_vars['datas']->_loop = true;
  121. $_smarty_tpl->tpl_vars['type']->value = $_smarty_tpl->tpl_vars['datas']->key;
  122. ?>
  123. <tr class="alternate_item">
  124. <td colspan="3">
  125. <?php if ($_smarty_tpl->tpl_vars['type']->value==Product::CUSTOMIZE_FILE) {?>
  126. <ul class="customizationUploaded">
  127. <?php $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
  128. $_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  129. foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value) {
  130. $_smarty_tpl->tpl_vars['data']->_loop = true;
  131. ?>
  132. <li><img src="<?php echo $_smarty_tpl->tpl_vars['pic_dir']->value;?>
  133. <?php echo $_smarty_tpl->tpl_vars['data']->value['value'];?>
  134. _small" alt="" class="customizationUploaded" /></li>
  135. <?php } ?>
  136. </ul>
  137. <?php } elseif ($_smarty_tpl->tpl_vars['type']->value==Product::CUSTOMIZE_TEXTFIELD) {?>
  138. <ul class="typedText"><?php echo smarty_function_counter(array('start'=>0,'print'=>false),$_smarty_tpl);?>
  139. <?php $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
  140. $_from = $_smarty_tpl->tpl_vars['datas']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  141. foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value) {
  142. $_smarty_tpl->tpl_vars['data']->_loop = true;
  143. ?>
  144. <?php $_smarty_tpl->tpl_vars['customizationFieldName'] = new Smarty_variable(("Text #").($_smarty_tpl->tpl_vars['data']->value['id_customization_field']), null, 0);?>
  145. <li><?php echo smartyTranslate(array('s'=>'%s:','sprintf'=>(($tmp = @$_smarty_tpl->tpl_vars['data']->value['name'])===null||$tmp==='' ? $_smarty_tpl->tpl_vars['customizationFieldName']->value : $tmp)),$_smarty_tpl);?>
  146. <?php echo $_smarty_tpl->tpl_vars['data']->value['value'];?>
  147. </li>
  148. <?php } ?>
  149. </ul>
  150. <?php }?>
  151. </td>
  152. </tr>
  153. <?php } ?>
  154. <?php $_smarty_tpl->tpl_vars['quantityDisplayed'] = new Smarty_variable($_smarty_tpl->tpl_vars['quantityDisplayed']->value+$_smarty_tpl->tpl_vars['customization']->value['product_quantity'], null, 0);?>
  155. <?php }?>
  156. <?php } ?>
  157. <?php if ($_smarty_tpl->tpl_vars['product']->value['product_quantity']>$_smarty_tpl->tpl_vars['quantityDisplayed']->value) {?>
  158. <tr class="<?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['first']) {?>first_item<?php }?> <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['products']['index']%2) {?>alternate_item<?php } else { ?>item<?php }?>">
  159. <td><?php if ($_smarty_tpl->tpl_vars['product']->value['product_reference']) {?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_reference'], ENT_QUOTES, 'UTF-8', true);?>
  160. <?php } else { ?>--<?php }?></td>
  161. <td class="bold"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['product']->value['product_name'], ENT_QUOTES, 'UTF-8', true);?>
  162. </td>
  163. <td><span class="order_qte_span editable"><?php echo intval($_smarty_tpl->tpl_vars['product']->value['product_quantity']);?>
  164. </span></td>
  165. </tr>
  166. <?php }?>
  167. <?php } ?>
  168. </tbody>
  169. </table>
  170. </div>
  171. <?php if ($_smarty_tpl->tpl_vars['orderRet']->value->state==2) {?>
  172. <div class="box">
  173. <h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Reminder'),$_smarty_tpl);?>
  174. </h3>
  175. <ul>
  176. <li><?php echo smartyTranslate(array('s'=>'All merchandise must be returned in its original packaging and in its original state.'),$_smarty_tpl);?>
  177. </li>
  178. <li><?php echo smartyTranslate(array('s'=>'Please print out the'),$_smarty_tpl);?>
  179. <a href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['orderRet']->value->id);?>
  180. <?php $_tmp54=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-order-return',true,null,"id_order_return=".$_tmp54), ENT_QUOTES, 'UTF-8', true);?>
  181. "><?php echo smartyTranslate(array('s'=>'PDF return slip'),$_smarty_tpl);?>
  182. </a> <?php echo smartyTranslate(array('s'=>'and include it with your package.'),$_smarty_tpl);?>
  183. </li>
  184. <li><?php echo smartyTranslate(array('s'=>'Please see the PDF return slip'),$_smarty_tpl);?>
  185. (<a href="<?php ob_start();?><?php echo intval($_smarty_tpl->tpl_vars['orderRet']->value->id);?>
  186. <?php $_tmp55=ob_get_clean();?><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-order-return',true,null,"id_order_return=".$_tmp55), ENT_QUOTES, 'UTF-8', true);?>
  187. "><?php echo smartyTranslate(array('s'=>'for the correct address.'),$_smarty_tpl);?>
  188. </a>)</li>
  189. </ul>
  190. <?php echo smartyTranslate(array('s'=>'When we receive your package, we will notify you by email. We will then begin processing order reimbursement.'),$_smarty_tpl);?>
  191. <br /><br /><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('contact',true), ENT_QUOTES, 'UTF-8', true);?>
  192. "><?php echo smartyTranslate(array('s'=>'Please let us know if you have any questions.'),$_smarty_tpl);?>
  193. </a>
  194. <br />
  195. <p class="bold"><?php echo smartyTranslate(array('s'=>'If the conditions of return listed above are not respected, we reserve the right to refuse your package and/or reimbursement.'),$_smarty_tpl);?>
  196. </p>
  197. </div>
  198. <?php } elseif ($_smarty_tpl->tpl_vars['orderRet']->value->state==1) {?>
  199. <p class="bold"><?php echo smartyTranslate(array('s'=>'You must wait for confirmation before returning any merchandise.'),$_smarty_tpl);?>
  200. </p>
  201. <?php }?>
  202. <?php }?>
  203. <?php }} ?>