联系官方销售客服
1835022288
028-61286886
请问快速下单购买功能【组合购买】没能形成购买链接,如何解决呢?
测试版本为讯睿框架的v4.6.1和v4.6.2,自定义组合购买标签为: zhjg ,代码和 https://www.xunruicms.com/doc/125.html 的一样 经测试多次,点击“立即购买”没有任何反应,求解,跪谢啦!
.......
<a href="javascript:add_buy();"> 立即购买 </a> </div> <script type="text/javascript"> $(function () { dr_select_sku_price(); dr_get_sku_price(); $("#dr_buy_num").TouchSpin({ verticalbuttons: true, step: 1, min: 1, max: $('#dr_sku_quantity').html() }); }) // 购买地址 function add_buy() { var url = "{dr_url('api/buy/index', ['fid' => $ci->module['field']['zhjg']['id'], 'id'=>$id])}"; url+= "&sku="+$('#dr_sku_value').val(); url+= "&num="+$('#dr_buy_num').val(); window.location.href = url; } </script>
number_format(): Passing null to parameter #1 ($num) of type float is deprecated
错误文件:E:\C_XunRuiCMS_V4_6_1\cache\template\808510b86d042ebd383b7a8c1d5c5dff0.code.php(18)
访问地址:http://sc.bmcm.cn:9110/index.php?s=api&c=buy&m=index&fid=11&id=2&sku=0_0&num=1
http://sc.bmcm.cn:9110/index.php?s=api&c=buy&m=index&fid=11&id=2&sku=0_0&num=1