前言介紹
- 這款 WordPress 外掛「PickPlugins Product Filter for WooCommerce」是 2018-11-05 上架。
- 目前有 100 個安裝啟用數。
- 上一次更新是 2023-04-15,距離現在已有 750 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.8 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
product filter | woocommerce filter | ajax product filter | woocommerce product filter | woocommerce products filter |
內容簡介
每個 WooCommerce 網站都需要良好的 WooCommerce 產品篩選系統才能成為優秀的電子商務網站。由於網上商店包含大量產品,因此對於任何人來說立即找到任何東西都有點困難。當顧客訪問電子商務網站時,他或她匆忙中。通常,網上購物對許多人來說更為方便,因為在購物時需要的時間更短。因此,當人們趕時間並且必須進行購物時,他們需要什麼?他們將在該網站上搜索一個搜索輸入框。在該搜索框中,他們將輸入所需產品的名稱、顏色等,產品就會顯示在屏幕上。他們會購買那個產品!完成購物就這麼簡單。只有通過添加一個優秀的 WooCommerce 產品篩選外掛才能實現這種任務。Pickplugin 為 WooCommerce 搜索外掛開發了此類外掛。
PickPlugins WooCommerce 產品篩選器:
在線演示
文檔
支援
外掛功能:
關鍵字篩選
按產品類別篩選
按產品標籤篩選
按價格範圍篩選
按排序和排序篩選
按特價產品篩選
按庫存篩選
按 SKU 篩選
如何使用?
請前往“小部件”頁面,看到那裡有一個名為“WC 產品篩選器”的小部件,您可以在側邊欄上使用它。
目前沒有選項,我們很快會更新。
如何添加自定義搜索字段並篩選產品?
您可以通過動作勾子添加自定義搜索字段並篩選產品,方法如下:
步驟 1:
添加搜索輸入字段
add_action('WCProductFilter_fields','WCProductFilter_field_my_custom_input', 30);
function WCProductFilter_field_my_custom_input(){
$WCProductFilter = isset($_GET['WCProductFilter']) ? sanitize_text_field($_GET['WCProductFilter']) :""; //檢查是否從 WCProductFilter 提交表單。
$_custom_input = isset($_GET['_custom_input']) ? sanitize_text_field($_GET['_custom_input']) :""; // 別忘了消毒
if(!$WCProductFilter):
$_custom_input = '';
endif;
/*
*
* 在此處可以檢查條件。
*
* if(is_shop()):
* 只在商店頁面執行代碼
* endif;
*
* */
if(is_shop()):
// 這只會在商店頁面顯示並隱藏其他頁面
?>
endif;
}
步驟 2:
驗證輸入變量並將其放在產品查詢引數上。
function wc_pf_query_args_custom_field($args, $form_data){
// 預設搜索查詢
$s = false;
$_custom_input = isset($_GET['_custom_input']) ? sanitize_text_field($_GET['_custom_input']) :""; // 別忘了消毒
$WCProductFilter = isset($_GET['WCProductFilter']) ? sanitize_text_field($_GET['WCProductFilter']) :""; // 檢查是否從 WCProductFilter 提交表單。
if(!empty($_custom_input)){
$s = $_custom_input;
}
// wordpress shortcode will be filtered.
$s = stripslashes_deep($s);
$s = trim($s);
$s = esc_attr($s);
$args['s'] = $s;
return $args;
}
add_filter('WCProductFilter_query_args','wc_pf_query_args_custom_field',10,2);
原文外掛簡介
Every WooCommerce site needs a good WooCommerce product filter system in order to be a good e-commerce site. As an online shop contains a ton of products so it’s kinda hard for anyone to find anything instantly.When a customer visits a e-commerce site, he or she in a hurry. Usually, online shopping is much more preferable to many people as it takes less time to do the shopping. So when a person is in hurry and has to do his or her shopping, what he or she will need? they will search for a search input box on that site. In that search box, they will type their desire product name, color etc and the product will come to their screen. They will buy that!! boom!! shopping is done. This kind of task is only possible by adding an excellent WooCommerce product filter plugin. Pickplugin has developed such type of plugin for WooCommerce Search plugin.
PickPlugins product filter for WooCommerce by http://pickplugins.com
Live Demo
Documentation
Support
VIDEO TUTORIAL
Plugin Features
Filter by keywords
Filter by product categories
Filter by product tags
Filter by price range
Filter by order & order by
Filter onsale product
Filter in-stock
Filter by SKU
How to use?
Please go to “Widgets” page and see there is a widget “WC Product Filter”, you can use this on sidebars.
There is no option currently, we will update soon.
How to add custom search field and filter products?
you can add custom search field by action hook and filter products as well,
Step 1:
Add search input field
add_action('WCProductFilter_fields','WCProductFilter_field_my_custom_input', 30);
function WCProductFilter_field_my_custom_input(){
$WCProductFilter = isset($_GET['WCProductFilter']) ? sanitize_text_field($_GET['WCProductFilter']) :""; // check this to ensure for is submitted from WCProductFilter.
$_custom_input = isset($_GET['_custom_input']) ? sanitize_text_field($_GET['_custom_input']) :""; // Do not forget to sanitization
if(!$WCProductFilter):
$_custom_input = '';
endif;
/*
*
* you can check conditional here.
*
* if(is_shop()):
* execute code only shop page
* endif;
*
* */
if(is_shop()):
// this will only display under shop page and hide others page
?>
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「PickPlugins Product Filter for WooCommerce」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.1 | 1.0.3 | 1.0.5 | 1.0.6 | 1.0.8 |
延伸相關外掛(你可能也想知道)
YITH WooCommerce Ajax Product Filter 》電子商務產品篩選是一個必備的工具,可以幫助您的顧客縮小產品範圍、根據特定功能(大小、顏色、類別等)找到他們感興趣的產品。, , 可靠的產品過濾是讓訪客...。
Product Filter by WBW 》WooCommerce產品篩選外掛程式允許客戶透過價格、類別、標籤、分類法和屬性篩選您的產品/商品。每個篩選準則都可自訂,讓您擁有最大的控制權。, 100%的Elemen...。
Filter Everything — Product Filter & WordPress Filter 》新穎且強大的 WordPress/WooCommerce 產品篩選外掛, 按照任何條件建立功能強大的分層篩選系統!這個外掛可篩選任何文章類型,包括自訂文章類型和產品。它設計...。
Premmerce Product Filter for WooCommerce 》Premmerce Product Filter for WooCommerce 外掛是一個方便且靈活的工具,可用於管理 WooCommerce 商品的篩選器。此外,此外掛有一個單一的小部件,可管理所...。
annasta Woocommerce Product Filters 》annasta WooCommerce Product Filters 是一個先進的 WooCommerce 过滤器解决方案,可快速灵活地搜索您商店的产品。我们的免費外掛提供许多高级功能,包括内置...。
Product Filter Widget for Elementor 》Elementor的商品篩選工具外掛讓您輕鬆篩選您的產品。, 使用此外掛,您現在可以輕鬆地按照屬性、類別、價格等篩選您的產品, 特色, , 使用類別、價格、庫存、評...。
Ultimate WooCommerce Filters 》merce Filters 是一款外掛,可讓您按顏色、尺寸、屬性、類別或標籤篩選 WooCommerce 產品。使用簡單的 WooCommerce 篩選器小工具和 WooCommerce 篩選器 short...。
Dynamic AJAX Product Filters for WooCommerce 》總結:, Dynamic AJAX Product Filters for WooCommerce 是 WooCommerce 商店所有者的終極解決方案,他們想要為客戶提供無縫、高效的購物體驗。透過快速的 AJ...。
Product Filtering by Categories, Tags, Price Range for WooCommerce – Filter Plus 》Filter Plus 是一個先進的 WooCommerce 過濾外掛程式,允許使用者在商店中添加多種過濾器,例如按類別、產品搜尋等等。使用 Filter Plus 外掛,您可以在 Word...。
PWF – Products Filter for WooCommerce 》PWF – WooCommerce Products Filter – 最佳篩選外掛程式, 篩選WooCommerce產品和任何WordPress自訂文章類型。輕鬆篩選任何標準,包括類別、標籤...。
Shop Products Filter 》使用這個外掛可以給 WooCommerce 產品添加 AJAX 功能,讓你建立一個非常棒的產品篩選器,例如價格、類別標籤等等。使用價格滑桿或選框非常容易地篩選店鋪中的...。
Woo Products Filter 》Woo Products Filter Plugin 是一個 WordPress 外掛,可以讓終端用戶更輕鬆地按價格範圍(從低到高或從高到低)、熱門程度、產品名稱、產品類別和許多其他方...。
EazyFilter – The Easiest Produt Filter Plugin for WooCommerce (WooCommerce Ajax Product Filter) 》您有沒有覺得在創建 WooCommerce 自訂篩選時需要成為巫師?您是否已經厭倦了穿越神秘的教程,試圖找出如何基於各種參數為您的用戶提供簡單篩選的方法?如果您...。
Product Price Filter 》, 僅使用本地 WooCommerce API, 按分類統計搜尋請求數據, 簡單的選項設置, 。
Product Filter by WuWizards 》總結:Product Filter by WuWizards 外掛增強了您的 WooCommerce 商店,讓客戶能夠使用價格、類別、標籤、分類、屬性等篩選器來細化搜尋,並完全自訂化,與 E...。