Jump to content

Edit History

murdoc_tcc

murdoc_tcc


added the one that worked

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

murdoc_tcc

murdoc_tcc

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

×
×
  • Create New...