Tagged: dropdown, Product, sort, woocommerce
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 ?
Hey tamasmoroz,
Please refer to the following article on customizing the sort options:
Best regards,
Jordan Shannon
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.
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