Version Notes
First public release.
Download this release
Release Info
Developer | Magento Core Team |
Extension | Eepohs_Snoobi |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- Eepohs_Snoobi/English Magento Snoobi E-commerce Analytics.pdf +0 -0
- Eepohs_Snoobi/Svenska Magento Snoobi E-commerce Analytics.pdf +0 -0
- app/code/community/Eepohs/Snoobi/Block/Info.php +43 -0
- app/code/community/Eepohs/Snoobi/Block/Order.php +96 -0
- app/code/community/Eepohs/Snoobi/Block/Tag.php +42 -0
- app/code/community/Eepohs/Snoobi/Helper/Data.php +6 -0
- app/code/community/Eepohs/Snoobi/controllers/IndexController.php +17 -0
- app/code/community/Eepohs/Snoobi/etc/adminhtml.xml +21 -0
- app/code/community/Eepohs/Snoobi/etc/config.xml +75 -0
- app/code/community/Eepohs/Snoobi/etc/system.xml +63 -0
- app/design/frontend/default/default/layout/snoobi.xml +23 -0
- app/design/frontend/default/default/template/snoobi/js.phtml +4 -0
- app/etc/modules/Eepohs_Snoobi.xml +8 -0
- app/locale/en_US/Eepohs_Snoobi.csv +19 -0
- app/locale/et_EE/Eepohs_Snoobi.csv +14 -0
- app/locale/fi_FI/Eepohs_Snoobi.csv +14 -0
- app/locale/nl_NL/Eepohs_Snoobi.csv +14 -0
- app/locale/sv_SE/Eepohs_Snoobi.csv +14 -0
- package.xml +18 -0
- skin/adminhtml/default/default/images/snoobi/snoobi_logo.gif +0 -0
Eepohs_Snoobi/English Magento Snoobi E-commerce Analytics.pdf
ADDED
Binary file
|
Eepohs_Snoobi/Svenska Magento Snoobi E-commerce Analytics.pdf
ADDED
Binary file
|
app/code/community/Eepohs/Snoobi/Block/Info.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Eepohs_Snoobi_Block_Info extends Mage_Adminhtml_Block_System_Config_Form_Field
|
3 |
+
{
|
4 |
+
|
5 |
+
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
6 |
+
{
|
7 |
+
$this->setElement($element);
|
8 |
+
|
9 |
+
|
10 |
+
$data = $element->getOriginalData();
|
11 |
+
|
12 |
+
$logo = isset($data['logo']) ? $data['logo'] : '';
|
13 |
+
$logo_url = isset($data['logo_url']) ? __($data['logo_url']) : '';
|
14 |
+
$description = isset($data['description']) ? __($data['description']) : '';
|
15 |
+
$trial_url = isset($data['trial_url']) ? __($data['trial_url']) : '';
|
16 |
+
$trial_url_text = isset($data['trial_url_text']) ? __($data['trial_url_text']) : '';
|
17 |
+
$report_url = isset($data['report_url']) ? __($data['report_url']) : '';
|
18 |
+
$report_url_text = isset($data['report_url_text']) ? __($data['report_url_text']) : '';
|
19 |
+
$support_url = isset($data['support_url']) ? __($data['support_url']) : '';
|
20 |
+
$support_url_text = isset($data['support_url_text']) ? __($data['support_url_text']) : '';
|
21 |
+
$support_text = isset($data['support_text']) ? __($data['support_text']) : '';
|
22 |
+
$support_phone = isset($data['support_phone']) ? __($data['support_phone']) : '';
|
23 |
+
$support_email = isset($data['support_email']) ? __($data['support_email']) : '';
|
24 |
+
|
25 |
+
$html = "<div style=\"float:left; padding-right:20px;\">
|
26 |
+
<a href=\"$logo_url\" target=\"_blank\"><img src=\"" . $this->getSkinUrl($logo) . "\" alt=\"logo\"/></a>
|
27 |
+
</div>
|
28 |
+
<div style=\"padding-bottom: 20px;\">
|
29 |
+
$description<br /><br />
|
30 |
+
|
31 |
+
<form>
|
32 |
+
<input type=\"button\" value=\"$trial_url_text\" onclick=\"window.open('$trial_url','snoobi');\" />
|
33 |
+
</form>
|
34 |
+
|
35 |
+
<!--<a style=\"color:#E0282E;\" href=\"$trial_url\" target=\"_blank\">$trial_url_text</a>-->";
|
36 |
+
$html .= "<br /> <br />
|
37 |
+
$support_text: $support_phone | <a style=\"color:#E0282E;\" href=\"mailto:$support_email\">$support_email</a>
|
38 |
+
</div><div style=\"clear:both;\"></div>";
|
39 |
+
|
40 |
+
return $html;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
?>
|
app/code/community/Eepohs/Snoobi/Block/Order.php
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Eepohs_Snoobi_Block_Order extends Mage_Core_Block_Text
|
4 |
+
{
|
5 |
+
protected function _toHtml()
|
6 |
+
{
|
7 |
+
if (!Mage::getStoreConfigFlag('snoobi/settings/snoobi_enabled') || !Mage::getStoreConfigFlag('snoobi/settings/account')) {
|
8 |
+
return '';
|
9 |
+
}
|
10 |
+
|
11 |
+
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
|
12 |
+
if ($orderId) {
|
13 |
+
$order = Mage::getModel('sales/order')->load($orderId);
|
14 |
+
$address = $order->getShippingAddress();
|
15 |
+
} else {
|
16 |
+
Mage::log('No orderid!');
|
17 |
+
return parent::_toHtml();
|
18 |
+
}
|
19 |
+
$customer = Mage::getSingleton('customer/session')->getCustomer();
|
20 |
+
if ($customer->getId()) {
|
21 |
+
$customerName = $customer->getName();
|
22 |
+
$customerEmail = $customer->getEmail();
|
23 |
+
$customerId = $customer->getId();
|
24 |
+
} else {
|
25 |
+
$customerName = $order->getBillingAddress()->getName();
|
26 |
+
$customerEmail = $order->getCustomerEmail();
|
27 |
+
$customerId = 0;
|
28 |
+
}
|
29 |
+
$discountPct = round(($order->getDiscountAmount() / ($order->getBaseGrandTotal() + (-$order->getDiscountAmount()) - $order->getBaseShippingAmount()) * 100),2);
|
30 |
+
|
31 |
+
$this->addText('
|
32 |
+
<script type="text/javascript">
|
33 |
+
var snoobiTrans = new SnoobiTrans();
|
34 |
+
var snoobiOrder = snoobiTrans.order("' . $order->getIncrementId() . '");
|
35 |
+
snoobiOrder.total = "' . $order->getBaseGrandTotal() . '";
|
36 |
+
snoobiOrder.currency ="' . $order->getOrderCurrencyCode() . '";
|
37 |
+
snoobiOrder.discount = "' . $order->getDiscountAmount() . '";
|
38 |
+
snoobiOrder.discountPct = "' . $discountPct . '";
|
39 |
+
snoobiOrder.tax = "' . $order->getBaseTaxAmount() . '";
|
40 |
+
snoobiOrder.country = "' . $this->jsQuoteEscape($address->getCountry(), '"') . '";
|
41 |
+
snoobiOrder.city = "' . $this->jsQuoteEscape($address->getCity(), '"') . '";
|
42 |
+
snoobiOrder.address = "' . $this->jsQuoteEscape($address->getStreetFull(), '"') . '";
|
43 |
+
snoobiOrder.area = "' . $this->jsQuoteEscape($address->getRegion(), '"') . '";
|
44 |
+
snoobiOrder.zip = "' . $address->getPostcode() . '";
|
45 |
+
snoobiOrder.customername = "' . $this->jsQuoteEscape($customerName, '"') . '";
|
46 |
+
snoobiOrder.customeremail ="' . $this->jsQuoteEscape($customerEmail, '"') . '";
|
47 |
+
snoobiOrder.customerid = "' . $customerId . '";
|
48 |
+
snoobiOrder.shippingcost = "' . $order->getBaseShippingAmount() . '";
|
49 |
+
snoobiOrder.payment_method = "' . $order->getPayment()->getMethod() . '";
|
50 |
+
snoobiOrder.shipping_method = "' . $order->getShippingMethod() . '";
|
51 |
+
snoobiOrder.coupons = "' . $order->getCouponCode() . '";
|
52 |
+
');
|
53 |
+
|
54 |
+
foreach ($order->getAllItems() as $item) {
|
55 |
+
if ($item->getParentItemId()) {
|
56 |
+
continue;
|
57 |
+
}
|
58 |
+
$product = Mage::getModel('catalog/product')->load($item->getProductId());
|
59 |
+
$categoryIds = $product->getCategoryIds();
|
60 |
+
$categoryName = "";
|
61 |
+
$categoryId = "";
|
62 |
+
$categoryAllNames = array();
|
63 |
+
$categoryAllIds = array();
|
64 |
+
foreach($categoryIds as $categoryId){
|
65 |
+
$category = Mage::getModel('catalog/category')->load($categoryId);
|
66 |
+
$categoryName = $category->getName();
|
67 |
+
$categoryId = $category->getId();
|
68 |
+
$categoryAllNames[] = $categoryName;
|
69 |
+
$categoryAllIds[] = $categoryId;
|
70 |
+
}
|
71 |
+
$this->addText('
|
72 |
+
var snoobiItem = snoobiOrder.item("' . $this->jsQuoteEscape($item->getSku(), '"') . '");
|
73 |
+
snoobiItem.name = "' . $this->jsQuoteEscape($item->getName(), '"') . '";
|
74 |
+
snoobiItem.price = "' . $item->getBasePrice() . '";
|
75 |
+
snoobiItem.currency = "' . $order->getOrderCurrencyCode() . '";
|
76 |
+
snoobiItem.amount = "' . $item->getQtyOrdered() . '";
|
77 |
+
snoobiItem.discount = "' . $item->getDiscountAmount() . '";
|
78 |
+
snoobiItem.discountPct = "' . $item->getDiscountPercent() . '";
|
79 |
+
snoobiItem.categoryName = "' . $categoryName . '";
|
80 |
+
snoobiItem.categoryId = "' . $categoryId . '";
|
81 |
+
');
|
82 |
+
|
83 |
+
if (count($categoryAllNames) > 1) {
|
84 |
+
$this->addText('
|
85 |
+
snoobiItem.categoryAllNames = "' . implode(":",$categoryAllNames) . '";
|
86 |
+
snoobiItem.categoryAllIds = "' . implode(":",$categoryAllIds) . '";
|
87 |
+
');
|
88 |
+
}
|
89 |
+
}
|
90 |
+
$this->addText('
|
91 |
+
</script>
|
92 |
+
');
|
93 |
+
|
94 |
+
return parent::_toHtml();
|
95 |
+
}
|
96 |
+
}
|
app/code/community/Eepohs/Snoobi/Block/Tag.php
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Eepohs_Snoobi_Block_Tag extends Mage_Core_Block_Text
|
4 |
+
{
|
5 |
+
public function getAccount()
|
6 |
+
{
|
7 |
+
if (!$this->hasData('account')) {
|
8 |
+
$this->setAccount(Mage::getStoreConfig('snoobi/settings/account'));
|
9 |
+
}
|
10 |
+
return $this->getData('account');
|
11 |
+
}
|
12 |
+
|
13 |
+
public function getPageName()
|
14 |
+
{
|
15 |
+
if (!$this->hasData('page_name')) {
|
16 |
+
$this->setPageName(Mage::getSingleton('core/url')->escape($_SERVER['REQUEST_URI']));
|
17 |
+
}
|
18 |
+
return $this->getData('page_name');
|
19 |
+
}
|
20 |
+
|
21 |
+
|
22 |
+
protected function _toHtml()
|
23 |
+
{
|
24 |
+
if (!Mage::getStoreConfigFlag('snoobi/settings/snoobi_enabled') || !Mage::getStoreConfigFlag('snoobi/settings/account')) {
|
25 |
+
return '';
|
26 |
+
}
|
27 |
+
|
28 |
+
$protocol = (Mage::app()->getStore()->isCurrentlySecure()) ? "https" : "http";
|
29 |
+
$this->addText('
|
30 |
+
<!-- BEGIN Snoobi v1.4 -->
|
31 |
+
<script type="text/javascript" src="' . $protocol . '://eu1.snoobi.com/snoop.php?tili=' . $this->getAccount() .
|
32 |
+
'" >
|
33 |
+
</script>
|
34 |
+
<!-- END Snoobi v1.4 -->
|
35 |
+
|
36 |
+
');
|
37 |
+
|
38 |
+
|
39 |
+
return parent::_toHtml();
|
40 |
+
}
|
41 |
+
}
|
42 |
+
|
app/code/community/Eepohs/Snoobi/Helper/Data.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Eepohs_Snoobi_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
app/code/community/Eepohs/Snoobi/controllers/IndexController.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Eepohs_Snoobi_IndexController extends Mage_Adminhtml_Controller_Action
|
3 |
+
{
|
4 |
+
public function indexAction()
|
5 |
+
{
|
6 |
+
$this->loadLayout();
|
7 |
+
$this->renderLayout();
|
8 |
+
}
|
9 |
+
public function loginAction() {
|
10 |
+
echo "<script>window.location = 'http://www.snoobi.com/login'</script>";
|
11 |
+
}
|
12 |
+
|
13 |
+
}
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
?>
|
app/code/community/Eepohs/Snoobi/etc/adminhtml.xml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<config>
|
2 |
+
<acl>
|
3 |
+
<resources>
|
4 |
+
<admin>
|
5 |
+
<children>
|
6 |
+
<system>
|
7 |
+
<children>
|
8 |
+
<config>
|
9 |
+
<children>
|
10 |
+
<snoobi translate="title" module="snoobi">
|
11 |
+
<title>Snoobi</title>
|
12 |
+
</snoobi>
|
13 |
+
</children>
|
14 |
+
</config>
|
15 |
+
</children>
|
16 |
+
</system>
|
17 |
+
</children>
|
18 |
+
</admin>
|
19 |
+
</resources>
|
20 |
+
</acl>
|
21 |
+
</config>
|
app/code/community/Eepohs/Snoobi/etc/config.xml
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<config>
|
2 |
+
<modules>
|
3 |
+
<Eepohs_Snoobi>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
</Eepohs_Snoobi>
|
6 |
+
</modules>
|
7 |
+
|
8 |
+
<global>
|
9 |
+
<blocks>
|
10 |
+
<snoobi>
|
11 |
+
<class>Eepohs_Snoobi_Block</class>
|
12 |
+
</snoobi>
|
13 |
+
</blocks>
|
14 |
+
<helpers>
|
15 |
+
<snoobi>
|
16 |
+
<class>Eepohs_Snoobi_Helper</class>
|
17 |
+
</snoobi>
|
18 |
+
</helpers>
|
19 |
+
|
20 |
+
</global>
|
21 |
+
|
22 |
+
<frontend>
|
23 |
+
<layout>
|
24 |
+
<updates>
|
25 |
+
<Eepohs_Snoobi>
|
26 |
+
<file>snoobi.xml</file>
|
27 |
+
</Eepohs_Snoobi>
|
28 |
+
</updates>
|
29 |
+
</layout>
|
30 |
+
</frontend>
|
31 |
+
|
32 |
+
<adminhtml>
|
33 |
+
<translate>
|
34 |
+
<modules>
|
35 |
+
<Eepohs_Snoobi>
|
36 |
+
<files>
|
37 |
+
<default>Eepohs_Snoobi.csv</default>
|
38 |
+
</files>
|
39 |
+
</Eepohs_Snoobi>
|
40 |
+
</modules>
|
41 |
+
</translate>
|
42 |
+
<menu>
|
43 |
+
<report module="snoobi">
|
44 |
+
<children>
|
45 |
+
<snoobimenu translate="title" module="snoobi">
|
46 |
+
<title>Snoobi E-Commerce Analytics</title>
|
47 |
+
<sort_order>90</sort_order>
|
48 |
+
<action>snoobi/index/login</action>
|
49 |
+
</snoobimenu>
|
50 |
+
</children>
|
51 |
+
</report>
|
52 |
+
</menu>
|
53 |
+
</adminhtml>
|
54 |
+
|
55 |
+
<admin>
|
56 |
+
<routers>
|
57 |
+
<the_name_of_this_element_is_not_important_it_should_be_unique>
|
58 |
+
<use>admin</use>
|
59 |
+
<args>
|
60 |
+
<module>Eepohs_Snoobi</module>
|
61 |
+
<frontName>snoobi</frontName>
|
62 |
+
</args>
|
63 |
+
</the_name_of_this_element_is_not_important_it_should_be_unique>
|
64 |
+
</routers>
|
65 |
+
</admin>
|
66 |
+
<default>
|
67 |
+
<snoobi>
|
68 |
+
<settings>
|
69 |
+
<snoobi_enabled>1</snoobi_enabled>
|
70 |
+
</settings>
|
71 |
+
</snoobi>
|
72 |
+
</default>
|
73 |
+
|
74 |
+
|
75 |
+
</config>
|
app/code/community/Eepohs/Snoobi/etc/system.xml
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<config>
|
2 |
+
<sections>
|
3 |
+
<snoobi translate="label comment" module="snoobi">
|
4 |
+
<label>Snoobi E-commerce Analytics</label>
|
5 |
+
<tab>sales</tab>
|
6 |
+
<frontend_type>text</frontend_type>
|
7 |
+
<sort_order>880</sort_order>
|
8 |
+
<show_in_default>1</show_in_default>
|
9 |
+
<show_in_website>1</show_in_website>
|
10 |
+
<show_in_store>1</show_in_store>
|
11 |
+
<groups>
|
12 |
+
<info translate="label">
|
13 |
+
<label>About Snoobi</label>
|
14 |
+
<logo>images/snoobi/snoobi_logo.gif</logo>
|
15 |
+
<logo_url>http://www.snoobi.com</logo_url>
|
16 |
+
<description>Snoobi is a web analytics service and visitor tracking tool. The Snoobi E-commerce Analytics magento extension enables to analyze your web store's visits and orders. To activate this module, please enter your Snoobi account name in the form below and select “Enable e-commerce tracking”. If you do not have a Snoobi account yet, use the button below to get a free trial.</description>
|
17 |
+
<trial_url>http://www.snoobi.com/free-web-analytics-trial?cmp=magento</trial_url>
|
18 |
+
<trial_url_text>Snoobi E-commerce Analytics free trial</trial_url_text>
|
19 |
+
<report_url>http://report.snoobi.com</report_url>
|
20 |
+
<report_url_text>Login to your Snoobi report</report_url_text>
|
21 |
+
<support_text>Snoobi customer support</support_text>
|
22 |
+
<support_url>http://support.snoobi.com</support_url>
|
23 |
+
<support_phone>+358 (0)10 773 7311</support_phone>
|
24 |
+
<support_email>helpdesk@snoobi.com</support_email>
|
25 |
+
<frontend_type>text</frontend_type>
|
26 |
+
<frontend_model>snoobi/info</frontend_model>
|
27 |
+
<sort_order>10</sort_order>
|
28 |
+
<show_in_default>1</show_in_default>
|
29 |
+
<show_in_website>1</show_in_website>
|
30 |
+
<show_in_store>1</show_in_store>
|
31 |
+
</info>
|
32 |
+
<settings translate="label comment">
|
33 |
+
<label>Snoobi Settings</label>
|
34 |
+
<frontend_type>text</frontend_type>
|
35 |
+
<sort_order>20</sort_order>
|
36 |
+
<show_in_default>1</show_in_default>
|
37 |
+
<show_in_website>1</show_in_website>
|
38 |
+
<show_in_store>1</show_in_store>
|
39 |
+
<fields>
|
40 |
+
<account translate="label comment">
|
41 |
+
<label>Account Name</label>
|
42 |
+
<frontend_type>text</frontend_type>
|
43 |
+
<comment><![CDATA[<a href="http://www.snoobi.com/login" target="_blank">Check my account name</a>]]></comment>
|
44 |
+
<sort_order>20</sort_order>
|
45 |
+
<show_in_default>1</show_in_default>
|
46 |
+
<show_in_website>1</show_in_website>
|
47 |
+
<show_in_store>1</show_in_store>
|
48 |
+
</account>
|
49 |
+
<snoobi_enabled translate="label comment">
|
50 |
+
<label>Enable E-commerce Tracking</label>
|
51 |
+
<frontend_type>select</frontend_type>
|
52 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
53 |
+
<sort_order>30</sort_order>
|
54 |
+
<show_in_default>1</show_in_default>
|
55 |
+
<show_in_website>1</show_in_website>
|
56 |
+
<show_in_store>1</show_in_store>
|
57 |
+
</snoobi_enabled>
|
58 |
+
</fields>
|
59 |
+
</settings>
|
60 |
+
</groups>
|
61 |
+
</snoobi>
|
62 |
+
</sections>
|
63 |
+
</config>
|
app/design/frontend/default/default/layout/snoobi.xml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<layout version="0.1.0">
|
2 |
+
<default>
|
3 |
+
<reference name="before_body_end">
|
4 |
+
<block type="snoobi/tag" name="snoobi_tag" as="snoobi_tag" />
|
5 |
+
</reference>
|
6 |
+
</default>
|
7 |
+
<checkout_onepage_success>
|
8 |
+
<reference name="head">
|
9 |
+
<block type="page/html_head" name="snoobi_js" as="snoobi_js" template="snoobi/js.phtml" />
|
10 |
+
</reference>
|
11 |
+
<reference name="after_body_start">
|
12 |
+
<block type="snoobi/order" name="snoobi_order" as="snoobi_order" />
|
13 |
+
</reference>
|
14 |
+
</checkout_onepage_success>
|
15 |
+
<checkout_multishipping_success>
|
16 |
+
<reference name="head">
|
17 |
+
<block type="page/html_head" name="snoobi_js" as="snoobi_js" template="snoobi/js.phtml" />
|
18 |
+
</reference>
|
19 |
+
<reference name="after_body_start">
|
20 |
+
<block type="snoobi/order" name="snoobi_order" as="snoobi_order" />
|
21 |
+
</reference>
|
22 |
+
</checkout_multishipping_success>
|
23 |
+
</layout>
|
app/design/frontend/default/default/template/snoobi/js.phtml
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
?>
|
3 |
+
<?php $protocol = (Mage::app()->getStore()->isCurrentlySecure()) ? "https" : "http";?>
|
4 |
+
<script type="text/javascript" src="<?php echo $protocol ?>://eu1.snoobi.com/extras.min.js"></script>
|
app/etc/modules/Eepohs_Snoobi.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<config>
|
2 |
+
<modules>
|
3 |
+
<Eepohs_Snoobi>
|
4 |
+
<active>true</active>
|
5 |
+
<codePool>community</codePool>
|
6 |
+
</Eepohs_Snoobi>
|
7 |
+
</modules>
|
8 |
+
</config>
|
app/locale/en_US/Eepohs_Snoobi.csv
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Snoobi E-commerce Analytics","Snoobi E-commerce Analytics"
|
2 |
+
"Snoobi is a web analytics service and visitor tracking tool. The Snoobi E-commerce Analytics magento extension enables to analyze your web store's visits and orders. To activate this module, please enter your Snoobi account name in the form below and select “Enable e-commerce tracking”. If you do not have a Snoobi account yet, use the button below to get a free trial.","Snoobi is a web analytics service and visitor tracking tool. The Snoobi E-commerce Analytics magento extension enables to analyze your web store's visits and orders. To activate this module, please enter your Snoobi account name in the form below and select “Enable e-commerce tracking”. If you do not have a Snoobi account yet, use the button below to get a free trial."
|
3 |
+
"http://www.snoobi.com/free-web-analytics-trial?cmp=magento","http://www.snoobi.com/free-web-analytics-trial?cmp=magento"
|
4 |
+
"Snoobi E-commerce Analytics free trial","Snoobi E-commerce Analytics free trial"
|
5 |
+
"http://report.snoobi.com/","http://report.snoobi.com/"
|
6 |
+
"Login to your Snoobi report","Login to your Snoobi report"
|
7 |
+
"http://support.snoobi.com","http://support.snoobi.com"
|
8 |
+
"Snoobi Help and Support","Snoobi Help and Support"
|
9 |
+
"Snoobi Settings","Snoobi Settings"
|
10 |
+
"Account Name","Account Name"
|
11 |
+
"Enable visitor tracking","Enable visitor tracking"
|
12 |
+
"Enable E-Commerce tracking","Enable E-Commerce tracking"
|
13 |
+
"<a href=""http://www.snoobi.com/login"" target=""_blank"">Check my account name</a>","<a href=""http://www.snoobi.com/login"" target=""_blank"">Check my account name</a>"
|
14 |
+
"Snoobi customer support","Snoobi customer support"
|
15 |
+
"Enable E-Commerce tracking","Enable E-commerce Tracking"
|
16 |
+
"Snoobi E-Commerce Analytics","Snoobi E-Commerce Analytics"
|
17 |
+
"+358 (0)10 773 7311","+358 (0)10 773 7311"
|
18 |
+
"helpdesk@snoobi.com","helpdesk@snoobi.com"
|
19 |
+
"http://www.snoobi.com","http://www.snoobi.com"
|
app/locale/et_EE/Eepohs_Snoobi.csv
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Snoobi E-commerce Analytics","Snoobi E-commerce Analytics"
|
2 |
+
"Snoobi is a web analytics service and visitor tracking tool. The Snoobi E-commerce Analytics magento extension enables to analyze your web store's visits and orders. To activate this module, please enter your Snoobi account name in the form below and select “Enable e-commerce tracking”. If you do not have a Snoobi account yet, use the button below to get a free trial.","Snoobi on veebianalüütika teenus ja vahend külastajate jälgimiseks. Magento laiendus Snoobi E-commerce Analytics võimaldab hoida silma peal külastajatel ja analüüsida tellimusi. Laienduse aktiveermiseks sisestage oma Snoobi konto nimi vastavasse välja ja kontrollige, kas e-poe analüütika on aktiveeritud. Kui teil pole veel oma Snoobi kontot, vajutage allpoole olevale nupule."
|
3 |
+
"http://www.snoobi.com/free-web-analytics-trial?cmp=magento","http://www.snoobi.com/free-web-analytics-trial?cmp=magento"
|
4 |
+
"Snoobi E-commerce Analytics free trial","Ava Snoobi e-poe analüütika tasuta proovikonto"
|
5 |
+
"Snoobi Settings","Snoobi seaded"
|
6 |
+
"Account Name","Konto nimi"
|
7 |
+
"Enable E-commerce Tracking","E-poe analüütika on aktiveeritud"
|
8 |
+
"<a href=""http://www.snoobi.com/login"" target=""_blank"">Check my account name</a>","<a href=""http://www.snoobi.com/login"" target=""_blank"">Kontrolli konto nime</a>"
|
9 |
+
"Snoobi customer support","Klienditeenindus"
|
10 |
+
"+358 (0)10 773 7311","+358 (0)10 773 7311"
|
11 |
+
"helpdesk@snoobi.com","helpdesk@snoobi.com"
|
12 |
+
"Yes","Jah"
|
13 |
+
"No","Ei"
|
14 |
+
"http://www.snoobi.com","http://snoobi.ee"
|
app/locale/fi_FI/Eepohs_Snoobi.csv
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Snoobi E-commerce Analytics","Snoobi E-commerce Analytics"
|
2 |
+
"Snoobi is a web analytics service and visitor tracking tool. The Snoobi E-commerce Analytics magento extension enables to analyze your web store's visits and orders. To activate this module, please enter your Snoobi account name in the form below and select “Enable e-commerce tracking”. If you do not have a Snoobi account yet, use the button below to get a free trial.","Snoobi on suomalainen web-analytiikkatyökalu, eli kävijäseuranta. Jos haluat käyttää Snoobia verkkokauppasi kävijöiden, käyntien ja tilausten analysointiin, lisää alla olevaan kenttään Snoobi-tilisi nimi. Jos sinulla ei vielä ole Snoobia, saat sen maksutta kokeiluun klikkaamalla alla olevaa painiketta."
|
3 |
+
"http://www.snoobi.com/free-web-analytics-trial?cmp=magento","http://www.snoobi.fi/koekaytto?cmp=magento"
|
4 |
+
"Snoobi E-commerce Analytics free trial","Snoobin maksuton verkkokaupan seurannan testijakso"
|
5 |
+
"Snoobi Settings","Snoobi asetukset"
|
6 |
+
"Account Name","Tilin nimi"
|
7 |
+
"Enable E-commerce Tracking","Haluan verkkokaupan seurannan"
|
8 |
+
"<a href=""http://www.snoobi.com/login"" target=""_blank"">Check my account name</a>","<a href=""http://www.snoobi.fi/kirjaudu"" target=""_blank"">Tarkasta tästä tilin nimi</a>"
|
9 |
+
"Snoobi customer support","Snoobi asiakaspalvelu"
|
10 |
+
"+358 (0)10 773 7311","+358 (0)10 773 7311"
|
11 |
+
"helpdesk@snoobi.com","helpdesk@snoobi.com"
|
12 |
+
"Yes","Kyllä"
|
13 |
+
"No","Ei"
|
14 |
+
"http://www.snoobi.com","http://snoobi.fi"
|
app/locale/nl_NL/Eepohs_Snoobi.csv
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Snoobi E-commerce Analytics","Snoobi E-commerce Analytics"
|
2 |
+
"Snoobi is a web analytics service and visitor tracking tool. The Snoobi E-commerce Analytics magento extension enables to analyze your web store's visits and orders. To activate this module, please enter your Snoobi account name in the form below and select “Enable e-commerce tracking”. If you do not have a Snoobi account yet, use the button below to get a free trial.","Snoobi is een service voor webanalyse en bezoekerstracking. Om het analyseren van de webshop mogelijk te maken dient u de Snoobi accountnaam in het formulier in te vullen. Als u nog geen Snoobi account heeft, klik dan op onderstaande knop om een gratis proef zonder verplichtingen aan te vragen"
|
3 |
+
"http://www.snoobi.com/free-web-analytics-trial?cmp=magento","http://www.snoobi.nl/gratis-webanalyse-proef?ad=magplug"
|
4 |
+
"Snoobi E-commerce Analytics free trial","Snoobi E-commerce analyse gratis proef"
|
5 |
+
"Snoobi Settings","Snoobi instellingen"
|
6 |
+
"Account Name","Accountnaam"
|
7 |
+
"Enable E-commerce Tracking","E-commerce tracking aanzetten"
|
8 |
+
"<a href=""http://www.snoobi.com/login"" target=""_blank"">Check my account name</a>","<a href=""http://www.snoobi.fi/kirjaudu"" target=""_blank"">Controleer mijn accountnaam</a>"
|
9 |
+
"Snoobi customer support","Snoobi customer service"
|
10 |
+
"+358 (0)10 773 7311","+31 (0)20 3456 820"
|
11 |
+
"helpdesk@snoobi.com","info@snoobi.nl"
|
12 |
+
"Yes","Ja"
|
13 |
+
"No","Nee"
|
14 |
+
"http://www.snoobi.com","http://snoobi.nl"
|
app/locale/sv_SE/Eepohs_Snoobi.csv
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Snoobi E-commerce Analytics","Snoobi E-commerce Analytics"
|
2 |
+
"Snoobi is a web analytics service and visitor tracking tool. The Snoobi E-commerce Analytics magento extension enables to analyze your web store's visits and orders. To activate this module, please enter your Snoobi account name in the form below and select “Enable e-commerce tracking”. If you do not have a Snoobi account yet, use the button below to get a free trial.","Snoobi är ett företag som erbjuder webbanalysservice och en programvara som möjliggör spårning av din webbplats. För att kunna använda Snoobi för analys av din e-handel, måste du ange ditt Snoobi-kontonamn i fältet nedan. Om du ännu inte har ett Snoobi-konto, kan du beställa en kostnadsfri prövoperiod i länken nedan."
|
3 |
+
"http://www.snoobi.com/free-web-analytics-trial?cmp=magento","http://www.snoobi.se/produkter-service?ad=magento_instrukt"
|
4 |
+
"Snoobi E-commerce Analytics free trial","Kostnadsfri prövoperiod av Snoobi e-handel analys"
|
5 |
+
"Snoobi Settings","Snoobi inställningar"
|
6 |
+
"Account Name","Kontonamn"
|
7 |
+
"Enable E-commerce Tracking","Aktivera uppföljning av e-handel"
|
8 |
+
"<a href=""http://www.snoobi.com/login"" target=""_blank"">Check my account name</a>","<a href=""http://www.snoobi.se/login"" target=""_blank"">Kontrollera mitt kontonamn</a>"
|
9 |
+
"Snoobi customer support","Snoobi kundservice"
|
10 |
+
"+358 (0)10 773 7311","+46 (0)70 854 1506"
|
11 |
+
"helpdesk@snoobi.com","info@snoobi.se"
|
12 |
+
"Yes","Ja"
|
13 |
+
"No","Nej"
|
14 |
+
"http://www.snoobi.com","http://snoobi.se"
|
package.xml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Eepohs_Snoobi</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Snoobi’s e-Commerce Analytics module is a Magento extension that seamlessly integrates Snoobi’s paid analytics service with web stores.</summary>
|
10 |
+
<description>Snoobi’s e-Commerce Analytics module is a free of charge Magento extension that seamlessly integrates Snoobi’s paid analytics service with web stores, requiring no technical knowledge and very little experience with either Magento or Snoobi’s service. Its features include page tracking, shopping cart tracking, product tracking, coupon tracking and the analysis of visitors to increase sales.</description>
|
11 |
+
<notes>First public release.</notes>
|
12 |
+
<authors><author><name>Marie Fischer</name><user>auto-converted</user><email>marie.fischer@eepohs.com</email></author><author><name>Tanel Raja</name><user>auto-converted</user><email>tanel.raja@eepohs.com</email></author></authors>
|
13 |
+
<date>2011-01-23</date>
|
14 |
+
<time>22:48:07</time>
|
15 |
+
<contents><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><dir name="snoobi"><file name="snoobi_logo.gif" hash="8816153cb8687e9c8827898d78f6ad5e"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Eepohs"><dir name="Snoobi"><dir name="Block"><file name="Info.php" hash="9e647cd9ceaa0f7ced9ab1d9b421b15a"/><file name="Order.php" hash="049453a98d03bb244699c8b11666fdb0"/><file name="Tag.php" hash="3416a0cf8b11abbf9d146f98c51eb15e"/></dir><dir name="controllers"><file name="IndexController.php" hash="ba39d8b3656cb43c0099ed52933b1ad2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="5a2c761b911570a3fc805b5330984532"/><file name="config.xml" hash="be0dd42e46df32c80dc76fe751cfb3f4"/><file name="system.xml" hash="84322aeaf253d48a602560ada8d1d09e"/></dir><dir name="Helper"><file name="Data.php" hash="a8591bdd702e3cba5f39265283683816"/></dir></dir></dir></target><target name="mage"><dir name="Eepohs_Snoobi"><file name="English Magento Snoobi E-commerce Analytics.pdf" hash="69b678cd5bfe2093b0b1e754b3b3fe67"/><file name="Svenska Magento Snoobi E-commerce Analytics.pdf" hash="8394473c12b63faad77dab1c51c930a9"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Eepohs_Snoobi.csv" hash="631f85d7faa14f9dd8fe5d45539fa3f9"/></dir><dir name="et_EE"><file name="Eepohs_Snoobi.csv" hash="72883c0f49b59e40739eaf553a89466f"/></dir><dir name="fi_FI"><file name="Eepohs_Snoobi.csv" hash="e64cdeb2e368cb2ab1fe276880deed30"/></dir><dir name="nl_NL"><file name="Eepohs_Snoobi.csv" hash="f1d0f9161b9eba33c38f15d9d6b16f0d"/></dir><dir name="sv_SE"><file name="Eepohs_Snoobi.csv" hash="06592e7a451344f09c01f8017138e654"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="snoobi.xml" hash="3a5f1ed4a809b2eca73a70b2575bf4b0"/></dir><dir name="template"><dir name="snoobi"><file name="js.phtml" hash="a87dacb2466c18d48c48914bd82909ac"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Eepohs_Snoobi.xml" hash="eb97d10b18ca825860bc5bd134d42ee9"/></dir></target></contents>
|
16 |
+
<compatible/>
|
17 |
+
<dependencies/>
|
18 |
+
</package>
|
skin/adminhtml/default/default/images/snoobi/snoobi_logo.gif
ADDED
Binary file
|