cancel
Showing results for 
Search instead for 
Did you mean: 

Get Manufacturer name on a category page

SOLVED

Get Manufacturer name on a category page

I would like to get manufacturer name for each items on category pages.

Do you have any suggestions?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Get Manufacturer name on a category page

@tvgarden

Edit below file

 

app/design/frontend/CUSTOM/THEME/Magento_Catalog/templates/product/list.phtml

$attribute = $_product->getResource()->getAttribute('attribute_code');

// Get Value

$attributeValue = $attribute->getFrontend()->getValue($_product);

// Get Label

$attributeLabel = $attribute->getStoreLabel();

Note: Make sure “Visible on Product View Page on Front-end” and “Used in Product Listing” options under storefront Properties are set to Yes.

Manish Mittal
https://www.manishmittal.com/

View solution in original post

5 REPLIES 5

Re: Get Manufacturer name on a category page

In the product grid?

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

Re: Get Manufacturer name on a category page

@tvgarden

Edit below file

 

app/design/frontend/CUSTOM/THEME/Magento_Catalog/templates/product/list.phtml

$attribute = $_product->getResource()->getAttribute('attribute_code');

// Get Value

$attributeValue = $attribute->getFrontend()->getValue($_product);

// Get Label

$attributeLabel = $attribute->getStoreLabel();

Note: Make sure “Visible on Product View Page on Front-end” and “Used in Product Listing” options under storefront Properties are set to Yes.

Manish Mittal
https://www.manishmittal.com/

Re: Get Manufacturer name on a category page

@Manish MittalThank you

Re: Get Manufacturer name on a category page

@Lecom24

Yes, in the product grid.

Re: Get Manufacturer name on a category page

@tvgarden

 

Anytime Smiley Happy cheers

Manish Mittal
https://www.manishmittal.com/