Module: CabooseStore::CheckoutHelper
- Defined in:
- app/helpers/caboose_store/checkout_helper.rb
Instance Method Summary collapse
- #caboose_store_address_form ⇒ Object
- #caboose_store_billing_form ⇒ Object
- #caboose_store_cart ⇒ Object
- #caboose_store_discount ⇒ Object
- #caboose_store_shipping_address ⇒ Object
- #caboose_store_shipping_method ⇒ Object
- #caboose_store_shipping_method_form ⇒ Object
- #checkout_nav(i) ⇒ Object
Instance Method Details
#caboose_store_address_form ⇒ Object
7 8 9 |
# File 'app/helpers/caboose_store/checkout_helper.rb', line 7 def caboose_store_address_form render :partial => '/caboose_store/checkout/address_form' end |
#caboose_store_billing_form ⇒ Object
27 28 29 |
# File 'app/helpers/caboose_store/checkout_helper.rb', line 27 def caboose_store_billing_form render :partial => '/caboose_store/checkout/billing_form' end |
#caboose_store_cart ⇒ Object
3 4 5 |
# File 'app/helpers/caboose_store/checkout_helper.rb', line 3 def caboose_store_cart render :partial => '/caboose_store/checkout/cart' end |
#caboose_store_discount ⇒ Object
23 24 25 |
# File 'app/helpers/caboose_store/checkout_helper.rb', line 23 def caboose_store_discount render :partial => '/caboose_store/checkout/order_discount' end |
#caboose_store_shipping_address ⇒ Object
11 12 13 |
# File 'app/helpers/caboose_store/checkout_helper.rb', line 11 def caboose_store_shipping_address render :partial => '/caboose_store/checkout/shipping_address' end |
#caboose_store_shipping_method ⇒ Object
19 20 21 |
# File 'app/helpers/caboose_store/checkout_helper.rb', line 19 def caboose_store_shipping_method render :partial => '/caboose_store/checkout/shipping_method' end |
#caboose_store_shipping_method_form ⇒ Object
15 16 17 |
# File 'app/helpers/caboose_store/checkout_helper.rb', line 15 def caboose_store_shipping_method_form render :partial => '/caboose_store/checkout/shipping_method_form' end |
#checkout_nav(i) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'app/helpers/caboose_store/checkout_helper.rb', line 31 def checkout_nav(i) str = "" str << "<div id='checkout-nav'>" str << " <ul>" str << " <li class='odd' id='checkout_nav1'><a href='#{i <= 1 ? '#' : '/checkout/step-one' }' class='#{i == 1 ? 'current' : (i < 1 ? 'not_done' : 'done')}'><span>User Account </span></a></li>" str << " <li class='even' id='checkout_nav2'><a href='#{i <= 2 ? '#' : '/checkout/step-two' }' class='#{i == 2 ? 'current' : (i < 2 ? 'not_done' : 'done')}'><span>Addresses </span></a></li>" str << " <li class='odd' id='checkout_nav3'><a href='#{i <= 3 ? '#' : '/checkout/step-three' }' class='#{i == 3 ? 'current' : (i < 3 ? 'not_done' : 'done')}'><span>Shipping </span></a></li>" str << " <li class='even' id='checkout_nav4'><a href='#{i <= 4 ? '#' : '/checkout/step-four' }' class='#{i == 4 ? 'current' : (i < 4 ? 'not_done' : 'done')}'><span>Payment </span></a></li>" str << " <li class='odd' id='checkout_nav5'><a href='#{i <= 5 ? '#' : '/checkout/step-five' }' class='#{i == 5 ? 'current' : (i < 5 ? 'not_done' : 'done')}'><span>Confirm </span></a></li>" str << " </ul>" str << "</div>" return str end |