Version Notes
- Traffic source sendo enviado ao RD através da integração quando disponível
- Mensagem do formulário de contato sendo enviada ao RD
Download this release
Release Info
| Developer | Flow eCommerce |
| Extension | flowecommerce_resultadosdigitais |
| Version | 0.1.6 |
| Comparing to | |
| See all releases | |
Code changes from version 0.1.5.2 to 0.1.6
app/code/local/Flowecommerce/Resultadosdigitais/Model/Api.php
CHANGED
|
@@ -89,6 +89,10 @@ class Flowecommerce_Resultadosdigitais_Model_Api
|
|
| 89 |
if ($utmz = $tracker->getUtmZString()) {
|
| 90 |
$return['c_utmz'] = $utmz;
|
| 91 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
return $return;
|
| 94 |
}
|
|
@@ -104,4 +108,4 @@ class Flowecommerce_Resultadosdigitais_Model_Api
|
|
| 104 |
|
| 105 |
return $return;
|
| 106 |
}
|
| 107 |
-
}
|
| 89 |
if ($utmz = $tracker->getUtmZString()) {
|
| 90 |
$return['c_utmz'] = $utmz;
|
| 91 |
}
|
| 92 |
+
|
| 93 |
+
if (!empty($_COOKIE['__trf_src'])) {
|
| 94 |
+
$return['traffic_source'] = $_COOKIE['__trf_src'];
|
| 95 |
+
}
|
| 96 |
|
| 97 |
return $return;
|
| 98 |
}
|
| 108 |
|
| 109 |
return $return;
|
| 110 |
}
|
| 111 |
+
}
|
app/code/local/Flowecommerce/Resultadosdigitais/Model/Observer.php
CHANGED
|
@@ -8,14 +8,17 @@ class Flowecommerce_Resultadosdigitais_Model_Observer {
|
|
| 8 |
/**
|
| 9 |
* Tipos de lead
|
| 10 |
*/
|
| 11 |
-
const LEAD_CONTACTFORM
|
| 12 |
-
const LEAD_ORDERPLACE
|
| 13 |
-
const LEAD_ACCOUNTCREATE
|
| 14 |
-
const LEAD_NEWSLETTERSUBSCRIBE
|
| 15 |
-
const LEAD_NEWSLETTERUNSUBSCRIBE= 'newsletter-unsubscribe';
|
| 16 |
-
const LEAD_RECURRINGPAYMENT
|
| 17 |
-
const LEAD_RECURRINGPAYMENTPLANCHANGE
|
| 18 |
-
const
|
|
|
|
|
|
|
|
|
|
| 19 |
/**
|
| 20 |
* Cliente tipo pessoa juridica - Compatibilidade com módulo PJ Flow
|
| 21 |
*/
|
|
@@ -65,6 +68,7 @@ class Flowecommerce_Resultadosdigitais_Model_Observer {
|
|
| 65 |
$data->setEmail($post['email']);
|
| 66 |
$data->setNome($post['name']);
|
| 67 |
$data->setTelefone($post['telephone']);
|
|
|
|
| 68 |
|
| 69 |
$data->setData('store_name', $this->_getStoreDataObject()->getName());
|
| 70 |
|
|
@@ -249,6 +253,26 @@ class Flowecommerce_Resultadosdigitais_Model_Observer {
|
|
| 249 |
}
|
| 250 |
}
|
| 251 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
|
| 253 |
public function catchAddToCart(Varien_Event_Observer $observer)
|
| 254 |
{
|
| 8 |
/**
|
| 9 |
* Tipos de lead
|
| 10 |
*/
|
| 11 |
+
const LEAD_CONTACTFORM = 'contact-form';
|
| 12 |
+
const LEAD_ORDERPLACE = 'order-place';
|
| 13 |
+
const LEAD_ACCOUNTCREATE = 'account-create';
|
| 14 |
+
const LEAD_NEWSLETTERSUBSCRIBE = 'newsletter-subscribe';
|
| 15 |
+
const LEAD_NEWSLETTERUNSUBSCRIBE = 'newsletter-unsubscribe';
|
| 16 |
+
const LEAD_RECURRINGPAYMENT = 'recurring-payment-subscription-processed';
|
| 17 |
+
const LEAD_RECURRINGPAYMENTPLANCHANGE = 'recurring-payment-plan-change';
|
| 18 |
+
const LEAD_RECURRINGPAYMENTPLANCANCELED = 'recurring-payment-plan-canceled';
|
| 19 |
+
const LEAD_RECURRINGPAYMENTPLANREACTIVATED = 'recurring-payment-plan-reactivated';
|
| 20 |
+
const LEAD_PRODUCTADDEDTOCART = 'product-added-to-cart';
|
| 21 |
+
|
| 22 |
/**
|
| 23 |
* Cliente tipo pessoa juridica - Compatibilidade com módulo PJ Flow
|
| 24 |
*/
|
| 68 |
$data->setEmail($post['email']);
|
| 69 |
$data->setNome($post['name']);
|
| 70 |
$data->setTelefone($post['telephone']);
|
| 71 |
+
$data->setMensagem($post['comment']);
|
| 72 |
|
| 73 |
$data->setData('store_name', $this->_getStoreDataObject()->getName());
|
| 74 |
|
| 253 |
}
|
| 254 |
}
|
| 255 |
|
| 256 |
+
public function recurringPaymentPlanCanceled(Varien_Event_Observer $observer)
|
| 257 |
+
{
|
| 258 |
+
if ($this->_getHelper()->isEnabled()) {
|
| 259 |
+
$data = $this->_getRequestDataObject();
|
| 260 |
+
$data->setEmail($observer->getEmail());
|
| 261 |
+
$data->setCanceledPlan($observer->getSku());
|
| 262 |
+
$this->_getApi()->addLeadConversion(self::LEAD_RECURRINGPAYMENTPLANCANCELED, $data);
|
| 263 |
+
}
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
public function recurringPaymentPlanReactivated(Varien_Event_Observer $observer)
|
| 267 |
+
{
|
| 268 |
+
if ($this->_getHelper()->isEnabled()) {
|
| 269 |
+
$data = $this->_getRequestDataObject();
|
| 270 |
+
$data->setEmail($observer->getEmail());
|
| 271 |
+
$data->setCanceledPlan($observer->getSku());
|
| 272 |
+
$this->_getApi()->addLeadConversion(self::LEAD_RECURRINGPAYMENTPLANREACTIVATED, $data);
|
| 273 |
+
}
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
|
| 277 |
public function catchAddToCart(Varien_Event_Observer $observer)
|
| 278 |
{
|
app/code/local/Flowecommerce/Resultadosdigitais/etc/config.xml
CHANGED
|
@@ -56,6 +56,24 @@
|
|
| 56 |
</observers>
|
| 57 |
</recurringpayments_subscription_plan_changed>
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
<!-- criação de pedido -->
|
| 60 |
<sales_order_place_after>
|
| 61 |
<observers>
|
| 56 |
</observers>
|
| 57 |
</recurringpayments_subscription_plan_changed>
|
| 58 |
|
| 59 |
+
<recurringpayments_subscription_canceled>
|
| 60 |
+
<observers>
|
| 61 |
+
<flowecommerce_resultadosdigitais_recurring_payment_plan_canceled>
|
| 62 |
+
<class>resultadosdigitais/observer</class>
|
| 63 |
+
<method>recurringPaymentPlanCanceled</method>
|
| 64 |
+
</flowecommerce_resultadosdigitais_recurring_payment_plan_canceled>
|
| 65 |
+
</observers>
|
| 66 |
+
</recurringpayments_subscription_canceled>
|
| 67 |
+
|
| 68 |
+
<recurringpayments_subscription_reactivated>
|
| 69 |
+
<observers>
|
| 70 |
+
<flowecommerce_resultadosdigitais_recurring_payment_plan_reactivated>
|
| 71 |
+
<class>resultadosdigitais/observer</class>
|
| 72 |
+
<method>recurringPaymentPlanReactivated</method>
|
| 73 |
+
</flowecommerce_resultadosdigitais_recurring_payment_plan_reactivated>
|
| 74 |
+
</observers>
|
| 75 |
+
</recurringpayments_subscription_reactivated>
|
| 76 |
+
|
| 77 |
<!-- criação de pedido -->
|
| 78 |
<sales_order_place_after>
|
| 79 |
<observers>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>flowecommerce_resultadosdigitais</name>
|
| 4 |
-
<version>0.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -16,11 +16,12 @@ Uma nova conta de cliente é criada
|
|
| 16 |
Um novo pedido é criado
|
| 17 |
Um cliente assina a newsletter da loja virtual
|
| 18 |
Um produto é adicionado ao carrinho quando o cliente está logado</description>
|
| 19 |
-
<notes
|
|
|
|
| 20 |
<authors><author><name>Flow eCommerce</name><user>flowecommerce</user><email>contato@flowecommerce.com</email></author><author><name>Gabriel Queiroz Silva</name><user>gabrielqs</user><email>gabriel@flowecommerce.com</email></author></authors>
|
| 21 |
-
<date>2015-
|
| 22 |
-
<time>
|
| 23 |
-
<contents><target name="magelocal"><dir name="Flowecommerce"><dir name="Resultadosdigitais"><dir name="Helper"><file name="Data.php" hash="00d2ae49825e162eb99dd72a98895a61"/></dir><dir name="Model"><file name="Api.php" hash="
|
| 24 |
<compatible/>
|
| 25 |
-
<dependencies><required><php><min>5.3.0</min><max>5.6.
|
| 26 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>flowecommerce_resultadosdigitais</name>
|
| 4 |
+
<version>0.1.6</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 16 |
Um novo pedido é criado
|
| 17 |
Um cliente assina a newsletter da loja virtual
|
| 18 |
Um produto é adicionado ao carrinho quando o cliente está logado</description>
|
| 19 |
+
<notes>- Traffic source sendo enviado ao RD através da integração quando disponível
|
| 20 |
+
- Mensagem do formulário de contato sendo enviada ao RD</notes>
|
| 21 |
<authors><author><name>Flow eCommerce</name><user>flowecommerce</user><email>contato@flowecommerce.com</email></author><author><name>Gabriel Queiroz Silva</name><user>gabrielqs</user><email>gabriel@flowecommerce.com</email></author></authors>
|
| 22 |
+
<date>2015-12-15</date>
|
| 23 |
+
<time>22:37:49</time>
|
| 24 |
+
<contents><target name="magelocal"><dir name="Flowecommerce"><dir name="Resultadosdigitais"><dir name="Helper"><file name="Data.php" hash="00d2ae49825e162eb99dd72a98895a61"/></dir><dir name="Model"><file name="Api.php" hash="946d25e1281ef7acc3148cefebdd7114"/><dir name="Googleanalytics"><file name="Customvar.php" hash="d163ebb5bb590dd7553ed1356c033a2c"/><file name="Tracker.php" hash="be95e10bd1df9ca5319f5a50967f2eed"/><dir name="Utm"><file name="A.php" hash="7604206d87189c56f109231c4a95f00f"/><file name="B.php" hash="e710a66f3c061f4da69e9f468c2eaf5c"/><file name="C.php" hash="27c99ca82b05b11bcba01e88f9a3e5c6"/><file name="V.php" hash="9c77ced8175034ac42b89878e26844f5"/><file name="Z.php" hash="1bb0821f8752993b737a923fcbd4b314"/></dir></dir><file name="Observer.php" hash="c62b049ff7d369ae8bef20ace48dc189"/><file name="Requestdata.php" hash="d97634793fae544f18e5ffda617ed745"/></dir><dir name="etc"><file name="adminhtml.xml" hash="be9b06eed9df502e9759b5cd397f9fa2"/><file name="config.xml" hash="63210a633bd6b528d03482e23e493cf2"/><file name="system.xml" hash="da64ea97bc98fe6f42988df79c2ace1f"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Flowecommerce_Resultadosdigitais.xml" hash="5d476dea8a51bda77126fa637c5f29f2"/></dir></target></contents>
|
| 25 |
<compatible/>
|
| 26 |
+
<dependencies><required><php><min>5.3.0</min><max>5.6.16</max></php></required></dependencies>
|
| 27 |
</package>
|
