Hello.
I have a OrderIsPassedToCheckoutHandler in which I am checking for category values for the products in the order lines, like so:
foreach (var orderLine in currentOrder.OrderLines) { var restrictedStatesForProduct = orderLine.Product.GetCategoryValue(STATES_CATEGORY, STATES_FOR_PRODUCT);
And then doing some processing (the values, when available, are a comma separated list). This was working, until I changed the product to have variants, and have the category be the same for the product and variants. After that it started coming as null. I also tried loading the main product if the value was null, so I could get to the values from there, but that also comes back as null.
Is there a way to get around this? Or am I missing something maybe?
Thanks,
Marco