Demo
Installation
Subscription activation
Update
How does it work?
Once installed and activated WP Desk Omnibus will do the rest of the work automatically. Right after activation, our plugin will scan all the products and save their prices as an intial value. From now on, the lowest price will be visible on a product page:
How does it look on a product page?
If the product price increase, the lowest price from the last 30 days will be visible on the product meta:
Plugin settings
Plugin settings are available in
WooCommerce > Settings > Products > General > Omnibus
Date interval
Set the range of days taken into account when determining the lowest price of the product.
Method of finding the lowest price
- Find the lowest price for product since current date
Set this option so that the set Date interval is counted in relation to the current date. - Find the lowest price since product's last promotion date
Set this option so that the set Date interval is calculated in relation to the date of saving the latest promotional price.
Current price is the lowest
- Display message as usual
Enable this option to show the message even when the current price is the lowest price of the product. - Don't display any message
Enable this option so that the message is not shown when the current price is the lowest price of the product. The option will be useful e.g. when the price has not been changed for longer than in the set Date interval.
Display the lowest price only for promotional products
Check this option to make the plugin take into account only products with a set promotional price. The message with the lowest price will then not appear for products with a regular price.
Method of displaying message for product variations
- Display each product variant separately
Set this option so that the message is shown when the user selects a specific variation from the list. The selected variation will be taken into account to calculate the lowest price. - Show one, the lowest price from across all product's variants
Set this option to show the message right after loading the page. All variations will be considered to calculate the lowest price.
Use sale prices
Check this option to make the plugin take into account promotional prices and not only regular prices.
The setting is not retroactive. If the promotional price was saved before enabling this setting - then it will not be taken into account. In this situation it is necessary to re-save the product with the sale price.
We do not recommend changing this setting frequently.
The lowest price message
The basic format will show the lowest price in the format
The lowest price (date): price
e.g. The lowest price (2023.01.01): $99.90
Set your own format using the {date} and {price} variables
e.g. The lowest price from the last 30 days is {price} ({date})
Display message on product page
The drop-down list contains all available places to show the lowest price on the product subpage.
The default setting is Before product's meta data. This option allows to show the lowest price as the first item of product metadata.
Display message on archive page
The drop-down list contains all available places to show the lowest price on archive pages like:
- shop
- category
- tag
- attributes
The default setting is Do not display.
Display message on cart page
The drop-down list contains all available places to show the lowest price on the cart page.
The default setting is Do not display.
Shortcodes
The plugin makes it possible to insert the lowest price or the full message about the lowest price in any place that supports adding shortcodes like subpages or post entries.
[omnibus_price]
Insert this shortcode to show the lowest price on the simple product subpage.[omnibus_price id="x"]
Insert this shortcode to show the lowest price on other subpages e.g. on the variable product subpage. Replace x with the ID of a specific product or variation e.g.[omnibus_price id="123"]
. You can find the product ID in the WP panel after hovering the cursor over the product name in the Products > All products tab.[omnibus_price_message]
Insert this shortcode to show the full lowest price message on the simple product subpage. You can change the message text in The lowest price message setting.[omnibus_price_message id="x"]
Insert this shortcode to show the full message about the lowest price on other subpages e.g. on the variable product subpage. Replace x with the ID of a specific product or variation e.g.[omnibus_price id="123"]
.
For developers
In the WP Desk Omnibus settings, there is an option called Display message on product pages and so on.
This option allows you to choose from a list of pre-defined action hooks that you can use to display the lowest price messages on your product pages. However, if you have a specific action hook that you would like to use, you can also enter the name of the hook directly in the field. Then you will be able to use this name as a reference for hook in your own code, which will display the message.
An example may be the following:
- Set in display settings a value 'omnibus/custom/placement'.
- Register your hook in your theme file:
// page.php in your theme files
<article id="post-<?php the_ID(); ?>" <?php post_class( 'product' ); ?>>
<!-- Ommited for brevity... -->
<?php do_action( 'omnibus/custom/placement' ); ?>
</article><!-- #post-<?php the_ID(); ?> -->
If you are using this hook on some sort of landing pages, you can also explicitly specify product instance to get the lowest price from:
// home.php in your theme files
<header>
<!-- Ommited for brevity... -->
<?php
$product = wc_get_product( 14 ); // We want to use a product with ID 14 as a featured one.
do_action('omnibus/custom/placement', $product );
?>
</header>