Skip to content

Commit

Permalink
center aligned the product price from product template
Browse files Browse the repository at this point in the history
  • Loading branch information
Gautam Panday committed Jul 28, 2015
1 parent f104c64 commit 4adc4f4
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 4adc4f4

Please sign in to comment.