gl636474 / NaturesCupboard2

0 stars 0 forks source link

Enable free shipping for particular postcodes #28

Closed gl636474 closed 4 years ago

gl636474 commented 4 years ago

Range of postcodes to be decided by Jen.

See https://magento.stackexchange.com/questions/205164/how-can-i-give-free-shipping-order-above-rs-500-for-only-selected-city/205182#205182

gl636474 commented 4 years ago

The following postcodes represent the Deeside Estate zone for free delivery: AB15 7PO thru AB15 7PZ and AB15 7QA.

gl636474 commented 4 years ago

The logic in the Magento Freeshipping carrier is to offer free shipping if the request/cart has free shipping set (e.g. from a cart sales rule) OR the cart grand total is over the configured amount. Note that is an INCLUSIVE OR and that a NULL/blank in the configuration is taken to be zero.

Thus must configure free shipping to be for orders over £1,000,000 (or such like) for it to only display if the sales rules match.

gl636474 commented 4 years ago
  1. Promotions -> Shopping Cart Price Rules
  2. Add New Rule
  3. Rule name is internal only
  4. Select all user groups
  5. Public in RSS = No
  6. Conditions -> Add button -> Shipping Postcode
  7. Click "is" -> change to "is one of"
  8. Click "..." -> enter: AB15 7PO,AB15 7PP,AB15 7PQ,AB15 7PR,AB15 7PS,AB15 7PT,AB15 7PU,AB15 7PV,AB15 7PW,AB15 7PX,AB15 7PY,AB15 7PZ,AB15 7QA,AB157PO,AB157PP,AB157PQ,AB157PR,AB157PS,AB157PT,AB157PU,AB157PV,AB157PW,AB157PX,AB157PY,AB157PZ,AB157QA
  9. Actions -> Free Shipping = For shipment with matching items
  10. Copy "Rule Name" from first tab to all fields in "Labels" tab.

Note that postcodes are case INsensitive, whitespace DOES matter so each postcode must be entered twice: once with space and once without.

gl636474 commented 4 years ago

For some reason the server can time out if you try to enter the whole rule in one go. Press "Save and Contine" button after each of the first three tabs.

gl636474 commented 4 years ago
  1. System -> Configuration
  2. Sales / Shipping Methods -> Free Shipping
  3. Enabled = Yes
  4. Title = Nature's Cupboard Local Delivery
  5. Method Name = Free
  6. Minimum Order Amount = 99999999.99
  7. Ship to Applicable Countries = Specific Countries
  8. Ship to Specific Countries = Select United Kingdom only
  9. Show Method if Not Applicable = No
  10. Sort Order = 20
gl636474 commented 4 years ago

Fixed using configuration changes only - no code changes required