How to force user login/signup before adding a product to cart on your Shopify store?

Sell Online With Shopify
Trusted by millions of businesses worldwide
Sign up for a free trial and enjoy 3 months of Shopify for $1/month on select plans.

You are building an store where you want to force my users to login when they try to add a product to cart. It’s easy.

Find the add to cart button, you should be able to find this within the product-form.liquid, product.liquid template. May be, it will generally look like this:

Edit as follow:

Finally, you may edit style with CSS to look better.

Looking for Shopify Experts?

Hura Apps can help you take your store to the next level

Our team of experienced designers and developers can help you create a beautiful, high-converting Shopify store that will drive sales and increase customer satisfaction. From custom design to app development and optimization, we have the skills and expertise to help you achieve your eCommerce goals.

Get in touch

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *