I use below code.
$product = Mage::getModel('catalog/product')
->setStoreId(Mage::app()->getStore()->getId())
->load($productId)
->setConfiguredAttributes($this->getRequest()->getParam('super_attribute'))
->setGroupedProducts($this->getRequest()->getParam('super_group', array()));It works.
But I could not find where 'setConfiguredAttributes' method defined in.
Where is it defined in???
Solved! Go to Solution.
if the default product model is not rewerited, then this is a magic method
http://php.net/manual/en/language.oop5.magic.php
any methods not difined in setXxxYyy format will be translated to setData('xxx_yyy')
if the default product model is not rewerited, then this is a magic method
http://php.net/manual/en/language.oop5.magic.php
any methods not difined in setXxxYyy format will be translated to setData('xxx_yyy')
Thank you for your replay!