Awesome plugin, been using it for a while now. Only thing I cant quite work out is the custom fields part. Is it possible to echo out all custom fields attached to the product with values using twig? At the moment I can only find a way to echo out that field like
{{ product.weight }}
But I would like something that would return every custom field name and value.
Hi octobro,
Sorry for the late.
In the 1.11.17 version I've added a product.customfields attribute so you can make a loop on it and it will give you the customfield name => custom field value as you need.
Now it has the display_name and value outside the customfields key. This isn't good because if I had multiple customfields added dynamically I won't know the name. For example if I added in a custom field called Size. Size would appear in the product info but it would be better if it was looped in the customfields key.