ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Help adding tracking image to asp file
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help adding tracking image to asp file

 Post Reply Post Reply
Author
Message
caughlan View Drop Down
Groupie
Groupie
Avatar

Joined: 25-September-2006
Location: Canada
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote caughlan Quote  Post ReplyReply Direct Link To This Post Topic: Help adding tracking image to asp file
    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!
Back to Top
Matt View Drop Down
Moderator Group
Moderator Group


Joined: 20-July-2006
Location: United States
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote Matt Quote  Post ReplyReply Direct Link To This Post 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">
          <%

Back to Top
caughlan View Drop Down
Groupie
Groupie
Avatar

Joined: 25-September-2006
Location: Canada
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote caughlan Quote  Post ReplyReply Direct Link To This Post 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...


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.