Hey guys I have a custom built xbox code distribution module and if i overwrite the classes/order.php then i loose the main coding for the module :( Is it possible you could perhaps help me place this in correctly so it doesn't mess anything up??? the coding for the xbox delivery module is as below....
//start coderXO mod
$xboxcodes = array();
$xboxcodehtml = "";
if($this->products[$i]['model'] != "" && $this->info['order_status'] != DEFAULT_ORDERS_STATUS_ID)
{
$xboxcodes = getXboxcode($this->products[$i]['model'],$this->products[$i]['qty'],$zf_insert_id);
if(!empty($xboxcodes))
foreach($xboxcodes as $xcode)
$xboxcodehtml .= "\r\n[Xbox Code: ".$xcode. "]";
}
// end coderXO mod
// build output for email notification
$this->products_ordered .= $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . ' = ' .
$currencies->display_price($this->products[$i]['final_price'], $this->products[$i]['tax'], $this->products[$i]['qty']) .
//start coderXO mod
$xboxcodehtml.
// end coderXO mod
There may be more coding than this but i don't really know what i am doing at this level:(