nypwidget - Version 2.2.0

Version Notes

Bug Fix:
- Resolves some order writing issues.

Download this release

Release Info

Developer PriceWaiter
Extension nypwidget
Version 2.2.0
Comparing to
See all releases


Code changes from version 2.1.5 to 2.2.0

app/code/community/PriceWaiter/NYPWidget/Helper/Data.php CHANGED
@@ -75,16 +75,6 @@ class PriceWaiter_NYPWidget_Helper_Data extends Mage_Core_Helper_Abstract
75
  $this->_conversionToolsEnabled = true;
76
  }
77
 
78
- // Is the pricewaiter widget enabled for this product
79
- $product = $this->_getProduct();
80
- if (!is_object($product) or ($product->getId() and $product->getData('nypwidget_disabled'))) {
81
- $this->_buttonEnabled = false;
82
- }
83
-
84
- if (!is_object($product) or ($product->getId() and $product->getData('nypwidget_ct_disabled'))) {
85
- $this->_conversionToolsEnabled = false;
86
- }
87
-
88
  // Is the PriceWaiter widget enabled for this category
89
  $category = Mage::registry('current_category');
90
  if (is_object($category)) {
75
  $this->_conversionToolsEnabled = true;
76
  }
77
 
 
 
 
 
 
 
 
 
 
 
78
  // Is the PriceWaiter widget enabled for this category
79
  $category = Mage::registry('current_category');
80
  if (is_object($category)) {
app/code/community/PriceWaiter/NYPWidget/etc/config.xml CHANGED
@@ -18,7 +18,7 @@
18
 
19
  <modules>
20
  <PriceWaiter_NYPWidget>
21
- <version>2.1.5</version>
22
  </PriceWaiter_NYPWidget>
23
  </modules>
24
 
18
 
19
  <modules>
20
  <PriceWaiter_NYPWidget>
21
+ <version>2.2.0</version>
22
  </PriceWaiter_NYPWidget>
23
  </modules>
24
 
app/code/community/PriceWaiter/NYPWidget/sql/nypwidget_setup/mysql4-upgrade-1.1.2-1.1.3.php CHANGED
@@ -25,27 +25,28 @@ $installer->startSetup();
25
  $installer->removeAttribute('catalog_product', 'nypwidget_enabled');
26
 
27
  // Add a new attribute to all prodcuts to toggle the Widget on/off
28
- $installer->addAttribute('catalog_product', 'nypwidget_disabled',
29
- array(
30
- 'group' => 'General',
31
- 'label' => 'Disable PriceWaiter Widget?',
32
- 'type' => 'int',
33
- 'input' => 'boolean',
34
- 'default' => '0',
35
- 'class' => '',
36
- 'backend' => '',
37
- 'frontend' => '',
38
- 'source' => '',
39
- 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
40
- 'visible' => true,
41
- 'required' => true,
42
- 'user_defined' => false,
43
- 'searchable' => true,
44
- 'filterable' => true,
45
- 'comparable' => true,
46
- 'visible_on_front' => true,
47
- 'visible_in_advanced_search' => false,
48
- 'unique' => false,
49
- 'apply_to' => $supportTypeIds,
50
- )
51
- );
 
25
  $installer->removeAttribute('catalog_product', 'nypwidget_enabled');
26
 
27
  // Add a new attribute to all prodcuts to toggle the Widget on/off
28
+ // 2016-02-29 MJE disabled in future upgrade
29
+ // $installer->addAttribute('catalog_product', 'nypwidget_disabled',
30
+ // array(
31
+ // 'group' => 'General',
32
+ // 'label' => 'Disable PriceWaiter Widget?',
33
+ // 'type' => 'int',
34
+ // 'input' => 'boolean',
35
+ // 'default' => '0',
36
+ // 'class' => '',
37
+ // 'backend' => '',
38
+ // 'frontend' => '',
39
+ // 'source' => '',
40
+ // 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
41
+ // 'visible' => true,
42
+ // 'required' => true,
43
+ // 'user_defined' => false,
44
+ // 'searchable' => true,
45
+ // 'filterable' => true,
46
+ // 'comparable' => true,
47
+ // 'visible_on_front' => true,
48
+ // 'visible_in_advanced_search' => false,
49
+ // 'unique' => false,
50
+ // 'apply_to' => $supportTypeIds,
51
+ // )
52
+ // );
app/code/community/PriceWaiter/NYPWidget/sql/nypwidget_setup/mysql4-upgrade-1.3.0-1.3.1.php CHANGED
@@ -23,30 +23,31 @@ $installer = $this;
23
  $installer->startSetup();
24
 
25
  // Add a new attribute to all products to toggle the Conversion Tools on/off
26
- $installer->addAttribute('catalog_product', 'nypwidget_ct_disabled',
27
- array(
28
- 'group' => 'General',
29
- 'label' => 'Disable PriceWaiter Conversion Tools? (such as Exit Intent)',
30
- 'type' => 'int',
31
- 'input' => 'boolean',
32
- 'default' => '0',
33
- 'class' => '',
34
- 'backend' => '',
35
- 'frontend' => '',
36
- 'source' => '',
37
- 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
38
- 'visible' => true,
39
- 'required' => true,
40
- 'user_defined' => false,
41
- 'searchable' => true,
42
- 'filterable' => true,
43
- 'comparable' => true,
44
- 'visible_on_front' => true,
45
- 'visible_in_advanced_search' => false,
46
- 'unique' => false,
47
- 'apply_to' => $supportTypeIds,
48
- )
49
- );
 
50
 
51
  // Add an attribute to our nypwidget_category table to hold conversion tools information
52
  $installer->run("
23
  $installer->startSetup();
24
 
25
  // Add a new attribute to all products to toggle the Conversion Tools on/off
26
+ // 2016-02-29 MJE disabled in future upgrade
27
+ // $installer->addAttribute('catalog_product', 'nypwidget_ct_disabled',
28
+ // array(
29
+ // 'group' => 'General',
30
+ // 'label' => 'Disable PriceWaiter Conversion Tools? (such as Exit Intent)',
31
+ // 'type' => 'int',
32
+ // 'input' => 'boolean',
33
+ // 'default' => '0',
34
+ // 'class' => '',
35
+ // 'backend' => '',
36
+ // 'frontend' => '',
37
+ // 'source' => '',
38
+ // 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE,
39
+ // 'visible' => true,
40
+ // 'required' => true,
41
+ // 'user_defined' => false,
42
+ // 'searchable' => true,
43
+ // 'filterable' => true,
44
+ // 'comparable' => true,
45
+ // 'visible_on_front' => true,
46
+ // 'visible_in_advanced_search' => false,
47
+ // 'unique' => false,
48
+ // 'apply_to' => $supportTypeIds,
49
+ // )
50
+ // );
51
 
52
  // Add an attribute to our nypwidget_category table to hold conversion tools information
53
  $installer->run("
app/code/community/PriceWaiter/NYPWidget/sql/nypwidget_setup/mysql4-upgrade-2.1.5-2.2.0.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Copyright 2013-2015 Price Waiter, LLC
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
+ $installer = $this;
20
+ $installer->startSetup();
21
+
22
+ // Remove old toggle attributes on products
23
+ $installer->removeAttribute('catalog_product', 'nypwidget_disabled');
24
+ $installer->removeAttribute('catalog_product', 'nypwidget_ct_disabled');
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>nypwidget</name>
4
- <version>2.1.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License, Version 2.0</license>
7
  <channel>community</channel>
@@ -16,9 +16,9 @@
16
  <email>extensions@pricewaiter.com</email>
17
  </author>
18
  </authors>
19
- <date>2016-03-01</date>
20
- <time>01:00:14</time>
21
- <contents><target name="mageweb"><dir name="app"><dir name="etc"><dir name="modules"><file name="PriceWaiter_NYPWidget.xml" hash="72be18d9a8a741abc8926866449619cd"/></dir></dir><dir name="code"><dir name="community"><dir name="PriceWaiter"><dir name="NYPWidget"><dir name="Block"><dir name="Adminhtml"><file name="Link.php" hash="6b860db5d597f3ff697c927e3d08a085"/><file name="Signup.php" hash="35a2739246307b5c7a3b69780a7f31fd"/><file name="Widget.php" hash="b781daf1de34d7856de7faba65afe414"/></dir><file name="Category.php" hash="de6397a45d7deabc803bef83a83d6b9a"/><file name="Widget.php" hash="193d694c4acc2133d8402f1e59d4dc25"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PricewaiterController.php" hash="27e17f05c8e2b2edcc28230185334f35"/></dir><file name="CallbackController.php" hash="4c45b3d73999c3e69a11538b99b3b3fd"/><file name="ProductinfoController.php" hash="62780d33252c907cd48f9ff3326b3e8b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dff2f6de0dacaf5a933048fa4a347f2f"/><file name="config.xml" hash="97c9f5f47a52e6a53be33296380724ca"/><file name="system.xml" hash="5188b4e0994ed8b51a10f4129b3c0d19"/></dir><dir name="Helper"><file name="Data.php" hash="afa849a36c868e5df9e036f16e15543c"/></dir><dir name="Model"><file name="Callback.php" hash="441661b9a5a6d812a1d39b1a199da2a0"/><file name="Category.php" hash="884685769be745cb273833ab7d691593"/><file name="Observer.php" hash="2399e210dd82633091570483f144bf12"/><file name="Order.php" hash="080844dcc4cf55d516abe27175a3a62a"/><file name="PaymentMethod.php" hash="386134e1ac803580222263523f0ced31"/><dir name="Carrier"><file name="ShippingMethod.php" hash="43a6ec1ad462797a5359238dcf9a749d"/></dir><dir name="Display"><file name="Phrase.php" hash="5b595a42b487930154c505a8e9a1301c"/><file name="Size.php" hash="8a596164268f48c3c034274550b13b96"/></dir><dir name="Mysql4"><dir name="Category"><file name="Collection.php" hash="45eaa532cd5935b69102b8969da848fa"/></dir><file name="Category.php" hash="f4e761813ec4bb81d919f30895ce3578"/><file name="Order.php" hash="c08b340cec16bf774a7c178726dee0ac"/><dir name="Order"><file name="Collection.php" hash="4dc5b344274c0e5a391a24864fd1c003"/></dir></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="d63678e9cc718ee87e8db3ca5163a8fd"/></dir></dir></dir></dir><dir name="sql"><dir name="nypwidget_setup"><file name="mysql4-install-1.0.0.php" hash="cd1b7892e75e4452ee94afbbefb4de6e"/><file name="mysql4-upgrade-1.1.2-1.1.3.php" hash="d1ae05f5cbe4a8f833e92b9f49d395db"/><file name="mysql4-upgrade-1.1.7-1.1.8.php" hash="bd342c802f6c91de6f9f51b0a4a25414"/><file name="mysql4-upgrade-1.2.4-1.2.5.php" hash="b1ced0226bef6e950e026402b933872f"/><file name="mysql4-upgrade-1.3.0-1.3.1.php" hash="106b36065c125be31fc67424d80acdd4"/></dir></dir></dir></dir></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pricewaiter.xml" hash="9e06026a8a820224336de4c9a7dde3fd"/></dir><dir name="template"><dir name="pricewaiter"><file name="categorytab.phtml" hash="d1d2c333cc9b18c909a44d333d8ab077"/><file name="signup.phtml" hash="fc18c669c18c55cccdf2c66c96199dec"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pricewaiter.xml" hash="ab65e8c99c560997d403a780295a47da"/></dir><dir name="template"><dir name="pricewaiter"><file name="widget.phtml" hash="3565fcfb7dd9fecd26512d5fc41333e4"/></dir></dir></dir></dir></dir></dir></dir><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="pricewaiter_logo.png" hash="becb9713a561131ff69eabb7503d3e74"/><file name="pricewaiter_tab.png" hash="1bab71be6b1a93aee2ae7aeae3807484"/><file name="pricewaiter_logo.png" hash="becb9713a561131ff69eabb7503d3e74"/><file name="pricewaiter_tab.png" hash="1bab71be6b1a93aee2ae7aeae3807484"/></dir><file name="pricewaiter.css" hash="c4061169f3e505c28bd09924108ca0ad"/></dir></dir></dir></dir><dir name="js"><dir name="pricewaiter"><file name="product-pages.js" hash="073eb5cd568a3db8b3ab7f94d5ffba3c"/><file name="token.js" hash="dbaedb04a60982743949e16096ed7f58"/></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies>
24
  <required>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>nypwidget</name>
4
+ <version>2.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License, Version 2.0</license>
7
  <channel>community</channel>
16
  <email>extensions@pricewaiter.com</email>
17
  </author>
18
  </authors>
19
+ <date>2016-03-04</date>
20
+ <time>17:36:30</time>
21
+ <contents><target name="mageweb"><dir name="app"><dir name="etc"><dir name="modules"><file name="PriceWaiter_NYPWidget.xml" hash="72be18d9a8a741abc8926866449619cd"/></dir></dir><dir name="code"><dir name="community"><dir name="PriceWaiter"><dir name="NYPWidget"><dir name="Block"><dir name="Adminhtml"><file name="Link.php" hash="6b860db5d597f3ff697c927e3d08a085"/><file name="Signup.php" hash="35a2739246307b5c7a3b69780a7f31fd"/><file name="Widget.php" hash="b781daf1de34d7856de7faba65afe414"/></dir><file name="Category.php" hash="de6397a45d7deabc803bef83a83d6b9a"/><file name="Widget.php" hash="193d694c4acc2133d8402f1e59d4dc25"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PricewaiterController.php" hash="27e17f05c8e2b2edcc28230185334f35"/></dir><file name="CallbackController.php" hash="4c45b3d73999c3e69a11538b99b3b3fd"/><file name="ProductinfoController.php" hash="62780d33252c907cd48f9ff3326b3e8b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="dff2f6de0dacaf5a933048fa4a347f2f"/><file name="config.xml" hash="d711e7cca2c7c09104d0601fb4f6e7a4"/><file name="system.xml" hash="5188b4e0994ed8b51a10f4129b3c0d19"/></dir><dir name="Helper"><file name="Data.php" hash="265e207d08776272bfbad4e8ab2d76c5"/></dir><dir name="Model"><file name="Callback.php" hash="441661b9a5a6d812a1d39b1a199da2a0"/><file name="Category.php" hash="884685769be745cb273833ab7d691593"/><file name="Observer.php" hash="2399e210dd82633091570483f144bf12"/><file name="Order.php" hash="080844dcc4cf55d516abe27175a3a62a"/><file name="PaymentMethod.php" hash="386134e1ac803580222263523f0ced31"/><dir name="Carrier"><file name="ShippingMethod.php" hash="43a6ec1ad462797a5359238dcf9a749d"/></dir><dir name="Display"><file name="Phrase.php" hash="5b595a42b487930154c505a8e9a1301c"/><file name="Size.php" hash="8a596164268f48c3c034274550b13b96"/></dir><dir name="Mysql4"><dir name="Category"><file name="Collection.php" hash="45eaa532cd5935b69102b8969da848fa"/></dir><file name="Category.php" hash="f4e761813ec4bb81d919f30895ce3578"/><file name="Order.php" hash="c08b340cec16bf774a7c178726dee0ac"/><dir name="Order"><file name="Collection.php" hash="4dc5b344274c0e5a391a24864fd1c003"/></dir></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="d63678e9cc718ee87e8db3ca5163a8fd"/></dir></dir></dir></dir><dir name="sql"><dir name="nypwidget_setup"><file name="mysql4-install-1.0.0.php" hash="cd1b7892e75e4452ee94afbbefb4de6e"/><file name="mysql4-upgrade-1.1.2-1.1.3.php" hash="5a3771ffa0121abd2a6951832d5d9cff"/><file name="mysql4-upgrade-1.1.7-1.1.8.php" hash="bd342c802f6c91de6f9f51b0a4a25414"/><file name="mysql4-upgrade-1.2.4-1.2.5.php" hash="b1ced0226bef6e950e026402b933872f"/><file name="mysql4-upgrade-1.3.0-1.3.1.php" hash="6679da88507af81c186489afc0c9de11"/><file name="mysql4-upgrade-2.1.5-2.2.0.php" hash="3c07f9cb641d892862d8493535d5d761"/></dir></dir></dir></dir></dir></dir><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pricewaiter.xml" hash="9e06026a8a820224336de4c9a7dde3fd"/></dir><dir name="template"><dir name="pricewaiter"><file name="categorytab.phtml" hash="d1d2c333cc9b18c909a44d333d8ab077"/><file name="signup.phtml" hash="fc18c669c18c55cccdf2c66c96199dec"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pricewaiter.xml" hash="ab65e8c99c560997d403a780295a47da"/></dir><dir name="template"><dir name="pricewaiter"><file name="widget.phtml" hash="3565fcfb7dd9fecd26512d5fc41333e4"/></dir></dir></dir></dir></dir></dir></dir><dir name="skin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="images"><file name="pricewaiter_logo.png" hash="becb9713a561131ff69eabb7503d3e74"/><file name="pricewaiter_tab.png" hash="1bab71be6b1a93aee2ae7aeae3807484"/><file name="pricewaiter_logo.png" hash="becb9713a561131ff69eabb7503d3e74"/><file name="pricewaiter_tab.png" hash="1bab71be6b1a93aee2ae7aeae3807484"/></dir><file name="pricewaiter.css" hash="c4061169f3e505c28bd09924108ca0ad"/></dir></dir></dir></dir><dir name="js"><dir name="pricewaiter"><file name="product-pages.js" hash="073eb5cd568a3db8b3ab7f94d5ffba3c"/><file name="token.js" hash="dbaedb04a60982743949e16096ed7f58"/></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies>
24
  <required>