Module: Cartify::CheckoutHelper

Defined in:
app/helpers/cartify/checkout_helper.rb

Instance Method Summary collapse

Instance Method Details

#active_step?(current_step) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'app/helpers/cartify/checkout_helper.rb', line 3

def active_step?(current_step)
  'active' if current_step == step
end

#order_summary_table_positionObject



12
13
14
# File 'app/helpers/cartify/checkout_helper.rb', line 12

def order_summary_table_position
  'general-summary-table-right general-text-right' if right?
end

#order_summary_text_positionObject



7
8
9
10
# File 'app/helpers/cartify/checkout_helper.rb', line 7

def order_summary_text_position
  return 'text-center general-text-right' if right?
  'general-text-align'
end