We are trying to find a new solution to migrate from checkout.liquid to extensibility.
There is one big issue that is preventing the migration.
We would like to add a free gift with purchase (GWP) when a customer enters a specific discount code.
Existing implementation on checkout.liquid
Checkout extensibility issue
In checkout extensibility there is no way to listen to the discount code input (if requirements not met) via a Checkout UI block.
Here is the problem:
If we had a way to retrieve the discount code input regardless of validity we could then do the logic and validity checks ourselves and add the variant to the cart if requirements are met.
Have also spoke to a couple of discount app developers who have migrated to functions and they are also up against the same challenge.
We are looking for a way to achieve this as soon as possible.
@jains did you find a solution to this yet?
Nope. Shopify don't seem interested either.
The only way I can think of is the following:
Order level discount with £0 value which is the code the customer needs to add.
Checkout extension listens for order code being added and does two things:
What a mess!!!
Yes, thats the only solution/scenario I seemed to come up with also... nice to know Im not missing something here. Appreciate the reply. Thanks
Dive into the world of Print-on-Demand and discover how it can transform your online busin...By Imogen Feb 19, 2024
Discover how to transform your online store into a delightful shopping destination. Learn ...By Ollie Feb 13, 2024