Hello, the checkout terms tickbox I would like to only appear for certain countries. Just wondering if anyone can tell me how I can do that.
Many thanks
Many thanks
Not particularly easy that one.
I don't think there will an extension for such
You may have to make a request in the commercial section for this.
Some one else may have other ideas for you.
I don't think there will an extension for such
You may have to make a request in the commercial section for this.
Some one else may have other ideas for you.
By creating an /after event of your catalog/controller/checkout/payment_method.php file by validating and starting with this line:
it could be done.
Code: Select all
if ($this->config->get('config_checkout_id')) {
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks for that. I will give it a go. So where do I set the countries that it will apply to?straightlight wrote: ↑Fri Jan 22, 2021 10:36 pmBy creating an /after event of your catalog/controller/checkout/payment_method.php file by validating and starting with this line:
it could be done.Code: Select all
if ($this->config->get('config_checkout_id')) {
You could create a country list right below that IF statement and apply an in_array lookup.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.chinapresentations wrote: ↑Fri Jan 22, 2021 10:27 pmHello, the checkout terms tickbox I would like to only appear for certain countries. Just wondering if anyone can tell me how I can do that.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
Who is online
Users browsing this forum: NicNie, opencartArab, shanghua and 417 guests