dyancey Posted June 8, 2008 Share Posted June 8, 2008 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 Link to comment https://forums.phpfreaks.com/topic/109212-passing-values-from-yahoo-store-to-3rd-party-affiliate-software/ Share on other sites More sharing options...
dyancey Posted June 8, 2008 Author Share Posted June 8, 2008 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 Link to comment https://forums.phpfreaks.com/topic/109212-passing-values-from-yahoo-store-to-3rd-party-affiliate-software/#findComment-560300 Share on other sites More sharing options...
MiCR0 Posted June 8, 2008 Share Posted June 8, 2008 At a guess on what you want <?php $orderSubTotal = 32; $orderNum = 23; ?> <img src="https://secure.osisecureweb.com/mycustomerid/sale.php?amount=<?=$orderSubTotal ?>&transaction=<?=$orderNum ?>" style='visibility: hidden'/> Link to comment https://forums.phpfreaks.com/topic/109212-passing-values-from-yahoo-store-to-3rd-party-affiliate-software/#findComment-560301 Share on other sites More sharing options...
MiCR0 Posted June 8, 2008 Share Posted June 8, 2008 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> Link to comment https://forums.phpfreaks.com/topic/109212-passing-values-from-yahoo-store-to-3rd-party-affiliate-software/#findComment-560309 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.