How could i set shipping class for the vendor product?

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 – Ultimate How could i set shipping class for the vendor product?

Viewing 3 reply threads
  • Author
    Posts
    • #27894
      MOHO
      Participant

      I disable the shipping option of panels, then Venodr will no see shipping tab.

      When the vendor add new products, i hope set this new product as the shipping class of this vendor automatically.

      if this vendor user is mohotest3 , then choose mohotest3-94 class to product shipping class field.

      How could i make it?

      Attachments:
      You must be logged in to view attached files.
    • #27900
      WCFM Forum
      Keymaster

      Hi,

      If you disable “Shipping Capability ” for vendors then no class will be associated.

      Instead add this code –

      add_filter( 'wcfm_pm_block_class_shipping', function( $shipping_block_classes ) {
      	if( wcfm_is_vendor() ) {
      		return '';
      	} else {
      		return $shipping_block_classes;
      	}
      });

      It will disable that block but shipping class will associate.

      Thank You

    • #27902
      MOHO
      Participant

      Hi,

      If i disable “Shipping Capability ”

      your code will no work, right?

    • #27903
      WCFM Forum
      Keymaster

      Right, keep shipping capability on.

      But this code will not allow vendors to change shipping classes fro product manager.

      Thank You

Viewing 3 reply threads
  • The topic ‘How could i set shipping class for the vendor product?’ is closed to new replies.