Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix product link area
weronkad92c154cd627
diff --git a/saleor/static/js/components/categoryPage/ProductItem.js b/saleor/static/js/components/categoryPage/ProductItem.jsindex 9f84d1e6ae..75ba605fe1 100644--- a/saleor/static/js/components/categoryPage/ProductItem.js+++ b/saleor/static/js/components/categoryPage/ProductItem.js@@ -13,17 +13,17 @@ class ProductItem extends Component {const { product } = this.props;return (<div className="col-6 col-md-4 product-list" itemScope itemType="https://schema.org/Product">- <div className="text-center">- <div>- <a itemProp="url" href={product.url}>- <img itemProp="image" className="img-responsive" src={product.thumbnailUrl} alt="" />- <span className="product-list-item-name" itemProp="name" title={product.name}>{product.name}</span>- </a>+ <a itemProp="url" href={product.url}>+ <div className="text-center">+ <div>+ <img itemProp="image" className="img-responsive" src={product.thumbnailUrl} alt="" />+ <span className="product-list-item-name" itemProp="name" title={product.name}>{product.name}</span>+ </div>+ <div className="panel-footer">+ <ProductPrice price={product.price} availability={product.availability} />+ </div></div>- <div className="panel-footer">- <ProductPrice price={product.price} availability={product.availability} />- </div>- </div>+ </a></div>);}diff --git a/templates/category/_items.html b/templates/category/_items.htmlindex 9a19e599bb..22e9fd51d2 100644--- a/templates/category/_items.html+++ b/templates/category/_items.html@@ -5,26 +5,26 @@{% for product, availability in products %}<div class="col-6 col-lg-3 product-list" itemscope itemtype="https://schema.org/Product">- <div class="text-center">- <div>- <a itemprop="url" href="{{ product.get_absolute_url }}">+ <a itemprop="url" href="{{ product.get_absolute_url }}">+ <div class="text-center">+ <div><img itemprop="image" class="img-responsive" src="{% product_first_image product method="crop" size="400x400" %}" alt=""><span class="product-list-item-name" itemprop="name" title="{{ product }}">{{ product }}</span>- </a>- </div>+ </div>- <div class="panel-footer">- {% if availability.available %}- {% price_range availability.price_range %}- {% if availability.discount %}- {% if undiscounted.min_price != price_range.min_price %}- <div class="product-list__sale"><span>{% trans "Sale" %}</span></div>+ <div class="panel-footer">+ {% if availability.available %}+ {% price_range availability.price_range %}+ {% if availability.discount %}+ {% if undiscounted.min_price != price_range.min_price %}+ <div class="product-list__sale"><span>{% trans "Sale" %}</span></div>+ {% endif %}{% endif %}+ {% else %}+ {% endif %}- {% else %}- - {% endif %}+ </div></div>- </div>+ </a></div>{% endfor %}