Solo Theme - add link near add to cart button

New Member
41 0 0

Hi

I'd like to add a link on all product pages (just below the add to cart button) so if something is sold out or on preorder people can email me with what they want. And if possible - only on a page where it says sold out or preorder.

The link would go to my contact us page and would say something like "Contact us for more information of the availability of this item"

Thanks Jo

PS I'm not a huge codey so as descriptive as possible please.

 

0 Likes
Shopify Staff
Shopify Staff
83 0 8

Hey Jo!

Within your themes coding you'll want to find the snippet single-product.liquid

To add the link underneath the add to cart button you'll be looking around line 140-141 to add in your coding for the contact page link. 

This is the coding you'll want to add in: 

<a href="url">link text</a>

I also had to add a line break <br> into my test to make it appear underneath the button rather than beside :)

Hope that helps!

- Bailey

0 Likes
New Member
41 0 0

Hi Bailey

Thanks but I can' get it to save due to an error. This is what I entered. Can you check please?

<br>
            <a href="bamboolulu.com.au/pages/contact-us">Contact us for more information of the availability of this item</a>

0 Likes
Highlighted
New Member
41 0 0

Ok I got it to save. But I can't see it.

<br>
            <a href="url"www.bamboolulu.com.au/contact-us >For more information on the availability of this item please contact us</a>

0 Likes