Anthony_C Posted September 5, 2016 Share Posted September 5, 2016 (edited) Hoping someone can help me with a issue. Does anyone know how to remove the shipping charge field from showing up in the shopping cart summary ? Edited September 5, 2016 by Anthony_C (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted September 6, 2016 Share Posted September 6, 2016 You can {* comment out *} the "Total shipping" code in shopping-cart.tpl in your theme's directory. For example, in the default PrestaShop v1.6.1.6, the code is on lines 224-248: {if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart) && $free_ship} <tr class="cart_total_delivery{if !$opc && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td> <td colspan="2" class="price" id="total_shipping">{l s='Free shipping!'}</td> </tr> {else} {if $use_taxes && $total_shipping_tax_exc != $total_shipping} {if $priceDisplay} <tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td> <td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td> </tr> {else} <tr class="cart_total_delivery{if $total_shipping <= 0} unvisible{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td> <td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td> </tr> {/if} {else} <tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td> <td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td> </tr> {/if} {/if} Link to comment Share on other sites More sharing options...
Anthony_C Posted September 6, 2016 Author Share Posted September 6, 2016 How do I do this ? Link to comment Share on other sites More sharing options...
rocky Posted September 6, 2016 Share Posted September 6, 2016 Assuming you're using the default PrestaShop theme, edit themes/default-bootstrap/shopping-cart.tpl, find the code above and add {* just before it and *} just after. Link to comment Share on other sites More sharing options...
Anthony_C Posted September 6, 2016 Author Share Posted September 6, 2016 (edited) tried that and i must be doing something wrong cause it just error'd out when trying to check it out. Here is a copy of my original file if you could look at it ?https://1drv.ms/u/s!AsxOY7uQpS7jgaERBtKpLp9V5q1h6Q Edited September 6, 2016 by Anthony_C (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted September 6, 2016 Share Posted September 6, 2016 It should work if you add {* to the start of line 224 and *} to the start of line 249. Link to comment Share on other sites More sharing options...
Anthony_C Posted September 6, 2016 Author Share Posted September 6, 2016 didn't work - all i got was website pahe cannot be displayed when trying to check out now Link to comment Share on other sites More sharing options...
Sathyaseelan133 Posted September 7, 2016 Share Posted September 7, 2016 Hi Anthony_C, You can remove the shipping charge field by adding the below css in your respective global.css file .cart_total_delivery{display:none !important;} Link to comment Share on other sites More sharing options...
Anthony_C Posted September 7, 2016 Author Share Posted September 7, 2016 do i add it anywhere special in the css file ? Link to comment Share on other sites More sharing options...
Anthony_C Posted September 7, 2016 Author Share Posted September 7, 2016 i tired it and the shipping still shows under the summary , unless I'm not putting it in the right spot in the css file . I have attached the original css file. can you tell me what line it would go on ?here's a link to my file.https://1drv.ms/u/s!AsxOY7uQpS7jgaESyzpzvIj6taOoxg Link to comment Share on other sites More sharing options...
Sathyaseelan133 Posted September 7, 2016 Share Posted September 7, 2016 Hi Anthony_C Please make use of the global.css file in this link "https://1drv.ms/u/s!AsxOY7uQpS7jgaESyzpzvIj6taOoxg" and let me know if you need any further assistance Note: Kindly take backup of your global.css file before replacing. Link to comment Share on other sites More sharing options...
Anthony_C Posted September 7, 2016 Author Share Posted September 7, 2016 just uploaded it and it is still showing in shopping cart summary. the file is supposed to go into the css folder under the theme I'm usings folder correct ? Link to comment Share on other sites More sharing options...
Sathyaseelan133 Posted September 7, 2016 Share Posted September 7, 2016 Hi Anthony_C, Can you send me your website url. So i will check that above css is working or not. Link to comment Share on other sites More sharing options...
Anthony_C Posted September 7, 2016 Author Share Posted September 7, 2016 I figured it out . It wasn't the css file but the shopping-cart.tpl file like in the original response pointed out. 1 Link to comment Share on other sites More sharing options...
rocky Posted September 8, 2016 Share Posted September 8, 2016 I'm happy you finally figured it out. Link to comment Share on other sites More sharing options...
Dave L Posted December 5, 2016 Share Posted December 5, 2016 You can {* comment out *} the "Total shipping" code in shopping-cart.tpl in your theme's directory. For example, in the default PrestaShop v1.6.1.6, the code is on lines 224-248: {if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart) && $free_ship} <tr class="cart_total_delivery{if !$opc && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td> <td colspan="2" class="price" id="total_shipping">{l s='Free shipping!'}</td> </tr> {else} {if $use_taxes && $total_shipping_tax_exc != $total_shipping} {if $priceDisplay} <tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td> <td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td> </tr> {else} <tr class="cart_total_delivery{if $total_shipping <= 0} unvisible{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td> <td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td> </tr> {/if} {else} <tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}"> <td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td> <td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td> </tr> {/if} {/if} Hi, I wanted do do the same and this works perfectly thanks. How can the same be done for the dropdown cart. Either removing the shipping all together or showing it as 0.00 until signed in. Thanks. Link to comment Share on other sites More sharing options...
Dave L Posted December 5, 2016 Share Posted December 5, 2016 Hi, I wanted do do the same and this works perfectly thanks. How can the same be done for the dropdown cart. Either removing the shipping all together or showing it as 0.00 until signed in. Thanks. Got it now... from this post https://www.prestashop.com/forums/topic/481052-solved-cart-blockcarttpl-hide-shipping-and-show-total-price-without-shipping/?p=2231339 Link to comment Share on other sites More sharing options...
El Patron Posted December 6, 2016 Share Posted December 6, 2016 I'm just curious as to why do this? lol Link to comment Share on other sites More sharing options...
Dave L Posted December 6, 2016 Share Posted December 6, 2016 I'm just curious as to why do this? lol Hello El Patron, Long time no chat. Hope all is well. In this case when not logged in the shipping defaults to the highest price based on default zone. In this case Asia. So this gives a wrong impression of what the shipping will be. One can only know this once registered and the delivery address known. Hiding the shipping in the cart when not logged in, and indeed in the checkout until the shipping options show up is for me a better option. Actually, what I would really like is what appears to be a core funtion in 1.6.1.10 but I don't see how to set it up. That is in the cart block when not logged in to say 'Shipping to be determined'. I don't recall which file that is in but I get a glimpse of it in the block cart as the ajax cart closes when deleting an item and not logged in. When logged in and the item is deleted in the cart you get a glimpse of 'Shipping Free Shipping!' as the ajax cart closes. I would really like the cart to show Shipping to be determined when logged in or not. Cheers. Link to comment Share on other sites More sharing options...
El Patron Posted December 6, 2016 Share Posted December 6, 2016 Hello El Patron, Long time no chat. Hope all is well. In this case when not logged in the shipping defaults to the highest price based on default zone. In this case Asia. So this gives a wrong impression of what the shipping will be. One can only know this once registered and the delivery address known. Hiding the shipping in the cart when not logged in, and indeed in the checkout until the shipping options show up is for me a better option. Actually, what I would really like is what appears to be a core funtion in 1.6.1.10 but I don't see how to set it up. That is in the cart block when not logged in to say 'Shipping to be determined'. I don't recall which file that is in but I get a glimpse of it in the block cart as the ajax cart closes when deleting an item and not logged in. When logged in and the item is deleted in the cart you get a glimpse of 'Shipping Free Shipping!' as the ajax cart closes. I would really like the cart to show Shipping to be determined when logged in or not. Cheers. Howdy Dave! Yes, long time and hope this finds you happy and healthy. For your requirements I think I've solved the issue you describe, see my latest work Shipping Commander. It has so many features/advantages it's difficult to describe well but check the front/back office demos. It supports shipping localization for logged and non-logged and even logged when address does not yet exist. Now you can safely use your carriers. Fred Link to comment Share on other sites More sharing options...
Dave L Posted December 6, 2016 Share Posted December 6, 2016 Howdy Dave! Yes, long time and hope this finds you happy and healthy. For your requirements I think I've solved the issue you describe, see my latest work Shipping Commander. It has so many features/advantages it's difficult to describe well but check the front/back office demos. It supports shipping localization for logged and non-logged and even logged when address does not yet exist. Now you can safely use your carriers. Fred Hi Fred Thanks for the info. I'll check it out and come back to you. Cheers. 1 Link to comment Share on other sites More sharing options...
Dave L Posted December 9, 2016 Share Posted December 9, 2016 Hi Fred I am going to be using the Thailand Post Shipping Rate Module. Will this Shipping Commander play happily with it and allow me to easily remove the shipping costs in my block cart and cart summary for visitors not logged in? Thx. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now