While testing in XAMPP
Issue:
The following debug-log is generated:
This only happens when Group Name is not blank and results in all groups being refused.Code:[18-Jan-2022 09:44:24 ] Request URI: /index.php?main_page=pricelist&profile=1, IP address: ::1 #1 require(...\includes\templates\template_default\pricelist\tpl_main_page.php) called at [...\index.php:94] --> PHP Warning: Use of undefined constant zen_in_guest_checkout - assumed 'zen_in_guest_checkout' (this will throw an Error in a future version of PHP) in ...\includes\templates\template_default\pricelist\tpl_main_page.php on line 68.
A quick search for !zen_in_guest_checkout) with Admin Developers Tool Kit gives only 1 hit: tpl_main_page.php on line 68
All others !zen_in_guest_checkout are followed by ())
Fix:
In:
.../includes/templates/template_default/pricelist/tpl_main_page.php
or:
.../includes/templates/your_template/pricelist/tpl_main_page.php
Find (normally on line 68):
Replace by:PHP Code:
if (zen_is_logged_in() && !zen_in_guest_checkout) {
PHP Code:
if (zen_is_logged_in() && !zen_in_guest_checkout()) {
You are correct.
PR submitted: https://github.com/lat9/printable_price_list/pull/23/
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.
Thanks @Philibel and @swguy; the associated changes will be included in v3.0.1 of the Printable Price List. I'll hold off for a couple of days prior to release, since there's (it seems) always something else.
With Printable Price List 3.0.0 I am getting the following logged Warning
constant(): Couldn't find constant PL_SHOW_SPECIAL_DATE_3 in \includes\modules\pages\pricelist\header_php.php on line 104.
Environment: zc157c, bootstrap 3.2.0
This is test zc157c environment: Zen Cart 157c; Apache 2.4.46; PHP 7.4.13; 10.4.17-MariaDB; XAMPP v3.2.4; Windows 10 build 19041 Printable Price-List V3.0.0
print-List profiles have Specials expiry = false. This error only occurs with profile 3.
Update- problem resolved I have been using price-list for a very long time. After importing data from 156a I ran the pricelist_remove.sql and reran the profiles with no errors.
I must have been something residual in the data from earlier version
I've just submitted v3.0.1 for the Zen Cart moderators' review and will post back here when it's available for download.
This release contains the changes associated with issue #24 (invalid function call results in PHP warning/error).
@lat9
Has this module been tested with 158 yet?
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting
Bookmarks