Azirspares 商品分類修改移除熱銷商品 | 獨角獸工坊 - SEO 優化 | 網站設計 | 網站架設
16353
post-template-default,single,single-post,postid-16353,single-format-standard,ajax_fade,page_not_loaded,,vertical_menu_enabled,qode_grid_1300,side_area_uncovered_from_content,qode-theme-ver-12.0.1,qode-theme-bridge,wpb-js-composer js-comp-ver-5.4.2,vc_responsive

Azirspares 商品分類修改移除熱銷商品

Azirspares 商品分類修改移除熱銷商品

Azirspares 商品分類修改移除熱銷商品

在版型 Azirspares 中,單一商品的分類中會看到上方會有個熱銷商品的欄位優先於分類商品列表

Azirspares 商品分類修改移除熱銷商品

開啟 azirspares\framework\woocommerce\template-functions.php 找到第 719 ~ 733 行

<div class="categories-product-woo">
<?php echo wp_specialchars_decode( $category_html ); ?>
<div class="product-grid product-bestseller">
<div class="block-title">
<h2 class="product-grid-title">
<span><?php echo esc_html__( 'Bestseller Products', 'azirspares' ); ?></span>
</h2>
<a href="<?php echo get_permalink( get_option( 'woocommerce_shop_page_id' ) ); ?>">
<?php echo esc_html__( 'Shop more', 'azirspares' ); ?>
<span class="fa fa-angle-right"></span>
</a>
</div>
<?php echo do_shortcode( '[azirspares_products product_style="01" product_image_size="320x320" productsliststyle="owl" target="best-selling" per_page="6" owl_slide_margin="40" owl_dots="true" owl_ls_items="' . $woo_ls_items . '" owl_lg_items="' . $woo_lg_items . '" owl_md_items="' . $woo_md_items . '" owl_sm_items="' . $woo_sm_items . '" owl_xs_items="' . $woo_xs_items . '" owl_ts_items="' . $woo_ts_items . '" azirspares_custom_id=""]' ); ?>
</div>
</div>

把這串程式碼拿掉,記得備份即可。