Jump to content

[SOLVED] Any way to not show shipping cost until an address is entered?


Recommended Posts

Hello,

Is there any way to change the behavior of the shopping cart to not show a Shipping cost until an address and carrier is selected? It really doesn't make any sense to show a shipping cost when you don't know where the recipient is, and depending on the setup it may show a very large shipping cost that will scare off the customer. Once they login/create an account, the shipping cost may be quite reasonable but the default shipping (based on who knows what since it doesn't know the location yet) can scare people away before they ever reach that point.

Thanks for any help.

Link to comment
Share on other sites

Try changing lines 111-130 of shopping-cart.tpl in your theme's directory from:

{if $shippingCost > 0}
   {if $use_taxes}
       {if $priceDisplay}

{l s='Total shipping (tax excl.):'}
{displayPrice price=$shippingCostTaxExc}

       {else}

{l s='Total shipping (tax incl.):'}
{displayPrice price=$shippingCost}

       {/if}
   {else}

{l s='Total shipping:'}
{displayPrice price=$shippingCostTaxExc}

   {/if}
{/if}



to:

{if $shippingCost > 0 AND ($delivery->id OR $invoice->id)}
   {if $use_taxes}
       {if $priceDisplay}

{l s='Total shipping (tax excl.):'}
{displayPrice price=$shippingCostTaxExc}

       {else}

{l s='Total shipping (tax incl.):'}
{displayPrice price=$shippingCost}

       {/if}
   {else}

{l s='Total shipping:'}
{displayPrice price=$shippingCostTaxExc}

   {/if}
{/if}



This should hopefully only display the shipping cost on the shopping cart summary if an invoice or delivery address has been chosen.

Link to comment
Share on other sites

  • 1 month later...

I pasted the code into my page and 2x checked it to make sure I only replaced the lines stated, but it didn't change anything. Cart still defaults to the appropriate weight range for zone 1 instead of leaving shipping costs blank until a login or address has been entered. Any suggestions? I am using ver 1.3.3.0.

Link to comment
Share on other sites

  • 1 month later...

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