SCRATCH & REVEAL · v1.1.0
✦ IdeaPlugins · Premium WordPress Documentation

Scratch & Reveal
Card

A complete, user-friendly guide to the supplied v1.1.0 plugin. Configure a scratch-to-win popup or side panel, weighted rewards, WooCommerce coupons, smart targeting, animations, design presets, statistics and backup tools from one polished admin screen.

WordPress 5.8+PHP 7.4+WooCommerce 6.0+ optionalResponsiveReduced Motion
LAUNCH PERK · FOR YOU

Scratch to unlock

SCRATCH HERE ✦
✦

Overview

What the plugin does and how the visitor journey works.

Scratch & Reveal Card adds a gamified scratch-card experience to WordPress. Visitors can open a floating trigger or a custom button, scratch the card, reveal a weighted prize and optionally apply that prize through WooCommerce.

The supplied plugin supports three presentation modes: Popup, Right panel and Left panel. It also provides four visual themes, animated trigger states, confetti/sparkles, touch support, a signed and expiring prize claim, display rules, scheduling, anonymous aggregate statistics and JSON settings backup.

Important: this documentation is based on the supplied plugin source. Where a behavior depends on WooCommerce, the guide states that dependency explicitly.
🎟️Trigger
✦Open
✋Scratch
🎁Reveal
🛒Apply
▥

Dashboard

Understand performance without leaving the plugin.

The Dashboard summarizes the anonymous event counters collected by the plugin. The dashboard includes Widget views, Button clicks, Card opens, Prizes revealed, Codes copied, Main button clicks and Coupons applied.

A conversion funnel shows the percentage moving from open → reveal → copy/main CTA → coupon application. A 14-day chart compares opens and reveals. The Prizes won card shows each prize code, number of wins and relative share.

If statistics are disabled: the Dashboard displays a warning and no new counts are collected. Enable Tools → Collect statistics.
⚙

General

Core behavior, trigger placement, automation and scratch interaction.

⚙General · Activation & Trigger
Enable pluginMaster switch for the frontend scratch-card experience.
On / Off
Display modeControls whether the card is centered or slides from a screen edge.
Popup / Right panel / Left panel
Popup animationEntrance animation used by Popup mode.
Pop / Slide / Zoom / Bounce
Panel widthMaximum width of the popup/side panel on large screens.
320–640 px
Show floating buttonDisplays the visitor trigger button. Shortcode/custom trigger can also open the card.
On / Off
Trigger positionBottom Right, Bottom Left, Bottom Center, Right Middle, Left Middle.
5 positions
Trigger sizeControls the floating button footprint.
Small / Medium / Large
Trigger iconIcon shown inside the floating button.
Ticket / Gift / Sparkles / Coin / Star
Button labelText shown next to the trigger icon.
Up to 40 chars
Show labelSwitches between labelled and icon-only trigger.
On / Off
Icon only on mobileHides the label on smaller screens when enabled.
On / Off
Attention animationAnimation used to attract attention to the trigger.
Pulse / Float / Shake / None
Show notification dotAdds a small animated notification badge.
On / Off
After revealKeeps or hides the floating trigger after a prize is revealed.
Keep / Hide
Horizontal / bottom offsetFine-tunes the floating button distance from the screen edges.
0–200 px
SettingAvailable / rangeWhat it controls
Enable pluginOn / OffMaster switch for the frontend scratch-card experience.
Display modePopup / Right panel / Left panelControls whether the card is centered or slides from a screen edge.
Popup animationPop / Slide / Zoom / BounceEntrance animation used by Popup mode.
Panel width320–640 pxMaximum width of the popup/side panel on large screens.
Show floating buttonOn / OffDisplays the visitor trigger button. Shortcode/custom trigger can also open the card.
Trigger position5 positionsBottom Right, Bottom Left, Bottom Center, Right Middle, Left Middle.
Trigger sizeSmall / Medium / LargeControls the floating button footprint.
Trigger iconTicket / Gift / Sparkles / Coin / StarIcon shown inside the floating button.
Button labelUp to 40 charsText shown next to the trigger icon.
Show labelOn / OffSwitches between labelled and icon-only trigger.
Icon only on mobileOn / OffHides the label on smaller screens when enabled.
Attention animationPulse / Float / Shake / NoneAnimation used to attract attention to the trigger.
Show notification dotOn / OffAdds a small animated notification badge.
After revealKeep / HideKeeps or hides the floating trigger after a prize is revealed.
Horizontal / bottom offset0–200 pxFine-tunes the floating button distance from the screen edges.
Open after a delayOn / OffAutomatically opens the experience after a configured delay.
Delay0–120 sDelay used by Auto Open.
Open on exit intentOn / OffDesktop-only trigger when the cursor leaves the top of the viewport.
FrequencyOnce / Session / AlwaysControls how often automatic opening is allowed.
Close on outside clickOn / OffAllows clicking the overlay to close the card.
Close with EscOn / OffAllows keyboard Escape to close the card.
Lock page scrollOn / OffPrevents background page scrolling while the card is open.
Confetti burstOn / OffShows confetti when the reward is revealed.
Sparkles while scratchingOn / OffAdds visual sparkles during scratching.
Haptic feedbackOn / OffAdds vibration feedback on supported mobile devices.
Reveal threshold10–90 %How much of the scratch surface must be cleared before auto reveal.
Brush size10–60 pxSize of the scratch brush used by mouse/touch.
Allow “reveal it” shortcutOn / OffShows a shortcut that reveals the prize without scratching.
Reward validity1–720 hLifetime of the signed prize claim.
Show live countdownOn / OffDisplays the remaining reward validity time.
Z-index100–2147483000Stacking level when the card must appear above other site elements.

Display modes

PopupCentered modal experience.
Right panelSlides from the right edge.
Left panelSlides from the left edge.
AutomationDelay and exit-intent triggers.

Scratch mechanics

The scratch surface uses a canvas and touch/mouse input. Reveal threshold determines the percentage of the scratch grid that must be cleared. Brush size controls the pointer footprint. The visitor can also use the optional “Reveal it” shortcut.

Expiry security: the reward claim is signed server-side and checked against the configured validity window before WooCommerce application.
T

Content

Change every visitor-facing text and optional image from one place.

TContent · Headline / Scratch / Reward
Show small intro lineDisplays the small eyebrow text above the headline.
On / Off
Intro line / suffixTwo parts of the eyebrow separated visually by the UI.
Text
TitleMain headline.
Up to 80 chars
Highlighted title partPhrase rendered in the gradient accent style.
Up to 80 chars
Show subtitleDisplays the supporting copy.
On / Off
SubtitleSupporting description.
Up to 240 chars
Scratch cover textText printed over the scratch layer.
Up to 30 chars
Hint textInstruction shown around the scratch area.
Up to 100 chars
Reveal it link textShortcut text when skip/reveal is enabled.
Up to 40 chars
SettingAvailable / rangeWhat it controls
Show small intro lineOn / OffDisplays the small eyebrow text above the headline.
Intro line / suffixTextTwo parts of the eyebrow separated visually by the UI.
TitleUp to 80 charsMain headline.
Highlighted title partUp to 80 charsPhrase rendered in the gradient accent style.
Show subtitleOn / OffDisplays the supporting copy.
SubtitleUp to 240 charsSupporting description.
Scratch cover textUp to 30 charsText printed over the scratch layer.
Hint textUp to 100 charsInstruction shown around the scratch area.
Reveal it link textUp to 40 charsShortcut text when skip/reveal is enabled.
Copy button / copied messageTextLabels for copying the reward code.
Note under codeUp to 100 charsSupporting reward note.
Countdown label / expired messageTextControls expiry messaging.
Main button / success / errorTextCTA states shown before, after and on failure.
Footer noteOn / Off + textOptional legal/marketing note beneath the reward.
Close button labelTextAccessible label for the close control.
Logo / Header / Scratch cover imageMedia URLOptional images for branding, header artwork or replacing the gradient foil.
Branding tip: keep the title short, use Highlighted title part for one key phrase and reserve the subtitle for the actual offer mechanics.
🎁

Prizes

Build the weighted reward pool and WooCommerce discount mapping.

Every prize contains a visitor-facing label, supporting text, coupon code, weight and optional WooCommerce discount configuration. The draw is weighted: the plugin sums all weights and selects one prize server-side using a random roll.

🎁Prize list
Reward textMain reward shown after reveal.
Up to 40 chars
Reward sub textSecondary reward description.
Up to 80 chars
Coupon codeCode associated with the prize and used by WooCommerce.
Up to 40 chars
WeightRelative probability. Higher weight means a higher chance.
1–100
Discount typeWooCommerce discount type for the prize.
Percentage / Fixed cart amount
Discount amountDiscount value passed to WooCommerce.
Number
SettingAvailable / rangeWhat it controls
Reward textUp to 40 charsMain reward shown after reveal.
Reward sub textUp to 80 charsSecondary reward description.
Coupon codeUp to 40 charsCode associated with the prize and used by WooCommerce.
Weight1–100Relative probability. Higher weight means a higher chance.
Discount typePercentage / Fixed cart amountWooCommerce discount type for the prize.
Discount amountNumberDiscount value passed to WooCommerce.

Example probability

With weights 60 / 30 / 10, the relative distribution is 60%, 30% and 10% because the total is 100. If you change them to 80 / 20, the relative distribution becomes 80% and 20%. The values are weights, not fixed quotas.

Coupon codes matter: each prize code is validated against the configured prize list before a signed claim can be applied.
◌

Design

Four premium visual directions plus granular color, typography and shape controls.

AuroraBright, airy and clean.
MidnightDark glass with neon glow.
SunsetWarm ticket style.
EmeraldFresh frosted mint.
SettingAvailable / rangeWhat it controls
ThemeAurora / Midnight / Sunset / EmeraldLoads a complete visual direction and color palette.
Accent 1 / 2 / 3Hex colorPrimary gradient and glow colors.
Text / Muted textHex colorMain and secondary typography colors.
Card background / BordersHex colorSurface and border appearance.
Overlay colorHex colorBackground overlay behind the modal.
Overlay opacity0–95 %Strength of the background overlay.
FontTheme / System UI / Rounded / SerifTypography family used inside the widget.
Title size16–44 pxHeadline size.
Subtitle size11–20 pxSupporting text size.
Reward size20–64 pxReward value typography size.
Button text size12–22 pxCTA typography size.
Card radius0–40 pxRoundness of the main card.
Button radius0–50 pxRoundness of the CTA button.
Button iconArrow / Cart / Gift / Sparkles / NoneIcon shown in the main CTA.
Custom CSSCSSStyles loaded after the plugin stylesheet. Plugin classes use the ideaplnewplgin346801i_ prefix.
Theme behavior: selecting a theme loads its color palette, but the individual color fields remain editable. This means the preset is a starting point, not a locked design.
▣

Display Rules

Decide exactly where and for whom the widget can appear.

▣Display Rules · Pages & Audience
Show onHomepage, Blog, Page, Post, Archive, Search, 404, Other, Woo Shop, Woo Category, Woo Product, Cart, Checkout, Account.
Page-type multi-select
Always show on these IDsForces display on selected page/post/product IDs unless the ID is excluded.
Comma-separated IDs
Never show on these IDsHard exclusion; overrides normal display rules.
Comma-separated IDs
VisitorsAudience filter.
Everyone / Guests / Logged-in
DevicesDevice visibility filter.
Desktop / Tablet / Mobile
Enable scheduleActivates the date/time window.
On / Off
Start / EndUses the WordPress site timezone.
Date + time
SettingAvailable / rangeWhat it controls
Show onPage-type multi-selectHomepage, Blog, Page, Post, Archive, Search, 404, Other, Woo Shop, Woo Category, Woo Product, Cart, Checkout, Account.
Always show on these IDsComma-separated IDsForces display on selected page/post/product IDs unless the ID is excluded.
Never show on these IDsComma-separated IDsHard exclusion; overrides normal display rules.
VisitorsEveryone / Guests / Logged-inAudience filter.
DevicesDesktop / Tablet / MobileDevice visibility filter.
Enable scheduleOn / OffActivates the date/time window.
Start / EndDate + timeUses the WordPress site timezone.

Hard include / hard exclude

Always show on these IDs forces display when the queried object ID matches. Never show on these IDs wins over everything else, so it is the correct place to guarantee that a campaign never appears on a sensitive page or product.

IDs are comma-separated, for example 12, 48, 105.

WooCommerce page targeting: the plugin recognizes Shop, Product Category/Tag, Product, Cart, Checkout and Account page types when WooCommerce is loaded.
🛒

WooCommerce

Turn revealed prizes into real WooCommerce discounts or custom CTA actions.

WooCommerce is optional. Without WooCommerce, the scratch experience still works, but the main button cannot apply a WooCommerce coupon to a cart.

🛒WooCommerce · Main Button & Coupon Sync
ActionDefines what the main CTA does.
Apply / Link / Copy / Close
After applyingDestination after a successful WooCommerce application.
Cart / Checkout / Stay
Add viewed product to cartOn single product pages, simple purchasable in-stock products can be added with the coupon.
On / Off
Custom linkDestination used by Link action.
URL
Open link in new tabControls external/custom link behavior.
On / Off
Create & update WooCommerce couponsCreates/updates plugin-managed coupons when settings are saved.
On / Off
Coupon expiry dateOptional expiration date for synced coupons.
Date / blank
Minimum spendOptional minimum cart total.
0 or higher
Usage limit per customer0 means unlimited.
0 or higher
Individual use onlyPrevents combining the reward coupon with other coupons.
On / Off
Exclude sale itemsBlocks the coupon from sale items.
On / Off
SettingAvailable / rangeWhat it controls
ActionApply / Link / Copy / CloseDefines what the main CTA does.
After applyingCart / Checkout / StayDestination after a successful WooCommerce application.
Add viewed product to cartOn / OffOn single product pages, simple purchasable in-stock products can be added with the coupon.
Custom linkURLDestination used by Link action.
Open link in new tabOn / OffControls external/custom link behavior.
Create & update WooCommerce couponsOn / OffCreates/updates plugin-managed coupons when settings are saved.
Coupon expiry dateDate / blankOptional expiration date for synced coupons.
Minimum spend0 or higherOptional minimum cart total.
Usage limit per customer0 or higher0 means unlimited.
Individual use onlyOn / OffPrevents combining the reward coupon with other coupons.
Exclude sale itemsOn / OffBlocks the coupon from sale items.
Managed coupon safety: when coupon sync is enabled, the plugin creates or updates coupons it manages. Existing coupons that were not created by this plugin are skipped rather than overwritten.

Apply-to-cart flow

When the main action is Apply coupon to cart, the plugin validates the signed claim, optionally adds the viewed simple in-stock product, applies the coupon when the cart can accept it, and can redirect to Cart or Checkout. If the cart is empty, the coupon can be held in the WooCommerce session and applied on the next add-to-cart.

↗

Tools

Statistics, migration, reset and lifecycle controls.

SettingAvailable / rangeWhat it controls
Collect statisticsOn / OffEnables anonymous aggregate counters.
Export settingsJSONDownloads the current plugin configuration.
Import settingsJSONLoads a compatible exported configuration.
Reset statisticsActionClears dashboard counters.
Reset all settingsActionRestores plugin settings to defaults.
Delete all data on plugin deletionOn / OffOpt-in removal of settings, statistics and managed coupon flags during uninstall.

Export / Import

Export creates a JSON file containing the plugin configuration. Import accepts the compatible plugin JSON structure. This is useful when moving the same campaign design from staging to production.

Reset behavior

Reset statistics only clears counters. Reset all settings restores plugin settings to defaults. Use the latter as a deliberate “start over” action.

Uninstall is opt-in: data is not removed by updates. Deletion only removes plugin data when Delete all data when the plugin is deleted is enabled.
◎

Support

Developer, documentation and product resources.

The plugin Support tab includes IdeaPlugins branding, license information detected from the current site, links to documentation, support email, the developer website and premium WordPress/WooCommerce plugin collections.

✦

Animations & Effects

What the frontend actually animates.

  • Floating trigger: hover lift, scale, glow, shine sweep and selectable Pulse / Float / Shake attention animation.
  • Notification dot: animated ping effect.
  • Trigger icon: subtle scratchy rotation/scale animation.
  • Overlay: opacity transition plus backdrop blur.
  • Popup: Pop, Slide, Zoom or Bounce entrance variants.
  • Side panels: smooth horizontal slide-in from the chosen edge.
  • Top accent: animated gradient line.
  • Ambient orbs: slow drifting decorative light sources.
  • Scratch card: animated shine sweep over the card surface.
  • Reward reveal: reward text pops in with scale/blur transition.
  • Confetti: generated on successful reveal when enabled.
  • CTA: hover lift, gradient movement, shine sweep and icon nudge; loading state spins the icon.
  • Reduced motion: the stylesheet honors prefers-reduced-motion and disables animations/transitions for users who request reduced motion.
</>

Shortcode & Custom Trigger

Open the scratch card from content or any existing button.

Shortcode

[ideaplnewplgin346801i_scratch_button label="Scratch now"]

The label attribute changes the button text. The class attribute can add extra CSS classes.

Existing elements

Any element with the class ideaplnewplgin346801i_open can act as a trigger. This is useful when your theme or page builder already has a CTA button.

Example: add the shortcode to a page, or give an existing button the class ideaplnewplgin346801i_open. The plugin's JavaScript listens for the trigger and opens the configured card.
⌁

Security, Performance & Data

Important implementation details for site owners.

  • Frontend assets are only enqueued when the widget is allowed to display or a shortcode requires them.
  • Prize draws are performed server-side.
  • Prize claims are signed with an HMAC and checked for expiry before application.
  • Public AJAX endpoints are throttled to reduce abuse.
  • Statistics are anonymous aggregate counters; the plugin source states that no personal data is stored for statistics.
  • Updates are non-destructive.
  • Deletion of plugin data is opt-in through Tools.
?

Troubleshooting

Fast checks for the most common setup issues.

SettingAvailable / rangeWhat it controls
Nothing appearsGeneral → Enable plugin; Display Rules; ScheduleConfirm the master switch is enabled, current page/device/audience matches and the current time is inside the schedule.
Floating button missingGeneral → Show floating buttonEnable the trigger or use the shortcode/custom .ideaplnewplgin346801i_open trigger.
Auto-open does not happenGeneral → Auto openEnable Open after a delay, set a delay above 0, and check Frequency. Exit intent is desktop-only.
Prize never reveals automaticallyGeneral → Reveal thresholdLower the threshold or increase brush size; 42% is the default.
Coupon does not applyWooCommerceVerify WooCommerce is active, the code matches a configured prize, the claim has not expired and the coupon rules allow the cart.
Coupon not created/updatedWooCommerce → Coupon syncEnable sync and save. A pre-existing coupon not managed by the plugin is intentionally skipped.
Card appears behind another elementGeneral → Z-indexIncrease the z-index within the allowed 100–2147483000 range.
Design changes not visibleDesignCheck theme, colors, custom CSS and clear any page/cache layer after saving.
?

FAQ

Quick answers for site owners.

Does WooCommerce have to be installed?

No. The plugin works without it; WooCommerce adds coupon/cart capabilities.

Can I use a side panel instead of a popup?

Yes. General → Display mode offers Right panel and Left panel.

Can I change the scratch-card text?

Yes. All visitor-facing text is under Content.

Can I use images?

Yes. Content provides Logo, Header image and Scratch cover image.

Can I create different prize probabilities?

Yes. Use Prize Weight. Higher weight means higher relative chance.

Can I show the campaign only to guests?

Yes. Display Rules → Visitors → Guests.

Can I move the campaign to another site?

Yes. Tools → Export settings, then Import settings on the destination site.

Are updates destructive?

No. The plugin explicitly preserves its data across updates.

⌁

Changelog

Version represented by the supplied package.

1.1.0

Current package version. The plugin header identifies version 1.1.0, with WordPress 5.8+ and PHP 7.4+ requirements and optional WooCommerce compatibility.