I was changing the order confirmation email so that I could enter Item number against each Items. Here is what I mean. The existing email order confirmation looks like this -
Products
------------------------------------------------------
1 x Cotton Short Sleeve = $17.00
Color : White
Size : Small
Print Layout : Front Only
1 x Cotton Short Sleeve = $17.00
Color : White
Size : Small
Print Layout : Front Only
------------------------------------------------------
I wan to change it to something like this -
Products
------------------------------------------------------
Item # 1
1 x Cotton Short Sleeve = $17.00
Color : White
Size : Small
Print Layout : Front Only
Item # 2
1 x Cotton Short Sleeve = $17.00
Color : White
Size : Small
Print Layout : Front Only
------------------------------------------------------
The line that I have identified is in /includes/classes/orders.php (// build output for email notification)
// $this->products_ordered .= $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . ' = ' .
I have changed it to :
$this->products_ordered .= 'Item # ' . $i . "\n" . $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . ' = ' .
But I cant get the $i to increment. I tried changing $i to $++i but that gives a parse error. I am a little new to PHP, so
1. Am I changing the right piece of code to achieve the above
2. If so how do I increment the value of $i
Thanks a lot !



