Invitereferrals_Loyalty - Version 2.0.0

Version Notes

Stable version Invitereferral Extension with tracking

Download this release

Release Info

Developer Invitereferrals
Extension Invitereferrals_Loyalty
Version 2.0.0
Comparing to
See all releases


Code changes from version 1.0.0 to 2.0.0

app/code/community/Invitereferrals/Campaign/Block/default.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Invitereferrals_Campaign extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the MIT License
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/mit-license.php
11
+ *
12
+ * @category Invitereferrals
13
+ * @package Invitereferrals_Campaign
14
+ * @copyright Copyright (c) 2014
15
+ * @license http://opensource.org/licenses/mit-license.php MIT License
16
+ */
17
+ /**
18
+ * Invitereferrals Settings view block
19
+ *
20
+ * @category Invitereferrals
21
+ * @package Invitereferrals_Campaign
22
+ * @author Ultimate Module Creator
23
+ */
24
+ class Invitereferrals_Campaign_Block_Default extends Mage_Core_Block_Template {
25
+ }
app/code/community/Invitereferrals/Campaign/Helper/Data.php ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Invitereferrals_Campaign extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the MIT License
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/mit-license.php
11
+ *
12
+ * @category Invitereferrals
13
+ * @package Invitereferrals_Campaign
14
+ * @copyright Copyright (c) 2014
15
+ * @license http://opensource.org/licenses/mit-license.php MIT License
16
+ */
17
+ /**
18
+ * Campaign default helper
19
+ *
20
+ * @category Invitereferrals
21
+ * @package Invitereferrals_Campaign
22
+ * @author Ultimate Module Creator
23
+ */
24
+ class Invitereferrals_Campaign_Helper_Data extends Mage_Core_Helper_Abstract {
25
+ public function isActive()
26
+ {
27
+ $campaignActive = Mage::getStoreConfig('general/Invitereferrals_campaign/active');
28
+ if(!empty($campaignActive))
29
+ return true;
30
+ else
31
+ return false;
32
+ }
33
+
34
+ public function debug()
35
+ {
36
+ $debug = Mage::getStoreConfig('general/Invitereferrals_campaign/debug');
37
+ if(!empty($debug))
38
+ return true;
39
+ else
40
+ return false;
41
+ }
42
+
43
+ public function getKey()
44
+ {
45
+ return Mage::getStoreConfig('general/Invitereferrals_campaign/apikey');
46
+ }
47
+
48
+ public function getBrandid()
49
+ {
50
+ return Mage::getStoreConfig('general/Invitereferrals_campaign/brandid');
51
+ }
52
+
53
+ public function getScript()
54
+ {
55
+ $request = Mage::app()->getRequest();
56
+ $module = $request->getModuleName();
57
+ $controller = $request->getControllerName();
58
+ $action = $request->getActionName();
59
+ $flag = false;
60
+ $scriptAppend2='';
61
+ $fname='';
62
+ $emial='';
63
+ $active=$this->isActive();
64
+
65
+ $enckey = $this->getKey();
66
+ $brandid = $this->getBrandid();
67
+
68
+ if($active==false)
69
+ return;
70
+
71
+
72
+ $currency = Mage::app()->getStore()->getCurrentCurrencyCode();
73
+ //$script = "<script>var apiKey = '".$this->getKey()."';</script>"."\n";
74
+ if (($module == 'checkout' && $controller == 'onestep' && $action == 'success')
75
+ || ($module == 'checkout' && $controller == 'onepage' && $action == 'success')
76
+ || ($module == 'securecheckout' && $controller == 'index' && $action == 'success')
77
+ || ($module == 'customdownloadable' && $controller == 'onepage' && $action == 'success')
78
+ || ($module == 'onepagecheckout' && $controller == 'index' && $action == 'success')
79
+ || ($module == 'onestepcheckout' && $controller == 'index' && $action == 'success'))
80
+ {
81
+ $order = new Mage_Sales_Model_Order();
82
+ $orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
83
+ $order->loadByIncrementId($orderId); // Load order details
84
+ $order_total = round($order->getGrandTotal(), 2); // Get grand total
85
+ $order_coupon = $order->getCouponCode(); // Get coupon used
86
+ $items = $order->getAllItems(); // Get items info
87
+ $cartInfo = array();
88
+ // Convert object to string
89
+ foreach($items as $item) {
90
+ $product = Mage::getModel('catalog/product')->load($item->getProductId());
91
+ $name = $item->getName();
92
+ $qty = $item->getQtyToInvoice();
93
+ $cartInfo[] = array('id' => $item->getProductId(), 'name' => $name, 'quantity' => $qty);
94
+ }
95
+ $cartInfoString = serialize($cartInfo);
96
+ $cartInfoString = addcslashes($cartInfoString, "'");
97
+ $order_name = $order->getCustomerName(); // Get customer's name
98
+ $order_email = $order->getCustomerEmail(); // Get customer's email id
99
+ $order_phone = $order->getShippingAddress()->getTelephone();
100
+
101
+ // Call invoiceInvitereferrals function
102
+ $scriptAppend2 = "<img style='position:absolute; visibility:hidden' src='https://www.ref-r.com/campaign/t1/settings?bid_e=".$enckey."&bid=".$brandid."&t=420&event=sale&email=".$order_email."&orderID=".$orderId."&purchaseValue=".$order_total."&fname=".$order_name."&mobile=".$order_phone."' />";
103
+
104
+
105
+ }
106
+
107
+
108
+
109
+ if (Mage::getSingleton('customer/session')->isLoggedIn()) {
110
+
111
+ // Load the customer's data
112
+ $customer = Mage::getSingleton('customer/session')->getCustomer();
113
+
114
+ $fname=$customer->getName(); // Full Name
115
+ // All other customer data
116
+ $emial=$customer->getEmail();
117
+
118
+ }
119
+
120
+ /*
121
+ $setUserEmail = $customerData['email'];
122
+ $fname = $customerData['firstname'];
123
+ $lname = $customerData['lastname'];
124
+ */
125
+
126
+ $script .= "<div id='invtrflfloatbtn'></div>
127
+ <script>
128
+ var invite_referrals = window.invite_referrals || {}; (function() {
129
+ invite_referrals.auth = { bid_e : '".$enckey."', bid : '".$brandid."', t : '420', email : '".$emial."', mobile : '".$phone."', userParams : {'fname': '".$fname."'}};
130
+ var script = document.createElement('script');script.async = true;
131
+ script.src = (document.location.protocol == 'https:' ? '//d11yp7khhhspcr.cloudfront.net' : '//cdn.invitereferrals.com') + '/js/invite-referrals-1.0.js';
132
+ var entry = document.getElementsByTagName('script')[0];entry.parentNode.insertBefore(script, entry); })();
133
+ </script>"."\n";
134
+
135
+
136
+ return $script.$scriptAppend2;
137
+ }
138
+ }
app/code/community/Invitereferrals/Campaign/etc/config.xml ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Invitereferrals_Campaign extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the MIT License
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/mit-license.php
12
+ *
13
+ * @category Invitereferrals
14
+ * @package Invitereferrals_Campaign
15
+ * @copyright Copyright (c) 2014
16
+ * @license http://opensource.org/licenses/mit-license.php MIT License
17
+ */
18
+ -->
19
+ <config>
20
+ <modules>
21
+ <Invitereferrals_Campaign>
22
+ <version>1.1.2</version>
23
+ </Invitereferrals_Campaign>
24
+ </modules>
25
+ <global>
26
+ <blocks>
27
+ <Invitereferrals_campaign>
28
+ <class>Invitereferrals_Campaign_Block</class>
29
+ </Invitereferrals_campaign>
30
+ </blocks>
31
+ <helpers>
32
+ <campaign>
33
+ <class>Invitereferrals_Campaign_Helper</class>
34
+ </campaign>
35
+ </helpers>
36
+ </global>
37
+ <frontend>
38
+ <layout>
39
+ <updates>
40
+ <Invitereferrals_campaign>
41
+ <file>Invitereferrals_campaign.xml</file>
42
+ </Invitereferrals_campaign>
43
+ </updates>
44
+ </layout>
45
+ </frontend>
46
+ <default>
47
+ <Invitereferrals_campaign>
48
+ <Invitereferrals>
49
+ <active>1</active>
50
+ <meta_title>InviteReferrals Customer Referral Program</meta_title>
51
+ </Invitereferrals>
52
+ </Invitereferrals_campaign>
53
+ </default>
54
+ </config>
app/code/community/Invitereferrals/Campaign/etc/system.xml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Invitereferrals_Campaign extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the MIT License
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/mit-license.php
12
+ *
13
+ * @category Invitereferrals
14
+ * @package Invitereferrals_Campaign
15
+ * @copyright Copyright (c) 2014
16
+ * @license http://opensource.org/licenses/mit-license.php MIT License
17
+ */
18
+ -->
19
+ <config>
20
+ <sections>
21
+ <general>
22
+ <groups>
23
+ <Invitereferrals_campaign translate="label" module="campaign">
24
+ <label>InviteReferrals Customer Referral Program</label>
25
+ <frontend_type>text</frontend_type>
26
+ <sort_order>0</sort_order>
27
+ <show_in_default>1</show_in_default>
28
+ <show_in_website>1</show_in_website>
29
+ <show_in_store>1</show_in_store>
30
+ <fields>
31
+ <active translate="label">
32
+ <label>Enable Campaign</label>
33
+ <frontend_type>select</frontend_type>
34
+ <source_model>adminhtml/system_config_source_yesno</source_model>
35
+ <sort_order>10</sort_order>
36
+ <show_in_default>1</show_in_default>
37
+ <show_in_website>1</show_in_website>
38
+ <show_in_store>1</show_in_store>
39
+ </active>
40
+ <brandid translate="label comment">
41
+ <label>Brand ID</label>
42
+ <frontend_type>text</frontend_type>
43
+ <sort_order>20</sort_order>
44
+ <show_in_default>1</show_in_default>
45
+ <show_in_website>1</show_in_website>
46
+ <show_in_store>1</show_in_store>
47
+ <comment><![CDATA[First create an account with <a href="http://www.invitereferrals.com/campaign/brand/register" target="_blank">This Link</a> to get brandid and Encrypted Key]]></comment>
48
+ </brandid>
49
+ <apikey translate="label comment">
50
+ <label>Encrypted Key</label>
51
+ <frontend_type>text</frontend_type>
52
+ <sort_order>20</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ <comment><![CDATA[Log into Invitereferrals account and get Brandid and Encrypted Key <a href="http://www.Invitereferrals.com" target="_blank">From Here</a>]]></comment>
57
+ </apikey>
58
+ </fields>
59
+ </Invitereferrals_campaign>
60
+ </groups>
61
+ </general>
62
+ </sections>
63
+ </config>
app/code/local/Invitereferrals/Loyalty/Block/Block.php DELETED
@@ -1,50 +0,0 @@
1
- <?php
2
- /**
3
- * Developed By Siddharth Gupta
4
- * @copyright Copyright (c) 2011-2012 tagNpin
5
- * @license http://www.tagNpin.com/LICENSE-M1.txt
6
- */
7
-
8
- class Invitereferrals_Loyalty_Block_Block extends Mage_Core_Block_Template
9
- {
10
- protected function _toHtml()
11
- {
12
- $enableWidget = Mage::getStoreConfig('general/loyalty/active');
13
- if(!empty($enableWidget)) {
14
- $bid = Mage::getStoreConfig('general/loyalty/brandid');
15
- $secKey = Mage::getStoreConfig('general/loyalty/secretkey');
16
-
17
- $customer = Mage::getSingleton('customer/session')->isLoggedIn();
18
- $customerData = array();
19
- if($customer) {
20
- $customerData = Mage::getSingleton('customer/session')->getCustomer()->getData();
21
- } else {
22
- $customerData['firstname'] = '';
23
- $customerData['lastname'] = '';
24
- $customerData['email'] = '';
25
- $customerData['dob'] = '';
26
- }
27
-
28
- $t = time();
29
- $setUserEmail = $customerData['email'];// the user email id
30
- /* Optional parameters if passing email id as well */
31
- $fname = $customerData['firstname'];//first name of customer
32
- $lname = $customerData['lastname'];//last name of customer
33
- $md5SecretKey = strtoupper(md5($secKey.'|'.$bid.'|'.$t.'|'.$setUserEmail));
34
-
35
- echo "<div id='invtrflfloatbtn'></div>
36
- <script>
37
- var invite_referrals = window.invite_referrals || {}; (function() {
38
- invite_referrals.auth = {
39
- bid_e : '".$md5SecretKey."',
40
- bid : '".$bid."', email : '".$setUserEmail."',
41
- t : '".$t."', userParams : {'fname' : '".$fname."',
42
- 'lname' : '".$lname."'} };
43
- var script = document.createElement('script');script.async = true;
44
- script.src = 'http://' + 'cdn.invitereferrals.com/js/invite-referrals-1.0.js';
45
- var entry = document.getElementsByTagName('script')[0];entry.parentNode.insertBefore(script, entry); })();
46
- </script>";
47
- //print '==========='.$brandID.'==========='.$title.'==========='.$xposition.'==========='.$yposition.'==========='.$secretKey.'===========';
48
- }
49
- }
50
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Invitereferrals/Loyalty/Block/Checkout.php DELETED
@@ -1,52 +0,0 @@
1
- <?php
2
- /**
3
- * Developed By Siddharth Gupta
4
- * @copyright Copyright (c) 2011-2012 tagNpin
5
- * @license http://www.tagNpin.com/LICENSE-M1.txt
6
- */
7
-
8
- class Invitereferrals_Loyalty_Block_Checkout extends Mage_Core_Block_Template
9
- {
10
- protected function _toHtml()
11
- {
12
- $enablePurchaseWidget = Mage::getStoreConfig('general/loyalty/pointsonpurchase');
13
- if(!empty($enablePurchaseWidget)) {
14
- $brandID = Mage::getStoreConfig('general/loyalty/brandid');
15
- $secretKey = Mage::getStoreConfig('general/loyalty/secretkey');
16
-
17
- $order = new Mage_Sales_Model_Order();
18
- $incrementId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
19
- $order->loadByIncrementId($incrementId);
20
-
21
- $email = $order->getCustomerEmail(); // set email id
22
- $purchaseValue = $order->getGrandTotal(); // set purchase value
23
- $points = ''; // optional if you want to give points irrespective of points logic on any activity
24
- $fname = $order->getCustomerFirstname();; // set first name
25
- $lname = $order->getCustomerLastname(); // set last name
26
-
27
- //$result = file_get_contents($apiUrl);
28
- $resultArray = (array)json_decode($result);/* json decode the response */
29
- //print_r($resultArray); die;
30
- if($resultArray['type'] == 'success'){
31
- $t = time();
32
- /* Optional parameters if passing email id as well */
33
- $md5SecretKey = strtoupper(md5($secretKey.'|'.$brandID.'|'.$t.'|'.$email));
34
-
35
- echo "<div id='invtrflfloatbtn'></div>
36
- <script>
37
- var invite_referrals = window.invite_referrals || {}; (function() {
38
- invite_referrals.auth = {
39
- bid_e : '".$md5SecretKey."',
40
- bid : '".$bid."', email : '".$setUserEmail."',
41
- t : '".$t."', purchaseValue : '".$purchaseValue."',
42
- orderID : '".$incrementId."', userParams : {'fname' : '".$fname."',
43
- 'lname' : '".$lname."'} };
44
- var script = document.createElement('script');script.async = true;
45
- script.src = 'http://' + 'cdn.invitereferrals.com/js/invite-referrals-1.0.js';
46
- var entry = document.getElementsByTagName('script')[0];entry.parentNode.insertBefore(script, entry); })();
47
- </script>";
48
- }
49
- }
50
- }
51
-
52
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Invitereferrals/Loyalty/Helper/Data.php DELETED
@@ -1,6 +0,0 @@
1
- <?php
2
-
3
- class Invitereferrals_Loyalty_Helper_Data extends Mage_Core_Helper_Abstract
4
- {
5
-
6
- }
 
 
 
 
 
 
app/code/local/Invitereferrals/Loyalty/etc/config.xml DELETED
@@ -1,54 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Invitereferrals_Loyalty>
5
- <version>4.0.0</version>
6
- </Invitereferrals_Loyalty>
7
- </modules>
8
- <frontend>
9
- <routers>
10
- <loyalty>
11
- <use>standard</use>
12
- <args>
13
- <module>Invitereferrals_Loyalty</module>
14
- <frontName>loyalty</frontName>
15
- </args>
16
- </loyalty>
17
- </routers>
18
- <layout>
19
- <updates>
20
- <loyalty>
21
- <file>loyalty.xml</file>
22
- </loyalty>
23
- </updates>
24
- </layout>
25
- </frontend>
26
- <global>
27
- <models>
28
- <loyalty>
29
- <class>Invitereferrals_Loyalty_Model</class>
30
- </loyalty>
31
- </models>
32
- <resources>
33
- </resources>
34
- <blocks>
35
- <loyalty>
36
- <class>Invitereferrals_Loyalty_Block</class>
37
- </loyalty>
38
- </blocks>
39
- <helpers>
40
- <loyalty>
41
- <class>Invitereferrals_Loyalty_Helper</class>
42
- </loyalty>
43
- </helpers>
44
- </global>
45
- <default>
46
- <general>
47
- <loyalty>
48
- <active>1</active>
49
- <title>Loyalty</title>
50
- </loyalty>
51
- </general>
52
- </default>
53
-
54
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/local/Invitereferrals/Loyalty/etc/system.xml DELETED
@@ -1,46 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <sections>
4
- <general>
5
- <groups>
6
- <loyalty translate="label" module="loyalty">
7
- <label>InviteReferrals Customer Referral Program Module</label>
8
- <frontend_type>text</frontend_type>
9
- <sort_order>0</sort_order>
10
- <show_in_default>1</show_in_default>
11
- <show_in_website>1</show_in_website>
12
- <show_in_store>1</show_in_store>
13
- <fields>
14
- <active translate="label">
15
- <label>Enable Widget</label>
16
- <frontend_type>select</frontend_type>
17
- <source_model>adminhtml/system_config_source_yesno</source_model>
18
- <sort_order>1</sort_order>
19
- <show_in_default>1</show_in_default>
20
- <show_in_website>1</show_in_website>
21
- <show_in_store>0</show_in_store>
22
- </active>
23
- <brandid translate="label">
24
- <label>brandid</label>
25
- <comment>You can find this in Invitereferrals.com admin panel -> Website Integration</comment>
26
- <frontend_type>text</frontend_type>
27
- <sort_order>2</sort_order>
28
- <show_in_default>1</show_in_default>
29
- <show_in_website>1</show_in_website>
30
- <show_in_store>0</show_in_store>
31
- </brandid>
32
- <secretkey translate="label">
33
- <label>Secret Key</label>
34
- <comment>You can find this in Invitereferrals.com admin panel -> Website Integration</comment>
35
- <frontend_type>text</frontend_type>
36
- <sort_order>3</sort_order>
37
- <show_in_default>1</show_in_default>
38
- <show_in_website>1</show_in_website>
39
- <show_in_store>0</show_in_store>
40
- </secretkey>
41
- </fields>
42
- </loyalty>
43
- </groups>
44
- </general>
45
- </sections>
46
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/layout/Invitereferrals_campaign.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Invitereferrals_Campaign extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the MIT License
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/mit-license.php
12
+ *
13
+ * @category Invitereferrals
14
+ * @package Invitereferrals_Campaign
15
+ * @copyright Copyright (c) 2014
16
+ * @license http://opensource.org/licenses/mit-license.php MIT License
17
+ */
18
+ -->
19
+ <layout>
20
+ <default>
21
+ <reference name="head">
22
+ <block name="Invitereferrals" type="core/template" template="Invitereferrals_campaign/campaign.phtml"></block>
23
+ </reference>
24
+ </default>
25
+ </layout>
app/design/frontend/base/default/template/Invitereferrals_campaign/campaign.phtml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <!-- Invitereferrals Campaign Code Begin -->
2
+
3
+ <?php
4
+ $_helper = Mage::helper('campaign');
5
+ if($_helper->isActive())
6
+ echo $_helper->getScript();
7
+ ?>
8
+ <!-- Invitereferrals Campaign Code End -->
app/design/frontend/default/default/layout/loyalty.xml DELETED
@@ -1,15 +0,0 @@
1
- <?xml version="1.0"?>
2
- <layout version="4.0.0">
3
- <default>
4
- <reference name="before_body_end" >
5
- <block type="loyalty/block" name="page.bottom1" >
6
- </block>
7
- </reference>
8
- </default>
9
- <checkout_onepage_success>
10
- <reference name="before_body_end" >
11
- <block type="loyalty/checkout" name="page.bottom" >
12
- </block>
13
- </reference>
14
- </checkout_onepage_success>
15
- </layout>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Invitereferrals_Campaign.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Invitereferrals_Campaign extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the MIT License
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/mit-license.php
12
+ *
13
+ * @category Invitereferrals
14
+ * @package Invitereferrals_Campaign
15
+ * @copyright Copyright (c) 2014
16
+ * @license http://opensource.org/licenses/mit-license.php MIT License
17
+ */
18
+ -->
19
+ <config>
20
+ <modules>
21
+ <Invitereferrals_Campaign>
22
+ <active>true</active>
23
+ <codePool>community</codePool>
24
+ <depends>
25
+ <Mage_Core />
26
+ </depends>
27
+ </Invitereferrals_Campaign>
28
+ </modules>
29
+ </config>
app/etc/modules/Invitereferrals_Loyalty.xml DELETED
@@ -1,9 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Invitereferrals_Loyalty>
5
- <active>true</active>
6
- <codePool>local</codePool>
7
- </Invitereferrals_Loyalty>
8
- </modules>
9
- </config>
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Invitereferrals_Loyalty</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/osl-3.0.php">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Design and launch Customer Referral Campaigns in minutes</summary>
10
- <description>Design and launch Customer Referral Campaigns in minutes. Let customers become brand ambassadors and refer friends via multiple channels like facebook, twitter, email etc</description>
11
- <notes>This is stable version on customer referral program</notes>
12
- <authors><author><name>Siddharth Gupta</name><user>auto-converted</user><email>siddharthguptansit@gmail.com</email></author></authors>
13
- <date>2013-09-29</date>
14
- <time>16:55:30</time>
15
- <contents><target name="magelocal"><dir name="Invitereferrals"><dir name="Loyalty"><dir name="Block"><file name="Block.php" hash="59b1dc92014f19ec976104bf81729a3e"/><file name="Checkout.php" hash="cc8a62193bbec371218eaadbdf8064d7"/></dir><dir name="Helper"><file name="Data.php" hash="6607c633bf044f380a164017d8f82d7d"/></dir><dir name="etc"><file name="config.xml" hash="9215266ebfe67d10ef1d740850b47a75"/><file name="system.xml" hash="4e248e9e82d796db746fed5eb5cd0d2f"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="loyalty.xml" hash="ecae4adc39cf8fc554205ed98e5f279c"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Invitereferrals_Loyalty.xml" hash="aab573200959b1a8a4a2e23b1b3db58b"/></dir></target></contents>
16
  <compatible/>
17
- <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Invitereferrals_Loyalty</name>
4
+ <version>2.0.0</version>
5
  <stability>stable</stability>
6
+ <license>GPLv3</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Refer-a-Friend Marketing Software</summary>
10
+ <description>Start Customer referral marketing campaign like Refer-a-friend, Tell-a-friend to reward your customer</description>
11
+ <notes>Stable version Invitereferral Extension with tracking</notes>
12
+ <authors><author><name>InviteReferrals</name><user>InviteReferrals</user><email>Support@tagnpin.com</email></author></authors>
13
+ <date>2015-05-22</date>
14
+ <time>13:48:07</time>
15
+ <contents><target name="magecommunity"><dir name="Invitereferrals"><dir name="Campaign"><dir name="Block"><file name="default.php" hash="cc92857a8ff31b730b06428e00a57f1b"/></dir><dir name="Helper"><file name="Data.php" hash="999d083960db92698f6edd6644fec327"/></dir><dir name="etc"><file name="config.xml" hash="7f8f40d09d63097f172a910662112965"/><file name="system.xml" hash="952adebe457482563c277c98d4c20ddb"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="Invitereferrals_campaign.xml" hash="2d13eba8b1f798084e8a3647f4c859b5"/></dir><dir name="template"><dir name="Invitereferrals_campaign"><file name="campaign.phtml" hash="92593ecb44009c5414c4add6730cb688"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Invitereferrals_Campaign.xml" hash="e14c64f6846ac1b7992b0856ecb3264c"/></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>