I have the following code to modify the data before rendering to UI.
public override Attempt<IProductVariantDataModifierData>
PerformTask(IProductVariantDataModifierData value)
{
// value.Sku missing??
// I would like to insert the below code
// if only value.Sku is available
if (value.Sku == "00001")
{
value.Price = 0;
}
return Attempt<IProductVariantDataModifierData>.Succeed(value);
}
However "Sku" is missing (and I understand it must not suppose to be there) but I need the Product Sku for another logic that will query into my database.
Missing Sku on IProductVariantDataModifierData
I have the following code to modify the data before rendering to UI.
However "Sku" is missing (and I understand it must not suppose to be there) but I need the Product Sku for another logic that will query into my database.
Anyway I can show the Sku there?
is working on a reply...