Community Forums

Remove required fields

General support for technical problems with OpenCart v1.x

Remove required fields

Postby pumpui » Sat Jul 10, 2010 9:08 am

Hi there,

I´ve searched the forum and google for 2 days now without a real solution for my problem.

I need to remove most of the required fields, needed during a registration.

There are some Post on this and other boards, but No one gives a real solution.
Every time someone ask this question, people say try this or that but no one say , yes it works and tell you how to do it :-[
I´ve also readed the sticky about how to require postcodes,, but i can´t use it reverse because it´s very hard to understand for a not php professional. Would be nice if the support would also be made for usual customers and not only for coders. Also the Documentation don´t give any information about this very important feature.

If someone could point me in the right direction, that would be very great. Or at least give me an official "that is not possible with open cart"

thanks
lara pumpui


PS to some special guys here: Don´t ask why i need this and don´t try to teache me that it is so importent to leave this fields required and bla bla.. i know what i need it for and thats enough!
pumpui
 
Posts: 4
Joined: Sat Jul 03, 2010 6:48 pm

Re: REMOVE REQUIRED FIELDS

Postby i2Paq » Sat Jul 10, 2010 9:28 am

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

FREE manuals: ShowMe Guides OpenCart, Opencart Check List and Our Documentation section.

BUGs?: Known BUGS for All OC Versions.

[How to] OC 1.5.4.x en hoger; BTW + Verzend + betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 10936
Joined: Mon Nov 09, 2009 6:00 am
Location: Winkel - The Netherlands

Re: REMOVE REQUIRED FIELDS

Postby pumpui » Sat Jul 10, 2010 9:52 am

thanks but that is what i was talking about... ::)
That´s no real answers ! just ,,read this or read that,, like i told in my first post LOL.



pumpui wrote:I´ve also readed the sticky about how to require postcodes,, but i can´t use it reverse because it´s very hard to understand for a not php professional.


In this Postcode tutorial he only describes how make a field required,, he say " find this .. and add after this.. "
but did not mentoined in any word how to remove some required fields ;D ;)

but thanks for your try
pumpui
 
Posts: 4
Joined: Sat Jul 03, 2010 6:48 pm

Re: REMOVE REQUIRED FIELDS

Postby i2Paq » Sat Jul 10, 2010 10:05 am

You could try to think in reverse and see if you can project it on the fields you want to remove...
Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.

FREE manuals: ShowMe Guides OpenCart, Opencart Check List and Our Documentation section.

BUGs?: Known BUGS for All OC Versions.

[How to] OC 1.5.4.x en hoger; BTW + Verzend + betaalmethodes.
User avatar
i2Paq
Global Moderator
 
Posts: 10936
Joined: Mon Nov 09, 2009 6:00 am
Location: Winkel - The Netherlands

Re: REMOVE REQUIRED FIELDS

Postby JAY6390 » Sat Jul 10, 2010 10:15 am

Like i2Paq has said, you need to basically do the reverse, so say you want to make city NOT required, then you just REMOVE all the lines from those files, ie remove
Code: Select all
if ((strlen(utf8_decode($this->request->post['city'])) < 3) || (strlen(utf8_decode($this->request->post['city'])) > 128)) {
         
$this->error['city'] = $this->language->get('error_city');

and
Code: Select all
if (isset($this->error['city'])) {
   
$this->data['error_city'] = $this->error['city'];
} else {
   
$this->data['error_city'] = '';

You don't really need to remove the language line
in the template you just need to remove
Code: Select all
  <?php if ($error_city) { ?>
  <span class="error"><?php echo $error_city?></span>
  <?php ?></td>


Other than that, not sure really what you need to know
ImageImageImage

SEO MEGA KIT PLUS - Get your site ranking higher in the search engines
Better Product SEO URL's - Perfectly structured product links
SEO URL's Route Editor - Fix all of your index.php links


Image
User avatar
JAY6390
 
Posts: 4888
Joined: Wed May 26, 2010 10:47 am
Location: United Kingdom

Re: REMOVE REQUIRED FIELDS

Postby pumpui » Sat Jul 10, 2010 10:19 am

thanks so much,

that´s something i can start with

thanks
lara
pumpui
 
Posts: 4
Joined: Sat Jul 03, 2010 6:48 pm

Re: REMOVE REQUIRED FIELDS

Postby Keith » Fri Jul 23, 2010 6:47 pm

Hi all, After reading the above posts I am totally confused..I have a very limited grasp of php although I am attempting to learn as much as possible.
I am building a download only site so only require the name & email part of the registration. Would it be possible for one of you 'savvy' gurus to produce a pdf or doc explaining exactly (in laymans terms) which files need editing in order to delete or hide all other requirement fields.
I am prepared to make a donation toward the time spent compiling the info. I am an OS and cubecart convert as I love the 'simplicity' of opencart.

Cheers guys, I am hanging on in anticipation for a simple,reliable method.
P.S. I am using v1.48

Thanks again
Keith
Keith
 
Posts: 3
Joined: Thu Jul 22, 2010 7:19 pm

Re: REMOVE REQUIRED FIELDS

Postby keiron1992 » Sat Feb 26, 2011 6:34 am

Any update on this please? I have some fields i want to be able to leave blank when submitting the form. Thanks, Keiron :D
User avatar
keiron1992
 
Posts: 76
Joined: Thu Oct 21, 2010 11:02 am
Location: Wolverhampton, West Midlands, Uk

Re: Remove required fields

Postby keiron1992 » Sat Feb 01, 2014 4:18 pm

User avatar
keiron1992
 
Posts: 76
Joined: Thu Oct 21, 2010 11:02 am
Location: Wolverhampton, West Midlands, Uk


Return to General Support

Who is online

Users browsing this forum: himanshpahwa, pcmediahost and 55 guests

Hosted by Arvixe Web Hosting