How To Remove Order Confirmation Page Prestashop 1.5.6.2

How To Remove Order Confirmation Page Prestashop 1.5.6.2

Your prestashop store are using using prestashop 1.5.6.2 with a custom theme and as payment method you choose Cash On Delivery module, also you are using One Page Checkout setting.

You would like to have a better conversion rate when you customers do a check out process. Meaning after the payment page, your customer can skip order validation page ( .../module/cashondelivery/validation ) and when they click on the one page checkout (the confirm button), the checkout process will be finished.

How to gain that in your prestashop store ? Here is how.

  1. Backup your existing file.
  2. Open the following file on your notepad or others  /modules/cashondelivery/views/templates/hook/payment.tpl
  3. remove the following code or just comment it
    1. <a href="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" title="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" rel="nofollow">
    2. <img src="{$this_path_cod}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" />
    3. <br />{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}
    4. <br />{l s='You pay for the merchandise upon delivery' mod='cashondelivery'}
    5. <br style="clear:both;" />
    6. </a>
  4. And added ( confirm button with image ) after the <p> tag
  1. <form action="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" method="post">
  2. <input type="hidden" name="confirm" value="1" />
  3. <p class="cart_navigation" id="cart_navigation">
  4. <input type="image" value="submit" src="http://image link" style="height:48px; width:500px; margin-left:20%;">
  5. </p>
  6. </form>