-4
我嘗試打開車成功頁面設置像素,我有這樣的代碼:PHP會議回聲0
$order_id=(int)$this->session->data['order_id'];
$total_price=$this->cart->getTotal();
$output= "<img src=\"http://track.lead-r.ru/?method=reportAction&transaction_id=". $order_id . "&advertiser_id=2158&offer=2158VxTkF:". $total_price ."\" alt=\"\" style=\"width: 0; height: 0; position:absolute;\" />";
其返回
<img src="http://track.lead-r.ru/?method=reportAction&transaction_id=0&advertiser_id=2158&offer=2158VxTkF:0" alt="" style="width: 0; height: 0; position:absolute;" /><div id="footer">
如果我設置
$order_id=123;
$total_price=123;
所有工作不錯
<img src="http://track.lead-r.ru/?method=reportAction&transaction_id=123&advertiser_id=2158&offer=2158VxTkF:123" alt="" style="width: 0; height: 0; position:absolute;" /><div id="footer">
'$ this-> session-> data ['order_id'];'沒有將它轉換爲int類型的值是什麼? – 2014-08-27 18:56:09
我嘗試<? echo $ order_id $ total_price?>這也可以。然後他們「$ order_id =(int)$ this-> session-> data ['order_id'];」和「$ total_price = $ this-> cart-> getTotal();」 。我可以在頁面上看到他們,但在查看源代碼時爲空
。 – 2014-08-27 18:59:53等我創造了光棍節 – 2014-08-27 19:02:28