• Resolved cris123pp

    (@cris123pp)


    How can I hide the processing time that appears on the product edit page? Deactivate shipping and it still appears.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter cris123pp

    (@cris123pp)

    ???

    I’d also like to know this – found lots of threads on the old forum for how to change the options, but none for how to remove the field altogether.

    Plugin Author WC Lovers

    (@wclovers)

    You have to add this snippet to your site –

    add_filter( 'wcfmmp_product_manager_shipping_processing_fileds', function( $processing_fileds ) {
      if( isset( $processing_fileds['_wcfmmp_processing_time'] ) ) {
      	$processing_fileds['_wcfmmp_processing_time'] = array();
      }
      return $processing_fileds;
    }, 50 );

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin – https://wordpress.org/plugins/code-snippets/

    Hi,

    Thanks, but that didn’t work. Processing Time still appears in the Shipping menu of the dashboard and the corresponding message about ‘item will be shipped in X days’ appears n the product page.

    I tried amending your code in case it was the typo of ‘fields’ that was causing the issue, but it still didn’t work.

    `add_filter( ‘wcfmmp_product_manager_shipping_processing_fields’, function( $processing_fields ) {
    if( isset( $processing_fields[‘_wcfmmp_processing_time’] ) ) {
    $processing_fields[‘_wcfmmp_processing_time’] = array();
    }
    return $processing_fields;
    }, 50 );`

    Please help!

    Plugin Author WC Lovers

    (@wclovers)

    How can I hide the processing time that appears on the product edit page?

    I had shared code only for this part.

    This code has no effect on any other area. Code is perfect, don’t change anything.

    This code worked for me:

    `add_filter(‘wcfmmp_settings_fields_shipping’, function( $fields, $user_id, $wcfmmp_shipping) {

    global $WCFM, $WCFMmp;

    if(isset($fields[‘wcfmmp_pt’])){

    $fields[‘wcfmmp_pt’] = array(‘required’ => ‘true’);

    }

    return $fields;

    }, 10, 3);`

    Plugin Author WC Lovers

    (@wclovers)

    This code is for settings section processing time field.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Hide processing time’ is closed to new replies.