Handle ajax issues and show error when add to cart ajax has issues