• Resolved clonemykey

    (@clonemykey)


    I’m looking to redirect our customers to a simple static page when they hit the Order Again button on their WooCommerce previous order page — inside their account panel. Due to the complexity of our products they shouldn’t be able to simply re-order the exact same items again.

    What is the best way to accomplish this? Is it possible?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wpnomad a11n

    (@wpnomad)

    Hi @clonemykey ,

    I tried checking if there was a function I could modify to add a static link to the “Order Again” button, however, I couldn’t find a function that would allow this change.

    If it works, you can hide the “Order Again” button entirely using the following CSS code:

    
    .order-again {
        display: none;
    }
    

    You can add the CSS code to your site under Appearance > Customize > Additional CSS.

    I hope this helps!

    Thread Starter clonemykey

    (@clonemykey)

    Thanks for your response! I was hoping to not go the CSS method but it’s might be my only option. I was also considering a url redirect with some sort of wildcard/pattern matching. Any thoughts on that?

    Plugin Support wpnomad a11n

    (@wpnomad)

    Hi @clonemykey ,

    I was also considering a url redirect with some sort of wildcard/pattern matching. Any thoughts on that?

    You can explore this option indeed. You would need to check for URLs containing cart/?order_again pattern and then re-direct them.

    You may try using the Redirection plugin for this purpose, I see that support for query parameter based redirect is listed as a feature on the plugin’s page.

    I hope this helps!

    Thread Starter clonemykey

    (@clonemykey)

    That actually worked beautifully. It’s a corner-case scenario for sure, now no-one can access the order_again functionality but that’s exactly what we want.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Order Again Button Redirect’ is closed to new replies.