vendor settings

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 10 reply threads
  • Author
    Posts
    • #126184
      masa
      Participant

      how can i Sort field items?

      Attachments:
      You must be logged in to view attached files.
    • #126580
      Sushobhan
      Keymaster

      Hi,
      Thanks for getting in touch with us!
      There are filters to change the field order, though sometimes the fields are in groups and then can only be sorted within that group.
      Please provide me the order in which you want these fields and I’ll help you accordingly.
      Thanks!

    • #126607
      masa
      Participant

      hi

      thank you for your support.
      please check for 2pages.

      this is for japanese

      ・for re/vendor-register/

      user_email
      password
      password
      store_name
      phone
      last_name
      fisrst_name
      country(delete)
      zip
      state
      city
      addr_1
      addr_2
      custom field

      ・for t/?store-setup=yes&step=support
      vendor_customer_email
      vendor_customer_phone
      country(delete)
      zip
      state
      city
      addr_1
      addr_2

    • #126922
      Sushobhan
      Keymaster

      Hi,
      To change the fields order in registration page, please override the template wc-multivendor-membership\templates\vendor_registration.php inside your child themes folder under the path [child theme folder]/wcfm/membership/vendor_registration.php.
      And for the support field orders use the following snippet-

      add_filter( 'wcfm_wcmarketplace_settings_fields_customer_support', function($fields) {
          $new_fields = array();
          if ( isset( $fields["vendor_customer_email"] ) )
              $new_fields["vendor_customer_email"] = $fields["vendor_customer_email"];
          if ( isset( $fields["vendor_customer_phone"] ) )
              $new_fields["vendor_customer_phone"] = $fields["vendor_customer_phone"];
          if ( isset( $fields["vendor_csd_return_country"] ) ) {
              $new_fields["vendor_csd_return_country"] = $fields["vendor_csd_return_country"];
              $new_fields["vendor_csd_return_country"]["type"] = 'hidden';
          }
          if ( isset( $fields["vendor_csd_return_zip"] ) )
              $new_fields["vendor_csd_return_zip"] = $fields["vendor_csd_return_zip"];
          if ( isset( $fields["vendor_csd_return_state"] ) )
              $new_fields["vendor_csd_return_state"] = $fields["vendor_csd_return_state"];
          if ( isset( $fields["vendor_csd_return_city"] ) )
              $new_fields["vendor_csd_return_city"] = $fields["vendor_csd_return_city"];
          if ( isset( $fields["vendor_csd_return_address1"] ) )
              $new_fields["vendor_csd_return_address1"] = $fields["vendor_csd_return_address1"];
          if ( isset( $fields["vendor_csd_return_address2"] ) )
              $new_fields["vendor_csd_return_address2"] = $fields["vendor_csd_return_address2"];
          return $new_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/
      Let me know how this goes.
      Thanks!

    • #127165
      masa
      Participant

      WP shows error message.

      will you check please?

      Masa

      Attachments:
      You must be logged in to view attached files.
    • #127636
      Sushobhan
      Keymaster

      Hi,
      If possible, please use a ftp to edit your functions.php. In you file all the " and ' gets changed to html entities like ". You need to fix this.
      Thank you!

    • #127646
      masa
      Participant

      thank you so much

      i added by socde snippet plugin.

    • #127661
      masa
      Participant

      How can i sort for Setup wizard?

      Attachments:
      You must be logged in to view attached files.
    • #127686
      Sushobhan
      Keymaster

      Please send me the ordering of the fields to suggest you the right way. Thanks!

    • #127694
      masa
      Participant

      sorting is ok now.
      but STATE selector not showing any state.

      how can i show Japanese State selector?

    • #127700
      Sushobhan
      Keymaster

      Hi,
      Please edit the country portion of the previous code like the following-

      if ( isset( $fields["vendor_csd_return_country"] ) ) {
          $new_fields["vendor_csd_return_country"] = $fields["vendor_csd_return_country"];
          $new_fields["vendor_csd_return_country"]["value"] = 'JP';
          $new_fields["vendor_csd_return_country"]["type"] = 'hidden';
      }

      It should do the trick. Sorry I can’t test this on my side now. Let me know if that helps.
      Thank You!

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