Method: TbCommerce::ProductsHelper#price_maximum

Defined in:
app/helpers/tb_commerce/products_helper.rb

#price_maximum(product) ⇒ Object



12
13
14
15
# File 'app/helpers/tb_commerce/products_helper.rb', line 12

def price_maximum(product)
	prices = product.product_skus.sort{ |x,y| x.add_price <=> y.add_price }
	number_to_currency(prices.last.price)
end