Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Total Order Value ?


oscommerceuser5

Recommended Posts

Not at home so couldnt test this out for you ... just make sure you have a backup just in case this doesnt work

 

Open file:

 

/catalog/includes/modules/order_total/ot_total.php

 

find this bit of code

 

	function process() {
  global $order, $currencies;

  $this->output[] = array('title' => $this->title . ':',
						  'text' => '<b>' . $currencies->format($order->info['total'], true, $order->info['currency'], $order->info['currency_value']) . '</b>',
						  'value' => $order->info['total']);
}

 

change 'value' => $order->info['total']); to include your added rate

 

As i said i havn't tried it so keep a backup just in case it don't work

Link to comment
Share on other sites

Okies, I saw your post about tax not working in other category .. so now i know the reason.

Loggin on to my sandbox - to view the code, would update you in a short while.

Best Regards,
Gaurav

Link to comment
Share on other sites

Hi,

Apologies for the delay - got caught up with me regular job and couldn't test this out. I have tried out couple of things - only issue is if you add +/- $ anywhere, you have to make a whole lot of changes to reflect the amount all over the cart since price is displayed at multiple places - so a lot of work for you :(

 

The easiest place to modify the values is to review class in folder /includes/classes/ -> order.php

 

Over here (order.php) - all calculation is done (including tax, shipping etc) - so add the values either in Tax or shipping etc as per your store requirements, or better way would be to actually fix the Tax issue (instead of modifying the code in order.php)

 

What exactly is the issue with Tax on your site? if you could give a URL and dummy account to test, perhaps i could review the issue for you.

 

thanks

Best Regards,
Gaurav

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...