I'll have to look at all this when 1.5.8 is released. Cindy was first off the mark using the new style of language files, and this plugin predates that by many moons.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Update. My live site still received intermittent duplicated orders, like once per week. Nowadays, customers are really mad at this...
Anyway, I did some further changes today and I will report if helps.
1. I change AJAX time-out from 6s to 8s. A few months ago, I changed it from 4s to 6s. Not sure if it helps.
2. According to the following post
https://www.zen-cart.com/showthread....76#post1317476
I change the setTimeout('button_timeout()', 4000) from 4s to 20s. There are two files uses this function:
\includes\modules\pages\checkout_confirmation\jscript_double_submit.php
\includes\modules\pages\checkout_one_confirmation\jscript_main.php
I changed both to 20s. Here is a similar post from Stripe.com plug-in
https://www.zen-cart.com/showthread....dule&p=1386282
The author recommended to re-enable the submit button after 9s. So if 20s works on my end, I may try 10s instead.
Background: I'm using zc 1.5.7d, opc 2.4.4b2, paypal pro and express, php 7.4
Last edited by njcyx; 14 Oct 2022 at 05:36 PM.
Just trying to install OPCO with the Bootstrap template using zc1.5.8. - clean install on local server to test. have uploaded as well the boostrap template for opco.
the error I get is
[21-Oct-2022 12:07:50 UTC] PHP Fatal error: Uncaught Error: Undefined constant "MODULE_ORDER_TOTAL_COUPON_HEADER" in .\includes\modules\order_total\ot_coupon.php:105
Stack trace:
#0 .admin\modules.php(187): ot_coupon->__construct()
#1 .admin\index.php(11): require('C:\\Users\\...\\...')
#2 {main}
thrown in .\includes\modules\order_total\ot_coupon.php on line 105
[21-Oct-2022 12:07:50 UTC] Request URI: .admin/index.php?cmd=modules&set=ordertotal, IP address: ::1
--> PHP Fatal error: Uncaught Error: Undefined constant "MODULE_ORDER_TOTAL_COUPON_HEADER" in .\includes\modules\order_total\ot_coupon.php:105
Stack trace:
#0 .admin\modules.php(187): ot_coupon->__construct()
#1 .admin\index.php(11): require('C:\\Users\\...\\...')
#2 {main}
thrown in .\includes\modules\order_total\ot_coupon.php on line 105.
I can see the define is in the language file, I am not sure how to interpret the rest of this log to help fund or understand the problem. - sorry bit of a novice when it comes to coding.
I have also noticed that in admin \modules\order totals I only have one and the rest of the page does not load suggesting an error somewhere that prevents the admin page loading. Again, sorry but I just not sure where to look to see what is causing the error.
Thanks
Last edited by MikeyG; 21 Oct 2022 at 01:39 PM.
That's something 'funky' going on in the admin when you're displaying/configuring the order-total modules. Nothing to do with either OPC or the Bootstrap template, everything to do with something that's gone awry with zc158.
I'll suggest that you re-post the issue in a more general/Zen Cart base topic.
Please see
https://www.zen-cart.com/showthread....97#post1390897
for the required patches.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Trial version of 1.5.8, with OPC installed.
Defines for CHECK ORDER STATUS are not being recognised on the Order Status page
Lines 38 and 44 in the following file...
one_page_checkout-2.4.3\includes\languages\english\order_status.php
TEXT_LOOKUP_INSTRUCTIONS
ENTRY_ORDER_NUMBER
I copied these defines over to the CORE ZC-1.5.8 file (lang.order_status.php)
... and this now returns the desired text variable.Code:<?php $define = [ 'NAVBAR_TITLE' => 'Order Status', 'NAVBAR_TITLE_1' => 'My Account', 'HEADING_TITLE' => 'Check Order History', 'TEXT_LOOKUP_INSTRUCTIONS' =>'Select your order number below', 'ENTRY_ORDER_NUMBER' =>'Order Number', ]; return $define;
Last edited by schoolboy; 26 Oct 2022 at 10:05 AM.
20 years a Zencart User
Thanks for the report, I'd (obviously) missed testing this page. GitHub issue: https://github.com/lat9/one_page_checkout/issues/357
Bookmarks