Skip to content

Commit

Permalink
Merge pull request #1003 from mailchimp/pre-release/1.1.17
Browse files Browse the repository at this point in the history
Pre release/1.1.17
  • Loading branch information
Santiagoebizmarts authored Jul 22, 2019
2 parents 8e5fdee + 3fdd46f commit 98c1456
Show file tree
Hide file tree
Showing 154 changed files with 4,505 additions and 1,741 deletions.
26 changes: 25 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
# Changelog
## [1.1.16](https://github.com/mailchimp/mc-magento/releases/tag/1.1.16) - 2019-04-10
## [1.1.17](https://github.com/mailchimp/mc-magento/releases/tag/1.1.17) - 2019-07-04
**Fixed**
- Currency discrepancy in order confirmation email [\#982](https://github.com/mailchimp/mc-magento/issues/982)
- Fix subscription confirmation email when "Subscribe all customers to the newsletter" is enabled [\#978](https://github.com/mailchimp/mc-magento/issues/978)
- Errors saved in mailchimp_sync_ecommerce_data table may not set the sync_modified value to 0 [\#976](https://github.com/mailchimp/mc-magento/issues/976)
- Fix for infinite sync of modified orders containing only unsupported products [\#970](https://github.com/mailchimp/mc-magento/issues/970)
- Promo codes unexpectedly deleted from Mailchimp [\#967](https://github.com/mailchimp/mc-magento/issues/967)
- Unknown column 'at_special_from_date_default.value' in 'on clause' [\#964](https://github.com/mailchimp/mc-magento/issues/964)
- Remove error message when resend an item with error [\#963](https://github.com/mailchimp/mc-magento/issues/963)
- Customer and subscriber with same email sent to mailchimp with different id [\#952](https://github.com/mailchimp/mc-magento/issues/952)
- getLastRealOrder() doesn't exist [\#946](https://github.com/mailchimp/mc-magento/issues/946)

**Changed**
- Change "List" appearances to "Audience" [\#977](https://github.com/mailchimp/mc-magento/issues/977)
- Encrypt sensitive data [\#955](https://github.com/mailchimp/mc-magento/issues/955)
- Improve logging [\#947](https://github.com/mailchimp/mc-magento/pull/947)
- Add default merge var for province/state [\#937](https://github.com/mailchimp/mc-magento/issues/937)
- Add the options to resend all the ecommerce data or resend only the products, customers, orders or quotes [\#891](https://github.com/mailchimp/mc-magento/issues/891)
- Improve logging [\#886](https://github.com/mailchimp/mc-magento/issues/886)
- Add some js in the admin to avoid save before continue [\#649](https://github.com/mailchimp/mc-magento/issues/649)
- Get guest information from orders made with the same email address [\#545](https://github.com/mailchimp/mc-magento/issues/545)

## [1.1.16](https://github.com/mailchimp/mc-magento/releases/tag/1.1.16) - 2019-04-30
**Fixed**
- Error syncing order with disabled product [\#943](https://github.com/mailchimp/mc-magento/issues/943)
- Orders don't sync with Mailchimp when the order have a child disabled product [\#930](https://github.com/mailchimp/mc-magento/issues/930)
- Interest groups in checkout success with the option disabled [\#927](https://github.com/mailchimp/mc-magento/issues/927)
- Fixed grammar in success message after group subscription in order success page. [\#925](https://github.com/mailchimp/mc-magento/pull/925)
Expand Down Expand Up @@ -417,3 +440,4 @@
## [1.0.2](https://github.com/mailchimp/mc-magento/releases/tag/1.0.2) - 2016-06-14
**Changed**
- Change array declaration to pre php 5.4. [\#3](https://github.com/mailchimp/mc-magento/issues/3)

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ To enable MailChimp For Magento:
1. Go to System -> Configuration -> MAILCHIMP -> MailChimp Configuration -> Select scope on your Magento’s back end.<br />
2. Click the <b>Get API credentials</b> and place your MailChimp credentials, then an API Key will be shown.<br />
3. Paste the API Key on MailChimp For Magento’s configuration and click <b>Save Config</b><br />
4. When the page is loaded again select the desired list to sync with the Magento’s newsletter list. At this point your Magento subscribers will start being sent to the configured MailChimp list.<br />
5. If you have a paid MailChimp account and want to use MailChimp Automations go to "<b>Default Config</b>" scope and to the Ecommerce section and set it to Enabled. Now all your store information (Products, orders, customers and carts) will start being sent to MailChimp's associated list at your "<b>Default Config</b>" scope.
4. When the page is loaded again select the desired audience to sync with the Magento’s newsletter audience. At this point your Magento subscribers will start being sent to the configured MailChimp audience.<br />
5. If you have a paid MailChimp account and want to use MailChimp Automations go to "<b>Default Config</b>" scope and to the Ecommerce section and set it to Enabled. Now all your store information (Products, orders, customers and carts) will start being sent to MailChimp's associated audience at your "<b>Default Config</b>" scope.

More guides and tutorials about the Mailchimp integration with Magento can be found on the [tutorial page of Mailchimp](https://mailchimp.com/help/connect-or-disconnect-mailchimp-for-magento/).

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

class Ebizmarts_MailChimp_Block_Adminhtml_Ecommerce_Resendecommercedata extends Mage_Adminhtml_Block_Widget_Form_Container
{
protected $_mode = 'resendecommercedata';
public function __construct()
{
$this->_controller = 'adminhtml_ecommerce';
$this->_blockGroup = 'mailchimp';

parent::__construct();
$this->_removeButton("delete");
$this->_removeButton("back");
$this->_removeButton("reset");
}

public function getHeaderText()
{
return Mage::helper('mailchimp')->__('Data to send');
}

public function _prepareForm()
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?php

class Ebizmarts_MailChimp_Block_Adminhtml_Ecommerce_Resendecommercedata_Form extends Mage_Adminhtml_Block_Widget_Form
{
protected function _prepareForm()
{
$form = new Varien_Data_Form(array('id' => 'edit_form', 'action' => $this->getUrl('*/*/resendEcommerceData'), 'method' => 'post'));
$fieldset = $form->addFieldset('base_fieldset', array('legend' => Mage::helper('mailchimp')->__('Resend Data')));


$fieldset->addField(
'products',
'checkbox',
array(
'name' => 'filter[]',
'label' => "Products",
'id' => 'products',
'title' => "Products",
'value' => Ebizmarts_MailChimp_Model_Config::IS_PRODUCT,
'required' => false,
'checked' => '1',
)
);
$fieldset->addField(
'customers',
'checkbox',
array(
'name' => 'filter[]',
'label' => "Customers",
'id' => 'customers',
'title' => 'Customers',
'value' => Ebizmarts_MailChimp_Model_Config::IS_CUSTOMER,
'required' => false,
'checked' => '1',
)
);
$fieldset->addField(
'orders',
'checkbox',
array(
'name' => 'filter[]',
'label' => "Orders",
'id' => 'orders',
'title' => 'Orders',
'value' => Ebizmarts_MailChimp_Model_Config::IS_ORDER,
'required' => false,
'checked' => '1',
)
);
$fieldset->addField(
'carts',
'checkbox',
array(
'name' => 'filter[]',
'label' => "Carts",
'id' => 'carts',
'title' => 'Carts',
'value' => Ebizmarts_MailChimp_Model_Config::IS_QUOTE,
'required' => false,
'checked' => '1',
)
);
$fieldset->addField(
'promo',
'checkbox',
array(
'name' => 'filter[]',
'label' => "Promo Rules",
'id' => 'promo',
'title' => 'Promo Rules',
'value' => Ebizmarts_MailChimp_Model_Config::IS_PROMO_CODE. ', ' . Ebizmarts_MailChimp_Model_Config::IS_PROMO_RULE,
'required' => false,
'checked' => '1',
)
);

$form->setUseContainer(true);
$this->setForm($form);
return parent::_prepareForm();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ public function __construct()

parent::__construct();
$this->removeButton('add');

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -33,51 +33,58 @@ protected function _prepareCollection()
protected function _prepareColumns()
{
$this->addColumn(
'title', array(
'title',
array(
'header' => Mage::helper('mailchimp')->__('Title'),
'index' => 'title',
'sortable' => true
)
);
$this->addColumn(
'status', array(
'status',
array(
'header' => Mage::helper('mailchimp')->__('Status'),
'index' => 'status',
'width' => '100px',
'sortable' => true
)
);
$this->addColumn(
'regtype', array(
'regtype',
array(
'header' => Mage::helper('mailchimp')->__('Reg Type'),
'index' => 'regtype',
'width' => '100px',
'sortable' => true
)
);
$this->addColumn(
'store_id', array(
'store_id',
array(
'header' => Mage::helper('mailchimp')->__('Store Id'),
'index' => 'store_id',
'sortable' => false
)
);
$this->addColumn(
'errors', array(
'errors',
array(
'header' => Mage::helper('mailchimp')->__('Error'),
'index' => 'errors',
'sortable' => false
)
);
$this->addColumn(
'batch_id', array(
'batch_id',
array(
'header' => Mage::helper('mailchimp')->__('Batch ID'),
'index' => 'batch_id',
'sortable' => false
)
);
$this->addColumn(
'action_donwload', array(
'action_donwload',
array(
'header' => $this->helper('mailchimp')->__('Download Response'),
'width' => 15,
'sortable' => false,
Expand All @@ -94,15 +101,17 @@ protected function _prepareColumns()
)
);
$this->addColumn(
'original_id', array(
'original_id',
array(
'header' => Mage::helper('mailchimp')->__('Original'),
'index' => 'original_id',
'sortable' => false,
'renderer' => 'mailchimp/adminhtml_mailchimperrors_link'
)
);
$this->addColumn(
'created_at', array(
'created_at',
array(
'header' => Mage::helper('mailchimp')->__('Created At'),
'index' => 'created_at',
'sortable' => true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,33 @@ public function render(Varien_Object $row)
{
$id = $row->getData('original_id');
switch ($row->getData('regtype')) {
case Ebizmarts_MailChimp_Model_Config::IS_CUSTOMER:
$url = Mage::helper("adminhtml")->getUrl("adminhtml/customer/edit", array('id'=>$id));
$displayText = '<a href="' . $url . '" target="_blank">' . $this->__('Go to Customer view. Id:') . ' ' . $id . '</a>';
break;
case Ebizmarts_MailChimp_Model_Config::IS_ORDER:
$url = Mage::helper("adminhtml")->getUrl("adminhtml/sales_order/view", array('order_id'=>$id));
$displayText = '<a href="' . $url . '" target="_blank">' . $this->__('Go to Order view. Id:') . ' ' . $id . '</a>';
break;
case Ebizmarts_MailChimp_Model_Config::IS_PRODUCT:
$url = Mage::helper("adminhtml")->getUrl("adminhtml/catalog_product/edit", array('id'=>$id));
$displayText = '<a href="' . $url . '" target="_blank">' . $this->__('Go to Product view. Id:') . ' ' . $id . '</a>';
break;
case Ebizmarts_MailChimp_Model_Config::IS_QUOTE:
$displayText = $this->__('Quote view not available. Id:') . ' ' . $id;
break;
case Ebizmarts_MailChimp_Model_Config::IS_SUBSCRIBER:
$displayText = $this->__('Subscriber view not available. Id:') . ' ' . $id;
break;
case Ebizmarts_MailChimp_Model_Config::IS_PROMO_RULE:
$displayText = $this->__('Promo Rule view not available. Id:') . ' ' . $id;
break;
case Ebizmarts_MailChimp_Model_Config::IS_PROMO_CODE:
$displayText = $this->__('Promo Code view not available. Id:') . ' ' . $id;
break;
default:
$displayText = $this->__('Something went wrong when retrieving original item.');
break;
case Ebizmarts_MailChimp_Model_Config::IS_CUSTOMER:
$url = Mage::helper("adminhtml")->getUrl("adminhtml/customer/edit", array('id'=>$id));
$displayText = '<a href="' . $url . '" target="_blank">' . $this->__('Go to Customer view. Id:') . ' ' . $id . '</a>';
break;
case Ebizmarts_MailChimp_Model_Config::IS_ORDER:
$url = Mage::helper("adminhtml")->getUrl("adminhtml/sales_order/view", array('order_id'=>$id));
$displayText = '<a href="' . $url . '" target="_blank">' . $this->__('Go to Order view. Id:') . ' ' . $id . '</a>';
break;
case Ebizmarts_MailChimp_Model_Config::IS_PRODUCT:
$url = Mage::helper("adminhtml")->getUrl("adminhtml/catalog_product/edit", array('id'=>$id));
$displayText = '<a href="' . $url . '" target="_blank">' . $this->__('Go to Product view. Id:') . ' ' . $id . '</a>';
break;
case Ebizmarts_MailChimp_Model_Config::IS_QUOTE:
$displayText = $this->__('Quote view not available. Id:') . ' ' . $id;
break;
case Ebizmarts_MailChimp_Model_Config::IS_SUBSCRIBER:
$displayText = $this->__('Subscriber view not available. Id:') . ' ' . $id;
break;
case Ebizmarts_MailChimp_Model_Config::IS_PROMO_RULE:
$displayText = $this->__('Promo Rule view not available. Id:') . ' ' . $id;
break;
case Ebizmarts_MailChimp_Model_Config::IS_PROMO_CODE:
$displayText = $this->__('Promo Code view not available. Id:') . ' ' . $id;
break;
default:
$displayText = $this->__('Something went wrong when retrieving original item.');
break;
}

return $displayText;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ public function __construct()

parent::__construct();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ public function getHeaderText()
{
if (Mage::registry('current_mailchimpstore')->getId()) {
return $this->escapeHtml(Mage::registry('current_mailchimpstore')->getName());
}
else {
} else {
return Mage::helper('mailchimp')->__('New Store');
}
}
Expand Down Expand Up @@ -113,4 +112,3 @@ protected function makeHelper()
return Mage::helper('mailchimp');
}
}

Loading

0 comments on commit 98c1456

Please sign in to comment.