Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / One-Page Checkout [Support Thread]

One-Page Checkout [Support Thread]

16 Oct 2026, 2:25 AM
#3101
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
846
Plugin Contributions:
0

Post #3101 by chadlly2003

pilou2:

chadlly2003:

pilou2:

Yes, this is a common address format in Europe where you don't use the state as the information is already in the postal code.

If you want it anyway, you can use format 12.

I made the changes that lat9 suggested but for some reason I am getting the same results. Am I misunderstanding something here?

Also for example if someone picks the netherlands then the State/Province is required. But your saying its in the postal code. Can you explain. (not sure what format 12 is)

In Admin->Locations->Countries, edit Netherland and change address format from 5 to 12. It should add the state field in the address. These format are defined in the database table address_format. There are predefined setting that you can change or add a new one and set any country to use it.

After this change, if you still don't see the state in the address, there might be an issue with OPC.

About the postal code, there are some numbers or letters representing the state. For exemple in France, the first 2 numbers in the postal code design the state like 75 for Paris (Ile de France), 69 for Rhone. Writing both just double the information which is why the state is not required in a standard address.

Now that I have a better understanding of how Zen Cart's address formats work, I have a much clearer picture of what was happening.

For example, when a country uses Address Format 5, the customer can enter a State/Province, but that information will not appear in the formatted address because the format doesn't include that field.

However, if the country uses Address Format 12, the State/Province information will be displayed.

So the issue wasn't necessarily that Zen Cart or OPC wasn't saving the information correctly. It was simply how the selected address format was configured to display it.

What I did so there are no issues

Set Minimum Length of State to 0: This allows customers in countries that do not require a State/Province to leave the field blank.

State/Province Dropdown: When a customer selects the United States or another country with predefined states or provinces in Zen Cart, a dropdown menu automatically appears. OPC then requires the customer to select a valid state or province before proceeding with checkout.

**note I have not encountered an issues after the new update version 2.7.1

16 Oct 2026, 5:47 AM
#3102
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
417
Plugin Contributions:
6

Post #3102 by pilou2

In ZC, address formats by countries are used to display customers addresses, but forms to register those do not us these formats.

You have to be carefull that the form requirements are not too loose that information required in some countries addresses would not be registered.

An obyious example would be to not require postal code in account registering.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

16 Oct 2026, 3:07 PM
#3103
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
846
Plugin Contributions:
0

Post #3103 by chadlly2003

pilou2:

In ZC, address formats by countries are used to display customers addresses, but forms to register those do not us these formats.

You have to be carefull that the form requirements are not too loose that information required in some countries addresses would not be registered.

An obyious example would be to not require postal code in account registering.

Pilou2

Just to clarify, if I set Minimum Length of State to 2, Zen Cart will require customers to enter a State/Province, even in countries like the Netherlands where that information isn't normally required for postal delivery.

With the setting at 0, I've confirmed that countries with predefined state/province dropdowns still require customers to make a valid selection.

Given these two scenarios, what would you recommend as the safest and most practical setting for international checkout?

I just want to make sure I get a better understanding before i implement it into my zencart stores?

16 Oct 2026, 5:52 PM
#3104
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
417
Plugin Contributions:
6

Post #3104 by pilou2

chadlly2003:

pilou2:

In ZC, address formats by countries are used to display customers addresses, but forms to register those do not us these formats.

You have to be carefull that the form requirements are not too loose that information required in some countries addresses would not be registered.

An obyious example would be to not require postal code in account registering.

Pilou2

Just to clarify, if I set Minimum Length of State to 2, Zen Cart will require customers to enter a State/Province, even in countries like the Netherlands where that information isn't normally required for postal delivery.

With the setting at 0, I've confirmed that countries with predefined state/province dropdowns still require customers to make a valid selection.

Given these two scenarios, what would you recommend as the safest and most practical setting for international checkout?

I just want to make sure I get a better understanding before i implement it into my zencart stores?

You understand well! Personally I prefer to let the state required (min length to 2) for everyone. If you want to be easy on your customers, then your setting is best.

I have another solution that is nice for customers too, the Postcode auto fill plugin that autofill the state field and partially the street field (if data are available) when a customer enter his postal code. But you need a database of all the postal codes for the country you target. Nehtherland is not actually in the data provided with the plugin. But if you build or find a free to use database, I would be happy to add it.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

17 Oct 2026, 3:07 PM
#3105
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
417
Plugin Contributions:
6

Post #3105 by pilou2

pilou2:

I have another solution that is nice for customers too, the Postcode auto fill plugin that autofill the state field and partially the street field (if data are available) when a customer enter his postal code. But you need a database of all the postal codes for the country you target. Nehtherland is not actually in the data provided with the plugin. But if you build or find a free to use database, I would be happy to add it.

Sorry, forget about that, the actual version of Postcode Auto Fill is not compatible with OPC, more specifically the guest checkout and address edit during checkout.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

17 Oct 2026, 3:58 PM
#3106
pilou2 avatar

pilou2

Zen Follower

Join Date:
Jun 2008
Location:
Japan
Posts:
417
Plugin Contributions:
6

Post #3106 by pilou2

With latest GitHub versions of ZC v3.0.0-dev, ZCA Bootstrap Template 3.8.1 and OPC, I am unable to use Guest Checkout.

There is no other plugin installed and I changed OPC settings to use Guest Checkout without email check.

I add an item in the cart then ckick Checkout button, then Guest Checkout and I get redirected to the login page with this message:

Your session has expired because your password was changed. Please login again.

There is no log file.

ZC v2.2.2 PHP 8.4+ MySQL 8.4+

17 Oct 2026, 5:06 PM
#3107
lat9 avatar

lat9

Administrator

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

Post #3107 by lat9

pilou2:

With latest GitHub versions of ZC v3.0.0-dev, ZCA Bootstrap Template 3.8.1 and OPC, I am unable to use Guest Checkout.

There is no other plugin installed and I changed OPC settings to use Guest Checkout without email check.

I add an item in the cart then ckick Checkout button, then Guest Checkout and I get redirected to the login page with this message:

Your session has expired because your password was changed. Please login again.

There is no log file.

GitHub tracking issue: https://github.com/lat9/one_page_checkout/issues/504

11 Nov 2026, 5:08 PM
#3108
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
846
Plugin Contributions:
0

Post #3108 by chadlly2003

I'm experiencing a strange issue with Zen Cart 2.2.1 and One-Page Checkout (OPC) 2.7.1-beta1. (first time i have seen this)

A customer placed an order, and for some reason, Zen Cart saved American Samoa as both the billing and shipping state, even though the customer lives in Georgia.

Actual customer address:

xxxx xxxx.
Boston, GA 31626
United States

What Zen Cart saved in the order:

xxxxx.
Boston, American Samoa 31626
United States

The unusual part is that the original customer order confirmation email shows the correct Georgia address for both billing and shipping, but when I look at the order in Zen Cart admin, both addresses show American Samoa.

11 Nov 2026, 5:12 PM
#3109
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,342
Plugin Contributions:
42

Post #3109 by mprough

chadlly2003:

I'm experiencing a strange issue with Zen Cart 2.2.1 and One-Page Checkout (OPC) 2.7.1-beta1. (first time i have seen this)

A customer placed an order, and for some reason, Zen Cart saved American Samoa as both the billing and shipping state, even though the customer lives in Georgia.

Actual customer address:

xxxx xxxx.
Boston, GA 31626
United States

What Zen Cart saved in the order:

xxxxx.
Boston, American Samoa 31626
United States

The unusual part is that the original customer order confirmation email shows the correct Georgia address for both billing and shipping, but when I look at the order in Zen Cart admin, both addresses show American Samoa.

I have seen this before. IF I remember correctly the customer accidentally select United States Minor Outlying Islands

~Melanie

11 Nov 2026, 7:04 PM
#3110
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
846
Plugin Contributions:
0

Post #3110 by chadlly2003

mprough:

chadlly2003:

I'm experiencing a strange issue with Zen Cart 2.2.1 and One-Page Checkout (OPC) 2.7.1-beta1. (first time i have seen this)

A customer placed an order, and for some reason, Zen Cart saved American Samoa as both the billing and shipping state, even though the customer lives in Georgia.

Actual customer address:

xxxx xxxx.
Boston, GA 31626
United States

What Zen Cart saved in the order:

xxxxx.
Boston, American Samoa 31626
United States

The unusual part is that the original customer order confirmation email shows the correct Georgia address for both billing and shipping, but when I look at the order in Zen Cart admin, both addresses show American Samoa.

I have seen this before. IF I remember correctly the customer accidentally select United States Minor Outlying Islands

~Melanie

strange because i don't have American Samoa in my state fields for the State drop down. If you go to country its there. But the customer didn't even select that. That's what throwing me for a loop.

12 Nov 2026, 10:46 PM
#3111
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
745
Plugin Contributions:
0

Post #3111 by jeff_mash

Since I am not sure if this is a OPC issue, please read this:

MAJOR ISSUE? Abuse of AJAX to place FREE Orders

https://www.zen-cart.com/threads/207493#post-1348014

Trying to determine what is causing this exploit of a customer that is perhaps using the backend AJAX endpoint to place free orders.

  • Jeff
13 Nov 2026, 4:45 AM
#3112
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,930
Plugin Contributions:
25

Post #3112 by dbltoe

jeff_mash:

Since I am not sure if this is a OPC issue, please read this:

MAJOR ISSUE? Abuse of AJAX to place FREE Orders

https://www.zen-cart.com/threads/207493#post-1348014

Trying to determine what is causing this exploit of a customer that is perhaps using the backend AJAX endpoint to place free orders.

You don't mention your payment gateway, but take a look at the ongoing discussion at https://github.com/zencart/zencart/pull/8060

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

13 Nov 2026, 12:23 PM
#3113
lat9 avatar

lat9

Administrator

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

Post #3113 by lat9

dbltoe:

jeff_mash:

Since I am not sure if this is a OPC issue, please read this:

MAJOR ISSUE? Abuse of AJAX to place FREE Orders

https://www.zen-cart.com/threads/207493#post-1348014

Trying to determine what is causing this exploit of a customer that is perhaps using the backend AJAX endpoint to place free orders.

You don't mention your payment gateway, but take a look at the ongoing discussion at https://github.com/zencart/zencart/pull/8060

This is the correct approach, as fixing the issue in checkout_process covers both OPC and 3-page checkout scenarios (as well as others).

13 Nov 2026, 8:53 PM
#3114
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
745
Plugin Contributions:
0

Post #3114 by jeff_mash

Cindy - Random question. Not sure if it's for OPC or just for ZenCart as a whole, but since we use OPC, I am asking here.

If a customer is part of a Group Discount tier, and the automatic discount lowers their total BELOW the free shipping threshold, the checkout page still keeps the free shipping option (even though the total dollars spent no longer qualifies for free shipping).

Is there any configuration in OPC or ZC that removes the Free Shipping option from the order total IF the amount is lowered below the threshold due to a Group Discount?

As an example:

Free shipping is $60 or more. A customer with a 10% Off Group Discount adds the minimum $60 worth of items in the cart.

Going to the OPC checkout page, the Free Shipping ($0.00) option is selected. It shows that they have $60.00 in the order, minus the $6.00 Group Discount, putting their total at $54.00. But the Free Shipping option is still there because the item itself is >= $60.00.

Is there any current configuration that removes Free Shipping if the checkout total is lowered by a Group Discount below the free shipping threshold?

I think this might be a general ZenCart question related to the ot_group_pricing and/or possibly the "freeship" shipping module.

  • Jeff
14 Nov 2026, 11:34 AM
#3115
lat9 avatar

lat9

Administrator

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

Post #3115 by lat9

@jeff_mash, that's a Zen Cart calculation question. OPC's tasked with reformatting the 3-page checkout into a 1- or 2-page one.

4 Dec 2026, 1:41 PM
#3116
lat9 avatar

lat9

Administrator

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

Post #3116 by lat9

v2.7.1 of One-Page Checkout is now available for download: https://www.zen-cart.com/plugins/one-page-checkout-one-page-checkout-vb2095

This release contains changes associated with these GitHub issues:

#503: 'Overlay' all other form-fields when a billing or shipping address is being edited.
#504: Correct guest-checkout operation for Zen Cart v3.0.0 and later.
#506: Harden checks on submitted payment module.
#507: Correct free order placement.