-
-
Notifications
You must be signed in to change notification settings - Fork 136
addFee mutation doesn't add the extra fee to the cart summary #477
New issue
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
Comments
@kidunot89 Could you check this please? I think it's a quick fix but I don't see the error: The plugin code seems to be ok:
|
I've detected that this code works:
so it seems that the problem is that $woocommerce->cart->add_fee only works inside of |
I've solved the issue adding the following code to the mutation:
and then adding the following action in my wp theme:
|
@aresrioja10 The issue is due to fee not being persisted. The |
Describe the bug
I'm trying to use the
addFee
mutation in order to add extra fees in the checkout page when a user select some optional services. The problem is that it doesn't add the fee to the cart.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Although the mutation result returns this:
if I visit the cart page I can't see the fees being applied:
Desktop (please complete the following information):
Plugin Versions
The text was updated successfully, but these errors were encountered: