Install
Recently viewed product.
install extend.
Extentions->isntaller->upload your download zip pack.
install module.
extendtions->modules->recently viewed->install->config data.
use module.
design->layout->select a page->edit->insert you config recently viewed.
verify
go to your layout page check it work.
Theme Change
if you wan't use it for any theme,please unzip theme module zip pack,and reade reame.md.
You can also read this page.
### 欢迎
支持请访问:https://bbs.aiweline.com
全新PHP8框架:WelineFramework.
地址:https://gitee.com/aiweline/WelineFramework
### Repair Theme extend problem
Tip: This code will help you get any module or theme can use default theme template when theme file doesn't exist.
In anathor,It give you a nice developer expirence that you can extend file form default theme dir.
So, bigen to solve this case.
find file:
upload/catalog/controller/event/theme.php
Line 9 ,edit like this.
~~~
// If the default theme is selected we need to know which directory its pointing to
if ($this->config->get('config_theme') == 'default') {
$directory = $this->config->get('theme_default_directory');
} else {
# 修复继承主题
$directory = $this->config->get('theme_'.$this->config->get('config_theme').'_directory');
// $directory = $this->config->get('config_theme');
}
if ($directory != 'default' && is_file(DIR_TEMPLATE . $directory . '/template/' . $route . '.twig')) {
$this->config->set('template_directory', $directory . '/template/');
} elseif (is_file(DIR_TEMPLATE . 'default/template/' . $route . '.twig')) {
$this->config->set('template_directory', 'default/template/');
}else{
# 都不存在则继承当前目录
$directory = $this->config->get('config_theme');
if ($directory != 'default' && is_file(DIR_TEMPLATE . $directory . '/template/' . $route . '.twig')) {
$this->config->set('template_directory', $directory . '/template/');
} elseif (is_file(DIR_TEMPLATE . 'default/template/' . $route . '.twig')) {
$this->config->set('template_directory', 'default/template/');
}
}
~~~
Login and write down your comment.
Login my OpenCart Account