Copied to clipboard

Flag this post as spam?

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

  • Keith Donnell 82 posts 187 karma points
    Nov 11, 2016 @ 22:33
    Keith Donnell

    Assigning images, description, etc to a Product Collection

    Hello again Rusty!

    In v2.1.0, is it possible to add custom fields to a Product Collection by using a doc type or similar method?

    The goal is to use the Merchello tree structure as the category navigation, however there doesn't seem to be any way to give the collection a description, image, etc.

    How would you recommend we do this? As of right now, the only way I can think to do this would be to have a structure within the Umbraco Content tree that matches the product collection tree in Merchello, and it doesn't seem very DRY, as we will need to maintain two separate category trees and make sure they are in sync.

    Any ideas?

  • Simon Dingley 1412 posts 3270 karma points c-trib
    Nov 14, 2016 @ 13:08
    Simon Dingley

    At the moment the way you describe is the way I have had to do it. There is a Product Collection doctype and on that doctype is a Merchello Product List View property. It actually worked out for this site as the public category names are different to those used in the actual catalog but I'd be interested to hear other approaches.

    Cheers, Simon

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Nov 14, 2016 @ 16:06
    Rusty Swayne

    Hey Keith,

    I'd be interested in other concepts as well. It is a difficult balance. We need to keep things abstract enough to work in the majority of scenarios and at the same time have come to learn that creating redundancies in Umbraco specific functionality Umbraco is at best a step sideways as they are moving forward and making changes so quickly with refinements.

    With respect to collections having to be "synced" - in your situation it sounds like they just might have to be. However, if you consider you can have more than one collection on a page and add collections to non-category pages (like a featured products collection) the argument for synchronizing the collections to starts to have issues.

    Would love to hear you ideas here.

  • John Logan 17 posts 58 karma points
    Jan 31, 2018 @ 11:38
    John Logan

    It would be great if we could associate a doctype with a product collection - perhaps it could show on the manage collection dialogue?

    The way we are currently getting round it is to have the product collection as part of an Archetype

    So for each collection I can have a

    • image
    • description
    • name - used to override in case the collection name is not suitable
    • merchello collection picker

    Cheers J

  • Ayo Adesina 390 posts 967 karma points
    Jun 16, 2018 @ 13:40
    Ayo Adesina

    I need to do this as well.....

    Now I know there is no way to get an image for a collection out of the box.

    I'm thinking to try and do it like this.

    Create a doc type called something like...

    "Product Collection Extension" with the properties

    Media Picker - For an Image. Text Area - For a description. Merchello collection picker.

    Put these in my content tree...

    Then when I need to get an image for the collection in my view, I can look for the Product Collection Extension doctype which has the value for Merchello collection that matches the one I'm looking for.

    It's not perfect, but I think that would work.

    Would love to know what you guys think about this approach?

Please Sign in or register to post replies

Write your reply to: