How can I hide the buy button for a specific vendor?

Hi! We aren’t allowed to sell a certain suppliers products online but still want customers to see what we have in store and sizes available. Is there a code you can insert to do so? :slightly_smiling_face:

I am not familiar with coding, but hope anyone have an answer to what kind of code and where to put it, hehe.

1 Like

Hello There,

Please share your store URL and password.
So that I will check and let you know the exact solution here.

1 Like

Hi!

www.studiosommerfeldt.no

Password is: faosew

1 Like

I have this code, but I do not know where to put it:
I use the prestige theme:)

{% if product.vendor == ‘vendor name’ %}

We are unable to sell vendor name via our online store, however we can still assist you via a remote shopping experience. Please chat to our friendly team via the chat box, call us on .....

...

{% else if product.available %} {{ 'products.product.add_to_cart' | t }} {% else %} {{ 'products.product.sold_out' | t }} {% endif %} {% if product.vendor == 'vendor name' %}

{% else if section.settings.enable_payment_button %}
{{ form | payment_button }}
{% endif %}

Hello there,
Add this one code as a product template

{% if product.vendor == 'Anine Bing' %}

{% endif %}

After that check this product.
https://www.studiosommerfeldt.no/products/7347466-karina-pant

1 Like

Hi!

Thank you so much :slightly_smiling_face:

Do I add it as a liquid? And can I just add the code alone?