Copied to clipboard

Flag this post as spam?

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


  • Trevor Loader 199 posts 256 karma points
    Jun 01, 2016 @ 18:33
    Trevor Loader
    0

    Adding extended data in Bazaar/Merchello v2

    I need to add some extra data to the order line when adding a product to the cart. In my implementation of AddToBasket in Bazaar this is what I am trying to do:

        // This is for legacy implementations of the Bazaar.  Using IProductContent we don't need this anymore.
        var extendedData = new ExtendedDataCollection();
        extendedData.SetValue("umbracoContentId", model.ContentId.ToString(CultureInfo.InvariantCulture));
        extendedData.SetValue("classId", model.ClassId.ToString(CultureInfo.InvariantCulture));
        extendedData.SetValue("studentId", model.StudentId.ToString(CultureInfo.InvariantCulture));
    

    But the class and student are not going into the extended json against the order line. I see the comment at the top saying that this is for legacy Bazaar implementations and that it now uses IProductContent - but can't figure out how IProductContent comes into play when creating the extended JSON.

    Any hints for be awesome.

    Thanks, Trevor

  • Trevor Loader 199 posts 256 karma points
    Jun 01, 2016 @ 22:35
    Trevor Loader
    1

    I'm an egg. This code works fine.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jun 02, 2016 @ 15:27
    Rusty Swayne
    0

    LOL - "I"m an egg" ... never heard that one =)

  • Trevor Loader 199 posts 256 karma points
    Jun 02, 2016 @ 20:32
    Trevor Loader
    0

    Its a Kiwi thing...from the urban dictionary...

    Egg An egg is a New Zealand slang word for someone who is acting like a dumba55, clown or an idiot. However it is used as a nicer way of saying such things. A recent Kiwi movie called "Boy" uses this word several times. It also could be used instead of saying d#k. "stop being a d#k, bro"

    Stop being an egg, bro

    :-)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies