Mit folgender Funktion in der functions.php des Themes kann man die Sortierkriterien im WooCommerce Shop ändern
1 2 3 4 5 6 7 8 9 10 11 |
<?php // Modify the default WooCommerce orderby dropdown // // Options: menu_order, popularity, rating, date, price, price-desc // In this example I'm removing price & price-desc but you can remove any of the options function my_woocommerce_catalog_orderby( $orderby ) { unset($orderby["price"]); unset($orderby["price-desc"]); return $orderby; } add_filter( "woocommerce_catalog_orderby", "my_woocommerce_catalog_orderby", 20 ); |
Schreibe einen Kommentar