Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steve Borg 28 posts 99 karma points
    Apr 13, 2017 @ 07:07
    Steve Borg
    0

    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

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Apr 13, 2017 @ 15:26
    Rusty Swayne
    0

    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 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 =)

Please Sign in or register to post replies

Write your reply to:

Draft