Manual payment options

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Manual payment options

Post by kastnerd » Wed Jan 07, 2009 11:26 am

What is the best way to deal with Checks, Money orders, or Wire Transfers.

Also is there a way to only have Wire Transfer an option if the order total is over $2,000 ?

The order would be entered but not shipped until the wire is received. And they could take 2 to 7 days.

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

Re: Manual payment options

Post by mazhar » Wed Jan 07, 2009 12:12 pm

Code: Select all

Also is there a way to only have Wire Transfer an option if the order total is over $2,000 ? 
You can customize the one page checkout so that if the order total is greater then 2000 then it only shows the Wire Transfer as payment method. For example locate the following line of code
in ConLib/OnePageCheckout.ascx.cs file

Code: Select all

PaymentMethodCollection availablePaymentMethods = StoreDataHelper.GetPaymentMethods(Token.Instance.UserId);
and make it look like

Code: Select all

PaymentMethodCollection availablePaymentMethods = StoreDataHelper.GetPaymentMethods(Token.Instance.UserId);
            if (orderTotal > 2000)
            {
                PaymentMethodCollection tempMethods = new PaymentMethodCollection();
                foreach (PaymentMethod pm in availablePaymentMethods)
                {
                    if (pm.Name == "Wire Transfer")
                    {
                        tempMethods.Add(pm);
                        break;
                    }
                }
                availablePaymentMethods = tempMethods;
            }

Post Reply