Simplify the vendor registration page, remove re-type password, double name...

  • Posts: 136
  • Thank you received: 7
7 years 7 months ago #267836

-- HikaShop version -- : 3.0.1
-- HikaMarket version -- : 1.7.3
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.10
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : none

Hi

I'm trying to find out how to make the vendor registration page more simple. I would like to:
1. Remove the Re-type password
(Conversion rate is lower, when using confirm password)
2. Remove the 'register_name' (HIKA_USER_NAME) or hide it as hidden input and set it equal to my custom 'address_fullname' field.

I'm trying to achieve this in template override /vendormarket/registration.php

How to do this?
Use jQuery to set and manipulate fields or change other file or plugin?

1. Could be solved in this way?:

.....
defined('_JEXEC') or die('Restricted access');
?>
<script>
jQuery(function () {
	jQuery('#register_password').bind("keyup", function() {
	    var val = jQuery(this).val();
	    jQuery('#register_password2').val(val);
	});
	jQuery('#address_fullname').bind("keyup", function() {
	    var val = jQuery(this).val();
	    jQuery('#register_name').val(val);
	});
});
</script>
.....
<dd class="hikamarket_registration_password_line">
<input type="password" id="register_password" name="data[register][password]" value="" class="inputbox required validate-password"/><span class="hikashop_field_required">*</span>
<input type="hidden" id="register_password2" name="data[register][password2]" value="" class="inputbox required validate-passverify"/>
</dd>

Best regards,
Henrik


.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building
Last edit: 7 years 7 months ago by flexsus.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #267841

Hello,

The HikaMarket registration is using the HikaShop registration system and the Joomla registration system.
So the settings that you can find in the HikaShop configuration are used by HikaMarket too.
www.hikashop.com/support/documentation/5....html#checkout_login

But in HikaMarket you can find some settings too :
www.hikashop.com/support/documentation/1...nfig_market_register
And with "Email will be username" for example, the email will be used instead of the username.

Because Joomla registration requires a password and a password verification, you need to duplicate the field like you did.
But I would recommend you to use the events "onchange" and "onblur" to perform the copy of the field ; or to use the "onsubmit" on the form itself.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 136
  • Thank you received: 7
7 years 6 months ago #268086

Hi jerome

Thank you for the documention links. I already know about these :)

You are right! the onchange will work better, if you select an email from autocomplete and tab out of input it will work too.

jQuery('#register_email').on("change", function()

Best regards,
Henrik


.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building
Last edit: 7 years 6 months ago by flexsus.

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

Moderators: Obsidev
Time to create page: 0.056 seconds
Powered by Kunena Forum