Pepperjam_Network - Version 1.3.0.3

Version Notes

Changelog for 1.3.0.3
Bugfix for conversion pixel
Bugfix for product feed

Download this release

Release Info

Developer Philip Preston
Extension Pepperjam_Network
Version 1.3.0.3
Comparing to
See all releases


Code changes from version 1.3.0.2 to 1.3.0.3

app/code/community/Pepperjam/Network/Helper/Data.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Copyright (c) 2016 Pepperjam Network.
4
  *
@@ -14,9 +15,7 @@
14
  * @license http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf Pepperjam Network Magento Extensions End User License Agreement
15
  *
16
  */
17
-
18
- class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
19
- {
20
  /** value for the source cookie */
21
  const SOURCE_KEY_VALUE_EBAY = 'eean';
22
  const SOURCE_KEY_VALUE_PEPPERJAM = 'pepperjam';
@@ -28,8 +27,7 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
28
  * @param array $params
29
  * @return string
30
  */
31
- public function buildBeaconUrl(array $params)
32
- {
33
  return Mage::helper('pepperjam_network/config')->getBeaconBaseUrl() . '?' .
34
  http_build_query($params);
35
  }
@@ -40,8 +38,7 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
40
  * each website.
41
  * @return array
42
  */
43
- public function getAllProgramIds()
44
- {
45
  $config = Mage::helper('pepperjam_network/config');
46
  return array_unique(array_filter(array_map(
47
  function ($website) use ($config) {
@@ -61,8 +58,7 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
61
  * @param string $programId
62
  * @return Mage_Core_Model_Store|null
63
  */
64
- public function getStoreForProgramId($programId)
65
- {
66
  $config = Mage::helper('pepperjam_network/config');
67
  // Check for the default store view to be this program id first, will match
68
  // when the program id is set at the global level.
@@ -88,8 +84,7 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
88
  * @param string $programId
89
  * @return Mage_Core_Model_Store[]
90
  */
91
- public function getAllStoresForProgramId($programId)
92
- {
93
  $config = Mage::helper('pepperjam_network/config');
94
  return array_filter(
95
  Mage::app()->getStores(),
@@ -106,9 +101,8 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
106
  * @return string
107
  * @codeCoverageIgnore
108
  */
109
- public function parseBoolToYesNo($value)
110
- {
111
- return $value?'yes':'no';
112
  }
113
 
114
  /**
@@ -117,11 +111,10 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
117
  *
118
  * @return string
119
  */
120
- public function getSourceCookieName()
121
- {
122
  $key = Mage::helper('pepperjam_network/config')->getSourceKeyName();
123
 
124
- return self::SOURCE_COOKIE_PREFIX.$key;
125
  }
126
 
127
  /**
@@ -130,11 +123,10 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
130
  *
131
  * @return string
132
  */
133
- public function getClickCookieName()
134
- {
135
  $key = Mage::helper('pepperjam_network/config')->getClickKeyName();
136
 
137
- return self::SOURCE_COOKIE_PREFIX.$key;
138
  }
139
 
140
  /**
@@ -143,11 +135,10 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
143
  *
144
  * @return string
145
  */
146
- public function getPublisherCookieName()
147
- {
148
  $key = Mage::helper('pepperjam_network/config')->getPublisherKeyName();
149
 
150
- return self::SOURCE_COOKIE_PREFIX.$key;
151
  }
152
 
153
  /**
@@ -156,15 +147,13 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
156
  *
157
  * @return bool
158
  */
159
- public function isValidCookie()
160
- {
161
  $key = Mage::helper('pepperjam_network/config')->getSourceKeyName();
162
 
163
- return self::SOURCE_COOKIE_PREFIX.$key;
164
  }
165
 
166
- public function validSourceValues()
167
- {
168
  return array(self::SOURCE_KEY_VALUE_EBAY, self::SOURCE_KEY_VALUE_PEPPERJAM);
169
  }
170
 
@@ -173,8 +162,7 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
173
  * @param Mage_Sales_Model_Order $order
174
  * @return boolean This is the first order by this customer (email address)
175
  */
176
- public function isNewToFile(Mage_Sales_Model_Order $order)
177
- {
178
  // Customers are being identified by emails
179
  $customerEmail = $order->getCustomerEmail();
180
 
@@ -191,8 +179,7 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
191
  * @param Mage_Sales_Model_Order_Item $item Order Item
192
  * @return int Category ID
193
  */
194
- public function getCommissioningCategory(Mage_Sales_Model_Order_Item $item)
195
- {
196
  $category = $item->getProduct()->getCommissioningCategory();
197
  if ($category == '' || $category == null) {
198
 
@@ -207,8 +194,7 @@ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract
207
  return $category;
208
  }
209
 
210
- public function getCookieValue($cookieName)
211
- {
212
  if ($_COOKIE[$cookieName]) {
213
  return $_COOKIE[$cookieName];
214
  }
1
  <?php
2
+
3
  /**
4
  * Copyright (c) 2016 Pepperjam Network.
5
  *
15
  * @license http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf Pepperjam Network Magento Extensions End User License Agreement
16
  *
17
  */
18
+ class Pepperjam_Network_Helper_Data extends Mage_Core_Helper_Abstract {
 
 
19
  /** value for the source cookie */
20
  const SOURCE_KEY_VALUE_EBAY = 'eean';
21
  const SOURCE_KEY_VALUE_PEPPERJAM = 'pepperjam';
27
  * @param array $params
28
  * @return string
29
  */
30
+ public function buildBeaconUrl(array $params) {
 
31
  return Mage::helper('pepperjam_network/config')->getBeaconBaseUrl() . '?' .
32
  http_build_query($params);
33
  }
38
  * each website.
39
  * @return array
40
  */
41
+ public function getAllProgramIds() {
 
42
  $config = Mage::helper('pepperjam_network/config');
43
  return array_unique(array_filter(array_map(
44
  function ($website) use ($config) {
58
  * @param string $programId
59
  * @return Mage_Core_Model_Store|null
60
  */
61
+ public function getStoreForProgramId($programId) {
 
62
  $config = Mage::helper('pepperjam_network/config');
63
  // Check for the default store view to be this program id first, will match
64
  // when the program id is set at the global level.
84
  * @param string $programId
85
  * @return Mage_Core_Model_Store[]
86
  */
87
+ public function getAllStoresForProgramId($programId) {
 
88
  $config = Mage::helper('pepperjam_network/config');
89
  return array_filter(
90
  Mage::app()->getStores(),
101
  * @return string
102
  * @codeCoverageIgnore
103
  */
104
+ public function parseBoolToYesNo($value) {
105
+ return $value ? 'yes' : 'no';
 
106
  }
107
 
108
  /**
111
  *
112
  * @return string
113
  */
114
+ public function getSourceCookieName() {
 
115
  $key = Mage::helper('pepperjam_network/config')->getSourceKeyName();
116
 
117
+ return self::SOURCE_COOKIE_PREFIX . $key;
118
  }
119
 
120
  /**
123
  *
124
  * @return string
125
  */
126
+ public function getClickCookieName() {
 
127
  $key = Mage::helper('pepperjam_network/config')->getClickKeyName();
128
 
129
+ return self::SOURCE_COOKIE_PREFIX . $key;
130
  }
131
 
132
  /**
135
  *
136
  * @return string
137
  */
138
+ public function getPublisherCookieName() {
 
139
  $key = Mage::helper('pepperjam_network/config')->getPublisherKeyName();
140
 
141
+ return self::SOURCE_COOKIE_PREFIX . $key;
142
  }
143
 
144
  /**
147
  *
148
  * @return bool
149
  */
150
+ public function isValidCookie() {
 
151
  $key = Mage::helper('pepperjam_network/config')->getSourceKeyName();
152
 
153
+ return array_key_exists(self::SOURCE_COOKIE_PREFIX . $key, $_COOKIE);
154
  }
155
 
156
+ public function validSourceValues() {
 
157
  return array(self::SOURCE_KEY_VALUE_EBAY, self::SOURCE_KEY_VALUE_PEPPERJAM);
158
  }
159
 
162
  * @param Mage_Sales_Model_Order $order
163
  * @return boolean This is the first order by this customer (email address)
164
  */
165
+ public function isNewToFile(Mage_Sales_Model_Order $order) {
 
166
  // Customers are being identified by emails
167
  $customerEmail = $order->getCustomerEmail();
168
 
179
  * @param Mage_Sales_Model_Order_Item $item Order Item
180
  * @return int Category ID
181
  */
182
+ public function getCommissioningCategory(Mage_Sales_Model_Order_Item $item) {
 
183
  $category = $item->getProduct()->getCommissioningCategory();
184
  if ($category == '' || $category == null) {
185
 
194
  return $category;
195
  }
196
 
197
+ public function getCookieValue($cookieName) {
 
198
  if ($_COOKIE[$cookieName]) {
199
  return $_COOKIE[$cookieName];
200
  }
app/code/community/Pepperjam/Network/Model/Feed/Abstract.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Copyright (c) 2016 Pepperjam Network.
4
  *
@@ -13,9 +14,7 @@
13
  * @copyright Copyright (c) 2016 Pepperjam Network. (http://www.pepperjam.com/)
14
  * @license http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf Pepperjam Network Magento Extensions End User License Agreement
15
  */
16
-
17
- abstract class Pepperjam_Network_Model_Feed_Abstract
18
- {
19
  // Query types for items
20
  const ITEMS_CORRECTIONS = 'corrections';
21
  const ITEMS_NEW = 'new';
@@ -27,11 +26,13 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
27
  */
28
  protected $_store;
29
  protected $_feedType;
 
30
  /**
31
  * Get a collection of items to be included in the feed.
32
  * @return Varien_Data_Collection
33
  */
34
  abstract protected function _getItems();
 
35
  /**
36
  * Get fields to include in the feed. Fields are expected to map to existing
37
  * callbacks defined in the config.xml.
@@ -39,38 +40,40 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
39
  * @return array
40
  */
41
  abstract protected function _getFeedFields();
 
42
  /**
43
  * Gets the filename format for the feed from config for this feed.
44
  * @return string
45
  */
46
  abstract protected function _getFileName();
 
47
  /**
48
  * Get the delimiter to use in the csv file
49
  * @return string
50
  * @codeCoverageIgnore
51
  */
52
- protected function _getDelimiter()
53
- {
54
  return ',';
55
  }
 
56
  /**
57
  * Get the encolsure to use in the csv file
58
  * @return string
59
  * @codeCoverageIgnore
60
  */
61
- protected function _getEnclosure()
62
- {
63
  return '"';
64
  }
 
65
  /**
66
  * Set up the store property.
67
  */
68
- public function __construct($args = array())
69
- {
70
  // Set the store context to the given store or null which whill
71
  // result in the "current" store.
72
  $this->setStore(isset($args['store']) ? $args['store'] : null);
73
  }
 
74
  /**
75
  * Set the store context for the feed, converting whatever viable store
76
  * ID is passed in to an actual store instance.
@@ -78,50 +81,49 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
78
  * @param null|string|bool|int|Mage_Core_Model_Store
79
  * @codeCoverageIgnore
80
  */
81
- public function setStore($storeId)
82
- {
83
  $this->_store = Mage::app()->getStore($storeId);
84
  return $this;
85
  }
 
86
  /**
87
  * Get the store instance the feed is being executed within.
88
  * @return Mage_Core_Model_Store
89
  * @codeCoverageIgnore
90
  */
91
- public function getStore()
92
- {
93
  return $this->_store;
94
  }
 
95
  /**
96
  * Create the feed file and drop it in the configured export directory.
97
  * @return self
98
  */
99
- public function generateFeed($feedType)
100
- {
101
  $this->_feedType = $feedType;
102
  $this->_generateFile($this->_buildFeedData());
103
  return $this;
104
  }
 
105
  /**
106
  * Create arrays of data that should be included in the feed file. Each array
107
  * should included a value for every field that is expected to be in the feed.
108
  * @return array
109
  */
110
- protected function _buildFeedData()
111
- {
112
  $items = $this->_getItems();
113
  // array_map must be on an array - $items is a collection so need to get the
114
  // underlying array to pass to array_map
115
  return array_map(array($this, '_applyMapping'), $items->getItems());
116
  }
 
117
  /**
118
  * Use the callback mapping to create the data that represents the given item
119
  * in the feed.
120
  * @param mixed $item Likely a Varien_Object but could really be anything.
121
  * @return array
122
  */
123
- protected function _applyMapping($item)
124
- {
125
  $fields = array();
126
  $mappings = Mage::helper('pepperjam_network/config')->getCallbackMappings();
127
  foreach ($this->_getFeedFields() as $feedField) {
@@ -136,6 +138,7 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
136
  }
137
  return $fields;
138
  }
 
139
  /**
140
  * Given a set of callback configuration and an item, invoke the configured
141
  * callback and return the value. The callback configuration must meet the
@@ -182,8 +185,7 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
182
  * @param mixed $item
183
  * @return mixed
184
  */
185
- protected function _invokeCallback($callbackConfig, $item)
186
- {
187
  $obj = $this->_getCallbackInstance($callbackConfig);
188
  $params = isset($callbackConfig['params']) ? $callbackConfig['params'] : array();
189
  $item->setStoreId($this->getStore()->getId());
@@ -202,13 +204,13 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
202
  );
203
  }
204
  }
 
205
  /**
206
  * Get an instance of the configured callback.
207
  * @param array $callbackConfig
208
  * @return mixed
209
  */
210
- protected function _getCallbackInstance($callbackConfig)
211
- {
212
  $this->_validateCallbackConfig($callbackConfig);
213
  switch ($callbackConfig['type']) {
214
  // 'disabled' type callback mappings shouldn't pass through here under
@@ -225,6 +227,7 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
225
  return Mage::getSingleton($callbackConfig['class']);
226
  }
227
  }
 
228
  /**
229
  * Make sure the callback configuration is valid. If it isn't throw an
230
  * exception.
@@ -232,8 +235,7 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
232
  * @return self
233
  * @throws Pepperjam_Network_Exception_Configuration If callback configuration is not valid
234
  */
235
- protected function _validateCallbackConfig($callbackConfig)
236
- {
237
  if (empty($callbackConfig)) {
238
  throw new Pepperjam_Network_Exception_Configuration('Callback configuration is empty or missing.');
239
  }
@@ -251,13 +253,13 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
251
  }
252
  return $this;
253
  }
 
254
  /**
255
  * Create the file and drop it in the configured export directory.
256
  * @param array $feedData
257
  * @return self
258
  */
259
- protected function _generateFile($feedData)
260
- {
261
  if (empty($feedData)) {
262
  return $this;
263
  }
@@ -281,24 +283,24 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
281
  );
282
  return $this;
283
  }
 
284
  /**
285
  * Generate the full path to the location where the file should be created.
286
  * @return string
287
  */
288
- protected function _generateFilePath()
289
- {
290
  return self::normalPaths(
291
  Mage::getBaseDir(),
292
  Mage::helper('pepperjam_network/config', $this->getStore())->getExportFilePath(),
293
  $this->_getFileName()
294
  );
295
  }
 
296
  /**
297
  * The CSV file headers should be the keys used in the configured mappings.
298
  * @return array
299
  */
300
- protected function _getHeaders()
301
- {
302
  $mappings = Mage::helper('pepperjam_network/config')->getCallbackMappings();
303
  $headers = array();
304
  foreach ($this->_getFeedFields() as $field) {
@@ -310,27 +312,27 @@ abstract class Pepperjam_Network_Model_Feed_Abstract
310
  }
311
  return $headers;
312
  }
 
313
  /**
314
  * Make sure that all necessary directories in the given path exist. Create
315
  * any that do not.
316
  * @param string $dirPath
317
  * @return self
318
  */
319
- protected function _checkAndCreateFolder($dirPath)
320
- {
321
  // Use the model factory to allow for DI via the factory
322
  $fileIo = Mage::getModel('Varien_Io_File');
323
  $fileIo->open(array('path' => Mage::getBaseDir()));
324
  $fileIo->checkAndCreateFolder($dirPath);
325
  return $this;
326
  }
 
327
  /**
328
  * Given an arbitrary array of arguments, join them to make a valid path.
329
  * @param string $_,... Parts of the path to be joined
330
  * @return string
331
  */
332
- public static function normalPaths()
333
- {
334
  $paths = implode(DS, func_get_args());
335
  // Retain a single leading slash; otherwise remove all leading, trailing
336
  // and duplicate slashes.
1
  <?php
2
+
3
  /**
4
  * Copyright (c) 2016 Pepperjam Network.
5
  *
14
  * @copyright Copyright (c) 2016 Pepperjam Network. (http://www.pepperjam.com/)
15
  * @license http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf Pepperjam Network Magento Extensions End User License Agreement
16
  */
17
+ abstract class Pepperjam_Network_Model_Feed_Abstract {
 
 
18
  // Query types for items
19
  const ITEMS_CORRECTIONS = 'corrections';
20
  const ITEMS_NEW = 'new';
26
  */
27
  protected $_store;
28
  protected $_feedType;
29
+
30
  /**
31
  * Get a collection of items to be included in the feed.
32
  * @return Varien_Data_Collection
33
  */
34
  abstract protected function _getItems();
35
+
36
  /**
37
  * Get fields to include in the feed. Fields are expected to map to existing
38
  * callbacks defined in the config.xml.
40
  * @return array
41
  */
42
  abstract protected function _getFeedFields();
43
+
44
  /**
45
  * Gets the filename format for the feed from config for this feed.
46
  * @return string
47
  */
48
  abstract protected function _getFileName();
49
+
50
  /**
51
  * Get the delimiter to use in the csv file
52
  * @return string
53
  * @codeCoverageIgnore
54
  */
55
+ protected function _getDelimiter() {
 
56
  return ',';
57
  }
58
+
59
  /**
60
  * Get the encolsure to use in the csv file
61
  * @return string
62
  * @codeCoverageIgnore
63
  */
64
+ protected function _getEnclosure() {
 
65
  return '"';
66
  }
67
+
68
  /**
69
  * Set up the store property.
70
  */
71
+ public function __construct($args = array()) {
 
72
  // Set the store context to the given store or null which whill
73
  // result in the "current" store.
74
  $this->setStore(isset($args['store']) ? $args['store'] : null);
75
  }
76
+
77
  /**
78
  * Set the store context for the feed, converting whatever viable store
79
  * ID is passed in to an actual store instance.
81
  * @param null|string|bool|int|Mage_Core_Model_Store
82
  * @codeCoverageIgnore
83
  */
84
+ public function setStore($storeId) {
 
85
  $this->_store = Mage::app()->getStore($storeId);
86
  return $this;
87
  }
88
+
89
  /**
90
  * Get the store instance the feed is being executed within.
91
  * @return Mage_Core_Model_Store
92
  * @codeCoverageIgnore
93
  */
94
+ public function getStore() {
 
95
  return $this->_store;
96
  }
97
+
98
  /**
99
  * Create the feed file and drop it in the configured export directory.
100
  * @return self
101
  */
102
+ public function generateFeed($feedType = null) {
 
103
  $this->_feedType = $feedType;
104
  $this->_generateFile($this->_buildFeedData());
105
  return $this;
106
  }
107
+
108
  /**
109
  * Create arrays of data that should be included in the feed file. Each array
110
  * should included a value for every field that is expected to be in the feed.
111
  * @return array
112
  */
113
+ protected function _buildFeedData() {
 
114
  $items = $this->_getItems();
115
  // array_map must be on an array - $items is a collection so need to get the
116
  // underlying array to pass to array_map
117
  return array_map(array($this, '_applyMapping'), $items->getItems());
118
  }
119
+
120
  /**
121
  * Use the callback mapping to create the data that represents the given item
122
  * in the feed.
123
  * @param mixed $item Likely a Varien_Object but could really be anything.
124
  * @return array
125
  */
126
+ protected function _applyMapping($item) {
 
127
  $fields = array();
128
  $mappings = Mage::helper('pepperjam_network/config')->getCallbackMappings();
129
  foreach ($this->_getFeedFields() as $feedField) {
138
  }
139
  return $fields;
140
  }
141
+
142
  /**
143
  * Given a set of callback configuration and an item, invoke the configured
144
  * callback and return the value. The callback configuration must meet the
185
  * @param mixed $item
186
  * @return mixed
187
  */
188
+ protected function _invokeCallback($callbackConfig, $item) {
 
189
  $obj = $this->_getCallbackInstance($callbackConfig);
190
  $params = isset($callbackConfig['params']) ? $callbackConfig['params'] : array();
191
  $item->setStoreId($this->getStore()->getId());
204
  );
205
  }
206
  }
207
+
208
  /**
209
  * Get an instance of the configured callback.
210
  * @param array $callbackConfig
211
  * @return mixed
212
  */
213
+ protected function _getCallbackInstance($callbackConfig) {
 
214
  $this->_validateCallbackConfig($callbackConfig);
215
  switch ($callbackConfig['type']) {
216
  // 'disabled' type callback mappings shouldn't pass through here under
227
  return Mage::getSingleton($callbackConfig['class']);
228
  }
229
  }
230
+
231
  /**
232
  * Make sure the callback configuration is valid. If it isn't throw an
233
  * exception.
235
  * @return self
236
  * @throws Pepperjam_Network_Exception_Configuration If callback configuration is not valid
237
  */
238
+ protected function _validateCallbackConfig($callbackConfig) {
 
239
  if (empty($callbackConfig)) {
240
  throw new Pepperjam_Network_Exception_Configuration('Callback configuration is empty or missing.');
241
  }
253
  }
254
  return $this;
255
  }
256
+
257
  /**
258
  * Create the file and drop it in the configured export directory.
259
  * @param array $feedData
260
  * @return self
261
  */
262
+ protected function _generateFile($feedData) {
 
263
  if (empty($feedData)) {
264
  return $this;
265
  }
283
  );
284
  return $this;
285
  }
286
+
287
  /**
288
  * Generate the full path to the location where the file should be created.
289
  * @return string
290
  */
291
+ protected function _generateFilePath() {
 
292
  return self::normalPaths(
293
  Mage::getBaseDir(),
294
  Mage::helper('pepperjam_network/config', $this->getStore())->getExportFilePath(),
295
  $this->_getFileName()
296
  );
297
  }
298
+
299
  /**
300
  * The CSV file headers should be the keys used in the configured mappings.
301
  * @return array
302
  */
303
+ protected function _getHeaders() {
 
304
  $mappings = Mage::helper('pepperjam_network/config')->getCallbackMappings();
305
  $headers = array();
306
  foreach ($this->_getFeedFields() as $field) {
312
  }
313
  return $headers;
314
  }
315
+
316
  /**
317
  * Make sure that all necessary directories in the given path exist. Create
318
  * any that do not.
319
  * @param string $dirPath
320
  * @return self
321
  */
322
+ protected function _checkAndCreateFolder($dirPath) {
 
323
  // Use the model factory to allow for DI via the factory
324
  $fileIo = Mage::getModel('Varien_Io_File');
325
  $fileIo->open(array('path' => Mage::getBaseDir()));
326
  $fileIo->checkAndCreateFolder($dirPath);
327
  return $this;
328
  }
329
+
330
  /**
331
  * Given an arbitrary array of arguments, join them to make a valid path.
332
  * @param string $_,... Parts of the path to be joined
333
  * @return string
334
  */
335
+ public static function normalPaths() {
 
336
  $paths = implode(DS, func_get_args());
337
  // Retain a single leading slash; otherwise remove all leading, trailing
338
  // and duplicate slashes.
app/code/community/Pepperjam/Network/Model/Observer.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Copyright (c) 2016 Pepperjam Network.
4
  *
@@ -13,20 +14,18 @@
13
  * @copyright Copyright (c) 2016 Pepperjam Network. (http://www.pepperjam.com/)
14
  * @license http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf Pepperjam Network Magento Extensions End User License Agreement
15
  */
16
-
17
- class Pepperjam_Network_Model_Observer
18
- {
19
  const PRODUCT_LOG_MESSAGE = 'Generating Product feed: program id %s, default store view: %s';
 
20
  /**
21
  * This observer method is the entry point to generating product feed when
22
  * the CRONJOB 'pepperjam_network_generate_product_feed' run.
23
  * @return void
24
  */
25
- public function createProductFeed()
26
- {
27
  $config = Mage::helper('pepperjam_network/config');
28
 
29
- if (!isProductFeedEnabled()) {
30
  Mage::log(Mage::helper('pepperjam_network')->__('Product feed disabled'), Zend_Log::NOTICE);
31
  return;
32
  }
@@ -40,16 +39,16 @@ class Pepperjam_Network_Model_Observer
40
  );
41
 
42
  Mage::getModel('pepperjam_network/feed_product', array(
43
- 'store' => $store
44
  ))->generateFeed();
45
  }
46
  }
 
47
  /**
48
  * Generate the order corrected feed.
49
  * @return self
50
  */
51
- public function createCorrectedOrdersFeed()
52
- {
53
  $config = Mage::helper('pepperjam_network/config');
54
 
55
  if (!$config->isAttributionEnabled() || !$config->isOrderCorrectionFeedEnabled()) {
@@ -59,7 +58,7 @@ class Pepperjam_Network_Model_Observer
59
 
60
  $startTime = time();
61
 
62
- $feedAlias = 'feed_order_'.$config->getOrderType();
63
 
64
  Mage::log(sprintf('[%s] Generating %s correction feed', __CLASS__, $feedAlias), Zend_Log::INFO);
65
 
@@ -79,18 +78,17 @@ class Pepperjam_Network_Model_Observer
79
  * Generate the order feed.
80
  * @return self
81
  */
82
- public function createOrdersFeed()
83
- {
84
  $config = Mage::helper('pepperjam_network/config');
85
 
86
  $startTime = time();
87
 
88
- $feedAlias = 'feed_order_'.$config->getOrderType();
89
 
90
- Mage::log("[".__CLASS__."] Generating $feedAlias feed", Zend_Log::INFO);
91
 
92
  $helper = Mage::helper('pepperjam_network');
93
- foreach($helper->getAllProgramIds() as $programId) {
94
  $feedModel = Mage::getModel(
95
  "pepperjam_network/$feedAlias",
96
  array('store' => $helper->getStoreForProgramId($programId), 'start_time' => $startTime)
@@ -107,8 +105,7 @@ class Pepperjam_Network_Model_Observer
107
  * @param Varien_Event_Observer $observer
108
  * @return self
109
  */
110
- public function transferAttribution($observer)
111
- {
112
  $order = $observer->getEvent()->getData('order');
113
  if (!is_null($order->getRelationParentId())) {
114
  $parentOrder = Mage::getModel('sales/order')->load($order->getRelationParentId());
1
  <?php
2
+
3
  /**
4
  * Copyright (c) 2016 Pepperjam Network.
5
  *
14
  * @copyright Copyright (c) 2016 Pepperjam Network. (http://www.pepperjam.com/)
15
  * @license http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf Pepperjam Network Magento Extensions End User License Agreement
16
  */
17
+ class Pepperjam_Network_Model_Observer {
 
 
18
  const PRODUCT_LOG_MESSAGE = 'Generating Product feed: program id %s, default store view: %s';
19
+
20
  /**
21
  * This observer method is the entry point to generating product feed when
22
  * the CRONJOB 'pepperjam_network_generate_product_feed' run.
23
  * @return void
24
  */
25
+ public function createProductFeed() {
 
26
  $config = Mage::helper('pepperjam_network/config');
27
 
28
+ if (!$config->isProductFeedEnabled()) {
29
  Mage::log(Mage::helper('pepperjam_network')->__('Product feed disabled'), Zend_Log::NOTICE);
30
  return;
31
  }
39
  );
40
 
41
  Mage::getModel('pepperjam_network/feed_product', array(
42
+ 'store' => $store,
43
  ))->generateFeed();
44
  }
45
  }
46
+
47
  /**
48
  * Generate the order corrected feed.
49
  * @return self
50
  */
51
+ public function createCorrectedOrdersFeed() {
 
52
  $config = Mage::helper('pepperjam_network/config');
53
 
54
  if (!$config->isAttributionEnabled() || !$config->isOrderCorrectionFeedEnabled()) {
58
 
59
  $startTime = time();
60
 
61
+ $feedAlias = 'feed_order_' . $config->getOrderType();
62
 
63
  Mage::log(sprintf('[%s] Generating %s correction feed', __CLASS__, $feedAlias), Zend_Log::INFO);
64
 
78
  * Generate the order feed.
79
  * @return self
80
  */
81
+ public function createOrdersFeed() {
 
82
  $config = Mage::helper('pepperjam_network/config');
83
 
84
  $startTime = time();
85
 
86
+ $feedAlias = 'feed_order_' . $config->getOrderType();
87
 
88
+ Mage::log("[" . __CLASS__ . "] Generating $feedAlias feed", Zend_Log::INFO);
89
 
90
  $helper = Mage::helper('pepperjam_network');
91
+ foreach ($helper->getAllProgramIds() as $programId) {
92
  $feedModel = Mage::getModel(
93
  "pepperjam_network/$feedAlias",
94
  array('store' => $helper->getStoreForProgramId($programId), 'start_time' => $startTime)
105
  * @param Varien_Event_Observer $observer
106
  * @return self
107
  */
108
+ public function transferAttribution($observer) {
 
109
  $order = $observer->getEvent()->getData('order');
110
  if (!is_null($order->getRelationParentId())) {
111
  $parentOrder = Mage::getModel('sales/order')->load($order->getRelationParentId());
app/code/community/Pepperjam/Network/etc/config.xml CHANGED
@@ -14,1098 +14,1105 @@ http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf
14
  @license http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf Pepperjam Network Magento Extensions End User License Agreement
15
  -->
16
  <config>
17
- <modules>
18
- <Pepperjam_Network>
19
- <version>1.3.0.0</version>
20
- </Pepperjam_Network>
21
- </modules>
22
- <global>
23
- <models>
24
- <pepperjam_network>
25
- <class>Pepperjam_Network_Model</class>
26
- </pepperjam_network>
27
- </models>
28
- <helpers>
29
- <pepperjam_network>
30
- <class>Pepperjam_Network_Helper</class>
31
- </pepperjam_network>
32
- </helpers>
33
- <blocks>
34
- <pepperjam_network>
35
- <class>Pepperjam_Network_Block</class>
36
- </pepperjam_network>
37
- </blocks>
38
- <resources>
39
- <pepperjam_network_setup>
40
- <setup>
41
- <module>Pepperjam_Network</module>
42
- <class>Mage_Core_Model_Resource_Setup</class>
43
- </setup>
44
- </pepperjam_network_setup>
45
- </resources>
46
- <events>
47
- <sales_order_place_after>
48
- <observers>
49
- <pepperjam_network>
50
- <type>singleton</type>
51
- <class>Pepperjam_Network_Model_Observer</class>
52
- <method>transferAttribution</method>
53
- </pepperjam_network>
54
- </observers>
55
- </sales_order_place_after>
56
- </events>
57
- </global>
58
- <crontab>
59
- <jobs>
60
- <pepperjam_network_generate_product_feed>
61
- <schedule>
62
- <cron_expr>0 3 * * *</cron_expr>
63
- </schedule>
64
- <run>
65
- <model>pepperjam_network/observer::createProductFeed</model>
66
- </run>
67
- </pepperjam_network_generate_product_feed>
68
- <pepperjam_network_generate_corrected_order_feed>
69
- <schedule>
70
- <cron_expr>0 3 * * *</cron_expr>
71
- </schedule>
72
- <run>
73
- <model>pepperjam_network/observer::createCorrectedOrdersFeed</model>
74
- </run>
75
- </pepperjam_network_generate_corrected_order_feed>
76
- <pepperjam_network_generate_order_feed>
77
- <schedule>
78
- <cron_expr>0 3 * * *</cron_expr>
79
- </schedule>
80
- <run>
81
- <model>pepperjam_network/observer::createOrdersFeed</model>
82
- </run>
83
- </pepperjam_network_generate_order_feed>
84
- </jobs>
85
- </crontab>
86
- <default>
87
- <pepperjam>
88
- <pepperjam_network>
89
- <active>0</active>
90
- <js_files>pepperjam_network/cookie.js</js_files>
91
- <!-- use comma to add more js files-->
92
- <beacon_url>https://t.pepperjamnetwork.com/track</beacon_url>
93
- <export_path>var/export/pepperjam_network/</export_path>
94
- <order_type>itemized</order_type>
95
- <tracking_method></tracking_method>
96
- <program_id/>
97
- <transaction_type>1</transaction_type>
98
- <attribution_enabled>1</attribution_enabled>
99
- <source_key_name>source</source_key_name>
100
- <click_id_key_name>click</click_id_key_name>
101
- <publisher_id_key_name>publisher</publisher_id_key_name>
102
- <product_feed_enabled>1</product_feed_enabled>
103
- <order_correction_feed_enabled>1</order_correction_feed_enabled>
104
- <feeds>
105
- <callback_mappings>
106
- <program_id>
107
- <class>pepperjam_network/map</class>
108
- <method>getProgramId</method>
109
- <type>helper</type>
110
- <column_name>PID</column_name>
111
- </program_id>
112
- <order_id>
113
- <class>pepperjam_network/map_order</class>
114
- <method>getOrderId</method>
115
- <type>helper</type>
116
- <column_name>OID</column_name>
117
- <params>
118
- <format>%.50s</format>
119
- </params>
120
- </order_id>
121
- <item_order_id>
122
- <class>pepperjam_network/map_order</class>
123
- <method>getItemOrderId</method>
124
- <type>helper</type>
125
- <column_name>OID</column_name>
126
- <params>
127
- <format>%.50s</format>
128
- </params>
129
- </item_order_id>
130
- <item_id>
131
- <class>pepperjam_network/map_order</class>
132
- <method>getItemId</method>
133
- <type>helper</type>
134
- <column_name>ITEMID</column_name>
135
- <params>
136
- <format>%.50s</format>
137
- <key>sku</key>
138
- </params>
139
- </item_id>
140
- <item_price>
141
- <class>pepperjam_network/map_order</class>
142
- <method>getItemPrice</method>
143
- <type>helper</type>
144
- <column_name>AMOUNT</column_name>
145
- <params>
146
- <format>%.2f</format>
147
- </params>
148
- </item_price>
149
- <item_quantity>
150
- <class>pepperjam_network/map_order</class>
151
- <method>getItemQuantity</method>
152
- <type>helper</type>
153
- <column_name>QUANTITY</column_name>
154
- </item_quantity>
155
- <click_id>
156
- <class>pepperjam_network/map_order</class>
157
- <method>getClickId</method>
158
- <type>helper</type>
159
- <column_name>CLICKID</column_name>
160
- </click_id>
161
- <publisher_id>
162
- <class>pepperjam_network/map_order</class>
163
- <method>getPublisherId</method>
164
- <type>helper</type>
165
- <column_name>AFFILIATEID</column_name>
166
- </publisher_id>
167
- <order_date>
168
- <class>pepperjam_network/map_order</class>
169
- <method>getOrderDate</method>
170
- <type>helper</type>
171
- <column_name>DATETIME</column_name>
172
- </order_date>
173
- <dynamic_program_id>
174
- <class>pepperjam_network/map</class>
175
- <method>getProgramId</method>
176
- <type>helper</type>
177
- <column_name>PROGRAM_ID</column_name>
178
- </dynamic_program_id>
179
- <dynamic_item_order_id>
180
- <class>pepperjam_network/map_order</class>
181
- <method>getItemOrderId</method>
182
- <type>helper</type>
183
- <column_name>ORDER_ID</column_name>
184
- <params>
185
- <format>%.50s</format>
186
- </params>
187
- </dynamic_item_order_id>
188
- <dynamic_item_id>
189
- <class>pepperjam_network/map_order</class>
190
- <method>getItemId</method>
191
- <type>helper</type>
192
- <column_name>ITEM_ID</column_name>
193
- <params>
194
- <format>%.50s</format>
195
- <key>sku</key>
196
- </params>
197
- </dynamic_item_id>
198
- <dynamic_item_price>
199
- <class>pepperjam_network/map_order</class>
200
- <method>getItemPrice</method>
201
- <type>helper</type>
202
- <column_name>ITEM_PRICE</column_name>
203
- <params>
204
- <format>%.2f</format>
205
- </params>
206
- </dynamic_item_price>
207
- <dynamic_click_id>
208
- <class>pepperjam_network/map_order</class>
209
- <method>getClickId</method>
210
- <type>helper</type>
211
- <column_name>CLICK_ID</column_name>
212
- </dynamic_click_id>
213
- <dynamic_publisher_id>
214
- <class>pepperjam_network/map_order</class>
215
- <method>getPublisherId</method>
216
- <type>helper</type>
217
- <column_name>AFFILIATE_ID</column_name>
218
- </dynamic_publisher_id>
219
- <dynamic_order_date>
220
- <class>pepperjam_network/map_order</class>
221
- <method>getOrderDate</method>
222
- <type>helper</type>
223
- <column_name>ORDER_DATE</column_name>
224
- </dynamic_order_date>
225
- <category>
226
- <class>pepperjam_network/map_order</class>
227
- <method>getCategory</method>
228
- <type>helper</type>
229
- <column_name>CATEGORY</column_name>
230
- </category>
231
- <new_to_file>
232
- <class>pepperjam_network/map_order</class>
233
- <method>getNewToFile</method>
234
- <type>helper</type>
235
- <column_name>NEW_TO_FILE</column_name>
236
- </new_to_file>
237
- <order_amount>
238
- <class>pepperjam_network/map_order</class>
239
- <method>getOrderAmount</method>
240
- <type>helper</type>
241
- <column_name>AMOUNT</column_name>
242
- <params>
243
- <format>%.2f</format>
244
- </params>
245
- </order_amount>
246
- <reason>
247
- <class>pepperjam_network/map</class>
248
- <method>passStatic</method>
249
- <type>helper</type>
250
- <column_name>REASON</column_name>
251
- <params>
252
- <value>8</value>
253
- </params>
254
- </reason>
255
- <transaction_type>
256
- <class>pepperjam_network/map_order</class>
257
- <method>getTransactionType</method>
258
- <type>helper</type>
259
- <column_name>TYPE</column_name>
260
- </transaction_type>
261
- <age_range>
262
- <class>pepperjam_network/map</class>
263
- <method>getDataValue</method>
264
- <type>helper</type>
265
- <column_name>age_range</column_name>
266
- <params>
267
- <format>%.32s</format>
268
- </params>
269
- </age_range>
270
- <artist>
271
- <class>pepperjam_network/map</class>
272
- <method>getDataValue</method>
273
- <type>helper</type>
274
- <column_name>artist</column_name>
275
- <params>
276
- <format>%.128s</format>
277
- </params>
278
- </artist>
279
- <aspect_ratio>
280
- <class>pepperjam_network/map</class>
281
- <method>getDataValue</method>
282
- <type>helper</type>
283
- <column_name>aspect_ratio</column_name>
284
- <params>
285
- <format>%.16s</format>
286
- </params>
287
- </aspect_ratio>
288
- <author>
289
- <class>pepperjam_network/map</class>
290
- <method>getDataValue</method>
291
- <type>helper</type>
292
- <column_name>author</column_name>
293
- <params>
294
- <format>%.128s</format>
295
- </params>
296
- </author>
297
- <battery_life>
298
- <class>pepperjam_network/map</class>
299
- <method>getDataValue</method>
300
- <type>helper</type>
301
- <column_name>battery_life</column_name>
302
- <params>
303
- <format>%.32s</format>
304
- </params>
305
- </battery_life>
306
- <binding>
307
- <class>pepperjam_network/map</class>
308
- <method>getDataValue</method>
309
- <type>helper</type>
310
- <column_name>binding</column_name>
311
- <params>
312
- <format>%.32s</format>
313
- </params>
314
- </binding>
315
- <buy_url>
316
- <class>pepperjam_network/map</class>
317
- <method>getDataValue</method>
318
- <type>helper</type>
319
- <column_name>buy_url</column_name>
320
- <params>
321
- <key>product_url</key>
322
- <format>%.2000s</format>
323
- </params>
324
- </buy_url>
325
- <category_network>
326
- <class>pepperjam_network/map_product</class>
327
- <method>getCategory</method>
328
- <type>helper</type>
329
- <column_name>category_network</column_name>
330
- <params>
331
- <format>%.256s</format>
332
- </params>
333
- </category_network>
334
- <category_program>
335
- <class>pepperjam_network/map_product</class>
336
- <method>getCategory</method>
337
- <type>helper</type>
338
- <column_name>category_program</column_name>
339
- <params>
340
- <format>%.256s</format>
341
- </params>
342
- </category_program>
343
- <color>
344
- <class>pepperjam_network/map</class>
345
- <method>getDataValue</method>
346
- <type>helper</type>
347
- <column_name>color</column_name>
348
- <params>
349
- <format>%.32s</format>
350
- </params>
351
- </color>
352
- <color_output>
353
- <class>pepperjam_network/map</class>
354
- <method>getValueYesNo</method>
355
- <type>helper</type>
356
- <column_name>color_output</column_name>
357
- <params>
358
- <format>%s</format>
359
- </params>
360
- </color_output>
361
- <condition>
362
- <class>pepperjam_network/map</class>
363
- <method>getDataValue</method>
364
- <type>helper</type>
365
- <column_name>condition</column_name>
366
- <params>
367
- <format>%.64s</format>
368
- </params>
369
- </condition>
370
- <description_long>
371
- <class>pepperjam_network/map</class>
372
- <method>getDataValue</method>
373
- <type>helper</type>
374
- <column_name>description_long</column_name>
375
- <params>
376
- <format>%.2000s</format>
377
- </params>
378
- </description_long>
379
- <description_short>
380
- <class>pepperjam_network/map</class>
381
- <method>getDataValue</method>
382
- <type>helper</type>
383
- <column_name>description_short</column_name>
384
- <params>
385
- <format>%.512s</format>
386
- </params>
387
- </description_short>
388
- <director>
389
- <class>pepperjam_network/map</class>
390
- <method>getDataValue</method>
391
- <type>helper</type>
392
- <column_name>director</column_name>
393
- <params>
394
- <format>%.128s</format>
395
- </params>
396
- </director>
397
- <discontinued>
398
- <class>pepperjam_network/map</class>
399
- <method>getValueYesNo</method>
400
- <type>helper</type>
401
- <column_name>discontinued</column_name>
402
- <params>
403
- <format>%s</format>
404
- </params>
405
- </discontinued>
406
- <display_type>
407
- <class>pepperjam_network/map</class>
408
- <method>getDataValue</method>
409
- <type>helper</type>
410
- <column_name>display_type</column_name>
411
- <params>
412
- <format>%.32s</format>
413
- </params>
414
- </display_type>
415
- <edition>
416
- <class>pepperjam_network/map</class>
417
- <method>getDataValue</method>
418
- <type>helper</type>
419
- <column_name>edition</column_name>
420
- <params>
421
- <format>%.32s</format>
422
- </params>
423
- </edition>
424
- <expiration_date>
425
- <class>pepperjam_network/map</class>
426
- <method>getDateValue</method>
427
- <type>helper</type>
428
- <column_name>expiration_date</column_name>
429
- <params>
430
- <format>Y-m-d</format>
431
- </params>
432
- </expiration_date>
433
- <features>
434
- <class>pepperjam_network/map</class>
435
- <method>getDataValue</method>
436
- <type>helper</type>
437
- <column_name>features</column_name>
438
- <params>
439
- <format>%.128s</format>
440
- </params>
441
- </features>
442
- <focus_type>
443
- <class>pepperjam_network/map</class>
444
- <method>getDataValue</method>
445
- <type>helper</type>
446
- <column_name>focus_type</column_name>
447
- <params>
448
- <format>%.128s</format>
449
- </params>
450
- </focus_type>
451
- <format>
452
- <class>pepperjam_network/map</class>
453
- <method>getDataValue</method>
454
- <type>helper</type>
455
- <column_name>format</column_name>
456
- <params>
457
- <format>%.64s</format>
458
- </params>
459
- </format>
460
- <functions>
461
- <class>pepperjam_network/map</class>
462
- <method>getDataValue</method>
463
- <type>helper</type>
464
- <column_name>functions</column_name>
465
- <params>
466
- <format>%.64s</format>
467
- </params>
468
- </functions>
469
- <genre>
470
- <class>pepperjam_network/map</class>
471
- <method>getDataValue</method>
472
- <type>helper</type>
473
- <column_name>genre</column_name>
474
- <params>
475
- <format>%.64s</format>
476
- </params>
477
- </genre>
478
- <heel_height>
479
- <class>pepperjam_network/map</class>
480
- <method>getDataValue</method>
481
- <type>helper</type>
482
- <column_name>heel_height</column_name>
483
- <params>
484
- <format>%.32s</format>
485
- </params>
486
- </heel_height>
487
- <height>
488
- <class>pepperjam_network/map</class>
489
- <method>getDataValue</method>
490
- <type>helper</type>
491
- <column_name>height</column_name>
492
- <params>
493
- <format>%.32s</format>
494
- </params>
495
- </height>
496
- <image_thumb_url>
497
- <class>pepperjam_network/map_product</class>
498
- <method>getImageUrl</method>
499
- <type>helper</type>
500
- <column_name>image_thumb_url</column_name>
501
- <params>
502
- <format>%.2000s</format>
503
- </params>
504
- </image_thumb_url>
505
- <image_url>
506
- <class>pepperjam_network/map_product</class>
507
- <method>getImageUrl</method>
508
- <type>helper</type>
509
- <column_name>image_url</column_name>
510
- <params>
511
- <format>%.2000s</format>
512
- </params>
513
- </image_url>
514
- <installation>
515
- <class>pepperjam_network/map</class>
516
- <method>getDataValue</method>
517
- <type>helper</type>
518
- <column_name>installation</column_name>
519
- <params>
520
- <format>%.64s</format>
521
- </params>
522
- </installation>
523
- <in_stock>
524
- <class>pepperjam_network/map_product</class>
525
- <method>getInStockYesNo</method>
526
- <type>helper</type>
527
- <column_name>in_stock</column_name>
528
- <params>
529
- <format>%s</format>
530
- </params>
531
- </in_stock>
532
- <isbn>
533
- <class>pepperjam_network/map</class>
534
- <method>getDataValue</method>
535
- <type>helper</type>
536
- <column_name>isbn</column_name>
537
- <params>
538
- <format>%.64s</format>
539
- </params>
540
- </isbn>
541
- <keywords>
542
- <class>pepperjam_network/map</class>
543
- <method>getDataValue</method>
544
- <type>helper</type>
545
- <column_name>keywords</column_name>
546
- <params>
547
- <format>%.256s</format>
548
- </params>
549
- </keywords>
550
- <length>
551
- <class>pepperjam_network/map</class>
552
- <method>getDataValue</method>
553
- <type>helper</type>
554
- <column_name>length</column_name>
555
- <params>
556
- <format>%.32s</format>
557
- </params>
558
- </length>
559
- <load_type>
560
- <class>pepperjam_network/map</class>
561
- <method>getDataValue</method>
562
- <type>helper</type>
563
- <column_name>load_type</column_name>
564
- <params>
565
- <format>%.32s</format>
566
- </params>
567
- </load_type>
568
- <location>
569
- <class>pepperjam_network/map</class>
570
- <method>getDataValue</method>
571
- <type>helper</type>
572
- <column_name>location</column_name>
573
- <params>
574
- <format>%.64s</format>
575
- </params>
576
- </location>
577
- <made_in>
578
- <class>pepperjam_network/map</class>
579
- <method>getDataValue</method>
580
- <type>helper</type>
581
- <column_name>made_in</column_name>
582
- <params>
583
- <format>%.64s</format>
584
- </params>
585
- </made_in>
586
- <manufacturer>
587
- <class>pepperjam_network/map</class>
588
- <method>getDataValue</method>
589
- <type>helper</type>
590
- <column_name>manufacturer</column_name>
591
- <params>
592
- <format>%.128s</format>
593
- </params>
594
- </manufacturer>
595
- <material>
596
- <class>pepperjam_network/map</class>
597
- <method>getDataValue</method>
598
- <type>helper</type>
599
- <column_name>material</column_name>
600
- <params>
601
- <format>%.128s</format>
602
- </params>
603
- </material>
604
- <megapixels>
605
- <class>pepperjam_network/map</class>
606
- <method>getDataValue</method>
607
- <type>helper</type>
608
- <column_name>megapixels</column_name>
609
- <params>
610
- <format>%01.2f</format>
611
- </params>
612
- </megapixels>
613
- <memory_capacity>
614
- <class>pepperjam_network/map</class>
615
- <method>getDataValue</method>
616
- <type>helper</type>
617
- <column_name>memory_capacity</column_name>
618
- <params>
619
- <format>%.64s</format>
620
- </params>
621
- </memory_capacity>
622
- <memory_card_slot>
623
- <class>pepperjam_network/map</class>
624
- <method>getDataValue</method>
625
- <type>helper</type>
626
- <column_name>memory_card_slot</column_name>
627
- <params>
628
- <format>%.32s</format>
629
- </params>
630
- </memory_card_slot>
631
- <memory_type>
632
- <class>pepperjam_network/map</class>
633
- <method>getDataValue</method>
634
- <type>helper</type>
635
- <column_name>memory_type</column_name>
636
- <params>
637
- <format>%.64s</format>
638
- </params>
639
- </memory_type>
640
- <model_number>
641
- <class>pepperjam_network/map</class>
642
- <method>getDataValue</method>
643
- <type>helper</type>
644
- <column_name>model_number</column_name>
645
- <params>
646
- <format>%.128s</format>
647
- </params>
648
- </model_number>
649
- <mpn>
650
- <class>pepperjam_network/map</class>
651
- <method>getDataValue</method>
652
- <type>helper</type>
653
- <column_name>mpn</column_name>
654
- <params>
655
- <format>%.128s</format>
656
- </params>
657
- </mpn>
658
- <name>
659
- <class>pepperjam_network/map</class>
660
- <method>getDataValue</method>
661
- <type>helper</type>
662
- <column_name>name</column_name>
663
- <params>
664
- <format>%.128s</format>
665
- </params>
666
- </name>
667
- <occasion>
668
- <class>pepperjam_network/map</class>
669
- <method>getDataValue</method>
670
- <type>helper</type>
671
- <column_name>occasion</column_name>
672
- <params>
673
- <format>%.128s</format>
674
- </params>
675
- </occasion>
676
- <operating_system>
677
- <class>pepperjam_network/map</class>
678
- <method>getDataValue</method>
679
- <type>helper</type>
680
- <column_name>operating_system</column_name>
681
- <params>
682
- <format>%.128s</format>
683
- </params>
684
- </operating_system>
685
- <optical_drive>
686
- <class>pepperjam_network/map</class>
687
- <method>getDataValue</method>
688
- <type>helper</type>
689
- <column_name>optical_drive</column_name>
690
- <params>
691
- <format>%.64s</format>
692
- </params>
693
- </optical_drive>
694
- <pages>
695
- <class>pepperjam_network/map</class>
696
- <method>getDataValue</method>
697
- <type>helper</type>
698
- <column_name>pages</column_name>
699
- <params>
700
- <format>%.11d</format>
701
- </params>
702
- </pages>
703
- <payment_accepted>
704
- <class>pepperjam_network/map</class>
705
- <method>getDataValue</method>
706
- <type>helper</type>
707
- <column_name>payment_accepted</column_name>
708
- <params>
709
- <format>%.128s</format>
710
- </params>
711
- </payment_accepted>
712
- <payment_notes>
713
- <class>pepperjam_network/map</class>
714
- <method>getDataValue</method>
715
- <type>helper</type>
716
- <column_name>payment_notes</column_name>
717
- <params>
718
- <format>%.256s</format>
719
- </params>
720
- </payment_notes>
721
- <platform>
722
- <class>pepperjam_network/map</class>
723
- <method>getDataValue</method>
724
- <type>helper</type>
725
- <column_name>platform</column_name>
726
- <params>
727
- <format>%.64s</format>
728
- </params>
729
- </platform>
730
- <price>
731
- <class>pepperjam_network/map</class>
732
- <method>getDataValue</method>
733
- <type>helper</type>
734
- <column_name>price</column_name>
735
- <params>
736
- <format>%01.2f</format>
737
- </params>
738
- </price>
739
- <price_retail>
740
- <class>pepperjam_network/map</class>
741
- <method>getDataValue</method>
742
- <type>helper</type>
743
- <column_name>price_retail</column_name>
744
- <params>
745
- <format>%01.2f</format>
746
- </params>
747
- </price_retail>
748
- <price_sale>
749
- <class>pepperjam_network/map</class>
750
- <method>getDataValue</method>
751
- <type>helper</type>
752
- <column_name>price_sale</column_name>
753
- <params>
754
- <format>%01.2f</format>
755
- </params>
756
- </price_sale>
757
- <price_shipping>
758
- <class>pepperjam_network/map</class>
759
- <method>getDataValue</method>
760
- <type>helper</type>
761
- <column_name>price_shipping</column_name>
762
- <params>
763
- <format>%01.2f</format>
764
- </params>
765
- </price_shipping>
766
- <processor>
767
- <class>pepperjam_network/map</class>
768
- <method>getDataValue</method>
769
- <type>helper</type>
770
- <column_name>processor</column_name>
771
- <params>
772
- <format>%.64s</format>
773
- </params>
774
- </processor>
775
- <publisher>
776
- <class>pepperjam_network/map</class>
777
- <method>getDataValue</method>
778
- <type>helper</type>
779
- <column_name>publisher</column_name>
780
- <params>
781
- <format>%.128s</format>
782
- </params>
783
- </publisher>
784
- <quantity_in_stock>
785
- <class>pepperjam_network/map_product</class>
786
- <method>getInStockQty</method>
787
- <type>helper</type>
788
- <column_name>quantity_in_stock</column_name>
789
- <params>
790
- <format>%.11d</format>
791
- </params>
792
- </quantity_in_stock>
793
- <rating>
794
- <class>pepperjam_network/map</class>
795
- <method>getDataValue</method>
796
- <type>helper</type>
797
- <column_name>rating</column_name>
798
- <params>
799
- <format>%.32s</format>
800
- </params>
801
- </rating>
802
- <recommended_usage>
803
- <class>pepperjam_network/map</class>
804
- <method>getDataValue</method>
805
- <type>helper</type>
806
- <column_name>recommended_usage</column_name>
807
- <params>
808
- <format>%.128s</format>
809
- </params>
810
- </recommended_usage>
811
- <resolution>
812
- <class>pepperjam_network/map</class>
813
- <method>getDataValue</method>
814
- <type>helper</type>
815
- <column_name>resolution</column_name>
816
- <params>
817
- <format>%.64s</format>
818
- </params>
819
- </resolution>
820
- <screen_size>
821
- <class>pepperjam_network/map</class>
822
- <method>getDataValue</method>
823
- <type>helper</type>
824
- <column_name>screen_size</column_name>
825
- <params>
826
- <format>%.32s</format>
827
- </params>
828
- </screen_size>
829
- <shipping_method>
830
- <class>pepperjam_network/map</class>
831
- <method>getDataValue</method>
832
- <type>helper</type>
833
- <column_name>shipping_method</column_name>
834
- <params>
835
- <format>%.64s</format>
836
- </params>
837
- </shipping_method>
838
- <shoe_size>
839
- <class>pepperjam_network/map</class>
840
- <method>getDataValue</method>
841
- <type>helper</type>
842
- <column_name>shoe_size</column_name>
843
- <params>
844
- <format>%.32s</format>
845
- </params>
846
- </shoe_size>
847
- <shoe_width>
848
- <class>pepperjam_network/map</class>
849
- <method>getDataValue</method>
850
- <type>helper</type>
851
- <column_name>shoe_width</column_name>
852
- <params>
853
- <format>%.32s</format>
854
- </params>
855
- </shoe_width>
856
- <size>
857
- <class>pepperjam_network/map</class>
858
- <method>getDataValue</method>
859
- <type>helper</type>
860
- <column_name>size</column_name>
861
- <params>
862
- <format>%.32s</format>
863
- </params>
864
- </size>
865
- <sku>
866
- <class>pepperjam_network/map</class>
867
- <method>getDataValue</method>
868
- <type>helper</type>
869
- <column_name>sku</column_name>
870
- <params>
871
- <format>%.128s</format>
872
- </params>
873
- </sku>
874
- <staring>
875
- <class>pepperjam_network/map</class>
876
- <method>getDataValue</method>
877
- <type>helper</type>
878
- <column_name>staring</column_name>
879
- <params>
880
- <format>%.128s</format>
881
- </params>
882
- </staring>
883
- <style>
884
- <class>pepperjam_network/map</class>
885
- <method>getDataValue</method>
886
- <type>helper</type>
887
- <column_name>style</column_name>
888
- <params>
889
- <format>%.64s</format>
890
- </params>
891
- </style>
892
- <tech_spec_url>
893
- <class>pepperjam_network/map</class>
894
- <method>getDataValue</method>
895
- <type>helper</type>
896
- <column_name>tech_spec_url</column_name>
897
- <params>
898
- <format>%.2000s</format>
899
- </params>
900
- </tech_spec_url>
901
- <tracks>
902
- <class>pepperjam_network/map</class>
903
- <method>getDataValue</method>
904
- <type>helper</type>
905
- <column_name>tracks</column_name>
906
- <params>
907
- <format>%.11d</format>
908
- </params>
909
- </tracks>
910
- <upc>
911
- <class>pepperjam_network/map</class>
912
- <method>getDataValue</method>
913
- <type>helper</type>
914
- <column_name>upc</column_name>
915
- <params>
916
- <format>%.128s</format>
917
- </params>
918
- </upc>
919
- <weight>
920
- <class>pepperjam_network/map</class>
921
- <method>getDataValue</method>
922
- <type>helper</type>
923
- <column_name>weight</column_name>
924
- <params>
925
- <format>%.32s</format>
926
- </params>
927
- </weight>
928
- <width>
929
- <class>pepperjam_network/map</class>
930
- <method>getDataValue</method>
931
- <type>helper</type>
932
- <column_name>width</column_name>
933
- <params>
934
- <format>%.32s</format>
935
- </params>
936
- </width>
937
- <wireless_interface>
938
- <class>pepperjam_network/map</class>
939
- <method>getDataValue</method>
940
- <type>helper</type>
941
- <column_name>wireless_interface</column_name>
942
- <params>
943
- <format>%.32s</format>
944
- </params>
945
- </wireless_interface>
946
- <year>
947
- <class>pepperjam_network/map</class>
948
- <method>getYearValue</method>
949
- <type>helper</type>
950
- <column_name>year</column_name>
951
- <params>
952
- <format>%.dd</format>
953
- </params>
954
- </year>
955
- <zoom>
956
- <class>pepperjam_network/map</class>
957
- <method>getDataValue</method>
958
- <type>helper</type>
959
- <column_name>zoom</column_name>
960
- <params>
961
- <format>%.32s</format>
962
- </params>
963
- </zoom>
964
- </callback_mappings>
965
- <order_dynamic>
966
- <fields>dynamic_program_id,dynamic_publisher_id,dynamic_click_id,dynamic_item_order_id,dynamic_item_id,dynamic_item_price,item_quantity,dynamic_order_date,category,new_to_file</fields>
967
- </order_dynamic>
968
- <order_itemized>
969
- <fields>program_id,publisher_id,item_order_id,item_id,item_price,item_quantity,order_date,click_id</fields>
970
- </order_itemized>
971
- <order_basic>
972
- <fields>program_id,publisher_id,order_amount,order_id,order_date,transaction_type,click_id</fields>
973
- </order_basic>
974
- <order_correction_dynamic>
975
- <fields>dynamic_program_id,dynamic_item_order_id,dynamic_item_id,dynamic_item_price,item_quantity,category,new_to_file</fields>
976
- </order_correction_dynamic>
977
- <order_correction_itemized>
978
- <fields>program_id,item_order_id,item_id,item_price,item_quantity,reason</fields>
979
- </order_correction_itemized>
980
- <order_correction_basic>
981
- <fields>program_id,publisher_id,order_amount,order_id,reason,transaction_type</fields>
982
- </order_correction_basic>
983
- <order_feed>
984
- <file_name_format>%s_transactions_%s.csv</file_name_format>
985
- </order_feed>
986
- <order_correction_feed>
987
- <file_name_format>%s_transactions_corrected_%s.csv</file_name_format>
988
- </order_correction_feed>
989
- <product>
990
- <file_name_format>%s_product_feed.csv</file_name_format>
991
- </product>
992
- </feeds>
993
- </pepperjam_network>
994
- <pepperjam_network_product_attribute_map>
995
- <!--
996
- The purpose of this mapping is enabled the coexistence of both
997
- pre-configured product attributes mapping and configured attributes
998
- mapping for the affiliate product feed. This means that when this
999
- module is installed and no other attribute is configured for the
1000
- product feed the required pre-mapped attributes will be sufficient
1001
- enough to generate a valid product feed.
1002
- -->
1003
- <age_range/>
1004
- <artist/>
1005
- <aspect_ratio/>
1006
- <author/>
1007
- <battery_life/>
1008
- <binding/>
1009
- <buy_url>product_url</buy_url>
1010
- <category_network/>
1011
- <category_program>category</category_program>
1012
- <color/>
1013
- <color_output/>
1014
- <condition/>
1015
- <description_long>description</description_long>
1016
- <description_short>short_description</description_short>
1017
- <director/>
1018
- <discontinued/>
1019
- <display_type/>
1020
- <edition/>
1021
- <expiration_date/>
1022
- <features/>
1023
- <focus_type/>
1024
- <format/>
1025
- <functions/>
1026
- <genre/>
1027
- <heel_height/>
1028
- <height/>
1029
- <image_thumb_url>thumbnail</image_thumb_url>
1030
- <image_url>image</image_url>
1031
- <installation/>
1032
- <in_stock/>
1033
- <isbn/>
1034
- <keywords>meta_keyword</keywords>
1035
- <length/>
1036
- <load_type/>
1037
- <location/>
1038
- <made_in/>
1039
- <manufacturer>manufacturer</manufacturer>
1040
- <material/>
1041
- <megapixels/>
1042
- <memory_capacity/>
1043
- <memory_card_slot/>
1044
- <memory_type/>
1045
- <model_number/>
1046
- <mpn/>
1047
- <name>name</name>
1048
- <occasion/>
1049
- <operating_system/>
1050
- <optical_drive/>
1051
- <pages/>
1052
- <payment_accepted/>
1053
- <payment_notes/>
1054
- <platform/>
1055
- <price>price</price>
1056
- <price_retail>msrp</price_retail>
1057
- <price_sale>special_price</price_sale>
1058
- <price_shipping/>
1059
- <processor/>
1060
- <publisher/>
1061
- <quantity_in_stock>qty</quantity_in_stock>
1062
- <rating/>
1063
- <recommended_usage/>
1064
- <resolution/>
1065
- <screen_size/>
1066
- <shipping_method/>
1067
- <shoe_size/>
1068
- <shoe_width/>
1069
- <size/>
1070
- <sku>sku</sku>
1071
- <staring/>
1072
- <style/>
1073
- <tech_spec_url/>
1074
- <tracks/>
1075
- <upc/>
1076
- <weight/>
1077
- <width/>
1078
- <wireless_interface/>
1079
- <year/>
1080
- <zoom/>
1081
- </pepperjam_network_product_attribute_map>
1082
- </pepperjam>
1083
- </default>
1084
- <frontend>
1085
- <layout>
1086
- <updates>
1087
- <pepperjam_network>
1088
- <file>pepperjam_network.xml</file>
1089
- </pepperjam_network>
1090
- </updates>
1091
- </layout>
1092
- </frontend>
1093
- <phpunit>
1094
- <suite>
1095
- <modules>
1096
- <Pepperjam_Network/>
1097
- </modules>
1098
- </suite>
1099
- </phpunit>
1100
- <admin>
1101
- <routers>
1102
- <adminhtml>
1103
- <args>
1104
- <modules>
1105
- <pepperjam_network before="Mage_Adminhtml">Pepperjam_Network_Adminhtml</pepperjam_network>
1106
- </modules>
1107
- </args>
1108
- </adminhtml>
1109
- </routers>
1110
- </admin>
 
 
 
 
 
 
 
1111
  </config>
14
  @license http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf Pepperjam Network Magento Extensions End User License Agreement
15
  -->
16
  <config>
17
+ <modules>
18
+ <Pepperjam_Network>
19
+ <version>1.3.0.3</version>
20
+ </Pepperjam_Network>
21
+ </modules>
22
+ <global>
23
+ <models>
24
+ <pepperjam_network>
25
+ <class>Pepperjam_Network_Model</class>
26
+ </pepperjam_network>
27
+ </models>
28
+ <helpers>
29
+ <pepperjam_network>
30
+ <class>Pepperjam_Network_Helper</class>
31
+ </pepperjam_network>
32
+ </helpers>
33
+ <blocks>
34
+ <pepperjam_network>
35
+ <class>Pepperjam_Network_Block</class>
36
+ </pepperjam_network>
37
+ </blocks>
38
+ <resources>
39
+ <pepperjam_network_setup>
40
+ <setup>
41
+ <module>Pepperjam_Network</module>
42
+ <class>Mage_Core_Model_Resource_Setup</class>
43
+ </setup>
44
+ </pepperjam_network_setup>
45
+ </resources>
46
+ <events>
47
+ <sales_order_place_after>
48
+ <observers>
49
+ <pepperjam_network>
50
+ <type>singleton</type>
51
+ <class>Pepperjam_Network_Model_Observer</class>
52
+ <method>transferAttribution</method>
53
+ </pepperjam_network>
54
+ </observers>
55
+ </sales_order_place_after>
56
+ </events>
57
+ </global>
58
+ <crontab>
59
+ <jobs>
60
+ <pepperjam_network_generate_product_feed>
61
+ <schedule>
62
+ <cron_expr>0 3 * * *</cron_expr>
63
+ </schedule>
64
+ <run>
65
+ <model>pepperjam_network/observer::createProductFeed</model>
66
+ </run>
67
+ </pepperjam_network_generate_product_feed>
68
+ <pepperjam_network_generate_corrected_order_feed>
69
+ <schedule>
70
+ <cron_expr>0 3 * * *</cron_expr>
71
+ </schedule>
72
+ <run>
73
+ <model>pepperjam_network/observer::createCorrectedOrdersFeed</model>
74
+ </run>
75
+ </pepperjam_network_generate_corrected_order_feed>
76
+ <pepperjam_network_generate_order_feed>
77
+ <schedule>
78
+ <cron_expr>0 3 * * *</cron_expr>
79
+ </schedule>
80
+ <run>
81
+ <model>pepperjam_network/observer::createOrdersFeed</model>
82
+ </run>
83
+ </pepperjam_network_generate_order_feed>
84
+ </jobs>
85
+ </crontab>
86
+ <default>
87
+ <pepperjam>
88
+ <pepperjam_network>
89
+ <active>0</active>
90
+ <js_files>pepperjam_network/cookie.js</js_files>
91
+ <!-- use comma to add more js files-->
92
+ <beacon_url>https://t.pepperjamnetwork.com/track</beacon_url>
93
+ <export_path>var/export/pepperjam_network/</export_path>
94
+ <order_type>itemized</order_type>
95
+ <tracking_method></tracking_method>
96
+ <program_id/>
97
+ <transaction_type>1</transaction_type>
98
+ <attribution_enabled>1</attribution_enabled>
99
+ <source_key_name>source</source_key_name>
100
+ <click_id_key_name>click</click_id_key_name>
101
+ <publisher_id_key_name>publisher</publisher_id_key_name>
102
+ <product_feed_enabled>1</product_feed_enabled>
103
+ <order_correction_feed_enabled>1</order_correction_feed_enabled>
104
+ <feeds>
105
+ <callback_mappings>
106
+ <program_id>
107
+ <class>pepperjam_network/map</class>
108
+ <method>getProgramId</method>
109
+ <type>helper</type>
110
+ <column_name>PID</column_name>
111
+ </program_id>
112
+ <order_id>
113
+ <class>pepperjam_network/map_order</class>
114
+ <method>getOrderId</method>
115
+ <type>helper</type>
116
+ <column_name>OID</column_name>
117
+ <params>
118
+ <format>%.50s</format>
119
+ </params>
120
+ </order_id>
121
+ <item_order_id>
122
+ <class>pepperjam_network/map_order</class>
123
+ <method>getItemOrderId</method>
124
+ <type>helper</type>
125
+ <column_name>OID</column_name>
126
+ <params>
127
+ <format>%.50s</format>
128
+ </params>
129
+ </item_order_id>
130
+ <item_id>
131
+ <class>pepperjam_network/map_order</class>
132
+ <method>getItemId</method>
133
+ <type>helper</type>
134
+ <column_name>ITEMID</column_name>
135
+ <params>
136
+ <format>%.50s</format>
137
+ <key>sku</key>
138
+ </params>
139
+ </item_id>
140
+ <item_price>
141
+ <class>pepperjam_network/map_order</class>
142
+ <method>getItemPrice</method>
143
+ <type>helper</type>
144
+ <column_name>AMOUNT</column_name>
145
+ <params>
146
+ <format>%.2f</format>
147
+ </params>
148
+ </item_price>
149
+ <item_quantity>
150
+ <class>pepperjam_network/map_order</class>
151
+ <method>getItemQuantity</method>
152
+ <type>helper</type>
153
+ <column_name>QUANTITY</column_name>
154
+ </item_quantity>
155
+ <click_id>
156
+ <class>pepperjam_network/map_order</class>
157
+ <method>getClickId</method>
158
+ <type>helper</type>
159
+ <column_name>CLICKID</column_name>
160
+ </click_id>
161
+ <publisher_id>
162
+ <class>pepperjam_network/map_order</class>
163
+ <method>getPublisherId</method>
164
+ <type>helper</type>
165
+ <column_name>AFFILIATEID</column_name>
166
+ </publisher_id>
167
+ <order_date>
168
+ <class>pepperjam_network/map_order</class>
169
+ <method>getOrderDate</method>
170
+ <type>helper</type>
171
+ <column_name>DATETIME</column_name>
172
+ </order_date>
173
+ <dynamic_program_id>
174
+ <class>pepperjam_network/map</class>
175
+ <method>getProgramId</method>
176
+ <type>helper</type>
177
+ <column_name>PROGRAM_ID</column_name>
178
+ </dynamic_program_id>
179
+ <dynamic_item_order_id>
180
+ <class>pepperjam_network/map_order</class>
181
+ <method>getItemOrderId</method>
182
+ <type>helper</type>
183
+ <column_name>ORDER_ID</column_name>
184
+ <params>
185
+ <format>%.50s</format>
186
+ </params>
187
+ </dynamic_item_order_id>
188
+ <dynamic_item_id>
189
+ <class>pepperjam_network/map_order</class>
190
+ <method>getItemId</method>
191
+ <type>helper</type>
192
+ <column_name>ITEM_ID</column_name>
193
+ <params>
194
+ <format>%.50s</format>
195
+ <key>sku</key>
196
+ </params>
197
+ </dynamic_item_id>
198
+ <dynamic_item_price>
199
+ <class>pepperjam_network/map_order</class>
200
+ <method>getItemPrice</method>
201
+ <type>helper</type>
202
+ <column_name>ITEM_PRICE</column_name>
203
+ <params>
204
+ <format>%.2f</format>
205
+ </params>
206
+ </dynamic_item_price>
207
+ <dynamic_click_id>
208
+ <class>pepperjam_network/map_order</class>
209
+ <method>getClickId</method>
210
+ <type>helper</type>
211
+ <column_name>CLICK_ID</column_name>
212
+ </dynamic_click_id>
213
+ <dynamic_publisher_id>
214
+ <class>pepperjam_network/map_order</class>
215
+ <method>getPublisherId</method>
216
+ <type>helper</type>
217
+ <column_name>AFFILIATE_ID</column_name>
218
+ </dynamic_publisher_id>
219
+ <dynamic_order_date>
220
+ <class>pepperjam_network/map_order</class>
221
+ <method>getOrderDate</method>
222
+ <type>helper</type>
223
+ <column_name>ORDER_DATE</column_name>
224
+ </dynamic_order_date>
225
+ <category>
226
+ <class>pepperjam_network/map_order</class>
227
+ <method>getCategory</method>
228
+ <type>helper</type>
229
+ <column_name>CATEGORY</column_name>
230
+ </category>
231
+ <new_to_file>
232
+ <class>pepperjam_network/map_order</class>
233
+ <method>getNewToFile</method>
234
+ <type>helper</type>
235
+ <column_name>NEW_TO_FILE</column_name>
236
+ </new_to_file>
237
+ <order_amount>
238
+ <class>pepperjam_network/map_order</class>
239
+ <method>getOrderAmount</method>
240
+ <type>helper</type>
241
+ <column_name>AMOUNT</column_name>
242
+ <params>
243
+ <format>%.2f</format>
244
+ </params>
245
+ </order_amount>
246
+ <reason>
247
+ <class>pepperjam_network/map</class>
248
+ <method>passStatic</method>
249
+ <type>helper</type>
250
+ <column_name>REASON</column_name>
251
+ <params>
252
+ <value>8</value>
253
+ </params>
254
+ </reason>
255
+ <transaction_type>
256
+ <class>pepperjam_network/map_order</class>
257
+ <method>getTransactionType</method>
258
+ <type>helper</type>
259
+ <column_name>TYPE</column_name>
260
+ </transaction_type>
261
+ <age_range>
262
+ <class>pepperjam_network/map</class>
263
+ <method>getDataValue</method>
264
+ <type>helper</type>
265
+ <column_name>age_range</column_name>
266
+ <params>
267
+ <format>%.32s</format>
268
+ </params>
269
+ </age_range>
270
+ <artist>
271
+ <class>pepperjam_network/map</class>
272
+ <method>getDataValue</method>
273
+ <type>helper</type>
274
+ <column_name>artist</column_name>
275
+ <params>
276
+ <format>%.128s</format>
277
+ </params>
278
+ </artist>
279
+ <aspect_ratio>
280
+ <class>pepperjam_network/map</class>
281
+ <method>getDataValue</method>
282
+ <type>helper</type>
283
+ <column_name>aspect_ratio</column_name>
284
+ <params>
285
+ <format>%.16s</format>
286
+ </params>
287
+ </aspect_ratio>
288
+ <author>
289
+ <class>pepperjam_network/map</class>
290
+ <method>getDataValue</method>
291
+ <type>helper</type>
292
+ <column_name>author</column_name>
293
+ <params>
294
+ <format>%.128s</format>
295
+ </params>
296
+ </author>
297
+ <battery_life>
298
+ <class>pepperjam_network/map</class>
299
+ <method>getDataValue</method>
300
+ <type>helper</type>
301
+ <column_name>battery_life</column_name>
302
+ <params>
303
+ <format>%.32s</format>
304
+ </params>
305
+ </battery_life>
306
+ <binding>
307
+ <class>pepperjam_network/map</class>
308
+ <method>getDataValue</method>
309
+ <type>helper</type>
310
+ <column_name>binding</column_name>
311
+ <params>
312
+ <format>%.32s</format>
313
+ </params>
314
+ </binding>
315
+ <buy_url>
316
+ <class>pepperjam_network/map</class>
317
+ <method>getDataValue</method>
318
+ <type>helper</type>
319
+ <column_name>buy_url</column_name>
320
+ <params>
321
+ <key>product_url</key>
322
+ <format>%.2000s</format>
323
+ </params>
324
+ </buy_url>
325
+ <category_network>
326
+ <class>pepperjam_network/map_product</class>
327
+ <method>getCategory</method>
328
+ <type>helper</type>
329
+ <column_name>category_network</column_name>
330
+ <params>
331
+ <format>%.256s</format>
332
+ </params>
333
+ </category_network>
334
+ <category_program>
335
+ <class>pepperjam_network/map_product</class>
336
+ <method>getCategory</method>
337
+ <type>helper</type>
338
+ <column_name>category_program</column_name>
339
+ <params>
340
+ <format>%.256s</format>
341
+ </params>
342
+ </category_program>
343
+ <color>
344
+ <class>pepperjam_network/map</class>
345
+ <method>getDataValue</method>
346
+ <type>helper</type>
347
+ <column_name>color</column_name>
348
+ <params>
349
+ <format>%.32s</format>
350
+ </params>
351
+ </color>
352
+ <color_output>
353
+ <class>pepperjam_network/map</class>
354
+ <method>getValueYesNo</method>
355
+ <type>helper</type>
356
+ <column_name>color_output</column_name>
357
+ <params>
358
+ <format>%s</format>
359
+ </params>
360
+ </color_output>
361
+ <condition>
362
+ <class>pepperjam_network/map</class>
363
+ <method>getDataValue</method>
364
+ <type>helper</type>
365
+ <column_name>condition</column_name>
366
+ <params>
367
+ <format>%.64s</format>
368
+ </params>
369
+ </condition>
370
+ <description_long>
371
+ <class>pepperjam_network/map</class>
372
+ <method>getDataValue</method>
373
+ <type>helper</type>
374
+ <column_name>description_long</column_name>
375
+ <params>
376
+ <format>%.2000s</format>
377
+ </params>
378
+ </description_long>
379
+ <description_short>
380
+ <class>pepperjam_network/map</class>
381
+ <method>getDataValue</method>
382
+ <type>helper</type>
383
+ <column_name>description_short</column_name>
384
+ <params>
385
+ <format>%.512s</format>
386
+ </params>
387
+ </description_short>
388
+ <director>
389
+ <class>pepperjam_network/map</class>
390
+ <method>getDataValue</method>
391
+ <type>helper</type>
392
+ <column_name>director</column_name>
393
+ <params>
394
+ <format>%.128s</format>
395
+ </params>
396
+ </director>
397
+ <discontinued>
398
+ <class>pepperjam_network/map</class>
399
+ <method>getValueYesNo</method>
400
+ <type>helper</type>
401
+ <column_name>discontinued</column_name>
402
+ <params>
403
+ <format>%s</format>
404
+ </params>
405
+ </discontinued>
406
+ <display_type>
407
+ <class>pepperjam_network/map</class>
408
+ <method>getDataValue</method>
409
+ <type>helper</type>
410
+ <column_name>display_type</column_name>
411
+ <params>
412
+ <format>%.32s</format>
413
+ </params>
414
+ </display_type>
415
+ <edition>
416
+ <class>pepperjam_network/map</class>
417
+ <method>getDataValue</method>
418
+ <type>helper</type>
419
+ <column_name>edition</column_name>
420
+ <params>
421
+ <format>%.32s</format>
422
+ </params>
423
+ </edition>
424
+ <expiration_date>
425
+ <class>pepperjam_network/map</class>
426
+ <method>getDateValue</method>
427
+ <type>helper</type>
428
+ <column_name>expiration_date</column_name>
429
+ <params>
430
+ <format>Y-m-d</format>
431
+ </params>
432
+ </expiration_date>
433
+ <features>
434
+ <class>pepperjam_network/map</class>
435
+ <method>getDataValue</method>
436
+ <type>helper</type>
437
+ <column_name>features</column_name>
438
+ <params>
439
+ <format>%.128s</format>
440
+ </params>
441
+ </features>
442
+ <focus_type>
443
+ <class>pepperjam_network/map</class>
444
+ <method>getDataValue</method>
445
+ <type>helper</type>
446
+ <column_name>focus_type</column_name>
447
+ <params>
448
+ <format>%.128s</format>
449
+ </params>
450
+ </focus_type>
451
+ <format>
452
+ <class>pepperjam_network/map</class>
453
+ <method>getDataValue</method>
454
+ <type>helper</type>
455
+ <column_name>format</column_name>
456
+ <params>
457
+ <format>%.64s</format>
458
+ </params>
459
+ </format>
460
+ <functions>
461
+ <class>pepperjam_network/map</class>
462
+ <method>getDataValue</method>
463
+ <type>helper</type>
464
+ <column_name>functions</column_name>
465
+ <params>
466
+ <format>%.64s</format>
467
+ </params>
468
+ </functions>
469
+ <genre>
470
+ <class>pepperjam_network/map</class>
471
+ <method>getDataValue</method>
472
+ <type>helper</type>
473
+ <column_name>genre</column_name>
474
+ <params>
475
+ <format>%.64s</format>
476
+ </params>
477
+ </genre>
478
+ <heel_height>
479
+ <class>pepperjam_network/map</class>
480
+ <method>getDataValue</method>
481
+ <type>helper</type>
482
+ <column_name>heel_height</column_name>
483
+ <params>
484
+ <format>%.32s</format>
485
+ </params>
486
+ </heel_height>
487
+ <height>
488
+ <class>pepperjam_network/map</class>
489
+ <method>getDataValue</method>
490
+ <type>helper</type>
491
+ <column_name>height</column_name>
492
+ <params>
493
+ <format>%.32s</format>
494
+ </params>
495
+ </height>
496
+ <image_thumb_url>
497
+ <class>pepperjam_network/map_product</class>
498
+ <method>getImageUrl</method>
499
+ <type>helper</type>
500
+ <column_name>image_thumb_url</column_name>
501
+ <params>
502
+ <format>%.2000s</format>
503
+ </params>
504
+ </image_thumb_url>
505
+ <image_url>
506
+ <class>pepperjam_network/map_product</class>
507
+ <method>getImageUrl</method>
508
+ <type>helper</type>
509
+ <column_name>image_url</column_name>
510
+ <params>
511
+ <format>%.2000s</format>
512
+ </params>
513
+ </image_url>
514
+ <installation>
515
+ <class>pepperjam_network/map</class>
516
+ <method>getDataValue</method>
517
+ <type>helper</type>
518
+ <column_name>installation</column_name>
519
+ <params>
520
+ <format>%.64s</format>
521
+ </params>
522
+ </installation>
523
+ <in_stock>
524
+ <class>pepperjam_network/map_product</class>
525
+ <method>getInStockYesNo</method>
526
+ <type>helper</type>
527
+ <column_name>in_stock</column_name>
528
+ <params>
529
+ <format>%s</format>
530
+ </params>
531
+ </in_stock>
532
+ <isbn>
533
+ <class>pepperjam_network/map</class>
534
+ <method>getDataValue</method>
535
+ <type>helper</type>
536
+ <column_name>isbn</column_name>
537
+ <params>
538
+ <format>%.64s</format>
539
+ </params>
540
+ </isbn>
541
+ <keywords>
542
+ <class>pepperjam_network/map</class>
543
+ <method>getDataValue</method>
544
+ <type>helper</type>
545
+ <column_name>keywords</column_name>
546
+ <params>
547
+ <format>%.256s</format>
548
+ </params>
549
+ </keywords>
550
+ <length>
551
+ <class>pepperjam_network/map</class>
552
+ <method>getDataValue</method>
553
+ <type>helper</type>
554
+ <column_name>length</column_name>
555
+ <params>
556
+ <format>%.32s</format>
557
+ </params>
558
+ </length>
559
+ <load_type>
560
+ <class>pepperjam_network/map</class>
561
+ <method>getDataValue</method>
562
+ <type>helper</type>
563
+ <column_name>load_type</column_name>
564
+ <params>
565
+ <format>%.32s</format>
566
+ </params>
567
+ </load_type>
568
+ <location>
569
+ <class>pepperjam_network/map</class>
570
+ <method>getDataValue</method>
571
+ <type>helper</type>
572
+ <column_name>location</column_name>
573
+ <params>
574
+ <format>%.64s</format>
575
+ </params>
576
+ </location>
577
+ <made_in>
578
+ <class>pepperjam_network/map</class>
579
+ <method>getDataValue</method>
580
+ <type>helper</type>
581
+ <column_name>made_in</column_name>
582
+ <params>
583
+ <format>%.64s</format>
584
+ </params>
585
+ </made_in>
586
+ <manufacturer>
587
+ <class>pepperjam_network/map</class>
588
+ <method>getDataValue</method>
589
+ <type>helper</type>
590
+ <column_name>manufacturer</column_name>
591
+ <params>
592
+ <format>%.128s</format>
593
+ </params>
594
+ </manufacturer>
595
+ <material>
596
+ <class>pepperjam_network/map</class>
597
+ <method>getDataValue</method>
598
+ <type>helper</type>
599
+ <column_name>material</column_name>
600
+ <params>
601
+ <format>%.128s</format>
602
+ </params>
603
+ </material>
604
+ <megapixels>
605
+ <class>pepperjam_network/map</class>
606
+ <method>getDataValue</method>
607
+ <type>helper</type>
608
+ <column_name>megapixels</column_name>
609
+ <params>
610
+ <format>%01.2f</format>
611
+ </params>
612
+ </megapixels>
613
+ <memory_capacity>
614
+ <class>pepperjam_network/map</class>
615
+ <method>getDataValue</method>
616
+ <type>helper</type>
617
+ <column_name>memory_capacity</column_name>
618
+ <params>
619
+ <format>%.64s</format>
620
+ </params>
621
+ </memory_capacity>
622
+ <memory_card_slot>
623
+ <class>pepperjam_network/map</class>
624
+ <method>getDataValue</method>
625
+ <type>helper</type>
626
+ <column_name>memory_card_slot</column_name>
627
+ <params>
628
+ <format>%.32s</format>
629
+ </params>
630
+ </memory_card_slot>
631
+ <memory_type>
632
+ <class>pepperjam_network/map</class>
633
+ <method>getDataValue</method>
634
+ <type>helper</type>
635
+ <column_name>memory_type</column_name>
636
+ <params>
637
+ <format>%.64s</format>
638
+ </params>
639
+ </memory_type>
640
+ <model_number>
641
+ <class>pepperjam_network/map</class>
642
+ <method>getDataValue</method>
643
+ <type>helper</type>
644
+ <column_name>model_number</column_name>
645
+ <params>
646
+ <format>%.128s</format>
647
+ </params>
648
+ </model_number>
649
+ <mpn>
650
+ <class>pepperjam_network/map</class>
651
+ <method>getDataValue</method>
652
+ <type>helper</type>
653
+ <column_name>mpn</column_name>
654
+ <params>
655
+ <format>%.128s</format>
656
+ </params>
657
+ </mpn>
658
+ <name>
659
+ <class>pepperjam_network/map</class>
660
+ <method>getDataValue</method>
661
+ <type>helper</type>
662
+ <column_name>name</column_name>
663
+ <params>
664
+ <format>%.128s</format>
665
+ </params>
666
+ </name>
667
+ <occasion>
668
+ <class>pepperjam_network/map</class>
669
+ <method>getDataValue</method>
670
+ <type>helper</type>
671
+ <column_name>occasion</column_name>
672
+ <params>
673
+ <format>%.128s</format>
674
+ </params>
675
+ </occasion>
676
+ <operating_system>
677
+ <class>pepperjam_network/map</class>
678
+ <method>getDataValue</method>
679
+ <type>helper</type>
680
+ <column_name>operating_system</column_name>
681
+ <params>
682
+ <format>%.128s</format>
683
+ </params>
684
+ </operating_system>
685
+ <optical_drive>
686
+ <class>pepperjam_network/map</class>
687
+ <method>getDataValue</method>
688
+ <type>helper</type>
689
+ <column_name>optical_drive</column_name>
690
+ <params>
691
+ <format>%.64s</format>
692
+ </params>
693
+ </optical_drive>
694
+ <pages>
695
+ <class>pepperjam_network/map</class>
696
+ <method>getDataValue</method>
697
+ <type>helper</type>
698
+ <column_name>pages</column_name>
699
+ <params>
700
+ <format>%.11d</format>
701
+ </params>
702
+ </pages>
703
+ <payment_accepted>
704
+ <class>pepperjam_network/map</class>
705
+ <method>getDataValue</method>
706
+ <type>helper</type>
707
+ <column_name>payment_accepted</column_name>
708
+ <params>
709
+ <format>%.128s</format>
710
+ </params>
711
+ </payment_accepted>
712
+ <payment_notes>
713
+ <class>pepperjam_network/map</class>
714
+ <method>getDataValue</method>
715
+ <type>helper</type>
716
+ <column_name>payment_notes</column_name>
717
+ <params>
718
+ <format>%.256s</format>
719
+ </params>
720
+ </payment_notes>
721
+ <platform>
722
+ <class>pepperjam_network/map</class>
723
+ <method>getDataValue</method>
724
+ <type>helper</type>
725
+ <column_name>platform</column_name>
726
+ <params>
727
+ <format>%.64s</format>
728
+ </params>
729
+ </platform>
730
+ <price>
731
+ <class>pepperjam_network/map</class>
732
+ <method>getDataValue</method>
733
+ <type>helper</type>
734
+ <column_name>price</column_name>
735
+ <params>
736
+ <format>%01.2f</format>
737
+ </params>
738
+ </price>
739
+ <price_retail>
740
+ <class>pepperjam_network/map</class>
741
+ <method>getDataValue</method>
742
+ <type>helper</type>
743
+ <column_name>price_retail</column_name>
744
+ <params>
745
+ <format>%01.2f</format>
746
+ </params>
747
+ </price_retail>
748
+ <price_sale>
749
+ <class>pepperjam_network/map</class>
750
+ <method>getDataValue</method>
751
+ <type>helper</type>
752
+ <column_name>price_sale</column_name>
753
+ <params>
754
+ <format>%01.2f</format>
755
+ </params>
756
+ </price_sale>
757
+ <price_shipping>
758
+ <class>pepperjam_network/map</class>
759
+ <method>getDataValue</method>
760
+ <type>helper</type>
761
+ <column_name>price_shipping</column_name>
762
+ <params>
763
+ <format>%01.2f</format>
764
+ </params>
765
+ </price_shipping>
766
+ <processor>
767
+ <class>pepperjam_network/map</class>
768
+ <method>getDataValue</method>
769
+ <type>helper</type>
770
+ <column_name>processor</column_name>
771
+ <params>
772
+ <format>%.64s</format>
773
+ </params>
774
+ </processor>
775
+ <publisher>
776
+ <class>pepperjam_network/map</class>
777
+ <method>getDataValue</method>
778
+ <type>helper</type>
779
+ <column_name>publisher</column_name>
780
+ <params>
781
+ <format>%.128s</format>
782
+ </params>
783
+ </publisher>
784
+ <quantity_in_stock>
785
+ <class>pepperjam_network/map_product</class>
786
+ <method>getInStockQty</method>
787
+ <type>helper</type>
788
+ <column_name>quantity_in_stock</column_name>
789
+ <params>
790
+ <format>%.11d</format>
791
+ </params>
792
+ </quantity_in_stock>
793
+ <rating>
794
+ <class>pepperjam_network/map</class>
795
+ <method>getDataValue</method>
796
+ <type>helper</type>
797
+ <column_name>rating</column_name>
798
+ <params>
799
+ <format>%.32s</format>
800
+ </params>
801
+ </rating>
802
+ <recommended_usage>
803
+ <class>pepperjam_network/map</class>
804
+ <method>getDataValue</method>
805
+ <type>helper</type>
806
+ <column_name>recommended_usage</column_name>
807
+ <params>
808
+ <format>%.128s</format>
809
+ </params>
810
+ </recommended_usage>
811
+ <resolution>
812
+ <class>pepperjam_network/map</class>
813
+ <method>getDataValue</method>
814
+ <type>helper</type>
815
+ <column_name>resolution</column_name>
816
+ <params>
817
+ <format>%.64s</format>
818
+ </params>
819
+ </resolution>
820
+ <screen_size>
821
+ <class>pepperjam_network/map</class>
822
+ <method>getDataValue</method>
823
+ <type>helper</type>
824
+ <column_name>screen_size</column_name>
825
+ <params>
826
+ <format>%.32s</format>
827
+ </params>
828
+ </screen_size>
829
+ <shipping_method>
830
+ <class>pepperjam_network/map</class>
831
+ <method>getDataValue</method>
832
+ <type>helper</type>
833
+ <column_name>shipping_method</column_name>
834
+ <params>
835
+ <format>%.64s</format>
836
+ </params>
837
+ </shipping_method>
838
+ <shoe_size>
839
+ <class>pepperjam_network/map</class>
840
+ <method>getDataValue</method>
841
+ <type>helper</type>
842
+ <column_name>shoe_size</column_name>
843
+ <params>
844
+ <format>%.32s</format>
845
+ </params>
846
+ </shoe_size>
847
+ <shoe_width>
848
+ <class>pepperjam_network/map</class>
849
+ <method>getDataValue</method>
850
+ <type>helper</type>
851
+ <column_name>shoe_width</column_name>
852
+ <params>
853
+ <format>%.32s</format>
854
+ </params>
855
+ </shoe_width>
856
+ <size>
857
+ <class>pepperjam_network/map</class>
858
+ <method>getDataValue</method>
859
+ <type>helper</type>
860
+ <column_name>size</column_name>
861
+ <params>
862
+ <format>%.32s</format>
863
+ </params>
864
+ </size>
865
+ <sku>
866
+ <class>pepperjam_network/map</class>
867
+ <method>getDataValue</method>
868
+ <type>helper</type>
869
+ <column_name>sku</column_name>
870
+ <params>
871
+ <format>%.128s</format>
872
+ </params>
873
+ </sku>
874
+ <staring>
875
+ <class>pepperjam_network/map</class>
876
+ <method>getDataValue</method>
877
+ <type>helper</type>
878
+ <column_name>staring</column_name>
879
+ <params>
880
+ <format>%.128s</format>
881
+ </params>
882
+ </staring>
883
+ <style>
884
+ <class>pepperjam_network/map</class>
885
+ <method>getDataValue</method>
886
+ <type>helper</type>
887
+ <column_name>style</column_name>
888
+ <params>
889
+ <format>%.64s</format>
890
+ </params>
891
+ </style>
892
+ <tech_spec_url>
893
+ <class>pepperjam_network/map</class>
894
+ <method>getDataValue</method>
895
+ <type>helper</type>
896
+ <column_name>tech_spec_url</column_name>
897
+ <params>
898
+ <format>%.2000s</format>
899
+ </params>
900
+ </tech_spec_url>
901
+ <tracks>
902
+ <class>pepperjam_network/map</class>
903
+ <method>getDataValue</method>
904
+ <type>helper</type>
905
+ <column_name>tracks</column_name>
906
+ <params>
907
+ <format>%.11d</format>
908
+ </params>
909
+ </tracks>
910
+ <upc>
911
+ <class>pepperjam_network/map</class>
912
+ <method>getDataValue</method>
913
+ <type>helper</type>
914
+ <column_name>upc</column_name>
915
+ <params>
916
+ <format>%.128s</format>
917
+ </params>
918
+ </upc>
919
+ <weight>
920
+ <class>pepperjam_network/map</class>
921
+ <method>getDataValue</method>
922
+ <type>helper</type>
923
+ <column_name>weight</column_name>
924
+ <params>
925
+ <format>%.32s</format>
926
+ </params>
927
+ </weight>
928
+ <width>
929
+ <class>pepperjam_network/map</class>
930
+ <method>getDataValue</method>
931
+ <type>helper</type>
932
+ <column_name>width</column_name>
933
+ <params>
934
+ <format>%.32s</format>
935
+ </params>
936
+ </width>
937
+ <wireless_interface>
938
+ <class>pepperjam_network/map</class>
939
+ <method>getDataValue</method>
940
+ <type>helper</type>
941
+ <column_name>wireless_interface</column_name>
942
+ <params>
943
+ <format>%.32s</format>
944
+ </params>
945
+ </wireless_interface>
946
+ <year>
947
+ <class>pepperjam_network/map</class>
948
+ <method>getYearValue</method>
949
+ <type>helper</type>
950
+ <column_name>year</column_name>
951
+ <params>
952
+ <format>%.dd</format>
953
+ </params>
954
+ </year>
955
+ <zoom>
956
+ <class>pepperjam_network/map</class>
957
+ <method>getDataValue</method>
958
+ <type>helper</type>
959
+ <column_name>zoom</column_name>
960
+ <params>
961
+ <format>%.32s</format>
962
+ </params>
963
+ </zoom>
964
+ </callback_mappings>
965
+ <order_dynamic>
966
+ <fields>
967
+ dynamic_program_id,dynamic_publisher_id,dynamic_click_id,dynamic_item_order_id,dynamic_item_id,dynamic_item_price,item_quantity,dynamic_order_date,category,new_to_file
968
+ </fields>
969
+ </order_dynamic>
970
+ <order_itemized>
971
+ <fields>
972
+ program_id,publisher_id,item_order_id,item_id,item_price,item_quantity,order_date,click_id
973
+ </fields>
974
+ </order_itemized>
975
+ <order_basic>
976
+ <fields>program_id,publisher_id,order_amount,order_id,order_date,transaction_type,click_id
977
+ </fields>
978
+ </order_basic>
979
+ <order_correction_dynamic>
980
+ <fields>
981
+ dynamic_program_id,dynamic_item_order_id,dynamic_item_id,dynamic_item_price,item_quantity,category,new_to_file
982
+ </fields>
983
+ </order_correction_dynamic>
984
+ <order_correction_itemized>
985
+ <fields>program_id,item_order_id,item_id,item_price,item_quantity,reason</fields>
986
+ </order_correction_itemized>
987
+ <order_correction_basic>
988
+ <fields>program_id,publisher_id,order_amount,order_id,reason,transaction_type</fields>
989
+ </order_correction_basic>
990
+ <order_feed>
991
+ <file_name_format>%s_transactions_%s.csv</file_name_format>
992
+ </order_feed>
993
+ <order_correction_feed>
994
+ <file_name_format>%s_transactions_corrected_%s.csv</file_name_format>
995
+ </order_correction_feed>
996
+ <product>
997
+ <file_name_format>%s_product_feed.csv</file_name_format>
998
+ </product>
999
+ </feeds>
1000
+ </pepperjam_network>
1001
+ <pepperjam_network_product_attribute_map>
1002
+ <!--
1003
+ The purpose of this mapping is enabled the coexistence of both
1004
+ pre-configured product attributes mapping and configured attributes
1005
+ mapping for the affiliate product feed. This means that when this
1006
+ module is installed and no other attribute is configured for the
1007
+ product feed the required pre-mapped attributes will be sufficient
1008
+ enough to generate a valid product feed.
1009
+ -->
1010
+ <age_range/>
1011
+ <artist/>
1012
+ <aspect_ratio/>
1013
+ <author/>
1014
+ <battery_life/>
1015
+ <binding/>
1016
+ <buy_url>product_url</buy_url>
1017
+ <category_network/>
1018
+ <category_program>category</category_program>
1019
+ <color/>
1020
+ <color_output/>
1021
+ <condition/>
1022
+ <description_long>description</description_long>
1023
+ <description_short>short_description</description_short>
1024
+ <director/>
1025
+ <discontinued/>
1026
+ <display_type/>
1027
+ <edition/>
1028
+ <expiration_date/>
1029
+ <features/>
1030
+ <focus_type/>
1031
+ <format/>
1032
+ <functions/>
1033
+ <genre/>
1034
+ <heel_height/>
1035
+ <height/>
1036
+ <image_thumb_url>thumbnail</image_thumb_url>
1037
+ <image_url>image</image_url>
1038
+ <installation/>
1039
+ <in_stock/>
1040
+ <isbn/>
1041
+ <keywords>meta_keyword</keywords>
1042
+ <length/>
1043
+ <load_type/>
1044
+ <location/>
1045
+ <made_in/>
1046
+ <manufacturer>manufacturer</manufacturer>
1047
+ <material/>
1048
+ <megapixels/>
1049
+ <memory_capacity/>
1050
+ <memory_card_slot/>
1051
+ <memory_type/>
1052
+ <model_number/>
1053
+ <mpn/>
1054
+ <name>name</name>
1055
+ <occasion/>
1056
+ <operating_system/>
1057
+ <optical_drive/>
1058
+ <pages/>
1059
+ <payment_accepted/>
1060
+ <payment_notes/>
1061
+ <platform/>
1062
+ <price>price</price>
1063
+ <price_retail>msrp</price_retail>
1064
+ <price_sale>special_price</price_sale>
1065
+ <price_shipping/>
1066
+ <processor/>
1067
+ <publisher/>
1068
+ <quantity_in_stock>qty</quantity_in_stock>
1069
+ <rating/>
1070
+ <recommended_usage/>
1071
+ <resolution/>
1072
+ <screen_size/>
1073
+ <shipping_method/>
1074
+ <shoe_size/>
1075
+ <shoe_width/>
1076
+ <size/>
1077
+ <sku>sku</sku>
1078
+ <staring/>
1079
+ <style/>
1080
+ <tech_spec_url/>
1081
+ <tracks/>
1082
+ <upc/>
1083
+ <weight/>
1084
+ <width/>
1085
+ <wireless_interface/>
1086
+ <year/>
1087
+ <zoom/>
1088
+ </pepperjam_network_product_attribute_map>
1089
+ </pepperjam>
1090
+ </default>
1091
+ <frontend>
1092
+ <layout>
1093
+ <updates>
1094
+ <pepperjam_network>
1095
+ <file>pepperjam_network.xml</file>
1096
+ </pepperjam_network>
1097
+ </updates>
1098
+ </layout>
1099
+ </frontend>
1100
+ <phpunit>
1101
+ <suite>
1102
+ <modules>
1103
+ <Pepperjam_Network/>
1104
+ </modules>
1105
+ </suite>
1106
+ </phpunit>
1107
+ <admin>
1108
+ <routers>
1109
+ <adminhtml>
1110
+ <args>
1111
+ <modules>
1112
+ <pepperjam_network before="Mage_Adminhtml">Pepperjam_Network_Adminhtml</pepperjam_network>
1113
+ </modules>
1114
+ </args>
1115
+ </adminhtml>
1116
+ </routers>
1117
+ </admin>
1118
  </config>
package.xml CHANGED
@@ -1,19 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Pepperjam_Network</name>
4
- <version>1.3.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf">EULA</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Please use the "Prepare for Uninstall" button in the Pepperjam Network extension configuration settings before uninstalling the extension. Failure to do so may cause issues after the extension is removed.</summary>
10
  <description>Please use the "Prepare for Uninstall" button in the Pepperjam Network extension configuration settings before uninstalling the extension. Failure to do so may cause issues after the extension is removed.</description>
11
- <notes>Changelog for 1.3.0.2&#xD;
12
- Changed uninstall button language and function to work with the normal uninstall method.</notes>
 
13
  <authors><author><name>Philip Preston</name><user>ppreston</user><email>ppreston@corp.pepperjam.com</email></author></authors>
14
- <date>2017-04-13</date>
15
- <time>18:27:33</time>
16
- <contents><target name="mageetc"><dir name="modules"><file name="Pepperjam_Network.xml" hash="d293e24c998ef81d8daf58b0f547a45c"/></dir></target><target name="magecommunity"><dir name="Pepperjam"><dir name="Network"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="2b615bb13fac1b640763384668f56dfa"/></dir></dir></dir></dir><file name="Beacon.php" hash="279d4ab5cfafa329ef257a19231642c3"/><file name="Tracking.php" hash="2c9bb4839704745e1a02a8b02f13d4b1"/></dir><dir name="Exception"><file name="Configuration.php" hash="78d9d2be394b4dfae56f0e7c5eb5acdf"/></dir><dir name="Helper"><file name="Config.php" hash="23c4d37b1b1cb2ba7882bfe4fd8d6bc1"/><file name="Data.php" hash="b139c69789651d0643e7be20dfcf6fcc"/><dir name="Map"><file name="Order.php" hash="79c9da2232abf8999d75e39665207f98"/><file name="Product.php" hash="224e5b4562e9b78654fc4551f09af6a6"/></dir><file name="Map.php" hash="ecd1c2d9fe2fbcca410f19a7e29d9900"/></dir><dir name="Model"><dir name="Feed"><file name="Abstract.php" hash="0fed99b49316e68f51efdad505ba6c9c"/><dir name="Order"><file name="Abstract.php" hash="681a55f620b609d5c90dad0daec87d24"/><file name="Basic.php" hash="bb4fcd1bb581c9c36c1c69545f58123b"/><file name="Dynamic.php" hash="1f9fb44a3746e4240a5f1e15ee3b2d35"/><file name="Itemized.php" hash="4bd9d352d94dbcc951b3f1aaf18f9267"/></dir><file name="Product.php" hash="d56c526f6b58b92d84c7452a5e0a52db"/></dir><file name="Observer.php" hash="21cc57e25cc6f9510580f6d8bb720f49"/><dir name="Product"><dir name="Attribute"><dir name="Source"><file name="CommissioningCategory.php" hash="bf0ced5bdc96becfb998e2f090f0ef56"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Attributes.php" hash="a7371a8d7eedabbfbc3899f44f7d4f40"/><file name="Categories.php" hash="5876e17c9c73a58a4d50672f626187c5"/><file name="Ordertypes.php" hash="d26a48ce19804ce26984539fc4852b43"/><file name="Stockquantity.php" hash="b5788bf323b0ecd3c87d40f2c5ac2d6e"/><file name="Stockyesno.php" hash="e32252148723d5afd2acd575dbad807f"/><file name="Trackingmethods.php" hash="b7364ea53b3362853764108c428871e7"/><file name="Transactiontype.php" hash="bd9ca045f793a25eb7be5690fd4f4704"/><file name="Visibilityyesno.php" hash="2c3c2e3801f2aa00f19fb18258ce9b29"/></dir></dir></dir></dir><dir name="Test"><dir name="Block"><file name="BeaconTest.php" hash="d89dcfcfa8c8b135442a96121b99b139"/><dir name="providers"><file name="testShowBeacon.yaml" hash="3a605cb51a86987f318ce4186d80e04f"/></dir></dir><dir name="Helper"><file name="DataTest.php" hash="62b321d69fdf49343e35d28fb7f14a5e"/><dir name="Map"><file name="ProductTest.php" hash="6cd1eb4410f061ce057a18c903a1ef01"/></dir><dir name="providers"><file name="testIsValidCookie.yaml" hash="1c94e7a661d72fc05724c40e509cf5ad"/></dir></dir><dir name="Model"><dir name="Feed"><file name="AbstractTest.php" hash="d43afcb5f4312cd1cacd6c4d5c8e980c"/><dir name="Order"><file name="AbstractTest.php" hash="19721d959c8fff2ecbb5c6fa093971ef"/><file name="BasicTest.php" hash="a493b77aceb70eede155c24301d06259"/><file name="ItemizedTest.php" hash="c5d108c538033c3dae8cc72b535b2cad"/></dir><file name="ProductTest.php" hash="2e7f3c395f4bc070005917c08d93c7b2"/></dir><file name="ObserverTest.php" hash="f4e6d2e60e47efcd1057d7d6808a720c"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="PepperjamNetworkController.php" hash="140b5e36d9a2886d763f42317134b858"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="0da08cc1337e4f07a74408b2dd379c26"/><file name="config.xml" hash="51bcc821c329ccf63aa1bb3147121f32"/><file name="system.xml" hash="87b8d7bc1fd1a8e8a087980b07a2ab2d"/></dir><dir name="sql"><dir name="pepperjam_network_setup"><file name="install-1.0.0.1.php" hash="c16d2390643fe92260773421af04196e"/><file name="mysql4-data-upgrade-1.2.1.0-1.2.2.0.php" hash="e32121b8893c6fe9ff598aa5e93f8bb3"/><file name="mysql4-data-upgrade-1.2.2.0-1.3.0.0.php" hash="0974aee7b5caf395a9f9cb8564b2e5af"/><file name="mysql4-install-1.0.0.1.php" hash="c16d2390643fe92260773421af04196e"/><file name="mysql4-upgrade-1.0.0.1-1.2.0.0.php" hash="2b0692625b2c15b58cf63b8cf8d51856"/><file name="mysql4-upgrade-1.2.99.99-1.3.0.0.php" hash="8d288efe53bede9195c7f881d541a49d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pepperjam_network"><dir name="system"><dir name="config"><file name="button.phtml" hash="5b1ec8371b238028dac034a71f33e1fc"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pepperjam_network.xml" hash="31a7ee00e5d3ca1c616eae472f54ecb7"/></dir><dir name="template"><dir name="pepperjam_network"><file name="beacon.phtml" hash="1ca76e21e7419faa6067ca0cd6027cf0"/><file name="tracking.phtml" hash="fb479dac42ccc3b82212aed980466fd5"/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.3.0</min><max>5.6.99</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Pepperjam_Network</name>
4
+ <version>1.3.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://assets.pepperjam.com/legal/magento-connect-extension-eula.pdf">EULA</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Please use the "Prepare for Uninstall" button in the Pepperjam Network extension configuration settings before uninstalling the extension. Failure to do so may cause issues after the extension is removed.</summary>
10
  <description>Please use the "Prepare for Uninstall" button in the Pepperjam Network extension configuration settings before uninstalling the extension. Failure to do so may cause issues after the extension is removed.</description>
11
+ <notes>Changelog for 1.3.0.3&#xD;
12
+ Bugfix for conversion pixel&#xD;
13
+ Bugfix for product feed</notes>
14
  <authors><author><name>Philip Preston</name><user>ppreston</user><email>ppreston@corp.pepperjam.com</email></author></authors>
15
+ <date>2017-05-25</date>
16
+ <time>16:58:54</time>
17
+ <contents><target name="mageetc"><dir name="modules"><file name="Pepperjam_Network.xml" hash="d293e24c998ef81d8daf58b0f547a45c"/></dir></target><target name="magecommunity"><dir name="Pepperjam"><dir name="Network"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><file name="Button.php" hash="2b615bb13fac1b640763384668f56dfa"/></dir></dir></dir></dir><file name="Beacon.php" hash="279d4ab5cfafa329ef257a19231642c3"/><file name="Tracking.php" hash="2c9bb4839704745e1a02a8b02f13d4b1"/></dir><dir name="Exception"><file name="Configuration.php" hash="78d9d2be394b4dfae56f0e7c5eb5acdf"/></dir><dir name="Helper"><file name="Config.php" hash="23c4d37b1b1cb2ba7882bfe4fd8d6bc1"/><file name="Data.php" hash="15e2933a33b2c1fe7cf650131b009a6e"/><dir name="Map"><file name="Order.php" hash="79c9da2232abf8999d75e39665207f98"/><file name="Product.php" hash="224e5b4562e9b78654fc4551f09af6a6"/></dir><file name="Map.php" hash="ecd1c2d9fe2fbcca410f19a7e29d9900"/></dir><dir name="Model"><dir name="Feed"><file name="Abstract.php" hash="a26c0f95429cb938eba82e4578d0814b"/><dir name="Order"><file name="Abstract.php" hash="681a55f620b609d5c90dad0daec87d24"/><file name="Basic.php" hash="bb4fcd1bb581c9c36c1c69545f58123b"/><file name="Dynamic.php" hash="1f9fb44a3746e4240a5f1e15ee3b2d35"/><file name="Itemized.php" hash="4bd9d352d94dbcc951b3f1aaf18f9267"/></dir><file name="Product.php" hash="d56c526f6b58b92d84c7452a5e0a52db"/></dir><file name="Observer.php" hash="c82a7bc5f48a153f956eed7ed9cdc168"/><dir name="Product"><dir name="Attribute"><dir name="Source"><file name="CommissioningCategory.php" hash="bf0ced5bdc96becfb998e2f090f0ef56"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Attributes.php" hash="a7371a8d7eedabbfbc3899f44f7d4f40"/><file name="Categories.php" hash="5876e17c9c73a58a4d50672f626187c5"/><file name="Ordertypes.php" hash="d26a48ce19804ce26984539fc4852b43"/><file name="Stockquantity.php" hash="b5788bf323b0ecd3c87d40f2c5ac2d6e"/><file name="Stockyesno.php" hash="e32252148723d5afd2acd575dbad807f"/><file name="Trackingmethods.php" hash="b7364ea53b3362853764108c428871e7"/><file name="Transactiontype.php" hash="bd9ca045f793a25eb7be5690fd4f4704"/><file name="Visibilityyesno.php" hash="2c3c2e3801f2aa00f19fb18258ce9b29"/></dir></dir></dir></dir><dir name="Test"><dir name="Block"><file name="BeaconTest.php" hash="d89dcfcfa8c8b135442a96121b99b139"/><dir name="providers"><file name="testShowBeacon.yaml" hash="3a605cb51a86987f318ce4186d80e04f"/></dir></dir><dir name="Helper"><file name="DataTest.php" hash="62b321d69fdf49343e35d28fb7f14a5e"/><dir name="Map"><file name="ProductTest.php" hash="6cd1eb4410f061ce057a18c903a1ef01"/></dir><dir name="providers"><file name="testIsValidCookie.yaml" hash="1c94e7a661d72fc05724c40e509cf5ad"/></dir></dir><dir name="Model"><dir name="Feed"><file name="AbstractTest.php" hash="d43afcb5f4312cd1cacd6c4d5c8e980c"/><dir name="Order"><file name="AbstractTest.php" hash="19721d959c8fff2ecbb5c6fa093971ef"/><file name="BasicTest.php" hash="a493b77aceb70eede155c24301d06259"/><file name="ItemizedTest.php" hash="c5d108c538033c3dae8cc72b535b2cad"/></dir><file name="ProductTest.php" hash="2e7f3c395f4bc070005917c08d93c7b2"/></dir><file name="ObserverTest.php" hash="f4e6d2e60e47efcd1057d7d6808a720c"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="PepperjamNetworkController.php" hash="140b5e36d9a2886d763f42317134b858"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="0da08cc1337e4f07a74408b2dd379c26"/><file name="config.xml" hash="72b01a7316febb45b2257621676aaa02"/><file name="system.xml" hash="87b8d7bc1fd1a8e8a087980b07a2ab2d"/></dir><dir name="sql"><dir name="pepperjam_network_setup"><file name="install-1.0.0.1.php" hash="c16d2390643fe92260773421af04196e"/><file name="mysql4-data-upgrade-1.2.1.0-1.2.2.0.php" hash="e32121b8893c6fe9ff598aa5e93f8bb3"/><file name="mysql4-data-upgrade-1.2.2.0-1.3.0.0.php" hash="0974aee7b5caf395a9f9cb8564b2e5af"/><file name="mysql4-install-1.0.0.1.php" hash="c16d2390643fe92260773421af04196e"/><file name="mysql4-upgrade-1.0.0.1-1.2.0.0.php" hash="2b0692625b2c15b58cf63b8cf8d51856"/><file name="mysql4-upgrade-1.2.99.99-1.3.0.0.php" hash="8d288efe53bede9195c7f881d541a49d"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pepperjam_network"><dir name="system"><dir name="config"><file name="button.phtml" hash="5b1ec8371b238028dac034a71f33e1fc"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pepperjam_network.xml" hash="31a7ee00e5d3ca1c616eae472f54ecb7"/></dir><dir name="template"><dir name="pepperjam_network"><file name="beacon.phtml" hash="1ca76e21e7419faa6067ca0cd6027cf0"/><file name="tracking.phtml" hash="fb479dac42ccc3b82212aed980466fd5"/></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>