Mirrors a single-line-text metafield (default custom.badge) into a 'badge:<slug>' tag so a merchandiser-set badge drives theme and filtering tags.
async def run(ctx): field = ctx.params.get("metafield", "custom.badge") for product in await ctx.shopify.query(ALL_PRODUCTS): badge = await ctx.metafields.get(product.id, field) wanted = f"badge:{slugify(badge)}" if badge else None
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