PageRenderTime 25ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/cache/smarty/compile/c8/62/7e/c8627ecba3e646b036151fcaa8d06a98c8c7b824.file.payment_execution.tpl.php

https://gitlab.com/nghiep5890/prestashop
PHP | 126 lines | 114 code | 12 blank | 0 comment | 14 complexity | f9d8865a54dc1cbc6725ac820303169e MD5 | raw file
  1. <?php /* Smarty version Smarty-3.1.19, created on 2016-11-24 17:38:17
  2. compiled from "C:\xampp\htdocs\prestashop\themes\default-bootstrap\modules\cheque\views\templates\front\payment_execution.tpl" */ ?>
  3. <?php /*%%SmartyHeaderCode:15014583717795543d9-95071610%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. 'c8627ecba3e646b036151fcaa8d06a98c8c7b824' =>
  8. array (
  9. 0 => 'C:\\xampp\\htdocs\\prestashop\\themes\\default-bootstrap\\modules\\cheque\\views\\templates\\front\\payment_execution.tpl',
  10. 1 => 1452073828,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '15014583717795543d9-95071610',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'nbProducts' => 0,
  21. 'link' => 0,
  22. 'total' => 0,
  23. 'use_taxes' => 0,
  24. 'currencies' => 0,
  25. 'currency' => 0,
  26. 'cust_currency' => 0,
  27. ),
  28. 'has_nocache_code' => false,
  29. 'version' => 'Smarty-3.1.19',
  30. 'unifunc' => 'content_583717795fc384_55269678',
  31. ),false); /*/%%SmartyHeaderCode%%*/?>
  32. <?php if ($_valid && !is_callable('content_583717795fc384_55269678')) {function content_583717795fc384_55269678($_smarty_tpl) {?>
  33. <?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?><?php echo smartyTranslate(array('s'=>'Check payment','mod'=>'cheque'),$_smarty_tpl);?>
  34. <?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
  35. if (!empty($_capture_buffer)) {
  36. if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
  37. if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
  38. Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
  39. } else $_smarty_tpl->capture_error();?>
  40. <h1 class="page-heading"><?php echo smartyTranslate(array('s'=>'Order summary','mod'=>'cheque'),$_smarty_tpl);?>
  41. </h1>
  42. <?php $_smarty_tpl->tpl_vars['current_step'] = new Smarty_variable('payment', null, 0);?>
  43. <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./order-steps.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
  44. <?php if (isset($_smarty_tpl->tpl_vars['nbProducts']->value)&&$_smarty_tpl->tpl_vars['nbProducts']->value<=0) {?>
  45. <p class="alert alert-warning"><?php echo smartyTranslate(array('s'=>'Your shopping cart is empty.','mod'=>'cheque'),$_smarty_tpl);?>
  46. </p>
  47. <?php } else { ?>
  48. <form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getModuleLink('cheque','validation',array(),true), ENT_QUOTES, 'UTF-8', true);?>
  49. " method="post">
  50. <div class="box cheque-box">
  51. <h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Check payment','mod'=>'cheque'),$_smarty_tpl);?>
  52. </h3>
  53. <p class="cheque-indent">
  54. <strong class="dark">
  55. <?php echo smartyTranslate(array('s'=>'You have chosen to pay by check.','mod'=>'cheque'),$_smarty_tpl);?>
  56. <?php echo smartyTranslate(array('s'=>'Here is a short summary of your order:','mod'=>'cheque'),$_smarty_tpl);?>
  57. </strong>
  58. </p>
  59. <p>
  60. - <?php echo smartyTranslate(array('s'=>'The total amount of your order comes to:','mod'=>'cheque'),$_smarty_tpl);?>
  61. <span id="amount" class="price"><?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price'=>$_smarty_tpl->tpl_vars['total']->value),$_smarty_tpl);?>
  62. </span>
  63. <?php if ($_smarty_tpl->tpl_vars['use_taxes']->value==1) {?>
  64. <?php echo smartyTranslate(array('s'=>'(tax incl.)','mod'=>'cheque'),$_smarty_tpl);?>
  65. <?php }?>
  66. </p>
  67. <p>
  68. -
  69. <?php if (isset($_smarty_tpl->tpl_vars['currencies']->value)&&count($_smarty_tpl->tpl_vars['currencies']->value)>1) {?>
  70. <?php echo smartyTranslate(array('s'=>'We accept several currencies to receive payments by check.','mod'=>'cheque'),$_smarty_tpl);?>
  71. <br />
  72. <div class="form-group">
  73. <label><?php echo smartyTranslate(array('s'=>'Choose one of the following:','mod'=>'cheque'),$_smarty_tpl);?>
  74. </label>
  75. <select id="currency_payment" class="form-control" name="currency_payment">
  76. <?php $_smarty_tpl->tpl_vars['currency'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['currency']->_loop = false;
  77. $_from = $_smarty_tpl->tpl_vars['currencies']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  78. foreach ($_from as $_smarty_tpl->tpl_vars['currency']->key => $_smarty_tpl->tpl_vars['currency']->value) {
  79. $_smarty_tpl->tpl_vars['currency']->_loop = true;
  80. ?>
  81. <option value="<?php echo $_smarty_tpl->tpl_vars['currency']->value['id_currency'];?>
  82. "<?php if (isset($_smarty_tpl->tpl_vars['currencies']->value)&&$_smarty_tpl->tpl_vars['currency']->value['id_currency']==$_smarty_tpl->tpl_vars['cust_currency']->value) {?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['currency']->value['name'];?>
  83. </option>
  84. <?php } ?>
  85. </select>
  86. </div>
  87. <?php } else { ?>
  88. <?php echo smartyTranslate(array('s'=>'We allow the following currencies to be sent by check:','mod'=>'cheque'),$_smarty_tpl);?>
  89. &nbsp;<b><?php echo $_smarty_tpl->tpl_vars['currencies']->value[0]['name'];?>
  90. </b>
  91. <input type="hidden" name="currency_payment" value="<?php echo $_smarty_tpl->tpl_vars['currencies']->value[0]['id_currency'];?>
  92. " />
  93. <?php }?>
  94. </p>
  95. <p>
  96. - <?php echo smartyTranslate(array('s'=>'Check owner and address information will be displayed on the next page.','mod'=>'cheque'),$_smarty_tpl);?>
  97. <br />
  98. - <?php echo smartyTranslate(array('s'=>'Please confirm your order by clicking \'I confirm my order\'','mod'=>'cheque'),$_smarty_tpl);?>
  99. .
  100. </p>
  101. </div>
  102. <p class="cart_navigation clearfix" id="cart_navigation">
  103. <a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order',true,null,"step=3"), ENT_QUOTES, 'UTF-8', true);?>
  104. " class="button-exclusive btn btn-default">
  105. <i class="icon-chevron-left"></i><?php echo smartyTranslate(array('s'=>'Other payment methods','mod'=>'cheque'),$_smarty_tpl);?>
  106. </a>
  107. <button type="submit" class="button btn btn-default button-medium">
  108. <span><?php echo smartyTranslate(array('s'=>'I confirm my order','mod'=>'cheque'),$_smarty_tpl);?>
  109. <i class="icon-chevron-right right"></i></span>
  110. </button>
  111. </p>
  112. </form>
  113. <?php }?>
  114. <?php }} ?>