Setup the clixGalore Conversion Code to work with Shopp

by Lorenzo Orlando Caum on April 7, 2013

clixGalore is an affiliate network that you can setup with Shopp. Adding an affiliate program to your Shopp online store is an easy way to grow your marketing and increase sales. In this post, we’ll show you how to configure Shopp to work with clixGalore.

The clixGalore code is a conversional pixel that fires after a specific event has taken place. Similar to other affiliate programs for Shopp, this code should be setup to run after a successful checkout on the Shopp thanks page.

Here is an example of the code from clixGalore:

<!--begin clixGalore code copyright 2013 -->
<img
src="https://www.clixGalore.com/AdvTransaction.aspx?AdID=1234&SV=567&OID=890" height="0" width="0" border="0">
<!--end clixGalore code -->
  • AdID = 1234 (will be unique for your account)
  • SV = 567 (Shopp order total)
  • OID = 890 (Shopp order transaction id)

Now its time to swap in the example above with the Shopp API calls for order total and order transaction id:

<!--begin clixGalore code copyright 2013 -->
<img
src="https://www.clixGalore.com/AdvTransaction.aspx?AdID=1234&SV=&lt;?php echo floatvalue(shopp('purchase.get-total')); ?&gt;&OID=&lt;?php shopp('purchase','transactionid'); ?&gt;" height="0" width="0" border="0">
<!--end clixGalore code -->

And let us revise the code snippet one more time:

<!--begin clixGalore code copyright 2013 -->
<img
src="https://www.clixGalore.com/AdvTransaction.aspx?AdID=youradid&SV=&lt;?php echo floatvalue(shopp('purchase.get-total')); ?&gt;&OID=&lt;?php shopp('purchase','transactionid'); ?&gt;" height="0" width="0" border="0">
<!--end clixGalore code -->

The above code is now nearly ready to use. You simply need to replace ‘youradid’ with your real Ad ID.

Here are the steps for inserting the code snippet in your Shopp thank you page.

  1. Login to your site with your favorite FTP client. We recommend Transmit (for Mac).
  2. Browse to the Shopp content templates folder (/wp-content/themes/yourthemefolder/shopp)
  3. Locate the thanks.php and create a backup of the file
  4. Open the file with a text editor
  5. Insert your code snippet towards the top of the file just after [php if (shopp('checkout','completed')] and save changes

Now run a test transaction and you should see the order data in your clixGalore account.

Notes: you can retrieve the order subtotal by using purchase.get-subtotal instead of purchase.get-total.

Related Posts Plugin for WordPress, Blogger...
  • Was this post helpful to you?
    Join our newsletter to receive updates!
  • Author: Lorenzo Orlando Caum

    Lorenzo Orlando Caum is the founder of Enzo12 LLC, a web engineering firm in Tampa, FL.

    Lorenzo contributes to the Shopp project as a member of the support team. He has written several WordPress extensions for Shopp.

    If you would like to know more about Lorenzo, you can follow @lorenzocaum on Twitter or check out his blog.

    Previous post:

    Next post: