Reward offer

  • Block
  • rewards
  • Beauty
  • HTML demo (Liquid pending)
  • 4.5 KB JS

Reward with its value and the condition to unlock it. Part of Tress, a beauty theme for hair care, in the free, open-source Blocko library.

Open live demo Open in library

Features

  • Ships 4.5 KB of vanilla JavaScript (blko-haircare-extras.js), registered as an idempotent Custom Element.
  • No Shopify Liquid yet: not migrated to neutral template. The HTML demo is complete, and an agent can port it with the prompt below.
  • Category rewards. Made for beauty stores.

Preview

Reward offer preview

Use it with your agent

Paste this one-line prompt into any coding agent. It asks where the block should go before it changes anything.

Use the Blocko library (https://github.com/blockoai/blocko) or its Claude Code plugin (claude plugin marketplace add blockoai/blocko && claude plugin install blocko-sections@blocko) to implement the block "Reward offer" in my project. Id `haircare-extras-reward-tier`, theme `tress`. Live demo: https://demo.blocko.ai/html/tress/blocks/rewards--haircare-extras-reward-tier.html. There's no Shopify bundle yet (not migrated to neutral template), so port it from the HTML demo demo/tress/blocks/rewards--haircare-extras-reward-tier.html into a Liquid section with a {% schema %}, mirroring an existing bundle in sections/veil/. Before changing any code, ask me where it should go: which project/theme, which page or template, and the position (e.g. after the hero). Also ask if the target is a Shopify theme or plain HTML. Skip anything I've already said. Restate the plan and wait for my OK, then follow the repo's AGENTS.md. Keep the blko- class prefix and CSS tokens (with fallbacks), make custom elements idempotent, and don't touch unrelated code. Run `shopify theme check` for Shopify targets. Finish by telling me how to add/arrange it (Theme Editor steps for Shopify).

Connected to the Blocko MCP server (https://blocko.ai/mcp)? Ask your agent to run get_item for tress/haircare-extras-reward-tier, then get_item_source and get_install_guide. Connect your agent.