do you have this file in your install:
https://github.com/lat9/one_page_che...eckout_one.php
do you have this file in your install:
https://github.com/lat9/one_page_che...eckout_one.php
Yes I have the language files.
Could an additional jscript file cause the issue?
I added the following file named jscript_paypal.php in includes/modules/pages/checkout_one with the following code:
The paypal script is only needed on this page so i thought of doing it this way instead of in html_header between the <head> tag.Code:<script defer src="https://www.paypal.com/sdk/js?client-id=Aegt8Ag48Qk8****hidden**********AWXJIkxeeiWN2Na1vIpn-mTwy6QygzUb&components=messages" data-namespace="PayPalSDK"> </script>
Did i mess it up and/or did it wrong? It could be interfering with jscript_main.php
Thank you for your help
Do you also have this (https://github.com/lat9/one_page_che..._functions.php) file? That contains the function that 'converts' the new-format language files into language constants for pre-zc158 installations.
I have this file as well but my version was a little different.( after winmerge comparison)
I had this code around line 128:
instead ofCode:if (!defined('IS_ADMIN_FLAG') || IS_ADMIN_FLAG !== true) { $base_language_dir = DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir; } else { $base_language_dir = DIR_FS_CATALOG_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir; }
I replaced my file with the github version and also removed my jscript_paypal.php hoping it will fix the error log.Code:$base_language_dir = DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/' . $legacy_dir;
I also looked up some of the constant using developer tool kit and they are present in the file /includes/languages/english/lang.checkout_one.php
Not sure what it could be. I resetted the error log and waiting to see if it happens again.
Looks like I am out of luck on this one.
The errors are back with a vengeance:
Anything other ideas what could be causing the issue?[18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT - assumed 'JS_ERROR_AJAX_RESTORE_CUSTOMER_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 52.
[18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 52.
[18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT - assumed 'JS_ERROR_AJAX_VALIDATE_CUSTOMER_TIMEOUT' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 53.
[18-Nov-2022 11:40:03 America/Los_Angeles] Request URI: /index.php?main_page=checkout_one, IP address: 172.58.140.245
#1 require(/includes/modules/pages/checkout_one/jscript_main.php) called at [/includes/templates/bootstrap/common/html_header.php:201]
#2 require(/includes/templates/bootstrap/common/html_header.php) called at [/index.php:43]
--> PHP Warning: Use of undefined constant JS_ERROR_CONTACT_US - assumed 'JS_ERROR_CONTACT_US' (this will throw an Error in a future version of PHP) in /includes/modules/pages/checkout_one/jscript_main.php on line 53.
Thank you for all your help
@nicksab, whatever changes you have made to OPC's base files are what's are giving you these issues. I suggest that you do a full review of those changes to see how they might be affecting the OPC update.
My apologies has I must have messed up it up somehow. I removed OPC and reinstalled it as well as applied the Bootstrap changes. So fa, no error.
However, since I don t want to break it again:
How do i remove the "bottom instructions" box?
How can i make the "specials instructions/comment box" required or mandatory?
Thank you
You remove the "bottom instructions" by editing your template-override of /includes/languages/english/lang.checkout_one.php, so that would be in your bootstrap-clone's language sub-directory: /includes/languages/english/YOUR_TEMPLATE/lang.checkout_one.php.
You'll need custom code to make an entry in the comment-box mandatory.