tzyganu / Switcher

Configurable products switcher
MIT License
171 stars 71 forks source link

Not Working with Ajax Catalog Product View #159

Closed vikas529 closed 8 years ago

vikas529 commented 8 years ago

I am loading Catalog Product View in Ajax in which it is not working.

$product = Mage::getModel('catalog/product')->load($product_id);

$product = Mage::helper('catalog/product') ->initProduct($product->getId(), $this);

$this->getLayout()->getUpdate()->addHandle(array( 'default', 'catalog_product_custom_view', 'PRODUCTTYPE' . $product->getTypeId(), 'PRODUCT_' . $product->getId() ));

Mage::dispatchEvent('catalog_controller_product_view', array('product' => $product)); Mage::getSingleton('catalog/session')->setLastViewedProductId($product->getId()); $this->loadLayout(); $this->getLayout()->removeOutputBlock('root')->addOutputBlock('content'); $this->renderLayout();

Where all data is loading other than working of this module

tzyganu commented 8 years ago

@vikas529 Actually "Ajax Catalog Product View" is not working with this extension.
I cannot make this compatible with every extension that exists out there.