Woocommerce After Validation Missing Data

[ad_1]

I have rentlessly dug deeper into the billing_phone issue that prevents the user saving their data in order list.

I have added an error_log to show the data being passed after the user submits the form, both before and after checkout.

>Before checkout process data: Billing phone and other information are working fine.
>Submitted data (after validation): Billing phone and other information are working fine.
>Submitted data (after validation second check): Billing phone and other information are working fine, and the data is still there.
>Before checkout process data: Billing phone and other information are working fine, and the data is still there.
>Submitted data (after validation): First name, last name, postcode, and phone are gone, which is why the billing phone error persists.
>Submitted data (after validation second check): First name, last name, postcode, and phone are gone, which is why the billing phone error persists.

The current active plugin is only-Code Snippets (Lastest Version) two active script only for removing some fields and for validation the errors
-LiteSpeed Cache (Lastest Version)
-PayPal for WooCommerce (Lastest Version)
-WooCommerce (Lastest Version 8.9.3)
-WooCommerce Subscriptions (Lastest Version 6.3.2)

here’s my code validations: https://ibb.co/CJWH3n3

here’s the error log:


[13-Jun-2024 09:06:00 UTC] Before checkout process data: Array
(
[billing_first_name] => Dave
[billing_last_name] => Wamar51
[billing_postcode] => 4000
[billing_phone] => 479066464
[billing_email] => [email protected]
[wc_order_attribution_source_type] => typein
[wc_order_attribution_referrer] => (none)
[wc_order_attribution_utm_campaign] => (none)
[wc_order_attribution_utm_source] => (direct)
[wc_order_attribution_utm_medium] => (none)
[wc_order_attribution_utm_content] => (none)
[wc_order_attribution_utm_id] => (none)
[wc_order_attribution_utm_term] => (none)
[wc_order_attribution_session_start_time] => 2024-06-13 08:29:59
[wc_order_attribution_session_pages] => 10
[wc_order_attribution_session_count] => 1
[wc_order_attribution_user_agent] => Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
[payment_method] => angelleye_ppcp_cc
[terms] => on
[terms-field] => 1
[woocommerce-process-checkout-nonce] => db9e392083
[_wp_http_referer] => /?wc-ajax=update_order_review
[angelleye_ppcp_cc_payment_method_title] => Credit Card
[createaccount] => 1
)[13-Jun-2024 09:06:00 UTC] Billing phone during processing: 479066464
[13-Jun-2024 09:06:00 UTC] Submitted data (after validation): Array
(
[terms] => 1
[terms-field] => 1
[createaccount] => 1
[payment_method] => angelleye_ppcp_cc
[shipping_method] =>
[ship_to_different_address] =>
[woocommerce_checkout_update_totals] =>
[billing_first_name] => Dave
[billing_last_name] => Wamar51
[billing_postcode] => 4000
[billing_phone] => 479066464
[billing_email] => [email protected]
[order_comments] =>
[shipping_first_name] => Dave
[shipping_last_name] => Wamar51
[shipping_country] =>
[shipping_address_1] =>
[shipping_city] =>
[shipping_state] =>
[shipping_postcode] => 4000
)

[13-Jun-2024 09:06:00 UTC] Billing phone: 479066464
[13-Jun-2024 09:06:00 UTC] Submitted data (after validation second check): Array
(
[terms] => 1
[terms-field] => 1
[createaccount] => 1
[payment_method] => angelleye_ppcp_cc
[shipping_method] =>
[ship_to_different_address] =>
[woocommerce_checkout_update_totals] =>
[billing_first_name] => Dave
[billing_last_name] => Wamar51
[billing_postcode] => 4000
[billing_phone] => 479066464
[billing_email] => [email protected]
[order_comments] =>
[shipping_first_name] => Dave
[shipping_last_name] => Wamar51
[shipping_country] =>
[shipping_address_1] =>
[shipping_city] =>
[shipping_state] =>
[shipping_postcode] => 4000
)

[13-Jun-2024 09:06:10 UTC] Before checkout process data: Array
(
[billing_first_name] => Dave
[billing_last_name] => Wamar51
[billing_postcode] => 4000
[billing_phone] => 479066464
[billing_email] => [email protected]
[wc_order_attribution_source_type] => typein
[wc_order_attribution_referrer] => (none)
[wc_order_attribution_utm_campaign] => (none)
[wc_order_attribution_utm_source] => (direct)
[wc_order_attribution_utm_medium] => (none)
[wc_order_attribution_utm_content] => (none)
[wc_order_attribution_utm_id] => (none)
[wc_order_attribution_utm_term] => (none)
[wc_order_attribution_session_start_time] => 2024-06-13 08:29:59
[wc_order_attribution_session_pages] => 10
[wc_order_attribution_session_count] => 1
[wc_order_attribution_user_agent] => Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
[payment_method] => angelleye_ppcp_cc
[terms] => on
[terms-field] => 1
[woocommerce-process-checkout-nonce] => 09dac8dd60
[_wp_http_referer] => /?wc-ajax=update_order_review
[angelleye_ppcp_cc_payment_method_title] => Credit Card
)

[13-Jun-2024 09:06:10 UTC] Submitted data (after validation): Array
(
[terms] => on
[terms-field] => 1
[createaccount] => 0
[payment_method] => angelleye_ppcp
[shipping_method] =>
[ship_to_different_address] => 0
[woocommerce_checkout_update_totals] =>
[billing_first_name] =>
[billing_last_name] =>
[billing_postcode] =>
[billing_phone] =>
[billing_email] => [email protected]
[order_comments] =>
[shipping_first_name] => Dave
[shipping_last_name] => Wamar51
[shipping_country] =>
[shipping_address_1] =>
[shipping_city] =>
[shipping_state] =>
[shipping_postcode] => 4000
[billing_company] =>
[billing_country] => AU
[billing_address_1] =>
[billing_address_2] =>
[billing_city] =>
[billing_state] => QLD
)

[13-Jun-2024 09:06:10 UTC] Billing phone is missing.
[13-Jun-2024 09:06:10 UTC] Validation errors: Array
(
[0] => <strong>Billing Phone</strong> is a required field.
)

[13-Jun-2024 09:06:10 UTC] Submitted data (after validation second check): Array
(
[terms] => on
[terms-field] => 1
[createaccount] => 0
[payment_method] => angelleye_ppcp
[shipping_method] =>
[ship_to_different_address] => 0
[woocommerce_checkout_update_totals] =>
[billing_first_name] =>
[billing_last_name] =>
[billing_postcode] =>
[billing_phone] =>
[billing_email] => [email protected]
[order_comments] =>
[shipping_first_name] => Dave
[shipping_last_name] => Wamar51
[shipping_country] =>
[shipping_address_1] =>
[shipping_city] =>
[shipping_state] =>
[shipping_postcode] => 4000
[billing_company] =>
[billing_country] => AU
[billing_address_1] =>
[billing_address_2] =>
[billing_city] =>
[billing_state] => QLD
)

  • This topic was modified 5 hours, 21 minutes ago by jundavewamar.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer