templates/women/product/product_page.twig line 1
{% extends 'women/base/base_women.twig' %}
{% block head %}
{# {{ encore_entry_link_tags('app_product') }} #}
{% include 'women/product/styles.html.twig' %}
<style>
.image-swatch li img {
width: 60px;
height: 60px;
cursor: pointer;
}
.breadcrumb-item+.breadcrumb-item::before {
float: left;
padding-right: .5rem;
color: #6c757d;
content: "›";
}
.product-right .price-detail span {
font-size: 22px;
padding-left: 0px;
}
.product-shipping-info{
display: grid;
grid-gap: 30px;
}
.product-right .product-count {
padding: 15px 15px;
border: 1px solid #eee;
background-color: #ffff;
}
.p-btn-circle {
border-radius: 100px;
}
.product-page-details .dashed-border-box {
padding: 22px 28px;
border: 1px dashed #ddd;
margin-bottom: 25px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
margin-top: 34px;
}
</style>
<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/slick/slick.css') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('assets/slick/slick-theme.css') }}">
{% endblock %}
{% block breadcrumb %}
<div class="breadcrumb-section">
<div class="container">
<div class="row">
<div class="col-sm-12">
<nav aria-label="breadcrumb" class="theme-breadcrumb">
<ol class="breadcrumb justify-content-lg-start">
<li class="breadcrumb-item d-mobile-none"><a href="/">{{ 'Home' | trans({},'templates') }}</a></li>
<li class="breadcrumb-item d-mobile-none"><a href="/">{{ product.name }}</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ variant.name }}</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
{% endblock %}
{% block main %}
{# ****************** List Variables ****************** #}
<script>
let maxProductInStock //Add maximum product in stock
</script>
{# ****************** List Variables ****************** #}
<!-- section start -->
<section>
<div class="collection-wrapper">
<div class="container">
<div class="row">
<div class="col-lg-1 col-sm-2 col-xs-12">
<div class="row">
<div class="col-12 p-0">
<div class="slider-right-nav">
{% if variant.images is defined %}
{% for image in variant.images %}
<div>
<img src="{{image}}" alt="{{ variant.name }}"
class="img-fluid blur-up lazyload">
</div>
{% endfor %}
{% endif %}
</div>
</div>
</div>
</div>
<div class="col-lg-5 col-sm-10 col-xs-12 order-up">
<div class="product-right-slick">
{% if variant.images is defined %}
{% for image in variant.images %}
<div>
<img src="{{image}}" alt="{{ variant.name }}"
class="img-fluid blur-up lazyload image_zoom_cls-{{ loop.index }}">
</div>
{% endfor %}
{% endif %}
</div>
</div>
<div class="col-lg-6 rtl-text">
<div class="product-right">
{# Product title #}
<h2 class="product-name">{{ variant.name }}</h2>
{# <div class="rating-section"> #}
{# <div class="rating"><i class="fa fa-star"></i> <i class="fa fa-star"></i> <i
class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i>
</div> #}
{# <h6>120 ratings</h6> #}
{# </div> #}
{# <div class="label-section">
<span class="badge badge-grey-color">#1 Best seller</span>
<span class="label-text"></span>
</div> #}
{# product price #}
<h3 class="price-detail text-stroke"><span class="product-price">{{ variant.getRetailPrice()}} EUR</span></h3>
<span class="text-uppercase">{{ 'Color' | trans({},'templates') }} : <strong id="colorSwatch">Red</strong></span>
<ul class="image-swatch mt-2">
{% for option in options %}
{% set foo = 'bar' %}
{# {% if option.productVariant.id == variant.id %} #}
<li
data-color="{{option.value}}"
onmouseover="product.swatchColor('{{option.value}}')"
{# onmouseenter="product.swatchImage('/uploads/tbint/{{ option.productVariant.apiId}}/{{ option.productVariant.mainImage}}')" #}
{% if option.productVariant.id == variant.id %}class="active"{%endif%}
>
<a href="{{ path('app_product_page',{'pid': product.id,'vid': option.productVariant.id,'gender': "women"}) }}"><img src="{{ option.productVariant.mainImage}}" alt="" class="img-fluid blur-up lazyload"></a>
</li>
{# {% endif %} #}
{% endfor %}
</ul>
<div id="selectSize" class="addeffect-section product-description border-product">
<h6 class="product-title size-text">{{ 'select size' | trans({},'templates') }} </h6>
<div class="modal fade" id="sizemodal" tabindex="-1" role="dialog"
aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Sheer
Straight Kurta</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body"><img src="../assets/images/size-chart.jpg" alt=""
class="img-fluid blur-up lazyload"></div>
</div>
</div>
</div>
<h6 class="size-select error-message">{{ 'please select size' | trans({},'templates') }}</h6>
<div class="size-box">
<ul>
{% for size in sizeOptions %}
<li onclick="product.selectCurrent('{{size.productVariant.id}}',this)">
<div id="v-info" data-id="{{size.productVariant.id}}" data-name="{{size.productVariant.name}}" data-price="{{size.productVariant.price}}" data-image="{{size.productVariant.mainImage}}">
</div>
<a href="javascript:void(0)">{{ size.value }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="product-buttons">
{% if variant.quantity == 0 %}
<div id="cartEffect" class="btn p-btn-circle hover-solid btn-animation product">
<h6 class="product-title text-danger">{{ 'SOLD OUT' | trans({},'templates') }}</h6>
</div>
{% else %}
<div onclick="product.addToCart()" id="cartEffect" class="btn p-btn-circle btn-solid hover-solid btn-animation product">
<i class="fa fa-shopping-cart me-1" aria-hidden="true"></i> {{ 'add to cart' | trans({},'templates') }}
</div>
{% endif %}
<a href="#" data-p-id="{{ variant.product.id }}" onclick="addToFavoris(this,'fa-2xl')" class="btn btn-solid p-btn-circle">
{% if variant.product.id in app.session.get('wishlist') %}
<i class='fa-solid fa-heart fa-2xl' style='color: #ff0000;'></i>
{% else %}
<i class='fa-regular fa-heart fa-2xl'></i>
{% endif %}
</a>
</div>
<div class="product-count">
<ul class="product-shipping-info">
<li>
<i class="fa-solid fa-truck fa-2xl me-1"></i>
<span class="lang">{{ 'Free shipping on qualifying orders' | trans({},'templates') }}</span>
</li>
<li>
{# <img src="/assets/images/icon/truck.png" class="img-fluid" alt="image"> #}
<i class="fa-solid fa-box fa-2xl me-1"></i>
<span class="lang">{{ 'Free Returns' | trans({},'templates') }} </span>
</li>
</ul>
</div>
{# <div class="border-product">
<h6 class="product-title">Sales Ends In</h6>
<div class="timer">
<p id="demo"></p>
</div>
</div> #}
<div class="border-product">
<div class="row product-accordion">
<div class="col-sm-12">
<div class="accordion theme-accordion" id="accordionExample">
{% if variant.description %}
<div class="card">
<div class="card-header" id="headingOne">
<h5 class="mb-0"><button class="btn btn-link" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">{{ 'product description' | trans({},'templates') }}</button></h5>
</div>
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-bs-parent="#accordionExample" style="">
<div class="card-body">
<p><p>{{ variant.description|raw }}</p></p>
</div>
</div>
</div>
{% endif %}
{% if variant.composition %}
<div class="card">
<div class="card-header" id="headingThree">
<h5 class="mb-0"><button class="btn btn-link collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">{{ 'Material' | trans({},'templates')}}</button></h5>
</div>
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-bs-parent="#accordionExample" style="">
<div class="card-body">
<p>{{ variant.composition | raw }}</p>
</div>
</div>
</div>
{% endif %}
<div class="card">
<div class="card-header" id="headingThree">
<h5 class="mb-0"><button class="btn btn-link collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">{{ 'Size & Fit' | trans({},'templates') }}</button></h5>
</div>
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-bs-parent="#accordionExample" style="">
<div class="card-body">
<h6 class="product-title size-text"><span><a href="" data-bs-toggle="modal"
data-bs-target="#sizemodal">{{ 'sizechart' | trans({},'templates') }}</a></span></h6>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingThree">
<h5 class="mb-0"><button class="btn btn-link collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">{{ 'Care Guide' | trans({},'templates') }}</button></h5>
</div>
<div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-bs-parent="#accordionExample" style="">
<div class="card-body">
<p>{{ 'Material' | trans({},'templates')}}</p>
</div>
</div>
</div>
</div>
</div>
{# <div class="dashed-border-box mb-0">
<h4 class="sub-title">Guaranteed Safe Checkout</h4>
<img class="img-fluid payment-img" alt="" src="{{ asset("assets/images/payments.png") }}">
</div> #}
</div>
</div>
<div class="border-product">
<h6 class="product-title">{{ 'share it' | trans({},'templates') }}</h6>
<div class="product-icon">
<ul class="product-social">
<li><a href="#"><i class="fab fa-facebook-f"></i></a></li>
<li><a href="#"><i class="fab fa-google-plus-g"></i></a></li>
<li><a href="#"><i class="fab fa-twitter"></i></a></li>
<li><a href="#"><i class="fab fa-instagram"></i></a></li>
<li><a href="#"><i class="fa fa-rss"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Section ends -->
<div id="info" data-apiId={{ variant.apiId }} data-id="{{variant.id}}" data-name="{{variant.name}}" data-price="{{variant.price}}" data-image="{{variant.mainImage}}">
</div>
<!-- product section start -->
{% if relatedProducts %}
<section class="section-b-space ratio_asos">
<div class="container">
<div class="row">
<div class="col-12 product-related">
<h2>{{ 'You might also like' | trans({},'templates') }}</h2>
</div>
</div>
<div class="row autoplay search-product">
{% for relatedProduct in relatedProducts %}
<div class="col-xl-3 col-md-4 col-6">
<div class="product-box p-1">
<div class="img-wrapper">
<div class="front">
<a href="{{ path("app_product_page",{pid: relatedProduct.id, vid:relatedProduct.firstVariantId(),gender: "women"}) }}"><img src="{{ relatedProduct.mainImage }}"
class="img-fluid blur-up lazyload bg-img" alt=""></a>
</div>
<div class="back">
<a href="{{ path("app_product_page",{pid: relatedProduct.id, vid:relatedProduct.firstVariantId,'gender': "women"}) }}"><img src="{{ relatedProduct.getSecondImage()}}"
class="img-fluid blur-up lazyload bg-img" alt=""></a>
</div>
<div class="cart-info cart-wrap">
<button onclick="product.addRelatedToCart(this)"
data-id="{{relatedProduct.firstVariantId()}}"
data-price="{{relatedProduct.firstVariantPrice()}}"
data-name="{{relatedProduct.name}}"
data-image="{{relatedProduct.mainImage}}"
data-bs-toggle="modal" data-bs-target="#addtocart"
title="Add to cart"
>
</button>
<a href="javascript:void(0)" data-p-id="{{ relatedProduct.id }}" onclick="addToFavoris(this)" title="{{ 'Add to Wishlist' | trans({},'templates') }}"><i class="ti-heart" aria-hidden="true"></i></a>
</div>
</div>
<div class="product-detail">
{# <div class="rating"><i class="fa fa-star"></i> <i class="fa fa-star"></i> <i
class="fa fa-star"></i> <i class="fa fa-star"></i> <i class="fa fa-star"></i>
</div> #}
<a href="{{ path("app_product_page",{pid: relatedProduct.id, vid:relatedProduct.firstVariantId(),'gender': "women"}) }}">
<h6>{{ relatedProduct.name }}</h6>
</a>
<h4>{{ relatedProduct.firstVariantPrice() }} EUR</h4>
{# <ul class="color-variant">
<li class="bg-light0"></li>
<li class="bg-light1"></li>
<li class="bg-light2"></li>
</ul> #}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</section>
{% endif %}
<!-- product section end -->
<!-- Add to cart modal popup start-->
<div class="modal fade bd-example-modal-lg theme-modal cart-modal" id="addtocart" tabindex="-1" role="dialog"
aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body modal1">
<div class="container-fluid p-0">
<div class="row">
<div class="col-12">
<div class="modal-bg addtocart">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<div class="media">
<a href="#">
<img class="img-fluid blur-up lazyload pro-img"
src="../assets/images/fashion/product/43.jpg" alt="">
</a>
<div class="media-body align-self-center text-center">
<a href="#">
<h6>
<i class="fa fa-check"></i>Item
<span>men full sleeves</span>
<span> successfully added to your Cart</span>
</h6>
</a>
<div class="buttons">
<a href="#" class="view-cart btn btn-solid">Your cart</a>
<a href="#" class="checkout btn btn-solid">Check out</a>
<a href="#" class="continue btn btn-solid">Continue shopping</a>
</div>
<div class="upsell_payment">
<img src="../assets/images/payment_cart.png"
class="img-fluid blur-up lazyload" alt="">
</div>
</div>
</div>
<div class="product-section">
<div class="col-12 product-upsell text-center">
<h4>Customers who bought this item also.</h4>
</div>
<div class="row" id="upsell_product">
<div class="product-box col-sm-3 col-6">
<div class="img-wrapper">
<div class="front">
<a href="#">
<img src="../assets/images/fashion/product/1.jpg"
class="img-fluid blur-up lazyload mb-1"
alt="cotton top">
</a>
</div>
<div class="product-detail">
<h6><a href="#"><span>cotton top</span></a></h6>
<h4><span>$25</span></h4>
</div>
</div>
</div>
<div class="product-box col-sm-3 col-6">
<div class="img-wrapper">
<div class="front">
<a href="#">
<img src="../assets/images/fashion/product/34.jpg"
class="img-fluid blur-up lazyload mb-1"
alt="cotton top">
</a>
</div>
<div class="product-detail">
<h6><a href="#"><span>cotton top</span></a></h6>
<h4><span>$25</span></h4>
</div>
</div>
</div>
<div class="product-box col-sm-3 col-6">
<div class="img-wrapper">
<div class="front">
<a href="#">
<img src="../assets/images/fashion/product/13.jpg"
class="img-fluid blur-up lazyload mb-1"
alt="cotton top">
</a>
</div>
<div class="product-detail">
<h6><a href="#"><span>cotton top</span></a></h6>
<h4><span>$25</span></h4>
</div>
</div>
</div>
<div class="product-box col-sm-3 col-6">
<div class="img-wrapper">
<div class="front">
<a href="#">
<img src="../assets/images/fashion/product/19.jpg"
class="img-fluid blur-up lazyload mb-1"
alt="cotton top">
</a>
</div>
<div class="product-detail">
<h6><a href="#"><span>cotton top</span></a></h6>
<h4><span>$25</span></h4>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Add to cart modal popup end-->
{# <!-- added to cart notification -->
<div class="added-notification">
<img src="{{ variant.mainImage }}" class="img-fluid main-image" alt="{{ variant.name }}">
<h3>added to cart</h3>
</div>
<!-- added to cart notification --> #}
<!-- 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 newsletter %}
{% include 'front_end/base/newsletter.twig' %}
{% endblock %}
{% block js %}
<script src="{{ asset('assets/js/product.js') }}"></script>
{% include 'mens/product/scripts.html.twig' %}
<script type="text/javascript" src="{{ asset('slick/slick.min.js') }}"></script>
<script type="text/javascript">
$('.autoplay').slick({
slidesToShow: 4,
slidesToScroll: 1,
autoplay: true,
autoplaySpeed: 2000,
});
</script>
<script src="{{ asset('assets/js/modules.js') }}"></script>
{% endblock %}