移动互联网的时代,为了弥补ShopEx485在移动端的缺憾,本站专门...
ShopEx485静态缓存插件,解决网站访问慢等问题! 用过ShopEx485的朋...
电子面单 是使用不干胶热敏纸按照公司规定要求打印客户收派件...
电子面单 是使用不干胶热敏纸按照公司规定要求打印客户收派件...
微信扫码支付是商户系统按微信支付协议生成支付二维码,用户...
用ShopEx程序架设属于自己的电子商务网站不计其数,但也经常听...
ShopEx/易开店二次开发之百分点推荐引擎js代码整合:
百分点推荐引擎(Baifendian Recommendation Engine,简称BRE)是一款提升电子商务零售网站整体营销性能的个性化推荐工具。通过建立以用户为中心的个性化的营销策略,帮助客户提升用户的忠诚 度,在最合适的时机提供用户最需要的信息,为用户提供更加舒适的购物体验。个性化推荐引擎通过个性化推荐技术对网站整体流量结构的调节,增加商品的曝光数,提升用户平均访问步长和商品页访问量(Glance View),从而降低用户跳出率,进而影响商品转化率、商品动销数以及销售额,从根本上提升了电子商务零售网站的整体营销性能。
在ShopEx系统中,整合百分点的javascript代码,主要有以下几个页面:
一、商品列表页:
<script type="text/javascript">
var _BFD = window["_BFD"]||{};
_BFD.BFD_ITEM_INFO = {
user_id : "<{$member.member_id}>" , // 当前用户的user_id,string类型
category : [<{$catnames}>], // 当前商品的完整类别id,string[] 类型 请按照从大到小
categroyUrl:[<{$catlinks}>],
brand_sel:"<{$brandInfo.brand_name}>",//当前选着品牌名称 没选则为空
client : "Ctest_huanxigu" //这个帐号是百分点技术人员使用的帐号,请您不要修改这句代码!
};
_BFD.bfd_show_VH = function(datas){//猜您喜欢
/*对方写的回调方法 datas为我们返回的商品id信息数组
如 datas为 ["34245","93621","345621","323456","4321"]
还有推荐栏必须有我方百分点的logo
具体实例请参考 http://www.baifendian.com/service/logo.html 上的中文logo
*/
}
_BFD.script = document.createElement("script");
_BFD.script.setAttribute("src", ("https:" == document.location.protocol?"https://ssl-":"http://")+"staticbaifendian.com/service/huanxigu/hxg_list.js");
_BFD.script.setAttribute('type', 'text/javascript');
_BFD.script.setAttribute("charset", "utf-8");
document.getElementsByTagName("head")[0].appendChild(_BFD.script);
</script>二、商品详细页:
<!--百分点数据收集js begin-->
<script type="text/javascript">
window["_BFD"] = window["_BFD"] || {};
_BFD.BFD_INFO = {
id : "<{$goods.goods_id}>", //商品的唯一标识id号,string类型===================================
name : "<{$goods.name|escape:'html'}>", //商品的名称=========================
brand : "<{$goods.brand}>", //商品的品牌===================
item_link : "<{link ctl='product' act='index' arg0=$goods.goods_id}>",// 商品的连接,string类型=======================
image_link : "<{$goods.small_pic|storager}>",// 图片的地址,string类型==============
price : <{$goods.price}>,//商品的价格,double类型; ==============
mk_price : <{$goods.mktprice}>, //商品的市场价格===============================
category : [<{$catnames}>], // 商品的类别详细信息,string[] 类型;=================
categroyUrl:[<{$catlinks}>], //================
onsale : <{if $goods.marketable == 'false' }>false<{else}>true<{/if}>,//判断商品是否在架,下架为false,在架为true,布尔类型;==========================
user_id : "<{$member.member_id}>",//当前用户的user_id,string类型。注意:user_id不是用户的真实注册名,而是其注册名的编号,如果匿名用户为0或者为空'';=====================
client : "Ctest_huanxigu" //百分点技术人员使用的帐号,请您不要修改这句代码!
};
_BFD.bfd_show_vav = function(datas){//浏览过本商品的用户还浏览
/*对方写的回调方法 datas为我们返回的商品id信息数组
如 datas为 ["34245","93621","345621","323456","4321"]
推荐栏必须有我方百分点的logo
具体实例请参考 http://www.baifendian.com/service/logo.html 上的中文logo
*/
}
_BFD.bfd_show_bab = function(datas){//浏览了本商品的用户最终购买
/*对方写的回调方法 datas为我们返回的商品id信息数组
如 datas为 ["34245","93621","345621","323456","4321"]
推荐栏必须有我方百分点的logo
具体实例请参考 http://www.baifendian.com/service/logo.html 上的中文logo
*/
}
_BFD.script = document.createElement("script");
_BFD.script.type = 'text/javascript';
_BFD.script.async = true;
_BFD.script.charset = 'utf-8';
_BFD.script.src = (('https:' == document.location.protocol?'https://ssl-static1':'http://static1')+'.baifendian.com/service/huanxigu/hxg_goods.js');
document.getElementsByTagName("head")[0].appendChild(_BFD.script);
</script>
<!--百分点数据收集js end-->三、购物车页面:
<script type="text/javascript">
var _BFD = window["_BFD"] || {};
_BFD.BFD_ITEM_INFO = {
items : [<{$items}>],// 2维数组,参数分别是['商品id号','该商品的单价','购物车中该商品的数量']
//items_cat:[["a","b","c"],["a","b","f"],["a","d","m"]], //对应商品的类别
user_id : "<{$member.member_id}>" , // 当前用户的user_id,string类型。
client : "Ctest_huanxigu" //这个帐号是百分点技术人员使用的帐号,请您不要修改这句代码!
};
_BFD.bfd_show_cac = function(datas){//基于购物车的推荐
/*对方写的回调方法 datas为我们返回的商品id信息数组
如 datas为 ["34245","93621","345621","323456","4321"]
还有推荐栏必须有我方百分点的logo
具体实例请参考 http://www.baifendian.com/service/logo.html 上的中文logo
*/
}
_BFD.script = document.createElement("script");
_BFD.script.setAttribute("src", ("https:" == document.location.protocol?"https://ssl-":"http://")+"staticbaifendian.com/service/huanxigu/hxg_cart.js");
_BFD.script.setAttribute('type', 'text/javascript');
_BFD.script.setAttribute("charset", "utf-8");
document.getElementsByTagName("head")[0].appendChild(_BFD.script);
</script>四、订单提交成功页面:
<script type="text/javascript">
var _BFD = window["_BFD"]||{};
_BFD.BFD_ITEM_INFO = {
order_id : "<{$order.order_id}>", //当前的订单id号
order_items : [<{$order_items}>],//2维数组,订单中的商品的各种信息,具体参数的含义为 ['商品的id号',该商品单价,订单中该商品的数量]
order_sumprice : '<{$order.amount.total}>',//订单中的商品总价,包括运费,double类型;
order_payName:"<{$order.paymethod}>",//支付方式
order_shippingName:"<{$order.shipping.method}>",//快递方式
user_id : "<{$member.member_id}>", // 当前用户的user_id,string类型。
client : "Ctest_huanxigu" //这个帐号是百分点技术人员使用的帐号,请您不要修改这句代码!
};
_BFD.script = document.createElement("script");
_BFD.script.setAttribute("src", ("https:" == document.location.protocol?"https://ssl-":"http://")+"staticbaifendian.com/service/huanxigu/hxg_order.js");
_BFD.script.setAttribute('type', 'text/javascript');
_BFD.script.setAttribute("charset", "utf-8");
document.getElementsByTagName("head")[0].appendChild(_BFD.script);
</script>| 标签:shopex整合引擎二次开发易开店推荐百分点 | |
| 上一篇:ShopEx/易开店二次开发之:批量打印快递单、批量打印配货单、批量发货-20130301优化批量发货效率 | 下一篇:ShopEx/易开店二次开发插件之:文章评论模块,SEO增强必备功能! |