This page is about version 3.115.0 of the app, which is not the most recent version. The latest stable version is 3.178.4.
The ProductPrice
is responsible for displaying the price of a given product.

Configuration
- Import the
vtex.store-component
app to your theme's dependencies in themanifest.json
;
_10 "dependencies": {_10 "vtex.store-components": "3.x"_10 }
- Add the
product-price
block to any block belowstore.product
(Product template). For example:
_16 "store.product": {_16 "children": [_16 "flex-layout.row#product",_16 ]_16 },_16 "flex-layout.row#product": {_16 "children": [_16 "product-price"_16 ]_16 },_16 "product-price": {_16 "props": {_16 "showSavings": true,_16 "showListPrice": false_16 }_16 },
Prop name | Type | Description | Default value |
---|---|---|---|
labelSellingPrice | String | Product selling price label | null |
labelListPrice | String | Product list price label | null |
showListPrice | Boolean | Set visibility of list price | true |
sellingPrices | Array | Product list of selling prices | [] |
showSellingPriceRange | Boolean | Set visibility of selling price range | false |
showListPriceRange | Boolean | Set visibility of list price range | false |
showLabels | Boolean | Set visibility of labels | true |
showInstallments | Boolean | Set visibility of installments | false |
showSavings | Boolean | Set visibility of savings | false |
blockClass | String | The set value functions as a customization identifier for any CSS specified in the block | null |
Customization
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 |
---|
price_className |
price_loader |
price_listPriceContainer |
price_listPriceLabel |
price_listPrice |
price_listPriceRange |
price_sellingPriceRange |
price_sellingPriceContainer |
price_sellingPriceLabel |
price_sellingPrice |
price_savingsContainer |
price_savings |
price_installment |
price_interestRate |
price_installmentContainer |