<form id="wc_lost_license_form" method="post">

	<div class="form-row form-row-first">
		<p>Merci de renseigner l'adresse email utilisée lors de l'enregistrement. Votre licence ainsi que votre reçu vous serons alors envoyés.</p>
		<p>Si votre adresse email à changé merci de nous contacter.</p>
	</div>

	<div class="form-row form-row-last">
		<noscript><p class="woocommerce_error">JavaScript doit être activé pour utiliser ce formulaire.</p></noscript>
		<p><label for="wc_email">Votre adresse email:</label> <input type="text" class="input-text" id="wc_email" name="wc_email" /></p>
		<p><input type="submit" class="button-alt" name="wc_lost_license_btn" id="wc_lost_license_btn" value="Récupérer mes clés de licence" /></p>
	</div>

	<div class="clear"></div>
</form>

<script type="text/javascript">

	jQuery(function(){
		jQuery('#wc_lost_license_form').submit(function(){

			$form = jQuery('#wc_lost_license_form');
			$form.block({message: null, overlayCSS: { background: '#fff', opacity: 0.6 }});

			if ( ! $form.hasClass('loading') ) {

				$form.addClass('loading');

				jQuery('.woocommerce-error, .woocommerce-message').fadeOut('fast', function(){
					jQuery(this).remove();
				});

				var data = {
					action: 			'woocommerce_lost_license',
					security: 			'836d117c72',
					email: 				jQuery('input[name="wc_email"]').val()
				};

				jQuery.post( "/wp-admin/admin-ajax.php", data, function( response ) {

					$form.removeClass('loading');
					$form.unblock();

					//response = jQuery.parseJSON( response );

					if ( response.success ) {

						$form.prepend( '<div class="woocommerce"><div class="woocommerce-message">' + response.message + '</div></div>' ).fadeIn();

					} else {
						if ( response.success === false ) {
							$form.prepend( '<div class="woocommerce"><div class="woocommerce-error">' + response.message + '</div></div>' ).fadeIn();
						} else {
							$form.prepend( '<div class="woocommerce"><div class="woocommerce-error">' + 'Erreur lors du traitement de votre demande' + '</div></div>' ).fadeIn();
						}
					}

				});
			}

			return false;
		});
	});
</script>
{"id":67,"date":"2015-03-04T15:39:12","date_gmt":"2015-03-04T15:39:12","guid":{"rendered":"http:\/\/shop.adlice.com\/?page_id=67"},"modified":"2015-03-04T15:39:12","modified_gmt":"2015-03-04T15:39:12","slug":"licence-perdue","status":"publish","type":"page","link":"https:\/\/shop.adlice.com\/fr\/licence-perdue\/","title":{"rendered":"Licence Perdue"},"content":{"rendered":"\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-67","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Licence Perdue - Adlice Software<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/shop.adlice.com\/fr\/licence-perdue\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Licence Perdue - Adlice Software\" \/>\n<meta property=\"og:url\" content=\"https:\/\/shop.adlice.com\/fr\/licence-perdue\/\" \/>\n<meta property=\"og:site_name\" content=\"Adlice Software\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RogueKiller\" \/>\n<meta property=\"og:image\" content=\"https:\/\/shop.adlice.com\/wp-content\/uploads\/2015\/03\/adlice-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"226\" \/>\n\t<meta property=\"og:image:height\" content=\"91\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/shop.adlice.com\/fr\/licence-perdue\/\",\"url\":\"https:\/\/shop.adlice.com\/fr\/licence-perdue\/\",\"name\":\"Licence Perdue - Adlice Software\",\"isPartOf\":{\"@id\":\"https:\/\/shop.adlice.com\/#website\"},\"datePublished\":\"2015-03-04T15:39:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/shop.adlice.com\/fr\/licence-perdue\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/shop.adlice.com\/fr\/licence-perdue\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/shop.adlice.com\/fr\/licence-perdue\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/shop.adlice.com\/fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Licence Perdue\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/shop.adlice.com\/#website\",\"url\":\"https:\/\/shop.adlice.com\/\",\"name\":\"Adlice Software\",\"description\":\"Boutique de Licences\",\"publisher\":{\"@id\":\"https:\/\/shop.adlice.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/shop.adlice.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/shop.adlice.com\/#organization\",\"name\":\"Adlice Software\",\"url\":\"https:\/\/shop.adlice.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/shop.adlice.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/shop.adlice.com\/wp-content\/uploads\/2015\/03\/adlice-logo.png\",\"contentUrl\":\"https:\/\/shop.adlice.com\/wp-content\/uploads\/2015\/03\/adlice-logo.png\",\"width\":226,\"height\":91,\"caption\":\"Adlice Software\"},\"image\":{\"@id\":\"https:\/\/shop.adlice.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RogueKiller\",\"https:\/\/x.com\/AdliceSoftware\",\"https:\/\/www.youtube.com\/channel\/UC4CQ-gIZMGWxl-auf0QqYhQ\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Licence Perdue - Adlice Software","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/shop.adlice.com\/fr\/licence-perdue\/","og_locale":"fr_FR","og_type":"article","og_title":"Licence Perdue - Adlice Software","og_url":"https:\/\/shop.adlice.com\/fr\/licence-perdue\/","og_site_name":"Adlice Software","article_publisher":"https:\/\/www.facebook.com\/RogueKiller","og_image":[{"width":226,"height":91,"url":"https:\/\/shop.adlice.com\/wp-content\/uploads\/2015\/03\/adlice-logo.png","type":"image\/png"}],"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/shop.adlice.com\/fr\/licence-perdue\/","url":"https:\/\/shop.adlice.com\/fr\/licence-perdue\/","name":"Licence Perdue - Adlice Software","isPartOf":{"@id":"https:\/\/shop.adlice.com\/#website"},"datePublished":"2015-03-04T15:39:12+00:00","breadcrumb":{"@id":"https:\/\/shop.adlice.com\/fr\/licence-perdue\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/shop.adlice.com\/fr\/licence-perdue\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/shop.adlice.com\/fr\/licence-perdue\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/shop.adlice.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Licence Perdue"}]},{"@type":"WebSite","@id":"https:\/\/shop.adlice.com\/#website","url":"https:\/\/shop.adlice.com\/","name":"Adlice Software","description":"Boutique de Licences","publisher":{"@id":"https:\/\/shop.adlice.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/shop.adlice.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/shop.adlice.com\/#organization","name":"Adlice Software","url":"https:\/\/shop.adlice.com\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/shop.adlice.com\/#\/schema\/logo\/image\/","url":"https:\/\/shop.adlice.com\/wp-content\/uploads\/2015\/03\/adlice-logo.png","contentUrl":"https:\/\/shop.adlice.com\/wp-content\/uploads\/2015\/03\/adlice-logo.png","width":226,"height":91,"caption":"Adlice Software"},"image":{"@id":"https:\/\/shop.adlice.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RogueKiller","https:\/\/x.com\/AdliceSoftware","https:\/\/www.youtube.com\/channel\/UC4CQ-gIZMGWxl-auf0QqYhQ"]}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shop.adlice.com\/fr\/wp-json\/wp\/v2\/pages\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shop.adlice.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shop.adlice.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shop.adlice.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shop.adlice.com\/fr\/wp-json\/wp\/v2\/comments?post=67"}],"version-history":[{"count":1,"href":"https:\/\/shop.adlice.com\/fr\/wp-json\/wp\/v2\/pages\/67\/revisions"}],"predecessor-version":[{"id":68,"href":"https:\/\/shop.adlice.com\/fr\/wp-json\/wp\/v2\/pages\/67\/revisions\/68"}],"wp:attachment":[{"href":"https:\/\/shop.adlice.com\/fr\/wp-json\/wp\/v2\/media?parent=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}