spz-checkout

Handle checkout button logic. If the user clicks this button, it will go to the checkout page.

布局

Specifies a checkout button with the role="checkout" attribute. It will have a loading attribute when the user clicks it. It is required.

 <spz-checkout cart="#cart-items" layout="container" has-loading>
  <button
    role="checkout"
    type="button"
    data-track="click"
    data-track-source="checkout"
    data-track-content="checkout"
  >
    <span role="content">Checkout</span>
    <div role="loading"><!-- ... --></div>
  </button>
</spz-checkout>
Property Description Type Default Required
cart A id of the spz-cart element string - Yes
note-id A id of the note element string - No
本页目录