New Zenner
- Join Date:
- Dec 2012
- Posts:
- 3
- Plugin Contributions:
- 0
Altering Orders.php to insert (sub)category into invoice line item details
Hi, I'm hoping someone can help me with a small coding problem I'm having.
I'm trying to make the order page display the category of the item instead of the product model (which is useless to me due to the way my custom mass populator program works) - I've identified the relevent piece of code that needs changing in orders.php as:
echo ' </td>' . "\n" .
' <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" .
' <td class="dataTableContent" align="right" valign="top">' .
So products model needs to be replaced with category. Does anyone know how to do this? Also, bonus question, the category will be a subcategory, so is that different?
Thanks in advance.