nicolas wrote: We won't add that by default since, as you said in the beginning, the characteristic value is already added at the end of the product name by default.
That´s up to you, but to be honest I´ve never seen a web shop that adds a characteristic to the product name. I mean this really looks confusing. I personally think that it´s much clearer to have that in a separate column.
Anyway I´ve got the same issue with the order confirmation mail.
Also in this mail I would like to add the column with characteristics. The design and the head of the table is again no problem, but the value of the characteristic in the table body does not work.
I identified that the related code is in the preload version of the mail. So I would need something similar as this code for the product name as well for the characteristics, right?
$cartProduct('PRODUCT_NAME') = $t;
$t = '';
$statusDownload = explode(',',$config->get('order_status_for_download','confirmed,shipped'));
if(!empty($item->files) && in_array($data->order->order_status,$statusDownload)){
$t .= '<p>';
foreach($item->files as $file){
$fileName = empty($file->file_name) ? $file->file_path : $file->file_name;
$file_pos = empty($file->file_pos) ? '' : ('&file_pos=' . $file->file_pos);
if(empty($customer->user_cms_id))
$file_pos .= '&email=' . $customer->user_email;
$t .= '<a href="'.hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=download&file_id='.$file->file_id.'&order_id='.$data->order_id.$file_pos.$url_itemid).'">'.$fileName.'</a><br/>';
}
$t .= '</p>';
}
$cartProduct('PRODUCT_CHARACTERISTICS) = $t;
$t = '';
if(!empty($row->characteristics)) {
$t .= '<p>';
foreach($row->characteristics as $c) {
echo $c->characteristic_value; }
}
Edit: I replaced the squared brackets, otherwise the code will not be displayed.