Version Notes
-
Download this release
Release Info
Developer | Magento Core Team |
Extension | Customercall_Callbutton |
Version | 1.1.0 |
Comparing to | |
See all releases |
Version 1.1.0
- app/code/community/Customercall/Callbutton/Block/Callbutton.php +17 -0
- app/code/community/Customercall/Callbutton/Helper/Data.php +6 -0
- app/code/community/Customercall/Callbutton/etc/config.xml +76 -0
- app/code/community/Customercall/Callbutton/etc/system.xml +59 -0
- app/design/frontend/default/default/layout/callbutton.xml +8 -0
- app/design/frontend/default/default/template/callbutton/callbutton.phtml +8 -0
- app/etc/modules/Customercall_Callbutton.xml +17 -0
- package.xml +21 -0
app/code/community/Customercall/Callbutton/Block/Callbutton.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Customercall_Callbutton_Block_Callbutton extends Mage_Core_Block_Template
|
3 |
+
{
|
4 |
+
public function _prepareLayout()
|
5 |
+
{
|
6 |
+
return parent::_prepareLayout();
|
7 |
+
}
|
8 |
+
|
9 |
+
public function getCallbutton()
|
10 |
+
{
|
11 |
+
if (!$this->hasData('callbutton')) {
|
12 |
+
$this->setData('callbutton', Mage::registry('callbutton'));
|
13 |
+
}
|
14 |
+
return $this->getData('callbutton');
|
15 |
+
|
16 |
+
}
|
17 |
+
}
|
app/code/community/Customercall/Callbutton/Helper/Data.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Customercall_Callbutton_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
app/code/community/Customercall/Callbutton/etc/config.xml
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Customercall
|
5 |
+
* @package Customercall_Callbutton
|
6 |
+
* @author georgegachi@gmail.com
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
+
<config>
|
11 |
+
<modules>
|
12 |
+
<Customercall_Callbutton>
|
13 |
+
<version>0.1.0</version>
|
14 |
+
</Customercall_Callbutton>
|
15 |
+
</modules>
|
16 |
+
<frontend>
|
17 |
+
<layout>
|
18 |
+
<updates>
|
19 |
+
<callbutton>
|
20 |
+
<file>callbutton.xml</file>
|
21 |
+
</callbutton>
|
22 |
+
</updates>
|
23 |
+
</layout>
|
24 |
+
</frontend>
|
25 |
+
<admin>
|
26 |
+
<routers>
|
27 |
+
<callbutton>
|
28 |
+
<use>admin</use>
|
29 |
+
<args>
|
30 |
+
<module>Customercall_Callbutton</module>
|
31 |
+
<frontName>callbutton</frontName>
|
32 |
+
</args>
|
33 |
+
</callbutton>
|
34 |
+
</routers>
|
35 |
+
</admin>
|
36 |
+
<adminhtml>
|
37 |
+
|
38 |
+
<acl>
|
39 |
+
<resources>
|
40 |
+
<admin>
|
41 |
+
<children>
|
42 |
+
<system>
|
43 |
+
<children>
|
44 |
+
<config>
|
45 |
+
<children>
|
46 |
+
<customercall_options>
|
47 |
+
<title>Store Hello World Module Section</title>
|
48 |
+
</customercall_options>
|
49 |
+
</children>
|
50 |
+
</config>
|
51 |
+
</children>
|
52 |
+
</system>
|
53 |
+
</children>
|
54 |
+
</admin>
|
55 |
+
</resources>
|
56 |
+
</acl>
|
57 |
+
|
58 |
+
</adminhtml>
|
59 |
+
<global>
|
60 |
+
<models>
|
61 |
+
<callbutton>
|
62 |
+
<class>Customercall_Callbutton_Model</class>
|
63 |
+
</callbutton>
|
64 |
+
</models>
|
65 |
+
<blocks>
|
66 |
+
<callbutton>
|
67 |
+
<class>Customercall_Callbutton_Block</class>
|
68 |
+
</callbutton>
|
69 |
+
</blocks>
|
70 |
+
<helpers>
|
71 |
+
<callbutton>
|
72 |
+
<class>Customercall_Callbutton_Helper</class>
|
73 |
+
</callbutton>
|
74 |
+
</helpers>
|
75 |
+
</global>
|
76 |
+
</config>
|
app/code/community/Customercall/Callbutton/etc/system.xml
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category CustomerCall
|
5 |
+
* @package Customercall_callbutton
|
6 |
+
* @author georgegachi@gmail.com
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
+
<config>
|
11 |
+
<sections>
|
12 |
+
<customercall_options translate="label" module="callbutton">
|
13 |
+
<label>CustomerCall CallButton</label>
|
14 |
+
<tab>customer</tab>
|
15 |
+
<frontend_type>text</frontend_type>
|
16 |
+
<sort_order>1000</sort_order>
|
17 |
+
<show_in_default>1</show_in_default>
|
18 |
+
<show_in_website>1</show_in_website>
|
19 |
+
<show_in_store>1</show_in_store>
|
20 |
+
<groups>
|
21 |
+
<customercallapiconfig translate="label">
|
22 |
+
<label>CallBack (Click-to-Call) by www.customercall.net - be reached!</label>
|
23 |
+
<frontend_type>text</frontend_type>
|
24 |
+
<sort_order>1</sort_order>
|
25 |
+
<show_in_default>1</show_in_default>
|
26 |
+
<show_in_website>1</show_in_website>
|
27 |
+
<show_in_store>1</show_in_store>
|
28 |
+
<comment><![CDATA[<div style='margin-bottom:10px;padding-bottom:10px;border-bottom:1px #bbb dotted'>
|
29 |
+
<b>English:</b> CustomerCall offers a callback (click-to-call) button for your customers to<br/>reach you instantly over the regular phone-line. No software install required.<br/><br/>
|
30 |
+
<b>German:</b> CustomerCall stellt einen Rückruf Button für Ihren Shop zur Verfügung, damit<br/>Kunden Sie im richtigen Moment sofort und über das reguläre Telefon erreichen können.<br/>Keine Softwareinstallation notwedig.<br/><br/>
|
31 |
+
<a style='color:#00f' target='_blank' href='http://www.customercall.net/de/goto/so-funktionierts/ihr-online-shop/'>Info-Link</a><br/>
|
32 |
+
<a style='color:#00f' target='_blank' href='https://login.customercall.net/anmeldung.php'>Free Test: Sign up / Anmeldung</a>
|
33 |
+
</div>]]>
|
34 |
+
</comment>
|
35 |
+
<fields>
|
36 |
+
<customercall_use translate="label">
|
37 |
+
<label>Active</label>
|
38 |
+
<frontend_type>select</frontend_type>
|
39 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
40 |
+
<sort_order>70</sort_order>
|
41 |
+
<show_in_default>1</show_in_default>
|
42 |
+
<show_in_website>1</show_in_website>
|
43 |
+
<show_in_store>0</show_in_store>
|
44 |
+
</customercall_use>
|
45 |
+
<customercall_script>
|
46 |
+
<label>Button code</label>
|
47 |
+
<frontend_type>textarea</frontend_type>
|
48 |
+
<sort_order>81</sort_order>
|
49 |
+
<show_in_default>1</show_in_default>
|
50 |
+
<show_in_website>1</show_in_website>
|
51 |
+
<show_in_store>0</show_in_store>
|
52 |
+
<comment><![CDATA[Paste CallButton-Code here.<br/>CallButton Code hier einfügen.]]></comment>
|
53 |
+
</customercall_script>
|
54 |
+
</fields>
|
55 |
+
</customercallapiconfig>
|
56 |
+
</groups>
|
57 |
+
</customercall_options>
|
58 |
+
</sections>
|
59 |
+
</config>
|
app/design/frontend/default/default/layout/callbutton.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout version="0.1.0">
|
3 |
+
<default>
|
4 |
+
<reference name="right">
|
5 |
+
<block type="callbutton/callbutton" name="callbutton" after = "catalog.compare.sidebar" template="callbutton/callbutton.phtml" />
|
6 |
+
</reference>
|
7 |
+
</default>
|
8 |
+
</layout>
|
app/design/frontend/default/default/template/callbutton/callbutton.phtml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$CustomerCallApi = Mage::getStoreConfig('customercall_options/customercallapiconfig/customercall_script');
|
3 |
+
$isActiveCustomerCall = Mage::getStoreConfig('customercall_options/customercallapiconfig/customercall_use');
|
4 |
+
|
5 |
+
if ($isActiveCustomerCall){
|
6 |
+
echo $CustomerCallApi;
|
7 |
+
}
|
8 |
+
?>
|
app/etc/modules/Customercall_Callbutton.xml
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @category Customercall
|
5 |
+
* @package Customercall_Callbutton
|
6 |
+
* @author ModuleCreator
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
+
<config>
|
11 |
+
<modules>
|
12 |
+
<Customercall_Callbutton>
|
13 |
+
<active>true</active>
|
14 |
+
<codePool>community</codePool>
|
15 |
+
</Customercall_Callbutton>
|
16 |
+
</modules>
|
17 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Customercall_Callbutton</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">AFL</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Instant Call-Back Button for your online business / Sofortiger Rückruf auf Mausklick per Callback-Button</summary>
|
10 |
+
<description>English: CustomerCall click-to-call callback solution is a tool that stands for availability, service and customer satisfaction for your online business. Your customer is just one click away. Sign-up for free and get a two week test account totally free of charge. All calls are connected over the regular phone.
|
11 |
+
|
12 |
+
German: CustomerCall ist ein CallBack/Rückruf Button für Ihre Webseite. Dabei gibt der Kunde seine eigene Rufnummer ein und wird innerhalb von 10 Sekunden zurück gerufen und sofort mit Ihrem Unternehmen verbunden - denn Sie wissen ja: Erreichbarkeit + Service = Kundenzufriedenheit und somit mehr Erlös.
|
13 |
+
Alle Anrufe finden über das reguläre Telefonnetz statt.</description>
|
14 |
+
<notes>-</notes>
|
15 |
+
<authors><author><name>F. Welter</name><user>auto-converted</user><email>f.welter@customercall.net</email></author></authors>
|
16 |
+
<date>2010-05-22</date>
|
17 |
+
<time>11:04:34</time>
|
18 |
+
<contents><target name="magecommunity"><dir name="Customercall"><dir name="Callbutton"><dir name="Block"><file name="Callbutton.php" hash="5494628fc890ebbb3f0219479532b683"/></dir><dir name="etc"><file name="config.xml" hash="8ce8475aeb5bd843bd5cc5a5bf50818b"/><file name="system.xml" hash="efa79c54828fef5301dbbe50375f230d"/></dir><dir name="Helper"><file name="Data.php" hash="1f635a2e946ae70d119bb6c111ef1788"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="callbutton.xml" hash="0156dff0fa7a541857d2e8be52fa7c92"/></dir><dir name="template"><dir name="callbutton"><file name="callbutton.phtml" hash="1f5dcd6ae95ad9aecc026a47407fbc93"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Customercall_Callbutton.xml" hash="7fbf2012d99bc4c77a08766ec7057bb8"/></dir></target></contents>
|
19 |
+
<compatible/>
|
20 |
+
<dependencies/>
|
21 |
+
</package>
|