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

Не применяются модификации на twig файлы


Recommended Posts

И ик господа у кого какие версии могут быть. Он будто его стороной обходит.

Версия ОС 3.0.3.4 Русская спотому чторка

Сразу сосивлю список того что было прогделано по многолисленным темам:

1. Вот это вот всё сгделал https://github.com/opencart/opencart/issues/8142

2. __Fix Theme Editor OC3 усиновил

3. Кэш модификаторов и темы - ЧИСТИЛ

4. Файл через "Редактор шаблона" не редактировал - иблица theme полностью пусия

 

Врогде всё. Но резульии ничего не дало

Link to comment
Share on other sites

https://github.com/opencart/opencart/blob/3.0.x.x_Maintenance/upload/system/modification.xml

 

вот это помогает

 

а еещё бывает что перекешировали

 

попробуйте обновить моды с открытот консолью и отключенным кешем в ней

Link to comment
Share on other sites

9 минут назад, spectre сказал:

Это я указывал в 1 пункте
 

 

9 минут назад, spectre сказал:

а еещё бывает что перекешировали

 

попробуйте обновить моды с открытот консолью и отключенным кешем в ней

Как понять с открытот консолью?

Link to comment
Share on other sites

проблема решена, 

в файле system/library/template/twig.php

заменить эту строку

$loader = new \Twig_Loader_Filesystem(DIR_TEMPLATE);

на это

$loader = new \Twig_Loader_Filesystem();

if (defined('DIR_CATALOG') && is_dir(DIR_MODIFICATION . 'admin/view/template/')) {
    $loader->addPath(DIR_MODIFICATION . 'admin/view/template/');
} elseif (is_dir(DIR_MODIFICATION . 'catalog/view/theme/')) {
    $loader->addPath(DIR_MODIFICATION . 'catalog/view/theme/');
}

$loader->addPath(DIR_TEMPLATE);

 

Link to comment
Share on other sites

  • 4 months later...

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.