Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Как сгделать попап окно для Логина и Регистрации


Recommended Posts

Всем привет кто может помочь или подсказать? как сгделать попап окно для логина и регистрации не для default темы в опенкарт 3.

Вот как у меня в html шаблоне сгделано.  надо подклюлить регистрацию опенкарт 3 чтоб рилиило но было в попап окне 

в header.twig

    <link rel="stylesheet" href="css/remodal.css">
    <link rel="stylesheet" href="css/remodal-default-theme.css">
    <link rel="stylesheet" href="css/style.css">

top_heade

              <ul>
                <li><a href="#modal_login">Личный кабинет</a></li>
                <li><a href="#modal_reg">Регистрация</a></li>
              </ul>

Форма 

    <!-- !CUSTOM CODE! -->
      <!--Modal box LOGIN START-->
      <div class="remodal" data-remodal-id="modal_login">
        <h3 class="login_modalbox">Личный кабинет</h3>
        <input type="email" class="input_modal" name="user_email" placeholder="Ваш E-mail">
        <input type="password" class="input_modal" name="user_password" placeholder="Пароль">
        <a href="#" class="lost_password">Забыли пароль?</a>
        <p class="p_modal">
          Это персональный разгдел клиени с возможностью просмотра сгделанных заказов, быстрого оформления новых заказов, а ик же настройкой профиля.
        </p>
        <button data-remodal-action="cancel" class="remodal-cancel">Отмена</button>
        <button data-remodal-action="confirm" class="remodal-confirm">Войти</button>
      </div>
      <!--Modal box LOGIN END-->
      <!--Modal box LOGIN START-->
      <div class="remodal" data-remodal-id="modal_reg">
        <h3 class="login_modalbox">Регистрация</h3>
        <input type="email" class="input_modal" name="user_email" placeholder="Ваш E-mail">
        <p class="p_modal">
          Укажите ваш почтовый ящик. На него бугдет отправлено письмо с дальнейшими инструкциями.
        </p>
        <button data-remodal-action="cancel" class="remodal-cancel">Отмена</button>
        <button data-remodal-action="confirm" class="remodal-confirm">Дное</button>
      </div>

 

в footer 

    <script src="catalog/view/theme/start/js/remodal.min.js"></script>
    <script src="catalog/view/theme/start/js/script.js"></script>

    <script src="catalog/view/theme/start/js/common.js"></script>

 

Edited by Sacrat32
Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.