mikey boy Posted March 10, 2006 Posted March 10, 2006 Hi, I've searched high & low through the Forum & Documentation, but I can't fnd a list of OsC variables, names, what they do & where they are located. Especially of interest is the variable that carries the order total amount. This variable would hold the total including S&H, taxes & so forth. I've looked & looked, but can't find anything that is definite. Nor can I find any documentary evidence. I'm sure that the answer is really obvious to some, but I'm still at the early stage of my OsC experience. Any help would be greatly appreciated. Thanks. Mike
petercascio Posted March 11, 2006 Posted March 11, 2006 In checkout_process is something called final_price which gets passed to the email confirmation and in the database you have the table orders_total. Peter
AlanR Posted March 11, 2006 Posted March 11, 2006 I don't know how much this will help but here goes: catalog/checkout_confirmation.php:68: $order_total_modules = new order_total; catalog/checkout_confirmation.php:230: $order_total_modules->process(); catalog/checkout_confirmation.php:231: echo $order_total_modules->output(); catalog/checkout_process.php:53: $order_total_modules = new order_total; catalog/checkout_process.php:55: $order_totals = $order_total_modules->process(); catalog/checkout_process.php:55: $order_totals = $order_total_modules->process(); catalog/checkout_process.php:98: for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { catalog/checkout_process.php:100: 'title' => $order_totals[$i]['title'], catalog/checkout_process.php:101: 'text' => $order_totals[$i]['text'], catalog/checkout_process.php:102: 'value' => $order_totals[$i]['value'], catalog/checkout_process.php:103: 'class' => $order_totals[$i]['code'], catalog/checkout_process.php:104: 'sort_order' => $order_totals[$i]['sort_order']); catalog/checkout_process.php:236: for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { catalog/checkout_process.php:237: $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; catalog/checkout_process.php:237: $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; catalog/includes/classes/order.php:44: $order_total_query = tep_db_query("select text from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int)$order_id . "' and class = 'ot_total'"); catalog/includes/classes/order.php:45: $order_total = tep_db_fetch_array($order_total_query); catalog/includes/classes/order.php:45: $order_total = tep_db_fetch_array($order_total_query); catalog/includes/classes/order.php:63: 'total' => strip_tags($order_total['text']), catalog/includes/classes/order_total.php:35: $order_total_array = array(); catalog/includes/classes/order_total.php:45: $order_total_array[] = array('code' => $GLOBALS[$class]->code, catalog/includes/classes/order_total.php:56: return $order_total_array; catalog/includes/modules/shipping/table.php:52: $order_total = $cart->show_total(); catalog/includes/modules/shipping/table.php:54: $order_total = $shipping_weight; catalog/includes/modules/shipping/table.php:60: if ($order_total <= $table_cost[$i]) { Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
mikey boy Posted March 16, 2006 Author Posted March 16, 2006 Hi Peter, Thank you very much for the info. This might be what I'm looking for, I find it very cnfusng that so many variables all seem to refer to the same thing yet they all have differet names. Can I as for some further help? To dislay this value do I simply enter a line such as $final_price = final_price echo $final_price; I'm not PHP programmer & I'm not sure how this variable would be communicated from checkout_process to checkout_confirmation, but if it would work all I need to do is clear up the syntax & I can get it plugged in ASAP. Thanks. Mike In checkout_process is something called final_price which gets passed to the email confirmation and in the database you have the table orders_total. Peter
Recommended Posts
Archived
This topic is now archived and is closed to further replies.