Hi,
i would like to know if there's a way to manage attribute cart variations in gift certificate profile?
Thank you
i would like to know if there's a way to manage attribute cart variations in gift certificate profile?
Thank you
<?php
$allcodes[$this_mail_key['email']][] = array(
'id'=>$coupon_row->id,
'order_item_id'=>$row->order_item_id,
'user_id'=>$row->user_id,
?>
<?php
$row->customProductData = json_decode ($row->product_attribute, TRUE);
$customfieldModel = VmModel::getModel('customfields');
foreach($row->customProductData as $custom){
if(!is_array($custom)) $custom = array( $custom =>false);
foreach($custom as $id=>$field) $row->customfields[] = $customfieldModel-> getCustomEmbeddedProductCustomField($id);
}
if(!empty($row->customfields)) {
$attribute_extra = array();
foreach($row->customfields as $customfield) $attribute_extra[] = vmText::_($customfield->customfield_value);
$row->order_item_name .= ' - '.implode(', ',$attribute_extra);
}
?>