Product Summary Price

https://img.shields.io/badge/-Deprecated-redhttps://img.shields.io/badge/-Deprecated-red

⚠️

The Product Summary Price block has been deprecated in favor of the Product Price app. Although support for this block is still available, we strongly recommend that you update your store theme with the Product Price app to stay up with the component's evolution.

ProductSummaryPrice is a block exported by the Product Summary app responsible for rendering the product's price.

price-exampleprice-example

Configuration

  1. Import the vtex.product-summary app to your theme's dependencies in the manifest.json:
  dependencies: {
    "vtex.product-summary": "2.x"
  }
  1. Add the product-summary-price block to your store theme as a child of the product-summary.shelf block. For example:
   "product-summary.shelf": {
    "children": [
      "product-summary-image",
      "product-summary-name",
+     "product-summary-price",
      "product-summary-attachment-list",
      "product-summary-space",
      "product-summary-column#1"
    ]
  },
  1. Then, declare the product-summary-price and configure its behavior using the props stated below.
Prop nameTypeDescriptionDefault value
showListPriceBooleanShows the product list pricetrue
showInstallmentsBooleanSet installments' visibilitytrue
showDiscountValueBooleanSet discount value's visibilityfalse
showLabelsBooleanSet pricing labels' visibilitytrue
labelSellingPriceStringText of selling price's label
labelListPriceStringText of list price's label
showBordersBooleanSet product's borders visibilityfalse
showListPriceRangeBooleanSet if you want to see list price as range (lowest - highest) when availablefalse
showSellingPriceRangeBooleanSet if you want to see selling price as range (lowest - highest) when availablefalse

Customization

To apply CSS customizations in this and other blocks, follow the Using CSS Handles for store customization guide.

CSS Handles
priceContainer
productPriceClass
listPriceContainer
listPriceLabel
listPrice
sellingPriceContainer
sellingPriceLabel
sellingPrice
savingsContainer
savings
interestRate
installmentContainer
listPriceRange
sellingPriceRange
priceLoading

Did this page help you?