Post by pjwebdesign » Thu Nov 03, 2022 10:11 am

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 %}
Last edited by pjwebdesign on Fri Nov 04, 2022 1:37 pm, edited 2 times in total.

Newbie

Posts

Joined
Thu Jul 09, 2020 10:11 am

Post by by mona » Thu Nov 03, 2022 2:01 pm

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 ?

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by pjwebdesign » Thu Nov 03, 2022 4:29 pm

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

Newbie

Posts

Joined
Thu Jul 09, 2020 10:11 am

Post by by mona » Thu Nov 03, 2022 5:41 pm

so do it the same way ?
This works for me

Code: Select all

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

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by pjwebdesign » 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?

Newbie

Posts

Joined
Thu Jul 09, 2020 10:11 am

Post by straightlight » Fri Nov 04, 2022 10:57 am

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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by by mona » Fri Nov 04, 2022 11:41 pm

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

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: No registered users and 26 guests