Community Add-Ons
| Maintainers: | lildog |
Manual Order Maker
for osCommerce Online Merchant v2.2
Create an order from your admin. Also requires Order Editor.
Manual Order Maer 1.5.6 is brilliant. Just a little fix for those setting up new stores with no customers...
I was testing this on a new store and if there is no customers then the page will show up blank. Now that it has the functionality to make orders without customers then testing whether there is customers is irrelevant...
To fix, remove the first instance of:
if (tep_db_num_rows($result) >= 0){ (about line 20)
along with the closing bracket } just before the last ?>
Attached is the file create_order.php
=========== WARNING ===========
Manual Order Maker v1.5.6 is designed for and requires Order Editor 5.0.6.6 (http://addons.oscommerce.com/info/1435)
Install Order Editor 5.0.6.6 FIRST
=========== WARNING ===========
+ Added feature to: 1. Create new Customer, 2. Use Existing Customer, 3. Create order
without customer record (compatible with Purchase without Account contrib, but
also works without the Purchase without Account contrib install).
+ Expanded customer form to include all customer data when creating new customer.
+ Fixed form validation JavaScript.
+ Added a "New Order" convenience link to the Admin > Customers menu.
+ Moved Create Order link from the page title area to a button below the list. Not
Really necessary I suppose, but its appearance is similar to the rest of osCommerce.
+ Added required GNU_LICENSE.txt
** This is a full (non-Autoinstaller) package **
Manual Order Maker support forum: http://forums.oscommerce.com/index.php?showtopic=312211
[[If you would like my help specifically with this package, post in the normal support topic first, PM me a link reminder if you don't get a reply in a couple days]]
The content of the mo_autoinstaller/index.php file was moved to control.php to make the php version check work.
Autoinstaller 2.14 for Manual Order Maker v1.5.5 by lildog (17 Nov 2008)
Manual Order Maker requires Order Editor (http://addons.oscommerce.com/info/1435)
Don't start installation without it !
Download the package and view the screenshots of what you will get after the installation.
The Auto Installer script requires PHP 5.2.0
Autoinstaller 2.14 for Manual Order Maker v1.5.5 by lildog (17 Nov 2008)
The script automatically install the contribution: copy files, edit files, alter database tables.
It saves a backup before any action.
The aim of the script is to speed up the contribution installation.
And to make possible to uninstall it.
You will need to do manually only what the script cannot.
Manual Order Maker requires Order Editor (http://addons.oscommerce.com/info/1435)
Don't start installation without it !
The Auto Installer script requires PHP 5.2.0
improved manual order maker/order editor compatibility
+ fixed up commercial/Residential compatibility doc
FULL package +update guides
Cross posting here as FYI.
http://addons.oscommerce.com/info/6370
Someone please delete these posts... aaargh. In my haste... should not have posted that "clarification" below... I just checked and my original instructions were correct.
This is what I get for trying to post multiple contribs at the same time..... doh.
Sorry to everyone! Info with v1.5.4 below is correct. You do need both pre-requisites. I'm working on posting a version that has everything already included.
I've never understood why contributors cannot edit at least the text of their posts....
Sorry, but need to clarify my post below of v1.5.4. Unique Order Number v1.03 is NOT a pre-requisite. It is merged into v1.5.4 of this contrib.
v1.5.4 added support for Unique Order Number contribution.
FULL PACKAGE
***********************
History
***********************
11/16/08 Richard Cranium (v1.5.4)
+ Base for this package is v1.5.1 by Lildog, 10/27/2008
+ Adds support for the Unique Order Number contrib
+ DO NOT USE IF YOU DO NOT HAVE Unique Order Number installed
***********************
Requirements
***********************
v1.5.4 REQUIRES the following contributions pre-installed:
- Order Editor v5.0.61+ by Jonathan Hilgeman (http://addons.oscommerce.com/info/1435)
- Unique Order Number v1.03 by Daddyroy (http://addons.oscommerce.com/info/4732)
If admin:username not available for Customer Service Agent, use .htpasswd user value.
Full package.
Added customer company, city and state fields to dropdown list in Manual Order Entry screen.
Corrected typo in install.txt , line 140, at "o. customer_service_id" removed space after "o."
This is the complete package.
+ added a field to input an admin/customer service name/id
+ put history in a separate file
+ fixed some defines in english file.
+ added a field to input an admin/customer service name/id
+ put history in a separate file
+ fixed some defines in english file.
certainly does work.....
For some reason these two versions are not working. I recommend using v1.4.3 which works like a charm.
(included v1.4.3)
+ added some comments to code
+ fixed the drop down menu in admin/create_order.php so it shows customers names
+ cleaned up code in catalog/admin/includes/modules/create_order_details.php
+ the country drop down now selects the customers country if there is one.
+ deleted unused code in catalog/admin/includes/modules/create_order_details.php
+ currency drop down selects the stores default currency
+ if there is no country the country drop down uses the stores default country
added Collect Residential / Commercial info for shipping compatibility file
cleaned up code in catalog/admin/create_order.phpin prep to add to admin
opened support forum thread:http://forums.oscommerce.com/index.php?showtopic=312211
Fixed up linebreak problems that were plaguing v1.4.2 by causing parse errors.
The old version was not using UNIX linebreaks, so when PHP ran the file, it thought that everything was on the same line. That caused the errors to occur. This one fixes that up.
If you have v1.4.2 installed and it works fine for you, then you do not need to install this one.
This is the full package.
This fixes a problem where the correct country is not selected, which affects how tax is added to the order.
In admin/includes/modules/create_order_details.php:
FIND:
<?php
if ($is_read_only) {
echo tep_get_country_name($address['entry_country_id']);
} else {
echo tep_draw_input_field('country',
tep_get_country_name($address['entry_country_id'])) . ' ' . ENTRY_COUNTRY_TEXT;
}
?>
CHANGE TO:
<?php
if ($is_read_only) {
echo tep_get_country_name($address['entry_country_id']);
} else {
echo sbs_get_country_list('country') . ' ' . ENTRY_COUNTRY_TEXT;
}
?>
In admin/create_order_process.php:
FIND:
$country =
tep_db_prepare_input($HTTP_POST_VARS['country']);
CHANGE TO:
$country = tep_db_prepare_input(
tep_get_country_name($HTTP_POST_VARS['country']));
- Full package.
- Updated installation instructions
- Optional step from bxmas13 added
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' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id) . '">' . tep_image_button('button_orders.gif', IMAGE_ORDERS) . '</a> <a href="' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . tep_image_button('button_email.gif', IMAGE_EMAIL) . '</a>');
REPLACE with:
$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id) . '">' . tep_image_button('button_orders.gif', IMAGE_ORDERS) . '</a> <a href="' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . tep_image_button('button_email.gif', IMAGE_EMAIL) . '</a> <a href="' . tep_href_link(FILENAME_CREATE_ORDER) . '?Customer='. $cInfo->customers_id .'">' . tep_image_button('button_create_order.gif', IMAGE_CREATE_ORDER) . '</a>');
Full package.
Updated installation instructions.
A "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING" error occurs if you use the code in step 6 of the installation instructions as written. This set of instructions corrects that code and adds a step that will enable a the proper button text on a mouse over the Create button.
These are ONLY the corrected install instructions, the rest of the package is required.
The files are formatted in a way that some FTP managers may ram the file into one line string causing unexpected T_REQUIRE errors on line 1. Uploading in binary will solve this problem.
Corrected an error that made this unuseable.
changed
$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS_EDIT, 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CREATE_ORDER) . '">' . tep_image_button('button_create_order.gif', IMAGE_CREATE_ORDER','Create Order) . '</a>');
TO:
$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ORDERS_EDIT, 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_CREATE_ORDER) . '">' . tep_image_button('button_create_order.gif', IMAGE_CREATE_ORDER) . '</a>');
Minor update. This disables the field requirements and removes 'required' next to fields. This way no information is required to make an order. This is most useful for generic orders that are picked up or manually delivered. this is the full package.
corrected a few errors in installation instructions. Errors were in the new upload file paths, removed one file, corrected path on two or three othe
Create an order from your admin. Also requires Order Editor.
