Magento, access functions in Mage_Core_Helper_Abstract -


im new magento

just installed plugin http://shop.bubblecode.net/magento-attribute-image.html going well, on product view page run following code attribute ids

$ids = $_product->getdata('headset_features'); 

now above plugin states comes helper http://shop.bubblecode.net/attachment/download/link/id/11/

the function in class need use is

 public function getattributeoptionimage($optionid) {     $images = $this->getattributeoptionimages();     $image = array_key_exists($optionid, $images) ? $images[$optionid] : '';     if ($image && (strpos($image, 'http') !== 0)) {         $image = mage::getdesign()->getskinurl($image);     }      return $image; } 

i struggling make use of function. noticed in helper class bubble_attributeoptionpro_helper_data extends mage_core_helper_abstract here thought should work

echo mage::helper('core')->bubble_attributeoptionpro_helper_data->getattributeoptionimage($ids[0]); 

but not working me, kills page, can please tell me how access function.

thanks in advance.

update:

just tried $helper = mage::helper('attributeoptionpro'); kills page

based on helper classgroup module (bubble_aop, defined in config), can instantiate helper class follows:

$helper = mage::helper('bubble_aop'); 

however not see in class definition gets pull data product entity.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -