cancel
Showing results for 
Search instead for 
Did you mean: 

How to set exceptions to add_to_cart button

How to set exceptions to add_to_cart button

 

I am building E-Commerce website in Magento 1.9. I want to add below functionalities on my add_to_cart button on product page:

  1. Want to keep add_to_cart button disabled always.

  2. I want every user check the zipcode first & if their zipcode is valid then only unfreeze the add_to_cart button, if the zipcode is invalid then keep the add_to_cart button disabled.

  3. Always refresh the product page whenever user checks zipcode & keep add_to_cart button disabled if zipcode is invalid & unfreeze if it is valid.

These exceptions are useful for me because I am running my E-Commerce store in limited area. I have attached the view.phtml, restriczip.phml & product page screenshot. If any more things needed please ask me. Any help will be appreciated.

2 REPLIES 2

Re: How to set exceptions to add_to_cart button

Any replies 

Re: How to set exceptions to add_to_cart button

Anyone here to fix my query