Hide "Notify When Available" button when product is in stock

marjoriebaldwin
Tourist
5 0 1

I've added custom code for the klayvio/shopify out of stock integration but now the button is showing on all products - not just out of stock products. How do I hide the button when the products are in stock?

www.studio-n.com.au

 

Screenshot 2023-03-21 at 10.57.07 am.png

www.studio-n.com.au
Replies 4 (4)

Developer-G
Shopify Partner
3045 596 848

Hello @marjoriebaldwin ,

 

First wrap it with the condition ( If product available then add to cart button else notify button ) 
Second with variant products on change of the variant check the availability of the variant products.  If available keep the default button else display notify button.

 

Thanks

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter
marjoriebaldwin
Tourist
5 0 1

Hi, can you do it for me?

www.studio-n.com.au
Developer-G
Shopify Partner
3045 596 848

Yes, you can share the details through email for further discussions. 

- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on store Hire me.
- Email: guleriathakur43@gmail.com - Skype: navrocks1 ,
- Try GEMPAGES a great page builder
-Advance Search Filter
ZestardTech
Shopify Expert
5393 970 1291

Hello @marjoriebaldwin 

Is this issue resolved ?

ZestardTech_0-1683612863480.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing