説明
特定の商品で注文ページの結果を絞り込みたいと思ったことはありませんか ? このプラグインならできます !
このプラグインをインストールした後、新しい絞り込みドロップダウンリストが WooCommerce 注文画面に表示されます。このドロップダウンはすべての商品のリストを表示します。商品を選択して「絞り込み」ボタンをクリックしてください。その特定の商品だけを含む注文が表示されます。
新機能:バージョン 3.0 からは、「商品カテゴリー」での絞り込みも可能になりました。
現在のところ、公開済み商品に対してのみ動作します。すべての商品の状態(例えば、下書き、プライベートなど)に対応させたい場合は、テーマの functions.php ファイルに以下のコードを追加する必要があります。
add_action( 'wfobp_product_status', 'filter_order_by_product_status' );
function filter_order_by_product_status(){
return 'any';
}
このプロジェクトは GitHub にあります。
スクリーンショット
インストール
- 「woocommerce-filter-orders-by-product」フォルダ全体を「/wp-content/plugins/」ディレクトリにアップロードします。
- 「プラグイン」メニューからプラグインを有効化します。
新たな絞り込みが WooCommerce の注文ページに表示されます。
評価
2024年1月7日
1 reply
WC's very own order search already works with product names. This plugin would only make sense if it would add SKU search, but this is not the case.
2023年4月23日
Thank you very much, great and simple plugin!
2023年4月6日
1 reply
Four stars for now... add the ability to EXCLUDE one product or category, and it gets a fifth 🙂
2021年4月2日
This plugin is super helpful. I wanted to add a link on a custom admin page to orders for a specific product, and I just had to copy the URL string and add it to a link. Many thanks to the author!
2020年12月18日
Very helpful! Thank you!
2020年5月15日
Does a great job, thanks!
貢献者と開発者
変更履歴
4.0 – Dec 31, 2023
- Tweak: Added WooCommerce HPOS support
3.3 – Aug 20, 2023
- Fix: Resolved PHP notice caused by incorrect use of the
is_search()
function
3.1
- Readme を更新しました
3.0
- 新機能:商品カテゴリでの絞り込みが可能になりました
- コードをリファクタリング
2.0.7
- 修正:同名の商品が以前に一度しか表示されなかったのを修正
2.0.6
- 商品の状態を変更するフックを追加
2.0.5
- SQL インジェクションのバグを修正
2.0.4
- コードの改善
2.0.3
- 修正:翻訳の修正
2.0.2
- 翻訳のバグを修正しました(ありがとう Kasperta)
2.0.1
- 細かいバグを修正しました
2.0.0
- 新規:検索ドロップダウン
- 主要なバグを修正しました
1.0.0
- プラグインをリリース