Add to cart button is enabled for instant search results page but is not visible


I have the Add To Cart feature enabled for the Instant Search Results Page but the button is not showing.

I found out that the JS directive isAddToCartEnabled is not working properly for the file app/design/frontend/base/default/template/algoliasearch/instantsearch/hit-item.phtml

        <form action="<?php echo Mage::getBaseUrl(); ?>/checkout/cart/add/product/{{objectID}}"
            <input type="hidden" name="form_key"
                    value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>"/>
            <input type="hidden" name="qty" value="1">
            <button type="submit"><?php echo $this->__('Add to Cart'); ?></button>

Once I remove the {{#isAddToCartEnabled}} conditional the Add To Cart button appears


Hello Max,

thanks for the report. I will take a look on what’s going on there and why it doesn’t work.

I created a GitHub issue for that, you can follow it there.

Hello @max,

it’s resolved since 1.9.0 version of the extension :tada: