Version Notes
Bug fixing, error logging
Download this release
Release Info
| Developer | János Gál |
| Extension | OptiMonkM1 |
| Version | 1.0.4 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.3 to 1.0.4
- app/code/community/Wse/OptiMonk/Block/Entrycode.php +1 -1
- app/code/community/Wse/OptiMonk/Helper/Data.php +1 -1
- app/code/community/Wse/OptiMonk/Model/Observer.php +26 -1
- app/code/community/Wse/OptiMonk/etc/config.xml +110 -100
- app/design/frontend/base/default/layout/optimonk.xml +35 -35
- app/design/frontend/base/default/layout/xmlconnect.xml +308 -0
- app/design/frontend/base/default/template/optimonk/cart.phtml +36 -36
- app/design/frontend/base/default/template/optimonk/entrycode.phtml +41 -41
- app/etc/modules/Wse_OptiMonk.xml +9 -9
- package.xml +30 -6
app/code/community/Wse/OptiMonk/Block/Entrycode.php
CHANGED
|
@@ -40,7 +40,7 @@ class Wse_OptiMonk_Block_Entrycode extends Mage_Core_Block_Template
|
|
| 40 |
*/
|
| 41 |
public function getId()
|
| 42 |
{
|
| 43 |
-
return $this->getModuleHelper()->getId();
|
| 44 |
}
|
| 45 |
|
| 46 |
/**
|
| 40 |
*/
|
| 41 |
public function getId()
|
| 42 |
{
|
| 43 |
+
return trim($this->getModuleHelper()->getId());
|
| 44 |
}
|
| 45 |
|
| 46 |
/**
|
app/code/community/Wse/OptiMonk/Helper/Data.php
CHANGED
|
@@ -45,7 +45,7 @@ class Wse_Optimonk_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 45 |
*/
|
| 46 |
public function getId()
|
| 47 |
{
|
| 48 |
-
return $this->getConfigValue('id');
|
| 49 |
}
|
| 50 |
|
| 51 |
/**
|
| 45 |
*/
|
| 46 |
public function getId()
|
| 47 |
{
|
| 48 |
+
return trim($this->getConfigValue('id'));
|
| 49 |
}
|
| 50 |
|
| 51 |
/**
|
app/code/community/Wse/OptiMonk/Model/Observer.php
CHANGED
|
@@ -19,7 +19,7 @@
|
|
| 19 |
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
| 20 |
* @author Tibor Berna
|
| 21 |
*/
|
| 22 |
-
class Wse_OptiMonk_Model_Observer
|
| 23 |
{
|
| 24 |
/**
|
| 25 |
* Listen to the event core_block_abstract_to_html_after
|
|
@@ -53,6 +53,31 @@ class Wse_OptiMonk_Model_Observer
|
|
| 53 |
return $this;
|
| 54 |
}
|
| 55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
/**
|
| 57 |
* @return Wse_Optimonk_Helper_Data
|
| 58 |
*/
|
| 19 |
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
| 20 |
* @author Tibor Berna
|
| 21 |
*/
|
| 22 |
+
class Wse_OptiMonk_Model_Observer extends Mage_Core_Model_Session_Abstract
|
| 23 |
{
|
| 24 |
/**
|
| 25 |
* Listen to the event core_block_abstract_to_html_after
|
| 53 |
return $this;
|
| 54 |
}
|
| 55 |
|
| 56 |
+
/**
|
| 57 |
+
* Logging plugin install
|
| 58 |
+
*/
|
| 59 |
+
public function sendDataToOptimonk()
|
| 60 |
+
{
|
| 61 |
+
$url = 'https://front.optimonk.com/apps/magento/connect';
|
| 62 |
+
$domain = parse_url(Mage::getBaseUrl( Mage_Core_Model_Store::URL_TYPE_WEB));
|
| 63 |
+
|
| 64 |
+
$data = array(
|
| 65 |
+
"user" => trim($this->getModuleHelper()->getId()),
|
| 66 |
+
"domain" => $domain['host'],
|
| 67 |
+
"version" => Mage::getVersion()
|
| 68 |
+
);
|
| 69 |
+
|
| 70 |
+
$ch = curl_init($url);
|
| 71 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
| 72 |
+
curl_setopt($ch, CURLOPT_POST, true);
|
| 73 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
|
| 74 |
+
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
| 75 |
+
curl_setopt($ch, CURLOPT_USERAGENT, "Magento OM plugin");
|
| 76 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
| 77 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
| 78 |
+
curl_exec($ch);
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
/**
|
| 82 |
* @return Wse_Optimonk_Helper_Data
|
| 83 |
*/
|
app/code/community/Wse/OptiMonk/etc/config.xml
CHANGED
|
@@ -1,100 +1,110 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<!--
|
| 3 |
-
/**
|
| 4 |
-
* Optimonk plugin for Magento 1.7+
|
| 5 |
-
*
|
| 6 |
-
* This program is free software: you can redistribute it and/or modify
|
| 7 |
-
* it under the terms of the GNU General Public License as published by
|
| 8 |
-
* the Free Software Foundation, either version 3 of the License, or
|
| 9 |
-
* (at your option) any later version.
|
| 10 |
-
*
|
| 11 |
-
* This program is distributed in the hope that it will be useful,
|
| 12 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 14 |
-
* GNU General Public License for more details.
|
| 15 |
-
*
|
| 16 |
-
* For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
|
| 17 |
-
*
|
| 18 |
-
* @package Wse_OptiMonk
|
| 19 |
-
* @copyright Copyright (c) 2016 Webshop Marketing Kft (www.optimonk.com)
|
| 20 |
-
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
| 21 |
-
* @author Tibor Berna
|
| 22 |
-
*/
|
| 23 |
-
-->
|
| 24 |
-
<config>
|
| 25 |
-
<modules>
|
| 26 |
-
<Wse_OptiMonk>
|
| 27 |
-
<version>0.1.0</version>
|
| 28 |
-
</Wse_OptiMonk>
|
| 29 |
-
</modules>
|
| 30 |
-
|
| 31 |
-
<global>
|
| 32 |
-
<blocks>
|
| 33 |
-
<optimonk>
|
| 34 |
-
<class>Wse_OptiMonk_Block</class>
|
| 35 |
-
</optimonk>
|
| 36 |
-
</blocks>
|
| 37 |
-
<helpers>
|
| 38 |
-
<optimonk>
|
| 39 |
-
<class>Wse_OptiMonk_Helper</class>
|
| 40 |
-
</optimonk>
|
| 41 |
-
</helpers>
|
| 42 |
-
<models>
|
| 43 |
-
<optimonk>
|
| 44 |
-
<class>Wse_OptiMonk_Model</class>
|
| 45 |
-
</optimonk>
|
| 46 |
-
</models>
|
| 47 |
-
</global>
|
| 48 |
-
|
| 49 |
-
<frontend>
|
| 50 |
-
<layout>
|
| 51 |
-
<updates>
|
| 52 |
-
<optimonk>
|
| 53 |
-
<file>optimonk.xml</file>
|
| 54 |
-
</optimonk>
|
| 55 |
-
</updates>
|
| 56 |
-
</layout>
|
| 57 |
-
<events>
|
| 58 |
-
<core_block_abstract_to_html_after>
|
| 59 |
-
<observers>
|
| 60 |
-
<optimonk_observer>
|
| 61 |
-
<type>singleton</type>
|
| 62 |
-
<class>Wse_OptiMonk_Model_Observer</class>
|
| 63 |
-
<method>coreBlockAbstractToHtmlAfter</method>
|
| 64 |
-
</optimonk_observer>
|
| 65 |
-
</observers>
|
| 66 |
-
</core_block_abstract_to_html_after>
|
| 67 |
-
</events>
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Optimonk plugin for Magento 1.7+
|
| 5 |
+
*
|
| 6 |
+
* This program is free software: you can redistribute it and/or modify
|
| 7 |
+
* it under the terms of the GNU General Public License as published by
|
| 8 |
+
* the Free Software Foundation, either version 3 of the License, or
|
| 9 |
+
* (at your option) any later version.
|
| 10 |
+
*
|
| 11 |
+
* This program is distributed in the hope that it will be useful,
|
| 12 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 14 |
+
* GNU General Public License for more details.
|
| 15 |
+
*
|
| 16 |
+
* For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
|
| 17 |
+
*
|
| 18 |
+
* @package Wse_OptiMonk
|
| 19 |
+
* @copyright Copyright (c) 2016 Webshop Marketing Kft (www.optimonk.com)
|
| 20 |
+
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
| 21 |
+
* @author Tibor Berna
|
| 22 |
+
*/
|
| 23 |
+
-->
|
| 24 |
+
<config>
|
| 25 |
+
<modules>
|
| 26 |
+
<Wse_OptiMonk>
|
| 27 |
+
<version>0.1.0</version>
|
| 28 |
+
</Wse_OptiMonk>
|
| 29 |
+
</modules>
|
| 30 |
+
|
| 31 |
+
<global>
|
| 32 |
+
<blocks>
|
| 33 |
+
<optimonk>
|
| 34 |
+
<class>Wse_OptiMonk_Block</class>
|
| 35 |
+
</optimonk>
|
| 36 |
+
</blocks>
|
| 37 |
+
<helpers>
|
| 38 |
+
<optimonk>
|
| 39 |
+
<class>Wse_OptiMonk_Helper</class>
|
| 40 |
+
</optimonk>
|
| 41 |
+
</helpers>
|
| 42 |
+
<models>
|
| 43 |
+
<optimonk>
|
| 44 |
+
<class>Wse_OptiMonk_Model</class>
|
| 45 |
+
</optimonk>
|
| 46 |
+
</models>
|
| 47 |
+
</global>
|
| 48 |
+
|
| 49 |
+
<frontend>
|
| 50 |
+
<layout>
|
| 51 |
+
<updates>
|
| 52 |
+
<optimonk>
|
| 53 |
+
<file>optimonk.xml</file>
|
| 54 |
+
</optimonk>
|
| 55 |
+
</updates>
|
| 56 |
+
</layout>
|
| 57 |
+
<events>
|
| 58 |
+
<core_block_abstract_to_html_after>
|
| 59 |
+
<observers>
|
| 60 |
+
<optimonk_observer>
|
| 61 |
+
<type>singleton</type>
|
| 62 |
+
<class>Wse_OptiMonk_Model_Observer</class>
|
| 63 |
+
<method>coreBlockAbstractToHtmlAfter</method>
|
| 64 |
+
</optimonk_observer>
|
| 65 |
+
</observers>
|
| 66 |
+
</core_block_abstract_to_html_after>
|
| 67 |
+
</events>
|
| 68 |
+
</frontend>
|
| 69 |
+
|
| 70 |
+
<adminhtml>
|
| 71 |
+
<acl>
|
| 72 |
+
<resources>
|
| 73 |
+
<admin>
|
| 74 |
+
<children>
|
| 75 |
+
<system>
|
| 76 |
+
<children>
|
| 77 |
+
<config>
|
| 78 |
+
<children>
|
| 79 |
+
<optimonk translate="title" module="optimonk">
|
| 80 |
+
<title>optimonk</title>
|
| 81 |
+
</optimonk>
|
| 82 |
+
</children>
|
| 83 |
+
</config>
|
| 84 |
+
</children>
|
| 85 |
+
</system>
|
| 86 |
+
</children>
|
| 87 |
+
</admin>
|
| 88 |
+
</resources>
|
| 89 |
+
</acl>
|
| 90 |
+
<events>
|
| 91 |
+
<admin_system_config_changed_section_optimonk>
|
| 92 |
+
<observers>
|
| 93 |
+
<optimonk_observer>
|
| 94 |
+
<type>singleton</type>
|
| 95 |
+
<class>Wse_OptiMonk_Model_Observer</class>
|
| 96 |
+
<method>sendDataToOptimonk</method>
|
| 97 |
+
</optimonk_observer>
|
| 98 |
+
</observers>
|
| 99 |
+
</admin_system_config_changed_section_optimonk>
|
| 100 |
+
</events>
|
| 101 |
+
</adminhtml>
|
| 102 |
+
|
| 103 |
+
<default>
|
| 104 |
+
<optimonk>
|
| 105 |
+
<settings>
|
| 106 |
+
<active>0</active>
|
| 107 |
+
</settings>
|
| 108 |
+
</optimonk>
|
| 109 |
+
</default>
|
| 110 |
+
</config>
|
app/design/frontend/base/default/layout/optimonk.xml
CHANGED
|
@@ -1,35 +1,35 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<!--
|
| 3 |
-
/**
|
| 4 |
-
* OptiMonk extension for Magento
|
| 5 |
-
*
|
| 6 |
-
* This program is free software: you can redistribute it and/or modify
|
| 7 |
-
* it under the terms of the GNU General Public License as published by
|
| 8 |
-
* the Free Software Foundation, either version 3 of the License, or
|
| 9 |
-
* (at your option) any later version.
|
| 10 |
-
*
|
| 11 |
-
* This program is distributed in the hope that it will be useful,
|
| 12 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 14 |
-
* GNU General Public License for more details.
|
| 15 |
-
*
|
| 16 |
-
* For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
|
| 17 |
-
*
|
| 18 |
-
* @package Wse_OptiMonk
|
| 19 |
-
* @copyright Copyright (c) 2016 Webshop Marketing Kft (www.optimonk.com)
|
| 20 |
-
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
| 21 |
-
* @author Tibor Berna
|
| 22 |
-
*/
|
| 23 |
-
-->
|
| 24 |
-
<layout>
|
| 25 |
-
<default>
|
| 26 |
-
<block type="optimonk/cart" name="optimonk_cart" template="optimonk/cart.phtml" />
|
| 27 |
-
<block type="optimonk/entrycode" name="optimonk" template="optimonk/entrycode.phtml" />
|
| 28 |
-
|
| 29 |
-
<reference name="after_body_start">
|
| 30 |
-
<action method="append">
|
| 31 |
-
<block>optimonk_script</block>
|
| 32 |
-
</action>
|
| 33 |
-
</reference>
|
| 34 |
-
</default>
|
| 35 |
-
</layout>
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* OptiMonk extension for Magento
|
| 5 |
+
*
|
| 6 |
+
* This program is free software: you can redistribute it and/or modify
|
| 7 |
+
* it under the terms of the GNU General Public License as published by
|
| 8 |
+
* the Free Software Foundation, either version 3 of the License, or
|
| 9 |
+
* (at your option) any later version.
|
| 10 |
+
*
|
| 11 |
+
* This program is distributed in the hope that it will be useful,
|
| 12 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 14 |
+
* GNU General Public License for more details.
|
| 15 |
+
*
|
| 16 |
+
* For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
|
| 17 |
+
*
|
| 18 |
+
* @package Wse_OptiMonk
|
| 19 |
+
* @copyright Copyright (c) 2016 Webshop Marketing Kft (www.optimonk.com)
|
| 20 |
+
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
| 21 |
+
* @author Tibor Berna
|
| 22 |
+
*/
|
| 23 |
+
-->
|
| 24 |
+
<layout>
|
| 25 |
+
<default>
|
| 26 |
+
<block type="optimonk/cart" name="optimonk_cart" template="optimonk/cart.phtml" />
|
| 27 |
+
<block type="optimonk/entrycode" name="optimonk" template="optimonk/entrycode.phtml" />
|
| 28 |
+
|
| 29 |
+
<reference name="after_body_start">
|
| 30 |
+
<action method="append">
|
| 31 |
+
<block>optimonk_script</block>
|
| 32 |
+
</action>
|
| 33 |
+
</reference>
|
| 34 |
+
</default>
|
| 35 |
+
</layout>
|
app/design/frontend/base/default/layout/xmlconnect.xml
ADDED
|
@@ -0,0 +1,308 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<!--
|
| 3 |
+
/**
|
| 4 |
+
* Magento
|
| 5 |
+
*
|
| 6 |
+
* NOTICE OF LICENSE
|
| 7 |
+
*
|
| 8 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
| 9 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
| 10 |
+
* It is also available through the world-wide-web at this URL:
|
| 11 |
+
* http://opensource.org/licenses/afl-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 |
+
* DISCLAIMER
|
| 17 |
+
*
|
| 18 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 19 |
+
* versions in the future. If you wish to customize Magento for your
|
| 20 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
| 21 |
+
*
|
| 22 |
+
* @category design
|
| 23 |
+
* @package base_default
|
| 24 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
| 25 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
| 26 |
+
*/
|
| 27 |
+
-->
|
| 28 |
+
<layout version="0.1.0">
|
| 29 |
+
<default>
|
| 30 |
+
</default>
|
| 31 |
+
|
| 32 |
+
<!-- Home -->
|
| 33 |
+
<xmlconnect_index_index>
|
| 34 |
+
<block type="xmlconnect/home" name="xmlconnect.home" output="toHtml"/>
|
| 35 |
+
</xmlconnect_index_index>
|
| 36 |
+
|
| 37 |
+
<!-- Catalog -->
|
| 38 |
+
|
| 39 |
+
<xmlconnect_catalog_filters>
|
| 40 |
+
<block type="xmlconnect/catalog_filters" name="xmlconnect.catalog.filters" output="toHtml"/>
|
| 41 |
+
</xmlconnect_catalog_filters>
|
| 42 |
+
|
| 43 |
+
<!-- Category -->
|
| 44 |
+
<xmlconnect_catalog_category>
|
| 45 |
+
<block type="xmlconnect/catalog_category" name="xmlconnect.catalog.category" output="toHtml">
|
| 46 |
+
<block type="xmlconnect/catalog_product_list" name="xmlconnect.catalog.product.list" as="product_list" output="">
|
| 47 |
+
<block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
|
| 48 |
+
<action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
|
| 49 |
+
<action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_price_giftcard</renderer></action>
|
| 50 |
+
</block>
|
| 51 |
+
</block>
|
| 52 |
+
|
| 53 |
+
<block type="xmlconnect/catalog_category_info" name="xmlconnect.catalog.category.info" as="category_info" output=""/>
|
| 54 |
+
</block>
|
| 55 |
+
</xmlconnect_catalog_category>
|
| 56 |
+
|
| 57 |
+
<!-- Product -->
|
| 58 |
+
|
| 59 |
+
<xmlconnect_catalog_product>
|
| 60 |
+
<block type="xmlconnect/catalog_product" name="xmlconnect.catalog.product" output="toHtml">
|
| 61 |
+
<block type="xmlconnect/catalog_product_related" name="xmlconnect.product.related" as="related_products" output=""/>
|
| 62 |
+
|
| 63 |
+
<block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
|
| 64 |
+
<action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
|
| 65 |
+
<action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_price_giftcard</renderer></action>
|
| 66 |
+
</block>
|
| 67 |
+
|
| 68 |
+
<block type="xmlconnect/catalog_product_attributes" name="xmlconnect.catalog.product.attributes" as="additional_info" output="" />
|
| 69 |
+
|
| 70 |
+
<block type="xmlconnect/catalog_product_options" name="xmlconnect.catalog.product.options" output="">
|
| 71 |
+
<action method="addRenderer"><type>simple</type><renderer>xmlconnect/catalog_product_options_simple</renderer></action>
|
| 72 |
+
<action method="addRenderer"><type>virtual</type><renderer>xmlconnect/catalog_product_options_virtual</renderer></action>
|
| 73 |
+
<action method="addRenderer"><type>configurable</type><renderer>xmlconnect/catalog_product_options_configurable</renderer></action>
|
| 74 |
+
<action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_options_bundle</renderer></action>
|
| 75 |
+
<action method="addRenderer"><type>grouped</type><renderer>xmlconnect/catalog_product_options_grouped</renderer></action>
|
| 76 |
+
<action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_options_giftcard</renderer></action>
|
| 77 |
+
</block>
|
| 78 |
+
</block>
|
| 79 |
+
</xmlconnect_catalog_product>
|
| 80 |
+
|
| 81 |
+
<xmlconnect_catalog_productoptions>
|
| 82 |
+
<block type="xmlconnect/catalog_product_options" name="xmlconnect.catalog.product.options" output="toHtml">
|
| 83 |
+
<action method="addRenderer"><type>simple</type><renderer>xmlconnect/catalog_product_options_simple</renderer></action>
|
| 84 |
+
<action method="addRenderer"><type>virtual</type><renderer>xmlconnect/catalog_product_options_virtual</renderer></action>
|
| 85 |
+
<action method="addRenderer"><type>configurable</type><renderer>xmlconnect/catalog_product_options_configurable</renderer></action>
|
| 86 |
+
<action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_options_bundle</renderer></action>
|
| 87 |
+
<action method="addRenderer"><type>grouped</type><renderer>xmlconnect/catalog_product_options_grouped</renderer></action>
|
| 88 |
+
<action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_options_giftcard</renderer></action>
|
| 89 |
+
</block>
|
| 90 |
+
</xmlconnect_catalog_productoptions>
|
| 91 |
+
|
| 92 |
+
<xmlconnect_catalog_productgallery>
|
| 93 |
+
<block type="xmlconnect/catalog_product_gallery" name="xmlconnect.catalog.product.gallery" output="toHtml"/>
|
| 94 |
+
</xmlconnect_catalog_productgallery>
|
| 95 |
+
|
| 96 |
+
<xmlconnect_catalog_productreview>
|
| 97 |
+
<block type="xmlconnect/catalog_product_review" name="xmlconnect.catalog.product.review" output="toHtml"/>
|
| 98 |
+
</xmlconnect_catalog_productreview>
|
| 99 |
+
|
| 100 |
+
<xmlconnect_catalog_productreviews>
|
| 101 |
+
<block type="xmlconnect/catalog_product_review_list" name="xmlconnect.catalog.product.reviews" output="toHtml"/>
|
| 102 |
+
</xmlconnect_catalog_productreviews>
|
| 103 |
+
|
| 104 |
+
<!-- Search -->
|
| 105 |
+
|
| 106 |
+
<xmlconnect_catalog_search>
|
| 107 |
+
<block type="xmlconnect/catalog_search" name="xmlconnect.catalog.search" output="toHtml">
|
| 108 |
+
<block type="xmlconnect/catalog_product_list" name="xmlconnect.catalog.product.list" as="product_list" output="">
|
| 109 |
+
<block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
|
| 110 |
+
<action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
|
| 111 |
+
<action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_price_giftcard</renderer></action>
|
| 112 |
+
</block>
|
| 113 |
+
</block>
|
| 114 |
+
</block>
|
| 115 |
+
</xmlconnect_catalog_search>
|
| 116 |
+
|
| 117 |
+
<xmlconnect_catalog_searchsuggest>
|
| 118 |
+
<block type="xmlconnect/catalog_search_suggest" name="xmlconnect.catalog.search.suggest" output="toHtml"/>
|
| 119 |
+
</xmlconnect_catalog_searchsuggest>
|
| 120 |
+
|
| 121 |
+
<!-- Shopping Cart -->
|
| 122 |
+
<xmlconnect_cart_index>
|
| 123 |
+
<block type="xmlconnect/cart" name="xmlconnect.cart" output="toHtml">
|
| 124 |
+
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
|
| 125 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/item/default.phtml</template></action>
|
| 126 |
+
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
|
| 127 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/item/default.phtml</template></action>
|
| 128 |
+
<action method="addItemRender"><type>giftcard</type><block>enterprise_giftcard/checkout_cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
|
| 129 |
+
|
| 130 |
+
<block type="xmlconnect/cart_crosssell" name="xmlconnect.cart.crosssell" as="crosssell">
|
| 131 |
+
<block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
|
| 132 |
+
<action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
|
| 133 |
+
<action method="addRenderer"><type>giftcard</type><renderer>giftcard/catalog_product_price_giftcard</renderer></action>
|
| 134 |
+
</block>
|
| 135 |
+
</block>
|
| 136 |
+
</block>
|
| 137 |
+
</xmlconnect_cart_index>
|
| 138 |
+
|
| 139 |
+
<xmlconnect_cart_info>
|
| 140 |
+
<block type="xmlconnect/cart_info" name="xmlconnect.cart.info" as="cart_info" output="toHtml">
|
| 141 |
+
<block type="xmlconnect/cart_totals" name="xmlconnect.cart.totals" as="totals"/>
|
| 142 |
+
</block>
|
| 143 |
+
</xmlconnect_cart_info>
|
| 144 |
+
|
| 145 |
+
<!-- Customer -->
|
| 146 |
+
|
| 147 |
+
<xmlconnect_customer_form>
|
| 148 |
+
<block type="xmlconnect/customer_form" name="xmlconnect.customer.form" output="toHtml"/>
|
| 149 |
+
</xmlconnect_customer_form>
|
| 150 |
+
|
| 151 |
+
<xmlconnect_wishlist_index>
|
| 152 |
+
<block type="xmlconnect/wishlist" name="xmlconnect.wishlist" output="toHtml">
|
| 153 |
+
<block type="xmlconnect/catalog_product_price" name="xmlconnect.catalog.product.price" as="product_price" output="">
|
| 154 |
+
<action method="addRenderer"><type>bundle</type><renderer>xmlconnect/catalog_product_price_bundle</renderer></action>
|
| 155 |
+
<action method="addRenderer"><type>giftcard</type><renderer>xmlconnect/catalog_product_price_giftcard</renderer></action>
|
| 156 |
+
</block>
|
| 157 |
+
</block>
|
| 158 |
+
</xmlconnect_wishlist_index>
|
| 159 |
+
|
| 160 |
+
<xmlconnect_customer_address>
|
| 161 |
+
<block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" output="toHtml"/>
|
| 162 |
+
</xmlconnect_customer_address>
|
| 163 |
+
|
| 164 |
+
<xmlconnect_customer_addressform>
|
| 165 |
+
<block type="xmlconnect/customer_address_form" name="xmlconnect.customer.address.form" output="toHtml"/>
|
| 166 |
+
</xmlconnect_customer_addressform>
|
| 167 |
+
|
| 168 |
+
<xmlconnect_customer_orderlist>
|
| 169 |
+
<block type="xmlconnect/customer_order_list" name="xmlconnect.customer.order.list" output="toHtml"/>
|
| 170 |
+
</xmlconnect_customer_orderlist>
|
| 171 |
+
|
| 172 |
+
<xmlconnect_customer_orderdetails>
|
| 173 |
+
<block type="xmlconnect/customer_order_details" name="xmlconnect.customer.order.details" output="toHtml">
|
| 174 |
+
<block type="xmlconnect/customer_order_items" name="xmlconnect.customer.order.items" as="order_items" output="">
|
| 175 |
+
<action method="addItemRender"><type>default</type><block>xmlconnect/customer_order_item_renderer_default</block><template></template></action>
|
| 176 |
+
<action method="addItemRender"><type>grouped</type><block>xmlconnect/customer_order_item_renderer_grouped</block><template></template></action>
|
| 177 |
+
<action method="addItemRender"><type>bundle</type><block>xmlconnect/customer_order_item_renderer_bundle</block><template></template></action>
|
| 178 |
+
<action method="addItemRender"><type>downloadable</type><block>xmlconnect/customer_order_item_renderer_downloadable</block><template></template></action>
|
| 179 |
+
<action method="addItemRender"><type>giftcard</type><block>xmlconnect/customer_order_item_renderer_giftcard</block><template></template></action>
|
| 180 |
+
|
| 181 |
+
<block type="xmlconnect/customer_order_totals" name="xmlconnect.customer.order.totals" output="">
|
| 182 |
+
<block type="xmlconnect/customer_order_totals_tax" name="xmlconnect.customer.order.tax" output=""/>
|
| 183 |
+
</block>
|
| 184 |
+
</block>
|
| 185 |
+
</block>
|
| 186 |
+
</xmlconnect_customer_orderdetails>
|
| 187 |
+
|
| 188 |
+
<xmlconnect_customer_storecredit>
|
| 189 |
+
<block type="xmlconnect/customer_storecredit" name="xmlconnect.customer.storecredit" output="toHtml"/>
|
| 190 |
+
</xmlconnect_customer_storecredit>
|
| 191 |
+
|
| 192 |
+
<xmlconnect_customer_giftcardcheck>
|
| 193 |
+
<block type="xmlconnect/customer_giftcardCheck" name="xmlconnect.customer.giftcardCheck" output="toHtml"/>
|
| 194 |
+
</xmlconnect_customer_giftcardcheck>
|
| 195 |
+
|
| 196 |
+
<!-- Configuration -->
|
| 197 |
+
|
| 198 |
+
<xmlconnect_configuration_index>
|
| 199 |
+
<block type="xmlconnect/configuration" name="xmlconnect.configuration" output="toHtml"/>
|
| 200 |
+
</xmlconnect_configuration_index>
|
| 201 |
+
|
| 202 |
+
<!-- Checkout (OnePage) -->
|
| 203 |
+
|
| 204 |
+
<xmlconnect_checkout_index>
|
| 205 |
+
<block type="xmlconnect/checkout_address_billing" name="xmlconnect.checkout.address.billing" output="toHtml">
|
| 206 |
+
<block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" as="address_list" output=""/>
|
| 207 |
+
</block>
|
| 208 |
+
</xmlconnect_checkout_index>
|
| 209 |
+
|
| 210 |
+
<xmlconnect_checkout_billingaddress>
|
| 211 |
+
<block type="xmlconnect/checkout_address_billing" name="xmlconnect.checkout.address.billing" output="toHtml">
|
| 212 |
+
<block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" as="address_list" output=""/>
|
| 213 |
+
</block>
|
| 214 |
+
</xmlconnect_checkout_billingaddress>
|
| 215 |
+
|
| 216 |
+
<xmlconnect_checkout_newbillingaddressform>
|
| 217 |
+
<block type="xmlconnect/checkout_address_form" name="xmlconnect.checkout.new.billing.address.form" output="toHtml">
|
| 218 |
+
<action method="setType"><type>billing</type></action>
|
| 219 |
+
</block>
|
| 220 |
+
</xmlconnect_checkout_newbillingaddressform>
|
| 221 |
+
|
| 222 |
+
<xmlconnect_checkout_shippingaddress>
|
| 223 |
+
<block type="xmlconnect/checkout_address_shipping" name="xmlconnect.checkout.address.shipping" output="toHtml">
|
| 224 |
+
<block type="xmlconnect/customer_address_list" name="xmlconnect.customer.address.list" as="address_list" output=""/>
|
| 225 |
+
</block>
|
| 226 |
+
</xmlconnect_checkout_shippingaddress>
|
| 227 |
+
|
| 228 |
+
<xmlconnect_checkout_newshippingaddressform>
|
| 229 |
+
<block type="xmlconnect/checkout_address_form" name="xmlconnect.checkout.new.billing.address.form" output="toHtml">
|
| 230 |
+
<action method="setType"><type>shipping</type></action>
|
| 231 |
+
</block>
|
| 232 |
+
</xmlconnect_checkout_newshippingaddressform>
|
| 233 |
+
|
| 234 |
+
<xmlconnect_checkout_shippingmethods>
|
| 235 |
+
<block type="xmlconnect/checkout_shipping_method_available" name="xmlconnect.checkout.shipping.method.available" output="toHtml"/>
|
| 236 |
+
</xmlconnect_checkout_shippingmethods>
|
| 237 |
+
|
| 238 |
+
<xmlconnect_checkout_paymentmethods>
|
| 239 |
+
<block type="xmlconnect/checkout_payment_method_list" name="xmlconnect.checkout.payment.method.list" output="toHtml">
|
| 240 |
+
<block type="xmlconnect/checkout_payment_method_ccsave" name="xmlconnect.checkout.method.ccsave" as="payment_ccsave" output=""/>
|
| 241 |
+
<block type="xmlconnect/checkout_payment_method_checkmo" name="xmlconnect.checkout.method.checkmo" as="payment_checkmo" output=""/>
|
| 242 |
+
<block type="xmlconnect/checkout_payment_method_purchaseorder" name="xmlconnect.checkout.method.purchaseorder" as="payment_purchaseorder" output=""/>
|
| 243 |
+
<block type="xmlconnect/checkout_payment_method_paypal_payflow" name="xmlconnect.checkout.method.paypal.payflow" as="payment_paypal_payflow" output=""/>
|
| 244 |
+
<block type="xmlconnect/checkout_payment_method_paypal_direct" name="xmlconnect.checkout.method.paypal.direct" as="payment_paypal_direct" output=""/>
|
| 245 |
+
<block type="xmlconnect/checkout_payment_method_authorizenet" name="xmlconnect.checkout.method.authorizenet" as="payment_authorizenet" output=""/>
|
| 246 |
+
</block>
|
| 247 |
+
</xmlconnect_checkout_paymentmethods>
|
| 248 |
+
|
| 249 |
+
<xmlconnect_checkout_orderreview>
|
| 250 |
+
<block type="xmlconnect/checkout_order_review" name="xmlconnect.checkout.order.review" output="toHtml">
|
| 251 |
+
<block type="xmlconnect/checkout_order_review_info" name="xmlconnect.checkout.order.info" as="order_products">
|
| 252 |
+
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
|
| 253 |
+
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/onepage/review/item.phtml</template></action>
|
| 254 |
+
<action method="addItemRender"><type>bundle</type><block>bundle/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
|
| 255 |
+
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/onepage/review/item.phtml</template></action>
|
| 256 |
+
<action method="addItemRender"><type>giftcard</type><block>enterprise_giftcard/checkout_cart_item_renderer</block><template>checkout/onepage/review/item.phtml</template></action>
|
| 257 |
+
</block>
|
| 258 |
+
|
| 259 |
+
<block type="xmlconnect/cart_totals" name="xmlconnect.checkout.order.review.totals" as="totals"/>
|
| 260 |
+
<block type="xmlconnect/checkout_agreements" name="xmlconnect.checkout.agreements" as="agreements" output=""/>
|
| 261 |
+
</block>
|
| 262 |
+
</xmlconnect_checkout_orderreview>
|
| 263 |
+
|
| 264 |
+
<!-- Checkout with PayPal MEP -->
|
| 265 |
+
|
| 266 |
+
<xmlconnect_paypal_mep_shippingmethods>
|
| 267 |
+
<block type="xmlconnect/checkout_shipping_method_available" name="xmlconnect.checkout.shipping.method.available" output="toHtml"/>
|
| 268 |
+
</xmlconnect_paypal_mep_shippingmethods>
|
| 269 |
+
|
| 270 |
+
<xmlconnect_paypal_mep_carttotals>
|
| 271 |
+
<block type="xmlconnect/cart_paypal_mep_totals" name="xmlconnect.cart.paypal.mep.totals" output="toHtml"/>
|
| 272 |
+
</xmlconnect_paypal_mep_carttotals>
|
| 273 |
+
|
| 274 |
+
<!-- Checkout with PayPal MECL -->
|
| 275 |
+
|
| 276 |
+
<xmlconnect_paypal_mecl_review>
|
| 277 |
+
<block type="xmlconnect/cart_paypal_mecl_review" name="xmlconnect.cart.paypal.mecl.review" output="toHtml">
|
| 278 |
+
<block type="xmlconnect/cart_paypal_mecl_details" name="xmlconnect.cart.paypal.mecl.details" as="details">
|
| 279 |
+
<action method="addItemRender"><type>default</type><block>xmlconnect/cart_item_renderer</block><template></template></action>
|
| 280 |
+
<action method="addItemRender"><type>grouped</type><block>xmlconnect/cart_item_renderer_grouped</block><template></template></action>
|
| 281 |
+
<action method="addItemRender"><type>configurable</type><block>xmlconnect/cart_item_renderer_configurable</block><template></template></action>
|
| 282 |
+
<block type="xmlconnect/cart_totals" name="xmlconnect.cart.totals" as="totals"/>
|
| 283 |
+
</block>
|
| 284 |
+
</block>
|
| 285 |
+
</xmlconnect_paypal_mecl_review>
|
| 286 |
+
|
| 287 |
+
<xmlconnect_paypal_mecl_shippingmethods>
|
| 288 |
+
<block type="xmlconnect/cart_paypal_mecl_shippingmethods" name="xmlconnect.cart.paypal.mecl.shippingmethods" output="toHtml"></block>
|
| 289 |
+
</xmlconnect_paypal_mecl_shippingmethods>
|
| 290 |
+
|
| 291 |
+
<!-- Cms -->
|
| 292 |
+
|
| 293 |
+
<xmlconnect_cms_page>
|
| 294 |
+
<block type="xmlconnect/cms_page" name="xmlconnect.cms.page" output="toHtml"/>
|
| 295 |
+
</xmlconnect_cms_page>
|
| 296 |
+
|
| 297 |
+
<!-- Payment bridge -->
|
| 298 |
+
|
| 299 |
+
<xmlconnect_pbridge_result>
|
| 300 |
+
<block type="xmlconnect/checkout_pbridge_result" name="xmlconnect.checkout.pbridge.result" template="xmlconnect/pbridge/result.phtml" output="toHtml" />
|
| 301 |
+
</xmlconnect_pbridge_result>
|
| 302 |
+
|
| 303 |
+
<!-- Product review -->
|
| 304 |
+
|
| 305 |
+
<xmlconnect_review_form>
|
| 306 |
+
<block type="xmlconnect/review_form" name="xmlconnect.review.form" output="toHtml"/>
|
| 307 |
+
</xmlconnect_review_form>
|
| 308 |
+
</layout>
|
app/design/frontend/base/default/template/optimonk/cart.phtml
CHANGED
|
@@ -1,37 +1,37 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* OptiMonk plugin for Magento 1.7+
|
| 4 |
-
*
|
| 5 |
-
* This program is free software: you can redistribute it and/or modify
|
| 6 |
-
* it under the terms of the GNU General Public License as published by
|
| 7 |
-
* the Free Software Foundation, either version 3 of the License, or
|
| 8 |
-
* (at your option) any later version.
|
| 9 |
-
*
|
| 10 |
-
* This program is distributed in the hope that it will be useful,
|
| 11 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 13 |
-
* GNU General Public License for more details.
|
| 14 |
-
*
|
| 15 |
-
* For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
|
| 16 |
-
*
|
| 17 |
-
* @package Wse_OptiMonk
|
| 18 |
-
* @copyright Copyright (c) 2016 Webshop Marketing Kft (www.optimonk.com)
|
| 19 |
-
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
| 20 |
-
* @author Tibor Berna
|
| 21 |
-
*/
|
| 22 |
-
?>
|
| 23 |
-
<!-- OptiMonk Cart Data -->
|
| 24 |
-
<?php if ($this->isEnabled()) : ?>
|
| 25 |
-
<?php $cartProducts = $this->getProducts(); ?>
|
| 26 |
-
<script>
|
| 27 |
-
document.querySelector('html').addEventListener('optimonk#ready', function () {
|
| 28 |
-
var adapter = OptiMonk.Visitor.createAdapter();
|
| 29 |
-
adapter.Cart.clear();
|
| 30 |
-
<?php if(!empty($cartProducts)): ?>
|
| 31 |
-
<?php foreach ($cartProducts as $sku => $productDetails) { ?>
|
| 32 |
-
adapter.Cart.add(<?php echo json_encode($sku); ?>, <?php echo json_encode($productDetails); ?>);
|
| 33 |
-
<?php } ?>
|
| 34 |
-
<?php endif; ?>
|
| 35 |
-
});
|
| 36 |
-
</script>
|
| 37 |
<?php endif; ?>
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* OptiMonk plugin for Magento 1.7+
|
| 4 |
+
*
|
| 5 |
+
* This program is free software: you can redistribute it and/or modify
|
| 6 |
+
* it under the terms of the GNU General Public License as published by
|
| 7 |
+
* the Free Software Foundation, either version 3 of the License, or
|
| 8 |
+
* (at your option) any later version.
|
| 9 |
+
*
|
| 10 |
+
* This program is distributed in the hope that it will be useful,
|
| 11 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 13 |
+
* GNU General Public License for more details.
|
| 14 |
+
*
|
| 15 |
+
* For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
|
| 16 |
+
*
|
| 17 |
+
* @package Wse_OptiMonk
|
| 18 |
+
* @copyright Copyright (c) 2016 Webshop Marketing Kft (www.optimonk.com)
|
| 19 |
+
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
| 20 |
+
* @author Tibor Berna
|
| 21 |
+
*/
|
| 22 |
+
?>
|
| 23 |
+
<!-- OptiMonk Cart Data -->
|
| 24 |
+
<?php if ($this->isEnabled()) : ?>
|
| 25 |
+
<?php $cartProducts = $this->getProducts(); ?>
|
| 26 |
+
<script>
|
| 27 |
+
document.querySelector('html').addEventListener('optimonk#ready', function () {
|
| 28 |
+
var adapter = OptiMonk.Visitor.createAdapter();
|
| 29 |
+
adapter.Cart.clear();
|
| 30 |
+
<?php if(!empty($cartProducts)): ?>
|
| 31 |
+
<?php foreach ($cartProducts as $sku => $productDetails) { ?>
|
| 32 |
+
adapter.Cart.add(<?php echo json_encode($sku); ?>, <?php echo json_encode($productDetails); ?>);
|
| 33 |
+
<?php } ?>
|
| 34 |
+
<?php endif; ?>
|
| 35 |
+
});
|
| 36 |
+
</script>
|
| 37 |
<?php endif; ?>
|
app/design/frontend/base/default/template/optimonk/entrycode.phtml
CHANGED
|
@@ -1,42 +1,42 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* OptiMonk plugin for Magento 1.7+
|
| 4 |
-
*
|
| 5 |
-
* This program is free software: you can redistribute it and/or modify
|
| 6 |
-
* it under the terms of the GNU General Public License as published by
|
| 7 |
-
* the Free Software Foundation, either version 3 of the License, or
|
| 8 |
-
* (at your option) any later version.
|
| 9 |
-
*
|
| 10 |
-
* This program is distributed in the hope that it will be useful,
|
| 11 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 13 |
-
* GNU General Public License for more details.
|
| 14 |
-
*
|
| 15 |
-
* For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
|
| 16 |
-
*
|
| 17 |
-
* @package Wse_OptiMonk
|
| 18 |
-
* @copyright Copyright (c) 2016 Webshop Marketing Kft (www.optimonk.com)
|
| 19 |
-
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
| 20 |
-
* @author Tibor Berna
|
| 21 |
-
*/
|
| 22 |
-
$moduleName = $this->getRequest()->getModuleName();
|
| 23 |
-
$controllerName = $this->getRequest()->getControllerName();
|
| 24 |
-
$actionName = $this->getRequest()->getActionName();
|
| 25 |
-
$route = $moduleName . '/' . $controllerName . '/' . $actionName;
|
| 26 |
-
?>
|
| 27 |
-
<?php if ($this->isEnabled()) : ?>
|
| 28 |
-
<?php $this->addAttribute('pageType', $route); ?>
|
| 29 |
-
<?php $childScript = $this->getChildScript(); ?>
|
| 30 |
-
<?php if (!empty($childScript)) : ?>
|
| 31 |
-
<?= $childScript; ?>
|
| 32 |
-
<?php endif; ?>
|
| 33 |
-
<!-- OptiMonk Entry Code -->
|
| 34 |
-
<script>
|
| 35 |
-
(function(e,a){
|
| 36 |
-
var t,r=e.getElementsByTagName("head")[0],c=e.location.protocol;
|
| 37 |
-
t=e.createElement("script");t.type="text/javascript";
|
| 38 |
-
t.charset="utf-8";t.async=!0;t.defer=!0;
|
| 39 |
-
t.src=c+"//front.optimonk.com/public/"+a+"/js/preload.js";r.appendChild(t);
|
| 40 |
-
})(document,"<?php echo $this->getId(); ?>");
|
| 41 |
-
</script>
|
| 42 |
<?php endif; ?>
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* OptiMonk plugin for Magento 1.7+
|
| 4 |
+
*
|
| 5 |
+
* This program is free software: you can redistribute it and/or modify
|
| 6 |
+
* it under the terms of the GNU General Public License as published by
|
| 7 |
+
* the Free Software Foundation, either version 3 of the License, or
|
| 8 |
+
* (at your option) any later version.
|
| 9 |
+
*
|
| 10 |
+
* This program is distributed in the hope that it will be useful,
|
| 11 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 12 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 13 |
+
* GNU General Public License for more details.
|
| 14 |
+
*
|
| 15 |
+
* For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
|
| 16 |
+
*
|
| 17 |
+
* @package Wse_OptiMonk
|
| 18 |
+
* @copyright Copyright (c) 2016 Webshop Marketing Kft (www.optimonk.com)
|
| 19 |
+
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
| 20 |
+
* @author Tibor Berna
|
| 21 |
+
*/
|
| 22 |
+
$moduleName = $this->getRequest()->getModuleName();
|
| 23 |
+
$controllerName = $this->getRequest()->getControllerName();
|
| 24 |
+
$actionName = $this->getRequest()->getActionName();
|
| 25 |
+
$route = $moduleName . '/' . $controllerName . '/' . $actionName;
|
| 26 |
+
?>
|
| 27 |
+
<?php if ($this->isEnabled()) : ?>
|
| 28 |
+
<?php $this->addAttribute('pageType', $route); ?>
|
| 29 |
+
<?php $childScript = $this->getChildScript(); ?>
|
| 30 |
+
<?php if (!empty($childScript)) : ?>
|
| 31 |
+
<?= $childScript; ?>
|
| 32 |
+
<?php endif; ?>
|
| 33 |
+
<!-- OptiMonk Entry Code -->
|
| 34 |
+
<script>
|
| 35 |
+
(function(e,a){
|
| 36 |
+
var t,r=e.getElementsByTagName("head")[0],c=e.location.protocol;
|
| 37 |
+
t=e.createElement("script");t.type="text/javascript";
|
| 38 |
+
t.charset="utf-8";t.async=!0;t.defer=!0;
|
| 39 |
+
t.src=c+"//front.optimonk.com/public/"+a+"/js/preload.js";r.appendChild(t);
|
| 40 |
+
})(document,"<?php echo $this->getId(); ?>");
|
| 41 |
+
</script>
|
| 42 |
<?php endif; ?>
|
app/etc/modules/Wse_OptiMonk.xml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
-
<?xml version="1.0"?>
|
| 2 |
-
<config>
|
| 3 |
-
<modules>
|
| 4 |
-
<Wse_OptiMonk>
|
| 5 |
-
<active>true</active>
|
| 6 |
-
<codePool>community</codePool>
|
| 7 |
-
</Wse_OptiMonk>
|
| 8 |
-
</modules>
|
| 9 |
-
</config>
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<Wse_OptiMonk>
|
| 5 |
+
<active>true</active>
|
| 6 |
+
<codePool>community</codePool>
|
| 7 |
+
</Wse_OptiMonk>
|
| 8 |
+
</modules>
|
| 9 |
+
</config>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>OptiMonkM1</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="https://www.gnu.org/licenses/gpl-3.0.html">GPL</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -16,35 +16,59 @@ Why is OptiMonk more advanced than other exit offer tools?
|
|
| 16 |
Other exit offer tools will just allow you to show your visitors a coupon code or discount once, and then you can just hope, that the visitors will remember these coupon codes.
|
| 17 |

|
| 18 |
OptiMonk allows you to build 2-step campaigns:
|
|
|
|
| 19 |
Exit offer: First you can get the visitor’s attention (and email) with an exit offer
|
|
|
|
| 20 |
Nanobar: Then you can display a nanobar at once, reminding the visitor of the coupon code without distracting her shopping.
|
|
|
|
| 21 |
With this 2-step campaign you can increase the number of purchases by up to 100% compared to simple exit offer tools.
|
|
|
|
| 22 |
Basic features:
|
|
|
|
| 23 |
Create Unlimited Offers
|
|
|
|
| 24 |
Lots of Premium Templates to Choose From
|
|
|
|
| 25 |
Easy Customization with WYSWYG editor
|
|
|
|
| 26 |
Display Offers on Exit-Intent, On Scroll, On Entry or After X Seconds
|
|
|
|
| 27 |
Integration with MailChimp, GetResponse, iContact, AWeber, InfusionSoft, etc.
|
|
|
|
| 28 |
No coding required
|
|
|
|
| 29 |
Advanced features:
|
|
|
|
| 30 |
Multi-Page Popups
|
|
|
|
| 31 |
Mobile-Optimized and Responsives Popups
|
|
|
|
| 32 |
Nanobar
|
|
|
|
| 33 |
Campaign Scheduling
|
|
|
|
| 34 |
Geo-Targeting
|
|
|
|
| 35 |
A/B Testing
|
|
|
|
| 36 |
Here are a few case studies you might be interested in:
|
|
|
|
| 37 |
An ebike store was able to increase their subscription rate by 329%
|
|
|
|
| 38 |
A toy retailer was able to increase its revenue by 26,8%
|
|
|
|
| 39 |
A marketing guru was able to increase its subscription rate by 48%
|
|
|
|
| 40 |
An adult store was able to decrease its cart-abandonment rate by 27.6%
|
|
|
|
| 41 |
A marketing agency was able to increase the number of leads by 45%
|
|
|
|
| 42 |
A B2B Security Startup was able to increase the number of free trials by 65%</description>
|
| 43 |
-
<notes>
|
| 44 |
<authors><author><name>János Gál</name><user>galjanos</user><email>janos.gal@optimonk.com</email></author><author><name>Tibor Berna</name><user>optimonk_tberna</user><email>bernatibor@webshopexperts.hu</email></author></authors>
|
| 45 |
-
<date>
|
| 46 |
-
<time>
|
| 47 |
-
<contents><target name="magecommunity"><dir name="Wse"><dir name="OptiMonk"><dir name="Block"><file name="Cart.php" hash="e9c6c7b3c1f008c9d30a2af0563bd327"/><file name="Entrycode.php" hash="
|
| 48 |
<compatible/>
|
| 49 |
-
<dependencies><required><php><min>5.
|
| 50 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>OptiMonkM1</name>
|
| 4 |
+
<version>1.0.4</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="https://www.gnu.org/licenses/gpl-3.0.html">GPL</license>
|
| 7 |
<channel>community</channel>
|
| 16 |
Other exit offer tools will just allow you to show your visitors a coupon code or discount once, and then you can just hope, that the visitors will remember these coupon codes.
|
| 17 |

|
| 18 |
OptiMonk allows you to build 2-step campaigns:
|
| 19 |
+

|
| 20 |
Exit offer: First you can get the visitor’s attention (and email) with an exit offer
|
| 21 |
+

|
| 22 |
Nanobar: Then you can display a nanobar at once, reminding the visitor of the coupon code without distracting her shopping.
|
| 23 |
+

|
| 24 |
With this 2-step campaign you can increase the number of purchases by up to 100% compared to simple exit offer tools.
|
| 25 |
+

|
| 26 |
Basic features:
|
| 27 |
+

|
| 28 |
Create Unlimited Offers
|
| 29 |
+

|
| 30 |
Lots of Premium Templates to Choose From
|
| 31 |
+

|
| 32 |
Easy Customization with WYSWYG editor
|
| 33 |
+

|
| 34 |
Display Offers on Exit-Intent, On Scroll, On Entry or After X Seconds
|
| 35 |
+

|
| 36 |
Integration with MailChimp, GetResponse, iContact, AWeber, InfusionSoft, etc.
|
| 37 |
+

|
| 38 |
No coding required
|
| 39 |
+

|
| 40 |
Advanced features:
|
| 41 |
+

|
| 42 |
Multi-Page Popups
|
| 43 |
+

|
| 44 |
Mobile-Optimized and Responsives Popups
|
| 45 |
+

|
| 46 |
Nanobar
|
| 47 |
+

|
| 48 |
Campaign Scheduling
|
| 49 |
+

|
| 50 |
Geo-Targeting
|
| 51 |
+

|
| 52 |
A/B Testing
|
| 53 |
+

|
| 54 |
Here are a few case studies you might be interested in:
|
| 55 |
+

|
| 56 |
An ebike store was able to increase their subscription rate by 329%
|
| 57 |
+

|
| 58 |
A toy retailer was able to increase its revenue by 26,8%
|
| 59 |
+

|
| 60 |
A marketing guru was able to increase its subscription rate by 48%
|
| 61 |
+

|
| 62 |
An adult store was able to decrease its cart-abandonment rate by 27.6%
|
| 63 |
+

|
| 64 |
A marketing agency was able to increase the number of leads by 45%
|
| 65 |
+

|
| 66 |
A B2B Security Startup was able to increase the number of free trials by 65%</description>
|
| 67 |
+
<notes>Bug fixing, error logging</notes>
|
| 68 |
<authors><author><name>János Gál</name><user>galjanos</user><email>janos.gal@optimonk.com</email></author><author><name>Tibor Berna</name><user>optimonk_tberna</user><email>bernatibor@webshopexperts.hu</email></author></authors>
|
| 69 |
+
<date>2017-04-20</date>
|
| 70 |
+
<time>08:25:54</time>
|
| 71 |
+
<contents><target name="magecommunity"><dir name="Wse"><dir name="OptiMonk"><dir name="Block"><file name="Cart.php" hash="e9c6c7b3c1f008c9d30a2af0563bd327"/><file name="Entrycode.php" hash="d1b9a0fbc8db930a63d377a62644d678"/></dir><dir name="Helper"><file name="Data.php" hash="d9b2d89e380bd2b0ce3aeb63fd5d5eea"/></dir><dir name="Model"><file name="Container.php" hash="f49913afdf86a3e939bb5b175131761f"/><file name="Observer.php" hash="62b726cb1887b075eea76ccee7832d82"/></dir><dir name="etc"><file name="config.xml" hash="2ce111159e85dcc85acb48ec2dd0a694"/><file name="system.xml" hash="16b146b2ce4d56ec0e213c3cf116815a"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="optimonk.xml" hash="3cc24acaa0c152c862d4e25806f25421"/></dir><dir name="template"><dir name="optimonk"><file name="cart.phtml" hash="dfdaf7ea9378d536e333a64e854bb520"/><file name="entrycode.phtml" hash="284c8b30598e1ccffac1b4a050fc4180"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wse_OptiMonk.xml" hash="a292c6aa22d1635b7edbbe1aee2385f2"/></dir></target></contents>
|
| 72 |
<compatible/>
|
| 73 |
+
<dependencies><required><php><min>5.6.0</min><max>7.1.3</max></php></required></dependencies>
|
| 74 |
</package>
|
