Page 1 of 1

[SOLVED]Remove the "Ex Tax" item in Product page.

Posted: Thu Nov 03, 2022 10:11 am
by pjwebdesign
Hi All
Using OC3.02 with some extensions.
I wish to remove the "Ex Tax" item on the individual product page.
In product.twig I have commented out line 148 ... however, after flushing the cache on OC and also LS Cache, the Ex Tax line is still visible...
Is there anything else I could try?
Here is the new code...
{% if tax %}
{# <li>{{ text_tax }} {{ tax }}</li> #}
{% endif %}

Re: Remove the "Ex Tax" item in Product page

Posted: Thu Nov 03, 2022 2:01 pm
by by mona
System > Settings > Option
scroll down to TAXES
Display prices with taxes - Choose NO

(and undo the edits you made)

Just on product page ?
What you have done should have worked but this would have been more logical

Code: Select all

{# {% if tax %}
 <li>{{ text_tax }} {{ tax }}</li> 
{% endif %} #}
What is your OC version in all four digits ?
Where did you change the file?
How did you change the file?
What file did you change with the full path ?

Re: Remove the "Ex Tax" item in Product page

Posted: Thu Nov 03, 2022 4:29 pm
by pjwebdesign
Hi, thanks for the reply.
Just to confirm that I only need to display the price with tax included and not display the Ex Tax line.
The website is https://www.dalbydealersfurniture.com.au.
You will see I have already removed Ex Tax from the home page, using css and "display:none" on stylesheet.css line 1209.
Here are the other details you were asking ...

What is your OC version in all four digits ? Ver 3.0.2.0
Where did you change the file? product.twig line 148
How did you change the file? Using Dreamweaver to edit and upload
What file did you change with the full path ? /catalog/view/theme/default/template/product/product.twig

Re: Remove the "Ex Tax" item in Product page

Posted: Thu Nov 03, 2022 5:41 pm
by by mona
so do it the same way ?
This works for me

Code: Select all

#product-product afterpay-placement + li {display:none;}

Re: Remove the "Ex Tax" item in Product page

Posted: Fri Nov 04, 2022 8:06 am
by pjwebdesign
Thanks I updated stylesheet.css and that has worked perfectly ! It's a brilliant solution.
If you don't mind, could you explain that css as I didn't totally understand the logic re afterpay.placement?

Re: Remove the "Ex Tax" item in Product page

Posted: Fri Nov 04, 2022 10:57 am
by straightlight
pjwebdesign wrote:
Fri Nov 04, 2022 8:06 am
Thanks I updated stylesheet.css and that has worked perfectly ! It's a brilliant solution.
If you don't mind, could you explain that css as I didn't totally understand the logic re afterpay.placement?
Now that this issue has been resolved, please add: [SOLVED] at the beginning of the subject line on your first post.

Re: [SOLVED]Remove the "Ex Tax" item in Product page.

Posted: Fri Nov 04, 2022 11:41 pm
by by mona
pjwebdesign wrote:
Fri Nov 04, 2022 8:06 am
Thanks I updated stylesheet.css and that has worked perfectly ! It's a brilliant solution.
If you don't mind, could you explain that css as I didn't totally understand the logic re afterpay.placement?

The code only is relevant to your site.
Not sure what question is asking - but it is from your payment extension

The payment has been added after price but before tax - which means advantageous to use - it is unlikely for an edit to be after price but before tax so quite robust if new extensions / edits made.

you are most welcome - good luck with your site