Page 1 of 1
Manual payment options
Posted: Wed Jan 07, 2009 11:26 am
by kastnerd
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.
Re: Manual payment options
Posted: Wed Jan 07, 2009 12:12 pm
by mazhar
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;
}