按价格排序表格

问题描述

我在按 table-row 而不是认的 priceproduct_id 进行排序时遇到了一些问题。 有人有什么想法吗?

<div class="table-row <?PHP echo ( $list->product_id == $product->get_id() ) ? 'active' : ''; ?>">
    <div class="table-cell vendor">
        <?PHP echo get_avatar( $post_author_id,52 ); ?>
        <a href="<?PHP echo dokan_get_store_url( $post_author_id ); ?>"><?PHP echo $seller_info['store_name'] ?></a>
    </div>
    <div class="table-cell price">
        <span class="cell-title"><?PHP _e( 'Price','dokan' ); ?></span>
        <?PHP echo $product_obj->get_price_html(); ?>
    </div>
    <div class="table-cell rating">
        <span class="cell-title"><?PHP _e( 'rating','dokan' ); ?></span>
        <div class="woocommerce-product-rating">
            <?PHP echo wc_get_rating_html( $average,$rating_count ); ?>
            <?PHP if ( comments_open() ) : ?><a href="#reviews" class="woocommerce-review-link" rel="nofollow">(<?PHP printf( _n( '%s customer review','%s customer reviews',$review_count,'dokan' ),'<span class="count">' . esc_html( $review_count ) . '</span>' ); ?>)</a><?PHP endif ?>
        </div>
    </div>
</div>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)