Post by adriankoooo » Sat Nov 21, 2015 5:41 am

I have prices in my store including 20% TAX. The problem is with order totals, let me explain.

Default view in OpenCart (shipping cost is 3€ incl. TAX):

Code: Select all

Product X ........................1,50 EUR
------------------------------------------
Shipping  ........................2,50 EUR

Subtotal without tax..............1,25 EUR
TAX 20%...........................0,75 EUR
Total (incl Tax)..................4,50 EUR
The problem is:

- subtotal does not includes shipping cost = confusing
- shipping cost is displayed without TAX = confusing


Expected result:

Code: Select all

Product X ........................1,50 EUR
------------------------------------------
Shipping  ...........................3 EUR

Subtotal without tax..............3,75 EUR
TAX 20%...........................0,75 EUR
Total (incl Tax)..................4,50 EUR
Is there any way to display order totals as I showed?

Active Member

Posts

Joined
Thu Mar 03, 2011 6:52 am


Post by Johnathan » Sat Nov 21, 2015 11:01 pm

I know I responded to your e-mail regarding this, but for others that are interested: Display Order Totals With Tax can display line items like Shipping with/without tax. You can choose which ones display with tax, and how they display (with both amounts, or just the taxed amount).

It can't change how the Sub-Total line item works (to include Shipping). You'd need a custom Order Total for that, which you'd probably have to hire someone to create. If you need to find a developer, I recommend you post a request in the OpenCart "Commercial Support" forum, which is checked by a number of OpenCart developers. You can also try checking out the OpenCart "Partners" area.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by adriankoooo » Sat Nov 21, 2015 11:09 pm

Johnathan wrote: It can't change how the Sub-Total line item works (to include Shipping). You'd need a custom Order Total for that, which you'd probably have to hire someone to create. If you need to find a developer, I recommend you post a request in the OpenCart "Commercial Support" forum, which is checked by a number of OpenCart developers. You can also try checking out the OpenCart "Partners" area.
Thanks Johnathan,

late night I found a semi working solution, but I didn't tested to 100%:

/catalog/model/total/sub_total.php

Code: Select all

$sub_total = $this->cart->getSubTotal();
Here we can modify the code to:

Code: Select all

$sub_total = $this->cart->getSubTotal()+$this->session->data['shipping_method']['cost'];
The problem with this, that it modifies the grand total too, but I don't want this.

If I get some time I am going to check this, until then, if someone has a complete working solution, don't hesitate to contact me.

Active Member

Posts

Joined
Thu Mar 03, 2011 6:52 am

Who is online

Users browsing this forum: No registered users and 314 guests