Skip to content

Commit

Permalink
Add showPriceRange to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny committed May 22, 2019
1 parent 5d94419 commit 37cb42e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions react/components/ProductSummaryPrice/ProductSummaryPrice.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ const ProductSummaryPrice = ({
ProductSummaryPrice.propTypes = {
/** Set the product list price's visibility */
showListPrice: PropTypes.bool,
/** Set visibility of prices' range */
showPriceRange: PropTypes.bool,
/** Set pricing labels' visibility */
showLabels: PropTypes.bool,
/** Set installments' visibility */
Expand All @@ -123,7 +125,9 @@ ProductSummaryPrice.propTypes = {
}

ProductSummaryPrice.defaultProps = {
showPriceRange: true,
showListPrice: true,
showPriceRange: true,
showInstallments: true,
showLabels: true,
labelSellingPrice: '',
Expand All @@ -142,6 +146,12 @@ ProductSummaryPrice.getSchema = () => {
default: ProductSummaryPrice.defaultProps.showListPrice,
isLayout: true,
},
showPriceRange: {
type: 'boolean',
title: 'admin/editor.productSummary.showPriceRange.title',
default: ProductSummaryPrice.defaultProps.showPriceRange,
isLayout: true,
},
showInstallments: {
type: 'boolean',
title: 'admin/editor.productSummary.showInstallments.title',
Expand Down
2 changes: 2 additions & 0 deletions react/legacy/components/ProductSummaryPrice.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ ProductSummaryPrice.propTypes = {
product: productShape,
/** Set the product list price's visibility */
showListPrice: PropTypes.bool,
/** Set visibility of prices' range */
showPriceRange: PropTypes.bool,
/** Set pricing labels' visibility */
showLabels: PropTypes.bool,
/** Set installments' visibility */
Expand Down

0 comments on commit 37cb42e

Please sign in to comment.