Version Notes
Version 2.0.1 Release Notes
- Added WebsiteID and StoreID data management
- Added Customer custom fields detection
- Multi store support
Download this release
Release Info
| Developer | 4Marketing.it |
| Extension | 4Dem_Integration_community |
| Version | 2.0.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.0 to 2.0.1
app/code/community/FourMarketing/FourDem/controllers/Adminhtml/FourDemController.php
CHANGED
|
@@ -42,6 +42,7 @@ class FourMarketing_FourDem_Adminhtml_FourDemController extends Mage_Adminhtml_C
|
|
| 42 |
}
|
| 43 |
}
|
| 44 |
public function synchronizeAction() {
|
|
|
|
| 45 |
$start = microtime ( true );
|
| 46 |
|
| 47 |
try {
|
|
@@ -54,7 +55,7 @@ class FourMarketing_FourDem_Adminhtml_FourDemController extends Mage_Adminhtml_C
|
|
| 54 |
$customers = $collection->getData ();
|
| 55 |
|
| 56 |
// echo '<pre>'; print_r($customers); echo '</pre>'; die();
|
| 57 |
-
|
| 58 |
$mapFields = Mage::getStoreConfig ( 'fourdem/fourdem_mapping' );
|
| 59 |
$customFields = array ();
|
| 60 |
$customFieldsUpdate = array ();
|
|
@@ -67,11 +68,31 @@ class FourMarketing_FourDem_Adminhtml_FourDemController extends Mage_Adminhtml_C
|
|
| 67 |
|
| 68 |
$customerSubscribers = Mage::helper ( 'fourdem' )->getAllSubscribers ( $customerListID )->Subscribers;
|
| 69 |
$newsletterSubscribers = Mage::helper ( 'fourdem' )->getAllSubscribers ( $newsletterListID )->Subscribers;
|
| 70 |
-
|
| 71 |
// Prima Fase: Importo i Clienti Magento nella "Lista Clienti" Di Destinazione..
|
| 72 |
foreach ( $customers as $customer ) {
|
|
|
|
| 73 |
$modelCustomer = Mage::getModel ( 'customer/customer' )->load ( $customer ['entity_id'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
$addressCustomerModel = Mage::getModel ( 'customer/address' )->load ( $modelCustomer->getDefaultBilling () );
|
|
|
|
| 75 |
|
| 76 |
foreach ( $mapFields as $label => $customFieldID ) {
|
| 77 |
if (! empty ( $customFieldID ) && $label != 'billing_address') {
|
| 42 |
}
|
| 43 |
}
|
| 44 |
public function synchronizeAction() {
|
| 45 |
+
|
| 46 |
$start = microtime ( true );
|
| 47 |
|
| 48 |
try {
|
| 55 |
$customers = $collection->getData ();
|
| 56 |
|
| 57 |
// echo '<pre>'; print_r($customers); echo '</pre>'; die();
|
| 58 |
+
/*
|
| 59 |
$mapFields = Mage::getStoreConfig ( 'fourdem/fourdem_mapping' );
|
| 60 |
$customFields = array ();
|
| 61 |
$customFieldsUpdate = array ();
|
| 68 |
|
| 69 |
$customerSubscribers = Mage::helper ( 'fourdem' )->getAllSubscribers ( $customerListID )->Subscribers;
|
| 70 |
$newsletterSubscribers = Mage::helper ( 'fourdem' )->getAllSubscribers ( $newsletterListID )->Subscribers;
|
| 71 |
+
*/
|
| 72 |
// Prima Fase: Importo i Clienti Magento nella "Lista Clienti" Di Destinazione..
|
| 73 |
foreach ( $customers as $customer ) {
|
| 74 |
+
|
| 75 |
$modelCustomer = Mage::getModel ( 'customer/customer' )->load ( $customer ['entity_id'] );
|
| 76 |
+
Mage::app ()->getStore ()->setId ( $modelCustomer->getData ( 'store_id' ) );
|
| 77 |
+
|
| 78 |
+
$mapFields = Mage::getStoreConfig ( 'fourdem/fourdem_mapping', $modelCustomer->getData ( 'store_id' ) );
|
| 79 |
+
$customFields = array ();
|
| 80 |
+
$customFieldsUpdate = array ();
|
| 81 |
+
|
| 82 |
+
$customerListID = Mage::getStoreConfig ( 'fourdem/system_access/customer_list', $modelCustomer->getData ( 'store_id' ) );
|
| 83 |
+
$newsletterListID = Mage::getStoreConfig ( 'fourdem/system_access/newsletter_list' , $modelCustomer->getData ( 'store_id' ));
|
| 84 |
+
|
| 85 |
+
$customerList = Mage::helper ( 'fourdem' )->getListInformation ( $customerListID )->List->Name;
|
| 86 |
+
$newsletterList = Mage::helper ( 'fourdem' )->getListInformation ( $newsletterListID )->List->Name;
|
| 87 |
+
|
| 88 |
+
$customerSubscribers = Mage::helper ( 'fourdem' )->getAllSubscribers ( $customerListID )->Subscribers;
|
| 89 |
+
$newsletterSubscribers = Mage::helper ( 'fourdem' )->getAllSubscribers ( $newsletterListID )->Subscribers;
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
|
| 94 |
$addressCustomerModel = Mage::getModel ( 'customer/address' )->load ( $modelCustomer->getDefaultBilling () );
|
| 95 |
+
Mage::app ()->getStore ()->setId (0);
|
| 96 |
|
| 97 |
foreach ( $mapFields as $label => $customFieldID ) {
|
| 98 |
if (! empty ( $customFieldID ) && $label != 'billing_address') {
|
package.xml
CHANGED
|
@@ -1,22 +1,22 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>4Dem_Integration_community</name>
|
| 4 |
-
<version>2.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.4dem.it/disclaimer">Open Software License (OSL)</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Integrate Magento Users and Newsletter Subscribers with 4Dem.it Email Marketing Platform</summary>
|
| 10 |
<description>This extension provide a one way synchronization of the magento users data with a list on the 4Dem.it email marketing platform. Every new user registered on Magento and subscribed to the newsletter is synced with a subscribers list in 4Dem.it. User data and subscription preferences are automatically synchronized and managed. This extension also provide a new newsletter only registration in magento frontend. Each visitor that subscribe using the provided newsletter form is put inside a 4Dem.it subscribers list.</description>
|
| 11 |
-
<notes>Version 2.0.
|
| 12 |

|
| 13 |
- Added WebsiteID and StoreID data management
|
| 14 |
- Added Customer custom fields detection
|
| 15 |
- Multi store support</notes>
|
| 16 |
<authors><author><name>4Marketing.it</name><user>techsupport4mkt</user><email>ugo.reynaldi@4marketing.it</email></author></authors>
|
| 17 |
<date>2014-05-27</date>
|
| 18 |
-
<time>
|
| 19 |
-
<contents><target name="magecommunity"><dir name="FourMarketing"><dir name="FourDem"><dir name="Block"><dir name="Adminhtml"><dir name="FourDem"><file name="Grid.php" hash="f2b21f458237e5dca1e650be724a0ac7"/></dir><file name="FourDem.php" hash="a658696b9bd4f913e222ca07950cdb65"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Mapfields.php" hash="4646e704ae708179a32c655ffa0e6d21"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="3945c088ef7a804d6e2994eb64f5de2e"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Source"><file name="Fields.php" hash="4085a2528df1ffc5fce044948fada18f"/></dir></dir></dir><file name="FourDem.php" hash="ae211c790a810d12d4bd5ecc706e39a9"/><dir name="Mysql4"><dir name="FourDem"><file name="Collection.php" hash="b58bdda2eaad377d02675facc141be6f"/></dir><file name="FourDem.php" hash="9ea9597ba4eefa25c057fae7b638799a"/></dir><file name="Observer.php" hash="cea5e9f11987df4ae0576e6b75611f63"/><dir name="System"><dir name="Config"><dir name="Source"><file name="List.php" hash="3821c86713534e1aa92cf455687655c0"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="FourDemController.php" hash="
|
| 20 |
<compatible/>
|
| 21 |
<dependencies><required><php><min>4.3.0</min><max>6.0.0</max></php></required></dependencies>
|
| 22 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>4Dem_Integration_community</name>
|
| 4 |
+
<version>2.0.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.4dem.it/disclaimer">Open Software License (OSL)</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Integrate Magento Users and Newsletter Subscribers with 4Dem.it Email Marketing Platform</summary>
|
| 10 |
<description>This extension provide a one way synchronization of the magento users data with a list on the 4Dem.it email marketing platform. Every new user registered on Magento and subscribed to the newsletter is synced with a subscribers list in 4Dem.it. User data and subscription preferences are automatically synchronized and managed. This extension also provide a new newsletter only registration in magento frontend. Each visitor that subscribe using the provided newsletter form is put inside a 4Dem.it subscribers list.</description>
|
| 11 |
+
<notes>Version 2.0.1 Release Notes
|
| 12 |

|
| 13 |
- Added WebsiteID and StoreID data management
|
| 14 |
- Added Customer custom fields detection
|
| 15 |
- Multi store support</notes>
|
| 16 |
<authors><author><name>4Marketing.it</name><user>techsupport4mkt</user><email>ugo.reynaldi@4marketing.it</email></author></authors>
|
| 17 |
<date>2014-05-27</date>
|
| 18 |
+
<time>12:31:34</time>
|
| 19 |
+
<contents><target name="magecommunity"><dir name="FourMarketing"><dir name="FourDem"><dir name="Block"><dir name="Adminhtml"><dir name="FourDem"><file name="Grid.php" hash="f2b21f458237e5dca1e650be724a0ac7"/></dir><file name="FourDem.php" hash="a658696b9bd4f913e222ca07950cdb65"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Mapfields.php" hash="4646e704ae708179a32c655ffa0e6d21"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="3945c088ef7a804d6e2994eb64f5de2e"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Source"><file name="Fields.php" hash="4085a2528df1ffc5fce044948fada18f"/></dir></dir></dir><file name="FourDem.php" hash="ae211c790a810d12d4bd5ecc706e39a9"/><dir name="Mysql4"><dir name="FourDem"><file name="Collection.php" hash="b58bdda2eaad377d02675facc141be6f"/></dir><file name="FourDem.php" hash="9ea9597ba4eefa25c057fae7b638799a"/></dir><file name="Observer.php" hash="cea5e9f11987df4ae0576e6b75611f63"/><dir name="System"><dir name="Config"><dir name="Source"><file name="List.php" hash="3821c86713534e1aa92cf455687655c0"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="FourDemController.php" hash="0e5a71412bc9815e250021b027fedf79"/></dir><file name="SubscribersController.php" hash="30ae20725949ff4d061738bab0d46b03"/></dir><dir name="etc"><file name="adminhtml.old" hash="6b93f7de0de2360e133df06e928be9b3"/><file name="config.xml" hash="2fb22202df75f8ac259879be5ac6fca6"/><file name="system.xml" hash="83f5f1c2c2028bd96d6fa5d02ab1b9fa"/></dir><dir name="sql"><dir name="fourdem_setup"><file name="mysql4-install-0.1.0.php" hash="afe4444211d01ce32161c22bf9f4676f"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="fourdem.xml" hash="4cdb947b36365d26b3e94b732cfbd35e"/></dir></dir></dir></dir><dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="fourdem"><dir name="form"><file name="register-customer.phtml" hash="cbe26dfdb19ac6444d96ed1dc389ec51"/></dir><file name="subscribe.phtml" hash="9eded5d0cbf2402175109408c8255296"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="fourdem.xml" hash="dbce3504aa0896b435ab2360bf84397f"/><dir name="fourmarketing"><file name="fourdem.xml" hash="0f9566d4d348347b2778191dce364d89"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="FourMarketing_FourDem.xml" hash="708a31c59e03b1c719335822113a6908"/></dir></target></contents>
|
| 20 |
<compatible/>
|
| 21 |
<dependencies><required><php><min>4.3.0</min><max>6.0.0</max></php></required></dependencies>
|
| 22 |
</package>
|
