Show Defer Payment only for Admin...?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
hautebox
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 26
Joined: Thu Nov 05, 2009 2:46 pm

Show Defer Payment only for Admin...?

Post by hautebox » Thu Dec 10, 2009 2:58 pm

We only except credit cards for our online food orders...Hence payment methods are configured for auth.net standard gateway options (visa, amex,etc).

On occasion, I have a select group of customers we allow to place telephone orders and pay with cash when we deliver.

In that instance, I manually create an order through the admin interface. Currently, I select the "defer payment" option. However, there doesn't seem to be a way to "add a payment" without creating the "Phone Order" method and having that show as an option to the general public.

Am I missing a "hidden/private" option for the display, or is AC set up to display all payment methods...?

Is there a way to configure the deferred offline methods and only have them available in the Admin interface?

Hauteboxmeals.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Show Defer Payment only for Admin...?

Post by mazhar » Fri Dec 11, 2009 6:33 am

Here is a workaround suggestion, it may work in your case. Simply put a little custom code on your merchant side order wizard to load and show method for example phone call. Go to your Website/Admin/Orders/Create/CreateOrder4.aspx.cs and locate following code

Code: Select all

PaymentMethodCollection availablePaymentMethods = StoreDataHelper.GetPaymentMethods(_UserId);
then put following code just benethe above line

Code: Select all

PaymentMethod paybyPhoneCall = PaymentMethodDataSource.Load(paymentMethodId);
            if (paybyPhoneCall != null)
                availablePaymentMethods.Add(paybyPhoneCall);
where paymentMethodId represents the id of payment method. In order to get this value you need to look in your database's ac_PaymentMethods tables and replace correct integer value in place of paymentMethodId in load method. This modification will always show Pay By Phone Call method available on admin side.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Show Defer Payment only for Admin...?

Post by AbleMods » Fri Dec 11, 2009 11:15 am

hautebox wrote:Is there a way to configure the deferred offline methods and only have them available in the Admin interface?
Create a new user group called "Admin Pmt Methods", add your admin-side users to it and then assign the admin-only payment methods to that user group "Admin Pmt Methods".

Only members of the assigned group will be see those payment choices - visitors will never know they exist.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

hautebox
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 26
Joined: Thu Nov 05, 2009 2:46 pm

Re: Show Defer Payment only for Admin...?

Post by hautebox » Fri Dec 11, 2009 2:13 pm

Joe,

Brilliant solution...! Took me about 90 seconds to implement...!!! I'm not very versed on programming, databases, or the ConLib, so for me this was super straight forward remedy...

I haven't attempted Mazhar's suggestion for fear I would major league mess something up...

Thanks to you both for quick responses to my post.

Hautebox

Post Reply