cancel
Showing results for 
Search instead for 
Did you mean: 

Luma Short Description on Category Page

Highlighted

Luma Short Description on Category Page

Hi,

 

Just wondering if anyone can help advise how to display the products short description on the collection/category pages for Luma.

 

Thanks.

3 REPLIES 3
Highlighted

Re: Luma Short Description on Category Page

Hi @john_clark2 

 

First you need to check if this option is enable in Stores >> Products Attribute Section: Enable Used in Product Listing to Yes for Short Description Attribute.

 

Then you can add below line of code where you want to display the short description in your theme Magento_Catalog/templates/product/list.phtml file.

<?php echo $this->helper('catalog/output')->productAttribute($_product, $_product->getShortDescription() , 'short_description') ?>

I think it will help you.

 

Thanks

--
If my answer is useful, please Accept as Solution & give Kudos

Highlighted

Re: Luma Short Description on Category Page

Hi @john_clark2 ,

Follow bellow listed steps to add short description from admin side in Luma 

- On the Admin sidebar, choose Catalog. Then, choose Products.
- Open a simple product that you can use for this example.
- Scroll down, and expand the Content section. Then, at the Description label, click Edit with Page Builder.

URL for better understanding : https://docs.magento.com/m2/ee/user_guide/cms/page-builder-tutorial3-catalog-content.html
if issue solved,Click Kudos & Accept as Solution

Highlighted

Re: Luma Short Description on Category Page

@john_clark2 Magento by default provided that but only for list mode.

 

If you want to show short description in grid mode also then override this file in your current theme.

 

/var/www/html/magentoce/vendor/magento/module-catalog/view/frontend/templates/product/list.phtml and change the below code 

 

$showDescription = false;

to

 

$showDescription = true;

on line 31.

 

Thanks