The Pickup Availability app allows you to add a component to your store's product pages that displays in-store pickup availability for a selected SKU. This allows customers to check whether the item can be collected at a physical store.
ℹ️ This component uses the
ProductContextapp and should be implemented inside thestore.productblock.
Make sure you have configured in-store pickup for your store, including pickup points and shipping policies.
- Open your Store theme project in a code editor.
- In the terminal, install the
pickup-availabilityapp in your account by running thevtex install vtex.pickup-availabilitycommand. - Add the
pickup-availabilityapp to your theme'smanifest.jsonfile underpeerDependencies:
"peerDependencies": {
"vtex.pickup-availability": "0.x"
}Declare the pickup-availability block in the desired product template, such as store.product. For example:
"store.product": {
"children": [
"flex-layout.row#product-main",
"flex-layout.row#description",
"shelf.relatedProducts",
"pickup-availability"
]
},To apply CSS customizations to this and other blocks, follow the instructions in Using CSS Handles for store customization.
| CSS Handles |
|---|
availabilityAction |
availabilityButtonContainer |
availabilityHeader |
availabilityMessage |
container |
innerContainer |
shippingEstimate[--]{timeModifier} |
Thanks to these wonderful people (emoji key):
Bruno Moreira 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!