Zen Cart Logo
Forums / Addon Admin Tools / Edit Orders v4.0 Support Thread

Edit Orders v4.0 Support Thread

Views: 346,050

Results 1,021 to 1,040 of 1,927
16 Sep 2016, 11:32 AM
#1021
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Edit Orders v4.0 Support Thread

roberttimmons:

Sorry I have not had time to go through a bunch of posts but will this work with 1.55a?
As mc12345678 indicated, the plugin does work on Zen Cart 1.5.5a. Just follow the installation instructions, merging required core-file changes where noted, and you should be good-to-go.

24 Sep 2016, 5:57 PM
#1022
roberttimmons avatar

roberttimmons

New Zenner

Join Date:
Apr 2010
Posts:
40
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

thank you guys. I was just in a frenzy that day had to do a forced upgrade on a site and had many other add ins I needed to get working before I even started to worry about edit orders. Things are back to normal now so I will do my due diligence.

25 Sep 2016, 2:46 AM
#1023
oldngrey avatar

oldngrey

Zen Follower

Join Date:
Apr 2008
Location:
Qld, Australia
Posts:
417
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

EO 4.1.6 orders.php patches for ZC 1.5.5a

I am upgrading to ZC 1.5.5a from 1.3.9h with all fresh configuration and only migrating the database.

The read me file for EO 4.1.6 under Modified Core files, item 3, states:

There are five (5) change sections that apply to "Edit Orders" and other sections that introduce the Super Orders navigation to the orders' handling. If you are installing/upgrading on Zen Cart 1.5.5 or later, these navigation-related changes are already incorporated, but you'll need to merge the five change-sections into your version of this file.
"

In the 1_modified_core_files folder the orders.php file provided has only 4 change sections clearly marked. These are edit order patches 2 of 5 through to 5 of 5.

Are there really only 4 patches or are there 5?

Bailey

25 Sep 2016, 11:56 AM
#1024
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

OldNGrey:

EO 4.1.6 orders.php patches for ZC 1.5.5a

I am upgrading to ZC 1.5.5a from 1.3.9h with all fresh configuration and only migrating the database.

The read me file for EO 4.1.6 under Modified Core files, item 3, states:

There are five (5) change sections that apply to "Edit Orders" and other sections that introduce the Super Orders navigation to the orders' handling. If you are installing/upgrading on Zen Cart 1.5.5 or later, these navigation-related changes are already incorporated, but you'll need to merge the five change-sections into your version of this file.
"

In the 1_modified_core_files folder the orders.php file provided has only 4 change sections clearly marked. These are edit order patches 2 of 5 through to 5 of 5.

Are there really only 4 patches or are there 5?

Bailey
There really are 5 patches; the first (a one-line insert) is at line 331 of the plugin's orders.php to add the edit_orders.css file's load.

28 Sep 2016, 3:46 PM
#1025
dtomlinson avatar

dtomlinson

New Zenner

Join Date:
Jan 2016
Location:
Toronto
Posts:
23
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

I've been using Edit Orders (slightly modified by me) on 1.5.1 forever. Now upgrading to 1.5.5 (as a new install) there are a couple of issues I haven't been able to resolve.

First one is the big one - the tax treatment (we're in Canada) of the order_total items. Most of these are discounts, which should affect the tax charged etc (reducing it).
I also tried a COD charge, which of course is taxable, and determined the totals correct after placing the order.

After Admin / Edit Orders / (no changes) / Update: First update, the total and tax was changed to completely wrong - it didn't add in the COD fee, and the total included only some of the tax. On the second Update, the tax was corrected on the shipping, however the COD fee and the tax on it is completely ignored for the tax amount AND the base COD fee.

I've attached the edit orders debug log.

HOW editing works, and what code is used to recalc these things, or at least the flow - and what dependancies would be great to know so I can edit myself. Can you point me to documentation of who does what to who for these?

Thanks,
Dan Tomlinson

28 Sep 2016, 3:52 PM
#1026
marton_1 avatar

marton_1

Totally Zenned

Join Date:
Apr 2013
Location:
eglisau switzerland
Posts:
568
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

DTomlinson:

I've been using Edit Orders (slightly modified by me) on 1.5.1 forever. Now upgrading to 1.5.5 (as a new install) there are a couple of issues I haven't been able to resolve.

First one is the big one - the tax treatment (we're in Canada) of the order_total items. Most of these are discounts, which should affect the tax charged etc (reducing it).
I also tried a COD charge, which of course is taxable, and determined the totals correct after placing the order.

After Admin / Edit Orders / (no changes) / Update: First update, the total and tax was changed to completely wrong - it didn't add in the COD fee, and the total included only some of the tax. On the second Update, the tax was corrected on the shipping, however the COD fee and the tax on it is completely ignored for the tax amount AND the base COD fee.

I've attached the edit orders debug log.

HOW editing works, and what code is used to recalc these things, or at least the flow - and what dependancies would be great to know so I can edit myself. Can you point me to documentation of who does what to who for these?

Thanks,
Dan Tomlinson

I had a similar problem due to the default sort order!
The tax has to be the "lowest" on the list just before the final total!

28 Sep 2016, 4:10 PM
#1027
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

DTomlinson:

I've been using Edit Orders (slightly modified by me) on 1.5.1 forever. Now upgrading to 1.5.5 (as a new install) there are a couple of issues I haven't been able to resolve.

First one is the big one - the tax treatment (we're in Canada) of the order_total items. Most of these are discounts, which should affect the tax charged etc (reducing it).
I also tried a COD charge, which of course is taxable, and determined the totals correct after placing the order.

After Admin / Edit Orders / (no changes) / Update: First update, the total and tax was changed to completely wrong - it didn't add in the COD fee, and the total included only some of the tax. On the second Update, the tax was corrected on the shipping, however the COD fee and the tax on it is completely ignored for the tax amount AND the base COD fee.

I've attached the edit orders debug log.

HOW editing works, and what code is used to recalc these things, or at least the flow - and what dependancies would be great to know so I can edit myself. Can you point me to documentation of who does what to who for these?

Thanks,
Dan Tomlinson
Dan, how "slightly modified" is your copy of Edit Orders? Are you using the 4.1.6 EO version as your change-basis?

28 Sep 2016, 6:56 PM
#1028
dtomlinson avatar

dtomlinson

New Zenner

Join Date:
Jan 2016
Location:
Toronto
Posts:
23
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

The 4.1.6 EO is installed, and as far as I remember is unchanged.

It's the previous that I'd modified on the live site.

What I modified was to not allow the user to "lose" information. I always kept the original order quantities etc, and had added fields to do that.
All added items were tagged as [CSAdd] in the product name, as well the original quantity was kept. 0 became a valid order quantity that never could ship of course - but a customer, or me, could see the original and as-shipped order.

We have 50,000+ products in 1,000+ categories - and 3 people who deal with orders, so there has to be that level of auditability.

That's not in THIS install - yet! I have to wrap my head around how to change 4.1.6 to have the capability I had in 4.0.3 on ZC151.

28 Sep 2016, 7:12 PM
#1029
dtomlinson avatar

dtomlinson

New Zenner

Join Date:
Jan 2016
Location:
Toronto
Posts:
23
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

marton_1:

I had a similar problem due to the default sort order!
The tax has to be the "lowest" on the list just before the final total!

That one I have :) It's some items that are being ignored, no tax changes, or even just dropped :(

28 Sep 2016, 7:19 PM
#1030
danielle avatar

danielle

Totally Zenned

Join Date:
Oct 2004
Posts:
973
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

Did you have any luck with this? We are still having this issue, I've tried a variety of things to fix it but no luck so far.

lat9:

I'll need to look further for the way that EO differs from the "standard" Zen Cart handling of those attributes that are without sort-orders. I'll post back here when I have additional information.

28 Sep 2016, 7:40 PM
#1031
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

Danielle:

Did you have any luck with this? We are still having this issue, I've tried a variety of things to fix it but no luck so far.
Nope, haven't had a chance ... yet.

28 Sep 2016, 8:07 PM
#1032
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

@Danielle, did you try upgrading your EO installation to 4.1.6? That version has a slew of bugfixes pre-included.

I've modeled your configuration on EO 4.1.6 and Zen Cart 1.5.5a and cannot reproduce your issue. I created an order for a product with two text-type attributes followed by a radio-button choice (ordered in that manner). When I edit the order (via press of the "Update" button after updating the item's price), the attributes come back listed in the same (text/text/radio) order.

What are your Configuration->Edit Orders settings?

17 Oct 2016, 10:38 PM
#1033
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

I've just installed Edit Orders in my 1.55a test site. The installation proceeded just fine, no error messages, but when I try to go to the orders screen, I get an error message. It's one of those really unhelpful ones that means something happened way back there in the program like a missing semi-colon, but there's no way to know exactly where. Don't you love those, sigh.

Parse error: syntax error, unexpected end of file in /home/darwinhi/public_html/newnaturalsonline/test/My_Admin/orders.php on line 1068

I have gone through and very carefully examined every one of the five merge code sections, and don't see anything wrong. If anyone has run into this particular issue and knows what the fix is, I'd appreciate it. My biggest supplier just let me know that he's sending two different versions of the product we've all been waiting for, so now I have to be able to change people's orders if they want the alternate version. We'll do it the old fashioned way with scribbled notes on the packing slips if we have to, but this seemed like a perfect opportunity to install the Edit Orders plugin.

18 Oct 2016, 2:12 AM
#1034
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Edit Orders v4.0 Support Thread

Rather than a semicolon, you've probably removed or added extra braces: } or {

18 Oct 2016, 4:24 PM
#1035
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

DrByte:

Rather than a semicolon, you've probably removed or added extra braces: } or {

I've checked for that, and didn't find any missing or extras. But I just realized that this wasn't a vanilla orders.php. I have the affiliate plug-in installed. So I need to go back and look at what got changed in that. I may have to go back to the orders.php from the installation package and start over from there.

18 Oct 2016, 5:20 PM
#1036
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Edit Orders v4.0 Support Thread

I'm sure it's been mentioned before, but Beyond Compare, and Araxis Merge, are great tools for visually comparing files. (I know Merge even has a 3-way compare which can be really handy.)

18 Oct 2016, 5:32 PM
#1037
helenewallis avatar

helenewallis

Totally Zenned

Join Date:
Jun 2016
Location:
Suffolk VA
Posts:
625
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

DrByte:

I'm sure it's been mentioned before, but Beyond Compare, and Araxis Merge, are great tools for visually comparing files. (I know Merge even has a 3-way compare which can be really handy.)

Yes, I use Beyond Compare.

18 Oct 2016, 6:40 PM
#1038
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

Re: Edit Orders v4.0 Support Thread

I'm receiving the following error PHP Warning: Invalid argument supplied for foreach() in edit_orders.php on line 1700

It's happening when I try to add a product with attributes, the product is added to the order but the attributes are not, any idea what the issue could be?

Edit Orders v4.1.4
Zen Cart v1.5.4

Below is the code staring with line 1700

			foreach($_POST['id'] as $id => $value) {
				if(is_array($value)) {
					foreach($value as $id2 => $value2) {
						if(is_array($value2)) {
							foreach($value2 as $id3 => $value3) {
								echo '<input type="hidden" name="id[' . $id . '][' . $id2 .'][' . $id3 . ']" value="' . zen_html_quotes($value3) . '">';
							}
						}
						else {
							echo '<input type="hidden" name="id[' . $id . '][' . $id2 .']" value="' . zen_html_quotes($value2) . '">';
						}
					}
				}
				else {
					echo '<input type="hidden" name="id[' . $id . ']" value="' . zen_html_quotes($value) . '">';
				}
			}
		}
18 Oct 2016, 6:47 PM
#1039
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,066
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

@marcopolo, the current version for EO is 4.1.6 (with 4.1.7 in the "works"); it's got a bunch of bug-fixes and other changes incorporated.

Please upgrade to the most recent version and see if the issue has been previously resolved.

18 Oct 2016, 7:23 PM
#1040
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
516
Plugin Contributions:
2

Re: Edit Orders v4.0 Support Thread

Ok just upgraded but now when I click on an order to edit I'm getting this in admin:

You must install the Zen Cart 1.5.5 AdminRequestSanitizer class before you can use Edit Orders on this site