EcStore操作笔记

1.去掉首页里面代码

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!--↑↑模板中请务必使用HTML5的标准DOCTYPE↑↑-->
<meta name="generator" content="ecstore.'.$app_exclusion['app_id'].'" />
<!--ecstore 系列产品前端由 ShopEx UED 团队倾力打造-->
<!--========== Authors ==========-->
<!--Leader: zinkwind@gmail.com-->
<!--ID: wosqiqi@gmail.com-->
<!--VD: luyunfang11@163.com-->
<!--VD: yubin@shopex.cn-->
<!--FE: tylerchao.sh@gmail.com-->
<!--WAP: 4769946@qq.com-->

解决:

文件路径:app/site/lib/view/helper.php

2.修改后台登录路径

文件路径:config/mapper.php

3.Powered By出现的文件
1)app/base/lib/view/compiler.php
2)app/desktop/contoller/default.php
3)app/desktop/view/about.html
4)app/desktop/view/tpl.html
5)public/app/desktop/statics/about.html

4.去掉首页底部版权
注释文件app/site/lib/view/helper.php

$obj = kernel::service('site_footer_copyright');
if(is_object($obj) && method_exists($obj, 'get')){
$html .= $obj->get();
}else{
if(!defined('WITHOUT_POWERED') || !constant('WITHOUT_POWERED')){
$html .= ecos_cactus('site','copyr',$html);
}
}

5.增加超级管理员
相关表:
1.sdb_pam_account
2.sdb_desktop_users
获得密码:
app\pam\lib\passport\desktop\basic.php

$password_string = pam_encrypt::get_encrypted_password($_POST['password'],$auth- 
>type,array('login_name'=>$_POST['uname']));

6.密码加密方式
相关页面:
1.app\pam\lib\encrypt.php
2.app\pam\lib\encrypt\default.php

函数:extends_md5()

核心代码:

$string_md5 = md5(md5($source_str).$username.$createtime);
$front_string = substr($string_md5,0,31);
$end_string = 's'.$front_string;

如果用户名是手机,又不想用手机验证,可稍加改造:比如:13100000000->s13100000000
打开页面:app\b2c\controller\site\passport.php
找到函数:post_login();
修改代码:'login_account' => $post['uname'] 为 'login_account' => 's'.$post['uname'];

或者

打开页面: app\b2c\lib\user\passport.php
找到函数:get_login_account_type()
注释掉手机类型验证:

/*if(preg_match("/^1[34578]{1}[0-9]{9}$/",$login_account)){
      $login_type = 'mobile';
      return $login_type;
}*/

7.商品详细页图片过大导致页面错乱

后台【控制面板】->【商品图片配置】->【商品页详细图设定】

默认尺寸:宽300px 高300px

8.去掉PC和WAP版免费注册(分销模式推荐注册会用到)

PC文件位置:app/b2c/view/site/passport/signin/signin.html
WAP文件位置:app/b2c/view/wap/passport/index.html

更新中......

转载于:https://www.cnblogs.com/zhijiangch/p/5804344.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值