diff --git a/YOUR_ADMIN/includes/init_includes/init_checkout_one.php b/YOUR_ADMIN/includes/init_includes/init_checkout_one.php
index fbe7ccc..e0c27a5 100644
--- a/YOUR_ADMIN/includes/init_includes/init_checkout_one.php
+++ b/YOUR_ADMIN/includes/init_includes/init_checkout_one.php
@@ -15,8 +15,8 @@
// 500-599 ... Registered-account settings
// 1000+ ..... Debug settings
//
-define('CHECKOUT_ONE_CURRENT_VERSION', '2.4.7-beta2');
-define('CHECKOUT_ONE_CURRENT_UPDATE_DATE', '2024-01-10');
+define('CHECKOUT_ONE_CURRENT_VERSION', '2.5.0-beta1');
+define('CHECKOUT_ONE_CURRENT_UPDATE_DATE', '2024-02-22');
if (isset($_SESSION['admin_id'])) {
$version_release_date = CHECKOUT_ONE_CURRENT_VERSION . ' (' . CHECKOUT_ONE_CURRENT_UPDATE_DATE . ')';
diff --git a/docs/one_page_checkout/readme.html b/docs/one_page_checkout/readme.html
index 4ef0305..eafa236 100644
--- a/docs/one_page_checkout/readme.html
+++ b/docs/one_page_checkout/readme.html
@@ -84,7 +84,7 @@
One-Page Checkout … with Guest … for Zen Cart v1.5.7a (and later)
- Version 2.4.7 by lat9, swguy, simon1066, marco-pm and drbyte
+ Version 2.5.0 by lat9, swguy, simon1066, marco-pm and drbyte
Released under the General Public License (see the file named license.txt
in the plugin's distribution for full details). This script is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
@@ -712,7 +712,7 @@ Template-specific "jscript_framework.php" is Required
You can view the details of these changes on the plugin's GitHub repository. Changes to the plugin's default templates are identified in this color; remember to merge those changes with any template-override version you might have created! Additions are identified by this color and removals are indicated like this.
- - v2.4.7, 2024-01-10 (lat9, drbyte):
+ - v2.5.0-beta1, 2024-02-22 (lat9, drbyte):
- BUGFIX: Correct PHP warning for registered-account creation (missing $fax).
- BUGFIX: Correct 'missing' id= attribute on confirmation form button.
- BUGFIX: Enable checkout_one page's submit-button timeout to be configurable.
diff --git a/includes/classes/OnePageCheckout.php b/includes/classes/OnePageCheckout.php
index 8316ee8..1bec8d4 100644
--- a/includes/classes/OnePageCheckout.php
+++ b/includes/classes/OnePageCheckout.php
@@ -6,7 +6,7 @@
// This class, instantiated in the current customer session, keeps track of a customer's login and checkout
// progression with the aid of the OPC's observer- and AJAX-classes.
//
-// Last updated: OPC v2.4.7
+// Last updated: OPC v2.5.0
//
class OnePageCheckout extends base
{
diff --git a/includes/modules/pages/checkout_one/jquery.checkout_one.js b/includes/modules/pages/checkout_one/jquery.checkout_one.js
index 75006c2..7f1e193 100644
--- a/includes/modules/pages/checkout_one/jquery.checkout_one.js
+++ b/includes/modules/pages/checkout_one/jquery.checkout_one.js
@@ -2,7 +2,7 @@
// Part of the One-Page Checkout plugin, provided under GPL 2.0 license by lat9.
// Copyright (C) 2013-2024, Vinos de Frutas Tropicales. All rights reserved.
//
-// Last changed: OPC v2.4.7
+// Last changed: OPC v2.5.0
//
var selected;
var submitter = null;
diff --git a/includes/modules/pages/checkout_one/jquery.checkout_one.min.js b/includes/modules/pages/checkout_one/jquery.checkout_one.min.js
index a576495..ce55774 100644
--- a/includes/modules/pages/checkout_one/jquery.checkout_one.min.js
+++ b/includes/modules/pages/checkout_one/jquery.checkout_one.min.js
@@ -2,6 +2,6 @@
// Part of the One-Page Checkout plugin, provided under GPL 2.0 license by lat9.
// Copyright (C) 2013-2024, Vinos de Frutas Tropicales. All rights reserved.
//
-// Last changed: OPC v2.4.7
+// Last changed: OPC v2.5.0
//
var selected,submitter=null;function concatExpiresFields(e){return jQuery(":input[name="+e[0]+"]").val()+jQuery(":input[name="+e[1]+"]").val()}function popupWindow(e){window.open(e,"popupWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=320,screenX=150,screenY=150,top=150,left=150")}function couponpopupWindow(e){window.open(e,"couponpopupWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=320,screenX=150,screenY=150,top=150,left=150")}function submitonce(){var e=document.getElementById("btn_submit");return e.style.cursor="wait",e.disabled=!0,setTimeout("button_timeout()",shippingTimeout),!1}function button_timeout(){var e=document.getElementById("btn_submit");e.style.cursor="pointer",e.disabled=!1}function zcLog2Console(e){window.console&&"function"==typeof console.log&&console.log(e)}function methodSelect(e){document.getElementById(e)&&(document.getElementById(e).checked="checked")}function setJavaScriptEnabled(){var e=document.getElementById("javascript-enabled");e&&(e.value="1")}var orderConfirmed=0;function setOrderConfirmed(e){orderConfirmed=e,jQuery("#confirm-the-order").val(e),zcLog2Console("Setting orderConfirmed ("+e+"), submitter ("+submitter+")")}jQuery(document).ready(function(){var e=!1;0==jQuery('form[name="checkout_payment"]').length&&(e=!0,zcLog2Console('Missing form[name="checkout_payment"]')),0==jQuery("#orderTotalDivs").length&&(e=!0,zcLog2Console("Missing #orderTotalDivs"));var o=shippingChoiceAvailable&&paymentChoiceAvailable;function t(){jQuery("#checkoutOneShipto").length&&(jQuery("#shipping_billing").is(":checked")?(jQuery("#checkoutOneShipto").hide(),jQuery("#opc-billing-title").text(billingShippingTitle)):(jQuery("#checkoutOneShipto").show(),jQuery("#opc-billing-title").text(billingTitle)))}displayShippingBlock||(o=!1,jQuery("#checkoutShippingMethod").hide(),jQuery("#otshipping").hide(),jQuery("#otshipping+br").hide()),displayPaymentBlock||(o=!1,jQuery("#checkoutPaymentMethod").hide()),o&&(0==jQuery("#current-order-total").length&&(e=!0,zcLog2Console("Missing #current-order-total")),0==jQuery("#opc-order-confirm").length&&(e=!0,zcLog2Console("Missing #opc-order-confirm")),0==jQuery("#opc-order-review").length&&(e=!0,zcLog2Console("Missing #opc-order-review")),0==jQuery(ottotalSelector).length&&(e=!0,zcLog2Console("Missing "+ottotalSelector))),!virtual_order&&o&&0==jQuery("#otshipping").length&&(e=!0,zcLog2Console("Missing #otshipping")),e&&alert("Please contact the store owner; some required elements of this page are missing."),t(),setJavaScriptEnabled(),jQuery(document).on("keypress",":input:not(textarea)",function(e){return 13!=e.keyCode});var r=!1;function c(){var e=null;if(document.checkout_payment.payment)if(document.checkout_payment.payment.length)for(var o=0;o=r&&(submitter=1))}}zcLog2Console("submitFunction, on exit submitter="+submitter)},collectsCardDataOnsite=function(o){return zcLog2Console("Checking collectsCardDataOnsite("+o+") ..."),zcJS.ajax({url:"ajax.php?act=ajaxPayment&method=doesCollectsCardDataOnsite",data:{paymentValue:o}}).done(function(e){1==e.data?(zcLog2Console(" ... it does!"),e=jQuery('form[name="checkout_payment"]').serializeArray(),zcJS.ajax({url:"ajax.php?act=ajaxPayment&method=prepareConfirmation",data:e}).done(function(e){jQuery("#checkoutPayment").hide(),jQuery("#navBreadCrumb").html(e.breadCrumbHtml),jQuery("#checkoutPayment").before(e.confirmationHtml),jQuery(document).attr("title",e.pageTitle),jQuery(document).scrollTop(0),-1==confirmation_required.indexOf(o)?(zcLog2Console('Preparing to submit form, since confirmation is not required for "'+o+'", per the required list: "'+confirmation_required),jQuery("#checkoutOneLoading").show(),jQuery('form[name="checkout_confirmation"]')[0].submit()):(zcLog2Console("Confirmation required, displaying for "+o+"."),jQuery("#checkoutConfirmDefault").show())})):(zcLog2Console(" ... it does not, submitting."),jQuery('form[name="checkout_payment"]')[0].submit())}),!1};var n=null;function y(e){"timeout"===e.status&&(alert(sessionTimeoutErrorMessage),window.location.replace(timeoutUrl)),"unavailable"===e.status&&(alert(ajaxNotAvailableMessage),window.location.replace(checkoutShippingUrl)),"reload"===e.status&&(alert(e.errorMessage),window.location.reload())}function a(t,n){null==n&&(n="");var i,e,o=jQuery("input[name=shipping]");o.is(":radio")&&(o=jQuery("input[name=shipping]:checked")),0==o.length&&"shipping-billing"!=t?(alert(noShippingSelectedError),u()):(o=o.val(),i=jQuery("#shipping_billing").is(":checked"),(e=jQuery("input[name=payment]")).is(":radio")&&(e=jQuery("input[name=payment]:checked")),e=0==e.length?"":e.val(),e={shipping:o,shipping_is_billing:i,shipping_request:t,payment:e},0!=additionalShippingInputs.length&&(jQuery.each(additionalShippingInputs,function(e,o){shippingInputs[e]=jQuery('input[name="'+o.input_name+'"]'+o.parms).val()}),e=jQuery.extend(e,shippingInputs)),zcLog2Console("Updating shipping method to "+o+", processing type: "+t),zcJS.ajax({url:"ajax.php?act=ajaxOnePageCheckout&method=updateShipping",data:e,timeout:shippingTimeout,error:function(e,o,t){zcLog2Console("error: status="+o+", errorThrown = "+t+", override: "+e),"timeout"==o&&alert(ajaxTimeoutShippingErrorMessage),shippingError=!0}}).done(function(e){y(e),jQuery("#orderTotalDivs").html(e.orderTotalHtml),"submit"!=t&&("refresh"==e.paymentHtmlAction?window.location.reload(!0):"update"==e.paymentHtmlAction&&(jQuery("#checkoutPaymentMethod").replaceWith(e.paymentHtml),jQuery(document).on("change","input[name=payment]",function(){c()})));var o=!1;jQuery("#otshipping, #otshipping+br").show(),"ok"==e.status?"shipping-billing"==t&&(i&&window.location.reload(!0),jQuery("#checkoutShippingChoices").html(e.shippingHtml),jQuery("#checkoutShippingContentChoose").html(e.shippingMessage),jQuery(document).on("click","#checkoutShippingChoices input[name=shipping]",function(e){a("shipping-only")})):"reload"!==e.status&&(o=!0,"invalid"==e.status&&("shipping-billing"==t?window.location.reload(!0):(jQuery("#checkoutShippingMethod input[name=shipping]").prop("checked",!1),jQuery("#checkoutShippingChoices").html(e.shippingHtml),jQuery(document).on("click","#checkoutShippingChoices input[name=shipping]",function(e){a("shipping-only")}),jQuery("#otshipping, #otshipping+br").hide(),u())),""!=e.errorMessage&&("submit"==t||"shipping-billing"==t&&"invalid"!=e.status||"submit-cc"==t)&&alert(e.errorMessage)),zcLog2Console("Shipping method updated, error: "+o),"reload"===e.status||"submit"!==t&&"submit-cc"!==t||(1==o?zcLog2Console("Shipping error, correct to proceed."):(zcLog2Console("Form submitted, type ("+t+"), submit_type("+n+"), orderConfirmed ("+orderConfirmed+")"),"submit-cc"==t?jQuery('form[name="checkout_payment"]').submit():orderConfirmed&&(jQuery("#confirm-the-order").attr("disabled",!0),flagOnSubmit&&(zcLog2Console("Form checked, passed ("+(o=check_form())+")"),o&&("confirm"==n&&(jQuery("*").css("cursor","wait"),jQuery("#checkoutPayment > .opc-overlay").addClass("active"),jQuery("#opc-order-confirm").attr("disabled",!0)),jQuery("#confirm-the-order").attr("disabled",!1),1==r?zcLog2Console("Deferring form submittal to the currently-selected payment method."):jQuery('form[name="checkout_payment"]').submit())))))}))}function i(e,o){zcLog2Console("useSelectedAddress("+e+", "+o+")"),jQuery("#checkoutPayment > .opc-overlay").addClass("active"),zcJS.ajax({url:"ajax.php?act=ajaxOnePageCheckout&method=setAddressFromSavedSelections",data:{which:e,address_id:o},timeout:shippingTimeout,error:function(e,o,t){zcLog2Console("error: status="+o+", errorThrown = "+t+", override: "+e),"timeout"==o&&alert(ajaxTimeoutSetAddressErrorMessage)}}).done(function(e){location.reload()})}function s(e){jQuery("#address-form-bill").is(":visible")&&(jQuery(this).addClass("opc-changed"),jQuery("#checkoutOneBillto .opc-buttons, #opc-bill-save, #opc-add-bill, #opc-add-bill+label").show(),jQuery("#opc-bill-edit").hide(),jQuery("#checkoutPayment > .opc-overlay").addClass("active"),jQuery("#checkoutOneGuestInfo, #checkoutOneBillto").addClass("opc-view"))}function l(){jQuery("#checkoutOneGuestInfo").length?(zcLog2Console("restoreCustomerInfo, starts ..."),zcJS.ajax({url:"ajax.php?act=ajaxOnePageCheckout&method=restoreCustomerInfo",timeout:shippingTimeout,error:function(e,o,t){zcLog2Console("error: status="+o+", errorThrown = "+t+", override: "+e),"timeout"==o&&alert(ajaxTimeoutRestoreCustomerErrorMessage)}}).done(function(e){y(e),jQuery("#checkoutOneGuestInfo").html(e.infoHtml),g("bill","#checkoutOneBillto")})):g("bill","#checkoutOneBillto"),jQuery("#checkoutPayment > .opc-overlay").removeClass("active"),jQuery("#checkoutOneGuestInfo, #checkoutOneBillto").removeClass("opc-view"),jQuery("#checkoutOneBillto .opc-buttons").hide()}function d(){jQuery("#checkoutOneGuestInfo").length?(zcLog2Console("saveCustomerInfo, starts ..."),zcJS.ajax({url:"ajax.php?act=ajaxOnePageCheckout&method=validateCustomerInfo",data:jQuery("#checkoutOneGuestInfo input, #checkoutOneGuestInfo select").serialize(),timeout:shippingTimeout,error:function(e,o,t){zcLog2Console("error: status="+o+", errorThrown = "+t+", override: "+e),"timeout"==o&&alert(ajaxTimeoutValidateCustomerErrorMessage)}}).done(function(e){y(e);var t,n="#messages-guest";0!=e.messages.length?(t=!1,jQuery(n).html("").addClass("opc-error"),jQuery("#checkoutOneGuestInfo input").removeClass("opc-error"),jQuery.each(e.messages,function(e,o){jQuery(n+" ul").append("- "+o+"
"),jQuery('input[name="'+e+'"]').length&&(jQuery('input[name="'+e+'"]').addClass("opc-error").removeClass("opc-changed"),t||(t=!0,jQuery('input[name="'+e+'"]').focus()))})):j("bill","#checkoutOneBillto")})):j("bill","#checkoutOneBillto")}function p(e){jQuery("#address-form-ship").is(":visible")&&(jQuery(this).addClass("opc-changed"),jQuery("#checkoutOneShipto .opc-buttons, #opc-ship-save, #opc-add-ship, #opc-add-ship+label").show(),jQuery("#checkoutPayment > .opc-overlay").addClass("active"),jQuery("#checkoutOneShipto").removeClass("visibleField"),jQuery("#checkoutOneShipto").addClass("opc-view"))}function h(){g("ship","#checkoutOneShipto"),jQuery("#checkoutPayment > .opc-overlay").removeClass("active"),jQuery("#checkoutOneShipto").removeClass("opc-view"),jQuery("#checkoutOneShipto .opc-buttons").hide()}function m(){j("ship","#checkoutOneShipto")}function g(o,t){zcLog2Console("restoreAddressValues("+o+", "+t+")"),zcJS.ajax({url:"ajax.php?act=ajaxOnePageCheckout&method=restoreAddressValues",data:{which:o},timeout:shippingTimeout,error:function(e,o,t){zcLog2Console("error: status="+o+", errorThrown = "+t+", override: "+e),"timeout"==o&&alert(ajaxTimeoutRestoreAddressErrorMessage)}}).done(function(e){y(e),jQuery(t).replaceWith(e.addressHtml),"undefined"!=typeof initializeStateZones&&initializeStateZones(),"ship"==o?(jQuery(document).on("change","#checkoutOneShipto input, #checkoutOneShipto select:not(#select-address-ship)",p),jQuery(document).on("click","#opc-ship-cancel",h),jQuery(document).on("click","#opc-ship-save",m)):(jQuery(document).on("change","#checkoutOneBillto input, #checkoutOneBillto select:not(#select-address-bill)",s),jQuery(document).on("click","#opc-bill-cancel",l),jQuery(document).on("click","#opc-bill-save",d))})}function j(i,o){zcLog2Console("saveAddressValues("+i+", "+o+")");var e=jQuery('input[name="gender['+i+']"]:checked').val(),t=jQuery('input[name="company['+i+']"]').val(),n=jQuery('input[name="firstname['+i+']"]').val(),r=jQuery('input[name="lastname['+i+']"]').val(),c=jQuery('input[name="street_address['+i+']"]').val(),u=jQuery('input[name="suburb['+i+']"]').val(),a=jQuery('input[name="city['+i+']"]').val(),s=jQuery('input[name="state['+i+']"]').val(),l=jQuery('select[name="zone_id['+i+']"] option:selected').val(),d=jQuery('input[name="postcode['+i+']"]').val(),p=jQuery('select[name="zone_country_id['+i+']"] option:selected').val(),h=jQuery("#shipping_billing").is(":checked"),m=jQuery("#opc-add-"+i).prop("checked");zcJS.ajax({url:"ajax.php?act=ajaxOnePageCheckout&method=validateAddressValues",data:{which:i,gender:e,company:t,firstname:n,lastname:r,street_address:c,suburb:u,city:a,state:s,zone_id:l,postcode:d,zone_country_id:p,shipping_billing:h,add_address:m},timeout:shippingTimeout,error:function(e,o,t){zcLog2Console("error: status="+o+", errorThrown = "+t+", override: "+e),"timeout"==o&&alert(ajaxTimeoutValidateAddressErrorMessage)}}).done(function(e){y(e);var t,n="#messages-"+i;0!=e.messages.length?(t=!1,jQuery(n).html("").addClass("opc-error"),jQuery(o+" input, "+o+" select").removeClass("opc-error"),jQuery.each(e.messages,function(e,o){jQuery(n+" ul").append("- "+o+"
"),jQuery('input[name="'+e+"["+i+']"]').length?(jQuery('input[name="'+e+"["+i+']"]').addClass("opc-error").removeClass("opc-changed"),t||(t=!0,jQuery('input[name="'+e+"["+i+']"]').focus())):(jQuery('select[name="'+e+"["+i+']"]').addClass("opc-error").removeClass("opc-changed"),t||(t=!0,jQuery('select[name="'+e+"["+i+']"]').focus()))})):window.location.reload(!0)})}doesCollectsCardDataOnsite=function(e){return zcLog2Console("Checking doesCollectsCardDataOnsite("+e+") ..."),jQuery("#"+e+"_collects_onsite").val()&&jQuery("#pmt-"+e).is(":checked")?(zcLog2Console("... it does!"),n=e,!0):(zcLog2Console("... it does not."),n=null,!1)},doCollectsCardDataOnsite=function(){var e=jQuery('form[name="checkout_payment"]').serializeArray();zcLog2Console("doCollectsCardDataOnsite for "+n),zcJS.ajax({url:"ajax.php?act=ajaxPayment&method=prepareConfirmation",data:e}).done(function(e){jQuery("#checkoutPayment").hide(),jQuery("#navBreadCrumb").html(e.breadCrumbHtml.replace(/\.ready/g,".ajaxComplete")),jQuery("#checkoutPayment").before(e.confirmationHtml.replace(/\.ready/g,".ajaxComplete")),jQuery(document).attr("title",e.pageTitle),jQuery(document).scrollTop(0),-1==confirmation_required.indexOf(n)?(zcLog2Console('Preparing to submit form, since confirmation is not required for "'+n+'", per the required list: "'+confirmation_required),jQuery("#checkoutOneLoading").show(),jQuery("#checkoutConfirmationDefault").hide(),jQuery(document).ajaxComplete(function(){jQuery('form[name="checkout_confirmation"]')[0].submit()})):(zcLog2Console("Confirmation required, displaying for "+n+"."),jQuery("#checkoutConfirmDefault").show())})},jQuery(document).ajaxStart(function(){jQuery("*").css("cursor","wait")}),jQuery(document).ajaxStop(function(){jQuery("*").css("cursor","")}),jQuery(document).on("click","#checkoutShippingMethod input[name=shipping]",function(e){a("shipping-only",e)}),jQuery(document).on("click","#shipping_billing",function(e){t(),a("shipping-billing")}),jQuery(document).on("click",".opc-cc-submit",function(e){zcLog2Console("Submitting credit-class request"),setOrderConfirmed(0),a("submit-cc")}),jQuery(document).on("change","input[name=payment]",function(){c();var e=jQuery("input[name=payment]");e.is(":radio")&&(e=jQuery("input[name=payment]:checked"));var o={payment:e=0==e.length?"":e.val()};zcLog2Console("Updating payment method to "+e),zcJS.ajax({url:"ajax.php?act=ajaxOnePageCheckout&method=updatePaymentMethod",data:o,timeout:shippingTimeout,error:function(e,o,t){zcLog2Console("error: status="+o+", errorThrown = "+t+", override: "+e),"timeout"==o&&alert(ajaxTimeoutPaymentErrorMessage)}}).done(function(e){y(e),jQuery("#orderTotalDivs").html(e.orderTotalHtml)})}),jQuery(document).on("click","#opc-order-review",function(e){submitFunction(0,0),setOrderConfirmed(1),zcLog2Console("Submitting order-creating form (review)"),a("submit","review")}),jQuery(document).on("click","#opc-order-confirm",function(e){submitFunction(0,0),setOrderConfirmed(1),zcLog2Console("Submitting order-creating form (confirm)"),a("submit","confirm")}),jQuery(document).on("change","#select-address-bill",function(e){i("bill",this.value)}),jQuery(document).on("change","#select-address-ship",function(e){i("ship",this.value)}),jQuery(document).on("focus","#checkoutOneGuestInfo input, #checkoutOneBillto input, #checkoutOneBillto select:not(#select-address-bill)",s),jQuery(document).on("click","#opc-bill-cancel",l),jQuery(document).on("click","#opc-bill-save",d),jQuery(document).on("click","#opc-bill-edit",function(){jQuery("#address-bill").hide(),jQuery("#address-form-bill").show(),jQuery("#checkoutOneBillto .opc-buttons").show(),jQuery("#opc-bill-save, #opc-add-bill, #opc-add-bill+label").hide()}),jQuery(document).on("click","#opc-ship-edit",function(){jQuery("#address-ship").hide(),jQuery("#address-form-ship").show(),jQuery("#checkoutOneShipto .opc-buttons").show(),jQuery("#opc-ship-save, #opc-add-ship, #opc-add-ship+label").hide()}),jQuery(document).on("focus","#checkoutOneShipto input, #checkoutOneShipto select:not(#select-address-ship)",p),jQuery(document).on("click","#opc-ship-cancel",h),jQuery(document).on("click","#opc-ship-save",m),jQuery("#checkoutPaymentNoJs").hide(),jQuery("#checkoutPayment").show(),jQuery("#checkoutOneGuestInfo").length&&jQuery("#checkoutOneGuestInfo, #checkoutOneBillto").find("input").each(function(){if(jQuery(this).is(":visible")&&jQuery(this).prop("required")&&""==jQuery(this).val())return jQuery("#checkoutOneBillto .opc-buttons").show(),jQuery("#opc-bill-cancel").hide(),jQuery("#checkoutPayment > .opc-overlay").addClass("active"),jQuery("#checkoutOneGuestInfo, #checkoutOneBillto").addClass("opc-view"),jQuery(this).focus(),!1}),jQuery("#opc-need-primary-address").length&&(jQuery("#checkoutOneBillto").find("input").each(function(){if(jQuery(this).is(":visible")&&jQuery(this).prop("required")&&""==jQuery(this).val())return jQuery(this).focus(),!1}),jQuery("#checkoutOneBillto .opc-buttons").show(),jQuery("#opc-bill-cancel, #checkoutOneShippingFlag").hide())});
\ No newline at end of file
diff --git a/includes/modules/pages/create_account/header_php_create_account_register.php b/includes/modules/pages/create_account/header_php_create_account_register.php
index 138c1dc..0eb8b80 100644
--- a/includes/modules/pages/create_account/header_php_create_account_register.php
+++ b/includes/modules/pages/create_account/header_php_create_account_register.php
@@ -1,9 +1,9 @@
notify('NOTIFY_HEADER_START_CREATE_ACCOUNT_REGISTER');
diff --git a/includes/templates/template_default/templates/tpl_checkout_one_confirmation_default.php b/includes/templates/template_default/templates/tpl_checkout_one_confirmation_default.php
index 1712e14..3034271 100644
--- a/includes/templates/template_default/templates/tpl_checkout_one_confirmation_default.php
+++ b/includes/templates/template_default/templates/tpl_checkout_one_confirmation_default.php
@@ -3,7 +3,7 @@
// Part of the One-Page Checkout plugin, provided under GPL 2.0 license by lat9 (cindy@vinosdefrutastropicales.com).
// Copyright (C) 2013-2024, Vinos de Frutas Tropicales. All rights reserved.
//
-// Last updated: OPC v2.4.7
+// Last updated: OPC v2.5.0
//
// -----