Open brianpereradap opened 2 years ago
@brianpereradap I'm not seeing the problem. The error messages returned are mostly just forward from WooCommerce.
Are you saying the error message should be identical?
Can someone show an example of the implementation of coupons (applyCoupon) on js. Thanks
@kidunot89 check the following screenshot. The wp-graphql-woocommerce plugin is sending back a hard coded error message as opposed to sending the standard error sent back from woocommerce.
@brianpereradap Oh I see. We can make this consistent with WooCommerce somehow 🤔
Can someone show an example of the implementation of coupons (applyCoupon) on js. Thanks
Use the ApplyCoupon mutation to add coupons to the cart session. You just need to pass in a client mutation id and a valid coupon code as inputs for the mutation.
@brianpereradap You actually don't need to pass in the clientMutationId
at all anymore.
APPLY_COUPON coupon mutation returns different error message when the valid coupon code case changes.
To Reproduce Steps to reproduce the behavior:
Expected behavior Regardless of the case, the same error message would be returned
Screenshots
Desktop (please complete the following information):
Plugin Versions