• Resolved tesscowp

    (@tesscowp)


    I’ve been trying to find a way, to intercept/redirect the checkout process to hit a page where I need to check a condition. Basically its a second validator (custom php) that checks if the user has order more than 3 times in the last 90 days. If everything checks out… then the order would continue to submit.

    I’ve try stuff as simple as changing where the form submits too… and checkout seems to ignore it… and submits anyway. Any help would be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    Hi @tesscowp,

    This sounds like the kind of thing that you’d want to speak to a developer about as you’re trying to alter the way that WooCommerce works.

    Alternately, you may want to take a look at this plugin – https://wordpress.org/plugins/woocommerce-product-dependencies/. It doesn’t do exactly what you want, but it looks like it may have the beginnings of what you need.

    It takes the approach of checking dependencies at the point of trying to add the product to the cart, rather than trying to intercept the checkout process.

    Cheers.

    Thread Starter tesscowp

    (@tesscowp)

    Thanks @luminus, wish me luck.

    Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    All the best @tesscowp.

    Hopefully, you’re able to get it working the way you want.

    I’ll go ahead and mark this thread as resolved now.

    If you have another question, do feel free to open a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Intercept Checkout’ is closed to new replies.