• Resolved maxgx

    (@maxgx)


    it’s likely that users nowadays rely on custom ordering plugins to help with the ordering of WC products, so it’d be good to have “menu_order” added to the “orderby” options.

    i’ve added this:

    <option value="menu_order" <?php if($wcps_query_orderby=="menu_order") echo "selected"; ?>><?php _e('Menu Order ',wcps_textdomain);?></option>

    to /includes/meta.php

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author PickPlugins

    (@pickplugins)

    Thanks for report the issue.

    Hope next version will bring this feature.

    Regards

    Plugin Author PickPlugins

    (@pickplugins)

    Hi, please check the latest version I have added menu order on the list.

    View post on imgur.com

    Let me know the result after update.

    Regards

    Thread Starter maxgx

    (@maxgx)

    that’s brilliant, thanks!

    strangely i still don’t get the update nag in plugins, i see version 1.12.10 but no update request, but i guess i can just download the new one and replace it.

    one other thing i forgot to ask you is if it’s possible to change to the output of the categories, so to remove the last comma from the list.
    what i’ve done in /woocommerce-products-slider/templates/wcps-category.php is to change the foreach:

    	foreach($product_cats as $key => $cat)
    		{
    		
    		$cat_link = get_term_link( $cat->term_id, 'product_cat' );					
    		$cat_name = $cat->name;
    			
    		$cat_html.= '<a href="'.$cat_link.'">'.$cat_name.'</a>, ';
    		}

    into:

    	foreach($product_cats as $key => $cat)
    		{
    		$cat_link = get_term_link( $cat->term_id, 'product_cat' );					
    		$cat_name = $cat->name;
    		$cat_html.= '<a href="'.$cat_link.'">'.$cat_name.'</a>';
    		if ($i !== $len - 1)
    			{
    			$cat_html.= ', ';
    			}
    		$i++;
    		}

    hope that’s fine.

    Thread Starter maxgx

    (@maxgx)

    sorry, forgot two lines:

    	$i = 0;
    	$len = count($product_cats);

    to be placed before the foreach loop…

    Thread Starter maxgx

    (@maxgx)

    tested new version, “Query orderBy – Menu order” is there ok, but something is not working as expected: i keep changing “Query order” between Ascending and Descending, but nothing changes, i always get the oldest first.

    what else can i try?

    Thread Starter maxgx

    (@maxgx)

    ok, found it out:

    there’s a ‘Sort Products’ link on top of the ‘Products’ list, and that’s the one that sets the order…

    all working then!

    Plugin Author PickPlugins

    (@pickplugins)

    Thanks for the update.

    i will update the next version for comma issue.

    Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘please add menu_order to orderby options’ is closed to new replies.