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 @YKBLearing_Coder– Learing_Coder2018-07-26 16:48:07 +00:00Commented Jul 26, 2018 at 16:48
- Are you using any custom theme?Mohit Kumar Arora– Mohit Kumar Arora2018-07-27 01:05:52 +00:00Commented Jul 27, 2018 at 1:05
- My Theme is RWD...YKB– YKB2018-07-27 02:13:26 +00:00Commented Jul 27, 2018 at 2:13
- Is it a ajax action?Duke– Duke2018-07-29 06:07:02 +00:00Commented Jul 29, 2018 at 6:07
- @RintoGeorge, yes it was a ajax action.YKB– YKB2018-07-30 05:47:59 +00:00Commented Jul 30, 2018 at 5:47
| Show 1 more comment
1 Answer
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']);