[Skip to main content](#vessel-content)

#   Shopping Cart Volume not getting generated correct

##

- **[crowcreekc](/forum/user/6451-crowcreekc "View crowcreekc's Profile")**
- [![crowcreekc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6451-crowcreekc "View crowcreekc's Profile") Topic Author
- [ Offline](/forum/user/6451-crowcreekc)

Less More

- Posts: 33
- Thank you received: 0
-
-

13 years 5 months ago [\#104428](#104428) by [crowcreekc](/forum/user/6451-crowcreekc "View crowcreekc's Profile")  *[Shopping Cart Volume not getting generated correct](/forum/3-bug-report/82002-shopping-cart-volume-not-getting-generated-correct#104428 "Found and issue with shipping calculations.  1. I have and item that is 50 X 33 X 18 cm. Fine by Australia Post, but if I order 3 of the same items and group together it should give the error that it exceeds the max volume allowed by the selected Shipping Method. As you should send the 33 x (18 &#42; 3), but instead you send 33 x 18 calculating the incorrect volume and providing in accurate shipping quotes. In the example above, if we sent to North Queensland it would cost us $40 in shipping.  2. So then I said not to group products so it would force 1 item per box, it does this correctly but does not add the additional charge for each box. Our additional charge include the cost of Registration and Tracking, so needs to be added for each box not just the first one.  Hopefully I am doing something wrong, but I have tried every combination and so far these results are consistent.  Richard")* was created by *[crowcreekc](/forum/user/6451-crowcreekc "View crowcreekc's Profile")*

Found and issue with shipping calculations.

1. I have and item that is 50 X 33 X 18 cm. Fine by Australia Post, but if I order 3 of the same items and group together it should give the error that it exceeds the max volume allowed by the selected Shipping Method. As you should send the 33 x (18 * 3), but instead you send 33 x 18 calculating the incorrect volume and providing in accurate shipping quotes. In the example above, if we sent to North Queensland it would cost us $40 in shipping.

2. So then I said not to group products so it would force 1 item per box, it does this correctly but does not add the additional charge for each box. Our additional charge include the cost of Registration and Tracking, so needs to be added for each box not just the first one.

Hopefully I am doing something wrong, but I have tried every combination and so far these results are consistent.

Richard

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MjAwMi1zaG9wcGluZy1jYXJ0LXZvbHVtZS1ub3QtZ2V0dGluZy1nZW5lcmF0ZWQtY29ycmVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 5 months ago -  13 years 5 months ago [\#104904](#104904) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Shopping Cart Volume not getting generated correct](/forum/3-bug-report/82002-shopping-cart-volume-not-getting-generated-correct#104904 "Found and issue with shipping calculations.  1. I have and item that is 50 X 33 X 18 cm. Fine by Australia Post, but if I order 3 of the same items and group together it should give the error that it exceeds the max volume allowed by the selected Shipping Method. As you should send the 33 x (18 &#42; 3), but instead you send 33 x 18 calculating the incorrect volume and providing in accurate shipping quotes. In the example above, if we sent to North Queensland it would cost us $40 in shipping.  2. So then I said not to group products so it would force 1 item per box, it does this correctly but does not add the additional charge for each box. Our additional charge include the cost of Registration and Tracking, so needs to be added for each box not just the first one.  Hopefully I am doing something wrong, but I have tried every combination and so far these results are consistent.  Richard")*

Hi Richard,

1. I've done some tests and **3 package** will be sent to Australia post, the "Group Package" option will just allow you to group your package if they **aren't exceeding the Australia Post limits** (105x35x35 cm), else the "Group Package" option will be **disabled** and you'll send your products trough different packages.

In you case You'll send **3 different packages**:  [ ![Aupost&#95;GP.png](/forum/attachment/10215) ](/forum/attachment/10215 "Aupost&#95;GP.png")

2. The "Additional fee" option of your shipping method is a fee that will be added to every **Australia Post available service fee**, so it will be added **just one time** for each Australia Post service. However, we are currently working on a "**multi shipping**" feature that will allow you to use the "**price per product**" option for every shipping method.

Hope this will help you a little ![:)](/media/kunena/emoticons/3.png ":)").

- [ ![Aupost&#95;GP.png](/forum/attachment/10215) ](/forum/attachment/10215 "Aupost&#95;GP.png") [ ](/forum/attachment/10215?download=1 "Aupost&#95;GP.png")

Last edit: 13 years 5 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MjAwMi1zaG9wcGluZy1jYXJ0LXZvbHVtZS1ub3QtZ2V0dGluZy1nZW5lcmF0ZWQtY29ycmVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[crowcreekc](/forum/user/6451-crowcreekc "View crowcreekc's Profile")**
- [![crowcreekc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6451-crowcreekc "View crowcreekc's Profile") Topic Author
- [ Offline](/forum/user/6451-crowcreekc)

Less More

- Posts: 33
- Thank you received: 0
-
-

13 years 5 months ago [\#104924](#104924) by [crowcreekc](/forum/user/6451-crowcreekc "View crowcreekc's Profile")  Replied by *[crowcreekc](/forum/user/6451-crowcreekc "View crowcreekc's Profile")* on topic *[Shopping Cart Volume not getting generated correct](/forum/3-bug-report/82002-shopping-cart-volume-not-getting-generated-correct#104924 "Found and issue with shipping calculations.  1. I have and item that is 50 X 33 X 18 cm. Fine by Australia Post, but if I order 3 of the same items and group together it should give the error that it exceeds the max volume allowed by the selected Shipping Method. As you should send the 33 x (18 &#42; 3), but instead you send 33 x 18 calculating the incorrect volume and providing in accurate shipping quotes. In the example above, if we sent to North Queensland it would cost us $40 in shipping.  2. So then I said not to group products so it would force 1 item per box, it does this correctly but does not add the additional charge for each box. Our additional charge include the cost of Registration and Tracking, so needs to be added for each box not just the first one.  Hopefully I am doing something wrong, but I have tried every combination and so far these results are consistent.  Richard")*

Thank you for this, but the problem is when you state No to Group Package. If you do this, it will create one shipping price even though the 3 items exceed the Australia Post Limits. I would like it to flag this so we can use a different shipping method. The reason we do not use the Group Package option is because of item 2, were the additional fee is only applied to the first package.

Richard

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MjAwMi1zaG9wcGluZy1jYXJ0LXZvbHVtZS1ub3QtZ2V0dGluZy1nZW5lcmF0ZWQtY29ycmVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 5 months ago -  13 years 5 months ago [\#105241](#105241) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Shopping Cart Volume not getting generated correct](/forum/3-bug-report/82002-shopping-cart-volume-not-getting-generated-correct#105241 "Found and issue with shipping calculations.  1. I have and item that is 50 X 33 X 18 cm. Fine by Australia Post, but if I order 3 of the same items and group together it should give the error that it exceeds the max volume allowed by the selected Shipping Method. As you should send the 33 x (18 &#42; 3), but instead you send 33 x 18 calculating the incorrect volume and providing in accurate shipping quotes. In the example above, if we sent to North Queensland it would cost us $40 in shipping.  2. So then I said not to group products so it would force 1 item per box, it does this correctly but does not add the additional charge for each box. Our additional charge include the cost of Registration and Tracking, so needs to be added for each box not just the first one.  Hopefully I am doing something wrong, but I have tried every combination and so far these results are consistent.  Richard")*

As I said, in your case you'll have to send 3 packages to Australia Post and the fee will be the same regarding the state of your "Group package" option.
But if you want to restrict the use of your Australia post shipping method just for when you'll have to send 1 package, the solution would be to edit the code of your Australia Post shipping plugin and to add this code : Code:

$order_weight = 0; $order_volume = 0; $order_width = 0; $order_height = 0; $order_length = 0; foreach($order-&gt;products as $k =&gt; $product){ if(!empty($product-&gt;cart_product_quantity) &amp;&amp; !empty($product-&gt;product_weight)){ if(!isset($product-&gt;product_weight_unit_orig)) { if(isset($product-&gt;product_weight_orig)) $order_weight+=(int)$weightClass-&gt;convert($product-&gt;product_weight_orig,$product-&gt;product_weight_unit,'g') * $product-&gt;cart_product_quantity; else $order_weight+=(int)$weightClass-&gt;convert($product-&gt;product_weight,'','g') * $product-&gt;cart_product_quantity; if(!isset($product-&gt;product_dimension_unit))$product-&gt;product_dimension_unit = 'm'; $order_volume+=(int)$volumeClass-&gt;convert($product-&gt;product_length*$product-&gt;product_width*$product-&gt;product_height,$product-&gt;product_dimension_unit,'mm')* $product-&gt;cart_product_quantity; $order_width+=(int)$volumeClass-&gt;convert($product-&gt;product_width,$product-&gt;product_dimension_unit,'mm','dimension')* $product-&gt;cart_product_quantity; $order_height+=(int)$volumeClass-&gt;convert($product-&gt;product_height,$product-&gt;product_dimension_unit,'mm','dimension')* $product-&gt;cart_product_quantity; $order_length+=(int)$volumeClass-&gt;convert($product-&gt;product_length,$product-&gt;product_dimension_unit,'mm','dimension')* $product-&gt;cart_product_quantity; } else { if(!isset($product-&gt;product_dimension_unit_orig)){ $product-&gt;product_dimension_unit_orig = $product-&gt;product_dimension_unit; } if(isset($product-&gt;product_weight_orig)) $order_weight+=(int)$weightClass-&gt;convert($product-&gt;product_weight_orig,$product-&gt;product_weight_unit_orig,'g')* $product-&gt;cart_product_quantity; else $order_weight+=(int)$weightClass-&gt;convert($product-&gt;product_weight,$product-&gt;product_weight_unit,'g')* $product-&gt;cart_product_quantity; $order_volume+=(int)$volumeClass-&gt;convert($product-&gt;product_length*$product-&gt;product_width*$product-&gt;product_height,$product-&gt;product_dimension_unit_orig,'mm')* $product-&gt;cart_product_quantity; $order_width+=(int)$volumeClass-&gt;convert($product-&gt;product_width,$product-&gt;product_dimension_unit_orig,'mm','dimension')* $product-&gt;cart_product_quantity; $order_height+=(int)$volumeClass-&gt;convert($product-&gt;product_height,$product-&gt;product_dimension_unit_orig,'mm','dimension')* $product-&gt;cart_product_quantity; $order_length+=(int)$volumeClass-&gt;convert($product-&gt;product_length,$product-&gt;product_dimension_unit_orig,'mm','dimension')* $product-&gt;cart_product_quantity; } } } if($order_length &gt; 1050 &#124;&#124; $order_width &gt; 350 &#124;&#124; $order_height &gt; 350 ){ return false; }

before these lines : Code:

if(isset($rate-&gt;shipping_params-&gt;shipping_group) &amp;&amp; $rate-&gt;shipping_params-&gt;shipping_group) { foreach($order-&gt;products as $k =&gt; $product){

Last edit: 13 years 5 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MjAwMi1zaG9wcGluZy1jYXJ0LXZvbHVtZS1ub3QtZ2V0dGluZy1nZW5lcmF0ZWQtY29ycmVjdD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
