templates/front/include/products_category.html.twig line 1
<!-- product section start -->
<section class="ratio_asos section-b-space overflow-hidden d-print-none">
<div class="container-fluid p-0">
<div class="header-image-contain mb-0 section-b-space">
<div class="title title1 text-center">
<h2>Proizvodi iz iste kategorije</h2>
</div>
<div class="contain-image-box overflow-hidden">
<section class="ratio_asos pt-3">
<div class="container-fluid p-0">
<div class="row m-0">
<div class="col-sm-12 p-0">
<div class="product-wrapper slide-6">
{% if (randomProducts is defined) and (randomProducts | length > 0) %}
{% for product in randomProducts %}
<div>
<div class="product-box">
<div class="img-wrapper">
<a href="{{ path('app_shop_product_view', {id: product.id}) }}">
<img src="{{ asset(product.thumbnail500) }}"
class="bg-img blur-up lazyload" alt="">
</a>
<div class="label-block">
{% if product.new %}
<span class="label label-black">Novo</span>
{% endif %}
{% if product.discount %}
<span class="label label-theme">Popust</span>
{% endif %}
{% if product.superProduct %}
<span class="label label-theme">Super proizvod</span>
{% endif %}
{% if product.outOfStock %}
<span class="label label-theme">Nema na stanju</span>
{% endif %}
{% if product.isOutlet %}
<span class="label label-black">Outlet</span>
{% endif %}
</div>
<div class="cart-wrap">
<ul>
<li>
{% if not product.outOfStock %}
<form id="add-to-cart-form-{{ product.id }}" class="add-to-cart-form" method="POST" action="{{ path('app_cart_add') }}">
<input type="hidden" name="pid" value="{{ product.id }}">
<input type="hidden" name="quantity" value="1">
<a href="" class="addtoKorpa-btn"
data-product-id="{{ product.id }}">
<i data-feather="shopping-cart"></i>
</a>
</form>
{% endif %}
</li>
{# <li>#}
{# <a href="javascript:void(0)" data-bs-toggle="modal"#}
{# data-bs-target="#quick-view_{{ product.id }}">#}
{# <i data-feather="eye"></i>#}
{# </a>#}
{# </li>#}
{% if app.user %}
<li>
<a href="" class="zelja" id="zelja_{{ product.id }}" data-product-id="{{ product.id }}">
<i data-feather="heart"></i>
</a>
</li>
{% endif %}
</ul>
</div>
</div>
<div class="product-details text-center">
{% if product.discount %}
<h3 class="theme-color">
{{ ((product.pricePDV | number_format(2, '.', ','))) }} RSD
<span class="font-light ml-1">{{ ((product.price * ((product.vat/100) + 1)) | round) | number_format(2, '.', ',') }} RSD</span>
</h3>
{% else %}
<h3 class="theme-color">
{{ ((product.pricePDV | number_format(2, '.', ','))) }} RSD
</h3>
{% endif %}
<a href="{{ path('app_shop_product_view', {id: product.id}) }}" class="font-default">
<h6>{{ product.title }}</h6>
</a>
{{ getRating(product.id) | raw }}
</div>
</div>
</div>
{# <div class="modal fade quick-view-modal" id="quick-view_{{ product.id }}">#}
{# <div class="modal-dialog modal-lg modal-dialog-centered">#}
{# <div class="modal-content">#}
{# <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>#}
{# <div class="modal-body">#}
{# <div class="row gy-4">#}
{# <div class="col-lg-6">#}
{# <div class="quick-view-image">#}
{# <div class="quick-view-slider">#}
{# <div>#}
{# <img src="{{ asset(product.mainImage.thumbnail500) }}"#}
{# class="img-fluid blur-up lazyload" alt="">#}
{# </div>#}
{# {% if not product.image.empty %}#}
{# {% for img in product.image %}#}
{# <div>#}
{# <img src="{{ asset(img.thumbnail500) }}"#}
{# class="img-fluid blur-up lazyload" alt="">#}
{# </div>#}
{# {% endfor %}#}
{# {% endif %}#}
{# </div>#}
{# <div class="quick-nav">#}
{# <div>#}
{# <img src="{{ asset(product.mainImage.thumbnail100) }}"#}
{# class="img-fluid blur-up lazyload" alt="">#}
{# </div>#}
{# {% if not product.image.empty %}#}
{# {% for img in product.image %}#}
{# <div>#}
{# <img src="{{ asset(img.thumbnail100) }}"#}
{# class="img-fluid blur-up lazyload" alt="">#}
{# </div>#}
{# {% endfor %}#}
{# {% endif %}#}
{# </div>#}
{# </div>#}
{# </div>#}
{# <div class="col-lg-6">#}
{# <div class="product-right">#}
{# <h4 class="mb-2">{{ product.title }}</h4>#}
{# {{ getRating(product) | raw }}#}
{# {% if product.discount %}#}
{# <h4 class="price-detail">{{ ((product.pricePDV | number_format(2, '.', ','))) }} din#}
{# <del>{{ ((product.price * ((product.vat/100) + 1)) | round) | number_format(2, '.', ',') }} din</del>#}
{# </h4>#}
{# {% else %}#}
{# <h4 class="price-detail">{{ ((product.pricePDV | number_format(2, '.', ','))) }} din</h4>#}
{# {% endif %}#}
{# <div class="label-section">#}
{# {% if product.new %}#}
{# <span class="label label-black">Novo</span>#}
{# {% endif %}#}
{# {% if product.discount %}#}
{# <span class="label label-theme">Popust</span>#}
{# {% endif %}#}
{# {% if product.superProduct %}#}
{# <span class="label label-theme">Super proizvod</span>#}
{# {% endif %}#}
{# {% if product.outOfStock %}#}
{# <span class="label label-theme">Nema na stanju</span>#}
{# {% else %}#}
{# <span class="label label-theme">Dostupno</span>#}
{# {% endif %}#}
{# </div>#}
{# <div class="product-details">#}
{# <h4 class="product-title size-text">Šifra proizvoda</h4>#}
{# <div class="size-box">#}
{# <h6 class="product-title hurry-title d-block">#{{ product.sku }}</h6>#}
{# </div>#}
{# <h4 class="product-title size-text">Kategorija</h4>#}
{# <div class="size-box">#}
{# <h4 class="product-title hurry-title d-block">{{ product.category.title }}</h4>#}
{# </div>#}
{# </div>#}
{# <form id="add-to-cart-form-modal-{{ product.id }}" class="add-to-cart-form" method="POST" action="{{ path('app_cart_add') }}">#}
{# <div class="product-btns">#}
{# <input type="hidden" name="pid" value="{{ product.id }}">#}
{# <input type="hidden" name="quantity" value="1">#}
{# {% if product.outOfStock %}#}
{# <button type="submit" class="addtoKorpaModal-btn btn btn-solid-default btn-sm" disabled>Dodajte u korpu</button>#}
{# {% else %}#}
{# <button type="submit" class="addtoKorpaModal-btn btn btn-solid-default btn-sm">Dodajte u korpu</button>#}
{# {% endif %}#}
{# <a href="{{ path('app_shop_product_view', {id: product.id}) }}" class="btn btn-solid-default btn-sm">#}
{# Vidite detalje#}
{# </a>#}
{# </div>#}
{# </form>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{% endfor %}
{% endif %}
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</section>