-
Публікації
11 658 -
З нами
-
Відвідування
Тип публікації
Профілі
Форум
Маркетплейс
Статті
FAQ
Наші новини
Магазин
Блоги
module__dplus_manager
Повідомлення, опубліковані користувачем afwollis
-
-
удаляете все заказы в админке.
потом делаете в БД
ALTER TABLE `order` AUTO_INCREMENT =1;
если у вас есть префиксы таблиц - учитывайте их. -
как оно у вас вобще запустилось - ocStore_0.2.0 с базой от ocStore_0.1.7 ?
-
так - не?
Redirect 301 /index.php?route=product/product&product_id=48 http://поддомен.имясайта.ru/
-
1. задавать на форуме поддержки Opencart вопросы по Joomla - {тру-ля-ля}.
2. какого {тру-ля-ля} слэш перед HTTP стоит в правиле?
-
да, вот этот момент я тогда упустил - не описал изменения в контроллере для вывода языковых переменных. :(
но уже исправился ^_^
смотрите первую часть (цитату) в части изменений админки в том моем сообщении
- 1
-
как же вы, велосипедисты, умиляете каждый раз...
-
задайте его отдельно
-
научитесь разделять вопросы.
по первому, частично (или полностью) подойдет Фильтр товаров в категории 2.0
-
ставили тот модуль?
какие-то проблемы возникали?
-
-
gdi31, бу-га-га
откуда вы столько мусора насобирали?
должен быть только один файл
ВАШ_DOC_ROOT/system/library/response.php
ВАШ_DOC_ROOT/catalog/controller/ ВАШ_DOC_ROOT/catalog/language/ ВАШ_DOC_ROOT/catalog/model/ ВАШ_DOC_ROOT/catalog/view/
ВАШ_DOC_ROOT/download/...электронные_товары_для_скачивания
- 1
-
по аналогии.
возможно придется подправить запросы (опять же по аналогии с getProductsByCategory в плане stock_status), которыми данные о товарах выбираются.
-
если заработало, то скорее всего
настоятельно рекомендую прояснить этот момент с хостером.либо кончилось место на диске;
либо достигли лимита файлов в папке;
от периодически падающего магазина толку мало.
-
либо
a href="javascript:history.go(-1)"
либо
http://stackoverflow.com/questions/606288/php-html-http-refererDon't rely on the HTTP Referrer being a valid or even non-empty field. People can choose to not have this set leaving any checks for that variable going to the empty side of the IF-ELSE clause.
You can guard against this by sending along a parameter in either the URL or POST parameters that would hold a value that you can use to redirect the user back to.
- 1
-
если не знаете, где искать - ищите в файлах по тексту (какой-нибудь фразе).
-
в оригинальном OpenCart
-
после оформления и подтверждения заказа (в большинстве случаев подтверждение означает, что оплата прошла) приходит письмо юзеру.
так вот туда можно добавить ссылку.
-
в ocStore webmoney WMR.
это модуль для приема WMZ :)
- 1
-
Avainta, как говорил кто-то:
всегда приводите полный текст ошибки.вы когдв на прием к врачу приходите, тоже молчите?
-
-
не может создать кэш для mysql-запроса:
либо кончилось место на диске;
либо достигли лимита файлов в папке;
либо поменялись настройки прав доступа;
либо еще что.
тут к хостеру обращаться надо.
- 1
-
в коде нет ни ошибок, ни пропущенных символов.
единственный вариант - форум порвал строку.
admin/model/catalog/information.php
foreach ($query->rows as $result) { /* это одна строка - начало */$information_description_data[$result['language_id']] = array(/* это одна строка - конец */ 'title' => $result['title'], 'description' => $result['description'], 'meta_keywords' => $result['meta_keywords'], 'meta_description' => $result['meta_description'], 'page_title' => $result['page_title'], 'h1' => $result['h1'] ); }
UPDи вобще - насчет ошибки последней:
в модели
admin/model/catalog/information.php
надо привести подобные участки кода к приведенному виду.а вы, судя по тексту ошибки, что-то там намудрили лишнего.
перепроверьте
- 1
-
DB
ALTER TABLE `information_description` ADD `meta_keywords` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ; ALTER TABLE `information_description` ADD `meta_description` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ; ALTER TABLE `information_description` ADD `page_title` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ; ALTER TABLE `information_description` ADD `h1` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ;
ADMIN (добавлено описание вставки
двухчетырех строк в admin/controller/catalog/information.php)admin/controller/catalog/information.php
в функцииprivate function getForm() {
после$this->data['entry_sort_order'] = $this->language->get('entry_sort_order'); $this->data['entry_status'] = $this->language->get('entry_status');
добавить/* w - seo-mod - meta - part_#1 - start */ $this->data['entry_meta_keywords'] = $this->language->get('entry_meta_keywords'); $this->data['entry_meta_description'] = $this->language->get('entry_meta_description'); $this->data['entry_page_title'] = $this->language->get('entry_page_title'); $this->data['entry_h1'] = $this->language->get('entry_h1'); /* w - seo-mod - meta - part_#1 - end */
admin/language/russian/catalog/information.php
/* w - seo-mod - meta - part_#1 - start */ $_['entry_meta_keywords'] = 'Meta Keywords:'; $_['entry_meta_description'] = 'Meta Description:'; $_['entry_page_title'] = 'Заголовок страницы:'; $_['entry_h1'] = 'H1:'; /* w - seo-mod - meta - part_#1 - end */
admin/model/catalog/information.php
public function addInformation($data) {
foreach ($data['information_description'] as $language_id => $value) { $this->db->query("INSERT INTO " . DB_PREFIX . "information_description SET information_id = '" . (int)$information_id . "', language_id = '" . (int)$language_id . "', title = '" . $this->db->escape($value['title']) . "', description = '" . $this->db->escape($value['description']) . "', meta_keywords = '" . $this->db->escape($value['meta_keywords']) . "', meta_description = '" . $this->db->escape($value['meta_description']) . "', page_title = '" . $this->db->escape($value['page_title']) . "', h1 = '" . $this->db->escape($value['h1']) . "'"); }
public function editInformation($information_id, $data) {
foreach ($data['information_description'] as $language_id => $value) { $this->db->query("INSERT INTO " . DB_PREFIX . "information_description SET information_id = '" . (int)$information_id . "', language_id = '" . (int)$language_id . "', title = '" . $this->db->escape($value['title']) . "', description = '" . $this->db->escape($value['description']) . "', meta_keywords = '" . $this->db->escape($value['meta_keywords']) . "', meta_description = '" . $this->db->escape($value['meta_description']) . "', page_title = '" . $this->db->escape($value['page_title']) . "', h1 = '" . $this->db->escape($value['h1']) . "'"); }
public function getInformationDescriptions($information_id) {
foreach ($query->rows as $result) { $information_description_data[$result['language_id']] = array( 'title' => $result['title'], 'description' => $result['description'], 'meta_keywords' => $result['meta_keywords'], 'meta_description' => $result['meta_description'], 'page_title' => $result['page_title'], 'h1' => $result['h1'] ); }
admin/view/template/catalog/information_form.tpl
ПОСЛЕ<tr> <td><span class="required">*</span> <?php echo $entry_description; ?></td> <td><textarea name="information_description[<?php echo $language['language_id']; ?>][description]" id="description<?php echo $language['language_id']; ?>"><?php echo isset($information_description[$language['language_id']]) ? $information_description[$language['language_id']]['description'] : ''; ?></textarea> <?php if (isset($error_description[$language['language_id']])) { ?> <span class="error"><?php echo $error_description[$language['language_id']]; ?></span> <?php } ?></td> </tr>
Добавляем<tr> <td><?php echo $entry_meta_keywords; ?></td> <td><input type="text" name="information_description[<?php echo $language['language_id']; ?>][meta_keywords]" value="<?php echo isset($information_description[$language['language_id']]) ? $information_description[$language['language_id']]['meta_keywords'] : ''; ?>" size="100" /></td> </tr> <tr> <td><?php echo $entry_meta_description; ?></td> <td><textarea name="information_description[<?php echo $language['language_id']; ?>][meta_description]" cols="50" rows="8"><?php echo isset($information_description[$language['language_id']]) ? $information_description[$language['language_id']]['meta_description'] : ''; ?></textarea></td> </tr> <tr> <td><?php echo $entry_page_title; ?></td> <td><input type="text" name="information_description[<?php echo $language['language_id']; ?>][page_title]" value="<?php echo isset($information_description[$language['language_id']]) ? $information_description[$language['language_id']]['page_title'] : ''; ?>" size="100" /></td> </tr> <tr> <td><?php echo $entry_h1; ?></td> <td><input type="text" name="information_description[<?php echo $language['language_id']; ?>][h1]" value="<?php echo isset($information_description[$language['language_id']]) ? $information_description[$language['language_id']]['h1'] : ''; ?>" size="100" /></td> </tr>
CATALOG
catalog/controller/information/information.php
Меняем$this->document->title = $information_info['title'];
Наif ($information_info['meta_keywords']) { $this->document->keywords = $information_info['meta_keywords']; } if ($information_info['meta_description']) { $this->document->description = $information_info['meta_description']; } if ($information_info['page_title']) { $this->document->title = $information_info['page_title']; } else { $this->document->title = $information_info['title']; }
- 4
-
catalog/controller/common/header.php
/* w - welcome guest | user - part_#1 - start */ if ($this->customer->isLogged()) { $w_name = $this->customer->getFirstName()." ".$this->customer->getLastName(); $this->data['w_welcome'] = sprintf($this->language->get('text_welcome_user'), $w_name); } else { $this->data['w_welcome'] = $this->language->get('text_welcome_guest'); } /* w - welcome guest | user - part_#1 - end */
catalog/language/english/common/header.php
/* w - welcome guest | user */ $_['text_welcome_guest'] = 'Welcome, guest!'; $_['text_welcome_user'] = 'Welcome, %s!';
catalog/view/theme/default/template/common/header.tpl
<div class="div10"> <a onclick="moduleSearch();" class="button"><span><?php echo $button_go; ?></span></a> <a href="<?php echo str_replace('&', '&', $advanced); ?>"><?php echo $text_advanced; ?></a></div> <!-- w - welcome guest | user - part_#1 - start //--> <div style="float:right;"><?php echo $w_welcome; ?></div> <!-- w - welcome guest | user - part_#1 - end //-->
- 2
Накрутить Счетчик Заказов
в Песочница
Опубліковано:
{тру-ля-ля}
вы УДАЛИЛИ уже заказы.
вам НЕЧЕГО уже очищать.
проверьте только "неудавшиеся заказы" (или как-то так) в фильтре заказов в админке.
после этого - alter table...