Title: Related Products for WooCommerce
Author: peachpay
Published: <strong>2015 年 9 月 15 日</strong>
Last modified: 2025 年 10 月 2 日

---

搜尋外掛

![](https://ps.w.org/woo-related-products-refresh-on-reload/assets/banner-772x250.
png?rev=1531809)

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

![](https://ps.w.org/woo-related-products-refresh-on-reload/assets/icon-256x256.
png?rev=1531812)

# Related Products for WooCommerce

 由 [peachpay](https://profiles.wordpress.org/peachpay/) 開發

[下載](https://downloads.wordpress.org/plugin/woo-related-products-refresh-on-reload.3.3.17.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/woo-related-products-refresh-on-reload/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/woo-related-products-refresh-on-reload/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/woo-related-products-refresh-on-reload/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/woo-related-products-refresh-on-reload/#developers)

 [技術支援](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/)

## 外掛說明

Display fresh, random WooCommerce related products on every single product page 
load (in a slider or not) based on the current product’s category, tags, or attributes.

Related products can be configured to display in posts, pages, and sidebar widgets,
and can be configured to exclude categories.

Use the shortcode **`[woo-related]`** for product pages or **`[woo-related id='XX']`**/**`[
woo-related product-id='XX' show-title='no']`** for posts, pages, and widgets.

Exclude taxonomies using the the option field in the settings page.

The shortcode accepts id, title and number.

### Shortcode examples

    ```
    [woo-related id='15']
    ```

will display related products based on product ID 15.

    ```
    [woo-related id='15' title='no']
    ```

is the same as above but will hide Related Products title. For sidebars, etc. you
can use the widget title.

    ```
    [woo-related id='15' title='no' number='1']
    ```

is the same as above but will return only 1 product.

    ```
    [woo-related]
    ```

will use current product’s ID. This should be used on product pages only.

### Related Products for WooCommerce can help you:

 * Display real related products (using a slider or not)
 * Set the related product’s heading text (you can use HTML)
 * Set the number of related products you want to display or disable them
 * Set category or tag based related products
 * Display related products using Flexslider
 * Translate related products heading text
 * Exclude taxonomies from your related products
 * Use a shortcode to add related products to posts/pages and widgets

### Related Products block position

#### Move related products

Related Products for WooCommerce uses WordPress hooks to display related products
on product pages. If you need to move the related products block you can remove 
the action and add it again using a different hook or priority. This is extremly
helpful if you code your own theme or child theme.

To remove related products block you can use

    ```
    remove_action( 'woocommerce_after_single_product', 'wrprrdisplay' );
    ```

in your theme’s **functions.php** file.

If you want to add it again you can do something like this

    ```
    add_action( 'woocommerce_after_single_product', 'wrprrdisplay', 55 );
    ```

or

    ```
    add_action( 'ANY-OTHER-HOOK', 'wrprrdisplay', PRIORITY );
    ```

Check GitHub for all [single product page actions](https://github.com/woocommerce/woocommerce/blob/master/templates/content-single-product.php).

### Demo

You can see a [demo of the plugin here](http://woorelated.eboxnet.com).

### Requirements

 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)

### Plugin setup

 1. Install the plugin—visit the [installation tab](https://wordpress.org/plugins/woo-related-products-refresh-on-reload/#installation)
    for more info
 2. Use the plugin’s option page, located in the WooCommerce menu, to set up the plugin

### Support

 * Feel free to use the [support forum](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/),
   and we will get back to you as soon as possible.

### Want even better related products?

We recommend trying the Related Products feature that is built-in to [PeachPay](https://wordpress.org/plugins/peachpay-for-woocommerce/),
an all-in-one checkout and product recommendation solution engineered to increase
sales.

## 安裝方式

### Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers
itself and you don’t need to leave your web browser. To do an automatic install 
of Related Products for WooCommerce, log in to your WordPress dashboard, navigate
to the Plugins menu and click Add New.

In the search field type “Woo Related Products” and click Search Plugins. Once you’ve
found the plugin you can view details about it such as the point release, rating
and description. Most importantly of course, you can install it by simply clicking“
Install Now”.

### Manual installation

The manual installation method involves downloading Related Products for WooCommerce
plugin and uploading it to your webserver via your favourite FTP application. The
WordPress codex contains [instructions on how to do this here](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

### Updating

Automatic updates should work like a charm; as always though, ensure you backup 
your site just in case.

## 使用者評論

![](https://secure.gravatar.com/avatar/d665bafdfbaee8a9019f02e0a4833df41dfcb5f40b4948f6342e3d5dde286a07?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-33518/)󠁿

 [bjansson2](https://profiles.wordpress.org/bjansson2/) 2022 年 2 月 23 日

Works great! Solved a big problem for me as woocommerce native related products 
were showing anything and everything regardless of category or tag :/ This plugin
solved the problem.

![](https://secure.gravatar.com/avatar/6882cef33ac3a27de91e008fe247657a86e892a3a51261fb04952597ad658400?
s=60&d=retro&r=g)

### 󠀁[It Works Okay](https://wordpress.org/support/topic/it-works-okay/)󠁿

 [GratefulDeb](https://profiles.wordpress.org/eventermom/) 2021 年 11 月 21 日

It isn't working the way I thought it would … I set to 4 items based on product 
tag. I entered the product tag. There are at least 4 items of the same tag – but
instead it's pulling it items from totally different tags.

![](https://secure.gravatar.com/avatar/22899ba85cd78c5c2f127ef709ab00f985cdd62dad80ef318ec081007de4d220?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-7301/)󠁿

 [Kuler89](https://profiles.wordpress.org/kuler89/) 2021 年 8 月 18 日

It does exactly what is says it does. But, the biggest advantage for me is that 
you can set "related by" to attributes, categories, tags… That is an amazing feature.
Good job.

![](https://secure.gravatar.com/avatar/2de463ac493d81847a85860d231512eb99c474ef93997e3c9ba4e7c1137dd03b?
s=60&d=retro&r=g)

### 󠀁[Just Perfect](https://wordpress.org/support/topic/just-perfect-536/)󠁿

 [yannis12](https://profiles.wordpress.org/yannis12/) 2021 年 6 月 26 日 1 則留言

Related products boosted, simply in just one click

![](https://secure.gravatar.com/avatar/710178fe9cd6ed5572fb7aa26cdf7ed2ec43f889054d80a8411e4644276c3055?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-6734/)󠁿

 [Wael Rashed](https://profiles.wordpress.org/forsan73/) 2021 年 2 月 1 日 1 則留言

Excellent plugin, Thank you so much

![](https://secure.gravatar.com/avatar/143bdb993e711e5e6aeeab840470b29dd73f70015785b1605c73a94ce9836d70?
s=60&d=retro&r=g)

### 󠀁[Love this Plugin](https://wordpress.org/support/topic/love-this-plugin-978/)󠁿

 [basler](https://profiles.wordpress.org/basler/) 2020 年 11 月 9 日 1 則留言

Thanks to the developer this is so helpful, also the Support gets 5 Stars. I do 
really recommend this Plugin.

 [ 閱讀全部 47 則使用者評論 ](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Related Products for WooCommerce〉的開發相關工作。

參與者

 *   [ peachpay ](https://profiles.wordpress.org/peachpay/)
 *   [ Vagelis ](https://profiles.wordpress.org/eboxnet/)

[將〈Related Products for WooCommerce〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/woo-related-products-refresh-on-reload)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/woo-related-products-refresh-on-reload/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/woo-related-products-refresh-on-reload/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/woo-related-products-refresh-on-reload/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/woo-related-products-refresh-on-reload/)。

## 變更記錄

### 3.3.17 (08/08/2025)

 * Fix – Security patch for banner dismissal with proper nonce verification
 * Fix – Shortcode functionality in posts, pages, and widgets (null post context)
 * Fix – Initialize default plugin options on activation for better user experience
 * Fix – Update WooCommerce API usage to modern standards (get_attributes)
 * Tweak – Update compatibility testing with WordPress 6.8.2 and WooCommerce 10.0.4
 * Dev – Comprehensive testing and modernization of plugin codebase

### 3.3.16 (11/02/2023)

 * Fix – Security patch for shortcodes

### 3.3.15 (02/08/2023)

 * Tweak – Update banner message to clarify that PeachPay is an optional upgrade
   for better related products

### 3.3.14 (12/14/2022)

 * Docs – Update plugin listing

### 3.3.13 (04/29/2022)

 * Tweak – Update banner message

### 3.3.12 (02/02/2022)

 * Tweak – Clarify that future improvements to this plugin will happen in PeachPay,
   but that this standalone plugin will still work

### 3.3.11 (11/09/2021)

 * Docs – Revise plugin listing description

### 3.3.2 – 3.3.10 (08/10/2021 – 09/21/2021)

 * Dev – Refactor and clean up code; update documentation

### 3.3.1 (06/29/2018)

 * Fix – Function (re)name

### 3.3.0 (03/21/2017)

 * Fix – Conflicts
 * Dev – Related products will not include out of stock items

### 3.2.8 (10/01/2017)

 * Fix – Relate by Attribute
 * Tweak – Moved action out of the Class

### 3.2.5 (08/29/2017)

 * Dev – Shortcode Refactor

### 3.2.2 (08/29/2017)

 * Tweak – Slider HTML edits

### 3.2.1 (08/28/2017)

 * Tweak – Undefined variable fix

### 3.2.0 (08/27/2017)

 * Dev – Added the abillity to exclude taxonomies
 * Dev – Added [woo-related] shortcode
 * Tweak – Added woo-related-products-container CSS class to main div
 * Tweak – Added woo-related-shortcode CSS class to shortcode’s main div

### 3.1.0 (07/25/2017)

 * Dev – Added the abillity to translate default H2

### 3.0.5 (07/12/2017)

 * Tweak – Added CSS class to H2

### 3.0.5 (07/08/2017)

 * Dev – WooCommerce 3.x functions

### 3.0.0 (01/23/2017)

 * Dev – Relate Products by Product Attributes
 * Tweak – Add Style rules

### 2.3.0 (11/22/2016)

 * Tweak – Remove / Edit Functions
 * Tweak – Remove / Add Style rules
 * Dev – Add Owl-Carousel (boosts compatibility)
 * Dev – Remove Flexslider

### 2.2.3 (11/11/2016)

 * Dev – New options to control slider navigation and autoplay
 * Tweak – Enable flexslider directionNav (previus – next buttons)

### 2.2.0 (11/11/2016)

 * Fix – Final fix to make smooth the transition from 1.x to 2.x

### 2.1.5 (11/11/2016)

 * Fix – Fix to avoid re post of plugin’s options after upgrading to 2.x [Check 
   forum post] (https://wordpress.org/support/topic/woo-related-products-version-
   2-0-x/)

### 2.1.1 (11/10/2016)

 * Tweak – Conditional include of libraries

### 2.1 (11/10/2016)

 * Fix – Slider ul fix for a few themes

### 2.0.1 (11/10/2016)

 * Tweak – Option for 3 related products

### 2.0 (11/10/2016)

 * Dev – Related products Slider
 * Dev – Multi category & tags support
 * Tweak – Improve Code
 * Tweak – Exclude current product from related products
 * Fix – Error for products with no category or tag

### 1.0 – 1.9

 * Fix – Bug Fixes
 * Dev – Add more options
 * Dev – Initial Release

## 中繼資料

 *  版本 **3.3.17**
 *  最後更新 **1 年前**
 *  啟用安裝數 **3,000+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.12**
 *  語言
 * [English (US)](https://wordpress.org/plugins/woo-related-products-refresh-on-reload/)
 * 標籤:
 * [products slider](https://tw.wordpress.org/plugins/tags/products-slider/)[random](https://tw.wordpress.org/plugins/tags/random/)
   [related products](https://tw.wordpress.org/plugins/tags/related-products/)[slider](https://tw.wordpress.org/plugins/tags/slider/)
   [woocommerce](https://tw.wordpress.org/plugins/tags/woocommerce/)
 *  [進階檢視](https://tw.wordpress.org/plugins/woo-related-products-refresh-on-reload/advanced/)

## 評分

 4.9 星，滿分為 5 星

 *  [  44 個 5 星使用者評論     ](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/reviews/?filter=5)
 *  [  1 個 4 星使用者評論     ](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/reviews/?filter=3)
 *  [  1 個 2 星使用者評論     ](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/reviews/)

## 參與者

 *   [ peachpay ](https://profiles.wordpress.org/peachpay/)
 *   [ Vagelis ](https://profiles.wordpress.org/eboxnet/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/woo-related-products-refresh-on-reload/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://peachpay.app)