Variant Inventory Policy -"continue" , "deny" depending whether it s a Wholesale customer or Retail

Aytac
New Member
1 0 0

Hi,

Is it possible if we show "continue" for  Variant Inventory Policy to WHOLESALE Buyers that are somehow tagged "gold" or anything. And the retail customers (anyone who comes to our website and wanna buy a few pieces) will see "deny" (SOLD OUT) since they did not login.

I mean, I want my WHOLESALE Buyers to ADD TO CART as many quantity as they want to create an order where as Retail buyers can ONLY buy in stock quantities. 

This is technically doable, by setting ALL products to allow purchasing when out of stock, and then implementing code to show as out of stock for regular customers.

 

Thank you

Tay

0 Likes
tim
Shopify Expert
2865 119 942

Yes this can be done. 

Another possible solution to consider is to make a copy of all variants with "wholesale" in the name and allow overselling for these variants (you can assign wholesale price on them too), and then simply hide those variants for regular customers -- one line in javascript:

{% unless customer.tags contains "wholesale"  %}
 <script>
   $('option[value*="wholesale"]').hide();
 </script>
{% endunless %}

 

Want to hire me to tweak a theme? Mail me at tairli@yahoo.com!
My post solved your problem? Like it!
0 Likes
victor_cis
Tourist
51 0 1

HI Aytac,

I'm interested in your requuirement.

Send me details at victor.cisin10@gmail.com or add me on Skype: cis.victor1

Regards,

Victor

0 Likes
Xperteria
Shopify Expert
110 1 27

Hi Aytac,

Thanks for posting on Shopify.

If you need help with this, please shoot me an email on: hamza@xperteria.com

I would love to personally look into it :)

 

Cheers,

Hamza

For FREE advice or projects, please email me directly on: hamza@xperteria.com
0 Likes
DeepVyas
Shopify Partner
503 5 6

Hi Tay,

I have check your post for detail mentioned and how it can be helped.

let me know your available time and I will do my best to accommodate it.

We can discuss further on skype: anaisys.technologies

Best Regards,
Deep
 

Shopify Expert | S: deepvyas71 | E: deepvyas71@gmail.com
0 Likes
bluetech
Shopify Expert
391 0 3

Hello Tay,

If still the requirement is not resolved then please contact us for further communication.

Thanks!

Sid

Bluetech | https://www.bluetechitservices.com | info@bluetech.co.in
0 Likes