clever_adwords - Version 1.0.5

Version Notes

Fixed minor bugs

Download this release

Release Info

Developer Rodrigo
Extension clever_adwords
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

app/code/local/Rodrigo/Munoz/controllers/Adminhtml/IndexController.php CHANGED
@@ -39,32 +39,27 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
39
  const update_gender_info ='http://manager.cleverppc.com/api/ecommerce/v1/update_gender_info';
40
 
41
  public function indexAction(){
42
-
43
-
44
  try {
45
  $info=$this->CreateEcommerceInfo();
46
  } catch (Exception $e) {
47
  // Rollbar::report_exception($e);
48
  Rollbar::report_exception($e, array("my" => "extra", "data" => 42));
49
  }
50
- try {
51
  $data = $this->_getcurl($this->getDashboardApi());
52
  $json_a=json_decode($data,true);
53
  $messaage= $json_a['message'];
54
  if($this->dashboardStatus()=='complete'){
55
- $dUrl=self::check_dasboard_ready.'?client_token='.$this->_getClient_id();
56
- $data= $this->_getcurl($dUrl);
57
- $json_a=json_decode($data,true);
58
-
59
- if($json_a['dashboard_ready']=='false'){
60
- //$this->_redirect('*/*/dashboard',$json_a);
61
- $this->_redirect('munoz/adminhtml_excelsheet/index');
62
- }
63
- else{
64
  $this->_redirect('*/*/dashboard',$json_a);
65
- }
66
  }
67
-
68
  else{
69
  $this->loadLayout();
70
  $this->renderLayout();
@@ -78,8 +73,7 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
78
 
79
  }
80
 
81
- public function getFormAction(){
82
-
83
  $step = $this->getRequest()->getParam('step');
84
  if($step){
85
  $step = $this->getRequest()->getParam('step');
@@ -87,20 +81,17 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
87
  else{
88
  $step=1;
89
  }
90
-
91
  $url=self::last_step_status."?client_token=".$this->_getClient_id()."&last_step=".$step;
92
  try {
93
  $data =$this->_getcurl($url);
94
  $json_a=json_decode($data,true);
95
 
96
  } catch (Exception $e) {
97
- // Rollbar::report_exception($e);
98
  Rollbar::report_exception($e, array("my" => "extra", "data" => 42));
99
  }
100
  $this->loadLayout();
101
- $this->renderLayout();
102
-
103
-
104
  }
105
 
106
  public function _getcurl($url){
@@ -112,7 +103,7 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
112
  curl_close($ch);
113
  return $data;
114
 
115
- }
116
 
117
  public function categorytreeAction(){
118
  $data = $this->getRequest()->getParams();
@@ -145,76 +136,62 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
145
  }
146
 
147
  public function SetCategoryAction(){
148
- $Black_list = array("","Default Category","home page","homepage","Frontpage","Brands","All","New products","New release","New Arrivals","sale","sales","On sale","New Arrival","All products","Products","Man","Men","Woman","Accessories","VIP");
149
- Mage::getSingleton('core/session')->unsCatids();
150
- $cate=array();
151
- $data = $this->getRequest()->getParams();
152
-
153
- $all_cat = Mage::getModel('catalog/category')->getCollection()->addAttributeToSelect('*')->addIsActiveFilter()
154
- ->addAttributeToFilter('is_active', 1)
155
- ->addAttributeToSort('position', 'desc');
156
-
157
- if($data['Cat']){
158
- $preId=$data['Cat'];
159
- $all_cat->addIdFilter($data['Cat']);
160
- }
161
-
162
- if($data['unselct']){
163
- //echo "unselect";
164
- $all= Mage::getModel('catalog/category')->getCollection()->addAttributeToSelect('*')->addIsActiveFilter()
165
- ->addAttributeToFilter('is_active', 1)
166
- ->addAttributeToSort('position', 'desc');
167
- foreach($all as $select_cat){
168
- if(!in_array($select_cat->getName(), $Black_list)){
169
- array_push($cate,$select_cat->getId());
170
- }
171
- }
172
- $final_cat = array_diff($cate, $data['unselct']);
173
- $all_cat->addIdFilter($final_cat);
174
- $preId=$final_cat;
175
-
176
- }
177
-
178
- //echo $all_cat->getSize();
179
 
180
- foreach ($all_cat as $_category) {
181
- $html .= "<div class='add-key-word'>";
182
- $html .= "<input class='key_save_button add-key-word' value='Save' type='button'> </button>";
183
-
184
- $html .= "<input class='add-key-word' value='".$_category->getName()."' type='text' name='addkeyword_".$_category->getId()."'>";
185
- $html .= "<i onclick ='RemoveTextBoxKey(this)' class='fa fa-trash-o fa-2x' aria-hidden='true'></i>";
186
- $html .= " </div>";
187
-
188
- }
189
- Mage::getSingleton('core/session')->setCatids($preId);
190
- echo $html;
 
191
  }
192
 
193
-
194
-
195
  public function getCurlresponseAction(){
196
-
197
- $data = $this->getRequest()->getParams();
198
- //$postData = $data['session_id'];
199
-
200
- try {
201
- $url=self::check_adwords_user_status."?client_token=".$this->_getClient_id();
202
- $data = $this->_getcurl($url);
203
- //$data = file_get_contents($url);
204
- $json_a=json_decode($data,true);
205
- echo $messaage= $json_a['message'];
206
- if($messaage=='success'){
207
- $session_id =$this->_getClient_id();
208
- $this->SetResponse($messaage,$session_id);
209
- }
210
- } catch (Exception $e) {
211
- // Rollbar::report_exception($e);
212
- Rollbar::report_exception($e);
213
- }
214
- return $messaage= $json_a['message'];
215
-
216
-
217
-
218
  }
219
 
220
  public function setUrlresponseAction(){
@@ -234,26 +211,23 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
234
  } catch (Exception $e) {
235
  // Rollbar::report_exception($e);
236
  Rollbar::report_exception($e);
237
- }
238
-
239
- }
240
 
241
  public function deleteKeywordAction(){
242
- //$data='';
243
  $wholekeyword=$this->getRequest()->getParams();
244
- if($wholekeyword['id']){
245
  $delete= Mage::getModel('munoz/keyword')->load($wholekeyword['id'])->delete();
246
- if($delete){
247
- echo json_encode(array('success'=>true,'response'=>'Keywords deleted Successfully'));
248
- }
249
- else{
250
- echo json_encode(array('success'=>false,'response'=>'Keywords not found'));
251
- }
252
  }
253
-
254
-
255
  }
256
- public function SetResponse($messaage,$session_id){
 
257
  try {
258
  $data =Mage::getModel('munoz/keyword')->saveResponse($messaage,$session_id);
259
 
@@ -263,22 +237,19 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
263
  }
264
  return $data;
265
 
266
- }
267
-
268
-
269
 
270
  public function setParameterAction(){
271
- try {
272
- $client_info= $this->getDetail();
273
- $params=['client_info'=>json_encode($client_info)];
274
- $json_a =$this->_postCurl(self::save_magento_client_user ,$params);
275
- $this->_googleAdwordsId($json_a);
276
- echo $messaage= $json_a['message'];
277
-
278
- } catch (Exception $e) {
279
- // Rollbar::report_exception($e);
280
- Rollbar::report_exception($e);
281
- }
282
  }
283
 
284
  public function getDetail(){
@@ -319,64 +290,59 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
319
 
320
  }
321
  public function dashboardStatus(){
322
- $res= Mage::getModel('munoz/keyword')->load('complete','keyword_title');
323
- return $res->getKeywordTitle();
324
  }
325
 
326
  public function SetcleintInfoAction(){
327
- $stores =array();
328
- foreach(Mage::app()->getStores() as $store) {
329
- array_push($stores,$store->getName().',');
330
- }
331
- $all_store =Mage::getStoreConfig('general/store_information/name');
332
- $ch = curl_init();
333
- $info['id']='';
334
- $info['clientId']=$this->_getClient_id();
335
- $info['store_name']= Mage::getStoreConfig('general/store_information/name');
336
- $info['name_ascii']='';
337
- $info['info_type']='';
338
- $info['owner']=$this->getDetail()['name'];
339
- $info['email']=$this->getDetail()['email'];
340
- $info['phone']=Mage::getStoreConfig('general/store_information/phone');
341
- $info['domain']=$_SERVER['HTTP_HOST'];
342
- $info['main_language']=Mage::app()->getLocale()->getLocaleCode();
343
- // $info['countries']=$countries;
344
-
345
- $info['total_oders']=$this->getTotalorders();
346
- $info['currency']=Mage::app()->getStore()->getCurrentCurrencyCode();
347
- $info['adwordsId']='';
348
- $info['budget']='';
349
- $info['camp_by_default']='1';
350
- $info['country']=Mage::getStoreConfig('general/country/default');;
351
- $info['city']=Mage::getStoreConfig('general/store_information/address');
352
- $info['province']='';
353
- $info['city']='';
354
- $info['zip']='';
355
- $info['latitude']='';
356
- $info['longitude']='';
357
-
358
- $info['iana_timezone']=Mage::getStoreConfig('general/locale/timezone');
359
- $info['logo_url']=Mage::getStoreConfig('design/header/logo_src');
360
- $info['gender']='';
361
- $info['device']='';
362
-
363
- $info['age']='';
364
- $info['platform']='Magento';
365
- $params= array('info'=>json_encode($info));
366
- try {
367
- $json_a=$this->_postCurl(self::create_ecommerce_info ,$params);
368
- echo $json_a['message'];
369
-
370
- } catch (Exception $e) {
371
- // Rollbar::report_exception($e);
372
- Rollbar::report_exception($e);
373
- }
374
- }
375
-
376
- public function getTotalorders(){
377
  $salesModel=Mage::getModel("sales/order")->getCollection();
378
  return count($salesModel);
379
-
380
  }
381
 
382
  public function BackGroundProcessAction(){
@@ -391,64 +357,52 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
391
  require('shell/createInstance.php');
392
  exec('php -f createInstance.php > /dev/null 2>&1 &');
393
  }
394
- }
395
-
396
-
397
  }
398
 
399
- public function CreateEcommerceInfo(){
400
-
401
- $info['id']='';
402
- $info['clientId']=$this->_getClient_id();
403
- $info['store_name']= Mage::getStoreConfig('general/store_information/name');
404
- $info['name_ascii']='';
405
- $info['info_type']='';
406
- $info['owner']=$this->getDetail()['name'];
407
- $info['email']=$this->getDetail()['email'];
408
- $info['phone']=Mage::getStoreConfig('general/store_information/phone');
409
- $info['domain']=$_SERVER['HTTP_HOST'];
410
- $info['main_language']=Mage::app()->getLocale()->getLocaleCode();
411
- // $info['countries']=$countries;
412
-
413
- $info['total_oders']=$this->getTotalorders();
414
- $info['currency']=Mage::app()->getStore()->getCurrentCurrencyCode();
415
- $info['adwordsId']='';
416
- $info['budget']='';
417
- $info['camp_by_default']='1';
418
- $info['country']=Mage::getStoreConfig('general/country/default');;
419
- $info['city']=Mage::getStoreConfig('general/store_information/address');
420
- $info['province']='';
421
- $info['city']='';
422
- $info['zip']='';
423
- $info['latitude']='';
424
- $info['longitude']='';
425
-
426
- $info['iana_timezone']=Mage::getStoreConfig('general/locale/timezone');
427
- $info['logo_url']=$this->_getLogoUrls();
428
- $info['gender']='';
429
- $info['device']='';
430
-
431
- $info['age']='';
432
- $info['platform']='Magento';
433
- // $info['created_at']='';
434
- // $info['installed_at']='';
435
- $params= array('info'=>json_encode($info));
436
  return $this->_postCurl(self::create_ecommerce_info, $params);
437
  }
438
 
439
- public function _getLogoUrls(){
440
-
441
- $logo_src = Mage::getStoreConfig('design/header/logo_src');
442
- $design = Mage::getDesign();
443
- $design->setArea('frontend');
444
- $logo_url = $design->getSkinUrl($logo_src);
445
- $design->setArea('adminhtml');
446
- return $logo_url;
447
-
448
-
449
  }
 
450
  public function _googleAdwordsId($res){
451
-
452
  $price =$this->_allProductPrice();
453
  $design =Mage::getBaseDir('design').'/frontend/base/default/template/munoz/google/adwords/';
454
  $save_remarket_tag=$this->_remarketTag($design, $res['tag_id']);
@@ -460,8 +414,7 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
460
  return true;
461
  }
462
 
463
- public function _allProductPrice(){
464
-
465
  $collection= Mage::getResourceModel('catalog/product_collection')->addAttributeToSelect('price')->addAttributeToFilter('status','1');
466
  $sum = 0;
467
  $count = 0;
@@ -472,7 +425,7 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
472
  $count +=$stock;
473
  }
474
  }
475
- return $sum;
476
  }
477
 
478
  public function _remarketTag($design ,$tag_id){
@@ -483,9 +436,8 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
483
  return true;
484
  }
485
 
486
- public function SetAccurateValueAction(){
487
  $url='';
488
-
489
  $param=$this->getRequest()->getParams();
490
  if($param['values']=='device'){
491
  $url=self::update_device_info.'?device='.$param['slide'];
@@ -508,41 +460,31 @@ class Rodrigo_Munoz_Adminhtml_IndexController extends Mage_Adminhtml_Controller_
508
  if($json_a['message']=='success'){
509
  $data =Mage::getModel('munoz/keyword')->saveAccuRate($param);
510
  }
511
-
512
-
513
- }
514
- public function _postCurl($url , $params){
515
- $ch = curl_init();
516
- curl_setopt($ch, CURLOPT_URL,$url);
517
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
518
- curl_setopt($ch, CURLOPT_POST, true);
519
- curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
520
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,0);
521
- curl_setopt($ch,CURLOPT_TIMEOUT,400);
522
- // $output contains the output string
523
- $output = curl_exec($ch);
524
- curl_close($ch);
525
-
526
- return $json_a =json_decode($output,true);
527
-
528
-
529
- }
530
-
531
-
532
- public function _getClient_id() {
533
- $url=Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
534
- $disallowed = array('http://', 'https://');
535
- foreach($disallowed as $d) {
536
- if(strpos($url, $d) === 0) {
537
- $u =str_replace($d, '', $url);
538
- $url =str_replace('/', '', $u);
539
- return md5($url);
540
- }
541
- }
542
- return md5($url);
543
- }
544
-
545
-
546
-
547
  }
548
  ?>
39
  const update_gender_info ='http://manager.cleverppc.com/api/ecommerce/v1/update_gender_info';
40
 
41
  public function indexAction(){
 
 
42
  try {
43
  $info=$this->CreateEcommerceInfo();
44
  } catch (Exception $e) {
45
  // Rollbar::report_exception($e);
46
  Rollbar::report_exception($e, array("my" => "extra", "data" => 42));
47
  }
48
+ try {
49
  $data = $this->_getcurl($this->getDashboardApi());
50
  $json_a=json_decode($data,true);
51
  $messaage= $json_a['message'];
52
  if($this->dashboardStatus()=='complete'){
53
+ $dUrl=self::check_dasboard_ready.'?client_token='.$this->_getClient_id();
54
+ $data= $this->_getcurl($dUrl);
55
+ $json_a=json_decode($data,true);
56
+ if($json_a['dasboard_ready']=='false'){
57
+ $this->_redirect('munoz/adminhtml_excelsheet/index');
58
+ }
59
+ else{
 
 
60
  $this->_redirect('*/*/dashboard',$json_a);
61
+ }
62
  }
 
63
  else{
64
  $this->loadLayout();
65
  $this->renderLayout();
73
 
74
  }
75
 
76
+ public function getFormAction(){
 
77
  $step = $this->getRequest()->getParam('step');
78
  if($step){
79
  $step = $this->getRequest()->getParam('step');
81
  else{
82
  $step=1;
83
  }
84
+
85
  $url=self::last_step_status."?client_token=".$this->_getClient_id()."&last_step=".$step;
86
  try {
87
  $data =$this->_getcurl($url);
88
  $json_a=json_decode($data,true);
89
 
90
  } catch (Exception $e) {
 
91
  Rollbar::report_exception($e, array("my" => "extra", "data" => 42));
92
  }
93
  $this->loadLayout();
94
+ $this->renderLayout();
 
 
95
  }
96
 
97
  public function _getcurl($url){
103
  curl_close($ch);
104
  return $data;
105
 
106
+ }
107
 
108
  public function categorytreeAction(){
109
  $data = $this->getRequest()->getParams();
136
  }
137
 
138
  public function SetCategoryAction(){
139
+ $Black_list = array("","Default Category","home page","homepage","Frontpage","Brands","All","New products","New release","New Arrivals","sale","sales","On sale","New Arrival","All products","Products","Man","Men","Woman","Accessories","VIP");
140
+ Mage::getSingleton('core/session')->unsCatids();
141
+ $cate=array();
142
+ $data = $this->getRequest()->getParams();
143
+ $all_cat = Mage::getModel('catalog/category')->getCollection()->addAttributeToSelect('*')->addIsActiveFilter()
144
+ ->addAttributeToFilter('is_active', 1)
145
+ ->addAttributeToSort('position', 'desc');
146
+
147
+ if($data['Cat']){
148
+ $preId=$data['Cat'];
149
+ $all_cat->addIdFilter($data['Cat']);
150
+ }
151
+
152
+ if($data['unselct']){
153
+ //echo "unselect";
154
+ $all= Mage::getModel('catalog/category')->getCollection()->addAttributeToSelect('*')->addIsActiveFilter()
155
+ ->addAttributeToFilter('is_active', 1)
156
+ ->addAttributeToSort('position', 'desc');
157
+ foreach($all as $select_cat){
158
+ if(!in_array($select_cat->getName(), $Black_list)){
159
+ array_push($cate,$select_cat->getId());
160
+ }
161
+ }
162
+ $final_cat = array_diff($cate, $data['unselct']);
163
+ $all_cat->addIdFilter($final_cat);
164
+ $preId=$final_cat;
 
 
 
 
 
165
 
166
+ }
167
+ foreach ($all_cat as $_category) {
168
+ $html .= "<div class='add-key-word'>";
169
+ $html .= "<input class='key_save_button add-key-word' value='Save' type='button'> </button>";
170
+
171
+ $html .= "<input class='add-key-word' value='".$_category->getName()."' type='text' name='addkeyword_".$_category->getId()."'>";
172
+ $html .= "<i onclick ='RemoveTextBoxKey(this)' class='fa fa-trash-o fa-2x' aria-hidden='true'></i>";
173
+ $html .= " </div>";
174
+
175
+ }
176
+ Mage::getSingleton('core/session')->setCatids($preId);
177
+ echo $html;
178
  }
179
 
 
 
180
  public function getCurlresponseAction(){
181
+ $data = $this->getRequest()->getParams();
182
+ try {
183
+ $url=self::check_adwords_user_status."?client_token=".$this->_getClient_id();
184
+ $data = $this->_getcurl($url);
185
+ $json_a=json_decode($data,true);
186
+ echo $messaage= $json_a['message'];
187
+ if($messaage=='success'){
188
+ $session_id =$this->_getClient_id();
189
+ $this->SetResponse($messaage,$session_id);
190
+ }
191
+ }catch (Exception $e) {
192
+ Rollbar::report_exception($e);
193
+ }
194
+ return $messaage= $json_a['message'];
 
 
 
 
 
 
 
 
195
  }
196
 
197
  public function setUrlresponseAction(){
211
  } catch (Exception $e) {
212
  // Rollbar::report_exception($e);
213
  Rollbar::report_exception($e);
214
+ }
215
+ }
 
216
 
217
  public function deleteKeywordAction(){
 
218
  $wholekeyword=$this->getRequest()->getParams();
219
+ if($wholekeyword['id']){
220
  $delete= Mage::getModel('munoz/keyword')->load($wholekeyword['id'])->delete();
221
+ if($delete){
222
+ echo json_encode(array('success'=>true,'response'=>'Keywords deleted Successfully'));
223
+ }
224
+ else{
225
+ echo json_encode(array('success'=>false,'response'=>'Keywords not found'));
226
+ }
227
  }
 
 
228
  }
229
+
230
+ public function SetResponse($messaage,$session_id){
231
  try {
232
  $data =Mage::getModel('munoz/keyword')->saveResponse($messaage,$session_id);
233
 
237
  }
238
  return $data;
239
 
240
+ }
 
 
241
 
242
  public function setParameterAction(){
243
+ try {
244
+ $client_info= $this->getDetail();
245
+ $params=['client_info'=>json_encode($client_info)];
246
+ $json_a =$this->_postCurl(self::save_magento_client_user ,$params);
247
+ $this->_googleAdwordsId($json_a);
248
+ echo $messaage= $json_a['message'];
249
+
250
+ } catch (Exception $e) {
251
+ Rollbar::report_exception($e);
252
+ }
 
253
  }
254
 
255
  public function getDetail(){
290
 
291
  }
292
  public function dashboardStatus(){
293
+ $res= Mage::getModel('munoz/keyword')->load('complete','keyword_title');
294
+ return $res->getKeywordTitle();
295
  }
296
 
297
  public function SetcleintInfoAction(){
298
+ $stores =array();
299
+ foreach(Mage::app()->getStores() as $store) {
300
+ array_push($stores,$store->getName().',');
301
+ }
302
+ $all_store =Mage::getStoreConfig('general/store_information/name');
303
+ $ch = curl_init();
304
+ $info['id']='';
305
+ $info['clientId']=$this->_getClient_id();
306
+ $info['store_name']= Mage::getStoreConfig('general/store_information/name');
307
+ $info['name_ascii']='';
308
+ $info['info_type']='';
309
+ $info['owner']=$this->getDetail()['name'];
310
+ $info['email']=$this->getDetail()['email'];
311
+ $info['phone']=Mage::getStoreConfig('general/store_information/phone');
312
+ $info['domain']=$_SERVER['HTTP_HOST'];
313
+ $info['main_language']=Mage::app()->getLocale()->getLocaleCode();
314
+ $info['total_oders']=$this->getTotalorders();
315
+ $info['currency']=Mage::app()->getStore()->getCurrentCurrencyCode();
316
+ $info['adwordsId']='';
317
+ $info['budget']='';
318
+ $info['camp_by_default']='1';
319
+ $info['country']=Mage::getStoreConfig('general/country/default');;
320
+ $info['city']=Mage::getStoreConfig('general/store_information/address');
321
+ $info['province']='';
322
+ $info['city']='';
323
+ $info['zip']='';
324
+ $info['latitude']='';
325
+ $info['longitude']='';
326
+ $info['iana_timezone']=Mage::getStoreConfig('general/locale/timezone');
327
+ $info['logo_url']=Mage::getStoreConfig('design/header/logo_src');
328
+ $info['gender']='';
329
+ $info['device']='';
330
+ $info['age']='';
331
+ $info['platform']='Magento';
332
+ $params= array('info'=>json_encode($info));
333
+ try {
334
+ $json_a=$this->_postCurl(self::create_ecommerce_info ,$params);
335
+ echo $json_a['message'];
336
+
337
+ } catch (Exception $e) {
338
+ // Rollbar::report_exception($e);
339
+ Rollbar::report_exception($e);
340
+ }
341
+ }
342
+
343
+ public function getTotalorders(){
 
 
 
 
344
  $salesModel=Mage::getModel("sales/order")->getCollection();
345
  return count($salesModel);
 
346
  }
347
 
348
  public function BackGroundProcessAction(){
357
  require('shell/createInstance.php');
358
  exec('php -f createInstance.php > /dev/null 2>&1 &');
359
  }
360
+ }
 
 
361
  }
362
 
363
+ public function CreateEcommerceInfo(){
364
+ $info['id']='';
365
+ $info['clientId']=$this->_getClient_id();
366
+ $info['store_name']= Mage::getStoreConfig('general/store_information/name');
367
+ $info['name_ascii']='';
368
+ $info['info_type']='';
369
+ $info['owner']=$this->getDetail()['name'];
370
+ $info['email']=$this->getDetail()['email'];
371
+ $info['phone']=Mage::getStoreConfig('general/store_information/phone');
372
+ $info['domain']=$_SERVER['HTTP_HOST'];
373
+ $info['main_language']=Mage::app()->getLocale()->getLocaleCode();
374
+ $info['total_oders']=$this->getTotalorders();
375
+ $info['currency']=Mage::app()->getStore()->getCurrentCurrencyCode();
376
+ $info['adwordsId']='';
377
+ $info['budget']='';
378
+ $info['camp_by_default']='1';
379
+ $info['country']=Mage::getStoreConfig('general/country/default');;
380
+ $info['city']=Mage::getStoreConfig('general/store_information/address');
381
+ $info['province']='';
382
+ $info['city']='';
383
+ $info['zip']='';
384
+ $info['latitude']='';
385
+ $info['longitude']='';
386
+ $info['iana_timezone']=Mage::getStoreConfig('general/locale/timezone');
387
+ $info['logo_url']=$this->_getLogoUrls();
388
+ $info['gender']='';
389
+ $info['device']='';
390
+ $info['age']='';
391
+ $info['platform']='Magento';
392
+ $params= array('info'=>json_encode($info));
 
 
 
 
 
 
 
393
  return $this->_postCurl(self::create_ecommerce_info, $params);
394
  }
395
 
396
+ public function _getLogoUrls(){
397
+ $logo_src = Mage::getStoreConfig('design/header/logo_src');
398
+ $design = Mage::getDesign();
399
+ $design->setArea('frontend');
400
+ $logo_url = $design->getSkinUrl($logo_src);
401
+ $design->setArea('adminhtml');
402
+ return $logo_url;
 
 
 
403
  }
404
+
405
  public function _googleAdwordsId($res){
 
406
  $price =$this->_allProductPrice();
407
  $design =Mage::getBaseDir('design').'/frontend/base/default/template/munoz/google/adwords/';
408
  $save_remarket_tag=$this->_remarketTag($design, $res['tag_id']);
414
  return true;
415
  }
416
 
417
+ public function _allProductPrice(){
 
418
  $collection= Mage::getResourceModel('catalog/product_collection')->addAttributeToSelect('price')->addAttributeToFilter('status','1');
419
  $sum = 0;
420
  $count = 0;
425
  $count +=$stock;
426
  }
427
  }
428
+ return $sum;
429
  }
430
 
431
  public function _remarketTag($design ,$tag_id){
436
  return true;
437
  }
438
 
439
+ public function SetAccurateValueAction(){
440
  $url='';
 
441
  $param=$this->getRequest()->getParams();
442
  if($param['values']=='device'){
443
  $url=self::update_device_info.'?device='.$param['slide'];
460
  if($json_a['message']=='success'){
461
  $data =Mage::getModel('munoz/keyword')->saveAccuRate($param);
462
  }
463
+ }
464
+ public function _postCurl($url , $params){
465
+ $ch = curl_init();
466
+ curl_setopt($ch, CURLOPT_URL,$url);
467
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
468
+ curl_setopt($ch, CURLOPT_POST, true);
469
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
470
+ curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,0);
471
+ curl_setopt($ch,CURLOPT_TIMEOUT,400);
472
+ // $output contains the output string
473
+ $output = curl_exec($ch);
474
+ curl_close($ch);
475
+ return $json_a =json_decode($output,true);
476
+ }
477
+ public function _getClient_id() {
478
+ $url=Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
479
+ $disallowed = array('http://', 'https://');
480
+ foreach($disallowed as $d) {
481
+ if(strpos($url, $d) === 0) {
482
+ $u =str_replace($d, '', $url);
483
+ $url =str_replace('/', '', $u);
484
+ return md5($url);
485
+ }
486
+ }
487
+ return md5($url);
488
+ }
 
 
 
 
 
 
 
 
 
 
489
  }
490
  ?>
app/design/adminhtml/default/default/template/munoz/form.phtml CHANGED
@@ -87,6 +87,7 @@
87
  </div>
88
 
89
  <script type="text/javascript">
 
90
  $wk_jq(document ).ready(function() {
91
  $wk_jq(".actions").prependTo(".wizard");
92
  $wk_jq('.page-loader').css('display','none');
87
  </div>
88
 
89
  <script type="text/javascript">
90
+ var $wk_jq = jQuery.noConflict();
91
  $wk_jq(document ).ready(function() {
92
  $wk_jq(".actions").prependTo(".wizard");
93
  $wk_jq('.page-loader').css('display','none');
app/design/adminhtml/default/default/template/munoz/step1.phtml CHANGED
@@ -8,15 +8,11 @@
8
  </h1>
9
  </center>
10
  <center class="bottm-content">
11
-
12
- <p class="allow-acess-content">
13
-
14
  <?php echo $this->__(' Good, we are going to help you with the creation of all your campaigns with few clicks. It`s going to be so easy.<br>
15
  (Remember to select the mail account where you want to have your campaigns )'); ?>
16
  </p>
17
  <a href="#" class="btn primary allow_btn"><?php echo $this->__('Allow Access'); ?></a>
18
-
19
-
20
  <p class="allow-acess-content">
21
  <?php echo $this->__("If you don't have an Adwords Account is really easy to create it. Here's the official site:") ?> <a href="http://www.google.com/adwords/" target="_blank"><?php echo $this->__('Google Adwords') ?></a>
22
  </p>
@@ -24,28 +20,15 @@
24
  </center>
25
  <script>
26
  $j('.allow_btn').click(function(event) {
27
-
28
- var urls="http://manager.cleverppc.com/google_adwords?client_token=<?php echo $this->getClientToken(); ?>";
29
  var session_id="<?php echo $this->getClientToken(); ?>";
30
- /// $wk_jq('.category-loader').css('display','block');
31
  $j('.loader').css('display','block');
32
- $j('.wizard').css('opacity','0.5');
33
-
34
- var myWindow= window.open(urls,"popupWindow", "width=600,height=600,scrollbars=yes");
35
- //setTimeout(get_response_url(myWindow,urls,session_id), 2000);
36
- get_response_url(myWindow,session_id);
37
-
38
-
39
- //return false;
40
- // console.log(myWindow);
41
  });
42
- // $j('.category-loader').css('display','none');
43
-
44
-
45
- //});
46
  function get_response_url(myWindow,session_id){
47
-
48
- // alert(urls);
49
  $wk_jq.ajax({
50
  url :'<?php echo $this->getUrls("index/getCurlresponse"); ?>',
51
  type : "get",
@@ -53,13 +36,9 @@
53
  data : {'session_id':session_id},
54
  dataType: "text",
55
  success : function(content){
56
-
57
  if(content=='success'){
58
-
59
  set_parameter_curl();
60
-
61
  setTimeout(function(){
62
- // location.reload();
63
 
64
  }, 3000);
65
 
@@ -73,16 +52,16 @@
73
  }
74
  else{
75
 
76
- $j('.actions ul li:nth-child(even)').find('a:first').attr('href','');
77
- $j('.loader').css('display','block');
78
- $j('.wizard').css('opacity','0.5');
79
- $j('.category_second_step').removeClass("second_step");
80
- setTimeout(function(){get_response_url(myWindow,session_id);},
81
- 5000);
82
- setTimeout(function(){
83
- myWindow.close(),
84
- location.href = '<?php echo $this->getUrls('index/index');?>';
85
- },50000);
86
  }
87
 
88
  },
@@ -92,7 +71,6 @@
92
 
93
 
94
  // set client info aouth status
95
-
96
  function set_clint_info(){
97
  $wk_jq.ajax({
98
  url :'<?php echo $this->getUrls("index/SetcleintInfo"); ?>',
@@ -104,15 +82,10 @@
104
  if (reponse=='success') {
105
  location.reload();
106
  }
107
- }
108
-
109
  })
110
  }
111
-
112
-
113
-
114
  // end aouth status
115
-
116
  function set_parameter_curl(){
117
  $wk_jq.ajax({
118
  url :'<?php echo $this->getUrls("index/setParameter"); ?>',
@@ -122,35 +95,26 @@
122
  dataType: "text",
123
  success : function(reponse){
124
  if (reponse=='success') {
125
- set_clint_info();
126
-
127
-
128
-
129
- }
130
  }
 
131
 
132
- })
133
- }
134
-
135
  // for aouth checking
136
  window.onload = function() {
137
- var aouth="<?php echo $this->getAouth() ?>";
138
-
139
- if(aouth==0){
140
- $j('.actions ul li:nth-child(even)').find('a:first').attr('href','');
141
- }else{
142
- $j(".actions ul li a" ).trigger( "click" );
143
  $j(".steps ul .first" ).removeClass( "done" );
144
  $j(".steps ul .first" ).addClass( "disabled" );
145
- $j(".actions ul .first" ).addClass( "disabled" );
146
- $j('.actions ul li:nth-child(odd)').addClass("disabled ui-li-has-thumb");
147
- $j('.actions ul li:nth-child(odd)').addClass('ui-li-has-thumb');
148
-
149
-
150
-
151
- }
152
-
153
- };
154
  // end aouth checking
155
- </script>
156
-
8
  </h1>
9
  </center>
10
  <center class="bottm-content">
11
+ <p class="allow-acess-content">
 
 
12
  <?php echo $this->__(' Good, we are going to help you with the creation of all your campaigns with few clicks. It`s going to be so easy.<br>
13
  (Remember to select the mail account where you want to have your campaigns )'); ?>
14
  </p>
15
  <a href="#" class="btn primary allow_btn"><?php echo $this->__('Allow Access'); ?></a>
 
 
16
  <p class="allow-acess-content">
17
  <?php echo $this->__("If you don't have an Adwords Account is really easy to create it. Here's the official site:") ?> <a href="http://www.google.com/adwords/" target="_blank"><?php echo $this->__('Google Adwords') ?></a>
18
  </p>
20
  </center>
21
  <script>
22
  $j('.allow_btn').click(function(event) {
23
+ var urls="http://manager.cleverppc.com/google_adwords?client_token=<?php echo $this->getClientToken(); ?>";
 
24
  var session_id="<?php echo $this->getClientToken(); ?>";
 
25
  $j('.loader').css('display','block');
26
+ $j('.wizard').css('opacity','0.5');
27
+ var myWindow= window.open(urls,"popupWindow", "width=600,height=600,scrollbars=yes");
28
+ get_response_url(myWindow,session_id);
 
 
 
 
 
 
29
  });
30
+
 
 
 
31
  function get_response_url(myWindow,session_id){
 
 
32
  $wk_jq.ajax({
33
  url :'<?php echo $this->getUrls("index/getCurlresponse"); ?>',
34
  type : "get",
36
  data : {'session_id':session_id},
37
  dataType: "text",
38
  success : function(content){
 
39
  if(content=='success'){
 
40
  set_parameter_curl();
 
41
  setTimeout(function(){
 
42
 
43
  }, 3000);
44
 
52
  }
53
  else{
54
 
55
+ $j('.actions ul li:nth-child(even)').find('a:first').attr('href','');
56
+ $j('.loader').css('display','block');
57
+ $j('.wizard').css('opacity','0.5');
58
+ $j('.category_second_step').removeClass("second_step");
59
+ setTimeout(function(){get_response_url(myWindow,session_id);},
60
+ 5000);
61
+ setTimeout(function(){
62
+ myWindow.close(),
63
+ location.href = '<?php echo $this->getUrls('index/index');?>';
64
+ },50000);
65
  }
66
 
67
  },
71
 
72
 
73
  // set client info aouth status
 
74
  function set_clint_info(){
75
  $wk_jq.ajax({
76
  url :'<?php echo $this->getUrls("index/SetcleintInfo"); ?>',
82
  if (reponse=='success') {
83
  location.reload();
84
  }
85
+ }
 
86
  })
87
  }
 
 
 
88
  // end aouth status
 
89
  function set_parameter_curl(){
90
  $wk_jq.ajax({
91
  url :'<?php echo $this->getUrls("index/setParameter"); ?>',
95
  dataType: "text",
96
  success : function(reponse){
97
  if (reponse=='success') {
98
+ set_clint_info();
99
+
 
 
 
100
  }
101
+ }
102
 
103
+ })
104
+ }
 
105
  // for aouth checking
106
  window.onload = function() {
107
+ var aouth="<?php echo $this->getAouth() ?>";
108
+ if(aouth==0){
109
+ $j('.actions ul li:nth-child(even)').find('a:first').attr('href','');
110
+ }else{
111
+ $j(".actions ul li a" ).trigger( "click" );
 
112
  $j(".steps ul .first" ).removeClass( "done" );
113
  $j(".steps ul .first" ).addClass( "disabled" );
114
+ $j(".actions ul .first" ).addClass( "disabled" );
115
+ $j('.actions ul li:nth-child(odd)').addClass("disabled ui-li-has-thumb");
116
+ $j('.actions ul li:nth-child(odd)').addClass('ui-li-has-thumb');
117
+ }
118
+ };
 
 
 
 
119
  // end aouth checking
120
+ </script>
 
app/design/adminhtml/default/default/template/munoz/step2.phtml CHANGED
@@ -1,6 +1,5 @@
1
  <fieldset>
2
  <legend><?php echo $this->__('Profile Information'); ?></legend>
3
-
4
  <div class="main-category-box">
5
  <div class="product_category_left">
6
  <img src="<?php echo $this->getMediaUrl() ?>ico1.png">
@@ -173,10 +172,7 @@ Try to select as many as possible, this will allow you to have bigger opportunit
173
  }
174
  // categor();
175
  // console.log(cheselected);
176
-
177
-
178
-
179
- $wk_jq.ajax({
180
  url :'<?php echo $this->getUrls("index/SetCategory");?>',
181
  type : "get",
182
  data : {Cat:checked,unselct:cheselected},
@@ -214,22 +210,8 @@ Try to select as many as possible, this will allow you to have bigger opportunit
214
  document.getElementById('country-message').innerHTML = "Please Select Atleast one Country";
215
  $wk_jq('.actions ul li:nth-child(even)').find('a:first').attr('href','');
216
  }
217
- // });
218
-
219
- // alert($wk_jq(this).val());
220
- //if(!$wk_jq(this).val() || $wk_jq(this).val()==0 ){
221
- // document.getElementById('country-message').innerHTML = "Please Select Atleast one Country";
222
- // $wk_jq('.actions ul li:nth-child(even)').find('a:first').attr('href','');
223
- //
224
- //}else{
225
- // $wk_jq('.actions ul li:nth-child(even)').find('a:first').attr('href','next');
226
- // document.getElementById('country-message').innerHTML = "";
227
- //}
228
- })
229
-
230
- // end for multiselect validation
231
-
232
-
233
  $wk_jq('#wk_bodymain input:checkbox').attr('checked', 'checked');
234
  $wk_jq("#wk_bodymain").delegate('.wk_plus ,.wk_plusend,.wk_minus, .wk_minusend ',"click",function(){
235
  var thisthis=$wk_jq(this);
@@ -304,7 +286,7 @@ Try to select as many as possible, this will allow you to have bigger opportunit
304
  }
305
  });
306
  })($wk_jq);
307
- function fnSelectAll(check){
308
  $wk_jq(check).closest("ul").find(":checkbox").prop("checked",check.checked);
309
  // $wk_jq(check).closest("ul").find(":checkbox").prop("checked",check.checked);
310
  if( $wk_jq('#wk_bodymain:checkbox:checked').length < 1) {
@@ -320,20 +302,5 @@ Try to select as many as possible, this will allow you to have bigger opportunit
320
  else{
321
  allcheck.clear();
322
  }
323
- }
324
-
325
-
326
- </script>
327
- <script>
328
- //var expanded = false;
329
- //function showCheckboxes() {
330
- // var checkboxes = document.getElementById("checkboxes");
331
- // if (!expanded) {
332
- // checkboxes.style.display = "block";
333
- // expanded = true;
334
- // } else {
335
- // checkboxes.style.display = "none";
336
- // expanded = false;
337
- // }
338
- //}
339
- </script>
1
  <fieldset>
2
  <legend><?php echo $this->__('Profile Information'); ?></legend>
 
3
  <div class="main-category-box">
4
  <div class="product_category_left">
5
  <img src="<?php echo $this->getMediaUrl() ?>ico1.png">
172
  }
173
  // categor();
174
  // console.log(cheselected);
175
+ $wk_jq.ajax({
 
 
 
176
  url :'<?php echo $this->getUrls("index/SetCategory");?>',
177
  type : "get",
178
  data : {Cat:checked,unselct:cheselected},
210
  document.getElementById('country-message').innerHTML = "Please Select Atleast one Country";
211
  $wk_jq('.actions ul li:nth-child(even)').find('a:first').attr('href','');
212
  }
213
+ })
214
+ // end for multiselect validation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  $wk_jq('#wk_bodymain input:checkbox').attr('checked', 'checked');
216
  $wk_jq("#wk_bodymain").delegate('.wk_plus ,.wk_plusend,.wk_minus, .wk_minusend ',"click",function(){
217
  var thisthis=$wk_jq(this);
286
  }
287
  });
288
  })($wk_jq);
289
+ function fnSelectAll(check){
290
  $wk_jq(check).closest("ul").find(":checkbox").prop("checked",check.checked);
291
  // $wk_jq(check).closest("ul").find(":checkbox").prop("checked",check.checked);
292
  if( $wk_jq('#wk_bodymain:checkbox:checked').length < 1) {
302
  else{
303
  allcheck.clear();
304
  }
305
+ }
306
+ </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/munoz/step3.phtml CHANGED
@@ -1,5 +1,4 @@
1
-
2
- <?php $category_key= $this->getCategoryKeywords();
3
  $cat_ids=array();
4
  foreach ($category_key as $cat_id) {
5
  array_push($cat_ids,$cat_id->getCategoryId());
@@ -7,80 +6,72 @@ foreach ($category_key as $cat_id) {
7
  $add_keywords=$this->add_keywords();
8
  ?>
9
  <fieldset>
10
- <script language="javascript">
11
-
12
- var count = 1;
13
- function addTextBox()
14
- {
15
-
16
- count +=1;
17
-
18
- var divBoxCat = document.createElement('DIV');
19
- divBoxCat.className = "add-key-word";
20
- divBoxCat.innerHTML = "<button class='save_category key_save_button add-key-word' value='cat_"+count+"'><?php echo $this->__('save'); ?></button><input class='add-key-word' type='text' name='addkeyword"+i+"'><i onclick ='RemoveTextBox(this)' class='fa fa-trash-o fa-2x' aria-hidden='true'></i>";
21
-
22
- document.getElementById("add_key").appendChild(divBoxCat);
23
- }
24
- function RemoveTextBoxKey(div,id) {
25
- var keybox_div = document.getElementById('add_key');
26
- var count = keybox_div.getElementsByTagName('div').length;
27
- if(count ==3)
28
- {
29
- alert('Can Not Remove');
30
- //return false;
31
- }
32
- else if (id) {
33
- if (confirm("Are you sure?")) {
34
- $wk_jq.ajax({
35
- url :'<?php echo $this->getUrls("index/deleteKeyword"); ?>',
36
- type : "get",
37
- //async: false,
38
- data : {id:id,'type':'category'},
39
- dataType: "json",
40
- success : function(content){
41
-
42
-
43
- }
44
- });
45
- document.getElementById("add_key").removeChild(div.parentNode);
46
- //document.getElementById("add_key_1").removeChild(div.parentNode);
47
- }
48
- }
49
-
50
-
51
- else{
52
- document.getElementById("add_key").removeChild(div.parentNode);
53
- }
54
- }
55
- var $wk_jq=jQuery.noConflict();
56
- // $wk_jq( document ).ready(function() {
57
- $wk_jq( "#add_key" ).on( "click", ".save_category", function() {
58
- var textval = $wk_jq(this).closest(".add-key-word").next().val();
59
- var Id= $wk_jq(this).val();
60
- if(textval==''){
61
- alert('please enter textbox value');
62
- return false;
63
- }
64
- $wk_jq.ajax({
65
- url :'<?php echo $this->getUrls("index/saveKeyword"); ?>',
66
- type : "get",
67
- //async: false,
68
- data : {id:Id,'value':textval,'type':'category'},
69
- dataType: "json",
70
- success : function(content){
71
- if(content.response){
72
- alert(content.response);
73
- }
74
-
75
- }
76
 
77
- });
78
- // });
79
- });
80
-
81
- </script>
82
 
83
- <div class="section" >
84
  <div class="keyword_logo" >
85
  <img class="keyword-img" height='64' src="<?php echo $this->getMediaUrl(); ?>imgpsh_fullsize.png">
86
  </div>
@@ -92,39 +83,17 @@ $add_keywords=$this->add_keywords();
92
 
93
  </div>
94
  </div>
95
- <div class="product_keyword_right">
96
-
97
-
98
  <div class="section-content">
99
 
100
  <div class="section-row" style="">
101
  <div class="section-cell" >
102
-
103
  <p><?php //echo $this->__('Suggestions...'); ?> </p>
104
  <div id="ajax_conten"></div>
105
  <div id="add_key">
106
- <?php
107
- // $Black_list= $helper->blacklist();
108
- $Black_list = array("","Default Category","home page","homepage","Frontpage","Brands","All","New products","New release","New Arrivals","sale","sales","On sale","New Arrival","All products","Products","Man","Men","Woman","Accessories","VIP");
109
- // $all_cat = Mage::getModel('catalog/category')->getCollection()->addAttributeToSelect('*')->addIsActiveFilter();
110
- //$all_cat->addAttributeToFilter('is_active', 1)
111
- //->addAttributeToFilter('include_in_menu', 1);
112
- // foreach($all_cat as $_category) {
113
- //
114
- // if(!in_array($_category->getId(), $cat_ids)){
115
- // if(!in_array($_category->getName(), $Black_list)){
116
- // if($_category->getMetaKeywords()){
117
- // $value=$_category->getName().",".$_category->getMetaKeywords();
118
- // }else{
119
- // $value =$_category->getName();
120
- // }
121
- ?>
122
-
123
-
124
-
125
- <?php // } } }
126
-
127
- if(count($category_key) >0){
128
  foreach ($category_key as $cat) { ?>
129
  <div class='add-key-word'>
130
  <button class='key_save_button add-key-word save_category' value='<?php echo $cat->getCategoryId(); ?>'> <?php echo $this->__('save'); ?>
@@ -136,23 +105,15 @@ $add_keywords=$this->add_keywords();
136
  </div>
137
 
138
  <?php } } ?>
139
-
140
-
141
-
142
-
143
-
144
-
145
  </div>
 
146
  <div class="add-key-save">
147
  <a onClick="return addTextBox()" href="javascript:void(0)" class="primary add-box"><?php echo $this->__('Add Keyword Tip');?></a>
148
 
149
  </div>
150
  <div class="add-key-bottom"><hr></div>
151
-
152
-
153
-
154
  </div>
155
  </div>
156
  </div>
157
  </div>
158
- </fieldset>
1
+ <?php $category_key= $this->getCategoryKeywords();
 
2
  $cat_ids=array();
3
  foreach ($category_key as $cat_id) {
4
  array_push($cat_ids,$cat_id->getCategoryId());
6
  $add_keywords=$this->add_keywords();
7
  ?>
8
  <fieldset>
9
+ <script language="javascript">
10
+ var count = 1;
11
+ function addTextBox()
12
+ {
13
+ count +=1;
14
+ var divBoxCat = document.createElement('DIV');
15
+ divBoxCat.className = "add-key-word";
16
+ divBoxCat.innerHTML = "<button class='save_category key_save_button add-key-word' value='cat_"+count+"'><?php echo $this->__('save'); ?></button><input class='add-key-word' type='text' name='addkeyword"+i+"'><i onclick ='RemoveTextBox(this)' class='fa fa-trash-o fa-2x' aria-hidden='true'></i>";
17
+ document.getElementById("add_key").appendChild(divBoxCat);
18
+ }
19
+
20
+ function RemoveTextBoxKey(div,id) {
21
+ var keybox_div = document.getElementById('add_key');
22
+ var count = keybox_div.getElementsByTagName('div').length;
23
+ if(count ==3)
24
+ {
25
+ alert('Can Not Remove');
26
+ }
27
+ else if (id) {
28
+ if (confirm("Are you sure?")) {
29
+ $wk_jq.ajax({
30
+ url :'<?php echo $this->getUrls("index/deleteKeyword"); ?>',
31
+ type : "get",
32
+ //async: false,
33
+ data : {id:id,'type':'category'},
34
+ dataType: "json",
35
+ success : function(content){
36
+
37
+ }
38
+ });
39
+ document.getElementById("add_key").removeChild(div.parentNode);
40
+ }
41
+ }
42
+ else{
43
+ document.getElementById("add_key").removeChild(div.parentNode);
44
+ }
45
+ }
46
+
47
+ var $wk_jq=jQuery.noConflict();
48
+ $wk_jq( "#add_key" ).on( "click", ".save_category", function() {
49
+ var textval = $wk_jq(this).closest(".add-key-word").next().val();
50
+ var Id= $wk_jq(this).val();
51
+ if(textval==''){
52
+ alert('please enter textbox value');
53
+ return false;
54
+ }
55
+ $wk_jq.ajax({
56
+ url :'<?php echo $this->getUrls("index/saveKeyword"); ?>',
57
+ type : "get",
58
+ //async: false,
59
+ data : {id:Id,'value':textval,'type':'category'},
60
+ dataType: "json",
61
+ success : function(content){
62
+ if(content.response){
63
+ alert(content.response);
64
+ }
65
+
66
+ }
67
+
68
+ });
69
+ // });
70
+ });
 
 
 
 
71
 
72
+ </script>
 
 
 
 
73
 
74
+ <div class="section" >
75
  <div class="keyword_logo" >
76
  <img class="keyword-img" height='64' src="<?php echo $this->getMediaUrl(); ?>imgpsh_fullsize.png">
77
  </div>
83
 
84
  </div>
85
  </div>
86
+ <div class="product_keyword_right">
 
 
87
  <div class="section-content">
88
 
89
  <div class="section-row" style="">
90
  <div class="section-cell" >
 
91
  <p><?php //echo $this->__('Suggestions...'); ?> </p>
92
  <div id="ajax_conten"></div>
93
  <div id="add_key">
94
+ <?php
95
+ $Black_list = array("","Default Category","home page","homepage","Frontpage","Brands","All","New products","New release","New Arrivals","sale","sales","On sale","New Arrival","All products","Products","Man","Men","Woman","Accessories","VIP");
96
+ if(count($category_key) >0){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  foreach ($category_key as $cat) { ?>
98
  <div class='add-key-word'>
99
  <button class='key_save_button add-key-word save_category' value='<?php echo $cat->getCategoryId(); ?>'> <?php echo $this->__('save'); ?>
105
  </div>
106
 
107
  <?php } } ?>
 
 
 
 
 
 
108
  </div>
109
+
110
  <div class="add-key-save">
111
  <a onClick="return addTextBox()" href="javascript:void(0)" class="primary add-box"><?php echo $this->__('Add Keyword Tip');?></a>
112
 
113
  </div>
114
  <div class="add-key-bottom"><hr></div>
 
 
 
115
  </div>
116
  </div>
117
  </div>
118
  </div>
119
+ </fieldset>
app/design/adminhtml/default/default/template/munoz/step4.phtml CHANGED
@@ -24,35 +24,26 @@
24
  });
25
 
26
  });
27
-
28
-
29
  if( $wk_jq(".preview_section-row > div").length >3){
30
  $wk_jq( ".preview_content" ).last().css( "display", "none" );
31
  }
32
-
33
  function addTextBoxCall()
34
  {
35
-
36
- var maindiv = document.getElementById('add_key_1');
37
- var count = maindiv.getElementsByTagName('div').length;
38
- // var count = 1;
39
- count += 1;
40
-
41
-
42
- if(count ==8)
43
- {
44
- alert('Can Not Add more Tips');
45
- }
46
- else{
47
- var divBox = document.createElement('DIV');
48
- divBox.className = "add-key-word";
49
- divBox.innerHTML = "<button class='key_save_button add-key-word' value='ac_"+count+"'>save</button><input class='add-key-word' value='' type='text' name='addkeyword'>&nbsp&nbsp<i onclick ='RemoveTextBox(this)' class='fa fa-trash-o fa-2x' aria-hidden='true'></i>";
50
- document.getElementById("add_key_1").appendChild(divBox);
51
- }
52
-
53
-
54
-
55
  }
 
56
  function RemoveTextBox(div,id) {
57
  var maindiv = document.getElementById('add_key_1');
58
  var count = maindiv.getElementsByTagName('div').length;
@@ -81,8 +72,7 @@
81
  document.getElementById("add_key_1").removeChild(div.parentNode);
82
  }
83
  }
84
-
85
- </script>
86
  <div class="keyword_logo" >
87
  <img src="<?php echo $this->getMediaUrl() ?>ico5.png" height='64'>
88
  </div>
@@ -119,20 +109,10 @@
119
  <input class='add-key-word test_key' value="<?php echo $keywords->getKeywordTitle(); ?>" type='text' name='addkeyword'>
120
  <i onclick ='RemoveTextBox(this,<?php echo $keywords->getId(); ?>)' class="fa fa-trash-o fa-2x" aria-hidden="true"></i>
121
  </div>
122
-
123
-
124
  <?php }// end foreach
125
-
126
  } else{// end if
127
-
128
  ?>
129
-
130
-
131
-
132
-
133
  <?php } ?>
134
-
135
-
136
  </div>
137
  <div class="add-key-save">
138
  <a onClick="return addTextBoxCall()" href="javascript:void(0)" class="primary add-box"><?php echo $this->__('New Ad Tip');?></a>
@@ -166,7 +146,6 @@ foreach ($getSubcat as $subchild) {
166
  }
167
 
168
  }
169
-
170
  $category_model = Mage::getModel("catalog/category");
171
  $main_cat =Mage::getModel('catalog/category')->getCollection()->addAttributeToSelect('*')->addIsActiveFilter()
172
  ->addAttributeToFilter('is_active', 1)
@@ -186,9 +165,9 @@ foreach ($main_cat as $random) {
186
  if($cat_count <=1){
187
  $collection = Mage::getModel('catalog/product')
188
  ->getCollection()
189
- ->joinField('category_id', 'catalog/category_product', 'category_id', 'product_id = entity_id', null, 'left')
190
- ->addAttributeToSelect('*')
191
- ->addAttributeToFilter('category_id', array('in' => $random->getId()));
192
  $collection->getSelect()->limit(1);
193
  if(count($collection) >0){
194
  ?>
24
  });
25
 
26
  });
 
 
27
  if( $wk_jq(".preview_section-row > div").length >3){
28
  $wk_jq( ".preview_content" ).last().css( "display", "none" );
29
  }
 
30
  function addTextBoxCall()
31
  {
32
+ var maindiv = document.getElementById('add_key_1');
33
+ var count = maindiv.getElementsByTagName('div').length;
34
+ count += 1;
35
+ if(count ==8)
36
+ {
37
+ alert('Can Not Add more Tips');
38
+ }
39
+ else{
40
+ var divBox = document.createElement('DIV');
41
+ divBox.className = "add-key-word";
42
+ divBox.innerHTML = "<button class='key_save_button add-key-word' value='ac_"+count+"'>save</button><input class='add-key-word' value='' type='text' name='addkeyword'>&nbsp&nbsp<i onclick ='RemoveTextBox(this)' class='fa fa-trash-o fa-2x' aria-hidden='true'></i>";
43
+ document.getElementById("add_key_1").appendChild(divBox);
44
+ }
 
 
 
 
 
 
 
45
  }
46
+
47
  function RemoveTextBox(div,id) {
48
  var maindiv = document.getElementById('add_key_1');
49
  var count = maindiv.getElementsByTagName('div').length;
72
  document.getElementById("add_key_1").removeChild(div.parentNode);
73
  }
74
  }
75
+ </script>
 
76
  <div class="keyword_logo" >
77
  <img src="<?php echo $this->getMediaUrl() ?>ico5.png" height='64'>
78
  </div>
109
  <input class='add-key-word test_key' value="<?php echo $keywords->getKeywordTitle(); ?>" type='text' name='addkeyword'>
110
  <i onclick ='RemoveTextBox(this,<?php echo $keywords->getId(); ?>)' class="fa fa-trash-o fa-2x" aria-hidden="true"></i>
111
  </div>
 
 
112
  <?php }// end foreach
 
113
  } else{// end if
 
114
  ?>
 
 
 
 
115
  <?php } ?>
 
 
116
  </div>
117
  <div class="add-key-save">
118
  <a onClick="return addTextBoxCall()" href="javascript:void(0)" class="primary add-box"><?php echo $this->__('New Ad Tip');?></a>
146
  }
147
 
148
  }
 
149
  $category_model = Mage::getModel("catalog/category");
150
  $main_cat =Mage::getModel('catalog/category')->getCollection()->addAttributeToSelect('*')->addIsActiveFilter()
151
  ->addAttributeToFilter('is_active', 1)
165
  if($cat_count <=1){
166
  $collection = Mage::getModel('catalog/product')
167
  ->getCollection()
168
+ //->joinField('category_id', 'catalog/category_product', 'category_id', 'product_id = entity_id', null, 'left')
169
+ ->addAttributeToSelect('*');
170
+ //->addAttributeToFilter('category_id', array('in' => $random->getId()));
171
  $collection->getSelect()->limit(1);
172
  if(count($collection) >0){
173
  ?>
app/design/adminhtml/default/default/template/munoz/step5.phtml CHANGED
@@ -1,62 +1,56 @@
1
 
2
  <div class="step5_main_wrapper" style="">
3
 
4
- <center>
5
- <img class="step_5_logo" src="<?php echo $this->getMediaUrl();?>ico4.png" height='128'>
6
- </center>
7
 
8
- <h1>
9
- <?php echo $this->__('High five! You rock'); ?>
10
- </h1>
11
- <p>
12
- <?php echo $this->__('We have all the information we need, thanks so much.</br> Click the button and you will recive a confirmation email.'); ?>
13
- </p>
14
- <h2>
15
-
16
- <?php echo $this->__('How much do you want to spend in Google Adwords ?'); ?>
17
- </h2>
18
  <center class="price_slider_text">
19
  <font style="font-size: 3em">
20
- <sup id="amount">
21
- <?php //echo $this->__('USD $') ?>
22
-
23
- </sup></font>
24
-
25
- <font class="slider_day"> <?php echo $this->__('per day'); ?>
26
  </font>
27
- <div class="price_slider"> </div>
28
- <div id="slider-range"></div>
29
- </center>
30
 
31
- <div id="slider_budget_estimated" class="step_5_slider">
32
-
33
- </div>
 
 
 
 
34
  <p>
35
- <?php echo $this->__("* Your Clever campaigns will be under your daily limit budget, so you don't need to worry."); ?>
36
-
37
  </p>
38
  <p>
39
- <?php echo $this->__("Remember that Clever is a free software, and this budget will be fully spent on Google Adwords. "); ?>
40
  </p>
41
 
42
  <center>
43
- <div style="display:none" class="page-loader_finish"><?php $this->__("Pleaswe Wait We Posting Data"); ?></div>
44
- <form action="<?php echo $this->getUrls('excelsheet/CreateExelShet'); ?>">
45
- <button type="submit" class="btn primary finish">
 
 
 
 
46
 
47
- <input type="hidden" name="budget" value="15" id="budget">
48
- <input type="hidden" name="countries" value="" id="countries">
49
- <input type="hidden" name="checkecCat" value="" id="checkecCat">
50
- <input type="hidden" name="unselectCat" value="" id="unselectCat">
51
-
52
- <?php echo $this->__('Finish'); ?>
53
- </button>
54
- </form>
55
 
56
  </center>
57
  <center>
58
 
59
- <input checked type="checkbox" id="finish" class="icheck-me">
60
  <label for="finish"><?php echo $this->__('Activate Campaigns when ready.'); ?></label>
61
  </center>
62
 
@@ -64,7 +58,7 @@
64
  <!--<script src="//code.jquery.com/jquery-1.10.2.js"></script>-->
65
 
66
 
67
- <script type="text/javascript">
68
  var $wk_jq=jQuery.noConflict();
69
  $wk_jq(".finish").click(function(){
70
  if($wk_jq('.icheck-me').is(":checked")) {
@@ -79,8 +73,7 @@ $wk_jq(".finish").click(function(){
79
 
80
  });
81
 
82
- $wk_jq(function() {
83
-
84
  var country_code = "<?php echo Mage::getStoreConfig('general/country/default'); ?>";
85
  var curency_Symbol="<?php echo Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();?>";
86
  $wk_jq( "#slider-range" ).slider({
1
 
2
  <div class="step5_main_wrapper" style="">
3
 
4
+ <center>
5
+ <img class="step_5_logo" src="<?php echo $this->getMediaUrl();?>ico4.png" height='128'>
6
+ </center>
7
 
8
+ <h1>
9
+ <?php echo $this->__('High five! You rock'); ?>
10
+ </h1>
11
+ <p>
12
+ <?php echo $this->__('We have all the information we need, thanks so much.</br> Click the button and you will recive a confirmation email.'); ?>
13
+ </p>
14
+ <h2>
15
+ <?php echo $this->__('How much do you want to spend in Google Adwords ?'); ?>
16
+ </h2>
 
17
  <center class="price_slider_text">
18
  <font style="font-size: 3em">
19
+ <sup id="amount">
20
+ </sup>
 
 
 
 
21
  </font>
 
 
 
22
 
23
+ <font class="slider_day"> <?php echo $this->__('per day'); ?></font>
24
+ <div class="price_slider"> </div>
25
+ <div id="slider-range"></div>
26
+ </center>
27
+ <!-- price slider --->
28
+ <div id="slider_budget_estimated" class="step_5_slider"></div>
29
+ <!-- end price slider --->
30
  <p>
31
+ <?php echo $this->__("* Your Clever campaigns will be under your daily limit budget, so you don't need to worry."); ?>
 
32
  </p>
33
  <p>
34
+ <?php echo $this->__("Remember that Clever is a free software, and this budget will be fully spent on Google Adwords. "); ?>
35
  </p>
36
 
37
  <center>
38
+ <div style="display:none" class="page-loader_finish"><?php $this->__("Pleaswe Wait We Posting Data"); ?></div>
39
+ <form action="<?php echo $this->getUrls('excelsheet/CreateExelShet'); ?>">
40
+ <button type="submit" class="btn primary finish">
41
+ <input type="hidden" name="budget" value="15" id="budget">
42
+ <input type="hidden" name="countries" value="" id="countries">
43
+ <input type="hidden" name="checkecCat" value="" id="checkecCat">
44
+ <input type="hidden" name="unselectCat" value="" id="unselectCat">
45
 
46
+ <?php echo $this->__('Finish'); ?>
47
+ </button>
48
+ </form>
 
 
 
 
 
49
 
50
  </center>
51
  <center>
52
 
53
+ <input checked type="checkbox" id="finish" class="icheck-me">
54
  <label for="finish"><?php echo $this->__('Activate Campaigns when ready.'); ?></label>
55
  </center>
56
 
58
  <!--<script src="//code.jquery.com/jquery-1.10.2.js"></script>-->
59
 
60
 
61
+ <script type="text/javascript">
62
  var $wk_jq=jQuery.noConflict();
63
  $wk_jq(".finish").click(function(){
64
  if($wk_jq('.icheck-me').is(":checked")) {
73
 
74
  });
75
 
76
+ $wk_jq(function() {
 
77
  var country_code = "<?php echo Mage::getStoreConfig('general/country/default'); ?>";
78
  var curency_Symbol="<?php echo Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();?>";
79
  $wk_jq( "#slider-range" ).slider({
app/design/adminhtml/default/default/template/munoz/waiting.phtml CHANGED
@@ -55,7 +55,8 @@
55
  // print_r($wholekeyword);
56
  ?>
57
 
58
- <script src="<?php echo $this->getSkinUrl(); ?>munoz/js/jquery-1.9.1.min.js "></script>
 
59
  <script>
60
  $wk_jq=jQuery.noConflict();
61
  var budget ='<?php echo $wholekeyword['budget']; ?>';
@@ -63,8 +64,6 @@
63
  var checkecCat ='<?php echo $wholekeyword['checkecCat']; ?>';
64
  var unselectCat ='<?php echo $wholekeyword['unselectCat']; ?>';
65
  window.onload = function() {
66
-
67
-
68
  $wk_jq.ajax({
69
  url :'<?php echo $this->getUrls("index/BackGroundProcess"); ?>',
70
  type : "get",
55
  // print_r($wholekeyword);
56
  ?>
57
 
58
+ <?php $js=Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?>
59
+ <script src="<?php echo $js ?>munoz/js/jquery-1.9.1.min.js "></script>
60
  <script>
61
  $wk_jq=jQuery.noConflict();
62
  var budget ='<?php echo $wholekeyword['budget']; ?>';
64
  var checkecCat ='<?php echo $wholekeyword['checkecCat']; ?>';
65
  var unselectCat ='<?php echo $wholekeyword['unselectCat']; ?>';
66
  window.onload = function() {
 
 
67
  $wk_jq.ajax({
68
  url :'<?php echo $this->getUrls("index/BackGroundProcess"); ?>',
69
  type : "get",
app/design/frontend/base/default/template/munoz/google/adwords/conversion.phtml CHANGED
@@ -1,20 +0,0 @@
1
- <!-- Google Code for purchase_conversion_cleverppc Conversion Page -->
2
- <script type="text/javascript">
3
- /* <![CDATA[ */
4
- var google_conversion_id = 940384895;
5
- var google_conversion_language = "en";
6
- var google_conversion_format = "2";
7
- var google_conversion_color = "ffffff";
8
- var google_conversion_label = "PJCiCN7nsGUQ_8S0wAM";
9
- var google_conversion_value = 4007045;
10
- var google_conversion_currency = "INR";
11
- var google_remarketing_only = false;
12
- /* ]]> */
13
- </script>
14
- <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
15
- </script>
16
- <noscript>
17
- <div style="display:inline;">
18
- <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/940384895/?value=4007045&amp;currency_code=INR&amp;label=PJCiCN7nsGUQ_8S0wAM&amp;guid=ON&amp;script=0"/>
19
- </div>
20
- </noscript>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/munoz/google/adwords/remarket_tag.phtml CHANGED
@@ -7,7 +7,7 @@
7
  <!-- Google Code for Remarketing Tag -->
8
  <script type="text/javascript">
9
  /* <![CDATA[ */
10
- var google_conversion_id =ramrket_id;
11
  var google_custom_params = window.google_tag_params;
12
  var google_remarketing_only = true;
13
  /* ]]> */
@@ -16,6 +16,6 @@
16
  </script>
17
  <noscript>
18
  <div style="display:inline;">
19
- <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/ramrket_id/?value=0&amp;guid=ON&amp;script=0"/>
20
  </div>
21
  </noscript>
7
  <!-- Google Code for Remarketing Tag -->
8
  <script type="text/javascript">
9
  /* <![CDATA[ */
10
+ var google_conversion_id =874326568;
11
  var google_custom_params = window.google_tag_params;
12
  var google_remarketing_only = true;
13
  /* ]]> */
16
  </script>
17
  <noscript>
18
  <div style="display:inline;">
19
+ <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/874326568/?value=0&amp;guid=ON&amp;script=0"/>
20
  </div>
21
  </noscript>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>clever_adwords</name>
4
- <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
@@ -21,9 +21,9 @@ No work from your side, &lt;b&gt;we will upload all campaigns for you.&lt;/b&gt;
21
  &lt;h2&gt;</description>
22
  <notes>Fixed minor bugs</notes>
23
  <authors><author><name>Rodrigo</name><user>Rodrigo</user><email>rodrigo@cleverppc.com</email></author></authors>
24
- <date>2016-08-30</date>
25
- <time>13:07:30</time>
26
- <contents><target name="magelocal"><dir name="Rodrigo"><dir name="Munoz"><dir name="Block"><dir name="Adminhtml"><file name="Form.php" hash="54444c96513238d9c562c540f9d94916"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fc1bcf8c0fb907db2a545ca518af1fcf"/></dir><dir name="Model"><file name="Keyword.php" hash="f0e4ff03e65f91ff5b24e3246e9e3636"/><dir name="Mysql4"><dir name="Keyword"><file name="Collection.php" hash="5e74a7fc484cb68f003d8d843fad7852"/></dir><file name="Keyword.php" hash="b3ff64494c92d5ca070ebf0a33d2c072"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ExcelsheetController.php" hash="0fb1074059edf54c21413cb215175ff4"/><file name="IndexController.php" hash="fc934054dc9f8667892f7005e86a4b62"/></dir><file name="IndexController.php" hash="fa73f9ae7feb2e3fa80edea3e8774838"/></dir><dir name="etc"><file name="adminhtml.xml" hash="cdf47fa749068b411c2704fda8eb4444"/><file name="config.xml" hash="516d1ae5dcdf5cb9ce5bdba33c540a1c"/><file name="system.xml" hash="b1eec31001ae641320cc79f86a62f760"/></dir><dir name="sql"><dir name="keyword_setup"><file name="mysql4-install-0.1.0.php" hash="854409a2d6bff834005798d4d0368f54"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Rodrigo_Munoz.xml" hash="6b1a61c409f48a95f87c61d678a26a42"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="munoz.xml" hash="5855ebab13f8e3da65c4fe4e9a3f1e2c"/></dir><dir name="template"><dir name="munoz"><file name="accurate.phtml" hash="68b76695cc680381d808c0c82fa54a18"/><file name="dashboard.phtml" hash="771ef9cedfed14f9cd500e1010ff6a34"/><file name="form.phtml" hash="8cd9e5f3009cb70449b597ae0e71d9e6"/><file name="step1.phtml" hash="538a3e757cba14cb58185459fb4fd976"/><file name="step2.phtml" hash="3fca6072ed0de6face5a14f5868b57ab"/><file name="step3.phtml" hash="851a245ca5f910653644fcbe2ef27d41"/><file name="step4.phtml" hash="ed94768698daf4e4333624f5ed980402"/><file name="step5.phtml" hash="016382faed88f6a64456d5997a3036aa"/><file name="switch.phtml" hash="0b4affaa8e4e9bfb78d1ed36a6ae1c8f"/><file name="waiting.phtml" hash="81cc9b8b1f4a6d76e8c84a59713c8f2c"/><file name="welcome.phtml" hash="956926f7fa15775f0755f59533f2dbe9"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir><dir name="template"><dir name="munoz"><dir name="google"><dir name="adwords"><file name="conversion.phtml" hash="fcea58042d20c6f8c7b3d0b845f99134"/><file name="remarket_tag.phtml" hash="69d3c79cc68eebd3f79455e32576c0db"/></dir></dir></dir></dir></dir><dir name="layout"><file name="ro.xml" hash="ad1086f90d433a59d51823be9110ecee"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="munoz"><file name="Selecci&#xF3;n_007.png" hash="a7f34f0918bd15ad6e5fe3c103433d58"/><file name="ads_tips.png" hash="555cc05f3b14b7cfb089cb6bf0fe4900"/><file name="adwords-logo.png" hash="fbfcea42be8bdc62b1ca559dc72bbd5e"/><file name="adwords-screen.png" hash="6261a10c000b75b2b7b6e22307a4e5e5"/><file name="adwords-symbol.png" hash="90a1ce04aa7bc5e82594677d2b7aa119"/><file name="age.png" hash="fb7b4011e56345875426191d470cb9c1"/><file name="checked_rmkt.png" hash="2136fb7110ae7fe6fa64f170c036451f"/><file name="computer.png" hash="614895299f0ff062326222284969f66b"/><file name="devices.png" hash="7f0ea3c3260ee54fe266f2c13ae6704b"/><file name="female.png" hash="95ee4dcaef28e8422e0f4966253d6c2c"/><file name="gender.png" hash="96fe85bd81be701de76bec1236b26226"/><file name="ico1.png" hash="deea6977b369c8a252db6c7ad70b13c9"/><file name="ico2.png" hash="258381acb1c2829660fe78916fa7f7b1"/><file name="ico4.png" hash="df8e0052bea21c4fdcac45cbb6b11f00"/><file name="ico5.png" hash="fd197c3807a51238958d83b1986ac47a"/><file name="imgpsh_fullsize.png" hash="a9de1d69724f0cd96727045ea9403992"/><file name="keywords.png" hash="075655566b7b7abe2cf36d12f1aa6ca9"/><file name="logo.png" hash="55c45b86a18f3c94e1dbd70af8db2487"/><file name="male.png" hash="c71923fdae30561fb1cb7d3a3db10809"/><file name="mobile.png" hash="9a0c157149bdccf33b92e556e4442cc3"/><file name="old-adwords-screen.png" hash="cef9f147366c521f4e089d049128a21c"/><file name="rockstar.png" hash="6d88b35fbeba82088f8969215aca88a3"/><file name="wait.png" hash="946052e085a5c60fc71f3c716fb806c1"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="munoz"><dir name="css"><file name="ad-icon.jpg" hash="b87496c052b306a94eabf5af3544a717"/><file name="adwords-symbol.png" hash="90a1ce04aa7bc5e82594677d2b7aa119"/><file name="font-awesome.css" hash="b652e3b759188ceaf79182f2fe72ea64"/><file name="font-awesome.min.css" hash="4083f5d376eb849a458cc790b53ba080"/><file name="imgpsh_fullsize.png" hash="a9de1d69724f0cd96727045ea9403992"/><file name="jquery-ui.css" hash="b50192cf9c90fe83462ce9a7bcdd29c7"/><file name="jquery.steps.css" hash="5a25f593fe74b7d73a3c2a4212ac6612"/><file name="main.css" hash="aa03751cf9078dc47675f907e22bd2a5"/><file name="progress-bar.png" hash="bd5b9782b845486917de1b1e9fc2c631"/><file name="simple_container_bg.gif" hash="56f1ac91169eb4896b8c91384fc8bf15"/><file name="styles.css" hash="102a0ff89ef27e400b9df25de82e053e"/></dir><dir name="fonts"><file name="FontAwesome.otf" hash="5dc41d8fe329a22fa1ee9225571c843e"/><file name="fontawesome-webfont.eot" hash="25a32416abee198dd821b0b17a198a8f"/><file name="fontawesome-webfont.svg" hash="d7c639084f684d66a1bc66855d193ed8"/><file name="fontawesome-webfont.ttf" hash="1dc35d25e61d819a9c357074014867ab"/><file name="fontawesome-webfont.woff" hash="c8ddf1e5e5bf3682bc7bebf30f394148"/><file name="fontawesome-webfont.woff2" hash="e6cf7c6ec7c2d6f670ae9d762604cb0b"/></dir><dir name="images"><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="delete_dust.png" hash="948ef1640b50d09d385597f967e6ebc1"/><file name="elbow-end-minus-nl.gif" hash="6dc08c43109cc6a365bd0270f05e2f1c"/><file name="elbow-end-minus.gif" hash="3dbdb88a9297fe5631e832f046b0350b"/><file name="elbow-end-plus-nl.gif" hash="6dc08c43109cc6a365bd0270f05e2f1c"/><file name="elbow-end-plus.gif" hash="5470e5712a9742ba666c26cb429baaeb"/><file name="elbow-end.gif" hash="63fe879440e2784e0cc0d316ce017745"/><file name="elbow-line.gif" hash="b316a39455304e20e01dbc437f57fd32"/><file name="elbow-minus-nl.gif" hash="0e3129bff70475c8f7f297e0e59d1608"/><file name="elbow-minus.gif" hash="e7b18ff6800e65c6e171bbb2a911762e"/><file name="elbow-plus-nl.gif" hash="78a8f737941fa658f1e770258a3791cd"/><file name="elbow-plus.gif" hash="b02cb264df55aef2105b1b245d075e56"/><file name="elbow.gif" hash="b6bd0e0237e3cd413fa2dac27701c724"/><file name="elbow_minus.png" hash="3fc01d7af6d0f10fb6ea321f85cfc4ce"/><file name="elbow_plus.png" hash="1deaa077bfe1c95f161e323aae1dc989"/><file name="folder-open.gif" hash="e3cd196406d4857dc0c926807f16c409"/><file name="folder.gif" hash="03eb26c42137ac792609822862ef4d0f"/><file name="keywords.png" hash="075655566b7b7abe2cf36d12f1aa6ca9"/><file name="leaf.gif" hash="e3cd196406d4857dc0c926807f16c409"/><file name="loading.gif" hash="00ef871b291bc03a497d608a5bd8ec99"/><file name="loading.png" hash="be5a561a53b5efe2e464f5acb811e90e"/><file name="s.gif" hash="df3e567d6f16d040326c7a0ea29a4f41"/><file name="simple_container_bg.gif" hash="56f1ac91169eb4896b8c91384fc8bf15"/><file name="styles.css" hash="73525c4881f2048bf59a594c61de3e09"/></dir><dir name="js"><dir name="build"><file name="jQuery.Steps.1.1.0.nupkg" hash="979939a5151179f40ab6883ea12cfbc4"/><file name="jquery.easyswitch.js" hash="9262c7cd4cd062a7b40d6e6ca65e3471"/><file name="jquery.steps-1.1.0.zip" hash="f446d606df167069be7718434b11ff55"/><file name="jquery.steps.js" hash="5a38905c075292e628c3e9453875b65d"/><file name="jquery.steps.min.js" hash="4c5e9f4e84d32b7df69af7420b355e03"/></dir><file name="jquery-1.10.2.min.js" hash="628072e7212db1e8cdacb22b21752cda"/><file name="jquery-1.11.1.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-1.9.1.min.js" hash="663628f795cb62444143fde1ebdf2b5b"/><file name="jquery.cookie-1.3.1.js" hash="e5937111b7dc83385e3f4c7b91af7a80"/><file name="jquery.easyswitch.js" hash="70b67fe638e45f2b0f4ba978a4baa785"/><file name="modernizr-2.6.2.min.js" hash="42306a279a9e831515347ae319181cd1"/><file name="priceslider.js" hash="94827683d2169636ed208b023624cfb4"/></dir><dir name="less"><file name="animated.less" hash="08baef05e05301cabc91599a54921081"/><file name="bordered-pulled.less" hash="898f90e40876883214bbd121b0c20e9f"/><file name="core.less" hash="fb4efe4ae63737706875bbbfc7b7e9af"/><file name="fixed-width.less" hash="5e07ec001f8d21bd279c12ee542813f7"/><file name="font-awesome.less" hash="f53235946c37e394a6cd6d92f84587a8"/><file name="icons.less" hash="3c3bb8fbcd54a6b66a41137d5e9e8a33"/><file name="larger.less" hash="8cb65280c0f889daf72626c21a7c8628"/><file name="list.less" hash="975571323cf880a4a30601998236b027"/><file name="mixins.less" hash="fbb1f2f1ab96ba020c7f14208aac72b8"/><file name="path.less" hash="a8c41460c42a4fe9e98550f00c8b3f19"/><file name="rotated-flipped.less" hash="a8476cdc50c264abd11ff59d6a9dd025"/><file name="screen-reader.less" hash="0f881617264587bef0df6ce92253ecea"/><file name="stacked.less" hash="518e2b2d263982d2caa1e6514b4b4eac"/><file name="variables.less" hash="45fa411bbd22ff8467e027318a88a557"/></dir><file name="loader_new.jpg" hash="e02968245a670ef65a06411a442e557a"/><dir name="scss"><file name="_animated.scss" hash="39ff4f359a7b81d6585075715f41e5dc"/><file name="_bordered-pulled.scss" hash="4cad0df17bf40327feae33fa9a6c6ba2"/><file name="_core.scss" hash="ef059a98cf9de6ca5b77ee6850771cf0"/><file name="_fixed-width.scss" hash="9277ab6964a434d499873687b00be906"/><file name="_icons.scss" hash="fdffb08bc3d85c7427d8697f268fb072"/><file name="_larger.scss" hash="e95931566f6fc6ad5685c4fa9802e206"/><file name="_list.scss" hash="7107e80b053928271d5fcf422dc29490"/><file name="_mixins.scss" hash="aa2b8f32b403733713d8885f14ab86cc"/><file name="_path.scss" hash="ab5a9e8388563e097b5ce835601f01d2"/><file name="_rotated-flipped.scss" hash="9f5d4bc6fadea89328d2aac26574a9d8"/><file name="_screen-reader.scss" hash="8907bd7dbf4799e8120bda5568d76fea"/><file name="_stacked.scss" hash="5594237226aedfbca2fa1c7f4604c214"/><file name="_variables.scss" hash="783d4422626a7f27fa8f513de3ad4795"/><file name="font-awesome.scss" hash="ace7fb9336021f92b1cf68a10d5f452c"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="shell"><file name="createInstance.php" hash="4707ebd18bf21ac91ddc681005775573"/><file name="abstracts.php" hash="e92717fb78260959ef9de93f63b80fb2"/><file name="countryLanguadge.php" hash="0f6cdd3496a6b9f4122af672044f11f2"/><file name="defaultAttribute.php" hash="5722718990361cb1c0c4c4e1d8fdc510"/></dir><dir name="js"><dir name="munoz"><dir name="build"><file name="jQuery.Steps.1.1.0.nupkg" hash="979939a5151179f40ab6883ea12cfbc4"/><file name="jquery.easyswitch.js" hash="9262c7cd4cd062a7b40d6e6ca65e3471"/><file name="jquery.steps-1.1.0.zip" hash="f446d606df167069be7718434b11ff55"/><file name="jquery.steps.js" hash="5a38905c075292e628c3e9453875b65d"/><file name="jquery.steps.min.js" hash="4c5e9f4e84d32b7df69af7420b355e03"/></dir><file name="jquery-1.10.2.min.js" hash="628072e7212db1e8cdacb22b21752cda"/><file name="jquery-1.11.1.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-1.9.1.min.js" hash="663628f795cb62444143fde1ebdf2b5b"/><file name="jquery.cookie-1.3.1.js" hash="e5937111b7dc83385e3f4c7b91af7a80"/><file name="jquery.easyswitch.js" hash="70b67fe638e45f2b0f4ba978a4baa785"/><dir name="js"><dir name="build"><file name="jQuery.Steps.1.1.0.nupkg" hash="979939a5151179f40ab6883ea12cfbc4"/><file name="jquery.easyswitch.js" hash="9262c7cd4cd062a7b40d6e6ca65e3471"/><file name="jquery.steps-1.1.0.zip" hash="f446d606df167069be7718434b11ff55"/><file name="jquery.steps.js" hash="5a38905c075292e628c3e9453875b65d"/><file name="jquery.steps.min.js" hash="4c5e9f4e84d32b7df69af7420b355e03"/></dir><file name="jquery-1.10.2.min.js" hash="628072e7212db1e8cdacb22b21752cda"/><file name="jquery-1.11.1.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-1.9.1.min.js" hash="663628f795cb62444143fde1ebdf2b5b"/><file name="jquery.cookie-1.3.1.js" hash="e5937111b7dc83385e3f4c7b91af7a80"/><file name="jquery.easyswitch.js" hash="70b67fe638e45f2b0f4ba978a4baa785"/><file name="modernizr-2.6.2.min.js" hash="42306a279a9e831515347ae319181cd1"/><file name="priceslider.js" hash="94827683d2169636ed208b023624cfb4"/></dir><file name="modernizr-2.6.2.min.js" hash="42306a279a9e831515347ae319181cd1"/><file name="priceslider.js" hash="94827683d2169636ed208b023624cfb4"/></dir></dir></target><target name="magelib"><dir name="rollbar"><file name="Level.php" hash="fbe1e94a42be5a3a45b24350b176ccf4"/><file name="rollbar.php" hash="462cec30ca3fb320dd8360b2f03d9da4"/></dir></target></contents>
27
  <compatible/>
28
  <dependencies><required><php><min>5.4.0</min><max>6.0.0</max></php></required></dependencies>
29
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>clever_adwords</name>
4
+ <version>1.0.5</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
21
  &lt;h2&gt;</description>
22
  <notes>Fixed minor bugs</notes>
23
  <authors><author><name>Rodrigo</name><user>Rodrigo</user><email>rodrigo@cleverppc.com</email></author></authors>
24
+ <date>2016-09-05</date>
25
+ <time>13:54:48</time>
26
+ <contents><target name="magelocal"><dir name="Rodrigo"><dir name="Munoz"><dir name="Block"><dir name="Adminhtml"><file name="Form.php" hash="54444c96513238d9c562c540f9d94916"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fc1bcf8c0fb907db2a545ca518af1fcf"/></dir><dir name="Model"><file name="Keyword.php" hash="f0e4ff03e65f91ff5b24e3246e9e3636"/><dir name="Mysql4"><dir name="Keyword"><file name="Collection.php" hash="5e74a7fc484cb68f003d8d843fad7852"/></dir><file name="Keyword.php" hash="b3ff64494c92d5ca070ebf0a33d2c072"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ExcelsheetController.php" hash="0fb1074059edf54c21413cb215175ff4"/><file name="IndexController.php" hash="c6b96a26d879a5be243d385fbdf55608"/></dir><file name="IndexController.php" hash="fa73f9ae7feb2e3fa80edea3e8774838"/></dir><dir name="etc"><file name="adminhtml.xml" hash="cdf47fa749068b411c2704fda8eb4444"/><file name="config.xml" hash="516d1ae5dcdf5cb9ce5bdba33c540a1c"/><file name="system.xml" hash="b1eec31001ae641320cc79f86a62f760"/></dir><dir name="sql"><dir name="keyword_setup"><file name="mysql4-install-0.1.0.php" hash="854409a2d6bff834005798d4d0368f54"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Rodrigo_Munoz.xml" hash="6b1a61c409f48a95f87c61d678a26a42"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="munoz.xml" hash="5855ebab13f8e3da65c4fe4e9a3f1e2c"/></dir><dir name="template"><dir name="munoz"><file name="accurate.phtml" hash="68b76695cc680381d808c0c82fa54a18"/><file name="dashboard.phtml" hash="771ef9cedfed14f9cd500e1010ff6a34"/><file name="form.phtml" hash="f2e62d2b36eb76eb867c0988be344963"/><file name="step1.phtml" hash="1e04de676ce0396570d591a7fca2c7c6"/><file name="step2.phtml" hash="0c48d2305d58854701c4522508a486e3"/><file name="step3.phtml" hash="309d0f07965c0289740e49ac13c74a1a"/><file name="step4.phtml" hash="c19893594102cef19cb68b239b31b9fd"/><file name="step5.phtml" hash="7cc96a1acb318a938e533b5d188e5f10"/><file name="switch.phtml" hash="0b4affaa8e4e9bfb78d1ed36a6ae1c8f"/><file name="waiting.phtml" hash="414196d7f11d8de34a8aba1af54d6d4d"/><file name="welcome.phtml" hash="956926f7fa15775f0755f59533f2dbe9"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir><dir name="template"><dir name="munoz"><dir name="google"><dir name="adwords"><file name="conversion.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="remarket_tag.phtml" hash="c80547ab81d3d8d5808a20118a07781d"/></dir></dir></dir></dir></dir><dir name="layout"><file name="ro.xml" hash="ad1086f90d433a59d51823be9110ecee"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="munoz"><file name="Selecci&#xF3;n_007.png" hash="a7f34f0918bd15ad6e5fe3c103433d58"/><file name="ads_tips.png" hash="555cc05f3b14b7cfb089cb6bf0fe4900"/><file name="adwords-logo.png" hash="fbfcea42be8bdc62b1ca559dc72bbd5e"/><file name="adwords-screen.png" hash="6261a10c000b75b2b7b6e22307a4e5e5"/><file name="adwords-symbol.png" hash="90a1ce04aa7bc5e82594677d2b7aa119"/><file name="age.png" hash="fb7b4011e56345875426191d470cb9c1"/><file name="checked_rmkt.png" hash="2136fb7110ae7fe6fa64f170c036451f"/><file name="computer.png" hash="614895299f0ff062326222284969f66b"/><file name="devices.png" hash="7f0ea3c3260ee54fe266f2c13ae6704b"/><file name="female.png" hash="95ee4dcaef28e8422e0f4966253d6c2c"/><file name="gender.png" hash="96fe85bd81be701de76bec1236b26226"/><file name="ico1.png" hash="deea6977b369c8a252db6c7ad70b13c9"/><file name="ico2.png" hash="258381acb1c2829660fe78916fa7f7b1"/><file name="ico4.png" hash="df8e0052bea21c4fdcac45cbb6b11f00"/><file name="ico5.png" hash="fd197c3807a51238958d83b1986ac47a"/><file name="imgpsh_fullsize.png" hash="a9de1d69724f0cd96727045ea9403992"/><file name="keywords.png" hash="075655566b7b7abe2cf36d12f1aa6ca9"/><file name="logo.png" hash="55c45b86a18f3c94e1dbd70af8db2487"/><file name="male.png" hash="c71923fdae30561fb1cb7d3a3db10809"/><file name="mobile.png" hash="9a0c157149bdccf33b92e556e4442cc3"/><file name="old-adwords-screen.png" hash="cef9f147366c521f4e089d049128a21c"/><file name="rockstar.png" hash="6d88b35fbeba82088f8969215aca88a3"/><file name="wait.png" hash="946052e085a5c60fc71f3c716fb806c1"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="munoz"><dir name="css"><file name="ad-icon.jpg" hash="b87496c052b306a94eabf5af3544a717"/><file name="adwords-symbol.png" hash="90a1ce04aa7bc5e82594677d2b7aa119"/><file name="font-awesome.css" hash="b652e3b759188ceaf79182f2fe72ea64"/><file name="font-awesome.min.css" hash="4083f5d376eb849a458cc790b53ba080"/><file name="imgpsh_fullsize.png" hash="a9de1d69724f0cd96727045ea9403992"/><file name="jquery-ui.css" hash="b50192cf9c90fe83462ce9a7bcdd29c7"/><file name="jquery.steps.css" hash="5a25f593fe74b7d73a3c2a4212ac6612"/><file name="main.css" hash="aa03751cf9078dc47675f907e22bd2a5"/><file name="progress-bar.png" hash="bd5b9782b845486917de1b1e9fc2c631"/><file name="simple_container_bg.gif" hash="56f1ac91169eb4896b8c91384fc8bf15"/><file name="styles.css" hash="102a0ff89ef27e400b9df25de82e053e"/></dir><dir name="fonts"><file name="FontAwesome.otf" hash="5dc41d8fe329a22fa1ee9225571c843e"/><file name="fontawesome-webfont.eot" hash="25a32416abee198dd821b0b17a198a8f"/><file name="fontawesome-webfont.svg" hash="d7c639084f684d66a1bc66855d193ed8"/><file name="fontawesome-webfont.ttf" hash="1dc35d25e61d819a9c357074014867ab"/><file name="fontawesome-webfont.woff" hash="c8ddf1e5e5bf3682bc7bebf30f394148"/><file name="fontawesome-webfont.woff2" hash="e6cf7c6ec7c2d6f670ae9d762604cb0b"/></dir><dir name="images"><file name="ajax-loader-tr.gif" hash="1ae32bc8232ff2527c627e5b38eb319a"/><file name="delete_dust.png" hash="948ef1640b50d09d385597f967e6ebc1"/><file name="elbow-end-minus-nl.gif" hash="6dc08c43109cc6a365bd0270f05e2f1c"/><file name="elbow-end-minus.gif" hash="3dbdb88a9297fe5631e832f046b0350b"/><file name="elbow-end-plus-nl.gif" hash="6dc08c43109cc6a365bd0270f05e2f1c"/><file name="elbow-end-plus.gif" hash="5470e5712a9742ba666c26cb429baaeb"/><file name="elbow-end.gif" hash="63fe879440e2784e0cc0d316ce017745"/><file name="elbow-line.gif" hash="b316a39455304e20e01dbc437f57fd32"/><file name="elbow-minus-nl.gif" hash="0e3129bff70475c8f7f297e0e59d1608"/><file name="elbow-minus.gif" hash="e7b18ff6800e65c6e171bbb2a911762e"/><file name="elbow-plus-nl.gif" hash="78a8f737941fa658f1e770258a3791cd"/><file name="elbow-plus.gif" hash="b02cb264df55aef2105b1b245d075e56"/><file name="elbow.gif" hash="b6bd0e0237e3cd413fa2dac27701c724"/><file name="elbow_minus.png" hash="3fc01d7af6d0f10fb6ea321f85cfc4ce"/><file name="elbow_plus.png" hash="1deaa077bfe1c95f161e323aae1dc989"/><file name="folder-open.gif" hash="e3cd196406d4857dc0c926807f16c409"/><file name="folder.gif" hash="03eb26c42137ac792609822862ef4d0f"/><file name="keywords.png" hash="075655566b7b7abe2cf36d12f1aa6ca9"/><file name="leaf.gif" hash="e3cd196406d4857dc0c926807f16c409"/><file name="loading.gif" hash="00ef871b291bc03a497d608a5bd8ec99"/><file name="loading.png" hash="be5a561a53b5efe2e464f5acb811e90e"/><file name="s.gif" hash="df3e567d6f16d040326c7a0ea29a4f41"/><file name="simple_container_bg.gif" hash="56f1ac91169eb4896b8c91384fc8bf15"/><file name="styles.css" hash="73525c4881f2048bf59a594c61de3e09"/></dir><dir name="js"><dir name="build"><file name="jQuery.Steps.1.1.0.nupkg" hash="979939a5151179f40ab6883ea12cfbc4"/><file name="jquery.easyswitch.js" hash="9262c7cd4cd062a7b40d6e6ca65e3471"/><file name="jquery.steps-1.1.0.zip" hash="f446d606df167069be7718434b11ff55"/><file name="jquery.steps.js" hash="5a38905c075292e628c3e9453875b65d"/><file name="jquery.steps.min.js" hash="4c5e9f4e84d32b7df69af7420b355e03"/></dir><file name="jquery-1.10.2.min.js" hash="628072e7212db1e8cdacb22b21752cda"/><file name="jquery-1.11.1.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-1.9.1.min.js" hash="663628f795cb62444143fde1ebdf2b5b"/><file name="jquery.cookie-1.3.1.js" hash="e5937111b7dc83385e3f4c7b91af7a80"/><file name="jquery.easyswitch.js" hash="70b67fe638e45f2b0f4ba978a4baa785"/><file name="modernizr-2.6.2.min.js" hash="42306a279a9e831515347ae319181cd1"/><file name="priceslider.js" hash="94827683d2169636ed208b023624cfb4"/></dir><dir name="less"><file name="animated.less" hash="08baef05e05301cabc91599a54921081"/><file name="bordered-pulled.less" hash="898f90e40876883214bbd121b0c20e9f"/><file name="core.less" hash="fb4efe4ae63737706875bbbfc7b7e9af"/><file name="fixed-width.less" hash="5e07ec001f8d21bd279c12ee542813f7"/><file name="font-awesome.less" hash="f53235946c37e394a6cd6d92f84587a8"/><file name="icons.less" hash="3c3bb8fbcd54a6b66a41137d5e9e8a33"/><file name="larger.less" hash="8cb65280c0f889daf72626c21a7c8628"/><file name="list.less" hash="975571323cf880a4a30601998236b027"/><file name="mixins.less" hash="fbb1f2f1ab96ba020c7f14208aac72b8"/><file name="path.less" hash="a8c41460c42a4fe9e98550f00c8b3f19"/><file name="rotated-flipped.less" hash="a8476cdc50c264abd11ff59d6a9dd025"/><file name="screen-reader.less" hash="0f881617264587bef0df6ce92253ecea"/><file name="stacked.less" hash="518e2b2d263982d2caa1e6514b4b4eac"/><file name="variables.less" hash="45fa411bbd22ff8467e027318a88a557"/></dir><file name="loader_new.jpg" hash="e02968245a670ef65a06411a442e557a"/><dir name="scss"><file name="_animated.scss" hash="39ff4f359a7b81d6585075715f41e5dc"/><file name="_bordered-pulled.scss" hash="4cad0df17bf40327feae33fa9a6c6ba2"/><file name="_core.scss" hash="ef059a98cf9de6ca5b77ee6850771cf0"/><file name="_fixed-width.scss" hash="9277ab6964a434d499873687b00be906"/><file name="_icons.scss" hash="fdffb08bc3d85c7427d8697f268fb072"/><file name="_larger.scss" hash="e95931566f6fc6ad5685c4fa9802e206"/><file name="_list.scss" hash="7107e80b053928271d5fcf422dc29490"/><file name="_mixins.scss" hash="aa2b8f32b403733713d8885f14ab86cc"/><file name="_path.scss" hash="ab5a9e8388563e097b5ce835601f01d2"/><file name="_rotated-flipped.scss" hash="9f5d4bc6fadea89328d2aac26574a9d8"/><file name="_screen-reader.scss" hash="8907bd7dbf4799e8120bda5568d76fea"/><file name="_stacked.scss" hash="5594237226aedfbca2fa1c7f4604c214"/><file name="_variables.scss" hash="783d4422626a7f27fa8f513de3ad4795"/><file name="font-awesome.scss" hash="ace7fb9336021f92b1cf68a10d5f452c"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="shell"><file name="createInstance.php" hash="fd22f311f5a66f3ede8d6acbc86d0f74"/><file name="abstracts.php" hash="e92717fb78260959ef9de93f63b80fb2"/><file name="countryLanguadge.php" hash="0f6cdd3496a6b9f4122af672044f11f2"/><file name="defaultAttribute.php" hash="5722718990361cb1c0c4c4e1d8fdc510"/></dir><dir name="js"><dir name="munoz"><dir name="build"><file name="jQuery.Steps.1.1.0.nupkg" hash="979939a5151179f40ab6883ea12cfbc4"/><file name="jquery.easyswitch.js" hash="9262c7cd4cd062a7b40d6e6ca65e3471"/><file name="jquery.steps-1.1.0.zip" hash="f446d606df167069be7718434b11ff55"/><file name="jquery.steps.js" hash="5a38905c075292e628c3e9453875b65d"/><file name="jquery.steps.min.js" hash="4c5e9f4e84d32b7df69af7420b355e03"/></dir><file name="jquery-1.10.2.min.js" hash="628072e7212db1e8cdacb22b21752cda"/><file name="jquery-1.11.1.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-1.9.1.min.js" hash="663628f795cb62444143fde1ebdf2b5b"/><file name="jquery.cookie-1.3.1.js" hash="e5937111b7dc83385e3f4c7b91af7a80"/><file name="jquery.easyswitch.js" hash="70b67fe638e45f2b0f4ba978a4baa785"/><dir name="js"><dir name="build"><file name="jQuery.Steps.1.1.0.nupkg" hash="979939a5151179f40ab6883ea12cfbc4"/><file name="jquery.easyswitch.js" hash="9262c7cd4cd062a7b40d6e6ca65e3471"/><file name="jquery.steps-1.1.0.zip" hash="f446d606df167069be7718434b11ff55"/><file name="jquery.steps.js" hash="5a38905c075292e628c3e9453875b65d"/><file name="jquery.steps.min.js" hash="4c5e9f4e84d32b7df69af7420b355e03"/></dir><file name="jquery-1.10.2.min.js" hash="628072e7212db1e8cdacb22b21752cda"/><file name="jquery-1.11.1.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="jquery-1.9.1.min.js" hash="663628f795cb62444143fde1ebdf2b5b"/><file name="jquery.cookie-1.3.1.js" hash="e5937111b7dc83385e3f4c7b91af7a80"/><file name="jquery.easyswitch.js" hash="70b67fe638e45f2b0f4ba978a4baa785"/><file name="modernizr-2.6.2.min.js" hash="42306a279a9e831515347ae319181cd1"/><file name="priceslider.js" hash="94827683d2169636ed208b023624cfb4"/></dir><file name="modernizr-2.6.2.min.js" hash="42306a279a9e831515347ae319181cd1"/><file name="priceslider.js" hash="94827683d2169636ed208b023624cfb4"/></dir></dir></target><target name="magelib"><dir name="rollbar"><file name="Level.php" hash="fbe1e94a42be5a3a45b24350b176ccf4"/><file name="rollbar.php" hash="462cec30ca3fb320dd8360b2f03d9da4"/></dir></target></contents>
27
  <compatible/>
28
  <dependencies><required><php><min>5.4.0</min><max>6.0.0</max></php></required></dependencies>
29
  </package>
shell/createInstance.php CHANGED
@@ -31,7 +31,7 @@ class Rodrigo_Shell_MyApi extends Mage_Shell_Abstract
31
  const create_ecommerce_info='http://manager.cleverppc.com/api/ecommerce/v1/create_ecommerce_info';
32
 
33
  public function __construct($wholekeyword) {
34
- parent::__construct();
35
  require_once 'lib/rollbar/rollbar.php';
36
  $config = array(
37
  // required
@@ -42,8 +42,8 @@ class Rodrigo_Shell_MyApi extends Mage_Shell_Abstract
42
  'root' => __DIR__
43
  );
44
  Rollbar::init($config);
45
- ignore_user_abort(true);
46
- set_time_limit(0);
47
  try {
48
  $stat_time_api=$this->stat_time_api();
49
  } catch (Exception $e) {
31
  const create_ecommerce_info='http://manager.cleverppc.com/api/ecommerce/v1/create_ecommerce_info';
32
 
33
  public function __construct($wholekeyword) {
34
+ // parent::__construct();
35
  require_once 'lib/rollbar/rollbar.php';
36
  $config = array(
37
  // required
42
  'root' => __DIR__
43
  );
44
  Rollbar::init($config);
45
+ //ignore_user_abort(true);
46
+ //set_time_limit(0);
47
  try {
48
  $stat_time_api=$this->stat_time_api();
49
  } catch (Exception $e) {