Recently in Tip Category

Tip: Alternate Squeeze Page for Giveaways

| No Comments

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!

About this Archive

This page is an archive of recent entries in the Tip category.

The $7 Blacklist is the previous category.

Tutorial is the next category.

Find recent content on the main index or look in the archives to find all content.