Expertrec_Recommendation - Version 1.2.3

Version Notes

Expertrec Recommendation plugin for magento sites.

Download this release

Release Info

Developer melchi
Extension Expertrec_Recommendation
Version 1.2.3
Comparing to
See all releases


Code changes from version 1.2.2 to 1.2.3

app/code/community/Expertrec/Recommendation/Block/Api.php CHANGED
@@ -58,24 +58,38 @@ class Expertrec_Recommendation_Block_Api extends Mage_Core_Block_Template{
58
  }
59
  public function getLogUrl()
60
  {
61
- $logUrl = $this->getBaseUrl().'index.php/expertrec-feed/index/getlog?secret='.$this->getSecret();
 
 
62
  return $logUrl;
63
  }
64
  public function getCleanDirUrl()
65
- {
66
- $cleanDirUrl = $this->getBaseUrl().'index.php/expertrec-feed/index/clean?secret='.$this->getSecret();
67
- return $cleanDirUrl;
 
 
68
  }
69
 
70
  public function getCustomApiUrl()
71
  {
72
- $apiUrlWithCustomConf=$this->getBaseUrl().'index.php/expertrec-feed?secret='.$this->getSecret().'&cmd=export&wid=1&sid=1';
 
 
 
 
 
73
  return $apiUrlWithCustomConf;
74
  }
75
 
76
  public function getSuggestionApiUrl()
77
  {
78
- $apiUrlWithCustomConf=$this->getBaseUrl().'index.php/expertrec-feed?secret='.$this->getSecret().'&cmd=getpp&wid=1&sid=1';
 
 
 
 
 
79
  return $apiUrlWithCustomConf;
80
  }
81
 
@@ -129,7 +143,9 @@ class Expertrec_Recommendation_Block_Api extends Mage_Core_Block_Template{
129
  foreach ($stores as $oStore) {
130
  $sid=$oStore->getId();
131
  $websiteStoreRow = array();
132
- $apiUrl=Mage::app()->getStore($sid)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'index.php/expertrec-feed?secret='.$this->getSecret().'&cmd=export&wid='.$wid.'&sid='.$sid;
 
 
133
  // Display the store-website details with feed api
134
 
135
  $websiteStoreRow["wid"] = $wid;
@@ -137,6 +153,9 @@ class Expertrec_Recommendation_Block_Api extends Mage_Core_Block_Template{
137
  $websiteStoreRow["sid"] = $sid;
138
  $websiteStoreRow["sname"] = $oStore->getName();
139
  $websiteStoreRow["surl"] = $apiUrl;
 
 
 
140
 
141
  try{
142
  $websiteStoreRow["pcount"] = Mage::helper('expertrec_recommendation')->getProductCount($wid,$sid);
58
  }
59
  public function getLogUrl()
60
  {
61
+ $logUrl['surl'] = $this->getBaseUrl().'index.php/expertrec-feed/index/getlog';
62
+ $logUrl['link'] = $this->getBaseUrl().'index.php/expertrec-feed/index/getlog?secret='.$this->getSecret();
63
+ $logUrl['secret'] = $this->getSecret();
64
  return $logUrl;
65
  }
66
  public function getCleanDirUrl()
67
+ {
68
+ $cleanDirUrl['surl'] = $this->getBaseUrl().'index.php/expertrec-feed/index/clean';
69
+ $cleanDirUrl['link'] = $this->getBaseUrl().'index.php/expertrec-feed/index/clean?secret='.$this->getSecret();
70
+ $cleanDirUrl['secret'] = $this->getSecret();
71
+ return $cleanDirUrl;
72
  }
73
 
74
  public function getCustomApiUrl()
75
  {
76
+ $apiUrlWithCustomConf['surl']=$this->getBaseUrl().'index.php/expertrec-feed';
77
+ $apiUrlWithCustomConf['link']=$this->getBaseUrl().'index.php/expertrec-feed?secret='.$this->getSecret().'&cmd=export&wid=1&sid=1';
78
+ $apiUrlWithCustomConf['secret']=$this->getSecret();
79
+ $apiUrlWithCustomConf['cmd']="export";
80
+ $apiUrlWithCustomConf['wid']=1;
81
+ $apiUrlWithCustomConf['sid']=1;
82
  return $apiUrlWithCustomConf;
83
  }
84
 
85
  public function getSuggestionApiUrl()
86
  {
87
+ $apiUrlWithCustomConf['surl']=$this->getBaseUrl().'index.php/expertrec-feed';
88
+ $apiUrlWithCustomConf['link']=$this->getBaseUrl().'index.php/expertrec-feed?secret='.$this->getSecret().'&cmd=getpp&wid=1&sid=1';
89
+ $apiUrlWithCustomConf['secret']=$this->getSecret();
90
+ $apiUrlWithCustomConf['cmd']="getpp";
91
+ $apiUrlWithCustomConf['wid']=1;
92
+ $apiUrlWithCustomConf['sid']=1;
93
  return $apiUrlWithCustomConf;
94
  }
95
 
143
  foreach ($stores as $oStore) {
144
  $sid=$oStore->getId();
145
  $websiteStoreRow = array();
146
+ $apiUrl=Mage::app()->getStore($sid)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'index.php/expertrec-feed';
147
+
148
+ $url = Mage::app()->getStore($sid)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'index.php/expertrec-feed?secret='.$this->getSecret().'&cmd=export&wid='.$wid.'&sid='.$sid;
149
  // Display the store-website details with feed api
150
 
151
  $websiteStoreRow["wid"] = $wid;
153
  $websiteStoreRow["sid"] = $sid;
154
  $websiteStoreRow["sname"] = $oStore->getName();
155
  $websiteStoreRow["surl"] = $apiUrl;
156
+ $websiteStoreRow["secret"] = $this->getSecret();
157
+ $websiteStoreRow["cmd"] = "export";
158
+ $websiteStoreRow['link'] = $url;
159
 
160
  try{
161
  $websiteStoreRow["pcount"] = Mage::helper('expertrec_recommendation')->getProductCount($wid,$sid);
app/code/community/Expertrec/Recommendation/Model/Api/Request.php CHANGED
@@ -98,7 +98,8 @@ class Expertrec_Recommendation_Model_Api_Request extends Varien_Object {
98
  $request->setUri($this->url)
99
  ->setHeaders($this->headers)
100
  ->setMethod($this->method)
101
- ->setParameterGet("user",$this->userId);
 
102
 
103
  if($this->method == Zend_Http_Client::GET) {
104
  $request->setParameterGet($this->getData());
98
  $request->setUri($this->url)
99
  ->setHeaders($this->headers)
100
  ->setMethod($this->method)
101
+ ->setParameterGet("user",$this->userId)
102
+ ->setConfig(array('timeout' => 1));
103
 
104
  if($this->method == Zend_Http_Client::GET) {
105
  $request->setParameterGet($this->getData());
app/code/community/Expertrec/Recommendation/controllers/ApiController.php CHANGED
@@ -15,8 +15,8 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
15
  const SEARCH_FETCH_PRICE = 'search/fetch_price';
16
  const SEARCH_CONVERT_PRICE = 'search/convert_price';
17
  const SEARCH_CUSTOM_TEMPLATE = 'search/custom_template';
18
- const FEED_LOG_ENDPOINT = 'log_endpoint';
19
- const FEED_UPLOAD_ENDPOINT = 'upload_endpoint';
20
  const IS_UPLOAD_FEED = 'is_upload';
21
  const IMAGE_WIDTH = 'expertrec/general/expertrec_image_width';
22
  const IMAGE_HEIGHT = 'expertrec/general/expertrec_image_height';
@@ -25,7 +25,7 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
25
  const MERCHANT_ID = 'expertrec/general/mid';
26
 
27
 
28
- const BUILD_NO = "1489406000";
29
  private $_password;
30
 
31
  //main function which loads the feed API
@@ -136,6 +136,7 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
136
  $stores = $group->getStores();
137
  foreach ($stores as $oStore) {
138
  $sid=$oStore->getId();
 
139
  $storeUrl=Mage::app()->getStore($sid)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'index.php/expertrec-feed?secret='.$this->_password.'&cmd=export&wid='.$wid.'&sid='.$sid;
140
  // Display the store-website details with feed api
141
  echo '<tr>';
@@ -154,8 +155,12 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
154
  }
155
 
156
  echo '<td>
157
- <form method="post" action="'.$storeUrl.'">
158
  <p>'.$storeUrl.'</p>
 
 
 
 
159
  <button type="submit">submit</button></form></td>';
160
  echo '</tr>';
161
  }
@@ -194,23 +199,43 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
194
  $customImagePortion ="&width=170&height=".$imageHeight;
195
  }
196
 
 
197
  $apiUrlWithCustomConf=$baseUrl.'index.php/expertrec-feed?secret='.$this->_password.'&cmd=export&wid=1&sid=1';
198
 
199
- echo '<form id="custImageForm" name = "custImageForm" method="POST" action ="'.$apiUrlWithCustomConf.$customImagePortion.'">
200
  <b>With Custom image size</b><br />';
201
  echo '<p>'.$apiUrlWithCustomConf.$customImagePortion.'</p>
202
- <button id="custImgSubmit" name="custImgSubmit" type="submit">Submit</button>
203
- </form>';
204
-
205
- echo '<form id ="custImgForm1" name="custImgForm1" method="POST" action="'.$apiUrlWithCustomConf.'&ps=1&pe=2">
 
 
 
 
 
 
206
  <p><b>With pagination without page size(default page size is 500)</b><br />';
207
  echo '<p>'.$apiUrlWithCustomConf.'&ps=1&pe=2</p>
 
 
 
 
 
 
208
  <button id="custImgSubmit1" name="custImgSubmit1" type="submit">Submit</button>
209
  </form>';
210
 
211
- echo '<form id="custImgForm2" name="custImageForm2" method="POST" action="'.$apiUrlWithCustomConf.'&ps=1&pe=2&psize=50">
212
  <p><b>With pagination & page size</b><br />';
213
  echo '<p>'.$apiUrlWithCustomConf.'&ps=1&pe=2&psize=50</p>
 
 
 
 
 
 
 
214
  <button type="submit" id="custImgSubmit2" name="custImgSubmit2">Submit</submit></form>';
215
  echo '</fieldset>';
216
 
@@ -270,17 +295,21 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
270
  $result .= '<legend>Getting log & Cleaning Expertrec Directory Api\'s</legend>';
271
 
272
  $logUrl = $baseUrl.'index.php/expertrec-feed/index/getlog?secret='.$this->_password;
 
273
  $cleanDirUrl = $baseUrl.'index.php/expertrec-feed/index/clean?secret='.$this->_password;
 
274
 
275
- $result .= '<form method ="POST" id="logForm" name="logForm" method="POST" action="'.$logUrl.'">
276
  <p><b>Log url</b><br />';
277
  $result .= '<p>'.$logUrl.'</p>
 
278
  <button type="submit" id="logSubmit" name="logSubmit">Submit</button></form>';
279
 
280
 
281
- $result .= '<form method ="POST" id="cleanForm" name="cleanForm" method="POST" action="'.$cleanDirUrl.'">
282
  <p><b>Clean directory url</b><br />';
283
  $result .= '<p>'.$cleanDirUrl.'</p>
 
284
  <button type="submit" id="cleanSubmit" name="cleanSubmit">Submit</button></form>';
285
 
286
 
@@ -296,21 +325,40 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
296
  $result .= '<fieldset>';
297
  $result .= '<legend>Getting Popular products Api</legend>';
298
 
 
 
299
  $apiUrlWithCustomConf=$baseUrl.'index.php/expertrec-feed?secret='.$this->_password.'&cmd=getpp&wid=1&sid=1';
300
 
301
- $result .= '<form method="POST" action="'.$apiUrlWithCustomConf.'" name ="sug1form" id="sug1form">
302
  <p><b>Without pagination</b><br />';
303
  $result .= '<p>'.$apiUrlWithCustomConf.'</p>
 
 
 
 
304
  <button type="submit" name="sug1submit" id="sug1submit">Submit</button></form>';
305
 
306
- $result .= '<form method="POST" action="'.$apiUrlWithCustomConf.'&ps=1&pe=2" name ="sug1form" id="sug1form">
307
  <p><b>With pagination without page size(default page size is 500)</b><br />';
308
  $result .= '<p>'.$apiUrlWithCustomConf.'&ps=1&pe=2</p>
 
 
 
 
 
 
309
  <button type="submit" name="sug1submit" id="sug1submit">Submit</button></form>';
310
 
311
- $result .= '<form method="POST" action="'.$apiUrlWithCustomConf.'&ps=1&pe=2&psize=50" name ="sug2form" id="sug2form">
312
  <p><b>With pagination & page size</b><br />';
313
  $result .= '<p>'.$apiUrlWithCustomConf.'&ps=1&pe=2&psize=50</p>
 
 
 
 
 
 
 
314
  <button type="submit" name="sug2submit" id="sug2submit">Submit</button></form>';
315
 
316
  $result .= '</fieldset>';
@@ -351,10 +399,12 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
351
  if(isset($storedFilters)){
352
  $storedFiltersArray = explode(',', $storedFilters);
353
  }
 
 
354
  $result .= '<fieldset>';
355
  $result .= '<legend>Configure Feed Headers</legend>';
356
 
357
- $result .= '<form class="setHeadersForm" action="'.$saveHeaderUrl.'" method="post" role="form" target="_blank">';
358
 
359
  foreach ($attributes as $attr) {
360
  if (isset($storedHeadersArray) && in_array($attr, $storedHeadersArray)){
@@ -393,6 +443,7 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
393
 
394
 
395
  $result .= '<div style="text-align:center;margin:10px auto;"> ';
 
396
  $result .= '<input type="button" class="btn btn-md btn-primary" id="toggleSelect" value="Select All" onClick="toggle_select()" style="padding:5px; margin: 5px;"/>';
397
  $result .= '<input type="submit" class="btn btn-md btn-primary" name="selected_headers" value="Submit" style= "padding:5px; margin: 5px;"/>';
398
  $result .= '</div>';
@@ -436,9 +487,10 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
436
 
437
  private function displaySearchConf($baseUrl){
438
  $saveSearchUrl = $baseUrl."index.php/expertrec-feed/config/savesearch?secret=".$this->_password;
 
439
  $result = '<fieldset>';
440
  $result .= '<legend>Configure Search</legend>';
441
- $result .= '<form class="form-horizontal" action="'.$saveSearchUrl.'" method="post" role="form" target="_blank">';
442
 
443
  $textArray = array("api"=>"Search endpoint", "facet_list"=>"Facet list comma separated", "single_select_filter"=>"Single select filters comma separated", "items_per_page"=>"No of items per page","display_pages"=>"No. of pages to display");
444
 
@@ -482,6 +534,7 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
482
  $result .= '</div>';
483
  $result .= '</div>';
484
  $result .= '<div style="text-align:center;margin:10px auto;">';
 
485
  $result .= '<input type="submit" class="btn btn-md btn-primary" name="selected_search" value="Submit" style="padding:5px; "/>';
486
  $result .= '</div>';
487
  $result .= '</form>';
@@ -493,9 +546,10 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
493
 
494
  private function displayFeedConf($baseUrl){
495
  $saveFeedApiUrl = $baseUrl."index.php/expertrec-feed/config/savefeedconf?secret=".$this->_password;
 
496
  $result = '<fieldset>';
497
  $result .= '<legend>Configure Feed</legend>';
498
- $result .= '<form class="form-horizontal" action="'.$saveFeedApiUrl.'" method="post" role="form" target="_blank">';
499
 
500
  $textArray = array("log_api"=>"Feed log endpoint", "upload_api"=>"Feed upload endpoint");
501
  $textToStoreKeyMapArray = array("log_api"=>self::FEED_LOG_ENDPOINT,"upload_api"=>self::FEED_UPLOAD_ENDPOINT);
@@ -533,6 +587,7 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
533
  $result .= '</div>';
534
 
535
  $result .= '<div style="text-align:center;margin:10px auto;">';
 
536
  $result .= '<input type="submit" class="btn btn-md btn-primary" name="feed_conf" value="Submit" style="padding:5px; "/>';
537
  $result .= '</div>';
538
 
@@ -668,5 +723,143 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
668
  return $result;
669
  }
670
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
671
  }
672
- ?>
15
  const SEARCH_FETCH_PRICE = 'search/fetch_price';
16
  const SEARCH_CONVERT_PRICE = 'search/convert_price';
17
  const SEARCH_CUSTOM_TEMPLATE = 'search/custom_template';
18
+ const FEED_LOG_ENDPOINT = 'expertrec/general/log_endpoint';
19
+ const FEED_UPLOAD_ENDPOINT = 'expertrec/general/upload_endpoint';
20
  const IS_UPLOAD_FEED = 'is_upload';
21
  const IMAGE_WIDTH = 'expertrec/general/expertrec_image_width';
22
  const IMAGE_HEIGHT = 'expertrec/general/expertrec_image_height';
25
  const MERCHANT_ID = 'expertrec/general/mid';
26
 
27
 
28
+ const BUILD_NO = "1489582957";
29
  private $_password;
30
 
31
  //main function which loads the feed API
136
  $stores = $group->getStores();
137
  foreach ($stores as $oStore) {
138
  $sid=$oStore->getId();
139
+ $store_url = Mage::app()->getStore($sid)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'index.php/expertrec-feed';
140
  $storeUrl=Mage::app()->getStore($sid)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB).'index.php/expertrec-feed?secret='.$this->_password.'&cmd=export&wid='.$wid.'&sid='.$sid;
141
  // Display the store-website details with feed api
142
  echo '<tr>';
155
  }
156
 
157
  echo '<td>
158
+ <form method="post" action="'.$store_url.'">
159
  <p>'.$storeUrl.'</p>
160
+ <input type="hidden" name="secret" value="'.$this->_password.'">
161
+ <input type="hidden" name="cmd" value="export">
162
+ <input type="hidden" name="wid" value="'.$wid.'">
163
+ <input type="hidden" name="sid" value="'.$sid.'">
164
  <button type="submit">submit</button></form></td>';
165
  echo '</tr>';
166
  }
199
  $customImagePortion ="&width=170&height=".$imageHeight;
200
  }
201
 
202
+ $custom_url = $baseUrl.'index.php/expertrec-feed';
203
  $apiUrlWithCustomConf=$baseUrl.'index.php/expertrec-feed?secret='.$this->_password.'&cmd=export&wid=1&sid=1';
204
 
205
+ echo '<form id="custImageForm" name = "custImageForm" method="POST" action ="'.$custom_url.'">
206
  <b>With Custom image size</b><br />';
207
  echo '<p>'.$apiUrlWithCustomConf.$customImagePortion.'</p>
208
+ <input type="hidden" name="secret" value="'.$this->_password.'">
209
+ <input type="hidden" name="cmd" value="export">
210
+ <input type="hidden" name="wid" value="1">
211
+ <input type="hidden" name="sid" value="1">
212
+ <input type="hidden" name="width" value="170">
213
+ <input type="hidden" name="height" value="170">
214
+ <button id="custImgSubmit" name="custImgSubmit" type="submit">Submit</button>
215
+ </form>';
216
+
217
+ echo '<form id ="custImgForm1" name="custImgForm1" method="POST" action="'.$custom_url.'">
218
  <p><b>With pagination without page size(default page size is 500)</b><br />';
219
  echo '<p>'.$apiUrlWithCustomConf.'&ps=1&pe=2</p>
220
+ <input type="hidden" name="secret" value="'.$this->_password.'">
221
+ <input type="hidden" name="cmd" value="export">
222
+ <input type="hidden" name="wid" value="1">
223
+ <input type="hidden" name="sid" value="1">
224
+ <input type="hidden" name="ps" value="1">
225
+ <input type="hidden" name="pe" value="2">
226
  <button id="custImgSubmit1" name="custImgSubmit1" type="submit">Submit</button>
227
  </form>';
228
 
229
+ echo '<form id="custImgForm2" name="custImageForm2" method="POST" action="'.$custom_url.'">
230
  <p><b>With pagination & page size</b><br />';
231
  echo '<p>'.$apiUrlWithCustomConf.'&ps=1&pe=2&psize=50</p>
232
+ <input type="hidden" name="secret" value="'.$this->_password.'">
233
+ <input type="hidden" name="cmd" value="export">
234
+ <input type="hidden" name="wid" value="1">
235
+ <input type="hidden" name="sid" value="1">
236
+ <input type="hidden" name="ps" value="1">
237
+ <input type="hidden" name="pe" value="2">
238
+ <input type="hidden" name="psize" value="50">
239
  <button type="submit" id="custImgSubmit2" name="custImgSubmit2">Submit</submit></form>';
240
  echo '</fieldset>';
241
 
295
  $result .= '<legend>Getting log & Cleaning Expertrec Directory Api\'s</legend>';
296
 
297
  $logUrl = $baseUrl.'index.php/expertrec-feed/index/getlog?secret='.$this->_password;
298
+ $log_url = $baseUrl.'index.php/expertrec-feed/index/getlog';
299
  $cleanDirUrl = $baseUrl.'index.php/expertrec-feed/index/clean?secret='.$this->_password;
300
+ $clean_url = $baseUrl.'index.php/expertrec-feed/index/clean';
301
 
302
+ $result .= '<form method ="POST" id="logForm" name="logForm" method="POST" action="'.$log_url.'">
303
  <p><b>Log url</b><br />';
304
  $result .= '<p>'.$logUrl.'</p>
305
+ <input type="hidden" name="secret" value="'.$this->_password.'">
306
  <button type="submit" id="logSubmit" name="logSubmit">Submit</button></form>';
307
 
308
 
309
+ $result .= '<form method ="POST" id="cleanForm" name="cleanForm" method="POST" action="'.$clean_url.'">
310
  <p><b>Clean directory url</b><br />';
311
  $result .= '<p>'.$cleanDirUrl.'</p>
312
+ <input type="hidden" name="secret" value="'.$this->_password.'">
313
  <button type="submit" id="cleanSubmit" name="cleanSubmit">Submit</button></form>';
314
 
315
 
325
  $result .= '<fieldset>';
326
  $result .= '<legend>Getting Popular products Api</legend>';
327
 
328
+ $suggesion_url = $baseUrl.'index.php/expertrec-feed';
329
+
330
  $apiUrlWithCustomConf=$baseUrl.'index.php/expertrec-feed?secret='.$this->_password.'&cmd=getpp&wid=1&sid=1';
331
 
332
+ $result .= '<form method="POST" action="'.$suggesion_url.'" name ="sug1form" id="sug1form">
333
  <p><b>Without pagination</b><br />';
334
  $result .= '<p>'.$apiUrlWithCustomConf.'</p>
335
+ <input type="hidden" name="secret" value="'.$this->_password.'">
336
+ <input type="hidden" name="cmd" value="export">
337
+ <input type="hidden" name="wid" value="1">
338
+ <input type="hidden" name="sid" value="1">
339
  <button type="submit" name="sug1submit" id="sug1submit">Submit</button></form>';
340
 
341
+ $result .= '<form method="POST" action="'.$suggesion_url.'" name ="sug1form" id="sug1form">
342
  <p><b>With pagination without page size(default page size is 500)</b><br />';
343
  $result .= '<p>'.$apiUrlWithCustomConf.'&ps=1&pe=2</p>
344
+ <input type="hidden" name="secret" value="'.$this->_password.'">
345
+ <input type="hidden" name="cmd" value="export">
346
+ <input type="hidden" name="wid" value="1">
347
+ <input type="hidden" name="sid" value="1">
348
+ <input type="hidden" name="ps" value="1">
349
+ <input type="hidden" name="pe" value="2">
350
  <button type="submit" name="sug1submit" id="sug1submit">Submit</button></form>';
351
 
352
+ $result .= '<form method="POST" action="'.$suggesion_url.'" name ="sug2form" id="sug2form">
353
  <p><b>With pagination & page size</b><br />';
354
  $result .= '<p>'.$apiUrlWithCustomConf.'&ps=1&pe=2&psize=50</p>
355
+ <input type="hidden" name="secret" value="'.$this->_password.'">
356
+ <input type="hidden" name="cmd" value="export">
357
+ <input type="hidden" name="wid" value="1">
358
+ <input type="hidden" name="sid" value="1">
359
+ <input type="hidden" name="ps" value="1">
360
+ <input type="hidden" name="pe" value="2">
361
+ <input type="hidden" name="psize" value="50">
362
  <button type="submit" name="sug2submit" id="sug2submit">Submit</button></form>';
363
 
364
  $result .= '</fieldset>';
399
  if(isset($storedFilters)){
400
  $storedFiltersArray = explode(',', $storedFilters);
401
  }
402
+
403
+ $save_header_url = $baseUrl."index.php/expertrec-feed/config/saveheaders";
404
  $result .= '<fieldset>';
405
  $result .= '<legend>Configure Feed Headers</legend>';
406
 
407
+ $result .= '<form class="setHeadersForm" action="'.$save_header_url.'" method="post" role="form" target="_blank">';
408
 
409
  foreach ($attributes as $attr) {
410
  if (isset($storedHeadersArray) && in_array($attr, $storedHeadersArray)){
443
 
444
 
445
  $result .= '<div style="text-align:center;margin:10px auto;"> ';
446
+ $result .= '<input type="hidden" name="secret" value="'.$this->_password.'">';
447
  $result .= '<input type="button" class="btn btn-md btn-primary" id="toggleSelect" value="Select All" onClick="toggle_select()" style="padding:5px; margin: 5px;"/>';
448
  $result .= '<input type="submit" class="btn btn-md btn-primary" name="selected_headers" value="Submit" style= "padding:5px; margin: 5px;"/>';
449
  $result .= '</div>';
487
 
488
  private function displaySearchConf($baseUrl){
489
  $saveSearchUrl = $baseUrl."index.php/expertrec-feed/config/savesearch?secret=".$this->_password;
490
+ $save_search_url = $baseUrl."index.php/expertrec-feed/config/savesearch";
491
  $result = '<fieldset>';
492
  $result .= '<legend>Configure Search</legend>';
493
+ $result .= '<form class="form-horizontal" action="'.$save_search_url.'" method="post" role="form" target="_blank">';
494
 
495
  $textArray = array("api"=>"Search endpoint", "facet_list"=>"Facet list comma separated", "single_select_filter"=>"Single select filters comma separated", "items_per_page"=>"No of items per page","display_pages"=>"No. of pages to display");
496
 
534
  $result .= '</div>';
535
  $result .= '</div>';
536
  $result .= '<div style="text-align:center;margin:10px auto;">';
537
+ $result .= '<input type="hidden" name="secret" value="'.$this->_password.'">';
538
  $result .= '<input type="submit" class="btn btn-md btn-primary" name="selected_search" value="Submit" style="padding:5px; "/>';
539
  $result .= '</div>';
540
  $result .= '</form>';
546
 
547
  private function displayFeedConf($baseUrl){
548
  $saveFeedApiUrl = $baseUrl."index.php/expertrec-feed/config/savefeedconf?secret=".$this->_password;
549
+ $save_feedApi_url = $baseUrl."index.php/expertrec-feed/config/savefeedconf";
550
  $result = '<fieldset>';
551
  $result .= '<legend>Configure Feed</legend>';
552
+ $result .= '<form class="form-horizontal" action="'.$save_feedApi_url .'" method="post" role="form" target="_blank">';
553
 
554
  $textArray = array("log_api"=>"Feed log endpoint", "upload_api"=>"Feed upload endpoint");
555
  $textToStoreKeyMapArray = array("log_api"=>self::FEED_LOG_ENDPOINT,"upload_api"=>self::FEED_UPLOAD_ENDPOINT);
587
  $result .= '</div>';
588
 
589
  $result .= '<div style="text-align:center;margin:10px auto;">';
590
+ $result .= '<input type="hidden" name="secret" value="'.$this->_password.'">';
591
  $result .= '<input type="submit" class="btn btn-md btn-primary" name="feed_conf" value="Submit" style="padding:5px; "/>';
592
  $result .= '</div>';
593
 
723
  return $result;
724
  }
725
 
726
+ public function pushFeedAction(){
727
+
728
+ $logger = Mage::getSingleton('expertrec_recommendation/log');
729
+
730
+ $mid = Mage::getStoreConfig(self::MERCHANT_ID);
731
+ $website_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
732
+ $admin_email = Mage::getStoreConfig('trans_email/ident_general/email'); //fetch sender email Admin
733
+ $admin_name = Mage::getStoreConfig('trans_email/ident_general/name'); //fetch sender name Admin
734
+
735
+ // checking mid set/not
736
+ if($mid == "new_user"){
737
+
738
+ $siteArray =array('website_url' => $website_url, 'admin_email'=>$admin_email,'admin_name'=>$admin_name);
739
+ $apiUrl = "http://magento.expertrec.com/20ff3ab58c9cd8ad52e24501cc46c84c/getSecretMid";
740
+ try{
741
+ // send request
742
+ $request = new Zend_Http_Client();
743
+ $request->setUri($apiUrl)
744
+ ->setHeaders("Content-Type",'application/json')
745
+ ->setMethod(Zend_Http_Client::GET)
746
+ ->setParameterGet($siteArray)
747
+ ->setConfig(array('timeout' => 1));
748
+ //response with mid and secret
749
+ $response = $request->request();
750
+ $data = json_decode($response->getBody(),true);
751
+ $new_mid = $data['merchantid'];
752
+ //$logger->log("data ".print_r($data,1));
753
+ // update mid and secret
754
+ Mage::helper("expertrec_recommendation")
755
+ ->saveConfig('secret',$data['secret'])
756
+ ->saveConfig('mid',$data['merchantid'])
757
+ ->clearCache();
758
+ $logger->log("Generated new mid and secret");
759
+ }catch (Zend_Http_Client_Exception $e) {
760
+ $logger->log(sprintf($apiUrl ." failed to create mid&secret because HTTP error: %s", $e->getMessage()),Zend_Log::ERR);
761
+ }
762
+ }
763
+
764
+ // all website
765
+ $websiteCollection = Mage::getModel('core/website')->getCollection()->load();
766
+ // $websitecount = count($websiteCollection);
767
+ $websitecount = $websiteCollection->getSize();
768
+ foreach ($websiteCollection as $website){
769
+ $websiteId=$website->getWebsiteId();
770
+ foreach ($website->getGroups() as $group) {
771
+ // all stores
772
+ $stores = $group->getStores();
773
+ foreach ($stores as $oStore) {
774
+ $storeId=$oStore->getId();
775
+ // get all products
776
+ $collection = Mage::getSingleton('expertrec_recommendation/feed_feedfilter')->addBasicFilter($website,$oStore);
777
+ foreach ($collection as $product) {
778
+ // checking product instance
779
+ if (!isset($product) ||
780
+ !$product instanceof Mage_Catalog_Model_Product ||
781
+ !$product->hasData('entity_id')){
782
+ $logger->log('UserFeedPush_Track: product is not a valid type');
783
+ return $this;
784
+ }
785
+ try{
786
+ // get headers
787
+ $storedHeaders = Mage::getStoreConfig(self::CONFIG_HEADERS);
788
+ if (isset($storedHeaders)){
789
+ $header = explode(',', $storedHeaders);
790
+ }
791
+ else{
792
+ $header = array();
793
+ }
794
+ if(!empty($header)){
795
+ // feedUrl as api to userpushfeed
796
+ $feedUrl = "https://feed.expertrec.com/magento/b01eba6261ad7f174cd3a16523e86e65/";
797
+ // $mid = Mage::getStoreConfig(self::MERCHANT_ID);
798
+ // finalurl added with merchant id
799
+ // $finalUrl = $feedUrl.''.$mid.'/';
800
+ $finalUrl = $feedUrl.''.$new_mid.'/';
801
+ if(empty($finalUrl)){
802
+ return $this;
803
+ }
804
+ $resultArray = Mage::getSingleton('expertrec_recommendation/feed_formatter')
805
+ ->init()
806
+ ->prepareRow($header,$product);
807
+ $resultArray['storeId'] = $storeId;
808
+ $resultArray['websiteId'] = $websiteId;
809
+ //$logger->log("Result Array ".print_r($resultArray,1));
810
+
811
+ // sending request
812
+ $response = Mage::getModel('expertrec_recommendation/api_request')
813
+ ->setPrepareRequestStatus(false)
814
+ ->setUserId('expertrec')
815
+ ->setUrl($finalUrl)
816
+ ->setMethod(Zend_Http_Client::POST)
817
+ ->setData($resultArray)
818
+ ->setHeader("Content-Type",'application/json')
819
+ ->setPrepareRequestStatus(true)
820
+ ->sendRequest();
821
+
822
+ //$logger->log('UserFeedPush_Track: request succeded for product with Id #'.$product->getId().' of store '.$storeId);
823
+ if(!$response) {
824
+ $logger->log('UserFeedPush_Track: request failed for product with Id #'.$product->getId());
825
+ }
826
+ }
827
+ }
828
+ catch (Exception $e) {
829
+ $logger->log("UserFeedPush_Track error: ".$e->getMessage());
830
+ }
831
+ }
832
+ }
833
+ }
834
+ $websitecount--;
835
+ }
836
+ // check for feed completion
837
+ if($websitecount == 0){
838
+ $array = array('completed' => 1, );
839
+ $response = Mage::getModel('expertrec_recommendation/api_request')
840
+ ->setPrepareRequestStatus(false)
841
+ ->setUserId('expertrec')
842
+ ->setUrl($finalUrl)
843
+ ->setMethod(Zend_Http_Client::POST)
844
+ ->setData($array)
845
+ ->setHeader("Content-Type",'application/json')
846
+ ->setPrepareRequestStatus(true)
847
+ ->sendRequest();
848
+
849
+ $logger->log('UserFeedPush_Track: request completed');
850
+ if(!$response) {
851
+ $logger->log('UserFeedPush_Track: Request not complete');
852
+ }
853
+ }
854
+ // update db to 1 once feed pushed
855
+ Mage::helper("expertrec_recommendation")->saveConfig('expertrec_feed_push','1');
856
+ }
857
+
858
+ //upload feed by user
859
+ public function feedAction(){
860
+ $this->pushFeedAction();
861
+ return $this->_redirectReferer();
862
+ }
863
+
864
+
865
  }
 
app/code/community/Expertrec/Recommendation/data/expertrec_setup/data-install-1.2.3.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // $background_func = Mage::getBaseUrl().'index.php/expertrec-feed/api/pushFeed';
4
+ // Mage::getSingleton('expertrec_recommendation/log')->log("Push Feed on new Installation");
5
+ // $cmd ="curl $background_func";
6
+ // Mage::getSingleton('expertrec_recommendation/log')->log("url ".print_r($cmd,1));
7
+ // // executes in background
8
+ // exec($cmd ." > /dev/null 2>&1 &",$out,$res);
9
+ ?>
app/code/community/Expertrec/Recommendation/etc/adminhtml.xml CHANGED
@@ -10,9 +10,15 @@
10
  <sort_order>10</sort_order>
11
  <action>expertrec-signup</action>
12
  </expertrec>
 
 
 
 
 
 
13
  <!-- added support mail -->
14
  <support translate="title">
15
- <title>Add Support</title>
16
  <sort_order>90</sort_order>
17
  <action>expertrec-signup/index/mail</action>
18
  </support>
10
  <sort_order>10</sort_order>
11
  <action>expertrec-signup</action>
12
  </expertrec>
13
+ <!-- added user upload feed -->
14
+ <feed>
15
+ <title>Upload Feed</title>
16
+ <sort_order>15</sort_order>
17
+ <action>expertrec_recommendation/api/feed</action>
18
+ </feed>
19
  <!-- added support mail -->
20
  <support translate="title">
21
+ <title>Contact Support</title>
22
  <sort_order>90</sort_order>
23
  <action>expertrec-signup/index/mail</action>
24
  </support>
app/code/community/Expertrec/Recommendation/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Expertrec_Recommendation>
5
- <version>1.2.2</version>
6
  </Expertrec_Recommendation>
7
  </modules>
8
  <global>
@@ -133,4 +133,15 @@
133
  </controller_action_layout_load_before>
134
  </events>
135
  </frontend>
 
 
 
 
 
 
 
 
 
 
 
136
  </config>
2
  <config>
3
  <modules>
4
  <Expertrec_Recommendation>
5
+ <version>1.2.3</version>
6
  </Expertrec_Recommendation>
7
  </modules>
8
  <global>
133
  </controller_action_layout_load_before>
134
  </events>
135
  </frontend>
136
+ <!-- added template for admin-notification -->
137
+ <adminhtml>
138
+ <layout>
139
+ <updates>
140
+ <expertrec_recommendation>
141
+ <file>expertrec/recommendation.xml</file>
142
+ </expertrec_recommendation>
143
+ </updates>
144
+ </layout>
145
+ </adminhtml>
146
+
147
  </config>
app/code/community/Expertrec/Recommendation/sql/expertrec_setup/{mysql4-install-1.2.2.php → mysql4-install-1.2.3.php} RENAMED
@@ -15,7 +15,7 @@ $result['status'] = "Installed";
15
  //magento version
16
  $result['mage_ver'] = $mage_ver;
17
  //expertrec version
18
- $result['expertrec_ver'] = '1.2.2';
19
  //Subdomain
20
  $result['site_subdomain'] = $uri;
21
  //hostname
@@ -61,7 +61,8 @@ $installer->run("
61
  ('default',0,'expertrec/general/expertrec_image_width',250),
62
  ('default',0,'expertrec/general/expertrec_image_height',250),
63
  ('default',0,'expertrec/general/expertrec_thumbnail_width',80),
64
- ('default',0,'expertrec/general/expertrec_thumbnail_height',80)
 
65
  ON DUPLICATE KEY UPDATE `value`=`value`;
66
  ");
67
 
15
  //magento version
16
  $result['mage_ver'] = $mage_ver;
17
  //expertrec version
18
+ $result['expertrec_ver'] = '1.2.3';
19
  //Subdomain
20
  $result['site_subdomain'] = $uri;
21
  //hostname
61
  ('default',0,'expertrec/general/expertrec_image_width',250),
62
  ('default',0,'expertrec/general/expertrec_image_height',250),
63
  ('default',0,'expertrec/general/expertrec_thumbnail_width',80),
64
+ ('default',0,'expertrec/general/expertrec_thumbnail_height',80),
65
+ ('default',0,'expertrec/general/expertrec_feed_push',0)
66
  ON DUPLICATE KEY UPDATE `value`=`value`;
67
  ");
68
 
app/code/community/Expertrec/Recommendation/sql/expertrec_setup/{mysql4-upgrade-1.2.1-1.2.2.php → mysql4-upgrade-1.2.2-1.2.3.php} RENAMED
@@ -17,7 +17,7 @@ $result['status'] = "Upgraded";
17
  //magento version
18
  $result['mage_ver'] = $mage_ver;
19
  //expertrec version
20
- $result['expertrec_ver'] = '1.2.2';
21
  //hostname
22
  $result['site_host'] = $host;
23
  //Subdomain
@@ -63,7 +63,8 @@ $installer->run("
63
  ('default',0,'expertrec/general/expertrec_image_width',250),
64
  ('default',0,'expertrec/general/expertrec_image_height',250),
65
  ('default',0,'expertrec/general/expertrec_thumbnail_width',80),
66
- ('default',0,'expertrec/general/expertrec_thumbnail_height',80)
 
67
  ON DUPLICATE KEY UPDATE `value`=`value`;
68
  ");
69
 
17
  //magento version
18
  $result['mage_ver'] = $mage_ver;
19
  //expertrec version
20
+ $result['expertrec_ver'] = '1.2.3';
21
  //hostname
22
  $result['site_host'] = $host;
23
  //Subdomain
63
  ('default',0,'expertrec/general/expertrec_image_width',250),
64
  ('default',0,'expertrec/general/expertrec_image_height',250),
65
  ('default',0,'expertrec/general/expertrec_thumbnail_width',80),
66
+ ('default',0,'expertrec/general/expertrec_thumbnail_height',80),
67
+ ('default',0,'expertrec/general/expertrec_feed_push',0)
68
  ON DUPLICATE KEY UPDATE `value`=`value`;
69
  ");
70
 
app/design/adminhtml/default/default/layout/expertrec/recommendation.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <!-- ON ALL PAGES -->
4
+ <default>
5
+ <reference name="notifications">
6
+ <block type="core/template" name="expertrec_recommendation_adminhtml_notifications" template="expertrec/recommendation/notifications.phtml"></block>
7
+ </reference>
8
+ </default>
9
+
10
+ </layout>
app/design/adminhtml/default/default/template/expertrec/expertrec/recommendation/notifications.phtml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <?php
3
+
4
+ $feed_push = 'expertrec/general/expertrec_feed_push';
5
+ $pushed = Mage::getStoreConfig($feed_push);
6
+ if($pushed == 0): ?>
7
+
8
+ <div class="notification-global">
9
+ <strong><?php echo $this->helper('index')->__('Expertrec : ') ?></strong>
10
+ <?php echo "Please Upload the Feed"?>.
11
+ <?php $push_feed = Mage::getBaseUrl().'expertrec-feed/api/feed';?>
12
+ <?php echo $this->helper('index')->__('Click here to <a href="%s">Upload Feed</a>.', $push_feed);?>
13
+ </div>
14
+
15
+ <?php endif;?>
app/design/adminhtml/default/default/template/expertrec/recommendation/notifications.phtml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ <?php
3
+
4
+ $feed_push = 'expertrec/general/expertrec_feed_push';
5
+ $pushed = Mage::getStoreConfig($feed_push);
6
+ if($pushed == 0): ?>
7
+
8
+ <div class="notification-global">
9
+ <strong><?php echo $this->helper('index')->__('Expertrec : ') ?></strong>
10
+ <?php echo "Please upload the Feed"?>.
11
+ <?php $push_feed = Mage::getBaseUrl().'expertrec-feed/api/feed';?>
12
+ <?php echo $this->helper('index')->__('Click here to <a href="%s">Upload Feed</a>.', $push_feed);?>
13
+ </div>
14
+
15
+ <?php endif;?>
app/design/frontend/base/default/template/expertrec/feed/info.phtml CHANGED
@@ -113,7 +113,11 @@
113
  <!-- <td><a href = "<?php //echo $_item['surl'] ?>"><?php //echo $_item['surl'] ?></a></td> -->
114
  <!-- form post request -->
115
  <td><form method="post" action="<?php echo $_item['surl'] ?>" id="webform<?php echo $_item['sid']; ?>" name="webform<?php echo $_item['sid']; ?>">
116
- <p><?php echo $_item['surl'] ?></p>
 
 
 
 
117
  <button type="submit" id ="websubmit<?php echo $_item['sid']; ?>" name ="websubmit<?php echo $_item['sid']; ?>">submit</button>
118
  </form></td>
119
 
@@ -145,35 +149,48 @@
145
  $customImageUrl =$this->getCustomApiUrl()."&width=170&height=".$imageParams["imgheight"];
146
  }
147
 
 
148
  ?>
149
 
150
  <fieldset>
151
  <legend>Example</legend>
152
  <!-- form post request -->
153
- <form method="post" action="<?php echo $this->getCustomApiUrl()?>" id="custImgForm" name="custImgForm">
154
  <p><b>With Custom Image</b></p>
155
  <!-- <p><a href="<?php //echo $this->getCustomApiUrl().'&width=170&height=170' ?>"><?php //echo $customImageUrl ?></a></p> -->
156
- <p><?php echo $this->getCustomApiUrl().'&width=170&height=170' ?></p>
 
 
 
 
157
  <input type="hidden" name="width" value="170">
158
  <input type="hidden" name="height" value="170">
159
  <button id="custsub" name="custsub" type="submit" name="onsubmit" value="custom">submit</button>
160
  </form>
161
 
162
- <form method="post" action="<?php echo $this->getCustomApiUrl()?>">
163
  <p><b>With pagination without page size(default page size is 500)</b></p>
164
  <!-- <p><a href="<?php //echo $this->getCustomApiUrl().'&ps=1&pe=2' ?>">
165
  <?php //echo $this->getCustomApiUrl().'&ps=1&pe=2' ?></a></p> -->
166
- <p><?php echo $this->getCustomApiUrl().'&ps=1&pe=2' ?></p>
 
 
 
 
167
  <input type="hidden" name="ps" value="1">
168
  <input type="hidden" name="pe" value="2">
169
  <button type="submit" name="onsubmit" value="custom_nosize">submit</button>
170
  </form>
171
 
172
- <form method="post" action="<?php echo $this->getCustomApiUrl()?>" id="custform1" name="custform1">
173
  <p><b>With pagination without page size(default page size is 500)</b></p>
174
  <!-- <p><a href="<?php //echo $this->getCustomApiUrl().'&ps=1&pe=2&psize=50' ?>">
175
  <?php //echo $this->getCustomApiUrl().'&ps=1&pe=2&psize=50' ?></a></p> -->
176
- <p><?php echo $this->getCustomApiUrl().'&ps=1&pe=2&psize=50' ?></p>
 
 
 
 
177
  <input type="hidden" name="ps" value="1">
178
  <input type="hidden" name="pe" value="2">
179
  <input type="hidden" name="psize" value="50">
@@ -186,26 +203,39 @@
186
  <fieldset>
187
  <legend>Getting Popular Products Api</legend>
188
  <!-- form post request -->
189
- <form method="post" action="<?php echo $this->getSuggestionApiUrl() ?>" id="sugform" name="sugform">
 
190
  <p><b>Without pagination</b></p>
191
  <!-- <p><a href="<?php //echo $this->getSuggestionApiUrl() ?>"><?php //echo $this->getSuggestionApiUrl() ?></a></p> -->
192
- <p><?php echo $this->getSuggestionApiUrl() ?></p>
 
 
 
 
193
  <button id="sugsub" name="sugsub" type="submit" name="onsubmit" value="sugg">submit</button>
194
  </form>
195
 
196
- <form id="sug1form" name="sug1form" method="post" action="<?php echo $this->getSuggestionApiUrl() ?>">
197
  <p><b>With pagination without page size(default page size is 500)</b></p>
198
  <!-- <p><a href="<?php //echo $this->getSuggestionApiUrl().'&ps=1&pe=2' ?>"><?php //echo $this->getSuggestionApiUrl().'&ps=1&pe=2' ?></a></p> -->
199
- <p><?php echo $this->getSuggestionApiUrl().'&ps=1&pe=2' ?></p>
 
 
 
 
200
  <input type="hidden" name="ps" value="1">
201
  <input type="hidden" name="pe" value="2">
202
  <button id="sug1sub" name="sug1sub" type="submit" name="onsubmit" value="sugg_nosize">submit</button>
203
  </form>
204
 
205
- <form method="post" id="sug2form" name="sug2form" action="<?php echo $this->getSuggestionApiUrl() ?>">
206
  <p><b>With pagination without page size(default page size is 500)</b></p>
207
  <!-- <p><a href="<?php //echo $this->getSuggestionApiUrl().'&ps=1&pe=2&psize=50' ?>"><?php //echo $this->getSuggestionApiUrl().'&ps=1&pe=2&psize=50' ?></a></p> -->
208
- <p><?php echo $this->getSuggestionApiUrl().'&ps=1&pe=2&psize=50' ?></p>
 
 
 
 
209
  <input type="hidden" name="ps" value="1">
210
  <input type="hidden" name="pe" value="2">
211
  <input type="hidden" name="psize" value="50">
@@ -217,16 +247,20 @@
217
  <div style="margin-top:20px">
218
  <fieldset>
219
  <legend>Getting log & Cleaning Expertrec Directory Api's</legend>
220
- <form id="logform" name="logform" method="post" action="<?php echo $this->getLogUrl() ?>">
 
221
  <p><b>Get Log Url</b></p>
222
- <!-- <p><a href="<?php echo $this->getLogUrl() ?>"><?php echo $this->getLogUrl() ?></a></p> -->
223
- <p><?php echo $this->getLogUrl() ?></p>
 
224
  <button id="logsub" name="logsub" type="submit">submit</button>
225
  </form>
226
- <form id="cleanform" name="cleanform" method="post" action="<?php echo $this->getCleanDirUrl() ?>" target="_blank">
 
227
  <p><b>Get Cleandir Url</b></p>
228
  <!-- <p><a href="<?php //echo $this->getCleanDirUrl() ?>" target="_blank"><?php //echo $this->getCleanDirUrl() ?></a></p> -->
229
- <p><?php echo $this->getCleanDirUrl() ?></p>
 
230
  <button id="cleansub" name="cleansub" type="submit">submit</button>
231
  </form>
232
  </fieldset>
@@ -251,7 +285,7 @@
251
  <fieldset>
252
  <legend>Configure Feed Headers</legend>
253
  <form class="setHeadersForm"
254
- action="<?php echo $this->getBaseUrl()."index.php/expertrec-feed/config/saveheaders?secret=".$this->getSecret() ?>" method="post" role="form" target="_blank">
255
  <?php
256
  $storedFilters = $this->getStoredFilters();
257
  $storedHeaders = $this->getStoredHeaders();
@@ -310,6 +344,7 @@
310
 
311
  <!-- Submit buttons section-->
312
  <div style="text-align:center;margin:10px auto;">
 
313
  <input type="button" class="btn btn-md btn-primary" id="toggleSelect" value="Select All" onClick="toggle_select()" style="padding:5px; margin: 5px;"/>
314
  <input type="submit" class="btn btn-md btn-primary" name="selected_headers" value="Submit" style= "padding:5px; margin: 5px;"/>
315
  </div>
@@ -350,8 +385,7 @@
350
  <div style="margin-top:20px">
351
  <fieldset>
352
  <legend>Configure Feed</legend>
353
- <form class="form-horizontal" action="<?php echo $this->getBaseUrl()."index.php/expertrec-feed/config/savefeedconf?secret=".$this->getSecret(); ?>" method="post" role="form"
354
- target="_blank">
355
 
356
  <!--Display URL-->
357
  <?php foreach ($this->getFeedConfUrl() as $_feedUrl): ?>
@@ -390,6 +424,7 @@
390
 
391
  <!--Defining submit button-->
392
  <div style="text-align:center;margin:10px auto;">
 
393
  <input type="submit" class="btn btn-md btn-primary" name="feed_conf" value="Submit"
394
  style="padding:5px; "/>
395
  </div>
@@ -404,7 +439,7 @@
404
  <div style="margin-top:20px">
405
  <fieldset>
406
  <legend>Configure Search</legend>
407
- <form class="form-horizontal" action="<?php echo $this->getBaseUrl()."index.php/expertrec-feed/config/savesearch?secret=".$this->getSecret() ?>" method="post"
408
  role="form" target="_blank">
409
  <!--Defining Search fields-->
410
  <?php foreach ($this->getSearchFields() as $_searchFields): ?>
@@ -449,6 +484,7 @@
449
 
450
  <!--Defining submit button-->
451
  <div style="text-align:center;margin:10px auto;">
 
452
  <input type="submit" class="btn btn-md btn-primary" name="selected_search" value="Submit" style="padding:5px; "/>
453
  </div>
454
  </form>
113
  <!-- <td><a href = "<?php //echo $_item['surl'] ?>"><?php //echo $_item['surl'] ?></a></td> -->
114
  <!-- form post request -->
115
  <td><form method="post" action="<?php echo $_item['surl'] ?>" id="webform<?php echo $_item['sid']; ?>" name="webform<?php echo $_item['sid']; ?>">
116
+ <p><?php echo $_item['link'] ?></p>
117
+ <input type="hidden" name="secret" value="<?php echo $_item['secret']?>">
118
+ <input type="hidden" name="cmd" value="<?php echo $_item['cmd']?>">
119
+ <input type="hidden" name="wid" value="<?php echo $_item['wid']?>">
120
+ <input type="hidden" name="sid" value="<?php echo $_item['sid']?>">
121
  <button type="submit" id ="websubmit<?php echo $_item['sid']; ?>" name ="websubmit<?php echo $_item['sid']; ?>">submit</button>
122
  </form></td>
123
 
149
  $customImageUrl =$this->getCustomApiUrl()."&width=170&height=".$imageParams["imgheight"];
150
  }
151
 
152
+ $customApi = $this->getCustomApiUrl();
153
  ?>
154
 
155
  <fieldset>
156
  <legend>Example</legend>
157
  <!-- form post request -->
158
+ <form method="post" action="<?php echo $customApi['surl'] ?>" id="custImgForm" name="custImgForm">
159
  <p><b>With Custom Image</b></p>
160
  <!-- <p><a href="<?php //echo $this->getCustomApiUrl().'&width=170&height=170' ?>"><?php //echo $customImageUrl ?></a></p> -->
161
+ <p><?php echo $customApi['link'].'&width=170&height=170' ?></p>
162
+ <input type="hidden" name="secret" value="<?php echo $customApi['secret']?>">
163
+ <input type="hidden" name="cmd" value="<?php echo $customApi['cmd']?>">
164
+ <input type="hidden" name="wid" value="<?php echo $customApi['wid']?>">
165
+ <input type="hidden" name="sid" value="<?php echo $customApi['sid']?>">
166
  <input type="hidden" name="width" value="170">
167
  <input type="hidden" name="height" value="170">
168
  <button id="custsub" name="custsub" type="submit" name="onsubmit" value="custom">submit</button>
169
  </form>
170
 
171
+ <form method="post" action="<?php echo $customApi['surl'] ?>">
172
  <p><b>With pagination without page size(default page size is 500)</b></p>
173
  <!-- <p><a href="<?php //echo $this->getCustomApiUrl().'&ps=1&pe=2' ?>">
174
  <?php //echo $this->getCustomApiUrl().'&ps=1&pe=2' ?></a></p> -->
175
+ <p><?php echo $customApi['link'].'&ps=1&pe=2' ?></p>
176
+ <input type="hidden" name="secret" value="<?php echo $customApi['secret']?>">
177
+ <input type="hidden" name="cmd" value="<?php echo $customApi['cmd']?>">
178
+ <input type="hidden" name="wid" value="<?php echo $customApi['wid']?>">
179
+ <input type="hidden" name="sid" value="<?php echo $customApi['sid']?>">
180
  <input type="hidden" name="ps" value="1">
181
  <input type="hidden" name="pe" value="2">
182
  <button type="submit" name="onsubmit" value="custom_nosize">submit</button>
183
  </form>
184
 
185
+ <form method="post" action="<?php echo $customApi['surl'] ?>" id="custform1" name="custform1">
186
  <p><b>With pagination without page size(default page size is 500)</b></p>
187
  <!-- <p><a href="<?php //echo $this->getCustomApiUrl().'&ps=1&pe=2&psize=50' ?>">
188
  <?php //echo $this->getCustomApiUrl().'&ps=1&pe=2&psize=50' ?></a></p> -->
189
+ <p><?php echo $customApi['link'].'&ps=1&pe=2&psize=50' ?></p>
190
+ <input type="hidden" name="secret" value="<?php echo $customApi['secret']?>">
191
+ <input type="hidden" name="cmd" value="<?php echo $customApi['cmd']?>">
192
+ <input type="hidden" name="wid" value="<?php echo $customApi['wid']?>">
193
+ <input type="hidden" name="sid" value="<?php echo $customApi['sid']?>">
194
  <input type="hidden" name="ps" value="1">
195
  <input type="hidden" name="pe" value="2">
196
  <input type="hidden" name="psize" value="50">
203
  <fieldset>
204
  <legend>Getting Popular Products Api</legend>
205
  <!-- form post request -->
206
+ <?php $suggestionApi = $this->getSuggestionApiUrl();?>
207
+ <form method="post" action="<?php echo $suggestionApi['surl'] ?>" id="sugform" name="sugform">
208
  <p><b>Without pagination</b></p>
209
  <!-- <p><a href="<?php //echo $this->getSuggestionApiUrl() ?>"><?php //echo $this->getSuggestionApiUrl() ?></a></p> -->
210
+ <p><?php echo $suggestionApi['link'] ?></p>
211
+ <input type="hidden" name="secret" value="<?php echo $suggestionApi['secret']?>">
212
+ <input type="hidden" name="cmd" value="<?php echo $suggestionApi['cmd']?>">
213
+ <input type="hidden" name="wid" value="<?php echo $suggestionApi['wid']?>">
214
+ <input type="hidden" name="sid" value="<?php echo $suggestionApi['sid']?>">
215
  <button id="sugsub" name="sugsub" type="submit" name="onsubmit" value="sugg">submit</button>
216
  </form>
217
 
218
+ <form id="sug1form" name="sug1form" method="post" action="<?php echo $suggestionApi['surl'] ?>">
219
  <p><b>With pagination without page size(default page size is 500)</b></p>
220
  <!-- <p><a href="<?php //echo $this->getSuggestionApiUrl().'&ps=1&pe=2' ?>"><?php //echo $this->getSuggestionApiUrl().'&ps=1&pe=2' ?></a></p> -->
221
+ <p><?php echo $suggestionApi['link'].'&ps=1&pe=2' ?></p>
222
+ <input type="hidden" name="secret" value="<?php echo $suggestionApi['secret']?>">
223
+ <input type="hidden" name="cmd" value="<?php echo $suggestionApi['cmd']?>">
224
+ <input type="hidden" name="wid" value="<?php echo $suggestionApi['wid']?>">
225
+ <input type="hidden" name="sid" value="<?php echo $suggestionApi['sid']?>">
226
  <input type="hidden" name="ps" value="1">
227
  <input type="hidden" name="pe" value="2">
228
  <button id="sug1sub" name="sug1sub" type="submit" name="onsubmit" value="sugg_nosize">submit</button>
229
  </form>
230
 
231
+ <form method="post" id="sug2form" name="sug2form" action="<?php echo $suggestionApi['surl'] ?>">
232
  <p><b>With pagination without page size(default page size is 500)</b></p>
233
  <!-- <p><a href="<?php //echo $this->getSuggestionApiUrl().'&ps=1&pe=2&psize=50' ?>"><?php //echo $this->getSuggestionApiUrl().'&ps=1&pe=2&psize=50' ?></a></p> -->
234
+ <p><?php echo $suggestionApi['link'].'&ps=1&pe=2&psize=50' ?></p>
235
+ <input type="hidden" name="secret" value="<?php echo $suggestionApi['secret']?>">
236
+ <input type="hidden" name="cmd" value="<?php echo $suggestionApi['cmd']?>">
237
+ <input type="hidden" name="wid" value="<?php echo $suggestionApi['wid']?>">
238
+ <input type="hidden" name="sid" value="<?php echo $suggestionApi['sid']?>">
239
  <input type="hidden" name="ps" value="1">
240
  <input type="hidden" name="pe" value="2">
241
  <input type="hidden" name="psize" value="50">
247
  <div style="margin-top:20px">
248
  <fieldset>
249
  <legend>Getting log & Cleaning Expertrec Directory Api's</legend>
250
+ <?php $logApi = $this->getLogUrl();?>
251
+ <form id="logform" name="logform" method="post" action="<?php echo $logApi['surl'] ?>">
252
  <p><b>Get Log Url</b></p>
253
+ <!-- <p><a href="<?php //echo $this->getLogUrl() ?>"><?php //echo $this->getLogUrl() ?></a></p> -->
254
+ <p><?php echo $logApi['surl'] ?></p>
255
+ <input type="hidden" name="secret" value="<?php echo $logApi['secret']?>">
256
  <button id="logsub" name="logsub" type="submit">submit</button>
257
  </form>
258
+ <?php $cleanDir = $this->getCleanDirUrl();?>
259
+ <form id="cleanform" name="cleanform" method="post" action="<?php echo $cleanDir['surl'] ?>" target="_blank">
260
  <p><b>Get Cleandir Url</b></p>
261
  <!-- <p><a href="<?php //echo $this->getCleanDirUrl() ?>" target="_blank"><?php //echo $this->getCleanDirUrl() ?></a></p> -->
262
+ <p><?php echo $cleanDir['surl'] ?></p>
263
+ <input type="hidden" name="secret" value="<?php echo $cleanDir['secret']?>">
264
  <button id="cleansub" name="cleansub" type="submit">submit</button>
265
  </form>
266
  </fieldset>
285
  <fieldset>
286
  <legend>Configure Feed Headers</legend>
287
  <form class="setHeadersForm"
288
+ action="<?php echo $this->getBaseUrl()."index.php/expertrec-feed/config/saveheaders" ; ?>" method="post" role="form" target="_blank">
289
  <?php
290
  $storedFilters = $this->getStoredFilters();
291
  $storedHeaders = $this->getStoredHeaders();
344
 
345
  <!-- Submit buttons section-->
346
  <div style="text-align:center;margin:10px auto;">
347
+ <input type="hidden" name="secret" value="<?php echo $this->getSecret();?>">
348
  <input type="button" class="btn btn-md btn-primary" id="toggleSelect" value="Select All" onClick="toggle_select()" style="padding:5px; margin: 5px;"/>
349
  <input type="submit" class="btn btn-md btn-primary" name="selected_headers" value="Submit" style= "padding:5px; margin: 5px;"/>
350
  </div>
385
  <div style="margin-top:20px">
386
  <fieldset>
387
  <legend>Configure Feed</legend>
388
+ <form class="form-horizontal" action="<?php echo $this->getBaseUrl()."index.php/expertrec-feed/config/savefeedconf" ; ?>" method="post" role="form" target="_blank">
 
389
 
390
  <!--Display URL-->
391
  <?php foreach ($this->getFeedConfUrl() as $_feedUrl): ?>
424
 
425
  <!--Defining submit button-->
426
  <div style="text-align:center;margin:10px auto;">
427
+ <input type="hidden" name="secret" value="<?php echo $this->getSecret() ;?>">
428
  <input type="submit" class="btn btn-md btn-primary" name="feed_conf" value="Submit"
429
  style="padding:5px; "/>
430
  </div>
439
  <div style="margin-top:20px">
440
  <fieldset>
441
  <legend>Configure Search</legend>
442
+ <form class="form-horizontal" action="<?php echo $this->getBaseUrl()."index.php/expertrec-feed/config/savesearch" ; ?>" method="post"
443
  role="form" target="_blank">
444
  <!--Defining Search fields-->
445
  <?php foreach ($this->getSearchFields() as $_searchFields): ?>
484
 
485
  <!--Defining submit button-->
486
  <div style="text-align:center;margin:10px auto;">
487
+ <input type="hidden" name="secret" value="<?php echo $this->getSecret() ;?>">
488
  <input type="submit" class="btn btn-md btn-primary" name="selected_search" value="Submit" style="padding:5px; "/>
489
  </div>
490
  </form>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Expertrec_Recommendation</name>
4
- <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Expertrec search extension helps you have complete control over your site search results. You will be able to add instant autocomplete, spell corrections that learn from the user behaviour on your site, and show product recommendations within the search user interface. It also adds search results pages with facets, sorting by different attributes.</description>
11
  <notes>Expertrec Recommendation plugin for magento sites.</notes>
12
  <authors><author><name>melchi</name><user>melchi</user><email>magento@cloudinfra.in</email></author><author><name>magento</name><user>magento</user><email>magento-team@cloudinfra.in</email></author></authors>
13
- <date>2017-03-13</date>
14
- <time>11:54:08</time>
15
- <contents><target name="magecommunity"><dir name="Expertrec"><dir name="Recommendation"><dir name="Block"><file name="Api.php" hash="ce87654622f030c6e8b5a992713da5d8"/></dir><dir name="Helper"><file name="Autocompletehelper.php" hash="7bd733d91f69091c1f6f5bb162467a43"/><file name="Data.php" hash="8a2760edc960d6a1bc72d80e73944cb3"/><file name="Filehelper.php" hash="5ac956e12548398dc159a16eb1a03e8b"/><dir name="Search"><file name="Layout.php" hash="c68c9d6c4def7daca0a0ae332dceaff3"/></dir><file name="Suggestionhelper.php" hash="93f3aa295761a510f782856c0180a799"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="7df8b22d74b6a05de86da287687a6e96"/></dir><dir name="Feed"><file name="Feedconfig.php" hash="013bd447dccc7cc4f073be5bd53a18c9"/><file name="Feedcreator.php" hash="34fafb9a24913a99606056f33728cf7d"/><file name="Feedfilter.php" hash="d7599a63a8d1f2033cb1e56204809c2d"/><file name="Formatter.php" hash="4c78f1f2eaa65a9a46f46d129f62f662"/></dir><file name="Feed.php" hash="ddac87d6a060bc77fb7718e7b19e1273"/><file name="Log.php" hash="27fcee49e67fe2be761b4af94aecff2b"/><file name="Observer.php" hash="2c332472ed4cd1ccea25bec705dbda06"/><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="6b660487988035cd715fa3c51b2b58b6"/></dir></dir><dir name="Translator"><file name="Category.php" hash="0050de4918d73af310008aa8f49239d1"/></dir><file name="Validate.php" hash="2d4619284f24309b77668f07cb1ef9f4"/><dir name="Writer"><file name="Abstract.php" hash="6b5153c0a09f8d4ee6fe4cedc5ec8a64"/><file name="Csv.php" hash="427fea44d988302f409e1860c18875b1"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="c4f80c214d11fd531496e71b4951b27f"/></dir><file name="ApiController.php" hash="9d02db7c931e0135a60a27ec4934b8f0"/><dir name="CatalogSearch"><file name="ResultController.php" hash="e740f44c0cef4aa83545f2278626e7de"/></dir><file name="ConfigController.php" hash="0fd9a9686806c26635c7db0a57a0f4ab"/><file name="IndexController.php" hash="7bfaa867dfa9bed0c7b0ebd634d2e2bb"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e86ff2b7aac4d09a4c359f0047b06ca3"/><file name="config.xml" hash="3d74632f94b325b7581d2500d6f20a53"/></dir><dir name="sql"><dir name="expertrec_setup"><file name="mysql4-install-1.2.2.php" hash="d695ecde61f37b51399c233a4a0a3b96"/><file name="mysql4-upgrade-1.2.1-1.2.2.php" hash="1020f93a657942a9adc0e8c583cc3d6a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Expertrec_Recommendation.xml" hash="c314465f907c89dfe912035be8d48e71"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="expertrec"><file name="recommendation.xml" hash="a1d166c3c3e665b476aaef69e0e6b792"/></dir></dir><dir name="template"><dir name="expertrec"><dir name="feed"><file name="info.phtml" hash="e386121a2d08b754ace87ab8a146e941"/></dir><dir name="recommendation"><file name="tracker.phtml" hash="6e8219c5d1e46642d7915cedaa974313"/><dir name="tracking"><file name="product.phtml" hash="e02d3f870397cf351bc0ff7ca864c7e2"/></dir></dir><dir name="search"><file name="custom.phtml" hash="0f162aa949c00329e3697f0a71abc43d"/><file name="list.phtml" hash="cda3f434a1e70f1272f62bb9f0848726"/><file name="view.phtml" hash="ecb9a55f6128bef2f10d66528dc5424b"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Expertrec_Recommendation</name>
4
+ <version>1.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
10
  <description>Expertrec search extension helps you have complete control over your site search results. You will be able to add instant autocomplete, spell corrections that learn from the user behaviour on your site, and show product recommendations within the search user interface. It also adds search results pages with facets, sorting by different attributes.</description>
11
  <notes>Expertrec Recommendation plugin for magento sites.</notes>
12
  <authors><author><name>melchi</name><user>melchi</user><email>magento@cloudinfra.in</email></author><author><name>magento</name><user>magento</user><email>magento-team@cloudinfra.in</email></author></authors>
13
+ <date>2017-03-15</date>
14
+ <time>13:05:16</time>
15
+ <contents><target name="magecommunity"><dir name="Expertrec"><dir name="Recommendation"><dir name="Block"><file name="Api.php" hash="e97933a6583fad907bce3794c30f4377"/></dir><dir name="Helper"><file name="Autocompletehelper.php" hash="7bd733d91f69091c1f6f5bb162467a43"/><file name="Data.php" hash="8a2760edc960d6a1bc72d80e73944cb3"/><file name="Filehelper.php" hash="5ac956e12548398dc159a16eb1a03e8b"/><dir name="Search"><file name="Layout.php" hash="c68c9d6c4def7daca0a0ae332dceaff3"/></dir><file name="Suggestionhelper.php" hash="93f3aa295761a510f782856c0180a799"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="dd34241f00c6bea36700f768a3feef6e"/></dir><dir name="Feed"><file name="Feedconfig.php" hash="013bd447dccc7cc4f073be5bd53a18c9"/><file name="Feedcreator.php" hash="34fafb9a24913a99606056f33728cf7d"/><file name="Feedfilter.php" hash="d7599a63a8d1f2033cb1e56204809c2d"/><file name="Formatter.php" hash="4c78f1f2eaa65a9a46f46d129f62f662"/></dir><file name="Feed.php" hash="ddac87d6a060bc77fb7718e7b19e1273"/><file name="Log.php" hash="27fcee49e67fe2be761b4af94aecff2b"/><file name="Observer.php" hash="2c332472ed4cd1ccea25bec705dbda06"/><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="6b660487988035cd715fa3c51b2b58b6"/></dir></dir><dir name="Translator"><file name="Category.php" hash="0050de4918d73af310008aa8f49239d1"/></dir><file name="Validate.php" hash="2d4619284f24309b77668f07cb1ef9f4"/><dir name="Writer"><file name="Abstract.php" hash="6b5153c0a09f8d4ee6fe4cedc5ec8a64"/><file name="Csv.php" hash="427fea44d988302f409e1860c18875b1"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="c4f80c214d11fd531496e71b4951b27f"/></dir><file name="ApiController.php" hash="a2b2e7a06995e54c35d99ca1dcc2041a"/><dir name="CatalogSearch"><file name="ResultController.php" hash="e740f44c0cef4aa83545f2278626e7de"/></dir><file name="ConfigController.php" hash="0fd9a9686806c26635c7db0a57a0f4ab"/><file name="IndexController.php" hash="7bfaa867dfa9bed0c7b0ebd634d2e2bb"/></dir><dir name="data"><dir name="expertrec_setup"><file name="data-install-1.2.3.php" hash="d37c3f0bbef3b8022be9f6e5e8e198a2"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="90e0a400e62e045883cb9624b69c3f78"/><file name="config.xml" hash="4b57cef3aef112a87befde4bcf909c2a"/></dir><dir name="sql"><dir name="expertrec_setup"><file name="mysql4-install-1.2.3.php" hash="348582c1a41e97e98a2e378cdc0791bf"/><file name="mysql4-upgrade-1.2.2-1.2.3.php" hash="cb328780d8de9e7994ca69847727262e"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Expertrec_Recommendation.xml" hash="c314465f907c89dfe912035be8d48e71"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="expertrec"><file name="recommendation.xml" hash="a1d166c3c3e665b476aaef69e0e6b792"/></dir></dir><dir name="template"><dir name="expertrec"><dir name="feed"><file name="info.phtml" hash="9b9289adce3d084cca152ef604db3482"/></dir><dir name="recommendation"><file name="tracker.phtml" hash="6e8219c5d1e46642d7915cedaa974313"/><dir name="tracking"><file name="product.phtml" hash="e02d3f870397cf351bc0ff7ca864c7e2"/></dir></dir><dir name="search"><file name="custom.phtml" hash="0f162aa949c00329e3697f0a71abc43d"/><file name="list.phtml" hash="cda3f434a1e70f1272f62bb9f0848726"/><file name="view.phtml" hash="ecb9a55f6128bef2f10d66528dc5424b"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="expertrec"><file name="recommendation.xml" hash="115d3023af9566c37e39d003a25e031a"/></dir></dir><dir name="template"><dir name="expertrec"><dir name="expertrec"><dir name="recommendation"><file name="notifications.phtml" hash="4f965be2e3ed310a8b4ce271ad064ee4"/></dir></dir><dir name="recommendation"><file name="notifications.phtml" hash="0aeaea93d36eb867dbf11d176e72cdc3"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>