How to display product description in the cart OpenCart?

Tell me how to display description of item in cart OpenCart version 2.x. Once did that, but then the site went away, and I forgot, remember that, like in controller checkout/cart added the line 'description' => htmlspecialchars_decode($product['description']) in the pattern of the basket, respectively but in which file of the model that add not remember, the only thing similar is the file catalog/product, there is a sample of the goods, but there is already selected description, and in the end I still have the bug in the shopping cart Notice: Undefined index: description, but when I first did remember that somewhere, like in the models that were finished, help, good people
July 8th 19 at 11:57
2 answers
July 8th 19 at 11:59
Solution
I figured it out.
1) Go to catalog/controller/checkout/cart.php looking for the string 'name' => $product['name'], after it added 'description' => htmlspecialchars_decode($product['description']),
2) Go system/library/cart/cart.php (for ocStore it will be system/library/cart.php) looking for the string 'name' => $product_query->row['name'], after it added 'description' => $product_query->row['description'],
3) Go to catalog/view/theme/name of your theme/template/checkout/cart.tpl and there output description
4) Enjoy :)
only the description is necessary to limit the length, otherwise the user will be shocked :) - manuel commented on July 8th 19 at 12:02
July 8th 19 at 12:01
Swears that in the first paragraph is not defined 'description' => htmlspecialchars_decode($product['description']),

Find more questions by tags OpenCart