Commit 6120369ed05429adbe66fc56879c64300cbc4996
Committed by
Joenio Costa
1 parent
0a61f94e
Exists in
master
and in
29 other branches
Adding different class when product has discount
(ActionItem1412)
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/helpers/manage_products_helper.rb
... | ... | @@ -195,9 +195,9 @@ module ManageProductsHelper |
195 | 195 | end |
196 | 196 | |
197 | 197 | def display_price_with_discount(price, price_with_discount) |
198 | - original_value = content_tag('span', float_to_currency(price), :class => 'field-value') | |
199 | - discount_value = display_price(_('On sale: '), price_with_discount) | |
200 | - content_tag('span', _('List price: '), :class => 'field-name') + original_value + tag('br') + discount_value | |
198 | + original_value = content_tag('span', display_price(_('List price: '), price), :class => 'list-price') | |
199 | + discount_value = content_tag('span', display_price(_('On sale: '), price_with_discount), :class => 'on-sale-price') | |
200 | + original_value + tag('br') + discount_value | |
201 | 201 | end |
202 | 202 | |
203 | 203 | def display_qualifiers(product) | ... | ... |