Jump to content

NEWORDER module problem


Recommended Posts

Hi,

I've installed the NEWORDER module on tmaxpasion.com. We're using the prestashop theme on PS version 1.3.6.0. The instalation has been runned succesfully.
When we're near to end a new order by back office, appears these error message.

Fatal error (Order -> total_products_wt is empty)



Anybody can help me?
Do you know because appears these message?
What's the file to modify?
What's the text to modify?

Thanks,
best regards

Link to comment
Share on other sites

  • 2 years later...

Hi,

in modules/cashondeliverywithfee/cashondeliverywithfee.php add this

 

$order->total_products_wt = floatval(Tools::convertPrice(floatval(number_format($cart->getOrderTotal(true, 1),2, ‘.’, ‘’)), $currency));

 

after this

 

$order->total_products = floatval(Tools::convertPrice(floatval(number_format($cart->getOrderTotal(false, 1), 2, ‘.’, ‘’)), $currency));

 

ciao

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...