Favizone_Recommender - Version 1.0.9

Version Notes

* Adding new tracking tags

Download this release

Release Info

Developer Favizone
Extension Favizone_Recommender
Version 1.0.9
Comparing to
See all releases


Code changes from version 1.0.8 to 1.0.9

app/code/community/Favizone/Recommender/Block/Tracker.php CHANGED
@@ -137,6 +137,12 @@ class Favizone_Recommender_Block_Tracker extends Mage_Core_Block_Template
137
  $result['product_data']= $favizone_product;
138
  break;
139
  }
 
 
 
 
 
 
140
  /** searching for keywords coming from campaigns */
141
  if(!is_null($_GET['favizone'])){
142
 
137
  $result['product_data']= $favizone_product;
138
  break;
139
  }
140
+ /** searching for keywords coming from FB messenger */
141
+ if(!is_null($_GET['fz_p'])){
142
+
143
+ $result['favizone_facebook_profile'] = $_GET['fz_p'];
144
+ }
145
+
146
  /** searching for keywords coming from campaigns */
147
  if(!is_null($_GET['favizone'])){
148
 
app/code/community/Favizone/Recommender/Helper/Category.php CHANGED
@@ -101,6 +101,7 @@ class Favizone_Recommender_Helper_Category extends Mage_Core_Helper_Abstract
101
  "idParent"=>$category->getParentId(),
102
  "nameCategory"=>$category->getName(),
103
  "level"=>$category->getLevel(),
 
104
  "isCategoryRoot"=>$isRoot
105
  ));
106
  }
@@ -114,6 +115,7 @@ class Favizone_Recommender_Helper_Category extends Mage_Core_Helper_Abstract
114
  "idParent"=>$rootCategory->getParentId(),
115
  "nameCategory"=>$rootCategory->getName(),
116
  "level"=>$rootCategory->getLevel(),
 
117
  "isCategoryRoot"=>1
118
  ));
119
 
@@ -146,6 +148,7 @@ class Favizone_Recommender_Helper_Category extends Mage_Core_Helper_Abstract
146
  "idParent"=>$category->getParentId(),
147
  "nameCategory"=>$category->getName(),
148
  "level"=>$category->getLevel(),
 
149
  "isCategoryRoot"=>$isRoot
150
  )
151
  );
101
  "idParent"=>$category->getParentId(),
102
  "nameCategory"=>$category->getName(),
103
  "level"=>$category->getLevel(),
104
+ "image"=>($category->getImageUrl()?$category->getImageUrl():''),
105
  "isCategoryRoot"=>$isRoot
106
  ));
107
  }
115
  "idParent"=>$rootCategory->getParentId(),
116
  "nameCategory"=>$rootCategory->getName(),
117
  "level"=>$rootCategory->getLevel(),
118
+ "image"=>($rootCategory->getImageUrl()?$rootCategory->getImageUrl():''),
119
  "isCategoryRoot"=>1
120
  ));
121
 
148
  "idParent"=>$category->getParentId(),
149
  "nameCategory"=>$category->getName(),
150
  "level"=>$category->getLevel(),
151
+ "image"=>($category->getImageUrl()?$category->getImageUrl():''),
152
  "isCategoryRoot"=>$isRoot
153
  )
154
  );
app/design/frontend/base/default/template/favizonerecommender/bottom.phtml CHANGED
@@ -49,8 +49,11 @@
49
  if(custom_data.search_engine){
50
  favizone_tracker.search_engine_value = custom_data.search_engine_value;
51
  }
 
 
 
52
  }
53
-
54
  if(favizone_events.length>0)
55
  favizone_tracker.sendAction();
56
  </script>
49
  if(custom_data.search_engine){
50
  favizone_tracker.search_engine_value = custom_data.search_engine_value;
51
  }
52
+ if(custom_data.favizone_facebook_profile){
53
+ favizone_tracker.favizone_facebook_profile = custom_data.favizone_facebook_profile;
54
+ }
55
  }
56
+
57
  if(favizone_events.length>0)
58
  favizone_tracker.sendAction();
59
  </script>
app/design/frontend/base/default/template/favizonerecommender/preview.phtml CHANGED
@@ -34,7 +34,7 @@
34
  </span>
35
  </div>
36
  </div>
37
- <div class="clearfix"></div>
38
  <div class="col-sm-12 col-md-12" id="favizone_header" >
39
  <div class="favizone_description">
40
  <p><?php echo $this->__("This is a demonstration of Favizone's recommendations.");?>
34
  </span>
35
  </div>
36
  </div>
37
+ <div style="clear:both"></div>
38
  <div class="col-sm-12 col-md-12" id="favizone_header" >
39
  <div class="favizone_description">
40
  <p><?php echo $this->__("This is a demonstration of Favizone's recommendations.");?>
js/favizone/favizone-tracker.js CHANGED
@@ -12,7 +12,6 @@ function Tracker(session, key, events, apiUrl){
12
  this.apiUrl = apiUrl;
13
 
14
  this.sendAction = function(){
15
-
16
  /** checks if session_identifier and version is well defined **/
17
  var favizone_searcher = new FavizoneHelper();
18
  var favizone_connection_identifier = favizone_searcher.getCookie("favizone_connection_identifier_"+store_id);
@@ -29,6 +28,7 @@ function Tracker(session, key, events, apiUrl){
29
  this.events[i] = current_event;
30
 
31
  }
 
32
  this.process_sending();
33
  }
34
  }
@@ -55,6 +55,10 @@ function Tracker(session, key, events, apiUrl){
55
  sending_data.user_data = this.user_data;
56
  }
57
 
 
 
 
 
58
  if(typeof(this.product_data) != "undefined"){
59
  sending_data['product'] = this.product_data;
60
  }
@@ -74,9 +78,9 @@ function Tracker(session, key, events, apiUrl){
74
  };
75
 
76
  var params = JSON.stringify(sending_data);
77
- request.setRequestHeader("Content-type", "application/json");
78
- request.setRequestHeader("Content-length", params.length);
79
- request.setRequestHeader("Connection", "close");
80
  request.timeout = 3000;
81
  request.ontimeout = function () {
82
  //timeout
12
  this.apiUrl = apiUrl;
13
 
14
  this.sendAction = function(){
 
15
  /** checks if session_identifier and version is well defined **/
16
  var favizone_searcher = new FavizoneHelper();
17
  var favizone_connection_identifier = favizone_searcher.getCookie("favizone_connection_identifier_"+store_id);
28
  this.events[i] = current_event;
29
 
30
  }
31
+
32
  this.process_sending();
33
  }
34
  }
55
  sending_data.user_data = this.user_data;
56
  }
57
 
58
+ if (this.favizone_facebook_profile) {
59
+ sending_data.favizone_facebook_profile = this.favizone_facebook_profile;
60
+ }
61
+
62
  if(typeof(this.product_data) != "undefined"){
63
  sending_data['product'] = this.product_data;
64
  }
78
  };
79
 
80
  var params = JSON.stringify(sending_data);
81
+ //request.setRequestHeader("Content-type", "application/json");
82
+ //request.setRequestHeader("Content-length", params.length);
83
+ // request.setRequestHeader("Connection", "close");
84
  request.timeout = 3000;
85
  request.ontimeout = function () {
86
  //timeout
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Favizone_Recommender</name>
4
- <version>1.0.8</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Favizone</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Personalization for Magento</summary>
10
  <description>Favizone Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.e_Recommender</description>
11
- <notes>* Editing product's categories data : getting all categories hierarchy </notes>
12
  <authors><author><name>Favizone</name><user>favizone</user><email>contact@favizone.com</email></author></authors>
13
- <date>2017-01-16</date>
14
- <time>11:14:57</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Favizone_Recommender.xml" hash="7457b857a4a6fb30905081c9c87fee60"/></dir></target><target name="magecommunity"><dir name="Favizone"><dir name="Recommender"><dir name="Block"><dir name="Adminhtml"><file name="AdminConfig.php" hash="141fcf73ddb9a82818a65021d74a01a8"/></dir><file name="Common.php" hash="e53f8700fcf0fde9353a571d71272547"/><file name="Custom.php" hash="b904e161cc0100d7518f09bec7cf04ac"/><file name="Renderer.php" hash="6e97d9d908b47e7f59b288b35fe3d18d"/><file name="Tracker.php" hash="c099c9ff1e207aa5d0f868bf12434280"/></dir><dir name="Helper"><file name="Account.php" hash="62eda9b2b7bb7db618e117d9ba002b7b"/><file name="Category.php" hash="30cf71f08be4f4ff265652633c2c5876"/><file name="Common.php" hash="062d1cdf8c1403b3a02b9562af761328"/><file name="Customer.php" hash="d964c01b0feee83dd279115deaa8b209"/><file name="Data.php" hash="dc837e04dd9c0ebed5ef6946b909417f"/><file name="Export.php" hash="3f0623bf1ad76991ca5229938d957586"/><file name="Order.php" hash="d4023b65bf902b7ef202b91b7d0629e7"/><file name="Product.php" hash="57451c4180b61aee7cc4530b1e402e22"/><file name="Sender.php" hash="24f9459a7eefcaa5f3a13e90f932dab2"/></dir><dir name="Model"><file name="AccessKey.php" hash="c0fabf3617b346543bcca6f36fe98e1a"/><dir name="Meta"><file name="Customer.php" hash="de62cf990ba2d3b1e83759919f6f9cfc"/><file name="Order.php" hash="9ebb1a57b41bee5db8c3463f241d872f"/><file name="Product.php" hash="a2847ff70871f905cccf1688bdcc5cd4"/></dir><file name="Observer.php" hash="6347d192cc5fd52aed37d206a5192166"/><file name="Product.php" hash="d480f4a105cba555b23831dbc4a25e1b"/><dir name="Resource"><dir name="AccessKey"><file name="Collection.php" hash="5255134124dc54701b4942cc0c29f018"/></dir><file name="AccessKey.php" hash="5e4d06afae4261e6f7e1da929a3c4d09"/><dir name="Product"><file name="Collection.php" hash="52bed2df792fe0562e3c2e777ffc3767"/></dir><file name="Setup.php" hash="5e0685b4baad75a3e84223fad4c1e3b9"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="FavizoneController.php" hash="c26e28b6650c3150a68ba8bc822bd8c2"/></dir><file name="IndexController.php" hash="d6609e50ac68ad29a3a952bcf6b88ef9"/></dir><dir name="etc"><file name="adminhtml.xml" hash="abe94fe89c2635eae6b0c46c27601982"/><file name="config.xml" hash="26f6cdb8947835f5dc25cddd4ae34b6f"/></dir><dir name="sql"><dir name="favizone_recommender_setup"><file name="mysql4-install-1.0.0.php" hash="b2b0bf8d6a50ea30808e284fe6e6d956"/><file name="mysql4-upgrade-1.0.0-1.0.3.php" hash="13a8f4614e43b2a65f854e6c51ae3e04"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="favizone"><file name="admin-custom-style.css" hash="f278f55ed46d78600f7613fa4ad494f4"/><file name="font-awesome.min.css" hash="7aa7a0865ce6f38d0e854d3dd4623e3d"/><dir name="fonts"><file name="FontAwesome.otf" hash="87d8ca3ddc57e7d2da6226e480f90457"/><file name="fontawesome-webfont.eot" hash="32400f4e08932a94d8bfd2422702c446"/><file name="fontawesome-webfont.svg" hash="f775f9cca88e21d45bebe185b27c0e5b"/><file name="fontawesome-webfont.ttf" hash="a3de2170e4e9df77161ea5d3f31b2668"/><file name="fontawesome-webfont.woff" hash="a35720c2fed2c7f043bc7e4ffb45e073"/><file name="fontawesome-webfont.woff2" hash="db812d8a70a4e88e888744c1c9a27e89"/></dir></dir><dir name="images"><dir name="favizone"><file name="close.png" hash="8177fd73492c9b00de9d8e39ce518352"/><file name="logo-favizone.png" hash="f4ba18ee390b6080b5660a0102c817e8"/><file name="minimize.png" hash="beff58e92474b2ff1365107c75747e63"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="favizone"><file name="favizone-auto-appender.js" hash="5d76d6c235b07ee68b73909d1c048a3a"/><file name="favizone-helper.js" hash="ad8fbad529e8e4d803949d860ae67ad8"/><file name="favizone-preview-manager.js" hash="76802c9d3e38cb8ec3c700754d40fd8f"/><file name="favizone-renderer.js" hash="86f672087f479cc113f66bc97227e3aa"/><file name="favizone-tracker.js" hash="dbd2e4d131911b41f220ff880e1df23c"/><file name="internal-sender.js" hash="79f6501b98c3fa279bcaf1bb885e663f"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="favizonerecommender.xml" hash="accc4ea6c5ec649f9c990508196399f5"/></dir><dir name="template"><dir name="favizonerecommender"><file name="adminconfig.phtml" hash="98c71b89a37ce684398ecf9fe8f9d651"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="favizonerecommender.xml" hash="761e78aad6a8b28baba9ceb008755732"/></dir><dir name="template"><dir name="favizonerecommender"><file name="bottom.phtml" hash="0a4c338723bbdc8753f4536cc69a7284"/><file name="common.phtml" hash="d9f906e6eb81892361b5bd5c0e88b8ed"/><file name="custom.phtml" hash="b4c5c3492a1eca27c59510b642a1f837"/><file name="event.phtml" hash="8da220d74a265c722edfa43f02b21a4e"/><file name="footer.phtml" hash="f080c361ceff1aed3010e9aad9c07251"/><file name="index.phtml" hash="17e341f9b39c20030ce03bced05fd091"/><file name="preview.phtml" hash="c205c5d2ed8dc98877f6d8d0f6a356ac"/><file name="renderer.phtml" hash="b269e1e7f9e4dfd57e6806e581e887f0"/><file name="tracker.phtml" hash="d3e3ee4ebaf6042f37c1366811bbad7f"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Favizone_Recommender.csv" hash="9832f3a28ed8c6af16ddb29d23444131"/></dir><dir name="fr_FR"><file name="Favizone_Recommender.csv" hash="af5908d502a8d2356e86f6a1729a7309"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Favizone_Recommender</name>
4
+ <version>1.0.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Favizone</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Personalization for Magento</summary>
10
  <description>Favizone Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.e_Recommender</description>
11
+ <notes>* Adding new tracking tags</notes>
12
  <authors><author><name>Favizone</name><user>favizone</user><email>contact@favizone.com</email></author></authors>
13
+ <date>2017-01-30</date>
14
+ <time>08:30:24</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Favizone_Recommender.xml" hash="7457b857a4a6fb30905081c9c87fee60"/></dir></target><target name="magecommunity"><dir name="Favizone"><dir name="Recommender"><dir name="Block"><dir name="Adminhtml"><file name="AdminConfig.php" hash="141fcf73ddb9a82818a65021d74a01a8"/></dir><file name="Common.php" hash="e53f8700fcf0fde9353a571d71272547"/><file name="Custom.php" hash="b904e161cc0100d7518f09bec7cf04ac"/><file name="Renderer.php" hash="6e97d9d908b47e7f59b288b35fe3d18d"/><file name="Tracker.php" hash="c73c3e731cf06a74fd39627da569a11f"/></dir><dir name="Helper"><file name="Account.php" hash="62eda9b2b7bb7db618e117d9ba002b7b"/><file name="Category.php" hash="3093fc13c2f99e32aa35e6fa6e64594c"/><file name="Common.php" hash="062d1cdf8c1403b3a02b9562af761328"/><file name="Customer.php" hash="d964c01b0feee83dd279115deaa8b209"/><file name="Data.php" hash="dc837e04dd9c0ebed5ef6946b909417f"/><file name="Export.php" hash="3f0623bf1ad76991ca5229938d957586"/><file name="Order.php" hash="d4023b65bf902b7ef202b91b7d0629e7"/><file name="Product.php" hash="57451c4180b61aee7cc4530b1e402e22"/><file name="Sender.php" hash="24f9459a7eefcaa5f3a13e90f932dab2"/></dir><dir name="Model"><file name="AccessKey.php" hash="c0fabf3617b346543bcca6f36fe98e1a"/><dir name="Meta"><file name="Customer.php" hash="de62cf990ba2d3b1e83759919f6f9cfc"/><file name="Order.php" hash="9ebb1a57b41bee5db8c3463f241d872f"/><file name="Product.php" hash="a2847ff70871f905cccf1688bdcc5cd4"/></dir><file name="Observer.php" hash="6347d192cc5fd52aed37d206a5192166"/><file name="Product.php" hash="d480f4a105cba555b23831dbc4a25e1b"/><dir name="Resource"><dir name="AccessKey"><file name="Collection.php" hash="5255134124dc54701b4942cc0c29f018"/></dir><file name="AccessKey.php" hash="5e4d06afae4261e6f7e1da929a3c4d09"/><dir name="Product"><file name="Collection.php" hash="52bed2df792fe0562e3c2e777ffc3767"/></dir><file name="Setup.php" hash="5e0685b4baad75a3e84223fad4c1e3b9"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="FavizoneController.php" hash="c26e28b6650c3150a68ba8bc822bd8c2"/></dir><file name="IndexController.php" hash="d6609e50ac68ad29a3a952bcf6b88ef9"/></dir><dir name="etc"><file name="adminhtml.xml" hash="abe94fe89c2635eae6b0c46c27601982"/><file name="config.xml" hash="26f6cdb8947835f5dc25cddd4ae34b6f"/></dir><dir name="sql"><dir name="favizone_recommender_setup"><file name="mysql4-install-1.0.0.php" hash="b2b0bf8d6a50ea30808e284fe6e6d956"/><file name="mysql4-upgrade-1.0.0-1.0.3.php" hash="13a8f4614e43b2a65f854e6c51ae3e04"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="favizone"><file name="admin-custom-style.css" hash="027c882c12696e0f042a122628dfe2e3"/><file name="font-awesome.min.css" hash="7aa7a0865ce6f38d0e854d3dd4623e3d"/><dir name="fonts"><file name="FontAwesome.otf" hash="87d8ca3ddc57e7d2da6226e480f90457"/><file name="fontawesome-webfont.eot" hash="32400f4e08932a94d8bfd2422702c446"/><file name="fontawesome-webfont.svg" hash="f775f9cca88e21d45bebe185b27c0e5b"/><file name="fontawesome-webfont.ttf" hash="a3de2170e4e9df77161ea5d3f31b2668"/><file name="fontawesome-webfont.woff" hash="a35720c2fed2c7f043bc7e4ffb45e073"/><file name="fontawesome-webfont.woff2" hash="db812d8a70a4e88e888744c1c9a27e89"/></dir></dir><dir name="images"><dir name="favizone"><file name="close.png" hash="8177fd73492c9b00de9d8e39ce518352"/><file name="logo-favizone.png" hash="f4ba18ee390b6080b5660a0102c817e8"/><file name="minimize.png" hash="beff58e92474b2ff1365107c75747e63"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="favizone"><file name="favizone-auto-appender.js" hash="5d76d6c235b07ee68b73909d1c048a3a"/><file name="favizone-helper.js" hash="ad8fbad529e8e4d803949d860ae67ad8"/><file name="favizone-preview-manager.js" hash="76802c9d3e38cb8ec3c700754d40fd8f"/><file name="favizone-renderer.js" hash="86f672087f479cc113f66bc97227e3aa"/><file name="favizone-tracker.js" hash="66bf3401fe1c4a6a08cb94ac9c93bd52"/><file name="internal-sender.js" hash="79f6501b98c3fa279bcaf1bb885e663f"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="favizonerecommender.xml" hash="accc4ea6c5ec649f9c990508196399f5"/></dir><dir name="template"><dir name="favizonerecommender"><file name="adminconfig.phtml" hash="98c71b89a37ce684398ecf9fe8f9d651"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="favizonerecommender.xml" hash="761e78aad6a8b28baba9ceb008755732"/></dir><dir name="template"><dir name="favizonerecommender"><file name="bottom.phtml" hash="a1d17d2c0f11a080bb805c6e3ed3c720"/><file name="common.phtml" hash="d9f906e6eb81892361b5bd5c0e88b8ed"/><file name="custom.phtml" hash="b4c5c3492a1eca27c59510b642a1f837"/><file name="event.phtml" hash="8da220d74a265c722edfa43f02b21a4e"/><file name="footer.phtml" hash="f080c361ceff1aed3010e9aad9c07251"/><file name="index.phtml" hash="17e341f9b39c20030ce03bced05fd091"/><file name="preview.phtml" hash="f33143284aa578b50072f0858f1efcf6"/><file name="renderer.phtml" hash="b269e1e7f9e4dfd57e6806e581e887f0"/><file name="tracker.phtml" hash="d3e3ee4ebaf6042f37c1366811bbad7f"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Favizone_Recommender.csv" hash="9832f3a28ed8c6af16ddb29d23444131"/></dir><dir name="fr_FR"><file name="Favizone_Recommender.csv" hash="af5908d502a8d2356e86f6a1729a7309"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/adminhtml/default/default/favizone/admin-custom-style.css CHANGED
@@ -229,7 +229,7 @@ input#ab_test_off {
229
  width: 50%;
230
  }
231
  .favizone-help{
232
- color: #ec751e !important;
233
  }
234
  .favizone_preview{
235
 
@@ -472,7 +472,7 @@ clear: both;
472
  width: 55%;
473
  }
474
  #favizone_preview_section .favizone-help {
475
- color: #ec751e !important;
476
  }
477
  #favizone_preview_section {
478
  -webkit-box-shadow: 5px 3px 64px -4px rgba(0, 0, 0, 0.41);
229
  width: 50%;
230
  }
231
  .favizone-help{
232
+ color: #00bbd3 !important;
233
  }
234
  .favizone_preview{
235
 
472
  width: 55%;
473
  }
474
  #favizone_preview_section .favizone-help {
475
+ color: #00bbd3 !important;
476
  }
477
  #favizone_preview_section {
478
  -webkit-box-shadow: 5px 3px 64px -4px rgba(0, 0, 0, 0.41);