Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Europe
    Posts
    59
    Plugin Contributions
    1

    Default Re: ZX AntiSpam [Support Thread]

    Also includes/modules/pages/account_confirmation/header_php.php makes uses of variables such as EMAIL_GREET_MS etc. which are available to the standard create_account page. However in ZC 1.5.8 these are not loaded on every page.
    Is there a neat way to load these variables on account_confirmation page?
    Or do we have to redeclare them here again?

  2. #2
    Join Date
    Jun 2009
    Location
    Europe
    Posts
    59
    Plugin Contributions
    1

    Default Re: ZX AntiSpam [Support Thread]

    Code:
    #6  require(/httpd.www/includes/modules/pages/account_confirmation/header_php.php) called at [/httpd.www/index.php:35]
    --> PHP Fatal error: 1292:Incorrect datetime value: '1-01200-' for column `mystore_com`.`db_customers`.`customers_dob` at row 1 :: INSERT INTO db_customers (customers_firstname, customers_lastname, customers_email_address, customers_nick, customers_telephone, customers_fax, customers_newsletter, customers_email_format, customers_default_address_id, customers_password, customers_authorization, customers_gender, customers_dob) VALUES (..., '1-01200-') ==> (as called by) /httpd.www/includes/modules/pages/account_confirmation/header_php.php on line 62 <== in /httpd.www/includes/classes/db/mysql/query_factory.php on line 667.
    Customer's DOB is reversed, I think no need to call zen_date_raw here (around line 60 of header_php.php):
    PHP Code:
            if (ACCOUNT_DOB == 'true')  $sql_data_array[] = array('fieldName'=>'customers_dob''value'=>empty($sql->fields['customers_dob']) || $sql->fields['customers_dob'] == '0001-01-01 00:00:00' zen_db_prepare_input('0001-01-01 00:00:00') : zen_date_raw($sql->fields['customers_dob']), 'type'=>'date'); 
    Last edited by zamzom; 15 Mar 2023 at 12:21 PM.

  3. #3
    Join Date
    Jun 2009
    Location
    Europe
    Posts
    59
    Plugin Contributions
    1

    Default Re: ZX AntiSpam [Support Thread]

    Quote Originally Posted by zamzom View Post
    Also includes/modules/pages/account_confirmation/header_php.php makes uses of variables such as EMAIL_GREET_MS etc. which are available to the standard create_account page. However in ZC 1.5.8 these are not loaded on every page.
    Is there a neat way to load these variables on account_confirmation page?
    Or do we have to redeclare them here again?
    Checking from the documentation
    https://docs.zen-cart.com/dev/code/158_language_files/

    I have inserted the following in the beginning of header_php.php file after the require(DIR_WS_MODULES ... statement on line 14:
    PHP Code:
     $filename 'create_account.php';    // load extra language constants from create_account page
      
    $folder '/';  // end with slash 
      
    $new_langfile DIR_WS_LANGUAGES $_SESSION['language'] . $folder .  'lang.' $filename
      if (
    file_exists($new_langfile)) {
         global 
    $languageLoader
         
    $languageLoader->loadExtraLanguageFiles(DIR_FS_CATALOG DIR_WS_LANGUAGES,  $_SESSION['language'], $filename$folder); 
      } 

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. EasyPopulate 4.0 Support Thread
    By chadderuski in forum Addon Admin Tools
    Replies: 3672
    Last Post: 11 Sep 2025, 05:07 PM
  3. v156 PWA, Offline support Push notifications addon [Support Thread]
    By perfumbg in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 May 2019, 02:27 PM
  4. Simple CSS/PHP AntiSpam solution for a contact form
    By dlg_ie in forum All Other Contributions/Addons
    Replies: 130
    Last Post: 24 Jan 2017, 05:04 PM
  5. Wordpress On ZC [Support Thread]
    By hira in forum All Other Contributions/Addons
    Replies: 1858
    Last Post: 17 Jan 2014, 01:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg