NemoPS Posted December 12, 2011 Share Posted December 12, 2011 Hi there, i was wondering if there's a way to remove the default carrier price from the shopping cart, so the customer can freely choose a carrier at the proper order step without being confused. Maybe something i didn't find in configuration? 1 Link to comment Share on other sites More sharing options...
provencehandmade Posted December 13, 2011 Share Posted December 13, 2011 Hi , got the same problem and as I found how to remove it is still at the check out step !!! I will be very interrested in an answer !!! prestashop version 1.4.3. Link to comment Share on other sites More sharing options...
NemoPS Posted December 13, 2011 Author Share Posted December 13, 2011 Hi, so which way did you find to remove it? Maybe we can work from that point Link to comment Share on other sites More sharing options...
NemoPS Posted December 16, 2011 Author Share Posted December 16, 2011 Up, please some help Link to comment Share on other sites More sharing options...
Torbz Posted December 16, 2011 Share Posted December 16, 2011 Removed my answer...because it's not correct! Link to comment Share on other sites More sharing options...
Torbz Posted December 16, 2011 Share Posted December 16, 2011 Can you clarify on which pages you want to not include the shipping calculation? i.e. is it order.php or the cart block displayed in the F.O. (usually in the side columns) that you want to switch off the shipping calculation for? Link to comment Share on other sites More sharing options...
NemoPS Posted December 16, 2011 Author Share Posted December 16, 2011 The order.php step 1, alas the shopping cart page. I don't see the point of displaying the price for default carrier, when you can choose the carrier the next 2 steps, maybe with a different price. I think this might lead the customer to confusion about the final price, or the carrier the object will be shipped with. 1 Link to comment Share on other sites More sharing options...
NemoPS Posted December 19, 2011 Author Share Posted December 19, 2011 up Link to comment Share on other sites More sharing options...
tiga Posted February 23, 2012 Share Posted February 23, 2012 Have you found any solution for this problem? I agree with you...this doesn't make sense. I can always set as default carrier something free like pick up at store and this way any costs will be showed at the order step 1 (summary). But this is the way around...there must be a exact solution to solde this issue.. Link to comment Share on other sites More sharing options...
humanoidvani Posted December 11, 2012 Share Posted December 11, 2012 classes/Cart.php function getOrderTotal insert before $products = $this->getProducts(); if ($type == Cart::BOTH && $this->id_carrier == 0) $type = Cart::BOTH_WITHOUT_SHIPPING; if ($type == Cart::ONLY_SHIPPING && $this->id_carrier == 0) return 0; Link to comment Share on other sites More sharing options...
laziali Posted August 14, 2013 Share Posted August 14, 2013 hi, any solutions for 1531presta? Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 you've got it one post above Link to comment Share on other sites More sharing options...
laziali Posted August 14, 2013 Share Posted August 14, 2013 ok, will try it again hope it works Link to comment Share on other sites More sharing options...
Kriptonis Posted September 15, 2016 Share Posted September 15, 2016 Can someone help me do this for PrestaShop 1.6.1? Link to comment Share on other sites More sharing options...
Holohugo Posted September 9, 2017 Share Posted September 9, 2017 Hi! I spend more than a day to figure out how to get rid of a carrier price before customer actually choose one, so there is tutorial for everyone who need it just like me. Sorry for digging old post, but there is question on this all over internet, but no real solution, so there it is Done it on presta 1.6.1.13, works like a charm, im using Warehouse theme, but im sure it will work just fine on other nes too First we need to get rid of shipping price for ajax popup after customer adds product into cart and in "cart" when the customer hover over cart icon in right corner. Find this file via FTP: modules/blockcart/blockcart.php (NOT TPL!) Find this (line 82): $totalToPay = $params['cart']->getOrderTotal($useTax); Replace it with this: $totalToPay = $params['cart']->getOrderTotal($useTax, Cart::BOTH_WITHOUT_SHIPPING); Find this (line 86): $totalToPayWithoutTaxes = $params['cart']->getOrderTotal(false); Replace it with this: $totalToPayWithoutTaxes = $params['cart']->getOrderTotal(false, Cart::BOTH_WITHOUT_SHIPPING); Now locate via FTP: themes/*YOUR-THEME*/modules/blockcart/blockcart.tpl And comment out code below. For presta 1.6.1.13 it is on lines 147 - 158. Just add {* on first line when it start and *} when it ends. <div class="cart-prices-line first-line"> <span class="price cart_block_shipping_cost ajax_cart_shipping_cost{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}"> {if $shipping_cost_float == 0} {if !($page_name == 'order-opc') && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if} {else} {$shipping_cost} {/if} </span> <span{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} class="unvisible"{/if}> {l s='Shipping' mod='blockcart'} </span> </div> Now locate via FTP: themes/*YOUR-THEME*/shopping-cart.tpl get rid of lines 225 - 249. The code you are deleting is shipping cost part of the table ins tep one and it looks like this: {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} Now find thle line 296 in the same document, and replace: this: {displayPrice price=$total_price_without_tax} with this: {displayPrice price=$total_products} Not is all done and your shop is "shipping price" free until the customer choose the carrier 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