Version Notes
Plugin for Magento allows you to integrate your magento shop easily with eKomi system to collect verified order and/or product base reviews.
Download this release
Release Info
Developer | Heinz Schrader |
Extension | eKomi_integration |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/Ekomi/EkomiIntegration/Helper/Data.php +47 -47
- app/code/community/Ekomi/EkomiIntegration/Model/Observer.php +109 -54
- app/code/community/Ekomi/EkomiIntegration/Model/Validate.php +73 -44
- app/code/community/Ekomi/EkomiIntegration/etc/config.xml +56 -56
- app/code/community/Ekomi/EkomiIntegration/etc/system.xml +91 -88
- app/etc/modules/Ekomi_EkomiIntegration.xml +29 -29
- package.xml +9 -22
app/code/community/Ekomi/EkomiIntegration/Helper/Data.php
CHANGED
@@ -1,47 +1,47 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*/
|
15 |
-
class Ekomi_EkomiIntegration_Helper_Data extends Mage_Core_Helper_Abstract
|
16 |
-
{
|
17 |
-
const XML_PATH_ACTIVE = 'ekomitab/ekomi_ekomiIntegration/active';
|
18 |
-
const
|
19 |
-
const XML_PATH_SHOP_ID = 'ekomitab/ekomi_ekomiIntegration/shop_id';
|
20 |
-
const XML_PATH_SHOP_PASSWORD = 'ekomitab/ekomi_ekomiIntegration/shop_password';
|
21 |
-
const XML_PATH_DEBUG_RESULT= 'ekomitab/ekomi_ekomiIntegration/debug_result';
|
22 |
-
|
23 |
-
public function isModuleEnabled($store = null)
|
24 |
-
{
|
25 |
-
return Mage::getStoreConfig(self::XML_PATH_ACTIVE, $store);
|
26 |
-
}
|
27 |
-
|
28 |
-
public function
|
29 |
-
{
|
30 |
-
return Mage::getStoreConfig(self::
|
31 |
-
}
|
32 |
-
|
33 |
-
public function getShopId($store = null)
|
34 |
-
{
|
35 |
-
return Mage::getStoreConfig(self::XML_PATH_SHOP_ID, $store);
|
36 |
-
}
|
37 |
-
|
38 |
-
public function getShopPassword($store = null)
|
39 |
-
{
|
40 |
-
return Mage::getStoreConfig(self::XML_PATH_SHOP_PASSWORD, $store);
|
41 |
-
}
|
42 |
-
|
43 |
-
public function getDebugResult($store = null)
|
44 |
-
{
|
45 |
-
return Mage::getStoreConfig(self::XML_PATH_DEBUG_RESULT, $store);
|
46 |
-
}
|
47 |
-
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*/
|
15 |
+
class Ekomi_EkomiIntegration_Helper_Data extends Mage_Core_Helper_Abstract
|
16 |
+
{
|
17 |
+
const XML_PATH_ACTIVE = 'ekomitab/ekomi_ekomiIntegration/active';
|
18 |
+
const XML_PATH_PRODUCT_REVIEWS = 'ekomitab/ekomi_ekomiIntegration/product_reviews';
|
19 |
+
const XML_PATH_SHOP_ID = 'ekomitab/ekomi_ekomiIntegration/shop_id';
|
20 |
+
const XML_PATH_SHOP_PASSWORD = 'ekomitab/ekomi_ekomiIntegration/shop_password';
|
21 |
+
const XML_PATH_DEBUG_RESULT= 'ekomitab/ekomi_ekomiIntegration/debug_result';
|
22 |
+
|
23 |
+
public function isModuleEnabled($store = null)
|
24 |
+
{
|
25 |
+
return Mage::getStoreConfig(self::XML_PATH_ACTIVE, $store);
|
26 |
+
}
|
27 |
+
|
28 |
+
public function isProductReviewEnabled($store = null)
|
29 |
+
{
|
30 |
+
return Mage::getStoreConfig(self::XML_PATH_PRODUCT_REVIEWS, $store);
|
31 |
+
}
|
32 |
+
|
33 |
+
public function getShopId($store = null)
|
34 |
+
{
|
35 |
+
return Mage::getStoreConfig(self::XML_PATH_SHOP_ID, $store);
|
36 |
+
}
|
37 |
+
|
38 |
+
public function getShopPassword($store = null)
|
39 |
+
{
|
40 |
+
return Mage::getStoreConfig(self::XML_PATH_SHOP_PASSWORD, $store);
|
41 |
+
}
|
42 |
+
|
43 |
+
public function getDebugResult($store = null)
|
44 |
+
{
|
45 |
+
return Mage::getStoreConfig(self::XML_PATH_DEBUG_RESULT, $store);
|
46 |
+
}
|
47 |
+
}
|
app/code/community/Ekomi/EkomiIntegration/Model/Observer.php
CHANGED
@@ -1,54 +1,109 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
*
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*/
|
15 |
-
class Ekomi_EkomiIntegration_Model_Observer
|
16 |
-
{
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
$
|
25 |
-
$
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
$
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*/
|
15 |
+
class Ekomi_EkomiIntegration_Model_Observer
|
16 |
+
{
|
17 |
+
protected $_apiUrl = 'srr.ekomi.com/add-recipient';
|
18 |
+
|
19 |
+
/**
|
20 |
+
* @param $observer
|
21 |
+
*/
|
22 |
+
public function sendOrderToEkomi($observer)
|
23 |
+
{
|
24 |
+
$order = $observer->getEvent()->getOrder();
|
25 |
+
$storeId = $order->getStoreId();
|
26 |
+
$helper = Mage::helper('ekomi_ekomiIntegration');
|
27 |
+
|
28 |
+
if (!$helper->isModuleEnabled($storeId)) {
|
29 |
+
return;
|
30 |
+
}
|
31 |
+
|
32 |
+
try {
|
33 |
+
$postvars = $this->getData($order, $storeId);
|
34 |
+
|
35 |
+
if ($postvars != '') {
|
36 |
+
$this->sendOrderData($postvars);
|
37 |
+
}
|
38 |
+
|
39 |
+
} catch (Exception $e) {
|
40 |
+
Mage::logException($e);
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
/**
|
45 |
+
* @param $order
|
46 |
+
* @param $storeId
|
47 |
+
* @return string
|
48 |
+
*/
|
49 |
+
protected function getData($order, $storeId )
|
50 |
+
{
|
51 |
+
$helper = Mage::helper('ekomi_ekomiIntegration');
|
52 |
+
$scheduleTime = date('d-m-Y H:i:s',strtotime($order->getCreatedAtStoreDate()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT)));
|
53 |
+
$fields = array('shop_id'=>$helper->getShopId($storeId), 'password'=>$helper->getShopPassword($storeId), 'salutation'=>'',
|
54 |
+
'first_name'=>$order->getBillingAddress()->getFirstname(),
|
55 |
+
'last_name'=>$order->getBillingAddress()->getLastname(),
|
56 |
+
'email'=>$order->getCustomerEmail(), 'transaction_id'=>$order->getIncrementId(),
|
57 |
+
'transaction_time'=>$scheduleTime,
|
58 |
+
'telephone'=>$order->getBillingAddress()->getTelephone(),
|
59 |
+
'sender_name'=>Mage::getStoreConfig('trans_email/ident_sales/name'),
|
60 |
+
'sender_email'=>Mage::getStoreConfig('trans_email/ident_sales/email')
|
61 |
+
);
|
62 |
+
if ($helper->isProductReviewEnabled($storeId)){
|
63 |
+
$fields['has_products'] = 1;
|
64 |
+
$fields['products_info'] = $this->getOrderProductsData($order);
|
65 |
+
}
|
66 |
+
$postvars = '';
|
67 |
+
$counter = 1;
|
68 |
+
|
69 |
+
foreach($fields as $key=>$value) {
|
70 |
+
if($counter > 1)$postvars .="&";
|
71 |
+
$postvars .= $key . "=" . $value;
|
72 |
+
$counter++;
|
73 |
+
}
|
74 |
+
|
75 |
+
return $postvars;
|
76 |
+
}
|
77 |
+
|
78 |
+
protected function getOrderProductsData($order)
|
79 |
+
{
|
80 |
+
$items = $order->getAllVisibleItems();
|
81 |
+
foreach ($items as $item) {
|
82 |
+
$products[$item->getId()] = $item->getName();
|
83 |
+
}
|
84 |
+
|
85 |
+
return json_encode($products);
|
86 |
+
}
|
87 |
+
|
88 |
+
/**
|
89 |
+
* @param $postvars
|
90 |
+
* @param $boundary
|
91 |
+
*/
|
92 |
+
protected function sendOrderData($postvars)
|
93 |
+
{
|
94 |
+
$boundary = md5(time());
|
95 |
+
try {
|
96 |
+
$ch = curl_init();
|
97 |
+
curl_setopt($ch, CURLOPT_URL,$this->_apiUrl);
|
98 |
+
curl_setopt($ch, CURLOPT_HEADER, false);
|
99 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, array('ContentType:multipart/form-data;boundary=' . $boundary));
|
100 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
101 |
+
curl_setopt($ch, CURLOPT_POST , 1);
|
102 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS, $postvars);
|
103 |
+
curl_exec ($ch);
|
104 |
+
curl_close ($ch);
|
105 |
+
} catch (Exception $e) {
|
106 |
+
Mage::logException($e->getMessage());
|
107 |
+
}
|
108 |
+
}
|
109 |
+
}
|
app/code/community/Ekomi/EkomiIntegration/Model/Validate.php
CHANGED
@@ -1,44 +1,73 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*/
|
15 |
-
class Ekomi_EkomiIntegration_Model_Validate extends Mage_Core_Model_Config_Data
|
16 |
-
{
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*/
|
15 |
+
class Ekomi_EkomiIntegration_Model_Validate extends Mage_Core_Model_Config_Data
|
16 |
+
{
|
17 |
+
|
18 |
+
const XML_PATH_SHOP_ID = 'ekomitab/ekomi_ekomiIntegration/shop_id';
|
19 |
+
const XML_PATH_SHOP_PASSWORD = 'ekomitab/ekomi_ekomiIntegration/shop_password';
|
20 |
+
|
21 |
+
public function save()
|
22 |
+
{
|
23 |
+
$ApiUrl='http://api.ekomi.de/v3/getSettings';
|
24 |
+
$PostData = Mage::app()->getRequest()->getPost();
|
25 |
+
|
26 |
+
foreach($PostData['groups']['ekomi_ekomiIntegration'] as $fields)
|
27 |
+
{
|
28 |
+
if($fields['shop_id'])
|
29 |
+
$ShopId=$fields['shop_id']['value'];
|
30 |
+
if($fields['shop_password'])
|
31 |
+
$ShopPassword=$fields['shop_password']['value'];
|
32 |
+
}
|
33 |
+
|
34 |
+
|
35 |
+
if ($ShopId == '' && $PostData['groups']['ekomi_ekomiIntegration']['fields']['shop_id']['inherit'] == 1) {
|
36 |
+
$ShopId = $this->getShopId();
|
37 |
+
}
|
38 |
+
|
39 |
+
if ($ShopPassword == '' && $PostData['groups']['ekomi_ekomiIntegration']['fields']['shop_password']['inherit'] == 1) {
|
40 |
+
$ShopPassword = $this->getPassword();
|
41 |
+
}
|
42 |
+
|
43 |
+
if ($ShopId =='' || $ShopPassword == '') {
|
44 |
+
Mage::throwException('Shop ID & Password Required.');
|
45 |
+
} else {
|
46 |
+
$ch = curl_init();
|
47 |
+
curl_setopt($ch, CURLOPT_URL,$ApiUrl."?auth=".$ShopId."|".$ShopPassword."&version=cust-1.0.0&type=request&charset=iso");
|
48 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
49 |
+
$server_output = curl_exec ($ch);
|
50 |
+
curl_close ($ch);
|
51 |
+
if($server_output=='Access denied')
|
52 |
+
Mage::throwException($server_output);
|
53 |
+
else
|
54 |
+
return parent::save();
|
55 |
+
}
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* @return mixed
|
60 |
+
*/
|
61 |
+
protected function getShopId()
|
62 |
+
{
|
63 |
+
return Mage::getStoreConfig(self::XML_PATH_SHOP_ID);
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* @return mixed
|
68 |
+
*/
|
69 |
+
protected function getPassword()
|
70 |
+
{
|
71 |
+
return Mage::getStoreConfig(self::XML_PATH_SHOP_PASSWORD);
|
72 |
+
}
|
73 |
+
}
|
app/code/community/Ekomi/EkomiIntegration/etc/config.xml
CHANGED
@@ -1,56 +1,56 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
-
-->
|
16 |
-
<config>
|
17 |
-
<modules>
|
18 |
-
<Ekomi_EkomiIntegration>
|
19 |
-
<version>1.0.0.0</version>
|
20 |
-
</Ekomi_EkomiIntegration>
|
21 |
-
</modules>
|
22 |
-
<global>
|
23 |
-
<models>
|
24 |
-
<ekomi_ekomiIntegration>
|
25 |
-
<class>Ekomi_EkomiIntegration_Model</class>
|
26 |
-
</ekomi_ekomiIntegration>
|
27 |
-
</models>
|
28 |
-
<helpers>
|
29 |
-
<ekomi_ekomiIntegration>
|
30 |
-
<class>Ekomi_EkomiIntegration_Helper</class>
|
31 |
-
</ekomi_ekomiIntegration>
|
32 |
-
</helpers>
|
33 |
-
<blocks>
|
34 |
-
<ekomi_ekomiIntegration>
|
35 |
-
<class>Ekomi_EkomiIntegration_Block</class>
|
36 |
-
</ekomi_ekomiIntegration>
|
37 |
-
</blocks>
|
38 |
-
<events>
|
39 |
-
<sales_order_place_after>
|
40 |
-
<observers>
|
41 |
-
<ekomi_ekomiIntegration_sendOrderToEkomi>
|
42 |
-
<class>ekomi_ekomiIntegration/observer</class>
|
43 |
-
<method>sendOrderToEkomi</method>
|
44 |
-
</ekomi_ekomiIntegration_sendOrderToEkomi>
|
45 |
-
</observers>
|
46 |
-
</sales_order_place_after>
|
47 |
-
</events>
|
48 |
-
</global>
|
49 |
-
<default>
|
50 |
-
<ekomitab>
|
51 |
-
<ekomi_ekomiIntegration>
|
52 |
-
<server_address>http://srr.ekomi.com/add-recipient</server_address>
|
53 |
-
</ekomi_ekomiIntegration>
|
54 |
-
</ekomitab>
|
55 |
-
</default>
|
56 |
-
</config>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
-->
|
16 |
+
<config>
|
17 |
+
<modules>
|
18 |
+
<Ekomi_EkomiIntegration>
|
19 |
+
<version>1.0.0.0</version>
|
20 |
+
</Ekomi_EkomiIntegration>
|
21 |
+
</modules>
|
22 |
+
<global>
|
23 |
+
<models>
|
24 |
+
<ekomi_ekomiIntegration>
|
25 |
+
<class>Ekomi_EkomiIntegration_Model</class>
|
26 |
+
</ekomi_ekomiIntegration>
|
27 |
+
</models>
|
28 |
+
<helpers>
|
29 |
+
<ekomi_ekomiIntegration>
|
30 |
+
<class>Ekomi_EkomiIntegration_Helper</class>
|
31 |
+
</ekomi_ekomiIntegration>
|
32 |
+
</helpers>
|
33 |
+
<blocks>
|
34 |
+
<ekomi_ekomiIntegration>
|
35 |
+
<class>Ekomi_EkomiIntegration_Block</class>
|
36 |
+
</ekomi_ekomiIntegration>
|
37 |
+
</blocks>
|
38 |
+
<events>
|
39 |
+
<sales_order_place_after>
|
40 |
+
<observers>
|
41 |
+
<ekomi_ekomiIntegration_sendOrderToEkomi>
|
42 |
+
<class>ekomi_ekomiIntegration/observer</class>
|
43 |
+
<method>sendOrderToEkomi</method>
|
44 |
+
</ekomi_ekomiIntegration_sendOrderToEkomi>
|
45 |
+
</observers>
|
46 |
+
</sales_order_place_after>
|
47 |
+
</events>
|
48 |
+
</global>
|
49 |
+
<default>
|
50 |
+
<ekomitab>
|
51 |
+
<ekomi_ekomiIntegration>
|
52 |
+
<server_address>http://srr.ekomi.com/add-recipient</server_address>
|
53 |
+
</ekomi_ekomiIntegration>
|
54 |
+
</ekomitab>
|
55 |
+
</default>
|
56 |
+
</config>
|
app/code/community/Ekomi/EkomiIntegration/etc/system.xml
CHANGED
@@ -1,89 +1,92 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
-
|
16 |
-
-->
|
17 |
-
<config>
|
18 |
-
<tabs>
|
19 |
-
<ekomiconf translate="label">
|
20 |
-
<label>Ekomi Integration</label>
|
21 |
-
<sort_order>150</sort_order>
|
22 |
-
</ekomiconf>
|
23 |
-
</tabs>
|
24 |
-
<sections>
|
25 |
-
<ekomitab translate="label" module="adminhtml">
|
26 |
-
<label>Ekomi Integration</label>
|
27 |
-
<tab>ekomiconf</tab>
|
28 |
-
<sort_order>10</sort_order>
|
29 |
-
<show_in_default>1</show_in_default>
|
30 |
-
<show_in_website>1</show_in_website>
|
31 |
-
<show_in_store>1</show_in_store>
|
32 |
-
<groups>
|
33 |
-
<ekomi_ekomiIntegration translate="label" module="ekomi_ekomiIntegration">
|
34 |
-
<label>Ekomi Integration</label>
|
35 |
-
<frontend_type>text</frontend_type>
|
36 |
-
<sort_order>900</sort_order>
|
37 |
-
<show_in_default>1</show_in_default>
|
38 |
-
<show_in_website>1</show_in_website>
|
39 |
-
<show_in_store>1</show_in_store>
|
40 |
-
<fields>
|
41 |
-
<active translate="label">
|
42 |
-
<label>Enabled</label>
|
43 |
-
<backend_model>ekomi_ekomiIntegration/validate</backend_model>
|
44 |
-
<frontend_type>select</frontend_type>
|
45 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
46 |
-
<
|
47 |
-
<
|
48 |
-
<
|
49 |
-
<
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
<
|
54 |
-
<
|
55 |
-
<
|
56 |
-
<
|
57 |
-
<
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
<
|
63 |
-
<
|
64 |
-
<
|
65 |
-
<
|
66 |
-
|
67 |
-
|
68 |
-
<
|
69 |
-
|
70 |
-
|
71 |
-
<
|
72 |
-
<
|
73 |
-
<
|
74 |
-
|
75 |
-
|
76 |
-
<
|
77 |
-
|
78 |
-
|
79 |
-
<
|
80 |
-
<
|
81 |
-
<
|
82 |
-
<
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
|
|
|
|
|
|
89 |
</config>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
|
16 |
+
-->
|
17 |
+
<config>
|
18 |
+
<tabs>
|
19 |
+
<ekomiconf translate="label">
|
20 |
+
<label>Ekomi Integration</label>
|
21 |
+
<sort_order>150</sort_order>
|
22 |
+
</ekomiconf>
|
23 |
+
</tabs>
|
24 |
+
<sections>
|
25 |
+
<ekomitab translate="label" module="adminhtml">
|
26 |
+
<label>Ekomi Integration</label>
|
27 |
+
<tab>ekomiconf</tab>
|
28 |
+
<sort_order>10</sort_order>
|
29 |
+
<show_in_default>1</show_in_default>
|
30 |
+
<show_in_website>1</show_in_website>
|
31 |
+
<show_in_store>1</show_in_store>
|
32 |
+
<groups>
|
33 |
+
<ekomi_ekomiIntegration translate="label" module="ekomi_ekomiIntegration">
|
34 |
+
<label>Ekomi Integration</label>
|
35 |
+
<frontend_type>text</frontend_type>
|
36 |
+
<sort_order>900</sort_order>
|
37 |
+
<show_in_default>1</show_in_default>
|
38 |
+
<show_in_website>1</show_in_website>
|
39 |
+
<show_in_store>1</show_in_store>
|
40 |
+
<fields>
|
41 |
+
<active translate="label">
|
42 |
+
<label>Enabled</label>
|
43 |
+
<backend_model>ekomi_ekomiIntegration/validate</backend_model>
|
44 |
+
<frontend_type>select</frontend_type>
|
45 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
46 |
+
<comment>To enable for specific store or website, please change scop from top right</comment>
|
47 |
+
<sort_order>1</sort_order>
|
48 |
+
<show_in_default>1</show_in_default>
|
49 |
+
<show_in_website>1</show_in_website>
|
50 |
+
<show_in_store>1</show_in_store>
|
51 |
+
</active>
|
52 |
+
<product_reviews translate="label">
|
53 |
+
<label>Product Base Reviews</label>
|
54 |
+
<frontend_type>select</frontend_type>
|
55 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
56 |
+
<sort_order>3</sort_order>
|
57 |
+
<show_in_default>1</show_in_default>
|
58 |
+
<show_in_website>1</show_in_website>
|
59 |
+
<show_in_store>1</show_in_store>
|
60 |
+
</product_reviews>
|
61 |
+
<shop_id translate="label">
|
62 |
+
<label>Shop ID</label>
|
63 |
+
<frontend_type>text</frontend_type>
|
64 |
+
<sort_order>5</sort_order>
|
65 |
+
<comment>Interface id received by eKomi</comment>
|
66 |
+
<show_in_default>1</show_in_default>
|
67 |
+
<show_in_website>1</show_in_website>
|
68 |
+
<show_in_store>1</show_in_store>
|
69 |
+
</shop_id>
|
70 |
+
<shop_password translate="label">
|
71 |
+
<label>Shop Password</label>
|
72 |
+
<frontend_type>text</frontend_type>
|
73 |
+
<sort_order>7</sort_order>
|
74 |
+
<show_in_default>1</show_in_default>
|
75 |
+
<show_in_website>1</show_in_website>
|
76 |
+
<show_in_store>1</show_in_store>
|
77 |
+
</shop_password>
|
78 |
+
<debug_result translate="label">
|
79 |
+
<label>Debug</label>
|
80 |
+
<frontend_type>select</frontend_type>
|
81 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
82 |
+
<sort_order>9</sort_order>
|
83 |
+
<show_in_default>1</show_in_default>
|
84 |
+
<show_in_website>1</show_in_website>
|
85 |
+
<show_in_store>1</show_in_store>
|
86 |
+
</debug_result>
|
87 |
+
</fields>
|
88 |
+
</ekomi_ekomiIntegration>
|
89 |
+
</groups>
|
90 |
+
</ekomitab>
|
91 |
+
</sections>
|
92 |
</config>
|
app/etc/modules/Ekomi_EkomiIntegration.xml
CHANGED
@@ -1,29 +1,29 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
-
*
|
16 |
-
*/
|
17 |
-
-->
|
18 |
-
<config>
|
19 |
-
<modules>
|
20 |
-
|
21 |
-
<active>true</active>
|
22 |
-
<codePool>community</codePool>
|
23 |
-
<depends>
|
24 |
-
<Mage_Sales />
|
25 |
-
<Mage_Adminhtml />
|
26 |
-
</depends>
|
27 |
-
</Ekomi_EkomiIntegration>
|
28 |
-
</modules>
|
29 |
-
</config>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* Ekomi
|
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 license@magentocommerce.com so we can send you a copy immediately.
|
15 |
+
*
|
16 |
+
*/
|
17 |
+
-->
|
18 |
+
<config>
|
19 |
+
<modules>
|
20 |
+
<Ekomi_EkomiIntegration>
|
21 |
+
<active>true</active>
|
22 |
+
<codePool>community</codePool>
|
23 |
+
<depends>
|
24 |
+
<Mage_Sales />
|
25 |
+
<Mage_Adminhtml />
|
26 |
+
</depends>
|
27 |
+
</Ekomi_EkomiIntegration>
|
28 |
+
</modules>
|
29 |
+
</config>
|
package.xml
CHANGED
@@ -1,36 +1,23 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>eKomi_integration</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
-
<license
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description
|
11 |
-
- Get Google Seller Ratings 
|
12 |
-
- Increase Click Through Rate by over 17%
|
13 |
-
- Increase Conversion Rate
|
14 |
-

|
15 |
-
eKomi Magento Plugin allows you to integrate your Magento shop easily with eKomi system. This allows you to collect verified reviews, display eKomi seal on your website and get your seller ratings on Google. This helps you increase your website's click through rates, conversion rates and also, if you are running Google AdWord Campaigns, this helps in improving your Quality Score and hence your costs per click. 
|
16 |

|
17 |
eKomi Reviews and Ratings allows you to:
|
18 |
a. Collect Reviews
|
19 |
b. Manage Reviews: our team of Customer Feedback Managers, reviews each and every review for any terms which are not allowed and also put all negative reviews in moderation. 
|
20 |
-
c. Publish reviews on search engines: Google, Bing, Yahoo!
|
21 |
-
|
22 |
-
eKomi is available in English, French, German, Spanish, Dutch, Italian, Russian and Polish (more languages coming soon). 
|
23 |
-

|
24 |
-
If you have any questions regarding the plugin, please contact your eKomi Account Manager. 
|
25 |
-

|
26 |
-
Please note that you will need an eKomi account to use the plugin. To create an eKomi account, go to eKomi.com. 
|
27 |
-

|
28 |
-
</description>
|
29 |
-
<notes>Please note that you will need an eKomi account to use the plugin. To create an eKomi account, go to eKomi.com. </notes>
|
30 |
<authors><author><name>Heinz Schrader</name><user>hschrader</user><email>hschrader@ekomi-group.com</email></author></authors>
|
31 |
-
<date>2016-
|
32 |
-
<time>11:
|
33 |
-
<contents><target name="magecommunity"><dir name="Ekomi"><dir name="EkomiIntegration"><dir name="Helper"><file name="Data.php" hash="
|
34 |
<compatible/>
|
35 |
<dependencies><required><php><min>5.0.0</min><max>5.3.0</max></php></required></dependencies>
|
36 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>eKomi_integration</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license>AFL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>This plugin allows you to integrate your magento shop easily with eKomi system to collect verified reviews.</summary>
|
10 |
+
<description>eKomi Magento Plugin allows you to integrate your Magento shop easily with eKomi system. This allows you to collect verified reviews, display eKomi seal on your website and get your seller ratings on Google. This helps you increase your website's click through rates, conversion rates and also, if you are running Google AdWord Campaigns, this helps in improving your Quality Score and hence your costs per click. 
|
|
|
|
|
|
|
|
|
|
|
11 |

|
12 |
eKomi Reviews and Ratings allows you to:
|
13 |
a. Collect Reviews
|
14 |
b. Manage Reviews: our team of Customer Feedback Managers, reviews each and every review for any terms which are not allowed and also put all negative reviews in moderation. 
|
15 |
+
c. Publish reviews on search engines: Google, Bing, Yahoo! </description>
|
16 |
+
<notes>Plugin for Magento allows you to integrate your magento shop easily with eKomi system to collect verified order and/or product base reviews.</notes>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
<authors><author><name>Heinz Schrader</name><user>hschrader</user><email>hschrader@ekomi-group.com</email></author></authors>
|
18 |
+
<date>2016-03-28</date>
|
19 |
+
<time>11:55:39</time>
|
20 |
+
<contents><target name="magecommunity"><dir name="Ekomi"><dir name="EkomiIntegration"><dir name="Helper"><file name="Data.php" hash="08041314f50b10d1842ba92296acdf56"/></dir><dir name="Model"><file name="Observer.php" hash="91e42cf4d2aca6523ff33f58a2dcc5d7"/><file name="Validate.php" hash="3ef621788942bff9f80b36683696d936"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2d3f2d8b63b0af22a11d5dee861fddfc"/><file name="config.xml" hash="f3e8d2a39f33eb32c79d1e6b5b98726c"/><file name="system.xml" hash="3f350c3747fb7289f71392966482c54d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ekomi_EkomiIntegration.xml" hash="e84d0589f7081183d0d3d1e1c66c059e"/></dir></target></contents>
|
21 |
<compatible/>
|
22 |
<dependencies><required><php><min>5.0.0</min><max>5.3.0</max></php></required></dependencies>
|
23 |
</package>
|