Last edited by kimsonvu; 20 Jan 2007 at 03:36 AM.
Yes,This is the list file i changed code when compare with 1.37
But still not working ....Searching 1236 files ... for: ENTRY_COUNTRY_ERROR
/home/handicra/public_html/shop/admin/customers.php
Line #144 : $entry_country_error = true;
Line #146 : $entry_country_error = false;
Line #150 : if ($entry_country_error == true) {
Line #741 : if ($entry_country_error == true) {
Line #742 : echo zen_draw_pull_down_menu('entry_country_id', zen_get_countries(), $cInfo->entry_country_id) . ' ' . ENTRY_COUNTRY_ERROR;
/home/handicra/public_html/shop/admin/includes/languages/english.php
Line #249 : define('ENTRY_COUNTRY_ERROR', '');
/home/handicra/public_html/shop/includes/form_check.js.php
Line #118 : check_select("country", "", "<?php echo ENTRY_COUNTRY_ERROR; ?>");
/home/handicra/public_html/shop/includes/languages/english.php
Line #237 : define('ENTRY_COUNTRY_ERROR', 'You must select a country from the Countries pull down menu.');
/home/handicra/public_html/shop/includes/modules/checkout_new_address.php
Line #133 : $messageStack->add('checkout_address', ENTRY_COUNTRY_ERROR);
/home/handicra/public_html/shop/includes/modules/classic/create_account.php
Line #183 : $messageStack->add('create_account', ENTRY_COUNTRY_ERROR);
/home/handicra/public_html/shop/includes/modules/create_account.php
Line #228 : $messageStack->add('create_account', ENTRY_COUNTRY_ERROR);
/home/handicra/public_html/shop/includes/modules/pages/account_edit/jscript_form_check.php
Line #115 : check_select("country", "", "<?php echo ENTRY_COUNTRY_ERROR; ?>");
/home/handicra/public_html/shop/includes/modules/pages/account_password/jscript_form_check.php
Line #115 : check_select("country", "", "<?php echo ENTRY_COUNTRY_ERROR; ?>");
/home/handicra/public_html/shop/includes/modules/pages/address_book_process/header_php.php
Line #163 : $messageStack->add('addressbook', ENTRY_COUNTRY_ERROR);
/home/handicra/public_html/shop/includes/modules/pages/address_book_process/jscript_main.php
Line #117 : check_select("country", "", "<?php echo ENTRY_COUNTRY_ERROR; ?>");
/home/handicra/public_html/shop/includes/modules/pages/checkout_payment_address/jscript_main.php
Line #135 : check_select("country", "", "<?php echo ENTRY_COUNTRY_ERROR; ?>");
/home/handicra/public_html/shop/includes/modules/pages/checkout_shipping_address/jscript_main.php
Line #135 : check_select("country", "", "<?php echo ENTRY_COUNTRY_ERROR; ?>");
/home/handicra/public_html/shop/includes/modules/pages/create_account/jscript_form_check.php
Line #118 : check_select("country", "", "<?php echo ENTRY_COUNTRY_ERROR; ?>");
/home/handicra/public_html/shop/includes/modules/pages/login/jscript_form_check.php
Line #118 : check_select("country", "", "<?php echo ENTRY_COUNTRY_ERROR; ?>");
This particular function is deceptively complex involving php and javascript to determine whether a field or a pulldown menu is displayed, and then ensuring that the function degrades in a workable fashion when javascript is disabled. However, there is still one way to break it, and what I see on your site, Kimsonvu, suggests that you've found it.
I believe that what you are doing is in Admin > Configuration > Customer Settings
setting "State" to true, "State - Always display as pulldown?" to true and "Create Account Default Country ID" to none (displays in Admin as a blanl space).
However, this doesn't really make sense. You are telling the system to display a pulldown menu, but then not telling it the country whose states are to be used. This is why it has problems and also displays the field into which a state can be typed. If you are going to use the pulldown menu, you must also designate a country as the default. If your store ships internationally, I recommend against using the pulldown menu.
Whilst looking at your site, I noticed a couple of other problems with which you may wish to deal.
1. The text that you have cut and pasted into your scroller is a complete HTML page including all the heading tages and a </body> and a </html> tag. In some browsers this may cause the page to end at that point.
2. The links that you have coded into your EZ-Pages header and your Nav Supp footer for "My Account" are incorrect.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
tjthecat3
The previous post may deal with your issue also. If not, please provide a link to the site where we can see your problem.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
CORRECTION for kimsonvu
My apologies kimsonvu your problem is different to that which I said in my post above.
You have added the CAPTACHA add-on. Unfortunately this add-on was built for an earlier version of Zen Cart and although it has been revised for more recent versions, it replaces some of the core programs used in the create account process with code based on older versions and an older strucuture that does not fully account for the more recent fixes.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
In 1.3.6, after having taken care of the country drop-down list issue, I was still unable to create accounts. There was no error message or any other indicator of why I couldn't, I just couldn't. I want to mention the fix here as it was a particularly frustrating problem, the solution for which I just stumbled upon.
In Admin/Configuration/Minimum Values you can set the mandatory minimum number of characters in a field. (City, State, Post Code etc.) This includes not having a minimum number at all. By not having a minimum number it is as though the field is not mandatory, even though the red "x" will remain. However, I found that if a category is left blank with no number in it, it causes a conflict and you are unable to create accounts.
If you are unable to create accounts but not receiving an error message as to why, you might want to confirm that all fields in Admin/Configuration/Minimum Values have at least a "0" in them.
Good luck!
Tim
thank you for this!! since i hadn't made any customizations to these files in my template, i just deleted them. anything there's not a replacement for in [yr_template] folder, zencart reverts to the default template to get it.
so, all i did was delete the files you listed above from my templates/mytemplate/templates/ folder, and then i was able to create my test account!!
now i need to go lower my blood pressure again after the stress of discovering, panicing, and finally fixing this bug. ;)
thanks to zencart and the zencart community!!
zencart installation is at http://oyinhandmade.com/shop
Bookmarks