Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Display product price when there is no product variants
Miraa6087afd5d49
diff --git a/saleor/static/js/components/categoryPage/ProductPrice.js b/saleor/static/js/components/categoryPage/ProductPrice.jsindex c420e19f13..4c5fdceac4 100644--- a/saleor/static/js/components/categoryPage/ProductPrice.js+++ b/saleor/static/js/components/categoryPage/ProductPrice.js@@ -6,10 +6,11 @@ import SaleImg from '../../../images/sale_bg.svg';const ProductPrice = ({ availability, price }) => {const { discount, priceRange } = availability;const isPriceRange = priceRange && priceRange.minPrice.gross !== priceRange.maxPrice.gross;+ const priceLocalized = priceRange ? priceRange.minPrice.grossLocalized : price.grossLocalized;return (<div><span itemProp="price">- {isPriceRange && <span>{gettext('from')} </span>} {priceRange.minPrice.grossLocalized}+ {isPriceRange && <span>{gettext('from')} </span>} {priceLocalized}</span>{discount && (<div className="product-list__sale"><img src={SaleImg}/><span>{gettext('Sale')}</span></div>