Tags products created within the last N days (default 30) with 'new-arrival' and removes the tag once they age out of the window.
async def run(ctx): window_days = ctx.params.get("window_days", 30) cutoff = ctx.now() - timedelta(days=window_days) for product in await ctx.shopify.query(ALL_PRODUCTS):
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