0
votes

How can I display the product description in order email or admin order history in opencart? Since, I have only very short product description and I made the size as description instead. eg. 20x20kg. I have tried adding to controller:

'description' => '$products['description']';

and view on order. tpl, but it doesn't show anything.

I added to model like this:

'description' => utf8_substr(strip_tags(html_entity_decode($product['descript‌​ion'], ENT_QUOTES, 'UTF-8'))

or

'description' => htmlspecialchars_decode($product['description'])

but unfortunately it doesn't work when I tried to echo it.

VIEW catalog > view > theme > (mytheme) > template > mail > order.tpl

link: http://pastebin.com/zpcWyzsU

MODEL catalog > model > checkout > order.php

link: pastebin.com/37w7ix1Z

I would appreciate for any help.

2
unfortunately, this doesn't work at all and I cannot find any single article on the net and there isn't any available oc extension. Thinking to create modules/xml instead but not very keen. I would appreciate for someone who could help me. Thanks.user7023465

2 Answers

0
votes

'description' => '$products['description']'; should be

'description' => $products['description'];
0
votes

Problem solved! After a long hours of analyzing the problem. I came up with the solution and I tweaked the codes in catalog > model > checkout > orders.php