Creating an Australia Post Shipping Method
This addon will do the heavy lifting of calculating total package size and contacting the Australia Post PAC. This means you need to use a special Shipping Method, and not Simple Commerce's standard Shipping Method.
To make an Australia Post Shipping Method, run:
1php please make:australia-post-shipping-method YourAustraliaPostShippingMethod
This will create a new Shipping Method in your app/ShippingMethods
folder.
Edit this file, as there are four things you will need to do:
Update the
name
stringUpdate the
description
stringAdd a Domestic Service Code, or set to
false
to disable domestic calculationsAdd an International Service Code, or set to
false
to disable international calculations
Don't forget to add your new Shipping Method to Simple Commerce's Shipping configuration.