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

В каком файле убрать подключение owl ?


 Share

Recommended Posts

в контроллере модуля слайдшоу нету, в исходнике топлит js, css
 

<?php
class ControllerExtensionModuleSlideshow extends Controller {
	public function index($setting) {
		static $module = 0;		

		$this->load->model('design/banner');
		$this->load->model('tool/image');

		$data['banners'] = array();

		$results = $this->model_design_banner->getBanner($setting['banner_id']);

		foreach ($results as $result) {
			if (is_file(DIR_IMAGE . $result['image'])) {
				$data['banners'][] = array(
					'title' => $result['title'],
					'link'  => $result['link'],
					'image' => $this->model_tool_image->resize($result['image'], $setting['width'], $setting['height'])
				);
			}
		}

		$data['module'] = $module++;

		return $this->load->view('extension/module/slideshow', $data);
	}
}

 

Link to comment
Share on other sites


8 минут назад, private сказал:

Скопируй папку с темой в пхпшторм и поиском по файлам пройдись. И вуаля, покажет в каком файле лежит.

 

при чем тут тема?
он не через тему подключается

Link to comment
Share on other sites


1 минуту назад, Andrey174 сказал:

Opencart 2.3

catalog/controller/extension/module/slideshow.php

 

        $this->document->addStyle('catalog/view/javascript/jquery/owl-carousel/owl.carousel.css');
        $this->document->addScript('catalog/view/javascript/jquery/owl-carousel/owl.carousel.min.js');

 

<?php
class ControllerExtensionModuleSlideshow extends Controller {
	public function index($setting) {
		static $module = 0;		

		$this->load->model('design/banner');
		$this->load->model('tool/image');

		$this->document->addStyle('catalog/view/javascript/jquery/owl-carousel/owl.carousel.css');
		$this->document->addScript('catalog/view/javascript/jquery/owl-carousel/owl.carousel.min.js');

		$data['banners'] = array();

		$results = $this->model_design_banner->getBanner($setting['banner_id']);

		foreach ($results as $result) {
			if (is_file(DIR_IMAGE . $result['image'])) {
				$data['banners'][] = array(
					'title' => $result['title'],
					'link'  => $result['link'],
					'image' => $this->model_tool_image->resize($result['image'], $setting['width'], $setting['height'])
				);
			}
		}

		$data['module'] = $module++;

		return $this->load->view('extension/module/slideshow', $data);
	}
}

 


блин. нет икого у меня
шо за трынгдец
вот контроллер
catalog/controlle/extensions/module/slideshow.php
 

Спойлер
<?php
class ControllerExtensionModuleSlideshow extends Controller {
	public function index($setting) {
		static $module = 0;		

		$this->load->model('design/banner');
		$this->load->model('tool/image');

		$data['banners'] = array();

		$results = $this->model_design_banner->getBanner($setting['banner_id']);

		foreach ($results as $result) {
			if (is_file(DIR_IMAGE . $result['image'])) {
				$data['banners'][] = array(
					'title' => $result['title'],
					'link'  => $result['link'],
					'image' => $this->model_tool_image->resize($result['image'], $setting['width'], $setting['height'])
				);
			}
		}

		$data['module'] = $module++;

		return $this->load->view('extension/module/slideshow', $data);
	}
}

 


в tpl ик же нету
а в исходнике в head есть js,css от owl

Link to comment
Share on other sites


5 минут назад, emain сказал:

блин. нет икого у меня
шо за трынгдец

ну по умолчанию оно есть. Если у вас нет, зналит уже изменено кем то. Как вам посоветовали в первом ответе - скачайте файлы со своего сервера и поиском поищите в них 

Link to comment
Share on other sites

Нашел
в обещём кому интересно
есть икой прекрасный модуль
Всплывающая корзина с заменой кнопки "Купить" v1.6.1
вот он и подтягивал owl-carousel
catalog/controller/extensions/module/popupcart.php
строка 51

Edited by emain
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.