Jump to content

Remove shipping fees from Cart Ajax


elektrojo

Recommended Posts

I need to remove shipping fees info from cart ajax cz they are misleading for customers, I am using prestashop 1.6.1.5 

here is my shop www.elektrojo.com

and here what i wish to see

 

 

I tried this but didn't work
1. 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/>
2. 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>
3. 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);

post-625056-0-51285000-1464904936_thumb.png

post-625056-0-58856000-1464904939_thumb.png

Edited by elektrojo (see edit history)
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...