Hide products, except for internal orders

Hi

We have a B2C webshop and currently no plan to add a B2B version.

Professionals send us an order form via e-mail.

This works fine for the time being.

However I would like to register those B2B orders in shopify, so we have a complete overview of all sales in 1 system.

Therefore I need to register the B2B products and prices as well.

Of course I don’t want those products to be visible for customers.

Hence they may not appear on our website nor may they be found via the internal or external search engines.

I think that removing all the sales channels from the product will do the trick.

But I would like to have confirmation from someone who has more experience with shopify.

The platform is still pretty new to me.

Best regards

Tom

One of the options would be to create two versions of each product - one for B2C, one for B2B. Then, assign each of those versions with tags, be it B2C or B2B.

Then, I suppose your clients do have an accounts with you - assign business accounts with tags, too, but to save some time assign just B2B, if you like.

If I am right, then you will only have to change some coding in one file: product-grid-item.liquid (might be called different)

Something like this would do:

{% if customer %}

{% if customer.tags contains 'B2B' and product.tags contains 'B2C' %} hidden
{% elsif customer.tags contains 'B2C' and product.tags contains 'B2B' %} hidden
{% endif %}

{% elsif product.tags contains 'B2B' %}
hidden
{% endif %}

Not the cleanest and easiest way to do, but should work :))

Basically, what you do, is go to that file mentioned above and insert this code into CSS styling of your product div. It will make B2B products hidden for B2C accounts and vice-versa, and will hide all B2B products for those without the account

Hi kgbfashionista
Thank you for your response, but you’re making things a bit too complex.

Professionals simply don’t log in our website.

No one has to see those products, except internal staff need to be able to add them to an order created in the backend.

Is there a reason you don`t have customer accounts? That would save you tons of time.

because we’re a startup :slightly_smiling_face:

we start with a B2C webshop and will add a B2B in the future.

but basically you’re changing the discussion :slightly_smiling_face:

the question is: how can I correctly hide the products for visitors of the website + search engines.

To hide products for everyone - yes, by opting out of Sales Channels.

And I wasn`t changing the discussion - that question was meant to help me to understand your situation better.

1 Like