The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

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.