Skip to main content

Recaptcha in the midle of the registration form

More
14 years 9 months ago #32012 by codewarrior
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.

More
14 years 9 months ago #32037 by nicolas
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.

More
14 years 9 months ago - 14 years 9 months ago #32076 by codewarrior
Thanks Nicolas, but in which file ?

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

Works fine : merci Nicolas
Last edit: 14 years 9 months ago by codewarrior.

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

More
14 years 9 months ago - 14 years 9 months ago #32311 by Marek
Edit: wrong topic..sorry
Last edit: 14 years 9 months ago by Marek.

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

More
14 years 8 months ago #35147 by CassHW
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.

More
14 years 8 months ago #35224 by nicolas
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.

More
14 years 8 months ago #35286 by CassHW
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.

More
14 years 8 months ago #35322 by nicolas
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.

More
14 years 8 months ago #35384 by CassHW
Yeah! it works!
Nicolas t'es un champion! Merci :cheer:

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

More
12 years 2 months ago #163472 by eliberts
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.

More
12 years 2 months ago #163490 by Xavier
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.

More
12 years 2 months ago #163580 by eliberts

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

More
12 years 2 months ago #163583 by nicolas
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.

More
12 years 2 months ago #163747 by eliberts
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.283 seconds
Powered by Kunena Forum