• Resolved SimplyMarkB

    (@smartguyus)


    During the checkout process, billing details and the cart items are displayed. When the visitor clicks ‘place order’ I want to send the billing details to a service we set up and verify that they are in the system. If they are, continue the checkout process and automatically log them in, if not we will create a user account and then continue.

    My question: what checkout hook can I use to pause interrupt the process to check our service first before completing the transaction. I am guessing that it is “woocommerce_review_order_before_submit” but I can’t find any use examples online for this hook. Does anyone have any suggestions?

    -Thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Claudio Sanches

    (@claudiosanches)

    Hello @smartguyus,

    My question: what checkout hook can I use to pause interrupt the process to check our service first before completing the transaction. I am guessing that it is “woocommerce_review_order_before_submit” but I can’t find any use examples online for this hook. Does anyone have any suggestions?

    Please note that woocommerce_review_order_before_submit works in the checkout template and not during the checkout processing, so if you want to validate against your service, sounds like better to use the woocommerce_before_checkout_process. There’s also woocommerce_after_checkout_validation that will pass all data from the checkout form and an instance of WP_Error if you want to include some error related to your service.

    Please let me know if it helps.

    Thread Starter SimplyMarkB

    (@smartguyus)

    Hi, @claudiosanches,

    That sounds like what I needed to know. Thanks for the prompt response.

    Cheers,
    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Billing details at checkout’ is closed to new replies.