Any code experts know how to pull the order # for the URL for ROI?

Hi everyone!

Another thing I am attempting to go with my CS-Cart 2.2.4 pro is to add Nextag ROI code. Also I want to impliment this with my Bizrate code too… But anyhow on my order landing page I have two new blocks added. One with my basic Nextag ROI code, and the other block with my Bizrate popup survey code.

Basically as you all know when the is successfully placed, the cart goes to the Order Landing Page and shows the successful order message. In the URL, it shows the OrderID number (‘index.php?dispatch=checkout.complete&order_id=#####’).

Here is the sample code NexTag provides for adding the order ID # (and order total $ amount) into the ROI data:

<br />
<script type="text/javascript"><br />
<!--<br />
	/* NexTag ROI Optimizer Data */<br />
	var id = 'MyNextag#';<br />
	var rev = '<?php echo $revenue ?>';<br />
	var order = '<?php echo $orderID ?>';<br />
//--><br />
</script><br />
<script type="text/javascript" src=""></script>
```<br />
<br />
Does anyone have any coding expertise on how I can at least extract that order ID number for the returning URL 'index.php?dispatch=checkout.complete&order_id=#####' ?<br />
Which then I could at least give that order # into the ROI data so I can help track which orders have been placed by linking in from the NexTag site.<br />
<br />
Thank you for any help/suggestions .... even if how I can just extract that order ID # from the URL I might be able to figure out the rest with enough messing around. But getting that info from the URL I am completely stumped on. <img src="upload://n4syhXZrRhsStKvmS4jT3Mp2S3k.png" class="bbc_emoticon" alt=":("><br />
<br />
Thank you again!<br />
<br />

Sorry the title should read:

[color=#00A8D5][size=6]Any code experts know how to pull the order # FROM the URL for ROI?[/size][/color]



Great, thank you solesurvivor!

Is there a list of what all the $order_info.[color=#ff0000]stuff[/color] is?

Does this related to a database table which something like 'order_id' is a field name in the database table?

Thanks again!


Turn on your Template Debugging tool in the admin and it will popup a new window with a list of EVERYTHING.

You need to be logged in as admin in the customer front end though.

Tim, did you figure out what you needed to put here for the Nextag to work?