VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Kuubs on July 29, 2021, 12:03:53 PM

Title: Render Custom fields in email
Post by: Kuubs on July 29, 2021, 12:03:53 PM
Hello,

I have an issue that I want to resolve. I want to check every product it's custom fields so I can check whether or not a specific value is chosen.

But all I have in the product list are the numbers in the product_attribute field in the items array. I know these numbers correspondend to the values in the database. How can I render these fields to their respective values?

I know RenderCustomFields function exists in the customfield.php file in the sublayouts. But how do I use that in the email.php invoice override?