帝国CMS根据设置的关键词自动调用淘宝客相关商品,生成的商品数量可以在插件里面设置,生成的界面可以根据自己的要求在后台插件中修改模板,css样式根据你做的模板自己添加,url采用内链形式,此插件是通过淘宝联盟API接口操作的,必须要网站通过ICP备案才可以申请。
1、如果你的后台目录e文件夹下没有daixiao360文件夹,请新建个;
2、将下载的压缩包解压出来把taogjz文件夹上传至网站根目录/e/daixiao360下;
3、在浏览器中执行/e/daixiao360/taogjz/install/index.php文件,依提示进行安装;
4、提示安装完成后,删除/e/daixiao360/taogjz/install/目录;
5、把userfun.txt里面的内容添加到/e/class/userfun.php.
6、修改内容模板,在合适的位置加入以下淘宝客商品调用代码
<?=taogjz($navinfor['keyboard'])?>
Appkey查看方式如下
点击查看按钮进入一个页面即可看到SecretKey,
SetAdzoneId是推广位,在以下地方找到。
后面的数字90008350426就是了。
.tbyhq{margin-left:-10px; overflow:hidden}
.tbyhq ul{}
.tbyhq ul li{ float:left; margin-left:10px;display: inline-block; margin-bottom:10px;box-sizing: border-box;border: 1px solid #d9d9d9; width: 257px;background: #fff;}
.tbyhq ul li .img-conimg {width:237px;vertical-align: top;height:237px;-ms-interpolation-mode: bicubic;}
.tbyhq ul li.info-con {padding:5px;}
.tbyhq ul li.list-item-name {font-size:16px;line-height:22px;height:44px; overflow:hidden}
.tbyhq ul li.price_sell {font-size:14px;position: relative;margin-top:5px;color: #9b9b9b;}
.tbyhq ul li .sell-num {position: absolute;right: 0;}
.tbyhq ul li .coupon-amount-icon {position: relative;display: inline-block;color: #ff5000;border-radius: 5px;overflow: hidden;border: 1px solid #ff5000;height: 30px; box-sizing: border-box;}
.tbyhq ul li .coupon-amount-icon .icon-left {position: absolute;width:30px;height: 30px;left: 0;text-align: center;font-size: 20px;background: #ff5000;color: #fff;top: -1px;line-height: 30px;}
.list-item .coupon-amount-icon span { padding-left:35px;line-height: 30px; padding-right:5px;}
.list-item .coupon-con .coupon-amount-price {float: right; line-height:30px; height: 30px;color: #9b9b9b;font-size:16x; overflow:hidden}
.list-item .c-red {color: #ff5000;}
.list-item .big-price {font-size: 20px;font-weight: 700;}
需要帝国cms内容正文中添加淘宝客推广产品插件请点击https://www.daixiao360.cn/dgcj/337.html,没有合适的插件?找客服定制。
提交您的需求,定制插件。
立即咨询Copyright@2008-2023 版权所有 帝国CMS模板