I was able to fix it by replacing some of the template files in the TM template with some from the default template of 1.37 : )
I was able to fix it by replacing some of the template files in the TM template with some from the default template of 1.37 : )
I had this same issue (working with v1.3.0.2 and didn't want to do upgrade), and poked around in the code until I found a problem: The $_POST variable in the form is "country", while in the create_account.php file, it was looking for "zone_country_id".
If you open includes/modules/create_account.php and look around line 60, you'll find:
I changed this to:Code:$country = zen_db_prepare_input($_POST['zone_country_id']);
There's also, around line 418 or so:Code:$country = zen_db_prepare_input($_POST['country']);
I changed this to:Code:$selected_country = ($_POST['zone_country_id']) ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
This fixed the country error message issue, but then I had a problem with the state input. I fixed this by commenting out a few lines around line 92 in templates/template_default/templates/tpl_modules_create_account.phpCode:$selected_country = ($_POST['country']) ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
This forces it to create a text box instead of a drop down input for state. Admittedly not the most elegant solution, but I've got a deadline and it works.Code:if ($process == true || $entry_state_has_zones == true ) { // if ($entry_state_has_zones == true) { // echo zen_draw_pull_down_menu('state', $zones_array, $zone_name, ' id="state"'); // } else { echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40'), ' id="state"'); // } } else { echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40'), ' id="state"'); } if (zen_not_null(ENTRY_STATE_TEXT)) echo '<span class="alert">' . ENTRY_STATE_TEXT . '</span>';?>
THanks for this post! I am too having the same problem. I upgraded to 1.3.7 and installed a new template all at the same time, so don't know if the problem is zen cart or template monster.
But from reading this, sounds like a template monster issue that needs to be fixed. So, i'm going to send it to them to fix it!
"i think" the problem is template monsters template overrides every single template file rather than just the ones it needs too. This becomes a bigger problem when the version of zen cart is newer than the template you bought , which is probably most of the time : (
[FONT=Arial]I"m using a TM package as well on version 1.3.6, and I just used ExamDiff to see the difference between tpl_modules_address_book_details.php of the default template and my Template monster one. There were a lot of changes so I did a quick backup and copied / pasted right overtop of the template monster one and it worked like a charm. Who knows how old the template monster stuff is! And YES I noticed that you need to heavy modify the templates before they work anyway. Next time I think I"ll just do my own design and save some time.[/FONT]
[FONT=Arial][/FONT]
[FONT=Arial]Ry[/FONT]
Well, I got tired of Template Monster not responding! lol. I pretty much have given up on ever really getting an answer from them. They have live support, but the standard answer is this will take some more research please submit a ticket. Geesh, the whole fact that I pressed to get a live person should have been enough for them to generate the TICKET....anyway, another story for another thread!
For this....I basically went into the template folder for my template, backed them ALL up, so that if I messed anything up, I could revert back. I also went into my database and backed that up! Because with me, you never know what I'll mess up! lol!
Then, I took the templates from the default, and copied the ones I thought were the culprits, and I pasted into my_template folder. The ones I copied were tpl_modules_address_book_default.php, that didn't do anything.....so then I went and replaced tpl_modules_checkout_address.php, and that didn't seem to fix anything....so I then did tpl_modules_checkout_new_address.php....
badda bing, badda boom! Problem fixed! And, lucky lucky, I didn't mess anything else up :) That's a first! lol!
Thanks for the advise, I'd have still been here next month with the same problem and no help from the "monsters!"
I had the same problem with a template monster template. Never again!
I fixed it by changing the tpl_modules_checkout_new_adress.php file to use the same "country" code as the same file in the template_default/templates directory.
Write me if you need more details
Emmett
If the problem is when the people is trying to register? Does anyone knows how can this be fixed? Thanks.
I followed the instructions that justAnother publish, but the problem remains. I'm trying some other solution, I'll llet you know.
The problem seems to be solved now. I just modify some values on the Configuration > Minimun values section. Thanks for your help.