Documentation
Feedback
Guides
VTEX IO Apps

VTEX IO Apps
Availability Badges
vtex.shipping-option-components
Version: 1.6.2
Latest version: 1.6.2

The availability-badges block displays availability badges for product delivery and pickup.

{"base64":"  ","img":{"width":3062,"height":1206,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":2902789,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/images/vtex-store-components-infocard-0.png"}}

Configuration

  1. Import the shipping-option-components app to your theme's dependencies in the manifest.json file as in the following example:

_10
"dependencies": {
_10
"shipping-option-components": "1.x"
_10
_10
}

  1. Add the availability-badges block to the product-summary.shelf component. For example:

_10
"product-summary.shelf": {
_10
"children": [
_10
"availability-badges"
_10
]
_10
}

Props

Although this block does not have explicit props, it uses the ProductSummaryContext and useShippingOptionState to retrieve delivery information.

Customization

To apply CSS customizations to this and other blocks, please see the Using CSS handles for store customization guide.

CSS Handles
availabilityBadgeCircle
availabilityPickupButton

Notes

  • Delivery availability is defined at the product level.
  • Each product may or may not have each delivery method (Shipping and Pickup).
  • The store must be regionalized for the component to work correctly.
See also
Vtex.shipping Option Components
VTEX IO Apps
VTEX App Store
VTEX IO Apps