Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Extract Order Total Value


Bigzero

Recommended Posts

Hi there!

 

Could any one please suggest me how to extract the Order total value in checkout_confirmation.php file?

 

echo $order_total_modules->output();

 

The above line display all the orders value including taxes. I just need the order total value so that I can pass it to the payment gateway.

 

Any suggestion are most welcome.

 

PS : Kindly presume me a newbie of PHP so please explain the point at length if possible.

 

With Thanks!

BigZero

Link to comment
Share on other sites

Hi there!

 

Could any one please suggest me how to extract the Order total value in checkout_confirmation.php file?

 

echo $order_total_modules->output();

 

The above line display all the orders value including taxes. I just need the order total value so that I can pass it to the payment gateway.

 

Any suggestion are most welcome.

 

PS : Kindly presume me a newbie of PHP so please explain the point at length if possible.

 

With Thanks!

BigZero

 

you might try this :

 

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

Treasurer MFC

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...