TucoSalamanca Posted February 4, 2020 Share Posted February 4, 2020 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 Link to comment Share on other sites More sharing options...
NemoPS Posted February 7, 2020 Share Posted February 7, 2020 Can you share the site's url? Link to comment Share on other sites More sharing options...
TucoSalamanca Posted February 7, 2020 Author Share Posted February 7, 2020 (edited) 24 minutes ago, NemoPS said: Can you share the site's url? Ofcourse, its https://sneakin.ro/ Here is a test product with percentage discount https://sneakin.ro/16-hoodies Edited February 7, 2020 by TucoSalamanca (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted February 7, 2020 Share Posted February 7, 2020 ../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 More sharing options...
TucoSalamanca Posted February 7, 2020 Author Share Posted February 7, 2020 (edited) 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 February 7, 2020 by TucoSalamanca (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted February 7, 2020 Share Posted February 7, 2020 (edited) 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 February 7, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now