Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Membership › Additional Registration Custom Fields – password update error
- This topic has 5 replies, 2 voices, and was last updated 4 years, 7 months ago by Sushobhan.
- AuthorPosts
- April 10, 2020 at 12:16 pm #117570CraigParticipant
It seems that any vendor registered before new “Additional Registration Custom Fields” were added to the vendor registration process can’t update their passwords.
See attached screen shots of the vendor trying to change password and a newly created staff account trying to change their password and says they need to acknowledge those two fields but are not visible because they are at the password rest section not the registration form.
Can you have a look and advise?
Thanks
Attachments:
You must be logged in to view attached files. - April 12, 2020 at 12:12 pm #118312SushobhanKeymaster
Hi Craig,
The custom registration fields are listed under ‘Additional Info’ tab. Checkout the image – https://imgur.com/TLOAHmP
The entire Profile page, with all the tabs (Personal, Address, Social,…), is wrapped under a single form element. So unless, all the mandatory fields are supplied it will not gets submitted.
Thanks! - April 15, 2020 at 9:02 pm #119430CraigParticipant
Hi Sushobhan – thanks for getting back to me.
I have already made some additional fields and made them mandatory. BUT I made these after some vendors already registered so those that registered would never have need to “acknowledge them”.
BUT when those particular vendors go to try to change their passwords they get an error saying that they need to check those boxes…..but they are not visible at the password changing screen.This also happens for Staff of those particular vendors they get the same error.
If you look at the bottom of the screen on my first screenshot above you will see the warning about needing to acknowledge those check-boxes but you can’t see them (and you should not need to) when you are just trying to update the password.
- April 17, 2020 at 7:21 pm #120051SushobhanKeymaster
Hello Craig,
Please share the snapshot of Additional Info tab, for both types of vendors(i.e. vendor registered before those custom fields introduced and one recent vendor)
Thanks - April 24, 2020 at 5:57 am #122375CraigParticipant
Hi There. I see the issue now…it is under the “additional info” tab.
Problem is the error that comes up doesn’t tell you that those check boxes are under the “additional info tab” so that is where I was getting stuck.
Is there a way to highlight where those unchecked boxes are? otherwise I’m sure most vendors will be as confused as I.
Attachments:
You must be logged in to view attached files. - April 24, 2020 at 5:39 pm #122529SushobhanKeymaster
Hi,
Try using the following snippet-add_action( 'after_wcfm_marketplace_settings', 'focusFailedValidationTab' ); add_action( 'after_wcfm_wcvendors_profile', 'focusFailedValidationTab' ); function focusFailedValidationTab() { ?> <script> jQuery( document ).ready( function ( $ ) { var validationTimer; function afterFormValidation( e, form ) { if ( isValidationFailed ) { clearTimeout( validationTimer ); validationTimer = setTimeout( function () { $tabHeader = $( form ).find( '.wcfm_validation_failed:first' ).closest( '.wcfm-container' ).prev( '.page_collapsible' ); if ( $tabHeader.length ) { $tabHeader.trigger( 'click' ); } }, 0 ); } } function isValidationFailed( form ) { return $( form ).find( '.wcfm-message.wcfm-error' ).length; } $( document.body ).on( 'wcfm_form_validate', afterFormValidation ); } ); </script> <?php }
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Let me know how this goes.
Thanks!
- AuthorPosts
- You must be logged in to reply to this topic.