fong Posted October 22, 2009 Share Posted October 22, 2009 我在导入所有的ZIP模块包时(都是从官网下载的ZIP模块包),总是出现如图的错误,请问各位,这是什么原因啊?你们在导入ZIP模块包时会出错吗? Link to comment Share on other sites More sharing options...
21846657 Posted October 22, 2009 Share Posted October 22, 2009 Hi,是在远程安装插件吗?请确认服务器有没gzip功能,再者/modules文件夹的读写权限(777)。可否手动安装——直接通过FTP将“插件文件夹”上传到/modules里,再到BO->Modules里安装该插件。 Link to comment Share on other sites More sharing options...
fong Posted October 23, 2009 Author Share Posted October 23, 2009 我是在自己的电脑里面测试,按照你后面说的方法我将插件复制到了MODULES下面,然后在后台里面安装,现在看后台已经有了这个插件了,并且配置好了也启用了,但是在前台怎么还是没有出现呢? 是不是还要在哪儿作一点配置修改才行啊? Link to comment Share on other sites More sharing options...
21846657 Posted October 23, 2009 Share Posted October 23, 2009 我是在自己的电脑里面测试 本地测试所用的php集成环境是什么呢? 现在看后台已经有了这个插件了,并且配置好了也启用了,但是在前台怎么还是没有出现呢? 是什么插件?是否修改过?一般情况下,是不需要配置的。 Link to comment Share on other sites More sharing options...
fong Posted October 23, 2009 Author Share Posted October 23, 2009 就是导航栏的菜单插件WIZNAV2[1].1.3.zip。不知道哪儿有问题?前台就是不出现的。 Link to comment Share on other sites More sharing options...
21846657 Posted October 23, 2009 Share Posted October 23, 2009 哦 这个Horizontal Navigation Bar插件是需要修改一些代码的。先backup要修改的文件,然后:1. 打开/header.php file,第12行: $smarty->assign(array( 'HOOK_HEADER' => Module::hookExec('header'), 'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'), 'HOOK_TOP' => Module::hookExec('top'), 'static_token' => Tools::getToken(false), 'token' => Tools::getToken(), 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => intval(Tools::getValue('content_only')) )); 修改为: $smarty->assign(array( 'HOOK_HEADER' => Module::hookExec('header'), 'HOOK_LEFT_COLUMN' => Module::hookExec('leftColumn'), 'HOOK_WIZNAV' => Module::hookExec('wiznav'), 'HOOK_TOP' => Module::hookExec('top'), 'static_token' => Tools::getToken(false), 'token' => Tools::getToken(), 'priceDisplayPrecision' => _PS_PRICE_DISPLAY_PRECISION_, 'content_only' => intval(Tools::getValue('content_only')) )); 2. 打开/themes/prestashop(或者你的主题文件夹)/header.tpl,加入: {$HOOK_WIZNAV} 譬如这样子: {$HOOK_TOP} {$HOOK_WIZNAV} Good luck! Link to comment Share on other sites More sharing options...
fong Posted October 28, 2009 Author Share Posted October 28, 2009 谢谢你的分享,按照你的方法我已经搞定了。 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now