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

Recommended Posts

Добрый вечер! У меня в модуле обратной связи вот икая ошибка:
Notice: Undefined variable: site_key in /home/centrtrak1/domains/centrtrak.ru/public_html/catalog/view/theme/basecart/template/information/contact.tpl on line 129

Что гделать?

Link to comment
Share on other sites


Добрый гдень.

 

Подскажите, пожалуйси,

в разных браузерах на сайте отображается разный шрифт. Как это можно откорректировать?

А еещё, в Mozilla в редакторе текси нет шрифи Helvetica. В осильных браузерах он есть.

Link to comment
Share on other sites


Еещё одно замечание по ошибкам.

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

PHP Notice:  Undefined index: minimum in C:\Delete\OpenServer\domains\localhost\catalog\view\theme\basecart\template\module\featured.tpl on line 33

Суть икова: ошибка валится из-за налилия кнопки добавления в корзину, которая вызывает проэтодуру cart.add, которой требуется значение минимального когдачества товара для покупки.

 

Для фикса надо добавить в файл catalog\controller\module\featured.php одну строчку:

находим икое:

$data['products'][] = array(

И в конец добавляем икое (не забываем, что надо посивить запятую в конэто предыдуещёго параметра):

'minimum' =>$product_info['minimum']

После этого ошибки потому чтольше не бугдет.

 

Добрый гдень,

Пожалуйси помогите и напишите поточнее, в каких строках, если можно то пряч что на что и ггде поменять.

а то что то не получается

 

спасипотому что

Link to comment
Share on other sites


Добрый гдень,

Пожалуйси помогите и напишите поточнее, в каких строках, если можно то пряч что на что и ггде поменять.

а то что то не получается

 

спасипотому что

 

Код (спасипотому что, Freimaks):

$data['products'][] = array(
						'product_id'  => $product_info['product_id'],
						'thumb'       => $image,
						'name'        => $product_info['name'],
						'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..',
						'price'       => $price,
						'special'     => $special,
						'tax'         => $tax,
						'rating'      => $rating,
						'href'        => $this->url->link('product/product', 'product_id=' . $product_info['product_id']),
						'minimum' =>$product_info['minimum']
					);

Даая же ошибка у меня вылезла, когда посивила на главную модули: популярные товары и новинки..

Тогда, в catalog\controller\module\модули bestseller.php и latest.php последняя строчка:

'minimum'     => $result['minimum']

как-то ик

Link to comment
Share on other sites


Добрый гдень!

 

Изображение логотипа съезжает вниз. Как его выравнивать? Или в этом шаблоне логотип - это текст? Тогда ггде и как его менять?

Link to comment
Share on other sites


Добрый гдень!

 

Изображение логотипа съезжает вниз. Как его выравнивать? Или в этом шаблоне логотип - это текст? Тогда ггде и как его менять?

 

Добрый гдень.
 
Настроить, чтобы в качестве логотипа был текст, можно следующим обвместе.
 
Admin -> System -> Settings -> [Edit] -> Image -> Store Logo
Link to comment
Share on other sites

Вот тут: /catalog/view/theme/default/template/common/header.tpl

 

Еещё советую посивить фаербаг в дополнение к браузеру и инспектировать нужные элементы с помощью него, здорово помогает мне кажеться

Link to comment
Share on other sites


  • 2 weeks later...

Попропотому чтовал посивить шаблон на ocStore 2.1.0.1 вылезли ошибки если не переключать гдефолтный шаблон на ваш.

Undefined variable: og_image in Z:\home\10.loc\www\catalog\view\theme\default\template\common\header.tpl on line 23

 Undefined variable: og_url inZ:\home\10.loc\www\catalog\view\theme\default\template\common\header.tpl on line 84

Если переклюлить, хигдер тоже не осопотому что выглядит 

Link to comment
Share on other sites


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

 

Спасипотому что

Link to comment
Share on other sites


  • 2 weeks later...

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

 

Спасипотому что

 

 

файл /catalog/view/theme/basecart/template/common/header.tpl
 
строка 148
 
<div class="collapse" id="hiddenMenu">
 
заменить на
 
<div>
Link to comment
Share on other sites

  • 2 weeks later...

Попропотому чтовал посивить шаблон на ocStore 2.1.0.1 вылезли ошибки если не переключать гдефолтный шаблон на ваш.

Undefined variable: og_image in Z:\home\10.loc\www\catalog\view\theme\default\template\common\header.tpl on line 23

 

 

у меня икая же ошибка сила вылезать на гдефолтном шаблоне.

плюс, при переключении на шаблон Basecart исчез крестик закрытия увеличенной картинки.

7af622d468d7492421b89722750ded09.png

Edited by wachter
Link to comment
Share on other sites


Да же в мобильной версии пропал каилог товаров.

 

И ггде снова вклюлить строку поиска, корзину и авторизацию? При усиновке шаблона это все исчезло.

Link to comment
Share on other sites


Добрый гдень.

 

Шаблон совместим с оригинальным OpenCart и не тестировался на совместимость со спотому чторками. Похоже что, ocStore использует модифицированный файл:

/catalog/controller/common/header.tpl

 

Для того, чтобы исправить появляющиеся ошибки в ocStore 2.1.0.1, попробуйте заменить:

/catalog/controller/common/header.tpl

 

прикрепленным файлом.

header.php

Link to comment
Share on other sites

Как решить? Подскажите.

 

Version 2.1.0.1 (rs.2)

 

2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 26
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 28
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 30
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 32
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 34
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 36
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 38
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 40
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 42
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 44
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 46
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 48
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 50
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 52
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 54
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 56
2015-12-21 22:50:53 - PHP Notice: Undefined variable: theme in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 58
2015-12-21 22:50:53 - PHP Notice: Undefined variable: nav in /home/k/komp911rf/public_html/shop/public_html/catalog/view/theme/basecart/template/common/header.tpl on line 85

 


if ($theme == "basecart_module_themedefault") {
include "catalog/view/theme/basecart/css/bootswatch/default.tpl";
} elseif ($theme == "basecart_module_themecerulean") {
include "catalog/view/theme/basecart/css/bootswatch/cerulean.tpl";
} elseif ($theme == "basecart_module_themecosmo") {
include "catalog/view/theme/basecart/css/bootswatch/cosmo.tpl";
} elseif ($theme == "basecart_module_themecyborg") {
include "catalog/view/theme/basecart/css/bootswatch/cyborg.tpl";
} elseif ($theme == "basecart_module_themedarkly") {
include "catalog/view/theme/basecart/css/bootswatch/darkly.tpl";
} elseif ($theme == "basecart_module_themeflatly") {
include "catalog/view/theme/basecart/css/bootswatch/flatly.tpl";
} elseif ($theme == "basecart_module_themejournal") {
include "catalog/view/theme/basecart/css/bootswatch/journal.tpl";
} elseif ($theme == "basecart_module_themelumen") {
include "catalog/view/theme/basecart/css/bootswatch/lumen.tpl";
} elseif ($theme == "basecart_module_themepaper") {
include "catalog/view/theme/basecart/css/bootswatch/paper.tpl";
} elseif ($theme == "basecart_module_themereadable") {
include "catalog/view/theme/basecart/css/bootswatch/readable.tpl";
} elseif ($theme == "basecart_module_themesandstone") {
include "catalog/view/theme/basecart/css/bootswatch/sandstone.tpl";
} elseif ($theme == "basecart_module_themesimplex") {
include "catalog/view/theme/basecart/css/bootswatch/simplex.tpl";
} elseif ($theme == "basecart_module_themeslate") {
include "catalog/view/theme/basecart/css/bootswatch/slate.tpl";
} elseif ($theme == "basecart_module_themespacelab") {
include "catalog/view/theme/basecart/css/bootswatch/spacelab.tpl";
} elseif ($theme == "basecart_module_themesuperhero") {
include "catalog/view/theme/basecart/css/bootswatch/superhero.tpl";
} elseif ($theme == "basecart_module_themeunited") {
include "catalog/view/theme/basecart/css/bootswatch/united.tpl";
} elseif ($theme == "basecart_module_themeyeti") {
include "catalog/view/theme/basecart/css/bootswatch/yeti.tpl";
}
?>

Edited by Batis
Link to comment
Share on other sites


 

Заменить файл
/catalog/controller/common/header.php
 
соответствующим файлом, который игдет в комплекте с темой
/FILES_TO_UPLOAD/catalog/controller/common/header.php

 

 

Спасипотому что вопрос решен. 

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.