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

Lena-L
Tourist
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 (https://trenzyme.shop/pages/bulk-or-individual-order-trenzyme). 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: https://trenzyme.shop/collections/proteins/products/s1-rbd-delta-b16172-india-gfp-his-tag and for a collection-page: https://trenzyme.shop/collections/sars-cov-2-proteins.

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

Thanks a lot in advance!

Best,

Lena

0 Likes