Hello,
So you want to display the product attribute? There is no tag for it. You can try this,
in www/administrator/components/con_awocoupon/helpers/estoregiftcerthandler.php, around line 100 is this:
<?php
$allcodes[$this_mail_key['email']][] = array(
'id'=>$coupon_row->id,
'order_item_id'=>$row->order_item_id,
'user_id'=>$row->user_id,
'product_id'=>$row->product_id,
'product_name'=>$row->order_item_name,
'email'=>$row->email,
'code'=>$coupon_row->coupon_code,
'price'=>$price,
'expiration'=>$coupon_row->expiration,
'expirationraw'=>!empty($coupon_row->expiration) ? strtotime($coupon_row->expiration) : 0,
'profile'=>$current_profile,
'file'=>'',
);
?>
change it to this
<?php
if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php');
$x = (object)array('product_attribute'=>$row->product_attribute);
$product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($x,'BE');
$allcodes[$this_mail_key['email']][] = array(
'id'=>$coupon_row->id,
'order_item_id'=>$row->order_item_id,
'user_id'=>$row->user_id,
'product_id'=>$row->product_id,
'product_name'=>$row->order_item_name,
'email'=>$row->email,
'code'=>$coupon_row->coupon_code,
'price'=>$price,
'expiration'=>$coupon_row->expiration,
'expirationraw'=>!empty($coupon_row->expiration) ? strtotime($coupon_row->expiration) : 0,
'profile'=>$current_profile,
'file'=>'',
'product_attribute'=>$product_attribute,
);
?>
around lines 190 is this
'{product_name}',
Right after that add
'{product_attribute}',
Then around lines 211 and is this
$row['product_name'],
right after that add this
$row['product_attribute'],
Now use the tag {product_attribute}