B2B Customers and automatic discounts issue

Topic summary

Automatic discounts created via an app (Shopify Functions) work for guests and logged-in non-B2B customers but fail for B2B (business-to-business) customers. The OP references Shopify’s note that automatic discounts will soon apply to B2B, yet in a development store they do not.

Observed symptoms when logged in as B2B:

  • 10% automatic order discount not applied.
  • Minicart fails to update/reload after adding qualifying product.
  • No execution logs appear in the Partners portal.

Suspected cause: retrieving buyerIdentity for B2B customers may be failing. Screenshots were shared to illustrate differing behavior between guest/non-B2B and B2B sessions.

Status and outcomes:

  • No solution or workaround provided; no confirmations from Shopify.
  • OP plans to retest after Winter 2024 platform changes, implying a possible Shopify-side issue.
  • Another developer corroborates the problem, reporting the same behavior for an automatic volume discount with B2B logins.

The discussion remains open with unresolved questions about current support and any fixes for B2B automatic discounts.

Summarized with AI on December 31. AI used: gpt-5.

I read this link: https://community.shopify.com/post/2338733 but seems that is not applying discounts to B2B customers in a new in development app.

Summary of issue:

  • Created a new 10% auto order discount

  • If I test with non logged in customer works fine and each log is appearing in Partners portal

  • If i test with a logged NON B2B customer works fine as not logged in.

  • If i test with a logged B2B customer minicart seems to fail when reloading with the added product, no log appears in Partners, discount is not applied.

Not logged STDIN

Logged in NON B2B customer

Seems that the issue is when trying to obtain buyerIdentity in B2B customers, tests were made in same store, with same products but different customers.

Thanks in advance, if need some more info please tell me :slightly_smiling_face:

2 Likes

I would like to help you, but I didn’t fully understand what you’re asking for. If you provide more details, I’ll be happy to assist you.

Hello, problem seems to be inside Shopify, i was only advising of the issue for knowing if any other DEV is having the same problem. In summary: automatic app created discounts seems were not working with B2B customers (no log in partners, no discount applied and minicart does not update nicely after adding the product that should apply the discount), i will give a try again when i get a gap, maybe Shopify has fixed the issue in latest changes of Winter2024.

Thank you for your comment, best regards!

Yes, I see it. Good luck.

1 Like

Hello, I am having the same problem, I am developing an app that creates an automatic discount for volume and when I test it logged in as b2b no discount appears, I would like to know if you found a way to make the discount apply