I was wondering if its possible to change the default contact form route? And if doing so would help with bots programed to find opencart contact forms and spam them? PS I don't feel like installing recapcha on this particle oc2 site
Can anyone tell me how to change route=information/contact to say route=information/reachus?
Can anyone tell me how to change route=information/contact to say route=information/reachus?
~ OC 3.0.3.2 and OCmods only ~
Edit catalog/controller/information/contact.php
Change:
Into:
Change:
Into:
Change:
Into:
Change:
Into:
Change:
Into:
Save file as: catalog/information/controller/reachus.php
Delete catalog/information/controller/contact.php
Edit catalog/controller/common/footer.php
Change:
Into:
Change:
Code: Select all
class ControllerInformationContact extends Controller {
Code: Select all
class ControllerInformationReachus extends Controller {
Code: Select all
$this->response->redirect($this->url->link('information/contact/success'));
Code: Select all
$this->response->redirect($this->url->link('information/reachus/success'));
Code: Select all
'href' => $this->url->link('information/contact')
Code: Select all
'href' => $this->url->link('information/reachus')
Code: Select all
$data['action'] = $this->url->link('information/contact', '', true);
Code: Select all
$data['action'] = $this->url->link('information/reachus', '', true);
Code: Select all
'href' => $this->url->link('information/contact')
Code: Select all
'href' => $this->url->link('information/reachus')
Delete catalog/information/controller/contact.php
Edit catalog/controller/common/footer.php
Change:
Code: Select all
$data['contact'] = $this->url->link('information/contact');
Code: Select all
$data['contact'] = $this->url->link('information/reachus');
I use this extension plus Crawlprotect and have no spam or hack problems:
https://www.opencart.com/index.php?rout ... earch=spam
https://www.opencart.com/index.php?rout ... earch=spam
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
After trying multiple solutions, all not working like : google captcha, opencart captcha, some other opencart extensions (CSRF), neither could help, I was still receiving spams contact form and registration. So I developed a combination of extensions and now I completely satisfied: No more spams!
https://www.opencart.com/index.php?rout ... n_id=42395
https://www.opencart.com/index.php?rout ... n_id=34713
Cheers
https://www.opencart.com/index.php?rout ... n_id=42395
https://www.opencart.com/index.php?rout ... n_id=34713
Cheers
Who is online
Users browsing this forum: OliveCorou and 50 guests