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

Version Path
radiant-shop_discounts-extension-0.0.11 lib/shop_discounts/tags/cart.rb
radiant-shop_discounts-extension-0.0.10 lib/shop_discounts/tags/cart.rb
radiant-shop_discounts-extension-0.0.9 lib/shop_discounts/tags/cart.rb
radiant-shop_discounts-extension-0.0.8 lib/shop_discounts/tags/cart.rb
radiant-shop_discounts-extension-0.0.7 lib/shop_discounts/tags/cart.rb
radiant-shop_discounts-extension-0.0.6 lib/shop_discounts/tags/cart.rb
radiant-shop_discounts-extension-0.0.4 lib/shop_discounts/tags/cart.rb
radiant-shop_discounts-extension-0.0.3 lib/shop_discounts/tags/cart.rb
radiant-shop_discounts-extension-0.0.1 lib/shop_discounts/tags/cart.rb