Name: discount
Type: float(16,2)
Value: 33.33
I have an XML Order Export and i want to display that value. I see the DISCOUNT line but the velue not visible.
Code: Select all
$export_items['xml_export_order_items'][] = 'products';
$sql = "SELECT * FROM `" . DB_PREFIX . "order`";
if(isset($filter_sql)){
$sql .= " WHERE ".implode(" AND ",$filter_sql);
}
$query = $this->db->query($sql);
if($query->rows){
foreach($query->rows as $order){
$xml .= '<ORDER>'."\n";if($item == 'discount'){$xml .= '<DISCOUNT>'.htmlspecialchars($order['discount']).'</DISCOUNT>'."\n";}