templates/mens/category/category.twig line 1
{% extends 'mens/base/base_mens.twig' %}
{% block head %}
{# {{ encore_entry_link_tags('app_product') }} #}
{# {% include 'front_end/product/styles.html.twig' %} #}
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="multikart">
<meta name="keywords" content="multikart">
<meta name="author" content="multikart">
<link rel="icon" href="{{ asset('assets/images/favicon/1.png') }}" type="image/x-icon">
<link rel="shortcut icon" href="{{ asset('assets/images/favicon/1.png') }}" type="image/x-icon">
<title>SELECTWEARS</title>
<!--Google font-->
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Yellowtail&display=swap" rel="stylesheet">
<!--Slick slider css-->
<link rel="stylesheet" type="text/css" href="{{ asset('assets/css/vendors/slick.css') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('assets/css/vendors/slick-theme.css')}}">
<!-- Animate icon -->
<link rel="stylesheet" type="text/css" href="{{ asset('assets/css/vendors/animate.css') }}">
<!-- Themify icon -->
<link rel="stylesheet" type="text/css" href="{{ asset('assets/css/vendors/themify-icons.css') }}">
<!-- Bootstrap css -->
<link rel="stylesheet" type="text/css" href="{{ asset('assets/css/vendors/bootstrap.css') }}">
<!-- Theme css -->
<link rel="stylesheet" type="text/css" href="{{ asset('assets/css/style.css') }}">
<!-- Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
{# <link rel="stylesheet" type="text/css" href="{{ asset('assets/css/vendors/font-awesome.css') }}"> #}
<!-- Price range icon -->
<link rel="stylesheet" type="text/css" href="{{ asset('assets/css/vendors/price-range.css') }}">
<style>
.list-group-item a {
color: unset !important;
}
.variant-wrap{
text-align: left !important;
right: unset !important;
width: -webkit-fill-available;
float: right;
background: #e3dfdf;
bottom: 0 !important;
}
.image-swatch li img{
margin-right: unset !important;
}
.heart-wrap {
top: 0px !important;
bottom: unset !important;
}
.product-box .image-swatch li img {
width: 60px;
height: 60px;
}
.variant-wrap {
background: #e3dfdf6e;
}
{# .v-swatch:hover{
border: 1px solid black;
} #}
</style>
{% endblock %}
{% block main %}
<input id="category_id" name="category_id" type="text" value={{ categoryId }} class="d-none"/>
<!-- section start -->
<section class="section-b-space ratio_asos">
<div class="collection-wrapper">
<div class="container">
<div class="row">
<div class="collection-content col">
<div class="page-main-content d-flex">
<div class="col-sm-2 col-2 collection-filter">
<div class="">
<nav aria-label="breadcrumb" class="theme-breadcrumb">
<ol class="breadcrumb">
{% if category.parentCategory %}
{% if category.parentCategory.parentCategory %}
<li class="breadcrumb-item">
<a href="{{ path('app_category',{id: category.parentCategory.parentCategory.id}) }}">
{{category.parentCategory.parentCategory.name }}
</a>
</li>
{% endif %}
<li class="breadcrumb-item">
<a href="{{ path('app_category',{id:category.parentCategory.id }) }}">
{{category.parentCategory.name }}
</a>
</li>
{% endif %}
<li class="breadcrumb-item active" aria-current="page">{{category.name}}</li>
</ol>
</nav>
</div>
{# <h3>{{category.name}}</h3> #}
{% if category.childCategory %}
<ul class="list-group text-uppercase">
{% for category in category.childCategory %}
<li class="list-group-item border-0">
<a href="{{ path('app_category',{id:category.id}) }}">{{category.name}}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
<div id="category_content" class="collection-product-wrapper col-10 col-small-12">
<div class="product-top-filter">
<div class="row">
<div class="col-12">
<div class="product-filter-content">
<div class="search-count">
<h5><span id="totalFound">{{ totalOfProducts }} </span>{{ 'Products found' | trans({},'templates') }}</h5>
</div>
<div class="product-page-per-view">
<select id="color-filter-category">
<option value="">{{ 'Color' | trans({},'templates') }}</option>
{% for color in colors %}
<option value="{{ color.value }}">{{ color.value}}</option>
{% endfor %}
</select>
</div>
<div class="product-page-filter">
<select id="size-filter-category">
<option value="">{{ 'Size' | trans({},'templates') }}</option>
{% for size in sizes %}
<option value="{{ size.value }}">{{ size.value }}</option>
{% endfor %}
</select>
</div>
<div class="product-page-filter">
<div class="collection-collapse-block-content">
<div class="wrapper mt-3">
<div class="range-slider">
<input id="price-filter-category" type="text" class="js-range-slider" value=""
data-type="double"
data-min="{{ priceRange.min_price }}"
data-max="{{ priceRange.max_price }}"
data-step="0.5"
{# data-from="{{ priceRange.min_price }}"
data-to="{{ priceRange.max_price }}" #}
/>
</div>
</div>
</div>
{# <select>
<option value="">Price</option>
<option value="Low to High">Low</option>
<option value="Low to High">High</option>
</select> #}
</div>
</div>
</div>
</div>
</div>
<div id="category_main" >
{% if products %}
<div class="product-wrapper-grid">
<div class="row margin-res">
<div class="row">
{% for product in products %}
{# {{ product.firstVariantId() }} #}
<div class="col-xl-4 col-6 col-grid-box">
<div class="product-box">
<div class="img-wrapper">
<div class="front">
<a id="front-{{product.id}}" href="{{ path('app_product_page',{'pid': product.id, 'vid': product.firstVariantId(),'gender': "mens" }) }}">
<img src="{{ product.mainImage }}"
class="img-fluid blur-up lazyload bg-img" alt=""></a>
</div>
<div class="back">
<a id="back-{{product.id}}" href="{{ path('app_product_page',{'pid': product.id ,'vid': product.firstVariantId(),'gender': "mens" }) }}">
<img src="{{ product.mainImage }}" class="img-fluid blur-up lazyload bg-img" alt="">
</a>
</div>
{% if product.variants|length > 1 %}
<div class="cart-info cart-wrap variant-wrap">
<ul class="image-swatch">
{% for variant in product.variants|slice(0,4) %}
<li class="v-swatch">
<a href="{{path('app_product_page',{'pid': product.id,'vid': variant.id,gender: "mens"})}}">
<img
onmouseleave="category.oldImg('{{variant.product.id}}',this)"
onmouseenter="category.swatchImg('{{variant.product.id}}',this)"
src="{{ variant.mainImage }}"
alt=""
class="img-fluid blur-up lazyload">
</a>
</li>
{% endfor %}
{% if product.variants|length > 4 %}
{% set more = product.variants|length - 4 %}
<li class="v-swatch v-swatch-more">
<a class="text-dark" href="{{ path('app_product_page',{'pid': product.id,'vid': product.firstVariantId(),'gender': "mens" }) }}">
+ {{ more }}
</a>
</li>
{% endif %}
{# <li><a href="#"><img src="../assets/images/fashion/pro/m-002.jpg" alt=""
class="img-fluid blur-up lazyload"></a></li>
<li><a href="#"><img src="../assets/images/fashion/pro/m-003.jpg" alt=""
class="img-fluid blur-up lazyload"></a></li> #}
</ul>
</div>
{% endif %}
<div class="cart-info cart-wrap heart-wrap">
<a href="javascript:void(0)"
title="{{ 'Add to Wishlist' | trans({},'templates') }}"
data-p-id={{ product.id }}
data-p-name={{ product.name }}
data-p-price={{ product.firstVariantPrice() }}
data-p-image={{ product.mainImage }}
data-p-api={{ product.apiId }}
onclick="addToFavoris(this)"
>
{% if product.id in app.session.get('wishlist') %}
<i class='fa-solid fa-heart' style='color: #ff0000;'></i>
{% else %}
<i class="ti-heart" aria-hidden="true"></i>
{% endif %}
</a>
</div>
</div>
<div class="product-detail">
<div>
<a href="product-page(no-sidebar).html">
<h6>{{product.name}}</h6>
</a>
<p>{{product.description}}</p>
<h4>{{product.firstVariantPrice()}} EUR</h4>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% else %}
<!-- section start -->
<section class="p-0">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="error-section">
{# <h1>404</h1> #}
<h2>{{ 'NO PRODUCTS FOUND IN THIS CATEGORY' | trans({},'templates') }}</h2>
<a href="/mens" class="btn btn-solid">{{ 'back to home' | trans({},'templates') }}</a>
</div>
</div>
</div>
</div>
</section>
<!-- Section ends -->
{% endif %}
<div class="knp-pagination">
{{ knp_pagination_render(products,'pagination.twig') }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- section End -->
<!-- tap to top start -->
<div class="tap-top">
<div><i class="fa fa-angle-double-up"></i></div>
</div>
<!-- tap to top end -->
{% endblock %}
{% block js %}
<!-- latest jquery-->
<script src="{{ asset('assets/js/jquery-3.3.1.min.js') }}"></script>
<!-- menu js-->
<script src="{{ asset('assets/js/menu.js') }}"></script>
<!-- lazyload js-->
<script src="{{ asset('assets/js/lazysizes.min.js') }}"></script>
<!-- slick js-->
<script src="{{ asset('assets/js/slick.js') }}"></script>
<!-- Bootstrap js-->
<script src="{{ asset('assets/js/bootstrap.bundle.min.js') }}"></script>
<!-- Bootstrap Notification js-->
<script src="{{ asset('assets/js/bootstrap-notify.min.js') }}"></script>
<!-- price range js -->
<script src="{{ asset('assets/js/price-range.js') }}"></script>
<!-- Theme js-->
<script src="{{ asset('assets/js/theme-setting.js') }}"></script>
<script src="{{ asset('assets/js/script.js') }}"></script>
<script>
function openSearch() {
document.getElementById("search-overlay").style.display = "block";
}
function closeSearch() {
document.getElementById("search-overlay").style.display = "none";
}
</script>
{# <script src="{{ asset('assets/js/collection.js') }}"></script> #}
<script src="{{ asset('assets/js/modules.js') }}"></script>
{% endblock %}