Page 1 of 1

Make Cash on Delivery payment method conditional

Posted: Fri Jun 07, 2013 11:55 pm
by hughconway
Hi there,

I have amended the text of the Cash on Delivery module to read Cash or Credit / Debit Card on Collection which is great but I would like to make it conditional on the customer having selected the Collection in Person option from the Shipping choices. I have used the Product Based Shipping module by Clear Thinking to create a free rate named Collection in Person which is only available to customers with a UK address.

Is there a quick way to edit the Cash on Delivery module to do this or does it need a completely new payment module?

I would like the customers to still be able to pay at time of purchase with Card or Paypal which are my two other payment options and are not conditional on a shipping method.

Many thanks,

Hugh

Re: Make Cash on Delivery payment method conditional

Posted: Sat Jun 08, 2013 1:09 am
by Johnathan
You can do this with Restrict Payment Methods. It includes the ability to restrict payment methods based on shipping method choice.

Re: Make Cash on Delivery payment method conditional

Posted: Sat Jun 08, 2013 1:41 am
by hughconway
Hi Jonathan,

Thanks for the quick response.

Yes, I did see that module but it seems like overkill for a restricting single payment method which is very specific to collection only orders.

I wondered if there was a simple line of code or two I could add to the payment module to achieve this.

Thanks,

Hugh

Re: Make Cash on Delivery payment method conditional

Posted: Sat Sep 21, 2013 6:06 am
by timcd1st
Hugh,

I am interested in ammending the Cash on Delivery to something different. Can you please advise me on how to do that.

Thanks,

Tim