Adding a link to 'out of stock' button to open the contact form

5 0 3

Hi there,

I'm using the Avenue theme and I'm looking for help to add a link to the 'out of stock' button on my product pages as well on my collection pages. I know how to change the text from "Out of stock" to e.g. 'Contact us for a quote'. But I need help to make this button clickable, adding code to it that opens our contact form ( So if "track quantity" is enabled and available quantity = 0 for a product, the buttons "Add to Cart" and "Buy it now" shouldn't be displayed, but the descriped clickable button "Contact us for a quote" linking to the contact form should be displayed. And the information below the buttons "Need a quote for an individual request or for a bulk order? Please contact us" should be displayed in the out-of-stock-case.

An example for a product page is: and for a collection-page:

I've previously tried to achieve this following other instructions without success. Any suggestions?

Thanks a lot in advance!