內容簡介
顯示您在 WooCommerce 中最暢銷的產品清單於小工具或短代碼中。只需將小工具新增到側邊欄或小工具區,自訂設定即可完成清單的建立。
小工具選項
標題-在您的產品清單中新增標題。
類別-從所有 WooCommerce 產品類別的動態下拉式清單中選擇一個或多個。選擇包含或排除特定類別。
顯示產品數量-顯示全部產品或只顯示特定數量的產品。
縮圖-顯示產品縮圖。
星級評價-全新!顯示產品的平均星級評價。
短代碼選項
只需在文章或頁面中加入 [woobsp] 短代碼,即可顯示您的熱銷商品。選項如下:
* category='shirts'-從哪些類別顯示產品。您可以透過逗號分隔多個類別,如 shirts,hats,shoes。可接受類別標籤或 ID(預設值:所有類別)
* posts='2'-清單中要顯示多少產品(預設值:3)
* thumbnail='yes'-在清單中顯示產品縮圖(預設值:否)
* NEW!stars='yes'-顯示產品的平均星級評價(預設值:否)
完整短代碼範例:[woobsp category='shirts,shoes' posts='5' thumbnail='yes' stars='yes']
即將推出-使用短代碼排除特定類別。
外掛標籤
開發者團隊
② 後台搜尋「Best Selling Products for WooCommerce」→ 直接安裝(推薦)
原文外掛簡介
Display a list of your best selling WooCommerce products in a widget or shortcode. Simply add the widget to a sidebar or widget area, customise the settings and your list is created.
Widget Options
Title – Add a title to your product list.
Category – Choose one or multiple from a dynamically loaded drop down list of all WooCommerce product categories available on your website. Choose to include or exclude specific categories.
Products Shown – Show all products or only show a certain number.
Thumbnail – Show the product thumbnail.
Star Rating – NEW! Show product average star rating.
Shortcode Options
Simply include the [woobsp] shortcode into your posts or pages to show your best sellers. Options include:
* category='shirts' – Which categories to show product from. You can insert multiple categories by separating with a comma e.g. shirts,hats,shoes. Accepts the category slug or ID (Default: All Categories)
* posts='2' – How many products to show in your list (Default: 3)
* thumbnail='yes' – Show the product thumbnail in the list (Default: No)
* NEW! stars='yes' – Show the product’s average star rating (Default: No)
Full shortcode example: [woobsp category='shirts,shoes' posts='5' thumbnail='yes' stars='yes']
COMING SOON – Choose to exclude specific categories using the shortcode.
