- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018
03:10 AM
10-19-2018
03:10 AM
I would like to get manufacturer name for each items on category pages.
Do you have any suggestions?
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018
05:12 AM
10-19-2018
05:12 AM
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/
https://www.manishmittal.com/
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018
03:30 AM
10-19-2018
03:30 AM
Re: Get Manufacturer name on a category page
In the product grid?
---
If my answer is useful, please Accept as Solution & give Kudos
If my answer is useful, please Accept as Solution & give Kudos
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018
05:12 AM
10-19-2018
05:12 AM
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/
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018
06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018
06:22 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018
06:22 AM
10-19-2018
06:22 AM