Version Notes
Initial release + extension submission adjustments
Download this release
Release Info
Developer | RewardStream |
Extension | RewardStream_ReferAFriend |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/Rewardstream/Referafriend/Model/Observer.php +1 -1
- app/code/community/Rewardstream/Referafriend/controllers/IndexController.php +2 -2
- app/code/community/Rewardstream/Referafriend/etc/config.xml +1 -1
- app/code/community/Rewardstream/Referafriend/etc/system.xml +3 -3
- package.xml +8 -36
app/code/community/Rewardstream/Referafriend/Model/Observer.php
CHANGED
@@ -32,7 +32,7 @@ class Rewardstream_Referafriend_Model_Observer
|
|
32 |
$accountIdentifier = 'guestorder#' . $purchaseNumber;
|
33 |
}
|
34 |
else {
|
35 |
-
$accountIdentifier =
|
36 |
}
|
37 |
|
38 |
$items = $order->getAllVisibleItems();
|
32 |
$accountIdentifier = 'guestorder#' . $purchaseNumber;
|
33 |
}
|
34 |
else {
|
35 |
+
$accountIdentifier = $order->getCustomerId();
|
36 |
}
|
37 |
|
38 |
$items = $order->getAllVisibleItems();
|
app/code/community/Rewardstream/Referafriend/controllers/IndexController.php
CHANGED
@@ -31,7 +31,7 @@ class Rewardstream_Referafriend_IndexController extends Mage_Core_Controller_Fro
|
|
31 |
$region = $addressdata['region'];
|
32 |
$phone = $addressdata['phone'];
|
33 |
$country = $addressdata->getCountry();
|
34 |
-
$accountnumber =
|
35 |
$region_id = $addressdata['region_id'];
|
36 |
$regioncode = Mage::getModel( 'directory/region' )->load( $region_id );
|
37 |
$state_code = $regioncode->getCode(); //CA
|
@@ -120,7 +120,7 @@ class Rewardstream_Referafriend_IndexController extends Mage_Core_Controller_Fro
|
|
120 |
$phone = $addressdata['phone'];
|
121 |
$country = $addressdata->getCountry();
|
122 |
$state = $addressdata->getRegion();
|
123 |
-
$accountnumber =
|
124 |
$helper = Mage::helper( 'rewardstream' );
|
125 |
$apiurl = 'https://' . Mage::getStoreConfig( 'rewardstream_options/section_one/rewardstream_api_url' );
|
126 |
$apiKey = Mage::getStoreConfig( 'rewardstream_options/section_one/rewardstream_api_key' );
|
31 |
$region = $addressdata['region'];
|
32 |
$phone = $addressdata['phone'];
|
33 |
$country = $addressdata->getCountry();
|
34 |
+
$accountnumber = $id;
|
35 |
$region_id = $addressdata['region_id'];
|
36 |
$regioncode = Mage::getModel( 'directory/region' )->load( $region_id );
|
37 |
$state_code = $regioncode->getCode(); //CA
|
120 |
$phone = $addressdata['phone'];
|
121 |
$country = $addressdata->getCountry();
|
122 |
$state = $addressdata->getRegion();
|
123 |
+
$accountnumber = $id;
|
124 |
$helper = Mage::helper( 'rewardstream' );
|
125 |
$apiurl = 'https://' . Mage::getStoreConfig( 'rewardstream_options/section_one/rewardstream_api_url' );
|
126 |
$apiKey = Mage::getStoreConfig( 'rewardstream_options/section_one/rewardstream_api_key' );
|
app/code/community/Rewardstream/Referafriend/etc/config.xml
CHANGED
@@ -81,7 +81,7 @@
|
|
81 |
<config>
|
82 |
<children>
|
83 |
<rewardstream_options>
|
84 |
-
<title>Refer a Friend
|
85 |
</rewardstream_options>
|
86 |
</children>
|
87 |
</config>
|
81 |
<config>
|
82 |
<children>
|
83 |
<rewardstream_options>
|
84 |
+
<title>Refer a Friend Configuration</title>
|
85 |
</rewardstream_options>
|
86 |
</children>
|
87 |
</config>
|
app/code/community/Rewardstream/Referafriend/etc/system.xml
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
|
11 |
<sections>
|
12 |
<rewardstream_options translate="label" module="rewardstream">
|
13 |
-
<label>Refer a Friend
|
14 |
<tab>rewardstream</tab>
|
15 |
<frontend_type>text</frontend_type>
|
16 |
<sort_order>100</sort_order>
|
@@ -113,14 +113,14 @@
|
|
113 |
</rewardstream_refer_title>
|
114 |
|
115 |
<rewardstream_first_purchase>
|
116 |
-
<label>
|
117 |
<frontend_type>select</frontend_type>
|
118 |
<source_model>rewardstream/options</source_model>
|
119 |
<sort_order>3</sort_order>
|
120 |
<show_in_default>1</show_in_default>
|
121 |
<show_in_website>1</show_in_website>
|
122 |
<show_in_store>1</show_in_store>
|
123 |
-
<comment>If this
|
124 |
</rewardstream_first_purchase>
|
125 |
|
126 |
<rewardstream_portal_launcher>
|
10 |
|
11 |
<sections>
|
12 |
<rewardstream_options translate="label" module="rewardstream">
|
13 |
+
<label>Refer a Friend</label>
|
14 |
<tab>rewardstream</tab>
|
15 |
<frontend_type>text</frontend_type>
|
16 |
<sort_order>100</sort_order>
|
113 |
</rewardstream_refer_title>
|
114 |
|
115 |
<rewardstream_first_purchase>
|
116 |
+
<label>Require Purchase</label>
|
117 |
<frontend_type>select</frontend_type>
|
118 |
<source_model>rewardstream/options</source_model>
|
119 |
<sort_order>3</sort_order>
|
120 |
<show_in_default>1</show_in_default>
|
121 |
<show_in_website>1</show_in_website>
|
122 |
<show_in_store>1</show_in_store>
|
123 |
+
<comment>If this is enabled, customers must make an approved purchase before they can send a referral. We recommend enabling this parameter to reduce the potential for fraud in your referral program.</comment>
|
124 |
</rewardstream_first_purchase>
|
125 |
|
126 |
<rewardstream_portal_launcher>
|
package.xml
CHANGED
@@ -1,47 +1,19 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>RewardStream_ReferAFriend</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.rewardstream.com/magento/license">RewardStream Software License Agreement</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Get new customers by adding a fully automated word-of-mouth customer referral marketing solution to your store</summary>
|
10 |
-
<description
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
<br /><br />The cycle continues…
|
18 |
-

|
19 |
-
<br /><br /><h1>Getting Started</h1>
|
20 |
-
1. <a href="http://rewardstream.com/magento/setup/">Click here to get started and add an automated customer referral marketing program to your store</a> 
|
21 |
-
<br />2. Use our easy onboarding flow to set up your referral program details
|
22 |
-
<br />3. Work with RewardStream to launch your new referral program
|
23 |
-

|
24 |
-
<br /><br /><h1>Benefits</h1>
|
25 |
-
- Automatically install and customize pages in your Magento store
|
26 |
-
<br />- Embed a referral widget from your customer My Account page
|
27 |
-
<br />- Customers refer by email, social media, text message, or their personal referral link
|
28 |
-
<br />- Ensure only real customers can send referrals
|
29 |
-
<br />- Customize your referral landing pages and emails
|
30 |
-
<br />- Auto-generate referral coupon codes for new customers
|
31 |
-
<br />- Automatically reward your customers after successful referrals
|
32 |
-
<br />- Track all of your referrals through the referral life cycle
|
33 |
-
<br />- RewardStream is mobile-optimized so your customers can use your referral program on any device
|
34 |
-
<br />- Have insight on your participants, programs, and program trends
|
35 |
-
<br />- Access to a customer success team that offers best practices
|
36 |
-
<br /><br /><h1>Pricing</h1>
|
37 |
-
While this extension is free to use for Magento customers, there's a <a href="http://www.rewardstream.com/magento/pricing">monthly service fee</a> for the RewardStream referral marketing service. <strong>The extension requires an active and valid RewardStream account.</strong> 
|
38 |
-
<br /><br />
|
39 |
-
Visit <a href="http://www.rewardstream.com/magento/setup">www.rewardstream.com/magento/setup</a> to activate a RewardStream account and to get started with your referral program today!</description>
|
40 |
-
<notes>Initial release</notes>
|
41 |
-
<authors><author><name>RewardStream</name><user>RewardStream</user><email>magento@rewardstream.com</email></author></authors>
|
42 |
-
<date>2016-06-02</date>
|
43 |
-
<time>22:43:19</time>
|
44 |
-
<contents><target name="magecommunity"><dir name="Rewardstream"><dir name="Referafriend"><dir name="Block"><file name="Button.php" hash="2d412348e526ce8259cb767b5d795fd7"/><dir name="Customer"><dir name="Account"><file name="Navigation.php" hash="18a0c268359658bd7619ce7168159364"/></dir></dir><file name="Getstartedbutton.php" hash="7bfea148b21c68ea5228ff64f4d9991e"/><dir name="Sales"><dir name="Order"><file name="History.php" hash="880e07a11f94ceab5bd5e066a4cfa838"/><file name="Recent.php" hash="8c5c64cd158205a7a5bd053a3c7a3cf0"/></dir></dir><file name="Script.php" hash="13b06afd09fada61b761ea5ff4254ede"/></dir><dir name="Helper"><file name="Data.php" hash="6ac29ba1b21d0ca246df13a216da649e"/></dir><dir name="Model"><file name="Observer.php" hash="ded3a0d87c160f6c74a72595cd0fbe64"/><file name="Options.php" hash="1c4fa6b3e55cec4b096ebbaedacacb19"/><dir name="Resource"><dir name="Rewardstream"><file name="Collection.php" hash="aeeb1df3e3eb6bdeadce8aa29d98eea5"/></dir><file name="Rewardstream.php" hash="8fe9853ebbad43796b683582db550620"/></dir><file name="Rewardstream.php" hash="884edc2f2bd98d5794c9c2bd6b84b9a8"/></dir><dir name="controllers"><file name="CartController.php" hash="81d84e78a829054e0dfb41d80520ec77"/><file name="IndexController.php" hash="9f394aa4d36f759bc8d55cc921fce038"/></dir><dir name="data"><dir name="rewardstream_setup"><file name="data-install-0.1.0.php" hash="8d7f59f276d1fc2a3f7c8eeb0a699b85"/></dir></dir><dir name="etc"><file name="config.xml" hash="80d6bdb45ee63aa13c452f53c097adb6"/><file name="system.xml" hash="fbc3354e7d6ccf840bd9835136f7659b"/></dir><dir name="sql"><dir name="rewardstream_setup"><file name="install-0.1.0.php" hash="2ff36a8226dba730c568ce7bd5328b76"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="rewardstream.xml" hash="772e9d2a60f542d18a51f586fae881da"/></dir><dir name="template"><dir name="rewardstream"><file name="blockreward.phtml" hash="82e9d4d7d5592b40a9ada2ce3c8e1996"/><file name="rewardstream.phtml" hash="496e9c4e72bf3d0c882dff3f6dcfa38d"/><file name="script.phtml" hash="a37b6436daeeb70f73c8dd03930ce1f9"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="rewardstream.xml" hash="a9fdc2d9787725b6eca9e07d4399b1c4"/></dir><dir name="template"><dir name="rewardstream"><file name="blockreward.phtml" hash="82e9d4d7d5592b40a9ada2ce3c8e1996"/><file name="rewardstream.phtml" hash="496e9c4e72bf3d0c882dff3f6dcfa38d"/><file name="script.phtml" hash="a37b6436daeeb70f73c8dd03930ce1f9"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="RewardStream_ReferAFriend.xml" hash="d08d3aa024b2616e3a3792aeac0bc3cb"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="rewardstream"><dir name="css"><file name="rewardstream.css" hash="3cd1f371b9c72377a0e83013c04ddd87"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="rewardstream"><dir name="css"><file name="rewardstream.css" hash="3cd1f371b9c72377a0e83013c04ddd87"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="wysiwyg"><dir name="rewardstream"><file name="loading.gif" hash="dbd0f12f50cc2b56e2bce7daa36d00d0"/><file name="sharing-is-caring.jpg" hash="079db8066ed86203bd78c52b20d6163e"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="rewardstream"><file name="jquery-1.10.2.min.js" hash="841dc30647f93349b7d8ef61deebe411"/><file name="noconflict.js" hash="12f820da0f5ba19abfb4f5fc270bb62c"/></dir></dir></target></contents>
|
45 |
<compatible/>
|
46 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.0.0</min><max>1.9</max></package></required></dependencies>
|
47 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>RewardStream_ReferAFriend</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.rewardstream.com/magento/license">RewardStream Software License Agreement</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Get new customers by adding a fully automated word-of-mouth customer referral marketing solution to your store</summary>
|
10 |
+
<description>Get new sales using the Refer A Friend extension. Launch a fully automated referral marketing program on your store with little-to-no IT. Customers can refer their friends and family to bring you new business. Automatically reward your existing customers for successful referrals and incentivize your new customers with special referral offers. Refer a Friend is a free Magento Extension and requires a paid service account with RewardStream.
|
11 |
+
</description>
|
12 |
+
<notes>Initial release + extension submission adjustments</notes>
|
13 |
+
<authors><author><name>RewardStream</name><user>RewardStream</user><email>plugin-support@rewardstream.com</email></author></authors>
|
14 |
+
<date>2016-06-07</date>
|
15 |
+
<time>01:09:42</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="Rewardstream"><dir name="Referafriend"><dir name="Block"><file name="Button.php" hash="2d412348e526ce8259cb767b5d795fd7"/><dir name="Customer"><dir name="Account"><file name="Navigation.php" hash="18a0c268359658bd7619ce7168159364"/></dir></dir><file name="Getstartedbutton.php" hash="7bfea148b21c68ea5228ff64f4d9991e"/><dir name="Sales"><dir name="Order"><file name="History.php" hash="880e07a11f94ceab5bd5e066a4cfa838"/><file name="Recent.php" hash="8c5c64cd158205a7a5bd053a3c7a3cf0"/></dir></dir><file name="Script.php" hash="13b06afd09fada61b761ea5ff4254ede"/></dir><dir name="Helper"><file name="Data.php" hash="6ac29ba1b21d0ca246df13a216da649e"/></dir><dir name="Model"><file name="Observer.php" hash="8cfe14b1a89190e418074f98f81bee0e"/><file name="Options.php" hash="1c4fa6b3e55cec4b096ebbaedacacb19"/><dir name="Resource"><dir name="Rewardstream"><file name="Collection.php" hash="aeeb1df3e3eb6bdeadce8aa29d98eea5"/></dir><file name="Rewardstream.php" hash="8fe9853ebbad43796b683582db550620"/></dir><file name="Rewardstream.php" hash="884edc2f2bd98d5794c9c2bd6b84b9a8"/></dir><dir name="controllers"><file name="CartController.php" hash="81d84e78a829054e0dfb41d80520ec77"/><file name="IndexController.php" hash="bb3220ab51b62e85ed0b8ba9f54985d8"/></dir><dir name="data"><dir name="rewardstream_setup"><file name="data-install-0.1.0.php" hash="8d7f59f276d1fc2a3f7c8eeb0a699b85"/></dir></dir><dir name="etc"><file name="config.xml" hash="be0f3fefd66b1593a7d6c0d93194a1a7"/><file name="system.xml" hash="4c382d84ff7c7ce434465593057132ba"/></dir><dir name="sql"><dir name="rewardstream_setup"><file name="install-0.1.0.php" hash="2ff36a8226dba730c568ce7bd5328b76"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="rewardstream.xml" hash="772e9d2a60f542d18a51f586fae881da"/></dir><dir name="template"><dir name="rewardstream"><file name="blockreward.phtml" hash="82e9d4d7d5592b40a9ada2ce3c8e1996"/><file name="rewardstream.phtml" hash="496e9c4e72bf3d0c882dff3f6dcfa38d"/><file name="script.phtml" hash="a37b6436daeeb70f73c8dd03930ce1f9"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="rewardstream.xml" hash="a9fdc2d9787725b6eca9e07d4399b1c4"/></dir><dir name="template"><dir name="rewardstream"><file name="blockreward.phtml" hash="82e9d4d7d5592b40a9ada2ce3c8e1996"/><file name="rewardstream.phtml" hash="496e9c4e72bf3d0c882dff3f6dcfa38d"/><file name="script.phtml" hash="a37b6436daeeb70f73c8dd03930ce1f9"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="RewardStream_ReferAFriend.xml" hash="d08d3aa024b2616e3a3792aeac0bc3cb"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="rewardstream"><dir name="css"><file name="rewardstream.css" hash="3cd1f371b9c72377a0e83013c04ddd87"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="rewardstream"><dir name="css"><file name="rewardstream.css" hash="3cd1f371b9c72377a0e83013c04ddd87"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="wysiwyg"><dir name="rewardstream"><file name="loading.gif" hash="dbd0f12f50cc2b56e2bce7daa36d00d0"/><file name="sharing-is-caring.jpg" hash="079db8066ed86203bd78c52b20d6163e"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="rewardstream"><file name="jquery-1.10.2.min.js" hash="841dc30647f93349b7d8ef61deebe411"/><file name="noconflict.js" hash="12f820da0f5ba19abfb4f5fc270bb62c"/></dir></dir></target></contents>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.0.0</min><max>1.9</max></package></required></dependencies>
|
19 |
</package>
|