GithubHelp home page GithubHelp logo

checkout-step-group's Introduction

Checkout Step Group

The Step Group component renders a list of "steps" in the Checkout interfaces. Each step is represented by a required part of the checkout process that the user must complete before they finish their order.

Illustration of the checkout step group component

Configuration

  1. Add the Step Group app to your theme's dependencies in the manifest.json. For example:
{
  "dependencies": {
    "vtex.checkout-step-group": "0.x"
  }
}
  1. Add the checkout-step-group block inside the block which renders the checkout. For example:
// interfaces.json
{
  "my-checkout-page": {
    "around": ["checkout-container"],
    "composition": "children"
  }
}
// blocks.json
{
  "my-checkout-page": {
    "children": ["checkout-step-group"]
  }
}

Advanced customization

The checkout-step-group block renders by default 3 steps, the most common ones in the checkout process:

  • profile-step: Renders the profile form, and the profile summary
  • shipping-step: Renders the shipping form, which includes the address form and pickup point
  • payment-step: Renders the payment form, with all the available payment methods in the current store

If you want to customize and remove (or add) one of these steps, you can do so by doing the following:

// blocks.json
{
  "checkout-step-group#my-checkout": {
    "children": [
      // you can include here only the steps you need
      // in your store
      "profile-step",
      "payment-step"
    ]
  },
  "my-checkout-page": {
    "children": ["checkout-step-group#my-checkout"]
  }
}

CSS Customization

In order to apply CSS customizations in this and other blocks, follow the instructions given in this recipe regarding using CSS classes for store customization.

CSS Handles
stepGroupWrapper
stepGroupList
stepGroupCheckoutLabel
step
indicator
indicatorActive
indicatorInactive
stepTitle
stepContentWrapper
stepDivider
stepContent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.