How about changing the THEME for the page, you can find it in templates/themes/order.php Also, not sure about it, but templates/container.tpl contains some order page template.
If i put this variable in my new colomn: $aData[sPhone] or $aData[iOrder] or $aData[sDate] or $aData[sPhone] ...... it is ok the display is good but not with $aData[sOrderSummary] ( no data are displayed)
The $aData[sOrderSummary] is only temporary in the "$_session" variable for showing it during order process. Additionally it is computed by clicking/opening OrderDetails for the Admin OrdersDetailsView. Temporary as well. In this case, there is no possibility to show the Summary in the admins-list. But, look here: http://www.kimla.de/skupienie/forum_bilder/qc_kolumny.jpg It is possible to do. Even more columns (like "poczta" - means delivery price). Now, i go to holidays (few days), coming back on wednesday. If You are interested in the solution && spend some Euros, please contact me over: http://skupienie.kimla.de/?kontakt,2
Come on, Boboo, you want to charge for this? BTW, there is a 100% possibility to show summary price on the orders list. Cachousam, I have done that, it's an easy mod.
in core/orders-admin.php under line: $aData['sStatus'] = '<b>'.$aData['sStatus'].'</b>'; add: $aData['sProductsList'] = $this->listProducts( 'orders.tpl', $aOrders[$i], 'PRODUCTS_' ); $aData['sOrderSummary'] = $this->aOrders[$aOrders[$i]]['sOrderSummary'];
in templates/admin/orders.tpl edit the template at block LIST and add the variable $aData
[sOrderSummary] (note - no apostrophes) anywhere you want in there.
And that's it. Thankfully, I have already tested something very similar and this should really work well.
Oh, Beholder, for this solution You presented here, i would not even think about a fee. But did You already make a test with changing prices of products? Let's say, we sold 10 pieces a 10 $ = 100$ (today). The order value is 100$ So far, so good. The question: what will show the OrderSummary after changing of price of products in the shop?
in templates/admin/orders.tpl edit the template at block LIST and add the variable $aData[sOrderSummary] (note - no apostrophes) anywhere you want in there.
Thank you beholder. Now we have a display of result, but it is false. Look at the picture. On all the page, there are only 3 or 4 different results. I wish that my orders are to grosses!!!But is only the first line which is good. It seems that the script uses the wrong variable. Thank you for your help.
you're right, one more line was missing. You wouldn't believe how difficult it is to approximate two sets of code that are very similar but still different from each-other. Here is the whole code once again:
in core/orders-admin.php under line: $aData['sStatus'] = '<b>'.$aData['sStatus'].'</b>'; add:
in templates/admin/orders.tpl edit the template at block LIST and add the variable $aData[sOrderSummary] (note - no apostrophes) anywhere you want in there.
Beholder. I bow before you.All works perfectly. I 'had tried a lot of copy and paste between different files, but without result. The php is a science. Cachousam as dominique
I wish to display this variable on the homepage of admin after the name of a new order. I tried to paste this code everywhere in core/order-admin.php in the function listOrdersLastLog but without result. Of course I put this variable in template/admin/container.tpl Thanks for your help
Pasting the variable "sOrderSummary" in the admins-homepage will bring nothing. Because it (variable: sOrderSummary) will be filled with any value, AFTER you called "listOrdersAdmin" in: orders-admin.php But during the process of "log-in" the function "listOrdersLastLog" is responsible for checking last orders. And this function has no queries for Prices or OrderSummaries.
Try to change the "listOrdersLastLog"-function, putting into the procedure described by Beholder.
OK, I hope the function "listOrdersLastLog" in the /core/orders-admin.php is as it was at the beginning. Add: global $config; after global $lang;
Then add the lines (written by Beholder): if (isset($this->aProducts )) unset($this->aProducts); $this->aOrders[$aOrders[$i]]['fPaymentCarrierPrice'] = generatePrice( $aData['fCarrierPrice'], $aData['sPaymentPrice'] ); $aData['sProductsList'] = $this->listProducts( 'orders.tpl', $aOrders[$i], 'PRODUCTS_' ); $aData['sOrderSummary'] = $this->aOrders[$aOrders[$i]]['sOrderSummary'];
Under the line: for( $i = 0; $i < $iCount; $i++ ){
(we still working in the "listOrdersLastLog"-function!) Now expand the arguments in the "setVariables(.....)" At the end in setVariables you have: setVariables(... $aOrder['sFirstName'].' '.$aOrder['sLastName'])) change it to: setVariables(... $aOrder['sFirstName'].' '.$aOrder['sLastName'].' --- '.$aData['sOrderSummary'].' '.$config['currency_symbol'] ) );
And now the line on admins-page with new order looks like (example): 2010-06-20 09:37 Id 142, Jonh MacEnroe --- 317.00 EUR
You don't need to change anything in container or another templates. Only the function "listOrdersLastLog" in core/orders-admin.php will be touched.