You can use Shopblocks Rules to create dynamic groups, special delivery offers, discounts and more in your Shopblocks Admin. They can seem daunting at first but don’t worry, we’ve made using and creating rules very simple. Once you’ve got a hang of them you’ll realise how useful they are!
How do Shopblocks Rules work?
The purpose of creating rules is to end up with a dynamic list of products, orders, deliveries or discounts, that you can use in other parts of your shop.
Say if you wanted to create a product group that contained only ‘red’ products. In other software you would have to manually add each red product into that group after it was created, but in Shopblocks, you can use rules to add each new red product to the red product group as soon as it is created.
Here’s another example. If you wanted a group of products called “Cheap T-Shirts’” that contain all the t-shirts in your shop that cost less than £5 then you would create two rules for this:
1. Include all the T-Shirts
2. Exclude all T-Shirts that are more expensive than £5
This would create a dynamic group of all your t-shirts than are less than £5. The best part is that every time you add another t-shirt that is less than £5 or change the price of a current t-shirt to less than £5, they will be added into this group automatically. You can then use product group blocks (via BlockLab) on different pages on your shop website without having to worry about keeping the set of products up to date.
Rules can be created to either ‘Include’ or ‘Exclude’ certain products, categories, order amounts and so on. The ‘Include’ section is where you specify which items should be included in this rule set, while ‘Exclude’ does the opposite.
Rules added into this section define which items to include in the group.
Rules added into this section define which items to exclude from the group.
‘Products must match’ option
This is only used when there is more than one rule in either Include or Exclude to decide how you want your rules to work together. There are two options from which to choose here, ‘Any Rules’ and ‘All Rules’.
You can think of it like this: ALL RULES means AND, ANY RULES means OR.
Let’s say we’re creating a product group called ‘Felt Hard Tail Bikes’.
Let’s create two ‘Include’ rules:
1. Product must be in the Hard Tail Mountain Bikes category
2. Brand must be Felt
If your ‘Products must match’ option is set to ‘All Rules’ (AND), then the ‘Felt Hard Tail Bikes’ product group would contain all hard tail mountain bikes made by Felt.
On the other hand, if your ‘Products must match’ option is set to ‘Any Rules’ (OR), then the ‘Felt Hard Tail Bikes’ product group would contain all the hard tail mountain bikes and any Felt bikes.
The ‘Products matching’ list changes depending on where you are in your Shopblocks admin. The fields available in Discounts and Deliveries are different to what is available in Product Groups, for example.