~magentoerpconnect-core-editors/magentoerpconnect/module-magento-trunk

« back to all changes in this revision

Viewing changes to Openlabs_OpenERPConnector-1.1.0/Openlabs/OpenERPConnector/Model/Olcatalog/Products.php

  • Committer: Guewen Baconnier
  • Date: 2014-05-16 13:52:44 UTC
  • Revision ID: guewen.baconnier@camptocamp.com-20140516135244-4dpg82va3l6d6gr4
add bundle informations in ol_catalog_product.info

Show diffs side-by-side

added added

removed removed

Lines of Context:
322
322
 
323
323
        return true;
324
324
    }
 
325
    
 
326
    public function info($productId, $store = null, $attributes = null, $identifierType = null)
 
327
    {
 
328
        $result = Mage::getSingleton('catalog/product_api')->info($productId, $store, $attributes, $identifierType);
 
329
        $resultObject = new Varien_Object($result);
 
330
        $type = $result['type'];
 
331
        Mage::dispatchEvent('ol_openerp_catalog_product_info_type_'.$type, array(
 
332
                'result_object' => $resultObject, 'product_id' => $productId, 'store' => $store));
 
333
 
 
334
        return $resultObject->getData();
 
335
    }
325
336
} // Class Mage_Catalog_Model_Product_Api End
 
 
b'\\ No newline at end of file'