I've seen the tablerate shipping method work based on a CSV with postcode entries.

My question is, can that similar process be used to enable or disable actual shipping methods based on postcode entry?

It can do it for country out of the box, so I reckon it wouldn't be much to change it to postcode and read from a CSV would it?

The website is viewable at www.asg.co.uk/gadgetclinic.

Can anyone help me please? Someone must have some knowledge on this, it seems quite a trivial thing to do...

  • what do you mean by "disable" do you want to show only certain shipping methods for certain postcodes? or disable the entire shipping method step from the checkout for certain pincodes? – Shathish Oct 28 '13 at 9:12
  • Pretty much the same process that happens when the shipping country is selected (in the backend for each shipping method, you can select which country is available for that method). If the country isn't selected, the shipping method is disabled (and put into disabled state). I basically want to move this validation from the country field to the postcode field.. and have the postcodes read from a CSV file. – Lee Collings Oct 28 '13 at 10:16
  • Hello? Have you any ideas? – Lee Collings Oct 28 '13 at 14:05
  • If you go onto the site and go to ake an order, and hcange the country from UK to something else, you'll see what I want to happen. I want this to work with postcodes from a CSV file. – Lee Collings Oct 28 '13 at 16:02
  • Sorry! I have changed shipping costs with given postcodes, but haven't enabled/disabled shipping methods. you need to first find how to enable or disable the shipping methods on the go (like it is done by default magento) and do the same in your observer which observes the controller_action_predispatch_checkout_onepage_saveShipping event. I'll post the code if i find time today. – Shathish Oct 29 '13 at 5:46

http://www.magentocommerce.com/magento-connect/webshopapps-matrixrate-1-multiple-table-rates-extension-certified-bug-free.html extension in my project to apply shipping rate according to zip code.

Hope it will help you

  • Great extension, works very well – Sander Mangel Nov 1 '13 at 10:57
  • I used it long ago! How did i forget it??? That was a clean extension and could help. – Shathish Nov 1 '13 at 11:08
  • 1
    I can't see how it can enable/disable shipping methods based on location thoguh.. doesn't it just do the same as the tablerate method? – Lee Collings Nov 1 '13 at 12:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.