Hi,
In the file "components/com_hikamarket/view/ordermarket/view.html.php".
Replace :
if(empty($order->customer)) {
$userClass = hikamarket::get('shop.class.user');
$order->customer = $userClass->get($order->order_user_id);
}
$this->assignRef('order', $order);
By:
if(empty($order->customer)) {
$userClass = hikamarket::get('shop.class.user');
$order->customer = $userClass->get($order->order_user_id);
}
if(!empty($order->products)) {
$options = false;
$products = array();
foreach($order->products as &$product) {
if(!empty($product->order_product_option_parent_id)) {
if(empty($products[$product->order_product_option_parent_id]))
$products[$product->order_product_option_parent_id] = array();
if(empty($products[$product->order_product_option_parent_id]['options']))
$products[$product->order_product_option_parent_id]['options'] = array();
$products[$product->order_product_option_parent_id]['options'][] = &$product;
$options = true;
} else {
if(empty($products[$product->order_product_id]))
$products[$product->order_product_id] = array();
$products[$product->order_product_id]['product'] = &$product;
}
}
unset($product);
if($options) {
$order->products = array();
foreach($products as &$product) {
if(!empty($product['product']))
$order->products[] = $product['product'];
if(!empty($product['options'])) {
foreach($product['options'] as &$opt) {
$order->products[] = $opt;
}
unset($opt);
}
}
unset($product);
}
}
$this->assignRef('order', $order);
In the file "components/com_hikamarket/views/ordermarket/tmpl/show_products.php".
Replace:
foreach($this->order->products as $k => $product) {
?>
<tr>
<td class="hikamarket_order_item_name_value">
By:
foreach($this->order->products as $k => $product) {
$td_class = '';
if(!empty($product->order_product_option_parent_id))
$td_class = ' hikamarket_order_item_option';
?>
<tr>
<td class="hikamarket_order_item_name_value<?php echo $td_class; ?>">
And you can add some CSS like :
table.hikam_table td.hikamarket_order_item_option {
padding-left: 10px;
border-left: 2px solid;
}
In order to see the product options.
These modifications will be in the next HikaMarket release.
Regards,