Sha256: 267d0437bd3d0ef1941324b1cf49adb5e0566a6cce4f495ef79129a9a14c94f3
Contents?: true
Size: 869 Bytes
Versions: 3
Compression:
Stored size: 869 Bytes
Contents
module Locomotive module Ecommerce module EcommerceFilters def cart_update_path(cart) stem = @context.registers[:plugin_object].path "#{stem}cart/#{cart.id}" end def add_to_cart_path(product_sku) stem = @context.registers[:plugin_object].path "#{stem}add_to_cart/#{product_sku}" end def remove_from_cart_path(product_sku) stem = @context.registers[:plugin_object].path "#{stem}remove_from_cart/#{product_sku}" end def checkout_path(purchase) stem = @context.registers[:plugin_object].path "#{stem}checkout" end def checkout_update_path(purchase) stem = @context.registers[:plugin_object].path "#{stem}checkout/#{purchase.id}" end def find_purchase(id) Purchase.find(id.to_s) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems