rossdavidh Posted December 2, 2010 Share Posted December 2, 2010 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 More sharing options...
rocky Posted December 2, 2010 Share Posted December 2, 2010 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 More sharing options...
rossdavidh Posted December 4, 2010 Author Share Posted December 4, 2010 That seems to do the trick, thanks very much! Link to comment Share on other sites More sharing options...
rocky Posted December 4, 2010 Share Posted December 4, 2010 Great. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
bene43420 Posted January 8, 2011 Share Posted January 8, 2011 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 More sharing options...
rossdavidh Posted January 9, 2011 Author Share Posted January 9, 2011 I have found that this works, most of the time, but (for reasons not yet clear), it doesn't work 100% of the time. We haven't been able to figure out what the cases have in common when it doesn't work. Link to comment Share on other sites More sharing options...
OBergman Posted February 17, 2011 Share Posted February 17, 2011 I would like to achieve the same thing, but running 1.3.6 my shopping-cart-tpl seems to be slightly different. The first line in the code quoted above (with $shippingCost) is not there. Any ideas how I can make this work? 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