Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #969679

    Hi,
    Working on a custom Sort By – Dropdown for a page, and I’ve found this link which is very helpful : https://kriesi.at/support/topic/woocommerce-sort-by-dropdown/ and works like a charm.

    Now the : $product_order[‘price’] , shows products from Low to high ( ascending order ) , I would like to add from High to Low as well to the dropdown.( descending order ).

    Can somebody help with this ?

    #969738

    Hey tamasmoroz,

    Please refer to the following article on customizing the sort options:

    How to Customize the WooCommerce Sorting Dropdown

    Best regards,
    Jordan Shannon

    #969764

    Hey thanks for the link, but I was wondering if there is a simple version of adding just a $product_order and a li item , similar to the rest of the list items.
    I’ve tried :

    $product_order[‘default’] = __(“Recommended”,’avia_framework’);
    $product_order[‘price’] = __(“Price Low to High”,’avia_framework’);
    $product_order[‘price-desc’] = __(“Price High to Low”,’avia_framework’);
    $product_order[‘date’] = __(“New In”,’avia_framework’);

    All work , beside the [price-desc], any idea why it’s not working ?

    Thanks.

    #970730

    Hi tamasmoroz,

    This solution has options to sort both ways, why do you need a separate sort option?
    https://kriesi.at/support/topic/woocommerce-sort-by-dropdown/#post-425053

    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.