Recaptcha in the midle of the registration form

  • Posts: 190
  • Thank you received: 0
12 years 5 months ago #32012

Hi, congratulations for that great extension that I'll buy soon in business version.
I activated the ReCaptcha.
When I buy something (Add to cart), beeing not logged, a form with connexion on the left and Registration on the right appears.
The ReCaptcha appears in the middle of the registration form, before the adress fields.
Is there a way to put it at the end of the form, before the submit button, like usually ?
Thanks, Regards

Please Log in or Create an account to join the conversation.

  • Posts: 81703
  • Thank you received: 13104
  • MODERATOR
12 years 5 months ago #32037

Hi,

If you want to display the recaptcha plugin under a custom address field, you can change the line:

$components = array('view' => array('checkout','user'),'viewvar' => 'ctrl', 'lengthafter' => 500 , 'tdclass' => 'key', 'email' => 'data\[register\]\[email\]','password' => 'data\[register\]\[password2\]');

to:
$components = array('view' => array('checkout','user'),'viewvar' => 'ctrl', 'lengthafter' => 500 , 'tdclass' => 'key', 'email' => 'data\[address\]\[CUSTOM_FIELD_COLUMN_NAME\]','password' => 'data\[address\]\[CUSTOM_FIELD_COLUMN_NAME\]');

where CUSTOM_FIELD_COLUMN_NAME should be replaced by the column name of your custom address field, in the file plugins/system/recaptcha.php

Please Log in or Create an account to join the conversation.

  • Posts: 190
  • Thank you received: 0
12 years 5 months ago #32076

Thanks Nicolas, but in which file ?

Edit : Sorry I did not read completely : plugins/system/recaptcha.php
Merci

Works fine : merci Nicolas

Last edit: 12 years 5 months ago by codewarrior.

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
12 years 5 months ago #32311

Edit: wrong topic..sorry

Last edit: 12 years 5 months ago by Marek.

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 0
12 years 4 months ago #35147

Hi Nicolas,
I too want to move the captcha down to the last field of the form, which is the country.
I've done what you explained here but it doesn't work.
the captcha doesn't appear at all.
this is the code:

/**$components = array('view' => array('checkout','user'),'viewvar' => 'ctrl', 'lengthafter' => 500 , 'tdclass' => 'key', 'email' => 'data\[register\]\[email\]','password' => 'data\[register\]\[password2\]');**/
$components = array('view' => array('checkout','user'),'viewvar' => 'ctrl', 'lengthafter' => 500 , 'tdclass' => 'key', 'email' => 'data\[address\]\[address_country\]','password' => 'data\[address\]\[address_country\]');

can you help please?
thank you

Please Log in or Create an account to join the conversation.

  • Posts: 81703
  • Thank you received: 13104
  • MODERATOR
12 years 4 months ago #35224

That should work. Are you sure that you uploaded back the file to your server after doing the modification ?

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 0
12 years 4 months ago #35286

yes, just checked it.
and address_country is the name of the column. I didn't change it to what is already setup with the installation of hikashop

Please Log in or Create an account to join the conversation.

  • Posts: 81703
  • Thank you received: 13104
  • MODERATOR
12 years 4 months ago #35322

That's probably because you have a long list of countries.

In that case you need to increase the lengthafter parameter.
Like that:

$components = array('view' => array('checkout','user'),'viewvar' => 'ctrl', 'lengthafter' => 50000 , 'tdclass' => 'key', 'email' => 'data\[address\]\[address_country\]','password' => 'data\[address\]\[address_country\]');

Please Log in or Create an account to join the conversation.

  • Posts: 80
  • Thank you received: 0
12 years 4 months ago #35384

Yeah! it works!
Nicolas t'es un champion! Merci :cheer:

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 1
9 years 10 months ago #163472

Hi I Seem to be facing the same problem. Is there something i have wrong here? The Recapture does not show-up at all.

$components = array('view' => array('checkout','user'),'viewvar' => 'ctrl', 'lengthafter' => 500 , 'tdclass' => 'key', 'email' => 'data\[address\]\[address_telephone\]','password' => 'data\[address\]\[address_telephone\]');

Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #163490

Hi,

Could you give us more informations about your configuration ?
Are you using our ReCaptcha plugin ? What are its parameters ? You can give us a screenshot of the settings.

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 1
9 years 10 months ago #163580

Here you go!



Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81703
  • Thank you received: 13104
  • MODERATOR
9 years 10 months ago #163583

Hi,

This looks correct. Maybe it's because of the "use bootstrap design" option of the HikaShop configuration, or some template customization of the view. Or maybe it's simply because your Telephone custom field is not called "address_telephone" ?
Also, I see that you're not using the latest version of the ReCaptcha plugin, so I would recommend to download it again install it again, and do the code modification again in it.

The following user(s) said Thank You: eliberts

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 1
9 years 10 months ago #163747

I was using an older version!! Thank a bunch.

Please Log in or Create an account to join the conversation.

Time to create page: 0.131 seconds
Powered by Kunena Forum