Forums / All Other Contributions/Addons / Minimum Customer Account Information - Support Thread

Minimum Customer Account Information - Support Thread

Views: 33,369

Results 21 to 40 of 88
9 Nov 2012, 8:51 AM
#21
kennym avatar

kennym

New Zenner

Join Date:
Mar 2010
Posts:
30
Plugin Contributions:
0

Minimum Customer Account Information - Support Thread

OK, resolved the odd bit of text. Thank you very much for the clue. It was this directory;

\includes\languages\english\extra_definitions\YOUR_TEMPLATE that required updating. I clearly did not look deep enough into the directory structure for Template folders.

I will modify the telephone number part later and I appreciate very much your advice on that part too. My 'store' really is just a Free Download Site so I don't want any more info from a user than absolutely necessary.

Kind regards,
Marleyman

9 Nov 2012, 1:10 PM
#22
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Minimum Customer Account Information - Support Thread

Please note that you'll still need to set the Minimum Values->Telephone Number to 0 even if you choose to remove the telephone number's display entirely; otherwise, the form-processing code associated with the create_account page will throw an error!

18 Nov 2012, 10:39 AM
#23
kennym avatar

kennym

New Zenner

Join Date:
Mar 2010
Posts:
30
Plugin Contributions:
0

Re: Minimum Customer Account Information - Support Thread

Hi, I am having another issue now and it may or may not be this addon. Could the mod be casing this error?
From this post http://www.zen-cart.com/showthread.php?202228-New-Account-Creation-not-working

Hi,

New customers get a server 500 error when trying to create a new account in my store. http://www.railworks.marleyman.co.uk/store/

Zen Cart 1.5.1 - Database Patch Level: 1.5.1 New Install
PHP Version: 5.2.17
Database: MySQL 5.1.56
Server: Microsoft-IIS/7.5
Windows NT WINSRV105 6.1 build 7601
API version 5.0.22

Template API version 5.0.22

Mods
Image Handler 4
backup_zc_v1.1
ckeditor-365-for-zencart
minimum_customer_account_information

Store Status 0

Latest New Account Creation was 15th Nov using the mod, since then I have this 500 error
No myDebug log files have been generated in my 'logs' folder

Error during account creation reads;


Server error
The website encountered an error while retrieving http://www.railworks.marleyman.co.uk...create_account. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this web page later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.


I have looked at this;

http://www.zen-cart.com/content.php?105
and this;
http://www.zen-cart.com/showthread.p...-php-main_page
neither seem to give me the info I need.

31 Dec 2012, 1:44 PM
#25
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Minimum Customer Account Information - Support Thread

I've submitted v1.2.2 to the plugins area for review:

  • Restore the already optional "Forum Nick Name" field to the minimum customer information collected. This change includes the updates identified by this thread.
  • BUGFIX: After a customer purchase, the "Previous Orders" table in the *account *page showed "Ship To" instead of "Sold To" and included the unused customer's country.
  • BUGFIX: Moved the file /includes/email/email_template_checkout.html to /email/email_template_checkout.html in the distribution zip-file.
25 Jan 2013, 1:11 PM
#26
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Minimum Customer Account Information - Support Thread

I've submitted v1.2.3 to the Plugins area for review. One "small" change that's kind of a corner case:

  • BUGFIX: Use case-insensitive compare (strcasecmp) when checking email and email confirmation in /includes/modules/YOUR_TEMPLATE/create_account.php.
29 Jan 2013, 2:02 AM
#27
deel avatar

deel

New Zenner

Join Date:
Jan 2013
Location:
Eustis, Florida, United States
Posts:
84
Plugin Contributions:
0

Re: Minimum Customer Account Information - Support Thread

Kennym:

OK, resolved the odd bit of text. Thank you very much for the clue. It was this directory;

\includes\languages\english\extra_definitions\YOUR_TEMPLATE that required updating. I clearly did not look deep enough into the directory structure for Template folders.

I will modify the telephone number part later and I appreciate very much your advice on that part too. My 'store' really is just a Free Download Site so I don't want any more info from a user than absolutely necessary.

Kind regards,
Marleyman

I am having the same issue, however when I look in the unzipped folder tree I don't even have an extra_definitions folder in the english folder mentioned above. Any idea what could have happened?

29 Jan 2013, 2:30 AM
#28
deel avatar

deel

New Zenner

Join Date:
Jan 2013
Location:
Eustis, Florida, United States
Posts:
84
Plugin Contributions:
0

Re: Minimum Customer Account Information - Support Thread

I am also seeing the text below with a red border when I try to register. The address fields are not showing but I get the following error.

Error Your Street Address must contain a minimum of 5 characters.
Error Your City must contain a minimum of 2 characters.
Error Your State must contain a minimum of 2 characters.
Error Your Post/ZIP Code must contain a minimum of 4 characters.
Error You must select a country from the Countries pull down menu.

29 Jan 2013, 1:23 PM
#29
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Minimum Customer Account Information - Support Thread

*re: I am having the same issue, however when I look in the unzipped folder tree I don't even have an extra_definitions folder in the english folder mentioned above. Any idea what could have happened?
*
All I can suggest is unzipping the distribution file again; the folder is there ...

29 Jan 2013, 1:28 PM
#30
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Minimum Customer Account Information - Support Thread

DeeL:

I am also seeing the text below with a red border when I try to register. The address fields are not showing but I get the following error.

Error Your Street Address must contain a minimum of 5 characters.
Error Your City must contain a minimum of 2 characters.
Error Your State must contain a minimum of 2 characters.
Error Your Post/ZIP Code must contain a minimum of 4 characters.
Error You must select a country from the Countries pull down menu.
The presence of these errors suggests to me that you didn't rename the /includes/modules/YOUR_TEMPLATE directory to reflect your custom template's name. Those errors are not issued if that file from the zipped release file is present.

1 Feb 2013, 12:23 AM
#31
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Minimum Customer Account Information - Support Thread

ok I give up...

I have installed (locally) this excellent mod as it's exactly what I will be needing once live.
However when I create an account/attempt test purchases when I click on confirm I get the warning:

Update Address Book Entry
Error Sorry, but we no longer accept billing or shipping addresses in . Please update this address to continue.

I have triple checked that I have the file/folder structure correct. All my prods are virtual and I have set my store in accordance with your readme.

Could you give me a few pointers please, perhaps how/where/with which file(s) the mod notifies the database that no further details are required before purchasing.

thank you in advance.

1 Feb 2013, 1:11 AM
#32
deel avatar

deel

New Zenner

Join Date:
Jan 2013
Location:
Eustis, Florida, United States
Posts:
84
Plugin Contributions:
0

Re: Minimum Customer Account Information - Support Thread

Thanks. There were about 5 or so folders I had to rename to the template name. All looking good now. THANKS!

1 Feb 2013, 12:31 PM
#33
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Minimum Customer Account Information - Support Thread

picandnix:

ok I give up...

I have installed (locally) this excellent mod as it's exactly what I will be needing once live.
However when I create an account/attempt test purchases when I click on confirm I get the warning:

Update Address Book Entry
Error Sorry, but we no longer accept billing or shipping addresses in . Please update this address to continue.

I have triple checked that I have the file/folder structure correct. All my prods are virtual and I have set my store in accordance with your readme.

Could you give me a few pointers please, perhaps how/where/with which file(s) the mod notifies the database that no further details are required before purchasing.

thank you in advance.
What payment processor are you using? When I submitted your error message to my admin's "Developers Tool Kit" I didn't get any matches.

1 Feb 2013, 1:17 PM
#34
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Minimum Customer Account Information - Support Thread

lat9:

What payment processor are you using? When I submitted your error message to my admin's "Developers Tool Kit" I didn't get any matches.

Thank you for looking into it for me.
I've tried COD, check, PayPal express but still get same results.
I'll put same into my tool kit a mo and post back...

1 Feb 2013, 1:32 PM
#35
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Minimum Customer Account Information - Support Thread

Aha...
that warning message comes from a certain mod called Selectable Countries :P
why would I have that mod in a store being used for downloads you ask? I am using a base installation of ZC that I installed the general mods I planned to use before I decided to go down the road of download only.

Do you think there could be a fix or should I just uninstall Selectable Countries and hope that resolves?
Thank you again

1 Feb 2013, 2:12 PM
#36
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Minimum Customer Account Information - Support Thread

Well, since I "own" that one too ... I'll give it a look.

1 Feb 2013, 2:21 PM
#37
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,116
Plugin Contributions:
56

Re: Minimum Customer Account Information - Support Thread

Here you go ... I'll update the Selectable Countries to contain these changes to /includes/init_includes/init_country_check.php:

<?php
/*-----
** Add flag, either 'true' or 'false' to indicate whether or not a country is included for the store's customer addresses.
*/
if (!defined('ACCOUNT_COUNTRY')) define('ACCOUNT_COUNTRY', 'true');

/*-----
** 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 (ACCOUNT_COUNTRY == 'true' && $_SESSION['customer_id'] && $_GET['main_page'] != FILENAME_ADDRESS_BOOK_PROCESS && $_GET['main_page'] != FILENAME_LOGOFF) {
  $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 (!is_country_active ($addresses->fields['country_id'])) {
      $messageStack->add_session('addressbook', sprintf(SELECTABLE_COUNTRIES_UPDATE, get_country_name($addresses->fields['country_id'])), 'error');
      zen_redirect (zen_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'edit=' . $addresses->fields['address_book_id'], 'SSL'));
    }
    $addresses->MoveNext();
  }
}
?>

For your case, you'd want to set the define's value to 'false'. I'll also make a future update to "Minimum Customer Account Information" to use the same define to control whether/not the country dropdown is required for the customer's account.

1 Feb 2013, 2:51 PM
#38
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Minimum Customer Account Information - Support Thread

lat9:

Here you go ... I'll update the Selectable Countries to contain these changes to /includes/init_includes/init_country_check.php:

<?php /*----- ** Add flag, either 'true' or 'false' to indicate whether or not a country is included for the store's customer addresses. */ if (!defined('ACCOUNT_COUNTRY')) define('ACCOUNT_COUNTRY', 'true'); /*----- ** 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 (ACCOUNT_COUNTRY == 'true' && $_SESSION['customer_id'] && $_GET['main_page'] != FILENAME_ADDRESS_BOOK_PROCESS && $_GET['main_page'] != FILENAME_LOGOFF) { $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 (!is_country_active ($addresses->fields['country_id'])) { $messageStack->add_session('addressbook', sprintf(SELECTABLE_COUNTRIES_UPDATE, get_country_name($addresses->fields['country_id'])), 'error'); zen_redirect (zen_href_link(FILENAME_ADDRESS_BOOK_PROCESS, 'edit=' . $addresses->fields['address_book_id'], 'SSL')); } $addresses->MoveNext(); } } ?>
> For your case, you'd want to set the define's value to 'false'.  I'll also make a future update to "Minimum Customer Account Information" to use the same define to control whether/not the country dropdown is required for the customer's account.

You are a star Cindy, thank you so much, I will give that a go later. At last I'll be able to close the laptop without huffing
2 Feb 2013, 12:25 AM
#39
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Minimum Customer Account Information - Support Thread

Perfect!
Thank you so much :hug:

6 Feb 2013, 10:32 PM
#40
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Minimum Customer Account Information - Support Thread

I'm back...
all is well with this mod, thank you very much. However I have also installed phpBB notifier hook mod to the same test store, all works well thank you as new customers do generate forum accounts too as per your design.

My question, is it possible to offer the nick name field as optional rather than required, as I'm sure that not all customers will want to join the store's forum by default.
Thank you.