gshds Posted November 13, 2014 Share Posted November 13, 2014 Hello, I am really annoyed with my customers. In fact, when they put into the cart the different products below (see the picture ) it is specified "Livraison gratuite" that mean in english that delivery is free. This is not correct, because at the end of the order the customers can chose the delivering by FEDEX and in our case, is not free of charge. Someone can help me, I just want to remove the information about the delivery 1 Link to comment Share on other sites More sharing options...
mickeyboy1 Posted November 13, 2014 Share Posted November 13, 2014 Goto themes/your-theme/modules/blockcart/blockcart.tpl and comment out the following code, around line 143 <div class="cart-prices-line first-line"> <span class="price cart_block_shipping_cost ajax_cart_shipping_cost"> {if $shipping_cost_float == 0} {l s='Free shipping!' mod='blockcart'} {else} {$shipping_cost} {/if} </span> <span> {l s='Shipping' mod='blockcart'} </span> </div> 3 Link to comment Share on other sites More sharing options...
NemoPS Posted November 14, 2014 Share Posted November 14, 2014 Have a look at my tut, it should apply to 1.6 as well, might point you the right direction http://nemops.com/hide-shipping-cost/ Link to comment Share on other sites More sharing options...
johnymith Posted November 14, 2014 Share Posted November 14, 2014 This is my broblem, too Link to comment Share on other sites More sharing options...
NemoPS Posted November 15, 2014 Share Posted November 15, 2014 @johnnymith: did you find my link useful? Or do you want to show something else? Link to comment Share on other sites More sharing options...
gshds Posted November 20, 2014 Author Share Posted November 20, 2014 Goto themes/your-theme/modules/blockcart/blockcart.tpl and comment out the following code, around line 143 <div class="cart-prices-line first-line"> <span class="price cart_block_shipping_cost ajax_cart_shipping_cost"> {if $shipping_cost_float == 0} {l s='Free shipping!' mod='blockcart'} {else} {$shipping_cost} {/if} </span> <span> {l s='Shipping' mod='blockcart'} </span> </div> Unfortunately, in my blockcart.tpl I not find the same program. Link to comment Share on other sites More sharing options...
gshds Posted November 20, 2014 Author Share Posted November 20, 2014 @johnnymith: did you find my link useful? Or do you want to show something else? Hi, In your demo allows to hide the cost as long as the person is not identified. In my case I want something very simple. Just to change the text "Free shipping !" by nothing or "not determined", from the point 4 (shipping) we need to show the corresponding value of the shipping choice. Link to comment Share on other sites More sharing options...
mickeyboy1 Posted November 20, 2014 Share Posted November 20, 2014 You are looking in the correct directory ? Maybe a link to your site would help Link to comment Share on other sites More sharing options...
gshds Posted November 20, 2014 Author Share Posted November 20, 2014 You are looking in the correct directory ? Maybe a link to your site would help Yes, the directory is : /var/www/html/prestashop/modules/blockcart www.hdshop.ch Link to comment Share on other sites More sharing options...
mickeyboy1 Posted November 20, 2014 Share Posted November 20, 2014 No the directory is var/www/html/prestashop/themes/your-theme/modules/blockcart/blockcart.tpl 1 Link to comment Share on other sites More sharing options...
NemoPS Posted November 21, 2014 Share Posted November 21, 2014 If you just want to remove the text when it's free, find the one that reads "Free shipping" in the blockcart.tpl file, as above mentioned by mickeyboy, and get rid of it 1 Link to comment Share on other sites More sharing options...
David Eschmeyer Posted November 21, 2014 Share Posted November 21, 2014 (edited) more concise to show "To Be Determined": modified code: in /var/www/html/themes/default-bootstrap/js/modules/blockcart/ajax-cart.js i have commented out 779-780 if (parseFloat(jsonData.shippingCostFloat) > 0)$('.ajax_cart_shipping_cost').text(jsonData.shippingCost);/* else if (typeof(freeShippingTranslation) != 'undefined')$('.ajax_cart_shipping_cost').html(freeShippingTranslation);*/ then in /var/www/html/themes/default-bootstrap/modules/blockcart/blockcart.tplline 146change: {l s='Free shipping!' mod='blockcart'} to {if !$cart->id_address_delivery}{l s='To Be Determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if} then around line 284change: {l s='Free shipping!' mod='blockcart'} to: {if !$cart->id_address_delivery}{l s='To Be Determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if} This works like a charm, it should cover most everything. I doubt the ajaxcart dropdown will work for shipping per item since i disabled the update of it. Most sites don't do per item shipping though. http://forge.prestashop.com/browse/PSCSX-2075 Edited November 21, 2014 by David Eschmeyer (see edit history) 1 Link to comment Share on other sites More sharing options...
gshds Posted November 22, 2014 Author Share Posted November 22, 2014 Unfortunately, in my blockcart.tpl I not find the same program. Thanks your solution work perfectly in my case. Link to comment Share on other sites More sharing options...
gshds Posted November 25, 2014 Author Share Posted November 25, 2014 I come back, In order to be totaly satisfied by the simple solution of mickeyboy1 You have also comment out the following code aroud the line 279/338. * <span class="ajax_cart_shipping_cost"> * {if $shipping_cost_float == 0} * {l s='Free shipping!' mod='blockcart'} * {else} * {$shipping_cost} * {/if} * </span> I hope this can help someone. 2 Link to comment Share on other sites More sharing options...
Recommended Posts