| Line 81... |
Line 81... |
| 81 |
Cache::write($cachekey,$store,'month');
|
81 |
Cache::write($cachekey,$store,'month');
|
| 82 |
}
|
82 |
}
|
| 83 |
$prefix = "SHA".$storeId;
|
83 |
$prefix = "SHA".$storeId;
|
| 84 |
$tag = $prefix.time();
|
84 |
$tag = $prefix.time();
|
| 85 |
if($storeId == 2){
|
85 |
if($storeId == 2){
|
| - |
|
86 |
// $url = str_replace('www','m',$url);
|
| 86 |
$url = str_replace('www','m',$url);
|
87 |
$url = str_replace('www.','',$url);
|
| - |
|
88 |
$url = str_replace('http://','',$url);
|
| - |
|
89 |
$url = str_replace('flipkart.com','http://dl.flipkart.com/dl',$url);
|
| 87 |
} elseif($storeId == 3) {
|
90 |
} elseif($storeId == 3) {
|
| 88 |
$url_parts = parse_url($url);
|
91 |
$url_parts = parse_url($url);
|
| 89 |
$url_parts['path'] = str_replace('viewAllSellers/','',$url_parts['path']);//quickfix for snapdeal
|
92 |
$url_parts['path'] = str_replace('viewAllSellers/','',$url_parts['path']);//quickfix for snapdeal
|
| 90 |
if(isset($url_parts['query'])) {
|
93 |
if(isset($url_parts['query'])) {
|
| 91 |
$url = "http://m.snapdeal.com".$url_parts['path'].'?'.$url_parts['query']."&utm_source=aff_prog&utm_campaign=afts&offer_id=17";
|
94 |
$url = "http://m.snapdeal.com".$url_parts['path'].'?'.$url_parts['query']."&utm_source=aff_prog&utm_campaign=afts&offer_id=17";
|