0
我有一个模板重写它显示产品(与一些jquery)。我有一个自定义的sendmail.php,它正确地发送选择的值。但不是产品自定义字段的价值。我无法联系到他们。 在sendmail.php此可用:Joomla 2.5和Virtuemart 2自定义字段值通过电子邮件发送
$userContact->shipname
$product->quantity
$product->product_parent_id ...
我可以列出在sendmail.php所有与此有关的自定义字段值:
foreach ($product->customfieldsCart as $field) {
echo $field->custom_value;
}
但我只想要选择的值。在正常的订购过程中,invoice_items.php运作良好(线57-51):
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;}
请帮助我,非常感谢