Listrak_Remarketing - Version 1.1.6

Version Notes

Updated extension to prevent warnings from appearing in error logs.
Additional performance updates throughout the extension.

Download this release

Release Info

Developer Magento Core Team
Extension Listrak_Remarketing
Version 1.1.6
Comparing to
See all releases


Code changes from version 1.1.5 to 1.1.6

Files changed (91) hide show
  1. app/code/community/Listrak/Remarketing/Block/Adminhtml/Abandonedcartreport.php +25 -11
  2. app/code/community/Listrak/Remarketing/Block/Adminhtml/Abandonedcartreport/Grid.php +144 -107
  3. app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture.php +14 -3
  4. app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture/Edit.php +18 -7
  5. app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture/Edit/Form.php +22 -10
  6. app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture/Edit/Tab/Form.php +54 -31
  7. app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture/Edit/Tabs.php +27 -11
  8. app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture/Grid.php +44 -27
  9. app/code/community/Listrak/Remarketing/Block/Adminhtml/Notifications.php +35 -23
  10. app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes.php +59 -43
  11. app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Edit.php +17 -7
  12. app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Edit/Form.php +22 -10
  13. app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Edit/Tab/Form/Brand.php +31 -15
  14. app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Edit/Tab/Form/Categories.php +22 -13
  15. app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Edit/Tabs.php +45 -25
  16. app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Grid.php +65 -46
  17. app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Init/Brands.php +21 -9
  18. app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Init/Brands/Form.php +52 -36
  19. app/code/community/Listrak/Remarketing/Block/Ecjs.php +121 -102
  20. app/code/community/Listrak/Remarketing/Block/Modal.php +46 -29
  21. app/code/community/Listrak/Remarketing/Helper/Data.php +106 -75
  22. app/code/community/Listrak/Remarketing/Helper/Product.php +271 -210
  23. app/code/community/Listrak/Remarketing/Helper/Product/Attribute/Set/Map.php +21 -10
  24. app/code/community/Listrak/Remarketing/Helper/Review/Update.php +63 -40
  25. app/code/community/Listrak/Remarketing/Model/Abandonedcart.php +46 -36
  26. app/code/community/Listrak/Remarketing/Model/Abandonedcart/Api.php +71 -63
  27. app/code/community/Listrak/Remarketing/Model/Abandonedcart/Api/V2.php +16 -5
  28. app/code/community/Listrak/Remarketing/Model/Apiextension.php +14 -3
  29. app/code/community/Listrak/Remarketing/Model/Apiextension/Api.php +322 -277
  30. app/code/community/Listrak/Remarketing/Model/Apiextension/Api/V2.php +16 -5
  31. app/code/community/Listrak/Remarketing/Model/Click.php +42 -29
  32. app/code/community/Listrak/Remarketing/Model/Click/Api.php +65 -48
  33. app/code/community/Listrak/Remarketing/Model/Click/Api/V2.php +16 -5
  34. app/code/community/Listrak/Remarketing/Model/Emailcapture.php +20 -9
  35. app/code/community/Listrak/Remarketing/Model/Log.php +42 -30
  36. app/code/community/Listrak/Remarketing/Model/Log/Api.php +67 -49
  37. app/code/community/Listrak/Remarketing/Model/Log/Api/V2.php +16 -5
  38. app/code/community/Listrak/Remarketing/Model/Mysql4/Abandonedcart.php +66 -56
  39. app/code/community/Listrak/Remarketing/Model/Mysql4/Abandonedcart/Collection.php +57 -37
  40. app/code/community/Listrak/Remarketing/Model/Mysql4/Apiextension.php +70 -53
  41. app/code/community/Listrak/Remarketing/Model/Mysql4/Click.php +71 -56
  42. app/code/community/Listrak/Remarketing/Model/Mysql4/Click/Collection.php +31 -16
  43. app/code/community/Listrak/Remarketing/Model/Mysql4/Emailcapture.php +24 -12
  44. app/code/community/Listrak/Remarketing/Model/Mysql4/Emailcapture/Collection.php +20 -8
  45. app/code/community/Listrak/Remarketing/Model/Mysql4/Log.php +24 -13
  46. app/code/community/Listrak/Remarketing/Model/Mysql4/Log/Collection.php +24 -13
  47. app/code/community/Listrak/Remarketing/Model/Mysql4/Product/Attribute/Set/Map.php +25 -14
  48. app/code/community/Listrak/Remarketing/Model/Mysql4/Product/Attribute/Set/Map/Collection.php +42 -25
  49. app/code/community/Listrak/Remarketing/Model/Mysql4/Review/Update.php +25 -14
  50. app/code/community/Listrak/Remarketing/Model/Mysql4/Review/Update/Collection.php +77 -61
  51. app/code/community/Listrak/Remarketing/Model/Mysql4/Session.php +116 -93
  52. app/code/community/Listrak/Remarketing/Model/Mysql4/Session/Collection.php +35 -22
  53. app/code/community/Listrak/Remarketing/Model/Mysql4/Subscriberupdate.php +25 -13
  54. app/code/community/Listrak/Remarketing/Model/Mysql4/Subscriberupdate/Collection.php +14 -3
  55. app/code/community/Listrak/Remarketing/Model/Observer.php +101 -121
  56. app/code/community/Listrak/Remarketing/Model/Product/Attribute/Set/Map.php +81 -76
  57. app/code/community/Listrak/Remarketing/Model/Product/Attributes.php +39 -19
  58. app/code/community/Listrak/Remarketing/Model/Product/Category/Source.php +14 -5
  59. app/code/community/Listrak/Remarketing/Model/Review/Update.php +59 -43
  60. app/code/community/Listrak/Remarketing/Model/Review/Update/Api.php +282 -242
  61. app/code/community/Listrak/Remarketing/Model/Review/Update/Api/V2.php +18 -7
  62. app/code/community/Listrak/Remarketing/Model/Session.php +102 -84
  63. app/code/community/Listrak/Remarketing/Model/Subscriber.php +32 -19
  64. app/code/community/Listrak/Remarketing/Model/Subscriberupdate.php +12 -2
  65. app/code/community/Listrak/Remarketing/controllers/Adminhtml/AbandonedcartreportController.php +42 -30
  66. app/code/community/Listrak/Remarketing/controllers/Adminhtml/EmailcaptureController.php +149 -121
  67. app/code/community/Listrak/Remarketing/controllers/Adminhtml/ProductattributesController.php +157 -137
  68. app/code/community/Listrak/Remarketing/controllers/CartController.php +75 -61
  69. app/code/community/Listrak/Remarketing/controllers/ConfigController.php +38 -25
  70. app/code/community/Listrak/Remarketing/controllers/EmailController.php +48 -43
  71. app/code/community/Listrak/Remarketing/controllers/TroubleshootingController.php +18 -6
  72. app/code/community/Listrak/Remarketing/etc/adminhtml.xml +62 -62
  73. app/code/community/Listrak/Remarketing/etc/api.xml +194 -185
  74. app/code/community/Listrak/Remarketing/etc/config.xml +206 -215
  75. app/code/community/Listrak/Remarketing/etc/system.xml +143 -143
  76. app/code/community/Listrak/Remarketing/etc/wsdl.xml +991 -878
  77. app/code/community/Listrak/Remarketing/etc/wsi.xml +1385 -1125
  78. app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-install-1.0.0.php +22 -7
  79. app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.0.0-1.0.1.php +19 -7
  80. app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.0.8-1.0.9.php +21 -8
  81. app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.1.0-1.1.1.php +21 -8
  82. app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.1.3-1.1.4.php +18 -7
  83. app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.1.4-1.1.5.php +18 -19
  84. app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.1.5-1.1.6.php +35 -0
  85. app/design/adminhtml/default/default/layout/remarketing.xml +8 -6
  86. app/design/adminhtml/default/default/template/listrak/remarketing/productattributes.phtml +25 -13
  87. app/design/adminhtml/default/default/template/listrak/remarketing/productattributes/form/categories.phtml +158 -137
  88. app/design/adminhtml/default/default/template/listrak/remarketing/productattributes/form/initbrands.phtml +52 -37
  89. app/design/frontend/base/default/layout/remarketing.xml +5 -3
  90. app/etc/modules/Listrak_Remarketing.xml +1 -1
  91. package.xml +6 -7
app/code/community/Listrak/Remarketing/Block/Adminhtml/Abandonedcartreport.php CHANGED
@@ -1,15 +1,29 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_Abandonedcartreport extends Mage_Adminhtml_Block_Widget_Grid_Container
 
6
  {
7
- public function __construct()
8
- {
9
- $this->_controller = 'adminhtml_abandonedcartreport';
10
- $this->_blockGroup = 'remarketing';
11
- $this->_headerText = Mage::helper('remarketing')->__('Abandoned Carts');
12
- parent::__construct();
13
- $this->_removeButton('add');
14
- }
 
 
 
15
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_Abandonedcartreport
16
+ extends Mage_Adminhtml_Block_Widget_Grid_Container
17
  {
18
+ /**
19
+ * The class constructor.
20
+ */
21
+ public function __construct()
22
+ {
23
+ $this->_controller = 'adminhtml_abandonedcartreport';
24
+ $this->_blockGroup = 'remarketing';
25
+ $this->_headerText = Mage::helper('remarketing')->__('Abandoned Carts');
26
+ parent::__construct();
27
+ $this->_removeButton('add');
28
+ }
29
  }
app/code/community/Listrak/Remarketing/Block/Adminhtml/Abandonedcartreport/Grid.php CHANGED
@@ -1,111 +1,148 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_Abandonedcartreport_Grid extends Mage_Adminhtml_Block_Widget_Grid
 
6
  {
7
- public function __construct()
8
- {
9
- parent::__construct();
10
- $this->setId('abandonedCartsGrid');
11
- $this->setDefaultSort('updated_at');
12
- $this->setDefaultDir('DESC');
13
- $this->setSaveParametersInSession(true);
14
- }
15
-
16
- protected function _prepareCollection()
17
- {
18
- $reportTimeout = Mage::getStoreConfig('remarketing/abandonedcarts/abandoned_cart_report_timeout') * 60;
19
-
20
- $startDate = gmdate('Y-m-d H:i:s', time() - $reportTimeout);
21
- $collection = Mage::getModel('listrak/abandonedcart')->getCollection()
22
- ->addFieldToFilter('main_table.updated_at',array('lt'=>$startDate));
23
- $collection->_prepareForReport = true;
24
-
25
- $this->setCollection($collection);
26
- return parent::_prepareCollection();
27
- }
28
-
29
- protected function _prepareColumns()
30
- {
31
- $this->addColumn('is_customer', array(
32
- 'header' =>Mage::helper('remarketing')->__('Registered'),
33
- 'index' =>'is_customer',
34
- 'width' =>'75px',
35
- 'sortable' => false,
36
- 'filter' => false
37
- ));
38
-
39
- $this->addColumn('session_id', array(
40
- 'header' =>Mage::helper('remarketing')->__('Session Id'),
41
- 'index' =>'session_id',
42
- 'width' =>'250px',
43
- 'sortable' => false,
44
- 'filter' => false
45
- ));
46
-
47
- $this->addColumn('customer_name', array(
48
- 'header' =>Mage::helper('remarketing')->__('Customer Name'),
49
- 'index' =>'customer_name',
50
- 'sortable' => false,
51
- 'filter' => false
52
- ));
53
-
54
- $this->addColumn('email', array(
55
- 'header' =>Mage::helper('remarketing')->__('Email'),
56
- 'index' =>'email',
57
- 'sortable' => false,
58
- 'filter' => false
59
- ));
60
-
61
- $this->addColumn('items_count', array(
62
- 'header' =>Mage::helper('remarketing')->__('# Items'),
63
- 'width' =>'80px',
64
- 'align' =>'right',
65
- 'index' =>'items_qty',
66
- 'sortable' =>false,
67
- 'type' =>'number',
68
- 'filter' => false
69
- ));
70
-
71
- $this->addColumn('total', array(
72
- 'header' =>Mage::helper('remarketing')->__('Total'),
73
- 'width' =>'80px',
74
- 'type' =>'currency',
75
- 'currency_code' => (string) Mage::getStoreConfig(Mage_Directory_Model_Currency::XML_PATH_CURRENCY_DEFAULT),
76
- 'index' =>'grand_total',
77
- 'sortable' =>false,
78
- 'renderer' =>'adminhtml/report_grid_column_renderer_currency',
79
- 'filter' => false
80
- ));
81
-
82
- $this->addColumn('created_at', array(
83
- 'header' =>Mage::helper('remarketing')->__('Creation Date'),
84
- 'width' =>'170px',
85
- 'type' =>'datetime',
86
- 'index' =>'created_at',
87
- //'filter_index'=>'main_table.created_at',
88
- 'sortable' =>false,
89
- 'filter' => false
90
- ));
91
-
92
- $this->addColumn('updated_at', array(
93
- 'header' =>Mage::helper('remarketing')->__('Abandon Date'),
94
- 'width' =>'170px',
95
- 'type' =>'datetime',
96
- 'index' =>'updated_at',
97
- //'filter_index'=>'main_table.updated_at',
98
- 'sortable' =>false,
99
- 'filter' => false
100
- ));
101
-
102
- return parent::_prepareColumns();
103
- }
104
-
105
- public function getRowUrl($row)
106
- {
107
- return FALSE;
108
- }
109
-
110
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_Abandonedcartreport_Grid
16
+ extends Mage_Adminhtml_Block_Widget_Grid
17
  {
18
+ public function __construct()
19
+ {
20
+ parent::__construct();
21
+ $this->setId('abandonedCartsGrid');
22
+ $this->setDefaultSort('updated_at');
23
+ $this->setDefaultDir('DESC');
24
+ $this->setSaveParametersInSession(true);
25
+ }
26
+
27
+ protected function _prepareCollection()
28
+ {
29
+ $reportTimeout = Mage::getStoreConfig('remarketing/abandonedcarts/abandoned_cart_report_timeout') * 60;
30
+
31
+ $startDate = gmdate('Y-m-d H:i:s', time() - $reportTimeout);
32
+ $collection = Mage::getModel('listrak/abandonedcart')->getCollection()
33
+ ->addFieldToFilter('main_table.updated_at', array('lt' => $startDate))
34
+ ->setPrepareForReport(true);
35
+
36
+ $this->setCollection($collection);
37
+ return parent::_prepareCollection();
38
+ }
39
+
40
+ protected function _prepareColumns()
41
+ {
42
+ $this->addColumn(
43
+ 'is_customer',
44
+ array(
45
+ 'header' => Mage::helper('remarketing')->__('Registered'),
46
+ 'index' => 'is_customer',
47
+ 'width' => '75px',
48
+ 'sortable' => false,
49
+ 'filter' => false
50
+ )
51
+ );
52
+
53
+ $this->addColumn(
54
+ 'session_id',
55
+ array(
56
+ 'header' => Mage::helper('remarketing')->__('Session Id'),
57
+ 'index' => 'session_id',
58
+ 'width' => '250px',
59
+ 'sortable' => false,
60
+ 'filter' => false
61
+ )
62
+ );
63
+
64
+ $this->addColumn(
65
+ 'customer_name',
66
+ array(
67
+ 'header' => Mage::helper('remarketing')->__('Customer Name'),
68
+ 'index' => 'customer_name',
69
+ 'sortable' => false,
70
+ 'filter' => false
71
+ )
72
+ );
73
+
74
+ $this->addColumn(
75
+ 'email',
76
+ array(
77
+ 'header' => Mage::helper('remarketing')->__('Email'),
78
+ 'index' => 'email',
79
+ 'sortable' => false,
80
+ 'filter' => false
81
+ )
82
+ );
83
+
84
+ $this->addColumn(
85
+ 'items_count',
86
+ array(
87
+ 'header' => Mage::helper('remarketing')->__('# Items'),
88
+ 'width' => '80px',
89
+ 'align' => 'right',
90
+ 'index' => 'items_qty',
91
+ 'sortable' => false,
92
+ 'type' => 'number',
93
+ 'filter' => false
94
+ )
95
+ );
96
+
97
+ $this->addColumn(
98
+ 'total',
99
+ array(
100
+ 'header' => Mage::helper('remarketing')->__('Total'),
101
+ 'width' => '80px',
102
+ 'type' => 'currency',
103
+ 'currency_code' => (string)Mage::getStoreConfig(
104
+ Mage_Directory_Model_Currency::XML_PATH_CURRENCY_DEFAULT
105
+ ),
106
+ 'index' => 'grand_total',
107
+ 'sortable' => false,
108
+ 'renderer' => 'adminhtml/report_grid_column_renderer_currency',
109
+ 'filter' => false
110
+ )
111
+ );
112
+
113
+ $this->addColumn(
114
+ 'created_at',
115
+ array(
116
+ 'header' => Mage::helper('remarketing')->__('Creation Date'),
117
+ 'width' => '170px',
118
+ 'type' => 'datetime',
119
+ 'index' => 'created_at',
120
+ //'filter_index'=>'main_table.created_at',
121
+ 'sortable' => false,
122
+ 'filter' => false
123
+ )
124
+ );
125
+
126
+ $this->addColumn(
127
+ 'updated_at',
128
+ array(
129
+ 'header' => Mage::helper('remarketing')->__('Abandon Date'),
130
+ 'width' => '170px',
131
+ 'type' => 'datetime',
132
+ 'index' => 'updated_at',
133
+ //'filter_index'=>'main_table.updated_at',
134
+ 'sortable' => false,
135
+ 'filter' => false
136
+ )
137
+ );
138
+
139
+ return parent::_prepareColumns();
140
+ }
141
+
142
+ public function getRowUrl($row)
143
+ {
144
+ return false;
145
+ }
146
+
147
+
148
  }
app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture.php CHANGED
@@ -1,8 +1,19 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_EmailCapture extends Mage_Adminhtml_Block_Widget_Grid_Container
 
6
  {
7
  public function __construct()
8
  {
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_EmailCapture
16
+ extends Mage_Adminhtml_Block_Widget_Grid_Container
17
  {
18
  public function __construct()
19
  {
app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture/Edit.php CHANGED
@@ -1,24 +1,35 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
 
6
  {
7
  public function __construct()
8
  {
9
  parent::__construct();
10
-
11
  $this->_objectId = 'id';
12
  $this->_blockGroup = 'remarketing';
13
  $this->_controller = 'adminhtml_emailcapture';
14
-
15
  $this->_updateButton('save', 'label', Mage::helper('remarketing')->__('Save Field'));
16
  $this->_updateButton('delete', 'label', Mage::helper('remarketing')->__('Delete Field'));
17
  }
18
-
19
  public function getHeaderText()
20
  {
21
- if( Mage::registry('emailcapture_data') && Mage::registry('emailcapture_data')->getId() ) {
22
  return Mage::helper('remarketing')->__("Edit Field");
23
  } else {
24
  return Mage::helper('remarketing')->__('Add Field');
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Edit
16
+ extends Mage_Adminhtml_Block_Widget_Form_Container
17
  {
18
  public function __construct()
19
  {
20
  parent::__construct();
21
+
22
  $this->_objectId = 'id';
23
  $this->_blockGroup = 'remarketing';
24
  $this->_controller = 'adminhtml_emailcapture';
25
+
26
  $this->_updateButton('save', 'label', Mage::helper('remarketing')->__('Save Field'));
27
  $this->_updateButton('delete', 'label', Mage::helper('remarketing')->__('Delete Field'));
28
  }
29
+
30
  public function getHeaderText()
31
  {
32
+ if (Mage::registry('emailcapture_data') && Mage::registry('emailcapture_data')->getId()) {
33
  return Mage::helper('remarketing')->__("Edit Field");
34
  } else {
35
  return Mage::helper('remarketing')->__('Add Field');
app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture/Edit/Form.php CHANGED
@@ -1,18 +1,30 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
 
 
 
 
 
 
 
 
 
 
 
6
  {
7
  protected function _prepareForm()
8
  {
9
- $form = new Varien_Data_Form(array(
10
- 'id' => 'edit_form',
11
- 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
12
- 'method' => 'post',
13
- )
 
14
  );
15
-
16
  $form->setUseContainer(true);
17
  $this->setForm($form);
18
  return parent::_prepareForm();
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Edit_Form
16
+ extends Mage_Adminhtml_Block_Widget_Form
17
  {
18
  protected function _prepareForm()
19
  {
20
+ $form = new Varien_Data_Form(
21
+ array(
22
+ 'id' => 'edit_form',
23
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
24
+ 'method' => 'post',
25
+ )
26
  );
27
+
28
  $form->setUseContainer(true);
29
  $this->setForm($form);
30
  return parent::_prepareForm();
app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture/Edit/Tab/Form.php CHANGED
@@ -1,38 +1,61 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
 
6
  {
7
- protected function _prepareForm()
8
- {
9
- $form = new Varien_Data_Form();
10
- $this->setForm($form);
11
- $fieldset = $form->addFieldset('emailcapture_form', array('legend'=>Mage::helper('remarketing')->__('Field information')));
 
 
 
12
 
13
- $fieldset->addField('page', 'text', array(
14
- 'label' => Mage::helper('remarketing')->__('Page'),
15
- 'class' => 'required-entry',
16
- 'required' => true,
17
- 'name' => 'page',
18
- 'after_element_html' => '<p class="note"><span>For example: /checkout/onepage/index. Each URL has 3 parts. If yours does not have 3 parts, fill the last with "index". You can also use wildcard character "*" to capture field on all pages in the store.</span></p>'
19
- ));
 
 
 
 
 
 
20
 
21
- $fieldset->addField('field_id', 'text', array(
22
- 'label' => Mage::helper('remarketing')->__('Field ID'),
23
- 'name' => 'field_id',
24
- 'required' => true,
25
- 'class' => 'required-entry',
26
- 'after_element_html' => '<p class="note"><span>Field id attribute. You can check it in HTML code preview.</span></p>'
27
- ));
 
 
 
 
28
 
29
- if (Mage::getSingleton('adminhtml/session')->getEmailCaptureData())
30
- {
31
- $form->setValues(Mage::getSingleton('adminhtml/session')->getEmailCaptureData());
32
- Mage::getSingleton('adminhtml/session')->setEmailCaptureData(null);
33
- } elseif (Mage::registry('emailcapture_data')) {
34
- $form->setValues(Mage::registry('emailcapture_data')->getData());
35
- }
36
- return parent::_prepareForm();
37
- }
38
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Edit_Tab_Form
16
+ extends Mage_Adminhtml_Block_Widget_Form
17
  {
18
+ protected function _prepareForm()
19
+ {
20
+ $form = new Varien_Data_Form();
21
+ $this->setForm($form);
22
+ $fieldset = $form->addFieldset(
23
+ 'emailcapture_form',
24
+ array('legend' => Mage::helper('remarketing')->__('Field information'))
25
+ );
26
 
27
+ $fieldset->addField(
28
+ 'page', 'text', array(
29
+ 'label' => Mage::helper('remarketing')->__('Page'),
30
+ 'class' => 'required-entry',
31
+ 'required' => true,
32
+ 'name' => 'page',
33
+ 'after_element_html' => '<p class="note"><span>For example: '
34
+ . '/checkout/onepage/index. Each URL has 3 parts. If yours '
35
+ . 'does not have 3 parts, fill the last with "index". You '
36
+ . 'can also use wildcard character "*" to capture field on '
37
+ . 'all pages in the store.</span></p>'
38
+ )
39
+ );
40
 
41
+ $fieldset->addField(
42
+ 'field_id', 'text', array(
43
+ 'label' => Mage::helper('remarketing')->__('Field ID'),
44
+ 'name' => 'field_id',
45
+ 'required' => true,
46
+ 'class' => 'required-entry',
47
+ 'after_element_html' => '<p class="note"><span>Field id '
48
+ . 'attribute. You can check it in HTML code '
49
+ . 'preview.</span></p>'
50
+ )
51
+ );
52
 
53
+ if (Mage::getSingleton('adminhtml/session')->getEmailCaptureData()) {
54
+ $form->setValues(Mage::getSingleton('adminhtml/session')->getEmailCaptureData());
55
+ Mage::getSingleton('adminhtml/session')->setEmailCaptureData(null);
56
+ } elseif (Mage::registry('emailcapture_data')) {
57
+ $form->setValues(Mage::registry('emailcapture_data')->getData());
58
+ }
59
+ return parent::_prepareForm();
60
+ }
 
61
  }
app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture/Edit/Tabs.php CHANGED
@@ -1,10 +1,21 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
 
6
  {
7
-
8
  public function __construct()
9
  {
10
  parent::__construct();
@@ -12,15 +23,20 @@ class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Edit_Tabs extends Mage_Ad
12
  $this->setDestElementId('edit_form');
13
  $this->setTitle(Mage::helper('remarketing')->__('Field Information'));
14
  }
15
-
16
  protected function _beforeToHtml()
17
  {
18
- $this->addTab('form_section', array(
19
- 'label' => Mage::helper('remarketing')->__('Field Information'),
20
- 'title' => Mage::helper('remarketing')->__('Field Information'),
21
- 'content' => $this->getLayout()->createBlock('remarketing/adminhtml_emailcapture_edit_tab_form')->toHtml(),
22
- ));
23
-
 
 
 
 
 
24
  return parent::_beforeToHtml();
25
  }
26
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Edit_Tabs
16
+ extends Mage_Adminhtml_Block_Widget_Tabs
17
  {
18
+
19
  public function __construct()
20
  {
21
  parent::__construct();
23
  $this->setDestElementId('edit_form');
24
  $this->setTitle(Mage::helper('remarketing')->__('Field Information'));
25
  }
26
+
27
  protected function _beforeToHtml()
28
  {
29
+ $this->addTab(
30
+ 'form_section',
31
+ array(
32
+ 'label' => Mage::helper('remarketing')->__('Field Information'),
33
+ 'title' => Mage::helper('remarketing')->__('Field Information'),
34
+ 'content' => $this->getLayout()->createBlock(
35
+ 'remarketing/adminhtml_emailcapture_edit_tab_form'
36
+ )->toHtml(),
37
+ )
38
+ );
39
+
40
  return parent::_beforeToHtml();
41
  }
42
  }
app/code/community/Listrak/Remarketing/Block/Adminhtml/Emailcapture/Grid.php CHANGED
@@ -1,8 +1,19 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Grid extends Mage_Adminhtml_Block_Widget_Grid
 
6
  {
7
  public function __construct()
8
  {
@@ -12,42 +23,48 @@ class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Grid extends Mage_Adminht
12
  $this->setDefaultDir('ASC');
13
  $this->setSaveParametersInSession(true);
14
  }
15
-
16
  protected function _prepareCollection()
17
  {
18
  $collection = Mage::getModel('listrak/emailcapture')->getCollection();
19
  $this->setCollection($collection);
20
  return parent::_prepareCollection();
21
  }
22
-
23
  protected function _prepareColumns()
24
  {
25
- $this->addColumn('emailcapture_id', array(
26
- 'header' => Mage::helper('remarketing')->__('ID'),
27
- 'align' =>'right',
28
- 'width' => '50px',
29
- 'index' => 'emailcapture_id',
30
- ));
31
-
32
- $this->addColumn('page', array(
33
- 'header' => Mage::helper('remarketing')->__('Page'),
34
- 'align' =>'left',
35
- 'index' => 'page',
36
- ));
37
-
38
- $this->addColumn('field_id', array(
39
- 'header' => Mage::helper('remarketing')->__('Field ID'),
40
- 'align' => 'left',
41
- 'index' => 'field_id',
42
- ));
43
-
 
 
 
 
 
 
44
  return parent::_prepareColumns();
45
  }
46
-
47
  public function getRowUrl($row)
48
  {
49
  return $this->getUrl('*/*/edit', array('id' => $row->getId()));
50
  }
51
-
52
-
53
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_EmailCapture_Grid
16
+ extends Mage_Adminhtml_Block_Widget_Grid
17
  {
18
  public function __construct()
19
  {
23
  $this->setDefaultDir('ASC');
24
  $this->setSaveParametersInSession(true);
25
  }
26
+
27
  protected function _prepareCollection()
28
  {
29
  $collection = Mage::getModel('listrak/emailcapture')->getCollection();
30
  $this->setCollection($collection);
31
  return parent::_prepareCollection();
32
  }
33
+
34
  protected function _prepareColumns()
35
  {
36
+ $this->addColumn(
37
+ 'emailcapture_id', array(
38
+ 'header' => Mage::helper('remarketing')->__('ID'),
39
+ 'align' => 'right',
40
+ 'width' => '50px',
41
+ 'index' => 'emailcapture_id',
42
+ )
43
+ );
44
+
45
+ $this->addColumn(
46
+ 'page', array(
47
+ 'header' => Mage::helper('remarketing')->__('Page'),
48
+ 'align' => 'left',
49
+ 'index' => 'page',
50
+ )
51
+ );
52
+
53
+ $this->addColumn(
54
+ 'field_id', array(
55
+ 'header' => Mage::helper('remarketing')->__('Field ID'),
56
+ 'align' => 'left',
57
+ 'index' => 'field_id',
58
+ )
59
+ );
60
+
61
  return parent::_prepareColumns();
62
  }
63
+
64
  public function getRowUrl($row)
65
  {
66
  return $this->getUrl('*/*/edit', array('id' => $row->getId()));
67
  }
68
+
69
+
70
  }
app/code/community/Listrak/Remarketing/Block/Adminhtml/Notifications.php CHANGED
@@ -1,28 +1,40 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  class Listrak_Remarketing_Block_Adminhtml_Notifications extends Mage_Core_Block_Text
6
  {
7
- protected function _toHtml()
8
- {
9
- $html = "";
10
-
11
- if(!Mage::helper('remarketing')->checkSetupStatus()) {
12
- $html .= "<div class='notification-global'>The Listrak module requires a Listrak account. Please " .
13
- "<a href='http://www.listrak.com/partners/magento-extension.aspx'>fill out our form</a> to get an account. ".
14
- "If you already have a Listrak account, please contact your account manager " .
15
- "or <a href='mailto:support@listrak.com'>support@listrak.com</a>.</div>";
16
- }
17
-
18
- if (strpos(Mage::helper('core/url')->getCurrentUrl(), "/adminhtml_productattributes/") === false
19
- && Mage::helper('remarketing')->displayAttributeSetNotification()
20
- ) {
21
- $html .= "<div class='notification-global'>Brand attribute has not been defined for one or more attribute sets. Please " .
22
- "<a href='" . Mage::helper('adminhtml')->getUrl('remarketing/adminhtml_productattributes/index') . "'>click here</a>, " .
23
- "or go to Listrak > Product Attributes to review your current settings.</div>";
24
- }
25
-
26
- return $html;
27
- }
 
 
28
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  class Listrak_Remarketing_Block_Adminhtml_Notifications extends Mage_Core_Block_Text
16
  {
17
+ protected function _toHtml()
18
+ {
19
+ $html = "";
20
+
21
+ if (!Mage::helper('remarketing')->checkSetupStatus()) {
22
+ $html .= "<div class='notification-global'>The Listrak module requires a Listrak account. Please " .
23
+ "<a href='http://www.listrak.com/partners/magento-extension.aspx'>fill out our form</a> to " .
24
+ "get an account. If you already have a Listrak account, please contact your account manager " .
25
+ "or <a href='mailto:support@listrak.com'>support@listrak.com</a>.</div>";
26
+ }
27
+
28
+ if (strpos(Mage::helper('core/url')->getCurrentUrl(), "/adminhtml_productattributes/") === false
29
+ && Mage::helper('remarketing')->displayAttributeSetNotification()
30
+ ) {
31
+ $html .= "<div class='notification-global'>Brand attribute has not been defined for one or more " .
32
+ "attribute sets. Please <a href='" .
33
+ Mage::helper('adminhtml')->getUrl('remarketing/adminhtml_productattributes/index') .
34
+ "'>click here</a>, or go to Listrak > Product Attributes " .
35
+ "to review your current settings.</div>";
36
+ }
37
+
38
+ return $html;
39
+ }
40
  }
app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes.php CHANGED
@@ -1,48 +1,64 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_ProductAttributes extends Mage_Adminhtml_Block_Widget_Container
 
6
  {
7
- public function __construct()
8
- {
9
- parent::__construct();
10
- $this->_controller = 'adminhtml_productattributes';
11
- $this->_removeButton('add');
12
-
13
- $this->setTemplate('listrak/remarketing/productattributes.phtml');
14
- }
15
-
16
- public function _prepareLayout()
17
- {
18
- $this->setChild('grid', $this->getLayout()->createBlock('remarketing/adminhtml_productattributes_grid'));
19
- $this->setChild('init_brands', $this->getLayout()->createBlock('remarketing/adminhtml_productattributes_init_brands'));
20
- return parent::_prepareLayout();
21
- }
22
-
23
- public function getInitBrandsHtml()
24
- {
25
- return $this->getChildHtml('init_brands');
26
- }
27
-
28
- public function getGridHtml()
29
- {
30
- return $this->getChildHtml('grid');
31
- }
32
-
33
- public function setsWithoutBrandAttribute()
34
- {
35
- $sets = array();
36
-
37
- $allSets = Mage::registry('productattribute_sets');
38
- foreach($allSets as $set)
39
- {
40
- if ($set->getBrandAttributeCode() == null)
41
- array_push($sets, $set);
42
- }
43
-
44
- return $sets;
45
- }
 
 
 
 
 
 
46
  }
47
 
48
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_ProductAttributes
16
+ extends Mage_Adminhtml_Block_Widget_Container
17
  {
18
+ public function __construct()
19
+ {
20
+ parent::__construct();
21
+ $this->_controller = 'adminhtml_productattributes';
22
+ $this->_removeButton('add');
23
+
24
+ $this->setTemplate('listrak/remarketing/productattributes.phtml');
25
+ }
26
+
27
+ public function _prepareLayout()
28
+ {
29
+ $this->setChild(
30
+ 'grid',
31
+ $this->getLayout()->createBlock('remarketing/adminhtml_productattributes_grid')
32
+ );
33
+ $this->setChild(
34
+ 'init_brands',
35
+ $this->getLayout()->createBlock('remarketing/adminhtml_productattributes_init_brands')
36
+ );
37
+ return parent::_prepareLayout();
38
+ }
39
+
40
+ public function getInitBrandsHtml()
41
+ {
42
+ return $this->getChildHtml('init_brands');
43
+ }
44
+
45
+ public function getGridHtml()
46
+ {
47
+ return $this->getChildHtml('grid');
48
+ }
49
+
50
+ public function setsWithoutBrandAttribute()
51
+ {
52
+ $sets = array();
53
+
54
+ $allSets = Mage::registry('productattribute_sets');
55
+ foreach ($allSets as $set) {
56
+ if ($set->getBrandAttributeCode() == null) {
57
+ array_push($sets, $set);
58
+ }
59
+ }
60
+
61
+ return $sets;
62
+ }
63
  }
64
 
 
app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Edit.php CHANGED
@@ -1,24 +1,34 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_ProductAttributes_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
 
6
  {
7
  public function __construct()
8
  {
9
  parent::__construct();
10
-
11
  $this->_objectId = 'id';
12
  $this->_blockGroup = 'remarketing';
13
  $this->_controller = 'adminhtml_productattributes';
14
-
15
  $this->_removeButton('delete');
16
  }
17
-
18
  public function getHeaderText()
19
  {
20
  return Mage::registry('productattribute_data')->getAttributeSetName();
21
  }
22
  }
23
 
24
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_ProductAttributes_Edit
16
+ extends Mage_Adminhtml_Block_Widget_Form_Container
17
  {
18
  public function __construct()
19
  {
20
  parent::__construct();
21
+
22
  $this->_objectId = 'id';
23
  $this->_blockGroup = 'remarketing';
24
  $this->_controller = 'adminhtml_productattributes';
25
+
26
  $this->_removeButton('delete');
27
  }
28
+
29
  public function getHeaderText()
30
  {
31
  return Mage::registry('productattribute_data')->getAttributeSetName();
32
  }
33
  }
34
 
 
app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Edit/Form.php CHANGED
@@ -1,21 +1,33 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_Productattributes_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
 
6
  {
7
  protected function _prepareForm()
8
  {
9
- $form = new Varien_Data_Form(array(
10
- 'id' => 'edit_form',
11
- 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
12
- 'method' => 'post',
13
- ));
14
-
 
 
15
  $form->setUseContainer(true);
16
  $this->setForm($form);
17
  return parent::_prepareForm();
18
  }
19
  }
20
 
21
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_Productattributes_Edit_Form
16
+ extends Mage_Adminhtml_Block_Widget_Form
17
  {
18
  protected function _prepareForm()
19
  {
20
+ $form = new Varien_Data_Form(
21
+ array(
22
+ 'id' => 'edit_form',
23
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
24
+ 'method' => 'post',
25
+ )
26
+ );
27
+
28
  $form->setUseContainer(true);
29
  $this->setForm($form);
30
  return parent::_prepareForm();
31
  }
32
  }
33
 
 
app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Edit/Tab/Form/Brand.php CHANGED
@@ -1,31 +1,47 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_Productattributes_Edit_Tab_Form_Brand extends Mage_Adminhtml_Block_Widget_Form
 
6
  {
7
  protected function _prepareForm()
8
  {
9
  $form = new Varien_Data_Form();
10
  $this->setForm($form);
11
- $fieldset = $form->addFieldset('productattribute_form', array('legend'=>Mage::helper('remarketing')->__('Field information')));
 
 
 
12
 
13
  $attributeCodes = array();
14
  $attributeCodes[''] = '- No Brand Attribute -';
15
- foreach($this->getAttributeOptions() as $key => $value)
16
- {
17
  $attributeCodes[$key] = $value;
18
  }
19
-
20
- $fieldset->addField('brand_attribute', 'select', array(
21
- 'label' => Mage::helper('remarketing')->__('Brand Attribute'),
22
- 'name' => 'brand_attribute',
23
- 'values' => $attributeCodes,
24
- 'value' => Mage::registry('productattribute_data')->getBrandAttributeCode()
25
- ));
26
-
 
 
 
 
27
  return parent::_prepareForm();
28
  }
29
  }
30
 
31
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_Productattributes_Edit_Tab_Form_Brand
16
+ extends Mage_Adminhtml_Block_Widget_Form
17
  {
18
  protected function _prepareForm()
19
  {
20
  $form = new Varien_Data_Form();
21
  $this->setForm($form);
22
+ $fieldset = $form->addFieldset(
23
+ 'productattribute_form',
24
+ array('legend' => Mage::helper('remarketing')->__('Field information'))
25
+ );
26
 
27
  $attributeCodes = array();
28
  $attributeCodes[''] = '- No Brand Attribute -';
29
+ foreach ($this->getAttributeOptions() as $key => $value) {
 
30
  $attributeCodes[$key] = $value;
31
  }
32
+
33
+ $fieldset->addField(
34
+ 'brand_attribute',
35
+ 'select',
36
+ array(
37
+ 'label' => Mage::helper('remarketing')->__('Brand Attribute'),
38
+ 'name' => 'brand_attribute',
39
+ 'values' => $attributeCodes,
40
+ 'value' => Mage::registry('productattribute_data')->getBrandAttributeCode()
41
+ )
42
+ );
43
+
44
  return parent::_prepareForm();
45
  }
46
  }
47
 
 
app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Edit/Tab/Form/Categories.php CHANGED
@@ -1,46 +1,55 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_Productattributes_Edit_Tab_Form_Categories extends Mage_Adminhtml_Block_Widget
 
6
  {
7
  public function __construct()
8
  {
9
  parent::__construct();
10
  $this->setTemplate('listrak/remarketing/productattributes/form/categories.phtml');
11
-
12
  $this->setModel(Mage::registry('productattribute_data'));
13
  }
14
-
15
  public function getCategoriesSource()
16
  {
17
- if ($this->getUseConfigCategoriesSource())
18
- {
19
  return $this->getConfigCategoriesSource();
20
  }
21
-
22
  return $this->getModel()->getCategoriesSource();
23
  }
24
-
25
  public function getConfigCategoriesSource()
26
  {
27
  return Mage::helper('remarketing')->categoriesSource();
28
  }
29
-
30
  public function getUseConfigCategoriesSource()
31
  {
32
  return $this->getModel()->getUseConfigCategoriesSource();
33
  }
34
-
35
  public function getCategoryAttributeCode()
36
  {
37
  return $this->getModel()->getCategoryAttributeCode();
38
  }
39
-
40
  public function getSubcategoryAttributeCode()
41
  {
42
  return $this->getModel()->getSubcategoryAttributeCode();
43
  }
44
  }
45
 
46
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_Productattributes_Edit_Tab_Form_Categories
16
+ extends Mage_Adminhtml_Block_Widget
17
  {
18
  public function __construct()
19
  {
20
  parent::__construct();
21
  $this->setTemplate('listrak/remarketing/productattributes/form/categories.phtml');
22
+
23
  $this->setModel(Mage::registry('productattribute_data'));
24
  }
25
+
26
  public function getCategoriesSource()
27
  {
28
+ if ($this->getUseConfigCategoriesSource()) {
 
29
  return $this->getConfigCategoriesSource();
30
  }
31
+
32
  return $this->getModel()->getCategoriesSource();
33
  }
34
+
35
  public function getConfigCategoriesSource()
36
  {
37
  return Mage::helper('remarketing')->categoriesSource();
38
  }
39
+
40
  public function getUseConfigCategoriesSource()
41
  {
42
  return $this->getModel()->getUseConfigCategoriesSource();
43
  }
44
+
45
  public function getCategoryAttributeCode()
46
  {
47
  return $this->getModel()->getCategoryAttributeCode();
48
  }
49
+
50
  public function getSubcategoryAttributeCode()
51
  {
52
  return $this->getModel()->getSubcategoryAttributeCode();
53
  }
54
  }
55
 
 
app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Edit/Tabs.php CHANGED
@@ -1,49 +1,69 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_Productattributes_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
 
6
  {
7
  public function __construct()
8
  {
9
  parent::__construct();
10
-
11
  $this->setId('productattributes_map_tabs');
12
  $this->setDestElementId('edit_form');
13
  $this->setTitle(Mage::helper('remarketing')->__('Map Attributes'));
14
  }
15
-
16
  public function _prepareLayout()
17
  {
18
- $attributeCodes = $this->attributeSetAttributes(Mage::registry('productattribute_data')->getAttributeSetId());
19
-
20
- $this->addTab('productattributes_brand', array(
21
- 'label' => Mage::helper('remarketing')->__('Brand'),
22
- 'content' => $this->getLayout()->createBlock('remarketing/adminhtml_productattributes_edit_tab_form_brand')->setAttributeOptions($attributeCodes)->toHtml()
23
- ));
24
-
25
- $this->addTab('productattributes_categories', array(
26
- 'label' => Mage::helper('remarketing')->__('Category and Subcategory'),
27
- 'content' => $this->getLayout()->createBlock('remarketing/adminhtml_productattributes_edit_tab_form_categories')->setAttributeOptions($attributeCodes)->toHtml()
28
- ));
 
 
 
 
 
 
 
 
 
 
29
  }
30
-
31
- private function attributeSetAttributes($setId)
32
  {
33
  $collection = Mage::getResourceModel('catalog/product_attribute_collection')
34
  ->setAttributeSetFilter($setId)
35
  ->addVisibleFilter();
36
-
37
  $attributes = array();
38
- foreach($collection as $value)
39
- {
40
- $attributes[$value->getAttributeCode()] = $value->getFrontendLabel() . ' (' . $value->getAttributeCode() . ')';
41
  }
42
-
43
  asort($attributes);
44
-
45
  return $attributes;
46
  }
47
  }
48
 
49
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_Productattributes_Edit_Tabs
16
+ extends Mage_Adminhtml_Block_Widget_Tabs
17
  {
18
  public function __construct()
19
  {
20
  parent::__construct();
21
+
22
  $this->setId('productattributes_map_tabs');
23
  $this->setDestElementId('edit_form');
24
  $this->setTitle(Mage::helper('remarketing')->__('Map Attributes'));
25
  }
26
+
27
  public function _prepareLayout()
28
  {
29
+ $attributeCodes = $this->_attributeSetAttributes(Mage::registry('productattribute_data')->getAttributeSetId());
30
+
31
+ $this->addTab(
32
+ 'productattributes_brand',
33
+ array(
34
+ 'label' => Mage::helper('remarketing')->__('Brand'),
35
+ 'content' => $this->getLayout()->createBlock(
36
+ 'remarketing/adminhtml_productattributes_edit_tab_form_brand'
37
+ )->setAttributeOptions($attributeCodes)->toHtml()
38
+ )
39
+ );
40
+
41
+ $this->addTab(
42
+ 'productattributes_categories',
43
+ array(
44
+ 'label' => Mage::helper('remarketing')->__('Category and Subcategory'),
45
+ 'content' => $this->getLayout()->createBlock(
46
+ 'remarketing/adminhtml_productattributes_edit_tab_form_categories'
47
+ )->setAttributeOptions($attributeCodes)->toHtml()
48
+ )
49
+ );
50
  }
51
+
52
+ private function _attributeSetAttributes($setId)
53
  {
54
  $collection = Mage::getResourceModel('catalog/product_attribute_collection')
55
  ->setAttributeSetFilter($setId)
56
  ->addVisibleFilter();
57
+
58
  $attributes = array();
59
+ foreach ($collection as $value) {
60
+ $attributes[$value->getAttributeCode()] = $value->getFrontendLabel()
61
+ . ' (' . $value->getAttributeCode() . ')';
62
  }
63
+
64
  asort($attributes);
65
+
66
  return $attributes;
67
  }
68
  }
69
 
 
app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Grid.php CHANGED
@@ -1,8 +1,19 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_ProductAttributes_Grid extends Mage_Adminhtml_Block_Widget_Grid
 
6
  {
7
  public function __construct()
8
  {
@@ -12,68 +23,76 @@ class Listrak_Remarketing_Block_Adminhtml_ProductAttributes_Grid extends Mage_Ad
12
  $this->setDefaultDir('ASC');
13
  $this->setSaveParametersInSession(false);
14
  }
15
-
16
  protected function _prepareCollection()
17
  {
18
  $collection = Mage::registry('productattribute_sets');
19
-
20
  // prepare visible fields
21
- foreach($collection as $item)
22
- {
23
  $item->setFrontendCategoriesSource($item->frontendCategoriesSource());
24
  $item->setFrontendBrandAttribute($item->frontendBrandAttribute());
25
  $item->setFrontendCategoryAttribute($item->frontendCategoryAttribute());
26
  $item->setFrontendSubcategoryAttribute($item->frontendSubcategoryAttribute());
27
  }
28
-
29
  $this->setCollection($collection);
30
  return parent::_prepareCollection();
31
  }
32
-
33
  protected function _prepareColumns()
34
  {
35
- $this->addColumn('attribute_set', array(
36
- 'header' => Mage::helper('remarketing')->__('Attribute Set Name'),
37
- 'align' => 'left',
38
- 'index' => 'attribute_set_name',
39
- 'filter' => false
40
- ));
41
-
42
- $this->addColumn('brand_attribute', array(
43
- 'header' => Mage::helper('remarketing')->__('Brand Attribute'),
44
- 'align' => 'left',
45
- 'index' => 'frontend_brand_attribute',
46
- 'filter' => false
47
- ));
48
-
49
- $this->addColumn('categories_source', array(
50
- 'header' => Mage::helper('remarketing')->__('Category Source'),
51
- 'align' => 'left',
52
- 'index' => 'frontend_categories_source',
53
- 'filter' => false
54
- ));
55
-
56
- $this->addColumn('category_attribute', array(
57
- 'header' => Mage::helper('remarketing')->__('Category Attribute'),
58
- 'align' => 'left',
59
- 'index' => 'frontend_category_attribute',
60
- 'filter' => false
61
- ));
62
-
63
- $this->addColumn('subcategory_attribute', array(
64
- 'header' => Mage::helper('remarketing')->__('Subcategory Attribute'),
65
- 'align' => 'left',
66
- 'index' => 'frontend_subcategory_attribute',
67
- 'filter' => false
68
- ));
69
-
 
 
 
 
 
 
 
 
 
 
70
  return parent::_prepareColumns();
71
  }
72
-
73
  public function getRowUrl($row)
74
  {
75
  return $this->getUrl('*/*/edit', array('id' => $row->getId()));
76
  }
77
  }
78
 
79
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_ProductAttributes_Grid
16
+ extends Mage_Adminhtml_Block_Widget_Grid
17
  {
18
  public function __construct()
19
  {
23
  $this->setDefaultDir('ASC');
24
  $this->setSaveParametersInSession(false);
25
  }
26
+
27
  protected function _prepareCollection()
28
  {
29
  $collection = Mage::registry('productattribute_sets');
30
+
31
  // prepare visible fields
32
+ foreach ($collection as $item) {
 
33
  $item->setFrontendCategoriesSource($item->frontendCategoriesSource());
34
  $item->setFrontendBrandAttribute($item->frontendBrandAttribute());
35
  $item->setFrontendCategoryAttribute($item->frontendCategoryAttribute());
36
  $item->setFrontendSubcategoryAttribute($item->frontendSubcategoryAttribute());
37
  }
38
+
39
  $this->setCollection($collection);
40
  return parent::_prepareCollection();
41
  }
42
+
43
  protected function _prepareColumns()
44
  {
45
+ $this->addColumn(
46
+ 'attribute_set', array(
47
+ 'header' => Mage::helper('remarketing')->__('Attribute Set Name'),
48
+ 'align' => 'left',
49
+ 'index' => 'attribute_set_name',
50
+ 'filter' => false
51
+ )
52
+ );
53
+
54
+ $this->addColumn(
55
+ 'brand_attribute', array(
56
+ 'header' => Mage::helper('remarketing')->__('Brand Attribute'),
57
+ 'align' => 'left',
58
+ 'index' => 'frontend_brand_attribute',
59
+ 'filter' => false
60
+ )
61
+ );
62
+
63
+ $this->addColumn(
64
+ 'categories_source', array(
65
+ 'header' => Mage::helper('remarketing')->__('Category Source'),
66
+ 'align' => 'left',
67
+ 'index' => 'frontend_categories_source',
68
+ 'filter' => false
69
+ )
70
+ );
71
+
72
+ $this->addColumn(
73
+ 'category_attribute', array(
74
+ 'header' => Mage::helper('remarketing')->__('Category Attribute'),
75
+ 'align' => 'left',
76
+ 'index' => 'frontend_category_attribute',
77
+ 'filter' => false
78
+ )
79
+ );
80
+
81
+ $this->addColumn(
82
+ 'subcategory_attribute', array(
83
+ 'header' => Mage::helper('remarketing')->__('Subcategory Attribute'),
84
+ 'align' => 'left',
85
+ 'index' => 'frontend_subcategory_attribute',
86
+ 'filter' => false
87
+ )
88
+ );
89
+
90
  return parent::_prepareColumns();
91
  }
92
+
93
  public function getRowUrl($row)
94
  {
95
  return $this->getUrl('*/*/edit', array('id' => $row->getId()));
96
  }
97
  }
98
 
 
app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Init/Brands.php CHANGED
@@ -1,31 +1,43 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_Productattributes_Init_Brands extends Mage_Adminhtml_Block_Template
 
6
  {
7
  public function __construct()
8
  {
9
  parent::__construct();
10
  $this->setTemplate('listrak/remarketing/productattributes/form/initbrands.phtml');
11
  }
12
-
13
  public function _prepareLayout()
14
  {
15
- $this->setChild('form', $this->getLayout()->createBlock('remarketing/adminhtml_productattributes_init_brands_form'));
16
- $this->setChild('form-elements', $this->getLayout()->createBlock('remarketing/adminhtml_productattributes_init_brands_form_attributes'));
 
 
17
  return parent::_prepareLayout();
18
  }
19
-
20
  public function getFormHtml()
21
  {
22
  return $this->getChildHtml('form');
23
  }
24
-
25
  public function getFormElementsHtml()
26
  {
27
  return $this->getChildHtml('form-elements');
28
  }
29
  }
30
 
31
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_Productattributes_Init_Brands
16
+ extends Mage_Adminhtml_Block_Template
17
  {
18
  public function __construct()
19
  {
20
  parent::__construct();
21
  $this->setTemplate('listrak/remarketing/productattributes/form/initbrands.phtml');
22
  }
23
+
24
  public function _prepareLayout()
25
  {
26
+ $this->setChild(
27
+ 'form',
28
+ $this->getLayout()->createBlock('remarketing/adminhtml_productattributes_init_brands_form')
29
+ );
30
  return parent::_prepareLayout();
31
  }
32
+
33
  public function getFormHtml()
34
  {
35
  return $this->getChildHtml('form');
36
  }
37
+
38
  public function getFormElementsHtml()
39
  {
40
  return $this->getChildHtml('form-elements');
41
  }
42
  }
43
 
 
app/code/community/Listrak/Remarketing/Block/Adminhtml/Productattributes/Init/Brands/Form.php CHANGED
@@ -1,67 +1,83 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Block_Adminhtml_Productattributes_Init_Brands_Form extends Mage_Adminhtml_Block_Widget_Form
 
6
  {
7
  protected function _prepareForm()
8
  {
9
- $form = new Varien_Data_Form(array(
10
- 'id' => 'bulk_form',
11
- 'action' => $this->getUrl('*/*/bulkassign'),
12
- 'method' => 'post'
13
- ));
 
 
14
 
15
  $attributeCodes = array();
16
  $attributeCodes[''] = '- No Brand Attribute -';
17
- foreach($this->availableAttributes() as $key => $value)
18
- {
19
  $attributeCodes[$key] = $value;
20
  }
21
-
22
- $form->addField('bulkassign_attribute', 'select', array(
23
- 'label' => Mage::helper('remarketing')->__('Attribute'),
24
- 'name' => 'bulkassign_attribute',
25
- 'values' => $attributeCodes
26
- ));
27
-
28
- $form->addField('bulkassign_submit', 'button', array(
29
- 'class' => 'form-button',
30
- 'value' => Mage::helper('remarketing')->__('Set')
31
- ));
32
-
 
 
 
 
 
 
 
 
33
  $form->setUseContainer(true);
34
  $this->setForm($form);
35
  return parent::_prepareForm();
36
  }
37
-
38
  public function availableAttributes()
39
  {
40
  $everything = Mage::registry('productattribute_sets');
41
  $attributes = array();
42
-
43
- foreach($everything as $item)
44
- {
45
- if ($item->getBrandAttributeCode() == null)
46
- {
47
  //get the attributes for this attribute set and add them to the attributes array
48
  $collection = Mage::getResourceModel('catalog/product_attribute_collection')
49
  ->setAttributeSetFilter($item->getAttributeSetId())
50
  ->addVisibleFilter();
51
- foreach($collection as $attribute)
52
- {
53
- if (!array_key_exists($attribute->getAttributeCode(), $attributes))
54
- {
55
- $attributes[$attribute->getAttributeCode()] = $attribute->getFrontendLabel() . ' ('. $attribute->getAttributeCode() . ')';
56
  }
57
  }
58
  }
59
  }
60
-
61
  asort($attributes);
62
-
63
  return $attributes;
64
  }
65
  }
66
 
67
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Block_Adminhtml_Productattributes_Init_Brands_Form
16
+ extends Mage_Adminhtml_Block_Widget_Form
17
  {
18
  protected function _prepareForm()
19
  {
20
+ $form = new Varien_Data_Form(
21
+ array(
22
+ 'id' => 'bulk_form',
23
+ 'action' => $this->getUrl('*/*/bulkassign'),
24
+ 'method' => 'post'
25
+ )
26
+ );
27
 
28
  $attributeCodes = array();
29
  $attributeCodes[''] = '- No Brand Attribute -';
30
+ foreach ($this->availableAttributes() as $key => $value) {
 
31
  $attributeCodes[$key] = $value;
32
  }
33
+
34
+ $form->addField(
35
+ 'bulkassign_attribute',
36
+ 'select',
37
+ array(
38
+ 'label' => Mage::helper('remarketing')->__('Attribute'),
39
+ 'name' => 'bulkassign_attribute',
40
+ 'values' => $attributeCodes
41
+ )
42
+ );
43
+
44
+ $form->addField(
45
+ 'bulkassign_submit',
46
+ 'button',
47
+ array(
48
+ 'class' => 'form-button',
49
+ 'value' => Mage::helper('remarketing')->__('Set')
50
+ )
51
+ );
52
+
53
  $form->setUseContainer(true);
54
  $this->setForm($form);
55
  return parent::_prepareForm();
56
  }
57
+
58
  public function availableAttributes()
59
  {
60
  $everything = Mage::registry('productattribute_sets');
61
  $attributes = array();
62
+
63
+ foreach ($everything as $item) {
64
+ if ($item->getBrandAttributeCode() == null) {
 
 
65
  //get the attributes for this attribute set and add them to the attributes array
66
  $collection = Mage::getResourceModel('catalog/product_attribute_collection')
67
  ->setAttributeSetFilter($item->getAttributeSetId())
68
  ->addVisibleFilter();
69
+ foreach ($collection as $attribute) {
70
+ if (!array_key_exists($attribute->getAttributeCode(), $attributes)) {
71
+ $attributes[$attribute->getAttributeCode()] = $attribute->getFrontendLabel()
72
+ . ' (' . $attribute->getAttributeCode() . ')';
 
73
  }
74
  }
75
  }
76
  }
77
+
78
  asort($attributes);
79
+
80
  return $attributes;
81
  }
82
  }
83
 
 
app/code/community/Listrak/Remarketing/Block/Ecjs.php CHANGED
@@ -1,107 +1,126 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  class Listrak_Remarketing_Block_Ecjs extends Mage_Core_Block_Text
6
  {
7
-
8
- public function getPageName()
9
- {
10
- return $this->_getData('page_name');
11
- }
12
-
13
- public function getMatchingPages()
14
- {
15
- $fullMatches = array();
16
-
17
- try {
18
- $route = Mage::app()->getRequest()->getRouteName();
19
- $controller = Mage::app()->getRequest()->getControllerName();
20
- $action = Mage::app()->getRequest()->getActionName();
21
-
22
- $matches = array();
23
- $matches[] = '/' . $route . '/' . $controller . '/' . $action . '/';
24
- $matches[] = '/' . $route . '/' . $controller . '/' . $action;
25
- $matches[] = '/' . $route . '/' . $controller . '/*';
26
- $matches[] = '/' . $route . '/' . $controller . '/';
27
- $matches[] = '/' . $route . '/*/*';
28
- $matches[] = '/' . $route . '/*';
29
- $matches[] = '/*/*/*';
30
- $matches[] = '/*/*';
31
- $matches[] = '/*';
32
- $matches[] = '';
33
-
34
- if(strtolower($action) == 'index') {
35
- $matches[] = '/' . $route . '/' . $controller;
36
- }
37
- if(strtolower($action) == 'index' && strtolower($controller) == 'index') {
38
- $matches[] = '/' . $route;
39
- }
40
-
41
- foreach($matches as $match) {
42
- $fullMatches[] = $match;
43
- if($match && $match{0} && $match{0} == '/') {
44
- $fullMatches[] = substr($match, 1);
45
- }
46
- }
47
- }
48
- catch(Exception $ex) {
49
- Mage::getModel("listrak/log")->addException($ex);
50
- }
51
-
52
- return $fullMatches;
53
- }
54
-
55
- protected function _toHtml()
56
- {
57
- if (!Mage::helper('remarketing')->coreEnabled())
58
- return "";
59
-
60
- $collections = Mage::getModel('listrak/emailcapture')->getCollection()->addFieldToFilter('page', $this->getMatchingPages());
61
-
62
- if($collections && $collections->count()) {
63
- $html = array();
64
- $observed = array();
65
-
66
- $html[] = '<script type="text/javascript">';
67
- $html[] = 'arrEcjs = [];';
68
- $html[] = 'function _ecjs(ecid,email) { new Ajax.Request("' . $this->getAjaxUrl() . '", {parameters:{cid: ecid, email: email}}); }';
69
- $html[] = 'function ecjsInit() {' .
70
- 'for(var ecjsi = 0; ecjsi < arrEcjs.length; ecjsi++) {' .
71
- 'if($(arrEcjs[ecjsi].id)) {' .
72
- '$(arrEcjs[ecjsi].id).stopObserving("change", arrEcjs[ecjsi].fn);' .
73
- '$(arrEcjs[ecjsi].id).observe("change", arrEcjs[ecjsi].fn);' .
74
- '}' .
75
- '}' .
76
- '}';
77
-
78
- foreach($collections as $observer) {
79
- if(!in_array($observer->getFieldId(), $observed)) {
80
- $html[] = 'arrEcjs.push({id:"'. $observer->getFieldId() .'", fn: function() { _ecjs('. $observer->getEmailcaptureId() . ', $(this).value);}});';
81
- $observed[] = $observer->getFieldId();
82
- }
83
- }
84
-
85
- $html[] = 'document.observe("dom:loaded", function() { ecjsInit(); ';
86
- $html[] = 'Ajax.Responders.register({' .
87
- 'onComplete: function() {' .
88
- 'ecjsInit();' .
89
- '}' .
90
- '});});';
91
-
92
- if($observed && count($observed) === 0) {
93
- return "";
94
- }
95
-
96
- $html[] = '</script>';
97
- return implode("\n", $html);
98
- }
99
-
100
- return "";
101
- }
102
-
103
- public function getAjaxUrl()
104
- {
105
- return Mage::getUrl('remarketing/email', array('_secure' => Mage::app()->getStore()->isCurrentlySecure()));
106
- }
 
 
 
 
 
 
 
 
 
107
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  class Listrak_Remarketing_Block_Ecjs extends Mage_Core_Block_Text
16
  {
17
+
18
+ public function getPageName()
19
+ {
20
+ return $this->_getData('page_name');
21
+ }
22
+
23
+ public function getMatchingPages()
24
+ {
25
+ $fullMatches = array();
26
+
27
+ try {
28
+ $route = Mage::app()->getRequest()->getRouteName();
29
+ $controller = Mage::app()->getRequest()->getControllerName();
30
+ $action = Mage::app()->getRequest()->getActionName();
31
+
32
+ $matches = array();
33
+ $matches[] = '/' . $route . '/' . $controller . '/' . $action . '/';
34
+ $matches[] = '/' . $route . '/' . $controller . '/' . $action;
35
+ $matches[] = '/' . $route . '/' . $controller . '/*';
36
+ $matches[] = '/' . $route . '/' . $controller . '/';
37
+ $matches[] = '/' . $route . '/*/*';
38
+ $matches[] = '/' . $route . '/*';
39
+ $matches[] = '/*/*/*';
40
+ $matches[] = '/*/*';
41
+ $matches[] = '/*';
42
+ $matches[] = '';
43
+
44
+ if (strtolower($action) == 'index') {
45
+ $matches[] = '/' . $route . '/' . $controller;
46
+ }
47
+ if (strtolower($action) == 'index' && strtolower($controller) == 'index') {
48
+ $matches[] = '/' . $route;
49
+ }
50
+
51
+ foreach ($matches as $match) {
52
+ $fullMatches[] = $match;
53
+ if ($match && $match{0} && $match{0} == '/') {
54
+ $fullMatches[] = substr($match, 1);
55
+ }
56
+ }
57
+ } catch (Exception $ex) {
58
+ Mage::getModel("listrak/log")->addException($ex);
59
+ }
60
+
61
+ return $fullMatches;
62
+ }
63
+
64
+ protected function _toHtml()
65
+ {
66
+ if (!Mage::helper('remarketing')->coreEnabled()) {
67
+ return "";
68
+ }
69
+
70
+ $collections = Mage::getModel('listrak/emailcapture')->getCollection()->addFieldToFilter(
71
+ 'page',
72
+ $this->getMatchingPages()
73
+ );
74
+
75
+ if ($collections && $collections->count()) {
76
+ $html = array();
77
+ $observed = array();
78
+
79
+ $html[] = '<script type="text/javascript">';
80
+ $html[] = 'arrEcjs = [];';
81
+ $html[] = 'function _ecjs(ecid,email) { new Ajax.Request("' . $this->getAjaxUrl()
82
+ . '", {parameters:{cid: ecid, email: email}}); }';
83
+ $html[] = 'function ecjsInit() {' .
84
+ 'for(var ecjsi = 0; ecjsi < arrEcjs.length; ecjsi++) {' .
85
+ 'if($(arrEcjs[ecjsi].id)) {' .
86
+ '$(arrEcjs[ecjsi].id).stopObserving("change", arrEcjs[ecjsi].fn);' .
87
+ '$(arrEcjs[ecjsi].id).observe("change", arrEcjs[ecjsi].fn);' .
88
+ '}' .
89
+ '}' .
90
+ '}';
91
+
92
+ foreach ($collections as $observer) {
93
+ if (!in_array($observer->getFieldId(), $observed)) {
94
+ $html[] = 'arrEcjs.push({id:"' . $observer->getFieldId()
95
+ . '", fn: function() { _ecjs(' . $observer->getEmailcaptureId()
96
+ . ', $(this).value);}});';
97
+ $observed[] = $observer->getFieldId();
98
+ }
99
+ }
100
+
101
+ $html[] = 'document.observe("dom:loaded", function() { ecjsInit(); ';
102
+ $html[] = 'Ajax.Responders.register({' .
103
+ 'onComplete: function() {' .
104
+ 'ecjsInit();' .
105
+ '}' .
106
+ '});});';
107
+
108
+ if ($observed && count($observed) === 0) {
109
+ return "";
110
+ }
111
+
112
+ $html[] = '</script>';
113
+ return implode("\n", $html);
114
+ }
115
+
116
+ return "";
117
+ }
118
+
119
+ public function getAjaxUrl()
120
+ {
121
+ return Mage::getUrl(
122
+ 'remarketing/email',
123
+ array('_secure' => Mage::app()->getStore()->isCurrentlySecure())
124
+ );
125
+ }
126
  }
app/code/community/Listrak/Remarketing/Block/Modal.php CHANGED
@@ -1,34 +1,51 @@
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
- if (!Mage::helper("remarketing")->coreEnabled())
16
- return "";
17
-
18
- $merchantID = Mage::getStoreConfig('remarketing/modal/listrakMerchantID');
19
- if(!Mage::getStoreConfig('remarketing/modal/enabled') || strlen(Mage::getStoreConfig('remarketing/modal/scriptLocation')) < 1 || strlen(trim($merchantID)) < 12) {
20
- return "";
21
- }
22
-
23
- return '<script type="text/javascript">' .
24
- 'var biJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");' .
25
- 'document.write(unescape("%3Cscript src=\'" + biJsHost + "'. Mage::getStoreConfig('remarketing/modal/scriptLocation') .'?m='. $merchantID .'&v=1\' type=\'text/javascript\'%3E%3C/script%3E"));' .
26
- '</script>'.
27
- '<script type="text/javascript">'.
28
- 'var _mlm = setInterval(function() { '.
29
- 'if(!window.jQuery) { return; }'.
30
- 'clearInterval(_mlm);'.
31
- 'jQuery(document).bind("ltkmodal.show", function() { if(typeof ecjsInit === "function") { ecjsInit(); } }); }, 100);'.
32
- '</script>';
33
- }
 
 
 
 
 
 
 
34
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  class Listrak_Remarketing_Block_Modal extends Mage_Core_Block_Text
16
  {
17
+
18
+ public function getPageName()
19
+ {
20
+ return $this->_getData('page_name');
21
+ }
22
+
23
+ protected function _toHtml()
24
+ {
25
+ if (!Mage::helper("remarketing")->coreEnabled()) {
26
+ return "";
27
+ }
28
+
29
+ $merchantID = Mage::getStoreConfig('remarketing/modal/listrakMerchantID');
30
+ if (!Mage::getStoreConfig('remarketing/modal/enabled')
31
+ || strlen(Mage::getStoreConfig('remarketing/modal/scriptLocation')) < 1
32
+ || strlen(trim($merchantID)) < 12
33
+ ) {
34
+ return "";
35
+ }
36
+
37
+ return '<script type="text/javascript">' .
38
+ 'var biJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");' .
39
+ 'document.write(unescape("%3Cscript src=\'" + biJsHost + "' .
40
+ Mage::getStoreConfig('remarketing/modal/scriptLocation') .
41
+ '?m=' . $merchantID . '&v=1\' type=\'text/javascript\'%3E%3C/script%3E"));' .
42
+ '</script>' .
43
+ '<script type="text/javascript">' .
44
+ 'var _mlm = setInterval(function() { ' .
45
+ 'if(!window.jQuery) { return; }' .
46
+ 'clearInterval(_mlm);jQuery' .
47
+ '(document).bind("ltkmodal.show", function() { ' .
48
+ 'if(typeof ecjsInit === "function") { ecjsInit(); } }); }, 100);' .
49
+ '</script>';
50
+ }
51
  }
app/code/community/Listrak/Remarketing/Helper/Data.php CHANGED
@@ -1,79 +1,110 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Helper_Data extends Mage_Core_Helper_Abstract
 
6
  {
7
- private $customer_groups;
8
-
9
- public function setGroupNameAndGenderNameForCustomer($customer) {
10
- if ($customer_groups == null) {
11
- $customer_groups = array();
12
- foreach (Mage::getModel('customer/group')->getCollection() as $group)
13
- $customer_groups[$group['customer_group_id']] = $group['customer_group_code'];
14
- }
15
- if (array_key_exists($customer->getGroupId(), $customer_groups))
16
- $customer->setGroupName($customer_groups[$customer->getGroupId()]);
17
- $customer->setGenderName(Mage::getResourceSingleton('customer/customer')->getAttribute('gender')->getSource()->getOptionText($customer->getGender()));
18
- }
19
-
20
- public function gen_uuid() {
21
- return sprintf( '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
22
- // 32 bits for "time_low"
23
- mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ),
24
-
25
- // 16 bits for "time_mid"
26
- mt_rand( 0, 0xffff ),
27
-
28
- // 16 bits for "time_hi_and_version",
29
- // four most significant bits holds version number 4
30
- mt_rand( 0, 0x0fff ) | 0x4000,
31
-
32
- // 16 bits, 8 bits for "clk_seq_hi_res",
33
- // 8 bits for "clk_seq_low",
34
- // two most significant bits holds zero and one for variant DCE1.1
35
- mt_rand( 0, 0x3fff ) | 0x8000,
36
-
37
- // 48 bits for "node"
38
- mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff )
39
- );
40
- }
41
-
42
- public function checkSetupStatus() {
43
- return Mage::getStoreConfig('remarketing/config/account_created');
44
- }
45
-
46
- public function displayAttributeSetNotification() {
47
- return (Mage::helper('remarketing/product_attribute_set_map')->newAttributeSetsCollection()->count() > 0);
48
- }
49
-
50
- public function coreEnabled() {
51
- return Mage::getStoreConfig('remarketing/modules/core');
52
- }
53
-
54
- public function reviewsEnabled() {
55
- return Mage::getStoreConfig('remarketing/modules/reviews');
56
- }
57
-
58
- public function requireCoreEnabled() {
59
- if (!$this->coreEnabled())
60
- throw new Exception('Listrak core functionality has been turned off in the System Configuration.');
61
- }
62
-
63
- public function requireReviewsEnabled() {
64
- if (!$this->reviewsEnabled())
65
- throw new Exception('Listrak reviews API has been turned off in the System Configuration.');
66
- }
67
-
68
- public function categoriesSource() {
69
- return Mage::getStoreConfig('remarketing/productcategories/categories_source');
70
- }
71
-
72
- public function getCategoryRootIdForStore($storeId)
73
- {
74
- return Mage::getModel('core/store_group')
75
- ->load(Mage::getModel('core/store')->load($storeId)->getGroupId())
76
- ->getRootCategoryId();
77
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  }
79
-
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Helper_Data
16
+ extends Mage_Core_Helper_Abstract
17
  {
18
+ private $_customerGroups;
19
+ private $_categoryRootIdForStores = array();
20
+
21
+ public function setGroupNameAndGenderNameForCustomer($customer)
22
+ {
23
+ if ($this->_customerGroups == null) {
24
+ $this->_customerGroups = array();
25
+ foreach (Mage::getModel('customer/group')->getCollection() as $group) {
26
+ $this->_customerGroups[$group['customer_group_id']] = $group['customer_group_code'];
27
+ }
28
+ }
29
+ if (array_key_exists($customer->getGroupId(), $this->_customerGroups)) {
30
+ $customer->setGroupName($this->_customerGroups[$customer->getGroupId()]);
31
+ }
32
+ $customer->setGenderName(
33
+ Mage::getResourceSingleton('customer/customer')
34
+ ->getAttribute('gender')
35
+ ->getSource()
36
+ ->getOptionText($customer->getGender())
37
+ );
38
+ }
39
+
40
+ public function genUuid()
41
+ {
42
+ // 32 bits for "time_low"
43
+ // 16 bits for "time_mid"
44
+ // 16 bits for "time_hi_and_version", four most significant bits holds version number 4
45
+ // 16 bits, 8 bits for "clk_seq_hi_res", 8 bits for "clk_seq_low",
46
+ // two most significant bits holds zero and one for variant DCE1.1
47
+ // 48 bits for "node"
48
+ return sprintf(
49
+ '%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
50
+ mt_rand(0, 0xffff), mt_rand(0, 0xffff),
51
+ mt_rand(0, 0xffff),
52
+ mt_rand(0, 0x0fff) | 0x4000,
53
+ mt_rand(0, 0x3fff) | 0x8000,
54
+ mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff)
55
+ );
56
+ }
57
+
58
+ public function checkSetupStatus()
59
+ {
60
+ return Mage::getStoreConfig('remarketing/config/account_created');
61
+ }
62
+
63
+ public function displayAttributeSetNotification()
64
+ {
65
+ return (Mage::helper('remarketing/product_attribute_set_map')->newAttributeSetsCollection()->count() > 0);
66
+ }
67
+
68
+ public function coreEnabled()
69
+ {
70
+ return Mage::getStoreConfig('remarketing/modules/core');
71
+ }
72
+
73
+ public function reviewsEnabled()
74
+ {
75
+ return Mage::getStoreConfig('remarketing/modules/reviews');
76
+ }
77
+
78
+ public function requireCoreEnabled()
79
+ {
80
+ if (!$this->coreEnabled()) {
81
+ throw new Exception('Listrak core functionality has been turned off in the System Configuration.');
82
+ }
83
+ }
84
+
85
+ public function requireReviewsEnabled()
86
+ {
87
+ if (!$this->reviewsEnabled()) {
88
+ throw new Exception('Listrak reviews API has been turned off in the System Configuration.');
89
+ }
90
+ }
91
+
92
+ public function categoriesSource()
93
+ {
94
+ return Mage::getStoreConfig('remarketing/productcategories/categories_source');
95
+ }
96
+
97
+ public function getCategoryRootIdForStore($storeId)
98
+ {
99
+ if (!array_key_exists($storeId, $this->_categoryRootIdForStores)) {
100
+ $this->_categoryRootIdForStores[$storeId] = Mage::getModel('core/store_group')
101
+ ->load(
102
+ Mage::getModel('core/store')
103
+ ->load($storeId)
104
+ ->getGroupId()
105
+ )
106
+ ->getRootCategoryId();
107
+ }
108
+ return $this->_categoryRootIdForStores[$storeId];
109
+ }
110
  }
 
app/code/community/Listrak/Remarketing/Helper/Product.php CHANGED
@@ -1,214 +1,275 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Helper_Product extends Mage_Core_Helper_Abstract
 
6
  {
7
- private $parentsById = array();
8
- private $attributeSets = null;
9
- private $categoryNames = array();
10
- private $baseDir = null;
11
- private $baseMediaPath = null;
12
- private $imageModel = null;
13
-
14
- public function getProductEntity($product, $includeBrandAndCategory = true, $includeInventory = true, $includeConfigurableAttributes = true) {
15
- $result = array();
16
-
17
- $result['entity_id'] = $product->getEntityId();
18
- $result['sku'] = $product->getSku();
19
- $result['name'] = $product->getName();
20
- $result['price'] = $product->getPrice();
21
- $result['special_price'] = $product->getSpecialPrice();
22
- $result['special_from_date'] = $product->getSpecialFromDate();
23
- $result['special_to_date'] = $product->getSpecialToDate();
24
- $result['cost'] = $product->getCost();
25
- $result['description'] = $product->getDescription();
26
- $result['short_description'] = $product->getShortDescription();
27
- $result['weight'] = $product->getWeight();
28
- $result['url_key'] = $product->getUrlKey();
29
- if ($product->isVisibleInSiteVisibility())
30
- $result['url_path'] = $product->getUrlPath();
31
-
32
- $thumbnailProduct = $small_imageProduct = $imageProduct = $product;
33
- $parentProduct = $this->getParentProduct($product);
34
- if ($parentProduct != null)
35
- {
36
- $result['parent_id'] = $parentProduct->getEntityId();
37
- $result['parent_sku'] = $parentProduct->getSku();
38
-
39
- if (!$product->isVisibleInSiteVisibility()) {
40
- $result['name'] = $parentProduct->getName();
41
- $result['url_path'] = $parentProduct->getUrlPath();
42
- $result['url_key'] = $parentProduct->getUrlKey();
43
- }
44
-
45
- $useParent = Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE == $parentProduct->getTypeId() && Mage::getStoreConfig(Mage_Checkout_Block_Cart_Item_Renderer_Configurable::CONFIGURABLE_PRODUCT_IMAGE) == Mage_Checkout_Block_Cart_Item_Renderer_Configurable::USE_PARENT_IMAGE;
46
- if (!$product->getData('image') || ($product->getData('image') == 'no_selection') || $useParent) $imageProduct = $parentProduct;
47
- if (!$product->getData('small_image') || ($product->getData('small_image') == 'no_selection') || $useParent) $small_imageProduct = $parentProduct;
48
- if (!$product->getData('thumbnail') || ($product->getData('thumbnail') == 'no_selection') || $useParent) $thumbnailProduct = $parentProduct;
49
-
50
- if ($includeConfigurableAttributes && Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE == $parentProduct->getTypeId())
51
- foreach ($parentProduct->getTypeInstance(true)->getUsedProductAttributes($parentProduct) as $attribute)
52
- {
53
- if (!array_key_exists('configurable_attributes', $result)) $result['configurable_attributes'] = array();
54
- $attr = array();
55
- $attr['attribute_name'] = $attribute->getFrontend()->getLabel();
56
- $attr['value'] = $product->getAttributeText($attribute->getAttributeCode());
57
- $result['configurable_attributes'][] = $attr;
58
- }
59
- }
60
- $result['image'] = $this->getProductImage($imageProduct, 'image');
61
- $result['small_image'] = $this->getProductImage($small_imageProduct, 'small_image');
62
- $result['thumbnail'] = $this->getProductImage($thumbnailProduct, 'thumbnail');
63
-
64
- if ($includeBrandAndCategory)
65
- {
66
- $setSettings = $this->getProductAttributeSetSettings($product);
67
-
68
- if ($setSettings['brandAttribute'] != null)
69
- $result['brand'] = $product->getAttributeText($setSettings['brandAttribute']);
70
-
71
- if ($setSettings['catFromMagento'])
72
- {
73
- $categories = $this->getCategoryIds($product, $categoryRootId);
74
- if (array_key_exists('category_id', $categories))
75
- {
76
- $catId = $categories['category_id'];
77
- if (!array_key_exists($catId, $categoryNames))
78
- $categoryNames[$catId] = $this->getCategoryName($catId);
79
-
80
- $result['category'] = $categoryNames[$catId];
81
- }
82
- if (array_key_exists('sub_category_id', $categories))
83
- {
84
- $catId = $categories['sub_category_id'];
85
- if (!array_key_exists($catId, $categoryNames))
86
- $categoryNames[$catId] = $this->getCategoryName($catId);
87
-
88
- $result['sub_category'] = $categoryNames[$catId];
89
- }
90
- }
91
- else if ($setSettings['catFromAttributes'])
92
- {
93
- if ($setSettings['categoryAttribute'] != null)
94
- $result['category'] = $product->getAttributeText($setSettings['categoryAttribute']);
95
-
96
- if ($setSettings['subcategoryAttribute'] != null)
97
- $result['sub_category'] = $product->getAttributeText($setSettings['subcategoryAttribute']);
98
- }
99
- }
100
-
101
- if ($includeInventory)
102
- {
103
- $result['in_stock'] = $product->isAvailable() ? "true" : "false";
104
- $stockItem = $product->getStockItem();
105
- if ($stockItem)
106
- $result['qty_on_hand'] = $stockItem->getStockQty();
107
- }
108
-
109
- $result['type'] = $product->getTypeId();
110
-
111
- return $result;
112
- }
113
-
114
-
115
- private function getProductImage($product, $imageType) {
116
- if ($baseDir == null) $baseDir = Mage::getBaseDir();
117
- if ($baseMediaPath == null) $baseMediaPath = Mage::getSingleton('catalog/product_media_config')->getBaseMediaPath();
118
- if ($imageModel == null) $imageModel = Mage::getModel('catalog/product_image');
119
- $imageModel->setDestinationSubdir($imageType);
120
- try {
121
- $imageModel->setBaseFile($product->getData($imageType));
122
- $imageBaseFile = $imageModel->getBaseFile();
123
- if (!(false === strpos($imageBaseFile, $baseMediaPath)))
124
- return substr($imageBaseFile, strlen($baseMediaPath));
125
- return '/../../..'.substr($imageBaseFile, strlen($baseDir));
126
- }
127
- catch (Exception $e) {
128
- return null;
129
- }
130
- }
131
-
132
- private function getParentProduct($product)
133
- {
134
- $parentIds = Mage::getModel('catalog/product_type_configurable')
135
- ->getParentIdsByChild($product->getEntityId());
136
-
137
- if (is_array($parentIds) && count($parentIds) > 0)
138
- {
139
- if (count($parentIds) > 1) Mage::getModel("listrak/log")->addException("Product has multiple parents: sku=" . $product->getSku() . " parentIds=" . implode(', ', $parentIds));
140
-
141
- $parentId = $parentIds[0];
142
- if ($parentId != null)
143
- {
144
- if (!array_key_exists($parentId, $parentsById))
145
- $parentsById[$parentId] = Mage::getModel('catalog/product')
146
- ->load($parentId);
147
- return $parentsById[$parentId];
148
- }
149
- }
150
-
151
- return null;
152
- }
153
-
154
- private function getProductAttributeSetSettings($product) {
155
- if ($attributeSets == null) {
156
- $categoryRootId = Mage::helper('remarketing')->getCategoryRootIdForStore($storeId);
157
-
158
- $attributeSets = array(0 => array(
159
- //default values
160
- 'brandAttribute' => null,
161
- 'catFromMagento' => true,
162
- 'catFromAttributes' => false,
163
- 'categoryAttribute' => null,
164
- 'subcategoryAttribute' => null
165
- ));
166
-
167
- $attributeSetSettings = Mage::getModel('listrak/product_attribute_set_map')
168
- ->getCollection();
169
- foreach($attributeSetSettings as $setSettings)
170
- {
171
- $attributeSets[$setSettings->getAttributeSetId()] = array(
172
- 'brandAttribute' => $setSettings->getBrandAttributeCode(),
173
- 'catFromMagento' => $setSettings->finalCategoriesSource() == 'default',
174
- 'catFromAttributes' => $setSettings->finalCategoriesSource() == 'attributes',
175
- 'categoryAttribute' => $setSettings->getCategoryAttributeCode(),
176
- 'subcategoryAttribute' => $setSettings->getSubcategoryAttributeCode()
177
- );
178
- }
179
- }
180
- return array_key_exists($product->getAttributeSetId(), $attributeSets) ? $attributeSets[$product->getAttributeSetId()] : $attributeSets[0];
181
- }
182
-
183
- private function getCategoryIds($product, $categoryRootId = null)
184
- {
185
- $categories = $product->getCategoryCollection();
186
- $final = array();
187
-
188
- foreach($categories as $category)
189
- {
190
- $pathIds = $category->getPathIds();
191
- if ($categoryRootId == null || $pathIds[1] == $categoryRootId)
192
- {
193
- if (count($pathIds) > 2)
194
- $final['category_id'] = $pathIds[2];
195
- if (count($pathIds) > 3)
196
- $final['sub_category_id'] = $pathIds[3];
197
-
198
- break;
199
- }
200
- }
201
-
202
- return $final;
203
- }
204
-
205
- private function getCategoryName($categoryId)
206
- {
207
- $category = Mage::getModel('catalog/category')
208
- ->load($categoryId);
209
-
210
- if ($category != null)
211
- return $category->getName();
212
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  }
214
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Helper_Product
16
+ extends Mage_Core_Helper_Abstract
17
  {
18
+ private $_parentsById = array();
19
+ private $_attributeSets = null;
20
+ private $_categoryNames = array();
21
+ private $_baseDir = null;
22
+ private $_baseMediaPath = null;
23
+ private $_imageModel = null;
24
+
25
+ public function getProductEntity(Mage_Catalog_Model_Product $product, $storeId,
26
+ $includeBrandAndCategory = true, $includeInventory = true,
27
+ $includeConfigurableAttributes = true
28
+ )
29
+ {
30
+ $result = array();
31
+
32
+ $result['entity_id'] = $product->getEntityId();
33
+ $result['sku'] = $product->getSku();
34
+ $result['name'] = $product->getName();
35
+ $result['price'] = $product->getPrice();
36
+ $result['special_price'] = $product->getSpecialPrice();
37
+ $result['special_from_date'] = $product->getSpecialFromDate();
38
+ $result['special_to_date'] = $product->getSpecialToDate();
39
+ $result['cost'] = $product->getCost();
40
+ $result['description'] = $product->getDescription();
41
+ $result['short_description'] = $product->getShortDescription();
42
+ $result['weight'] = $product->getWeight();
43
+ $result['url_key'] = $product->getUrlKey();
44
+ if ($product->isVisibleInSiteVisibility()) {
45
+ $result['url_path'] = $product->getUrlPath();
46
+ }
47
+
48
+ $thumbnailProduct = $smallImageProduct = $imageProduct = $product;
49
+ $parentProduct = $this->_getParentProduct($product);
50
+ if ($parentProduct != null) {
51
+ $result['parent_id'] = $parentProduct->getEntityId();
52
+ $result['parent_sku'] = $parentProduct->getSku();
53
+
54
+ if (!$product->isVisibleInSiteVisibility()) {
55
+ $result['name'] = $parentProduct->getName();
56
+ $result['url_path'] = $parentProduct->getUrlPath();
57
+ $result['url_key'] = $parentProduct->getUrlKey();
58
+ }
59
+
60
+ $useParent = Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE == $parentProduct->getTypeId()
61
+ && Mage::getStoreConfig(
62
+ Mage_Checkout_Block_Cart_Item_Renderer_Configurable::CONFIGURABLE_PRODUCT_IMAGE
63
+ )
64
+ == Mage_Checkout_Block_Cart_Item_Renderer_Configurable::USE_PARENT_IMAGE;
65
+
66
+ if (!$product->getData('image')
67
+ || ($product->getData('image') == 'no_selection')
68
+ || $useParent
69
+ ) {
70
+ $imageProduct = $parentProduct;
71
+ }
72
+ if (!$product->getData('small_image')
73
+ || ($product->getData('small_image') == 'no_selection')
74
+ || $useParent
75
+ ) {
76
+ $smallImageProduct = $parentProduct;
77
+ }
78
+ if (!$product->getData('thumbnail')
79
+ || ($product->getData('thumbnail') == 'no_selection')
80
+ || $useParent
81
+ ) {
82
+ $thumbnailProduct = $parentProduct;
83
+ }
84
+
85
+ if ($includeConfigurableAttributes
86
+ && Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE == $parentProduct->getTypeId()
87
+ ) {
88
+ foreach (
89
+ $parentProduct
90
+ ->getTypeInstance(true)
91
+ ->getUsedProductAttributes($parentProduct) as $attribute) {
92
+ if (!array_key_exists('configurable_attributes', $result)) {
93
+ $result['configurable_attributes'] = array();
94
+ }
95
+ $attr = array();
96
+ $attr['attribute_name'] = $attribute->getFrontend()->getLabel();
97
+ $attr['value'] = $product->getAttributeText($attribute->getAttributeCode());
98
+ $result['configurable_attributes'][] = $attr;
99
+ }
100
+ }
101
+ }
102
+ $result['image'] = $this->_getProductImage($imageProduct, 'image');
103
+ $result['small_image'] = $this->_getProductImage($smallImageProduct, 'small_image');
104
+ $result['thumbnail'] = $this->_getProductImage($thumbnailProduct, 'thumbnail');
105
+
106
+ if ($includeBrandAndCategory) {
107
+ $setSettings = $this->_getProductAttributeSetSettings($product);
108
+
109
+ if ($setSettings['brandAttribute'] != null) {
110
+ $result['brand'] = $product->getAttributeText($setSettings['brandAttribute']);
111
+ }
112
+
113
+ if ($setSettings['catFromMagento']) {
114
+ $categoryRootId = Mage::helper('remarketing')->getCategoryRootIdForStore($storeId);
115
+ $categories = $this->_getCategoryIds($product, $categoryRootId);
116
+ if (array_key_exists('category_id', $categories)) {
117
+ $catId = $categories['category_id'];
118
+ if (!array_key_exists($catId, $this->_categoryNames)) {
119
+ $this->_categoryNames[$catId] = $this->_getCategoryName($catId);
120
+ }
121
+
122
+ $result['category'] = $this->_categoryNames[$catId];
123
+ }
124
+ if (array_key_exists('sub_category_id', $categories)) {
125
+ $catId = $categories['sub_category_id'];
126
+ if (!array_key_exists($catId, $this->_categoryNames)) {
127
+ $this->_categoryNames[$catId] = $this->_getCategoryName($catId);
128
+ }
129
+
130
+ $result['sub_category'] = $this->_categoryNames[$catId];
131
+ }
132
+ } else {
133
+ if ($setSettings['catFromAttributes']) {
134
+ if ($setSettings['categoryAttribute'] != null) {
135
+ $result['category'] = $product->getAttributeText($setSettings['categoryAttribute']);
136
+ }
137
+
138
+ if ($setSettings['subcategoryAttribute'] != null) {
139
+ $result['sub_category'] = $product->getAttributeText($setSettings['subcategoryAttribute']);
140
+ }
141
+ }
142
+ }
143
+ }
144
+
145
+ if ($includeInventory) {
146
+ $result['in_stock'] = $product->isAvailable() ? "true" : "false";
147
+ $stockItem = $product->getStockItem();
148
+ if ($stockItem) {
149
+ $result['qty_on_hand'] = $stockItem->getStockQty();
150
+ }
151
+ }
152
+
153
+ $result['type'] = $product->getTypeId();
154
+
155
+ return $result;
156
+ }
157
+
158
+ private function _getProductImage(Mage_Catalog_Model_Product $product,
159
+ $imageType)
160
+ {
161
+ try {
162
+ if ($this->_baseDir == null) {
163
+ $this->_baseDir = Mage::getBaseDir();
164
+ }
165
+ if ($this->_baseMediaPath == null) {
166
+ $this->_baseMediaPath = Mage::getSingleton('catalog/product_media_config')->getBaseMediaPath();
167
+ }
168
+ if ($this->_imageModel == null) {
169
+ $this->_imageModel = Mage::getModel('catalog/product_image');
170
+ }
171
+ $this->_imageModel->setDestinationSubdir($imageType);
172
+ $this->_imageModel->setBaseFile($product->getData($imageType));
173
+ $imageBaseFile = $this->_imageModel->getBaseFile();
174
+ if (!(false === strpos($imageBaseFile, $this->_baseMediaPath))) {
175
+ return substr($imageBaseFile, strlen($this->_baseMediaPath));
176
+ }
177
+ return '/../../..' . substr($imageBaseFile, strlen($this->_baseDir));
178
+ } catch (Exception $ex) {
179
+ Mage::getModel("listrak/log")->addException(
180
+ 'Failed to get product image for product '.$product->getEntityId().': '.$ex
181
+ );
182
+ }
183
+ return null;
184
+ }
185
+
186
+ private function _getParentProduct(Mage_Catalog_Model_Product $product)
187
+ {
188
+ $parentIds = Mage::getModel('catalog/product_type_configurable')
189
+ ->getParentIdsByChild($product->getEntityId());
190
+
191
+ if (is_array($parentIds) && count($parentIds) > 0) {
192
+ if (count($parentIds) > 1) {
193
+ Mage::getModel("listrak/log")->addException(
194
+ "Product has multiple parents: sku=" . $product->getSku() . " parentIds=" . implode(
195
+ ', ', $parentIds
196
+ )
197
+ );
198
+ }
199
+
200
+ $parentId = $parentIds[0];
201
+ if ($parentId != null) {
202
+ if (!array_key_exists($parentId, $this->_parentsById)) {
203
+ $this->_parentsById[$parentId] = Mage::getModel('catalog/product')
204
+ ->load($parentId);
205
+ }
206
+ return $this->_parentsById[$parentId];
207
+ }
208
+ }
209
+
210
+ return null;
211
+ }
212
+
213
+ private function _getProductAttributeSetSettings(Mage_Catalog_Model_Product $product)
214
+ {
215
+ if ($this->_attributeSets == null) {
216
+ $this->_attributeSets = array(0 => array(
217
+ //default values
218
+ 'brandAttribute' => null,
219
+ 'catFromMagento' => true,
220
+ 'catFromAttributes' => false,
221
+ 'categoryAttribute' => null,
222
+ 'subcategoryAttribute' => null
223
+ ));
224
+
225
+ $attributeSetSettings = Mage::getModel('listrak/product_attribute_set_map')
226
+ ->getCollection();
227
+ foreach ($attributeSetSettings as $setSettings) {
228
+ $this->_attributeSets[$setSettings->getAttributeSetId()] = array(
229
+ 'brandAttribute' => $setSettings->getBrandAttributeCode(),
230
+ 'catFromMagento' => $setSettings->finalCategoriesSource() == 'default',
231
+ 'catFromAttributes' => $setSettings->finalCategoriesSource() == 'attributes',
232
+ 'categoryAttribute' => $setSettings->getCategoryAttributeCode(),
233
+ 'subcategoryAttribute' => $setSettings->getSubcategoryAttributeCode()
234
+ );
235
+ }
236
+ }
237
+ return array_key_exists($product->getAttributeSetId(), $this->_attributeSets)
238
+ ? $this->_attributeSets[$product->getAttributeSetId()] : $this->_attributeSets[0];
239
+ }
240
+
241
+ private function _getCategoryIds(Mage_Catalog_Model_Product $product,
242
+ $categoryRootId = null)
243
+ {
244
+ $categories = $product->getCategoryCollection();
245
+ $final = array();
246
+
247
+ foreach ($categories as $category) {
248
+ $pathIds = $category->getPathIds();
249
+ if ($categoryRootId == null || $pathIds[1] == $categoryRootId) {
250
+ if (count($pathIds) > 2) {
251
+ $final['category_id'] = $pathIds[2];
252
+ }
253
+ if (count($pathIds) > 3) {
254
+ $final['sub_category_id'] = $pathIds[3];
255
+ }
256
+
257
+ break;
258
+ }
259
+ }
260
+
261
+ return $final;
262
+ }
263
+
264
+ private function _getCategoryName($categoryId)
265
+ {
266
+ $category = Mage::getModel('catalog/category')
267
+ ->load($categoryId);
268
+
269
+ if ($category != null) {
270
+ return $category->getName();
271
+ }
272
+ return null;
273
+ }
274
  }
275
+
app/code/community/Listrak/Remarketing/Helper/Product/Attribute/Set/Map.php CHANGED
@@ -1,22 +1,32 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Helper_Product_Attribute_Set_Map extends Mage_Core_Helper_Abstract
 
6
  {
7
  public function ensureDataConsistency()
8
  {
9
  $newSets = $this->newAttributeSetsCollection();
10
-
11
  // add the new product attribute sets to our table
12
- foreach($newSets as $set)
13
- {
14
  Mage::getModel('listrak/product_attribute_set_map')
15
  ->setAttributeSetId($set->getAttributeSetId())
16
  ->save();
17
  }
18
  }
19
-
20
  public function newAttributeSetsCollection()
21
  {
22
  $r = Mage::getSingleton('core/resource');
@@ -26,7 +36,9 @@ class Listrak_Remarketing_Helper_Product_Attribute_Set_Map extends Mage_Core_Hel
26
  ->setEntityTypeFilter(Mage::getModel('catalog/product')->getResource()->getTypeId());
27
 
28
  // the sets already in the table
29
- $model = new Varien_Db_Select(Mage::getResourceModel('listrak/product_attribute_set_map')->getReadConnection());
 
 
30
  $model
31
  ->from(array('current' => $r->getTableName('listrak/product_attribute_set_map')))
32
  ->where('main_table.attribute_set_id = current.attribute_set_id');
@@ -34,9 +46,8 @@ class Listrak_Remarketing_Helper_Product_Attribute_Set_Map extends Mage_Core_Hel
34
  // new product attribute sets
35
  $allProductSets->getSelect()
36
  ->where('NOT EXISTS (' . $model . ')');
37
-
38
  return $allProductSets;
39
  }
40
  }
41
 
42
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Helper_Product_Attribute_Set_Map
16
+ extends Mage_Core_Helper_Abstract
17
  {
18
  public function ensureDataConsistency()
19
  {
20
  $newSets = $this->newAttributeSetsCollection();
21
+
22
  // add the new product attribute sets to our table
23
+ foreach ($newSets as $set) {
 
24
  Mage::getModel('listrak/product_attribute_set_map')
25
  ->setAttributeSetId($set->getAttributeSetId())
26
  ->save();
27
  }
28
  }
29
+
30
  public function newAttributeSetsCollection()
31
  {
32
  $r = Mage::getSingleton('core/resource');
36
  ->setEntityTypeFilter(Mage::getModel('catalog/product')->getResource()->getTypeId());
37
 
38
  // the sets already in the table
39
+ $model = new Varien_Db_Select(
40
+ Mage::getResourceModel('listrak/product_attribute_set_map')->getReadConnection()
41
+ );
42
  $model
43
  ->from(array('current' => $r->getTableName('listrak/product_attribute_set_map')))
44
  ->where('main_table.attribute_set_id = current.attribute_set_id');
46
  // new product attribute sets
47
  $allProductSets->getSelect()
48
  ->where('NOT EXISTS (' . $model . ')');
49
+
50
  return $allProductSets;
51
  }
52
  }
53
 
 
app/code/community/Listrak/Remarketing/Helper/Review/Update.php CHANGED
@@ -1,40 +1,63 @@
1
- <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Helper_Review_Update extends Mage_Core_Helper_Abstract
6
- {
7
- public function getReviewListCollection($storeId) {
8
- $collection = Mage::getModel('review/review')
9
- ->getCollection()
10
- ->addStoreFilter($storeId);
11
-
12
- $collection
13
- ->getSelect()
14
- ->joinLeft(
15
- array('updatetime' => Mage::getModel('listrak/review_update')->getReviewUpdateCollection()->getSelect()),
16
- "main_table.review_id = updatetime.review_id",
17
- array("updatetime.update_id", "updatetime.updated_at")
18
- )
19
- ->joinLeft(array('employee' => Mage::getSingleton('core/resource')->getTableName('customer/entity')), 'detail.customer_id = employee.entity_id', array('employee.email'));
20
-
21
- return $collection;
22
- }
23
-
24
- public function getRatingSummaryListCollection($storeId) {
25
- $collection = Mage::getModel('review/review_summary')
26
- ->getCollection();
27
-
28
- $collection->getSelect()
29
- ->joinLeft(
30
- array('updatetime' => Mage::getModel('listrak/review_update')->getRatingSummaryUpdateCollection()->getSelect()),
31
- "review_entity_summary.primary_id = updatetime.rating_summary_id AND review_entity_summary.store_id = updatetime.store_id",
32
- array("updatetime.update_id", "updatetime.updated_at")
33
- )
34
- ->where('review_entity_summary.store_id = ?', $storeId);
35
-
36
- return $collection;
37
- }
38
- }
39
-
40
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Helper_Review_Update
16
+ extends Mage_Core_Helper_Abstract
17
+ {
18
+ public function getReviewListCollection($storeId)
19
+ {
20
+ $collection = Mage::getModel('review/review')
21
+ ->getCollection()
22
+ ->addStoreFilter($storeId);
23
+
24
+ $collection
25
+ ->getSelect()
26
+ ->joinLeft(
27
+ array(
28
+ 'updatetime' => Mage::getModel('listrak/review_update')->getReviewUpdateCollection()->getSelect()
29
+ ),
30
+ "main_table.review_id = updatetime.review_id",
31
+ array("updatetime.update_id", "updatetime.updated_at")
32
+ )
33
+ ->joinLeft(
34
+ array(
35
+ 'employee' => Mage::getSingleton('core/resource')->getTableName('customer/entity')
36
+ ),
37
+ 'detail.customer_id = employee.entity_id',
38
+ array('employee.email')
39
+ );
40
+
41
+ return $collection;
42
+ }
43
+
44
+ public function getRatingSummaryListCollection($storeId)
45
+ {
46
+ $collection = Mage::getModel('review/review_summary')
47
+ ->getCollection();
48
+
49
+ $updatetimeSelect = Mage::getModel('listrak/review_update')->getRatingSummaryUpdateCollection()->getSelect();
50
+ $joinOnClause = "review_entity_summary.primary_id = updatetime.rating_summary_id "
51
+ . "AND review_entity_summary.store_id = updatetime.store_id";
52
+ $collection->getSelect()
53
+ ->joinLeft(
54
+ array('updatetime' => $updatetimeSelect),
55
+ $joinOnClause,
56
+ array("updatetime.update_id", "updatetime.updated_at")
57
+ )
58
+ ->where('review_entity_summary.store_id = ?', $storeId);
59
+
60
+ return $collection;
61
+ }
62
+ }
63
+
app/code/community/Listrak/Remarketing/Model/Abandonedcart.php CHANGED
@@ -1,40 +1,50 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Abandonedcart extends Mage_Core_Model_Abstract
 
6
  {
7
- public function _construct()
8
- {
9
- parent::_construct();
10
- $this->_init('listrak/abandonedcart');
11
- }
12
-
13
- public function prepareForReport() {
14
- $session = $this->getSession();
15
- $customer = $session->getCustomer();
16
- $this->setSessionId($session->getSessionId());
17
-
18
- if($customer && $customer->getId()) {
19
- $this->setCustomerName($customer->getFirstname() . ' ' . $customer->getLastname());
20
- $this->setEmail($customer->getEmail());
21
- $this->setIsCustomer('true');
22
- }
23
- else {
24
- $this->setCustomerName('');
25
- $this->setIsCustomer('false');
26
-
27
- if(is_array($session->getEmails()) && count($session->getEmails()) > 0) {
28
- foreach($session->getEmails() as $email) {
29
- $this->setEmail($this->getEmail() . $email["email"] . ', ');
30
- }
31
-
32
- $this->setEmail(trim($this->getEmail(),", "));
33
- }
34
- else {
35
-
36
- }
37
- }
38
-
39
- }
40
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Abandonedcart
16
+ extends Mage_Core_Model_Abstract
17
  {
18
+ public function _construct()
19
+ {
20
+ parent::_construct();
21
+ $this->_init('listrak/abandonedcart');
22
+ }
23
+
24
+ public function prepareForReport()
25
+ {
26
+ $session = $this->getSession();
27
+ $customer = $session->getCustomer();
28
+ $this->setSessionId($session->getSessionId());
29
+
30
+ if ($customer && $customer->getId()) {
31
+ $this->setCustomerName($customer->getFirstname() . ' ' . $customer->getLastname());
32
+ $this->setEmail($customer->getEmail());
33
+ $this->setIsCustomer('true');
34
+ } else {
35
+ $this->setCustomerName('');
36
+ $this->setIsCustomer('false');
37
+
38
+ if (is_array($session->getEmails()) && count($session->getEmails()) > 0) {
39
+ foreach ($session->getEmails() as $email) {
40
+ $this->setEmail($this->getEmail() . $email["email"] . ', ');
41
+ }
42
+
43
+ $this->setEmail(trim($this->getEmail(), ", "));
44
+ } else {
45
+
46
+ }
47
+ }
48
+
49
+ }
 
50
  }
app/code/community/Listrak/Remarketing/Model/Abandonedcart/Api.php CHANGED
@@ -1,66 +1,74 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Abandonedcart_Api extends Mage_Api_Model_Resource_Abstract {
6
-
7
- public function items($storeId = 1, $startDate = NULL, $endDate = NULL, $perPage, $page) {
8
- Mage::helper('remarketing')->requireCoreEnabled();
9
-
10
- Mage::app()->setCurrentStore($storeId);
11
-
12
- if ($startDate === NULL || !strtotime($startDate)) {
13
- $this->_fault('incorrect_date');
14
- }
15
-
16
- if ($endDate === NULL || !strtotime($endDate)) {
17
- $this->_fault('incorrect_date');
18
- }
19
-
20
- $storeIdArray = explode(',', $storeId);
21
-
22
- $collection = Mage::getModel('listrak/abandonedcart')
23
- ->getCollection()
24
- ->addFieldToFilter('main_table.updated_at',array('from'=>$startDate, 'to'=>$endDate))
25
- ->setPageSize($perPage)->setCurPage($page)
26
- ->addStoreFilter($storeIdArray)
27
- ->setOrder('updated_at', 'ASC');
28
-
29
- $result = array();
30
-
31
- foreach($collection as $item) {
32
- $result[] = $item;
33
- }
34
-
35
- return $result;
36
- }
37
-
38
- public function purge($storeId = 1, $endDate = NULL) {
39
- if ($endDate === NULL || !strtotime($endDate)) {
40
- $this->_fault('incorrect_date');
41
- }
42
-
43
- $count = 0;
44
-
45
- try {
46
- $rs = Mage::getModel("listrak/session")->getResource();
47
- $emailTable = $rs->getTable("listrak/session_email");
48
- $clickTable = $rs->getTable("listrak/click");
49
- $sessionTable = $rs->getTable("listrak/session");
50
-
51
- $delEmailsSql = "DELETE `$emailTable` e FROM `$emailTable` e INNER JOIN `$sessionTable` s ON s.id = e.session_id WHERE s.updated_at < '$endDate'";
52
- $delClicksSql = "DELETE `$clickTable` c FROM `$clickTable` c INNER JOIN `$sessionTable` s ON s.id = c.session_id WHERE s.updated_at < '$endDate'";
53
-
54
- $ra = Mage::getSingleton('core/resource')->getConnection('core_write');
55
-
56
- $ra->raw_query($delEmailsSql);
57
- $ra->raw_query($delClicksSql);
58
- $count = $ra->delete($sessionTable, "updated_at < '$endDate'");
59
- }
60
- catch(Exception $ex) {
61
- Mage::getModel("listrak/log")->addException($ex);
62
- }
63
-
64
- return $count;
65
- }
66
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Abandonedcart_Api
16
+ extends Mage_Api_Model_Resource_Abstract
17
+ {
18
+
19
+ public function items($storeId = 1, $startDate = null, $endDate = null,
20
+ $perPage = 50,
21
+ $page = 1
22
+ )
23
+ {
24
+ Mage::helper('remarketing')->requireCoreEnabled();
25
+
26
+ Mage::app()->setCurrentStore($storeId);
27
+
28
+ if ($startDate === null || !strtotime($startDate)) {
29
+ $this->_fault('incorrect_date');
30
+ }
31
+
32
+ if ($endDate === null || !strtotime($endDate)) {
33
+ $this->_fault('incorrect_date');
34
+ }
35
+
36
+ $storeIdArray = explode(',', $storeId);
37
+
38
+ $collection = Mage::getModel('listrak/abandonedcart')
39
+ ->getCollection()
40
+ ->addFieldToFilter('main_table.updated_at', array('from' => $startDate, 'to' => $endDate))
41
+ ->setPageSize($perPage)->setCurPage($page)
42
+ ->addStoreFilter($storeIdArray)
43
+ ->setOrder('updated_at', 'ASC')
44
+ ->distinct(true);
45
+
46
+ $result = array();
47
+
48
+ foreach ($collection as $item) {
49
+ $result[] = $item;
50
+ }
51
+
52
+ return $result;
53
+ }
54
+
55
+ public function purge($storeId = 1, $endDate = null)
56
+ {
57
+ if ($endDate === null || !strtotime($endDate)) {
58
+ $this->_fault('incorrect_date');
59
+ }
60
+
61
+ $sessions = Mage::getModel("listrak/session")
62
+ ->getCollection()
63
+ ->addFieldToFilter('updated_at', array('lt' => $endDate));
64
+
65
+ $count = 0;
66
+
67
+ foreach ($sessions as $session) {
68
+ $session->delete();
69
+ $count++;
70
+ }
71
+
72
+ return $count;
73
+ }
 
 
74
  }
app/code/community/Listrak/Remarketing/Model/Abandonedcart/Api/V2.php CHANGED
@@ -1,8 +1,19 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Abandonedcart_Api_V2 extends Listrak_Remarketing_Model_Abandonedcart_Api {
6
-
7
  }
8
-
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Abandonedcart_Api_V2
16
+ extends Listrak_Remarketing_Model_Abandonedcart_Api
17
+ {
18
 
 
 
19
  }
 
app/code/community/Listrak/Remarketing/Model/Apiextension.php CHANGED
@@ -1,8 +1,19 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Apiextension extends Mage_Core_Model_Abstract
 
6
  {
7
  public function _construct()
8
  {
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Apiextension
16
+ extends Mage_Core_Model_Abstract
17
  {
18
  public function _construct()
19
  {
app/code/community/Listrak/Remarketing/Model/Apiextension/Api.php CHANGED
@@ -1,279 +1,324 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Model_Apiextension_Api extends Mage_Api_Model_Resource_Abstract {
6
-
7
- public function products($storeId = 1, $perPage = 50, $page = 1)
8
- {
9
- Mage::helper('remarketing')->requireCoreEnabled();
10
-
11
- Mage::app()->setCurrentStore($storeId);
12
-
13
- $collection = Mage::getModel('catalog/product')->getCollection()
14
- ->addStoreFilter($storeId)
15
- ->addAttributeToSelect('*')
16
- ->setPageSize($perPage)
17
- ->setCurPage($page)
18
- ->load();
19
-
20
- Mage::getModel('cataloginventory/stock')->addItemsToProducts($collection);
21
-
22
- $results = array();
23
-
24
- foreach ($collection as $product)
25
- $results[] = Mage::helper('remarketing/product')->getProductEntity($product);
26
-
27
- return $results;
28
- }
29
-
30
- public function subscribers($storeId = 1, $startDate = NULL, $perPage = 50, $page = 1) {
31
- Mage::helper('remarketing')->requireCoreEnabled();
32
-
33
- if ($startDate === NULL || !strtotime($startDate)) {
34
- $this->_fault('incorrect_date');
35
- }
36
-
37
- $result = array();
38
-
39
- $collection = Mage::getModel("listrak/apiextension")->getResource()->subscribers($storeId, $startDate, $perPage, $page);
40
-
41
- foreach($collection as $item) {
42
- $result[] = $item;
43
- }
44
-
45
- return $result;
46
- }
47
-
48
- public function subscribersPurge($endDate = NULL) {
49
- if ($endDate === NULL || !strtotime($endDate)) {
50
- $this->_fault('incorrect_date');
51
- }
52
-
53
- $collection = Mage::getModel("listrak/subscriberupdate")->getCollection()
54
- ->addFieldToFilter('updated_at', array('lt' => $endDate));
55
-
56
- $count = $collection->count();
57
-
58
- foreach($collection as $c) {
59
- $c->delete();
60
- }
61
-
62
- return $count;
63
- }
64
-
65
- public function customers($storeId = 1, $websiteId = 1, $perPage = 50, $page = 1) {
66
- Mage::helper('remarketing')->requireCoreEnabled();
67
-
68
- Mage::app()->setCurrentStore($storeId);
69
-
70
- $collection = Mage::getModel('customer/customer')->getCollection()
71
- ->addFieldToFilter('store_id',$storeId)
72
- ->addAttributeToSelect('*')
73
- ->setPageSize($perPage)
74
- ->setCurPage($page);
75
-
76
- $results = array();
77
-
78
- foreach($collection as $customer) {
79
- $results[] = $this->getCustomerArray($customer);
80
- }
81
-
82
- return $results;
83
- }
84
-
85
- private function getCustomerArray($customer) {
86
- $fields = array('entity_id' => '', 'firstname' => '', 'lastname' => '', 'email' => '', 'website_id' => '', 'store_id' => '', 'group_id' => '', 'gender_name' => '', 'dob' => '', 'group_name' => '');
87
- Mage::helper('remarketing')->setGroupNameAndGenderNameForCustomer($customer);
88
- return array_intersect_key($customer->toArray(), $fields);
89
- }
90
-
91
- public function orderStatus($storeId = 1, $startDate = NULL, $endDate = NULL, $perPage = 50, $page = 1, $filters = NULL) {
92
- Mage::helper('remarketing')->requireCoreEnabled();
93
-
94
- $collection = Mage::getModel("sales/order")->getCollection()
95
- ->addFieldToFilter('store_id', $storeId)
96
- ->addAttributeToSelect('increment_id')
97
- ->addAttributeToSelect('updated_at')
98
- ->addAttributeToSelect('status')
99
- ->addFieldToFilter('updated_at',array('from'=>$startDate, 'to'=>$endDate))
100
- ->addFieldToFilter('status', array('neq'=>'pending'))
101
- ->setPageSize($perPage)->setCurPage($page)
102
- ->setOrder('updated_at', 'ASC');
103
-
104
- if (is_array($filters)) {
105
- try {
106
- foreach ($filters as $field => $value) {
107
- if (isset($this->_attributesMap['order'][$field])) {
108
- $field = $this->_attributesMap['order'][$field];
109
- }
110
-
111
- $collection->addFieldToFilter($field, $value);
112
- }
113
- } catch (Mage_Core_Exception $e) {
114
- $this->_fault('filters_invalid', $e->getMessage());
115
- }
116
- }
117
-
118
- $results = array();
119
-
120
- foreach($collection as $collectionItem) {
121
- $results[] = $collectionItem;
122
- }
123
-
124
- return $results;
125
- }
126
-
127
- public function orders($storeId = 1, $startDate = NULL, $endDate = NULL, $perPage = 50, $page = 1) {
128
- Mage::helper('remarketing')->requireCoreEnabled();
129
-
130
- Mage::app()->setCurrentStore($storeId);
131
-
132
- if ($startDate === NULL || !strtotime($startDate)) {
133
- $this->_fault('incorrect_date');
134
- }
135
-
136
- if ($endDate === NULL || !strtotime($endDate)) {
137
- $this->_fault('incorrect_date');
138
- }
139
-
140
- $orders = Mage::getModel('sales/order')->getCollection()
141
- ->addFieldToFilter('created_at', array('from'=>$startDate, 'to'=>$endDate))
142
- ->addFieldToFilter('store_id', $storeId)
143
- ->setPageSize($perPage)->setCurPage($page)
144
- ->setOrder('created_at', 'ASC');
145
-
146
- $results = array();
147
-
148
- foreach($orders as $order) {
149
- $result = array();
150
- $result['info']['entity_id'] = $order->getEntityId();
151
- $result['info']['order_id'] = $order->getIncrementId();
152
- $result['info']['status'] = $order->getStatus();;
153
- $result['info']['customer_firstname'] = $order->getCustomerFirstname();
154
- $result['info']['customer_lastname'] = $order->getCustomerLastname();
155
- $result['info']['customer_email'] = $order->getCustomerEmail();
156
- $result['info']['subtotal'] = $order->getSubtotal();
157
- $result['info']['tax_amount'] = $order->getTaxAmount();
158
- $result['info']['shipping_amount'] = $order->getShippingAmount();
159
- $result['info']['grand_total'] = $order->getGrandTotal();
160
- $result['info']['billing_firstname'] = $order->getBillingFirstname();
161
- $result['info']['created_at'] = $order->getCreatedAt();
162
- $result['info']['updated_at'] = $order->getUpdatedAt();
163
-
164
- $shipping = $order->getShippingAddress();
165
- $result['shipping_address']['firstname'] = $shipping->getFirstname();
166
- $result['shipping_address']['lastname'] = $shipping->getLastname();
167
- $result['shipping_address']['company'] = $shipping->getCompany();
168
- $result['shipping_address']['street'] = implode(', ', $shipping->getStreet());
169
- $result['shipping_address']['city'] = $shipping->getCity();
170
- $result['shipping_address']['region'] = $shipping->getRegion();
171
- $result['shipping_address']['postcode'] = $shipping->getPostcode();
172
- $result['shipping_address']['country'] = $shipping->getCountry();
173
-
174
- $billing = $order->getbillingAddress();
175
- $result['billing_address']['firstname'] = $billing->getFirstname();
176
- $result['billing_address']['lastname'] = $billing->getLastname();
177
- $result['billing_address']['company'] = $billing->getCompany();
178
- $result['billing_address']['street'] = implode(', ', $billing->getStreet());
179
- $result['billing_address']['city'] = $billing->getCity();
180
- $result['billing_address']['region'] = $billing->getRegion();
181
- $result['billing_address']['postcode'] = $billing->getPostcode();
182
- $result['billing_address']['country'] = $billing->getCountry();
183
-
184
- $result['session'] = Mage::getModel("listrak/session")->load($order->getQuoteId(), 'quote_id');
185
-
186
- $result['product'] = array();
187
- foreach($order->getAllItems() as $item) {
188
- if($item->getParentItem()) continue;
189
- $result['product'][] = $this->getOrderItemProductEntity($item, $storeId);
190
- }
191
- if ($order->getCustomerId()) {
192
- $customer = Mage::getModel("customer/customer")->load($order->getCustomerId());
193
- if ($customer) {
194
- $result['customer'] = $this->getCustomerArray($customer);
195
- }
196
- }
197
-
198
- $results[] = $result;
199
- }
200
-
201
- return $results;
202
- }
203
-
204
- private function getOrderItemProductEntity($item, $storeId)
205
- {
206
- $productModel = Mage::getModel('catalog/product')->load($item->getProductId());
207
- $productType = $productModel->getTypeId();
208
- $childrenItems = $item->getChildrenItems();
209
- $childrenItemsCount = count($childrenItems);
210
- if (Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE == $productType && $childrenItemsCount > 0)
211
- {
212
- $productModel = Mage::getModel('catalog/product')->load($childrenItems[0]->getProductId());
213
- }
214
- $product = array();
215
- if ($productModel != null)
216
- {
217
- $product['sku'] = $productModel->getSku();
218
- $product['name'] = $productModel->getName();
219
- $product['product_price'] = $productModel->getPrice();
220
- }
221
- else
222
- {
223
- $product['sku'] = $item->getProductOptionByCode('simple_sku') ? $item->getProductOptionByCode('simple_sku') : $item->getSku();
224
- $product['name'] = $item->getName();
225
- }
226
- $product['price'] = $item->getPrice();
227
- $product['qty_ordered'] = $item->getQtyOrdered();
228
- if (Mage_Catalog_Model_Product_Type::TYPE_BUNDLE == $productType && $childrenItemsCount > 0)
229
- {
230
- $product['bundle_items'] = array();
231
- foreach ($childrenItems as $childItem)
232
- {
233
- $product['bundle_items'][] = $this->getOrderItemProductEntity($childItem, $storeId);
234
- }
235
- }
236
- return $product;
237
- }
238
-
239
- public function info() {
240
- $result = array();
241
- $result["magentoVersion"] = Mage::getVersion();
242
- $result["listrakSettings"] = array(
243
- "coreEnabled" => Mage::helper('remarketing')->coreEnabled() ? "true" : "false",
244
- "reviewsApiEnabled" => Mage::helper('remarketing')->reviewsEnabled() ? "true" : "false"
245
- );
246
- $result["ini"] = array();
247
-
248
- $subModel = Mage::getModel("newsletter/subscriber");
249
- $orderModel = Mage::getModel("sales/order");
250
- $productModel = Mage::getModel('catalog/product');
251
-
252
- $result["classes"] = get_class($subModel) .','. get_class($orderModel) .','. get_class($orderModel->getCollection()) .','.
253
- get_class($productModel) .','. get_class($productModel->getCollection());
254
-
255
- $ra = Mage::getSingleton('core/resource')->getConnection('core_read');
256
- $numSessions = $ra->fetchRow("select count(*) as c from " . Mage::getModel("listrak/session")->getResource()->getTable("listrak/session"));
257
- $numSubUpdates = $ra->fetchRow("select count(*) as c from " . Mage::getModel("listrak/subscriberupdate")->getResource()->getTable("listrak/subscriber_update"));
258
- $numClicks = $ra->fetchRow("select count(*) as c from " . Mage::getModel("listrak/click")->getResource()->getTable("listrak/click"));
259
-
260
- $result["counts"] = $numSessions['c'] .','. $numSubUpdates['c'] .','. $numClicks['c'];
261
-
262
- $result["modules"] = array();
263
- $modules = (array)Mage::getConfig()->getNode('modules')->children();
264
-
265
- foreach($modules as $key => $value) {
266
- $valueArray = $value->asCanonicalArray();
267
- $result["modules"][] = "name=$key, version=" . $valueArray["version"] .", isActive=" . $valueArray["active"];
268
- }
269
-
270
- $ini = array("session.gc_maxlifetime", "session.cookie_lifetime", "session.gc_divisor", "session.gc_probability");
271
-
272
- foreach($ini as $iniParam) {
273
- $result["ini"][] = "$iniParam=" . ini_get($iniParam);
274
- }
275
-
276
- return $result;
277
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
278
  }
279
-
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Apiextension_Api
16
+ extends Mage_Api_Model_Resource_Abstract
17
+ {
18
+ private $_attributesMap = array(
19
+ 'order' => array('order_id' => 'entity_id')
20
+ );
21
+
22
+ public function products($storeId = 1, $perPage = 50, $page = 1)
23
+ {
24
+ Mage::helper('remarketing')->requireCoreEnabled();
25
+
26
+ Mage::app()->setCurrentStore($storeId);
27
+
28
+ $collection = Mage::getModel('catalog/product')->getCollection()
29
+ ->addStoreFilter($storeId)
30
+ ->addAttributeToSelect('*')
31
+ ->setPageSize($perPage)
32
+ ->setCurPage($page)
33
+ ->load();
34
+
35
+ Mage::getModel('cataloginventory/stock')->addItemsToProducts($collection);
36
+
37
+ $results = array();
38
+
39
+ foreach ($collection as $product) {
40
+ $results[] = Mage::helper('remarketing/product')->getProductEntity($product, $storeId);
41
+ }
42
+
43
+ return $results;
44
+ }
45
+
46
+ public function subscribers($storeId = 1, $startDate = null, $perPage = 50,
47
+ $page = 1
48
+ )
49
+ {
50
+ Mage::helper('remarketing')->requireCoreEnabled();
51
+
52
+ if ($startDate === null || !strtotime($startDate)) {
53
+ $this->_fault('incorrect_date');
54
+ }
55
+
56
+ $result = array();
57
+
58
+ $collection = Mage::getModel("listrak/apiextension")
59
+ ->getResource()
60
+ ->subscribers($storeId, $startDate, $perPage, $page);
61
+
62
+ foreach ($collection as $item) {
63
+ $result[] = $item;
64
+ }
65
+
66
+ return $result;
67
+ }
68
+
69
+ public function subscribersPurge($endDate = null)
70
+ {
71
+ if ($endDate === null || !strtotime($endDate)) {
72
+ $this->_fault('incorrect_date');
73
+ }
74
+
75
+ $subscriberupdates = Mage::getModel("listrak/subscriberupdate")
76
+ ->getCollection()
77
+ ->addFieldToFilter('updated_at', array('lt' => $endDate));
78
+
79
+ $count = 0;
80
+
81
+ foreach ($subscriberupdates as $subscriberupdate) {
82
+ $subscriberupdate->delete();
83
+ $count++;
84
+ }
85
+
86
+ return $count;
87
+ }
88
+
89
+ public function customers($storeId = 1, $websiteId = 1, $perPage = 50, $page = 1)
90
+ {
91
+ Mage::helper('remarketing')->requireCoreEnabled();
92
+
93
+ Mage::app()->setCurrentStore($storeId);
94
+
95
+ $collection = Mage::getModel('customer/customer')->getCollection()
96
+ ->addFieldToFilter('store_id', $storeId)
97
+ ->addAttributeToSelect('*')
98
+ ->setPageSize($perPage)
99
+ ->setCurPage($page);
100
+
101
+ $results = array();
102
+
103
+ foreach ($collection as $customer) {
104
+ $results[] = $this->_getCustomerArray($customer);
105
+ }
106
+
107
+ return $results;
108
+ }
109
+
110
+ private function _getCustomerArray($customer)
111
+ {
112
+ $fields = array('entity_id' => '', 'firstname' => '', 'lastname' => '',
113
+ 'email' => '', 'website_id' => '', 'store_id' => '', 'group_id' => '',
114
+ 'gender_name' => '', 'dob' => '', 'group_name' => '');
115
+ Mage::helper('remarketing')->setGroupNameAndGenderNameForCustomer($customer);
116
+ return array_intersect_key($customer->toArray(), $fields);
117
+ }
118
+
119
+ public function orderStatus($storeId = 1, $startDate = null, $endDate = null,
120
+ $perPage = 50, $page = 1, $filters = null
121
+ )
122
+ {
123
+ Mage::helper('remarketing')->requireCoreEnabled();
124
+
125
+ $collection = Mage::getModel("sales/order")->getCollection()
126
+ ->addFieldToFilter('store_id', $storeId)
127
+ ->addAttributeToSelect('increment_id')
128
+ ->addAttributeToSelect('updated_at')
129
+ ->addAttributeToSelect('status')
130
+ ->addFieldToFilter('updated_at', array('from' => $startDate, 'to' => $endDate))
131
+ ->addFieldToFilter('status', array('neq' => 'pending'))
132
+ ->setPageSize($perPage)->setCurPage($page)
133
+ ->setOrder('updated_at', 'ASC');
134
+
135
+ if (is_array($filters)) {
136
+ try {
137
+ foreach ($filters as $field => $value) {
138
+ if (isset($this->_attributesMap['order'][$field])) {
139
+ $field = $this->_attributesMap['order'][$field];
140
+ }
141
+
142
+ $collection->addFieldToFilter($field, $value);
143
+ }
144
+ } catch (Mage_Core_Exception $e) {
145
+ $this->_fault('filters_invalid', $e->getMessage());
146
+ }
147
+ }
148
+
149
+ $results = array();
150
+
151
+ foreach ($collection as $collectionItem) {
152
+ $results[] = $collectionItem;
153
+ }
154
+
155
+ return $results;
156
+ }
157
+
158
+ public function orders($storeId = 1, $startDate = null, $endDate = null,
159
+ $perPage = 50, $page = 1
160
+ )
161
+ {
162
+ Mage::helper('remarketing')->requireCoreEnabled();
163
+
164
+ Mage::app()->setCurrentStore($storeId);
165
+
166
+ if ($startDate === null || !strtotime($startDate)) {
167
+ $this->_fault('incorrect_date');
168
+ }
169
+
170
+ if ($endDate === null || !strtotime($endDate)) {
171
+ $this->_fault('incorrect_date');
172
+ }
173
+
174
+ $orders = Mage::getModel('sales/order')->getCollection()
175
+ ->addFieldToFilter('created_at', array('from' => $startDate, 'to' => $endDate))
176
+ ->addFieldToFilter('store_id', $storeId)
177
+ ->setPageSize($perPage)->setCurPage($page)
178
+ ->setOrder('created_at', 'ASC');
179
+
180
+ $results = array();
181
+
182
+ foreach ($orders as $order) {
183
+ $result = array();
184
+ $result['info']['entity_id'] = $order->getEntityId();
185
+ $result['info']['order_id'] = $order->getIncrementId();
186
+ $result['info']['status'] = $order->getStatus();;
187
+ $result['info']['customer_firstname'] = $order->getCustomerFirstname();
188
+ $result['info']['customer_lastname'] = $order->getCustomerLastname();
189
+ $result['info']['customer_email'] = $order->getCustomerEmail();
190
+ $result['info']['subtotal'] = $order->getSubtotal();
191
+ $result['info']['tax_amount'] = $order->getTaxAmount();
192
+ $result['info']['shipping_amount'] = $order->getShippingAmount();
193
+ $result['info']['grand_total'] = $order->getGrandTotal();
194
+ $result['info']['billing_firstname'] = $order->getBillingFirstname();
195
+ $result['info']['created_at'] = $order->getCreatedAt();
196
+ $result['info']['updated_at'] = $order->getUpdatedAt();
197
+
198
+ $shipping = $order->getShippingAddress();
199
+ if ($shipping) {
200
+ $result['shipping_address']['firstname'] = $shipping->getFirstname();
201
+ $result['shipping_address']['lastname'] = $shipping->getLastname();
202
+ $result['shipping_address']['company'] = $shipping->getCompany();
203
+ $result['shipping_address']['street'] = implode(', ', $shipping->getStreet());
204
+ $result['shipping_address']['city'] = $shipping->getCity();
205
+ $result['shipping_address']['region'] = $shipping->getRegion();
206
+ $result['shipping_address']['postcode'] = $shipping->getPostcode();
207
+ $result['shipping_address']['country'] = $shipping->getCountry();
208
+ }
209
+
210
+ $billing = $order->getbillingAddress();
211
+ if ($billing) {
212
+ $result['billing_address']['firstname'] = $billing->getFirstname();
213
+ $result['billing_address']['lastname'] = $billing->getLastname();
214
+ $result['billing_address']['company'] = $billing->getCompany();
215
+ $result['billing_address']['street'] = implode(', ', $billing->getStreet());
216
+ $result['billing_address']['city'] = $billing->getCity();
217
+ $result['billing_address']['region'] = $billing->getRegion();
218
+ $result['billing_address']['postcode'] = $billing->getPostcode();
219
+ $result['billing_address']['country'] = $billing->getCountry();
220
+ }
221
+
222
+ $result['session'] = Mage::getModel("listrak/session")->load($order->getQuoteId(), 'quote_id');
223
+
224
+ $result['product'] = array();
225
+ foreach ($order->getAllItems() as $item) {
226
+ if ($item->getParentItem()) {
227
+ continue;
228
+ }
229
+ $result['product'][] = $this->_getOrderItemProductEntity($item, $storeId);
230
+ }
231
+ if ($order->getCustomerId()) {
232
+ $customer = Mage::getModel("customer/customer")->load($order->getCustomerId());
233
+ if ($customer) {
234
+ $result['customer'] = $this->_getCustomerArray($customer);
235
+ }
236
+ }
237
+
238
+ $results[] = $result;
239
+ }
240
+
241
+ return $results;
242
+ }
243
+
244
+ private function _getOrderItemProductEntity($item, $storeId)
245
+ {
246
+ $productModel = Mage::getModel('catalog/product')->load($item->getProductId());
247
+ $productType = $productModel->getTypeId();
248
+ $childrenItems = $item->getChildrenItems();
249
+ $childrenItemsCount = count($childrenItems);
250
+ if (Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE == $productType && $childrenItemsCount > 0) {
251
+ $productModel = Mage::getModel('catalog/product')->load($childrenItems[0]->getProductId());
252
+ }
253
+ $product = array();
254
+ if ($productModel != null) {
255
+ $product['sku'] = $productModel->getSku();
256
+ $product['name'] = $productModel->getName();
257
+ $product['product_price'] = $productModel->getPrice();
258
+ } else {
259
+ $product['sku'] = $item->getProductOptionByCode('simple_sku')
260
+ ? $item->getProductOptionByCode('simple_sku') : $item->getSku();
261
+ $product['name'] = $item->getName();
262
+ }
263
+ $product['price'] = $item->getPrice();
264
+ $product['qty_ordered'] = $item->getQtyOrdered();
265
+ if (Mage_Catalog_Model_Product_Type::TYPE_BUNDLE == $productType && $childrenItemsCount > 0) {
266
+ $product['bundle_items'] = array();
267
+ foreach ($childrenItems as $childItem) {
268
+ $product['bundle_items'][] = $this->_getOrderItemProductEntity($childItem, $storeId);
269
+ }
270
+ }
271
+ return $product;
272
+ }
273
+
274
+ public function info()
275
+ {
276
+ $result = array();
277
+ $result["magentoVersion"] = Mage::getVersion();
278
+ $result["listrakSettings"] = array(
279
+ "coreEnabled" => Mage::helper('remarketing')->coreEnabled() ? "true" : "false",
280
+ "reviewsApiEnabled" => Mage::helper('remarketing')->reviewsEnabled() ? "true" : "false"
281
+ );
282
+ $result["ini"] = array();
283
+
284
+ $subModel = Mage::getModel("newsletter/subscriber");
285
+ $orderModel = Mage::getModel("sales/order");
286
+ $productModel = Mage::getModel('catalog/product');
287
+
288
+ $result["classes"] = get_class($subModel) . ',' . get_class($orderModel) .
289
+ ',' . get_class($orderModel->getCollection()) . ',' .
290
+ get_class($productModel) . ',' . get_class($productModel->getCollection());
291
+
292
+ $ra = Mage::getSingleton('core/resource')->getConnection('core_read');
293
+ $countQueryText = "select count(*) as c from " .
294
+ Mage::getModel("listrak/session")->getResource()->getTable("listrak/session");
295
+ $numSessions = $ra->fetchRow($countQueryText);
296
+ $countQueryText = "select count(*) as c from " .
297
+ Mage::getModel("listrak/subscriberupdate")->getResource()->getTable("listrak/subscriber_update");
298
+ $numSubUpdates = $ra->fetchRow($countQueryText);
299
+ $countQueryText = "select count(*) as c from " .
300
+ Mage::getModel("listrak/click")->getResource()->getTable("listrak/click");
301
+ $numClicks = $ra->fetchRow($countQueryText);
302
+
303
+ $result["counts"] = $numSessions['c'] . ',' . $numSubUpdates['c'] . ',' . $numClicks['c'];
304
+
305
+ $result["modules"] = array();
306
+ $modules = (array)Mage::getConfig()->getNode('modules')->children();
307
+
308
+ foreach ($modules as $key => $value) {
309
+ $valueArray = $value->asCanonicalArray();
310
+ $active = (isset($valueArray["version"])) ? $valueArray["version"] : '';
311
+ $version = (isset($valueArray["active"])) ? $valueArray["active"] : '';
312
+ $result["modules"][] = "name=$key, version=" . $version .", isActive=" . $active;
313
+ }
314
+
315
+ $ini = array("session.gc_maxlifetime", "session.cookie_lifetime",
316
+ "session.gc_divisor", "session.gc_probability");
317
+
318
+ foreach ($ini as $iniParam) {
319
+ $result["ini"][] = "$iniParam=" . ini_get($iniParam);
320
+ }
321
+
322
+ return $result;
323
+ }
324
  }
 
app/code/community/Listrak/Remarketing/Model/Apiextension/Api/V2.php CHANGED
@@ -1,8 +1,19 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Apiextension_Api_V2 extends Listrak_Remarketing_Model_Apiextension_Api {
6
-
7
  }
8
-
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Apiextension_Api_V2
16
+ extends Listrak_Remarketing_Model_Apiextension_Api
17
+ {
18
 
 
 
19
  }
 
app/code/community/Listrak/Remarketing/Model/Click.php CHANGED
@@ -1,33 +1,46 @@
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
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Click
16
+ extends Mage_Core_Model_Abstract
17
  {
18
+ public function _construct()
19
+ {
20
+ parent::_construct();
21
+ $this->_init('listrak/click');
22
+ }
23
+
24
+ public function checkForClick()
25
+ {
26
+ foreach (Mage::app()->getRequest()->getParams() as $key => $value) {
27
+ if (stripos($key, 'trk_') !== false) {
28
+ $this->_recordClick();
29
+ break;
30
+ }
31
+ }
32
+ }
33
+
34
+ private function _recordClick()
35
+ {
36
+ $this->setTokenUid(Mage::helper('remarketing')->genUuid());
37
+ $this->setClickDate(gmdate('Y-m-d H:i:s'));
38
+ $session = Mage::getSingleton('listrak/session');
39
+ $session->init();
40
+ $this->setSessionId($session->getId());
41
+ $this->setQuerystring(http_build_query(Mage::app()->getRequest()->getParams()));
42
+ $this->save();
43
+
44
+ Mage::getModel('core/cookie')->set('ltktrk', $this->getTokenUid(), true, null, null, null, true);
45
+ }
46
  }
app/code/community/Listrak/Remarketing/Model/Click/Api.php CHANGED
@@ -1,50 +1,67 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Model_Click_Api extends Mage_Api_Model_Resource_Abstract {
6
-
7
- public function items($storeId = 1, $startDate = NULL, $endDate = NULL, $perPage = 50, $page = 1) {
8
- Mage::helper('remarketing')->requireCoreEnabled();
9
-
10
- if ($startDate === NULL || !strtotime($startDate)) {
11
- $this->_fault('incorrect_date');
12
- }
13
-
14
- if ($endDate === NULL || !strtotime($endDate)) {
15
- $this->_fault('incorrect_date');
16
- }
17
-
18
- $clicks = Mage::getModel("listrak/click")->getCollection()
19
- ->addFieldToFilter('click_date',array('from'=>$startDate, 'to'=>$endDate))
20
- ->setPageSize($perPage)->setCurPage($page);
21
-
22
- $clicks->addStoreFilter($storeId);
23
-
24
- $result = array();
25
-
26
- foreach($clicks as $item) {
27
- $result[] = $item;
28
- }
29
-
30
- return $result;
31
- }
32
-
33
- public function purge($storeId = 1, $endDate) {
34
- if($endDate === NULL || !strtotime($endDate)) {
35
- $this->_fault('incorrect_date');
36
- }
37
-
38
- $clicks = Mage::getModel("listrak/click")->getCollection()
39
- ->addFieldToFilter('click_date', array('lt' => $endDate))
40
- ->addStoreFilter($storeId);
41
-
42
- $count = $clicks->count();
43
-
44
- foreach($clicks as $click){
45
- $click->delete();
46
- }
47
-
48
- return $count;
49
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Click_Api
16
+ extends Mage_Api_Model_Resource_Abstract
17
+ {
18
+
19
+ public function items($storeId = 1, $startDate = null, $endDate = null,
20
+ $perPage = 50, $page = 1
21
+ )
22
+ {
23
+ Mage::helper('remarketing')->requireCoreEnabled();
24
+
25
+ if ($startDate === null || !strtotime($startDate)) {
26
+ $this->_fault('incorrect_date');
27
+ }
28
+
29
+ if ($endDate === null || !strtotime($endDate)) {
30
+ $this->_fault('incorrect_date');
31
+ }
32
+
33
+ $clicks = Mage::getModel("listrak/click")->getCollection()
34
+ ->addFieldToFilter('click_date', array('from' => $startDate, 'to' => $endDate))
35
+ ->setPageSize($perPage)->setCurPage($page);
36
+
37
+ $clicks->addStoreFilter($storeId);
38
+
39
+ $result = array();
40
+
41
+ foreach ($clicks as $item) {
42
+ $result[] = $item;
43
+ }
44
+
45
+ return $result;
46
+ }
47
+
48
+ public function purge($storeId = 1, $endDate = null)
49
+ {
50
+ if ($endDate === null || !strtotime($endDate)) {
51
+ $this->_fault('incorrect_date');
52
+ }
53
+
54
+ $clicks = Mage::getModel("listrak/click")
55
+ ->getCollection()
56
+ ->addFieldToFilter('click_date', array('lt' => $endDate));
57
+
58
+ $count = 0;
59
+
60
+ foreach ($clicks as $click) {
61
+ $click->delete();
62
+ $count++;
63
+ }
64
+
65
+ return $count;
66
+ }
67
  }
app/code/community/Listrak/Remarketing/Model/Click/Api/V2.php CHANGED
@@ -1,8 +1,19 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Click_Api_V2 extends Listrak_Remarketing_Model_Click_Api {
6
-
7
  }
8
-
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Click_Api_V2
16
+ extends Listrak_Remarketing_Model_Click_Api
17
+ {
18
 
 
 
19
  }
 
app/code/community/Listrak/Remarketing/Model/Emailcapture.php CHANGED
@@ -1,12 +1,23 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Emailcapture extends Mage_Core_Model_Abstract {
6
-
7
- public function _construct()
8
- {
9
- parent::_construct();
10
- $this->_init('listrak/emailcapture');
11
- }
 
12
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Emailcapture extends Mage_Core_Model_Abstract
16
+ {
17
+
18
+ public function _construct()
19
+ {
20
+ parent::_construct();
21
+ $this->_init('listrak/emailcapture');
22
+ }
23
  }
app/code/community/Listrak/Remarketing/Model/Log.php CHANGED
@@ -1,35 +1,47 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  class Listrak_Remarketing_Model_Log extends Mage_Core_Model_Abstract
6
  {
7
- const LOGTYPE_MESSAGE = 1;
8
- const LOGTYPE_EXCEPTION = 2;
9
-
10
- public function _construct()
11
- {
12
- parent::_construct();
13
- $this->_init('listrak/log');
14
- }
15
-
16
- public function addMessage($msg, $storeId = NULL) {
17
- if($storeId == NULL) {
18
- $storeId = Mage::app()->getStore()->getStoreId();
19
- }
20
- $this->setMessage($msg);
21
- $this->setLogTypeId(self::LOGTYPE_MESSAGE);
22
- $this->setStoreId($storeId);
23
- $this->save();
24
- }
25
-
26
- public function addException($msg, $storeId = NULL) {
27
- if($storeId == NULL) {
28
- $storeId = Mage::app()->getStore()->getStoreId();
29
- }
30
- $this->setMessage($msg);
31
- $this->setLogTypeId(self::LOGTYPE_EXCEPTION);
32
- $this->setStoreId($storeId);
33
- $this->save();
34
- }
 
 
35
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  class Listrak_Remarketing_Model_Log extends Mage_Core_Model_Abstract
16
  {
17
+ const LOGTYPE_MESSAGE = 1;
18
+ const LOGTYPE_EXCEPTION = 2;
19
+
20
+ public function _construct()
21
+ {
22
+ parent::_construct();
23
+ $this->_init('listrak/log');
24
+ }
25
+
26
+ public function addMessage($msg, $storeId = null)
27
+ {
28
+ if ($storeId == null) {
29
+ $storeId = Mage::app()->getStore()->getStoreId();
30
+ }
31
+ $this->setMessage($msg);
32
+ $this->setLogTypeId(self::LOGTYPE_MESSAGE);
33
+ $this->setStoreId($storeId);
34
+ $this->save();
35
+ }
36
+
37
+ public function addException($msg, $storeId = null)
38
+ {
39
+ if ($storeId == null) {
40
+ $storeId = Mage::app()->getStore()->getStoreId();
41
+ }
42
+ $this->setMessage($msg);
43
+ $this->setLogTypeId(self::LOGTYPE_EXCEPTION);
44
+ $this->setStoreId($storeId);
45
+ $this->save();
46
+ }
47
  }
app/code/community/Listrak/Remarketing/Model/Log/Api.php CHANGED
@@ -1,51 +1,69 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Model_Log_Api extends Mage_Api_Model_Resource_Abstract {
6
-
7
- public function items($storeId = 1, $startDate = NULL, $endDate = NULL, $perPage = 50, $page = 1, $logTypeId = 0) {
8
- if ($startDate === NULL || !strtotime($startDate)) {
9
- $this->_fault('incorrect_date');
10
- }
11
-
12
- if ($endDate === NULL || !strtotime($endDate)) {
13
- $this->_fault('incorrect_date');
14
- }
15
-
16
- $logs = Mage::getModel("listrak/log")->getCollection()
17
- ->addFieldToFilter('date_entered',array('from'=>$startDate, 'to'=>$endDate))
18
- ->setPageSize($perPage)->setCurPage($page)
19
- ->addStoreFilter($storeId);
20
-
21
- $result = array();
22
-
23
- foreach($logs as $item) {
24
- $result[] = $item;
25
- }
26
-
27
- return $result;
28
- }
29
-
30
- public function purge($storeId = 1, $endDate = NULL) {
31
- if($endDate === NULL || !strtotime($endDate)) {
32
- $this->_fault('incorrect_date');
33
- }
34
-
35
- $logs = Mage::getModel("listrak/log")->getCollection()
36
- ->addFieldToFilter('date_entered', array('lt' => $endDate))
37
- ->addStoreFilter($storeId);
38
-
39
- $count = $logs->count();
40
-
41
- foreach($logs as $log){
42
- $log->delete();
43
- }
44
-
45
- return $count;
46
- }
47
-
48
- public function toggle($storeId = 1, $onOff) {
49
- return $onOff;
50
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Log_Api
16
+ extends Mage_Api_Model_Resource_Abstract
17
+ {
18
+
19
+ public function items($storeId = 1, $startDate = null, $endDate = null,
20
+ $perPage = 50, $page = 1, $logTypeId = 0
21
+ )
22
+ {
23
+ if ($startDate === null || !strtotime($startDate)) {
24
+ $this->_fault('incorrect_date');
25
+ }
26
+
27
+ if ($endDate === null || !strtotime($endDate)) {
28
+ $this->_fault('incorrect_date');
29
+ }
30
+
31
+ $logs = Mage::getModel("listrak/log")->getCollection()
32
+ ->addFieldToFilter('date_entered', array('from' => $startDate, 'to' => $endDate))
33
+ ->setPageSize($perPage)->setCurPage($page)
34
+ ->addStoreFilter($storeId);
35
+
36
+ $result = array();
37
+
38
+ foreach ($logs as $item) {
39
+ $result[] = $item;
40
+ }
41
+
42
+ return $result;
43
+ }
44
+
45
+ public function purge($storeId = 1, $endDate = null)
46
+ {
47
+ if ($endDate === null || !strtotime($endDate)) {
48
+ $this->_fault('incorrect_date');
49
+ }
50
+
51
+ $logs = Mage::getModel("listrak/log")
52
+ ->getCollection()
53
+ ->addFieldToFilter('date_entered', array('lt' => $endDate));
54
+
55
+ $count = 0;
56
+
57
+ foreach ($logs as $log) {
58
+ $log->delete();
59
+ $count++;
60
+ }
61
+
62
+ return $count;
63
+ }
64
+
65
+ public function toggle($storeId = 1, $onOff = true)
66
+ {
67
+ return $onOff;
68
+ }
69
  }
app/code/community/Listrak/Remarketing/Model/Log/Api/V2.php CHANGED
@@ -1,8 +1,19 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Log_Api_V2 extends Listrak_Remarketing_Model_Log_Api {
6
-
7
  }
8
-
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Log_Api_V2
16
+ extends Listrak_Remarketing_Model_Log_Api
17
+ {
18
 
 
 
19
  }
 
app/code/community/Listrak/Remarketing/Model/Mysql4/Abandonedcart.php CHANGED
@@ -1,60 +1,70 @@
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
- $products = array();
28
-
29
- foreach(Mage::getModel('sales/quote')->load($object->getQuoteId())->getAllVisibleItems() as $item) {
30
- $products[] = $this->getCartProductEntity($item, $object->getStoreId());
31
- }
32
-
33
- $object->setProducts($products);
34
- }
35
-
36
- private function getCartProductEntity($item, $storeId)
37
- {
38
- $productModel = Mage::getModel('catalog/product')->load($item->getProductId());
39
- $productType = $productModel->getTypeId();
40
- $children = $item->getChildren();
41
- $childrenCount = count($children);
42
- if (Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE == $productType && $childrenCount > 0)
43
- {
44
- $productModel = Mage::getModel('catalog/product')->load($children[0]->getProductId());
45
- }
46
- $product = Mage::helper('remarketing/product')->getProductEntity($productModel, false, false, false);
47
- $product["qty"] = $item->getQty();
48
- $product["price"] = $item->getCalculationPrice();
49
- if (Mage_Catalog_Model_Product_Type::TYPE_BUNDLE == $productType && $childrenCount > 0)
50
- {
51
- $product['bundle_items'] = array();
52
- foreach ($children as $child)
53
- {
54
- $product['bundle_items'][] = $this->getCartProductEntity($child, $storeId);
55
- }
56
- }
57
- return $product;
58
- }
59
-
60
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Abandonedcart
16
+ extends Mage_Core_Model_Mysql4_Abstract
17
  {
18
+ protected $_read;
19
+
20
+ protected $_write;
21
+
22
+ public function _construct()
23
+ {
24
+ $this->_init('listrak/session', 'id');
25
+ $this->_read = $this->_getReadAdapter();
26
+ $this->_write = $this->_getWriteAdapter();
27
+ }
28
+
29
+ protected function _afterLoad(Mage_Core_Model_Abstract $object)
30
+ {
31
+ $object->setSession(Mage::getModel("listrak/session")->load($object->getId()));
32
+
33
+ $this->loadCart($object);
34
+
35
+ return parent::_afterLoad($object);
36
+ }
37
+
38
+ protected function loadCart(Mage_Core_Model_Abstract $object)
39
+ {
40
+ $products = array();
41
+
42
+ foreach (Mage::getModel('sales/quote')->load($object->getQuoteId())->getAllVisibleItems() as $item) {
43
+ $products[] = $this->_getCartProductEntity($item, $object->getStoreId());
44
+ }
45
+
46
+ $object->setProducts($products);
47
+ }
48
+
49
+ private function _getCartProductEntity($item, $storeId)
50
+ {
51
+ $productModel = Mage::getModel('catalog/product')->load($item->getProductId());
52
+ $productType = $productModel->getTypeId();
53
+ $children = $item->getChildren();
54
+ $childrenCount = count($children);
55
+ if (Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE == $productType && $childrenCount > 0) {
56
+ $productModel = Mage::getModel('catalog/product')->load($children[0]->getProductId());
57
+ }
58
+ $product = Mage::helper('remarketing/product')->getProductEntity($productModel, $storeId, false, false, false);
59
+ $product["qty"] = $item->getQty();
60
+ $product["price"] = $item->getCalculationPrice();
61
+ if (Mage_Catalog_Model_Product_Type::TYPE_BUNDLE == $productType && $childrenCount > 0) {
62
+ $product['bundle_items'] = array();
63
+ foreach ($children as $child) {
64
+ $product['bundle_items'][] = $this->_getCartProductEntity($child, $storeId);
65
+ }
66
+ }
67
+ return $product;
68
+ }
69
+
 
70
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Abandonedcart/Collection.php CHANGED
@@ -1,41 +1,61 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Abandonedcart_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
 
6
  {
7
- public $_prepareForReport = false;
8
-
9
- protected function _construct()
10
- {
11
- $this->_init('listrak/abandonedcart');
12
- }
13
-
14
- protected function _initSelect()
15
- {
16
- parent::_initSelect();
17
-
18
- $this->getSelect()
19
- ->join(array('q'=>$this->getTable('sales/quote')),
20
- 'main_table.quote_id = q.entity_id',
21
- array('items_qty','grand_total'))
22
- ->where('q.items_count > 0 AND q.is_active = 1');
23
- }
24
-
25
- public function addStoreFilter($storeIds)
26
- {
27
- $this->getSelect()->where('main_table.store_id IN (?)', $storeIds);
28
- return $this;
29
- }
30
-
31
- protected function _afterLoad() {
32
- foreach ($this->_items as $item) {
33
- $item->afterLoad();
34
- if($this->_prepareForReport === true) {
35
- $item->prepareForReport();
36
- }
37
- }
38
-
39
- return parent::_afterLoad();
40
- }
 
 
 
 
 
 
 
 
 
41
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Abandonedcart_Collection
16
+ extends Mage_Core_Model_Mysql4_Collection_Abstract
17
  {
18
+ private $_prepareForReport = false;
19
+
20
+ protected function _construct()
21
+ {
22
+ $this->_init('listrak/abandonedcart');
23
+ }
24
+
25
+ protected function _initSelect()
26
+ {
27
+ parent::_initSelect();
28
+
29
+ $this->getSelect()
30
+ ->join(
31
+ array('q' => $this->getTable('sales/quote')),
32
+ 'main_table.quote_id = q.entity_id',
33
+ array('items_qty', 'grand_total')
34
+ )
35
+ ->where('q.items_count > 0 AND q.is_active = 1');
36
+ }
37
+
38
+ public function addStoreFilter($storeIds)
39
+ {
40
+ $this->getSelect()->where('main_table.store_id IN (?)', $storeIds);
41
+ return $this;
42
+ }
43
+
44
+ public function setPrepareForReport($prepareForReport)
45
+ {
46
+ $this->_prepareForReport = $prepareForReport;
47
+ return $this;
48
+ }
49
+
50
+ protected function _afterLoad()
51
+ {
52
+ foreach ($this->_items as $item) {
53
+ $item->afterLoad();
54
+ if ($this->_prepareForReport === true) {
55
+ $item->prepareForReport();
56
+ }
57
+ }
58
+
59
+ return parent::_afterLoad();
60
+ }
61
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Apiextension.php CHANGED
@@ -1,55 +1,72 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Model_Mysql4_Apiextension extends Mage_Core_Model_Mysql4_Abstract {
6
-
7
- protected $_read;
8
-
9
- protected $_write;
10
-
11
- protected function _construct()
12
- {
13
- $this->_init('listrak/session', 'id');
14
- $this->_read = $this->_getReadAdapter();
15
- $this->_write = $this->_getWriteAdapter();
16
- }
17
-
18
- public function subscribers($storeId = 1, $startDate = NULL, $perPage = 50, $page = 1) {
19
-
20
- $collection = Mage::getModel("newsletter/subscriber")->getCollection()
21
- ->addStoreFilter($storeId)
22
- ->setPageSize($perPage)
23
- ->setCurPage($page);
24
-
25
- $collection->getSelect()
26
- ->join(array('su'=>$collection->getTable('listrak/subscriber_update')),
27
- 'main_table.subscriber_id = su.subscriber_id',
28
- array())
29
- ->where('su.updated_at > ?', $startDate)
30
- ->distinct();
31
-
32
- $collection->setOrder('su.updated_at', 'ASC');
33
-
34
- foreach($collection as $c) {
35
- switch($c->getSubscriberStatus()) {
36
- case "1":
37
- $c->setSubscriberStatus("subscribed");
38
- break;
39
- case "2":
40
- $c->setSubscriberStatus("inactive");
41
- break;
42
- case "3":
43
- $c->setSubscriberStatus("unsubscribed");
44
- break;
45
- case "4":
46
- $c->setSubscriberStatus("unconfirmed");
47
- break;
48
- default:
49
- break;
50
- }
51
- }
52
-
53
- return $collection;
54
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Mysql4_Apiextension
16
+ extends Mage_Core_Model_Mysql4_Abstract
17
+ {
18
+
19
+ protected $_read;
20
+
21
+ protected $_write;
22
+
23
+ protected function _construct()
24
+ {
25
+ $this->_init('listrak/session', 'id');
26
+ $this->_read = $this->_getReadAdapter();
27
+ $this->_write = $this->_getWriteAdapter();
28
+ }
29
+
30
+ public function subscribers($storeId = 1, $startDate = null, $perPage = 50,
31
+ $page = 1
32
+ )
33
+ {
34
+
35
+ $collection = Mage::getModel("newsletter/subscriber")->getCollection()
36
+ ->addStoreFilter($storeId)
37
+ ->setPageSize($perPage)
38
+ ->setCurPage($page);
39
+
40
+ $collection->getSelect()
41
+ ->join(
42
+ array('su' => $collection->getTable('listrak/subscriber_update')),
43
+ 'main_table.subscriber_id = su.subscriber_id',
44
+ array()
45
+ )
46
+ ->where('su.updated_at > ?', $startDate)
47
+ ->distinct();
48
+
49
+ $collection->setOrder('su.updated_at', 'ASC');
50
+
51
+ foreach ($collection as $c) {
52
+ switch ($c->getSubscriberStatus()) {
53
+ case "1":
54
+ $c->setSubscriberStatus("subscribed");
55
+ break;
56
+ case "2":
57
+ $c->setSubscriberStatus("inactive");
58
+ break;
59
+ case "3":
60
+ $c->setSubscriberStatus("unsubscribed");
61
+ break;
62
+ case "4":
63
+ $c->setSubscriberStatus("unconfirmed");
64
+ break;
65
+ default:
66
+ break;
67
+ }
68
+ }
69
+
70
+ return $collection;
71
+ }
72
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Click.php CHANGED
@@ -1,64 +1,79 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Click extends Mage_Core_Model_Mysql4_Abstract {
6
-
7
- protected $_read;
8
 
9
- protected $_write;
10
-
11
- protected function _construct()
12
- {
13
- $this->_init('listrak/click', 'click_id');
14
- $this->_read = $this->_getReadAdapter();
15
- $this->_write = $this->_getWriteAdapter();
16
- }
17
-
18
- public function loadByQuoteId($quoteId) {
19
- $select = $this->_read->select()
20
- ->from($this->getTable('listrak/session'))
21
- ->where('quote_id=?',$quoteId)
22
- ->join(array('c'=>$this->getTable('listrak/click')),
23
- 'id = c.session_id',
24
- array());
25
 
26
- if($result = $this->_read->fetchAll($select)) {
27
- return $result;
28
- }
29
-
30
- return array();
31
- }
32
-
33
- public function loadLatestByQuoteId($quoteId) {
34
- $select = $this->_read->select()
35
- ->from(array('c'=>$this->getTable('listrak/click')))
36
- ->joinInner(array('s'=>$this->getTable('listrak/session')), 's.id = c.session_id', array())
37
- ->where('s.quote_id = ?', $quoteId)
38
- ->order('click_id', 'desc')
39
- ->limit(0,1);
40
 
41
- if($result = $this->_read->fetchRow($select)) {
42
- return $result;
43
- }
44
- else {
45
- return NULL;
46
- }
47
- }
48
 
49
- public function loadLatestBySessionId($sid) {
50
- $select = $this->_read->select()
51
- ->from(array('c'=>$this->getTable('listrak/click')))
52
- ->joinInner(array('s'=>$this->getTable('listrak/session')), 's.id = c.session_id', array())
53
- ->where('s.session_id = ?', $sid)
54
- ->order('click_id', 'desc')
55
- ->limit(0,1);
 
 
 
56
 
57
- if($result = $this->_read->fetchRow($select)) {
58
- return $result;
59
- }
60
- else {
61
- return NULL;
62
- }
63
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Click
16
+ extends Mage_Core_Model_Mysql4_Abstract
17
+ {
18
 
19
+ protected $_read;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
+ protected $_write;
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
+ protected function _construct()
24
+ {
25
+ $this->_init('listrak/click', 'click_id');
26
+ $this->_read = $this->_getReadAdapter();
27
+ $this->_write = $this->_getWriteAdapter();
28
+ }
 
29
 
30
+ public function loadByQuoteId($quoteId)
31
+ {
32
+ $select = $this->_read->select()
33
+ ->from($this->getTable('listrak/session'))
34
+ ->where('quote_id=?', $quoteId)
35
+ ->join(
36
+ array('c' => $this->getTable('listrak/click')),
37
+ 'id = c.session_id',
38
+ array()
39
+ );
40
 
41
+ if ($result = $this->_read->fetchAll($select)) {
42
+ return $result;
43
+ }
44
+
45
+ return array();
46
+ }
47
+
48
+ public function loadLatestByQuoteId($quoteId)
49
+ {
50
+ $select = $this->_read->select()
51
+ ->from(array('c' => $this->getTable('listrak/click')))
52
+ ->joinInner(array('s' => $this->getTable('listrak/session')), 's.id = c.session_id', array())
53
+ ->where('s.quote_id = ?', $quoteId)
54
+ ->order('click_id ' . Varien_Db_Select::SQL_DESC)
55
+ ->limit(0, 1);
56
+
57
+ if ($result = $this->_read->fetchRow($select)) {
58
+ return $result;
59
+ } else {
60
+ return null;
61
+ }
62
+ }
63
+
64
+ public function loadLatestBySessionId($sid)
65
+ {
66
+ $select = $this->_read->select()
67
+ ->from(array('c' => $this->getTable('listrak/click')))
68
+ ->joinInner(array('s' => $this->getTable('listrak/session')), 's.id = c.session_id', array())
69
+ ->where('s.session_id = ?', $sid)
70
+ ->order('click_id ' . Varien_Db_Select::SQL_DESC)
71
+ ->limit(0, 1);
72
+
73
+ if ($result = $this->_read->fetchRow($select)) {
74
+ return $result;
75
+ } else {
76
+ return null;
77
+ }
78
+ }
79
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Click/Collection.php CHANGED
@@ -1,20 +1,35 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Click_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
 
6
  {
7
-
8
- protected function _construct()
9
- {
10
- $this->_init('listrak/click');
11
- }
12
-
13
- public function addStoreFilter($storeId)
14
- {
15
- $this->getSelect()
16
- ->join(array('s'=>$this->getTable('listrak/session')), 'main_table.session_id = s.id', array('store_id', 'session_id as session_uid', 'pi_id'))
17
- ->where('s.store_id IN (?)',$storeId);
18
- return $this;
19
- }
 
 
 
 
20
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Click_Collection
16
+ extends Mage_Core_Model_Mysql4_Collection_Abstract
17
  {
18
+
19
+ protected function _construct()
20
+ {
21
+ $this->_init('listrak/click');
22
+ }
23
+
24
+ public function addStoreFilter($storeId)
25
+ {
26
+ $this->getSelect()
27
+ ->join(
28
+ array('s' => $this->getTable('listrak/session')),
29
+ 'main_table.session_id = s.id',
30
+ array('store_id', 'session_id as session_uid', 'pi_id')
31
+ )
32
+ ->where('s.store_id IN (?)', $storeId);
33
+ return $this;
34
+ }
35
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Emailcapture.php CHANGED
@@ -1,17 +1,29 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Emailcapture extends Mage_Core_Model_Mysql4_Abstract {
 
 
6
 
7
- protected $_read;
8
 
9
- protected $_write;
10
-
11
- protected function _construct()
12
- {
13
- $this->_init('listrak/emailcapture', 'emailcapture_id');
14
- $this->_read = $this->_getReadAdapter();
15
- $this->_write = $this->_getWriteAdapter();
16
- }
17
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Emailcapture
16
+ extends Mage_Core_Model_Mysql4_Abstract
17
+ {
18
 
19
+ protected $_read;
20
 
21
+ protected $_write;
22
+
23
+ protected function _construct()
24
+ {
25
+ $this->_init('listrak/emailcapture', 'emailcapture_id');
26
+ $this->_read = $this->_getReadAdapter();
27
+ $this->_write = $this->_getWriteAdapter();
28
+ }
29
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Emailcapture/Collection.php CHANGED
@@ -1,11 +1,23 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Emailcapture_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
6
-
7
- protected function _construct()
8
- {
9
- $this->_init('listrak/emailcapture');
10
- }
 
 
11
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Emailcapture_Collection
16
+ extends Mage_Core_Model_Mysql4_Collection_Abstract
17
+ {
18
+
19
+ protected function _construct()
20
+ {
21
+ $this->_init('listrak/emailcapture');
22
+ }
23
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Log.php CHANGED
@@ -1,17 +1,28 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract {
6
-
7
- protected $_read;
8
 
9
- protected $_write;
10
-
11
- protected function _construct()
12
- {
13
- $this->_init('listrak/log', 'id');
14
- $this->_read = $this->_getReadAdapter();
15
- $this->_write = $this->_getWriteAdapter();
16
- }
 
 
17
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Log extends Mage_Core_Model_Mysql4_Abstract
16
+ {
 
17
 
18
+ protected $_read;
19
+
20
+ protected $_write;
21
+
22
+ protected function _construct()
23
+ {
24
+ $this->_init('listrak/log', 'id');
25
+ $this->_read = $this->_getReadAdapter();
26
+ $this->_write = $this->_getWriteAdapter();
27
+ }
28
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Log/Collection.php CHANGED
@@ -1,17 +1,28 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Log_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
 
6
  {
7
- protected function _construct()
8
- {
9
- $this->_init('listrak/log');
10
- }
11
-
12
- public function addStoreFilter($storeIds)
13
- {
14
- $this->getSelect()->where('main_table.store_id IN (?)', $storeIds);
15
- return $this;
16
- }
17
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Log_Collection
16
+ extends Mage_Core_Model_Mysql4_Collection_Abstract
17
  {
18
+ protected function _construct()
19
+ {
20
+ $this->_init('listrak/log');
21
+ }
22
+
23
+ public function addStoreFilter($storeIds)
24
+ {
25
+ $this->getSelect()->where('main_table.store_id IN (?)', $storeIds);
26
+ return $this;
27
+ }
28
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Product/Attribute/Set/Map.php CHANGED
@@ -1,20 +1,31 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Product_Attribute_Set_Map extends Mage_Core_Model_Mysql4_Abstract {
6
-
7
- protected $_read;
8
 
9
- protected $_write;
10
-
11
- protected function _construct()
12
- {
13
- $this->_init('listrak/product_attribute_set_map', 'map_id');
14
- $this->_read = $this->_getReadAdapter();
15
- $this->_write = $this->_getWriteAdapter();
16
- }
 
 
17
 
18
  }
19
 
20
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Product_Attribute_Set_Map
16
+ extends Mage_Core_Model_Mysql4_Abstract
17
+ {
18
 
19
+ protected $_read;
20
+
21
+ protected $_write;
22
+
23
+ protected function _construct()
24
+ {
25
+ $this->_init('listrak/product_attribute_set_map', 'map_id');
26
+ $this->_read = $this->_getReadAdapter();
27
+ $this->_write = $this->_getWriteAdapter();
28
+ }
29
 
30
  }
31
 
 
app/code/community/Listrak/Remarketing/Model/Mysql4/Product/Attribute/Set/Map/Collection.php CHANGED
@@ -1,35 +1,47 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Product_Attribute_Set_Map_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
 
6
  {
7
  // so we don't go getting it all the time
8
  private $_productTypeId;
9
 
10
- protected function _construct() {
 
11
  $this->_init('listrak/product_attribute_set_map');
12
  $this->_productTypeId = Mage::getModel('catalog/product')->getResource()->getTypeId();
13
  }
14
-
15
  public function addMapIdFilter($ids)
16
  {
17
- $this->getSelect()->where('map_id IN ('. $ids . ')');
18
-
19
  return $this;
20
  }
21
-
22
  public function addAttributeSetFilter($id)
23
  {
24
  $this->getSelect()->where('attribute_set_id = ' . $id);
25
-
26
  return $this;
27
  }
28
-
29
  public function addAttributeSetName()
30
  {
31
  $resource = Mage::getSingleton('core/resource');
32
-
33
  // join in with the current settings to fetch attribute codes
34
  $this->getSelect()
35
  ->join(
@@ -40,15 +52,15 @@ class Listrak_Remarketing_Model_Mysql4_Product_Attribute_Set_Map_Collection exte
40
 
41
  $this->getSelect()
42
  ->where('attribute_set.entity_type_id = ?', $this->_productTypeId);
43
-
44
  return $this;
45
  }
46
-
47
  public function addAttributeNames()
48
  {
49
  $r = Mage::getSingleton('core/resource');
50
  $attributeTable = $r->getTableName('eav/attribute');
51
-
52
  // add brand attribute name
53
  $this->getSelect()
54
  ->joinLeft(
@@ -56,7 +68,7 @@ class Listrak_Remarketing_Model_Mysql4_Product_Attribute_Set_Map_Collection exte
56
  'main_table.brand_attribute_code = brand_attribute.attribute_code',
57
  array('brand_attribute_name' => 'frontend_label')
58
  );
59
-
60
  // add category attribute name
61
  $this->getSelect()
62
  ->joinLeft(
@@ -64,7 +76,7 @@ class Listrak_Remarketing_Model_Mysql4_Product_Attribute_Set_Map_Collection exte
64
  'main_table.category_attribute_code = cat_attribute.attribute_code',
65
  array('category_attribute_name' => 'frontend_label')
66
  );
67
-
68
  // add subcategory attribute name
69
  $this->getSelect()
70
  ->joinLeft(
@@ -72,21 +84,26 @@ class Listrak_Remarketing_Model_Mysql4_Product_Attribute_Set_Map_Collection exte
72
  'main_table.subcategory_attribute_code = subcat_attribute.attribute_code',
73
  array('subcategory_attribute_name' => 'frontend_label')
74
  );
75
-
 
 
 
 
 
 
76
  $this->getSelect()
77
- ->where('brand_attribute.entity_type_id = ' . $this->_productTypeId . ' OR brand_attribute.entity_type_id IS NULL')
78
- ->where('cat_attribute.entity_type_id = ' . $this->_productTypeId . ' OR cat_attribute.entity_type_id IS NULL')
79
- ->where('subcat_attribute.entity_type_id = ' . $this->_productTypeId . ' OR subcat_attribute.entity_type_id IS NULL');
80
-
81
  return $this;
82
  }
83
-
84
  public function orderByAttributeSetName()
85
  {
86
- $this->getSelect()->order("attribute_set_name");
87
-
88
  return $this;
89
  }
90
  }
91
 
92
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Product_Attribute_Set_Map_Collection
16
+ extends Mage_Core_Model_Mysql4_Collection_Abstract
17
  {
18
  // so we don't go getting it all the time
19
  private $_productTypeId;
20
 
21
+ protected function _construct()
22
+ {
23
  $this->_init('listrak/product_attribute_set_map');
24
  $this->_productTypeId = Mage::getModel('catalog/product')->getResource()->getTypeId();
25
  }
26
+
27
  public function addMapIdFilter($ids)
28
  {
29
+ $this->getSelect()->where('map_id IN (' . $ids . ')');
30
+
31
  return $this;
32
  }
33
+
34
  public function addAttributeSetFilter($id)
35
  {
36
  $this->getSelect()->where('attribute_set_id = ' . $id);
37
+
38
  return $this;
39
  }
40
+
41
  public function addAttributeSetName()
42
  {
43
  $resource = Mage::getSingleton('core/resource');
44
+
45
  // join in with the current settings to fetch attribute codes
46
  $this->getSelect()
47
  ->join(
52
 
53
  $this->getSelect()
54
  ->where('attribute_set.entity_type_id = ?', $this->_productTypeId);
55
+
56
  return $this;
57
  }
58
+
59
  public function addAttributeNames()
60
  {
61
  $r = Mage::getSingleton('core/resource');
62
  $attributeTable = $r->getTableName('eav/attribute');
63
+
64
  // add brand attribute name
65
  $this->getSelect()
66
  ->joinLeft(
68
  'main_table.brand_attribute_code = brand_attribute.attribute_code',
69
  array('brand_attribute_name' => 'frontend_label')
70
  );
71
+
72
  // add category attribute name
73
  $this->getSelect()
74
  ->joinLeft(
76
  'main_table.category_attribute_code = cat_attribute.attribute_code',
77
  array('category_attribute_name' => 'frontend_label')
78
  );
79
+
80
  // add subcategory attribute name
81
  $this->getSelect()
82
  ->joinLeft(
84
  'main_table.subcategory_attribute_code = subcat_attribute.attribute_code',
85
  array('subcategory_attribute_name' => 'frontend_label')
86
  );
87
+
88
+ $brandFilter = 'brand_attribute.entity_type_id = ' . $this->_productTypeId
89
+ . ' OR brand_attribute.entity_type_id IS NULL';
90
+ $categoryFilter = 'cat_attribute.entity_type_id = ' . $this->_productTypeId
91
+ . ' OR cat_attribute.entity_type_id IS NULL';
92
+ $subcategoryFiler = 'subcat_attribute.entity_type_id = '
93
+ . $this->_productTypeId . ' OR subcat_attribute.entity_type_id IS NULL';
94
  $this->getSelect()
95
+ ->where($brandFilter)
96
+ ->where($categoryFilter)
97
+ ->where($subcategoryFiler);
98
+
99
  return $this;
100
  }
101
+
102
  public function orderByAttributeSetName()
103
  {
104
+ $this->getSelect()->order('attribute_set_name ' . Varien_Db_Select::SQL_ASC);
105
+
106
  return $this;
107
  }
108
  }
109
 
 
app/code/community/Listrak/Remarketing/Model/Mysql4/Review/Update.php CHANGED
@@ -1,20 +1,31 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Review_Update extends Mage_Core_Model_Mysql4_Abstract {
6
-
7
- protected $_read;
8
 
9
- protected $_write;
10
-
11
- protected function _construct()
12
- {
13
- $this->_init('listrak/review_update', 'update_id');
14
- $this->_read = $this->_getReadAdapter();
15
- $this->_write = $this->_getWriteAdapter();
16
- }
 
 
17
 
18
  }
19
 
20
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Review_Update
16
+ extends Mage_Core_Model_Mysql4_Abstract
17
+ {
18
 
19
+ protected $_read;
20
+
21
+ protected $_write;
22
+
23
+ protected function _construct()
24
+ {
25
+ $this->_init('listrak/review_update', 'update_id');
26
+ $this->_read = $this->_getReadAdapter();
27
+ $this->_write = $this->_getWriteAdapter();
28
+ }
29
 
30
  }
31
 
 
app/code/community/Listrak/Remarketing/Model/Mysql4/Review/Update/Collection.php CHANGED
@@ -1,61 +1,77 @@
1
- <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Model_Mysql4_Review_Update_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
6
- {
7
- protected function _construct() {
8
- $this->_init('listrak/review_update');
9
- }
10
-
11
- public function productReviewsOnly() {
12
- $this->getSelect()
13
- ->where('entity_id = 1');
14
-
15
- return $this;
16
- }
17
-
18
- public function updatedRowsOnly() {
19
- $this->getSelect()
20
- ->where('activity = 1');
21
-
22
- return $this;
23
- }
24
-
25
- public function deletedRowsOnly() {
26
- $this->getSelect()
27
- ->where('activity = 2');
28
-
29
- return $this;
30
- }
31
-
32
- public function getReviewUpdateTime() {
33
- $this->productReviewsOnly()
34
- ->getSelect()
35
- ->reset(Zend_Db_Select::COLUMNS)
36
- ->columns("review_id")
37
- ->columns(array("update_id" => "MAX(update_id)"))
38
- ->columns(array("updated_at" => "MAX(activity_time)"))
39
- ->group("main_table.review_id");
40
-
41
- return $this;
42
- }
43
-
44
- public function getRatingSummaryUpdateTime() {
45
- $this->productReviewsOnly()
46
- ->getSelect()
47
- ->reset(Zend_Db_Select::COLUMNS)
48
- ->columns(array("update_id" => "MAX(update_id)"))
49
- ->columns(array("updated_at" => "MAX(activity_time)"))
50
- ->join(
51
- array("agg" => Mage::getSingleton('core/resource')->getTableName('review/review_aggregate')),
52
- "main_table.entity_pk_value = agg.entity_pk_value AND main_table.entity_id = agg.entity_type",
53
- array("rating_summary_id" => "primary_id", "store_id" => "store_id")
54
- )
55
- ->group(array("agg.primary_id", "agg.store_id"));
56
-
57
- return $this;
58
- }
59
- }
60
-
61
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Mysql4_Review_Update_Collection
16
+ extends Mage_Core_Model_Mysql4_Collection_Abstract
17
+ {
18
+ protected function _construct()
19
+ {
20
+ $this->_init('listrak/review_update');
21
+ }
22
+
23
+ public function productReviewsOnly()
24
+ {
25
+ $this->getSelect()
26
+ ->where('entity_id = 1');
27
+
28
+ return $this;
29
+ }
30
+
31
+ public function updatedRowsOnly()
32
+ {
33
+ $this->getSelect()
34
+ ->where('activity = 1');
35
+
36
+ return $this;
37
+ }
38
+
39
+ public function deletedRowsOnly()
40
+ {
41
+ $this->getSelect()
42
+ ->where('activity = 2');
43
+
44
+ return $this;
45
+ }
46
+
47
+ public function getReviewUpdateTime()
48
+ {
49
+ $this->productReviewsOnly()
50
+ ->getSelect()
51
+ ->reset(Zend_Db_Select::COLUMNS)
52
+ ->columns("review_id")
53
+ ->columns(array("update_id" => "MAX(update_id)"))
54
+ ->columns(array("updated_at" => "MAX(activity_time)"))
55
+ ->group("main_table.review_id");
56
+
57
+ return $this;
58
+ }
59
+
60
+ public function getRatingSummaryUpdateTime()
61
+ {
62
+ $this->productReviewsOnly()
63
+ ->getSelect()
64
+ ->reset(Zend_Db_Select::COLUMNS)
65
+ ->columns(array("update_id" => "MAX(update_id)"))
66
+ ->columns(array("updated_at" => "MAX(activity_time)"))
67
+ ->join(
68
+ array("agg" => Mage::getSingleton('core/resource')->getTableName('review/review_aggregate')),
69
+ "main_table.entity_pk_value = agg.entity_pk_value AND main_table.entity_id = agg.entity_type",
70
+ array("rating_summary_id" => "primary_id", "store_id" => "store_id")
71
+ )
72
+ ->group(array("agg.primary_id", "agg.store_id"));
73
+
74
+ return $this;
75
+ }
76
+ }
77
+
app/code/community/Listrak/Remarketing/Model/Mysql4/Session.php CHANGED
@@ -1,95 +1,118 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Model_Mysql4_Session extends Mage_Core_Model_Mysql4_Abstract {
6
-
7
- protected $_read;
8
-
9
- protected $_write;
10
-
11
- protected 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
- if($object->getCustomerId()) {
20
- $cust = Mage::getModel("customer/customer")->load($object->getCustomerId());
21
- if($cust) {
22
- Mage::helper('remarketing')->setGroupNameAndGenderNameForCustomer($cust);
23
- $object->setCustomer($cust);
24
- }
25
- }
26
-
27
- if($object->getId()) {
28
- $this->loadEmails($object);
29
- $this->loadClicks($object);
30
- }
31
- return parent::_afterLoad($object);
32
- }
33
-
34
- public function loadBySessionId(Listrak_Remarketing_Model_Session $session) {
35
- $select = $this->_read->select()
36
- ->from($this->getTable('listrak/session'))
37
- ->where('session_id=?',$session->getSessionId());
38
-
39
- if($result = $this->_read->fetchRow($select)) {
40
- $session->addData($result);
41
- $session->loadEmails();
42
- }
43
- }
44
-
45
- public function loadByQuoteId(Listrak_Remarketing_Model_Session $session) {
46
- $select = $this->_read->select()
47
- ->from($this->getTable('listrak/session'))
48
- ->where('quote_id=?',$session->getQuoteId());
49
-
50
- if($result = $this->_read->fetchRow($select)) {
51
- $session->addData($result);
52
- $session->loadEmails();
53
- }
54
- }
55
-
56
- public function insertEmail(Listrak_Remarketing_Model_Session $session, $email, $emailcaptureId) {
57
- if($session->getId()) {
58
- $data = array();
59
- $data['session_id'] = $session->getId();
60
- $data['email'] = $email;
61
- $data['emailcapture_id'] = $emailcaptureId;
62
- $data['created_at'] = gmdate('Y-m-d H:i:s');
63
- $this->_write->insert($this->getTable('listrak/session_email'), $data);
64
- }
65
- }
66
-
67
- public function loadEmails(Listrak_Remarketing_Model_Session $session) {
68
- $select = $this->_read->select()
69
- ->from(array('se'=>$this->getTable('listrak/session_email')))
70
- ->joinLeft(array('ec'=>$this->getTable('listrak/emailcapture')),
71
- 'se.emailcapture_id = ec.emailcapture_id',
72
- array('*'))
73
- ->where('session_id=?',$session->getId());
74
-
75
- $emails = $this->_read->fetchAll($select);
76
- $session->setEmails($emails);
77
- }
78
-
79
- public function loadClicks(Listrak_Remarketing_Model_Session $session) {
80
- $clicks = Mage::getModel("listrak/click")->getCollection()
81
- ->addFieldToFilter('session_id',array('eq'=>$session->getId()));
82
-
83
- $sessionClicks = array();
84
-
85
- foreach($clicks as $click) {
86
- $sessionClicks[] = $click;
87
- }
88
-
89
- $session->setClicks($sessionClicks);
90
- }
91
-
92
- public function deleteEmails($id) {
93
- $del = $this->_write->delete($this->getTable("listrak/session_email"), "session_id = $id");
94
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Mysql4_Session
16
+ extends Mage_Core_Model_Mysql4_Abstract
17
+ {
18
+
19
+ protected $_read;
20
+
21
+ protected $_write;
22
+
23
+ protected function _construct()
24
+ {
25
+ $this->_init('listrak/session', 'id');
26
+ $this->_read = $this->_getReadAdapter();
27
+ $this->_write = $this->_getWriteAdapter();
28
+ }
29
+
30
+ protected function _afterLoad(Mage_Core_Model_Abstract $object)
31
+ {
32
+ if ($object->getCustomerId()) {
33
+ $cust = Mage::getModel("customer/customer")->load($object->getCustomerId());
34
+ if ($cust) {
35
+ Mage::helper('remarketing')->setGroupNameAndGenderNameForCustomer($cust);
36
+ $object->setCustomer($cust);
37
+ }
38
+ }
39
+
40
+ if ($object->getId()) {
41
+ $this->loadEmails($object);
42
+ $this->loadClicks($object);
43
+ }
44
+ return parent::_afterLoad($object);
45
+ }
46
+
47
+ public function loadBySessionId(Listrak_Remarketing_Model_Session $session)
48
+ {
49
+ $select = $this->_read->select()
50
+ ->from($this->getTable('listrak/session'))
51
+ ->where('session_id=?', $session->getSessionId());
52
+
53
+ if ($result = $this->_read->fetchRow($select)) {
54
+ $session->addData($result);
55
+ $session->loadEmails();
56
+ }
57
+ }
58
+
59
+ public function loadByQuoteId(Listrak_Remarketing_Model_Session $session)
60
+ {
61
+ $select = $this->_read->select()
62
+ ->from($this->getTable('listrak/session'))
63
+ ->where('quote_id=?', $session->getQuoteId());
64
+
65
+ if ($result = $this->_read->fetchRow($select)) {
66
+ $session->addData($result);
67
+ $session->loadEmails();
68
+ }
69
+ }
70
+
71
+ public function insertEmail(Listrak_Remarketing_Model_Session $session, $email,
72
+ $emailcaptureId
73
+ )
74
+ {
75
+ if ($session->getId()) {
76
+ $data = array();
77
+ $data['session_id'] = $session->getId();
78
+ $data['email'] = $email;
79
+ $data['emailcapture_id'] = $emailcaptureId;
80
+ $data['created_at'] = gmdate('Y-m-d H:i:s');
81
+ $this->_write->insert($this->getTable('listrak/session_email'), $data);
82
+ }
83
+ }
84
+
85
+ public function loadEmails(Listrak_Remarketing_Model_Session $session)
86
+ {
87
+ $select = $this->_read->select()
88
+ ->from(array('se' => $this->getTable('listrak/session_email')))
89
+ ->joinLeft(
90
+ array('ec' => $this->getTable('listrak/emailcapture')),
91
+ 'se.emailcapture_id = ec.emailcapture_id',
92
+ array('*')
93
+ )
94
+ ->where('session_id=?', $session->getId());
95
+
96
+ $emails = $this->_read->fetchAll($select);
97
+ $session->setEmails($emails);
98
+ }
99
+
100
+ public function loadClicks(Listrak_Remarketing_Model_Session $session)
101
+ {
102
+ $clicks = Mage::getModel("listrak/click")->getCollection()
103
+ ->addFieldToFilter('session_id', array('eq' => $session->getId()));
104
+
105
+ $sessionClicks = array();
106
+
107
+ foreach ($clicks as $click) {
108
+ $sessionClicks[] = $click;
109
+ }
110
+
111
+ $session->setData('clicks', $sessionClicks);
112
+ }
113
+
114
+ public function deleteEmails($id)
115
+ {
116
+ $this->_write->delete($this->getTable("listrak/session_email"), "session_id = $id");
117
+ }
118
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Session/Collection.php CHANGED
@@ -1,25 +1,38 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Session_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
6
-
7
- protected function _construct()
8
- {
9
- $this->_init('listrak/session');
10
- }
11
-
12
- public function addStoreFilter($storeIds)
13
- {
14
- $this->getSelect()->where('main_table.store_id IN (?)', $storeIds);
15
- return $this;
16
- }
17
-
18
- protected function _afterLoad() {
19
- foreach($this->_items as $i) {
20
- $i->afterLoad();
21
- }
22
-
23
- return parent::_afterLoad();
24
- }
 
 
 
25
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Session_Collection
16
+ extends Mage_Core_Model_Mysql4_Collection_Abstract
17
+ {
18
+
19
+ protected function _construct()
20
+ {
21
+ $this->_init('listrak/session');
22
+ }
23
+
24
+ public function addStoreFilter($storeIds)
25
+ {
26
+ $this->getSelect()->where('main_table.store_id IN (?)', $storeIds);
27
+ return $this;
28
+ }
29
+
30
+ protected function _afterLoad()
31
+ {
32
+ foreach ($this->_items as $i) {
33
+ $i->afterLoad();
34
+ }
35
+
36
+ return parent::_afterLoad();
37
+ }
38
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Subscriberupdate.php CHANGED
@@ -1,17 +1,29 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Subscriberupdate extends Mage_Core_Model_Mysql4_Abstract {
6
-
7
- protected $_read;
8
 
9
- protected $_write;
10
-
11
- protected function _construct()
12
- {
13
- $this->_init('listrak/subscriber_update', 'id');
14
- $this->_read = $this->_getReadAdapter();
15
- $this->_write = $this->_getWriteAdapter();
16
- }
 
 
17
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Subscriberupdate
16
+ extends Mage_Core_Model_Mysql4_Abstract
17
+ {
18
 
19
+ protected $_read;
20
+
21
+ protected $_write;
22
+
23
+ protected function _construct()
24
+ {
25
+ $this->_init('listrak/subscriber_update', 'id');
26
+ $this->_read = $this->_getReadAdapter();
27
+ $this->_write = $this->_getWriteAdapter();
28
+ }
29
  }
app/code/community/Listrak/Remarketing/Model/Mysql4/Subscriberupdate/Collection.php CHANGED
@@ -1,8 +1,19 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Mysql4_Subscriberupdate_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
 
6
  {
7
  protected function _construct()
8
  {
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Mysql4_Subscriberupdate_Collection
16
+ extends Mage_Core_Model_Mysql4_Collection_Abstract
17
  {
18
  protected function _construct()
19
  {
app/code/community/Listrak/Remarketing/Model/Observer.php CHANGED
@@ -1,123 +1,103 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Model_Observer {
6
-
7
- public function sessionInit($observer) {
8
- if (Mage::helper('remarketing')->coreEnabled()) {
9
- try {
10
- $session = Mage::getSingleton('listrak/session');
11
- $session->init(true);
12
-
13
- $click = Mage::getModel('listrak/click');
14
- $click->checkForClick();
15
- }
16
- catch(Exception $ex) {
17
- Mage::getModel("listrak/log")->addException($ex);
18
- }
19
- }
20
-
21
- return $this;
22
- }
23
-
24
- public function orderPlaced($observer) {
25
- if (Mage::helper('remarketing')->coreEnabled()) {
26
- try {
27
- $cs = Mage::getSingleton('core/session');
28
- $cs->setIsListrakOrderMade(true);
29
- $session = Mage::getSingleton('listrak/session');
30
- $session->init();
31
- }
32
- catch(Exception $ex) {
33
- Mage::getModel("listrak/log")->addException($ex);
34
- }
35
- }
36
-
37
- return $this;
38
- }
39
-
40
- public function subscriberSaved($observer) {
41
- if (Mage::helper('remarketing')->coreEnabled()) {
42
- try {
43
- $s = $observer->getSubscriber();
44
- $su = Mage::getModel("listrak/subscriberupdate")->load($s->getSubscriberId(), 'subscriber_id');
45
-
46
- if(!$su->getData()) {
47
- $su->setSubscriberId($s->getSubscriberId());
48
- }
49
-
50
- $su->setUpdatedAt(gmdate('Y-m-d H:i:s'));
51
- $su->save();
52
- }
53
- catch(Exception $ex) {
54
- Mage::getModel("listrak/log")->addException($ex);
55
- }
56
- }
57
-
58
- return $this;
59
- }
60
-
61
- public function adminPageLoad($observer) {
62
- try {
63
- if(Mage::getSingleton('admin/session')->isFirstPageAfterLogin() && !Mage::helper('remarketing')->checkSetupStatus()) {
64
- $ae = Mage::getModel("listrak/apiextension_api");
65
- $sc = $ae->subscribersPurge(gmdate("Y-m-d H:i:s", time() - 604800));
66
- Mage::getModel("listrak/log")->addMessage("Purged $sc subscriber update entries.");
67
-
68
- foreach (Mage::app()->getStores() as $storeId => $store) {
69
- $msg = "";
70
- $ab = Mage::getModel("listrak/abandonedcart_api");
71
- $cl = Mage::getModel("listrak/click_api");
72
- $l = Mage::getModel("listrak/log_api");
73
-
74
- $msg .= "Purged " . $ab->purge($storeId, gmdate("Y-m-d H:i:s", time() - 604800)) . " abandoned carts/sessions\n";
75
- $msg .= "Purged " . $cl->purge($storeId, gmdate("Y-m-d H:i:s", time() - 604800)) . " clicks\n";
76
- $msg .= "Purged " . $l->purge($storeId, gmdate("Y-m-d H:i:s", time() - 604800)) . " log entries\n";
77
-
78
- $revPurged = Mage::getModel("listrak/review_update_api")->reviewUpdatePurge(30);
79
- $msg .= "Purged " . $revPurged['count'] . " review update entries";
80
-
81
- Mage::getModel("listrak/log")->addMessage($msg, $storeId);
82
- }
83
- }
84
- }
85
- catch(Exception $ex) {
86
- Mage::getModel("listrak/log")->addException($ex);
87
- }
88
-
89
- return $this;
90
- }
91
-
92
- public function reviewUpdated($observer) {
93
- if (Mage::helper('remarketing')->reviewsEnabled()) {
94
- try {
95
- $review = $observer->getObject();
96
-
97
- Mage::getModel('listrak/review_update')
98
- ->markUpdated($review->getReviewId(), $review->getEntityId(), $review->getEntityPkValue());
99
- }
100
- catch(Exception $ex) {
101
- Mage::getModel("listrak/log")->addException($ex);
102
- }
103
- }
104
-
105
- return $this;
106
- }
107
-
108
- public function reviewDeleted($observer) {
109
- if (Mage::helper('remarketing')->reviewsEnabled()) {
110
- try {
111
- $review = $observer->getObject();
112
-
113
- Mage::getModel('listrak/review_update')
114
- ->markDeleted($review->getReviewId(), $review->getEntityId(), $review->getEntityPkValue());
115
- }
116
- catch(Exception $ex) {
117
- Mage::getModel('listrak/log')->addException($ex);
118
- }
119
- }
120
-
121
- return $this;
122
- }
123
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Observer
16
+ {
17
+
18
+ public function sessionInit($observer)
19
+ {
20
+ if (Mage::helper('remarketing')->coreEnabled()) {
21
+ try {
22
+ $session = Mage::getSingleton('listrak/session');
23
+ $session->init(true);
24
+
25
+ $click = Mage::getModel('listrak/click');
26
+ $click->checkForClick();
27
+ } catch (Exception $ex) {
28
+ Mage::getModel("listrak/log")->addException($ex);
29
+ }
30
+ }
31
+
32
+ return $this;
33
+ }
34
+
35
+ public function orderPlaced($observer)
36
+ {
37
+ if (Mage::helper('remarketing')->coreEnabled()) {
38
+ try {
39
+ $cs = Mage::getSingleton('core/session');
40
+ $cs->setIsListrakOrderMade(true);
41
+ $session = Mage::getSingleton('listrak/session');
42
+ $session->init();
43
+ } catch (Exception $ex) {
44
+ Mage::getModel("listrak/log")->addException($ex);
45
+ }
46
+ }
47
+
48
+ return $this;
49
+ }
50
+
51
+ public function subscriberSaved($observer)
52
+ {
53
+ if (Mage::helper('remarketing')->coreEnabled()) {
54
+ try {
55
+ $s = $observer->getSubscriber();
56
+ $su = Mage::getModel("listrak/subscriberupdate")->load($s->getSubscriberId(), 'subscriber_id');
57
+
58
+ if (!$su->getData()) {
59
+ $su->setSubscriberId($s->getSubscriberId());
60
+ }
61
+
62
+ $su->setUpdatedAt(gmdate('Y-m-d H:i:s'));
63
+ $su->save();
64
+ } catch (Exception $ex) {
65
+ Mage::getModel("listrak/log")->addException($ex);
66
+ }
67
+ }
68
+
69
+ return $this;
70
+ }
71
+
72
+ public function reviewUpdated($observer)
73
+ {
74
+ if (Mage::helper('remarketing')->reviewsEnabled()) {
75
+ try {
76
+ $review = $observer->getObject();
77
+
78
+ Mage::getModel('listrak/review_update')
79
+ ->markUpdated($review->getReviewId(), $review->getEntityId(), $review->getEntityPkValue());
80
+ } catch (Exception $ex) {
81
+ Mage::getModel("listrak/log")->addException($ex);
82
+ }
83
+ }
84
+
85
+ return $this;
86
+ }
87
+
88
+ public function reviewDeleted($observer)
89
+ {
90
+ if (Mage::helper('remarketing')->reviewsEnabled()) {
91
+ try {
92
+ $review = $observer->getObject();
93
+
94
+ Mage::getModel('listrak/review_update')
95
+ ->markDeleted($review->getReviewId(), $review->getEntityId(), $review->getEntityPkValue());
96
+ } catch (Exception $ex) {
97
+ Mage::getModel('listrak/log')->addException($ex);
98
+ }
99
+ }
100
+
101
+ return $this;
102
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  }
app/code/community/Listrak/Remarketing/Model/Product/Attribute/Set/Map.php CHANGED
@@ -1,81 +1,86 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Product_Attribute_Set_Map extends Mage_Core_Model_Abstract
 
6
  {
7
- public function _construct()
8
- {
9
- parent::_construct();
10
- $this->_init('listrak/product_attribute_set_map');
11
-
12
- //set the default values
13
- $this->setData('use_config_categories_source', 1);
14
- }
15
-
16
- public function finalCategoriesSource()
17
- {
18
- return $this->getUseConfigCategoriesSource() ? Mage::helper('remarketing')->categoriesSource() : $this->getCategoriesSource();
19
- }
20
-
21
- public function frontendCategoriesSource()
22
- {
23
- switch ($this->finalCategoriesSource())
24
- {
25
- case 'default':
26
- return 'Magento Categories';
27
- case 'attributes' :
28
- return 'Product Attribute Mapping';
29
- default:
30
- return 'n/a';
31
- }
32
- }
33
-
34
- public function frontendBrandAttribute()
35
- {
36
- if ($this->getBrandAttributeCode() != null)
37
- {
38
- return $this->getBrandAttributeName() . ' ('. $this->getBrandAttributeCode() . ')';
39
- }
40
- else
41
- return 'Not Set';
42
- }
43
-
44
- public function frontendCategoryAttribute()
45
- {
46
- if ($this->finalCategoriesSource() == 'default')
47
- return '';
48
- else
49
- {
50
- if ($this->getCategoryAttributeCode() != null)
51
- {
52
- return $this->getCategoryAttributeName() . ' ('. $this->getCategoryAttributeCode() . ')';
53
- }
54
- else
55
- return 'Not Set';
56
- }
57
- }
58
-
59
- public function frontendSubcategoryAttribute()
60
- {
61
- if ($this->finalCategoriesSource() == 'default')
62
- return '';
63
- else
64
- {
65
- if ($this->getSubcategoryAttributeCode() != null)
66
- {
67
- return $this->getSubcategoryAttributeName() . ' ('. $this->getSubcategoryAttributeCode() . ')';
68
- }
69
- else
70
- return 'Not Set';
71
- }
72
- }
73
-
74
- public function save()
75
- {
76
- $this->setData('updated_at', gmdate('Y-m-d H:i:s'));
77
- parent::save();
78
- }
79
  }
80
 
81
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Product_Attribute_Set_Map
16
+ extends Mage_Core_Model_Abstract
17
  {
18
+ public function _construct()
19
+ {
20
+ parent::_construct();
21
+ $this->_init('listrak/product_attribute_set_map');
22
+
23
+ //set the default values
24
+ $this->setData('use_config_categories_source', 1);
25
+ }
26
+
27
+ public function finalCategoriesSource()
28
+ {
29
+ return $this->getUseConfigCategoriesSource()
30
+ ? Mage::helper('remarketing')->categoriesSource() : $this->getCategoriesSource();
31
+ }
32
+
33
+ public function frontendCategoriesSource()
34
+ {
35
+ switch ($this->finalCategoriesSource()) {
36
+ case 'default':
37
+ return 'Magento Categories';
38
+ case 'attributes' :
39
+ return 'Product Attribute Mapping';
40
+ default:
41
+ return 'n/a';
42
+ }
43
+ }
44
+
45
+ public function frontendBrandAttribute()
46
+ {
47
+ if ($this->getBrandAttributeCode() != null) {
48
+ return $this->getBrandAttributeName() . ' (' . $this->getBrandAttributeCode() . ')';
49
+ } else {
50
+ return 'Not Set';
51
+ }
52
+ }
53
+
54
+ public function frontendCategoryAttribute()
55
+ {
56
+ if ($this->finalCategoriesSource() == 'default') {
57
+ return '';
58
+ } else {
59
+ if ($this->getCategoryAttributeCode() != null) {
60
+ return $this->getCategoryAttributeName() . ' (' . $this->getCategoryAttributeCode() . ')';
61
+ } else {
62
+ return 'Not Set';
63
+ }
64
+ }
65
+ }
66
+
67
+ public function frontendSubcategoryAttribute()
68
+ {
69
+ if ($this->finalCategoriesSource() == 'default') {
70
+ return '';
71
+ } else {
72
+ if ($this->getSubcategoryAttributeCode() != null) {
73
+ return $this->getSubcategoryAttributeName() . ' (' . $this->getSubcategoryAttributeCode() . ')';
74
+ } else {
75
+ return 'Not Set';
76
+ }
77
+ }
78
+ }
79
+
80
+ public function save()
81
+ {
82
+ $this->setData('updated_at', gmdate('Y-m-d H:i:s'));
83
+ parent::save();
84
+ }
 
 
 
 
 
85
  }
86
 
 
app/code/community/Listrak/Remarketing/Model/Product/Attributes.php CHANGED
@@ -1,6 +1,16 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  class Listrak_Remarketing_Model_Product_Attributes
6
  {
@@ -8,30 +18,40 @@ class Listrak_Remarketing_Model_Product_Attributes
8
  {
9
  $collection = Mage::getResourceModel('catalog/product_attribute_collection')
10
  ->addVisibleFilter();
11
-
12
  $attributes = array();
13
- foreach($collection as $value)
14
- {
15
- array_push($attributes, array('code' => $value->getAttributeCode(), 'label' => $value->getFrontendLabel()));
 
 
 
 
 
16
  }
17
-
18
  // sort the attributes by label
19
- usort($attributes, function($a, $b)
20
- {
21
- $valA = $a['label'] . ':' . $a['code'];
22
- $valB = $b['label'] . ':' . $b['code'];
23
- return (($valA == $valB) ? 0 : (($valA < $valB) ? -1 : 1));
24
- });
25
-
 
26
  $final = array();
27
  array_push($final, array('value' => '', 'label' => 'No Selection'));
28
- foreach($attributes as $attribute)
29
- {
30
- array_push($final, array('value' => $attribute['code'], 'label' => $attribute['label'] . ' (' . $attribute['code'] . ')'));
 
 
 
 
 
31
  }
32
-
33
  return $final;
34
  }
35
  }
36
 
37
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  class Listrak_Remarketing_Model_Product_Attributes
16
  {
18
  {
19
  $collection = Mage::getResourceModel('catalog/product_attribute_collection')
20
  ->addVisibleFilter();
21
+
22
  $attributes = array();
23
+ foreach ($collection as $value) {
24
+ array_push(
25
+ $attributes,
26
+ array(
27
+ 'code' => $value->getAttributeCode(),
28
+ 'label' => $value->getFrontendLabel()
29
+ )
30
+ );
31
  }
32
+
33
  // sort the attributes by label
34
+ usort(
35
+ $attributes, function ($a, $b) {
36
+ $valA = $a['label'] . ':' . $a['code'];
37
+ $valB = $b['label'] . ':' . $b['code'];
38
+ return (($valA == $valB) ? 0 : (($valA < $valB) ? -1 : 1));
39
+ }
40
+ );
41
+
42
  $final = array();
43
  array_push($final, array('value' => '', 'label' => 'No Selection'));
44
+ foreach ($attributes as $attribute) {
45
+ array_push(
46
+ $final,
47
+ array(
48
+ 'value' => $attribute['code'],
49
+ 'label' => $attribute['label'] . ' (' . $attribute['code'] . ')'
50
+ )
51
+ );
52
  }
53
+
54
  return $final;
55
  }
56
  }
57
 
 
app/code/community/Listrak/Remarketing/Model/Product/Category/Source.php CHANGED
@@ -1,16 +1,25 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  class Listrak_Remarketing_Model_Product_Category_Source
6
  {
7
  public function toOptionArray()
8
  {
9
  return array(
10
- array('value' => 'default', 'label' => 'Use Catalog Configuration (Default)'),
11
- array('value' => 'attributes', 'label' => 'Map from Product Attributes')
12
  );
13
  }
14
  }
15
 
16
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  class Listrak_Remarketing_Model_Product_Category_Source
16
  {
17
  public function toOptionArray()
18
  {
19
  return array(
20
+ array('value' => 'default', 'label' => 'Use Catalog Configuration (Default)'),
21
+ array('value' => 'attributes', 'label' => 'Map from Product Attributes')
22
  );
23
  }
24
  }
25
 
 
app/code/community/Listrak/Remarketing/Model/Review/Update.php CHANGED
@@ -1,48 +1,64 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Review_Update extends Mage_Core_Model_Abstract
 
6
  {
7
- const ACTIVITYTYPE_UPDATE = 1;
8
- const ACTIVITYTYPE_DELETE = 2;
9
-
10
- public function _construct()
11
- {
12
- parent::_construct();
13
- $this->_init('listrak/review_update');
14
- }
15
-
16
- public function loadByReviewId($reviewId) {
17
- return $this->getCollection()
18
- ->addFilter('review_id', $reviewId)
19
- ->getFirstItem();
20
- }
21
-
22
- public function getReviewUpdateCollection() {
23
- return $this->getCollection()->getReviewUpdateTime();
24
- }
25
-
26
- public function getRatingSummaryUpdateCollection() {
27
- return $this->getCollection()->getRatingSummaryUpdateTime();
28
- }
29
-
30
- public function markUpdated($reviewId, $entityId, $entityPkValue) {
31
- $this->mark($reviewId, $entityId, $entityPkValue, self::ACTIVITYTYPE_UPDATE);
32
- }
33
-
34
- public function markDeleted($reviewId, $entityId, $entityPkValue) {
35
- $this->mark($reviewId, $entityId, $entityPkValue, self::ACTIVITYTYPE_DELETE);
36
- }
37
-
38
- protected function mark($reviewId, $entityId, $entityPkValue, $activityType) {
39
- $this->setReviewId($reviewId);
40
- $this->setEntityId($entityId);
41
- $this->setEntityPkValue($entityPkValue);
42
- $this->setActivityTime(gmdate('Y-m-d H:i:s'));
43
- $this->setActivity($activityType);
44
- $this->save();
45
- }
 
 
 
 
 
 
46
  }
47
 
48
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Review_Update
16
+ extends Mage_Core_Model_Abstract
17
  {
18
+ const ACTIVITYTYPE_UPDATE = 1;
19
+ const ACTIVITYTYPE_DELETE = 2;
20
+
21
+ public function _construct()
22
+ {
23
+ parent::_construct();
24
+ $this->_init('listrak/review_update');
25
+ }
26
+
27
+ public function loadByReviewId($reviewId)
28
+ {
29
+ return $this->getCollection()
30
+ ->addFilter('review_id', $reviewId)
31
+ ->getFirstItem();
32
+ }
33
+
34
+ public function getReviewUpdateCollection()
35
+ {
36
+ return $this->getCollection()->getReviewUpdateTime();
37
+ }
38
+
39
+ public function getRatingSummaryUpdateCollection()
40
+ {
41
+ return $this->getCollection()->getRatingSummaryUpdateTime();
42
+ }
43
+
44
+ public function markUpdated($reviewId, $entityId, $entityPkValue)
45
+ {
46
+ $this->mark($reviewId, $entityId, $entityPkValue, self::ACTIVITYTYPE_UPDATE);
47
+ }
48
+
49
+ public function markDeleted($reviewId, $entityId, $entityPkValue)
50
+ {
51
+ $this->mark($reviewId, $entityId, $entityPkValue, self::ACTIVITYTYPE_DELETE);
52
+ }
53
+
54
+ protected function mark($reviewId, $entityId, $entityPkValue, $activityType)
55
+ {
56
+ $this->setReviewId($reviewId);
57
+ $this->setEntityId($entityId);
58
+ $this->setEntityPkValue($entityPkValue);
59
+ $this->setActivityTime(gmdate('Y-m-d H:i:s'));
60
+ $this->setActivity($activityType);
61
+ $this->save();
62
+ }
63
  }
64
 
 
app/code/community/Listrak/Remarketing/Model/Review/Update/Api.php CHANGED
@@ -1,242 +1,282 @@
1
- <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Model_Review_Update_Api extends Mage_Api_Model_Resource_Abstract {
6
-
7
- protected $_statuses = array();
8
-
9
- protected $_ratings = array();
10
-
11
- protected function getStatuses() {
12
- if (sizeof($_statuses) == 0) {
13
- foreach(Mage::getModel('review/review')->getStatusCollection()->getItems() as $status)
14
- $_statuses[$status->getStatusId()] = $status->getStatusCode();
15
- }
16
-
17
- return $_statuses;
18
- }
19
-
20
- protected function getRatings() {
21
- if (sizeof($_ratings) == 0) {
22
- foreach(Mage::getModel('rating/rating')->getResourceCollection()->getItems() as $rating)
23
- $_ratings[$rating->getRatingId()] = $rating->getRatingCode();
24
- }
25
-
26
- return $_ratings;
27
- }
28
-
29
- public function reviewList($storeId, $chunkSize, $startReviewId) {
30
- Mage::helper('remarketing')->requireReviewsEnabled();
31
-
32
- $getStoreId = is_numeric($storeId) ? $storeId : 1;
33
- $getChunkSize = is_numeric($chunkSize) ? $chunkSize : 50;
34
- $fromReviewId = $startReviewId + 1;
35
-
36
- $collection = Mage::helper('remarketing/review_update')->getReviewListCollection($getStoreId);
37
- $collection
38
- ->getSelect()
39
- ->where("main_table.review_id >= ?", $fromReviewId)
40
- ->reset(Zend_Db_Select::ORDER)
41
- ->order('main_table.review_id ASC')
42
- ->limit($getChunkSize);
43
-
44
- return $this->reviewsFromCollection($getStoreId, $collection);
45
- }
46
-
47
- public function reviewUpdateList($storeId, $chunkSize, $startUpdateId) {
48
- Mage::helper('remarketing')->requireReviewsEnabled();
49
-
50
- $getStoreId = is_numeric($storeId) ? $storeId : 1;
51
- $getChunkSize = is_numeric($chunkSize) ? $chunkSize : 50;
52
- $fromUpdateId = $startUpdateId + 1;
53
-
54
- $collection = Mage::helper('remarketing/review_update')->getReviewListCollection($getStoreId);
55
- $collection
56
- ->getSelect()
57
- ->where("updatetime.update_id >= ?", $fromUpdateId)
58
- ->reset(Zend_Db_Select::ORDER)
59
- ->order("updatetime.update_id ASC")
60
- ->limit($getChunkSize);
61
-
62
- return $this->reviewsFromCollection($getStoreId, $collection);
63
- }
64
-
65
- private function reviewsFromCollection($storeId, $reviewCollection) {
66
- $statuses = $this->getStatuses();
67
- $ratings = $this->getRatings();
68
-
69
- $reviews = array();
70
-
71
- foreach($reviewCollection as $review) {
72
- $reviewId = $review->getReviewId();
73
-
74
- $reviewRatings = array();
75
- $votesCollection = Mage::getModel('rating/rating_option_vote')
76
- ->getResourceCollection()
77
- ->setReviewFilter($reviewId);
78
-
79
- foreach($votesCollection as $vote) {
80
- $ratingId = $vote->getRatingId();
81
-
82
- array_push($reviewRatings, array(
83
- "rating_id" => $ratingId,
84
- "rating_code" => $ratings[$ratingId],
85
- "rating" => round($vote->getPercent() / 20, 4)
86
- ));
87
- }
88
-
89
- $overallRatingObj = Mage::getModel('rating/rating')
90
- ->getReviewSummary($reviewId, false);
91
-
92
- $overallRating = 0;
93
- foreach($overallRatingObj as $ratingObj) {
94
- if ($ratingObj->getStoreId() == $storeId) {
95
- if ($ratingObj->getCount())
96
- $overallRating = $ratingObj->getSum() / $ratingObj->getCount();
97
-
98
- break;
99
- }
100
- }
101
-
102
- array_push($reviews, array (
103
- "update_id" => $review->getUpdateId(),
104
- "review_id" => $reviewId,
105
- "product_id" => $review->getEntityPkValue(),
106
- "title" => $review->getTitle(),
107
- "text" => $review->getDetail(),
108
- "overall_rating" => round($overallRating / 20, 4),
109
- "created_at" => $review->getCreatedAt(),
110
- "updated_at" => $review->getUpdatedAt(),
111
- "reviewer_name" => $review->getNickname(),
112
- "email" => $review->getEmail(),
113
- "status_id" => $review->getStatusId(),
114
- "status_code" => $statuses[$review->getStatusId()],
115
- "ratings" => $reviewRatings
116
- ));
117
- }
118
-
119
- return $reviews;
120
- }
121
-
122
- public function ratingSummaryList($storeId, $chunkSize, $startRatingSummaryId) {
123
- Mage::helper('remarketing')->requireReviewsEnabled();
124
-
125
- $getStoreId = is_numeric($storeId) ? $storeId : 1;
126
- $getChunkSize = is_numeric($chunkSize) ? $chunkSize : 50;
127
- $fromRatingSummaryId = $startRatingSummaryId + 1;
128
-
129
- $collection = Mage::helper('remarketing/review_update')->getRatingSummaryListCollection($getStoreId);
130
- $collection->getSelect()
131
- ->where('review_entity_summary.entity_type = ?', 1)
132
- ->where("review_entity_summary.primary_id >= ?", $fromRatingSummaryId)
133
- ->order('review_entity_summary.primary_id ASC')
134
- ->limit($getChunkSize);
135
-
136
- return $this->ratingSummariesFromCollection($getStoreId, $collection);
137
- }
138
-
139
- public function ratingSummaryUpdateList($storeId, $chunkSize, $startUpdateId) {
140
- Mage::helper('remarketing')->requireReviewsEnabled();
141
-
142
- $getStoreId = is_numeric($storeId) ? $storeId : 1;
143
- $getChunkSize = is_numeric($chunkSize) ? $chunkSize : 50;
144
- $fromUpdateId = $startUpdateId + 1;
145
-
146
- $collection = Mage::helper('remarketing/review_update')->getRatingSummaryListCollection($getStoreId);
147
- $collection->getSelect()
148
- ->where('review_entity_summary.entity_type = ?', 1)
149
- ->where("updatetime.update_id >= ?", $fromUpdateId)
150
- ->order('updatetime.update_id ASC')
151
- ->limit($getChunkSize);
152
-
153
- return $this->ratingSummariesFromCollection($getStoreId, $collection);
154
- }
155
-
156
- private function ratingSummariesFromCollection($storeId, $collection) {
157
- $ratingSummaries = array();
158
-
159
- foreach($collection as $ratingSummary) {
160
- $productId = $ratingSummary->getEntityPkValue();
161
-
162
- $ratingCollection = Mage::getModel('rating/rating')
163
- ->getResourceCollection()
164
- ->setStoreFilter($storeId)
165
- ->load()
166
- ->addEntitySummaryToItem($productId, $storeId);
167
-
168
- $ratings = array();
169
- foreach($ratingCollection as $rating) {
170
- array_push($ratings, array(
171
- "rating_id" => $rating->getRatingId(),
172
- "rating_code" => $rating->getRatingCode(),
173
- "rating" => round($rating->getSummary() / 20, 4)
174
- ));
175
- }
176
-
177
- array_push($ratingSummaries, array(
178
- "update_id" => $ratingSummary->getUpdateId(),
179
- "rating_summary_id" => $ratingSummary->getPrimaryId(),
180
- "product_id" => $productId,
181
- "updated_at" => $ratingSummary->getUpdatedAt(),
182
- "total_reviews" => $ratingSummary->getReviewsCount(),
183
- "rating" => round($ratingSummary->getRatingSummary() / 20, 4),
184
- "ratings" => $ratings
185
- ));
186
- }
187
-
188
- return $ratingSummaries;
189
-
190
- }
191
-
192
- public function reviewDeleteList($chunkSize, $startDeleteId) {
193
- Mage::helper('remarketing')->requireReviewsEnabled();
194
-
195
- $mageResource = Mage::getSingleton('core/resource');
196
- $dbRead = $mageResource->getConnection('core_read');
197
-
198
- $getChunkSize = is_numeric($chunkSize) ? $chunkSize : 50;
199
- $fromDeleteId = $startDeleteId + 1;
200
-
201
- $collection = Mage::getModel('listrak/review_update')
202
- ->getCollection()
203
- ->productReviewsOnly()
204
- ->deletedRowsOnly();
205
-
206
- $allReviewIDs = $dbRead
207
- ->select()
208
- ->from(array('review' => Mage::getSingleton('core/resource')->getTableName('review/review')), 'review.review_id');
209
-
210
- $collection->getSelect()
211
- ->where('NOT EXISTS (' . $allReviewIDs->where('main_table.review_id = review.review_id') . ')')
212
- ->where("update_id >= ?", $fromDeleteId)
213
- ->limit($getChunkSize);
214
-
215
- $deletedReviews = array();
216
- foreach($collection as $deletedReview) {
217
- array_push($deletedReviews, array(
218
- "delete_id" => $deletedReview->getUpdateId(),
219
- "review_id" => $deletedReview->getReviewId()
220
- ));
221
- }
222
-
223
- return $deletedReviews;
224
- }
225
-
226
- public function reviewUpdatePurge($purgeBeforeDays) {
227
- $mageResource = Mage::getSingleton('core/resource');
228
- $dbRead = $mageResource->getConnection('core_read');
229
- $dbWrite = $mageResource->getConnection('core_write');
230
-
231
- $doPurgeBeforeDays = is_numeric($purgeBeforeDays) ? $purgeBeforeDays : 30;
232
- $purgeBefore = ($doPurgeBeforeDays > 0 ? gmdate('Y-m-d H:i:s', strtotime("-{$doPurgeBeforeDays} days")) : gmdate('Y-m-d H:i:s'));
233
-
234
- $rowsDeleted = $dbWrite->delete($mageResource->getTableName('listrak/review_update'), array('activity_time < ?' => $purgeBefore));
235
-
236
- return array(
237
- "count" => $rowsDeleted,
238
- "before" => $purgeBefore
239
- );
240
- }
241
- }
242
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Review_Update_Api
16
+ extends Mage_Api_Model_Resource_Abstract
17
+ {
18
+ private $_statuses = array();
19
+
20
+ private $_ratings = array();
21
+
22
+ protected function getStatuses()
23
+ {
24
+ if (sizeof($this->_statuses) == 0) {
25
+ foreach (Mage::getModel('review/review')->getStatusCollection()->getItems() as $status) {
26
+ $this->_statuses[$status->getStatusId()] = $status->getStatusCode();
27
+ }
28
+ }
29
+
30
+ return $this->_statuses;
31
+ }
32
+
33
+ protected function getRatings()
34
+ {
35
+ if (sizeof($this->_ratings) == 0) {
36
+ foreach (Mage::getModel('rating/rating')->getResourceCollection()->getItems() as $rating) {
37
+ $this->_ratings[$rating->getRatingId()] = $rating->getRatingCode();
38
+ }
39
+ }
40
+
41
+ return $this->_ratings;
42
+ }
43
+
44
+ public function reviewList($storeId, $chunkSize, $startReviewId)
45
+ {
46
+ Mage::helper('remarketing')->requireReviewsEnabled();
47
+
48
+ $getStoreId = is_numeric($storeId) ? $storeId : 1;
49
+ $getChunkSize = is_numeric($chunkSize) ? $chunkSize : 50;
50
+ $fromReviewId = $startReviewId + 1;
51
+
52
+ $collection = Mage::helper('remarketing/review_update')->getReviewListCollection($getStoreId);
53
+ $collection
54
+ ->getSelect()
55
+ ->where("main_table.review_id >= ?", $fromReviewId)
56
+ ->reset(Zend_Db_Select::ORDER)
57
+ ->order('main_table.review_id ' . Varien_Db_Select::SQL_ASC)
58
+ ->limit($getChunkSize);
59
+
60
+ return $this->_reviewsFromCollection($getStoreId, $collection);
61
+ }
62
+
63
+ public function reviewUpdateList($storeId, $chunkSize, $startUpdateId)
64
+ {
65
+ Mage::helper('remarketing')->requireReviewsEnabled();
66
+
67
+ $getStoreId = is_numeric($storeId) ? $storeId : 1;
68
+ $getChunkSize = is_numeric($chunkSize) ? $chunkSize : 50;
69
+ $fromUpdateId = $startUpdateId + 1;
70
+
71
+ $collection = Mage::helper('remarketing/review_update')->getReviewListCollection($getStoreId);
72
+ $collection
73
+ ->getSelect()
74
+ ->where("updatetime.update_id >= ?", $fromUpdateId)
75
+ ->reset(Zend_Db_Select::ORDER)
76
+ ->order('updatetime.update_id ' . Varien_Db_Select::SQL_ASC)
77
+ ->limit($getChunkSize);
78
+
79
+ return $this->_reviewsFromCollection($getStoreId, $collection);
80
+ }
81
+
82
+ private function _reviewsFromCollection($storeId, $reviewCollection)
83
+ {
84
+ $statuses = $this->getStatuses();
85
+ $ratings = $this->getRatings();
86
+
87
+ $reviews = array();
88
+
89
+ foreach ($reviewCollection as $review) {
90
+ $reviewId = $review->getReviewId();
91
+
92
+ $reviewRatings = array();
93
+ $votesCollection = Mage::getModel('rating/rating_option_vote')
94
+ ->getResourceCollection()
95
+ ->setReviewFilter($reviewId);
96
+
97
+ foreach ($votesCollection as $vote) {
98
+ $ratingId = $vote->getRatingId();
99
+
100
+ array_push(
101
+ $reviewRatings, array(
102
+ "rating_id" => $ratingId,
103
+ "rating_code" => $ratings[$ratingId],
104
+ "rating" => round($vote->getPercent() / 20, 4)
105
+ )
106
+ );
107
+ }
108
+
109
+ $overallRatingObj = Mage::getModel('rating/rating')
110
+ ->getReviewSummary($reviewId, false);
111
+
112
+ $overallRating = 0;
113
+ foreach ($overallRatingObj as $ratingObj) {
114
+ if ($ratingObj->getStoreId() == $storeId) {
115
+ if ($ratingObj->getCount()) {
116
+ $overallRating = $ratingObj->getSum() / $ratingObj->getCount();
117
+ }
118
+
119
+ break;
120
+ }
121
+ }
122
+
123
+ array_push(
124
+ $reviews, array(
125
+ "update_id" => $review->getUpdateId(),
126
+ "review_id" => $reviewId,
127
+ "product_id" => $review->getEntityPkValue(),
128
+ "title" => $review->getTitle(),
129
+ "text" => $review->getDetail(),
130
+ "overall_rating" => round($overallRating / 20, 4),
131
+ "created_at" => $review->getCreatedAt(),
132
+ "updated_at" => $review->getUpdatedAt(),
133
+ "reviewer_name" => $review->getNickname(),
134
+ "email" => $review->getEmail(),
135
+ "status_id" => $review->getStatusId(),
136
+ "status_code" => $statuses[$review->getStatusId()],
137
+ "ratings" => $reviewRatings
138
+ )
139
+ );
140
+ }
141
+
142
+ return $reviews;
143
+ }
144
+
145
+ public function ratingSummaryList($storeId, $chunkSize, $startRatingSummaryId)
146
+ {
147
+ Mage::helper('remarketing')->requireReviewsEnabled();
148
+
149
+ $getStoreId = is_numeric($storeId) ? $storeId : 1;
150
+ $getChunkSize = is_numeric($chunkSize) ? $chunkSize : 50;
151
+ $fromRatingSummaryId = $startRatingSummaryId + 1;
152
+
153
+ $collection = Mage::helper('remarketing/review_update')->getRatingSummaryListCollection($getStoreId);
154
+ $collection->getSelect()
155
+ ->where('review_entity_summary.entity_type = ?', 1)
156
+ ->where("review_entity_summary.primary_id >= ?", $fromRatingSummaryId)
157
+ ->order('review_entity_summary.primary_id ' . Varien_Db_Select::SQL_ASC)
158
+ ->limit($getChunkSize);
159
+
160
+ return $this->_ratingSummariesFromCollection($getStoreId, $collection);
161
+ }
162
+
163
+ public function ratingSummaryUpdateList($storeId, $chunkSize, $startUpdateId)
164
+ {
165
+ Mage::helper('remarketing')->requireReviewsEnabled();
166
+
167
+ $getStoreId = is_numeric($storeId) ? $storeId : 1;
168
+ $getChunkSize = is_numeric($chunkSize) ? $chunkSize : 50;
169
+ $fromUpdateId = $startUpdateId + 1;
170
+
171
+ $collection = Mage::helper('remarketing/review_update')->getRatingSummaryListCollection($getStoreId);
172
+ $collection->getSelect()
173
+ ->where('review_entity_summary.entity_type = ?', 1)
174
+ ->where("updatetime.update_id >= ?", $fromUpdateId)
175
+ ->order('updatetime.update_id ' . Varien_Db_Select::SQL_ASC)
176
+ ->limit($getChunkSize);
177
+
178
+ return $this->_ratingSummariesFromCollection($getStoreId, $collection);
179
+ }
180
+
181
+ private function _ratingSummariesFromCollection($storeId, $collection)
182
+ {
183
+ $ratingSummaries = array();
184
+
185
+ foreach ($collection as $ratingSummary) {
186
+ $productId = $ratingSummary->getEntityPkValue();
187
+
188
+ $ratingCollection = Mage::getModel('rating/rating')
189
+ ->getResourceCollection()
190
+ ->setStoreFilter($storeId)
191
+ ->load()
192
+ ->addEntitySummaryToItem($productId, $storeId);
193
+
194
+ $ratings = array();
195
+ foreach ($ratingCollection as $rating) {
196
+ array_push(
197
+ $ratings, array(
198
+ "rating_id" => $rating->getRatingId(),
199
+ "rating_code" => $rating->getRatingCode(),
200
+ "rating" => round($rating->getSummary() / 20, 4)
201
+ )
202
+ );
203
+ }
204
+
205
+ array_push(
206
+ $ratingSummaries, array(
207
+ "update_id" => $ratingSummary->getUpdateId(),
208
+ "rating_summary_id" => $ratingSummary->getPrimaryId(),
209
+ "product_id" => $productId,
210
+ "updated_at" => $ratingSummary->getUpdatedAt(),
211
+ "total_reviews" => $ratingSummary->getReviewsCount(),
212
+ "rating" => round($ratingSummary->getRatingSummary() / 20, 4),
213
+ "ratings" => $ratings
214
+ )
215
+ );
216
+ }
217
+
218
+ return $ratingSummaries;
219
+
220
+ }
221
+
222
+ public function reviewDeleteList($chunkSize, $startDeleteId)
223
+ {
224
+ Mage::helper('remarketing')->requireReviewsEnabled();
225
+
226
+ $mageResource = Mage::getSingleton('core/resource');
227
+ $dbRead = $mageResource->getConnection('core_read');
228
+
229
+ $getChunkSize = is_numeric($chunkSize) ? $chunkSize : 50;
230
+ $fromDeleteId = $startDeleteId + 1;
231
+
232
+ $collection = Mage::getModel('listrak/review_update')
233
+ ->getCollection()
234
+ ->productReviewsOnly()
235
+ ->deletedRowsOnly();
236
+
237
+ $allReviewIDs = $dbRead
238
+ ->select()
239
+ ->from(
240
+ array('review' => Mage::getSingleton('core/resource')->getTableName('review/review')),
241
+ 'review.review_id'
242
+ );
243
+
244
+ $collection->getSelect()
245
+ ->where('NOT EXISTS (' . $allReviewIDs->where('main_table.review_id = review.review_id') . ')')
246
+ ->where("update_id >= ?", $fromDeleteId)
247
+ ->limit($getChunkSize);
248
+
249
+ $deletedReviews = array();
250
+ foreach ($collection as $deletedReview) {
251
+ array_push(
252
+ $deletedReviews, array(
253
+ "delete_id" => $deletedReview->getUpdateId(),
254
+ "review_id" => $deletedReview->getReviewId()
255
+ )
256
+ );
257
+ }
258
+
259
+ return $deletedReviews;
260
+ }
261
+
262
+ public function reviewUpdatePurge($purgeBeforeDays)
263
+ {
264
+ $mageResource = Mage::getSingleton('core/resource');
265
+ $dbWrite = $mageResource->getConnection('core_write');
266
+
267
+ $doPurgeBeforeDays = is_numeric($purgeBeforeDays) ? $purgeBeforeDays : 30;
268
+ $purgeBefore = $doPurgeBeforeDays > 0
269
+ ? gmdate('Y-m-d H:i:s', strtotime("-{$doPurgeBeforeDays} days")) : gmdate('Y-m-d H:i:s');
270
+
271
+ $rowsDeleted = $dbWrite->delete(
272
+ $mageResource->getTableName('listrak/review_update'),
273
+ array('activity_time < ?' => $purgeBefore)
274
+ );
275
+
276
+ return array(
277
+ "count" => $rowsDeleted,
278
+ "before" => $purgeBefore
279
+ );
280
+ }
281
+ }
282
+
app/code/community/Listrak/Remarketing/Model/Review/Update/Api/V2.php CHANGED
@@ -1,9 +1,20 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Review_Update_Api_V2 extends Listrak_Remarketing_Model_Review_Update_Api {
6
-
7
- }
8
-
9
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Review_Update_Api_V2
16
+ extends Listrak_Remarketing_Model_Review_Update_Api
17
+ {
18
+
19
+ }
20
 
 
 
 
 
 
app/code/community/Listrak/Remarketing/Model/Session.php CHANGED
@@ -1,86 +1,104 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
4
-
5
- class Listrak_Remarketing_Model_Session extends Mage_Core_Model_Abstract {
6
-
7
- public function _construct()
8
- {
9
- parent::_construct();
10
- $this->_init('listrak/session');
11
- }
12
-
13
- public function init($createOnlyIfCartHasItems = false) {
14
- $ltksid = Mage::getModel('core/cookie')->get('ltksid');
15
- $piid = Mage::getModel('core/cookie')->get('personalmerchant');
16
- $cust_session = Mage::getSingleton("customer/session");
17
- $ltkpk = 0;
18
-
19
- if(!empty($ltksid) && strlen($ltksid) > 37) {
20
- $ltkpk = intval(substr($ltksid, 37), 10);
21
- //$this->setSessionId($ltksid);
22
- $this->load($ltkpk);
23
- if($this->getSessionId() !== substr($ltksid, 0, 36)) {
24
- $this->setData(array());
25
- }
26
- //$this->getResource()->loadBySessionId($this);
27
- }
28
-
29
- if(!empty($piid)) {
30
- $this->setPiId($piid);
31
- }
32
-
33
- if(!$this->getId()) {
34
- if ($createOnlyIfCartHasItems && Mage::helper('checkout/cart')->getItemsCount() < 1) {
35
- return null;
36
- }
37
- $this->setSessionId(Mage::helper('remarketing')->gen_uuid());
38
- $this->setCreatedAt(gmdate('Y-m-d H:i:s'));
39
- $this->setIsNew(true);
40
- }
41
-
42
- if($cust_session->isLoggedIn()) {
43
- $this->setCustomerId($cust_session->getId());
44
- }
45
-
46
- $quoteId = Mage::helper('checkout/cart')->getQuote()->getId();
47
-
48
- if($quoteId)
49
- $this->setQuoteId($quoteId);
50
-
51
- $this->setStoreId(Mage::app()->getStore()->getStoreId());
52
- $this->setUpdatedAt(gmdate('Y-m-d H:i:s'));
53
-
54
- if(strlen($this->getIps()) > 0) {
55
- if(strpos($this->getIps(), $_SERVER["REMOTE_ADDR"]) === FALSE)
56
- $this->setIps($this->getIps() . "," . $_SERVER["REMOTE_ADDR"]);
57
- }
58
- else {
59
- $this->setIps($_SERVER["REMOTE_ADDR"]);
60
- }
61
-
62
- $this->save();
63
-
64
- if($this->getIsNew() === true) {
65
- Mage::getModel('core/cookie')->set('ltksid', $this->getSessionId() . '-' . $this->getId(), TRUE, NULL, NULL, NULL, FALSE);
66
- }
67
-
68
- $cs = Mage::getSingleton('core/session');
69
-
70
- if($cs->getIsListrakOrderMade()) {
71
- Mage::getModel('core/cookie')->delete('ltksid');
72
- $cs->setIsListrakOrderMade(false);
73
- }
74
-
75
- return $this;
76
- }
77
-
78
- public function loadEmails() {
79
- $this->getResource()->loadEmails($this);
80
- }
81
-
82
- public function delete() {
83
- $del = $this->getResource()->deleteEmails($this->getId());
84
- parent::delete();
85
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ class Listrak_Remarketing_Model_Session extends Mage_Core_Model_Abstract
16
+ {
17
+
18
+ public function _construct()
19
+ {
20
+ parent::_construct();
21
+ $this->_init('listrak/session');
22
+ }
23
+
24
+ public function init($createOnlyIfCartHasItems = false)
25
+ {
26
+ $ltksid = Mage::getModel('core/cookie')->get('ltksid');
27
+ $piid = Mage::getModel('core/cookie')->get('personalmerchant');
28
+ $custSession = Mage::getSingleton("customer/session");
29
+
30
+ if (!empty($ltksid) && strlen($ltksid) > 37) {
31
+ $ltkpk = intval(substr($ltksid, 37), 10);
32
+ //$this->setSessionId($ltksid);
33
+ $this->load($ltkpk);
34
+ if ($this->getSessionId() !== substr($ltksid, 0, 36)) {
35
+ $this->setData(array());
36
+ }
37
+ //$this->getResource()->loadBySessionId($this);
38
+ }
39
+
40
+ if (!empty($piid)) {
41
+ $this->setPiId($piid);
42
+ }
43
+
44
+ if (!$this->getId()) {
45
+ if ($createOnlyIfCartHasItems && Mage::helper('checkout/cart')->getItemsCount() < 1) {
46
+ return null;
47
+ }
48
+ $this->setSessionId(Mage::helper('remarketing')->genUuid());
49
+ $this->setCreatedAt(gmdate('Y-m-d H:i:s'));
50
+ $this->setIsNew(true);
51
+ }
52
+
53
+ if ($custSession->isLoggedIn()) {
54
+ $this->setCustomerId($custSession->getId());
55
+ }
56
+
57
+ $quoteId = Mage::helper('checkout/cart')->getQuote()->getId();
58
+
59
+ if ($quoteId) {
60
+ $this->setQuoteId($quoteId);
61
+ }
62
+
63
+ $this->setStoreId(Mage::app()->getStore()->getStoreId());
64
+ $this->setUpdatedAt(gmdate('Y-m-d H:i:s'));
65
+
66
+ if (strlen($this->getIps()) > 0) {
67
+ if (strpos($this->getIps(), $_SERVER["REMOTE_ADDR"]) === false) {
68
+ $this->setIps($this->getIps() . "," . $_SERVER["REMOTE_ADDR"]);
69
+ }
70
+ } else {
71
+ $this->setIps($_SERVER["REMOTE_ADDR"]);
72
+ }
73
+
74
+ $this->save();
75
+
76
+ if ($this->getIsNew() === true) {
77
+ Mage::getModel('core/cookie')->set(
78
+ 'ltksid',
79
+ $this->getSessionId() . '-' . $this->getId(),
80
+ true, null, null, null, false
81
+ );
82
+ }
83
+
84
+ $cs = Mage::getSingleton('core/session');
85
+
86
+ if ($cs->getIsListrakOrderMade()) {
87
+ Mage::getModel('core/cookie')->delete('ltksid');
88
+ $cs->setIsListrakOrderMade(false);
89
+ }
90
+
91
+ return $this;
92
+ }
93
+
94
+ public function loadEmails()
95
+ {
96
+ $this->getResource()->loadEmails($this);
97
+ }
98
+
99
+ public function delete()
100
+ {
101
+ $this->getResource()->deleteEmails($this->getId());
102
+ parent::delete();
103
+ }
104
  }
app/code/community/Listrak/Remarketing/Model/Subscriber.php CHANGED
@@ -1,22 +1,35 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Model_Subscriber extends Mage_Newsletter_Model_Subscriber {
6
-
7
- public function sendConfirmationSuccessEmail() {
8
- if(!Mage::getStoreConfig('remarketing/subscription/signup_success_email')) {
9
- return $this;
10
- }
11
-
12
- return parent::sendConfirmationSuccessEmail();
13
- }
14
-
15
- public function sendUnsubscriptionEmail() {
16
- if(!Mage::getStoreConfig('remarketing/subscription/unsubscribe_email')) {
17
- return $this;
18
- }
19
-
20
- return parent::sendUnsubscriptionEmail();
21
- }
 
 
 
22
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Model_Subscriber extends Mage_Newsletter_Model_Subscriber
16
+ {
17
+
18
+ public function sendConfirmationSuccessEmail()
19
+ {
20
+ if (!Mage::getStoreConfig('remarketing/subscription/signup_success_email')) {
21
+ return $this;
22
+ }
23
+
24
+ return parent::sendConfirmationSuccessEmail();
25
+ }
26
+
27
+ public function sendUnsubscriptionEmail()
28
+ {
29
+ if (!Mage::getStoreConfig('remarketing/subscription/unsubscribe_email')) {
30
+ return $this;
31
+ }
32
+
33
+ return parent::sendUnsubscriptionEmail();
34
+ }
35
  }
app/code/community/Listrak/Remarketing/Model/Subscriberupdate.php CHANGED
@@ -1,6 +1,16 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  class Listrak_Remarketing_Model_Subscriberupdate extends Mage_Core_Model_Abstract
6
  {
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  class Listrak_Remarketing_Model_Subscriberupdate extends Mage_Core_Model_Abstract
16
  {
app/code/community/Listrak/Remarketing/controllers/Adminhtml/AbandonedcartreportController.php CHANGED
@@ -1,35 +1,47 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Adminhtml_AbandonedcartreportController extends Mage_Adminhtml_Controller_Action
 
6
  {
7
- protected function _initAction()
8
- {
9
- $this->loadLayout()
10
- ->_setActiveMenu('remarketing');
11
- return $this;
12
- }
13
-
14
- public function indexAction() {
15
- try {
16
- $this->_initAction();
17
- $this->_addContent($this->getLayout()->createBlock('remarketing/adminhtml_abandonedcartreport'));
18
- $this->renderLayout();
19
- } catch(Exception $e) {
20
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
21
- Mage::getSingleton('adminhtml/session')->setEmailCaptureData($this->getRequest()->getPost());
22
- $this->_redirect('adminhtml/dashboard');
23
- return;
24
- }
25
 
26
- }
27
-
28
- public function gridAction()
29
- {
30
- $this->loadLayout();
31
- $this->getResponse()->setBody(
32
- $this->getLayout()->createBlock('importedit/adminhtml_abandonedcartreport_grid')->toHtml()
33
- );
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Adminhtml_AbandonedcartreportController
16
+ extends Mage_Adminhtml_Controller_Action
17
  {
18
+ protected function _initAction()
19
+ {
20
+ $this->loadLayout()
21
+ ->_setActiveMenu('remarketing');
22
+ return $this;
23
+ }
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
+ public function indexAction()
26
+ {
27
+ try {
28
+ $this->_initAction();
29
+ $this->_addContent($this->getLayout()->createBlock('remarketing/adminhtml_abandonedcartreport'));
30
+ $this->renderLayout();
31
+ } catch (Exception $e) {
32
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
33
+ Mage::getSingleton('adminhtml/session')->setEmailCaptureData($this->getRequest()->getPost());
34
+ $this->_redirect('adminhtml/dashboard');
35
+ return;
36
+ }
37
+
38
+ }
39
+
40
+ public function gridAction()
41
+ {
42
+ $this->loadLayout();
43
+ $this->getResponse()->setBody(
44
+ $this->getLayout()->createBlock('importedit/adminhtml_abandonedcartreport_grid')->toHtml()
45
+ );
46
+ }
47
  }
app/code/community/Listrak/Remarketing/controllers/Adminhtml/EmailcaptureController.php CHANGED
@@ -1,125 +1,153 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Adminhtml_EmailCaptureController extends Mage_Adminhtml_Controller_Action
 
6
  {
7
-
8
- protected function _initAction()
9
- {
10
- $this->loadLayout()
11
- ->_setActiveMenu('remarketing')
12
- ->_addBreadcrumb(Mage::helper('adminhtml')->__('Fields Manager'), Mage::helper('adminhtml')->__('Field Manager'));
13
- return $this;
14
- }
15
-
16
- public function indexAction() {
17
- try {
18
- $this->_initAction();
19
- $this->_addContent($this->getLayout()->createBlock('remarketing/adminhtml_emailcapture'));
20
- $this->renderLayout();
21
- } catch(Exception $e) {
22
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
23
- Mage::getSingleton('adminhtml/session')->setEmailCaptureData($this->getRequest()->getPost());
24
- $this->_redirect('adminhtml/dashboard');
25
- return;
26
- }
27
-
28
- }
29
-
30
- public function editAction()
31
- {
32
- try {
33
- $emailcaptureId = $this->getRequest()->getParam('id');
34
- $emailcaptureModel = Mage::getModel('listrak/emailcapture')->load($emailcaptureId);
35
-
36
- if ($emailcaptureModel->getId() || $emailcaptureId == 0) {
37
-
38
- Mage::register('emailcapture_data', $emailcaptureModel);
39
-
40
- $this->loadLayout();
41
- $this->_setActiveMenu('emailcapture');
42
-
43
- $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
44
- $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
45
-
46
- $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
47
-
48
- $this->_addContent($this->getLayout()->createBlock('remarketing/adminhtml_emailcapture_edit'))
49
- ->_addLeft($this->getLayout()->createBlock('remarketing/adminhtml_emailcapture_edit_tabs'));
50
-
51
- $this->renderLayout();
52
- } else {
53
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('remarketing')->__('Item does not exist'));
54
- $this->_redirect('*/*/');
55
- }
56
- } catch (Exception $e) {
57
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
58
- Mage::getSingleton('adminhtml/session')->setEmailCaptureData($this->getRequest()->getPost());
59
- $this->_redirect('*/*/index', array('id' => $this->getRequest()->getParam('id')));
60
- return;
61
- }
62
- }
63
-
64
- public function newAction()
65
- {
66
- $this->_forward('edit');
67
- }
68
-
69
- public function saveAction()
70
- {
71
- if ( $this->getRequest()->getPost() ) {
72
- try {
73
- $postData = $this->getRequest()->getPost();
74
- $emailcaptureModel = Mage::getModel('listrak/emailcapture');
75
-
76
- $emailcaptureModel->setId($this->getRequest()->getParam('id'))
77
- ->setPage($postData['page'])
78
- ->setFieldId($postData['field_id'])
79
- ->save();
80
-
81
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully saved'));
82
- Mage::getSingleton('adminhtml/session')->setEmailCaptureData(false);
83
-
84
- $this->_redirect('*/*/');
85
- return;
86
- } catch (Exception $e) {
87
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
88
- Mage::getSingleton('adminhtml/session')->setEmailCaptureData($this->getRequest()->getPost());
89
- $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
90
- return;
91
- }
92
- }
93
- $this->_redirect('*/*/');
94
- }
95
-
96
- public function deleteAction()
97
- {
98
- if( $this->getRequest()->getParam('id') > 0 ) {
99
- try {
100
- $emailcaptureModel = Mage::getModel('listrak/emailcapture');
101
-
102
- $emailcaptureModel->setId($this->getRequest()->getParam('id'))
103
- ->delete();
104
-
105
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully deleted'));
106
- $this->_redirect('*/*/');
107
- } catch (Exception $e) {
108
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
109
- $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
110
- }
111
- }
112
- $this->_redirect('*/*/');
113
- }
114
- /**
115
- * Product grid for AJAX request.
116
- * Sort and filter result for example.
117
- */
118
- public function gridAction()
119
- {
120
- $this->loadLayout();
121
- $this->getResponse()->setBody(
122
- $this->getLayout()->createBlock('importedit/adminhtml_emailcapture_grid')->toHtml()
123
- );
124
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Adminhtml_EmailCaptureController
16
+ extends Mage_Adminhtml_Controller_Action
17
  {
18
+
19
+ protected function _initAction()
20
+ {
21
+ $this->loadLayout()
22
+ ->_setActiveMenu('remarketing')
23
+ ->_addBreadcrumb(
24
+ Mage::helper('adminhtml')->__('Fields Manager'),
25
+ Mage::helper('adminhtml')->__('Field Manager')
26
+ );
27
+ return $this;
28
+ }
29
+
30
+ public function indexAction()
31
+ {
32
+ try {
33
+ $this->_initAction();
34
+ $this->_addContent($this->getLayout()->createBlock('remarketing/adminhtml_emailcapture'));
35
+ $this->renderLayout();
36
+ } catch (Exception $e) {
37
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
38
+ Mage::getSingleton('adminhtml/session')->setEmailCaptureData($this->getRequest()->getPost());
39
+ $this->_redirect('adminhtml/dashboard');
40
+ return;
41
+ }
42
+
43
+ }
44
+
45
+ public function editAction()
46
+ {
47
+ try {
48
+ $emailcaptureId = $this->getRequest()->getParam('id');
49
+ $emailcaptureModel = Mage::getModel('listrak/emailcapture')->load($emailcaptureId);
50
+
51
+ if ($emailcaptureModel->getId() || $emailcaptureId == 0) {
52
+
53
+ Mage::register('emailcapture_data', $emailcaptureModel);
54
+
55
+ $this->loadLayout();
56
+ $this->_setActiveMenu('emailcapture');
57
+
58
+ $this->_addBreadcrumb(
59
+ Mage::helper('adminhtml')->__('Item Manager'),
60
+ Mage::helper('adminhtml')->__('Item Manager')
61
+ );
62
+ $this->_addBreadcrumb(
63
+ Mage::helper('adminhtml')->__('Item News'),
64
+ Mage::helper('adminhtml')->__('Item News')
65
+ );
66
+
67
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
68
+
69
+ $this->_addContent($this->getLayout()->createBlock('remarketing/adminhtml_emailcapture_edit'))
70
+ ->_addLeft($this->getLayout()->createBlock('remarketing/adminhtml_emailcapture_edit_tabs'));
71
+
72
+ $this->renderLayout();
73
+ } else {
74
+ Mage::getSingleton('adminhtml/session')->addError(
75
+ Mage::helper('remarketing')->__('Item does not exist')
76
+ );
77
+ $this->_redirect('*/*/');
78
+ }
79
+ } catch (Exception $e) {
80
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
81
+ Mage::getSingleton('adminhtml/session')->setEmailCaptureData($this->getRequest()->getPost());
82
+ $this->_redirect('*/*/index', array('id' => $this->getRequest()->getParam('id')));
83
+ return;
84
+ }
85
+ }
86
+
87
+ public function newAction()
88
+ {
89
+ $this->_forward('edit');
90
+ }
91
+
92
+ public function saveAction()
93
+ {
94
+ if ($this->getRequest()->getPost()) {
95
+ try {
96
+ $postData = $this->getRequest()->getPost();
97
+ $emailcaptureModel = Mage::getModel('listrak/emailcapture');
98
+
99
+ $emailcaptureModel->setId($this->getRequest()->getParam('id'))
100
+ ->setPage($postData['page'])
101
+ ->setFieldId($postData['field_id'])
102
+ ->save();
103
+
104
+ Mage::getSingleton('adminhtml/session')->addSuccess(
105
+ Mage::helper('adminhtml')->__('Item was successfully saved')
106
+ );
107
+ Mage::getSingleton('adminhtml/session')->setEmailCaptureData(false);
108
+
109
+ $this->_redirect('*/*/');
110
+ return;
111
+ } catch (Exception $e) {
112
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
113
+ Mage::getSingleton('adminhtml/session')->setEmailCaptureData($this->getRequest()->getPost());
114
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
115
+ return;
116
+ }
117
+ }
118
+ $this->_redirect('*/*/');
119
+ }
120
+
121
+ public function deleteAction()
122
+ {
123
+ if ($this->getRequest()->getParam('id') > 0) {
124
+ try {
125
+ $emailcaptureModel = Mage::getModel('listrak/emailcapture');
126
+
127
+ $emailcaptureModel->setId($this->getRequest()->getParam('id'))
128
+ ->delete();
129
+
130
+ Mage::getSingleton('adminhtml/session')->addSuccess(
131
+ Mage::helper('adminhtml')->__('Item was successfully deleted')
132
+ );
133
+ $this->_redirect('*/*/');
134
+ } catch (Exception $e) {
135
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
136
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
137
+ }
138
+ }
139
+ $this->_redirect('*/*/');
140
+ }
141
+
142
+ /**
143
+ * Product grid for AJAX request.
144
+ * Sort and filter result for example.
145
+ */
146
+ public function gridAction()
147
+ {
148
+ $this->loadLayout();
149
+ $this->getResponse()->setBody(
150
+ $this->getLayout()->createBlock('importedit/adminhtml_emailcapture_grid')->toHtml()
151
+ );
152
+ }
153
  }
app/code/community/Listrak/Remarketing/controllers/Adminhtml/ProductattributesController.php CHANGED
@@ -1,142 +1,162 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_Adminhtml_ProductAttributesController extends Mage_Adminhtml_Controller_Action
 
6
  {
7
- protected function _initAction()
8
- {
9
- $this->loadLayout()
10
- ->_setActiveMenu('remarketing');
11
- return $this;
12
- }
13
-
14
- public function indexAction()
15
- {
16
- $this->_initAction();
17
-
18
- try {
19
- // before we display the data, make sure all the product attribute sets are found in our table
20
- // that is done because we can't have null primary keys - something that would happen otherwise
21
- Mage::helper('remarketing/product_attribute_set_map')->ensureDataConsistency();
22
-
23
- // all is consistent - load the information and the UI
24
- $sets = Mage::getModel('listrak/product_attribute_set_map')
25
- ->getCollection()
26
- ->addAttributeSetName()
27
- ->addAttributeNames()
28
- ->orderByAttributeSetName();
29
-
30
- Mage::register('productattribute_sets', $sets);
31
-
32
- $this->_addContent($this->getLayout()->createBlock('remarketing/adminhtml_productattributes'));
33
-
34
- $this->renderLayout();
35
- }
36
- catch (Exception $e) {
37
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
38
- $this->_redirect('*/*/index', array('id' => $this->getRequest()->getParam('id')));
39
- return;
40
- }
41
- }
42
-
43
- public function editAction()
44
- {
45
- $this->_initAction();
46
-
47
- try {
48
- $id = $this->getRequest()->getParam('id');
49
- $model = Mage::getModel('listrak/product_attribute_set_map')
50
- ->getCollection()
51
- ->addAttributeSetName()
52
- ->addMapIdFilter($id)
53
- ->getFirstItem();
54
-
55
- Mage::register('productattribute_data', $model);
56
-
57
- /*$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
58
- $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));*/
59
-
60
- $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
61
-
62
- $this->_addContent($this->getLayout()->createBlock('remarketing/adminhtml_productattributes_edit'))
63
- ->_addLeft($this->getLayout()->createBlock('remarketing/adminhtml_productattributes_edit_tabs'));
64
-
65
- $this->renderLayout();
66
- }
67
- catch (Exception $e) {
68
- Mage::getModel('listrak/log')->addException($e);
69
- Mage::getSingleton('adminhtml/session')->addError("An unexpected error occured while attempting to display the form. Please try again.");
70
- $this->_redirect('*/*/index', array('id' => $this->getRequest()->getParam('id')));
71
- return;
72
- }
73
- }
74
-
75
- public function saveAction()
76
- {
77
- if ( $this->getRequest()->getPost() ) {
78
- try {
79
- $postData = $this->getRequest()->getPost();
80
- $id = $this->getRequest()->getParam('id');
81
-
82
- $model = Mage::getModel('listrak/product_attribute_set_map')
83
- ->load($id);
84
-
85
- // now we know if there is a record and if there isn't, it will be inserted
86
- $model->setBrandAttributeCode($postData['brand_attribute'] == '' ? null : $postData['brand_attribute'])
87
- ->setCategoriesSource(array_key_exists('categories_source', $postData) ? $postData['categories_source'] : null)
88
- ->setUseConfigCategoriesSource(array_key_exists('use_config_categories_source', $postData) && $postData['use_config_categories_source'] ? 1 : 0)
89
- ->setCategoryAttributeCode($postData['categories_category_attribute'] == '' ? null : $postData['categories_category_attribute'])
90
- ->setSubcategoryAttributeCode($postData['categories_subcategory_attribute'] == '' ? null : $postData['categories_subcategory_attribute'])
91
- ->save();
92
-
93
- Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully saved'));
94
-
95
- $this->_redirect('*/*/');
96
- return;
97
- }
98
- catch (Exception $e) {
99
- Mage::getModel('listrak/log')->addException($e);
100
- Mage::getSingleton('adminhtml/session')->addError("An unexpected error occured while attempting to save the settings. Please try again.");
101
- $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
102
- return;
103
- }
104
- }
105
- $this->_redirect('*/*/');
106
- }
107
-
108
- public function bulkassignAction()
109
- {
110
- try {
111
- $postData = $this->getRequest()->getPost();
112
- if (array_key_exists('bulkassign_attribute', $postData) && $postData['bulkassign_attribute'] != '')
113
- {
114
- $attributeCode = $postData['bulkassign_attribute'];
115
-
116
- $sets = Mage::getModel('listrak/product_attribute_set_map')
117
- ->getCollection();
118
-
119
- foreach($sets as $set)
120
- {
121
- if($set->getBrandAttributeCode() == null && Mage::getResourceModel('catalog/product_attribute_collection')
122
- ->setAttributeSetFilter($set->getAttributeSetId())
123
- ->addVisibleFilter()
124
- ->setCodeFilter($attributeCode)
125
- ->count() > 0)
126
- {
127
- $set->setBrandAttributeCode($attributeCode)
128
- ->save();
129
- }
130
- }
131
- }
132
- }
133
- catch (Exception $e) {
134
- Mage::getModel('listrak/log')->addException($e);
135
- Mage::getSingleton('adminhtml/session')->addError("An unexpected error occured while assigning the brand attribute.");
136
- }
137
-
138
- $this->_redirect('*/*/');
139
- }
 
 
 
 
 
 
 
 
 
 
140
  }
141
 
142
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_Adminhtml_ProductAttributesController
16
+ extends Mage_Adminhtml_Controller_Action
17
  {
18
+ protected function _initAction()
19
+ {
20
+ $this->loadLayout()
21
+ ->_setActiveMenu('remarketing');
22
+ return $this;
23
+ }
24
+
25
+ public function indexAction()
26
+ {
27
+ $this->_initAction();
28
+
29
+ try {
30
+ // before we display the data, make sure all the product attribute sets are found in our table
31
+ // that is done because we can't have null primary keys - something that would happen otherwise
32
+ Mage::helper('remarketing/product_attribute_set_map')->ensureDataConsistency();
33
+
34
+ // all is consistent - load the information and the UI
35
+ $sets = Mage::getModel('listrak/product_attribute_set_map')
36
+ ->getCollection()
37
+ ->addAttributeSetName()
38
+ ->addAttributeNames()
39
+ ->orderByAttributeSetName();
40
+
41
+ Mage::register('productattribute_sets', $sets);
42
+
43
+ $this->_addContent($this->getLayout()->createBlock('remarketing/adminhtml_productattributes'));
44
+
45
+ $this->renderLayout();
46
+ } catch (Exception $e) {
47
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
48
+ $this->_redirect('*/*/index', array('id' => $this->getRequest()->getParam('id')));
49
+ return;
50
+ }
51
+ }
52
+
53
+ public function editAction()
54
+ {
55
+ $this->_initAction();
56
+
57
+ try {
58
+ $id = $this->getRequest()->getParam('id');
59
+ $model = Mage::getModel('listrak/product_attribute_set_map')
60
+ ->getCollection()
61
+ ->addAttributeSetName()
62
+ ->addMapIdFilter($id)
63
+ ->getFirstItem();
64
+
65
+ Mage::register('productattribute_data', $model);
66
+
67
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
68
+
69
+ $this->_addContent($this->getLayout()->createBlock('remarketing/adminhtml_productattributes_edit'))
70
+ ->_addLeft($this->getLayout()->createBlock('remarketing/adminhtml_productattributes_edit_tabs'));
71
+
72
+ $this->renderLayout();
73
+ } catch (Exception $e) {
74
+ Mage::getModel('listrak/log')->addException($e);
75
+ Mage::getSingleton('adminhtml/session')->addError(
76
+ "An unexpected error occurred while attempting to display the form. Please try again."
77
+ );
78
+ $this->_redirect('*/*/index', array('id' => $this->getRequest()->getParam('id')));
79
+ return;
80
+ }
81
+ }
82
+
83
+ public function saveAction()
84
+ {
85
+ if ($this->getRequest()->getPost()) {
86
+ try {
87
+ $postData = $this->getRequest()->getPost();
88
+ $id = $this->getRequest()->getParam('id');
89
+
90
+ $model = Mage::getModel('listrak/product_attribute_set_map')
91
+ ->load($id);
92
+
93
+ // now we know if there is a record and if there isn't, it will be inserted
94
+ $categoriesSource = array_key_exists('categories_source', $postData)
95
+ ? $postData['categories_source'] : null;
96
+ $useConfigCategoriesSource = array_key_exists('use_config_categories_source', $postData)
97
+ && $postData['use_config_categories_source'] ? 1 : 0;
98
+ $categoryAttributeCode = $postData['categories_category_attribute'] == ''
99
+ ? null : $postData['categories_category_attribute'];
100
+ $subcategoryAttributeCode = $postData['categories_subcategory_attribute'] == ''
101
+ ? null : $postData['categories_subcategory_attribute'];
102
+ $model->setBrandAttributeCode($postData['brand_attribute'] == '' ? null : $postData['brand_attribute'])
103
+ ->setCategoriesSource($categoriesSource)
104
+ ->setUseConfigCategoriesSource($useConfigCategoriesSource)
105
+ ->setCategoryAttributeCode($categoryAttributeCode)
106
+ ->setSubcategoryAttributeCode($subcategoryAttributeCode)
107
+ ->save();
108
+
109
+ Mage::getSingleton('adminhtml/session')->addSuccess(
110
+ Mage::helper('adminhtml')->__('Item was successfully saved')
111
+ );
112
+
113
+ $this->_redirect('*/*/');
114
+ return;
115
+ } catch (Exception $e) {
116
+ Mage::getModel('listrak/log')->addException($e);
117
+ Mage::getSingleton('adminhtml/session')->addError(
118
+ "An unexpected error occurred while attempting to save the settings. Please try again."
119
+ );
120
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
121
+ return;
122
+ }
123
+ }
124
+ $this->_redirect('*/*/');
125
+ }
126
+
127
+ public function bulkassignAction()
128
+ {
129
+ try {
130
+ $postData = $this->getRequest()->getPost();
131
+ if (array_key_exists('bulkassign_attribute', $postData) && $postData['bulkassign_attribute'] != '') {
132
+ $attributeCode = $postData['bulkassign_attribute'];
133
+
134
+ $sets = Mage::getModel('listrak/product_attribute_set_map')
135
+ ->getCollection();
136
+
137
+
138
+ foreach ($sets as $set) {
139
+ $productAttributeCollectionCount = Mage::getResourceModel('catalog/product_attribute_collection')
140
+ ->setAttributeSetFilter($set->getAttributeSetId())
141
+ ->addVisibleFilter()
142
+ ->setCodeFilter($attributeCode)
143
+ ->count();
144
+ if ($set->getBrandAttributeCode() == null
145
+ && $productAttributeCollectionCount > 0
146
+ ) {
147
+ $set->setBrandAttributeCode($attributeCode)
148
+ ->save();
149
+ }
150
+ }
151
+ }
152
+ } catch (Exception $e) {
153
+ Mage::getModel('listrak/log')->addException($e);
154
+ Mage::getSingleton('adminhtml/session')->addError(
155
+ "An unexpected error occurred while assigning the brand attribute."
156
+ );
157
+ }
158
+
159
+ $this->_redirect('*/*/');
160
+ }
161
  }
162
 
 
app/code/community/Listrak/Remarketing/controllers/CartController.php CHANGED
@@ -1,67 +1,81 @@
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
-
60
- $url = $this->getRequest()->getParam('redirectUrl');
61
- if(!$url) {
62
- $url = 'checkout/cart/';
63
- }
64
-
65
- return $this->_redirect($url, array('_query' => $qs, '_secure' => Mage::app()->getStore()->isCurrentlySecure()));
66
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  class Listrak_Remarketing_CartController extends Mage_Core_Controller_Front_Action
16
  {
17
+ public function indexAction()
18
+ {
19
+ return $this;
20
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
+ public function reloadAction()
23
+ {
24
+ $checkout = Mage::getSingleton('checkout/session');
25
+ $cust = Mage::getSingleton('customer/session');
26
+ $ltksid = $this->getRequest()->getParam('ltksid');
27
+ $ltksession = Mage::getModel("listrak/session");
28
+ $ltksidcookie = Mage::getModel('core/cookie')->get('ltksid');
29
+ $chkQuote = Mage::helper('checkout/cart')->getQuote();
30
+
31
+ try {
32
+ if (!$ltksid) {
33
+ return $this->_redirectAfterReload();
34
+ }
35
+
36
+ if (!empty($ltksidcookie) && $ltksidcookie == $ltksid && $chkQuote && $chkQuote->getId()) {
37
+ return $this->_redirectAfterReload();
38
+ }
39
+
40
+ $ltksession->setSessionId($ltksid);
41
+ $ltksession->getResource()->loadBySessionId($ltksession);
42
+
43
+ if (!$ltksession->getId() || !$ltksession->getQuoteId()) {
44
+ return $this->_redirectAfterReload();
45
+ }
46
+
47
+ if ($cust && $cust->isLoggedIn()) {
48
+ if ($cust->getId() === $ltksession->getCustomerId()) {
49
+ return $this->_redirectAfterReload();
50
+ }
51
+ }
52
+
53
+ $quote = Mage::getModel('sales/quote')->load($ltksession->getQuoteId());
54
+
55
+ if ($quote->getId() && $quote->getIsActive()) {
56
+ $checkout->setQuoteId($ltksession->getQuoteId());
57
+ }
58
+ } catch (Exception $ex) {
59
+ Mage::getModel("listrak/log")->addException($ex);
60
+ }
61
+
62
+ return $this->_redirectAfterReload();
63
+ }
64
+
65
+ private function _redirectAfterReload()
66
+ {
67
+ $qs = $this->getRequest()->getParams();
68
+ unset($qs["redirectUrl"]);
69
+ unset($qs["ltksid"]);
70
+
71
+ $url = $this->getRequest()->getParam('redirectUrl');
72
+ if (!$url) {
73
+ $url = 'checkout/cart/';
74
+ }
75
+
76
+ return $this->_redirect(
77
+ $url,
78
+ array('_query' => $qs, '_secure' => Mage::app()->getStore()->isCurrentlySecure())
79
+ );
80
+ }
81
  }
app/code/community/Listrak/Remarketing/controllers/ConfigController.php CHANGED
@@ -1,30 +1,43 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  class Listrak_Remarketing_ConfigController extends Mage_Core_Controller_Front_Action
6
  {
7
- public function indexAction() {
8
- return $this;
9
- }
10
-
11
- public function registerAction() {
12
- $reg = Mage::getStoreConfig('remarketing/config/account_created');
13
-
14
- if(!$reg) {
15
- $gv = array();
16
- $gv['config']['fields']['account_created']['value'] = '1';
17
- Mage::getModel('adminhtml/config_data')
18
- ->setSection('remarketing')
19
- ->setWebsite(null)
20
- ->setStore(null)
21
- ->setGroups($gv)
22
- ->save();
23
- Mage::getConfig()->cleanCache();
24
- }
25
- }
26
-
27
- public function checkAction() {
28
- die(Mage::getStoreConfig('remarketing/config/account_created'));
29
- }
 
 
 
30
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  class Listrak_Remarketing_ConfigController extends Mage_Core_Controller_Front_Action
16
  {
17
+ public function indexAction()
18
+ {
19
+ return $this;
20
+ }
21
+
22
+ public function registerAction()
23
+ {
24
+ $reg = Mage::getStoreConfig('remarketing/config/account_created');
25
+
26
+ if (!$reg) {
27
+ $gv = array();
28
+ $gv['config']['fields']['account_created']['value'] = '1';
29
+ Mage::getModel('adminhtml/config_data')
30
+ ->setSection('remarketing')
31
+ ->setWebsite(null)
32
+ ->setStore(null)
33
+ ->setGroups($gv)
34
+ ->save();
35
+ Mage::getConfig()->cleanCache();
36
+ }
37
+ }
38
+
39
+ public function checkAction()
40
+ {
41
+ echo Mage::getStoreConfig('remarketing/config/account_created');
42
+ }
43
  }
app/code/community/Listrak/Remarketing/controllers/EmailController.php CHANGED
@@ -1,51 +1,56 @@
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
-
36
- public function fsidAction() {
37
- $email = $this->getRequest()->getParam('email');
38
-
39
- if(!Zend_Validate::is($email, 'EmailAddress')) {
40
- die("invalid");
41
- }
42
-
43
- $emailcaptureId = $this->getRequest()->getParam('cid');
44
- $session = Mage::getModel('listrak/session');
45
- $session->setSessionId($this->getRequest()->getParam('ltksid'));
46
- $session->getResource()->loadBySessionId($session);
47
- $session->getResource()->insertEmail($session, $email, $emailcaptureId);
48
-
49
- die(json_encode(array('status' => true)));
50
- }
51
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  class Listrak_Remarketing_EmailController extends Mage_Core_Controller_Front_Action
16
  {
17
+ public function indexAction()
18
+ {
19
+ try {
20
+ $email = $this->getRequest()->getParam('email');
21
+ if (Zend_Validate::is($email, 'EmailAddress')) {
22
+ $emailcaptureId = $this->getRequest()->getParam('cid');
23
+ $session = Mage::getSingleton('listrak/session')->init();
24
+ $emailcapture = Mage::getModel('listrak/emailcapture')->load($emailcaptureId);
 
 
 
 
25
 
26
+ if ($emailcapture->getId()) {
27
+ $session->getResource()->insertEmail($session, $email, $emailcaptureId);
28
+ $result = array('status' => true);
29
+ } else {
30
+ $result = array('status' => false);
31
+ }
32
+ header('Content-type: application/json');
33
+ echo json_encode($result);
34
+ }
35
+ } catch (Exception $e) {
36
+ Mage::getModel("listrak/log")->addException($e);
37
+ }
38
+ }
39
 
40
+ public function fsidAction()
41
+ {
42
+ $email = $this->getRequest()->getParam('email');
 
43
 
44
+ if (!Zend_Validate::is($email, 'EmailAddress')) {
45
+ echo "invalid";
46
+ } else {
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
+ echo json_encode(array('status' => true));
54
+ }
55
+ }
 
 
 
 
 
 
 
 
 
 
 
56
  }
app/code/community/Listrak/Remarketing/controllers/TroubleshootingController.php CHANGED
@@ -1,10 +1,22 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
- class Listrak_Remarketing_TroubleshootingController extends Mage_Core_Controller_Front_Action
 
6
  {
7
- public function indexAction() {
8
-
9
- }
 
10
  }
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
+ class Listrak_Remarketing_TroubleshootingController
16
+ extends Mage_Core_Controller_Front_Action
17
  {
18
+ public function indexAction()
19
+ {
20
+
21
+ }
22
  }
app/code/community/Listrak/Remarketing/etc/adminhtml.xml CHANGED
@@ -1,69 +1,69 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * Listrak Remarketing Magento Extension Ver. 1.0.0 - © 2011 Listrak, Inc.
5
  */
6
  -->
7
  <config>
8
- <menu>
9
- <remarketing module="remarketing">
10
- <title>Listrak</title>
11
- <sort_order>71</sort_order>
12
- <children>
13
- <emailcapture module="remarketing">
14
- <title>Email Capture</title>
15
- <sort_order>0</sort_order>
16
- <action>remarketing/adminhtml_emailcapture</action>
17
- </emailcapture>
18
- <abandonedcartreport module="remarketing">
19
- <title>Abandoned Carts</title>
20
- <sort_order>0</sort_order>
21
- <action>remarketing/adminhtml_abandonedcartreport</action>
22
- </abandonedcartreport>
23
- <productattributes module="remarketing">
24
- <title>Product Attributes</title>
25
- <sort_order>2</sort_order>
26
- <action>remarketing/adminhtml_productattributes</action>
27
- </productattributes>
28
- </children>
29
- </remarketing>
30
- </menu>
31
- <acl>
32
- <resources>
33
- <admin>
34
- <children>
35
- <remarketing translate="title" module="remarketing">
36
- <title>Listrak Remarketing</title>
37
- <sort_order>200</sort_order>
38
- <children>
39
- <emailcapture translate="title">
40
- <title>Email Capture</title>
41
- <sort_order>200</sort_order>
42
- </emailcapture>
43
- <abandonedcartreport translate="title">
44
- <title>Abandoned Carts</title>
45
- <sort_order>200</sort_order>
46
- </abandonedcartreport>
47
- <productattributes translate="title">
48
- <title>Product Attributes</title>
49
- <sort_order>202</sort_order>
50
- </productattributes>
51
- </children>
52
- </remarketing>
53
- <system>
54
- <children>
55
- <config>
56
- <children>
57
- <remarketing translate="title">
58
- <title>Listrak Newsletter</title>
59
- <sort_order>40</sort_order>
60
- </remarketing>
61
- </children>
62
- </config>
63
- </children>
64
- </system>
65
- </children>
66
- </admin>
67
- </resources>
68
- </acl>
69
  </config>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * Listrak Remarketing Magento Extension Ver. 1.0.0 - Copyright (c) 2011 Listrak, Inc.
5
  */
6
  -->
7
  <config>
8
+ <menu>
9
+ <remarketing module="remarketing">
10
+ <title>Listrak</title>
11
+ <sort_order>71</sort_order>
12
+ <children>
13
+ <emailcapture module="remarketing">
14
+ <title>Email Capture</title>
15
+ <sort_order>0</sort_order>
16
+ <action>remarketing/adminhtml_emailcapture</action>
17
+ </emailcapture>
18
+ <abandonedcartreport module="remarketing">
19
+ <title>Abandoned Carts</title>
20
+ <sort_order>0</sort_order>
21
+ <action>remarketing/adminhtml_abandonedcartreport</action>
22
+ </abandonedcartreport>
23
+ <productattributes module="remarketing">
24
+ <title>Product Attributes</title>
25
+ <sort_order>2</sort_order>
26
+ <action>remarketing/adminhtml_productattributes</action>
27
+ </productattributes>
28
+ </children>
29
+ </remarketing>
30
+ </menu>
31
+ <acl>
32
+ <resources>
33
+ <admin>
34
+ <children>
35
+ <remarketing translate="title" module="remarketing">
36
+ <title>Listrak Remarketing</title>
37
+ <sort_order>200</sort_order>
38
+ <children>
39
+ <emailcapture translate="title">
40
+ <title>Email Capture</title>
41
+ <sort_order>200</sort_order>
42
+ </emailcapture>
43
+ <abandonedcartreport translate="title">
44
+ <title>Abandoned Carts</title>
45
+ <sort_order>200</sort_order>
46
+ </abandonedcartreport>
47
+ <productattributes translate="title">
48
+ <title>Product Attributes</title>
49
+ <sort_order>202</sort_order>
50
+ </productattributes>
51
+ </children>
52
+ </remarketing>
53
+ <system>
54
+ <children>
55
+ <config>
56
+ <children>
57
+ <remarketing translate="title">
58
+ <title>Listrak Newsletter</title>
59
+ <sort_order>40</sort_order>
60
+ </remarketing>
61
+ </children>
62
+ </config>
63
+ </children>
64
+ </system>
65
+ </children>
66
+ </admin>
67
+ </resources>
68
+ </acl>
69
  </config>
app/code/community/Listrak/Remarketing/etc/api.xml CHANGED
@@ -1,192 +1,201 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * Listrak Remarketing Magento Extension Ver. 1.0.0 - © 2011 Listrak, Inc.
5
  */
6
  -->
7
  <config>
8
- <api>
9
- <resources>
10
- <listrak_remarketing_abandonedcart translate="title" module="listrak_remarketing">
11
- <title>Listrak Remarketing API</title>
12
- <model>listrak/abandonedcart_api</model>
13
- <methods>
14
- <list translate="title" module="listrak_remarketing">
15
- <title>Get Abandoned Carts</title>
16
- <method>items</method>
17
- </list>
18
- <purge translate="title" module="listrak_remarketing">
19
- <title>Purge old data</title>
20
- <method>purge</method>
21
- </purge>
22
- </methods>
23
- </listrak_remarketing_abandonedcart>
24
- <listrak_remarketing_click translate="title" module="listrak_remarketing">
25
- <title>Listrak Remarketing API</title>
26
- <model>listrak/click_api</model>
27
- <methods>
28
- <list translate="title" module="listrak_remarketing">
29
- <title>Get clicks</title>
30
- <method>items</method>
31
- </list>
32
- <purge translate="title" module="listrak_remarketing">
33
- <title>Purge old data</title>
34
- <method>purge</method>
35
- </purge>
36
- </methods>
37
- </listrak_remarketing_click>
38
- <listrak_remarketing_log translate="title" module="listrak_remarketing">
39
- <title>Listrak Remarketing API</title>
40
- <model>listrak/log_api</model>
41
- <methods>
42
- <list translate="title" module="listrak_remarketing">
43
- <title>Get log entries</title>
44
- <method>items</method>
45
- </list>
46
- <purge translate="title" module="listrak_remarketing">
47
- <title>Purge old data</title>
48
- <method>purge</method>
49
- </purge>
50
- <toggle translate="title" module="listrak_remarketing">
51
- <title>toggle logging</title>
52
- <method>toggle</method>
53
- </toggle>
54
- </methods>
55
- </listrak_remarketing_log>
56
- <listrak_remarketing_order translate="title" module="listrak_remarketing">
57
- <title>Listrak Remarketing API</title>
58
- <model>listrak/apiextension_api</model>
59
- <methods>
60
- <list translate="title" module="listrak_remarketing">
61
- <title>Get orders</title>
62
- <method>orders</method>
63
- </list>
64
- </methods>
65
- </listrak_remarketing_order>
66
- <listrak_remarketing_order_status translate="title" module="listrak_remarketing">
67
- <title>Listrak Remarketing API</title>
68
- <model>listrak/apiextension_api</model>
69
- <methods>
70
- <list translate="title" module="listrak_remarketing">
71
- <title>Get order status changes</title>
72
- <method>orderStatus</method>
73
- </list>
74
- </methods>
75
- </listrak_remarketing_order_status>
76
- <listrak_remarketing_product translate="title" module="listrak_remarketing">
77
- <title>Listrak Remarketing API</title>
78
- <model>listrak/apiextension_api</model>
79
- <methods>
80
- <list translate="title" module="listrak_remarketing">
81
- <title>Get products</title>
82
- <method>products</method>
83
- </list>
84
- </methods>
85
- </listrak_remarketing_product>
86
- <listrak_remarketing_subscriber translate="title" module="listrak_remarketing">
87
- <title>Listrak Remarketing API</title>
88
- <model>listrak/apiextension_api</model>
89
- <methods>
90
- <list translate="title" module="listrak_remarketing">
91
- <title>Get subscribers and unsubscribers</title>
92
- <method>subscribers</method>
93
- </list>
94
- <purge translate="title" module="listrak_remarketing">
95
- <title>Purge old data</title>
96
- <method>subscribersPurge</method>
97
- </purge>
98
- </methods>
99
- </listrak_remarketing_subscriber>
100
- <listrak_remarketing_customer translate="title" module="listrak_remarketing">
101
- <title>Listrak Remarketing API</title>
102
- <model>listrak/apiextension_api</model>
103
- <methods>
104
- <list translate="title" module="listrak_remarketing">
105
- <title>Get customers</title>
106
- <method>customers</method>
107
- </list>
108
- </methods>
109
- </listrak_remarketing_customer>
110
- <listrak_remarketing_info translate="title" module="listrak_remarketing">
111
- <title>Listrak Remarketing API</title>
112
- <model>listrak/apiextension_api</model>
113
- <methods>
114
- <list translate="title" module="listrak_remarketing">
115
- <title>Get info</title>
116
- <method>info</method>
117
- </list>
118
- </methods>
119
- </listrak_remarketing_info>
120
- <listrak_remarketing_review translate="title" module="listrak_remarketing">
121
- <title>Listrak Remarketing API</title>
122
- <model>listrak/review_update_api</model>
123
- <methods>
124
- <list translate="title" module="listrak_remarketing">
125
- <title>Get Review List</title>
126
- <method>reviewList</method>
127
- </list>
128
- <updateList>
129
- <title>Get Incremental Update</title>
130
- <method>reviewUpdateList</method>
131
- </updateList>
132
- <deleteList>
133
- <title>Get Deleted Reviews</title>
134
- <method>reviewDeleteList</method>
135
- </deleteList>
136
- <updatePurge>
137
- <title>Purge Review Update Table</title>
138
- <method>reviewUpdatePurge</method>
139
- </updatePurge>
140
- </methods>
141
- </listrak_remarketing_review>
142
- <listrak_remarketing_rating_summary translate="title" module="listrak_remarketing">
143
- <title>Listrak Remarketing API</title>
144
- <model>listrak/review_update_api</model>
145
- <methods>
146
- <list translate="title" module="listrak_remarketing">
147
- <title>Get Rating Summary List</title>
148
- <method>ratingSummaryList</method>
149
- </list>
150
- <updateList>
151
- <title>Get Incremental Update</title>
152
- <method>ratingSummaryUpdateList</method>
153
- </updateList>
154
- </methods>
155
- </listrak_remarketing_rating_summary>
156
- </resources>
157
- <resources_alias>
158
- <abandonedcart>listrak_remarketing_abandonedcart</abandonedcart>
159
- <click>listrak_remarketing_click</click>
160
- <log>listrak_remarketing_log</log>
161
- <listrakorder>listrak_remarketing_order</listrakorder>
162
- <listrakorderstatus>listrak_remarketing_order_status</listrakorderstatus>
163
- <listrakproduct>listrak_remarketing_product</listrakproduct>
164
- <listraksubscriber>listrak_remarketing_subscriber</listraksubscriber>
165
- <listrakcustomer>listrak_remarketing_customer</listrakcustomer>
166
- <listrakinfo>listrak_remarketing_info</listrakinfo>
167
- <listrakreview>listrak_remarketing_review</listrakreview>
168
- <listrakratingsummary>listrak_remarketing_rating_summary</listrakratingsummary>
169
- </resources_alias>
170
- <v2>
171
- <resources_function_prefix>
172
- <abandonedcart>listrakRemarketingAbandonedCart</abandonedcart>
173
- <click>listrakRemarketingClick</click>
174
- <log>listrakRemarketingLog</log>
175
- <listrakorder>listrakRemarketingOrder</listrakorder>
176
- <listrakorderstatus>listrakRemarketingOrderStatus</listrakorderstatus>
177
- <listrakproduct>listrakRemarketingProduct</listrakproduct>
178
- <listraksubscriber>listrakRemarketingSubscriber</listraksubscriber>
179
- <listrakcustomer>listrakRemarketingCustomer</listrakcustomer>
180
- <listrakinfo>listrakRemarketingInfo</listrakinfo>
181
- <listrakreview>listrakRemarketingReview</listrakreview>
182
- <listrakratingsummary>listrakRemarketingRatingSummary</listrakratingsummary>
183
- </resources_function_prefix>
184
- </v2>
185
- <faults>
186
- <incorrect_date>
187
- <code>12</code>
188
- <message>INCORRECT DATE FORMAT [YYYY-MM-DD HH:MM:SS]</message>
189
- </incorrect_date>
190
- </faults>
191
- </api>
 
 
 
 
 
 
 
 
 
192
  </config>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * Listrak Remarketing Magento Extension Ver. 1.0.0 - Copyright (c) 2011 Listrak, Inc.
5
  */
6
  -->
7
  <config>
8
+ <api>
9
+ <resources>
10
+ <listrak_remarketing_abandonedcart translate="title"
11
+ module="listrak_remarketing">
12
+ <title>Listrak Remarketing API</title>
13
+ <model>listrak/abandonedcart_api</model>
14
+ <methods>
15
+ <list translate="title" module="listrak_remarketing">
16
+ <title>Get Abandoned Carts</title>
17
+ <method>items</method>
18
+ </list>
19
+ <purge translate="title" module="listrak_remarketing">
20
+ <title>Purge old data</title>
21
+ <method>purge</method>
22
+ </purge>
23
+ </methods>
24
+ </listrak_remarketing_abandonedcart>
25
+ <listrak_remarketing_click translate="title"
26
+ module="listrak_remarketing">
27
+ <title>Listrak Remarketing API</title>
28
+ <model>listrak/click_api</model>
29
+ <methods>
30
+ <list translate="title" module="listrak_remarketing">
31
+ <title>Get clicks</title>
32
+ <method>items</method>
33
+ </list>
34
+ <purge translate="title" module="listrak_remarketing">
35
+ <title>Purge old data</title>
36
+ <method>purge</method>
37
+ </purge>
38
+ </methods>
39
+ </listrak_remarketing_click>
40
+ <listrak_remarketing_log translate="title" module="listrak_remarketing">
41
+ <title>Listrak Remarketing API</title>
42
+ <model>listrak/log_api</model>
43
+ <methods>
44
+ <list translate="title" module="listrak_remarketing">
45
+ <title>Get log entries</title>
46
+ <method>items</method>
47
+ </list>
48
+ <purge translate="title" module="listrak_remarketing">
49
+ <title>Purge old data</title>
50
+ <method>purge</method>
51
+ </purge>
52
+ <toggle translate="title" module="listrak_remarketing">
53
+ <title>toggle logging</title>
54
+ <method>toggle</method>
55
+ </toggle>
56
+ </methods>
57
+ </listrak_remarketing_log>
58
+ <listrak_remarketing_order translate="title"
59
+ module="listrak_remarketing">
60
+ <title>Listrak Remarketing API</title>
61
+ <model>listrak/apiextension_api</model>
62
+ <methods>
63
+ <list translate="title" module="listrak_remarketing">
64
+ <title>Get orders</title>
65
+ <method>orders</method>
66
+ </list>
67
+ </methods>
68
+ </listrak_remarketing_order>
69
+ <listrak_remarketing_order_status translate="title"
70
+ module="listrak_remarketing">
71
+ <title>Listrak Remarketing API</title>
72
+ <model>listrak/apiextension_api</model>
73
+ <methods>
74
+ <list translate="title" module="listrak_remarketing">
75
+ <title>Get order status changes</title>
76
+ <method>orderStatus</method>
77
+ </list>
78
+ </methods>
79
+ </listrak_remarketing_order_status>
80
+ <listrak_remarketing_product translate="title"
81
+ module="listrak_remarketing">
82
+ <title>Listrak Remarketing API</title>
83
+ <model>listrak/apiextension_api</model>
84
+ <methods>
85
+ <list translate="title" module="listrak_remarketing">
86
+ <title>Get products</title>
87
+ <method>products</method>
88
+ </list>
89
+ </methods>
90
+ </listrak_remarketing_product>
91
+ <listrak_remarketing_subscriber translate="title"
92
+ module="listrak_remarketing">
93
+ <title>Listrak Remarketing API</title>
94
+ <model>listrak/apiextension_api</model>
95
+ <methods>
96
+ <list translate="title" module="listrak_remarketing">
97
+ <title>Get subscribers and unsubscribers</title>
98
+ <method>subscribers</method>
99
+ </list>
100
+ <purge translate="title" module="listrak_remarketing">
101
+ <title>Purge old data</title>
102
+ <method>subscribersPurge</method>
103
+ </purge>
104
+ </methods>
105
+ </listrak_remarketing_subscriber>
106
+ <listrak_remarketing_customer translate="title"
107
+ module="listrak_remarketing">
108
+ <title>Listrak Remarketing API</title>
109
+ <model>listrak/apiextension_api</model>
110
+ <methods>
111
+ <list translate="title" module="listrak_remarketing">
112
+ <title>Get customers</title>
113
+ <method>customers</method>
114
+ </list>
115
+ </methods>
116
+ </listrak_remarketing_customer>
117
+ <listrak_remarketing_info translate="title" module="listrak_remarketing">
118
+ <title>Listrak Remarketing API</title>
119
+ <model>listrak/apiextension_api</model>
120
+ <methods>
121
+ <list translate="title" module="listrak_remarketing">
122
+ <title>Get info</title>
123
+ <method>info</method>
124
+ </list>
125
+ </methods>
126
+ </listrak_remarketing_info>
127
+ <listrak_remarketing_review translate="title"
128
+ module="listrak_remarketing">
129
+ <title>Listrak Remarketing API</title>
130
+ <model>listrak/review_update_api</model>
131
+ <methods>
132
+ <list translate="title" module="listrak_remarketing">
133
+ <title>Get Review List</title>
134
+ <method>reviewList</method>
135
+ </list>
136
+ <updateList>
137
+ <title>Get Incremental Update</title>
138
+ <method>reviewUpdateList</method>
139
+ </updateList>
140
+ <deleteList>
141
+ <title>Get Deleted Reviews</title>
142
+ <method>reviewDeleteList</method>
143
+ </deleteList>
144
+ <updatePurge>
145
+ <title>Purge Review Update Table</title>
146
+ <method>reviewUpdatePurge</method>
147
+ </updatePurge>
148
+ </methods>
149
+ </listrak_remarketing_review>
150
+ <listrak_remarketing_rating_summary translate="title"
151
+ module="listrak_remarketing">
152
+ <title>Listrak Remarketing API</title>
153
+ <model>listrak/review_update_api</model>
154
+ <methods>
155
+ <list translate="title" module="listrak_remarketing">
156
+ <title>Get Rating Summary List</title>
157
+ <method>ratingSummaryList</method>
158
+ </list>
159
+ <updateList>
160
+ <title>Get Incremental Update</title>
161
+ <method>ratingSummaryUpdateList</method>
162
+ </updateList>
163
+ </methods>
164
+ </listrak_remarketing_rating_summary>
165
+ </resources>
166
+ <resources_alias>
167
+ <abandonedcart>listrak_remarketing_abandonedcart</abandonedcart>
168
+ <click>listrak_remarketing_click</click>
169
+ <log>listrak_remarketing_log</log>
170
+ <listrakorder>listrak_remarketing_order</listrakorder>
171
+ <listrakorderstatus>listrak_remarketing_order_status</listrakorderstatus>
172
+ <listrakproduct>listrak_remarketing_product</listrakproduct>
173
+ <listraksubscriber>listrak_remarketing_subscriber</listraksubscriber>
174
+ <listrakcustomer>listrak_remarketing_customer</listrakcustomer>
175
+ <listrakinfo>listrak_remarketing_info</listrakinfo>
176
+ <listrakreview>listrak_remarketing_review</listrakreview>
177
+ <listrakratingsummary>listrak_remarketing_rating_summary</listrakratingsummary>
178
+ </resources_alias>
179
+ <v2>
180
+ <resources_function_prefix>
181
+ <abandonedcart>listrakRemarketingAbandonedCart</abandonedcart>
182
+ <click>listrakRemarketingClick</click>
183
+ <log>listrakRemarketingLog</log>
184
+ <listrakorder>listrakRemarketingOrder</listrakorder>
185
+ <listrakorderstatus>listrakRemarketingOrderStatus</listrakorderstatus>
186
+ <listrakproduct>listrakRemarketingProduct</listrakproduct>
187
+ <listraksubscriber>listrakRemarketingSubscriber</listraksubscriber>
188
+ <listrakcustomer>listrakRemarketingCustomer</listrakcustomer>
189
+ <listrakinfo>listrakRemarketingInfo</listrakinfo>
190
+ <listrakreview>listrakRemarketingReview</listrakreview>
191
+ <listrakratingsummary>listrakRemarketingRatingSummary</listrakratingsummary>
192
+ </resources_function_prefix>
193
+ </v2>
194
+ <faults>
195
+ <incorrect_date>
196
+ <code>12</code>
197
+ <message>INCORRECT DATE FORMAT [YYYY-MM-DD HH:MM:SS]</message>
198
+ </incorrect_date>
199
+ </faults>
200
+ </api>
201
  </config>
app/code/community/Listrak/Remarketing/etc/config.xml CHANGED
@@ -1,222 +1,213 @@
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.5</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>sessionInit</method>
37
- </listrak_remarketing_observer>
38
- </observers>
39
- </controller_action_layout_render_before>
40
- <sales_order_place_after>
41
- <observers>
42
- <listrak_remarketing_observer>
43
- <type>singleton</type>
44
- <class>Listrak_Remarketing_Model_Observer</class>
45
- <method>orderPlaced</method>
46
- </listrak_remarketing_observer>
47
- </observers>
48
- </sales_order_place_after>
49
- <newsletter_subscriber_save_after>
50
- <observers>
51
- <listrak_remarketing_observer>
52
- <type>singleton</type>
53
- <class>Listrak_Remarketing_Model_Observer</class>
54
- <method>subscriberSaved</method>
55
- </listrak_remarketing_observer>
56
- </observers>
57
- </newsletter_subscriber_save_after>
58
- <review_save_commit_after>
59
- <observers>
60
- <listrak_remarketing_observer>
61
- <type>singleton</type>
62
- <class>Listrak_Remarketing_Model_Observer</class>
63
- <method>reviewUpdated</method>
64
- </listrak_remarketing_observer>
65
- </observers>
66
- </review_save_commit_after>
67
- <review_delete_commit_after>
68
- <observers>
69
- <listrak_remarketing_observer>
70
- <type>singleton</type>
71
- <class>Listrak_Remarketing_Model_Observer</class>
72
- <method>reviewDeleted</method>
73
- </listrak_remarketing_observer>
74
- </observers>
75
- </review_delete_commit_after>
76
- </events>
77
- </frontend>
78
- <global>
79
- <models>
80
- <listrak>
81
- <class>Listrak_Remarketing_Model</class>
82
- <resourceModel>listrak_mysql4</resourceModel>
83
- </listrak>
84
- <listrak_mysql4>
85
- <class>Listrak_Remarketing_Model_Mysql4</class>
86
- <entities>
87
- <click>
88
- <table>listrak_remarketing_click</table>
89
- </click>
90
- <log>
91
- <table>listrak_remarketing_log</table>
92
- </log>
93
- <session>
94
- <table>listrak_remarketing_session</table>
95
- </session>
96
- <session_email>
97
- <table>listrak_remarketing_session_email</table>
98
- </session_email>
99
- <emailcapture>
100
- <table>listrak_remarketing_emailcapture</table>
101
- </emailcapture>
102
- <subscriber_update>
103
- <table>listrak_remarketing_subscriber_update</table>
104
- </subscriber_update>
105
- <review_update>
106
- <table>listrak_remarketing_review_update</table>
107
- </review_update>
108
- <product_attribute_set_map>
109
- <table>listrak_remarketing_product_attribute_set_map</table>
110
- </product_attribute_set_map>
111
- </entities>
112
- </listrak_mysql4>
113
- <newsletter>
114
- <rewrite>
115
- <subscriber>Listrak_Remarketing_Model_Subscriber</subscriber>
116
- </rewrite>
117
- </newsletter>
118
- </models>
119
- <resources>
120
- <listrak_remarketing_setup>
121
- <setup>
122
- <module>Listrak_Remarketing</module>
123
- </setup>
124
- <connection>
125
- <use>core_setup</use>
126
- </connection>
127
- </listrak_remarketing_setup>
128
- <listrak_write>
129
- <connection>
130
- <use>core_write</use>
131
- </connection>
132
- </listrak_write>
133
- <listrak_read>
134
- <connection>
135
- <use>core_read</use>
136
- </connection>
137
- </listrak_read>
138
- </resources>
139
- <helpers>
140
- <remarketing>
141
- <class>Listrak_Remarketing_Helper</class>
142
- </remarketing>
143
- </helpers>
144
- <blocks>
145
- <remarketing>
146
- <class>Listrak_Remarketing_Block</class>
147
- </remarketing>
148
- </blocks>
149
- </global>
150
- <admin>
151
- <routers>
152
- <remarketing>
153
- <use>admin</use>
154
- <args>
155
- <module>Listrak_Remarketing</module>
156
- <frontName>remarketing</frontName>
157
- </args>
158
- </remarketing>
159
- </routers>
160
- </admin>
161
- <adminhtml>
162
- <layout>
163
- <updates>
164
- <remarketing>
165
- <file>remarketing.xml</file>
166
- </remarketing>
167
- </updates>
168
- </layout>
169
- <events>
170
- <admin_user_load_before>
171
- <observers>
172
- <listrak_remarketing_observer>
173
- <type>singleton</type>
174
- <class>Listrak_Remarketing_Model_Observer</class>
175
- <method>adminPageLoad</method>
176
- </listrak_remarketing_observer>
177
- </observers>
178
- </admin_user_load_before>
179
- <review_save_commit_after>
180
- <observers>
181
- <listrak_remarketing_observer>
182
- <type>singleton</type>
183
- <class>Listrak_Remarketing_Model_Observer</class>
184
- <method>reviewUpdated</method>
185
- </listrak_remarketing_observer>
186
- </observers>
187
- </review_save_commit_after>
188
- <review_delete_commit_after>
189
- <observers>
190
- <listrak_remarketing_observer>
191
- <type>singleton</type>
192
- <class>Listrak_Remarketing_Model_Observer</class>
193
- <method>reviewDeleted</method>
194
- </listrak_remarketing_observer>
195
- </observers>
196
- </review_delete_commit_after>
197
- </events>
198
- </adminhtml>
199
- <default>
200
- <remarketing>
201
- <modules>
202
- <core>1</core>
203
- <reviews>0</reviews>
204
- </modules>
205
- <subscription>
206
- <signup_success_email>0</signup_success_email>
207
- <unsubscribe_email>0</unsubscribe_email>
208
- </subscription>
209
- <abandonedcarts>
210
- <abandoned_cart_report_timeout>60</abandoned_cart_report_timeout>
211
- </abandonedcarts>
212
- <modal>
213
- <enabled>0</enabled>
214
- <listrakMerchantID></listrakMerchantID>
215
- <scriptLocation>s1.listrakbi.com/scripts/script.js</scriptLocation>
216
- </modal>
217
- <productcategories>
218
- <categories_source>default</categories_source>
219
- </productcategories>
220
- </remarketing>
221
- </default>
222
  </config>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <!--
3
  /**
4
+ * Listrak Remarketing Magento Extension Ver. 1.0.0 - Copyright (c) 2011 Listrak, Inc.
5
  */
6
  -->
7
  <config>
8
+ <modules>
9
+ <Listrak_Remarketing>
10
+ <version>1.1.6</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>sessionInit</method>
37
+ </listrak_remarketing_observer>
38
+ </observers>
39
+ </controller_action_layout_render_before>
40
+ <sales_order_place_after>
41
+ <observers>
42
+ <listrak_remarketing_observer>
43
+ <type>singleton</type>
44
+ <class>Listrak_Remarketing_Model_Observer</class>
45
+ <method>orderPlaced</method>
46
+ </listrak_remarketing_observer>
47
+ </observers>
48
+ </sales_order_place_after>
49
+ <newsletter_subscriber_save_after>
50
+ <observers>
51
+ <listrak_remarketing_observer>
52
+ <type>singleton</type>
53
+ <class>Listrak_Remarketing_Model_Observer</class>
54
+ <method>subscriberSaved</method>
55
+ </listrak_remarketing_observer>
56
+ </observers>
57
+ </newsletter_subscriber_save_after>
58
+ <review_save_commit_after>
59
+ <observers>
60
+ <listrak_remarketing_observer>
61
+ <type>singleton</type>
62
+ <class>Listrak_Remarketing_Model_Observer</class>
63
+ <method>reviewUpdated</method>
64
+ </listrak_remarketing_observer>
65
+ </observers>
66
+ </review_save_commit_after>
67
+ <review_delete_commit_after>
68
+ <observers>
69
+ <listrak_remarketing_observer>
70
+ <type>singleton</type>
71
+ <class>Listrak_Remarketing_Model_Observer</class>
72
+ <method>reviewDeleted</method>
73
+ </listrak_remarketing_observer>
74
+ </observers>
75
+ </review_delete_commit_after>
76
+ </events>
77
+ </frontend>
78
+ <global>
79
+ <models>
80
+ <listrak>
81
+ <class>Listrak_Remarketing_Model</class>
82
+ <resourceModel>listrak_mysql4</resourceModel>
83
+ </listrak>
84
+ <listrak_mysql4>
85
+ <class>Listrak_Remarketing_Model_Mysql4</class>
86
+ <entities>
87
+ <click>
88
+ <table>listrak_remarketing_click</table>
89
+ </click>
90
+ <log>
91
+ <table>listrak_remarketing_log</table>
92
+ </log>
93
+ <session>
94
+ <table>listrak_remarketing_session</table>
95
+ </session>
96
+ <session_email>
97
+ <table>listrak_remarketing_session_email</table>
98
+ </session_email>
99
+ <emailcapture>
100
+ <table>listrak_remarketing_emailcapture</table>
101
+ </emailcapture>
102
+ <subscriber_update>
103
+ <table>listrak_remarketing_subscriber_update</table>
104
+ </subscriber_update>
105
+ <review_update>
106
+ <table>listrak_remarketing_review_update</table>
107
+ </review_update>
108
+ <product_attribute_set_map>
109
+ <table>listrak_remarketing_product_attribute_set_map</table>
110
+ </product_attribute_set_map>
111
+ </entities>
112
+ </listrak_mysql4>
113
+ <newsletter>
114
+ <rewrite>
115
+ <subscriber>Listrak_Remarketing_Model_Subscriber</subscriber>
116
+ </rewrite>
117
+ </newsletter>
118
+ </models>
119
+ <resources>
120
+ <listrak_remarketing_setup>
121
+ <setup>
122
+ <module>Listrak_Remarketing</module>
123
+ </setup>
124
+ <connection>
125
+ <use>core_setup</use>
126
+ </connection>
127
+ </listrak_remarketing_setup>
128
+ <listrak_write>
129
+ <connection>
130
+ <use>core_write</use>
131
+ </connection>
132
+ </listrak_write>
133
+ <listrak_read>
134
+ <connection>
135
+ <use>core_read</use>
136
+ </connection>
137
+ </listrak_read>
138
+ </resources>
139
+ <helpers>
140
+ <remarketing>
141
+ <class>Listrak_Remarketing_Helper</class>
142
+ </remarketing>
143
+ </helpers>
144
+ <blocks>
145
+ <remarketing>
146
+ <class>Listrak_Remarketing_Block</class>
147
+ </remarketing>
148
+ </blocks>
149
+ </global>
150
+ <admin>
151
+ <routers>
152
+ <remarketing>
153
+ <use>admin</use>
154
+ <args>
155
+ <module>Listrak_Remarketing</module>
156
+ <frontName>remarketing</frontName>
157
+ </args>
158
+ </remarketing>
159
+ </routers>
160
+ </admin>
161
+ <adminhtml>
162
+ <layout>
163
+ <updates>
164
+ <remarketing>
165
+ <file>remarketing.xml</file>
166
+ </remarketing>
167
+ </updates>
168
+ </layout>
169
+ <events>
170
+ <review_save_commit_after>
171
+ <observers>
172
+ <listrak_remarketing_observer>
173
+ <type>singleton</type>
174
+ <class>Listrak_Remarketing_Model_Observer</class>
175
+ <method>reviewUpdated</method>
176
+ </listrak_remarketing_observer>
177
+ </observers>
178
+ </review_save_commit_after>
179
+ <review_delete_commit_after>
180
+ <observers>
181
+ <listrak_remarketing_observer>
182
+ <type>singleton</type>
183
+ <class>Listrak_Remarketing_Model_Observer</class>
184
+ <method>reviewDeleted</method>
185
+ </listrak_remarketing_observer>
186
+ </observers>
187
+ </review_delete_commit_after>
188
+ </events>
189
+ </adminhtml>
190
+ <default>
191
+ <remarketing>
192
+ <modules>
193
+ <core>1</core>
194
+ <reviews>0</reviews>
195
+ </modules>
196
+ <subscription>
197
+ <signup_success_email>0</signup_success_email>
198
+ <unsubscribe_email>0</unsubscribe_email>
199
+ </subscription>
200
+ <abandonedcarts>
201
+ <abandoned_cart_report_timeout>60</abandoned_cart_report_timeout>
202
+ </abandonedcarts>
203
+ <modal>
204
+ <enabled>0</enabled>
205
+ <listrakMerchantID></listrakMerchantID>
206
+ <scriptLocation>s1.listrakbi.com/scripts/script.js</scriptLocation>
207
+ </modal>
208
+ <productcategories>
209
+ <categories_source>default</categories_source>
210
+ </productcategories>
211
+ </remarketing>
212
+ </default>
 
 
 
 
 
 
 
 
 
213
  </config>
app/code/community/Listrak/Remarketing/etc/system.xml CHANGED
@@ -1,150 +1,150 @@
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
- <modules translate="label">
19
- <label>Component 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
- <core translate="label">
27
- <label>Core Functionality</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
- </core>
35
- <reviews translate="label">
36
- <label>Review API</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
- </reviews>
44
- </fields>
45
- </modules>
46
- <subscription translate="label">
47
- <label>Newsletter Options</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
- <signup_success_email translate="label">
55
- <label>Signup Success Email</label>
56
- <frontend_type>select</frontend_type>
57
- <source_model>adminhtml/system_config_source_enabledisable</source_model>
58
- <sort_order>2</sort_order>
59
- <show_in_default>1</show_in_default>
60
- <show_in_website>1</show_in_website>
61
- <show_in_store>1</show_in_store>
62
- </signup_success_email>
63
- <unsubscribe_email translate="label">
64
- <label>Unsubscribe Email</label>
65
- <frontend_type>select</frontend_type>
66
- <source_model>adminhtml/system_config_source_enabledisable</source_model>
67
- <sort_order>3</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
- </unsubscribe_email>
72
- </fields>
73
- </subscription>
74
- <modal translate="label">
75
- <label>Email Signup Popup</label>
76
- <frontend_type>text</frontend_type>
77
- <sort_order>3</sort_order>
78
- <show_in_default>1</show_in_default>
79
- <show_in_website>1</show_in_website>
80
- <show_in_store>1</show_in_store>
81
- <fields>
82
- <enabled translate="label">
83
- <label>Enabled</label>
84
- <frontend_type>select</frontend_type>
85
- <source_model>adminhtml/system_config_source_enabledisable</source_model>
86
- <sort_order>1</sort_order>
87
- <show_in_default>1</show_in_default>
88
- <show_in_website>1</show_in_website>
89
- <show_in_store>1</show_in_store>
90
- </enabled>
91
- <listrakMerchantID translate="label">
92
- <label>Merchant ID</label>
93
- <frontend_type>text</frontend_type>
94
- <sort_order>2</sort_order>
95
- <show_in_default>1</show_in_default>
96
- <show_in_website>1</show_in_website>
97
- <show_in_store>1</show_in_store>
98
- </listrakMerchantID>
99
- <scriptLocation translate="label">
100
- <label>Script Location</label>
101
- <frontend_type>text</frontend_type>
102
- <sort_order>3</sort_order>
103
- <show_in_default>1</show_in_default>
104
- <show_in_website>1</show_in_website>
105
- <show_in_store>1</show_in_store>
106
- </scriptLocation>
107
- </fields>
108
- </modal>
109
- <abandonedcarts translate="label">
110
- <label>Abandoned Carts</label>
111
- <frontend_type>text</frontend_type>
112
- <sort_order>4</sort_order>
113
- <show_in_default>1</show_in_default>
114
- <show_in_website>1</show_in_website>
115
- <show_in_store>1</show_in_store>
116
- <fields>
117
- <abandoned_cart_report_timeout translate="label">
118
- <label>Abandoned Cart Report Timeout</label>
119
- <frontend_type>text</frontend_type>
120
- <sort_order>2</sort_order>
121
- <show_in_default>1</show_in_default>
122
- <show_in_website>1</show_in_website>
123
- <show_in_store>1</show_in_store>
124
- </abandoned_cart_report_timeout>
125
- </fields>
126
- </abandonedcarts>
127
- <productcategories translate="label">
128
- <label>Product Categories</label>
129
- <frontend_type>text</frontend_type>
130
- <sort_order>5</sort_order>
131
- <show_in_default>1</show_in_default>
132
- <show_in_website>0</show_in_website>
133
- <show_in_store>0</show_in_store>
134
- <fields>
135
- <categories_source translate="label">
136
- <label>Source</label>
137
- <comment>More options under Listrak > Product Attributes.</comment>
138
- <frontend_type>select</frontend_type>
139
- <source_model>listrak/product_category_source</source_model>
140
- <sort_order>1</sort_order>
141
- <show_in_default>1</show_in_default>
142
- <show_in_website>0</show_in_website>
143
- <show_in_store>0</show_in_store>
144
- </categories_source>
145
- </fields>
146
- </productcategories>
147
- </groups>
148
- </remarketing>
149
- </sections>
150
  </config>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * Listrak Remarketing Magento Extension Ver. 1.0.0 - Copyright (c) 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
+ <modules translate="label">
19
+ <label>Component 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
+ <core translate="label">
27
+ <label>Core Functionality</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
+ </core>
35
+ <reviews translate="label">
36
+ <label>Review API</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
+ </reviews>
44
+ </fields>
45
+ </modules>
46
+ <subscription translate="label">
47
+ <label>Newsletter Options</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
+ <signup_success_email translate="label">
55
+ <label>Signup Success Email</label>
56
+ <frontend_type>select</frontend_type>
57
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
58
+ <sort_order>2</sort_order>
59
+ <show_in_default>1</show_in_default>
60
+ <show_in_website>1</show_in_website>
61
+ <show_in_store>1</show_in_store>
62
+ </signup_success_email>
63
+ <unsubscribe_email translate="label">
64
+ <label>Unsubscribe Email</label>
65
+ <frontend_type>select</frontend_type>
66
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
67
+ <sort_order>3</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
+ </unsubscribe_email>
72
+ </fields>
73
+ </subscription>
74
+ <modal translate="label">
75
+ <label>Email Signup Popup</label>
76
+ <frontend_type>text</frontend_type>
77
+ <sort_order>3</sort_order>
78
+ <show_in_default>1</show_in_default>
79
+ <show_in_website>1</show_in_website>
80
+ <show_in_store>1</show_in_store>
81
+ <fields>
82
+ <enabled translate="label">
83
+ <label>Enabled</label>
84
+ <frontend_type>select</frontend_type>
85
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
86
+ <sort_order>1</sort_order>
87
+ <show_in_default>1</show_in_default>
88
+ <show_in_website>1</show_in_website>
89
+ <show_in_store>1</show_in_store>
90
+ </enabled>
91
+ <listrakMerchantID translate="label">
92
+ <label>Merchant ID</label>
93
+ <frontend_type>text</frontend_type>
94
+ <sort_order>2</sort_order>
95
+ <show_in_default>1</show_in_default>
96
+ <show_in_website>1</show_in_website>
97
+ <show_in_store>1</show_in_store>
98
+ </listrakMerchantID>
99
+ <scriptLocation translate="label">
100
+ <label>Script Location</label>
101
+ <frontend_type>text</frontend_type>
102
+ <sort_order>3</sort_order>
103
+ <show_in_default>1</show_in_default>
104
+ <show_in_website>1</show_in_website>
105
+ <show_in_store>1</show_in_store>
106
+ </scriptLocation>
107
+ </fields>
108
+ </modal>
109
+ <abandonedcarts translate="label">
110
+ <label>Abandoned Carts</label>
111
+ <frontend_type>text</frontend_type>
112
+ <sort_order>4</sort_order>
113
+ <show_in_default>1</show_in_default>
114
+ <show_in_website>1</show_in_website>
115
+ <show_in_store>1</show_in_store>
116
+ <fields>
117
+ <abandoned_cart_report_timeout translate="label">
118
+ <label>Abandoned Cart Report Timeout</label>
119
+ <frontend_type>text</frontend_type>
120
+ <sort_order>2</sort_order>
121
+ <show_in_default>1</show_in_default>
122
+ <show_in_website>1</show_in_website>
123
+ <show_in_store>1</show_in_store>
124
+ </abandoned_cart_report_timeout>
125
+ </fields>
126
+ </abandonedcarts>
127
+ <productcategories translate="label">
128
+ <label>Product Categories</label>
129
+ <frontend_type>text</frontend_type>
130
+ <sort_order>5</sort_order>
131
+ <show_in_default>1</show_in_default>
132
+ <show_in_website>0</show_in_website>
133
+ <show_in_store>0</show_in_store>
134
+ <fields>
135
+ <categories_source translate="label">
136
+ <label>Source</label>
137
+ <comment>More options under Listrak > Product Attributes.</comment>
138
+ <frontend_type>select</frontend_type>
139
+ <source_model>listrak/product_category_source</source_model>
140
+ <sort_order>1</sort_order>
141
+ <show_in_default>1</show_in_default>
142
+ <show_in_website>0</show_in_website>
143
+ <show_in_store>0</show_in_store>
144
+ </categories_source>
145
+ </fields>
146
+ </productcategories>
147
+ </groups>
148
+ </remarketing>
149
+ </sections>
150
  </config>
app/code/community/Listrak/Remarketing/etc/wsdl.xml CHANGED
@@ -1,897 +1,1010 @@
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
- <definitions xmlns:typens="urn:{{var wsdl.name}}" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
8
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"
9
- name="{{var wsdl.name}}" targetNamespace="urn:{{var wsdl.name}}">
10
- <types>
11
- <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Magento">
12
- <import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />
13
- <complexType name="ArrayOfString">
14
- <complexContent>
15
- <restriction base="soapenc:Array">
16
- <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>
17
- </restriction>
18
- </complexContent>
19
- </complexType>
20
- <!-- session -->
21
- <complexType name="ListrakRemarketingSessionEntity">
22
- <all>
23
- <element name="session_id" type="xsd:string" minOccurs="0"/>
24
- <element name="store_id" type="xsd:string" minOccurs="0"/>
25
- <element name="created_at" type="xsd:string" minOccurs="0"/>
26
- <element name="updated_at" type="xsd:string" minOccurs="0"/>
27
- <element name="quote_id" type="xsd:string" minOccurs="0"/>
28
- <element name="ips" type="xsd:string" minOccurs="0"/>
29
- <element name="pi_id" type="xsd:string" minOccurs="0"/>
30
- <element name="customer" type="typens:ListrakRemarketingCustomerEntity" minOccurs="0"/>
31
- <element name="emails" type="typens:ArrayOfListrakRemarketingSessionEmail" minOccurs="0"/>
32
- <element name="clicks" type="typens:ArrayOfListrakRemarketingClick" minOccurs="0"/>
33
- </all>
34
- </complexType>
35
- <complexType name="ListrakRemarketingSessionEmailEntity">
36
- <all>
37
- <element name="email" type="xsd:string" minOccurs="0"/>
38
- <element name="created_at" type="xsd:string" minOccurs="0"/>
39
- <element name="page" type="xsd:string" minOccurs="0"/>
40
- <element name="field_id" type="xsd:string" minOccurs="0"/>
41
- </all>
42
- </complexType>
43
- <complexType name="ArrayOfListrakRemarketingSessionEmail">
44
- <complexContent>
45
- <restriction base="soapenc:Array">
46
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingSessionEmailEntity[]"/>
47
- </restriction>
48
- </complexContent>
49
- </complexType>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
- <!-- abandoned cart -->
52
- <complexType name="ListrakRemarketingAbandonedCartEntity">
53
- <all>
54
- <element name="store_id" type="xsd:string" minOccurs="0"/>
55
- <element name="session" type="typens:ListrakRemarketingSessionEntity" minOccurs="0"/>
56
- <element name="products" type="typens:ArrayOfListrakRemarketingAbandonedCartProduct" minOccurs="0"/>
57
- </all>
58
- </complexType>
59
- <complexType name="ArrayOfListrakRemarketingAbandonedCart">
60
- <complexContent>
61
- <restriction base="soapenc:Array">
62
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingAbandonedCartEntity[]"/>
63
- </restriction>
64
- </complexContent>
65
- </complexType>
66
- <complexType name="ListrakRemarketingAbandonedCartProductEntity">
67
- <all>
68
- <element name="entity_id" type="xsd:string" minOccurs="0"/>
69
- <element name="sku" type="xsd:string" minOccurs="0"/>
70
- <element name="name" type="xsd:string" minOccurs="0"/>
71
- <element name="price" type="xsd:string" minOccurs="0"/>
72
- <element name="special_price" type="xsd:string" minOccurs="0"/>
73
- <element name="special_from_date" type="xsd:string" minOccurs="0"/>
74
- <element name="special_to_date" type="xsd:string" minOccurs="0"/>
75
- <element name="cost" type="xsd:string" minOccurs="0"/>
76
- <element name="description" type="xsd:string" minOccurs="0"/>
77
- <element name="short_description" type="xsd:string" minOccurs="0"/>
78
- <element name="weight" type="xsd:string" minOccurs="0"/>
79
- <element name="url_key" type="xsd:string" minOccurs="0"/>
80
- <element name="url_path" type="xsd:string" minOccurs="0"/>
81
- <element name="image" type="xsd:string" minOccurs="0"/>
82
- <element name="small_image" type="xsd:string" minOccurs="0"/>
83
- <element name="thumbnail" type="xsd:string" minOccurs="0"/>
84
- <element name="qty" type="xsd:string" minOccurs="0"/>
85
- <element name="bundle_items" type="typens:ArrayOfListrakRemarketingAbandonedCartProduct" minOccurs="0"/>
86
- </all>
87
- </complexType>
88
- <complexType name="ArrayOfListrakRemarketingAbandonedCartProduct">
89
- <complexContent>
90
- <restriction base="soapenc:Array">
91
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingAbandonedCartProductEntity[]"/>
92
- </restriction>
93
- </complexContent>
94
- </complexType>
 
 
 
 
 
 
 
 
 
 
95
 
96
- <!-- product -->
97
- <complexType name="ListrakRemarketingConfigurableAttributeEntity">
98
- <all>
99
- <element name="attribute_name" type="xsd:string" minOccurs="0"/>
100
- <element name="value" type="xsd:string" minOccurs="0"/>
101
- </all>
102
- </complexType>
103
- <complexType name="ArrayOfListrakRemarketingConfigurableAttributeEntity">
104
- <complexContent>
105
- <restriction base="soapenc:Array">
106
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingConfigurableAttributeEntity[]"/>
107
- </restriction>
108
- </complexContent>
109
- </complexType>
110
- <complexType name="ListrakRemarketingProductEntity">
111
- <all>
112
- <element name="entity_id" type="xsd:string" minOccurs="0"/>
113
- <element name="sku" type="xsd:string" minOccurs="0"/>
114
- <element name="name" type="xsd:string" minOccurs="0"/>
115
- <element name="price" type="xsd:string" minOccurs="0"/>
116
- <element name="special_price" type="xsd:string" minOccurs="0"/>
117
- <element name="special_from_date" type="xsd:string" minOccurs="0"/>
118
- <element name="special_to_date" type="xsd:string" minOccurs="0"/>
119
- <element name="cost" type="xsd:string" minOccurs="0"/>
120
- <element name="description" type="xsd:string" minOccurs="0"/>
121
- <element name="short_description" type="xsd:string" minOccurs="0"/>
122
- <element name="weight" type="xsd:string" minOccurs="0"/>
123
- <element name="url_key" type="xsd:string" minOccurs="0"/>
124
- <element name="url_path" type="xsd:string" minOccurs="0"/>
125
- <element name="image" type="xsd:string" minOccurs="0"/>
126
- <element name="small_image" type="xsd:string" minOccurs="0"/>
127
- <element name="thumbnail" type="xsd:string" minOccurs="0"/>
128
- <element name="qty" type="xsd:string" minOccurs="0"/>
129
- <element name="parent_id" type="xsd:string" minOccurs="0"/>
130
- <element name="parent_sku" type="xsd:string" minOccurs="0"/>
131
- <element name="brand" type="xsd:string" minOccurs="0"/>
132
- <element name="category" type="xsd:string" minOccurs="0"/>
133
- <element name="sub_category" type="xsd:string" minOccurs="0"/>
134
- <element name="in_stock" type="xsd:string" minOccurs="0"/>
135
- <element name="qty_on_hand" type="xsd:string" minOccurs="0"/>
136
- <element name="type" type="xsd:string" minOccurs="0"/>
137
- <element name="configurable_attributes" type="typens:ArrayOfListrakRemarketingConfigurableAttributeEntity" minOccurs="0"/>
138
- </all>
139
- </complexType>
140
- <complexType name="ArrayOfListrakRemarketingProduct">
141
- <complexContent>
142
- <restriction base="soapenc:Array">
143
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingProductEntity[]"/>
144
- </restriction>
145
- </complexContent>
146
- </complexType>
 
 
 
 
 
 
147
 
148
- <!-- click -->
149
- <complexType name="ListrakRemarketingClickEntity">
150
- <all>
151
- <element name="store_id" type="xsd:string" minOccurs="0"/>
152
- <element name="customer_id" type="xsd:string" minOccurs="0"/>
153
- <element name="customer_email" type="xsd:string" minOccurs="0"/>
154
- <element name="querystring" type="xsd:string" minOccurs="0"/>
155
- <element name="click_date" type="xsd:string" minOccurs="0"/>
156
- <element name="token_uid" type="xsd:string" minOccurs="0"/>
157
- <element name="session_uid" type="xsd:string" minOccurs="0"/>
158
- <element name="pi_id" type="xsd:string" minOccurs="0"/>
159
- </all>
160
- </complexType>
161
- <complexType name="ArrayOfListrakRemarketingClick">
162
- <complexContent>
163
- <restriction base="soapenc:Array">
164
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingClickEntity[]"/>
165
- </restriction>
166
- </complexContent>
167
- </complexType>
 
168
 
169
- <!-- log -->
170
- <complexType name="ListrakRemarketingLogEntity">
171
- <all>
172
- <element name="store_id" type="xsd:string" minOccurs="0"/>
173
- <element name="message" type="xsd:string" minOccurs="0"/>
174
- <element name="date_entered" type="xsd:string" minOccurs="0"/>
175
- <element name="log_type_id" type="xsd:string" minOccurs="0"/>
176
- </all>
177
- </complexType>
178
- <complexType name="ArrayOfListrakRemarketingLog">
179
- <complexContent>
180
- <restriction base="soapenc:Array">
181
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingLogEntity[]"/>
182
- </restriction>
183
- </complexContent>
184
- </complexType>
 
185
 
186
- <!-- order -->
187
- <complexType name="ListrakRemarketingOrderEntity">
188
- <all>
189
- <element name="info" type="typens:ListrakRemarketingOrderInfoEntity" minOccurs="0"/>
190
- <element name="billing_address" type="typens:ListrakRemarketingOrderAddressEntity" minOccurs="0"/>
191
- <element name="shipping_address" type="typens:ListrakRemarketingOrderAddressEntity" minOccurs="0"/>
192
- <element name="product" type="typens:ArrayOfListrakRemarketingProductShort" minOccurs="0"/>
193
- <element name="session" type="typens:ListrakRemarketingSessionEntity" minOccurs="0"/>
194
- <element name="customer" type="typens:ListrakRemarketingCustomerEntity" minOccurs="0"/>
195
- </all>
196
- </complexType>
197
- <complexType name="ArrayOfListrakRemarketingOrder">
198
- <complexContent>
199
- <restriction base="soapenc:Array">
200
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingOrderEntity[]" />
201
- </restriction>
202
- </complexContent>
203
- </complexType>
204
- <complexType name="ListrakRemarketingOrderInfoEntity">
205
- <all>
206
- <element name="entity_id" type="xsd:string" minOccurs="0"/>
207
- <element name="order_id" type="xsd:string" minOccurs="0"/>
208
- <element name="status" type="xsd:string" minOccurs="0" />
209
- <element name="customer_firstname" type="xsd:string" minOccurs="0"/>
210
- <element name="customer_lastname" type="xsd:string" minOccurs="0"/>
211
- <element name="customer_email" type="xsd:string" minOccurs="0"/>
212
- <element name="subtotal" type="xsd:string" minOccurs="0"/>
213
- <element name="tax_amount" type="xsd:string" minOccurs="0"/>
214
- <element name="shipping_amount" type="xsd:string" minOccurs="0"/>
215
- <element name="grand_total" type="xsd:string" minOccurs="0"/>
216
- <element name="billing_firstname" type="xsd:string" minOccurs="0"/>
217
- <element name="created_at" type="xsd:string" minOccurs="0"/>
218
- <element name="updated_at" type="xsd:string" minOccurs="0"/>
219
- </all>
220
- </complexType>
221
- <complexType name="ListrakRemarketingOrderAddressEntity">
222
- <all>
223
- <element name="firstname" type="xsd:string" minOccurs="0"/>
224
- <element name="lastname" type="xsd:string" minOccurs="0"/>
225
- <element name="company" type="xsd:string" minOccurs="0"/>
226
- <element name="street" type="xsd:string" minOccurs="0"/>
227
- <element name="city" type="xsd:string" minOccurs="0"/>
228
- <element name="region" type="xsd:string" minOccurs="0"/>
229
- <element name="postcode" type="xsd:string" minOccurs="0"/>
230
- <element name="country" type="xsd:string" minOccurs="0"/>
231
- </all>
232
- </complexType>
233
- <complexType name="ListrakRemarketingProductShortEntity">
234
- <all>
235
- <element name="sku" type="xsd:string" minOccurs="0"/>
236
- <element name="name" type="xsd:string" minOccurs="0"/>
237
- <element name="price" type="xsd:string" minOccurs="0"/>
238
- <element name="qty_ordered" type="xsd:string" minOccurs="0"/>
239
- <element name="product_price" type="xsd:string" minOccurs="0"/>
240
- <element name="bundle_items" type="typens:ArrayOfListrakRemarketingProductShort" minOccurs="0"/>
241
- </all>
242
- </complexType>
243
- <complexType name="ArrayOfListrakRemarketingProductShort">
244
- <complexContent>
245
- <restriction base="soapenc:Array">
246
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingProductShortEntity[]"/>
247
- </restriction>
248
- </complexContent>
249
- </complexType>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
 
251
- <!-- order status -->
252
- <complexType name="ListrakRemarketingOrderStatusEntity">
253
- <all>
254
- <element name="increment_id" type="xsd:string" minOccurs="0"/>
255
- <element name="status" type="xsd:string" minOccurs="0" />
256
- <element name="updated_at" type="xsd:string" minOccurs="0"/>
257
- </all>
258
- </complexType>
259
- <complexType name="ArrayOfListrakRemarketingOrderStatus">
260
- <complexContent>
261
- <restriction base="soapenc:Array">
262
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingOrderStatusEntity[]" />
263
- </restriction>
264
- </complexContent>
265
- </complexType>
 
266
 
267
- <!-- customer -->
268
- <complexType name="ListrakRemarketingCustomerEntity">
269
- <all>
270
- <element name="entity_id" type="xsd:string" minOccurs="0"/>
271
- <element name="firstname" type="xsd:string" minOccurs="0"/>
272
- <element name="lastname" type="xsd:string" minOccurs="0"/>
273
- <element name="email" type="xsd:string" minOccurs="0"/>
274
- <element name="website_id" type="xsd:string" minOccurs="0"/>
275
- <element name="store_id" type="xsd:string" minOccurs="0"/>
276
- <element name="gender_name" type="xsd:string" minOccurs="0"/>
277
- <element name="dob" type="xsd:string" minOccurs="0"/>
278
- <element name="group_name" type="xsd:string" minOccurs="0"/>
279
- </all>
280
- </complexType>
281
- <complexType name="ArrayOfListrakRemarketingCustomer">
282
- <complexContent>
283
- <restriction base="soapenc:Array">
284
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingCustomerEntity[]"/>
285
- </restriction>
286
- </complexContent>
287
- </complexType>
 
288
 
289
- <!-- subscriber -->
290
- <complexType name="ListrakRemarketingSubscriberEntity">
291
- <all>
292
- <element name="subscriber_id" type="xsd:string" minOccurs="0"/>
293
- <element name="store_id" type="xsd:string" minOccurs="0"/>
294
- <element name="customer_id" type="xsd:string" minOccurs="0"/>
295
- <element name="change_status_at" type="xsd:string" minOccurs="0"/>
296
- <element name="subscriber_email" type="xsd:string" minOccurs="0"/>
297
- <element name="subscriber_status" type="xsd:string" minOccurs="0"/>
298
- <element name="updated_at" type="xsd:string" minOccurs="0"/>
299
- </all>
300
- </complexType>
301
- <complexType name="ArrayOfListrakRemarketingSubscriber">
302
- <complexContent>
303
- <restriction base="soapenc:Array">
304
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingSubscriberEntity[]"/>
305
- </restriction>
306
- </complexContent>
307
- </complexType>
 
 
 
 
308
 
309
- <complexType name="ListrakRemarketingInfoEntity">
310
- <all>
311
- <element name="magentoVersion" type="xsd:string" minOccurs="0"/>
312
- <element name="listrakSettings" type="typens:ListrakRemarketingSettingEntity" minOccurs="0"/>
313
- <element name="modules" type="typens:ArrayOfString" minOccurs="0"/>
314
- <element name="ini" type="typens:ArrayOfString" minOccurs="0"/>
315
- <element name="classes" type="xsd:string" minOccurs="0"/>
316
- <element name="counts" type="xsd:string" minOccurs="0"/>
317
- </all>
318
- </complexType>
319
- <complexType name="ListrakRemarketingSettingEntity">
320
- <all>
321
- <element name="coreEnabled" type="xsd:string" minOccurs="0"/>
322
- <element name="reviewsApiEnabled" type="xsd:string" minOccurs="0"/>
323
- </all>
324
- </complexType>
 
 
 
 
325
 
326
- <!-- review list / review update list -->
327
- <complexType name="ListrakRemarketingReviewListResult">
328
- <complexContent>
329
- <restriction base="soapenc:Array">
330
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingReviewListItem[]" />
331
- </restriction>
332
- </complexContent>
333
- </complexType>
334
- <complexType name="ListrakRemarketingReviewListItem">
335
- <all>
336
- <element name="update_id" type="xsd:string" minOccurs="0"/>
337
- <element name="review_id" type="xsd:string" minOccurs="0"/>
338
- <element name="product_id" type="xsd:string" minOccurs="0"/>
339
- <element name="title" type="xsd:string" minOccurs="0"/>
340
- <element name="text" type="xsd:string" minOccurs="0"/>
341
- <element name="overall_rating" type="xsd:string" minOccurs="0"/>
342
- <element name="created_at" type="xsd:string" minOccurs="0"/>
343
- <element name="updated_at" type="xsd:string" minOccurs="0"/>
344
- <element name="reviewer_name" type="xsd:string" minOccurs="0"/>
345
- <element name="email" type="xsd:string" minOccurs="0"/>
346
- <element name="status_id" type="xsd:string" minOccurs="0"/>
347
- <element name="status_code" type="xsd:string" minOccurs="0"/>
348
- <element name="ratings" type="typens:ArrayOfListrakRemarketingReviewRating" minOccurs="0"/>
349
- </all>
350
- </complexType>
351
- <complexType name="ArrayOfListrakRemarketingReviewRating">
352
- <complexContent>
353
- <restriction base="soapenc:Array">
354
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingReviewRatingItem[]" />
355
- </restriction>
356
- </complexContent>
357
- </complexType>
358
- <complexType name="ListrakRemarketingReviewRatingItem">
359
- <all>
360
- <element name="rating_id" type="xsd:string" minOccurs="0"/>
361
- <element name="rating_code" type="xsd:string" minOccurs="0"/>
362
- <element name="rating" type="xsd:string" minOccurs="0"/>
363
- </all>
364
- </complexType>
 
 
 
 
365
 
366
- <!-- rating summary list / rating summary update list -->
367
- <complexType name="ListrakRemarketingRatingSummaryListResult">
368
- <complexContent>
369
- <restriction base="soapenc:Array">
370
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingRatingSummaryItem[]" />
371
- </restriction>
372
- </complexContent>
373
- </complexType>
374
- <complexType name="ListrakRemarketingRatingSummaryItem">
375
- <all>
376
- <element name="update_id" type="xsd:string" minOccurs="0"/>
377
- <element name="rating_summary_id" type="xsd:string" minOccurs="0"/>
378
- <element name="product_id" type="xsd:string" minOccurs="0"/>
379
- <element name="updated_at" type="xsd:string" minOccurs="0"/>
380
- <element name="total_reviews" type="xsd:string" minOccurs="0"/>
381
- <element name="rating" type="xsd:string" minOccurs="0"/>
382
- <element name="ratings" type="typens:ArrayOfListrakRemarketingRatingSummaryAttribute" minOccurs="0"/>
383
- </all>
384
- </complexType>
385
- <complexType name="ArrayOfListrakRemarketingRatingSummaryAttribute">
386
- <complexContent>
387
- <restriction base="soapenc:Array">
388
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingRatingSummaryAttributeItem[]" />
389
- </restriction>
390
- </complexContent>
391
- </complexType>
392
- <complexType name="ListrakRemarketingRatingSummaryAttributeItem">
393
- <all>
394
- <element name="rating_id" type="xsd:string" minOccurs="0"/>
395
- <element name="rating_code" type="xsd:string" minOccurs="0"/>
396
- <element name="rating" type="xsd:string" minOccurs="0"/>
397
- </all>
398
- </complexType>
 
 
 
 
 
399
 
400
- <!-- review delete list -->
401
- <complexType name="ListrakRemarketingReviewDeleteListResult">
402
- <complexContent>
403
- <restriction base="soapenc:Array">
404
- <attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ListrakRemarketingDeletedReview[]" />
405
- </restriction>
406
- </complexContent>
407
- </complexType>
408
- <complexType name="ListrakRemarketingDeletedReview">
409
- <all>
410
- <element name="delete_id" type="xsd:string" minOccurs="0"/>
411
- <element name="review_id" type="xsd:string" minOccurs="0"/>
412
- </all>
413
- </complexType>
 
414
 
415
- <!-- review update purge -->
416
- <complexType name="ListrakRemarketingReviewUpdatePurgeResult">
417
- <all>
418
- <element name="count" type="xsd:string" minOccurs="0"/>
419
- <element name="before" type="xsd:string" minOccurs="0"/>
420
- </all>
421
- </complexType>
422
- </schema>
423
- </types>
424
- <message name="listrakRemarketingAbandonedCartListRequest">
425
- <part name="sessionId" type="xsd:string" />
426
- <part name="storeId" type="xsd:string" />
427
- <part name="startDate" type="xsd:string" />
428
- <part name="endDate" type="xsd:string" />
429
- <part name="perPage" type="xsd:int" />
430
- <part name="page" type="xsd:int" />
431
- </message>
432
- <message name="listrakRemarketingAbandonedCartListResponse">
433
- <part name="result" type="typens:ArrayOfListrakRemarketingAbandonedCart" />
434
- </message>
435
- <message name="listrakRemarketingAbandonedCartPurgeRequest">
436
- <part name="sessionId" type="xsd:string" />
437
- <part name="storeId" type="xsd:string" />
438
- <part name="endDate" type="xsd:string" />
439
- </message>
440
- <message name="listrakRemarketingAbandonedCartPurgeResponse">
441
- <part name="result" type="xsd:string" />
442
- </message>
443
- <message name="listrakRemarketingClickListRequest">
444
- <part name="sessionId" type="xsd:string" />
445
- <part name="storeId" type="xsd:string" />
446
- <part name="startDate" type="xsd:string" />
447
- <part name="endDate" type="xsd:string" />
448
- <part name="perPage" type="xsd:int" />
449
- <part name="page" type="xsd:int" />
450
- </message>
451
- <message name="listrakRemarketingClickListResponse">
452
- <part name="result" type="typens:ArrayOfListrakRemarketingClick" />
453
- </message>
454
- <message name="listrakRemarketingClickPurgeRequest">
455
- <part name="sessionId" type="xsd:string" />
456
- <part name="storeId" type="xsd:string" />
457
- <part name="endDate" type="xsd:string" />
458
- </message>
459
- <message name="listrakRemarketingClickPurgeResponse">
460
- <part name="result" type="xsd:string" />
461
- </message>
462
- <message name="listrakRemarketingLogListRequest">
463
- <part name="sessionId" type="xsd:string" />
464
- <part name="storeId" type="xsd:string" />
465
- <part name="startDate" type="xsd:string" />
466
- <part name="endDate" type="xsd:string" />
467
- <part name="perPage" type="xsd:int" />
468
- <part name="page" type="xsd:int" />
469
- <part name="logTypeId" type="xsd:string" />
470
- </message>
471
- <message name="listrakRemarketingLogListResponse">
472
- <part name="result" type="typens:ArrayOfListrakRemarketingLog" />
473
- </message>
474
- <message name="listrakRemarketingLogPurgeRequest">
475
- <part name="sessionId" type="xsd:string" />
476
- <part name="storeId" type="xsd:string" />
477
- <part name="endDate" type="xsd:string" />
478
- </message>
479
- <message name="listrakRemarketingLogPurgeResponse">
480
- <part name="result" type="xsd:string" />
481
- </message>
482
- <message name="listrakRemarketingLogToggleRequest">
483
- <part name="sessionId" type="xsd:string" />
484
- <part name="storeId" type="xsd:string" />
485
- <part name="onOff" type="xsd:string" />
486
- </message>
487
- <message name="listrakRemarketingLogToggleResponse">
488
- <part name="result" type="xsd:string" />
489
- </message>
490
- <message name="listrakRemarketingOrderListRequest">
491
- <part name="sessionId" type="xsd:string" />
492
- <part name="storeId" type="xsd:string" />
493
- <part name="startDate" type="xsd:string" />
494
- <part name="endDate" type="xsd:string" />
495
- <part name="perPage" type="xsd:int" />
496
- <part name="page" type="xsd:int" />
497
- </message>
498
- <message name="listrakRemarketingOrderListResponse">
499
- <part name="result" type="typens:ArrayOfListrakRemarketingOrder" />
500
- </message>
501
- <message name="listrakRemarketingOrderStatusListRequest">
502
- <part name="sessionId" type="xsd:string" />
503
- <part name="storeId" type="xsd:string" />
504
- <part name="startDate" type="xsd:string" />
505
- <part name="endDate" type="xsd:string" />
506
- <part name="perPage" type="xsd:int" />
507
- <part name="page" type="xsd:int" />
508
- <part name="filters" type="typens:filters" />
509
- </message>
510
- <message name="listrakRemarketingOrderStatusListResponse">
511
- <part name="result" type="typens:ArrayOfListrakRemarketingOrderStatus" />
512
- </message>
513
- <message name="listrakRemarketingProductListRequest">
514
- <part name="sessionId" type="xsd:string" />
515
- <part name="storeId" type="xsd:string" />
516
- <part name="perPage" type="xsd:int" />
517
- <part name="page" type="xsd:int" />
518
- </message>
519
- <message name="listrakRemarketingProductListResponse">
520
- <part name="result" type="typens:ArrayOfListrakRemarketingProduct" />
521
- </message>
522
- <message name="listrakRemarketingSubscriberListRequest">
523
- <part name="sessionId" type="xsd:string" />
524
- <part name="storeId" type="xsd:string" />
525
- <part name="startDate" type="xsd:string" />
526
- <part name="perPage" type="xsd:int" />
527
- <part name="page" type="xsd:int" />
528
- </message>
529
- <message name="listrakRemarketingSubscriberListResponse">
530
- <part name="result" type="typens:ArrayOfListrakRemarketingSubscriber" />
531
- </message>
532
- <message name="listrakRemarketingSubscriberPurgeRequest">
533
- <part name="sessionId" type="xsd:string" />
534
- <part name="endDate" type="xsd:string" />
535
- </message>
536
- <message name="listrakRemarketingSubscriberPurgeResponse">
537
- <part name="result" type="xsd:string" />
538
- </message>
539
- <message name="listrakRemarketingCustomerListRequest">
540
- <part name="sessionId" type="xsd:string" />
541
- <part name="storeId" type="xsd:string" />
542
- <part name="websiteId" type="xsd:int" />
543
- <part name="perPage" type="xsd:int" />
544
- <part name="page" type="xsd:int" />
545
- </message>
546
- <message name="listrakRemarketingCustomerListResponse">
547
- <part name="result" type="typens:ArrayOfListrakRemarketingCustomer" />
548
- </message>
549
- <message name="listrakRemarketingInfoListRequest">
550
- <part name="sessionId" type="xsd:string" />
551
- <part name="storeId" type="xsd:string" />
552
- </message>
553
- <message name="listrakRemarketingInfoListResponse">
554
- <part name="result" type="typens:ListrakRemarketingInfoEntity" />
555
- </message>
556
- <message name="listrakRemarketingReviewListRequest">
557
- <part name="sessionId" type="xsd:string" />
558
- <part name="storeId" type="xsd:string" />
559
- <part name="chunkSize" type="xsd:string" />
560
- <part name="startReviewId" type="xsd:string" />
561
- </message>
562
- <message name="listrakRemarketingReviewListResponse">
563
- <part name="result" type="typens:ListrakRemarketingReviewListResult" />
564
- </message>
565
- <message name="listrakRemarketingRatingSummaryListRequest">
566
- <part name="sessionId" type="xsd:string" />
567
- <part name="storeId" type="xsd:string" />
568
- <part name="chunkSize" type="xsd:string" />
569
- <part name="startRatingSummaryId" type="xsd:string" />
570
- </message>
571
- <message name="listrakRemarketingRatingSummaryListResponse">
572
- <part name="result" type="typens:ListrakRemarketingRatingSummaryListResult" />
573
- </message>
574
- <message name="listrakRemarketingReviewUpdateListRequest">
575
- <part name="sessionId" type="xsd:string" />
576
- <part name="storeId" type="xsd:string" />
577
- <part name="chunkSize" type="xsd:string" />
578
- <part name="startUpdateId" type="xsd:string" />
579
- </message>
580
- <message name="listrakRemarketingReviewUpdateListResponse">
581
- <part name="result" type="typens:ListrakRemarketingReviewListResult" />
582
- </message>
583
- <message name="listrakRemarketingRatingSummaryUpdateListRequest">
584
- <part name="sessionId" type="xsd:string" />
585
- <part name="storeId" type="xsd:string" />
586
- <part name="chunkSize" type="xsd:string" />
587
- <part name="startUpdateId" type="xsd:string" />
588
- </message>
589
- <message name="listrakRemarketingRatingSummaryUpdateListResponse">
590
- <part name="result" type="typens:ListrakRemarketingRatingSummaryListResult" />
591
- </message>
592
- <message name="listrakRemarketingReviewDeleteListRequest">
593
- <part name="sessionId" type="xsd:string" />
594
- <part name="chunkSize" type="xsd:string" />
595
- <part name="startDeleteId" type="xsd:string" />
596
- </message>
597
- <message name="listrakRemarketingReviewDeleteListResponse">
598
- <part name="result" type="typens:ListrakRemarketingReviewDeleteListResult" />
599
- </message>
600
- <message name="listrakRemarketingReviewUpdatePurgeRequest">
601
- <part name="sessionId" type="xsd:string" />
602
- <part name="purgeBeforeDays" type="xsd:string" />
603
- </message>
604
- <message name="listrakRemarketingReviewUpdatePurgeResponse">
605
- <part name="result" type="typens:ListrakRemarketingReviewUpdatePurgeResult" />
606
- </message>
607
- <portType name="{{var wsdl.handler}}PortType">
608
- <operation name="listrakRemarketingAbandonedCartList">
609
- <documentation>Get stores abandoned carts</documentation>
610
- <input message="typens:listrakRemarketingAbandonedCartListRequest" />
611
- <output message="typens:listrakRemarketingAbandonedCartListResponse" />
612
- </operation>
613
- <operation name="listrakRemarketingAbandonedCartPurge">
614
- <documentation>Purge abandoned carts</documentation>
615
- <input message="typens:listrakRemarketingAbandonedCartPurgeRequest" />
616
- <output message="typens:listrakRemarketingAbandonedCartPurgeResponse" />
617
- </operation>
618
- <operation name="listrakRemarketingClickList">
619
- <documentation>Get clicks</documentation>
620
- <input message="typens:listrakRemarketingClickListRequest" />
621
- <output message="typens:listrakRemarketingClickListResponse" />
622
- </operation>
623
- <operation name="listrakRemarketingClickPurge">
624
- <documentation>Purge clicks</documentation>
625
- <input message="typens:listrakRemarketingClickPurgeRequest" />
626
- <output message="typens:listrakRemarketingClickPurgeResponse" />
627
- </operation>
628
- <operation name="listrakRemarketingLogList">
629
- <documentation>Get log entries</documentation>
630
- <input message="typens:listrakRemarketingLogListRequest" />
631
- <output message="typens:listrakRemarketingLogListResponse" />
632
- </operation>
633
- <operation name="listrakRemarketingLogPurge">
634
- <documentation>Purge log entries</documentation>
635
- <input message="typens:listrakRemarketingLogPurgeRequest" />
636
- <output message="typens:listrakRemarketingLogPurgeResponse" />
637
- </operation>
638
- <operation name="listrakRemarketingLogToggle">
639
- <documentation>toggle logging</documentation>
640
- <input message="typens:listrakRemarketingLogToggleRequest" />
641
- <output message="typens:listrakRemarketingLogToggleResponse" />
642
- </operation>
643
- <operation name="listrakRemarketingOrderList">
644
- <documentation>Get orders</documentation>
645
- <input message="typens:listrakRemarketingOrderListRequest" />
646
- <output message="typens:listrakRemarketingOrderListResponse" />
647
- </operation>
648
- <operation name="listrakRemarketingOrderStatusList">
649
- <documentation>Get order status changes</documentation>
650
- <input message="typens:listrakRemarketingOrderStatusListRequest" />
651
- <output message="typens:listrakRemarketingOrderStatusListResponse" />
652
- </operation>
653
- <operation name="listrakRemarketingProductList">
654
- <documentation>Get products</documentation>
655
- <input message="typens:listrakRemarketingProductListRequest" />
656
- <output message="typens:listrakRemarketingProductListResponse" />
657
- </operation>
658
- <operation name="listrakRemarketingSubscriberList">
659
- <documentation>Get subscribers and unsubscribers</documentation>
660
- <input message="typens:listrakRemarketingSubscriberListRequest" />
661
- <output message="typens:listrakRemarketingSubscriberListResponse" />
662
- </operation>
663
- <operation name="listrakRemarketingSubscriberPurge">
664
- <documentation>Purge old subscriber updates</documentation>
665
- <input message="typens:listrakRemarketingSubscriberPurgeRequest" />
666
- <output message="typens:listrakRemarketingSubscriberPurgeResponse" />
667
- </operation>
668
- <operation name="listrakRemarketingCustomerList">
669
- <documentation>Get customers</documentation>
670
- <input message="typens:listrakRemarketingCustomerListRequest" />
671
- <output message="typens:listrakRemarketingCustomerListResponse" />
672
- </operation>
673
- <operation name="listrakRemarketingInfoList">
674
- <documentation>Get info</documentation>
675
- <input message="typens:listrakRemarketingInfoListRequest" />
676
- <output message="typens:listrakRemarketingInfoListResponse" />
677
- </operation>
678
- <operation name="listrakRemarketingReviewList">
679
- <documentation>Get review list</documentation>
680
- <input message="typens:listrakRemarketingReviewListRequest" />
681
- <output message="typens:listrakRemarketingReviewListResponse" />
682
- </operation>
683
- <operation name="listrakRemarketingRatingSummaryList">
684
- <documentation>Get rating summary list</documentation>
685
- <input message="typens:listrakRemarketingRatingSummaryListRequest" />
686
- <output message="typens:listrakRemarketingRatingSummaryListResponse" />
687
- </operation>
688
- <operation name="listrakRemarketingReviewUpdateList">
689
- <documentation>Get review list</documentation>
690
- <input message="typens:listrakRemarketingReviewUpdateListRequest" />
691
- <output message="typens:listrakRemarketingReviewUpdateListResponse" />
692
- </operation>
693
- <operation name="listrakRemarketingRatingSummaryUpdateList">
694
- <documentation>Get rating summary list</documentation>
695
- <input message="typens:listrakRemarketingRatingSummaryUpdateListRequest" />
696
- <output message="typens:listrakRemarketingRatingSummaryUpdateListResponse" />
697
- </operation>
698
- <operation name="listrakRemarketingReviewDeleteList">
699
- <documentation>Get deleted reviews list</documentation>
700
- <input message="typens:listrakRemarketingReviewDeleteListRequest" />
701
- <output message="typens:listrakRemarketingReviewDeleteListResponse" />
702
- </operation>
703
- <operation name="listrakRemarketingReviewUpdatePurge">
704
- <documentation>Get deleted reviews list</documentation>
705
- <input message="typens:listrakRemarketingReviewUpdatePurgeRequest" />
706
- <output message="typens:listrakRemarketingReviewUpdatePurgeResponse" />
707
- </operation>
708
- </portType>
709
- <binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
710
- <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
711
- <operation name="listrakRemarketingAbandonedCartList">
712
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
713
- <input>
714
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
715
- </input>
716
- <output>
717
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
718
- </output>
719
- </operation>
720
- <operation name="listrakRemarketingAbandonedCartPurge">
721
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
722
- <input>
723
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
724
- </input>
725
- <output>
726
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
727
- </output>
728
- </operation>
729
- <operation name="listrakRemarketingClickList">
730
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
731
- <input>
732
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
733
- </input>
734
- <output>
735
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
736
- </output>
737
- </operation>
738
- <operation name="listrakRemarketingClickPurge">
739
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
740
- <input>
741
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
742
- </input>
743
- <output>
744
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
745
- </output>
746
- </operation>
747
- <operation name="listrakRemarketingLogList">
748
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
749
- <input>
750
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
751
- </input>
752
- <output>
753
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
754
- </output>
755
- </operation>
756
- <operation name="listrakRemarketingLogPurge">
757
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
758
- <input>
759
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
760
- </input>
761
- <output>
762
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
763
- </output>
764
- </operation>
765
- <operation name="listrakRemarketingLogToggle">
766
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
767
- <input>
768
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
769
- </input>
770
- <output>
771
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
772
- </output>
773
- </operation>
774
- <operation name="listrakRemarketingOrderList">
775
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
776
- <input>
777
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
778
- </input>
779
- <output>
780
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
781
- </output>
782
- </operation>
783
- <operation name="listrakRemarketingOrderStatusList">
784
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
785
- <input>
786
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
787
- </input>
788
- <output>
789
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
790
- </output>
791
- </operation>
792
- <operation name="listrakRemarketingProductList">
793
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
794
- <input>
795
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
796
- </input>
797
- <output>
798
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
799
- </output>
800
- </operation>
801
- <operation name="listrakRemarketingSubscriberList">
802
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
803
- <input>
804
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
805
- </input>
806
- <output>
807
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
808
- </output>
809
- </operation>
810
- <operation name="listrakRemarketingSubscriberPurge">
811
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
812
- <input>
813
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
814
- </input>
815
- <output>
816
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
817
- </output>
818
- </operation>
819
- <operation name="listrakRemarketingCustomerList">
820
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
821
- <input>
822
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
823
- </input>
824
- <output>
825
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
826
- </output>
827
- </operation>
828
- <operation name="listrakRemarketingInfoList">
829
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
830
- <input>
831
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
832
- </input>
833
- <output>
834
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
835
- </output>
836
- </operation>
837
- <operation name="listrakRemarketingReviewList">
838
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
839
- <input>
840
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
841
- </input>
842
- <output>
843
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
844
- </output>
845
- </operation>
846
- <operation name="listrakRemarketingRatingSummaryList">
847
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
848
- <input>
849
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
850
- </input>
851
- <output>
852
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
853
- </output>
854
- </operation>
855
- <operation name="listrakRemarketingReviewUpdateList">
856
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
857
- <input>
858
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
859
- </input>
860
- <output>
861
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
862
- </output>
863
- </operation>
864
- <operation name="listrakRemarketingRatingSummaryUpdateList">
865
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
866
- <input>
867
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
868
- </input>
869
- <output>
870
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
871
- </output>
872
- </operation>
873
- <operation name="listrakRemarketingReviewDeleteList">
874
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
875
- <input>
876
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
877
- </input>
878
- <output>
879
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
880
- </output>
881
- </operation>
882
- <operation name="listrakRemarketingReviewUpdatePurge">
883
- <soap:operation soapAction="urn:{{var wsdl.handler}}Action" />
884
- <input>
885
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
886
- </input>
887
- <output>
888
- <soap:body namespace="urn:{{var wsdl.name}}" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
889
- </output>
890
- </operation>
891
- </binding>
892
- <service name="{{var wsdl.name}}Service">
893
- <port name="{{var wsdl.handler}}Port" binding="typens:{{var wsdl.handler}}Binding">
894
- <soap:address location="{{var wsdl.url}}" />
895
- </port>
896
- </service>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
897
  </definitions>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <!--
3
  /**
4
+ * Listrak Remarketing Magento Extension Ver. 1.0.0 - Copyright (c) 2011 Listrak, Inc.
5
  */
6
  -->
7
+ <definitions xmlns:typens="urn:{{var wsdl.name}}"
8
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
10
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
11
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
12
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
13
+ name="{{var wsdl.name}}" targetNamespace="urn:{{var wsdl.name}}">
14
+ <types>
15
+ <schema xmlns="http://www.w3.org/2001/XMLSchema"
16
+ targetNamespace="urn:Magento">
17
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"
18
+ schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
19
+ <complexType name="ArrayOfString">
20
+ <complexContent>
21
+ <restriction base="soapenc:Array">
22
+ <attribute ref="soapenc:arrayType"
23
+ wsdl:arrayType="xsd:string[]"/>
24
+ </restriction>
25
+ </complexContent>
26
+ </complexType>
27
+ <!-- session -->
28
+ <complexType name="ListrakRemarketingSessionEntity">
29
+ <all>
30
+ <element name="session_id" type="xsd:string" minOccurs="0"/>
31
+ <element name="store_id" type="xsd:string" minOccurs="0"/>
32
+ <element name="created_at" type="xsd:string" minOccurs="0"/>
33
+ <element name="updated_at" type="xsd:string" minOccurs="0"/>
34
+ <element name="quote_id" type="xsd:string" minOccurs="0"/>
35
+ <element name="ips" type="xsd:string" minOccurs="0"/>
36
+ <element name="pi_id" type="xsd:string" minOccurs="0"/>
37
+ <element name="customer"
38
+ type="typens:ListrakRemarketingCustomerEntity"
39
+ minOccurs="0"/>
40
+ <element name="emails"
41
+ type="typens:ArrayOfListrakRemarketingSessionEmail"
42
+ minOccurs="0"/>
43
+ <element name="clicks"
44
+ type="typens:ArrayOfListrakRemarketingClick"
45
+ minOccurs="0"/>
46
+ </all>
47
+ </complexType>
48
+ <complexType name="ListrakRemarketingSessionEmailEntity">
49
+ <all>
50
+ <element name="email" type="xsd:string" minOccurs="0"/>
51
+ <element name="created_at" type="xsd:string" minOccurs="0"/>
52
+ <element name="page" type="xsd:string" minOccurs="0"/>
53
+ <element name="field_id" type="xsd:string" minOccurs="0"/>
54
+ </all>
55
+ </complexType>
56
+ <complexType name="ArrayOfListrakRemarketingSessionEmail">
57
+ <complexContent>
58
+ <restriction base="soapenc:Array">
59
+ <attribute ref="soapenc:arrayType"
60
+ wsdl:arrayType="typens:ListrakRemarketingSessionEmailEntity[]"/>
61
+ </restriction>
62
+ </complexContent>
63
+ </complexType>
64
 
65
+ <!-- abandoned cart -->
66
+ <complexType name="ListrakRemarketingAbandonedCartEntity">
67
+ <all>
68
+ <element name="store_id" type="xsd:string" minOccurs="0"/>
69
+ <element name="session"
70
+ type="typens:ListrakRemarketingSessionEntity"
71
+ minOccurs="0"/>
72
+ <element name="products"
73
+ type="typens:ArrayOfListrakRemarketingAbandonedCartProduct"
74
+ minOccurs="0"/>
75
+ </all>
76
+ </complexType>
77
+ <complexType name="ArrayOfListrakRemarketingAbandonedCart">
78
+ <complexContent>
79
+ <restriction base="soapenc:Array">
80
+ <attribute ref="soapenc:arrayType"
81
+ wsdl:arrayType="typens:ListrakRemarketingAbandonedCartEntity[]"/>
82
+ </restriction>
83
+ </complexContent>
84
+ </complexType>
85
+ <complexType name="ListrakRemarketingAbandonedCartProductEntity">
86
+ <all>
87
+ <element name="entity_id" type="xsd:string" minOccurs="0"/>
88
+ <element name="sku" type="xsd:string" minOccurs="0"/>
89
+ <element name="name" type="xsd:string" minOccurs="0"/>
90
+ <element name="price" type="xsd:string" minOccurs="0"/>
91
+ <element name="special_price" type="xsd:string" minOccurs="0"/>
92
+ <element name="special_from_date" type="xsd:string"
93
+ minOccurs="0"/>
94
+ <element name="special_to_date" type="xsd:string" minOccurs="0"/>
95
+ <element name="cost" type="xsd:string" minOccurs="0"/>
96
+ <element name="description" type="xsd:string" minOccurs="0"/>
97
+ <element name="short_description" type="xsd:string"
98
+ minOccurs="0"/>
99
+ <element name="weight" type="xsd:string" minOccurs="0"/>
100
+ <element name="url_key" type="xsd:string" minOccurs="0"/>
101
+ <element name="url_path" type="xsd:string" minOccurs="0"/>
102
+ <element name="image" type="xsd:string" minOccurs="0"/>
103
+ <element name="small_image" type="xsd:string" minOccurs="0"/>
104
+ <element name="thumbnail" type="xsd:string" minOccurs="0"/>
105
+ <element name="qty" type="xsd:string" minOccurs="0"/>
106
+ <element name="bundle_items"
107
+ type="typens:ArrayOfListrakRemarketingAbandonedCartProduct"
108
+ minOccurs="0"/>
109
+ </all>
110
+ </complexType>
111
+ <complexType name="ArrayOfListrakRemarketingAbandonedCartProduct">
112
+ <complexContent>
113
+ <restriction base="soapenc:Array">
114
+ <attribute ref="soapenc:arrayType"
115
+ wsdl:arrayType="typens:ListrakRemarketingAbandonedCartProductEntity[]"/>
116
+ </restriction>
117
+ </complexContent>
118
+ </complexType>
119
 
120
+ <!-- product -->
121
+ <complexType name="ListrakRemarketingConfigurableAttributeEntity">
122
+ <all>
123
+ <element name="attribute_name" type="xsd:string" minOccurs="0"/>
124
+ <element name="value" type="xsd:string" minOccurs="0"/>
125
+ </all>
126
+ </complexType>
127
+ <complexType name="ArrayOfListrakRemarketingConfigurableAttributeEntity">
128
+ <complexContent>
129
+ <restriction base="soapenc:Array">
130
+ <attribute ref="soapenc:arrayType"
131
+ wsdl:arrayType="typens:ListrakRemarketingConfigurableAttributeEntity[]"/>
132
+ </restriction>
133
+ </complexContent>
134
+ </complexType>
135
+ <complexType name="ListrakRemarketingProductEntity">
136
+ <all>
137
+ <element name="entity_id" type="xsd:string" minOccurs="0"/>
138
+ <element name="sku" type="xsd:string" minOccurs="0"/>
139
+ <element name="name" type="xsd:string" minOccurs="0"/>
140
+ <element name="price" type="xsd:string" minOccurs="0"/>
141
+ <element name="special_price" type="xsd:string" minOccurs="0"/>
142
+ <element name="special_from_date" type="xsd:string"
143
+ minOccurs="0"/>
144
+ <element name="special_to_date" type="xsd:string" minOccurs="0"/>
145
+ <element name="cost" type="xsd:string" minOccurs="0"/>
146
+ <element name="description" type="xsd:string" minOccurs="0"/>
147
+ <element name="short_description" type="xsd:string"
148
+ minOccurs="0"/>
149
+ <element name="weight" type="xsd:string" minOccurs="0"/>
150
+ <element name="url_key" type="xsd:string" minOccurs="0"/>
151
+ <element name="url_path" type="xsd:string" minOccurs="0"/>
152
+ <element name="image" type="xsd:string" minOccurs="0"/>
153
+ <element name="small_image" type="xsd:string" minOccurs="0"/>
154
+ <element name="thumbnail" type="xsd:string" minOccurs="0"/>
155
+ <element name="qty" type="xsd:string" minOccurs="0"/>
156
+ <element name="parent_id" type="xsd:string" minOccurs="0"/>
157
+ <element name="parent_sku" type="xsd:string" minOccurs="0"/>
158
+ <element name="brand" type="xsd:string" minOccurs="0"/>
159
+ <element name="category" type="xsd:string" minOccurs="0"/>
160
+ <element name="sub_category" type="xsd:string" minOccurs="0"/>
161
+ <element name="in_stock" type="xsd:string" minOccurs="0"/>
162
+ <element name="qty_on_hand" type="xsd:string" minOccurs="0"/>
163
+ <element name="type" type="xsd:string" minOccurs="0"/>
164
+ <element name="configurable_attributes"
165
+ type="typens:ArrayOfListrakRemarketingConfigurableAttributeEntity"
166
+ minOccurs="0"/>
167
+ </all>
168
+ </complexType>
169
+ <complexType name="ArrayOfListrakRemarketingProduct">
170
+ <complexContent>
171
+ <restriction base="soapenc:Array">
172
+ <attribute ref="soapenc:arrayType"
173
+ wsdl:arrayType="typens:ListrakRemarketingProductEntity[]"/>
174
+ </restriction>
175
+ </complexContent>
176
+ </complexType>
177
 
178
+ <!-- click -->
179
+ <complexType name="ListrakRemarketingClickEntity">
180
+ <all>
181
+ <element name="store_id" type="xsd:string" minOccurs="0"/>
182
+ <element name="customer_id" type="xsd:string" minOccurs="0"/>
183
+ <element name="customer_email" type="xsd:string" minOccurs="0"/>
184
+ <element name="querystring" type="xsd:string" minOccurs="0"/>
185
+ <element name="click_date" type="xsd:string" minOccurs="0"/>
186
+ <element name="token_uid" type="xsd:string" minOccurs="0"/>
187
+ <element name="session_uid" type="xsd:string" minOccurs="0"/>
188
+ <element name="pi_id" type="xsd:string" minOccurs="0"/>
189
+ </all>
190
+ </complexType>
191
+ <complexType name="ArrayOfListrakRemarketingClick">
192
+ <complexContent>
193
+ <restriction base="soapenc:Array">
194
+ <attribute ref="soapenc:arrayType"
195
+ wsdl:arrayType="typens:ListrakRemarketingClickEntity[]"/>
196
+ </restriction>
197
+ </complexContent>
198
+ </complexType>
199
 
200
+ <!-- log -->
201
+ <complexType name="ListrakRemarketingLogEntity">
202
+ <all>
203
+ <element name="store_id" type="xsd:string" minOccurs="0"/>
204
+ <element name="message" type="xsd:string" minOccurs="0"/>
205
+ <element name="date_entered" type="xsd:string" minOccurs="0"/>
206
+ <element name="log_type_id" type="xsd:string" minOccurs="0"/>
207
+ </all>
208
+ </complexType>
209
+ <complexType name="ArrayOfListrakRemarketingLog">
210
+ <complexContent>
211
+ <restriction base="soapenc:Array">
212
+ <attribute ref="soapenc:arrayType"
213
+ wsdl:arrayType="typens:ListrakRemarketingLogEntity[]"/>
214
+ </restriction>
215
+ </complexContent>
216
+ </complexType>
217
 
218
+ <!-- order -->
219
+ <complexType name="ListrakRemarketingOrderEntity">
220
+ <all>
221
+ <element name="info"
222
+ type="typens:ListrakRemarketingOrderInfoEntity"
223
+ minOccurs="0"/>
224
+ <element name="billing_address"
225
+ type="typens:ListrakRemarketingOrderAddressEntity"
226
+ minOccurs="0"/>
227
+ <element name="shipping_address"
228
+ type="typens:ListrakRemarketingOrderAddressEntity"
229
+ minOccurs="0"/>
230
+ <element name="product"
231
+ type="typens:ArrayOfListrakRemarketingProductShort"
232
+ minOccurs="0"/>
233
+ <element name="session"
234
+ type="typens:ListrakRemarketingSessionEntity"
235
+ minOccurs="0"/>
236
+ <element name="customer"
237
+ type="typens:ListrakRemarketingCustomerEntity"
238
+ minOccurs="0"/>
239
+ </all>
240
+ </complexType>
241
+ <complexType name="ArrayOfListrakRemarketingOrder">
242
+ <complexContent>
243
+ <restriction base="soapenc:Array">
244
+ <attribute ref="soapenc:arrayType"
245
+ wsdl:arrayType="typens:ListrakRemarketingOrderEntity[]"/>
246
+ </restriction>
247
+ </complexContent>
248
+ </complexType>
249
+ <complexType name="ListrakRemarketingOrderInfoEntity">
250
+ <all>
251
+ <element name="entity_id" type="xsd:string" minOccurs="0"/>
252
+ <element name="order_id" type="xsd:string" minOccurs="0"/>
253
+ <element name="status" type="xsd:string" minOccurs="0"/>
254
+ <element name="customer_firstname" type="xsd:string"
255
+ minOccurs="0"/>
256
+ <element name="customer_lastname" type="xsd:string"
257
+ minOccurs="0"/>
258
+ <element name="customer_email" type="xsd:string" minOccurs="0"/>
259
+ <element name="subtotal" type="xsd:string" minOccurs="0"/>
260
+ <element name="tax_amount" type="xsd:string" minOccurs="0"/>
261
+ <element name="shipping_amount" type="xsd:string" minOccurs="0"/>
262
+ <element name="grand_total" type="xsd:string" minOccurs="0"/>
263
+ <element name="billing_firstname" type="xsd:string"
264
+ minOccurs="0"/>
265
+ <element name="created_at" type="xsd:string" minOccurs="0"/>
266
+ <element name="updated_at" type="xsd:string" minOccurs="0"/>
267
+ </all>
268
+ </complexType>
269
+ <complexType name="ListrakRemarketingOrderAddressEntity">
270
+ <all>
271
+ <element name="firstname" type="xsd:string" minOccurs="0"/>
272
+ <element name="lastname" type="xsd:string" minOccurs="0"/>
273
+ <element name="company" type="xsd:string" minOccurs="0"/>
274
+ <element name="street" type="xsd:string" minOccurs="0"/>
275
+ <element name="city" type="xsd:string" minOccurs="0"/>
276
+ <element name="region" type="xsd:string" minOccurs="0"/>
277
+ <element name="postcode" type="xsd:string" minOccurs="0"/>
278
+ <element name="country" type="xsd:string" minOccurs="0"/>
279
+ </all>
280
+ </complexType>
281
+ <complexType name="ListrakRemarketingProductShortEntity">
282
+ <all>
283
+ <element name="sku" type="xsd:string" minOccurs="0"/>
284
+ <element name="name" type="xsd:string" minOccurs="0"/>
285
+ <element name="price" type="xsd:string" minOccurs="0"/>
286
+ <element name="qty_ordered" type="xsd:string" minOccurs="0"/>
287
+ <element name="product_price" type="xsd:string" minOccurs="0"/>
288
+ <element name="bundle_items"
289
+ type="typens:ArrayOfListrakRemarketingProductShort"
290
+ minOccurs="0"/>
291
+ </all>
292
+ </complexType>
293
+ <complexType name="ArrayOfListrakRemarketingProductShort">
294
+ <complexContent>
295
+ <restriction base="soapenc:Array">
296
+ <attribute ref="soapenc:arrayType"
297
+ wsdl:arrayType="typens:ListrakRemarketingProductShortEntity[]"/>
298
+ </restriction>
299
+ </complexContent>
300
+ </complexType>
301
 
302
+ <!-- order status -->
303
+ <complexType name="ListrakRemarketingOrderStatusEntity">
304
+ <all>
305
+ <element name="increment_id" type="xsd:string" minOccurs="0"/>
306
+ <element name="status" type="xsd:string" minOccurs="0"/>
307
+ <element name="updated_at" type="xsd:string" minOccurs="0"/>
308
+ </all>
309
+ </complexType>
310
+ <complexType name="ArrayOfListrakRemarketingOrderStatus">
311
+ <complexContent>
312
+ <restriction base="soapenc:Array">
313
+ <attribute ref="soapenc:arrayType"
314
+ wsdl:arrayType="typens:ListrakRemarketingOrderStatusEntity[]"/>
315
+ </restriction>
316
+ </complexContent>
317
+ </complexType>
318
 
319
+ <!-- customer -->
320
+ <complexType name="ListrakRemarketingCustomerEntity">
321
+ <all>
322
+ <element name="entity_id" type="xsd:string" minOccurs="0"/>
323
+ <element name="firstname" type="xsd:string" minOccurs="0"/>
324
+ <element name="lastname" type="xsd:string" minOccurs="0"/>
325
+ <element name="email" type="xsd:string" minOccurs="0"/>
326
+ <element name="website_id" type="xsd:string" minOccurs="0"/>
327
+ <element name="store_id" type="xsd:string" minOccurs="0"/>
328
+ <element name="gender_name" type="xsd:string" minOccurs="0"/>
329
+ <element name="dob" type="xsd:string" minOccurs="0"/>
330
+ <element name="group_name" type="xsd:string" minOccurs="0"/>
331
+ </all>
332
+ </complexType>
333
+ <complexType name="ArrayOfListrakRemarketingCustomer">
334
+ <complexContent>
335
+ <restriction base="soapenc:Array">
336
+ <attribute ref="soapenc:arrayType"
337
+ wsdl:arrayType="typens:ListrakRemarketingCustomerEntity[]"/>
338
+ </restriction>
339
+ </complexContent>
340
+ </complexType>
341
 
342
+ <!-- subscriber -->
343
+ <complexType name="ListrakRemarketingSubscriberEntity">
344
+ <all>
345
+ <element name="subscriber_id" type="xsd:string" minOccurs="0"/>
346
+ <element name="store_id" type="xsd:string" minOccurs="0"/>
347
+ <element name="customer_id" type="xsd:string" minOccurs="0"/>
348
+ <element name="change_status_at" type="xsd:string"
349
+ minOccurs="0"/>
350
+ <element name="subscriber_email" type="xsd:string"
351
+ minOccurs="0"/>
352
+ <element name="subscriber_status" type="xsd:string"
353
+ minOccurs="0"/>
354
+ <element name="updated_at" type="xsd:string" minOccurs="0"/>
355
+ </all>
356
+ </complexType>
357
+ <complexType name="ArrayOfListrakRemarketingSubscriber">
358
+ <complexContent>
359
+ <restriction base="soapenc:Array">
360
+ <attribute ref="soapenc:arrayType"
361
+ wsdl:arrayType="typens:ListrakRemarketingSubscriberEntity[]"/>
362
+ </restriction>
363
+ </complexContent>
364
+ </complexType>
365
 
366
+ <complexType name="ListrakRemarketingInfoEntity">
367
+ <all>
368
+ <element name="magentoVersion" type="xsd:string" minOccurs="0"/>
369
+ <element name="listrakSettings"
370
+ type="typens:ListrakRemarketingSettingEntity"
371
+ minOccurs="0"/>
372
+ <element name="modules" type="typens:ArrayOfString"
373
+ minOccurs="0"/>
374
+ <element name="ini" type="typens:ArrayOfString" minOccurs="0"/>
375
+ <element name="classes" type="xsd:string" minOccurs="0"/>
376
+ <element name="counts" type="xsd:string" minOccurs="0"/>
377
+ </all>
378
+ </complexType>
379
+ <complexType name="ListrakRemarketingSettingEntity">
380
+ <all>
381
+ <element name="coreEnabled" type="xsd:string" minOccurs="0"/>
382
+ <element name="reviewsApiEnabled" type="xsd:string"
383
+ minOccurs="0"/>
384
+ </all>
385
+ </complexType>
386
 
387
+ <!-- review list / review update list -->
388
+ <complexType name="ListrakRemarketingReviewListResult">
389
+ <complexContent>
390
+ <restriction base="soapenc:Array">
391
+ <attribute ref="soapenc:arrayType"
392
+ wsdl:arrayType="typens:ListrakRemarketingReviewListItem[]"/>
393
+ </restriction>
394
+ </complexContent>
395
+ </complexType>
396
+ <complexType name="ListrakRemarketingReviewListItem">
397
+ <all>
398
+ <element name="update_id" type="xsd:string" minOccurs="0"/>
399
+ <element name="review_id" type="xsd:string" minOccurs="0"/>
400
+ <element name="product_id" type="xsd:string" minOccurs="0"/>
401
+ <element name="title" type="xsd:string" minOccurs="0"/>
402
+ <element name="text" type="xsd:string" minOccurs="0"/>
403
+ <element name="overall_rating" type="xsd:string" minOccurs="0"/>
404
+ <element name="created_at" type="xsd:string" minOccurs="0"/>
405
+ <element name="updated_at" type="xsd:string" minOccurs="0"/>
406
+ <element name="reviewer_name" type="xsd:string" minOccurs="0"/>
407
+ <element name="email" type="xsd:string" minOccurs="0"/>
408
+ <element name="status_id" type="xsd:string" minOccurs="0"/>
409
+ <element name="status_code" type="xsd:string" minOccurs="0"/>
410
+ <element name="ratings"
411
+ type="typens:ArrayOfListrakRemarketingReviewRating"
412
+ minOccurs="0"/>
413
+ </all>
414
+ </complexType>
415
+ <complexType name="ArrayOfListrakRemarketingReviewRating">
416
+ <complexContent>
417
+ <restriction base="soapenc:Array">
418
+ <attribute ref="soapenc:arrayType"
419
+ wsdl:arrayType="typens:ListrakRemarketingReviewRatingItem[]"/>
420
+ </restriction>
421
+ </complexContent>
422
+ </complexType>
423
+ <complexType name="ListrakRemarketingReviewRatingItem">
424
+ <all>
425
+ <element name="rating_id" type="xsd:string" minOccurs="0"/>
426
+ <element name="rating_code" type="xsd:string" minOccurs="0"/>
427
+ <element name="rating" type="xsd:string" minOccurs="0"/>
428
+ </all>
429
+ </complexType>
430
 
431
+ <!-- rating summary list / rating summary update list -->
432
+ <complexType name="ListrakRemarketingRatingSummaryListResult">
433
+ <complexContent>
434
+ <restriction base="soapenc:Array">
435
+ <attribute ref="soapenc:arrayType"
436
+ wsdl:arrayType="typens:ListrakRemarketingRatingSummaryItem[]"/>
437
+ </restriction>
438
+ </complexContent>
439
+ </complexType>
440
+ <complexType name="ListrakRemarketingRatingSummaryItem">
441
+ <all>
442
+ <element name="update_id" type="xsd:string" minOccurs="0"/>
443
+ <element name="rating_summary_id" type="xsd:string"
444
+ minOccurs="0"/>
445
+ <element name="product_id" type="xsd:string" minOccurs="0"/>
446
+ <element name="updated_at" type="xsd:string" minOccurs="0"/>
447
+ <element name="total_reviews" type="xsd:string" minOccurs="0"/>
448
+ <element name="rating" type="xsd:string" minOccurs="0"/>
449
+ <element name="ratings"
450
+ type="typens:ArrayOfListrakRemarketingRatingSummaryAttribute"
451
+ minOccurs="0"/>
452
+ </all>
453
+ </complexType>
454
+ <complexType name="ArrayOfListrakRemarketingRatingSummaryAttribute">
455
+ <complexContent>
456
+ <restriction base="soapenc:Array">
457
+ <attribute ref="soapenc:arrayType"
458
+ wsdl:arrayType="typens:ListrakRemarketingRatingSummaryAttributeItem[]"/>
459
+ </restriction>
460
+ </complexContent>
461
+ </complexType>
462
+ <complexType name="ListrakRemarketingRatingSummaryAttributeItem">
463
+ <all>
464
+ <element name="rating_id" type="xsd:string" minOccurs="0"/>
465
+ <element name="rating_code" type="xsd:string" minOccurs="0"/>
466
+ <element name="rating" type="xsd:string" minOccurs="0"/>
467
+ </all>
468
+ </complexType>
469
 
470
+ <!-- review delete list -->
471
+ <complexType name="ListrakRemarketingReviewDeleteListResult">
472
+ <complexContent>
473
+ <restriction base="soapenc:Array">
474
+ <attribute ref="soapenc:arrayType"
475
+ wsdl:arrayType="typens:ListrakRemarketingDeletedReview[]"/>
476
+ </restriction>
477
+ </complexContent>
478
+ </complexType>
479
+ <complexType name="ListrakRemarketingDeletedReview">
480
+ <all>
481
+ <element name="delete_id" type="xsd:string" minOccurs="0"/>
482
+ <element name="review_id" type="xsd:string" minOccurs="0"/>
483
+ </all>
484
+ </complexType>
485
 
486
+ <!-- review update purge -->
487
+ <complexType name="ListrakRemarketingReviewUpdatePurgeResult">
488
+ <all>
489
+ <element name="count" type="xsd:string" minOccurs="0"/>
490
+ <element name="before" type="xsd:string" minOccurs="0"/>
491
+ </all>
492
+ </complexType>
493
+ </schema>
494
+ </types>
495
+ <message name="listrakRemarketingAbandonedCartListRequest">
496
+ <part name="sessionId" type="xsd:string"/>
497
+ <part name="storeId" type="xsd:string"/>
498
+ <part name="startDate" type="xsd:string"/>
499
+ <part name="endDate" type="xsd:string"/>
500
+ <part name="perPage" type="xsd:int"/>
501
+ <part name="page" type="xsd:int"/>
502
+ </message>
503
+ <message name="listrakRemarketingAbandonedCartListResponse">
504
+ <part name="result" type="typens:ArrayOfListrakRemarketingAbandonedCart"/>
505
+ </message>
506
+ <message name="listrakRemarketingAbandonedCartPurgeRequest">
507
+ <part name="sessionId" type="xsd:string"/>
508
+ <part name="storeId" type="xsd:string"/>
509
+ <part name="endDate" type="xsd:string"/>
510
+ </message>
511
+ <message name="listrakRemarketingAbandonedCartPurgeResponse">
512
+ <part name="result" type="xsd:string"/>
513
+ </message>
514
+ <message name="listrakRemarketingClickListRequest">
515
+ <part name="sessionId" type="xsd:string"/>
516
+ <part name="storeId" type="xsd:string"/>
517
+ <part name="startDate" type="xsd:string"/>
518
+ <part name="endDate" type="xsd:string"/>
519
+ <part name="perPage" type="xsd:int"/>
520
+ <part name="page" type="xsd:int"/>
521
+ </message>
522
+ <message name="listrakRemarketingClickListResponse">
523
+ <part name="result" type="typens:ArrayOfListrakRemarketingClick"/>
524
+ </message>
525
+ <message name="listrakRemarketingClickPurgeRequest">
526
+ <part name="sessionId" type="xsd:string"/>
527
+ <part name="storeId" type="xsd:string"/>
528
+ <part name="endDate" type="xsd:string"/>
529
+ </message>
530
+ <message name="listrakRemarketingClickPurgeResponse">
531
+ <part name="result" type="xsd:string"/>
532
+ </message>
533
+ <message name="listrakRemarketingLogListRequest">
534
+ <part name="sessionId" type="xsd:string"/>
535
+ <part name="storeId" type="xsd:string"/>
536
+ <part name="startDate" type="xsd:string"/>
537
+ <part name="endDate" type="xsd:string"/>
538
+ <part name="perPage" type="xsd:int"/>
539
+ <part name="page" type="xsd:int"/>
540
+ <part name="logTypeId" type="xsd:string"/>
541
+ </message>
542
+ <message name="listrakRemarketingLogListResponse">
543
+ <part name="result" type="typens:ArrayOfListrakRemarketingLog"/>
544
+ </message>
545
+ <message name="listrakRemarketingLogPurgeRequest">
546
+ <part name="sessionId" type="xsd:string"/>
547
+ <part name="storeId" type="xsd:string"/>
548
+ <part name="endDate" type="xsd:string"/>
549
+ </message>
550
+ <message name="listrakRemarketingLogPurgeResponse">
551
+ <part name="result" type="xsd:string"/>
552
+ </message>
553
+ <message name="listrakRemarketingLogToggleRequest">
554
+ <part name="sessionId" type="xsd:string"/>
555
+ <part name="storeId" type="xsd:string"/>
556
+ <part name="onOff" type="xsd:string"/>
557
+ </message>
558
+ <message name="listrakRemarketingLogToggleResponse">
559
+ <part name="result" type="xsd:string"/>
560
+ </message>
561
+ <message name="listrakRemarketingOrderListRequest">
562
+ <part name="sessionId" type="xsd:string"/>
563
+ <part name="storeId" type="xsd:string"/>
564
+ <part name="startDate" type="xsd:string"/>
565
+ <part name="endDate" type="xsd:string"/>
566
+ <part name="perPage" type="xsd:int"/>
567
+ <part name="page" type="xsd:int"/>
568
+ </message>
569
+ <message name="listrakRemarketingOrderListResponse">
570
+ <part name="result" type="typens:ArrayOfListrakRemarketingOrder"/>
571
+ </message>
572
+ <message name="listrakRemarketingOrderStatusListRequest">
573
+ <part name="sessionId" type="xsd:string"/>
574
+ <part name="storeId" type="xsd:string"/>
575
+ <part name="startDate" type="xsd:string"/>
576
+ <part name="endDate" type="xsd:string"/>
577
+ <part name="perPage" type="xsd:int"/>
578
+ <part name="page" type="xsd:int"/>
579
+ <part name="filters" type="typens:filters"/>
580
+ </message>
581
+ <message name="listrakRemarketingOrderStatusListResponse">
582
+ <part name="result" type="typens:ArrayOfListrakRemarketingOrderStatus"/>
583
+ </message>
584
+ <message name="listrakRemarketingProductListRequest">
585
+ <part name="sessionId" type="xsd:string"/>
586
+ <part name="storeId" type="xsd:string"/>
587
+ <part name="perPage" type="xsd:int"/>
588
+ <part name="page" type="xsd:int"/>
589
+ </message>
590
+ <message name="listrakRemarketingProductListResponse">
591
+ <part name="result" type="typens:ArrayOfListrakRemarketingProduct"/>
592
+ </message>
593
+ <message name="listrakRemarketingSubscriberListRequest">
594
+ <part name="sessionId" type="xsd:string"/>
595
+ <part name="storeId" type="xsd:string"/>
596
+ <part name="startDate" type="xsd:string"/>
597
+ <part name="perPage" type="xsd:int"/>
598
+ <part name="page" type="xsd:int"/>
599
+ </message>
600
+ <message name="listrakRemarketingSubscriberListResponse">
601
+ <part name="result" type="typens:ArrayOfListrakRemarketingSubscriber"/>
602
+ </message>
603
+ <message name="listrakRemarketingSubscriberPurgeRequest">
604
+ <part name="sessionId" type="xsd:string"/>
605
+ <part name="endDate" type="xsd:string"/>
606
+ </message>
607
+ <message name="listrakRemarketingSubscriberPurgeResponse">
608
+ <part name="result" type="xsd:string"/>
609
+ </message>
610
+ <message name="listrakRemarketingCustomerListRequest">
611
+ <part name="sessionId" type="xsd:string"/>
612
+ <part name="storeId" type="xsd:string"/>
613
+ <part name="websiteId" type="xsd:int"/>
614
+ <part name="perPage" type="xsd:int"/>
615
+ <part name="page" type="xsd:int"/>
616
+ </message>
617
+ <message name="listrakRemarketingCustomerListResponse">
618
+ <part name="result" type="typens:ArrayOfListrakRemarketingCustomer"/>
619
+ </message>
620
+ <message name="listrakRemarketingInfoListRequest">
621
+ <part name="sessionId" type="xsd:string"/>
622
+ <part name="storeId" type="xsd:string"/>
623
+ </message>
624
+ <message name="listrakRemarketingInfoListResponse">
625
+ <part name="result" type="typens:ListrakRemarketingInfoEntity"/>
626
+ </message>
627
+ <message name="listrakRemarketingReviewListRequest">
628
+ <part name="sessionId" type="xsd:string"/>
629
+ <part name="storeId" type="xsd:string"/>
630
+ <part name="chunkSize" type="xsd:string"/>
631
+ <part name="startReviewId" type="xsd:string"/>
632
+ </message>
633
+ <message name="listrakRemarketingReviewListResponse">
634
+ <part name="result" type="typens:ListrakRemarketingReviewListResult"/>
635
+ </message>
636
+ <message name="listrakRemarketingRatingSummaryListRequest">
637
+ <part name="sessionId" type="xsd:string"/>
638
+ <part name="storeId" type="xsd:string"/>
639
+ <part name="chunkSize" type="xsd:string"/>
640
+ <part name="startRatingSummaryId" type="xsd:string"/>
641
+ </message>
642
+ <message name="listrakRemarketingRatingSummaryListResponse">
643
+ <part name="result" type="typens:ListrakRemarketingRatingSummaryListResult"/>
644
+ </message>
645
+ <message name="listrakRemarketingReviewUpdateListRequest">
646
+ <part name="sessionId" type="xsd:string"/>
647
+ <part name="storeId" type="xsd:string"/>
648
+ <part name="chunkSize" type="xsd:string"/>
649
+ <part name="startUpdateId" type="xsd:string"/>
650
+ </message>
651
+ <message name="listrakRemarketingReviewUpdateListResponse">
652
+ <part name="result" type="typens:ListrakRemarketingReviewListResult"/>
653
+ </message>
654
+ <message name="listrakRemarketingRatingSummaryUpdateListRequest">
655
+ <part name="sessionId" type="xsd:string"/>
656
+ <part name="storeId" type="xsd:string"/>
657
+ <part name="chunkSize" type="xsd:string"/>
658
+ <part name="startUpdateId" type="xsd:string"/>
659
+ </message>
660
+ <message name="listrakRemarketingRatingSummaryUpdateListResponse">
661
+ <part name="result" type="typens:ListrakRemarketingRatingSummaryListResult"/>
662
+ </message>
663
+ <message name="listrakRemarketingReviewDeleteListRequest">
664
+ <part name="sessionId" type="xsd:string"/>
665
+ <part name="chunkSize" type="xsd:string"/>
666
+ <part name="startDeleteId" type="xsd:string"/>
667
+ </message>
668
+ <message name="listrakRemarketingReviewDeleteListResponse">
669
+ <part name="result" type="typens:ListrakRemarketingReviewDeleteListResult"/>
670
+ </message>
671
+ <message name="listrakRemarketingReviewUpdatePurgeRequest">
672
+ <part name="sessionId" type="xsd:string"/>
673
+ <part name="purgeBeforeDays" type="xsd:string"/>
674
+ </message>
675
+ <message name="listrakRemarketingReviewUpdatePurgeResponse">
676
+ <part name="result" type="typens:ListrakRemarketingReviewUpdatePurgeResult"/>
677
+ </message>
678
+ <portType name="{{var wsdl.handler}}PortType">
679
+ <operation name="listrakRemarketingAbandonedCartList">
680
+ <documentation>Get stores abandoned carts</documentation>
681
+ <input message="typens:listrakRemarketingAbandonedCartListRequest"/>
682
+ <output message="typens:listrakRemarketingAbandonedCartListResponse"/>
683
+ </operation>
684
+ <operation name="listrakRemarketingAbandonedCartPurge">
685
+ <documentation>Purge abandoned carts</documentation>
686
+ <input message="typens:listrakRemarketingAbandonedCartPurgeRequest"/>
687
+ <output message="typens:listrakRemarketingAbandonedCartPurgeResponse"/>
688
+ </operation>
689
+ <operation name="listrakRemarketingClickList">
690
+ <documentation>Get clicks</documentation>
691
+ <input message="typens:listrakRemarketingClickListRequest"/>
692
+ <output message="typens:listrakRemarketingClickListResponse"/>
693
+ </operation>
694
+ <operation name="listrakRemarketingClickPurge">
695
+ <documentation>Purge clicks</documentation>
696
+ <input message="typens:listrakRemarketingClickPurgeRequest"/>
697
+ <output message="typens:listrakRemarketingClickPurgeResponse"/>
698
+ </operation>
699
+ <operation name="listrakRemarketingLogList">
700
+ <documentation>Get log entries</documentation>
701
+ <input message="typens:listrakRemarketingLogListRequest"/>
702
+ <output message="typens:listrakRemarketingLogListResponse"/>
703
+ </operation>
704
+ <operation name="listrakRemarketingLogPurge">
705
+ <documentation>Purge log entries</documentation>
706
+ <input message="typens:listrakRemarketingLogPurgeRequest"/>
707
+ <output message="typens:listrakRemarketingLogPurgeResponse"/>
708
+ </operation>
709
+ <operation name="listrakRemarketingLogToggle">
710
+ <documentation>toggle logging</documentation>
711
+ <input message="typens:listrakRemarketingLogToggleRequest"/>
712
+ <output message="typens:listrakRemarketingLogToggleResponse"/>
713
+ </operation>
714
+ <operation name="listrakRemarketingOrderList">
715
+ <documentation>Get orders</documentation>
716
+ <input message="typens:listrakRemarketingOrderListRequest"/>
717
+ <output message="typens:listrakRemarketingOrderListResponse"/>
718
+ </operation>
719
+ <operation name="listrakRemarketingOrderStatusList">
720
+ <documentation>Get order status changes</documentation>
721
+ <input message="typens:listrakRemarketingOrderStatusListRequest"/>
722
+ <output message="typens:listrakRemarketingOrderStatusListResponse"/>
723
+ </operation>
724
+ <operation name="listrakRemarketingProductList">
725
+ <documentation>Get products</documentation>
726
+ <input message="typens:listrakRemarketingProductListRequest"/>
727
+ <output message="typens:listrakRemarketingProductListResponse"/>
728
+ </operation>
729
+ <operation name="listrakRemarketingSubscriberList">
730
+ <documentation>Get subscribers and unsubscribers</documentation>
731
+ <input message="typens:listrakRemarketingSubscriberListRequest"/>
732
+ <output message="typens:listrakRemarketingSubscriberListResponse"/>
733
+ </operation>
734
+ <operation name="listrakRemarketingSubscriberPurge">
735
+ <documentation>Purge old subscriber updates</documentation>
736
+ <input message="typens:listrakRemarketingSubscriberPurgeRequest"/>
737
+ <output message="typens:listrakRemarketingSubscriberPurgeResponse"/>
738
+ </operation>
739
+ <operation name="listrakRemarketingCustomerList">
740
+ <documentation>Get customers</documentation>
741
+ <input message="typens:listrakRemarketingCustomerListRequest"/>
742
+ <output message="typens:listrakRemarketingCustomerListResponse"/>
743
+ </operation>
744
+ <operation name="listrakRemarketingInfoList">
745
+ <documentation>Get info</documentation>
746
+ <input message="typens:listrakRemarketingInfoListRequest"/>
747
+ <output message="typens:listrakRemarketingInfoListResponse"/>
748
+ </operation>
749
+ <operation name="listrakRemarketingReviewList">
750
+ <documentation>Get review list</documentation>
751
+ <input message="typens:listrakRemarketingReviewListRequest"/>
752
+ <output message="typens:listrakRemarketingReviewListResponse"/>
753
+ </operation>
754
+ <operation name="listrakRemarketingRatingSummaryList">
755
+ <documentation>Get rating summary list</documentation>
756
+ <input message="typens:listrakRemarketingRatingSummaryListRequest"/>
757
+ <output message="typens:listrakRemarketingRatingSummaryListResponse"/>
758
+ </operation>
759
+ <operation name="listrakRemarketingReviewUpdateList">
760
+ <documentation>Get review list</documentation>
761
+ <input message="typens:listrakRemarketingReviewUpdateListRequest"/>
762
+ <output message="typens:listrakRemarketingReviewUpdateListResponse"/>
763
+ </operation>
764
+ <operation name="listrakRemarketingRatingSummaryUpdateList">
765
+ <documentation>Get rating summary list</documentation>
766
+ <input message="typens:listrakRemarketingRatingSummaryUpdateListRequest"/>
767
+ <output message="typens:listrakRemarketingRatingSummaryUpdateListResponse"/>
768
+ </operation>
769
+ <operation name="listrakRemarketingReviewDeleteList">
770
+ <documentation>Get deleted reviews list</documentation>
771
+ <input message="typens:listrakRemarketingReviewDeleteListRequest"/>
772
+ <output message="typens:listrakRemarketingReviewDeleteListResponse"/>
773
+ </operation>
774
+ <operation name="listrakRemarketingReviewUpdatePurge">
775
+ <documentation>Get deleted reviews list</documentation>
776
+ <input message="typens:listrakRemarketingReviewUpdatePurgeRequest"/>
777
+ <output message="typens:listrakRemarketingReviewUpdatePurgeResponse"/>
778
+ </operation>
779
+ </portType>
780
+ <binding name="{{var wsdl.handler}}Binding"
781
+ type="typens:{{var wsdl.handler}}PortType">
782
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
783
+ <operation name="listrakRemarketingAbandonedCartList">
784
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
785
+ <input>
786
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
787
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
788
+ </input>
789
+ <output>
790
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
791
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
792
+ </output>
793
+ </operation>
794
+ <operation name="listrakRemarketingAbandonedCartPurge">
795
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
796
+ <input>
797
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
798
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
799
+ </input>
800
+ <output>
801
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
802
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
803
+ </output>
804
+ </operation>
805
+ <operation name="listrakRemarketingClickList">
806
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
807
+ <input>
808
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
809
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
810
+ </input>
811
+ <output>
812
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
813
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
814
+ </output>
815
+ </operation>
816
+ <operation name="listrakRemarketingClickPurge">
817
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
818
+ <input>
819
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
820
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
821
+ </input>
822
+ <output>
823
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
824
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
825
+ </output>
826
+ </operation>
827
+ <operation name="listrakRemarketingLogList">
828
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
829
+ <input>
830
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
831
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
832
+ </input>
833
+ <output>
834
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
835
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
836
+ </output>
837
+ </operation>
838
+ <operation name="listrakRemarketingLogPurge">
839
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
840
+ <input>
841
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
842
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
843
+ </input>
844
+ <output>
845
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
846
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
847
+ </output>
848
+ </operation>
849
+ <operation name="listrakRemarketingLogToggle">
850
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
851
+ <input>
852
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
853
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
854
+ </input>
855
+ <output>
856
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
857
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
858
+ </output>
859
+ </operation>
860
+ <operation name="listrakRemarketingOrderList">
861
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
862
+ <input>
863
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
864
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
865
+ </input>
866
+ <output>
867
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
868
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
869
+ </output>
870
+ </operation>
871
+ <operation name="listrakRemarketingOrderStatusList">
872
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
873
+ <input>
874
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
875
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
876
+ </input>
877
+ <output>
878
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
879
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
880
+ </output>
881
+ </operation>
882
+ <operation name="listrakRemarketingProductList">
883
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
884
+ <input>
885
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
886
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
887
+ </input>
888
+ <output>
889
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
890
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
891
+ </output>
892
+ </operation>
893
+ <operation name="listrakRemarketingSubscriberList">
894
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
895
+ <input>
896
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
897
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
898
+ </input>
899
+ <output>
900
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
901
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
902
+ </output>
903
+ </operation>
904
+ <operation name="listrakRemarketingSubscriberPurge">
905
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
906
+ <input>
907
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
908
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
909
+ </input>
910
+ <output>
911
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
912
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
913
+ </output>
914
+ </operation>
915
+ <operation name="listrakRemarketingCustomerList">
916
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
917
+ <input>
918
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
919
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
920
+ </input>
921
+ <output>
922
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
923
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
924
+ </output>
925
+ </operation>
926
+ <operation name="listrakRemarketingInfoList">
927
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
928
+ <input>
929
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
930
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
931
+ </input>
932
+ <output>
933
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
934
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
935
+ </output>
936
+ </operation>
937
+ <operation name="listrakRemarketingReviewList">
938
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
939
+ <input>
940
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
941
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
942
+ </input>
943
+ <output>
944
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
945
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
946
+ </output>
947
+ </operation>
948
+ <operation name="listrakRemarketingRatingSummaryList">
949
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
950
+ <input>
951
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
952
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
953
+ </input>
954
+ <output>
955
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
956
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
957
+ </output>
958
+ </operation>
959
+ <operation name="listrakRemarketingReviewUpdateList">
960
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
961
+ <input>
962
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
963
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
964
+ </input>
965
+ <output>
966
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
967
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
968
+ </output>
969
+ </operation>
970
+ <operation name="listrakRemarketingRatingSummaryUpdateList">
971
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
972
+ <input>
973
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
974
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
975
+ </input>
976
+ <output>
977
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
978
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
979
+ </output>
980
+ </operation>
981
+ <operation name="listrakRemarketingReviewDeleteList">
982
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
983
+ <input>
984
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
985
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
986
+ </input>
987
+ <output>
988
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
989
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
990
+ </output>
991
+ </operation>
992
+ <operation name="listrakRemarketingReviewUpdatePurge">
993
+ <soap:operation soapAction="urn:{{var wsdl.handler}}Action"/>
994
+ <input>
995
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
996
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
997
+ </input>
998
+ <output>
999
+ <soap:body namespace="urn:{{var wsdl.name}}" use="encoded"
1000
+ encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
1001
+ </output>
1002
+ </operation>
1003
+ </binding>
1004
+ <service name="{{var wsdl.name}}Service">
1005
+ <port name="{{var wsdl.handler}}Port"
1006
+ binding="typens:{{var wsdl.handler}}Binding">
1007
+ <soap:address location="{{var wsdl.url}}"/>
1008
+ </port>
1009
+ </service>
1010
  </definitions>
app/code/community/Listrak/Remarketing/etc/wsi.xml CHANGED
@@ -1,1146 +1,1406 @@
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
  <wsdl:definitions xmlns:typens="urn:{{var wsdl.name}}"
8
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
10
- xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
11
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
12
- name="{{var wsdl.name}}"
13
- targetNamespace="urn:{{var wsdl.name}}">
14
- <wsdl:types>
15
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:{{var wsdl.name}}">
16
- <xsd:complexType name="ArrayOfString">
17
- <xsd:sequence>
18
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="xsd:string" />
19
- </xsd:sequence>
20
- </xsd:complexType>
21
- <!-- session -->
22
- <xsd:complexType name="ListrakRemarketingSessionEntity">
23
- <xsd:sequence>
24
- <xsd:element name="session_id" type="xsd:string" minOccurs="0"/>
25
- <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
26
- <xsd:element name="created_at" type="xsd:string" minOccurs="0"/>
27
- <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
28
- <xsd:element name="quote_id" type="xsd:string" minOccurs="0"/>
29
- <xsd:element name="ips" type="xsd:string" minOccurs="0"/>
30
- <xsd:element name="pi_id" type="xsd:string" minOccurs="0"/>
31
- <xsd:element name="customer" type="typens:ListrakRemarketingCustomerEntity" minOccurs="0"/>
32
- <xsd:element name="emails" type="typens:ArrayOfListrakRemarketingSessionEmail" minOccurs="0"/>
33
- <xsd:element name="clicks" type="typens:ArrayOfListrakRemarketingClick" minOccurs="0"/>
34
- </xsd:sequence>
35
- </xsd:complexType>
36
- <xsd:complexType name="ListrakRemarketingSessionEmailEntity">
37
- <xsd:sequence>
38
- <xsd:element name="email" type="xsd:string" minOccurs="0"/>
39
- <xsd:element name="created_at" type="xsd:string" minOccurs="0"/>
40
- <xsd:element name="page" type="xsd:string" minOccurs="0"/>
41
- <xsd:element name="field_id" type="xsd:string" minOccurs="0"/>
42
- </xsd:sequence>
43
- </xsd:complexType>
44
- <xsd:complexType name="ArrayOfListrakRemarketingSessionEmail">
45
- <xsd:sequence>
46
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingSessionEmailEntity" />
47
- </xsd:sequence>
48
- </xsd:complexType>
 
 
 
 
 
 
 
 
 
 
49
 
50
- <!-- abandoned cart -->
51
- <xsd:complexType name="ListrakRemarketingAbandonedCartEntity">
52
- <xsd:sequence>
53
- <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
54
- <xsd:element name="session" type="typens:ListrakRemarketingSessionEntity" minOccurs="0"/>
55
- <xsd:element name="products" type="typens:ArrayOfListrakRemarketingAbandonedCartProduct" minOccurs="0"/>
56
- </xsd:sequence>
57
- </xsd:complexType>
58
- <xsd:complexType name="ArrayOfListrakRemarketingAbandonedCart">
59
- <xsd:sequence>
60
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingAbandonedCartEntity" />
61
- </xsd:sequence>
62
- </xsd:complexType>
63
- <xsd:complexType name="ListrakRemarketingAbandonedCartProductEntity">
64
- <xsd:sequence>
65
- <xsd:element name="entity_id" type="xsd:string" minOccurs="0"/>
66
- <xsd:element name="sku" type="xsd:string" minOccurs="0"/>
67
- <xsd:element name="name" type="xsd:string" minOccurs="0"/>
68
- <xsd:element name="price" type="xsd:string" minOccurs="0"/>
69
- <xsd:element name="special_price" type="xsd:string" minOccurs="0"/>
70
- <xsd:element name="special_from_date" type="xsd:string" minOccurs="0"/>
71
- <xsd:element name="special_to_date" type="xsd:string" minOccurs="0"/>
72
- <xsd:element name="cost" type="xsd:string" minOccurs="0"/>
73
- <xsd:element name="description" type="xsd:string" minOccurs="0"/>
74
- <xsd:element name="short_description" type="xsd:string" minOccurs="0"/>
75
- <xsd:element name="weight" type="xsd:string" minOccurs="0"/>
76
- <xsd:element name="url_key" type="xsd:string" minOccurs="0"/>
77
- <xsd:element name="url_path" type="xsd:string" minOccurs="0"/>
78
- <xsd:element name="image" type="xsd:string" minOccurs="0"/>
79
- <xsd:element name="small_image" type="xsd:string" minOccurs="0"/>
80
- <xsd:element name="thumbnail" type="xsd:string" minOccurs="0"/>
81
- <xsd:element name="qty" type="xsd:string" minOccurs="0"/>
82
- <xsd:element name="bundle_items" type="typens:ArrayOfListrakRemarketingAbandonedCartProduct" minOccurs="0"/>
83
- </xsd:sequence>
84
- </xsd:complexType>
85
- <xsd:complexType name="ArrayOfListrakRemarketingAbandonedCartProduct">
86
- <xsd:sequence>
87
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingAbandonedCartProductEntity" />
88
- </xsd:sequence>
89
- </xsd:complexType>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
 
91
- <!-- product -->
92
- <xsd:complexType name="ListrakRemarketingConfigurableAttributeEntity">
93
- <xsd:sequence>
94
- <xsd:element name="attribute_name" type="xsd:string" minOccurs="0"/>
95
- <xsd:element name="value" type="xsd:string" minOccurs="0"/>
96
- </xsd:sequence>
97
- </xsd:complexType>
98
- <xsd:complexType name="ArrayOfListrakRemarketingConfigurableAttributeEntity">
99
- <xsd:sequence>
100
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingConfigurableAttributeEntity" />
101
- </xsd:sequence>
102
- </xsd:complexType>
103
- <xsd:complexType name="ListrakRemarketingProductEntity">
104
- <xsd:sequence>
105
- <xsd:element name="entity_id" type="xsd:string" minOccurs="0"/>
106
- <xsd:element name="sku" type="xsd:string" minOccurs="0"/>
107
- <xsd:element name="name" type="xsd:string" minOccurs="0"/>
108
- <xsd:element name="price" type="xsd:string" minOccurs="0"/>
109
- <xsd:element name="special_price" type="xsd:string" minOccurs="0"/>
110
- <xsd:element name="special_from_date" type="xsd:string" minOccurs="0"/>
111
- <xsd:element name="special_to_date" type="xsd:string" minOccurs="0"/>
112
- <xsd:element name="cost" type="xsd:string" minOccurs="0"/>
113
- <xsd:element name="description" type="xsd:string" minOccurs="0"/>
114
- <xsd:element name="short_description" type="xsd:string" minOccurs="0"/>
115
- <xsd:element name="weight" type="xsd:string" minOccurs="0"/>
116
- <xsd:element name="url_key" type="xsd:string" minOccurs="0"/>
117
- <xsd:element name="url_path" type="xsd:string" minOccurs="0"/>
118
- <xsd:element name="image" type="xsd:string" minOccurs="0"/>
119
- <xsd:element name="small_image" type="xsd:string" minOccurs="0"/>
120
- <xsd:element name="thumbnail" type="xsd:string" minOccurs="0"/>
121
- <xsd:element name="qty" type="xsd:string" minOccurs="0"/>
122
- <xsd:element name="parent_id" type="xsd:string" minOccurs="0"/>
123
- <xsd:element name="parent_sku" type="xsd:string" minOccurs="0"/>
124
- <xsd:element name="brand" type="xsd:string" minOccurs="0"/>
125
- <xsd:element name="category" type="xsd:string" minOccurs="0"/>
126
- <xsd:element name="sub_category" type="xsd:string" minOccurs="0"/>
127
- <xsd:element name="in_stock" type="xsd:string" minOccurs="0"/>
128
- <xsd:element name="qty_on_hand" type="xsd:string" minOccurs="0"/>
129
- <xsd:element name="type" type="xsd:string" minOccurs="0"/>
130
- <xsd:element name="configurable_attributes" type="typens:ArrayOfListrakRemarketingConfigurableAttributeEntity" minOccurs="0"/>
131
- </xsd:sequence>
132
- </xsd:complexType>
133
- <xsd:complexType name="ArrayOfListrakRemarketingProduct">
134
- <xsd:sequence>
135
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingProductEntity" />
136
- </xsd:sequence>
137
- </xsd:complexType>
 
 
 
 
 
 
 
 
 
 
 
 
 
138
 
139
- <!-- click -->
140
- <xsd:complexType name="ListrakRemarketingClickEntity">
141
- <xsd:sequence>
142
- <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
143
- <xsd:element name="customer_id" type="xsd:string" minOccurs="0"/>
144
- <xsd:element name="customer_email" type="xsd:string" minOccurs="0"/>
145
- <xsd:element name="querystring" type="xsd:string" minOccurs="0"/>
146
- <xsd:element name="click_date" type="xsd:string" minOccurs="0"/>
147
- <xsd:element name="token_uid" type="xsd:string" minOccurs="0"/>
148
- <xsd:element name="session_uid" type="xsd:string" minOccurs="0"/>
149
- <xsd:element name="pi_id" type="xsd:string" minOccurs="0"/>
150
- </xsd:sequence>
151
- </xsd:complexType>
152
- <xsd:complexType name="ArrayOfListrakRemarketingClick">
153
- <xsd:sequence>
154
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingClickEntity" />
155
- </xsd:sequence>
156
- </xsd:complexType>
 
 
 
157
 
158
- <!-- log -->
159
- <xsd:complexType name="ListrakRemarketingLogEntity">
160
- <xsd:sequence>
161
- <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
162
- <xsd:element name="message" type="xsd:string" minOccurs="0"/>
163
- <xsd:element name="date_entered" type="xsd:string" minOccurs="0"/>
164
- <xsd:element name="log_type_id" type="xsd:string" minOccurs="0"/>
165
- </xsd:sequence>
166
- </xsd:complexType>
167
- <xsd:complexType name="ArrayOfListrakRemarketingLog">
168
- <xsd:sequence>
169
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingLogEntity" />
170
- </xsd:sequence>
171
- </xsd:complexType>
 
 
 
172
 
173
- <!-- order -->
174
- <xsd:complexType name="ListrakRemarketingOrderEntity">
175
- <xsd:sequence>
176
- <xsd:element name="info" type="typens:ListrakRemarketingOrderInfoEntity" minOccurs="0"/>
177
- <xsd:element name="billing_address" type="typens:ListrakRemarketingOrderAddressEntity" minOccurs="0"/>
178
- <xsd:element name="shipping_address" type="typens:ListrakRemarketingOrderAddressEntity" minOccurs="0"/>
179
- <xsd:element name="product" type="typens:ArrayOfListrakRemarketingProductShort" minOccurs="0"/>
180
- <xsd:element name="session" type="typens:ListrakRemarketingSessionEntity" minOccurs="0"/>
181
- <xsd:element name="customer" type="typens:ListrakRemarketingCustomerEntity" minOccurs="0"/>
182
- </xsd:sequence>
183
- </xsd:complexType>
184
- <xsd:complexType name="ArrayOfListrakRemarketingOrder">
185
- <xsd:sequence>
186
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingOrderEntity" />
187
- </xsd:sequence>
188
- </xsd:complexType>
189
- <xsd:complexType name="ListrakRemarketingOrderInfoEntity">
190
- <xsd:sequence>
191
- <xsd:element name="entity_id" type="xsd:string" minOccurs="0"/>
192
- <xsd:element name="order_id" type="xsd:string" minOccurs="0"/>
193
- <xsd:element name="status" type="xsd:string" minOccurs="0" />
194
- <xsd:element name="customer_firstname" type="xsd:string" minOccurs="0"/>
195
- <xsd:element name="customer_lastname" type="xsd:string" minOccurs="0"/>
196
- <xsd:element name="customer_email" type="xsd:string" minOccurs="0"/>
197
- <xsd:element name="subtotal" type="xsd:string" minOccurs="0"/>
198
- <xsd:element name="tax_amount" type="xsd:string" minOccurs="0"/>
199
- <xsd:element name="shipping_amount" type="xsd:string" minOccurs="0"/>
200
- <xsd:element name="grand_total" type="xsd:string" minOccurs="0"/>
201
- <xsd:element name="billing_firstname" type="xsd:string" minOccurs="0"/>
202
- <xsd:element name="created_at" type="xsd:string" minOccurs="0"/>
203
- <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
204
- </xsd:sequence>
205
- </xsd:complexType>
206
- <xsd:complexType name="ListrakRemarketingOrderAddressEntity">
207
- <xsd:sequence>
208
- <xsd:element name="firstname" type="xsd:string" minOccurs="0"/>
209
- <xsd:element name="lastname" type="xsd:string" minOccurs="0"/>
210
- <xsd:element name="company" type="xsd:string" minOccurs="0"/>
211
- <xsd:element name="street" type="xsd:string" minOccurs="0"/>
212
- <xsd:element name="city" type="xsd:string" minOccurs="0"/>
213
- <xsd:element name="region" type="xsd:string" minOccurs="0"/>
214
- <xsd:element name="postcode" type="xsd:string" minOccurs="0"/>
215
- <xsd:element name="country" type="xsd:string" minOccurs="0"/>
216
- </xsd:sequence>
217
- </xsd:complexType>
218
- <xsd:complexType name="ListrakRemarketingProductShortEntity">
219
- <xsd:sequence>
220
- <xsd:element name="sku" type="xsd:string" minOccurs="0"/>
221
- <xsd:element name="name" type="xsd:string" minOccurs="0"/>
222
- <xsd:element name="price" type="xsd:string" minOccurs="0"/>
223
- <xsd:element name="qty_ordered" type="xsd:string" minOccurs="0"/>
224
- <xsd:element name="product_price" type="xsd:string" minOccurs="0"/>
225
- <xsd:element name="bundle_items" type="typens:ArrayOfListrakRemarketingProductShort" minOccurs="0"/>
226
- </xsd:sequence>
227
- </xsd:complexType>
228
- <xsd:complexType name="ArrayOfListrakRemarketingProductShort">
229
- <xsd:sequence>
230
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingProductShortEntity" />
231
- </xsd:sequence>
232
- </xsd:complexType>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
 
234
- <!-- order status -->
235
- <xsd:complexType name="ListrakRemarketingOrderStatusEntity">
236
- <xsd:sequence>
237
- <xsd:element name="increment_id" type="xsd:string" minOccurs="0"/>
238
- <xsd:element name="status" type="xsd:string" minOccurs="0" />
239
- <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
240
- </xsd:sequence>
241
- </xsd:complexType>
242
- <xsd:complexType name="ArrayOfListrakRemarketingOrderStatus">
243
- <xsd:sequence>
244
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingOrderStatusEntity" />
245
- </xsd:sequence>
246
- </xsd:complexType>
 
 
 
247
 
248
- <!-- customer -->
249
- <xsd:complexType name="ListrakRemarketingCustomerEntity">
250
- <xsd:sequence>
251
- <xsd:element name="entity_id" type="xsd:string" minOccurs="0"/>
252
- <xsd:element name="firstname" type="xsd:string" minOccurs="0"/>
253
- <xsd:element name="lastname" type="xsd:string" minOccurs="0"/>
254
- <xsd:element name="email" type="xsd:string" minOccurs="0"/>
255
- <xsd:element name="website_id" type="xsd:string" minOccurs="0"/>
256
- <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
257
- <xsd:element name="gender_name" type="xsd:string" minOccurs="0"/>
258
- <xsd:element name="dob" type="xsd:string" minOccurs="0"/>
259
- <xsd:element name="group_name" type="xsd:string" minOccurs="0"/>
260
- </xsd:sequence>
261
- </xsd:complexType>
262
- <xsd:complexType name="ArrayOfListrakRemarketingCustomer">
263
- <xsd:sequence>
264
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingCustomerEntity" />
265
- </xsd:sequence>
266
- </xsd:complexType>
 
 
267
 
268
- <!-- subscriber -->
269
- <xsd:complexType name="ListrakRemarketingSubscriberEntity">
270
- <xsd:sequence>
271
- <xsd:element name="subscriber_id" type="xsd:string" minOccurs="0"/>
272
- <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
273
- <xsd:element name="customer_id" type="xsd:string" minOccurs="0"/>
274
- <xsd:element name="change_status_at" type="xsd:string" minOccurs="0"/>
275
- <xsd:element name="subscriber_email" type="xsd:string" minOccurs="0"/>
276
- <xsd:element name="subscriber_status" type="xsd:string" minOccurs="0"/>
277
- <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
278
- </xsd:sequence>
279
- </xsd:complexType>
280
- <xsd:complexType name="ArrayOfListrakRemarketingSubscriber">
281
- <xsd:sequence>
282
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingSubscriberEntity" />
283
- </xsd:sequence>
284
- </xsd:complexType>
 
 
 
 
 
 
285
 
286
- <xsd:complexType name="ListrakRemarketingInfoEntity">
287
- <xsd:sequence>
288
- <xsd:element name="magentoVersion" type="xsd:string" minOccurs="0"/>
289
- <xsd:element name="listrakSettings" type="typens:ListrakRemarketingSettingEntity" minOccurs="0"/>
290
- <xsd:element name="modules" type="typens:ArrayOfString" minOccurs="0"/>
291
- <xsd:element name="ini" type="typens:ArrayOfString" minOccurs="0"/>
292
- <xsd:element name="classes" type="xsd:string" minOccurs="0"/>
293
- <xsd:element name="counts" type="xsd:string" minOccurs="0"/>
294
- </xsd:sequence>
295
- </xsd:complexType>
296
- <xsd:complexType name="ListrakRemarketingSettingEntity">
297
- <xsd:sequence>
298
- <xsd:element name="coreEnabled" type="xsd:string" minOccurs="0"/>
299
- <xsd:element name="reviewsApiEnabled" type="xsd:string" minOccurs="0"/>
300
- </xsd:sequence>
301
- </xsd:complexType>
 
 
 
 
 
 
302
 
303
- <!-- review list / review update list -->
304
- <xsd:complexType name="ListrakRemarketingReviewListResult">
305
- <xsd:sequence>
306
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingReviewListItem" />
307
- </xsd:sequence>
308
- </xsd:complexType>
309
- <xsd:complexType name="ListrakRemarketingReviewListItem">
310
- <xsd:sequence>
311
- <xsd:element name="update_id" type="xsd:string" minOccurs="0"/>
312
- <xsd:element name="review_id" type="xsd:string" minOccurs="0"/>
313
- <xsd:element name="product_id" type="xsd:string" minOccurs="0"/>
314
- <xsd:element name="title" type="xsd:string" minOccurs="0"/>
315
- <xsd:element name="text" type="xsd:string" minOccurs="0"/>
316
- <xsd:element name="overall_rating" type="xsd:string" minOccurs="0"/>
317
- <xsd:element name="created_at" type="xsd:string" minOccurs="0"/>
318
- <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
319
- <xsd:element name="reviewer_name" type="xsd:string" minOccurs="0"/>
320
- <xsd:element name="email" type="xsd:string" minOccurs="0"/>
321
- <xsd:element name="status_id" type="xsd:string" minOccurs="0"/>
322
- <xsd:element name="status_code" type="xsd:string" minOccurs="0"/>
323
- <xsd:element name="ratings" type="typens:ArrayOfListrakRemarketingReviewRating" minOccurs="0"/>
324
- </xsd:sequence>
325
- </xsd:complexType>
326
- <xsd:complexType name="ArrayOfListrakRemarketingReviewRating">
327
- <xsd:sequence>
328
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingReviewRatingItem" />
329
- </xsd:sequence>
330
- </xsd:complexType>
331
- <xsd:complexType name="ListrakRemarketingReviewRatingItem">
332
- <xsd:sequence>
333
- <xsd:element name="rating_id" type="xsd:string" minOccurs="0"/>
334
- <xsd:element name="rating_code" type="xsd:string" minOccurs="0"/>
335
- <xsd:element name="rating" type="xsd:string" minOccurs="0"/>
336
- </xsd:sequence>
337
- </xsd:complexType>
 
 
 
 
 
 
 
 
338
 
339
- <!-- rating summary list / rating summary update list -->
340
- <xsd:complexType name="ListrakRemarketingRatingSummaryListResult">
341
- <xsd:sequence>
342
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingRatingSummaryItem" />
343
- </xsd:sequence>
344
- </xsd:complexType>
345
- <xsd:complexType name="ListrakRemarketingRatingSummaryItem">
346
- <xsd:sequence>
347
- <xsd:element name="update_id" type="xsd:string" minOccurs="0"/>
348
- <xsd:element name="rating_summary_id" type="xsd:string" minOccurs="0"/>
349
- <xsd:element name="product_id" type="xsd:string" minOccurs="0"/>
350
- <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
351
- <xsd:element name="total_reviews" type="xsd:string" minOccurs="0"/>
352
- <xsd:element name="rating" type="xsd:string" minOccurs="0"/>
353
- <xsd:element name="ratings" type="typens:ArrayOfListrakRemarketingRatingSummaryAttribute" minOccurs="0"/>
354
- </xsd:sequence>
355
- </xsd:complexType>
356
- <xsd:complexType name="ArrayOfListrakRemarketingRatingSummaryAttribute">
357
- <xsd:sequence>
358
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingRatingSummaryAttributeItem" />
359
- </xsd:sequence>
360
- </xsd:complexType>
361
- <xsd:complexType name="ListrakRemarketingRatingSummaryAttributeItem">
362
- <xsd:sequence>
363
- <xsd:element name="rating_id" type="xsd:string" minOccurs="0"/>
364
- <xsd:element name="rating_code" type="xsd:string" minOccurs="0"/>
365
- <xsd:element name="rating" type="xsd:string" minOccurs="0"/>
366
- </xsd:sequence>
367
- </xsd:complexType>
 
 
 
 
 
 
 
 
368
 
369
- <!-- review delete list -->
370
- <xsd:complexType name="ListrakRemarketingReviewDeleteListResult">
371
- <xsd:sequence>
372
- <xsd:element minOccurs="0" maxOccurs="unbounded" name="complexObjectArray" type="typens:ListrakRemarketingDeletedReview" />
373
- </xsd:sequence>
374
- </xsd:complexType>
375
- <xsd:complexType name="ListrakRemarketingDeletedReview">
376
- <xsd:sequence>
377
- <xsd:element name="delete_id" type="xsd:string" minOccurs="0"/>
378
- <xsd:element name="review_id" type="xsd:string" minOccurs="0"/>
379
- </xsd:sequence>
380
- </xsd:complexType>
 
 
381
 
382
- <!-- review update purge -->
383
- <xsd:complexType name="ListrakRemarketingReviewUpdatePurgeResult">
384
- <xsd:sequence>
385
- <xsd:element name="count" type="xsd:string" minOccurs="0"/>
386
- <xsd:element name="before" type="xsd:string" minOccurs="0"/>
387
- </xsd:sequence>
388
- </xsd:complexType>
389
 
390
- <!-- message parameters -->
391
- <xsd:element name="listrakRemarketingAbandonedCartListRequestParam">
392
- <xsd:complexType>
393
- <xsd:sequence>
394
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
395
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
396
- <xsd:element minOccurs="1" maxOccurs="1" name="startDate" type="xsd:string" />
397
- <xsd:element minOccurs="1" maxOccurs="1" name="endDate" type="xsd:string" />
398
- <xsd:element minOccurs="1" maxOccurs="1" name="perPage" type="xsd:int" />
399
- <xsd:element minOccurs="1" maxOccurs="1" name="page" type="xsd:int" />
400
- </xsd:sequence>
401
- </xsd:complexType>
402
- </xsd:element>
403
- <xsd:element name="listrakRemarketingAbandonedCartListResponseParam">
404
- <xsd:complexType>
405
- <xsd:sequence>
406
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ArrayOfListrakRemarketingAbandonedCart" />
407
- </xsd:sequence>
408
- </xsd:complexType>
409
- </xsd:element>
410
- <xsd:element name="listrakRemarketingAbandonedCartPurgeRequestParam">
411
- <xsd:complexType>
412
- <xsd:sequence>
413
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
414
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
415
- <xsd:element minOccurs="1" maxOccurs="1" name="endDate" type="xsd:string" />
416
- </xsd:sequence>
417
- </xsd:complexType>
418
- </xsd:element>
419
- <xsd:element name="listrakRemarketingAbandonedCartPurgeResponseParam">
420
- <xsd:complexType>
421
- <xsd:sequence>
422
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="xsd:string" />
423
- </xsd:sequence>
424
- </xsd:complexType>
425
- </xsd:element>
426
- <xsd:element name="listrakRemarketingClickListRequestParam">
427
- <xsd:complexType>
428
- <xsd:sequence>
429
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
430
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
431
- <xsd:element minOccurs="1" maxOccurs="1" name="startDate" type="xsd:string" />
432
- <xsd:element minOccurs="1" maxOccurs="1" name="endDate" type="xsd:string" />
433
- <xsd:element minOccurs="1" maxOccurs="1" name="perPage" type="xsd:int" />
434
- <xsd:element minOccurs="1" maxOccurs="1" name="page" type="xsd:int" />
435
- </xsd:sequence>
436
- </xsd:complexType>
437
- </xsd:element>
438
- <xsd:element name="listrakRemarketingClickListResponseParam">
439
- <xsd:complexType>
440
- <xsd:sequence>
441
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ArrayOfListrakRemarketingClick" />
442
- </xsd:sequence>
443
- </xsd:complexType>
444
- </xsd:element>
445
- <xsd:element name="listrakRemarketingClickPurgeRequestParam">
446
- <xsd:complexType>
447
- <xsd:sequence>
448
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
449
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
450
- <xsd:element minOccurs="1" maxOccurs="1" name="endDate" type="xsd:string" />
451
- </xsd:sequence>
452
- </xsd:complexType>
453
- </xsd:element>
454
- <xsd:element name="listrakRemarketingClickPurgeResponseParam">
455
- <xsd:complexType>
456
- <xsd:sequence>
457
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="xsd:string" />
458
- </xsd:sequence>
459
- </xsd:complexType>
460
- </xsd:element>
461
- <xsd:element name="listrakRemarketingLogListRequestParam">
462
- <xsd:complexType>
463
- <xsd:sequence>
464
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
465
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
466
- <xsd:element minOccurs="1" maxOccurs="1" name="startDate" type="xsd:string" />
467
- <xsd:element minOccurs="1" maxOccurs="1" name="endDate" type="xsd:string" />
468
- <xsd:element minOccurs="1" maxOccurs="1" name="perPage" type="xsd:int" />
469
- <xsd:element minOccurs="1" maxOccurs="1" name="page" type="xsd:int" />
470
- <xsd:element minOccurs="1" maxOccurs="1" name="logTypeId" type="xsd:string" />
471
- </xsd:sequence>
472
- </xsd:complexType>
473
- </xsd:element>
474
- <xsd:element name="listrakRemarketingLogListResponseParam">
475
- <xsd:complexType>
476
- <xsd:sequence>
477
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ArrayOfListrakRemarketingLog" />
478
- </xsd:sequence>
479
- </xsd:complexType>
480
- </xsd:element>
481
- <xsd:element name="listrakRemarketingLogPurgeRequestParam">
482
- <xsd:complexType>
483
- <xsd:sequence>
484
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
485
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
486
- <xsd:element minOccurs="1" maxOccurs="1" name="endDate" type="xsd:string" />
487
- </xsd:sequence>
488
- </xsd:complexType>
489
- </xsd:element>
490
- <xsd:element name="listrakRemarketingLogPurgeResponseParam">
491
- <xsd:complexType>
492
- <xsd:sequence>
493
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="xsd:string" />
494
- </xsd:sequence>
495
- </xsd:complexType>
496
- </xsd:element>
497
- <xsd:element name="listrakRemarketingLogToggleRequestParam">
498
- <xsd:complexType>
499
- <xsd:sequence>
500
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
501
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
502
- <xsd:element minOccurs="1" maxOccurs="1" name="onOff" type="xsd:string" />
503
- </xsd:sequence>
504
- </xsd:complexType>
505
- </xsd:element>
506
- <xsd:element name="listrakRemarketingLogToggleResponseParam">
507
- <xsd:complexType>
508
- <xsd:sequence>
509
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="xsd:string" />
510
- </xsd:sequence>
511
- </xsd:complexType>
512
- </xsd:element>
513
- <xsd:element name="listrakRemarketingOrderListRequestParam">
514
- <xsd:complexType>
515
- <xsd:sequence>
516
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
517
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
518
- <xsd:element minOccurs="1" maxOccurs="1" name="startDate" type="xsd:string" />
519
- <xsd:element minOccurs="1" maxOccurs="1" name="endDate" type="xsd:string" />
520
- <xsd:element minOccurs="1" maxOccurs="1" name="perPage" type="xsd:int" />
521
- <xsd:element minOccurs="1" maxOccurs="1" name="page" type="xsd:int" />
522
- </xsd:sequence>
523
- </xsd:complexType>
524
- </xsd:element>
525
- <xsd:element name="listrakRemarketingOrderListResponseParam">
526
- <xsd:complexType>
527
- <xsd:sequence>
528
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ArrayOfListrakRemarketingOrder" />
529
- </xsd:sequence>
530
- </xsd:complexType>
531
- </xsd:element>
532
- <xsd:element name="listrakRemarketingOrderStatusListRequestParam">
533
- <xsd:complexType>
534
- <xsd:sequence>
535
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
536
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
537
- <xsd:element minOccurs="1" maxOccurs="1" name="startDate" type="xsd:string" />
538
- <xsd:element minOccurs="1" maxOccurs="1" name="endDate" type="xsd:string" />
539
- <xsd:element minOccurs="1" maxOccurs="1" name="perPage" type="xsd:int" />
540
- <xsd:element minOccurs="1" maxOccurs="1" name="page" type="xsd:int" />
541
- <xsd:element minOccurs="1" maxOccurs="1" name="filters" type="typens:filters" />
542
- </xsd:sequence>
543
- </xsd:complexType>
544
- </xsd:element>
545
- <xsd:element name="listrakRemarketingOrderStatusListResponseParam">
546
- <xsd:complexType>
547
- <xsd:sequence>
548
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ArrayOfListrakRemarketingOrderStatus" />
549
- </xsd:sequence>
550
- </xsd:complexType>
551
- </xsd:element>
552
- <xsd:element name="listrakRemarketingProductListRequestParam">
553
- <xsd:complexType>
554
- <xsd:sequence>
555
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
556
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
557
- <xsd:element minOccurs="1" maxOccurs="1" name="perPage" type="xsd:int" />
558
- <xsd:element minOccurs="1" maxOccurs="1" name="page" type="xsd:int" />
559
- </xsd:sequence>
560
- </xsd:complexType>
561
- </xsd:element>
562
- <xsd:element name="listrakRemarketingProductListResponseParam">
563
- <xsd:complexType>
564
- <xsd:sequence>
565
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ArrayOfListrakRemarketingProduct" />
566
- </xsd:sequence>
567
- </xsd:complexType>
568
- </xsd:element>
569
- <xsd:element name="listrakRemarketingSubscriberListRequestParam">
570
- <xsd:complexType>
571
- <xsd:sequence>
572
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
573
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
574
- <xsd:element minOccurs="1" maxOccurs="1" name="startDate" type="xsd:string" />
575
- <xsd:element minOccurs="1" maxOccurs="1" name="perPage" type="xsd:int" />
576
- <xsd:element minOccurs="1" maxOccurs="1" name="page" type="xsd:int" />
577
- </xsd:sequence>
578
- </xsd:complexType>
579
- </xsd:element>
580
- <xsd:element name="listrakRemarketingSubscriberListResponseParam">
581
- <xsd:complexType>
582
- <xsd:sequence>
583
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ArrayOfListrakRemarketingSubscriber" />
584
- </xsd:sequence>
585
- </xsd:complexType>
586
- </xsd:element>
587
- <xsd:element name="listrakRemarketingSubscriberPurgeRequestParam">
588
- <xsd:complexType>
589
- <xsd:sequence>
590
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
591
- <xsd:element minOccurs="1" maxOccurs="1" name="endDate" type="xsd:string" />
592
- </xsd:sequence>
593
- </xsd:complexType>
594
- </xsd:element>
595
- <xsd:element name="listrakRemarketingSubscriberPurgeResponseParam">
596
- <xsd:complexType>
597
- <xsd:sequence>
598
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="xsd:string" />
599
- </xsd:sequence>
600
- </xsd:complexType>
601
- </xsd:element>
602
- <xsd:element name="listrakRemarketingCustomerListRequestParam">
603
- <xsd:complexType>
604
- <xsd:sequence>
605
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
606
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
607
- <xsd:element minOccurs="1" maxOccurs="1" name="websiteId" type="xsd:int" />
608
- <xsd:element minOccurs="1" maxOccurs="1" name="perPage" type="xsd:int" />
609
- <xsd:element minOccurs="1" maxOccurs="1" name="page" type="xsd:int" />
610
- </xsd:sequence>
611
- </xsd:complexType>
612
- </xsd:element>
613
- <xsd:element name="listrakRemarketingCustomerListResponseParam">
614
- <xsd:complexType>
615
- <xsd:sequence>
616
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ArrayOfListrakRemarketingCustomer" />
617
- </xsd:sequence>
618
- </xsd:complexType>
619
- </xsd:element>
620
- <xsd:element name="listrakRemarketingInfoListRequestParam">
621
- <xsd:complexType>
622
- <xsd:sequence>
623
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
624
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
625
- </xsd:sequence>
626
- </xsd:complexType>
627
- </xsd:element>
628
- <xsd:element name="listrakRemarketingInfoListResponseParam">
629
- <xsd:complexType>
630
- <xsd:sequence>
631
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ListrakRemarketingInfoEntity" />
632
- </xsd:sequence>
633
- </xsd:complexType>
634
- </xsd:element>
635
- <xsd:element name="listrakRemarketingReviewListRequestParam">
636
- <xsd:complexType>
637
- <xsd:sequence>
638
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
639
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
640
- <xsd:element minOccurs="1" maxOccurs="1" name="chunkSize" type="xsd:string" />
641
- <xsd:element minOccurs="1" maxOccurs="1" name="startReviewId" type="xsd:string" />
642
- </xsd:sequence>
643
- </xsd:complexType>
644
- </xsd:element>
645
- <xsd:element name="listrakRemarketingReviewListResponseParam">
646
- <xsd:complexType>
647
- <xsd:sequence>
648
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ListrakRemarketingReviewListResult" />
649
- </xsd:sequence>
650
- </xsd:complexType>
651
- </xsd:element>
652
- <xsd:element name="listrakRemarketingRatingSummaryListRequestParam">
653
- <xsd:complexType>
654
- <xsd:sequence>
655
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
656
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
657
- <xsd:element minOccurs="1" maxOccurs="1" name="chunkSize" type="xsd:string" />
658
- <xsd:element minOccurs="1" maxOccurs="1" name="startRatingSummaryId" type="xsd:string" />
659
- </xsd:sequence>
660
- </xsd:complexType>
661
- </xsd:element>
662
- <xsd:element name="listrakRemarketingRatingSummaryListResponseParam">
663
- <xsd:complexType>
664
- <xsd:sequence>
665
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ListrakRemarketingRatingSummaryListResult" />
666
- </xsd:sequence>
667
- </xsd:complexType>
668
- </xsd:element>
669
- <xsd:element name="listrakRemarketingReviewUpdateListRequestParam">
670
- <xsd:complexType>
671
- <xsd:sequence>
672
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
673
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
674
- <xsd:element minOccurs="1" maxOccurs="1" name="chunkSize" type="xsd:string" />
675
- <xsd:element minOccurs="1" maxOccurs="1" name="startUpdateId" type="xsd:string" />
676
- </xsd:sequence>
677
- </xsd:complexType>
678
- </xsd:element>
679
- <xsd:element name="listrakRemarketingReviewUpdateListResponseParam">
680
- <xsd:complexType>
681
- <xsd:sequence>
682
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ListrakRemarketingReviewListResult" />
683
- </xsd:sequence>
684
- </xsd:complexType>
685
- </xsd:element>
686
- <xsd:element name="listrakRemarketingRatingSummaryUpdateListRequestParam">
687
- <xsd:complexType>
688
- <xsd:sequence>
689
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
690
- <xsd:element minOccurs="1" maxOccurs="1" name="storeId" type="xsd:string" />
691
- <xsd:element minOccurs="1" maxOccurs="1" name="chunkSize" type="xsd:string" />
692
- <xsd:element minOccurs="1" maxOccurs="1" name="startUpdateId" type="xsd:string" />
693
- </xsd:sequence>
694
- </xsd:complexType>
695
- </xsd:element>
696
- <xsd:element name="listrakRemarketingRatingSummaryUpdateListResponseParam">
697
- <xsd:complexType>
698
- <xsd:sequence>
699
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ListrakRemarketingRatingSummaryListResult" />
700
- </xsd:sequence>
701
- </xsd:complexType>
702
- </xsd:element>
703
- <xsd:element name="listrakRemarketingReviewDeleteListRequestParam">
704
- <xsd:complexType>
705
- <xsd:sequence>
706
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
707
- <xsd:element minOccurs="1" maxOccurs="1" name="chunkSize" type="xsd:string" />
708
- <xsd:element minOccurs="1" maxOccurs="1" name="startDeleteId" type="xsd:string" />
709
- </xsd:sequence>
710
- </xsd:complexType>
711
- </xsd:element>
712
- <xsd:element name="listrakRemarketingReviewDeleteListResponseParam">
713
- <xsd:complexType>
714
- <xsd:sequence>
715
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ListrakRemarketingReviewDeleteListResult" />
716
- </xsd:sequence>
717
- </xsd:complexType>
718
- </xsd:element>
719
- <xsd:element name="listrakRemarketingReviewUpdatePurgeRequestParam">
720
- <xsd:complexType>
721
- <xsd:sequence>
722
- <xsd:element minOccurs="1" maxOccurs="1" name="sessionId" type="xsd:string" />
723
- <xsd:element minOccurs="1" maxOccurs="1" name="purgeBeforeDays" type="xsd:string" />
724
- </xsd:sequence>
725
- </xsd:complexType>
726
- </xsd:element>
727
- <xsd:element name="listrakRemarketingReviewUpdatePurgeResponseParam">
728
- <xsd:complexType>
729
- <xsd:sequence>
730
- <xsd:element minOccurs="1" maxOccurs="1" name="result" type="typens:ListrakRemarketingReviewUpdatePurgeResult" />
731
- </xsd:sequence>
732
- </xsd:complexType>
733
- </xsd:element>
734
- </xsd:schema>
735
- </wsdl:types>
736
- <wsdl:message name="listrakRemarketingAbandonedCartListRequest">
737
- <wsdl:part name="parameters" element="typens:listrakRemarketingAbandonedCartListRequestParam" />
738
- </wsdl:message>
739
- <wsdl:message name="listrakRemarketingAbandonedCartListResponse">
740
- <wsdl:part name="parameters" element="typens:listrakRemarketingAbandonedCartListResponseParam" />
741
- </wsdl:message>
742
- <wsdl:message name="listrakRemarketingAbandonedCartPurgeRequest">
743
- <wsdl:part name="parameters" element="typens:listrakRemarketingAbandonedCartPurgeRequestParam" />
744
- </wsdl:message>
745
- <wsdl:message name="listrakRemarketingAbandonedCartPurgeResponse">
746
- <wsdl:part name="parameters" element="typens:listrakRemarketingAbandonedCartPurgeResponseParam" />
747
- </wsdl:message>
748
- <wsdl:message name="listrakRemarketingClickListRequest">
749
- <wsdl:part name="parameters" element="typens:listrakRemarketingClickListRequestParam" />
750
- </wsdl:message>
751
- <wsdl:message name="listrakRemarketingClickListResponse">
752
- <wsdl:part name="parameters" element="typens:listrakRemarketingClickListResponseParam" />
753
- </wsdl:message>
754
- <wsdl:message name="listrakRemarketingClickPurgeRequest">
755
- <wsdl:part name="parameters" element="typens:listrakRemarketingClickPurgeRequestParam" />
756
- </wsdl:message>
757
- <wsdl:message name="listrakRemarketingClickPurgeResponse">
758
- <wsdl:part name="parameters" element="typens:listrakRemarketingClickPurgeResponseParam" />
759
- </wsdl:message>
760
- <wsdl:message name="listrakRemarketingLogListRequest">
761
- <wsdl:part name="parameters" element="typens:listrakRemarketingLogListRequestParam" />
762
- </wsdl:message>
763
- <wsdl:message name="listrakRemarketingLogListResponse">
764
- <wsdl:part name="parameters" element="typens:listrakRemarketingLogListResponseParam" />
765
- </wsdl:message>
766
- <wsdl:message name="listrakRemarketingLogPurgeRequest">
767
- <wsdl:part name="parameters" element="typens:listrakRemarketingLogPurgeRequestParam" />
768
- </wsdl:message>
769
- <wsdl:message name="listrakRemarketingLogPurgeResponse">
770
- <wsdl:part name="parameters" element="typens:listrakRemarketingLogPurgeResponseParam" />
771
- </wsdl:message>
772
- <wsdl:message name="listrakRemarketingLogToggleRequest">
773
- <wsdl:part name="parameters" element="typens:listrakRemarketingLogToggleRequestParam" />
774
- </wsdl:message>
775
- <wsdl:message name="listrakRemarketingLogToggleResponse">
776
- <wsdl:part name="parameters" element="typens:listrakRemarketingLogToggleResponseParam" />
777
- </wsdl:message>
778
- <wsdl:message name="listrakRemarketingOrderListRequest">
779
- <wsdl:part name="parameters" element="typens:listrakRemarketingOrderListRequestParam" />
780
- </wsdl:message>
781
- <wsdl:message name="listrakRemarketingOrderListResponse">
782
- <wsdl:part name="parameters" element="typens:listrakRemarketingOrderListResponseParam" />
783
- </wsdl:message>
784
- <wsdl:message name="listrakRemarketingOrderStatusListRequest">
785
- <wsdl:part name="parameters" element="typens:listrakRemarketingOrderStatusListRequestParam" />
786
- </wsdl:message>
787
- <wsdl:message name="listrakRemarketingOrderStatusListResponse">
788
- <wsdl:part name="parameters" element="typens:listrakRemarketingOrderStatusListResponseParam" />
789
- </wsdl:message>
790
- <wsdl:message name="listrakRemarketingProductListRequest">
791
- <wsdl:part name="parameters" element="typens:listrakRemarketingProductListRequestParam" />
792
- </wsdl:message>
793
- <wsdl:message name="listrakRemarketingProductListResponse">
794
- <wsdl:part name="parameters" element="typens:listrakRemarketingProductListResponseParam" />
795
- </wsdl:message>
796
- <wsdl:message name="listrakRemarketingSubscriberListRequest">
797
- <wsdl:part name="parameters" element="typens:listrakRemarketingSubscriberListRequestParam" />
798
- </wsdl:message>
799
- <wsdl:message name="listrakRemarketingSubscriberListResponse">
800
- <wsdl:part name="parameters" element="typens:listrakRemarketingSubscriberListResponseParam" />
801
- </wsdl:message>
802
- <wsdl:message name="listrakRemarketingSubscriberPurgeRequest">
803
- <wsdl:part name="parameters" element="typens:listrakRemarketingSubscriberPurgeRequestParam" />
804
- </wsdl:message>
805
- <wsdl:message name="listrakRemarketingSubscriberPurgeResponse">
806
- <wsdl:part name="parameters" element="typens:listrakRemarketingSubscriberPurgeResponseParam" />
807
- </wsdl:message>
808
- <wsdl:message name="listrakRemarketingCustomerListRequest">
809
- <wsdl:part name="parameters" element="typens:listrakRemarketingCustomerListRequestParam" />
810
- </wsdl:message>
811
- <wsdl:message name="listrakRemarketingCustomerListResponse">
812
- <wsdl:part name="parameters" element="typens:listrakRemarketingCustomerListResponseParam" />
813
- </wsdl:message>
814
- <wsdl:message name="listrakRemarketingInfoListRequest">
815
- <wsdl:part name="parameters" element="typens:listrakRemarketingInfoListRequestParam" />
816
- </wsdl:message>
817
- <wsdl:message name="listrakRemarketingInfoListResponse">
818
- <wsdl:part name="parameters" element="typens:listrakRemarketingInfoListResponseParam" />
819
- </wsdl:message>
820
- <wsdl:message name="listrakRemarketingReviewListRequest">
821
- <wsdl:part name="parameters" element="typens:listrakRemarketingReviewListRequestParam" />
822
- </wsdl:message>
823
- <wsdl:message name="listrakRemarketingReviewListResponse">
824
- <wsdl:part name="parameters" element="typens:listrakRemarketingReviewListResponseParam" />
825
- </wsdl:message>
826
- <wsdl:message name="listrakRemarketingRatingSummaryListRequest">
827
- <wsdl:part name="parameters" element="typens:listrakRemarketingRatingSummaryListRequestParam" />
828
- </wsdl:message>
829
- <wsdl:message name="listrakRemarketingRatingSummaryListResponse">
830
- <wsdl:part name="parameters" element="typens:listrakRemarketingRatingSummaryListResponseParam" />
831
- </wsdl:message>
832
- <wsdl:message name="listrakRemarketingReviewUpdateListRequest">
833
- <wsdl:part name="parameters" element="typens:listrakRemarketingReviewUpdateListRequestParam" />
834
- </wsdl:message>
835
- <wsdl:message name="listrakRemarketingReviewUpdateListResponse">
836
- <wsdl:part name="parameters" element="typens:listrakRemarketingReviewUpdateListResponseParam" />
837
- </wsdl:message>
838
- <wsdl:message name="listrakRemarketingRatingSummaryUpdateListRequest">
839
- <wsdl:part name="parameters" element="typens:listrakRemarketingRatingSummaryUpdateListRequestParam" />
840
- </wsdl:message>
841
- <wsdl:message name="listrakRemarketingRatingSummaryUpdateListResponse">
842
- <wsdl:part name="parameters" element="typens:listrakRemarketingRatingSummaryUpdateListResponseParam" />
843
- </wsdl:message>
844
- <wsdl:message name="listrakRemarketingReviewDeleteListRequest">
845
- <wsdl:part name="parameters" element="typens:listrakRemarketingReviewDeleteListRequestParam" />
846
- </wsdl:message>
847
- <wsdl:message name="listrakRemarketingReviewDeleteListResponse">
848
- <wsdl:part name="parameters" element="typens:listrakRemarketingReviewDeleteListResponseParam" />
849
- </wsdl:message>
850
- <wsdl:message name="listrakRemarketingReviewUpdatePurgeRequest">
851
- <wsdl:part name="parameters" element="typens:listrakRemarketingReviewUpdatePurgeRequestParam" />
852
- </wsdl:message>
853
- <wsdl:message name="listrakRemarketingReviewUpdatePurgeResponse">
854
- <wsdl:part name="parameters" element="typens:listrakRemarketingReviewUpdatePurgeResponseParam" />
855
- </wsdl:message>
856
- <wsdl:portType name="{{var wsdl.handler}}PortType">
857
- <wsdl:operation name="listrakRemarketingAbandonedCartList">
858
- <wsdl:documentation>Get stores abandoned carts</wsdl:documentation>
859
- <wsdl:input message="typens:listrakRemarketingAbandonedCartListRequest" />
860
- <wsdl:output message="typens:listrakRemarketingAbandonedCartListResponse" />
861
- </wsdl:operation>
862
- <wsdl:operation name="listrakRemarketingAbandonedCartPurge">
863
- <wsdl:documentation>Purge abandoned carts</wsdl:documentation>
864
- <wsdl:input message="typens:listrakRemarketingAbandonedCartPurgeRequest" />
865
- <wsdl:output message="typens:listrakRemarketingAbandonedCartPurgeResponse" />
866
- </wsdl:operation>
867
- <wsdl:operation name="listrakRemarketingClickList">
868
- <wsdl:documentation>Get clicks</wsdl:documentation>
869
- <wsdl:input message="typens:listrakRemarketingClickListRequest" />
870
- <wsdl:output message="typens:listrakRemarketingClickListResponse" />
871
- </wsdl:operation>
872
- <wsdl:operation name="listrakRemarketingClickPurge">
873
- <wsdl:documentation>Purge clicks</wsdl:documentation>
874
- <wsdl:input message="typens:listrakRemarketingClickPurgeRequest" />
875
- <wsdl:output message="typens:listrakRemarketingClickPurgeResponse" />
876
- </wsdl:operation>
877
- <wsdl:operation name="listrakRemarketingLogList">
878
- <wsdl:documentation>Get log entries</wsdl:documentation>
879
- <wsdl:input message="typens:listrakRemarketingLogListRequest" />
880
- <wsdl:output message="typens:listrakRemarketingLogListResponse" />
881
- </wsdl:operation>
882
- <wsdl:operation name="listrakRemarketingLogPurge">
883
- <wsdl:documentation>Purge log entries</wsdl:documentation>
884
- <wsdl:input message="typens:listrakRemarketingLogPurgeRequest" />
885
- <wsdl:output message="typens:listrakRemarketingLogPurgeResponse" />
886
- </wsdl:operation>
887
- <wsdl:operation name="listrakRemarketingLogToggle">
888
- <wsdl:documentation>toggle logging</wsdl:documentation>
889
- <wsdl:input message="typens:listrakRemarketingLogToggleRequest" />
890
- <wsdl:output message="typens:listrakRemarketingLogToggleResponse" />
891
- </wsdl:operation>
892
- <wsdl:operation name="listrakRemarketingOrderList">
893
- <wsdl:documentation>Get orders</wsdl:documentation>
894
- <wsdl:input message="typens:listrakRemarketingOrderListRequest" />
895
- <wsdl:output message="typens:listrakRemarketingOrderListResponse" />
896
- </wsdl:operation>
897
- <wsdl:operation name="listrakRemarketingOrderStatusList">
898
- <wsdl:documentation>Get order status changes</wsdl:documentation>
899
- <wsdl:input message="typens:listrakRemarketingOrderStatusListRequest" />
900
- <wsdl:output message="typens:listrakRemarketingOrderStatusListResponse" />
901
- </wsdl:operation>
902
- <wsdl:operation name="listrakRemarketingProductList">
903
- <wsdl:documentation>Get products</wsdl:documentation>
904
- <wsdl:input message="typens:listrakRemarketingProductListRequest" />
905
- <wsdl:output message="typens:listrakRemarketingProductListResponse" />
906
- </wsdl:operation>
907
- <wsdl:operation name="listrakRemarketingSubscriberList">
908
- <wsdl:documentation>Get subscribers and unsubscribers</wsdl:documentation>
909
- <wsdl:input message="typens:listrakRemarketingSubscriberListRequest" />
910
- <wsdl:output message="typens:listrakRemarketingSubscriberListResponse" />
911
- </wsdl:operation>
912
- <wsdl:operation name="listrakRemarketingSubscriberPurge">
913
- <wsdl:documentation>Purge old subscriber updates</wsdl:documentation>
914
- <wsdl:input message="typens:listrakRemarketingSubscriberPurgeRequest" />
915
- <wsdl:output message="typens:listrakRemarketingSubscriberPurgeResponse" />
916
- </wsdl:operation>
917
- <wsdl:operation name="listrakRemarketingCustomerList">
918
- <wsdl:documentation>Get customers</wsdl:documentation>
919
- <wsdl:input message="typens:listrakRemarketingCustomerListRequest" />
920
- <wsdl:output message="typens:listrakRemarketingCustomerListResponse" />
921
- </wsdl:operation>
922
- <wsdl:operation name="listrakRemarketingInfoList">
923
- <wsdl:documentation>Get info</wsdl:documentation>
924
- <wsdl:input message="typens:listrakRemarketingInfoListRequest" />
925
- <wsdl:output message="typens:listrakRemarketingInfoListResponse" />
926
- </wsdl:operation>
927
- <wsdl:operation name="listrakRemarketingReviewList">
928
- <wsdl:documentation>Get review list</wsdl:documentation>
929
- <wsdl:input message="typens:listrakRemarketingReviewListRequest" />
930
- <wsdl:output message="typens:listrakRemarketingReviewListResponse" />
931
- </wsdl:operation>
932
- <wsdl:operation name="listrakRemarketingRatingSummaryList">
933
- <wsdl:documentation>Get rating summary list</wsdl:documentation>
934
- <wsdl:input message="typens:listrakRemarketingRatingSummaryListRequest" />
935
- <wsdl:output message="typens:listrakRemarketingRatingSummaryListResponse" />
936
- </wsdl:operation>
937
- <wsdl:operation name="listrakRemarketingReviewUpdateList">
938
- <wsdl:documentation>Get review list</wsdl:documentation>
939
- <wsdl:input message="typens:listrakRemarketingReviewUpdateListRequest" />
940
- <wsdl:output message="typens:listrakRemarketingReviewUpdateListResponse" />
941
- </wsdl:operation>
942
- <wsdl:operation name="listrakRemarketingRatingSummaryUpdateList">
943
- <wsdl:documentation>Get rating summary list</wsdl:documentation>
944
- <wsdl:input message="typens:listrakRemarketingRatingSummaryUpdateListRequest" />
945
- <wsdl:output message="typens:listrakRemarketingRatingSummaryUpdateListResponse" />
946
- </wsdl:operation>
947
- <wsdl:operation name="listrakRemarketingReviewDeleteList">
948
- <wsdl:documentation>Get deleted reviews list</wsdl:documentation>
949
- <wsdl:input message="typens:listrakRemarketingReviewDeleteListRequest" />
950
- <wsdl:output message="typens:listrakRemarketingReviewDeleteListResponse" />
951
- </wsdl:operation>
952
- <wsdl:operation name="listrakRemarketingReviewUpdatePurge">
953
- <wsdl:documentation>Get deleted reviews list</wsdl:documentation>
954
- <wsdl:input message="typens:listrakRemarketingReviewUpdatePurgeRequest" />
955
- <wsdl:output message="typens:listrakRemarketingReviewUpdatePurgeResponse" />
956
- </wsdl:operation>
957
- </wsdl:portType>
958
- <wsdl:binding name="{{var wsdl.handler}}Binding" type="typens:{{var wsdl.handler}}PortType">
959
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
960
- <wsdl:operation name="listrakRemarketingAbandonedCartList">
961
- <soap:operation soapAction="" />
962
- <wsdl:input>
963
- <soap:body use="literal" />
964
- </wsdl:input>
965
- <wsdl:output>
966
- <soap:body use="literal" />
967
- </wsdl:output>
968
- </wsdl:operation>
969
- <wsdl:operation name="listrakRemarketingAbandonedCartPurge">
970
- <soap:operation soapAction="" />
971
- <wsdl:input>
972
- <soap:body use="literal" />
973
- </wsdl:input>
974
- <wsdl:output>
975
- <soap:body use="literal" />
976
- </wsdl:output>
977
- </wsdl:operation>
978
- <wsdl:operation name="listrakRemarketingClickList">
979
- <soap:operation soapAction="" />
980
- <wsdl:input>
981
- <soap:body use="literal" />
982
- </wsdl:input>
983
- <wsdl:output>
984
- <soap:body use="literal" />
985
- </wsdl:output>
986
- </wsdl:operation>
987
- <wsdl:operation name="listrakRemarketingClickPurge">
988
- <soap:operation soapAction="" />
989
- <wsdl:input>
990
- <soap:body use="literal" />
991
- </wsdl:input>
992
- <wsdl:output>
993
- <soap:body use="literal" />
994
- </wsdl:output>
995
- </wsdl:operation>
996
- <wsdl:operation name="listrakRemarketingLogList">
997
- <soap:operation soapAction="" />
998
- <wsdl:input>
999
- <soap:body use="literal" />
1000
- </wsdl:input>
1001
- <wsdl:output>
1002
- <soap:body use="literal" />
1003
- </wsdl:output>
1004
- </wsdl:operation>
1005
- <wsdl:operation name="listrakRemarketingLogPurge">
1006
- <soap:operation soapAction="" />
1007
- <wsdl:input>
1008
- <soap:body use="literal" />
1009
- </wsdl:input>
1010
- <wsdl:output>
1011
- <soap:body use="literal" />
1012
- </wsdl:output>
1013
- </wsdl:operation>
1014
- <wsdl:operation name="listrakRemarketingLogToggle">
1015
- <soap:operation soapAction="" />
1016
- <wsdl:input>
1017
- <soap:body use="literal" />
1018
- </wsdl:input>
1019
- <wsdl:output>
1020
- <soap:body use="literal" />
1021
- </wsdl:output>
1022
- </wsdl:operation>
1023
- <wsdl:operation name="listrakRemarketingOrderList">
1024
- <soap:operation soapAction="" />
1025
- <wsdl:input>
1026
- <soap:body use="literal" />
1027
- </wsdl:input>
1028
- <wsdl:output>
1029
- <soap:body use="literal" />
1030
- </wsdl:output>
1031
- </wsdl:operation>
1032
- <wsdl:operation name="listrakRemarketingOrderStatusList">
1033
- <soap:operation soapAction="" />
1034
- <wsdl:input>
1035
- <soap:body use="literal" />
1036
- </wsdl:input>
1037
- <wsdl:output>
1038
- <soap:body use="literal" />
1039
- </wsdl:output>
1040
- </wsdl:operation>
1041
- <wsdl:operation name="listrakRemarketingProductList">
1042
- <soap:operation soapAction="" />
1043
- <wsdl:input>
1044
- <soap:body use="literal" />
1045
- </wsdl:input>
1046
- <wsdl:output>
1047
- <soap:body use="literal" />
1048
- </wsdl:output>
1049
- </wsdl:operation>
1050
- <wsdl:operation name="listrakRemarketingSubscriberList">
1051
- <soap:operation soapAction="" />
1052
- <wsdl:input>
1053
- <soap:body use="literal" />
1054
- </wsdl:input>
1055
- <wsdl:output>
1056
- <soap:body use="literal" />
1057
- </wsdl:output>
1058
- </wsdl:operation>
1059
- <wsdl:operation name="listrakRemarketingSubscriberPurge">
1060
- <soap:operation soapAction="" />
1061
- <wsdl:input>
1062
- <soap:body use="literal" />
1063
- </wsdl:input>
1064
- <wsdl:output>
1065
- <soap:body use="literal" />
1066
- </wsdl:output>
1067
- </wsdl:operation>
1068
- <wsdl:operation name="listrakRemarketingCustomerList">
1069
- <soap:operation soapAction="" />
1070
- <wsdl:input>
1071
- <soap:body use="literal" />
1072
- </wsdl:input>
1073
- <wsdl:output>
1074
- <soap:body use="literal" />
1075
- </wsdl:output>
1076
- </wsdl:operation>
1077
- <wsdl:operation name="listrakRemarketingInfoList">
1078
- <soap:operation soapAction="" />
1079
- <wsdl:input>
1080
- <soap:body use="literal" />
1081
- </wsdl:input>
1082
- <wsdl:output>
1083
- <soap:body use="literal" />
1084
- </wsdl:output>
1085
- </wsdl:operation>
1086
- <wsdl:operation name="listrakRemarketingReviewList">
1087
- <soap:operation soapAction="" />
1088
- <wsdl:input>
1089
- <soap:body use="literal" />
1090
- </wsdl:input>
1091
- <wsdl:output>
1092
- <soap:body use="literal" />
1093
- </wsdl:output>
1094
- </wsdl:operation>
1095
- <wsdl:operation name="listrakRemarketingRatingSummaryList">
1096
- <soap:operation soapAction="" />
1097
- <wsdl:input>
1098
- <soap:body use="literal" />
1099
- </wsdl:input>
1100
- <wsdl:output>
1101
- <soap:body use="literal" />
1102
- </wsdl:output>
1103
- </wsdl:operation>
1104
- <wsdl:operation name="listrakRemarketingReviewUpdateList">
1105
- <soap:operation soapAction="" />
1106
- <wsdl:input>
1107
- <soap:body use="literal" />
1108
- </wsdl:input>
1109
- <wsdl:output>
1110
- <soap:body use="literal" />
1111
- </wsdl:output>
1112
- </wsdl:operation>
1113
- <wsdl:operation name="listrakRemarketingRatingSummaryUpdateList">
1114
- <soap:operation soapAction="" />
1115
- <wsdl:input>
1116
- <soap:body use="literal" />
1117
- </wsdl:input>
1118
- <wsdl:output>
1119
- <soap:body use="literal" />
1120
- </wsdl:output>
1121
- </wsdl:operation>
1122
- <wsdl:operation name="listrakRemarketingReviewDeleteList">
1123
- <soap:operation soapAction="" />
1124
- <wsdl:input>
1125
- <soap:body use="literal" />
1126
- </wsdl:input>
1127
- <wsdl:output>
1128
- <soap:body use="literal" />
1129
- </wsdl:output>
1130
- </wsdl:operation>
1131
- <wsdl:operation name="listrakRemarketingReviewUpdatePurge">
1132
- <soap:operation soapAction="" />
1133
- <wsdl:input>
1134
- <soap:body use="literal" />
1135
- </wsdl:input>
1136
- <wsdl:output>
1137
- <soap:body use="literal" />
1138
- </wsdl:output>
1139
- </wsdl:operation>
1140
- </wsdl:binding>
1141
- <wsdl:service name="{{var wsdl.name}}Service">
1142
- <wsdl:port name="{{var wsdl.handler}}Port" binding="typens:{{var wsdl.handler}}Binding">
1143
- <soap:address location="{{var wsdl.url}}" />
1144
- </wsdl:port>
1145
- </wsdl:service>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1146
  </wsdl:definitions>
1
  <?xml version="1.0" encoding="UTF-8"?>
2
  <!--
3
  /**
4
+ * Listrak Remarketing Magento Extension Ver. 1.0.0 - Copyright (c) 2011 Listrak, Inc.
5
  */
6
  -->
7
  <wsdl:definitions xmlns:typens="urn:{{var wsdl.name}}"
8
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
9
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
10
+ xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
11
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
12
+ name="{{var wsdl.name}}"
13
+ targetNamespace="urn:{{var wsdl.name}}">
14
+ <wsdl:types>
15
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
16
+ targetNamespace="urn:{{var wsdl.name}}">
17
+ <xsd:complexType name="ArrayOfString">
18
+ <xsd:sequence>
19
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
20
+ name="complexObjectArray" type="xsd:string"/>
21
+ </xsd:sequence>
22
+ </xsd:complexType>
23
+ <!-- session -->
24
+ <xsd:complexType name="ListrakRemarketingSessionEntity">
25
+ <xsd:sequence>
26
+ <xsd:element name="session_id" type="xsd:string" minOccurs="0"/>
27
+ <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
28
+ <xsd:element name="created_at" type="xsd:string" minOccurs="0"/>
29
+ <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
30
+ <xsd:element name="quote_id" type="xsd:string" minOccurs="0"/>
31
+ <xsd:element name="ips" type="xsd:string" minOccurs="0"/>
32
+ <xsd:element name="pi_id" type="xsd:string" minOccurs="0"/>
33
+ <xsd:element name="customer"
34
+ type="typens:ListrakRemarketingCustomerEntity"
35
+ minOccurs="0"/>
36
+ <xsd:element name="emails"
37
+ type="typens:ArrayOfListrakRemarketingSessionEmail"
38
+ minOccurs="0"/>
39
+ <xsd:element name="clicks"
40
+ type="typens:ArrayOfListrakRemarketingClick"
41
+ minOccurs="0"/>
42
+ </xsd:sequence>
43
+ </xsd:complexType>
44
+ <xsd:complexType name="ListrakRemarketingSessionEmailEntity">
45
+ <xsd:sequence>
46
+ <xsd:element name="email" type="xsd:string" minOccurs="0"/>
47
+ <xsd:element name="created_at" type="xsd:string" minOccurs="0"/>
48
+ <xsd:element name="page" type="xsd:string" minOccurs="0"/>
49
+ <xsd:element name="field_id" type="xsd:string" minOccurs="0"/>
50
+ </xsd:sequence>
51
+ </xsd:complexType>
52
+ <xsd:complexType name="ArrayOfListrakRemarketingSessionEmail">
53
+ <xsd:sequence>
54
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
55
+ name="complexObjectArray"
56
+ type="typens:ListrakRemarketingSessionEmailEntity"/>
57
+ </xsd:sequence>
58
+ </xsd:complexType>
59
 
60
+ <!-- abandoned cart -->
61
+ <xsd:complexType name="ListrakRemarketingAbandonedCartEntity">
62
+ <xsd:sequence>
63
+ <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
64
+ <xsd:element name="session"
65
+ type="typens:ListrakRemarketingSessionEntity"
66
+ minOccurs="0"/>
67
+ <xsd:element name="products"
68
+ type="typens:ArrayOfListrakRemarketingAbandonedCartProduct"
69
+ minOccurs="0"/>
70
+ </xsd:sequence>
71
+ </xsd:complexType>
72
+ <xsd:complexType name="ArrayOfListrakRemarketingAbandonedCart">
73
+ <xsd:sequence>
74
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
75
+ name="complexObjectArray"
76
+ type="typens:ListrakRemarketingAbandonedCartEntity"/>
77
+ </xsd:sequence>
78
+ </xsd:complexType>
79
+ <xsd:complexType name="ListrakRemarketingAbandonedCartProductEntity">
80
+ <xsd:sequence>
81
+ <xsd:element name="entity_id" type="xsd:string" minOccurs="0"/>
82
+ <xsd:element name="sku" type="xsd:string" minOccurs="0"/>
83
+ <xsd:element name="name" type="xsd:string" minOccurs="0"/>
84
+ <xsd:element name="price" type="xsd:string" minOccurs="0"/>
85
+ <xsd:element name="special_price" type="xsd:string"
86
+ minOccurs="0"/>
87
+ <xsd:element name="special_from_date" type="xsd:string"
88
+ minOccurs="0"/>
89
+ <xsd:element name="special_to_date" type="xsd:string"
90
+ minOccurs="0"/>
91
+ <xsd:element name="cost" type="xsd:string" minOccurs="0"/>
92
+ <xsd:element name="description" type="xsd:string" minOccurs="0"/>
93
+ <xsd:element name="short_description" type="xsd:string"
94
+ minOccurs="0"/>
95
+ <xsd:element name="weight" type="xsd:string" minOccurs="0"/>
96
+ <xsd:element name="url_key" type="xsd:string" minOccurs="0"/>
97
+ <xsd:element name="url_path" type="xsd:string" minOccurs="0"/>
98
+ <xsd:element name="image" type="xsd:string" minOccurs="0"/>
99
+ <xsd:element name="small_image" type="xsd:string" minOccurs="0"/>
100
+ <xsd:element name="thumbnail" type="xsd:string" minOccurs="0"/>
101
+ <xsd:element name="qty" type="xsd:string" minOccurs="0"/>
102
+ <xsd:element name="bundle_items"
103
+ type="typens:ArrayOfListrakRemarketingAbandonedCartProduct"
104
+ minOccurs="0"/>
105
+ </xsd:sequence>
106
+ </xsd:complexType>
107
+ <xsd:complexType name="ArrayOfListrakRemarketingAbandonedCartProduct">
108
+ <xsd:sequence>
109
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
110
+ name="complexObjectArray"
111
+ type="typens:ListrakRemarketingAbandonedCartProductEntity"/>
112
+ </xsd:sequence>
113
+ </xsd:complexType>
114
 
115
+ <!-- product -->
116
+ <xsd:complexType name="ListrakRemarketingConfigurableAttributeEntity">
117
+ <xsd:sequence>
118
+ <xsd:element name="attribute_name" type="xsd:string"
119
+ minOccurs="0"/>
120
+ <xsd:element name="value" type="xsd:string" minOccurs="0"/>
121
+ </xsd:sequence>
122
+ </xsd:complexType>
123
+ <xsd:complexType
124
+ name="ArrayOfListrakRemarketingConfigurableAttributeEntity">
125
+ <xsd:sequence>
126
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
127
+ name="complexObjectArray"
128
+ type="typens:ListrakRemarketingConfigurableAttributeEntity"/>
129
+ </xsd:sequence>
130
+ </xsd:complexType>
131
+ <xsd:complexType name="ListrakRemarketingProductEntity">
132
+ <xsd:sequence>
133
+ <xsd:element name="entity_id" type="xsd:string" minOccurs="0"/>
134
+ <xsd:element name="sku" type="xsd:string" minOccurs="0"/>
135
+ <xsd:element name="name" type="xsd:string" minOccurs="0"/>
136
+ <xsd:element name="price" type="xsd:string" minOccurs="0"/>
137
+ <xsd:element name="special_price" type="xsd:string"
138
+ minOccurs="0"/>
139
+ <xsd:element name="special_from_date" type="xsd:string"
140
+ minOccurs="0"/>
141
+ <xsd:element name="special_to_date" type="xsd:string"
142
+ minOccurs="0"/>
143
+ <xsd:element name="cost" type="xsd:string" minOccurs="0"/>
144
+ <xsd:element name="description" type="xsd:string" minOccurs="0"/>
145
+ <xsd:element name="short_description" type="xsd:string"
146
+ minOccurs="0"/>
147
+ <xsd:element name="weight" type="xsd:string" minOccurs="0"/>
148
+ <xsd:element name="url_key" type="xsd:string" minOccurs="0"/>
149
+ <xsd:element name="url_path" type="xsd:string" minOccurs="0"/>
150
+ <xsd:element name="image" type="xsd:string" minOccurs="0"/>
151
+ <xsd:element name="small_image" type="xsd:string" minOccurs="0"/>
152
+ <xsd:element name="thumbnail" type="xsd:string" minOccurs="0"/>
153
+ <xsd:element name="qty" type="xsd:string" minOccurs="0"/>
154
+ <xsd:element name="parent_id" type="xsd:string" minOccurs="0"/>
155
+ <xsd:element name="parent_sku" type="xsd:string" minOccurs="0"/>
156
+ <xsd:element name="brand" type="xsd:string" minOccurs="0"/>
157
+ <xsd:element name="category" type="xsd:string" minOccurs="0"/>
158
+ <xsd:element name="sub_category" type="xsd:string"
159
+ minOccurs="0"/>
160
+ <xsd:element name="in_stock" type="xsd:string" minOccurs="0"/>
161
+ <xsd:element name="qty_on_hand" type="xsd:string" minOccurs="0"/>
162
+ <xsd:element name="type" type="xsd:string" minOccurs="0"/>
163
+ <xsd:element name="configurable_attributes"
164
+ type="typens:ArrayOfListrakRemarketingConfigurableAttributeEntity"
165
+ minOccurs="0"/>
166
+ </xsd:sequence>
167
+ </xsd:complexType>
168
+ <xsd:complexType name="ArrayOfListrakRemarketingProduct">
169
+ <xsd:sequence>
170
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
171
+ name="complexObjectArray"
172
+ type="typens:ListrakRemarketingProductEntity"/>
173
+ </xsd:sequence>
174
+ </xsd:complexType>
175
 
176
+ <!-- click -->
177
+ <xsd:complexType name="ListrakRemarketingClickEntity">
178
+ <xsd:sequence>
179
+ <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
180
+ <xsd:element name="customer_id" type="xsd:string" minOccurs="0"/>
181
+ <xsd:element name="customer_email" type="xsd:string"
182
+ minOccurs="0"/>
183
+ <xsd:element name="querystring" type="xsd:string" minOccurs="0"/>
184
+ <xsd:element name="click_date" type="xsd:string" minOccurs="0"/>
185
+ <xsd:element name="token_uid" type="xsd:string" minOccurs="0"/>
186
+ <xsd:element name="session_uid" type="xsd:string" minOccurs="0"/>
187
+ <xsd:element name="pi_id" type="xsd:string" minOccurs="0"/>
188
+ </xsd:sequence>
189
+ </xsd:complexType>
190
+ <xsd:complexType name="ArrayOfListrakRemarketingClick">
191
+ <xsd:sequence>
192
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
193
+ name="complexObjectArray"
194
+ type="typens:ListrakRemarketingClickEntity"/>
195
+ </xsd:sequence>
196
+ </xsd:complexType>
197
 
198
+ <!-- log -->
199
+ <xsd:complexType name="ListrakRemarketingLogEntity">
200
+ <xsd:sequence>
201
+ <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
202
+ <xsd:element name="message" type="xsd:string" minOccurs="0"/>
203
+ <xsd:element name="date_entered" type="xsd:string"
204
+ minOccurs="0"/>
205
+ <xsd:element name="log_type_id" type="xsd:string" minOccurs="0"/>
206
+ </xsd:sequence>
207
+ </xsd:complexType>
208
+ <xsd:complexType name="ArrayOfListrakRemarketingLog">
209
+ <xsd:sequence>
210
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
211
+ name="complexObjectArray"
212
+ type="typens:ListrakRemarketingLogEntity"/>
213
+ </xsd:sequence>
214
+ </xsd:complexType>
215
 
216
+ <!-- order -->
217
+ <xsd:complexType name="ListrakRemarketingOrderEntity">
218
+ <xsd:sequence>
219
+ <xsd:element name="info"
220
+ type="typens:ListrakRemarketingOrderInfoEntity"
221
+ minOccurs="0"/>
222
+ <xsd:element name="billing_address"
223
+ type="typens:ListrakRemarketingOrderAddressEntity"
224
+ minOccurs="0"/>
225
+ <xsd:element name="shipping_address"
226
+ type="typens:ListrakRemarketingOrderAddressEntity"
227
+ minOccurs="0"/>
228
+ <xsd:element name="product"
229
+ type="typens:ArrayOfListrakRemarketingProductShort"
230
+ minOccurs="0"/>
231
+ <xsd:element name="session"
232
+ type="typens:ListrakRemarketingSessionEntity"
233
+ minOccurs="0"/>
234
+ <xsd:element name="customer"
235
+ type="typens:ListrakRemarketingCustomerEntity"
236
+ minOccurs="0"/>
237
+ </xsd:sequence>
238
+ </xsd:complexType>
239
+ <xsd:complexType name="ArrayOfListrakRemarketingOrder">
240
+ <xsd:sequence>
241
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
242
+ name="complexObjectArray"
243
+ type="typens:ListrakRemarketingOrderEntity"/>
244
+ </xsd:sequence>
245
+ </xsd:complexType>
246
+ <xsd:complexType name="ListrakRemarketingOrderInfoEntity">
247
+ <xsd:sequence>
248
+ <xsd:element name="entity_id" type="xsd:string" minOccurs="0"/>
249
+ <xsd:element name="order_id" type="xsd:string" minOccurs="0"/>
250
+ <xsd:element name="status" type="xsd:string" minOccurs="0"/>
251
+ <xsd:element name="customer_firstname" type="xsd:string"
252
+ minOccurs="0"/>
253
+ <xsd:element name="customer_lastname" type="xsd:string"
254
+ minOccurs="0"/>
255
+ <xsd:element name="customer_email" type="xsd:string"
256
+ minOccurs="0"/>
257
+ <xsd:element name="subtotal" type="xsd:string" minOccurs="0"/>
258
+ <xsd:element name="tax_amount" type="xsd:string" minOccurs="0"/>
259
+ <xsd:element name="shipping_amount" type="xsd:string"
260
+ minOccurs="0"/>
261
+ <xsd:element name="grand_total" type="xsd:string" minOccurs="0"/>
262
+ <xsd:element name="billing_firstname" type="xsd:string"
263
+ minOccurs="0"/>
264
+ <xsd:element name="created_at" type="xsd:string" minOccurs="0"/>
265
+ <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
266
+ </xsd:sequence>
267
+ </xsd:complexType>
268
+ <xsd:complexType name="ListrakRemarketingOrderAddressEntity">
269
+ <xsd:sequence>
270
+ <xsd:element name="firstname" type="xsd:string" minOccurs="0"/>
271
+ <xsd:element name="lastname" type="xsd:string" minOccurs="0"/>
272
+ <xsd:element name="company" type="xsd:string" minOccurs="0"/>
273
+ <xsd:element name="street" type="xsd:string" minOccurs="0"/>
274
+ <xsd:element name="city" type="xsd:string" minOccurs="0"/>
275
+ <xsd:element name="region" type="xsd:string" minOccurs="0"/>
276
+ <xsd:element name="postcode" type="xsd:string" minOccurs="0"/>
277
+ <xsd:element name="country" type="xsd:string" minOccurs="0"/>
278
+ </xsd:sequence>
279
+ </xsd:complexType>
280
+ <xsd:complexType name="ListrakRemarketingProductShortEntity">
281
+ <xsd:sequence>
282
+ <xsd:element name="sku" type="xsd:string" minOccurs="0"/>
283
+ <xsd:element name="name" type="xsd:string" minOccurs="0"/>
284
+ <xsd:element name="price" type="xsd:string" minOccurs="0"/>
285
+ <xsd:element name="qty_ordered" type="xsd:string" minOccurs="0"/>
286
+ <xsd:element name="product_price" type="xsd:string"
287
+ minOccurs="0"/>
288
+ <xsd:element name="bundle_items"
289
+ type="typens:ArrayOfListrakRemarketingProductShort"
290
+ minOccurs="0"/>
291
+ </xsd:sequence>
292
+ </xsd:complexType>
293
+ <xsd:complexType name="ArrayOfListrakRemarketingProductShort">
294
+ <xsd:sequence>
295
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
296
+ name="complexObjectArray"
297
+ type="typens:ListrakRemarketingProductShortEntity"/>
298
+ </xsd:sequence>
299
+ </xsd:complexType>
300
 
301
+ <!-- order status -->
302
+ <xsd:complexType name="ListrakRemarketingOrderStatusEntity">
303
+ <xsd:sequence>
304
+ <xsd:element name="increment_id" type="xsd:string"
305
+ minOccurs="0"/>
306
+ <xsd:element name="status" type="xsd:string" minOccurs="0"/>
307
+ <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
308
+ </xsd:sequence>
309
+ </xsd:complexType>
310
+ <xsd:complexType name="ArrayOfListrakRemarketingOrderStatus">
311
+ <xsd:sequence>
312
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
313
+ name="complexObjectArray"
314
+ type="typens:ListrakRemarketingOrderStatusEntity"/>
315
+ </xsd:sequence>
316
+ </xsd:complexType>
317
 
318
+ <!-- customer -->
319
+ <xsd:complexType name="ListrakRemarketingCustomerEntity">
320
+ <xsd:sequence>
321
+ <xsd:element name="entity_id" type="xsd:string" minOccurs="0"/>
322
+ <xsd:element name="firstname" type="xsd:string" minOccurs="0"/>
323
+ <xsd:element name="lastname" type="xsd:string" minOccurs="0"/>
324
+ <xsd:element name="email" type="xsd:string" minOccurs="0"/>
325
+ <xsd:element name="website_id" type="xsd:string" minOccurs="0"/>
326
+ <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
327
+ <xsd:element name="gender_name" type="xsd:string" minOccurs="0"/>
328
+ <xsd:element name="dob" type="xsd:string" minOccurs="0"/>
329
+ <xsd:element name="group_name" type="xsd:string" minOccurs="0"/>
330
+ </xsd:sequence>
331
+ </xsd:complexType>
332
+ <xsd:complexType name="ArrayOfListrakRemarketingCustomer">
333
+ <xsd:sequence>
334
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
335
+ name="complexObjectArray"
336
+ type="typens:ListrakRemarketingCustomerEntity"/>
337
+ </xsd:sequence>
338
+ </xsd:complexType>
339
 
340
+ <!-- subscriber -->
341
+ <xsd:complexType name="ListrakRemarketingSubscriberEntity">
342
+ <xsd:sequence>
343
+ <xsd:element name="subscriber_id" type="xsd:string"
344
+ minOccurs="0"/>
345
+ <xsd:element name="store_id" type="xsd:string" minOccurs="0"/>
346
+ <xsd:element name="customer_id" type="xsd:string" minOccurs="0"/>
347
+ <xsd:element name="change_status_at" type="xsd:string"
348
+ minOccurs="0"/>
349
+ <xsd:element name="subscriber_email" type="xsd:string"
350
+ minOccurs="0"/>
351
+ <xsd:element name="subscriber_status" type="xsd:string"
352
+ minOccurs="0"/>
353
+ <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
354
+ </xsd:sequence>
355
+ </xsd:complexType>
356
+ <xsd:complexType name="ArrayOfListrakRemarketingSubscriber">
357
+ <xsd:sequence>
358
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
359
+ name="complexObjectArray"
360
+ type="typens:ListrakRemarketingSubscriberEntity"/>
361
+ </xsd:sequence>
362
+ </xsd:complexType>
363
 
364
+ <xsd:complexType name="ListrakRemarketingInfoEntity">
365
+ <xsd:sequence>
366
+ <xsd:element name="magentoVersion" type="xsd:string"
367
+ minOccurs="0"/>
368
+ <xsd:element name="listrakSettings"
369
+ type="typens:ListrakRemarketingSettingEntity"
370
+ minOccurs="0"/>
371
+ <xsd:element name="modules" type="typens:ArrayOfString"
372
+ minOccurs="0"/>
373
+ <xsd:element name="ini" type="typens:ArrayOfString"
374
+ minOccurs="0"/>
375
+ <xsd:element name="classes" type="xsd:string" minOccurs="0"/>
376
+ <xsd:element name="counts" type="xsd:string" minOccurs="0"/>
377
+ </xsd:sequence>
378
+ </xsd:complexType>
379
+ <xsd:complexType name="ListrakRemarketingSettingEntity">
380
+ <xsd:sequence>
381
+ <xsd:element name="coreEnabled" type="xsd:string" minOccurs="0"/>
382
+ <xsd:element name="reviewsApiEnabled" type="xsd:string"
383
+ minOccurs="0"/>
384
+ </xsd:sequence>
385
+ </xsd:complexType>
386
 
387
+ <!-- review list / review update list -->
388
+ <xsd:complexType name="ListrakRemarketingReviewListResult">
389
+ <xsd:sequence>
390
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
391
+ name="complexObjectArray"
392
+ type="typens:ListrakRemarketingReviewListItem"/>
393
+ </xsd:sequence>
394
+ </xsd:complexType>
395
+ <xsd:complexType name="ListrakRemarketingReviewListItem">
396
+ <xsd:sequence>
397
+ <xsd:element name="update_id" type="xsd:string" minOccurs="0"/>
398
+ <xsd:element name="review_id" type="xsd:string" minOccurs="0"/>
399
+ <xsd:element name="product_id" type="xsd:string" minOccurs="0"/>
400
+ <xsd:element name="title" type="xsd:string" minOccurs="0"/>
401
+ <xsd:element name="text" type="xsd:string" minOccurs="0"/>
402
+ <xsd:element name="overall_rating" type="xsd:string"
403
+ minOccurs="0"/>
404
+ <xsd:element name="created_at" type="xsd:string" minOccurs="0"/>
405
+ <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
406
+ <xsd:element name="reviewer_name" type="xsd:string"
407
+ minOccurs="0"/>
408
+ <xsd:element name="email" type="xsd:string" minOccurs="0"/>
409
+ <xsd:element name="status_id" type="xsd:string" minOccurs="0"/>
410
+ <xsd:element name="status_code" type="xsd:string" minOccurs="0"/>
411
+ <xsd:element name="ratings"
412
+ type="typens:ArrayOfListrakRemarketingReviewRating"
413
+ minOccurs="0"/>
414
+ </xsd:sequence>
415
+ </xsd:complexType>
416
+ <xsd:complexType name="ArrayOfListrakRemarketingReviewRating">
417
+ <xsd:sequence>
418
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
419
+ name="complexObjectArray"
420
+ type="typens:ListrakRemarketingReviewRatingItem"/>
421
+ </xsd:sequence>
422
+ </xsd:complexType>
423
+ <xsd:complexType name="ListrakRemarketingReviewRatingItem">
424
+ <xsd:sequence>
425
+ <xsd:element name="rating_id" type="xsd:string" minOccurs="0"/>
426
+ <xsd:element name="rating_code" type="xsd:string" minOccurs="0"/>
427
+ <xsd:element name="rating" type="xsd:string" minOccurs="0"/>
428
+ </xsd:sequence>
429
+ </xsd:complexType>
430
 
431
+ <!-- rating summary list / rating summary update list -->
432
+ <xsd:complexType name="ListrakRemarketingRatingSummaryListResult">
433
+ <xsd:sequence>
434
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
435
+ name="complexObjectArray"
436
+ type="typens:ListrakRemarketingRatingSummaryItem"/>
437
+ </xsd:sequence>
438
+ </xsd:complexType>
439
+ <xsd:complexType name="ListrakRemarketingRatingSummaryItem">
440
+ <xsd:sequence>
441
+ <xsd:element name="update_id" type="xsd:string" minOccurs="0"/>
442
+ <xsd:element name="rating_summary_id" type="xsd:string"
443
+ minOccurs="0"/>
444
+ <xsd:element name="product_id" type="xsd:string" minOccurs="0"/>
445
+ <xsd:element name="updated_at" type="xsd:string" minOccurs="0"/>
446
+ <xsd:element name="total_reviews" type="xsd:string"
447
+ minOccurs="0"/>
448
+ <xsd:element name="rating" type="xsd:string" minOccurs="0"/>
449
+ <xsd:element name="ratings"
450
+ type="typens:ArrayOfListrakRemarketingRatingSummaryAttribute"
451
+ minOccurs="0"/>
452
+ </xsd:sequence>
453
+ </xsd:complexType>
454
+ <xsd:complexType name="ArrayOfListrakRemarketingRatingSummaryAttribute">
455
+ <xsd:sequence>
456
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
457
+ name="complexObjectArray"
458
+ type="typens:ListrakRemarketingRatingSummaryAttributeItem"/>
459
+ </xsd:sequence>
460
+ </xsd:complexType>
461
+ <xsd:complexType name="ListrakRemarketingRatingSummaryAttributeItem">
462
+ <xsd:sequence>
463
+ <xsd:element name="rating_id" type="xsd:string" minOccurs="0"/>
464
+ <xsd:element name="rating_code" type="xsd:string" minOccurs="0"/>
465
+ <xsd:element name="rating" type="xsd:string" minOccurs="0"/>
466
+ </xsd:sequence>
467
+ </xsd:complexType>
468
 
469
+ <!-- review delete list -->
470
+ <xsd:complexType name="ListrakRemarketingReviewDeleteListResult">
471
+ <xsd:sequence>
472
+ <xsd:element minOccurs="0" maxOccurs="unbounded"
473
+ name="complexObjectArray"
474
+ type="typens:ListrakRemarketingDeletedReview"/>
475
+ </xsd:sequence>
476
+ </xsd:complexType>
477
+ <xsd:complexType name="ListrakRemarketingDeletedReview">
478
+ <xsd:sequence>
479
+ <xsd:element name="delete_id" type="xsd:string" minOccurs="0"/>
480
+ <xsd:element name="review_id" type="xsd:string" minOccurs="0"/>
481
+ </xsd:sequence>
482
+ </xsd:complexType>
483
 
484
+ <!-- review update purge -->
485
+ <xsd:complexType name="ListrakRemarketingReviewUpdatePurgeResult">
486
+ <xsd:sequence>
487
+ <xsd:element name="count" type="xsd:string" minOccurs="0"/>
488
+ <xsd:element name="before" type="xsd:string" minOccurs="0"/>
489
+ </xsd:sequence>
490
+ </xsd:complexType>
491
 
492
+ <!-- message parameters -->
493
+ <xsd:element name="listrakRemarketingAbandonedCartListRequestParam">
494
+ <xsd:complexType>
495
+ <xsd:sequence>
496
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
497
+ type="xsd:string"/>
498
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
499
+ type="xsd:string"/>
500
+ <xsd:element minOccurs="1" maxOccurs="1" name="startDate"
501
+ type="xsd:string"/>
502
+ <xsd:element minOccurs="1" maxOccurs="1" name="endDate"
503
+ type="xsd:string"/>
504
+ <xsd:element minOccurs="1" maxOccurs="1" name="perPage"
505
+ type="xsd:int"/>
506
+ <xsd:element minOccurs="1" maxOccurs="1" name="page"
507
+ type="xsd:int"/>
508
+ </xsd:sequence>
509
+ </xsd:complexType>
510
+ </xsd:element>
511
+ <xsd:element name="listrakRemarketingAbandonedCartListResponseParam">
512
+ <xsd:complexType>
513
+ <xsd:sequence>
514
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
515
+ type="typens:ArrayOfListrakRemarketingAbandonedCart"/>
516
+ </xsd:sequence>
517
+ </xsd:complexType>
518
+ </xsd:element>
519
+ <xsd:element name="listrakRemarketingAbandonedCartPurgeRequestParam">
520
+ <xsd:complexType>
521
+ <xsd:sequence>
522
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
523
+ type="xsd:string"/>
524
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
525
+ type="xsd:string"/>
526
+ <xsd:element minOccurs="1" maxOccurs="1" name="endDate"
527
+ type="xsd:string"/>
528
+ </xsd:sequence>
529
+ </xsd:complexType>
530
+ </xsd:element>
531
+ <xsd:element name="listrakRemarketingAbandonedCartPurgeResponseParam">
532
+ <xsd:complexType>
533
+ <xsd:sequence>
534
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
535
+ type="xsd:string"/>
536
+ </xsd:sequence>
537
+ </xsd:complexType>
538
+ </xsd:element>
539
+ <xsd:element name="listrakRemarketingClickListRequestParam">
540
+ <xsd:complexType>
541
+ <xsd:sequence>
542
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
543
+ type="xsd:string"/>
544
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
545
+ type="xsd:string"/>
546
+ <xsd:element minOccurs="1" maxOccurs="1" name="startDate"
547
+ type="xsd:string"/>
548
+ <xsd:element minOccurs="1" maxOccurs="1" name="endDate"
549
+ type="xsd:string"/>
550
+ <xsd:element minOccurs="1" maxOccurs="1" name="perPage"
551
+ type="xsd:int"/>
552
+ <xsd:element minOccurs="1" maxOccurs="1" name="page"
553
+ type="xsd:int"/>
554
+ </xsd:sequence>
555
+ </xsd:complexType>
556
+ </xsd:element>
557
+ <xsd:element name="listrakRemarketingClickListResponseParam">
558
+ <xsd:complexType>
559
+ <xsd:sequence>
560
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
561
+ type="typens:ArrayOfListrakRemarketingClick"/>
562
+ </xsd:sequence>
563
+ </xsd:complexType>
564
+ </xsd:element>
565
+ <xsd:element name="listrakRemarketingClickPurgeRequestParam">
566
+ <xsd:complexType>
567
+ <xsd:sequence>
568
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
569
+ type="xsd:string"/>
570
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
571
+ type="xsd:string"/>
572
+ <xsd:element minOccurs="1" maxOccurs="1" name="endDate"
573
+ type="xsd:string"/>
574
+ </xsd:sequence>
575
+ </xsd:complexType>
576
+ </xsd:element>
577
+ <xsd:element name="listrakRemarketingClickPurgeResponseParam">
578
+ <xsd:complexType>
579
+ <xsd:sequence>
580
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
581
+ type="xsd:string"/>
582
+ </xsd:sequence>
583
+ </xsd:complexType>
584
+ </xsd:element>
585
+ <xsd:element name="listrakRemarketingLogListRequestParam">
586
+ <xsd:complexType>
587
+ <xsd:sequence>
588
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
589
+ type="xsd:string"/>
590
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
591
+ type="xsd:string"/>
592
+ <xsd:element minOccurs="1" maxOccurs="1" name="startDate"
593
+ type="xsd:string"/>
594
+ <xsd:element minOccurs="1" maxOccurs="1" name="endDate"
595
+ type="xsd:string"/>
596
+ <xsd:element minOccurs="1" maxOccurs="1" name="perPage"
597
+ type="xsd:int"/>
598
+ <xsd:element minOccurs="1" maxOccurs="1" name="page"
599
+ type="xsd:int"/>
600
+ <xsd:element minOccurs="1" maxOccurs="1" name="logTypeId"
601
+ type="xsd:string"/>
602
+ </xsd:sequence>
603
+ </xsd:complexType>
604
+ </xsd:element>
605
+ <xsd:element name="listrakRemarketingLogListResponseParam">
606
+ <xsd:complexType>
607
+ <xsd:sequence>
608
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
609
+ type="typens:ArrayOfListrakRemarketingLog"/>
610
+ </xsd:sequence>
611
+ </xsd:complexType>
612
+ </xsd:element>
613
+ <xsd:element name="listrakRemarketingLogPurgeRequestParam">
614
+ <xsd:complexType>
615
+ <xsd:sequence>
616
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
617
+ type="xsd:string"/>
618
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
619
+ type="xsd:string"/>
620
+ <xsd:element minOccurs="1" maxOccurs="1" name="endDate"
621
+ type="xsd:string"/>
622
+ </xsd:sequence>
623
+ </xsd:complexType>
624
+ </xsd:element>
625
+ <xsd:element name="listrakRemarketingLogPurgeResponseParam">
626
+ <xsd:complexType>
627
+ <xsd:sequence>
628
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
629
+ type="xsd:string"/>
630
+ </xsd:sequence>
631
+ </xsd:complexType>
632
+ </xsd:element>
633
+ <xsd:element name="listrakRemarketingLogToggleRequestParam">
634
+ <xsd:complexType>
635
+ <xsd:sequence>
636
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
637
+ type="xsd:string"/>
638
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
639
+ type="xsd:string"/>
640
+ <xsd:element minOccurs="1" maxOccurs="1" name="onOff"
641
+ type="xsd:string"/>
642
+ </xsd:sequence>
643
+ </xsd:complexType>
644
+ </xsd:element>
645
+ <xsd:element name="listrakRemarketingLogToggleResponseParam">
646
+ <xsd:complexType>
647
+ <xsd:sequence>
648
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
649
+ type="xsd:string"/>
650
+ </xsd:sequence>
651
+ </xsd:complexType>
652
+ </xsd:element>
653
+ <xsd:element name="listrakRemarketingOrderListRequestParam">
654
+ <xsd:complexType>
655
+ <xsd:sequence>
656
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
657
+ type="xsd:string"/>
658
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
659
+ type="xsd:string"/>
660
+ <xsd:element minOccurs="1" maxOccurs="1" name="startDate"
661
+ type="xsd:string"/>
662
+ <xsd:element minOccurs="1" maxOccurs="1" name="endDate"
663
+ type="xsd:string"/>
664
+ <xsd:element minOccurs="1" maxOccurs="1" name="perPage"
665
+ type="xsd:int"/>
666
+ <xsd:element minOccurs="1" maxOccurs="1" name="page"
667
+ type="xsd:int"/>
668
+ </xsd:sequence>
669
+ </xsd:complexType>
670
+ </xsd:element>
671
+ <xsd:element name="listrakRemarketingOrderListResponseParam">
672
+ <xsd:complexType>
673
+ <xsd:sequence>
674
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
675
+ type="typens:ArrayOfListrakRemarketingOrder"/>
676
+ </xsd:sequence>
677
+ </xsd:complexType>
678
+ </xsd:element>
679
+ <xsd:element name="listrakRemarketingOrderStatusListRequestParam">
680
+ <xsd:complexType>
681
+ <xsd:sequence>
682
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
683
+ type="xsd:string"/>
684
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
685
+ type="xsd:string"/>
686
+ <xsd:element minOccurs="1" maxOccurs="1" name="startDate"
687
+ type="xsd:string"/>
688
+ <xsd:element minOccurs="1" maxOccurs="1" name="endDate"
689
+ type="xsd:string"/>
690
+ <xsd:element minOccurs="1" maxOccurs="1" name="perPage"
691
+ type="xsd:int"/>
692
+ <xsd:element minOccurs="1" maxOccurs="1" name="page"
693
+ type="xsd:int"/>
694
+ <xsd:element minOccurs="1" maxOccurs="1" name="filters"
695
+ type="typens:filters"/>
696
+ </xsd:sequence>
697
+ </xsd:complexType>
698
+ </xsd:element>
699
+ <xsd:element name="listrakRemarketingOrderStatusListResponseParam">
700
+ <xsd:complexType>
701
+ <xsd:sequence>
702
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
703
+ type="typens:ArrayOfListrakRemarketingOrderStatus"/>
704
+ </xsd:sequence>
705
+ </xsd:complexType>
706
+ </xsd:element>
707
+ <xsd:element name="listrakRemarketingProductListRequestParam">
708
+ <xsd:complexType>
709
+ <xsd:sequence>
710
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
711
+ type="xsd:string"/>
712
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
713
+ type="xsd:string"/>
714
+ <xsd:element minOccurs="1" maxOccurs="1" name="perPage"
715
+ type="xsd:int"/>
716
+ <xsd:element minOccurs="1" maxOccurs="1" name="page"
717
+ type="xsd:int"/>
718
+ </xsd:sequence>
719
+ </xsd:complexType>
720
+ </xsd:element>
721
+ <xsd:element name="listrakRemarketingProductListResponseParam">
722
+ <xsd:complexType>
723
+ <xsd:sequence>
724
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
725
+ type="typens:ArrayOfListrakRemarketingProduct"/>
726
+ </xsd:sequence>
727
+ </xsd:complexType>
728
+ </xsd:element>
729
+ <xsd:element name="listrakRemarketingSubscriberListRequestParam">
730
+ <xsd:complexType>
731
+ <xsd:sequence>
732
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
733
+ type="xsd:string"/>
734
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
735
+ type="xsd:string"/>
736
+ <xsd:element minOccurs="1" maxOccurs="1" name="startDate"
737
+ type="xsd:string"/>
738
+ <xsd:element minOccurs="1" maxOccurs="1" name="perPage"
739
+ type="xsd:int"/>
740
+ <xsd:element minOccurs="1" maxOccurs="1" name="page"
741
+ type="xsd:int"/>
742
+ </xsd:sequence>
743
+ </xsd:complexType>
744
+ </xsd:element>
745
+ <xsd:element name="listrakRemarketingSubscriberListResponseParam">
746
+ <xsd:complexType>
747
+ <xsd:sequence>
748
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
749
+ type="typens:ArrayOfListrakRemarketingSubscriber"/>
750
+ </xsd:sequence>
751
+ </xsd:complexType>
752
+ </xsd:element>
753
+ <xsd:element name="listrakRemarketingSubscriberPurgeRequestParam">
754
+ <xsd:complexType>
755
+ <xsd:sequence>
756
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
757
+ type="xsd:string"/>
758
+ <xsd:element minOccurs="1" maxOccurs="1" name="endDate"
759
+ type="xsd:string"/>
760
+ </xsd:sequence>
761
+ </xsd:complexType>
762
+ </xsd:element>
763
+ <xsd:element name="listrakRemarketingSubscriberPurgeResponseParam">
764
+ <xsd:complexType>
765
+ <xsd:sequence>
766
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
767
+ type="xsd:string"/>
768
+ </xsd:sequence>
769
+ </xsd:complexType>
770
+ </xsd:element>
771
+ <xsd:element name="listrakRemarketingCustomerListRequestParam">
772
+ <xsd:complexType>
773
+ <xsd:sequence>
774
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
775
+ type="xsd:string"/>
776
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
777
+ type="xsd:string"/>
778
+ <xsd:element minOccurs="1" maxOccurs="1" name="websiteId"
779
+ type="xsd:int"/>
780
+ <xsd:element minOccurs="1" maxOccurs="1" name="perPage"
781
+ type="xsd:int"/>
782
+ <xsd:element minOccurs="1" maxOccurs="1" name="page"
783
+ type="xsd:int"/>
784
+ </xsd:sequence>
785
+ </xsd:complexType>
786
+ </xsd:element>
787
+ <xsd:element name="listrakRemarketingCustomerListResponseParam">
788
+ <xsd:complexType>
789
+ <xsd:sequence>
790
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
791
+ type="typens:ArrayOfListrakRemarketingCustomer"/>
792
+ </xsd:sequence>
793
+ </xsd:complexType>
794
+ </xsd:element>
795
+ <xsd:element name="listrakRemarketingInfoListRequestParam">
796
+ <xsd:complexType>
797
+ <xsd:sequence>
798
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
799
+ type="xsd:string"/>
800
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
801
+ type="xsd:string"/>
802
+ </xsd:sequence>
803
+ </xsd:complexType>
804
+ </xsd:element>
805
+ <xsd:element name="listrakRemarketingInfoListResponseParam">
806
+ <xsd:complexType>
807
+ <xsd:sequence>
808
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
809
+ type="typens:ListrakRemarketingInfoEntity"/>
810
+ </xsd:sequence>
811
+ </xsd:complexType>
812
+ </xsd:element>
813
+ <xsd:element name="listrakRemarketingReviewListRequestParam">
814
+ <xsd:complexType>
815
+ <xsd:sequence>
816
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
817
+ type="xsd:string"/>
818
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
819
+ type="xsd:string"/>
820
+ <xsd:element minOccurs="1" maxOccurs="1" name="chunkSize"
821
+ type="xsd:string"/>
822
+ <xsd:element minOccurs="1" maxOccurs="1" name="startReviewId"
823
+ type="xsd:string"/>
824
+ </xsd:sequence>
825
+ </xsd:complexType>
826
+ </xsd:element>
827
+ <xsd:element name="listrakRemarketingReviewListResponseParam">
828
+ <xsd:complexType>
829
+ <xsd:sequence>
830
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
831
+ type="typens:ListrakRemarketingReviewListResult"/>
832
+ </xsd:sequence>
833
+ </xsd:complexType>
834
+ </xsd:element>
835
+ <xsd:element name="listrakRemarketingRatingSummaryListRequestParam">
836
+ <xsd:complexType>
837
+ <xsd:sequence>
838
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
839
+ type="xsd:string"/>
840
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
841
+ type="xsd:string"/>
842
+ <xsd:element minOccurs="1" maxOccurs="1" name="chunkSize"
843
+ type="xsd:string"/>
844
+ <xsd:element minOccurs="1" maxOccurs="1"
845
+ name="startRatingSummaryId" type="xsd:string"/>
846
+ </xsd:sequence>
847
+ </xsd:complexType>
848
+ </xsd:element>
849
+ <xsd:element name="listrakRemarketingRatingSummaryListResponseParam">
850
+ <xsd:complexType>
851
+ <xsd:sequence>
852
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
853
+ type="typens:ListrakRemarketingRatingSummaryListResult"/>
854
+ </xsd:sequence>
855
+ </xsd:complexType>
856
+ </xsd:element>
857
+ <xsd:element name="listrakRemarketingReviewUpdateListRequestParam">
858
+ <xsd:complexType>
859
+ <xsd:sequence>
860
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
861
+ type="xsd:string"/>
862
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
863
+ type="xsd:string"/>
864
+ <xsd:element minOccurs="1" maxOccurs="1" name="chunkSize"
865
+ type="xsd:string"/>
866
+ <xsd:element minOccurs="1" maxOccurs="1" name="startUpdateId"
867
+ type="xsd:string"/>
868
+ </xsd:sequence>
869
+ </xsd:complexType>
870
+ </xsd:element>
871
+ <xsd:element name="listrakRemarketingReviewUpdateListResponseParam">
872
+ <xsd:complexType>
873
+ <xsd:sequence>
874
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
875
+ type="typens:ListrakRemarketingReviewListResult"/>
876
+ </xsd:sequence>
877
+ </xsd:complexType>
878
+ </xsd:element>
879
+ <xsd:element
880
+ name="listrakRemarketingRatingSummaryUpdateListRequestParam">
881
+ <xsd:complexType>
882
+ <xsd:sequence>
883
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
884
+ type="xsd:string"/>
885
+ <xsd:element minOccurs="1" maxOccurs="1" name="storeId"
886
+ type="xsd:string"/>
887
+ <xsd:element minOccurs="1" maxOccurs="1" name="chunkSize"
888
+ type="xsd:string"/>
889
+ <xsd:element minOccurs="1" maxOccurs="1" name="startUpdateId"
890
+ type="xsd:string"/>
891
+ </xsd:sequence>
892
+ </xsd:complexType>
893
+ </xsd:element>
894
+ <xsd:element
895
+ name="listrakRemarketingRatingSummaryUpdateListResponseParam">
896
+ <xsd:complexType>
897
+ <xsd:sequence>
898
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
899
+ type="typens:ListrakRemarketingRatingSummaryListResult"/>
900
+ </xsd:sequence>
901
+ </xsd:complexType>
902
+ </xsd:element>
903
+ <xsd:element name="listrakRemarketingReviewDeleteListRequestParam">
904
+ <xsd:complexType>
905
+ <xsd:sequence>
906
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
907
+ type="xsd:string"/>
908
+ <xsd:element minOccurs="1" maxOccurs="1" name="chunkSize"
909
+ type="xsd:string"/>
910
+ <xsd:element minOccurs="1" maxOccurs="1" name="startDeleteId"
911
+ type="xsd:string"/>
912
+ </xsd:sequence>
913
+ </xsd:complexType>
914
+ </xsd:element>
915
+ <xsd:element name="listrakRemarketingReviewDeleteListResponseParam">
916
+ <xsd:complexType>
917
+ <xsd:sequence>
918
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
919
+ type="typens:ListrakRemarketingReviewDeleteListResult"/>
920
+ </xsd:sequence>
921
+ </xsd:complexType>
922
+ </xsd:element>
923
+ <xsd:element name="listrakRemarketingReviewUpdatePurgeRequestParam">
924
+ <xsd:complexType>
925
+ <xsd:sequence>
926
+ <xsd:element minOccurs="1" maxOccurs="1" name="sessionId"
927
+ type="xsd:string"/>
928
+ <xsd:element minOccurs="1" maxOccurs="1"
929
+ name="purgeBeforeDays" type="xsd:string"/>
930
+ </xsd:sequence>
931
+ </xsd:complexType>
932
+ </xsd:element>
933
+ <xsd:element name="listrakRemarketingReviewUpdatePurgeResponseParam">
934
+ <xsd:complexType>
935
+ <xsd:sequence>
936
+ <xsd:element minOccurs="1" maxOccurs="1" name="result"
937
+ type="typens:ListrakRemarketingReviewUpdatePurgeResult"/>
938
+ </xsd:sequence>
939
+ </xsd:complexType>
940
+ </xsd:element>
941
+ </xsd:schema>
942
+ </wsdl:types>
943
+ <wsdl:message name="listrakRemarketingAbandonedCartListRequest">
944
+ <wsdl:part name="parameters"
945
+ element="typens:listrakRemarketingAbandonedCartListRequestParam"/>
946
+ </wsdl:message>
947
+ <wsdl:message name="listrakRemarketingAbandonedCartListResponse">
948
+ <wsdl:part name="parameters"
949
+ element="typens:listrakRemarketingAbandonedCartListResponseParam"/>
950
+ </wsdl:message>
951
+ <wsdl:message name="listrakRemarketingAbandonedCartPurgeRequest">
952
+ <wsdl:part name="parameters"
953
+ element="typens:listrakRemarketingAbandonedCartPurgeRequestParam"/>
954
+ </wsdl:message>
955
+ <wsdl:message name="listrakRemarketingAbandonedCartPurgeResponse">
956
+ <wsdl:part name="parameters"
957
+ element="typens:listrakRemarketingAbandonedCartPurgeResponseParam"/>
958
+ </wsdl:message>
959
+ <wsdl:message name="listrakRemarketingClickListRequest">
960
+ <wsdl:part name="parameters"
961
+ element="typens:listrakRemarketingClickListRequestParam"/>
962
+ </wsdl:message>
963
+ <wsdl:message name="listrakRemarketingClickListResponse">
964
+ <wsdl:part name="parameters"
965
+ element="typens:listrakRemarketingClickListResponseParam"/>
966
+ </wsdl:message>
967
+ <wsdl:message name="listrakRemarketingClickPurgeRequest">
968
+ <wsdl:part name="parameters"
969
+ element="typens:listrakRemarketingClickPurgeRequestParam"/>
970
+ </wsdl:message>
971
+ <wsdl:message name="listrakRemarketingClickPurgeResponse">
972
+ <wsdl:part name="parameters"
973
+ element="typens:listrakRemarketingClickPurgeResponseParam"/>
974
+ </wsdl:message>
975
+ <wsdl:message name="listrakRemarketingLogListRequest">
976
+ <wsdl:part name="parameters"
977
+ element="typens:listrakRemarketingLogListRequestParam"/>
978
+ </wsdl:message>
979
+ <wsdl:message name="listrakRemarketingLogListResponse">
980
+ <wsdl:part name="parameters"
981
+ element="typens:listrakRemarketingLogListResponseParam"/>
982
+ </wsdl:message>
983
+ <wsdl:message name="listrakRemarketingLogPurgeRequest">
984
+ <wsdl:part name="parameters"
985
+ element="typens:listrakRemarketingLogPurgeRequestParam"/>
986
+ </wsdl:message>
987
+ <wsdl:message name="listrakRemarketingLogPurgeResponse">
988
+ <wsdl:part name="parameters"
989
+ element="typens:listrakRemarketingLogPurgeResponseParam"/>
990
+ </wsdl:message>
991
+ <wsdl:message name="listrakRemarketingLogToggleRequest">
992
+ <wsdl:part name="parameters"
993
+ element="typens:listrakRemarketingLogToggleRequestParam"/>
994
+ </wsdl:message>
995
+ <wsdl:message name="listrakRemarketingLogToggleResponse">
996
+ <wsdl:part name="parameters"
997
+ element="typens:listrakRemarketingLogToggleResponseParam"/>
998
+ </wsdl:message>
999
+ <wsdl:message name="listrakRemarketingOrderListRequest">
1000
+ <wsdl:part name="parameters"
1001
+ element="typens:listrakRemarketingOrderListRequestParam"/>
1002
+ </wsdl:message>
1003
+ <wsdl:message name="listrakRemarketingOrderListResponse">
1004
+ <wsdl:part name="parameters"
1005
+ element="typens:listrakRemarketingOrderListResponseParam"/>
1006
+ </wsdl:message>
1007
+ <wsdl:message name="listrakRemarketingOrderStatusListRequest">
1008
+ <wsdl:part name="parameters"
1009
+ element="typens:listrakRemarketingOrderStatusListRequestParam"/>
1010
+ </wsdl:message>
1011
+ <wsdl:message name="listrakRemarketingOrderStatusListResponse">
1012
+ <wsdl:part name="parameters"
1013
+ element="typens:listrakRemarketingOrderStatusListResponseParam"/>
1014
+ </wsdl:message>
1015
+ <wsdl:message name="listrakRemarketingProductListRequest">
1016
+ <wsdl:part name="parameters"
1017
+ element="typens:listrakRemarketingProductListRequestParam"/>
1018
+ </wsdl:message>
1019
+ <wsdl:message name="listrakRemarketingProductListResponse">
1020
+ <wsdl:part name="parameters"
1021
+ element="typens:listrakRemarketingProductListResponseParam"/>
1022
+ </wsdl:message>
1023
+ <wsdl:message name="listrakRemarketingSubscriberListRequest">
1024
+ <wsdl:part name="parameters"
1025
+ element="typens:listrakRemarketingSubscriberListRequestParam"/>
1026
+ </wsdl:message>
1027
+ <wsdl:message name="listrakRemarketingSubscriberListResponse">
1028
+ <wsdl:part name="parameters"
1029
+ element="typens:listrakRemarketingSubscriberListResponseParam"/>
1030
+ </wsdl:message>
1031
+ <wsdl:message name="listrakRemarketingSubscriberPurgeRequest">
1032
+ <wsdl:part name="parameters"
1033
+ element="typens:listrakRemarketingSubscriberPurgeRequestParam"/>
1034
+ </wsdl:message>
1035
+ <wsdl:message name="listrakRemarketingSubscriberPurgeResponse">
1036
+ <wsdl:part name="parameters"
1037
+ element="typens:listrakRemarketingSubscriberPurgeResponseParam"/>
1038
+ </wsdl:message>
1039
+ <wsdl:message name="listrakRemarketingCustomerListRequest">
1040
+ <wsdl:part name="parameters"
1041
+ element="typens:listrakRemarketingCustomerListRequestParam"/>
1042
+ </wsdl:message>
1043
+ <wsdl:message name="listrakRemarketingCustomerListResponse">
1044
+ <wsdl:part name="parameters"
1045
+ element="typens:listrakRemarketingCustomerListResponseParam"/>
1046
+ </wsdl:message>
1047
+ <wsdl:message name="listrakRemarketingInfoListRequest">
1048
+ <wsdl:part name="parameters"
1049
+ element="typens:listrakRemarketingInfoListRequestParam"/>
1050
+ </wsdl:message>
1051
+ <wsdl:message name="listrakRemarketingInfoListResponse">
1052
+ <wsdl:part name="parameters"
1053
+ element="typens:listrakRemarketingInfoListResponseParam"/>
1054
+ </wsdl:message>
1055
+ <wsdl:message name="listrakRemarketingReviewListRequest">
1056
+ <wsdl:part name="parameters"
1057
+ element="typens:listrakRemarketingReviewListRequestParam"/>
1058
+ </wsdl:message>
1059
+ <wsdl:message name="listrakRemarketingReviewListResponse">
1060
+ <wsdl:part name="parameters"
1061
+ element="typens:listrakRemarketingReviewListResponseParam"/>
1062
+ </wsdl:message>
1063
+ <wsdl:message name="listrakRemarketingRatingSummaryListRequest">
1064
+ <wsdl:part name="parameters"
1065
+ element="typens:listrakRemarketingRatingSummaryListRequestParam"/>
1066
+ </wsdl:message>
1067
+ <wsdl:message name="listrakRemarketingRatingSummaryListResponse">
1068
+ <wsdl:part name="parameters"
1069
+ element="typens:listrakRemarketingRatingSummaryListResponseParam"/>
1070
+ </wsdl:message>
1071
+ <wsdl:message name="listrakRemarketingReviewUpdateListRequest">
1072
+ <wsdl:part name="parameters"
1073
+ element="typens:listrakRemarketingReviewUpdateListRequestParam"/>
1074
+ </wsdl:message>
1075
+ <wsdl:message name="listrakRemarketingReviewUpdateListResponse">
1076
+ <wsdl:part name="parameters"
1077
+ element="typens:listrakRemarketingReviewUpdateListResponseParam"/>
1078
+ </wsdl:message>
1079
+ <wsdl:message name="listrakRemarketingRatingSummaryUpdateListRequest">
1080
+ <wsdl:part name="parameters"
1081
+ element="typens:listrakRemarketingRatingSummaryUpdateListRequestParam"/>
1082
+ </wsdl:message>
1083
+ <wsdl:message name="listrakRemarketingRatingSummaryUpdateListResponse">
1084
+ <wsdl:part name="parameters"
1085
+ element="typens:listrakRemarketingRatingSummaryUpdateListResponseParam"/>
1086
+ </wsdl:message>
1087
+ <wsdl:message name="listrakRemarketingReviewDeleteListRequest">
1088
+ <wsdl:part name="parameters"
1089
+ element="typens:listrakRemarketingReviewDeleteListRequestParam"/>
1090
+ </wsdl:message>
1091
+ <wsdl:message name="listrakRemarketingReviewDeleteListResponse">
1092
+ <wsdl:part name="parameters"
1093
+ element="typens:listrakRemarketingReviewDeleteListResponseParam"/>
1094
+ </wsdl:message>
1095
+ <wsdl:message name="listrakRemarketingReviewUpdatePurgeRequest">
1096
+ <wsdl:part name="parameters"
1097
+ element="typens:listrakRemarketingReviewUpdatePurgeRequestParam"/>
1098
+ </wsdl:message>
1099
+ <wsdl:message name="listrakRemarketingReviewUpdatePurgeResponse">
1100
+ <wsdl:part name="parameters"
1101
+ element="typens:listrakRemarketingReviewUpdatePurgeResponseParam"/>
1102
+ </wsdl:message>
1103
+ <wsdl:portType name="{{var wsdl.handler}}PortType">
1104
+ <wsdl:operation name="listrakRemarketingAbandonedCartList">
1105
+ <wsdl:documentation>Get stores abandoned carts</wsdl:documentation>
1106
+ <wsdl:input message="typens:listrakRemarketingAbandonedCartListRequest"/>
1107
+ <wsdl:output
1108
+ message="typens:listrakRemarketingAbandonedCartListResponse"/>
1109
+ </wsdl:operation>
1110
+ <wsdl:operation name="listrakRemarketingAbandonedCartPurge">
1111
+ <wsdl:documentation>Purge abandoned carts</wsdl:documentation>
1112
+ <wsdl:input
1113
+ message="typens:listrakRemarketingAbandonedCartPurgeRequest"/>
1114
+ <wsdl:output
1115
+ message="typens:listrakRemarketingAbandonedCartPurgeResponse"/>
1116
+ </wsdl:operation>
1117
+ <wsdl:operation name="listrakRemarketingClickList">
1118
+ <wsdl:documentation>Get clicks</wsdl:documentation>
1119
+ <wsdl:input message="typens:listrakRemarketingClickListRequest"/>
1120
+ <wsdl:output message="typens:listrakRemarketingClickListResponse"/>
1121
+ </wsdl:operation>
1122
+ <wsdl:operation name="listrakRemarketingClickPurge">
1123
+ <wsdl:documentation>Purge clicks</wsdl:documentation>
1124
+ <wsdl:input message="typens:listrakRemarketingClickPurgeRequest"/>
1125
+ <wsdl:output message="typens:listrakRemarketingClickPurgeResponse"/>
1126
+ </wsdl:operation>
1127
+ <wsdl:operation name="listrakRemarketingLogList">
1128
+ <wsdl:documentation>Get log entries</wsdl:documentation>
1129
+ <wsdl:input message="typens:listrakRemarketingLogListRequest"/>
1130
+ <wsdl:output message="typens:listrakRemarketingLogListResponse"/>
1131
+ </wsdl:operation>
1132
+ <wsdl:operation name="listrakRemarketingLogPurge">
1133
+ <wsdl:documentation>Purge log entries</wsdl:documentation>
1134
+ <wsdl:input message="typens:listrakRemarketingLogPurgeRequest"/>
1135
+ <wsdl:output message="typens:listrakRemarketingLogPurgeResponse"/>
1136
+ </wsdl:operation>
1137
+ <wsdl:operation name="listrakRemarketingLogToggle">
1138
+ <wsdl:documentation>toggle logging</wsdl:documentation>
1139
+ <wsdl:input message="typens:listrakRemarketingLogToggleRequest"/>
1140
+ <wsdl:output message="typens:listrakRemarketingLogToggleResponse"/>
1141
+ </wsdl:operation>
1142
+ <wsdl:operation name="listrakRemarketingOrderList">
1143
+ <wsdl:documentation>Get orders</wsdl:documentation>
1144
+ <wsdl:input message="typens:listrakRemarketingOrderListRequest"/>
1145
+ <wsdl:output message="typens:listrakRemarketingOrderListResponse"/>
1146
+ </wsdl:operation>
1147
+ <wsdl:operation name="listrakRemarketingOrderStatusList">
1148
+ <wsdl:documentation>Get order status changes</wsdl:documentation>
1149
+ <wsdl:input message="typens:listrakRemarketingOrderStatusListRequest"/>
1150
+ <wsdl:output message="typens:listrakRemarketingOrderStatusListResponse"/>
1151
+ </wsdl:operation>
1152
+ <wsdl:operation name="listrakRemarketingProductList">
1153
+ <wsdl:documentation>Get products</wsdl:documentation>
1154
+ <wsdl:input message="typens:listrakRemarketingProductListRequest"/>
1155
+ <wsdl:output message="typens:listrakRemarketingProductListResponse"/>
1156
+ </wsdl:operation>
1157
+ <wsdl:operation name="listrakRemarketingSubscriberList">
1158
+ <wsdl:documentation>Get subscribers and unsubscribers
1159
+ </wsdl:documentation>
1160
+ <wsdl:input message="typens:listrakRemarketingSubscriberListRequest"/>
1161
+ <wsdl:output message="typens:listrakRemarketingSubscriberListResponse"/>
1162
+ </wsdl:operation>
1163
+ <wsdl:operation name="listrakRemarketingSubscriberPurge">
1164
+ <wsdl:documentation>Purge old subscriber updates</wsdl:documentation>
1165
+ <wsdl:input message="typens:listrakRemarketingSubscriberPurgeRequest"/>
1166
+ <wsdl:output message="typens:listrakRemarketingSubscriberPurgeResponse"/>
1167
+ </wsdl:operation>
1168
+ <wsdl:operation name="listrakRemarketingCustomerList">
1169
+ <wsdl:documentation>Get customers</wsdl:documentation>
1170
+ <wsdl:input message="typens:listrakRemarketingCustomerListRequest"/>
1171
+ <wsdl:output message="typens:listrakRemarketingCustomerListResponse"/>
1172
+ </wsdl:operation>
1173
+ <wsdl:operation name="listrakRemarketingInfoList">
1174
+ <wsdl:documentation>Get info</wsdl:documentation>
1175
+ <wsdl:input message="typens:listrakRemarketingInfoListRequest"/>
1176
+ <wsdl:output message="typens:listrakRemarketingInfoListResponse"/>
1177
+ </wsdl:operation>
1178
+ <wsdl:operation name="listrakRemarketingReviewList">
1179
+ <wsdl:documentation>Get review list</wsdl:documentation>
1180
+ <wsdl:input message="typens:listrakRemarketingReviewListRequest"/>
1181
+ <wsdl:output message="typens:listrakRemarketingReviewListResponse"/>
1182
+ </wsdl:operation>
1183
+ <wsdl:operation name="listrakRemarketingRatingSummaryList">
1184
+ <wsdl:documentation>Get rating summary list</wsdl:documentation>
1185
+ <wsdl:input message="typens:listrakRemarketingRatingSummaryListRequest"/>
1186
+ <wsdl:output
1187
+ message="typens:listrakRemarketingRatingSummaryListResponse"/>
1188
+ </wsdl:operation>
1189
+ <wsdl:operation name="listrakRemarketingReviewUpdateList">
1190
+ <wsdl:documentation>Get review list</wsdl:documentation>
1191
+ <wsdl:input message="typens:listrakRemarketingReviewUpdateListRequest"/>
1192
+ <wsdl:output
1193
+ message="typens:listrakRemarketingReviewUpdateListResponse"/>
1194
+ </wsdl:operation>
1195
+ <wsdl:operation name="listrakRemarketingRatingSummaryUpdateList">
1196
+ <wsdl:documentation>Get rating summary list</wsdl:documentation>
1197
+ <wsdl:input
1198
+ message="typens:listrakRemarketingRatingSummaryUpdateListRequest"/>
1199
+ <wsdl:output
1200
+ message="typens:listrakRemarketingRatingSummaryUpdateListResponse"/>
1201
+ </wsdl:operation>
1202
+ <wsdl:operation name="listrakRemarketingReviewDeleteList">
1203
+ <wsdl:documentation>Get deleted reviews list</wsdl:documentation>
1204
+ <wsdl:input message="typens:listrakRemarketingReviewDeleteListRequest"/>
1205
+ <wsdl:output
1206
+ message="typens:listrakRemarketingReviewDeleteListResponse"/>
1207
+ </wsdl:operation>
1208
+ <wsdl:operation name="listrakRemarketingReviewUpdatePurge">
1209
+ <wsdl:documentation>Get deleted reviews list</wsdl:documentation>
1210
+ <wsdl:input message="typens:listrakRemarketingReviewUpdatePurgeRequest"/>
1211
+ <wsdl:output
1212
+ message="typens:listrakRemarketingReviewUpdatePurgeResponse"/>
1213
+ </wsdl:operation>
1214
+ </wsdl:portType>
1215
+ <wsdl:binding name="{{var wsdl.handler}}Binding"
1216
+ type="typens:{{var wsdl.handler}}PortType">
1217
+ <soap:binding style="document"
1218
+ transport="http://schemas.xmlsoap.org/soap/http"/>
1219
+ <wsdl:operation name="listrakRemarketingAbandonedCartList">
1220
+ <soap:operation soapAction=""/>
1221
+ <wsdl:input>
1222
+ <soap:body use="literal"/>
1223
+ </wsdl:input>
1224
+ <wsdl:output>
1225
+ <soap:body use="literal"/>
1226
+ </wsdl:output>
1227
+ </wsdl:operation>
1228
+ <wsdl:operation name="listrakRemarketingAbandonedCartPurge">
1229
+ <soap:operation soapAction=""/>
1230
+ <wsdl:input>
1231
+ <soap:body use="literal"/>
1232
+ </wsdl:input>
1233
+ <wsdl:output>
1234
+ <soap:body use="literal"/>
1235
+ </wsdl:output>
1236
+ </wsdl:operation>
1237
+ <wsdl:operation name="listrakRemarketingClickList">
1238
+ <soap:operation soapAction=""/>
1239
+ <wsdl:input>
1240
+ <soap:body use="literal"/>
1241
+ </wsdl:input>
1242
+ <wsdl:output>
1243
+ <soap:body use="literal"/>
1244
+ </wsdl:output>
1245
+ </wsdl:operation>
1246
+ <wsdl:operation name="listrakRemarketingClickPurge">
1247
+ <soap:operation soapAction=""/>
1248
+ <wsdl:input>
1249
+ <soap:body use="literal"/>
1250
+ </wsdl:input>
1251
+ <wsdl:output>
1252
+ <soap:body use="literal"/>
1253
+ </wsdl:output>
1254
+ </wsdl:operation>
1255
+ <wsdl:operation name="listrakRemarketingLogList">
1256
+ <soap:operation soapAction=""/>
1257
+ <wsdl:input>
1258
+ <soap:body use="literal"/>
1259
+ </wsdl:input>
1260
+ <wsdl:output>
1261
+ <soap:body use="literal"/>
1262
+ </wsdl:output>
1263
+ </wsdl:operation>
1264
+ <wsdl:operation name="listrakRemarketingLogPurge">
1265
+ <soap:operation soapAction=""/>
1266
+ <wsdl:input>
1267
+ <soap:body use="literal"/>
1268
+ </wsdl:input>
1269
+ <wsdl:output>
1270
+ <soap:body use="literal"/>
1271
+ </wsdl:output>
1272
+ </wsdl:operation>
1273
+ <wsdl:operation name="listrakRemarketingLogToggle">
1274
+ <soap:operation soapAction=""/>
1275
+ <wsdl:input>
1276
+ <soap:body use="literal"/>
1277
+ </wsdl:input>
1278
+ <wsdl:output>
1279
+ <soap:body use="literal"/>
1280
+ </wsdl:output>
1281
+ </wsdl:operation>
1282
+ <wsdl:operation name="listrakRemarketingOrderList">
1283
+ <soap:operation soapAction=""/>
1284
+ <wsdl:input>
1285
+ <soap:body use="literal"/>
1286
+ </wsdl:input>
1287
+ <wsdl:output>
1288
+ <soap:body use="literal"/>
1289
+ </wsdl:output>
1290
+ </wsdl:operation>
1291
+ <wsdl:operation name="listrakRemarketingOrderStatusList">
1292
+ <soap:operation soapAction=""/>
1293
+ <wsdl:input>
1294
+ <soap:body use="literal"/>
1295
+ </wsdl:input>
1296
+ <wsdl:output>
1297
+ <soap:body use="literal"/>
1298
+ </wsdl:output>
1299
+ </wsdl:operation>
1300
+ <wsdl:operation name="listrakRemarketingProductList">
1301
+ <soap:operation soapAction=""/>
1302
+ <wsdl:input>
1303
+ <soap:body use="literal"/>
1304
+ </wsdl:input>
1305
+ <wsdl:output>
1306
+ <soap:body use="literal"/>
1307
+ </wsdl:output>
1308
+ </wsdl:operation>
1309
+ <wsdl:operation name="listrakRemarketingSubscriberList">
1310
+ <soap:operation soapAction=""/>
1311
+ <wsdl:input>
1312
+ <soap:body use="literal"/>
1313
+ </wsdl:input>
1314
+ <wsdl:output>
1315
+ <soap:body use="literal"/>
1316
+ </wsdl:output>
1317
+ </wsdl:operation>
1318
+ <wsdl:operation name="listrakRemarketingSubscriberPurge">
1319
+ <soap:operation soapAction=""/>
1320
+ <wsdl:input>
1321
+ <soap:body use="literal"/>
1322
+ </wsdl:input>
1323
+ <wsdl:output>
1324
+ <soap:body use="literal"/>
1325
+ </wsdl:output>
1326
+ </wsdl:operation>
1327
+ <wsdl:operation name="listrakRemarketingCustomerList">
1328
+ <soap:operation soapAction=""/>
1329
+ <wsdl:input>
1330
+ <soap:body use="literal"/>
1331
+ </wsdl:input>
1332
+ <wsdl:output>
1333
+ <soap:body use="literal"/>
1334
+ </wsdl:output>
1335
+ </wsdl:operation>
1336
+ <wsdl:operation name="listrakRemarketingInfoList">
1337
+ <soap:operation soapAction=""/>
1338
+ <wsdl:input>
1339
+ <soap:body use="literal"/>
1340
+ </wsdl:input>
1341
+ <wsdl:output>
1342
+ <soap:body use="literal"/>
1343
+ </wsdl:output>
1344
+ </wsdl:operation>
1345
+ <wsdl:operation name="listrakRemarketingReviewList">
1346
+ <soap:operation soapAction=""/>
1347
+ <wsdl:input>
1348
+ <soap:body use="literal"/>
1349
+ </wsdl:input>
1350
+ <wsdl:output>
1351
+ <soap:body use="literal"/>
1352
+ </wsdl:output>
1353
+ </wsdl:operation>
1354
+ <wsdl:operation name="listrakRemarketingRatingSummaryList">
1355
+ <soap:operation soapAction=""/>
1356
+ <wsdl:input>
1357
+ <soap:body use="literal"/>
1358
+ </wsdl:input>
1359
+ <wsdl:output>
1360
+ <soap:body use="literal"/>
1361
+ </wsdl:output>
1362
+ </wsdl:operation>
1363
+ <wsdl:operation name="listrakRemarketingReviewUpdateList">
1364
+ <soap:operation soapAction=""/>
1365
+ <wsdl:input>
1366
+ <soap:body use="literal"/>
1367
+ </wsdl:input>
1368
+ <wsdl:output>
1369
+ <soap:body use="literal"/>
1370
+ </wsdl:output>
1371
+ </wsdl:operation>
1372
+ <wsdl:operation name="listrakRemarketingRatingSummaryUpdateList">
1373
+ <soap:operation soapAction=""/>
1374
+ <wsdl:input>
1375
+ <soap:body use="literal"/>
1376
+ </wsdl:input>
1377
+ <wsdl:output>
1378
+ <soap:body use="literal"/>
1379
+ </wsdl:output>
1380
+ </wsdl:operation>
1381
+ <wsdl:operation name="listrakRemarketingReviewDeleteList">
1382
+ <soap:operation soapAction=""/>
1383
+ <wsdl:input>
1384
+ <soap:body use="literal"/>
1385
+ </wsdl:input>
1386
+ <wsdl:output>
1387
+ <soap:body use="literal"/>
1388
+ </wsdl:output>
1389
+ </wsdl:operation>
1390
+ <wsdl:operation name="listrakRemarketingReviewUpdatePurge">
1391
+ <soap:operation soapAction=""/>
1392
+ <wsdl:input>
1393
+ <soap:body use="literal"/>
1394
+ </wsdl:input>
1395
+ <wsdl:output>
1396
+ <soap:body use="literal"/>
1397
+ </wsdl:output>
1398
+ </wsdl:operation>
1399
+ </wsdl:binding>
1400
+ <wsdl:service name="{{var wsdl.name}}Service">
1401
+ <wsdl:port name="{{var wsdl.handler}}Port"
1402
+ binding="typens:{{var wsdl.handler}}Binding">
1403
+ <soap:address location="{{var wsdl.url}}"/>
1404
+ </wsdl:port>
1405
+ </wsdl:service>
1406
  </wsdl:definitions>
app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-install-1.0.0.php CHANGED
@@ -1,11 +1,22 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  $installer = $this;
6
  $installer->startSetup();
7
 
8
- $installer->run("
 
9
  DROP TABLE IF EXISTS {$this->getTable('listrak/session')};
10
  CREATE TABLE {$this->getTable('listrak/session')} (
11
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
@@ -67,10 +78,14 @@ CREATE TABLE IF NOT EXISTS {$this->getTable('listrak/log')} (
67
  KEY `log_type_id` (`log_type_id`)
68
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
69
 
70
- INSERT INTO {$this->getTable('listrak/emailcapture')} (`emailcapture_id` ,`page` ,`field_id`) VALUES (NULL , '/checkout/onepage/index', 'billing:email');
71
- INSERT INTO {$this->getTable('listrak/emailcapture')} (`emailcapture_id` ,`page` ,`field_id`) VALUES (NULL , '/checkout/onepage/index', 'login-email');
72
- INSERT INTO {$this->getTable('listrak/emailcapture')} (`emailcapture_id` ,`page` ,`field_id`) VALUES (NULL , '*', 'newsletter');
 
 
 
73
 
74
- ");
 
75
 
76
  $installer->endSetup();
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  $installer = $this;
16
  $installer->startSetup();
17
 
18
+ $installer->run(
19
+ "
20
  DROP TABLE IF EXISTS {$this->getTable('listrak/session')};
21
  CREATE TABLE {$this->getTable('listrak/session')} (
22
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
78
  KEY `log_type_id` (`log_type_id`)
79
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
80
 
81
+ INSERT INTO {$this->getTable('listrak/emailcapture')} (`emailcapture_id` ,`page` ,`field_id`)
82
+ VALUES (NULL , '/checkout/onepage/index', 'billing:email');
83
+ INSERT INTO {$this->getTable('listrak/emailcapture')} (`emailcapture_id` ,`page` ,`field_id`)
84
+ VALUES (NULL , '/checkout/onepage/index', 'login-email');
85
+ INSERT INTO {$this->getTable('listrak/emailcapture')} (`emailcapture_id` ,`page` ,`field_id`)
86
+ VALUES (NULL , '*', 'newsletter');
87
 
88
+ "
89
+ );
90
 
91
  $installer->endSetup();
app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.0.0-1.0.1.php CHANGED
@@ -1,17 +1,29 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  $installer = $this;
6
  $installer->startSetup();
7
 
8
- $installer->run("
 
9
  ALTER TABLE {$this->getTable('listrak/session')} ADD `ips` VARCHAR( 1000 ) CHARACTER SET ascii COLLATE ascii_general_ci
10
- ");
11
-
 
12
  try {
13
- Mage::getModel("listrak/log")->addMessage("1.0.0-1.0.1 upgrade");
 
14
  }
15
- catch(Exception $e) { }
16
 
17
  $installer->endSetup();
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  $installer = $this;
16
  $installer->startSetup();
17
 
18
+ $installer->run(
19
+ "
20
  ALTER TABLE {$this->getTable('listrak/session')} ADD `ips` VARCHAR( 1000 ) CHARACTER SET ascii COLLATE ascii_general_ci
21
+ "
22
+ );
23
+
24
  try {
25
+ Mage::getModel("listrak/log")->addMessage("1.0.0-1.0.1 upgrade");
26
+ } catch (Exception $e) {
27
  }
 
28
 
29
  $installer->endSetup();
app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.0.8-1.0.9.php CHANGED
@@ -1,17 +1,30 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  $installer = $this;
6
  $installer->startSetup();
7
 
8
- $installer->run("
9
- INSERT INTO {$this->getTable('listrak/emailcapture')} (`emailcapture_id` ,`page` ,`field_id`) VALUES (NULL , '*', 'ltkmodal-email');
10
- ");
11
-
 
 
 
12
  try {
13
- Mage::getModel("listrak/log")->addMessage("1.0.8-1.0.9 upgrade");
 
14
  }
15
- catch(Exception $e) { }
16
 
17
  $installer->endSetup();
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  $installer = $this;
16
  $installer->startSetup();
17
 
18
+ $installer->run(
19
+ "
20
+ INSERT INTO {$this->getTable('listrak/emailcapture')} (`emailcapture_id` ,`page` ,`field_id`)
21
+ VALUES (NULL , '*', 'ltkmodal-email');
22
+ "
23
+ );
24
+
25
  try {
26
+ Mage::getModel("listrak/log")->addMessage("1.0.8-1.0.9 upgrade");
27
+ } catch (Exception $e) {
28
  }
 
29
 
30
  $installer->endSetup();
app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.1.0-1.1.1.php CHANGED
@@ -1,18 +1,31 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // © 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  $installer = $this;
6
  $installer->startSetup();
7
 
8
- $installer->run("
9
- ALTER TABLE {$this->getTable('listrak/session')} ADD `pi_id` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL
10
- ");
11
-
 
 
 
12
  try {
13
- Mage::getModel("listrak/log")->addMessage("1.1.0-1.1.1 upgrade");
 
14
  }
15
- catch(Exception $e) { }
16
 
17
  $installer->endSetup();
18
 
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  $installer = $this;
16
  $installer->startSetup();
17
 
18
+ $installer->run(
19
+ "
20
+ ALTER TABLE {$this->getTable('listrak/session')}
21
+ ADD `pi_id` VARCHAR( 32 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL
22
+ "
23
+ );
24
+
25
  try {
26
+ Mage::getModel("listrak/log")->addMessage("1.1.0-1.1.1 upgrade");
27
+ } catch (Exception $e) {
28
  }
 
29
 
30
  $installer->endSetup();
31
 
app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.1.3-1.1.4.php CHANGED
@@ -1,11 +1,22 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.0.0
3
- // 2011 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  $installer = $this;
6
  $installer->startSetup();
7
 
8
- $installer->run("
 
9
  DROP TABLE IF EXISTS {$this->getTable('listrak/review_update')};
10
  CREATE TABLE {$this->getTable('listrak/review_update')} (
11
  `update_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
@@ -16,13 +27,13 @@ CREATE TABLE {$this->getTable('listrak/review_update')} (
16
  `activity` tinyint(4) NOT NULL,
17
  PRIMARY KEY (`update_id`)
18
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
19
- ");
 
20
 
21
  try {
22
- Mage::getModel("listrak/log")->addMessage("1.1.3-1.1.4 upgrade");
 
23
  }
24
- catch(Exception $e) { }
25
 
26
  $installer->endSetup();
27
 
28
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  $installer = $this;
16
  $installer->startSetup();
17
 
18
+ $installer->run(
19
+ "
20
  DROP TABLE IF EXISTS {$this->getTable('listrak/review_update')};
21
  CREATE TABLE {$this->getTable('listrak/review_update')} (
22
  `update_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
27
  `activity` tinyint(4) NOT NULL,
28
  PRIMARY KEY (`update_id`)
29
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
30
+ "
31
+ );
32
 
33
  try {
34
+ Mage::getModel("listrak/log")->addMessage("1.1.3-1.1.4 upgrade");
35
+ } catch (Exception $e) {
36
  }
 
37
 
38
  $installer->endSetup();
39
 
 
app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.1.4-1.1.5.php CHANGED
@@ -1,11 +1,22 @@
1
  <?php
2
- // Listrak Remarketing Magento Extension Ver. 1.1.5
3
- // 2013 Listrak, Inc.
 
 
 
 
 
 
 
 
 
 
4
 
5
  $installer = $this;
6
  $installer->startSetup();
7
 
8
- $installer->run("
 
9
  DROP TABLE IF EXISTS {$this->getTable('listrak/product_attribute_set_map')};
10
  CREATE TABLE {$this->getTable('listrak/product_attribute_set_map')} (
11
  `map_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
@@ -19,25 +30,13 @@ CREATE TABLE {$this->getTable('listrak/product_attribute_set_map')} (
19
  PRIMARY KEY (`map_id`),
20
  KEY `idx_attribute_set_id` (`attribute_set_id`)
21
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
22
- ");
 
23
 
24
  try {
25
- Mage::getModel("listrak/log")->addMessage("1.1.4-1.1.5 upgrade");
 
26
  }
27
- catch(Exception $e) { }
28
-
29
- try {
30
- $client = new Varien_Http_Client("http://magento.listrakbi.com/Install.ashx");
31
- $client->setMethod(Varien_Http_Client::POST);
32
- $client->setParameterPost("Listrak Extension Version", "1.1.5");
33
- $client->setParameterPost("Magento Version", Mage::getVersion());
34
- $client->setParameterPost("Install URL", "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
35
- $client->setParameterPost("IP Address", "$_SERVER[SERVER_ADDR]");
36
- $client->request();
37
- }
38
- catch(Exception $e) { }
39
-
40
 
41
  $installer->endSetup();
42
 
43
- ?>
1
  <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.0.0
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2011 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
 
15
  $installer = $this;
16
  $installer->startSetup();
17
 
18
+ $installer->run(
19
+ "
20
  DROP TABLE IF EXISTS {$this->getTable('listrak/product_attribute_set_map')};
21
  CREATE TABLE {$this->getTable('listrak/product_attribute_set_map')} (
22
  `map_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
30
  PRIMARY KEY (`map_id`),
31
  KEY `idx_attribute_set_id` (`attribute_set_id`)
32
  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
33
+ "
34
+ );
35
 
36
  try {
37
+ Mage::getModel("listrak/log")->addMessage("1.1.4-1.1.5 upgrade");
38
+ } catch (Exception $e) {
39
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
  $installer->endSetup();
42
 
 
app/code/community/Listrak/Remarketing/sql/listrak_remarketing_setup/mysql4-upgrade-1.1.5-1.1.6.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.6
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ $installer = $this;
16
+ $installer->startSetup();
17
+
18
+ try {
19
+ Mage::getModel("listrak/log")->addMessage("1.1.5-1.1.6 upgrade");
20
+ } catch (Exception $e) {
21
+ }
22
+
23
+ try {
24
+ $client = new Varien_Http_Client("http://magento.listrakbi.com/Install.ashx");
25
+ $client->setMethod(Varien_Http_Client::POST);
26
+ $client->setParameterPost("Listrak Extension Version", "1.1.6");
27
+ $client->setParameterPost("Magento Version", Mage::getVersion());
28
+ $client->setParameterPost("Install URL", "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
29
+ $client->setParameterPost("IP Address", "$_SERVER[SERVER_ADDR]");
30
+ $client->request();
31
+ } catch (Exception $e) {
32
+ }
33
+
34
+ $installer->endSetup();
35
+
app/design/adminhtml/default/default/layout/remarketing.xml CHANGED
@@ -1,13 +1,15 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * Listrak Remarketing Magento Extension Ver. 1.0.0 - © 2011 Listrak, Inc.
5
  */
6
  -->
7
  <layout>
8
- <default>
9
- <reference name="notifications">
10
- <block type="remarketing/adminhtml_notifications" name="remarketing_notifications" as="remarketing_notifications" />
11
- </reference>
12
- </default>
 
 
13
  </layout>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * Listrak Remarketing Magento Extension Ver. 1.0.0 - Copyright (c) 2011 Listrak, Inc.
5
  */
6
  -->
7
  <layout>
8
+ <default>
9
+ <reference name="notifications">
10
+ <block type="remarketing/adminhtml_notifications"
11
+ name="remarketing_notifications"
12
+ as="remarketing_notifications"/>
13
+ </reference>
14
+ </default>
15
  </layout>
app/design/adminhtml/default/default/template/listrak/remarketing/productattributes.phtml CHANGED
@@ -1,21 +1,33 @@
1
  <?php
2
  /**
3
- * @see Listrak_Remarketing_Block_Adminhtml_Productattributes
 
 
 
 
 
 
 
 
 
 
4
  */
5
  ?>
6
  <div class="content-header">
7
- <table cellspacing="0">
8
- <tr>
9
- <td style="width:50%;"><h3 class="icon-head head-products"><?php echo Mage::helper('remarketing')->__('Product Attributes') ?></h3></td>
10
- <td class="a-right">
11
- <?php echo $this->getButtonsHtml() ?>
12
- </td>
13
- </tr>
14
- </table>
 
 
15
  </div>
16
- <?php if( sizeof($this->setsWithoutBrandAttribute()) > 3 ): ?>
17
- <?php echo $this->getInitBrandsHtml();?>
18
- <?php endif;?>
19
  <div>
20
- <?php echo $this->getGridHtml() ?>
21
  </div>
1
  <?php
2
  /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ * @see Listrak_Remarketing_Block_Adminhtml_Productattributes
14
  */
15
  ?>
16
  <div class="content-header">
17
+ <table cellspacing="0">
18
+ <tr>
19
+ <td style="width:50%;"><h3
20
+ class="icon-head head-products"><?php echo Mage::helper('remarketing')->__('Product Attributes') ?></h3>
21
+ </td>
22
+ <td class="a-right">
23
+ <?php echo '' . $this->getButtonsHtml() ?>
24
+ </td>
25
+ </tr>
26
+ </table>
27
  </div>
28
+ <?php if (sizeof($this->setsWithoutBrandAttribute()) > 3): ?>
29
+ <?php echo '' . $this->getInitBrandsHtml(); ?>
30
+ <?php endif; ?>
31
  <div>
32
+ <?php echo '' . $this->getGridHtml() ?>
33
  </div>
app/design/adminhtml/default/default/template/listrak/remarketing/productattributes/form/categories.phtml CHANGED
@@ -1,137 +1,158 @@
1
- <?php
2
- /**
3
- * Listrak Remarketing Magento Extension Ver. 1.1.5
4
- * © 2013 Listrak, Inc.
5
- */
6
- ?>
7
- <div class="entry-edit">
8
- <div class="entry-edit-head">
9
- <h4 class="icon-head head-edit-form fieldset-legend">
10
- <?php echo Mage::helper('catalog')->__('Category and Subcategory') ?>
11
- </h4>
12
- </div>
13
- <fieldset>
14
-
15
- <legend>
16
- <?php echo Mage::helper('remarketing')->__('Product Categories') ?>
17
- </legend>
18
- <table cellspacing="0" class="form-list" id="table_productattributes_categories">
19
- <tr>
20
- <td class="label">
21
- <label for="categories_source">
22
- <?php echo Mage::helper('remarketing')->__('Source') ?>
23
- </label>
24
- </td>
25
- <td class="value">
26
- <select id="categories_source" name="categories_source" class="select">
27
- <option value="default"
28
- <?php if ($this->getCategoriesSource() == 'default'): ?> selected="selected"<?php endif; ?>>
29
- <?php echo Mage::helper('remarketing')->__('Use Catalog Configuration') ?>
30
- </option>
31
- <option value="attributes"
32
- <?php if ($this->getCategoriesSource() == 'attributes'): ?> selected="selected"<?php endif; ?>>
33
- <?php echo Mage::helper('remarketing')->__('Map from Product Attributes') ?>
34
- </option>
35
- </select>
36
- <input type="hidden" id="categories_source_default" value="<?php echo $this->getConfigCategoriesSource(); ?>" />
37
-
38
- <?php $_checked = $this->getUseConfigCategoriesSource() ? 'checked="checked"' : '' ?>
39
- <input type="checkbox" id="categories_use_config_source" name="use_config_categories_source" value="1" <?php echo $_checked ?> onclick="toggleValueElements(this, this.parentNode);" class="checkbox"/>
40
- <label for="categories_use_config_source" class="normal">
41
- <?php echo Mage::helper('catalog')->__('Use Listrak Configuration Settings') ?>
42
- </label>
43
- </td>
44
- <td class="value scope-label">
45
- <?php echo Mage::helper('remarketing')->__('[GLOBAL]') ?>
46
- </td>
47
- </tr>
48
-
49
- <tr>
50
- <td class="label">
51
- <label for="categories_category_attribute">
52
- <?php echo Mage::helper('remarketing')->__('Category Attribute') ?>
53
- </label>
54
- </td>
55
- <td class="value">
56
- <select id="categories_category_attribute" name="categories_category_attribute" class="listrak_validate_unique_selection_category_attribute select">
57
- <option value="">- No Category Attribute -</option>
58
- <?php foreach ($this->getAttributeOptions() as $key => $option): ?>
59
- <?php $_selected = ($key == $this->getCategoryAttributeCode()) ? 'selected="selected"' : '' ?>
60
- <option value="<?php echo $key ?>" <?php echo $_selected ?>><?php echo $option ?></option>
61
- <?php endforeach; ?>
62
- </select>
63
- </td>
64
- <td class="value scope-label">
65
- <?php echo Mage::helper('remarketing')->__('[GLOBAL]') ?>
66
- </td>
67
- </tr>
68
-
69
- <tr>
70
- <td class="label">
71
- <label for="categories_subcategory_attribute">
72
- <?php echo Mage::helper('catalog')->__('Subcategory Attribute') ?>
73
- </label>
74
- </td>
75
- <td class="value">
76
- <select id="categories_subcategory_attribute" name="categories_subcategory_attribute" class="listrak_validate_unique_selection_subcategory_attribute select">
77
- <option value="">- No Subcategory Attribute -</option>
78
- <?php foreach ($this->getAttributeOptions() as $key => $option): ?>
79
- <?php $_selected = ($key == $this->getSubcategoryAttributeCode()) ? 'selected="selected"' : '' ?>
80
- <option value="<?php echo $key ?>" <?php echo $_selected ?>><?php echo $option ?></option>
81
- <?php endforeach; ?>
82
- </select>
83
- </td>
84
- <td class="value scope-label">
85
- <?php echo Mage::helper('catalog')->__('[GLOBAL]') ?>
86
- </td>
87
- </tr>
88
- </table>
89
- <script type="text/javascript">
90
- //<![CDATA[
91
- function changeCategoriesSourceOption()
92
- {
93
- var configSource = $('categories_use_config_source').checked;
94
- var catSource = configSource ? $('categories_source_default').value : $('categories_source').value;
95
- var showSelect = catSource == 'attributes';
96
-
97
- var catRow = $('categories_category_attribute').up('tr');
98
- var subcatRow = $('categories_subcategory_attribute').up('tr');
99
-
100
- if (showSelect) {
101
- catRow.show();
102
- subcatRow.show();
103
- }
104
- else {
105
- catRow.hide();
106
- subcatRow.hide();
107
- }
108
- }
109
-
110
- toggleValueElements($('categories_use_config_source'), $('categories_use_config_source').parentNode);
111
-
112
- Event.observe($('categories_source'), 'change', changeCategoriesSourceOption);
113
- Event.observe($('categories_use_config_source'), 'change', changeCategoriesSourceOption);
114
- changeCategoriesSourceOption();
115
-
116
- Validation.add('listrak_validate_unique_selection_category_attribute', 'You may select an attribute only once.', function(attr) {
117
- if (attr == '')
118
- return true;
119
-
120
- // make sure brand doesn't have this value
121
- var brandAttr = $('brand_attribute');
122
- return brandAttr == null || !(brandAttr.selectedIndex > 0 && brandAttr.value == attr);
123
- });
124
-
125
- Validation.add('listrak_validate_unique_selection_subcategory_attribute', 'You may select an attribute only once.', function(attr) {
126
- if (attr == '')
127
- return true;
128
-
129
- // make sure neither brand nor category has the same value
130
- var brandAttr = $('brand_attribute');
131
- var catAttr = $('categories_category_attribute');
132
- return ((brandAttr == null || !(brandAttr.selectedIndex > 0 && brandAttr.value == attr)) && !(catAttr.selectedIndex > 0 && catAttr.value == attr));
133
- });
134
- //]]>
135
- </script>
136
- </fieldset>
137
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ */
14
+
15
+ ?>
16
+ <div class="entry-edit">
17
+ <div class="entry-edit-head">
18
+ <h4 class="icon-head head-edit-form fieldset-legend">
19
+ <?php echo Mage::helper('catalog')->__('Category and Subcategory') ?>
20
+ </h4>
21
+ </div>
22
+ <fieldset>
23
+
24
+ <legend>
25
+ <?php echo Mage::helper('remarketing')->__('Product Categories') ?>
26
+ </legend>
27
+ <table cellspacing="0" class="form-list"
28
+ id="table_productattributes_categories">
29
+ <tr>
30
+ <td class="label">
31
+ <label for="categories_source">
32
+ <?php echo Mage::helper('remarketing')->__('Source') ?>
33
+ </label>
34
+ </td>
35
+ <td class="value">
36
+ <select id="categories_source" name="categories_source"
37
+ class="select">
38
+ <option value="default"
39
+ <?php if ($this->getCategoriesSource() == 'default'): ?> selected="selected"<?php endif; ?>>
40
+ <?php echo Mage::helper('remarketing')->__('Use Catalog Configuration') ?>
41
+ </option>
42
+ <option value="attributes"
43
+ <?php if ($this->getCategoriesSource() == 'attributes'): ?> selected="selected"<?php endif; ?>>
44
+ <?php echo Mage::helper('remarketing')->__('Map from Product Attributes') ?>
45
+ </option>
46
+ </select>
47
+ <input type="hidden" id="categories_source_default"
48
+ value="<?php echo $this->getConfigCategoriesSource(); ?>"/>
49
+
50
+ <?php $_checked = $this->getUseConfigCategoriesSource() ? 'checked="checked"' : '' ?>
51
+ <input type="checkbox" id="categories_use_config_source"
52
+ name="use_config_categories_source"
53
+ value="1" <?php echo $_checked ?>
54
+ onclick="toggleValueElements(this, this.parentNode);"
55
+ class="checkbox"/>
56
+ <label for="categories_use_config_source" class="normal">
57
+ <?php echo Mage::helper('catalog')->__('Use Listrak Configuration Settings') ?>
58
+ </label>
59
+ </td>
60
+ <td class="value scope-label">
61
+ <?php echo Mage::helper('remarketing')->__('[GLOBAL]') ?>
62
+ </td>
63
+ </tr>
64
+
65
+ <tr>
66
+ <td class="label">
67
+ <label for="categories_category_attribute">
68
+ <?php echo Mage::helper('remarketing')->__('Category Attribute') ?>
69
+ </label>
70
+ </td>
71
+ <td class="value">
72
+ <select id="categories_category_attribute"
73
+ name="categories_category_attribute"
74
+ class="listrak_validate_unique_selection_category_attribute select">
75
+ <option value="">- No Category Attribute -</option>
76
+ <?php foreach ($this->getAttributeOptions() as $key => $option): ?>
77
+ <?php $_selected = ($key == $this->getCategoryAttributeCode()) ? 'selected="selected"' : '' ?>
78
+ <option
79
+ value="<?php echo $key ?>" <?php echo $_selected ?>><?php echo $option ?></option>
80
+ <?php endforeach; ?>
81
+ </select>
82
+ </td>
83
+ <td class="value scope-label">
84
+ <?php echo Mage::helper('remarketing')->__('[GLOBAL]') ?>
85
+ </td>
86
+ </tr>
87
+
88
+ <tr>
89
+ <td class="label">
90
+ <label for="categories_subcategory_attribute">
91
+ <?php echo Mage::helper('catalog')->__('Subcategory Attribute') ?>
92
+ </label>
93
+ </td>
94
+ <td class="value">
95
+ <select id="categories_subcategory_attribute"
96
+ name="categories_subcategory_attribute"
97
+ class="listrak_validate_unique_selection_subcategory_attribute select">
98
+ <option value="">- No Subcategory Attribute -</option>
99
+ <?php foreach ($this->getAttributeOptions() as $key => $option): ?>
100
+ <?php $_selected = ($key == $this->getSubcategoryAttributeCode()) ? 'selected="selected"' : '' ?>
101
+ <option
102
+ value="<?php echo $key ?>" <?php echo $_selected ?>><?php echo $option ?></option>
103
+ <?php endforeach; ?>
104
+ </select>
105
+ </td>
106
+ <td class="value scope-label">
107
+ <?php echo Mage::helper('catalog')->__('[GLOBAL]') ?>
108
+ </td>
109
+ </tr>
110
+ </table>
111
+ <script type="text/javascript">
112
+ //<![CDATA[
113
+ function changeCategoriesSourceOption() {
114
+ var configSource = $('categories_use_config_source').checked;
115
+ var catSource = configSource ? $('categories_source_default').value : $('categories_source').value;
116
+ var showSelect = catSource == 'attributes';
117
+
118
+ var catRow = $('categories_category_attribute').up('tr');
119
+ var subcatRow = $('categories_subcategory_attribute').up('tr');
120
+
121
+ if (showSelect) {
122
+ catRow.show();
123
+ subcatRow.show();
124
+ }
125
+ else {
126
+ catRow.hide();
127
+ subcatRow.hide();
128
+ }
129
+ }
130
+
131
+ toggleValueElements($('categories_use_config_source'), $('categories_use_config_source').parentNode);
132
+
133
+ Event.observe($('categories_source'), 'change', changeCategoriesSourceOption);
134
+ Event.observe($('categories_use_config_source'), 'change', changeCategoriesSourceOption);
135
+ changeCategoriesSourceOption();
136
+
137
+ Validation.add('listrak_validate_unique_selection_category_attribute', 'You may select an attribute only once.', function (attr) {
138
+ if (attr == '')
139
+ return true;
140
+
141
+ // make sure brand doesn't have this value
142
+ var brandAttr = $('brand_attribute');
143
+ return brandAttr == null || !(brandAttr.selectedIndex > 0 && brandAttr.value == attr);
144
+ });
145
+
146
+ Validation.add('listrak_validate_unique_selection_subcategory_attribute', 'You may select an attribute only once.', function (attr) {
147
+ if (attr == '')
148
+ return true;
149
+
150
+ // make sure neither brand nor category has the same value
151
+ var brandAttr = $('brand_attribute');
152
+ var catAttr = $('categories_category_attribute');
153
+ return ((brandAttr == null || !(brandAttr.selectedIndex > 0 && brandAttr.value == attr)) && !(catAttr.selectedIndex > 0 && catAttr.value == attr));
154
+ });
155
+ //]]>
156
+ </script>
157
+ </fieldset>
158
+ </div>
app/design/adminhtml/default/default/template/listrak/remarketing/productattributes/form/initbrands.phtml CHANGED
@@ -1,44 +1,59 @@
1
  <?php
2
  /**
3
- * @see Listrak_Remarketing_Block_Adminhtml_Productattributes_Init_Brands
 
 
 
 
 
 
 
 
 
 
4
  */
5
  ?>
6
  <div class="message">
7
- <div class="mainText">Multiple attribute sets are missing a brand attribute mapping.</div>
8
- <div class="note">Please select an attribute from the dropdown to use for the attribute sets that include the selected attribute.</div>
9
- <div class="form">
10
- <?php echo $this->getFormInitScripts() ?>
11
- <?php echo $this->getFormHtml(); ?>
12
- <script type="text/javascript">
13
- bulkassignForm = new varienForm('bulk_form', '');
14
- $('bulkassign_submit').onclick = function() {
15
- bulkassignForm.submit();
16
- };
17
- </script>
18
- <?php echo $this->getFormScripts() ?>
19
- </div>
 
 
 
 
 
20
  </div>
21
- <style>
22
- .message {
23
- margin-bottom: 15px !important;
24
- min-height: 23px !important;
25
- padding: 8px 8px 4px 16px !important;
26
- border: 1px solid #FFD967 !important;
27
- background: 10px #FFFBF0 !important;
28
- }
29
-
30
- .mainText {
31
- color: #3D6611 !important;
32
- font-size: 0.95em !important;
33
- font-weight: bold !important;
34
- }
35
-
36
- .note {
37
- color: #777;
38
- font-size:0.9em !important;
39
- }
40
-
41
- .form {
42
- margin-top: 6px !important;
43
- }
44
  </style>
1
  <?php
2
  /**
3
+ * Listrak Remarketing Magento Extension Ver. 1.1.5
4
+ *
5
+ * PHP version 5
6
+ *
7
+ * @category Listrak
8
+ * @package Listrak_Remarketing
9
+ * @author Listrak Magento Team <magento@listrak.com>
10
+ * @copyright 2013 Listrak Inc
11
+ * @license http://s1.listrakbi.com/licenses/magento.txt License For Customer Use of Listrak Software
12
+ * @link http://www.listrak.com
13
+ * @see Listrak_Remarketing_Block_Adminhtml_Productattributes_Init_Brands
14
  */
15
  ?>
16
  <div class="message">
17
+ <div class="mainText">Multiple attribute sets are missing a brand attribute
18
+ mapping.
19
+ </div>
20
+ <div class="note">Please select an attribute from the dropdown to use for the
21
+ attribute sets that include the
22
+ selected attribute.
23
+ </div>
24
+ <div class="form">
25
+ <?php echo $this->getFormInitScripts() ?>
26
+ <?php echo $this->getFormHtml(); ?>
27
+ <script type="text/javascript">
28
+ bulkassignForm = new varienForm('bulk_form', '');
29
+ $('bulkassign_submit').onclick = function () {
30
+ bulkassignForm.submit();
31
+ };
32
+ </script>
33
+ <?php echo $this->getFormScripts() ?>
34
+ </div>
35
  </div>
36
+ <style>
37
+ .message {
38
+ margin-bottom: 15px !important;
39
+ min-height: 23px !important;
40
+ padding: 8px 8px 4px 16px !important;
41
+ border: 1px solid #FFD967 !important;
42
+ background: 10px #FFFBF0 !important;
43
+ }
44
+
45
+ .mainText {
46
+ color: #3D6611 !important;
47
+ font-size: 0.95em !important;
48
+ font-weight: bold !important;
49
+ }
50
+
51
+ .note {
52
+ color: #777;
53
+ font-size: 0.9em !important;
54
+ }
55
+
56
+ .form {
57
+ margin-top: 6px !important;
58
+ }
59
  </style>
app/design/frontend/base/default/layout/remarketing.xml CHANGED
@@ -1,14 +1,16 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * Listrak Remarketing Magento Extension Ver. 1.0.0 - © 2011 Listrak, Inc.
5
  */
6
  -->
7
  <layout>
8
  <default>
9
  <reference name="before_body_end">
10
- <block type="remarketing/ecjs" name="remarketing_ecjs" as="remarketing_ecjs" />
11
- <block type="remarketing/modal" name="remarketing_modal" as="remarketing_modal" />
 
 
12
  </reference>
13
  </default>
14
  </layout>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * Listrak Remarketing Magento Extension Ver. 1.0.0 - Copyright (c) 2011 Listrak, Inc.
5
  */
6
  -->
7
  <layout>
8
  <default>
9
  <reference name="before_body_end">
10
+ <block type="remarketing/ecjs" name="remarketing_ecjs"
11
+ as="remarketing_ecjs"/>
12
+ <block type="remarketing/modal" name="remarketing_modal"
13
+ as="remarketing_modal"/>
14
  </reference>
15
  </default>
16
  </layout>
app/etc/modules/Listrak_Remarketing.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
- * Listrak Remarketing Magento Extension Ver. 1.0.0 - © 2011 Listrak, Inc.
5
  */
6
  -->
7
  <config>
1
  <?xml version="1.0"?>
2
  <!--
3
  /**
4
+ * Listrak Remarketing Magento Extension Ver. 1.0.0 - Copyright (c) 2011 Listrak, Inc.
5
  */
6
  -->
7
  <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</version>
5
  <stability>stable</stability>
6
  <license uri="http://s1.listrakbi.com/licenses/magento.txt">Listrak EULA</license>
7
  <channel>community</channel>
@@ -46,13 +46,12 @@ To make sure your marketing list is always current, all newsletter subscribers a
46
  &#xD;
47
  &lt;p&gt;&lt;b&gt;About Listrak&lt;/b&gt;&lt;br /&gt;&#xD;
48
  Listrak works with online retailers to maximize marketing ROI by helping them reach optimal engagement with their customers. Our focus is on prompting dialog and interaction through email and mobile marketing to increase customer lifetime value.&lt;/p&gt;</description>
49
- <notes>Added support for product brand and category.&#xD;
50
- Added support for configurable products.&#xD;
51
- Added support for WS-I compliant API.</notes>
52
  <authors><author><name>Listrak</name><user>auto-converted</user><email>magento@listrak.com</email></author></authors>
53
- <date>2013-03-13</date>
54
- <time>14:44:36</time>
55
- <contents><target name="magecommunity"><dir name="Listrak"><dir name="Remarketing"><dir name="Block"><dir name="Adminhtml"><dir name="Abandonedcartreport"><file name="Grid.php" hash="dfff4ecf6bcba6756b91cda0a2290835"/></dir><dir name="Emailcapture"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="92a9e3b2bd634293b8a7162d84087db9"/></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><dir name="Productattributes"><dir name="Edit"><dir name="Tab"><dir name="Form"><file name="Brand.php" hash="b9c541642a6dc33324b49fb9f5d33704"/><file name="Categories.php" hash="b742aa9b9b81bc7dd97b1b2f341b6bf7"/></dir></dir><file name="Form.php" hash="81b446cc962137c87fee660e069f4a02"/><file name="Tabs.php" hash="1017fd97dda042f83b4cec43255153e4"/></dir><dir name="Init"><dir name="Brands"><file name="Form.php" hash="24371d35a17edc1e3dc45fbd6259ca36"/></dir><file name="Brands.php" hash="e49da5ec06aa13b11f4dc3fd8357e9a2"/></dir><file name="Edit.php" hash="46643579ff4e0f22a942e971443dab52"/><file name="Grid.php" hash="3448edcc2d457875e33d15a23670c846"/></dir><file name="Abandonedcartreport.php" hash="bc8cfafff4f3ce84f5e0b03418aba735"/><file name="Emailcapture.php" hash="accf0689467c5446e7605cad41e427b0"/><file name="Notifications.php" hash="3a02f6a6dad92636be25e43c82187e04"/><file name="Productattributes.php" hash="066eaf58d70c4bf4749b3fcf5bd80cea"/></dir><file name="Ecjs.php" hash="1d688b67533446025f495ecb4e8c9e5a"/><file name="Modal.php" hash="a8640436592cf3789c59a1b95f28599a"/></dir><dir name="Helper"><dir name="Product"><dir name="Attribute"><dir name="Set"><file name="Map.php" hash="95a611a6ec108616142c3f47c7c1b0d8"/></dir></dir></dir><dir name="Review"><file name="Update.php" hash="4418214678ef257817c07d71c7b74eef"/></dir><file name="Data.php" hash="95d44efd1e74f37ce0ca0583edd605f6"/><file name="Product.php" hash="03c4775020f6cfc01c1bb021a1f4dd6e"/></dir><dir name="Model"><dir name="Abandonedcart"><dir name="Api"><file name="V2.php" hash="c7b46e1feab677e41f4f9a3914e415fb"/></dir><file name="Api.php" hash="2c9753d12a71c079ec3b66767b084972"/></dir><dir name="Apiextension"><dir name="Api"><file name="V2.php" hash="ff5a5f68d92c8a790bb00282c30c1378"/></dir><file name="Api.php" hash="de92560881bd5390828427413ad8adaf"/></dir><dir name="Click"><dir name="Api"><file name="V2.php" hash="510ae6b8032ff54b5f43d94f447f35e2"/></dir><file name="Api.php" hash="584c289a1f62cbe655289b54c17df62a"/></dir><dir name="Log"><dir name="Api"><file name="V2.php" hash="ace9ca737ebefd47205886fdef504a05"/></dir><file name="Api.php" hash="0c4c6716b6b23bd89a85dd04d287904e"/></dir><dir name="Mysql4"><dir name="Abandonedcart"><file name="Collection.php" hash="01f43c07a5db53287f251e5721551a78"/></dir><dir name="Click"><file name="Collection.php" hash="ac88a96a8601e9629e5541221a8ff0d8"/></dir><dir name="Emailcapture"><file name="Collection.php" hash="983eefb82471caf514986948ff2a5a42"/></dir><dir name="Log"><file name="Collection.php" hash="976e70d5a5e1b1ac460e4d3ecd9362db"/></dir><dir name="Product"><dir name="Attribute"><dir name="Set"><dir name="Map"><file name="Collection.php" hash="83a5849c787fbea97f176bdae888b1f9"/></dir><file name="Map.php" hash="f16a9629bd4ef6866d11f5748741132b"/></dir></dir></dir><dir name="Review"><dir name="Update"><file name="Collection.php" hash="d9feaf6ff25b1b3612bf03dd57ee8d6c"/></dir><file name="Update.php" hash="32239591d41681ab01f8fd46cc7eddd8"/></dir><dir name="Session"><file name="Collection.php" hash="a9bcf4116bc67e6abffee3f396261c9e"/></dir><dir name="Subscriberupdate"><file name="Collection.php" hash="1fd68314a80e93f416815273f29bf9f5"/></dir><file name="Abandonedcart.php" hash="924fa4da3776dad7138c469fc66cd7b6"/><file name="Apiextension.php" hash="b243c6feafd1b2401541f96112b9f522"/><file name="Click.php" hash="17f6fecfc5b99d49558cd2fcfbb4e91d"/><file name="Emailcapture.php" hash="4750ef310e825734beb429587d3d31de"/><file name="Log.php" hash="4e7740928f1423e1c54de6299f83939d"/><file name="Session.php" hash="f0b0848720c12f3dc7b3bcbdc612c5fe"/><file name="Subscriberupdate.php" hash="f18f4873c12fa93963f805c40c3f555e"/></dir><dir name="Product"><dir name="Attribute"><dir name="Set"><file name="Map.php" hash="6da94e216ea2a670a4ca52b58c65b7c2"/></dir></dir><dir name="Category"><file name="Source.php" hash="b81e03493f4316d2894977c8634a473f"/></dir><file name="Attributes.php" hash="754a437c7c193e28524781c19cd514e5"/></dir><dir name="Review"><dir name="Update"><dir name="Api"><file name="V2.php" hash="51e0152349088b445e6e6e0ab11315a6"/></dir><file name="Api.php" hash="42a23cfa9ce897ffd40d9d2df9360916"/></dir><file name="Update.php" hash="4dde575584578a60a6ee2b21b0e48ff8"/></dir><file name="Abandonedcart.php" hash="1594f67eee181e974cb146ebd76c6d26"/><file name="Apiextension.php" hash="1a5964f749523d74c648d6609673fb08"/><file name="Click.php" hash="6c063eeb2f2a1d22edd2473dac6b1d45"/><file name="Emailcapture.php" hash="6a2be232addf49ca9bba708474705961"/><file name="Log.php" hash="624cde46b767a4edd80ac6fb0b776877"/><file name="Observer.php" hash="e357de2fecec983d28438d9370485e7b"/><file name="Session.php" hash="c9e66df411294870a525285c3aea0eec"/><file name="Subscriber.php" hash="9937ebd06975ef7fdd007c4e94895627"/><file name="Subscriberupdate.php" hash="77df791c2d17772345f518ce3b4dab90"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AbandonedcartreportController.php" hash="041edcc97605c1e88976bfe2d267ba19"/><file name="EmailcaptureController.php" hash="c81598d3afcc856a5715f3280cdd7684"/><file name="ProductattributesController.php" hash="3ac5cd8f35e6d76a66e68ed31fa47e0c"/></dir><file name="CartController.php" hash="58194cedbf4cadd368245c9eee50520c"/><file name="ConfigController.php" hash="7250d699110107b35fa004833dc3595e"/><file name="EmailController.php" hash="d1706df1448e6bd85826357efd9a22d4"/><file name="TroubleshootingController.php" hash="8e9355a2c91ee3508620fc893aabe050"/></dir><dir name="etc"><file name="adminhtml.xml" hash="cb0de18133da51645bb5b1f28eba4e95"/><file name="api.xml" hash="37986e45324636237565bab6aff95bd6"/><file name="config.xml" hash="d3a74d9e4a7ee45036f177d4d6073bed"/><file name="system.xml" hash="944a758d56cb93ac6470986fcce9bb1f"/><file name="wsdl.xml" hash="bf27bdb550de4fdbbe41c5751047f7fc"/><file name="wsi.xml" hash="2ee7d46db93d65eea632fdbe1f8a4460"/></dir><dir name="sql"><dir name="listrak_remarketing_setup"><file name="mysql4-install-1.0.0.php" hash="3688a3cb8403bbbf25f715a01176a6e7"/><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"/><file name="mysql4-upgrade-1.1.3-1.1.4.php" hash="44de533b51944af71bf2e66f3a1e134c"/><file name="mysql4-upgrade-1.1.4-1.1.5.php" hash="6e25c29ce700708d7c01300e5f4e3434"/></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="3f8da579155772292019871e92d3642a"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="remarketing.xml" hash="b2159348d52015985c2540c8f34505ca"/></dir><dir name="template"><dir name="listrak"><dir name="remarketing"><dir name="productattributes"><dir name="form"><file name="categories.phtml" hash="d8c7535c8f63ad94b3db026f583fd4df"/><file name="initbrands.phtml" hash="155e42a5b6fa960bee683fdcaedd6664"/></dir></dir><file name="productattributes.phtml" hash="b2d21ce2554c566e39b257334eb7c58f"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Listrak_Remarketing.xml" hash="1fc68edb656e220874e64cffaf7f2dbd"/></dir></target></contents>
56
  <compatible/>
57
  <dependencies/>
58
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Listrak_Remarketing</name>
4
+ <version>1.1.6</version>
5
  <stability>stable</stability>
6
  <license uri="http://s1.listrakbi.com/licenses/magento.txt">Listrak EULA</license>
7
  <channel>community</channel>
46
  &#xD;
47
  &lt;p&gt;&lt;b&gt;About Listrak&lt;/b&gt;&lt;br /&gt;&#xD;
48
  Listrak works with online retailers to maximize marketing ROI by helping them reach optimal engagement with their customers. Our focus is on prompting dialog and interaction through email and mobile marketing to increase customer lifetime value.&lt;/p&gt;</description>
49
+ <notes>Updated extension to prevent warnings from appearing in error logs. &#xD;
50
+ Additional performance updates throughout the extension.</notes>
 
51
  <authors><author><name>Listrak</name><user>auto-converted</user><email>magento@listrak.com</email></author></authors>
52
+ <date>2013-04-30</date>
53
+ <time>18:01:57</time>
54
+ <contents><target name="magecommunity"><dir name="Listrak"><dir name="Remarketing"><dir name="Block"><dir name="Adminhtml"><dir name="Abandonedcartreport"><file name="Grid.php" hash="40136886343be51aabb16004bae62c0f"/></dir><dir name="Emailcapture"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="03de7fb256e7b7acd1e149e46bc8a75a"/></dir><file name="Form.php" hash="ec3e084666f6625236b888f679ee05ae"/><file name="Tabs.php" hash="5d3f873074ebb7a29d109784c10dbfd3"/></dir><file name="Edit.php" hash="b60f716de292575504649b46224d6d09"/><file name="Grid.php" hash="b904f2c149c904244b34444cae38eb88"/></dir><dir name="Productattributes"><dir name="Edit"><dir name="Tab"><dir name="Form"><file name="Brand.php" hash="74c68b4b8ea1c1e785257aa4bbeaab09"/><file name="Categories.php" hash="529c82cc102872e4f57570c68e0adf87"/></dir></dir><file name="Form.php" hash="56f7c630820641cb8f12d82e91aea1bf"/><file name="Tabs.php" hash="a735bcf5bd86a67fae4efda97f0fa41a"/></dir><dir name="Init"><dir name="Brands"><file name="Form.php" hash="e83a9e79275f50b0cb3df8da597ad4e2"/></dir><file name="Brands.php" hash="8bf63ec8fdda9cf9bc1b3a9e493c62e8"/></dir><file name="Edit.php" hash="e774d47debad3a91ee06695fc4bd2c26"/><file name="Grid.php" hash="a464e4f72f82f61a80510e19c09b98a0"/></dir><file name="Abandonedcartreport.php" hash="ada17a818a8c0f543a4f6c62e817454b"/><file name="Emailcapture.php" hash="fa12181d06b55d08e7534129ecd4f371"/><file name="Notifications.php" hash="d1d5f8c95716290d60583c4c72ada6f4"/><file name="Productattributes.php" hash="3b27f937512e1d2c01e6786cbc8ceb8f"/></dir><file name="Ecjs.php" hash="1c791b6335b8f8874bc12117287a0b97"/><file name="Modal.php" hash="c8657e3cb06c30e932b9b2631e7e198e"/></dir><dir name="Helper"><dir name="Product"><dir name="Attribute"><dir name="Set"><file name="Map.php" hash="74587e809ea245eaab053cab5b4c8ac5"/></dir></dir></dir><dir name="Review"><file name="Update.php" hash="2b43132557868702c9b0826925da428c"/></dir><file name="Data.php" hash="fa290c45ad0700ee0e81647c02916f39"/><file name="Product.php" hash="5c4b99cc95cf26606a34fca4a78e0971"/></dir><dir name="Model"><dir name="Abandonedcart"><dir name="Api"><file name="V2.php" hash="00ffd794e4b681008b648b708cb92150"/></dir><file name="Api.php" hash="d1fad6aae2e7c8bf3c5d7c9d5909b2f4"/></dir><dir name="Apiextension"><dir name="Api"><file name="V2.php" hash="f4c04e0182f109bf142fcdc029314f3c"/></dir><file name="Api.php" hash="0b243df64f3b72b2dc29e33d06aec6c3"/></dir><dir name="Click"><dir name="Api"><file name="V2.php" hash="46247b357cbe65be78625c21f78af51f"/></dir><file name="Api.php" hash="611b5f472b2c4cab744100e3d3af94e1"/></dir><dir name="Log"><dir name="Api"><file name="V2.php" hash="b6c152d27d85b2db1e0ce24b56d38e9f"/></dir><file name="Api.php" hash="5cb2806cb4be6a0e7bd309166e0bd360"/></dir><dir name="Mysql4"><dir name="Abandonedcart"><file name="Collection.php" hash="6ece436112d7c1f03b38d35f0927e35b"/></dir><dir name="Click"><file name="Collection.php" hash="4e426d50bd9039ec6a54d3bcbe56fbb0"/></dir><dir name="Emailcapture"><file name="Collection.php" hash="02be573207405024553d363cd1f51aa0"/></dir><dir name="Log"><file name="Collection.php" hash="9f0597af33ffd65e09ba9fce51f5f0ff"/></dir><dir name="Product"><dir name="Attribute"><dir name="Set"><dir name="Map"><file name="Collection.php" hash="80b7748fec09b135cee605d07e4c62e5"/></dir><file name="Map.php" hash="2e146d91dc174dc9bd8ce96b5fc52483"/></dir></dir></dir><dir name="Review"><dir name="Update"><file name="Collection.php" hash="abbd1594c2ff6218998beaa9411d244f"/></dir><file name="Update.php" hash="19ede3bb0dd78a7f2cac10ae466c1bc0"/></dir><dir name="Session"><file name="Collection.php" hash="93fd53dbdc2a8c5ddb34ea1c0390865b"/></dir><dir name="Subscriberupdate"><file name="Collection.php" hash="a348915e86b7400bdb2f9fb9910f3b45"/></dir><file name="Abandonedcart.php" hash="4b6ee29a824b74fec6810c1aa1c9f62b"/><file name="Apiextension.php" hash="44fb3b8e2131c285362998c5a475e552"/><file name="Click.php" hash="1b4f106a299611574dbfa958dfc96c6c"/><file name="Emailcapture.php" hash="be122a427584d13e6469ddafc01e55bb"/><file name="Log.php" hash="4729dc9fdf2a812a9243c82cf3a0659a"/><file name="Session.php" hash="a7d1ea065a9042d9aab466a981a3554b"/><file name="Subscriberupdate.php" hash="6eb60180f5a84a05c8b1396f649dcd03"/></dir><dir name="Product"><dir name="Attribute"><dir name="Set"><file name="Map.php" hash="44794eb84ab1f1aa1b6b1fd6d2a45ced"/></dir></dir><dir name="Category"><file name="Source.php" hash="49bb519e75521ad4f5273f1a8306fc0a"/></dir><file name="Attributes.php" hash="1d10e1b56d7dfa4726e25888d36f8611"/></dir><dir name="Review"><dir name="Update"><dir name="Api"><file name="V2.php" hash="37a0b841ea0b575526ef04c2c63fc6fe"/></dir><file name="Api.php" hash="9ecd55209db6074a8b0d10ae33ec52a2"/></dir><file name="Update.php" hash="d2bb50a577d4dbd739936e6478e2603b"/></dir><file name="Abandonedcart.php" hash="d731df1be52538c4a08ee3486049430f"/><file name="Apiextension.php" hash="3967cefbb8bb4bffb1c9d6660107fe04"/><file name="Click.php" hash="047b2b5543071a37d8535e067b4a73ba"/><file name="Emailcapture.php" hash="0f733cbfd06586daef5c2f7bb17cb697"/><file name="Log.php" hash="554d1e99cc1c976bfed850c929b122ab"/><file name="Observer.php" hash="494e1f1b9c65a174ec755002faafc01a"/><file name="Session.php" hash="d3746f446275d3913d2b2bf6ad001af7"/><file name="Subscriber.php" hash="eb8b7f41801140579b7f58f63a66c854"/><file name="Subscriberupdate.php" hash="b5d8a6e7e0e2e803f72c8a28bff4b098"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AbandonedcartreportController.php" hash="30190c05d46c027a095fc5b88a4473ba"/><file name="EmailcaptureController.php" hash="8facd1046802dd5a95148c994dea008d"/><file name="ProductattributesController.php" hash="33df5581af7a1d6cb75b4b390d8e412c"/></dir><file name="CartController.php" hash="ce6f10e325a646bcbced8fafaa646418"/><file name="ConfigController.php" hash="e2a8e5c4fa4aec9c9da924fea681f36c"/><file name="EmailController.php" hash="981a5f70785b332cd5d0823fa34254d0"/><file name="TroubleshootingController.php" hash="cf13b1319d5eca6c86e0f0f6c863678f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="bfd29a447658ff83a1df77d305f6c125"/><file name="api.xml" hash="ba5fe70e1084bc7dbdc8ca15b25ed958"/><file name="config.xml" hash="31c59a891f05b6a7a5005a8d89332398"/><file name="system.xml" hash="69fd27ef41d804213e33f7e887e853d8"/><file name="wsdl.xml" hash="8e572ffb0e404da799380f0a096073f2"/><file name="wsi.xml" hash="4b550ffc19dbd05419871f5b9c01d423"/></dir><dir name="sql"><dir name="listrak_remarketing_setup"><file name="mysql4-install-1.0.0.php" hash="97ff43fccf948969c539b0d8618fe77f"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="adcb8ac59dcb86c44aeb4d79a5529e31"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="de98367400f3d5d77b3a4622cb87275d"/><file name="mysql4-upgrade-1.1.0-1.1.1.php" hash="1962c9ca9337a8ab6e97f0bdbc5df088"/><file name="mysql4-upgrade-1.1.3-1.1.4.php" hash="1a3d6deb0a4358f4b2593c54360e1cd8"/><file name="mysql4-upgrade-1.1.4-1.1.5.php" hash="f4f265d29d27d1486a80d1d5f820d441"/><file name="mysql4-upgrade-1.1.5-1.1.6.php" hash="c15c18d9a18cc84da3400a8c74a3c082"/></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="54fa6221639f1c81476306484a842c38"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="remarketing.xml" hash="9c98437a6e02c083407fdf36c3e3d4a1"/></dir><dir name="template"><dir name="listrak"><dir name="remarketing"><dir name="productattributes"><dir name="form"><file name="categories.phtml" hash="b0bde2e0e93b3a0cf6eab3dc8dc5fb2e"/><file name="initbrands.phtml" hash="0350e9f1a41c60872ee070dc97083439"/></dir></dir><file name="productattributes.phtml" hash="01f12416a562f757457f19492e623a29"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Listrak_Remarketing.xml" hash="63082a312f4668561da45ccd445a862b"/></dir></target></contents>
55
  <compatible/>
56
  <dependencies/>
57
  </package>