Results 1 to 10 of 198

Hybrid View

  1. #1
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    315
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    This was an out of the box ZC 2.0 install specifically to test on a fresh system.
    I did not change anything just followed the instructions which over wrote the existing files.
    Last edited by linuxguy2; 15 May 2024 at 03:36 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,820
    Plugin Contributions
    124

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    We are always looking for developers who would be willing to adopt orphaned plugins.

    https://docs.zen-cart.com/dev/plugins/adoption/

    It's a great way to help support the project.
    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.

  3. #3
    Join Date
    Aug 2013
    Location
    Perth, WA, AU
    Posts
    180
    Plugin Contributions
    4

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Quote Originally Posted by linuxguy2 View Post
    This was an out of the box ZC 2.0 install specifically to test on a fresh system.
    I did not change anything just followed the instructions which over wrote the existing files.
    That definitely won't work in 2.0.

    How have you used the plugin in the past - did you use all four extra fields - was there a way to control which of the four extra fields you wanted?

    The docs don't appear to mention this.

  4. #4
    Join Date
    Aug 2013
    Location
    Perth, WA, AU
    Posts
    180
    Plugin Contributions
    4

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Forget my question, I can see what's supposed to be going on. Will take a proper look later.

  5. #5
    Join Date
    Aug 2013
    Location
    Perth, WA, AU
    Posts
    180
    Plugin Contributions
    4

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    OK, I've updated the plugin and sent linuxguy2 a private link they can download from.

    I look forward to hearing back about testing - I'll submit it after some feedback.

    It's working for me anyway :)

  6. #6
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    315
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Great Job!!
    NO Issues so far.
    Tested with a ZC 2.0 out-of-the-box install and then with my customized ZC 2.0 install.
    I'd say it's ready for primetime.

    Tested with all 4 and only 1 & 4 Extra Fields

    THANK YOU!!!
    Last edited by linuxguy2; 17 May 2024 at 03:25 AM.

  7. #7
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    315
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Quote Originally Posted by linuxguy2 View Post
    Great Job!!
    NO Issues so far.
    Tested with a ZC 2.0 out-of-the-box install and then with my customized ZC 2.0 install.
    I'd say it's ready for primetime.

    Tested with all 4 and only 1 & 4 Extra Fields

    THANK YOU!!!
    However,
    I tried to get the extra fields to be included in the "Office Only" section of the Admins email and no joy.
    Every thing looks OK and after 6 hours of debug I can't find the problem!
    I modified "functions_email.php" and "lang.email_extras.php" just as I did with the older versons but no joy.
    When I enable the "extrafield" it chokes on "submit".
    With just "Company" enabled it doesn't choke but Company does not display in the admin email.

    Code:
             // LtoMod Add  company, extrafield, street address, city, state, zip, extrafield2 and extrafield4 
          $extra_info['HTML'] = 
    	  '<table width="100%" class="extra-info">' .
          '<tr><td class="extra-info-bold" colspan="2">' . OFFICE_USE . '</td></tr>' .
          '<tr><td  width="20%" class="extra-info-bold">' . OFFICE_FROM . '</td><td>' . $from . '</td></tr>' .
    	  // '<tr><td class="extra-info-bold">' . OFFICE_EMAIL. '</td><td>' . $email_from . '</td></tr>' .	  
          ($login_email !=='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_EMAIL . '</td><td>' . $login_email . '</td></tr>' : '') .	  
          ($login !=='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_NAME . '</td><td>' . $login . '</td></tr>' : '') .
    	  ($company !== '' ? '<tr><td class="extra-info-bold">' . OFFICE_COMPANY . '</td><td>' . $company . '</td></tr>' : '') .
    	  ($extrafield !== '' ? '<tr><td class="extra-info-bold">' . OFFICE_EXTRAFIELD . '</td><td>' . $extrafield . '</td></tr>' : '') .
    /*	  ($street_address !== '' ? '<tr><td class="extra-info-bold">' . OFFICE_STREET_ADDRESS . '</td><td>' . $street_address . '</td></tr>' : '') .
    	  ($suburb !== '' ? '<tr><td class="extra-info-bold">' . OFFICE_STREET_ADDRESS_LINE2 . '</td><td>' . $suburb . '</td></tr>' : '') .
    	  ($city !== '' ?'<tr><td class="extra-info-bold">' . OFFICE_CITY . '</td><td>' . $city . '</td></tr>' : '') .
    	  ($state !== '' ? '<tr><td class="extra-info-bold">' . OFFICE_STATE . '</td><td>' . $state . '</td></tr>' : '') .
    	  ($postcode !== '' ? '<tr><td class="extra-info-bold">' . OFFICE_POSTCODE . '</td><td>' . $postcode . '</td></tr>' : '') .	  
    	  ($login_phone !=='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_PHONE . '</td><td>' . $login_phone . '</td></tr>' : '') .
          ($login_fax !=='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_FAX . '</td><td>' . $login_fax . '</td></tr>' : '') .
    	   ($extrafield2 !== '' ? '<tr><td  width="20%" class="extra-info-bold">' . OFFICE_EXTRAFIELD2 . '</td><td>' . $extrafield2 . '</td></tr>' : '') .	
    	  ($extrafield4 !== '' ? '<tr><td class="extra-info-bold">' . OFFICE_EXTRAFIELD4 . '</td><td>' . $extrafield4 . '</td></tr>' : '') .
    */
    	  '<tr><td class="extra-info-bold">' . "&nbsp;" . '</td><td>' . "&nbsp;" . '</td></tr>' .		
    	  '<tr><td class="extra-info-bold">' . OFFICE_IP_ADDRESS . '</td><td>' . $_SESSION['customers_ip_address'] . ' - ' . $_SERVER['REMOTE_ADDR'] . '</td></tr>' .	  
          '<tr><td class="extra-info-bold">' . OFFICE_HOST_ADDRESS . '</td><td>' . $email_host_address . '</td></tr>' .
          '<tr><td class="extra-info-bold">' . OFFICE_DATE_TIME . '</td><td>' . date('D M j Y G:i:s T') . '</td></tr>';
    	  
        foreach($moreinfo as $key => $val) {
          $extra_info['TEXT'] .= $key . ": \t" . $val . "\n";
          $extra_info['HTML'] .= '<tr><td class="extra-info-bold">' . $key . '</td><td>' . $val . '</td></tr>';
        }
    
    	    foreach ($moreinfo as $key => $val) {
                $extra_info['TEXT'] .= zen_output_string_protected($key) . ": \t" . zen_output_string_protected($val) . "\n";
                $extra_info['HTML'] .= '<tr><td class="extra-info-bold">' . zen_output_string_protected($key) . '</td><td>' . zen_output_string_protected($val) . '</td></tr>';
            }
    
            $extra_info['TEXT'] .= "\n\n";
            $extra_info['HTML'] .= "</table>\n";
    
            return $extra_info;
        }

  8. #8
    Join Date
    Aug 2013
    Location
    Perth, WA, AU
    Posts
    180
    Plugin Contributions
    4

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Quote Originally Posted by linuxguy2 View Post
    However,
    I tried to get the extra fields to be included in the "Office Only" section of the Admins email and no joy.
    Every thing looks OK and after 6 hours of debug I can't find the problem!
    I modified "functions_email.php" and "lang.email_extras.php" just as I did with the older versons but no joy.
    When I enable the "extrafield" it chokes on "submit".
    With just "Company" enabled it doesn't choke but Company does not display in the admin email.
    Do you have any logs you can share with us?

  9. #9
    Join Date
    Sep 2013
    Location
    Texas
    Posts
    315
    Plugin Contributions
    0

    Default Re: Extra Fields for Customer Sign Up (Create Account) Page

    Thank You royaldave !!

 

 

Similar Threads

  1. v150 additional create account fields for wholesale customer
    By newbieOK in forum General Questions
    Replies: 2
    Last Post: 23 Aug 2012, 04:17 AM
  2. Extra Fields for Customer Sign Up
    By divagal in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 31 Jan 2012, 11:51 PM
  3. Create Account - modify existing fields or add extra fields?
    By sopretty in forum General Questions
    Replies: 4
    Last Post: 30 Jul 2010, 08:26 PM
  4. Extra Box on Account Sign-up Page
    By paulssports in forum General Questions
    Replies: 6
    Last Post: 1 Dec 2006, 05:50 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR