Reputation: 1
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['description'], 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.
Upvotes: 0
Views: 59
Reputation: 1
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
Upvotes: 0
Reputation: 692
'description' => '$products['description']'; should be
'description' => $products['description'];
Upvotes: 0