Me_Gravity - Version 1.0.2.3

Version Notes

Version number: 1.0.2.3
Stability: Stable
Compatibility: CE 1.6.x, 1.7.x, 1.8.x, 1.9.x

Download this release

Release Info

Developer Gravity Recommendations
Extension Me_Gravity
Version 1.0.2.3
Comparing to
See all releases


Code changes from version 1.0.2.1 to 1.0.2.3

app/code/community/Me/Gravity/Model/Method/Request.php CHANGED
@@ -1,667 +1,677 @@
1
- <?php
2
- /**
3
- * Class Me_Salesautopilot_Model_Method_Request
4
- *
5
- * @category Me
6
- * @package Me_Salesautopilot
7
- * @author Sági Attila <sagi.attila@magevolve.com>
8
- * @copyright 2015 Magevolve Ltd. (http://magevolve.com)
9
- * @license http://magevolve.com/terms-and-conditions Magevolve Ltd. License
10
- * @link http://magevolve.com
11
- */
12
-
13
- /**
14
- * Class Me_Gravity_Model_Method_Request
15
- */
16
- require_once 'app/code/community/Me/Gravity/Model/Client/GravityClient.php';
17
-
18
- class Me_Gravity_Model_Method_Request extends Me_Gravity_Model_Method_Abstract
19
- {
20
- /**
21
- * Request event type
22
- */
23
- const EVENT_TYPE_GET = 'GET';
24
-
25
- /**
26
- * Request event type bulk
27
- */
28
- const EVENT_TYPE_BULK = 'BULK';
29
-
30
- /**
31
- * Send event type
32
- */
33
- const EVENT_TYPE_SEND = 'SEND';
34
-
35
- /**
36
- * Test event type
37
- */
38
- const EVENT_TYPE_TEST = 'TEST';
39
-
40
- /**
41
- * Update / add event type
42
- */
43
- const EVENT_TYPE_UPDATE = 'UPDATE';
44
-
45
- /**
46
- * Event type customer update
47
- */
48
- const EVENT_TYPE_CUSTOMER_UPDATE = 'CUSTOMER_UPDATE';
49
-
50
- /**
51
- * Event type product update
52
- */
53
- const EVENT_TYPE_PRODUCT_UPDATE = 'PRODUCT_UPDATE';
54
-
55
- /**
56
- * Event type add to cart
57
- */
58
- const EVENT_TYPE_ADD_TO_CART = 'ADD_TO_CART';
59
-
60
- /**
61
- * Event type remove from cart
62
- */
63
- const EVENT_TYPE_REMOVE_FROM_CART = 'REMOVE_FROM_CART';
64
-
65
- /**
66
- * Event type buy
67
- */
68
- const EVENT_TYPE_BUY = 'BUY';
69
-
70
- /**
71
- * Product page similar
72
- */
73
- const PRODUCT_PAGE_SIMILAR = 'ITEM_PAGE_SIMILAR';
74
-
75
- /**
76
- * Product page personal
77
- */
78
- const PRODUCT_PAGE_PERSONAL = 'ITEM_PAGE_PERSONAL';
79
-
80
- /**
81
- * Product page accessories
82
- */
83
- const PRODUCT_PAGE_ACCESSORIES = 'ITEM_PAGE_ACCESSORIES';
84
-
85
- /**
86
- * Category page personal
87
- */
88
- const CATEGORY_PAGE_PERSONAL = 'CATEGORY_PAGE_PERSONAL';
89
-
90
- /**
91
- * Category page top
92
- */
93
- const CATEGORY_PAGE_TOP = 'CATEGORY_PAGE_POP';
94
-
95
- /**
96
- * Cart page
97
- */
98
- const CART_PAGE = 'CART_PAGE';
99
-
100
- /**
101
- * Search result page
102
- */
103
- const SEARCH_RESULT_PAGE = 'LISTING_PAGE';
104
-
105
- /**
106
- * General page, Personal Best Box
107
- */
108
- const GENERAL_PERSONAL_BEST = 'PERSONAL_BEST';
109
-
110
- /**
111
- * General page, History Box
112
- */
113
- const GENERAL_PERSONAL_HISTORY = 'PERSONAL_HISTORY';
114
-
115
- /**
116
- * General page, Currently Viewed Box
117
- */
118
- const GENERAL_CURRENTLY_VIEWED = 'CURRENTLY_VIEWED';
119
-
120
- /**
121
- * General page, Popular Box
122
- */
123
- const GENERAL_POPULAR = 'POPULAR';
124
-
125
- /**
126
- * Gravity cookie name
127
- */
128
- const GRAVITY_COOKIE_NAME = 'gr_reco';
129
-
130
- /**
131
- * Path to store config API password
132
- *
133
- * @var string
134
- */
135
- const XML_PATH_API_URL = 'gravity/config/api_url';
136
-
137
- /**
138
- * Communication method features
139
- *
140
- * @var bool
141
- */
142
- protected $_canSendRequest = true;
143
-
144
- /**
145
- * Gravity unique cookie id
146
- *
147
- * @var string
148
- */
149
- protected $_gravityCookie = '';
150
-
151
- /**
152
- * Current store id
153
- *
154
- * @var int
155
- */
156
- protected $_storeId = 0;
157
-
158
- /**
159
- * Constructor
160
- *
161
- * @return void
162
- */
163
- public function _construct()
164
- {
165
- parent::_construct();
166
-
167
- $this->_helper = $this->_getGravityHelper();
168
- $this->_storeId = Mage::app()->getStore()->getId();
169
- if ($this->_helper->getDebugMode()) {
170
- $this->_canDebugLog = true;
171
- }
172
- }
173
-
174
- /**
175
- * Send request
176
- *
177
- * @param string $type event type
178
- * @param array $params parameters
179
- * @throws Exception
180
- * @return $this|bool
181
- */
182
- public function sendRequest($type, $params = array())
183
- {
184
- parent::sendRequest($type, $params);
185
-
186
- if (!$this->_helper->isFullyEnabled()) {
187
- $this->_helper->getLogger($this->_helper->__('Invalid Gravity extension configuration.'));
188
- return false;
189
- }
190
-
191
- try {
192
-
193
- $client = $this->_init();
194
- $this->_getGravityCookie();
195
-
196
- if ($this->_canDebugLog) {
197
- $this->_helper->getLogger($type);
198
- if (isset($params['type']) && $params['type']) {
199
- $this->_helper->getLogger($params['type']);
200
- }
201
- }
202
-
203
- switch ($type) {
204
- case self::EVENT_TYPE_GET:
205
- $result = $this->_getRecommendationItems($client, $params);
206
- break;
207
- case self::EVENT_TYPE_BULK:
208
- $result = $this->_getBulkRecommendationItems($client, $params);
209
- break;
210
- case self::EVENT_TYPE_TEST:
211
- $result = $client->test($this->_helper->getApiUser());
212
- break;
213
- case self::EVENT_TYPE_SEND:
214
- $result = $this->_sendEvent($client, $params);
215
- break;
216
- case self::EVENT_TYPE_UPDATE:
217
- $result = $this->_sendUpdate($client, $params);
218
- break;
219
- default:
220
- return false;
221
- }
222
-
223
- if ($this->_canDebugLog && $result) {
224
- $this->_helper->getLogger($result);
225
- }
226
-
227
- return $this->_validateResult($result, $this->_helper->useBulkRecommendation());
228
-
229
- } catch (Mage_Core_Exception $e) {
230
-
231
- $this->_helper->getLogger($e->getMessage());
232
-
233
- } catch (Exception $e) {
234
-
235
- $this->_helper->getLogger($e->getMessage());
236
-
237
- }
238
-
239
- return $this;
240
- }
241
-
242
- /**
243
- * Send event
244
- *
245
- * @param GravityClient $client client
246
- * @param array $params parameters
247
- * @throws Mage_Core_Exception
248
- * @return object|array
249
- */
250
- protected function _sendEvent($client, $params)
251
- {
252
- if (!isset($params['type'])) {
253
- Mage::throwException($this->_helper->__('Invalid recommendation type'));
254
- }
255
-
256
- $event = new GravityEvent();
257
- if (isset($params['type']) && $params['type']) {
258
- $event->eventType = $params['type'];
259
- } else {
260
- Mage::throwException($this->_helper->__('Invalid event type'));
261
- }
262
-
263
- $event->userId = $this->_getCustomerId();
264
- $event->cookieId = $this->_getGravityCookie();
265
- $event->time = time();
266
-
267
- $storeId = new GravityNameValue('storeId', $this->_storeId);
268
-
269
- switch ($params['type']) {
270
- case self::EVENT_TYPE_ADD_TO_CART:
271
- if (isset($params['product'])
272
- && isset($params['qty'])
273
- && $params['product']
274
- && $params['qty']
275
- ) {
276
- $event->itemId = $params['product'];
277
- $qty = new GravityNameValue('quantity', $params['qty']);
278
- $price = new GravityNameValue('unitPrice', $params['unitPrice']);
279
- $event->nameValues = array($qty, $price, $storeId);
280
- if ($this->_canDebugLog) {
281
- $this->_helper->getLogger('Item id: ' . $event->itemId);
282
- $this->_helper->getLogger('Qty: ' . $params['qty']);
283
- $this->_helper->getLogger('unitPrice: ' . $params['unitPrice']);
284
- $this->_helper->getLogger('StoreId: ' . $this->_storeId);
285
- }
286
- } else {
287
- Mage::throwException($this->_helper->__('Invalid ' . $params['type'] . ' parameters'));
288
- }
289
- break;
290
- case self::EVENT_TYPE_REMOVE_FROM_CART:
291
- if (isset($params['product']) && isset($params['qty']) && $params['product'] && $params['qty']) {
292
- $event->itemId = $params['product'];
293
- $qty = new GravityNameValue('quantity', $params['qty']);
294
- $event->nameValues = array($qty, $storeId);
295
- if ($this->_canDebugLog) {
296
- $this->_helper->getLogger('Item id: ' . $event->itemId);
297
- $this->_helper->getLogger('Qty: ' . $params['qty']);
298
- $this->_helper->getLogger('StoreId: ' . $this->_storeId);
299
- }
300
- } else {
301
- Mage::throwException($this->_helper->__('Invalid ' . $params['type'] . ' parameters'));
302
- }
303
- break;
304
- case self::EVENT_TYPE_BUY:
305
- if (isset($params['orderId'])
306
- && isset($params['itemId'])
307
- && isset($params['unitPrice'])
308
- && isset($params['quantity'])
309
- && $params['orderId']
310
- && $params['itemId']
311
- && $params['unitPrice']
312
- && $params['quantity']
313
- ) {
314
- $event->itemId = $params['itemId'];
315
- $quantity = new GravityNameValue('quantity', $params['quantity']);
316
- $unitPrice = new GravityNameValue('unitPrice', $params['unitPrice']);
317
- $currency = new GravityNameValue('currency', $params['currency']);
318
- $orderId = new GravityNameValue('orderId', $params['orderId']);
319
- $event->nameValues = array($quantity, $unitPrice, $currency, $orderId, $storeId);
320
- if ($this->_canDebugLog) {
321
- $this->_helper->getLogger('Item id: ' . $event->itemId);
322
- $this->_helper->getLogger('Qty: ' . $params['quantity']);
323
- $this->_helper->getLogger('UnitPrice: ' . $params['unitPrice']);
324
- $this->_helper->getLogger('Currency: ' . $params['currency']);
325
- $this->_helper->getLogger('OrderId: ' . $params['orderId']);
326
- $this->_helper->getLogger('StoreId: ' . $this->_storeId);
327
- }
328
- } else {
329
- Mage::throwException($this->_helper->__('Invalid ' . $params['type'] . ' parameters'));
330
- }
331
- break;
332
- default:
333
- return false;
334
- }
335
-
336
- $eventsToAdd = array($event);
337
- $async = false;
338
- try {
339
-
340
- $result = $client->addEvents($eventsToAdd, $async);
341
-
342
- return $result;
343
-
344
- } catch (GravityException $e) {
345
- $this->_helper->getLogger($this->_helper->__('Error happened by sending the event!'));
346
- $this->_helper->getLogger($this->_helper->__('Message: ' . $e->getMessage() . ' Fault info: ' . $e->faultInfo));
347
- }
348
- }
349
-
350
- /**
351
- * Get recommendation
352
- *
353
- * @param GravityClient $client client
354
- * @param array $params parameters
355
- * @throws Mage_Core_Exception
356
- * @return object
357
- */
358
- protected function _getRecommendationItems($client, $params)
359
- {
360
- if (!isset($params['type'])) {
361
- Mage::throwException($this->_helper->__('Invalid recommendation type.'));
362
- }
363
-
364
- if ($this->_helper->getDebugMode()) {
365
- $this->_helper->getLogger($params);
366
- }
367
-
368
- $userId = $this->_getCustomerId();
369
- $cookieId = $this->_gravityCookie;
370
- $recommendationContext = new GravityRecommendationContext();
371
- $recommendationContext->scenarioId = $params['type'];
372
-
373
- if (isset($params['limit']) && $params['limit']) {
374
- $recommendationContext->numberLimit = $params['limit'];
375
- } else {
376
- $recommendationContext->numberLimit = 5;
377
- }
378
-
379
- $storeValue = new GravityNameValue('storeId', $this->_storeId);
380
- $recommendationContext->nameValues = array($storeValue);
381
-
382
- if (isset($params['itemId']) && $params['itemId']) {
383
- $pageItemId = new GravityNameValue('currentItemId', $params['itemId']);
384
- $recommendationContext->nameValues = array_merge(array($pageItemId), $recommendationContext->nameValues);
385
- }
386
-
387
- if (isset($params['itemsInCart']) && is_array($params['itemsInCart']) && $params['itemsInCart']) {
388
- foreach ($params['itemsInCart'] as $itemId) {
389
- $itemId = new GravityNameValue('cartItemId', $itemId);
390
- $recommendationContext->nameValues = array_merge(array($itemId), $recommendationContext->nameValues);
391
- }
392
- }
393
-
394
- if (isset($params['filters']) && is_array($params['filters']) && $params['filters']) {
395
- foreach ($params['filters'] as $key => $filter) {
396
- $nameValue = new GravityNameValue($key, $filter);
397
- $recommendationContext->nameValues = array_merge(array($nameValue), $recommendationContext->nameValues);
398
- }
399
- }
400
-
401
- if (isset($params['keywords']) && is_array($params['keywords']) && $params['keywords']) {
402
- foreach ($params['keywords'] as $key => $filter) {
403
- $nameValue = new GravityNameValue($key, $filter);
404
- $recommendationContext->nameValues = array_merge(array($nameValue), $recommendationContext->nameValues);
405
- }
406
- }
407
-
408
- if ($this->_canDebugLog) {
409
- $this->_helper->getLogger($recommendationContext->nameValues);
410
- }
411
-
412
- $recommendationContext->recommendationTime = time();
413
-
414
- $itemRecommendation = null;
415
- try {
416
-
417
- $itemRecommendation = $client->getItemRecommendation($userId, $cookieId, $recommendationContext);
418
-
419
- return $itemRecommendation;
420
-
421
- } catch (GravityException $e) {
422
-
423
- $this->_helper->getLogger($this->_helper->__('Error happened by getting the item recommendation!'));
424
- $this->_helper->getLogger($e->getMessage());
425
- $this->_helper->getLogger($e->faultInfo);
426
-
427
- }
428
- }
429
-
430
- /**
431
- * Get recommendation
432
- *
433
- * @param GravityClient $client client
434
- * @param array $params parameters
435
- * @throws Mage_Core_Exception
436
- * @return object
437
- */
438
- protected function _getBulkRecommendationItems($client, $params)
439
- {
440
- if ($this->_helper->getDebugMode()) {
441
- $this->_helper->getLogger($params);
442
- }
443
-
444
- $recommendationContextArray = array();
445
- $userId = $this->_getCustomerId();
446
- $cookieId = $this->_gravityCookie;
447
-
448
- $i = 0;
449
- foreach ($params as $param) {
450
-
451
- if (!isset($param['type'])) {
452
- Mage::throwException($this->_helper->__('Invalid recommendation type.'));
453
- }
454
-
455
- $recommendationContext = new GravityRecommendationContext();
456
- $recommendationContext->scenarioId = $param['type'];
457
-
458
- if (isset($param['limit']) && $param['limit']) {
459
- $recommendationContext->numberLimit = $param['limit'];
460
- } else {
461
- $recommendationContext->numberLimit = 5;
462
- }
463
-
464
- $storeValue = new GravityNameValue('storeId', $this->_storeId);
465
- $recommendationContext->nameValues = array($storeValue);
466
-
467
- if (isset($param['itemId']) && $param['itemId']) {
468
- $pageItemId = new GravityNameValue('currentItemId', $param['itemId']);
469
- $recommendationContext->nameValues = array_merge(array($pageItemId), $recommendationContext->nameValues);
470
- }
471
-
472
- $recommendationContext->recommendationTime = time();
473
-
474
- $recommendationContextArray[$i] = $recommendationContext;
475
- $recommendationContext = null;
476
- $i++;
477
- }
478
-
479
- if ($this->_canDebugLog) {
480
- $this->_helper->getLogger($recommendationContextArray);
481
- }
482
-
483
- $itemRecommendations = null;
484
- try {
485
-
486
- $itemRecommendations = $client->getItemRecommendationBulk($userId, $cookieId, $recommendationContextArray);
487
-
488
- return $itemRecommendations;
489
-
490
- } catch (GravityException $e) {
491
-
492
- $this->_helper->getLogger($this->_helper->__('Error happened by getting the item recommendation!'));
493
- $this->_helper->getLogger($e->getMessage());
494
- $this->_helper->getLogger($e->faultInfo);
495
-
496
- }
497
- }
498
-
499
- /**
500
- * Send update
501
- *
502
- * @param GravityClient $client client
503
- * @param array $params parameters
504
- * @throws Mage_Core_Exception
505
- * @return object
506
- */
507
- protected function _sendUpdate($client, $params)
508
- {
509
- if (!isset($params['type'])) {
510
- Mage::throwException($this->_helper->__('Invalid recommendation type.'));
511
- }
512
-
513
- try {
514
- $result = '';
515
- switch ($params['type']) {
516
- case self::EVENT_TYPE_CUSTOMER_UPDATE:
517
- if (isset($params['userid']) && $params['userid']) {
518
- $user = new GravityUser();
519
- $user->userId = $params['userid'];
520
- $user->hidden = false;
521
-
522
- if ($this->_canDebugLog) {
523
- $this->_helper->getLogger('userId: ' . $params['userid']);
524
- }
525
-
526
- unset($params['type']);
527
- unset($params['userid']);
528
- foreach ($params as $attribute => $value) {
529
- if ($value) {
530
- $user->nameValues[] = new GravityNameValue($attribute, $value);
531
- }
532
- }
533
- $result = $client->addUser($user, true);
534
-
535
- } else {
536
- Mage::throwException($this->_helper->__('Invalid ' . $params['type'] . ' parameters'));
537
- }
538
- break;
539
- case self::EVENT_TYPE_PRODUCT_UPDATE:
540
- if (isset($params['itemid']) && isset($params['title']) && $params['itemid'] && $params['title']) {
541
- $item = new GravityItem();
542
- $item->itemId = $params['itemid'];
543
- $item->title = $params['title'];
544
- $item->hidden = $params['hidden'];
545
- if ($this->_canDebugLog) {
546
- $this->_helper->getLogger('itemId: ' . $params['itemid']);
547
- }
548
-
549
- unset($params['type']);
550
- unset($params['itemid']);
551
- unset($params['hidden']);
552
- foreach ($params as $attribute => $value) {
553
- if ($value) {
554
- $item->nameValues[] = new GravityNameValue($attribute, $value);
555
- }
556
- }
557
- $isAsync = true;
558
- $result = $client->addItem($item, $isAsync);
559
-
560
- } else {
561
- Mage::throwException($this->_helper->__('Invalid ' . $params['type'] . ' parameters'));
562
- }
563
- break;
564
- default:
565
- return false;
566
- }
567
-
568
- return $result;
569
-
570
- } catch (GravityException $e) {
571
-
572
- $this->_helper->getLogger($this->_helper->__('Error happened by adding user!'));
573
- $this->_helper->getLogger($e->getMessage());
574
- $this->_helper->getLogger($e->faultInfo);
575
-
576
- }
577
- }
578
-
579
- /**
580
- * Validate result
581
- *
582
- * @param stdClass $result result
583
- * @param bool $isBulk bulk recommendation
584
- * @return null|string|array
585
- */
586
- protected function _validateResult($result, $isBulk = false)
587
- {
588
- $answer = array();
589
-
590
- if ($isBulk && is_array($result)) {
591
-
592
- foreach ($result as $_result) {
593
-
594
- if (!empty($_result->itemIds) && $_result instanceof stdClass) {
595
- $answer[$_result->recommendationId] = $_result->itemIds;
596
- }
597
-
598
- }
599
-
600
- return $answer;
601
-
602
- } elseif ($result && $result instanceof stdClass) {
603
-
604
- if (!empty($result->itemIds)) {
605
- $answer[$result->recommendationId] = $result->itemIds;
606
- }
607
-
608
- return $answer;
609
-
610
- } elseif ($result && is_string($result)) {
611
-
612
- return $result;
613
-
614
- }
615
-
616
- return null;
617
- }
618
-
619
- /**
620
- * Init Gravity Client
621
- *
622
- * @return GravityClient object
623
- */
624
- protected function _init()
625
- {
626
- $config = new GravityClientConfig();
627
- $config->remoteUrl = $this->_getApiUrl();
628
- $config->user = $this->_helper->getApiUser();
629
- $config->password = $this->_helper->getApiPassword();
630
- return new GravityClient($config);
631
- }
632
-
633
- /**
634
- * Get current customer id
635
- *
636
- * @return mixed
637
- */
638
- protected function _getCustomerId()
639
- {
640
- return Mage::getSingleton('customer/session')->getCustomer()->getId();
641
- }
642
-
643
- /**
644
- * Get API URL
645
- *
646
- * @param integer|string|Mage_Core_Model_Store $store store
647
- * @return boolean
648
- */
649
- private function _getApiUrl($store = null)
650
- {
651
- return Mage::getStoreConfig(self::XML_PATH_API_URL, $store);
652
- }
653
-
654
- /**
655
- * Get Gravity cookie
656
- *
657
- * @return string
658
- */
659
- private function _getGravityCookie()
660
- {
661
- if (!$this->_gravityCookie) {
662
- $this->_gravityCookie = Mage::getModel('core/cookie')->get(self::GRAVITY_COOKIE_NAME);
663
- }
664
-
665
- return $this->_gravityCookie;
666
- }
667
- }
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Class Me_Salesautopilot_Model_Method_Request
4
+ *
5
+ * @category Me
6
+ * @package Me_Salesautopilot
7
+ * @author Sági Attila <sagi.attila@magevolve.com>
8
+ * @copyright 2015 Magevolve Ltd. (http://magevolve.com)
9
+ * @license http://magevolve.com/terms-and-conditions Magevolve Ltd. License
10
+ * @link http://magevolve.com
11
+ */
12
+
13
+ /**
14
+ * Class Me_Gravity_Model_Method_Request
15
+ */
16
+ require_once 'app/code/community/Me/Gravity/Model/Client/GravityClient.php';
17
+
18
+ class Me_Gravity_Model_Method_Request extends Me_Gravity_Model_Method_Abstract
19
+ {
20
+ /**
21
+ * Request event type
22
+ */
23
+ const EVENT_TYPE_GET = 'GET';
24
+
25
+ /**
26
+ * Request event type bulk
27
+ */
28
+ const EVENT_TYPE_BULK = 'BULK';
29
+
30
+ /**
31
+ * Send event type
32
+ */
33
+ const EVENT_TYPE_SEND = 'SEND';
34
+
35
+ /**
36
+ * Test event type
37
+ */
38
+ const EVENT_TYPE_TEST = 'TEST';
39
+
40
+ /**
41
+ * Update / add event type
42
+ */
43
+ const EVENT_TYPE_UPDATE = 'UPDATE';
44
+
45
+ /**
46
+ * Event type customer update
47
+ */
48
+ const EVENT_TYPE_CUSTOMER_UPDATE = 'CUSTOMER_UPDATE';
49
+
50
+ /**
51
+ * Event type product update
52
+ */
53
+ const EVENT_TYPE_PRODUCT_UPDATE = 'PRODUCT_UPDATE';
54
+
55
+ /**
56
+ * Event type add to cart
57
+ */
58
+ const EVENT_TYPE_ADD_TO_CART = 'ADD_TO_CART';
59
+
60
+ /**
61
+ * Event type remove from cart
62
+ */
63
+ const EVENT_TYPE_REMOVE_FROM_CART = 'REMOVE_FROM_CART';
64
+
65
+ /**
66
+ * Event type buy
67
+ */
68
+ const EVENT_TYPE_BUY = 'BUY';
69
+
70
+ /**
71
+ * Product page similar
72
+ */
73
+ const PRODUCT_PAGE_SIMILAR = 'ITEM_PAGE_SIMILAR';
74
+
75
+ /**
76
+ * Product page personal
77
+ */
78
+ const PRODUCT_PAGE_PERSONAL = 'ITEM_PAGE_PERSONAL';
79
+
80
+ /**
81
+ * Product page accessories
82
+ */
83
+ const PRODUCT_PAGE_ACCESSORIES = 'ITEM_PAGE_ACCESSORIES';
84
+
85
+ /**
86
+ * Category page personal
87
+ */
88
+ const CATEGORY_PAGE_PERSONAL = 'CATEGORY_PAGE_PERSONAL';
89
+
90
+ /**
91
+ * Category page top
92
+ */
93
+ const CATEGORY_PAGE_TOP = 'CATEGORY_PAGE_POP';
94
+
95
+ /**
96
+ * Cart page
97
+ */
98
+ const CART_PAGE = 'CART_PAGE';
99
+
100
+ /**
101
+ * Search result page
102
+ */
103
+ const SEARCH_RESULT_PAGE = 'LISTING_PAGE';
104
+
105
+ /**
106
+ * General page, Personal Best Box
107
+ */
108
+ const GENERAL_PERSONAL_BEST = 'PERSONAL_BEST';
109
+
110
+ /**
111
+ * General page, History Box
112
+ */
113
+ const GENERAL_PERSONAL_HISTORY = 'PERSONAL_HISTORY';
114
+
115
+ /**
116
+ * General page, Currently Viewed Box
117
+ */
118
+ const GENERAL_CURRENTLY_VIEWED = 'CURRENTLY_VIEWED';
119
+
120
+ /**
121
+ * General page, Popular Box
122
+ */
123
+ const GENERAL_POPULAR = 'POPULAR';
124
+
125
+ /**
126
+ * Gravity cookie name
127
+ */
128
+ const GRAVITY_COOKIE_NAME = 'gr_reco';
129
+
130
+ /**
131
+ * Path to store config API password
132
+ *
133
+ * @var string
134
+ */
135
+ const XML_PATH_API_URL = 'gravity/config/api_url';
136
+
137
+ /**
138
+ * Communication method features
139
+ *
140
+ * @var bool
141
+ */
142
+ protected $_canSendRequest = true;
143
+
144
+ /**
145
+ * Gravity unique cookie id
146
+ *
147
+ * @var string
148
+ */
149
+ protected $_gravityCookie = '';
150
+
151
+ /**
152
+ * Current store id
153
+ *
154
+ * @var int
155
+ */
156
+ protected $_storeId = 0;
157
+
158
+ /**
159
+ * Constructor
160
+ *
161
+ * @return void
162
+ */
163
+ public function _construct()
164
+ {
165
+ parent::_construct();
166
+
167
+ $this->_helper = $this->_getGravityHelper();
168
+ $this->_storeId = Mage::app()->getStore()->getId();
169
+ if ($this->_helper->getDebugMode()) {
170
+ $this->_canDebugLog = true;
171
+ }
172
+ }
173
+
174
+ /**
175
+ * Send request
176
+ *
177
+ * @param string $type event type
178
+ * @param array $params parameters
179
+ * @throws Exception
180
+ * @return $this|bool
181
+ */
182
+ public function sendRequest($type, $params = array())
183
+ {
184
+ parent::sendRequest($type, $params);
185
+
186
+ if (!$this->_helper->isFullyEnabled()) {
187
+ $this->_helper->getLogger($this->_helper->__('Invalid Gravity extension configuration.'));
188
+ return false;
189
+ }
190
+
191
+ try {
192
+
193
+ $client = $this->_init();
194
+ $this->_getGravityCookie();
195
+
196
+ if ($this->_canDebugLog) {
197
+ $this->_helper->getLogger($type);
198
+ if (isset($params['type']) && $params['type']) {
199
+ $this->_helper->getLogger($params['type']);
200
+ }
201
+ }
202
+
203
+ switch ($type) {
204
+ case self::EVENT_TYPE_GET:
205
+ $result = $this->_getRecommendationItems($client, $params);
206
+ break;
207
+ case self::EVENT_TYPE_BULK:
208
+ $result = $this->_getBulkRecommendationItems($client, $params);
209
+ break;
210
+ case self::EVENT_TYPE_TEST:
211
+ $result = $client->test($this->_helper->getApiUser());
212
+ break;
213
+ case self::EVENT_TYPE_SEND:
214
+ $result = $this->_sendEvent($client, $params);
215
+ break;
216
+ case self::EVENT_TYPE_UPDATE:
217
+ $result = $this->_sendUpdate($client, $params);
218
+ break;
219
+ default:
220
+ return false;
221
+ }
222
+
223
+ if ($this->_canDebugLog && $result) {
224
+ $this->_helper->getLogger($result);
225
+ }
226
+
227
+ return $this->_validateResult($result, $this->_helper->useBulkRecommendation());
228
+
229
+ } catch (Mage_Core_Exception $e) {
230
+
231
+ $this->_helper->getLogger($e->getMessage());
232
+
233
+ } catch (Exception $e) {
234
+
235
+ $this->_helper->getLogger($e->getMessage());
236
+
237
+ }
238
+
239
+ return $this;
240
+ }
241
+
242
+ /**
243
+ * Send event
244
+ *
245
+ * @param GravityClient $client client
246
+ * @param array $params parameters
247
+ * @throws Mage_Core_Exception
248
+ * @return object|array
249
+ */
250
+ protected function _sendEvent($client, $params)
251
+ {
252
+ if (!isset($params['type'])) {
253
+ Mage::throwException($this->_helper->__('Invalid recommendation type'));
254
+ }
255
+
256
+ $event = new GravityEvent();
257
+ if (isset($params['type']) && $params['type']) {
258
+ $event->eventType = $params['type'];
259
+ } else {
260
+ Mage::throwException($this->_helper->__('Invalid event type'));
261
+ }
262
+
263
+ $event->userId = $this->_getCustomerId();
264
+ $event->cookieId = $this->_getGravityCookie();
265
+ $event->time = time();
266
+
267
+ $storeId = new GravityNameValue('storeId', $this->_storeId);
268
+
269
+ switch ($params['type']) {
270
+ case self::EVENT_TYPE_ADD_TO_CART:
271
+ if (isset($params['product'])
272
+ && isset($params['qty'])
273
+ && $params['product']
274
+ && $params['qty']
275
+ ) {
276
+ $event->itemId = $params['product'];
277
+ $qty = new GravityNameValue('quantity', $params['qty']);
278
+ $price = new GravityNameValue('unitPrice', $params['unitPrice']);
279
+ $event->nameValues = array($qty, $price, $storeId);
280
+ if ($this->_canDebugLog) {
281
+ $this->_helper->getLogger('Item id: ' . $event->itemId);
282
+ $this->_helper->getLogger('Qty: ' . $params['qty']);
283
+ $this->_helper->getLogger('unitPrice: ' . $params['unitPrice']);
284
+ $this->_helper->getLogger('StoreId: ' . $this->_storeId);
285
+ }
286
+ } else {
287
+ Mage::throwException($this->_helper->__('Invalid ' . $params['type'] . ' parameters'));
288
+ }
289
+ break;
290
+ case self::EVENT_TYPE_REMOVE_FROM_CART:
291
+ if (isset($params['product']) && isset($params['qty']) && $params['product'] && $params['qty']) {
292
+ $event->itemId = $params['product'];
293
+ $qty = new GravityNameValue('quantity', $params['qty']);
294
+ $event->nameValues = array($qty, $storeId);
295
+ if ($this->_canDebugLog) {
296
+ $this->_helper->getLogger('Item id: ' . $event->itemId);
297
+ $this->_helper->getLogger('Qty: ' . $params['qty']);
298
+ $this->_helper->getLogger('StoreId: ' . $this->_storeId);
299
+ }
300
+ } else {
301
+ Mage::throwException($this->_helper->__('Invalid ' . $params['type'] . ' parameters'));
302
+ }
303
+ break;
304
+ case self::EVENT_TYPE_BUY:
305
+ if (isset($params['orderId'])
306
+ && isset($params['itemId'])
307
+ && isset($params['unitPrice'])
308
+ && isset($params['quantity'])
309
+ && $params['orderId']
310
+ && $params['itemId']
311
+ && $params['unitPrice']
312
+ && $params['quantity']
313
+ ) {
314
+ $event->itemId = $params['itemId'];
315
+ $quantity = new GravityNameValue('quantity', $params['quantity']);
316
+ $unitPrice = new GravityNameValue('unitPrice', $params['unitPrice']);
317
+ $currency = new GravityNameValue('currency', $params['currency']);
318
+ $orderId = new GravityNameValue('orderId', $params['orderId']);
319
+ $event->nameValues = array($quantity, $unitPrice, $currency, $orderId, $storeId);
320
+ if ($this->_canDebugLog) {
321
+ $this->_helper->getLogger('Item id: ' . $event->itemId);
322
+ $this->_helper->getLogger('Qty: ' . $params['quantity']);
323
+ $this->_helper->getLogger('UnitPrice: ' . $params['unitPrice']);
324
+ $this->_helper->getLogger('Currency: ' . $params['currency']);
325
+ $this->_helper->getLogger('OrderId: ' . $params['orderId']);
326
+ $this->_helper->getLogger('StoreId: ' . $this->_storeId);
327
+ }
328
+ } else {
329
+ Mage::throwException($this->_helper->__('Invalid ' . $params['type'] . ' parameters'));
330
+ }
331
+ break;
332
+ default:
333
+ return false;
334
+ }
335
+
336
+ $eventsToAdd = array($event);
337
+ $async = false;
338
+ try {
339
+
340
+ $result = $client->addEvents($eventsToAdd, $async);
341
+
342
+ return $result;
343
+
344
+ } catch (GravityException $e) {
345
+ $this->_helper->getLogger($this->_helper->__('Error happened by sending the event!'));
346
+ $this->_helper->getLogger($this->_helper->__('Message: ' . $e->getMessage() . ' Fault info: ' . $e->faultInfo));
347
+ }
348
+ }
349
+
350
+ /**
351
+ * Get recommendation
352
+ *
353
+ * @param GravityClient $client client
354
+ * @param array $params parameters
355
+ * @throws Mage_Core_Exception
356
+ * @return object
357
+ */
358
+ protected function _getRecommendationItems($client, $params)
359
+ {
360
+ if (!isset($params['type'])) {
361
+ Mage::throwException($this->_helper->__('Invalid recommendation type.'));
362
+ }
363
+
364
+ if ($this->_helper->getDebugMode()) {
365
+ $this->_helper->getLogger($params);
366
+ }
367
+
368
+ $userId = $this->_getCustomerId();
369
+ $cookieId = $this->_gravityCookie;
370
+ $recommendationContext = new GravityRecommendationContext();
371
+ $recommendationContext->scenarioId = $params['type'];
372
+
373
+ if (isset($params['limit']) && $params['limit']) {
374
+ $recommendationContext->numberLimit = $params['limit'];
375
+ } else {
376
+ $recommendationContext->numberLimit = 5;
377
+ }
378
+
379
+ $storeValue = new GravityNameValue('storeId', $this->_storeId);
380
+ $recommendationContext->nameValues = array($storeValue);
381
+
382
+ if (isset($params['itemId']) && $params['itemId']) {
383
+ $pageItemId = new GravityNameValue('currentItemId', $params['itemId']);
384
+ $recommendationContext->nameValues = array_merge(array($pageItemId), $recommendationContext->nameValues);
385
+ }
386
+
387
+ if (isset($params['itemsInCart']) && is_array($params['itemsInCart']) && $params['itemsInCart']) {
388
+ foreach ($params['itemsInCart'] as $itemId) {
389
+ $itemId = new GravityNameValue('cartItemId', $itemId);
390
+ $recommendationContext->nameValues = array_merge(array($itemId), $recommendationContext->nameValues);
391
+ }
392
+ }
393
+
394
+ if (isset($params['filters']) && is_array($params['filters']) && $params['filters']) {
395
+ foreach ($params['filters'] as $key => $filter) {
396
+ $nameValue = new GravityNameValue($key, $filter);
397
+ $recommendationContext->nameValues = array_merge(array($nameValue), $recommendationContext->nameValues);
398
+ }
399
+ }
400
+
401
+ if (isset($params['keywords']) && is_array($params['keywords']) && $params['keywords']) {
402
+ foreach ($params['keywords'] as $key => $filter) {
403
+ $nameValue = new GravityNameValue($key, $filter);
404
+ $recommendationContext->nameValues = array_merge(array($nameValue), $recommendationContext->nameValues);
405
+ }
406
+ }
407
+
408
+ if ($this->_canDebugLog) {
409
+ $this->_helper->getLogger($recommendationContext->nameValues);
410
+ }
411
+
412
+ $recommendationContext->recommendationTime = time();
413
+
414
+ $itemRecommendation = null;
415
+ try {
416
+
417
+ $itemRecommendation = $client->getItemRecommendation($userId, $cookieId, $recommendationContext);
418
+
419
+ return $itemRecommendation;
420
+
421
+ } catch (GravityException $e) {
422
+
423
+ $this->_helper->getLogger($this->_helper->__('Error happened by getting the item recommendation!'));
424
+ $this->_helper->getLogger($e->getMessage());
425
+ $this->_helper->getLogger($e->faultInfo);
426
+
427
+ }
428
+ }
429
+
430
+ /**
431
+ * Get recommendation
432
+ *
433
+ * @param GravityClient $client client
434
+ * @param array $params parameters
435
+ * @throws Mage_Core_Exception
436
+ * @return object
437
+ */
438
+ protected function _getBulkRecommendationItems($client, $params)
439
+ {
440
+ if ($this->_helper->getDebugMode()) {
441
+ $this->_helper->getLogger($params);
442
+ }
443
+
444
+ $recommendationContextArray = array();
445
+ $userId = $this->_getCustomerId();
446
+ $cookieId = $this->_gravityCookie;
447
+
448
+ $i = 0;
449
+ foreach ($params as $param) {
450
+
451
+ if (!isset($param['type'])) {
452
+ Mage::throwException($this->_helper->__('Invalid recommendation type.'));
453
+ }
454
+
455
+ $recommendationContext = new GravityRecommendationContext();
456
+ $recommendationContext->scenarioId = $param['type'];
457
+
458
+ if (isset($param['limit']) && $param['limit']) {
459
+ $recommendationContext->numberLimit = $param['limit'];
460
+ } else {
461
+ $recommendationContext->numberLimit = 5;
462
+ }
463
+
464
+ $storeValue = new GravityNameValue('storeId', $this->_storeId);
465
+ $recommendationContext->nameValues = array($storeValue);
466
+
467
+ if (isset($param['itemId']) && $param['itemId']) {
468
+ $pageItemId = new GravityNameValue('currentItemId', $param['itemId']);
469
+ $recommendationContext->nameValues = array_merge(array($pageItemId), $recommendationContext->nameValues);
470
+ }
471
+
472
+ $recommendationContext->recommendationTime = time();
473
+
474
+ $recommendationContextArray[$i] = $recommendationContext;
475
+ $recommendationContext = null;
476
+ $i++;
477
+ }
478
+
479
+ if ($this->_canDebugLog) {
480
+ $this->_helper->getLogger($recommendationContextArray);
481
+ }
482
+
483
+ $itemRecommendations = null;
484
+ try {
485
+
486
+ $itemRecommendations = $client->getItemRecommendationBulk($userId, $cookieId, $recommendationContextArray);
487
+
488
+ return $itemRecommendations;
489
+
490
+ } catch (GravityException $e) {
491
+
492
+ $this->_helper->getLogger($this->_helper->__('Error happened by getting the item recommendation!'));
493
+ $this->_helper->getLogger($e->getMessage());
494
+ $this->_helper->getLogger($e->faultInfo);
495
+
496
+ }
497
+ }
498
+
499
+ /**
500
+ * Send update
501
+ *
502
+ * @param GravityClient $client client
503
+ * @param array $params parameters
504
+ * @throws Mage_Core_Exception
505
+ * @return object
506
+ */
507
+ protected function _sendUpdate($client, $params)
508
+ {
509
+ if (!isset($params['type'])) {
510
+ Mage::throwException($this->_helper->__('Invalid recommendation type.'));
511
+ }
512
+
513
+ try {
514
+ $result = '';
515
+ switch ($params['type']) {
516
+ case self::EVENT_TYPE_CUSTOMER_UPDATE:
517
+ if (isset($params['userid']) && $params['userid']) {
518
+ $user = new GravityUser();
519
+ $user->userId = $params['userid'];
520
+ $user->hidden = false;
521
+
522
+ if ($this->_canDebugLog) {
523
+ $this->_helper->getLogger('userId: ' . $params['userid']);
524
+ }
525
+
526
+ unset($params['type']);
527
+ unset($params['userid']);
528
+ foreach ($params as $attribute => $value) {
529
+ if ($value) {
530
+ $user->nameValues[] = new GravityNameValue($attribute, $value);
531
+ }
532
+ }
533
+ $result = $client->addUser($user, true);
534
+
535
+ } else {
536
+ Mage::throwException($this->_helper->__('Invalid ' . $params['type'] . ' parameters'));
537
+ }
538
+ break;
539
+ case self::EVENT_TYPE_PRODUCT_UPDATE:
540
+ if (isset($params['itemid']) && isset($params['title']) && $params['itemid'] && $params['title']) {
541
+ $stores = Mage::app()->getStores();
542
+ $item = new GravityItem();
543
+ $item->itemId = $params['itemid'];
544
+ if ($params['storeId'] == 1) {
545
+ $item->title = $params['title'];
546
+ }
547
+ $item->hidden = $params['hidden'];
548
+ if ($this->_canDebugLog) {
549
+ $this->_helper->getLogger('itemId: ' . $params['itemid']);
550
+ }
551
+
552
+ unset($params['type']);
553
+ unset($params['itemid']);
554
+ unset($params['hidden']);
555
+ //$item->nameValues[] = new GravityNameValue("log", "".var_export($params,true));
556
+ foreach ($params as $attribute => $value) {
557
+ if ($value) {
558
+ //$item->nameValues[] = new GravityNameValue($attribute, $value);
559
+ //foreach ($stores as $store) {
560
+ if ($params['storeId'] != 0) {
561
+ $item->nameValues[] = new GravityNameValue($attribute."_".$params['storeId'], $value);
562
+ } else {
563
+ $item->nameValues[] = new GravityNameValue($attribute, $value);
564
+ }
565
+ }
566
+ }
567
+ $isAsync = true;
568
+ $result = $client->updateItem($item, $isAsync);
569
+
570
+ } else {
571
+ Mage::throwException($this->_helper->__('Invalid ' . $params['type'] . ' parameters'));
572
+ }
573
+ break;
574
+ default:
575
+ return false;
576
+ }
577
+
578
+ return $result;
579
+
580
+ } catch (GravityException $e) {
581
+
582
+ $this->_helper->getLogger($this->_helper->__('Error happened by adding user!'));
583
+ $this->_helper->getLogger($e->getMessage());
584
+ $this->_helper->getLogger($e->faultInfo);
585
+
586
+ }
587
+ }
588
+
589
+ /**
590
+ * Validate result
591
+ *
592
+ * @param stdClass $result result
593
+ * @param bool $isBulk bulk recommendation
594
+ * @return null|string|array
595
+ */
596
+ protected function _validateResult($result, $isBulk = false)
597
+ {
598
+ $answer = array();
599
+
600
+ if ($isBulk && is_array($result)) {
601
+
602
+ foreach ($result as $_result) {
603
+
604
+ if (!empty($_result->itemIds) && $_result instanceof stdClass) {
605
+ $answer[$_result->recommendationId] = $_result->itemIds;
606
+ }
607
+
608
+ }
609
+
610
+ return $answer;
611
+
612
+ } elseif ($result && $result instanceof stdClass) {
613
+
614
+ if (!empty($result->itemIds)) {
615
+ $answer[$result->recommendationId] = $result->itemIds;
616
+ }
617
+
618
+ return $answer;
619
+
620
+ } elseif ($result && is_string($result)) {
621
+
622
+ return $result;
623
+
624
+ }
625
+
626
+ return null;
627
+ }
628
+
629
+ /**
630
+ * Init Gravity Client
631
+ *
632
+ * @return GravityClient object
633
+ */
634
+ protected function _init()
635
+ {
636
+ $config = new GravityClientConfig();
637
+ $config->remoteUrl = $this->_getApiUrl();
638
+ $config->user = $this->_helper->getApiUser();
639
+ $config->password = $this->_helper->getApiPassword();
640
+ return new GravityClient($config);
641
+ }
642
+
643
+ /**
644
+ * Get current customer id
645
+ *
646
+ * @return mixed
647
+ */
648
+ protected function _getCustomerId()
649
+ {
650
+ return Mage::getSingleton('customer/session')->getCustomer()->getId();
651
+ }
652
+
653
+ /**
654
+ * Get API URL
655
+ *
656
+ * @param integer|string|Mage_Core_Model_Store $store store
657
+ * @return boolean
658
+ */
659
+ private function _getApiUrl($store = null)
660
+ {
661
+ return Mage::getStoreConfig(self::XML_PATH_API_URL, $store);
662
+ }
663
+
664
+ /**
665
+ * Get Gravity cookie
666
+ *
667
+ * @return string
668
+ */
669
+ private function _getGravityCookie()
670
+ {
671
+ if (!$this->_gravityCookie) {
672
+ $this->_gravityCookie = Mage::getModel('core/cookie')->get(self::GRAVITY_COOKIE_NAME);
673
+ }
674
+
675
+ return $this->_gravityCookie;
676
+ }
677
+ }
app/code/community/Me/Gravity/etc/adminhtml.xml CHANGED
@@ -1,32 +1,32 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @category Me
5
- * @package Me_Gravity
6
- * @author Attila Sági <sagi.attila@magevolve.com>
7
- * @copyright 2015 Magevolve Ltd. (http://magevolve.com)
8
- * @license http://magevolve.com/terms-and-conditions Magevolve Ltd. License
9
- * @link http://magevolve.com
10
- */
11
- -->
12
- <config>
13
- <acl>
14
- <resources>
15
- <admin>
16
- <children>
17
- <system>
18
- <children>
19
- <config>
20
- <children>
21
- <gravity translate="title" module="me_gravity">
22
- <title>Magevolve Gravity Reco Extension</title>
23
- </gravity>
24
- </children>
25
- </config>
26
- </children>
27
- </system>
28
- </children>
29
- </admin>
30
- </resources>
31
- </acl>
32
  </config>
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Me
5
+ * @package Me_Gravity
6
+ * @author Attila Sági <sagi.attila@magevolve.com>
7
+ * @copyright 2015 Magevolve Ltd. (http://magevolve.com)
8
+ * @license http://magevolve.com/terms-and-conditions Magevolve Ltd. License
9
+ * @link http://magevolve.com
10
+ */
11
+ -->
12
+ <config>
13
+ <acl>
14
+ <resources>
15
+ <admin>
16
+ <children>
17
+ <system>
18
+ <children>
19
+ <config>
20
+ <children>
21
+ <gravity translate="title" module="me_gravity">
22
+ <title>Magevolve Gravity Reco Extension</title>
23
+ </gravity>
24
+ </children>
25
+ </config>
26
+ </children>
27
+ </system>
28
+ </children>
29
+ </admin>
30
+ </resources>
31
+ </acl>
32
  </config>
app/code/community/Me/Gravity/etc/config.xml CHANGED
@@ -1,257 +1,257 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @category Me
5
- * @package Me_Gravity
6
- * @author Attila Sági <sagi.attila@magevolve.com>
7
- * @copyright 2015 Magevolve Ltd. (http://magevolve.com)
8
- * @license http://magevolve.com/terms-and-conditions Magevolve Ltd. License
9
- * @link http://magevolve.com
10
- */
11
- -->
12
- <config>
13
- <modules>
14
- <Me_Gravity>
15
- <version>1.0.2.1</version>
16
- </Me_Gravity>
17
- </modules>
18
- <global>
19
- <models>
20
- <me_gravity>
21
- <class>Me_Gravity_Model</class>
22
- <resourceModel>gravity_resource</resourceModel>
23
- </me_gravity>
24
- </models>
25
- <helpers>
26
- <me_gravity>
27
- <class>Me_Gravity_Helper</class>
28
- </me_gravity>
29
- </helpers>
30
- <blocks>
31
- <me_gravity>
32
- <class>Me_Gravity_Block</class>
33
- </me_gravity>
34
- </blocks>
35
- </global>
36
- <frontend>
37
- <layout>
38
- <updates>
39
- <me_gravity>
40
- <file>me/gravity.xml</file>
41
- </me_gravity>
42
- </updates>
43
- </layout>
44
- <events>
45
- <controller_action_layout_generate_blocks_after>
46
- <observers>
47
- <me_gravity_set_handle>
48
- <class>me_gravity/observer</class>
49
- <method>setGravityProductBlock</method>
50
- </me_gravity_set_handle>
51
- </observers>
52
- </controller_action_layout_generate_blocks_after>
53
- <sales_quote_remove_item>
54
- <observers>
55
- <me_gravity_remove_from_cart_after>
56
- <class>me_gravity/observer</class>
57
- <method>gravityRemoveFromCart</method>
58
- </me_gravity_remove_from_cart_after>
59
- </observers>
60
- </sales_quote_remove_item>
61
- <checkout_cart_product_add_after>
62
- <observers>
63
- <me_gravity_add_to_cart_after>
64
- <class>me_gravity/observer</class>
65
- <method>gravityAddToCart</method>
66
- </me_gravity_add_to_cart_after>
67
- </observers>
68
- </checkout_cart_product_add_after>
69
- <checkout_cart_update_items_before>
70
- <observers>
71
- <me_gravity_update_cart_after>
72
- <class>me_gravity/observer</class>
73
- <method>gravityUpdateCart</method>
74
- </me_gravity_update_cart_after>
75
- </observers>
76
- </checkout_cart_update_items_before>
77
- <sales_order_place_after>
78
- <observers>
79
- <me_gravity_order_place_after>
80
- <class>me_gravity/observer</class>
81
- <method>gravitySendBuy</method>
82
- </me_gravity_order_place_after>
83
- </observers>
84
- </sales_order_place_after>
85
- <customer_register_success>
86
- <observers>
87
- <me_gravity_customer_register_after>
88
- <class>me_gravity/observer</class>
89
- <method>gravityCustomerRegistration</method>
90
- </me_gravity_customer_register_after>
91
- </observers>
92
- </customer_register_success>
93
- </events>
94
- </frontend>
95
- <admin>
96
- <routers>
97
- <adminhtml>
98
- <args>
99
- <modules>
100
- <Me_Gravity before="Mage_Adminhtml">Me_Gravity_Adminhtml</Me_Gravity>
101
- </modules>
102
- </args>
103
- </adminhtml>
104
- </routers>
105
- </admin>
106
- <adminhtml>
107
- <layout>
108
- <updates>
109
- <me_gravity>
110
- <file>me/gravity.xml</file>
111
- </me_gravity>
112
- </updates>
113
- </layout>
114
- <translate>
115
- <modules>
116
- <Me_Gravity>
117
- <files>
118
- <default>Me_Gravity.csv</default>
119
- </files>
120
- </Me_Gravity>
121
- </modules>
122
- </translate>
123
- <events>
124
- <customer_save_after>
125
- <observers>
126
- <me_gravity_customer_save_after>
127
- <class>me_gravity/observer</class>
128
- <method>gravityUserUpdate</method>
129
- </me_gravity_customer_save_after>
130
- </observers>
131
- </customer_save_after>
132
- <catalog_product_save_after>
133
- <observers>
134
- <me_gravity_product_save_after>
135
- <class>me_gravity/observer</class>
136
- <method>gravityProductUpdate</method>
137
- </me_gravity_product_save_after>
138
- </observers>
139
- </catalog_product_save_after>
140
- </events>
141
- </adminhtml>
142
- <crontab>
143
- <jobs>
144
- <me_gravity_catalog_generate>
145
- <run>
146
- <model>me_gravity/observer::scheduledExport</model>
147
- </run>
148
- </me_gravity_catalog_generate>
149
- </jobs>
150
- </crontab>
151
- <default>
152
- <gravity>
153
- <config>
154
- <enabled>0</enabled>
155
- <preview>1</preview>
156
- <enabled_js>0</enabled_js>
157
- <custom_js><![CDATA[
158
- <script>
159
- (function(g,r,a,v,i,t,y){g[a]=g[a]||[],y=r.createElement(v),g=r.getElementsByTagName(v)[0];y.async=1;
160
- y.src='//'+i+'/js/'+t+'/gr_reco5.min.js';g.parentNode.insertBefore(y,g);y=r.createElement(v),y.async=1;
161
- y.src='//'+i+'/grrec-'+t+'-war/JSServlet4?cc=test';g.parentNode.insertBefore(y,g);})
162
- (window, document, '_gravity','script', 'magento-ams.gravityrd-services.com', 'magento');
163
- </script>
164
- ]]></custom_js>
165
- <template>0</template>
166
- <bulk>1</bulk>
167
- </config>
168
- <export>
169
- <catalog_path>gravity_reco/</catalog_path>
170
- <all>0</all>
171
- <max>1000</max>
172
- <description_enabled>0</description_enabled>
173
- <only_salable>1</only_salable>
174
- <status>0</status>
175
- <catalog_cron>0</catalog_cron>
176
- <catalog_cron_time>02,30,00</catalog_cron_time>
177
- </export>
178
- <cutomer_export>
179
- <all>0</all>
180
- <max>1000</max>
181
- </cutomer_export>
182
- <general_display>
183
- <best_box>0</best_box>
184
- <best_box_layout>content</best_box_layout>
185
- <best_box_title>Recommended for you</best_box_title>
186
- <best_box_limit>4</best_box_limit>
187
- <best_box_columns>4</best_box_columns>
188
- <history_box>0</history_box>
189
- <history_box_layout>content</history_box_layout>
190
- <history_box_title>You viewed</history_box_title>
191
- <history_box_limit>4</history_box_limit>
192
- <history_box_columns>4</history_box_columns>
193
- <others_box>0</others_box>
194
- <others_box_layout>content</others_box_layout>
195
- <others_box_title>Others are looking at right now</others_box_title>
196
- <others_box_limit>4</others_box_limit>
197
- <others_box_columns>4</others_box_columns>
198
- <popular_box>0</popular_box>
199
- <popular_box_layout>content</popular_box_layout>
200
- <popular_box_title>Top products</popular_box_title>
201
- <popular_box_limit>4</popular_box_limit>
202
- <popular_box_columns>4</popular_box_columns>
203
- </general_display>
204
- <product_display>
205
- <similar_box>0</similar_box>
206
- <similar_box_layout>content</similar_box_layout>
207
- <similar_box_title>You might also like</similar_box_title>
208
- <similar_box_limit>4</similar_box_limit>
209
- <similar_box_columns>4</similar_box_columns>
210
- <personal_box>0</personal_box>
211
- <personal_box_layout>content</personal_box_layout>
212
- <personal_box_title>Recommended for you</personal_box_title>
213
- <personal_box_limit>4</personal_box_limit>
214
- <personal_box_columns>4</personal_box_columns>
215
- <accessories_box>0</accessories_box>
216
- <accessories_box_layout>content</accessories_box_layout>
217
- <accessories_box_title>You might also need</accessories_box_title>
218
- <accessories_box_limit>4</accessories_box_limit>
219
- <accessories_box_columns>4</accessories_box_columns>
220
- </product_display>
221
- <category_display>
222
- <personal_box>0</personal_box>
223
- <personal_box_layout>content</personal_box_layout>
224
- <personal_box_title>Recommended for you</personal_box_title>
225
- <personal_box_limit>4</personal_box_limit>
226
- <personal_box_columns>4</personal_box_columns>
227
- <top_box>0</top_box>
228
- <top_box_layout>content</top_box_layout>
229
- <top_box_title>Top Products</top_box_title>
230
- <top_box_limit>4</top_box_limit>
231
- <top_box_columns>4</top_box_columns>
232
- </category_display>
233
- <search_display>
234
- <search_box>0</search_box>
235
- <search_box_layout>content</search_box_layout>
236
- <search_box_title>Recommended for you</search_box_title>
237
- <search_box_limit>4</search_box_limit>
238
- <search_box_columns>4</search_box_columns>
239
- </search_display>
240
- <cart_display>
241
- <cart_box>0</cart_box>
242
- <cart_box_layout>content</cart_box_layout>
243
- <cart_box_title>Others also bought</cart_box_title>
244
- <cart_box_limit>4</cart_box_limit>
245
- <cart_box_columns>4</cart_box_columns>
246
- </cart_display>
247
- <sync>
248
- <customer_update>0</customer_update>
249
- <product_update>0</product_update>
250
- <customer_registration>0</customer_registration>
251
- </sync>
252
- <debug>
253
- <log>0</log>
254
- </debug>
255
- </gravity>
256
- </default>
257
  </config>
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Me
5
+ * @package Me_Gravity
6
+ * @author Attila Sági <sagi.attila@magevolve.com>
7
+ * @copyright 2015 Magevolve Ltd. (http://magevolve.com)
8
+ * @license http://magevolve.com/terms-and-conditions Magevolve Ltd. License
9
+ * @link http://magevolve.com
10
+ */
11
+ -->
12
+ <config>
13
+ <modules>
14
+ <Me_Gravity>
15
+ <version>1.0.2.1</version>
16
+ </Me_Gravity>
17
+ </modules>
18
+ <global>
19
+ <models>
20
+ <me_gravity>
21
+ <class>Me_Gravity_Model</class>
22
+ <resourceModel>gravity_resource</resourceModel>
23
+ </me_gravity>
24
+ </models>
25
+ <helpers>
26
+ <me_gravity>
27
+ <class>Me_Gravity_Helper</class>
28
+ </me_gravity>
29
+ </helpers>
30
+ <blocks>
31
+ <me_gravity>
32
+ <class>Me_Gravity_Block</class>
33
+ </me_gravity>
34
+ </blocks>
35
+ </global>
36
+ <frontend>
37
+ <layout>
38
+ <updates>
39
+ <me_gravity>
40
+ <file>me/gravity.xml</file>
41
+ </me_gravity>
42
+ </updates>
43
+ </layout>
44
+ <events>
45
+ <controller_action_layout_generate_blocks_after>
46
+ <observers>
47
+ <me_gravity_set_handle>
48
+ <class>me_gravity/observer</class>
49
+ <method>setGravityProductBlock</method>
50
+ </me_gravity_set_handle>
51
+ </observers>
52
+ </controller_action_layout_generate_blocks_after>
53
+ <sales_quote_remove_item>
54
+ <observers>
55
+ <me_gravity_remove_from_cart_after>
56
+ <class>me_gravity/observer</class>
57
+ <method>gravityRemoveFromCart</method>
58
+ </me_gravity_remove_from_cart_after>
59
+ </observers>
60
+ </sales_quote_remove_item>
61
+ <checkout_cart_product_add_after>
62
+ <observers>
63
+ <me_gravity_add_to_cart_after>
64
+ <class>me_gravity/observer</class>
65
+ <method>gravityAddToCart</method>
66
+ </me_gravity_add_to_cart_after>
67
+ </observers>
68
+ </checkout_cart_product_add_after>
69
+ <checkout_cart_update_items_before>
70
+ <observers>
71
+ <me_gravity_update_cart_after>
72
+ <class>me_gravity/observer</class>
73
+ <method>gravityUpdateCart</method>
74
+ </me_gravity_update_cart_after>
75
+ </observers>
76
+ </checkout_cart_update_items_before>
77
+ <sales_order_place_after>
78
+ <observers>
79
+ <me_gravity_order_place_after>
80
+ <class>me_gravity/observer</class>
81
+ <method>gravitySendBuy</method>
82
+ </me_gravity_order_place_after>
83
+ </observers>
84
+ </sales_order_place_after>
85
+ <customer_register_success>
86
+ <observers>
87
+ <me_gravity_customer_register_after>
88
+ <class>me_gravity/observer</class>
89
+ <method>gravityCustomerRegistration</method>
90
+ </me_gravity_customer_register_after>
91
+ </observers>
92
+ </customer_register_success>
93
+ </events>
94
+ </frontend>
95
+ <admin>
96
+ <routers>
97
+ <adminhtml>
98
+ <args>
99
+ <modules>
100
+ <Me_Gravity before="Mage_Adminhtml">Me_Gravity_Adminhtml</Me_Gravity>
101
+ </modules>
102
+ </args>
103
+ </adminhtml>
104
+ </routers>
105
+ </admin>
106
+ <adminhtml>
107
+ <layout>
108
+ <updates>
109
+ <me_gravity>
110
+ <file>me/gravity.xml</file>
111
+ </me_gravity>
112
+ </updates>
113
+ </layout>
114
+ <translate>
115
+ <modules>
116
+ <Me_Gravity>
117
+ <files>
118
+ <default>Me_Gravity.csv</default>
119
+ </files>
120
+ </Me_Gravity>
121
+ </modules>
122
+ </translate>
123
+ <events>
124
+ <customer_save_after>
125
+ <observers>
126
+ <me_gravity_customer_save_after>
127
+ <class>me_gravity/observer</class>
128
+ <method>gravityUserUpdate</method>
129
+ </me_gravity_customer_save_after>
130
+ </observers>
131
+ </customer_save_after>
132
+ <catalog_product_save_after>
133
+ <observers>
134
+ <me_gravity_product_save_after>
135
+ <class>me_gravity/observer</class>
136
+ <method>gravityProductUpdate</method>
137
+ </me_gravity_product_save_after>
138
+ </observers>
139
+ </catalog_product_save_after>
140
+ </events>
141
+ </adminhtml>
142
+ <crontab>
143
+ <jobs>
144
+ <me_gravity_catalog_generate>
145
+ <run>
146
+ <model>me_gravity/observer::scheduledExport</model>
147
+ </run>
148
+ </me_gravity_catalog_generate>
149
+ </jobs>
150
+ </crontab>
151
+ <default>
152
+ <gravity>
153
+ <config>
154
+ <enabled>0</enabled>
155
+ <preview>1</preview>
156
+ <enabled_js>0</enabled_js>
157
+ <custom_js><![CDATA[
158
+ <script>
159
+ (function(g,r,a,v,i,t,y){g[a]=g[a]||[],y=r.createElement(v),g=r.getElementsByTagName(v)[0];y.async=1;
160
+ y.src='//'+i+'/js/'+t+'/gr_reco5.min.js';g.parentNode.insertBefore(y,g);y=r.createElement(v),y.async=1;
161
+ y.src='//'+i+'/grrec-'+t+'-war/JSServlet4?cc=test';g.parentNode.insertBefore(y,g);})
162
+ (window, document, '_gravity','script', 'magento-ams.gravityrd-services.com', 'magento');
163
+ </script>
164
+ ]]></custom_js>
165
+ <template>0</template>
166
+ <bulk>1</bulk>
167
+ </config>
168
+ <export>
169
+ <catalog_path>yusp/</catalog_path>
170
+ <all>0</all>
171
+ <max>1000</max>
172
+ <description_enabled>0</description_enabled>
173
+ <only_salable>1</only_salable>
174
+ <status>0</status>
175
+ <catalog_cron>0</catalog_cron>
176
+ <catalog_cron_time>02,30,00</catalog_cron_time>
177
+ </export>
178
+ <cutomer_export>
179
+ <all>0</all>
180
+ <max>1000</max>
181
+ </cutomer_export>
182
+ <general_display>
183
+ <best_box>0</best_box>
184
+ <best_box_layout>content</best_box_layout>
185
+ <best_box_title>Recommended for you</best_box_title>
186
+ <best_box_limit>4</best_box_limit>
187
+ <best_box_columns>4</best_box_columns>
188
+ <history_box>0</history_box>
189
+ <history_box_layout>content</history_box_layout>
190
+ <history_box_title>You viewed</history_box_title>
191
+ <history_box_limit>4</history_box_limit>
192
+ <history_box_columns>4</history_box_columns>
193
+ <others_box>0</others_box>
194
+ <others_box_layout>content</others_box_layout>
195
+ <others_box_title>Others are looking at right now</others_box_title>
196
+ <others_box_limit>4</others_box_limit>
197
+ <others_box_columns>4</others_box_columns>
198
+ <popular_box>0</popular_box>
199
+ <popular_box_layout>content</popular_box_layout>
200
+ <popular_box_title>Top products</popular_box_title>
201
+ <popular_box_limit>4</popular_box_limit>
202
+ <popular_box_columns>4</popular_box_columns>
203
+ </general_display>
204
+ <product_display>
205
+ <similar_box>0</similar_box>
206
+ <similar_box_layout>content</similar_box_layout>
207
+ <similar_box_title>You might also like</similar_box_title>
208
+ <similar_box_limit>4</similar_box_limit>
209
+ <similar_box_columns>4</similar_box_columns>
210
+ <personal_box>0</personal_box>
211
+ <personal_box_layout>content</personal_box_layout>
212
+ <personal_box_title>Recommended for you</personal_box_title>
213
+ <personal_box_limit>4</personal_box_limit>
214
+ <personal_box_columns>4</personal_box_columns>
215
+ <accessories_box>0</accessories_box>
216
+ <accessories_box_layout>content</accessories_box_layout>
217
+ <accessories_box_title>You might also need</accessories_box_title>
218
+ <accessories_box_limit>4</accessories_box_limit>
219
+ <accessories_box_columns>4</accessories_box_columns>
220
+ </product_display>
221
+ <category_display>
222
+ <personal_box>0</personal_box>
223
+ <personal_box_layout>content</personal_box_layout>
224
+ <personal_box_title>Recommended for you</personal_box_title>
225
+ <personal_box_limit>4</personal_box_limit>
226
+ <personal_box_columns>4</personal_box_columns>
227
+ <top_box>0</top_box>
228
+ <top_box_layout>content</top_box_layout>
229
+ <top_box_title>Top Products</top_box_title>
230
+ <top_box_limit>4</top_box_limit>
231
+ <top_box_columns>4</top_box_columns>
232
+ </category_display>
233
+ <search_display>
234
+ <search_box>0</search_box>
235
+ <search_box_layout>content</search_box_layout>
236
+ <search_box_title>Recommended for you</search_box_title>
237
+ <search_box_limit>4</search_box_limit>
238
+ <search_box_columns>4</search_box_columns>
239
+ </search_display>
240
+ <cart_display>
241
+ <cart_box>0</cart_box>
242
+ <cart_box_layout>content</cart_box_layout>
243
+ <cart_box_title>Others also bought</cart_box_title>
244
+ <cart_box_limit>4</cart_box_limit>
245
+ <cart_box_columns>4</cart_box_columns>
246
+ </cart_display>
247
+ <sync>
248
+ <customer_update>0</customer_update>
249
+ <product_update>0</product_update>
250
+ <customer_registration>0</customer_registration>
251
+ </sync>
252
+ <debug>
253
+ <log>0</log>
254
+ </debug>
255
+ </gravity>
256
+ </default>
257
  </config>
app/code/community/Me/Gravity/etc/system.xml CHANGED
@@ -1,1140 +1,1145 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @category Me
5
- * @package Me_Gravity
6
- * @author Attila Sági <sagi.attila@magevolve.com>
7
- * @copyright 2015 Magevolve Ltd. (http://magevolve.com)
8
- * @license http://magevolve.com/terms-and-conditions Magevolve Ltd. License
9
- * @link http://magevolve.com
10
- */
11
- -->
12
- <config>
13
- <tabs>
14
- <me_tab translate="label" module="me_gravity">
15
- <label>Recommendations</label>
16
- <sort_order>500</sort_order>
17
- </me_tab>
18
- </tabs>
19
- <sections>
20
- <gravity>
21
- <class>separator-top</class>
22
- <label>Gravity Reco</label>
23
- <tab>me_tab</tab>
24
- <frontend_type>text</frontend_type>
25
- <sort_order>500</sort_order>
26
- <show_in_default>1</show_in_default>
27
- <show_in_website>1</show_in_website>
28
- <show_in_store>1</show_in_store>
29
- <groups>
30
- <config translate="label">
31
- <label>Settings</label>
32
- <frontend_type>text</frontend_type>
33
- <sort_order>10</sort_order>
34
- <show_in_default>1</show_in_default>
35
- <show_in_website>1</show_in_website>
36
- <show_in_store>1</show_in_store>
37
- <fields>
38
- <enabled translate="label">
39
- <label>Enable Extension</label>
40
- <frontend_type>select</frontend_type>
41
- <source_model>adminhtml/system_config_source_yesno</source_model>
42
- <sort_order>10</sort_order>
43
- <show_in_default>1</show_in_default>
44
- <show_in_website>1</show_in_website>
45
- <show_in_store>1</show_in_store>
46
- <comment>Enable extension.</comment>
47
- </enabled>
48
- <preview translate="label">
49
- <label>Enable Preview Mode</label>
50
- <frontend_type>select</frontend_type>
51
- <source_model>adminhtml/system_config_source_yesno</source_model>
52
- <sort_order>20</sort_order>
53
- <show_in_default>1</show_in_default>
54
- <show_in_website>1</show_in_website>
55
- <show_in_store>1</show_in_store>
56
- <comment>Enabled Preview mode. In this case recommendation boxes are only visible if there is a special ?gr_reco_test=true parameter in the url. E.g.: http://example.com/example-product.html?gr_reco_test=true</comment>
57
- </preview>
58
- <api_user translate="label">
59
- <label>API Username</label>
60
- <frontend_type>text</frontend_type>
61
- <sort_order>30</sort_order>
62
- <show_in_default>1</show_in_default>
63
- <show_in_website>1</show_in_website>
64
- <show_in_store>1</show_in_store>
65
- <comment>API user name in Gravity system.</comment>
66
- </api_user>
67
- <api_password translate="label">
68
- <label>API Password</label>
69
- <frontend_type>password</frontend_type>
70
- <sort_order>40</sort_order>
71
- <show_in_default>1</show_in_default>
72
- <show_in_website>1</show_in_website>
73
- <show_in_store>1</show_in_store>
74
- <comment>API password in Gravity system.</comment>
75
- </api_password>
76
- <api_url translate="label">
77
- <label>API URL</label>
78
- <frontend_type>text</frontend_type>
79
- <sort_order>50</sort_order>
80
- <show_in_default>1</show_in_default>
81
- <show_in_website>1</show_in_website>
82
- <show_in_store>1</show_in_store>
83
- <comment>API communication URL.</comment>
84
- </api_url>
85
- <enabled_js translate="label">
86
- <label>Enable Custom Gravity Javascript</label>
87
- <frontend_type>select</frontend_type>
88
- <source_model>adminhtml/system_config_source_yesno</source_model>
89
- <sort_order>55</sort_order>
90
- <show_in_default>1</show_in_default>
91
- <show_in_website>1</show_in_website>
92
- <show_in_store>1</show_in_store>
93
- <comment>Please select YES, if you want to edit or customize the extension's main Gravity javascript.</comment>
94
- </enabled_js>
95
- <custom_js translate="label">
96
- <label>Custom Gravity Javascript</label>
97
- <frontend_type>textarea</frontend_type>
98
- <sort_order>56</sort_order>
99
- <show_in_default>1</show_in_default>
100
- <show_in_website>1</show_in_website>
101
- <show_in_store>1</show_in_store>
102
- <comment><![CDATA[<strong> Important!</strong> Here you can edit the main Gravity javascript. <strong>You have to replace</strong> the two occurrence of the "magento" string in your custom javascript with the API username above!]]></comment>
103
- <depends>
104
- <enabled_js>1</enabled_js>
105
- </depends>
106
- </custom_js>
107
- <test translate="label">
108
- <label>Test Connection</label>
109
- <frontend_type>button</frontend_type>
110
- <frontend_model>me_gravity/adminhtml_system_config_form_test</frontend_model>
111
- <sort_order>60</sort_order>
112
- <show_in_default>1</show_in_default>
113
- <show_in_website>1</show_in_website>
114
- <show_in_store>1</show_in_store>
115
- <comment>Press button to test connection.</comment>
116
- </test>
117
- <template translate="label">
118
- <label>Use Garvity Template</label>
119
- <frontend_type>select</frontend_type>
120
- <source_model>adminhtml/system_config_source_yesno</source_model>
121
- <sort_order>70</sort_order>
122
- <show_in_default>1</show_in_default>
123
- <show_in_website>1</show_in_website>
124
- <show_in_store>1</show_in_store>
125
- <comment>General display setting. If YES all boxes will use Gravity template.</comment>
126
- </template>
127
- <bulk translate="label">
128
- <label>Enable Bulk Recommendation</label>
129
- <frontend_type>select</frontend_type>
130
- <source_model>adminhtml/system_config_source_yesno</source_model>
131
- <sort_order>80</sort_order>
132
- <show_in_default>1</show_in_default>
133
- <show_in_website>1</show_in_website>
134
- <show_in_store>1</show_in_store>
135
- <comment>General recommendation setting. If YES bulk recommendation will be enabled.</comment>
136
- </bulk>
137
- </fields>
138
- </config>
139
- <export translate="label">
140
- <label>Export Products</label>
141
- <frontend_type>text</frontend_type>
142
- <sort_order>20</sort_order>
143
- <show_in_default>1</show_in_default>
144
- <show_in_website>0</show_in_website>
145
- <show_in_store>0</show_in_store>
146
- <fields>
147
- <catalog_path translate="label">
148
- <label>Catalog Export File Path</label>
149
- <frontend_type>text</frontend_type>
150
- <sort_order>10</sort_order>
151
- <show_in_default>1</show_in_default>
152
- <show_in_website>0</show_in_website>
153
- <show_in_store>0</show_in_store>
154
- <comment>Path where catalog export file will be saved. Example: "gravity_reco/" (path must be writeable)</comment>
155
- </catalog_path>
156
- <all translate="label">
157
- <label>Enable All Products Export</label>
158
- <frontend_type>select</frontend_type>
159
- <source_model>adminhtml/system_config_source_yesno</source_model>
160
- <sort_order>15</sort_order>
161
- <show_in_default>1</show_in_default>
162
- <show_in_website>0</show_in_website>
163
- <show_in_store>0</show_in_store>
164
- <comment>Enable all products to export. Otherwise please select NO and set the maximum number. Note: there can be performance impact during this operation.</comment>
165
- </all>
166
- <max translate="label">
167
- <label>Maximum Products Export</label>
168
- <frontend_type>text</frontend_type>
169
- <sort_order>20</sort_order>
170
- <show_in_default>1</show_in_default>
171
- <show_in_website>0</show_in_website>
172
- <show_in_store>0</show_in_store>
173
- <comment>The maximum number of products to be exported. This number must be between 1 and 1000.</comment>
174
- <validate>validate-number validate-number-range number-range-1-1000</validate>
175
- <depends><all>0</all></depends>
176
- </max>
177
- <description_enabled translate="label">
178
- <label>Enable Products Description in Export</label>
179
- <frontend_type>select</frontend_type>
180
- <source_model>adminhtml/system_config_source_yesno</source_model>
181
- <sort_order>25</sort_order>
182
- <show_in_default>1</show_in_default>
183
- <show_in_website>0</show_in_website>
184
- <show_in_store>0</show_in_store>
185
- <comment>Please select YES, if you want to add product's description attribute to the catalog export.</comment>
186
- </description_enabled>
187
- <additional translate="label">
188
- <label>Additional Attributes</label>
189
- <frontend_type>multiselect</frontend_type>
190
- <source_model>me_gravity/system_config_source_catalog_attributes</source_model>
191
- <sort_order>30</sort_order>
192
- <show_in_default>1</show_in_default>
193
- <show_in_website>0</show_in_website>
194
- <show_in_store>0</show_in_store>
195
- <comment>Select additional attributes for catalog export.</comment>
196
- </additional>
197
- <only_salable translate="label">
198
- <label>Only Salable</label>
199
- <frontend_type>select</frontend_type>
200
- <source_model>adminhtml/system_config_source_yesno</source_model>
201
- <sort_order>40</sort_order>
202
- <show_in_default>1</show_in_default>
203
- <show_in_website>0</show_in_website>
204
- <show_in_store>0</show_in_store>
205
- <comment>In this case only those products will be exported which quantity higher than zero(is in stock). If your store doesn't use stock management choose YES.</comment>
206
- </only_salable>
207
- <status translate="label">
208
- <label>Export Disabled Products</label>
209
- <frontend_type>select</frontend_type>
210
- <source_model>adminhtml/system_config_source_yesno</source_model>
211
- <sort_order>45</sort_order>
212
- <show_in_default>1</show_in_default>
213
- <show_in_website>0</show_in_website>
214
- <show_in_store>0</show_in_store>
215
- <comment>Please select YES, if you want to add products with disabled status to the catalog export.</comment>
216
- <depends>
217
- <only_salable>0</only_salable>
218
- </depends>
219
- </status>
220
- <catalog_cron translate="label">
221
- <label>Enable Scheduled Export</label>
222
- <frontend_type>select</frontend_type>
223
- <source_model>adminhtml/system_config_source_yesno</source_model>
224
- <backend_model>me_gravity/system_config_backend_catalog_cron</backend_model>
225
- <sort_order>50</sort_order>
226
- <show_in_default>1</show_in_default>
227
- <show_in_website>0</show_in_website>
228
- <show_in_store>0</show_in_store>
229
- <comment>Enable scheduled export job bby cron. Note: you must configure your server to run cron jobs.</comment>
230
- </catalog_cron>
231
- <catalog_cron_time translate="label">
232
- <label>Start Time</label>
233
- <frontend_type>time</frontend_type>
234
- <sort_order>60</sort_order>
235
- <show_in_default>1</show_in_default>
236
- <show_in_website>0</show_in_website>
237
- <show_in_store>0</show_in_store>
238
- <comment>Daily start time for automatic catalog export via cron job.</comment>
239
- <depends><catalog_cron>1</catalog_cron></depends>
240
- </catalog_cron_time>
241
- <catalog translate="label">
242
- <label>Export Product Catalog</label>
243
- <frontend_type>button</frontend_type>
244
- <frontend_model>me_gravity/adminhtml_system_config_form_catalog</frontend_model>
245
- <sort_order>70</sort_order>
246
- <show_in_default>1</show_in_default>
247
- <show_in_website>0</show_in_website>
248
- <show_in_store>0</show_in_store>
249
- <comment>This will export product catalog and save in xml file. Note: there can be performance impact during this operation.</comment>
250
- </catalog>
251
- </fields>
252
- </export>
253
- <cutomer_export translate="label">
254
- <label>Export Customers</label>
255
- <frontend_type>text</frontend_type>
256
- <sort_order>30</sort_order>
257
- <show_in_default>1</show_in_default>
258
- <show_in_website>1</show_in_website>
259
- <show_in_store>1</show_in_store>
260
- <fields>
261
- <all translate="label">
262
- <label>Enable All Customers Export</label>
263
- <frontend_type>select</frontend_type>
264
- <source_model>adminhtml/system_config_source_yesno</source_model>
265
- <sort_order>5</sort_order>
266
- <show_in_default>1</show_in_default>
267
- <show_in_website>1</show_in_website>
268
- <show_in_store>1</show_in_store>
269
- <comment>Enable all customer to export. Otherwise please select NO and set the maximum number. Note: there can be performance impact during this operation.</comment>
270
- </all>
271
- <max translate="label">
272
- <label>Maximum Customers Export</label>
273
- <frontend_type>text</frontend_type>
274
- <sort_order>10</sort_order>
275
- <show_in_default>1</show_in_default>
276
- <show_in_website>1</show_in_website>
277
- <show_in_store>1</show_in_store>
278
- <comment>The maximum number of customers to be exported. This number must be between 1 and 1000.</comment>
279
- <validate>validate-number validate-number-range number-range-1-1000</validate>
280
- <depends><all>0</all></depends>
281
- </max>
282
- <additional translate="label">
283
- <label>Additional Attributes</label>
284
- <frontend_type>multiselect</frontend_type>
285
- <source_model>me_gravity/system_config_source_customer_attributes</source_model>
286
- <sort_order>20</sort_order>
287
- <show_in_default>1</show_in_default>
288
- <show_in_website>1</show_in_website>
289
- <show_in_store>1</show_in_store>
290
- <comment>Select additional attributes for customer export.</comment>
291
- </additional>
292
- <customer translate="label">
293
- <label>Export Customers</label>
294
- <frontend_type>button</frontend_type>
295
- <frontend_model>me_gravity/adminhtml_system_config_form_customer</frontend_model>
296
- <sort_order>30</sort_order>
297
- <show_in_default>1</show_in_default>
298
- <show_in_website>1</show_in_website>
299
- <show_in_store>1</show_in_store>
300
- <comment>This will export customers. Note: there can be performance impact during this operation.</comment>
301
- </customer>
302
- </fields>
303
- </cutomer_export>
304
- <general_display translate="label">
305
- <label>General Pages Display</label>
306
- <frontend_type>text</frontend_type>
307
- <sort_order>40</sort_order>
308
- <show_in_default>1</show_in_default>
309
- <show_in_website>1</show_in_website>
310
- <show_in_store>1</show_in_store>
311
- <fields>
312
- <pages translate="label">
313
- <label>Enabled Pages</label>
314
- <frontend_type>multiselect</frontend_type>
315
- <source_model>me_gravity/system_config_source_layout_pages</source_model>
316
- <sort_order>1</sort_order>
317
- <show_in_default>1</show_in_default>
318
- <show_in_website>1</show_in_website>
319
- <show_in_store>1</show_in_store>
320
- <comment>Pages on general layout recommendation boxes enabled.</comment>
321
- </pages>
322
- <best_heading translate="label">
323
- <label>Personal Best Box (PERSONAL_BEST)</label>
324
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
325
- <sort_order>5</sort_order>
326
- <show_in_default>1</show_in_default>
327
- <show_in_website>1</show_in_website>
328
- <show_in_store>1</show_in_store>
329
- </best_heading>
330
- <best_box translate="label">
331
- <label>Enable Personal Best Box</label>
332
- <frontend_type>select</frontend_type>
333
- <source_model>adminhtml/system_config_source_yesno</source_model>
334
- <sort_order>10</sort_order>
335
- <show_in_default>1</show_in_default>
336
- <show_in_website>1</show_in_website>
337
- <show_in_store>1</show_in_store>
338
- <comment>Enable "Recommended for you" box on general page views.</comment>
339
- </best_box>
340
- <best_box_layout translate="label">
341
- <label>Personal Best Box Layout</label>
342
- <frontend_type>select</frontend_type>
343
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
344
- <sort_order>20</sort_order>
345
- <show_in_default>1</show_in_default>
346
- <show_in_website>1</show_in_website>
347
- <show_in_store>1</show_in_store>
348
- <comment>Select where "Recommended for you" box should be shown on general page views.</comment>
349
- <depends><best_box>1</best_box></depends>
350
- </best_box_layout>
351
- <best_box_title translate="label">
352
- <label>Personal Best Box Title</label>
353
- <frontend_type>text</frontend_type>
354
- <sort_order>30</sort_order>
355
- <show_in_default>1</show_in_default>
356
- <show_in_website>1</show_in_website>
357
- <show_in_store>1</show_in_store>
358
- <comment>"Recommended for you" box title on general page views.</comment>
359
- <depends><best_box>1</best_box></depends>
360
- </best_box_title>
361
- <best_box_limit translate="label">
362
- <label>Personal Best Box Product Count</label>
363
- <frontend_type>text</frontend_type>
364
- <sort_order>40</sort_order>
365
- <show_in_default>1</show_in_default>
366
- <show_in_website>1</show_in_website>
367
- <show_in_store>1</show_in_store>
368
- <comment>Number of items show in "Recommended for you" box on general page views. This number must be between 1 and 10.</comment>
369
- <validate>validate-number validate-number-range number-range-1-10</validate>
370
- <depends><best_box>1</best_box></depends>
371
- </best_box_limit>
372
- <best_box_columns translate="label">
373
- <label>Personal Best Box Columns</label>
374
- <frontend_type>text</frontend_type>
375
- <sort_order>50</sort_order>
376
- <show_in_default>1</show_in_default>
377
- <show_in_website>1</show_in_website>
378
- <show_in_store>1</show_in_store>
379
- <comment>Columns count in "Recommended for you" box on general page views. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
380
- <validate>validate-number validate-number-range number-range-1-6</validate>
381
- <depends>
382
- <best_box>1</best_box>
383
- <best_box_layout>content</best_box_layout>
384
- </depends>
385
- </best_box_columns>
386
- <history_heading translate="label">
387
- <label>History Box (PERSONAL_HISTORY)</label>
388
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
389
- <sort_order>55</sort_order>
390
- <show_in_default>1</show_in_default>
391
- <show_in_website>1</show_in_website>
392
- <show_in_store>1</show_in_store>
393
- </history_heading>
394
- <history_box translate="label">
395
- <label>Enable History Box</label>
396
- <frontend_type>select</frontend_type>
397
- <source_model>adminhtml/system_config_source_yesno</source_model>
398
- <sort_order>60</sort_order>
399
- <show_in_default>1</show_in_default>
400
- <show_in_website>1</show_in_website>
401
- <show_in_store>1</show_in_store>
402
- <comment>Enable "You viewed" box on general page views.</comment>
403
- </history_box>
404
- <history_box_layout translate="label">
405
- <label>History Box Layout</label>
406
- <frontend_type>select</frontend_type>
407
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
408
- <sort_order>70</sort_order>
409
- <show_in_default>1</show_in_default>
410
- <show_in_website>1</show_in_website>
411
- <show_in_store>1</show_in_store>
412
- <comment>Select where "You viewed" box should be shown on general page views.</comment>
413
- <depends><history_box>1</history_box></depends>
414
- </history_box_layout>
415
- <history_box_title translate="label">
416
- <label>History Box Title</label>
417
- <frontend_type>text</frontend_type>
418
- <sort_order>80</sort_order>
419
- <show_in_default>1</show_in_default>
420
- <show_in_website>1</show_in_website>
421
- <show_in_store>1</show_in_store>
422
- <comment>"You viewed" box title on general page views.</comment>
423
- <depends><history_box>1</history_box></depends>
424
- </history_box_title>
425
- <history_box_limit translate="label">
426
- <label>History Box Product Count</label>
427
- <frontend_type>text</frontend_type>
428
- <sort_order>90</sort_order>
429
- <show_in_default>1</show_in_default>
430
- <show_in_website>1</show_in_website>
431
- <show_in_store>1</show_in_store>
432
- <comment>Number of items show in "You viewed" box on general page views. This number must be between 1 and 10.</comment>
433
- <validate>validate-number validate-number-range number-range-1-10</validate>
434
- <depends><history_box>1</history_box></depends>
435
- </history_box_limit>
436
- <history_box_columns translate="label">
437
- <label>History Box Columns</label>
438
- <frontend_type>text</frontend_type>
439
- <sort_order>100</sort_order>
440
- <show_in_default>1</show_in_default>
441
- <show_in_website>1</show_in_website>
442
- <show_in_store>1</show_in_store>
443
- <comment>Columns count in "You viewed" box on general page views. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
444
- <validate>validate-number validate-number-range number-range-1-6</validate>
445
- <depends>
446
- <history_box>1</history_box>
447
- <history_box_layout>content</history_box_layout>
448
- </depends>
449
- </history_box_columns>
450
- <others_heading translate="label">
451
- <label>Currently Viewed Box (CURRENTLY_VIEWED)</label>
452
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
453
- <sort_order>105</sort_order>
454
- <show_in_default>1</show_in_default>
455
- <show_in_website>1</show_in_website>
456
- <show_in_store>1</show_in_store>
457
- </others_heading>
458
- <others_box translate="label">
459
- <label>Enable Currently Viewed Box</label>
460
- <frontend_type>select</frontend_type>
461
- <source_model>adminhtml/system_config_source_yesno</source_model>
462
- <sort_order>110</sort_order>
463
- <show_in_default>1</show_in_default>
464
- <show_in_website>1</show_in_website>
465
- <show_in_store>1</show_in_store>
466
- <comment>Enable "Others are looking at right now" box on general page views.</comment>
467
- </others_box>
468
- <others_box_layout translate="label">
469
- <label>Currently Viewed Box Layout</label>
470
- <frontend_type>select</frontend_type>
471
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
472
- <sort_order>120</sort_order>
473
- <show_in_default>1</show_in_default>
474
- <show_in_website>1</show_in_website>
475
- <show_in_store>1</show_in_store>
476
- <comment>Select where "Others are looking at right now" box should be shown on general page views.</comment>
477
- <depends><others_box>1</others_box></depends>
478
- </others_box_layout>
479
- <others_box_title translate="label">
480
- <label>Currently Viewed Box Title</label>
481
- <frontend_type>text</frontend_type>
482
- <sort_order>130</sort_order>
483
- <show_in_default>1</show_in_default>
484
- <show_in_website>1</show_in_website>
485
- <show_in_store>1</show_in_store>
486
- <comment>"Others are looking at right now" box title on general page views.</comment>
487
- <depends><others_box>1</others_box></depends>
488
- </others_box_title>
489
- <others_box_limit translate="label">
490
- <label>Currently Viewed Box Product Count</label>
491
- <frontend_type>text</frontend_type>
492
- <sort_order>140</sort_order>
493
- <show_in_default>1</show_in_default>
494
- <show_in_website>1</show_in_website>
495
- <show_in_store>1</show_in_store>
496
- <comment>Number of items show in "Others are looking at right now" box on general page views. This number must be between 1 and 10.</comment>
497
- <validate>validate-number validate-number-range number-range-1-10</validate>
498
- <depends><others_box>1</others_box></depends>
499
- </others_box_limit>
500
- <others_box_columns translate="label">
501
- <label>Currently Viewed Box Columns</label>
502
- <frontend_type>text</frontend_type>
503
- <sort_order>150</sort_order>
504
- <show_in_default>1</show_in_default>
505
- <show_in_website>1</show_in_website>
506
- <show_in_store>1</show_in_store>
507
- <comment>Columns count in "Others are looking at right now" box on general page views. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
508
- <validate>validate-number validate-number-range number-range-1-6</validate>
509
- <depends>
510
- <others_box>1</others_box>
511
- <others_box_layout>content</others_box_layout>
512
- </depends>
513
- </others_box_columns>
514
- <popular_heading translate="label">
515
- <label>Popular Box (POPULAR)</label>
516
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
517
- <sort_order>155</sort_order>
518
- <show_in_default>1</show_in_default>
519
- <show_in_website>1</show_in_website>
520
- <show_in_store>1</show_in_store>
521
- </popular_heading>
522
- <popular_box translate="label">
523
- <label>Enable Popular Box</label>
524
- <frontend_type>select</frontend_type>
525
- <source_model>adminhtml/system_config_source_yesno</source_model>
526
- <sort_order>160</sort_order>
527
- <show_in_default>1</show_in_default>
528
- <show_in_website>1</show_in_website>
529
- <show_in_store>1</show_in_store>
530
- <comment>Enable "Top products" box on general page views.</comment>
531
- </popular_box>
532
- <popular_box_layout translate="label">
533
- <label>Popular Box Layout</label>
534
- <frontend_type>select</frontend_type>
535
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
536
- <sort_order>170</sort_order>
537
- <show_in_default>1</show_in_default>
538
- <show_in_website>1</show_in_website>
539
- <show_in_store>1</show_in_store>
540
- <comment>Select where "Top products" box should be shown on general page views.</comment>
541
- <depends><popular_box>1</popular_box></depends>
542
- </popular_box_layout>
543
- <popular_box_title translate="label">
544
- <label>Popular Box Title</label>
545
- <frontend_type>text</frontend_type>
546
- <sort_order>180</sort_order>
547
- <show_in_default>1</show_in_default>
548
- <show_in_website>1</show_in_website>
549
- <show_in_store>1</show_in_store>
550
- <comment>"Top products" box title on general page views.</comment>
551
- <depends><popular_box>1</popular_box></depends>
552
- </popular_box_title>
553
- <popular_box_limit translate="label">
554
- <label>Popular Box Product Count</label>
555
- <frontend_type>text</frontend_type>
556
- <sort_order>190</sort_order>
557
- <show_in_default>1</show_in_default>
558
- <show_in_website>1</show_in_website>
559
- <show_in_store>1</show_in_store>
560
- <comment>Number of items show in "Top products" box on general page views. This number must be between 1 and 10.</comment>
561
- <validate>validate-number validate-number-range number-range-1-10</validate>
562
- <depends><popular_box>1</popular_box></depends>
563
- </popular_box_limit>
564
- <popular_box_columns translate="label">
565
- <label>Popular Box Columns</label>
566
- <frontend_type>text</frontend_type>
567
- <sort_order>200</sort_order>
568
- <show_in_default>1</show_in_default>
569
- <show_in_website>1</show_in_website>
570
- <show_in_store>1</show_in_store>
571
- <comment>Columns count in "Top products" box on general page views. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
572
- <validate>validate-number validate-number-range number-range-1-6</validate>
573
- <depends>
574
- <popular_box>1</popular_box>
575
- <popular_box_layout>content</popular_box_layout>
576
- </depends>
577
- </popular_box_columns>
578
- </fields>
579
- </general_display>
580
- <product_display translate="label">
581
- <label>Product Page Display</label>
582
- <frontend_type>text</frontend_type>
583
- <sort_order>50</sort_order>
584
- <show_in_default>1</show_in_default>
585
- <show_in_website>1</show_in_website>
586
- <show_in_store>1</show_in_store>
587
- <fields>
588
- <similar_heading translate="label">
589
- <label>Similar Box (ITEM_PAGE_SIMILAR)</label>
590
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
591
- <sort_order>5</sort_order>
592
- <show_in_default>1</show_in_default>
593
- <show_in_website>1</show_in_website>
594
- <show_in_store>1</show_in_store>
595
- </similar_heading>
596
- <similar_box translate="label">
597
- <label>Enable Similar Box</label>
598
- <frontend_type>select</frontend_type>
599
- <source_model>adminhtml/system_config_source_yesno</source_model>
600
- <sort_order>10</sort_order>
601
- <show_in_default>1</show_in_default>
602
- <show_in_website>1</show_in_website>
603
- <show_in_store>1</show_in_store>
604
- <comment>Enable "You might also like" box on product page view.</comment>
605
- </similar_box>
606
- <similar_box_layout translate="label">
607
- <label>Similar Box Layout</label>
608
- <frontend_type>select</frontend_type>
609
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
610
- <sort_order>20</sort_order>
611
- <show_in_default>1</show_in_default>
612
- <show_in_website>1</show_in_website>
613
- <show_in_store>1</show_in_store>
614
- <comment>Select where "You might also like" box should be shown on product page view.</comment>
615
- <depends><similar_box>1</similar_box></depends>
616
- </similar_box_layout>
617
- <similar_box_title translate="label">
618
- <label>Similar Box Title</label>
619
- <frontend_type>text</frontend_type>
620
- <sort_order>30</sort_order>
621
- <show_in_default>1</show_in_default>
622
- <show_in_website>1</show_in_website>
623
- <show_in_store>1</show_in_store>
624
- <comment>"You might also like" box title on product page view.</comment>
625
- <depends><similar_box>1</similar_box></depends>
626
- </similar_box_title>
627
- <similar_box_limit translate="label">
628
- <label>Similar Box Product Count</label>
629
- <frontend_type>text</frontend_type>
630
- <sort_order>40</sort_order>
631
- <show_in_default>1</show_in_default>
632
- <show_in_website>1</show_in_website>
633
- <show_in_store>1</show_in_store>
634
- <comment>Number of items show in "You might also like" box on product page view. This number must be between 1 and 10.</comment>
635
- <validate>validate-number validate-number-range number-range-1-10</validate>
636
- <depends><similar_box>1</similar_box></depends>
637
- </similar_box_limit>
638
- <similar_box_columns translate="label">
639
- <label>Similar Box Columns</label>
640
- <frontend_type>text</frontend_type>
641
- <sort_order>50</sort_order>
642
- <show_in_default>1</show_in_default>
643
- <show_in_website>1</show_in_website>
644
- <show_in_store>1</show_in_store>
645
- <comment>Columns count in "You might also like" box on product page view. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
646
- <validate>validate-number validate-number-range number-range-1-6</validate>
647
- <depends>
648
- <similar_box>1</similar_box>
649
- <similar_box_layout>content</similar_box_layout>
650
- </depends>
651
- </similar_box_columns>
652
- <personal_heading translate="label">
653
- <label>Personal Box (ITEM_PAGE_PERSONAL)</label>
654
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
655
- <sort_order>55</sort_order>
656
- <show_in_default>1</show_in_default>
657
- <show_in_website>1</show_in_website>
658
- <show_in_store>1</show_in_store>
659
- </personal_heading>
660
- <personal_box translate="label">
661
- <label>Enable Personal Box</label>
662
- <frontend_type>select</frontend_type>
663
- <source_model>adminhtml/system_config_source_yesno</source_model>
664
- <sort_order>60</sort_order>
665
- <show_in_default>1</show_in_default>
666
- <show_in_website>1</show_in_website>
667
- <show_in_store>1</show_in_store>
668
- <comment>Enable "Recommended for you" box on product page view.</comment>
669
- </personal_box>
670
- <personal_box_layout translate="label">
671
- <label>Personal Box Layout</label>
672
- <frontend_type>select</frontend_type>
673
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
674
- <sort_order>70</sort_order>
675
- <show_in_default>1</show_in_default>
676
- <show_in_website>1</show_in_website>
677
- <show_in_store>1</show_in_store>
678
- <comment>Select where "Recommended for you" box should be shown on product page view.</comment>
679
- <depends><personal_box>1</personal_box></depends>
680
- </personal_box_layout>
681
- <personal_box_title translate="label">
682
- <label>Personal Box Title</label>
683
- <frontend_type>text</frontend_type>
684
- <sort_order>80</sort_order>
685
- <show_in_default>1</show_in_default>
686
- <show_in_website>1</show_in_website>
687
- <show_in_store>1</show_in_store>
688
- <comment>"Recommended for you" box title on product page view.</comment>
689
- <depends><personal_box>1</personal_box></depends>
690
- </personal_box_title>
691
- <personal_box_limit translate="label">
692
- <label>Personal Box Product Count</label>
693
- <frontend_type>text</frontend_type>
694
- <sort_order>90</sort_order>
695
- <show_in_default>1</show_in_default>
696
- <show_in_website>1</show_in_website>
697
- <show_in_store>1</show_in_store>
698
- <comment>Number of items show in "Recommended for you" box on product page view. This number must be between 1 and 10.</comment>
699
- <validate>validate-number validate-number-range number-range-1-10</validate>
700
- <depends><personal_box>1</personal_box></depends>
701
- </personal_box_limit>
702
- <personal_box_columns translate="label">
703
- <label>Personal Box Columns</label>
704
- <frontend_type>text</frontend_type>
705
- <sort_order>100</sort_order>
706
- <show_in_default>1</show_in_default>
707
- <show_in_website>1</show_in_website>
708
- <show_in_store>1</show_in_store>
709
- <comment>Columns count in "Recommended for you" box on product page view. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
710
- <validate>validate-number validate-number-range number-range-1-6</validate>
711
- <depends>
712
- <personal_box>1</personal_box>
713
- <personal_box_layout>content</personal_box_layout>
714
- </depends>
715
- </personal_box_columns>
716
- <accessories_heading translate="label">
717
- <label>Accessories Box (ITEM_PAGE_ACCESSORIES)</label>
718
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
719
- <sort_order>105</sort_order>
720
- <show_in_default>1</show_in_default>
721
- <show_in_website>1</show_in_website>
722
- <show_in_store>1</show_in_store>
723
- </accessories_heading>
724
- <accessories_box translate="label">
725
- <label>Enable Accessories Box</label>
726
- <frontend_type>select</frontend_type>
727
- <source_model>adminhtml/system_config_source_yesno</source_model>
728
- <sort_order>110</sort_order>
729
- <show_in_default>1</show_in_default>
730
- <show_in_website>1</show_in_website>
731
- <show_in_store>1</show_in_store>
732
- <comment>Enable "You might also need" box on product page view.</comment>
733
- </accessories_box>
734
- <accessories_box_layout translate="label">
735
- <label>Accessories Box Layout</label>
736
- <frontend_type>select</frontend_type>
737
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
738
- <sort_order>120</sort_order>
739
- <show_in_default>1</show_in_default>
740
- <show_in_website>1</show_in_website>
741
- <show_in_store>1</show_in_store>
742
- <comment>Select where "You might also need" box should be shown on product page view.</comment>
743
- <depends><accessories_box>1</accessories_box></depends>
744
- </accessories_box_layout>
745
- <accessories_box_title translate="label">
746
- <label>Accessories Box Title</label>
747
- <frontend_type>text</frontend_type>
748
- <sort_order>130</sort_order>
749
- <show_in_default>1</show_in_default>
750
- <show_in_website>1</show_in_website>
751
- <show_in_store>1</show_in_store>
752
- <comment>"You might also need" box title on product page view.</comment>
753
- <depends><accessories_box>1</accessories_box></depends>
754
- </accessories_box_title>
755
- <accessories_box_limit translate="label">
756
- <label>Accessories Box Product Count</label>
757
- <frontend_type>text</frontend_type>
758
- <sort_order>140</sort_order>
759
- <show_in_default>1</show_in_default>
760
- <show_in_website>1</show_in_website>
761
- <show_in_store>1</show_in_store>
762
- <comment>Number of items show in "You might also need" box on product page view. This number must be between 1 and 10.</comment>
763
- <validate>validate-number validate-number-range number-range-1-10</validate>
764
- <depends><accessories_box>1</accessories_box></depends>
765
- </accessories_box_limit>
766
- <accessories_box_columns translate="label">
767
- <label>Accessories Box Columns</label>
768
- <frontend_type>text</frontend_type>
769
- <sort_order>150</sort_order>
770
- <show_in_default>1</show_in_default>
771
- <show_in_website>1</show_in_website>
772
- <show_in_store>1</show_in_store>
773
- <comment>Columns count in "You might also need" box on product page view. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
774
- <validate>validate-number validate-number-range number-range-1-6</validate>
775
- <depends>
776
- <accessories_box>1</accessories_box>
777
- <accessories_box_layout>content</accessories_box_layout>
778
- </depends>
779
- </accessories_box_columns>
780
- </fields>
781
- </product_display>
782
- <category_display translate="label">
783
- <label>Category Page Display</label>
784
- <frontend_type>text</frontend_type>
785
- <sort_order>60</sort_order>
786
- <show_in_default>1</show_in_default>
787
- <show_in_website>1</show_in_website>
788
- <show_in_store>1</show_in_store>
789
- <fields>
790
- <personal_heading translate="label">
791
- <label>Personal Box (CATEGORY_PAGE_PERSONAL)</label>
792
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
793
- <sort_order>5</sort_order>
794
- <show_in_default>1</show_in_default>
795
- <show_in_website>1</show_in_website>
796
- <show_in_store>1</show_in_store>
797
- </personal_heading>
798
- <personal_box translate="label">
799
- <label>Enable Personal Box</label>
800
- <frontend_type>select</frontend_type>
801
- <source_model>adminhtml/system_config_source_yesno</source_model>
802
- <sort_order>10</sort_order>
803
- <show_in_default>1</show_in_default>
804
- <show_in_website>1</show_in_website>
805
- <show_in_store>1</show_in_store>
806
- <comment>Enable "Recommended for you" box on category page view.</comment>
807
- </personal_box>
808
- <personal_box_layout translate="label">
809
- <label>Personal Box Layout</label>
810
- <frontend_type>select</frontend_type>
811
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
812
- <sort_order>20</sort_order>
813
- <show_in_default>1</show_in_default>
814
- <show_in_website>1</show_in_website>
815
- <show_in_store>1</show_in_store>
816
- <comment>Select where "Recommended for you" box should be shown on category page view.</comment>
817
- <depends><personal_box>1</personal_box></depends>
818
- </personal_box_layout>
819
- <personal_box_title translate="label">
820
- <label>Personal Box Title</label>
821
- <frontend_type>text</frontend_type>
822
- <sort_order>30</sort_order>
823
- <show_in_default>1</show_in_default>
824
- <show_in_website>1</show_in_website>
825
- <show_in_store>1</show_in_store>
826
- <comment>"Recommended for you" box title on category page view.</comment>
827
- <depends><personal_box>1</personal_box></depends>
828
- </personal_box_title>
829
- <personal_box_limit translate="label">
830
- <label>Personal Box Product Count</label>
831
- <frontend_type>text</frontend_type>
832
- <sort_order>40</sort_order>
833
- <show_in_default>1</show_in_default>
834
- <show_in_website>1</show_in_website>
835
- <show_in_store>1</show_in_store>
836
- <comment>Number of items show in "Recommended for you" box on category page view. This number must be between 1 and 10.</comment>
837
- <validate>validate-number validate-number-range number-range-1-10</validate>
838
- <depends><personal_box>1</personal_box></depends>
839
- </personal_box_limit>
840
- <personal_box_columns translate="label">
841
- <label>Personal Box Columns</label>
842
- <frontend_type>text</frontend_type>
843
- <sort_order>50</sort_order>
844
- <show_in_default>1</show_in_default>
845
- <show_in_website>1</show_in_website>
846
- <show_in_store>1</show_in_store>
847
- <comment>Columns count in "Recommended for you" box on category page view. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
848
- <validate>validate-number validate-number-range number-range-1-6</validate>
849
- <depends>
850
- <personal_box>1</personal_box>
851
- <personal_box_layout>content</personal_box_layout>
852
- </depends>
853
- </personal_box_columns>
854
- <top_heading translate="label">
855
- <label>Top Box (CATEGORY_PAGE_POP)</label>
856
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
857
- <sort_order>55</sort_order>
858
- <show_in_default>1</show_in_default>
859
- <show_in_website>1</show_in_website>
860
- <show_in_store>1</show_in_store>
861
- </top_heading>
862
- <top_box translate="label">
863
- <label>Enable Top Box</label>
864
- <frontend_type>select</frontend_type>
865
- <source_model>adminhtml/system_config_source_yesno</source_model>
866
- <sort_order>60</sort_order>
867
- <show_in_default>1</show_in_default>
868
- <show_in_website>1</show_in_website>
869
- <show_in_store>1</show_in_store>
870
- <comment>Enable "Top products" box on category page view.</comment>
871
- </top_box>
872
- <top_box_layout translate="label">
873
- <label>Top Box Layout</label>
874
- <frontend_type>select</frontend_type>
875
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
876
- <sort_order>70</sort_order>
877
- <show_in_default>1</show_in_default>
878
- <show_in_website>1</show_in_website>
879
- <show_in_store>1</show_in_store>
880
- <comment>Select where "Top products" box should be shown on category page view.</comment>
881
- <depends><top_box>1</top_box></depends>
882
- </top_box_layout>
883
- <top_box_title translate="label">
884
- <label>Top Box Title</label>
885
- <frontend_type>text</frontend_type>
886
- <sort_order>80</sort_order>
887
- <show_in_default>1</show_in_default>
888
- <show_in_website>1</show_in_website>
889
- <show_in_store>1</show_in_store>
890
- <comment>"Top products" box title on category page view.</comment>
891
- <depends><top_box>1</top_box></depends>
892
- </top_box_title>
893
- <top_box_limit translate="label">
894
- <label>Top Box Product Count</label>
895
- <frontend_type>text</frontend_type>
896
- <sort_order>90</sort_order>
897
- <show_in_default>1</show_in_default>
898
- <show_in_website>1</show_in_website>
899
- <show_in_store>1</show_in_store>
900
- <comment>Number of items show in "Top products" box on category page view. This number must be between 1 and 10.</comment>
901
- <validate>validate-number validate-number-range number-range-1-10</validate>
902
- <depends><top_box>1</top_box></depends>
903
- </top_box_limit>
904
- <top_box_columns translate="label">
905
- <label>Top Box Columns</label>
906
- <frontend_type>text</frontend_type>
907
- <sort_order>100</sort_order>
908
- <show_in_default>1</show_in_default>
909
- <show_in_website>1</show_in_website>
910
- <show_in_store>1</show_in_store>
911
- <comment>Columns count in "Top products" box on category page view. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
912
- <validate>validate-number validate-number-range number-range-1-6</validate>
913
- <depends>
914
- <top_box>1</top_box>
915
- <top_box_layout>content</top_box_layout>
916
- </depends>
917
- </top_box_columns>
918
- </fields>
919
- </category_display>
920
- <search_display translate="label">
921
- <label>Search Result Page Display</label>
922
- <frontend_type>text</frontend_type>
923
- <sort_order>70</sort_order>
924
- <show_in_default>1</show_in_default>
925
- <show_in_website>1</show_in_website>
926
- <show_in_store>1</show_in_store>
927
- <fields>
928
- <search_heading translate="label">
929
- <label>Recommendation Box (LISTING_PAGE)</label>
930
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
931
- <sort_order>5</sort_order>
932
- <show_in_default>1</show_in_default>
933
- <show_in_website>1</show_in_website>
934
- <show_in_store>1</show_in_store>
935
- </search_heading>
936
- <search_box translate="label">
937
- <label>Enable Recommendation Box</label>
938
- <frontend_type>select</frontend_type>
939
- <source_model>adminhtml/system_config_source_yesno</source_model>
940
- <sort_order>10</sort_order>
941
- <show_in_default>1</show_in_default>
942
- <show_in_website>1</show_in_website>
943
- <show_in_store>1</show_in_store>
944
- <comment>Enable "Recommended for you" box on search result page view.</comment>
945
- </search_box>
946
- <search_box_layout translate="label">
947
- <label>Recommendation Box Layout</label>
948
- <frontend_type>select</frontend_type>
949
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
950
- <sort_order>20</sort_order>
951
- <show_in_default>1</show_in_default>
952
- <show_in_website>1</show_in_website>
953
- <show_in_store>1</show_in_store>
954
- <comment>Select where "Recommended for you" box should be shown on search result page view.</comment>
955
- <depends><search_box>1</search_box></depends>
956
- </search_box_layout>
957
- <search_box_title translate="label">
958
- <label>Recommendation Box Title</label>
959
- <frontend_type>text</frontend_type>
960
- <sort_order>30</sort_order>
961
- <show_in_default>1</show_in_default>
962
- <show_in_website>1</show_in_website>
963
- <show_in_store>1</show_in_store>
964
- <comment>"Recommended for you" box title on search result page view.</comment>
965
- <depends><search_box>1</search_box></depends>
966
- </search_box_title>
967
- <search_box_limit translate="label">
968
- <label>Recommendation Box Product Count</label>
969
- <frontend_type>text</frontend_type>
970
- <sort_order>40</sort_order>
971
- <show_in_default>1</show_in_default>
972
- <show_in_website>1</show_in_website>
973
- <show_in_store>1</show_in_store>
974
- <comment>Number of items show in "Recommended for you" box on search result page view. This number must be between 1 and 10.</comment>
975
- <validate>validate-number validate-number-range number-range-1-10</validate>
976
- <depends><search_box>1</search_box></depends>
977
- </search_box_limit>
978
- <search_box_columns translate="label">
979
- <label>Recommendation Box Columns</label>
980
- <frontend_type>text</frontend_type>
981
- <sort_order>50</sort_order>
982
- <show_in_default>1</show_in_default>
983
- <show_in_website>1</show_in_website>
984
- <show_in_store>1</show_in_store>
985
- <comment>Columns count in "Recommended for you" box on search result page view. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
986
- <validate>validate-number validate-number-range number-range-1-6</validate>
987
- <depends>
988
- <search_box>1</search_box>
989
- <search_box_layout>content</search_box_layout>
990
- </depends>
991
- </search_box_columns>
992
- </fields>
993
- </search_display>
994
- <cart_display translate="label">
995
- <label>Cart Page Display</label>
996
- <frontend_type>text</frontend_type>
997
- <sort_order>80</sort_order>
998
- <show_in_default>1</show_in_default>
999
- <show_in_website>1</show_in_website>
1000
- <show_in_store>1</show_in_store>
1001
- <fields>
1002
- <cart_heading translate="label">
1003
- <label>Cart Box (CART_PAGE)</label>
1004
- <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
1005
- <sort_order>5</sort_order>
1006
- <show_in_default>1</show_in_default>
1007
- <show_in_website>1</show_in_website>
1008
- <show_in_store>1</show_in_store>
1009
- </cart_heading>
1010
- <cart_box translate="label">
1011
- <label>Enable Cart Box</label>
1012
- <frontend_type>select</frontend_type>
1013
- <source_model>adminhtml/system_config_source_yesno</source_model>
1014
- <sort_order>10</sort_order>
1015
- <show_in_default>1</show_in_default>
1016
- <show_in_website>1</show_in_website>
1017
- <show_in_store>1</show_in_store>
1018
- <comment>Enable "Others also bought" box on cart page view.</comment>
1019
- </cart_box>
1020
- <cart_box_layout translate="label">
1021
- <label>Cart Box Layout</label>
1022
- <frontend_type>select</frontend_type>
1023
- <source_model>me_gravity/system_config_source_layout_layout</source_model>
1024
- <sort_order>20</sort_order>
1025
- <show_in_default>1</show_in_default>
1026
- <show_in_website>1</show_in_website>
1027
- <show_in_store>1</show_in_store>
1028
- <comment>Select where "Others also bought" box should be shown on cart page view.</comment>
1029
- <depends><cart_box>1</cart_box></depends>
1030
- </cart_box_layout>
1031
- <cart_box_title translate="label">
1032
- <label>Cart Box Title</label>
1033
- <frontend_type>text</frontend_type>
1034
- <sort_order>30</sort_order>
1035
- <show_in_default>1</show_in_default>
1036
- <show_in_website>1</show_in_website>
1037
- <show_in_store>1</show_in_store>
1038
- <comment>"Others also bought" box title on cart page view.</comment>
1039
- <depends><cart_box>1</cart_box></depends>
1040
- </cart_box_title>
1041
- <cart_box_limit translate="label">
1042
- <label>Cart Box Product Count</label>
1043
- <frontend_type>text</frontend_type>
1044
- <sort_order>40</sort_order>
1045
- <show_in_default>1</show_in_default>
1046
- <show_in_website>1</show_in_website>
1047
- <show_in_store>1</show_in_store>
1048
- <comment>Number of items show in "Others also bought" box on cart page view. This number must be between 1 and 10.</comment>
1049
- <validate>validate-number validate-number-range number-range-1-10</validate>
1050
- <depends><cart_box>1</cart_box></depends>
1051
- </cart_box_limit>
1052
- <cart_box_columns translate="label">
1053
- <label>Cart Box Columns</label>
1054
- <frontend_type>text</frontend_type>
1055
- <sort_order>50</sort_order>
1056
- <show_in_default>1</show_in_default>
1057
- <show_in_website>1</show_in_website>
1058
- <show_in_store>1</show_in_store>
1059
- <comment>Columns count in "Others also bought" box on cart page view. This number must be between 1 and 6. It has no effect if box is in sidebar.</comment>
1060
- <validate>validate-number validate-number-range number-range-1-6</validate>
1061
- <depends>
1062
- <cart_box>1</cart_box>
1063
- <cart_box_layout>content</cart_box_layout>
1064
- </depends>
1065
- </cart_box_columns>
1066
- </fields>
1067
- </cart_display>
1068
- <sync translate="label">
1069
- <label>Synchronization</label>
1070
- <frontend_type>text</frontend_type>
1071
- <sort_order>90</sort_order>
1072
- <show_in_default>1</show_in_default>
1073
- <show_in_website>1</show_in_website>
1074
- <show_in_store>1</show_in_store>
1075
- <fields>
1076
- <customer_update translate="label">
1077
- <label>Enable Gravity Customer Update</label>
1078
- <frontend_type>select</frontend_type>
1079
- <source_model>adminhtml/system_config_source_yesno</source_model>
1080
- <sort_order>10</sort_order>
1081
- <show_in_default>1</show_in_default>
1082
- <show_in_website>1</show_in_website>
1083
- <show_in_store>1</show_in_store>
1084
- <comment>If customer is saved in backend it will be updated in Gravity.</comment>
1085
- </customer_update>
1086
- <product_update translate="label">
1087
- <label>Enable Gravity Product Update</label>
1088
- <frontend_type>select</frontend_type>
1089
- <source_model>adminhtml/system_config_source_yesno</source_model>
1090
- <sort_order>20</sort_order>
1091
- <show_in_default>1</show_in_default>
1092
- <show_in_website>1</show_in_website>
1093
- <show_in_store>1</show_in_store>
1094
- <comment>If product is saved in backend it will be updated in Gravity.</comment>
1095
- </product_update>
1096
- <customer_registration translate="label">
1097
- <label>Enable Gravity Customer Registration</label>
1098
- <frontend_type>select</frontend_type>
1099
- <source_model>adminhtml/system_config_source_yesno</source_model>
1100
- <sort_order>30</sort_order>
1101
- <show_in_default>1</show_in_default>
1102
- <show_in_website>1</show_in_website>
1103
- <show_in_store>1</show_in_store>
1104
- <comment>If customer is registered on frontend it will be added in Gravity.</comment>
1105
- </customer_registration>
1106
- </fields>
1107
- </sync>
1108
- <debug translate="label">
1109
- <label>Debug</label>
1110
- <frontend_type>text</frontend_type>
1111
- <sort_order>100</sort_order>
1112
- <show_in_default>1</show_in_default>
1113
- <show_in_website>0</show_in_website>
1114
- <show_in_store>0</show_in_store>
1115
- <fields>
1116
- <log translate="label">
1117
- <label>Enable Debug</label>
1118
- <frontend_type>select</frontend_type>
1119
- <source_model>adminhtml/system_config_source_yesno</source_model>
1120
- <sort_order>10</sort_order>
1121
- <show_in_default>1</show_in_default>
1122
- <show_in_website>0</show_in_website>
1123
- <show_in_store>0</show_in_store>
1124
- <comment>Enable debug. In this case all transactions will be logged in /var/gravity.log.</comment>
1125
- </log>
1126
- <version translate="label">
1127
- <label>Extension Version</label>
1128
- <frontend_type>text</frontend_type>
1129
- <frontend_model>me_gravity/adminhtml_system_config_form_version</frontend_model>
1130
- <sort_order>20</sort_order>
1131
- <show_in_default>1</show_in_default>
1132
- <show_in_website>0</show_in_website>
1133
- <show_in_store>0</show_in_store>
1134
- </version>
1135
- </fields>
1136
- </debug>
1137
- </groups>
1138
- </gravity>
1139
- </sections>
1140
- </config>
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Me
5
+ * @package Me_Gravity
6
+ * @author Attila Sági <sagi.attila@magevolve.com>
7
+ * @copyright 2015 Magevolve Ltd. (http://magevolve.com)
8
+ * @license http://magevolve.com/terms-and-conditions Magevolve Ltd. License
9
+ * @link http://magevolve.com
10
+ */
11
+ -->
12
+ <config>
13
+ <tabs>
14
+ <me_tab translate="label" module="me_gravity">
15
+ <label>Recommendations</label>
16
+ <sort_order>500</sort_order>
17
+ </me_tab>
18
+ </tabs>
19
+ <sections>
20
+ <gravity>
21
+ <class>separator-top</class>
22
+ <label>Yusp</label>
23
+ <tab>me_tab</tab>
24
+ <frontend_type>text</frontend_type>
25
+ <sort_order>500</sort_order>
26
+ <show_in_default>1</show_in_default>
27
+ <show_in_website>1</show_in_website>
28
+ <show_in_store>1</show_in_store>
29
+ <groups>
30
+ <config translate="label">
31
+ <label>Settings</label>
32
+ <frontend_type>text</frontend_type>
33
+ <sort_order>10</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>1</show_in_store>
37
+ <fields>
38
+ <enabled translate="label">
39
+ <label>Enable Extension</label>
40
+ <frontend_type>select</frontend_type>
41
+ <source_model>adminhtml/system_config_source_yesno</source_model>
42
+ <sort_order>10</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>1</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ <comment>Enable extension.</comment>
47
+ </enabled>
48
+ <preview translate="label">
49
+ <label>Enable Preview Mode</label>
50
+ <frontend_type>select</frontend_type>
51
+ <source_model>adminhtml/system_config_source_yesno</source_model>
52
+ <sort_order>20</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ <comment>Enabled Preview mode. If set to YES, recommendation boxes are only visible if there is a special ?gr_reco_test=true parameter in the url. E.g.: http://example.com/example-product.html?gr_reco_test=true</comment>
57
+ </preview>
58
+ <api_user translate="label">
59
+ <label>API Username</label>
60
+ <frontend_type>text</frontend_type>
61
+ <sort_order>30</sort_order>
62
+ <show_in_default>1</show_in_default>
63
+ <show_in_website>1</show_in_website>
64
+ <show_in_store>1</show_in_store>
65
+ <comment>API username in the Yusp system.</comment>
66
+ </api_user>
67
+ <api_password translate="label">
68
+ <label>API Password</label>
69
+ <frontend_type>password</frontend_type>
70
+ <sort_order>40</sort_order>
71
+ <show_in_default>1</show_in_default>
72
+ <show_in_website>1</show_in_website>
73
+ <show_in_store>1</show_in_store>
74
+ <comment>API password in the Yusp system.</comment>
75
+ </api_password>
76
+ <api_url translate="label">
77
+ <label>API URL</label>
78
+ <frontend_type>text</frontend_type>
79
+ <sort_order>50</sort_order>
80
+ <show_in_default>1</show_in_default>
81
+ <show_in_website>1</show_in_website>
82
+ <show_in_store>1</show_in_store>
83
+ <comment>API communication URL.</comment>
84
+ </api_url>
85
+ <enabled_js translate="label">
86
+ <label>Enable Custom Yusp Javascript</label>
87
+ <frontend_type>select</frontend_type>
88
+ <source_model>adminhtml/system_config_source_yesno</source_model>
89
+ <sort_order>55</sort_order>
90
+ <show_in_default>1</show_in_default>
91
+ <show_in_website>1</show_in_website>
92
+ <show_in_store>1</show_in_store>
93
+ <comment>Please select YES if you want to edit or customize the Yusp extension's main javascript.</comment>
94
+ </enabled_js>
95
+ <custom_js translate="label">
96
+ <label>Custom Yusp Javascript</label>
97
+ <frontend_type>textarea</frontend_type>
98
+ <sort_order>56</sort_order>
99
+ <show_in_default>1</show_in_default>
100
+ <show_in_website>1</show_in_website>
101
+ <show_in_store>1</show_in_store>
102
+ <comment><![CDATA[<strong> Important!</strong> Here you can edit the main Yusp javascript. <strong>You have to replace</strong> the two occurrences of the "magento" string in your custom javascript with your Yusp API username above!]]></comment>
103
+ <depends>
104
+ <enabled_js>1</enabled_js>
105
+ </depends>
106
+ </custom_js>
107
+ <test translate="label">
108
+ <label>Test Connection</label>
109
+ <frontend_type>button</frontend_type>
110
+ <frontend_model>me_gravity/adminhtml_system_config_form_test</frontend_model>
111
+ <sort_order>60</sort_order>
112
+ <show_in_default>1</show_in_default>
113
+ <show_in_website>1</show_in_website>
114
+ <show_in_store>1</show_in_store>
115
+ <comment>Click here to check the connection between your Yusp account and Magento extension.</comment>
116
+ </test>
117
+ <template translate="label">
118
+ <label>Use Yusp Template</label>
119
+ <frontend_type>select</frontend_type>
120
+ <source_model>adminhtml/system_config_source_yesno</source_model>
121
+ <sort_order>70</sort_order>
122
+ <show_in_default>1</show_in_default>
123
+ <show_in_website>1</show_in_website>
124
+ <show_in_store>1</show_in_store>
125
+ <comment>General display setting. If switched to YES, all boxes will use a Yusp template.</comment>
126
+ </template>
127
+ <bulk translate="label">
128
+ <label>Enable Bulk Recommendation</label>
129
+ <frontend_type>select</frontend_type>
130
+ <source_model>adminhtml/system_config_source_yesno</source_model>
131
+ <sort_order>80</sort_order>
132
+ <show_in_default>1</show_in_default>
133
+ <show_in_website>1</show_in_website>
134
+ <show_in_store>1</show_in_store>
135
+ <comment>General recommendation setting. If switched to YES, bulk recommendation will be enabled.</comment>
136
+ </bulk>
137
+ </fields>
138
+ </config>
139
+ <export translate="label">
140
+ <label>Export Products</label>
141
+ <frontend_type>text</frontend_type>
142
+ <sort_order>20</sort_order>
143
+ <show_in_default>1</show_in_default>
144
+ <show_in_website>0</show_in_website>
145
+ <show_in_store>0</show_in_store>
146
+ <fields>
147
+ <catalog_path translate="label">
148
+ <label>Catalog Export File Path</label>
149
+ <frontend_type>text</frontend_type>
150
+ <sort_order>10</sort_order>
151
+ <show_in_default>1</show_in_default>
152
+ <show_in_website>0</show_in_website>
153
+ <show_in_store>0</show_in_store>
154
+ <comment>The path where the catalog export file will be saved (relative to your Magento folder). Example: "yusp/" (path must be writable).</comment>
155
+ </catalog_path>
156
+ <all translate="label">
157
+ <label>Enable Full Product Export</label>
158
+ <frontend_type>select</frontend_type>
159
+ <source_model>adminhtml/system_config_source_yesno</source_model>
160
+ <sort_order>15</sort_order>
161
+ <show_in_default>1</show_in_default>
162
+ <show_in_website>0</show_in_website>
163
+ <show_in_store>0</show_in_store>
164
+ <comment>Enable the export of all your products. Otherwise, please select NO and set a maximum number. Note: switching this to YES can impact your site’s performance. </comment>
165
+ </all>
166
+ <max translate="label">
167
+ <label>Maximum Products Export</label>
168
+ <frontend_type>text</frontend_type>
169
+ <sort_order>20</sort_order>
170
+ <show_in_default>1</show_in_default>
171
+ <show_in_website>0</show_in_website>
172
+ <show_in_store>0</show_in_store>
173
+ <comment>The maximum number of products to be exported. This number must be between 1 and 1000.</comment>
174
+ <validate>validate-number validate-number-range number-range-1-1000</validate>
175
+ <depends><all>0</all></depends>
176
+ </max>
177
+ <description_enabled translate="label">
178
+ <label>Enable Product Descriptions in the Export</label>
179
+ <frontend_type>select</frontend_type>
180
+ <source_model>adminhtml/system_config_source_yesno</source_model>
181
+ <sort_order>25</sort_order>
182
+ <show_in_default>1</show_in_default>
183
+ <show_in_website>0</show_in_website>
184
+ <show_in_store>0</show_in_store>
185
+ <comment>Please, select YES if you wish to include product description attributes in the catalog export.</comment>
186
+ </description_enabled>
187
+ <additional translate="label">
188
+ <label>Additional Attributes</label>
189
+ <frontend_type>multiselect</frontend_type>
190
+ <source_model>me_gravity/system_config_source_catalog_attributes</source_model>
191
+ <sort_order>30</sort_order>
192
+ <show_in_default>1</show_in_default>
193
+ <show_in_website>0</show_in_website>
194
+ <show_in_store>0</show_in_store>
195
+ <comment>Select additional attributes for catalog export.</comment>
196
+ </additional>
197
+ <only_salable translate="label">
198
+ <label>Only In-stock</label>
199
+ <frontend_type>select</frontend_type>
200
+ <source_model>adminhtml/system_config_source_yesno</source_model>
201
+ <sort_order>40</sort_order>
202
+ <show_in_default>1</show_in_default>
203
+ <show_in_website>0</show_in_website>
204
+ <show_in_store>0</show_in_store>
205
+ <comment>If switched to YES, only products with quantities exceeding zero will be exported. If your store doesn't use stock management, also choose YES.</comment>
206
+ </only_salable>
207
+ <status translate="label">
208
+ <label>Export Disabled Products</label>
209
+ <frontend_type>select</frontend_type>
210
+ <source_model>adminhtml/system_config_source_yesno</source_model>
211
+ <sort_order>45</sort_order>
212
+ <show_in_default>1</show_in_default>
213
+ <show_in_website>0</show_in_website>
214
+ <show_in_store>0</show_in_store>
215
+ <comment>Please select YES, if you want to add products with disabled status to the catalog export.</comment>
216
+ <depends>
217
+ <only_salable>0</only_salable>
218
+ </depends>
219
+ </status>
220
+ <catalog_cron translate="label">
221
+ <label>Enable Scheduled Export</label>
222
+ <frontend_type>select</frontend_type>
223
+ <source_model>adminhtml/system_config_source_yesno</source_model>
224
+ <backend_model>me_gravity/system_config_backend_catalog_cron</backend_model>
225
+ <sort_order>50</sort_order>
226
+ <show_in_default>1</show_in_default>
227
+ <show_in_website>0</show_in_website>
228
+ <show_in_store>0</show_in_store>
229
+ <comment>Enable scheduled export on cron jobs. Note: you must configure your server to run cron jobs.</comment>
230
+ </catalog_cron>
231
+ <catalog_cron_time translate="label">
232
+ <label>Start Time</label>
233
+ <frontend_type>time</frontend_type>
234
+ <sort_order>60</sort_order>
235
+ <show_in_default>1</show_in_default>
236
+ <show_in_website>0</show_in_website>
237
+ <show_in_store>0</show_in_store>
238
+ <comment>Daily start time for automatic catalog export via cron job.</comment>
239
+ <depends><catalog_cron>1</catalog_cron></depends>
240
+ </catalog_cron_time>
241
+ <catalog translate="label">
242
+ <label>Export Product Catalog</label>
243
+ <frontend_type>button</frontend_type>
244
+ <frontend_model>me_gravity/adminhtml_system_config_form_catalog</frontend_model>
245
+ <sort_order>70</sort_order>
246
+ <show_in_default>1</show_in_default>
247
+ <show_in_website>0</show_in_website>
248
+ <show_in_store>0</show_in_store>
249
+ <comment>Export your product catalog in an XML file. Note: this operation can impact your site’s performance.</comment>
250
+ </catalog>
251
+ </fields>
252
+ </export>
253
+ <cutomer_export translate="label">
254
+ <label>Export Customers</label>
255
+ <frontend_type>text</frontend_type>
256
+ <sort_order>30</sort_order>
257
+ <show_in_default>1</show_in_default>
258
+ <show_in_website>1</show_in_website>
259
+ <show_in_store>1</show_in_store>
260
+ <fields>
261
+ <all translate="label">
262
+ <label>Enable Full Customer Export</label>
263
+ <frontend_type>select</frontend_type>
264
+ <source_model>adminhtml/system_config_source_yesno</source_model>
265
+ <sort_order>5</sort_order>
266
+ <show_in_default>1</show_in_default>
267
+ <show_in_website>1</show_in_website>
268
+ <show_in_store>1</show_in_store>
269
+ <comment>Enable the export of all customers. Otherwise, please select no and set a maximum number. Note: This operation can impact the performance of your site.</comment>
270
+ </all>
271
+ <max translate="label">
272
+ <label>Maximum Customers Export</label>
273
+ <frontend_type>text</frontend_type>
274
+ <sort_order>10</sort_order>
275
+ <show_in_default>1</show_in_default>
276
+ <show_in_website>1</show_in_website>
277
+ <show_in_store>1</show_in_store>
278
+ <comment>The maximum number of customers to be exported. This number must be between 1 and 1000.</comment>
279
+ <validate>validate-number validate-number-range number-range-1-1000</validate>
280
+ <depends><all>0</all></depends>
281
+ </max>
282
+ <additional translate="label">
283
+ <label>Additional Attributes</label>
284
+ <frontend_type>multiselect</frontend_type>
285
+ <source_model>me_gravity/system_config_source_customer_attributes</source_model>
286
+ <sort_order>20</sort_order>
287
+ <show_in_default>1</show_in_default>
288
+ <show_in_website>1</show_in_website>
289
+ <show_in_store>1</show_in_store>
290
+ <comment>Select additional attributes for customer export.</comment>
291
+ </additional>
292
+ <customer translate="label">
293
+ <label>Export Customers</label>
294
+ <frontend_type>button</frontend_type>
295
+ <frontend_model>me_gravity/adminhtml_system_config_form_customer</frontend_model>
296
+ <sort_order>30</sort_order>
297
+ <show_in_default>1</show_in_default>
298
+ <show_in_website>1</show_in_website>
299
+ <show_in_store>1</show_in_store>
300
+ <comment>Export your customers in an XML file. Note: this operation can impact your site’s performance.</comment>
301
+ </customer>
302
+ </fields>
303
+ </cutomer_export>
304
+ <general_display translate="label">
305
+ <label>General Pages Display</label>
306
+ <frontend_type>text</frontend_type>
307
+ <sort_order>40</sort_order>
308
+ <show_in_default>1</show_in_default>
309
+ <show_in_website>1</show_in_website>
310
+ <show_in_store>1</show_in_store>
311
+ <fields>
312
+ <pages translate="label">
313
+ <label>Enabled Pages</label>
314
+ <frontend_type>multiselect</frontend_type>
315
+ <source_model>me_gravity/system_config_source_layout_pages</source_model>
316
+ <sort_order>1</sort_order>
317
+ <show_in_default>1</show_in_default>
318
+ <show_in_website>1</show_in_website>
319
+ <show_in_store>1</show_in_store>
320
+ <comment>General pages where Yusp recommendation boxes are enabled.</comment>
321
+ </pages>
322
+ <best_heading translate="label">
323
+ <label>Personal Best Box (PERSONAL_BEST)</label>
324
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
325
+ <sort_order>5</sort_order>
326
+ <show_in_default>1</show_in_default>
327
+ <show_in_website>1</show_in_website>
328
+ <show_in_store>1</show_in_store>
329
+ </best_heading>
330
+ <best_box translate="label">
331
+ <label>Enable Personal Best Box</label>
332
+ <frontend_type>select</frontend_type>
333
+ <source_model>adminhtml/system_config_source_yesno</source_model>
334
+ <sort_order>10</sort_order>
335
+ <show_in_default>1</show_in_default>
336
+ <show_in_website>1</show_in_website>
337
+ <show_in_store>1</show_in_store>
338
+ <comment>Enable "Recommended for you boxes on general pages. </comment>
339
+ </best_box>
340
+ <best_box_layout translate="label">
341
+ <label>Personal Best Box Layout</label>
342
+ <frontend_type>select</frontend_type>
343
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
344
+ <sort_order>20</sort_order>
345
+ <show_in_default>1</show_in_default>
346
+ <show_in_website>1</show_in_website>
347
+ <show_in_store>1</show_in_store>
348
+ <comment>Select where "Recommended for you boxes should be shown on general pages.</comment>
349
+ <depends><best_box>1</best_box></depends>
350
+ </best_box_layout>
351
+ <best_box_title translate="label">
352
+ <label>Personal Best Box Title</label>
353
+ <frontend_type>text</frontend_type>
354
+ <sort_order>30</sort_order>
355
+ <show_in_default>1</show_in_default>
356
+ <show_in_website>1</show_in_website>
357
+ <show_in_store>1</show_in_store>
358
+ <comment>"Recommended for you" box title on general pages.</comment>
359
+ <depends><best_box>1</best_box></depends>
360
+ </best_box_title>
361
+ <best_box_limit translate="label">
362
+ <label>Personal Best Box Product Count</label>
363
+ <frontend_type>text</frontend_type>
364
+ <sort_order>40</sort_order>
365
+ <show_in_default>1</show_in_default>
366
+ <show_in_website>1</show_in_website>
367
+ <show_in_store>1</show_in_store>
368
+ <comment>The number of items shown in "Recommended for you" boxes on general pages. This number must be between 1 and 10.
369
+ </comment>
370
+ <validate>validate-number validate-number-range number-range-1-10</validate>
371
+ <depends><best_box>1</best_box></depends>
372
+ </best_box_limit>
373
+ <best_box_columns translate="label">
374
+ <label>Personal Best Box Columns</label>
375
+ <frontend_type>text</frontend_type>
376
+ <sort_order>50</sort_order>
377
+ <show_in_default>1</show_in_default>
378
+ <show_in_website>1</show_in_website>
379
+ <show_in_store>1</show_in_store>
380
+ <comment>The number of columns in "Recommended for you" boxes on general pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.</comment>
381
+ <validate>validate-number validate-number-range number-range-1-6</validate>
382
+ <depends>
383
+ <best_box>1</best_box>
384
+ <best_box_layout>content</best_box_layout>
385
+ </depends>
386
+ </best_box_columns>
387
+ <history_heading translate="label">
388
+ <label>History Box (PERSONAL_HISTORY)</label>
389
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
390
+ <sort_order>55</sort_order>
391
+ <show_in_default>1</show_in_default>
392
+ <show_in_website>1</show_in_website>
393
+ <show_in_store>1</show_in_store>
394
+ </history_heading>
395
+ <history_box translate="label">
396
+ <label>Enable History Box</label>
397
+ <frontend_type>select</frontend_type>
398
+ <source_model>adminhtml/system_config_source_yesno</source_model>
399
+ <sort_order>60</sort_order>
400
+ <show_in_default>1</show_in_default>
401
+ <show_in_website>1</show_in_website>
402
+ <show_in_store>1</show_in_store>
403
+ <comment>Enable "You viewed" boxes on general pages.</comment>
404
+ </history_box>
405
+ <history_box_layout translate="label">
406
+ <label>History Box Layout</label>
407
+ <frontend_type>select</frontend_type>
408
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
409
+ <sort_order>70</sort_order>
410
+ <show_in_default>1</show_in_default>
411
+ <show_in_website>1</show_in_website>
412
+ <show_in_store>1</show_in_store>
413
+ <comment>Select where "You viewed" boxes should be shown on general pages.</comment>
414
+ <depends><history_box>1</history_box></depends>
415
+ </history_box_layout>
416
+ <history_box_title translate="label">
417
+ <label>History Box Title</label>
418
+ <frontend_type>text</frontend_type>
419
+ <sort_order>80</sort_order>
420
+ <show_in_default>1</show_in_default>
421
+ <show_in_website>1</show_in_website>
422
+ <show_in_store>1</show_in_store>
423
+ <comment>"You viewed" box title on general pages.</comment>
424
+ <depends><history_box>1</history_box></depends>
425
+ </history_box_title>
426
+ <history_box_limit translate="label">
427
+ <label>History Box Product Count</label>
428
+ <frontend_type>text</frontend_type>
429
+ <sort_order>90</sort_order>
430
+ <show_in_default>1</show_in_default>
431
+ <show_in_website>1</show_in_website>
432
+ <show_in_store>1</show_in_store>
433
+ <comment>The number of items shown in "You viewed" boxes on general pages. This number must be between 1 and 10.
434
+ </comment>
435
+ <validate>validate-number validate-number-range number-range-1-10</validate>
436
+ <depends><history_box>1</history_box></depends>
437
+ </history_box_limit>
438
+ <history_box_columns translate="label">
439
+ <label>History Box Columns</label>
440
+ <frontend_type>text</frontend_type>
441
+ <sort_order>100</sort_order>
442
+ <show_in_default>1</show_in_default>
443
+ <show_in_website>1</show_in_website>
444
+ <show_in_store>1</show_in_store>
445
+ <comment>The number of columns in "You viewed" boxes on general pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.</comment>
446
+ <validate>validate-number validate-number-range number-range-1-6</validate>
447
+ <depends>
448
+ <history_box>1</history_box>
449
+ <history_box_layout>content</history_box_layout>
450
+ </depends>
451
+ </history_box_columns>
452
+ <others_heading translate="label">
453
+ <label>Currently Viewed Box (CURRENTLY_VIEWED)</label>
454
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
455
+ <sort_order>105</sort_order>
456
+ <show_in_default>1</show_in_default>
457
+ <show_in_website>1</show_in_website>
458
+ <show_in_store>1</show_in_store>
459
+ </others_heading>
460
+ <others_box translate="label">
461
+ <label>Enable Currently Viewed Box</label>
462
+ <frontend_type>select</frontend_type>
463
+ <source_model>adminhtml/system_config_source_yesno</source_model>
464
+ <sort_order>110</sort_order>
465
+ <show_in_default>1</show_in_default>
466
+ <show_in_website>1</show_in_website>
467
+ <show_in_store>1</show_in_store>
468
+ <comment>Enable "Others are looking at right now" boxes on general pages.</comment>
469
+ </others_box>
470
+ <others_box_layout translate="label">
471
+ <label>Currently Viewed Box Layout</label>
472
+ <frontend_type>select</frontend_type>
473
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
474
+ <sort_order>120</sort_order>
475
+ <show_in_default>1</show_in_default>
476
+ <show_in_website>1</show_in_website>
477
+ <show_in_store>1</show_in_store>
478
+ <comment>Select where "Others are looking at right now" boxes should be shown on general pages.</comment>
479
+ <depends><others_box>1</others_box></depends>
480
+ </others_box_layout>
481
+ <others_box_title translate="label">
482
+ <label>Currently Viewed Box Title</label>
483
+ <frontend_type>text</frontend_type>
484
+ <sort_order>130</sort_order>
485
+ <show_in_default>1</show_in_default>
486
+ <show_in_website>1</show_in_website>
487
+ <show_in_store>1</show_in_store>
488
+ <comment>"Others are looking at right now" box title on general pages.</comment>
489
+ <depends><others_box>1</others_box></depends>
490
+ </others_box_title>
491
+ <others_box_limit translate="label">
492
+ <label>Currently Viewed Box Product Count</label>
493
+ <frontend_type>text</frontend_type>
494
+ <sort_order>140</sort_order>
495
+ <show_in_default>1</show_in_default>
496
+ <show_in_website>1</show_in_website>
497
+ <show_in_store>1</show_in_store>
498
+ <comment>The number of items shown in "Others are looking at right now" boxes on general pages. This number must be between 1 and 10.</comment>
499
+ <validate>validate-number validate-number-range number-range-1-10</validate>
500
+ <depends><others_box>1</others_box></depends>
501
+ </others_box_limit>
502
+ <others_box_columns translate="label">
503
+ <label>Currently Viewed Box Columns</label>
504
+ <frontend_type>text</frontend_type>
505
+ <sort_order>150</sort_order>
506
+ <show_in_default>1</show_in_default>
507
+ <show_in_website>1</show_in_website>
508
+ <show_in_store>1</show_in_store>
509
+ <comment>The number of columns in "Others are looking at right now" boxes on general pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.</comment>
510
+ <validate>validate-number validate-number-range number-range-1-6</validate>
511
+ <depends>
512
+ <others_box>1</others_box>
513
+ <others_box_layout>content</others_box_layout>
514
+ </depends>
515
+ </others_box_columns>
516
+ <popular_heading translate="label">
517
+ <label>Popular Box (POPULAR)</label>
518
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
519
+ <sort_order>155</sort_order>
520
+ <show_in_default>1</show_in_default>
521
+ <show_in_website>1</show_in_website>
522
+ <show_in_store>1</show_in_store>
523
+ </popular_heading>
524
+ <popular_box translate="label">
525
+ <label>Enable Popular Box</label>
526
+ <frontend_type>select</frontend_type>
527
+ <source_model>adminhtml/system_config_source_yesno</source_model>
528
+ <sort_order>160</sort_order>
529
+ <show_in_default>1</show_in_default>
530
+ <show_in_website>1</show_in_website>
531
+ <show_in_store>1</show_in_store>
532
+ <comment>Enable "Top products" boxes on general pages.</comment>
533
+ </popular_box>
534
+ <popular_box_layout translate="label">
535
+ <label>Popular Box Layout</label>
536
+ <frontend_type>select</frontend_type>
537
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
538
+ <sort_order>170</sort_order>
539
+ <show_in_default>1</show_in_default>
540
+ <show_in_website>1</show_in_website>
541
+ <show_in_store>1</show_in_store>
542
+ <comment>Select where "Top products" boxes should be shown on general pages.</comment>
543
+ <depends><popular_box>1</popular_box></depends>
544
+ </popular_box_layout>
545
+ <popular_box_title translate="label">
546
+ <label>Popular Box Title</label>
547
+ <frontend_type>text</frontend_type>
548
+ <sort_order>180</sort_order>
549
+ <show_in_default>1</show_in_default>
550
+ <show_in_website>1</show_in_website>
551
+ <show_in_store>1</show_in_store>
552
+ <comment>"Top products" box title on general pages.</comment>
553
+ <depends><popular_box>1</popular_box></depends>
554
+ </popular_box_title>
555
+ <popular_box_limit translate="label">
556
+ <label>Popular Box Product Count</label>
557
+ <frontend_type>text</frontend_type>
558
+ <sort_order>190</sort_order>
559
+ <show_in_default>1</show_in_default>
560
+ <show_in_website>1</show_in_website>
561
+ <show_in_store>1</show_in_store>
562
+ <comment>The number of items shown in "Top products" boxes on general pages. This number must be between 1 and 10.</comment>
563
+ <validate>validate-number validate-number-range number-range-1-10</validate>
564
+ <depends><popular_box>1</popular_box></depends>
565
+ </popular_box_limit>
566
+ <popular_box_columns translate="label">
567
+ <label>Popular Box Columns</label>
568
+ <frontend_type>text</frontend_type>
569
+ <sort_order>200</sort_order>
570
+ <show_in_default>1</show_in_default>
571
+ <show_in_website>1</show_in_website>
572
+ <show_in_store>1</show_in_store>
573
+ <comment>The number of columns in "Top products" boxes on general pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.</comment>
574
+ <validate>validate-number validate-number-range number-range-1-6</validate>
575
+ <depends>
576
+ <popular_box>1</popular_box>
577
+ <popular_box_layout>content</popular_box_layout>
578
+ </depends>
579
+ </popular_box_columns>
580
+ </fields>
581
+ </general_display>
582
+ <product_display translate="label">
583
+ <label>Product Page Display</label>
584
+ <frontend_type>text</frontend_type>
585
+ <sort_order>50</sort_order>
586
+ <show_in_default>1</show_in_default>
587
+ <show_in_website>1</show_in_website>
588
+ <show_in_store>1</show_in_store>
589
+ <fields>
590
+ <similar_heading translate="label">
591
+ <label>Similar Box (ITEM_PAGE_SIMILAR)</label>
592
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
593
+ <sort_order>5</sort_order>
594
+ <show_in_default>1</show_in_default>
595
+ <show_in_website>1</show_in_website>
596
+ <show_in_store>1</show_in_store>
597
+ </similar_heading>
598
+ <similar_box translate="label">
599
+ <label>Enable Similar Box</label>
600
+ <frontend_type>select</frontend_type>
601
+ <source_model>adminhtml/system_config_source_yesno</source_model>
602
+ <sort_order>10</sort_order>
603
+ <show_in_default>1</show_in_default>
604
+ <show_in_website>1</show_in_website>
605
+ <show_in_store>1</show_in_store>
606
+ <comment>Enable "You might also like" boxes on product pages.</comment>
607
+ </similar_box>
608
+ <similar_box_layout translate="label">
609
+ <label>Similar Box Layout</label>
610
+ <frontend_type>select</frontend_type>
611
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
612
+ <sort_order>20</sort_order>
613
+ <show_in_default>1</show_in_default>
614
+ <show_in_website>1</show_in_website>
615
+ <show_in_store>1</show_in_store>
616
+ <comment>Select where "You might also like" boxes should be shown on product pages.</comment>
617
+ <depends><similar_box>1</similar_box></depends>
618
+ </similar_box_layout>
619
+ <similar_box_title translate="label">
620
+ <label>Similar Box Title</label>
621
+ <frontend_type>text</frontend_type>
622
+ <sort_order>30</sort_order>
623
+ <show_in_default>1</show_in_default>
624
+ <show_in_website>1</show_in_website>
625
+ <show_in_store>1</show_in_store>
626
+ <comment>"You might also like" box title on product pages.</comment>
627
+ <depends><similar_box>1</similar_box></depends>
628
+ </similar_box_title>
629
+ <similar_box_limit translate="label">
630
+ <label>Similar Box Product Count</label>
631
+ <frontend_type>text</frontend_type>
632
+ <sort_order>40</sort_order>
633
+ <show_in_default>1</show_in_default>
634
+ <show_in_website>1</show_in_website>
635
+ <show_in_store>1</show_in_store>
636
+ <comment>The number of items shown in "You might also like" boxes on product pages. This number must be between 1 and 10.
637
+ </comment>
638
+ <validate>validate-number validate-number-range number-range-1-10</validate>
639
+ <depends><similar_box>1</similar_box></depends>
640
+ </similar_box_limit>
641
+ <similar_box_columns translate="label">
642
+ <label>Similar Box Columns</label>
643
+ <frontend_type>text</frontend_type>
644
+ <sort_order>50</sort_order>
645
+ <show_in_default>1</show_in_default>
646
+ <show_in_website>1</show_in_website>
647
+ <show_in_store>1</show_in_store>
648
+ <comment>The number of columns in "You might also like" boxes on product pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.</comment>
649
+ <validate>validate-number validate-number-range number-range-1-6</validate>
650
+ <depends>
651
+ <similar_box>1</similar_box>
652
+ <similar_box_layout>content</similar_box_layout>
653
+ </depends>
654
+ </similar_box_columns>
655
+ <personal_heading translate="label">
656
+ <label>Personal Box (ITEM_PAGE_PERSONAL)</label>
657
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
658
+ <sort_order>55</sort_order>
659
+ <show_in_default>1</show_in_default>
660
+ <show_in_website>1</show_in_website>
661
+ <show_in_store>1</show_in_store>
662
+ </personal_heading>
663
+ <personal_box translate="label">
664
+ <label>Enable Personal Box</label>
665
+ <frontend_type>select</frontend_type>
666
+ <source_model>adminhtml/system_config_source_yesno</source_model>
667
+ <sort_order>60</sort_order>
668
+ <show_in_default>1</show_in_default>
669
+ <show_in_website>1</show_in_website>
670
+ <show_in_store>1</show_in_store>
671
+ <comment>Enable "Recommended for you" boxes on product pages.</comment>
672
+ </personal_box>
673
+ <personal_box_layout translate="label">
674
+ <label>Personal Box Layout</label>
675
+ <frontend_type>select</frontend_type>
676
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
677
+ <sort_order>70</sort_order>
678
+ <show_in_default>1</show_in_default>
679
+ <show_in_website>1</show_in_website>
680
+ <show_in_store>1</show_in_store>
681
+ <comment>Select where "Recommended for you" boxes should be shown on product pages.</comment>
682
+ <depends><personal_box>1</personal_box></depends>
683
+ </personal_box_layout>
684
+ <personal_box_title translate="label">
685
+ <label>Personal Box Title</label>
686
+ <frontend_type>text</frontend_type>
687
+ <sort_order>80</sort_order>
688
+ <show_in_default>1</show_in_default>
689
+ <show_in_website>1</show_in_website>
690
+ <show_in_store>1</show_in_store>
691
+ <comment>"Recommended for you" box title on product pages.</comment>
692
+ <depends><personal_box>1</personal_box></depends>
693
+ </personal_box_title>
694
+ <personal_box_limit translate="label">
695
+ <label>Personal Box Product Count</label>
696
+ <frontend_type>text</frontend_type>
697
+ <sort_order>90</sort_order>
698
+ <show_in_default>1</show_in_default>
699
+ <show_in_website>1</show_in_website>
700
+ <show_in_store>1</show_in_store>
701
+ <comment>The number of items shown in "Recommended for you" boxes on product pages. This number must be between 1 and 10.
702
+ </comment>
703
+ <validate>validate-number validate-number-range number-range-1-10</validate>
704
+ <depends><personal_box>1</personal_box></depends>
705
+ </personal_box_limit>
706
+ <personal_box_columns translate="label">
707
+ <label>Personal Box Columns</label>
708
+ <frontend_type>text</frontend_type>
709
+ <sort_order>100</sort_order>
710
+ <show_in_default>1</show_in_default>
711
+ <show_in_website>1</show_in_website>
712
+ <show_in_store>1</show_in_store>
713
+ <comment>The number of columns in "Recommended for you" boxes on product pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.</comment>
714
+ <validate>validate-number validate-number-range number-range-1-6</validate>
715
+ <depends>
716
+ <personal_box>1</personal_box>
717
+ <personal_box_layout>content</personal_box_layout>
718
+ </depends>
719
+ </personal_box_columns>
720
+ <accessories_heading translate="label">
721
+ <label>Accessories Box (ITEM_PAGE_ACCESSORIES)</label>
722
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
723
+ <sort_order>105</sort_order>
724
+ <show_in_default>1</show_in_default>
725
+ <show_in_website>1</show_in_website>
726
+ <show_in_store>1</show_in_store>
727
+ </accessories_heading>
728
+ <accessories_box translate="label">
729
+ <label>Enable Accessories Box</label>
730
+ <frontend_type>select</frontend_type>
731
+ <source_model>adminhtml/system_config_source_yesno</source_model>
732
+ <sort_order>110</sort_order>
733
+ <show_in_default>1</show_in_default>
734
+ <show_in_website>1</show_in_website>
735
+ <show_in_store>1</show_in_store>
736
+ <comment>Enable "You might also need" boxes on product pages.</comment>
737
+ </accessories_box>
738
+ <accessories_box_layout translate="label">
739
+ <label>Accessories Box Layout</label>
740
+ <frontend_type>select</frontend_type>
741
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
742
+ <sort_order>120</sort_order>
743
+ <show_in_default>1</show_in_default>
744
+ <show_in_website>1</show_in_website>
745
+ <show_in_store>1</show_in_store>
746
+ <comment>Select where "You might also need" boxes should be shown on product pages.</comment>
747
+ <depends><accessories_box>1</accessories_box></depends>
748
+ </accessories_box_layout>
749
+ <accessories_box_title translate="label">
750
+ <label>Accessories Box Title</label>
751
+ <frontend_type>text</frontend_type>
752
+ <sort_order>130</sort_order>
753
+ <show_in_default>1</show_in_default>
754
+ <show_in_website>1</show_in_website>
755
+ <show_in_store>1</show_in_store>
756
+ <comment>"You might also need" box title on product pages.</comment>
757
+ <depends><accessories_box>1</accessories_box></depends>
758
+ </accessories_box_title>
759
+ <accessories_box_limit translate="label">
760
+ <label>Accessories Box Product Count</label>
761
+ <frontend_type>text</frontend_type>
762
+ <sort_order>140</sort_order>
763
+ <show_in_default>1</show_in_default>
764
+ <show_in_website>1</show_in_website>
765
+ <show_in_store>1</show_in_store>
766
+ <comment>The number of items shown in "You might also need" boxes on product pages. This number must be between 1 and 10.</comment>
767
+ <validate>validate-number validate-number-range number-range-1-10</validate>
768
+ <depends><accessories_box>1</accessories_box></depends>
769
+ </accessories_box_limit>
770
+ <accessories_box_columns translate="label">
771
+ <label>Accessories Box Columns</label>
772
+ <frontend_type>text</frontend_type>
773
+ <sort_order>150</sort_order>
774
+ <show_in_default>1</show_in_default>
775
+ <show_in_website>1</show_in_website>
776
+ <show_in_store>1</show_in_store>
777
+ <comment>The number of columns in "You might also need" boxes on product pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.</comment>
778
+ <validate>validate-number validate-number-range number-range-1-6</validate>
779
+ <depends>
780
+ <accessories_box>1</accessories_box>
781
+ <accessories_box_layout>content</accessories_box_layout>
782
+ </depends>
783
+ </accessories_box_columns>
784
+ </fields>
785
+ </product_display>
786
+ <category_display translate="label">
787
+ <label>Category Page Display</label>
788
+ <frontend_type>text</frontend_type>
789
+ <sort_order>60</sort_order>
790
+ <show_in_default>1</show_in_default>
791
+ <show_in_website>1</show_in_website>
792
+ <show_in_store>1</show_in_store>
793
+ <fields>
794
+ <personal_heading translate="label">
795
+ <label>Personal Box (CATEGORY_PAGE_PERSONAL)</label>
796
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
797
+ <sort_order>5</sort_order>
798
+ <show_in_default>1</show_in_default>
799
+ <show_in_website>1</show_in_website>
800
+ <show_in_store>1</show_in_store>
801
+ </personal_heading>
802
+ <personal_box translate="label">
803
+ <label>Enable Personal Box</label>
804
+ <frontend_type>select</frontend_type>
805
+ <source_model>adminhtml/system_config_source_yesno</source_model>
806
+ <sort_order>10</sort_order>
807
+ <show_in_default>1</show_in_default>
808
+ <show_in_website>1</show_in_website>
809
+ <show_in_store>1</show_in_store>
810
+ <comment>Enable "Recommended for you" boxes on category pages.</comment>
811
+ </personal_box>
812
+ <personal_box_layout translate="label">
813
+ <label>Personal Box Layout</label>
814
+ <frontend_type>select</frontend_type>
815
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
816
+ <sort_order>20</sort_order>
817
+ <show_in_default>1</show_in_default>
818
+ <show_in_website>1</show_in_website>
819
+ <show_in_store>1</show_in_store>
820
+ <comment>Select where "Recommended for you" boxes should be shown on category pages.</comment>
821
+ <depends><personal_box>1</personal_box></depends>
822
+ </personal_box_layout>
823
+ <personal_box_title translate="label">
824
+ <label>Personal Box Title</label>
825
+ <frontend_type>text</frontend_type>
826
+ <sort_order>30</sort_order>
827
+ <show_in_default>1</show_in_default>
828
+ <show_in_website>1</show_in_website>
829
+ <show_in_store>1</show_in_store>
830
+ <comment>"Recommended for you" box title on category pages.</comment>
831
+ <depends><personal_box>1</personal_box></depends>
832
+ </personal_box_title>
833
+ <personal_box_limit translate="label">
834
+ <label>Personal Box Product Count</label>
835
+ <frontend_type>text</frontend_type>
836
+ <sort_order>40</sort_order>
837
+ <show_in_default>1</show_in_default>
838
+ <show_in_website>1</show_in_website>
839
+ <show_in_store>1</show_in_store>
840
+ <comment>The number of items shown in "Recommended for you" boxes on category pages. This number must be between 1 and 10.</comment>
841
+ <validate>validate-number validate-number-range number-range-1-10</validate>
842
+ <depends><personal_box>1</personal_box></depends>
843
+ </personal_box_limit>
844
+ <personal_box_columns translate="label">
845
+ <label>Personal Box Columns</label>
846
+ <frontend_type>text</frontend_type>
847
+ <sort_order>50</sort_order>
848
+ <show_in_default>1</show_in_default>
849
+ <show_in_website>1</show_in_website>
850
+ <show_in_store>1</show_in_store>
851
+ <comment>The number of columns in "Recommended for you" boxes on category pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.</comment>
852
+ <validate>validate-number validate-number-range number-range-1-6</validate>
853
+ <depends>
854
+ <personal_box>1</personal_box>
855
+ <personal_box_layout>content</personal_box_layout>
856
+ </depends>
857
+ </personal_box_columns>
858
+ <top_heading translate="label">
859
+ <label>Top Box (CATEGORY_PAGE_POP)</label>
860
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
861
+ <sort_order>55</sort_order>
862
+ <show_in_default>1</show_in_default>
863
+ <show_in_website>1</show_in_website>
864
+ <show_in_store>1</show_in_store>
865
+ </top_heading>
866
+ <top_box translate="label">
867
+ <label>Enable Top Box</label>
868
+ <frontend_type>select</frontend_type>
869
+ <source_model>adminhtml/system_config_source_yesno</source_model>
870
+ <sort_order>60</sort_order>
871
+ <show_in_default>1</show_in_default>
872
+ <show_in_website>1</show_in_website>
873
+ <show_in_store>1</show_in_store>
874
+ <comment>Enable "Top products" boxes on category pages.</comment>
875
+ </top_box>
876
+ <top_box_layout translate="label">
877
+ <label>Top Box Layout</label>
878
+ <frontend_type>select</frontend_type>
879
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
880
+ <sort_order>70</sort_order>
881
+ <show_in_default>1</show_in_default>
882
+ <show_in_website>1</show_in_website>
883
+ <show_in_store>1</show_in_store>
884
+ <comment>Select where "Top products" boxes should be shown on category pages.</comment>
885
+ <depends><top_box>1</top_box></depends>
886
+ </top_box_layout>
887
+ <top_box_title translate="label">
888
+ <label>Top Box Title</label>
889
+ <frontend_type>text</frontend_type>
890
+ <sort_order>80</sort_order>
891
+ <show_in_default>1</show_in_default>
892
+ <show_in_website>1</show_in_website>
893
+ <show_in_store>1</show_in_store>
894
+ <comment>"Top products" box title on category pages.</comment>
895
+ <depends><top_box>1</top_box></depends>
896
+ </top_box_title>
897
+ <top_box_limit translate="label">
898
+ <label>Top Box Product Count</label>
899
+ <frontend_type>text</frontend_type>
900
+ <sort_order>90</sort_order>
901
+ <show_in_default>1</show_in_default>
902
+ <show_in_website>1</show_in_website>
903
+ <show_in_store>1</show_in_store>
904
+ <comment>The number of items shown in "Top products" boxes on category pages. This number must be between 1 and 10.</comment>
905
+ <validate>validate-number validate-number-range number-range-1-10</validate>
906
+ <depends><top_box>1</top_box></depends>
907
+ </top_box_limit>
908
+ <top_box_columns translate="label">
909
+ <label>Top Box Columns</label>
910
+ <frontend_type>text</frontend_type>
911
+ <sort_order>100</sort_order>
912
+ <show_in_default>1</show_in_default>
913
+ <show_in_website>1</show_in_website>
914
+ <show_in_store>1</show_in_store>
915
+ <comment>The number of columns in "Top products" boxes on category pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.</comment>
916
+ <validate>validate-number validate-number-range number-range-1-6</validate>
917
+ <depends>
918
+ <top_box>1</top_box>
919
+ <top_box_layout>content</top_box_layout>
920
+ </depends>
921
+ </top_box_columns>
922
+ </fields>
923
+ </category_display>
924
+ <search_display translate="label">
925
+ <label>Search Result Page Display</label>
926
+ <frontend_type>text</frontend_type>
927
+ <sort_order>70</sort_order>
928
+ <show_in_default>1</show_in_default>
929
+ <show_in_website>1</show_in_website>
930
+ <show_in_store>1</show_in_store>
931
+ <fields>
932
+ <search_heading translate="label">
933
+ <label>Recommendation Box (LISTING_PAGE)</label>
934
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
935
+ <sort_order>5</sort_order>
936
+ <show_in_default>1</show_in_default>
937
+ <show_in_website>1</show_in_website>
938
+ <show_in_store>1</show_in_store>
939
+ </search_heading>
940
+ <search_box translate="label">
941
+ <label>Enable Recommendation Box</label>
942
+ <frontend_type>select</frontend_type>
943
+ <source_model>adminhtml/system_config_source_yesno</source_model>
944
+ <sort_order>10</sort_order>
945
+ <show_in_default>1</show_in_default>
946
+ <show_in_website>1</show_in_website>
947
+ <show_in_store>1</show_in_store>
948
+ <comment>Enable "Recommended for you" boxes on search result pages.</comment>
949
+ </search_box>
950
+ <search_box_layout translate="label">
951
+ <label>Recommendation Box Layout</label>
952
+ <frontend_type>select</frontend_type>
953
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
954
+ <sort_order>20</sort_order>
955
+ <show_in_default>1</show_in_default>
956
+ <show_in_website>1</show_in_website>
957
+ <show_in_store>1</show_in_store>
958
+ <comment>Select where "Recommended for you" boxes should be shown on search result pages.</comment>
959
+ <depends><search_box>1</search_box></depends>
960
+ </search_box_layout>
961
+ <search_box_title translate="label">
962
+ <label>Recommendation Box Title</label>
963
+ <frontend_type>text</frontend_type>
964
+ <sort_order>30</sort_order>
965
+ <show_in_default>1</show_in_default>
966
+ <show_in_website>1</show_in_website>
967
+ <show_in_store>1</show_in_store>
968
+ <comment>"Recommended for you" box title on search result pages.</comment>
969
+ <depends><search_box>1</search_box></depends>
970
+ </search_box_title>
971
+ <search_box_limit translate="label">
972
+ <label>Recommendation Box Product Count</label>
973
+ <frontend_type>text</frontend_type>
974
+ <sort_order>40</sort_order>
975
+ <show_in_default>1</show_in_default>
976
+ <show_in_website>1</show_in_website>
977
+ <show_in_store>1</show_in_store>
978
+ <comment>The number of items shown in "Recommended for you" boxes on search result pages. This number must be between 1 and 10.</comment>
979
+ <validate>validate-number validate-number-range number-range-1-10</validate>
980
+ <depends><search_box>1</search_box></depends>
981
+ </search_box_limit>
982
+ <search_box_columns translate="label">
983
+ <label>Recommendation Box Columns</label>
984
+ <frontend_type>text</frontend_type>
985
+ <sort_order>50</sort_order>
986
+ <show_in_default>1</show_in_default>
987
+ <show_in_website>1</show_in_website>
988
+ <show_in_store>1</show_in_store>
989
+ <comment>The number of columns in "Recommended for you" boxes on search result pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.
990
+ </comment>
991
+ <validate>validate-number validate-number-range number-range-1-6</validate>
992
+ <depends>
993
+ <search_box>1</search_box>
994
+ <search_box_layout>content</search_box_layout>
995
+ </depends>
996
+ </search_box_columns>
997
+ </fields>
998
+ </search_display>
999
+ <cart_display translate="label">
1000
+ <label>Cart Page Display</label>
1001
+ <frontend_type>text</frontend_type>
1002
+ <sort_order>80</sort_order>
1003
+ <show_in_default>1</show_in_default>
1004
+ <show_in_website>1</show_in_website>
1005
+ <show_in_store>1</show_in_store>
1006
+ <fields>
1007
+ <cart_heading translate="label">
1008
+ <label>Cart Box (CART_PAGE)</label>
1009
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
1010
+ <sort_order>5</sort_order>
1011
+ <show_in_default>1</show_in_default>
1012
+ <show_in_website>1</show_in_website>
1013
+ <show_in_store>1</show_in_store>
1014
+ </cart_heading>
1015
+ <cart_box translate="label">
1016
+ <label>Enable Cart Box</label>
1017
+ <frontend_type>select</frontend_type>
1018
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1019
+ <sort_order>10</sort_order>
1020
+ <show_in_default>1</show_in_default>
1021
+ <show_in_website>1</show_in_website>
1022
+ <show_in_store>1</show_in_store>
1023
+ <comment>Enable "Others also bought" boxes on cart pages.</comment>
1024
+ </cart_box>
1025
+ <cart_box_layout translate="label">
1026
+ <label>Cart Box Layout</label>
1027
+ <frontend_type>select</frontend_type>
1028
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
1029
+ <sort_order>20</sort_order>
1030
+ <show_in_default>1</show_in_default>
1031
+ <show_in_website>1</show_in_website>
1032
+ <show_in_store>1</show_in_store>
1033
+ <comment>Select where "Others also bought" boxes should be shown on cart pages.</comment>
1034
+ <depends><cart_box>1</cart_box></depends>
1035
+ </cart_box_layout>
1036
+ <cart_box_title translate="label">
1037
+ <label>Cart Box Title</label>
1038
+ <frontend_type>text</frontend_type>
1039
+ <sort_order>30</sort_order>
1040
+ <show_in_default>1</show_in_default>
1041
+ <show_in_website>1</show_in_website>
1042
+ <show_in_store>1</show_in_store>
1043
+ <comment>"Others also bought" box title on cart pages.</comment>
1044
+ <depends><cart_box>1</cart_box></depends>
1045
+ </cart_box_title>
1046
+ <cart_box_limit translate="label">
1047
+ <label>Cart Box Product Count</label>
1048
+ <frontend_type>text</frontend_type>
1049
+ <sort_order>40</sort_order>
1050
+ <show_in_default>1</show_in_default>
1051
+ <show_in_website>1</show_in_website>
1052
+ <show_in_store>1</show_in_store>
1053
+ <comment>The number of items shown in "Others also bought" boxes on cart pages. This number must be between 1 and 10.</comment>
1054
+ <validate>validate-number validate-number-range number-range-1-10</validate>
1055
+ <depends><cart_box>1</cart_box></depends>
1056
+ </cart_box_limit>
1057
+ <cart_box_columns translate="label">
1058
+ <label>Cart Box Columns</label>
1059
+ <frontend_type>text</frontend_type>
1060
+ <sort_order>50</sort_order>
1061
+ <show_in_default>1</show_in_default>
1062
+ <show_in_website>1</show_in_website>
1063
+ <show_in_store>1</show_in_store>
1064
+ <comment>The number of columns in "Others also bought" boxes on cart pages. This number must be between 1 and 6. This option has no effects if the box is in the sidebar.</comment>
1065
+ <validate>validate-number validate-number-range number-range-1-6</validate>
1066
+ <depends>
1067
+ <cart_box>1</cart_box>
1068
+ <cart_box_layout>content</cart_box_layout>
1069
+ </depends>
1070
+ </cart_box_columns>
1071
+ </fields>
1072
+ </cart_display>
1073
+ <sync translate="label">
1074
+ <label>Synchronization</label>
1075
+ <frontend_type>text</frontend_type>
1076
+ <sort_order>90</sort_order>
1077
+ <show_in_default>1</show_in_default>
1078
+ <show_in_website>1</show_in_website>
1079
+ <show_in_store>1</show_in_store>
1080
+ <fields>
1081
+ <customer_update translate="label">
1082
+ <label>Enable Yusp Customer Update</label>
1083
+ <frontend_type>select</frontend_type>
1084
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1085
+ <sort_order>10</sort_order>
1086
+ <show_in_default>1</show_in_default>
1087
+ <show_in_website>1</show_in_website>
1088
+ <show_in_store>1</show_in_store>
1089
+ <comment>If a customer is saved on the backend, it will be updated in the Yusp system.</comment>
1090
+ </customer_update>
1091
+ <product_update translate="label">
1092
+ <label>Enable Yusp Product Update</label>
1093
+ <frontend_type>select</frontend_type>
1094
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1095
+ <sort_order>20</sort_order>
1096
+ <show_in_default>1</show_in_default>
1097
+ <show_in_website>1</show_in_website>
1098
+ <show_in_store>1</show_in_store>
1099
+ <comment>If a product is saved on the backend, it will be updated in the Yusp system.</comment>
1100
+ </product_update>
1101
+ <customer_registration translate="label">
1102
+ <label>Enable Yusp Customer Registration</label>
1103
+ <frontend_type>select</frontend_type>
1104
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1105
+ <sort_order>30</sort_order>
1106
+ <show_in_default>1</show_in_default>
1107
+ <show_in_website>1</show_in_website>
1108
+ <show_in_store>1</show_in_store>
1109
+ <comment>If a customer registers on your site, it will be added to your Yusp database.</comment>
1110
+ </customer_registration>
1111
+ </fields>
1112
+ </sync>
1113
+ <debug translate="label">
1114
+ <label>Debug</label>
1115
+ <frontend_type>text</frontend_type>
1116
+ <sort_order>100</sort_order>
1117
+ <show_in_default>1</show_in_default>
1118
+ <show_in_website>0</show_in_website>
1119
+ <show_in_store>0</show_in_store>
1120
+ <fields>
1121
+ <log translate="label">
1122
+ <label>Enable Debug</label>
1123
+ <frontend_type>select</frontend_type>
1124
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1125
+ <sort_order>10</sort_order>
1126
+ <show_in_default>1</show_in_default>
1127
+ <show_in_website>0</show_in_website>
1128
+ <show_in_store>0</show_in_store>
1129
+ <comment>Enable debug. In this case all transactions will be logged in /var/gravity.log.</comment>
1130
+ </log>
1131
+ <version translate="label">
1132
+ <label>Extension Version</label>
1133
+ <frontend_type>text</frontend_type>
1134
+ <frontend_model>me_gravity/adminhtml_system_config_form_version</frontend_model>
1135
+ <sort_order>20</sort_order>
1136
+ <show_in_default>1</show_in_default>
1137
+ <show_in_website>0</show_in_website>
1138
+ <show_in_store>0</show_in_store>
1139
+ </version>
1140
+ </fields>
1141
+ </debug>
1142
+ </groups>
1143
+ </gravity>
1144
+ </sections>
1145
+ </config>
app/code/community/Me/Gravity/etc/system_backup.xml ADDED
@@ -0,0 +1,1145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Me
5
+ * @package Me_Gravity
6
+ * @author Attila Sági <sagi.attila@magevolve.com>
7
+ * @copyright 2015 Magevolve Ltd. (http://magevolve.com)
8
+ * @license http://magevolve.com/terms-and-conditions Magevolve Ltd. License
9
+ * @link http://magevolve.com
10
+ */
11
+ -->
12
+ <config>
13
+ <tabs>
14
+ <me_tab translate="label" module="me_gravity">
15
+ <label>Recommendations</label>
16
+ <sort_order>500</sort_order>
17
+ </me_tab>
18
+ </tabs>
19
+ <sections>
20
+ <gravity>
21
+ <class>separator-top</class>
22
+ <label>Yusp</label>
23
+ <tab>me_tab</tab>
24
+ <frontend_type>text</frontend_type>
25
+ <sort_order>500</sort_order>
26
+ <show_in_default>1</show_in_default>
27
+ <show_in_website>1</show_in_website>
28
+ <show_in_store>1</show_in_store>
29
+ <groups>
30
+ <config translate="label">
31
+ <label>Settings</label>
32
+ <frontend_type>text</frontend_type>
33
+ <sort_order>10</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>1</show_in_store>
37
+ <fields>
38
+ <enabled translate="label">
39
+ <label>Enable Extension</label>
40
+ <frontend_type>select</frontend_type>
41
+ <source_model>adminhtml/system_config_source_yesno</source_model>
42
+ <sort_order>10</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>1</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ <comment>Enable extension.</comment>
47
+ </enabled>
48
+ <preview translate="label">
49
+ <label>Enable Preview Mode</label>
50
+ <frontend_type>select</frontend_type>
51
+ <source_model>adminhtml/system_config_source_yesno</source_model>
52
+ <sort_order>20</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ <comment>Enabled Preview mode. If set to YES, recommendation boxes are only visible if there is a special ?gr_reco_test=true parameter in the url. E.g.: http://example.com/example-product.html?gr_reco_test=true</comment>
57
+ </preview>
58
+ <api_user translate="label">
59
+ <label>API Username</label>
60
+ <frontend_type>text</frontend_type>
61
+ <sort_order>30</sort_order>
62
+ <show_in_default>1</show_in_default>
63
+ <show_in_website>1</show_in_website>
64
+ <show_in_store>1</show_in_store>
65
+ <comment>API username in the Yusp system.</comment>
66
+ </api_user>
67
+ <api_password translate="label">
68
+ <label>API Password</label>
69
+ <frontend_type>password</frontend_type>
70
+ <sort_order>40</sort_order>
71
+ <show_in_default>1</show_in_default>
72
+ <show_in_website>1</show_in_website>
73
+ <show_in_store>1</show_in_store>
74
+ <comment>API password in the Yusp system.</comment>
75
+ </api_password>
76
+ <api_url translate="label">
77
+ <label>API URL</label>
78
+ <frontend_type>text</frontend_type>
79
+ <sort_order>50</sort_order>
80
+ <show_in_default>1</show_in_default>
81
+ <show_in_website>1</show_in_website>
82
+ <show_in_store>1</show_in_store>
83
+ <comment>API communication URL.</comment>
84
+ </api_url>
85
+ <enabled_js translate="label">
86
+ <label>Enable Custom Yusp Javascript</label>
87
+ <frontend_type>select</frontend_type>
88
+ <source_model>adminhtml/system_config_source_yesno</source_model>
89
+ <sort_order>55</sort_order>
90
+ <show_in_default>1</show_in_default>
91
+ <show_in_website>1</show_in_website>
92
+ <show_in_store>1</show_in_store>
93
+ <comment>Please select YES, if you want to edit or customize the Yusp extension's main javascript.</comment>
94
+ </enabled_js>
95
+ <custom_js translate="label">
96
+ <label>Custom Yusp Javascript</label>
97
+ <frontend_type>textarea</frontend_type>
98
+ <sort_order>56</sort_order>
99
+ <show_in_default>1</show_in_default>
100
+ <show_in_website>1</show_in_website>
101
+ <show_in_store>1</show_in_store>
102
+ <comment><![CDATA[<strong> Important!</strong> Here you can edit the main Yusp javascript. <strong>You have to replace</strong> the two occurrences of the "magento" string in your custom javascript with the API username above!]]></comment>
103
+ <depends>
104
+ <enabled_js>1</enabled_js>
105
+ </depends>
106
+ </custom_js>
107
+ <test translate="label">
108
+ <label>Test Connection</label>
109
+ <frontend_type>button</frontend_type>
110
+ <frontend_model>me_gravity/adminhtml_system_config_form_test</frontend_model>
111
+ <sort_order>60</sort_order>
112
+ <show_in_default>1</show_in_default>
113
+ <show_in_website>1</show_in_website>
114
+ <show_in_store>1</show_in_store>
115
+ <comment>Click here to check the connection between your Yusp account and Magento extension.</comment>
116
+ </test>
117
+ <template translate="label">
118
+ <label>Use Yusp Template</label>
119
+ <frontend_type>select</frontend_type>
120
+ <source_model>adminhtml/system_config_source_yesno</source_model>
121
+ <sort_order>70</sort_order>
122
+ <show_in_default>1</show_in_default>
123
+ <show_in_website>1</show_in_website>
124
+ <show_in_store>1</show_in_store>
125
+ <comment>General display setting. If switched to YES, all boxes will use a Yusp template.</comment>
126
+ </template>
127
+ <bulk translate="label">
128
+ <label>Enable Bulk Recommendation</label>
129
+ <frontend_type>select</frontend_type>
130
+ <source_model>adminhtml/system_config_source_yesno</source_model>
131
+ <sort_order>80</sort_order>
132
+ <show_in_default>1</show_in_default>
133
+ <show_in_website>1</show_in_website>
134
+ <show_in_store>1</show_in_store>
135
+ <comment>General recommendation setting. If switched to YES, bulk recommendation will be enabled.</comment>
136
+ </bulk>
137
+ </fields>
138
+ </config>
139
+ <export translate="label">
140
+ <label>Export Products</label>
141
+ <frontend_type>text</frontend_type>
142
+ <sort_order>20</sort_order>
143
+ <show_in_default>1</show_in_default>
144
+ <show_in_website>0</show_in_website>
145
+ <show_in_store>0</show_in_store>
146
+ <fields>
147
+ <catalog_path translate="label">
148
+ <label>Catalog Export File Path</label>
149
+ <frontend_type>text</frontend_type>
150
+ <sort_order>10</sort_order>
151
+ <show_in_default>1</show_in_default>
152
+ <show_in_website>0</show_in_website>
153
+ <show_in_store>0</show_in_store>
154
+ <comment>The path where the catalog export file will be saved (relative to your Magento folder). Example: "yusp/" (path must be writeable).</comment>
155
+ </catalog_path>
156
+ <all translate="label">
157
+ <label>Enable Full Product Export</label>
158
+ <frontend_type>select</frontend_type>
159
+ <source_model>adminhtml/system_config_source_yesno</source_model>
160
+ <sort_order>15</sort_order>
161
+ <show_in_default>1</show_in_default>
162
+ <show_in_website>0</show_in_website>
163
+ <show_in_store>0</show_in_store>
164
+ <comment>Enable the export of all your products. Otherwise, please select NO and set a maximum number. Note: switching this to YES can impact your site’s performance. </comment>
165
+ </all>
166
+ <max translate="label">
167
+ <label>Maximum Products Export</label>
168
+ <frontend_type>text</frontend_type>
169
+ <sort_order>20</sort_order>
170
+ <show_in_default>1</show_in_default>
171
+ <show_in_website>0</show_in_website>
172
+ <show_in_store>0</show_in_store>
173
+ <comment>The maximum number of products to be exported. This number must be between 1 and 1000.</comment>
174
+ <validate>validate-number validate-number-range number-range-1-1000</validate>
175
+ <depends><all>0</all></depends>
176
+ </max>
177
+ <description_enabled translate="label">
178
+ <label>Enable Product Descriptions in the Export</label>
179
+ <frontend_type>select</frontend_type>
180
+ <source_model>adminhtml/system_config_source_yesno</source_model>
181
+ <sort_order>25</sort_order>
182
+ <show_in_default>1</show_in_default>
183
+ <show_in_website>0</show_in_website>
184
+ <show_in_store>0</show_in_store>
185
+ <comment>Please, select YES if you wish to include product description attributes in the catalog export.</comment>
186
+ </description_enabled>
187
+ <additional translate="label">
188
+ <label>Additional Attributes</label>
189
+ <frontend_type>multiselect</frontend_type>
190
+ <source_model>me_gravity/system_config_source_catalog_attributes</source_model>
191
+ <sort_order>30</sort_order>
192
+ <show_in_default>1</show_in_default>
193
+ <show_in_website>0</show_in_website>
194
+ <show_in_store>0</show_in_store>
195
+ <comment>Select additional attributes for catalog export.</comment>
196
+ </additional>
197
+ <only_salable translate="label">
198
+ <label>Only In-stock</label>
199
+ <frontend_type>select</frontend_type>
200
+ <source_model>adminhtml/system_config_source_yesno</source_model>
201
+ <sort_order>40</sort_order>
202
+ <show_in_default>1</show_in_default>
203
+ <show_in_website>0</show_in_website>
204
+ <show_in_store>0</show_in_store>
205
+ <comment>If switched to YES, only products with quantities exceeding zero will be exported. If your store doesn't use stock management, also choose YES.</comment>
206
+ </only_salable>
207
+ <status translate="label">
208
+ <label>Export Disabled Products</label>
209
+ <frontend_type>select</frontend_type>
210
+ <source_model>adminhtml/system_config_source_yesno</source_model>
211
+ <sort_order>45</sort_order>
212
+ <show_in_default>1</show_in_default>
213
+ <show_in_website>0</show_in_website>
214
+ <show_in_store>0</show_in_store>
215
+ <comment>Please select YES, if you want to add products with disabled status to the catalog export.</comment>
216
+ <depends>
217
+ <only_salable>0</only_salable>
218
+ </depends>
219
+ </status>
220
+ <catalog_cron translate="label">
221
+ <label>Enable Scheduled Export</label>
222
+ <frontend_type>select</frontend_type>
223
+ <source_model>adminhtml/system_config_source_yesno</source_model>
224
+ <backend_model>me_gravity/system_config_backend_catalog_cron</backend_model>
225
+ <sort_order>50</sort_order>
226
+ <show_in_default>1</show_in_default>
227
+ <show_in_website>0</show_in_website>
228
+ <show_in_store>0</show_in_store>
229
+ <comment>Enable scheduled export on cron jobs. Note: you must configure your server to run cron jobs.</comment>
230
+ </catalog_cron>
231
+ <catalog_cron_time translate="label">
232
+ <label>Start Time</label>
233
+ <frontend_type>time</frontend_type>
234
+ <sort_order>60</sort_order>
235
+ <show_in_default>1</show_in_default>
236
+ <show_in_website>0</show_in_website>
237
+ <show_in_store>0</show_in_store>
238
+ <comment>Daily start time for automatic catalog export via cron job.</comment>
239
+ <depends><catalog_cron>1</catalog_cron></depends>
240
+ </catalog_cron_time>
241
+ <catalog translate="label">
242
+ <label>Export Product Catalog</label>
243
+ <frontend_type>button</frontend_type>
244
+ <frontend_model>me_gravity/adminhtml_system_config_form_catalog</frontend_model>
245
+ <sort_order>70</sort_order>
246
+ <show_in_default>1</show_in_default>
247
+ <show_in_website>0</show_in_website>
248
+ <show_in_store>0</show_in_store>
249
+ <comment>Export your product catalog in an XML file. Note: this operation can impact your site’s performance.</comment>
250
+ </catalog>
251
+ </fields>
252
+ </export>
253
+ <cutomer_export translate="label">
254
+ <label>Export Customers</label>
255
+ <frontend_type>text</frontend_type>
256
+ <sort_order>30</sort_order>
257
+ <show_in_default>1</show_in_default>
258
+ <show_in_website>1</show_in_website>
259
+ <show_in_store>1</show_in_store>
260
+ <fields>
261
+ <all translate="label">
262
+ <label>Enable Full Customer Export</label>
263
+ <frontend_type>select</frontend_type>
264
+ <source_model>adminhtml/system_config_source_yesno</source_model>
265
+ <sort_order>5</sort_order>
266
+ <show_in_default>1</show_in_default>
267
+ <show_in_website>1</show_in_website>
268
+ <show_in_store>1</show_in_store>
269
+ <comment>Enable the export of all customers. Otherwise, please, select no and set a maximum number. Note: This operation can impact the performance of your site.</comment>
270
+ </all>
271
+ <max translate="label">
272
+ <label>Maximum Customers Export</label>
273
+ <frontend_type>text</frontend_type>
274
+ <sort_order>10</sort_order>
275
+ <show_in_default>1</show_in_default>
276
+ <show_in_website>1</show_in_website>
277
+ <show_in_store>1</show_in_store>
278
+ <comment>The maximum number of customers to be exported. This number must be between 1 and 1000.</comment>
279
+ <validate>validate-number validate-number-range number-range-1-1000</validate>
280
+ <depends><all>0</all></depends>
281
+ </max>
282
+ <additional translate="label">
283
+ <label>Additional Attributes</label>
284
+ <frontend_type>multiselect</frontend_type>
285
+ <source_model>me_gravity/system_config_source_customer_attributes</source_model>
286
+ <sort_order>20</sort_order>
287
+ <show_in_default>1</show_in_default>
288
+ <show_in_website>1</show_in_website>
289
+ <show_in_store>1</show_in_store>
290
+ <comment>Select additional attributes for customer export.</comment>
291
+ </additional>
292
+ <customer translate="label">
293
+ <label>Export Customers</label>
294
+ <frontend_type>button</frontend_type>
295
+ <frontend_model>me_gravity/adminhtml_system_config_form_customer</frontend_model>
296
+ <sort_order>30</sort_order>
297
+ <show_in_default>1</show_in_default>
298
+ <show_in_website>1</show_in_website>
299
+ <show_in_store>1</show_in_store>
300
+ <comment>Export your customers in an XML file. Note: this operation can impact your site’s performance.</comment>
301
+ </customer>
302
+ </fields>
303
+ </cutomer_export>
304
+ <general_display translate="label">
305
+ <label>General Pages Display</label>
306
+ <frontend_type>text</frontend_type>
307
+ <sort_order>40</sort_order>
308
+ <show_in_default>1</show_in_default>
309
+ <show_in_website>1</show_in_website>
310
+ <show_in_store>1</show_in_store>
311
+ <fields>
312
+ <pages translate="label">
313
+ <label>Enabled Pages</label>
314
+ <frontend_type>multiselect</frontend_type>
315
+ <source_model>me_gravity/system_config_source_layout_pages</source_model>
316
+ <sort_order>1</sort_order>
317
+ <show_in_default>1</show_in_default>
318
+ <show_in_website>1</show_in_website>
319
+ <show_in_store>1</show_in_store>
320
+ <comment>Pages on general layout recommendation boxes enabled.</comment>
321
+ </pages>
322
+ <best_heading translate="label">
323
+ <label>Personal Best Box (PERSONAL_BEST)</label>
324
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
325
+ <sort_order>5</sort_order>
326
+ <show_in_default>1</show_in_default>
327
+ <show_in_website>1</show_in_website>
328
+ <show_in_store>1</show_in_store>
329
+ </best_heading>
330
+ <best_box translate="label">
331
+ <label>Enable Personal Best Box</label>
332
+ <frontend_type>select</frontend_type>
333
+ <source_model>adminhtml/system_config_source_yesno</source_model>
334
+ <sort_order>10</sort_order>
335
+ <show_in_default>1</show_in_default>
336
+ <show_in_website>1</show_in_website>
337
+ <show_in_store>1</show_in_store>
338
+ <comment>Enable "Recommended for you” boxes on general pages. </comment>
339
+ </best_box>
340
+ <best_box_layout translate="label">
341
+ <label>Personal Best Box Layout</label>
342
+ <frontend_type>select</frontend_type>
343
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
344
+ <sort_order>20</sort_order>
345
+ <show_in_default>1</show_in_default>
346
+ <show_in_website>1</show_in_website>
347
+ <show_in_store>1</show_in_store>
348
+ <comment>Select where "Recommended for you” boxes should be shown on general pages.</comment>
349
+ <depends><best_box>1</best_box></depends>
350
+ </best_box_layout>
351
+ <best_box_title translate="label">
352
+ <label>Personal Best Box Title</label>
353
+ <frontend_type>text</frontend_type>
354
+ <sort_order>30</sort_order>
355
+ <show_in_default>1</show_in_default>
356
+ <show_in_website>1</show_in_website>
357
+ <show_in_store>1</show_in_store>
358
+ <comment>"Recommended for you" box title on general pages.</comment>
359
+ <depends><best_box>1</best_box></depends>
360
+ </best_box_title>
361
+ <best_box_limit translate="label">
362
+ <label>Personal Best Box Product Count</label>
363
+ <frontend_type>text</frontend_type>
364
+ <sort_order>40</sort_order>
365
+ <show_in_default>1</show_in_default>
366
+ <show_in_website>1</show_in_website>
367
+ <show_in_store>1</show_in_store>
368
+ <comment>Number of items shown in "Recommended for you" boxes on general pages. This number must be between 1 and 10.
369
+ </comment>
370
+ <validate>validate-number validate-number-range number-range-1-10</validate>
371
+ <depends><best_box>1</best_box></depends>
372
+ </best_box_limit>
373
+ <best_box_columns translate="label">
374
+ <label>Personal Best Box Columns</label>
375
+ <frontend_type>text</frontend_type>
376
+ <sort_order>50</sort_order>
377
+ <show_in_default>1</show_in_default>
378
+ <show_in_website>1</show_in_website>
379
+ <show_in_store>1</show_in_store>
380
+ <comment>The number of columns in "Recommended for you" boxes on general pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.</comment>
381
+ <validate>validate-number validate-number-range number-range-1-6</validate>
382
+ <depends>
383
+ <best_box>1</best_box>
384
+ <best_box_layout>content</best_box_layout>
385
+ </depends>
386
+ </best_box_columns>
387
+ <history_heading translate="label">
388
+ <label>History Box (PERSONAL_HISTORY)</label>
389
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
390
+ <sort_order>55</sort_order>
391
+ <show_in_default>1</show_in_default>
392
+ <show_in_website>1</show_in_website>
393
+ <show_in_store>1</show_in_store>
394
+ </history_heading>
395
+ <history_box translate="label">
396
+ <label>Enable History Box</label>
397
+ <frontend_type>select</frontend_type>
398
+ <source_model>adminhtml/system_config_source_yesno</source_model>
399
+ <sort_order>60</sort_order>
400
+ <show_in_default>1</show_in_default>
401
+ <show_in_website>1</show_in_website>
402
+ <show_in_store>1</show_in_store>
403
+ <comment>Enable "You viewed" boxes on general pages.</comment>
404
+ </history_box>
405
+ <history_box_layout translate="label">
406
+ <label>History Box Layout</label>
407
+ <frontend_type>select</frontend_type>
408
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
409
+ <sort_order>70</sort_order>
410
+ <show_in_default>1</show_in_default>
411
+ <show_in_website>1</show_in_website>
412
+ <show_in_store>1</show_in_store>
413
+ <comment>Select where "You viewed" boxes should be shown on general pages.</comment>
414
+ <depends><history_box>1</history_box></depends>
415
+ </history_box_layout>
416
+ <history_box_title translate="label">
417
+ <label>History Box Title</label>
418
+ <frontend_type>text</frontend_type>
419
+ <sort_order>80</sort_order>
420
+ <show_in_default>1</show_in_default>
421
+ <show_in_website>1</show_in_website>
422
+ <show_in_store>1</show_in_store>
423
+ <comment>"You viewed" box title on general pages.</comment>
424
+ <depends><history_box>1</history_box></depends>
425
+ </history_box_title>
426
+ <history_box_limit translate="label">
427
+ <label>History Box Product Count</label>
428
+ <frontend_type>text</frontend_type>
429
+ <sort_order>90</sort_order>
430
+ <show_in_default>1</show_in_default>
431
+ <show_in_website>1</show_in_website>
432
+ <show_in_store>1</show_in_store>
433
+ <comment>Number of items shown in "You viewed" boxes on general pages. This number must be between 1 and 10.
434
+ </comment>
435
+ <validate>validate-number validate-number-range number-range-1-10</validate>
436
+ <depends><history_box>1</history_box></depends>
437
+ </history_box_limit>
438
+ <history_box_columns translate="label">
439
+ <label>History Box Columns</label>
440
+ <frontend_type>text</frontend_type>
441
+ <sort_order>100</sort_order>
442
+ <show_in_default>1</show_in_default>
443
+ <show_in_website>1</show_in_website>
444
+ <show_in_store>1</show_in_store>
445
+ <comment>The number of columns in "You viewed" boxes on general pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.</comment>
446
+ <validate>validate-number validate-number-range number-range-1-6</validate>
447
+ <depends>
448
+ <history_box>1</history_box>
449
+ <history_box_layout>content</history_box_layout>
450
+ </depends>
451
+ </history_box_columns>
452
+ <others_heading translate="label">
453
+ <label>Currently Viewed Box (CURRENTLY_VIEWED)</label>
454
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
455
+ <sort_order>105</sort_order>
456
+ <show_in_default>1</show_in_default>
457
+ <show_in_website>1</show_in_website>
458
+ <show_in_store>1</show_in_store>
459
+ </others_heading>
460
+ <others_box translate="label">
461
+ <label>Enable Currently Viewed Box</label>
462
+ <frontend_type>select</frontend_type>
463
+ <source_model>adminhtml/system_config_source_yesno</source_model>
464
+ <sort_order>110</sort_order>
465
+ <show_in_default>1</show_in_default>
466
+ <show_in_website>1</show_in_website>
467
+ <show_in_store>1</show_in_store>
468
+ <comment>Enable "Others are looking at right now" boxes on general pages.</comment>
469
+ </others_box>
470
+ <others_box_layout translate="label">
471
+ <label>Currently Viewed Box Layout</label>
472
+ <frontend_type>select</frontend_type>
473
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
474
+ <sort_order>120</sort_order>
475
+ <show_in_default>1</show_in_default>
476
+ <show_in_website>1</show_in_website>
477
+ <show_in_store>1</show_in_store>
478
+ <comment>Select where "Others are looking at right now" boxes should be shown on general pages.</comment>
479
+ <depends><others_box>1</others_box></depends>
480
+ </others_box_layout>
481
+ <others_box_title translate="label">
482
+ <label>Currently Viewed Box Title</label>
483
+ <frontend_type>text</frontend_type>
484
+ <sort_order>130</sort_order>
485
+ <show_in_default>1</show_in_default>
486
+ <show_in_website>1</show_in_website>
487
+ <show_in_store>1</show_in_store>
488
+ <comment>"Others are looking at right now" box title on general pages.</comment>
489
+ <depends><others_box>1</others_box></depends>
490
+ </others_box_title>
491
+ <others_box_limit translate="label">
492
+ <label>Currently Viewed Box Product Count</label>
493
+ <frontend_type>text</frontend_type>
494
+ <sort_order>140</sort_order>
495
+ <show_in_default>1</show_in_default>
496
+ <show_in_website>1</show_in_website>
497
+ <show_in_store>1</show_in_store>
498
+ <comment>Number of items shown in "Others are looking at right now" boxes on general pages. This number must be between 1 and 10.</comment>
499
+ <validate>validate-number validate-number-range number-range-1-10</validate>
500
+ <depends><others_box>1</others_box></depends>
501
+ </others_box_limit>
502
+ <others_box_columns translate="label">
503
+ <label>Currently Viewed Box Columns</label>
504
+ <frontend_type>text</frontend_type>
505
+ <sort_order>150</sort_order>
506
+ <show_in_default>1</show_in_default>
507
+ <show_in_website>1</show_in_website>
508
+ <show_in_store>1</show_in_store>
509
+ <comment>The number of columns in "Others are looking at right now" boxes on general pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.</comment>
510
+ <validate>validate-number validate-number-range number-range-1-6</validate>
511
+ <depends>
512
+ <others_box>1</others_box>
513
+ <others_box_layout>content</others_box_layout>
514
+ </depends>
515
+ </others_box_columns>
516
+ <popular_heading translate="label">
517
+ <label>Popular Box (POPULAR)</label>
518
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
519
+ <sort_order>155</sort_order>
520
+ <show_in_default>1</show_in_default>
521
+ <show_in_website>1</show_in_website>
522
+ <show_in_store>1</show_in_store>
523
+ </popular_heading>
524
+ <popular_box translate="label">
525
+ <label>Enable Popular Box</label>
526
+ <frontend_type>select</frontend_type>
527
+ <source_model>adminhtml/system_config_source_yesno</source_model>
528
+ <sort_order>160</sort_order>
529
+ <show_in_default>1</show_in_default>
530
+ <show_in_website>1</show_in_website>
531
+ <show_in_store>1</show_in_store>
532
+ <comment>Enable "Top products" boxes on general pages.</comment>
533
+ </popular_box>
534
+ <popular_box_layout translate="label">
535
+ <label>Popular Box Layout</label>
536
+ <frontend_type>select</frontend_type>
537
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
538
+ <sort_order>170</sort_order>
539
+ <show_in_default>1</show_in_default>
540
+ <show_in_website>1</show_in_website>
541
+ <show_in_store>1</show_in_store>
542
+ <comment>Select where "Top products" boxes should be shown on general pages.</comment>
543
+ <depends><popular_box>1</popular_box></depends>
544
+ </popular_box_layout>
545
+ <popular_box_title translate="label">
546
+ <label>Popular Box Title</label>
547
+ <frontend_type>text</frontend_type>
548
+ <sort_order>180</sort_order>
549
+ <show_in_default>1</show_in_default>
550
+ <show_in_website>1</show_in_website>
551
+ <show_in_store>1</show_in_store>
552
+ <comment>"Top products" box title on general pages.</comment>
553
+ <depends><popular_box>1</popular_box></depends>
554
+ </popular_box_title>
555
+ <popular_box_limit translate="label">
556
+ <label>Popular Box Product Count</label>
557
+ <frontend_type>text</frontend_type>
558
+ <sort_order>190</sort_order>
559
+ <show_in_default>1</show_in_default>
560
+ <show_in_website>1</show_in_website>
561
+ <show_in_store>1</show_in_store>
562
+ <comment>Number of items shown in "Top products" boxes on general pages. This number must be between 1 and 10.</comment>
563
+ <validate>validate-number validate-number-range number-range-1-10</validate>
564
+ <depends><popular_box>1</popular_box></depends>
565
+ </popular_box_limit>
566
+ <popular_box_columns translate="label">
567
+ <label>Popular Box Columns</label>
568
+ <frontend_type>text</frontend_type>
569
+ <sort_order>200</sort_order>
570
+ <show_in_default>1</show_in_default>
571
+ <show_in_website>1</show_in_website>
572
+ <show_in_store>1</show_in_store>
573
+ <comment>The number of columns in "Top products" boxes on general pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.</comment>
574
+ <validate>validate-number validate-number-range number-range-1-6</validate>
575
+ <depends>
576
+ <popular_box>1</popular_box>
577
+ <popular_box_layout>content</popular_box_layout>
578
+ </depends>
579
+ </popular_box_columns>
580
+ </fields>
581
+ </general_display>
582
+ <product_display translate="label">
583
+ <label>Product Page Display</label>
584
+ <frontend_type>text</frontend_type>
585
+ <sort_order>50</sort_order>
586
+ <show_in_default>1</show_in_default>
587
+ <show_in_website>1</show_in_website>
588
+ <show_in_store>1</show_in_store>
589
+ <fields>
590
+ <similar_heading translate="label">
591
+ <label>Similar Box (ITEM_PAGE_SIMILAR)</label>
592
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
593
+ <sort_order>5</sort_order>
594
+ <show_in_default>1</show_in_default>
595
+ <show_in_website>1</show_in_website>
596
+ <show_in_store>1</show_in_store>
597
+ </similar_heading>
598
+ <similar_box translate="label">
599
+ <label>Enable Similar Box</label>
600
+ <frontend_type>select</frontend_type>
601
+ <source_model>adminhtml/system_config_source_yesno</source_model>
602
+ <sort_order>10</sort_order>
603
+ <show_in_default>1</show_in_default>
604
+ <show_in_website>1</show_in_website>
605
+ <show_in_store>1</show_in_store>
606
+ <comment>Enable "You might also like" boxes on product pages.</comment>
607
+ </similar_box>
608
+ <similar_box_layout translate="label">
609
+ <label>Similar Box Layout</label>
610
+ <frontend_type>select</frontend_type>
611
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
612
+ <sort_order>20</sort_order>
613
+ <show_in_default>1</show_in_default>
614
+ <show_in_website>1</show_in_website>
615
+ <show_in_store>1</show_in_store>
616
+ <comment>Select where "You might also like" boxes should be shown on product pages.</comment>
617
+ <depends><similar_box>1</similar_box></depends>
618
+ </similar_box_layout>
619
+ <similar_box_title translate="label">
620
+ <label>Similar Box Title</label>
621
+ <frontend_type>text</frontend_type>
622
+ <sort_order>30</sort_order>
623
+ <show_in_default>1</show_in_default>
624
+ <show_in_website>1</show_in_website>
625
+ <show_in_store>1</show_in_store>
626
+ <comment>"You might also like" box title on product pages.</comment>
627
+ <depends><similar_box>1</similar_box></depends>
628
+ </similar_box_title>
629
+ <similar_box_limit translate="label">
630
+ <label>Similar Box Product Count</label>
631
+ <frontend_type>text</frontend_type>
632
+ <sort_order>40</sort_order>
633
+ <show_in_default>1</show_in_default>
634
+ <show_in_website>1</show_in_website>
635
+ <show_in_store>1</show_in_store>
636
+ <comment>Number of items shown in "You might also like" boxes on product pages. This number must be between 1 and 10.
637
+ </comment>
638
+ <validate>validate-number validate-number-range number-range-1-10</validate>
639
+ <depends><similar_box>1</similar_box></depends>
640
+ </similar_box_limit>
641
+ <similar_box_columns translate="label">
642
+ <label>Similar Box Columns</label>
643
+ <frontend_type>text</frontend_type>
644
+ <sort_order>50</sort_order>
645
+ <show_in_default>1</show_in_default>
646
+ <show_in_website>1</show_in_website>
647
+ <show_in_store>1</show_in_store>
648
+ <comment>The number of columns in "You might also like" boxes on product pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.</comment>
649
+ <validate>validate-number validate-number-range number-range-1-6</validate>
650
+ <depends>
651
+ <similar_box>1</similar_box>
652
+ <similar_box_layout>content</similar_box_layout>
653
+ </depends>
654
+ </similar_box_columns>
655
+ <personal_heading translate="label">
656
+ <label>Personal Box (ITEM_PAGE_PERSONAL)</label>
657
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
658
+ <sort_order>55</sort_order>
659
+ <show_in_default>1</show_in_default>
660
+ <show_in_website>1</show_in_website>
661
+ <show_in_store>1</show_in_store>
662
+ </personal_heading>
663
+ <personal_box translate="label">
664
+ <label>Enable Personal Box</label>
665
+ <frontend_type>select</frontend_type>
666
+ <source_model>adminhtml/system_config_source_yesno</source_model>
667
+ <sort_order>60</sort_order>
668
+ <show_in_default>1</show_in_default>
669
+ <show_in_website>1</show_in_website>
670
+ <show_in_store>1</show_in_store>
671
+ <comment>Enable "Recommended for you" boxes on product pages.</comment>
672
+ </personal_box>
673
+ <personal_box_layout translate="label">
674
+ <label>Personal Box Layout</label>
675
+ <frontend_type>select</frontend_type>
676
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
677
+ <sort_order>70</sort_order>
678
+ <show_in_default>1</show_in_default>
679
+ <show_in_website>1</show_in_website>
680
+ <show_in_store>1</show_in_store>
681
+ <comment>Select where "Recommended for you" boxes should be shown on product pages.</comment>
682
+ <depends><personal_box>1</personal_box></depends>
683
+ </personal_box_layout>
684
+ <personal_box_title translate="label">
685
+ <label>Personal Box Title</label>
686
+ <frontend_type>text</frontend_type>
687
+ <sort_order>80</sort_order>
688
+ <show_in_default>1</show_in_default>
689
+ <show_in_website>1</show_in_website>
690
+ <show_in_store>1</show_in_store>
691
+ <comment>"Recommended for you" box title on product pages.</comment>
692
+ <depends><personal_box>1</personal_box></depends>
693
+ </personal_box_title>
694
+ <personal_box_limit translate="label">
695
+ <label>Personal Box Product Count</label>
696
+ <frontend_type>text</frontend_type>
697
+ <sort_order>90</sort_order>
698
+ <show_in_default>1</show_in_default>
699
+ <show_in_website>1</show_in_website>
700
+ <show_in_store>1</show_in_store>
701
+ <comment>Number of items shown in "Recommended for you" boxes on product pages. This number must be between 1 and 10.
702
+ </comment>
703
+ <validate>validate-number validate-number-range number-range-1-10</validate>
704
+ <depends><personal_box>1</personal_box></depends>
705
+ </personal_box_limit>
706
+ <personal_box_columns translate="label">
707
+ <label>Personal Box Columns</label>
708
+ <frontend_type>text</frontend_type>
709
+ <sort_order>100</sort_order>
710
+ <show_in_default>1</show_in_default>
711
+ <show_in_website>1</show_in_website>
712
+ <show_in_store>1</show_in_store>
713
+ <comment>The number of columns in "Recommended for you" boxes on product pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.</comment>
714
+ <validate>validate-number validate-number-range number-range-1-6</validate>
715
+ <depends>
716
+ <personal_box>1</personal_box>
717
+ <personal_box_layout>content</personal_box_layout>
718
+ </depends>
719
+ </personal_box_columns>
720
+ <accessories_heading translate="label">
721
+ <label>Accessories Box (ITEM_PAGE_ACCESSORIES)</label>
722
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
723
+ <sort_order>105</sort_order>
724
+ <show_in_default>1</show_in_default>
725
+ <show_in_website>1</show_in_website>
726
+ <show_in_store>1</show_in_store>
727
+ </accessories_heading>
728
+ <accessories_box translate="label">
729
+ <label>Enable Accessories Box</label>
730
+ <frontend_type>select</frontend_type>
731
+ <source_model>adminhtml/system_config_source_yesno</source_model>
732
+ <sort_order>110</sort_order>
733
+ <show_in_default>1</show_in_default>
734
+ <show_in_website>1</show_in_website>
735
+ <show_in_store>1</show_in_store>
736
+ <comment>Enable "You might also need" boxes on product pages.</comment>
737
+ </accessories_box>
738
+ <accessories_box_layout translate="label">
739
+ <label>Accessories Box Layout</label>
740
+ <frontend_type>select</frontend_type>
741
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
742
+ <sort_order>120</sort_order>
743
+ <show_in_default>1</show_in_default>
744
+ <show_in_website>1</show_in_website>
745
+ <show_in_store>1</show_in_store>
746
+ <comment>Select where "You might also need" boxes should be shown on product pages.</comment>
747
+ <depends><accessories_box>1</accessories_box></depends>
748
+ </accessories_box_layout>
749
+ <accessories_box_title translate="label">
750
+ <label>Accessories Box Title</label>
751
+ <frontend_type>text</frontend_type>
752
+ <sort_order>130</sort_order>
753
+ <show_in_default>1</show_in_default>
754
+ <show_in_website>1</show_in_website>
755
+ <show_in_store>1</show_in_store>
756
+ <comment>"You might also need" box title on product pages.</comment>
757
+ <depends><accessories_box>1</accessories_box></depends>
758
+ </accessories_box_title>
759
+ <accessories_box_limit translate="label">
760
+ <label>Accessories Box Product Count</label>
761
+ <frontend_type>text</frontend_type>
762
+ <sort_order>140</sort_order>
763
+ <show_in_default>1</show_in_default>
764
+ <show_in_website>1</show_in_website>
765
+ <show_in_store>1</show_in_store>
766
+ <comment>Number of items shown in "You might also need" boxes on product pages. This number must be between 1 and 10.</comment>
767
+ <validate>validate-number validate-number-range number-range-1-10</validate>
768
+ <depends><accessories_box>1</accessories_box></depends>
769
+ </accessories_box_limit>
770
+ <accessories_box_columns translate="label">
771
+ <label>Accessories Box Columns</label>
772
+ <frontend_type>text</frontend_type>
773
+ <sort_order>150</sort_order>
774
+ <show_in_default>1</show_in_default>
775
+ <show_in_website>1</show_in_website>
776
+ <show_in_store>1</show_in_store>
777
+ <comment>The number of columns in "You might also need" boxes on product pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.</comment>
778
+ <validate>validate-number validate-number-range number-range-1-6</validate>
779
+ <depends>
780
+ <accessories_box>1</accessories_box>
781
+ <accessories_box_layout>content</accessories_box_layout>
782
+ </depends>
783
+ </accessories_box_columns>
784
+ </fields>
785
+ </product_display>
786
+ <category_display translate="label">
787
+ <label>Category Page Display</label>
788
+ <frontend_type>text</frontend_type>
789
+ <sort_order>60</sort_order>
790
+ <show_in_default>1</show_in_default>
791
+ <show_in_website>1</show_in_website>
792
+ <show_in_store>1</show_in_store>
793
+ <fields>
794
+ <personal_heading translate="label">
795
+ <label>Personal Box (CATEGORY_PAGE_PERSONAL)</label>
796
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
797
+ <sort_order>5</sort_order>
798
+ <show_in_default>1</show_in_default>
799
+ <show_in_website>1</show_in_website>
800
+ <show_in_store>1</show_in_store>
801
+ </personal_heading>
802
+ <personal_box translate="label">
803
+ <label>Enable Personal Box</label>
804
+ <frontend_type>select</frontend_type>
805
+ <source_model>adminhtml/system_config_source_yesno</source_model>
806
+ <sort_order>10</sort_order>
807
+ <show_in_default>1</show_in_default>
808
+ <show_in_website>1</show_in_website>
809
+ <show_in_store>1</show_in_store>
810
+ <comment>Enable "Recommended for you" boxes on category pages.</comment>
811
+ </personal_box>
812
+ <personal_box_layout translate="label">
813
+ <label>Personal Box Layout</label>
814
+ <frontend_type>select</frontend_type>
815
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
816
+ <sort_order>20</sort_order>
817
+ <show_in_default>1</show_in_default>
818
+ <show_in_website>1</show_in_website>
819
+ <show_in_store>1</show_in_store>
820
+ <comment>Select where "Recommended for you" boxes should be shown on category pages.</comment>
821
+ <depends><personal_box>1</personal_box></depends>
822
+ </personal_box_layout>
823
+ <personal_box_title translate="label">
824
+ <label>Personal Box Title</label>
825
+ <frontend_type>text</frontend_type>
826
+ <sort_order>30</sort_order>
827
+ <show_in_default>1</show_in_default>
828
+ <show_in_website>1</show_in_website>
829
+ <show_in_store>1</show_in_store>
830
+ <comment>"Recommended for you" box title on category pages.</comment>
831
+ <depends><personal_box>1</personal_box></depends>
832
+ </personal_box_title>
833
+ <personal_box_limit translate="label">
834
+ <label>Personal Box Product Count</label>
835
+ <frontend_type>text</frontend_type>
836
+ <sort_order>40</sort_order>
837
+ <show_in_default>1</show_in_default>
838
+ <show_in_website>1</show_in_website>
839
+ <show_in_store>1</show_in_store>
840
+ <comment>Number of items shown in "Recommended for you" boxes on category pages. This number must be between 1 and 10.</comment>
841
+ <validate>validate-number validate-number-range number-range-1-10</validate>
842
+ <depends><personal_box>1</personal_box></depends>
843
+ </personal_box_limit>
844
+ <personal_box_columns translate="label">
845
+ <label>Personal Box Columns</label>
846
+ <frontend_type>text</frontend_type>
847
+ <sort_order>50</sort_order>
848
+ <show_in_default>1</show_in_default>
849
+ <show_in_website>1</show_in_website>
850
+ <show_in_store>1</show_in_store>
851
+ <comment>The number of columns in "Recommended for you" boxes on category pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.</comment>
852
+ <validate>validate-number validate-number-range number-range-1-6</validate>
853
+ <depends>
854
+ <personal_box>1</personal_box>
855
+ <personal_box_layout>content</personal_box_layout>
856
+ </depends>
857
+ </personal_box_columns>
858
+ <top_heading translate="label">
859
+ <label>Top Box (CATEGORY_PAGE_POP)</label>
860
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
861
+ <sort_order>55</sort_order>
862
+ <show_in_default>1</show_in_default>
863
+ <show_in_website>1</show_in_website>
864
+ <show_in_store>1</show_in_store>
865
+ </top_heading>
866
+ <top_box translate="label">
867
+ <label>Enable Top Box</label>
868
+ <frontend_type>select</frontend_type>
869
+ <source_model>adminhtml/system_config_source_yesno</source_model>
870
+ <sort_order>60</sort_order>
871
+ <show_in_default>1</show_in_default>
872
+ <show_in_website>1</show_in_website>
873
+ <show_in_store>1</show_in_store>
874
+ <comment>Enable "Top products" boxes on category pages.</comment>
875
+ </top_box>
876
+ <top_box_layout translate="label">
877
+ <label>Top Box Layout</label>
878
+ <frontend_type>select</frontend_type>
879
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
880
+ <sort_order>70</sort_order>
881
+ <show_in_default>1</show_in_default>
882
+ <show_in_website>1</show_in_website>
883
+ <show_in_store>1</show_in_store>
884
+ <comment>Select where "Top products" box should be shown on category pages.</comment>
885
+ <depends><top_box>1</top_box></depends>
886
+ </top_box_layout>
887
+ <top_box_title translate="label">
888
+ <label>Top Box Title</label>
889
+ <frontend_type>text</frontend_type>
890
+ <sort_order>80</sort_order>
891
+ <show_in_default>1</show_in_default>
892
+ <show_in_website>1</show_in_website>
893
+ <show_in_store>1</show_in_store>
894
+ <comment>"Top products" box title on category pages.</comment>
895
+ <depends><top_box>1</top_box></depends>
896
+ </top_box_title>
897
+ <top_box_limit translate="label">
898
+ <label>Top Box Product Count</label>
899
+ <frontend_type>text</frontend_type>
900
+ <sort_order>90</sort_order>
901
+ <show_in_default>1</show_in_default>
902
+ <show_in_website>1</show_in_website>
903
+ <show_in_store>1</show_in_store>
904
+ <comment>Number of items shown in "Top products" boxes on category pages. This number must be between 1 and 10.</comment>
905
+ <validate>validate-number validate-number-range number-range-1-10</validate>
906
+ <depends><top_box>1</top_box></depends>
907
+ </top_box_limit>
908
+ <top_box_columns translate="label">
909
+ <label>Top Box Columns</label>
910
+ <frontend_type>text</frontend_type>
911
+ <sort_order>100</sort_order>
912
+ <show_in_default>1</show_in_default>
913
+ <show_in_website>1</show_in_website>
914
+ <show_in_store>1</show_in_store>
915
+ <comment>The number of columns in "Top products" boxes on category pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.</comment>
916
+ <validate>validate-number validate-number-range number-range-1-6</validate>
917
+ <depends>
918
+ <top_box>1</top_box>
919
+ <top_box_layout>content</top_box_layout>
920
+ </depends>
921
+ </top_box_columns>
922
+ </fields>
923
+ </category_display>
924
+ <search_display translate="label">
925
+ <label>Search Result Page Display</label>
926
+ <frontend_type>text</frontend_type>
927
+ <sort_order>70</sort_order>
928
+ <show_in_default>1</show_in_default>
929
+ <show_in_website>1</show_in_website>
930
+ <show_in_store>1</show_in_store>
931
+ <fields>
932
+ <search_heading translate="label">
933
+ <label>Recommendation Box (LISTING_PAGE)</label>
934
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
935
+ <sort_order>5</sort_order>
936
+ <show_in_default>1</show_in_default>
937
+ <show_in_website>1</show_in_website>
938
+ <show_in_store>1</show_in_store>
939
+ </search_heading>
940
+ <search_box translate="label">
941
+ <label>Enable Recommendation Box</label>
942
+ <frontend_type>select</frontend_type>
943
+ <source_model>adminhtml/system_config_source_yesno</source_model>
944
+ <sort_order>10</sort_order>
945
+ <show_in_default>1</show_in_default>
946
+ <show_in_website>1</show_in_website>
947
+ <show_in_store>1</show_in_store>
948
+ <comment>Enable "Recommended for you" boxes on search result pages.</comment>
949
+ </search_box>
950
+ <search_box_layout translate="label">
951
+ <label>Recommendation Box Layout</label>
952
+ <frontend_type>select</frontend_type>
953
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
954
+ <sort_order>20</sort_order>
955
+ <show_in_default>1</show_in_default>
956
+ <show_in_website>1</show_in_website>
957
+ <show_in_store>1</show_in_store>
958
+ <comment>Select where "Recommended for you" boxes should be shown on search result pages.</comment>
959
+ <depends><search_box>1</search_box></depends>
960
+ </search_box_layout>
961
+ <search_box_title translate="label">
962
+ <label>Recommendation Box Title</label>
963
+ <frontend_type>text</frontend_type>
964
+ <sort_order>30</sort_order>
965
+ <show_in_default>1</show_in_default>
966
+ <show_in_website>1</show_in_website>
967
+ <show_in_store>1</show_in_store>
968
+ <comment>"Recommended for you" box title on search result pages.</comment>
969
+ <depends><search_box>1</search_box></depends>
970
+ </search_box_title>
971
+ <search_box_limit translate="label">
972
+ <label>Recommendation Box Product Count</label>
973
+ <frontend_type>text</frontend_type>
974
+ <sort_order>40</sort_order>
975
+ <show_in_default>1</show_in_default>
976
+ <show_in_website>1</show_in_website>
977
+ <show_in_store>1</show_in_store>
978
+ <comment>Number of items shown in "Recommended for you" boxes on search result pages. This number must be between 1 and 10.</comment>
979
+ <validate>validate-number validate-number-range number-range-1-10</validate>
980
+ <depends><search_box>1</search_box></depends>
981
+ </search_box_limit>
982
+ <search_box_columns translate="label">
983
+ <label>Recommendation Box Columns</label>
984
+ <frontend_type>text</frontend_type>
985
+ <sort_order>50</sort_order>
986
+ <show_in_default>1</show_in_default>
987
+ <show_in_website>1</show_in_website>
988
+ <show_in_store>1</show_in_store>
989
+ <comment>The number of columns in "Recommended for you" boxes on search result pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.
990
+ </comment>
991
+ <validate>validate-number validate-number-range number-range-1-6</validate>
992
+ <depends>
993
+ <search_box>1</search_box>
994
+ <search_box_layout>content</search_box_layout>
995
+ </depends>
996
+ </search_box_columns>
997
+ </fields>
998
+ </search_display>
999
+ <cart_display translate="label">
1000
+ <label>Cart Page Display</label>
1001
+ <frontend_type>text</frontend_type>
1002
+ <sort_order>80</sort_order>
1003
+ <show_in_default>1</show_in_default>
1004
+ <show_in_website>1</show_in_website>
1005
+ <show_in_store>1</show_in_store>
1006
+ <fields>
1007
+ <cart_heading translate="label">
1008
+ <label>Cart Box (CART_PAGE)</label>
1009
+ <frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
1010
+ <sort_order>5</sort_order>
1011
+ <show_in_default>1</show_in_default>
1012
+ <show_in_website>1</show_in_website>
1013
+ <show_in_store>1</show_in_store>
1014
+ </cart_heading>
1015
+ <cart_box translate="label">
1016
+ <label>Enable Cart Box</label>
1017
+ <frontend_type>select</frontend_type>
1018
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1019
+ <sort_order>10</sort_order>
1020
+ <show_in_default>1</show_in_default>
1021
+ <show_in_website>1</show_in_website>
1022
+ <show_in_store>1</show_in_store>
1023
+ <comment>Enable "Others also bought" boxes on cart pages.</comment>
1024
+ </cart_box>
1025
+ <cart_box_layout translate="label">
1026
+ <label>Cart Box Layout</label>
1027
+ <frontend_type>select</frontend_type>
1028
+ <source_model>me_gravity/system_config_source_layout_layout</source_model>
1029
+ <sort_order>20</sort_order>
1030
+ <show_in_default>1</show_in_default>
1031
+ <show_in_website>1</show_in_website>
1032
+ <show_in_store>1</show_in_store>
1033
+ <comment>Select where "Others also bought" boxes should be shown on cart pages.</comment>
1034
+ <depends><cart_box>1</cart_box></depends>
1035
+ </cart_box_layout>
1036
+ <cart_box_title translate="label">
1037
+ <label>Cart Box Title</label>
1038
+ <frontend_type>text</frontend_type>
1039
+ <sort_order>30</sort_order>
1040
+ <show_in_default>1</show_in_default>
1041
+ <show_in_website>1</show_in_website>
1042
+ <show_in_store>1</show_in_store>
1043
+ <comment>"Others also bought" box title on cart pages.</comment>
1044
+ <depends><cart_box>1</cart_box></depends>
1045
+ </cart_box_title>
1046
+ <cart_box_limit translate="label">
1047
+ <label>Cart Box Product Count</label>
1048
+ <frontend_type>text</frontend_type>
1049
+ <sort_order>40</sort_order>
1050
+ <show_in_default>1</show_in_default>
1051
+ <show_in_website>1</show_in_website>
1052
+ <show_in_store>1</show_in_store>
1053
+ <comment>Number of items shown in "Others also bought" boxes on cart pages. This number must be between 1 and 10.</comment>
1054
+ <validate>validate-number validate-number-range number-range-1-10</validate>
1055
+ <depends><cart_box>1</cart_box></depends>
1056
+ </cart_box_limit>
1057
+ <cart_box_columns translate="label">
1058
+ <label>Cart Box Columns</label>
1059
+ <frontend_type>text</frontend_type>
1060
+ <sort_order>50</sort_order>
1061
+ <show_in_default>1</show_in_default>
1062
+ <show_in_website>1</show_in_website>
1063
+ <show_in_store>1</show_in_store>
1064
+ <comment>The number of columns in "Others also bought" boxes on cart pages. This number must be between 1 and 6. This option has no effects, if the box is in the sidebar.</comment>
1065
+ <validate>validate-number validate-number-range number-range-1-6</validate>
1066
+ <depends>
1067
+ <cart_box>1</cart_box>
1068
+ <cart_box_layout>content</cart_box_layout>
1069
+ </depends>
1070
+ </cart_box_columns>
1071
+ </fields>
1072
+ </cart_display>
1073
+ <sync translate="label">
1074
+ <label>Synchronization</label>
1075
+ <frontend_type>text</frontend_type>
1076
+ <sort_order>90</sort_order>
1077
+ <show_in_default>1</show_in_default>
1078
+ <show_in_website>1</show_in_website>
1079
+ <show_in_store>1</show_in_store>
1080
+ <fields>
1081
+ <customer_update translate="label">
1082
+ <label>Enable Yusp Customer Update</label>
1083
+ <frontend_type>select</frontend_type>
1084
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1085
+ <sort_order>10</sort_order>
1086
+ <show_in_default>1</show_in_default>
1087
+ <show_in_website>1</show_in_website>
1088
+ <show_in_store>1</show_in_store>
1089
+ <comment>If a customer is saved on the backend, it will be updated in the Yusp system.</comment>
1090
+ </customer_update>
1091
+ <product_update translate="label">
1092
+ <label>Enable Yusp Product Update</label>
1093
+ <frontend_type>select</frontend_type>
1094
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1095
+ <sort_order>20</sort_order>
1096
+ <show_in_default>1</show_in_default>
1097
+ <show_in_website>1</show_in_website>
1098
+ <show_in_store>1</show_in_store>
1099
+ <comment>If a product is saved on the backend, it will be updated in the Yusp system.</comment>
1100
+ </product_update>
1101
+ <customer_registration translate="label">
1102
+ <label>Enable Yusp Customer Registration</label>
1103
+ <frontend_type>select</frontend_type>
1104
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1105
+ <sort_order>30</sort_order>
1106
+ <show_in_default>1</show_in_default>
1107
+ <show_in_website>1</show_in_website>
1108
+ <show_in_store>1</show_in_store>
1109
+ <comment>If a customer registers on your site, it will be added to your Yusp database.</comment>
1110
+ </customer_registration>
1111
+ </fields>
1112
+ </sync>
1113
+ <debug translate="label">
1114
+ <label>Debug</label>
1115
+ <frontend_type>text</frontend_type>
1116
+ <sort_order>100</sort_order>
1117
+ <show_in_default>1</show_in_default>
1118
+ <show_in_website>0</show_in_website>
1119
+ <show_in_store>0</show_in_store>
1120
+ <fields>
1121
+ <log translate="label">
1122
+ <label>Enable Debug</label>
1123
+ <frontend_type>select</frontend_type>
1124
+ <source_model>adminhtml/system_config_source_yesno</source_model>
1125
+ <sort_order>10</sort_order>
1126
+ <show_in_default>1</show_in_default>
1127
+ <show_in_website>0</show_in_website>
1128
+ <show_in_store>0</show_in_store>
1129
+ <comment>Enable debug. In this case all transactions will be logged in /var/gravity.log.</comment>
1130
+ </log>
1131
+ <version translate="label">
1132
+ <label>Extension Version</label>
1133
+ <frontend_type>text</frontend_type>
1134
+ <frontend_model>me_gravity/adminhtml_system_config_form_version</frontend_model>
1135
+ <sort_order>20</sort_order>
1136
+ <show_in_default>1</show_in_default>
1137
+ <show_in_website>0</show_in_website>
1138
+ <show_in_store>0</show_in_store>
1139
+ </version>
1140
+ </fields>
1141
+ </debug>
1142
+ </groups>
1143
+ </gravity>
1144
+ </sections>
1145
+ </config>
app/design/frontend/base/default/template/me/gravity/page/js/gravity.phtml CHANGED
@@ -30,15 +30,14 @@
30
  window.gravityGroupSize = 0;
31
  <?php endif; ?>
32
  var _gravity = _gravity || [];
33
- (function () {
34
- var gr = document.createElement("script");
35
- gr.type = "text/javascript";
36
- gr.async = !0;
37
- //gr.src = document.location.protocol + "//saas.gravityrd.com/js/CUSTOMERID/gr_reco4-min.js";
38
- gr.src = "http://<?php echo $this->getGravityCustomerId() ?>-bud.gravityrd-services.com/js/<?php echo $this->getGravityCustomerId() ?>/gr_reco4-min.js";
39
- var s = document.getElementsByTagName("script")[0];
40
- s.parentNode.insertBefore(gr, s);
41
- })();
42
  //]]>
43
  </script>
44
  <?php endif; ?>
30
  window.gravityGroupSize = 0;
31
  <?php endif; ?>
32
  var _gravity = _gravity || [];
33
+ (function(g,r,a,v,i,t,y){
34
+ g[a]=g[a]||[],y=r.createElement(v),
35
+ g=r.getElementsByTagName(v)[0];y.async=1;
36
+ y.src='//'+i+'/js/'+t+'/gr_reco5.min.js';
37
+ g.parentNode.insertBefore(y,g);y=r.createElement(v),y.async=1;
38
+ y.src='//'+i+'/grrec-'+t+'-war/JSServlet4?cc=1';
39
+ g.parentNode.insertBefore(y,g);
40
+ })(window, document, '_gravity','script', "<?php echo $this->getGravityCustomerId() ?>.yusp.com", "<?php echo $this->getGravityCustomerId() ?>");
 
41
  //]]>
42
  </script>
43
  <?php endif; ?>
app/locale/en_US/Me_Gravity.csv DELETED
@@ -1,160 +0,0 @@
1
- "Description here...","Description here..."
2
- "Gravity Reco","Gravity Reco"
3
- "Settings","Settings"
4
- "Enable Extension","Enable Extension"
5
- "Yes","Yes"
6
- "No","No"
7
- "Enable extension.","Enable extension."
8
- "Enable Preview Mode","Enable Preview Mode"
9
- "Enabled Preview mode. In this case recommendation boxes are only visible if there is a special ?gr_reco_test=true parameter in the url. E.g.: http://example.com/example-product.html?gr_reco_test=true","Enabled Preview mode. In this case recommendation boxes are only visible if there is a special ?gr_reco_test=true parameter in the url. E.g.: http://example.com/example-product.html?gr_reco_test=true"
10
- "API Username","API Username"
11
- "API user name in Gravity system.","API user name in Gravity system."
12
- "API Password","API Password"
13
- "API password in Gravity system.","API password in Gravity system."
14
- "API URL","API URL"
15
- "API communication URL.","API communication URL."
16
- "Test Connection","Test Connection"
17
- "Press button to test connection.","Press button to test connection."
18
- "Use Garvity Template","Use Garvity Template"
19
- "General display setting. If YES all boxes will use Gravity template.","General display setting. If YES all boxes will use Gravity template."
20
- "Export Products","Export Products"
21
- "Catalog Export File Path","Catalog Export File Path"
22
- "Path where catalog export file will be saved. Example: ""gravity_reco/"" (path must be writeable)","Path where catalog export file will be saved. Example: ""gravity_reco/"" (path must be writeable)"
23
- "Enable All Products Export","Enable All Products Export"
24
- "Enable all products to export. Otherwise please select NO and set the maximum number. Note: there can be performance impact during this operation.","Enable all products to export. Otherwise please select NO and set the maximum number. Note: there can be performance impact during this operation."
25
- "Maximum Products Export","Maximum Products Export"
26
- "The maximum number of products to be exported. This number must be between 1 and 1000.","The maximum number of products to be exported. This number must be between 1 and 1000."
27
- "Additional Attributes","Additional Attributes"
28
- "Select additional attributes for catalog export.","Select additional attributes for catalog export."
29
- "Only Salable","Only Salable"
30
- "In this case only those products will be exported which quantity higher than zero(is in stock). If your store doesn't use stock management choose YES.","In this case only those products will be exported which quantity higher than zero(is in stock). If your store doesn't use stock management choose YES."
31
- "Enable Scheduled Export","Enable Scheduled Export"
32
- "Enable scheduled export job bby cron. Note: you must configure your server to run cron jobs.","Enable scheduled export job bby cron. Note: you must configure your server to run cron jobs."
33
- "Start Time","Start Time"
34
- "Daily start time for automatic catalog export via cron job.","Daily start time for automatic catalog export via cron job."
35
- "Export Product Catalog","Export Product Catalog"
36
- "Export Products","Export Products"
37
- "This will export product catalog and save in xml file. Note: there can be performance impact during this operation.","This will export product catalog and save in xml file. Note: there can be performance impact during this operation."
38
- "Enable All Customers Export","Enable All Customers Export"
39
- "Enable all customer to export. Otherwise please select NO and set the maximum number. Note: there can be performance impact during this operation.","Enable all customer to export. Otherwise please select NO and set the maximum number. Note: there can be performance impact during this operation."
40
- "Select additional attributes for customer export.","Select additional attributes for customer export."
41
- "Export Customers","Export Customers"
42
- "This will export customers. Note: there can be performance impact during this operation.","This will export customers. Note: there can be performance impact during this operation."
43
- "General Pages Display","General Pages Display"
44
- "Enabled Pages","Enabled Pages"
45
- "Pages on general layout recommendation boxes enabled.","Pages on general layout recommendation boxes enabled."
46
- "Personal Best Box","Personal Best Box"
47
- "Enable Personal Best Box","Enable Personal Best Box"
48
- "Enable ""Recommended for you"" box on general page views.","Enable ""Recommended for you"" box on general page views."
49
- "Personal Best Box Layout","Personal Best Box Layout"
50
- "Select where ""Recommended for you"" box should be shown on general page views.","Select where ""Recommended for you"" box should be shown on general page views."
51
- "Personal Best Box Title","Personal Best Box Title"
52
- """Recommended for you"" box title on general page views.","""Recommended for you"" box title on general page views."
53
- "Personal Best Box Product Count","Personal Best Box Product Count"
54
- "Number of items show in ""Recommended for you"" box on general page views. This number must be between 1 and 10.","Number of items show in ""Recommended for you"" box on general page views. This number must be between 1 and 10."
55
- "History Box","History Box"
56
- "Enable History Box","Enable History Box"
57
- "Enable ""You viewed"" box on general page views.","Enable ""You viewed"" box on general page views."
58
- "History Box Layout","History Box Layout"
59
- "Select where ""You viewed"" box should be shown on general page views.","Select where ""You viewed"" box should be shown on general page views."
60
- "History Box Title","History Box Title"
61
- """You viewed"" box title on general page views.","""You viewed"" box title on general page views."
62
- "History Box Product Count","History Box Product Count"
63
- "Number of items show in ""You viewed"" box on general page views. This number must be between 1 and 10.","Number of items show in ""You viewed"" box on general page views. This number must be between 1 and 10."
64
- "Currently Viewed Box","Currently Viewed Box"
65
- "Enable Currently Viewed Box","Enable Currently Viewed Box"
66
- "Enable ""Others are looking at right now"" box on general page views.","Enable ""Others are looking at right now"" box on general page views."
67
- "Currently Viewed Box Layout","Currently Viewed Box Layout"
68
- "Select where ""Others are looking at right now"" box should be shown on general page views.","Select where ""Others are looking at right now"" box should be shown on general page views."
69
- "Currently Viewed Box Title","Currently Viewed Box Title"
70
- """Others are looking at right now"" box title on general page views.","""Others are looking at right now"" box title on general page views."
71
- "Currently Viewed Box Product Count","Currently Viewed Box Product Count"
72
- "Number of items show in ""Others are looking at right now"" box on general page views. This number must be between 1 and 10.","Number of items show in ""Others are looking at right now"" box on general page views. This number must be between 1 and 10."
73
- "Popular Box","Popular Box"
74
- "Enable Popular Box","Enable Popular Box"
75
- "Enable ""Top Products"" box on general page views.","Enable ""Top Products"" box on general page views."
76
- "Popular Box Layout","Popular Box Layout"
77
- "Select where ""Top Products"" box should be shown on general page views.","Select where ""Top Products"" box should be shown on general page views."
78
- "Popular Box Title","Popular Box Title"
79
- """Top Products"" box title on general page views.","""Top Products"" box title on general page views."
80
- "Popular Box Product Count","Popular Box Product Count"
81
- "Number of items show in ""Top Products"" box on general page views. This number must be between 1 and 10.","Number of items show in ""Top Products"" box on general page views. This number must be between 1 and 10."
82
- "Product Page Display","Product Page Display"
83
- "Similar Box","Similar Box"
84
- "Enable Similar Box","Enable Similar Box"
85
- "Enable ""You might also like"" box on product page views.","Enable ""You might also like"" box on product page views."
86
- "Similar Box Layout","Similar Box Layout"
87
- "Select where ""You might also like"" box should be shown on product page views.","Select where ""You might also like"" box should be shown on product page views."
88
- "Similar Box Title","Similar Box Title"
89
- """You might also like"" box title on product page views.","""You might also like"" box title on product page views."
90
- "Similar Box Product Count","Similar Box Product Count"
91
- "Number of items show in ""You might also like"" box on product page views. This number must be between 1 and 10.","Number of items show in ""You might also like"" box on product page views. This number must be between 1 and 10."
92
- "Personal Box","Personal Box"
93
- "Enable Personal Box","Enable Personal Box"
94
- "Enable ""Recommended for you"" box on product page views.","Enable ""Recommended for you"" box on product page views."
95
- "Personal Box Layout","Personal Box Layout"
96
- "Select where ""Recommended for you"" box should be shown on product page views.","Select where ""Recommended for you"" box should be shown on product page views."
97
- "Personal Box Title","Personal Box Title"
98
- """Recommended for you"" box title on product page views.","""Recommended for you"" box title on product page views."
99
- "Personal Box Product Count","Personal Box Product Count"
100
- "Number of items show in ""Recommended for you"" box on product page views. This number must be between 1 and 10.","Number of items show in ""Recommended for you"" box on product page views. This number must be between 1 and 10."
101
- "Accessories Box","Accessories Box"
102
- "Enable Accessories Box","Enable Accessories Box"
103
- "Enable ""You might also need"" box on product page views.","Enable ""You might also need"" box on product page views."
104
- "Accessories Box Layout","Accessories Box Layout"
105
- "Select where ""You might also need"" box should be shown on product page views.","Select where ""You might also need"" box should be shown on product page views."
106
- "Accessories Box Title","Accessories Box Title"
107
- """You might also need"" box title on product page views.","""You might also need"" box title on product page views."
108
- "Accessories Box Product Count","Accessories Box Product Count"
109
- "Number of items show in ""You might also need"" box on product page views. This number must be between 1 and 10.","Number of items show in ""You might also need"" box on product page views. This number must be between 1 and 10."
110
- "Category Page Display","Category Page Display"
111
- "Personal Box","Personal Box"
112
- "Enable Personal Box","Enable Personal Box"
113
- "Enable ""Recommended for you"" box on category page views.","Enable ""Recommended for you"" box on category page views."
114
- "Personal Box Layout","Personal Box Layout"
115
- "Select where ""Recommended for you"" box should be shown on category page views.","Select where ""Recommended for you"" box should be shown on category page views."
116
- "Personal Box Title","Personal Box Title"
117
- """Recommended for you"" box title on category page views.","""Recommended for you"" box title on category page views."
118
- "Personal Box Product Count","Personal Box Product Count"
119
- "Number of items show in ""Recommended for you"" box on category page views. This number must be between 1 and 10.","Number of items show in ""Recommended for you"" box on category page views. This number must be between 1 and 10."
120
- "Top Box","Top Box"
121
- "Enable Top Box","Enable Top Box"
122
- "Enable ""Top Products"" box on category page views.","Enable ""Top Products"" box on category page views."
123
- "Top Box Layout","Top Box Layout"
124
- "Select where ""Top Products"" box should be shown on category page views.","Select where ""Top Products"" box should be shown on category page views."
125
- "Top Box Title","Top Box Title"
126
- """Top Products"" box title on category page views.","""Top Products"" box title on category page views."
127
- "Top Box Product Count","Top Box Product Count"
128
- "Number of items show in ""Top Products"" box on category page views. This number must be between 1 and 10.","Number of items show in ""Top Products"" box on category page views. This number must be between 1 and 10."
129
- "Search Result Page Display","Search Result Page Display"
130
- "Recommendation Box","Recommendation Box"
131
- "Enable Recommendation Box","Enable Recommendation Box"
132
- "Enable ""Recommended for you"" box on search result page views.","Enable ""Recommended for you"" box on search result page views."
133
- "Recommendation Box Layout","Recommendation Box Layout"
134
- "Select where ""Recommended for you"" box should be shown on search result page views.","Select where ""Recommended for you"" box should be shown on search result page views."
135
- "Recommendation Box Title","Recommendation Box Title"
136
- """Recommended for you"" box title on search result page views.","""Recommended for you"" box title on search result page views."
137
- "Recommendation Box Product Count","Recommendation Box Product Count"
138
- "Number of items show in ""Recommended for you"" box on search result page views. This number must be between 1 and 10.","Number of items show in ""Recommended for you"" box on search result page views. This number must be between 1 and 10."
139
- "Cart Page Display","Cart Page Display"
140
- "Cart Box","Cart Box"
141
- "Enable Cart Box","Enable Cart Box"
142
- "Enable ""Others also bought"" box on cart page views.","Enable ""Others also bought"" box on cart page views."
143
- "Cart Box Layout","Cart Box Layout"
144
- "Select where ""Others also bought"" box should be shown on cart page views.","Select where ""Others also bought"" box should be shown on cart page views."
145
- "Cart Box Title","Cart Box Title"
146
- """Others also bought"" box title on cart page views.","""Others also bought"" box title on cart page views."
147
- "Cart Box Product Count","Cart Box Product Count"
148
- "Number of items show in ""Others also bought"" box on cart page views. This number must be between 1 and 10.","Number of items show in ""Others also bought"" box on cart page views. This number must be between 1 and 10."
149
- "Synchronization","Synchronization"
150
- "Enable Gravity Customer Update","Enable Gravity Customer Update"
151
- "If customer is saved in backend it will be updated in Gravity.","If customer is saved in backend it will be updated in Gravity."
152
- "Enable Gravity Product Update","Enable Gravity Product Update"
153
- "If product is saved in backend it will be updated in Gravity.","If product is saved in backend it will be updated in Gravity."
154
- "Enable Gravity Customer Registration","Enable Gravity Customer Registration"
155
- "If customer is registered on frontend it will be added in Gravity.","If customer is registered on frontend it will be added in Gravity."
156
- "Debug","Debug"
157
- "Enable debug. In this case all transactions will be logged in /var/gravity.log.","Enable debug. In this case all transactions will be logged in /var/gravity.log."
158
- "Left Sidebar","Left Sidebar"
159
- "Bottom of Content","Bottom of Content"
160
- "Right Sidebar","Right Sidebar"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,20 +1,31 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Me_Gravity</name>
4
- <version>1.0.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gravityrd.com/">Gravity R&amp;D, Ltd.</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>The Gravity Recommendation extension provides an interface between Magento web shop and Gravity Recommendation service. The communication based on PHP or Javascript API providing by Gravity service. </summary>
10
- <description>The Gravity Recommendation extension provides an interface between Magento web shop and Gravity Recommendation service. The communication based on PHP or Javascript API providing by Gravity service. The extension responsible for displaying recommendation boxes with products using Magento templates or Gravity based templates. The boxes contains the web shop products offered by the other side, and also sends information for Gravity service to provided proper analysis of users behaviors. It also able to export products catalog and customers for Gravity service using the extension configuration panel, or run daily scheduled export by cron job.</description>
11
- <notes>Version number: 1.0.2.1&#xD;
 
 
 
 
 
 
 
 
 
 
 
12
  Stability: Stable&#xD;
13
  Compatibility: CE 1.6.x, 1.7.x, 1.8.x, 1.9.x </notes>
14
  <authors><author><name>Gravity Recommendations</name><user>gravity_rd</user><email>web-integration@gravityrd.com</email></author></authors>
15
- <date>2015-11-01</date>
16
- <time>18:46:30</time>
17
- <contents><target name="mageetc"><dir name="modules"><file name="Me_Gravity.xml" hash="a385bf72a5c2f0f040d2bb0850ca0b7c"/></dir></target><target name="magecommunity"><dir name="Me"><dir name="Gravity"><dir name="Block"><file name="Abstract.php" hash="586409500493a209ba021f8d471c793c"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Catalog.php" hash="6adcc355986762d7cc19f854c5fdd067"/><file name="Customer.php" hash="50336da73ad37e3895f82980387f6970"/><file name="Test.php" hash="07d7fce9dd15eb623918d6f01505cc32"/><file name="Version.php" hash="cdaa1bf4da1dffefb71aa3a27a63d2f1"/></dir></dir></dir></dir><dir name="Catalog"><dir name="Category"><dir name="Boxes"><file name="Category.php" hash="436b2d56c25114b152d786a939071cc4"/><file name="Personal.php" hash="7773ddf6e4a109e2cb16665ab1f469e6"/><file name="Top.php" hash="662641627445dd1a650467dfb2318151"/></dir></dir><dir name="Product"><dir name="View"><dir name="Boxes"><file name="Accessories.php" hash="765e6c65419b4c09702655d2e315835a"/><file name="Personal.php" hash="c3a1d8903982887485b1b0ca2c1548ec"/><file name="Product.php" hash="bc40a2d7e854fa9e6d8bb7b2bdd37a25"/><file name="Similar.php" hash="47099324fca5883edb881c8e4a3eb6bd"/></dir><dir name="Js"><file name="Gravity.php" hash="cba4e59a726e2ff10d746748731ac35e"/></dir></dir></dir></dir><dir name="Catalogsearch"><dir name="Advanced"><dir name="Js"><file name="Gravity.php" hash="a37130181b430d057fa2dcb76de0ff60"/></dir></dir><dir name="Boxes"><file name="Result.php" hash="1c59e5b53cbef273f6cb7cd3448aa45b"/></dir><dir name="Js"><file name="Gravity.php" hash="d065f4ef6555312988c2e165621ea2a8"/></dir></dir><dir name="Checkout"><dir name="Cart"><dir name="Boxes"><file name="Cart.php" hash="b720e576c5123f9d52ee98807cb7ac36"/></dir></dir></dir><dir name="General"><dir name="Boxes"><file name="Best.php" hash="07299f81cbf42d2fda4bfb31964f7c24"/><file name="History.php" hash="b50a5a27a6920efbf0ff51e349543e13"/><file name="Others.php" hash="263af4423f1dc40640c2bd0f3366cec5"/><file name="Popular.php" hash="d50fdf81725bd55be46141c5d5515480"/></dir></dir><dir name="Page"><dir name="Js"><file name="Gravity.php" hash="6f78a812fa42227b25780a483fd202d8"/></dir></dir><file name="Recommendation.php" hash="c0d131d38d35f18b596119c6c5253c13"/><dir name="Widget"><dir name="Boxes"><file name="Widget.php" hash="17560f25437bf04f2f8069b1aeee010e"/></dir></dir></dir><dir name="Helper"><file name="Boxes.php" hash="9d498b80819c6f8b5f94e77801e312ec"/><file name="Data.php" hash="4c17e76eee0b1216a707a7fed937ec2b"/></dir><dir name="Model"><dir name="Client"><file name="GravityClient.php" hash="361edf56f609ce392a748a7a91d718e6"/></dir><file name="Customers.php" hash="7399f7fb93965a3c67f5e2c941209ffe"/><dir name="Export"><file name="Abstract.php" hash="9f42701355b6bb288b4ead0eadcf19f0"/><dir name="Catalog"><file name="Product.php" hash="53e49c91d3ed270933d12251fc137a99"/></dir><dir name="Customer"><file name="Customer.php" hash="d3577acc08cd3004ccfb865232eebb9c"/></dir></dir><dir name="Method"><file name="Abstract.php" hash="c907e89db6238c5001cf653b31afa56e"/><file name="Request.php" hash="06a09971071c0d95df4e8e1b3a680018"/></dir><file name="Observer.php" hash="d268e4868b2223a0be9d7d7ad8a5c6bb"/><file name="Products.php" hash="3b76c51170818f04fe94606f85e09dd2"/><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Catalog"><file name="Cron.php" hash="395fbd5f3d41223a336057b5bba6f4cc"/></dir></dir><dir name="Source"><dir name="Catalog"><file name="Attributes.php" hash="72df90bea6566c5e843c2301ba4dd6e1"/></dir><dir name="Customer"><file name="Attributes.php" hash="1e940ae61c568d83bc541b0fb8e87de1"/></dir><dir name="Layout"><file name="Layout.php" hash="18ab5c014f802bea1f6a841d062439ac"/><file name="Pages.php" hash="5e443f0c91329db385bc3d3b4e945c22"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="GravityController.php" hash="c6237b4322d5a7a33d191789325b8036"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="91c9644e779d2dcbfced9869d5b7dd95"/><file name="config.xml" hash="fd23cb6b55ac99b554d00f283457f918"/><file name="system.xml" hash="637a082cd516b66623ba693eda86be10"/><file name="widget.xml" hash="9662aa456d8dcf6b38503944427c247e"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="me"><dir name="gravity"><dir name="catalog"><dir name="category"><dir name="boxes"><file name="default.phtml" hash="f1569ed325e167d4e24b48101c109bed"/><file name="sidebar.phtml" hash="bfd9e6b741652779fea92b059f991822"/></dir></dir><dir name="product"><dir name="view"><dir name="boxes"><file name="default.phtml" hash="c916e1eeae7a719a2f284c19627eb50e"/><file name="sidebar.phtml" hash="c603cab98a672f113f0850ac850ee492"/></dir><dir name="js"><file name="gravity.phtml" hash="21b1752933f49d4fdf77c1dff3e8accb"/></dir></dir></dir></dir><dir name="catalogsearch"><dir name="advanced"><dir name="js"><file name="gravity.phtml" hash="ed37b5368abb0e5e1fddaf7d94f1634f"/></dir></dir><dir name="boxes"><file name="default.phtml" hash="600f331b3ef8772b652cc7fcde0270d6"/><file name="sidebar.phtml" hash="f9b64de7698f8d5a30da7dda56ef8f1d"/></dir><dir name="js"><file name="gravity.phtml" hash="a77756580b0a6577f9431194e88ce0f3"/></dir></dir><dir name="checkout"><dir name="cart"><dir name="boxes"><file name="default.phtml" hash="20aedc8eed8ab7e4c139f06cd6c0266f"/><file name="sidebar.phtml" hash="1b1f4c63788bfc9f9e338f664c50af64"/></dir></dir></dir><dir name="general"><dir name="boxes"><file name="default.phtml" hash="4b1308c89763c49b197883a9ae70e65b"/><file name="sidebar.phtml" hash="db426a25d29aaddf2c037aa471b0b855"/></dir></dir><dir name="page"><dir name="js"><file name="body-end.phtml" hash="c68cf0e1b26964c5867bd9fa1bf548c3"/><file name="gravity.phtml" hash="6a683618a3dc21584aabdb5b91137fb4"/></dir></dir><dir name="widget"><dir name="boxes"><file name="widget.phtml" hash="80fd5994cde6c34f862e2850caa2beb1"/></dir></dir></dir></dir></dir><dir name="layout"><dir name="me"><file name="gravity.xml" hash="47f5ea1f53290cfd3f6a48bd2c64a7fc"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="me"><dir name="gravity"><dir name="catalog"><dir name="category"><dir name="boxes"><file name="default.phtml" hash="4c4c9c68a8695e4ee0e8df9372e3e545"/><file name="sidebar.phtml" hash="7e7226aed80cd351b66e2b0c599608d5"/></dir></dir><dir name="product"><dir name="view"><dir name="boxes"><file name="default.phtml" hash="b68aa48c1e3ff9884884084660cb04cd"/><file name="sidebar.phtml" hash="3dfdc2dbdb9c69dbad73e93759fe6dee"/></dir></dir></dir></dir><dir name="catalogsearch"><dir name="boxes"><file name="default.phtml" hash="8dc241f668fad3b36e1a26d8c3b01802"/><file name="sidebar.phtml" hash="6aa688d961dfc9818001ae39866a4992"/></dir></dir><dir name="checkout"><dir name="cart"><dir name="boxes"><file name="default.phtml" hash="c81b3af4fe4fc03444da83f7416d0fc7"/><file name="sidebar.phtml" hash="d78a9160cbeded38e6a989eefe3c3753"/></dir></dir></dir><dir name="general"><dir name="boxes"><file name="default.phtml" hash="ec7412c0f1a6c8c15b859f5277c53885"/><file name="sidebar.phtml" hash="db426a25d29aaddf2c037aa471b0b855"/></dir></dir><dir name="widget"><dir name="boxes"><file name="widget.phtml" hash="41552aa04ba7810eada0706a8ee7f5ec"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="me"><dir name="gravity"><dir name="system"><dir name="config"><dir name="form"><file name="test.phtml" hash="d9d972a23b04a34ab5f4d70a732d65b3"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="me"><dir name="gravity"><file name="gravity.css" hash="c2c4c7d30bced9a311c98032e38e0e11"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Me_Gravity.csv" hash="cf7233d08a92c8891d62c60b000953c4"/></dir></target></contents>
18
  <compatible/>
19
- <dependencies><required><php><min>5.3.0</min><max>5.6.4</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Me_Gravity</name>
4
+ <version>1.0.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gravityrd.com/">Gravity R&amp;D, Ltd.</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>The Yusp Recommendation extension provides an&#xD;
10
+ interface between Magento and the Yusp recommendation service. The&#xD;
11
+ communication is based on the Yusp PHP or Javascript API.</summary>
12
+ <description>The Yusp Recommendation extension provides an interface&#xD;
13
+ between Magento and the Yusp recommendation service. The communication&#xD;
14
+ is based on the Yusp PHP or Javascript API. The extension is responsible&#xD;
15
+ for displaying recommendation boxes with products using Magento&#xD;
16
+ templates or Yusp-based templates. The boxes contain products sold on&#xD;
17
+ the Magento site. The extension also sends information (event data) to&#xD;
18
+ Yusp so the system can perform the analysis of customer behavior on the&#xD;
19
+ site and calculate recommendations accordingly. With the extension, it&#xD;
20
+ is also possible to export product catalogs and customers, or run daily&#xD;
21
+ scheduled exports on cron jobs.</description>
22
+ <notes>Version number: 1.0.2.3&#xD;
23
  Stability: Stable&#xD;
24
  Compatibility: CE 1.6.x, 1.7.x, 1.8.x, 1.9.x </notes>
25
  <authors><author><name>Gravity Recommendations</name><user>gravity_rd</user><email>web-integration@gravityrd.com</email></author></authors>
26
+ <date>2016-08-12</date>
27
+ <time>14:39:27</time>
28
+ <contents><target name="mageetc"><dir name="modules"><file name="Me_Gravity.xml" hash="a385bf72a5c2f0f040d2bb0850ca0b7c"/></dir></target><target name="magecommunity"><dir name="Me"><dir name="Gravity"><dir name="Block"><file name="Abstract.php" hash="586409500493a209ba021f8d471c793c"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Catalog.php" hash="6adcc355986762d7cc19f854c5fdd067"/><file name="Customer.php" hash="50336da73ad37e3895f82980387f6970"/><file name="Test.php" hash="07d7fce9dd15eb623918d6f01505cc32"/><file name="Version.php" hash="cdaa1bf4da1dffefb71aa3a27a63d2f1"/></dir></dir></dir></dir><dir name="Catalog"><dir name="Category"><dir name="Boxes"><file name="Category.php" hash="436b2d56c25114b152d786a939071cc4"/><file name="Personal.php" hash="7773ddf6e4a109e2cb16665ab1f469e6"/><file name="Top.php" hash="662641627445dd1a650467dfb2318151"/></dir></dir><dir name="Product"><dir name="View"><dir name="Boxes"><file name="Accessories.php" hash="765e6c65419b4c09702655d2e315835a"/><file name="Personal.php" hash="c3a1d8903982887485b1b0ca2c1548ec"/><file name="Product.php" hash="bc40a2d7e854fa9e6d8bb7b2bdd37a25"/><file name="Similar.php" hash="47099324fca5883edb881c8e4a3eb6bd"/></dir><dir name="Js"><file name="Gravity.php" hash="cba4e59a726e2ff10d746748731ac35e"/></dir></dir></dir></dir><dir name="Catalogsearch"><dir name="Advanced"><dir name="Js"><file name="Gravity.php" hash="a37130181b430d057fa2dcb76de0ff60"/></dir></dir><dir name="Boxes"><file name="Result.php" hash="1c59e5b53cbef273f6cb7cd3448aa45b"/></dir><dir name="Js"><file name="Gravity.php" hash="d065f4ef6555312988c2e165621ea2a8"/></dir></dir><dir name="Checkout"><dir name="Cart"><dir name="Boxes"><file name="Cart.php" hash="b720e576c5123f9d52ee98807cb7ac36"/></dir></dir></dir><dir name="General"><dir name="Boxes"><file name="Best.php" hash="07299f81cbf42d2fda4bfb31964f7c24"/><file name="History.php" hash="b50a5a27a6920efbf0ff51e349543e13"/><file name="Others.php" hash="263af4423f1dc40640c2bd0f3366cec5"/><file name="Popular.php" hash="d50fdf81725bd55be46141c5d5515480"/></dir></dir><dir name="Page"><dir name="Js"><file name="Gravity.php" hash="6f78a812fa42227b25780a483fd202d8"/></dir></dir><file name="Recommendation.php" hash="c0d131d38d35f18b596119c6c5253c13"/><dir name="Widget"><dir name="Boxes"><file name="Widget.php" hash="17560f25437bf04f2f8069b1aeee010e"/></dir></dir></dir><dir name="Helper"><file name="Boxes.php" hash="9d498b80819c6f8b5f94e77801e312ec"/><file name="Data.php" hash="4c17e76eee0b1216a707a7fed937ec2b"/></dir><dir name="Model"><dir name="Client"><file name="GravityClient.php" hash="361edf56f609ce392a748a7a91d718e6"/></dir><file name="Customers.php" hash="7399f7fb93965a3c67f5e2c941209ffe"/><dir name="Export"><file name="Abstract.php" hash="9f42701355b6bb288b4ead0eadcf19f0"/><dir name="Catalog"><file name="Product.php" hash="53e49c91d3ed270933d12251fc137a99"/></dir><dir name="Customer"><file name="Customer.php" hash="d3577acc08cd3004ccfb865232eebb9c"/></dir></dir><dir name="Method"><file name="Abstract.php" hash="c907e89db6238c5001cf653b31afa56e"/><file name="Request.php" hash="aa0c66be8bf119451e1a3560c7637fbc"/></dir><file name="Observer.php" hash="d268e4868b2223a0be9d7d7ad8a5c6bb"/><file name="Products.php" hash="3b76c51170818f04fe94606f85e09dd2"/><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Catalog"><file name="Cron.php" hash="395fbd5f3d41223a336057b5bba6f4cc"/></dir></dir><dir name="Source"><dir name="Catalog"><file name="Attributes.php" hash="72df90bea6566c5e843c2301ba4dd6e1"/></dir><dir name="Customer"><file name="Attributes.php" hash="1e940ae61c568d83bc541b0fb8e87de1"/></dir><dir name="Layout"><file name="Layout.php" hash="18ab5c014f802bea1f6a841d062439ac"/><file name="Pages.php" hash="5e443f0c91329db385bc3d3b4e945c22"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="GravityController.php" hash="c6237b4322d5a7a33d191789325b8036"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="17bf0f5989e14d857252726fef4fad6d"/><file name="config.xml" hash="4fcbadbebe923abdb05794aab37475ba"/><file name="system.xml" hash="7b43a4de29e0600034ea22d02e3c845b"/><file name="system_backup.xml" hash="55672758af380c029374dadd629479b7"/><file name="widget.xml" hash="9662aa456d8dcf6b38503944427c247e"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="me"><dir name="gravity"><dir name="catalog"><dir name="category"><dir name="boxes"><file name="default.phtml" hash="f1569ed325e167d4e24b48101c109bed"/><file name="sidebar.phtml" hash="bfd9e6b741652779fea92b059f991822"/></dir></dir><dir name="product"><dir name="view"><dir name="boxes"><file name="default.phtml" hash="c916e1eeae7a719a2f284c19627eb50e"/><file name="sidebar.phtml" hash="c603cab98a672f113f0850ac850ee492"/></dir><dir name="js"><file name="gravity.phtml" hash="21b1752933f49d4fdf77c1dff3e8accb"/></dir></dir></dir></dir><dir name="catalogsearch"><dir name="advanced"><dir name="js"><file name="gravity.phtml" hash="ed37b5368abb0e5e1fddaf7d94f1634f"/></dir></dir><dir name="boxes"><file name="default.phtml" hash="600f331b3ef8772b652cc7fcde0270d6"/><file name="sidebar.phtml" hash="f9b64de7698f8d5a30da7dda56ef8f1d"/></dir><dir name="js"><file name="gravity.phtml" hash="a77756580b0a6577f9431194e88ce0f3"/></dir></dir><dir name="checkout"><dir name="cart"><dir name="boxes"><file name="default.phtml" hash="20aedc8eed8ab7e4c139f06cd6c0266f"/><file name="sidebar.phtml" hash="1b1f4c63788bfc9f9e338f664c50af64"/></dir></dir></dir><dir name="general"><dir name="boxes"><file name="default.phtml" hash="4b1308c89763c49b197883a9ae70e65b"/><file name="sidebar.phtml" hash="db426a25d29aaddf2c037aa471b0b855"/></dir></dir><dir name="page"><dir name="js"><file name="body-end.phtml" hash="c68cf0e1b26964c5867bd9fa1bf548c3"/><file name="gravity.phtml" hash="e092eaaf9062cd9028814239207129ff"/></dir></dir><dir name="widget"><dir name="boxes"><file name="widget.phtml" hash="80fd5994cde6c34f862e2850caa2beb1"/></dir></dir></dir></dir></dir><dir name="layout"><dir name="me"><file name="gravity.xml" hash="47f5ea1f53290cfd3f6a48bd2c64a7fc"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="me"><dir name="gravity"><dir name="catalog"><dir name="category"><dir name="boxes"><file name="default.phtml" hash="4c4c9c68a8695e4ee0e8df9372e3e545"/><file name="sidebar.phtml" hash="7e7226aed80cd351b66e2b0c599608d5"/></dir></dir><dir name="product"><dir name="view"><dir name="boxes"><file name="default.phtml" hash="b68aa48c1e3ff9884884084660cb04cd"/><file name="sidebar.phtml" hash="3dfdc2dbdb9c69dbad73e93759fe6dee"/></dir></dir></dir></dir><dir name="catalogsearch"><dir name="boxes"><file name="default.phtml" hash="8dc241f668fad3b36e1a26d8c3b01802"/><file name="sidebar.phtml" hash="6aa688d961dfc9818001ae39866a4992"/></dir></dir><dir name="checkout"><dir name="cart"><dir name="boxes"><file name="default.phtml" hash="c81b3af4fe4fc03444da83f7416d0fc7"/><file name="sidebar.phtml" hash="d78a9160cbeded38e6a989eefe3c3753"/></dir></dir></dir><dir name="general"><dir name="boxes"><file name="default.phtml" hash="ec7412c0f1a6c8c15b859f5277c53885"/><file name="sidebar.phtml" hash="db426a25d29aaddf2c037aa471b0b855"/></dir></dir><dir name="widget"><dir name="boxes"><file name="widget.phtml" hash="41552aa04ba7810eada0706a8ee7f5ec"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="me"><dir name="gravity"><dir name="system"><dir name="config"><dir name="form"><file name="test.phtml" hash="d9d972a23b04a34ab5f4d70a732d65b3"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="me"><dir name="gravity"><file name="gravity.css" hash="c2c4c7d30bced9a311c98032e38e0e11"/></dir></dir></dir></dir></dir></dir></target><target name="magelocal"><dir name="en_US"><file name="Me_Gravity.csv" hash=""/></dir></target></contents>
29
  <compatible/>
30
+ <dependencies><required><php><min>5.3.0</min><max>5.6.15</max></php></required></dependencies>
31
  </package>