		<div data-elementor-type="wp-page" data-elementor-id="6230" class="elementor elementor-6230" data-elementor-post-type="page">
				{"id":6230,"date":"2025-09-29T13:28:16","date_gmt":"2025-09-29T11:28:16","guid":{"rendered":"https:\/\/damyel.co.il\/connexion-inscription\/"},"modified":"2025-10-19T02:02:50","modified_gmt":"2025-10-19T00:02:50","slug":"connexion-inscription","status":"publish","type":"page","link":"https:\/\/damyel.co.il\/fr\/connexion-inscription\/","title":{"rendered":"Connexion\/inscription"},"content":{"rendered":"<div class=\"elementor-element elementor-element-3651f396 e-flex e-con-boxed wpr-particle-no wpr-jarallax-no wpr-parallax-no wpr-sticky-section-no e-con e-parent\" data-id=\"3651f396\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1626a902 elementor-widget elementor-widget-text-editor\" data-id=\"1626a902\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<h1>Connexion\/inscription<\/h1>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ecebabc elementor-widget elementor-widget-heading\" data-id=\"ecebabc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<div class=\"elementor-heading-title elementor-size-default\">\t<style>\n\t\t#afb-auth-grid-main [type=\"submit\"]:focus {\n\t\t\tbackground-color: black !important\n\t\t}\n\t<\/style>\n\t<div class=\"afb-auth-grid\" id=\"afb-auth-grid-main\">\n\t\t<div class=\"afb-auth-card-\">\n\t\t\t<div class=\"form-box\">\n\t\t\t\t<h2 class=\"form-title\">J&#039;ai d\u00e9j\u00e0 un compte, je me connecte ici<\/h2>\n\n\t\t\t\t<div id=\"login-message\" class=\"form-message\" style=\"display: none;\"><\/div>\n\n\t\t\t\t<form action=\"https:\/\/damyel.co.il\/wp-login.php\" method=\"post\" id=\"loginform\">\n\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t<label class=\"form-label\" for=\"user_login\">Email <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<input type=\"email\" name=\"log\" id=\"user_login\" class=\"form-input\" required value=\"\">\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t<label class=\"form-label\" for=\"user_pass\">Mot de passe <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<div class=\"input-wrapper\">\n\t\t\t\t\t\t\t<input type=\"password\" name=\"pwd\" id=\"user_pass\" class=\"form-input\" required>\n\t\t\t\t\t\t\t<button type=\"button\" class=\"password-toggle\" onclick=\"togglePassword('user_pass', this)\">\n\t\t\t\t\t\t\t\tMontrer\t\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<input type=\"hidden\" name=\"redirect_to\" value=\"\/?open_afb_cart=true\">\n\t\t\t\t\t<input type=\"hidden\" name=\"testcookie\" value=\"1\">\n\t\t\t\t\t<!-- <input type=\"checkbox\" name=\"rememberme\" value=\"forever\"> -->\n\t\t\t\t\t<button type=\"submit\" name=\"wp-submit\" class=\"form-submit\">Se connecter<\/button>\n\n\t\t\t\t\t<input type=\"hidden\" id=\"security\" name=\"security\" value=\"28c3891e1a\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/fr\/wp-json\/wp\/v2\/pages\/6230\" \/>\n\t\t\t\t\t<div class=\"form-link\">\n\t\t\t\t\t\t<a href=\"https:\/\/damyel.co.il\/fr\/mon-compte\/lost-password\/\" rel=\"nofollow\">\n\t\t\t\t\t\t\tMot de passe oubli\u00e9?\t\t\t\t\t\t<\/a>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/form>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\n\t\t<div class=\"afb-auth-card-\">\n\t\t\t<div class=\"form-box\">\n\t\t\t\t<h2 class=\"form-title\">Je n&#039;ai pas de compte, j&#039;en cr\u00e9e un ici<\/h2>\n\n\t\t\t\t<div id=\"register-message\" class=\"form-message\" style=\"display: none;\"><\/div>\n\n\t\t\t\t<form action=\"https:\/\/damyel.co.il\/wp-login.php?action=register\" method=\"post\" id=\"registerform\">\n\t\t\t\t\t\n\n\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t<label class=\"form-label\" for=\"user_firstname\">Pr\u00e9nom <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<input type=\"text\" name=\"user_firstname\" id=\"user_firstname\" class=\"form-input\" required>\n\t\t\t\t\t<\/div>\n\t\t\t  \n\t\t\t  \n\t\t\t  \t<div class=\"form-group\">\n\t\t\t\t\t\t<label class=\"form-label\" for=\"user_lastname\">Nom <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<input type=\"text\" name=\"user_lastname\" id=\"user_lastname\" class=\"form-input\" required>\n\t\t\t\t\t<\/div>\n\t\t\t  \n\t\t\t  \n\n\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t<label class=\"form-label\" for=\"user_email\">Email <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<input type=\"email\" name=\"user_email\" id=\"user_email\" class=\"form-input\" required>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t<label class=\"form-label\" for=\"user_password\">Mot de passe <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<div class=\"input-wrapper\">\n\t\t\t\t\t\t\t<input type=\"password\" name=\"user_password\" id=\"user_password\" class=\"form-input\" required>\n\t\t\t\t\t\t\t<button type=\"button\" class=\"password-toggle\" onclick=\"togglePassword('user_password', this)\">\n\t\t\t\t\t\t\t\tMontrer\t\t\t\t\t\t\t<\/button>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\n\n\n\n\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t<label class=\"form-label\" for=\"user_address\">Adresse <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<input type=\"text\" name=\"user_address\" id=\"user_address\" class=\"form-input address-input\" required>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t<label class=\"form-label\" for=\"user_city\">Ville <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<input type=\"text\" name=\"user_city\" id=\"user_city\" class=\"form-input\" required>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t<label class=\"form-label\" for=\"user_postal\">Code postal <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<input type=\"text\" name=\"user_postal\" id=\"user_postal\" class=\"form-input\" required>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t<label class=\"form-label\" for=\"user_country\">Pays <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<select name=\"user_country\" id=\"user_country\" class=\"country-select\" required>\n\t\t\t\t\t\t\t<option value=\"\">Choisir votre pays<\/option>\n\t\t\t\t\t\t\t<option value=\"FR\">France<\/option>\n\t\t\t\t\t\t\t<option value=\"BE\">Belgique<\/option>\n\t\t\t\t\t\t\t<option value=\"CH\">Suisse<\/option>\n\t\t\t\t\t\t\t<option value=\"CA\">Canada<\/option>\n\t\t\t\t\t\t\t<option value=\"US\">\u00c9tats-Unis<\/option>\n\t\t\t\t\t\t\t<option value=\"DE\">Allemagne<\/option>\n\t\t\t\t\t\t\t<option value=\"ES\">Espagne<\/option>\n\t\t\t\t\t\t\t<option value=\"IL\">Isra\u00ebl<\/option>\n\t\t\t\t\t\t\t<option value=\"IT\">Italie<\/option>\n\t\t\t\t\t\t\t<option value=\"UK\">Royaume-Uni<\/option>\n\t\t\t\t\t\t<\/select>\n\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<div class=\"form-group\">\n\t\t\t\t\t\t<label style=\"margin-bottom: 3px;\" class=\"form-label\" for=\"user_phone\">T\u00e9l\u00e9phone <span class=\"required\">*<\/span><\/label>\n\t\t\t\t\t\t<input type=\"tel\" name=\"user_phone\" id=\"user_phone\" class=\"form-input afb_phone\" required>\n\t\t\t\t\t<\/div>\n\n\n\t\t\t\t\t<style>\n\t\t\t\t\t\t.afb_phone {\n\t\t\t\t\t\t\t\/* \t\t\t\t\t\t\t\t\t\t\tpadding-left: 48px !important; *\/\n\t\t\t\t\t\t\ttext-indent: 48px !important\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.iti {\n\t\t\t\t\t\t\twidth: 100% !important;\n\t\t\t\t\t\t\t\/* Make it expand to container width *\/\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.iti__country-list {\n\t\t\t\t\t\t\tmin-width: 300px !important;\n\t\t\t\t\t\t\t\/* Control dropdown width *\/\n\t\t\t\t\t\t\tmax-height: 250px;\n\t\t\t\t\t\t\t\/* Scroll instead of overflowing *\/\n\t\t\t\t\t\t\toverflow-y: auto;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\/* Adjust the selected flag button *\/\n\t\t\t\t\t\t.iti__flag-container {\n\t\t\t\t\t\t\twidth: auto !important;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t[type=\"search\"].iti__search-input {\n\t\t\t\t\t\t\tpadding-left: 26px !important;\n\t\t\t\t\t\t}\n\t\t\t\t\t<\/style>\n\t\t\t\t\t<input type=\"hidden\" id=\"create_user_nonce_field\" name=\"create_user_nonce_field\" value=\"887108bcf5\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/fr\/wp-json\/wp\/v2\/pages\/6230\" \/>\n\t\t\t\t\t<button type=\"submit\" name=\"wp-submit\" class=\"form-submit\">Cr\u00e9ez votre compte<\/button>\n\t\t\t\t<\/form>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n\n\n\n\t<script>\n\t\tfunction togglePassword(inputId, button) {\n\t\t\tlet authGrid = document.getElementById('afb-auth-grid-main');\n\t\t\tconst input = authGrid.querySelector('#' + inputId);\n\t\t\tconst isPassword = input.type === 'password';\n\n\t\t\tinput.type = isPassword ? 'text' : 'password';\n\t\t\tbutton.textContent = isPassword ? 'Cacher' : 'Montrer';\n\t\t}\n\n\t\tfunction showMessage(elementId, message, isError = false) {\n\t\t\tlet authGrid = document.getElementById('afb-auth-grid-main');\n\t\t\tconst messageElement = authGrid.querySelector('#' + elementId);\n\t\t\tmessageElement.innerHTML = message;\n\t\t\tmessageElement.className = isError ? 'form-message error' : 'form-message success';\n\t\t\tmessageElement.style.display = 'block';\n\n\t\t\tsetTimeout(() => {\n\t\t\t\tmessageElement.style.display = 'none';\n\t\t\t}, 15000);\n\t\t}\n\n\t\tvar authGrid = document.getElementById('afb-auth-grid-main');\n\t\tconst loginFormMain = authGrid.querySelector('#loginform');\n\n\t\tloginFormMain.addEventListener('submit', function(e) {\n\t\t\te.preventDefault();\n\n\t\t\tconst formData = new FormData(this);\n\t\t\tformData.append(\"action\", \"ajax_login\");\n\n\t\t\tfetch(\"https:\/\/damyel.co.il\/wp-admin\/admin-ajax.php\", {\n\t\t\t\t\tmethod: \"POST\",\n\t\t\t\t\tbody: formData,\n\t\t\t\t\tcredentials: \"same-origin\"\n\t\t\t\t})\n\t\t\t\t.then(res => res.json())\n\t\t\t\t.then(data => {\n\t\t\t\t\tif (data.success) {\n\t\t\t\t\t\tshowMessage('login-message', 'Connexion r\u00e9ussie! Redirection...', false);\n\n\t\t\t\t\t\tconst redirectUrl = formData.get(\"redirect_to\") || data.data.redirect;\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\tif (redirectUrl) {\n\t\t\t\t\t\t\t\twindow.location.href = redirectUrl;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\/\/ Server sent an error JSON\n\t\t\t\t\t\tshowMessage('login-message', data.data.message, true);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(error => {\n\t\t\t\t\t\/\/ Network or unexpected error\n\t\t\t\t\tshowMessage('login-message', error.message, true);\n\t\t\t\t});\n\n\t\t});\n\n\n\n\n\n\t\t\/**\n\t\t * \n\t\t * REGISTRATION\n\t\t * \n\t\t * *\/\n\n\n\t\tconst registerForm = authGrid.querySelector('#registerform');\n\n\t\tregisterForm.addEventListener('submit', function(e) {\n\t\t\te.preventDefault();\n\n\t\t\tconst formData = new FormData(this);\n\t\t\tconst userData = {\n\t\t\t\taction: 'custom_user_registration',\n\t\t\t\tuser_login: formData.get('user_email'),\n\t\t\t\tuser_email: formData.get('user_email'),\n\t\t\t\tuser_pass: formData.get('user_password'),\n\t\t\t\tfirst_name: formData.get('user_firstname'),\n\t\t\t\tlast_name: formData.get('user_lastname'),\n\t\t\t\tuser_address: formData.get('user_address'),\n\t\t\t\tuser_city: formData.get('user_city'),\n\t\t\t\tuser_postal: formData.get('user_postal'),\n\t\t\t\tuser_country: formData.get('user_country'),\n\t\t\t\tuser_phone: formData.get('user_phone'),\n\t\t\t\tnonce: formData.get('create_user_nonce_field')\n\t\t\t};\n\n\t\t\tfetch('https:\/\/damyel.co.il\/wp-admin\/admin-ajax.php', {\n\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\theaders: {\n\t\t\t\t\t\t'Content-Type': 'application\/x-www-form-urlencoded',\n\t\t\t\t\t},\n\t\t\t\t\tbody: new URLSearchParams(userData)\n\t\t\t\t})\n\t\t\t\t.then(response => response.json())\n\t\t\t\t.then(data => {\n\t\t\t\t\tif (data.success) {\n\t\t\t\t\t\tshowMessage('register-message', 'Compte cr\u00e9\u00e9 avec succ\u00e8s! Vous pouvez maintenant vous connecter.', false);\n\t\t\t\t\t\tregisterForm.reset();\n\n\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\twindow.location.reload();\n\t\t\t\t\t\t}, 1000);\n\n\t\t\t\t\t\t\/\/ \t\t\t\t\t\t\t\t\t\t\tjQuery(document.body).trigger('update_checkout');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage('register-message', 'Erreur: ' + (data.data || 'Une erreur est survenue'), true);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.catch(error => {\n\t\t\t\t\tconsole.error('Error:', error);\n\t\t\t\t\tshowMessage('register-message', 'Une erreur est survenue lors de la cr\u00e9ation du compte', true);\n\t\t\t\t});\n\t\t});\n\n\n\n\n\t\tdocument.addEventListener(\"DOMContentLoaded\", function() {\n\t\t\tlet authGrid = document.getElementById('afb-auth-grid-main');\n\t\t\tconst phoneInput = authGrid.querySelector(\"#user_phone\");\n\t\t\tif (!phoneInput) return;\n\n\t\t\t\/\/ Load intl-tel-input dynamically\n\t\t\tconst loadScript = (src, cb) => {\n\t\t\t\tconst s = document.createElement(\"script\");\n\t\t\t\ts.src = src;\n\t\t\t\ts.onload = cb;\n\t\t\t\tdocument.head.appendChild(s);\n\t\t\t};\n\t\t\tconst loadCSS = (href) => {\n\t\t\t\tconst l = document.createElement(\"link\");\n\t\t\t\tl.rel = \"stylesheet\";\n\t\t\t\tl.href = href;\n\t\t\t\tdocument.head.appendChild(l);\n\t\t\t};\n\n\t\t\tloadCSS(\"https:\/\/cdn.jsdelivr.net\/npm\/intl-tel-input@25.10.11\/build\/css\/intlTelInput.min.css\");\n\t\t\tloadScript(\"https:\/\/cdn.jsdelivr.net\/npm\/intl-tel-input@25.10.11\/build\/js\/intlTelInput.min.js\", function() {\n\n\t\t\t\tconst iti = window.intlTelInput(phoneInput, {\n\t\t\t\t\tinitialCountry: \"il\", \/\/ \ud83c\uddee\ud83c\uddf1 set Israel as default\n\t\t\t\t\tnationalMode: false, \/\/ show full international number\n\t\t\t\t\tseparateDialCode: false, \/\/ country code inside input\n\t\t\t\t\tautoPlaceholder: \"polite\"\n\t\t\t\t});\n\n\t\t\t\t\/\/ When country is changed, insert dial code into input if not already there\n\t\t\t\tphoneInput.addEventListener(\"countrychange\", function() {\n\t\t\t\t\tconst code = \"+\" + iti.getSelectedCountryData().dialCode;\n\t\t\t\t\tif (!phoneInput.value.startsWith(code)) {\n\t\t\t\t\t\tphoneInput.value = code + \" \";\n\t\t\t\t\t\tphoneInput.setSelectionRange(phoneInput.value.length, phoneInput.value.length);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t});\n\t\t});\n\t<\/script>\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Connexion\/inscription<\/p>\n","protected":false},"author":7,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-6230","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/damyel.co.il\/fr\/wp-json\/wp\/v2\/pages\/6230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/damyel.co.il\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/damyel.co.il\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/damyel.co.il\/fr\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/damyel.co.il\/fr\/wp-json\/wp\/v2\/comments?post=6230"}],"version-history":[{"count":1,"href":"https:\/\/damyel.co.il\/fr\/wp-json\/wp\/v2\/pages\/6230\/revisions"}],"predecessor-version":[{"id":6231,"href":"https:\/\/damyel.co.il\/fr\/wp-json\/wp\/v2\/pages\/6230\/revisions\/6231"}],"wp:attachment":[{"href":"https:\/\/damyel.co.il\/fr\/wp-json\/wp\/v2\/media?parent=6230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}