Version Description
Download this release
Release Info
Developer | MailChimp |
Plugin | MailChimp for WooCommerce |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
changelog.md
CHANGED
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
1 |
** 0.1.22 **
|
2 |
* flag quantity as 1 if the product does not manage inventory
|
3 |
|
1 |
+
** 1.0.3 **
|
2 |
+
* fixed cart posts on dollar amounts greater than 1000
|
3 |
+
|
4 |
** 0.1.22 **
|
5 |
* flag quantity as 1 if the product does not manage inventory
|
6 |
|
includes/api/assets/class-mailchimp-cart.php
CHANGED
@@ -157,7 +157,7 @@ class MailChimp_WooCommerce_Cart
|
|
157 |
*/
|
158 |
public function setOrderTotal($total)
|
159 |
{
|
160 |
-
$this->order_total =
|
161 |
|
162 |
return $this;
|
163 |
}
|
@@ -176,7 +176,7 @@ class MailChimp_WooCommerce_Cart
|
|
176 |
*/
|
177 |
public function setTaxTotal($total)
|
178 |
{
|
179 |
-
$this->tax_total =
|
180 |
|
181 |
return $this;
|
182 |
}
|
@@ -218,8 +218,8 @@ class MailChimp_WooCommerce_Cart
|
|
218 |
'campaign_id' => (string) $this->getCampaignID(),
|
219 |
'checkout_url' => (string) $this->getCheckoutURL(),
|
220 |
'currency_code' => (string) $this->getCurrencyCode(),
|
221 |
-
'order_total' => $this->getOrderTotal(),
|
222 |
-
'tax_total' => $this->getTaxTotal() > 0 ? $this->getTaxTotal() : null,
|
223 |
'lines' => array_map(function($item) {
|
224 |
return $item->toArray();
|
225 |
}, $this->items()),
|
157 |
*/
|
158 |
public function setOrderTotal($total)
|
159 |
{
|
160 |
+
$this->order_total = $total;
|
161 |
|
162 |
return $this;
|
163 |
}
|
176 |
*/
|
177 |
public function setTaxTotal($total)
|
178 |
{
|
179 |
+
$this->tax_total = $total;
|
180 |
|
181 |
return $this;
|
182 |
}
|
218 |
'campaign_id' => (string) $this->getCampaignID(),
|
219 |
'checkout_url' => (string) $this->getCheckoutURL(),
|
220 |
'currency_code' => (string) $this->getCurrencyCode(),
|
221 |
+
'order_total' => floatval($this->getOrderTotal()),
|
222 |
+
'tax_total' => $this->getTaxTotal() > 0 ? floatval($this->getTaxTotal()) : null,
|
223 |
'lines' => array_map(function($item) {
|
224 |
return $item->toArray();
|
225 |
}, $this->items()),
|
mailchimp-woocommerce.php
CHANGED
@@ -9,14 +9,14 @@
|
|
9 |
* that starts the plugin.
|
10 |
*
|
11 |
* @link https://mailchimp.com
|
12 |
-
* @since 1.0.
|
13 |
* @package MailChimp_Woocommerce
|
14 |
*
|
15 |
* @wordpress-plugin
|
16 |
* Plugin Name: MailChimp for WooCommerce
|
17 |
* Plugin URI: https://mailchimp.com/connect-your-store/
|
18 |
* Description: MailChimp - WooCommerce plugin
|
19 |
-
* Version: 1.0.
|
20 |
* Author: MailChimp
|
21 |
* Author URI: https://mailchimp.com
|
22 |
* License: GPL-2.0+
|
@@ -37,7 +37,7 @@ function mailchimp_environment_variables() {
|
|
37 |
return (object) array(
|
38 |
'repo' => 'master',
|
39 |
'environment' => 'production',
|
40 |
-
'version' => '1.0.
|
41 |
'slack_token' => false,
|
42 |
'slack_channel' => 'mc-woo',
|
43 |
);
|
9 |
* that starts the plugin.
|
10 |
*
|
11 |
* @link https://mailchimp.com
|
12 |
+
* @since 1.0.0
|
13 |
* @package MailChimp_Woocommerce
|
14 |
*
|
15 |
* @wordpress-plugin
|
16 |
* Plugin Name: MailChimp for WooCommerce
|
17 |
* Plugin URI: https://mailchimp.com/connect-your-store/
|
18 |
* Description: MailChimp - WooCommerce plugin
|
19 |
+
* Version: 1.0.3
|
20 |
* Author: MailChimp
|
21 |
* Author URI: https://mailchimp.com
|
22 |
* License: GPL-2.0+
|
37 |
return (object) array(
|
38 |
'repo' => 'master',
|
39 |
'environment' => 'production',
|
40 |
+
'version' => '1.0.3',
|
41 |
'slack_token' => false,
|
42 |
'slack_channel' => 'mc-woo',
|
43 |
);
|