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!
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?
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!
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!