|
|
|
@ -42,7 +42,10 @@ |
|
|
|
<!-- </a> --> |
|
|
|
<!-- </a> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<br> |
|
|
|
<br> |
|
|
|
<p><small><em>Доставка по Казахстану: от 2 до 12 дней, в зависимости от выбранного способа доставки.</em></small></p> |
|
|
|
<p> |
|
|
|
|
|
|
|
<small><em>Доставка по Казахстану: от 2 до 12 дней, в зависимости от выбранного способа |
|
|
|
|
|
|
|
доставки.</em></small> |
|
|
|
|
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -94,10 +97,19 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="product-not-in-stock"> |
|
|
|
<div class="product-not-in-stock"> |
|
|
|
Товара нет в наличии <br/><br/><br/> |
|
|
|
{% if product.delivery_date() %} |
|
|
|
<a class=" btn btn-danger btn-block order-order-link" href="#order-form" data-itemid="{{ product.pk }}" |
|
|
|
<a class=" btn btn-danger btn-block order-order-link" href="#order-form" |
|
|
|
style="max-width: 200px"><span><span |
|
|
|
data-itemid="{{ product.pk }}"><span><span |
|
|
|
class="glyphicon glyphicon-import" aria-hidden="true"></span> Заказать</span></a> |
|
|
|
class="glyphicon glyphicon-import" |
|
|
|
|
|
|
|
aria-hidden="true"></span> Ожидается {{ product.delivery_date() }}</span></a> |
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Товара нет в наличии <br/><br/><br/> |
|
|
|
|
|
|
|
<a class=" btn btn-danger btn-block order-order-link" href="#order-form" |
|
|
|
|
|
|
|
data-itemid="{{ product.pk }}" |
|
|
|
|
|
|
|
style="max-width: 200px"><span><span |
|
|
|
|
|
|
|
class="glyphicon glyphicon-import" aria-hidden="true"></span> Заказать</span></a> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<br> |
|
|
|
<br> |
|
|
|
<div class="text-success" style="font-size: 13px"><em>Цены и наличие товара актуальны |
|
|
|
<div class="text-success" style="font-size: 13px"><em>Цены и наличие товара актуальны |
|
|
|
@ -117,67 +129,74 @@ |
|
|
|
{{ product.description|linebreaks|safe }} |
|
|
|
{{ product.description|linebreaks|safe }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% if product.video %} |
|
|
|
{% if product.video %} |
|
|
|
<br> |
|
|
|
<br> |
|
|
|
<h5 class="text-left">Видео обзор</h5> |
|
|
|
<h5 class="text-left">Видео обзор</h5> |
|
|
|
<div class="video-obzor"> |
|
|
|
<div class="video-obzor"> |
|
|
|
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{product.video}}" frameborder="0" allowfullscreen></iframe> |
|
|
|
<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ product.video }}" frameborder="0" |
|
|
|
</div><br> |
|
|
|
allowfullscreen></iframe> |
|
|
|
{%endif%} |
|
|
|
</div><br> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
{% if ranee %} |
|
|
|
{% if ranee %} |
|
|
|
<hr class="dashed"/> |
|
|
|
<hr class="dashed"/> |
|
|
|
<h4>Ранее просмотренные товары</h4> |
|
|
|
<h4>Ранее просмотренные товары</h4> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="index-goods"> |
|
|
|
<div class="index-goods"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
{% for product in ranee %} |
|
|
|
{% for product in ranee %} |
|
|
|
<div class="col-md-3 col-xs-3 col-sm-3 col-lg-3"> |
|
|
|
<div class="col-md-3 col-xs-3 col-sm-3 col-lg-3"> |
|
|
|
<div class="thumbnail"> |
|
|
|
<div class="thumbnail"> |
|
|
|
{% set im = product.main_image()|thumbnail("420x420") %} |
|
|
|
{% set im = product.main_image()|thumbnail("420x420") %} |
|
|
|
<a href="{{ product.get_absolute_url() }}"><img src="/static/{{ im.url }}" |
|
|
|
<a href="{{ product.get_absolute_url() }}"><img src="/static/{{ im.url }}" |
|
|
|
class="img-responsive" |
|
|
|
class="img-responsive" |
|
|
|
alt="Купить {{ product.title }}" |
|
|
|
alt="Купить {{ product.title }}" |
|
|
|
title="Купить {{ product.title }}"></a> |
|
|
|
title="Купить {{ product.title }}"></a> |
|
|
|
<div class="caption"> |
|
|
|
<div class="caption"> |
|
|
|
<div class="title"> |
|
|
|
<div class="title"> |
|
|
|
<a href="{{ product.get_absolute_url() }}"> |
|
|
|
<a href="{{ product.get_absolute_url() }}"> |
|
|
|
{{ product.title }} |
|
|
|
{{ product.title }} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="price"> |
|
|
|
|
|
|
|
{{ product.min_price(request.user) }} ₸ |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{% if product.in_stock() %} |
|
|
|
|
|
|
|
<div class="state-yes"> |
|
|
|
|
|
|
|
<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> Товар |
|
|
|
|
|
|
|
есть в наличии |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% else %} |
|
|
|
<div class="price"> |
|
|
|
<div class="state-no"> |
|
|
|
{{ product.min_price(request.user) }} ₸ |
|
|
|
<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> Товара |
|
|
|
|
|
|
|
нет в наличии |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<div class="in-cart"> |
|
|
|
|
|
|
|
{% if product.in_stock() %} |
|
|
|
{% if product.in_stock() %} |
|
|
|
<a class="btn btn-warning btn-block" |
|
|
|
<div class="state-yes"> |
|
|
|
href="/store/cart/add/?pk={{ product.variations.filter(in_stock__gt=0).order_by('price').first().pk }}&count=1&next={{ request.get_full_path()|urlencode }}"><span><span |
|
|
|
<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> Товар |
|
|
|
class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> Добавить в корзину</span></a> |
|
|
|
есть в наличии |
|
|
|
|
|
|
|
</div> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<a class=" btn btn-danger btn-block order-order-link" href="#order-form" |
|
|
|
<div class="state-no"> |
|
|
|
data-itemid="{{ product.pk }}"><span><span |
|
|
|
<span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> Товара |
|
|
|
class="glyphicon glyphicon-import" |
|
|
|
нет в наличии |
|
|
|
aria-hidden="true"></span> Заказать</span></a> |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<div class="in-cart"> |
|
|
|
|
|
|
|
{% if product.in_stock() %} |
|
|
|
|
|
|
|
<a class="btn btn-warning btn-block" |
|
|
|
|
|
|
|
href="/store/cart/add/?pk={{ product.variations.filter(in_stock__gt=0).order_by('price').first().pk }}&count=1&next={{ request.get_full_path()|urlencode }}"><span><span |
|
|
|
|
|
|
|
class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> Добавить в корзину</span></a> |
|
|
|
|
|
|
|
{% elif product.delivery_date() %} |
|
|
|
|
|
|
|
<a class=" btn btn-danger btn-block order-order-link" href="#order-form" |
|
|
|
|
|
|
|
data-itemid="{{ product.pk }}"><span><span |
|
|
|
|
|
|
|
class="glyphicon glyphicon-import" |
|
|
|
|
|
|
|
aria-hidden="true"></span> Ожидается {{ product.delivery_date() }}</span></a> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
<a class=" btn btn-danger btn-block order-order-link" href="#order-form" |
|
|
|
|
|
|
|
data-itemid="{{ product.pk }}"><span><span |
|
|
|
|
|
|
|
class="glyphicon glyphicon-import" |
|
|
|
|
|
|
|
aria-hidden="true"></span> Заказать</span></a> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|