Hi all,

I have successfully managed to integrate Google Checkout UK into my test site and have made several transactions using Sandbox and all seems to be working well (gift vouchers aren't working though!!).

Anyway, I am about to go live with an affiliate network here in the UK and have been trying desperately to get the code to work with Google Checkout. I know Affiliate Window is accepted by GC but I cannot work out where I put, which file I need to add to or what code I need to use to pass the information to GC for them to transfer that to AW upon completion of the transaction (it would be so simple if GC had a callback page on my site!!)

The example code I have been given by AW is below (which is working using my current payment gateway):

-----------------------------------------------------------------------

<script language="JavaScript" type="text/javascript">
<!--
// AW sale tracker for ****

// Set your transaction parameters
var aw_mid = '****';
var aw_sale = '<?php echo round($subtotal->fields['value'], 2); ?>';
var aw_extra = '<?php echo (int)$orders->fields['orders_id']; ?>';
var aw_parts = '<?php echo (int)$manufacturers->fields['manufacturers_id']; ?>:<?php echo round($subtotal->fields['value'], 2); ?>';
var aw_test = '0';

// Do not edit below here.
call = location.protocol.toLowerCase()+'//www.aw';
call += 'in1.co'+'m/sread.j'+'s?a='+aw_mid+'&b='+aw_sale+'&c='+aw_extra+'&d='+aw_parts;
call += '&t='+aw_test+'&l='+escape(window.location.href)+'&tv=1.0';
document.write('<s'+'cript language="JavaS'+'cript" type="text/javas'+'cript" src="'+call+'&tt=js" id="aw_tag"></s'+'cript>');
var oImage = new Image;
oImage.src = call+'&tt=ia';
-->
</script>


<noscript>
<img src="https://www.awin1.com/sread.img?tt=ns&tv=1.0&merchant=****&amount=<?php echo round($subtotal->fields['value'], 2); ?>&ref=<?php echo (int)$orders->fields['orders_id']; ?>&parts=<?php echo (int)$manufacturers->fields['manufacturers_id']; ?>:<?php echo round($subtotal->fields['value'], 2); ?>&testmode=0" />
</noscript>
<!-- EOF AW Code -->

-------------------------------------------------------------------------

To help me categorise my commissions, you will note that I am pulling and passing the manufacturers ID to AW and have set up a commission category in their system to pay the amount I wish to pay for a confirmed sale so any code I pass to GC would have to include the same.

I have studied and studied the files but cannot work out which one I need to add the code to and what php script I need to add to make it work and I wondered if someone would be kind enough to point me in the right direction please?

I would appreciate any help any of you could give me.

Many thanks.

Kind regards,

Big H