Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
lat9
Find the setting Admin configuration_key shows and change its value to 1. Then head back to Configuration :: My Store and select the Display Product with Tax setting.
oh my, that explains my confusion!
you learn something new every day!
thanks @lat9.
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
carlwhat
oh my, that explains my confusion!
you learn something new every day!
thanks @lat9.
That's what life's about!
Re: Edit Orders v4.0 Support Thread
So after I cleared my head and thought more through it I went back through my configuration table and I found that I do have these configuration keys in the configuration table of the database. When I attempt to access a customer in Customers:Orders:Edit Orders I get a blank screen and below is the only log file I get. It is titled as a warning not an actual error "myDEBUG-adm-20210618-093749-913692-warning.log". I can change the settings for the two in Configuration:My Store and the database will reflect that change so they are working correctly.
Any ideas or thoughts would be greatly appreciated?
I tried doing a new installation and copying my data over to the new tables but I can't resolve a MYSql error about there being duplicate records in the addressbook table for the customerid primary key.
[18-Jun-2021 09:37:49 America/Boise] Request URI: /ADMIN/index.php?cmd=edit_orders&oID=7929&action=edit, IP address: ***.***.***.***
#1 require(/home2/*****/public_html/ADMIN/edit_orders.php) called at [/home2/*****/public_html/ADMIN/index.php:11]
--> PHP Warning: Use of undefined constant DISPLAY_PRICE_WITH_TAX_ADMIN - assumed 'DISPLAY_PRICE_WITH_TAX_ADMIN' (this will throw an Error in a future version of PHP) in /home2/*****/public_html/ADMIN/edit_orders.php on line 79.
[18-Jun-2021 09:37:49 America/Boise] Request URI: /ADMIN/index.php?cmd=edit_orders&oID=7929&action=edit, IP address: ***.***.***.***
#1 require(/home2/*****/public_html/ADMIN/edit_orders.php) called at [/home2/*****/public_html/ADMIN/index.php:11]
--> PHP Warning: Use of undefined constant DISPLAY_PRICE_WITH_TAX - assumed 'DISPLAY_PRICE_WITH_TAX' (this will throw an Error in a future version of PHP) in /home2/*****/public_html/ADMIN/edit_orders.php on line 79.
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
wsworx
So after I cleared my head and thought more through it I went back through my configuration table and I found that I do have these configuration keys in the configuration table of the database. When I attempt to access a customer in Customers:Orders:Edit Orders I get a blank screen and below is the only log file I get. It is titled as a warning not an actual error "myDEBUG-adm-20210618-093749-913692-warning.log". I can change the settings for the two in Configuration:My Store and the database will reflect that change so they are working correctly.
Any ideas or thoughts would be greatly appreciated?
I tried doing a new installation and copying my data over to the new tables but I can't resolve a MYSql error about there being duplicate records in the addressbook table for the customerid primary key.
[18-Jun-2021 09:37:49 America/Boise] Request URI: /ADMIN/index.php?cmd=edit_orders&oID=7929&action=edit, IP address: ***.***.***.***
#1 require(/home2/*****/public_html/ADMIN/edit_orders.php) called at [/home2/*****/public_html/ADMIN/index.php:11]
--> PHP Warning: Use of undefined constant DISPLAY_PRICE_WITH_TAX_ADMIN - assumed 'DISPLAY_PRICE_WITH_TAX_ADMIN' (this will throw an Error in a future version of PHP) in /home2/*****/public_html/ADMIN/edit_orders.php on line 79.
[18-Jun-2021 09:37:49 America/Boise] Request URI: /ADMIN/index.php?cmd=edit_orders&oID=7929&action=edit, IP address: ***.***.***.***
#1 require(/home2/*****/public_html/ADMIN/edit_orders.php) called at [/home2/*****/public_html/ADMIN/index.php:11]
--> PHP Warning: Use of undefined constant DISPLAY_PRICE_WITH_TAX - assumed 'DISPLAY_PRICE_WITH_TAX' (this will throw an Error in a future version of PHP) in /home2/*****/public_html/ADMIN/edit_orders.php on line 79.
I am really confused with these two constants. If they are constants don't they have to be declared somewhere, I would think in a language file but, and if they are what file is it that they are declared in because I have looked and looked and cannot find it. And what really whacks me out is they are used in a bunch of other places and none of that code is having issues....lol.
The other thing I notice is everywhere else it is coded like this which I understand:
if (DISPLAY_PRICE_WITH_TAX == 'true')
but in the Admin/editorders.php file it is coded like this in the define statement:
(DISPLAY_PRICE_WITH_TAX_ADMIN != 'true' ? 'out ' : ' ')
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
wsworx
I am really confused with these two constants. If they are constants don't they have to be declared somewhere, I would think in a language file but, and if they are what file is it that they are declared in because I have looked and looked and cannot find it. And what really whacks me out is they are used in a bunch of other places and none of that code is having issues....lol.
Each of the configuration_key values present in the configuration table in the database are present both admin/storefront as constants of the same name.
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
lat9
Each of the configuration_key values present in the configuration table in the database are present both admin/storefront as constants of the same name.
But how and where are they defined?
Only in the database?
Re: Edit Orders v4.0 Support Thread
They're 'converted' from database definitions to PHP define's via /includes/init_includes/init_db_config_read.php.
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
lat9
I've just submitted v4.6.0 of Edit Orders for the Zen Cart moderators' review; I'll post back here when it's available for download.
This release contains changes associated with the following GitHub issues:
#45: Remove Ty Package Tracker integration, now provided by a separate plugin.
#189:
Drop support for Zen Cart versions prior to 1.5.6.
#190: Refactoring for zc156+ and restructuring.
#191: Eliminate product-price input fields when pricing method is Auto or AutoSpecials.
#193: Correct MySQL error when tax isn't set.
#195: Make EO more 'screen-reader friendly'.
#198: Correct order-update when an order-total's value is taxed.
#200: eo_get_new_product now returns all products and products_description fields.
#201: eo_get_country now returns its input value, if that value is an array.
#202: Correct PHP notice issued during product addition if ot_loworder_fee or ot_cod_fee is active.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1513
Re: Edit Orders v4.0 Support Thread
One of my custom discounts disappears on order edit in Zen Cart 1.5.7c / EO 4.6.0. Any ideas? I have custom *fees* which are retained correctly over order edits but the discount vanishes from the orders_total table and from the Total.
Re: Edit Orders v4.0 Support Thread
Ugh sorry this was my fault. Please disregard.