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 %}
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 %} #}
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
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
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
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.pjwebdesign wrote: ↑Fri Nov 04, 2022 8:06 amThanks 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?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
pjwebdesign wrote: ↑Fri Nov 04, 2022 8:06 amThanks 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
Users browsing this forum: No registered users and 49 guests