Wix Answers

Do not post confidential info such as passwords or financial information.
Cancel
Post Question
IdoWix
At this time we are not able to reroute IPNs. We will update when this changes.

Replies(18 replies total)

Show my replies first
  • gili213

    Replied by gili213 June 24, 2014

    Hello any news with rerouting IPN  to other site than yours ?

    its very needed .

    Please do not override paypal settings.

    Visit Us at: WWW.QPG.CO.IL | Contact us: QPGStore@gmail.com
    • Nati Wix Team

      Replied by Nati June 25, 2014

      Hey gili213.

       

      I am afraid that at this time we are not able to reroute IPNs. We will update when this changes.

       

      Thank you for your patience and understanding.

      Best Regards, Nati - Wix Support Team
  • kronosap

    Replied by kronosap March 22, 2014

    hello ido,

    you mentioned: 

    "We are also able to forward the received IPN message to your server (or anywhere else you choose)."

    how can i set it?

    i use icount.co.il for tax invoiceing, i got to have the IPN message send to my personal address at icount sever (will send it to you in privet)

    without this setup i got to issue an invoice for every sell manualy which is very time consuming

    thank you

    michael

    michael

     

    • Leah Wix Team

      Replied by Leah March 22, 2014

      Dear Michael,

       

      I'm afraid that at this time we are not able to reroute IPNs. We will update when this changes.

       

      Thank you for your patience and understanding.

      Sincerely, Leah Wix Team
  • IdoWix

    Replied by IdoWix January 27, 2013

    At this time we are not able to reroute IPNs. We will update when this changes.
  • Gabriel Wix Team

    Replied by Gabriel January 26, 2013

    Hi,

    Please provide us with the information here and we will do our best to further assist.

     

    Thanks,

    Gabriel - Wix
  • hemlife

    Replied by hemlife January 24, 2013

    How do I contact the support team to provide my PayPal account email and the URL where I want the IPNs to be forwarded to.

  • MakeYourCakes

    Replied by MakeYourCakes February 14, 2012

    I have the same problem with Paypal IPN notifications.

    Wix is overriding my URL and I can't process my payments.

    Does anyone know how to solve it?

    I sent an email to Wix Team but I haven't received any answer.

    Thanks

  • Nina

    Replied by Nina November 22, 2011

    Hi, ndcamacho

     

    This issue is being handled by Wix. There is no need for you to do anything.

    We apologize for the inconvenience.

     

    Nina

    Wix team

    Nina, Wix team
  • ndcamacho

    Replied by ndcamacho November 21, 2011

    I am getting the following message from paypal about my wix page "Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:"

    Got this message from paypal "Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:".
     

  • IdoWix

    Replied by IdoWix October 30, 2011

    Molly, I'm afraid this will not be possible to do in Wix. The main problem is that you will not be able to verify that the affiliate actually made a sale and that the page was not refreshed - as Shareasale recommend. This requires server-side processing. Sorry.

  • molly-tedesco

    Replied by molly-tedesco October 28, 2011

    Thanks, This is the info Shareasale gives on their site...

    In order for the ShareASale.com system to work, you will need to place a small piece of HTML code on the page where you want to reward your affiliates. Please read this entire page before copying your specific code which is given at the bottom of this page.

    These instructions may be difficult to understand for someone who has not worked with HTML or affiliate programs in the past - PLEASE do not hesitate to call us and we will be happy to explain and help you with the implementation of this code. For an experienced developer, this implementation should take no more than a few minutes.

    In order to complete this step of the setup, your technical staff will place the necessary Shareasale.com tracking code, and complete a test of the system.

    The code given to you at the bottom of this page, should be placed in the HTML body of your “Thank You” page, which is also referred to as the confirmation, and/or receipt page. This page is on your website - and for Per-Sale programs typically displays a "Thank You" summarizing an order. For Per-Lead programs, typically this is the page after they have completed filling out a form, subscription, etc...

    It is important that this confirmation page can not be accessed without completing a sale or a lead, and also can not be reloaded or refreshed.

     

    Tracking Code details for 1ShoppingCart

    You will need to create a custom thank you page in ASP, or another scripting language. You can then use code below:
    <img src="https://shareasale.com/sale.cfm?amount=<%Response.Write(Request.Form("Total"))%>&tracking=<%Response.Write(Request.Form("orderID"))%>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     


    In PHP, the code to use would be<img src="https://shareasale.com/sale.cfm?amount=<?php echo $_POST['Total']; ?>&tracking=<?php echo $_POST['orderID']; ?>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for 2Checkout

    You can use the Tracking Code below in the 2Checkout Seller Admin under Look and Feel on the lower half of the page:https://shareasale.com/sale.cfm?amount=$a_total&tracking=$a_order&transtype=sale&merchantID=XXXXWhere you replace XXXX with your merchant ID number.

    From the 2Checkout website:

    http://www.2checkout.com/community/blog/category/knowledge-base/tech-support/affiliate-programs/#post-44

     

    Tracking Code details for 3dCart

    The tracking code can be added on the checkout 4, SETTINGS > DESIGN > TITLES AND CONTENT > CHECKOUT 4.

    The tracking code to use is:<img src="https://shareasale.com/sale.cfm?amount=[osubtotal]&tracking=[invoicenum]&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

    3dCart Knowledgebase Article

     

    Tracking Code details for AbleCommerce.

    There are two pages where you need to make changes.

    In the page: ConLib/Recieptpage.ascx.cs, just below the line:

    private Order _Order;

    add the following code: public string GetImage { get { string image = "<img width=\"1\" height=\"1\" SRC=\"https://shareasale.com/sale.cfm?amount=" + _Order.TotalCharges.ToString() + "&tracking=" + _Order.OrderId.ToString() + "&transtype=sale&merchantID=XXXX\" />"; return image; } }
    Where you replace XXXX with your merchant ID number.

    In the page: ConLib/RecieptPage.ascx, just below the line, <%@ Register Src="~/Checkout/AffiliateTracker.ascx" TagName="AffiliateTracker" TagPrefix="uc" %> add the following code: <% = GetImage %>

     

    Tracking Code details for Actinic

    You can use the tracking code below:

    <img src=https://shareasale.com/sale.cfm?amount=amount=NETQUOTEVAR:NUMERICORDERTOTALCGI&tracking=NETQUOTEVAR:THEORDERNUMBER&transtype=SALE&merchantID=XXXX width="1" height="1">Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for Amazon Web Stores

    The ShareASale code can be placed inside of the last page widget on the order confirmation page.

    Step 1: The javascript variables must be enabled on the Order Confirmation page by going to Properties > Page Properties > Javascript Variables and check "Enable Javascript Variables", save.

    Step 2: You have to change the Widget editor to "custom script" from "WYSIWYG". Placing the javascript in WYSIWYG mode will not work.

    Step 3: Copy and paste the following code<script language="javascript" type="text/javascript"> var sasstring ="<img src=\"https://shareasale.com/sale.cfm?amount=" + wba_confirmation.order[0].subTotal + "&tracking=" + wba_confirmation.order[0].orderId + "&transtype=sale&merchantID=XXXX\" width=\"1\" height=\"1\">"; document.write(sasstring); </script> Where you replace XXXX with your merchant ID number. It is critical that the above code is exactly 7 lines when you paste it. Please verify that the line breaks are preserved exactly as shown above.

     

    Tracking Code details for Americart

    The Americart system is already integrated with the ShareASale system. All you need to do in enter in your ShareASale MerchantID in your control panel and the tracking code will be automatically set up for you.

     

    Tracking Code details for AspDotNetStoreFront

    You can use the following code, and add it into any topic that displays only on your order confirmation page. One possibility is the topic called "GoogleTrackingCode", if you are currently using it:<img src="https://shareasale.com/sale.cfm?amount=(!ORDERTOTAL!)&tracking=(!ORDERNUMBER!)&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your Merchant ID Number.

     

    Tracking Code details for Avetar Shopping System

    You can use the code:<img src="https://shareasale.com/sale.cfm?amount=<%= Total %>&tracking=<%= OID %>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your Merchant ID Number.

     

    Tracking Code details for Big Commerce shopping cart

    You will paste this code into the Conversion Tracking Code box on the Affiliate Settings page under the Settings menu in your store's control panel.

    The code to use is:<img src="https://shareasale.com/sale.cfm?amount=%%ORDER_AMOUNT%%&tracking=%%ORDER_ID%%&transtype=sale&merchantID=XXXXX" width="1" height="1">Where you replace XXXXX with your merchant ID number.

     

    Tracking Code details for Builderspot.com

    You can then use code below:
    <img src="https://shareasale.com/sale.cfm?amount=[ordervalue]&tracking=[orderid]&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for CandyPress

    You can use the tracking code below:

    <img src="https://shareasale.com/sale.cfm?amount=<%=subTotal%>&tracking=<%=qIdOrder%>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

    The code should be added to your 60_PayReturn.asp page. Find the line that reads:<!-- End Outer Table Cell -->And add the code just above it.

     

    Tracking Code details for Cart32

    You can use the tracking code below:

    <img src="https://shareasale.com/sale.cfm?amount=<!SubTotal>&tracking=<!OrderNo>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

    Cart32 Knowledgebase Article

     

    Tracking Code details for CartManager.net

    To integrate with CartManager.net:
    Log into the Cart Administration
    go to "Cart Settings",
    go to step #8, "Advanced Settings".
    Paste the following into HTML For Bottom Of Receipt: <img src="https://shareasale.com/sale.cfm?amount=PRINTSUBTOTAL&tracking=PRINTORDERNUMBER&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

    See the CartManager.net website for more details.

     

    Tracking Code details for ChannelAdvisor.com

    You can enter the tracking code below into your backend, in the box titled Checkout Order Confirmation Page tracking:

    <img src="https://shareasale.com/sale.cfm?amount={{ORDERSUBTOTAL}}&tracking={{ORDERID}}&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for CityMax.com

    In your shopping cart admin area, click on tools, then shopping cart, then power tools.

    Enter the code below in the Affiliate Conversion Tracking box:<img src="https://shareasale.com/sale.cfm?amount=[ordervalue]&tracking=[orderid]&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

    See the page following page at the CityMax.com site for more details.

     

    Tracking Code details for ClickCartPro

    In your cart backend, navigate to the page: HTML Pages & Elements | Manage Site Elements | Order Confirmation - Third Party Affiliate Placeholder

    Place the tracking code below in that box and save your changes.

    <img src="https://shareasale.com/sale.cfm?amount=(CGIVAR)tracking_subtotal(/CGIVAR)&tracking=(CGIVAR)tracking_id(/CGIVAR)&transtype=SALE&merchantID=XXXX width="1" height="1">Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for CRELoaded

    There are two pages where you need to make changes.

    In the page: catalog/checkout_process.php, just above the line:

    // End AFSv1.0
    $cart->reset(true);

    add the following code:

     // Begin Affiliate Program - Sales Tracking
    
    $orders_total=$currencies->format($cart->show_total()- $total_tax); 
    
    tep_session_register('orders_total'); 
    
    $orders_id=$insert_id; 
    
    tep_session_register('orders_id'); 
    
    // End Affiliate Program - Sales Tracking 
    
    
    
    In the page: catalog/checkout_success.tpl.php, just below the line, <h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3> add the following code: <!-- Start Affiliate Program - Sales Tracking --> <?php echo '<img src="https://shareasale.com/sale.cfm?amount='.$orders_total.'&tracking='.$orders_id.'&transtype=sale&merchantID=XXXX" width="1" height="1">'; tep_session_unregister('orders_total'); tep_session_unregister('orders_id'); ?> <!-- // End Affiliate Program - Sales Tracking --> Where you replace XXXX with your merchant ID number.

     

     

    Tracking Code details for CubeCart

    Version 4
    Please download the following .zip archive: ShareASale CubeCart Module.zip. Unzip this and upload the ShareASale folder to your server at the path: modules\affiliate Then, in your backend, your should be able to see a new affiliate module for ShareASale, enable it, and add in your merchantID number.

     


    Version 3
    Please download the following .zip archive: ShareASale CubeCart Module version 3.zip. Unzip this and upload the ShareASale folder to your server at the path: modules\affiliate Then, in your backend, your should be able to see a new affiliate module for ShareASale, enable it, and add in your merchantID number.

     

    Tracking Code details for Dansie Shopping Cart

    You will need to add the ShareASale tracking code to Personal Variable #6 in your vars.dat file.

    The code to insert as that variable is:<img src="https://shareasale.com/sale.cfm?amount=#subtotal#&tracking=#orderid#&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for Easystorecreator.com

    You can use the tracking code below in your receipt template:

    <img src="https://shareasale.com/sale.cfm?amount=%OBJ_SUBTOTAL_OBJ%&tracking=%OBJ_ORDER_OBJ%&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for eCommerce Templates

    There are two versions of the ecommercetemplates cart, ASP and PHP.

    For the ASP version:

    Try this first, put the following code into the thanks.asp page: <img src="https://shareasale.com/sale.cfm?amount=<%=ordTotal%>&tracking=<%=ordID%>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

    If that does not work, make the following change in addition to the change above:

    Add the line:<% ordTotal=0 %> Just above this line in your thanks.asp page<!--#include file="vsadmin/db_conn_open.asp"-->



    For the PHP version:

    Put this just below the include link for vsadmin/inc/incthanks.php in your
    thanks.php page.

    <img src="https://shareasale.com/sale.cfm?amount=<?php print $ordTotal?>&tracking=<?php print $sorderid?>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

    If that does not work - or does not give you the correct order total, try this:

    <img src="https://shareasale.com/sale.cfm?amount=<?php print $ordGrandTotal?>&tracking=<?php print $ordID?>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.



    For reference - see the help topics below at the eCommerceTemplates website:

    http://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=12489&SearchTerms=shareasale

    http://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=15982&SearchTerms=shareasale

     

    Tracking Code details for e-junkie.com.

    Go to E-junkie Admin > Account Preferences and in the HTML field, enter HTML/CSS/JavaScript you want to be included in all your "thank you" pages. The tracking code to include is:<img src="https://shareasale.com/sale.cfm?amount=[%total%]&tracking=[%invoice%]&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

    For additional reference, see the e-junkie.com site.

     

    Tracking Code details for eSellerate.com

    You can use the tracking code below:

    <img src="https://shareasale.com/sale.cfm?amount=<ORDER_AMT>&tracking=<ORDER_ID>&transtype=SALE&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for GoDaddy Resellers

    You can add the ShareASale tracking code to your GoDaddy reseller account from the "Marketing Tools" menu, under "Affiliate Programs". First, get the tracking code from your ShareASale account by selecting the "My shopping cart is not listed" menu option. Then, enter it in the "Affiliate Program Tracking URL Parameter Data" field in your GoDaddy account. Be sure to replace the three ALLCAPS words in our tracking code with appropriate values. Your Tracking Code:
    <img src="https://shareasale.com/sale.cfm?amount=AMOUNTOFSALE&tracking=TRACKINGNUMBER&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

    AMOUNTOFSALE and TRACKINGNUMBER should be replaced with special keywords that will display the order total and order number. These special keywords are listed in you GoDaddy account on the "Affiliate Programs" page.

    See the GoDaddy.com help topic here: http://help.godaddy.com/article.php?article_id=3863&topic_id=220

     

    Tracking Code details for goemerchant.com

    You can then use code below:
    <img src="https://shareasale.com/sale.cfm?amount={Total}&tracking={OrderID}&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

     

    Tracking Code details for Google Checkout

    Google Checkout will allow you to include tracking pixels on the order confirmation page, through their Web Beacon feature.

    If you are using Google's shopping cart (HTML API) integration method, you will need to place the following code: <form id="googlecart-checkout-config"> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.url" value="https://shareasale.com/sale.cfm?transtype=sale&merchantID=XXXX"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-1.name" value="tracking"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-1.type" value="order-id"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-2.name" value="amount"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-2.type" value="order-subtotal"/> </form>Where you replace the XXXX with your ShareASale Merchant ID number.

    Please place this code on the same page as your checkout button, below any other Google checkout code you have on that page.


     

    If you are using Google's Buy Now Button integration method, you will need to add the following code to each of your Buy Now buttons: <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.url" value="https://shareasale.com/sale.cfm?transtype=sale&merchantID=XXXX"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-1.name" value="tracking"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-1.type" value="order-id"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-2.name" value="amount"/> <input type="hidden" name="checkout-flow-support.merchant-checkout-flow-support.parameterized-urls.parameterized-url-1.parameters.url-parameter-2.type" value="order-subtotal"/> Where you replace the XXXX with your ShareASale Merchant ID number.

    Please place this code above the closing form tag in your Buy Now button.


    If you are using Google's XML API integration method, please use the code below:

    In your Cart XML, you will need to include an XML tag for parameterized-url. For ShareASale.com, your code should look like this: ... <merchant-checkout-flow-support> <parameterized-urls> <parameterized-url url="https://shareasale.com/sale.cfm?transtype=sale&merchantID=XXXX"> <parameters> <url-parameter name="tracking" type="order-id" /> <url-parameter name="amount" type="order-subtotal" /> </parameters> </parameterized-url> </parameterized-urls> ... </merchant-checkout-flow-support> ...Where you replace the XXXX with your ShareASale Merchant ID number.

    For more details, please see Google's documentation: http://code.google.com/apis/checkout/developer/checkout_pixel_tracking.html

     

    Tracking Code details for KingCart

    Fill in the following on the program settings page under the Paths section. Bold are things you enter in:

    URL of your Affiliate Program:
    https://shareasale.com/sale.cfm

    Select the Throw 1x1 image from the options below:
    Send Get to Affiliate Program
    Redirect to Affiliate Thank You Page
    Throw 1x1 image to Affiliate Program

    Subtotal Name ["a" if left blank]: amount
    Full Total Name [not sent if left blank]:
    Order Number Name ["c" if left blank]: tracking

     

      Name Value
    Affiliate User ID Name [not sent if left blank]: merchantID XXXX
    Any Additional Pair [not sent if left blank]: transtype sale
    Where you replace XXXX with your Merchant ID number.

     

    Tracking Code details for Magento

    You will be marking changes to the following file:

    /app/design/frontend/default/[templatename]/template/checkout/success.phtml

    (if this file does not exist, please modify this file instead: app/design/frontend/base/default/template/checkout/success.phtml )

    Find the line that reads:<p><strong><?php echo $this->__('Thank you for your purchase!') ?></strong></p> and just below that line, add the following code:<?php $_customerId = Mage::getSingleton('customer/session')->getCustomerId(); $lastOrderId = Mage::getSingleton('checkout/session')->getLastOrderId(); $order = Mage::getSingleton('sales/order'); $order->load($lastOrderId); $_totalData =$order->getData(); $_sub = $_totalData['subtotal']; ?> <img src="https://shareasale.com/sale.cfm?tracking=<?php echo $this->getOrderId() ?>&amount=<?php echo $_sub ?>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

     

    Tracking Code details for Make-A-Store

    You can place the following tracking code on your order confirmation page: <img src="https://shareasale.com/sale.cfm?amount=<subtotal>&tracking=<order_id>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

     

    Tracking Code details for Mals-e

    You will need to upgrade to the Premium version of the cart. Click on the "Cart Set-Up" option, then on the "Other Messages and General Settings" link. Add the tracking code to both the secure and non-secure boxes for the exit message. The tracking code should be:

    <img src="https://shareasale.com/sale.cfm?amount={sb}&tracking={id}&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for Miva Merchants

    Miva version 5.0 and Above

    You will need to do is edit your order confirmation template (invoice). Add the following code:<img src="https://shareasale.com/sale.cfm?amount=&mvt:order:formatted_total;&tracking=&mvt:order:time;&transtype=SALE&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your MerchantID number

    Please note: Some merchants have had success using the variable &mvt:order:id; for the tracking variable, instead of using the &mvt:order:time; variable. Unfortunately, other merchants have not had success using this variable. Please contact ShareASale if you would like to try using this variable and need help testing.

    Please note that Miva 5 does not offer the order subtotal as a variable on the order confirmation template. If you are interested in using the order subtotal, there is a third party solution. Please see: http://www.emporiumplus.com/merchant2/merchant.mvc?Screen=PROD&Store_Code=wcw&Product_Code=1AA00223 for details. If you do purchase and install this third party solution, you can then use the variable &mvte:global:ordersubtotal; in place of &mvt:order:formatted_total;


    Miva Version 3 and 4

    You will need to order a module from Viking Coders (cost is $25) - they will also install the necessary module for your store at a charge of $25 additional if you choose. Click here to visit their order form.

    Instructions from Viking Coders

     

    Tracking Code details for ModernBill

    ModernBill Version 5.0 and higher

    The file to modify is the shopping/CheckoutSuccess.tpl

    Add the following code just above the last DIV HTML tag:<img src="https://shareasale.com/sale.cfm?amount={$invoiceInfo.invoiceAmount}&tracking={$invoiceInfo.invoiceNumber}&transtype=SALE&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     


    ModernBill Versions lower than 5.0

    The file to modify is wizard_submit_process.case.inc.php

    Search for the code below in your file:


    if ($z == 0) { ?>
    !-- REMOVE THIS LINE WHEN ACTIVE<tr><td colspan="2"><?
    // INSERT AFFILIATE CODE HERE
    // $invoice_amount
    // $invoice_id
    // $order_totals['sub_total']
    // $order_totals['pre_tax']
    // $order_totals['tax_due']
    // $order_totals['post_tax']
    ?></td></tr>
    REMOVE THIS LINE WHEN ACTIVE --
    <? }


    Remove the line:!-- REMOVE THIS LINE WHEN ACTIVE
    Remove the line:REMOVE THIS LINE WHEN ACTIVE --
    Replace the line:// INSERT AFFILIATE CODE HERE
    With the tracking code:echo '<img src="https://shareasale.com/sale.cfm?amount='.$order_totals['sub_total'].'&tracking='.$invoice_id.'&transtype=SALE&merchantID=XXXX" width="1" height="1">';Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for NetSuite

    For Netsuite Version 11 and higher

    In your backend system, Navigate to Setup >> Website >> Setup Website >> Shopping Tab.
    Go to the Order Confirmation Page
    On this page you will see the Order Tracking Script HTML box. Place the following tracking code into that box:<img src="https://shareasale.com/sale.cfm?amount=<%=getCurrentAttribute("confirmation", "subtotal")%>&tracking=<%=getCurrentAttribute("confirmation", "ordernumber")%>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.


    For Netsuite Versions lower than 11

    In your backend system, Navigate to Lists > Web Site > Tabs, and click Edit next to Checkout.

    Place the tracking code below in the Order Tracking Script HTML field

    <img src="https://shareasale.com/sale.cfm?amount=<%=getCurrentAttribute("confirmation", "subtotal")%>&tracking=<%=getCurrentAttribute("confirmation", "ordernumber")%>&transtype=sale&merchantID=XXXX" width="1" height="1">Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for NetworkSolutions/MonsterCommerce

    There are two versions of MonsterCommerce/NetworkSolutions Stores. Please follow the instructions for your version:

    New Version - released March of 2008

    Go to Operations > Payments > Edit Payment Method. In the "Confirmation Message" box, you should a row of icons along the top. Click the icon labeled "<>". This will open an edit window for you. At the bottom of the box, uncheck the box labeled "Word Wrap". Paste in the following code:&lt;p&gt; &lt;script type="text/javascript"&gt; var subtotal = '&lt;%Order.Total%&gt;'; var tracking = '&lt;%Order.Number%&gt;'; document.write('&lt;img src="https://shareasale.com/sale.cfm?amount=' + subtotal + '&amp;tracking=' + tracking + '&amp;transtype=SALE&amp;merchantID=XXXX" width="1" height="1"&gt;'); &lt;/script&gt; &lt;/p&gt;Where you replace XXXX with your MerchantID value. Line breaks are critical, so make sure our code pasted in exactly 7 lines. Click the "Apply" button. Our code will change slightly, this is fine. Then click the "OK" button. Finally, click the "Save" button.

    Repeat this process for each payment method.


    Original Version

    You will need to put the tracking code into your Order Confirmation Message of every payment method you are using located both in Checkout >> Online Payment Manager and Checkout >> Custom Payment Manager.

    To change the display of the order confirmation message you would do the following for each payment type you have defined under Checkout >> Online Payment Manager/Custom Payment Manager.

    To display the Order Number, simply use the Order Confirmation Message Variables, which are listed at the bottom of the Payment Manager screens. For example, you can change your order confirmation message to say 'Thank you [FIRSTNAME] for your order of $[TOTAL], your order number is [ORDERNUMBER].

    So, the tracking code should look like this:

    &lt;img src="https://shareasale.com/sale.cfm?amount=[ST]&amp;tracking=[ORDERNUMBER]&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

    Please note, we have had reports that this code does not properly account for Discounts and Coupons when calculating the order total. Replacing the variable [ST] with the variable [TOTAL] does properly account for discounts and coupons, but includes tax and shipping. Please contact ShareASale.com is you experience this problem.

     

    Tracking Code details for Nexternal

    You can use the tracking code below:

    &lt;img src=https://shareasale.com/sale.cfm?amount=ORDER_NET&amp;tracking=ORDER_NO&amp;transtype=SALE&amp;merchantID=XXX width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

    Enter this code in the Nexternal back end. Go to Company, then edit Policies, Addendums, and Disclaimers, and then enter the code in the Order/Affiliate Addendum text box.

     

    Tracking Code details for OsCommerce

    There are two pages where you need to make changes.

    In the page: catalog/checkout_process.php, just above the line:

    // load the after_process function from the payment modules

    add the following code:

     // Begin Affiliate Program - Sales Tracking
    
    $orders_total=$currencies->format($cart->show_total()- $total_tax); 
    
    tep_session_register('orders_total'); 
    
    $orders_id=$insert_id; 
    
    tep_session_register('orders_id'); 
    
    // End Affiliate Program - Sales Tracking 
    
    
    
    In the page: catalog/checkout_success.php, just below the line, &lt;h3&gt;&lt;?php echo TEXT_THANKS_FOR_SHOPPING; ?&gt;&lt;/h3&gt;&lt;/td&gt; add the following code: &lt;!-- Start Affiliate Program - Sales Tracking --&gt; &lt;?php echo '&lt;img src="https://shareasale.com/sale.cfm?amount='.$orders_total.'&amp;tracking='.$orders_id.'&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;'; tep_session_unregister('orders_total'); tep_session_unregister('orders_id'); ?&gt; &lt;!-- // End Affiliate Program - Sales Tracking --&gt; Where you replace XXXX with your merchant ID number.

     


    If that does not work, try changing the code in the checkout_process page to this: // Begin Affiliate Program - Sales Tracking $orders_total=$currencies-&gt;format($order-&gt;info['subtotal']); tep_session_register('orders_total'); $orders_id=$insert_id; tep_session_register('orders_id'); // End Affiliate Program - Sales Tracking

     

    Tracking Code details for PayPal PayFlow Link (Formerly VeriSign)

    Unfortunately, integrating with PayPal PayFlow Link is more difficult than most payment processors. ShareASale.com recommends upgrading to the PayFlow Pro product instead.

    If you want to keep your existing PayFlow Link account, you will need to use the "Alternate Tracking Method" that is detailed on page 2 of the following .pdf file. This method requires significant programming expertise.

    Tracking Code Details PDF

     

    Tracking Code details for PayPal Website Payments Standard

    Unfortunately, integrating with PayPal Website Payments Standard is more difficult than most shopping carts. You will need to setup their Payment Data Transfer system before integrating with ShareASale. See PayPal's documentation and sample code here:

    https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/pdt-intro-outside

    Unfortunately, ShareASale is unable to help in setting up the Payment Data Transfer system. If you require assistance you should contact PayPal directly.

    Once you have the Payment Data Transfer system running, you can use the following tracking codes in your Auto-Return script:

    ASPResponse.Write("&lt;img src=""https://shareasale.com/sale.cfm?amount=" &amp; mcGross &amp; "&amp;tracking=" &amp; txToken &amp; "&amp;transtype=SALE&amp;merchantID=XXXX"" width=""1"" height=""1""&gt;") PHPecho ("&lt;img src=\"https://shareasale.com/sale.cfm?amount=$amount&amp;tracking=$tx_token&amp;transtype=SALE&amp;merchantID=XXXX\" width=\"1\" height=\"1\"&gt;");Where you replace XXXX with your ShareASale merchant ID number.


    Please note there is currently a bug in the PayPal sample code for PHP. If you are running PHP, you will need to change the line that reads:

    $amount = $keyarray['payment_gross'];
    to this:
    $amount = $keyarray['mc_gross'];

     

    Tracking Code details for pdgsoft.com Cart

    In your Thank You Template file, the Tracking code to use will be: &lt;img src="https://shareasale.com/sale.cfm?amount=&lt;!---SUBTOTAL---&gt;&amp;tracking=&lt;!---INVOICE---&gt;&amp;transtype=SALE&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your ShareASale Merchant ID number.

     

    Tracking Code details for Pinnacle Cart

    The tracking code can be added on the completed.html page which is accessible through the File Manager >> Skins Files

    The tracking code to use is:&lt;img src="https://shareasale.com/sale.cfm?amount={$order_amount}&amp;tracking={$order_num}&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your merchant ID number. Code must be inserted in page: content/skins/flat/completed.html (does not work in "Thank You page message in Payment Method Setup )

    Pinnacle Cart Knowledgebase Article

     

    Tracking Code details for ProductCart by Early Impact

    You will need to alter the orderComplete.asp page in your shopping cart. Look for the following code in that file&lt;% ' If the store is using VAT and VAT &gt; 0, show it here if pord_VAT&gt;0 then %&gt; &lt;tr&gt; &lt;td colspan="5" align="right"&gt;&lt;font face="&lt;%=FFType%&gt;" color="&lt;%=FColor%&gt;" size="1"&gt; &lt;% response.write dictLanguage.Item(Session("language")&amp;"_orderverify_35") &amp; scCurSign &amp; money(pord_VAT)%&gt;&lt;/font&gt; &lt;/td&gt; &lt;/tr&gt; &lt;% end if %&gt; &lt;/table&gt;And just below it add our tracking code&lt;img src="https://shareasale.com/sale.cfm?amount=&lt;%=ptotal%&gt;&amp;tracking=&lt;%=pOID%&gt;&amp;transtype=SALE&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your merchantID number.

     

    Tracking Code details for ProStores

    You will need to edit your order confirmation template and add code below:
    &lt;script type="text/javascript"&gt; &lt;!-- var subtotal = '&lt;ss:value source="$invoice.subtotal"/&gt;'; var tracking = '&lt;ss:value source="$invoice.tracking" default="&amp;nbsp;"/&gt;'; document.write('&lt;img src="https://shareasale.com/sale.cfm?amount=' + subtotal + '&amp;tracking=' + tracking + '&amp;transtype=SALE&amp;merchantID=XXXX" width="1" height="1"&gt;'); // --&gt; &lt;/SCRIPT&gt;Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for Quick Shopping Cart

    The Quick Shopping Cart system is integrated with the ShareASale system. All you will need to do is copy some data between the two systems. Please click here to start the configuration.

     

    Tracking Code details for RegOnline.com

    You can add the ShareASale tracking code to the "Confirmation Tab" / "Edit Confirmation Message" page in your RegOnline.com control panel. Enter in the following javascript&lt;script type="text/javascript"&gt; &lt;!-- var myShareASale = ('&lt;img width="1" height="1" src="https://shareasale.com/sale.cfm?' + 'merchantID=XXXX&amp;transtype=sale&amp;amount=' + document.getElementById("rolTotalCharge").value + '&amp;tracking=' + document.getElementById("rolRegisterId").value + '"/&gt;'); document.write(myShareASale); // --&gt; &lt;/script&gt;Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for Roman Cart

    You can use the code:&lt;img src="https://shareasale.com/sale.cfm?amount=&lt;totalminusshipping&gt;&amp;tracking=&lt;orderid&gt;&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your Merchant ID Number.

     

    Tracking Code details for SecureCart.com.

    To activate your ShareASale link, simply select the "Add On Programs" option in your admin pages. Note that our cart will support any number of unique web sites within one cart system. If you choose to have different ShareASale accounts, our system will support them all.

     

    Tracking Code details for SecureNetShop

    You can use the tracking code below:

    &lt;img src="https://shareasale.com/sale.cfm?amount=[SUB_TOTAL]&amp;tracking=[INVNUM]&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for SecureNetShop.com

    You can use the following code in the "Tracking Code" box provided in the securenetshop interface: &lt;img src="https://shareasale.com/sale.cfm?amount=[SUB_TOTAL]&amp;tracking=[ORDER_NUM]&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

     

     

    Tracking Code details for Shopify.com

    You can use the code:&lt;img src="https://shareasale.com/sale.cfm?amount={{subtotal_price|money_without_currency}}&amp;tracking={{order_name|handleize}}&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your Merchant ID Number.

     

    Tracking Code details for Shoppingcartsplus.com

    In your shopping cart admin area, click on tools, then shopping cart, then power tools.

    Enter the code below in the Affiliate Conversion Tracking box:&lt;img src="https://shareasale.com/sale.cfm?amount=[ordervalue]&amp;tracking=[orderid]&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

    See the page following page at the shoppingcartsplus.com site for more details.

     

    Tracking Code details for Shopsite

    Shopsite version 7.1 and above and use the following code on their order confirmation page&lt;script type="text/javascript"&gt; &lt;!-- document.write("&lt;img src=https://shareasale.com/sale.cfm?amount=" + ss_subtotal + "&amp;tracking=" + ss_ordernum + "&amp;transtype=SALE&amp;merchantID=XXXX width=1 height=1&gt;"); // --&gt; &lt;/script&gt;Where you replace XXXX with your merchant ID number.

    You can add this in your ShopSite back end at:

    Commerce Setup -> Order System -> Thank You field labeled 'Text at the top of the Thank You screen'

     

    Tracking Code details for SquirrelCart

    You can use the code:&lt;img src="https://shareasale.com/sale.cfm?amount=&lt;?=$SC['order']['product_total']?&gt;&amp;tracking=&lt;?=$SC['order']['number']?&gt;&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your Merchant ID Number.

     

    Tracking Code details for StoresOnline.com

    You can place the following tracking code on your order confirmation page: &lt;img src="https://shareasale.com/sale.cfm?amount=%cart%&amp;tracking=%ordernumber%&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

     

     

    Tracking Code details for SunShop

    You can use the tracking code below, and place it in your order_successful template:

    &lt;img src=https://shareasale.com/sale.cfm?amount=$order[total]&amp;tracking=$order[id]&amp;transtype=SALE&amp;merchantID=XXX width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

    See details on the www.turnkeywebtools.com here:
    http://www.turnkeywebtools.com/forum/showthread.php?t=549&highlight=tracking

     

    Tracking Code details for TradeBit

    You can enter in our tracking code in the "Sales" section of your Tradebit backend, under the Affiliate Codes section (also sometimes called snippets).

    You can use the code:&lt;img src="https://shareasale.com/sale.cfm?amount=TB_PRICE&amp;tracking=TB_DATE&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your Merchant ID Number.

     

    Tracking Code details for UltraCart

    <font face="trebuchet ms, verdana" point-size="10" size="-1">[initialload]&lt;img src="https://shareasale.com/sale.cfm?amount=[Total]&amp;tracking=[OrderId]&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;[/initialload]Where you replace XXXX with your merchant ID number.<br><br>From the UltraCart Website:<br><br>Special tokens that can be inserted into the Receipt Page for Affiliate<br>Tracking. Category: Configuration<br>State: public (all)<br>Language: en<br>Keywords: tokens, special tags, receipt , confirmation, affiliate tracking<br>Symptom:<br><br>Problem: I need to be able to insert tokens into receipt page for<br>Affiliate Sales tracking.<br><br>Solution: The following tokens can be inserted into the Receipt Page that<br>is generated after a successfully completed order:<br><br>[initialload] [/initialload]<br><br>Anything inside of this pair of tags will only be shown the first<br>time the receipt is rendered. If a customer clicks reload on the<br>receipt then the content inside the tags will not be displayed.<br>This is used for 3rd party affiliate code that is unable to<br>properly handle duplicate requests.<br><br>In addition to the special tags detailed above, you can also<br>insert these tokens in order to have that information inserted<br>into the receipt page:<br><br>[Email]<br>[BillingFirstName]<br>[OrderId]<br>[Total]<br>[Subtotal]<br>[Commission]<br>[affiliatecustomhtml]<br>[ProductIds]<br>[ProductQuantities]<br><br>Modified: 02/03/2005 10:53:57<br><br><a href="https://support.ultracart.com/otrs/faq.pl?Action=&amp;ID=11&amp;SessionID=">https://support.ultracart.com/otrs/faq.pl?Action=&amp;ID=11&amp;SessionID=</a> </font>

     

    Tracking Code details for VBCommerce

    You will need to modify the checkout_receipt.aspx.vb and checkout_receipt.aspx pages in your cart. In the checkout_receipt.aspx.vb file, find the code below:

    Public Class checkout_receipt
    Inherits BaseStorePage
    And below it add the following two lines:
    Protected SubTotal As String
    Protected OrderNumber As String
    Next, find the lines:
    Dim o As Orders.Order = OrderServices.GetExistingOrder(OrderID)

    If Not o Is Nothing Then

    And below it add the following two lines:
    SubTotal = o.SubTotal.ToString()
    OrderNumber = o.CompletedOrderID
    Then, in the checkout_receipt.aspx, find the following line:
    <font face="trebuchet ms, verdana" point-size="10" size="-1">&lt;!-- End Summary --&gt;</font>
    And below it add the following line
    <font face="trebuchet ms, verdana" point-size="10" size="-1">&lt;img src="https://shareasale.com/sale.cfm?amount=&lt;%= SubTotal %&gt;&amp;tracking=&lt;%= OrderNumber %&gt;&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;</font>
    Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for VirtueMart/Mambo phpShop

    You can use the tracking code below:

    &lt;!-- begin of the Share-a-Sale Affiliate tracking code --&gt; &lt;?php echo '&lt;img src="https://shareasale.com/sale.cfm?amount='.$db-&gt;f(order_subtotal).'&amp;tracking='.$order_id.'&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;'; ?&gt; &lt;!--- end of the affiliate code --&gt;Where you replace XXXX with your merchant ID number.

    Enter this code in the checkout.thankyou.tpl.php page. This page can be found at the path: components\com_virtuemart\themes\default\templates\pages

     

    Tracking Code details for Volusion.com

    You may use the above variables in any article on "OrderFinished.asp". Therefore if you go in your admin area to "Write New / Manage Articles & Text" and then look in the "WEBPAGE" column, you can use the above variables in he spotkey "pretext" article that is on the webpage "OrderFinished.asp". These variables may ONLY be used in an article. They're not ASP variables.

    The code you should use is:&lt;img src="https://shareasale.com/sale.cfm?amount=$(SubTotal)&amp;tracking=$(OrderNo)&amp;transtype=SALE&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

    http://www.volusion.com/manual/livechat.asp

     

    Tracking Code details for VPASP cart

    You will need to modify the shopthanks.asp page in your cart. Find the code below in that file:

    DisplayOrderNumber myconn ' Display the order number
    sql = "select * from orders where orderid=" & clng(ordernumber)
    Set rsorder = myconn.Execute(SQL)
    affiliateid=rsorder("oaffid") ' get affilaite
    om=rsorder("orderamount")
    and below it add the following code:Response.Write("&lt;img src=""https://shareasale.com/sale.cfm?amount=" &amp; rsorder("orderamount") &amp; "&amp;tracking=" &amp; rsorder("orderid") &amp; "&amp;transtype=SALE&amp;merchantID=XXXX"" width=""1"" height=""1""&gt;")Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for World Pay

    WorldPay will allow you to customize your order confirmation page. See their help topic here:

    http://www.worldpay.com/support/kb/mergedProjects/customisingadvanced/custa.html

    The tracking code should look like this:

    &lt;IMG src="https://shareasale.com/sale.cfm?amount=&lt;WPDISPLAY ITEM=authAmount&gt;&amp;tracking=&lt;WPDISPLAY ITEM=transID&gt;&amp;transtype=sale&amp;merchantID=XXXX" width="1" height=1&gt;Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for WorldPay Select Junior

    You will need to insert our tracking code into your resultY.html page. The tracking code to use is:&lt;img src="https://shareasale.com/sale.cfm?amount=&lt;WPDISPLAY ITEM=amount&gt;&amp;tracking=&lt;WPDISPLAY ITEM=cartId&gt;&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

     

    Tracking Code details for XCart

    X-Cart file to edit:

    skin1/customer/main/order_message.tpl
    Insert the tracking code:
    &lt;IMG src="https://shareasale.com/sale.cfm?amount={$order.order.subtotal}&amp;tracking={$order.order.orderid}&amp;transtype=sale&amp;merchantID=XXXX" width="1" height=1&gt;Where you replace XXXX with your merchant ID number.

    Just below the lines:{if $active_modules.Interneka ne ""} { include file="modules/Interneka/interneka_tags.tpl" } {/if}

     

    Tracking Code details for Yahoo Stores

    With Checkout Manager

    If you are using the Checkout Manager in your Yahoo Store, you can follow these instructions:

    To add HTML or JavaScript to the Head section:

    1. From the Checkout Manager main page, click the "Page Configuration" link.
    2. Click the tab Order Confirmation page.
    3. Scroll down to the page message box.
    4. Enter or paste the confirmation code below into that field.
    5. Click "Save" when finished or "Preview" to save and view your changes.
    6. Repeat steps 2-4 for any additional pages where you wish to add HTML/JavaScript.
    7. Return to the Store Manager and publish your changes when ready.
    Enter in the following javascript&lt;script type="text/javascript"&gt; &lt;!-- try{ if (isNaN(parseFloat(orderDiscount))){ var sastotal = orderSubTotal; } else{ var sastotal = parseFloat(orderSubTotal) + parseFloat(orderDiscount); } } catch(err) { var sastotal = orderSubTotal; } var sasstring ='&lt;img ' + 'src="https://shareasale.com/sale.' + 'cfm?amount='+ sastotal + '&amp;tracking=' + orderNum + '&amp;transtype=SALE&amp;' + 'merchantID=XXXX"'+ ' width="1" height="1"&gt;'; document.write(sasstring); // --&gt; &lt;/script&gt;Where you replace XXXX with your merchant ID number.


    Without Checkout Manager

    If you are not using the Checkout manager, you will need to have the following script installed by RTML Templates:
    Visit: RTML Templates

     

    Tracking Code details for ZenCart

    For ZenCart version 1.3.8 and higher:

    You will be marking changes to the following file:

    /includes/templates/DEFAULT/checkout_success/tpl_footer.php

    Where DEFAULT is the name of the current template group that you are using. If the checkout_success folder does not exist, you can create it. If the tpl_footer.php file does not exist, you can create it. Add the following code to the tpl_footer.php page:

    <font face="trebuchet ms, verdana" point-size="10" size="-1">&lt;?php if (isset($zv_orders_id) &amp;&amp; (int)$zv_orders_id &gt; 0 &amp;&amp; isset($order_summary) &amp;&amp; is_array($order_summary)) { if (!isset($_SESSION['affiliate_order_id']) || $_SESSION['affiliate_order_id'] != $zv_orders_id ) { $_SESSION['affiliate_order_id'] = $zv_orders_id; $commissionable_order_formatted = number_format($order_summary['commissionable_order'], 2, '.', ''); echo '&lt;img src="https://shareasale.com/sale.cfm?amount=' . $commissionable_order_formatted . '&amp;tracking=' . $order_summary['order_number'] . '&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;'; } } ?&gt;Where you replace XXXX with your merchant ID number. </font>

     


    For ZenCart versions prior to 1.3.8:

    You will need to modify two pages in your shopping cart.

    In the page /includes/modules/pages/checkout_success/header_php.php find the following line:$products = $db-&gt;Execute($products_query);And after that line add the following code:$subtotal_query = "select value from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$orders-&gt;fields['orders_id'] . "' &amp;&amp; title = 'Sub-Total:'"; $subtotal = $db-&gt;Execute($subtotal_query); In the page /includes/templates/template_default/templates/tpl_checkout_success_default.php add this code at the end:&lt;img src="https://shareasale.com/sale.cfm?amount=&lt;?php echo round($subtotal-&gt;fields['value'], 2); ?&gt;&amp;tracking=&lt;?php echo $zv_orders_id; ?&gt;&amp;transtype=sale&amp;merchantID=XXXX" width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

    Please note, we have had reports that this code does not properly account for Discounts and Coupons when calculating the order total. Please contact ShareASale.com is you experience this problem.

     

    Tracking Code details for Zoovy.com

    You can use the tracking code below:

    &lt;img src=https://shareasale.com/sale.cfm?amount=%SUBTOTAL%&amp;tracking=%ORDERID%&amp;transtype=SALE&amp;merchantID=XXX width="1" height="1"&gt;Where you replace XXXX with your merchant ID number.

    Instructions from the Zoovy.com website:

    Most 3rd party affiliate programs can be integrated with Zoovy using the edit checkout messages feature that is available to accounts with the WEB bundle. The edit checkout messages allow you to edit and insert custom HTML into virtually any message in the checkout. Most affiliate programs require that the order id, amount, and customer email address be passed to them at the final stage of checkout. Zoovy provides the following information that is available to be passed to an affiliate provider during checkout:

    Adding tracking code to the sales confirmation page in checkout (for overture or another tracking software application).

    Click by Click

    1. Click on Setup.
    2. Click on 'Checkout Setup' under the heading My Store Properties.
    3. Scroll half way down the page to the 'Customize Checkout Messages' link and click it.
    4. Use the variables at the top of this page in your tracking code to ensure order totals are correctly passed back to your tracking company. (replace TOTALGOESHERE with %SUBTOTAL% for instance).
    5. Scroll down to the 'Checkout invoice instructions' textarea.
    6. Paste in your code here. Push save.

    http://webdoc.zoovy.com/info/index.php?GOTO=guide/affiliate.php

     

    Click here to download these instructions as a .pdf for distribution to your tech staff


    All of the capitalized values listed in the code must be replaced by your web site/ecommerce system. These include:

    1. The subtotal amount of the sale – referred to as the AMOUNT
    2. The order number or unique identifier from that order – referred to as the TRACKINGNUMBER
    3. The type of program, either a LEAD or SALE program – referred to as TRANSTYPE

    The Shareasale.com tracking code can be used with any dynamic programming language, in order to incorporate the above 2 dynamic variables from your system. Examples include, but are not limited to ASP, Cold Fusions, .PHP, HTML/DHTML, CGI/Perl, JSP, Java, JavaScript, etc.

    Example 1: (SALE PROGRAM)

    In this example, a shopper on Shareasale.com Merchant number "31", purchased a product or group of products that totaled a dollar amount of $14.95. The merchant assigned an internal order ID to this order of "475".

    The code needed for this situation would have been:

    https://shareasale.com/sale.cfm?amount=14.95&tracking=475&transtype=sale&merchantID=31

    Note that the color of the variable in the Shareasale.com code, match the above example.

    The above code would be correct if, and only if:

    1. The subtotal amount for the sale was $14.95
    2. The order number was 475
    3. The merchant was running a “Per-Sale” commission program on Shareasale.com
    4. The merchant’s ID number with Shareasale.com was 31


    Example 2: (LEAD PROGRAM)

    In this example, a user on Shareasale.com Merchant number "11", signed up for a free email newsletter. The user signing up was given "user@shareasale.com".

    The code needed for this situation would have been:
    (You don't need to use the email address as the unique identifier - you may use any unique value such as the Lead ID from your system, a date/time stamp, etc...)

    https://shareasale.com/sale.cfm?amount=0.00&tracking=user@shareasale.com&transtype=lead&merchantID=11

    The following code would be correct if, and only if:

    1. The merchant was running a “Per-Lead” commission program on Shareasale.com
    2. The person who signed up on the site, used the email address of “user@shareasale.com
    3. The merchant’s ID number with Shareasale.com was 11

    (Note how with a per-lead program, the AMOUNT variable is filled in
    with 0.00 but NOT LEFT OUT of the code entirely.



    Click here to download Technical Documentation on this step for your webmaster/tech staff

    Don't worry if you are confused, we will help you, just let us know if you need help.

     

Add reply

Mark this reply as Best Reply
Close open child tickets
Post reply