IdeaPluginsPREMIUM DOCUMENTATION ยท v1.0.0
๐ŸŽ„ IdeaPlugins ยท WordPress Plugin Documentation

Christmas Gift
Advent Calendar & Giveaway

A detailed light-premium guide to the supplied v1.0.0 plugin: Gift modes, rewards, Mystery Gift, Advent Calendar, WooCommerce coupons, email unlock, design, targeting, scheduling, analytics, presets, shortcode and advanced controls.

WordPress 6.0+PHP 7.4+WooCommerce OptionalResponsiveReduced Motion
๐ŸŽ
๐ŸŽ

Overview

What the plugin does and how the pieces work together.

Christmas Gift adds an interactive festive experience to WordPress. Visitors can open a floating gift, optionally submit an email, reveal a reward and โ€” when WooCommerce is active โ€” receive or apply a coupon. The plugin also provides a full Advent Calendar, page/device targeting, scheduling, analytics and visual presets.

Documentation scope: this guide is based on the supplied plugin package. It documents the actual admin controls and implemented frontend behavior rather than inventing additional settings.
๐ŸŽTrigger
โœจOpen
โœ‰๏ธEmail gate
๐Ÿ†Reveal
๐Ÿ›’Coupon
๐Ÿš€

Quick Start

Recommended first-time setup.

1

Gift

Choose the mode, text, floating position and triggers.

2

Rewards

Define the standard reward or build a Mystery Gift pool.

3

Design + Rules

Apply a preset, set display rules and schedule the campaign.

Recommended order: Gift โ†’ Rewards โ†’ Design/Presets โ†’ WooCommerce (if needed) โ†’ Display Rules โ†’ Schedule โ†’ Analytics.
๐Ÿ“Š

Dashboard

Campaign overview and quick actions.

Gift ViewsGifts OpenedRewards ClaimedCoupons UsedEmails Collected

The dashboard also exposes quick links to Presets, Analytics, Display Rules and Schedule. The default dashboard summary uses the recent analytics window.

๐ŸŽ

Gift Experience

Configure the visitor-facing gift and its triggers.

๐ŸŽ Gift ExperienceSave Changes
Gift ModeControls how the reward is determined.
Standard / Mystery / Daily / Advent Calendar
Fullscreen ModeUses an immersive fullscreen overlay.
On / Off
Sound EffectsAdds a subtle sound on open and reveal.
On / Off
Gift LabelMain visitor-facing gift label.
Text
SubtitleSupporting text beneath the label.
Text
Open Button TextText used to open the gift.
Text
Success TitleHeadline after a successful reveal.
Text
FieldValues / formatWhat it does
Gift ModeStandard / Mystery / Daily / Advent CalendarControls how the reward is determined.
Fullscreen ModeOn / OffUses an immersive fullscreen overlay.
Sound EffectsOn / OffAdds a subtle sound on open and reveal.
Gift LabelTextMain visitor-facing gift label.
SubtitleTextSupporting text beneath the label.
Open Button TextTextText used to open the gift.
Success TitleTextHeadline after a successful reveal.
Enable Floating ButtonOn / OffShows or hides the floating gift trigger.
Position6 positionsBottom/top/center left or right.
Desktop / Tablet / Mobile Size40โ€“240 / 32โ€“200 / 28โ€“160 pxControls trigger size per device.
Auto-Open After0โ€“300 seconds0 disables the timer.
Open On Scroll0โ€“100%0 disables the scroll trigger.
Open On Exit IntentOn / OffOpens on exit-intent detection.
Custom CSS Selector TriggerCSS selectorAny matching element can open the gift.
Trigger logic: a trigger can only open the experience when the plugin is allowed to render on the current page by the master switch, schedule and display rules.
โœจ

Gift Modes

Choose how the reward is selected.

Standard Gift

Uses the single Standard Reward configuration.

Mystery Gift

Selects one reward from the Mystery Gift Pool using relative weights. Selection occurs server-side.

Daily Gift

Maps the current date to a calendar-style door reward using the Advent Calendar start date.

Advent Calendar

Displays multiple doors. Future doors are locked and the current date is marked as today.

๐Ÿ†

Rewards

Define what the visitor receives.

๐Ÿ† Standard RewardSave Changes
Reward TypeSelects the configured reward type.
Percentage / Fixed / Free Shipping / Free Product / Special / External URL / Custom
AmountPercentage or fixed amount depending on reward type.
Number
Frequency LimitLimits repeated reward claims.
Session / Browser / Day / Campaign / Email / Unlimited
Coupon ModeControls coupon code generation.
Fixed code / Auto-generate
Coupon CodeUsed with Fixed Coupon Code mode.
Text
Auto-Generated Code PrefixPrefix for generated unique codes.
Text
CTA Button TextReward call-to-action text.
Text
FieldValues / formatWhat it does
Reward TypePercentage / Fixed / Free Shipping / Free Product / Special / External URL / CustomSelects the configured reward type.
AmountNumberPercentage or fixed amount depending on reward type.
Frequency LimitSession / Browser / Day / Campaign / Email / UnlimitedLimits repeated reward claims.
Coupon ModeFixed code / Auto-generateControls coupon code generation.
Coupon CodeTextUsed with Fixed Coupon Code mode.
Auto-Generated Code PrefixTextPrefix for generated unique codes.
CTA Button TextTextReward call-to-action text.
CTA / Redirect URLURLUsed for URL or Custom reward flows.
WooCommerce behavior: the selector contains several reward types, while the WooCommerce coupon engine directly maps percentage, fixed and free-shipping rewards to WooCommerce coupons. For non-coupon campaigns, use the offer/URL/custom paths as appropriate.
๐ŸŽฒ

Mystery Gift Pool

Weighted random rewards.

Enable Mystery Gift Mode, then add rows with a label, type, amount and weight. Weights are relative; they do not have to total exactly 100.

๐ŸŽฒ Mystery Gift PoolAdd Reward
5% OFFReward label
% Off ยท Amount 5 ยท Weight 40
Free ShippingReward label
Free Shipping ยท Amount 0 ยท Weight 15
Example: a reward weighted 40 has a larger relative selection share than a reward weighted 10 in the same pool.
โœ‰๏ธ

Email Unlock

Require an email before revealing the reward.

Available controls

  • Require Email Before Revealing Reward
  • Headline
  • Description
  • Button Text
  • Require Consent Checkbox
  • Consent / Privacy Text
Privacy: when a visitor submits an email, the plugin stores that address in its own events table when local lead storage is enabled by the plugin configuration. The plugin does not automatically send marketing emails.
๐Ÿ—“๏ธ

Advent Calendar

Build a 1โ€“31 day interactive calendar.

๐Ÿ—“๏ธ Advent CalendarSave Changes
Enable Advent CalendarEnables calendar rendering for calendar mode.
On / Off
Number of DaysNumber of doors.
1โ€“31
Start DateDate when Day 1 unlocks.
YYYY-MM-DD
Calendar ThemeVisual calendar theme.
Classic / Luxury / Winter / Minimal / Candy
Day #Identifies a door override.
1โ€“31
Door TitleCustom title for a door.
Text
Reward TypeReward for the door.
% Off / Fixed Off / Free Shipping / Special
FieldValues / formatWhat it does
Enable Advent CalendarOn / OffEnables calendar rendering for calendar mode.
Number of Days1โ€“31Number of doors.
Start DateYYYY-MM-DDDate when Day 1 unlocks.
Calendar ThemeClassic / Luxury / Winter / Minimal / CandyVisual calendar theme.
Day #1โ€“31Identifies a door override.
Door TitleTextCustom title for a door.
Reward Type% Off / Fixed Off / Free Shipping / SpecialReward for the door.
AmountNumberReward amount.

Door behavior

Each door gets an unlock date from the Start Date. Future doors are disabled/locked. A custom door override can set its title and reward; doors without an override fall back to the standard reward.

๐Ÿ›’

WooCommerce

Optional coupon and cart integration.

WooCommerce is not required for the core gift experience. When WooCommerce is inactive, the plugin still supports the gift, Advent Calendar, display rules and email unlock.

๐Ÿ›’ WooCommerceSave Changes
Enable WooCommerce RewardsTurns WooCommerce reward integration on/off.
On / Off
Add Free ShippingAdds free shipping to generated coupons.
On / Off
Expires AfterCoupon expiry period.
0โ€“365 days
Usage Limit (total)Total allowed coupon uses.
Number
Usage Limit Per UserUses allowed per user.
Number
Minimum SpendMinimum cart amount.
Number
Maximum SpendMaximum cart amount.
Number
FieldValues / formatWhat it does
Enable WooCommerce RewardsOn / OffTurns WooCommerce reward integration on/off.
Add Free ShippingOn / OffAdds free shipping to generated coupons.
Expires After0โ€“365 daysCoupon expiry period.
Usage Limit (total)NumberTotal allowed coupon uses.
Usage Limit Per UserNumberUses allowed per user.
Minimum SpendNumberMinimum cart amount.
Maximum SpendNumberMaximum cart amount.
Individual Use OnlyOn / OffMarks the coupon as individual-use.
Exclude Sale ItemsOn / OffBlocks coupon use on sale items.
Redirect URL After ApplyURLDestination after applying a coupon; blank uses Shop.
Coupon flow: the plugin can create a coupon when a qualifying reward is revealed, apply the coupon to the current WooCommerce cart and redirect to the configured URL. If Redirect URL After Apply is blank, the Shop page is used.
๐ŸŽจ

Design

Lightweight visual customization with live preview.

๐ŸŽจ DesignSave Changes
Base ThemeStarting visual theme.
Classic / Luxury / Winter / Minimal / Candy
Primary / Secondary / AccentCore visual colors.
Color
Background / Surface / TextMain background, card and text colors.
Color
Border RadiusControls corner roundness.
0โ€“40 px
Animation SpeedControls motion speed.
Slow / Normal / Fast
Confetti On RevealAdds confetti on reward reveal.
On / Off
Snow EffectAdds animated snow.
On / Off
FieldValues / formatWhat it does
Base ThemeClassic / Luxury / Winter / Minimal / CandyStarting visual theme.
Primary / Secondary / AccentColorCore visual colors.
Background / Surface / TextColorMain background, card and text colors.
Border Radius0โ€“40 pxControls corner roundness.
Animation SpeedSlow / Normal / FastControls motion speed.
Confetti On RevealOn / OffAdds confetti on reward reveal.
Snow EffectOn / OffAdds animated snow.
Respect Reduce MotionOn / OffSimplifies animation for visitors requesting reduced motion.

Live Preview

The Design tab includes a preview frame that reflects the selected colors, border radius and current gift text. Use Presets for a quick starting point, then fine-tune the colors and motion.

๐ŸŽฏ

Display Rules

Control exactly where the gift can appear.

๐ŸŽฏ Display RulesSave Changes
PagesLimits where the gift may render.
All / Home / Shop / Product / Cart / Checkout / Blog / Single / Any Page
DevicesLimits visibility by device.
Desktop / Tablet / Mobile
User StateLimits visibility by login state.
Everyone / Logged-In / Logged-Out
Include URLs ContainingRequires a URL pattern match when populated.
One pattern per line
Exclude URLs ContainingHides the gift on matching URLs; exclusions win.
One pattern per line
Rule LogicCombines configured rule checks.
AND / OR
FieldValues / formatWhat it does
PagesAll / Home / Shop / Product / Cart / Checkout / Blog / Single / Any PageLimits where the gift may render.
DevicesDesktop / Tablet / MobileLimits visibility by device.
User StateEveryone / Logged-In / Logged-OutLimits visibility by login state.
Include URLs ContainingOne pattern per lineRequires a URL pattern match when populated.
Exclude URLs ContainingOne pattern per lineHides the gift on matching URLs; exclusions win.
Rule LogicAND / ORCombines configured rule checks.
Exclusions always win: a matching excluded URL prevents rendering even if another rule would otherwise allow it.
โฐ

Schedule

Automatically activate and deactivate a campaign window.

FieldValues / formatWhat it does
Enable SchedulingOn / OffTurns the date/time window on.
Start Date / TimeYYYY-MM-DD / HH:MMEarliest campaign time.
End Date / TimeYYYY-MM-DD / HH:MMLatest campaign time.
TimezoneSite timezoneUses the WordPress site's configured timezone.
Timezone: the schedule uses the WordPress site's configured timezone.
๐Ÿ“ˆ

Analytics

Measure the events the plugin can confidently attribute.

ImpressionsOpensOpen RateRevealsCoupons GeneratedCoupons CopiedCoupons AppliedEmails CollectedDoor Opens
Reporting ranges: Last 7 days, Last 30 days, Last 90 days and All time. Open Rate is calculated from impressions and opens. Revenue attribution is intentionally not shown because a gift claim cannot always be reliably linked to a WooCommerce order.
๐Ÿช„

Presets

Apply ready-made visual directions and move configuration between sites.

Classic ChristmasLuxury GoldWinter WonderlandChristmas NightMinimal ChristmasCandy Christmas

The Presets tab also provides JSON Export Settings, Import Settings and Reset All Settings.

Reset All Settings restores the plugin settings to defaults. Use it only when you intentionally want to start over.
โš™๏ธ

Advanced

Performance, custom CSS and data lifecycle.

โš™๏ธ AdvancedSave Changes
Christmas Gift EnabledMaster switch for the complete frontend experience.
On / Off
Performance ModeControls particle, animation and DOM complexity.
Standard / Balanced / Lightweight
Custom CSSLoads after the plugin's own styles.
CSS
Delete All Plugin Data On UninstallIf enabled, removes the plugin's own data on uninstall; off by default.
On / Off
FieldValues / formatWhat it does
Christmas Gift EnabledOn / OffMaster switch for the complete frontend experience.
Performance ModeStandard / Balanced / LightweightControls particle, animation and DOM complexity.
Custom CSSCSSLoads after the plugin's own styles.
Delete All Plugin Data On UninstallOn / OffIf enabled, removes the plugin's own data on uninstall; off by default.
Deactivation is non-destructive: disabling the plugin does not delete its settings or analytics.
๐Ÿงฉ

Shortcode & Gutenberg Block

Place the experience inline in content.

Basic

[christmas_gift]

Calendar mode

[christmas_gift mode="calendar"]

The plugin also registers a Gutenberg block named Christmas Gift when the block editor is available. The supported block/shortcode attribute is mode.

Inline calendar: Calendar mode requires Advent Calendar to be enabled. Otherwise the inline renderer falls back to the standard modal-style experience.
โœจ

Visitor Experience

How the frontend flow is assembled.

๐ŸŽTrigger
๐ŸŽ€Open
โœ‰๏ธEmail gate
๐ŸŽ‰Reveal
๐Ÿ›’Apply

The frontend can render as a floating gift or as an inline shortcode/block instance. The display engine first checks the master enabled state, schedule and display rules. Then the configured trigger or inline placement determines how the visitor enters the experience.

๐Ÿ”

Privacy & Data

What the plugin stores and how lifecycle actions behave.

  • Analytics: event records are stored in the plugin's own database table when tracking is enabled.
  • Email Unlock: submitted emails are stored in the same events table when local lead storage is enabled.
  • Marketing emails: none are sent automatically by the plugin.
  • Deactivation: data is preserved.
  • Uninstall: data is preserved by default; the Advanced option can explicitly request removal of the plugin's own data.
  • WooCommerce: generated coupons are created as WooCommerce coupon data.
๐Ÿ› ๏ธ

Troubleshooting

Fast checks for common problems.

ProblemCheckAction
Gift not visibleAdvanced, Display Rules, ScheduleEnable the master switch and confirm page/device/user/time conditions match.
Floating trigger missingGift โ†’ Enable Floating ButtonEnable it, or use the shortcode/block for inline placement.
Coupon not generatedWooCommerce active + rewards enabledActivate WooCommerce and test a percentage/fixed/free-shipping reward.
Calendar doors lockedStart Date + site timezoneVerify the calendar start date and WordPress timezone.
Campaign timing wrongScheduleVerify start/end date and time and site timezone.
Animations heavyAdvanced โ†’ Performance ModeTry Lightweight and keep Reduce Motion enabled.
๐Ÿ’ฌ

FAQ

Everyday admin questions.

Does it require WooCommerce?

No. WooCommerce is optional.

Can I target product pages?

Yes. Use Display Rules โ†’ Product.

Can I show it only to logged-out visitors?

Yes. Use User State โ†’ Logged-Out Visitors Only.

Can I schedule the campaign?

Yes. Enable Schedule and configure the start/end window.

Can I place it inside content?

Yes. Use [christmas_gift] or the Christmas Gift block.

Will deactivation delete data?

No. Deactivation is non-destructive.

๐Ÿ“

Changelog

Current package.

1.0.0

Initial release of Christmas Gift โ€“ Advent Calendar & Giveaway for WordPress.