Skip to content

Commit

Permalink
SW-9574 Refactored pseudo price conditions in Bare theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil23 committed May 28, 2015
1 parent daa6163 commit 5517a48
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions themes/Frontend/Bare/frontend/compare/col.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<li class="list--entry entry--price">
{* Article pseudoprice *}
{block name='frontend_compare_price_pseudoprice'}
{if $sArticle.pseudoprice}
{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price}
<span class="price--pseudoprice">
{s name="reducedPrice" namespace="frontend/listing/box_article"}{/s} {$sArticle.pseudoprice|currency}
{s name="Star" namespace="frontend/listing/box_article"}{/s}<br />
Expand All @@ -63,7 +63,7 @@

{* Article normal or discount price *}
{block name='frontend_compare_price_normal'}
<span class="price--normal{if $sArticle.pseudoprice} price--reduced{/if}">
<span class="price--normal{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price} price--reduced{/if}">
{if $sArticle.priceStartingFrom}
{s name="ComparePriceFrom"}{/s}
{/if}
Expand Down
4 changes: 2 additions & 2 deletions themes/Frontend/Bare/frontend/detail/data.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{/if}
{else}

<div class="product--price price--default{if $sArticle.pseudoprice} price--discount{/if}">
<div class="product--price price--default{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price} price--discount{/if}">

{* Default price *}
{block name='frontend_detail_data_price_configurator'}
Expand All @@ -59,7 +59,7 @@

{* Discount price *}
{block name='frontend_detail_data_pseudo_price'}
{if $sArticle.pseudoprice}
{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price}

{block name='frontend_detail_data_pseudo_price_discount_icon'}
<span class="price--discount-icon">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

{* Discount price *}
{block name='frontend_listing_box_article_price_discount'}
{if $sArticle.pseudoprice}
{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price}
<span class="price--discount is--nowrap">
{$sArticle.pseudoprice|currency}
{s name="Star"}{/s}
Expand All @@ -22,7 +22,7 @@

{* Default price *}
{block name='frontend_listing_box_article_price_default'}
<span class="price--default is--nowrap{if $sArticle.pseudoprice} is--discount{/if}">
<span class="price--default is--nowrap{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price} is--discount{/if}">
{if $sArticle.priceStartingFrom && !$sArticle.liveshoppingData}{s name='ListingBoxArticleStartsAt'}{/s} {/if}
{$sArticle.price|currency}
{s name="Star"}{/s}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{* Discount badge *}
{block name='frontend_listing_box_article_discount'}
{if $sArticle.pseudoprice}
{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price}
<div class="product--badge badge--discount">
<i class="icon--percent2"></i>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{* Default price *}
{block name='frontend_listing_box_article_price_default'}
<span class="price--default is--nowrap{if $sArticle.pseudoprice} is--discount{/if}">
<span class="price--default is--nowrap{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price} is--discount{/if}">
{if $sArticle.priceStartingFrom && !$sArticle.liveshoppingData}{s name='ListingBoxArticleStartsAt'}{/s} {/if}
{$sArticle.price|currency}
{s name="Star"}{/s}
Expand All @@ -13,7 +13,7 @@

{* Discount price *}
{block name='frontend_listing_box_article_price_discount'}
{if $sArticle.pseudoprice}
{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price}
<span class="price--discount is--nowrap">
{$sArticle.pseudoprice|currency}
{s name="Star"}{/s}
Expand Down
4 changes: 2 additions & 2 deletions themes/Frontend/Bare/newsletter/alt/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

{$sArticle.description_long|truncate:50:"..."|strip_tags|trim}

{if $sArticle.pseudoprice}
{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price}

{s name="NewsletterIndexPseudoInsteadOf"}{/s}{$sArticle.pseudoprice|currency:use_shortname}
{/if}
Expand All @@ -42,7 +42,7 @@

{$sArticle.description_long|truncate:50:"..."|strip_tags|trim}

{if $sArticle.pseudoprice}
{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price}

{s name="NewsletterIndexPseudoInsteadOf"}{/s}{$sArticle.pseudoprice|currency:use_shortname}
{/if}
Expand Down
2 changes: 1 addition & 1 deletion themes/Frontend/Bare/newsletter/container/article.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
{/if}
</div>
{/if}
{if $sArticle.pseudoprice}
{if $sArticle.pseudoprice|isHigherPrice:$sArticle.price}
<span style="color:#999; font-size:13px; line-height:13px;"><s>{$sArticle.pseudoprice|currency} {s name="Star" namespace="frontend/listing/box_article"}{/s}</s></span>
<br/>
<strong style="color:#990000;font-size:14px;">
Expand Down

0 comments on commit 5517a48

Please sign in to comment.