Millions of product variations
-
Please help! I have a website with a customizable product which has 6 sets of attributes each with many terms such that if I generated all of the required variations it would result in 1.5 Million variations just for one single product. This is largly due to the fact that there are 30+ colors for 2 of the different attributes as the items can have two different colors selected. There are also some other options to customise as well which is how the numbers get so high.
The thing is I don’t need that many variations. There are not 1.5M different prices and we certainly don’t have a unique image for all 1.5M combinations. The price only changes for two of the attributes which only have 2 terms (choices) each, not for every single color or other option. All I really want is the ability for the customer to select the attributes (mostly the colors) using attribute swatches and have their selections recorded and sent to the store owner.
I have found this code snippet: https://gist.github.com/mtx-z/021d092442f43e895e7fc740ef058f84 which is extremely helpful however it does not work with any of the known attribute swatch or variation swatch plugins. I have tried about 5 different swatch plugins with no luck. I can see in the code that it is just writing out a select dropdown so that is obviously why it does not work with any of the swatch plugins.
Can anyone point me to a swatch plugin which allows swatches to display and attributes to be selected for non-variable products or attributes which are not set to be used as variations?
I do think the high number of variations generated is a limitation of WooCommerce. I have run into it before on another project. It should not be necessary to create a variation for every single attribute combination if that combination does not affect the price in any way. Only those combinations which have a unique product photo or a unique price actually need variations to be created. Other attibutes could simply be recorded as a customer selection and that information passed onto the store owner.
- The topic ‘Millions of product variations’ is closed to new replies.