Copied to clipboard

Flag this post as spam?

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


  • Jorge 37 posts 119 karma points
    Jul 13, 2017 @ 01:17
    Jorge
    0

    Missing Sku on IProductVariantDataModifierData

    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.

    Anyway I can show the Sku there?

Please Sign in or register to post replies

Write your reply to:

Draft