Configurations design tips
To build efficient and optimized configurations, it’s important for you to know how to design them. Configurations perform a certain amount of queries in the database. Each query needs a few milliseconds to be processed. So the lighter and simpler your configuration, the faster your configurator will be.
/!\ Associated posts /!\
1. How to design light and simple configurations?
We will start with an example to that you can picture it.
Let’s say you sell shirts with the following features:
- Color: black, red, blue
- Sleeve type: long, short
- Collar type: band, spread
Instead of creating only one configuration for all these shirts, it is better to create one configurator per type of sleeve and collar. Or a combination of both.
For example, you can create a configuration for each of the following combinations
- Shirt with long sleeves and band collar
- Shirt with short sleeves and spread collar
- Shirt with with long sleevses and spread collar
- Shirt with short sleeves and band collar
Those combinations will be represented by variations in the Woocommerce product settings, to which you will assign the right configurations.
It’s better to have several, but light and simple configurations, rather than one big heavy configuration in which you have to create too many components, options groups and conditional rules.
2. Conditional logic optimization
Though you can theoretically create as many conditional rules as you want, we recommend not to exceed 50 rules to keep the configurator as fast as possible. And remember that as explained here, enabling the reverse rule counts for 1 more rule.
If you have to create more than 50 rules for a configuration, it means you need to rethink it.
Last updated on May 15, 2023