Hi are there any documentation for this?
I mapped the location/weight, however Im trying to get rules to add to the final price using a field called field_weight, but no luck.
Have you got an export of a rule where this module works?
Thanks
Joz

Comments

siriuschild’s picture

+1 for even basic documentation.

GuyPaddock’s picture

I was able to get this working out of the box. Here's what to do:

  1. Be sure that the "Shipping", "Shipping UI", and "Commerce Shipping Postal Code Weight" modules are enabled.
  2. Be sure to configure all the countries you support for shipping in the address field of the customer's shipping profile under Store > Customer profiles > Profile types > "manage fields" next to "Shipping information" (admin/commerce/customer-profiles/types/shipping/fields/commerce_customer_address). You must select at least one country under the "Available countries" section of that page.
  3. Visit the shipping method edit screen under Store > Configuration > Shipping > Shipping Methods > "edit" next to "Postcode weight shipping method" (admin/commerce/config/shipping/methods/postal-code-weight-shipping-method/edit). You will see one fieldset with shipping options for each country you selected.
  4. For each country, specify all the weight ranges you support in the "weights" field and indicate the units of measurement you're using.
  5. For each country, specify the groupings of postal codes for which you need to specify rates using commas to separate postal codes in the same category and semicolons to separate categories. For example, let's say I want the following:
    1. 14586 and 14623 (West Henrietta, NY and Rochester, NY, respectively) have all of the same rates
    2. 06468 (Monroe, CT) has a different set of rates

    Then I'd enter "14586,14623;06468" into the "Postal Codes" box.

  6. Click the "Save" button at the bottom of the page to rebuild all of the postal tables based on the new weights and postal codes.
  7. For each country, click the "Edit" link below each rate table to edit the table of values.

Each range of weights is specified as "Min weight" exclusive to "Max weight" inclusive, so 0-5 would mean "greater than 0 and 5 or less" and 5-10 would mean "greater than 5 and 10 or less".

After you've specified the rates, the customer will see them appear during the Shipping step of checkout. It's calculated based on the total order weight and the country and postal code that the customer enters for his or her shipping address.

hurrycain’s picture

Just a note on the zip codes. If you want to have a group that includes all zip codes from 10000 - 29999 for example and another group from 30000 - 49999, the proper way to enter that in the Postal Codes box is " 1, 2; 3, 4 "
Similarly, if you wanted to target 22000 - 23999 and 24000 - 25999 you could use " 22, 23; 24, 25 ".
But if you use " 10000, 29999; 30000, 49999 " you will only be targeting zip code 10000 and zip code 29999 in your first group. And of course any zip codes you don't specifically target will use whatever you have entered as other.
I was able to get this module up an running with the help of #2 (Thanks GuyPaddock), but the zip codes had me puzzled for a while.

AntiNSA’s picture

Are the zip codes a requirement? Can country codes be sufficient?

AntiNSA’s picture

Thank you! for all those in wonder, in the other box fill in the field and you will be ok.

Greenbee’s picture

I too would be very grateful for documentation. I see that it has been assigned to someone as urgent but there's no indication of progress