Themes and extensions also required
product.twig
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
Code: Select all
<h3>{{ text_related }}</h3>
Code: Select all
{% if product.price %}
<p class="price">
{% if not product.special %}
{{ product.price }}
{% else %}
<span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span>
{% endif %}
{% if product.tax %}
<span class="price-tax">{{ text_tax }} {{ product.tax }}</span>
{% endif %}
</p>
{% endif %}
Blog free tips and tricks
Free extensions
OpenCart Tutorials
OpenCart Tutorials Youtube Video for developers
Thank you, it worked! Much appreciated!webocreation.com wrote: ↑Fri Aug 28, 2020 12:50 pmOpen catalog/view/theme/YOURTHEME/template/product/product.twig then findand find near by the above code the following code and change as per your requirement:Code: Select all
<h3>{{ text_related }}</h3>
Code: Select all
{% if product.price %} <p class="price"> {% if not product.special %} {{ product.price }} {% else %} <span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span> {% endif %} {% if product.tax %} <span class="price-tax">{{ text_tax }} {{ product.tax }}</span> {% endif %} </p> {% endif %}
Great!
kindly add the word [SOLVED] in the beginning of your post title.
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
No, this is an awful way to do it, haven't you heard of CSS?webocreation.com wrote: ↑Fri Aug 28, 2020 12:50 pmOpen catalog/view/theme/YOURTHEME/template/product/product.twig then findand find near by the above code the following code and change as per your requirement:Code: Select all
<h3>{{ text_related }}</h3>
Code: Select all
{% if product.price %} <p class="price"> {% if not product.special %} {{ product.price }} {% else %} <span class="price-new">{{ product.special }}</span> <span class="price-old">{{ product.price }}</span> {% endif %} {% if product.tax %} <span class="price-tax">{{ text_tax }} {{ product.tax }}</span> {% endif %} </p> {% endif %}
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
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.
Users browsing this forum: Baidu [Spider] and 500 guests