
Originally Posted by
MachaNeko
i added this code but it doesnt show the manufacturer.
anyone know why?
$order->products[$i]['manufacturer']
I dont believe that the product manufacturer is saved in the orders database tables and there fore would not be in the array. you will prob have to write another SQL query to get that. it will prob be (this is me not looking up the SQL structure so it may be off in the names) like:
Code:
SELECT manufacturers_name FROM manufacturers(M) WHERE products.products_id = '. $order->products[$i][products_id] . ' AND M.id = products.manufacture_id
This is are really good opportunity to learn about Zen Cart's brilliant query factory.