Post by pluto0327 » Tue Mar 21, 2017 1:39 pm

新手求救 !

在 PC 端測試正常 但是手機端異常
當點選物流商店, 如果使用 facebook 或 line 瀏覽器就會出現空白頁面

點選按鈕後 onclick 呼叫 show_cvs_map()
Image

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>";

}
}

因此導致空白頁面, 無法回到原始頁面.

Newbie

Posts

Joined
Tue Mar 21, 2017 10:42 am

Post by pluto0327 » Thu Mar 23, 2017 12:01 am

pluto0327 wrote:
Tue Mar 21, 2017 1:39 pm
新手求救 !

在 PC 端測試正常 但是手機端異常
當點選物流商店, 如果使用 facebook 或 line 瀏覽器就會出現空白頁面

點選按鈕後 onclick 呼叫 show_cvs_map()
Image

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[*]

Newbie

Posts

Joined
Tue Mar 21, 2017 10:42 am

Post by threeus » Sat Apr 01, 2017 7:51 pm

如果 fb 和 line 不能選超商,我就會放棄這個模組

shop.threeus.com
Image


New member

Posts

Joined
Thu Sep 24, 2015 7:55 pm
Location - Taiwan
Who is online

Users browsing this forum: No registered users and 9 guests