Version Notes
Expertrec Recommendation plugin for magento sites.
Download this release
Release Info
Developer | melchi |
Extension | Expertrec_Recommendation |
Version | 1.2.21 |
Comparing to | |
See all releases |
Code changes from version 1.2.20 to 1.2.21
- app/code/community/Expertrec/Recommendation/Model/Observer.php +203 -93
- app/code/community/Expertrec/Recommendation/controllers/ApiController.php +23 -7
- app/code/community/Expertrec/Recommendation/etc/config.xml +1 -1
- app/code/community/Expertrec/Recommendation/sql/expertrec_setup/{mysql4-install-1.2.20.php → mysql4-install-1.2.21.php} +1 -1
- app/code/community/Expertrec/Recommendation/sql/expertrec_setup/{mysql4-upgrade-1.2.19-1.2.20.php → mysql4-upgrade-1.2.20-1.2.21.php} +1 -1
- package.xml +4 -4
app/code/community/Expertrec/Recommendation/Model/Observer.php
CHANGED
@@ -222,35 +222,51 @@ class Expertrec_Recommendation_Model_Observer {
|
|
222 |
return $this;
|
223 |
}
|
224 |
|
225 |
-
|
226 |
-
$
|
227 |
-
->setPrepareRequestStatus(false)
|
228 |
-
->setUserId('expertrec')
|
229 |
-
->setUrl($finalUrl)
|
230 |
-
->setMethod(Zend_Http_Client::DELETE)
|
231 |
-
->setData(array('item' => $product->getId()))
|
232 |
-
->setPrepareRequestStatus(true)
|
233 |
-
->sendRequest();
|
234 |
|
235 |
-
|
236 |
-
|
237 |
-
$finalUrl = $feedUrl.''.$mid.'/';
|
238 |
|
239 |
-
|
240 |
-
$response = Mage::getModel('expertrec_recommendation/api_request')
|
241 |
-
->setPrepareRequestStatus(false)
|
242 |
-
->setUserId('expertrec')
|
243 |
-
->setUrl($finalUrl)
|
244 |
-
->setMethod(Zend_Http_Client::DELETE)
|
245 |
-
->setData(array('item' => $product->getId()))
|
246 |
-
->setPrepareRequestStatus(true)
|
247 |
-
->sendRequest();
|
248 |
|
249 |
-
|
250 |
-
|
251 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
}
|
253 |
|
|
|
254 |
return $this;
|
255 |
}
|
256 |
|
@@ -519,85 +535,179 @@ class Expertrec_Recommendation_Model_Observer {
|
|
519 |
|
520 |
$storeId = $category_data['store_id'];
|
521 |
|
522 |
-
$
|
|
|
|
|
|
|
|
|
523 |
|
524 |
-
|
525 |
|
526 |
-
|
527 |
|
528 |
-
|
529 |
-
|
530 |
|
531 |
-
|
532 |
-
|
533 |
-
|
|
|
534 |
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
571 |
}
|
572 |
|
573 |
-
|
574 |
-
|
575 |
-
->setPrepareRequestStatus(false)
|
576 |
-
->setUserId('expertrec')
|
577 |
-
->setUrl($finalUrl)
|
578 |
-
->setMethod(Zend_Http_Client::POST)
|
579 |
-
->setData($categoryArray)
|
580 |
-
->setHeader("Content-Type",'application/json')
|
581 |
-
->setPrepareRequestStatus(true)
|
582 |
-
->sendRequest();
|
583 |
|
584 |
-
|
585 |
-
$feedUrl = "https://feed.expertrec.com/magento/n01eba6261ad7f174cd3a16523e86e65/";
|
586 |
-
$finalUrl = $feedUrl.''.$mid.'/category';
|
587 |
-
|
588 |
-
//sending request
|
589 |
-
$response = Mage::getModel('expertrec_recommendation/api_request')
|
590 |
-
->setPrepareRequestStatus(false)
|
591 |
-
->setUserId('expertrec')
|
592 |
-
->setUrl($finalUrl)
|
593 |
-
->setMethod(Zend_Http_Client::POST)
|
594 |
-
->setData($categoryArray)
|
595 |
-
->setHeader("Content-Type",'application/json')
|
596 |
-
->setPrepareRequestStatus(true)
|
597 |
-
->sendRequest();
|
598 |
|
599 |
-
|
600 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
601 |
}
|
602 |
|
603 |
return $this;
|
222 |
return $this;
|
223 |
}
|
224 |
|
225 |
+
$storeIds = $product->getStoreIds();
|
226 |
+
if(!empty($storeIds)){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
|
228 |
+
foreach($storeIds as $storeId){
|
229 |
+
$productId = $product->getId();
|
|
|
230 |
|
231 |
+
$store = Mage::app()->getStore($storeId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
|
233 |
+
$websiteId = $store->getWebsiteId();
|
234 |
+
$website = Mage::app()->getWebsite($websiteId);
|
235 |
+
|
236 |
+
$delete_array = array('entity_id' => $productId,'sid' => $storeId,'wid' => $websiteId);
|
237 |
+
|
238 |
+
//sending request
|
239 |
+
$response = Mage::getModel('expertrec_recommendation/api_request')
|
240 |
+
->setPrepareRequestStatus(false)
|
241 |
+
->setUserId('expertrec')
|
242 |
+
->setUrl($finalUrl)
|
243 |
+
->setMethod(Zend_Http_Client::DELETE)
|
244 |
+
->setData($delete_array)
|
245 |
+
->setPrepareRequestStatus(true)
|
246 |
+
->sendRequest();
|
247 |
+
|
248 |
+
$mid = Mage::getStoreConfig(self::MERCHANT_ID);
|
249 |
+
$feedUrl = "https://feed.expertrec.com/magento/n01eba6261ad7f174cd3a16523e86e65/";
|
250 |
+
$finalUrl = $feedUrl.''.$mid.'/';
|
251 |
+
|
252 |
+
//sending request
|
253 |
+
$response = Mage::getModel('expertrec_recommendation/api_request')
|
254 |
+
->setPrepareRequestStatus(false)
|
255 |
+
->setUserId('expertrec')
|
256 |
+
->setUrl($finalUrl)
|
257 |
+
->setMethod(Zend_Http_Client::DELETE)
|
258 |
+
->setData($delete_array)
|
259 |
+
->setPrepareRequestStatus(true)
|
260 |
+
->sendRequest();
|
261 |
+
|
262 |
+
|
263 |
+
if(!$response) {
|
264 |
+
$logger->log('DeleteCatalogProduct_Track: request failed for product with Id #'.$product->getId());
|
265 |
+
}
|
266 |
+
}
|
267 |
}
|
268 |
|
269 |
+
|
270 |
return $this;
|
271 |
}
|
272 |
|
535 |
|
536 |
$storeId = $category_data['store_id'];
|
537 |
|
538 |
+
if($storeId == 0){
|
539 |
+
$storeIds = $category->getStoreIds();
|
540 |
+
foreach($storeIds as $storeIdd){
|
541 |
+
if($storeIdd != 0){
|
542 |
+
$store = Mage::app()->getStore($storeIdd);
|
543 |
|
544 |
+
$websiteId = $store->getWebsiteId();
|
545 |
|
546 |
+
$category->setStoreId($storeIdd);
|
547 |
|
548 |
+
// get category url
|
549 |
+
$category_url = $store->getBaseUrl().$category->getUrlPath();
|
550 |
|
551 |
+
$category_id = $category->getId();
|
552 |
+
$logger->log("saved Category for # ".$category_id);
|
553 |
+
$category_name = $category->getName();
|
554 |
+
$category_status = $category->getIsActive();
|
555 |
|
556 |
+
// get path with name
|
557 |
+
$pathIdArray = explode('/', $category->getPath());
|
558 |
+
// $storeId = $store->getId();
|
559 |
+
$pathNameArray = array();
|
560 |
|
561 |
+
for($i=0;$i<count($pathIdArray);$i++){
|
562 |
+
$categoryy = Mage::getModel('catalog/category');
|
563 |
+
$categoryy->setStoreId($storeIdd);
|
564 |
+
$categoryy->load($pathIdArray[$i]);
|
565 |
+
$pathNameArray[$i] = $categoryy->getName();
|
566 |
+
}
|
567 |
+
// if($category->getName() == ''){
|
568 |
+
// $categoryy = Mage::getModel('catalog/category')->load($category->getId());
|
569 |
+
// $category_name = $categoryy->getName();
|
570 |
+
// }
|
571 |
+
//removing Root catalog which is $pathNameArrray[0]
|
572 |
+
// array_shift($pathNameArray);
|
573 |
+
$category_path = implode('/', $pathNameArray);
|
574 |
+
|
575 |
+
// array_shift($pathIdArray);
|
576 |
+
$category_id_path = implode('/', $pathIdArray);
|
577 |
+
|
578 |
+
$categoryArray = array('categoryId' => $category_id,
|
579 |
+
'categoryName' => $category_name,
|
580 |
+
'categoryStatus' => $category_status,
|
581 |
+
'categoryIdPath' => $category_id_path,
|
582 |
+
'categoryNamePath' => $category_path,
|
583 |
+
'categoryUrl' => $category_url,
|
584 |
+
'sid' => $storeIdd,
|
585 |
+
'wid' => $websiteId);
|
586 |
+
|
587 |
+
//$logger->log("array ".print_r($categoryArray,1));
|
588 |
+
// passing category to identify category url
|
589 |
+
$feedUrl = $this->getFeedEndpoint();
|
590 |
+
$finalUrl = $feedUrl.'/category';
|
591 |
+
if(empty($finalUrl)){
|
592 |
+
return $this;
|
593 |
+
}
|
594 |
+
|
595 |
+
//sending request
|
596 |
+
$response = Mage::getModel('expertrec_recommendation/api_request')
|
597 |
+
->setPrepareRequestStatus(false)
|
598 |
+
->setUserId('expertrec')
|
599 |
+
->setUrl($finalUrl)
|
600 |
+
->setMethod(Zend_Http_Client::POST)
|
601 |
+
->setData($categoryArray)
|
602 |
+
->setHeader("Content-Type",'application/json')
|
603 |
+
->setPrepareRequestStatus(true)
|
604 |
+
->sendRequest();
|
605 |
+
|
606 |
+
$mid = Mage::getStoreConfig(self::MERCHANT_ID);
|
607 |
+
$feedUrl = "https://feed.expertrec.com/magento/n01eba6261ad7f174cd3a16523e86e65/";
|
608 |
+
$finalUrl = $feedUrl.''.$mid.'/category';
|
609 |
+
|
610 |
+
//sending request
|
611 |
+
$response = Mage::getModel('expertrec_recommendation/api_request')
|
612 |
+
->setPrepareRequestStatus(false)
|
613 |
+
->setUserId('expertrec')
|
614 |
+
->setUrl($finalUrl)
|
615 |
+
->setMethod(Zend_Http_Client::POST)
|
616 |
+
->setData($categoryArray)
|
617 |
+
->setHeader("Content-Type",'application/json')
|
618 |
+
->setPrepareRequestStatus(true)
|
619 |
+
->sendRequest();
|
620 |
+
|
621 |
+
if(!$response) {
|
622 |
+
$logger->log('request failed for category with Id #'.$category->getId());
|
623 |
+
}
|
624 |
+
}
|
625 |
+
}
|
626 |
}
|
627 |
|
628 |
+
else{
|
629 |
+
$store = Mage::app()->getStore($storeId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
630 |
|
631 |
+
$websiteId = $store->getWebsiteId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
|
633 |
+
$category->setStoreId($storeId);
|
634 |
+
|
635 |
+
// get category url
|
636 |
+
$category_url = $store->getBaseUrl().$category->getUrlPath();
|
637 |
+
|
638 |
+
$category_id = $category->getId();
|
639 |
+
$logger->log("saved Category for # ".$category_id);
|
640 |
+
$category_name = $category->getName();
|
641 |
+
$category_status = $category->getIsActive();
|
642 |
+
|
643 |
+
// get path with name
|
644 |
+
$pathIdArray = explode('/', $category->getPath());
|
645 |
+
// $storeId = $store->getId();
|
646 |
+
$pathNameArray = array();
|
647 |
+
|
648 |
+
for($i=0;$i<count($pathIdArray);$i++){
|
649 |
+
$categoryy = Mage::getModel('catalog/category');
|
650 |
+
$categoryy->setStoreId($storeId);
|
651 |
+
$categoryy->load($pathIdArray[$i]);
|
652 |
+
$pathNameArray[$i] = $categoryy->getName();
|
653 |
+
}
|
654 |
+
// if($category->getName() == ''){
|
655 |
+
// $categoryy = Mage::getModel('catalog/category')->load($category->getId());
|
656 |
+
// $category_name = $categoryy->getName();
|
657 |
+
// }
|
658 |
+
//removing Root catalog which is $pathNameArrray[0]
|
659 |
+
// array_shift($pathNameArray);
|
660 |
+
$category_path = implode('/', $pathNameArray);
|
661 |
+
|
662 |
+
// array_shift($pathIdArray);
|
663 |
+
$category_id_path = implode('/', $pathIdArray);
|
664 |
+
|
665 |
+
$categoryArray = array('categoryId' => $category_id,
|
666 |
+
'categoryName' => $category_name,
|
667 |
+
'categoryStatus' => $category_status,
|
668 |
+
'categoryIdPath' => $category_id_path,
|
669 |
+
'categoryNamePath' => $category_path,
|
670 |
+
'categoryUrl' => $category_url,
|
671 |
+
'sid' => $storeId,
|
672 |
+
'wid' => $websiteId);
|
673 |
+
|
674 |
+
//$logger->log("array ".print_r($categoryArray,1));
|
675 |
+
// passing category to identify category url
|
676 |
+
$feedUrl = $this->getFeedEndpoint();
|
677 |
+
$finalUrl = $feedUrl.'/category';
|
678 |
+
if(empty($finalUrl)){
|
679 |
+
return $this;
|
680 |
+
}
|
681 |
+
|
682 |
+
//sending request
|
683 |
+
$response = Mage::getModel('expertrec_recommendation/api_request')
|
684 |
+
->setPrepareRequestStatus(false)
|
685 |
+
->setUserId('expertrec')
|
686 |
+
->setUrl($finalUrl)
|
687 |
+
->setMethod(Zend_Http_Client::POST)
|
688 |
+
->setData($categoryArray)
|
689 |
+
->setHeader("Content-Type",'application/json')
|
690 |
+
->setPrepareRequestStatus(true)
|
691 |
+
->sendRequest();
|
692 |
+
|
693 |
+
$mid = Mage::getStoreConfig(self::MERCHANT_ID);
|
694 |
+
$feedUrl = "https://feed.expertrec.com/magento/n01eba6261ad7f174cd3a16523e86e65/";
|
695 |
+
$finalUrl = $feedUrl.''.$mid.'/category';
|
696 |
+
|
697 |
+
//sending request
|
698 |
+
$response = Mage::getModel('expertrec_recommendation/api_request')
|
699 |
+
->setPrepareRequestStatus(false)
|
700 |
+
->setUserId('expertrec')
|
701 |
+
->setUrl($finalUrl)
|
702 |
+
->setMethod(Zend_Http_Client::POST)
|
703 |
+
->setData($categoryArray)
|
704 |
+
->setHeader("Content-Type",'application/json')
|
705 |
+
->setPrepareRequestStatus(true)
|
706 |
+
->sendRequest();
|
707 |
+
|
708 |
+
if(!$response) {
|
709 |
+
$logger->log('request failed for category with Id #'.$category->getId());
|
710 |
+
}
|
711 |
}
|
712 |
|
713 |
return $this;
|
app/code/community/Expertrec/Recommendation/controllers/ApiController.php
CHANGED
@@ -26,8 +26,8 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
|
|
26 |
const CONFIG_SECRET = 'expertrec/general/secret';
|
27 |
const PUSHED_FEED_PAGES = 'expertrec/general/expertrec_feed_pushed_pages';
|
28 |
|
29 |
-
const BUILD_NO = "
|
30 |
-
const EXPERTREC_VERSION = "1.2.
|
31 |
private $_password;
|
32 |
private $_storeId = array();
|
33 |
|
@@ -1045,8 +1045,11 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
|
|
1045 |
|
1046 |
$root_category = Mage::getModel('catalog/category')->load($rootCategoryId);
|
1047 |
|
|
|
|
|
1048 |
$catarr['categoryId'] = $root_category->getId();
|
1049 |
$catarr['categoryName'] = $root_category->getName();
|
|
|
1050 |
// $category_id_path = $category->getPath();
|
1051 |
|
1052 |
$store = Mage::app()->getStore($storeId);
|
@@ -1091,10 +1094,10 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
|
|
1091 |
->sendRequest();
|
1092 |
|
1093 |
if(!$response) {
|
1094 |
-
$this->logger()->log('Pull-Feed : ERROR : Request failed for all_categories with category # '.$catarr['
|
1095 |
}
|
1096 |
else{
|
1097 |
-
$this->printLog('Pull-Feed : getCategories : Request with all_categories sent successfully for category # ',$catarr['
|
1098 |
}
|
1099 |
|
1100 |
$categories = Mage::getModel('catalog/category')
|
@@ -1102,19 +1105,32 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
|
|
1102 |
->setStoreId($storeId)
|
1103 |
->addFieldToFilter('is_active', 1)
|
1104 |
->addAttributeToFilter('path', array('like' => "1/{$rootCategoryId}/%"))
|
|
|
1105 |
->addAttributeToSelect('*');
|
1106 |
|
1107 |
foreach($categories as $category){
|
1108 |
$catarr=array();
|
1109 |
$catarr['categoryId'] = $category->getId();
|
1110 |
$catarr['categoryName'] = $category->getName();
|
|
|
|
|
1111 |
|
1112 |
$category_url = $store->getBaseUrl().$category->getUrlPath();
|
1113 |
|
1114 |
$catarr['categoryUrl'] = $category_url;
|
1115 |
// $category_id_path = $category->getPath();
|
1116 |
|
1117 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1118 |
|
1119 |
$pathIdArray = explode('/', $category->getPath());
|
1120 |
$pathNameArray = array();
|
@@ -1147,10 +1163,10 @@ class Expertrec_Recommendation_ApiController extends Mage_Core_Controller_Front_
|
|
1147 |
->sendRequest();
|
1148 |
|
1149 |
if(!$response) {
|
1150 |
-
$this->logger()->log('Pull-Feed : ERROR : Request failed for all_categories with category # '.$catarr['
|
1151 |
}
|
1152 |
else{
|
1153 |
-
$this->printLog('Pull-Feed : getCategories : Request with all_categories sent successfully for category # ',$catarr['
|
1154 |
}
|
1155 |
}
|
1156 |
}
|
26 |
const CONFIG_SECRET = 'expertrec/general/secret';
|
27 |
const PUSHED_FEED_PAGES = 'expertrec/general/expertrec_feed_pushed_pages';
|
28 |
|
29 |
+
const BUILD_NO = "1497865310";
|
30 |
+
const EXPERTREC_VERSION = "1.2.21";
|
31 |
private $_password;
|
32 |
private $_storeId = array();
|
33 |
|
1045 |
|
1046 |
$root_category = Mage::getModel('catalog/category')->load($rootCategoryId);
|
1047 |
|
1048 |
+
//Mage::log(print_r($root_category->getImageUrl(),1));
|
1049 |
+
|
1050 |
$catarr['categoryId'] = $root_category->getId();
|
1051 |
$catarr['categoryName'] = $root_category->getName();
|
1052 |
+
$catarr['categoryStatus'] = $root_category->getIsActive();
|
1053 |
// $category_id_path = $category->getPath();
|
1054 |
|
1055 |
$store = Mage::app()->getStore($storeId);
|
1094 |
->sendRequest();
|
1095 |
|
1096 |
if(!$response) {
|
1097 |
+
$this->logger()->log('Pull-Feed : ERROR : Request failed for all_categories with category # '.$catarr['categoryId']);
|
1098 |
}
|
1099 |
else{
|
1100 |
+
$this->printLog('Pull-Feed : getCategories : Request with all_categories sent successfully for category # ',$catarr['categoryId'],$debug);
|
1101 |
}
|
1102 |
|
1103 |
$categories = Mage::getModel('catalog/category')
|
1105 |
->setStoreId($storeId)
|
1106 |
->addFieldToFilter('is_active', 1)
|
1107 |
->addAttributeToFilter('path', array('like' => "1/{$rootCategoryId}/%"))
|
1108 |
+
//->addAttributeToSelect('image')
|
1109 |
->addAttributeToSelect('*');
|
1110 |
|
1111 |
foreach($categories as $category){
|
1112 |
$catarr=array();
|
1113 |
$catarr['categoryId'] = $category->getId();
|
1114 |
$catarr['categoryName'] = $category->getName();
|
1115 |
+
// Adding status to know the active status of category
|
1116 |
+
$catarr['categoryStatus'] = $category->getIsActive();
|
1117 |
|
1118 |
$category_url = $store->getBaseUrl().$category->getUrlPath();
|
1119 |
|
1120 |
$catarr['categoryUrl'] = $category_url;
|
1121 |
// $category_id_path = $category->getPath();
|
1122 |
|
1123 |
+
// $image_parsed_url = parse_url($category->getImageUrl());
|
1124 |
+
// $image_url_path = substr($image_parsed_url['path'], 1);
|
1125 |
+
// $image_store_url =$store->getBaseUrl().$image_url_path;
|
1126 |
+
|
1127 |
+
// if($image_url_path != ''){
|
1128 |
+
// $catarr['categoryImage'] = $image_store_url;
|
1129 |
+
// }else{
|
1130 |
+
// $catarr['categoryImage'] = 'No image';
|
1131 |
+
// }
|
1132 |
+
|
1133 |
+
$this->printLog('Pull-Feed : getCategories : Collecting catagory name and info for cat_id # ',$catarr['categoryId'],$debug);
|
1134 |
|
1135 |
$pathIdArray = explode('/', $category->getPath());
|
1136 |
$pathNameArray = array();
|
1163 |
->sendRequest();
|
1164 |
|
1165 |
if(!$response) {
|
1166 |
+
$this->logger()->log('Pull-Feed : ERROR : Request failed for all_categories with category # '.$catarr['categoryId']);
|
1167 |
}
|
1168 |
else{
|
1169 |
+
$this->printLog('Pull-Feed : getCategories : Request with all_categories sent successfully for category # ',$catarr['categoryId'],$debug);
|
1170 |
}
|
1171 |
}
|
1172 |
}
|
app/code/community/Expertrec/Recommendation/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Expertrec_Recommendation>
|
5 |
-
<version>1.2.
|
6 |
</Expertrec_Recommendation>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Expertrec_Recommendation>
|
5 |
+
<version>1.2.21</version>
|
6 |
</Expertrec_Recommendation>
|
7 |
</modules>
|
8 |
<global>
|
app/code/community/Expertrec/Recommendation/sql/expertrec_setup/{mysql4-install-1.2.20.php → mysql4-install-1.2.21.php}
RENAMED
@@ -11,7 +11,7 @@
|
|
11 |
|
12 |
$mage_ver = Mage::getVersion();
|
13 |
$php_ver = phpversion();
|
14 |
-
$expertrec_version = "1.2.
|
15 |
|
16 |
$installer->startSetup();
|
17 |
|
11 |
|
12 |
$mage_ver = Mage::getVersion();
|
13 |
$php_ver = phpversion();
|
14 |
+
$expertrec_version = "1.2.21";
|
15 |
|
16 |
$installer->startSetup();
|
17 |
|
app/code/community/Expertrec/Recommendation/sql/expertrec_setup/{mysql4-upgrade-1.2.19-1.2.20.php → mysql4-upgrade-1.2.20-1.2.21.php}
RENAMED
@@ -11,7 +11,7 @@
|
|
11 |
|
12 |
$mage_ver = Mage::getVersion();
|
13 |
$php_ver = phpversion();
|
14 |
-
$expertrec_version = "1.2.
|
15 |
|
16 |
$installer->startSetup();
|
17 |
|
11 |
|
12 |
$mage_ver = Mage::getVersion();
|
13 |
$php_ver = phpversion();
|
14 |
+
$expertrec_version = "1.2.21";
|
15 |
|
16 |
$installer->startSetup();
|
17 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Expertrec_Recommendation</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>Expertrec search extension helps you have complete control over your site search results. You will be able to add instant autocomplete, spell corrections that learn from the user behaviour on your site, and show product recommendations within the search user interface. It also adds search results pages with facets, sorting by different attributes.</description>
|
11 |
<notes>Expertrec Recommendation plugin for magento sites.</notes>
|
12 |
<authors><author><name>melchi</name><user>melchi</user><email>magento@cloudinfra.in</email></author><author><name>magento</name><user>magento</user><email>magento-team@cloudinfra.in</email></author></authors>
|
13 |
-
<date>2017-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Expertrec"><dir name="Recommendation"><dir name="Block"><file name="Api.php" hash="e7997269c80ea4c7bc24ad67f843ca00"/><file name="Popularqueries.php" hash="5e305e1b2fc913e8eae6d8c540a02b60"/></dir><dir name="Helper"><file name="Autocompletehelper.php" hash="2a4f4202f7414158764a8e05cbefd596"/><file name="Data.php" hash="7e3728b4efa9ee373f73878a6a665528"/><file name="Filehelper.php" hash="f0deaedcbef965a14b905aea7946d533"/><dir name="Search"><file name="Layout.php" hash="6b0681539b719913caa5107a16ba8549"/></dir><file name="Suggestionhelper.php" hash="9316b6a6412961fbcd05d5a33dc23bcd"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="e33377d5c0d1badc289718de06c080cb"/></dir><dir name="Feed"><file name="Feedconfig.php" hash="77a806249b1a64a5e0e83d010f835130"/><file name="Feedcreator.php" hash="e32cb528c8fb5085adfa06aaae9a92a7"/><file name="Feedfilter.php" hash="46f355afbd085ff796ea1c16e030bbec"/><file name="Formatter.php" hash="fc0bb8bdb091e6efd33433d0be17c779"/></dir><file name="Feed.php" hash="3ddfbd9ba5d9845d1d546581a9f71701"/><file name="Log.php" hash="a96f0a142abc0a2c49e8134599d1eb93"/><file name="Observer.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Expertrec_Recommendation</name>
|
4 |
+
<version>1.2.21</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
10 |
<description>Expertrec search extension helps you have complete control over your site search results. You will be able to add instant autocomplete, spell corrections that learn from the user behaviour on your site, and show product recommendations within the search user interface. It also adds search results pages with facets, sorting by different attributes.</description>
|
11 |
<notes>Expertrec Recommendation plugin for magento sites.</notes>
|
12 |
<authors><author><name>melchi</name><user>melchi</user><email>magento@cloudinfra.in</email></author><author><name>magento</name><user>magento</user><email>magento-team@cloudinfra.in</email></author></authors>
|
13 |
+
<date>2017-06-19</date>
|
14 |
+
<time>09:42:23</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Expertrec"><dir name="Recommendation"><dir name="Block"><file name="Api.php" hash="e7997269c80ea4c7bc24ad67f843ca00"/><file name="Popularqueries.php" hash="5e305e1b2fc913e8eae6d8c540a02b60"/></dir><dir name="Helper"><file name="Autocompletehelper.php" hash="2a4f4202f7414158764a8e05cbefd596"/><file name="Data.php" hash="7e3728b4efa9ee373f73878a6a665528"/><file name="Filehelper.php" hash="f0deaedcbef965a14b905aea7946d533"/><dir name="Search"><file name="Layout.php" hash="6b0681539b719913caa5107a16ba8549"/></dir><file name="Suggestionhelper.php" hash="9316b6a6412961fbcd05d5a33dc23bcd"/></dir><dir name="Model"><dir name="Api"><file name="Request.php" hash="e33377d5c0d1badc289718de06c080cb"/></dir><dir name="Feed"><file name="Feedconfig.php" hash="77a806249b1a64a5e0e83d010f835130"/><file name="Feedcreator.php" hash="e32cb528c8fb5085adfa06aaae9a92a7"/><file name="Feedfilter.php" hash="46f355afbd085ff796ea1c16e030bbec"/><file name="Formatter.php" hash="fc0bb8bdb091e6efd33433d0be17c779"/></dir><file name="Feed.php" hash="3ddfbd9ba5d9845d1d546581a9f71701"/><file name="Log.php" hash="a96f0a142abc0a2c49e8134599d1eb93"/><file name="Observer.php" hash="50fbb0ae1522a80c9d7e495eddf11431"/><dir name="Translator"><file name="Category.php" hash="a1d8248562da426aab2ca319cebbb3c9"/></dir><file name="Validate.php" hash="c4be906568d7e10e51e6a4a42541bf5c"/><dir name="Writer"><file name="Abstract.php" hash="cafb19a4f943e200b775caec92bebd93"/><file name="Csv.php" hash="27d3188526f885de87b882d196a16c6d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="4aec75bacab301a25c34bc2eecb57bcf"/></dir><file name="ApiController.php" hash="dfc356e670d64686e5d1ba365c9c6b3b"/><dir name="CatalogSearch"><file name="ResultController.php" hash="e740f44c0cef4aa83545f2278626e7de"/></dir><file name="ConfigController.php" hash="07af2da00256ce6ab54a98b2980ea348"/><file name="IndexController.php" hash="7b7a4da293bd9778324c6b89d71a01ad"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4d5ac7be55302f8555d5b3191e8cb70d"/><file name="config.xml" hash="38c681219479a6d4c46548f1d1b5b6b8"/></dir><dir name="sql"><dir name="expertrec_setup"><file name="mysql4-install-1.2.21.php" hash="d173c90ada92e4477529b3cd31298a6f"/><file name="mysql4-upgrade-1.2.20-1.2.21.php" hash="bc333034a31a0492a48124f4da358659"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Expertrec_Recommendation.xml" hash="c314465f907c89dfe912035be8d48e71"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="expertrec"><file name="recommendation.xml" hash="371adcaac50e40e1abba2b41cd598bf8"/></dir></dir><dir name="template"><dir name="expertrec"><dir name="feed"><file name="info.phtml" hash="a41d86f3cc01eb09a7dab6da3b203612"/></dir><dir name="page"><dir name="html"><file name="sterms.phtml" hash="c4de444a084eb1c03ce2c92bb8f6d875"/></dir></dir><dir name="recommendation"><file name="tracker.phtml" hash="224eb09882eb29efdb16e874273ae2dc"/><dir name="tracking"><file name="product.phtml" hash="22c8a35ae1e546a2fb916fe363c0437d"/></dir></dir><dir name="search"><file name="custom.phtml" hash="b1bccc7ed9a04472add4192e05dcca24"/><file name="list.phtml" hash="9ff42c7a725ecab6274b1ab768fed95b"/><file name="view.phtml" hash="f86df8e975bf5bfb7733b85655f1911c"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="expertrec"><file name="recommendation.xml" hash="640762ea93c7657975314b8282f53498"/></dir></dir><dir name="template"><dir name="expertrec"><dir name="recommendation"><file name="notifications.phtml" hash="f264dfe05d0fd53c754a071a28cd415c"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|