• Resolved MyCira

    (@mycira)


    In the plugin, WooCommerce Extra Product Sorting Options, I would like to set my sort order for Featured Products to the sort order that I set in my product admin.
    (I used this plugin code found at the link below to enable the sort order for featured Products. The one at the end of the post. Worked Great!)

    Would I change or add to this part of the php here, And what?
    case ‘featured_first’:
    $sort_args[‘orderby’] = ‘meta_value’;
    $sort_args[‘order’] = ‘desc’;
    $sort_args[‘meta_key’] = ‘_featured’;
    break;
    Your plugin works great, I just need the custom sorting to feature the products in a more enticing order.

    Thanks So Much and Love The Plugin!
    Aric

    MyCira.com

    https://wordpress.org/plugins/woocommerce-extra-product-sorting-options/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter MyCira

    (@mycira)

    Look like the link to the sort order plugin for Featured Products didn’t make it on my above post.

    Thread Starter MyCira

    (@mycira)

    Sorry it did! My Bad! made half the page the link 🙁

    Plugin Author Beka Rice

    (@bekarice)

    Hey @mycira, this depends on which version of WordPress you’re running. Are you running version 4.0 or newer?

    Plugin Author Beka Rice

    (@bekarice)

    So I’ve been meaning to release this update anyway, just pushed version 2.2.0. This adds the title as a fallback, so your products will be sorted by featured first, then by title. You must be running WordPress 4.0 and WooCommerce 2.2 or newer to upgrade.

    If you want to use your sorting order instead of title as the second sorting parameter, please see the FAQ, which shows you how to do this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sorting featured products by custom sort order’ is closed to new replies.