Forums / General Questions / Change the way a product name is shown in an order

Change the way a product name is shown in an order

Locked

Started by sketchhgal on 3 Jun 2010, 8:31 PM · Views: 562

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
3 Jun 2010, 8:31 PM
#1
sketchhgal avatar

sketchhgal

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.

10 Jun 2010, 6:54 PM
#2
sketchhgal avatar

sketchhgal

New Zenner

Join Date:
Aug 2007
Posts:
92
Plugin Contributions:
0

Re: Change the way a product name is shown in an order

Really does no-one have any ideas how I can achieve this?