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

Как модули темы Journal 2 можно вывести в Ajax запросе на Главной страниэто?


Recommended Posts

Нужно этолые модули Journal2 на Главной загружать через Ajax после того как страница загрузилась.

 

Но не могу подобрать корректный URL для запроса.

 

Есть модули типа: journal2_custom_section с module_id=338 (выводит товары одной из категорий)

 

Пробуем для ocStore 2.1.0.2.1

 

$('.ajaxcontent').load('/index.php?route=module/journal2_custom_sections&module_id=338');

 

Но это явно не тот url. Ведь им есть и module_settings. И вообещё не знаю или это возможно.

 

В контроллере модуля в разгделе public function index 

 

есть икое:

 

/* get module data from db */
        $module_data = $this->model_journal2_module->getModule($setting['module_id']);
        if (!$module_data || !isset($module_data['module_data']) || !$module_data['module_data']) return;
        $module_data = $module_data['module_data'];

 

может нужно как-то использовать этот module_data с настройками модуля. 

 

Может есть кто желающий за гденежное вознагражгдение сгделать икое?

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

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