Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Membership › How do i add new custom field under vendor registration form?
Tagged: Vendor registration
- This topic has 43 replies, 7 voices, and was last updated 4 years, 7 months ago by
Ernesto Dionisio.
- AuthorPosts
- January 16, 2020 at 11:15 am #102257
baljeet.boldertechno
Participantcan you let me know about hooks?
- January 16, 2020 at 12:39 pm #102261
Sarmistha Chakraborty
MemberHello,
To add custom fields to vendor registration form, go to the
<your site url>/store-manager/settings/
. (PFA)Thanks.
Attachments:
You must be logged in to view attached files. - January 16, 2020 at 6:24 pm #102302
baljeet.boldertechno
ParticipantThis reply has been marked as private.- January 17, 2020 at 11:48 am #102408
Sarmistha Chakraborty
MemberHello,
As we told you previously to add add new custom field to vendor registration form , go to –
<your site url>/store-manager/settings/
-> Vendor RegistrationI want to use drop-down field inside show all vendor list.
>> Can you please elaborate with screenshot where you want to add field.Thanks.
- January 17, 2020 at 3:48 am #102374
Mohamed ElQadi
ParticipantHello,
I need to remove some fields from vendor registration form, such as “country”, “state”.
How can this be done while keeping the “city” and “address 1” fields?
Thank you.- January 17, 2020 at 12:51 pm #102433
Sarmistha Chakraborty
MemberHello,
add_filter('wcfm_membership_registration_fields_address','fn_wcfm_membership_registration_fields_address'); function fn_wcfm_membership_registration_fields_address($fields) { unset($fields['country']); unset($fields['state']); unset($fields['zip']); return $fields; }
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/
Thanks.
- May 14, 2020 at 8:21 pm #130988
jorsenmejia
Participanthow can I show the result of registration form input field anywhere?
- May 14, 2020 at 8:46 pm #130992
Sarmistha Chakraborty
MemberHello,
What do you mean by “result of registration form” ? Please elaborate.
Thanks.
- May 14, 2020 at 8:47 pm #130994
jorsenmejia
ParticipantI want to add the custom fields I add on personal details or profile
- May 14, 2020 at 8:49 pm #130995
jorsenmejia
ParticipantCheck the input fields here: https://gigant.com.ph/become-pro/
I want to show all the input in the personal/Profile page
please see attached fileAttachments:
You must be logged in to view attached files. - May 14, 2020 at 8:52 pm #130997
jorsenmejia
Participantplease help Sarmistha Chakraborty
- May 14, 2020 at 9:01 pm #131004
Sarmistha Chakraborty
MemberHello,
If you have added custom fields from here –
<your site url>/store-manager/settings/
-> Vendor Registration , then automatically by-default those custom fields are display in Profile manager “Additional Info” tab.(PFA)
(If you have added any custom code for hide “additional info” tab, please check after removing those code.)Thanks.
Attachments:
You must be logged in to view attached files. - May 14, 2020 at 9:05 pm #131008
jorsenmejia
Participantf you have added custom fields from here – <your site url>/store-manager/settings/ -> Vendor Registration , there’s no additional field show
- May 14, 2020 at 9:09 pm #131010
jorsenmejia
ParticipantI did this <your site url>/store-manager/settings/ but there’s no additional tab show
- May 14, 2020 at 9:19 pm #131011
jorsenmejia
Participanthelp me to show the additional info tab please
- May 15, 2020 at 5:09 pm #131366
Sarmistha Chakraborty
MemberHello,
If you turn-on the “Registration Form Custom Fields” enable, then the Additional info tab then will display in the profile manager.PFA
Make sureadd_filter('wcfmmp_is_allow_manage_registration_additional_infos', '__return_true');
this filter is true.Thanks.
Attachments:
You must be logged in to view attached files. - May 15, 2020 at 9:23 pm #131466
SebastianFloKa
Participantpriority low but would be really nice:
There’s now this cool widget (Meta-filter) for the store list sidebar in order to filter for registration form custom fields .
So with this it’s possible for customers to filter in store page for example by “store with shipping” and “physical store”. So depending on vendor choice during registration process the customer could find the corresponding store-type. So far an excellent feature!
The only point is, it makes sense to offer this “physical store” feature (or any other example) only to pcertain memebership group (e.g. premium) and not to all.
@Sarmistha Chakraborty
Is there any possibility to create a code either in functions.php, CSS or directly in the registration field (child-theme) such as “hide_registration_field_xyz_for_membership-#172, #173”?- May 15, 2020 at 9:36 pm #131468
Sarmistha Chakraborty
MemberHello,
What we understand do you want a custom field in vendor registration page for specific membership plan(group)? Please confirm.
Thanks.
- May 15, 2020 at 9:57 pm #131481
SebastianFloKa
Participantyes.
And in best-case it’s a “Registration Form Custom Field”, because this field is integrated into the WCFM widget called “Store List: Meta Filter” (see attached picture).Attachments:
You must be logged in to view attached files.- May 16, 2020 at 4:01 pm #131779
Sarmistha Chakraborty
MemberHello,
Add this code in your functions.php , replace membership id(80) with your membership id for registration custom field will display –
add_action('wcfm_membership_registration_form_before_dynamic_custom_fields',function(){ if(WC()->session->get('wcfm_membership') != 80) { echo '<div class="hide_vendor_custom_regfield">'; } }); add_action('wcfm_membership_registration_form_after_dynamic_custom_fields',function(){ if(WC()->session->get('wcfm_membership') != 80) { echo '</div>'; } }); add_filter('wcfmmp_is_allow_manage_registration_additional_infos', function($bool){ $current_plan = wcfm_get_membership(); if(isset($current_plan)) { $bool = ($current_plan!=80) ? false : true; } return $bool; });
And add this css in theme’s style.css –
.hide_vendor_custom_regfield { display: none !important; }
Make sure your custom field is not required field, then it will not feasible.
Thanks.
- May 16, 2020 at 5:55 pm #131816
SebastianFloKa
Participant@Sarmistha Chakraborty
Thank you so much for your effort and your fast reply and this proactive proposal. I tested your code and it generally works. But I fear there was a misunderstanding and I’m really sorry if this was caused by a lack of explanation on my side.Because your code let show ALL “Registration Form Custom Fields” to one membership-id. But the intention was to show some Registration Form Custom Field to all membership-id and some Registration Form Custom Fields only to certain membership-id. Based on your proposal I assume this is not possible, right?.
Example (corresponding with attached screenshot):
Registration Form Custom Field A: I have read and accept privacy policy –> checkbox (display to all membership-id)
Registration Form Custom Field B: Seller type: –> “select private or business (display to all membership-id)”
Registration Form Custom Field B: Shop type: –> select between “shipping” or “shipping + physical store showing contact information incl. pickup from store” –> only for premium membership.Attachments:
You must be logged in to view attached files.- May 16, 2020 at 10:51 pm #131944
Sarmistha Chakraborty
MemberHello,
By-default Our plugin does not have any filter/hook to customize this feature.
You can achieve this using some js code, and with the help of inspecting HTML elements (https://www.geeksforgeeks.org/chrome-inspect-element-tool-shortcut/
) PFA
Replace input[name=”wcfmvm_custom_infos[contact-information-incl-pickup-from-store] with your field attribute name (as per screenshot)-add_action('wp_footer',function(){ ?> <script type="text/javascript"> jQuery('.hide_vendor_custom_regfield input[name="wcfmvm_custom_infos[contact-information-incl-pickup-from-store]"]').prevAll().eq(1).css({"display": "none"}); </script> <?php });
Add the above code in your functions.php
And modify the css which we have provide you earlier –
.hide_vendor_custom_regfield input[name="wcfmvm_custom_infos[contact-information-incl-pickup-from-store]"]{ display: none !important; }
Thanks.
Attachments:
You must be logged in to view attached files.- May 16, 2020 at 11:11 pm #131959
SebastianFloKa
Participantjust asking: was it intended to post something “in private” so that it’s hided from me or this happended accidentially?
- May 16, 2020 at 11:42 pm #131975
Sarmistha Chakraborty
Member🙂 when we are reply to your post, we want you can see that post. It’s happened accidentally.
- May 17, 2020 at 2:24 am #132002
SebastianFloKa
Participant🙂
thanks so much. Unfortunately I didn’t succeed this time.
Registration starts with chosing membership plan but the registration page that comes afterwards still showing all fields no matter which membership plan was chosen before. Also tried to combine it with your first code you’ve sent, but I’m not good enough in coding. Will ask a pro later because I don’t want to spend too much of your time anymore. Particularly as long as I have roadblocker topics open that block me from going live at the moment and I’m struggling with WCFM to get this solved quickly.
If you don’t mind I’ll come back to this later again.
Until here I’m really thankfull for your time and that you took my question serious.- May 28, 2020 at 1:36 am #135981
SebastianFloKa
ParticipantHi @Sarmistha Chakraborty
if you don’t mind, after your other reply today here another idea how to solve to allow only premium vendors the “pickup from store”. Would it be possible to hide the fields “pickup from store” and “cost for pickup from store” to certain membership groups? I don’t know CSS but achieved to hide it for all vendors but not for specific membership group (in below example “Anbieter group”)? Do you have an idea how this could be achieved (e.g. using membership-id#?
dt.variation-Anbieter, p.wcfmmp_byc_enable_local_pickup, label[for=wcfmmp_byc_enable_local_pickup], input#wcfmmp_byc_enable_local_pickup
{
display: none !important;
}dt.variation-Anbieter, p.wcfmmp_byc_local_pickup_cost, label[for=wcfmmp_byc_enable_local_pickup], input#wcfmmp_byc_enable_local_pickup
{
display: none !important;
}- May 29, 2020 at 11:21 am #136426
Sarmistha Chakraborty
MemberHi,
We have already mentioned you #131779 in this reply, how to wrap those custom fields for a specific membership plan(membership-id).
In each membership plan URL, you will find the “membership-id”. Replace “80” with your membership plan id (#131779 reply).
Then modify your css like this –.hide_vendor_custom_regfield input#wcfmmp_byc_enable_local_pickup { display: none !important; }
Thanks.
- May 16, 2020 at 7:09 am #131633
jorsenmejia
Participanthow can I echo my custom input field? I want to show the result per user vendor for example
I add email I want to show it on the front side, Or I want to echo the result - May 16, 2020 at 7:19 am #131641
jorsenmejia
Participantfor example <?php echo $firstname ?>
- May 16, 2020 at 4:02 pm #131780
Sarmistha Chakraborty
MemberPlease check this thread – https://wclovers.com/forums/topic/custom-vendor-field/
Here is explained how to display custom field value.Thanks.
- May 16, 2020 at 5:58 pm #131818
jorsenmejia
ParticipantHow can I combine the store and profile page? please see attached file
Attachments:
You must be logged in to view attached files. - May 16, 2020 at 6:00 pm #131820
jorsenmejia
ParticipantI want to use the image on the registration page (Personal/Profile) for gravatar to show on a single product
- May 16, 2020 at 6:20 pm #131824
jorsenmejia
ParticipantOr how can I add custom fields in-store information?
- May 16, 2020 at 6:21 pm #131825
jorsenmejia
Participantwhen I try to become a vendor I want all fields that I fill up goes to store profile
- May 16, 2020 at 10:39 pm #131942
Sarmistha Chakraborty
MemberHello @jorsenmejia,
Regarding this – how can I add custom fields in-store information?
add_action('wcfmmp_store_after_sidebar_info','fn_wcfmmp_store_after_sidebar_info_1505'); function fn_wcfmmp_store_after_sidebar_info_1505($store_id) { $custom_fields = get_user_meta( $store_id, 'website',true); //replace "website" with your label field value (all in small letters) $field_name = 'Website'; //replace "website" with your label field value echo $field_name.': '.$custom_fields; }
Or
check here – https://wclovers.com/forums/topic/store-display-custom-fields/How can I combine the store and profile page?
I want to use the image on the registration page (Personal/Profile) for gravatar to show on a single product
when I try to become a vendor I want all fields that I fill up goes to store profile
>>Your requirement needs too many customizations,This is not possible using code snippet.
It requires serious custom development, and this will be a paid one.
Due to COVID-19 we are getting 400-500 more support tickets each day. So we aren’t taking any customizations at this moment. It will be better to find someone who is accustom with WP development. Any problem if you face any difficulty at the time of development we will guide you accordingly.Thanks.
- May 16, 2020 at 10:58 pm #131950
jorsenmejia
Participantnot working
Attachments:
You must be logged in to view attached files.- May 16, 2020 at 11:43 pm #131976
Sarmistha Chakraborty
MemberSorry, we did not get you. What is not working?
- May 16, 2020 at 11:51 pm #131978
jorsenmejia
Participant`add_action(‘wcfmmp_store_after_sidebar_info’,’fn_wcfmmp_store_after_sidebar_info_1505′);
function fn_wcfmmp_store_after_sidebar_info_1505($store_id) {
$custom_fields = get_user_meta( $store_id, ‘website’,true); //replace “website” with your label field value (all in small letters)
$field_name = ‘Website’; //replace “website” with your label field value
echo $field_name.’: ‘.$custom_fields;
}The code that you give to me I tried to insert in functions.php but nothing happens
- May 18, 2020 at 3:06 pm #132540
Sarmistha Chakraborty
MemberDo you replace “website” with your label field value? Please share us the screenshot your code.
Thanks.
- May 20, 2020 at 5:50 pm #133545
designitwise
ParticipantThe code doesn’t work either for me, please see screen shot what we trying to achieve
Attachments:
You must be logged in to view attached files.- May 22, 2020 at 12:53 pm #134094
Sarmistha Chakraborty
MemberHello,
Sorry, but which code is not working for you?
We haven’t share any code in this thread to add any custom field in the vendor settings page(as per your screenshot). This topic is related to the vendor registration form. Please create a different thread or relative thread for different issue.
Regarding your requirement check here – https://wclovers.com/forums/topic/add-a-new-custom-field-to-vendor-information/#post-121044Thanks.
- May 20, 2020 at 9:16 pm #133589
jorsenmejia
Participanthow can I move the profile URL to the registration page? input-fields?
- May 22, 2020 at 12:58 pm #134097
Sarmistha Chakraborty
MemberHi,
What is “profile URL”? Do you add “profile URL” from WCFM dashboard settings?
Unfortunately we have no feature move those fields from “Vendor Profile Manager” to “Vendor Settings” page.
You can add any custom field using code in “Vendor Settings” page.(https://wclovers.com/forums/topic/add-a-new-custom-field-to-vendor-information/#post-121044)Thanks.
- July 21, 2020 at 12:36 pm #153355
Ernesto Dionisio
Participanthow can I add profile photo on become a vendor form registration?
- AuthorPosts
- You must be logged in to reply to this topic.