Sha256: e7743bde370770a2b22a5482ffd27e3bc58e0bec9284b929b26b0eac336710a5
Contents?: true
Size: 443 Bytes
Versions: 9
Compression:
Stored size: 443 Bytes
Contents
module ShopDiscounts module Tags module Cart include Radiant::Taggable [:value, :markdown].each do |symbol| desc %{ outputs the #{symbol} of the current cart item } tag "shop:cart:#{symbol}" do |tag| attr = tag.attr.symbolize_keys order = tag.locals.shop_order Shop::Tags::Helpers.currency(order.send(symbol),attr) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems