Add to cart button not working in my product page. But my test server is working fine, I copied and pasted the code as it is but, onclick event hasn't fire...

  • Check any error in console and log file @YKB – Learing_Coder Jul 26 '18 at 16:48
  • Are you using any custom theme? – Mohit Kumar Arora Jul 27 '18 at 1:05
  • My Theme is RWD... – YKB Jul 27 '18 at 2:13
  • Is it a ajax action? – Rinto George Jul 29 '18 at 6:07
  • @RintoGeorge, yes it was a ajax action. – YKB Jul 30 '18 at 5:47

Finally resolved here are the steps to do:

Go for var/www/html/app/design/frontend/your theme/template/checkout/cart.phtml

Check the functionality after tag Under checkout directory verify the sub directories called "view", "onepage" etc.

Look at the "controller.php" file in the "checkout" Path:

/var/www/html/app/code/local/Mworks/Ajax/controllers/IndexController.php check Line: 29, 30

 $filter = new Zend_Filter_LocalizedToNormalized(
                                array('locale' => Mage::app()->getLocale()->getLocaleCode())
   $params['qty'] = $filter->filter($params['qty']);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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