Jump to content

[solved] Create new account button doesn't work


Recommended Posts

  • 4 weeks later...

Thank you vekla,

 

Sorry I didn't see your answer. I have the site in local. Here is the code:

 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7 lt-ie6 " lang="en"> <![endif]-->
<!--[if IE 7]>	<html class="no-js lt-ie9 lt-ie8 ie7" lang="en"> <![endif]-->
<!--[if IE 8]>	<html class="no-js lt-ie9 ie8" lang="en"> <![endif]-->
<!--[if gt IE 8]> <html lang="fr" class="no-js ie9" lang="en"> <![endif]-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
 <title>Authentication - Sonata</title>
 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
 <meta http-equiv="content-language" content="en-br-es-pt" />
 <meta name="robots" content="index,follow" />
 <link rel="icon" type="image/vnd.microsoft.icon" href="/Sonata/local/img/favicon.ico?1365092685" />
 <link rel="shortcut icon" type="image/x-icon" href="/Sonata/local/img/favicon.ico?1365092685" />
 <script type="text/javascript">
  var baseDir = 'http://localhost/Sonata/local/';
  var baseUri = 'http://localhost/Sonata/local/';
  var static_token = 'cb5617dbe131c72e17efa95e170daddb';
  var token = 'd11538388f31342c4fd93cebfa7a4a43';
  var priceDisplayPrecision = 2;
  var priceDisplayMethod = 1;
  var roundMode = 2;
 </script>
 <link href="/Sonata/local/themes/Sonata13/css/global.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/themes/Sonata13/css/authentication.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/modules/blockcart/blockcart.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/modules/blockcontact/blockcontact.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/themes/Sonata13/css/modules/blockcurrencies/blockcurrencies.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/themes/Sonata13/css/modules/blockuserinfo/blockuserinfo.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/themes/Sonata13/css/modules/blocklanguages/blocklanguages.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/themes/Sonata13/css/modules/homefeatured/homefeatured.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/modules/blocknewsletter/blocknewsletter.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/js/jquery/plugins/autocomplete/jquery.autocomplete.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/themes/Sonata13/css/product_list.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/themes/Sonata13/css/modules/blocksearch/blocksearch.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/themes/Sonata13/css/modules/productscategory/productscategory.css" rel="stylesheet" type="text/css" media="all" />
 <link href="/Sonata/local/themes/Sonata13/css/modules/blocktopmenu/css/superfish-modified.css" rel="stylesheet" type="text/css" media="all" />
  <script type="text/javascript" src="/Sonata/local/js/jquery/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="/Sonata/local/js/jquery/plugins/jquery.easing.js"></script>
 <script type="text/javascript" src="/Sonata/local/js/tools.js"></script>
 <script type="text/javascript" src="/Sonata/local/js/jquery/plugins/jquery.typewatch.js"></script>
 <script type="text/javascript" src="/Sonata/local/themes/Sonata13/js/tools/statesManagement.js"></script>
 <script type="text/javascript" src="/Sonata/local/themes/Sonata13/js/modules/blockcart/ajax-cart.js"></script>
 <script type="text/javascript" src="/Sonata/local/js/jquery/plugins/autocomplete/jquery.autocomplete.js"></script>
 <script type="text/javascript" src="/Sonata/local/modules/productscategory/productscategory.js"></script>
 <script type="text/javascript" src="/Sonata/local/js/jquery/plugins/jquery.serialScroll.js"></script>
 <script type="text/javascript" src="/Sonata/local/modules/blocktopmenu/js/hoverIntent.js"></script>
 <script type="text/javascript" src="/Sonata/local/modules/blocktopmenu/js/superfish-modified.js"></script>

<link rel="alternate" type="application/rss+xml" title="Authentication - Sonata" href="http://localhost/Sonata/local/modules/feeder/rss.php?id_category=0&orderby=name&orderway=asc" />
	<link href='http://fonts.googleapis.com/css?family=Michroma' rel='stylesheet' type='text/css'>	
	<!--[if gte IE 9]
		<style type="text/css">
		.gradient { filter: none; }
		</style>
	<![endif]-->		  
</head>

<body id="authentication" class="   catalogo en">
 <div id="page" class="container_9 clearfix">
  <!-- Header -->
  <div id="header" class="grid_9 alpha omega">
<a id="header_logo" href="http://localhost/Sonata/local/" title="Sonata">
 <img class="logo" src="/Sonata/local/img/logo.jpg?1365092685" alt="Sonata" width="341" height="54"  />
</a>
<div id="header_right" class="grid_3 omega">

<!-- Block languages module -->
<div id="languages_block_top">
<div id="countries">

  <p class="selected_language">
  <img src="http://localhost/Sonata/local/img/l/1.jpg" alt="en" width="16" height="11" />
 </p>
  <ul id="first-languages" class="countries_ul">
 <li class="selected_language">
	<img src="http://localhost/Sonata/local/img/l/1.jpg" alt="en" width="16" height="11" />
  </li>
 <li >
			<a href="http://localhost/Sonata/local/br/authentication?back=my-account" title="Português (Portuguese)">
		<img src="http://localhost/Sonata/local/img/l/2.jpg" alt="br" width="16" height="11" />
   </a>
  </li>
 <li >
			<a href="http://localhost/Sonata/local/es/autenticacion?back=my-account" title="Español (Spanish)">
		<img src="http://localhost/Sonata/local/img/l/4.jpg" alt="es" width="16" height="11" />
   </a>
  </li>
 <li >
			<a href="http://localhost/Sonata/local/pt/autenticacion?back=my-account" title="Português (Portuguese)">
		<img src="http://localhost/Sonata/local/img/l/9.jpg" alt="pt" width="16" height="11" />
   </a>
  </li>
</ul>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$("#countries").mouseover(function(){
 $(this).addClass("countries_hover");
 $(".countries_ul").addClass("countries_ul_hover");
});
$("#countries").mouseout(function(){
 $(this).removeClass("countries_hover");
 $(".countries_ul").removeClass("countries_ul_hover");
});
});
</script>
<!-- /Block languages module -->
<!-- Block currencies module -->
<script type="text/javascript">
$(document).ready(function () {
$("#setCurrency").mouseover(function(){
 $(this).addClass("countries_hover");
 $(".currencies_ul").addClass("currencies_ul_hover");
});
$("#setCurrency").mouseout(function(){
 $(this).removeClass("countries_hover");
 $(".currencies_ul").removeClass("currencies_ul_hover");
});
$('ul#first-currencies li:not(.selected)').css('opacity', 0.3);
$('ul#first-currencies li:not(.selected)').hover(function(){
 $(this).css('opacity', 1);
}, function(){
 $(this).css('opacity', 0.3);
});
});
</script>
<div id="currencies_block_top">
<form id="setCurrency" action="/Sonata/local/en/authentication?back=my-account" method="post">
 <p>
  <input type="hidden" name="id_currency" id="id_currency" value=""/>
  <input type="hidden" name="SubmitCurrency" value="" />
  Currency : €
 </p>
 <ul id="first-currencies" class="currencies_ul">
   <li class="selected">
 <a href="javascript:setCurrency(1);" title="Euro">€</a>
</li>
   <li >
 <a href="javascript:setCurrency(2);" title="Real">R$</a>
</li>
 </ul>
</form>
</div>
<!-- /Block currencies module -->
<!-- Block user information module HEADER -->
<div id="header_user">
<ul id="header_nav">
<li id="your_account"><a href="http://localhost/Sonata/local/en/my-account" title="View my customer account" rel="nofollow">Your Account</a></li>
</ul>
<p id="header_user_info">
 Welcome
 <a href="http://localhost/Sonata/local/en/my-account" title="Login to your customer account" class="login" rel="nofollow">Login</a>
  </p>
</div>
<!-- /Block user information module HEADER -->
<!-- block seach mobile -->
<!-- Block search module TOP -->
<div id="search_block_top">
	<a class="searchinfo" href="#" title="¿Cómo buscar?">¿Cómo buscar?</a>
<form method="get" action="http://localhost/Sonata/local/en/search" id="searchbox">
 <p>
  <label for="search_query_top"><!-- image on background --></label>
  <input type="hidden" name="controller" value="search" />
  <input type="hidden" name="orderby" value="position" />
  <input type="hidden" name="orderway" value="desc" />
  <input class="search_query" type="text" id="search_query_top" name="search_query" value="" />
  <input type="submit" name="submit_search" value="Search" class="button" />
</p>
</form>
</div>
<script type="text/javascript">
// <![CDATA[
 $('document').ready( function() {
  $("#search_query_top")
.autocomplete(
 'http://localhost/Sonata/local/en/search', {
  minChars: 3,
  max: 10,
  width: 500,
  selectFirst: false,
  scroll: false,
  dataType: "json",
  formatItem: function(data, i, max, value, term) {
   return value;
  },
  parse: function(data) {
   var mytab = new Array();
   for (var i = 0; i < data.length; i++)
	mytab[mytab.length] = { data: data[i], value: data[i].cname + ' > ' + data[i].pname };
   return mytab;
  },
  extraParams: {
   ajaxSearch: 1,
   id_lang: 1
  }
 }
)
.result(function(event, data, formatted) {
 $('#search_query_top').val(data.pname);
 document.location.href = data.product_link;
})
 });
// ]]>
</script>
<!-- /Block search module TOP -->
</div>
<!-- Menu -->
<div class="sf-contener clearfix">
 <ul class="sf-menu clearfix">
  <li><a href="http://localhost/Sonata/local/es/">Inicio</a></li>
<li ><a href="http://localhost/Sonata/local/en/6-sonata">Sonata</a><ul><li ><a href="http://localhost/Sonata/local/en/9-collares-sonata">Collares</a></li><li ><a href="http://localhost/Sonata/local/en/10-pulseras-sonata">Pulseras</a></li></ul></li><li ><a href="http://localhost/Sonata/local/en/7-minuet">Minuet</a><ul><li ><a href="http://localhost/Sonata/local/en/11-anillos-minuet">Anillos</a></li><li ><a href="http://localhost/Sonata/local/en/12-pulseras-minuet">Pulseras</a></li></ul></li><li ><a href="http://localhost/Sonata/local/en/8-catalogo">Catálogo</a><ul><li ><a href="http://localhost/Sonata/local/en/13-collares">Collares</a></li></ul></li>
 </ul>
 <div class="sf-right"> </div>
<!--/ Menu -->


<script type="text/javascript">
var CUSTOMIZE_TEXTFIELD = 1;
var img_dir = 'http://localhost/Sonata/local/themes/Sonata13/img/';
</script>
<script type="text/javascript">
var customizationIdMessage = 'Customization #';
var removingLinkText = 'remove this product from my cart';
var freeShippingTranslation = 'Free shipping!';
var freeProductTranslation = 'Free!';
var delete_txt = 'Delete';
</script>

<!-- MODULE Block cart -->
<div id="cart_block" class="block exclusive">
<p class="title_block">
 <a href="http://localhost/Sonata/local/en/quick-order" title="View my shopping cart" rel="nofollow">Cart</a>
<span id="block_cart_expand" class="hidden"> </span>
 <span id="block_cart_collapse" > </span>
  </p>
<div class="block_content">
<!-- block summary -->
<div id="cart_block_summary" class="collapsed">
 <span class="ajax_cart_quantity" style="display:none;">0</span>
 <span class="ajax_cart_product_txt_s" style="display:none">products</span>
 <span class="ajax_cart_product_txt" >product</span>
 <span class="ajax_cart_total" style="display:none">
 </span>
 <span class="ajax_cart_no_product" >(empty)</span>
</div>
<!-- block list of products -->
<div id="cart_block_list" class="expanded">
  <p  id="cart_block_no_products">No products</p>

 <p id="cart-prices">
  <!--<span id="cart_block_shipping_cost" class="price ajax_cart_shipping_cost">0,00 €</span>
  <span>Shipping</span>
  <br/>-->
	 <span id="cart_block_total" class="price ajax_block_cart_total">0,00 €</span>
  <span>Total</span>
 </p>
<p id="cart-buttons">
  <a href="http://localhost/Sonata/local/en/quick-order" id="button_order_cart" class="exclusive_large" title="Check out" rel="nofollow"><span></span>Check out</a>
 </p>
</div>
</div>
</div>
<!-- /MODULE Block cart -->

</div>
  </div>
  <div id="columns" class="grid_9 alpha omega clearfix">
<!-- Left -->
<div id="left_column" class="column grid_2 alpha">

</div>


<!-- Breadcrumb -->
<div class="breadcrumb">
<a href="http://localhost/Sonata/local/" title="return to Home"><img src="http://localhost/Sonata/local/themes/Sonata13/img/icon/home.gif" height="26" width="26" alt="Home" /></a>
  <span class="navigation-pipe" >></span>
 <h1 class="navigation_page">Login</h1>
  </div>
<!-- /Breadcrumb -->
<script type="text/javascript">
// <![CDATA[
idSelectedCountry = false;
countries = new Array();
countriesNeedIDNumber = new Array();
countriesNeedZipCode = new Array();
$(function(){
$('.id_state option[value=]').attr('selected', true);
});
//]]>
</script>

<script type="text/javascript">

$(document).ready(function(){
 // Retrocompatibility with 1.4
 if (typeof baseUri === "undefined" && typeof baseDir !== "undefined")
 baseUri = baseDir;
 $('#create-account_form').submit(function(){
  submitFunction();
  return false;
 });
 $('#SubmitCreate').click(function(){
  submitFunction();
 });
});
function submitFunction()
{
 $('#create_account_error').html('').hide();
 //send the ajax request to the server
 $.ajax({
  type: 'POST',
  url: baseUri,
  async: true,
  cache: false,
  dataType : "json",
  data: {
controller: 'authentication',
SubmitCreate: 1,
ajax: true,
email_create: $('#email_create').val(),
token: token
  },
  success: function(jsonData)
  {
if (jsonData.hasError)
{
 var errors = '';
 for(error in jsonData.errors)
  //IE6 bug fix
  if(error != 'indexOf')
   errors += '<li>'+jsonData.errors[error]+'</li>';
 $('#create_account_error').html('<ol>'+errors+'</ol>').show();
}
else
{
 // adding a div to display a transition
 $('#center_column').html('<div id="noSlide">'+$('#center_column').html()+'</div>');
 $('#noSlide').fadeOut('slow', function(){
  $('#noSlide').html(jsonData.page);
  // update the state (when this file is called from AJAX you still need to update the state)
  bindStateInputAndUpdate();
 });
 $('#noSlide').fadeIn('slow');
 document.location = '#account-creation';
}
  },
  error: function(XMLHttpRequest, textStatus, errorThrown)
  {
alert("TECHNICAL ERROR: unable to load form.\n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);
  }
 });
}

</script>
<!---->

	<div class="formularios clearfix">
		<form action="http://localhost/Sonata/local/en/authentication" method="post" id="login_form" class="std">
				<fieldset>
						<h3>Already registered?</h3>
						<div class="form_content clearfix">
								<p class="text">
										<label for="email">E-mail address</label>
										<span><input type="text" id="email" name="email" value="" class="account_input" /></span>
								</p>
								<p class="text">
										<label for="passwd">Password</label>
										<span><input type="password" id="passwd" name="passwd" value="" class="account_input" /></span>
								</p>
								<p class="lost_password"><a href="http://localhost/Sonata/local/en/password-recovery">Forgot your password?</a></p>
								<p class="submit">
										<input type="hidden" class="hidden" name="back" value="my-account" />											<input type="submit" id="SubmitLogin" name="SubmitLogin" class="button" value="Log in" />
								</p>
						</div>
				</fieldset>
		</form>	  
		<form action="http://localhost/Sonata/local/en/authentication" method="post" id="create-account_form" class="std">
				<fieldset>
						<h3>Create your account</h3>
						<div class="form_content clearfix">
								<p class="title_block">Enter your e-mail address to create an account.</p>
								<div class="error" id="create_account_error" style="display:none"></div>
								<p class="text">
										<label for="email_create">E-mail address</label>
										<span><input type="text" id="email_create" name="email_create" value="" class="account_input" /></span>
								</p>
								<p class="submit">
										<input type="hidden" class="hidden" name="back" value="my-account" />											<input type="submit" id="SubmitCreate" name="SubmitCreate" class="button_large" value="Create your account" />
										<input type="hidden" class="hidden" name="SubmitCreate" value="Create your account" />
								</p>
						</div>
				</fieldset>
		</form>
	</div><!-- / .formluarios -->



  </div><!-- / #columns -->
<!-- Footer -->
  <div id="footer" class="grid_9 alpha omega clearfix">

						<ul class="footer-categorias">

							<li>
								<a href="http://localhost/Sonata/local/en/6-sonata" title="Sonata">Sonata</a>
							</li>
							<li>
								<a href="http://localhost/Sonata/local/en/7-minuet" title="Minuet">Minuet</a>
							</li>							  
							<li>
								<a href="http://localhost/Sonata/local/en/8-catalogo" title="Calatogue">Catalogue</a>
							</li>							
						</ul>


<!-- MODULE Block contact infos -->
<ul id="block_contact_infos">
			<li class="footer-titulo">Contact us</li>
 <li class="phone">Tel: +34 900 866 368</li> </ul>
<!-- /MODULE Block contact infos -->
<!-- MODULE Block footer -->
<div class="block_various_links" id="block_various_links_footer">
 <p class="title_block">Information</p>
 <ul>
  <li class="item"><a href="http://localhost/Sonata/local/en/contact-us" title="Contact us">Contact us</a></li>
		<li class="item"><a href="http://localhost/Sonata/local/en/content/3-terms-and-conditions-of-use" title="Terms and conditions of use">Terms and conditions of use</a></li>
			<li class="item"><a href="http://localhost/Sonata/local/en/content/4-about-us" title="About us">About us</a></li>
	  <li><a href="http://localhost/Sonata/local/en/sitemap" title="sitemap">Sitemap</a></li>
 </ul>

</div>
<!-- /MODULE Block footer -->




  </div><!-- / #footer -->

					© Copyright 2012 - SONATA CHIC - All rights reserved

 </div><!-- / #page -->
		 <!-- Desplegable informacion -->
		<script type="text/javascript">
			(function($){	  
				$('#footer .block_various_links ul').hide();
				$('#footer .block_various_links .title_block').click(function(){
					$(('#footer .block_various_links ul')).toggle('slow');
				});
			})( jQuery );
		</script>
</body>
</html>

Edited by Juandbbam (see edit history)
Link to comment
Share on other sites

Hi, I have ps 1.5.3.1 with same problem... Please, let me add additional informations...

This error encoure only with I.E., safari, mozzilla, chrome are ok. Fundamental, this error appear only when multilanguage are installed. Since yesterday my e-commer was only in italian, but after actived english language, this error apperar. Awaiting suggestion or solution from some [spam-filter], I put my e-commerce only in italian language...

 

Some suggestion?

 

In attached file the screen shot errors...

 

Thank you in advance

psError.doc

Edited by l.zuccarini (see edit history)
Link to comment
Share on other sites

SOLVED!!!!

 

http://www.prestasho...esneedidnumber/

 

try to add in /themes/default/authentication.tpl VAR declaration for variables :

 

Original:

<script type="text/javascript">
// <![CDATA[
idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if};
countries = new Array();
countriesNeedIDNumber = new Array();
countriesNeedZipCode = new Array();

Modification:

<script type="text/javascript">
// <![CDATA[
var idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if};
var countries = new Array();
var countriesNeedIDNumber = new Array();
var countriesNeedZipCode = new Array();

Edited by l.zuccarini (see edit history)
Link to comment
Share on other sites

Your theme does not have element with id="center_column" so code

 

$('#center_column').html('<div id="noSlide">'+$('#center_column').html()+'</div>');

 

does not work. This code is in authentication.tpl.

You could try to replace center_column with columns.

Link to comment
Share on other sites

  • 3 weeks later...

Yes thank you!

 

Done. anyway, you can also mark own threads as solved, here is a instruction:

 

[sOLVED] Topic

 

If, after posting a topic, you find a solution to your problem, please indicate it in your post and describe the solution.

There is nothing more frustrating for users with the same issue who come across your post "all is good, I fixed it..." without an explanation of how to fix it.

 

Furthermore if you are the author of the topic for which a solution has been found, please edit your topic title to mark it as [sOLVED].

 

To mark a topic as [solved] :

- Edit the first post of your topic by clicking on the "Edit" button,

- Click on the "Use full editor" button,

- Add the "[solved]" string at the beginning of your topic title and click on the "Submit Modified Post" button.

 

Posters who do not abide by this (at the demand of the moderators or other users) will have their new topics closed until the problem has been resolved.

 

happy selling :-)

Link to comment
Share on other sites

×
×
  • Create New...