Contributions
PopUp Promo
A simple Mod that allows you to create a popup ad in your store. Features includes:
* Turn on/off
* Pop once or every time
* Adwords Compliant (Ignores Google referrals)
* Ad Click closes popup and opens landing page
* Checks for session (spiders don't activate)
Cheers
Rob
Expand All / Collapse All
Bug fixed:
when clicking on "Close Windows", it redirects to your popup selected page... Ok now
French translation added
Update by: Matti Ressler - matti@suomedia.com
Copyright (c) 2004 Suomedia - http://suomedia.com
*New*: Admin configuration options. You will find the configuration settings at the bottom
of admin->configuration->my store:
Popup - set to 'true' to enable the popup
Popup Target - if set it will link the popup to a page when it is clicked - eg. product_info.php?products_id=22
Popup Message - Enter your popup message here - you may use html tags to format your message.
I did not include an option for "Pop once or every time" as outlined below (please spare your customers!
- it only pops up on the first page load) - the setting is still available in the file.
The popup no longer requires an image - this has now been set as a background image, so you may have both text
and image if you wish. To enable an image, simply upload an image named popup_promo.gif into your
catalog/images directory.
To do: Configuration options for popup size and screen position - these may be set manually in includes/popup_promo.js.php
EOF *new*
Apologies for the errors in previous packages - comes of trying to make the code universal and easy to use too late at night. Thanks also to Richard for already spotting and fixing some of my fat fingered typing errors.
Final 1.0 package attached with (hopefully) all remaining errors corrected.
Error occured from a function PopLand, and I therefore turned PopLand into a variable.
So I changed this in file popup_promo.php line 16:
///
// Set the landing page for advert below
// e.g. 'index.php?manufacturers_id=17&ref=popup_promo'
//
PopLand == "index.php?manufacturers_id=17&ref=popup_promo";
to this:
///
// Set the landing page for advert below
// e.g. 'index.php?manufacturers_id=17&ref=popup_promo'
//
$PopLand == "index.php?manufacturers_id=17&ref=popup_promo";
secondly I changed Line 34 from this:
<body onClick="loadPage('<?php echo PopLand; ?>');">
to this:
<body onClick="loadPage('<?php echo $PopLand; ?>');">
And thats all folks!
All credit to the Author: Rob Woodgate for a much needed contribution.
I can't take any credit as I only put 2 keystrokes in.
Fixes a typo in the /catalog/popup_promo./php file.
Complete package re-attached.
A simple Mod that allows you to create a popup ad in your store. Features includes:
* Turn on/off
* Pop once or every time
* Adwords Compliant (Ignores Google referrals)
* Ad Click closes popup and opens landing page
* Checks for session (spiders don't activate)
Cheers
Rob
Note: Contributions are used at own risk.