|
|
|
@ -53,7 +53,7 @@ |
|
|
|
<h1 style="font-size:19px; margin-top:0;" class="text-left">{{ product.title }}</h1> |
|
|
|
<h1 style="font-size:19px; margin-top:0;" class="text-left">{{ product.title }}</h1> |
|
|
|
|
|
|
|
|
|
|
|
<div class="product-detail-price"> |
|
|
|
<div class="product-detail-price"> |
|
|
|
<span class="product-detail-price-span">{{ product.min_price(request.user) }}</span> ₸ |
|
|
|
<span class="product-detail-price-span">{{ (request|currency).get_price(product.min_price(request.user)) }}</span> {{ (request|currency).get_symbol() }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<br/> |
|
|
|
<br/> |
|
|
|
{% set variant = product.variations.filter(in_stock__gt=0).order_by('price').first() %} |
|
|
|
{% set variant = product.variations.filter(in_stock__gt=0).order_by('price').first() %} |
|
|
|
@ -65,10 +65,10 @@ |
|
|
|
<select name="product-variations-selecter" class="product-variations-selecter"> |
|
|
|
<select name="product-variations-selecter" class="product-variations-selecter"> |
|
|
|
{% for variation in product.variations.order_by('price') %} |
|
|
|
{% for variation in product.variations.order_by('price') %} |
|
|
|
<option {% if variation.pk == variant.pk %}selected='selected'{% endif %} |
|
|
|
<option {% if variation.pk == variant.pk %}selected='selected'{% endif %} |
|
|
|
value="{{ variation.pk }}" data-price="{{ variation.get_price(request.user) }}" |
|
|
|
value="{{ variation.pk }}" data-price="{{ (request|currency).get_price(variation.get_price(request.user)) }}" |
|
|
|
data-count="{{ variation.in_stock }}">{{ variation.variation }} |
|
|
|
data-count="{{ variation.in_stock }}">{{ variation.variation }} |
|
|
|
- {{ variation.get_price(request.user) }} |
|
|
|
- {{ (request|currency).get_price(variation.get_price(request.user)) }} |
|
|
|
₸ |
|
|
|
{{ (request|currency).get_symbol() }} |
|
|
|
</option> |
|
|
|
</option> |
|
|
|
{% endfor %} |
|
|
|
{% endfor %} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
@ -87,7 +87,7 @@ |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="itogo col-xs-6"> |
|
|
|
<div class="itogo col-xs-6"> |
|
|
|
Итого: <span class="itogo-span">{{ product.min_price(request.user) }}</span> ₸ |
|
|
|
Итого: <span class="itogo-span">{{ (request|currency).get_price(product.min_price(request.user)) }}</span> {{ (request|currency).get_symbol() }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-xs-6 text-right"> |
|
|
|
<div class="col-xs-6 text-right"> |
|
|
|
<a href="/store/cart/add/?pk={{ variant.pk }}&count=1&next={{ product.get_absolute_url() }}" |
|
|
|
<a href="/store/cart/add/?pk={{ variant.pk }}&count=1&next={{ product.get_absolute_url() }}" |
|
|
|
@ -160,7 +160,7 @@ |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="price"> |
|
|
|
<div class="price"> |
|
|
|
{{ product.min_price(request.user) }} ₸ |
|
|
|
{{ (request|currency).get_string_price(product.min_price(request.user)) }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% if product.in_stock() %} |
|
|
|
{% if product.in_stock() %} |
|
|
|
<div class="state-yes"> |
|
|
|
<div class="state-yes"> |
|
|
|
|