Post by vssoft » Tue Mar 13, 2018 9:36 pm

Hi,
How to detect cart contains Gift Certificate by code? I am using below cod module and wants to disable cod payment method if cart contains Gift Certificate:

https://www.opencart.com/index.php?rout ... n_id=11301

Thanks

Active Member

Posts

Joined
Mon Jun 15, 2015 2:58 pm

Post by straightlight » Tue Mar 13, 2018 10:08 pm

No OC version posted. Contact the extension developer to resolve this issue.

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 vssoft » Wed Mar 14, 2018 10:36 pm

Using opencart 2.0.3

Their is an option already in module to : Enable/Disable this extension by writing custom conditions. I want to know the code thru which I can write the condition to disable this payment method if cart has Gift Certificate.

I want to know How I can check if the cart has Gift certificate by writing code in enable/disable condition.

Active Member

Posts

Joined
Mon Jun 15, 2015 2:58 pm

Post by straightlight » Wed Mar 14, 2018 11:56 pm

As mentioned on the above, contact the extension developer to resolve this issue since your request is about an installed extension.

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 kestas » Sat Mar 17, 2018 9:47 pm

vssoft wrote:
Tue Mar 13, 2018 9:36 pm
Hi,
How to detect cart contains Gift Certificate by code? I am using below cod module and wants to disable cod payment method if cart contains Gift Certificate:

https://www.opencart.com/index.php?rout ... n_id=11301

Thanks
this detect gift certificate:

Code: Select all

$this->session->data['vouchers']
Cheers

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by vssoft » Tue Mar 20, 2018 9:58 pm

@kestas: Thanks

Active Member

Posts

Joined
Mon Jun 15, 2015 2:58 pm
Who is online

Users browsing this forum: No registered users and 168 guests