Unaas
October 2, 2024, 6:43pm
1
I use Shopify Plus. I only want to sell to B2B customers. And only to my registered B2B customers.
How can I solve it? I do not want it to be possible for random people to make sales in my shop. I know i can put a password on the complete shop. I don’t want to close the entire online store. I want to have a landing page with information and so.
1 Like
There’s an option to restrict access to B2B customers only:
Unaas
October 3, 2024, 6:49am
3
But how do I get new customers if the page is locked down by password?
I just need a option to only sell to B2B customers. It should be one of the most basic functions for a B2B solution?
1 Like
Leysam
October 3, 2024, 11:36am
4
@Unaas
You need to update your theme and implement the following changes to hide the ‘Add to Cart’ button for non-B2B users:
When the ‘Add to Cart’ button is clicked, if the user is not logged in, redirect them to the login page.
After login, check whether the customer is a B2B or a regular user.
Block the ‘Add to Cart’ button for non-B2B users and enable it only for B2B users.
Let us know if you need any coding assistance; we can handle that for you.
Thanks
Yeah they should have a smarter default for this. Probably just drop into liquid and remove the add to cart button if the current logged in customer doesn’t have any company location set on them.
Unaas
October 3, 2024, 6:42pm
6
Where do I do this? in the custom theme menu? or Shopfiy settings?
Leysam
October 4, 2024, 3:09pm
7
@Unaas You need to do some custom code in the theme.
Unaas
October 11, 2024, 12:15pm
8
What do I need to do? Who do I do that?
Spotify customer support does not understand anything about this when I try to as them.
Unaas
October 11, 2024, 12:15pm
9
What do I need to do? Who do I do that?
1 Like
My ability to provide free support here is limited, but if you’re interested in further help on a paid basis, the link is in my signature.
Leysam
October 15, 2024, 5:11pm
11
@Unaas You’ll need a developer to do this for you. This will require complicated coding stuff and honestly im too lazy to write the code here.
The logic is:
When the ‘Add to Cart’ button is clicked, if the user is not logged in, redirect them to the login page.
After login, check whether the customer is a B2B or a regular user.
Block the ‘Add to Cart’ button for non-B2B users and enable it only for B2B users.
If you need further support you can find my email below.