Jump to content

how to display the value of $order->total_products in the confirmation page


JPRIETO

Recommended Posts

does anyone knows what code i should use to display the value of "$order->total_products" in the confirmation page?

 

is it

 

echo $order->total_products;

 

or should the code be different?

 

also...

 

is this variable still present by the time the "order confirmation" page is displayed?

 

thanks

 

ps: forgive my ignorance please

Link to comment
Share on other sites

the $order->total_products variable would be correct, however it assumes that the OrderController has placed the Order object into smarty. In this case it does not.

 

now depending on payment method you use, it may hook orderConf and add the variable, in which case you would want to edit the payment modules orderconf template

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...