Few issues

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 6 reply threads
  • Author
    Posts
    • #81052
      EK
      Participant

      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

    • #82252
      WCFM Forum
      Member

      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

    • #82305
      EK
      Participant

      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

    • #82502
      WCFM Forum
      Member

      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 );
    • #82630
      EK
      Participant

      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

    • #82895
      WCFM Forum
      Member

      Great … same to you 🙂

    • #137526
      claire-0118
      Participant

      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

Viewing 6 reply threads
  • You must be logged in to reply to this topic.