I implemented this by creating a extra functions folder for Create Orders (versus updating the one for Edit Orders).
I created admin/includes/functions/extra_functions/create_order.php with the the following code:
Code:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2007 Numinix Technology |
// | |
// | http://www.zen-cart.com/index.php |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | license@zen-cart.com so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
/*
* @version $Id: edit_orders.php, v 1.0.0 12/11/2007 12:08:59 numinix $
*
*/
////////////////////////////////////////////////////////////////////////////////////////////////
// Function : zen_get_currency_value
// Arguments : currency_code currency code string
// Return : currency_value
// Description : Function to retrieve the currency_value based on the currency's code
///////////////////////////////////////////////////////////////////////////////////////////////
function zen_get_currency_value($currency_code) {
global $db;
$currency_query = $db -> Execute("select * from " . TABLE_CURRENCIES . " where code = '" . $currency_code . "'");
if (!$currency_query->RecordCount()) {
return 0;
}
else {
return $currency_query->fields['value'];
}
}
?>

Originally Posted by
rickcj
I found i was getting a blank page after fixing the initial table error.
Found the currency function is included in this addon in admin/includes/functions/extra_functions/edit_orders.php
To fix this just upload this file or add:
Code:
////////////////////////////////////////////////////////////////////////////////////////////////
//
// Function : zen_get_currency_value
//
// Arguments : currency_code currency code string
//
// Return : currency_value
//
// Description : Function to retrieve the currency_value based on the currency's code
//
////////////////////////////////////////////////////////////////////////////////////////////////
function zen_get_currency_value($currency_code) {
global $db;
$currency_query = $db -> Execute("select * from " . TABLE_CURRENCIES . " where code = '" . $currency_code . "'");
if (!$currency_query->RecordCount()) {
return 0;
}
else {
return $currency_query->fields['value'];
}
}
to the end of this edit_orders.php file before the closing ?> tag.
This will make sure the currency symbol is inserted into the database for the order.
Bookmarks