-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
Hello, there.
Good morning!
I have made the following changes to the order/view.html.php file and would like to suggest for these to be incorporated. Apologies if there is a Joomla! override that I can use instead. Please let me know how I can implement the override if there is one.
The changes are:
1) retrieve the history of an order (as per forum discussion #44184)
Add the following code.
/* Modification - Retrieve order history */
foreach($rows as $k => $hist)
{
$query = 'SELECT * FROM '.hikashop_table('history').
' WHERE `history_order_id` = '.$rows[$k]->order_id;
$database->setQuery($query);
$rows[$k]->history = $database->loadObjectList();
}
Note that the SELECT statement is slightly different from the forum discussion in that the IN clause (in the discussion) is not used.
2) call the image helper
The following code is added in the &_order and listing functions.
/* Modification - Get image helper */
$image = hikashop_get('helper.image');
$this->assignRef('image',$image);
This will allow for the thumbnails to be displayed in the order page (to be in sync with the order email, which shows the thumbnail).
Thanks.
Take care!