[WordPress] 外掛分享: Product Search Category Redirect

首頁外掛目錄 › Product Search Category Redirect
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
413 天前
最後更新
問題解決
WordPress 6.3.0+ PHP 7.4.0+ v1.4.2 上架:2021-05-24

內容簡介

使用此擴充功能時,當某個人搜尋產品時,如果搜尋詞與某個產品類別相符,該人將被重定向到該產品類別,而不是搜尋結果。

如果您的產品標題或描述中不包含產品類別名稱,這將非常有用,因為這些產品不會在某個人搜索產品類別名稱時顯示在搜尋結果中。

功能

當搜尋詞與產品類別相符時,重定向到產品類別
搜尋詞和類別匹配可以是任意順序
輕量級且無需配置

用法

使用此擴充功能時無需進行任何設置,啟用後只需嘗試搜索產品類別中的產品,即可重定向到該產品類別而不是看到搜尋結果。

例如,如果您有一個高級連帽衫的類別,那麼搜索高級連帽衫(或連帽衫高級)將把您重定向到高級連帽衫類別,而不是顯示搜尋結果。

請注意,重定向僅在使用標准 WooCommerce 產品搜索且 URL 如下的情況下才有效: ?s=search-term&post_type=product。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Product Search Category Redirect」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

With this extension when someone searches for products and their search terms match a product category then they will be redirected to that product category instead of the search results.
This is useful if you have products which do not contain the product category name in the title or description as those products wouldn’t appear in search results when someone searches for the product category name.
Features

Redirects search terms to product categories when matched
Search term to category match can be in any order
Lightweight and no configuration required

Usage
There are no settings to configure with this extension, once it is activated just try a product search for a product category and you will get redirected to that product category instead of seeing the search results.
For example, if you have a premium hoodies category then search for premium hoodies (or hoodies premium) and it will redirect you to the premium hoodies category instead of showing you the search results.
Note that the redirect will only work if you are using the standard WooCommerce product search which has URLs like this: ?s=search-term&post_type=product.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon