Zen Follower
- Join Date:
- Jun 2012
- Posts:
- 481
- Plugin Contributions:
- 0
One-Page Checkout [Support Thread]
Thank you Cindy for finding the solution to my problem!
Dave
Views: 632,616
Zen Follower
Thank you Cindy for finding the solution to my problem!
Dave
Totally Zenned
I seem to get this error again, going through many pages to check description formatting. I added a couple items to cart, gone through couple hundred items. Then blank page on every refresh. In a different browser, its no problem and I can resume going through page. I thought the previous fix I mentioned not long ago worked. It did at time, I still have that code fix. But it gives the same error again. I have 2.55 Beta version:-
[28-Jul-2025 00:17:09 Europe/London] PHP Fatal error: Uncaught Error: Call to a member function guestCheckoutEnabled() on int in /includes/classes/observers/class.checkout_one_observer.php:216
Stack trace:
#0 /includes/autoload_func.php(64): checkout_one_observer->messageCheck()
#1 /includes/application_top.php(329): require('/home/****/...')
#2 /index.php(25): require('/home/*****/...')
#3 {main}
thrown in /includes/classes/observers/class.checkout_one_observer.php on line 216
Totally Zenned
I cleared zen_sessions table, and I can resume in current browser. But it must be saving the error in the session for some reason? After click through of couple of hundred pages? Some customers can do that for real I imagine, perhaps more so if an item is saved in basket. I also have Automatic Login module enabled. I did try disabling that, but it didn't help. Whether they can play together for session, I don't know.
Administrator
HeathenMagic:
I cleared zen_sessions table, and I can resume in current browser. But it must be saving the error in the session for some reason? After click through of couple of hundred pages? Some customers can do that for real I imagine, perhaps more so if an item is saved in basket. I also have Automatic Login module enabled. I did try disabling that, but it didn't help. Whether they can play together for session, I don't know.
That observer is making a call to OPC's session-based class ... which has mysteriously "gone missing" sometime between load point 75 and 131. I'll be home next Monday and will take a deeper look.
Totally Zenned
lat9:
That observer is making a call to OPC's session-based class ... which has mysteriously "gone missing" sometime between load point 75 and 131. I'll be home next Monday and will take a deeper look.
Ah I see. Was hard to replicate, but definitely when going through lots and lots of items. Otherwise, it seems to be okay.
Totally Zenned
I think latest update has the above fixed as it mentions 'continually load classes'? Thanks very much, will give it a go.
Zen Follower
I need to force a specific shipping method (shipping by quote) for not only customers in a geo-zone specified in the shipping by quote shipping module but also for customers in a specific customer group regardless of their geo-zone. How can I do this in OPC? A notifier suggestion would be a big help.
Thank you!
Dave
zc2.1.0, opc2.5.4, bootstrap3.7.7
Zen Follower
Sorry, I found an article here that provides one way to do what I need.
Dave
Administrator
I have also seen the "Call to a member function guestCheckoutEnabled() on int" error in ZC 2.1.0/OPC 2.5.4.
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.
Administrator
swguy:
I have also seen the "Call to a member function guestCheckoutEnabled() on int" error in ZC 2.1.0/OPC 2.5.4.
Unfortunately, that's meaningless without the full log with the backtrace and the page on which it was issued.
Administrator
[01-Aug-2025 03:07:38 America/Chicago] PHP Fatal error: Uncaught Error: Call to a member function guestCheckoutEnabled() on int in /home/client/public_html/includes/classes/observers/class.checkout_one_observer.php:216
Stack trace:
#0 /home/client/public_html/includes/autoload_func.php(64): checkout_one_observer->messageCheck()
#1 /home/client/public_html/includes/application_top.php(329): require('/home/client/...')
#2 /home/client/public_html/index.php(25): require('/home/client/...')
#3 {main}
thrown in /home/client/public_html/includes/classes/observers/class.checkout_one_observer.php on line 216
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.
Administrator
v2.5.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 these GitHub issues:
#425: Disregard shipping modules/methods with no 'id'
#428: Passing E_USER_ERROR to trigger_error() is deprecated
#431: Corrections needed for shipping modules with 'extra' fields
#432: AJAX: Conditionally load order-related classes
#435: 'state_code' address element not created for temporary address updates
#440: Correct product tax display on shipping change
#441: Disallow guest-checkout if email_address is registered but not authorized
#442: Remove overrides now present in zc158 and later
Totally Zenned
is it normal for OPC to be display has on column on responsive template?
When combine with the bootstrap template, OPC is display in several columns.
I am not able to add screenshot somehow but:
OPC on bootstrap is like
column 1 column 2 column 3
billing info cart content other
shipping info comment box
OPC on responsive is one column only
billing info
shipping info
comment
cart content
How can i get the 3 column on responsive classic template?
Thank you
Administrator
nicksab:
is it normal for OPC to be display has on column on responsive template?
When combine with the bootstrap template, OPC is display in several columns.
I am not able to add screenshot somehow but:
OPC on bootstrap is like
column 1 column 2 column 3
billing info cart content other
shipping info comment boxOPC on responsive is one column only
billing info
shipping info
comment
cart contentHow can i get the 3 column on responsive classic template?
Thank you
OPC provides a checkout_one.css file in its distribution's /includes/templates/YOUR_TEMPLATE directory. Did you copy that .css file to your responsive_classic clone's template directory?
Note that the file should not be copied for the Bootstrap template and its clones.
Totally Zenned
lat9:
OPC provides a checkout_one.css file in its distribution's /includes/templates/YOUR_TEMPLATE directory. Did you copy that .css file to your responsive_classic clone's template directory?
Note that the file should not be copied for the Bootstrap template and its clones.
The file is there and I am using the latest version of OPC 2.5.5
I am still getting error when trying to attach images so maybe these dropbox link would work better.
Here is the website using Bootstrap Template with OPC
[https://www.dropbox.com/scl/fi/vv180ctihrarrlq9oc5yg/Screenshot_27-9-2025_181854_www.royal-fleur.com.jpeg?rlkey=rgbgcmj6ux5w86gsihodjhrfy&st=3zt2azxo&dl=0](https://www.dropbox.com/scl/fi/vv180ctihrarrlq9oc5yg/Screenshot_27-9-2025_181854_www.royal-fleur.com.jpeg?rlkey=rgbgcmj6ux5w86gsihodjhrfy&st=3zt2azxo&dl=0)
Here is the site with Responsive Template and OPC Checkout
Same site Responsive Template with classic checkout
Administrator
That screenshot of Bootstrap with OPC doesn't look like the as-shipped version and the screenshot with responsive_classic is too teeny to make out.
Noting, too, that debugging CSS issues via screenshots is pretty "impossible".
Totally Zenned
lat9:
That screenshot of Bootstrap with OPC doesn't look like the as-shipped version and the screenshot with responsive_classic is too teeny to make out.
Noting, too, that debugging CSS issues via screenshots is pretty "impossible".
sorry forgot to add the link to site with issues
Administrator
nicksab:
sorry forgot to add the link to site with issues
https://www.royal-fleur.com/belvedere/
A couple of things with your site-specific customizations:
Totally Zenned
PHP 8.4 / ZC 2.1.0 / OPC 2.5.5
This is a bit of a weird one. I'm trying to modify the Square WebPay payment module to add on Square's CashApp payments to be processed through the site. So far, it works when I do so with the standard checkout and One Page Checkout with nothing extra added.
However, if I enable the option "Confirm Terms and Conditions During Checkout Procedure" and then try to proceed with one-page checkout, ZenCart will alert that I need to confirm to the terms of service. But clicking that checkbox, and then trying to confirm order, it stops cold (no processing) or anything. Meanwhile, if I get rid of the checkbox to agree to Terms, it works fine.
I noticed on Developer Console the following "warnings"(?):
Content Script Bridge: Sending response back to page context: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}content-scripts.js:1 CONTENT_SHELL: Page is excluded. Skipping shell protection.
content-scripts.js:1 Content Script Bridge: Unknown message type, MSG_CHECK_DOMAIN_ALLOW_LIST_RESPONSE
injection-tss-mv3.js:1 TSS: Received response from checkDomainAndRun: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
injection-tss-mv3.js:1 injection-tss TSS: hosted page injected
injection-tss-mv3.js:1 injection-tss MBTSS: Nonce: nonce
content-scripts.js:1 TSS: excluded result: true
content-scripts.js:1 SCHJK: Search Hijacking notification feature flag is enabled. true
content-scripts.js:1 DFP: Breach notification feature flag is enabled. true
content-scripts.js:1 CONTENT_SHELL: Page is excluded. Skipping shell protection.
content-scripts.js:1 TSS: excluded result: true
content-scripts.js:1 Content Script Bridge: Sending response back to page context: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
content-scripts.js:1 Content Script Bridge: Unknown message type, MSG_CHECK_DOMAIN_ALLOW_LIST_RESPONSE
injection-tss-mv3.js:1 TSS: Received response from checkDomainAndRun: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
injection-tss-mv3.js:1 injection-tss TSS: hosted page injected
injection-tss-mv3.js:1 injection-tss MBTSS: Nonce: nonce
content-scripts.js:1 SCHJK: Search Hijacking notification feature flag is enabled. true
content-scripts.js:1 DFP: Breach notification feature flag is enabled. true
square.js:3 Initializing Cash App Pay... success! {addEventListener: ƒ, attach: ƒ, destroy: ƒ, detach: ƒ, removeEventListener: ƒ}
square.js:3 found checkoutOneSubmit button!
content-scripts.js:1 Content Script Bridge: Sending response back to page context: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
content-scripts.js:1 Content Script Bridge: Unknown message type, MSG_CHECK_DOMAIN_ALLOW_LIST_RESPONSE
injection-tss-mv3.js:1 TSS: Received response from checkDomainAndRun: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
injection-tss-mv3.js:1 injection-tss TSS: hosted page injected
injection-tss-mv3.js:1 injection-tss MBTSS: Nonce: nonce
square.js:3 setFormSubmitButton, payment-module: square_webPay
square.js:3 Showing "confirm", paymentMethodHandlesSubmit (true)
square.js:3 setFormSubmitButton, enabling Review and Confirm buttons.
square.js:3 submitFunction, on exit submitter=null
square.js:3 Setting orderConfirmed (1), submitter (null)
square.js:3 Form being submitted, submit_type(confirm
square.js:3 setFormSubmitButton, payment-module: square_webPay
square.js:3 Showing "confirm", paymentMethodHandlesSubmit (true)
square.js:3 setFormSubmitButton, enabling Review and Confirm buttons.
square.js:3 Form checked, passed (true)
square.js:3 Deferring form submittal to the currently-selected payment method.
Not sure what else I could provide to help track it down.
Totally Zenned
retched:
PHP 8.4 / ZC 2.1.0 / OPC 2.5.5
This is a bit of a weird one. I'm trying to modify the Square WebPay payment module to add on Square's CashApp payments to be processed through the site. So far, it works when I do so with the standard checkout and One Page Checkout with nothing extra added.
However, if I enable the option "Confirm Terms and Conditions During Checkout Procedure" and then try to proceed with one-page checkout, ZenCart will alert that I need to confirm to the terms of service. But clicking that checkbox, and then trying to confirm order, it stops cold (no processing) or anything. Meanwhile, if I get rid of the checkbox to agree to Terms, it works fine.
I noticed on Developer Console the following "warnings"(?):
Content Script Bridge: Sending response back to page context: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}content-scripts.js:1 CONTENT_SHELL: Page is excluded. Skipping shell protection.
content-scripts.js:1 Content Script Bridge: Unknown message type, MSG_CHECK_DOMAIN_ALLOW_LIST_RESPONSE
injection-tss-mv3.js:1 TSS: Received response from checkDomainAndRun: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
injection-tss-mv3.js:1 injection-tss TSS: hosted page injected
injection-tss-mv3.js:1 injection-tss MBTSS: Nonce: nonce
content-scripts.js:1 TSS: excluded result: true
content-scripts.js:1 SCHJK: Search Hijacking notification feature flag is enabled. true
content-scripts.js:1 DFP: Breach notification feature flag is enabled. true
content-scripts.js:1 CONTENT_SHELL: Page is excluded. Skipping shell protection.
content-scripts.js:1 TSS: excluded result: true
content-scripts.js:1 Content Script Bridge: Sending response back to page context: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
content-scripts.js:1 Content Script Bridge: Unknown message type, MSG_CHECK_DOMAIN_ALLOW_LIST_RESPONSE
injection-tss-mv3.js:1 TSS: Received response from checkDomainAndRun: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
injection-tss-mv3.js:1 injection-tss TSS: hosted page injected
injection-tss-mv3.js:1 injection-tss MBTSS: Nonce: nonce
content-scripts.js:1 SCHJK: Search Hijacking notification feature flag is enabled. true
content-scripts.js:1 DFP: Breach notification feature flag is enabled. true
square.js:3 Initializing Cash App Pay... success! {addEventListener: ƒ, attach: ƒ, destroy: ƒ, detach: ƒ, removeEventListener: ƒ}
square.js:3 found checkoutOneSubmit button!
content-scripts.js:1 Content Script Bridge: Sending response back to page context: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
content-scripts.js:1 Content Script Bridge: Unknown message type, MSG_CHECK_DOMAIN_ALLOW_LIST_RESPONSE
injection-tss-mv3.js:1 TSS: Received response from checkDomainAndRun: {isAllowListed: false, isProtectionEnabled: true, isScamsProtectionEnabled: true}
injection-tss-mv3.js:1 injection-tss TSS: hosted page injected
injection-tss-mv3.js:1 injection-tss MBTSS: Nonce: nonce
square.js:3 setFormSubmitButton, payment-module: square_webPay
square.js:3 Showing "confirm", paymentMethodHandlesSubmit (true)
square.js:3 setFormSubmitButton, enabling Review and Confirm buttons.
square.js:3 submitFunction, on exit submitter=null
square.js:3 Setting orderConfirmed (1), submitter (null)
square.js:3 Form being submitted, submit_type(confirm
square.js:3 setFormSubmitButton, payment-module: square_webPay
square.js:3 Showing "confirm", paymentMethodHandlesSubmit (true)
square.js:3 setFormSubmitButton, enabling Review and Confirm buttons.
square.js:3 Form checked, passed (true)
square.js:3 Deferring form submittal to the currently-selected payment method.
>
> Not sure what else I could provide to help track it down.
To add here: if I click the "terms" box BEFORE trying to submit payment details THEN click to submit payment details, it works normally.
Tell staff why this post should be reviewed.