Hi Jenkinhill,
VM 2.0.10
J 2.5.6
PHP 5.3+
Any direction on how to get custom product/category fields to show up in the invoice? I've got an event registration system -- each event is a product -- with special instructions per each event (hotel, meals, etc) to be sent in the confirmation email.
I thought that if I added a custom textarea field to the product, I could hook into it and show it on the invoice. It doesn't seem to be showing.
Here's the code that should trigger attributes, I believe at views/invoice/tmpl/invoice_items.php line 57:
if (!empty($item->product_attribute)) {
if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php');
$product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE');
echo $product_attribute;
}
I appreciate the work you guys do.
Thank you.