Back to Forhad's Creations

Product Deadline plugin for WordPress

By WP Forhad / October 15, 2024

Product Deadline is a powerful WordPress plugin designed to seamlessly integrate with WooCommerce, allowing store owners to add a deadline feature to their products. This plugin enables sellers to create urgency by adding a time-bound offer to their products, thereby encouraging customers to make purchases before the deadline expires.

With the Product Deadline plugin, users can set start and end dates, a countdown timer, and even specify actions after the countdown, such as hiding the "Add to Cart" button once the offer ends. This feature is ideal for creating flash sales, special discounts, and limited-time promotions that drive more sales by leveraging scarcity and urgency.

Key Features

  1. Flexible Deadline Options: Set specific start and end dates for product offers to create urgency and increase conversions. The plugin allows you to choose exact dates and times for when the promotion should begin and end.
  2. Countdown Timer Display: Add a countdown timer on the product page that shows customers exactly how much time is left until the offer expires. The countdown timer can be positioned at the top of the product page or in other custom locations.
  3. Automatic Action After Deadline: Configure automatic actions after the deadline, such as hiding the "Add to Cart" button once the offer period ends, making it clear to customers that the offer is no longer available.
  4. Customizable Countdown Text: Set custom messages to be displayed before, during, or after the countdown period, such as "Flash Sale!" or "Hurry up!". This feature helps create a more engaging experience for customers.
  5. Background Image Integration: Option to add custom background images that can be displayed alongside the countdown timer, enhancing the visual appeal of the promotional product page.
  6. Urgency for Limited-Time Offers: Encourage customers to complete their purchases by leveraging a sense of urgency, which is effective for driving quick decisions on time-sensitive offers like seasonal sales or product launches.
  7. User-Friendly Interface: Seamlessly integrates with WooCommerce’s product editor, making it easy for store owners to add a product deadline while adding or editing a product without any additional hassle.
  8. Comprehensive Compatibility: Works smoothly with all WooCommerce themes and integrates well with existing WooCommerce functionality, ensuring compatibility and avoiding conflicts with other plugins.
  9. Position Control: Choose the position of the countdown timer on the product page to ensure it captures attention where it matters most.

Use Case

The Product Deadline plugin is perfect for various scenarios where setting a time limit on a product offer can help boost conversions. Below are some specific use cases:

  • Flash Sales and Limited-Time Discounts: Set a start and end date for a flash sale on a product, allowing customers to see exactly how much time they have left to make the purchase. This sense of urgency can lead to an increase in conversions.
  • Product Launch Promotions: Create special launch offers for new products that are only available for a limited time, making customers feel they need to act quickly to take advantage of the offer.
  • Holiday or Seasonal Campaigns: Promote specific products with a deadline during holidays like Christmas, Black Friday, or New Year's, encouraging customers to make their purchase during these special events.
  • Product Countdown for Limited Inventory: Add a countdown timer to products that have limited stock availability, creating urgency and encouraging customers to make a quick decision to buy.

How to setup Product Deadline plugin

Step 01: First we have to go to the WordPress dashboard.

WP Dashboard

Step 02: Then we have to click the Plugins option from the dashboard. Then we have to click  “Add New Plugin” button  , from there we have to click “Upload Plugin”. Then we have to choose the plugin from our device. Then we have to click install button. Here we can Active The Plugin or we may active it later from Plugins options

Plugin Activation

Step 03: To work with this plugin we need to install WooCommerce plugin too. After install WooCommerce option and its menus in our dashboard
like below.

Woo Commerce Options

Step 04: Clicking on Add New we will see Product Deadline Options bottom of the page

Product Deadline Options

Step 05: Then we have to add a Product with the necessary fields like below

Add Product Options
Product Deadline Options

Step 06: When we will publish after adding necessary fields we will see our view page below

Product Deadline Options

Use our recommended page builder plugin, FancyPost to unlock a number of powerful blocks to help you to design amazing websites!

More screenshots

Add Product Options

Live Demo

Click the button below to see a live demo of the Product Deadline plugin in action. Discover how adding countdown timers and deadlines can transform your WooCommerce products, creating urgency and encouraging customers to act quickly. The demo provides a hands-on look at the features and customization options available within the plugin.

Download

Ready to enhance your Woo Commerce store by adding deadlines and countdown timers to your product listings? Click the button below to download the Product Deadline plugin and start leveraging time-sensitive offers to boost conversions today.

Please enable JavaScript in your browser to complete this form.

Developer area

The Developer Area is designed to assist developers in customizing or adding new features to the Product Deadline plugin. Below are some examples of hooks, filters, and code snippets to help you get started with customizing the plugin:

1. Hooks and Filters

The plugin includes various action hooks and filters that allow you to extend or modify its functionality. Here are some examples:

Example Hook: product_deadline_after_countdown

This action hook is triggered after the countdown timer ends. You can add custom functionality like hiding buttons or sending notifications.

add_action('product_deadline_after_countdown', 'my_custom_after_deadline_action');
function my_custom_after_deadline_action($product_id) {
    // Custom code to execute after the countdown ends
    // For example, hide the "Add to Cart" button
    if ($product_id) {
        echo "<script>document.querySelector('.add-to-cart-button').style.display = 'none';</script>";
    }
}
Example Filter: product_deadline_timer_text

This filter can be used to modify the text that appears alongside the countdown timer.

add_filter('product_deadline_timer_text', 'my_custom_timer_text');
function my_custom_timer_text($default_text) {
    return 'Hurry up! Offer ends in:';
}

2. Custom Actions After Deadline

Developers can add custom actions after the deadline ends using custom hooks or add new conditions. For example, you may want to trigger an email notification to customers or admins.

add_action('product_deadline_after_expiry', 'send_expiry_notification');
function send_expiry_notification($product_id) {
    $product = wc_get_product($product_id);
    $admin_email = get_option('admin_email');
    $subject = 'Product Deadline Expired';
    $message = 'The deadline for product: ' . $product->get_name() . ' has expired.';
    wp_mail($admin_email, $subject, $message);
}

3. CSS Customization

You can modify the styling of the countdown timer by adding custom CSS to your theme’s stylesheet or via the WordPress Customizer.

.product-deadline-timer {
    background-color: #ff0000;  /* Change timer background color */
    color: #ffffff;  /* Change timer text color */
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

4. Custom Countdown Timer Position

If you need to add the countdown timer to a specific place on the product page, you can use the following code snippet:

add_action('woocommerce_single_product_summary', 'add_custom_countdown_position', 20);
function add_custom_countdown_position() {
    if (function_exists('display_product_deadline_countdown')) {
        display_product_deadline_countdown(get_the_ID());
    }
}

5. Integration with Other Plugins

The Product Deadline plugin is built to be compatible with other plugins. For instance, you could integrate it with email marketing tools like MailChimp to create campaigns based on product deadlines.

add_action('product_deadline_after_countdown', 'trigger_mailchimp_campaign');
function trigger_mailchimp_campaign($product_id) {
    // Custom code to trigger a MailChimp campaign based on product expiry
    // This could involve making an API call to MailChimp
}

6. Using JavaScript for Countdown Customization

To further customize the countdown behavior, you may use JavaScript. Here is an example that updates the timer format dynamically.

<script>
    document.addEventListener('DOMContentLoaded', function() {
        var countdown = document.querySelector('.product-deadline-timer');
        if (countdown) {
            // Custom JavaScript to modify countdown display
            countdown.innerHTML = "Limited Time Offer: " + countdown.innerHTML;
        }
    });
</script>

Associate Plugins

  • Woo Commerce By Automattic

Request for new features

We are always looking to improve! If you have any suggestions for new features or improvements to the plugin, feel free to reach out to us. Your feedback helps us make Easy Job Listing even better.(Contact form , Telegram, WhatsApp, Messenger)

Donate

If you enjoy using Product Deadline and would like to support its continued development, please consider making a donation. Your contributions will help us add more features, provide regular updates, and continue offering support to all users.

Forhad Avatar

Hossain Muhammed Forhad

Forhad Hossain is the co-founder of Pluginic. He brings a one-of-a-kind fusion of tech brilliance, business savvy and marketing mojo to the table.

Forhad has consistently spearheaded the development of innovative products like Gutenic, Editorial Rating, FancyPost and many others that have become market leaders in their respective niches.

Website Builder Front Website Builder Back

Want To Build Better WordPress Websites?
Start Here! 👇

0
1 0 Rating
2 0 Rating
3 0 Rating
4 0 Rating
5 0 Rating
Total Vote: 0

Aggregate Rating System by Editorial Rating

Leave a Reply

Your email address will not be published. Required fields are marked *