Separate Woo 'Selling Countries' and 'Vendor Registration Country'

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!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM Separate Woo 'Selling Countries' and 'Vendor Registration Country'

Viewing 3 reply threads
  • Author
    Posts
    • #121800
      shenom.net
      Participant

      Hi.

      We like to use WCFM in a slightly different way. We have artists (vendors) all over the world – but selling products / shipment just starts in one country. So – it seems that the list of countries that a vendor can choose by registration is the same as selling / shipment Woo country list.

      Is there a way to get these separated?

      Cheers / Sascha

    • #121891
      Sushobhan
      Keymaster

      Hi,
      You could set Selling location(s) to “all countries” and restrict Shipping location(s) to some specific countries. Then it will allow vendors to choose from all the countries.
      Thanks!

    • #122003
      shenom.net
      Participant

      Hi.
      Thx for the fast reply!
      That looks like a quick fix – but finally it´s not a solution. This way we must force our customers to fill out both – the invoice and shipping fields. Also it´s confusiong – as for the first part (the invoice fields) it looks to the customer as he could order from any country of the world and then get´s disapointed in the shipping section.
      Is there any known way to handle the data of the user ‘vendor’ different from ‘ordinary’ customers? Set different Woo country setting for each of them?

    • #122066
      Sushobhan
      Keymaster

      Hello,
      When we populate that vendor country, we fetch the data from existing WooCommerce settings. It can be of of the following-
      1. Allowed Selling location(s) (default)
      2. Allowed Shipping locations

      So current you have 2 options, you could set Selling location(s) to “all countries” and restrict Shipping location(s) to some specific countries. Then it will allow vendors to choose from all the countries.

      Or set Selling location(s) to some specific countries and allow Shipping location(s) to “all countries”.

      Can you use the 2nd option for your purpose? As Admin you can choose your shipping regions and thus vendors will not be able to ship outside of the allowed regions! Then, to change the Country field setting you will need to use the following snippet-

      add_filter( 'wcfm_marketplace_settings_fields_address', function($address_field) {
          if(isset($address_field['country'])) {
              $address_field['country']['wcfmmp_shipping_country'] = true;
          }
          return $address_field;
      });

      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 it goes.
      Thanks!

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