Replies: 0
Hi, I converted my default woocommerce dropdown sorting to list style, How can I add support to this code your plugin ajax function?
<div class="wrapper-dropdown">
<ul class="dropdown">
<?php
$catalog_orderby = apply_filters( 'woocommerce_catalog_orderby', array(
'popularity' => __( 'Populyarlar', 'woocommerce' ),
'date' => __( 'Ən yeniləri', 'woocommerce' ),
'price' => __( 'Ucuzdan bahalıya', 'woocommerce' ),
'price-desc' => __( 'Bahalıdan ucuza', 'woocommerce' )
) );
if ( get_option( 'woocommerce_enable_review_rating' ) == 'no' )
unset( $catalog_orderby['rating'] );
foreach ( $catalog_orderby as $id => $name )
echo '<li><a href="' . get_permalink( woocommerce_get_page_id( 'shop' ) ) . '?orderby=' . $id . '" >' . esc_attr( $name ) . '</a></li>';
?>
</ul>
</div>