We have B2B customers on our site that need to know carton quantity, but we can’t figure out a way to show carton quantity to only those customers.
Some B2B customers use the Wholesale Channel, some the Online Store. We plan to move all to the Wholesale Channel eventually.
The idea I had today is to add a Metafield for carton quantity for each product (this is done already), tag customers who are B2B (“B2B”), and display the Metafield on the product page only if someone is logged in as a B2B customer.
Is this a viable solution?
Is it the best way to implement?
Would the Metafield be displayed on the product page on the Wholesale Channel?
If this is doable, what would the appropriate code be with the following parameters:
Metafield name: product.metafields.custom.box_quantity
Tag: B2B
Any solutions would be much appreciated.