Jump to content

Can't get past confirm order in cart, (I'm in need of urgent help please)


Recommended Posts

okay, so now with error reporting, what you see instead of internal server error (500) ? some more informations ?

It seems similar to this, http://www.prestashop.com/forums/topic/344057-cant-load-order-status-at-line-167-in-file-classespaymentmodulephp/

 

Both are 1.6 recent versions and I can't find any other thread with this line in question (167 paymentmodule.php)

  • Like 1
Link to comment
Share on other sites

yes it is

check controller file of your payment module what kind of status (number) it uses

then verify if this status ID exists under orders > statuses

 

if you don't know what to do now, please let us know what you've got in line 59 in file: modules/cashondelivery/controllers/front/validation.php

  • Like 2
Link to comment
Share on other sites

okay

so, as you can see there is a this tiny code:
 

 Configuration::get('PS_OS_PREPARATION')

this is order status that doesnt exist in your order -> statuses seciton

so, open order -> statuses and check if there is something like "preparition"

OHP7cYF.png

 

if so copy its ID (from screenshot above you can see that it is equal to 3) and paste to your module code instead of Configuration::get('PS_OS_PREPARATION'), like i did below:

$this->module->validateOrder((int)$this->context->cart->id, 3, $total, $this->module->displayName, null, array(), null, false, $customer->secure_key);

if status "preparation" doesnt exist on list under orders > statuses, click on add new status

QEuK33k.png

 

 

then fill out form with these credentials:

xNlOl1A.png

 

 

 

save changes and then copy ID of new status to your module file :-)

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...