B2B Customers and automatic discounts issue

JPastorOnestic
Shopify Partner
11 2 2

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 3 (3)

MastersHub
Shopify Partner
198 20 33

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
11 2 2

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
198 20 33

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