Menu

Why We Built Bundler on Native Shopify Functions (Not Theme Code Hacks)
πŸ“°

Why We Built Bundler on Native Shopify Functions (Not Theme Code Hacks)

DEV Community: backendΒ·klyxΒ·1 day ago
#MaEDw0VH
#devtobackend#devto#dev#checkout#shopify
Reading 0:00
15s threshold

Why We Built Bundler on Native Shopify Functions (Not Theme Code Hacks)

A lot of bundle and discount apps on the Shopify App Store still calculate pricing client-side and inject it via JavaScript β€” which works until Shopify changes something about checkout, and then it quietly stops working. We built Bundler differently on purpose.

🩹 The Old Way: Client-Side Discount Injection

JavaScript-based discount apps calculate the bundle price in the browser and try to apply it before or during checkout β€” a pattern that's fragile by design, since it depends on checkout's DOM structure staying stable, which Shopify doesn't guarantee.

⚑ What Shopify Functions Actually Changes

Functions run server-side, compiled to WebAssembly, directly inside Shopify's checkout logic β€” not bolted on after the fact.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.