Jump to content

How can i remove the discount percentage from product list?


Recommended Posts

Hello so for some reason i have the discount percentage shown twice and i suspect this is because i run custom theme and 1 its from the original and 1 is from the custom theme

On the attached picture you'll see what im talking about, im trying to remove the red percentage(top-right one) so it will only display the gray one(top-left one).

I've tried tweaking around in product.tpl with little succes as i don't really know how to code, hope you guys can help, thanks.

Im using prestashop 1.7.6.0

44444.jpg

Link to comment
Share on other sites

../themes/at_nova/assets/css/theme.css

line 23914

.thumbnail-container .product-image .product-price-and-shipping .discount-percentage {
        display: inline-block;

 

Add before this section:

.discount-percentage { display: none !important; }

 

Recompile template, clear Prestashop cache.

 

Link to comment
Share on other sites

13 minutes ago, Guest said:

../themes/at_nova/assets/css/theme.css

line 23914


.thumbnail-container .product-image .product-price-and-shipping .discount-percentage {
        display: inline-block;

 

Add before this section:


.discount-percentage { display: none !important; }

 

Recompile template, clear Prestashop cache.

 

Worked like a charm, however there was no need to recompile template and clear prestashop cache for the changes to take effect, is it absolutely necesarry for me to do those steps if changes worked? Thank you very much for your help!

Edited by TucoSalamanca (see edit history)
Link to comment
Share on other sites

Sorry I do not understand your question.

If you have set and enabled CSS cache in your administration, it is always necessary to clear the cache for the change to take effect.

Edited by Guest (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...