Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Changing a product attributes Label does not update on product pages. 
 
JamesBee
Jr. Member
 
Total Posts:  26
Joined:  2008-01-02
 

Hi Everyone,

Not sure if I am missing something but I added a new attribute for Size and had called it Size Mens. I then added some products and needed to change the title to Size which I did. However that did not update on the exisiting products. Is there somewhere I should reset the products so it takes the new Label.

I noticed this function:

public function getLabel()
{
if (is_null($this->getData(’label’)) && $this->getProductAttribute()) {
// If no attribute label seted
$this->setData(’label’, $this->getProductAttribute()->getFrontend()->getLabel());
}
return $this->getData(’label’);
}

In /app/code/core/Mage/Catalog/Model/Product/Type/Configurable/Attribute.php

Handles what the label is displayed as for each product.

If I return

$this->getProductAttribute()->getFrontend()->getLabel());

instead of

$this->getData(’label’);

I get the most recent label for the attribute.

Any explanation of why or what I am doing wrong?

Thanks

James

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top