Of course I just checked the original 1.5.6c files and both show only what the first one says above. I am assuming it's not as easy as copying the correct lines to the admin configure.php file is it? I don't even know why they aren't the original 1.5.6c files. I have been using those files for almost a year now.
Hi lat9,
Good news, ignoring the zca56b files, I installed OPC 2.3.1 (Master) on my test shop, without any translations yet, and also without modifying the shipping module, and the module displays a nice one-page checkout for a logged in user, so that works fine. Customization of confirming age needs to be added by me, and of course the translation. And of course any enhancements related to multilingual addresses and Japanese support. But at least it does not clash with the existing store setup, and the debug log indicates that all information appears to be correctly read as expected (including certainly some information that requires Japanese support, so the module is obviously using the core files in some way to obtain some of its information, which is pretty great to see).
I will be working on the translations shortly, and see what remains to be done after that, for logged in users, before moving on to see how guest users works.
Regards,
Gernot Hassenpflug
Zen Cart 1.5.6c modified for Japanese language support. Upgraded incrementally from initial 1.5.5d. Currently planning direct upgrade to 2.1.0
ZC v1.56c
OPC v2.3.0
CEON URI Mapping
CSS_JS Loader
DPU
SBA
IH5
Zen Colorbox
Structured Data
SitemapXML
Lazy Loader
EU Cookie
Column Layout Grid - Responsive
Customised Template
I've activated Guest Checkout for the first time on my local dev copy and find that when clicking through to the \index.php?main_page=checkout_one page I get a partial blank screen. No doubt I've broken something, sequence is:
Add to cart
View cart
Click 'Checkout'
Goes to login page
Click 'Checkout' - Guest Checkout
Go to \index.php?main_page=checkout_one
Error log is:
Code:[30-Mar-2020 15:52:20 Europe/London] PHP Fatal error: Uncaught Error: Call to undefined method OnePageCheckoutNoPayment::javascript_validation() in D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\templates\tpl_checkout_one_default.php:14 Stack trace: #0 D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\common\tpl_main_page.php(217): require() #1 D:\wamp64\www\mydomain.co.uk\index.php(97): require('D:\\wamp64\\www\\m...') #2 {main} thrown in D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\templates\tpl_checkout_one_default.php on line 14 [30-Mar-2020 15:52:20 Europe/London] Request URI: /index.php?main_page=checkout_one, IP address: 127.0.0.1 --> PHP Fatal error: Uncaught Error: Call to undefined method OnePageCheckoutNoPayment::javascript_validation() in D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\templates\tpl_checkout_one_default.php:14 Stack trace: #0 D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\common\tpl_main_page.php(217): require() #1 D:\wamp64\www\mydomain.co.uk\index.php(97): require('D:\\wamp64\\www\\m...') #2 {main} thrown in D:\wamp64\www\mydomain.co.uk\includes\templates\my_template\templates\tpl_checkout_one_default.php on line 14.
The blank page starts at the point of
in tpl_checkout_one_default.phpCode:echo $payment_modules->javascript_validation();
If I sign in as a returning customer on the login page then I am successfully directed to the full checkout_one page. No console errors and the only payment module active is Paypal Express Checkout.
Any ideas?
Simon
PHP Fatal error: Uncaught Error: Call to undefined method OnePageCheckoutNoPayment::javascript_validation()
tells you everything right there.....
And the answer is, code was missing from my templates version of tpl_checkout_one_default.php, around line 9
should have beenCode:echo $payment_modules->javascript_validation();
Unsure as to why those lines were missing, my archives go back to 2017 and it seems those lines of code have been missing since, at least, then. Also thought I had checked my template copy against the original in an effort to debug - probably a case of too many files open in Notepad++ at the same time.Code:if ($payment_module_available) { echo $payment_modules->javascript_validation(); }
Anyway - all's good and thanks to @lat9 for her help and for pointing me in the right direction.
Simon
Thanks, @simon1066, for the update. I'll note that the template file was updated about a year ago for OPC v2.1.0.
I installed version 2.3.0 of this module to a ZC1.5.5f site and have noticed that when guest checkout is enabled order confirmation emails are being sent as text emails not HTML. Regular account holders get their confirmation emails in HTML format.
Also noticed that the admin copy of the order confirmation email has the addresses formatted on a single line rather than in standard address format.
I did look through the module documnts but didn't see anything related to this.