Class: Plugins::Ecommerce::LegacyOrder

Inherits:
CamaleonCms::TermTaxonomy
  • Object
show all
Defined in:
app/models/plugins/ecommerce/legacy_order.rb

Overview

not used anymore (DEPRECATED)

Instance Method Summary collapse

Instance Method Details

#paymentObject



11
12
13
14
# File 'app/models/plugins/ecommerce/legacy_order.rb', line 11

def payment
  payment = get_meta("payment")
  get_meta("pay_#{payment[:type]}".to_sym)
end

#payment_methodObject



7
8
9
# File 'app/models/plugins/ecommerce/legacy_order.rb', line 7

def payment_method
  Plugins::Ecommerce::PaymentMethod.find_by_id get_meta("payment")[:payment_id]
end

#shipping_methodObject



16
17
18
# File 'app/models/plugins/ecommerce/legacy_order.rb', line 16

def shipping_method
  Plugins::Ecommerce::ShippingMethod.find_by_id get_meta("payment", {})[:shipping_method]
end