LemonStand Forum: Admin only payment method - LemonStand Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Admin only payment method

#1 User is offline   webgroup 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 57
  • Joined: 15-July 11

Posted 03 February 2012 - 08:25 AM

We want to add a new payment method (Trade Account) which our sales staff can select in the admin backend when processing telephone orders but it shouldn't appear on the frontend for the customer to select. What is the best method to do that?
0

#2 User is offline   Hexarobi 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 103
  • Joined: 10-August 11

Posted 03 February 2012 - 01:55 PM

I accomplished this by adding a new Custom Payment Method called "Internal Payment" and api code "internal", which has its Order Start Status set to Paid. If this payment method is selected, it just marks the order paid. To prevent customers from seeing this option I created a customer group called Employees with api code "employee" then edited the shop:checkout_payment_method partial

After;
<? foreach ($payment_methods as $method):


Add:
      if ($this->get_customer_group()->code != "employee" && $method->ls_api_code == "internal")
        continue; 
    ?>

0

#3 User is offline   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,633
  • Joined: 31-October 09

Posted 09 February 2012 - 05:11 PM

Hi!

We just added the "Enabled in the Administration Area" checkbox for payment and shipping methods.

Thank you

#4 User is offline   webgroup 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 57
  • Joined: 15-July 11

Posted 10 February 2012 - 02:57 AM

View PostAleksey, on 09 February 2012 - 05:11 PM, said:

Hi!

We just added the "Enabled in the Administration Area" checkbox for payment and shipping methods.

Thank you


Works a treat - thanks Aleksey :)
0

Share this topic:


Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users