Contributions
Show Product_ID (customer-choosen) in Backend
Show Product_ID (customer-choosen) in Backend
| gkuehnberger | 9 Mar 2002 |
# ADDED FUNCTIONALITY:
# Show Product_ID (customer-choosen) in Backend
# TEP r 2.2 CVS from 2001/11
===============================================
Abstract:
- the Backend >> Orders: shows the proudtcs_name, but not the customer-choosen products_model (number).
- added an additional query to get the products_model from the TABLE_PRODUCTS, and display it.
- actually this should be implemented in the way, that the products_model is saved in the orders-table, to avoid issues with the products-table being updated and then displaying wrong order-information later on.
Changes:
==========================
/admin/includes/languages/english/orders.php
---------------------------------------------
add: l 28:
define('TABLE_HEADING_PRODUCTS_ARTNR', 'nr.');
/admin/includes/languages/german/orders.php
---------------------------------------------
add: l 28:
define('TABLE_HEADING_PRODUCTS_ARTNR', 'Nr.');
/admin/orders.php
---------------------------------------------
172 add
<td class="tableHeading"> <?php echo TABLE_HEADING_PRODUCTS_ARTNR; ?> </td>
197 add
// gk@plan2.net added for displaying the customer choosen products_model = eg. T5863 in addition to the products name
// query DB within the ALL_products_of_this_order_loop
$model = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id= '" . $products_values['products_id'] . "'");
$model_values = tep_db_fetch_array($model); // echo $model_values['products_model'];
204 add
// gk@plan2.net added for displaying the customer choosen products_model = eg. T5863 in addition to the products name
// display it
echo ' <td class="main"><b> ' . $model_values['products_model'] . ' </b>' . "n";
178 change to colspan 5
<td colspan="5"><?php echo tep_black_line(); ?></td>
249 change to colspan 5
<td colspan="5"><?php echo tep_black_line(); ?></td>
252 change to colspan 5
<td align="right" colspan="5"><table border="0" cellspacing="0" cellpadding="2">
Note: Contributions are used at own risk.
