suite
This commit is contained in:
parent
e5d25ef2e9
commit
aeb445e4f2
@ -10,13 +10,14 @@
|
||||
|
||||
.img.with_ratio{:style => ("background: grey url('"+(p_product.image_file.file.large.medium.small.thumb.url if p_product.image_file).to_s+"?u="+(p_product.image_file.updated_at if p_product.image_file).to_s+"') no-repeat center center;background-size:contain;" ), :data => {:ratio => "1.10"}}
|
||||
|
||||
-if p_product.get_prices(current_p_customer).first
|
||||
%p.price
|
||||
-if p_product.get_prices(current_p_customer).count > 1
|
||||
Prix de
|
||||
=number_to_currency p_product.get_prices(current_p_customer).last.price
|
||||
à
|
||||
= number_to_currency p_product.get_prices(current_p_customer).first.price
|
||||
-if current_p_customer.account_validated
|
||||
-if p_product.get_prices(current_p_customer).first
|
||||
%p.price
|
||||
-if p_product.get_prices(current_p_customer).count > 1
|
||||
Prix de
|
||||
=number_to_currency p_product.get_prices(current_p_customer).last.price
|
||||
à
|
||||
= number_to_currency p_product.get_prices(current_p_customer).first.price
|
||||
|
||||
-elsif p_product.get_prices(current_p_customer).count == 1
|
||||
=number_to_currency p_product.get_prices(current_p_customer).last.price
|
||||
-elsif p_product.get_prices(current_p_customer).count == 1
|
||||
=number_to_currency p_product.get_prices(current_p_customer).last.price
|
@ -26,34 +26,35 @@
|
||||
|
||||
-if @p_product.get_prices(current_p_customer).count > 0 and @p_product.get_prices(current_p_customer).first.price > 0.0
|
||||
.sub_header
|
||||
.right
|
||||
-if current_p_customer.account_validated
|
||||
.right
|
||||
|
||||
-if @p_product.get_prices(current_p_customer).count > 1
|
||||
%p
|
||||
Prix de
|
||||
=number_to_currency @p_product.get_prices(current_p_customer).last.price
|
||||
à
|
||||
= number_to_currency @p_product.get_prices(current_p_customer).first.price
|
||||
%table.table.price_table
|
||||
%tr
|
||||
-if @p_product.get_prices(current_p_customer).count > 1
|
||||
%p
|
||||
Prix de
|
||||
=number_to_currency @p_product.get_prices(current_p_customer).last.price
|
||||
à
|
||||
= number_to_currency @p_product.get_prices(current_p_customer).first.price
|
||||
%table.table.price_table
|
||||
%tr
|
||||
|
||||
-@p_product.get_prices(current_p_customer).each do |price|
|
||||
-@p_product.get_prices(current_p_customer).each do |price|
|
||||
|
||||
%td
|
||||
A partir de
|
||||
=price.nbr.to_i
|
||||
ex
|
||||
%tr
|
||||
%td
|
||||
A partir de
|
||||
=price.nbr.to_i
|
||||
ex
|
||||
%tr
|
||||
|
||||
-@p_product.get_prices(current_p_customer).each do |price|
|
||||
-@p_product.get_prices(current_p_customer).each do |price|
|
||||
|
||||
%td
|
||||
=number_to_currency price.price
|
||||
%td
|
||||
=number_to_currency price.price
|
||||
|
||||
-elsif @p_product.get_prices(current_p_customer).count == 1
|
||||
%p
|
||||
%strong Votre prix :
|
||||
=number_to_currency @p_product.get_prices(current_p_customer).last.price
|
||||
-elsif @p_product.get_prices(current_p_customer).count == 1
|
||||
%p
|
||||
%strong Votre prix :
|
||||
=number_to_currency @p_product.get_prices(current_p_customer).last.price
|
||||
|
||||
-if !current_p_customer.account_validated
|
||||
%p
|
||||
|
Loading…
x
Reference in New Issue
Block a user