Menu order fix - by mleihs - on WordPress WooCommerce support

This topic has 4 replies, 2 voices, and was last updated 8 years, 1 months ago ago by Eva Kemp

  • Avatar: mleihs
    mleihs
    Participant
    March 14, 2016 at 09:55

    Hi,

    out developer provided another fix. Would you please pass that on to the developers for further evalution?

    Till wrote:
    — snip —
    others have asked for ways to specify product ordering in
    etheme_products shortcode:

    https://www.8theme.com/topic/woocommerce-products-grid-from-vc-does-not-honor-menu_order-sort/

    https://www.8theme.com/topic/etheme_products-shortcode-question-suggestion-regarding-order-by/

    https://www.8theme.com/topic/etheme_products-use-order-specified-in-list/

    i have implemented this feature in the following diff. please consider
    adding it to legenda.

    it will default to using menu_order but any valid ordering can be
    specified in the shortcode attributes.
    — snap —

    --- themes/legenda/framework/shortcodes.php	2015-12-23 14:46:16.000000000 +0100
    +++ themes/legenda-till/framework/shortcodes.php	2016-02-25 15:14:38.526808044 +0100
    @@ -398,6 +398,8 @@
             'columns' => 4,
             'shop_link' => 1,
             'limit' => 20,
    +        'orderby' => 'menu_order',
    +        'order' => 'ASC',
             'categories' => '',
             'block_id' => false,
             'type' => 'slider',
    @@ -416,6 +418,8 @@
             'ignore_sticky_posts'   => 1,
             'no_found_rows'         => 1,
             'posts_per_page'        => $limit,
    +        'orderby'               => $orderby,
    +        'order'                 => $order,
             'meta_query' => array(
                 array(
                     'key'       => '_visibility',

    Best regards

    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    March 14, 2016 at 12:34

    Hello,

    We’ve forwarded your fix to the developers.
    Thank you for letting us know.
    We’ll take this into account.

    Regards,
    Eva Kemp.

    Avatar: mleihs
    mleihs
    Participant
    March 14, 2016 at 16:33

    Thanks!

    Best regards

    Avatar: Eva
    Eva Kemp
    Support staff
    March 14, 2016 at 18:06

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.