Admin New Order [Support Thread]
Plugin Features
This plugin adds the ability for administrative users to add new orders to Zen Cart from the administrative interface. The interface blends into the existing customer management page with the addition of a single "new orders" button.
After creating a new order, this plugin will send the user to a page for editing orders. Currently this is done through integration with the plugin "Edit Orders 4.x". You will need to install "Edit Orders 4.x" prior to installing this plugin.
- Can add a new order to an existing customer
- Adds to the order history a log of the admin user who created the order
- Can restrict via Admin Profiles
Plugin Requirements
Zen Cart 1.5
PHP 5.x
Edit Orders 4.x
Testing Environments
Step 1: Clean ZC 1.5; Step 2: Install Edit Orders 4.x; Step 3: Install Admin New Order 1.0
Step 1: Clean ZC 1.5; Step 2: Install Admin New Order 1.0; Step 3: Install Edit Orders 4.x
Step 1: Clean ZC 1.5; Step 2: Install Edit Orders 4.x and Admin New Order 1.0
Step 1: Clean ZC 1.5; Step 2: Install Edit Orders 4.x, Admin New Order 1.0, and Admin New Customer 1.0
Step 1: Live ZC 1.5 (many modifications); Step 2: Install Edit Orders 4.x; Step 3: Install Admin New Order 1.0
Disclaimer
Always test new add-ons / plugins / modules first on a non production site.
Re: Admin New Order [Support Thread]
I receive an error when following these steps:
1. Create new customer (via admin)
2. Click on "new order"
3. Error
It works fine when doing it the following way:
1. create new account (via storefront)
2. goto admin -> customers -> customers
3. select customer
4. click "new order"
5. works fine.
Here's the error that displays on screen:
WARNING: An Error occurred, please refresh the page and try again.
Here's the error that displays in the logs:
Code:
PHP Fatal error: 1054:Unknown column 'c.customers_firstname' in 'field list' :: SELECT c.customers_firstname, c.customers_lastname, a.entry_company AS billing_company, a.entry_street_address AS billing_street_address, a.entry_suburb AS billing_suburb, a.entry_postcode AS billing_postcode, a.entry_city AS billing_city, a.entry_state AS billing_state, a.entry_country_id FROM `customers_info` AS c LEFT JOIN `address_book` AS a ON c.customers_default_address_id != a.address_book_id WHERE a.customers_id = c.customers_id AND c.customers_id = '5' in /path/to/store/includes/classes/db/mysql/query_factory.php on line 120
My Server Specs:
MySQL Version: MySQL 5.1.62
PHP Version: 5.3.8
Zen-Cart Version: 1.5.1
Any idea as to why this is happening?
Re: Admin New Order [Support Thread]
The problem seems to be caused by customers_info_date_of_last_logon being set to NULL when adding a customer via admin.
Going to see if I can come up with a fix for this.
I'll post once figure it out.
Re: Admin New Order [Support Thread]
I think the problem is related to using the wrong syntax for LEFT JOIN when using MySQL 5.1
Can anyone verify this? I'm not really that good with mysql, and I've been researching but no avail.
New Version: Admin New Order 1.1
Release Notes
- Bugfix: Adds default currency information to the order.
- Bugfix: Better handling of "state" information based upon zones.
- Enhancement: Updates core order totals module information (subtotal and total).
This release provides compatibility with Zen Cart 1.5.1.
Additional modified core files
includes/classes/order_total.php: Will now load the correct language files if used in the admin interface.
admin/init_includes/init_currencies.php: Will now load the admin version of currencies.
As usual updated versions of these are present in the zip file.
Re: New Version: Admin New Order 1.1
Where can I get my hands on this?
It doesn't look like it has been approved yet in the plugin's section.
New Version: Admin New Order 1.1.1
For any members of the Zen Cart team, sorry for posting two new versions timed so closely together.
Release Notes
Bugfix: Corrected database table used when selecting a billing address.
Re: New Version: Admin New Order 1.1.1
I am having a Doubt over here,
1. When Adding Order from Admin Side, How can we Add Shipping ??
2. Is it possible to let the Customer to select shipping and Payment option to Finish the Order ?
Vinod
Re: New Version: Admin New Order 1.1.1
Quote:
Originally Posted by
vkd1980
1. When Adding Order from Admin Side, How can we Add Shipping ??
The intent for this module is to be able to create a new blank order record for a customer. For example when a customer calls in an order - or uses a "request quote" form.
Once the blank order record has been created, the order is then passed to a module for editing the order. Currently the module sent to is "Edit Orders" which allows you to add/remove products and order-total lines (for example Shipping).
Quote:
Originally Posted by
vkd1980
2. Is it possible to let the Customer to select shipping and Payment option to Finish the Order ?
Not with this module. A better way to do this would be to create a module to edit / modify the customer's stored shopping cart. Or simply use something like "encrypted master password" and then log in and "act" on behalf of customer to fill their shopping cart and then log out. This way the next time the customer logs in they could just click on "shopping cart" and then go through the normal checkout process of "Shipping", "Payment", and "Confirmation".