Wednesday, 31 May 2017

WooCommerce Australia Post Shipping Method 2.4.3 Extension

WooCommerce Australia Post Shipping Method 2.4.3 Extension

Download

http://getlot.co/shop/woocommerce-australia-post-shipping-method-extension/

Get it now



WooCommerce Australia Post Shipping Method 

Get Shipping Rates via the Australia Post Shipping API

Do you need to ship products in and around Australia? Use the Australia Post service to ship your products? The Australia Post Shipping Method makes this a breeze.
Australia Post is a premium shipping method which let you get shipping rates from Australia Post’s Shipping API which handles both domestic and international parcels.
The extension requires that your store uses Australian Dollars for it’s currency and primarily works with cm and kg, but other units can be converted automatically. It can check availability and costs of the following services:
DOMESTICINTERNATIONAL
  • Regular / Parcel Post
    • Small
    • Large
    • 500g Satchel
    • 3kg Satchel
    • 5kg Satchel
  • Express Post
    • Small
    • Large
    • 500g Satchel
  • Courier Post
    • Small
    • Medium
    • Large
  • Express Post International
  • Express Courier International Platinum
  • Express Courier International
  • Registered Post International
  • Pack and Track International
  • Air Mail
  • Sea Mail

Please note: The Australia Post Shipping Method is for standard calculations only via the API, and does
not support “Prepaid Parcel Post satchels” and their bulk discounts.

Other features:

  • Enable additional services such as extra coverage and delivery confirmation.
  • Enable/disable, edit the names of, and add costs to services
  • Pack items individually or using the built in box packer



Services





Box packing settings

Australia Post

Australia Post is a premium shipping method that allows you get shipping rates from Australia Post’s API. It requires that your store uses Australian Dollars (AUD) for its currency and that your store’s base country is Australia.

Installation

  1. Download the .zip file from your WooCommerce account.
  2. Go toWordPress Admin > Plugins > Add New to upload the file you downloaded with Choose File.
  3. Activate the extension.
More information at: Installing and Managing Plugins.

API Key and Debug

You can set this under WooCommerce > Settings > Shipping > Australia Post
API access details are on the Australia Post website. Obtain your own key, or use ours.
  1. API Key – Get this from Australia Post or leave blank to use our API Key.
  2. Debug Mode – Enable/disable debug mode to show debugging information on your cart/checkout.

Setup and Configuration

  1. Go toWooCommerce > Settings > Shipping.
  2. Select the Shipping Zone you want to add the method to, and click the Add shipping method + button on the right.
    Add shipping method
  3. Select Australia Post from the dropdown and click Add shipping method:
    screen-shot-2016-10-07-at-11-09-04-am
  4. Select the shipping method you wish to configure.
  5. Configure the settings:
    • Method Title – Name the shipping method. This is visible to customers.
    • Origin Postcode – Should be set to the postcode from where you ship, and is sent to the Australia Post API.
    • Method Availability –  Allows you to narrow down the countries that get quotes. Leave set to All Countries to make available to all customers.
    • Rates and Service 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 the cheapest rate.
      3. Services – Here you can enable/disable, re-order, rename and configure Australia Post shipping rates.

Parcel Packing Methods

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

Pack items individually (Default)

Each item in your cart (non-virtual) is sent to the Australia Post API. Quotes for all items are combined for the final cost.

Weight of all items

The combined weight of all items in the cart is used to calculate the cost. If the package becomes too heavy, it is split. Using this method, a Maximum weight field appears and must be filled out.

Pack into boxes with weights and dimension (Recommended)

Items are 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:



Box settings
Box settings

Outer dimensions are used for parcel dimensions and are passed to the API.
Inner dimensions are used for packing, and items will be fit within these.
Box weight is the weight of the actual box, and will be added to the weight of the contents.
Max weight is the maximum weight your box can hold. This includes contents weight and box weight.
Letter: This checkbox determines whether your package is a letter (envelope) or a box.

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.
The Australia Post API requires that your non-virtual products have weights and dimensions set. See here if you need to know how to do this.

Satchel Rates

Satchel Rates are flat rates that you can use, instead of defining box sizes. If Satchel Rates are enabled on your site, then items are calculated based on one of three satchels available:
  • 500g satchels are 335mm x 220mm (w x h) and are suitable for shipping CDs, iPods, mobile phones
  • 3kg satchels are 405mm x 310mm (w x h) and are suitable for Fashion, books, digital cameras, toys
  • 5kg satchels are 510 x 435mm (w x h)
There are three options regarding the Satchel Rates dropdown:
  • Enable Satchel Rates – Uses the above satchels to calculate shipping, which ignores your custom boxes.
  • Prioritize Satchel Rates – Uses Satchel Rates when applicable, but if your item does not meet criteria or fit in the satchel box, it will use a custom box size.
  • Disable Satchel Rates – Ignores Satchel Rates and uses your own boxes.
If you don’t intend to use the pre-defined satchels and want to use your own box sizes for the calculator, you need to select the option Disable Satchel Rates.

Services

In the Services section of the menu, you can choose which Australia Post services you want your customers to receive.
Australia Post Service Options
There are a few fields to note:
  • Extra Cover is an optional selection that will increase the price of your shipping by adding additional insurance during transfer.
  • Signature / Registered is another optional selection to cover tracking and (if purchased) signature at delivery.
  • The Adjustment fields increase shipping by a flat amount or percent. A blank field leaves rates untouched.
    • i.e. Your shipping is $10 with $5 in Adjustment ($) – the customer will be charged $15 for shipping.
    • i.e. Your shipping is $10 with %15 in Adjustment (%) – the customer will be charged $11.50 for shipping.

Customer Usage

Customers will get quotes (after inputting their address) from two places:
  1. Cart page – by using the shipping calculator
  2. 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. Ensure your API credentials are correct.
  2. Enable development mode, or turn on WP_DEBUG to see debugging information on the cart page. This will often reveal the problem.
  3. Check your products have sizes and weights set – without this the calculation cannot be performed.
  4. Check your store’s base country is Australia and that your using Australian Dollars (from WooCommerce > Settings > General).

How do I make it return Australia Post Satchel Rates?

Satchel rates will be returned if the item (or the outer dimensions of your boxes, if you are using box packing) fit inside the satchel dimensions.
  1. 500g satchels are 335mm x 220mm ( W x H ) and are suitable for shipping CDs, iPods, mobile phones.
  2. 3kg satchels are 405mm x 310mm ( W x H ) and are suitable for Fashion, books, digital cameras, toys.
  3. 5kg satchels are 510 x 435mm ( W x H ).
When a service is made up of several types of rate, including satchel, e.g. Regular Post, Satchel rates will only be used if they are the cheapest.
If you are using box packing, choose a box L x W x H outer size which would fit inside a satchel. The length you use is up to you – usually this will be determined by the products being shipped.

How do I make it return Australia Post Letter Rates?

In order to get Australia Post to return letter rates, you will have to configure custom boxes in the extension using the Pack into boxes with weights and dimensions (Recommended) method.
Once you have chosen this method, please be sure to enter the box sizes you require (please ensure that these box sizes are same as the letter-box sizes mentioned in the Australia Post website – otherwise the extension will not calculate letter rates), and please tick the Letter check box:
By doing this, the Australia Post extension will fetch letter rates using the API, and fetch accurate letter rates for your customers.

Error message in cartFatal error: Cannot use object of type WP_Error as array in ../woocommerce-shipping-australia-post/classes/class-wc-shipping-australia-post.php on line 1086

You can see this error message if your server can not use the wp_remote_get() function. This is something you can verify in the Status Report:
wp_remote_get
In this case, we recommend you to contact your hosting company so that they update your server.

How do I adjust tax rate?

If you need to adjust tax rate, you can add the following snippet to the file called “functions.php” within your theme folder:
add_filter( 'woocommerce_shipping_australia_post_tax_rate' , 'woocommerce_shipping_australia_post_custom_tax_rate' );
/**
* Adjust tax rate
*
* @access public
* @since 1.0
* @return void
*/
function woocommerce_shipping_australia_post_custom_tax_rate() {
return '0.09090909';
}
view rawgistfile1.txt hosted with ❤ by GitHub




0 Comments:

Post a Comment

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

Subscribe to Post Comments [Atom]

<< Home