Sha256: a670b47066ff66bad9b3d960a01b0e8652623513f91c9deed71b39272207136d

Contents?: true

Size: 1.99 KB

Versions: 28

Compression:

Stored size: 1.99 KB

Contents

-# TODO v4 rewrite, simply and add better classes
- cache "#{product.cache_key}/prices", expires_in: Workarea.config.cache_expirations.product_pricing_fragment_cache do
  - if product.one_price?
    %p.product-prices__price
      - if product.show_sell_range?
        %span.product-prices__sell-price.product-prices__sell-price--min
          = number_to_currency(product.sell_min_price)
        %span.product-prices__sell-price.product-prices__sell-price--max – #{number_to_currency product.sell_max_price}
      - else
        %span.product-prices__sell-price
          = number_to_currency(product.sell_min_price)

  - else
    - if product.on_sale?
      %p.product-prices__price.product-prices__price--on-sale
        - if product.show_sell_range?
          %strong.product-prices__sell-price.product-prices__sell-price--min
            = number_to_currency(product.sell_min_price)
          %strong.product-prices__sell-price.product-prices__sell-price--max – #{number_to_currency product.sell_max_price}
        - else
          %strong.product-prices__sell-price
            = number_to_currency(product.sell_min_price)

    - else
      %p.product-prices__price
        - if product.show_sell_range?
          %span.product-prices__sell-price.product-prices__sell-price--min
            = number_to_currency(product.sell_min_price)
          %span.product-prices__sell-price.product-prices__sell-price--max – #{number_to_currency product.sell_max_price}
        - else
          %span.product-prices__sell-price
            = number_to_currency(product.sell_min_price)

    %p.product-prices__price.product-prices__price--original
      - if product.show_original_range?
        %s.product-prices__original-price.product-prices__original-price--range #{number_to_currency product.original_min_price} – #{number_to_currency product.original_max_price}
      - else
        %s.product-prices__original-price= number_to_currency product.original_min_price

  = append_partials('storefront.product_pricing', product: product)

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-storefront-3.5.27 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.26 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.25 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.23 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.22 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.21 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.20 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.19 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.18 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.17 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.16 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.15 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.14 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.13 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.12 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.11 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.10 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.9 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.8 app/views/workarea/storefront/products/_pricing.html.haml
workarea-storefront-3.5.7 app/views/workarea/storefront/products/_pricing.html.haml