- Posts: 190
- Thank you received: 0
Recaptcha in the midle of the registration form
- codewarrior
-
Topic Author
- Offline
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.
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.
- codewarrior
-
Topic Author
- Offline
- Posts: 190
- Thank you received: 0
Edit : Sorry I did not read completely : plugins/system/recaptcha.php
Merci
Works fine : merci Nicolas
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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.
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.
Nicolas t'es un champion! Merci
Please Log in or Create an account to join the conversation.
$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.
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.
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.