Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
Hmm, that constant is defined in /includes/languages/english/extra_definitions/lang.checkout_one_extra_definitions.php. Did you, perhaps, forget to copy that file when you installed?
In the above file, it appears that
Code:
'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED', 'Access to that page ............
should be
Code:
'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED' => 'Access to that page ............
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
simon1066
In the above file, it appears that
Code:
'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED', 'Access to that page ............
should be
Code:
'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED' => 'Access to that page ............
Raised as an issue on Github.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
simon1066
In the above file, it appears that
Code:
'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED', 'Access to that page ............
should be
Code:
'ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED' => 'Access to that page ............
Hi @Simon, I just tried your suggestion and it fixed! Thanks!
Re: One-Page Checkout [Support Thread]
PR created. Thanks Simon.
Re: One-Page Checkout [Support Thread]
v2.4.5 of One-Page Checkout is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2095
This release contains changes associated with the following GitHub issues:
#364: Correct missing language-constant ERROR_GUEST_CHECKOUT_PAGE_DISALLOWED.
#367: HTML5, remove type="text/javascript" from <script> tags.
#368: order_status page, correct PHP fatal error on initial installation on zc157.
#369: Ensure that $_SESSION['customers_email_address'] is set for registered-account creation and guest-checkout.
Re: One-Page Checkout [Support Thread]
1.5.8 with PHP 8
BootStrap 3.5.0 -- IMPORTANT
Updating OPC to 2.4.7
Part of the OPC distro includes/modules/sideboxes/YOUR_TEMPLATE/information.php. It is said to not be a core file replacement. This seems to be false if the store is using bootstrap or a bootstrap clone.
If you clone bootstrap to, say, boot_dbltoe it then essentially becomes the "YOUR_TEMPLATE" folder for 1.5.8 running bootstrap.
The directions state to rename the OPC YOUR_TEMPLATE files to whatever your current template is called which would result in the provided OPC file to be renamed to includes/modules/sideboxes/boot_dbltoe/information.php.
When that file is loaded to the store, the original bootstrap information.php is overwritten by the OPC and the following log file occurs along with a partial blank page.
Code:
[27-Dec-2022 13:08:33 America/Denver] Request URI: /index.php?main_page=down_for_maintenance, IP address: 255.255.255.255, Language id 1#1 require(/includes/templates/boot_dbltoe/sideboxes/tpl_information.php) called at [/includes/modules/sideboxes/boot_dbltoe/information.php:56]
#2 require(/includes/modules/sideboxes/boot_dbltoe/information.php) called at [/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php:97]
#3 require(/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php) called at [/includes/templates/boot_dbltoe/common/tpl_header.php:77]
#4 require(/includes/templates/boot_dbltoe/common/tpl_header.php) called at [/includes/templates/boot_dbltoe/common/tpl_main_page.php:125]
#5 require(/includes/templates/boot_dbltoe/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $box_id in /includes/templates/boot_dbltoe/sideboxes/tpl_information.php on line 12.
[27-Dec-2022 13:08:33 America/Denver] Request URI: /index.php?main_page=down_for_maintenance, IP address: 255.255.255.255, Language id 1
#1 require(/includes/modules/sideboxes/boot_dbltoe/information.php) called at [/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php:97]
#2 require(/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php) called at [/includes/templates/boot_dbltoe/common/tpl_header.php:77]
#3 require(/includes/templates/boot_dbltoe/common/tpl_header.php) called at [/includes/templates/boot_dbltoe/common/tpl_main_page.php:125]
#4 require(/includes/templates/boot_dbltoe/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $column_box_default in /includes/modules/sideboxes/boot_dbltoe/information.php on line 61.
[27-Dec-2022 13:08:33 America/Denver] Request URI: /index.php?main_page=down_for_maintenance, IP address: 255.255.255.255, Language id 1
#1 require(/includes/modules/sideboxes/boot_dbltoe/information.php) called at [/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php:97]
#2 require(/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php) called at [/includes/templates/boot_dbltoe/common/tpl_header.php:77]
#3 require(/includes/templates/boot_dbltoe/common/tpl_header.php) called at [/includes/templates/boot_dbltoe/common/tpl_main_page.php:125]
#4 require(/includes/templates/boot_dbltoe/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $column_box_default in /includes/modules/sideboxes/boot_dbltoe/information.php on line 61.
[27-Dec-2022 13:08:33 America/Denver] Request URI: /index.php?main_page=down_for_maintenance, IP address: 255.255.255.255, Language id 1
#1 require() called at [/includes/modules/sideboxes/boot_dbltoe/information.php:61]
#2 require(/includes/modules/sideboxes/boot_dbltoe/information.php) called at [/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php:97]
#3 require(/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php) called at [/includes/templates/boot_dbltoe/common/tpl_header.php:77]
#4 require(/includes/templates/boot_dbltoe/common/tpl_header.php) called at [/includes/templates/boot_dbltoe/common/tpl_main_page.php:125]
#5 require(/includes/templates/boot_dbltoe/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: require(/includes/templates/boot_dbltoe/common): Failed to open stream: No such file or directory in /includes/modules/sideboxes/boot_dbltoe/information.php on line 61.
[27-Dec-2022 13:08:33 America/Denver] PHP Fatal error: Uncaught Error: Failed opening required 'includes/templates/boot_dbltoe/common/' (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /includes/modules/sideboxes/boot_dbltoe/information.php:61
Stack trace:
#0 /includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php(97): require()
#1 /includes/templates/boot_dbltoe/common/tpl_header.php(77): require('/home/hornkati/...')
#2 /includes/templates/boot_dbltoe/common/tpl_main_page.php(125): require('/home/hornkati/...')
#3 /index.php(94): require('/home/hornkati/...')
#4 {main}
thrown in /includes/modules/sideboxes/boot_dbltoe/information.php on line 61
[27-Dec-2022 13:08:33 America/Denver] Request URI: /index.php?main_page=down_for_maintenance, IP address: 255.255.255.255
--> PHP Fatal error: Uncaught Error: Failed opening required 'includes/templates/boot_dbltoe/common/' (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /includes/modules/sideboxes/boot_dbltoe/information.php:61
Stack trace:
#0 /includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php(97): require()
#1 /includes/templates/boot_dbltoe/common/tpl_header.php(77): require('/home/hornkati/...')
#2 /includes/templates/boot_dbltoe/common/tpl_main_page.php(125): require('/home/hornkati/...')
#3 /index.php(94): require('/home/hornkati/...')
#4 {main}
thrown in /includes/modules/sideboxes/boot_dbltoe/information.php on line 61.
Replacing the OPC information.php file with the original from bootstrap 3.5.0 restores operation to the store.
Had this same problem before but was not able to replicate cause and effect till this time.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
dbltoe
1.5.8 with PHP 8
BootStrap 3.5.0 -- IMPORTANT
Updating OPC to 2.4.7
Part of the OPC distro includes/modules/sideboxes/YOUR_TEMPLATE/information.php. It is said to not be a core file replacement. This seems to be false if the store is using bootstrap or a bootstrap clone.
If you clone bootstrap to, say, boot_dbltoe it then essentially becomes the "YOUR_TEMPLATE" folder for 1.5.8 running bootstrap.
The directions state to rename the OPC YOUR_TEMPLATE files to whatever your current template is called which would result in the provided OPC file to be renamed to includes/modules/sideboxes/boot_dbltoe/information.php.
When that file is loaded to the store, the original bootstrap information.php is overwritten by the OPC and the following log file occurs along with a partial blank page.
Code:
[27-Dec-2022 13:08:33 America/Denver] Request URI: /index.php?main_page=down_for_maintenance, IP address: 255.255.255.255, Language id 1#1 require(/includes/templates/boot_dbltoe/sideboxes/tpl_information.php) called at [/includes/modules/sideboxes/boot_dbltoe/information.php:56]
#2 require(/includes/modules/sideboxes/boot_dbltoe/information.php) called at [/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php:97]
#3 require(/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php) called at [/includes/templates/boot_dbltoe/common/tpl_header.php:77]
#4 require(/includes/templates/boot_dbltoe/common/tpl_header.php) called at [/includes/templates/boot_dbltoe/common/tpl_main_page.php:125]
#5 require(/includes/templates/boot_dbltoe/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $box_id in /includes/templates/boot_dbltoe/sideboxes/tpl_information.php on line 12.
[27-Dec-2022 13:08:33 America/Denver] Request URI: /index.php?main_page=down_for_maintenance, IP address: 255.255.255.255, Language id 1
#1 require(/includes/modules/sideboxes/boot_dbltoe/information.php) called at [/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php:97]
#2 require(/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php) called at [/includes/templates/boot_dbltoe/common/tpl_header.php:77]
#3 require(/includes/templates/boot_dbltoe/common/tpl_header.php) called at [/includes/templates/boot_dbltoe/common/tpl_main_page.php:125]
#4 require(/includes/templates/boot_dbltoe/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $column_box_default in /includes/modules/sideboxes/boot_dbltoe/information.php on line 61.
[27-Dec-2022 13:08:33 America/Denver] Request URI: /index.php?main_page=down_for_maintenance, IP address: 255.255.255.255, Language id 1
#1 require(/includes/modules/sideboxes/boot_dbltoe/information.php) called at [/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php:97]
#2 require(/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php) called at [/includes/templates/boot_dbltoe/common/tpl_header.php:77]
#3 require(/includes/templates/boot_dbltoe/common/tpl_header.php) called at [/includes/templates/boot_dbltoe/common/tpl_main_page.php:125]
#4 require(/includes/templates/boot_dbltoe/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: Undefined variable $column_box_default in /includes/modules/sideboxes/boot_dbltoe/information.php on line 61.
[27-Dec-2022 13:08:33 America/Denver] Request URI: /index.php?main_page=down_for_maintenance, IP address: 255.255.255.255, Language id 1
#1 require() called at [/includes/modules/sideboxes/boot_dbltoe/information.php:61]
#2 require(/includes/modules/sideboxes/boot_dbltoe/information.php) called at [/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php:97]
#3 require(/includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php) called at [/includes/templates/boot_dbltoe/common/tpl_header.php:77]
#4 require(/includes/templates/boot_dbltoe/common/tpl_header.php) called at [/includes/templates/boot_dbltoe/common/tpl_main_page.php:125]
#5 require(/includes/templates/boot_dbltoe/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: require(/includes/templates/boot_dbltoe/common): Failed to open stream: No such file or directory in /includes/modules/sideboxes/boot_dbltoe/information.php on line 61.
[27-Dec-2022 13:08:33 America/Denver] PHP Fatal error: Uncaught Error: Failed opening required 'includes/templates/boot_dbltoe/common/' (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /includes/modules/sideboxes/boot_dbltoe/information.php:61
Stack trace:
#0 /includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php(97): require()
#1 /includes/templates/boot_dbltoe/common/tpl_header.php(77): require('/home/hornkati/...')
#2 /includes/templates/boot_dbltoe/common/tpl_main_page.php(125): require('/home/hornkati/...')
#3 /index.php(94): require('/home/hornkati/...')
#4 {main}
thrown in /includes/modules/sideboxes/boot_dbltoe/information.php on line 61
[27-Dec-2022 13:08:33 America/Denver] Request URI: /index.php?main_page=down_for_maintenance, IP address: 255.255.255.255
--> PHP Fatal error: Uncaught Error: Failed opening required 'includes/templates/boot_dbltoe/common/' (include_path='.:/opt/cpanel/ea-php80/root/usr/share/pear') in /includes/modules/sideboxes/boot_dbltoe/information.php:61
Stack trace:
#0 /includes/templates/boot_dbltoe/common/tpl_offcanvas_menu.php(97): require()
#1 /includes/templates/boot_dbltoe/common/tpl_header.php(77): require('/home/hornkati/...')
#2 /includes/templates/boot_dbltoe/common/tpl_main_page.php(125): require('/home/hornkati/...')
#3 /index.php(94): require('/home/hornkati/...')
#4 {main}
thrown in /includes/modules/sideboxes/boot_dbltoe/information.php on line 61.
Replacing the OPC information.php file with the original from bootstrap 3.5.0 restores operation to the store.
Had this same problem before but was not able to replicate cause and effect till this time.
Thanks, @dbltoe. I'll get the OPC installation instructions updated to note that the Bootstrap template (v2.4.0 and later) already has the required template files for that sidebox.
Re: One-Page Checkout [Support Thread]
On ZC v1.5.8 is it necessary to have both 'lang.' and 'non-lang.' versions of
/includes/languages/english/modules/order_total/YOUR_TEMPLATE/ot_coupon.php
/includes/languages/english/modules/order_total/YOUR_TEMPLATE/ot_gv.php
could I merge both files into a 'lang.' version only?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
simon1066
On ZC v1.5.8 is it necessary to have both 'lang.' and 'non-lang.' versions of
/includes/languages/english/modules/order_total/YOUR_TEMPLATE/ot_coupon.php
/includes/languages/english/modules/order_total/YOUR_TEMPLATE/ot_gv.php
could I merge both files into a 'lang.' version only?
For zc158, you can simply rename the ot_coupon.php and ot_gv.php to be .php~ files; the changes for zc158 are present in the lang. format.
Re: One-Page Checkout [Support Thread]