Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

need value of sub-total in checkout_confirmation


211655

Recommended Posts

in checkout confirmation, i need the value of sub-total.

whats the variable or how i call it. as in that file. it calling info from the order total module from admin section. line: 262 in my file.

 

i need to compare a value with that sub-total. how i get that value?

 

i am writing a if statement that says..

if sub-total > 399{

do this...

}

Link to comment
Share on other sites

Hi, I think you mean order_total.php in includes/classes, this file works on the customer side.

 

There is line in array definition, which says:

'value' => $GLOBALS[$class]->output[$i]['value'],

 

Order_total function returns whole output string, so try output[$i]['value'] or $order_total_array['value']. I'm not sure does those work, but I think you should even try them... ;)

-Pasi-

Link to comment
Share on other sites

  • 2 years later...

Here you go! Just used it myself, and it works.

 

To call the sub-total on the Checkout_Confirmation.php page, use the following code:

echo $order->info['subtotal'];

 

That should do it!

 

:thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...