iono Documentation - Data Variables

Certain variables are available on the very last step of the order process in step 5. These are populated with data from the new order and can be obtained from within the template for use with integration with ecommerce tracking such as in Google Analytics and affiliate tracking such as in iDevAffiliate. The variables available are as follows:

The data provided within the customer array is as follows:

Array  
(      
	[username] => string     
	[password] => string (raw password)     
	[email] => string     
	[first_name] => string      
	[last_name] => string    
	[company] => string
	[address1] => string
	[address2] => string
	[city] => string
	[county] => string
	[postalcode] => string
	[country] => string
	[phone] => string  
)

These can be accessed from the templates/iono/order/step-by-step/step-5.tpl.php page by using the code:

<?php echo $this->varname; ?>

Where varname is the name of one of the 3 variables above.

As an example, to integrate into the Olate affiliate system powered by iDevAffiliate v4, you would add this code to the step-5.tpl.php page somewhere between line 6 and 18:

<img border="0" src="http://www.olate.co.uk/affiliates/sale.php?  
initial_total=<?php echo $this->initial_total; ?>&order_id=<?php echo   
$this->invoice_id; ?>" width="1" height="1">