
內容簡介
WC Omnibus 是一個 WordPress 外掛,可以讓您針對 WooCommerce 網店中的產品和變量產品設定自定義的「集體購買」價格和日期。當設定的產品打折銷售時,該價格和日期將會顯示在產品頁面上。
短碼 (Shortcodes)
[ecom_wc_omnibus_price]
可接受的參數:
type: “simple” | “variable”
例如:
[ecom_wc_omnibus_price type="variable"]
在當前的產品頁面上顯示集體購買價格,並會自動判斷頁面是否為變量產品(除非使用 type 屬性參數進行指定)。在變量產品頁面上,當選擇商品變體時,會顯示該變體對應的集體購買價格。
全域函數 (Global functions)
ecom_omnibus_price();
為單一產品添加集體購買價格。如果在變量產品頁面上,則不添加任何內容。
ecom_omnibus_single_variation_price();
為變量產品添加集體購買價格。如果未在變量產品頁面上添加任何內容,則添加一個空標籤。在選擇變體時,會顯示該變體對應的集體購買價格。
外掛標籤
開發者團隊
原文外掛簡介
WC Omnibus allows you to set a custom omnibus price and date for WooCommerce products and variable products and show it on the product page when the product is on sale.
Shortcodes
[ecom_wc_omnibus_price]
Accepted parameters:
type: “simple” | “variable”
For example:
[ecom_wc_omnibus_price type="variable"]
Show the omnibus price for current product page. Automatically determines if page is for a variable product, unless specified with type attribute. On variable product page the omnibus price for the variation is shown when the variation is selected.
Global functions
ecom_omnibus_price();
Adds omnibus price for a single product. Adds nothing if on variable product page.
ecom_omnibus_single_variation_price();
Adds omnibus price for a variable product. Adds an empty tag if not on a variable product page. The omnibus price for the variation is shown when the variation is selected.
