We are looking to use metafields that would generate on the backend of orders placed that would identify the type of order based on our B2B. We will have three user tier groups User group 1, User group 2, User group 3 by which it decides what pricing and products they see on the store. So when a user places an order we would like for it to show on the order form either user group 1, user group 2, user group 3. Is this possible and is there anyone that can provide direction on how to achieve this? We also do not mind if this is also added to the checkout page either if possible.
Hi yes, you can add metafield at customer level and add the tier value into it.
You can add below code at buy-buttons.liquid under the form tag.
{% if customer %}
{% endif %}
For discount you have to manage it with discount code which will add discount code to customer based on their tier, for this you have to write the custom code to apply discount code automatically based on user tier.
Hope this will help…