AvailPointofSale - Version 1.0.2

Version Notes

This extension is compatible with the following Magento versions:
Magento Community Edition 1.6 and 1.7
Magento Enterprise Edition 1.9, 1.10, 1.11, 1.12 and 1.13

Download this release

Release Info

Developer Smile
Extension AvailPointofSale
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/design/frontend/base/default/template/pointofsale/data.phtml ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Avail - Point of Sale
4
+ *
5
+ * @category Avail
6
+ * @package Avail_Pointofsale
7
+ * @copyright 2012 Avail
8
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
9
+ */
10
+ ?>
11
+ <?php $helper = $this->helper('pointofsale'); ?>
12
+ <?php $pageViewedKey = $helper->getPageViewedKey() ?>
13
+ <?php $maxPageViewed = $helper->getMaxPageViewed() ?>
14
+
15
+ <!-- Begin Avail -->
16
+ <?php if ($this->isConfigured()) : ?>
17
+ <?php if ($this->isDebugMode()) : ?>
18
+ <div id="__avail_log__"></div>
19
+ <?php endif; ?>
20
+
21
+ <script type="text/javascript">
22
+ //<![CDATA[
23
+ function availCartItem(productId) {
24
+ Cookie.setData('<?php echo $helper->getBuyButtonUrlParam() ?>_inc', 0);
25
+ Cookie.setData('<?php echo $helper->getBuyButtonUrlParam() ?>', productId);
26
+ setLocation(<?php echo "'" . $helper->getAddToCartUrl() . "product/'" ?>+productId);
27
+ }
28
+
29
+ function incrementAndDelete(incr, flush, limit) {
30
+ var page_viewed = Cookie.getData(incr);
31
+ if (page_viewed != null) {
32
+ Cookie.setData(incr, page_viewed + 1);
33
+ }
34
+ if (page_viewed > limit) {
35
+ Cookie.removeData(incr);
36
+ Cookie.removeData(flush);
37
+ }
38
+ }
39
+
40
+ Cookie.init({
41
+ name: '<?php echo $helper->getInitCookieName() ?>',
42
+ path: '/',
43
+ domain: '<?php echo Mage::getModel('core/cookie')->getDomain() ?>'
44
+ });
45
+
46
+ <?php if ($this->isDebugMode()) : ?>
47
+ var emark = new Emark(true);
48
+ <?php else: ?>
49
+ var emark = new Emark();
50
+ <?php endif; ?>
51
+
52
+ incrementAndDelete('<?php echo $pageViewedKey ?>', '<?php echo $helper->getSearchPhraseKey() ?>', <?php echo $maxPageViewed ?>);
53
+ incrementAndDelete('<?php echo $helper->getBuyButtonUrlParam() ?>_inc', '<?php echo $helper->getBuyButtonUrlParam() ?>', <?php echo $maxPageViewed ?>);
54
+
55
+ <?php echo $helper->getJsCode(); ?>
56
+
57
+ emark.commit();
58
+ //]]>
59
+ </script>
60
+ <?php endif; ?>
61
+ <!-- End Avail -->
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AvailPointofSale</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
@@ -9,14 +9,14 @@
9
  <summary>Avail Point-of-Sale will help you generate and display recommended products on different pages of your website.</summary>
10
  <description>This extension is compatible with the following Magento versions:&#xD;
11
  Magento Community Edition 1.6 and 1.7&#xD;
12
- Magento Enterprise Edition 1.9, 1.10, 1.11 and 1.12</description>
13
  <notes>This extension is compatible with the following Magento versions:&#xD;
14
  Magento Community Edition 1.6 and 1.7&#xD;
15
- Magento Enterprise Edition 1.9, 1.10, 1.11 and 1.12</notes>
16
  <authors><author><name>Smile</name><user>SmileOSS</user><email>solution.magento@smile.fr</email></author><author><name>Avail</name><user>AvailSupport</user><email>support@avail.net</email></author></authors>
17
- <date>2013-05-02</date>
18
- <time>13:45:14</time>
19
- <contents><target name="magecommunity"><dir name="Avail"><dir name="Pointofsale"><dir name="Block"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Button.php" hash="d4dac482f8d688ba49eef3df0cab7a80"/><file name="GenerateButton.php" hash="935e5f5cb347890ce147328a9193027c"/></dir></dir></dir><dir name="Data"><dir name="Banner"><file name="Cart.php" hash="04a32ebc21d78018ab71e4ea7e411e6c"/><file name="Category.php" hash="7c14ac1ea103d4a889380bf170633c2b"/><file name="Precart.php" hash="e6e697dfa7b9744deaa92f1fd05ef79b"/><file name="Product.php" hash="5efeac4df57a40053f46c26a8ea6bc67"/><file name="Search.php" hash="97cc0a574f2af78972182521c2fa65de"/></dir><file name="Banner.php" hash="f14c1370d0abff081db851e04fe750df"/></dir><file name="Data.php" hash="45a3a0b596544e3975bfe8655699ae8a"/><file name="Head.php" hash="fbbf6fa7a5b321456d3332e01173ce40"/><dir name="Select"><file name="Attributes.php" hash="d154be5a2caab5df010aa1a6eb16fe22"/></dir></dir><dir name="Helper"><file name="Data.php" hash="5ea865936705af3ef1c4b954135c4bc6"/></dir><dir name="Model"><dir name="Config"><dir name="Backend"><dir name="Serialized"><file name="Array.php" hash="a8224fb965f7ec1e4a82292fe98c6af4"/></dir></dir></dir><file name="Installer.php" hash="d3277e9f79cc8191dbf7d7622ab1da76"/><file name="Jsonrpc.php" hash="938c35541b1c94d83a958595d91dfd83"/><file name="Observer.php" hash="d00e11d3c34edc6ad29a8f323cf171a5"/></dir><dir name="controllers"><file name="GenerateController.php" hash="aa42b9c659f3b66b3352bd3abf95852b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="3514aa3c086e54d0ddf297f23fcfea73"/><file name="config.xml" hash="cd4023a40908640282339a89fac12a7e"/><file name="system.xml" hash="437749d3e6214ef53d0b0fcb1066ab4b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Avail_Pointofsale.xml" hash="13e371266225cc941048708a4161b447"/></dir></target><target name="mage"><dir name="availdataexporter"><file name="availdataexporter.bat" hash="15a9bf7b0de5f1ba2f6ffa95f6eec822"/><file name="availdataexporter.sh" hash="bba50d7881b26d8fc6452da9be778644"/><dir name="bin"><file name="availdataexporter.jar" hash="d5c945b01bb5356e991d77046907a9c1"/></dir><file name="exampleupload.conf" hash="091063e893b280cd58ace87ef63cbd1f"/><dir name="lib"><file name="commons-codec-1.3.jar" hash="6061dbc7e724e3066851a523b11a8101"/><file name="commons-httpclient-3.1.jar" hash="0d6dc1d0940e7c535a200cd6899e4a30"/><file name="commons-logging-1.1.1.jar" hash="47e83632f7bff28663b44a73fb634fda"/><file name="jtds-1.2.2.jar" hash="a8f0d9493455a962d0a6413977e8d80a"/><file name="log4j-1.2.15.jar" hash="add681ca6101e8d48ecfc5097514a576"/><file name="ms_sql_1.1.1501.jar" hash="3bc12b220fd0ed6e074eb26b938185e5"/><file name="mysql_5.1.6.jar" hash="40be305ee91fb6a7a385eeb260c7c08a"/><file name="sunjce_provider.jar" hash="dbea59e0bc9dd230c943f2417203c4b2"/></dir><dir name="log"><file name="log4j.properties" hash="2b80f1b69f03b4b4f8e5701e4da561cd"/></dir><file name="pointofsale.sh" hash="9c3f3f94728ac88fee98fcab40f92de6"/><file name="readme.txt" hash="85add76679cc012bb73b86fca43d6357"/></dir><dir name="js"><dir name="avail"><file name="cookie.js" hash="74f3f3fdc90fc154c750386b90bf97c1"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pointofsale"><dir name="select"><dir name="attributes"><file name="array.phtml" hash="00afe76c365eca665e9b8ad016de66a2"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pointofsale.xml" hash="b55f936504f8d53d2d7974f0991dc2bc"/></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.13</min><max>5.3.15</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>AvailPointofSale</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
9
  <summary>Avail Point-of-Sale will help you generate and display recommended products on different pages of your website.</summary>
10
  <description>This extension is compatible with the following Magento versions:&#xD;
11
  Magento Community Edition 1.6 and 1.7&#xD;
12
+ Magento Enterprise Edition 1.9, 1.10, 1.11, 1.12 and 1.13</description>
13
  <notes>This extension is compatible with the following Magento versions:&#xD;
14
  Magento Community Edition 1.6 and 1.7&#xD;
15
+ Magento Enterprise Edition 1.9, 1.10, 1.11, 1.12 and 1.13</notes>
16
  <authors><author><name>Smile</name><user>SmileOSS</user><email>solution.magento@smile.fr</email></author><author><name>Avail</name><user>AvailSupport</user><email>support@avail.net</email></author></authors>
17
+ <date>2013-05-31</date>
18
+ <time>16:42:42</time>
19
+ <contents><target name="magecommunity"><dir name="Avail"><dir name="Pointofsale"><dir name="Block"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Button.php" hash="d4dac482f8d688ba49eef3df0cab7a80"/><file name="GenerateButton.php" hash="935e5f5cb347890ce147328a9193027c"/></dir></dir></dir><dir name="Data"><dir name="Banner"><file name="Cart.php" hash="04a32ebc21d78018ab71e4ea7e411e6c"/><file name="Category.php" hash="7c14ac1ea103d4a889380bf170633c2b"/><file name="Precart.php" hash="e6e697dfa7b9744deaa92f1fd05ef79b"/><file name="Product.php" hash="5efeac4df57a40053f46c26a8ea6bc67"/><file name="Search.php" hash="97cc0a574f2af78972182521c2fa65de"/></dir><file name="Banner.php" hash="f14c1370d0abff081db851e04fe750df"/></dir><file name="Data.php" hash="45a3a0b596544e3975bfe8655699ae8a"/><file name="Head.php" hash="fbbf6fa7a5b321456d3332e01173ce40"/><dir name="Select"><file name="Attributes.php" hash="d154be5a2caab5df010aa1a6eb16fe22"/></dir></dir><dir name="Helper"><file name="Data.php" hash="5ea865936705af3ef1c4b954135c4bc6"/></dir><dir name="Model"><dir name="Config"><dir name="Backend"><dir name="Serialized"><file name="Array.php" hash="a8224fb965f7ec1e4a82292fe98c6af4"/></dir></dir></dir><file name="Installer.php" hash="d3277e9f79cc8191dbf7d7622ab1da76"/><file name="Jsonrpc.php" hash="938c35541b1c94d83a958595d91dfd83"/><file name="Observer.php" hash="d00e11d3c34edc6ad29a8f323cf171a5"/></dir><dir name="controllers"><file name="GenerateController.php" hash="aa42b9c659f3b66b3352bd3abf95852b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="3514aa3c086e54d0ddf297f23fcfea73"/><file name="config.xml" hash="cd4023a40908640282339a89fac12a7e"/><file name="system.xml" hash="437749d3e6214ef53d0b0fcb1066ab4b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Avail_Pointofsale.xml" hash="13e371266225cc941048708a4161b447"/></dir></target><target name="mage"><dir name="availdataexporter"><file name="availdataexporter.bat" hash="15a9bf7b0de5f1ba2f6ffa95f6eec822"/><file name="availdataexporter.sh" hash="bba50d7881b26d8fc6452da9be778644"/><dir name="bin"><file name="availdataexporter.jar" hash="d5c945b01bb5356e991d77046907a9c1"/></dir><file name="exampleupload.conf" hash="091063e893b280cd58ace87ef63cbd1f"/><dir name="lib"><file name="commons-codec-1.3.jar" hash="6061dbc7e724e3066851a523b11a8101"/><file name="commons-httpclient-3.1.jar" hash="0d6dc1d0940e7c535a200cd6899e4a30"/><file name="commons-logging-1.1.1.jar" hash="47e83632f7bff28663b44a73fb634fda"/><file name="jtds-1.2.2.jar" hash="a8f0d9493455a962d0a6413977e8d80a"/><file name="log4j-1.2.15.jar" hash="add681ca6101e8d48ecfc5097514a576"/><file name="ms_sql_1.1.1501.jar" hash="3bc12b220fd0ed6e074eb26b938185e5"/><file name="mysql_5.1.6.jar" hash="40be305ee91fb6a7a385eeb260c7c08a"/><file name="sunjce_provider.jar" hash="dbea59e0bc9dd230c943f2417203c4b2"/></dir><dir name="log"><file name="log4j.properties" hash="2b80f1b69f03b4b4f8e5701e4da561cd"/></dir><file name="pointofsale.sh" hash="9c3f3f94728ac88fee98fcab40f92de6"/><file name="readme.txt" hash="85add76679cc012bb73b86fca43d6357"/></dir><dir name="js"><dir name="avail"><file name="cookie.js" hash="74f3f3fdc90fc154c750386b90bf97c1"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="pointofsale"><dir name="select"><dir name="attributes"><file name="array.phtml" hash="00afe76c365eca665e9b8ad016de66a2"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pointofsale.xml" hash="b55f936504f8d53d2d7974f0991dc2bc"/></dir><dir name="template"><dir name="pointofsale"><file name="data.phtml" hash="516d4dd14212e2a7822d7fd1bf58aa48"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.13</min><max>5.3.15</max></php></required></dependencies>
22
  </package>