Refiral - Version 1.0.1

Version Notes

Stable version of Refiral extension

Download this release

Release Info

Developer Refiral
Extension Refiral
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/local/Refiral/Campaign/Block/Checkout.php CHANGED
@@ -16,17 +16,18 @@ class Refiral_Campaign_Block_Checkout extends Mage_Core_Block_Template
16
  $order = new Mage_Sales_Model_Order();
17
  $orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
18
  $order->loadByIncrementId($orderId); // Load order details
19
- $order_total = round($order->getGrandTotal()); // Get grand total
20
  $order_coupon = $order->getCouponCode(); // Get coupon used
21
  $items = $order->getAllItems(); // Get items info
22
- $cartInfo = '';
23
  // Convert object to string
24
  foreach($items as $item) {
25
  $product = Mage::getModel('catalog/product')->load($item->getProductId());
26
  $name = $item->getName();
27
  $qty = $item->getQtyToInvoice();
28
- $cartInfo .= $name.'-'.$qty. ', ';
29
  }
 
30
  $order_name = $order->getCustomerName(); // Get customer's name
31
  $order_email = $order->getCustomerEmail(); // Get customer's email id
32
 
16
  $order = new Mage_Sales_Model_Order();
17
  $orderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
18
  $order->loadByIncrementId($orderId); // Load order details
19
+ $order_total = round($order->getGrandTotal(), 2); // Get grand total
20
  $order_coupon = $order->getCouponCode(); // Get coupon used
21
  $items = $order->getAllItems(); // Get items info
22
+ $cartInfo = array();
23
  // Convert object to string
24
  foreach($items as $item) {
25
  $product = Mage::getModel('catalog/product')->load($item->getProductId());
26
  $name = $item->getName();
27
  $qty = $item->getQtyToInvoice();
28
+ $cartInfo[] = array('id' => $item->getProductId(), 'name' => $name, 'quantity' => $qty);
29
  }
30
+ $cartInfo = serialize($cartInfo);
31
  $order_name = $order->getCustomerName(); // Get customer's name
32
  $order_email = $order->getCustomerEmail(); // Get customer's email id
33
 
app/design/frontend/default/default/layout/{campaign.xml → refiral_campaign.xml} RENAMED
File without changes
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Refiral</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
- <license>GPLv2</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Launch your referral campaign virally.</summary>
10
  <description>Boost your sales up to 3X with our new hybrid marketing channel. Run your personalized, easy to integrate fully automated referral program.</description>
11
- <notes>Stable Version of Refiral Plugin</notes>
12
  <authors><author><name>Refiral</name><user>refiral</user><email>support@refiral.com</email></author></authors>
13
- <date>2014-03-17</date>
14
- <time>18:52:26</time>
15
- <contents><target name="magelocal"><dir name="Refiral"><dir name="Campaign"><dir name="Block"><file name="Campaign.php" hash="7d44a27e546f73d808b5e25b14ae8e0e"/><file name="Checkout.php" hash="cc52343f76647bf22ba325bd47fdd741"/></dir><dir name="Helper"><file name="Data.php" hash="fa55e018e847a099126b48b719c91bb5"/></dir><dir name="etc"><file name="config.xml" hash="d33e0e8e0b2cdb43ae26e8249b222102"/><file name="system.xml" hash="4ebb1f08d22f90878915eb5fc4dd7370"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="campaign.xml" hash="7a11d660175f9de93949f9e290a2d48f"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Refiral_Campaign.xml" hash="58b93da6e3a823bbdd7c6f8fb94551e9"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Refiral</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
+ <license uri="http://www.gnu.org/licenses/gpl-3.0-standalone.html">GPLv3</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Launch your referral campaign virally.</summary>
10
  <description>Boost your sales up to 3X with our new hybrid marketing channel. Run your personalized, easy to integrate fully automated referral program.</description>
11
+ <notes>Stable version of Refiral extension</notes>
12
  <authors><author><name>Refiral</name><user>refiral</user><email>support@refiral.com</email></author></authors>
13
+ <date>2014-05-17</date>
14
+ <time>03:45:00</time>
15
+ <contents><target name="magelocal"><dir name="Refiral"><dir name="Campaign"><dir name="Block"><file name="Campaign.php" hash="7d44a27e546f73d808b5e25b14ae8e0e"/><file name="Checkout.php" hash="e5f248ecc4d04d2cf781771ffde33ef9"/></dir><dir name="Helper"><file name="Data.php" hash="fa55e018e847a099126b48b719c91bb5"/></dir><dir name="etc"><file name="config.xml" hash="d33e0e8e0b2cdb43ae26e8249b222102"/><file name="system.xml" hash="4ebb1f08d22f90878915eb5fc4dd7370"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="refiral_campaign.xml" hash="7a11d660175f9de93949f9e290a2d48f"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Refiral_Campaign.xml" hash="58b93da6e3a823bbdd7c6f8fb94551e9"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>