Version Notes
Its stable version for 1.7, 1.8 and 1.9.
Download this release
Release Info
Developer | Netsolutions |
Extension | Netsol_Orderhistory |
Version | 0.1.1 |
Comparing to | |
See all releases |
Code changes from version 0.1.0 to 0.1.1
- Support.url → Support-orderhistory.url +0 -0
- app/code/community/Netsol/Orderhistory/Block/Adminhtml/Product/Paattribute.php +1 -1
- app/code/community/Netsol/Orderhistory/Block/Orderhistory.php +4 -8
- app/code/community/Netsol/Orderhistory/Helper/Data.php +1 -1
- app/code/community/Netsol/Orderhistory/Helper/Orderhistory.php +13 -12
- app/code/community/Netsol/Orderhistory/Model/Cron.php +32 -30
- app/code/community/Netsol/Orderhistory/Model/Crosssellanalytics.php +1 -1
- app/code/community/Netsol/Orderhistory/Model/Orderhistory.php +7 -7
- app/code/community/Netsol/Orderhistory/Model/Paattribute.php +1 -1
- app/code/community/Netsol/Orderhistory/Model/Patempentry.php +1 -1
- app/code/community/Netsol/Orderhistory/Model/System/Config/Source/Orderperiod.php +1 -1
- app/code/community/Netsol/Orderhistory/Model/Upsellanalytics.php +1 -1
- app/code/community/Netsol/Orderhistory/etc/config.xml +1 -1
- app/code/community/Netsol/Orderhistory/sql/netsol_order_setup/{mysql4-install-0.1.0.php → mysql4-install-0.1.1.php} +0 -0
- app/etc/modules/Netsol_Orderhistory.xml +1 -1
- package.xml +5 -5
- readme.html → readme-orderhistory.html +3 -3
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B01_search.jpg +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B02_time.jpg +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B03_season.jpg +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B_all_in_1.jpg +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B_all_in_2.jpg +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B_all_in_3.jpg +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description/personalytics-oh.jpg → orderhistory/predictiveanalytics/oh.jpg} +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description/personalytics-orderhistory1.jpg → orderhistory/predictiveanalytics/orderhistory1.jpg} +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/screenshot-5.jpg +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/screenshot-6.jpg +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description/personalytics-searchistory.jpg → orderhistory/predictiveanalytics/searchistory.jpg} +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description/personalytics-season.jpg → orderhistory/predictiveanalytics/season.jpg} +0 -0
- skin/frontend/base/default/images/netsol/{predictiveanalytics/description/personalytics-season1.jpg → orderhistory/predictiveanalytics/season1.jpg} +0 -0
Support.url → Support-orderhistory.url
RENAMED
File without changes
|
app/code/community/Netsol/Orderhistory/Block/Adminhtml/Product/Paattribute.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
-
* @copyright Copyright (c)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
+
* @copyright Copyright (c) 2016 Netsolutions India (http://www.netsolutions.in)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Netsol/Orderhistory/Block/Orderhistory.php
CHANGED
@@ -53,10 +53,8 @@ class Netsol_Orderhistory_Block_Orderhistory extends Mage_Catalog_Block_Product_
|
|
53 |
|
54 |
/**
|
55 |
* @description Retrieve collection based on setting
|
56 |
-
*
|
57 |
-
* @
|
58 |
-
* @param
|
59 |
-
* @return productCollection
|
60 |
*/
|
61 |
public function predictiveAnalysisBlock()
|
62 |
{
|
@@ -70,8 +68,7 @@ class Netsol_Orderhistory_Block_Orderhistory extends Mage_Catalog_Block_Product_
|
|
70 |
/**
|
71 |
* @description: Based on Warranty Period and
|
72 |
* preditive style of product of product and customer order item history
|
73 |
-
|
74 |
-
* @param order item
|
75 |
* @return $productIds
|
76 |
* */
|
77 |
protected function getorderHistoryProducts()
|
@@ -90,8 +87,7 @@ class Netsol_Orderhistory_Block_Orderhistory extends Mage_Catalog_Block_Product_
|
|
90 |
* @description: Based on Warranty Period and
|
91 |
* preditive style of product of product and customer order item history
|
92 |
*
|
93 |
-
* @
|
94 |
-
* @return $productCollection
|
95 |
* */
|
96 |
protected function _predictiveAnalysisBlock()
|
97 |
{
|
53 |
|
54 |
/**
|
55 |
* @description Retrieve collection based on setting
|
56 |
+
*
|
57 |
+
* @return productIds
|
|
|
|
|
58 |
*/
|
59 |
public function predictiveAnalysisBlock()
|
60 |
{
|
68 |
/**
|
69 |
* @description: Based on Warranty Period and
|
70 |
* preditive style of product of product and customer order item history
|
71 |
+
|
|
|
72 |
* @return $productIds
|
73 |
* */
|
74 |
protected function getorderHistoryProducts()
|
87 |
* @description: Based on Warranty Period and
|
88 |
* preditive style of product of product and customer order item history
|
89 |
*
|
90 |
+
* @return $productIds
|
|
|
91 |
* */
|
92 |
protected function _predictiveAnalysisBlock()
|
93 |
{
|
app/code/community/Netsol/Orderhistory/Helper/Data.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
-
* @copyright Copyright (c)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
class Netsol_Orderhistory_Helper_Data extends Mage_Core_Helper_Abstract
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
+
* @copyright Copyright (c) 2016 Netsolutions India (http://www.netsolutions.in)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
class Netsol_Orderhistory_Helper_Data extends Mage_Core_Helper_Abstract
|
app/code/community/Netsol/Orderhistory/Helper/Orderhistory.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
-
* @copyright Copyright (c)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
class Netsol_Orderhistory_Helper_Orderhistory extends Mage_Core_Helper_Abstract
|
@@ -24,12 +24,9 @@ class Netsol_Orderhistory_Helper_Orderhistory extends Mage_Core_Helper_Abstract
|
|
24 |
|
25 |
|
26 |
/**
|
27 |
-
* @description:
|
28 |
-
*
|
29 |
-
*
|
30 |
-
*
|
31 |
-
* @param
|
32 |
-
* @return
|
33 |
* */
|
34 |
public function orderIterator($eachCronCustomerCount,$start)
|
35 |
{
|
@@ -48,7 +45,7 @@ class Netsol_Orderhistory_Helper_Orderhistory extends Mage_Core_Helper_Abstract
|
|
48 |
$from = date("Y-m-d", strtotime("-".$orderPeriod)); //orders from which period to till date
|
49 |
$customerCollections = Mage::getResourceModel('sales/order_collection')
|
50 |
->addAttributeToSelect('status');
|
51 |
-
$customerCollections->getSelect()->order('customer.entity_id')->limit($eachCronCustomerCount,$start)->group('customer.entity_id')->join( array('customer'=> 'customer_entity'),
|
52 |
'customer.entity_id=main_table.customer_id',array('customer.entity_id'));
|
53 |
$customerCollections->addFieldToFilter('main_table.status', 'complete');
|
54 |
|
@@ -72,8 +69,7 @@ class Netsol_Orderhistory_Helper_Orderhistory extends Mage_Core_Helper_Abstract
|
|
72 |
$orderItemIds[$j][$pid]= $orderCreatedAt; // collection order item id
|
73 |
}
|
74 |
}
|
75 |
-
|
76 |
-
//print_r($orderItemIds);
|
77 |
/***Collection of order item ids end**/
|
78 |
if(!empty($orderItemIds[$j])) {
|
79 |
$orderProductId = array_keys($orderItemIds[$j]);
|
@@ -134,6 +130,10 @@ class Netsol_Orderhistory_Helper_Orderhistory extends Mage_Core_Helper_Abstract
|
|
134 |
|
135 |
}
|
136 |
|
|
|
|
|
|
|
|
|
137 |
protected function predictiveAnalysisEmail($pids = array())
|
138 |
{
|
139 |
try {
|
@@ -160,7 +160,7 @@ class Netsol_Orderhistory_Helper_Orderhistory extends Mage_Core_Helper_Abstract
|
|
160 |
$productIdsDiff = array_diff($pids[$cid],$productIds);
|
161 |
|
162 |
if(!empty($productIdsDiff)) {
|
163 |
-
|
164 |
$emailVars = array('customer_name' => $customerName,' customer_email' => $customerEmail,'products' => $productIdsDiff);
|
165 |
$emailTemplate = Mage::getModel('core/email_template')->loadDefault( Mage::getStoreConfig(self::XML_PATH_PREDICTIVE_EMAIL_TEMPLATE));
|
166 |
$sender = Mage::getStoreConfig(self::XML_PATH_PREDICTIVE_EMAIL_IDENTITY);
|
@@ -182,12 +182,13 @@ class Netsol_Orderhistory_Helper_Orderhistory extends Mage_Core_Helper_Abstract
|
|
182 |
/**CustomerEmail records according product id with sent email flag**/
|
183 |
|
184 |
}
|
|
|
185 |
}
|
186 |
|
187 |
|
188 |
}
|
189 |
}
|
190 |
-
|
191 |
} catch(Exception $e) {
|
192 |
echo $e->getMessage(); die;
|
193 |
}
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
+
* @copyright Copyright (c) 2016 Netsolutions India (http://www.netsolutions.in)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
class Netsol_Orderhistory_Helper_Orderhistory extends Mage_Core_Helper_Abstract
|
24 |
|
25 |
|
26 |
/**
|
27 |
+
* @description: Based on orderhistory of registered user,
|
28 |
+
* recommend products is sent to user in email
|
29 |
+
* @return $productIds
|
|
|
|
|
|
|
30 |
* */
|
31 |
public function orderIterator($eachCronCustomerCount,$start)
|
32 |
{
|
45 |
$from = date("Y-m-d", strtotime("-".$orderPeriod)); //orders from which period to till date
|
46 |
$customerCollections = Mage::getResourceModel('sales/order_collection')
|
47 |
->addAttributeToSelect('status');
|
48 |
+
$customerCollections->getSelect()->order('customer.entity_id')->limit($eachCronCustomerCount,$start)->group('customer.entity_id')->join( array('customer'=> Mage::getConfig()->getTablePrefix().'customer_entity'),
|
49 |
'customer.entity_id=main_table.customer_id',array('customer.entity_id'));
|
50 |
$customerCollections->addFieldToFilter('main_table.status', 'complete');
|
51 |
|
69 |
$orderItemIds[$j][$pid]= $orderCreatedAt; // collection order item id
|
70 |
}
|
71 |
}
|
72 |
+
|
|
|
73 |
/***Collection of order item ids end**/
|
74 |
if(!empty($orderItemIds[$j])) {
|
75 |
$orderProductId = array_keys($orderItemIds[$j]);
|
130 |
|
131 |
}
|
132 |
|
133 |
+
/**
|
134 |
+
* @description: Based on orderhistory of registered user,
|
135 |
+
* recommend products is sent to user in email
|
136 |
+
* */
|
137 |
protected function predictiveAnalysisEmail($pids = array())
|
138 |
{
|
139 |
try {
|
160 |
$productIdsDiff = array_diff($pids[$cid],$productIds);
|
161 |
|
162 |
if(!empty($productIdsDiff)) {
|
163 |
+
/***Recommendation email based on orderhistory to registered user **/
|
164 |
$emailVars = array('customer_name' => $customerName,' customer_email' => $customerEmail,'products' => $productIdsDiff);
|
165 |
$emailTemplate = Mage::getModel('core/email_template')->loadDefault( Mage::getStoreConfig(self::XML_PATH_PREDICTIVE_EMAIL_TEMPLATE));
|
166 |
$sender = Mage::getStoreConfig(self::XML_PATH_PREDICTIVE_EMAIL_IDENTITY);
|
182 |
/**CustomerEmail records according product id with sent email flag**/
|
183 |
|
184 |
}
|
185 |
+
/***Recommendation email based on orderhistory to registered user **/
|
186 |
}
|
187 |
|
188 |
|
189 |
}
|
190 |
}
|
191 |
+
|
192 |
} catch(Exception $e) {
|
193 |
echo $e->getMessage(); die;
|
194 |
}
|
app/code/community/Netsol/Orderhistory/Model/Cron.php
CHANGED
@@ -14,26 +14,24 @@
|
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
-
* @copyright Copyright (c)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
21 |
class Netsol_Orderhistory_Model_Cron
|
22 |
{
|
23 |
/**
|
24 |
-
* Limit var for SQL queries
|
25 |
*
|
26 |
-
* @var
|
27 |
-
* @access protected
|
28 |
*/
|
29 |
protected $_numberOfCronTabs = 5;
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
public function oneEmailWarrantyProducts()
|
37 |
{
|
38 |
try
|
39 |
{
|
@@ -49,11 +47,12 @@ class Netsol_Orderhistory_Model_Cron
|
|
49 |
Mage::printException($e);
|
50 |
}
|
51 |
}
|
|
|
52 |
/**
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
public function twoEmailWarrantyProducts($observer)
|
58 |
{
|
59 |
try
|
@@ -68,11 +67,12 @@ class Netsol_Orderhistory_Model_Cron
|
|
68 |
Mage::printException($e);
|
69 |
}
|
70 |
}
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
76 |
public function threeEmailWarrantyProducts($observer)
|
77 |
{
|
78 |
try
|
@@ -87,11 +87,12 @@ class Netsol_Orderhistory_Model_Cron
|
|
87 |
Mage::printException($e);
|
88 |
}
|
89 |
}
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
|
|
95 |
public function fourEmailWarrantyProducts($observer)
|
96 |
{
|
97 |
try
|
@@ -106,11 +107,12 @@ class Netsol_Orderhistory_Model_Cron
|
|
106 |
Mage::printException($e);
|
107 |
}
|
108 |
}
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
|
|
114 |
public function fiveEmailWarrantyProducts($observer)
|
115 |
{
|
116 |
try
|
@@ -139,7 +141,7 @@ class Netsol_Orderhistory_Model_Cron
|
|
139 |
//$numberOfCustomers = Mage::getModel('customer/customer')->getCollection()->getSize(); //Number of customers in websites
|
140 |
$customerCollections = Mage::getResourceModel('sales/order_collection')
|
141 |
->addAttributeToSelect('status');
|
142 |
-
$customerCollections->getSelect()->order('customer.entity_id')->group('customer.entity_id')->join( array('customer'=> 'customer_entity'),
|
143 |
'customer.entity_id=main_table.customer_id',array('customer.entity_id'));
|
144 |
$customerCollections->addFieldToFilter('main_table.status', 'complete');
|
145 |
$numberOfCustomers = count($customerCollections);
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
+
* @copyright Copyright (c) 2016 Netsolutions India (http://www.netsolutions.in)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
21 |
class Netsol_Orderhistory_Model_Cron
|
22 |
{
|
23 |
/**
|
|
|
24 |
*
|
25 |
+
* @var number of cron tab
|
|
|
26 |
*/
|
27 |
protected $_numberOfCronTabs = 5;
|
28 |
|
29 |
+
/**
|
30 |
+
* @desciption: Cron job task one trigger based on customers
|
31 |
+
* @param : $observer
|
32 |
+
* @return email trigger based on recommendation
|
33 |
+
*/
|
34 |
+
public function oneEmailWarrantyProducts($observer)
|
35 |
{
|
36 |
try
|
37 |
{
|
47 |
Mage::printException($e);
|
48 |
}
|
49 |
}
|
50 |
+
|
51 |
/**
|
52 |
+
* @desciption: Cron job task two trigger based on customers
|
53 |
+
*
|
54 |
+
* @return email trigger based on recommendation
|
55 |
+
*/
|
56 |
public function twoEmailWarrantyProducts($observer)
|
57 |
{
|
58 |
try
|
67 |
Mage::printException($e);
|
68 |
}
|
69 |
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* @desciption: Cron job task three trigger based on customers
|
73 |
+
*
|
74 |
+
* @return email trigger based on recommendation
|
75 |
+
*/
|
76 |
public function threeEmailWarrantyProducts($observer)
|
77 |
{
|
78 |
try
|
87 |
Mage::printException($e);
|
88 |
}
|
89 |
}
|
90 |
+
|
91 |
+
/**
|
92 |
+
* @desciption: Cron job task four trigger based on customers
|
93 |
+
*
|
94 |
+
* @return email trigger based on recommendation
|
95 |
+
*/
|
96 |
public function fourEmailWarrantyProducts($observer)
|
97 |
{
|
98 |
try
|
107 |
Mage::printException($e);
|
108 |
}
|
109 |
}
|
110 |
+
|
111 |
+
/**
|
112 |
+
* @desciption: Cron job task five trigger based on customers
|
113 |
+
*
|
114 |
+
* @return email trigger based on recommendation
|
115 |
+
*/
|
116 |
public function fiveEmailWarrantyProducts($observer)
|
117 |
{
|
118 |
try
|
141 |
//$numberOfCustomers = Mage::getModel('customer/customer')->getCollection()->getSize(); //Number of customers in websites
|
142 |
$customerCollections = Mage::getResourceModel('sales/order_collection')
|
143 |
->addAttributeToSelect('status');
|
144 |
+
$customerCollections->getSelect()->order('customer.entity_id')->group('customer.entity_id')->join( array('customer'=> Mage::getConfig()->getTablePrefix().'customer_entity'),
|
145 |
'customer.entity_id=main_table.customer_id',array('customer.entity_id'));
|
146 |
$customerCollections->addFieldToFilter('main_table.status', 'complete');
|
147 |
$numberOfCustomers = count($customerCollections);
|
app/code/community/Netsol/Orderhistory/Model/Crosssellanalytics.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
-
* @copyright Copyright (c)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
+
* @copyright Copyright (c) 2016 Netsolutions India (http://www.netsolutions.in)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Netsol/Orderhistory/Model/Orderhistory.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
-
* @copyright Copyright (c)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
@@ -30,12 +30,9 @@ class Netsol_Orderhistory_Model_Orderhistory extends Mage_Core_Model_Abstract
|
|
30 |
}
|
31 |
|
32 |
/**
|
33 |
-
* @description:
|
34 |
-
*
|
35 |
-
*
|
36 |
-
*
|
37 |
-
* @param
|
38 |
-
* @return
|
39 |
* */
|
40 |
public function orderIteratorMehod()
|
41 |
{
|
@@ -51,8 +48,11 @@ class Netsol_Orderhistory_Model_Orderhistory extends Mage_Core_Model_Abstract
|
|
51 |
$websiteId = Mage::app()->getWebsite()->getId();
|
52 |
$to = date('Y-m-d', $time); // current date
|
53 |
$from = date("Y-m-d", strtotime("-".$orderPeriod)); //orders from which period to till date
|
|
|
54 |
$crosellProductIds = Mage::getModel('orderhistory/crosssellanalytics')->crossSellIteratorMehod();
|
55 |
$upsellProductIds = Mage::getModel('orderhistory/upsellanalytics')->upSellIteratorMehod();
|
|
|
|
|
56 |
/* Get the collection */
|
57 |
$orders = Mage::getResourceModel('sales/order_collection')
|
58 |
->addFieldToFilter('customer_id', Mage::getSingleton('customer/session')->getCustomer()->getId())
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
+
* @copyright Copyright (c) 2016 Netsolutions India (http://www.netsolutions.in)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
30 |
}
|
31 |
|
32 |
/**
|
33 |
+
* @description: Based on orderhistory of registered user,
|
34 |
+
* recommend products displayed
|
35 |
+
* @return $productIds
|
|
|
|
|
|
|
36 |
* */
|
37 |
public function orderIteratorMehod()
|
38 |
{
|
48 |
$websiteId = Mage::app()->getWebsite()->getId();
|
49 |
$to = date('Y-m-d', $time); // current date
|
50 |
$from = date("Y-m-d", strtotime("-".$orderPeriod)); //orders from which period to till date
|
51 |
+
/*** checking the upsell and crossell product collections ***/
|
52 |
$crosellProductIds = Mage::getModel('orderhistory/crosssellanalytics')->crossSellIteratorMehod();
|
53 |
$upsellProductIds = Mage::getModel('orderhistory/upsellanalytics')->upSellIteratorMehod();
|
54 |
+
/*** checking the upsell and crossell product collections ***/
|
55 |
+
|
56 |
/* Get the collection */
|
57 |
$orders = Mage::getResourceModel('sales/order_collection')
|
58 |
->addFieldToFilter('customer_id', Mage::getSingleton('customer/session')->getCustomer()->getId())
|
app/code/community/Netsol/Orderhistory/Model/Paattribute.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
-
* @copyright Copyright (c)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
class Netsol_Orderhistory_Model_Paattribute extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
+
* @copyright Copyright (c) 2016 Netsolutions India (http://www.netsolutions.in)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
class Netsol_Orderhistory_Model_Paattribute extends Mage_Eav_Model_Entity_Attribute_Backend_Abstract
|
app/code/community/Netsol/Orderhistory/Model/Patempentry.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
-
* @copyright Copyright (c)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
+
* @copyright Copyright (c) 2016 Netsolutions India (http://www.netsolutions.in)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Netsol/Orderhistory/Model/System/Config/Source/Orderperiod.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
-
* @copyright Copyright (c)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
class Netsol_Orderhistory_Model_System_Config_Source_Orderperiod
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
+
* @copyright Copyright (c) 2016 Netsolutions India (http://www.netsolutions.in)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
class Netsol_Orderhistory_Model_System_Config_Source_Orderperiod
|
app/code/community/Netsol/Orderhistory/Model/Upsellanalytics.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
-
* @copyright Copyright (c)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
14 |
*
|
15 |
* @category Netsol
|
16 |
* @package Netsol_Orderhistory
|
17 |
+
* @copyright Copyright (c) 2016 Netsolutions India (http://www.netsolutions.in)
|
18 |
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
|
app/code/community/Netsol/Orderhistory/etc/config.xml
CHANGED
@@ -22,7 +22,7 @@
|
|
22 |
<config>
|
23 |
<modules>
|
24 |
<Netsol_Orderhistory>
|
25 |
-
<version>0.1.
|
26 |
</Netsol_Orderhistory>
|
27 |
</modules>
|
28 |
<frontend>
|
22 |
<config>
|
23 |
<modules>
|
24 |
<Netsol_Orderhistory>
|
25 |
+
<version>0.1.1</version>
|
26 |
</Netsol_Orderhistory>
|
27 |
</modules>
|
28 |
<frontend>
|
app/code/community/Netsol/Orderhistory/sql/netsol_order_setup/{mysql4-install-0.1.0.php → mysql4-install-0.1.1.php}
RENAMED
File without changes
|
app/etc/modules/Netsol_Orderhistory.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<Netsol_Orderhistory>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
-
<version>0.1.
|
8 |
<comment>Before disable/uninstall this module also delete attribute warranty_period otherwise the website will display error..</comment>
|
9 |
</Netsol_Orderhistory>
|
10 |
</modules>
|
4 |
<Netsol_Orderhistory>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
+
<version>0.1.1</version>
|
8 |
<comment>Before disable/uninstall this module also delete attribute warranty_period otherwise the website will display error..</comment>
|
9 |
</Netsol_Orderhistory>
|
10 |
</modules>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Netsol_Orderhistory</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Recommend products on the basis of expiration of life cycle of the products.</summary>
|
10 |
-
<description>
|
11 |
<notes>Its stable version for 1.7, 1.8 and 1.9.</notes>
|
12 |
<authors><author><name>Netsolutions</name><user>netsolutions</user><email>marketing@netsolutionsindia.com</email></author></authors>
|
13 |
-
<date>2016-
|
14 |
-
<time>10:
|
15 |
-
<contents><target name="magecommunity"><dir name="Netsol"><dir name="Orderhistory"><dir name="Block"><dir name="Adminhtml"><dir name="Product"><file name="Paattribute.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>7.0.10</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Netsol_Orderhistory</name>
|
4 |
+
<version>0.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Recommend products on the basis of expiration of life cycle of the products.</summary>
|
10 |
+
<description>This extension will help vendors to recommend the products to customers whose life cycle is going to be expire.This way this extension will promote reordering.</description>
|
11 |
<notes>Its stable version for 1.7, 1.8 and 1.9.</notes>
|
12 |
<authors><author><name>Netsolutions</name><user>netsolutions</user><email>marketing@netsolutionsindia.com</email></author></authors>
|
13 |
+
<date>2016-10-04</date>
|
14 |
+
<time>10:47:51</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Netsol"><dir name="Orderhistory"><dir name="Block"><dir name="Adminhtml"><dir name="Product"><file name="Paattribute.php" hash="b3fd5c50b6dfb1fee7616b06e2cc8291"/></dir></dir><file name="Orderhistory.php" hash="87ad6bc084d146b30f085beab1e42bf3"/></dir><dir name="Helper"><file name="Data.php" hash="e69c22690a8867e63ac51f41107940bd"/><file name="Orderhistory.php" hash="58c423eef246bc63d7ea05058dcc4e2f"/></dir><dir name="Model"><file name="Cron.php" hash="8ee0ff2524260584c9ea4aa5562bd719"/><file name="Crosssellanalytics.php" hash="f1bbda83439cae07252f18499ef81e1f"/><dir name="Mysql4"><dir name="Patempentry"><file name="Collection.php" hash="215e3247e3bcbdd16d193ec2dca19d20"/></dir><file name="Patempentry.php" hash="37be609af773eaa7f0bd6bafad26fab5"/></dir><file name="Observer.php" hash="df0f17eb3b9dd4d66935ae8f2976facc"/><file name="Orderhistory.php" hash="0a20ebca9de711047dc3f7988724e72f"/><file name="Paattribute.php" hash="e915b304878c566ca7f36c140b64e988"/><file name="Patempentry.php" hash="3cd3fd3a67e7ffa5eb8f9f5d18f43f51"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Orderperiod.php" hash="e96bfbfb123d6bb6dc1f13f99f059fbc"/><file name="Positionoption.php" hash="f6b13a618fc101b70aa6cdb2dd2a6ca8"/></dir></dir></dir><file name="Upsellanalytics.php" hash="fc876b1388272a640ccbc13f5a51a4b6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="489ac75dd784053f953f5e0971760725"/><file name="config.xml" hash="91942835fbae389640d550b731304ca8"/><file name="system.xml" hash="b914f9a7c4af561dd6fe0e7292a69ebb"/></dir><dir name="sql"><dir name="netsol_order_setup"><file name="mysql4-install-0.1.1.php" hash="2a3bc25998b249560f0d16b01ae4a2ca"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Netsol_Orderhistory.xml" hash="280f8311306f3f1bba17a387d005e400"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="orderhistory"><dir name="product"><file name="paattribute.phtml" hash="45515fab30dee5a631cb7270e284447c"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="orderhistory.xml" hash="f80184b36770b10cd006658b0e6b4c80"/></dir><dir name="template"><dir name="orderhistory"><dir name="email"><file name="items.phtml" hash="c62c806d876e16f3bdf7c785c7250ac8"/></dir><file name="pacontent.phtml" hash="bb0df315f2e740285da2679d6f9c1631"/><file name="paright.phtml" hash="7c65ec98742620c22818a3153217daca"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><dir name="netsol"><dir name="orderhistory"><file name="jquery-1.10.2.js" hash="91515770ce8c55de23b306444d8ea998"/><file name="jquery-1.10.2.min.js" hash="841dc30647f93349b7d8ef61deebe411"/><file name="noconflict.js" hash="10bdc1b7f2effa529e5baae786007688"/><file name="owl.carousel.js" hash="a5f96c62d75be144282ef6cc429a6259"/><file name="owl.carousel.min.js" hash="88d0fe722f04973e2888b58a63aa0570"/></dir></dir></dir><dir name="images"><dir name="netsol"><dir name="orderhistory"><file name="AjaxLoader.gif" hash="5b8b06c052cac80413d62e5c45f9f37b"/><file name="bx_loader.gif" hash="931bdb6b50816b03206c66921760b246"/><file name="controls.png" hash="d9d25372f38c6b242b9b51d5841fe86e"/><dir name="email"><file name="dot-line.png" hash="55050a0534a9a718cf95bb0dc25cec05"/></dir><file name="grabbing.png" hash="d817e1dba5bd5d891d0504bf1715807b"/><dir name="predictiveanalytics"><file name="B01_search.jpg" hash="d7b27678105915bd9c82a6aff61d035f"/><file name="B02_time.jpg" hash="97b83733baa7ea7dc781ca0a49f74115"/><file name="B03_season.jpg" hash="7cdf87b8052d08b164ed8b894b837b6a"/><file name="B_all_in_1.jpg" hash="9fc817160a4e5f94963e9d4a7794bdcc"/><file name="B_all_in_2.jpg" hash="9ce1f6f13a8ff2119c3608e835b698d1"/><file name="B_all_in_3.jpg" hash="7b59db1d6f81cc4ede6c9ba320831ed1"/><file name="oh.jpg" hash="611a7ef90da62455f82b5f677f36ed70"/><file name="orderhistory1.jpg" hash="c0d51a7e74a9c9efe65616ebb291b0ad"/><file name="screenshot-5.jpg" hash="80c0fefbd59a0a9cef7ae06f5f41c224"/><file name="screenshot-6.jpg" hash="54e6b0f986950344cd1168c7f44b0eeb"/><file name="searchistory.jpg" hash="2baca071f0f5b1fdb8d098f8d2913a00"/><file name="season.jpg" hash="c6f28cc53be21c377a1b65ea70cc6398"/><file name="season1.jpg" hash="d5c7b07689c78240c63558ad151f9327"/></dir></dir></dir></dir><dir name="css"><dir name="netsol"><dir name="orderhistory"><file name="orderhistory.css" hash="31251e0afa46dedc0de538b3401278a1"/><file name="owl.carousel.css" hash="0371b5a2d50e985b09b7d337edc0dc9f"/><file name="owl.theme.css" hash="f23cf727e4fcca9a5470658da5e755c9"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="netsol"><file name="netsol_paorderhistory_email.html" hash="c31a5c14e7a456116e877ac87fc2379d"/></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="Support-orderhistory.url" hash="cdae1f810d1b044a099d709f5ed4dba9"/><file name="readme-orderhistory.html" hash="27b9d9188859d181bf596f2c0f94d8e7"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>7.0.10</max></php></required></dependencies>
|
18 |
</package>
|
readme.html → readme-orderhistory.html
RENAMED
@@ -66,7 +66,7 @@
|
|
66 |
<h2 id="configuration">Configuration</h2>
|
67 |
|
68 |
<p>After the extension is installed, you can visit <strong>System->Configuration->Net Solutions->Personalytics Order History Settings</strong> in the Magento admin panel to see the main configuration options:</p>
|
69 |
-
<p><img src="skin/frontend/base/default/images/netsol/predictiveanalytics/
|
70 |
|
71 |
<h3>Enable:</h3>
|
72 |
<p>Admin option to enable or disable the extension. If you don't want to show recommendation block on any page then save this option as "No".</p>
|
@@ -144,7 +144,7 @@
|
|
144 |
|
145 |
<h3>Setting expiration date product wise</h3>
|
146 |
<p>Visit <strong>Catalog->Manage Products->Personalytics</strong> in the Magento admin panel to see how you can set product expiration date. </p>
|
147 |
-
<p><img src="skin/frontend/base/default/images/netsol/predictiveanalytics/
|
148 |
|
149 |
<h2 id="troubleshooting">Troubleshooting</h2>
|
150 |
|
@@ -160,4 +160,4 @@
|
|
160 |
</div>
|
161 |
</div>
|
162 |
</body>
|
163 |
-
</html>
|
66 |
<h2 id="configuration">Configuration</h2>
|
67 |
|
68 |
<p>After the extension is installed, you can visit <strong>System->Configuration->Net Solutions->Personalytics Order History Settings</strong> in the Magento admin panel to see the main configuration options:</p>
|
69 |
+
<p><img src="skin/frontend/base/default/images/netsol/orderhistory/predictiveanalytics/orderhistory1.jpg" style="max-width:1400px;"/></p>
|
70 |
|
71 |
<h3>Enable:</h3>
|
72 |
<p>Admin option to enable or disable the extension. If you don't want to show recommendation block on any page then save this option as "No".</p>
|
144 |
|
145 |
<h3>Setting expiration date product wise</h3>
|
146 |
<p>Visit <strong>Catalog->Manage Products->Personalytics</strong> in the Magento admin panel to see how you can set product expiration date. </p>
|
147 |
+
<p><img src="skin/frontend/base/default/images/netsol/orderhistory/predictiveanalytics/oh.jpg" style="max-width:1400px; "/></p>
|
148 |
|
149 |
<h2 id="troubleshooting">Troubleshooting</h2>
|
150 |
|
160 |
</div>
|
161 |
</div>
|
162 |
</body>
|
163 |
+
</html>
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B01_search.jpg
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B02_time.jpg
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B03_season.jpg
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B_all_in_1.jpg
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B_all_in_2.jpg
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/B_all_in_3.jpg
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description/personalytics-oh.jpg → orderhistory/predictiveanalytics/oh.jpg}
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description/personalytics-orderhistory1.jpg → orderhistory/predictiveanalytics/orderhistory1.jpg}
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/screenshot-5.jpg
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description → orderhistory/predictiveanalytics}/screenshot-6.jpg
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description/personalytics-searchistory.jpg → orderhistory/predictiveanalytics/searchistory.jpg}
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description/personalytics-season.jpg → orderhistory/predictiveanalytics/season.jpg}
RENAMED
File without changes
|
skin/frontend/base/default/images/netsol/{predictiveanalytics/description/personalytics-season1.jpg → orderhistory/predictiveanalytics/season1.jpg}
RENAMED
File without changes
|