Jump to content
TucoSalamanca

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

Share this post


Link to post
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.

 

  • Thanks 1

Share this post


Link to post
Share on other sites
13 minutes ago, D. Tengler 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)

Share this post


Link to post
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 D. Tengler (see edit history)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More