Skip to content
All work

Case study · In-house

Admin tooling & AI merchandising

A collection discount-badge sync that never overstates a saving, and Completo: an embedded app where an LLM picks complementary products for ~1,750 SKUs.

Role
Frontend Developer
Company
Luxo LivingNov 2023 – Present
Project
2024 – 2026
Platforms
ShopifyNetSuiteZendesk
  • Admin UI extensions
  • Admin GraphQL
  • React Router 7
  • Polaris
  • App Bridge
  • Prisma
  • SQLite
  • DeepSeek-R1
  • node:test
  • PHP 8

Context

A large furniture catalogue needs a lot of merchandising upkeep. Every collection needs an honest “up to X% off” badge, and every product page should suggest products that go with it. Doing that by hand doesn’t scale. I built tools that do it inside Shopify Admin.

What I built

Collection discount-badge sync

An Admin extension, plus a scheduled pipeline job that runs the same logic:

  • Computes the largest whole-number discount in each collection, rounded down so the badge never overstates a saving (a 39.8% saving shows as 39%, not 40%).
  • Paginates with Shopify’s query cost in mind, so it stays inside the rate limit.
  • Writes, then reads back to verify, with retries.
  • Reports each collection as synced, partial or failed, has a dry-run mode, and is unit-tested with node --test.
// Illustrative: the badge may round a saving down, never up.
export function badgePercent(variants) {
  let best = 0;
  for (const { price, compareAtPrice } of variants) {
    if (!compareAtPrice || compareAtPrice <= price) continue;
    best = Math.max(best, ((compareAtPrice - price) / compareAtPrice) * 100);
  }
  return Math.floor(best + 1e-9); // guard float noise, then floor
}

I also built a pin end-date validator block for Admin.

Completo (embedded app, all mine)

Completo picks complementary products with an LLM and writes them where Shopify’s Search & Discovery app reads them:

  • DeepSeek-R1, through an OpenAI-compatible API, chooses complementary products by tag.
  • The picks are written to the Search & Discovery complementary_products metafield.
  • CSV bulk runs covered about 1,750 products across roughly 38 category CSVs.
  • Built on React Router 7, Polaris, App Bridge, Prisma/SQLite and the Admin GraphQL API.

Team work I contributed to

These are mostly teammates’ code. My contributions:

  • Zendesk ↔ NetSuite app: order deposits, an endpoint switch and shipping lines for replacement orders.
  • PHP NetSuite order importer: webhooks become a customer and a sales order in NetSuite, including bundles and assembly SKUs, idempotency, and a re-import cron.
  • Marketplace feeds for Google Merchant, Meta, Criteo and Kogan.

Outcome

Collection badges are computed, verified and conservative by construction. Complementary-product data comes from a repeatable bulk process that can be re-run one category CSV at a time.