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 +677 -667
- app/code/community/Me/Gravity/etc/adminhtml.xml +31 -31
- app/code/community/Me/Gravity/etc/config.xml +256 -256
- app/code/community/Me/Gravity/etc/system.xml +1145 -1140
- app/code/community/Me/Gravity/etc/system_backup.xml +1145 -0
- app/design/frontend/base/default/template/me/gravity/page/js/gravity.phtml +8 -9
- app/locale/en_US/Me_Gravity.csv +0 -160
- package.xml +19 -8
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 |
-
|
542 |
-
$item
|
543 |
-
$item->
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
return
|
641 |
-
}
|
642 |
-
|
643 |
-
/**
|
644 |
-
* Get
|
645 |
-
*
|
646 |
-
* @
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
*
|
656 |
-
*
|
657 |
-
* @return
|
658 |
-
*/
|
659 |
-
private function
|
660 |
-
{
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
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>
|
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>
|
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.
|
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
|
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
|
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
|
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
|
94 |
-
</enabled_js>
|
95 |
-
<custom_js translate="label">
|
96 |
-
<label>Custom
|
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
|
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>
|
116 |
-
</test>
|
117 |
-
<template translate="label">
|
118 |
-
<label>Use
|
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
|
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>
|
155 |
-
</catalog_path>
|
156 |
-
<all translate="label">
|
157 |
-
<label>Enable
|
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
|
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
|
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
|
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
|
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>
|
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
|
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>
|
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
|
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
|
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>
|
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>
|
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
|
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
|
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
|
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>
|
369 |
-
|
370 |
-
<
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
<
|
375 |
-
<
|
376 |
-
<
|
377 |
-
<
|
378 |
-
<
|
379 |
-
<
|
380 |
-
<
|
381 |
-
<
|
382 |
-
|
383 |
-
<
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
<
|
389 |
-
<
|
390 |
-
<
|
391 |
-
<
|
392 |
-
<
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
<
|
397 |
-
<
|
398 |
-
<
|
399 |
-
<
|
400 |
-
<
|
401 |
-
<
|
402 |
-
<
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
<
|
407 |
-
<
|
408 |
-
<
|
409 |
-
<
|
410 |
-
<
|
411 |
-
<
|
412 |
-
<
|
413 |
-
<
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
<
|
418 |
-
<
|
419 |
-
<
|
420 |
-
<
|
421 |
-
<
|
422 |
-
<
|
423 |
-
<
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
<
|
428 |
-
<
|
429 |
-
<
|
430 |
-
<
|
431 |
-
<
|
432 |
-
<
|
433 |
-
<
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
<
|
440 |
-
<
|
441 |
-
<
|
442 |
-
<
|
443 |
-
<
|
444 |
-
<
|
445 |
-
<
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
<
|
454 |
-
<
|
455 |
-
<
|
456 |
-
<
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
<
|
462 |
-
<
|
463 |
-
<
|
464 |
-
<
|
465 |
-
<
|
466 |
-
<
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
<
|
472 |
-
<
|
473 |
-
<
|
474 |
-
<
|
475 |
-
<
|
476 |
-
<
|
477 |
-
<
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
<
|
483 |
-
<
|
484 |
-
<
|
485 |
-
<
|
486 |
-
<
|
487 |
-
<
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
<
|
493 |
-
<
|
494 |
-
<
|
495 |
-
<
|
496 |
-
<
|
497 |
-
<
|
498 |
-
<
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
<
|
504 |
-
<
|
505 |
-
<
|
506 |
-
<
|
507 |
-
<
|
508 |
-
<
|
509 |
-
<
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
<
|
518 |
-
<
|
519 |
-
<
|
520 |
-
<
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
<
|
526 |
-
<
|
527 |
-
<
|
528 |
-
<
|
529 |
-
<
|
530 |
-
<
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
<
|
536 |
-
<
|
537 |
-
<
|
538 |
-
<
|
539 |
-
<
|
540 |
-
<
|
541 |
-
<
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
<
|
547 |
-
<
|
548 |
-
<
|
549 |
-
<
|
550 |
-
<
|
551 |
-
<
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
<
|
557 |
-
<
|
558 |
-
<
|
559 |
-
<
|
560 |
-
<
|
561 |
-
<
|
562 |
-
<
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
<
|
568 |
-
<
|
569 |
-
<
|
570 |
-
<
|
571 |
-
<
|
572 |
-
<
|
573 |
-
<
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
<
|
584 |
-
<
|
585 |
-
<
|
586 |
-
<
|
587 |
-
<
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
<
|
592 |
-
<
|
593 |
-
<
|
594 |
-
<
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
<
|
600 |
-
<
|
601 |
-
<
|
602 |
-
<
|
603 |
-
<
|
604 |
-
<
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
<
|
610 |
-
<
|
611 |
-
<
|
612 |
-
<
|
613 |
-
<
|
614 |
-
<
|
615 |
-
<
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
<
|
621 |
-
<
|
622 |
-
<
|
623 |
-
<
|
624 |
-
<
|
625 |
-
<
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
<
|
631 |
-
<
|
632 |
-
<
|
633 |
-
<
|
634 |
-
<
|
635 |
-
<
|
636 |
-
<
|
637 |
-
|
638 |
-
|
639 |
-
<
|
640 |
-
|
641 |
-
|
642 |
-
<
|
643 |
-
<
|
644 |
-
<
|
645 |
-
<
|
646 |
-
<
|
647 |
-
<
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
<
|
657 |
-
<
|
658 |
-
<
|
659 |
-
|
660 |
-
|
661 |
-
<
|
662 |
-
|
663 |
-
|
664 |
-
<
|
665 |
-
<
|
666 |
-
<
|
667 |
-
<
|
668 |
-
<
|
669 |
-
|
670 |
-
|
671 |
-
<
|
672 |
-
|
673 |
-
|
674 |
-
<
|
675 |
-
<
|
676 |
-
<
|
677 |
-
<
|
678 |
-
<
|
679 |
-
<
|
680 |
-
|
681 |
-
|
682 |
-
<
|
683 |
-
|
684 |
-
|
685 |
-
<
|
686 |
-
<
|
687 |
-
<
|
688 |
-
<
|
689 |
-
<
|
690 |
-
|
691 |
-
|
692 |
-
<
|
693 |
-
|
694 |
-
|
695 |
-
<
|
696 |
-
<
|
697 |
-
<
|
698 |
-
<
|
699 |
-
<
|
700 |
-
<
|
701 |
-
|
702 |
-
|
703 |
-
<
|
704 |
-
<
|
705 |
-
|
706 |
-
|
707 |
-
<
|
708 |
-
<
|
709 |
-
<
|
710 |
-
<
|
711 |
-
<
|
712 |
-
|
713 |
-
|
714 |
-
</
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
<
|
722 |
-
<
|
723 |
-
|
724 |
-
|
725 |
-
<
|
726 |
-
<
|
727 |
-
|
728 |
-
|
729 |
-
<
|
730 |
-
<
|
731 |
-
<
|
732 |
-
<
|
733 |
-
|
734 |
-
|
735 |
-
<
|
736 |
-
<
|
737 |
-
|
738 |
-
|
739 |
-
<
|
740 |
-
<
|
741 |
-
<
|
742 |
-
<
|
743 |
-
<
|
744 |
-
|
745 |
-
|
746 |
-
<
|
747 |
-
<
|
748 |
-
|
749 |
-
|
750 |
-
<
|
751 |
-
<
|
752 |
-
<
|
753 |
-
<
|
754 |
-
|
755 |
-
|
756 |
-
<
|
757 |
-
<
|
758 |
-
|
759 |
-
|
760 |
-
<
|
761 |
-
<
|
762 |
-
<
|
763 |
-
<
|
764 |
-
<
|
765 |
-
|
766 |
-
|
767 |
-
<
|
768 |
-
<
|
769 |
-
|
770 |
-
|
771 |
-
<
|
772 |
-
<
|
773 |
-
<
|
774 |
-
<
|
775 |
-
<
|
776 |
-
|
777 |
-
|
778 |
-
</
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
<
|
788 |
-
<
|
789 |
-
<
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
<
|
796 |
-
<
|
797 |
-
|
798 |
-
|
799 |
-
<
|
800 |
-
<
|
801 |
-
|
802 |
-
|
803 |
-
<
|
804 |
-
<
|
805 |
-
<
|
806 |
-
<
|
807 |
-
|
808 |
-
|
809 |
-
<
|
810 |
-
<
|
811 |
-
|
812 |
-
|
813 |
-
<
|
814 |
-
<
|
815 |
-
<
|
816 |
-
<
|
817 |
-
<
|
818 |
-
|
819 |
-
|
820 |
-
<
|
821 |
-
<
|
822 |
-
|
823 |
-
|
824 |
-
<
|
825 |
-
<
|
826 |
-
<
|
827 |
-
<
|
828 |
-
|
829 |
-
|
830 |
-
<
|
831 |
-
<
|
832 |
-
|
833 |
-
|
834 |
-
<
|
835 |
-
<
|
836 |
-
<
|
837 |
-
<
|
838 |
-
<
|
839 |
-
|
840 |
-
|
841 |
-
<
|
842 |
-
<
|
843 |
-
|
844 |
-
|
845 |
-
<
|
846 |
-
<
|
847 |
-
<
|
848 |
-
<
|
849 |
-
<
|
850 |
-
|
851 |
-
|
852 |
-
</
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
<
|
860 |
-
<
|
861 |
-
|
862 |
-
|
863 |
-
<
|
864 |
-
<
|
865 |
-
|
866 |
-
|
867 |
-
<
|
868 |
-
<
|
869 |
-
<
|
870 |
-
<
|
871 |
-
|
872 |
-
|
873 |
-
<
|
874 |
-
<
|
875 |
-
|
876 |
-
|
877 |
-
<
|
878 |
-
<
|
879 |
-
<
|
880 |
-
<
|
881 |
-
<
|
882 |
-
|
883 |
-
|
884 |
-
<
|
885 |
-
<
|
886 |
-
|
887 |
-
|
888 |
-
<
|
889 |
-
<
|
890 |
-
<
|
891 |
-
<
|
892 |
-
|
893 |
-
|
894 |
-
<
|
895 |
-
<
|
896 |
-
|
897 |
-
|
898 |
-
<
|
899 |
-
<
|
900 |
-
<
|
901 |
-
<
|
902 |
-
<
|
903 |
-
|
904 |
-
|
905 |
-
<
|
906 |
-
<
|
907 |
-
|
908 |
-
|
909 |
-
<
|
910 |
-
<
|
911 |
-
<
|
912 |
-
<
|
913 |
-
<
|
914 |
-
|
915 |
-
|
916 |
-
</
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
<
|
926 |
-
<
|
927 |
-
<
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
<
|
934 |
-
<
|
935 |
-
|
936 |
-
|
937 |
-
<
|
938 |
-
<
|
939 |
-
|
940 |
-
|
941 |
-
<
|
942 |
-
<
|
943 |
-
<
|
944 |
-
<
|
945 |
-
|
946 |
-
|
947 |
-
<
|
948 |
-
<
|
949 |
-
|
950 |
-
|
951 |
-
<
|
952 |
-
<
|
953 |
-
<
|
954 |
-
<
|
955 |
-
<
|
956 |
-
|
957 |
-
|
958 |
-
<
|
959 |
-
<
|
960 |
-
|
961 |
-
|
962 |
-
<
|
963 |
-
<
|
964 |
-
<
|
965 |
-
<
|
966 |
-
|
967 |
-
|
968 |
-
<
|
969 |
-
<
|
970 |
-
|
971 |
-
|
972 |
-
<
|
973 |
-
<
|
974 |
-
<
|
975 |
-
<
|
976 |
-
<
|
977 |
-
|
978 |
-
|
979 |
-
<
|
980 |
-
<
|
981 |
-
|
982 |
-
|
983 |
-
<
|
984 |
-
<
|
985 |
-
<
|
986 |
-
<
|
987 |
-
<
|
988 |
-
|
989 |
-
|
990 |
-
</
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
<
|
1001 |
-
<
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
<
|
1009 |
-
|
1010 |
-
|
1011 |
-
<
|
1012 |
-
<
|
1013 |
-
<
|
1014 |
-
|
1015 |
-
|
1016 |
-
<
|
1017 |
-
<
|
1018 |
-
<
|
1019 |
-
|
1020 |
-
|
1021 |
-
<
|
1022 |
-
<
|
1023 |
-
<
|
1024 |
-
|
1025 |
-
|
1026 |
-
<
|
1027 |
-
<
|
1028 |
-
<
|
1029 |
-
<
|
1030 |
-
|
1031 |
-
|
1032 |
-
<
|
1033 |
-
<
|
1034 |
-
<
|
1035 |
-
|
1036 |
-
|
1037 |
-
<
|
1038 |
-
<
|
1039 |
-
<
|
1040 |
-
|
1041 |
-
|
1042 |
-
<
|
1043 |
-
<
|
1044 |
-
<
|
1045 |
-
|
1046 |
-
|
1047 |
-
<
|
1048 |
-
<
|
1049 |
-
<
|
1050 |
-
<
|
1051 |
-
|
1052 |
-
|
1053 |
-
<
|
1054 |
-
<
|
1055 |
-
<
|
1056 |
-
|
1057 |
-
|
1058 |
-
<
|
1059 |
-
<
|
1060 |
-
<
|
1061 |
-
<
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
<
|
1075 |
-
<
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
<
|
1083 |
-
<
|
1084 |
-
<
|
1085 |
-
|
1086 |
-
|
1087 |
-
<
|
1088 |
-
<
|
1089 |
-
<
|
1090 |
-
|
1091 |
-
|
1092 |
-
<
|
1093 |
-
<
|
1094 |
-
<
|
1095 |
-
|
1096 |
-
|
1097 |
-
<
|
1098 |
-
<
|
1099 |
-
<
|
1100 |
-
|
1101 |
-
|
1102 |
-
<
|
1103 |
-
<
|
1104 |
-
<
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
<
|
1115 |
-
<
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
<
|
1123 |
-
<
|
1124 |
-
<
|
1125 |
-
|
1126 |
-
|
1127 |
-
<
|
1128 |
-
<
|
1129 |
-
<
|
1130 |
-
|
1131 |
-
|
1132 |
-
<
|
1133 |
-
<
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
</
|
|
|
|
|
|
|
|
|
|
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 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
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.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gravityrd.com/">Gravity R&D, Ltd.</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>The
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
Stability: Stable
|
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>
|
16 |
-
<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="
|
18 |
<compatible/>
|
19 |
-
<dependencies><required><php><min>5.3.0</min><max>5.6.
|
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&D, Ltd.</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>The Yusp Recommendation extension provides an
|
10 |
+
interface between Magento and the Yusp recommendation service. The
|
11 |
+
communication is based on the Yusp PHP or Javascript API.</summary>
|
12 |
+
<description>The Yusp Recommendation extension provides an interface
|
13 |
+
between Magento and the Yusp recommendation service. The communication
|
14 |
+
is based on the Yusp PHP or Javascript API. The extension is responsible
|
15 |
+
for displaying recommendation boxes with products using Magento
|
16 |
+
templates or Yusp-based templates. The boxes contain products sold on
|
17 |
+
the Magento site. The extension also sends information (event data) to
|
18 |
+
Yusp so the system can perform the analysis of customer behavior on the
|
19 |
+
site and calculate recommendations accordingly. With the extension, it
|
20 |
+
is also possible to export product catalogs and customers, or run daily
|
21 |
+
scheduled exports on cron jobs.</description>
|
22 |
+
<notes>Version number: 1.0.2.3
|
23 |
Stability: Stable
|
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>
|