Dennisra Posted April 14, 2006 Share Posted April 14, 2006 I just made the changes and registered as a new custmer. Everything worked as it should. Quote Link to comment Share on other sites More sharing options...
stevescantool Posted April 14, 2006 Share Posted April 14, 2006 ok i can not figure out why the refresh is failing for me. i keep getting this js error  Error: form_name.submit is not a function Source File: https://192.168.2.3/products/checkout_shipping_address.php Line: 224  line 224 looks like this  function refresh_form(form_name) { form_name.action.value = 'refresh'; form_name.state.value = ''; form_name.submit(); return true; } //--></script>  my form html looks like this for this page  <form name="checkout_address" action="https://192.168.2.3/products/checkout_shipping_address.php" method="post" onSubmit="return check_form_optional(checkout_address);">  the country select box has the proper info <select name="country" onChange="return refresh_form(checkout_address);">  any idea what would cause this? Quote Link to comment Share on other sites More sharing options...
stevel Posted April 15, 2006 Author Share Posted April 15, 2006 Unfortunately, that URL is a private IP so I can't look for myself. Does the refresh work on other pages of your site? Quote Steve  Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
stevescantool Posted April 15, 2006 Share Posted April 15, 2006 Unfortunately, that URL is a private IP so I can't look for myself. Does the refresh work on other pages of your site? Â nope.. does not refresh on any address page Quote Link to comment Share on other sites More sharing options...
stevel Posted April 15, 2006 Author Share Posted April 15, 2006 Dunno. Do a View Source of the web page in the browser, save it as HTML. Send me the HTML file to the e-mail address in the contribution readme. I'll take a look when I can. Quote Steve  Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
monsterpatterns Posted April 16, 2006 Share Posted April 16, 2006 (edited) I too would love to see this contribution work with the affiliate mod. It seems it should be fairly simple to code the affiliate_signup page (trying to study it tonight). Anyone come up with a solution that they can post here? Â Thanks Steve (GREAT) contribution. Â Paul Edited April 16, 2006 by monsterpatterns Quote Link to comment Share on other sites More sharing options...
211655 Posted April 24, 2006 Share Posted April 24, 2006 This is a great contribution and great install directions. However i cant get it to work. I did what u suggested but it doesnt work. I get JS error. I am using sts template 2.1 now i added the js function up there but u if u see it has refresh_form(form_name) which is causing issue. Quote 211655 Â SEO Optimization Export Orders into CSV file Link to comment Share on other sites More sharing options...
211655 Posted April 24, 2006 Share Posted April 24, 2006 link for error http://forum.mamboserver.com/attachment.ph...=1&d=1145908106 Quote 211655 Â SEO Optimization Export Orders into CSV file Link to comment Share on other sites More sharing options...
Dennisra Posted April 24, 2006 Share Posted April 24, 2006 link not working. Quote Link to comment Share on other sites More sharing options...
stevel Posted April 25, 2006 Author Share Posted April 25, 2006 The link doesn't work for me either.  The usual problem for people who use template contribs is that there is a second copy of form_check.js.php used by the template that has to be modified. Quote Steve  Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
211655 Posted April 25, 2006 Share Posted April 25, 2006 sorry new link  http://harrisahmed.googlepages.com/spsp.gif Quote 211655  SEO Optimization Export Orders into CSV file Link to comment Share on other sites More sharing options...
211655 Posted April 25, 2006 Share Posted April 25, 2006 I actually want a simple solution. I want to show USA and all of its states by default. I wanna show only 2 digit codes. Now i want to have a other box. When they select other, a state text filed shows up and drop down dissapears. Then they can pick a different country. Quote 211655 Â SEO Optimization Export Orders into CSV file Link to comment Share on other sites More sharing options...
stevel Posted April 25, 2006 Author Share Posted April 25, 2006 The error you are getting is because the form_check.js.php being used was not updated to include the refresh function. Check the PHP source carefully to see where it comes from.  The "simple" solution is more complex coding. You'd have to have an onChange function for the state that looks to see what they selected and if necessary, enables a text box for the other. The two-character states require a change to the query that retrieves the zones.  Are you sure this is what you want? It sounds complicated to me. Quote Steve  Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Noutje Posted April 25, 2006 Share Posted April 25, 2006 Hello, Â I installed this contri on my Creloaded store (BTS template system). When i read all the posts there are several with problems with this template system. Some have links to their sites where i can actually see it work. I cannot find a solution for this template system so i am stuck. Everything seems to work only on selection of the country the states are not refreshed. I also read to change the main_page.tpl.php but i cannont find a post on this topic how to change it. Quote Link to comment Share on other sites More sharing options...
stevel Posted April 25, 2006 Author Share Posted April 25, 2006 See my reply above, or other posts in this thread regarding template systems. You have to find the actual form_check.js.php file used by your pages and add the refresh function to it. Quote Steve  Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Noutje Posted April 25, 2006 Share Posted April 25, 2006 (edited) I did there are two. One is in catalog/includes/ and the other in catalog/includes/javascript. I changed both but i also was reading form someone that changed the main_page.tpl.php. I am curious what they did but they did not posted the code. Strange thing is that the refresh function is visible in the pagesource Edited April 25, 2006 by Noutje Quote Link to comment Share on other sites More sharing options...
211655 Posted April 25, 2006 Share Posted April 25, 2006 I actually found a simpler solution. found the AJax state drop down. I customized it to show a box if state is not in the zone table. Â But just to say that the this state dropdown was the best solution. My sts is screwed up and i ended up using this ajax one. Quote 211655 Â SEO Optimization Export Orders into CSV file Link to comment Share on other sites More sharing options...
yanarasod Posted May 27, 2006 Share Posted May 27, 2006 hi all, just finished installing and was very happy the way it worked but, just lafter finishing it had a look in the customers section under admin, the page isn't available and shows the following error, Â Parse error: parse error, unexpected T_CASE in /home/xxxxx/public_html/admin/customers.php on line 195 Quote Link to comment Share on other sites More sharing options...
Guest Posted May 27, 2006 Share Posted May 27, 2006 hi all, just finished installing and was very happy the way it worked but, just lafter finishing it had a look in the customers section under admin, the page isn't available and shows the following error, Â Parse error: parse error, unexpected T_CASE in /home/xxxxx/public_html/admin/customers.php on line 195 Â Can you post the code that is around your lines 194 - 196 Quote Link to comment Share on other sites More sharing options...
stevel Posted May 27, 2006 Author Share Posted May 27, 2006 Actually, the error is more likely to be earlier in the file - an extra or missing }. Quote Steve  Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
yanarasod Posted May 27, 2006 Share Posted May 27, 2006 Actually, the error is more likely to be earlier in the file - an extra or missing }.  no steve eaarlier it was working fine, look at the code  i also doubt there is an extra slash, when i looked at your readme, i was also a bit confused  lines 183-196  } else if ($error == true) { $cInfo = new objectInfo($HTTP_POST_VARS); $processed = true; // +Country-State Selector } else if ($refresh == 'true') { $cInfo = new objectInfo($HTTP_POST_VARS); } // -Country-State Selector  }  break; case 'deleteconfirm': $customers_id = tep_db_prepare_input($HTTP_GET_VARS['cID']); Quote Link to comment Share on other sites More sharing options...
yanarasod Posted May 27, 2006 Share Posted May 27, 2006 (edited) i have removed the slash is it right what i have done, although it doesn;t show errors Edited May 27, 2006 by virtualadz Quote Link to comment Share on other sites More sharing options...
stevel Posted May 27, 2006 Author Share Posted May 27, 2006 By "earlier" I meant further up in the source - a lower numbered line.  I did not say anything about a slash. The character is generally called a "right brace" or "right bracket".  Why not compare your customers.php against the pre-edited one I supply? Use a program such as BeyondCompare to do the comparison. Quote Steve  Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
yanarasod Posted May 27, 2006 Share Posted May 27, 2006 sorry i mentioned slash instead of "right brace" or "right bracket", i removed the bracket in between these two lines  // -Country-State Selector  }  break; case 'deleteconfirm':    it doesn't show any errors, what i now ask is have i done this right by removing the bracket, so as it doesn't affect anything else. otherswise everything's fine Quote Link to comment Share on other sites More sharing options...
stevel Posted May 27, 2006 Author Share Posted May 27, 2006 You were right to delete the bracket between the comment and the break. Quote Steve  Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.