how can I remove the "pay now" button from order status pages for wholesale orders?

We have some wholesale customers who have net 30 payment terms, but we require that they pay by check for these orders. Recently we had one of these customers find the “pay now” button on their order status page, and paid by credit card, so we had to pay the service fee on top of the wholesale discount we were giving them. I would like to prevent this from happening in the future, but I’m not sure of how to code the changes I would like.

The logic that I would like to apply to the page:

If order is tagged “wholesale” and payment terms are “within 30 days” then I would like the “pay now” button to not be displayed. If possible I would also like to add the message “Please send checks to [company address}.”

1 Like

Hi,

Hope this will help

  • Order status page section . Add Logic to Hide Button for Wholesale Orders

Code example


  • Replace Placeholder
1 Like

Thank you! This looks like what I need, but I’ve just realized that I can’t use liquid to customize this page, since we’ve switched to new accounts. I appreciate your help, though!