Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 41
  1. #31
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Simple and Easy 2 Question Create Account Page

    Quote Originally Posted by mc12345678 View Post
    Depends on how you "removed" the other stuff... My guess is that you did so by specifically deleting code, rather than turning off switches in the admin.

    Yes, it was a stock file and first, all of the items described as being "too much" were disabled through the admin panel, and then the remaining (with exception of some of the text that I missed) were bounded by a single admin controlling switch for "ease" and expediency. As said was a rush job mostly to prove the possibility. More thought/action would be necessary to do it right... That would include one or more additional admin switches to encompass either the individual or a group of options to be disabled and to further remove the "checks" on the absent data, etc... At the level and time of writing, the "concern" was the ability to accommodate the request... The base action was provided with "caution" provided in the implementation.
    Sorry I misunderstood and thought the code you put here was all set for only having email and password as Create Account questions. The admin>customer details area does not give options to shut off all the questions that are on the Create Account page.

    It's too bad this thread was rudely interrupted by someone who doesn't see how this is an issue for a site in 2015. It's too bad that it's so difficult to make the create account page not ask for the customer's entire life story.

    It should be up to the store owner to decide whether or not to require those questions for account creation. For an ecommerce platform that was packaged with the ability to purchase digital goods, and even free digital goods, it only makes sense that an address etc should be able to be shut off.

    Thank you mc12345678, but I do not think it's possible to hack ZC to be up with the times.

  2. #32
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Simple and Easy 2 Question Create Account Page

    Quote Originally Posted by pricediscrimination View Post
    Sorry I misunderstood and thought the code you put here was all set for only having email and password as Create Account questions. The admin>customer details area does not give options to shut off all the questions that are on the Create Account page.

    It's too bad this thread was rudely interrupted by someone who doesn't see how this is an issue for a site in 2015. It's too bad that it's so difficult to make the create account page not ask for the customer's entire life story.

    It should be up to the store owner to decide whether or not to require those questions for account creation. For an ecommerce platform that was packaged with the ability to purchase digital goods, and even free digital goods, it only makes sense that an address etc should be able to be shut off.

    Thank you mc12345678, but I do not think it's possible to hack ZC to be up with the times.
    Exactly... And that is what was presented... The same code that offers the opportunity to disable existing sections already programmed, plus the ability to "turn it all off" ***WITHOUT*** touching the code from that point forward...

    It is perfectly "ready" for use, though in my testing I saw that I had left one language define outside of an exclusion group...

    The result(s) of the above code, with turning off the built-in available features and modifying the minimums to 0, resulted in a login screen that asked for the email address and password I think was all that I left there... Whatever "minimum" was described as desired...

    Having done it, having what looks like others repeating it and apologies, but if others are able to accomplish the task with the provided code/direction, then there is a reason for those that can not... Need to investigate *that* reason...

    Further is it that *think* can not? Or can it not be done? It's been done and sorry, but creating some sort of a *challenge* to get further free assistance, doesn't do it for me...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #33
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Simple and Easy 2 Question Create Account Page

    Quote Originally Posted by mc12345678 View Post
    Exactly... And that is what was presented... The same code that offers the opportunity to disable existing sections already programmed, plus the ability to "turn it all off" ***WITHOUT*** touching the code from that point forward...

    It is perfectly "ready" for use, though in my testing I saw that I had left one language define outside of an exclusion group...

    The result(s) of the above code, with turning off the built-in available features and modifying the minimums to 0, resulted in a login screen that asked for the email address and password I think was all that I left there... Whatever "minimum" was described as desired...

    Having done it, having what looks like others repeating it and apologies, but if others are able to accomplish the task with the provided code/direction, then there is a reason for those that can not... Need to investigate *that* reason...

    Further is it that *think* can not? Or can it not be done? It's been done and sorry, but creating some sort of a *challenge* to get further free assistance, doesn't do it for me...
    The strange thing was that all the settings in admin were set to false.

    Thank you for the free assistance. I was not creating any *challenge* for further free assistance. Just feeling discouraged.

  4. #34
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Simple and Easy 2 Question Create Account Page

    In Admin > Customer Details there are only options for:
    Email Salutation, Date of Birth, Company, Address Line 2, State, State - Always display as pulldown?, Create Account Default Country ID, Fax Number, Show Newsletter Checkbox.

    Questions still being asked are name, city, state, zip, phone.

    EDIT: these are controlled by Email Salutation. As you already said. Apologies.
    Last edited by pricediscrimination; 13 Nov 2015 at 07:33 PM.

  5. #35
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Simple and Easy 2 Question Create Account Page

    mc12345678: you worked the code to do exactly what was asked in this thread. Thank you for your hard work and support. The code you presented works. You never questioned or dismissed what was trying to be achieved here, only set out to solve the problem. Thank you for that.


  6. #36
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Simple and Easy 2 Question Create Account Page

    Quote Originally Posted by pricediscrimination View Post
    In Admin > Customer Details there are only options for:
    Email Salutation, Date of Birth, Company, Address Line 2, State, State - Always display as pulldown?, Create Account Default Country ID, Fax Number, Show Newsletter Checkbox.

    Questions still being asked are name, city, state, zip, phone.
    With email salutation (ACCOUNT_GENDER) turned off(false), the "other" fields get disabled... (as you found out).

    Quote Originally Posted by pricediscrimination View Post
    mc12345678: you worked the code to do exactly what was asked in this thread. Thank you for your hard work and support. The code you presented works. You never questioned or dismissed what was trying to be achieved here, only set out to solve the problem. Thank you for that.

    Welcome (and hopefully this accomplishes/completes response to both things :) )

    And again, for those that come across this thread/plan, the choice at the time was to simply repeat using
    Code:
    if (ACCOUNT_GENDER == 'true') {
    to encompass the content to be removed... To provide finer control, a separate constant would need to be created in the admin configuration options to refine that and replace the ACCOUNT_GENDER part... Further, groups/combinations of settings could be controlled like an ACCOUNT_ADDRESS option to address all of the addresses, or maybe an option like, ACCOUNT_EMAIL_ONLY which when set to false would disable all fields except the desired Email and password option(s)... Options are at that point totally up to the individual implementing the above code, which is further why I didn't try to do a complete design analysis for implementation. Just get 'er done. :)

    I also did not mean to be, well mean... As said before, these things can be done, and one should not just give up... At one point I think I did mentally work through the whole backlink part, but hadn't implemented it to provide that part (again left it for the next venturous individual. :) ) Also I didn't want to delve too far into this 1) if it didn't provide the desired affect 2) if it affected other items on which I'm working, and 3) if it was gonna' cause heartache to the "community" by getting shot down from the get go. :)

    I still warn... There are aspects about the modifications that have not been evaluated for program flow in an "indirect" operation... Was able to step through a "normal" checkout process and site visit, but didn't investigate things like product that do not require an address for shipping, stepping backwards through the checkout process, failed payments, sideboxes, ez-pages, other plugins, etc...

    Long and short, glad you were able to get it to work... :) Welcome to the 2015s.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #37
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Simple and Easy 2 Question Create Account Page

    Quote Originally Posted by mc12345678 View Post
    to encompass the content to be removed... To provide finer control, a separate constant would need to be created in the admin configuration options to refine that and replace the ACCOUNT_GENDER part... Further, groups/combinations of settings could be controlled like an ACCOUNT_ADDRESS option to address all of the addresses, or maybe an option like, ACCOUNT_EMAIL_ONLY which when set to false would disable all fields except the desired Email and password option(s)... Options are at that point totally up to the individual implementing the above code, which is further why I didn't try to do a complete design analysis for implementation. Just get 'er done. :)

    I also did not mean to be, well mean... As said before, these things can be done, and one should not just give up... At one point I think I did mentally work through the whole backlink part, but hadn't implemented it to provide that part (again left it for the next venturous individual. :) ) Also I didn't want to delve too far into this 1) if it didn't provide the desired affect 2) if it affected other items on which I'm working, and 3) if it was gonna' cause heartache to the "community" by getting shot down from the get go. :)

    I still warn... There are aspects about the modifications that have not been evaluated for program flow in an "indirect" operation... Was able to step through a "normal" checkout process and site visit, but didn't investigate things like product that do not require an address for shipping, stepping backwards through the checkout process, failed payments, sideboxes, ez-pages, other plugins, etc...

    Long and short, glad you were able to get it to work... :) Welcome to the 2015s.
    Your kindness, patience, understanding, and ability to teach are to be admired. Thanks to you and others like you on this forum for taking the time to help others.

    Excited to be in the 2015s, we'll see where it goes from here

  8. #38
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Simple and Easy 2 Question Create Account Page

    Quote Originally Posted by pricediscrimination View Post
    It's too bad this thread was rudely interrupted by someone who doesn't see how this is an issue for a site in 2015. It's too bad that it's so difficult to make the create account page not ask for the customer's entire life story.
    yep that's me.. "rudely" interrupting.. this is cute..
    Last edited by DivaVocals; 14 Nov 2015 at 04:33 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #39
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Simple and Easy 2 Question Create Account Page

    Quote Originally Posted by mc12345678 View Post
    includes/init_includes/overrides/init_header.php:
    Code:
    /* Check for invalid countries in customer's address book.
     * If a customer is logged in, check to see that the customers' address(es) still contain valid countries.
    * If not, redirect to the address-book page for changes.
    */
    if  ($_SESSION['customer_id'] && $_GET['main_page'] !=  FILENAME_ADDRESS_BOOK_PROCESS && $_GET['main_page'] !=  FILENAME_LOGOFF && ($_GET['main_page'] ==  FILENAME_CHECKOUT_SHIPPING || $_GET['main_page'] ==  FILENAME_CHECKOUT_PROCESS || $_GET['main_page'] ==  FILENAME_CHECKOUT_CONFIRMATION)) {
      $addresses_query = "SELECT  address_book_id, entry_country_id as country_id, entry_firstname as  firstname, entry_lastname as lastname
                          FROM   " . TABLE_ADDRESS_BOOK . "
                          WHERE  customers_id = :customersID
                          ORDER BY firstname, lastname";
    
      $addresses_query = $db->bindVars($addresses_query, ':customersID', $_SESSION['customer_id'], 'integer');
      $addresses = $db->Execute($addresses_query);
    
      while (!$addresses->EOF) {
        if (zen_get_country_name($addresses->fields['country_id'], TRUE) == '') {
           $messageStack->add_session('addressbook',  sprintf(ERROR_TEXT_COUNTRY_DISABLED_PLEASE_CHANGE,  zen_get_country_name($addresses->fields['country_id'], FALSE)),  'error');
          $_SESSION['navigation']->set_snapshot (array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_SHIPPING));
          zen_redirect (zen_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'edit=' . $addresses->fields['address_book_id'], 'SSL'));
        }
        $addresses->MoveNext();
      }
    }
    Thanks... didn't think to look there for catching it.

    For me I wanted COWOA and standard account to work as normal, adding a catch so checkout would require a billing/shipping address... I added two new pages, one for registering, one for catching the address and what not during checkout. I also had to create a false inactive Country/State so admin wouldn't freak out.

    My Catch..
    Code:
    /* Check for invalid countries in customer's address book.
     * If a customer is logged in, check to see that the customers' address(es) still contain valid countries.
    * If not, redirect to the address-book page for changes.
    */
    if  ($_SESSION['customer_id'] && $_GET['main_page'] !=  FILENAME_ADDRESS_BOOK_PROCESS && $_GET['main_page'] !=  FILENAME_LOGOFF && ($_GET['main_page'] ==  FILENAME_CHECKOUT_SHIPPING || $_GET['main_page'] ==  FILENAME_CHECKOUT_PROCESS || $_GET['main_page'] ==  FILENAME_CHECKOUT_CONFIRMATION || $_GET['main_page'] ==  FILENAME_CHECKOUT)) {
      
      $addresses_query = "SELECT  address_book_id, entry_country_id as country_id, entry_firstname as  firstname, entry_lastname as lastname
                          FROM   " . TABLE_ADDRESS_BOOK . "
                          WHERE  customers_id = :customersID
                          ORDER BY firstname, lastname";
    
      $addresses_query = $db->bindVars($addresses_query, ':customersID', $_SESSION['customer_id'], 'integer');
      $addresses = $db->Execute($addresses_query);
    
      while (!$addresses->EOF) {
        if ((zen_get_country_name($addresses->fields['country_id'], TRUE) == '') || (zen_get_country_name($addresses->fields['country_id'], TRUE) == 'GAccount')) {
           $messageStack->add_session('addressbook',  sprintf(ERROR_TEXT_COUNTRY_DISABLED_PLEASE_CHANGE,  zen_get_country_name($addresses->fields['country_id'], FALSE)),  'error');
          $_SESSION['navigation']->set_snapshot (array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_SHIPPING));
           if ($_SESSION['cart']->count_contents() > 0) {
          zen_redirect (zen_href_link(FILENAME_GUEST_ACCOUNT, 'action=doprocess', 'SSL'));
          }else{
          zen_redirect (zen_href_link(FILENAME_DEFAULT));
          }
        }
        $addresses->MoveNext();
      }
    }
    Dave
    Always forward thinking... Lost my mind!

  10. #40
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Simple and Easy 2 Question Create Account Page

    This hack works very well, infinite thanks to mc12345678.

    Strangely, when the new account is created, nothing related to the account is recorded in Admin > Customers. It makes sense that until the customer adds their address to the address book there won't be any data in the address fields, but the customer's email address isn't there either. Neither is any info in the ID# box.

    This info is also not added to the Admin area even when data is input on the Edit Account Info page.

    Only when an address book entry is made, then the data is viewable in the Admin.

 

 
Page 4 of 5 FirstFirst ... 2345 LastLast

Similar Threads

  1. Need to EDIT create account page and Step 2 checkout page
    By ngstime in forum General Questions
    Replies: 1
    Last Post: 13 Apr 2010, 02:16 AM
  2. Log In and Create Account Page?
    By kab_death in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Mar 2010, 02:26 AM
  3. Simple and easy check out page
    By InterSign in forum General Questions
    Replies: 0
    Last Post: 20 May 2008, 05:27 AM
  4. Blank Create Account and Login Page
    By misty16 in forum General Questions
    Replies: 2
    Last Post: 31 Dec 2007, 06:46 AM
  5. Bypass create account success page and go to My Account instead?
    By dealbyethan.com in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Dec 2007, 01: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