opentaps_CRM2 - Version 1.0.1

Version Notes

Fix for description, author and package name.

Download this release

Release Info

Developer Open Source Strategies Inc
Extension opentaps_CRM2
Version 1.0.1
Comparing to
See all releases


Version 1.0.1

app/code/community/Oxidian/OpenTaps/Block/Info.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) Open Source Strategies Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *
17
+ */
18
+ class Oxidian_OpenTaps_Block_Info extends Mage_Adminhtml_Block_Template
19
+ {
20
+ /**
21
+ * Constructor. Set template.
22
+ */
23
+ protected function _construct()
24
+ {
25
+ parent::_construct();
26
+ $this->setTemplate('oxidian_opentaps/info.phtml');
27
+ }
28
+
29
+ public function getWidget($name)
30
+ {
31
+ return $this->widgetList[$name];
32
+ }
33
+
34
+ public function getWidgetActivity()
35
+ {
36
+ return new Oxidian_OpenTaps_Block_Widget_Activity();
37
+ }
38
+ }
app/code/community/Oxidian/OpenTaps/Block/Widget.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) Open Source Strategies Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *
17
+ */
18
+ class Oxidian_OpenTaps_Block_Widget extends Mage_Adminhtml_Block_Template
19
+ {
20
+
21
+ protected $requestData;
22
+ protected $tagUrl;
23
+ /**
24
+ * Constructor. Set template.
25
+ */
26
+ protected function _construct()
27
+ {
28
+ parent::_construct();
29
+ $this->requestData['data-domain'] = Mage::getStoreConfig('oxidian_opentaps/settings/domain', Mage::app()->getStore());
30
+ $this->requestData['data-authtoken'] = Mage::getStoreConfig('oxidian_opentaps/settings/auth_token', Mage::app()->getStore());
31
+ $this->requestData['data-canedit']='true';
32
+ $this->requestData['data-shownomore']='false';
33
+ $this->requestData['data-showreflinks']='true';
34
+ $this->requestData['style']='width:100%;';
35
+ $this->requestData['data-userparams']='';
36
+ $this->requestData['data-queryparams']='';
37
+ $this->tagUrl = rawurlencode(Mage::helper('core/url')->getCurrentUrl());
38
+ $this->requestData['data-tagurl']=$this->tagUrl;
39
+
40
+ $this->setTemplate('oxidian_opentaps/widget.phtml');
41
+ }
42
+
43
+ public function getRequestData()
44
+ {
45
+ return $this->requestData;
46
+ }
47
+ }
app/code/community/Oxidian/OpenTaps/Block/Widget/Activity.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) Open Source Strategies Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *
17
+ */
18
+ class Oxidian_OpenTaps_Block_Widget_Activity extends Oxidian_OpenTaps_Block_Widget
19
+ {
20
+ protected $widgetClass;
21
+ protected $tagKeywords;
22
+ protected $tagName;
23
+
24
+ protected function _construct()
25
+ {
26
+ parent::_construct();
27
+ $orderParam = (int) $this->getRequest()->getParam('order_id');
28
+
29
+ $orderId = Mage::getModel('sales/order')->load($orderParam)->getIncrementId();
30
+
31
+ $admin = Mage::getSingleton('admin/session')->getUser();
32
+ $userName = $admin->getEmail();
33
+ $linkPageId = $orderId;
34
+ $this->widgetClass = "opentapsOrderId_$orderId";
35
+ $useSearch = 'true';
36
+ $notTerms = "opentapsOrderId:$orderId";
37
+ $this->tagName = "SO::$orderId";
38
+ $this->userParam = "&created_by_user_name=$userName&created_by_user_userLoginId=$userName";
39
+ $this->tagKeywords = "$orderId,order|po|orders";
40
+ $queryParam = '';
41
+
42
+ $this->requestData['class']="activityWidget $this->widgetClass";
43
+ $this->requestData['data-widgetstyle']='activities-list';
44
+ $this->requestData['data-maxheight']='300px';
45
+ $this->requestData['data-linkedclass']="$this->widgetClass";
46
+ $this->requestData['data-userparams']="$this->userParam";
47
+ $this->requestData['data-tagname']=$this->tagName;
48
+ $this->requestData['data-tagkeywords']=$this->tagKeywords;
49
+
50
+ $this->requestData['data-queryparams']="activityType=EMAIL NOTE TASK$queryParam";
51
+ }
52
+ }
app/code/community/Oxidian/OpenTaps/Block/Widget/Activitycreate.php ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) Open Source Strategies Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *
17
+ */
18
+ class Oxidian_OpenTaps_Block_Widget_Activitycreate extends Oxidian_OpenTaps_Block_Widget_Activity
19
+ {
20
+ protected function _construct()
21
+ {
22
+ parent::_construct();
23
+
24
+ $widgetClass = $this->widgetClass;
25
+ $this->requestData['class']="activityWidget createActivity $this->widgetClass";
26
+
27
+ $this->requestData['data-widgetstyle']='create-activity';
28
+ $this->requestData['data-buttonclass']='smallSubmit';
29
+
30
+ $this->requestData['data-queryparams']="note_field_activityType=NOTE&$this->userParam;";
31
+
32
+ }
33
+ }
app/code/community/Oxidian/OpenTaps/Block/Widget/Activitytask.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) Open Source Strategies Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *
17
+ */
18
+ class Oxidian_OpenTaps_Block_Widget_Activitytask extends Oxidian_OpenTaps_Block_Widget_Activity
19
+ {
20
+ protected function _construct()
21
+ {
22
+ parent::_construct();
23
+ $this->requestData['data-disablereply']="true";
24
+ $this->requestData['data-shownomore']="false";
25
+ $this->requestData['data-queryparams']="activityType=EMAIL NOTE TASK";
26
+ $this->requestData['data-relateto']="tag";
27
+ $this->requestData['data-searchparams']="tagName=$this->tagName&amp;tagKeywords=$this->tagKeywords&amp;tagUrl=$this->tagUrl";
28
+
29
+ }
30
+ }
app/code/community/Oxidian/OpenTaps/Helper/Data.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Copyright (c) Open Source Strategies Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *
17
+ */
18
+ class Oxidian_OpenTaps_Helper_Data extends Mage_Core_Helper_Abstract
19
+ {
20
+
21
+ }
app/code/community/Oxidian/OpenTaps/etc/config.xml ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Copyright (c) Open Source Strategies Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+ -->
20
+ <config>
21
+ <modules>
22
+ <oxidian_opentaps>
23
+ <version>1.0.0</version>
24
+ <depends>
25
+ <!-- no dependencies -->
26
+ </depends>
27
+ </oxidian_opentaps>
28
+ </modules>
29
+ <global>
30
+ <models />
31
+ <blocks>
32
+ <oxidian_opentaps><class>Oxidian_OpenTaps_Block</class></oxidian_opentaps>
33
+ </blocks>
34
+ <resources />
35
+ <extraconfig />
36
+ <helpers>
37
+ <oxidian_opentaps>
38
+ <class>Oxidian_OpenTaps_Helper</class>
39
+ </oxidian_opentaps>
40
+ </helpers>
41
+ </global>
42
+
43
+ <adminhtml>
44
+ <layout>
45
+ <updates>
46
+ <oxidian_opentaps>
47
+ <file>oxidian_opentaps.xml</file>
48
+ </oxidian_opentaps>
49
+ </updates>
50
+ </layout>
51
+
52
+ <acl>
53
+ <resources>
54
+ <admin>
55
+ <children>
56
+ <system>
57
+ <children>
58
+ <config>
59
+ <children>
60
+ <oxidian_opentaps>
61
+ <title>Opent Taps Section</title>
62
+ </oxidian_opentaps>
63
+ </children>
64
+ </config>
65
+ </children>
66
+ </system>
67
+ </children>
68
+ </admin>
69
+ </resources>
70
+ </acl>
71
+ </adminhtml>
72
+
73
+ </config>
app/code/community/Oxidian/OpenTaps/etc/system.xml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Copyright (c) Open Source Strategies Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+ -->
20
+ <config>
21
+ <sections>
22
+ <oxidian_opentaps translate="label" module="oxidian_opentaps">
23
+ <label>Opentaps CRM2</label>
24
+ <tab>sales</tab>
25
+ <frontend_type>text</frontend_type>
26
+ <sort_order>9900</sort_order>
27
+ <show_in_default>1</show_in_default>
28
+ <show_in_website>1</show_in_website>
29
+ <show_in_store>1</show_in_store>
30
+ <expanded>1</expanded>
31
+ <groups>
32
+ <settings translate="label">
33
+ <label>Open Taps Settings</label>
34
+ <frontend_type>text</frontend_type>
35
+ <sort_order>1</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
+ <domain translate="label,comment">
41
+ <label>Domain</label>
42
+ <comment><![CDATA[Registered domain.]]></comment>
43
+ <frontend_type>text</frontend_type>
44
+ <sort_order>1</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
+ </domain>
49
+ <user_id translate="label">
50
+ <label>User Id</label>
51
+ <frontend_type>text</frontend_type>
52
+ <sort_order>2</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ </user_id>
57
+ <auth_token translate="label">
58
+ <label>Auth Token</label>
59
+ <frontend_type>text</frontend_type>
60
+ <sort_order>3</sort_order>
61
+ <show_in_default>1</show_in_default>
62
+ <show_in_website>1</show_in_website>
63
+ <show_in_store>1</show_in_store>
64
+ </auth_token>
65
+ <javascript_location translate="label">
66
+ <label>Javascript location</label>
67
+ <frontend_type>text</frontend_type>
68
+ <sort_order>3</sort_order>
69
+ <show_in_default>1</show_in_default>
70
+ <show_in_website>1</show_in_website>
71
+ <show_in_store>1</show_in_store>
72
+ </javascript_location>
73
+ </fields>
74
+ </settings>
75
+ </groups>
76
+ </oxidian_opentaps>
77
+ </sections>
78
+ </config>
app/design/adminhtml/default/default/layout/oxidian_opentaps.xml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Copyright (c) Open Source Strategies Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+ -->
20
+ <layout>
21
+ <adminhtml_sales_order_view>
22
+ <reference name="head">
23
+ <action method="addJs"><file>mage/adminhtml/giftmessage.js</file></action>
24
+ <action method="addJs"><file>mage/adminhtml/giftoptions/tooltip.js</file></action>
25
+ </reference>
26
+ <reference name="content">
27
+ <block type="Oxidian_OpenTaps_Block_Info" ></block>
28
+ </reference>
29
+ </adminhtml_sales_order_view>
30
+ </layout>
app/design/adminhtml/default/default/template/oxidian_opentaps/info.phtml ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /**
3
+ * Copyright (c) Open Source Strategies Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *
17
+ */
18
+ -->
19
+ <style>
20
+ .innerTitleOpenTaps , .innerTitleOpenTapsMain
21
+ {
22
+ clear:both;
23
+ height:30px;
24
+ font-size:14px;
25
+ background-color:#e5e5e5;
26
+ padding-left:14px;
27
+ padding-top:10px;
28
+ font-weight:bold
29
+ }
30
+
31
+ .innerTitleOpenTapsMain
32
+ {
33
+ margin-bottom: 13px;
34
+ }
35
+
36
+ .innerContentOpenTaps .scrollContainer
37
+ {
38
+ position:static;
39
+ clip:auto;
40
+ overflow:auto;
41
+ }
42
+
43
+ .innerContentOpenTaps
44
+ {
45
+ border: 1px solid #e3e3e3;
46
+ width: 48%;
47
+ margin-bottom: 60px;
48
+ }
49
+
50
+ .openTapsContainer
51
+ {
52
+ width: 100%;
53
+ border: 1px solid #e3e3e3;
54
+ min-height: 500px;
55
+ }
56
+
57
+ .termsOfServiceOpenTaps
58
+ {
59
+ width: 100%;
60
+ text-align: center;
61
+ margin-top: 100px;
62
+ bottom: 0px;
63
+ height: 20px;
64
+ clear: both;
65
+
66
+ }
67
+
68
+ .termsOfServiceOpenTaps a
69
+ {
70
+ color:#008bd5;
71
+ text-decoration: none;
72
+ font-weight: 14px;
73
+ }
74
+
75
+ </style>
76
+
77
+ <div class="openTapsContainer">
78
+
79
+ <div class="innerTitleOpenTapsMain">
80
+ <img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);?>adminhtml/default/default/images/opentaps_logo.png" alt="opentaps logo" />
81
+ </div>
82
+
83
+ <div class="innerContentOpenTaps" style="margin-left:15px;float:left">
84
+ <div class="innerTitleOpenTaps" >
85
+ <?php echo Mage::helper('oxidian_opentaps')->__('Related Activities');?>
86
+ </div>
87
+ <?php echo $this->getLayout()->createBlock("oxidian_opentaps/widget_activity")->toHtml(); ?>
88
+
89
+ <?php echo $this->getLayout()->createBlock("oxidian_opentaps/widget_activitycreate")->toHtml(); ?>
90
+ </div>
91
+
92
+ <div class="innerContentOpenTaps" style="margin-right:15px;float:right">
93
+ <div class="innerTitleOpenTaps">
94
+ <?php echo Mage::helper('oxidian_opentaps')->__('Similar Activities');?>
95
+ </div>
96
+
97
+ <?php echo $this->getLayout()->createBlock("oxidian_opentaps/widget_activitytask")->toHtml(); ?>
98
+ </div>
99
+ <div class="termsOfServiceOpenTaps"><a href="http://crm2.opentaps.com/static/terms_of_use.html" target="_blank"><?php echo Mage::helper('oxidian_opentaps')->__('Terms of Service')?></a></div>
100
+ </div>
101
+
102
+ <script type="text/javascript">
103
+ window.require = { waitSeconds:600 };
104
+ </script>
105
+
106
+ <?php
107
+ $javascriptLocation = 'https://crm2.opentaps.com';
108
+ $javascriptLocationParam = Mage::getStoreConfig('oxidian_opentaps/settings/javascript_location', Mage::app()->getStore());
109
+ if (isset($javascriptLocationParam) && $javascriptLocationParam != '') {
110
+ $javascriptLocation = $javascriptLocationParam;
111
+ }
112
+ ?>
113
+
114
+ <script type="text/javascript">
115
+ function downloadOpentTaps() {
116
+ var element = document.createElement("script");
117
+ element.src = "<?php echo $javascriptLocation;?>/contactsWidget/client/js/libs/requirejs/require.js";
118
+ element.setAttribute("data-main","<?php echo $javascriptLocation;?>/js/activity-widgets/build/activity-widgets.packed.js")
119
+ document.body.appendChild(element);
120
+ }
121
+ if (window.addEventListener) {
122
+ window.addEventListener("load", downloadOpentTaps, false);
123
+ } else if (window.attachEvent) {
124
+ window.attachEvent("onload", downloadOpentTaps);
125
+ } else {
126
+ window.onload = downloadOpentTaps;
127
+ }
128
+ </script>
129
+
app/design/adminhtml/default/default/template/oxidian_opentaps/widget.phtml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ /**
3
+ * Copyright (c) Open Source Strategies Inc.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *
17
+ */
18
+ -->
19
+ <div
20
+ <?php foreach ($this->getRequestData() as $key=>$value):?>
21
+ <?php echo "$key='$value'"?>
22
+ <?php endforeach;?>
23
+ ></div>
app/etc/modules/Oxidian_OpenTaps.xml ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Copyright (c) Open Source Strategies Inc.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ *
18
+ */
19
+ -->
20
+ <config>
21
+ <modules>
22
+ <Oxidian_OpenTaps>
23
+ <active>true</active>
24
+ <codePool>community</codePool>
25
+ <depends>
26
+ <Mage_Sales/>
27
+ </depends>
28
+ </Oxidian_OpenTaps>
29
+ </modules>
30
+ </config>
31
+
package.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>opentaps_CRM2</name>
4
+ <version>1.0.1</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Link your emails and discussions to your Magento sales orders</summary>
10
+ <description>opentaps CRM2 brings together all your company's communications and tasks as they happen, so your team could work smarter in a natural way. By synchronizing directly with Gmail, it archives all the incoming and outgoing communications of your company with vendors and customers. opentaps CRM2 then uses big data search technology to link your communications with your orders, so you and your team can have full visibility to your customer's interactions. You can also discuss customer issues, create, assign, and manage tasks, and upload and manage files. &#xD;
11
+ &#xD;
12
+ Features: &#xD;
13
+ This Magento extension embeds opentaps CRM2 right into your order screen, so there's no need for working with a separate CRM system. Everything happens as part of your Magento order admin. On any Sales Order view in the magento backend, an opentaps CRM2 widget will show up at the bottom of the page. This widget allows you to discuss the sales order with your team members and link all communications, including emails, with the order.&#xD;
14
+ &#xD;
15
+ Settings &#xD;
16
+ To configure the widget, sign up for an account at opentaps.com Then login in as an admin user, go to System (from the top menu) &gt; Configuration then in the left menu under Sales &gt; Opentaps CRM2:&#xD;
17
+ &#xD;
18
+ 1) setup the authToken and domain according to your subscription&#xD;
19
+ &#xD;
20
+ 2) the other 2 options should be left blank&#xD;
21
+ </description>
22
+ <notes>Fix for description, author and package name.</notes>
23
+ <authors><author><name>Open Source Strategies Inc</name><user>sichen1234</user><email>sichen@opensourcestrategies.com</email></author></authors>
24
+ <date>2014-12-18</date>
25
+ <time>20:46:56</time>
26
+ <contents><target name="magecommunity"><dir name="Oxidian"><dir name="OpenTaps"><dir name="Block"><file name="Info.php" hash="18d30bb9b90c009c724fe413a3f99155"/><dir name="Widget"><file name="Activity.php" hash="3fbe55bb09ba575318dccbc1df195672"/><file name="Activitycreate.php" hash="1ae13e788359d9c06a27764485d1d806"/><file name="Activitytask.php" hash="0e7674e2f48186fa47024d2ba57d4ac6"/></dir><file name="Widget.php" hash="b8e148159681ca361e24339849673786"/></dir><dir name="Helper"><file name="Data.php" hash="93b5337713e8d12bb946a00fbfebef67"/></dir><dir name="etc"><file name="config.xml" hash="1626967a7ce5c1a596463d9971f7f87b"/><file name="system.xml" hash="eec8c2ebe982278eca4caf3689caaa81"/></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="opentaps_logo.png" hash="ca2615d1369f8fbedb80938097fe9455"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="oxidian_opentaps"><file name="info.phtml" hash="fd393fbf74df93177df102f12a93336c"/><file name="widget.phtml" hash="ae2ef28a3eee22bee0a0831e9ee9b7a4"/></dir></dir><dir name="layout"><file name="oxidian_opentaps.xml" hash="3f1966afe94db5da04d456be571fb1f3"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Oxidian_OpenTaps.xml" hash="1e5edb820ef04b56a61cc6f68f3f9bc0"/></dir></target></contents>
27
+ <compatible/>
28
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name/><channel>connect.magentocommerce.com/core</channel><min/><max/></package></required></dependencies>
29
+ </package>
skin/adminhtml/default/default/images/opentaps_logo.png ADDED
Binary file