New Zenner
- Join Date:
- Aug 2007
- Posts:
- 92
- Plugin Contributions:
- 0
Change the way a product name is shown in an order
Can anyone help with this please? I'm looking to change the way a product is shown in the orders page of the admin panel.
It currently shows something like this:
1 x 2010-11 Portugal Top (Kids)
- Size: Medium Boys
- Other Name & Number: Bubbs 9 (+£12.95)
For the example above I'm wanting to display it as follows:
1 x 2010-11 Portugal Nike World Cup Away Shirt (Kids) (Bubbs 9) Medium Boys
The 'Medium Boys' and the 'Bubbs 9' are product attributes. Can anyone help please? I've tried changing the scripting around in the file but I can't get it to look the way I want.
I thought if I used an if statement something along the lines of
if (($order->products[$j]['attributes']=='Other Name & Number')){
echo'(' . $order->products[$i]['attributes'][$j]['option'][$j]['value'] . ')';}
it would show correctly but it doesn't show anything.
Anyone have any ideas I'd appreciate the help.
Thanks in advance.