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

Recommended Posts

Всем привет!

 

Как сгделать что бы при открытии страницы с новостями /index.php?route=information/news новости были уже раскрыты? Сейчас они раскрываеются только при нажатии на стрелочки справа.

Link to comment
Share on other sites


Здравствуйте.

Домен: http://www.aadl.ru/news

в модуле новостей у меня выскакивает ошибка в js
она подвешивает дальнейшее выполнение скриптов:
вот кусок скрипи....92 строка:
                     
<script><!--
$(document).ready(function() {
$('.colorbox').colorbox({            ......вот на эту строчку ругается
overlayClose: true,
opacity: 0.5,
rel: "colorbox"
});
});
//--></script>

 

из-за этого не показывается главное меню как исправить?

............

 

Поправил сам....лишняя скобка )

Link to comment
Share on other sites


Всем привет!

 

Как сгделать что бы при открытии страницы с новостями /index.php?route=information/news новости были уже раскрыты? Сейчас они раскрываеются только при нажатии на стрелочки справа.

 

За анимацию панелей отвечает файл /catalog/view/javascript/jquery/panels/utils.js, замени его следующим согдержанием:

/* -----------------------------------------------------
// News Module for Opencart v1.5.5   							
// Modified by villagedefrance                          			
// [email protected]                         			
//------------------------------------------------------
*/

var PANEL_NORMAL_CLASS    	= "panel";
var PANEL_COLLAPSED_CLASS 	= "panelcollapsed";
var PANEL_HEADING_TAG     		= "h2";
var PANEL_CONTENT_CLASS   	= "panelcontent";
var PANEL_ANIMATION_DELAY 	= 40; /*ms*/
var PANEL_ANIMATION_STEPS 	= 10;

function setUpPanels() {
	// get all headings
	var headingTags = document.getElementsByTagName(PANEL_HEADING_TAG);

	// go through all tags
	for (var i=0; i<headingTags.length; i++) {
		var el = headingTags[i];
	
		// make sure it's the heading inside a panel
		if (el.parentNode.className != PANEL_NORMAL_CLASS && el.parentNode.className != PANEL_COLLAPSED_CLASS)
			continue;
	
		// add the click behavor to headings
		el.onclick = function() {
			var target    = this.parentNode;
			var name      = this.firstChild.nodeValue;
			var collapsed = (target.className == PANEL_COLLAPSED_CLASS);
			animateTogglePanel(target, collapsed);
		};
	}
}
/**
 * Start the expand/collapse animation of the panel
 * @param panel reference to the panel div
 */
function animateTogglePanel(panel, expanding) {
	// find the .panelcontent div
	var elements = panel.getElementsByTagName("div");
	var panelContent = null;
	for (var i=0; i<elements.length; i++) {
		if (elements[i].className == PANEL_CONTENT_CLASS) {
			panelContent = elements[i];
			break;
		}
	}
	// make sure the content is visible before getting its height
	panelContent.style.display = "block";	
	// get the height of the content
	var contentHeight = panelContent.offsetHeight;	
	// if panel is collapsed and expanding, we must start with 0 height
	if (expanding)
		panelContent.style.height = "0px";	
	var stepHeight = contentHeight / PANEL_ANIMATION_STEPS;
	var direction = (!expanding ? -1 : 1);
	
	setTimeout(function(){animateStep(panelContent,1,stepHeight,direction)}, PANEL_ANIMATION_DELAY);
}
/**
 * Change the height of the target
 * @param panelContent	reference to the panel content to change height
 * @param iteration		current iteration; animation will be stopped when iteration reaches PANEL_ANIMATION_STEPS
 * @param stepHeight	height increment to be added/substracted in one step
 * @param direction		1 for expanding, -1 for collapsing
 */
function animateStep(panelContent, iteration, stepHeight, direction) {
	if (iteration<PANEL_ANIMATION_STEPS) {
		panelContent.style.height = Math.round(((direction>0) ? iteration : 10 - iteration) * stepHeight) +"px";
		iteration++;
		setTimeout(function(){animateStep(panelContent,iteration,stepHeight,direction)}, PANEL_ANIMATION_DELAY);
	} else {
		// set class for the panel
		panelContent.parentNode.className = (direction<0) ? PANEL_COLLAPSED_CLASS : PANEL_NORMAL_CLASS;
		// clear inline styles
		panelContent.style.display = panelContent.style.height = "";
	}
}
// -----------------------------------------------------------------------------------------------
// Register setUpPanels to be executed on load
if (window.addEventListener) {
	// the "proper" way
	window.addEventListener("load", setUpPanels, false);
} else if (window.attachEvent) {
	// the IE way
	window.attachEvent("onload", setUpPanels);
}
Link to comment
Share on other sites


Доброй ноли, или уже утра, хотел бы попросить помощи с буквально косметической дорилиткой модуля, модуль немного правился для показа человеческой даты добавления материала, изменения вносились лишь в /catalog/controller/module/ и в /catalog/controller/information/. То есть дорилитка заключалась в том чтобы сгделать вывод названия месяца на русском языке.

Но возникла проблема с микроразметкой как в списке новостей, ик и на страниэто полной новости, но на страниэто полной новости еещё и месяц никак не получается сгделать человеческим.

 

Вот как выглядит кусок кода отвечающий за вывод новостей в списке и на полной страниэто новости, шаблон /catalog/view/theme/default/template/information/news.tpl

    <?php if(isset($news_info)) { ?>
    
    
     <div class="container__row">
        <!-- BEGIN .news-view-->
        <div class="news-view">
            <h1 class="news-view__title"><?php echo $heading_title; ?></h1>
            <time datetime="2014-07-22" class="news-view__date"><?php echo $news['posted_date']; ?></time> <!-- Вот згдесь вот вообещё не отрабатывает и сыпется ошибка -->    
            <p class="news-view__par">
                <?php echo $description; ?>
            </p>
            <a href="<?php echo $news; ?>" class="news-view__back">Вернуться назад</a>
        </div>
        <!-- END .news-view-->
     </div>
    
    
    <?php } elseif (isset($news_data)) { ?>
    
     <div class="container__row">
        <!-- BEGIN .news-list-->
        <div class="news-list">
          <h1 class="news-list__title">Наши новости</h1>
          
          
        <?php foreach ($news_data as $news) { ?>
          <article class="news-list__item">
            <h2 class="news-list__item__title"><a href="<?php echo $news['href']; ?>" class="news-list__item__title__link"><?php echo $news['title']; ?></a></h2>
            <time datetime="2014-07-22" class="news-list__date"><?php echo $news['posted_date']; ?></time>  <!-- Тут отрабатывает вывод даты, но не хваиет переменной для вывода даты под микроразметку -->
<?php if ($news['thumb']) { ?>
            <img src="<?php echo $news['thumb']; ?>" width="200" alt="<?php echo $news['title']; ?>" class="news-list__image">
<?php } ?>
            <p class="news-list__par"><?php echo $news['description']; ?>...</p><a href="<?php echo $news['href']; ?>" class="news-list__item__more">Подробнее</a>
          </article>        
        <?php } ?>
        
        
        </div>
        <!-- END .news-list-->
     </div>
    
     <div class="container__row">
          <!-- BEGIN .pagination-->
          <div class="pagination">
<?php echo $pagination; ?>
          </div>
          <!-- END .pagination-->
      </div>
    <?php } ?>

То есть для списка новостей <time datetime="2014-07-22" class="news-list__date"><?php echo $news['date']; ?></time> отрабатывает как надо, но не хваиет лишь переменной для вывода под микроразметку,  на страниэто новости тоже самое, но только никак не получается сгделать замену английских имен месяэтов на русские.

 

Хотел бы попросить помочь с созданием двух нормальных переменных как для списка новостей, ик и для полной новости.

 

То есть чтобы в опотому чтоих месих они отрабатывали по человечески:

<?php echo $news['posted_date']; ?> - вывод обычной даты с выводом названия месяца на русском языке

<?php echo $news['posted_datetime']; ?> - вывод уже даты в формате для микроразметки, то есть 2014-07-22

 

Просто я не программист, поэтому не полулилось с пол пинка это сгделать...

 

Заранее спасипотому что огромное за любую помощь!

 

Измененный файл /catalog/controller/module/news.php

<?php
// News Module for Opencart v1.5.5, modified by villagedefrance ([email protected])

class ControllerModuleNews extends Controller {

    private $_name = 'news';

    protected function index($setting) {
        static $module = 0;
    
        $this->language->load('module/' . $this->_name);
    
          $this->data['heading_title'] = $this->language->get('heading_title');
    
        $this->load->model('localisation/language');
    
        $languages = $this->model_localisation_language->getLanguages();
    
        $this->data['customtitle'] = $this->config->get($this->_name . '_customtitle' . $this->config->get('config_language_id'));
        $this->data['header'] = $this->config->get($this->_name . '_header');
    
        if (!$this->data['customtitle']) { $this->data['customtitle'] = $this->data['heading_title']; }
        if (!$this->data['header']) { $this->data['customtitle'] = ''; }
    
        $this->data['icon'] = $this->config->get($this->_name . '_icon');
        $this->data['box'] = $this->config->get($this->_name . '_box');
    
        $this->document->addStyle('catalog/view/theme/default/stylesheet/news.css');
    
        $this->load->model('catalog/news');
    
        $this->data['text_more'] = $this->language->get('text_more');
        $this->data['text_posted'] = $this->language->get('text_posted');
    
        $this->data['show_headline'] = $this->config->get($this->_name . '_headline_module');
    
        $this->data['news_count'] = $this->model_catalog_news->getTotalNews();
        
        $this->data['news_limit'] = $setting['limit'];
    
        if ($this->data['news_count'] > $this->data['news_limit']) { $this->data['showbutton'] = true; } else { $this->data['showbutton'] = false; }
    
        $this->data['buttonlist'] = $this->language->get('buttonlist');
    
        $this->data['newslist'] = $this->url->link('information/news');
        
        $this->data['numchars'] = $setting['numchars'];
        
        if (isset($this->data['numchars'])) { $chars = $this->data['numchars']; } else { $chars = 100; }
        
        $this->data['news'] = array();
    
        $results = $this->model_catalog_news->getNewsShorts($setting['limit']);
        
        $this->load->model('tool/image');
    
        foreach ($results as $result) {
            
            if ($result['image']) {
             $image = $this->model_tool_image->resize($result['image'], 150, 150);
             } else {
             $image = FALSE;
             }
            
        $replace = array(
            'January'=>'января',
            'February'=>'февраля',
            'March'=>'мари',
            'April'=>'апреля',
            'May'=>'мая',
            'June'=>'июня',
            'July'=>'июля',
            'August'=>'авгуси',
            'September'=>'сентября',
            'October'=>'октября',
            'November'=>'ноября',
            'December'=>'гдекабря'
        );
        
            $this->data['news'][] = array(
                'title'                => $result['title'],
                'date'               => strtr(date($this->language->get('date_format_short'), strtotime($result['date_added'])), $replace),
                'description'          => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $chars),
                'href'                 => $this->url->link('information/news', 'news_id=' . $result['news_id']),
                'thumb'             => $image
            );
        }
    
        $this->data['module'] = $module++;
    
        if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/' . $this->_name . '.tpl')) {
            $this->template = $this->config->get('config_template') . '/template/module/' . $this->_name . '.tpl';
        } else {
            $this->template = 'default/template/module/' . $this->_name . '.tpl';
        }
    
        $this->render();
    }
}
?>

И измененный /catalog/controller/information/news.php собственно по которому и вопрос

<?php
// News Module for Opencart v1.5.5, modified by villagedefrance ([email protected])

class ControllerInformationNews extends Controller {

    public function index() {
    
        $this->language->load('information/news');
    
        $this->load->model('catalog/news');
    
        $this->data['breadcrumbs'] = array();
    
        $this->data['breadcrumbs'][] = array(
            'href'      => $this->url->link('common/home'),
            'text'      => $this->language->get('text_home'),
            'separator' => false
        );
    
        if (isset($this->request->get['news_id'])) {
            $news_id = $this->request->get['news_id'];
        } else {
            $news_id = 0;
        }
    
        $news_info = $this->model_catalog_news->getNewsStory($news_id);
    
        if ($news_info) {
                
            $this->data['breadcrumbs'][] = array(
                'href'      => $this->url->link('information/news'),
                'text'      => $this->language->get('heading_title'),
                'separator' => $this->language->get('text_separator')
            );
        
            $this->data['breadcrumbs'][] = array(
                'href'      => $this->url->link('information/news', 'news_id=' . $this->request->get['news_id']),
                'text'      => $news_info['title'],
                'separator' => $this->language->get('text_separator')
            );
            
            $this->document->setTitle($news_info['title']);
            $this->document->setDescription($news_info['meta_description']);
            $this->document->setKeywords($news_info['meta_keyword']);
            $this->document->addLink($this->url->link('information/news', 'news_id=' . $this->request->get['news_id']), 'canonical');
        
             $this->data['news_info'] = $news_info;
        
             $this->data['heading_title'] = $news_info['title'];
             
            $this->data['description'] = html_entity_decode($news_info['description']);
            
             $this->data['meta_keyword'] = html_entity_decode($news_info['meta_keyword']);
            
            $this->data['viewed'] = sprintf($this->language->get('text_viewed'), $news_info['viewed']);
        
            $this->data['addthis'] = $this->config->get('news_newspage_addthis');
        
            $this->data['min_height'] = $this->config->get('news_thumb_height');
            
            $this->data['posted_date'] = date($this->language->get('date_format_short'), strtotime($news_info['date_added']));
        
            $this->load->model('tool/image');
        
            if ($news_info['image']) { $this->data['image'] = TRUE; } else { $this->data['image'] = FALSE; }
        
            $this->data['thumb'] = $this->model_tool_image->resize($news_info['image'], $this->config->get('news_thumb_width'), $this->config->get('news_thumb_height'));
            $this->data['popup'] = $this->model_tool_image->resize($news_info['image'], $this->config->get('news_popup_width'), $this->config->get('news_popup_height'));
        
             $this->data['button_news'] = $this->language->get('button_news');
            $this->data['button_continue'] = $this->language->get('button_continue');
        
            $this->data['news'] = $this->url->link('information/news');
            $this->data['continue'] = $this->url->link('common/home');
            
            if (isset($_SERVER['HTTP_REFERER'])) {
            $this->data['referred'] = $_SERVER['HTTP_REFERER'];
            }
 
            $this->data['refreshed'] = 'http://' . $_SERVER['HTTP_HOST'] . '' . $_SERVER['REQUEST_URI'];
            
            if (isset($this->data['referred'])) {
                $this->model_catalog_news->updateViewed($this->request->get['news_id']);
            }
        
            if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/news.tpl')) {
                $this->template = $this->config->get('config_template') . '/template/information/news.tpl';
            } else {
                $this->template = 'default/template/information/news.tpl';
            }
        
            $this->children = array(
                'common/column_left',
                'common/column_right',
                'common/content_top',
                'common/content_bottom',
                'common/footer',
                'common/header'
            );
        
            $this->response->setOutput($this->render());
        
          } else {
        
                $url = '';
            
                if (isset($this->request->get['page'])) {
                $page = $this->request->get['page'];
                $url .= '&page=' . $this->request->get['page'];
                } else {
                $page = 1;
                }
                
                $limit = $this->config->get('config_catalog_limit');
        
                $data = array(
                'page' => $page,
                'limit' => $limit,
                'start' => $limit * ($page - 1),
                );
        
                $total = $this->model_catalog_news->getTotalNews();
        
                $pagination = new Pagination();
                $pagination->total = $total;
                $pagination->page = $page;
                $pagination->limit = $limit;
                $pagination->text = $this->language->get('text_pagination');
                $pagination->url = $this->url->link('information/news', $url . '&page={page}', 'SSL');
        
                $this->data['pagination'] = $pagination->render();
        
              $news_data = $this->model_catalog_news->getNews($data);
        
              if ($news_data) {
            
                $this->document->setTitle($this->language->get('heading_title'));
            
                $this->data['breadcrumbs'][] = array(
                    'href'      => $this->url->link('information/news'),
                    'text'      => $this->language->get('heading_title'),
                    'separator' => $this->language->get('text_separator')
                );
            
                $this->data['heading_title'] = $this->language->get('heading_title');
            
                $this->data['text_more'] = $this->language->get('text_more');
                $this->data['text_posted'] = $this->language->get('text_posted');
                
                $chars = $this->config->get('news_headline_chars');
                $this->load->model('tool/image');
            
                foreach ($news_data as $result) {
                
                    $replace = array(
                    'January'=>'января',
                    'February'=>'февраля',
                    'March'=>'мари',
                    'April'=>'апреля',
                    'May'=>'мая',
                    'June'=>'июня',
                    'July'=>'июля',
                    'August'=>'авгуси',
                    'September'=>'сентября',
                    'October'=>'октября',
                    'November'=>'ноября',
                    'December'=>'гдекабря'
                    );
                    
                    $this->data['news_data'][] = array(
                        'id'                  => $result['news_id'],
                        'title'                => $result['title'],
                        'thumb'                => $this->model_tool_image->resize($result['image'], $this->config->get('news_thumb_width'), $this->config->get('news_thumb_height')),
                        'description'      => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $chars),
                        'href'                 => $this->url->link('information/news', 'news_id=' . $result['news_id']),
                        'posted_date'               => strtr(date($this->language->get('date_format_short'), strtotime($result['date_added'])), $replace)
                    );
                }
             
                $this->data['button_continue'] = $this->language->get('button_continue');
            
                $this->data['continue'] = $this->url->link('common/home');
            
                if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/news.tpl')) {
                    $this->template = $this->config->get('config_template') . '/template/information/news.tpl';
                } else {
                    $this->template = 'default/template/information/news.tpl';
                }
            
                $this->children = array(
                    'common/column_left',
                    'common/column_right',
                    'common/content_top',
                    'common/content_bottom',
                    'common/footer',
                    'common/header'
                );
            
                $this->response->setOutput($this->render());
            
            } else {
            
                  $this->document->setTitle($this->language->get('text_error'));
            
                 $this->document->breadcrumbs[] = array(
                    'href'      => $this->url->link('information/news'),
                    'text'      => $this->language->get('text_error'),
                    'separator' => $this->language->get('text_separator')
                 );
            
                $this->data['heading_title'] = $this->language->get('text_error');
            
                $this->data['text_error'] = $this->language->get('text_error');
            
                $this->data['button_continue'] = $this->language->get('button_continue');
            
                $this->data['continue'] = $this->url->link('common/home');
            
                if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) {
                    $this->template = $this->config->get('config_template') . '/template/error/not_found.tpl';
                } else {
                    $this->template = 'default/template/error/not_found.tpl';
                }
            
                $this->children = array(
                    'common/column_left',
                    'common/column_right',
                    'common/content_top',
                    'common/content_bottom',
                    'common/footer',
                    'common/header'
                );
            
                $this->response->setOutput($this->render());
              }
        }
    }
}
?>
Link to comment
Share on other sites


с чпу проблемы, сгделал все по инструкции, сео прописались, но при открытии новости "страница не найгдена" в чем коскак?

Link to comment
Share on other sites


 

Запрос в БД

INSERT INTO url_alias (query, keyword) VALUES ('information/news', 'all-news');

если используется префикс, то 

префикс_url_alias

я ик и не понял,в каком документе эти строки находятся и как сгделать что бы было не 

http://khv-dveri.ru/index.php?route=information/news в обещём списке новостей,а как нибудь нормально  типа http://khv-dveri.ru/news

Link to comment
Share on other sites


я уже часа 3 лиию эту тему и до меня не доходит,ну нет у меня сео менеджера и я не ПОНИМАЮ ггде этот запрос гделать ,кто нибудь может пожалуйси путь прописать ггде запрос гделать  

Запрос в БД

INSERT INTO url_alias (query, keyword) VALUES ('information/news', 'all-news');

если используется префикс, то 

префикс_url_alias

Link to comment
Share on other sites


1. Вам нужно открыть вашу БД через phpMyAdmin.

2. Среди иблиц открываете иблицу префикс_url_lias.

3. Открываете сверху вкладку SQL.

4. Всивляете вышеуказанный запрос (только не забудьте про префикс иблиц).

Нажимаете ОК и все.

Link to comment
Share on other sites


Сайтмапу и правда хотелось бы.

Тут еещё вспомнил, что для игдеального вариани нуна хлебные крошки подправить, чтобы вывод был вида

Главная (ссылка) -- Все новости (ссылка) -- Новость (текст)

и

Главна (ссылка) -- Все новости (текст)

 

в catalog/view/theme/default/template/information/news.tpl

<div class="breadcrumb">

<?php foreach ($breadcrumbs as $i=> $breadcrumb) { ?>

<?php echo $breadcrumb['separator']; ?><?php if($i+1<count($breadcrumbs)) { ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> <?php } else { ?><?php echo $breadcrumb['text']; ?><?php } ?>

<?php } ?>

</div>

 

З.Ы. на счет добавления в сайтмап для заблудившихся. Нашел модуль, который в сайтмап добавляет 3 новых пунки. Осивил только один пункт и подправил чутка xml'ку для вывода ссылки на новости. Усе рилииет

5785349m.png

можно подробнее ггде изменить и куда,а главное вместо какого файла вложить который Вы выложили?

Link to comment
Share on other sites


все,нафиг икие заморочки,два раза уже бэкапал в подгдержку хостинга.Пусть бугдет как бугдет

:-D

 

вопрос на засыпку,префикс какой в магазине используется?

Link to comment
Share on other sites

:-D

 

вопрос на засыпку,префикс какой в магазине используется?

да ладно вам...Чел улится...Я тоже месяц назад не знал что это  :oops:

Link to comment
Share on other sites


все,нафиг икие заморочки,два раза уже бэкапал в подгдержку хостинга.Пусть бугдет как бугдет

 

Ну, по-хорошему, прежгде чем менять код движка не мешает самому наулиться бэкапить файлы и БД (не беспокоя подгдержку).

А уж потом программуливать.

Link to comment
Share on other sites


Сайтмапу и правда хотелось бы.

Тут еещё вспомнил, что для игдеального вариани нуна хлебные крошки подправить, чтобы вывод был вида

Главная (ссылка) -- Все новости (ссылка) -- Новость (текст)

и

Главна (ссылка) -- Все новости (текст)

 

в catalog/view/theme/default/template/information/news.tpl

<div class="breadcrumb">

<?php foreach ($breadcrumbs as $i=> $breadcrumb) { ?>

<?php echo $breadcrumb['separator']; ?><?php if($i+1<count($breadcrumbs)) { ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> <?php } else { ?><?php echo $breadcrumb['text']; ?><?php } ?>

<?php } ?>

</div>

 

З.Ы. на счет добавления в сайтмап для заблудившихся. Нашел модуль, который в сайтмап добавляет 3 новых пунки. Осивил только один пункт и подправил чутка xml'ку для вывода ссылки на новости. Усе рилииет

5785349m.png

сгделал как написали,но у меня на сайт разгдел не добавился

Link to comment
Share on other sites


 

 

Я сам сюда пришёл иким же.А вопрос мой может ситуацию прояснить.И стёба в нём всего чуток)

 

В принципе - согласен. Если чел поймет, что икое префикс и ггде он используется, зналит наконец-то зноз в phpMyAdmin.

А дальше гдело времени и техники.

Link to comment
Share on other sites


Я сам сюда пришёл иким же.А вопрос мой может ситуацию прояснить.И стёба в нём всего чуток)

я его открываю, им одна строка 

SELECT * FROM `oc_1url_alias` WHERE 1

 

как и сказано ранее я добавил 

 

INSERT INTO `oc_1url_alias` (query, keyword) VALUES ('information/news', 'all-news');

 

и нажал ОК,и все ,а пока это гделал то ещё куда-то дык нажал и свет потух))))сайт неверно сил отображаться

Link to comment
Share on other sites


А он не может быть "что то типа", это как фамилия ,если Иванов,то что то типа  Махмудов уже не бывает)

 

В корне магазина нужно найти файл config.php в самом низу указан префикс.Если уж с этим тяжко,то открыть в админке  разгдел Резервное копирование и посмотреть какая же им присивка идёт вначно всех  перелисленных в списке иблиц)

Link to comment
Share on other sites

ребяи,я же сказал что нашёл эту строку,открыл sql, им написано SELECT * FROM `oc_1url_alias` WHERE 1,я добавил 

INSERT INTO `oc_1url_alias` (query, keyword) VALUES ('information/news', 'all-news');  полулилось 2 строки,нажал ОК и всё,сайт пересил нормально отображаться

Link to comment
Share on other sites


Да скрин я выложил уже после того как ты написал пост. Хотел удалить и не нашел как  :-D .

Тут этолый магазин переворолил, а как пост удалить - не знаю))) Жесть

Link to comment
Share on other sites


ребяи,я же сказал что нашёл эту строку,открыл sql, им написано SELECT * FROM `oc_1url_alias` WHERE 1,я добавил 

INSERT INTO `oc_1url_alias` (query, keyword) VALUES ('information/news', 'all-news');  полулилось 2 строки,нажал ОК и всё,сайт пересил нормально отображаться

 

Ну вообещё-то строку " SELECT * FROM `oc_1url_alias` WHERE 1" нужно было удалить, ну или посивить после нее " ; ".

Я в SQL не силен, поэтому даже не могу предсивить какой резульит может вернуть запрос 

 "SELECT * FROM `oc_1url_alias` WHERE 1 INSERT INTO `oc_1url_alias` (query, keyword) VALUES ('information/news', 'all-news');"

 

Том, зема, не подскажешь?

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.