Change $should_do_mapping_validation to false
-
Hi!
We use WordPress headless with JS framework Gatsby and we are currently developing the checkout age. We use the htmlSnippet in the Gui to render checkout on frontend and everything works fine but when we click on “Go to payment” we get this error (language: norwegian)
Kan ikke bekrefte bestillingen, vennligst fors?k igjen.
We did some digging and the output of the error says this:
Cart items are not in sync. Please try again or reload the checkout
I am not sure why the cart items are not syncing, but I found out that by changing this variable to return false, everything works:// Whether or not to do mapping validation
$should_do_mapping_validation = apply_filters( 'woocommerce_sco_should_do_cart_items_mapping_validation', false);So I have two questions: what does this “mapping validation” do and why do we need it?
Can we somehow set it to false? I tried with a hook but nothing seems to work.
Thank you,
Michelle
- The topic ‘Change $should_do_mapping_validation to false’ is closed to new replies.