Add those files
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
||||
<div class="card product-card h-100">
|
||||
{% if product.primary_image %}
|
||||
<img src="{{ product.primary_image.image.url }}" class="card-img-top" alt="{{ product.name }}" style="height: 250px; object-fit: cover;">
|
||||
<img src="{{ product.primary_image.image.url }}" class="card-img-top" alt="{{ product.primary_image.alt|default:product.name }}" style="height: 250px; object-fit: cover;">
|
||||
{% else %}
|
||||
<div class="card-img-top bg-light d-flex align-items-center justify-content-center" style="height: 250px;">
|
||||
<span class="text-muted">Sin imagen</span>
|
||||
|
||||
Reference in New Issue
Block a user