eBay_Enterprise_Affiliate_Extension - Version 1.2.0.2

Version Notes

Changelog for 1.2.0.2
Fixed issue where Bundle with fixed pricing.

Download this release

Release Info

Developer Philip Preston
Extension eBay_Enterprise_Affiliate_Extension
Version 1.2.0.2
Comparing to
See all releases


Code changes from version 1.2.0.1 to 1.2.0.2

app/code/community/EbayEnterprise/Affiliate/Block/Beacon.php CHANGED
@@ -1,328 +1,332 @@
1
- <?php
2
- /**
3
- * Copyright (c) 2014 eBay Enterprise, Inc.
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the eBay Enterprise
8
- * Magento Extensions End User License Agreement
9
- * that is bundled with this package in the file LICENSE.md.
10
- * It is also available through the world-wide-web at this URL:
11
- * http://www.ebayenterprise.com/files/pdf/Magento_Connect_Extensions_EULA_050714.pdf
12
- *
13
- * @copyright Copyright (c) 2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/)
14
- * @license http://www.ebayenterprise.com/files/pdf/Magento_Connect_Extensions_EULA_050714.pdf eBay Enterprise Magento Extensions End User License Agreement
15
- *
16
- */
17
-
18
- class EbayEnterprise_Affiliate_Block_Beacon extends Mage_Core_Block_Template
19
- {
20
- /**
21
- * The 'PID' beacon URL querystring key
22
- */
23
- const KEY_PID = 'PID';
24
-
25
- /**
26
- * The 'OID' beacon URL querystring key
27
- */
28
- const KEY_OID = 'OID';
29
-
30
- /**
31
- * The 'AMOUNT' beacon URL querystring key
32
- */
33
- const KEY_AMOUNT = 'AMOUNT';
34
-
35
- /**
36
- * The 'TYPE' beacon URL querystring key
37
- */
38
- const KEY_TYPE = 'TYPE';
39
-
40
- /**
41
- * The 'QTY' beacon URL querystring key
42
- */
43
- const KEY_QTY = 'QTY';
44
-
45
- /**
46
- * The 'TOTALAMOUNT' beacon URL querystring key
47
- */
48
- const KEY_TOTALAMOUNT = 'TOTALAMOUNT';
49
-
50
- /**
51
- * The 'INT' beacon URL querystring key
52
- */
53
- const KEY_INT = 'INT';
54
-
55
- /**
56
- * The 'ITEM' beacon URL querystring key
57
- */
58
- const KEY_ITEM = 'ITEM';
59
-
60
- /**
61
- * The 'PROMOCODE' beacon URL querystring key
62
- */
63
- const KEY_PROMOCODE = 'PROMOCODE';
64
-
65
- /**
66
- * Dynamic query keys
67
- */
68
- const KEY_DYNAMIC_PROGRAM_ID = 'PROGRAM_ID';
69
- const KEY_DYNAMIC_ORDER_ID = 'ORDER_ID';
70
- const KEY_DYNAMIC_ITEM_ID = 'ITEM_ID';
71
- const KEY_DYNAMIC_ITEM_PRICE = 'ITEM_PRICE';
72
- const KEY_DYNAMIC_QUANTITY = 'QUANTITY';
73
- const KEY_DYNAMIC_CATEGORY = 'CATEGORY';
74
- const KEY_DYNAMIC_NEW_TO_FILE = 'NEW_TO_FILE';
75
- const KEY_DYNAMIC_COUPON = 'COUPON';
76
-
77
- /**
78
- * @var Mage_Sales_Model_Order
79
- * @see self::_getOrder
80
- */
81
- protected $_order;
82
-
83
- /** @var EbayEnterprise_Affiliate_Helper_Data */
84
- protected $_helper = null;
85
-
86
- /** @var EbayEnterprise_Affiliate_Helper_Config */
87
- protected $_configHelper = null;
88
-
89
- /**
90
- * @return EbayEnterprise_Affiliate_Helper_Data
91
- */
92
- protected function _getHelper()
93
- {
94
- if (!$this->_helper) {
95
- $this->_helper = Mage::helper('eems_affiliate');
96
- }
97
-
98
- return $this->_helper;
99
- }
100
-
101
- /**
102
- * @return EbayEnterprise_Affiliate_Helper_Config
103
- */
104
- protected function _getConfigHelper()
105
- {
106
- if (!$this->_configHelper) {
107
- $this->_configHelper = Mage::helper('eems_affiliate/config');
108
- }
109
-
110
- return $this->_configHelper;
111
- }
112
-
113
- /**
114
- * Get the last order.
115
- * @return Mage_Sales_Model_Order | null
116
- */
117
- protected function _getOrder()
118
- {
119
- if (!($this->_order instanceof Mage_Sales_Model_Order)) {
120
- $orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
121
- if ($orderId) {
122
- $this->_order = Mage::getModel('sales/order')->load($orderId);
123
- }
124
- }
125
- return $this->_order;
126
- }
127
-
128
- /**
129
- * Get the beacon URL.
130
- * @return string | null
131
- */
132
- public function getBeaconUrl()
133
- {
134
- $order = $this->_getOrder();
135
-
136
- $url = null;
137
-
138
- if ($order instanceof Mage_Sales_Model_Order) {
139
- if (Mage::helper('eems_affiliate/config')->isItemizedOrders()) {
140
- $params = $this->_buildItemizedParams($order);
141
- } elseif (Mage::helper('eems_affiliate/config')->isDynamicOrders()) {
142
- $params = $this->_buildDynamicParams($order);
143
- } else {
144
- $params = $this->_buildBasicParams($order);
145
- }
146
-
147
- $url = Mage::helper('eems_affiliate')->buildBeaconUrl($params);
148
- }
149
- return $url;
150
- }
151
-
152
- /**
153
- * build common params array
154
- * @param Mage_Sales_Model_Order $order
155
- * @return array
156
- */
157
- protected function _buildCommonParams(Mage_Sales_Model_Order $order)
158
- {
159
- $params = array(
160
- static::KEY_PID => Mage::helper('eems_affiliate/config')->getProgramId(),
161
- static::KEY_OID => $order->getIncrementId(),
162
- );
163
- $couponCode = trim($order->getCouponCode());
164
- return ($couponCode !== '')?
165
- array_merge($params, array(static::KEY_PROMOCODE => $couponCode)) : $params;
166
- }
167
-
168
- /**
169
- * build basic params array for non itemized beacon URL
170
- * @param Mage_Sales_Model_Order $order
171
- * @return array
172
- */
173
- protected function _buildBasicParams(Mage_Sales_Model_Order $order)
174
- {
175
- $params = $this->_buildCommonParams($order);
176
- $params[static::KEY_AMOUNT] = number_format($order->getSubtotal() + $order->getDiscountAmount() + $order->getShippingDiscountAmount(), 2, '.', '');
177
- $params[static::KEY_TYPE] = Mage::helper('eems_affiliate/config')->getTransactionType();
178
-
179
- return $params;
180
- }
181
-
182
- /**
183
- * build itemized order params array for itemized beacon URL
184
- * @param Mage_Sales_Model_Order $order
185
- * @return array
186
- */
187
- protected function _buildItemizedParams(Mage_Sales_Model_Order $order)
188
- {
189
- $params = $this->_buildCommonParams($order);
190
- $params[static::KEY_INT] = Mage::helper('eems_affiliate/config')->getInt();
191
- $increment = 1; // incrementer for the unique item keys
192
- foreach ($order->getAllItems() as $item) {
193
- // need to ignore the bundle parent as it will contain collected total
194
- // for children but not discounts
195
- $position = $this->_getDupePosition($params, $item);
196
- // ignore the parent configurable quantity - quantity of config products
197
- // will come from the simple used product with the same SKU
198
- $quantity = $item->getProductType() === Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE ?
199
- 0 : (int) $item->getQtyOrdered();
200
- // consider parent bundle products to be 0.00 total - total of the bundle
201
- // is the sum of all child products which are also included in the beacon
202
- // so including both totals would effectively double the price of the bundle
203
- //
204
- // Divide discount amount by quantity to get per item discount
205
- $total = $item->getProductType() === Mage_Catalog_Model_Product_Type::TYPE_BUNDLE ?
206
- 0.00 : $item->getPrice() - ($item->getDiscountAmount() / $item->getQtyOrdered());
207
- if ($position) {
208
- // we detected that the current item already exist in the params array
209
- // and have the key increment position let's simply adjust
210
- // the qty and total amount
211
- $params[static::KEY_QTY . $position] += $quantity;
212
- $amtKey = static::KEY_AMOUNT . $position;
213
- $params[$amtKey] = number_format($params[$amtKey] + $total, 2, '.', '');
214
- } else {
215
- $params = array_merge($params, array(
216
- static::KEY_ITEM . $increment => $item->getSku(),
217
- static::KEY_QTY . $increment => $quantity,
218
- static::KEY_AMOUNT . $increment => number_format($total, 2, '.', ''),
219
- ));
220
- $increment++; // only get incremented when a unique key have been appended
221
- }
222
- }
223
- return $params;
224
- }
225
-
226
- /**
227
- * build dynamic order params array for dynamic beacon URL
228
- * @param Mage_Sales_Model_Order $order
229
- * @return array
230
- */
231
- protected function _buildDynamicParams(Mage_Sales_Model_Order $order)
232
- {
233
- $helper = Mage::helper('eems_affiliate');
234
-
235
- $params = $this->_buildItemizedParams($order);
236
-
237
- // Swap query key names for dynamic versions
238
- $params[self::KEY_DYNAMIC_PROGRAM_ID] = $params[self::KEY_PID];
239
- $params[self::KEY_DYNAMIC_ORDER_ID] = $params[self::KEY_OID];
240
- unset($params[self::KEY_PID]);
241
- unset($params[self::KEY_OID]);
242
- if (isset($params[self::KEY_PROMOCODE])) {
243
- $params[self::KEY_DYNAMIC_COUPON] = $params[self::KEY_PROMOCODE];
244
- unset($params[self::KEY_PROMOCODE]);
245
- }
246
-
247
- // See if email has any history
248
- $params[self::KEY_DYNAMIC_NEW_TO_FILE] = (int)$helper->isNewToFile($order);
249
-
250
- $productIds = array();
251
- foreach($order->getAllItems() as $item) {
252
- $productIds[] = $item->getProduct()->getId();
253
- }
254
-
255
- $productCollection = Mage::getModel('catalog/product')->getCollection()
256
- ->addAttributeToFilter('entity_id', array('in', $productIds))
257
- ->addCategoryIds();
258
-
259
- // No need for increment, all items are in param already
260
- $lastPosition = 0;
261
- foreach($order->getAllItems() as $item) {
262
- // Every item should be found here
263
- $position = $this->_getDupePosition($params, $item);
264
-
265
- // Add category IDs
266
- $product = $productCollection->getItemById($item->getProduct()->getId());
267
- $item->getProduct()->setCategoryIds($product->getCategoryIds());
268
-
269
- // Get item's category
270
- $params[self::KEY_DYNAMIC_CATEGORY . $position] = $helper->getCommissioningCategory($item);
271
-
272
- // Update last position
273
- $lastPosition = max($lastPosition, $position);
274
- }
275
-
276
- // Swap key names for dynamic versions
277
- for($position = 1; $position <= $lastPosition; $position += 1) {
278
- // Replace query string keys
279
- $params[self::KEY_DYNAMIC_ITEM_ID . $position] = $params[self::KEY_ITEM . $position];
280
- $params[self::KEY_DYNAMIC_ITEM_PRICE . $position] = $params[self::KEY_AMOUNT . $position];
281
- $params[self::KEY_DYNAMIC_QUANTITY . $position] = $params[self::KEY_QTY . $position];
282
- unset($params[self::KEY_ITEM . $position]);
283
- unset($params[self::KEY_AMOUNT . $position]);
284
- unset($params[self::KEY_QTY . $position]);
285
- }
286
-
287
- return $params;
288
- }
289
-
290
- /**
291
- * check if the current sku already exists in the params data if so return
292
- * the position it is found in
293
- * @param array $params the given array of keys needed to build the beacon URL querystring
294
- * @param Mage_Sales_Model_Order_Item $item
295
- * @return int the item position where dupe found otherwise zero
296
- */
297
- protected function _getDupePosition(array $params, Mage_Sales_Model_Order_Item $item)
298
- {
299
- $key = array_search($item->getSku(), $params, true);
300
- return ($key !== false)?
301
- (int) str_replace(static::KEY_ITEM, '', $key) : 0;
302
- }
303
-
304
- /**
305
- * Whether or not to display the beacon.
306
- *
307
- * Show the pixel only if tracking is enabled and we have a valid order
308
- * AND either conditional pixel logic is OFF or it is ON and we have
309
- * a valid cookie.
310
- *
311
- * @return bool
312
- */
313
- public function showBeacon()
314
- {
315
- $config = $this->_getConfigHelper();
316
-
317
- return (
318
- (
319
- $config->isEnabled() &&
320
- $this->_getOrder() instanceof Mage_Sales_Model_Order
321
- ) &&
322
- (
323
- $this->_getHelper()->isValidCookie() ||
324
- !$config->isConditionalPixelEnabled()
325
- )
326
- );
327
- }
328
- }
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) 2014 eBay Enterprise, Inc.
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the eBay Enterprise
8
+ * Magento Extensions End User License Agreement
9
+ * that is bundled with this package in the file LICENSE.md.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://www.ebayenterprise.com/files/pdf/Magento_Connect_Extensions_EULA_050714.pdf
12
+ *
13
+ * @copyright Copyright (c) 2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/)
14
+ * @license http://www.ebayenterprise.com/files/pdf/Magento_Connect_Extensions_EULA_050714.pdf eBay Enterprise Magento Extensions End User License Agreement
15
+ *
16
+ */
17
+
18
+ class EbayEnterprise_Affiliate_Block_Beacon extends Mage_Core_Block_Template
19
+ {
20
+ /**
21
+ * The 'PID' beacon URL querystring key
22
+ */
23
+ const KEY_PID = 'PID';
24
+
25
+ /**
26
+ * The 'OID' beacon URL querystring key
27
+ */
28
+ const KEY_OID = 'OID';
29
+
30
+ /**
31
+ * The 'AMOUNT' beacon URL querystring key
32
+ */
33
+ const KEY_AMOUNT = 'AMOUNT';
34
+
35
+ /**
36
+ * The 'TYPE' beacon URL querystring key
37
+ */
38
+ const KEY_TYPE = 'TYPE';
39
+
40
+ /**
41
+ * The 'QTY' beacon URL querystring key
42
+ */
43
+ const KEY_QTY = 'QTY';
44
+
45
+ /**
46
+ * The 'TOTALAMOUNT' beacon URL querystring key
47
+ */
48
+ const KEY_TOTALAMOUNT = 'TOTALAMOUNT';
49
+
50
+ /**
51
+ * The 'INT' beacon URL querystring key
52
+ */
53
+ const KEY_INT = 'INT';
54
+
55
+ /**
56
+ * The 'ITEM' beacon URL querystring key
57
+ */
58
+ const KEY_ITEM = 'ITEM';
59
+
60
+ /**
61
+ * The 'PROMOCODE' beacon URL querystring key
62
+ */
63
+ const KEY_PROMOCODE = 'PROMOCODE';
64
+
65
+ /**
66
+ * Dynamic query keys
67
+ */
68
+ const KEY_DYNAMIC_PROGRAM_ID = 'PROGRAM_ID';
69
+ const KEY_DYNAMIC_ORDER_ID = 'ORDER_ID';
70
+ const KEY_DYNAMIC_ITEM_ID = 'ITEM_ID';
71
+ const KEY_DYNAMIC_ITEM_PRICE = 'ITEM_PRICE';
72
+ const KEY_DYNAMIC_QUANTITY = 'QUANTITY';
73
+ const KEY_DYNAMIC_CATEGORY = 'CATEGORY';
74
+ const KEY_DYNAMIC_NEW_TO_FILE = 'NEW_TO_FILE';
75
+ const KEY_DYNAMIC_COUPON = 'COUPON';
76
+
77
+ /**
78
+ * @var Mage_Sales_Model_Order
79
+ * @see self::_getOrder
80
+ */
81
+ protected $_order;
82
+
83
+ /** @var EbayEnterprise_Affiliate_Helper_Data */
84
+ protected $_helper = null;
85
+
86
+ /** @var EbayEnterprise_Affiliate_Helper_Config */
87
+ protected $_configHelper = null;
88
+
89
+ /**
90
+ * @return EbayEnterprise_Affiliate_Helper_Data
91
+ */
92
+ protected function _getHelper()
93
+ {
94
+ if (!$this->_helper) {
95
+ $this->_helper = Mage::helper('eems_affiliate');
96
+ }
97
+
98
+ return $this->_helper;
99
+ }
100
+
101
+ /**
102
+ * @return EbayEnterprise_Affiliate_Helper_Config
103
+ */
104
+ protected function _getConfigHelper()
105
+ {
106
+ if (!$this->_configHelper) {
107
+ $this->_configHelper = Mage::helper('eems_affiliate/config');
108
+ }
109
+
110
+ return $this->_configHelper;
111
+ }
112
+
113
+ /**
114
+ * Get the last order.
115
+ * @return Mage_Sales_Model_Order | null
116
+ */
117
+ protected function _getOrder()
118
+ {
119
+ if (!($this->_order instanceof Mage_Sales_Model_Order)) {
120
+ $orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
121
+ if ($orderId) {
122
+ $this->_order = Mage::getModel('sales/order')->load($orderId);
123
+ }
124
+ }
125
+ return $this->_order;
126
+ }
127
+
128
+ /**
129
+ * Get the beacon URL.
130
+ * @return string | null
131
+ */
132
+ public function getBeaconUrl()
133
+ {
134
+ $order = $this->_getOrder();
135
+
136
+ $url = null;
137
+
138
+ if ($order instanceof Mage_Sales_Model_Order) {
139
+ if (Mage::helper('eems_affiliate/config')->isItemizedOrders()) {
140
+ $params = $this->_buildItemizedParams($order);
141
+ } elseif (Mage::helper('eems_affiliate/config')->isDynamicOrders()) {
142
+ $params = $this->_buildDynamicParams($order);
143
+ } else {
144
+ $params = $this->_buildBasicParams($order);
145
+ }
146
+
147
+ $url = Mage::helper('eems_affiliate')->buildBeaconUrl($params);
148
+ }
149
+ return $url;
150
+ }
151
+
152
+ /**
153
+ * build common params array
154
+ * @param Mage_Sales_Model_Order $order
155
+ * @return array
156
+ */
157
+ protected function _buildCommonParams(Mage_Sales_Model_Order $order)
158
+ {
159
+ $params = array(
160
+ static::KEY_PID => Mage::helper('eems_affiliate/config')->getProgramId(),
161
+ static::KEY_OID => $order->getIncrementId(),
162
+ );
163
+ $couponCode = trim($order->getCouponCode());
164
+ return ($couponCode !== '')?
165
+ array_merge($params, array(static::KEY_PROMOCODE => $couponCode)) : $params;
166
+ }
167
+
168
+ /**
169
+ * build basic params array for non itemized beacon URL
170
+ * @param Mage_Sales_Model_Order $order
171
+ * @return array
172
+ */
173
+ protected function _buildBasicParams(Mage_Sales_Model_Order $order)
174
+ {
175
+ $params = $this->_buildCommonParams($order);
176
+ $params[static::KEY_AMOUNT] = number_format($order->getSubtotal() + $order->getDiscountAmount() + $order->getShippingDiscountAmount(), 2, '.', '');
177
+ $params[static::KEY_TYPE] = Mage::helper('eems_affiliate/config')->getTransactionType();
178
+
179
+ return $params;
180
+ }
181
+
182
+ /**
183
+ * build itemized order params array for itemized beacon URL
184
+ * @param Mage_Sales_Model_Order $order
185
+ * @return array
186
+ */
187
+ protected function _buildItemizedParams(Mage_Sales_Model_Order $order)
188
+ {
189
+ $params = $this->_buildCommonParams($order);
190
+ $params[static::KEY_INT] = Mage::helper('eems_affiliate/config')->getInt();
191
+ $increment = 1; // incrementer for the unique item keys
192
+ foreach ($order->getAllItems() as $item) {
193
+ // need to ignore the bundle parent as it will contain collected total
194
+ // for children but not discounts
195
+ $position = $this->_getDupePosition($params, $item);
196
+ // ignore the parent configurable quantity - quantity of config products
197
+ // will come from the simple used product with the same SKU
198
+ $quantity = $item->getProductType() === Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE ?
199
+ 0 : (int) $item->getQtyOrdered();
200
+ // consider parent bundle products to be 0.00 total (if the pricing is dynamic)
201
+ // total of the bundleis the sum of all child products which are also included
202
+ // in the beacon so including both totals would effectively double the price of
203
+ // the bundle
204
+ //
205
+ // Divide discount amount by quantity to get per item discount
206
+ $total = $item->getPrice() - ($item->getDiscountAmount() / $item->getQtyOrdered());
207
+ if ($item->getProductType() === Mage_Catalog_Model_Product_Type::TYPE_BUNDLE && $item->getProduct()->getPriceType() == Mage_Bundle_Model_Product_Price::PRICE_TYPE_DYNAMIC) {
208
+ $total = 0.00;
209
+ }
210
+
211
+ if ($position) {
212
+ // we detected that the current item already exist in the params array
213
+ // and have the key increment position let's simply adjust
214
+ // the qty and total amount
215
+ $params[static::KEY_QTY . $position] += $quantity;
216
+ $amtKey = static::KEY_AMOUNT . $position;
217
+ $params[$amtKey] = number_format($params[$amtKey] + $total, 2, '.', '');
218
+ } else {
219
+ $params = array_merge($params, array(
220
+ static::KEY_ITEM . $increment => $item->getSku(),
221
+ static::KEY_QTY . $increment => $quantity,
222
+ static::KEY_AMOUNT . $increment => number_format($total, 2, '.', ''),
223
+ ));
224
+ $increment++; // only get incremented when a unique key have been appended
225
+ }
226
+ }
227
+ return $params;
228
+ }
229
+
230
+ /**
231
+ * build dynamic order params array for dynamic beacon URL
232
+ * @param Mage_Sales_Model_Order $order
233
+ * @return array
234
+ */
235
+ protected function _buildDynamicParams(Mage_Sales_Model_Order $order)
236
+ {
237
+ $helper = Mage::helper('eems_affiliate');
238
+
239
+ $params = $this->_buildItemizedParams($order);
240
+
241
+ // Swap query key names for dynamic versions
242
+ $params[self::KEY_DYNAMIC_PROGRAM_ID] = $params[self::KEY_PID];
243
+ $params[self::KEY_DYNAMIC_ORDER_ID] = $params[self::KEY_OID];
244
+ unset($params[self::KEY_PID]);
245
+ unset($params[self::KEY_OID]);
246
+ if (isset($params[self::KEY_PROMOCODE])) {
247
+ $params[self::KEY_DYNAMIC_COUPON] = $params[self::KEY_PROMOCODE];
248
+ unset($params[self::KEY_PROMOCODE]);
249
+ }
250
+
251
+ // See if email has any history
252
+ $params[self::KEY_DYNAMIC_NEW_TO_FILE] = (int)$helper->isNewToFile($order);
253
+
254
+ $productIds = array();
255
+ foreach($order->getAllItems() as $item) {
256
+ $productIds[] = $item->getProduct()->getId();
257
+ }
258
+
259
+ $productCollection = Mage::getModel('catalog/product')->getCollection()
260
+ ->addAttributeToFilter('entity_id', array('in', $productIds))
261
+ ->addCategoryIds();
262
+
263
+ // No need for increment, all items are in param already
264
+ $lastPosition = 0;
265
+ foreach($order->getAllItems() as $item) {
266
+ // Every item should be found here
267
+ $position = $this->_getDupePosition($params, $item);
268
+
269
+ // Add category IDs
270
+ $product = $productCollection->getItemById($item->getProduct()->getId());
271
+ $item->getProduct()->setCategoryIds($product->getCategoryIds());
272
+
273
+ // Get item's category
274
+ $params[self::KEY_DYNAMIC_CATEGORY . $position] = $helper->getCommissioningCategory($item);
275
+
276
+ // Update last position
277
+ $lastPosition = max($lastPosition, $position);
278
+ }
279
+
280
+ // Swap key names for dynamic versions
281
+ for($position = 1; $position <= $lastPosition; $position += 1) {
282
+ // Replace query string keys
283
+ $params[self::KEY_DYNAMIC_ITEM_ID . $position] = $params[self::KEY_ITEM . $position];
284
+ $params[self::KEY_DYNAMIC_ITEM_PRICE . $position] = $params[self::KEY_AMOUNT . $position];
285
+ $params[self::KEY_DYNAMIC_QUANTITY . $position] = $params[self::KEY_QTY . $position];
286
+ unset($params[self::KEY_ITEM . $position]);
287
+ unset($params[self::KEY_AMOUNT . $position]);
288
+ unset($params[self::KEY_QTY . $position]);
289
+ }
290
+
291
+ return $params;
292
+ }
293
+
294
+ /**
295
+ * check if the current sku already exists in the params data if so return
296
+ * the position it is found in
297
+ * @param array $params the given array of keys needed to build the beacon URL querystring
298
+ * @param Mage_Sales_Model_Order_Item $item
299
+ * @return int the item position where dupe found otherwise zero
300
+ */
301
+ protected function _getDupePosition(array $params, Mage_Sales_Model_Order_Item $item)
302
+ {
303
+ $key = array_search($item->getSku(), $params, true);
304
+ return ($key !== false)?
305
+ (int) str_replace(static::KEY_ITEM, '', $key) : 0;
306
+ }
307
+
308
+ /**
309
+ * Whether or not to display the beacon.
310
+ *
311
+ * Show the pixel only if tracking is enabled and we have a valid order
312
+ * AND either conditional pixel logic is OFF or it is ON and we have
313
+ * a valid cookie.
314
+ *
315
+ * @return bool
316
+ */
317
+ public function showBeacon()
318
+ {
319
+ $config = $this->_getConfigHelper();
320
+
321
+ return (
322
+ (
323
+ $config->isEnabled() &&
324
+ $this->_getOrder() instanceof Mage_Sales_Model_Order
325
+ ) &&
326
+ (
327
+ $this->_getHelper()->isValidCookie() ||
328
+ !$config->isConditionalPixelEnabled()
329
+ )
330
+ );
331
+ }
332
+ }
app/code/community/EbayEnterprise/Affiliate/etc/config.xml CHANGED
@@ -1,1030 +1,1030 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!--
3
- Copyright (c) 2014 eBay Enterprise, Inc.
4
-
5
- NOTICE OF LICENSE
6
-
7
- This source file is subject to the eBay Enterprise
8
- Magento Extensions End User License Agreement
9
- that is bundled with this package in the file LICENSE.md.
10
- It is also available through the world-wide-web at this URL:
11
- http://www.ebayenterprise.com/files/pdf/Magento_Connect_Extensions_EULA_050714.pdf
12
-
13
- @copyright Copyright (c) 2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/)
14
- @license http://www.ebayenterprise.com/files/pdf/Magento_Connect_Extensions_EULA_050714.pdf eBay Enterprise Magento Extensions End User License Agreement
15
- -->
16
- <config>
17
- <modules>
18
- <EbayEnterprise_Affiliate>
19
- <version>1.2.0.1</version>
20
- </EbayEnterprise_Affiliate>
21
- </modules>
22
- <global>
23
- <models>
24
- <eems_affiliate>
25
- <class>EbayEnterprise_Affiliate_Model</class>
26
- </eems_affiliate>
27
- </models>
28
- <helpers>
29
- <eems_affiliate>
30
- <class>EbayEnterprise_Affiliate_Helper</class>
31
- </eems_affiliate>
32
- </helpers>
33
- <blocks>
34
- <eems_affiliate>
35
- <class>EbayEnterprise_Affiliate_Block</class>
36
- </eems_affiliate>
37
- </blocks>
38
- <resources>
39
- <eems_affiliate_setup>
40
- <setup>
41
- <module>EbayEnterprise_Affiliate</module>
42
- <class>Mage_Core_Model_Resource_Setup</class>
43
- </setup>
44
- </eems_affiliate_setup>
45
- </resources>
46
- </global>
47
- <crontab>
48
- <jobs>
49
- <eems_affiliate_generate_product_feed>
50
- <schedule>
51
- <cron_expr>0 0 3 * *</cron_expr>
52
- </schedule>
53
- <run>
54
- <model>eems_affiliate/observer::createProductFeed</model>
55
- </run>
56
- </eems_affiliate_generate_product_feed>
57
- <eems_affiliate_generate_corrected_order_feed>
58
- <schedule>
59
- <cron_expr>0 0 3 * *</cron_expr>
60
- </schedule>
61
- <run>
62
- <model>eems_affiliate/observer::createCorrectedOrdersFeed</model>
63
- </run>
64
- </eems_affiliate_generate_corrected_order_feed>
65
- </jobs>
66
- </crontab>
67
- <default>
68
- <marketing_solutions>
69
- <eems_affiliate>
70
- <active>0</active>
71
- <js_files>eems_affiliate/cookie.js</js_files>
72
- <!-- use comma to add more js files-->
73
- <beacon_url>https://t.pepperjamnetwork.com/track</beacon_url>
74
- <export_path>var/export/eems_affiliate/</export_path>
75
- <order_type>itemized</order_type>
76
- <program_id/>
77
- <transaction_type>1</transaction_type>
78
- <conditional_pixel_enabled>0</conditional_pixel_enabled>
79
- <source_key_name>eean</source_key_name>
80
- <product_feed_enabled>1</product_feed_enabled>
81
- <order_feed_enabled>1</order_feed_enabled>
82
- <feeds>
83
- <callback_mappings>
84
- <program_id>
85
- <class>eems_affiliate/map</class>
86
- <method>getProgramId</method>
87
- <type>helper</type>
88
- <column_name>PID</column_name>
89
- </program_id>
90
- <order_id>
91
- <class>eems_affiliate/map_order</class>
92
- <method>getOrderId</method>
93
- <type>helper</type>
94
- <column_name>OID</column_name>
95
- <params>
96
- <format>%.50s</format>
97
- </params>
98
- </order_id>
99
- <item_order_id>
100
- <class>eems_affiliate/map_order</class>
101
- <method>getItemOrderId</method>
102
- <type>helper</type>
103
- <column_name>OID</column_name>
104
- <params>
105
- <format>%.50s</format>
106
- </params>
107
- </item_order_id>
108
- <item_id>
109
- <class>eems_affiliate/map_order</class>
110
- <method>getItemId</method>
111
- <type>helper</type>
112
- <column_name>ITEMID</column_name>
113
- <params>
114
- <format>%.50s</format>
115
- <key>sku</key>
116
- </params>
117
- </item_id>
118
- <item_price>
119
- <class>eems_affiliate/map_order</class>
120
- <method>getItemPrice</method>
121
- <type>helper</type>
122
- <column_name>AMOUNT</column_name>
123
- <params>
124
- <format>%.2f</format>
125
- </params>
126
- </item_price>
127
- <item_quantity>
128
- <class>eems_affiliate/map_order</class>
129
- <method>getItemQuantity</method>
130
- <type>helper</type>
131
- <column_name>QUANTITY</column_name>
132
- </item_quantity>
133
- <dynamic_program_id>
134
- <class>eems_affiliate/map</class>
135
- <method>getProgramId</method>
136
- <type>helper</type>
137
- <column_name>PROGRAM_ID</column_name>
138
- </dynamic_program_id>
139
- <dynamic_item_order_id>
140
- <class>eems_affiliate/map_order</class>
141
- <method>getItemOrderId</method>
142
- <type>helper</type>
143
- <column_name>ORDER_ID</column_name>
144
- <params>
145
- <format>%.50s</format>
146
- </params>
147
- </dynamic_item_order_id>
148
- <dynamic_item_id>
149
- <class>eems_affiliate/map_order</class>
150
- <method>getItemId</method>
151
- <type>helper</type>
152
- <column_name>ITEM_ID</column_name>
153
- <params>
154
- <format>%.50s</format>
155
- <key>sku</key>
156
- </params>
157
- </dynamic_item_id>
158
- <dynamic_item_price>
159
- <class>eems_affiliate/map_order</class>
160
- <method>getItemPrice</method>
161
- <type>helper</type>
162
- <column_name>ITEM_PRICE</column_name>
163
- <params>
164
- <format>%.2f</format>
165
- </params>
166
- </dynamic_item_price>
167
- <category>
168
- <class>eems_affiliate/map_order</class>
169
- <method>getCategory</method>
170
- <type>helper</type>
171
- <column_name>CATEGORY</column_name>
172
- </category>
173
- <new_to_file>
174
- <class>eems_affiliate/map_order</class>
175
- <method>getNewToFile</method>
176
- <type>helper</type>
177
- <column_name>NEW_TO_FILE</column_name>
178
- </new_to_file>
179
- <order_amount>
180
- <class>eems_affiliate/map_order</class>
181
- <method>getOrderAmount</method>
182
- <type>helper</type>
183
- <column_name>AMOUNT</column_name>
184
- <params>
185
- <format>%.2f</format>
186
- </params>
187
- </order_amount>
188
- <reason>
189
- <class>eems_affiliate/map</class>
190
- <method>passStatic</method>
191
- <type>helper</type>
192
- <column_name>REASON</column_name>
193
- <params>
194
- <value>8</value>
195
- </params>
196
- </reason>
197
- <transaction_type>
198
- <class>eems_affiliate/map_order</class>
199
- <method>getTransactionType</method>
200
- <type>helper</type>
201
- <column_name>TYPE</column_name>
202
- </transaction_type>
203
- <age_range>
204
- <class>eems_affiliate/map</class>
205
- <method>getDataValue</method>
206
- <type>helper</type>
207
- <column_name>age_range</column_name>
208
- <params>
209
- <format>%.32s</format>
210
- </params>
211
- </age_range>
212
- <artist>
213
- <class>eems_affiliate/map</class>
214
- <method>getDataValue</method>
215
- <type>helper</type>
216
- <column_name>artist</column_name>
217
- <params>
218
- <format>%.128s</format>
219
- </params>
220
- </artist>
221
- <aspect_ratio>
222
- <class>eems_affiliate/map</class>
223
- <method>getDataValue</method>
224
- <type>helper</type>
225
- <column_name>aspect_ratio</column_name>
226
- <params>
227
- <format>%.16s</format>
228
- </params>
229
- </aspect_ratio>
230
- <author>
231
- <class>eems_affiliate/map</class>
232
- <method>getDataValue</method>
233
- <type>helper</type>
234
- <column_name>author</column_name>
235
- <params>
236
- <format>%.128s</format>
237
- </params>
238
- </author>
239
- <battery_life>
240
- <class>eems_affiliate/map</class>
241
- <method>getDataValue</method>
242
- <type>helper</type>
243
- <column_name>battery_life</column_name>
244
- <params>
245
- <format>%.32s</format>
246
- </params>
247
- </battery_life>
248
- <binding>
249
- <class>eems_affiliate/map</class>
250
- <method>getDataValue</method>
251
- <type>helper</type>
252
- <column_name>binding</column_name>
253
- <params>
254
- <format>%.32s</format>
255
- </params>
256
- </binding>
257
- <buy_url>
258
- <class>eems_affiliate/map</class>
259
- <method>getDataValue</method>
260
- <type>helper</type>
261
- <column_name>buy_url</column_name>
262
- <params>
263
- <key>product_url</key>
264
- <format>%.2000s</format>
265
- </params>
266
- </buy_url>
267
- <category_network>
268
- <class>eems_affiliate/map_product</class>
269
- <method>getCategory</method>
270
- <type>helper</type>
271
- <column_name>category_network</column_name>
272
- <params>
273
- <format>%.256s</format>
274
- </params>
275
- </category_network>
276
- <category_program>
277
- <class>eems_affiliate/map_product</class>
278
- <method>getCategory</method>
279
- <type>helper</type>
280
- <column_name>category_program</column_name>
281
- <params>
282
- <format>%.256s</format>
283
- </params>
284
- </category_program>
285
- <color>
286
- <class>eems_affiliate/map</class>
287
- <method>getDataValue</method>
288
- <type>helper</type>
289
- <column_name>color</column_name>
290
- <params>
291
- <format>%.32s</format>
292
- </params>
293
- </color>
294
- <color_output>
295
- <class>eems_affiliate/map</class>
296
- <method>getValueYesNo</method>
297
- <type>helper</type>
298
- <column_name>color_output</column_name>
299
- <params>
300
- <format>%s</format>
301
- </params>
302
- </color_output>
303
- <condition>
304
- <class>eems_affiliate/map</class>
305
- <method>getDataValue</method>
306
- <type>helper</type>
307
- <column_name>condition</column_name>
308
- <params>
309
- <format>%.64s</format>
310
- </params>
311
- </condition>
312
- <description_long>
313
- <class>eems_affiliate/map</class>
314
- <method>getDataValue</method>
315
- <type>helper</type>
316
- <column_name>description_long</column_name>
317
- <params>
318
- <format>%.2000s</format>
319
- </params>
320
- </description_long>
321
- <description_short>
322
- <class>eems_affiliate/map</class>
323
- <method>getDataValue</method>
324
- <type>helper</type>
325
- <column_name>description_short</column_name>
326
- <params>
327
- <format>%.512s</format>
328
- </params>
329
- </description_short>
330
- <director>
331
- <class>eems_affiliate/map</class>
332
- <method>getDataValue</method>
333
- <type>helper</type>
334
- <column_name>director</column_name>
335
- <params>
336
- <format>%.128s</format>
337
- </params>
338
- </director>
339
- <discontinued>
340
- <class>eems_affiliate/map</class>
341
- <method>getValueYesNo</method>
342
- <type>helper</type>
343
- <column_name>discontinued</column_name>
344
- <params>
345
- <format>%s</format>
346
- </params>
347
- </discontinued>
348
- <display_type>
349
- <class>eems_affiliate/map</class>
350
- <method>getDataValue</method>
351
- <type>helper</type>
352
- <column_name>display_type</column_name>
353
- <params>
354
- <format>%.32s</format>
355
- </params>
356
- </display_type>
357
- <edition>
358
- <class>eems_affiliate/map</class>
359
- <method>getDataValue</method>
360
- <type>helper</type>
361
- <column_name>edition</column_name>
362
- <params>
363
- <format>%.32s</format>
364
- </params>
365
- </edition>
366
- <expiration_date>
367
- <class>eems_affiliate/map</class>
368
- <method>getDateValue</method>
369
- <type>helper</type>
370
- <column_name>expiration_date</column_name>
371
- <params>
372
- <format>Y-m-d</format>
373
- </params>
374
- </expiration_date>
375
- <features>
376
- <class>eems_affiliate/map</class>
377
- <method>getDataValue</method>
378
- <type>helper</type>
379
- <column_name>features</column_name>
380
- <params>
381
- <format>%.128s</format>
382
- </params>
383
- </features>
384
- <focus_type>
385
- <class>eems_affiliate/map</class>
386
- <method>getDataValue</method>
387
- <type>helper</type>
388
- <column_name>focus_type</column_name>
389
- <params>
390
- <format>%.128s</format>
391
- </params>
392
- </focus_type>
393
- <format>
394
- <class>eems_affiliate/map</class>
395
- <method>getDataValue</method>
396
- <type>helper</type>
397
- <column_name>format</column_name>
398
- <params>
399
- <format>%.64s</format>
400
- </params>
401
- </format>
402
- <functions>
403
- <class>eems_affiliate/map</class>
404
- <method>getDataValue</method>
405
- <type>helper</type>
406
- <column_name>functions</column_name>
407
- <params>
408
- <format>%.64s</format>
409
- </params>
410
- </functions>
411
- <genre>
412
- <class>eems_affiliate/map</class>
413
- <method>getDataValue</method>
414
- <type>helper</type>
415
- <column_name>genre</column_name>
416
- <params>
417
- <format>%.64s</format>
418
- </params>
419
- </genre>
420
- <heel_height>
421
- <class>eems_affiliate/map</class>
422
- <method>getDataValue</method>
423
- <type>helper</type>
424
- <column_name>heel_height</column_name>
425
- <params>
426
- <format>%.32s</format>
427
- </params>
428
- </heel_height>
429
- <height>
430
- <class>eems_affiliate/map</class>
431
- <method>getDataValue</method>
432
- <type>helper</type>
433
- <column_name>height</column_name>
434
- <params>
435
- <format>%.32s</format>
436
- </params>
437
- </height>
438
- <image_thumb_url>
439
- <class>eems_affiliate/map_product</class>
440
- <method>getImageUrl</method>
441
- <type>helper</type>
442
- <column_name>image_thumb_url</column_name>
443
- <params>
444
- <format>%.2000s</format>
445
- </params>
446
- </image_thumb_url>
447
- <image_url>
448
- <class>eems_affiliate/map_product</class>
449
- <method>getImageUrl</method>
450
- <type>helper</type>
451
- <column_name>image_url</column_name>
452
- <params>
453
- <format>%.2000s</format>
454
- </params>
455
- </image_url>
456
- <installation>
457
- <class>eems_affiliate/map</class>
458
- <method>getDataValue</method>
459
- <type>helper</type>
460
- <column_name>installation</column_name>
461
- <params>
462
- <format>%.64s</format>
463
- </params>
464
- </installation>
465
- <in_stock>
466
- <class>eems_affiliate/map_product</class>
467
- <method>getInStockYesNo</method>
468
- <type>helper</type>
469
- <column_name>in_stock</column_name>
470
- <params>
471
- <format>%s</format>
472
- </params>
473
- </in_stock>
474
- <isbn>
475
- <class>eems_affiliate/map</class>
476
- <method>getDataValue</method>
477
- <type>helper</type>
478
- <column_name>isbn</column_name>
479
- <params>
480
- <format>%.64s</format>
481
- </params>
482
- </isbn>
483
- <keywords>
484
- <class>eems_affiliate/map</class>
485
- <method>getDataValue</method>
486
- <type>helper</type>
487
- <column_name>keywords</column_name>
488
- <params>
489
- <format>%.256s</format>
490
- </params>
491
- </keywords>
492
- <length>
493
- <class>eems_affiliate/map</class>
494
- <method>getDataValue</method>
495
- <type>helper</type>
496
- <column_name>length</column_name>
497
- <params>
498
- <format>%.32s</format>
499
- </params>
500
- </length>
501
- <load_type>
502
- <class>eems_affiliate/map</class>
503
- <method>getDataValue</method>
504
- <type>helper</type>
505
- <column_name>load_type</column_name>
506
- <params>
507
- <format>%.32s</format>
508
- </params>
509
- </load_type>
510
- <location>
511
- <class>eems_affiliate/map</class>
512
- <method>getDataValue</method>
513
- <type>helper</type>
514
- <column_name>location</column_name>
515
- <params>
516
- <format>%.64s</format>
517
- </params>
518
- </location>
519
- <made_in>
520
- <class>eems_affiliate/map</class>
521
- <method>getDataValue</method>
522
- <type>helper</type>
523
- <column_name>made_in</column_name>
524
- <params>
525
- <format>%.64s</format>
526
- </params>
527
- </made_in>
528
- <manufacturer>
529
- <class>eems_affiliate/map</class>
530
- <method>getDataValue</method>
531
- <type>helper</type>
532
- <column_name>manufacturer</column_name>
533
- <params>
534
- <format>%.128s</format>
535
- </params>
536
- </manufacturer>
537
- <material>
538
- <class>eems_affiliate/map</class>
539
- <method>getDataValue</method>
540
- <type>helper</type>
541
- <column_name>material</column_name>
542
- <params>
543
- <format>%.128s</format>
544
- </params>
545
- </material>
546
- <megapixels>
547
- <class>eems_affiliate/map</class>
548
- <method>getDataValue</method>
549
- <type>helper</type>
550
- <column_name>megapixels</column_name>
551
- <params>
552
- <format>%01.2f</format>
553
- </params>
554
- </megapixels>
555
- <memory_capacity>
556
- <class>eems_affiliate/map</class>
557
- <method>getDataValue</method>
558
- <type>helper</type>
559
- <column_name>memory_capacity</column_name>
560
- <params>
561
- <format>%.64s</format>
562
- </params>
563
- </memory_capacity>
564
- <memory_card_slot>
565
- <class>eems_affiliate/map</class>
566
- <method>getDataValue</method>
567
- <type>helper</type>
568
- <column_name>memory_card_slot</column_name>
569
- <params>
570
- <format>%.32s</format>
571
- </params>
572
- </memory_card_slot>
573
- <memory_type>
574
- <class>eems_affiliate/map</class>
575
- <method>getDataValue</method>
576
- <type>helper</type>
577
- <column_name>memory_type</column_name>
578
- <params>
579
- <format>%.64s</format>
580
- </params>
581
- </memory_type>
582
- <model_number>
583
- <class>eems_affiliate/map</class>
584
- <method>getDataValue</method>
585
- <type>helper</type>
586
- <column_name>model_number</column_name>
587
- <params>
588
- <format>%.128s</format>
589
- </params>
590
- </model_number>
591
- <mpn>
592
- <class>eems_affiliate/map</class>
593
- <method>getDataValue</method>
594
- <type>helper</type>
595
- <column_name>mpn</column_name>
596
- <params>
597
- <format>%.128s</format>
598
- </params>
599
- </mpn>
600
- <name>
601
- <class>eems_affiliate/map</class>
602
- <method>getDataValue</method>
603
- <type>helper</type>
604
- <column_name>name</column_name>
605
- <params>
606
- <format>%.128s</format>
607
- </params>
608
- </name>
609
- <occasion>
610
- <class>eems_affiliate/map</class>
611
- <method>getDataValue</method>
612
- <type>helper</type>
613
- <column_name>occasion</column_name>
614
- <params>
615
- <format>%.128s</format>
616
- </params>
617
- </occasion>
618
- <operating_system>
619
- <class>eems_affiliate/map</class>
620
- <method>getDataValue</method>
621
- <type>helper</type>
622
- <column_name>operating_system</column_name>
623
- <params>
624
- <format>%.128s</format>
625
- </params>
626
- </operating_system>
627
- <optical_drive>
628
- <class>eems_affiliate/map</class>
629
- <method>getDataValue</method>
630
- <type>helper</type>
631
- <column_name>optical_drive</column_name>
632
- <params>
633
- <format>%.64s</format>
634
- </params>
635
- </optical_drive>
636
- <pages>
637
- <class>eems_affiliate/map</class>
638
- <method>getDataValue</method>
639
- <type>helper</type>
640
- <column_name>pages</column_name>
641
- <params>
642
- <format>%.11d</format>
643
- </params>
644
- </pages>
645
- <payment_accepted>
646
- <class>eems_affiliate/map</class>
647
- <method>getDataValue</method>
648
- <type>helper</type>
649
- <column_name>payment_accepted</column_name>
650
- <params>
651
- <format>%.128s</format>
652
- </params>
653
- </payment_accepted>
654
- <payment_notes>
655
- <class>eems_affiliate/map</class>
656
- <method>getDataValue</method>
657
- <type>helper</type>
658
- <column_name>payment_notes</column_name>
659
- <params>
660
- <format>%.256s</format>
661
- </params>
662
- </payment_notes>
663
- <platform>
664
- <class>eems_affiliate/map</class>
665
- <method>getDataValue</method>
666
- <type>helper</type>
667
- <column_name>platform</column_name>
668
- <params>
669
- <format>%.64s</format>
670
- </params>
671
- </platform>
672
- <price>
673
- <class>eems_affiliate/map</class>
674
- <method>getDataValue</method>
675
- <type>helper</type>
676
- <column_name>price</column_name>
677
- <params>
678
- <format>%01.2f</format>
679
- </params>
680
- </price>
681
- <price_retail>
682
- <class>eems_affiliate/map</class>
683
- <method>getDataValue</method>
684
- <type>helper</type>
685
- <column_name>price_retail</column_name>
686
- <params>
687
- <format>%01.2f</format>
688
- </params>
689
- </price_retail>
690
- <price_sale>
691
- <class>eems_affiliate/map</class>
692
- <method>getDataValue</method>
693
- <type>helper</type>
694
- <column_name>price_sale</column_name>
695
- <params>
696
- <format>%01.2f</format>
697
- </params>
698
- </price_sale>
699
- <price_shipping>
700
- <class>eems_affiliate/map</class>
701
- <method>getDataValue</method>
702
- <type>helper</type>
703
- <column_name>price_shipping</column_name>
704
- <params>
705
- <format>%01.2f</format>
706
- </params>
707
- </price_shipping>
708
- <processor>
709
- <class>eems_affiliate/map</class>
710
- <method>getDataValue</method>
711
- <type>helper</type>
712
- <column_name>processor</column_name>
713
- <params>
714
- <format>%.64s</format>
715
- </params>
716
- </processor>
717
- <publisher>
718
- <class>eems_affiliate/map</class>
719
- <method>getDataValue</method>
720
- <type>helper</type>
721
- <column_name>publisher</column_name>
722
- <params>
723
- <format>%.128s</format>
724
- </params>
725
- </publisher>
726
- <quantity_in_stock>
727
- <class>eems_affiliate/map_product</class>
728
- <method>getInStockQty</method>
729
- <type>helper</type>
730
- <column_name>quantity_in_stock</column_name>
731
- <params>
732
- <format>%.11d</format>
733
- </params>
734
- </quantity_in_stock>
735
- <rating>
736
- <class>eems_affiliate/map</class>
737
- <method>getDataValue</method>
738
- <type>helper</type>
739
- <column_name>rating</column_name>
740
- <params>
741
- <format>%.32s</format>
742
- </params>
743
- </rating>
744
- <recommended_usage>
745
- <class>eems_affiliate/map</class>
746
- <method>getDataValue</method>
747
- <type>helper</type>
748
- <column_name>recommended_usage</column_name>
749
- <params>
750
- <format>%.128s</format>
751
- </params>
752
- </recommended_usage>
753
- <resolution>
754
- <class>eems_affiliate/map</class>
755
- <method>getDataValue</method>
756
- <type>helper</type>
757
- <column_name>resolution</column_name>
758
- <params>
759
- <format>%.64s</format>
760
- </params>
761
- </resolution>
762
- <screen_size>
763
- <class>eems_affiliate/map</class>
764
- <method>getDataValue</method>
765
- <type>helper</type>
766
- <column_name>screen_size</column_name>
767
- <params>
768
- <format>%.32s</format>
769
- </params>
770
- </screen_size>
771
- <shipping_method>
772
- <class>eems_affiliate/map</class>
773
- <method>getDataValue</method>
774
- <type>helper</type>
775
- <column_name>shipping_method</column_name>
776
- <params>
777
- <format>%.64s</format>
778
- </params>
779
- </shipping_method>
780
- <shoe_size>
781
- <class>eems_affiliate/map</class>
782
- <method>getDataValue</method>
783
- <type>helper</type>
784
- <column_name>shoe_size</column_name>
785
- <params>
786
- <format>%.32s</format>
787
- </params>
788
- </shoe_size>
789
- <shoe_width>
790
- <class>eems_affiliate/map</class>
791
- <method>getDataValue</method>
792
- <type>helper</type>
793
- <column_name>shoe_width</column_name>
794
- <params>
795
- <format>%.32s</format>
796
- </params>
797
- </shoe_width>
798
- <size>
799
- <class>eems_affiliate/map</class>
800
- <method>getDataValue</method>
801
- <type>helper</type>
802
- <column_name>size</column_name>
803
- <params>
804
- <format>%.32s</format>
805
- </params>
806
- </size>
807
- <sku>
808
- <class>eems_affiliate/map</class>
809
- <method>getDataValue</method>
810
- <type>helper</type>
811
- <column_name>sku</column_name>
812
- <params>
813
- <format>%.128s</format>
814
- </params>
815
- </sku>
816
- <staring>
817
- <class>eems_affiliate/map</class>
818
- <method>getDataValue</method>
819
- <type>helper</type>
820
- <column_name>staring</column_name>
821
- <params>
822
- <format>%.128s</format>
823
- </params>
824
- </staring>
825
- <style>
826
- <class>eems_affiliate/map</class>
827
- <method>getDataValue</method>
828
- <type>helper</type>
829
- <column_name>style</column_name>
830
- <params>
831
- <format>%.64s</format>
832
- </params>
833
- </style>
834
- <tech_spec_url>
835
- <class>eems_affiliate/map</class>
836
- <method>getDataValue</method>
837
- <type>helper</type>
838
- <column_name>tech_spec_url</column_name>
839
- <params>
840
- <format>%.2000s</format>
841
- </params>
842
- </tech_spec_url>
843
- <tracks>
844
- <class>eems_affiliate/map</class>
845
- <method>getDataValue</method>
846
- <type>helper</type>
847
- <column_name>tracks</column_name>
848
- <params>
849
- <format>%.11d</format>
850
- </params>
851
- </tracks>
852
- <upc>
853
- <class>eems_affiliate/map</class>
854
- <method>getDataValue</method>
855
- <type>helper</type>
856
- <column_name>upc</column_name>
857
- <params>
858
- <format>%.128s</format>
859
- </params>
860
- </upc>
861
- <weight>
862
- <class>eems_affiliate/map</class>
863
- <method>getDataValue</method>
864
- <type>helper</type>
865
- <column_name>weight</column_name>
866
- <params>
867
- <format>%.32s</format>
868
- </params>
869
- </weight>
870
- <width>
871
- <class>eems_affiliate/map</class>
872
- <method>getDataValue</method>
873
- <type>helper</type>
874
- <column_name>width</column_name>
875
- <params>
876
- <format>%.32s</format>
877
- </params>
878
- </width>
879
- <wireless_interface>
880
- <class>eems_affiliate/map</class>
881
- <method>getDataValue</method>
882
- <type>helper</type>
883
- <column_name>wireless_interface</column_name>
884
- <params>
885
- <format>%.32s</format>
886
- </params>
887
- </wireless_interface>
888
- <year>
889
- <class>eems_affiliate/map</class>
890
- <method>getYearValue</method>
891
- <type>helper</type>
892
- <column_name>year</column_name>
893
- <params>
894
- <format>%.dd</format>
895
- </params>
896
- </year>
897
- <zoom>
898
- <class>eems_affiliate/map</class>
899
- <method>getDataValue</method>
900
- <type>helper</type>
901
- <column_name>zoom</column_name>
902
- <params>
903
- <format>%.32s</format>
904
- </params>
905
- </zoom>
906
- </callback_mappings>
907
- <order_dynamic>
908
- <fields>dynamic_program_id,dynamic_item_order_id,dynamic_item_id,dynamic_item_price,item_quantity,category,new_to_file</fields>
909
- <file_name_format>%s_transactions_corrected_%s.csv</file_name_format>
910
- </order_dynamic>
911
- <order_itemized>
912
- <fields>program_id,item_order_id,item_id,item_price,item_quantity,reason</fields>
913
- <file_name_format>%s_transactions_corrected_%s.csv</file_name_format>
914
- </order_itemized>
915
- <order_basic>
916
- <fields>program_id,order_amount,order_id,reason,transaction_type</fields>
917
- <file_name_format>%s_transactions_corrected_%s.csv</file_name_format>
918
- </order_basic>
919
- <product>
920
- <file_name_format>%s_product_feed.csv</file_name_format>
921
- </product>
922
- </feeds>
923
- </eems_affiliate>
924
- <eems_affiliate_product_attribute_map>
925
- <!--
926
- The purpose of this mapping is enabled the coexistence of both
927
- pre-configured product attributes mapping and configured attributes
928
- mapping for the affiliate product feed. This means that when this
929
- module is installed and no other attribute is configured for the
930
- product feed the required pre-mapped attributes will be sufficient
931
- enough to generate a valid product feed.
932
- -->
933
- <age_range/>
934
- <artist/>
935
- <aspect_ratio/>
936
- <author/>
937
- <battery_life/>
938
- <binding/>
939
- <buy_url>product_url</buy_url>
940
- <category_network/>
941
- <category_program>category</category_program>
942
- <color/>
943
- <color_output/>
944
- <condition/>
945
- <description_long>description</description_long>
946
- <description_short>short_description</description_short>
947
- <director/>
948
- <discontinued/>
949
- <display_type/>
950
- <edition/>
951
- <expiration_date/>
952
- <features/>
953
- <focus_type/>
954
- <format/>
955
- <functions/>
956
- <genre/>
957
- <heel_height/>
958
- <height/>
959
- <image_thumb_url>thumbnail</image_thumb_url>
960
- <image_url>image</image_url>
961
- <installation/>
962
- <in_stock/>
963
- <isbn/>
964
- <keywords>meta_keyword</keywords>
965
- <length/>
966
- <load_type/>
967
- <location/>
968
- <made_in/>
969
- <manufacturer>manufacturer</manufacturer>
970
- <material/>
971
- <megapixels/>
972
- <memory_capacity/>
973
- <memory_card_slot/>
974
- <memory_type/>
975
- <model_number/>
976
- <mpn/>
977
- <name>name</name>
978
- <occasion/>
979
- <operating_system/>
980
- <optical_drive/>
981
- <pages/>
982
- <payment_accepted/>
983
- <payment_notes/>
984
- <platform/>
985
- <price>price</price>
986
- <price_retail>msrp</price_retail>
987
- <price_sale>special_price</price_sale>
988
- <price_shipping/>
989
- <processor/>
990
- <publisher/>
991
- <quantity_in_stock>qty</quantity_in_stock>
992
- <rating/>
993
- <recommended_usage/>
994
- <resolution/>
995
- <screen_size/>
996
- <shipping_method/>
997
- <shoe_size/>
998
- <shoe_width/>
999
- <size/>
1000
- <sku>sku</sku>
1001
- <staring/>
1002
- <style/>
1003
- <tech_spec_url/>
1004
- <tracks/>
1005
- <upc/>
1006
- <weight/>
1007
- <width/>
1008
- <wireless_interface/>
1009
- <year/>
1010
- <zoom/>
1011
- </eems_affiliate_product_attribute_map>
1012
- </marketing_solutions>
1013
- </default>
1014
- <frontend>
1015
- <layout>
1016
- <updates>
1017
- <eems_affiliate>
1018
- <file>eems_affiliate.xml</file>
1019
- </eems_affiliate>
1020
- </updates>
1021
- </layout>
1022
- </frontend>
1023
- <phpunit>
1024
- <suite>
1025
- <modules>
1026
- <EbayEnterprise_Affiliate/>
1027
- </modules>
1028
- </suite>
1029
- </phpunit>
1030
- </config>
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!--
3
+ Copyright (c) 2014 eBay Enterprise, Inc.
4
+
5
+ NOTICE OF LICENSE
6
+
7
+ This source file is subject to the eBay Enterprise
8
+ Magento Extensions End User License Agreement
9
+ that is bundled with this package in the file LICENSE.md.
10
+ It is also available through the world-wide-web at this URL:
11
+ http://www.ebayenterprise.com/files/pdf/Magento_Connect_Extensions_EULA_050714.pdf
12
+
13
+ @copyright Copyright (c) 2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/)
14
+ @license http://www.ebayenterprise.com/files/pdf/Magento_Connect_Extensions_EULA_050714.pdf eBay Enterprise Magento Extensions End User License Agreement
15
+ -->
16
+ <config>
17
+ <modules>
18
+ <EbayEnterprise_Affiliate>
19
+ <version>1.2.0.2</version>
20
+ </EbayEnterprise_Affiliate>
21
+ </modules>
22
+ <global>
23
+ <models>
24
+ <eems_affiliate>
25
+ <class>EbayEnterprise_Affiliate_Model</class>
26
+ </eems_affiliate>
27
+ </models>
28
+ <helpers>
29
+ <eems_affiliate>
30
+ <class>EbayEnterprise_Affiliate_Helper</class>
31
+ </eems_affiliate>
32
+ </helpers>
33
+ <blocks>
34
+ <eems_affiliate>
35
+ <class>EbayEnterprise_Affiliate_Block</class>
36
+ </eems_affiliate>
37
+ </blocks>
38
+ <resources>
39
+ <eems_affiliate_setup>
40
+ <setup>
41
+ <module>EbayEnterprise_Affiliate</module>
42
+ <class>Mage_Core_Model_Resource_Setup</class>
43
+ </setup>
44
+ </eems_affiliate_setup>
45
+ </resources>
46
+ </global>
47
+ <crontab>
48
+ <jobs>
49
+ <eems_affiliate_generate_product_feed>
50
+ <schedule>
51
+ <cron_expr>0 3 * * *</cron_expr>
52
+ </schedule>
53
+ <run>
54
+ <model>eems_affiliate/observer::createProductFeed</model>
55
+ </run>
56
+ </eems_affiliate_generate_product_feed>
57
+ <eems_affiliate_generate_corrected_order_feed>
58
+ <schedule>
59
+ <cron_expr>0 3 * * *</cron_expr>
60
+ </schedule>
61
+ <run>
62
+ <model>eems_affiliate/observer::createCorrectedOrdersFeed</model>
63
+ </run>
64
+ </eems_affiliate_generate_corrected_order_feed>
65
+ </jobs>
66
+ </crontab>
67
+ <default>
68
+ <marketing_solutions>
69
+ <eems_affiliate>
70
+ <active>0</active>
71
+ <js_files>eems_affiliate/cookie.js</js_files>
72
+ <!-- use comma to add more js files-->
73
+ <beacon_url>https://t.pepperjamnetwork.com/track</beacon_url>
74
+ <export_path>var/export/eems_affiliate/</export_path>
75
+ <order_type>itemized</order_type>
76
+ <program_id/>
77
+ <transaction_type>1</transaction_type>
78
+ <conditional_pixel_enabled>0</conditional_pixel_enabled>
79
+ <source_key_name>eean</source_key_name>
80
+ <product_feed_enabled>1</product_feed_enabled>
81
+ <order_feed_enabled>1</order_feed_enabled>
82
+ <feeds>
83
+ <callback_mappings>
84
+ <program_id>
85
+ <class>eems_affiliate/map</class>
86
+ <method>getProgramId</method>
87
+ <type>helper</type>
88
+ <column_name>PID</column_name>
89
+ </program_id>
90
+ <order_id>
91
+ <class>eems_affiliate/map_order</class>
92
+ <method>getOrderId</method>
93
+ <type>helper</type>
94
+ <column_name>OID</column_name>
95
+ <params>
96
+ <format>%.50s</format>
97
+ </params>
98
+ </order_id>
99
+ <item_order_id>
100
+ <class>eems_affiliate/map_order</class>
101
+ <method>getItemOrderId</method>
102
+ <type>helper</type>
103
+ <column_name>OID</column_name>
104
+ <params>
105
+ <format>%.50s</format>
106
+ </params>
107
+ </item_order_id>
108
+ <item_id>
109
+ <class>eems_affiliate/map_order</class>
110
+ <method>getItemId</method>
111
+ <type>helper</type>
112
+ <column_name>ITEMID</column_name>
113
+ <params>
114
+ <format>%.50s</format>
115
+ <key>sku</key>
116
+ </params>
117
+ </item_id>
118
+ <item_price>
119
+ <class>eems_affiliate/map_order</class>
120
+ <method>getItemPrice</method>
121
+ <type>helper</type>
122
+ <column_name>AMOUNT</column_name>
123
+ <params>
124
+ <format>%.2f</format>
125
+ </params>
126
+ </item_price>
127
+ <item_quantity>
128
+ <class>eems_affiliate/map_order</class>
129
+ <method>getItemQuantity</method>
130
+ <type>helper</type>
131
+ <column_name>QUANTITY</column_name>
132
+ </item_quantity>
133
+ <dynamic_program_id>
134
+ <class>eems_affiliate/map</class>
135
+ <method>getProgramId</method>
136
+ <type>helper</type>
137
+ <column_name>PROGRAM_ID</column_name>
138
+ </dynamic_program_id>
139
+ <dynamic_item_order_id>
140
+ <class>eems_affiliate/map_order</class>
141
+ <method>getItemOrderId</method>
142
+ <type>helper</type>
143
+ <column_name>ORDER_ID</column_name>
144
+ <params>
145
+ <format>%.50s</format>
146
+ </params>
147
+ </dynamic_item_order_id>
148
+ <dynamic_item_id>
149
+ <class>eems_affiliate/map_order</class>
150
+ <method>getItemId</method>
151
+ <type>helper</type>
152
+ <column_name>ITEM_ID</column_name>
153
+ <params>
154
+ <format>%.50s</format>
155
+ <key>sku</key>
156
+ </params>
157
+ </dynamic_item_id>
158
+ <dynamic_item_price>
159
+ <class>eems_affiliate/map_order</class>
160
+ <method>getItemPrice</method>
161
+ <type>helper</type>
162
+ <column_name>ITEM_PRICE</column_name>
163
+ <params>
164
+ <format>%.2f</format>
165
+ </params>
166
+ </dynamic_item_price>
167
+ <category>
168
+ <class>eems_affiliate/map_order</class>
169
+ <method>getCategory</method>
170
+ <type>helper</type>
171
+ <column_name>CATEGORY</column_name>
172
+ </category>
173
+ <new_to_file>
174
+ <class>eems_affiliate/map_order</class>
175
+ <method>getNewToFile</method>
176
+ <type>helper</type>
177
+ <column_name>NEW_TO_FILE</column_name>
178
+ </new_to_file>
179
+ <order_amount>
180
+ <class>eems_affiliate/map_order</class>
181
+ <method>getOrderAmount</method>
182
+ <type>helper</type>
183
+ <column_name>AMOUNT</column_name>
184
+ <params>
185
+ <format>%.2f</format>
186
+ </params>
187
+ </order_amount>
188
+ <reason>
189
+ <class>eems_affiliate/map</class>
190
+ <method>passStatic</method>
191
+ <type>helper</type>
192
+ <column_name>REASON</column_name>
193
+ <params>
194
+ <value>8</value>
195
+ </params>
196
+ </reason>
197
+ <transaction_type>
198
+ <class>eems_affiliate/map_order</class>
199
+ <method>getTransactionType</method>
200
+ <type>helper</type>
201
+ <column_name>TYPE</column_name>
202
+ </transaction_type>
203
+ <age_range>
204
+ <class>eems_affiliate/map</class>
205
+ <method>getDataValue</method>
206
+ <type>helper</type>
207
+ <column_name>age_range</column_name>
208
+ <params>
209
+ <format>%.32s</format>
210
+ </params>
211
+ </age_range>
212
+ <artist>
213
+ <class>eems_affiliate/map</class>
214
+ <method>getDataValue</method>
215
+ <type>helper</type>
216
+ <column_name>artist</column_name>
217
+ <params>
218
+ <format>%.128s</format>
219
+ </params>
220
+ </artist>
221
+ <aspect_ratio>
222
+ <class>eems_affiliate/map</class>
223
+ <method>getDataValue</method>
224
+ <type>helper</type>
225
+ <column_name>aspect_ratio</column_name>
226
+ <params>
227
+ <format>%.16s</format>
228
+ </params>
229
+ </aspect_ratio>
230
+ <author>
231
+ <class>eems_affiliate/map</class>
232
+ <method>getDataValue</method>
233
+ <type>helper</type>
234
+ <column_name>author</column_name>
235
+ <params>
236
+ <format>%.128s</format>
237
+ </params>
238
+ </author>
239
+ <battery_life>
240
+ <class>eems_affiliate/map</class>
241
+ <method>getDataValue</method>
242
+ <type>helper</type>
243
+ <column_name>battery_life</column_name>
244
+ <params>
245
+ <format>%.32s</format>
246
+ </params>
247
+ </battery_life>
248
+ <binding>
249
+ <class>eems_affiliate/map</class>
250
+ <method>getDataValue</method>
251
+ <type>helper</type>
252
+ <column_name>binding</column_name>
253
+ <params>
254
+ <format>%.32s</format>
255
+ </params>
256
+ </binding>
257
+ <buy_url>
258
+ <class>eems_affiliate/map</class>
259
+ <method>getDataValue</method>
260
+ <type>helper</type>
261
+ <column_name>buy_url</column_name>
262
+ <params>
263
+ <key>product_url</key>
264
+ <format>%.2000s</format>
265
+ </params>
266
+ </buy_url>
267
+ <category_network>
268
+ <class>eems_affiliate/map_product</class>
269
+ <method>getCategory</method>
270
+ <type>helper</type>
271
+ <column_name>category_network</column_name>
272
+ <params>
273
+ <format>%.256s</format>
274
+ </params>
275
+ </category_network>
276
+ <category_program>
277
+ <class>eems_affiliate/map_product</class>
278
+ <method>getCategory</method>
279
+ <type>helper</type>
280
+ <column_name>category_program</column_name>
281
+ <params>
282
+ <format>%.256s</format>
283
+ </params>
284
+ </category_program>
285
+ <color>
286
+ <class>eems_affiliate/map</class>
287
+ <method>getDataValue</method>
288
+ <type>helper</type>
289
+ <column_name>color</column_name>
290
+ <params>
291
+ <format>%.32s</format>
292
+ </params>
293
+ </color>
294
+ <color_output>
295
+ <class>eems_affiliate/map</class>
296
+ <method>getValueYesNo</method>
297
+ <type>helper</type>
298
+ <column_name>color_output</column_name>
299
+ <params>
300
+ <format>%s</format>
301
+ </params>
302
+ </color_output>
303
+ <condition>
304
+ <class>eems_affiliate/map</class>
305
+ <method>getDataValue</method>
306
+ <type>helper</type>
307
+ <column_name>condition</column_name>
308
+ <params>
309
+ <format>%.64s</format>
310
+ </params>
311
+ </condition>
312
+ <description_long>
313
+ <class>eems_affiliate/map</class>
314
+ <method>getDataValue</method>
315
+ <type>helper</type>
316
+ <column_name>description_long</column_name>
317
+ <params>
318
+ <format>%.2000s</format>
319
+ </params>
320
+ </description_long>
321
+ <description_short>
322
+ <class>eems_affiliate/map</class>
323
+ <method>getDataValue</method>
324
+ <type>helper</type>
325
+ <column_name>description_short</column_name>
326
+ <params>
327
+ <format>%.512s</format>
328
+ </params>
329
+ </description_short>
330
+ <director>
331
+ <class>eems_affiliate/map</class>
332
+ <method>getDataValue</method>
333
+ <type>helper</type>
334
+ <column_name>director</column_name>
335
+ <params>
336
+ <format>%.128s</format>
337
+ </params>
338
+ </director>
339
+ <discontinued>
340
+ <class>eems_affiliate/map</class>
341
+ <method>getValueYesNo</method>
342
+ <type>helper</type>
343
+ <column_name>discontinued</column_name>
344
+ <params>
345
+ <format>%s</format>
346
+ </params>
347
+ </discontinued>
348
+ <display_type>
349
+ <class>eems_affiliate/map</class>
350
+ <method>getDataValue</method>
351
+ <type>helper</type>
352
+ <column_name>display_type</column_name>
353
+ <params>
354
+ <format>%.32s</format>
355
+ </params>
356
+ </display_type>
357
+ <edition>
358
+ <class>eems_affiliate/map</class>
359
+ <method>getDataValue</method>
360
+ <type>helper</type>
361
+ <column_name>edition</column_name>
362
+ <params>
363
+ <format>%.32s</format>
364
+ </params>
365
+ </edition>
366
+ <expiration_date>
367
+ <class>eems_affiliate/map</class>
368
+ <method>getDateValue</method>
369
+ <type>helper</type>
370
+ <column_name>expiration_date</column_name>
371
+ <params>
372
+ <format>Y-m-d</format>
373
+ </params>
374
+ </expiration_date>
375
+ <features>
376
+ <class>eems_affiliate/map</class>
377
+ <method>getDataValue</method>
378
+ <type>helper</type>
379
+ <column_name>features</column_name>
380
+ <params>
381
+ <format>%.128s</format>
382
+ </params>
383
+ </features>
384
+ <focus_type>
385
+ <class>eems_affiliate/map</class>
386
+ <method>getDataValue</method>
387
+ <type>helper</type>
388
+ <column_name>focus_type</column_name>
389
+ <params>
390
+ <format>%.128s</format>
391
+ </params>
392
+ </focus_type>
393
+ <format>
394
+ <class>eems_affiliate/map</class>
395
+ <method>getDataValue</method>
396
+ <type>helper</type>
397
+ <column_name>format</column_name>
398
+ <params>
399
+ <format>%.64s</format>
400
+ </params>
401
+ </format>
402
+ <functions>
403
+ <class>eems_affiliate/map</class>
404
+ <method>getDataValue</method>
405
+ <type>helper</type>
406
+ <column_name>functions</column_name>
407
+ <params>
408
+ <format>%.64s</format>
409
+ </params>
410
+ </functions>
411
+ <genre>
412
+ <class>eems_affiliate/map</class>
413
+ <method>getDataValue</method>
414
+ <type>helper</type>
415
+ <column_name>genre</column_name>
416
+ <params>
417
+ <format>%.64s</format>
418
+ </params>
419
+ </genre>
420
+ <heel_height>
421
+ <class>eems_affiliate/map</class>
422
+ <method>getDataValue</method>
423
+ <type>helper</type>
424
+ <column_name>heel_height</column_name>
425
+ <params>
426
+ <format>%.32s</format>
427
+ </params>
428
+ </heel_height>
429
+ <height>
430
+ <class>eems_affiliate/map</class>
431
+ <method>getDataValue</method>
432
+ <type>helper</type>
433
+ <column_name>height</column_name>
434
+ <params>
435
+ <format>%.32s</format>
436
+ </params>
437
+ </height>
438
+ <image_thumb_url>
439
+ <class>eems_affiliate/map_product</class>
440
+ <method>getImageUrl</method>
441
+ <type>helper</type>
442
+ <column_name>image_thumb_url</column_name>
443
+ <params>
444
+ <format>%.2000s</format>
445
+ </params>
446
+ </image_thumb_url>
447
+ <image_url>
448
+ <class>eems_affiliate/map_product</class>
449
+ <method>getImageUrl</method>
450
+ <type>helper</type>
451
+ <column_name>image_url</column_name>
452
+ <params>
453
+ <format>%.2000s</format>
454
+ </params>
455
+ </image_url>
456
+ <installation>
457
+ <class>eems_affiliate/map</class>
458
+ <method>getDataValue</method>
459
+ <type>helper</type>
460
+ <column_name>installation</column_name>
461
+ <params>
462
+ <format>%.64s</format>
463
+ </params>
464
+ </installation>
465
+ <in_stock>
466
+ <class>eems_affiliate/map_product</class>
467
+ <method>getInStockYesNo</method>
468
+ <type>helper</type>
469
+ <column_name>in_stock</column_name>
470
+ <params>
471
+ <format>%s</format>
472
+ </params>
473
+ </in_stock>
474
+ <isbn>
475
+ <class>eems_affiliate/map</class>
476
+ <method>getDataValue</method>
477
+ <type>helper</type>
478
+ <column_name>isbn</column_name>
479
+ <params>
480
+ <format>%.64s</format>
481
+ </params>
482
+ </isbn>
483
+ <keywords>
484
+ <class>eems_affiliate/map</class>
485
+ <method>getDataValue</method>
486
+ <type>helper</type>
487
+ <column_name>keywords</column_name>
488
+ <params>
489
+ <format>%.256s</format>
490
+ </params>
491
+ </keywords>
492
+ <length>
493
+ <class>eems_affiliate/map</class>
494
+ <method>getDataValue</method>
495
+ <type>helper</type>
496
+ <column_name>length</column_name>
497
+ <params>
498
+ <format>%.32s</format>
499
+ </params>
500
+ </length>
501
+ <load_type>
502
+ <class>eems_affiliate/map</class>
503
+ <method>getDataValue</method>
504
+ <type>helper</type>
505
+ <column_name>load_type</column_name>
506
+ <params>
507
+ <format>%.32s</format>
508
+ </params>
509
+ </load_type>
510
+ <location>
511
+ <class>eems_affiliate/map</class>
512
+ <method>getDataValue</method>
513
+ <type>helper</type>
514
+ <column_name>location</column_name>
515
+ <params>
516
+ <format>%.64s</format>
517
+ </params>
518
+ </location>
519
+ <made_in>
520
+ <class>eems_affiliate/map</class>
521
+ <method>getDataValue</method>
522
+ <type>helper</type>
523
+ <column_name>made_in</column_name>
524
+ <params>
525
+ <format>%.64s</format>
526
+ </params>
527
+ </made_in>
528
+ <manufacturer>
529
+ <class>eems_affiliate/map</class>
530
+ <method>getDataValue</method>
531
+ <type>helper</type>
532
+ <column_name>manufacturer</column_name>
533
+ <params>
534
+ <format>%.128s</format>
535
+ </params>
536
+ </manufacturer>
537
+ <material>
538
+ <class>eems_affiliate/map</class>
539
+ <method>getDataValue</method>
540
+ <type>helper</type>
541
+ <column_name>material</column_name>
542
+ <params>
543
+ <format>%.128s</format>
544
+ </params>
545
+ </material>
546
+ <megapixels>
547
+ <class>eems_affiliate/map</class>
548
+ <method>getDataValue</method>
549
+ <type>helper</type>
550
+ <column_name>megapixels</column_name>
551
+ <params>
552
+ <format>%01.2f</format>
553
+ </params>
554
+ </megapixels>
555
+ <memory_capacity>
556
+ <class>eems_affiliate/map</class>
557
+ <method>getDataValue</method>
558
+ <type>helper</type>
559
+ <column_name>memory_capacity</column_name>
560
+ <params>
561
+ <format>%.64s</format>
562
+ </params>
563
+ </memory_capacity>
564
+ <memory_card_slot>
565
+ <class>eems_affiliate/map</class>
566
+ <method>getDataValue</method>
567
+ <type>helper</type>
568
+ <column_name>memory_card_slot</column_name>
569
+ <params>
570
+ <format>%.32s</format>
571
+ </params>
572
+ </memory_card_slot>
573
+ <memory_type>
574
+ <class>eems_affiliate/map</class>
575
+ <method>getDataValue</method>
576
+ <type>helper</type>
577
+ <column_name>memory_type</column_name>
578
+ <params>
579
+ <format>%.64s</format>
580
+ </params>
581
+ </memory_type>
582
+ <model_number>
583
+ <class>eems_affiliate/map</class>
584
+ <method>getDataValue</method>
585
+ <type>helper</type>
586
+ <column_name>model_number</column_name>
587
+ <params>
588
+ <format>%.128s</format>
589
+ </params>
590
+ </model_number>
591
+ <mpn>
592
+ <class>eems_affiliate/map</class>
593
+ <method>getDataValue</method>
594
+ <type>helper</type>
595
+ <column_name>mpn</column_name>
596
+ <params>
597
+ <format>%.128s</format>
598
+ </params>
599
+ </mpn>
600
+ <name>
601
+ <class>eems_affiliate/map</class>
602
+ <method>getDataValue</method>
603
+ <type>helper</type>
604
+ <column_name>name</column_name>
605
+ <params>
606
+ <format>%.128s</format>
607
+ </params>
608
+ </name>
609
+ <occasion>
610
+ <class>eems_affiliate/map</class>
611
+ <method>getDataValue</method>
612
+ <type>helper</type>
613
+ <column_name>occasion</column_name>
614
+ <params>
615
+ <format>%.128s</format>
616
+ </params>
617
+ </occasion>
618
+ <operating_system>
619
+ <class>eems_affiliate/map</class>
620
+ <method>getDataValue</method>
621
+ <type>helper</type>
622
+ <column_name>operating_system</column_name>
623
+ <params>
624
+ <format>%.128s</format>
625
+ </params>
626
+ </operating_system>
627
+ <optical_drive>
628
+ <class>eems_affiliate/map</class>
629
+ <method>getDataValue</method>
630
+ <type>helper</type>
631
+ <column_name>optical_drive</column_name>
632
+ <params>
633
+ <format>%.64s</format>
634
+ </params>
635
+ </optical_drive>
636
+ <pages>
637
+ <class>eems_affiliate/map</class>
638
+ <method>getDataValue</method>
639
+ <type>helper</type>
640
+ <column_name>pages</column_name>
641
+ <params>
642
+ <format>%.11d</format>
643
+ </params>
644
+ </pages>
645
+ <payment_accepted>
646
+ <class>eems_affiliate/map</class>
647
+ <method>getDataValue</method>
648
+ <type>helper</type>
649
+ <column_name>payment_accepted</column_name>
650
+ <params>
651
+ <format>%.128s</format>
652
+ </params>
653
+ </payment_accepted>
654
+ <payment_notes>
655
+ <class>eems_affiliate/map</class>
656
+ <method>getDataValue</method>
657
+ <type>helper</type>
658
+ <column_name>payment_notes</column_name>
659
+ <params>
660
+ <format>%.256s</format>
661
+ </params>
662
+ </payment_notes>
663
+ <platform>
664
+ <class>eems_affiliate/map</class>
665
+ <method>getDataValue</method>
666
+ <type>helper</type>
667
+ <column_name>platform</column_name>
668
+ <params>
669
+ <format>%.64s</format>
670
+ </params>
671
+ </platform>
672
+ <price>
673
+ <class>eems_affiliate/map</class>
674
+ <method>getDataValue</method>
675
+ <type>helper</type>
676
+ <column_name>price</column_name>
677
+ <params>
678
+ <format>%01.2f</format>
679
+ </params>
680
+ </price>
681
+ <price_retail>
682
+ <class>eems_affiliate/map</class>
683
+ <method>getDataValue</method>
684
+ <type>helper</type>
685
+ <column_name>price_retail</column_name>
686
+ <params>
687
+ <format>%01.2f</format>
688
+ </params>
689
+ </price_retail>
690
+ <price_sale>
691
+ <class>eems_affiliate/map</class>
692
+ <method>getDataValue</method>
693
+ <type>helper</type>
694
+ <column_name>price_sale</column_name>
695
+ <params>
696
+ <format>%01.2f</format>
697
+ </params>
698
+ </price_sale>
699
+ <price_shipping>
700
+ <class>eems_affiliate/map</class>
701
+ <method>getDataValue</method>
702
+ <type>helper</type>
703
+ <column_name>price_shipping</column_name>
704
+ <params>
705
+ <format>%01.2f</format>
706
+ </params>
707
+ </price_shipping>
708
+ <processor>
709
+ <class>eems_affiliate/map</class>
710
+ <method>getDataValue</method>
711
+ <type>helper</type>
712
+ <column_name>processor</column_name>
713
+ <params>
714
+ <format>%.64s</format>
715
+ </params>
716
+ </processor>
717
+ <publisher>
718
+ <class>eems_affiliate/map</class>
719
+ <method>getDataValue</method>
720
+ <type>helper</type>
721
+ <column_name>publisher</column_name>
722
+ <params>
723
+ <format>%.128s</format>
724
+ </params>
725
+ </publisher>
726
+ <quantity_in_stock>
727
+ <class>eems_affiliate/map_product</class>
728
+ <method>getInStockQty</method>
729
+ <type>helper</type>
730
+ <column_name>quantity_in_stock</column_name>
731
+ <params>
732
+ <format>%.11d</format>
733
+ </params>
734
+ </quantity_in_stock>
735
+ <rating>
736
+ <class>eems_affiliate/map</class>
737
+ <method>getDataValue</method>
738
+ <type>helper</type>
739
+ <column_name>rating</column_name>
740
+ <params>
741
+ <format>%.32s</format>
742
+ </params>
743
+ </rating>
744
+ <recommended_usage>
745
+ <class>eems_affiliate/map</class>
746
+ <method>getDataValue</method>
747
+ <type>helper</type>
748
+ <column_name>recommended_usage</column_name>
749
+ <params>
750
+ <format>%.128s</format>
751
+ </params>
752
+ </recommended_usage>
753
+ <resolution>
754
+ <class>eems_affiliate/map</class>
755
+ <method>getDataValue</method>
756
+ <type>helper</type>
757
+ <column_name>resolution</column_name>
758
+ <params>
759
+ <format>%.64s</format>
760
+ </params>
761
+ </resolution>
762
+ <screen_size>
763
+ <class>eems_affiliate/map</class>
764
+ <method>getDataValue</method>
765
+ <type>helper</type>
766
+ <column_name>screen_size</column_name>
767
+ <params>
768
+ <format>%.32s</format>
769
+ </params>
770
+ </screen_size>
771
+ <shipping_method>
772
+ <class>eems_affiliate/map</class>
773
+ <method>getDataValue</method>
774
+ <type>helper</type>
775
+ <column_name>shipping_method</column_name>
776
+ <params>
777
+ <format>%.64s</format>
778
+ </params>
779
+ </shipping_method>
780
+ <shoe_size>
781
+ <class>eems_affiliate/map</class>
782
+ <method>getDataValue</method>
783
+ <type>helper</type>
784
+ <column_name>shoe_size</column_name>
785
+ <params>
786
+ <format>%.32s</format>
787
+ </params>
788
+ </shoe_size>
789
+ <shoe_width>
790
+ <class>eems_affiliate/map</class>
791
+ <method>getDataValue</method>
792
+ <type>helper</type>
793
+ <column_name>shoe_width</column_name>
794
+ <params>
795
+ <format>%.32s</format>
796
+ </params>
797
+ </shoe_width>
798
+ <size>
799
+ <class>eems_affiliate/map</class>
800
+ <method>getDataValue</method>
801
+ <type>helper</type>
802
+ <column_name>size</column_name>
803
+ <params>
804
+ <format>%.32s</format>
805
+ </params>
806
+ </size>
807
+ <sku>
808
+ <class>eems_affiliate/map</class>
809
+ <method>getDataValue</method>
810
+ <type>helper</type>
811
+ <column_name>sku</column_name>
812
+ <params>
813
+ <format>%.128s</format>
814
+ </params>
815
+ </sku>
816
+ <staring>
817
+ <class>eems_affiliate/map</class>
818
+ <method>getDataValue</method>
819
+ <type>helper</type>
820
+ <column_name>staring</column_name>
821
+ <params>
822
+ <format>%.128s</format>
823
+ </params>
824
+ </staring>
825
+ <style>
826
+ <class>eems_affiliate/map</class>
827
+ <method>getDataValue</method>
828
+ <type>helper</type>
829
+ <column_name>style</column_name>
830
+ <params>
831
+ <format>%.64s</format>
832
+ </params>
833
+ </style>
834
+ <tech_spec_url>
835
+ <class>eems_affiliate/map</class>
836
+ <method>getDataValue</method>
837
+ <type>helper</type>
838
+ <column_name>tech_spec_url</column_name>
839
+ <params>
840
+ <format>%.2000s</format>
841
+ </params>
842
+ </tech_spec_url>
843
+ <tracks>
844
+ <class>eems_affiliate/map</class>
845
+ <method>getDataValue</method>
846
+ <type>helper</type>
847
+ <column_name>tracks</column_name>
848
+ <params>
849
+ <format>%.11d</format>
850
+ </params>
851
+ </tracks>
852
+ <upc>
853
+ <class>eems_affiliate/map</class>
854
+ <method>getDataValue</method>
855
+ <type>helper</type>
856
+ <column_name>upc</column_name>
857
+ <params>
858
+ <format>%.128s</format>
859
+ </params>
860
+ </upc>
861
+ <weight>
862
+ <class>eems_affiliate/map</class>
863
+ <method>getDataValue</method>
864
+ <type>helper</type>
865
+ <column_name>weight</column_name>
866
+ <params>
867
+ <format>%.32s</format>
868
+ </params>
869
+ </weight>
870
+ <width>
871
+ <class>eems_affiliate/map</class>
872
+ <method>getDataValue</method>
873
+ <type>helper</type>
874
+ <column_name>width</column_name>
875
+ <params>
876
+ <format>%.32s</format>
877
+ </params>
878
+ </width>
879
+ <wireless_interface>
880
+ <class>eems_affiliate/map</class>
881
+ <method>getDataValue</method>
882
+ <type>helper</type>
883
+ <column_name>wireless_interface</column_name>
884
+ <params>
885
+ <format>%.32s</format>
886
+ </params>
887
+ </wireless_interface>
888
+ <year>
889
+ <class>eems_affiliate/map</class>
890
+ <method>getYearValue</method>
891
+ <type>helper</type>
892
+ <column_name>year</column_name>
893
+ <params>
894
+ <format>%.dd</format>
895
+ </params>
896
+ </year>
897
+ <zoom>
898
+ <class>eems_affiliate/map</class>
899
+ <method>getDataValue</method>
900
+ <type>helper</type>
901
+ <column_name>zoom</column_name>
902
+ <params>
903
+ <format>%.32s</format>
904
+ </params>
905
+ </zoom>
906
+ </callback_mappings>
907
+ <order_dynamic>
908
+ <fields>dynamic_program_id,dynamic_item_order_id,dynamic_item_id,dynamic_item_price,item_quantity,category,new_to_file</fields>
909
+ <file_name_format>%s_transactions_corrected_%s.csv</file_name_format>
910
+ </order_dynamic>
911
+ <order_itemized>
912
+ <fields>program_id,item_order_id,item_id,item_price,item_quantity,reason</fields>
913
+ <file_name_format>%s_transactions_corrected_%s.csv</file_name_format>
914
+ </order_itemized>
915
+ <order_basic>
916
+ <fields>program_id,order_amount,order_id,reason,transaction_type</fields>
917
+ <file_name_format>%s_transactions_corrected_%s.csv</file_name_format>
918
+ </order_basic>
919
+ <product>
920
+ <file_name_format>%s_product_feed.csv</file_name_format>
921
+ </product>
922
+ </feeds>
923
+ </eems_affiliate>
924
+ <eems_affiliate_product_attribute_map>
925
+ <!--
926
+ The purpose of this mapping is enabled the coexistence of both
927
+ pre-configured product attributes mapping and configured attributes
928
+ mapping for the affiliate product feed. This means that when this
929
+ module is installed and no other attribute is configured for the
930
+ product feed the required pre-mapped attributes will be sufficient
931
+ enough to generate a valid product feed.
932
+ -->
933
+ <age_range/>
934
+ <artist/>
935
+ <aspect_ratio/>
936
+ <author/>
937
+ <battery_life/>
938
+ <binding/>
939
+ <buy_url>product_url</buy_url>
940
+ <category_network/>
941
+ <category_program>category</category_program>
942
+ <color/>
943
+ <color_output/>
944
+ <condition/>
945
+ <description_long>description</description_long>
946
+ <description_short>short_description</description_short>
947
+ <director/>
948
+ <discontinued/>
949
+ <display_type/>
950
+ <edition/>
951
+ <expiration_date/>
952
+ <features/>
953
+ <focus_type/>
954
+ <format/>
955
+ <functions/>
956
+ <genre/>
957
+ <heel_height/>
958
+ <height/>
959
+ <image_thumb_url>thumbnail</image_thumb_url>
960
+ <image_url>image</image_url>
961
+ <installation/>
962
+ <in_stock/>
963
+ <isbn/>
964
+ <keywords>meta_keyword</keywords>
965
+ <length/>
966
+ <load_type/>
967
+ <location/>
968
+ <made_in/>
969
+ <manufacturer>manufacturer</manufacturer>
970
+ <material/>
971
+ <megapixels/>
972
+ <memory_capacity/>
973
+ <memory_card_slot/>
974
+ <memory_type/>
975
+ <model_number/>
976
+ <mpn/>
977
+ <name>name</name>
978
+ <occasion/>
979
+ <operating_system/>
980
+ <optical_drive/>
981
+ <pages/>
982
+ <payment_accepted/>
983
+ <payment_notes/>
984
+ <platform/>
985
+ <price>price</price>
986
+ <price_retail>msrp</price_retail>
987
+ <price_sale>special_price</price_sale>
988
+ <price_shipping/>
989
+ <processor/>
990
+ <publisher/>
991
+ <quantity_in_stock>qty</quantity_in_stock>
992
+ <rating/>
993
+ <recommended_usage/>
994
+ <resolution/>
995
+ <screen_size/>
996
+ <shipping_method/>
997
+ <shoe_size/>
998
+ <shoe_width/>
999
+ <size/>
1000
+ <sku>sku</sku>
1001
+ <staring/>
1002
+ <style/>
1003
+ <tech_spec_url/>
1004
+ <tracks/>
1005
+ <upc/>
1006
+ <weight/>
1007
+ <width/>
1008
+ <wireless_interface/>
1009
+ <year/>
1010
+ <zoom/>
1011
+ </eems_affiliate_product_attribute_map>
1012
+ </marketing_solutions>
1013
+ </default>
1014
+ <frontend>
1015
+ <layout>
1016
+ <updates>
1017
+ <eems_affiliate>
1018
+ <file>eems_affiliate.xml</file>
1019
+ </eems_affiliate>
1020
+ </updates>
1021
+ </layout>
1022
+ </frontend>
1023
+ <phpunit>
1024
+ <suite>
1025
+ <modules>
1026
+ <EbayEnterprise_Affiliate/>
1027
+ </modules>
1028
+ </suite>
1029
+ </phpunit>
1030
+ </config>
app/code/community/EbayEnterprise/Affiliate/sql/eems_affiliate_setup/mysql4-upgrade-1.2.0.1-1.3.0.0.php DELETED
@@ -1,37 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
-
6
- $orderTable = $installer->getTable('sales/order');
7
-
8
- $installer->getConnection()
9
- ->addColumn($orderTable, 'affiliate_source', array(
10
- 'type' => Varien_Db_Ddl_Table::TYPE_TEXT,
11
- 'length' => 20,
12
- 'nullable' => TRUE,
13
- 'unsigned' => TRUE,
14
- 'comment' => "Affiliate Source"
15
- ));
16
-
17
- $installer->getConnection()
18
- ->addColumn($orderTable, 'affiliate_click_id', array(
19
- 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER,
20
- 'nullable' => TRUE,
21
- 'unsigned' => TRUE,
22
- 'comment' => "Affiliate Click ID"
23
- ));
24
-
25
- $installer->getConnection()
26
- ->addColumn($orderTable, 'affiliate_publisher_id', array(
27
- 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER,
28
- 'nullable' => TRUE,
29
- 'unsigned' => TRUE,
30
- 'comment' => "Affiliate Publisher ID"
31
- ));
32
-
33
- $installer->setConfigData('marketing_solutions/eems_affiliate/order_feed/last_run_time', time());
34
- $installer->setConfigData('marketing_solutions/eems_affiliate/order_correction_feed/last_run_time', Mage::getStoreConfig('marketing_solutions/eems_affiliate/feed/last_run_time'));
35
- $installer->deleteConfigData('marketing_solutions/eems_affiliate/feed/last_run_time');
36
-
37
- $installer->endSetup();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,20 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>eBay_Enterprise_Affiliate_Extension</name>
4
- <version>1.2.0.1</version>
5
  <stability>stable</stability>
6
  <license>EULA</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>eBay Enterprise Affiliate Extension.</summary>
10
- <description>eBay Enterprise Affiliate Extension.</description>
11
- <notes>Changelog for 1.2.0.1&#xD;
12
- Incorrect key "TOTALAMOUNT" no longer submitted with tracking pixel for a bundle item&#xD;
13
- Categories with an index out of scope no longer being included for a bundle item</notes>
14
- <authors><author><name>Philip Preston</name><user>phpreston</user><email>phpreston@pepperjam.com</email></author><author><name>Michael A. Smith</name><user>msmith3</user><email>msmith3@ebay.com</email></author></authors>
15
- <date>2016-04-12</date>
16
- <time>22:39:34</time>
17
- <contents><target name="mageetc"><dir name="modules"><file name="EbayEnterprise_Affiliate.xml" hash="c67e54262d466adebba66b7cc0e2df8f"/></dir></target><target name="magecommunity"><dir name="EbayEnterprise"><dir name="Affiliate"><dir name="Block"><file name="Beacon.php" hash="70470acf0e484d5a184b9b10e5043d82"/><file name="Tracking.php" hash="b8e8a1126f487f69dd575f5e14b630b9"/></dir><dir name="Exception"><file name="Configuration.php" hash="a5164f37b8e5e13dfc20561e13ec6c54"/></dir><dir name="Helper"><file name="Config.php" hash="166c7a5a4c3c7955ebf441e2a3d1bbc8"/><file name="Data.php" hash="04c3cf34e7a67ffc330607a4e16e91d5"/><dir name="Map"><file name="Order.php" hash="a53b5894c45d37b10eb50fa8f6c6c350"/><file name="Product.php" hash="f9f4b1337e040d52971fc7f669287c79"/></dir><file name="Map.php" hash="5329d762e01ed3cfe34dad14a9a59c01"/></dir><dir name="Model"><dir name="Feed"><file name="Abstract.php" hash="546bb078e115f4319a7e6052a4feaf4a"/><dir name="Order"><file name="Abstract.php" hash="676d28e0fa5677f70470eb7b32b45c16"/><file name="Basic.php" hash="a06460810245f18d4905dcf9a7bf5220"/><file name="Dynamic.php" hash="44601d213d1823d11d1598da7cab38b5"/><file name="Itemized.php" hash="f5ecb6e8b8f603a4717906aa4f130365"/></dir><file name="Product.php" hash="ecd0ac9efb2fd8feab577b888f8d55d7"/></dir><file name="Observer.php" hash="723ea0e39203210352ea3198b2840bce"/><dir name="Product"><dir name="Attribute"><dir name="Source"><file name="CommissioningCategory.php" hash="0dd81e0901e6519043b31c322516a977"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Attributes.php" hash="079b340ac5e2daa5197268c4464d2505"/><file name="Categories.php" hash="c412da8de21424e65628958a92eaa1c0"/><file name="Ordertypes.php" hash="bfa02f2a94175d49f192d77b9523e717"/><file name="Stockquantity.php" hash="0e4c5b6f0e45b10403c00660b54f3057"/><file name="Stockyesno.php" hash="154bedd15209f8110e69c80b207e7a68"/><file name="Transactiontype.php" hash="cd892832b62349c399ad147ba7217885"/><file name="Visibilityyesno.php" hash="b6de9a44184c9158d3be097b8cb4cec2"/></dir></dir></dir></dir><dir name="Test"><dir name="Block"><file name="BeaconTest.php" hash="c127f7453ab7ee6163760c518c698221"/><dir name="providers"><file name="testShowBeacon.yaml" hash="5b7a80f1de1e4196a9e56f9a71cb51a2"/></dir></dir><dir name="Helper"><file name="DataTest.php" hash="52be41226b17cd44eb29d97ec3ab4612"/><dir name="Map"><file name="ProductTest.php" hash="936eb3b538bd8c9ddc6a65c48a9df4d9"/></dir><dir name="providers"><file name="testIsValidCookie.yaml" hash="b3eb3eb30d78c7e67b7af51768b88492"/></dir></dir><dir name="Model"><dir name="Feed"><file name="AbstractTest.php" hash="98d14d1808a67917ce37fb4ba3b6c3cf"/><dir name="Order"><file name="AbstractTest.php" hash="83c0331bcc04784713ba55c7bad13c81"/><file name="BasicTest.php" hash="eea42c1eb603764f8332bbb4acf00ea5"/><file name="ItemizedTest.php" hash="c81153a22303700811670d0e912431c6"/></dir><file name="ProductTest.php" hash="2b33598eea0fab35aae2c0318d89de57"/></dir><file name="ObserverTest.php" hash="e0e1cd8b8170561513715ef9bbf64942"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="fccf9b602bb22175bfb81148cb216644"/><file name="config.xml" hash="15897982c1d9e351d4cdeebd0b8bec1f"/><file name="system.xml" hash="ae97dcdaebedcdb3416a18584cd609c8"/></dir><dir name="sql"><dir name="eems_affiliate_setup"><file name="install-1.0.0.1.php" hash="1872e6830dc200364c24f76841b41832"/><file name="mysql4-install-1.0.0.1.php" hash="1872e6830dc200364c24f76841b41832"/><file name="mysql4-upgrade-1.0.0.1-1.2.0.0.php" hash="483d015528132052ad8ca0a07ea8efed"/><file name="mysql4-upgrade-1.2.0.1-1.3.0.0.php" hash="8ba13713daa1f01a45e2ad49361687d3"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="eems_affiliate.xml" hash="7d0b7b9a18086a9a61099a753d82f4fc"/></dir><dir name="template"><dir name="eems_affiliate"><file name="beacon.phtml" hash="40d3b19edc66bc22b5dc5ffbeec2507a"/><file name="tracking.phtml" hash="44fb259a8e0e0cf33c7b042976a325c3"/></dir></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
- <dependencies><required><php><min>5.3.0</min><max>5.6.99</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>eBay_Enterprise_Affiliate_Extension</name>
4
+ <version>1.2.0.2</version>
5
  <stability>stable</stability>
6
  <license>EULA</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Bay Enterprise Affiliate Extension.</summary>
10
+ <description>Bay Enterprise Affiliate Extension.</description>
11
+ <notes>Changelog for 1.2.0.2&#xD;
12
+ Fixed issue where Bundle with fixed pricing.</notes>
13
+ <authors><author><name>Philip Preston</name><user>phpreston</user><email>phpreston@pepperjam.com</email></author></authors>
14
+ <date>2016-05-02</date>
15
+ <time>17:27:55</time>
16
+ <contents><target name="mageetc"><dir name="modules"><file name="EbayEnterprise_Affiliate.xml" hash="c67e54262d466adebba66b7cc0e2df8f"/></dir></target><target name="magecommunity"><dir name="EbayEnterprise"><dir name="Affiliate"><dir name="Block"><file name="Beacon.php" hash="08a376ac6747bd459b1462670a2774fd"/><file name="Tracking.php" hash="b8e8a1126f487f69dd575f5e14b630b9"/></dir><dir name="Exception"><file name="Configuration.php" hash="a5164f37b8e5e13dfc20561e13ec6c54"/></dir><dir name="Helper"><file name="Config.php" hash="166c7a5a4c3c7955ebf441e2a3d1bbc8"/><file name="Data.php" hash="04c3cf34e7a67ffc330607a4e16e91d5"/><dir name="Map"><file name="Order.php" hash="a53b5894c45d37b10eb50fa8f6c6c350"/><file name="Product.php" hash="f9f4b1337e040d52971fc7f669287c79"/></dir><file name="Map.php" hash="5329d762e01ed3cfe34dad14a9a59c01"/></dir><dir name="Model"><dir name="Feed"><file name="Abstract.php" hash="546bb078e115f4319a7e6052a4feaf4a"/><dir name="Order"><file name="Abstract.php" hash="676d28e0fa5677f70470eb7b32b45c16"/><file name="Basic.php" hash="a06460810245f18d4905dcf9a7bf5220"/><file name="Dynamic.php" hash="44601d213d1823d11d1598da7cab38b5"/><file name="Itemized.php" hash="f5ecb6e8b8f603a4717906aa4f130365"/></dir><file name="Product.php" hash="ecd0ac9efb2fd8feab577b888f8d55d7"/></dir><file name="Observer.php" hash="723ea0e39203210352ea3198b2840bce"/><dir name="Product"><dir name="Attribute"><dir name="Source"><file name="CommissioningCategory.php" hash="0dd81e0901e6519043b31c322516a977"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Attributes.php" hash="079b340ac5e2daa5197268c4464d2505"/><file name="Categories.php" hash="c412da8de21424e65628958a92eaa1c0"/><file name="Ordertypes.php" hash="bfa02f2a94175d49f192d77b9523e717"/><file name="Stockquantity.php" hash="0e4c5b6f0e45b10403c00660b54f3057"/><file name="Stockyesno.php" hash="154bedd15209f8110e69c80b207e7a68"/><file name="Transactiontype.php" hash="cd892832b62349c399ad147ba7217885"/><file name="Visibilityyesno.php" hash="b6de9a44184c9158d3be097b8cb4cec2"/></dir></dir></dir></dir><dir name="Test"><dir name="Block"><file name="BeaconTest.php" hash="c127f7453ab7ee6163760c518c698221"/><dir name="providers"><file name="testShowBeacon.yaml" hash="5b7a80f1de1e4196a9e56f9a71cb51a2"/></dir></dir><dir name="Helper"><file name="DataTest.php" hash="52be41226b17cd44eb29d97ec3ab4612"/><dir name="Map"><file name="ProductTest.php" hash="936eb3b538bd8c9ddc6a65c48a9df4d9"/></dir><dir name="providers"><file name="testIsValidCookie.yaml" hash="b3eb3eb30d78c7e67b7af51768b88492"/></dir></dir><dir name="Model"><dir name="Feed"><file name="AbstractTest.php" hash="98d14d1808a67917ce37fb4ba3b6c3cf"/><dir name="Order"><file name="AbstractTest.php" hash="83c0331bcc04784713ba55c7bad13c81"/><file name="BasicTest.php" hash="eea42c1eb603764f8332bbb4acf00ea5"/><file name="ItemizedTest.php" hash="c81153a22303700811670d0e912431c6"/></dir><file name="ProductTest.php" hash="2b33598eea0fab35aae2c0318d89de57"/></dir><file name="ObserverTest.php" hash="e0e1cd8b8170561513715ef9bbf64942"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="fccf9b602bb22175bfb81148cb216644"/><file name="config.xml" hash="16806da6666d19ccd1e0f9f8ae77e733"/><file name="system.xml" hash="ae97dcdaebedcdb3416a18584cd609c8"/></dir><dir name="sql"><dir name="eems_affiliate_setup"><file name="install-1.0.0.1.php" hash="1872e6830dc200364c24f76841b41832"/><file name="mysql4-install-1.0.0.1.php" hash="1872e6830dc200364c24f76841b41832"/><file name="mysql4-upgrade-1.0.0.1-1.2.0.0.php" hash="483d015528132052ad8ca0a07ea8efed"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="eems_affiliate.xml" hash="7d0b7b9a18086a9a61099a753d82f4fc"/></dir><dir name="template"><dir name="eems_affiliate"><file name="beacon.phtml" hash="40d3b19edc66bc22b5dc5ffbeec2507a"/><file name="tracking.phtml" hash="44fb259a8e0e0cf33c7b042976a325c3"/></dir></dir></dir></dir></dir></target></contents>
 
17
  <compatible/>
18
+ <dependencies><required><php><min>5.3.0</min><max>5.99.99</max></php></required></dependencies>
19
  </package>