Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I have read online about a PriceRule resource which can be used to modify the logic behind discount codes.
I have a discount code which gives 40% discount when there are more than 50 items, but this also works if I have for example 49 items + 1 other item. I want to make the code work only for the single items that have a quantity over 50.
I assume this would be pretty straight forward if I could access this logic myself. Can someone point me into whereabouts could I find these codes for my discounts?
I would also want my discount code to give 40% for items over 50 quantity, and 50% for items over 200 quantity.
Thanks
I have been playing a bit with GraphiQL, and I have found the priceRule has a field called: allocationMethod (PriceRuleAllocationMethod).
The value of this is ACROSS. Would my discount code have the desired behaviour if I manage to change this to EACH?
How can I modify this, I haven't been able to find an example.
I would appreciate any kind of help with this
I have tried the following, but the allocation method is not updated. Any ideas why?
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024