Version Notes
Speedup recommendations process. Now it takes <100ms.
Download this release
Release Info
Developer | REES46 |
Extension | Rees46_Personalization |
Version | 3.2.8 |
Comparing to | |
See all releases |
Code changes from version 3.2.7 to 3.2.8
- app/code/community/Rees46/Personalization/etc/config.xml +1 -1
- app/design/frontend/base/default/template/rees46/personalization/blocks/category.phtml +1 -1
- app/design/frontend/base/default/template/rees46/personalization/blocks/product.phtml +3 -3
- app/design/frontend/base/default/template/rees46/personalization/css.phtml +2 -2
- app/design/frontend/base/default/template/rees46/personalization/init.phtml +39 -39
- package.xml +5 -5
app/code/community/Rees46/Personalization/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Rees46_Personalization>
|
5 |
-
<version>3.2.
|
6 |
</Rees46_Personalization>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Rees46_Personalization>
|
5 |
+
<version>3.2.8</version>
|
6 |
</Rees46_Personalization>
|
7 |
</modules>
|
8 |
<global>
|
app/design/frontend/base/default/template/rees46/personalization/blocks/category.phtml
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<div class="rees46 rees46-recommend" data-type="popular" data-title="Популярные товары в этой категории" data-category="
|
2 |
<div class="rees46 rees46-recommend" data-type="recently_viewed" data-title="Вы недавно смотрели"></div>
|
3 |
<div class="rees46 rees46-recommend" data-type="interesting" data-title="Возможно, вам это будет интересно"></div>
|
1 |
+
<div class="rees46 rees46-recommend" data-type="popular" data-title="Популярные товары в этой категории" data-category="<?php echo Mage::registry('current_category')->getId() ?>"></div>
|
2 |
<div class="rees46 rees46-recommend" data-type="recently_viewed" data-title="Вы недавно смотрели"></div>
|
3 |
<div class="rees46 rees46-recommend" data-type="interesting" data-title="Возможно, вам это будет интересно"></div>
|
app/design/frontend/base/default/template/rees46/personalization/blocks/product.phtml
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<div class="rees46 rees46-recommend" data-type="also_bought" data-title="С этим товаром покупают" data-item="
|
2 |
-
<div class="rees46 rees46-recommend" data-type="similar" data-title="Похожие товары" data-item="
|
3 |
-
<div class="rees46 rees46-recommend" data-type="interesting" data-title="Возможно, вам это понравится" data-item="
|
1 |
+
<div class="rees46 rees46-recommend" data-type="also_bought" data-title="С этим товаром покупают" data-item="<?php echo Mage::registry('current_product')->getId() ?>"></div>
|
2 |
+
<div class="rees46 rees46-recommend" data-type="similar" data-title="Похожие товары" data-item="<?php echo Mage::registry('current_product')->getId() ?>"></div>
|
3 |
+
<div class="rees46 rees46-recommend" data-type="interesting" data-title="Возможно, вам это понравится" data-item="<?php echo Mage::registry('current_product')->getId() ?>"></div>
|
app/design/frontend/base/default/template/rees46/personalization/css.phtml
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
<?php if (Mage::helper('rees46_personalization')->isEnabled()): ?>
|
2 |
-
<link rel="stylesheet" type="text/css" href="http://rees46.com/shop_css/<?= $this->helper('rees46_personalization')->getAPIKey() ?>" media="all" />
|
3 |
-
<? endif; ?>
|
1 |
<?php if (Mage::helper('rees46_personalization')->isEnabled()): ?>
|
2 |
+
<link rel="stylesheet" type="text/css" href="http://rees46.com/shop_css/<?= $this->helper('rees46_personalization')->getAPIKey() ?>" media="all" />
|
3 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/rees46/personalization/init.phtml
CHANGED
@@ -1,54 +1,54 @@
|
|
1 |
<?php if (Mage::helper('rees46_personalization')->isEnabled()): ?>
|
2 |
-
<? $rees46_api_key = $this->helper('rees46_personalization')->getAPIKey(); ?>
|
3 |
-
<? if($rees46_api_key != false): ?>
|
4 |
<!-- @rees46 -->
|
5 |
<script src="http://cdn.rees46.com/rees46_script2.js"></script>
|
6 |
<script type="text/javascript">
|
7 |
-
REES46_CART =
|
8 |
jQuery(document).ready(function(){
|
9 |
var user_data = null;
|
10 |
-
<? if (Mage::getSingleton('customer/session')->isLoggedIn()): ?>
|
11 |
var user_data = {
|
12 |
-
id:
|
13 |
-
email: '
|
14 |
};
|
15 |
-
<? endif; ?>
|
16 |
-
REES46.init('
|
17 |
-
<? $events = Mage::helper('rees46_personalization/event')->getEventsQueue(true) ?>
|
18 |
-
<? foreach($events as $event): ?>
|
19 |
-
<? if($event['name'] == 'view' || $event['name'] == 'cart' || $event['name'] == 'remove_from_cart'): ?>
|
20 |
-
REES46.pushData('
|
21 |
-
item_id: '
|
22 |
-
name: '
|
23 |
-
description: '
|
24 |
-
price: '
|
25 |
-
is_available: '
|
26 |
-
categories: [
|
27 |
-
<? if($event['data']['recommended_by']): ?>
|
28 |
-
recommended_by: '
|
29 |
-
<? endif; ?>
|
30 |
});
|
31 |
-
<? endif; ?>
|
32 |
-
<? if($event['name'] == 'purchase'): ?>
|
33 |
REES46.pushData('purchase', [
|
34 |
-
<? foreach($event['data']['products'] as $product): ?>
|
35 |
{
|
36 |
-
item_id: '
|
37 |
-
name: '
|
38 |
-
description: '
|
39 |
-
price: '
|
40 |
-
is_available: '
|
41 |
-
categories: [
|
42 |
-
amount:
|
43 |
-
<? if($product['recommended_by']): ?>
|
44 |
-
recommended_by: '
|
45 |
-
<? endif; ?>
|
46 |
},
|
47 |
-
<? endforeach; ?>
|
48 |
],
|
49 |
-
'
|
50 |
-
<? endif; ?>
|
51 |
-
<? endforeach; ?>
|
52 |
|
53 |
jQuery('.rees46.rees46-recommend').each(function(){
|
54 |
var recommenderBlock = jQuery(this);
|
@@ -111,4 +111,4 @@
|
|
111 |
});
|
112 |
</script>
|
113 |
<?php endif; ?>
|
114 |
-
<?php endif; ?>
|
1 |
<?php if (Mage::helper('rees46_personalization')->isEnabled()): ?>
|
2 |
+
<?php $rees46_api_key = $this->helper('rees46_personalization')->getAPIKey(); ?>
|
3 |
+
<?php if($rees46_api_key != false): ?>
|
4 |
<!-- @rees46 -->
|
5 |
<script src="http://cdn.rees46.com/rees46_script2.js"></script>
|
6 |
<script type="text/javascript">
|
7 |
+
REES46_CART = <?php echo json_encode($this->helper('rees46_personalization')->getCartProductIds()); ?>;
|
8 |
jQuery(document).ready(function(){
|
9 |
var user_data = null;
|
10 |
+
<?php if (Mage::getSingleton('customer/session')->isLoggedIn()): ?>
|
11 |
var user_data = {
|
12 |
+
id: <?php echo Mage::getSingleton('customer/session')->getCustomer()->getID() ?>,
|
13 |
+
email: '<?php echo Mage::getSingleton('customer/session')->getCustomer()->getEmail() ?>'
|
14 |
};
|
15 |
+
<?php endif; ?>
|
16 |
+
REES46.init('<?php echo $this->helper('rees46_personalization')->getAPIKey() ?>', user_data, function() {
|
17 |
+
<?php $events = Mage::helper('rees46_personalization/event')->getEventsQueue(true) ?>
|
18 |
+
<?php foreach($events as $event): ?>
|
19 |
+
<?php if($event['name'] == 'view' || $event['name'] == 'cart' || $event['name'] == 'remove_from_cart'): ?>
|
20 |
+
REES46.pushData('<?php echo $event['name'] ?>', {
|
21 |
+
item_id: '<?php echo $event['data']['item_id'] ?>',
|
22 |
+
name: '<?php echo $event['data']['name'] ?>',
|
23 |
+
description: '<?php echo $event['data']['description'] ?>',
|
24 |
+
price: '<?php echo $event['data']['price'] ?>',
|
25 |
+
is_available: '<?php echo intval($event['data']['is_available']) ?>',
|
26 |
+
categories: [<?php echo implode(',', $event['data']['categories']) ?>],
|
27 |
+
<?php if($event['data']['recommended_by']): ?>
|
28 |
+
recommended_by: '<?php echo $event['data']['recommended_by'] ?>',
|
29 |
+
<?php endif; ?>
|
30 |
});
|
31 |
+
<?php endif; ?>
|
32 |
+
<?php if($event['name'] == 'purchase'): ?>
|
33 |
REES46.pushData('purchase', [
|
34 |
+
<?php foreach($event['data']['products'] as $product): ?>
|
35 |
{
|
36 |
+
item_id: '<?php echo $product['item_id'] ?>',
|
37 |
+
name: '<?php echo $product['name'] ?>',
|
38 |
+
description: '<?php echo $product['description'] ?>',
|
39 |
+
price: '<?php echo $product['price'] ?>',
|
40 |
+
is_available: '<?php echo intval($product['is_available']) ?>',
|
41 |
+
categories: [<?php echo implode(',', $product['categories']) ?>],
|
42 |
+
amount: <?php echo $product['amount'] ?>,
|
43 |
+
<?php if($product['recommended_by']): ?>
|
44 |
+
recommended_by: '<?php echo $product['recommended_by'] ?>',
|
45 |
+
<?php endif; ?>
|
46 |
},
|
47 |
+
<?php endforeach; ?>
|
48 |
],
|
49 |
+
'<?php echo $event['data']['order_id'] ?>');
|
50 |
+
<?php endif; ?>
|
51 |
+
<?php endforeach; ?>
|
52 |
|
53 |
jQuery('.rees46.rees46-recommend').each(function(){
|
54 |
var recommenderBlock = jQuery(this);
|
111 |
});
|
112 |
</script>
|
113 |
<?php endif; ?>
|
114 |
+
<?php endif; ?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Rees46_Personalization</name>
|
4 |
-
<version>3.2.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU</license>
|
7 |
<channel>community</channel>
|
@@ -21,11 +21,11 @@ Then REES46 recommends appropriate products to every individual customer using b
|
|
21 |
- People Buying It Right Now.
|
22 |

|
23 |
REES46 increases efficiency of e-commerce website up to 24% (in revenue).</description>
|
24 |
-
<notes>
|
25 |
<authors><author><name>REES46</name><user>mkechinov</user><email>kechinoff@gmail.com</email></author></authors>
|
26 |
-
<date>2015-05-
|
27 |
-
<time>
|
28 |
-
<contents><target name="magecommunity"><dir name="Rees46"><dir name="Personalization"><dir name="Helper"><file name="Admin.php" hash="2d31ca47bba5404e8b9d777027f70f48"/><file name="Data.php" hash="d11e92b3753d8d070a7a32a10f1cc101"/><file name="Event.php" hash="12f1e1ef5c3842f8752d34b18e3d0e6b"/></dir><dir name="Model"><file name="Observer.php" hash="3ca0fda3cf704eb3a82bc2935fb33640"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PersonalizationController.php" hash="83cf76649e36fdf635836098c73b1310"/></dir><file name="BlockController.php" hash="11230fe5b9cd7df5c55199824fbc5026"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7d8c44125849ee7ba71b633604ee70ff"/><file name="config.xml" hash="
|
29 |
<compatible/>
|
30 |
<dependencies><required><php><min>5.2.1</min><max>6.0.0</max></php></required></dependencies>
|
31 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Rees46_Personalization</name>
|
4 |
+
<version>3.2.8</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU</license>
|
7 |
<channel>community</channel>
|
21 |
- People Buying It Right Now.
|
22 |

|
23 |
REES46 increases efficiency of e-commerce website up to 24% (in revenue).</description>
|
24 |
+
<notes>Speedup recommendations process. Now it takes <100ms.</notes>
|
25 |
<authors><author><name>REES46</name><user>mkechinov</user><email>kechinoff@gmail.com</email></author></authors>
|
26 |
+
<date>2015-05-26</date>
|
27 |
+
<time>07:58:45</time>
|
28 |
+
<contents><target name="magecommunity"><dir name="Rees46"><dir name="Personalization"><dir name="Helper"><file name="Admin.php" hash="2d31ca47bba5404e8b9d777027f70f48"/><file name="Data.php" hash="d11e92b3753d8d070a7a32a10f1cc101"/><file name="Event.php" hash="12f1e1ef5c3842f8752d34b18e3d0e6b"/></dir><dir name="Model"><file name="Observer.php" hash="3ca0fda3cf704eb3a82bc2935fb33640"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PersonalizationController.php" hash="83cf76649e36fdf635836098c73b1310"/></dir><file name="BlockController.php" hash="11230fe5b9cd7df5c55199824fbc5026"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7d8c44125849ee7ba71b633604ee70ff"/><file name="config.xml" hash="018756a50e4bf0e2546983ef46128757"/><file name="system.xml" hash="cd07b019aaadf90268e6deec809b35db"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="rees46_personalization.xml" hash="55c2cd3a5a293270896c3c1e4ad3b677"/></dir><dir name="template"><dir name="rees46"><dir name="personalization"><file name="index.phtml" hash="87026c52a8d199d83d065c576679ebb6"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="rees46_personalization.xml" hash="55c2cd3a5a293270896c3c1e4ad3b677"/></dir><dir name="template"><dir name="rees46"><dir name="personalization"><dir name="blocks"><file name="cart.phtml" hash="8157483c8fb43e14a9ad9b1090c735ef"/><file name="category.phtml" hash="824bfae06a90e013f3a8d448f90ede39"/><file name="home.phtml" hash="054fc0f13eba6109850aa25ac28faca9"/><file name="product.phtml" hash="d13eec07b1fc91d12ce9f9f202707a89"/></dir><file name="css.phtml" hash="dfe94f4cff6e314de18ce791ddb20455"/><file name="init.phtml" hash="f62f52671c8068746cea7e34d35a839c"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Rees46_Personalization.xml" hash="67bdc8c38ce74e98dda5d70a0943f2fe"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Rees46_Personalization.csv" hash="0169f9749d80016235f9c69c245f0976"/></dir><dir name="ru_RU"><file name="Rees46_Personalization.csv" hash="9a71f4c9cb704beb7bf698595ee9db13"/></dir></dir></target></contents>
|
29 |
<compatible/>
|
30 |
<dependencies><required><php><min>5.2.1</min><max>6.0.0</max></php></required></dependencies>
|
31 |
</package>
|