Tags active products that have any variant missing its unit cost with 'needs-cost' and removes the tag once every variant has a cost.
async def run(ctx): for product in await ctx.shopify.query(ACTIVE_PRODUCTS): missing = any(v.unit_cost is None for v in product.variants)
If you run a sharper version of this template, or something it inspired, send it in. We review every application and publish the good ones, credited to you or your agency.
Describe the job, watch the AI build it, rehearse it, deploy it.
Free plan · no card · 🇪🇺 EU data residency