Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Вывод модуля через ajax


Начиная с версии модуля 8.3 достаточно в настройках модуля включить опцию "Загружать модуль через AJAX".

Для более старых версий воспользуйтесь инструкцией ниже.

 

Вывод модуля (блока с городом)

Модуль и геосообщения можно загружать отдельным ajax-запросом, например, если у вас стоит модуль кэширования.
Вывод модуля:  

<div class="prmn-cmngr"></div>

Вместо

<div class="prmn-cmngr"><?= $prmn_cmngr ?></div>

Т.е. достаточно удалить <?= $prmn_cmngr ?> в файле, где вставлен код модуля.

 

 

Вывод геосообщения

<span class="prmn-cmngr-message" data-key="phone" data-default="8-800-111-11-11"></span>

    data-key - ключ геосообщения (обязательный)
    data-default - значение по-умолчанию (необязательный)

 


Comments

There are no comments to display.

×
×
  • 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.