Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to pass order total and order id to checkout successful page


andy1024

Recommended Posts

I just sign up with aflite affiliate program and need to install a tracking code to the checkout_successful.php but does not know how to get order total and order id to the checkout_successful page

 

thanks for your help

Link to comment
Share on other sites

You can either use the order class or write your own query to get the last order for the logged in user.

 

HTH

 

G

@@andy1024

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Thanks

 

I add :

require(DIR_WS_CLASSES . 'order.php');

$order = new order((int)$orders['orders_id']);

then retrive the total by str_replace('$','',$order->info['total'])

 

and problem solved

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...