Support » Plugin: PW WooCommerce Bulk Edit » Timesaver

  • After installing another plugin for youtubevideo i had to fill in the url on other spots in the productfiled. For more than 100 products this plugin did the trick so save us a lot of time !!
    Great plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter michello50

    (@michello50)

    Is there a way to organise the fields the way i want ?
    The fields i had to edit was far to the right, it should be great if i could move them to the left to see for what product i was editing.
    Michel.

    Plugin Author pimwick

    (@pimwick)

    Follow these instructions to customize the column order:

    1. Download the functions.php from your FTP server at /wp-content/themes/<your theme>/functions.php
    2. Keep a backup of functions.php in case there are problems.
    3. Edit functions.php and scroll to the very end and add this code.

    Note: if the last line is “?>” then put this code *above* that line. Otherwise, this code goes at the very end of the file:

    function pw_bulk_edit_custom_column_order( $columns ) {
        // Specify the order that you want the first columns to be in.
        $new_order = array(
            'Product name',
            'Type',
            'Status',
            'Sale end date',
            'Sale price',
            'Area attributes',
            // Everything else will appear in the original order after these columns
        );
    
        $first = array_fill( 0, count( $new_order ), '' );
        for ( $x = 0; $x < count( $columns ); $x++ ) {
            $custom_index = array_search ( $columns[$x]['name'], $new_order );
            if ( $custom_index !== false ) {
                $first[ $custom_index ] = $columns[$x];
                unset( $columns[$x] );
            }
        }
    
        return array_merge( $first, $columns );
    }
    add_filter( 'pwbe_product_columns', 'pw_bulk_edit_custom_column_order', 11 );

    4. Save the functions.php file and re-upload it to your server.

    If you have any problems, replace functions.php with your backup file.

    Let me know if you have any questions!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Timesaver’ is closed to new replies.