I am creating a custom VirtueMart order item export. Some products have a custom field of type "Cart Variant". In this specific case, customers can select "yes" or "no" from a list when they put the product in the basket. I need to include the customer entered value in my order item export.
It seems custom field values are not stored as one might expect. The only thing I have been able to find, is a piece of json wrapped HTML in column product_attribute
of table #__virtuemart_order_items
. I could preg_match
the value out of there, but that's rather crude and quite unreliable. Unfortunately I haven't been able to find the actual data as a plain value anywhere.
Can anybody tell me if I am missing something?