I have been working on adding custom options on product category listing page. w.r.t here.
My code for display options list.phtml
<div class="actions">
<form action="<?php echo $this->getAddToCartUrl($_product); ?>" method="post" id="product_addtocart_form" <?php if($_product->getOptions()): ?> enctype="multipart/form-data"<?php endif; ?>>
<?php if ($_product->isConfigurable()): ?>
<?php echo $this->getLayout()->createBlock('catalog/product_view_type_configurable', array('template'=> 'catalog/product/view/type/configurable_category.phtml'))->toHtml(); ?>
<?php endif; ?>
</form>
I am getting error like.
Fatal error: Call to a member function toHtml() on null in app/design/frontend/mytheme/default/template/catalog/product/list.phtml on line 154
where i am creating a mistake please correct me why the configurable_category.phtml
template file is not loading.
please help
Thanks