I have installed Check availability by zip/postal code from magento connect so that it checks product availability using pincode.

reference :


It is working fine but my add to cart button in all my product page is disabled.

I guess checkdelivery.xml is conflicting. please guide me how to enable add to cart button.

add to cart not working

<?xml version="1.0"?>
<layout version="0.1.0">
<reference name="head">
<action method="addItem"><type>skin_js</type><name>js/Checkdelivery/jquery-2.1.4.min.js</name></action>
<action method="addCss" ifconfig="checkdelivery/nsi_general_grp/active" ><stylesheet>css/checkdelivery/style.css</stylesheet></action>
<reference name="content">
<!--<block type="checkdelivery/checkdelivery" name="checkdelivery.checkdelivery" template="checkdelivery/checkdelivery.phtml"/>-->
<block type="checkdelivery/checkdelivery" name="checkdelivery.checkdelivery">   
<action method="setTemplate" ifconfig="checkdelivery/nsi_general_grp/active">  

  • I think it might be any conflict of module with your current theme or something. Try changing to default theme(magento default) and check. Oct 5, 2015 at 8:14
  • also check for any javascript issues in that page using firebug or something. Oct 5, 2015 at 8:15
  • it is default theme itself
    – rashmi sm
    Oct 5, 2015 at 9:08
  • Did you checked for any script issues?? if you are in firefox, click cntl + shift + k to see. Oct 5, 2015 at 9:10
  • it is giving: TypeError: $j(...).cycle is not a function....................TypeError: element.attachEvent is not a function
    – rashmi sm
    Oct 5, 2015 at 9:45

1 Answer 1


you can disable button by below code:

document.getElementsByClassName("button btn-cart").disabled = true;

  • its already disabled after putting this extension, i want to enable it
    – rashmi sm
    Oct 5, 2015 at 8:12

Not the answer you're looking for? Browse other questions tagged or ask your own question.