Shipping Classes

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 11 reply threads
  • Author
    Posts
    • #24127
      dale
      Participant

      We are using WCMp and as you know it only provides one shipping class to the vendor but this is very limiting as the vendor needs different classes due to varied products and shipping destinations.

      I have been in touch with WCMp and they provided a function to allow the vendor to access all shipping classes available however it doesn’t work. It works with their core plugin but not with WCMFM. Are you able to provide a similar function that would work with WCFM?

    • #24143
      WCFM Forum
      Keymaster

      Hi,

      Kindly use this function for the purpose –

      function wcmarketplace_custom_product_shipping_class( $product_shipping_class ) {
      	$product_shipping_class = get_terms( 'product_shipping_class', array('hide_empty' => 0));
      	return $product_shipping_class;
      }
      add_filter( 'wcfm_product_shipping_class', 'wcmarketplace_custom_product_shipping_class', 150 );

      Thank You

    • #24152
      dale
      Participant

      Thank you. That works! Is it possible to modify it so it only shows shipping classes specified by the site admin? It now shows each vendor’s shipping class as well as the overall shipping classes set up in Woocommerce. If the site has 100 vendors this list is going to get very long!

    • #24162
      WCFM Forum
      Keymaster

      Hi,

      Yes off course, you may do anything with shipping classes in this function and return the allowed classes.

      Thank You

    • #24268
      dale
      Participant

      So can you modify the function so it doesn’t show all the vendors shipping classes?

    • #24270
      WCFM Forum
      Keymaster

      Hi,

      By default it was there like same, only returning logged in vendor’s shipping class.

      Can you please know me, which shipping classes you are looking to be here?

      Thank You

    • #24277
      dale
      Participant

      The shipping classes wanted are just the ones created by the site admin in Woocommerce. On the attached screenshot the ones marked in yellow are vendor shipping classes which we don’t want.

    • #24367
      dale
      Participant

      In case I wasn’t clear – after adding the function it shows ALL vendor’s shipping classes, not just the logged in vendor

    • #24416
      WCFM Forum
      Keymaster

      Hi,

      I have already give you code snippet for the purpose.

      Kindly modify that and add some filter/restriction to meet your exact requirement.

      Further customization on this comes under our paid service. If you are interested then we can do that for you.

      Thank You

    • #24421
      dale
      Participant

      Thank you. Our developer looked at it and can’t tell how you are differentiating the shipping entries and what the parameters are. What is your charge for customizing this?

    • #24429
      WCFM Forum
      Keymaster

      Hi,

      I am not very clear with this – “how you are differentiating the shipping entries and what the parameters are. ”

      What exactly you want to know?

      $product_shipping_class = get_terms( ‘product_shipping_class’, array(‘hide_empty’ => 0));

      It returns all WC shipping classes. You have to manipulate with this list and return only required once.

      By default, WCFM also do the same and return only vendor’s shipping class. But you want to have Admin added class as well, so just return those.

      Well, our development cost for this will be $100 USD.

      Thank You

    • #24998
      WCFM Forum
      Keymaster

      Hi,

      Any update on this?

      Please know me if you require any from me on this!

      Thank You

Viewing 11 reply threads
  • The topic ‘Shipping Classes’ is closed to new replies.