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 ' : ' ')
Last edited by wsworx; 18 Jun 2021 at 06:24 PM.
They're 'converted' from database definitions to PHP define's via /includes/init_includes/init_db_config_read.php.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1513
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.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Ugh sorry this was my fault. Please disregard.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Bookmarks