B2B Customers and automatic discounts issue

B2B Customers and automatic discounts issue

JPastorOnestic
Shopify Partner
12 2 3

I read this link: https://community.shopify.com/c/shopify-functions/automatic-discounts-using-functions-will-soon-appl... 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

JPastorOnestic_0-1706169399759.png

Logged in NON B2B customer

JPastorOnestic_1-1706169491319.png

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 🙂

 

Replies 4 (4)

MastersHub
Shopify Partner
216 21 38

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.

Helpful ? Like and Accept Solution
Buy me a Coffee
Need a Shopify Developer?
Send Email or Chat on WhatsApp
JPastorOnestic
Shopify Partner
12 2 3

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!

MastersHub
Shopify Partner
216 21 38

Yes, I see it. Good luck.

Helpful ? Like and Accept Solution
Buy me a Coffee
Need a Shopify Developer?
Send Email or Chat on WhatsApp

CCLH
Shopify Partner
3 0 1

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