Post by azzi-charbel » Sun Nov 17, 2019 2:53 am

Hi,

The Display Prices With Tax option in the store settings will remove the "Ex Tax" Price from everywhere on the site but also the product prices will not be affected by any assigned tax class... and this is not what I want.

What I want is:
  • Hide all Ex Tax prices from all around the site.
  • Every product price will be affected by the tax class assigned to it. (if any)
So say, I am selling a Mobile phone product with the price of 100$ where I have assigned to this product a tax of rate 20%.
Everywhere on the site, the price should be displayed as 120$ and the 20$ added to the price of the product should never be visible anywhere on the site.

So I need prices of products to be calculated with assigned taxes, but any text about taxes should be removed from any places on site.

Is this possible ?

Thank you,

New member

Posts

Joined
Wed Nov 06, 2019 8:30 pm

Post by tingwing » Mon Nov 18, 2019 10:29 am

it is possible ,I would suggest to find the all code for displacing EX,and delete it,at the same time ,keep setting with displacing price with tax.

my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com


Active Member

Posts

Joined
Tue Aug 02, 2016 9:01 pm

Post by azzi-charbel » Tue Nov 19, 2019 3:03 am

Thank you for your response,
This method must be done after every core update, right ?

there is no an extension to hide all ex price on all pages ?

New member

Posts

Joined
Wed Nov 06, 2019 8:30 pm

Post by azzi-charbel » Tue Nov 19, 2019 5:39 pm

Can you please point out on what files to be updated ?
I cannot find the code on any file !

Thank you,

New member

Posts

Joined
Wed Nov 06, 2019 8:30 pm

Post by letxobnav » Tue Nov 19, 2019 5:59 pm

in any file (around 11) that has:

Code: Select all

			if ($this->config->get('config_tax')) {
				[ any code ]
			}

you change it to:

Code: Select all

			if ($this->config->get('config_tax')) {
				[ any code ]
			}
			$data['tax'] = false;
This method must be done after every core update, right ?
core update....interesting idea.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan
Who is online

Users browsing this forum: nonnedelectari and 400 guests