新手求救 !
在 PC 端測試正常 但是手機端異常
當點選物流商店, 如果使用 facebook 或 line 瀏覽器就會出現空白頁面
點選按鈕後 onclick 呼叫 show_cvs_map()
set_store_info()程式碼似乎沒有執行
public function set_store_info() {
if($this->request->post['CVSStoreID']){
$this->session->data["shipping_methods"]["ecpaylogistic"]['CVSStoreID'] = $this->request->post['CVSStoreID'];
$this->session->data["shipping_methods"]["ecpaylogistic"]['CVSStoreName'] = $this->request->post['CVSStoreName'];
$this->session->data["shipping_methods"]["ecpaylogistic"]['CVSAddress'] = $this->request->post['CVSAddress'];
$this->session->data["shipping_methods"]["ecpaylogistic"]['CVSTelephone'] = (isset($this->request->post['CVSTelephone'])) ? $this->request->post['CVSTelephone'] : '';
header("Content-Type:text/html; charset=utf-8");
echo "<script type='text/javascript'>";
echo "window.opener.set_store_info('" . $this->request->post['CVSStoreID'] . "','" . $this->request->post['CVSStoreName'] . "','". $this->request->post['CVSAddress'] ."','" . $this->request->post['CVSTelephone'] . "');";
echo "window.close();";
echo "</script>";
}
}
因此導致空白頁面, 無法回到原始頁面.
pluto0327 wrote: ↑Tue Mar 21, 2017 1:39 pm新手求救 !
在 PC 端測試正常 但是手機端異常
當點選物流商店, 如果使用 facebook 或 line 瀏覽器就會出現空白頁面
點選按鈕後 onclick 呼叫 show_cvs_map()
set_store_info()程式碼似乎沒有執行
public function set_store_info() {
if($this->request->post['CVSStoreID']){
$this->session->data["shipping_methods"]["ecpaylogistic"]['CVSStoreID'] = $this->request->post['CVSStoreID'];
$this->session->data["shipping_methods"]["ecpaylogistic"]['CVSStoreName'] = $this->request->post['CVSStoreName'];
$this->session->data["shipping_methods"]["ecpaylogistic"]['CVSAddress'] = $this->request->post['CVSAddress'];
$this->session->data["shipping_methods"]["ecpaylogistic"]['CVSTelephone'] = (isset($this->request->post['CVSTelephone'])) ? $this->request->post['CVSTelephone'] : '';
header("Content-Type:text/html; charset=utf-8");
echo "<script type='text/javascript'>";
echo "window.opener.set_store_info('" . $this->request->post['CVSStoreID'] . "','" . $this->request->post['CVSStoreName'] . "','". $this->request->post['CVSAddress'] ."','" . $this->request->post['CVSTelephone'] . "');";
echo "window.close();";
echo "</script>";
}
}
因此導致空白頁面, 無法回到原始頁面.
我是用 opencart 2.2.0.0
使用綠界物流模組
https://github.com/ECPay/ECPayPHPCartMo ... istics/2.0[*]
Who is online
Users browsing this forum: No registered users and 139 guests