Module: Locomotive::Ecommerce::EcommerceUrlHelper
- Included in:
- EcommerceHelper
- Defined in:
- app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb
Instance Method Summary collapse
- #add_to_cart_path(stem, product) ⇒ Object
-
#cart_path(*args) ⇒ Object
configured urls.
-
#cart_update_path(stem, cart) ⇒ Object
non-configured urls (provided by the engine) #########################.
- #checkout_index_path(stem) ⇒ Object
- #checkout_path ⇒ Object
- #checkout_update_path(stem, purchase) ⇒ Object
- #confirm_order_path ⇒ Object
- #post_checkout_path ⇒ Object
- #purchases_path ⇒ Object
- #remove_from_cart_path(stem, product_id) ⇒ Object
Instance Method Details
#add_to_cart_path(stem, product) ⇒ Object
35 36 37 |
# File 'app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb', line 35 def add_to_cart_path(stem, product) "#{stem}add_to_cart/#{product.id}" end |
#cart_path(*args) ⇒ Object
configured urls
7 8 9 |
# File 'app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb', line 7 def cart_path(*args) Engine.config_or_default('cart_url') end |
#cart_update_path(stem, cart) ⇒ Object
non-configured urls (provided by the engine) #########################
31 32 33 |
# File 'app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb', line 31 def cart_update_path(stem, cart) "#{stem}cart/#{cart.id}" end |
#checkout_index_path(stem) ⇒ Object
47 48 49 |
# File 'app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb', line 47 def checkout_index_path(stem) "#{stem}checkout" end |
#checkout_path ⇒ Object
11 12 13 |
# File 'app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb', line 11 def checkout_path Engine.config_or_default('checkout_url') end |
#checkout_update_path(stem, purchase) ⇒ Object
43 44 45 |
# File 'app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb', line 43 def checkout_update_path(stem, purchase) "#{stem}checkout/#{purchase.id}" end |
#confirm_order_path ⇒ Object
15 16 17 |
# File 'app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb', line 15 def confirm_order_path Engine.config_or_default('confirm_order_url') end |
#post_checkout_path ⇒ Object
23 24 25 |
# File 'app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb', line 23 def post_checkout_path Engine.config_or_default('post_checkout_url') end |
#purchases_path ⇒ Object
19 20 21 |
# File 'app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb', line 19 def purchases_path Engine.config_or_default('purchases_url') end |
#remove_from_cart_path(stem, product_id) ⇒ Object
39 40 41 |
# File 'app/helpers/locomotive/ecommerce/ecommerce_url_helper.rb', line 39 def remove_from_cart_path(stem, product_id) "#{stem}remove_from_cart/#{product_id}" end |