ecstore获取静态服务器地址
摘要:kernel::get_image_host_url()
阅读全文
posted @
2019-11-14 15:24
limonyun
阅读(113)
推荐(0) 编辑
ecstore 后台finder排序
摘要:在model文件添加 var $defaultOrder = array('add_time','DESC');即可
阅读全文
posted @
2018-11-06 11:38
limonyun
阅读(119)
推荐(0) 编辑
公司ecstore服务器linux安装
摘要:1、chown -R www:www /srv/www/default 2、chmod -R 777 /srv/www/default 3、app/base/cmd update(需关闭config的kvstore)#define('KVSTORE_STORAGE', 'base_kvstore_m
阅读全文
posted @
2018-10-19 10:37
limonyun
阅读(146)
推荐(0) 编辑
ecstore 加入定时任务
摘要://1:名称 2 : 类 3:参数 system_queue::instance()->publish('gyoms_tasks_order_logisticsbydate', 'gyoms_tasks_order_logisticsbydate', $params);//加入定时任务
阅读全文
posted @
2018-10-15 19:22
limonyun
阅读(154)
推荐(0) 编辑
ecstore 会员积分解析
摘要:支付冻结积分 sdb_dbeav_meta_value_int 对应 sdb_dbeav_meta_register 的 freezed_point 获取冻结积分 sdb_dbeav_meta_value_int 对应 sdb_dbeav_meta_register 的 obtained_point
阅读全文
posted @
2018-10-13 16:30
limonyun
阅读(142)
推荐(0) 编辑
ecstore前台模板变量处理
摘要://截取//时间戳转日期//根据image_id获取图片//小图//大图//中图 //原图//数组拆分为字符串//array('a','b')====a,b//打印//金额//(四舍五入,保留2位)¥12.78 //直接显示html//默认值//地区//替换//w换成a//数字取整//去除商品名称的标签//插入换行符//数组长度//左边移动n个字符,并用-代替//以下为未验证的//商品规格PS...
阅读全文
posted @
2018-10-11 14:59
limonyun
阅读(512)
推荐(0) 编辑
ecstore 写入日志文件
摘要:error_log("tuikuan_sdf>>>>>>".var_export($sdf,1),3,DATA_DIR.'/callback.txt');
阅读全文
posted @
2018-10-09 08:57
limonyun
阅读(107)
推荐(0) 编辑
ecstore 模板截取字符串
摘要:<{$detail['indexs']['title']|cut:30}>
阅读全文
posted @
2018-09-17 18:58
limonyun
阅读(87)
推荐(0) 编辑
ecstore 后台列表 增加查看项
摘要:1、在finder文件夹下建立goods文件夹,再建立error.php 2、在services.xml加上 <service id="desktop_finder.b2c_mdl_goods_error"> <class>b2c_finder_goods_error</class> </servi
阅读全文
posted @
2018-07-12 18:09
limonyun
阅读(215)
推荐(0) 编辑
ecstore 后台挂件新增优惠券选择列表
摘要:优惠券:\custom\b2c\controller\admin\sales\coupon.php 新增starbuy_weight_radio方法 以下为整个代码: <?phpfunction theme_widget_employee_choice(&$setting, &$smarty){ f
阅读全文
posted @
2018-06-08 15:45
limonyun
阅读(277)
推荐(0) 编辑
ecstore 新增模块(页面)
摘要:1、custom\b2c\site.xml 新增 2、b2c下面新增employee.php 3、Ecstore添加自定义的模板页面类型 第一步: 修改/app/site/lib/theme/tmpl/dbsave.php和/app/site/lib/theme/tmpl/fssave.php中的函
阅读全文
posted @
2018-06-07 16:30
limonyun
阅读(236)
推荐(0) 编辑
ecstore获取系统配置信息
摘要:变相的使用app::get($app_id)->getConf($key)取数据 <{appconf app="b2c" key="site.point_deductible_value"}>
阅读全文
posted @
2018-03-02 14:09
limonyun
阅读(183)
推荐(0) 编辑
ecstore session使用
摘要:kernel::single('base_session')->start()
阅读全文
posted @
2018-01-26 08:25
limonyun
阅读(148)
推荐(0) 编辑
ecstore 根据image_id获取图片路径
摘要:$img_id=app::get('b2c')->getConf('site.loginlogo');//获取配置信息 $loginbg['img_src'] = base_storager::image_path($img_id);//原图 $loginbg['img_src'] = base_s
阅读全文
posted @
2018-01-19 09:17
limonyun
阅读(166)
推荐(0) 编辑
ecstore 添加快速搜索
摘要:在对应的dbschema中的字段添加 'searchtype' => 'has', 'filtertype' => 'yes', 'filterdefault' => true, 如果是关联表则还需要加以下代码: 在model文件夹下面对应的php文件加:
阅读全文
posted @
2018-01-04 10:47
limonyun
阅读(289)
推荐(0) 编辑
ueditor不过滤保存html
摘要:function isText(node, arr) { if(node.parentNode.tagName == 'pre'){ //源码模式下输入html标签,不能做转换处理,直接输出 arr.push(node.data) }else{ // arr.push(notTransTagName
阅读全文
posted @
2017-12-28 10:24
limonyun
阅读(506)
推荐(0) 编辑
ecstore 新增input控件方法
摘要:打开app\desktop\lib\view\input.php 新建 input_xxx方法
阅读全文
posted @
2017-12-28 10:17
limonyun
阅读(186)
推荐(0) 编辑
ecstore前台模板保留css样式
摘要:打开app\site\lib\controller.php
阅读全文
posted @
2017-12-28 10:14
limonyun
阅读(143)
推荐(0) 编辑
ecstore 当前网址
摘要:php:$base_url=kernel::base_url(true);
阅读全文
posted @
2017-12-22 11:32
limonyun
阅读(103)
推荐(0) 编辑