Jump to content

How to hide tax info on product page


Paulie

Recommended Posts

Hi, 

I'd need a little help with this. I've already turned off every tax rule from the Taxes and Localization and what I have now is "no tax" on every product page.

What I did next, is added .product-prices .tax-shipping-delivery-label,.product-availability-date{display:none;} to custom.css, however another issue occured. I can't upload the child theme (an error shows up). Even when uploading it via filezilla, no changes show up.

I've no idea how else to fix it.

I run on the 1.7.1.5 version with a purchased theme

Link to comment
Share on other sites

Hello, 

You can do this small trick. Enter translations page. Select theme translation, current theme and language. On the opened page you can see search box. Type there "no tax" word and search. You will see the result. On the result, delete "no tax" word and left it as blank and save. It also will not work, let me know.

  • Thanks 1
Link to comment
Share on other sites

5 minutes ago, PrestaServicePro said:

Hello, 

You can do this small trick. Enter translations page. Select theme translation, current theme and language. On the opened page you can see search box. Type there "no tax" word and search. You will see the result. On the result, delete "no tax" word and left it as blank and save. It also will not work, let me know.

Hi! Thanks a lot! I have to admit I've searched for this in translations and found "tax included" only... Don't know why... 

Anyways, I've just replaced the translation with a dot as it simply won't let me delete the last letter and leave it blank. Do you know why?

Link to comment
Share on other sites

Follow my added path, there we will disable it via code side. Enter folder list of PrestaShop > themes > current_theme_folder > templates > catalog > _partials > product-prices.tpl 

Open this file and find the line: 95 ({l s='No tax' d='Shop.Theme.Catalog'}). 

{if !$configuration.taxes_enabled}
        {l s='No tax' d='Shop.Theme.Catalog'}
{elseif $configuration.display_taxes_label}
        {$product.labels.tax_long}
{/if}

 

We need to change condition type like that:

{if $configuration.display_taxes_label}
        {$product.labels.tax_long}
{/if}

Let me know about the resul

  • Thanks 1
Link to comment
Share on other sites

Also after changes, clear cache of PrestaShop from BO too, Then browse the page. Maybe you enabled caching system and selected "never compile the templates". Before clearing cache change the condition to "force compile", save then clear cache. After all of them browse the page.

  • Thanks 1
Link to comment
Share on other sites

22 minutes ago, PrestaServicePro said:

Follow my added path, there we will disable it via code side. Enter folder list of PrestaShop > themes > current_theme_folder > templates > catalog > _partials > product-prices.tpl 

Open this file and find the line: 95 ({l s='No tax' d='Shop.Theme.Catalog'}). 


{if !$configuration.taxes_enabled}
        {l s='No tax' d='Shop.Theme.Catalog'}
{elseif $configuration.display_taxes_label}
        {$product.labels.tax_long}
{/if}

 

We need to change condition type like that:


{if $configuration.display_taxes_label}
        {$product.labels.tax_long}
{/if}

Let me know about the resul

Thanks for your help!

it looks a bit different at mine. I'm afraid of screwing something. There's also a disclaimer "do not edit or add to this file if you wish to upgrade PrestaShop" - shall I worry about that?

Just cleared the cache from my BO. "never compile the templates" was on, of course, and I changed it now.

123.jpg

Link to comment
Share on other sites

7 minutes ago, PrestaServicePro said:

But, under these lines you must see my attached lines, scroll a little bit down and search the word "$configuration.taxes_enabled".

just tweaked the code and now "tax excluded" shows up next to the price. Wanted to delete it in theme translations but I can't find it. It's just not available from there.

Shouldn't I include "hide" or smth like that in  the code?

Link to comment
Share on other sites

15 minutes ago, PrestaServicePro said:

But, under these lines you must see my attached lines, scroll a little bit down and search the word "$configuration.taxes_enabled".

I did this! Just left it empty in the code

<div class="tax-shipping-delivery-label">
      {if !$configuration.taxes_enabled}
        {l s='' d='Shop.Theme.Catalog'}
{elseif $configuration.display_taxes_label}
        {$product.labels.tax_long}
      {/if}

 

Thanks a lot!

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
On 5/23/2020 at 9:07 PM, Paulie said:

Hi! Thanks a lot! I have to admit I've searched for this in translations and found "tax included" only... Don't know why... 

Anyways, I've just replaced the translation with a dot as it simply won't let me delete the last letter and leave it blank. Do you know why?

Hello, I have just find solution for this. At the end of "no tax" i used invisible character in Unicode - alt+0160. Then I deleted "no tax" and saved. Worked great for me. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...