If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Admin Tools / Admin New Order [Support Thread]

Admin New Order [Support Thread]

Started by lhungil on 4 Sep 2012, 2:24 PM · Views: 31,396

Results 41 to 60 of 113
8 Apr 2013, 9:16 PM
#41
newtozc32 avatar

newtozc32

New Zenner

Join Date:
Oct 2010
Location:
SoCal
Posts:
79
Plugin Contributions:
0

Post #41 by newtozc32

http://www.diffnow.com/> 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/

15 Apr 2013, 11:22 PM
#42
wwrepair avatar

wwrepair

New Zenner

Join Date:
Jun 2012
Posts:
92
Plugin Contributions:
0

Post #42 by wwrepair

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.

      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
//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!
16 Apr 2013, 12:19 PM
#43
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #43 by lhungil

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?

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

16 Apr 2013, 2:19 PM
#44
wwrepair avatar

wwrepair

New Zenner

Join Date:
Jun 2012
Posts:
92
Plugin Contributions:
0

Post #44 by wwrepair

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?

16 Apr 2013, 2:59 PM
#45
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #45 by lhungil

Do you have Admin New Order 1.2 installed? Or Admin New Order 1.3 installed?

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

16 Apr 2013, 3:56 PM
#46
wwrepair avatar

wwrepair

New Zenner

Join Date:
Jun 2012
Posts:
92
Plugin Contributions:
0

Post #46 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 (though customers says 2)

16 Apr 2013, 5:06 PM
#47
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #47 by lhungil

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.

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.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

16 Apr 2013, 5:18 PM
#48
wwrepair avatar

wwrepair

New Zenner

Join Date:
Jun 2012
Posts:
92
Plugin Contributions:
0

Post #48 by wwrepair

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

16 Apr 2013, 6:00 PM
#49
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #49 by lhungil

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!

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

16 Apr 2013, 6:46 PM
#50
wwrepair avatar

wwrepair

New Zenner

Join Date:
Jun 2012
Posts:
92
Plugin Contributions:
0

Post #50 by wwrepair

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!

17 Apr 2013, 11:54 AM
#51
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #51 by lhungil

WWRepair:

... and new orders v1.2 and everything is working ...
Glad you were able to get things sorted :)

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

18 Apr 2013, 3:20 PM
#52
nannid avatar

nannid

New Zenner

Join Date:
Feb 2007
Posts:
17
Plugin Contributions:
0

Post #52 by nannid

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

18 Apr 2013, 5:07 PM
#53
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #53 by lhungil

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 :)

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

28 May 2013, 5:41 PM
#54
shamanicconnection avatar

shamanicconnection

New Zenner

Join Date:
Apr 2012
Posts:
10
Plugin Contributions:
0

Post #54 by shamanicconnection

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.

28 May 2013, 6:10 PM
#55
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #55 by lhungil

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).

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.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

29 May 2013, 11:55 PM
#56
purecarsound avatar

purecarsound

New Zenner

Join Date:
May 2006
Location:
Chester, UK
Posts:
99
Plugin Contributions:
0

Post #56 by purecarsound

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

30 May 2013, 12:06 AM
#57
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #57 by lhungil

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.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

30 May 2013, 12:22 AM
#58
purecarsound avatar

purecarsound

New Zenner

Join Date:
May 2006
Location:
Chester, UK
Posts:
99
Plugin Contributions:
0

Post #58 by purecarsound

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

4 Jun 2013, 11:00 PM
#59
fandara avatar

fandara

New Zenner

Join Date:
May 2012
Location:
Venezuela
Posts:
5
Plugin Contributions:
0

Post #59 by fandara

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

5 Jun 2013, 12:49 PM
#60
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Post #60 by lhungil

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.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker