Building a Shopify Functions discount app (Pricelid)
Shopify’s discount editor will take a percentage or a fixed amount. It will not take “20% off, up to $50.” That is the whole reason Pricelid exists. The discount still lives in Shopify. The app stores the rule as JSON on the discount metafield, and a Shopify Function reads it while the cart is being priced. No theme edits. If the discount is not an order discount, or the metafield is missing, the Function returns no operations and checkout moves on. ...
Customizing Shopify Plus checkout with Functions (Checkout Rules Pro)
Shopify Plus checkout will not let a theme hide Cash on Delivery. Payment and delivery customizations are Shopify Functions. Checkout Rules Pro stores the rules as JSON on a metafield and lets the Function read them at checkout. No theme code. No metafield, no operations. Payment methods Each rule names a method and an action. The Function lowercases the name and looks for a payment method whose name contains it. “Cash on Delivery” matches a hide rule for “cash on delivery.” ...
Making a WooCommerce store shoppable by AI agents (UCP Engine)
An AI shopping agent cannot guess how your WooCommerce store works. It needs a document that says where the store is, and an API that can hold a cart. UCP Engine is that plugin. WooCommerce core does not ship the Universal Commerce Protocol, so the plugin sits next to the store you already have. What the agent actually fetches Discovery is /.well-known/ucp. That profile points at the shopping API and at OAuth metadata for a signed-in buyer. The shopping routes live under ucp/v1: catalog, cart, checkout sessions, and orders. WordPress also exposes them on the normal /wp-json/ path. The plugin rewrites a shorter /ucp/v1 alias, and verification accepts either path, because the agent signs the URL it actually called. ...
Shared inventory pools with Shopify inventory webhooks (Recount Kit)
Some products are one pile of stock wearing several variant names. Shopify will happily track each variant on its own. Sell one, and the siblings still say they have the old count. Recount Kit treats those variants as a pool and lets Shopify stay the source of truth. The webhook Shopify sends inventory_levels/update when available quantity changes at a location. The handler turns the numeric ids into inventory-item and location gids, then looks for a pool member at that shop and location. ...
Hello World
I’m a terrible writer. Always have been. I have plenty of opinions and things I want to say, but the moment I try to put them into sentences, it comes out like a ransom note assembled by someone who skipped every English class. So yes — I use AI to write these posts. Before you close the tab: every word on this blog has been read by me. Every sentence reflects what I actually think. Nothing gets published that I don’t agree with, and nothing gets twisted into something I didn’t mean. I’m not outsourcing my opinions, I’m outsourcing the part where I make them readable. ...
How I Interview Developers
Most software interview methods were shaky even before AI showed up. Now the weak ones are just easier to game. If somebody can paste your take-home into a model and send back a polished answer, that tells you almost nothing. If they can grind through a whiteboard problem they memorized from LeetCode, that also tells you almost nothing. So my process is simple: get people talking about real work, then pay attention. ...