From 24d288c2d02ca0791cffc267499edd1cfa61f9b0 Mon Sep 17 00:00:00 2001 From: Diatrex Date: Thu, 6 Feb 2020 16:15:48 +0300 Subject: [PATCH] #707 [Store] If store is installed show store register --- .../base-theme/resources/js/phonefield.js | 16 +++++++++ .../base-theme/resources/lang/en/field.php | 8 +++++ .../addons/anomaly/users-module/register.twig | 34 ++++++++++--------- .../resources/views/partials/navigation.twig | 2 +- 4 files changed, 43 insertions(+), 17 deletions(-) diff --git a/addons/default/visiosoft/base-theme/resources/js/phonefield.js b/addons/default/visiosoft/base-theme/resources/js/phonefield.js index 4dbe2ba3a..9c2341a8d 100644 --- a/addons/default/visiosoft/base-theme/resources/js/phonefield.js +++ b/addons/default/visiosoft/base-theme/resources/js/phonefield.js @@ -1,3 +1,4 @@ +// Personal Registration var inputQuery = document.querySelector("input[name=\"phone\"]"); var iti = intlTelInput(inputQuery, { hiddenInput: "full_phone", @@ -11,3 +12,18 @@ var iti = intlTelInput(inputQuery, { }); } }); + +// Store registration +var storeInputQuery = document.querySelector(".store-phone input"); +var storeIti = intlTelInput(storeInputQuery, { + hiddenInput: "full_phone", + class:"form-control", + initialCountry: "auto", + geoIpLookup: function (success, failure) { + $.get("https://ipinfo.io", function () { + }, "jsonp").always(function (resp) { + var countryCode = (resp && resp.country) ? resp.country : ""; + success(countryCode); + }); + } +}); \ No newline at end of file diff --git a/addons/default/visiosoft/base-theme/resources/lang/en/field.php b/addons/default/visiosoft/base-theme/resources/lang/en/field.php index 3a4e13ec3..4e1fb6920 100644 --- a/addons/default/visiosoft/base-theme/resources/lang/en/field.php +++ b/addons/default/visiosoft/base-theme/resources/lang/en/field.php @@ -22,4 +22,12 @@ return [ 'forgot_password' => 'I Forgot My Password', 'email_or_phone_number' => 'Email Address or Phone Number', 'phone_number' => 'Phone Number', + + // Registration instructions + 'personal_registration_header' => 'What Are Individual Membership Advantages?', + 'personal_registration_body' => 'Sell and rent your home, car, sell your unused items, get new ones.', + 'personal_registration_list_1' => 'Post a free ad,', + 'personal_registration_list_2' => 'Add the ads you are interested in, follow the price changes after adding them to your favorites, create favorite searches that meet your criteria,', + 'personal_registration_list_3' => 'Send messages to the ad owners on the site.', + 'register_information_note' => 'The information on this page is taken for ' . env('APPLICATION_DOMAIN') . ' membership. You can find detailed information about the protection of personal data here.', ]; \ No newline at end of file diff --git a/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/users-module/register.twig b/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/users-module/register.twig index 9d0393b45..485cb11e1 100644 --- a/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/users-module/register.twig +++ b/addons/default/visiosoft/base-theme/resources/views/addons/anomaly/users-module/register.twig @@ -1,7 +1,7 @@ {% extends "theme::layouts/default" %} {% block content %} -

Register

+

Register

@@ -100,36 +100,38 @@ + {{ form_close() }}
-
+ + {{ addBlock('register/corporate-register')|raw }} +
-
+ +
-

Bireysel Üyelik Avantajları Neler?

+

+ {{ trans('visiosoft.theme.base::field.personal_registration_header') }} +

- Evinizi, arabanızı satıp kiralayın, - kullanmadığınız eşyalarınızı satın, - yenilerini alın. + {{ trans('visiosoft.theme.base::field.personal_registration_body') }}
    -
  • Ücretsiz ilan verin,
  • -
  • İlgilendiğiniz ilanları favorilere ekleyin, - favorilere ekledikten sonraki fiyat - değişimlerini takip edin, kriterlerinize - uygun favori aramalar oluşturun, -
  • -
  • İlan sahipleri ile site içi mesajlaşın.
  • +
  • {{ trans('visiosoft.theme.base::field.personal_registration_list_1') }}
  • +
  • {{ trans('visiosoft.theme.base::field.personal_registration_list_2') }}
  • +
  • {{ trans('visiosoft.theme.base::field.personal_registration_list_3') }}
+ + {{ addBlock('register/instructions')|raw }} +
- Bu sayfadaki bilgiler sahibinden.com üyeliği için alınmaktadır. - Kişisel verilerin korunması hakkında detaylı bilgiye buradan ulaşabilirsiniz. + {{ trans('visiosoft.theme.base::field.register_information_note') }}
diff --git a/addons/default/visiosoft/base-theme/resources/views/partials/navigation.twig b/addons/default/visiosoft/base-theme/resources/views/partials/navigation.twig index c3eb3190c..168d5248c 100644 --- a/addons/default/visiosoft/base-theme/resources/views/partials/navigation.twig +++ b/addons/default/visiosoft/base-theme/resources/views/partials/navigation.twig @@ -34,7 +34,7 @@ {% endif %}