Skip to content

Commit

Permalink
Merge pull request #391 from gautampanday/price-center
Browse files Browse the repository at this point in the history
center aligned the product price from product template
  • Loading branch information
tarunbhardwaj committed Jul 28, 2015
2 parents 9bbd4fb + 4adc4f4 commit 66a1b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/webshop/product.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@
<meta itemprop="priceCurrency" content="{{ request.nereid_currency.code }}" />
{% set sale_price = product.sale_price(1) %}
{% if sale_price < product.list_price %}
<h4 class="product-price heading-500">
<h4 class="product-price heading-500 text-center">
<span class="not">{{ product.list_price|currencyformat(request.nereid_currency.code) }}</span>
<span itemprop="price">{{ sale_price|currencyformat(request.nereid_currency.code) }}</span>
</h4>
{% else %}
<h4 class="product-price product-list-price" itemprop="price">{{ sale_price|currencyformat(request.nereid_currency.code) }}</h4>
<h4 class="product-price product-list-price text-center" itemprop="price">{{ sale_price|currencyformat(request.nereid_currency.code) }}</h4>
{% endif %}
{% if product.template.get_product_variation_data %}
<div class="row" id="product-varying-attrs"></div>
Expand Down

0 comments on commit 66a1b0a

Please sign in to comment.