Pragati P Posted January 31 Share Posted January 31 I want to hide the price which has zero price. Is there any setting from the admin panel or is there any other way? Can anyone please help me with the above query? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted January 31 Share Posted January 31 Hi, you need to modify the template templates/catalog/_partials/miniatures/product.tpl in your theme. Link to comment Share on other sites More sharing options...
Pragati P Posted January 31 Author Share Posted January 31 39 minutes ago, Prestashop Addict said: Hi, you need to modify the template templates/catalog/_partials/miniatures/product.tpl in your theme. Thank you for your reply will try with above solution Link to comment Share on other sites More sharing options...
Knowband Plugins Posted January 31 Share Posted January 31 Hi Pragati, It seems that the image you have provided is of shipping methods. If the shipping cost is 0, then to hide the shipping costs, you need to make the below modifications. In the file at path - templates\checkout\_partials\steps\shipping.tpl, Kindly, replace the below code- <div class="col-sm-3 col-xs-12"> <span class="carrier-price">{$carrier.price}</span> </div> with the below code- <div class="col-sm-3 col-xs-12" {if $carrier.price == 0}style="display: none;"{/if}> <span class="carrier-price">{$carrier.price}</span> </div> Link to comment Share on other sites More sharing options...
Fleckmyus Posted February 7 Share Posted February 7 And for products, could you help us with what i need to modify in the template templates/catalog/_partials/miniatures/product.tpl ? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 8 Share Posted February 8 Il y a 23 heures, Fleckmyus a dit : And for products, could you help us with what i need to modify in the template templates/catalog/_partials/miniatures/product.tpl ? This template is for listing, not for individual product page. Change {if $product.show_price} by {if $product.show_price && $product.price_without_reduction>0} 1 Link to comment Share on other sites More sharing options...
Fleckmyus Posted February 8 Share Posted February 8 2 hours ago, Prestashop Addict said: This template is for listing, not for individual product page. Change {if $product.show_price} by {if $product.show_price && $product.price_without_reduction>0} Perfect. Thank you for your support! Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 8 Share Posted February 8 (edited) You're welcome, you can add a like to the solution message 😉 And set the subject as SOLVED Edited February 8 by Prestashop Addict (see edit history) Link to comment Share on other sites More sharing options...
Fleckmyus Posted February 8 Share Posted February 8 11 minutes ago, Prestashop Addict said: You're welcome, you can add a like to the solution message 😉 And set the subject as SOLVED It's not my topic so I don't think I can close it. 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