Larry Baldwin Posted January 31, 2014 Share Posted January 31, 2014 (edited) Hy all, I am using prestashop 1.5.6.2 with a custom theme and as payment method Cash On Delivery module. I am also using One Page Checkout. I would like clients to skip order confirmation page ( .../module/cashondelivery/validation ) and when they click on the one page checkout the confirm button, the checkout process will be finished. I guess this way we will have a better conversion rate. Edited February 5, 2014 by Larry Baldwin (see edit history) Link to comment Share on other sites More sharing options...
Larry Baldwin Posted February 5, 2014 Author Share Posted February 5, 2014 Maybe a js script that redirects user to the next page and also checks Confirm order? Link to comment Share on other sites More sharing options...
Larry Baldwin Posted February 5, 2014 Author Share Posted February 5, 2014 SOLVED I have edited /modules/cashondelivery/views/templates/hook/payment.tpl I removed <a href="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" title="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" rel="nofollow"> <img src="{$this_path_cod}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" /> <br />{l s='Pay with cash on delivery (COD)' mod='cashondelivery'} <br />{l s='You pay for the merchandise upon delivery' mod='cashondelivery'} <br style="clear:both;" /> </a> And i added ( confirm button with image ) after the </p> <form action="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" method="post"> <input type="hidden" name="confirm" value="1" /> <p class="cart_navigation" id="cart_navigation"> <input type="image" value="submit" src="http://youtimagelink" style="height:48px; width:500px; margin-left:20%;"> </p> </form> 1 Link to comment Share on other sites More sharing options...
DenisKey Posted March 8, 2014 Share Posted March 8, 2014 SOLVED I have edited /modules/cashondelivery/views/templates/hook/payment.tpl I removed <a href="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" title="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" rel="nofollow"> <img src="{$this_path_cod}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" /> <br />{l s='Pay with cash on delivery (COD)' mod='cashondelivery'} <br />{l s='You pay for the merchandise upon delivery' mod='cashondelivery'} <br style="clear:both;" /> </a> And i added ( confirm button with image ) after the </p> <form action="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" method="post"> <input type="hidden" name="confirm" value="1" /> <p class="cart_navigation" id="cart_navigation"> <input type="image" value="submit" src="http://youtimagelink" style="height:48px; width:500px; margin-left:20%;"> </p> </form> Do not work for me Link to comment Share on other sites More sharing options...
DenisKey Posted March 8, 2014 Share Posted March 8, 2014 I have solved this case from other side: from modules/cashondelivery/controllers/front/validation.php Remove 1 line: if (Tools::getValue('confirm')) After that all will work as it should. 4 1 Link to comment Share on other sites More sharing options...
HaCos Posted October 2, 2014 Share Posted October 2, 2014 I have solved this case from other side: from modules/cashondelivery/controllers/front/validation.php Remove 1 line: if (Tools::getValue('confirm')) After that all will work as it should. Any similar tip for bankwire payment solution? Link to comment Share on other sites More sharing options...
Gipielle Posted November 27, 2014 Share Posted November 27, 2014 bump Link to comment Share on other sites More sharing options...
Salus Posted December 22, 2014 Share Posted December 22, 2014 SOLVED I have edited /modules/cashondelivery/views/templates/hook/payment.tpl I removed <a href="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" title="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" rel="nofollow"> <img src="{$this_path_cod}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" /> <br />{l s='Pay with cash on delivery (COD)' mod='cashondelivery'} <br />{l s='You pay for the merchandise upon delivery' mod='cashondelivery'} <br style="clear:both;" /> </a> And i added ( confirm button with image ) after the </p> <form action="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" method="post"> <input type="hidden" name="confirm" value="1" /> <p class="cart_navigation" id="cart_navigation"> <input type="image" value="submit" src="http://youtimagelink" style="height:48px; width:500px; margin-left:20%;"> </p> </form> Nice solution, it seems to be working fine our my site too. Been looking for this for a while... Thank you. Link to comment Share on other sites More sharing options...
AndyCZ Posted December 22, 2014 Share Posted December 22, 2014 Has anyone got solution how to skip order confirmation page for bankwire? I'm also using One page Checkout and custom theme. Prestashop 1.6.0.9. Link to comment Share on other sites More sharing options...
Gipielle Posted December 29, 2014 Share Posted December 29, 2014 Not yet... Link to comment Share on other sites More sharing options...
ArsalanAnsari Posted January 9, 2015 Share Posted January 9, 2015 (edited) Not yet... for bankwire update this code in yourtheme/modules/bankwire/views/templates/hook/payment.tpl <p class="payment_module"> <form action="{$link->getModuleLink('bankwire', 'validation', [], true)|escape:'html'}" method="post"> <input type="hidden" name="confirm" value="1" /> <button id="confirmOrder" class="button btn btn-default button-medium"> <span>I confirm my order.</span> </button> </p> check you css file for button class and add class with (class="button btn btn-default button-medium") enjoy! Edited January 9, 2015 by ArsalanAnsari (see edit history) Link to comment Share on other sites More sharing options...
Gipielle Posted January 12, 2015 Share Posted January 12, 2015 For bankwire, it don't work with one page checkout Link to comment Share on other sites More sharing options...
Gipielle Posted January 26, 2015 Share Posted January 26, 2015 Any solution ? Link to comment Share on other sites More sharing options...
ArsalanAnsari Posted January 26, 2015 Share Posted January 26, 2015 its working fine for me in opc with bankwire. Link to comment Share on other sites More sharing options...
Gipielle Posted January 26, 2015 Share Posted January 26, 2015 we got this OPC http://addons.prestashop.com/it/moduli-prestashop-processo-ordine-checkout/6841-one-page-checkout-for-prestashop.html?search_ab=2 Link to comment Share on other sites More sharing options...
ArsalanAnsari Posted January 26, 2015 Share Posted January 26, 2015 why don't you use default? Link to comment Share on other sites More sharing options...
Gipielle Posted January 26, 2015 Share Posted January 26, 2015 Because when we starts with prestashop there wasn't a opc module, so we buy this and now we got this Link to comment Share on other sites More sharing options...
ArsalanAnsari Posted January 26, 2015 Share Posted January 26, 2015 which PS version You are using? Link to comment Share on other sites More sharing options...
Gipielle Posted January 28, 2015 Share Posted January 28, 2015 Prestashop version 1.5.6.1 Link to comment Share on other sites More sharing options...
Salus Posted January 29, 2015 Share Posted January 29, 2015 (edited) SOLVED I have edited /modules/cashondelivery/views/templates/hook/payment.tpl I removed <a href="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" title="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" rel="nofollow"> <img src="{$this_path_cod}cashondelivery.gif" alt="{l s='Pay with cash on delivery (COD)' mod='cashondelivery'}" style="float:left;" /> <br />{l s='Pay with cash on delivery (COD)' mod='cashondelivery'} <br />{l s='You pay for the merchandise upon delivery' mod='cashondelivery'} <br style="clear:both;" /> </a> And i added ( confirm button with image ) after the </p> <form action="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" method="post"> <input type="hidden" name="confirm" value="1" /> <p class="cart_navigation" id="cart_navigation"> <input type="image" value="submit" src="http://youtimagelink" style="height:48px; width:500px; margin-left:20%;"> </p> </form> One word about this issue again: i tried to replace the image link with a standard large button (for design matters), but I cant convince it to work with the button. What would be the proper code to replace the image input type with button input type? I managed to add the button all right, but it doesnt confirm the order, cart stays full and cant go to "order successful" confirmation page. Not true anymore, I managed to add a working button on a second try, there was a logical error - I`m not much of a coder ya know... But seems to be working now, thanks. <form action="{$link->getModuleLink('cashondelivery', 'validation', [], true)|escape:'html'}" method="post"> <input type="hidden" name="confirm" value="1" /> <p class="cart_navigation" id="cart_navigation"> <input type="submit" id="final_gomb" name="final_gomb" class="button" value="Trimiteti comanda"> </p> </form> Edited January 29, 2015 by Salus (see edit history) Link to comment Share on other sites More sharing options...
Valsirob Posted February 2, 2015 Share Posted February 2, 2015 Hello, Any information why when "Bank Wire" is used, there is a blanc page, after customer push the Order confirmation button? Further there is no Automatic mail sent to the customer...Any idea here also? All my problems started when last week I updated OGONE/INGENICO module. Please help, since many customers are frustrated to not getting a confirmation page & mail confirmation for their order...Not speaking for those who just left their order since my online shop looks not secure with all this confirmation page & mail errors... Thanks for your quick feedback, since now I'm stuck. Using Prestashop 1.6.0.5. with default theme. rgds, Boris Link to comment Share on other sites More sharing options...
Gipielle Posted February 2, 2015 Share Posted February 2, 2015 Hello, Any information why when "Bank Wire" is used, there is a blanc page, after customer push the Order confirmation button? Further there is no Automatic mail sent to the customer...Any idea here also? All my problems started when last week I updated OGONE/INGENICO module. Please help, since many customers are frustrated to not getting a confirmation page & mail confirmation for their order...Not speaking for those who just left their order since my online shop looks not secure with all this confirmation page & mail errors... Thanks for your quick feedback, since now I'm stuck. Using Prestashop 1.6.0.5. with default theme. rgds, Boris Welcome in prestashop :-) You can enable errors so you can check what is the problem. Link to comment Share on other sites More sharing options...
Valsirob Posted February 2, 2015 Share Posted February 2, 2015 Hello, I checked in all folders in Back Office, but I cannot find where I can Enable Errors, so that I can check what is the problem... rgds, Boris Link to comment Share on other sites More sharing options...
Gipielle Posted February 2, 2015 Share Posted February 2, 2015 PS Version ? Link to comment Share on other sites More sharing options...
Valsirob Posted February 2, 2015 Share Posted February 2, 2015 Using Prestashop 1.6.0.5. with default theme Link to comment Share on other sites More sharing options...
Gipielle Posted February 2, 2015 Share Posted February 2, 2015 https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information/ Link to comment Share on other sites More sharing options...
Valsirob Posted February 2, 2015 Share Posted February 2, 2015 Thanks for the link, will do it. Only one question before I do it...is this valid when the error is also in the Back Office page - like here no automatic confirmation of the order status is done and no email is send to the customer + Status Drop Down menu of the orders is full with several identical OGONE status messages... OR I have only to check for the error message on the online shop page (most probably the Order Confirmation Page)... Thanks rgds, Boris Link to comment Share on other sites More sharing options...
Gipielle Posted February 2, 2015 Share Posted February 2, 2015 If you enable errors, you can see what is the problem, instead of a white page. Sure the problem is ogone module, you can try to disable. Link to comment Share on other sites More sharing options...
Gipielle Posted February 9, 2015 Share Posted February 9, 2015 (edited) The solution is very simple: Just change in /web/modules/codfee/views/payment.tpl from: {$link->getModuleLink('codfee', 'payment', [], true)} TO {$link->getModuleLink('codfee', 'validation', [], true)} in bankwire /web/modules/bankwire/views/templates/hook/payment.tpl from: {$link->getModuleLink('bankwire', 'payment')|escape:'html'} TO {$link->getModuleLink('bankwire', 'validation')|escape:'html'} Edited February 9, 2015 by Gipielle (see edit history) 1 Link to comment Share on other sites More sharing options...
DARKF3D3 Posted May 23, 2015 Share Posted May 23, 2015 The solution is very simple Hello Gipielle, i followed your instruction to skip validation page and go directly to confirmation page (I use the same opc module), but nothing happen. I changed the line of code you posted, but when click on the confirmation button it open the validation page instead of the confirmation page. Link to comment Share on other sites More sharing options...
Gipielle Posted May 25, 2015 Share Posted May 25, 2015 Hello, cache, forced template etc ? Link to comment Share on other sites More sharing options...
xaristarhov Posted May 26, 2015 Share Posted May 26, 2015 in validation.phpReplace public function initContent() on public function initContent() { $this->display_column_left = false; parent::initContent(); $customer = new Customer((int)$this->context->cart->id_customer); $total = $this->context->cart->getOrderTotal(true, Cart::BOTH); $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key); Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.(int)$this->context->cart->id.'&id_module='.(int)$this->module->id.'&id_order='.(int)$this->module->currentOrder); } Link to comment Share on other sites More sharing options...
redwert Posted June 27, 2015 Share Posted June 27, 2015 Hi, how to solve this problem for prestashop 1.6.0.9. I am trying different methods but result is the blank page. Help me please Link to comment Share on other sites More sharing options...
trevorgilligan Posted July 9, 2015 Share Posted July 9, 2015 any ideas how to remove order-summary.tpl in paypal and direct to confirmation page, without having to click again on the shop? Link to comment Share on other sites More sharing options...
BlueMe Posted September 19, 2015 Share Posted September 19, 2015 (edited) Ok, to remove confirmation page on cashondelivery I've used DenisKey's tip ie, I've comented out the following line: if (Tools::getValue('confirm')) in modules/cashondelivery/controllers/front/validation.php And for bankwire I've used Gipielle's, ie change: {$link->getModuleLink('bankwire', 'payment', [], true)} TO {$link->getModuleLink('bankwire', 'validation', [], true)} but instead of: web/modules/bankwire/views/templates/hook/payment.tpl I've edited in: web/themes/*mycustomtheme*/modules/bankwire/views/templates/hook/payment.tpl I've found that during this editing sometimes this would not work, probably because of cache so try recompile cache and clear browser cache at the same time. I'm using PS 1.6.0.9 and OnePageCheckout module. Thank you all for your contribution, especially DenisKey and Gipielle. Edited September 19, 2015 by BlueMe (see edit history) 2 Link to comment Share on other sites More sharing options...
YiannisK Posted October 11, 2016 Share Posted October 11, 2016 Last post by BlueMe worked like a charm! It's the same solution for codfee payment module too. Thank you all! Link to comment Share on other sites More sharing options...
Jagotic Posted January 28, 2017 Share Posted January 28, 2017 I have solved this case from other side: from modules/cashondelivery/controllers/front/validation.php Remove 1 line: if (Tools::getValue('confirm')) After that all will work as it should. Thanks you sooooo much DenisKey It really works in seconds 1 Link to comment Share on other sites More sharing options...
Recommended Posts