📢 Use this project, contribute to it or open issues to help evolve it using Store Discussion.
The Shipping Simulator block estimates the shipping fee based on a zip code input.
- Import the
vtex.store-componentapp to your theme's dependencies in themanifest.json;
"dependencies": {
"vtex.store-components": "3.x"
}- Add the
shipping-simulatorblock to any block below store.product. For example:
"store.product": {
"children": [
"flex-layout.row#product",
]
},
"flex-layout.row#product": {
"children": [
"shipping-simulator"
]
},
"shipping-simulator": {
"props": {
"skuID": "342"
}
},| Prop name | Type | Description | Default value |
|---|---|---|---|
skuId |
String |
ID of the current product SKU | - |
seller |
String |
ID of the product seller | - |
In order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on Using CSS Handles for store customization.
| CSS Handles |
|---|
shippingContainer |
shippingContainerLoader |
shippingZipcodeLabelLoader |
shippingInputLoader |
shippingZipcodeLabel |
shippingCTA |
shippingNoMessage |
shippingTable |
shippingTableCell |
shippingTableLabel |
shippingTableRadioBtn |
