app/mailers/effective/orders_mailer.rb
def pending_order_invoice_to_buyer(order_param)
      return true unless EffectiveOrders.mailer[:send_pending_order_invoice_to_buyer]

      @order = (order_param.kind_of?(Effective::Order) ? order_param : Effective::Order.find(order_param))

      mail(
        to: @order.user.email,
        from: EffectiveOrders.mailer[:default_from],
        subject: subject_for_pending_order_invoice_to_buyer(@order)
      )
    end
# This is sent when someone chooses to Pay by Cheque
This is sent when someone chooses to Pay by Cheque
This is sent when someone chooses to Pay by Cheque
def pending_order_invoice_to_buyer(order_param)
      return true unless EffectiveOrders.mailer[:send_pending_order_invoice_to_buyer]
      @order = (order_param.kind_of?(Effective::Order) ? order_param : Effective::Order.find(order_param))
      mail(
        to: @order.user.email,
        from: EffectiveOrders.mailer[:default_from],
        subject: subject_for_pending_order_invoice_to_buyer(@order)
      )
    end
def pending_order_invoice_to_buyer ( order_param ) return true unless EffectiveOrders . mailer [ :send_pending_order_invoice_to_buyer ] @order = ( order_param . kind_of? ( Effective :: Order ) ? order_param : Effective :: Order . find ( order_param ) ) mail ( to : @order . user . email , from : EffectiveOrders . mailer [ :default_from ] , subject : subject_for_pending_order_invoice_to_buyer ( @order ) ) end
This is sent when someone chooses to Pay by Cheque
This is sent when someone chooses to Pay by Cheque
order_param