Update classic checkout selector

Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com>
This commit is contained in:
Tomek Wytrębowicz 2023-11-24 15:41:44 +01:00 committed by Justin Palmer
parent 0f8933e591
commit 55b3ab1ec5
No known key found for this signature in database
GPG Key ID: ACAB7C35AA2577AF
1 changed files with 1 additions and 1 deletions

View File

@ -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();