Search found 10 matches

Page 1 of 1

Search found 10 matches

Re: How to create a form for users to submit info + a file?

@ Calcite If you are getting an undefined variable error then you need to be looking at your Register Controller file. Looking back at what I wrote up there I forgot to mention that you need to add another variable. Look for the line like this: $this->data['entry_confirm'] = $this->language->get('e...

Jump to post
  • Fri Feb 24, 2012 8:13 am
  • Replies 67
  • Views 59199
Add CAPTCHA to registration form

@ Calcite Fortunately there aren't that many files that you will need to open. You need to add this to your Register Controller which can be found at: /catalog/controller/account/register.php public function captcha() { $this->load->library('captcha'); $captcha = new Captcha(); $this->session->data...

Jump to post
  • Fri Feb 24, 2012 5:06 am
  • Replies 67
  • Views 59199
Re: How to create a form for users to submit info + a file?

@ philbydevil Before I get to any of the rest of this stuff, let me ask you to make an adjustment to your Information Controller file. Do this, test the form and see if everything works. I was realizing that your $error_name, etc. variables weren't triggering when incorrectly filled out. Find the l...

Jump to post
  • Thu Feb 23, 2012 2:33 pm
  • Replies 67
  • Views 59199
Re: How to create a form for users to submit info + a file?

@ philbydevil We'll start with the <form> question. If you examine your Page Source once the Information Page has loaded, you'll see that you are probably getting an error of some sort about an undefined variable in the action=" ". I'll update my post up top to reflect this, but will explain it her...

Jump to post
  • Thu Feb 23, 2012 8:57 am
  • Replies 67
  • Views 59199
Re: How to create a form for users to submit info + a file?

@ philbydevil Okay. I placed your file into my OpenCart test site and now I see what happened. You were missing a couple of proper opening and closing tags that were throwing your errors. Around line 524 you are missing a closing parentheses ) in your validate() function when you are checking for '...

Jump to post
  • Thu Feb 23, 2012 7:33 am
  • Replies 67
  • Views 59199
Re: How to create a form for users to submit info + a file?

@ Calcite I'm fairly certain adding the CAPTCHA to the registration form would be no different than above. You would need to add: <br /> <b><?php echo $entry_captcha; ?></b><br /> <input type="text" name="captcha" value="<?php echo $captcha; ?>" /> <br /> <img src="index.php?route=information/conta...

Jump to post
  • Thu Feb 23, 2012 6:32 am
  • Replies 67
  • Views 59199
Re: How to create a form for users to submit info + a file?

@philbydevil Seems that on line 328 you've got an extra curly bracket closing out the index() function early. Just delete that and see if it helps. The line you want to look for is: $this->redirect($this->url->link('information/contact/success')); Just remove the second curly bracket found after th...

Jump to post
  • Thu Feb 23, 2012 2:40 am
  • Replies 67
  • Views 59199
Add custom form to an information page

Okay, here we go. The following is a run-down on how you can add a custom form to an Information page. You could essentially transpose this to any other page, but for the sake of brevity we'll just cover adding it to an Information page. Down the road I hope to turn this into a VQmod, but for the ti...

Jump to post
  • Wed Feb 22, 2012 8:34 am
  • Replies 67
  • Views 59199
Re: How to create a form for users to submit info + a file?

@BobDougan I'm currently implementing a custom form into an Information page, and would be happy to share with you how it is done once this contract is finished. If you aren't in too much of a hurry, I had been thinking of writing up a tutorial on it sometime next week (Feb 28 - Mar 1)-ish. At the ...

Jump to post
  • Tue Feb 21, 2012 1:01 pm
  • Replies 67
  • Views 59199

Page 1 of 1

Search found 10 matches