Implementing a Discount Club with Customer Tags and Variant Metafields

Hello Shopify Community,

I’m working on setting up a discount club, “clube+”, in my Shopify store. The goal is to offer special pricing to customers tagged with “clubemais.” To achieve this, I’ve added a metafield at the variant level named “clubemais_price” to specify the discounted price for each product variant.

I would like to:

  1. Display the “clubemais_price” to customers tagged with “clubemais”: When these customers are logged in, they should see the discounted price on product and collection pages.
  2. Apply the “clubemais_price” during checkout for tagged customers: Ensure that the discounted price is honored throughout the purchase process.

I’m seeking advice on the best approach to implement this functionality. Specifically:

  • Theme Customization: How can I modify my theme to check for the “clubemais” tag on a customer and display the “clubemais_price” metafield accordingly?
  • Checkout Integration: What steps are necessary to ensure that the discounted price is applied during checkout for eligible customers?
  • App Recommendations: Are there existing Shopify apps that facilitate this type of functionality, or is custom development required?

Any guidance, examples, or resources would be greatly appreciated!

Thank you!

Hi Eduardo,

This model feels very close to a b2b/wholesale model, where a specific group of logged-in customers would see different pricing than a regular customer that arrives organically. Have you looked at the available wholesale apps - this could be a more suitable option?

I think the best experience you’d have is with Shopify’s native B2B, as @Liam-Shopify suggests (if you’re doing this for a Plus store).

I would say that your approach is very reasonable/good, and it’s something we do in our ‘Custom metafield discount’.

1.) Theme customisation. Your price is directly accessible in liquid at variant.metafields.clubemais_price - so it’s a one liner in your theme to show this price, if a customer is logged in.
2.) Checkout Integration: Use a discount function to check the customer tag + read the merchandise metafield value - apply the discount if the tag is correct and the metafield value exists.
3.) App recommendation. I’ll hold off on this given my day job! I would say that there are a few apps that would likely be able to handle this, at different price points, and integration effort levels.

Hope that helps!

Hi Liam, how are you? Thanks for getting back to me.

I wasn’t familiar with the app, but I just tested it, and it almost solved my problem. However, I’m sure it will be very useful in other cases, and the most interesting part is that it’s free.

In my specific case, the “discount” will be the price coming from a metafield at the variant level, directly from the client’s ERP. The app just doesn’t handle this particular aspect.