stormieau:
Hi,
I'm using Zen Cart 1.3.8a and wanting to change the order confirmation emails so that instead of looking like this:
Products
1 x Kaisercraft Album This Year 2008 (SB172) = $5.00
1 x Kaisercraft Beyond the Page - Desk Calendar (SB2019) = $4.95
1 x Zig Writer - Pure Blue (ZW883) = $3.85
they look like this:
Products
(SB172) 1 x Kaisercraft Album This Year 2008 = $5.00
(SB2019) 1 x Kaisercraft Beyond the Page - Desk Calendar = $4.95
(ZW883) 1 x Zig Writer - Pure Blue = $3.85
i.e. the model number comes first.
If anyone could point me in the right direction, I would much appreciate it,
Thanks,
stormieau
St,
includes/ classes/ order.php
- there is no override here.
- Make sure you have a copy of the original so if this does not work you can replace it
- Make good notes so when you upgrade, this is a core file, so you can make changes easily
Find this:
// 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'] . ') ' : '') . ' = ' .
$currencies->display_price($this->products[$i]['final_price'], $this->products[$i]['tax'], $this->products[$i]['qty']) .
($this->products[$i]['onetime_charges'] !=0 ? "\n" . TEXT_ONETIME_CHARGES_EMAIL . $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .
$this->products_ordered_attributes . "\n";
$this->products_ordered_html .=Change to this:
// build output for email notification
($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . ' = ' . $this->products_ordered .= $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . $currencies->display_price($this->products[$i]['final_price'], $this->products[$i]['tax'], $this->products[$i]['qty']) .
($this->products[$i]['onetime_charges'] !=0 ? "\n" . TEXT_ONETIME_CHARGES_EMAIL . $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .
$this->products_ordered_attributes . "\n";
$this->products_ordered_html .=