Post by quitoxic » Thu May 24, 2018 10:48 pm

Hi There,
I need to remove the NAME field as required on the contact page (It should still be there but the form should send even if empty)
Could anyone guide me on this?

Thanks!

Newbie

Posts

Joined
Thu May 24, 2018 10:15 pm

Post by yodapt » Thu May 24, 2018 11:06 pm

catalog/controller/information/contact.php

remove this

Code: Select all

if ((utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 32)) {
	$this->error['name'] = $this->language->get('error_name');
}

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by Ol'Berst » Sun May 27, 2018 9:06 am

Hello and thank you for the help.
Quitoxic wrote on my request.

I removed the suggested code, but unfortunately, this will result in the following error:

The message in the contact form won't get send and the User will be stuck in a blank page.

Any suggestions? THX

REGARDS Jesper

Newbie

Posts

Joined
Sat May 26, 2018 8:12 pm

Post by quitoxic » Tue May 29, 2018 12:33 pm

As mentioned, once the code is removed I have a blank page after the submit button is clicked and the form does not send the email.
any ideas?

Newbie

Posts

Joined
Thu May 24, 2018 10:15 pm
Who is online

Users browsing this forum: No registered users and 33 guests