mQment - Version 1.0.2

Version Notes

mQment, now on Magento !

Download this release

Release Info

Developer Samuel Roy
Extension mQment
Version 1.0.2
Comparing to
See all releases


Version 1.0.2

app/code/community/Pricemetry/mQment/Block/Mqment.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Pricemetry_Mqment_Block_Mqment
3
+ extends Mage_Core_Block_Abstract
4
+ implements Mage_Widget_Block_Interface
5
+ {
6
+
7
+ /**
8
+ * Produces digg link html
9
+ *
10
+ * @return string
11
+ */
12
+ protected function _toHtml()
13
+ {
14
+
15
+ return '<div id="pm-widget-container" data-label="'.Mage::getStoreConfig('mQment_options/general/label_button').'" style="'.Mage::getStoreConfig('mQment_options/general/style').'"></div>
16
+ ';
17
+ }
18
+ }
app/code/community/Pricemetry/mQment/Helper/Data.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Pricemetry_mQment extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the MIT License
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/mit-license.php
11
+ *
12
+ * @category Pricemetry
13
+ * @package Pricemetry_mQment
14
+ * @copyright Copyright (c) 2014
15
+ * @license http://opensource.org/licenses/mit-license.php MIT License
16
+ */
17
+ /**
18
+ * mQment default helper
19
+ *
20
+ * @category Pricemetry
21
+ * @package Pricemetry_mQment
22
+ * @author Pricemetry
23
+ */
24
+ class Pricemetry_mQment_Helper_Data
25
+ extends Mage_Core_Helper_Abstract {
26
+ }
app/code/community/Pricemetry/mQment/etc/config.xml ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Pricemetry_mQment extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the MIT License
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/mit-license.php
12
+ *
13
+ * @category Pricemetry
14
+ * @package Pricemetry_mQment
15
+ * @copyright Copyright (c) 2014
16
+ * @license http://opensource.org/licenses/mit-license.php MIT License
17
+ */
18
+ -->
19
+ <config>
20
+ <modules>
21
+ <Pricemetry_mQment>
22
+ <version>0.0.1</version>
23
+ </Pricemetry_mQment>
24
+ </modules>
25
+ <frontend>
26
+ <layout>
27
+ <updates>
28
+ <mQment>
29
+ <file>mQment.xml</file>
30
+ </mQment>
31
+ </updates>
32
+ </layout>
33
+ </frontend>
34
+ <global>
35
+ <helpers>
36
+ <mQment>
37
+ <class>Pricemetry_mQment_Helper</class>
38
+ </mQment>
39
+ </helpers>
40
+ <blocks>
41
+ <pricemetry>
42
+ <class>Pricemetry_mQment_Block</class>
43
+ </pricemetry>
44
+ </blocks>
45
+ </global>
46
+ <adminhtml>
47
+ <acl>
48
+ <resources>
49
+ <admin>
50
+ <children>
51
+ <system>
52
+ <children>
53
+ <config>
54
+ <children>
55
+ <mQment_options>
56
+ <title>mQment configuration section</title>
57
+ </mQment_options>
58
+ </children>
59
+ </config>
60
+ </children>
61
+ </system>
62
+ </children>
63
+ </admin>
64
+ </resources>
65
+ </acl>
66
+ </adminhtml>
67
+ <default>
68
+ <mQment_options>
69
+ <general translate="general" module="mQment">
70
+ <enabled>1</enabled>
71
+ <label_button>Surveillez le prix</label_button>
72
+ <style>clear: left; margin-bottom:10px;</style>
73
+ </general>
74
+ </mQment_options>
75
+ </default>
76
+ </config>
app/code/community/Pricemetry/mQment/etc/system.xml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <sections>
4
+ <mQment_options translate="label" module="mQment">
5
+ <label>mQment - configuration</label>
6
+ <tab>general</tab>
7
+ <sort_order>10000</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
+ <general translate="label">
13
+ <label>Bouton Pricemetry</label>
14
+ <sort_order>1</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <comment>
19
+ <![CDATA[
20
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
21
+ Ce module est développé par <a href="http://www.mQment.com" target="_blank">mQment.com</a>.
22
+ <br>
23
+ Vous pouvez désactiver l'affichage du bouton Pricemetry ici et créer un widget si vous souhaitez le positionner ailleurs.
24
+ </div>
25
+ ]]>
26
+ </comment>
27
+ <fields>
28
+ <enabled>
29
+ <label>Affichage du bouton</label>
30
+ <frontend_type>select</frontend_type>
31
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
32
+ <sort_order>1</sort_order>
33
+ <show_in_default>1</show_in_default>
34
+ <show_in_website>1</show_in_website>
35
+ <show_in_store>1</show_in_store>
36
+ </enabled>
37
+ <label_button>
38
+ <label>Libellé</label>
39
+ <sort_order>2</sort_order>
40
+ <show_in_default>1</show_in_default>
41
+ <show_in_website>1</show_in_website>
42
+ <show_in_store>1</show_in_store>
43
+ </label_button>
44
+ <style>
45
+ <label>Ajustements CSS</label>
46
+ <sort_order>3</sort_order>
47
+ <show_in_default>1</show_in_default>
48
+ <show_in_website>1</show_in_website>
49
+ <show_in_store>1</show_in_store>
50
+ </style>
51
+ </fields>
52
+ </general>
53
+ </groups>
54
+ </mQment_options>
55
+ </sections>
56
+ </config>
app/code/community/Pricemetry/mQment/etc/widget.xml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Pricemetry_mQment extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the MIT License
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/mit-license.php
12
+ *
13
+ * @category Pricemetry
14
+ * @package Pricemetry_mQment
15
+ * @copyright Copyright (c) 2014
16
+ * @license http://opensource.org/licenses/mit-license.php MIT License
17
+ */
18
+ -->
19
+ <widgets>
20
+ <pricemetry_mQment type="pricemetry/mQment">
21
+ <name>mQment</name>
22
+ <description type="desc">Add the Pricemetry button on your product page</description>
23
+ </pricemetry_mQment>
24
+ </widgets>
app/design/frontend/base/default/layout/mQment.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="before_body_end">
5
+ <block type="core/text" name="mQment">
6
+ <action method="setText">
7
+ <text>
8
+ <![CDATA[<script type="text/javascript" src="https://pricemetry.com/js/pm-widget.min.js"></script> ]]>
9
+ </text>
10
+ </action>
11
+ </block>
12
+ </reference>
13
+ </default>
14
+ <!-- Vue produit -->
15
+ <catalog_product_view>
16
+ <reference name="content">
17
+ <reference name="product.info">
18
+ <block type="core/template" name="product.info.mQment" as="other" template="mQment/product/view/addto.phtml" />
19
+ <!-- <block type="core/template" name="product.info.mQment" as="other" >
20
+ <action ifconfig="mQment_options/general/enabled" method="setTemplate">
21
+ <template>mQment/product/view/addto.phtml</template>
22
+ </action>
23
+ </block> -->
24
+ </reference>
25
+ </reference>
26
+ </catalog_product_view>
27
+ </layout>
app/design/frontend/base/default/template/mQment/product/view/addto.phtml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ $display = '';
3
+ if(Mage::getStoreConfig('mQment_options/general/enabled') != '1'){
4
+ $display = 'display:none;';
5
+ }
6
+ echo '<div id="pm-widget-container" data-label="'.Mage::getStoreConfig('mQment_options/general/label_button').'" style="'.$display.Mage::getStoreConfig('mQment_options/general/style').'"></div>';
7
+ ?>
app/etc/modules/Pricemetry_mQment.xml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Pricemetry_mQment extension
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the MIT License
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/mit-license.php
12
+ *
13
+ * @category Pricemetry
14
+ * @package Pricemetry_mQment
15
+ * @copyright Copyright (c) 2014
16
+ * @license http://opensource.org/licenses/mit-license.php MIT License
17
+ */
18
+ -->
19
+ <config>
20
+ <modules>
21
+ <Pricemetry_mQment>
22
+ <active>true</active>
23
+ <codePool>community</codePool>
24
+ </Pricemetry_mQment>
25
+ </modules>
26
+ </config>
package.xml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>mQment</name>
4
+ <version>1.0.2</version>
5
+ <stability>stable</stability>
6
+ <license uri="http://www.gnu.org/copyleft/gpl.html">GNU General Public License</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>Transformez vos visiteurs en clients.&#xD;
10
+ Imaginez votre site capable d'agir en temps r&#xE9;el et de mani&#xE8;re personnalis&#xE9;e &#xD;
11
+ aux comportements de vos visiteurs. </summary>
12
+ <description>Imaginez &#xEA;tre capable de d&#xE9;tecter en temps r&#xE9;el l'&#xE9;tat d'esprit de vos visiteurs pendant leur navigation sur votre boutique : l'un s'appr&#xEA;te &#xE0; abandonner le panier, l'autre h&#xE9;site sur une fiche produit et le troisi&#xE8;me est pr&#xEA;t &#xE0; commander. &#xD;
13
+ Maintenant imaginez pouvoir r&#xE9;agir &#xE0; ces moments et envoyer &#xE0; ces visiteurs des messages personnalis&#xE9;s : r&#xE9;assurance sur la livraison, rappel du num&#xE9;ro de t&#xE9;l&#xE9;phone pour proposer son conseil, incitation &#xE0; ajouter plus de produits &#xE0; son panier, code de r&#xE9;duction au moment o&#xF9; il abandonne la page...&#xD;
14
+ &#xD;
15
+ mQment est une brique technologique, accompagn&#xE9;e de notre expertise e-commerce et d'une promesse, celle de booster votre chiffre d'affaire de 10% !&#xD;
16
+ &#xD;
17
+ Le module s'accompagne d'un tableau de bord qui vous permet de piloter mQment et d'en mesurer l'efficacit&#xE9;.</description>
18
+ <notes>mQment, now on Magento !</notes>
19
+ <authors><author><name>Samuel Roy</name><user>PricemetryApps</user><email>sam@pricemetry.com</email></author></authors>
20
+ <date>2014-10-03</date>
21
+ <time>13:00:41</time>
22
+ <contents><target name="magecommunity"><dir name="Pricemetry"><dir name="mQment"><dir name="Block"><file name="Mqment.php" hash="62804f069102a4cbff6c70d81ec0f240"/></dir><dir name="Helper"><file name="Data.php" hash="b31ab737a8e6553a72cdfd773eeb8e09"/></dir><dir name="etc"><file name="config.xml" hash="58c9156dcbcca5d61080c0940103b0fe"/><file name="system.xml" hash="ca6cc3a04fae7d09af9d8d576cb1638c"/><file name="widget.xml" hash="7aef52c73f8e2bc2facf4df69858bd0b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Pricemetry_mQment.xml" hash="776ba28bfef95eb5a9b20e8c235c81d2"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="mQment.xml" hash="5ad8bde1ad179285cfccd928f6f23393"/></dir><dir name="template"><dir name="mQment"><dir name="product"><dir name="view"><file name="addto.phtml" hash="43442e033d05054946cf5f03a4f39b56"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
23
+ <compatible/>
24
+ <dependencies><required><php><min>5.2.13</min><max>5.6.14</max></php></required></dependencies>
25
+ </package>