I'm writing a plugin for Craft Commerece that performs action on
I need to check the value of product custom field (Matrix) in order to determine action parameters.
I tried to use
$lineItem->purchasable->product->myCustomFieldHandle, but this returns me
ElementCriteriaModel without any data entered for product in this field.
Any ideas on how to get actual data saved in custom field for product?