Post by OC2PS » Thu Jun 21, 2012 7:35 pm

Many merchants, including yours truly utilize the fantastic option of Cash on Delivery in countries where online payments still haven't taken off.

Of course, for eVouchers, such as those generated by OpenCart, it is ridiculous to have this payment option. Is there a way to disable COD if the cart being checked out contains one or more vouchers?

BTW, similar scenario for downloadable products. If cart only has downloadable products, then too COD should be disabled.

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by Johnathan » Thu Jun 21, 2012 9:18 pm

You could use Restrict Payment Methods to restrict COD to appear when only certain products (i.e. your non-downloadable products) are in the cart. Since Gift Vouchers don't count as products, it would also work to only be enabled when Gift Vouchers aren't the only products in the cart. The only situation it wouldn't work is if there are products + Gift Vouchers in the cart.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by OC2PS » Thu Jun 21, 2012 10:06 pm

Thanks, Jonathan. But that doesn't quite do it.

Conditions for disabling COD option should be:
1. Disable if gift voucher present in cart
OR
2. Disable if only downloadable products present in cart

(this obviously included the condition where both gift voucher and download is in cart because this is covered by #1)

OC2PS
OC 3.0.3.7, vQmod 2.6.2, Journal3 theme
Arcfesték, Csillámtetoválás, Henna
Image
Check out: All my extensions | My FREE extensions


User avatar
Active Member

Posts

Joined
Wed Jul 22, 2009 4:15 am
Location - Hungary

Post by straightlight » Fri Jun 22, 2012 5:23 am

OC2PS wrote:Thanks, Jonathan. But that doesn't quite do it.

Conditions for disabling COD option should be:
1. Disable if gift voucher present in cart
OR
2. Disable if only downloadable products present in cart

(this obviously included the condition where both gift voucher and download is in cart because this is covered by #1)
I like this idea. I created an XML file.

Attachments


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by vj_sheta » Sat Jul 07, 2012 10:29 pm

Hi Straightlight,
I want same functionality to restrict COD when gift vouchure is in cart. Your above xml file doesnt Work for me. My opencart version is OC 1.5.2.1, vQmod 2.1.6, default theme.
I would greatly appreciate if you could help me sort out.
Thanks
Vj

Newbie

Posts

Joined
Sat Jul 07, 2012 10:23 pm

Post by vj_sheta » Mon Jul 09, 2012 3:49 pm

vj_sheta wrote:Hi Straightlight,
I want same functionality to restrict COD when gift vouchure is in cart. Your above xml file doesnt Work for me. My opencart version is OC 1.5.2.1, vQmod 2.1.6, default theme.
I would greatly appreciate if you could help me sort out.
Thanks
Vj
Can Anyone help me with this or suggest any alternative?
Thanks
Vj

Newbie

Posts

Joined
Sat Jul 07, 2012 10:23 pm

Post by straightlight » Sun Jul 15, 2012 4:57 am

Would it be possible to elaborate: "doesn't work for me" ?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by geonick » Tue Sep 04, 2012 6:53 pm

@Straightlight: I have downloaded and tried your vqmod xml and it did NOT work for me either. It shows to be enabled in Vqmod manager but when I add a gift voucher in the cart and try to checkout, CashOnDelivery is still an available option...

New member

Posts

Joined
Sun May 13, 2012 3:03 pm

Post by tolinho » Mon Oct 01, 2012 7:31 pm

Hi straightlight .
Thanks for sharing :)
It works great, but I would like to ajust this mod.
I just dont know how.

I'm looking to disable COD payment option in purchasing a voucher, and some other conditions.

This vqmod disables COD option if a voucher has been applyed.

Can this be done?
I dont have the knowledge to make such a change.
Any hints are appreciated.

Thanks in advance.

New member

Posts

Joined
Sat Jul 21, 2012 2:01 am

Post by straightlight » Wed Oct 03, 2012 9:27 pm

I'm looking to disable COD payment option in purchasing a voucher, and some other conditions.
Such as ?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by tolinho » Wed Oct 03, 2012 9:36 pm

Hi,
Por example: disable COD payment option in purchasing a voucher.
disable COD is a certain product is in the cart, or products of a certain category are in the cart.

Basicly this.

Thanks

New member

Posts

Joined
Sat Jul 21, 2012 2:01 am

Post by straightlight » Wed Oct 03, 2012 10:56 pm

The shortest way to do this would be by adding the related products feature to the COD form under the admin and to compare each product IDs with the ones that are added in the cart before and during checkout.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by straightlight » Sun Oct 07, 2012 9:37 pm

Or you could use this contribution: http://www.opencart.com/index.php?route ... on_id=8629

It is also possible to implement the vouchers restrictions afterwards.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by petsoukos » Fri Nov 08, 2013 5:17 am

Is there a solution for this?
I would also like the COD option to be disabled if someone is purchasing a gift voucher (not with, but actually buying a gift code for someone else)

I'm in the testing phase currently and I'm interested in using OpenCart for a client.

Newbie

Posts

Joined
Fri Nov 08, 2013 5:14 am

Post by Johnathan » Fri Nov 08, 2013 11:07 pm

Take a look at my reply to the original post -- Restrict Payment Methods can disable COD when vouchers are the only thing in the cart. When products + vouchers are in the cart, it would be enabled.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 2 guests