v2.0.0 of How Did You Hear About Us is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=90
This version supports zc210+ and PHP 8.0+; released as an encapsulated plugin.
Did you actually tried this plugin?
After a smooth installation I got no extra field on login/create account page. If I try to create an account, this message appearsand I can't go further.Code:Please select how you first heard about us.
I got 2 logs, one warning and a deprecated, which is just consequence of the first one. Here is the warning log:
Latest Github ZC versionCode:[13-Mar-2025 00:26:20 Asia/Tokyo] Request URI: /index.php?main_page=create_account #0 ..\zc_plugins\HowDidYouHear\v2.0.0\catalog\includes\classes\observers\auto.referrers.php(33): zen_debug_error_handler() #1 ..\includes\classes\traits\NotifierManager.php(107): zcObserverReferrers->notify_create_account_validation_check() #2 ..\includes\modules\create_account.php(263): base->notify() #3 ..\includes\modules\pages\create_account\header_php.php(16): include('...') #4 ..\index.php(35): require('...') --> PHP Warning: Undefined array key "source" in ..\zc_plugins\HowDidYouHear\v2.0.0\catalog\includes\classes\observers\auto.referrers.php on line 33. [13-Mar-2025 00:26:20 Asia/Tokyo] Request URI: /index.php?main_page=create_account #0 ..\zc_plugins\HowDidYouHear\v2.0.0\catalog\includes\classes\observers\auto.referrers.php(38): zen_debug_error_handler() #1 ..\includes\classes\traits\NotifierManager.php(107): zcObserverReferrers->notify_create_account_validation_check() #2 ..\includes\modules\create_account.php(263): base->notify() #3 ..\includes\modules\pages\create_account\header_php.php(16): include('...') #4 ..\index.php(35): require('...') --> PHP Warning: Undefined array key "source" in ..\zc_plugins\HowDidYouHear\v2.0.0\catalog\includes\classes\observers\auto.referrers.php on line 38.
PHP v8.3.17
Plugin setting as default, both set to true.
v2.0.1 of the plugin is now available for download.
Correcting integration with built-in responsive_classic template.
Great, thanks!
So happy to see this one converted to a plug-in. I'm having the following error while upgrading to latest ZC version:
Table '***_databasename.configuration' doesn't exist
Even though I've already installed 6 other plugins without issues.
PS: I do use prefix for the database.
Last edited by ideasgirl; 7 May 2025 at 08:05 PM. Reason: PS
IDEAS Girl
IDEAS Creative Group = Your image... our business!
Darn it, I know better!
Find the file /Installer/ScriptedInstaller.php in the distribution.
Change line 60 (highlighted below)
toCode:$this->executeInstallerSql( "INSERT IGNORE INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Display \"Other\" Referral option?', 'DISPLAY_REFERRAL_OTHER', 'true', 'Display \"Other - please specify\" with text box in referral source in account creation', 5, 10, 'zen_cfg_select_option([\'true\', \'false\'], ', now()), ('Require Referral Source?', 'REFERRAL_REQUIRED', 'true', 'Require the Referral Source in account creation', 5, 11, 'zen_cfg_select_option([\'true\', \'false\'], ', now())" );
Code:$this->executeInstallerSql( "INSERT IGNORE INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Display \"Other\" Referral option?', 'DISPLAY_REFERRAL_OTHER', 'true', 'Display \"Other - please specify\" with text box in referral source in account creation', 5, 10, 'zen_cfg_select_option([\'true\', \'false\'], ', now()), ('Require Referral Source?', 'REFERRAL_REQUIRED', 'true', 'Require the Referral Source in account creation', 5, 11, 'zen_cfg_select_option([\'true\', \'false\'], ', now())" );
IDEAS Girl
IDEAS Creative Group = Your image... our business!
v2.0.2 of the encapsulated version of this plugin is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=90
This version corrects issue #3 (installation fails for sites using a non-blank DB_PREFIX).