Viewing 5 replies - 1 through 5 (of 5 total)
  • @ownyou add follows code snippet in your active theme’s functions.php –
    add_filter('wcmp_vendor_list_enable_store_locator_map', '__return_false');

    Thread Starter OwnYou

    (@ownyou)

    ok ,thanks can you tell me how to also delete sorting and set one alphabetically by default?

    @ownyou add follows code in your active theme’s functions.php –

    function wcmp_vendor_list_vendor_sort_type( $sort_types ){
    	return array( 'name' => __('By Alphabetically', 'dc-woocommerce-multi-vendor') );
    }
    add_filter( 'wcmp_vendor_list_vendor_sort_type', 'wcmp_vendor_list_vendor_sort_type' );

    And replace your shortcode with [wcmp_vendorslist orderby="name"] to make default by name.

    Thread Starter OwnYou

    (@ownyou)

    ok, but the sort button is still displayed

    @ownyou, we thought that you want to unset the others sortable filters. So, in order to hide sorting section, just paste the follows code snippet –

    add_action('wp_footer', 'add_styles_for_vendor_list');
    function add_styles_for_vendor_list(){
        $style = '.vendor_sort select#vendor_sort_type, .vendor_sort input[type="submit"] {
            display: none;
        }';
        wp_add_inline_style('wcmp_vendor_list', $style);
    }

    And there is no needs of above wcmp_vendor_list_vendor_sort_type filter code. you can remove that one.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘vendors list map delete’ is closed to new replies.