Product Icon

WooCommerce Advanced Shipping Packages

Split your cart into separate packages, with dedicated shipping configurations.

Qty of items with a shipping class

The plugin is very close to meeting a use case we have for shipping (see screenshot below). Being able to create packages based on classes in the cart is great. Where we are stuck is a requirement to use the total qty in the cart of a specific class.

We have 2 classes, “Large Products” and “Small Products”. If we have both in the cart, then we check the qty of each. If we have <=3 Larges and <=8 Smalls, we can ship the entire cart UPS. But if either of these are not true, then we need to split.

The current use of qty appears to SUM all lines in the cart regardless of class, and we want to SUM the lines in the class.

Image 2023-02-16 at 4.42.51 PM

Use case:
Image 2023-02-16 at 4.39.18 PM

Author

My Project Solution

Current Status

Open

Last updated: February 17, 2023

1 comment

Log in to comment on this feature request.

  1. jmahlmann says:

    Adding to this as well – it would be nice to be able to have a condition of “does a specific item have a certain amount of quantity” (using by product, shipping class, or category), if condition is met- take that item/ those items and put a certain quantity in that package. Check again for remaining, if there are still some with that condition – make another box and add up to a certain quantity.

    So if there was a product that can have 6 quantity of them ship together in one package (client doesn’t mix and match items together), and customer orders 9.

    CONDITIONS
    by product: [PRODUCT]
    product quantity: >= 1 (greater then or equal to 1)

    PACK IN THIS BOX:
    by product: [PRODUCT]
    quantity of product: 6

    This would pack 6 of them together, leaving 3. Since 3 is greater then or to 1, it sees that and creates another box to add the remaining 3 together.