Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Retrieving the order total (without shipping)


Transition

Recommended Posts

Posted

I'm trying to complete some little tweaks to my site, and one of them involves having the order total, minus shipping, available on the checkout_success.php page. All i need to know is simply what variable/class i can use to retrieve this information. Any help with this would be highly appreciated!

 

- Rj

Posted

Use the order class. Build an order object

 

require(DIR_WS_CLASSES . 'order.php');

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

 

then you have everything. Change the order query to pass also the class, value columns and set them in the totals array.

 

You may also have to move the sql query for the orders outside the global notifications check so the order_id is always available

Archived

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

×
×
  • Create New...