42 lines
2.1 KiB
HTML
42 lines
2.1 KiB
HTML
[viewBag]
|
|
==
|
|
<!-- Single Popular Item -->
|
|
|
|
<div class="single_popular_item">
|
|
<a href="{{ 'product'|page({id: product.id}) }}">
|
|
<div class="product_image">
|
|
<!-- Product Image -->
|
|
<img class="first_img" src="{{ product.images[0].thumb(500,625,{'mode':'crop'}) }}" alt="Gurluşyk, Gurluşyk Platforma, Bezeg, Gipsler merkezi, {{ product.name }}">
|
|
{% if product.images_count > 1 %}
|
|
<img class="hover_img" src="{{ product.images[1].thumb(500,625,{'mode':'crop'}) }}" alt="Gurluşyk, Gurluşyk Platforma, Bezeg, Gipsler merkezi, {{ product.name }}">
|
|
{% endif %}
|
|
|
|
<!-- Wishlist -->
|
|
<div class="product_wishlist">
|
|
{% if user %}
|
|
<a href="{{ 'wishlist'|page }}"><i class="icofont-heart"></i></a>
|
|
{% else %}
|
|
<a href="{{ 'login'|page }}"><i class="icofont-heart"></i></a>
|
|
{% endif %}
|
|
</div>
|
|
<!-- Add to cart -->
|
|
{% if user %}
|
|
<div class="product_add_to_cart addToCard" data-id="{{ product.id }}" data-price="{{ product.price }}" data-image="{{ product.images[0].path }}" data-name="{{ product.name }}" data-vendor="{{ product.vendor.id }}">
|
|
<input type="hidden" min="1" id="quantity{{ product.id }}" value="1">
|
|
<a href="#"><i class="icofont-shopping-cart"></i> Sebede goş</a>
|
|
</div>
|
|
{% else %}
|
|
<div class="product_add_to_cart">
|
|
<a href="{{ 'login'|page }}"><i class="icofont-shopping-cart"></i> Sebede goş</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</a>
|
|
<!-- Product Description -->
|
|
<div class="product_description">
|
|
<a class="brand_name" href="{{ 'user-profile'|page({id: product.vendor.id}) }}" style="font-weight: normal;color: gray;">{{product.vendor.shop_title}}</a>
|
|
|
|
<h5 style="margin-top: 10px;"><a href="{{ 'product'|page({id: product.id}) }}">{{ product.name }}</a></h5>
|
|
<h6>{{ product.price }} TMT</h6>
|
|
</div>
|
|
</div> |