I have a customised product with four options where two of the options have two choices and the other two have 40 choices! This will create a variant list of 6400 items. Out of the 6400 only about 240 are actually available to purchase. I can remove the extra variants directly from the database and it seems to work fine but as soon as hit the Save button on the product page in the back-office all of the variants return.
So far I have only played with a 2x2x5x5 set of options (100 variants) so I am unsure also as to how usable the back-office pages will be when there are 6400 variants in the list.
Is there any way to do this without changing the base code? If I had to change the base code would there be any issues in doing so?
The variants will reappear with every save since Merchello expects every combination of option choices to define a variant. The available property is intended to be set false to mark unused variants.
The simplest solution would be to add a toggle to the variant list view to show/hide available variants. I'm pretty sure that could be done completely in angular (meaning no work in c#). It's a good idea and I've added it as a task for 2.6.0 - http://issues.merchello.com/youtrack/issue/M-1314
It'd be an awesome pull request if you decide to go that route and get to it before I can =)
Variant List SIze
Hi,
I have a customised product with four options where two of the options have two choices and the other two have 40 choices! This will create a variant list of 6400 items. Out of the 6400 only about 240 are actually available to purchase. I can remove the extra variants directly from the database and it seems to work fine but as soon as hit the Save button on the product page in the back-office all of the variants return.
So far I have only played with a 2x2x5x5 set of options (100 variants) so I am unsure also as to how usable the back-office pages will be when there are 6400 variants in the list.
Is there any way to do this without changing the base code? If I had to change the base code would there be any issues in doing so?
Thank you,
Best regards,
Steve
Hi Steve,
The variants will reappear with every save since Merchello expects every combination of option choices to define a variant. The
available
property is intended to be setfalse
to mark unused variants.The simplest solution would be to add a toggle to the variant list view to show/hide available variants. I'm pretty sure that could be done completely in angular (meaning no work in c#). It's a good idea and I've added it as a task for 2.6.0 - http://issues.merchello.com/youtrack/issue/M-1314
It'd be an awesome pull request if you decide to go that route and get to it before I can =)
is working on a reply...