cartsguru - Version 1.1.2

Version Notes

- Improve get address support

Download this release

Release Info

Developer Maxime Pruvost
Extension cartsguru
Version 1.1.2
Comparing to
See all releases


Code changes from version 1.1.1 to 1.1.2

app/code/local/Cartsguru/Model/Webservice.php CHANGED
@@ -58,8 +58,9 @@ class Cartsguru_Model_Webservice
58
  $gender = $customer->getGender();
59
  }
60
 
61
- $phone = $order->getTelephone();
62
- $country = $order->getCountry();
 
63
  if (!$accountId = $order->getCustomerId()) {
64
  $accountId = $order->getCustomerEmail();
65
  }
@@ -165,7 +166,7 @@ class Cartsguru_Model_Webservice
165
  $baseUrl = Mage::getBaseUrl() . 'api/rest';
166
  $fields = array(
167
  'plugin' => 'magento',
168
- 'pluginVersion' => '1.1.1',
169
  'storeVersion' => Mage::getVersion()
170
  );
171
  $siteId = Mage::getStoreConfig('cartsguru/cartsguru_group/siteid', Mage::app()->getStore());
@@ -248,9 +249,10 @@ class Cartsguru_Model_Webservice
248
 
249
  $lastname = $quote->getCustomerLastname();
250
  $firstname = $quote->getCustomerFirstname();
251
-
252
- $phone = $quote->getTelephone();
253
- $country = $quote->getCountry();
 
254
 
255
  if (!$items) {
256
  return;
58
  $gender = $customer->getGender();
59
  }
60
 
61
+ $address = $order->getBillingAddress();
62
+ $phone = $address->getTelephone();
63
+ $country = $address->getCountryId();
64
  if (!$accountId = $order->getCustomerId()) {
65
  $accountId = $order->getCustomerEmail();
66
  }
166
  $baseUrl = Mage::getBaseUrl() . 'api/rest';
167
  $fields = array(
168
  'plugin' => 'magento',
169
+ 'pluginVersion' => '1.1.2',
170
  'storeVersion' => Mage::getVersion()
171
  );
172
  $siteId = Mage::getStoreConfig('cartsguru/cartsguru_group/siteid', Mage::app()->getStore());
249
 
250
  $lastname = $quote->getCustomerLastname();
251
  $firstname = $quote->getCustomerFirstname();
252
+
253
+ $address = $quote->getBillingAddress();
254
+ $phone = ($address)? $address->getTelephone() : $quote->getTelephone();
255
+ $country = ($address)? $address->getCountryId() : $quote->getCountryId();
256
 
257
  if (!$items) {
258
  return;
app/code/local/Cartsguru/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <!-- plugin name -->
4
  <modules>
5
  <Cartsguru>
6
- <version>1.1.1</version>
7
  </Cartsguru>
8
  </modules>
9
  <global>
3
  <!-- plugin name -->
4
  <modules>
5
  <Cartsguru>
6
+ <version>1.1.2</version>
7
  </Cartsguru>
8
  </modules>
9
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>cartsguru</name>
4
- <version>1.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
@@ -18,11 +18,11 @@ Effortlessly reduce the number of abandoned shopping carts by automating telepho
18
  &#xD;
19
  - SMS Callback &amp;amp; Push SMS&#xD;
20
  Send to your prospective customers having abandoned a cart, an SMS suggesting a free call back from your customer relations service, a straightforward SMS reminder or an SMS offering a personalized discount</description>
21
- <notes>- Fix exception when get address</notes>
22
  <authors><author><name>Maxime Pruvost</name><user>cgmaximepruvost</user><email>maxime@carts.guru</email></author></authors>
23
  <date>2016-04-01</date>
24
- <time>08:53:31</time>
25
- <contents><target name="magelocal"><dir name="Cartsguru"><dir name="Helper"><file name="Data.php" hash="f6590d08ba862a169ce43459ddb1193c"/></dir><dir name="Model"><file name="Observer.php" hash="9fddb0f5bac304236535c31f1bb251ed"/><dir name="Sales"><dir name="Order"><dir name="Api"><file name="V2.php" hash="a3b05d6f3931a1be1b2e92618095a123"/></dir></dir></dir><file name="Webservice.php" hash="ce03a29ad39fc91c64083fed91476aa3"/></dir><dir name="etc"><file name="config.xml" hash="8e44c5049353e7aadcccecb12ec05e3f"/><file name="system.xml" hash="cb0fbf86d2be47dbd719739ee79c4cba"/></dir><dir name="sql"><dir name="cartsguru_setup"><file name="install-1.0.0.php" hash="c46126ce8ce549d525fb25bddc5090b5"/></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="CartsGuru.csv" hash="b6d51893c33ddef1d53372d3a23b036c"/></dir><dir name="en_US"><file name="CartsGuru.csv" hash="921cb4133db47471456759443bb269f5"/></dir></target><target name="mageetc"><dir name="modules"><file name="Cartsguru.xml" hash="32bfa7d63b1a5b6b8f7977bf31af4e28"/></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>cartsguru</name>
4
+ <version>1.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
18
  &#xD;
19
  - SMS Callback &amp;amp; Push SMS&#xD;
20
  Send to your prospective customers having abandoned a cart, an SMS suggesting a free call back from your customer relations service, a straightforward SMS reminder or an SMS offering a personalized discount</description>
21
+ <notes>- Improve get address support </notes>
22
  <authors><author><name>Maxime Pruvost</name><user>cgmaximepruvost</user><email>maxime@carts.guru</email></author></authors>
23
  <date>2016-04-01</date>
24
+ <time>16:46:39</time>
25
+ <contents><target name="magelocal"><dir name="Cartsguru"><dir name="Helper"><file name="Data.php" hash="f6590d08ba862a169ce43459ddb1193c"/></dir><dir name="Model"><file name="Observer.php" hash="9fddb0f5bac304236535c31f1bb251ed"/><dir name="Sales"><dir name="Order"><dir name="Api"><file name="V2.php" hash="a3b05d6f3931a1be1b2e92618095a123"/></dir></dir></dir><file name="Webservice.php" hash="2c0a921b5639af87cccecdd59da74d7d"/></dir><dir name="etc"><file name="config.xml" hash="ced1932ad041c16e9c9d84531fd44476"/><file name="system.xml" hash="cb0fbf86d2be47dbd719739ee79c4cba"/></dir><dir name="sql"><dir name="cartsguru_setup"><file name="install-1.0.0.php" hash="c46126ce8ce549d525fb25bddc5090b5"/></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="CartsGuru.csv" hash="b6d51893c33ddef1d53372d3a23b036c"/></dir><dir name="en_US"><file name="CartsGuru.csv" hash="921cb4133db47471456759443bb269f5"/></dir></target><target name="mageetc"><dir name="modules"><file name="Cartsguru.xml" hash="32bfa7d63b1a5b6b8f7977bf31af4e28"/></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>