Version Notes
- Added support for configurable product
- Optimized api client
- Added security access token
- Fixed 404 error after installation
- Bug fixes and performance improvements
Download this release
Release Info
Developer | TriggMine |
Extension | TriggMineCartRecovery |
Version | 3.0.8 |
Comparing to | |
See all releases |
Code changes from version 3.0.7 to 3.0.8
- app/code/community/Triggmine/IntegrationModule/Helper/Data.php +82 -61
- app/code/community/Triggmine/IntegrationModule/etc/adminhtml.xml +3 -3
- app/code/community/Triggmine/IntegrationModule/etc/config.xml +10 -6
- app/code/community/Triggmine/IntegrationModule/etc/system.xml +5 -5
- app/design/frontend/base/default/layout/triggmine_integrationmodule.xml +1 -1
- app/etc/modules/Triggmine_IntegrationModule.xml +1 -1
- package.xml +4 -4
app/code/community/Triggmine/IntegrationModule/Helper/Data.php
CHANGED
@@ -10,7 +10,7 @@ class Triggmine_IntegrationModule_Helper_Data extends Mage_Core_Helper_Abstract
|
|
10 |
const XML_PATH_EXPORT = 'triggmine/triggmine_export/export';
|
11 |
const XML_PATH_DATE_FROM = 'triggmine/triggmine_export/my_date_from';
|
12 |
const XML_PATH_DATE_TO = 'triggmine/triggmine_export/my_date_to';
|
13 |
-
const VERSION_PLUGIN = '3.0.
|
14 |
|
15 |
protected $_storeManager;
|
16 |
protected $_cartItemRepository;
|
@@ -94,14 +94,34 @@ class Triggmine_IntegrationModule_Helper_Data extends Mage_Core_Helper_Abstract
|
|
94 |
{
|
95 |
return trim(preg_replace('/\s+/', ' ', $name));
|
96 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
public function getCartData()
|
99 |
{
|
100 |
-
$cart
|
101 |
-
$customer
|
102 |
-
|
103 |
-
$products = $cart->getQuote()->getItemsCollection();
|
104 |
-
|
105 |
$customerId = $customer->getCustomer()->getId();
|
106 |
$customerData = Mage::getModel('customer/customer')->load($customerId);
|
107 |
$dateCreated = $customerId ? date('Y/m/d h:m:s', $customerData->getCreatedAtTimestamp()) : null;
|
@@ -129,23 +149,21 @@ class Triggmine_IntegrationModule_Helper_Data extends Mage_Core_Helper_Abstract
|
|
129 |
// to prevent duplicate entries for configurable product - consider only child simple products
|
130 |
if($product->getProductType() == "simple")
|
131 |
{
|
132 |
-
|
133 |
-
$
|
134 |
-
|
135 |
-
$
|
136 |
-
$
|
137 |
-
|
138 |
-
$productPull = Mage::getModel('catalog/product')->load($productId);
|
139 |
-
|
140 |
-
$productImage = $productPull->getImageUrl();
|
141 |
-
$productDesc = $productPull->getDescription();
|
142 |
|
143 |
if ($product->getParentItem())
|
144 |
{
|
145 |
$productPrice = $product->getParentItem()->getPrice();
|
146 |
$productTotalVal = $product->getParentItem()->getRowTotal();
|
147 |
$parentIds = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($productId);
|
148 |
-
$
|
|
|
|
|
|
|
149 |
$productQty = $product->getParentItem()->getQty();
|
150 |
}
|
151 |
else
|
@@ -153,30 +171,31 @@ class Triggmine_IntegrationModule_Helper_Data extends Mage_Core_Helper_Abstract
|
|
153 |
$productPrice = $catalogProduct->getFinalPrice($product->getQty());
|
154 |
$productTotalVal = $product->getRowTotal();
|
155 |
$categories = Mage::getModel('catalog/product')->load($productId)->getCategoryIds();
|
|
|
|
|
156 |
$productQty = $product->getQty();
|
157 |
}
|
158 |
|
159 |
$itemData = array();
|
160 |
-
$itemData['product_id']
|
161 |
-
$itemData['product_name']
|
162 |
-
$itemData['product_desc']
|
163 |
-
$itemData['product_sku']
|
164 |
-
$itemData['product_image']
|
165 |
-
$itemData['product_url']
|
166 |
-
$itemData['product_qty']
|
167 |
-
$itemData['product_price']
|
168 |
-
$itemData['product_total_val']
|
169 |
|
170 |
$itemData['product_categories'] = array();
|
171 |
|
172 |
-
foreach ($categories as $categoryId)
|
173 |
-
|
174 |
$category = Mage::getModel('catalog/category')->load($categoryId);
|
175 |
$itemData['product_categories'][] = $category->getName();
|
176 |
}
|
177 |
|
178 |
$data['products'][] = $itemData;
|
179 |
-
|
180 |
}
|
181 |
else
|
182 |
{
|
@@ -199,14 +218,11 @@ class Triggmine_IntegrationModule_Helper_Data extends Mage_Core_Helper_Abstract
|
|
199 |
|
200 |
public function getOrderData($observer)
|
201 |
{
|
202 |
-
$orderId
|
203 |
-
|
204 |
-
$
|
205 |
-
$
|
206 |
-
|
207 |
-
$collection = Mage::getModel('sales/order')->getCollection()->addAttributeToFilter('increment_id', $idInc);
|
208 |
-
$order = $collection->getFirstItem();
|
209 |
-
|
210 |
$customerId = $order->getCustomerId();
|
211 |
$customerData = Mage::getModel('customer/customer')->load($customerId);
|
212 |
$dateCreated = $customerId ? date('Y/m/d h:m:s', $customerData->getCreatedAtTimestamp()) : null;
|
@@ -241,54 +257,56 @@ class Triggmine_IntegrationModule_Helper_Data extends Mage_Core_Helper_Abstract
|
|
241 |
if($item->getProductType() == "simple")
|
242 |
{
|
243 |
|
244 |
-
$catalogProduct
|
245 |
-
$productId
|
246 |
-
$productName
|
247 |
-
$productQty
|
248 |
-
$productImage = Mage::getModel('catalog/product')->load($productId)->getImageUrl();
|
249 |
|
250 |
if ($item->getParentItem())
|
251 |
{
|
252 |
$productPrice = $item->getParentItem()->getPrice();
|
253 |
$productTotalVal = $item->getParentItem()->getRowTotal();
|
254 |
$parentIds = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($productId);
|
255 |
-
$
|
|
|
|
|
|
|
256 |
}
|
257 |
else
|
258 |
{
|
259 |
$productPrice = $catalogProduct->getFinalPrice($item->getQtyOrdered());
|
260 |
$productTotalVal = $item->getRowTotal();
|
|
|
|
|
261 |
$categories = Mage::getModel('catalog/product')->load($productId)->getCategoryIds();
|
262 |
}
|
263 |
|
264 |
|
265 |
$itemData = array();
|
266 |
-
$itemData['product_id']
|
267 |
-
$itemData['product_name']
|
268 |
-
$itemData['product_desc']
|
269 |
-
$itemData['product_sku']
|
270 |
-
$itemData['product_image']
|
271 |
-
$itemData['product_url']
|
272 |
-
$itemData['product_qty']
|
273 |
-
$itemData['product_price']
|
274 |
$itemData['product_total_val'] = intval($productTotalVal);
|
275 |
$itemData['product_categories'] = array();
|
276 |
|
277 |
-
foreach ($categories as $categoryId)
|
278 |
-
|
279 |
$category = Mage::getModel('catalog/category')->load($categoryId);
|
280 |
$itemData['product_categories'][] = $category->getName();
|
281 |
}
|
282 |
|
283 |
$data['products'][] = $itemData;
|
284 |
-
|
285 |
}
|
286 |
else
|
287 |
{
|
288 |
continue;
|
289 |
}
|
290 |
}
|
291 |
-
|
292 |
return $data;
|
293 |
}
|
294 |
|
@@ -393,8 +411,8 @@ class Triggmine_IntegrationModule_Helper_Data extends Mage_Core_Helper_Abstract
|
|
393 |
"product_name" => $item->getName(),
|
394 |
"product_desc" => $item->getDescription(),
|
395 |
"product_sku" => $item->GetData('sku'),
|
396 |
-
"product_image" => $
|
397 |
-
"product_url" => $
|
398 |
"product_qty" => 1,
|
399 |
"product_price" => $item->getFinalPrice(),
|
400 |
"product_total_val" => $item->getPrice(),
|
@@ -498,19 +516,23 @@ class Triggmine_IntegrationModule_Helper_Data extends Mage_Core_Helper_Abstract
|
|
498 |
$productId = $catalogProduct->getId();
|
499 |
$productName = $catalogProduct->getName();
|
500 |
$productQty = $item->getQtyOrdered();
|
501 |
-
$productImage = Mage::getModel('catalog/product')->load($productId)->getImageUrl();
|
502 |
|
503 |
if ($item->getParentItem())
|
504 |
{
|
505 |
$productPrice = $item->getParentItem()->getPrice();
|
506 |
$productTotalVal = $item->getParentItem()->getRowTotal();
|
507 |
$parentIds = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($productId);
|
508 |
-
$
|
|
|
|
|
|
|
509 |
}
|
510 |
else
|
511 |
{
|
512 |
$productPrice = $catalogProduct->getFinalPrice($item->getQtyOrdered());
|
513 |
$productTotalVal = $item->getRowTotal();
|
|
|
|
|
514 |
$categories = Mage::getModel('catalog/product')->load($productId)->getCategoryIds();
|
515 |
}
|
516 |
|
@@ -521,7 +543,7 @@ class Triggmine_IntegrationModule_Helper_Data extends Mage_Core_Helper_Abstract
|
|
521 |
$itemData['product_desc'] = $catalogProduct->getDescription();
|
522 |
$itemData['product_sku'] = $item->GetData('sku');
|
523 |
$itemData['product_image'] = $productImage;
|
524 |
-
$itemData['product_url'] = $
|
525 |
$itemData['product_qty'] = round($productQty);
|
526 |
$itemData['product_price'] = intval($productPrice);
|
527 |
$itemData['product_total_val'] = intval($productTotalVal);
|
@@ -553,5 +575,4 @@ class Triggmine_IntegrationModule_Helper_Data extends Mage_Core_Helper_Abstract
|
|
553 |
{
|
554 |
return $this->apiClient($data, 'api/events/history');
|
555 |
}
|
556 |
-
|
557 |
}
|
10 |
const XML_PATH_EXPORT = 'triggmine/triggmine_export/export';
|
11 |
const XML_PATH_DATE_FROM = 'triggmine/triggmine_export/my_date_from';
|
12 |
const XML_PATH_DATE_TO = 'triggmine/triggmine_export/my_date_to';
|
13 |
+
const VERSION_PLUGIN = '3.0.8';
|
14 |
|
15 |
protected $_storeManager;
|
16 |
protected $_cartItemRepository;
|
94 |
{
|
95 |
return trim(preg_replace('/\s+/', ' ', $name));
|
96 |
}
|
97 |
+
|
98 |
+
public function getProdImg($product)
|
99 |
+
{
|
100 |
+
$url = false;
|
101 |
+
if ($image = $product->getImage())
|
102 |
+
{
|
103 |
+
$http = (isset($_SERVER['HTTPS']) || isset($_SERVER['HTTPS']) && isset($_SERVER['HTTPS']) == "on" || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
|
104 |
+
$url = $http . $_SERVER['SERVER_NAME'] . '/media/catalog/product' . $image;
|
105 |
+
}
|
106 |
+
return $url;
|
107 |
+
}
|
108 |
+
|
109 |
+
public function getProdUrl($product)
|
110 |
+
{
|
111 |
+
$url = false;
|
112 |
+
if ($path = $product->getUrlPath())
|
113 |
+
{
|
114 |
+
$http = (isset($_SERVER['HTTPS']) || isset($_SERVER['HTTPS']) && isset($_SERVER['HTTPS']) == "on" || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
|
115 |
+
$url = $http . $_SERVER['SERVER_NAME'] . '/index.php/' . $path;
|
116 |
+
}
|
117 |
+
return $url;
|
118 |
+
}
|
119 |
|
120 |
public function getCartData()
|
121 |
{
|
122 |
+
$cart = Mage::getSingleton('checkout/session');
|
123 |
+
$customer = Mage::getSingleton('customer/session');
|
124 |
+
$products = $cart->getQuote()->getItemsCollection();
|
|
|
|
|
125 |
$customerId = $customer->getCustomer()->getId();
|
126 |
$customerData = Mage::getModel('customer/customer')->load($customerId);
|
127 |
$dateCreated = $customerId ? date('Y/m/d h:m:s', $customerData->getCreatedAtTimestamp()) : null;
|
149 |
// to prevent duplicate entries for configurable product - consider only child simple products
|
150 |
if($product->getProductType() == "simple")
|
151 |
{
|
152 |
+
$catalogProduct = $product->getProduct();
|
153 |
+
$productId = $catalogProduct->getId();
|
154 |
+
$productName = $catalogProduct->getName();
|
155 |
+
$productPull = Mage::getModel('catalog/product')->load($productId);
|
156 |
+
$productDesc = $productPull->getDescription();
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
if ($product->getParentItem())
|
159 |
{
|
160 |
$productPrice = $product->getParentItem()->getPrice();
|
161 |
$productTotalVal = $product->getParentItem()->getRowTotal();
|
162 |
$parentIds = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($productId);
|
163 |
+
$parentItem = Mage::getModel('catalog/product')->load($parentIds[0]);
|
164 |
+
$productImage = $this->getProdImg($parentItem);
|
165 |
+
$productUrl = $this->getProdUrl($parentItem);
|
166 |
+
$categories = $parentItem->getCategoryIds();
|
167 |
$productQty = $product->getParentItem()->getQty();
|
168 |
}
|
169 |
else
|
171 |
$productPrice = $catalogProduct->getFinalPrice($product->getQty());
|
172 |
$productTotalVal = $product->getRowTotal();
|
173 |
$categories = Mage::getModel('catalog/product')->load($productId)->getCategoryIds();
|
174 |
+
$productImage = $this->getProdImg($productPull);
|
175 |
+
$productUrl = $this->getProdUrl($catalogProduct);
|
176 |
$productQty = $product->getQty();
|
177 |
}
|
178 |
|
179 |
$itemData = array();
|
180 |
+
$itemData['product_id'] = (string)$productId;
|
181 |
+
$itemData['product_name'] = $this->normalizeName($productName);
|
182 |
+
$itemData['product_desc'] = $productDesc;
|
183 |
+
$itemData['product_sku'] = $product->GetData('sku');
|
184 |
+
$itemData['product_image'] = $productImage;
|
185 |
+
$itemData['product_url'] = $productUrl;
|
186 |
+
$itemData['product_qty'] = $productQty;
|
187 |
+
$itemData['product_price'] = intval($productPrice);
|
188 |
+
$itemData['product_total_val'] = intval($productTotalVal);
|
189 |
|
190 |
$itemData['product_categories'] = array();
|
191 |
|
192 |
+
foreach ($categories as $categoryId)
|
193 |
+
{
|
194 |
$category = Mage::getModel('catalog/category')->load($categoryId);
|
195 |
$itemData['product_categories'][] = $category->getName();
|
196 |
}
|
197 |
|
198 |
$data['products'][] = $itemData;
|
|
|
199 |
}
|
200 |
else
|
201 |
{
|
218 |
|
219 |
public function getOrderData($observer)
|
220 |
{
|
221 |
+
$orderId = $observer->getEvent()->getOrder();
|
222 |
+
$id = $orderId->getId();
|
223 |
+
$idInc = $orderId->getIncrementId();
|
224 |
+
$collection = Mage::getModel('sales/order')->getCollection()->addAttributeToFilter('increment_id', $idInc);
|
225 |
+
$order = $collection->getFirstItem();
|
|
|
|
|
|
|
226 |
$customerId = $order->getCustomerId();
|
227 |
$customerData = Mage::getModel('customer/customer')->load($customerId);
|
228 |
$dateCreated = $customerId ? date('Y/m/d h:m:s', $customerData->getCreatedAtTimestamp()) : null;
|
257 |
if($item->getProductType() == "simple")
|
258 |
{
|
259 |
|
260 |
+
$catalogProduct = $item->getProduct();
|
261 |
+
$productId = $catalogProduct->getId();
|
262 |
+
$productName = $catalogProduct->getName();
|
263 |
+
$productQty = $item->getQtyOrdered();
|
|
|
264 |
|
265 |
if ($item->getParentItem())
|
266 |
{
|
267 |
$productPrice = $item->getParentItem()->getPrice();
|
268 |
$productTotalVal = $item->getParentItem()->getRowTotal();
|
269 |
$parentIds = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($productId);
|
270 |
+
$parentItem = Mage::getModel('catalog/product')->load($parentIds[0]);
|
271 |
+
$productImage = $this->getProdImg($parentItem);
|
272 |
+
$productUrl = $this->getProdUrl($parentItem);
|
273 |
+
$categories = $parentItem->getCategoryIds();
|
274 |
}
|
275 |
else
|
276 |
{
|
277 |
$productPrice = $catalogProduct->getFinalPrice($item->getQtyOrdered());
|
278 |
$productTotalVal = $item->getRowTotal();
|
279 |
+
$productImage = $this->getProdImg($catalogProduct);
|
280 |
+
$productUrl = $this->getProdUrl($catalogProduct);
|
281 |
$categories = Mage::getModel('catalog/product')->load($productId)->getCategoryIds();
|
282 |
}
|
283 |
|
284 |
|
285 |
$itemData = array();
|
286 |
+
$itemData['product_id'] = (string)$productId;
|
287 |
+
$itemData['product_name'] = $this->normalizeName($productName);
|
288 |
+
$itemData['product_desc'] = $catalogProduct->getDescription();
|
289 |
+
$itemData['product_sku'] = $item->GetData('sku');
|
290 |
+
$itemData['product_image'] = $productImage;
|
291 |
+
$itemData['product_url'] = $productUrl;
|
292 |
+
$itemData['product_qty'] = round($productQty);
|
293 |
+
$itemData['product_price'] = intval($productPrice);
|
294 |
$itemData['product_total_val'] = intval($productTotalVal);
|
295 |
$itemData['product_categories'] = array();
|
296 |
|
297 |
+
foreach ($categories as $categoryId)
|
298 |
+
{
|
299 |
$category = Mage::getModel('catalog/category')->load($categoryId);
|
300 |
$itemData['product_categories'][] = $category->getName();
|
301 |
}
|
302 |
|
303 |
$data['products'][] = $itemData;
|
|
|
304 |
}
|
305 |
else
|
306 |
{
|
307 |
continue;
|
308 |
}
|
309 |
}
|
|
|
310 |
return $data;
|
311 |
}
|
312 |
|
411 |
"product_name" => $item->getName(),
|
412 |
"product_desc" => $item->getDescription(),
|
413 |
"product_sku" => $item->GetData('sku'),
|
414 |
+
"product_image" => $this->getProdImg($item),
|
415 |
+
"product_url" => $this->getProdUrl($item),
|
416 |
"product_qty" => 1,
|
417 |
"product_price" => $item->getFinalPrice(),
|
418 |
"product_total_val" => $item->getPrice(),
|
516 |
$productId = $catalogProduct->getId();
|
517 |
$productName = $catalogProduct->getName();
|
518 |
$productQty = $item->getQtyOrdered();
|
|
|
519 |
|
520 |
if ($item->getParentItem())
|
521 |
{
|
522 |
$productPrice = $item->getParentItem()->getPrice();
|
523 |
$productTotalVal = $item->getParentItem()->getRowTotal();
|
524 |
$parentIds = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($productId);
|
525 |
+
$parentItem = Mage::getModel('catalog/product')->load($parentIds[0]);
|
526 |
+
$productImage = $this->getProdImg($parentItem);
|
527 |
+
$productUrl = $this->getProdUrl($parentItem);
|
528 |
+
$categories = $parentItem->getCategoryIds();
|
529 |
}
|
530 |
else
|
531 |
{
|
532 |
$productPrice = $catalogProduct->getFinalPrice($item->getQtyOrdered());
|
533 |
$productTotalVal = $item->getRowTotal();
|
534 |
+
$productImage = $this->getProdImg($catalogProduct);
|
535 |
+
$productUrl = $this->getProdUrl($catalogProduct);
|
536 |
$categories = Mage::getModel('catalog/product')->load($productId)->getCategoryIds();
|
537 |
}
|
538 |
|
543 |
$itemData['product_desc'] = $catalogProduct->getDescription();
|
544 |
$itemData['product_sku'] = $item->GetData('sku');
|
545 |
$itemData['product_image'] = $productImage;
|
546 |
+
$itemData['product_url'] = $productUrl;
|
547 |
$itemData['product_qty'] = round($productQty);
|
548 |
$itemData['product_price'] = intval($productPrice);
|
549 |
$itemData['product_total_val'] = intval($productTotalVal);
|
575 |
{
|
576 |
return $this->apiClient($data, 'api/events/history');
|
577 |
}
|
|
|
578 |
}
|
app/code/community/Triggmine/IntegrationModule/etc/adminhtml.xml
CHANGED
@@ -2,11 +2,11 @@
|
|
2 |
<config>
|
3 |
<menu>
|
4 |
<integrationmodule translate="title" module="integrationmodule">
|
5 |
-
<title>
|
6 |
<sort_order>1000</sort_order>
|
7 |
<children>
|
8 |
<integrationmodulebackend translate="title">
|
9 |
-
<title>
|
10 |
<action>integrationmodule/adminhtml_intmodulebackend</action>
|
11 |
</integrationmodulebackend>
|
12 |
</children>
|
@@ -24,7 +24,7 @@
|
|
24 |
<config>
|
25 |
<children>
|
26 |
<triggmine translate="title" module="integrationmodule">
|
27 |
-
<title>
|
28 |
<sort_order>600</sort_order>
|
29 |
</triggmine>
|
30 |
</children>
|
2 |
<config>
|
3 |
<menu>
|
4 |
<integrationmodule translate="title" module="integrationmodule">
|
5 |
+
<title>TriggMine</title>
|
6 |
<sort_order>1000</sort_order>
|
7 |
<children>
|
8 |
<integrationmodulebackend translate="title">
|
9 |
+
<title>TriggMine Settings</title>
|
10 |
<action>integrationmodule/adminhtml_intmodulebackend</action>
|
11 |
</integrationmodulebackend>
|
12 |
</children>
|
24 |
<config>
|
25 |
<children>
|
26 |
<triggmine translate="title" module="integrationmodule">
|
27 |
+
<title>TriggMine Section</title>
|
28 |
<sort_order>600</sort_order>
|
29 |
</triggmine>
|
30 |
</children>
|
app/code/community/Triggmine/IntegrationModule/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Triggmine_IntegrationModule>
|
5 |
-
<version>3.0.
|
6 |
</Triggmine_IntegrationModule>
|
7 |
</modules>
|
8 |
<global>
|
@@ -25,22 +25,26 @@
|
|
25 |
<catalog_controller_product_init>
|
26 |
<observers>
|
27 |
<send_page_init_observer>
|
28 |
-
<type>
|
29 |
<class>integrationmodule/observer</class>
|
30 |
<method>send_page_init</method>
|
31 |
</send_page_init_observer>
|
32 |
</observers>
|
33 |
</catalog_controller_product_init>
|
34 |
-
<
|
35 |
<observers>
|
36 |
-
<application_clean_cache_handler>
|
37 |
<type>model</type>
|
38 |
<class>integrationmodule/observer</class>
|
39 |
<method>diagnostic_information_updated</method>
|
40 |
-
<args></args>
|
41 |
</application_clean_cache_handler>
|
|
|
|
|
|
|
|
|
|
|
42 |
</observers>
|
43 |
-
</
|
44 |
<checkout_cart_add_product_complete> <!-- identifier of the event we want to catch -->
|
45 |
<observers>
|
46 |
<checkout_cart_add_product_complete_handler> <!-- identifier of the event handler -->
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Triggmine_IntegrationModule>
|
5 |
+
<version>3.0.8</version>
|
6 |
</Triggmine_IntegrationModule>
|
7 |
</modules>
|
8 |
<global>
|
25 |
<catalog_controller_product_init>
|
26 |
<observers>
|
27 |
<send_page_init_observer>
|
28 |
+
<type>model</type>
|
29 |
<class>integrationmodule/observer</class>
|
30 |
<method>send_page_init</method>
|
31 |
</send_page_init_observer>
|
32 |
</observers>
|
33 |
</catalog_controller_product_init>
|
34 |
+
<admin_system_config_changed_section_triggmine> <!-- identifier of the event we want to catch -->
|
35 |
<observers>
|
36 |
+
<application_clean_cache_handler>
|
37 |
<type>model</type>
|
38 |
<class>integrationmodule/observer</class>
|
39 |
<method>diagnostic_information_updated</method>
|
|
|
40 |
</application_clean_cache_handler>
|
41 |
+
<export_order_history_handler>
|
42 |
+
<type>model</type>
|
43 |
+
<class>integrationmodule/observer</class>
|
44 |
+
<method>export_order_history</method>
|
45 |
+
</export_order_history_handler>
|
46 |
</observers>
|
47 |
+
</admin_system_config_changed_section_triggmine>
|
48 |
<checkout_cart_add_product_complete> <!-- identifier of the event we want to catch -->
|
49 |
<observers>
|
50 |
<checkout_cart_add_product_complete_handler> <!-- identifier of the event handler -->
|
app/code/community/Triggmine/IntegrationModule/etc/system.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<sections>
|
4 |
<triggmine translate="label" module="integrationmodule">
|
5 |
-
<label>
|
6 |
<tab>general</tab>
|
7 |
<frontend_type>text</frontend_type>
|
8 |
<sort_order>600</sort_order>
|
@@ -11,7 +11,7 @@
|
|
11 |
<show_in_store>1</show_in_store>
|
12 |
<groups>
|
13 |
<settings translate="label">
|
14 |
-
<label>
|
15 |
<frontend_type>text</frontend_type>
|
16 |
<sort_order>10</sort_order>
|
17 |
<show_in_default>1</show_in_default>
|
@@ -19,7 +19,7 @@
|
|
19 |
<show_in_store>1</show_in_store>
|
20 |
<fields>
|
21 |
<is_on translate="label">
|
22 |
-
<label>Enable
|
23 |
<frontend_type>select</frontend_type>
|
24 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
25 |
<sort_order>10</sort_order>
|
@@ -28,7 +28,7 @@
|
|
28 |
<show_in_store>1</show_in_store>
|
29 |
</is_on>
|
30 |
<url_api translate="label">
|
31 |
-
<label>API</label>
|
32 |
<frontend_type>text</frontend_type>
|
33 |
<sort_order>40</sort_order>
|
34 |
<show_in_default>1</show_in_default>
|
@@ -37,7 +37,7 @@
|
|
37 |
<comment>Here...</comment>
|
38 |
</url_api>
|
39 |
<token translate="label">
|
40 |
-
<label>
|
41 |
<frontend_type>text</frontend_type>
|
42 |
<sort_order>50</sort_order>
|
43 |
<show_in_default>1</show_in_default>
|
2 |
<config>
|
3 |
<sections>
|
4 |
<triggmine translate="label" module="integrationmodule">
|
5 |
+
<label>TriggMine</label>
|
6 |
<tab>general</tab>
|
7 |
<frontend_type>text</frontend_type>
|
8 |
<sort_order>600</sort_order>
|
11 |
<show_in_store>1</show_in_store>
|
12 |
<groups>
|
13 |
<settings translate="label">
|
14 |
+
<label>TriggMine Settings</label>
|
15 |
<frontend_type>text</frontend_type>
|
16 |
<sort_order>10</sort_order>
|
17 |
<show_in_default>1</show_in_default>
|
19 |
<show_in_store>1</show_in_store>
|
20 |
<fields>
|
21 |
<is_on translate="label">
|
22 |
+
<label>Enable TriggMine</label>
|
23 |
<frontend_type>select</frontend_type>
|
24 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
25 |
<sort_order>10</sort_order>
|
28 |
<show_in_store>1</show_in_store>
|
29 |
</is_on>
|
30 |
<url_api translate="label">
|
31 |
+
<label>API URL</label>
|
32 |
<frontend_type>text</frontend_type>
|
33 |
<sort_order>40</sort_order>
|
34 |
<show_in_default>1</show_in_default>
|
37 |
<comment>Here...</comment>
|
38 |
</url_api>
|
39 |
<token translate="label">
|
40 |
+
<label>API key</label>
|
41 |
<frontend_type>text</frontend_type>
|
42 |
<sort_order>50</sort_order>
|
43 |
<show_in_default>1</show_in_default>
|
app/design/frontend/base/default/layout/triggmine_integrationmodule.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="3.0.
|
3 |
<default>
|
4 |
<reference name="before_body_end">
|
5 |
<block type="core/template" name="triggmine_init" after="-" template="triggmine/integrationmodule/init.phtml"/>
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="3.0.8">
|
3 |
<default>
|
4 |
<reference name="before_body_end">
|
5 |
<block type="core/template" name="triggmine_init" after="-" template="triggmine/integrationmodule/init.phtml"/>
|
app/etc/modules/Triggmine_IntegrationModule.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<Triggmine_IntegrationModule>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
-
<version>3.0.
|
8 |
</Triggmine_IntegrationModule>
|
9 |
</modules>
|
10 |
</config>
|
4 |
<Triggmine_IntegrationModule>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
+
<version>3.0.8</version>
|
8 |
</Triggmine_IntegrationModule>
|
9 |
</modules>
|
10 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>TriggMineCartRecovery</name>
|
4 |
-
<version>3.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/gpl-license.php">GPL</license>
|
7 |
<channel>community</channel>
|
@@ -14,9 +14,9 @@
|
|
14 |
- Fixed 404 error after installation
|
15 |
- Bug fixes and performance improvements</notes>
|
16 |
<authors><author><name>TriggMine</name><user>TriggMine</user><email>admin@triggmine.com</email></author></authors>
|
17 |
-
<date>
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir name="Triggmine"><dir name="IntegrationModule"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Date.php" hash="d6b04acde97c3ec4eb52179740e420cb"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.4.0</min><max>5.6.0</max></php></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>TriggMineCartRecovery</name>
|
4 |
+
<version>3.0.8</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/gpl-license.php">GPL</license>
|
7 |
<channel>community</channel>
|
14 |
- Fixed 404 error after installation
|
15 |
- Bug fixes and performance improvements</notes>
|
16 |
<authors><author><name>TriggMine</name><user>TriggMine</user><email>admin@triggmine.com</email></author></authors>
|
17 |
+
<date>2017-01-05</date>
|
18 |
+
<time>13:05:40</time>
|
19 |
+
<contents><target name="magecommunity"><dir name="Triggmine"><dir name="IntegrationModule"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><file name="Date.php" hash="d6b04acde97c3ec4eb52179740e420cb"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="3329346b5818e35df27079d5ed43b67c"/></dir><dir name="Model"><file name="Observer.php" hash="a95b79b25db187e52b59fb31029cb0a7"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IntmodulebackendController.php" hash="65549f09bc7c7a8f729e39ee18ed8439"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="8f5cb6516a0246d106b16d5e53f95789"/><file name="config.xml" hash="faff097a146edb4d3bc567485f939604"/><file name="system.xml" hash="ebe15d21c083c7bd0bb0520766819a7f"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="triggmine_integrationmodule.xml" hash="961c750f950e60dea35ed5c8dabe1b04"/></dir><dir name="template"><dir name="triggmine"><dir name="integrationmodule"><file name="init.phtml" hash="088f4b1efdbb774a020ebcb2d6405c86"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Triggmine_IntegrationModule.xml" hash="bd3af83a619e7475d6857af30ecb2238"/></dir></target><target name="mageweb"><dir name="js"><dir name="triggmine"><dir name="integationmodule"><dir name="scripts"><file name="client.min.js" hash="068c5c31adf266449d9de64f31772f55"/><file name="fingerprint2.min.js" hash="36b594aba875677b7ede86aa823b2493"/><file name="jscookie.min.js" hash="390302a82ecd74b0e39e2ff66eb23c13"/></dir></dir></dir></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.4.0</min><max>5.6.0</max></php></required></dependencies>
|
22 |
</package>
|