diff --git a/docs/one_page_checkout/readme.html b/docs/one_page_checkout/readme.html
index e3df0fc..2492d13 100644
--- a/docs/one_page_checkout/readme.html
+++ b/docs/one_page_checkout/readme.html
@@ -86,7 +86,7 @@
One-Page Checkout … with Guest … for Zen Cart v1.5.5b (and later)
- Version 2.1.0 by lat9
+ Version 2.1.1 by lat9
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.
@@ -699,6 +699,13 @@ 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.
+ - v2.1.1, 2019-06-xx:
+ - BUGFIX: PHP Notice "thrown" when the site doesn't use CSS buttons.
+ - The following files were affected:
+ - /includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php
+ - /YOUR_ADMIN/includes/init_includes/init_checkout_one.php
+
+
- v2.1.0, 2019-04-07:
- BUGFIX: Return the expected value from
OnePageCheckout::startGuestOnePageCheckout
.
- BUGFIX: Correct conditional in the
checkout_one
page's header processing, causing PHP warnings.
diff --git a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php b/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php
index 6addc13..b31886a 100644
--- a/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php
+++ b/includes/templates/template_default/templates/tpl_modules_opc_credit_selections.php
@@ -35,6 +35,7 @@
// a jQuery event handler binds. When CSS buttons are used, the "secondary class" input must be used; otherwise,
// the class is submitted to the function as part of the to-be-created parameter list.
//
+ $ot_class = str_replace('ot_', '', $current_selection['id']);
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') {
$secondary_class = 'opc-cc-submit';
$additional_parms = '';
@@ -43,7 +44,6 @@
$additional_parms = 'name="apply_' . $ot_class . '"' . ' class="opc-cc-submit"';
}
- $ot_class = str_replace('ot_', '', $current_selection['id']);
foreach ($current_selection['fields'] as $current_field) {
?>