Thursday, 25 May 2017

WooCommerce New Zealand Post 1.3.2 Extension

WooCommerce New Zealand Post 1.3.2 Extension

Download

http://getlot.co/shop/woocommerce-new-zealand-post-extension/

Get it now

Obtain rates via the NZ Post API

The New Zealand Post Group offers services to help New Zealand run, connecting people, businesses and communities. This plugin lets you offer New Zealand Post rates to your customers which are pulled directly from their API.
The extension requires that your store uses NZ Dollars currency and New Zealand as the base country. It primarily works with mm and kg, but other units can be converted automatically.
NZ Post can calculate rates worldwide, or domestic:
DOMESTICINTERNATIONAL
  • ParcelPost
  • ParcelPost Fast
  • ParcelPost Tracked
  • Courier
  • International Express Courier
  • International Economy Courier
  • International Air
  • International Economy

Other features:

  • Enable/disable, edit the names of, and add costs to services.
  • Pack items individually or using the built in box packer.
Box Sizes
Box Sizes
Service Settings
Service Settings

New Zealand Post Shipping

New Zealand Post is a premium shipping method which let you get shipping rates from the New Zealand Post API. It requires that your store uses NZ Dollars for it’s currency and a base country of New Zealand. The extension primarily works with mm and kgs, but other units can be converted automatically.
This extension can calculate quotes worldwide as it handles both domestic and international parcels.
The API, and the built in box-packer, require that your non-virtual products have weights and dimensions set. See here if you need to know how to do this.

Installation

  1. Upload the plugin folder to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Thats it – you can now configure the plugin.

API & Debug 

Go toWooCommerce > Settings > Shipping > New Zealand Post.
  1. Connect/Disconnect your New Zealand Post Account
  2. Debug Mode – Tick the checkbox to log API requests and responses for the cart and checkout pages. Useful for troubleshooting.
  3. API Key – NZ Post will provide you with an API key after you signup for their API services. Enter this here – it is required.

Configuration

  1. Go toWooCommerce > Settings > Shipping.
  2. Select your Shipping Zone that you want to add the method to, and press the Add shipping method + button on the right
    Add shipping method
  3. Select New Zealand Post from the dropdown and press Add shipping method:
    screen-shot-2016-10-07-at-11-09-04-am
  4. Click on the New Zealand Post method to configure the settings:
    1. Method Title – Name the shipping method. This will be visible by customers.
    2. Origin Postcode – This should be set to the postcode from which you will ship. It is sent to the NZ Post API.
    3. Method Availability –  This setting lets you narrow down the countries which can get quotes. Leave set to All Countries to have it available for all customers.
    4. Rates and Services – These settings control the services and rates you offer customers.
      1. Parcel Packing Method – See below.
      2. Offer Rates – Choose to return all rates (user will get the choice) or just return a single rate.
      3. Services – Here you can rename, and re-order, NZ Post shipping rates.

Parcel Packing Method

There are 2 packing methods with NZ Post; each affects the parcels you send to the API.

Pack items individually (Default)

Each item in your cart (non virtual) will be sent to the NZ Post API. Quotes for all items will be combined for the final cost.

Pack into boxes with weights and dimensions (Recommended)

Items will be packed into pre-defined boxes and sent to the API. We recommend this option. See box-packing below for more information on this.

Box-Packing

The box packer included with this shipping method lets you group items into packages of which you define the height, width, length, weight and max-weight. The packing is mainly volume based, but does also consider item sizes too.
The box packer is volume based. This will in most cases provide good results, but will never be as accurate as a real person packing a box (see BIN Packing Problem) therefore it is important you understand that packing results are as accurate as they can be and any anomalies should be accepted.

Setting up box sizes

Within the settings, look for the boxes setting. Click ‘add box’ to set up the boxes dimensions:
  1. Outer dimensions are used for parcel dimensions and are passed to the API.
  2. Inner dimensions are used for packing, and items will be fit within these.
  3. Box weight is the weight of the actual box, and will be added to the weight of the contents.
  4. Max weight is the maximum weight your box can hold. This includes contents weight and box weight.
Box Settings
Box Settings

How the calculation works

The packer does the following:
  1. Finds boxes which fit the items being packed (uses H x W x D).
  2. Packs all fitting items into boxes (using volume).
  3. The largest box which fits 100% of items is used *or* use the highest % packed box, and then pass unpacked items back (and repeat the process)
  4. Unpackable items are packed alone, using the item dimensions.
  5. All packed boxes are returned.

Customer Usage

Customers will get quotes (after inputting their address) from two places;
  1. The cart page – by using the shipping calculator
  2. The checkout page – by filling in the shipping and billing forms
Rates can be selected by customers as normal.

Troubleshooting

No rates returned/no rates available

  1. Enable debug mode to see debugging information on the cart page. This will often reveal the problem.
  2. Check your products have sizes and weights set – without this the calculation cannot be performed.
  3. Check your store’s base country is New Zealand and that your using NZ Dollars (from WooCommerce > Settings > General).
  4. The plugin needs to be able to talk to NZ Post API. For this it uses wp_remote_post which makes use of fsockopen/CURL.

0 Comments:

Post a Comment

Note: only a member of this blog may post a comment.

Subscribe to Post Comments [Atom]

<< Home