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
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