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

Enercos - Single Product eCommerce Shopify Theme

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.

You may also like...

Leave a Reply

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