Enable Add to Cart Function on Disabled Pre Order Button

Hello, I was hoping someone could help me with some code.

When the stock reaches zero, I have our store set up to display an out of stock button. I just changed the language to display a disabled pre-order button when the stock reaches zero.

I would still like customers to pre-order the item if we are out of stock by clicking on the now updated pre-order button.

How can I enable a disabled button, specifically How can I allow a customer to click the pre-order button which was disabled before and instead enable it to take customer to cart and checkout for a successful pre order purchase? What code is needed AND where do I input?

Store is the following: https://capgown.com/
Example: https://capgown.com/products/complete-doctoral-regalia-for-university-of-minnesota?variant=31750911393844
Theme: Mega Theme + PageFly Assets

@CapgownAttire , Looks like you have simply changed the text of the sold out to pre-order however you would need to change the liquid code to update the condition on out of stock situation to not add “disabled” attribute to the add to cart button.

You should find this under product-template.liquid or equivalent section file or snippets file base on your theme.