Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › How could i set shipping class for the vendor product?
- This topic has 3 replies, 2 voices, and was last updated 5 years, 9 months ago by WCFM Forum.
- AuthorPosts
- August 8, 2018 at 5:59 am #27894MOHOParticipant
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. - August 8, 2018 at 6:35 am #27900WCFM ForumKeymaster
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
- August 8, 2018 at 7:00 am #27902MOHOParticipant
Hi,
If i disable “Shipping Capability ”
your code will no work, right?
- August 8, 2018 at 7:07 am #27903WCFM ForumKeymaster
Right, keep shipping capability on.
But this code will not allow vendors to change shipping classes fro product manager.
Thank You
- AuthorPosts
- The topic ‘How could i set shipping class for the vendor product?’ is closed to new replies.