Checkout blocks events
-
Hi to all!
After switching to blocks, the hook woocommerce_after_checkout_validation does not work any more. But I need alternative! I integrated my module to blocks and it is ok. Now need the mentioned event. Read https://github.com/woocommerce/woocommerce-blocks/blob/3ad662163e286937eec9be5d27193a7206e3dd5e/docs/internal-developers/block-client-apis/checkout/checkout-flow-and-events.md#oncheckoutvalidation but I can not use import in my block-integration js file, because it is not with type module. Also in the mentioned example I need @woocommerce/base-contexts, looks like it need to be in woocommerce/packages/woocommerce-blocks, but in WC 8.6.1 there is no directory woocommerce-blocks.
My question is what to use as alternative of woocommerce_after_checkout_validation in blocks context?
Regards!
- The topic ‘Checkout blocks events’ is closed to new replies.