Skip to content

Repository files navigation

delivery-promise-components

VTEX IO app (vtex.delivery-promise-components) that exports Store Framework blocks allowing shoppers to set a postal code, choose a shipping method (delivery vs. pickup), and select a pickup point — all driven by the Delivery Promise platform service.

Closed beta: only stores with Delivery Promise enabled can use this app.

See docs/README.md for the full block reference, props, CSS handles, and integration guide.


Prerequisites

  • Node.js 20 (managed via .nvmrc — use nvm use)
  • Yarn (v1)
  • VTEX Toolbelt: npm i -g vtex
  • An active VTEX account and development workspace: vtex login <account>

How to run

Install dependencies and refresh VTEX IO typings:

make dev

Link the app to your development workspace (requires a logged-in Toolbelt session):

make link
# or equivalently: make run

The terminal will watch for file changes and hot-reload in the linked workspace. Confirm the active account/workspace with vtex whoami before linking.

How to test

Run the React unit test suite:

make test

Run all quality checks (lint + test) before opening a PR:

make check

Run with coverage report:

make coverage

How to publish

⚠️ These commands affect production. Always confirm the target account/workspace first.

vtex publish        # publishes a new app package to the registry
vtex deploy         # promotes a release candidate to stable

Use vtex release patch stable (or minor/major) via the standard VTEX IO release workflow to bump the version in manifest.json and create the corresponding git tag.

Documentation

About

The Delivery Promise Components app exports a component that aims to allow you to filter store products by location and shipping method.

Resources

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages