Rees46_Personalization - Version 3.3.1

Version Notes

Custom blocks titles

Download this release

Release Info

Developer REES46
Extension Rees46_Personalization
Version 3.3.1
Comparing to
See all releases


Code changes from version 3.3.0 to 3.3.1

app/code/community/Rees46/Personalization/controllers/BlockController.php CHANGED
@@ -46,7 +46,14 @@ class Rees46_Personalization_BlockController extends Mage_Core_Controller_Front_
46
  }
47
 
48
  if( $minimum_recommended_products > 0 && count($products) >= $minimum_recommended_products ) {
49
- $html = '<div class="rees46 rees46-recommend"><div class="recommender-block-title">' . Mage::helper('rees46_personalization')->__($recommender_type) . '</div><div class="recommended-items">';
 
 
 
 
 
 
 
50
  foreach($products as $product) {
51
 
52
  // Specific settings cause problems with large photos, so find it another way
46
  }
47
 
48
  if( $minimum_recommended_products > 0 && count($products) >= $minimum_recommended_products ) {
49
+
50
+ // Get block title - from locale or from front-end
51
+ $block_title = Mage::helper('rees46_personalization')->__($recommender_type);
52
+ if($this->getRequest()->getParam('block_title')) {
53
+ $block_title = $this->getRequest()->getParam('block_title');
54
+ }
55
+
56
+ $html = '<div class="rees46 rees46-recommend"><div class="recommender-block-title">' . $block_title . '</div><div class="recommended-items">';
57
  foreach($products as $product) {
58
 
59
  // Specific settings cause problems with large photos, so find it another way
app/code/community/Rees46/Personalization/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Rees46_Personalization>
5
- <version>3.3.0</version>
6
  </Rees46_Personalization>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Rees46_Personalization>
5
+ <version>3.3.1</version>
6
  </Rees46_Personalization>
7
  </modules>
8
  <global>
app/design/frontend/base/default/template/rees46/personalization/init.phtml CHANGED
@@ -89,13 +89,14 @@
89
  function REES46_Recommender_Callback(recommenderType, block, data) {
90
  // @todo: update settings – include parameter for limit minimum recommended items
91
  var min_products = 1;
92
- if(data.length > min_products) {
93
  jQuery.get(
94
  '/personalization/block',
95
  {
96
  ids: data,
97
  type: recommenderType,
98
- minimum: min_products
 
99
  },
100
  function(response) {
101
  if(response) {
89
  function REES46_Recommender_Callback(recommenderType, block, data) {
90
  // @todo: update settings – include parameter for limit minimum recommended items
91
  var min_products = 1;
92
+ if(data.length >= min_products) {
93
  jQuery.get(
94
  '/personalization/block',
95
  {
96
  ids: data,
97
  type: recommenderType,
98
+ minimum: min_products,
99
+ block_title: block.data('title')
100
  },
101
  function(response) {
102
  if(response) {
package.xml CHANGED
@@ -1,7 +1,7 @@
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,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>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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Rees46_Personalization</name>
4
+ <version>3.3.1</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>Custom blocks titles</notes>
25
  <authors><author><name>REES46</name><user>mkechinov</user><email>kechinoff@gmail.com</email></author></authors>
26
+ <date>2015-06-19</date>
27
+ <time>14:09:26</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="c31001fb23ec7ba70e2bddcc70119022"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7d8c44125849ee7ba71b633604ee70ff"/><file name="config.xml" hash="385953fdf1b15d1f30f4df79fd1c1cbd"/><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="7fc7028136360f3f4c17b86a64a93eee"/></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>