jontaan Posted September 20, 2016 Share Posted September 20, 2016 (edited) Hi,I am using Prestashop version 1.6.1.5How can I remove the text "the best price" and "the fastest" when customers are checking out their carts? I´ve tried to delete this in order-carrier.tpl but doesnt work. {if count($option_list) > 1}{if $option.is_best_grade}{if $option.is_best_price}<div class="delivery_option_best delivery_option_icon">{l s='The best price and speed'}</div>{else}<div class="delivery_option_fast delivery_option_icon">{l s='The fastest'}</div>{/if}-->{else}<!-- {if $option.is_best_price}<div class="delivery_option_best_price delivery_option_icon">{l s='The best price'}</div>{/if}Thank you! Edited September 20, 2016 by jontaan (see edit history) Link to comment Share on other sites More sharing options...
bleem Posted September 20, 2016 Share Posted September 20, 2016 You can comment each div like this: <!-- <div class="delivery_option_best delivery_option_icon">{l s='The best price and speed'}</div> --> Link to comment Share on other sites More sharing options...
rocky Posted September 21, 2016 Share Posted September 21, 2016 It's better to use {* *} in Smarty templates to remove code. For example: {*{if count($option_list) > 1} {if $option.is_best_grade} {if $option.is_best_price} <div class="delivery_option_best delivery_option_icon">{l s='The best price and speed'}</div> {else} <div class="delivery_option_fast delivery_option_icon">{l s='The fastest'}</div> {/if}--> {else} <!-- {if $option.is_best_price} <div class="delivery_option_best_price delivery_option_icon">{l s='The best price'}</div> {/if}*} Also, make sure you don't have "Never recompile template files" selected on the Advanced Parameters > Performance tab, since that will prevent your changes appearing on your website. You should also click the "Clear cache" button if you have caching enabled. 1 Link to comment Share on other sites More sharing options...
jontaan Posted September 28, 2016 Author Share Posted September 28, 2016 I have tried to comment with both {* *} and <!-- -->. None of these worked. I would appreciate if someone could take a look at my site and see why it´s not working. My website: www.wearnest.com Link to comment Share on other sites More sharing options...
rocky Posted September 30, 2016 Share Posted September 30, 2016 It should work. Perhaps your have the old code cached? Go to the Advanced Parameters > Performance in the Back Office and make sure "Never recompile" isn't selected. You can also try clicking the "Clear cache" button if you have caching enabled. Link to comment Share on other sites More sharing options...
jontaan Posted September 30, 2016 Author Share Posted September 30, 2016 I have a "Klarna Checkout" module instead of the original prestashop checkout. Maybe that´s the problem. I´ve done everything you said but it´s still not working. Link to comment Share on other sites More sharing options...
rocky Posted October 1, 2016 Share Posted October 1, 2016 It could be. I'm unfamiliar with that module. Try contacting the author of the module for support. 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