Magento Expert Forum - Improve your Magento experience
-
ttribute values show values only after “Save”
I have an attribute USD_Price... It is visible in all products in Magento admin panel. However, there are no values in the attribute (EMPTY). The only way for attribute values to be visible is to go into EACH product and click "SAVE". It's time consuming to go into each product and "save" it.
What could be done?
--------------------------------------------------------------------------------------------------------------------------------------------
class Your_Module_Model_Product_Attribute_Backend_Usdpri ce extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract`
{
/**
* Before save method
*
* @param Varien_Object $object
*
* @return Mage_Eav_Model_Entity_Attribute_Backend_Abstract
*/
public function beforeSave($object)
{
$attrCode = $this->getAttribute()->getAttributeCode();
$basePrice = $object->getData('price');`
$value = Mage::helper('directory')->currencyConvert($basePrice, Mage::app()->getStore()->getDefaultCurrencyCode(), 'USD');
$object->setData($attrCode, $value);
return $this;
}
}
View more threads in the same category:
- Transforming Karachi's Skylines with Fiber Shades
- Unveiling the Power of E911 Solutions Enhancing Caller Identification
- List of Top 10 Interior Designers in Pakistan
- buy registered drivers license online(legitcleandocs.com)passport,IELTS certific
- Malaysia Visit Visa from Dubai
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
- 슬롯사이트 추천 - 인터넷슬롯링크 2024 best 온라인슬롯
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
- Buy Passport,Driver License,Age & ID Card,Visas and Undetected Counterfeit Money. Ema
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks