Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I need the sub total before VAT to display??


Guest

Recommended Posts

Posted

Hi folks,

 

I have just about finished constructing my site, I need to display products inclusive of VAT which is no problem. The problem lies at the end of the check out on the confirmation page, I am currently displaying:-

 

Sub total:

Shipping:

VAT:

Total:

 

The problem is on the sub total, I need this to display the price before tax because at the moment it is displaying with tax and so far I cannot see a way of achiving this.

 

Help much appreciated.

 

Mark R

Posted
Go into admin - Modules - Order Totals and set the

Sort order to your preference.

 

HTH

 

Cheers

 

Steve

 

Thanks for the reply Steve, I dont mean the physical sort order as they appear, what I actually meant was I want the sub-total to display the amount minus the VAT. At the moment it will be quite confusing to customers because at present the sub-total is inclusive of VAT and then they will be lead to believe they are paying it again when they see the VAT cost total.

 

Regards

 

Mark

Posted
Thanks for the reply Steve, I dont mean the physical sort order as they appear, what I actually meant was I want the sub-total to display the amount minus the VAT. At the moment it will be quite confusing to customers because at present the sub-total is inclusive of VAT and then they will be lead to believe they are paying it again when they see the VAT cost total.

 

Regards

 

Mark

 

Bump

  • 6 months later...
Posted
Mark, did you ever solve this problem??

 

I am having the same issues

 

I second that - need to sort this one out myself. So any feedback would be great.

Posted

Yep same problem here :(

 

Suprised that everyone dosn't have this problem.

  • 2 weeks later...
Posted

In the file ot_subtotal.php (folder includes/modules/order_totals/) you have to make some changes.

 

Somewhere around line 29 you should make the following changes to the function process()

 

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


$this->output[] = array('title' => $this->title . ':',
// Edited for display without tax in the subtotal at checkout_confirmation.
// Original 'text' => $currencies->format($order->info['subtotal'], true, $order->info['currency'], $order->info['currency_value']),
'text' => $currencies->format(($order->info['subtotal'])-($order->info['tax']), true, $order->info['currency'], $order->info['currency_value']),
// Original 'value' => $order->info['subtotal']);
'value' => ($order->info['subtotal'])-($order->info['tax']));
}

Posted

Thanks for this works as I need it to.

 

Now to be a little bit cheecky, is there a way of having the delivery showing ex vat, and adding the vat of the delivery into the vat total?

 

Eg

Sub Total: ex vat

Delivery : ex vat

Vat 17.5% : vat total

Total : total inc

 

:D

  • 4 months later...
Posted
Thanks for this works as I need it to.

 

Now to be a little bit cheecky, is there a way of having the delivery showing ex vat, and adding the vat of the delivery into the vat total?

 

Eg

Sub Total: ex vat

Delivery : ex vat

Vat 17.5% : vat total

Total : total inc

 

:D

 

Hi,

 

Did you manage to get the mod to have delivery showing ex VAT?

 

Neil :D

  • 5 months later...
Posted
In the file ot_subtotal.php (folder includes/modules/order_totals/) you have to make some changes.

 

Somewhere around line 29 you should make the following changes to the function process()

 

function process() {
global $order, $currencies;
$this->output[] = array('title' => $this->title . ':',
// Edited for display without tax in the subtotal at checkout_confirmation.
// Original 'text' => $currencies->format($order->info['subtotal'], true, $order->info['currency'], $order->info['currency_value']),
'text' => $currencies->format(($order->info['subtotal'])-($order->info['tax']), true, $order->info['currency'], $order->info['currency_value']),
// Original 'value' => $order->info['subtotal']);
'value' => ($order->info['subtotal'])-($order->info['tax']));
}

 

After 2 days of searching, this worked. Thank you.

I have another problem now though. The sub total is inflating the price by a unit of 2 (eg. $2), regardless of what the price is.

 

Example:

Item costs 200 and tax is 14%

 

in the checkout process this comes up as:

sub total 202

tax 28

shipping 31

total 261

 

Where would this extra 2 be coming from and how would I fix it?

Help would be HUGELY appreciated!

Posted
After 2 days of searching, this worked. Thank you.

I have another problem now though. The sub total is inflating the price by a unit of 2 (eg. $2), regardless of what the price is.

 

Example:

Item costs 200 and tax is 14%

 

in the checkout process this comes up as:

sub total 202

tax 28

shipping 31

total 261

 

Where would this extra 2 be coming from and how would I fix it?

Help would be HUGELY appreciated!

 

 

Sorted. In case anyone else has this: It was happening on products that were loaded before I added this fix. On new products it's fine.

  • 4 weeks later...
Posted

Is this possible to do this with the ot_shipping.php aswell? I want to have the shipping excl tax in the confirmation page. I've tried but I don't know the value for the shipping tax.

Archived

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

×
×
  • Create New...