Jump to content

Remove the default carrier price from shopping cart


NemoPS

Recommended Posts

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?

  • Like 1
Link to comment
Share on other sites

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

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.

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

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

  • 9 months later...
  • 8 months later...
  • 3 years later...
  • 11 months later...

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

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...