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

Edit Orders v4.0 Support Thread

Views: 345,919

Results 341 to 360 of 1,927
01 Nov 2013, 06:43
#341
kitschcakes avatar

kitschcakes

New Zenner

Join Date:
Oct 2013
Location:
Suisse
Posts:
1
Plugin Contributions:
0

Edit Orders v4.0 Support Thread

Hi,

I'm using Zen Cart 1.5 and I'm having an issue with Edit Orders (v.4.1.2) and the module Order Total.

Here's the problem, when I edit an order (example add a product) Edit Orders recalcul my tax in a wrong way.

Here what I'm having before the update : Attachment 13282

And what happend after the update : Attachment 13283

Any idea how to resolve that ? I'm at your disposal if you need more information. Thank you in advance for your answer.

02 Nov 2013, 15:15
#342
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

Small defect in comment handling - if no other changes are made, comments are not saved. Fix for version 4.1.2 is in admin/edit_orders.php line 147 - add a check of $comments to the conditional clause:

        if(($check_status->fields['orders_status'] != $status) || zen_not_null($track_id) || zen_not_null($comments)) {
02 Nov 2013, 18:04
#343
lhungil avatar

lhungil

Totally Zenned

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

Re: Edit Orders v4.0 Support Thread

Yup, that change is already integrated in the next version (still beta). The posted comment fix and the fix for fractional quantities are falling a bit behind in this thread!

Hoping to find time to at least look into passing through upload attributes (not full support) before the next release...

02 Nov 2013, 18:05
#344
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

Defects in handling attributes which are grids: If you use Absolute's Product Attributes Grid module

http://www.zen-cart.com/downloads.php?do=file&id=618

You need to make two changes in admin/edit_orders.php. Search in that file for PRODUCTS_OPTIONS_TYPE_SELECT:
Right after it, add the line

        case 23997: // GRID

So you'll have

                    case PRODUCTS_OPTIONS_TYPE_SELECT:
                    case 23997: // GRID

Line numbers for Edit Orders 4.1.2 are 895 and 1474.

02 Nov 2013, 20:46
#345
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

Maintainers of Edit Orders: To make my stuff (Better Together, Quantity Discounts, Table Discounts, etc.) work with Edit Orders, you need to populate the cart. Right now $_SESSION['cart']->get_products(); returns an empty array. I traced this from edit_orders_functions.php l 1090.

03 Nov 2013, 17:47
#346
scotthead1st avatar

scotthead1st

New Zenner

Join Date:
Sep 2013
Location:
Florida
Posts:
18
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

Just installed COWOA and merged all core files however now my edit orders screen is completely blank. Any ideas or has anyone had this issue? Running Zen Cart 1.5.0 and edit orders 4.1.2.

Thanks

03 Nov 2013, 17:59
#347
southshorepizza avatar

southshorepizza

Zen Follower

Join Date:
Sep 2012
Posts:
253
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

I am running both on zen 1.5.1 and have no issues. Maybe check proper placement of all files.

03 Nov 2013, 18:03
#348
scotthead1st avatar

scotthead1st

New Zenner

Join Date:
Sep 2013
Location:
Florida
Posts:
18
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

I have done that. I am going to try and restore from my backup before COWOA and see if I was having the problem and just didn't realize it.

From what I can see the two mods only share one common file admin/orders.php

03 Nov 2013, 18:39
#349
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Edit Orders v4.0 Support Thread

scotthead1st:

I have done that. I am going to try and restore from my backup before COWOA and see if I was having the problem and just didn't realize it.

From what I can see the two mods only share one common file admin/orders.php

Blank screen means an error log was probably generated. Check your /cache folder.

03 Nov 2013, 18:48
#350
scotthead1st avatar

scotthead1st

New Zenner

Join Date:
Sep 2013
Location:
Florida
Posts:
18
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

Okay so I have uploaded the backup before I installed COWOA and it fixed the problem. Sounds like they aren't wanting to play nice with each other. I'm going to check the error logs as suggested.

03 Nov 2013, 20:14
#351
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Edit Orders v4.0 Support Thread

scotthead1st:

Okay so I have uploaded the backup before I installed COWOA and it fixed the problem. Sounds like they aren't wanting to play nice with each other. I'm going to check the error logs as suggested.

They "play" just fine together so long as you merge the common file correctly.. Post the results of your error logs.. it sounds as if you borked somethign in merging the one common file..

03 Nov 2013, 21:48
#352
scotthead1st avatar

scotthead1st

New Zenner

Join Date:
Sep 2013
Location:
Florida
Posts:
18
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

Okay, so after I uploaded the backup I used the SQL uninstall for COWOA and then I re-installed the SQL patch, turned on COWOA, and it has no problems. I did this all without re-uploading COWOA. In short I have no idea what fixed it but it is fixed. May have been the file placement as suggested before. The only errors I am finding in my error logs are actually related to Authorize.NET mod. That's another can of worms for another day.

Thanks for responses.

08 Nov 2013, 11:19
#353
izar74 avatar

izar74

Zen Follower

Join Date:
Mar 2009
Location:
Italy
Posts:
155
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

Hi, Edit order has an issue with Reward Point full 2.1b

It works great until You try to save an adited order. After hitting update You got a blank page. If You go back and check you will see that the Total of the order had not changed even if the single quantity of a product had been changed.

here the error code:

[08-Nov-2013 11:13:02 UTC] PHP Fatal error: Call to undefined function GetRewardPoints() in C:\wamp\www\negozio152\includes\modules\order_total\ot_reward_points_display.php on line 40
[08-Nov-2013 11:13:02 UTC] PHP Stack trace:
[08-Nov-2013 11:13:02 UTC] PHP 1. {main}() C:\wamp\www\negozio152\adzenmin\edit_orders.php:0
[08-Nov-2013 11:13:02 UTC] PHP 2. eo_update_database_order_totals() C:\wamp\www\negozio152\adzenmin\edit_orders.php:317
[08-Nov-2013 11:13:02 UTC] PHP 3. order_total->process() C:\wamp\www\negozio152\adzenmin\includes\functions\extra_functions\edit_orders_functions.php:1090
[08-Nov-2013 11:13:02 UTC] PHP 4. ot_reward_points_display->process() C:\wamp\www\negozio152\includes\classes\order_total.php:72

I'm using:
Edit Orders 4.1.2
Reward Point full 2.1b
MySQL 5.5.24
PHP/5.4.3
Zencart 1.51

If someone figure it out please help, meanwhile I'll look for a solution

08 Nov 2013, 11:26
#354
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,682
Plugin Contributions:
56

Re: Edit Orders v4.0 Support Thread

I could have sworn I posted the fix for this but I don't see it right now after a quick search. But here it is:

For people running Rewards Points and Edit Orders, you must copy the file

includes/functions/extra_functions/reward_points_functions.php

to

admin/includes/functions/extra_functions/reward_points_functions.php

08 Nov 2013, 12:03
#355
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Edit Orders v4.0 Support Thread

izar74:

Hi, Edit order has an issue with Reward Point full 2.1b

It works great until You try to save an adited order. After hitting update You got a blank page. If You go back and check you will see that the Total of the order had not changed even if the single quantity of a product had been changed.

here the error code:

[08-Nov-2013 11:13:02 UTC] PHP Fatal error: Call to undefined function GetRewardPoints() in C:\wamp\www\negozio152\includes\modules\order_total\ot_reward_points_display.php on line 40
[08-Nov-2013 11:13:02 UTC] PHP Stack trace:
[08-Nov-2013 11:13:02 UTC] PHP 1. {main}() C:\wamp\www\negozio152\adzenmin\edit_orders.php:0
[08-Nov-2013 11:13:02 UTC] PHP 2. eo_update_database_order_totals() C:\wamp\www\negozio152\adzenmin\edit_orders.php:317
[08-Nov-2013 11:13:02 UTC] PHP 3. order_total->process() C:\wamp\www\negozio152\adzenmin\includes\functions\extra_functions\edit_orders_functions.php:1090
[08-Nov-2013 11:13:02 UTC] PHP 4. ot_reward_points_display->process() C:\wamp\www\negozio152\includes\classes\order_total.php:72

I'm using:
Edit Orders 4.1.2
Reward Point full 2.1b
MySQL 5.5.24
PHP/5.4.3
Zencart 1.51

If someone figure it out please help, meanwhile I'll look for a solution

swguy:

I could have sworn I posted the fix for this but I don't see it right now after a quick search. But here it is:

For people running Rewards Points and Edit Orders, you must copy the file

includes/functions/extra_functions/reward_points_functions.php

to

admin/includes/functions/extra_functions/reward_points_functions.php

Also, although this was an example of a local installation, the actual name of the admin directory should be obfuscted. My suggestion would be to always list as admin if displayed in a forum.

Also to aid in trouble shooting problems similar to this, a search of files for the function names like the one that was identified as "missing" would have shown that the function was in the store's include directory and not in the admin directory's includes directory leading to the fix posted by swguy.

08 Nov 2013, 17:04
#356
izar74 avatar

izar74

Zen Follower

Join Date:
Mar 2009
Location:
Italy
Posts:
155
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

Hi sorry to point It out but in the 2.1b installation of Reward Point there is already a file named reward_points_functions.php in the /admin/includes/functions/extra_function
It's different from the one in includes/functions/extra_functions/ so i don't think It is possible to overwrite is without causing more problems.

Before posting I've already checked and searched for a solution so the one posted by swguy was already considered.

P.s. @mc12345678 yes is just a server test obviously but your point is right

08 Nov 2013, 17:12
#357
izar74 avatar

izar74

Zen Follower

Join Date:
Mar 2009
Location:
Italy
Posts:
155
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

UPDATE!!: just to give it a try a do as suggested by swguy (overwriting the file), Edit order get back to work properly but all the admin configuration menu of Reward Point got messed up as expected.

08 Nov 2013, 17:17
#358
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Edit Orders v4.0 Support Thread

izar74:

UPDATE!!: just to give it a try a do as suggested by swguy (overwriting the file), Edit order get back to work properly but all the admin configuration menu of Reward Point got messed up as expected.

What about just copying the missing function from the includes folder file to the admins version?, was this thing found in an upgrade? Has the upgrade been verified?

08 Nov 2013, 17:42
#359
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Edit Orders v4.0 Support Thread

Not to be a naysayer, but seems that this is more of an issue with Rewards Points, than Edit Orders.. Perhaps you should take a look at the Rewards Points support thread??? Module authors cannot be expected to support how their modules work with other modules..

08 Nov 2013, 18:08
#360
lhungil avatar

lhungil

Totally Zenned

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

Re: Edit Orders v4.0 Support Thread

izar74:

Hi, Edit order has an issue with Reward Point full 2.1b

... the error code:

[08-Nov-2013 11:13:02 UTC] PHP Fatal error: Call to undefined function GetRewardPoints() in C:\wamp\www\negozio152\includes\modules\order_total\ot_reward_points_display.php on line 40
...

If someone figure it out please help, meanwhile I'll look for a solution
This is covered in the README. You need to make sure any functions added by a 3rd party order total module (such as reward points) are present on the admin side as well as the catalog side (or loaded by the 3rd party module).