Rees46_Personalization - Version 3.3.0

Version Notes

Expert Mode for manual placing of recommender blocks

Download this release

Release Info

Developer REES46
Extension Rees46_Personalization
Version 3.3.0
Comparing to
See all releases


Code changes from version 3.2.8 to 3.3.0

app/code/community/Rees46/Personalization/Helper/Data.php CHANGED
@@ -26,6 +26,12 @@ class Rees46_Personalization_Helper_Data extends Mage_Core_Helper_Data
26
  */
27
  const XML_PATH_SECRET_KEY = 'personalization/view/secret_key';
28
 
 
 
 
 
 
 
29
 
30
  /**
31
  * Checks whether news can be displayed in the frontend
@@ -58,5 +64,16 @@ class Rees46_Personalization_Helper_Data extends Mage_Core_Helper_Data
58
  return array_map(function($element){ return $element->getProductId(); }, $cart->getAllItems());
59
  }
60
 
 
 
 
 
 
 
 
 
 
 
 
61
  }
62
 
26
  */
27
  const XML_PATH_SECRET_KEY = 'personalization/view/secret_key';
28
 
29
+ /**
30
+ * REES46 Expert Mode Flag
31
+ * @var boolean
32
+ */
33
+ const XML_PATH_EXPERT_MODE = 'personalization/view/expert_mode';
34
+
35
 
36
  /**
37
  * Checks whether news can be displayed in the frontend
64
  return array_map(function($element){ return $element->getProductId(); }, $cart->getAllItems());
65
  }
66
 
67
+ /**
68
+ * Checks whether module works in expert mode
69
+ *
70
+ * @param integer|string|Mage_Core_Model_Store $store
71
+ * @return boolean
72
+ */
73
+ public function isExpertMode($store = null)
74
+ {
75
+ return Mage::getStoreConfigFlag(self::XML_PATH_EXPERT_MODE, $store);
76
+ }
77
+
78
  }
79
 
app/code/community/Rees46/Personalization/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Rees46_Personalization>
5
- <version>3.2.8</version>
6
  </Rees46_Personalization>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Rees46_Personalization>
5
+ <version>3.3.0</version>
6
  </Rees46_Personalization>
7
  </modules>
8
  <global>
app/code/community/Rees46/Personalization/etc/system.xml CHANGED
@@ -54,6 +54,15 @@
54
  <show_in_website>1</show_in_website>
55
  <show_in_store>1</show_in_store>
56
  </secret_key>
 
 
 
 
 
 
 
 
 
57
  </fields>
58
  </view>
59
  </groups>
54
  <show_in_website>1</show_in_website>
55
  <show_in_store>1</show_in_store>
56
  </secret_key>
57
+ <expert_mode translate="label">
58
+ <label>Manual Blocks Embed (see installation guide)</label>
59
+ <frontend_type>select</frontend_type>
60
+ <source_model>adminhtml/system_config_source_yesno</source_model>
61
+ <sort_order>80</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
+ </expert_mode>
66
  </fields>
67
  </view>
68
  </groups>
app/design/frontend/base/default/template/rees46/personalization/blocks/cart.phtml CHANGED
@@ -1 +1,3 @@
1
- <div class="rees46 rees46-recommend" data-type="see_also" data-title="Не забудьте посмотреть"></div>
 
 
1
+ <?php if (Mage::helper('rees46_personalization')->isExpertMode() != true): ?>
2
+ <div class="rees46 rees46-recommend" data-type="see_also" data-title="Не забудьте посмотреть"></div>
3
+ <?php endif; ?>
app/design/frontend/base/default/template/rees46/personalization/blocks/category.phtml CHANGED
@@ -1,3 +1,5 @@
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>
 
 
1
+ <?php if (Mage::helper('rees46_personalization')->isExpertMode() != true): ?>
2
+ <div class="rees46 rees46-recommend" data-type="popular" data-title="Популярные товары в этой категории" data-category="<?php echo Mage::registry('current_category')->getId() ?>"></div>
3
+ <div class="rees46 rees46-recommend" data-type="recently_viewed" data-title="Вы недавно смотрели"></div>
4
+ <div class="rees46 rees46-recommend" data-type="interesting" data-title="Возможно, вам это будет интересно"></div>
5
+ <?php endif; ?>
app/design/frontend/base/default/template/rees46/personalization/blocks/home.phtml CHANGED
@@ -1,3 +1,5 @@
1
- <div class="rees46 rees46-recommend" data-type="popular" data-title="Популярные товары"></div>
2
- <div class="rees46 rees46-recommend" data-type="interesting" data-title="Возможно, вам это будет интересно"></div>
3
- <div class="rees46 rees46-recommend" data-type="recently_viewed" data-title="Вы недавно смотрели"></div>
 
 
1
+ <?php if (Mage::helper('rees46_personalization')->isExpertMode() != true): ?>
2
+ <div class="rees46 rees46-recommend" data-type="popular" data-title="Популярные товары"></div>
3
+ <div class="rees46 rees46-recommend" data-type="interesting" data-title="Возможно, вам это будет интересно"></div>
4
+ <div class="rees46 rees46-recommend" data-type="recently_viewed" data-title="Вы недавно смотрели"></div>
5
+ <?php endif; ?>
app/design/frontend/base/default/template/rees46/personalization/blocks/product.phtml CHANGED
@@ -1,3 +1,5 @@
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>
 
 
1
+ <?php if (Mage::helper('rees46_personalization')->isExpertMode() != true): ?>
2
+ <div class="rees46 rees46-recommend" data-type="also_bought" data-title="С этим товаром покупают" data-item="<?php echo Mage::registry('current_product')->getId() ?>"></div>
3
+ <div class="rees46 rees46-recommend" data-type="similar" data-title="Похожие товары" data-item="<?php echo Mage::registry('current_product')->getId() ?>"></div>
4
+ <div class="rees46 rees46-recommend" data-type="interesting" data-title="Возможно, вам это понравится" data-item="<?php echo Mage::registry('current_product')->getId() ?>"></div>
5
+ <?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.8</version>
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.&#xD;
22
  &#xD;
23
  REES46 increases efficiency of e-commerce website up to 24% (in revenue).</description>
24
- <notes>Speedup recommendations process. Now it takes &lt;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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Rees46_Personalization</name>
4
+ <version>3.3.0</version>
5
  <stability>stable</stability>
6
  <license>GNU</license>
7
  <channel>community</channel>
21
  - People Buying It Right Now.&#xD;
22
  &#xD;
23
  REES46 increases efficiency of e-commerce website up to 24% (in revenue).</description>
24
+ <notes>Expert Mode for manual placing of recommender blocks</notes>
25
  <authors><author><name>REES46</name><user>mkechinov</user><email>kechinoff@gmail.com</email></author></authors>
26
+ <date>2015-05-31</date>
27
+ <time>20:10:38</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="eecf1cab557b61ff3de492ca8d768ff2"/><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="2b5c19216b75c1bb24741916fca9f65a"/><file name="system.xml" hash="4f47eecc2d1e161ae906cb511c5a2aff"/></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="ec4da21b7600e045494d8544cac02c06"/><file name="category.phtml" hash="56d802fa13893b477e5fcd81bf2d34a7"/><file name="home.phtml" hash="3a9812cb402d496f172870940df6a919"/><file name="product.phtml" hash="ac84646b85cd406af59ec65a0fdf1a7a"/></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>