Version Notes
Update of Conversions API call
Download this release
Release Info
Developer | Web In Color |
Extension | TC_TagCommander |
Version | 1.0.2 |
Comparing to | |
See all releases |
Version 1.0.2
- app/code/community/TC/TagCommander/Helper/Data.php +82 -0
- app/code/community/TC/TagCommander/Model/Api/Engage.php +90 -0
- app/code/community/TC/TagCommander/Model/Customer/Api.php +61 -0
- app/code/community/TC/TagCommander/Model/Customer/Customer.php +42 -0
- app/code/community/TC/TagCommander/Model/Observer.php +47 -0
- app/code/community/TC/TagCommander/Model/Sales/Api.php +77 -0
- app/code/community/TC/TagCommander/Model/Sales/Order.php +44 -0
- app/code/community/TC/TagCommander/etc/config.xml +151 -0
- app/code/community/TC/TagCommander/etc/system.xml +170 -0
- app/code/community/TC/TagCommander/sql/tagcommander_setup/mysql4-install-1.0.0.php +34 -0
- app/design/adminhtml/default/default/layout/tagcommander.xml +36 -0
- app/etc/modules/TC_TagCommander.xml +9 -0
- app/locale/en_US/TC_TagCommander.csv +3 -0
- app/locale/fr_FR/TC_TagCommander.csv +3 -0
- package.xml +18 -0
- skin/adminhtml/default/default/tagcommander/css/styles.css +17 -0
- skin/adminhtml/default/default/tagcommander/images/logo.png +0 -0
app/code/community/TC/TagCommander/Helper/Data.php
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* TagCommander
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to licence@tagcommander.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category TagCommander
|
22 |
+
* @package TC_TagCommander
|
23 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Webincolor <contact@webincolor.fr>
|
26 |
+
*/
|
27 |
+
class TC_TagCommander_Helper_Data extends Mage_Core_Helper_Abstract {
|
28 |
+
|
29 |
+
const LOG_FILE = 'tagcommander.log';
|
30 |
+
|
31 |
+
const XML_CONFIG_TAGCOMMANDER_GENERAL_ID = 'tagcommander/general/id';
|
32 |
+
const XML_CONFIG_TAGCOMMANDER_GENERAL_TOKEN = 'tagcommander/general/token';
|
33 |
+
|
34 |
+
const XML_CONFIG_TAGCOMMANDER_ORDERS_ENABLE = 'tagcommander/orders/enable';
|
35 |
+
const XML_CONFIG_TAGCOMMANDER_ORDERS_STATUS = 'tagcommander/orders/status';
|
36 |
+
const XML_CONFIG_TAGCOMMANDER_ORDERS_START_FROM_ORDER_ID = 'tagcommander/orders/start_from_order_id';
|
37 |
+
const XML_CONFIG_TAGCOMMANDER_ORDERS_COMMENT = 'tagcommander/orders/comment';
|
38 |
+
const XML_CONFIG_TAGCOMMANDER_ORDERS_PAID = 'tagcommander/orders/paid';
|
39 |
+
|
40 |
+
const XML_CONFIG_TAGCOMMANDER_CUSTOMERS_ENABLE = 'tagcommander/orders/enable';
|
41 |
+
|
42 |
+
public function getId($storeId = null) {
|
43 |
+
return Mage::getStoreConfig(self::XML_CONFIG_TAGCOMMANDER_GENERAL_ID, $storeId);
|
44 |
+
}
|
45 |
+
|
46 |
+
public function getToken($storeId = null) {
|
47 |
+
return Mage::getStoreConfig(self::XML_CONFIG_TAGCOMMANDER_GENERAL_TOKEN, $storeId);
|
48 |
+
}
|
49 |
+
|
50 |
+
public function isOrdersEnable($storeId = null) {
|
51 |
+
return Mage::getStoreConfigFlag(self::XML_CONFIG_TAGCOMMANDER_ORDERS_ENABLE, $storeId);
|
52 |
+
}
|
53 |
+
|
54 |
+
public function getOrdersStatus($storeId = null) {
|
55 |
+
return Mage::getStoreConfig(self::XML_CONFIG_TAGCOMMANDER_ORDERS_STATUS, $storeId);
|
56 |
+
}
|
57 |
+
|
58 |
+
public function getStartFromOrderId($storeId = null) {
|
59 |
+
|
60 |
+
if ((int) Mage::getStoreConfig(self::XML_CONFIG_TAGCOMMANDER_ORDERS_START_FROM_ORDER_ID, $storeId) > 0) {
|
61 |
+
return (int) Mage::getStoreConfig(self::XML_CONFIG_TAGCOMMANDER_ORDERS_START_FROM_ORDER_ID, $storeId);
|
62 |
+
}
|
63 |
+
return 1;
|
64 |
+
}
|
65 |
+
|
66 |
+
public function isAddComment($storeId = null) {
|
67 |
+
return Mage::getStoreConfigFlag(self::XML_CONFIG_TAGCOMMANDER_ORDERS_COMMENT, $storeId);
|
68 |
+
}
|
69 |
+
|
70 |
+
public function isOrderPaid($storeId = null) {
|
71 |
+
return Mage::getStoreConfigFlag(self::XML_CONFIG_TAGCOMMANDER_ORDERS_PAID, $storeId);
|
72 |
+
}
|
73 |
+
|
74 |
+
public function isCustomersEnable($storeId = null) {
|
75 |
+
return Mage::getStoreConfigFlag(self::XML_CONFIG_TAGCOMMANDER_CUSTOMERS_ENABLE, $storeId);
|
76 |
+
}
|
77 |
+
|
78 |
+
public function _log($message) {
|
79 |
+
Mage::log($message, NULL, self::LOG_FILE);
|
80 |
+
}
|
81 |
+
|
82 |
+
}
|
app/code/community/TC/TagCommander/Model/Api/Engage.php
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* TagCommander
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to licence@tagcommander.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category TagCommander
|
22 |
+
* @package TC_TagCommander
|
23 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Webincolor <contact@webincolor.fr>
|
26 |
+
*/
|
27 |
+
class TC_TagCommander_Model_Api_Engage {
|
28 |
+
|
29 |
+
const URI = "https://api.commander1.com/engage";
|
30 |
+
|
31 |
+
public function putConversion($_data) {
|
32 |
+
|
33 |
+
$_path = 'conversion/';
|
34 |
+
|
35 |
+
return $this->call($_path, $_data);
|
36 |
+
}
|
37 |
+
|
38 |
+
public function putUser($_data) {
|
39 |
+
|
40 |
+
$_path = 'user/';
|
41 |
+
|
42 |
+
$opt_params = array(
|
43 |
+
'user_id' => $_data['entity_id'],
|
44 |
+
);
|
45 |
+
|
46 |
+
return $this->call($_path, $_data,$opt_params);
|
47 |
+
}
|
48 |
+
|
49 |
+
private function call($path, array $data,array $opt_params = array()) {
|
50 |
+
|
51 |
+
$url = self::URI . DS . $path;
|
52 |
+
|
53 |
+
try {
|
54 |
+
|
55 |
+
$params = array(
|
56 |
+
'site' => Mage::helper('tagcommander')->getId(),
|
57 |
+
'token' => Mage::helper('tagcommander')->getToken(),
|
58 |
+
);
|
59 |
+
|
60 |
+
$params = array_merge($opt_params,$params);
|
61 |
+
|
62 |
+
$url = $url . "?" . http_build_query($params);
|
63 |
+
|
64 |
+
$client = new Zend_Http_Client($url, array(
|
65 |
+
'maxredirects' => 0,
|
66 |
+
'timeout' => 5,
|
67 |
+
'keepalive' => 1,
|
68 |
+
));
|
69 |
+
|
70 |
+
$json = Mage::helper('core')->jsonEncode($data);
|
71 |
+
$client->setRawData($json, 'application/json');
|
72 |
+
|
73 |
+
$response = $client->request('PUT');
|
74 |
+
$result = Zend_Json::decode($response->getBody());
|
75 |
+
|
76 |
+
if($result['success'] == true){
|
77 |
+
return true;
|
78 |
+
} else {
|
79 |
+
return $response->getStatus().' '.$response->getMessage();
|
80 |
+
}
|
81 |
+
|
82 |
+
} catch (Exception $e) {
|
83 |
+
|
84 |
+
Mage::helper('tagcommander')->_log($e->getMessage());
|
85 |
+
return $e->getMessage();
|
86 |
+
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
}
|
app/code/community/TC/TagCommander/Model/Customer/Api.php
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* TagCommander
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to licence@tagcommander.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category TagCommander
|
22 |
+
* @package TC_TagCommander
|
23 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Webincolor <contact@webincolor.fr>
|
26 |
+
*/
|
27 |
+
class TC_TagCommander_Model_Customer_Api {
|
28 |
+
|
29 |
+
public function send() {
|
30 |
+
|
31 |
+
try {
|
32 |
+
|
33 |
+
$i = 0;
|
34 |
+
foreach (Mage::getModel('tagcommander/customer_customer')->getCustomersToProcess() as $userId) {
|
35 |
+
$user = Mage::getModel('customer/customer')->load($userId);
|
36 |
+
$data = array();
|
37 |
+
|
38 |
+
// Get Order infos
|
39 |
+
$data = $user->getData();
|
40 |
+
unset($data['password_hash']);
|
41 |
+
$data['billing_address'] = $user->getDefaultBillingAddress()->getData();
|
42 |
+
$data['shipping_address'] = $user->getDefaultShippingAddress()->getData();
|
43 |
+
|
44 |
+
$response = Mage::getSingleton('tagcommander/api_engage')->putUser($data);
|
45 |
+
|
46 |
+
|
47 |
+
if ($response == 1) {
|
48 |
+
$i++;
|
49 |
+
} else {
|
50 |
+
Mage::throwException($response);
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
return Mage::helper('tagcommander')->__('%s users processed', $i);
|
55 |
+
} catch (Exception $e) {
|
56 |
+
Mage::helper('tagcommander')->_log($e->getMessage());
|
57 |
+
return $e->getMessage();
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
}
|
app/code/community/TC/TagCommander/Model/Customer/Customer.php
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* TagCommander
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to licence@tagcommander.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category TagCommander
|
22 |
+
* @package TC_TagCommander
|
23 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Webincolor <contact@webincolor.fr>
|
26 |
+
*/
|
27 |
+
class TC_TagCommander_Model_Customer_Customer {
|
28 |
+
|
29 |
+
public function getCustomersToProcess() {
|
30 |
+
try {
|
31 |
+
|
32 |
+
return Mage::getModel('customer/customer')->getCollection()
|
33 |
+
->addAttributeToFilter('updated_at', array('gteq' => date('Y-m-d H:i',strtotime('-70 minutes'))))
|
34 |
+
->getAllIds();
|
35 |
+
|
36 |
+
} catch (Exception $e) {
|
37 |
+
|
38 |
+
Mage::helper('tagcommander')->_log($e->getMessage());
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
}
|
app/code/community/TC/TagCommander/Model/Observer.php
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* TagCommander
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to licence@tagcommander.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category TagCommander
|
22 |
+
* @package TC_TagCommander
|
23 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Webincolor <contact@webincolor.fr>
|
26 |
+
*/
|
27 |
+
class TC_TagCommander_Model_Observer {
|
28 |
+
|
29 |
+
public function sendOrders() {
|
30 |
+
|
31 |
+
// Check if Send Orders Enable
|
32 |
+
if (!Mage::helper('tagcommander')->isOrdersEnable())
|
33 |
+
return 'disable';
|
34 |
+
|
35 |
+
return Mage::getModel('tagcommander/sales_api')->send();
|
36 |
+
}
|
37 |
+
|
38 |
+
public function sendUsers() {
|
39 |
+
|
40 |
+
// Check if Send Orders Enable
|
41 |
+
if (!Mage::helper('tagcommander')->isCustomersEnable())
|
42 |
+
return 'disable';
|
43 |
+
|
44 |
+
return Mage::getModel('tagcommander/customer_api')->send();
|
45 |
+
}
|
46 |
+
|
47 |
+
}
|
app/code/community/TC/TagCommander/Model/Sales/Api.php
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* TagCommander
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to licence@tagcommander.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category TagCommander
|
22 |
+
* @package TC_TagCommander
|
23 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Webincolor <contact@webincolor.fr>
|
26 |
+
*/
|
27 |
+
class TC_TagCommander_Model_Sales_Api {
|
28 |
+
|
29 |
+
public function send() {
|
30 |
+
|
31 |
+
try {
|
32 |
+
|
33 |
+
$i = 0;
|
34 |
+
foreach (Mage::getModel('tagcommander/sales_order')->getOrdersToProcess() as $orderId) {
|
35 |
+
$order = Mage::getModel('sales/order')->load($orderId);
|
36 |
+
$data = array();
|
37 |
+
|
38 |
+
// Check if order is paid.
|
39 |
+
if (Mage::helper('tagcommander')->isOrderPaid() && $order->getBaseTotalDue() > 0)
|
40 |
+
continue;
|
41 |
+
|
42 |
+
// Get Order infos
|
43 |
+
$data = $order->getData();
|
44 |
+
$data['billing_address'] = $order->getBillingAddress()->getData();
|
45 |
+
$data['shipping_address'] = $order->getShippingAddress()->getData();
|
46 |
+
|
47 |
+
//get Order items
|
48 |
+
foreach ($order->getAllItems() as $item) {
|
49 |
+
$data['items'][] = $item->getData();
|
50 |
+
}
|
51 |
+
|
52 |
+
$response = Mage::getSingleton('tagcommander/api_engage')->putConversion($data);
|
53 |
+
|
54 |
+
if ($response == 1) {
|
55 |
+
|
56 |
+
$order->setData('tagcommander_at', date("Y-m-d H:i:s", Mage::getModel('core/date')->timestamp(time())));
|
57 |
+
|
58 |
+
if (Mage::helper('tagcommander')->isAddComment()) {
|
59 |
+
$comment = Mage::helper('tagcommander')->__('<strong>TagCommander</strong>: Order sent.');
|
60 |
+
$order->setState($order->getState(), $order->getStatus(), $comment, false);
|
61 |
+
}
|
62 |
+
|
63 |
+
$order->save();
|
64 |
+
$i++;
|
65 |
+
} else {
|
66 |
+
Mage::throwException($response);
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
+
return Mage::helper('tagcommander')->__('%s orders processed', $i);
|
71 |
+
} catch (Exception $e) {
|
72 |
+
Mage::helper('tagcommander')->_log($e->getMessage());
|
73 |
+
return $e->getMessage();
|
74 |
+
}
|
75 |
+
}
|
76 |
+
|
77 |
+
}
|
app/code/community/TC/TagCommander/Model/Sales/Order.php
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* TagCommander
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to licence@tagcommander.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category TagCommander
|
22 |
+
* @package TC_TagCommander
|
23 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Webincolor <contact@webincolor.fr>
|
26 |
+
*/
|
27 |
+
class TC_TagCommander_Model_Sales_Order {
|
28 |
+
|
29 |
+
public function getOrdersToProcess() {
|
30 |
+
try {
|
31 |
+
|
32 |
+
return Mage::getModel('sales/order')->getCollection()
|
33 |
+
->addAttributeToFilter('status', Mage::helper('tagcommander')->getOrdersStatus())
|
34 |
+
->addAttributeToFilter('entity_id', array('gteq' => Mage::helper('tagcommander')->getStartFromOrderId()))
|
35 |
+
->addAttributeToFilter('tagcommander_at', array('null' => true))
|
36 |
+
->getAllIds();
|
37 |
+
|
38 |
+
} catch (Exception $e) {
|
39 |
+
|
40 |
+
Mage::helper('tagcommander')->_log($e->getMessage());
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
}
|
app/code/community/TC/TagCommander/etc/config.xml
ADDED
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" ?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* TagCommander
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to licence@tagcommander.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category TagCommander
|
22 |
+
* @package TC_TagCommander
|
23 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Webincolor <contact@webincolor.fr>
|
26 |
+
*/
|
27 |
+
-->
|
28 |
+
<config>
|
29 |
+
<modules>
|
30 |
+
<TC_TagCommander>
|
31 |
+
<version>1.0.2</version>
|
32 |
+
</TC_TagCommander>
|
33 |
+
</modules>
|
34 |
+
<global>
|
35 |
+
<blocks>
|
36 |
+
<tagcommander>
|
37 |
+
<class>TC_TagCommander_Block</class>
|
38 |
+
</tagcommander>
|
39 |
+
</blocks>
|
40 |
+
<helpers>
|
41 |
+
<tagcommander>
|
42 |
+
<class>TC_TagCommander_Helper</class>
|
43 |
+
</tagcommander>
|
44 |
+
</helpers>
|
45 |
+
<models>
|
46 |
+
<tagcommander>
|
47 |
+
<class>TC_TagCommander_Model</class>
|
48 |
+
</tagcommander>
|
49 |
+
</models>
|
50 |
+
<resources>
|
51 |
+
<tagcommander_setup>
|
52 |
+
<setup>
|
53 |
+
<module>TC_TagCommander</module>
|
54 |
+
<class>Mage_Sales_Model_Mysql4_Setup</class>
|
55 |
+
</setup>
|
56 |
+
<connection>
|
57 |
+
<use>core_setup</use>
|
58 |
+
</connection>
|
59 |
+
</tagcommander_setup>
|
60 |
+
<tagcommander_write>
|
61 |
+
<connection>
|
62 |
+
<use>core_write</use>
|
63 |
+
</connection>
|
64 |
+
</tagcommander_write>
|
65 |
+
<tagcommander_read>
|
66 |
+
<connection>
|
67 |
+
<use>core_read</use>
|
68 |
+
</connection>
|
69 |
+
</tagcommander_read>
|
70 |
+
</resources>
|
71 |
+
</global>
|
72 |
+
<adminhtml>
|
73 |
+
<translate>
|
74 |
+
<modules>
|
75 |
+
<tagcommander>
|
76 |
+
<files>
|
77 |
+
<default>TC_TagCommander.csv</default>
|
78 |
+
</files>
|
79 |
+
</tagcommander>
|
80 |
+
</modules>
|
81 |
+
</translate>
|
82 |
+
<layout>
|
83 |
+
<updates>
|
84 |
+
<tagcommander>
|
85 |
+
<file>tagcommander.xml</file>
|
86 |
+
</tagcommander>
|
87 |
+
</updates>
|
88 |
+
</layout>
|
89 |
+
<acl>
|
90 |
+
<resources>
|
91 |
+
<all>
|
92 |
+
<title>Allow Everything</title>
|
93 |
+
</all>
|
94 |
+
<admin>
|
95 |
+
<children>
|
96 |
+
<system>
|
97 |
+
<children>
|
98 |
+
<config>
|
99 |
+
<children>
|
100 |
+
<tagcommander translate="title">
|
101 |
+
<title>TagCommander</title>
|
102 |
+
<sort_order>110</sort_order>
|
103 |
+
</tagcommander>
|
104 |
+
</children>
|
105 |
+
</config>
|
106 |
+
</children>
|
107 |
+
</system>
|
108 |
+
</children>
|
109 |
+
</admin>
|
110 |
+
</resources>
|
111 |
+
</acl>
|
112 |
+
</adminhtml>
|
113 |
+
<crontab>
|
114 |
+
<jobs>
|
115 |
+
<tagcommander_conversion>
|
116 |
+
<schedule>
|
117 |
+
<cron_expr>20 * * * *</cron_expr>
|
118 |
+
</schedule>
|
119 |
+
<run>
|
120 |
+
<model>tagcommander/observer::sendOrders</model>
|
121 |
+
</run>
|
122 |
+
</tagcommander_conversion>
|
123 |
+
<tagcommander_users>
|
124 |
+
<schedule>
|
125 |
+
<cron_expr>10 * * * *</cron_expr>
|
126 |
+
</schedule>
|
127 |
+
<run>
|
128 |
+
<model>tagcommander/observer::sendUsers</model>
|
129 |
+
</run>
|
130 |
+
</tagcommander_users>
|
131 |
+
</jobs>
|
132 |
+
</crontab>
|
133 |
+
<default>
|
134 |
+
<tagcommander>
|
135 |
+
<general>
|
136 |
+
<id>2341</id>
|
137 |
+
<token>QRvTIcnZ7WF0fl4rtA632s0Wb88X8755</token>
|
138 |
+
</general>
|
139 |
+
<orders>
|
140 |
+
<enable>1</enable>
|
141 |
+
<status>processing</status>
|
142 |
+
<start_from_order_id>1</start_from_order_id>
|
143 |
+
<comment>1</comment>
|
144 |
+
<paid>1</paid>
|
145 |
+
</orders>
|
146 |
+
<customers>
|
147 |
+
<enable>1</enable>
|
148 |
+
</customers>
|
149 |
+
</tagcommander>
|
150 |
+
</default>
|
151 |
+
</config>
|
app/code/community/TC/TagCommander/etc/system.xml
ADDED
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* TagCommander
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to licence@tagcommander.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category TagCommander
|
22 |
+
* @package TC_TagCommander
|
23 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Webincolor <contact@webincolor.fr>
|
26 |
+
*/
|
27 |
+
-->
|
28 |
+
<config>
|
29 |
+
<tabs>
|
30 |
+
<tagcommander>
|
31 |
+
<label>TagCommander</label>
|
32 |
+
<sort_order>401</sort_order>
|
33 |
+
<class>tagcommander</class>
|
34 |
+
</tagcommander>
|
35 |
+
</tabs>
|
36 |
+
<sections>
|
37 |
+
<tagcommander>
|
38 |
+
<label>TagCommander</label>
|
39 |
+
<tab>tagcommander</tab>
|
40 |
+
<class>tagcommander-section</class>
|
41 |
+
<header_css>tagcommander-header</header_css>
|
42 |
+
<frontend_type>text</frontend_type>
|
43 |
+
<sort_order>10</sort_order>
|
44 |
+
<show_in_default>1</show_in_default>
|
45 |
+
<show_in_website>0</show_in_website>
|
46 |
+
<show_in_store>0</show_in_store>
|
47 |
+
<groups>
|
48 |
+
<general translate="label">
|
49 |
+
<label>General</label>
|
50 |
+
<expanded>1</expanded>
|
51 |
+
<sort_order>1</sort_order>
|
52 |
+
<show_in_default>1</show_in_default>
|
53 |
+
<show_in_website>0</show_in_website>
|
54 |
+
<show_in_store>0</show_in_store>
|
55 |
+
<fields>
|
56 |
+
<id translate="label">
|
57 |
+
<label>TagCommander Id.</label>
|
58 |
+
<frontend_type>text</frontend_type>
|
59 |
+
<sort_order>10</sort_order>
|
60 |
+
<show_in_default>1</show_in_default>
|
61 |
+
<show_in_website>0</show_in_website>
|
62 |
+
<show_in_store>0</show_in_store>
|
63 |
+
<validate>required-entry</validate>
|
64 |
+
</id>
|
65 |
+
<token translate="label">
|
66 |
+
<label>Token</label>
|
67 |
+
<frontend_type>text</frontend_type>
|
68 |
+
<sort_order>11</sort_order>
|
69 |
+
<show_in_default>1</show_in_default>
|
70 |
+
<show_in_website>0</show_in_website>
|
71 |
+
<show_in_store>0</show_in_store>
|
72 |
+
<validate>required-entry</validate>
|
73 |
+
</token>
|
74 |
+
</fields>
|
75 |
+
</general>
|
76 |
+
<orders translate="label">
|
77 |
+
<label>Orders</label>
|
78 |
+
<expanded>1</expanded>
|
79 |
+
<sort_order>2</sort_order>
|
80 |
+
<show_in_default>1</show_in_default>
|
81 |
+
<show_in_website>0</show_in_website>
|
82 |
+
<show_in_store>0</show_in_store>
|
83 |
+
<fields>
|
84 |
+
<enable translate="label">
|
85 |
+
<label>Enabled</label>
|
86 |
+
<frontend_type>select</frontend_type>
|
87 |
+
<sort_order>20</sort_order>
|
88 |
+
<show_in_default>1</show_in_default>
|
89 |
+
<show_in_website>0</show_in_website>
|
90 |
+
<show_in_store>0</show_in_store>
|
91 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
92 |
+
</enable>
|
93 |
+
<status translate="label comment">
|
94 |
+
<label>Export Statuts</label>
|
95 |
+
<frontend_type>select</frontend_type>
|
96 |
+
<sort_order>21</sort_order>
|
97 |
+
<show_in_default>1</show_in_default>
|
98 |
+
<show_in_website>0</show_in_website>
|
99 |
+
<show_in_store>0</show_in_store>
|
100 |
+
<comment>Select Order status to export</comment>
|
101 |
+
<depends>
|
102 |
+
<enable>1</enable>
|
103 |
+
</depends>
|
104 |
+
<source_model>adminhtml/system_config_source_order_status</source_model>
|
105 |
+
<validate>validate-select</validate>
|
106 |
+
</status>
|
107 |
+
<start_from_order_id translate="label comment">
|
108 |
+
<label>Start from Order Id</label>
|
109 |
+
<frontend_type>text</frontend_type>
|
110 |
+
<sort_order>22</sort_order>
|
111 |
+
<show_in_default>1</show_in_default>
|
112 |
+
<show_in_website>0</show_in_website>
|
113 |
+
<show_in_store>0</show_in_store>
|
114 |
+
<depends>
|
115 |
+
<enable>1</enable>
|
116 |
+
</depends>
|
117 |
+
<comment>Please specify from which order_id (included) (DB Id - visible in URL), it should start sending the orders.</comment>
|
118 |
+
<validate>validate-digits</validate>
|
119 |
+
</start_from_order_id>
|
120 |
+
<comment translate="label comment">
|
121 |
+
<label>Add a comment in Order History</label>
|
122 |
+
<frontend_type>select</frontend_type>
|
123 |
+
<sort_order>23</sort_order>
|
124 |
+
<show_in_default>1</show_in_default>
|
125 |
+
<show_in_website>0</show_in_website>
|
126 |
+
<show_in_store>0</show_in_store>
|
127 |
+
<depends>
|
128 |
+
<enable>1</enable>
|
129 |
+
</depends>
|
130 |
+
<comment>Would you like a comment to be added to each order when sent ?</comment>
|
131 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
132 |
+
</comment>
|
133 |
+
<paid translate="label comment">
|
134 |
+
<label>Check if order is paid ?</label>
|
135 |
+
<frontend_type>select</frontend_type>
|
136 |
+
<sort_order>24</sort_order>
|
137 |
+
<show_in_default>1</show_in_default>
|
138 |
+
<show_in_website>0</show_in_website>
|
139 |
+
<show_in_store>0</show_in_store>
|
140 |
+
<depends>
|
141 |
+
<enable>1</enable>
|
142 |
+
</depends>
|
143 |
+
<comment>Before sending orders, do you need them to be paid ?</comment>
|
144 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
145 |
+
</paid>
|
146 |
+
</fields>
|
147 |
+
</orders>
|
148 |
+
<customers translate="label">
|
149 |
+
<label>Customers</label>
|
150 |
+
<expanded>1</expanded>
|
151 |
+
<sort_order>3</sort_order>
|
152 |
+
<show_in_default>1</show_in_default>
|
153 |
+
<show_in_website>0</show_in_website>
|
154 |
+
<show_in_store>0</show_in_store>
|
155 |
+
<fields>
|
156 |
+
<enable translate="label">
|
157 |
+
<label>Enabled</label>
|
158 |
+
<frontend_type>select</frontend_type>
|
159 |
+
<sort_order>30</sort_order>
|
160 |
+
<show_in_default>1</show_in_default>
|
161 |
+
<show_in_website>0</show_in_website>
|
162 |
+
<show_in_store>0</show_in_store>
|
163 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
164 |
+
</enable>
|
165 |
+
</fields>
|
166 |
+
</customers>
|
167 |
+
</groups>
|
168 |
+
</tagcommander>
|
169 |
+
</sections>
|
170 |
+
</config>
|
app/code/community/TC/TagCommander/sql/tagcommander_setup/mysql4-install-1.0.0.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* TagCommander
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to licence@tagcommander.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
18 |
+
* versions in the future.
|
19 |
+
*
|
20 |
+
* @category TagCommander
|
21 |
+
* @package TC_TagCommander
|
22 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
23 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
24 |
+
* @author Webincolor <contact@webincolor.fr>
|
25 |
+
*/
|
26 |
+
|
27 |
+
$installer = $this;
|
28 |
+
|
29 |
+
$installer->startSetup();
|
30 |
+
|
31 |
+
$installer->addAttribute("order", "tagcommander_at", array("type"=>"timestamp"));
|
32 |
+
|
33 |
+
|
34 |
+
$installer->endSetup();
|
app/design/adminhtml/default/default/layout/tagcommander.xml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* TagCommander
|
5 |
+
*
|
6 |
+
* NOTICE OF LICENSE
|
7 |
+
*
|
8 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
9 |
+
* that is bundled with this package in the file LICENSE.txt.
|
10 |
+
* It is also available through the world-wide-web at this URL:
|
11 |
+
* http://opensource.org/licenses/osl-3.0.php
|
12 |
+
* If you did not receive a copy of the license and are unable to
|
13 |
+
* obtain it through the world-wide-web, please send an email
|
14 |
+
* to hello@tagcommander.io so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
* DISCLAIMER
|
17 |
+
*
|
18 |
+
* Do not edit or add to this file if you wish to upgrade Tenbucks to newer
|
19 |
+
* versions in the future.
|
20 |
+
*
|
21 |
+
* @category TagCommander
|
22 |
+
* @package TC_TagCommander
|
23 |
+
* @copyright Copyright (c) 2016 TagCommander (http://www.tagcommander.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
* @author Webincolor <contact@webincolor.fr>
|
26 |
+
*/
|
27 |
+
-->
|
28 |
+
<layout version="0.1.0">
|
29 |
+
<default>
|
30 |
+
<reference name="head">
|
31 |
+
<action method="addCss">
|
32 |
+
<name>tagcommander/css/styles.css</name>
|
33 |
+
</action>
|
34 |
+
</reference>
|
35 |
+
</default>
|
36 |
+
</layout>
|
app/etc/modules/TC_TagCommander.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<TC_TagCommander>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</TC_TagCommander>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/locale/en_US/TC_TagCommander.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
"<strong>TagCommander</strong>: Order sent.","<strong>TagCommander</strong>: Order sent."
|
2 |
+
"%s orders processed","%s orders processed"
|
3 |
+
"Orders","Orders"
|
app/locale/fr_FR/TC_TagCommander.csv
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
"<strong>TagCommander</strong>: Order sent.","<strong>TagCommander</strong>: La commande a été transmise."
|
2 |
+
"%s orders processed","%s commandes traitées"
|
3 |
+
"Orders","Commandes"
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>TC_TagCommander</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">The Open Software License 3.0 (OSL-3.0)</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>TagCommander (Enterprise Tag and Data Management System)</summary>
|
10 |
+
<description>TagCommander’s real-time marketing hub allows marketers to manage the deployment lifecycle and data of over 800 marketing solutions with point-and-click simplicity.</description>
|
11 |
+
<notes>Update of Conversions API call</notes>
|
12 |
+
<authors><author><name>Web In Color</name><user>webincolor</user><email>contact@webincolor.fr</email></author></authors>
|
13 |
+
<date>2016-04-14</date>
|
14 |
+
<time>13:14:05</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="TC"><dir name="TagCommander"><dir name="Helper"><file name="Data.php" hash="f70b2ab04cdd7f0bfa7187c8fd1f2bbb"/></dir><dir name="Model"><dir name="Api"><file name="Engage.php" hash="1cb5bd37097412ee1e55f290dc3a8eb3"/></dir><dir name="Customer"><file name="Api.php" hash="c38d3e383881900cf7182d4a3d6b0e91"/><file name="Customer.php" hash="a661087159744b02e5c7e0016cce5e27"/></dir><file name="Observer.php" hash="ec4eba24f62612be6549cf00f5c949ee"/><dir name="Sales"><file name="Api.php" hash="c0d77badbee2dbd17b58e5b979508b54"/><file name="Order.php" hash="995daa519ea73a51613582807edc852d"/></dir></dir><dir name="etc"><file name="config.xml" hash="b9c25bc59601112f2e8c2cdc5a4cd6cb"/><file name="system.xml" hash="d2ae6c8e8537d5a4e5bf906f4b1e64ca"/></dir><dir name="sql"><dir name="tagcommander_setup"><file name="mysql4-install-1.0.0.php" hash="d35a6f4090b61237b34ac99ba5be143d"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="TC_TagCommander.xml" hash="c3c61d322c9051ab4f1b07e376f1e109"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="tagcommander.xml" hash="c603555171a2646875ea67102c5d7270"/></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="TC_TagCommander.csv" hash="57f3491b821d826096c62a767a7de9e9"/></dir><dir name="fr_FR"><file name="TC_TagCommander.csv" hash="31551547d156c952055b6c5a821caea4"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="tagcommander"><dir><dir name="css"><file name="styles.css" hash="e4ef9f3df639a58c6ba0d8c66e8a7775"/></dir><dir name="images"><file name="logo.png" hash="38d58ead9c7d6b99936519f70c34d80f"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.1.0</min><max>7.2.0</max></php></required></dependencies>
|
18 |
+
</package>
|
skin/adminhtml/default/default/tagcommander/css/styles.css
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
h3.tagcommander-header { background: url(../images/logo.png) no-repeat 0 0;height: 0;overflow: hidden;padding: 50px 0 0;background-size: 100%; width: 180px;}
|
2 |
+
ul.tabs a.tagcommander-section, ul.tabs a.tagcommander-section:hover{
|
3 |
+
background: url(../../images/tabs_span_bg.gif) repeat-x 0 100%;
|
4 |
+
border-bottom: none;
|
5 |
+
padding: 0.5em 0.5em 0.28em 1.5em;
|
6 |
+
}
|
7 |
+
ul.tabs a.tagcommander-section:hover { background-color:#d8e6e6; }
|
8 |
+
ul.tabs a.tagcommander-section.active, ul.tabs a.tagcommander-section.active:hover { background-color:#fff; }
|
9 |
+
|
10 |
+
ul.tabs a.tagcommander-section span, ul.tabs a.tagcommander-section:hover span {
|
11 |
+
background: url(../images/logo.png) no-repeat;
|
12 |
+
background-size: 100%;
|
13 |
+
height: 0;
|
14 |
+
width: 90px;
|
15 |
+
overflow: hidden;
|
16 |
+
padding: 29px 0 0;
|
17 |
+
}
|
skin/adminhtml/default/default/tagcommander/images/logo.png
ADDED
Binary file
|