• Resolved jkepler

    (@jkepler)


    Good evening

    Can someone please tell me how do I redirect the user to the default thank you page in a php script?

    Basically, I would need to retrive the url for the defined thank you page to a php variable.

    Kind regards

    JKepler

Viewing 7 replies - 1 through 7 (of 7 total)
  • WC typically does that already. What exactly are you looking to do? A separate custom thank you page?

    Thread Starter jkepler

    (@jkepler)

    Hi,

    No, not that. I made a plugin, where after the checkout, the user is sent to a page which processes his request, and sends his product by email. I want, after that, to redirect the user to the thank you page (as in a normal product).

    Kind regards,

    JKepler

    I’m not understanding the flow here. Sorry.

    Purchased / Order Received / Thank you / Email / then Thank you again?

    Thread Starter jkepler

    (@jkepler)

    Hi

    Here’s the logic:

    Add to cart > Checkout > Email > thank you

    Kind regards

    JKepler

    So typically, in my experience (20yrs) is:

    ATC > Checkout > Thank You > (and while the “thank you” is processing the user’s email is being sent out). That’s how WC works anyway as do most carts.

    Thread Starter jkepler

    (@jkepler)

    Hi

    Yes – but not in this case. But, let’s forget the logic of my plugin (which works perfectly). Do you know how to retrieve the default “thank you page” url? I know how to modify it with a hook. But I admit I don’t know how to retrieve it.

    Kind regards

    WC has a thank you page in templates > checkout > thankyou

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Thank you page redirect’ is closed to new replies.