3

This question already has an answer here:

Can you please provide appropriate instruction for.

How can i get product description and short description in products list.phtml page.

Thanks

marked as duplicate by Prince Patel, sv3n, Siarhey Uchukhlebau, liyakat, Manthan Dave Aug 8 '17 at 10:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

8

From Stores >> Products Attribute Section: Enable Used in Product Listing to Yes for both Short Description and Description Attribute.

For Short Decsription, in your theme Magento_Catalog/templates/product/list.phtml file. You will find the below line. Set it as Yes

$showDescription = false;

For Description, use the below code in your theme Magento_Catalog/templates/product/list.phtml

<?php /* @escapeNotVerified */ echo $_helper->productAttribute($_product, $_product->getDescription(), 'description'); ?>

Not the answer you're looking for? Browse other questions tagged or ask your own question.