Subversion Repositories SmartDukaan

Rev

Rev 11532 | Rev 12056 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11532 Rev 11752
Line 99... Line 99...
99
				}
99
				}
100
				$metaDescription = $data['response']['response']['product_details'][0]->entity->metaDescription;
100
				$metaDescription = $data['response']['response']['product_details'][0]->entity->metaDescription;
101
				if(isset($metaDescription) && !empty($metaDescription)){
101
				if(isset($metaDescription) && !empty($metaDescription)){
102
					$data['metaDescription'] = $metaDescription;
102
					$data['metaDescription'] = $metaDescription;
103
				}
103
				}
-
 
104
				$subView = $this->session->userdata('subView');
-
 
105
				if(isset($subView) && !empty($subView))
-
 
106
				{
-
 
107
				    $data['subView'] = $subView;
-
 
108
				}
-
 
109
				elseif(mt_rand(1,2) % 2)
-
 
110
				{
-
 
111
				    $data['subView'] = 'a';
-
 
112
				    $this->session->set_userdata('subView','a');
-
 
113
				}
-
 
114
				else
-
 
115
				{
-
 
116
				    $data['subView'] = 'b';
-
 
117
				    $this->session->set_userdata('subView','b');
-
 
118
				}
104
				//end of set cache
119
				//end of set cache
105
				$this->layout->view('productinfo/productinfo_view',$data);
120
				$this->layout->view('productinfo/productinfo_view',$data);
106
			}
121
			}
107
			else{
122
			else{
108
				$url = base_url().strtolower(get_class()).'/'.$apiCode;
123
				$url = base_url().strtolower(get_class()).'/'.$apiCode;