Post by ibaker » Tue Apr 02, 2024 2:32 pm

I have been evaluating OC for a few weeks now on my local PC under XAMPP in consideration of a move away from many years with CS-CART and have a question on how the Australia Post Module works.

As most of my products are drop shipped I don't know their physical dimensions BUT I do know their weight. So with the Australia Post module in Open Cart do products have to have a size (i.e. LxWxH) or does the module with an API key work just based on weight (i.e. product sizes are just 0cm x ocm x 0cm)

Your help is greatly appreciated and thanks

User avatar
New member

Posts

Joined
Thu Mar 13, 2014 8:41 am

Post by straightlight » Tue Apr 02, 2024 7:36 pm

OC version. Requires an API key.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ibaker » Wed Apr 03, 2024 6:59 am

Thanks, yes I know that but I am asking if it works with just product weight and not sizes

User avatar
New member

Posts

Joined
Thu Mar 13, 2014 8:41 am

Post by straightlight » Wed Apr 03, 2024 11:42 pm

ibaker wrote:
Wed Apr 03, 2024 6:59 am
Thanks, yes I know that but I am asking if it works with just product weight and not sizes
In catalog/model/extension/shipping/auspost.php file (out-of-the-box):

Code: Select all

curl_setopt($curl, CURLOPT_HTTPHEADER, ['AUTH-KEY: ' . $api_key]);
				curl_setopt($curl, CURLOPT_URL, 'https://digitalapi.auspost.com.au/postage/parcel/domestic/service.json?from_postcode=' . urlencode($this->config->get('shipping_auspost_postcode')) . '&to_postcode=' . urlencode($address['postcode']) . '&height=' . $height . '&width=' . $width . '&length=' . $height . '&weight=' . urlencode($weight));
Those are the parameters already set in the request.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 18 guests