Hide add to cart button unless logged in - Dawn Theme

New Member
5 0 0

In a nutshell, I have an add to quote and add to cart button placed on my product pages at the moment. I would like only the add to quote button to display to users that are logged out, and only the Add to cart button to display when they are logged in. How would I go about doing this?

Replies 2 (2)

Shopify Partner
161 16 16

Hello @GoDarkBags 
Here is the code Please follow the suggested steps in the screenshot.
Dawn Hide Add to cart if cutomer not logged in .png

If helpful then please Like and Accept Solution .
Buy me A Coffee

Whatsapp :- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications

Connect with Us in Our DMs | teampixeledge@gmail.com
New Member
5 0 0

Thank you for this! unfortunately I am not well-versed in coding, and, as we have some third party apps installed, the code does not look identical to what you are showing, so I wouldn't know how to do this properly without potentially breaking the site