Post by print-n-tees » Fri Oct 20, 2017 9:14 am

Is there a way to hide / remove the Discount Price List on the shop's Product Page? I tried deleting the coding in the following:
catalog > view > theme > default > templates > product > product.twig

and removed:

{% if discounts %}
<li>
<hr>
</li>
{% for discount in discounts %}
<li>{{ discount.quantity }}{{ text_discount }}{{ discount.price }}</li>
{% endfor %}
{% endif %}

But the discounts still show.

I figured it was because I am using the journal theme... so removed similar coding in the journal theme template too:
catalog > view > theme > journal > templates > product > product.twig

and removed:

{% for discount in discounts %}
<li class="discounts">{{ discount.quantity }}{{ text_discount }}{{ discount.price }}</li>
{% endfor %}

Both removed... the discount price list still shows on the product pages... even after clearing cache.

Does anyone know how to remove the discount price list?

Thank you

Angelina

User avatar
New member

Posts

Joined
Sun Feb 24, 2013 2:54 pm


Post by IP_CAM » Sat Oct 21, 2017 12:05 am

Well, if no Product Discount Price has been set, no such price will show up anywhere. ::)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Qphoria » Sat Oct 21, 2017 2:15 am

In 3.0, when you delete something from the twig files, you need to clear the twig cache.
This is inexplicably hidden in the "gear" icon on the admin dashboard.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by print-n-tees » Sat Oct 21, 2017 2:22 am

IP_CAM wrote:
Sat Oct 21, 2017 12:05 am
Well, if no Product Discount Price has been set, no such price will show up anywhere. ::)
Ernie

Yes Ernie... I know that. I do want discount pricing but I want to show it with a graphic representation... so just doing away with the discount is not the answer... but thanks for replying just the same.

Angelina

User avatar
New member

Posts

Joined
Sun Feb 24, 2013 2:54 pm


Post by print-n-tees » Sat Oct 21, 2017 2:42 am

Qphoria wrote:
Sat Oct 21, 2017 2:15 am
In 3.0, when you delete something from the twig files, you need to clear the twig cache.
This is inexplicably hidden in the "gear" icon on the admin dashboard.
I was clearing the cache on my browser... thinking and in the journal settings with no success. But when I looked for the clear cache tools as you directed it worked!!! Thank you!!!

Angelina

User avatar
New member

Posts

Joined
Sun Feb 24, 2013 2:54 pm

Who is online

Users browsing this forum: No registered users and 63 guests