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

obli

Newbie
  
  • Posts

    10
  • Joined

  • Last visited

obli's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. не спс не настоко часто просто со временем забываеш, че где, и нафиг оно нужно, спс за подсказку не думал даж что для этого примочки есть))) а это то что доктор прописал мож еще кто подскажет куда лучше пихать там и там стайлы подключаются и просто интересно почему используются контролы продукта а не header.php сюдой \catalog\controller\product\category.php или сюдой \catalog\controller\product\product.php
  2. Нашел ошибка в config.php была (остался всеж вопрос как правильней подключить чтоб контрол сам выводил из $style <link rel="stylesheet" type="text/css" href="catalog/view/theme/greentea/stylesheet/stylesheet.css" /> <?php foreach ($styles as $style) { ?> <link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" /> <?php } ?>
  3. <link rel="stylesheet" type="text/css" href="catalog/view/theme/greentea/stylesheet/accordion.css" /> не настолько я нуб
  4. 1)объясните плз новичку как грамотно подключить свой css и js отдельным файлом , ибо все пихать в stylesheet.css не всегда есть гуд, по причинам наверно всем понятным. Раньше подключал все это дело в header.tpl и горе не знал но после переноса с сайта с хостинга на локальный сайт opencart перестал их видеть в header.tpl.
  5. блин сам магаз еще далек до запуска мож через неделя проблема то тривиальная мож кто добовлял пункт в админке который выводитт свой див не обязательно в header.tpl мож в другой tpl и у него была такая запара .
  6. да это там есть сделал копи паст навсякий ( и там кучу других дивов к которым стиль применяется <link rel="stylesheet" type="text/css" href="catalog/view/theme/greentea/stylesheet/stylesheet.css" /> то что не работает css #headcontacts{ position: absolute; top: 85px; right: 10px; background: url('../image/mobileme.png') no-repeat; padding-left: 55px; padding-bottom: 10px; font-size: 15px; color: #686868; z-index: 10; }
  7. нет стили не применяется в файле stylesheet.css находящемся (../catalog/view/theme/greentea/stylesheet) - прчем тут админка , не применятся кокректно к диву <div id="headcontacts"><?php echo $headcontacts; ?></div> который находится в файле который рвсположен header.tpl (../catalog/view/theme/greentea/template/common) ( хотя сообщение находящиееся в переменной $headcontacts выоводится )
  8. Делаю почти все как описано в http://moushe.ru/nashi-stati/web-dizajn-2/opencart-1-5-3-delaem-shablon-greentea-4-chast/ в файл setting.tpl (../admin/view/template/setting) и после этих строк (38-45): добовляем <tr> <td><?php echo $entry_headcontacts; ?></td> <td><textarea name="config_headcontacts" cols="40" rows="5"><?php echo $config_headcontacts; ?></textarea></td> </tr> 1.2. Откроем файл setting.php (../admin/language/russian/setting) и после этой строки (29): вставим это: $_['entry_headcontacts'] = 'Контакты магазина:'; и это if (isset($this->request->post['config_headcontacts'])) { $this->data['config_headcontacts'] = $this->request->post['config_headcontacts']; } else { $this->data['config_headcontacts'] = $this->config->get('config_headcontacts'); } потом это 2.1. Открываем файл header.php (../catalog/controller/common) и после этой строки (43): $this->data['text_home'] = $this->language->get('text_home'); вставляем эту: $this->data['headcontacts'] = nl2br($this->config->get('config_headcontacts')); ну и потом это 3.2. Откроем файл header.tpl (../catalog/view/theme/greentea/template/common) и вместо этой строки (49): вставим <div id="headcontacts"><?php echo $headcontacts; ?></div> Все замечательно новый пункт в админке появляется ток к нему не применяются стили в stylesheet.css (../catalog/view/theme/greentea/stylesheet) Может кто сталкивался черкните плз уроки хоть от 1.5.3 Opencart но помоему это то должно работать
Guest
×
  • 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.