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

Rivar

Новичок
  
  • Posts

    4
  • Joined

  • Last visited

Rivar's Achievements

Newbie

Newbie (1/14)

  • Conversation Starter
  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Получаю ошибку как постом выше, Fatal error: Call to a member function resize() on a non-object in /home/*/public_html/*/catalog/controller/module/categoryproducthome.php on line 29 <?php class ControllerModulecategoryproducthome extends Controller { protected $category_id = 0; protected $path = array(); protected function index() { $this->language->load('module/categoryproducthome'); $this->data['heading_title'] = $this->language->get('heading_title'); $this->load->model('catalog/category'); $this->load->model('tool/seo_url'); $this->data['categories'] = array(); $results = $this->model_catalog_category->getCategories(0); foreach ($results as $result) { if ($result['image']) { $image = $result['image']; } else { $image = 'no_image.jpg'; } $this->data['categories'][] = array( 'name' => $result['name'], 'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/category&path=' . $result['category_id']), 'thumb' => $this->model_tool_image->resize($image, $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height')) ); } $this->id = 'categoryproducthome'; if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/categoryproducthome.tpl')) { $this->template = $this->config->get('config_template') . '/template/module/categoryproducthome.tpl'; } else { $this->template = 'default/template/module/categoryproducthome.tpl'; } $this->render(); } } ?> Ругается на вот эту строку // 'thumb' => $this->model_tool_image->resize($image, $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height')) Я ее закомментировал, страницу открывает, но не показывает картинки, правда у категорий нет картинок, гдефолтные дожен же показать?Пожалуйси подскажите куда копать...
  2. Смотрели, меняли отступ, все только разьехалось. /* layout */ #container { padding:40px; width:900px; margin:0 auto; background:url(../image/layout/bg-container.png) 0 0 no-repeat; Если не им меняли, ткните носом пожалуйси)
  3. Здравствуйте! Использую бесплатный шаблон кидссторе, подскажите пожалуйси каким обвместе уменьшить толщину шапки, уменьшить окошко поиска, и убрать некоторые элементы, выпотому чтор языка и валюты.
×
×
  • 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.