This article is for a specific option in the order includes, and order doesn't include shipping rules. If you need more general shipping rules help, please see the Shipping Rules help page. And as always, if you get stuck or have any questions, please email us at better.shipping@atomyard.com.
Underneath the order include and order doesn't include product selection boxes, there is a dropdown to choose how the app processes the selected items.
Most of the time, you will want to choose 'any of the selected' which is the default. But if you have a more complex shipping scenario, you may want to leverage the power of the other options. In the following articles each of the options is explained with examples for both order includes rules and order doesn't include rules.
The any/all/only all/only any selections are the same whether you are using the 'by specific product', 'by specific product and/or variants', 'by product type', 'by product vendor' or 'by product tags'.
- Order includes 'any of the selected'
- Order includes 'all of the selected'
- Order includes 'only all the selected'
- Order includes 'only any of the selected'
- Order doesn't include 'any of the selected'
- Order doesn't include 'all of the selected'
- Truth tables
In the examples below, we use 'by specific product' in the examples, but the same applies for all the other options, i.e. variants, vendors, tags, types.
Order includes 'any of the selected':
If any selected product is in the cart, the rule activates.
This is the default choice. This means that if any of the selected products are in the cart, the rule will be triggered. This is useful if you want to trigger a special price if a certain item is in the cart. Or disable an express rate if oversize items are in the cart.
For example, if you set up the rule with a hat, and a shirt in the right hand 'selected' box. If a customer checks out with:
Just a hat in the cart, with any amount of other products in the cart, the rule will trigger
Just a shirt in the cart, with any amount of other products in the cart, the rule will trigger.
Both a hat and shirt in the cart, with any amount of other products in the cart, the rule will trigger.
If the customer has shoes in the cart, the rule will not trigger.
At least one of the selected products must be in the cart for the rule to trigger.
Order includes 'all of the selected':
All selected products must be in the cart for rule activation. Other products may also be present.
This option is useful if you want to have a special price when two or more items must be present in the cart.
For example if you set up the rule with a hat, and a shirt in the right hand 'selected' box. If a customer checks out with:
Just a hat in the cart, with any amount of other products in the cart, the rule will not trigger
Just a shirt in the cart, with any amount of other products in the cart, the rule will not trigger.
Both a hat and shirt in the cart, with any amount of other products in the cart, the rule will trigger.
As long as all selected values are in the cart, in any quantity, with any amount of unselected items, the rule will trigger. If not all selected values are in the cart, it will not trigger.
Order includes 'only all the selected':
The cart should exclusively contain all selected products for the rule to activate.
This option is most useful when you want to charge a specific price for an exact cart, or if you use the product types, you may want to have a flat rate if smaller items are the only ones in the cart (e.g. accessories), and use the per product rates for other items.
For example if you set up the rule with a hat, and a shirt in the right hand 'selected' box. If a customer checks out with:
Just a hat in the cart, with any amount of other products in the cart, the rule will not trigger
Just a shirt in the cart, with any amount of other products in the cart, the rule will not trigger.
Both a hat and shirt in the cart, with any amount of other products in the cart, the rule will not trigger.
Only a hat and shirt in the cart, with no other products, the rule will trigger.
Another example if is if you have a bike store, and you want to have accessories ship for a $15 flat rate. But if a customer buys a bike, they don't need to pay the flat rate, and just pay for the bike shipping. In that case if you use the 'by product type' and make sure all accessories have the accessory type, and bikes have the product type bikes. You can use the only all rule with the accessory type selected, and that will only trigger when the customer only has accessories in the cart. If they have a bike, the rule will not be activated and the customer will only pay for the bike shipping.
Order includes 'only any of the selected':
The cart should contain only selected products for the rule to activate, but not all are required.
This option is useful for having a special price if only selected products are in the cart.
For example if you were running a promotion where selected items had free shipping, but if there were any other items in the cart, then the cart was treated with your normal shipping rules.
If you set up the rule with a hat, and a shirt in the right hand 'selected' box. If a customer checks out with:
Just a hat in the cart, with any amount of other products in the cart, the rule will not trigger
Just a shirt in the cart, with any amount of other products in the cart, the rule will not trigger.
Both a hat and shirt in the cart, with any amount of other products in the cart, the rule will not trigger.
Only a hat in the cart, with no other products, the rule will trigger.
Only a shirt in the cart, with no other products, the rule will trigger.
A hat and a shirt in the cart, with no other products, the rule will trigger.
Order doesn't include 'any of the selected':
If any selected product is absent from the cart, the rule activates.
This means that if any of the selected products are not in the cart, the rule will be triggered. This is useful if you want to hide a rate if a certain item is not present.
For example, if you set up the rule with a hat, and a shirt in the right hand 'selected' box. If a customer checks out with:
Just a hat in the cart, with any amount of other products in the cart, the rule will not trigger
Just a shirt in the cart, with any amount of other products in the cart, the rule will not trigger.
Both a hat and shirt in the cart, with any amount of other products in the cart, the rule will not trigger.
If the customer has shoes in the cart, the rule will trigger.
Shoes and a hat in the cart, the rule will not trigger
The cart must not contain any of the selected products for the rule to trigger.
Order doesn't include 'all of the selected':
All selected products must be absent from the cart for rule activation. Other products may also be present.
For example if you set up the rule with a hat, and a shirt in the right hand 'selected' box. If a customer checks out with:
If "ALL" selected products (both hat and shirt) are not in the customer's cart, the rule triggers.
Example: The customer's cart contains only "shoes". Since neither of the selected items (hat and shirt) are in the cart, "ALL" selected products are absent from the cart, and thus, the rule triggers.
Just a hat in the cart, with any amount of other products in the cart, the rule will trigger
Just a shirt in the cart, with any amount of other products in the cart, the rule will trigger.
Both a hat and shirt in the cart, with any amount of other products in the cart, the rule will not trigger.
Only shoes in the cart, the rule will trigger
Shoes and a hat in the cart, the rule will trigger
Truth tables:
For those of you that need a truth table to see all of the options, they are below for both order includes and order doesn't include. Both tables assume that you are using the 'by specific product' and that the selected items are a hat and a shirt. Unselected items are the shoes.
Order includes | ||||||
Rule has hat and shirt selected | ||||||
Hat | Shirt | Hat and shirt | Hat, shirt, shoes | shoes | hat, shoes | |
ANY | TRUE | TRUE | TRUE | TRUE | FALSE | TRUE |
ALL | FALSE | FALSE | TRUE | TRUE | FALSE | FALSE |
ONLY ALL | FALSE | FALSE | TRUE | FALSE | FALSE | FALSE |
ONLY ANY | TRUE | TRUE | TRUE | FALSE | FALSE | FALSE |
Order doesn't include | ||||||
Rule has hat and shirt selected | ||||||
Hat | Shirt | Hat and shirt | Hat, shirt, shoes | shoes | hat, shoes | |
ANY | FALSE | FALSE | FALSE | FALSE | TRUE | FALSE |
ALL | TRUE | TRUE | FALSE | FALSE | TRUE | TRUE |
If you have any issues or questions, or need to know how to apply this to your store, please email us at better.shipping@atomyard.com. We are always happy to help.