一、安装模板
Install SO Emarket Opencart 4 Theme
一:so_emarket_quick2
二:theme package installation
1、installed opencart Default
2、Extensions->Installer->Upload->so_emarket_theme_oc4011_home21_to_home35_v2.0.3->so_theme.ocmod.zip->Install
3、Extensions->Extensions->Modules->install Theme Control Panel
4、Users->Users Groups->Administrator->Permissions
5、extract image file, coppy and paste into installation folder: image->catalog folder
6、Go to Extensions->Edit->Theme Control Panel->Choose any layout that you want to use.
7、Design->layouts->edit home
8、Select the correct homepage that you selected in the previous step in So Page Builder.
9、refresh the frontend again
Install So Revo Theme for OpenCart 3
1、Go to Admin to install theme : installed->upload
2、Extensions->Modules->Theme Control Panel->Install
3、Change the permission of Administrator
4、Modification->Refresh
5、Overview the setting of So Revo theme
6、View the frontpage
二、服务器布置
设置网站用户权限
chown -R www:www /home/wwwroot/www.***.com/
设置open_basedir防跨目录
vim /usr/local/nginx/conf/fastcgi.conf
chattr -i /home/wwwroot/www.***.com/.user.ini
https://lnmp.org/faq/lnmp-vhost-add-howto.html
设置storage
cp -r /home/wwwroot/www.***.com/system/storage/* /home/wwwroot/storage/
chown -R www:www /home/wwwroot/storage/
三、rewrite规则
location / {
if ($host != 'www.***.com') {
rewrite ^/(.*)$ https://www.***.com/$1 permanent;
}
#try_files $uri @opencart;
try_files $uri $uri/ @opencart;
}
location @opencart {
rewrite ^/sitemap.xml$ /index.php?route=extension/feed/google_sitemap last;
rewrite ^/googlebase.xml$ /index.php?route=extension/feed/google_base last;
rewrite ^/payment_callback/(.*) /index.php?route=extension/payment/$1/callback last;
rewrite ^/callback/(.*) /index.php?route=extension/module/social/login&provider=$1 last;
rewrite ^/system/download/(.*) index.php?route=error/not_found last;
rewrite ^/blog$ /index.php?route=panda/blog last;
rewrite ^/(.+)$ /index.php?_route_=$1 last;
}
location /admin/ {
index index.php;
}
location = /robots.txt {
allow all;
}
location ~* (\.(js|css|png|jpg|jpeg|gif|ico|otf|eot|svg|ttf|woff|woff2))$ {
expires max;
}
location ~* (\.(tpl|ini|twig|log))$ {
deny all;
}
systerm->Setting->Server->seourl开启
四、opencart-3-0版本菜单导航栏添加文章链接修改:
五、