2011-12-11 01:10:24 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Sorting
|
|
|
|
*/
|
|
|
|
?>
|
2012-02-15 20:27:40 +00:00
|
|
|
<form class="woocommerce_ordering" method="POST">
|
2012-02-10 22:15:29 +00:00
|
|
|
<select name="sort" class="orderby">
|
2011-12-11 01:10:24 +00:00
|
|
|
<?php
|
|
|
|
$catalog_orderby = apply_filters('woocommerce_catalog_orderby', array(
|
2012-05-08 19:30:18 +00:00
|
|
|
'menu_order' => __('Default sorting', 'woocommerce'),
|
|
|
|
'title' => __('Sort alphabetically', 'woocommerce'),
|
|
|
|
'date' => __('Sort by most recent', 'woocommerce'),
|
|
|
|
'price' => __('Sort by price', 'woocommerce')
|
2011-12-11 01:10:24 +00:00
|
|
|
));
|
|
|
|
|
2012-05-08 19:30:18 +00:00
|
|
|
foreach ( $catalog_orderby as $id => $name )
|
|
|
|
echo '<option value="' . $id . '" ' . selected( $_SESSION['orderby'], $id, false ) . '>' . $name . '</option>';
|
2011-12-11 01:10:24 +00:00
|
|
|
?>
|
|
|
|
</select>
|
|
|
|
</form>
|