Jump to content
Sign in to follow this  
cezar99

Print Order in Admin section

Recommended Posts

hi, is there any module to doing this:

 

im opening some order in admin section and i have there a button "print". it should print page with:

 

 

info about client like:

Delivery adress, payment adress, kind of payment, order products with images

Share this post


Link to post
Share on other sites

Ok i did it like packingslip.php. But how change this code:

 

require('includes/application_top.php');

 require(DIR_WS_CLASSES . 'currencies.php');
 $currencies = new currencies();

 $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
 $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");

 include(DIR_WS_CLASSES . 'order.php');
 $order = new order($oID);

 

to get image too ?

Share this post


Link to post
Share on other sites

Ok i did it like packingslip.php. But how change this code:

 

require('includes/application_top.php');

 require(DIR_WS_CLASSES . 'currencies.php');
 $currencies = new currencies();

 $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
 $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'");

 include(DIR_WS_CLASSES . 'order.php');
 $order = new order($oID);

 

 

 

and

 

 

 

 

<?php

$product_info_query = tep_db_query("select p.products_id, p.products_image from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");

$product_info = tep_db_fetch_array($product_info_query);

 

for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

echo ' <tr class="infoBoxContents">' . "\n" .

' <td class="infoBoxContents" valign="top" align="right">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .

' <td class="infoBoxContents" valign="top">' . $order->products[$i]['name'];

 

if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) {

for ($j=0, $k=sizeof($order->products[$i]['attributes']); $j<$k; $j++) {

echo '<br><nobr><small> <i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];

echo '</i></small></nobr>';

}

}

 

echo ' </td>' . "\n" .

' <td class="infoBoxContents" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" .

' </tr>' . "\n";

}

?>

 

to get image too ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×