Jump to content

PS1.7 How do I remove Free shipping text in cart summary?


Recommended Posts

Hello,

I'm trying to remove the "Free" in the shopping cart text. It shows as free even when a customer is logged in until choosing their shipping address. After a lot of research I am unable to use the same solutions used in previous versions of Prestashop. I've been looking at the back office translations and I found one expression marked "Free" but it has no description and changing it did not seem to help. Beyond that I have been looking through my theme files and I'm just not proficient enough a coder to find the reference file.

 

Can someone please offer some help with this?

Link to comment
Share on other sites

  • 4 months later...

I suspect you sell in more than one country, so your free shipping is associated to default country.  We solved this issue and much more with this famous module.  

https://www.prestaheroes.com/en-us/modules/geo-localization/prestashop-shipping-commander

which is also integrated with our other famous module

https://www.prestaheroes.com/en-us/modules/geo-localization/geo-targeting-pro-price-by-country

we test so you don't have to

el

 

Link to comment
Share on other sites

  • 1 year later...

It is not answer to his question. 

I have same problem.

I ship only to my country, I have option to pick up in store, wich is not FREE, customer clicked Add to cart and it shows him FREE SHIPPING, but it's FAKE, I want to hide shipping until he get to checkout step, where he select shipping by his opinion, and THEN, after selecting shipping option show the price of shipping. 

 

Can somebody help me ? 

 

Thanks

Link to comment
Share on other sites

  • 1 month later...

Hello. You can try this way. I hope it will be useful for you. Let us explain with examples.

Think you have 2 carriers. First one is paid carrier. But the second one is free carrier. But, as default you have selected FREE carrier.  Here you can do these steps. 

1) Enter the paid carrier settings. In first page you will see "Speed grade" field. Add it maximum value. For example 9. Other also you can add value but it must not be greater than 9. 

2) Then click "preferences" tab under shipping section. End of the page, you will see "Carrier options" section. On the first drop-down list (Default carrier) select "best grade" and save it. 

That's all. In the cart section will handle you high gradated carrier and will assign shipping price of its. 

Let us know about the result.

Link to comment
Share on other sites

If you want to complete hide shipping lines form the cart follow my steps:

1) Enter root folder list of ps.

2) Find and enter "your current theme folder".

3) Then "templates" > "checkout" > "_partials"

4) Here find "cart-detailed-totals.tpl" file and open it in text editor.  Here you must change 2 parts.

First: here you will see (line 33-37)

{if 'products' == $subtotal.type}
              {$cart.summary_string}
            {else}
              {$subtotal.label}
            {/if}

Change it to:

{if 'products' == $subtotal.type}
              {$cart.summary_string}
            {else}
                {if $subtotal.type !== 'shipping'}
                    {$subtotal.label}
                {/if}
            {/if}

 

Second: here you will see line 40:

{if 'discount' == $subtotal.type}- {/if}{$subtotal.value}

Change it to:

{if 'discount' == $subtotal.type}- {/if}
              {if $subtotal.type !== 'shipping'}
                  {$subtotal.value}
              {/if}

 

Finally save the file + clear cache of the shop and check the result.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • 6 months later...
  • 10 months later...
On 7/3/2020 at 5:05 PM, PrestaServicePro said:

If you want to complete hide shipping lines form the cart follow my steps:

1) Enter root folder list of ps.

2) Find and enter "your current theme folder".

3) Then "templates" > "checkout" > "_partials"

4) Here find "cart-detailed-totals.tpl" file and open it in text editor.  Here you must change 2 parts.

First: here you will see (line 33-37)

{if 'products' == $subtotal.type}
              {$cart.summary_string}
            {else}
              {$subtotal.label}
            {/if}

Change it to:

{if 'products' == $subtotal.type}
              {$cart.summary_string}
            {else}
                {if $subtotal.type !== 'shipping'}
                    {$subtotal.label}
                {/if}
            {/if}

 

Second: here you will see line 40:

{if 'discount' == $subtotal.type}- {/if}{$subtotal.value}

Change it to:

{if 'discount' == $subtotal.type}- {/if}
              {if $subtotal.type !== 'shipping'}
                  {$subtotal.value}
              {/if}

 

Finally save the file + clear cache of the shop and check the result.

Hello, 
Thanks for this, it worked well, the only problem I have left is when you add a item in the cart if you check my image you will see another free shipping there, is there another file that needs to be worked out ? 


I hope your still available to help with this.

Untitled.jpg

Untitled1.jpg

Edited by murdoc_tcc
added the one that worked (see edit history)
Link to comment
Share on other sites

  • 3 months later...
On 7/3/2020 at 8:05 PM, PrestaServicePro said:

If you want to complete hide shipping lines form the cart follow my steps:

1) Enter root folder list of ps.

2) Find and enter "your current theme folder".

3) Then "templates" > "checkout" > "_partials"

4) Here find "cart-detailed-totals.tpl" file and open it in text editor.  Here you must change 2 parts.

First: here you will see (line 33-37)

{if 'products' == $subtotal.type}
              {$cart.summary_string}
            {else}
              {$subtotal.label}
            {/if}

Change it to:

{if 'products' == $subtotal.type}
              {$cart.summary_string}
            {else}
                {if $subtotal.type !== 'shipping'}
                    {$subtotal.label}
                {/if}
            {/if}

 

Second: here you will see line 40:

{if 'discount' == $subtotal.type}- {/if}{$subtotal.value}

Change it to:

{if 'discount' == $subtotal.type}- {/if}
              {if $subtotal.type !== 'shipping'}
                  {$subtotal.value}
              {/if}

 

Finally save the file + clear cache of the shop and check the result.

Thanks for this, and how can this be hide from checkout until shipping step?

 

Regards

Link to comment
Share on other sites

  • 11 months later...
  • 7 months later...
On 7/3/2020 at 10:05 AM, PrestaServicePro said:

If you want to complete hide shipping lines form the cart follow my steps:

1) Enter root folder list of ps.

2) Find and enter "your current theme folder".

3) Then "templates" > "checkout" > "_partials"

4) Here find "cart-detailed-totals.tpl" file and open it in text editor.  Here you must change 2 parts.

First: here you will see (line 33-37)

{if 'products' == $subtotal.type}
              {$cart.summary_string}
            {else}
              {$subtotal.label}
            {/if}

Change it to:

{if 'products' == $subtotal.type}
              {$cart.summary_string}
            {else}
                {if $subtotal.type !== 'shipping'}
                    {$subtotal.label}
                {/if}
            {/if}

 

Second: here you will see line 40:

{if 'discount' == $subtotal.type}- {/if}{$subtotal.value}

Change it to:

{if 'discount' == $subtotal.type}- {/if}
              {if $subtotal.type !== 'shipping'}
                  {$subtotal.value}
              {/if}

 

Finally save the file + clear cache of the shop and check the result.

 

THIS WORKS JUST FINE... THANKS A LOT FOR SHARING... 

Link to comment
Share on other sites

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...