Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11993

    Hi

    I have created a couple of pages with the Abundance ‘Template Builder’ – and have added ‘Products’ to these pages

    see here http://www.headphonehub.co.uk/learn/gear-guides/the-best-iphone-headphones-earphones-accessories/

    That page is made up of

    1. Page Content

    2. Custom Line

    3. Product Category

    4. Custom Line

    5. Product Category

    I want to sort the products by lowest price first for each of the categories on that page

    can it be done? please help!

    Thanks

    #73857

    Hey!

    I marked this thread for Kriesi – maybe he knows a solution. I’m not aware of an easy/clever solution to achieve this without rewriting the product query function.

    Regards,

    Peter

    #73858

    Hi,

    can you please write here where product query function located in theme?

    So I can make a work around for a while.

    and there is another issue: now woocommerce supports custom sortings. So default sorting in catalog is differ from your widget.

    Regards, Vladimir

    #73859

    The code can be found in abundance/includes/helper-templates.php. If you want to add the new menu order feature to the “Products” elements code replace:

    'posts_per_page' => $shop_item_count,
    'orderby' => 'id',
    'order' => 'desc',

    with:

    'posts_per_page' => $shop_item_count,
    //'orderby' => 'id',
    'orderby' => 'menu_order',
    //'order' => 'desc',
    'order' => 'ASC',

    #73860

    Hey!

    noted. will see if I can implement the woocommerce custom sorting option :)

    Regards,

    Kriesi

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Sorting Products in Custom Pages Built in 'Template Builder'’ is closed to new replies.