« Admin Expansion Updated to 1.1.2 | Main | Summer Heat Got You Down? »

Tip: Alternate Squeeze Page for Giveaways

If you're running a giveaway promotion (whether using the built-in 7DSS giveaway feature or an Expansion Pack custom giveaway) in addition to leaving the order option open, you've probably noticed that your squeeze page says something like "Thank you for your purchase" even if the user is getting your product through a giveaway. I'm a bit of a stickler for communicating to the user accurately, so I needed to come up with a way of showing one squeeze page to a person purchasing the product and another squeeze page to a person getting the product through a giveaway.

It turns out this was quite easy to do: just six lines of code to add to your squeeze page and a modfied squeeze page that I called squeeze_giveaway.html. Using a text editor, add these lines to the top of your squeeze.html:

<?php if (isset($_COOKIE['giveaway'])) {
     global $sys_template_folder;
     $filename = $sys_template_folder . "squeeze_giveaway.html";
     showTemplate($filename);
} else { ?>

and this line to the bottom of your squeeze.html:

<?php } ?>

Your squeeze.html now looks like this:

<?php if (isset($_COOKIE['giveaway'])) {
     global $sys_template_folder;
     $filename = $sys_template_folder . "squeeze_giveaway.html";
     showTemplate($filename);
} else { ?>
<html>
... the rest of your squeeze page here ...
</html>
<?php } ?>

If you've named your giveaway squeeze page as I have (you can change it to whatever you want, but make sure you change the "filename = " line accordingly), when a user clicks your giveaway link they will see your new squeeze page. Users clicking your order link, however, will still see your normal squeeze page, unless their giveaway cookie is set.

You can also use the same code to load a modified download.html (front-end product download) or downloadoto.hml (OTO product download) page. Just create the appropriate pages and add the code to download.html and/or downloadoto.html. Make sure you change the "filename = " line!

Have fun with this!

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on August 19, 2007 7:13 PM.

The previous post in this blog was Admin Expansion Updated to 1.1.2.

The next post in this blog is Summer Heat Got You Down?.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.35