Jump to content

passing values from Yahoo store to 3rd party affiliate software


dyancey

Recommended Posts

I thought this would be simple, but I cannot seem to get it right. Yahoo could not provide any insight and omnistar (authors of the affiliate program) would not provide any assistance with what they call "custom code". >:(

 

Yahoo provides the following script:

<script type="text/javascript">
<!-- //variables containing order information
var orderSubTotal = '21.95';
var orderNum = 'yhst-18602524177000-5010';
-->
</script>

 

Omnistar provides the following example of the format to pass the values to their server:

 

<img src=https://secure.osisecureweb.com/mycustomerid/sale.php?amount=10&transaction=B style='visibility: hidden'>

 

I need to pass the dynamic value of "orderSubTotal" into the url's value of "amount" instead of the static value of "10" in the example.

I need to pass the dynamic value of "orderNum" into the url's value of "transaction" instead of the static value of "B" in the example.

 

Thanks for any help.

David

 

Bump...so this is too difficult?  At least tell me where I can find the answer.  I've been stuck on this for a week and this post is a last resort.  It's not like I haven't really tried to learn this on my own first.  Please help.

David

sorry I read it wrong i think this is what you are looking for and btw this has nonethink to do with php

 

<script type="text/javascript">
<!-- //variables containing order information
var orderSubTotal = '21.95';
var orderNum = 'yhst-18602524177000-5010';
window.document.write('<img src="https://secure.osisecureweb.com/mycustomerid/sale.php?amount=');
window.document.write(orderSubTotal);
window.document.write('&transaction=');
window.document.write(orderNum);
window.document.write('" style="visibility: hidden"/>');
-->
</script>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.