Timeline for Get attribute text not working
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 20, 2020 at 7:17 | comment | added | Shaun | Seems to return a result for an attribute with Multiselect but not Dropdown? | |
Apr 19, 2020 at 11:56 | comment | added | Mohit Patel | magento.stackexchange.com/questions/285711/… refer this | |
Apr 19, 2020 at 11:53 | comment | added | Mohit Patel | SKU : <?= $_helper->productAttribute($_product, $_product->getSku(), 'sku') ?> try this | |
Apr 19, 2020 at 11:48 | comment | added | Shaun | No because I need the attribute 'manufacturer' to return a result. I was thinking maybe it was the way I loaded the products. | |
Apr 19, 2020 at 11:42 | comment | added | Mohit Patel | you solve the issue ?? | |
Apr 19, 2020 at 11:40 | comment | added | Shaun |
$product->getResource()->getAttribute('manufacturer')->getFrontend()->getValue($product); returns no results. $product->getResource()->getAttribute('sku')->getFrontend()->getValue($product); returns result as expected.
|
|
Apr 19, 2020 at 11:16 | comment | added | Mohit Patel | i don't understand your above comment so Please explain briefly... | |
Apr 19, 2020 at 10:26 | comment | added | Shaun |
Hi below is how i have loaded the products. Your code works for attribute text but only for sku nothing else? Attributes visible on storefront set to yes. public function getProductsXml() { $productCollection = $this->_productFeedHelper->getFilteredProducts(); $xml = ""; foreach ($productCollection as $product) { $xml .= "<item>" . $this->buildProductXml($product) . "</item>"; } return $xml; } public function buildProductXml($product) {
|
|
Apr 19, 2020 at 4:55 | history | answered | Mohit Patel | CC BY-SA 4.0 |