Jump to content

[SOLVED] How to remove Shipping Carrier Sorting (best price/Fastest speed)?


Recommended Posts

You can find this in order-carrier.tpl located in your themes directory.

In the code posted below I commented out the lines for Best, Fastest.

Should be around line 157 in your file.

 

 

 

 

 

<!-- {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} -->

  • Like 5
Link to comment
Share on other sites

You can find this in order-carrier.tpl located in your themes directory.

In the code posted below I commented out the lines for Best, Fastest.

Should be around line 157 in your file.

 

 

 

 

 

<!-- {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} -->

 

Hi tdr170,

 

I tried the codes but right now my web page "order" is blank after i click check out my cart

 

Cou you please kindly advise?

 

thank you!

Link to comment
Share on other sites

Hi dustcollector, could you undo your changes to have it work right now, and then we can try again to have it changed the way you want it?

 

Hi Benjamin!

 

Thank you. I managed to get it working now.

 

Not sure, if this is the right way as I have no background in programming, but I placed the --> right before the start of the next paragraph <tr>

 

And managed to get it working!

 

Thank you to both of you and of course, tdr170! :wub:

  • Like 1
Link to comment
Share on other sites

  • 10 months later...
  • 9 months later...
  • 2 weeks later...

I have found a solution to remove the text in version 1.6.0.11. It may not be the proper way of doing it, but it worked for me..

 

Find your order-carrier.tpl file in the /themes/default-bootstrap/ directory

 

Find this text, around line 100-106.

 

<span class="best_grade best_grade_price best_grade_speed">{l s='The best price and speed'}</span>
{else}
<span class="best_grade best_grade_speed">{l s='The fastest'}</span>
{/if}
{else if $option.is_best_price}
<span class="best_grade best_grade_price">{l s='The best price'}</span> 

 

 

Simply remove the text from the quotes to look like this:
 
<span class="best_grade best_grade_price best_grade_speed">{l s=''}</span>
{else}
<span class="best_grade best_grade_speed">{l s=''}</span>
{/if}
{else if $option.is_best_price}
<span class="best_grade best_grade_price">{l s=''}</span> 

 

 

Then in the Prestashop backoffice, under Advanced Parameters - Performance, choose 'Recompile templates if the files have been updated' 
 
I was pulling my hair trying to figure out why the changes did nothing until I noticed that option :)
 
Hope this helps.
 
Link to comment
Share on other sites

  • 7 months later...

Hi to you all,

 

since several days I'm having the same problem on my ps 1.6.x

 

over my normal carriers, there is one displaying "the best price and speed" and free... of course I didn't create it and I have not any idea how to remove that option.

 

I tried to modify the order-carrier.tpl file (as suggested in several forums) but I did not solve the problem... it can remove just the sentence "the best price and speed" but not the option of the free carrier.

 

May can you help me kindly?

Thanks in advance to you all,

Filippo

Link to comment
Share on other sites

  • 7 months later...

You don't need to hack the core code just to remove the 'Best Price Best Speed' text, simply update the css class 

.best_grade_speed {display:none;}

Also for any css updates I make I always use a custom.css file then simply add the updated class to the custom file. That way you won't lose your changed css classes when you upgrade.

 

Further info for creating your own custom css file:

http://www.1squarepear.com/adding-a-custom-style-sheet-to-your-prestashop-theme/

 

You may already have a custom.css file included with your template. View your Prestashop website source code to check.

Edited by jake7 (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...