VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Green Monkey on August 20, 2012, 08:37:05 AM

Title: Custom field plug in - text not showing on order email
Post by: Green Monkey on August 20, 2012, 08:37:05 AM
Hello,

I have added several custom text plugins to capture information from the customer. However, the captured text from the customer is not appearing on the order email or the email confirmation to the customer.

Is there a way of fixing this so it shows as it is an integral component to the website I have built?

Look forward to a response.

Amanda
Title: Re: Custom field plug in - text not showing on order email
Post by: SteveBab on August 29, 2012, 15:23:14 PM
I am in the same spot. I cannot find any documentation as to how to add custom field text to the emails or invoices.

I see this code at line 57 in com_virtuemart/views/invoice/tmtl/invoice_items.php where they SHOULD be loading but don't:

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;
}


VM 2.0.10
Joomla 2.5.6