Cash on Delivery options

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
I am setting up my online store and I want to be able to allow customers the option of paying COD if they pick up at my location only. I also deliver orders to various locations, but I want that method not to be able to pay via COD.

Any ideas?
9 years ago
You can put custom logic something like that

CheckoutController.cs - >

protected CheckoutPaymentMethodModel PreparePaymentMethodModel(IList<ShoppingCartItem> cart)
{
...
           foreach (var pm in boundPaymentMethods)
          {
                  if(deliver orders to various locations && pm == COD) continue;

          }
...
}


Or try the payment director plugin
9 years ago
For Payment Director, see this blog
Payment Director - Pay In Store available only for In-Store Pickup

(In your case, be sure to activate payment method CashOnDelivery and then select Payments.CashOnDelivery in Payment Director configuration)
8 years ago
This plug-in may help restrict Cash on Delivery by zip code
Cash on Delivery or Cash on Delivery

Thank You
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.