Version Notes
Modified session management/retention to reduce impact on high traffic sites.
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Listrak_Remarketing |
| Version | 1.1.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.1 to 1.1.2
- app/code/community/Listrak/Remarketing/Block/Modal.php +31 -31
- app/code/community/Listrak/Remarketing/Model/Click.php +32 -30
- app/code/community/Listrak/Remarketing/Model/Mysql4/Abandonedcart.php +60 -59
- app/code/community/Listrak/Remarketing/Model/Observer.php +14 -3
- app/code/community/Listrak/Remarketing/controllers/CartController.php +0 -68
- app/code/community/Listrak/Remarketing/controllers/EmailController.php +35 -55
- app/code/community/Listrak/Remarketing/etc/config.xml +181 -171
- app/code/community/Listrak/Remarketing/etc/system.xml +101 -93
- package.xml +5 -5
app/code/community/Listrak/Remarketing/Block/Modal.php
CHANGED
|
@@ -1,31 +1,31 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
// Listrak Remarketing Magento Extension Ver. 1.0.0
|
| 3 |
-
// © 2011 Listrak, Inc.
|
| 4 |
-
|
| 5 |
-
class Listrak_Remarketing_Block_Modal extends Mage_Core_Block_Text
|
| 6 |
-
{
|
| 7 |
-
|
| 8 |
-
public function getPageName()
|
| 9 |
-
{
|
| 10 |
-
return $this->_getData('page_name');
|
| 11 |
-
}
|
| 12 |
-
|
| 13 |
-
protected function _toHtml()
|
| 14 |
-
{
|
| 15 |
-
$merchantID = Mage::getStoreConfig('remarketing/modal/listrakMerchantID');
|
| 16 |
-
if(!Mage::getStoreConfig('remarketing/modal/enabled') || strlen(trim($merchantID)) < 12) {
|
| 17 |
-
return "";
|
| 18 |
-
}
|
| 19 |
-
|
| 20 |
-
return '<script type="text/javascript">' .
|
| 21 |
-
'var biJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");' .
|
| 22 |
-
'document.write(unescape("%3Cscript src=\'" + biJsHost + "
|
| 23 |
-
'</script>'.
|
| 24 |
-
'<script type="text/javascript">'.
|
| 25 |
-
'var _mlm = setInterval(function() { '.
|
| 26 |
-
'if(!window.jQuery) { return; }'.
|
| 27 |
-
'clearInterval(_mlm);'.
|
| 28 |
-
'jQuery(document).bind("ltkmodal.show", function() { if(typeof ecjsInit === "function") { ecjsInit(); } }); }, 100);'.
|
| 29 |
-
'</script>';
|
| 30 |
-
}
|
| 31 |
-
}
|
| 1 |
+
<?php
|
| 2 |
+
// Listrak Remarketing Magento Extension Ver. 1.0.0
|
| 3 |
+
// © 2011 Listrak, Inc.
|
| 4 |
+
|
| 5 |
+
class Listrak_Remarketing_Block_Modal extends Mage_Core_Block_Text
|
| 6 |
+
{
|
| 7 |
+
|
| 8 |
+
public function getPageName()
|
| 9 |
+
{
|
| 10 |
+
return $this->_getData('page_name');
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
protected function _toHtml()
|
| 14 |
+
{
|
| 15 |
+
$merchantID = Mage::getStoreConfig('remarketing/modal/listrakMerchantID');
|
| 16 |
+
if(!Mage::getStoreConfig('remarketing/modal/enabled') || strlen(Mage::getStoreConfig('remarketing/modal/scriptLocation')) < 1 || strlen(trim($merchantID)) < 12) {
|
| 17 |
+
return "";
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
return '<script type="text/javascript">' .
|
| 21 |
+
'var biJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");' .
|
| 22 |
+
'document.write(unescape("%3Cscript src=\'" + biJsHost + "'. Mage::getStoreConfig('remarketing/modal/scriptLocation') .'?m='. $merchantID .'&v=1\' type=\'text/javascript\'%3E%3C/script%3E"));' .
|
| 23 |
+
'</script>'.
|
| 24 |
+
'<script type="text/javascript">'.
|
| 25 |
+
'var _mlm = setInterval(function() { '.
|
| 26 |
+
'if(!window.jQuery) { return; }'.
|
| 27 |
+
'clearInterval(_mlm);'.
|
| 28 |
+
'jQuery(document).bind("ltkmodal.show", function() { if(typeof ecjsInit === "function") { ecjsInit(); } }); }, 100);'.
|
| 29 |
+
'</script>';
|
| 30 |
+
}
|
| 31 |
+
}
|
app/code/community/Listrak/Remarketing/Model/Click.php
CHANGED
|
@@ -1,31 +1,33 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
// Listrak Remarketing Magento Extension Ver. 1.0.0
|
| 3 |
-
// © 2011 Listrak, Inc.
|
| 4 |
-
|
| 5 |
-
class Listrak_Remarketing_Model_Click extends Mage_Core_Model_Abstract
|
| 6 |
-
{
|
| 7 |
-
public function _construct()
|
| 8 |
-
{
|
| 9 |
-
parent::_construct();
|
| 10 |
-
$this->_init('listrak/click');
|
| 11 |
-
}
|
| 12 |
-
|
| 13 |
-
public function checkForClick() {
|
| 14 |
-
foreach(Mage::app()->getRequest()->getParams() as $key => $value) {
|
| 15 |
-
if(stripos($key, 'trk_') !== false) {
|
| 16 |
-
$this->recordClick();
|
| 17 |
-
break;
|
| 18 |
-
}
|
| 19 |
-
}
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
private function recordClick() {
|
| 23 |
-
$this->setTokenUid(Mage::helper('remarketing')->gen_uuid());
|
| 24 |
-
$this->setClickDate(gmdate('Y-m-d H:i:s'));
|
| 25 |
-
$
|
| 26 |
-
$
|
| 27 |
-
$this->
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
| 31 |
}
|
| 1 |
+
<?php
|
| 2 |
+
// Listrak Remarketing Magento Extension Ver. 1.0.0
|
| 3 |
+
// © 2011 Listrak, Inc.
|
| 4 |
+
|
| 5 |
+
class Listrak_Remarketing_Model_Click extends Mage_Core_Model_Abstract
|
| 6 |
+
{
|
| 7 |
+
public function _construct()
|
| 8 |
+
{
|
| 9 |
+
parent::_construct();
|
| 10 |
+
$this->_init('listrak/click');
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
public function checkForClick() {
|
| 14 |
+
foreach(Mage::app()->getRequest()->getParams() as $key => $value) {
|
| 15 |
+
if(stripos($key, 'trk_') !== false) {
|
| 16 |
+
$this->recordClick();
|
| 17 |
+
break;
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
private function recordClick() {
|
| 23 |
+
$this->setTokenUid(Mage::helper('remarketing')->gen_uuid());
|
| 24 |
+
$this->setClickDate(gmdate('Y-m-d H:i:s'));
|
| 25 |
+
$session = Mage::getSingleton('listrak/session');
|
| 26 |
+
$session->init();
|
| 27 |
+
$this->setSessionId($session->getId());
|
| 28 |
+
$this->setQuerystring(http_build_query(Mage::app()->getRequest()->getParams()));
|
| 29 |
+
$this->save();
|
| 30 |
+
|
| 31 |
+
Mage::getModel('core/cookie')->set('ltktrk', $this->getTokenUid(), TRUE, NULL, NULL, NULL, TRUE);
|
| 32 |
+
}
|
| 33 |
}
|
app/code/community/Listrak/Remarketing/Model/Mysql4/Abandonedcart.php
CHANGED
|
@@ -1,59 +1,60 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
// Listrak Remarketing Magento Extension Ver. 1.0.0
|
| 3 |
-
// © 2011 Listrak, Inc.
|
| 4 |
-
|
| 5 |
-
class Listrak_Remarketing_Model_Mysql4_Abandonedcart extends Mage_Core_Model_Mysql4_Abstract
|
| 6 |
-
{
|
| 7 |
-
protected $_read;
|
| 8 |
-
|
| 9 |
-
protected $_write;
|
| 10 |
-
|
| 11 |
-
public function _construct()
|
| 12 |
-
{
|
| 13 |
-
$this->_init('listrak/session','id');
|
| 14 |
-
$this->_read = $this->_getReadAdapter();
|
| 15 |
-
$this->_write = $this->_getWriteAdapter();
|
| 16 |
-
}
|
| 17 |
-
|
| 18 |
-
protected function _afterLoad(Mage_Core_Model_Abstract $object) {
|
| 19 |
-
$object->setSession(Mage::getModel("listrak/session")->load($object->getId()));
|
| 20 |
-
|
| 21 |
-
$this->loadCart($object);
|
| 22 |
-
|
| 23 |
-
return parent::_afterLoad($object);
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
protected function loadCart(Mage_Core_Model_Abstract $object) {
|
| 27 |
-
$product_fields = array(
|
| 28 |
-
'entity_id'=>'', 'sku'=>'', 'name'=>'',
|
| 29 |
-
'
|
| 30 |
-
'
|
| 31 |
-
'
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
'
|
| 36 |
-
'
|
| 37 |
-
'
|
| 38 |
-
'
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
->
|
| 45 |
-
->where('q.
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
$
|
| 52 |
-
$qitem
|
| 53 |
-
$qitem["
|
| 54 |
-
$
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
}
|
|
|
| 1 |
+
<?php
|
| 2 |
+
// Listrak Remarketing Magento Extension Ver. 1.0.0
|
| 3 |
+
// © 2011 Listrak, Inc.
|
| 4 |
+
|
| 5 |
+
class Listrak_Remarketing_Model_Mysql4_Abandonedcart extends Mage_Core_Model_Mysql4_Abstract
|
| 6 |
+
{
|
| 7 |
+
protected $_read;
|
| 8 |
+
|
| 9 |
+
protected $_write;
|
| 10 |
+
|
| 11 |
+
public function _construct()
|
| 12 |
+
{
|
| 13 |
+
$this->_init('listrak/session','id');
|
| 14 |
+
$this->_read = $this->_getReadAdapter();
|
| 15 |
+
$this->_write = $this->_getWriteAdapter();
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
protected function _afterLoad(Mage_Core_Model_Abstract $object) {
|
| 19 |
+
$object->setSession(Mage::getModel("listrak/session")->load($object->getId()));
|
| 20 |
+
|
| 21 |
+
$this->loadCart($object);
|
| 22 |
+
|
| 23 |
+
return parent::_afterLoad($object);
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
protected function loadCart(Mage_Core_Model_Abstract $object) {
|
| 27 |
+
$product_fields = array(
|
| 28 |
+
'entity_id'=>'', 'sku'=>'', 'name'=>'',
|
| 29 |
+
'special_price' => '', 'special_from_date' => '', 'special_to_date' => '',
|
| 30 |
+
'cost'=>'', 'description'=>'',
|
| 31 |
+
'short_description'=>'', 'weight'=>'', 'url_key'=>'', 'url_path'=>'',
|
| 32 |
+
'image'=>'', 'small_image'=>'', 'thumbnail'=>'', 'qty'=>'');
|
| 33 |
+
|
| 34 |
+
$fields = array(
|
| 35 |
+
'item_id' => 'q.item_id',
|
| 36 |
+
'quote_id' => 'q.quote_id',
|
| 37 |
+
'product_id' => 'q.product_id',
|
| 38 |
+
'qty' => 'q.qty',
|
| 39 |
+
'price' => 'q.price');
|
| 40 |
+
|
| 41 |
+
$products = array();
|
| 42 |
+
|
| 43 |
+
$qiSelect = $this->_read->select()
|
| 44 |
+
->from(array('q' => $this->getTable('sales/quote_item')), $fields)
|
| 45 |
+
->where('q.quote_id = ?', $object->getQuoteId())
|
| 46 |
+
->where('q.product_type <> "configurable"');
|
| 47 |
+
|
| 48 |
+
$qiResult = $this->_read->fetchAll($qiSelect);
|
| 49 |
+
|
| 50 |
+
foreach($qiResult as $qi) {
|
| 51 |
+
$product = Mage::getModel('catalog/product')->load($qi['product_id']);
|
| 52 |
+
$qitem = array_intersect_key($product->toArray(),$product_fields);
|
| 53 |
+
$qitem["qty"] = $qi["qty"];
|
| 54 |
+
$qitem["price"] = $qi["price"];
|
| 55 |
+
$products[] = $qitem;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
$object->setProducts($products);
|
| 59 |
+
}
|
| 60 |
+
}
|
app/code/community/Listrak/Remarketing/Model/Observer.php
CHANGED
|
@@ -4,13 +4,22 @@
|
|
| 4 |
|
| 5 |
class Listrak_Remarketing_Model_Observer {
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
public function sessionInit($observer) {
|
| 8 |
try {
|
| 9 |
$session = Mage::getSingleton('listrak/session');
|
| 10 |
$session->init();
|
| 11 |
-
|
| 12 |
-
$click = Mage::getModel('listrak/click');
|
| 13 |
-
$click->checkForClick();
|
| 14 |
}
|
| 15 |
catch(Exception $ex) {
|
| 16 |
Mage::getModel("listrak/log")->addException($ex);
|
|
@@ -23,6 +32,8 @@ class Listrak_Remarketing_Model_Observer {
|
|
| 23 |
try {
|
| 24 |
$cs = Mage::getSingleton('core/session');
|
| 25 |
$cs->setIsListrakOrderMade(true);
|
|
|
|
|
|
|
| 26 |
}
|
| 27 |
catch(Exception $ex) {
|
| 28 |
Mage::getModel("listrak/log")->addException($ex);
|
| 4 |
|
| 5 |
class Listrak_Remarketing_Model_Observer {
|
| 6 |
|
| 7 |
+
public function checkForClick($observer) {
|
| 8 |
+
try {
|
| 9 |
+
$click = Mage::getModel('listrak/click');
|
| 10 |
+
$click->checkForClick();
|
| 11 |
+
}
|
| 12 |
+
catch(Exception $ex) {
|
| 13 |
+
Mage::getModel("listrak/log")->addException($ex);
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
return $this;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
public function sessionInit($observer) {
|
| 20 |
try {
|
| 21 |
$session = Mage::getSingleton('listrak/session');
|
| 22 |
$session->init();
|
|
|
|
|
|
|
|
|
|
| 23 |
}
|
| 24 |
catch(Exception $ex) {
|
| 25 |
Mage::getModel("listrak/log")->addException($ex);
|
| 32 |
try {
|
| 33 |
$cs = Mage::getSingleton('core/session');
|
| 34 |
$cs->setIsListrakOrderMade(true);
|
| 35 |
+
$session = Mage::getSingleton('listrak/session');
|
| 36 |
+
$session->init();
|
| 37 |
}
|
| 38 |
catch(Exception $ex) {
|
| 39 |
Mage::getModel("listrak/log")->addException($ex);
|
app/code/community/Listrak/Remarketing/controllers/CartController.php
DELETED
|
@@ -1,68 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
// Listrak Remarketing Magento Extension Ver. 1.0.0
|
| 3 |
-
// © 2011 Listrak, Inc.
|
| 4 |
-
|
| 5 |
-
class Listrak_Remarketing_CartController extends Mage_Core_Controller_Front_Action
|
| 6 |
-
{
|
| 7 |
-
public function indexAction() {
|
| 8 |
-
return $this;
|
| 9 |
-
}
|
| 10 |
-
|
| 11 |
-
public function reloadAction() {
|
| 12 |
-
$session = Mage::getSingleton('core/session');
|
| 13 |
-
$checkout = Mage::getSingleton('checkout/session');
|
| 14 |
-
$cust = Mage::getSingleton('customer/session');
|
| 15 |
-
$ltksid = $this->getRequest()->getParam('ltksid');
|
| 16 |
-
$ltksession = Mage::getModel("listrak/session");
|
| 17 |
-
$ltksidcookie = Mage::getModel('core/cookie')->get('ltksid');
|
| 18 |
-
$chkQuote = Mage::helper('checkout/cart')->getQuote();
|
| 19 |
-
|
| 20 |
-
try {
|
| 21 |
-
if(!$ltksid) {
|
| 22 |
-
return $this->redirect();
|
| 23 |
-
}
|
| 24 |
-
|
| 25 |
-
if(!empty($ltksidcookie) && $ltksidcookie == $ltksid && $chkQuote && $chkQuote->getId()) {
|
| 26 |
-
return $this->redirect();
|
| 27 |
-
}
|
| 28 |
-
|
| 29 |
-
$ltksession->setSessionId($ltksid);
|
| 30 |
-
$ltksession->getResource()->loadBySessionId($ltksession);
|
| 31 |
-
|
| 32 |
-
if(!$ltksession->getId() || !$ltksession->getQuoteId()) {
|
| 33 |
-
return $this->redirect();
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
if($cust && $cust->isLoggedIn()) {
|
| 37 |
-
if($cust->getId() === $ltksession->getCustomerId()) {
|
| 38 |
-
return $this->redirect();
|
| 39 |
-
}
|
| 40 |
-
}
|
| 41 |
-
|
| 42 |
-
$quote = Mage::getModel('sales/quote')->load($ltksession->getQuoteId());
|
| 43 |
-
|
| 44 |
-
if($quote->getId() && $quote->getIsActive()) {
|
| 45 |
-
$checkout->setQuoteId($ltksession->getQuoteId());
|
| 46 |
-
}
|
| 47 |
-
}
|
| 48 |
-
catch(Exception $ex) {
|
| 49 |
-
Mage::getModel("listrak/log")->addException($ex);
|
| 50 |
-
}
|
| 51 |
-
|
| 52 |
-
return $this->redirect();
|
| 53 |
-
}
|
| 54 |
-
|
| 55 |
-
private function redirect() {
|
| 56 |
-
$qs = $this->getRequest()->getParams();
|
| 57 |
-
unset($qs["redirectUrl"]);
|
| 58 |
-
unset($qs["ltksid"]);
|
| 59 |
-
$qs["_secure"] = Mage::app()->getStore()->isCurrentlySecure();
|
| 60 |
-
|
| 61 |
-
if(!$this->getRequest()->getParam('redirectUrl')) {
|
| 62 |
-
return $this->_redirect('checkout/cart/', $qs);
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
return $this->_redirect($this->getRequest()->getParam('redirectUrl'), $qs);
|
| 66 |
-
}
|
| 67 |
-
}
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Listrak/Remarketing/controllers/EmailController.php
CHANGED
|
@@ -1,55 +1,35 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
// Listrak Remarketing Magento Extension Ver. 1.0.0
|
| 3 |
-
// © 2011 Listrak, Inc.
|
| 4 |
-
|
| 5 |
-
class Listrak_Remarketing_EmailController extends Mage_Core_Controller_Front_Action
|
| 6 |
-
{
|
| 7 |
-
public function indexAction() {
|
| 8 |
-
try {
|
| 9 |
-
$email = $this->getRequest()->getParam('email');
|
| 10 |
-
|
| 11 |
-
if(!Zend_Validate::is($email, 'EmailAddress')) {
|
| 12 |
-
die("");
|
| 13 |
-
}
|
| 14 |
-
|
| 15 |
-
$emailcaptureId = $this->getRequest()->getParam('cid');
|
| 16 |
-
$session = Mage::getSingleton('listrak/session')->init();
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
$
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
die("");
|
| 37 |
-
}
|
| 38 |
-
}
|
| 39 |
-
|
| 40 |
-
public function fsidAction() {
|
| 41 |
-
$email = $this->getRequest()->getParam('email');
|
| 42 |
-
|
| 43 |
-
if(!Zend_Validate::is($email, 'EmailAddress')) {
|
| 44 |
-
die("invalid");
|
| 45 |
-
}
|
| 46 |
-
|
| 47 |
-
$emailcaptureId = $this->getRequest()->getParam('cid');
|
| 48 |
-
$session = Mage::getModel('listrak/session');
|
| 49 |
-
$session->setSessionId($this->getRequest()->getParam('ltksid'));
|
| 50 |
-
$session->getResource()->loadBySessionId($session);
|
| 51 |
-
$session->getResource()->insertEmail($session, $email, $emailcaptureId);
|
| 52 |
-
|
| 53 |
-
die(json_encode(array('status' => true)));
|
| 54 |
-
}
|
| 55 |
-
}
|
| 1 |
+
<?php
|
| 2 |
+
// Listrak Remarketing Magento Extension Ver. 1.0.0
|
| 3 |
+
// © 2011 Listrak, Inc.
|
| 4 |
+
|
| 5 |
+
class Listrak_Remarketing_EmailController extends Mage_Core_Controller_Front_Action
|
| 6 |
+
{
|
| 7 |
+
public function indexAction() {
|
| 8 |
+
try {
|
| 9 |
+
$email = $this->getRequest()->getParam('email');
|
| 10 |
+
|
| 11 |
+
if(!Zend_Validate::is($email, 'EmailAddress')) {
|
| 12 |
+
die("");
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
$emailcaptureId = $this->getRequest()->getParam('cid');
|
| 16 |
+
$session = Mage::getSingleton('listrak/session')->init();
|
| 17 |
+
|
| 18 |
+
$emailcapture = Mage::getModel('listrak/emailcapture')->load($emailcaptureId);
|
| 19 |
+
|
| 20 |
+
if($emailcapture->getId()) {
|
| 21 |
+
$session->getResource()->insertEmail($session, $email, $emailcaptureId);
|
| 22 |
+
|
| 23 |
+
$result = array('status' => true);
|
| 24 |
+
} else {
|
| 25 |
+
$result = array('status' => false);
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
header('Content-type: application/json');
|
| 29 |
+
die(json_encode($result));
|
| 30 |
+
} catch (Exception $e) {
|
| 31 |
+
Mage::getModel("listrak/log")->addException($e);
|
| 32 |
+
die("");
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Listrak/Remarketing/etc/config.xml
CHANGED
|
@@ -1,172 +1,182 @@
|
|
| 1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
-
<!--
|
| 3 |
-
/**
|
| 4 |
-
* Listrak Remarketing Magento Extension Ver. 1.0.0 - © 2011 Listrak, Inc.
|
| 5 |
-
*/
|
| 6 |
-
-->
|
| 7 |
-
<config>
|
| 8 |
-
<modules>
|
| 9 |
-
<Listrak_Remarketing>
|
| 10 |
-
<version>1.1.
|
| 11 |
-
</Listrak_Remarketing>
|
| 12 |
-
</modules>
|
| 13 |
-
<frontend>
|
| 14 |
-
<routers>
|
| 15 |
-
<listrak_remarketing>
|
| 16 |
-
<use>standard</use>
|
| 17 |
-
<args>
|
| 18 |
-
<module>Listrak_Remarketing</module>
|
| 19 |
-
<frontName>remarketing</frontName>
|
| 20 |
-
</args>
|
| 21 |
-
</listrak_remarketing>
|
| 22 |
-
</routers>
|
| 23 |
-
<layout>
|
| 24 |
-
<updates>
|
| 25 |
-
<remarketing>
|
| 26 |
-
<file>remarketing.xml</file>
|
| 27 |
-
</remarketing>
|
| 28 |
-
</updates>
|
| 29 |
-
</layout>
|
| 30 |
-
<events>
|
| 31 |
-
<controller_action_layout_render_before>
|
| 32 |
-
<observers>
|
| 33 |
-
<listrak_remarketing_observer>
|
| 34 |
-
<type>singleton</type>
|
| 35 |
-
<class>Listrak_Remarketing_Model_Observer</class>
|
| 36 |
-
<method>
|
| 37 |
-
</listrak_remarketing_observer>
|
| 38 |
-
</observers>
|
| 39 |
-
</controller_action_layout_render_before>
|
| 40 |
-
<
|
| 41 |
-
<observers>
|
| 42 |
-
<listrak_remarketing_observer>
|
| 43 |
-
<type>singleton</type>
|
| 44 |
-
<class>Listrak_Remarketing_Model_Observer</class>
|
| 45 |
-
<method>
|
| 46 |
-
</listrak_remarketing_observer>
|
| 47 |
-
</observers>
|
| 48 |
-
</
|
| 49 |
-
<
|
| 50 |
-
<observers>
|
| 51 |
-
<listrak_remarketing_observer>
|
| 52 |
-
<type>singleton</type>
|
| 53 |
-
<class>Listrak_Remarketing_Model_Observer</class>
|
| 54 |
-
<method>
|
| 55 |
-
</listrak_remarketing_observer>
|
| 56 |
-
</observers>
|
| 57 |
-
</
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
<
|
| 79 |
-
|
| 80 |
-
</
|
| 81 |
-
<
|
| 82 |
-
|
| 83 |
-
</
|
| 84 |
-
<
|
| 85 |
-
<table>
|
| 86 |
-
</
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
</config>
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Listrak Remarketing Magento Extension Ver. 1.0.0 - © 2011 Listrak, Inc.
|
| 5 |
+
*/
|
| 6 |
+
-->
|
| 7 |
+
<config>
|
| 8 |
+
<modules>
|
| 9 |
+
<Listrak_Remarketing>
|
| 10 |
+
<version>1.1.2</version>
|
| 11 |
+
</Listrak_Remarketing>
|
| 12 |
+
</modules>
|
| 13 |
+
<frontend>
|
| 14 |
+
<routers>
|
| 15 |
+
<listrak_remarketing>
|
| 16 |
+
<use>standard</use>
|
| 17 |
+
<args>
|
| 18 |
+
<module>Listrak_Remarketing</module>
|
| 19 |
+
<frontName>remarketing</frontName>
|
| 20 |
+
</args>
|
| 21 |
+
</listrak_remarketing>
|
| 22 |
+
</routers>
|
| 23 |
+
<layout>
|
| 24 |
+
<updates>
|
| 25 |
+
<remarketing>
|
| 26 |
+
<file>remarketing.xml</file>
|
| 27 |
+
</remarketing>
|
| 28 |
+
</updates>
|
| 29 |
+
</layout>
|
| 30 |
+
<events>
|
| 31 |
+
<controller_action_layout_render_before>
|
| 32 |
+
<observers>
|
| 33 |
+
<listrak_remarketing_observer>
|
| 34 |
+
<type>singleton</type>
|
| 35 |
+
<class>Listrak_Remarketing_Model_Observer</class>
|
| 36 |
+
<method>checkForClick</method>
|
| 37 |
+
</listrak_remarketing_observer>
|
| 38 |
+
</observers>
|
| 39 |
+
</controller_action_layout_render_before>
|
| 40 |
+
<checkout_cart_add_product_complete>
|
| 41 |
+
<observers>
|
| 42 |
+
<listrak_remarketing_observer>
|
| 43 |
+
<type>singleton</type>
|
| 44 |
+
<class>Listrak_Remarketing_Model_Observer</class>
|
| 45 |
+
<method>sessionInit</method>
|
| 46 |
+
</listrak_remarketing_observer>
|
| 47 |
+
</observers>
|
| 48 |
+
</checkout_cart_add_product_complete>
|
| 49 |
+
<sales_order_place_after>
|
| 50 |
+
<observers>
|
| 51 |
+
<listrak_remarketing_observer>
|
| 52 |
+
<type>singleton</type>
|
| 53 |
+
<class>Listrak_Remarketing_Model_Observer</class>
|
| 54 |
+
<method>orderPlaced</method>
|
| 55 |
+
</listrak_remarketing_observer>
|
| 56 |
+
</observers>
|
| 57 |
+
</sales_order_place_after>
|
| 58 |
+
<newsletter_subscriber_save_after>
|
| 59 |
+
<observers>
|
| 60 |
+
<listrak_remarketing_observer>
|
| 61 |
+
<type>singleton</type>
|
| 62 |
+
<class>Listrak_Remarketing_Model_Observer</class>
|
| 63 |
+
<method>subscriberSaved</method>
|
| 64 |
+
</listrak_remarketing_observer>
|
| 65 |
+
</observers>
|
| 66 |
+
</newsletter_subscriber_save_after>
|
| 67 |
+
</events>
|
| 68 |
+
</frontend>
|
| 69 |
+
<global>
|
| 70 |
+
<models>
|
| 71 |
+
<listrak>
|
| 72 |
+
<class>Listrak_Remarketing_Model</class>
|
| 73 |
+
<resourceModel>listrak_mysql4</resourceModel>
|
| 74 |
+
</listrak>
|
| 75 |
+
<listrak_mysql4>
|
| 76 |
+
<class>Listrak_Remarketing_Model_Mysql4</class>
|
| 77 |
+
<entities>
|
| 78 |
+
<click>
|
| 79 |
+
<table>listrak_remarketing_click</table>
|
| 80 |
+
</click>
|
| 81 |
+
<log>
|
| 82 |
+
<table>listrak_remarketing_log</table>
|
| 83 |
+
</log>
|
| 84 |
+
<session>
|
| 85 |
+
<table>listrak_remarketing_session</table>
|
| 86 |
+
</session>
|
| 87 |
+
<session_email>
|
| 88 |
+
<table>listrak_remarketing_session_email</table>
|
| 89 |
+
</session_email>
|
| 90 |
+
<emailcapture>
|
| 91 |
+
<table>listrak_remarketing_emailcapture</table>
|
| 92 |
+
</emailcapture>
|
| 93 |
+
<subscriber_update>
|
| 94 |
+
<table>listrak_remarketing_subscriber_update</table>
|
| 95 |
+
</subscriber_update>
|
| 96 |
+
</entities>
|
| 97 |
+
</listrak_mysql4>
|
| 98 |
+
<newsletter>
|
| 99 |
+
<rewrite>
|
| 100 |
+
<subscriber>Listrak_Remarketing_Model_Subscriber</subscriber>
|
| 101 |
+
</rewrite>
|
| 102 |
+
</newsletter>
|
| 103 |
+
</models>
|
| 104 |
+
<resources>
|
| 105 |
+
<listrak_remarketing_setup>
|
| 106 |
+
<setup>
|
| 107 |
+
<module>Listrak_Remarketing</module>
|
| 108 |
+
</setup>
|
| 109 |
+
<connection>
|
| 110 |
+
<use>core_setup</use>
|
| 111 |
+
</connection>
|
| 112 |
+
</listrak_remarketing_setup>
|
| 113 |
+
<listrak_write>
|
| 114 |
+
<connection>
|
| 115 |
+
<use>core_write</use>
|
| 116 |
+
</connection>
|
| 117 |
+
</listrak_write>
|
| 118 |
+
<listrak_read>
|
| 119 |
+
<connection>
|
| 120 |
+
<use>core_read</use>
|
| 121 |
+
</connection>
|
| 122 |
+
</listrak_read>
|
| 123 |
+
</resources>
|
| 124 |
+
<helpers>
|
| 125 |
+
<remarketing>
|
| 126 |
+
<class>Listrak_Remarketing_Helper</class>
|
| 127 |
+
</remarketing>
|
| 128 |
+
</helpers>
|
| 129 |
+
<blocks>
|
| 130 |
+
<remarketing>
|
| 131 |
+
<class>Listrak_Remarketing_Block</class>
|
| 132 |
+
</remarketing>
|
| 133 |
+
</blocks>
|
| 134 |
+
</global>
|
| 135 |
+
<admin>
|
| 136 |
+
<routers>
|
| 137 |
+
<remarketing>
|
| 138 |
+
<use>admin</use>
|
| 139 |
+
<args>
|
| 140 |
+
<module>Listrak_Remarketing</module>
|
| 141 |
+
<frontName>remarketing</frontName>
|
| 142 |
+
</args>
|
| 143 |
+
</remarketing>
|
| 144 |
+
</routers>
|
| 145 |
+
</admin>
|
| 146 |
+
<adminhtml>
|
| 147 |
+
<layout>
|
| 148 |
+
<updates>
|
| 149 |
+
<remarketing>
|
| 150 |
+
<file>remarketing.xml</file>
|
| 151 |
+
</remarketing>
|
| 152 |
+
</updates>
|
| 153 |
+
</layout>
|
| 154 |
+
<events>
|
| 155 |
+
<admin_user_load_before>
|
| 156 |
+
<observers>
|
| 157 |
+
<listrak_remarketing_observer>
|
| 158 |
+
<type>singleton</type>
|
| 159 |
+
<class>Listrak_Remarketing_Model_Observer</class>
|
| 160 |
+
<method>adminPageLoad</method>
|
| 161 |
+
</listrak_remarketing_observer>
|
| 162 |
+
</observers>
|
| 163 |
+
</admin_user_load_before>
|
| 164 |
+
</events>
|
| 165 |
+
</adminhtml>
|
| 166 |
+
<default>
|
| 167 |
+
<remarketing>
|
| 168 |
+
<subscription>
|
| 169 |
+
<signup_success_email>0</signup_success_email>
|
| 170 |
+
<unsubscribe_email>0</unsubscribe_email>
|
| 171 |
+
</subscription>
|
| 172 |
+
<abandonedcarts>
|
| 173 |
+
<abandoned_cart_report_timeout>60</abandoned_cart_report_timeout>
|
| 174 |
+
</abandonedcarts>
|
| 175 |
+
<modal>
|
| 176 |
+
<enabled>0</enabled>
|
| 177 |
+
<listrakMerchantID></listrakMerchantID>
|
| 178 |
+
<scriptLocation>s1.listrakbi.com/scripts/script.js</scriptLocation>
|
| 179 |
+
</modal>
|
| 180 |
+
</remarketing>
|
| 181 |
+
</default>
|
| 182 |
</config>
|
app/code/community/Listrak/Remarketing/etc/system.xml
CHANGED
|
@@ -1,94 +1,102 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<!--
|
| 3 |
-
/**
|
| 4 |
-
* Listrak Remarketing Magento Extension Ver. 1.0.0 - © 2011 Listrak, Inc.
|
| 5 |
-
*/
|
| 6 |
-
-->
|
| 7 |
-
<config>
|
| 8 |
-
<sections>
|
| 9 |
-
<remarketing translate="label" module="remarketing">
|
| 10 |
-
<label>Listrak</label>
|
| 11 |
-
<tab>customer</tab>
|
| 12 |
-
<frontend_type>text</frontend_type>
|
| 13 |
-
<sort_order>100</sort_order>
|
| 14 |
-
<show_in_default>1</show_in_default>
|
| 15 |
-
<show_in_website>1</show_in_website>
|
| 16 |
-
<show_in_store>1</show_in_store>
|
| 17 |
-
<groups>
|
| 18 |
-
<subscription translate="label">
|
| 19 |
-
<label>Newsletter Options</label>
|
| 20 |
-
<frontend_type>text</frontend_type>
|
| 21 |
-
<sort_order>1</sort_order>
|
| 22 |
-
<show_in_default>1</show_in_default>
|
| 23 |
-
<show_in_website>1</show_in_website>
|
| 24 |
-
<show_in_store>1</show_in_store>
|
| 25 |
-
<fields>
|
| 26 |
-
<signup_success_email translate="label">
|
| 27 |
-
<label>Signup Success Email</label>
|
| 28 |
-
<frontend_type>select</frontend_type>
|
| 29 |
-
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
| 30 |
-
<sort_order>2</sort_order>
|
| 31 |
-
<show_in_default>1</show_in_default>
|
| 32 |
-
<show_in_website>1</show_in_website>
|
| 33 |
-
<show_in_store>1</show_in_store>
|
| 34 |
-
</signup_success_email>
|
| 35 |
-
<unsubscribe_email translate="label">
|
| 36 |
-
<label>Unsubscribe Email</label>
|
| 37 |
-
<frontend_type>select</frontend_type>
|
| 38 |
-
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
| 39 |
-
<sort_order>3</sort_order>
|
| 40 |
-
<show_in_default>1</show_in_default>
|
| 41 |
-
<show_in_website>1</show_in_website>
|
| 42 |
-
<show_in_store>1</show_in_store>
|
| 43 |
-
</unsubscribe_email>
|
| 44 |
-
</fields>
|
| 45 |
-
</subscription>
|
| 46 |
-
<abandonedcarts translate="label">
|
| 47 |
-
<label>Abandoned Carts</label>
|
| 48 |
-
<frontend_type>text</frontend_type>
|
| 49 |
-
<sort_order>2</sort_order>
|
| 50 |
-
<show_in_default>1</show_in_default>
|
| 51 |
-
<show_in_website>1</show_in_website>
|
| 52 |
-
<show_in_store>1</show_in_store>
|
| 53 |
-
<fields>
|
| 54 |
-
<abandoned_cart_report_timeout translate="label">
|
| 55 |
-
<label>Abandoned Cart Report Timeout</label>
|
| 56 |
-
<frontend_type>text</frontend_type>
|
| 57 |
-
<sort_order>2</sort_order>
|
| 58 |
-
<show_in_default>1</show_in_default>
|
| 59 |
-
<show_in_website>1</show_in_website>
|
| 60 |
-
<show_in_store>1</show_in_store>
|
| 61 |
-
</abandoned_cart_report_timeout>
|
| 62 |
-
</fields>
|
| 63 |
-
</abandonedcarts>
|
| 64 |
-
<modal translate="label">
|
| 65 |
-
<label>Email Signup Popup</label>
|
| 66 |
-
<frontend_type>text</frontend_type>
|
| 67 |
-
<sort_order>2</sort_order>
|
| 68 |
-
<show_in_default>1</show_in_default>
|
| 69 |
-
<show_in_website>1</show_in_website>
|
| 70 |
-
<show_in_store>1</show_in_store>
|
| 71 |
-
<fields>
|
| 72 |
-
<enabled translate="label">
|
| 73 |
-
<label>Enabled</label>
|
| 74 |
-
<frontend_type>select</frontend_type>
|
| 75 |
-
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
| 76 |
-
<sort_order>1</sort_order>
|
| 77 |
-
<show_in_default>1</show_in_default>
|
| 78 |
-
<show_in_website>1</show_in_website>
|
| 79 |
-
<show_in_store>1</show_in_store>
|
| 80 |
-
</enabled>
|
| 81 |
-
<listrakMerchantID translate="label">
|
| 82 |
-
<label>Merchant ID</label>
|
| 83 |
-
<frontend_type>text</frontend_type>
|
| 84 |
-
<sort_order>2</sort_order>
|
| 85 |
-
<show_in_default>1</show_in_default>
|
| 86 |
-
<show_in_website>1</show_in_website>
|
| 87 |
-
<show_in_store>1</show_in_store>
|
| 88 |
-
</listrakMerchantID>
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
</config>
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Listrak Remarketing Magento Extension Ver. 1.0.0 - © 2011 Listrak, Inc.
|
| 5 |
+
*/
|
| 6 |
+
-->
|
| 7 |
+
<config>
|
| 8 |
+
<sections>
|
| 9 |
+
<remarketing translate="label" module="remarketing">
|
| 10 |
+
<label>Listrak</label>
|
| 11 |
+
<tab>customer</tab>
|
| 12 |
+
<frontend_type>text</frontend_type>
|
| 13 |
+
<sort_order>100</sort_order>
|
| 14 |
+
<show_in_default>1</show_in_default>
|
| 15 |
+
<show_in_website>1</show_in_website>
|
| 16 |
+
<show_in_store>1</show_in_store>
|
| 17 |
+
<groups>
|
| 18 |
+
<subscription translate="label">
|
| 19 |
+
<label>Newsletter Options</label>
|
| 20 |
+
<frontend_type>text</frontend_type>
|
| 21 |
+
<sort_order>1</sort_order>
|
| 22 |
+
<show_in_default>1</show_in_default>
|
| 23 |
+
<show_in_website>1</show_in_website>
|
| 24 |
+
<show_in_store>1</show_in_store>
|
| 25 |
+
<fields>
|
| 26 |
+
<signup_success_email translate="label">
|
| 27 |
+
<label>Signup Success Email</label>
|
| 28 |
+
<frontend_type>select</frontend_type>
|
| 29 |
+
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
| 30 |
+
<sort_order>2</sort_order>
|
| 31 |
+
<show_in_default>1</show_in_default>
|
| 32 |
+
<show_in_website>1</show_in_website>
|
| 33 |
+
<show_in_store>1</show_in_store>
|
| 34 |
+
</signup_success_email>
|
| 35 |
+
<unsubscribe_email translate="label">
|
| 36 |
+
<label>Unsubscribe Email</label>
|
| 37 |
+
<frontend_type>select</frontend_type>
|
| 38 |
+
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
| 39 |
+
<sort_order>3</sort_order>
|
| 40 |
+
<show_in_default>1</show_in_default>
|
| 41 |
+
<show_in_website>1</show_in_website>
|
| 42 |
+
<show_in_store>1</show_in_store>
|
| 43 |
+
</unsubscribe_email>
|
| 44 |
+
</fields>
|
| 45 |
+
</subscription>
|
| 46 |
+
<abandonedcarts translate="label">
|
| 47 |
+
<label>Abandoned Carts</label>
|
| 48 |
+
<frontend_type>text</frontend_type>
|
| 49 |
+
<sort_order>2</sort_order>
|
| 50 |
+
<show_in_default>1</show_in_default>
|
| 51 |
+
<show_in_website>1</show_in_website>
|
| 52 |
+
<show_in_store>1</show_in_store>
|
| 53 |
+
<fields>
|
| 54 |
+
<abandoned_cart_report_timeout translate="label">
|
| 55 |
+
<label>Abandoned Cart Report Timeout</label>
|
| 56 |
+
<frontend_type>text</frontend_type>
|
| 57 |
+
<sort_order>2</sort_order>
|
| 58 |
+
<show_in_default>1</show_in_default>
|
| 59 |
+
<show_in_website>1</show_in_website>
|
| 60 |
+
<show_in_store>1</show_in_store>
|
| 61 |
+
</abandoned_cart_report_timeout>
|
| 62 |
+
</fields>
|
| 63 |
+
</abandonedcarts>
|
| 64 |
+
<modal translate="label">
|
| 65 |
+
<label>Email Signup Popup</label>
|
| 66 |
+
<frontend_type>text</frontend_type>
|
| 67 |
+
<sort_order>2</sort_order>
|
| 68 |
+
<show_in_default>1</show_in_default>
|
| 69 |
+
<show_in_website>1</show_in_website>
|
| 70 |
+
<show_in_store>1</show_in_store>
|
| 71 |
+
<fields>
|
| 72 |
+
<enabled translate="label">
|
| 73 |
+
<label>Enabled</label>
|
| 74 |
+
<frontend_type>select</frontend_type>
|
| 75 |
+
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
| 76 |
+
<sort_order>1</sort_order>
|
| 77 |
+
<show_in_default>1</show_in_default>
|
| 78 |
+
<show_in_website>1</show_in_website>
|
| 79 |
+
<show_in_store>1</show_in_store>
|
| 80 |
+
</enabled>
|
| 81 |
+
<listrakMerchantID translate="label">
|
| 82 |
+
<label>Merchant ID</label>
|
| 83 |
+
<frontend_type>text</frontend_type>
|
| 84 |
+
<sort_order>2</sort_order>
|
| 85 |
+
<show_in_default>1</show_in_default>
|
| 86 |
+
<show_in_website>1</show_in_website>
|
| 87 |
+
<show_in_store>1</show_in_store>
|
| 88 |
+
</listrakMerchantID>
|
| 89 |
+
<scriptLocation translate="label">
|
| 90 |
+
<label>Script Location</label>
|
| 91 |
+
<frontend_type>text</frontend_type>
|
| 92 |
+
<sort_order>3</sort_order>
|
| 93 |
+
<show_in_default>1</show_in_default>
|
| 94 |
+
<show_in_website>1</show_in_website>
|
| 95 |
+
<show_in_store>1</show_in_store>
|
| 96 |
+
</scriptLocation>
|
| 97 |
+
</fields>
|
| 98 |
+
</modal>
|
| 99 |
+
</groups>
|
| 100 |
+
</remarketing>
|
| 101 |
+
</sections>
|
| 102 |
</config>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Listrak_Remarketing</name>
|
| 4 |
-
<version>1.1.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://s1.listrakbi.com/licenses/magento.txt">Listrak EULA</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -15,11 +15,11 @@
|
|
| 15 |
- Ability to disable Magento newsletter welcome messages
|
| 16 |
- Tracks clicks from Listrak emails for conversion reporting
|
| 17 |
- Synchronizes Magento newsletter subscriptions with your Listrak account</description>
|
| 18 |
-
<notes>
|
| 19 |
<authors><author><name>Listrak</name><user>auto-converted</user><email>magento@listrak.com</email></author></authors>
|
| 20 |
-
<date>2012-
|
| 21 |
-
<time>
|
| 22 |
-
<contents><target name="magecommunity"><dir name="Listrak"><dir name="Remarketing"><dir name="Block"><dir name="Adminhtml"><dir name="Abandonedcartreport"><file name="Grid.php" hash="6c9975250ee0d3318fe1a996e19b554f"/></dir><dir name="Emailcapture"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="d1b495e77fd135af95457ee7c3f1f21c"/></dir><file name="Form.php" hash="dae25c78913b35bb3ad64da797cd82b4"/><file name="Tabs.php" hash="b7c89cd1e1fae23ed52079c6d63ef4ee"/></dir><file name="Edit.php" hash="6a06c2b0dfb5a0414a642bc0cd3b5461"/><file name="Grid.php" hash="9eca43e603861ce2f24ec21a4d3a5064"/></dir><file name="Abandonedcartreport.php" hash="5c348aeec1c636b39ac037b5abc1875a"/><file name="Emailcapture.php" hash="accf0689467c5446e7605cad41e427b0"/><file name="Notifications.php" hash="dec4ef3882d5d11d738576787d05ec61"/></dir><file name="Ecjs.php" hash="1435cf65a3c33850e630364baa87a96e"/><file name="Modal.php" hash="
|
| 23 |
<compatible/>
|
| 24 |
<dependencies/>
|
| 25 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Listrak_Remarketing</name>
|
| 4 |
+
<version>1.1.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://s1.listrakbi.com/licenses/magento.txt">Listrak EULA</license>
|
| 7 |
<channel>community</channel>
|
| 15 |
- Ability to disable Magento newsletter welcome messages
|
| 16 |
- Tracks clicks from Listrak emails for conversion reporting
|
| 17 |
- Synchronizes Magento newsletter subscriptions with your Listrak account</description>
|
| 18 |
+
<notes>Modified session management/retention to reduce impact on high traffic sites.</notes>
|
| 19 |
<authors><author><name>Listrak</name><user>auto-converted</user><email>magento@listrak.com</email></author></authors>
|
| 20 |
+
<date>2012-07-23</date>
|
| 21 |
+
<time>20:29:48</time>
|
| 22 |
+
<contents><target name="magecommunity"><dir name="Listrak"><dir name="Remarketing"><dir name="Block"><dir name="Adminhtml"><dir name="Abandonedcartreport"><file name="Grid.php" hash="6c9975250ee0d3318fe1a996e19b554f"/></dir><dir name="Emailcapture"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="d1b495e77fd135af95457ee7c3f1f21c"/></dir><file name="Form.php" hash="dae25c78913b35bb3ad64da797cd82b4"/><file name="Tabs.php" hash="b7c89cd1e1fae23ed52079c6d63ef4ee"/></dir><file name="Edit.php" hash="6a06c2b0dfb5a0414a642bc0cd3b5461"/><file name="Grid.php" hash="9eca43e603861ce2f24ec21a4d3a5064"/></dir><file name="Abandonedcartreport.php" hash="5c348aeec1c636b39ac037b5abc1875a"/><file name="Emailcapture.php" hash="accf0689467c5446e7605cad41e427b0"/><file name="Notifications.php" hash="dec4ef3882d5d11d738576787d05ec61"/></dir><file name="Ecjs.php" hash="1435cf65a3c33850e630364baa87a96e"/><file name="Modal.php" hash="579ffec41876558845b0dae7fce696a5"/></dir><dir name="Helper"><file name="Data.php" hash="bd33bd2e7c3b6cf34cc28499a1f2eb7f"/></dir><dir name="Model"><dir name="Abandonedcart"><dir name="Api"><file name="V2.php" hash="c7b46e1feab677e41f4f9a3914e415fb"/></dir><file name="Api.php" hash="1c0dd08efa63480eb08ff1bc5c1e2765"/></dir><dir name="Apiextension"><dir name="Api"><file name="V2.php" hash="ff5a5f68d92c8a790bb00282c30c1378"/></dir><file name="Api.php" hash="2e89fc5ae21b95aa584d3f5e4f47184e"/></dir><dir name="Click"><dir name="Api"><file name="V2.php" hash="510ae6b8032ff54b5f43d94f447f35e2"/></dir><file name="Api.php" hash="b22605c25dd1336188a62fbbecc177bf"/></dir><dir name="Log"><dir name="Api"><file name="V2.php" hash="ace9ca737ebefd47205886fdef504a05"/></dir><file name="Api.php" hash="2a2a52b419cb90c0648209964b961287"/></dir><dir name="Mysql4"><dir name="Abandonedcart"><file name="Collection.php" hash="fed7e7d3b7dc74b42f21c9599f06b872"/></dir><dir name="Click"><file name="Collection.php" hash="dac93dbb083339bb047d296868cdb597"/></dir><dir name="Emailcapture"><file name="Collection.php" hash="4dbc86c599e6a390e1f8bde7752f09c2"/></dir><dir name="Log"><file name="Collection.php" hash="1765ae33eb74e9593d8266702cfe4160"/></dir><dir name="Session"><file name="Collection.php" hash="c095fdf0c54184df63ff6dd8636d779e"/></dir><dir name="Subscriberupdate"><file name="Collection.php" hash="1fd68314a80e93f416815273f29bf9f5"/></dir><file name="Abandonedcart.php" hash="1b09f8922a31433dfc83bfbeb93fbe88"/><file name="Apiextension.php" hash="4bbee7324ff4e6e4ca70587b023da6a0"/><file name="Click.php" hash="baabaf95e4d4f7f3fb1a2ac1c1965984"/><file name="Emailcapture.php" hash="b68ee210c3bcec8f2fccef7979b022b7"/><file name="Log.php" hash="e244d19b857ee9d03a7955a30d3f6cf3"/><file name="Session.php" hash="454a2c56529a0db4db3a5b8473952f78"/><file name="Subscriberupdate.php" hash="4957865b4aa8bbdda3a50484d7e49880"/></dir><file name="Abandonedcart.php" hash="2bd672054843917133e3ac7d941be42c"/><file name="Apiextension.php" hash="1a5964f749523d74c648d6609673fb08"/><file name="Click.php" hash="e4b390e9a6a45dcbc6191bcf0f4f0729"/><file name="Emailcapture.php" hash="4987ceda6dda7ca134736895e3cfed74"/><file name="Log.php" hash="577b2308bdbc531c867c67277d513371"/><file name="Observer.php" hash="aaabc8d2fb267a13c50f02ce543257a8"/><file name="Session.php" hash="4a71747b8007d9ad3b380b03efb933fb"/><file name="Subscriber.php" hash="7addcff01d1c12e88baad9064a362f2c"/><file name="Subscriberupdate.php" hash="77df791c2d17772345f518ce3b4dab90"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AbandonedcartreportController.php" hash="e1a2c2db0c6cc8cc30f9fdf26636c1a0"/><file name="EmailcaptureController.php" hash="ad7c87ca689bc30eb135fc5d25ae21a2"/></dir><file name="ConfigController.php" hash="7250d699110107b35fa004833dc3595e"/><file name="EmailController.php" hash="52d92c503b2783d592ee65fc7fd4932d"/><file name="TroubleshootingController.php" hash="8e9355a2c91ee3508620fc893aabe050"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0e01a6415641c271f4eb3067419c7f0a"/><file name="api.xml" hash="9e261fb5bfd7fc24870a8f8af5c9b226"/><file name="config.xml" hash="f2806e5532e1f875dead241aaa72d36a"/><file name="system.xml" hash="2f5ac2e3256dac4fe5bde34275b4f5b7"/><file name="wsdl.xml" hash="8f5f1024d0e6ca104d524348e462eb54"/><file name="wsi.xml" hash="e6fc96537d37c0c688454442d05c637d"/></dir><dir name="sql"><dir name="listrak_remarketing_setup"><file name="mysql4-install-1.0.0.php" hash="9969325db69a8582cd2807343dc1c5bc"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="51d6494a61a2e32907cdc8eaf078274c"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="8c935ec4a7ff8816c1ab1df644c1edf3"/><file name="mysql4-upgrade-1.1.0-1.1.1.php" hash="df4e8464d389d3f0155755c362b5a7ac"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="remarketing.xml" hash="3fe421a6b7ea5ab184c8791971b41a6a"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="remarketing.xml" hash="44d7027ba447c4aaf0841d32d185ffde"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Listrak_Remarketing.xml" hash="1fc68edb656e220874e64cffaf7f2dbd"/></dir></target></contents>
|
| 23 |
<compatible/>
|
| 24 |
<dependencies/>
|
| 25 |
</package>
|
