{"id":14640,"date":"2020-02-06T10:52:35","date_gmt":"2020-02-06T08:52:35","guid":{"rendered":"https:\/\/ucrent.macaw.ee\/?page_id=14640"},"modified":"2020-03-24T12:24:31","modified_gmt":"2020-03-24T10:24:31","slug":"rekisteroi-kayttaja","status":"publish","type":"page","link":"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja","title":{"rendered":"Rekister\u00f6i k\u00e4ytt\u00e4j\u00e4"},"content":{"rendered":"<div class=\"woocommerce-notices-wrapper\"><\/div><div class=\"half-width align-center\">\n  <h2>Rekister\u00f6idy<\/h2>\n\n  <form method=\"post\"\n        class=\"woocommerce-form woocommerce-form-register register\"  >\n\n    \n    \n      <div class=\"form-group mb-responsive-half\"><label\n          for=\"reg_username\">K\u00e4ytt\u00e4j\u00e4tunnus <span class=\"required\">*<\/span><\/label>\n        <p class=\"woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide form_field full\">\n          <input type=\"text\" class=\"woocommerce-Input woocommerce-Input--text input-text\" name=\"username\"\n                 id=\"reg_username\" autocomplete=\"username\"\n                 value=\"\"\/>        <\/p><\/div>\n\n    \n    <div class=\"form-group mb-responsive-half\"><label\n        for=\"reg_email\">S\u00e4hk\u00f6postiosoite&nbsp;<span\n          class=\"required\">*<\/span><\/label>\n      <p class=\"woocommerce-form-row form_field full woocommerce-form-row--wide form-row form-row-wide\">\n        <input type=\"email\" class=\"woocommerce-Input woocommerce-Input--text input-text\" name=\"email\" id=\"reg_email\"\n               autocomplete=\"email\"\n               value=\"\"\/>      <\/p><\/div>\n\n    \n      <div class=\"form-group mb-responsive-half\"><label\n          for=\"reg_password\">Salasana&nbsp;<span\n            class=\"required\">*<\/span><\/label>\n        <p class=\"woocommerce-form-row form_field full woocommerce-form-row--wide form-row form-row-wide\">\n          <input type=\"password\" class=\"woocommerce-Input woocommerce-Input--text input-text\" name=\"password\"\n                 id=\"reg_password\" autocomplete=\"new-password\"\/>\n        <\/p><\/div>\n\n    \n    <div class=\"full-w-children\">\n      <p class=\"form-row form_field validate-required\" id=\"reg_agree_terms_field\" data-priority=\"\"><span class=\"woocommerce-input-wrapper\"><label class=\"checkbox form_field_label color-black\" ><input type=\"checkbox\" name=\"agree_terms\" id=\"reg_agree_terms\" value=\"1\" class=\"input-checkbox \"  aria-required=\"true\" \/> <span class=\"form_control_indicator\"><\/span>Hyv\u00e4ksyn&nbsp;<a href=\"https:\/\/shop.ucrent.ee\/privacy-policy\">\u00fcld- ja tellimustingimustega<\/a>&nbsp;<span class=\"required\" aria-hidden=\"true\">*<\/span><\/label><\/span><\/p><p class=\"form-row form_field\" id=\"reg_agree_newsletter_field\" data-priority=\"\"><span class=\"woocommerce-input-wrapper\"><label class=\"checkbox form_field_label color-black\" ><input type=\"checkbox\" name=\"agree_spam\" id=\"reg_agree_newsletter\" value=\"1\" class=\"input-checkbox \"  \/> <span class=\"form_control_indicator\"><\/span>Soovin saada pakkumisi e-mailile&nbsp;<span class=\"optional\">(valinnainen)<\/span><\/label><\/span><\/p><wc-order-attribution-inputs><\/wc-order-attribution-inputs><div class=\"woocommerce-privacy-policy-text\"><\/div>    <\/div>\n    <div id=\"form-login-error\" class=\"hidden\"><\/div>\n    <div>\n      Sinu isikuandmeid t\u00f6\u00f6deldakse sinu veebilehe kasutamise kogemuse toetamiseks, sinu konto ligip\u00e4\u00e4su haldamiseks ja muul viisil, mis on kirjeldatud meie      <a href=\"https:\/\/shop.ucrent.ee\/privacy-policy\">\n        \u00dcld- ja tellimustingimustes      <\/a>\n    <\/div>\n    <p class=\"woocommerce-FormRow form-row\">\n      <input type=\"hidden\" id=\"woocommerce-register-nonce\" name=\"woocommerce-register-nonce\" value=\"2d0943ba14\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/fi\/wp-json\/wp\/v2\/pages\/14640\" \/>      <br>\n      <button type=\"submit\" class=\"custom-btn slide-link-btn js-slide-url woocommerce-Button button\" name=\"register\"\n              value=\"Rekister\u00f6idy\">Rekister\u00f6idy<\/button>\n    <\/p>\n        \n  <\/form>\n<\/div>\n\n\n<script>\n  $('.woocommerce-form-register').on('submit', function (e) {\n    $('.form_field_with_errors').removeClass('form_field_with_errors');\n    e.preventDefault();\n    $.ajax({\n      content: this,\n      type: 'POST',\n      dataType: 'json',\n      url: ajax_obj.ajax_url,\n      data: {\n        'action': 'woocommerce_register_user', \/\/calls wp_ajax_nopriv_ajaxlogin\n        'reg_username': $(this).find('#reg_username').val(),\n        'reg_email': $(this).find('#reg_email').val(),\n        'reg_password': $(this).find('#reg_password').val(),\n        'reg_agree_terms': $(this).find('#reg_agree_terms:checked').length > 0 ? 1 : 0,\n        'reg_agree_newsletter': $(this).find('#reg_agree_newsletter:checked').length > 0 ? 1 : 0,\n        'woocommerce-register-nonce': $(this).find('#woocommerce-login-nonce').val()\n      },\n      success: function (data) {\n        if (\n          typeof data.loggedin != 'undefined'\n          && data.loggedin == true\n        ) {\n          location.href = data.redirect\n        }\n        if (\n          typeof data.register != 'undefined'\n          && typeof data.errors != 'undefined'\n          && data.register == false\n        ) {\n          $.each(data.errors, function (id, val) {\n            console.log($(this).find('#' + id));\n            $('#' + id).parent().addClass('form_field_with_errors')\n          })\n        }\n        if (\n          typeof data.register != 'undefined'\n          && typeof data.message != 'undefined'\n          && data.register == false\n        ) {\n          console.log(data)\n          var html = Object.values(data.errors).join('<br>');\n          if (data.message.length) {\n            $('.woocommerce-form-register').find('#form-login-error')\n              .removeClass('hidden')\n              .html(html)\n          } else {\n            $('.woocommerce-form-register').find('#form-login-error')\n              .addClass('hidden')\n          }\n        }\n      },\n      error: function (data) {\n        console.log(data)\n      }\n    });\n\n  });\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":6,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-14640","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Rekister\u00f6i k\u00e4ytt\u00e4j\u00e4 - UC Rent e-pood<\/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.ucrent.ee\/fi\/rekisteroi-kayttaja\" \/>\n<meta property=\"og:locale\" content=\"fi_FI\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rekister\u00f6i k\u00e4ytt\u00e4j\u00e4 - UC Rent e-pood\" \/>\n<meta property=\"og:url\" content=\"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja\" \/>\n<meta property=\"og:site_name\" content=\"UC Rent e-pood\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-24T10:24:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/shop.ucrent.ee\/wp-content\/uploads\/2020\/01\/Fb-share_uc.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"945\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja\",\"url\":\"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja\",\"name\":\"Rekister\u00f6i k\u00e4ytt\u00e4j\u00e4 - UC Rent e-pood\",\"isPartOf\":{\"@id\":\"https:\/\/shop.ucrent.ee\/#website\"},\"datePublished\":\"2020-02-06T08:52:35+00:00\",\"dateModified\":\"2020-03-24T10:24:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja#breadcrumb\"},\"inLanguage\":\"fi\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/shop.ucrent.ee\/fi\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rekister\u00f6i k\u00e4ytt\u00e4j\u00e4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/shop.ucrent.ee\/#website\",\"url\":\"https:\/\/shop.ucrent.ee\/\",\"name\":\"UC Rent e-pood\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/shop.ucrent.ee\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fi\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Rekister\u00f6i k\u00e4ytt\u00e4j\u00e4 - UC Rent e-pood","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.ucrent.ee\/fi\/rekisteroi-kayttaja","og_locale":"fi_FI","og_type":"article","og_title":"Rekister\u00f6i k\u00e4ytt\u00e4j\u00e4 - UC Rent e-pood","og_url":"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja","og_site_name":"UC Rent e-pood","article_modified_time":"2020-03-24T10:24:31+00:00","og_image":[{"width":1800,"height":945,"url":"https:\/\/shop.ucrent.ee\/wp-content\/uploads\/2020\/01\/Fb-share_uc.png","type":"image\/png"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja","url":"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja","name":"Rekister\u00f6i k\u00e4ytt\u00e4j\u00e4 - UC Rent e-pood","isPartOf":{"@id":"https:\/\/shop.ucrent.ee\/#website"},"datePublished":"2020-02-06T08:52:35+00:00","dateModified":"2020-03-24T10:24:31+00:00","breadcrumb":{"@id":"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja#breadcrumb"},"inLanguage":"fi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/shop.ucrent.ee\/fi\/rekisteroi-kayttaja#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/shop.ucrent.ee\/fi"},{"@type":"ListItem","position":2,"name":"Rekister\u00f6i k\u00e4ytt\u00e4j\u00e4"}]},{"@type":"WebSite","@id":"https:\/\/shop.ucrent.ee\/#website","url":"https:\/\/shop.ucrent.ee\/","name":"UC Rent e-pood","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/shop.ucrent.ee\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fi"}]}},"_links":{"self":[{"href":"https:\/\/shop.ucrent.ee\/fi\/wp-json\/wp\/v2\/pages\/14640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shop.ucrent.ee\/fi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shop.ucrent.ee\/fi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shop.ucrent.ee\/fi\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/shop.ucrent.ee\/fi\/wp-json\/wp\/v2\/comments?post=14640"}],"version-history":[{"count":2,"href":"https:\/\/shop.ucrent.ee\/fi\/wp-json\/wp\/v2\/pages\/14640\/revisions"}],"predecessor-version":[{"id":16548,"href":"https:\/\/shop.ucrent.ee\/fi\/wp-json\/wp\/v2\/pages\/14640\/revisions\/16548"}],"wp:attachment":[{"href":"https:\/\/shop.ucrent.ee\/fi\/wp-json\/wp\/v2\/media?parent=14640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}