Print Page | Close Window

Help adding tracking image to asp file

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1435
Printed Date: 22-April-2025 at 11:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Help adding tracking image to asp file
Posted By: caughlan
Subject: Help adding tracking image to asp file
Date Posted: 11-March-2008 at 2:23pm
Can anyone help me add the following tracking code:


<img
src="https://shareasale.com/sale.cfm?amount=<%=p total%>&tracking=<%=pOID%>&transtype=SALE&a mp;merchantID=XXXX" width="1" height="1">



to this:





'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
' START: PROCESS IPN
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
Dim Status, Result
Status=objHttp.status
Result=objHttp.ResponseText

'// Check notification validation
if (Status <> 200 ) then
'// Now we see if the payment is pending, verified, or denied
elseif (objHttp.responseText="VERIFIED") then
    
    pcv_OrderID=(int(pcv_OrderID)-scpre)
    session("GWCustomerID")=pcf_RestoreCustomer(pcv_OrderID)
   
    if ucase(pcv_PaymentStatus)="COMPLETED" then
        session("GWAuthCode")=pcv_PaymentStatus
        session("GWTransId")=pcv_gwTransID
        session("GWOrderId")=pcv_OrderID
       
        pcf_AuthorizeCustomer session("GWSessionID"), session("GWOrderId")
        response.Redirect("gwReturn.asp?s=true&gw=PayPal&GWA uthCode="&session("GWAuthCode")&"&GWOrderId="&am p;session("GWOrderId")&"&GWSessionID="&session(" GWSessionID")&"&GWTransId="&session("GWTransId") &"&GWCustomerID="&session("GWCustomerID")&"" )
        response.end
    else
        if ucase(pcv_PaymentStatus)="PENDING" then
            '// SAVE PENDING REASON TO DB
            session("GWAuthCode")=pcv_PaymentStatus
            session("GWTransId")=pcv_PendingReason
            session("GWOrderId")=pcv_OrderID
           
            '// FLAG AS PENDING
            session("GWTransType")="P"
            pcf_AuthorizeCustomer session("GWSessionID"), session("GWOrderId") 
            response.Redirect("gwReturn.asp?s=true&gw=PayPal&GWA uthCode="&session("GWAuthCode")&"&GWOrderId="&am p;session("GWOrderId")&"&GWSessionID="&session(" GWSessionID")&"&GWTransId="&session("GWTransId") &"&GWCustomerID="&session("GWCustomerID")&"" )
            response.end
        end if
    end if
elseif (objHttp.responseText="INVALID" OR objHttp.responseText="FAILED") then
    '// If we get an Invalid response from PayPal, then the payment is messed up and we notify the customer
    if ucase(pcv_PaymentStatus)="COMPLETED" then
        session("GWAuthCode")=pcv_PaymentStatus
        session("GWTransId")=""
        session("GWOrderId")=pcv_OrderID
       
        pcf_AuthorizeCustomer session("GWSessionID"), session("GWOrderId") 
        response.Redirect("gwReturn.asp?s=true&gw=PayPal&GWA uthCode="&session("GWAuthCode")&"&GWOrderId="&am p;session("GWOrderId")&"&GWSessionID="&session(" GWSessionID")&"&GWTransId="&session("GWTransId") &"&GWCustomerID="&session("GWCustomerID")&"" )
        response.end
    else
        response.redirect "msg.asp?message=73"
    end if 
else
'// error
end if
set objHttp=nothing
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
' END: PROCESS IPN
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~




many thanks!



Replies:
Posted By: Matt
Date Posted: 11-March-2008 at 2:50pm
Try this:


    if ucase(pcv_PaymentStatus)="COMPLETED" then
        '// Add Tracking Image
        %>
        <img src="https://shareasale.com/sale.cfm?amount=<%=p total%>&tracking=<%=pOID%>&transtype=SALE &a mp;merchantID=XXXX" width="1" height="1">
          <%



Posted By: caughlan
Date Posted: 12-March-2008 at 3:05am
alas no luck... the tracking code was never detected during the test sale :(

Shareasale has a copy of my paypalorderconfirm.asp and gwReturn.asp files (they requested the other one after seeing that the first file you told me about redirects to it) and i haven't heard back yet - hope it works... i'll post results in case someone else has the same question some day...





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net