| Line 96... |
Line 96... |
| 96 |
//$tag='SHASNAPDEAL123';
|
96 |
//$tag='SHASNAPDEAL123';
|
| 97 |
$url_parts = parse_url($url);
|
97 |
$url_parts = parse_url($url);
|
| 98 |
$url_parts['path'] = str_replace('viewAllSellers/','',$url_parts['path']);//quickfix for snapdeal
|
98 |
$url_parts['path'] = str_replace('viewAllSellers/','',$url_parts['path']);//quickfix for snapdeal
|
| 99 |
if(isset($url_parts['query'])) {
|
99 |
if(isset($url_parts['query'])) {
|
| 100 |
//$url = "http://m.snapdeal.com".$url_parts['path'].'?'.$url_parts['query']."&utm_source=aff_prog&utm_campaign=afts&offer_id=17";
|
100 |
//$url = "http://m.snapdeal.com".$url_parts['path'].'?'.$url_parts['query']."&utm_source=aff_prog&utm_campaign=afts&offer_id=17";
|
| 101 |
$url = "http://m.snapdeal.com".$url_parts['path'].'?'.'utm_source=aff_prog&utm_campaign=afts&offer_id=17';
|
101 |
$url = "https://m.snapdeal.com".$url_parts['path'].'?'.'utm_source=aff_prog&utm_campaign=afts&offer_id=17';
|
| 102 |
}else{
|
102 |
}else{
|
| 103 |
$url = "http://m.snapdeal.com".$url_parts['path'].'?';
|
103 |
$url = "https://m.snapdeal.com".$url_parts['path'].'?';
|
| 104 |
}
|
104 |
}
|
| 105 |
} elseif($storeId == 4){
|
105 |
} elseif($storeId == 4){
|
| 106 |
$urlparts = parse_url($url);
|
106 |
$urlparts = parse_url($url);
|
| 107 |
$url = $urlparts['path'];
|
107 |
$url = $urlparts['path'];
|
| 108 |
if(!empty($urlparts['query'])){
|
108 |
if(!empty($urlparts['query'])){
|