這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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.

螢幕截圖

  • Widget settings
  • Product list in website sidebar
  • Shortcode example

安裝

Best Selling Products for WooCommerce requires the WooCommerce plugin (at least version 3.0.0) to be installed.

Via WordPress

  1. From the WordPress Dashboard, go to Plugins > Add New
  2. Search for ‘Best Selling Products for WooCommerce’ and click Install. Then click Activate.
  3. Go to Appearance > Widgets, and add the ‘Best Selling Products Widget for WooCommerce’ widget to a widget area.
  4. Customise the settings: Title, Category, Products Shown, Thumbnail.

Manual

  1. Upload the folder /woo-best-selling-products/ to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to Appearance > Widgets, and add the ‘Best Selling Products Widget for WooCommerce’ widget to a widget area.
  4. Customise the settings: Title, Category, Products Shown and Thumbnail.

常見問題

What does the widget/shortcode do?

The Best Selling Products for WooCommerce plugin shows a list of your store’s best selling WooCommerce products. You choose what categories to include or exclude, how many products should be shown, and if you want the product thumbnail and average star rating shown or not. Simple.

How do I use the shortcode?

Include the [woobsp] shortcode into your post or page. Parameters include:
* category='shirts' – Only show products from specific categories. You can insert multiple categories by separating with a comma e.g. shirts,hats,shoes. Accepts the category slug or category ID. (Do not include to use the default setting: Show products from all categories)
* posts='2' – How many products to show in your list. (Do not include to use the default setting: 3 products)
* thumbnail='yes' – Show the product thumbnail in the list. (Do not include to use the default setting: Don’t show thumbnails)
* stars='yes' – Show the product’s average star rating (Default: No)

Full shortcode example: [woobsp category='shirts,shoes' posts='5' thumbnail='yes' stars='yes']

Can I use the shortcode in template files?

Yes, simply use the special WordPress do_shortcode() function and add your parameters if required.

For example: echo do_shortcode( '[woobsp]' );

評價

2019年4月19日
This plugin is awesome. It’s super lightweight, easy to style with CSS, and does what it says on the tin! In my case I must hide a few product categories from public view since the products are for wholesale customers only. This plugin is very flexible in terms of what product categories you can choose to show or hide in your best sellers list. Superb job!
閱讀全部3個評價

貢獻者及開發者

“Best Selling Products for WooCommerce” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

修改日誌

1.3.1

  • Fix for removal of dev line left in

1.3.0

  • Plugin name update
  • Settings issue fix
  • Compatibility version updates

1.2.0

  • Category list now shows all hierarchy levels
  • Added product count to category list
  • Updated deprecated woocommerce placeholder image function

1.1.0

  • Added option to add the product’s average star rating to the (Widget and Shortcode)
  • Added option to now include or exclude selected categories (Widget only. Shortcode coming soon!)
  • Added ability to select multiple categories in the widget
  • Updated WooCommerce version
  • Fixed several spelling mistakes

1.0.0

  • Initial release