Magic Gift - Joomla Extensions
PC-DIDI Magic Gift Box Deluxe
Version 1.0.6 • Premium Joomla 6 Module
Installation, configuration, luxury animations, coupon marketing, countdown design, MP3 audio and troubleshooting.
PC-DIDI Magic Gift Box Deluxe transforms your Joomla website into a magical promotional experience.
A luxurious animated gift box opens to reveal personalized greetings, exclusive coupon codes, special offers and promotional buttons.
Animated golden particles, confetti, snowfall, glowing light rays and optional MP3 sounds create an elegant and memorable presentation.
The extension combines scalable SVG graphics, CSS animations and JavaScript effects. No real-time 3D engine is required.
01. System Requirements
- Joomla 6 website
- Hosting environment meeting Joomla 6 requirements
- Modern browser with JavaScript enabled
- Browser support for HTML dialog elements
- Permission to install Joomla extensions
- No additional JavaScript framework required
- No external audio service required for included sounds
02. Installation
- Download the Magic Gift Box Deluxe ZIP package.
- Log in to your Joomla administrator panel.
- Navigate to System → Install → Extensions.
-
Upload the installation package:
mod_pcdidi_magicgiftbox_v1.0.6_DELUXE_Joomla6.zip - Complete the Joomla installation process.
- Navigate to Content → Site Modules.
- Create or open the PC-DIDI Magic Gift Box Deluxe module.
- Choose an available module position.
- Set Show Title to Hide.
- Set the module status to Published.
- Configure the desired menu assignments.
- Save the module and test your website.
Install the new ZIP package directly over the previous version. The extension uses the same module identifier.
Back up your website before updating. Review your module settings afterwards and clear the Joomla cache if necessary.
03. Integrated Luxury Designs
Four elegant color themes are available directly in the General settings tab.
Elegant burgundy and gold for premium promotional campaigns.
Festive green and gold for seasonal Christmas offers.
Elegant rose tones for Valentine's Day, weddings and beauty promotions.
Sophisticated midnight blue for festive celebrations.
Select your preferred design in General → Design.
04. General Module Settings
| Setting | Description |
|---|---|
| Design | Luxury Gold, Christmas, Romantic or New Year. |
| Opening mode | Open automatically or manually using the launcher button. |
| Frequency | Once per browser session or every page load. |
| Popup position | Display the popup on the left, in the center or on the right. |
| Delay (seconds) | Automatic opening delay. Range: 0–60 seconds. Default: 2. |
| Desktop width | Adjustable from 240 to 1200 px. Default: 650 px. |
| Mobile width | Adjustable from 180 to 700 px. Default: 360 px. |
| Background dimming | Adjustable from 0% to 100%. Default: 85%. |
| Auto close | Automatically close the popup after 0–120 seconds. Set to 0 to disable automatic closing. |
| Show launcher | Enable or disable the manual opening button. Default: No. |
| Hide on mobile | Disable the module on smartphones. Default: No. |
In automatic mode, the launcher button can be completely hidden.
In manual mode, the launcher is displayed automatically so that visitors can open the gift box.
05. Customize All Popup Texts
Navigate to the Popup texts tab to personalize your complete presentation.
| Text field | Example |
|---|---|
| Top label | A magical surprise |
| Headline | Your exclusive gift! |
| Description | Discover your special offer. |
| Coupon code | MAGIC10 |
| Copy label | Copy code |
| Copied label | Copied! |
| CTA label | Discover offer |
| CTA URL | /special-offers |
| Second CTA label | Book now |
| Second CTA URL | /booking |
| Launcher text | Open gift |
| Close label | Close |
| Play audio label | Play sound |
| Stop audio label | Stop sound |
| Countdown label | Offer ends in |
| Countdown: Days | Days |
| Countdown: Hours | Hours |
| Countdown: Minutes | Minutes |
| Countdown: Seconds | Seconds |
Leave the top label, headline, description or coupon code empty to hide the corresponding content.
Keep meaningful labels for interactive controls to ensure accessibility.
06. Coupon and Marketing Functions
Magic Gift Box Deluxe can reveal a special promotional code after the animated gift box opens.
Coupon display example
Create a promotional offer
- Open the Popup texts tab.
- Enter your promotional headline.
- Add a description of your offer.
-
Enter your coupon code,
for example
WINTER20. - Enter the Copy and Copied button labels.
- Configure a CTA button label and its destination URL.
- Add an optional second CTA button.
- Save and test the presentation.
The module displays and copies promotional codes. It does not create, validate or redeem coupons in your online shop.
The corresponding discount must be configured separately in your e-commerce or booking system.
CTA button examples
| Button label | Destination URL example |
|---|---|
| Shop now | /shop |
| Book your holiday | /booking |
| Discover our offers | /special-offers |
| Contact us | /contact |
Replace these examples with your actual website URLs. Both CTA buttons require a label and a valid URL. Leave either field empty to hide that button.
07. Luxury Countdown
The compact luxury countdown features four individual golden number tiles with fully adjustable dimensions.
Desktop and smartphone widths can be configured separately to ensure an elegant presentation on different screen sizes.
Static countdown design preview
Set a countdown deadline
- Open the Magic Gift Box Deluxe module.
- Navigate to Popup texts.
- Locate the setting Countdown: date and time.
- Select the desired date using the calendar.
- Enter the desired time.
- Configure the countdown labels.
- Open the Countdown design tab.
- Set Show countdown to Yes.
- Save and test the countdown.
The countdown calendar uses your Joomla administrator user time zone. Joomla stores the selected deadline in UTC, which is used by the frontend timer.
Check your Joomla user time zone before configuring important promotional deadlines.
Countdown design settings
| Setting | Range | Default |
|---|---|---|
| Show countdown | Yes / No | Yes |
| Desktop width | 180–600 px | 280 px |
| Mobile width | 160–500 px | 240 px |
| Number size | 14–48 px | 23 px |
| Label size | 8–16 px | 9 px |
| Box spacing | 0–20 px | 5 px |
| Vertical padding | 2–20 px | 6 px |
| Corner radius | 0–24 px | 8 px |
Recommended compact countdown
| Desktop width | 260–280 px |
| Mobile width | 220–240 px |
| Number size | 22 px |
| Label size | 9 px |
| Box spacing | 5 px |
| Vertical padding | 6 px |
| Corner radius | 8 px |
When the selected deadline is reached, the countdown displays zero.
The timer does not automatically deactivate your coupon code or promotional buttons. Configure the actual expiration separately in your shop system or use Joomla's module publishing schedule.
08. Cinematic Deluxe Effects
Open the Deluxe effects tab to configure the animated gift presentation.
A separately animated gift box lid reveals your personalized promotion.
Animated golden particles create a magical luxury atmosphere.
Colorful animated confetti emphasizes the gift opening.
Animated snowflakes create a beautiful winter atmosphere.
Golden illumination enhances the magical gift reveal.
Gentle continuous animations add movement to the gift graphic.
| Effect setting | Default |
|---|---|
| Gold particles | Enabled |
| Confetti | Enabled |
| Snowfall | Disabled |
| Light rays and glow | Enabled |
| Living motion | Enabled |
| Effect intensity | 70% |
Adjust the intensity between 0% and 100%. Individual effect switches allow you to create a more subtle or dramatic presentation.
09. Integrated MP3 Audio
Magic Gift Box Deluxe includes four synthesized sound effects and supports custom MP3 audio files.
| Audio selection | Description |
|---|---|
| Off | Disable all audio. |
| Magic chime | Magical opening sound. |
| Christmas bells | Festive bell effect. |
| Sparkle | Decorative magical sound. |
| Gift opening | Sound for the gift reveal. |
| Custom MP3 | Use your own MP3 recording. |
Audio configuration
| Setting | Description |
|---|---|
| Audio | Select a sound preset, custom MP3 or Off. Default: Off. |
| Play sound automatically | Yes: attempt playback when the popup opens. No: only play when the visitor clicks the sound button. Default: Yes. |
| Custom audio URL | Enter your own MP3 file path or a complete HTTPS URL. |
| Volume | Adjustable from 0% to 100%. Default: 35%. |
| Loop audio | Repeat the selected sound. Default: No. |
Use your own MP3 file
- Prepare an MP3 file that you are authorized to publish.
- Open your hosting file manager or connect via FTP.
-
Create a directory such as
images/audio/. -
Upload your audio file,
for example
gift.mp3. - Open the Magic Gift Box Deluxe module.
- Navigate to Deluxe effects.
- Select Custom MP3 under Audio.
- Enter the path in Custom audio URL.
- Configure automatic playback and volume.
- Save the module and test the sound.
Relative file path:
images/audio/gift.mp3
Complete HTTPS URL:
https://your-domain.com/images/audio/gift.mp3
Replace these examples with the actual location of your MP3 file.
The custom audio field becomes visible after selecting Custom MP3. Direct audio uploads through the module settings are not included.
Modern browsers may prevent automatic audio playback until the visitor interacts with the website.
If automatic playback is blocked, the visitor can start the sound using the Play sound button inside the popup.
Closing the popup automatically stops the sound and resets its playback position.
10. SP Page Builder Integration
- Create and configure the Joomla module.
- Publish the module.
- Open your page in SP Page Builder.
- Add a Joomla Module addon.
- Select PC-DIDI Magic Gift Box Deluxe.
- Disable the module title if necessary.
- Save your page and clear relevant caches.
- Test the effect on desktop and mobile devices.
The module moves its root element into the document body and uses a native HTML dialog for the popup presentation.
This places the popup in the browser's top layer, helping it appear above sticky headers and normal website content.
Avoid publishing the same module instance both through a template position and a Page Builder addon on the same page.
11. Recommended Deluxe Configuration
| Setting | Recommended value |
|---|---|
| Design | Luxury Gold |
| Opening mode | Automatic |
| Popup position | Center |
| Delay | 2 seconds |
| Frequency | Once per session |
| Desktop width | 600 px |
| Mobile width | 340 px |
| Background dimming | 85% |
| Effect intensity | 70% |
| Gold particles | Yes |
| Confetti | Yes |
| Snowfall | Optional |
| Light rays and glow | Yes |
| Living motion | Yes |
| Audio | Magic chime or custom MP3 |
| Automatic audio | Optional |
| Volume | 30% |
| Loop audio | No |
| Auto close | 0 – Disabled |
| Show launcher | No |
| Countdown desktop width | 280 px |
| Countdown mobile width | 240 px |
| Countdown number size | 23 px |
Disable automatic closing for coupon campaigns. This gives visitors enough time to read your offer, copy the promotional code and select a call-to-action button.
12. Ideal Applications
Reveal exclusive booking discounts, holiday packages and seasonal promotions.
Present discount codes, special offers and sales campaigns.
Promote special menus, vouchers and seasonal offers.
Reveal luxury treatment vouchers, beauty promotions and gift certificates.
Combine festive colors, snowfall and Christmas audio.
Celebrate anniversaries, New Year and limited-time campaigns.
13. Troubleshooting and FAQ
Why does the gift box not appear?
Verify that the module is published, assigned to the correct menu items and placed in a rendered module position. Check the opening mode and clear your caches.
Why does the popup only appear once?
The frequency is probably set to Once per session. Select Every page load for repeated automatic activation or test in a new private browser session.
How can I change the popup position?
Open the General tab and select Left, Center or Right under Popup position.
How can I make the gift box smaller?
Reduce Desktop width or Mobile width in the General settings tab.
How can I hide the opening button?
Set Opening mode to Automatic and Show launcher to No. Manual mode automatically displays the launcher button.
How can I make the countdown smaller?
Open Countdown design and reduce Desktop width, Mobile width, Number size, Vertical padding and Box spacing.
A desktop width of 260–280 px is recommended for a compact design.
How can I disable the countdown?
Set Show countdown to No in the Countdown design tab. Alternatively, clear the countdown deadline.
Why does the countdown display zero?
Check that the selected date and time are in the future. Verify your Joomla user time zone and ensure JavaScript is running.
Can I translate the countdown labels?
Yes. Days, Hours, Minutes and Seconds can be edited individually in Popup texts. You can also use short labels such as D, H, MIN and SEC.
Does the module validate coupon codes?
No. The module displays promotional codes and provides a copy function. Coupon validation and discounts must be configured in your shop or booking system.
Why does the Copy code button not copy?
Clipboard access depends on browser permissions and a secure website context such as HTTPS. If copying fails, the module attempts to select the coupon text for manual copying.
How can I remove the coupon code?
Leave the Coupon code field empty in the Popup texts tab.
Why is my CTA button missing?
Both the CTA label and CTA URL must contain valid values. Check that the URL uses an appropriate HTTP, HTTPS or relative website address.
Where can I enter my own MP3 file?
Open Deluxe effects, select Custom MP3 under Audio and enter your file path in Custom audio URL.
Can I disable automatic sound playback?
Yes. Set Play sound automatically to No. Visitors can still activate the sound manually using the sound button.
Why does the sound not start automatically?
Browser autoplay restrictions may prevent automatic audio playback. Use the Play sound button to activate audio.
Why are the animated particles missing?
Check the effect switches and intensity. Particle animations respect the browser's reduced-motion preference.
Can visitors close the gift box with the keyboard?
Yes. The native HTML dialog supports closing with the Escape key. Visitors can also use the close button.
How can I disable the module after a campaign?
Unpublish the module in Joomla or configure Joomla's publishing finish date.
The design looks incorrect after updating.
Clear the Joomla cache and refresh your browser. Check that the latest module package has been installed successfully.
If you use an optimization extension, clear its generated CSS and JavaScript cache. Content Security Policy settings may also affect inline scripts and styles.
14. Technical Information
| Extension type | Joomla Site Module |
| Module identifier | mod_pcdidi_magicgiftbox |
| Version | 1.0.6 Deluxe |
| Compatibility target | Joomla 6 |
| Languages | English and German |
| Design variants | Four integrated color themes |
| Technologies | PHP, CSS, JavaScript, SVG and Canvas |
| Popup technology | Native HTML dialog |
| Asset integration | Joomla Web Asset Manager |
| Audio | Four included MP3 files and custom MP3 URL |
| License | GNU GPL version 2 or later |
| Developer | PC-DIDI |
15. Joomla Update System
The extension includes a Joomla Update Server configuration in its installation manifest.
https://pc-didi.at/updates/mod_pcdidi_magicgiftbox.xml
Automatic update notifications depend on the availability and current release information of the published update server.
New versions can also be installed directly through the Joomla Extension Manager.
