Egmont Posted December 15, 2019 Share Posted December 15, 2019 Hello everyone, Is there a way to hide the price in the featured products module ? I tried modifying the product.tpl file but it didn't have any effect. Thankyou so much ! Link to comment Share on other sites More sharing options...
PCQUATRO Posted December 16, 2019 Share Posted December 16, 2019 4 hours ago, Egmont said: Hello everyone, Is there a way to hide the price in the featured products module ? I tried modifying the product.tpl file but it didn't have any effect. Thankyou so much ! You could try to copy product.tpl to productpp.tpl and instead of calling product.tpl call productpp.tpl from ps_featuredproducts.tpl... and comment the price block... Best Regards Link to comment Share on other sites More sharing options...
joseantgv Posted December 16, 2019 Share Posted December 16, 2019 If you don't want to modify the template you could hide it by CSS. Add: .featured-products .product-price-and-shipping { display: none; } at /themes/YOUR-THEME/assets/css/custom.css 2 Link to comment Share on other sites More sharing options...
Alex Miller Posted December 16, 2019 Share Posted December 16, 2019 (edited) There are several ways: - If you turn on directory mode, the prices will go away automatically. Like here: https://www.coffee-statistics.com/best-single-serve-coffee-maker/ - There are also special modules, for example for opencart (Module Remove product price for Opencart). This is a modification that allows you to disable the display of prices on the site. If we are talking about Prestashop, you may try Bulk/Mass editing products module. Here are even more functions than in previous one. Edited December 16, 2019 by Alex Miller (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted December 16, 2019 Share Posted December 16, 2019 hace 2 horas, Alex Miller dijo: There are several ways: - If you turn on directory mode, the prices will go away automatically. Like here: https://www.coffee-statistics.com/best-single-serve-coffee-maker/ - There are also special modules, for example for opencart (Module Remove product price for Opencart). This is a modification that allows you to disable the display of prices on the site. If we are talking about Prestashop, you may try Bulk/Mass editing products module. Here are even more functions than in previous one. If I have not understood OP wrong, he only wants to hide prices from featured products so these options are not valid. Link to comment Share on other sites More sharing options...
Egmont Posted December 16, 2019 Author Share Posted December 16, 2019 10 hours ago, joseantgv said: If you don't want to modify the template you could hide it by CSS. Add: .featured-products .product-price-and-shipping { display: none; } at /themes/YOUR-THEME/assets/css/custom.css Thankyou so much ! it worked immediately Link to comment Share on other sites More sharing options...
Egmont Posted December 16, 2019 Author Share Posted December 16, 2019 19 hours ago, PCQUATRO said: You could try to copy product.tpl to productpp.tpl and instead of calling product.tpl call productpp.tpl from ps_featuredproducts.tpl... and comment the price block... Best Regards Hello, Thankyou for your reply, Do you have an idea why can't I comment the price block without renaming product.tpl into productpp.tpl ? I ask because it was the first thing i tried and it didn't have any effect, and I don't understand why Kind regards Link to comment Share on other sites More sharing options...
Egmont Posted December 16, 2019 Author Share Posted December 16, 2019 9 hours ago, Alex Miller said: There are several ways: - If you turn on directory mode, the prices will go away automatically. Like here: https://www.coffee-statistics.com/best-single-serve-coffee-maker/ - There are also special modules, for example for opencart (Module Remove product price for Opencart). This is a modification that allows you to disable the display of prices on the site. If we are talking about Prestashop, you may try Bulk/Mass editing products module. Here are even more functions than in previous one. Thankyou for your reply, Indeed as mentionned by Jose I wanted to hide the prices only from the miniature, not on the whole website. Regards Link to comment Share on other sites More sharing options...
PCQUATRO Posted December 16, 2019 Share Posted December 16, 2019 (edited) 11 minutes ago, Egmont said: Hello, Thankyou for your reply, Do you have an idea why can't I comment the price block without renaming product.tpl into productpp.tpl ? I ask because it was the first thing i tried and it didn't have any effect, and I don't understand why Kind regards Renaming it, would be only because the product.tpl is used by other modules and you shouldn´t mess with it directly. Witch means saying that commenting product.tpl would have the same effect as commenting the productpp.tpl, with the diference that commenting product.tpl would affect all modules that use it... Anyway the sollution proposed by @joseantgv is simpler and less obtructive, if it works just use it. Best Regards Edited December 16, 2019 by PCQUATRO (see edit history) 1 Link to comment Share on other sites More sharing options...
Egmont Posted December 16, 2019 Author Share Posted December 16, 2019 4 minutes ago, PCQUATRO said: Renaming it, would be only because the product.tpl is used by other modules and you shouldn´t mess with it directly. Witch means saying that commenting product.tpl would have the same effect as commenting the productpp.tpl, with the diference that commenting product.tpl would affect all modules that use it... Anyway the sollution proposed by @joseantgv is simpler and less obtructive, if it works just use it. Best Regards I understand, Thankyou for your explanation ! 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