Post by keiron1992 » Sat Feb 26, 2011 10:51 pm

My product names are generated automatically after I did some tweaking to the code.

I want to remove the product name field from my admin area. As the field is required I don't know how to remove it.

Could someone please tell me how to remove the product name field or make it not required.

Thanks, Keiron
O0

New member

Posts

Joined
Fri Oct 22, 2010 12:02 am
Location - Birmingham, West Midlands, Uk

Post by kedgetech » Sun Feb 27, 2011 6:10 am

If you does not want to make it mandatory. Assuming you get around php code you could remove the validation in the product controller (admin). Have not tested but i guess it should work.

User avatar
Active Member

Posts

Joined
Mon Mar 22, 2010 5:20 pm
Location - USA, Australia, India

Post by keiron1992 » Sun Feb 02, 2014 5:21 am

In the product controller file

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

to

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

New member

Posts

Joined
Fri Oct 22, 2010 12:02 am
Location - Birmingham, West Midlands, Uk
Who is online

Users browsing this forum: No registered users and 40 guests