Jump to content

1.5.3.1. COD module need help


Recommended Posts

Hi,

 

I really need help, I have my shop in maintaince, and the last thing what I need is COD (cash on delivery module). I attached module which works on prestashop 1.5.2. but for 1.5.3.1. doesn't works the last step of confirmation of order. After confirmation I get blank page without the confirmation. Can anybody check this module, please?

 

module is attached

 

Thank you so much!!

 

Edit: when I check orders in BO I have new order with this module, but no products...

cashondelivery.zip

Edited by Radek100 (see edit history)
Link to comment
Share on other sites

I am not php expert, I don't understand to php. But it looks like a problem is with validation.php file. For example this is strange to me:

 

working bankwire module (part from validation.php):

Tools::redirect('index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$bankwire->id.'&id_order='.$bankwire->currentOrder.'&key='.$customer->secure_key);

 

And from COD module (part from validation.php):

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);

 

what is starting after redirectLink( is really different, I understand only to html. So this is only my logical point of view...

Link to comment
Share on other sites

  • 2 months later...

Hi,

 

Make sure your folders are set to 755 and files to 644. Use FTP or SSH to set the values. That worked for me. Otherwise contact your host and ask them what will be the corect permission for files and folders.

 

Hope this help

Link to comment
Share on other sites

  • 7 months later...

Hello all,

I was struggling with the same problem - blank page after confirmation of COD (cache on delivery) payment and I have found the solution:

edit the file /config/config.inc.php

and insert this line:

ini_set('display_errors', 'on');

 

this will show the error instead the blank page - in my case it was insufficient memory, which can be fixed with inserting this line:
ini_set("memory_limit","128M");
 

Hope this will help other users in the future

Link to comment
Share on other sites

Hello all,

I was struggling with the same problem - blank page after confirmation of COD (cache on delivery) payment and I have found the solution:

edit the file /config/config.inc.php

and insert this line:

ini_set('display_errors', 'on');

 

this will show the error instead the blank page - in my case it was insufficient memory, which can be fixed with inserting this line:

ini_set("memory_limit","128M");

 

Hope this will help other users in the future

 

Yes, the memory limit can be changed in the php.ini but please make sure that you are able to change this file as some hosting providers will allow you to edit that line, but they do not actually enable the changes and your php.ini will actually stay the same. 

 

You can read the blog post in my signature about optimizing your php.ini for your ecommerce store for more tips. Thanks!

Link to comment
Share on other sites

×
×
  • Create New...