Jump to content

Anyone know how to move shipping from the small cart block on the left side on the main page?


Recommended Posts

All my stuff is free shipping.. So it's unnecessary to display shipping I don't care about the big cart. I am talking about the small cart on the left side where the item flies into after adding.

Let me know if you got an answer!

  • Like 1
Link to comment
Share on other sites

Please see,

http://aryatmajaya.c...prestashop.html

 

If you are using a theme edit that “blockcart.tpl”

 

Thank but I did as it's written over there.

But the following instruction didn't work for me. (have you tested and confirmed that it's working?)

 

This is how I removed all the informations about shipping:
  • Go to “blockcart.tpl” and comment out these lines:
    <span>{l s='Shipping' mod='blockcart'}</span>
    <span id="cart_block_shipping_cost"
    class="price ajax_cart_shipping_cost">{$shipping_cost}</span>
    <br/>
  • In the same file, find this line:
    <span id="cart_block_total" class="price ajax_block_cart_total">
    {$total}</span>
    and replace {$total} with {$product_total}:
    <span id="cart_block_total" class="price ajax_block_cart_total">{$product_total}</span>
  • Probably the “AJAX mode” is on so you “must” edit also the “ajax-cart.js” file which exists in “blockcart” folder in “modules” folder. Open it and go to line 560. Replace :
    $('.ajax_block_cart_total').text(jsonData.total);
    with this :
    $('.ajax_block_cart_total').text(jsonData.productTotal);

Link to comment
Share on other sites

Yes, I did test it. It works. :)

 

If it didn't work for you, you need to find the correct blockcart. If you are sure you have the correct blockcart then you also need to turn on force compile and turn off caching whenever you make these type of changes. If you don't you'll not see the change. Preferences > Performance

 

This part of the instructions alone will remove the shipping from blockcart,

 

Go to “blockcart.tpl” and comment out these lines:

 

<span>{l s='Shipping' mod='blockcart'}</span>

<span id="cart_block_shipping_cost"

class="price ajax_cart_shipping_cost">{$shipping_cost}</span>

 

That means you would do this,

<!-- <span>{l s='Shipping' mod='blockcart'}</span>

<span id="cart_block_shipping_cost"

class="price ajax_cart_shipping_cost">{$shipping_cost}</span> -->

 

 

 

The rest of the instructions will make the space look better.

Link to comment
Share on other sites

  • 4 years later...

Hello,

 

I'm also trying to remove shipping from the cart summary and drop-down section above menu.

 

The exact code you show above does not exist in either the modules/blockcart/blockcart.tpl file found under modules or under themes/mytheme/modules/blockcart/blockcart.tpl

 

I'm running 1.6.1.6 - would it exist somewhere else?

 

Thanks in advance.

;)

Link to comment
Share on other sites

×
×
  • Create New...