Version Notes
Bug Fixes:
- Fixed problem that caused an "Undefined offset" PHP warning during order creation.
Download this release
Release Info
| Developer | PriceWaiter |
| Extension | nypwidget |
| Version | 1.2.9 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.7 to 1.2.9
app/code/community/PriceWaiter/NYPWidget/Helper/Data.php
CHANGED
|
@@ -166,7 +166,7 @@ class PriceWaiter_NYPWidget_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 166 |
public function getWidgetUrl()
|
| 167 |
{
|
| 168 |
if ($this->_testing) {
|
| 169 |
-
return "https://
|
| 170 |
} else {
|
| 171 |
return "https://widget.pricewaiter.com/nyp/script/widget.js";
|
| 172 |
}
|
|
@@ -175,7 +175,7 @@ class PriceWaiter_NYPWidget_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 175 |
public function getApiUrl()
|
| 176 |
{
|
| 177 |
if ($this->_testing) {
|
| 178 |
-
return "https://api-
|
| 179 |
. "api_key="
|
| 180 |
. Mage::getStoreConfig('pricewaiter/configuration/api_key');
|
| 181 |
} else {
|
| 166 |
public function getWidgetUrl()
|
| 167 |
{
|
| 168 |
if ($this->_testing) {
|
| 169 |
+
return "https://widget-staging.pricewaiter.com/nyp/script/widget.js";
|
| 170 |
} else {
|
| 171 |
return "https://widget.pricewaiter.com/nyp/script/widget.js";
|
| 172 |
}
|
| 175 |
public function getApiUrl()
|
| 176 |
{
|
| 177 |
if ($this->_testing) {
|
| 178 |
+
return "https://api-staging.pricewaiter.com/1/order/verify?"
|
| 179 |
. "api_key="
|
| 180 |
. Mage::getStoreConfig('pricewaiter/configuration/api_key');
|
| 181 |
} else {
|
app/code/community/PriceWaiter/NYPWidget/Model/Callback.php
CHANGED
|
@@ -92,8 +92,8 @@ class PriceWaiter_NYPWidget_Model_Callback
|
|
| 92 |
}
|
| 93 |
|
| 94 |
$customer->setEmail($request['buyer_email']);
|
| 95 |
-
$customer->setFirstname($
|
| 96 |
-
$customer->setLastname($
|
| 97 |
$customer->setPassword($password);
|
| 98 |
$customer->setConfirmation(null);
|
| 99 |
$customer->setWebsiteId($this->_store->getWebsiteId());
|
|
@@ -157,11 +157,12 @@ class PriceWaiter_NYPWidget_Model_Callback
|
|
| 157 |
$order->setBillingAddress($billingAddress);
|
| 158 |
|
| 159 |
// Try to get the shipping name. If we fail, fall back on the buyer_first/last_name fields
|
| 160 |
-
preg_match('#^(\w+\.)?\s*([\'\’\w]+)\s+([\'\’\w]+)\s*(\w+\.?)?$#'
|
| 161 |
-
$request['buyer_shipping_first_name'] = $name[2];
|
| 162 |
-
$request['buyer_shipping_last_name'] = $name[3];
|
| 163 |
|
| 164 |
-
if ($
|
|
|
|
|
|
|
|
|
|
| 165 |
$request['buyer_shipping_first_name'] = $request['buyer_first_name'];
|
| 166 |
$request['buyer_shipping_last_name'] = $request['buyer_last_name'];
|
| 167 |
}
|
| 92 |
}
|
| 93 |
|
| 94 |
$customer->setEmail($request['buyer_email']);
|
| 95 |
+
$customer->setFirstname($request['buyer_first_name']);
|
| 96 |
+
$customer->setLastname($request['buyer_last_name']);
|
| 97 |
$customer->setPassword($password);
|
| 98 |
$customer->setConfirmation(null);
|
| 99 |
$customer->setWebsiteId($this->_store->getWebsiteId());
|
| 157 |
$order->setBillingAddress($billingAddress);
|
| 158 |
|
| 159 |
// Try to get the shipping name. If we fail, fall back on the buyer_first/last_name fields
|
| 160 |
+
preg_match('#^(\w+\.)?\s*([\'\’\w]+)\s+([\'\’\w]+)\s*(\w+\.?)?$#', $request['buyer_shipping_name'], $name);
|
|
|
|
|
|
|
| 161 |
|
| 162 |
+
if (array_key_exists(2, $name)) {
|
| 163 |
+
$request['buyer_shipping_first_name'] = $name[2];
|
| 164 |
+
$request['buyer_shipping_last_name'] = $name[3];
|
| 165 |
+
} else {
|
| 166 |
$request['buyer_shipping_first_name'] = $request['buyer_first_name'];
|
| 167 |
$request['buyer_shipping_last_name'] = $request['buyer_last_name'];
|
| 168 |
}
|
app/code/community/PriceWaiter/NYPWidget/etc/config.xml
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
|
| 19 |
<modules>
|
| 20 |
<PriceWaiter_NYPWidget>
|
| 21 |
-
<version>1.2.
|
| 22 |
</PriceWaiter_NYPWidget>
|
| 23 |
</modules>
|
| 24 |
|
| 18 |
|
| 19 |
<modules>
|
| 20 |
<PriceWaiter_NYPWidget>
|
| 21 |
+
<version>1.2.9</version>
|
| 22 |
</PriceWaiter_NYPWidget>
|
| 23 |
</modules>
|
| 24 |
|
package.xml
CHANGED
|
@@ -1,21 +1,21 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>nypwidget</name>
|
| 4 |
-
<version>1.2.
|
| 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>
|
| 8 |
<extends/>
|
| 9 |
<summary>PriceWaiter® let's buyers make offers on your products that you can easily accept, counter offer or reject.</summary>
|
| 10 |
<description>Sell more, immediately, with the PriceWaiter® widget. Convert comparison shoppers you might have lost, increase sales and conversions, and stop "minimum advertised price" from preventing sales before they even start.
|
|
|
|
| 11 |
PriceWaiter® lets customers make offers on products you sell-- offers you can accept, reject or counter. The widget embeds a simple Name Your Price button on any product page or category that you choose. Simply install the extension and you'll have full control over PriceWaiter® in your Magento admin control panel.</description>
|
| 12 |
<notes>Bug Fixes:
|
| 13 |
-
-
|
| 14 |
-
</notes>
|
| 15 |
<authors><author><name>PriceWaiter</name><user>pricewaiter</user><email>bobby.b@pricewaiter.com</email></author></authors>
|
| 16 |
-
<date>2014-02-
|
| 17 |
-
<time>
|
| 18 |
-
<contents><target name="magecommunity"><dir name="PriceWaiter"><dir name="NYPWidget"><dir name="Block"><dir name="Adminhtml"><file name="Widget.php" hash="cffdba25dabdb8f9b6a2eac21c0e82e0"/></dir><file name="Category.php" hash="ba5bcfb87399356266eb2874bf691d6e"/><file name="Widget.php" hash="25489ee6ae666d91db98b70dd6adbf40"/></dir><dir name="Helper"><file name="Data.php" hash="
|
| 19 |
<compatible/>
|
| 20 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 21 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>nypwidget</name>
|
| 4 |
+
<version>1.2.9</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>
|
| 8 |
<extends/>
|
| 9 |
<summary>PriceWaiter® let's buyers make offers on your products that you can easily accept, counter offer or reject.</summary>
|
| 10 |
<description>Sell more, immediately, with the PriceWaiter® widget. Convert comparison shoppers you might have lost, increase sales and conversions, and stop "minimum advertised price" from preventing sales before they even start.
|
| 11 |
+

|
| 12 |
PriceWaiter® lets customers make offers on products you sell-- offers you can accept, reject or counter. The widget embeds a simple Name Your Price button on any product page or category that you choose. Simply install the extension and you'll have full control over PriceWaiter® in your Magento admin control panel.</description>
|
| 13 |
<notes>Bug Fixes:
|
| 14 |
+
- Fixed problem that caused an "Undefined offset" PHP warning during order creation.</notes>
|
|
|
|
| 15 |
<authors><author><name>PriceWaiter</name><user>pricewaiter</user><email>bobby.b@pricewaiter.com</email></author></authors>
|
| 16 |
+
<date>2014-02-17</date>
|
| 17 |
+
<time>21:05:35</time>
|
| 18 |
+
<contents><target name="magecommunity"><dir name="PriceWaiter"><dir name="NYPWidget"><dir name="Block"><dir name="Adminhtml"><file name="Widget.php" hash="cffdba25dabdb8f9b6a2eac21c0e82e0"/></dir><file name="Category.php" hash="ba5bcfb87399356266eb2874bf691d6e"/><file name="Widget.php" hash="25489ee6ae666d91db98b70dd6adbf40"/></dir><dir name="Helper"><file name="Data.php" hash="c1a354ddc07fa2cd3c1adee7ac843b7e"/></dir><dir name="Model"><file name="Callback.php" hash="1e9f3840e9e3ee1c07e5f9ae9e8fc9c3"/><dir name="Carrier"><file name="ShippingMethod.php" hash="1df7b75009a6e6e8e41b554fecb813db"/></dir><file name="Category.php" hash="55588e458cacb778b92fdacd8edeb22a"/><dir name="Display"><file name="Phrase.php" hash="ad605b93302ec648c5a7d3e3401f47b5"/><file name="Size.php" hash="42c2917e730811b78fd12e7591cb9159"/></dir><dir name="Mysql4"><dir name="Category"><file name="Collection.php" hash="adbbb19ccafb1498bb0d4c5d20abddd1"/></dir><file name="Category.php" hash="ba6b693541711d91edc5b7edae799a97"/><dir name="Order"><file name="Collection.php" hash="de7e92559722c9735b32a6d30862087e"/></dir><file name="Order.php" hash="237302190fa65833b5ff187dd0bbe71a"/></dir><file name="Observer.php" hash="a5b643d09e366068028dc1df1abee154"/><file name="Order.php" hash="c44f2d228a38e991843cee197abd397c"/><file name="PaymentMethod.php" hash="0106a5c193079d4cf07005fc9d22dd29"/><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="da87eaa37fc5a09a5d5c38f9bbecabb1"/></dir></dir></dir></dir><dir name="controllers"><file name="CallbackController.php" hash="8b95003b06ebc0e1a05430655f2caacd"/></dir><dir name="etc"><file name="adminhtml.xml" hash="022f1761ba091c7e1f3e4901d40d5ce0"/><file name="config.xml" hash="19448d614d5e5c1686b8095bc4fd7e5f"/><file name="system.xml" hash="8b65aaf26f9bb75eee863e169b25a7ae"/></dir><dir name="sql"><dir name="nypwidget_setup"><file name="mysql4-install-1.0.0.php" hash="b30a0b38090a9c7aafb1a419b21755fe"/><file name="mysql4-upgrade-1.1.2-1.1.3.php" hash="8d4bd167694c277a0e8ab8034d87cb1b"/><file name="mysql4-upgrade-1.1.7-1.1.8.php" hash="2a8de13744724f647e23e612ecf1d196"/><file name="mysql4-upgrade-1.2.4-1.2.5.php" hash="4b0ef14d3e455afea1d966f8f1641d6b"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pricewaiter.xml" hash="cc51462b56118a611be1a329b308d528"/></dir><dir name="template"><dir name="pricewaiter"><file name="admin_widget.phtml" hash="daae86cfa34fbe5e786715c0c579e398"/><file name="categorytab.phtml" hash="43f8af9feca6775e4a1e8a149a86268e"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pricewaiter.xml" hash="0da284d426574c7ae1f154b096f8b413"/></dir><dir name="template"><dir name="pricewaiter"><file name="widget.phtml" hash="d4e9f431922f843d5911a8b9ec2b814e"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PriceWaiter_NYPWidget.xml" hash="d3b86fa976b99e64df65f9e98d689257"/></dir></target><target name="mage"><dir name="js"><dir name="jscolor-pw"><file name="arrow.gif" hash="5034704a76cd55c1cbcbc58ea6bf523f"/><file name="cross.gif" hash="ba9a274b9323753cd95bc3b1eb2f4e5f"/><file name="hs.png" hash="fefa1a03d92ebad25c88dca94a0b63db"/><file name="hv.png" hash="990d71cada17da100653636cf8490884"/><file name="jscolor.js" hash="668050b57cb3ad59d0a56a16fddf1a91"/></dir><dir name="pricewaiter"><file name="product-pages.js" hash="b2b6833f7307963d3da6bb4e785f2540"/></dir></dir></target><target name="mageskin"><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"/></dir><file name="pricewaiter.css" hash="6a58cdaa35d8f61cbb305a6a1a206816"/></dir></dir></dir></target></contents>
|
| 19 |
<compatible/>
|
| 20 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 21 |
</package>
|
