Question

I know this sort of question has been asked a few times, but hear me out!

I've just had to switch between Flat Rate shipping (which did show in the cart) to Table Rates. This is purely because one country has a different rate (UK is £3.95, Ireland is £20). The majority of the site's customers are UK based, so I'd like the cart to assume the user is in the UK and display the £3.95 as the shipping total. Then if the user specifies the shipping address as Ireland, it will change.

I've also got a Shopping Cart Promotion which dictates that if the subtotal is greater than £15, and the user is not from Ireland, shipping is free. This works fine. The shipping costs all work fine, I just want to show it on the cart, based on being in the UK!

If I can't automated this, I'll be hardcoding the cost in there based on subtotal, which I'd rather not do!

Was it helpful?

Solution

Did you try this one:

http://www.danneh.org/2010/08/adding-shipping-costs-to-the-cart-automatically-in-magento/

It hooks onto sales_quote_save_before and should do what you are after.

You will need to know the code for tablerate which I cannot quite remember.

It is also worth rolling your own UK shipping module if your client don't want to be sending off big boxes to the Outer Hebrides or have items not in the 3.95 bracket.

Anyway, you have inspired me to add autoshipping show up in the basket for one of my clients that have similar UK-mostly customers.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top