Copied to clipboard

Flag this post as spam?

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


  • William Zhang 39 posts 243 karma points
    Jul 28, 2016 @ 10:19
    William Zhang
    0

    Merchello product picker include variants

    Hi there,

    I'm looking for the possibility of being able to select products variants through the Merchello product picker data type. It seems that at the moment it is limited to "regular" products...

    The use case is this: say that I create a collection for a special offer that only applies to certain products, which the admin chooses through the product picker. However, currently there is no way to choose a specific variant of a product - this is problematic since we don't necessarily want to include other variants of the same product.

    What would be the easiest way to accomplish this?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jul 28, 2016 @ 20:49
    Rusty Swayne
    100

    You could look at the "Product Rules" constraint when creating a coupon which allows for selecting a product and then restricting to certain variants of that product ....

    I think there would be a lot of similar code to what you are describing turning into a custom data type.

  • Chris 47 posts 127 karma points
    Oct 20, 2016 @ 14:47
    Chris
    0

    This would be a very useful (almost necessary) core feature. Did you ever make progress with this, William?

  • William Zhang 39 posts 243 karma points
    Oct 20, 2016 @ 18:22
    William Zhang
    0

    Hey Chris,

    Yes, I created a custom datatype based on the regular product picker and tailored it to my specific needs.

    The main difference is that in my case I'm using an ElasticSearch facade instead of the normal Merchello product API - in this facade the products are stored in a flat structure, which makes working with variants somewhat easier.

Please Sign in or register to post replies

Write your reply to:

Draft