Zen Cart Logo
Forums / All Other Contributions/Addons / One-Page Checkout [Support Thread]

One-Page Checkout [Support Thread]

Views: 632,614

Results 2,981 to 3,000 of 3,088
29 Sep 2025, 11:24 PM
#2981
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

One-Page Checkout [Support Thread]

lat9:

A couple of things with your site-specific customizations:

  1. I'm not sure what the goal is with the addition of a <div id="main-content" class="box_spacer"> is, but I don't think that that's helping.

Not sure why this <div> was added into the new responsive classic template. It only contains "margin" in the css which may or may not contribute to the "shrinked" display on desktop.

  1. Your stylesheet_zcustom.css is overriding the onerow-fluid class' layout

unfortunately, ZC developer tool kit is not coming with anything on class'layout'.

Is there a sample site that use OPC? It would be great to be able to compare the original OPC behavior on a standard ZC site.

Thank you

30 Sep 2025, 5:14 AM
#2982
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: One-Page Checkout [Support Thread]

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.

Hi there. I figured out what was the block, just had to add two lines of Javascript to the module. All good!
30 Sep 2025, 4:53 PM
#2983
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

nicksab:

Not sure why this <div> was added into the new responsive classic template. It only contains "margin" in the css which may or may not contribute to the "shrinked" display on desktop.

unfortunately, ZC developer tool kit is not coming with anything on class'layout'.

Is there a sample site that use OPC? It would be great to be able to compare the original OPC behavior on a standard ZC site.

Thank you
Link sent via PM.

3 Oct 2025, 3:40 PM
#2984
dave224 avatar

dave224

Zen Follower

Join Date:
Jun 2012
Posts:
481
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I would like to apply a group discount to guest checkouts if the guest meets certain criteria. Current versions of ot_group_pricing allow calculating discounts for guest customers through a notifier NOTIFY_OT_GROUP_PRICING_DEDUCTION_OVERRIDE but in my case the calculations would repeat the same logic as a logged in customer who meets the criteria. Another option is provided by the NOTIFY_ZEN_IN_GUEST_CHECKOUT notifier in function zen_in_guest_checkout(). This notifier can be used to return false which will allow ot_group_pricing to calculate the discount without repeating code. Taking this latter approach seems to work, except the header has Log Out instead of Log In (or whatever text is set).

Are there any "gotchas" with this approach? Or would it be better to use the override notifier in ot_group_pricing and repeat code?

Thank you for any suggestions or comments.

Dave

7 Oct 2025, 4:04 PM
#2985
nldav avatar

nldav

New Zenner

Join Date:
Jan 2005
Posts:
55
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Does this plugin support "Expanded Checkout"? => https://developer.paypal.com/studio/checkout/advanced

I read like twenty pages back of this topic, watched screenshots of settings but cannot figure it out. If its not the case, is there a plugin which supports this Paypal mode? Searched the whole forum but its difficult to find people which have experience with this Paypal mode or am I not searching correctly, I wonder.

Or maybe I am talking about Paypal Pro? https://www.zen-cart.com/showthread.php/226801-Where-is-the-Paypal-Pro-quot-Auth-Only-quot-setting ? Because I'm specifically looking for that particular mode of "Auth only" payments.

7 Oct 2025, 5:25 PM
#2986
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

nl2dav:

Does this plugin support "Expanded Checkout"? => https://developer.paypal.com/studio/checkout/advanced

I read like twenty pages back of this topic, watched screenshots of settings but cannot figure it out. If its not the case, is there a plugin which supports this Paypal mode? Searched the whole forum but its difficult to find people which have experience with this Paypal mode or am I not searching correctly, I wonder.

Or maybe I am talking about Paypal Pro? https://www.zen-cart.com/showthread.php/226801-Where-is-the-Paypal-Pro-quot-Auth-Only-quot-setting ? Because I'm specifically looking for that particular mode of "Auth only" payments.
The payment module that most closely supports the "Expanded Checkout" is PayPal/RESTful (https://www.zen-cart.com/downloads.php?do=file&id=2382). That payment module will eventually support that "Expanded Checkout".

... and, yes, OPC interoperates with that payment module.

25 Oct 2025, 12:49 AM
#2987
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Not sure if it is possible at all, but I was wondering if:

Can the billing and shipping block be combine into one block?

Let me try to explain. I want my customer to be "forced" to enter their billing info and their shipping info before clicking save and being sent to the next page

Right now, customer enter their email and billing info then are being sent after clicking "save" to the payment page. The payment page has the shipping info prefilled from the billing info on the previous page. Customer have to click edit in order to change the shipping info.

I would like to avoid the edit step by having the customer fill in the shipping info on the previous page with the billing info.

Secondly, would it be possible to invert billing info with shipping info so customers enter the delivery address first then their billing address.

Hope this make sense

Thank you in advance for your suggestion and/or help

25 Oct 2025, 12:52 PM
#2988
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

nicksab:

Not sure if it is possible at all, but I was wondering if:

Can the billing and shipping block be combine into one block?

Let me try to explain. I want my customer to be "forced" to enter their billing info and their shipping info before clicking save and being sent to the next page

Right now, customer enter their email and billing info then are being sent after clicking "save" to the payment page. The payment page has the shipping info prefilled from the billing info on the previous page. Customer have to click edit in order to change the shipping info.

I would like to avoid the edit step by having the customer fill in the shipping info on the previous page with the billing info.

Secondly, would it be possible to invert billing info with shipping info so customers enter the delivery address first then their billing address.

Hope this make sense

Thank you in advance for your suggestion and/or help
Neither of those options is currently available. Note that the reason the billing address is requested first is that it's always needed, while the shipping address becomes optional when a customer's checkout contains only virtual products.

29 Oct 2025, 1:45 AM
#2989
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

Neither of those options is currently available. Note that the reason the billing address is requested first is that it's always needed, while the shipping address becomes optional when a customer's checkout contains only virtual products.

Understood.

31 Oct 2025, 5:53 PM
#2990
borek avatar

borek

New Zenner

Join Date:
Jul 2007
Posts:
9
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Hi,
I am just programing shipping module for Packeta (Middel Europe delivery system). And I use your OPC. I need to save new filed to order whit specificaly information about delivery place of any partner of Packeta. So I have made new field in TABLE_ORDERS, but I don't have found place who add this information for store it into the DB table.
my input name is packeta-select-branch adn need to know how to manipulate with this field to successfully save into the order table.
Thank you for your help.
Borek

1 Nov 2025, 1:07 PM
#2991
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

Borek:

Hi,
I am just programing shipping module for Packeta (Middel Europe delivery system). And I use your OPC. I need to save new filed to order whit specificaly information about delivery place of any partner of Packeta. So I have made new field in TABLE_ORDERS, but I don't have found place who add this information for store it into the DB table.
my input name is packeta-select-branch adn need to know how to manipulate with this field to successfully save into the order table.
Thank you for your help.
Borek
Your request is not specific to OPC, you'll need for your shipping module to save pertinent information in the session when it's selected and then provide any database updates via an observer-class watching 'significant' notifications from the order.php class. For instance:

  • NOTIFY_ORDER_AFTER_QUERY (needed to gather the information to view in the admin's order details)
  • NOTIFY_ORDER_DURING_CREATE_ADDED_ORDER_HEADER (add the shipping information to the orders table)
2 Nov 2025, 1:48 AM
#2992
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

I have been getting the warning logs lately:

[01-Nov-2025 21:07:41 UTC] Request URI: /index.php?main_page=shopping_cart&products_id=1768&disp_order=1, IP address: 14.182.205.151, Language id 1
#0 /includes/classes/shopping_cart.php(1378): zen_debug_error_handler()
#1 /includes/classes/observers/class.checkout_one_observer.php(219): shoppingCart->get_products()
#2 /includes/autoload_func.php(64): checkout_one_observer->messageCheck()
#3 /includes/application_top.php(329): require('/home/zch1akhw6...')
#4 /index.php(25): require('/home/zch1akhw6...')
--> PHP Warning: Undefined array key "products_name" in /includes/classes/shopping_cart.php on line 1378.

I am assuming it is OPC related due to the observer but not sure

How do I fix it? it has been filling up my logs

Thank you for the assistance

2 Nov 2025, 1:04 PM
#2993
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

nicksab:

I have been getting the warning logs lately:

[01-Nov-2025 21:07:41 UTC] Request URI: /index.php?main_page=shopping_cart&products_id=1768&disp_order=1, IP address: 14.182.205.151, Language id 1
#0 /includes/classes/shopping_cart.php(1378): zen_debug_error_handler()
#1 /includes/classes/observers/class.checkout_one_observer.php(219): shoppingCart->get_products()
#2 /includes/autoload_func.php(64): checkout_one_observer->messageCheck()
#3 /includes/application_top.php(329): require('/home/zch1akhw6...')
#4 /index.php(25): require('/home/zch1akhw6...')
--> PHP Warning: Undefined array key "products_name" in /includes/classes/shopping_cart.php on line 1378.

> 
> I am assuming  it is  OPC  related due to the observer but not sure
> 
> How do I fix it? it has been filling up my logs 
> 
> Thank  you  for  the assistance
That's coming out of the base shopping_cart.php class on line 1378.  What version of Zen Cart is in use?
3 Nov 2025, 1:38 AM
#2994
nicksab avatar

nicksab

Totally Zenned

Join Date:
Apr 2011
Posts:
592
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

lat9:

That's coming out of the base shopping_cart.php class on line 1378. What version of Zen Cart is in use?

I am on ZC 2.1

3 Nov 2025, 12:17 PM
#2995
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

nicksab:

I am on ZC 2.1
It looks like the product with an id of 1768 doesn't have a name.

28 Nov 2025, 2:24 PM
#2996
dave224 avatar

dave224

Zen Follower

Join Date:
Jun 2012
Posts:
481
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

Two questions about OPC..
(1) if a not logged in customer with an account checks out as a guest and fills out email address, name and address that match the account, OPC does not associate the guest with the account. Correct?
(2) If the customer table has extra custom fields and a customer checks out as guest, the guest customer row in the customer table may contain data in those extra fields. Where is that row cleared in OPC and is there an associated notifier that can be used to clear those extra fields.

Thank you!

Dave
zc2.1.0, OPC 2.5.5, Bootstrap 3.7.8, Remember Me 2.1.1

28 Nov 2025, 5:44 PM
#2997
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,108
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

Dave224:

Two questions about OPC..
(1) if a not logged in customer with an account checks out as a guest and fills out email address, name and address that match the account, OPC does not associate the guest with the account. Correct?
(2) If the customer table has extra custom fields and a customer checks out as guest, the guest customer row in the customer table may contain data in those extra fields. Where is that row cleared in OPC and is there an associated notifier that can be used to clear those extra fields.

Thank you!

Dave
zc2.1.0, OPC 2.5.5, Bootstrap 3.7.8, Remember Me 2.1.1
1: Correct
2: The 'base' OPC has no knowledge of any "extra custom fields" in the customers database table. There are a number of notifications issued (https://github.com/lat9/one_page_checkout/wiki/Notifications-Issued) through which custom code can provide additional data to be entered for a guest-customer's order. The maintenance of that additional data is left to the custom code.

28 Nov 2025, 8:44 PM
#2998
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,718
Plugin Contributions:
56

Re: One-Page Checkout [Support Thread]

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.

3 Dec 2025, 10:15 PM
#2999
dave224 avatar

dave224

Zen Follower

Join Date:
Jun 2012
Posts:
481
Plugin Contributions:
0

Re: One-Page Checkout [Support Thread]

If a customer checks out as a guest in OPC and enters a password to create an account on the checkout success page, the customer is taken to the create account success page. Clicking the Continue button on that page takes the customer to the shopping cart page, which is empty. Where does the redirect to the shopping cart page take place (which function/method please), and is there a way to redirect to the home page instead? I've tried to find the location without success.

Thank you!

Dave
zc2.1.0, OPC 2.5.5, Bootstrap 3.7.8

4 Dec 2025, 3:47 PM
#3000
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
508
Plugin Contributions:
1

Re: One-Page Checkout [Support Thread]

swguy:

[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

Was a solution/reason found for this I have had it ocour 96 times last month but I cannot recreate it on my test system.
Zen cart 2.1 opc 2.5.5 (2025-09-19) php 8.3.27

Mark Brittain
http:\innerlightcrystals.co.uk\sales\