Rafael SilvaContact

Shopify store + automation2026

Fitness-apparel store & kit operations

I develop the Shopify store of a Brazilian fitness-apparel brand (home page, collections, product pages with gallery, cart and speed work) and the kit operation behind it: a step-by-step kit builder and a service that turns each paid kit into ERP stock movements for the pieces the shopper chose.

Contribution
Store development, the kit builder and the stock service
Status
Live store; stock service live since 31 May 2026
Client
A Brazilian fitness-apparel brand on Shopify, through a commerce agency
Period
Store work April to October 2026; stock service built May to June 2026
Stack
Shopify theme (Liquid, JavaScript), Next.js, Shopify Admin API, Bling ERP, Supabase
Production capture · live storeStore screens captured on 2 and 5 October 2026, brand name and logo blurred. On the kit builder screens, product photos are blurred and names replaced.
Collection page on a phone: a product card for each colourProduct page on a phone: gallery for the chosen colour and the add-to-cart barKit builder on a phone: step 1 of 2, colour and size for the first piece (photos blurred, names replaced)
Store home page on desktop: campaign banner, menu by category and the benefits bar

Store

Home, collections, product pages and cart

The brand sells fitness apparel by colour and size, and many pieces are also sold in kits. I work on the pages a shopper passes through:

  • Home page: campaign banners, featured collections and the newsletter block.
  • Collections: a card for each colour with that colour's own photos, a photo carousel on the cards, Pix price, a shipping badge and kit swatches.
  • Product pages: a gallery that follows the chosen colour, price with instalments and Pix, "complete the look", a comparison block, an FAQ filled from metafields and a sticky add-to-cart bar.
  • Cart: the right image for each colour, instalments, and kits shown as one line.
Collection page on desktop: a product card for each colour
The same collection on a phone
Collection page on desktop and on a phone, 5 October 2026.
Product page on desktop: gallery, price with Pix, colour and size
Product page on a phone: gallery and the sticky add-to-cart bar
Product page on desktop (2 October 2026) and on a phone (5 October 2026).

Speed

Measured on real visits

  • Real-user Core Web Vitals, collected from a sample of visits by monitoring I added to the theme.
  • A layout-shift fix for the mobile bottom bar, and a package of SEO and structured data.
  • The right variant image in product cards, the cart and the sticky bar, and checkout back on Shopify's native checkout.

Kits

One product, stock for each piece

Kits were sold as one Shopify product, but the brand's ERP (Bling) tracks stock per piece, so a kit sale didn't reduce stock for the pieces the shopper chose. The standard Shopify and Bling connection didn't break a kit into its pieces, and shoppers needed to pick colour and size for each piece, not just for the kit.

  • A step-by-step kit builder on the product page: colour and size for each piece in turn, progress shown, and the whole kit added to the cart in one action.
  • Piece details carried with the order. Each kit line carries hidden line-item properties for every piece: product, variant, SKU and image. The kit stays one product in Shopify.
  • A stock service on paid orders. It verifies the Shopify webhook, reads the pieces from the order, resolves each piece's SKU and posts a stock movement for it in the ERP.
  • Safe by default. Each movement is recorded before the ERP call with a unique key, so a repeated webhook doesn't move stock twice. Real writes need two settings switched on; otherwise the service runs as a dry run.
Kit page on desktop: photos of the piece and the first step of the kit builder
Kit page on a phone
Kit page on desktop and on a phone, 2 October 2026.
Kit builder on desktop (product photos blurred, brand and product names replaced)
Kit builder on a phone: step 1 of 2, colour and size choice for the first piece, previous/next piece buttons and "add kit to cart" (product photos blurred, brand and product names replaced)
Kit builder on desktop and on a phone, live product page, 2 October 2026. Store interface in Portuguese; product photos blurred, brand and product names replaced.

Proof

Live store and kits

  • Live on all 12 kit pages of the store, checked on 2 October 2026; each kit is sold as a single product with one variant.
  • Go-live, late May 2026 (from the rollout record): the first real order made no stock change because the app was still missing the ERP stock permission. Once the permission was granted, the next paid order moved stock for its two pieces.

Tech details

How it's built

  • Cart contract: properties _kit_component_<N>_… (product, variant, SKU, image) written by the storefront and read by the service. Nothing parses product titles, so renaming a product doesn't break the stock mapping.
  • Webhook: orders/paid, with the HMAC signature verified over the raw body; each piece's SKU is resolved through the Shopify Admin API and matched to the ERP product.
  • Idempotency: a unique key per order, line item and SKU, recorded before calling the ERP. The protection lives in the database, not in the hope that webhooks arrive once.
  • Rate limits and tokens: movements are posted one at a time with backoff on rate-limit responses; OAuth tokens are refreshed ahead of expiry and again on a 401.
  • Variant images: one resolver reads the colour's gallery for product cards, the cart and the sticky bar, so every surface shows the colour the shopper picked.
  • Stack: Liquid sections and JavaScript in the theme, Next.js route handlers, TypeScript, zod, Shopify Admin API, Bling ERP API v3 (OAuth2), Supabase, Vercel.

Credits Concept theme by RoarTheme; import and rebranding with a teammate; photography and brand by the client. Implementation assisted by AI coding agents


What this means for your store

I can develop a Shopify store and the operation behind it: the pages shoppers use every day and flows like kits that keep stock right for each piece. This project used Bling; another ERP would need its API and stock rules checked first.

Contact on LinkedIn

or e-mail contato@rafaelshopify.dev


Explore more