Hello again,
I think only Dr. Byte will have the answer to this.
The code for adding product descriptions to the invoices/packing slips ect; runs beautifully. I have one slight bug that has developed it seems with the new upgraded version of ZC. The description field is being duplicated after every new item in the NEW ORDER confirmation emails sent to the customer. Here is an example.
Products
1 x Cuba Scott #165 mint
Scott #165 F(gum thins,usual perf faults) MH $0.50
1 x 1979 Turks and Caicos Islands Scott #386-9 MNH
Scott #165 F(gum thins,usual perf faults) MH
Scott #386-9 PAINTINGS FULL SET VF MNH $0.75
1 x 1985 Tanzania Scott #271-4 MNH
Scott #165 F(gum thins,usual perf faults) MH
Scott #386-9 PAINTINGS FULL SET VF MNH
Scott #271-4 TANZANIA RAILWAYS LOCOMOTIVES
TRAINS FULL SET VF MNH $1.00
1 x 1983 Niger Scott #614-21 FULL SET MNH
Scott #165 F(gum thins,usual perf faults) MH
Scott #386-9 PAINTINGS FULL SET VF MNH
Scott #271-4 TANZANIA RAILWAYS LOCOMOTIVES
TRAINS FULL SET VF MNH
Scott #614-21 RAPHAEL PAINTINGS FULL SET VF MNH $5.50
As you can see the descriptions are being duplicated after each new item. This can be quite lengthy...hehe
It seems that there may be some changes in the includes\classes\orders.php file that may be effecting this? At about line 844 this code is written:
$this->products_ordered .= $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . ($this->products[$i]['description'] != '' ? ' (' . $this->products[$i]['description'] . ') ' : '') . ' = ' .
I have changed all "MODEL" to "description" to replace model numbers with the descriptions.
I do not remember doing this in older versions though on this and other lines below it. Could this be causing the duplication?
Any advise to this will be greatly appreciated.
Thank you.
JLowe
Bookmarks