Version Notes
removed dead code,
missing sku bug fix
Download this release
Release Info
Developer | Adar |
Extension | autocompleteplus_autosuggest |
Version | 3.0.0.9 |
Comparing to | |
See all releases |
Code changes from version 3.0.0.8 to 3.0.0.9
- app/code/local/Autocompleteplus/Autosuggest/Block/Autocomplete.php +1 -1
- app/code/local/Autocompleteplus/Autosuggest/Catalog.php +0 -366
- app/code/local/Autocompleteplus/Autosuggest/Model/Catalog.php +2 -1
- app/code/local/Autocompleteplus/Autosuggest/controllers/ProductsController.php +2 -59
- app/code/local/Autocompleteplus/Autosuggest/etc/api.xml +0 -47
- app/code/local/Autocompleteplus/Autosuggest/etc/config.xml +1 -1
- app/code/local/Autocompleteplus/Autosuggest/etc/config.xml.bak +0 -213
- app/code/local/Autocompleteplus/Autosuggest/etc/wsdl.xml +0 -95
- app/code/local/Autocompleteplus/Autosuggest/sql/autosuggest_setup/mysql4-upgrade-2.0.5.6-2.0.5.7.php +0 -48
- package.xml +6 -5
app/code/local/Autocompleteplus/Autosuggest/Block/Autocomplete.php
CHANGED
@@ -37,7 +37,7 @@ class Autocompleteplus_Autosuggest_Block_Autocomplete extends Mage_Core_Block_Ab
|
|
37 |
$params['alternatives'] = json_encode($alternatives);
|
38 |
}
|
39 |
if ($results_for) {
|
40 |
-
$params['results_for'] =
|
41 |
}
|
42 |
} else {
|
43 |
$params['wrong_flow'] = 1;
|
37 |
$params['alternatives'] = json_encode($alternatives);
|
38 |
}
|
39 |
if ($results_for) {
|
40 |
+
$params['results_for'] = $results_for;
|
41 |
}
|
42 |
} else {
|
43 |
$params['wrong_flow'] = 1;
|
app/code/local/Autocompleteplus/Autosuggest/Catalog.php
DELETED
@@ -1,366 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Autocompleteplus_Autosuggest_Model_Catalog extends Mage_Core_Model_Abstract
|
4 |
-
{
|
5 |
-
protected $imageField;
|
6 |
-
protected $standardImageFields = array('image', 'small_image', 'thumbnail');
|
7 |
-
protected $useAttributes;
|
8 |
-
protected $attributes;
|
9 |
-
protected $currency;
|
10 |
-
protected $pageNum;
|
11 |
-
protected $_productCollection;
|
12 |
-
protected $_xmlGenerator;
|
13 |
-
protected $_helper;
|
14 |
-
protected $_attributes;
|
15 |
-
|
16 |
-
public function getXmlGenerator()
|
17 |
-
{
|
18 |
-
if (!$this->_xmlGenerator) {
|
19 |
-
$this->_xmlGenerator = new Autocompleteplus_Autosuggest_Xml_Generator();
|
20 |
-
}
|
21 |
-
|
22 |
-
return $this->_xmlGenerator;
|
23 |
-
}
|
24 |
-
|
25 |
-
public function getHelper()
|
26 |
-
{
|
27 |
-
if (!$this->_helper) {
|
28 |
-
$this->_helper = Mage::helper('autocompleteplus_autosuggest');
|
29 |
-
}
|
30 |
-
return $this->_helper;
|
31 |
-
}
|
32 |
-
|
33 |
-
public function getAttributes()
|
34 |
-
{
|
35 |
-
if (!$this->_attributes) {
|
36 |
-
|
37 |
-
$productModel = Mage::getModel('catalog/product');
|
38 |
-
$this->_attributes = Mage::getResourceModel('eav/entity_attribute_collection')
|
39 |
-
->setEntityTypeFilter($productModel->getResource()->getTypeId())
|
40 |
-
->addFieldToFilter('is_user_defined', '1')
|
41 |
-
;
|
42 |
-
}
|
43 |
-
return $this->_attributes;
|
44 |
-
}
|
45 |
-
|
46 |
-
public function getProductCollection($new = false)
|
47 |
-
{
|
48 |
-
if (!$this->_productCollection) {
|
49 |
-
$this->_productCollection = Mage::getModel('catalog/product')->getCollection();
|
50 |
-
}
|
51 |
-
|
52 |
-
if ($new === true) {
|
53 |
-
return Mage::getModel('catalog/product')->getCollection();
|
54 |
-
}
|
55 |
-
|
56 |
-
return $this->_productCollection;
|
57 |
-
}
|
58 |
-
|
59 |
-
public function getProductRenderer()
|
60 |
-
{
|
61 |
-
return Mage::getSingleton('autocompleteplus_autosuggest/renderer_catalog_product');
|
62 |
-
}
|
63 |
-
|
64 |
-
public function getBatchRenderer()
|
65 |
-
{
|
66 |
-
return Mage::getSingleton('autocompleteplus_autosuggest/renderer_batches');
|
67 |
-
}
|
68 |
-
|
69 |
-
public function renderCatalogXml($startInd = 0,
|
70 |
-
$count = 10000,
|
71 |
-
$storeId = false,
|
72 |
-
$orders = false,
|
73 |
-
$monthInterval = 12,
|
74 |
-
$checksum = false)
|
75 |
-
{
|
76 |
-
$xmlGenerator = $this->getXmlGenerator();
|
77 |
-
$count = ($count > 10000) ? 10000 : $count;
|
78 |
-
$this->setStoreId($storeId);
|
79 |
-
$this->setOrders($orders);
|
80 |
-
$this->setMonthInterval($monthInterval);
|
81 |
-
$this->setChecksum($checksum);
|
82 |
-
|
83 |
-
|
84 |
-
$xmlGenerator->setRootAttributes(array(
|
85 |
-
'version' => $this->getHelper()->getVersion(),
|
86 |
-
'magento' => $this->getHelper()->getMageVersion()
|
87 |
-
))->setRootElementName('catalog');
|
88 |
-
|
89 |
-
$productCollection = $this->getProductCollection();
|
90 |
-
|
91 |
-
// @codingStandardsIgnoreLine
|
92 |
-
$productCollection->getSelect()->limit($count, $startInd);
|
93 |
-
if (is_numeric($storeId)) {
|
94 |
-
$productCollection->addStoreFilter($storeId);
|
95 |
-
$productCollection->setStoreId($storeId);
|
96 |
-
}
|
97 |
-
|
98 |
-
$attributesToSelect = array(
|
99 |
-
'store_id',
|
100 |
-
'name',
|
101 |
-
'description',
|
102 |
-
'short_description',
|
103 |
-
'visibility',
|
104 |
-
'thumbnail',
|
105 |
-
'image',
|
106 |
-
'small_image',
|
107 |
-
'url',
|
108 |
-
'status',
|
109 |
-
'updated_at',
|
110 |
-
'price',
|
111 |
-
'meta_title',
|
112 |
-
'meta_description');
|
113 |
-
|
114 |
-
if($this->canUseAttributes()){
|
115 |
-
foreach ($this->getAttributes() as $attr) {
|
116 |
-
$action = $attr->getAttributeCode();
|
117 |
-
|
118 |
-
$attributesToSelect[] = $action;
|
119 |
-
}
|
120 |
-
}
|
121 |
-
|
122 |
-
$productCollection->addAttributeToSelect($attributesToSelect);
|
123 |
-
|
124 |
-
Mage::getModel('review/review')->appendSummary($productCollection);
|
125 |
-
|
126 |
-
if ($this->getChecksum() !== false) {
|
127 |
-
$this->setHasChecksum($checksum);
|
128 |
-
}
|
129 |
-
|
130 |
-
foreach ($productCollection as $product) {
|
131 |
-
$this->getProductRenderer()
|
132 |
-
->setAction('insert')
|
133 |
-
->setProduct($product)
|
134 |
-
->setStoreId($this->getStoreId())
|
135 |
-
->setOrders($this->getOrders())
|
136 |
-
->setMonthInterval($this->getMonthInterval())
|
137 |
-
->setXmlElement($xmlGenerator)
|
138 |
-
->setAttributes($this->getAttributes())
|
139 |
-
->renderXml();
|
140 |
-
if ($this->getHasChecksum()) {
|
141 |
-
if ($this->getHelper()->isChecksumTableExists()) {
|
142 |
-
$checksum = $this->getHelper()->calculateChecksum($product);
|
143 |
-
$this->getHelper()->updateSavedProductChecksum($product->getId(), $product->getSku(), $this->getStoreId(), $checksum);
|
144 |
-
}
|
145 |
-
}
|
146 |
-
}
|
147 |
-
|
148 |
-
return $xmlGenerator->generateXml();
|
149 |
-
}
|
150 |
-
|
151 |
-
public function canUseAttributes()
|
152 |
-
{
|
153 |
-
if (!$this->_useAttributes) {
|
154 |
-
$this->_useAttributes = Mage::getStoreConfigFlag('autocompleteplus/config/attributes');
|
155 |
-
}
|
156 |
-
return $this->_useAttributes;
|
157 |
-
}
|
158 |
-
|
159 |
-
public function renderUpdatesCatalogXml($count, $from, $to, $storeId)
|
160 |
-
{
|
161 |
-
$updates = Mage::getModel('autocompleteplus_autosuggest/batches')->getCollection()
|
162 |
-
->addFieldToFilter('update_date', array(
|
163 |
-
'from' => $from,
|
164 |
-
'to' => $to
|
165 |
-
))
|
166 |
-
->addFieldToFilter('store_id', $storeId);
|
167 |
-
|
168 |
-
$this->setStoreId($storeId);
|
169 |
-
$updates->setOrder('update_date', 'ASC');
|
170 |
-
|
171 |
-
$updates->setPageSize($count);
|
172 |
-
$updates->setCurPage(1);
|
173 |
-
$xmlGenerator= $this->getXmlGenerator();
|
174 |
-
|
175 |
-
$xmlGenerator->setRootAttributes(array(
|
176 |
-
'version' => $this->getHelper()->getVersion(),
|
177 |
-
'magento' => $this->getHelper()->getMageVersion(),
|
178 |
-
'fromdatetime' => $from
|
179 |
-
))->setRootElementName('catalog');
|
180 |
-
|
181 |
-
foreach ($updates as $batch) {
|
182 |
-
if ($batch['action'] == 'update') {
|
183 |
-
$productId = $batch['product_id'];
|
184 |
-
$batchStoreId = $batch['store_id'];
|
185 |
-
|
186 |
-
if ($storeId != $batchStoreId) {
|
187 |
-
$this->currency = Mage::app()->getStore($batchStoreId)->getCurrentCurrencyCode();
|
188 |
-
}
|
189 |
-
|
190 |
-
$productModel = null;
|
191 |
-
|
192 |
-
if ($productId != null) {
|
193 |
-
// load product by id
|
194 |
-
try {
|
195 |
-
$productModel = Mage::getModel('catalog/product')
|
196 |
-
->setStoreId($batchStoreId)
|
197 |
-
->load($productId);
|
198 |
-
} catch (Exception $e) {
|
199 |
-
$batch['action'] = 'remove';
|
200 |
-
$this->getBatchRenderer()
|
201 |
-
->setXmlElement($xmlGenerator)
|
202 |
-
->makeRemoveRow($batch);
|
203 |
-
continue;
|
204 |
-
}
|
205 |
-
} else {
|
206 |
-
// product not found - changing action to remove
|
207 |
-
$batch['action'] = 'remove';
|
208 |
-
$this->getBatchRenderer()
|
209 |
-
->setXmlElement($xmlGenerator)
|
210 |
-
->makeRemoveRow($batch);
|
211 |
-
continue;
|
212 |
-
}
|
213 |
-
|
214 |
-
if ($productModel == null) {
|
215 |
-
continue;
|
216 |
-
}
|
217 |
-
|
218 |
-
$updatedate = $batch['update_date'];
|
219 |
-
$action = $batch['action'];
|
220 |
-
$this->getProductRenderer()
|
221 |
-
->setXmlElement($xmlGenerator)
|
222 |
-
->setAction($action)
|
223 |
-
->setProduct($productModel)
|
224 |
-
->setStoreId($this->getStoreId())
|
225 |
-
->setOrders($this->getOrders())
|
226 |
-
->setMonthInterval($this->getMonthInterval())
|
227 |
-
->setXmlElement($xmlGenerator)
|
228 |
-
->setAttributes($this->getAttributes())
|
229 |
-
->setUpdateDate($updatedate)
|
230 |
-
->renderXml();
|
231 |
-
} else {
|
232 |
-
$this->getBatchRenderer()
|
233 |
-
->setXmlElement($xmlGenerator)
|
234 |
-
->makeRemoveRow($batch);
|
235 |
-
}
|
236 |
-
}
|
237 |
-
|
238 |
-
return $xmlGenerator->generateXml();
|
239 |
-
}
|
240 |
-
|
241 |
-
public function renderCatalogFromIds($count, $fromId, $storeId)
|
242 |
-
{
|
243 |
-
$xmlGenerator = $this->getXmlGenerator();
|
244 |
-
$xmlGenerator->setRootAttributes(array(
|
245 |
-
'version' => $this->getHelper()->getVersion(),
|
246 |
-
'magento' => $this->getHelper()->getMageVersion()
|
247 |
-
))->setRootElementName('catalog');
|
248 |
-
|
249 |
-
$productCollection = $this->getProductCollection();
|
250 |
-
if (is_numeric($storeId)) {
|
251 |
-
$productCollection->addStoreFilter($storeId);
|
252 |
-
$productCollection->setStoreId($storeId);
|
253 |
-
}
|
254 |
-
|
255 |
-
$attributesToSelect = array(
|
256 |
-
'store_id',
|
257 |
-
'name',
|
258 |
-
'description',
|
259 |
-
'short_description',
|
260 |
-
'visibility',
|
261 |
-
'thumbnail',
|
262 |
-
'image',
|
263 |
-
'small_image',
|
264 |
-
'url',
|
265 |
-
'status',
|
266 |
-
'updated_at',
|
267 |
-
'price',
|
268 |
-
'meta_title',
|
269 |
-
'meta_description');
|
270 |
-
|
271 |
-
if($this->canUseAttributes()){
|
272 |
-
foreach ($this->getAttributes() as $attr) {
|
273 |
-
$action = $attr->getAttributeCode();
|
274 |
-
|
275 |
-
$attributesToSelect[] = $action;
|
276 |
-
}
|
277 |
-
}
|
278 |
-
|
279 |
-
$productCollection->addAttributeToSelect($attributesToSelect);
|
280 |
-
|
281 |
-
$productCollection->addAttributeToFilter('entity_id', array('from' => $fromId));
|
282 |
-
$productCollection->setPageSize($count);
|
283 |
-
$productCollection->setCurPage(1);
|
284 |
-
|
285 |
-
Mage::getModel('review/review')->appendSummary($productCollection);
|
286 |
-
|
287 |
-
foreach ($productCollection as $product) {
|
288 |
-
$this->getProductRenderer()
|
289 |
-
->setAction('getfromid')
|
290 |
-
->setProduct($product)
|
291 |
-
->setStoreId($storeId)
|
292 |
-
->setXmlElement($xmlGenerator)
|
293 |
-
->setAttributes($this->getAttributes())
|
294 |
-
->setGetByIdStatus(1)
|
295 |
-
->renderXml();
|
296 |
-
}
|
297 |
-
|
298 |
-
return $xmlGenerator->generateXml();
|
299 |
-
}
|
300 |
-
|
301 |
-
/**
|
302 |
-
* Creates an XML representation of catalog by ids.
|
303 |
-
*
|
304 |
-
* @param array $ids
|
305 |
-
* @param int $storeId
|
306 |
-
*
|
307 |
-
* @return string
|
308 |
-
*/
|
309 |
-
public function renderCatalogByIds($ids, $storeId = 0)
|
310 |
-
{
|
311 |
-
$xmlGenerator = $this->getXmlGenerator();
|
312 |
-
$xmlGenerator->setRootAttributes(array(
|
313 |
-
'version' => $this->getHelper()->getVersion(),
|
314 |
-
'magento' => $this->getHelper()->getMageVersion()
|
315 |
-
))->setRootElementName('catalog');
|
316 |
-
|
317 |
-
$productCollection = $this->getProductCollection();
|
318 |
-
if (is_numeric($storeId)) {
|
319 |
-
$productCollection->addStoreFilter($storeId);
|
320 |
-
$productCollection->setStoreId($storeId);
|
321 |
-
}
|
322 |
-
|
323 |
-
$attributesToSelect = array(
|
324 |
-
'store_id',
|
325 |
-
'name',
|
326 |
-
'description',
|
327 |
-
'short_description',
|
328 |
-
'visibility',
|
329 |
-
'thumbnail',
|
330 |
-
'image',
|
331 |
-
'small_image',
|
332 |
-
'url',
|
333 |
-
'status',
|
334 |
-
'updated_at',
|
335 |
-
'price',
|
336 |
-
'meta_title',
|
337 |
-
'meta_description');
|
338 |
-
|
339 |
-
if($this->canUseAttributes()){
|
340 |
-
foreach ($this->getAttributes() as $attr) {
|
341 |
-
$action = $attr->getAttributeCode();
|
342 |
-
|
343 |
-
$attributesToSelect[] = $action;
|
344 |
-
}
|
345 |
-
}
|
346 |
-
|
347 |
-
$productCollection->addAttributeToSelect($attributesToSelect);
|
348 |
-
|
349 |
-
$productCollection->addAttributeToFilter('entity_id', array('in' => $ids));
|
350 |
-
|
351 |
-
Mage::getModel('review/review')->appendSummary($productCollection);
|
352 |
-
|
353 |
-
foreach ($productCollection as $product) {
|
354 |
-
$this->getProductRenderer()
|
355 |
-
->setAction('getbyid')
|
356 |
-
->setProduct($product)
|
357 |
-
->setStoreId($storeId)
|
358 |
-
->setXmlElement($xmlGenerator)
|
359 |
-
->setAttributes($this->getAttributes())
|
360 |
-
->setGetByIdStatus(1)
|
361 |
-
->renderXml();
|
362 |
-
}
|
363 |
-
|
364 |
-
return $xmlGenerator->generateXml();
|
365 |
-
}
|
366 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Autocompleteplus/Autosuggest/Model/Catalog.php
CHANGED
@@ -318,7 +318,8 @@ class Autocompleteplus_Autosuggest_Model_Catalog extends Mage_Core_Model_Abstrac
|
|
318 |
'price',
|
319 |
'meta_title',
|
320 |
'meta_description',
|
321 |
-
'special_price'
|
|
|
322 |
);
|
323 |
|
324 |
if ($this->canUseAttributes()) {
|
318 |
'price',
|
319 |
'meta_title',
|
320 |
'meta_description',
|
321 |
+
'special_price',
|
322 |
+
'sku'
|
323 |
);
|
324 |
|
325 |
if ($this->canUseAttributes()) {
|
app/code/local/Autocompleteplus/Autosuggest/controllers/ProductsController.php
CHANGED
@@ -35,8 +35,8 @@ class Autocompleteplus_Autosuggest_ProductsController extends Autocompleteplus_A
|
|
35 |
Varien_Profiler::start('Autocompleteplus_Autosuggest_Products_Send');
|
36 |
$response = $this->getResponse();
|
37 |
$request = $this->getRequest();
|
38 |
-
$startInd = $request->getParam('offset');
|
39 |
-
$count = $request->getParam('count');
|
40 |
$store = $request->getParam('store_id', '');
|
41 |
$storeId = $request->getParam('store', $store);
|
42 |
$orders = $request->getParam('orders', '');
|
@@ -451,63 +451,6 @@ class Autocompleteplus_Autosuggest_ProductsController extends Autocompleteplus_A
|
|
451 |
$this->getResponse()->setBody(1);
|
452 |
}
|
453 |
|
454 |
-
public function changeSerpAction()
|
455 |
-
{
|
456 |
-
$scope_name = 'stores';
|
457 |
-
$request = $this->getRequest();
|
458 |
-
$response = $this->getResponse();
|
459 |
-
|
460 |
-
$helper = Mage::helper('autocompleteplus_autosuggest');
|
461 |
-
$site_url = $helper->getConfigDataByFullPath('web/unsecure/base_url');
|
462 |
-
$is_new_serp = $request->getParam('new_serp', 0);
|
463 |
-
|
464 |
-
$store_id = $request->getParam('store_id', 0);
|
465 |
-
if (!$store_id) {
|
466 |
-
$scope_name = 'default';
|
467 |
-
}
|
468 |
-
|
469 |
-
define('SOAP_WSDL', $site_url.'/api/?wsdl');
|
470 |
-
define('SOAP_USER', 'instant_search');
|
471 |
-
define('SOAP_PASS', 'Rilb@kped3');
|
472 |
-
|
473 |
-
try {
|
474 |
-
$client = new SoapClient(SOAP_WSDL, array('trace' => 1, 'cache_wsdl' => 0));
|
475 |
-
$session = $client->login(SOAP_USER, SOAP_PASS);
|
476 |
-
|
477 |
-
switch ($is_new_serp) {
|
478 |
-
|
479 |
-
case 'status':
|
480 |
-
$current_state = $client->call($session, 'autocompleteplus_autosuggest.getLayeredSearchConfig', array($store_id));
|
481 |
-
$resp = array('current_status' => $current_state);
|
482 |
-
$response->setBody(json_encode($resp));
|
483 |
-
|
484 |
-
return;
|
485 |
-
|
486 |
-
case '1':
|
487 |
-
$status = $client->call($session, 'autocompleteplus_autosuggest.setLayeredSearchOn', array($scope_name, $store_id));
|
488 |
-
break;
|
489 |
-
default:
|
490 |
-
$status = $client->call($session, 'autocompleteplus_autosuggest.setLayeredSearchOff', array($scope_name, $store_id));
|
491 |
-
break;
|
492 |
-
}
|
493 |
-
|
494 |
-
$new_state = $client->call($session, 'autocompleteplus_autosuggest.getLayeredSearchConfig', array($store_id));
|
495 |
-
|
496 |
-
$resp = array(
|
497 |
-
'request_state' => $is_new_serp,
|
498 |
-
'new_state' => $new_state,
|
499 |
-
'site_url' => $site_url,
|
500 |
-
'status' => $status,
|
501 |
-
);
|
502 |
-
|
503 |
-
$response->setBody(json_encode($resp));
|
504 |
-
} catch (Exception $e) {
|
505 |
-
$resp = array('status' => 'exception: '.print_r($e, true));
|
506 |
-
$response->setBody(json_encode($resp));
|
507 |
-
Mage::logException($e);
|
508 |
-
throw $e;
|
509 |
-
}
|
510 |
-
}
|
511 |
|
512 |
/**
|
513 |
* Bulk Push to ISP with JSON
|
35 |
Varien_Profiler::start('Autocompleteplus_Autosuggest_Products_Send');
|
36 |
$response = $this->getResponse();
|
37 |
$request = $this->getRequest();
|
38 |
+
$startInd = $request->getParam('offset', 0);
|
39 |
+
$count = $request->getParam('count', 100);
|
40 |
$store = $request->getParam('store_id', '');
|
41 |
$storeId = $request->getParam('store', $store);
|
42 |
$orders = $request->getParam('orders', '');
|
451 |
$this->getResponse()->setBody(1);
|
452 |
}
|
453 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
|
455 |
/**
|
456 |
* Bulk Push to ISP with JSON
|
app/code/local/Autocompleteplus/Autosuggest/etc/api.xml
DELETED
@@ -1,47 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<api>
|
4 |
-
<resources>
|
5 |
-
<autocompleteplus_autosuggest translate="title" module="autocompleteplus_autosuggest">
|
6 |
-
<title>autocompleteplus_autosuggest</title>
|
7 |
-
<model>autocompleteplus_autosuggest/api</model>
|
8 |
-
<methods>
|
9 |
-
<setLayeredSearchOn translate="title" module="autocompleteplus_autosuggest">
|
10 |
-
<title>setLayeredSearchOn</title>
|
11 |
-
<acl>autocompleteplus_autosuggest/setLayeredSearchOn</acl>
|
12 |
-
</setLayeredSearchOn>
|
13 |
-
<setLayeredSearchOff translate="title" module="autocompleteplus_autosuggest">
|
14 |
-
<title>setLayeredSearchOff</title>
|
15 |
-
<acl>autocompleteplus_autosuggest/setLayeredSearchOff</acl>
|
16 |
-
</setLayeredSearchOff>
|
17 |
-
<getLayeredSearchConfig translate="title" module="autocompleteplus_autosuggest">
|
18 |
-
<title>getLayeredSearchConfig</title>
|
19 |
-
<acl>autocompleteplus_autosuggest/getLayeredSearchConfig</acl>
|
20 |
-
</getLayeredSearchConfig>
|
21 |
-
</methods>
|
22 |
-
</autocompleteplus_autosuggest>
|
23 |
-
</resources>
|
24 |
-
<v2>
|
25 |
-
<resources_function_prefix>
|
26 |
-
<autocompleteplus_autosuggest>autocompleteplus_autosuggest</autocompleteplus_autosuggest>
|
27 |
-
</resources_function_prefix>
|
28 |
-
</v2>
|
29 |
-
<acl>
|
30 |
-
<resources>
|
31 |
-
<autocompleteplus_autosuggest translate="title" module="autocompleteplus_autosuggest">
|
32 |
-
<title>Autosuggest</title>
|
33 |
-
<sort_order>2000</sort_order>
|
34 |
-
<myapimethod translate="title" module="autocompleteplus_autosuggest">
|
35 |
-
<title>setLayeredSearchOn</title>
|
36 |
-
</myapimethod>
|
37 |
-
<myapimethod translate="title" module="autocompleteplus_autosuggest">
|
38 |
-
<title>setLayeredSearchOff</title>
|
39 |
-
</myapimethod>
|
40 |
-
<myapimethod translate="title" module="autocompleteplus_autosuggest">
|
41 |
-
<title>getLayeredSearchConfig</title>
|
42 |
-
</myapimethod>
|
43 |
-
</autocompleteplus_autosuggest>
|
44 |
-
</resources>
|
45 |
-
</acl>
|
46 |
-
</api>
|
47 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Autocompleteplus/Autosuggest/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Autocompleteplus_Autosuggest>
|
5 |
-
<version>3.0.0.
|
6 |
<url>http://autocompleteplus.com/</url>
|
7 |
<modulename>Autocompleteplus_Autosuggest</modulename>
|
8 |
</Autocompleteplus_Autosuggest>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Autocompleteplus_Autosuggest>
|
5 |
+
<version>3.0.0.9</version>
|
6 |
<url>http://autocompleteplus.com/</url>
|
7 |
<modulename>Autocompleteplus_Autosuggest</modulename>
|
8 |
</Autocompleteplus_Autosuggest>
|
app/code/local/Autocompleteplus/Autosuggest/etc/config.xml.bak
DELETED
@@ -1,213 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<Autocompleteplus_Autosuggest>
|
5 |
-
<version>3.0.0.5</version>
|
6 |
-
<url>http://autocompleteplus.com/</url>
|
7 |
-
<modulename>Autocompleteplus_Autosuggest</modulename>
|
8 |
-
</Autocompleteplus_Autosuggest>
|
9 |
-
</modules>
|
10 |
-
<global>
|
11 |
-
<models>
|
12 |
-
<autocompleteplus_autosuggest>
|
13 |
-
<class>Autocompleteplus_Autosuggest_Model</class>
|
14 |
-
<resourceModel>autocompleteplus_autosuggest_resource</resourceModel>
|
15 |
-
</autocompleteplus_autosuggest>
|
16 |
-
<autocompleteplus_autosuggest_resource>
|
17 |
-
<class>Autocompleteplus_Autosuggest_Model_Resource</class>
|
18 |
-
<deprecatedNode>autocompleteplus_mysql4</deprecatedNode>
|
19 |
-
<entities>
|
20 |
-
<notifications>
|
21 |
-
<table>autocompleteplus_notifications</table>
|
22 |
-
</notifications>
|
23 |
-
<pusher>
|
24 |
-
<table>autocompleteplus_pusher</table>
|
25 |
-
</pusher>
|
26 |
-
<config>
|
27 |
-
<table>autocompleteplus_config</table>
|
28 |
-
</config>
|
29 |
-
<batches>
|
30 |
-
<table>autocompleteplus_batches</table>
|
31 |
-
</batches>
|
32 |
-
</entities>
|
33 |
-
</autocompleteplus_autosuggest_resource>
|
34 |
-
<catalogsearch_resource>
|
35 |
-
<rewrite>
|
36 |
-
<fulltext_collection>Autocompleteplus_Autosuggest_Model_Resource_Fulltext_Collection</fulltext_collection>
|
37 |
-
</rewrite>
|
38 |
-
</catalogsearch_resource>
|
39 |
-
</models>
|
40 |
-
<events>
|
41 |
-
<controller_action_postdispatch_checkout_cart_index>
|
42 |
-
<observers>
|
43 |
-
<autocompleteplus_autosuggest>
|
44 |
-
<class>autocompleteplus_autosuggest/observer</class>
|
45 |
-
<method>webhook_service_call</method>
|
46 |
-
</autocompleteplus_autosuggest>
|
47 |
-
</observers>
|
48 |
-
</controller_action_postdispatch_checkout_cart_index>
|
49 |
-
<controller_action_postdispatch_checkout_onepage_index>
|
50 |
-
<observers>
|
51 |
-
<autocompleteplus_autosuggest>
|
52 |
-
<class>autocompleteplus_autosuggest/observer</class>
|
53 |
-
<method>webhook_service_call</method>
|
54 |
-
</autocompleteplus_autosuggest>
|
55 |
-
</observers>
|
56 |
-
</controller_action_postdispatch_checkout_onepage_index>
|
57 |
-
<controller_action_postdispatch_checkout_onepage_success>
|
58 |
-
<observers>
|
59 |
-
<autocompleteplus_autosuggest>
|
60 |
-
<class>autocompleteplus_autosuggest/observer</class>
|
61 |
-
<method>webhook_service_call</method>
|
62 |
-
</autocompleteplus_autosuggest>
|
63 |
-
</observers>
|
64 |
-
</controller_action_postdispatch_checkout_onepage_success>
|
65 |
-
<catalog_product_save_before>
|
66 |
-
<observers>
|
67 |
-
<autocompleteplus_autosuggest>
|
68 |
-
<type>singleton</type>
|
69 |
-
<class>autocompleteplus_autosuggest/observer</class>
|
70 |
-
<method>catalog_product_save_after</method>
|
71 |
-
</autocompleteplus_autosuggest>
|
72 |
-
</observers>
|
73 |
-
</catalog_product_save_before>
|
74 |
-
<catalog_product_save_after>
|
75 |
-
<observers>
|
76 |
-
<autocompleteplus_autosuggest>
|
77 |
-
<type>singleton</type>
|
78 |
-
<class>autocompleteplus_autosuggest/observer</class>
|
79 |
-
<method>catalog_product_save_after_real</method>
|
80 |
-
</autocompleteplus_autosuggest>
|
81 |
-
</observers>
|
82 |
-
</catalog_product_save_after>
|
83 |
-
<catalog_product_delete_before>
|
84 |
-
<observers>
|
85 |
-
<autocompleteplus_autosuggest>
|
86 |
-
<type>singleton</type>
|
87 |
-
<class>autocompleteplus_autosuggest/observer</class>
|
88 |
-
<method>catalog_product_delete_before</method>
|
89 |
-
</autocompleteplus_autosuggest>
|
90 |
-
</observers>
|
91 |
-
</catalog_product_delete_before>
|
92 |
-
<adminhtml_controller_catalogrule_prepare_save>
|
93 |
-
<observers>
|
94 |
-
<autocompleteplus_autosuggest>
|
95 |
-
<type>singleton</type>
|
96 |
-
<class>autocompleteplus_autosuggest/observer</class>
|
97 |
-
<method>adminhtml_controller_catalogrule_prepare_save</method>
|
98 |
-
</autocompleteplus_autosuggest>
|
99 |
-
</observers>
|
100 |
-
</adminhtml_controller_catalogrule_prepare_save>
|
101 |
-
</events>
|
102 |
-
<resources>
|
103 |
-
<autosuggest_setup>
|
104 |
-
<setup>
|
105 |
-
<module>Autocompleteplus_Autosuggest</module>
|
106 |
-
</setup>
|
107 |
-
<connection>
|
108 |
-
<use>core_setup</use>
|
109 |
-
</connection>
|
110 |
-
</autosuggest_setup>
|
111 |
-
<autosuggest_write>
|
112 |
-
<connection>
|
113 |
-
<use>core_write</use>
|
114 |
-
</connection>
|
115 |
-
</autosuggest_write>
|
116 |
-
<autosuggest_read>
|
117 |
-
<connection>
|
118 |
-
<use>core_read</use>
|
119 |
-
</connection>
|
120 |
-
</autosuggest_read>
|
121 |
-
</resources>
|
122 |
-
<blocks>
|
123 |
-
<autocompleteplus_autosuggest>
|
124 |
-
<class>Autocompleteplus_Autosuggest_Block</class>
|
125 |
-
</autocompleteplus_autosuggest>
|
126 |
-
</blocks>
|
127 |
-
<template>
|
128 |
-
<email>
|
129 |
-
<autosuggest_status_notification module="autocompleteplus_autosuggest">
|
130 |
-
<label>Autocompleteplus status notification</label>
|
131 |
-
<file>autocompleteplus/status_notification.html</file>
|
132 |
-
<type>html</type>
|
133 |
-
</autosuggest_status_notification>
|
134 |
-
</email>
|
135 |
-
</template>
|
136 |
-
<helpers>
|
137 |
-
<autocompleteplus_autosuggest>
|
138 |
-
<class>Autocompleteplus_Autosuggest_Helper</class>
|
139 |
-
</autocompleteplus_autosuggest>
|
140 |
-
</helpers>
|
141 |
-
<sales>
|
142 |
-
<quote>
|
143 |
-
<item>
|
144 |
-
<product_attributes>
|
145 |
-
<added_from_search />
|
146 |
-
</product_attributes>
|
147 |
-
</item>
|
148 |
-
</quote>
|
149 |
-
</sales>
|
150 |
-
</global>
|
151 |
-
<frontend>
|
152 |
-
<layout>
|
153 |
-
<updates>
|
154 |
-
<autosuggest>
|
155 |
-
<file>autocompleteplus.xml</file>
|
156 |
-
</autosuggest>
|
157 |
-
</updates>
|
158 |
-
</layout>
|
159 |
-
<routers>
|
160 |
-
<instantsearchplus>
|
161 |
-
<use>standard</use>
|
162 |
-
<args>
|
163 |
-
<module>Autocompleteplus_Autosuggest</module>
|
164 |
-
<frontName>instantsearchplus</frontName>
|
165 |
-
</args>
|
166 |
-
</instantsearchplus>
|
167 |
-
<autocompleteplus>
|
168 |
-
<use>standard</use>
|
169 |
-
<args>
|
170 |
-
<module>Autocompleteplus_Autosuggest</module>
|
171 |
-
<frontName>autocompleteplus</frontName>
|
172 |
-
</args>
|
173 |
-
</autocompleteplus>
|
174 |
-
<catalogsearch>
|
175 |
-
<args>
|
176 |
-
<modules>
|
177 |
-
<Autocompleteplus_Autosuggest before="Mage_CatalogSearch">Autocompleteplus_Autosuggest_CatalogSearch</Autocompleteplus_Autosuggest>
|
178 |
-
</modules>
|
179 |
-
</args>
|
180 |
-
</catalogsearch>
|
181 |
-
</routers>
|
182 |
-
</frontend>
|
183 |
-
<admin>
|
184 |
-
<routers>
|
185 |
-
<adminhtml>
|
186 |
-
<args>
|
187 |
-
<modules>
|
188 |
-
<autocompleteplus after="Mage_Adminhtml">Autocompleteplus_Autosuggest_Adminhtml</autocompleteplus>
|
189 |
-
</modules>
|
190 |
-
</args>
|
191 |
-
</adminhtml>
|
192 |
-
</routers>
|
193 |
-
</admin>
|
194 |
-
<adminhtml>
|
195 |
-
<layout>
|
196 |
-
<updates>
|
197 |
-
<autosuggest>
|
198 |
-
<file>autocompleteplus.xml</file>
|
199 |
-
</autosuggest>
|
200 |
-
</updates>
|
201 |
-
</layout>
|
202 |
-
</adminhtml>
|
203 |
-
<default>
|
204 |
-
<autocompleteplus>
|
205 |
-
<config>
|
206 |
-
<imagefield>thumbnail</imagefield>
|
207 |
-
<attributes>1</attributes>
|
208 |
-
<layered>0</layered>
|
209 |
-
<api_endpoint><![CDATA[https://magento.instantsearchplus.com]]></api_endpoint>
|
210 |
-
</config>
|
211 |
-
</autocompleteplus>
|
212 |
-
</default>
|
213 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Autocompleteplus/Autosuggest/etc/wsdl.xml
DELETED
@@ -1,95 +0,0 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<definitions xmlns:typens="urn:{{var wsdl.name}}" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
3 |
-
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"
|
4 |
-
name="{{var wsdl.name}}" targetNamespace="urn:{{var wsdl.name}}">
|
5 |
-
<types>
|
6 |
-
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Magento">
|
7 |
-
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />
|
8 |
-
</schema>
|
9 |
-
</types>
|
10 |
-
<message name="setLayeredSearchOnRequest">
|
11 |
-
<part name="sessionId" type="xsd:string" />
|
12 |
-
<part name="scope" type="xsd:string" />
|
13 |
-
<part name="scope_id" type="xsd:string" />
|
14 |
-
</message>
|
15 |
-
<message name="setLayeredSearchOnResponse">
|
16 |
-
<part name="result" type="xsd:string" />
|
17 |
-
</message>
|
18 |
-
|
19 |
-
<message name="setLayeredSearchOffRequest">
|
20 |
-
<part name="sessionId" type="xsd:string" />
|
21 |
-
<part name="scope" type="xsd:string" />
|
22 |
-
<part name="scope_id" type="xsd:string" />
|
23 |
-
</message>
|
24 |
-
<message name="setLayeredSearchOffResponse">
|
25 |
-
<part name="result" type="xsd:string" />
|
26 |
-
</message>
|
27 |
-
|
28 |
-
<message name="getLayeredSearchConfigRequest">
|
29 |
-
<part name="sessionId" type="xsd:string" />
|
30 |
-
<part name="scope_id" type="xsd:string" />
|
31 |
-
</message>
|
32 |
-
<message name="getLayeredSearchConfigResponse">
|
33 |
-
<part name="result" type="xsd:string" />
|
34 |
-
</message>
|
35 |
-
|
36 |
-
<portType name="{{var wsdl.handler}}PortType">
|
37 |
-
<operation name="setLayeredSearchOn">
|
38 |
-
<documentation>Set Layered Search on</documentation>
|
39 |
-
<input message="typens:setLayeredSearchOnRequest" />
|
40 |
-
<output message="typens:setLayeredSearchOnResponse" />
|
41 |
-
</operation>
|
42 |
-
</portType>
|
43 |
-
|
44 |
-
<portType name="{{var wsdl.handler}}PortType">
|
45 |
-
<operation name="setLayeredSearchOff">
|
46 |
-
<documentation>Set Layered Search off</documentation>
|
47 |
-
<input message="typens:setLayeredSearchOffRequest" />
|
48 |
-
<output message="typens:setLayeredSearchOffResponse" />
|
49 |
-
</operation>
|
50 |
-
</portType>
|
51 |
-
|
52 |
-
<portType name="{{var wsdl.handler}}PortType">
|
53 |
-
<operation name="getLayeredSearchConfig">
|
54 |
-
<documentation>Get Layered Search config</documentation>
|
55 |
-
<input message="typens:getLayeredSearchConfigRequest" />
|
56 |
-
<output message="typens:getLayeredSearchConfigResponse" />
|
57 |
-
</operation>
|
58 |
-
</portType>
|
59 |
-
|
60 |
-
<binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
|
61 |
-
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
|
62 |
-
<operation name="setLayeredSearchOn">
|
63 |
-
<soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
|
64 |
-
<input>
|
65 |
-
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
66 |
-
</input>
|
67 |
-
<output>
|
68 |
-
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
69 |
-
</output>
|
70 |
-
</operation>
|
71 |
-
<operation name="setLayeredSearchOff">
|
72 |
-
<soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
|
73 |
-
<input>
|
74 |
-
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
75 |
-
</input>
|
76 |
-
<output>
|
77 |
-
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
78 |
-
</output>
|
79 |
-
</operation>
|
80 |
-
<operation name="getLayeredSearchConfig">
|
81 |
-
<soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
|
82 |
-
<input>
|
83 |
-
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
84 |
-
</input>
|
85 |
-
<output>
|
86 |
-
<soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
|
87 |
-
</output>
|
88 |
-
</operation>
|
89 |
-
</binding>
|
90 |
-
<service name="{{var wsdl.name}}Service">
|
91 |
-
<port name="{{var wsdl.handler}}Port" binding="typens:{{var wsdl.handler}}Binding">
|
92 |
-
<soap:address location="{{var wsdl.url}}" />
|
93 |
-
</port>
|
94 |
-
</service>
|
95 |
-
</definitions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Autocompleteplus/Autosuggest/sql/autosuggest_setup/mysql4-upgrade-2.0.5.6-2.0.5.7.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$rolesModel = Mage::getModel('api/roles');
|
4 |
-
$userModel = Mage::getModel('api/user');
|
5 |
-
$apiRoles = $rolesModel->getCollection();
|
6 |
-
$apiUsers = $userModel->getCollection();
|
7 |
-
$roleName = 'InstantS';
|
8 |
-
$userName = 'instant_search';
|
9 |
-
|
10 |
-
$apiRoles->addFieldToFilter('role_name', $roleName);
|
11 |
-
$apiUsers->addFieldToFilter('username', $userName);
|
12 |
-
|
13 |
-
$apiRoles->getSelect()->limit(1);
|
14 |
-
$apiUsers->getSelect()->limit(1);
|
15 |
-
|
16 |
-
if ($apiRoles->getSize() > 0) {
|
17 |
-
// @codingStandardsIgnoreLine
|
18 |
-
$apiRoles->getFirstItem()->delete();
|
19 |
-
}
|
20 |
-
|
21 |
-
if ($apiUsers->getSize() > 0) {
|
22 |
-
// @codingStandardsIgnoreLine
|
23 |
-
$apiUsers->getFirstItem()->delete();
|
24 |
-
}
|
25 |
-
|
26 |
-
$rolesModel->setName($roleName)->setPid(false)->setRoleType('G')->save();
|
27 |
-
|
28 |
-
$roleId = $rolesModel->getId();
|
29 |
-
|
30 |
-
Mage::getModel('api/rules')->setRoleId($roleId)->setResources(array('all'))->saveRel();
|
31 |
-
|
32 |
-
$userModel->setData(array(
|
33 |
-
'username' => $userName,
|
34 |
-
'firstname' => 'instant',
|
35 |
-
'lastname' => 'search',
|
36 |
-
'email' => 'owner@example.com',
|
37 |
-
'api_key' => 'Rilb@kped3',
|
38 |
-
'api_key_confirmation' => 'Rilb@kped3',
|
39 |
-
'is_active' => 1,
|
40 |
-
'user_roles' => '',
|
41 |
-
'assigned_user_role' => '',
|
42 |
-
'role_name' => '',
|
43 |
-
'roles' => array($roleId),
|
44 |
-
))->save();
|
45 |
-
|
46 |
-
$userModel->setRoleIds(array($roleId))->setRoleUserId($userModel->getUserId())->saveRelations();
|
47 |
-
|
48 |
-
Mage::log(__FILE__ . ' triggered', null, 'autocomplete.log', true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,18 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>autocompleteplus_autosuggest</name>
|
4 |
-
<version>3.0.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.autocompleteplus.com/privacy">AC+</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>AutoComplete+ InstantSearch</summary>
|
10 |
<description>AutoComplete+ InstantSearch triples visitor conversion, optimizes search, and offers promotions through state-of-the-art contextual suggestions dropdown. Since suggestions are lightning fast, accurate, and contextual - visitors find exactly what they want - faster.</description>
|
11 |
-
<notes>
|
|
|
12 |
<authors><author><name>Adar</name><user>Adar</user><email>magento@autocompleteplus.com</email></author></authors>
|
13 |
-
<date>2016-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Autocompleteplus"><dir name="Autosuggest"><dir name="Adminhtml"><dir name="Model"><file name="Attributes.php" hash="5e480167310365ad57785ef2a2da39be"/><file name="Button.php" hash="ad2429ce8a2c172237e41faef5fce322"/></dir></dir><dir name="Block"><dir name="Adminhtml"><file name="Button.php" hash="262987c852813741a2562fe927054469"/><file name="Process.php" hash="30f02cc873ac8d6eaeaaeca5c3d328e5"/><file name="Sync.php" hash="3c668febd558dd7c2db75c314378e0d5"/></dir><file name="Autocomplete.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>autocompleteplus_autosuggest</name>
|
4 |
+
<version>3.0.0.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.autocompleteplus.com/privacy">AC+</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>AutoComplete+ InstantSearch</summary>
|
10 |
<description>AutoComplete+ InstantSearch triples visitor conversion, optimizes search, and offers promotions through state-of-the-art contextual suggestions dropdown. Since suggestions are lightning fast, accurate, and contextual - visitors find exactly what they want - faster.</description>
|
11 |
+
<notes>removed dead code,
|
12 |
+
missing sku bug fix</notes>
|
13 |
<authors><author><name>Adar</name><user>Adar</user><email>magento@autocompleteplus.com</email></author></authors>
|
14 |
+
<date>2016-09-14</date>
|
15 |
+
<time>14:00:47</time>
|
16 |
+
<contents><target name="magelocal"><dir name="Autocompleteplus"><dir name="Autosuggest"><dir name="Adminhtml"><dir name="Model"><file name="Attributes.php" hash="5e480167310365ad57785ef2a2da39be"/><file name="Button.php" hash="ad2429ce8a2c172237e41faef5fce322"/></dir></dir><dir name="Block"><dir name="Adminhtml"><file name="Button.php" hash="262987c852813741a2562fe927054469"/><file name="Process.php" hash="30f02cc873ac8d6eaeaaeca5c3d328e5"/><file name="Sync.php" hash="3c668febd558dd7c2db75c314378e0d5"/></dir><file name="Autocomplete.php" hash="1bb5bd66e55b477e6639863a6e71d8b2"/><file name="Autocorrection.php" hash="6676f140f9da260f52e59478e1af2b47"/><file name="Inject.php" hash="0af946c437fda1a02098b378a142a69c"/><file name="Notifications.php" hash="3ab60946b756f093585a708185d98909"/></dir><dir name="Controller"><file name="Abstract.php" hash="84b311dbc24ca94ee7f1af655430f8ea"/></dir><dir name="Helper"><file name="Data.php" hash="0e3df8e01900dbdd8240e6facee4f159"/></dir><dir name="Model"><dir name="Adminhtml"><file name="Attributes.php" hash="8f8581590b3b2eee69704aa1715dfdd4"/></dir><dir name="Api"><file name="V2.php" hash="f764e775bf087dad35a0351ff2c04539"/></dir><file name="Api.php" hash="298fcc3db05af5fad34375457b5001d4"/><file name="Batches.php" hash="bfa0c53ff502dbb99f120a8ac7626819"/><file name="Catalog.php" hash="4e70dc572e4ce0e03652ee158632b6f3"/><file name="Catalogreport.php" hash="110c05b050cffb2fec71973e36440702"/><file name="Checksum.php" hash="37550b6bd6d934f1ad2ef581dfa10eea"/><file name="Config.php" hash="3a19873f65c4c5485f2de7fb9baa1ca9"/><file name="Layer.php" hash="82538541fb58038dd308fc584454d0bd"/><dir name="Mysql4"><dir name="Batches"><file name="Collection.php" hash="06815b7ef6df1c09655024817f9fdc87"/></dir><file name="Batches.php" hash="f61cd3381a76f77989e5dbb35610c0fc"/><dir name="Checksum"><file name="Collection.php" hash="7879f033202d4618ad48f767dbfdd694"/></dir><file name="Checksum.php" hash="92ecf2e3990fd868f2d83fbd1f73d135"/><dir name="Fulltext"><file name="Collection.php" hash="b4b729b327d48457815a3f9c6e86e7f5"/></dir><dir name="Notifications"><file name="Collection.php" hash="9351b214c326de0a4195df88c6ef8f75"/></dir><file name="Notifications.php" hash="9f6514d2bfa7a89f2a663eaa06865d24"/><dir name="Pusher"><file name="Collection.php" hash="83bf9e00aceaa230fcdfe81ac4df344c"/></dir><file name="Pusher.php" hash="1e7ad77386c07fc060c554079a47d60f"/></dir><file name="Notifications.php" hash="7f4037e171c63de662370aeceaeed1d6"/><file name="Observer.php" hash="fc049474b276bb4c38af23e129391958"/><file name="Pusher.php" hash="518825e11c9d8fd0b91ac78f6916c40b"/><dir name="Renderer"><file name="Abstract.php" hash="e7298546a4e47a835a9b69ab873a95da"/><file name="Batches.php" hash="5d73a56a9760df0620f8c0bf28c4e4be"/><dir name="Catalog"><file name="Product.php" hash="84bedcb2c59f49835b759cec5ec7a77e"/></dir></dir><dir name="Resource"><dir name="Batches"><file name="Collection.php" hash="4cff894b990b3b80e95c4224b12050da"/></dir><file name="Batches.php" hash="bfff3c8f471bb5c19cfbc9420d7736a7"/><dir name="Checksum"><file name="Collection.php" hash="43580b863c0040783ffa59230c1fa5e2"/></dir><file name="Checksum.php" hash="e991bdba8c981fa67f46d1f06be10e11"/><dir name="Fulltext"><file name="Collection.php" hash="1a2ff4fb035bccf2424e3ecb0e0e4c93"/></dir><dir name="Notifications"><file name="Collection.php" hash="ca5fbd3f52d9fc2c575588f4d3208c69"/></dir><file name="Notifications.php" hash="5a62daeaba13c72b8f5eb40381642c8d"/><dir name="Pusher"><file name="Collection.php" hash="844299f9264313e6182816c8cbf58a37"/></dir><file name="Pusher.php" hash="fe212dffaaebc28665a3ff4244b78bcd"/></dir><file name="Service.php" hash="4c0e98c7abfa3319768ee850ed5d8e77"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Autocompleteplus"><file name="PushController.php" hash="59ca72fc498a4a190474b46706e1dd18"/><file name="RedirectController.php" hash="8361d1e5922d75763eb82cd916480fb1"/></dir></dir><dir name="CatalogSearch"><file name="ResultController.php" hash="8d2c03b7849b7dbeeb9a08cfa37e63ea"/></dir><file name="CatalogsearchController.php" hash="e534d0933da8a0a1deb4b0618cea5665"/><file name="CategoriesController.php" hash="2222f02aa99ac14c465143462e581270"/><file name="LayeredController.php" hash="444cb30c34aa499092b0007bcbb84cca"/><file name="ProductsController.php" hash="89cf1742c25ad0729328c021f3a635c3"/><file name="ProductsbyidController.php" hash="1589840233143b6e91fe95624638789b"/><file name="ResultController.php" hash="182f65ce4ccdf154aa0326512ec37140"/><file name="SearchesController.php" hash="7a4e94bb9456b4ac6b48c30b0cd389db"/></dir><dir name="data"><dir name="autosuggest_setup"><file name="data-install-3.0.0.5.php" hash="2b1ec2380f5c0a2d585b71eb73b8e573"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="34b9d24ddc4565311f6cc83d7e337478"/><file name="cache.xml" hash="b57472bc9410d67af3843825fba5b420"/><file name="config.xml" hash="7549336c63a0cb39973adc3f7e9e6b77"/><file name="system.xml" hash="6bed22fbdfc336254126cf4a8c49aa09"/></dir><dir name="sql"><dir name="autosuggest_setup"><file name="mysql4-install-2.0.1.1.php" hash="c891e1836f3df18eba24821371c85bfa"/><file name="mysql4-upgrade-2.0.1.3-2.0.2.2.php" hash="ddc7001e761dce3b4970f3d4adac2aa3"/><file name="mysql4-upgrade-2.0.2.5-2.0.2.6.php" hash="ea94264608685c51f008382d42d499fd"/><file name="mysql4-upgrade-2.0.4.6-2.0.4.7.php" hash="8166f765780956ea87bbe62b9f709f46"/><file name="mysql4-upgrade-2.0.5.4-2.0.5.5.php" hash="56a45f752e553280bb9242cde2aa76ce"/><file name="mysql4-upgrade-2.0.7.0-2.0.7.1.php" hash="3837250beee18106d0f043493dde3382"/><file name="mysql4-upgrade-2.0.7.2-2.0.7.3.php" hash="cf59ec04f2329243abac26bd79fa5818"/><file name="mysql4-upgrade-2.0.8.8-3.0.0.0.php" hash="9f60147846d67ecff6d7a28b39798f9b"/><file name="mysql4-upgrade-3.0.0.3-3.0.0.4.php" hash="9574b75e9a733be858a14588978cd21a"/><file name="mysql4-upgrade-3.0.0.4-3.0.0.5.php" hash="69094243b4af4e87a0e0186e76095099"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Autocompleteplus_Autosuggest.xml" hash="530931765807be8a21baa5e070bc4bc2"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="autocompleteplus.xml" hash="3998429f613fcc7842b7ea31cb423ec8"/></dir><dir name="template"><dir name="autocompleteplus"><dir name="catalog"><dir name="layer"><file name="view.phtml" hash="57066d2ac5fa051c15c3ed8bb43b5d08"/></dir><dir name="product"><file name="list.phtml" hash="c269d5b27302efb51cefb86a71027a0d"/></dir></dir><file name="inject.phtml" hash="e1e8e050631fe65417edb7a8f25155c8"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="autocompleteplus"><file name="notifications.phtml" hash="c1d08659e65020dcb9e62cf8bc28f73b"/><file name="process.phtml" hash="a7dd67e17a838d437fe9d9a2e9323d0c"/><dir name="system"><dir name="config"><file name="button.phtml" hash="3adf3f3f4ab989cf643f2fc49719b59d"/><file name="sync.phtml" hash="e0392aac8584e98ef4260419750e1cbb"/></dir></dir></dir></dir><dir name="layout"><file name="autocompleteplus.xml" hash="d69295113bbb7beb7b9e32cc84a9b129"/></dir></dir></dir></dir></target><target name="magelib"><dir name="Autocompleteplus"><dir name="Autosuggest"><dir name="Xml"><file name="Generator.php" hash="c2fe75e398a73b82229999a08948f56b"/><file name="GeneratorInterface.php" hash="d3d6ea3a712fdbdb60d8994230a65f1c"/></dir></dir></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|