skip to Main Content

I hope you are doing great.
I’m looking for the code or shopify app that will allow me the option that is when a specific Member is only that member can see the add to cart button. For other customer that are not members of the site can’t see the add to cart button.
Is there anything you can help me with this.
Thanks

2

Answers


  1. I think this is not possible in Front-end part or client side.

    To view the particular attribute or design by some condition you have to use some logic in backend or some jQuery with preloaded data.

    Login or Signup to reply.
  2. I think you don’t need to use shopify apps for this.
    You can add a filter to detect customers who are logged in or not.
    You have to wrape the add to cart form inside the condition.

        {% if customer %}
                  // add_to_cart form/liquid
        {% endif %}
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search