We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getAttributeSafe : does this not slow the whole procedure down?
Why not use getManufacturer? or use a dummy function with a param for the correct Manufacturer attribute key?
clerk-magento/code/Helper/Data.php
Line 12 in 8dfe068
The text was updated successfully, but these errors were encountered:
Got it.
Dont know which one is faster?
/* Returns array of sizes data - and flexible to use in Product.php because of param */ public function getRawAttribute($attribute_code, $force_get = false) { $value = ''; $attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', $attribute_code); if ($force_get) { $value = $this->getData($attribute_code); } else if($attribute->usesSource()) { $value = $this->getAttributeText($attribute_code); } else if ($value = $this->getData($attribute_code)) { $value = $value; } else { $value = Mage::getResourceModel('catalog/product')->getAttributeRawValue($this->getId(), $attribute_code, $this->getStore()); } return $value; }
Sorry, something went wrong.
No branches or pull requests
getAttributeSafe : does this not slow the whole procedure down?
Why not use getManufacturer? or use a dummy function with a param for the correct Manufacturer attribute key?
clerk-magento/code/Helper/Data.php
Line 12 in 8dfe068
The text was updated successfully, but these errors were encountered: