All things Shopify and commerce
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
Hi, you can do with the Smart Checkout Widgets app
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025