Page 20 of 20 FirstFirst ... 10181920
Results 191 to 198 of 198
  1. #191
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,020
    Plugin Contributions
    124

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

    I'm guessing that in the old installation, you edited includes/functions/functions_email.php and changed function email_collect_extra_info() to account for these extra arguments.

    Rather than do that, it would be better for you to populate the moreinfo array with this data.

    add , $moreinfo as the last call to email_collect_extra_info in includes/modules/YOUR_TEMPLATE/create_account, i.e.

    $extra_info = email_collect_extra_info($name, $email_address, $account->fields['customers_firstname'] . ' ' . $account->fields['customers_lastname'], $account->fields['customers_email_address'], $account->fields['customers_telephone'], $account->fields['customers_fax'], $moreinfo);


    then right before this line:

    $moreinfo = [];
    if (EXTRAFIELD_REQUIRED == 'true') {
    $moreinfo[ENTRY_EXTRAFIELD] = $extrafield;
    }
    if (EXTRAFIELD_REQUIRED2 == 'true') {
    $moreinfo[ENTRY_EXTRAFIELD2] = $extrafield2;
    }
    if (EXTRAFIELD_REQUIRED3 == 'true') {
    $moreinfo[ENTRY_EXTRAFIELD3] = $extrafield3;
    }
    if (EXTRAFIELD_REQUIRED4 == 'true') {
    $moreinfo[ENTRY_EXTRAFIELD4] = $extrafield4;
    }


    Note to @royaldave - we need a notifier here too so this can be done without changing this core file.
    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.

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

    Idea or Suggestion Re: Extra Fields for Customer Sign Up (Create Account) Page

    Quote Originally Posted by swguy View Post
    I'm guessing that in the old installation, you edited includes/functions/functions_email.php and changed function email_collect_extra_info() to account for these extra arguments.

    Rather than do that, it would be better for you to populate the moreinfo array with this data.

    add , $moreinfo as the last call to email_collect_extra_info in includes/modules/YOUR_TEMPLATE/create_account, i.e.

    $extra_info = email_collect_extra_info($name, $email_address, $account->fields['customers_firstname'] . ' ' . $account->fields['customers_lastname'], $account->fields['customers_email_address'], $account->fields['customers_telephone'], $account->fields['customers_fax'], $moreinfo);


    then right before this line:

    $moreinfo = [];
    if (EXTRAFIELD_REQUIRED == 'true') {
    $moreinfo[ENTRY_EXTRAFIELD] = $extrafield;
    }
    if (EXTRAFIELD_REQUIRED2 == 'true') {
    $moreinfo[ENTRY_EXTRAFIELD2] = $extrafield2;
    }
    if (EXTRAFIELD_REQUIRED3 == 'true') {
    $moreinfo[ENTRY_EXTRAFIELD3] = $extrafield3;
    }
    if (EXTRAFIELD_REQUIRED4 == 'true') {
    $moreinfo[ENTRY_EXTRAFIELD4] = $extrafield4;
    }


    Note to @royaldave - we need a notifier here too so this can be done without changing this core file.


    Well, you made that look easy... Thank You Both!!
    Yes in the old installations I did modify the files you referenced.
    I implemented the changes you recommended and it did pull the extrafields into the Office Only section of the Admin email.
    So I should be good to go.
    I plan to add the company name and address.
    Last edited by linuxguy2; 21 May 2024 at 03:39 AM.

  3. #193
    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 !!

  4. #194
    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
    Well, you made that look easy... Thank You Both!!
    Yes in the old installations I did modify the files you referenced.
    I implemented the changes you recommended and it did pull the extrafields into the Office Only section of the Admin email.
    So I should be good to go.
    I plan to add the company name and address.
    One more time,
    Need a way to include the Company Name, Address Line 2, City and Zip Code to the "Office Only" section of the Sign Up form email.
    Because this is information is already collected on the sign up form why not have a way to add it to the email?

    I am already using the other 4 "Extra Fields for Customer Sign Up (Create Account) Page" fields to collect other data.

    Rather than Hacking the core code I'd appreciate some guidance.

    Thanks

  5. #195
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,020
    Plugin Contributions
    124

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

    I have suggested that RoyalDave look into using the Observer Notifier feature in Zen Cart to build this plugin without needing to modify core code at all. If and when he does that, you'll be able to tag on to his work.
    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.

  6. #196
    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 swguy View Post
    I have suggested that RoyalDave look into using the Observer Notifier feature in Zen Cart to build this plugin without needing to modify core code at all. If and when he does that, you'll be able to tag on to his work.
    Thanks!

  7. #197
    Join Date
    Aug 2013
    Location
    Perth, WA, AU
    Posts
    224
    Plugin Contributions
    4

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

    Quote Originally Posted by linuxguy2 View Post
    Thanks!
    V2.4 is now available as mentioned.

  8. #198
    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 royaldave View Post
    V2.4 is now available as mentioned.
    Thanks!
    I'll check it out in the AM

 

 
Page 20 of 20 FirstFirst ... 10181920

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