-
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".
-
New Version: 1.2
Release Notes
- Bugfix: New Order button no longer shows up if installation failed.
- Bugfix: Uses the address name fields if entered (previously it always used the actual customer name instead of the address name fields).
- Bugfix: Fixes an issue where the state was not entered into the order fields unless state dropdown menus were used.
-
Re: New Version: 1.2
Hi,
I hoping one of you experts can assist.
I have installed both the New Order and the Edit Order modules as requested.
When I'm using the module from the admin area Im getting the following errors displaying;
MODULE_ORDER_TOTAL_SUBTOTAL_TITLE
MODULE_ORDER_TOTAL_TOTAL_TITLE
When I go to customers >> new order I get the following errors displaying in yellow across the top of the screen.
Is anyone able to advise where I might have gone wrong.
Any help would be great.
Many Thanks
James
Domain for reference is www.canvas101.us
-
Re: New Version: 1.2
Did you already check if the files are actually present on your server?
-
Re: Admin New Order [Support Thread]
When uploading the files, did you make sure you renamed the proper folders correctly? Also check to see if the files exist.
-
Re: New Version: 1.2
Quote:
Originally Posted by
Canvas101
I have installed both the New Order and the Edit Order modules as requested.
When I'm using the module from the admin area Im getting the following errors ...
Is anyone able to advise where I might have gone wrong.
You missed some steps in the installation. Probably the files from "affected_files_150" or "affected_files_151". Files under "affected_files" are core Zen Cart files which have been modified by this plugin. The "_150" = files for Zen Cart 1.5.0. The "_151" = files for Zen Cart 1.5.1. You need to merge the relevant changes into your Zen Cart install (if your install is stock w/ no changes you can probably just overwrite).
From the README:
Code:
===========================================================
INSTALLATION INSTRUCTIONS
===========================================================
1. Copy files from `new_files_15x` to your Zen Cart install.
2a. If you haven't made changes to Zen Cart, Copy and replace files from
`affected_files_<version>` to your Zen Cart install
(<version> is your zen cart version).
2b. If you have made changes to your Zen Cart, you will need to merge your
versions with the changes in `affected_files_<version>`.
-
Re: New Version: 1.2
Thanks for your replies.
I have re uploaded all the required files and followed all the instructions but still see the;
The files listed above in the yellow tabs exist on the server, Im confused as to why I'm seeing the error;
MODULE_ORDER_TOTAL_SUBTOTAL_TITLE: |
£0.00 |
|
|
MODULE_ORDER_TOTAL_TOTAL_TITLE:
|
The effected files have been uploaded again these have been merged prior to uploading as I have changed the original files.
Please advice guys
-
Re: New Version: 1.2
Quote:
Originally Posted by
Canvas101
I have re uploaded all the required files and followed all the instructions but still see ...
From those messages I can see DIR_FS_CATALOG has not been appended to the start of the language path used to load the files.
DIR_FS_CATALOG should contain something like "/var/www/server/store/" or "/public_html/" or "/".
The only way this can happen is if:
- You missed a merge on "/includes/classes/order_total.php".
- Your "/admin/includes/configure.php" is corrupt (or not working).
- You are not running Zen Cart 1.5 (or some modification made to Zen Cart broke core code).
Note lines 34 - 48 from "/includes/classes/order_total.php" in the "affected_files_<version>" folder:
Code:
if(IS_ADMIN_FLAG === true) {
$lang_file = zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
}
else {
$lang_file = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
}
if (@file_exists($lang_file)) {
include_once($lang_file);
} else {
if (IS_ADMIN_FLAG === false && is_object($messageStack)) {
$messageStack->add('header', WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
} else {
$messageStack->add_session(WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
}
}
After you merge the changes, your "/includes/classes/order_totals.php" should have a block that looks similar.
-
Re: New Version: 1.2
Here is what my file looks like.......
<?php
/**
* File contains the order-totals-processing class ("order-total")
*
* @package classes
* @copyright Copyright 2003-2011 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: order_total.php 19103 2011-07-13 18:10:46Z wilt $
*/
/**
* order-total class
*
* Handles all order-total processing functions
*
* @package classes
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
class order_total extends base {
var $modules = array();
// class constructor
function order_total() {
global $messageStack;
if (defined('MODULE_ORDER_TOTAL_INSTALLED') && zen_not_null(MODULE_ORDER_TOTAL_INSTALLED)) {
$module_list = explode(';', MODULE_ORDER_TOTAL_INSTALLED);
reset($module_list);
while (list(, $value) = each($module_list)) {
// Fixes for when called from ADMIN
$lang_file = null;
if(IS_ADMIN_FLAG === true) {
$lang_file = zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
}
else {
}
$lang_file = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
if (@file_exists($lang_file)) {
include_once($lang_file);
} else {
if (IS_ADMIN_FLAG === false && is_object($messageStack)) {
$messageStack->add('header', WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
} else {
$messageStack->add_session(WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
}
}
$module_file = DIR_WS_MODULES . 'order_total/' . $value;
if (@file_exists($module_file)) {
include_once($module_file);
$class = substr($value, 0, strrpos($value, '.'));
$GLOBALS[$class] = new $class;
$this->modules[] = $value;
}
}
}
}
function process() {
global $order;
$order_total_array = array();
if (is_array($this->modules)) {
reset($this->modules);
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if (!isset($GLOBALS[$class])) continue;
$GLOBALS[$class]->process();
for ($i=0, $n=sizeof($GLOBALS[$class]->output); $i<$n; $i++) {
if (zen_not_null($GLOBALS[$class]->output[$i]['title']) && zen_not_null($GLOBALS[$class]->output[$i]['text'])) {
$order_total_array[] = array('code' => $GLOBALS[$class]->code,
'title' => $GLOBALS[$class]->output[$i]['title'],
'text' => $GLOBALS[$class]->output[$i]['text'],
'value' => $GLOBALS[$class]->output[$i]['value'],
'sort_order' => $GLOBALS[$class]->sort_order);
}
}
}
}
return $order_total_array;
}
function output($return_html=false) {
global $template, $current_page_base;
$output_string = '';
if (is_array($this->modules)) {
reset($this->modules);
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
$size = sizeof($GLOBALS[$class]->output);
// ideally, the first part of this IF statement should be dropped, and the ELSE portion is all that should be kept
if ($return_html == true) {
for ($i=0; $i<$size; $i++) {
$output_string .= ' <tr>' . "\n" .
' <td align="right" class="' . str_replace('_', '-', $GLOBALS[$class]->code) . '-Text">' . $GLOBALS[$class]->output[$i]['title'] . '</td>' . "\n" .
' <td align="right" class="' . str_replace('_', '-', $GLOBALS[$class]->code) . '-Amount">' . $GLOBALS[$class]->output[$i]['text'] . '</td>' . "\n" .
' </tr>';
}
} else {
// use a template file for output instead of hard-coded HTML
require($template->get_template_dir('tpl_modules_order_totals.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_order_totals.php');
}
}
}
return $output_string;
}
//
// This function is called in checkout payment after display of payment methods. It actually calls
// two credit class functions.
//
// use_credit_amount() is normally a checkbox used to decide whether the credit amount should be applied to reduce
// the order total. Whether this is a Gift Voucher, or discount coupon or reward points etc.
//
// The second function called is credit_selection(). This in the credit classes already made is usually a redeem box.
// for entering a Gift Voucher number. Note credit classes can decide whether this part is displayed depending on
// E.g. a setting in the admin section.
//
function credit_selection() {
$selection_array = array();
if (is_array($this->modules)) {
reset($this->modules);
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if ($GLOBALS[$class]->credit_class ) {
$selection = $GLOBALS[$class]->credit_selection();
if (is_array($selection)) $selection_array[] = $selection;
}
}
}
return $selection_array;
}
// update_credit_account is called in checkout process on a per product basis. It's purpose
// is to decide whether each product in the cart should add something to a credit account.
// e.g. for the Gift Voucher it checks whether the product is a Gift voucher and then adds the amount
// to the Gift Voucher account.
// Another use would be to check if the product would give reward points and add these to the points/reward account.
//
function update_credit_account($i) {
if (MODULE_ORDER_TOTAL_INSTALLED) {
reset($this->modules);
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if ( $GLOBALS[$class]->credit_class ) {
$GLOBALS[$class]->update_credit_account($i);
}
}
}
}
// This function is called in checkout confirmation.
// It's main use is for credit classes that use the credit_selection() method. This is usually for
// entering redeem codes(Gift Vouchers/Discount Coupons). This function is used to validate these codes.
// If they are valid then the necessary actions are taken, if not valid we are returned to checkout payment
// with an error
function collect_posts() {
if (MODULE_ORDER_TOTAL_INSTALLED) {
reset($this->modules);
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if ( $GLOBALS[$class]->credit_class ) {
$post_var = 'c' . $GLOBALS[$class]->code;
if ($_POST[$post_var]) $_SESSION[$post_var] = $_POST[$post_var];
$GLOBALS[$class]->collect_posts();
}
}
}
}
// pre_confirmation_check is called on checkout confirmation. It's function is to decide whether the
// credits available are greater than the order total. If they are then a variable (credit_covers) is set to
// true. This is used to bypass the payment method. In other words if the Gift Voucher is more than the order
// total, we don't want to go to paypal etc.
//
function pre_confirmation_check($returnOrderTotalOnly = FALSE) {
global $order, $credit_covers;
if (MODULE_ORDER_TOTAL_INSTALLED) {
$total_deductions = 0;
reset($this->modules);
$orderInfoSaved = $order->info;
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if ( $GLOBALS[$class]->credit_class ) {
$order_total = $GLOBALS[$class]->get_order_total(isset($_SESSION['cc_id']) ? $_SESSION['cc_id'] : '');
if (is_array($order_total)) $order_total = $order_total['total'];
$deduction = $GLOBALS[$class]->pre_confirmation_check($order_total);
$total_deductions = $total_deductions + $deduction;
// echo 'class = ' . $class . "<br>";
// echo 'order-total = ' . $order_total . "<br>";
// echo 'deduction = ' . $deduction . "<br>";
}
else
{
$GLOBALS[$class]->process();
$GLOBALS[$class]->output = array();
}
}
$calculatedOrderTotal = $order->info['total'];
$order->info = $orderInfoSaved;
// echo "orderTotal = {$order->info['total']}";
// echo "TotalDeductions = {$total_deductions}";
// do not set when Free Charger is being used
$difference = $order->info['total'] - $total_deductions;
if ( $difference <= 0.009 && $_SESSION['payment'] != 'freecharger') {
$credit_covers = true;
}
if ($returnOrderTotalOnly == TRUE) return $calculatedOrderTotal;
}
}
// this function is called in checkout process. it tests whether a decision was made at checkout payment to use
// the credit amount be applied aginst the order. If so some action is taken. E.g. for a Gift voucher the account
// is reduced the order total amount.
//
function apply_credit() {
if (MODULE_ORDER_TOTAL_INSTALLED) {
reset($this->modules);
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if ( $GLOBALS[$class]->credit_class) {
$GLOBALS[$class]->apply_credit();
}
}
}
}
// Called in checkout process to clear session variables created by each credit class module.
//
function clear_posts() {
global $_POST;
if (MODULE_ORDER_TOTAL_INSTALLED) {
reset($this->modules);
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if ( $GLOBALS[$class]->credit_class && method_exists($GLOBALS[$class], 'clear_posts')) {
$GLOBALS[$class]->clear_posts();
}
}
}
}
// Called at various times. This function calulates the total value of the order that the
// credit will be applied against. This varies depending on whether the credit class applies
// to shipping & tax
//
function get_order_total_main($class, $order_total) {
global $credit, $order;
// if ($GLOBALS[$class]->include_tax == 'false') $order_total=$order_total-$order->info['tax'];
// if ($GLOBALS[$class]->include_shipping == 'false') $order_total=$order_total-$order->info['shipping_cost'];
return $order_total;
}
}
the block of code is present.....not sure what is wrong
-
Re: New Version: 1.2
Ok,
Looks like a left out a line of code from my merge file as above....
added the following code //include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/' . $value);
and all is now working.
Thanks for all you help.
-
Re: New Version: 1.2
No problem, glad you were able to get everything working!
-
Re: New Version: 1.2
On Zencart 1.5.0 with a working Edit order 4.0.3
We are getting this error when clicking 'new order' from Admin Home -> Customers -> Customers :
Quote:
Server error
The website encountered an error while retrieving
http://localhost/XXXXXX/new_order.ph...222&action=new. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
The link shown in the address bar is:
-
Re: New Version: 1.2
Quote:
Originally Posted by
relish
On Zencart 1.5.0 ... we are getting this error when clicking 'new order' from Admin Home -> Customers -> Customers ... The website encountered an error while retrieving ...
What error message is recorded in the server logs as the cause of the "Internal Server Error"? What version of PHP is your web server running?
Quote:
Originally Posted by
relish
The link shown in the address bar is: "http://localhost/XXXXXX/new_order.php?cID=222&action=new"
Can I safely assume your admin folder is named XXXXXX (or you masked the admin name with XXXXXX)? Are you running this on localhost (or masking a domain)?
-
1 Attachment(s)
Re: New Version: 1.2
Quote:
Originally Posted by
lhungil
What error message is recorded in the server logs as the cause of the "Internal Server Error"? What version of PHP is your web server running?
Can I safely assume your admin folder is named XXXXXX (or you masked the admin name with XXXXXX)? Are you running this on localhost (or masking a domain)?
I have masked the admin folder name with XXXXXX
Running it on localhost XAMP
Please see server info below
Attachment 11384
-
Re: New Version: 1.2
Quote:
Originally Posted by
relish
Running it on localhost XAMP
Please provide any Zen Cart error logs corresponding to the message. These can be found in the log file directory you configured when installing Zen Cart. Log files generated when browsing the admin pages usually have "adm" in the name. These may or may not have been created.
The XAMPP Apache Error logs are usually at something like "\xampp\apache\logs\error.log". Please look through your error logs and find the line corresponding to the 50X error message. These are always created when Apache displays a 50x error unless you have disabled the error_log for apache. If you have disabled the error_log, please turn it back on.
Looking at the contents of these logs should give a better idea of the underlying cause.
-
Re: New Version: 1.2
Quote:
Originally Posted by
Canvas101
Ok,
Looks like a left out a line of code from my merge file as above....
added the following code //include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/' . $value);
and all is now working.
Thanks for all you help.
I get the same messages you got wrt language. I have tried to paste your code into the class document, but nothing has changed. Can you please tell me where you included the code. Thanks.
-
Re: New Version: 1.2
Quote:
Originally Posted by
anniemacbee
I get the same messages you got wrt language. I have tried to paste your code into the class document, but nothing has changed. Can you please tell me where you included the code. Thanks.
No surprises there Canvas101, yours is modified. I just have a regular ol' installation, and still get titles in the subtotal and total summaries. Something is not loading the languages. I'm sure it must be something simple. Any suggestions?
-
Re: New Version: 1.2
Please ignore last messages. I don't know what I did, but it all works now.:blush:
-
Re: New Version: 1.2
As I am not a programmer, excuse my ignorance :-)
How to go about merging two files as needed for this installation, there must be a step by step instruction somewhere?
Once the New Order is installed, will there be a way to actually checkout (say the customer phoned in an order and gave his CC over the phone)?
Tia
-
Re: New Version: 1.2
Quote:
Originally Posted by
adolgin
... How to go about merging two files as needed for this installation, there must be a step by step instruction somewhere? ...
If you have not modified the "affected file", you can backup the original and use the file provided by this module. All changes needed from a "stock" version of Zen Cart 1.5.0 or 1.5.1 have been included. Just make sure you use the correct "affected_files" for your installed version.
If you have modified the "affected file" in the Zen Cart installation... There is no way we can create a "step by step instruction" as we have no idea what in your installation has been changed or why. You can use a tool such as WinMerge or Beyond Compare to see the differences between the files (provided by this module vs. your installation). These tools can then be used to "merge" the files as needed.
If you are unsure if the original has been modified (you inherited the installation), you can use a tool such as WinMerge or Beyond Compare to see what is different between your installation and what is included in the Zen Cart distribution.
Quote:
Originally Posted by
adolgin
... Once the New Order is installed, will there be a way to actually checkout (say the customer phoned in an order and gave his CC over the phone)?
Nope, this would require quite a large number of changes to Zen Cart to accomplish. Right now most people just add the order to Zen Cart to provide the customer with an invoice, online account to track the order, and for record keeping / reporting. When a customer calls in over the phone, payment is typically handled over the phone via other methods (for example Authorize.Net online account) and the payment is recorded manually in Zen Cart.
There is another alternative to accomplish what it sounds like you want (customer calls & you add the customer and order to Zen Cart - and take payment over the phone at the same time inside Zen Cart). However it requires a modification to Zen Cart which IMHO makes Zen Cart less secure (modifies Zen Cart to have a "master" password which can log into EVERY customer account). Using this method you can log into a customer account from the admin (or the store front) and go through checkout the same way as a customer does.
Both methods work with Zen Cart, and if you use either, I'd recommend either "Admin New Customer" or "Add Customers from Admin (1.5.0)" for adding new customer's manually. The first is basic, but works well with "Admin New Order". The second is far more robust and includes methods for importing customers ;)
-
Re: New Version: 1.2
Thank you very much for the answers. I did not have any changes to stock files; tried to install New Customers, Edit Orders, New Orders all on the same day (all your contributions). It appears that the 2nd and 3d went in no problem, but the first did not, conflicted with the 2, 3. There seems to be a need of merging between all 3. Right?
Your 2nd answer on the CC processing confirmed what I suspected, so I do not need to look for the right button :-)
-
Re: New Version: 1.2
Yes you would need to merge the "customers.php" files as both "Admin New Order" and "Admin New Customer" modify the same core file. With WinMerge, you just compare the two files and tell it to "merge" the code. Sent you a PM ;)
Merge #1: Right to Left (click to enlarge)
Attachment 12011
Merge #2: Left to Right (click to enlarge)
Attachment 12012
-
Re: New Version: 1.2
Thank you again, it worked :-)
-
Re: New Version: 1.2
Ok, installed this plugin. However, the new orders button is not showing up. Any ideas? Screenshot maybe of how it is supposed to look. Yes, I already installed Edit Order 4.0.
-
Re: New Version: 1.2
Quote:
Originally Posted by
newtozc32
Ok, installed this plugin. However, the new orders button is not showing up. Any ideas? Screenshot maybe of how it is supposed to look. Yes, I already installed Edit Order 4.0.
**Update** I see a new button now, however when I click on it I get a 500 server error. Where can I find error logs to see which file is not loading correctly? I have a hunch it has something to do with new_order.php.
-
Re: New Version: 1.2
Quote:
Originally Posted by
newtozc32
... I get a 500 server error. Where can I find error logs to see which file is not loading correctly?
In the Web Server error logs on your hosting provider. "500 server error" is just that, a SERVER error.
Quote:
Originally Posted by
newtozc32
I have a hunch it has something to do with new_order.php.
I have a hunch something was not installed correctly... Possibly a file was misplaced, a merge was not successful, or the installer did not complete...
First things to check: What error can be found in the server log in regards to the "500 server error"? Are there any debug logs in the /logs/ or /cache/ folder on your server?
Second, what do you see if you perform the following:
- Login to your Zen Cart admin.
- Upload "new_files_15x/admin" to your admin folder on your web server.
- Click on "Admin Home" in your Zen Cart admin?
-
Re: New Version: 1.2
Quote:
Originally Posted by
lhungil
In the Web Server error logs on your hosting provider. "500 server error" is just that, a SERVER error.
I have a hunch something was not installed correctly... Possibly a file was misplaced, a merge was not successful, or the installer did not complete...
First things to check: What error can be found in the server log in regards to the "500 server error"? Are there any debug logs in the /logs/ or /cache/ folder on your server?
Second, what do you see if you perform the following:
- Login to your Zen Cart admin.
- Upload "new_files_15x/admin" to your admin folder on your web server.
- Click on "Admin Home" in your Zen Cart admin?
I saw a message that the plugin was installed. I went file for file on that portion of the installation. I think I agree with you that something did not merge correctly, however I am not sure which file could be wrong?
-
Re: New Version: 1.2
Quote:
Originally Posted by
lhungil
In the Web Server error logs on your hosting provider. "500 server error" is just that, a SERVER error.
I have a hunch something was not installed correctly... Possibly a file was misplaced, a merge was not successful, or the installer did not complete...
First things to check: What error can be found in the server log in regards to the "500 server error"? Are there any debug logs in the /logs/ or /cache/ folder on your server?
Second, what do you see if you perform the following:
- Login to your Zen Cart admin.
- Upload "new_files_15x/admin" to your admin folder on your web server.
- Click on "Admin Home" in your Zen Cart admin?
Where do I find these logs or debug logs on my server?
-
Re: New Version: 1.2
Here is what I found:
[08-Apr-2013 12:54:55] PHP Parse error: syntax error, unexpected '<' in /home/wonkyeye/public_html/xtwheelz/admin-1364756771/includes/init_includes/init_currencies.php on line 19
-
Re: New Version: 1.2
Quote:
Originally Posted by
newtozc32
Here is what I found:
[08-Apr-2013 12:54:55] PHP Parse error: syntax error, unexpected '<' in /home/wonkyeye/public_html/xtwheelz/admin-1364756771/includes/init_includes/init_currencies.php on line 19
**Update**
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_subtotal.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_shipping.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_coupon.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_group_pricing.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_tax.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_loworderfee.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_gv.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_total.php
-
Re: New Version: 1.2
Quote:
Originally Posted by
newtozc32
**Update**
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_subtotal.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_shipping.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_coupon.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_group_pricing.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_tax.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_loworderfee.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_gv.php
WARNING: Could not locate language file: includes/languages/english/modules/order_total/ot_total.php
**Update**
These files exist. *stumped*:bangin:
-
Re: New Version: 1.2
Quote:
Originally Posted by
newtozc32
[08-Apr-2013 12:54:55] PHP Parse error: syntax error, unexpected '<' in /home/wonkyeye/public_html/xtwheelz/admin/includes/init_includes/init_currencies.php on line 19
Check the indicated file: "/admin/includes/init_includes/init_currencies.php". Something is not right around line 19.
Quote:
Originally Posted by
newtozc32
WARNING: Could not locate language file: includes/languages/english/modules/order_total.php ...
This means something is not right in how "/includes/classes/order_total.php" mas merged. This file loads the language files for order total modules.
This module does include a number of changes to core files, both in the admin and catalog. You will need to go through and make sure you merged the correct files in the correct folders... correctly :)
Probably not related, but you might also want to check and make sure in "/admin/includes/configure.php" all your paths are correctly specified - as this module reads the paths from the Zen Cart configuration.
-
Re: New Version: 1.2
http://www.diffnow.com/
Quote:
Originally Posted by
lhungil
Check the indicated file: "/admin/includes/init_includes/init_currencies.php". Something is not right around line 19.
This means something is not right in how "/includes/classes/order_total.php" mas merged. This file loads the language files for order total modules.
This module does include a number of changes to core files, both in the admin and catalog. You will need to go through and make sure you merged the correct files in the correct folders... correctly :)
Probably not related, but you might also want to check and make sure in "/admin/includes/configure.php" all your paths are correctly specified - as this module reads the paths from the Zen Cart configuration.
Woohoo! order_total.php was definitely the problem. For some reason it did not merge correctly just as you suspected. I think it's working now from what I can tell. :clap: No more strange warnings being displayed.
FYI. If anyone needs to compare files and merge here is something nifty available online for FREE:
http://www.diffnow.com/
-
Re: New Version: 1.2
Quote:
Originally Posted by
Canvas101
Ok,
Looks like a left out a line of code from my merge file as above....
added the following code //include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/' . $value);
and all is now working.
Thanks for all you help.
I see that I need to add this code also, but where exactly did you add this part? I am using V1.5.0. I have tried it in several places with no luck. I have pasted lines 31-50 from includes/classes/order_total.php.
PHP Code:
while (list(, $value) = each($module_list)) {
// Fixes for when called from ADMIN
$lang_file = null;
$module_file = DIR_WS_MODULES . 'order_total/' . $value;
if(IS_ADMIN_FLAG === true) {
$lang_file = zen_get_file_directory(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
$module_file = DIR_FS_CATALOG . $module_file;
}
else {
$lang_file = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/', $value, 'false');
}
if (@file_exists($lang_file)) {
include_once($lang_file);
} else {
if (IS_ADMIN_FLAG === false && is_object($messageStack)) {
$messageStack->add('header', WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
} else {
$messageStack->add_session(WARNING_COULD_NOT_LOCATE_LANG_FILE . $lang_file, 'caution');
}
}
Can you please tell me where I need to add the code:
PHP Code:
//include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/order_total/' . $value);
The error I am getting from my debug log is: [15-Apr-2013 17:09:40] PHP Fatal error: Call to undefined function zen_get_tax_locations() in /home8/wwrepair/public_html/parts/includes/modules/order_total/ot_tax.php on line 31
I appreciate any assistance you can provide. Thanks again!
-
Re: New Version: 1.2
Quote:
Originally Posted by
WWRepair
The error I am getting from my debug log is: [15-Apr-2013 17:09:40] PHP Fatal error: Call to undefined function zen_get_tax_locations() in /home8/wwrepair/public_html/parts/includes/modules/order_total/ot_tax.php on line 31
This message tells us the function zen_get_tax_locations was not found. This may indicate you are installing Admin New Order 1.3 and have not already installed Edit Order 4.1 (as it provides this function for the administrative side of Zen Cart). It could also indicate something missed when installing Edit Order...
At this time the only difference between Admin New Order 1.2 and 1.3 is which version of Edit Orders they support. Admin New Order 1.3 requires Edit Order 4.1 (noted on the download page). Admin New Order 1.2 requires Edit Order 4.0. Can you double check which version of Edit Orders is installed and which version of Admin New Orders you are trying to install / use?
-
Re: New Version: 1.2
I am using Edit Orders V4.0.4, which I have had for awhile. I appreciate your help, I just downloaded the add new customer also which works good by the way :D I get the error when trying to add a new order, but if I just hit back in the browser I can find a new order pending that I can edit. Any ideas?
-
Re: New Version: 1.2
Do you have Admin New Order 1.2 installed? Or Admin New Order 1.3 installed?
-
Re: New Version: 1.2
admin_new_orders_3 is the name of the file, so I am assuming V1.3. I just downloaded the latest yesterday of both the new orders and new customer (though customers says 2)
-
Re: New Version: 1.2
Quote:
Originally Posted by
WWRepair
admin_new_orders_3 is the name of the file, so I am assuming V1.3. I just downloaded the latest yesterday of both the new orders and new customer...
As mentioned previously in the support thread and on the download page, Admin New Order 1.3 requires Edit Order 4.1. It will NOT work with older versions of Edit Orders.
Edit Order 4.1.x <==> Admin New Order 1.3
Edit Order 4.0.x <==> Admin New Order 1.2
So to fix the error message you are seeing either upgrade to Edit Order 4.1 or downgrade to Admin New Order 1.2.
Quote:
Originally Posted by WWRepair
... if I just hit back in the browser I can find a new order pending that I can edit. ...
Although the order still shows up in Edit Orders... The database entries for the order total, subtotal, and other lines will not be fully populated until you are running compatible versions of both modules.
-
Re: New Version: 1.2
Thank you, I will download the 1.2 version. But so you are aware the instructions in 1.3 just say Edit Orders 4.x and do not say 4.1.x. Just an FYI because I though I was good based on this information.
"The plugin then sends the admin 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."
I will let you know if I have additional problems. Thanks again
-
Re: New Version: 1.2
Thank You for your feedback.
Version 1.3 was a "quick" release to support those installing Edit Orders 4.1 (Edit Orders 4.0 and 4.1 are very different in how they function). I hope to find time in the future to upgrade the installation / upgrade / installation script for Admin New Orders. As part of the process I will probably add a check (and warning message) to the installation script about compatibility.
The "Description" listed on the plugin download page you referenced is a generic description of Admin New Order (and how it functions). It is also not specific to any version of the module (the same is true for most of the other plugins you will find here). The "description" is not intended as instructions on how to install or use Admin New Order.
Please do let me know if you run into any other issues after installing the compatible versions of both plugins!
-
Re: New Version: 1.2
I merged the customer.php files from new customer v1.2 and new orders v1.2 and everything is working perfectly! Thank you so much for your plug in, I will find this VERY useful!
-
Re: New Version: 1.2
Quote:
Originally Posted by
WWRepair
... and new orders v1.2 and everything is working ...
Glad you were able to get things sorted :)
-
3 Attachment(s)
Re: New Version: 1.2
I installed:
zencart 1.51
edit orders 4.1
admin new orders 3 (version 1.3)
To tets it I used the demo products of the Zencart installation
I have the following problem:
1) I make an order (i.e. from front-end). In attached order1 file, the order apperas correctely in admin
2) I try to modify it (attached file order2)
3) When I click on UPDATE (even doing any modification) the order total is put at 0 (zero) with a strange tax amount (attached file order3).
The same thing appens creating an "admin order", but the problem seems caming from Edit Order rather than Admin New Order.
Some suggestions ?
Thanks
-
Re: New Version: 1.2
Quote:
Originally Posted by
nannid
I have the following problem:
1) I make an order (i.e. from front-end). In attached order1 file, the order apperas correctely in admin
2) I try to modify it (attached file order2)
3) When I click on UPDATE (even doing any modification) the order total is put at 0 (zero) with a strange tax amount (attached file order3).
The same thing appens creating an "admin order", but the problem seems caming from Edit Order rather than Admin New Order.
I agree, most likely something with "Edit Orders". Let's go discuss the subject there :)
-
1 Attachment(s)
Re: New Version: 1.2
Working on Zen Cart 1.5 (had working Edit Order 4.03)
I installed Admin New Order V1.2. Was getting the same error messages to the language files the Canvas 101 earlier. So, I uninstalled both Admin New Order and Edit Order to get back to a clean file. I am still getting the following text in my invoices after the Admin New Order is uninstalled.Attachment 12569
Could someone please tell me where/how to fix this for my invoices?
Thanks.
-
Re: New Version: 1.2
Quote:
Originally Posted by
shamanicconnection
...
I installed Admin New Order V1.2. Was getting the same error messages to the language files the Canvas 101 earlier.
...
If you are getting error messages when installing "Admin New Order", this means something was not installed correctly.
If the messages were about missing / unable to load language files, most likely one of the merges was missed (98% of the time is the cause). Another possibility is your Zen Cart "/admin/includes/configure.php" may have some invalid or strange settings (2% of the time this is the cause).
Quote:
Originally Posted by
shamanicconnection
...
I uninstalled both Admin New Order and Edit Order ... Could someone please tell me where/how to fix this for my invoices?
...
What exact page is that screen shot from? "/admin/invoices.php"? If so, something other than Edit Orders or Admin New Customer has modified the file (neither of these two plugins / modules touch the file). I repeat, neither of these modules make changes to "/admin/invoices.php".
That said, you should be able to copy over a clean version of "/admin/invoices.php" (download a clean copy of Zen Cart's distribution zip file and extract the original file). Keep in mind whatever other modifications have been made in your Zen Cart installation to "/admin/invoice.php" will be lost.
-
1 Attachment(s)
Re: New Version: 1.2
Hi
Great Plugin By the Way! I installed as instructed (Installed 'Edit Orders' with no issues and then 'Admin New Order'). All seems to work but I've noticed that I'm not getting 'total' on the Edit Order Page. See ScreenShot Below:-
Attachment 12577
The only other plugin I've installed that may be conflicting with this plugin is:-
http://www.zen-cart.com/downloads.php?do=file&id=597
Not sure if anyone can help point out whats causing the issue with the order totals?
Many thanks
Mark
-
Re: New Version: 1.2
Quote:
Originally Posted by
Purecarsound
...
Great Plugin By the Way! I installed as instructed (Installed 'Edit Orders' with no issues and then 'Admin New Order'). All seems to work but I've noticed that I'm not getting 'total' on the Edit Order Page.
...
Not sure if anyone can help point out whats causing the issue with the order totals?
If you have Edit Order 4.1 installed and are referring to the subtotal being 0, this is a known bug with Edit Orders 4.1. Instructions are posted on the Edit Orders Support thread regarding the sub-total being 0 when using Edit Orders 4.1.
-
Re: New Version: 1.2
Quote:
Originally Posted by
lhungil
If you have Edit Order 4.1 installed and are referring to the subtotal being 0, this is a
known bug with Edit Orders 4.1. Instructions are posted on the Edit Orders Support thread regarding the sub-total being 0 when using Edit Orders 4.1.
The 'fix' worked a treat, thank you for the Extremely quick response! I can get my head down now for some kip without worrying!
Regards
Mark
-
New Version: 1.3 ???????????????
I am grateful that this contribution there, unfortunately I can not make it work. I think it is very useful if you are using another connection contribution to social networks and creating a new account store (which is my case).
My problem is: I have previously installed Order Edition 4.1 (works well), but I installed Admin New Order v1.3 and despite receiving a message that was successfully installed, I can not see the button to generate new order, it's as if I had not installed nothing, is very strange. Wear hours spent reviewing the installation and can not find the problem and I have no errors on the server.
You could give me an idea of the problem? I appreciate it.
1.5.1 ZC
Server OS: Linux 2.6.32-379.22.1.lve1.2.17.1.el6.x86_64
PHP: 5.3.23 (Zend: 2.3.0) PHP Limité: 128M
MySQL 5.5.30-cll
HTTP Server: Apache
-
Re: New Version: 1.3 ???????????????
Quote:
Originally Posted by
fandara
... My problem is: I have previously installed Order Edition 4.1 (works well), but I installed Admin New Order v1.3 and despite receiving a message that was successfully installed, I can not see the button to generate new order, it's as if I had not installed nothing, is very strange. ...
If everything is installed correctly, after selecting a customer from "admin" -> "customers", you should see the "new order" button along with the usual "edit", "email", etc.
Verify you have merged the necessary changes into '/admin/customers.php' and have copied over the "new order" button image.
-
1 Attachment(s)
Re: Admin New Order [Support Thread]
I installed the module like instructed to, but when I click on customer/new orders buttom it goes to a blank page.
I have attached a screenshot so you can see the blank white page>
Any suggestions or how to fix this?
Attachment 12660
-
Re: Admin New Order [Support Thread]
Quote:
Originally Posted by
selcyis
I installed the module like instructed to, but when I click on customer/new orders buttom it goes to a blank page.
Zen Cart Version?
Edit Orders Version?
Admin New Order Version?
Contents of Error / Debug Log?
-
Re: Admin New Order [Support Thread]
I am currently using ZC1.5.1
edit_orders_4 V1.5.1
admin_new_orders_3 V1.5.1
I went through the bugging but it seems there must be a conflict with another module in my site.
Can you review my site?
Quote:
Originally Posted by
lhungil
Zen Cart Version?
Edit Orders Version?
Admin New Order Version?
Contents of Error /
Debug Log?
-
Re: Admin New Order [Support Thread]
heres the path where it stops at:
http://californiastylejewelry(DOT)co...D=2&action=new
Quote:
Originally Posted by
selcyis
I am currently using ZC1.5.1
edit_orders_4 V1.5.1
admin_new_orders_3 V1.5.1
I went through the bugging but it seems there must be a conflict with another module in my site.
Can you review my site?
-
Re: Admin New Order [Support Thread]
I noticed the blank page is from the root/includes area. Just not sure where
Quote:
Originally Posted by
selcyis
-
Re: Admin New Order [Support Thread]
Quote:
Originally Posted by
selcyis
...
edit_orders_4 V1.5.1
admin_new_orders_3 V1.5.1
...
Those are not the version numbers for Edit Orders or Admin New Orders. Please reply with the actual version numbers you are using (look in the downloaded zip file for the highest version number - Edit Orders is in the readme under "history" and Admin New Orders in the RELEASE_NOTES_ENGLISH file - if you do not remember which version was installed).
Quote:
...
I went through the bugging but it seems there must be a conflict with another module in my site.
So there were no Zen Cart debug files? If you are getting a blank page... And there are any debug logs... We need to see the contents. If there are no debug logs... Then we need to see the contents of the server error log.
-
Re: Admin New Order [Support Thread]
Heres the numbers:
admin_new_orders_3 <--- Blank Page when adding new_order:(
edit_orders_4 <--- Edit Orders works perfect:)
Quote:
Originally Posted by
lhungil
Those are not the version numbers for Edit Orders or Admin New Orders. Please reply with the actual version numbers you are using (look in the downloaded zip file for the highest version number - Edit Orders is in the readme under "history" and Admin New Orders in the RELEASE_NOTES_ENGLISH file - if you do not remember which version was installed).
So there were no Zen Cart debug files? If you are getting a blank page... And there are any debug logs... We need to see the contents. If there are no debug logs... Then we need to see the contents of the server error log.
-
Re: Admin New Order [Support Thread]
Quote:
Originally Posted by
selcyis
Heres the numbers:
admin_new_orders_3 <--- ... adding new_order
edit_orders_4 <--- Edit Orders ...
99% of the time when things do not work it is because things are not installed correctly, Zen Cart settings are not correct, or incompatible versions of plugins are installed.
In order to help you, we need you to provide the requested information. I did not ask for the "filenames" of the download zip files... I asked for the version numbers. Version numbers look like: 1.2, 1.3, 1.4, ... 4.0, 4.0.4, 4.1, etc.
If I had to guess, I'd say you have incompatible versions of the plugins installed as you appear to not be sure which versions are installed.
I also asked you to find and post the contents of any "debug" files (with a blank page at least one should exist - unless your Zen Cart / Server configuration is not working as expected). The contents of these files are vital to helping figure out where the installation may have gone wrong.
-
Re: Admin New Order [Support Thread]
Hi, I installed your current modules last week so the versions is - Edit Orders v4.1 = 12 Apr 2013
ZC = 1.5.1 XML Feed Drop-ship site.
Here is the log info:
[19-Jun-2013 19:29:23] PHP Warning: Missing argument 2 for cache::sql_cache_exists(), called in /home5/BLAH/public_html/includes/classes/db/mysql/query_factory.php on line 123 and defined in /home5/BLAH/public_html/includes/classes/cache.php on line 22
Also, I installed the modules multiple times very carefully. Everything seems to be working great expect when i add a new order to a customer who hasn't place an order. But everything seems to rock.
I am going to install the module one more time with "Version History" download BTN instead of the "Description" download BTN.
I know its the same but doesn't hurt to keep investigate.
Thanks for your response and if I get it running tonight I'll reply with the problem.
Quote:
Originally Posted by
lhungil
99% of the time when things do not work it is because things are not installed correctly, Zen Cart settings are not correct, or incompatible versions of plugins are installed.
In order to help you, we need you to provide the requested information. I did not ask for the "filenames" of the download zip files... I asked for the version numbers. Version numbers look like: 1.2, 1.3, 1.4, ... 4.0, 4.0.4, 4.1, etc.
If I had to guess, I'd say you have incompatible versions of the plugins installed as you appear to not be sure which versions are installed.
I also asked you to find and post the contents of any "debug" files (with a blank page at least one should exist - unless your Zen Cart / Server configuration is not working as expected). The contents of these files are vital to helping figure out where the installation may have gone wrong.
-
Re: Admin New Order [Support Thread]
Quote:
Originally Posted by
selcyis
...
Everything seems to be working great expect when i add a new order to a customer who hasn't place an order.
...
So it is working when the customer HAS previously placed an order?
How are the customers being added to Zen Cart? Do the customers have an address book entry? Have you installed any modifications to the default Zen Cart customer signup? Have you made any changes to the customer / address book database tables?
Quote:
Originally Posted by
selcyis
...
Here is the log info:
[19-Jun-2013 19:29:23] PHP Warning: Missing argument 2 for cache::sql_cache_exists(), called in /home5/BLAH/public_html/includes/classes/db/mysql/query_factory.php on line 123 and defined in /home5/BLAH/public_html/includes/classes/cache.php on line 22
...
This error message is related to the Zen Cart SQL cache (which is not utilized by Admin New Orders). Have any modifications been made to "Admin New Order"? Can you compare your version of "query_cache.php" with the stock one in Zen Cart 1.5.1?
Note: I've only seen that message in a few cases (completely unrelated to Admin New Order). Case 1: Zen Cart was upgraded from a previous version and query_factory.php was skipped. Case 2: The "query_cache.php" file is not the one from the stock Zen Cart 1.5.1. I've seen a few people trying to merge the "Query Cache" plugin into Zen Cart 1.5.1 (it is not compatible or needed). This will cause issues.
-
Re: Admin New Order [Support Thread]
So it is working when the customer HAS previously placed an order? YES
The users can register directly on the site by clicking on the register button and filling out all required fields address, phone, etc, etc. Or the user can purchase products with out register using COWOA Updated and Combined "Guess Checkout". I have made no changes with the customer address book unless guess checkout query has conflicted with admin new orders in the DB. I also have Ty Package Tracker installed but I merge the files careful so there is no conflict between those 2 modules "Admin New Orders."
Can you compare your version of "query_cache.php" with the stock one in Zen Cart 1.5.1?
I did compare the files everything seems collect.
Quote:
Originally Posted by
lhungil
So it is working when the customer HAS previously placed an order?
How are the customers being added to Zen Cart? Do the customers have an address book entry? Have you installed any modifications to the default Zen Cart customer signup? Have you made any changes to the customer / address book database tables?
This error message is related to the Zen Cart SQL cache (which is not utilized by Admin New Orders). Have any modifications been made to "Admin New Order"? Can you compare your version of "query_cache.php" with the stock one in Zen Cart 1.5.1?
Note: I've only seen that message in a few cases (completely unrelated to Admin New Order). Case 1: Zen Cart was upgraded from a previous version and query_factory.php was skipped. Case 2: The "query_cache.php" file is not the one from the stock Zen Cart 1.5.1. I've seen a few people trying to merge the "Query Cache" plugin into Zen Cart 1.5.1 (it is not compatible or needed). This will cause issues.
-
Re: Admin New Order [Support Thread]
New Login info from today:
[20-Jun-2013 13:59:43] PHP Fatal error: Cannot redeclare zen_get_ip_address() (previously declared in /home5/BLAH/public_html/backend/new_order.php:15) in /home5/BLAH/public_html/backend/includes/functions/extra_functions/function_poll_manager.php on line 13
Quote:
Originally Posted by
selcyis
So it is working when the customer HAS previously placed an order? YES
The users can register directly on the site by clicking on the register button and filling out all required fields address, phone, etc, etc. Or the user can purchase products with out register using COWOA Updated and Combined "Guess Checkout". I have made no changes with the customer address book unless guess checkout query has conflicted with admin new orders in the DB. I also have Ty Package Tracker installed but I merge the files careful so there is no conflict between those 2 modules "Admin New Orders."
Can you compare your version of "query_cache.php" with the stock one in Zen Cart 1.5.1?
I did compare the files everything seems collect.
-
Re: Admin New Order [Support Thread]
Uninstalled Polls Manager - New Log info:
[20-Jun-2013 14:39:23] PHP Fatal error: Call to undefined function freegiftscalculateshoppingcart() in /home5/BLAH/public_html/includes/classes/shopping_cart.php on line 1483
Okay, I figured it. Conflict between freegifts.. Its fixed finally..
Quote:
Originally Posted by
selcyis
New Login info from today:
[20-Jun-2013 13:59:43] PHP Fatal error: Cannot redeclare zen_get_ip_address() (previously declared in /home5/BLAH/public_html/backend/new_order.php:15) in /home5/BLAH/public_html/backend/includes/functions/extra_functions/function_poll_manager.php on line 13
-
Admin New Order 1.4 Released!
A new version of "Admin New Order" is available in the Zen Cart plugin repository. This version provides better compatibility with "Edit Orders" 4.1.
Those still running "Edit Orders" 4.0 should wait until "Admin New Order" version 1.4.1 becomes available to upgrade. Version 1.4.1 includes all of the fixes and patches in 1.4 and includes better compatibility with "Edit Orders" 4.0.
-
Re: New Version: 1.2
Really needs a CANCEL button to cancel if the order does not need to be entered, or if you selected the incorrect customer. Having to go back in and DELETE the order is rather silly. Is this in the works, or is there a quick fix?
-
Re: New Version: 1.2
Quote:
Originally Posted by
dgantonacci
Really needs a CANCEL button to cancel if the order does not need to be entered, or if you selected the incorrect customer. Having to go back in and DELETE the order is rather silly. Is this in the works, or is there a quick fix?
Currently this module is modeled to act exactly the same with the rest of a stock Zen Cart installation works in the administrative interface. Basically a list of items (customers in this case) are listed to the left. When an item in the list is selected, buttons used to interact with the selected item are displayed to the right. This was done to ensure anyone familiar with the Zen Cart administrative interface can quickly get started using this module.
Are you proposing an extra "confirmation" step should be added? What business purpose does adding such a "confirmation" step provide? I'm not unwilling to listen, but there are some very good reasons why no such "confirmation" step exists.
Here are just a few of the reasons why no "confirmation" step exists:
- Creating a new order does not alter existing database entries and can be easily undone. If an order is accidentally created (or the wrong customer was selected), one can simply delete the order. In most UIs actions which require minimal effort to undo do not include a "confirmation" step.
- The process of creating a new order is quick (typically less than a half a second). In most UIs actions which occur in a short period of time typically do not include a "confirmation" step.
- Every additional step requiring user interaction causes the process to take longer and be less efficient. In business time is money. By not including a "confirmation" step, time is saved in the process of creating an order.
- Adding a "confirmation" step to a process for an event which is not destructive typically leads to end user apathy in regards to the "confirmation" step. Basically the more times one see's a "confirmation" request, the more likely one is to ignore future "confirmation" steps (and thus defeats the purpose of having a "confirmation" step).
-
Re: New Version: 1.2
i can not get this module to work.. i have edit orders installed but after installing this module do NOT see anywhere to add a new order.. i've gone over the installation twice and still don't see where i add a new order.. is there another setting in the admin where this has to be turned on??? the module appeared to install fine when i first went back into admin with the message that it installed ok..
-
Re: New Version: 1.2
Quote:
Originally Posted by
tyankee
i can not get this module to work.. i have edit orders installed but after installing this module do NOT see anywhere to add a new order.. i've gone over the installation twice and still don't see where i add a new order.. is there another setting in the admin where this has to be turned on??? the module appeared to install fine when i first went back into admin with the message that it installed ok..
If correctly installed (including all merges - which are NOT checked by the installer). One navigates to Zen Cart's admin page for customers, selects a customer from the list, and clicks the "new order" button (shows up near the buttons "edit", "delete", "orders", and "email").
If this is not showing up I would recommend re-installing as the most likely culprit is a missed step / merged file.
-
Re: New Version: 1.2
yep that did it.. missed an includes folder.. thanks a bunch..
Quote:
Originally Posted by
lhungil
If correctly installed (including all merges - which are NOT checked by the installer). One navigates to Zen Cart's admin page for customers, selects a customer from the list, and clicks the "new order" button (shows up near the buttons "edit", "delete", "orders", and "email").
If this is not showing up I would recommend re-installing as the most likely culprit is a missed step / merged file.
-
Re: New Version: 1.2
Quote:
Originally Posted by
tyankee
yep that did it.. missed an includes folder.. thanks a bunch..
Glad you were able to get things sorted. Thank You for reporting back and letting us know the fix!
-
Re: Admin New Order [Support Thread]
Does it work with Zen cart 1.3.9?
-
Re: Admin New Order [Support Thread]
Quote:
Originally Posted by
vaishali
Does it work with Zen cart 1.3.9?
Except from the readme (included in the downloadable zip file):
Admin New Order IS NOT COMPATIBLE WITH VERSIONS OF ZEN CART PRIOR TO ZEN CART 1.5!!
There will be no support provided for Zen Cart v1.3.x
(if you are still running an older version of Zen Cart we strongly recommend that you upgrade as there are many security and performance enhancements in Zen Cart v1.5.1)
The download page also indicates Admin New Order is not compatible with Zen Cart < 1.5.0.
-
Re: Admin New Order [Support Thread]
I installed "Add New customer" than i installed "Add new order"
I followed the exact instructions on install, however after uploading the autoloader admin interface would be blank and no success msg shows, but if i delete the auto loader file everything works fine and the "insert" feature for new customer is fully functional. the new order button is also fully functional
What can be the cause of this? and can i go on like this or i might encounter problems in the future?
also a feature suggestion, to add the ability to choose customer group pricing-discount level on the add customer page
From debug log:
Code:
[30-Oct-2013 20:12:00 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/public_html/admin/add_customers.php on line 129
Thanks again
-
Re: Admin New Order [Support Thread]
Quote:
Originally Posted by
ShopVille
I installed "Add New customer" than i installed "Add new order"
...
From debug log:
Code:
[30-Oct-2013 20:12:00 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/public_html/admin/add_customers.php on line 129
There is no "add_customers.php" file in either "Admin New Customer" or "Admin New Order"... This module exists mostly to provide a "quick and basic" method of adding a new customer to the Zen Cart admin.
Suspect you may be looking for the support thread for "Add Customers from Admin (v1.5.0+)"? The "Add Customers from Admin" module includes more functionality including importing customers via CSV (including group pricing).
-
Re: New Version: 1.2
Hi,
I have installed this module on Zen Cart 1.5.1 but am having a slight issue with it. I select a customer and click the new order button; however I am presented with a blank screen after doing this. The order is created and I can go and edit it from the order section but I am not able to add products instantly after clicking create an order.
Please Help!
TTS
-
Re: New Version: 1.2
Quote:
Originally Posted by
TheTeeShack
... I select a customer and click the new order button; however I am presented with a blank screen after doing this. The order is created and I can go and edit it from the order section but I am not able to add products instantly after clicking create an order. ...
A quick search finds the following: I am getting a blank page. Can you post the contents of any "debug" logs?
-
Re: New Version: 1.2
Thanks for the advice, I'm new to ZC and once you had said about the logs I was able to find what I needed. Thanks!
-
Re: New Version: 1.2
Um, looks like I can't sort this one alone. The part causing the error for this module was within the ot_reward_points_display.php. If I comment out the line, it causes the reward points module to stop calculating the reward points. So it looks like I shall look at another way to make an order - maybe the log in as customer add on.
-
Re: New Version: 1.2
If you are using the "rewards points" module, there are instructions in their support thread on what changes need to be made to the "rewards points" module to allow it to be loaded from the administrative side of Zen Cart.
-
1 Attachment(s)
New Order Plugin Issues
Is support for this plugin ongoing? If so, is it going to be updated to work with the latest released version of ZC?
I have the current version of the plugin installed, however certain aspects of the plugin are not working. I.E. Sub-total, Total, Shipping, etc. I am able to create a new order, however it is not updating those values on the order itself. I hand jammed the shipping amount in that is there. I'll attach a screenshot of the problem.
Attachment 14626
If anyone can provide any help I would really appreciate it. This is a very important plugin for my website.
-
Re: New Order Plugin Issues
The function of this module is to create a new blank order. Admin New Order has nothing to do with order manipulation after creation (such as adding products, shipping, etc). It is working w/o any modification in my test environments including Zen Cart 1.5.3...
In a normal installation of Admin New Order, control is passed to Edit Orders to modify the blank order. I would recommend making sure Edit Orders 4.1+ is installed, up-to-date, working, and perusing the support thread for Edit Orders.
Keep in mind Edit Orders will not "fix" existing orders containing invalid data, missing data, or incorrect subtotals / totals.
-
Re: New Order Plugin Issues
Quote:
Originally Posted by
lhungil
The function of this module is to create a new blank order. Admin New Order has nothing to do with order manipulation after creation (such as adding products, shipping, etc). It is working w/o any modification in my test environments including Zen Cart 1.5.3...
In a normal installation of Admin New Order, control is passed to Edit Orders to modify the blank order. I would recommend making sure Edit Orders 4.1+ is installed, up-to-date, working, and perusing the support thread for Edit Orders.
Keep in mind Edit Orders will not "fix" existing orders containing invalid data, missing data, or incorrect subtotals / totals.
This is reply is not very helpful. I gave you a screenshot and told you the issues. Is it possible I'm doing something wrong?
Where's the instructions for using it? In the past I create a customer, then create a new order for the customer. Similarly, in the past it populated everything properly and there was no issue displaying figures related to the order. I.E. Sub-total, shipping, Total, etc.
Edit Orders 4.1+ is installed, etc, etc.
-
1 Attachment(s)
Re: New Order Plugin Issues
Quote:
Originally Posted by
lhungil
The function of this module is to create a new blank order. Admin New Order has nothing to do with order manipulation after creation (such as adding products, shipping, etc). It is working w/o any modification in my test environments including Zen Cart 1.5.3...
In a normal installation of Admin New Order, control is passed to Edit Orders to modify the blank order. I would recommend making sure Edit Orders 4.1+ is installed, up-to-date, working, and perusing the support thread for Edit Orders.
Keep in mind Edit Orders will not "fix" existing orders containing invalid data, missing data, or incorrect subtotals / totals.
I uninstalled Edit Orders completely. Reinstalled the latest vers.
This is what I'm getting now:
Attachment 14627
Should I delete the order I tried to create before uninstalling and reinstalling Edit Orders latest vers.???
-
1 Attachment(s)
Re: New Order Plugin Issues
Quote:
Originally Posted by
newtozc32
I uninstalled Edit Orders completely. Reinstalled the latest vers.
This is what I'm getting now:
Attachment 14627
Should I delete the order I tried to create before uninstalling and reinstalling Edit Orders latest vers.???
Actually this is a better image:
Attachment 14628
As you can see there is no Sub-total and that is affecting the Total.
-
Re: Admin New Order [Support Thread]
Quote:
Originally Posted by
newtozc32
... Should I delete the order I tried to create before uninstalling and reinstalling Edit Orders latest vers.???
You will need to delete the problematic order (and recreate).
NOTE: Reference this post in the Edit Orders support thread for more details.
-
Re: New Order Plugin Issues
-
Re: Admin New Order [Support Thread]
Edit Orders 4 is already installed, however I'm getting this error
Quote:
Error: Admin New Order requires Edit Orders 4.x. You must install a compatible version of Edit Orders before the installation will continue!
-
Re: Admin New Order [Support Thread]
Quote:
Originally Posted by
Ralyn
Edit Orders 4 is already installed ...
Log into your Zen Cart administrative interface. Go to "Configuration" -> "Edit Orders". On the configuration page for "Edit Orders", what is the version listed?
-
Re: Admin New Order [Support Thread]
Hi
I have been asked to add this software onto our current website. Could I just ask: Does the software give you the option to add products already listed in the database or can you add custom features which aren't listed?
The reason I ask is because the product we are looking to add shortly is very bespoke and made to order. They are after control over the listing and the price.
For example someone could say, I would like X product gold plated, where we quote them a price (say £20 extra) and they ok it.
Does that make any sense? :smile:
-
Re: Admin New Order [Support Thread]
I ended up doing a re-install of the whole site and problem didn't appear again - so don't know what the problems was. And it's the newest version of both mods.