Hide Shipping Class from Vendor at front end

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 1 reply thread
  • Author
    Posts
    • #88252
      tasost
      Participant

      Is there any way to remove shipping class option from vendor?

      I tried this one https://wclovers.com/forums/topic/how-could-i-hide-shipping-class-cost-at-shipping-fee-area/#post-48346

      but didnt work.

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

      HI,

      Please add this code to yoru site for the purpose –

      add_filter( 'wcfm_product_manage_fields_shipping', function( $shipping_fields, $product_id ) {
      	$shipping_fields = wcfm_hide_field( 'shipping_class', $shipping_fields );
      	return $shipping_fields;
      }, 50, 3 );

      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/

      Thank You

Viewing 1 reply thread
  • The topic ‘Hide Shipping Class from Vendor at front end’ is closed to new replies.