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

Edit Orders v4.0 Support Thread

Views: 346,084

Results 1,881 to 1,900 of 1,927
6 May 2025, 4:10 PM
#1881
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,770
Plugin Contributions:
9

Edit Orders v4.0 Support Thread

Well, it might be a problem that I do not show a Configuration option for EO:blink:

I specifically removed all previous EO files and ran the uninstall.sql

I then installed 5.0.2 and had the problem mentioned with Sales Report II. All other operations with 5.0.2 were working.

I had disabed, enabled, uninstalled and installed with the encapsulated plugin.

Oddly enough, I went through deletion again, uploaded the plugin again, and installed.

I now have a Configuration option for EO and all is working well.

The only other change before the latest uninstall/install was a change from CKEDITOR to TinyMCE due to a scrambled edit screen.

2 Aug 2025, 2:23 AM
#1882
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

Re: Edit Orders v4.0 Support Thread

Had a search through the thread and couldnt find anything so excuse me for asking.
Is there any easy way to edit the COD fees that result of using that module?
Thanks

3 Aug 2025, 3:11 PM
#1883
lat9 avatar

lat9

Administrator

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

Re: Edit Orders v4.0 Support Thread

Reesy:

Had a search through the thread and couldnt find anything so excuse me for asking.
Is there any easy way to edit the COD fees that result of using that module?
Thanks
Since the output of the built-in ot_cod_fee.php module is automatically calculated (i.e. not a user-input), the answer is "No".

4 Aug 2025, 2:43 AM
#1885
reesy avatar

reesy

Totally Zenned

Join Date:
Mar 2005
Posts:
535
Plugin Contributions:
3

Re: Edit Orders v4.0 Support Thread

Thanks for the replies, it used to be possible in the Diva Vocals version.
I will check the Order Total mod out, thanks kindly.

12 Aug 2025, 10:21 AM
#1886
wyliecoyoteuk avatar

wyliecoyoteuk

New Zenner

Join Date:
Feb 2019
Location:
Birmingham UK
Posts:
32
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

ZC 2.0.1, EO 5.0.1, PHP 8.3.6, MySQL 8.0.42, Ubuntu Linux 24.04.3 LTS, Kernel Linux 6.8.0-71-generic

Can't add products to order, I can edit product totals, but if I try to add a product, I can select it, but the choose button does nothing.
This probably something I have done, just need a clue.
Sorry, but not sure if this happened when I upgraded to the new server a few months ago, or since then (this is not a busy site, it is just for my daughter's shop stockists).

Getting this error.

#0 [internal function]: zen_debug_error_handler()
#1 /var/www/html/wsgd.co.uk/includes/classes/db/mysql/query_factory.php(733): trigger_error()
#2 /var/www/html/wsgd.co.uk/includes/classes/db/mysql/query_factory.php(678): queryFactory->show_error()
#3 /var/www/html/wsgd.co.uk/includes/classes/db/mysql/query_factory.php(307): queryFactory->set_error()
#4 /var/www/html/wsgd.co.uk/zc_plugins/EditOrders/v5.0.1/admin/includes/classes/EoAttributes.php(66): queryFactory->Execute()
#5 /var/www/html/wsgd.co.uk/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php(510): Zencart\Plugins\Admin\EditOrders\EoAttributes->__construct()
#6 /var/www/html/wsgd.co.uk/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php(466): zcAjaxEditOrdersAdmin->getNewProductDefaultAttributes()
#7 /var/www/html/wsgd.co.uk/ajax.php(77): zcAjaxEditOrdersAdmin->newProductChosen()
#8 /var/www/html/wsgd.co.uk/shopmanager/ajax.php(17): require('...')
--> PHP Fatal error: MySQL error 3065: Expression #1 of ORDER BY clause is not in SELECT list, references column 'Zencart.po.products_options_sort_order' which is not in SELECT list; this is incompatible with DISTINCT :: SELECT DISTINCT po.products_options_id AS `id`, po.products_options_name AS `name`,
                    po.products_options_type AS `type`, po.products_options_length AS `length`,
                    po.products_options_size AS `size`, po.products_options_rows AS `rows`
               FROM products_attributes pa
                    INNER JOIN products_options po
                        ON po.products_options_id = pa.options_id
                       AND po.language_id = 1 
              WHERE pa.products_id = 322 ORDER BY LPAD(po.products_options_sort_order, 11, '0'), po.products_options_name ==> (as called by) /var/www/html/wsgd.co.uk/zc_plugins/EditOrders/v5.0.1/admin/includes/classes/EoAttributes.php on line 66 <== in /var/www/html/wsgd.co.uk/includes/classes/db/mysql/query_factory.php on line 733.
12 Aug 2025, 11:43 AM
#1887
lat9 avatar

lat9

Administrator

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

Re: Edit Orders v4.0 Support Thread

wyliecoyoteuk:

ZC 2.0.1, EO 5.0.1, PHP 8.3.6, MySQL 8.0.42, Ubuntu Linux 24.04.3 LTS, Kernel Linux 6.8.0-71-generic

Can't add products to order, I can edit product totals, but if I try to add a product, I can select it, but the choose button does nothing.
This probably something I have done, just need a clue.
Sorry, but not sure if this happened when I upgraded to the new server a few months ago, or since then (this is not a busy site, it is just for my daughter's shop stockists).

Getting this error.

#0 [internal function]: zen_debug_error_handler()
#1 /var/www/html/wsgd.co.uk/includes/classes/db/mysql/query_factory.php(733): trigger_error()
#2 /var/www/html/wsgd.co.uk/includes/classes/db/mysql/query_factory.php(678): queryFactory->show_error()
#3 /var/www/html/wsgd.co.uk/includes/classes/db/mysql/query_factory.php(307): queryFactory->set_error()
#4 /var/www/html/wsgd.co.uk/zc_plugins/EditOrders/v5.0.1/admin/includes/classes/EoAttributes.php(66): queryFactory->Execute()
#5 /var/www/html/wsgd.co.uk/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php(510): Zencart\Plugins\Admin\EditOrders\EoAttributes->__construct()
#6 /var/www/html/wsgd.co.uk/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php(466): zcAjaxEditOrdersAdmin->getNewProductDefaultAttributes()
#7 /var/www/html/wsgd.co.uk/ajax.php(77): zcAjaxEditOrdersAdmin->newProductChosen()
#8 /var/www/html/wsgd.co.uk/shopmanager/ajax.php(17): require('...')
--> PHP Fatal error: MySQL error 3065: Expression #1 of ORDER BY clause is not in SELECT list, references column 'Zencart.po.products_options_sort_order' which is not in SELECT list; this is incompatible with DISTINCT :: SELECT DISTINCT po.products_options_id AS id, po.products_options_name AS name,
po.products_options_type AS type, po.products_options_length AS length,
po.products_options_size AS size, po.products_options_rows AS rows
FROM products_attributes pa
INNER JOIN products_options po
ON po.products_options_id = pa.options_id
AND po.language_id = 1
WHERE pa.products_id = 322 ORDER BY LPAD(po.products_options_sort_order, 11, '0'), po.products_options_name ==> (as called by) /var/www/html/wsgd.co.uk/zc_plugins/EditOrders/v5.0.1/admin/includes/classes/EoAttributes.php on line 66 <== in /var/www/html/wsgd.co.uk/includes/classes/db/mysql/query_factory.php on line 733.

Change line 47 of /zc_plugins/EditOrders/v5.0.1/admin/includes/classes/EoAttributes.php from
    $sql =
        "SELECT DISTINCT po.products_options_id AS `id`, po.products_options_name AS `name`,
                po.products_options_type AS `type`, po.products_options_length AS `length`,
                po.products_options_size AS `size`, po.products_options_rows AS `rows`
           FROM " . TABLE_PRODUCTS_ATTRIBUTES . " pa
                INNER JOIN " . TABLE_PRODUCTS_OPTIONS . " po
                    ON po.products_options_id = pa.options_id
                   AND po.language_id = :language_id 
          WHERE pa.products_id = :products_id";
to
    $sql =
        "SELECT DISTINCT po.products_options_id AS `id`, po.products_options_name AS `name`,
                po.products_options_type AS `type`, po.products_options_length AS `length`,
                po.products_options_size AS `size`, po.products_options_rows AS `rows`[B],
                po.products_options_sort_order[/B]
           FROM " . TABLE_PRODUCTS_ATTRIBUTES . " pa
                INNER JOIN " . TABLE_PRODUCTS_OPTIONS . " po
                    ON po.products_options_id = pa.options_id
                   AND po.language_id = :language_id 
          WHERE pa.products_id = :products_id";

When you view the admin's *Tools / Server/Version Info*, what displays for the **MySQL Mode**?

GitHub tracking issue created: <https://github.com/lat9/edit_orders/issues/330>
12 Aug 2025, 1:18 PM
#1888
wyliecoyoteuk avatar

wyliecoyoteuk

New Zenner

Join Date:
Feb 2019
Location:
Birmingham UK
Posts:
32
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

MySQL Mode: ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_ENGINE_SUBSTITUTION

12 Aug 2025, 1:30 PM
#1889
wyliecoyoteuk avatar

wyliecoyoteuk

New Zenner

Join Date:
Feb 2019
Location:
Birmingham UK
Posts:
32
Plugin Contributions:
0

Re: Edit Orders v4.0 Support Thread

Made that change, fixed it, thank you!

12 Aug 2025, 2:09 PM
#1890
lat9 avatar

lat9

Administrator

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

Re: Edit Orders v4.0 Support Thread

wyliecoyoteuk:

MySQL Mode: ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_ENGINE_SUBSTITUTION

wyliecoyoteuk:

Made that change, fixed it, thank you!
Thanks for both updates; I'll be getting EO v5.0.2 released sometime this week and it'll contain this correction.

16 Aug 2025, 2:51 PM
#1891
lat9 avatar

lat9

Administrator

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

Re: Edit Orders v4.0 Support Thread

v5.0.2 of Edit Orders is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2400

This release contains changes associated with these GitHub issues:

#325: Correct constant misspelling for read-only attributes (causing PHP missing-constant error).
#326: Correct PHP notice when flushing empty output-buffer.
#328: Correct PHP warnings when editing a product with read-only attributes.
#330: Correct MySQL 8.0 ORDER BY clause not in SELECT list.

5 Sep 2025, 7:36 PM
#1892
swguy avatar

swguy

Administrator

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

Re: Edit Orders v4.0 Support Thread

Checking if you have seen these Debug Logs. ZC 2.1.0, EO 5.0.1.

[02-Sep-2025 17:28:00 America/New_York] Request URI: /admin/ajax.php?act=ajaxEditOrdersAdmin&method=getChangesModal, IP address: 142.112.72.55, Language id 1
#0 /home/client/public_html/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php(171): zen_debug_error_handler()
#1 /home/client/public_html/ajax.php(77): zcAjaxEditOrdersAdmin->getChangesModal()
#2 /home/client/public_html/admin/ajax.php(17): require('/home/client/pu...')
--> PHP Warning: Undefined array key "eoChanges" in /home/client/public_html/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php on line 171.


[02-Sep-2025 17:30:04 America/New_York] Request URI: /admin/ajax.php?act=ajaxEditOrdersAdmin&method=newProductChosen, IP address: 142.112.72.55, Language id 1
#0 /home/client/public_html/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php(459): zen_debug_error_handler()
#1 /home/client/public_html/ajax.php(77): zcAjaxEditOrdersAdmin->newProductChosen()
#2 /home/client/public_html/admin/ajax.php(17): require('/home/client/pu...')
--> PHP Warning: Undefined array key "eoChanges" in /home/client/public_html/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php on line 459.

[03-Sep-2025 10:30:37 America/New_York] Request URI: /admin/ajax.php?act=ajaxEditOrdersAdmin&method=addNewProductStart, IP address: 70.55.17.45, Language id 1
#0 /home/client/public_html/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php(625): zen_debug_error_handler()
#1 /home/client/public_html/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php(399): zcAjaxEditOrdersAdmin->getModalContent()
#2 /home/client/public_html/ajax.php(77): zcAjaxEditOrdersAdmin->addNewProductStart()
#3 /home/client/public_html/admin/ajax.php(17): require('/home/client/pu...')
--> PHP Warning: Undefined array key "eoChanges" in /home/client/public_html/zc_plugins/EditOrders/v5.0.1/catalog/includes/classes/ajax/zcAjaxEditOrdersAdmin.php on line 625.

5 Sep 2025, 8:02 PM
#1893
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,770
Plugin Contributions:
9

Re: Edit Orders v4.0 Support Thread

Using 5.02. here, and no such array key found with Developer's Tool Kit.

5 Sep 2025, 10:00 PM
#1894
swguy avatar

swguy

Administrator

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

Re: Edit Orders v4.0 Support Thread

It's used 56 times. Perhaps Developer's Toolkit doesn't search zc_plugins? Not sure.

5 Sep 2025, 10:12 PM
#1895
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,770
Plugin Contributions:
9

Re: Edit Orders v4.0 Support Thread

You are correct. I forgot to check Plugins.

I find no definition in 5.0.2 or on the latest GitHub.

6 Sep 2025, 11:53 AM
#1896
lat9 avatar

lat9

Administrator

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

Re: Edit Orders v4.0 Support Thread

@swguy, what type of order was being edited when those logs were created? The *eoChanges *class is created in the session on EO's initial rendering of the to-be-edited order's display. Note that it (and other EO session-based information) is removed from the session if you navigate away from the order's editing.

Did you, perhaps, hit the browser's back-button?

6 Sep 2025, 4:37 PM
#1897
swguy avatar

swguy

Administrator

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

Re: Edit Orders v4.0 Support Thread

Trouble is, this is client activity, so I don't know. I can try to repro if that would help.

6 Sep 2025, 5:00 PM
#1898
lat9 avatar

lat9

Administrator

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

Re: Edit Orders v4.0 Support Thread

swguy:

Trouble is, this is client activity, so I don't know. I can try to repro if that would help.
Thanks, I'll give it a try too.

6 Sep 2025, 5:05 PM
#1899
lat9 avatar

lat9

Administrator

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

Re: Edit Orders v4.0 Support Thread

lat9:

Thanks, I'll give it a try too.
Noting that a back-button press didn't "do the thing"; the to-be-edited order just starts over.

6 Sep 2025, 6:09 PM
#1900
swguy avatar

swguy

Administrator

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

Re: Edit Orders v4.0 Support Thread

LOL of course I can't dup it either. :(

Thanks for looking, maybe someone else will find a repro path.