i get this when trying to checkout
Your available shipping options have changed. Please re-select your desired shipping method.
i get this when trying to checkout
Your available shipping options have changed. Please re-select your desired shipping method.
again I shouldnt play with things, added this to advanced shipper to not show when free shipping is enabled but didn't add a method
Code:if (IS_ADMIN_FLAG !== true && $this->enabled == true && isset($GLOBALS['freeoptions']) && $GLOBALS['freeoptions']->enabled && $method == '') { $this->enabled = false; return false; }
zc 1.58a. php 8.1. opc 2.5.2.
I received the following warning.
Line 115 is the following section:Code:Request URI: /ajax.php?act=ajaxOnePageCheckout&method=updateShippingSelection, IP address: xxxx, Language id 1 #0 /includes/classes/ajax/zcAjaxOnePageCheckout.php(115): zen_debug_error_handler() #1 /includes/classes/ajax/zcAjaxOnePageCheckout.php(104): zcAjaxOnePageCheckout->formatOrderTotal() #2 /ajax.php(85): zcAjaxOnePageCheckout->updateShippingSelection() --> PHP Warning: Undefined array key "opc_saved_order_total" in /includes/classes/ajax/zcAjaxOnePageCheckout.php on line 115.
Does the following change work? $_SESSION['opc_saved_order_total'] should not be zero or null?Code:protected function formatOrderTotal() { return $_SESSION['opc_saved_order_total'];//line 115 }
Code:return $_SESSION['opc_saved_order_total'] ?? '';
Last edited by njcyx; 27 Jun 2024 at 02:25 PM.
Hi @lat9,
No plug-in, but I added a php file to extend the session/shopping cart expiry time. Not sure if it is related.
This file is under /includes/extra_configures/my_ultra_long_session_timeout.php fileCode:<?php define('SESSION_TIMEOUT_CATALOG', 7200);
Reference link:
https://www.zen-cart.com/showthread....29#post1321729
Looks like that could happen if an error occurred in either initializeResponseStatus or there was an issue with the shipping selection.
I'll be changing that method to read
Code:// ----- // Called to format methods' return of the order's current total, // rounding to the number of decimal digits in the session's active // currency. // protected function formatOrderTotal() { global $currencies; return $_SESSION['opc_saved_order_total'] ?? $currencies->format(0); }
GitHub issue created to track the above change: https://github.com/lat9/one_page_checkout/issues/417
After upgrading to the new Square_webPay 1.2.1 I found a bug in (I think) OPC. While checking out and paying with Square_webPay, OR check/money order but NOT Paypal Restfull, If I change what's in the special Instructions or Comments field (or whatever 'TABLE_HEADING_COMMENTS' was defined to originally) I get the error "Your orders details have changed. Please review the current values and re-submit. I had had trouble with this previously with paypal, but not connected it to the comments field.
ZenCart - 1.5.8a
Bootstrap - 3.6.0
OPC - 2.5.1
Square_webPay (paid version) - 1.2.1
PayPal Checkout (RESTful) - 1.0.2
Hoping to upgrade OCP to 2.5.2 today, will post if it still happens in that version.
Lol, NM, I should have just trusted in lat9! 2.5.2 DOES in fact fix that prob! Thank you Cindy!!!!
Bookmarks