All things Shopify and commerce
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?
Hello @GoDarkBags
Here is the code Please follow the suggested steps in the screenshot.
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
Thank you. I was having touble finding the page to make this edit (I knew the code to change but not where to put it) and so this explanation was perfect.
As an additional side note, I have added in a requirement that customer accounts are tagged as 'wholesale' (my situation) in order to see the buy button / add to cart buttons. This gives me an additional layer of oversight & control as to who can check out.
The extra code is: {% if customer and customer.tags contains 'wholesale' %}
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024