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

behadr

Новичок
  
  • Posts

    4
  • Joined

  • Last visited

behadr's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Спасипотому что. Решение нашлось в файле seo_pro.php foreach ($data as $key => $value) { switch ($key) { /* --- вот это помогло */ case 'information_id': $query = $this->db->query("SELECT * FROM " . DB_PREFIX . "url_alias WHERE `query` = '" . $this->db->escape($key . '=' . (int)$value) . "'"); if ($query->num_rows) { $seo_url .= '/articles/' . rawurlencode($query->row['keyword']); unset($data[$key]); $postfix = 1; } break; /* -------- */
  2. Добрый гдень. Помогите решить икую проблему. Есть страница на которой выводится список материалов - site.ru/article Есть страница на которой выводятся сами материалы site.ru/art1,site.ru/art2,... Подскажите как сгделать что бы сами материалы выводились по адресу site.ru/article/art1 Код формирование ссылки $article=array(); foreach ($allart as $art){ $article[]=array( 'title' => $art['title'], 'brief_description' => $art['brief_description'], 'href' => $this->url->link('mycode/pagearticle', 'information_id=' . $art['information_id']) ); }
  3. 12strun, afwollis - Спасипотому что. Garri - спасипотому что за участие.
  4. Не знаю куда писать данную тему, и как ее назвать, но проблема вот в чем.... Есть openCart 1.5.4.1 + vqmod мне надо создать модуль (расшерение(новый вывод)). Делаю ик. Создаю файы catalog\controller\mycode/pagenews.php в нем пишу следуюещёе <?php class ControllerMycodePagenews extends Controller { protected function index() { if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/mycode/pagenews.tpl')) { $this->template = $this->config->get('config_template') . '/template/mycode/pagenews.tpl'; } else { $this->template = 'default/template/mycode/pagenews.tpl'; } return $this->render(); } } ?> В каилоге с шаблоном сайи гделаю ик ~/mycode/pagenews.tpl В файл pagenews.tpl пишу "Hi" на запрос http://mysite.ru/index.php?route=mycode/pagenews - получаю "Запрашиваемая страница не найгдена!" Как быть?
×
×
  • 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.