Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1444 posts 1855 karma points
    Feb 13, 2019 @ 15:17
    Gordon Saxby
    0

    Sorting Variants once added to a product

    Umbraco 7.4.2, TC v3.1.1

    Adding Variants to a Product is a less than ideal process - even more so if we want to add / alter it afterwards.

    The 2 variants we have are colour and size. The variants are stored in Umbraco in the desired order (visually), however it seems as though TeaCommerce sorts them in NodeId order, which may be different.

    So, the first question is - can I make TC respect / retain the Umbraco defined order when selecting Variants?

    Secondly, once the variants have been added to a Product, there is no way of changing the order of them. This is especially a problem if a new Variant is added as I cannot put it in the right place.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Feb 13, 2019 @ 19:01
    Matt Brailsford
    0

    Are we talking back end? (selecting variants in the product editor) or front end? (selecting a variant on the product page)

  • Gordon Saxby 1444 posts 1855 karma points
    Feb 14, 2019 @ 08:48
    Gordon Saxby
    0

    In the backend - after adding Variants to a Product using the "TeaCommerce: Variant Editor", there is no way to sort them - e.g. I can't drag and drop them into the correct order.

    This is especially an issue if extra variants are added later.

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Feb 14, 2019 @ 16:09
    Matt Brailsford
    0

    Hey Gordon,

    It looks like there is already an issue for this https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco/issues/48

    Looking at the source code for the variants property editor, I found this line https://github.com/TeaCommerce/Tea-Commerce-for-Umbraco/blob/master/Source/TeaCommerce.Umbraco.Application/PropertyEditors/variant-editor.controller.js#L708 which defines a sort order for variant columns, but not sure if that's what you are after.

    I'm going to have to go away and try it out to see what can be done.

Please Sign in or register to post replies

Write your reply to:

Draft