RewardStream_ReferAFriend - Version 1.0.1

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 CHANGED
@@ -32,7 +32,7 @@ class Rewardstream_Referafriend_Model_Observer
32
  $accountIdentifier = 'guestorder#' . $purchaseNumber;
33
  }
34
  else {
35
- $accountIdentifier = "1000-" . $order->getCustomerId();
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 = "1000-" . $id;
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 = "1000-" . $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' );
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 by RewardStream Configuration</title>
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 by RewardStream</label>
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>First Purchase Required?</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 parameter 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>
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.0</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>&lt;h1&gt;Overview&lt;/h1&gt;&#xD;
11
- 1. You ask John to refer his friends&#xD;
12
- &lt;br /&gt;2. John makes a referral to his friend Amy however they usually communicate&#xD;
13
- &lt;br /&gt;3. Amy claims the referral from John and receives an offer coupon code for her first purchase&#xD;
14
- &lt;br /&gt;4. Amy buys something from you using her referral coupon code&#xD;
15
- &lt;br /&gt;5. John gets automatically rewarded for introducing you to Amy&#xD;
16
- &lt;br /&gt;6. You now ask Amy to refer her friends&#xD;
17
- &lt;br /&gt;&lt;br /&gt;The cycle continues&#x2026;&#xD;
18
- &#xD;
19
- &lt;br /&gt;&lt;br /&gt;&lt;h1&gt;Getting Started&lt;/h1&gt;&#xD;
20
- 1. &lt;a href="http://rewardstream.com/magento/setup/"&gt;Click here to get started and add an automated customer referral marketing program to your store&lt;/a&gt; &#xD;
21
- &lt;br /&gt;2. Use our easy onboarding flow to set up your referral program details&#xD;
22
- &lt;br /&gt;3. Work with RewardStream to launch your new referral program&#xD;
23
- &#xD;
24
- &lt;br /&gt;&lt;br /&gt;&lt;h1&gt;Benefits&lt;/h1&gt;&#xD;
25
- - Automatically install and customize pages in your Magento store&#xD;
26
- &lt;br /&gt;- Embed a referral widget from your customer My Account page&#xD;
27
- &lt;br /&gt;- Customers refer by email, social media, text message, or their personal referral link&#xD;
28
- &lt;br /&gt;- Ensure only real customers can send referrals&#xD;
29
- &lt;br /&gt;- Customize your referral landing pages and emails&#xD;
30
- &lt;br /&gt;- Auto-generate referral coupon codes for new customers&#xD;
31
- &lt;br /&gt;- Automatically reward your customers after successful referrals&#xD;
32
- &lt;br /&gt;- Track all of your referrals through the referral life cycle&#xD;
33
- &lt;br /&gt;- RewardStream is mobile-optimized so your customers can use your referral program on any device&#xD;
34
- &lt;br /&gt;- Have insight on your participants, programs, and program trends&#xD;
35
- &lt;br /&gt;- Access to a customer success team that offers best practices&#xD;
36
- &lt;br /&gt;&lt;br /&gt;&lt;h1&gt;Pricing&lt;/h1&gt;&#xD;
37
- While this extension is free to use for Magento customers, there's a &lt;a href="http://www.rewardstream.com/magento/pricing"&gt;monthly service fee&lt;/a&gt; for the RewardStream referral marketing service. &lt;strong&gt;The extension requires an active and valid RewardStream account.&lt;/strong&gt; &#xD;
38
- &lt;br /&gt;&lt;br /&gt;&#xD;
39
- Visit &lt;a href="http://www.rewardstream.com/magento/setup"&gt;www.rewardstream.com/magento/setup&lt;/a&gt; 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.&#xD;
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>