Hi there I am trying to figure out how to hide the tax of the shipping when selecting shipping.
I am using open cart 2.1.0.2
I want to show the price without the tax but still have the shijpping tax calculated in the total, anyone got any idea? I will try and get an extension as well to have more then one flat rate shipping based on geozone, anyone have any suggestion?
thank you
see attached image
Guillaume
I am using open cart 2.1.0.2
I want to show the price without the tax but still have the shijpping tax calculated in the total, anyone got any idea? I will try and get an extension as well to have more then one flat rate shipping based on geozone, anyone have any suggestion?
thank you
see attached image
Guillaume
Attachments
opencartshipping.PNG (43.73 KiB) Viewed 5203 times
This is standard OpenCart behavior: if you have your prices set to display tax, shipping costs will do this as well. You can change this in System > Settings, but it will affect all prices (including product prices). If you want to make the shipping cost the only one that does NOT show tax, you'll need to edit its code. For the Flat Rate method, that would be something like this:
This will still apply tax to the shipping cost, but will change its display so that it always shows without tax.
Other shipping methods should have a similar line in their files (in the same directory) towards the bottom of their code.
Code: Select all
IN:
/catalog/model/shipping/flat.php
REPLACE:
'text' => $this->currency->format($this->tax->calculate($this->config->get('flat_cost'), $this->config->get('flat_tax_class_id'), $this->config->get('config_tax')))
WITH:
'text' => $this->currency->format($this->config->get('flat_cost'))
Other shipping methods should have a similar line in their files (in the same directory) towards the bottom of their code.
Thank you Johnathan, this is what I am looking for, I will go and try this soon and report to see if it worked
Cheers
Guillaume
Cheers
Guillaume
Can you help me with this for Opencart 3.0.3.7 ?
Johnathan wrote: ↑Thu Feb 25, 2016 1:59 amThis is standard OpenCart behavior: if you have your prices set to display tax, shipping costs will do this as well. You can change this in System > Settings, but it will affect all prices (including product prices). If you want to make the shipping cost the only one that does NOT show tax, you'll need to edit its code. For the Flat Rate method, that would be something like this:
This will still apply tax to the shipping cost, but will change its display so that it always shows without tax.Code: Select all
IN: /catalog/model/shipping/flat.php REPLACE: 'text' => $this->currency->format($this->tax->calculate($this->config->get('flat_cost'), $this->config->get('flat_tax_class_id'), $this->config->get('config_tax'))) WITH: 'text' => $this->currency->format($this->config->get('flat_cost'))
Other shipping methods should have a similar line in their files (in the same directory) towards the bottom of their code.
It's the same instructions except the path is slightly different. It's under catalog/model/extension/shipping/flat.php file.MrBasic wrote: ↑Tue Jul 13, 2021 9:31 pmCan you help me with this for Opencart 3.0.3.7 ?
Johnathan wrote: ↑Thu Feb 25, 2016 1:59 amThis is standard OpenCart behavior: if you have your prices set to display tax, shipping costs will do this as well. You can change this in System > Settings, but it will affect all prices (including product prices). If you want to make the shipping cost the only one that does NOT show tax, you'll need to edit its code. For the Flat Rate method, that would be something like this:
This will still apply tax to the shipping cost, but will change its display so that it always shows without tax.Code: Select all
IN: /catalog/model/shipping/flat.php REPLACE: 'text' => $this->currency->format($this->tax->calculate($this->config->get('flat_cost'), $this->config->get('flat_tax_class_id'), $this->config->get('config_tax'))) WITH: 'text' => $this->currency->format($this->config->get('flat_cost'))
Other shipping methods should have a similar line in their files (in the same directory) towards the bottom of their code.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I tried this, but it doesn't work. The website will then no longer load.
straightlight wrote: ↑Tue Jul 13, 2021 9:37 pmIt's the same instructions except the path is slightly different. It's under catalog/model/extension/shipping/flat.php file.MrBasic wrote: ↑Tue Jul 13, 2021 9:31 pmCan you help me with this for Opencart 3.0.3.7 ?
Johnathan wrote: ↑Thu Feb 25, 2016 1:59 amThis is standard OpenCart behavior: if you have your prices set to display tax, shipping costs will do this as well. You can change this in System > Settings, but it will affect all prices (including product prices). If you want to make the shipping cost the only one that does NOT show tax, you'll need to edit its code. For the Flat Rate method, that would be something like this:
This will still apply tax to the shipping cost, but will change its display so that it always shows without tax.Code: Select all
IN: /catalog/model/shipping/flat.php REPLACE: 'text' => $this->currency->format($this->tax->calculate($this->config->get('flat_cost'), $this->config->get('flat_tax_class_id'), $this->config->get('config_tax'))) WITH: 'text' => $this->currency->format($this->config->get('flat_cost'))
Other shipping methods should have a similar line in their files (in the same directory) towards the bottom of their code.
Then, either you're using an extension that targets the same line of code or you're applying the change wrong.MrBasic wrote: ↑Tue Jul 13, 2021 10:06 pmI tried this, but it doesn't work. The website will then no longer load.
straightlight wrote: ↑Tue Jul 13, 2021 9:37 pmIt's the same instructions except the path is slightly different. It's under catalog/model/extension/shipping/flat.php file.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Did you ever find a solution for this? I'm in the same situation.MrBasic wrote: ↑Tue Jul 13, 2021 10:06 pmI tried this, but it doesn't work. The website will then no longer load.
straightlight wrote: ↑Tue Jul 13, 2021 9:37 pmIt's the same instructions except the path is slightly different. It's under catalog/model/extension/shipping/flat.php file.MrBasic wrote: ↑Tue Jul 13, 2021 9:31 pmCan you help me with this for Opencart 3.0.3.7 tellthebell?
Last edited by Luckett552 on Tue Sep 28, 2021 5:15 pm, edited 1 time in total.
Lack.Luckett552 wrote: ↑Mon Sep 27, 2021 8:00 pmDid you ever find a solution for this? I'm in the same situation.MrBasic wrote: ↑Tue Jul 13, 2021 10:06 pmI tried this, but it doesn't work. The website will then no longer load.
straightlight wrote: ↑Tue Jul 13, 2021 9:37 pm
It's the same instructions except the path is slightly different. It's under catalog/model/extension/shipping/flat.php file.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 3 guests