Version Notes
- Fixed issue with tablerates shipping method
Version 1.2.8 released
2013/05/05
Version number: 1.2.8
Stability: stable
Compatibility: 1.5, 1.6, 1.6.0.0, 1.6.1, 1.6.2.0, 1.7
Download this release
Release Info
Developer | Sergiy Stotskiy |
Extension | FI_Checkout |
Version | 1.2.8 |
Comparing to | |
See all releases |
Code changes from version 1.2.7 to 1.2.8
app/code/community/FI/Checkout/Model/Observer.php
CHANGED
@@ -22,6 +22,7 @@ class FI_Checkout_Model_Observer
|
|
22 |
|
23 |
Mage::helper('fi_checkout')->buildSessionOrder()
|
24 |
->exportAddressTo($address)
|
|
|
25 |
->detectShippingMethodFor($address)
|
26 |
->exportAddressTo($address)
|
27 |
->exportPaymentTo($quote->getPayment())
|
22 |
|
23 |
Mage::helper('fi_checkout')->buildSessionOrder()
|
24 |
->exportAddressTo($address)
|
25 |
+
->exportAddressTo($quote->getBillingAddress())
|
26 |
->detectShippingMethodFor($address)
|
27 |
->exportAddressTo($address)
|
28 |
->exportPaymentTo($quote->getPayment())
|
app/code/community/FI/Checkout/Model/Order.php
CHANGED
@@ -145,13 +145,10 @@ class FI_Checkout_Model_Order
|
|
145 |
*/
|
146 |
public function detectShippingMethodFor(Mage_Sales_Model_Quote_Address $address)
|
147 |
{
|
148 |
-
$rates = $address->
|
149 |
-
if (
|
150 |
$rate = reset($rates);
|
151 |
-
$
|
152 |
-
if (is_object($rate)) {
|
153 |
-
$this->setShippingMethod($rate->getCode());
|
154 |
-
}
|
155 |
}
|
156 |
return $this;
|
157 |
}
|
@@ -193,4 +190,4 @@ class FI_Checkout_Model_Order
|
|
193 |
}
|
194 |
return $this;
|
195 |
}
|
196 |
-
}
|
145 |
*/
|
146 |
public function detectShippingMethodFor(Mage_Sales_Model_Quote_Address $address)
|
147 |
{
|
148 |
+
$rates = $address->getAllShippingRates();
|
149 |
+
if (count($rates) == 1) {
|
150 |
$rate = reset($rates);
|
151 |
+
$this->setShippingMethod($rate->getCode());
|
|
|
|
|
|
|
152 |
}
|
153 |
return $this;
|
154 |
}
|
190 |
}
|
191 |
return $this;
|
192 |
}
|
193 |
+
}
|
app/code/community/FI/Checkout/controllers/CheckoutController.php
CHANGED
@@ -281,11 +281,8 @@ class FI_Checkout_CheckoutController extends Mage_Checkout_Controller_Action
|
|
281 |
return $this;
|
282 |
}
|
283 |
|
284 |
-
$
|
285 |
-
$
|
286 |
-
$sessionOrder->exportAddressTo($quote->getShippingAddress());
|
287 |
-
$sessionOrder->exportAddressTo($quote->getBillingAddress());
|
288 |
-
$sessionOrder->exportPaymentTo($quote->getPayment());
|
289 |
|
290 |
$blocks = array();
|
291 |
$type = array_flip(explode(',', $request->getParam('type')));
|
@@ -306,7 +303,6 @@ class FI_Checkout_CheckoutController extends Mage_Checkout_Controller_Action
|
|
306 |
}
|
307 |
|
308 |
if (isset($type['totals'])) {
|
309 |
-
$quote->collectTotals();
|
310 |
$blocks['totals'] = $this->getLayout()
|
311 |
->getBlock('checkout.cart.totals')
|
312 |
->toHtml();
|
281 |
return $this;
|
282 |
}
|
283 |
|
284 |
+
$this->_buildSessionOrder();
|
285 |
+
$this->getOnepage()->getQuote()->collectTotals();
|
|
|
|
|
|
|
286 |
|
287 |
$blocks = array();
|
288 |
$type = array_flip(explode(',', $request->getParam('type')));
|
303 |
}
|
304 |
|
305 |
if (isset($type['totals'])) {
|
|
|
306 |
$blocks['totals'] = $this->getLayout()
|
307 |
->getBlock('checkout.cart.totals')
|
308 |
->toHtml();
|
package.xml
CHANGED
@@ -1,25 +1,24 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>FI_Checkout</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/MIT">MIT License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>0 Step Checkout provide One Page Checkout functionality for Magento, combine all the steps for checkout (including shopping cart) into one page only. It will made the checkout process much simpler. </summary>
|
10 |
<description>0 Step Checkout provide One Page Checkout functionality for Magento, combine all the steps for checkout (including shopping cart) into one page only. It will made the checkout process much simpler. To get more information please visit http://ex.freaksidea.com/0-step-checkout-magento.html</description>
|
11 |
-
<notes>- Fixed
|
12 |
-
- Fixed javascript exception
|
13 |

|
14 |
-
Version 1.2.
|
15 |
-
2013/
|
16 |
-
Version number: 1.2.
|
17 |
Stability: stable
|
18 |
Compatibility: 1.5, 1.6, 1.6.0.0, 1.6.1, 1.6.2.0, 1.7</notes>
|
19 |
<authors><author><name>Sergiy Stotskiy</name><user>sergiy_stotskiy</user><email>sergiy.stotskiy@freaksidea.com</email></author></authors>
|
20 |
-
<date>2013-
|
21 |
-
<time>
|
22 |
-
<contents><target name="magecommunity"><dir name="FI"><dir name="Checkout"><dir name="Block"><dir name="Block"><file name="Info.php" hash="1fd221f5b1c6e0314532b06ebe3e937f"/></dir><file name="Block.php" hash="e96feb1510b4bdc5ba4513e7f98490cf"/><file name="Links.php" hash="79996dab004b214d93362aecf2f45b83"/><file name="Newsletter.php" hash="19d5938be8caac3eb661fb1f45af66f3"/><dir name="Payment"><file name="Methods.php" hash="c42b6ba6678ab68312fba904cc01e2c1"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7f03a1c3fd7d84a8dcf2b7b9c2c30aca"/></dir><dir name="Model"><file name="Observer.php" hash="
|
23 |
<compatible/>
|
24 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
25 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>FI_Checkout</name>
|
4 |
+
<version>1.2.8</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/MIT">MIT License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>0 Step Checkout provide One Page Checkout functionality for Magento, combine all the steps for checkout (including shopping cart) into one page only. It will made the checkout process much simpler. </summary>
|
10 |
<description>0 Step Checkout provide One Page Checkout functionality for Magento, combine all the steps for checkout (including shopping cart) into one page only. It will made the checkout process much simpler. To get more information please visit http://ex.freaksidea.com/0-step-checkout-magento.html</description>
|
11 |
+
<notes>- Fixed issue with tablerates shipping method
|
|
|
12 |

|
13 |
+
Version 1.2.8 released
|
14 |
+
2013/05/05
|
15 |
+
Version number: 1.2.8
|
16 |
Stability: stable
|
17 |
Compatibility: 1.5, 1.6, 1.6.0.0, 1.6.1, 1.6.2.0, 1.7</notes>
|
18 |
<authors><author><name>Sergiy Stotskiy</name><user>sergiy_stotskiy</user><email>sergiy.stotskiy@freaksidea.com</email></author></authors>
|
19 |
+
<date>2013-06-05</date>
|
20 |
+
<time>11:38:00</time>
|
21 |
+
<contents><target name="magecommunity"><dir name="FI"><dir name="Checkout"><dir name="Block"><dir name="Block"><file name="Info.php" hash="1fd221f5b1c6e0314532b06ebe3e937f"/></dir><file name="Block.php" hash="e96feb1510b4bdc5ba4513e7f98490cf"/><file name="Links.php" hash="79996dab004b214d93362aecf2f45b83"/><file name="Newsletter.php" hash="19d5938be8caac3eb661fb1f45af66f3"/><dir name="Payment"><file name="Methods.php" hash="c42b6ba6678ab68312fba904cc01e2c1"/></dir></dir><dir name="Helper"><file name="Data.php" hash="7f03a1c3fd7d84a8dcf2b7b9c2c30aca"/></dir><dir name="Model"><file name="Observer.php" hash="9b1b30c6363cc2e44f3673ed5bc4ea14"/><file name="Order.php" hash="5ee4b7a5a23191578ebec17cfe744f9f"/><file name="Page.php" hash="2d8eb0a98862271c6d4f654ccf639a50"/><dir name="Resource"><file name="Countries.php" hash="0913ec95198690e5cb81ec8fe4208307"/></dir><dir name="Source"><file name="PaymentMethods.php" hash="151bcf53d0a59172f8a72299133b4555"/><file name="ShippingMethods.php" hash="c682744b99466d3046b53a8d5a63e965"/></dir><file name="Source.php" hash="d68bc03d7e145b866ece607042cb5a35"/><file name="Subscriber.php" hash="e0d4206673e616a136322537264f03cf"/></dir><dir name="controllers"><file name="CheckoutController.php" hash="3dd19e1f6d954b42e657b380e1f5e576"/></dir><dir name="etc"><file name="config.xml" hash="baa0ff5e90bf38822e235806ff2985d2"/><file name="system.xml" hash="328d2c8415444ff7f989ba2e62267f67"/></dir><dir name="sql"><dir name="fi_checkout_setup"><file name="mysql4-install-1.0.0.php" hash="1f0f6b7d41cff2569cde4c724f2909b4"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><dir name="freaks"><file name="checkout.xml" hash="3aea61220fc540242b57c2d5d943b897"/></dir></dir><dir name="template"><dir name="freaks"><file name="autocomplete.phtml" hash="bce316a1d37a91ed952bdb3fb87998bc"/><dir name="checkout"><file name="agreements.phtml" hash="72495b7d2cf6632a9ac9d266d045a3d8"/><dir name="block"><file name="info.phtml" hash="31cd761ee41a4ed8264dea42ffaab6ee"/></dir><file name="block.phtml" hash="1c172112b2272a41a6ffce4985c791d0"/><dir name="centinel"><file name="authentication.phtml" hash="fe87fdc373fe0cdbcc25141f5e2696c7"/><file name="complete.phtml" hash="83f6e30a7445f8b8b8c343e9fa02b983"/></dir><file name="coupon.phtml" hash="b70b6766d72d16c2357f29453a386b98"/><file name="link.phtml" hash="e12f971b4ab1cb43bb252bada257f2af"/><file name="newsletter.phtml" hash="ecd6f19fcf11b41bedcf18cf0cdbee44"/><file name="payment.phtml" hash="df9c32da22ab3994433a757f8b164b4c"/><file name="payment_methods.phtml" hash="422e71395d2e99ffa74dd9649046a28b"/><dir name="shipping"><file name="available.phtml" hash="d48bc2c689d7e5b3fa68bcbaddfae4b4"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="FI_Checkout.xml" hash="0843e490529db978b5c4a16aa9b820d9"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="js"><file name="freaks_checkout.js" hash="f6e9c5e945f5b73d6b894725d0fe7d14"/></dir><dir name="css"><file name="freaks.css" hash="1b66a0f2df69524c4af78385711024c4"/></dir><dir name="images"><dir name="fi"><file name="button.jpg" hash="fcdf2df5b1c714a7c39c61a1be387033"/><file name="loader-old.gif" hash="cf46f7db4c452ea2a94d33eabca8ba93"/><file name="loader.gif" hash="7b9776076d5fceef4993b55c9383dedd"/><file name="popup_arrow-blue.gif" hash="051e0d2ab1f2ef9df98c347b1d7c1a24"/><file name="popup_arrow-white.gif" hash="86a112b675b3a9ed5168d4309170d732"/><file name="select-loader-old.gif" hash="55ded965cfe6095ed8c49f9f980de32a"/><file name="select-loader.gif" hash="a045769166b4cad098ffe7d5aefe95e9"/><file name="select-tip.gif" hash="196ba8fe47100e603ffdd731b6d47d90"/></dir></dir></dir></dir></dir></target></contents>
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
24 |
</package>
|