View post on imgur.com
]]>Thanks in advance.
View post on imgur.com
]]>View post on imgur.com
]]>Practically if a user, already registered on my site, wants to make a purchase, in the first step of the payment an “empty” screen appears with only the title of the step (create account) and the button to continue to step 2.
I put an example below:
https://snipboard.io/stVrNR.jpg
How can this problem be solved?
Some details on my site:
Thank you for your help,
Giulia
Any help will be appreciated
Thanks
Uncaught TypeError: u is undefined
oceanwpWooMultiStepCheckout https://pewpewprinting.com/wp-content/themes/oceanwp/assets/js/third/woo/woo-multistep-checkout.min.js?ver=2.0.0:1
jQuery 2
TypeError: undefined is not an object (evaluating ‘u.indexOf’)
Line 45:
j = 0 <= u.indexOf(“billing”) ? “billing” : j,
This may be the same as or related to https://www.ads-software.com/support/topic/woocommerce-checkout-issue-11/
]]>add_action( ‘woocommerce_after_checkout_validation’, ‘misha_one_err’, 9999, 2);
function misha_one_err( $fields, $errors ){
global $woocommerce;
// Check if set, if its not set add an error. This one is only requite for companies
if ( ! (preg_match(‘/^[0-9]{10}$/D’, $_POST[‘billing_phone’] ))){
$errors->add( ‘woocommerce_password_error’, __( ‘Phone is a required field’ ) );
}
}
But the validation error message shows only after clicking the place order button instead of clicking the next button. For required field validation, it works fine. but for custom validation, it shows after pressing the place order.
Thanks
]]>