PDA

View Full Version : Manual Order Maker



michael_s
06-23-2007, 04:24 PM
This is a very great contribution. I found it was very helpful to have a 'Create Order' button on the customers page. In addition to this I created a 'Customer=number' variable to the button so it would immediately pull up that customers info in the Create Order page.

***NOTE: AS ALWAYS MAKE A BACKUP OF ALL MODIFIED FILES***

Pages Edited:
/catalog/admin/customers.php

-/catalog/admin/customers.php-
Around line 788 FIND:

$contents[] = array('align' => 'center', 'text' => '' . tep_image_button('button_edit.gif', IMAGE_EDIT) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . ') ' . tep_image_button('button_delete.gif', IMAGE_DELETE) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . ') ' . tep_image_button('button_orders.gif', IMAGE_ORDERS) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id) . ') ' . tep_image_button('button_email.gif', IMAGE_EMAIL) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . ')');


REPLACE with:

$contents[] = array('align' => 'center', 'text' => '' . tep_image_button('button_edit.gif', IMAGE_EDIT) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . ') ' . tep_image_button('button_delete.gif', IMAGE_DELETE) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . ') ' . tep_image_button('button_orders.gif', IMAGE_ORDERS) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id) . ') ' . tep_image_button('button_email.gif', IMAGE_EMAIL) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . ') ' . tep_image_button('button_create_order.gif', IMAGE_CREATE_ORDER) . ' (http://www.oscmax.com/forums/' . tep_href_link(FILENAME_CREATE_ORDER) . '?Customer='. $cInfo->customers_id .')');

More... (http://www.oscommerce.com/community/contributions,4829)