I created a custom extended property called Credit attached to a product variant. Each variant has a different value for Credit.
My problem is that I don't know how to read the value of the Credit for the variant that is currently in my Basket. It looks like you can easily read the variant properties that come by default with Merchello (Barcode, Price, SKU, Download etc) but I can't find a way to read the value o my custom property.
Can someone show me a line of code that shows how to read this property?
Get custom extended property from a product variant
I created a custom extended property called Credit attached to a product variant. Each variant has a different value for Credit.
My problem is that I don't know how to read the value of the Credit for the variant that is currently in my Basket. It looks like you can easily read the variant properties that come by default with Merchello (Barcode, Price, SKU, Download etc) but I can't find a way to read the value o my custom property.
Can someone show me a line of code that shows how to read this property?
Thank you
Hi Mite,
Can you post your code you are using to add the item to the basket? The Credit value should be in the ILineItem ExtendedDataCollection
is working on a reply...