Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Few issues
Tagged: migration flat rate media tab
- This topic has 6 replies, 3 voices, and was last updated 4 years, 5 months ago by claire-0118.
- AuthorPosts
- September 10, 2019 at 4:24 pm #81052EKParticipant
Hi,
During testing we found a few issues:
1. Can you please tell us how to make first name and last name mandatory in the vendor registration form?
2. Can you please tell us how to add placeholder text in the registration form fields?
3. Can you please tell how to implement meta description word limit to ensure good and consistent SEO. Admin should be able to control the number since it keeps changing as per google norms. We are talking about store–>settings–>seo where under general tab, vendor can fill up meta description. Without the limit, site seo is impacted negatively.
4. Migrated vendor’s media tab is empty. This issue happens if admin uploaded/created the products and then allocated them to vendor in other multi-vendor plugins before migration. We used to be with wcmp where admin created initial products and allocated them to vendors. Is there any way to show vendor product images under vendor media tab for migrated vendors?
5. Flat rate for vendor does not take formulas eg: 10 + ( 2 * [qty] ). Only numbers and no minus or plus signs is accepted in the cost field. Therefore, is it possible in your plugin to calculate flat rate based on quantity.(Vendor shipping option set to zone and flat rate is offered as shipping method for the zone. Vendor cannot put formulas if they try to enter formula under cost while editing flat rate settings)
Thanks a lot for your attention to the points above.
Best Regards,
AK - September 18, 2019 at 9:16 am #82252WCFM ForumMember
HI,
1. Can you please tell us how to make first name and last name mandatory in the vendor registration form?
– Please add this code to your site –
add_filter( 'wcfm_membership_registration_fields', function( $registration_fields ) { if( isset( $registration_fields['first_name'] ) ) { $registration_fields['first_name']['custom_attributes'] = array( 'required' => 1 ); } if( isset( $registration_fields['last_name'] ) ) { $registration_fields['last_name']['custom_attributes'] = array( 'required' => 1 ); } return $registration_fields; }, 50 );
2. Can you please tell us how to add placeholder text in the registration form fields?
– Possible to add like above code. Please know me your desired placeholders, I will give you code for that.
3. Can you please tell how to implement meta description word limit to ensure good and consistent SEO. Admin should be able to control the number since it keeps changing as per google norms. We are talking about store–>settings–>seo where under general tab, vendor can fill up meta description. Without the limit, site seo is impacted negatively.
– Add this code for the purpose. You may change “maxlength” property as per your requirement –
add_filter( 'wcfm_vendors_settings_fields_seo', function( $seo_fields, $user_id ) { if( isset( $seo_fields['wcfmmp-seo-meta-desc'] ) ) { $seo_fields['wcfmmp-seo-meta-desc']['attributes'] = array( 'maxlength' => 155 ); } return $seo_fields; }, 50, 2 );
4. Migrated vendor’s media tab is empty. This issue happens if admin uploaded/created the products and then allocated them to vendor in other multi-vendor plugins before migration. We used to be with wcmp where admin created initial products and allocated them to vendors. Is there any way to show vendor product images under vendor media tab for migrated vendors?
– Well, if media does not added by vendor then it will not consider as that vendor’s media!
5. Flat rate for vendor does not take formulas eg: 10 + ( 2 * [qty] ). Only numbers and no minus or plus signs is accepted in the cost field. Therefore, is it possible in your plugin to calculate flat rate based on quantity.(Vendor shipping option set to zone and flat rate is offered as shipping method for the zone. Vendor cannot put formulas if they try to enter formula under cost while editing flat rate settings)
– We will take care of this in next update
Thank You
- September 18, 2019 at 5:49 pm #82305EKParticipant
Thank you for the codes. The codes work.
3. Is there a way to add a placeholder text to tell vendor the limit so he knows. Is there any anyway to edit the text in the “question mark” that appears beside ‘meta description’? We can add a few instructions for better SEO ? Wonderful initial code btw 🙂
2. We will finalize the registration in production and write to you for the codes.
4. We will modify our procedures to respect this.
For all the other points, thank you very much for helping to resolve. We will wait for the update fix.
Best Regards,
AK
- September 19, 2019 at 6:37 pm #82502WCFM ForumMember
Hi,
Use this code ans add your hints and placeholder here –
add_filter( 'wcfm_vendors_settings_fields_seo', function( $seo_fields, $user_id ) { if( isset( $seo_fields['wcfmmp-seo-meta-desc'] ) ) { $seo_fields['wcfmmp-seo-meta-desc']['hints'] = 'YOUR HINTS HERE'; $seo_fields['wcfmmp-seo-meta-desc']['placeholder'] = 'YOUR PLACEHOLDER HERE'; } return $seo_fields; }, 50, 2 );
- September 20, 2019 at 2:26 pm #82630EKParticipant
Just perfect 🙂 Everything is working. Excellent codes 🙂
I will give you the fields in point 2 (Registration form) next week when we re-launch production with your plugin after migration. Have a nice weekend.
Best Regards,
AK - September 22, 2019 at 12:50 pm #82895WCFM ForumMember
Great … same to you 🙂
- June 2, 2020 at 6:14 am #137526claire-0118Participant
This is great information! – thank you.
I hope you are all safe and well following cyclone Amphan.
When you have a moment, can you please share how to add placeholder text within policies settings and both product short and long product description fields?Thanks in advance
Claire
- AuthorPosts
- You must be logged in to reply to this topic.