Version Notes
Fix a lot of usability issues with OneID Checkout.
Download this release
Release Info
Developer | OneID |
Extension | OneID |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
app/design/frontend/base/default/template/oneid/checkout/oneid_onepage.phtml
CHANGED
@@ -3,6 +3,10 @@ $args = Mage::app()->getRequest()->getParams();
|
|
3 |
$_quote = Mage::getModel('checkout/cart')->getQuote();
|
4 |
?>
|
5 |
|
|
|
|
|
|
|
|
|
6 |
<script type="text/javascript">
|
7 |
var automateFormFill = <?php
|
8 |
if (array_key_exists("autoFill", $args)){
|
@@ -13,14 +17,14 @@ $_quote = Mage::getModel('checkout/cart')->getQuote();
|
|
13 |
}
|
14 |
?>;
|
15 |
|
16 |
-
|
17 |
-
OneId.$("#opc-login").show();
|
18 |
-
OneId.$("#opc-billing").show();
|
19 |
-
OneId.$("#opc-shipping").show();
|
20 |
-
OneId.$("#opc-payment").show();
|
|
|
|
|
21 |
OneId.$("#oneid-checkout-please-wait").hide();
|
22 |
-
|
23 |
-
|
24 |
OneId.$("#login\\:guest").click();
|
25 |
OneId.$("#p_method_ccsave").click();
|
26 |
|
@@ -198,7 +202,7 @@ $_quote = Mage::getModel('checkout/cart')->getQuote();
|
|
198 |
|
199 |
OneIdExtern.registerApiReadyFunction(function(){
|
200 |
// insert buttons
|
201 |
-
var loginCtr = '<div class="oneid-
|
202 |
OneId.$(loginCtr).insertAfter("#checkout-step-login .col-2 .buttons-set .button");
|
203 |
|
204 |
// billing
|
@@ -222,17 +226,6 @@ $_quote = Mage::getModel('checkout/cart')->getQuote();
|
|
222 |
var postPaymentFillFunction = function() {
|
223 |
payment.resetLoadWaiting();
|
224 |
|
225 |
-
if (automateFormFill) {
|
226 |
-
// If we're auto form filling, need to show all the other accordian pieces.
|
227 |
-
payment.onSave = function(t){
|
228 |
-
payment.nextStep(t);
|
229 |
-
OneId.$("#oneid-checkout-please-wait").hide();
|
230 |
-
OneId.$("#opc-login").addClass("allow").show();
|
231 |
-
OneId.$("#opc-billing").addClass("allow").show();
|
232 |
-
OneId.$("#opc-shipping").addClass("allow").show();
|
233 |
-
OneId.$("#opc-payment").addClass("allow").show();
|
234 |
-
}
|
235 |
-
}
|
236 |
|
237 |
if (OneId.$("#ccsave_cc_cid,#authorizenet_cc_cid").length){
|
238 |
OneId.$("#oneid-checkout-please-wait").hide();
|
@@ -272,13 +265,54 @@ $_quote = Mage::getModel('checkout/cart')->getQuote();
|
|
272 |
});
|
273 |
|
274 |
var billingAddressFillSuccess = function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
OneId.$("#p_method_ccsave").click();
|
276 |
OneId.$("#payment_form_ccsave").show();
|
277 |
billing.save();
|
278 |
-
|
279 |
-
if (OneId.$("#opc-shipping_methods").length){
|
280 |
-
recoverFromFailedOneidCheckout();
|
281 |
-
}
|
282 |
|
283 |
};
|
284 |
|
@@ -408,12 +442,14 @@ $_quote = Mage::getModel('checkout/cart')->getQuote();
|
|
408 |
OneId.$("#opc-login").hide();
|
409 |
OneId.$("#opc-billing").hide();
|
410 |
OneId.$("#opc-shipping").hide();
|
|
|
411 |
OneId.$("#opc-payment").hide();
|
412 |
OneId.$("#oneid-checkout-please-wait").show();
|
413 |
|
414 |
|
415 |
OneId.$("#login\\:guest").click();
|
416 |
OneId.$("#p_method_ccsave").click();
|
|
|
417 |
|
418 |
OneId.$("#register-xcustomer-password").hide();
|
419 |
OneId.$("#billing\\:customer_password").removeClass("required-entry");
|
@@ -436,27 +472,21 @@ $_quote = Mage::getModel('checkout/cart')->getQuote();
|
|
436 |
return false;
|
437 |
}
|
438 |
|
439 |
-
if (response.update_section) {
|
440 |
-
$('checkout-'+response.update_section.name+'-load').update(response.update_section.html);
|
441 |
-
}
|
442 |
-
|
443 |
payment.initWhatIsCvvListeners();
|
444 |
|
445 |
-
|
446 |
-
OneIdForm.fill(paymentPostData, "", function(completed){
|
447 |
-
});
|
448 |
-
|
449 |
-
if (response.goto_section) {
|
450 |
-
checkout.gotoSection(response.goto_section);
|
451 |
-
checkout.reloadProgressBlock();
|
452 |
-
return;
|
453 |
-
}
|
454 |
-
|
455 |
if (response.payment_methods_html) {
|
456 |
$('checkout-payment-method-load').update(response.payment_methods_html);
|
457 |
}
|
458 |
-
|
459 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
460 |
}
|
461 |
}
|
462 |
|
@@ -467,10 +497,9 @@ $_quote = Mage::getModel('checkout/cart')->getQuote();
|
|
467 |
|
468 |
OneIdForm.fill(autoFillMap, "", false, function(completed){
|
469 |
|
470 |
-
recoverFromFailedOneidCheckout();
|
471 |
-
|
472 |
var filledOut = isFormFilledOut(billingAddressPostData.formData);
|
473 |
if (automateFormFill && (!completed || !filledOut)){
|
|
|
474 |
checkout.gotoSection("billing");
|
475 |
}
|
476 |
else {
|
3 |
$_quote = Mage::getModel('checkout/cart')->getQuote();
|
4 |
?>
|
5 |
|
6 |
+
<span class="please-wait" id="oneid-checkout-please-wait" style="display:none;">
|
7 |
+
<img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('OneID is filling out your form...') ?>" title="<?php echo $this->__('OneID is filling out your form...') ?>" class="v-middle" /> <?php echo $this->__('OneID is filling out your form...') ?>
|
8 |
+
</span>
|
9 |
+
|
10 |
<script type="text/javascript">
|
11 |
var automateFormFill = <?php
|
12 |
if (array_key_exists("autoFill", $args)){
|
17 |
}
|
18 |
?>;
|
19 |
|
20 |
+
var recoverFromFailedOneidCheckout = function(){
|
21 |
+
OneId.$("#opc-login").show().addClass("allow");
|
22 |
+
OneId.$("#opc-billing").show().addClass("allow");
|
23 |
+
OneId.$("#opc-shipping").show().addClass("allow");
|
24 |
+
OneId.$("#opc-payment").show().addClass("allow");
|
25 |
+
OneId.$("#opc-shipping_method").show().addClass("allow");
|
26 |
+
|
27 |
OneId.$("#oneid-checkout-please-wait").hide();
|
|
|
|
|
28 |
OneId.$("#login\\:guest").click();
|
29 |
OneId.$("#p_method_ccsave").click();
|
30 |
|
202 |
|
203 |
OneIdExtern.registerApiReadyFunction(function(){
|
204 |
// insert buttons
|
205 |
+
var loginCtr = '<div class="oneid-only" style="margin-top:25px;"><div id="oneid-checkout-login-form" class="oneid-only oneid-login-container" style="" ></div></div>';
|
206 |
OneId.$(loginCtr).insertAfter("#checkout-step-login .col-2 .buttons-set .button");
|
207 |
|
208 |
// billing
|
226 |
var postPaymentFillFunction = function() {
|
227 |
payment.resetLoadWaiting();
|
228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
|
230 |
if (OneId.$("#ccsave_cc_cid,#authorizenet_cc_cid").length){
|
231 |
OneId.$("#oneid-checkout-please-wait").hide();
|
265 |
});
|
266 |
|
267 |
var billingAddressFillSuccess = function() {
|
268 |
+
|
269 |
+
if (automateFormFill){
|
270 |
+
billing._onSave = billing.onSave;
|
271 |
+
billing.onSave = function(t){
|
272 |
+
var data = {};
|
273 |
+
try{
|
274 |
+
data = OneIdUtil.parseJSON(t.responseText);
|
275 |
+
if (window.shipping){
|
276 |
+
if (data.goto_section == "shipping_method"){
|
277 |
+
if (data.update_section) {
|
278 |
+
$('checkout-'+data.update_section.name+'-load').update(data.update_section.html);
|
279 |
+
OneId.$("[name='shipping_method']").first().attr("checked", "checked");
|
280 |
+
}
|
281 |
+
delete data['update_section'];
|
282 |
+
delete data['goto_section'];
|
283 |
+
t.responseText = OneIdUtil.stringifyJSON(data);
|
284 |
+
}
|
285 |
+
billing._onSave(t);
|
286 |
+
|
287 |
+
checkout.loadWaiting=false;
|
288 |
+
shippingMethod.save();
|
289 |
+
}
|
290 |
+
else{
|
291 |
+
recoverFromFailedOneidCheckout();
|
292 |
+
var filledOut = isFormFilledOut(paymentPostData.formData);
|
293 |
+
if (filledOut){
|
294 |
+
checkout.loadWaiting = false;
|
295 |
+
payment.save();
|
296 |
+
}
|
297 |
+
else{
|
298 |
+
checkout.gotoSection("payment");
|
299 |
+
}
|
300 |
+
}
|
301 |
+
}
|
302 |
+
catch(e){
|
303 |
+
|
304 |
+
}
|
305 |
+
}
|
306 |
+
|
307 |
+
}
|
308 |
+
|
309 |
OneId.$("#p_method_ccsave").click();
|
310 |
OneId.$("#payment_form_ccsave").show();
|
311 |
billing.save();
|
312 |
+
//
|
313 |
+
// if (OneId.$("#opc-shipping_methods").length){
|
314 |
+
// recoverFromFailedOneidCheckout();
|
315 |
+
// }
|
316 |
|
317 |
};
|
318 |
|
442 |
OneId.$("#opc-login").hide();
|
443 |
OneId.$("#opc-billing").hide();
|
444 |
OneId.$("#opc-shipping").hide();
|
445 |
+
OneId.$("#opc-shipping_method").hide();
|
446 |
OneId.$("#opc-payment").hide();
|
447 |
OneId.$("#oneid-checkout-please-wait").show();
|
448 |
|
449 |
|
450 |
OneId.$("#login\\:guest").click();
|
451 |
OneId.$("#p_method_ccsave").click();
|
452 |
+
OneId.$("#billing\\:use_for_shipping_yes").click();
|
453 |
|
454 |
OneId.$("#register-xcustomer-password").hide();
|
455 |
OneId.$("#billing\\:customer_password").removeClass("required-entry");
|
472 |
return false;
|
473 |
}
|
474 |
|
|
|
|
|
|
|
|
|
475 |
payment.initWhatIsCvvListeners();
|
476 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
if (response.payment_methods_html) {
|
478 |
$('checkout-payment-method-load').update(response.payment_methods_html);
|
479 |
}
|
480 |
+
|
481 |
+
if (isFormFilledOut(paymentPostData.formData) && !OneId.$("#ccsave_cc_cid,#authorizenet_cc_cid").length){
|
482 |
+
checkout.loadWaiting=false;
|
483 |
+
payment.save();
|
484 |
+
recoverFromFailedOneidCheckout();
|
485 |
+
}
|
486 |
+
else{
|
487 |
+
checkout.setShippingMethod();
|
488 |
+
}
|
489 |
+
|
490 |
}
|
491 |
}
|
492 |
|
497 |
|
498 |
OneIdForm.fill(autoFillMap, "", false, function(completed){
|
499 |
|
|
|
|
|
500 |
var filledOut = isFormFilledOut(billingAddressPostData.formData);
|
501 |
if (automateFormFill && (!completed || !filledOut)){
|
502 |
+
recoverFromFailedOneidCheckout();
|
503 |
checkout.gotoSection("billing");
|
504 |
}
|
505 |
else {
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>OneID</name>
|
4 |
-
<version>2.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>Apache Software License (ASL)</license>
|
7 |
<channel>community</channel>
|
@@ -21,11 +21,11 @@ Privacy: OneID does not track any user behavior – and certainly wonȁ
|
|
21 |
Security: OneID secures customer information using three separate cryptographic combinations across multiple devices.
|
22 |
Convenience: OneID removes the hassle of having to remember user names and passwords.
|
23 |
And along with all those great benefits to you and your users, with this plugin you'll also get to use OneID to log into and administer your WordPress site using your OneID.</description>
|
24 |
-
<notes>
|
25 |
<authors><author><name>OneID</name><user>bpk_oneid</user><email>bpk@oneid.com</email></author></authors>
|
26 |
-
<date>2013-06-
|
27 |
-
<time>
|
28 |
-
<contents><target name="magecommunity"><dir name="OneID"><dir name="Connector"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><file name="Success.php" hash="94f38f858a45304c10138c3a1b265490"/></dir></dir><file name="Signin.php" hash="454d819e284f02ef5e2ae8e57d714918"/></dir><dir name="Helper"><file name="Data.php" hash="a7bbc23e93533d5226f200f9e5d681a4"/></dir><dir name="controllers"><file name="AccountController.php" hash="2401a0a519aac21bebeee77233fd0b03"/><file name="ConnectorController.php" hash="a7703df27f2c28888c71482bf3cc4a8f"/><file name="OnepageController.php" hash="78d2dbae1606057fb3544296351898d8"/></dir><dir name="etc"><file name="config.xml" hash="8c3246ec55c0f60669fe484abbc1a04b"/><file name="system.xml" hash="d47ac462cf6efd529aca557fad1b890e"/></dir><dir name="sql"><dir name="oneid_connector_setup"><file name="mysql4-install-0.1.0.php" hash="cad7569ee96103d087bf077661c1cafe"/></dir></dir></dir><file name="README.txt" hash="fc7ce5e9b6b09f43a8776ef1c05d3f11"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="oneid"><dir name="block"><file name="login.phtml" hash="858cf26fe6aebeeb2817a0e2d806bb70"/><dir name="page"><dir name="html"><file name="footer.phtml" hash="dc3c0e4038c6e517adcae82ee81f6242"/><file name="head.phtml" hash="9dd7e46b5c3ce6eb4e92ef6738d55dc6"/><file name="newjavascript.js" hash="c9e0fa9a4851c0070614f605ebac8257"/></dir></dir></dir><dir name="checkout"><file name="cart.phtml" hash="4b02b99a1bbc8ad14a4452775df49ef2"/><file name="oneid_onepage.phtml" hash="
|
29 |
<compatible/>
|
30 |
<dependencies><required><php><min>5.0.0</min><max>5.4.10</max></php></required></dependencies>
|
31 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>OneID</name>
|
4 |
+
<version>2.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>Apache Software License (ASL)</license>
|
7 |
<channel>community</channel>
|
21 |
Security: OneID secures customer information using three separate cryptographic combinations across multiple devices.
|
22 |
Convenience: OneID removes the hassle of having to remember user names and passwords.
|
23 |
And along with all those great benefits to you and your users, with this plugin you'll also get to use OneID to log into and administer your WordPress site using your OneID.</description>
|
24 |
+
<notes>Fix a lot of usability issues with OneID Checkout.</notes>
|
25 |
<authors><author><name>OneID</name><user>bpk_oneid</user><email>bpk@oneid.com</email></author></authors>
|
26 |
+
<date>2013-06-20</date>
|
27 |
+
<time>18:07:51</time>
|
28 |
+
<contents><target name="magecommunity"><dir name="OneID"><dir name="Connector"><dir name="Block"><dir name="Checkout"><dir name="Onepage"><file name="Success.php" hash="94f38f858a45304c10138c3a1b265490"/></dir></dir><file name="Signin.php" hash="454d819e284f02ef5e2ae8e57d714918"/></dir><dir name="Helper"><file name="Data.php" hash="a7bbc23e93533d5226f200f9e5d681a4"/></dir><dir name="controllers"><file name="AccountController.php" hash="2401a0a519aac21bebeee77233fd0b03"/><file name="ConnectorController.php" hash="a7703df27f2c28888c71482bf3cc4a8f"/><file name="OnepageController.php" hash="78d2dbae1606057fb3544296351898d8"/></dir><dir name="etc"><file name="config.xml" hash="8c3246ec55c0f60669fe484abbc1a04b"/><file name="system.xml" hash="d47ac462cf6efd529aca557fad1b890e"/></dir><dir name="sql"><dir name="oneid_connector_setup"><file name="mysql4-install-0.1.0.php" hash="cad7569ee96103d087bf077661c1cafe"/></dir></dir></dir><file name="README.txt" hash="fc7ce5e9b6b09f43a8776ef1c05d3f11"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="oneid"><dir name="block"><file name="login.phtml" hash="858cf26fe6aebeeb2817a0e2d806bb70"/><dir name="page"><dir name="html"><file name="footer.phtml" hash="dc3c0e4038c6e517adcae82ee81f6242"/><file name="head.phtml" hash="9dd7e46b5c3ce6eb4e92ef6738d55dc6"/><file name="newjavascript.js" hash="c9e0fa9a4851c0070614f605ebac8257"/></dir></dir></dir><dir name="checkout"><file name="cart.phtml" hash="4b02b99a1bbc8ad14a4452775df49ef2"/><file name="oneid_onepage.phtml" hash="c7d15be4af4e5558ddde8c41911691d9"/><dir name="onepage"><file name="link.phtml" hash="61cbdf68fcbdfcc1de037b23eb42ccd8"/><dir name="review"><file name="button.phtml" hash="7646991c5b937654771fa78627e49c95"/></dir></dir><dir name="success"><file name="oneid_create.phtml" hash="653fee23d3059609ae5330f0d6c84d34"/></dir></dir><dir name="customer"><dir name="account"><file name="dashboard.phtml" hash="2c11f754f8b8130280f60c7a91090790"/></dir><dir name="form"><file name="edit.phtml" hash="23eea7e7e29cb36c3c5885d7775de528"/><file name="forgotpassword.phtml" hash="cd02367e8214930140d80a7834e0f4a4"/></dir></dir><dir name="form"><file name="traditional_login.phtml" hash="eb65d5e144a0d385eeeeb15f34bac935"/></dir><dir name="oneid"><file name="signin.phtml" hash="66584827e4ebcc25e439200fd0addc67"/></dir></dir></dir><dir name="layout"><file name="OneID.xml" hash="a394b3f62e225364b5053160c845d38c"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="oneid.css" hash="5e44748f801c63012a57995a0c1fca80"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Oneid_Connector.xml" hash="1f42a132067a01e1056d5c514d96507a"/></dir></target></contents>
|
29 |
<compatible/>
|
30 |
<dependencies><required><php><min>5.0.0</min><max>5.4.10</max></php></required></dependencies>
|
31 |
</package>
|