
內容簡介
「WooCommerce Sold Out Products」通過添加小工具和短碼,增強了內置的 WooCommerce 功能,以顯示已售完的產品。該外掛程式使用本機 WooCommerce 功能,確保小工具和短碼內容與您當前的 WooCommerce 模板相整合,確保您的 WooCommerce 商店一致性。
此外掛程式相容於 WooCommerce 2.x。
通過Github貢獻外掛程式
使用方法
小工具
前往"外觀" -> "小工具"
將「WooCommerce Sold Out Products」小工具拖放到所需的小工具區域
選擇設置並保存。
短碼
要使用的短碼是 sold_out_products,其擁有以下參數:
* per_page - 顯示產品的數量
* columns - 每行的列數
* orderby - 排序方式 https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters (默認: date)
* order - 升序或降序 (默認: desc)
[sold_out_products per_page=”10″ columns=”4″]
外掛標籤
開發者團隊
② 後台搜尋「WooCommerce Sold Out Products」→ 直接安裝(推薦)
原文外掛簡介
“WooCommerce Sold Out Products” enhances the built-in WooCommerce functionality by adding a Widget and Shortcode for displaying sold out products. The WooCommerce Sold Out Products extension uses native WooCommerce functionality ensuring that the widget and shortcode content for the sold out products integrates with your current WooCommerce templates ensuring uniformity on your WooCommerce store.
This plugin is WooCommerce 2.x compatible.
Contribute to the plugin via github
Usage
Widget
Go to Appearance -> Widgets
Drag the ‘WooCommerce Sold Out Products’ widget to your desired widget area
Select the setting and save.
Shortcode
The shortcode to use is sold_out_products and takes the following arguments:
* per_page – Number of products to display
* columns – Number of columns per row
* orderby – Order by https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters ( default: date )
* order – asc or desc ( default: desc )
[sold_out_products per_page=”10″ columns=”4″]
