JSON cart object available on receipt?

chrisLchrisL Member
in Help edited October 2008
Is JSON cart object available on receipt? It says it is in the wiki, however, when I ran some cursory tests I could only see it loaded on the cart and checkout pages.

I want to run script that will update another program after each sale. So I want to add something like this to the receipt template:
<script language="JavaScript" type="text/javascript" src="http://www.mydomain.com/sale.php?amount=$$$$$&trans_id=#####">;
</script>

The PHP script would then process the database update.

Where $$$$$ is the total sale amount and ##### is a unique ID for the transaction (session ID?)

I'm not really familiar with javascript and JSON so any help how I might pull those variables when the receipt page is reached and run the script would be appreciated.
Comments
Sign In or Register to comment.