From 55b3ab1ec5dc51d472a76979f176bdce398bd0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Wytr=C4=99bowicz?= Date: Fri, 24 Nov 2023 15:41:44 +0100 Subject: [PATCH] Update classic checkout selector Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com> --- .../woocommerce/client/legacy/js/frontend/order-attribution.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce/client/legacy/js/frontend/order-attribution.js b/plugins/woocommerce/client/legacy/js/frontend/order-attribution.js index 857a5ed1278..f21b09ee600 100644 --- a/plugins/woocommerce/client/legacy/js/frontend/order-attribution.js +++ b/plugins/woocommerce/client/legacy/js/frontend/order-attribution.js @@ -66,7 +66,7 @@ /** * Add source values to the classic checkout. */ - if ( $( '.woocommerce form.checkout' ) !== null ) { + if ( $( 'form.woocommerce-checkout' ) !== null ) { const previousInitCheckout = document.body.oninit_checkout; document.body.oninit_checkout = () => { setFields();