Javascript Help

General ShopSite user discussion

Javascript Help

Postby Dave » Sat Apr 29, 2006 2:43 pm

Hello,



I'm a volunteer for a non-profit (Until There's A Cure
Foundation--www.utac.org) and we're trying to implement a third-party
affiliate program that requires adding Javascript to the thankyou page.



The code is:



<img
src="https://interneka.com/affiliate/WIDLink.php?WID=000000&TotalCost=###.##&OrderID=&&&&&&"
width=1 height=1>



WID - user name with affiliate system

TotalCost - sales amount

OrderID - transaction number



We got this information from ShopSite:



ShopSite Pro v7.0 and newer includes JavaScript variables in the <head>
section of the thankyou screen containing most of the order information.

So it looks like they would need to use ss_subtotal or ss_ordertotal for
their TotalCost, and ss_ordernum for their OrderID.



They would use JavaScript to document.write their image tag with these
variables in them.



Unfortunately we have no one that knows Javascript. The affiliate network
rep is trying to help but so far they have not come through with a solution.
Does anyone know how to code this Javascript based on the information above?
Any help will be sincerely appreciated.



Thanks,



Dave
Dave
 

Re: Javascript Help

Postby Rob » Sat Apr 29, 2006 3:11 pm

With ShopSite Pro, you could use the code below:

<script language="javascript">
document.write('<img width=1 height=1 src="
https://interneka.com/affiliate/WIDLink ... ordernum+'">');
</script>

This uses javascript to output the img src code and uses the javascript
variables from ShopSite. Place this anywhere on the thank you page (text at
the top or bottom of the thank you screen).

HTH

Rob

The code is:

img
src="https://interneka.com/affiliate/WIDLink.php?WID=000000&TotalCost=###.##&OrderID=&&&&&&"
width=1 height=1
Rob
 

Re: Javascript Help

Postby Dave » Sat Apr 29, 2006 4:13 pm

Hey, Thanks!!

Dave


"Rob" <rob@lexiconn.com> wrote in message
news:e30oab$oi3$1@eval.shopsite.com...
With ShopSite Pro, you could use the code below:

script language="javascript"
document.write('<img width=1 height=1 src="
https://interneka.com/affiliate/WIDLink ... ordernum+'">');
/script

This uses javascript to output the img src code and uses the javascript
variables from ShopSite. Place this anywhere on the thank you page (text
at the top or bottom of the thank you screen).

HTH

Rob

The code is:

img
src="https://interneka.com/affiliate/WIDLink.php?WID=000000&TotalCost=###.##&OrderID=&&&&&&"
width=1 height=1

Dave
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 117 guests

cron