Kabook Daily Coupon Hunt

Plugin Banner

Kabook Daily Coupon Hunt

by Afshari

Download
Description

Turn your website into a daily treasure hunt!

Kabook Daily Coupon Hunt is a WooCommerce marketing and engagement plugin that generates a daily coupon and displays it on a random selection of eligible posts or products. Visitors can explore your website to discover the hidden discount.

Core Features

  • Automatically generates a daily WooCommerce coupon.
  • Randomly selects posts or products where the daily coupon can be displayed.
  • Supports configurable minimum and maximum discount percentages.
  • Supports daily coupon usage limits.
  • Supports WooCommerce Individual Use coupons.
  • Includes an AJAX-powered Status and Report dashboard.
  • Includes a Manual Trigger button for generating a new daily coupon.
  • Provides three built-in frontend styles: Default, Modern, and Luxury.
  • Supports customizable frontend text.
  • Includes built-in support for Gregorian and Jalali date formats.
  • Uses the WordPress Transients API to optimize random target selection.
  • Adds a separate rotating Gold Coupon campaign with its own discount, target-page count, and usage limit.
  • Reports the current Gold Coupon and its selected pages in the administration area.

Shortcodes

Coupon Teaser

Use this shortcode to encourage visitors to look for the hidden daily coupon without revealing its code:

[kdch_coupon_teaser]

The teaser also displays the number of published target products and posts selected for the daily coupon, for example: “This coupon can be discovered in 30 products and posts today.” The number is read from the plugin’s current target selection.

Daily Coupon Box

Use this shortcode to display the regular daily coupon box where shortcode placement is supported:

[kdch_coupon_box]

Important: [kdch_daily_coupon] is not registered by this plugin and is not a supported shortcode. Use [kdch_coupon_box] to display the regular daily coupon box.

Gold Coupon

Use this shortcode to display a gold-and-black Gold Coupon teaser on a campaign or introduction page:

[kdch_coupon_gold]

The teaser displays the Gold Coupon discount, the remaining daily uses, and the number of selected pages where the coupon can be discovered. The actual coupon code is masked with asterisks and is not included in the teaser HTML. The full Gold Coupon is automatically displayed on the eligible target pages selected for the current cycle. Its discount percentage, target-page count, and usage limit are configured independently in the plugin settings.

Live Demo

See the teaser shortcode in action:

View Live Demo

  1. Upload the kabook-daily-coupon-hunt folder to the /wp-content/plugins/ directory, or install the plugin ZIP through the WordPress Plugins screen.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Make sure WooCommerce is installed and activated.
  4. Open Kabook Coupon from the WordPress admin menu.
  5. Configure the daily coupon settings and, if desired, the Gold Coupon settings.
  1. Status and Report tab showing coupon status and today's target pages.

    Status and Report tab showing coupon status and today's target pages.

  2. General settings for display selection, discount range, usage limits, and the manual trigger.

    General settings for display selection, discount range, usage limits, and the manual trigger.

  3. Style settings for the regular coupon box, including Default, Modern, and Luxury styles.

    Style settings for the regular coupon box, including Default, Modern, and Luxury styles.

  4. Frontend display of the regular coupon box inside a post or product.

    Frontend display of the regular coupon box inside a post or product.

  5. Frontend previews of the regular coupon styles.

    Frontend previews of the regular coupon styles.

Will random target selection slow down my website?

The plugin stores selection data and uses the WordPress Transients API to reduce repeated random-selection queries. Actual performance may vary with the site’s hosting, database, and other plugins.

Can I manually generate a new daily coupon?

Yes. Use the Manual Trigger button in the administration area to generate a new regular daily coupon and select new target pages.

What happens after the daily usage limit is reached?

The regular coupon box follows the configured failure message and display behavior. The Gold Coupon box shows that today’s available capacity has been reached when its usage limit is exhausted.

Does the plugin require a separate Jalali calendar plugin?

No. The plugin includes built-in Jalali date support.

Which shortcodes are available?

  • [kdch_coupon_teaser] — Displays a teaser and the number of selected published target pages for the regular daily coupon.
  • [kdch_coupon_box] — Displays the regular daily coupon box.

The plugin does not register [kdch_daily_coupon]. The Gold Coupon is displayed automatically on its selected target pages and does not require a shortcode.

How does the Gold Coupon work?

The plugin generates a separate Gold Coupon code for each cycle, selects the configured number of eligible pages, and applies its own discount and usage limit. The previous coupon is set to expire when the next cycle is generated. The report area lists the current code and selected pages.

1.2.0

  • Added a separate Gold Coupon campaign with a new code for each 24-hour cycle.
  • Added independent Gold Coupon settings for discount percentage, target-page count, and usage limit.
  • Added Gold Coupon styling and click-to-copy support.
  • Added Gold Coupon reporting, including the current code, usage, cycle timing, and selected pages.
  • Updated [kdch_coupon_teaser] to display the number of selected published target pages for the regular daily coupon.
  • Updated documentation to reflect the shortcodes registered by the plugin.
  • Added [kdch_coupon_gold] shortcode for a gold-and-black Gold Coupon teaser.
  • The Gold Coupon teaser displays the discount, remaining daily uses, and selected target-page count while masking the code.
  • Ensured the actual Gold Coupon code is not included in the teaser HTML.

1.1.0

  • Added [kdch_coupon_teaser] shortcode.
  • Improved frontend asset loading.
  • Removed redundant inline scripts and improved rendering performance.

1.0.0

  • Initial release.
Back to top