unbxd_recommendation - Version 1.0.12

Version Notes

added availablity filter

Download this release

Release Info

Developer ananthesh
Extension unbxd_recommendation
Version 1.0.12
Comparing to
See all releases


Code changes from version 1.0.11 to 1.0.12

app/code/local/Unbxd/Recommendation/Helper/Feedhelper.php CHANGED
@@ -26,6 +26,9 @@ class Unbxd_Recommendation_Helper_Feedhelper extends Unbxd_Recommendation_Helper
26
  * function to get Category from the category id,
27
  * This checks it present in the global array 'categoryMap', if it is not there fetches from db
28
  * So that once it gets one category, it doesn't make db call again for the same category
 
 
 
29
  */
30
  public function getCategory($category_id = ""){
31
  if(!isset($this->categoryMap[$category_id])){
@@ -49,22 +52,20 @@ class Unbxd_Recommendation_Helper_Feedhelper extends Unbxd_Recommendation_Helper
49
  return $this->_rootCategoryIds[$website->getWebsiteId()];
50
  }
51
 
52
- public function getCatLevel1(Mage_Core_Model_Website $website, $category_ids) {
53
  if(!is_array($category_ids)) {
54
  return array();
55
  }
56
- $rootCategories = $this->getRootCategoryIds($website);
57
  $catlevel1 = array();
58
  foreach($category_ids as $category_id) {
59
  $category = $this->getCategory($category_id);
60
  $parentIds = $category->getParentIds();
61
- if(!is_null($category) &&
62
- in_array($category->getId(), $rootCategories)) {
63
- $catlevel1 = $catlevel1 + array($category->getId() => $category->getName());
64
  } else if ($category instanceof Mage_Catalog_Model_Category &&
65
  is_array($parentIds) &&
66
  (sizeof($parentIds) >0)) {
67
- $catlevel1 = $catlevel1 + $this->getCatLevel1($website, $parentIds);
68
  }
69
  }
70
  return $catlevel1;
26
  * function to get Category from the category id,
27
  * This checks it present in the global array 'categoryMap', if it is not there fetches from db
28
  * So that once it gets one category, it doesn't make db call again for the same category
29
+ *
30
+ * @param string $category_id
31
+ * @return Mage_Catalog_Model_Category
32
  */
33
  public function getCategory($category_id = ""){
34
  if(!isset($this->categoryMap[$category_id])){
52
  return $this->_rootCategoryIds[$website->getWebsiteId()];
53
  }
54
 
55
+ public function getCategoryOnLevel($category_ids, $level) {
56
  if(!is_array($category_ids)) {
57
  return array();
58
  }
 
59
  $catlevel1 = array();
60
  foreach($category_ids as $category_id) {
61
  $category = $this->getCategory($category_id);
62
  $parentIds = $category->getParentIds();
63
+ if(!is_null($category) && $category->getLevel() == $level) {
64
+ $catlevel1 = $catlevel1 + array($category->getName());
 
65
  } else if ($category instanceof Mage_Catalog_Model_Category &&
66
  is_array($parentIds) &&
67
  (sizeof($parentIds) >0)) {
68
+ $catlevel1 = $catlevel1 + $this->getCategoryOnLevel($parentIds, $level);
69
  }
70
  }
71
  return $catlevel1;
app/code/local/Unbxd/Recommendation/Model/Feed/Feedcreator.php CHANGED
@@ -95,7 +95,7 @@ class Unbxd_Recommendation_Model_Feed_Feedcreator {
95
 
96
  private function writeProductsContent($fromdate,$todate,Mage_Core_Model_Website $website,$operation,$ids) {
97
 
98
- $collection=$this->getCatalogCollection($fromdate,$todate,$website,$operation,$ids);
99
  // get total size
100
  //set the time limit to infinite
101
  ignore_user_abort(true);
@@ -114,6 +114,7 @@ class Unbxd_Recommendation_Model_Feed_Feedcreator {
114
  $collection->clear();
115
  $collection->getSelect()->limit(self::PAGE_SIZE, ($pageNum++) * self::PAGE_SIZE);
116
  $collection->load();
 
117
  if(count($collection) == 0){
118
  if($pageNum == 1){
119
  $this->log("No products found");
@@ -232,11 +233,14 @@ class Unbxd_Recommendation_Model_Feed_Feedcreator {
232
  */
233
  public function getCatalogCollection($fromdate,$todate,Mage_Core_Model_Website $website,$operation,$ids) {
234
  if ($operation == "add") {
235
- $_catalogInventoryTable = Mage::getSingleton("core/resource")->getTableName("cataloginventory_stock_item");
 
 
236
  $collection = Mage::getResourceModel('unbxd_recommendation/product_collection')
237
  ->addWebsiteFilter($website->getWebsiteId())
238
  ->joinField("qty", $_catalogInventoryTable, 'qty', 'product_id=entity_id', null, 'left')
239
  ->addAttributeToSelect('*')
 
240
  ->addPriceData(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID, $website->getWebsiteId());
241
 
242
  Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
95
 
96
  private function writeProductsContent($fromdate,$todate,Mage_Core_Model_Website $website,$operation,$ids) {
97
 
98
+ $collection = $this->getCatalogCollection($fromdate,$todate,$website,$operation,$ids);
99
  // get total size
100
  //set the time limit to infinite
101
  ignore_user_abort(true);
114
  $collection->clear();
115
  $collection->getSelect()->limit(self::PAGE_SIZE, ($pageNum++) * self::PAGE_SIZE);
116
  $collection->load();
117
+ Mage::getModel('cataloginventory/stock_status')->addStockStatusToProducts($collection);
118
  if(count($collection) == 0){
119
  if($pageNum == 1){
120
  $this->log("No products found");
233
  */
234
  public function getCatalogCollection($fromdate,$todate,Mage_Core_Model_Website $website,$operation,$ids) {
235
  if ($operation == "add") {
236
+ $adapter = Mage::getSingleton("core/resource");
237
+ $_catalogInventoryTable = method_exists($adapter, 'getTableName')
238
+ ? $adapter->getTableName('cataloginventory_stock_item'): 'catalog_category_product_index';
239
  $collection = Mage::getResourceModel('unbxd_recommendation/product_collection')
240
  ->addWebsiteFilter($website->getWebsiteId())
241
  ->joinField("qty", $_catalogInventoryTable, 'qty', 'product_id=entity_id', null, 'left')
242
  ->addAttributeToSelect('*')
243
+ ->addCategoryIds()
244
  ->addPriceData(Mage_Customer_Model_Group::NOT_LOGGED_IN_ID, $website->getWebsiteId());
245
 
246
  Mage::getSingleton('catalog/product_status')->addVisibleFilterToCollection($collection);
app/code/local/Unbxd/Recommendation/Model/Feed/Jsonbuilder/Productbuilder.php CHANGED
@@ -50,7 +50,7 @@ class Unbxd_Recommendation_Model_Feed_Jsonbuilder_Productbuilder extends
50
  $productArray[$uniqueIdField] = $columndata;
51
  }else if($columnHeader=="url_path"){
52
  // handling the url
53
- $productArray[$unbxdFieldName] = Mage::getUrl('').$columndata;
54
  } else if (Mage::helper('unbxd_recommendation/feedhelper')->isImage($columnHeader)) {
55
  // handling tthe images
56
  $attributeValue = $this->getImage($columnHeader, $unbxdFieldName, $product, $fields);
@@ -78,6 +78,9 @@ class Unbxd_Recommendation_Model_Feed_Jsonbuilder_Productbuilder extends
78
  // adding the category
79
  $productArray = $category + $productArray;
80
 
 
 
 
81
  }
82
  return $productArray;
83
  }
@@ -103,20 +106,14 @@ class Unbxd_Recommendation_Model_Feed_Jsonbuilder_Productbuilder extends
103
  $category[] = $categoryName;
104
  }
105
 
106
- $level1Categories = Mage::helper('unbxd_recommendation/feedhelper')
107
- ->getCatLevel1($website, $categoryIds);
108
- $level2Categories = Mage::helper('unbxd_recommendation/feedhelper')
109
- ->getCatLevel2($website, $categoryIds, $level1Categories);
110
- $level3Categories = Mage::helper('unbxd_recommendation/feedhelper')
111
- ->getCatLevel3($website, $categoryIds, $level2Categories);
112
- if(array_values($level1Categories) > 0) {
113
- $categoryData[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_1_NAME] = array_values($level1Categories);
114
- }
115
- if(array_values($level2Categories)) {
116
- $categoryData[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_2_NAME] = array_values($level2Categories);
117
- }
118
- if(array_values($level3Categories)) {
119
- $categoryData[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_3_NAME] = array_values($level3Categories);
120
  }
121
 
122
  $categoryData[Unbxd_Recommendation_Model_Resource_Field::CATEGORY_IDS_NAME] = $categoryIds;
50
  $productArray[$uniqueIdField] = $columndata;
51
  }else if($columnHeader=="url_path"){
52
  // handling the url
53
+ $productArray[$unbxdFieldName] = $product->getProductUrl();
54
  } else if (Mage::helper('unbxd_recommendation/feedhelper')->isImage($columnHeader)) {
55
  // handling tthe images
56
  $attributeValue = $this->getImage($columnHeader, $unbxdFieldName, $product, $fields);
78
  // adding the category
79
  $productArray = $category + $productArray;
80
 
81
+ $productArray[Unbxd_Recommendation_Model_Resource_Field::AVAILABILITY] =
82
+ $product->isSalable()? "true": "false";
83
+
84
  }
85
  return $productArray;
86
  }
106
  $category[] = $categoryName;
107
  }
108
 
109
+ for($level =1; $level <=4 ; $level++) {
110
+ $levelCategories = Mage::helper('unbxd_recommendation/feedhelper')
111
+ ->getCategoryOnLevel($categoryIds, $level);
112
+
113
+ if (sizeof($levelCategories) > 0) {
114
+ $categoryData['categoryLevel' . $level] = $levelCategories;
115
+ $categoryData['catLevel' . $level . 'Name'] = $levelCategories[0];
116
+ }
 
 
 
 
 
 
117
  }
118
 
119
  $categoryData[Unbxd_Recommendation_Model_Resource_Field::CATEGORY_IDS_NAME] = $categoryIds;
app/code/local/Unbxd/Recommendation/Model/Field.php CHANGED
@@ -104,11 +104,23 @@
104
  $featuredFields["discount"]=$this->getField("decimal", "false", "false");
105
  $featuredFields["rating"]=$this->getField("decimal", "false", "false");
106
  $featuredFields["brandId"]=$this->getField("text", "false", "false");
107
- $featuredFields["catlevel1Name"]=$this->getField("text", "false", "false");
108
- $featuredFields["catlevel2Name"]=$this->getField("text", "false", "false");
109
- $featuredFields["catlevel3Name"]=$this->getField("text", "false", "false");
110
- $featuredFields["catlevel4Name"]=$this->getField("text", "false", "false");
111
- $featuredFields["category"]=$this->getField("text", "true", "true");
 
 
 
 
 
 
 
 
 
 
 
 
112
  $featuredFields["subCategory"]=$this->getField("text", "true", "true");
113
  $featuredFields["color"]=$this->getField("text", "true", "false");
114
  $featuredFields["size"]=$this->getField("text", "true", "false");
104
  $featuredFields["discount"]=$this->getField("decimal", "false", "false");
105
  $featuredFields["rating"]=$this->getField("decimal", "false", "false");
106
  $featuredFields["brandId"]=$this->getField("text", "false", "false");
107
+ $featuredFields[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_1_NAME] =
108
+ $this->getField("text", "false", "false");
109
+ $featuredFields[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_2_NAME] =
110
+ $this->getField("text", "false", "false");
111
+ $featuredFields[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_3_NAME] =
112
+ $this->getField("text", "false", "false");
113
+ $featuredFields[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_4_NAME] =
114
+ $this->getField("text", "false", "false");
115
+ $featuredFields[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_1] =
116
+ $this->getField("text", "true", "false");
117
+ $featuredFields[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_2] =
118
+ $this->getField("text", "true", "false");
119
+ $featuredFields[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_3] =
120
+ $this->getField("text", "true", "false");
121
+ $featuredFields[Unbxd_Recommendation_Model_Resource_Field::CAT_LEVEL_4] =
122
+ $this->getField("text", "true", "false");
123
+ $featuredFields["category"] = $this->getField("text", "true", "true");
124
  $featuredFields["subCategory"]=$this->getField("text", "true", "true");
125
  $featuredFields["color"]=$this->getField("text", "true", "false");
126
  $featuredFields["size"]=$this->getField("text", "true", "false");
app/code/local/Unbxd/Recommendation/Model/Resource/Field.php CHANGED
@@ -8,15 +8,27 @@
8
  class Unbxd_Recommendation_Model_Resource_Field extends Mage_Core_Model_Mysql4_Abstract
9
  {
10
 
11
- const CAT_LEVEL_1_NAME = "catLevel1";
12
 
13
- const CAT_LEVEL_2_NAME = "catLevel2";
14
 
15
- const CAT_LEVEL_3_NAME = "catLevel3";
 
 
 
 
 
 
 
 
 
 
16
 
17
  const CATEGORY_IDS_NAME = "categoryIds";
18
 
19
  const CATEGORY_NAME = "category";
 
 
20
  /**
21
  * Unbxd Field Config table Name
22
  *
@@ -92,14 +104,23 @@ VALUES
92
  ({$websiteId}, 'size', 'text', 0, 'size', 1, 1),
93
  ({$websiteId}, 'image', 'link', 0, 'imageUrl', 1, 1),
94
  ({$websiteId}, 'url_path', 'link', 0, 'productUrl', 0, 1),
95
- ({$websiteId}, '".self::CAT_LEVEL_1_NAME. "', 'text', 0, NULL, 1, 0),
96
- ({$websiteId}, '".self::CAT_LEVEL_2_NAME. "', 'text', 0, NULL, 1, 0),
97
- ({$websiteId}, '".self::CAT_LEVEL_3_NAME. "', 'text', 0, NULL, 1, 0),
 
 
 
 
 
 
 
 
 
98
  ({$websiteId}, 'status', 'number', 0, NULL, 0, 0),
99
  ({$websiteId}, 'visibility', 'number', 0, NULL, 0, 0),
100
  ({$websiteId}, 'qty', 'number', 0, NULL, 0, 0),
101
- ({$websiteId}, '".self::CATEGORY_IDS_NAME. "', 'longText', 0, NULL, {$websiteId}, 0),
102
- ({$websiteId}, '".self::CATEGORY_NAME. "', 'text', 0, 'category', 1, 0),
103
  ({$websiteId}, 'uniqueId', 'longText', 0, NULL, 0, 0),
104
  ({$websiteId}, 'entity_id', 'longText', 0, NULL, 0, 0);";
105
  }
8
  class Unbxd_Recommendation_Model_Resource_Field extends Mage_Core_Model_Mysql4_Abstract
9
  {
10
 
11
+ const CAT_LEVEL_1 = "categoryLevel1";
12
 
13
+ const CAT_LEVEL_2 = "categoryLevel2";
14
 
15
+ const CAT_LEVEL_3 = "categoryLevel3";
16
+
17
+ const CAT_LEVEL_4 = "categoryLevel4";
18
+
19
+ const CAT_LEVEL_1_NAME = "catLevel1Name";
20
+
21
+ const CAT_LEVEL_2_NAME = "catLevel2Name";
22
+
23
+ const CAT_LEVEL_3_NAME = "catLevel3Name";
24
+
25
+ const CAT_LEVEL_4_NAME = "catLevel4Name";
26
 
27
  const CATEGORY_IDS_NAME = "categoryIds";
28
 
29
  const CATEGORY_NAME = "category";
30
+
31
+ const AVAILABILITY = 'availability';
32
  /**
33
  * Unbxd Field Config table Name
34
  *
104
  ({$websiteId}, 'size', 'text', 0, 'size', 1, 1),
105
  ({$websiteId}, 'image', 'link', 0, 'imageUrl', 1, 1),
106
  ({$websiteId}, 'url_path', 'link', 0, 'productUrl', 0, 1),
107
+ ({$websiteId}, 'gender', 'text', 0, 'gender', 0, 1),
108
+ ({$websiteId}, 'description', 'longText', 0, 'description', 0, 1),
109
+ ({$websiteId}, 'catLevel1Name', 'text', 0, 'catLevel1Name', 0, 0),
110
+ ({$websiteId}, 'catLevel2Name', 'text', 0, 'catLevel2Name', 0, 0),
111
+ ({$websiteId}, 'catLevel3Name', 'text', 0, 'catLevel3Name', 0, 0),
112
+ ({$websiteId}, 'catLevel4Name', 'text', 0, 'catLevel4Name', 0, 0),
113
+ ({$websiteId}, 'categoryLevel1', 'text', 0, 'categoryLevel1', 1, 0),
114
+ ({$websiteId}, 'categoryLevel2', 'text', 0, 'categoryLevel2', 1, 0),
115
+ ({$websiteId}, 'categoryLevel3', 'text', 0, 'categoryLevel3', 1, 0),
116
+ ({$websiteId}, 'categoryLevel4', 'text', 0, 'categoryLevel4', 1, 0),
117
+ ({$websiteId}, 'created_at', 'date', 0, NULL, 0, 1)
118
+ ({$websiteId}, 'availability', 'bool', 0, 'availability', 0, 0),
119
  ({$websiteId}, 'status', 'number', 0, NULL, 0, 0),
120
  ({$websiteId}, 'visibility', 'number', 0, NULL, 0, 0),
121
  ({$websiteId}, 'qty', 'number', 0, NULL, 0, 0),
122
+ ({$websiteId}, 'categoryIds', 'longText', 0, NULL, 1, 0),
123
+ ({$websiteId}, 'category', 'text', 0, 'category', 1, 0),
124
  ({$websiteId}, 'uniqueId', 'longText', 0, NULL, 0, 0),
125
  ({$websiteId}, 'entity_id', 'longText', 0, NULL, 0, 0);";
126
  }
app/code/local/Unbxd/Recommendation/Model/Resource/Product/Collection.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  class Unbxd_Recommendation_Model_Resource_Product_Collection extends Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection{
4
 
5
  protected function _construct()
1
  <?php
 
2
  class Unbxd_Recommendation_Model_Resource_Product_Collection extends Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection{
3
 
4
  protected function _construct()
app/code/local/Unbxd/Recommendation/etc/config.xml CHANGED
@@ -1,7 +1,7 @@
1
  <config>
2
  <modules>
3
  <Unbxd_Recommendation>
4
- <version>1.0.11</version>
5
  </Unbxd_Recommendation>
6
  </modules>
7
  <admin>
1
  <config>
2
  <modules>
3
  <Unbxd_Recommendation>
4
+ <version>1.0.12</version>
5
  </Unbxd_Recommendation>
6
  </modules>
7
  <admin>
app/code/local/Unbxd/Recommendation/sql/unbxd_recommendation_setup/mysql4-install-1.0.0.php CHANGED
@@ -12,7 +12,7 @@ $fieldTable = $installer->getTable('unbxd_field_conf');
12
  $installer->run("
13
  DROP TABLE IF EXISTS `{$fieldTable}`;
14
 
15
- CREATE TABLE `{$fieldTable}` (
16
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
17
  `website_id` tinyint(5) unsigned NOT NULL,
18
  `field_name` varchar(100) NOT NULL DEFAULT '',
@@ -21,8 +21,9 @@ CREATE TABLE `{$fieldTable}` (
21
  `featured_field` varchar(100) DEFAULT NULL,
22
  `multivalued` tinyint(1) NOT NULL DEFAULT '0',
23
  `displayed` tinyint(1) NOT NULL DEFAULT '1',
24
- PRIMARY KEY (`id`)
25
- ) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=latin1;
 
26
 
27
  DROP TABLE IF EXISTS `{$configTable}`;
28
  CREATE TABLE `{$configTable}` (
@@ -31,12 +32,38 @@ CREATE TABLE `{$configTable}` (
31
  `key` varchar(50) NOT NULL DEFAULT '',
32
  `value` varchar(50) DEFAULT NULL,
33
  PRIMARY KEY (`id`)
34
- ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;
35
  ");
36
 
37
  $websiteCollection = Mage::getModel('core/website')->getCollection()->load();
38
  foreach($websiteCollection as $website) {
39
- $installer->run(Mage::getResourceSingleton('unbxd_recommendation/field')->getDefaultFieldInsertStatement($website));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  }
41
  $installer->endSetup();
42
  ?>
12
  $installer->run("
13
  DROP TABLE IF EXISTS `{$fieldTable}`;
14
 
15
+ CREATE TABLE `unbxd_field_conf` (
16
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
17
  `website_id` tinyint(5) unsigned NOT NULL,
18
  `field_name` varchar(100) NOT NULL DEFAULT '',
21
  `featured_field` varchar(100) DEFAULT NULL,
22
  `multivalued` tinyint(1) NOT NULL DEFAULT '0',
23
  `displayed` tinyint(1) NOT NULL DEFAULT '1',
24
+ PRIMARY KEY (`id`),
25
+ UNIQUE KEY `website_id` (`website_id`,`field_name`)
26
+ ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
27
 
28
  DROP TABLE IF EXISTS `{$configTable}`;
29
  CREATE TABLE `{$configTable}` (
32
  `key` varchar(50) NOT NULL DEFAULT '',
33
  `value` varchar(50) DEFAULT NULL,
34
  PRIMARY KEY (`id`)
35
+ ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
36
  ");
37
 
38
  $websiteCollection = Mage::getModel('core/website')->getCollection()->load();
39
  foreach($websiteCollection as $website) {
40
+ $websiteId = $website->getWebsiteId();
41
+ if(is_null($websiteId)) {
42
+ continue;
43
+ }
44
+ $fieldTable = Mage::getResourceModel('unbxd_recommendation/field')->getTableName();
45
+ $insertQuery = "
46
+ INSERT INTO `{$fieldTable}` (`website_id`, `field_name`, `datatype`, `autosuggest`, `featured_field`, `multivalued`, `displayed`)
47
+ VALUES
48
+ ({$websiteId}, 'name', 'text', 1, 'title', 0, 1),
49
+ ({$websiteId}, 'final_price', 'decimal', 0, 'price', 0, 1),
50
+ ({$websiteId}, 'price', 'decimal', 0, NULL, 0, 1),
51
+ ({$websiteId}, 'brand', 'text', 0, 'brand', 0, 1),
52
+ ({$websiteId}, 'color', 'text', 0, 'color', 1, 1),
53
+ ({$websiteId}, 'size', 'text', 0, 'size', 1, 1),
54
+ ({$websiteId}, 'image', 'link', 0, 'imageUrl', 1, 1),
55
+ ({$websiteId}, 'url_path', 'link', 0, 'productUrl', 0, 1),
56
+ ({$websiteId}, 'catLevel1', 'text', 0, NULL, 1, 0),
57
+ ({$websiteId}, 'catLevel2', 'text', 0, NULL, 1, 0),
58
+ ({$websiteId}, 'catLevel3', 'text', 0, NULL, 1, 0),
59
+ ({$websiteId}, 'status', 'number', 0, NULL, 0, 0),
60
+ ({$websiteId}, 'visibility', 'number', 0, NULL, 0, 0),
61
+ ({$websiteId}, 'qty', 'number', 0, NULL, 0, 0),
62
+ ({$websiteId}, 'categoryIds', 'longText', 0, NULL, 1, 0),
63
+ ({$websiteId}, 'category', 'text', 0, 'category', 1, 0),
64
+ ({$websiteId}, 'uniqueId', 'longText', 0, NULL, 0, 0),
65
+ ({$websiteId}, 'entity_id', 'longText', 0, NULL, 0, 0);";
66
+ $installer->run($insertQuery);
67
  }
68
  $installer->endSetup();
69
  ?>
app/code/local/Unbxd/Recommendation/sql/unbxd_recommendation_setup/upgrade-1.0.11-1.0.12.php ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+ /* @var $installer Mage_Core_Model_Resource_Setup */
5
+
6
+ $installer->startSetup();
7
+ $fieldTable = $installer->getTable('unbxd_field_conf');
8
+
9
+ $websiteCollection = Mage::getModel('core/website')->getCollection()->load();
10
+ foreach($websiteCollection as $website) {
11
+ $websiteId = $website->getWebsiteId();
12
+ if(is_null($websiteId)) {
13
+ continue;
14
+ }
15
+ $insertQuery = "
16
+ INSERT INTO `{$fieldTable}` (`website_id`, `field_name`, `datatype`, `autosuggest`, `featured_field`, `multivalued`, `displayed`)
17
+ VALUES
18
+ ({$websiteId}, 'gender', 'text', 0, 'gender', 0, 1),
19
+ ({$websiteId}, 'description', 'longText', 0, 'description', 0, 1),
20
+ ({$websiteId}, 'catLevel1Name', 'text', 0, 'catLevel1Name', 0, 0),
21
+ ({$websiteId}, 'catLevel2Name', 'text', 0, 'catLevel2Name', 0, 0),
22
+ ({$websiteId}, 'catLevel3Name', 'text', 0, 'catLevel3Name', 0, 0),
23
+ ({$websiteId}, 'catLevel4Name', 'text', 0, 'catLevel4Name', 0, 0),
24
+ ({$websiteId}, 'categoryLevel1', 'text', 0, 'categoryLevel1', 1, 0),
25
+ ({$websiteId}, 'categoryLevel2', 'text', 0, 'categoryLevel2', 1, 0),
26
+ ({$websiteId}, 'categoryLevel3', 'text', 0, 'categoryLevel3', 1, 0),
27
+ ({$websiteId}, 'categoryLevel4', 'text', 0, 'categoryLevel4', 1, 0),
28
+ ({$websiteId}, 'availability', 'bool', 0, 'availability', 0, 0),
29
+ ({$websiteId}, 'created_at', 'date', 0, NULL, 0, 1);";
30
+ $installer->run($insertQuery);
31
+ }
32
+ $installer->endSetup();
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>unbxd_recommendation</name>
4
- <version>1.0.11</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>helps integrating the unbxd recommender widgets</summary>
10
  <description>helps integrating the unbxd recommender widgets</description>
11
- <notes>performance improvement of tracking</notes>
12
  <authors><author><name>ananthesh</name><user>ananthesh</user><email>ananthesh@unbxd.com</email></author></authors>
13
- <date>2014-11-28</date>
14
- <time>15:19:44</time>
15
- <contents><target name="magelocal"><dir name="Unbxd"><dir name="Recommendation"><dir name="Block"><file name="Admin.php" hash="82a902698e1b090d0e532905ed7f2d37"/><file name="Tracker.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="Helper"><file name="Confighelper.php" hash="8fc5f4943a0ae3cf92c30ccff9131bea"/><file name="Data.php" hash="74562d257ec4ef3add0fbd90ea51e671"/><file name="Feedhelper.php" hash="736949fd5e82d9c181108d3294603d4b"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="98c92b643e28e750a8bb2e6a384733de"/><file name="Response.php" hash="448a7f48496babd313e4ac147405fea1"/><dir name="Task"><file name="Analyticsimpression.php" hash="cc65a5549dba4f6a0cc1b52d9a273b18"/><file name="Feeddetails.php" hash="60bc2c9f743d5ee9c3b5dce4dd8e2e0a"/><file name="Trackcart.php" hash="4e4ba196f66cbbd17abc7415ac312f7e"/><file name="Trackorder.php" hash="ba8204eb82fea24cc0b5e27cd5ab7936"/><file name="Triggerfeedupload.php" hash="4e1c645ae51d655be2ac7b1ad90b5fa6"/><file name="Updatefeaturefields.php" hash="112ce06194a30f53515846dc7c219ac0"/><file name="Validatekeys.php" hash="b4b0c1a945a9ec1d0adc534a7d2bc08f"/><file name="Widget.php" hash="96a1615102ffa35ab34d6c013c069882"/></dir><file name="Task.php" hash="d6b35467cd84fc99b9ea70ae55f2c727"/></dir><file name="Config.php" hash="67a0fda09eb4ae9b9ba3c421eae46efc"/><dir name="Feed"><file name="Feedcreator.php" hash="bc0e9b3cc1f6377793166c675b5fa383"/><file name="Feedmanager.php" hash="7f563965eef1d8b6a5a5cec93f103a5a"/><file name="Filemanager.php" hash="9e3602428c8783c68f9bb951f52120ba"/><dir name="Jsonbuilder"><file name="Jsonbuilder.php" hash="31f422f3cf18f057e887c9f1812538a2"/><file name="Productbuilder.php" hash="d373cdff9efa694c98454cd88f8f6d7b"/><file name="Schemabuilder.php" hash="b41389c9ffa08063d5559f05d2367238"/><file name="Taxonomybuilder.php" hash="f4829a5902d7320901efa33d0dfc9e81"/></dir></dir><file name="Field.php" hash="6e9ef8fb0e4c89a3a44973de7805871b"/><file name="Observer.php" hash="bf0f63c6c24ba1fce3b059fba84e9041"/><dir name="Resource"><file name="Attribute.php" hash="bdd6026954b734430903f3fdb2a2f1e6"/><dir name="Config"><file name="Collection.php" hash="f50c88e3f7c10137ea9da5fc890218b5"/></dir><file name="Config.php" hash="8a08f5c9b2345f9e6899419a47aeec9f"/><dir name="Field"><file name="Collection.php" hash="455d7a3e8fce1741c189c86ed5fc5e22"/></dir><file name="Field.php" hash="45380eaee3fc0b58682e63e30b999bad"/><dir name="Product"><file name="Collection.php" hash="9342cdbbc6688599aa9565ae6aa7ff5c"/></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="560810e25071ac9f4b9835911a66a741"/></dir><file name="ConfigController.php" hash="01071bfd5b52b178e08e7c04b3ce613b"/><file name="WidgetController.php" hash="ea4697c1d659612681b9c01ec2803b4f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="8a9b714c7ccdff748ec0345861034658"/><file name="config.xml" hash="8b6f9d3e922e227e2903f939891f188e"/></dir><dir name="sql"><dir name="unbxd_recommendation_setup"><file name="mysql4-install-1.0.0.php" hash="cb254747c65f9bd3b3f4f845477f9a80"/></dir></dir><file name=".DS_Store" hash="b4a356bd7741138b66aa79afcc4abd2f"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="unbxd"><file name="recommendation.xml" hash="a2f03791a48c83fceee42822f19695f5"/></dir></dir><dir name="template"><dir name="unbxd"><file name="recommendation.phtml" hash="42d2370984e91190003c254f4c5332f5"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="unbxd"><file name="tracker.phtml" hash="a7c8522085b5dbb1696b6e62f5aad815"/><dir name="tracking"><file name="cart.phtml" hash="1602ccd541917fdaa539b88b59e16933"/><file name="category.phtml" hash="75048c587d627190a7931291e22a3e1e"/><file name="order.phtml" hash="3ddc154f41138d5f924bc415f8feeb9b"/><file name="product.phtml" hash="b6402e1b0c1a4364973bc46200833e1e"/></dir></dir></dir><dir name="layout"><dir name="unbxd"><file name="recommendation.xml" hash="79b0ba853521b40bc26c6efc2e57282e"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="unbxd"><dir name="css"><file name="app.css" hash="d8be8236609ed4e422db6996cb866383"/><file name="bootstrap-them.css" hash="df854606e8bfb38abe58305c389301ae"/><file name="bootstrap.css" hash="59899c8b554b99637d119d3fe5f844de"/><file name="chosen.css" hash="50141f749f8ed2dd209682800618dca2"/><file name="unbxd-magento.css" hash="a5a0805eeba3db5f96910670bfc7b9bf"/></dir><dir name="img"><file name="Custom-platform.png" hash="d053db68b99519a2b0303624ab647f16"/><file name="DONE.png" hash="470356a4749d5fde1b86d9c0eeb9c806"/><file name="HEXAGON-Only.png" hash="f070ca957f922446f715555d94192298"/><file name="Magento-small.png" hash="0b80c21a5daa1669317095843590aa10"/><file name="Magento.png" hash="23b3159d445fe3fe5de7ea4a6d7f0271"/><file name="X-popup-hover.png" hash="41022fc34b63fc668477bcb991652577"/><file name="X-popup.png" hash="301b49b195fd8e9106eef93805182c11"/><file name="X-pricing.png" hash="ab7c15dacab6b4e13e19d9614741e9ef"/><file name="add-actv.png" hash="51bfeb67fce50aef4fe79ccea4e0d840"/><file name="add-icon.png" hash="46dea9858757fa584de457bfc421269f"/><file name="add-inactv.png" hash="164d79389bcd58d9d606871307d16e7e"/><file name="add-raw-hover.png" hash="591316d60847c12340d66cea0eb2ee97"/><file name="add-raw.png" hash="1fcdb060d898a7807bb37c796a772993"/><file name="add.png" hash="9a4026af014537b7d18032fd3a1bcb05"/><file name="arrow-2.png" hash="627be933821070bb0514ba331739cbdb"/><file name="arrow-calendar-down.png" hash="15a5f0cba1424dbc6d7f2069dca59a2a"/><file name="arrow-calendar-down1.png" hash="ed6aac9b4e114418f639ce874e75ed19"/><file name="arrow-down-disabled.jpg" hash="5b62a642490f264b58771e38e687eb19"/><file name="arrow-down-enabled.jpg" hash="4a0b2fafe44c58dd390d5eb0473c365e"/><file name="arrow-down-white.jpg" hash="edd441fe8c391969859dc72e5e95e83c"/><file name="arrow-down-white1.jpg" hash="6b7c7662f141a30635d408dad048dd54"/><file name="arrow-down-white2.jpg" hash="bd948050a2d7b0b6dfd7e349734df63b"/><file name="arrow-down.png" hash="379a11ee447d83e850a03581928acae8"/><file name="arrow-gray.png" hash="6e345006dfc2b0f1e52b8266c21bcbbc"/><file name="arrow-left-white.jpg" hash="36a0b2d5784c980a54edb3b874bc47c7"/><file name="arrow-left.jpg" hash="e22a795292c8bf95e62c86d7f5c3a149"/><file name="arrow-mail-developer).png" hash="a96ecd000175538c0dd0914395cf203d"/><file name="arrow-right-blue.png" hash="4ef79b5fc672c2a285b0c2ba5504f1e4"/><file name="arrow-right-gray.jpg" hash="5ac0235afe90023e26126134f151a2bd"/><file name="arrow-right-white.jpg" hash="9916e44542fbaa7a9e9b69f3551d321f"/><file name="arrow-right.jpg" hash="c2ad8f3435733f35a46fd8fdf29a9323"/><file name="arrow-up-black.png" hash="1e5a76b450fd32c3577078829d38ac58"/><file name="arrow-up-disabled.jpg" hash="6659a79f97099b525bd1b0713b99ad8b"/><file name="arrow-up-enabled.jpg" hash="4074eee100e01429ea4defed741b2ac2"/><file name="arrow-up-red.png" hash="84b29f0c6964c69ed6e78501123bfccf"/><file name="arrow-up-white.jpg" hash="38d5ec238c32cb7124fb6bc31ffe126e"/><file name="arrow-up-white1.jpg" hash="3221729d064ae198dff6effcc62e6a5e"/><file name="arrow-up.png" hash="6c54432350ad68d3345eb151d7534ae2"/><file name="arrow-white.png" hash="4b4e57f5b8d2b678df89b5a2dc85bba3"/><file name="arrow.png" hash="4b4e57f5b8d2b678df89b5a2dc85bba3"/><file name="authenticated.png" hash="78140247146f512d014be386a116a699"/><file name="back.png" hash="32b2ff86ee7ba8a1f19270a121f00205"/><file name="bg.jpg" hash="4a2f6fda25f44f7009e9a22ccf90e330"/><file name="big-arrow-gray.jpg" hash="745194d74525c2fd3238475c55a47cbc"/><file name="bigcommerce.png" hash="2a2599c562ec94be2545ab335131c71a"/><file name="black-right-small.jpg" hash="25253ab5ae165f13a1827ccd387d7b2f"/><file name="black-right-thick.jpg" hash="ae89e8e2c9d39ab8970782a829edeaeb"/><file name="btn-arrow-top.png" hash="42b3a9ffa2eccd2cfc9da9c33975f64c"/><file name="btn-arrow.png" hash="8cc68b6207307260a75bcc9331447c5e"/><file name="button-arrow-blue.png" hash="1e8d1741ecef49e021f35460fe16c76b"/><file name="button-arrow-grey.png" hash="76cd7acb80bf814c6605aa3f88c2c19b"/><file name="button-arrow-red.png" hash="03092367ac79745b0d7b2f9b707c802b"/><file name="cancel.png" hash="dd81fdd1129b4ef172d4c434d6156d87"/><file name="card-image.jpg" hash="bd1f292965163bbcc869a48bbe806deb"/><file name="card-image1.jpg" hash="95ccedbe1e8d01685f2527b08230b4a7"/><file name="card-image2.jpg" hash="963c39821d0cb5b1f0dfb691e12eefb5"/><file name="card-image3.jpg" hash="961e69aeecd5ab5d17743c5d3e4764cf"/><file name="checkmark.png" hash="4a0de13372944f21034dee674f92b7d1"/><file name="chosen-sprite.png" hash="25b9acb1b504c95c6b95c33986b7317e"/><file name="close-analytics.png" hash="0ca667d6de9a98999e37811861e6768e"/><file name="close.png" hash="daa5df0af5c219e136505132e18f5242"/><file name="color-pic.png" hash="470ec0178867dac04fcbce638c14a4cf"/><file name="congrats-magento.png" hash="ec3d2e0a2bf1d012e56583e89513664d"/><file name="congrats.png" hash="ec3d2e0a2bf1d012e56583e89513664d"/><file name="copy-black.png" hash="3f2b73b7287849ba2d341f194be7cd44"/><file name="copy-white.png" hash="208f74184462db7f5861d4c48dd300da"/><file name="cros.png" hash="bbf540cf6fe3d7fba4fab37b4d0b22c9"/><file name="cross-2.png" hash="1dfc504ed86c82bd86de8c74a09c906f"/><file name="cvv-number.jpg" hash="0ada16245fd0cb05a3967461eba12a28"/><file name="delete-raw-hover.png" hash="e3df4faf0450feaa2aed503dbf6759df"/><file name="delete-raw.png" hash="09806aed8283ae6168ecfdcec8237881"/><file name="delete-red.png" hash="c070eaad8207d3fe4e839b0f63deb68c"/><file name="delete.png" hash="b45f9d0e4d1fd160dbaa6ec41559f369"/><file name="detect.png" hash="9b6980d0bbd7ea6bded8ad05be4db7dd"/><file name="down-arrow.png" hash="3d1e707e03353aa01ac7f66610214c6b"/><file name="down-black.png" hash="80236500f0e70d2312b12a0d15e5fa81"/><file name="down-gray.png" hash="160e694e54afdc73edf828e4f02f5945"/><file name="dropdown-arrow.png" hash="4450401ccb623ec2a0ccae215e8b2a63"/><file name="edit-magento.png" hash="043c35fcd4396838a0db85d8d93aed04"/><file name="edit.png" hash="043c35fcd4396838a0db85d8d93aed04"/><file name="eye-hover.png" hash="cf7047c5218c147959a7afc282c01568"/><file name="eye.png" hash="b7a4815cce6e051a785f417f0ecb3427"/><file name="favicon.png" hash="402ca129cd67c7601ea429310c6aa2f5"/><file name="fill.png" hash="4bb20f0886094d62ac0c741edcc03742"/><file name="group-arrow.png" hash="89eba421d4e2a3f83e47e00f26e80888"/><file name="help.png" hash="94b200dfffcdb8ded1429791c2d22b8c"/><file name="icon-analytics.png" hash="4e62393fa4013bdc4e134b469dcd280b"/><file name="icon-info.png" hash="52c2f72d690d0f979afcb5a712b34c3c"/><file name="icon-widget.png" hash="8d6ed9abd86d3095993b4ca773bfdbc3"/><file name="install.png" hash="b284e88eb06554283ef98d6f50836e46"/><file name="integration-gray.png" hash="0fc90ad557b62f693098d862d5599085"/><file name="introduction-gray.png" hash="092fce8aa83ab7bcdb9b7a7a62b4a7d6"/><file name="left-black.png" hash="24b87ee6bf514b8666b12d7d9297eb4e"/><file name="left-gray.png" hash="e53e0389cd719dd5aed2ad6017d32b0e"/><file name="level-arrow-active.png" hash="56bbbf4701324c79e111a36abc235092"/><file name="level-arrow.png" hash="5861fea9a80e3c4fcc14210569d7effa"/><file name="link-arrow.png" hash="21354972164f512795bf1f54c6a71f3f"/><file name="loader-16x16.gif" hash="778e6b9e73274330dae0dab8104948a0"/><file name="loader-24x24.gif" hash="e403534956d055d636b3a5fa813b82b7"/><file name="loader-32x32.gif" hash="009c5064d779a3c67a202f299bd5d301"/><file name="loader.gif" hash="fd1345456c4a685afb42b67c25354ca2"/><file name="loader_black.gif" hash="5bfd8de3193a5fc2e5b472f57df1408f"/><file name="lock-image.jpg" hash="e80f8aa765e8ea121b056e188651629b"/><file name="logo-unbxd.png" hash="0b6c4b8887f8d57577023d8ddc1fa951"/><file name="logo.png" hash="27fa979ee65c84aefd15ffd6cc973e4d"/><file name="mail-new.png" hash="831e8c8c1eba8f4733d1d1e44a8c6549"/><file name="mail.png" hash="1cf907fd4c5d98230c7c2b89d6ff235f"/><file name="minus.jpg" hash="bdddd9b0d971d461a7e472b5bf38bfce"/><file name="nav-highlight-arrow.png" hash="64f6ae56f54568594d04df5c80ce069c"/><file name="not-detected.png" hash="59d0c0115b4b9f192eb4a77f22ce1609"/><file name="oops.png" hash="0735ac87c8e81325be4dc901ba354937"/><file name="or.png" hash="64c351e685fdb8339b7c7857ff14f56d"/><file name="other-gray.png" hash="646b84e4629dfadf3163bc9cd1aa83de"/><file name="overview-gray.png" hash="498e242cdd5b738d088d7ed4ae6c8e3e"/><file name="plus.jpg" hash="a8b80b4d5eee0ad842ce22ee7ea4c752"/><file name="question-mark2.jpg" hash="de9555459f3b9c93482c4a6061fea66b"/><file name="red-cross.png" hash="4213a8ee001ae75166d270be44b199a0"/><file name="red-loading.gif" hash="e644579431a4666564d92ec62c7c74e2"/><file name="remove.png" hash="401b59fb5aed9c68e5f1b3e47fe6ea60"/><file name="right-black.png" hash="fce5a7892866ef65e91fb006b1959c21"/><file name="right-gray.png" hash="b09daca9ca3c40451de0d62fbadd3cf6"/><file name="save.png" hash="fd61c5589c9fabe20a988121822ef81a"/><file name="search.png" hash="71829ed3818c8832469c46d1f9203be0"/><file name="settings.png" hash="9dd7ca159584c09c41717c578f8aa1f6"/><file name="shopify.png" hash="93d8d9c1dd93680819fd642f9136b07c"/><file name="site-dropdownarrow-down.png" hash="c4c89958d88c58785c15e11c83bf0c4a"/><file name="site-dropdownarrow-up.png" hash="f52281c034fdc67f339efeab9127ddfc"/><file name="slider-bg.png" hash="242bb276022f24fc7ac71b181dd34e36"/><file name="slider-button.png" hash="4d17b9bd17415f9df5ccfafefcd32a24"/><file name="sort-arrow-blue-down.png" hash="1fd1bfd16d5f3a9c15017248a7d7f0e0"/><file name="sort-arrow-blue-up.png" hash="24eee605bc0fc9432b7b499633a6c7bc"/><file name="sort-arrow-grey-down.png" hash="b64554cc698560bb38bb43a7a6480dd3"/><file name="sort-arrow-grey-up.png" hash="d14911ddaef0a4de79b1a4a54efbf68b"/><file name="spree.png" hash="119dbad2cfa857a786d746158b9f36f0"/><file name="start-gray.png" hash="fe86f1b188d5b3f0f375421aa5435939"/><file name="step-arrow.png" hash="167c9a25eda4cd9bb4d88762883ba47d"/><file name="success.png" hash="4a8d69083fc4447d9c4ae9bdcc6560ce"/><file name="tick-analytics.png" hash="da1c588c876b2ea12bede76ef17ca1ff"/><file name="tick-green.png" hash="5108aa311b8e64e8f69642a53e4d3506"/><file name="tick-pricing.png" hash="42b0c3bb2c8e270833b0856360722124"/><file name="tick.png" hash="a5bb66f590af2746711bfdefe3b37d7a"/><file name="tooltip-arrow.png" hash="d37dac7a1d706a453ea0637f1db04907"/><file name="tooltip-left-arrow.jpg" hash="90143af415043466956e264b5e9a5910"/><file name="tooltip.png" hash="39a75f32b4b78b07033635f14a182124"/><file name="up-arrow.png" hash="f3d15dec451c405decfbc6d3a3fa7696"/><file name="up-black.png" hash="e77b8b75ecf6e5e63eed7fbb84c265a3"/><file name="up-gray.png" hash="0c721f2f05c729e07bd22a0a90f51ab0"/><file name="user.png" hash="ad7be0166b1484d9ff9e1d2708c83a71"/><file name="warning.png" hash="43e8ab0f26ce3ecf8ecdd162a8c8f366"/><file name="x-widget.png" hash="f000d6861e99a51e5ea2fdf68e0e0910"/><file name="x.png" hash="c517855b1803534e2bcecc9ed50808a9"/></dir><dir name="js"><file name="app.js" hash="97543ddfe3daad47665b24998ce5811f"/><dir name="lib"><file name="bootstrap-tooltip.js" hash="304bf569ee1a25e8fae5532d90661662"/><file name="chosen.js" hash="4fabe14fb10d99c4b432db5ce9847c06"/><file name="ractive-chosen.js" hash="837381e6e428a7fa2b9f8f67c974d195"/><file name="ractive.js" hash="4887bb0d23f93ca78c46d2a7420cd360"/></dir></dir><dir name="templates"><file name="analytics.html" hash="8885b3170719fcd525ad7a27bdf45624"/><file name="catalog.html" hash="1260ad88c8f004612863b528c0b6c3aa"/><file name="credentails.html" hash="1e6eb46ac91cf8083b7709659bc4783a"/><file name="custom.html" hash="4a4154b74c4ebbfde132857684c92e60"/><file name="widgets.html" hash="f337583a8def22cc39d62233bc8d0e0a"/></dir></dir></dir></dir></dir></dir><dir name="js"><dir name="unbxd"><file name="app.js" hash="5790870aa32c641bbad8d064fd41b610"/><file name="embed.js" hash="86c5eb1f59040a9e26bf34eb721c466c"/><file name="jquery.js" hash="52d16e147b5346147d0f3269cd4d0f80"/><file name="unbxdAnalytics.js" hash="98738dccf6a9e9378e79ca6931d9d3c1"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Unbxd_Recommendation.xml" hash="8ea2aaae2654aa0caf10fa3b326fcdb0"/></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>unbxd_recommendation</name>
4
+ <version>1.0.12</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>helps integrating the unbxd recommender widgets</summary>
10
  <description>helps integrating the unbxd recommender widgets</description>
11
+ <notes>added availablity filter</notes>
12
  <authors><author><name>ananthesh</name><user>ananthesh</user><email>ananthesh@unbxd.com</email></author></authors>
13
+ <date>2014-12-17</date>
14
+ <time>11:21:07</time>
15
+ <contents><target name="magelocal"><dir name="Unbxd"><dir name="Recommendation"><dir name="Block"><file name="Admin.php" hash="82a902698e1b090d0e532905ed7f2d37"/><file name="Tracker.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="Helper"><file name="Confighelper.php" hash="8fc5f4943a0ae3cf92c30ccff9131bea"/><file name="Data.php" hash="74562d257ec4ef3add0fbd90ea51e671"/><file name="Feedhelper.php" hash="5a92ba5bd93da2480f89c9bf565968a6"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="98c92b643e28e750a8bb2e6a384733de"/><file name="Response.php" hash="448a7f48496babd313e4ac147405fea1"/><dir name="Task"><file name="Analyticsimpression.php" hash="cc65a5549dba4f6a0cc1b52d9a273b18"/><file name="Feeddetails.php" hash="60bc2c9f743d5ee9c3b5dce4dd8e2e0a"/><file name="Trackcart.php" hash="4e4ba196f66cbbd17abc7415ac312f7e"/><file name="Trackorder.php" hash="ba8204eb82fea24cc0b5e27cd5ab7936"/><file name="Triggerfeedupload.php" hash="4e1c645ae51d655be2ac7b1ad90b5fa6"/><file name="Updatefeaturefields.php" hash="112ce06194a30f53515846dc7c219ac0"/><file name="Validatekeys.php" hash="b4b0c1a945a9ec1d0adc534a7d2bc08f"/><file name="Widget.php" hash="96a1615102ffa35ab34d6c013c069882"/></dir><file name="Task.php" hash="d6b35467cd84fc99b9ea70ae55f2c727"/></dir><file name="Config.php" hash="67a0fda09eb4ae9b9ba3c421eae46efc"/><dir name="Feed"><file name="Feedcreator.php" hash="3dbf663662073add542414630baf1225"/><file name="Feedmanager.php" hash="7f563965eef1d8b6a5a5cec93f103a5a"/><file name="Filemanager.php" hash="9e3602428c8783c68f9bb951f52120ba"/><dir name="Jsonbuilder"><file name="Jsonbuilder.php" hash="31f422f3cf18f057e887c9f1812538a2"/><file name="Productbuilder.php" hash="82439c1fd4e12354fb4780511c6c558b"/><file name="Schemabuilder.php" hash="b41389c9ffa08063d5559f05d2367238"/><file name="Taxonomybuilder.php" hash="f4829a5902d7320901efa33d0dfc9e81"/></dir></dir><file name="Field.php" hash="7d344b852abd182df2f54ef73334eadf"/><file name="Observer.php" hash="bf0f63c6c24ba1fce3b059fba84e9041"/><dir name="Resource"><file name="Attribute.php" hash="bdd6026954b734430903f3fdb2a2f1e6"/><dir name="Config"><file name="Collection.php" hash="f50c88e3f7c10137ea9da5fc890218b5"/></dir><file name="Config.php" hash="8a08f5c9b2345f9e6899419a47aeec9f"/><dir name="Field"><file name="Collection.php" hash="455d7a3e8fce1741c189c86ed5fc5e22"/></dir><file name="Field.php" hash="0523999597c6151f32ce62e95fd8a215"/><dir name="Product"><file name="Collection.php" hash="27afe13aaa090cfafeb44853f692cb39"/></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="560810e25071ac9f4b9835911a66a741"/></dir><file name="ConfigController.php" hash="01071bfd5b52b178e08e7c04b3ce613b"/><file name="WidgetController.php" hash="ea4697c1d659612681b9c01ec2803b4f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="8a9b714c7ccdff748ec0345861034658"/><file name="config.xml" hash="fd70220859f204a707710e9f1e046733"/></dir><dir name="sql"><dir name="unbxd_recommendation_setup"><file name="mysql4-install-1.0.0.php" hash="aa0df28e994890290af657dc8082db65"/><file name="upgrade-1.0.11-1.0.12.php" hash="097333d1de889aa613ea3ee89ef10442"/></dir></dir><file name=".DS_Store" hash="b4a356bd7741138b66aa79afcc4abd2f"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="unbxd"><file name="recommendation.xml" hash="a2f03791a48c83fceee42822f19695f5"/></dir></dir><dir name="template"><dir name="unbxd"><file name="recommendation.phtml" hash="42d2370984e91190003c254f4c5332f5"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="unbxd"><file name="tracker.phtml" hash="a7c8522085b5dbb1696b6e62f5aad815"/><dir name="tracking"><file name="cart.phtml" hash="1602ccd541917fdaa539b88b59e16933"/><file name="category.phtml" hash="75048c587d627190a7931291e22a3e1e"/><file name="order.phtml" hash="3ddc154f41138d5f924bc415f8feeb9b"/><file name="product.phtml" hash="b6402e1b0c1a4364973bc46200833e1e"/></dir></dir></dir><dir name="layout"><dir name="unbxd"><file name="recommendation.xml" hash="79b0ba853521b40bc26c6efc2e57282e"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="unbxd"><dir name="css"><file name="app.css" hash="d8be8236609ed4e422db6996cb866383"/><file name="bootstrap-them.css" hash="df854606e8bfb38abe58305c389301ae"/><file name="bootstrap.css" hash="59899c8b554b99637d119d3fe5f844de"/><file name="chosen.css" hash="50141f749f8ed2dd209682800618dca2"/><file name="unbxd-magento.css" hash="a5a0805eeba3db5f96910670bfc7b9bf"/></dir><dir name="img"><file name="Custom-platform.png" hash="d053db68b99519a2b0303624ab647f16"/><file name="DONE.png" hash="470356a4749d5fde1b86d9c0eeb9c806"/><file name="HEXAGON-Only.png" hash="f070ca957f922446f715555d94192298"/><file name="Magento-small.png" hash="0b80c21a5daa1669317095843590aa10"/><file name="Magento.png" hash="23b3159d445fe3fe5de7ea4a6d7f0271"/><file name="X-popup-hover.png" hash="41022fc34b63fc668477bcb991652577"/><file name="X-popup.png" hash="301b49b195fd8e9106eef93805182c11"/><file name="X-pricing.png" hash="ab7c15dacab6b4e13e19d9614741e9ef"/><file name="add-actv.png" hash="51bfeb67fce50aef4fe79ccea4e0d840"/><file name="add-icon.png" hash="46dea9858757fa584de457bfc421269f"/><file name="add-inactv.png" hash="164d79389bcd58d9d606871307d16e7e"/><file name="add-raw-hover.png" hash="591316d60847c12340d66cea0eb2ee97"/><file name="add-raw.png" hash="1fcdb060d898a7807bb37c796a772993"/><file name="add.png" hash="9a4026af014537b7d18032fd3a1bcb05"/><file name="arrow-2.png" hash="627be933821070bb0514ba331739cbdb"/><file name="arrow-calendar-down.png" hash="15a5f0cba1424dbc6d7f2069dca59a2a"/><file name="arrow-calendar-down1.png" hash="ed6aac9b4e114418f639ce874e75ed19"/><file name="arrow-down-disabled.jpg" hash="5b62a642490f264b58771e38e687eb19"/><file name="arrow-down-enabled.jpg" hash="4a0b2fafe44c58dd390d5eb0473c365e"/><file name="arrow-down-white.jpg" hash="edd441fe8c391969859dc72e5e95e83c"/><file name="arrow-down-white1.jpg" hash="6b7c7662f141a30635d408dad048dd54"/><file name="arrow-down-white2.jpg" hash="bd948050a2d7b0b6dfd7e349734df63b"/><file name="arrow-down.png" hash="379a11ee447d83e850a03581928acae8"/><file name="arrow-gray.png" hash="6e345006dfc2b0f1e52b8266c21bcbbc"/><file name="arrow-left-white.jpg" hash="36a0b2d5784c980a54edb3b874bc47c7"/><file name="arrow-left.jpg" hash="e22a795292c8bf95e62c86d7f5c3a149"/><file name="arrow-mail-developer).png" hash="a96ecd000175538c0dd0914395cf203d"/><file name="arrow-right-blue.png" hash="4ef79b5fc672c2a285b0c2ba5504f1e4"/><file name="arrow-right-gray.jpg" hash="5ac0235afe90023e26126134f151a2bd"/><file name="arrow-right-white.jpg" hash="9916e44542fbaa7a9e9b69f3551d321f"/><file name="arrow-right.jpg" hash="c2ad8f3435733f35a46fd8fdf29a9323"/><file name="arrow-up-black.png" hash="1e5a76b450fd32c3577078829d38ac58"/><file name="arrow-up-disabled.jpg" hash="6659a79f97099b525bd1b0713b99ad8b"/><file name="arrow-up-enabled.jpg" hash="4074eee100e01429ea4defed741b2ac2"/><file name="arrow-up-red.png" hash="84b29f0c6964c69ed6e78501123bfccf"/><file name="arrow-up-white.jpg" hash="38d5ec238c32cb7124fb6bc31ffe126e"/><file name="arrow-up-white1.jpg" hash="3221729d064ae198dff6effcc62e6a5e"/><file name="arrow-up.png" hash="6c54432350ad68d3345eb151d7534ae2"/><file name="arrow-white.png" hash="4b4e57f5b8d2b678df89b5a2dc85bba3"/><file name="arrow.png" hash="4b4e57f5b8d2b678df89b5a2dc85bba3"/><file name="authenticated.png" hash="78140247146f512d014be386a116a699"/><file name="back.png" hash="32b2ff86ee7ba8a1f19270a121f00205"/><file name="bg.jpg" hash="4a2f6fda25f44f7009e9a22ccf90e330"/><file name="big-arrow-gray.jpg" hash="745194d74525c2fd3238475c55a47cbc"/><file name="bigcommerce.png" hash="2a2599c562ec94be2545ab335131c71a"/><file name="black-right-small.jpg" hash="25253ab5ae165f13a1827ccd387d7b2f"/><file name="black-right-thick.jpg" hash="ae89e8e2c9d39ab8970782a829edeaeb"/><file name="btn-arrow-top.png" hash="42b3a9ffa2eccd2cfc9da9c33975f64c"/><file name="btn-arrow.png" hash="8cc68b6207307260a75bcc9331447c5e"/><file name="button-arrow-blue.png" hash="1e8d1741ecef49e021f35460fe16c76b"/><file name="button-arrow-grey.png" hash="76cd7acb80bf814c6605aa3f88c2c19b"/><file name="button-arrow-red.png" hash="03092367ac79745b0d7b2f9b707c802b"/><file name="cancel.png" hash="dd81fdd1129b4ef172d4c434d6156d87"/><file name="card-image.jpg" hash="bd1f292965163bbcc869a48bbe806deb"/><file name="card-image1.jpg" hash="95ccedbe1e8d01685f2527b08230b4a7"/><file name="card-image2.jpg" hash="963c39821d0cb5b1f0dfb691e12eefb5"/><file name="card-image3.jpg" hash="961e69aeecd5ab5d17743c5d3e4764cf"/><file name="checkmark.png" hash="4a0de13372944f21034dee674f92b7d1"/><file name="chosen-sprite.png" hash="25b9acb1b504c95c6b95c33986b7317e"/><file name="close-analytics.png" hash="0ca667d6de9a98999e37811861e6768e"/><file name="close.png" hash="daa5df0af5c219e136505132e18f5242"/><file name="color-pic.png" hash="470ec0178867dac04fcbce638c14a4cf"/><file name="congrats-magento.png" hash="ec3d2e0a2bf1d012e56583e89513664d"/><file name="congrats.png" hash="ec3d2e0a2bf1d012e56583e89513664d"/><file name="copy-black.png" hash="3f2b73b7287849ba2d341f194be7cd44"/><file name="copy-white.png" hash="208f74184462db7f5861d4c48dd300da"/><file name="cros.png" hash="bbf540cf6fe3d7fba4fab37b4d0b22c9"/><file name="cross-2.png" hash="1dfc504ed86c82bd86de8c74a09c906f"/><file name="cvv-number.jpg" hash="0ada16245fd0cb05a3967461eba12a28"/><file name="delete-raw-hover.png" hash="e3df4faf0450feaa2aed503dbf6759df"/><file name="delete-raw.png" hash="09806aed8283ae6168ecfdcec8237881"/><file name="delete-red.png" hash="c070eaad8207d3fe4e839b0f63deb68c"/><file name="delete.png" hash="b45f9d0e4d1fd160dbaa6ec41559f369"/><file name="detect.png" hash="9b6980d0bbd7ea6bded8ad05be4db7dd"/><file name="down-arrow.png" hash="3d1e707e03353aa01ac7f66610214c6b"/><file name="down-black.png" hash="80236500f0e70d2312b12a0d15e5fa81"/><file name="down-gray.png" hash="160e694e54afdc73edf828e4f02f5945"/><file name="dropdown-arrow.png" hash="4450401ccb623ec2a0ccae215e8b2a63"/><file name="edit-magento.png" hash="043c35fcd4396838a0db85d8d93aed04"/><file name="edit.png" hash="043c35fcd4396838a0db85d8d93aed04"/><file name="eye-hover.png" hash="cf7047c5218c147959a7afc282c01568"/><file name="eye.png" hash="b7a4815cce6e051a785f417f0ecb3427"/><file name="favicon.png" hash="402ca129cd67c7601ea429310c6aa2f5"/><file name="fill.png" hash="4bb20f0886094d62ac0c741edcc03742"/><file name="group-arrow.png" hash="89eba421d4e2a3f83e47e00f26e80888"/><file name="help.png" hash="94b200dfffcdb8ded1429791c2d22b8c"/><file name="icon-analytics.png" hash="4e62393fa4013bdc4e134b469dcd280b"/><file name="icon-info.png" hash="52c2f72d690d0f979afcb5a712b34c3c"/><file name="icon-widget.png" hash="8d6ed9abd86d3095993b4ca773bfdbc3"/><file name="install.png" hash="b284e88eb06554283ef98d6f50836e46"/><file name="integration-gray.png" hash="0fc90ad557b62f693098d862d5599085"/><file name="introduction-gray.png" hash="092fce8aa83ab7bcdb9b7a7a62b4a7d6"/><file name="left-black.png" hash="24b87ee6bf514b8666b12d7d9297eb4e"/><file name="left-gray.png" hash="e53e0389cd719dd5aed2ad6017d32b0e"/><file name="level-arrow-active.png" hash="56bbbf4701324c79e111a36abc235092"/><file name="level-arrow.png" hash="5861fea9a80e3c4fcc14210569d7effa"/><file name="link-arrow.png" hash="21354972164f512795bf1f54c6a71f3f"/><file name="loader-16x16.gif" hash="778e6b9e73274330dae0dab8104948a0"/><file name="loader-24x24.gif" hash="e403534956d055d636b3a5fa813b82b7"/><file name="loader-32x32.gif" hash="009c5064d779a3c67a202f299bd5d301"/><file name="loader.gif" hash="fd1345456c4a685afb42b67c25354ca2"/><file name="loader_black.gif" hash="5bfd8de3193a5fc2e5b472f57df1408f"/><file name="lock-image.jpg" hash="e80f8aa765e8ea121b056e188651629b"/><file name="logo-unbxd.png" hash="0b6c4b8887f8d57577023d8ddc1fa951"/><file name="logo.png" hash="27fa979ee65c84aefd15ffd6cc973e4d"/><file name="mail-new.png" hash="831e8c8c1eba8f4733d1d1e44a8c6549"/><file name="mail.png" hash="1cf907fd4c5d98230c7c2b89d6ff235f"/><file name="minus.jpg" hash="bdddd9b0d971d461a7e472b5bf38bfce"/><file name="nav-highlight-arrow.png" hash="64f6ae56f54568594d04df5c80ce069c"/><file name="not-detected.png" hash="59d0c0115b4b9f192eb4a77f22ce1609"/><file name="oops.png" hash="0735ac87c8e81325be4dc901ba354937"/><file name="or.png" hash="64c351e685fdb8339b7c7857ff14f56d"/><file name="other-gray.png" hash="646b84e4629dfadf3163bc9cd1aa83de"/><file name="overview-gray.png" hash="498e242cdd5b738d088d7ed4ae6c8e3e"/><file name="plus.jpg" hash="a8b80b4d5eee0ad842ce22ee7ea4c752"/><file name="question-mark2.jpg" hash="de9555459f3b9c93482c4a6061fea66b"/><file name="red-cross.png" hash="4213a8ee001ae75166d270be44b199a0"/><file name="red-loading.gif" hash="e644579431a4666564d92ec62c7c74e2"/><file name="remove.png" hash="401b59fb5aed9c68e5f1b3e47fe6ea60"/><file name="right-black.png" hash="fce5a7892866ef65e91fb006b1959c21"/><file name="right-gray.png" hash="b09daca9ca3c40451de0d62fbadd3cf6"/><file name="save.png" hash="fd61c5589c9fabe20a988121822ef81a"/><file name="search.png" hash="71829ed3818c8832469c46d1f9203be0"/><file name="settings.png" hash="9dd7ca159584c09c41717c578f8aa1f6"/><file name="shopify.png" hash="93d8d9c1dd93680819fd642f9136b07c"/><file name="site-dropdownarrow-down.png" hash="c4c89958d88c58785c15e11c83bf0c4a"/><file name="site-dropdownarrow-up.png" hash="f52281c034fdc67f339efeab9127ddfc"/><file name="slider-bg.png" hash="242bb276022f24fc7ac71b181dd34e36"/><file name="slider-button.png" hash="4d17b9bd17415f9df5ccfafefcd32a24"/><file name="sort-arrow-blue-down.png" hash="1fd1bfd16d5f3a9c15017248a7d7f0e0"/><file name="sort-arrow-blue-up.png" hash="24eee605bc0fc9432b7b499633a6c7bc"/><file name="sort-arrow-grey-down.png" hash="b64554cc698560bb38bb43a7a6480dd3"/><file name="sort-arrow-grey-up.png" hash="d14911ddaef0a4de79b1a4a54efbf68b"/><file name="spree.png" hash="119dbad2cfa857a786d746158b9f36f0"/><file name="start-gray.png" hash="fe86f1b188d5b3f0f375421aa5435939"/><file name="step-arrow.png" hash="167c9a25eda4cd9bb4d88762883ba47d"/><file name="success.png" hash="4a8d69083fc4447d9c4ae9bdcc6560ce"/><file name="tick-analytics.png" hash="da1c588c876b2ea12bede76ef17ca1ff"/><file name="tick-green.png" hash="5108aa311b8e64e8f69642a53e4d3506"/><file name="tick-pricing.png" hash="42b0c3bb2c8e270833b0856360722124"/><file name="tick.png" hash="a5bb66f590af2746711bfdefe3b37d7a"/><file name="tooltip-arrow.png" hash="d37dac7a1d706a453ea0637f1db04907"/><file name="tooltip-left-arrow.jpg" hash="90143af415043466956e264b5e9a5910"/><file name="tooltip.png" hash="39a75f32b4b78b07033635f14a182124"/><file name="up-arrow.png" hash="f3d15dec451c405decfbc6d3a3fa7696"/><file name="up-black.png" hash="e77b8b75ecf6e5e63eed7fbb84c265a3"/><file name="up-gray.png" hash="0c721f2f05c729e07bd22a0a90f51ab0"/><file name="user.png" hash="ad7be0166b1484d9ff9e1d2708c83a71"/><file name="warning.png" hash="43e8ab0f26ce3ecf8ecdd162a8c8f366"/><file name="x-widget.png" hash="f000d6861e99a51e5ea2fdf68e0e0910"/><file name="x.png" hash="c517855b1803534e2bcecc9ed50808a9"/></dir><dir name="js"><file name="app.js" hash="6c610a36fd3974af49e009f32e3697c7"/><dir name="lib"><file name="bootstrap-tooltip.js" hash="304bf569ee1a25e8fae5532d90661662"/><file name="chosen.js" hash="4fabe14fb10d99c4b432db5ce9847c06"/><file name="ractive-chosen.js" hash="837381e6e428a7fa2b9f8f67c974d195"/><file name="ractive.js" hash="4887bb0d23f93ca78c46d2a7420cd360"/></dir></dir><dir name="templates"><file name="analytics.html" hash="8885b3170719fcd525ad7a27bdf45624"/><file name="catalog.html" hash="1260ad88c8f004612863b528c0b6c3aa"/><file name="credentails.html" hash="1e6eb46ac91cf8083b7709659bc4783a"/><file name="custom.html" hash="4a4154b74c4ebbfde132857684c92e60"/><file name="widgets.html" hash="f337583a8def22cc39d62233bc8d0e0a"/></dir></dir></dir></dir></dir></dir><dir name="js"><dir name="unbxd"><file name="app.js" hash="5790870aa32c641bbad8d064fd41b610"/><file name="embed.js" hash="86c5eb1f59040a9e26bf34eb721c466c"/><file name="jquery.js" hash="52d16e147b5346147d0f3269cd4d0f80"/><file name="unbxdAnalytics.js" hash="98738dccf6a9e9378e79ca6931d9d3c1"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Unbxd_Recommendation.xml" hash="8ea2aaae2654aa0caf10fa3b326fcdb0"/></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/unbxd/js/app.js CHANGED
@@ -446,14 +446,16 @@ $.get( baseUrl + 'credentails.html')
446
  if(customAttributes.length < 1)
447
  customAttributes = [{ field_name: '', datatype: '', canRemove:true }];
448
 
449
-
450
- mappedAttributes.each(function(obj, i){
451
  obj.tooltip = unbxdDimensions.filter(
452
  function( dimension ){
453
  return dimension.value === obj.featured_field;
454
  })[0].helpText;
455
- });
 
456
 
 
457
  ractiveCatalog.set({
458
  mappedAttributes: mappedAttributes,
459
  magentoFields: magentoFields,
@@ -779,3 +781,8 @@ Array.prototype.map = function(callback, thisArg) {
779
 
780
 
781
 
 
 
 
 
 
446
  if(customAttributes.length < 1)
447
  customAttributes = [{ field_name: '', datatype: '', canRemove:true }];
448
 
449
+ try{
450
+ mappedAttributes.forEach(function(obj, i){
451
  obj.tooltip = unbxdDimensions.filter(
452
  function( dimension ){
453
  return dimension.value === obj.featured_field;
454
  })[0].helpText;
455
+ });
456
+ }catch(e){}
457
 
458
+
459
  ractiveCatalog.set({
460
  mappedAttributes: mappedAttributes,
461
  magentoFields: magentoFields,
781
 
782
 
783
 
784
+
785
+
786
+
787
+
788
+