Title: Girth
Last modified: May 22, 2024

---

# Girth

 *  [tekone](https://wordpress.org/support/users/tekone/)
 * (@tekone)
 * [2 years ago](https://wordpress.org/support/topic/girth/)
 * Hi Team,
 * Slight bug in the plugin. Girth is being the limiting factor for a domestic shipment,
   140cm Girth is only a requirement for International shipment.
 * The restriction for domestic shipping is 0.25 cubic metres.
 * [https://auspost.com.au/business/shipping/guidelines/size-weight-guidelines](https://auspost.com.au/business/shipping/guidelines/size-weight-guidelines)
 * Workaround to get me by is below, however it would be nice to have this handled
   in the official code base.
 *     ```wp-block-code
                   // Min sizes - girth minimum is 16cm
                   $girth = ( round(wc_get_dimension($dimensions[0], 'cm', $from_dimension_unit)) + round(wc_get_dimension($dimensions[1], 'cm', $from_dimension_unit)) ) * 2;
   
   
                   $cubic_meters = (round(wc_get_dimension($dimensions[0], 'cm', $from_dimension_unit)) * round(wc_get_dimension($dimensions[1], 'cm', $from_dimension_unit)) * round(wc_get_dimension($dimensions[2], 'cm', $from_dimension_unit))) / 1000000;
   
                   if ($package['destination']['country'] == 'AU') {
                       if ($parcel['weight'] > 22 || $dimensions[2] > 105 || $cubic_meters > 0.25) {
                           $this->debug( wp_kses_post('Product ' . $item_id . ' has invalid weight/dimensions. Aborting. See <a href="http://auspost.com.au/personal/parcel-dimensions.html">http://auspost.com.au/personal/parcel-dimensions.html</a>', 'wf_australia_post' ), 'error');
                           return;
                       }
                   }elseif ($girth < 16 || $girth > 140) {
                       $this->debug(sprintf(__('Girth of the product should lie in between 16cm and 140cm. See <a href="http://ausporthst.com.au/personal/parcel-dimensions.html">http://auspost.com.au/personal/parcel-dimensions.html</a>', 'wf_australia_post'), $item_id), 'error');
                       return;
                   }
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [ELEXtensions](https://wordpress.org/support/users/elextensions/)
 * (@elextensions)
 * [2 years ago](https://wordpress.org/support/topic/girth/#post-17773400)
 * Hello [@tekone](https://wordpress.org/support/users/tekone/),
 * Thanks for contacting us. Yes, there are weight and dimension restrictions in
   the Australia Post Eparcel account for both domestic and international shipping.
   However, we are unable to modify our plugin to enforce these restrictions because
   it is integrated with Star Track shipping services, which allow for larger shipment
   weights and dimensions. Additionally, we have chosen not to hardcode any restrictions
   for Australia Post shipping services within our plugin.
 * I hope this clarifies things! If you have any further questions, please don’t
   hesitate to reach out to us.

Viewing 1 replies (of 1 total)

The topic ‘Girth’ is closed to new replies.

 * ![](https://ps.w.org/elex-australia-post-shipping/assets/icon-256x256.png?rev
   =2802389)
 * [ELEX WooCommerce Australia Post Shipping](https://wordpress.org/plugins/elex-australia-post-shipping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elex-australia-post-shipping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elex-australia-post-shipping/)
 * [Active Topics](https://wordpress.org/support/plugin/elex-australia-post-shipping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elex-australia-post-shipping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elex-australia-post-shipping/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ELEXtensions](https://wordpress.org/support/users/elextensions/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/girth/#post-17773400)
 * Status: not resolved