Hello everyone,
We have been using discount codes in combination with customer segments (using tags) to give automatic discounts to certain customers. The “automatic” part is taken care of by adding some code in our cart page to append the discount code at the end of the url for the checkout page when we detect that a customer has the required tag.
The system had been working without issue until recently (around September 24th) when we started to see some orders that were missing the appropriate discount.
The concerned customers are in the correct segment, the discount are still valid (start and end date) and the orders contain the products targeted by the discount.
Weirdly enough, the discount still works for some customers but not others.
At first, i thought i distinguished a pattern that the error was for customers using Shop Pay (maybe Shop Pay would redirect customers to a different checkout page that does not take discount code as parameters?) but then i also found the same issues with customers who had not used Shop Pay for payment.
Any hint would be greatly appreciated.
Of course, Shopify Support refuses to look into the issue since to make the discounts automatic, the code of our cart page had to be modified.