Skip to content

Commit

Permalink
#423: Order can't be submitted via click of "Apply" button
Browse files Browse the repository at this point in the history
  • Loading branch information
lat9 committed Sep 16, 2024
1 parent 06eb2be commit 460a21e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 9 deletions.
4 changes: 2 additions & 2 deletions YOUR_ADMIN/includes/init_includes/init_checkout_one.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// 500-599 ... Registered-account settings
// 1000+ ..... Debug settings
//
define('CHECKOUT_ONE_CURRENT_VERSION', '2.5.4-beta1');
define('CHECKOUT_ONE_CURRENT_UPDATE_DATE', '2024-08-12');
define('CHECKOUT_ONE_CURRENT_VERSION', '2.5.4-beta2');
define('CHECKOUT_ONE_CURRENT_UPDATE_DATE', '2024-09-16');

if (isset($_SESSION['admin_id'])) {
$version_release_date = CHECKOUT_ONE_CURRENT_VERSION . ' (' . CHECKOUT_ONE_CURRENT_UPDATE_DATE . ')';
Expand Down
8 changes: 6 additions & 2 deletions docs/one_page_checkout/readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,21 +302,25 @@ <h3>Changes and Bugfixes</h3>
<li>BUGFIX: Account for <samp>$_SESSION['opc_saved_order_total']</samp> not being set.</li>
<li>BUGFIX: Correct PHP Warning during <samp>paypaywpp</samp> processing.</li>
<li>INTROP: Remove storefront non-array-format language files from this distribution; <b>no longer supporting initial installation on zc157!</b></li>
<li>BUGFIX: Orders could be submitted via click of an &quot;Apply&quot; button for a credit-class order-total.</li>
<li>The following files were changed:<ol>
<li>/includes/classes/ajax/zcAjaxOnePageCheckout.php</li>
<li>/includes/classes/OnePageCheckout.php</li>
<li><span class="removed">/includes/langauges/english/address_book_register.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/address_book_register.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/checkout_one.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/checkout_one_confirmation.php<sup>1</sup></li>
<li><span class="removed">/includes/languages/english/checkout_process_guest.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/checkout_success_guest.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/create_account_register.php</span><sup>1</sup></li>
<li><span class="removed">/includes/langauges/english/create_account_success_register.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/create_account_success_register.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/login_guest.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/extra_definitions/checkout_one_extra_definitions.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/modules/order_total/YOUR_TEMPLATE/ot_coupon.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/modules/order_total/YOUR_TEMPLATE/ot_gv.php</span><sup>1</sup></li>
<li><span class="removed">/includes/languages/english/YOUR_TEMPLATE/order_status.php</span><sup>1</sup></li>
<li>/includes/modules/pages/checkout_one/jquery.checkout_one.js</li>
<li>/includes/modules/pages/checkout_one/jquery.checkout_one.min.js</li>
<li>/includes/modules/pages/checkout_one_confirmation/header_php.php</li>
<li>/YOUR_ADMIN/includes/init_includes/init_checkout_one.php</li>
</ol></li>
<sup>1</sup>Removed from this distribution <em>only</em>; if your site runs on a version of Zen Cart 1.5.7, these files <b>must</b> be kept from your original installation.
Expand Down
3 changes: 2 additions & 1 deletion includes/modules/pages/checkout_one/jquery.checkout_one.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.5.2
// Last changed: OPC v2.5.4
//
var selected;
var submitter = null;
Expand Down Expand Up @@ -529,6 +529,7 @@ jQuery(document).ready(function() {
jQuery(document).on('click', '.opc-cc-submit', function() {
zcLog2Console('Submitting credit-class request');
setOrderConfirmed(0);
jQuery('input[name="action"]').val('cc-submit');
jQuery('form[name="checkout_payment"]').submit();
});

Expand Down
Loading

0 comments on commit 460a21e

Please sign in to comment.