Plugin lets you add live time counter to any WooCommerce product. You can choose which product action should be executed automatically after time ends:
- product set to disabled (i.e. non-purchasable and/or hidden), or
- product sale cancelled, or
- product stock set to sold out, or
- no action is taken.
General Options
Plugin settings are located in “WooCommerce > Settings > Product Time Countdown”.
- Template
- You can use HTML and/or shortcodes here.
%s
is replaced by actual time counter.- Default:
%s left
- Default:
- Time format
- Ignored if “Human readable format” option below is enabled. Replaced values:
{hours}
,{minutes}
,{seconds}
.- Default:
{hours}:{minutes}:{seconds}
- Default:
- Human readable format
- Will use
human_time_diff()
function to display time.- Default:
no
- Default:
- Style
- Time counter CSS styling.
- Default:
font-size: xx-large; font-weight: bold;
- Default:
- Update rate
- Counter update rate in milliseconds.
- Default:
1000
- Default:
- Reload page
- If enabled will reload page on time finished. Possible values: Reload; Reload on single product pages only; Do not reload.
- Default:
Do not reload
- Default:
- Message on time finished
- Message will be visible on time finished on frontend instead of time counter. Can be empty.
- Default: None
Position Options
You can also use [product_time_counter]
shortcode to display the counter.
- Position on single product page
- Possible values: Do not add; Before single product; Before single product summary; Inside single product summary; After single product summary; After single product; Before add to cart form; Before add to cart button; After add to cart button; After add to cart form.
- Default:
Inside single product summary
- Default:
- Position priority (Single product page)
- Change this if you want to move the timer inside the position on single product page. Existing priorities: Before single product: notices – 10. Before single product summary: sale flash – 10, product images – 20. Inside single product summary: title – 5, rating – 10, price – 10, excerpt – 20, add to cart – 30, meta – 40, sharing – 50. After single product summary: product data tabs – 10, upsell – 15, related products – 20.
- Default:
10
- Default:
- Position on archive (shop) pages
- Possible values: Do not add; Before product; Before product title; Inside product title; After product title; After product.
- Default:
Do not add
- Default:
- Position priority (Archive pages)
- Change this if you want to move the timer inside the Position.
- Default:
10
- Default:
- Make non-purchasable
- This will make products non-purchasable (i.e. product can’t be added to the cart). However products will still be visible.
- Default:
yes
- Default:
- Make invisible
- This will hide products in shop and search results. However products will still be accessible via direct link.
- Default:
no
- Default:
- Make completely invisible
- This will hide products completely (including direct link).
- Default:
no
- Default:
Admin Products List Options
- Add column
- This will add “Countdown” column to admin products list.
- Default:
no
- Default:
Reset Settings
- Reset section settings
- Check this box and save changes to reset section settings.
- Default:
no
- Default:
Per Product Settings
After reviewing the general options, as described above, please visit some product’s admin edit page. There (i.e. for each product separately) in “Product Time Countdown” meta box you will be able to:
- Enable/disable the counter.
- Set date and time.
- Set action on time end: Do nothing; Disable product; Cancel sale; Make sold out.
Example
Screenshot below demonstrates how would time counter look on frontend (single product page), if you would set Template option to:
Sale ends in <strong>%s</strong>
and Style option to:
font-size: large; color: white; background-color: #ff9800; padding: 15px;
david –
I want to use functions to get date
product_time_counter_enddate
$order = wc_get_order($order_id);
// Iterating through each WC_Order_Item_Product objects
Ask you to tell me
thanksgiving
Bod –
Hi just downloaded the free version and it works great. I’m about to pay for the premium version but I want to know if there is a shortcode to show date in another format: 27/Nov/2015
sar –
i upload the plugin but it didnt work any of the page home ,shop, product, tag no where
Tom Anbinder –
Hi,
Sorry to hear that you are having issues with the plugin. Maybe I could log in to your site’s admin to check what’s going on? If that’s possible – my private email is [email protected].
drphil –
Great plugin, easy to use.
Almartino L Diesta (verified owner) –
The plugin is causing slowness and error connection on my webstore on the server. Any chances of fixing or knowing why. Thanks.
Tom Anbinder –
Hi,
Maybe you can create/share an admin account to your server (WP and preferably FTP), so I could login and check what’s going on. If that’s possible – my private email is [email protected].
noname –
where is a sample view! won’t buy unless I can see what it looks like
Tom Anbinder –
I’ve just updated the plugin description and added frontend view screenshot there. Also – probably best way to see how it looks on frontend is to try the free version.
Hope that helps.