I am not able to add product to cart. enter image description here

tried these solutions but not working. https://stackoverflow.com/questions/41463643/magento-2-products-not-being-added-to-cart

add to cart not working localhost Only in chrome (Magento 2 fresh install )

can anyone please help me. Thanks in advance.

  • can you please check in response tab what response you're getting there ? There may be some exceptions so you're getting 500 error there. Commented Nov 28, 2019 at 9:27
  • I am getting a blank response tab. Commented Nov 28, 2019 at 9:31
  • go to app/bootstrap.php file and uncomment init_set() error reporting line and then check Commented Nov 28, 2019 at 9:32
  • Check var/report folder. There are error report generated. Commented Nov 28, 2019 at 9:37
  • I reverted updates in 'core_config_data' table. now error is not coming ajax call getting 200 ok msg. but when I open any product (product detail page) like-localhost/magento/proteus-fitness-jackshirt.html it shows error like - 'Fatal error: Uncaught Error: Call to a member function getId() on string in /var/www/html/magento/vendor/magento/module-catalog/Helper/Product.php:318 Stack trace: #0' Commented Nov 28, 2019 at 9:41


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.