Ecom WC Omnibus

外掛說明

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.

螢幕擷圖

  • WC Omnibus settings page
  • Simple product edit page with omnibus price and date set
  • Variable product edit page with omnibus price set and no date
  • Simple product page with omnibus price and date
  • Variable product page with omnibus price and no date

安裝方式

  1. Upload ecom-wc-omnibus to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. On product edit page add omnibus price and date (optional) for products. This is price is shown for products that are on sale. The price be the lowest price that the product was sold for within 30 days before the sale.
  4. Options page is /wp-admin/admin.php?page=ecom-settings and you can enable showing the omnibus price for sale products on front end (default on), enable a warning on product edit page if the product is on sale without omnibus price (default on) and select hooks where the omnibus price is sold on front end (separate for single and variable products)

常見問題集

When is the omnibus price shown?

When the product or a variable has a sale price and an omnibus price.

What is the omnibus date used for?

It is optional and for your convenience and for the customer to see. You can set the date there when making changes and check that the date is 30 days before the sale started. The customer can also see when the lowest price before the sale was offered.

Can the plugin fetch the lowest price from last 30 days automatically?

Not at the moment, but automatic price change log for last 30 days and option to use lowest price automatically is being planned for future release.

How do I translate the omnibus notification to my language?

Install a string translation plugin like Loco Translate or WPML and edit the plugin’s translations.

How do I change the displayed date format?

Option 1: Use the date format option in WordPress general settings.

Option 2: If you only want to change the date format for the omnibus price, you can use the following filter:

add_filter( 'ecom_wc_omnibus_date_format', fn( $format ) => 'Y-m-d' );

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Ecom WC Omnibus〉的開發相關工作。

參與者

將〈Ecom WC Omnibus〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

6.6.2022
* Use WordPress date format for omnibus price date
* Add shortcodes for showing omnibus price on custom product pages and templates
* Add support for multiple omnibus hooks for single and variable products
* Misc code quality fixes and more documentation

1.0.0

27.5.2022
* First version of the plugin ready