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.
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"
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:
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
I'm an egg. This code works fine.
LOL - "I"m an egg" ... never heard that one =)
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
:-)
is working on a reply...