user7023465
user7023465

Reputation: 1

Open cart product description doesn't show on order email

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.

Upvotes: 0

Views: 59

Answers (2)

user7023465
user7023465

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

Pritam Parua
Pritam Parua

Reputation: 692

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

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

Upvotes: 0

Related Questions