We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is the code that I'm using from cart js
$(document).on('cart.requestComplete', function(event, cart) { $('#CartCount').removeClass('hide'); $('#CartCount span[data-cart-count]').html(cart.item_count); console.log(cart) });
But the problem is I can't print or get the response that shows this from the console
description: "You can't add more -Product name- to the cart." message: "Cart Error" status: 422
I need a work-around to display It on frontend to notify the customer
The text was updated successfully, but these errors were encountered:
+1
@discolabs how do you get the error bag from the requestComplete returned event?
Sorry, something went wrong.
No branches or pull requests
This is the code that I'm using from cart js
But the problem is I can't print or get the response that shows this from the console
I need a work-around to display It on frontend to notify the customer
The text was updated successfully, but these errors were encountered: