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
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025