Version Notes
Did we add new features?
Yes
Did you fix a bunch of Bugs?
Yes
Well then, what in funkytown did you do?
* You can now decide which checkout steps are skipped.
* Fixed a bug preventing progress if the customer decided to chose an alternative shipping address.
Download this release
Release Info
| Developer | Gareth Price |
| Extension | Clearandfizzy_Reducedcheckout |
| Version | 1.2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.0 to 1.2.1
app/code/community/Clearandfizzy/Reducedcheckout/controllers/OnepageController.php
CHANGED
|
@@ -127,7 +127,8 @@ class Clearandfizzy_Reducedcheckout_OnepageController extends Mage_Checkout_Onep
|
|
| 127 |
} // end
|
| 128 |
|
| 129 |
|
| 130 |
-
public function saveShippingAction($
|
|
|
|
| 131 |
if ($this->_expireAjax()) {
|
| 132 |
return;
|
| 133 |
}
|
|
@@ -140,17 +141,16 @@ class Clearandfizzy_Reducedcheckout_OnepageController extends Mage_Checkout_Onep
|
|
| 140 |
// save the billing address info
|
| 141 |
$result = $this->getOnepage()->saveShipping($data, $customerAddressId);
|
| 142 |
|
| 143 |
-
// set the checkout method
|
| 144 |
-
$this->saveMethodAction();
|
| 145 |
-
|
| 146 |
-
// attempt to load the next section
|
| 147 |
-
if ( $gotonext == true ) {
|
| 148 |
-
$result = $this->getNextSection($result, $current = 'billing');
|
| 149 |
-
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
|
| 150 |
-
} // end if
|
| 151 |
|
| 152 |
}
|
| 153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
|
| 155 |
} // end
|
| 156 |
|
| 127 |
} // end
|
| 128 |
|
| 129 |
|
| 130 |
+
public function saveShippingAction($gotonext = true) {
|
| 131 |
+
|
| 132 |
if ($this->_expireAjax()) {
|
| 133 |
return;
|
| 134 |
}
|
| 141 |
// save the billing address info
|
| 142 |
$result = $this->getOnepage()->saveShipping($data, $customerAddressId);
|
| 143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
|
| 145 |
}
|
| 146 |
|
| 147 |
+
// attempt to load the next section
|
| 148 |
+
if ( $gotonext == true ) {
|
| 149 |
+
$result = $this->getNextSection($result, $current = 'billing');
|
| 150 |
+
$this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
|
| 151 |
+
} // end if
|
| 152 |
+
|
| 153 |
+
|
| 154 |
|
| 155 |
} // end
|
| 156 |
|
app/design/frontend/base/default/template/clearandfizzy/reducedcheckout/onepage.phtml
CHANGED
|
@@ -25,9 +25,9 @@
|
|
| 25 |
} // end if
|
| 26 |
?>
|
| 27 |
var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('reducedcheckout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('reducedcheckout/onepage/saveBilling') ?>');
|
| 28 |
-
var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('reducedcheckout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('reducedcheckout/onepage/saveShipping') ?>','<?php echo $this->getUrl('reducedcheckout/onepage/
|
| 29 |
var shippingMethod = new ShippingMethod('co-shipping-method-form', "<?php echo $this->getUrl('reducedcheckout/onepage/saveShippingMethod') ?>");
|
| 30 |
var payment = new Payment('co-payment-form', '<?php echo $this->getUrl('reducedcheckout/onepage/savePayment') ?>');
|
| 31 |
|
| 32 |
//]]>
|
| 33 |
-
</script>
|
| 25 |
} // end if
|
| 26 |
?>
|
| 27 |
var billing = new Billing('co-billing-form', '<?php echo $this->getUrl('reducedcheckout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('reducedcheckout/onepage/saveBilling') ?>');
|
| 28 |
+
var shipping = new Shipping('co-shipping-form', '<?php echo $this->getUrl('reducedcheckout/onepage/getAddress') ?>address/', '<?php echo $this->getUrl('reducedcheckout/onepage/saveShipping') ?>','<?php echo $this->getUrl('reducedcheckout/onepage/shippingMethod') ?>');
|
| 29 |
var shippingMethod = new ShippingMethod('co-shipping-method-form', "<?php echo $this->getUrl('reducedcheckout/onepage/saveShippingMethod') ?>");
|
| 30 |
var payment = new Payment('co-payment-form', '<?php echo $this->getUrl('reducedcheckout/onepage/savePayment') ?>');
|
| 31 |
|
| 32 |
//]]>
|
| 33 |
+
</script>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Clearandfizzy_Reducedcheckout</name>
|
| 4 |
-
<version>1.2.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/afl-3.0.php">AFL 3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -14,15 +14,16 @@ Integration with 3rd-party payment and shipping extensions should be easy as thi
|
|
| 14 |
Yes<br />
|
| 15 |
<br />
|
| 16 |
Did you fix a bunch of Bugs?<br />
|
| 17 |
-
|
| 18 |
<br />
|
| 19 |
Well then, what in funkytown did you do?<br />
|
| 20 |
-
You can now decide which checkout steps are skipped.
|
|
|
|
| 21 |
<br /></notes>
|
| 22 |
<authors><author><name>Gareth Price</name><user>clearandfizzy</user><email>gareth@clearandfizzy.com</email></author></authors>
|
| 23 |
<date>2013-02-24</date>
|
| 24 |
-
<time>
|
| 25 |
-
<contents><target name="magecommunity"><dir name="Clearandfizzy"><dir name="Reducedcheckout"><dir name="Helper"><file name="Data.php" hash="4de24bcf12122165b7ef382be9c12b28"/></dir><dir name="Model"><file name="Observer.php" hash="8f4498205db5d37752b3f795816517b4"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Payment"><file name="EnabledMethods.php" hash="f6b69e6fc6697870c53c6c86dbd68e98"/></dir><dir name="Shipping"><file name="EnabledMethods.php" hash="5cf16d02a105f9699e4258bb5bc57364"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="OnepageController.php" hash="
|
| 26 |
<compatible/>
|
| 27 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 28 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Clearandfizzy_Reducedcheckout</name>
|
| 4 |
+
<version>1.2.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/afl-3.0.php">AFL 3.0</license>
|
| 7 |
<channel>community</channel>
|
| 14 |
Yes<br />
|
| 15 |
<br />
|
| 16 |
Did you fix a bunch of Bugs?<br />
|
| 17 |
+
Yes<br />
|
| 18 |
<br />
|
| 19 |
Well then, what in funkytown did you do?<br />
|
| 20 |
+
* You can now decide which checkout steps are skipped.
|
| 21 |
+
* Fixed a bug preventing progress if the customer decided to chose an alternative shipping address.
|
| 22 |
<br /></notes>
|
| 23 |
<authors><author><name>Gareth Price</name><user>clearandfizzy</user><email>gareth@clearandfizzy.com</email></author></authors>
|
| 24 |
<date>2013-02-24</date>
|
| 25 |
+
<time>03:12:29</time>
|
| 26 |
+
<contents><target name="magecommunity"><dir name="Clearandfizzy"><dir name="Reducedcheckout"><dir name="Helper"><file name="Data.php" hash="4de24bcf12122165b7ef382be9c12b28"/></dir><dir name="Model"><file name="Observer.php" hash="8f4498205db5d37752b3f795816517b4"/><dir name="System"><dir name="Config"><dir name="Source"><dir name="Payment"><file name="EnabledMethods.php" hash="f6b69e6fc6697870c53c6c86dbd68e98"/></dir><dir name="Shipping"><file name="EnabledMethods.php" hash="5cf16d02a105f9699e4258bb5bc57364"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="OnepageController.php" hash="b2589710867e2a003c3306ff749013e5"/></dir><dir name="etc"><file name="adminhtml.xml" hash="477add7dac98d6903555708e178761ce"/><file name="config.xml" hash="294dc1059cfd09e10e9d6175fd9639e4"/><file name="system.xml" hash="457f256018d0a0ae317581832673e09d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Clearandfizzy_ReducedCheckout.xml" hash="9cb58e8121e0c0e294f10a3595b2be7d"/></dir></target><target name="magedesign"><dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="clearandfizzy"><dir name="reducedcheckout"><file name="reducedcheckout.xml" hash="282aeb07fe3b9510bcbd92498907968f"/></dir></dir></dir><dir name="template"><dir name="clearandfizzy"><dir name="reducedcheckout"><file name="onepage.phtml" hash="8b11bcad04aab491e845e4d3aecb2ea9"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
| 27 |
<compatible/>
|
| 28 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
| 29 |
</package>
|
