
- Shopify app
- Shopify Functions
- Discount logic
- Dashboard
- Node
- Railway
Situation
Shopify caps a discount at 25 products, and the store hit that ceiling as free-gift combinations multiplied across tests. Each new gift test needed room in a discount, and there was none left.
What I built
I proposed and built an app that collapses the whole programme into a single discount rule. The backend maps each gift to its trigger product and marks assigned items free, so one rule covers every combination and a new experiment no longer costs a discount slot. The gift code stays consistent, and a custom dashboard lets the team manage the mapping without a developer.
The rebuild shown here
The screenshots come from a rebuild on a test store, because the production app belongs to the client. Its gift map follows the layout of the EG Auto Add to Cart app the team already used to add gifts, so managing which gifts are free feels familiar. Each rule is guarded: a gift never counts as its own trigger, a gift named by two rules is only made free once, and extra units above what the triggers allow stay at full price. The editor shows those checks, and a preview of the cart, before a rule is saved.
