Version Notes
Extension provides:
- Invite Integration
- Post Purchase Integration
- Advocate Dashboard Integration
- Floating Widget Popup Integration
Note: Extension version 1.2 works with Talkable Integration library version 2.2 or higher.
Download this release
Release Info
Developer | Talkable |
Extension | talkable |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
app/code/community/Talkable/SocialReferrals/Helper/Data.php
CHANGED
@@ -62,18 +62,27 @@ class Talkable_SocialReferrals_Helper_Data extends Mage_Core_Helper_Abstract
|
|
62 |
|
63 |
public function getPurchaseData($order)
|
64 |
{
|
|
|
65 |
$shippingAddress = $order->getShippingAddress();
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
$
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
$retval = array(
|
79 |
"customer" => array(
|
@@ -82,15 +91,13 @@ class Talkable_SocialReferrals_Helper_Data extends Mage_Core_Helper_Abstract
|
|
82 |
"last_name" => $order->getCustomerLastname(),
|
83 |
"customer_id" => $order->getCustomerId(),
|
84 |
),
|
85 |
-
"purchase" => array(
|
86 |
"order_number" => $order->getIncrementId(),
|
87 |
"order_date" => $order->getCreatedAt(),
|
88 |
"subtotal" => $this->_normalizeAmount($order->getSubtotal()),
|
89 |
"coupon_code" => $order->getCouponCode(),
|
90 |
"items" => array(),
|
91 |
-
|
92 |
-
"shipping_address" => implode(", ", $shippingFields),
|
93 |
-
),
|
94 |
);
|
95 |
|
96 |
foreach ($order->getAllVisibleItems() as $product) {
|
62 |
|
63 |
public function getPurchaseData($order)
|
64 |
{
|
65 |
+
$shippingInfo = array();
|
66 |
$shippingAddress = $order->getShippingAddress();
|
67 |
+
|
68 |
+
if ($shippingAddress) {
|
69 |
+
$countryName = Mage::getModel("directory/country")
|
70 |
+
->loadByCode($shippingAddress->getCountryId())
|
71 |
+
->getName();
|
72 |
+
|
73 |
+
$shippingFields = array_filter(array(
|
74 |
+
implode(", ", $shippingAddress->getStreet()),
|
75 |
+
$shippingAddress->getCity(),
|
76 |
+
$shippingAddress->getRegion(),
|
77 |
+
$shippingAddress->getPostcode(),
|
78 |
+
$countryName,
|
79 |
+
));
|
80 |
+
|
81 |
+
$shippingInfo = array(
|
82 |
+
"shipping_zip" => $shippingAddress->getPostcode(),
|
83 |
+
"shipping_address" => implode(", ", $shippingFields),
|
84 |
+
);
|
85 |
+
}
|
86 |
|
87 |
$retval = array(
|
88 |
"customer" => array(
|
91 |
"last_name" => $order->getCustomerLastname(),
|
92 |
"customer_id" => $order->getCustomerId(),
|
93 |
),
|
94 |
+
"purchase" => array_merge($shippingInfo, array(
|
95 |
"order_number" => $order->getIncrementId(),
|
96 |
"order_date" => $order->getCreatedAt(),
|
97 |
"subtotal" => $this->_normalizeAmount($order->getSubtotal()),
|
98 |
"coupon_code" => $order->getCouponCode(),
|
99 |
"items" => array(),
|
100 |
+
)),
|
|
|
|
|
101 |
);
|
102 |
|
103 |
foreach ($order->getAllVisibleItems() as $product) {
|
app/code/community/Talkable/SocialReferrals/etc/config.xml
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
<config>
|
13 |
<modules>
|
14 |
<Talkable_SocialReferrals>
|
15 |
-
<version>1.2.
|
16 |
</Talkable_SocialReferrals>
|
17 |
</modules>
|
18 |
|
12 |
<config>
|
13 |
<modules>
|
14 |
<Talkable_SocialReferrals>
|
15 |
+
<version>1.2.3</version>
|
16 |
</Talkable_SocialReferrals>
|
17 |
</modules>
|
18 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>talkable</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/mit-license.php">MIT License</license>
|
7 |
<channel>community</channel>
|
@@ -22,9 +22,9 @@ See more at Talkable.com</description>
|
|
22 |

|
23 |
Note: Extension version 1.2 works with Talkable Integration library version 2.2 or higher.</notes>
|
24 |
<authors><author><name>Talkable</name><user>talkable</user><email>sub@talkable.com</email></author></authors>
|
25 |
-
<date>2016-06-
|
26 |
-
<time>
|
27 |
-
<contents><target name="magecommunity"><dir name="Talkable"><dir name="SocialReferrals"><dir name="Block"><dir name="Multishipping"><file name="Purchase.php" hash="6eaab3557bdf97f40a77c7b6e040e483"/></dir><file name="Purchase.php" hash="5cd37269372b88cec4657bf85077c1a4"/></dir><dir name="Helper"><file name="Data.php" hash="
|
28 |
<compatible/>
|
29 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
30 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>talkable</name>
|
4 |
+
<version>1.2.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/mit-license.php">MIT License</license>
|
7 |
<channel>community</channel>
|
22 |

|
23 |
Note: Extension version 1.2 works with Talkable Integration library version 2.2 or higher.</notes>
|
24 |
<authors><author><name>Talkable</name><user>talkable</user><email>sub@talkable.com</email></author></authors>
|
25 |
+
<date>2016-06-09</date>
|
26 |
+
<time>20:09:50</time>
|
27 |
+
<contents><target name="magecommunity"><dir name="Talkable"><dir name="SocialReferrals"><dir name="Block"><dir name="Multishipping"><file name="Purchase.php" hash="6eaab3557bdf97f40a77c7b6e040e483"/></dir><file name="Purchase.php" hash="5cd37269372b88cec4657bf85077c1a4"/></dir><dir name="Helper"><file name="Data.php" hash="f503ec6764c4a2bfcca84f0e0398f922"/></dir><dir name="Model"><file name="Observer.php" hash="b9e5a92a24b018b14ccc64658326e92e"/></dir><dir name="controllers"><dir name="Customer"><file name="DashboardController.php" hash="3f715ff823d8b2709d3b6ee106685513"/></dir><file name="IndexController.php" hash="c08758b6a50bbc95ce09773818a6a7c4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="3f86a3e4bf980fa36aba8c0e33737e59"/><file name="config.xml" hash="359ec78072c91266c7d6156425e7c650"/><file name="system.xml" hash="e3ef9c8b74fff498a9dc42db1a86a21c"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="talkable"><file name="socialreferrals.xml" hash="c4731fc832bf3cdbe4fec6f6cd336549"/></dir></dir><dir name="template"><dir name="talkable"><dir name="socialreferrals"><file name="advocate_dashboard.phtml" hash="03011cd0bc0feaf6e1830f2137b60cf9"/><file name="floating_widget_popup.phtml" hash="a6609c2958561fd67c17b1654fcb8115"/><file name="head.phtml" hash="8e840da2a95bf27301eabc57ffd57250"/><file name="invite.phtml" hash="443f021936f8583885e08fe444eb4693"/><file name="post_purchase.phtml" hash="755faddb0bc9b0ccceac03569348d4d3"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Talkable_SocialReferrals.xml" hash="ed1152e3c169ac8e9d33219e5ec9fb47"/></dir></target></contents>
|
28 |
<compatible/>
|
29 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
30 |
</package>
|