=== TrafficFlow OnePageCheckout for WooCommerce ===
Contributors: trafficflow, nielslange
Tags: woocommerce, checkout, one page checkout, block checkout, address autocomplete
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
WC requires at least: 9.4
WC tested up to: 11.1
Stable tag: 4.3.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The whole WooCommerce checkout on one page, built to convert. Your gateways, shipping and taxes stay as they are.

== Description ==

OnePageCheckout puts the whole WooCommerce checkout on one page: contact, delivery, shipping, payment and summary, with no reloads.

[Try the live demo](https://onepagecheckout.pro/?opc_demo=1). It runs OnePageCheckout Pro, with address suggestions on.

= What it does =

* **One page, no reloads.** Every step in view; shipping and payment as cards.
* **The cart, in the checkout.** Change quantities, remove items, apply coupons; skip the cart page.
* **A checkout without distractions.** No theme header, menus or footer around it.
* **Selling points and trust.** Your selling points (USPs) in the header, a "Secure checkout" badge, a trust row under Pay now.
* **Address autocomplete.** Suggestions as shoppers type: 500 address lookups a month for free, turned on with one click.
* **Built for phones.** The summary folds into one bar above the form.
* **Classic and block checkout.** The same design on both.
* **A clearer confirmation page.** The order at a glance, with your own help contact.

Also: inline login and an express checkout row. Works with WPML and Polylang.

= Same store underneath =

Gateways, shipping, taxes, coupons and fields from other plugins stay WooCommerce's own. Deactivate the plugin and the standard checkout returns, with no data changes. This free plugin contacts our service only after you turn on address suggestions.

= Make it yours =

Logo, accent color, selling points, trust row and pay-button text, with a live preview. No code.

= Who builds it =

TrafficFlow GmbH, an agency in Zurich, Switzerland ([trafficflow.ch](https://trafficflow.ch/)). The same checkout runs in production on high-revenue shops in Switzerland and across Europe.

= OnePageCheckout Pro =

Need more than 500 address lookups a month, or want your own Google key? That's OnePageCheckout Pro, a separate paid plugin. It replaces this one and keeps your settings. Pro adds:

* More address suggestions: 5,000 to 100,000 lookups a month depending on the plan, or your own Google key.
* Order bump, free-shipping bar, design presets, custom CSS.
* Order tracker, legal pages in an overlay, priority support.

Plans and the live demo: [onepagecheckout.pro](https://onepagecheckout.pro/)

== Installation ==

1. Install and activate WooCommerce, then this plugin.
2. Open WooCommerce → OnePageCheckout and set your logo and accent color. The live preview shows the result.
3. Place one test order with your own payment method and check the confirmation page.

== Frequently Asked Questions ==

= Is the free version enough for a live shop? =
Yes. Use it on as many shops as you like, with no limit on orders or products and no account needed. There's no branding of ours on your checkout and no banners across your admin; Pro is mentioned only on the plugin's own settings pages, its Plugins-screen row and, in a month when your free lookups run out, one dismissible notice. Your checkout is complete without Pro.

= Is there a demo? =
Yes: [onepagecheckout.pro/?opc_demo=1](https://onepagecheckout.pro/?opc_demo=1). It runs Pro. The free plugin's checkout looks and works the same, address suggestions included once you turn them on.

= Will it break my payment gateways? =
No. The plugin keeps WooCommerce's own payment area and checkout events, so Stripe, PayPal, bank transfer and others behave as before.

= Does it work with my theme? =
Yes. The checkout renders its own page; the rest of the shop keeps your theme. Tested with Storefront, Astra, Kadence, GeneratePress, Blocksy and block themes.

= Classic or block checkout? =
Both. The plugin detects which one your checkout page uses. The block checkout needs WooCommerce 9.8 or later; on older versions the settings offer a one-click switch to classic.

= Does address autocomplete need a Google API key? =
No. On the Autocomplete tab, click Turn on: 500 lookups a month for free, hosted by us and built on OpenStreetMap. Nothing is sent anywhere before that click. After 500 lookups, customers type their address as usual until the 1st of the next month; the checkout keeps working. Your own Google key works in Pro, which also has 5,000 to 100,000 lookups a month.

= What counts as a lookup? =
One address a customer enters, counted when the first suggestions appear. Each pause in typing sends one search; a typical address takes 5 to 10, and one lookup covers up to 30. A longer search counts one more lookup for each further 30 searches, and a search that never finds anything counts once at 30. The Autocomplete tab shows how many of the month's 500 are used.

= Can I turn address suggestions off again? =
Yes. Click Turn off on the Autocomplete tab, and our service removes this site's registration and email address. Deleting the plugin also clears them from your site.

= What about privacy? =
The checkout sets no cookies, and WooCommerce saves orders as usual. With address suggestions off, nothing leaves your site. With them on, shoppers' browsers send address searches to our service (see External services); mention it in your shop's privacy policy.

= Where do I get help? =
In the [support forum](https://wordpress.org/support/plugin/trafficflow-onepagecheckout/). We answer there.

= How do I report a security issue? =
Privately, by email to support@onepagecheckout.pro, not in the public forum.

= Where is the source code of the block checkout script? =
In the plugin folder. `assets/js/blocks/index.js` is built from the readable source in `src/` with `@wordpress/scripts` and the `webpack.config.js` next to it. To rebuild it, run `npm install` and then `npm run build` in the plugin folder (Node.js 20 or later). All other scripts and styles ship unminified.

== Screenshots ==

1. The whole checkout on one page, with the summary always beside it.
2. The cart lives in the summary: quantities, removals and coupon chips.
3. Your shop keeps its theme; the checkout drops the menus and footer.
4. Selling points in the header, a secure-checkout badge and a trust row under Pay now.
5. On phones, the summary folds into one bar above the form.
6. The same design on the WooCommerce block checkout.
7. The order confirmation page, with your own help contact.
8. Logo, accent color and button shape, with a live preview.
9. Selling points, trust row and pay-button text, no code.
10. All checkout options on one settings page, with the live preview beside them.
11. Free address suggestions: 500 addresses a month, on with one click.
12. Pro: hosted address suggestions for up to 100,000 addresses a month.

== External services ==

**OnePageCheckout address service** (`wp.geo.onepagecheckout.pro`, `onepagecheckout.pro`), run by TrafficFlow GmbH, the maker of this plugin. Only after an administrator clicks Turn on (Autocomplete tab): your server registers the site (site URL, install ID, notice email, consent) and reads the monthly lookup count; at checkout, the shopper's browser sends the typed address text, the country and its IP address. Typed text is never stored. [Terms](https://onepagecheckout.pro/terms/) · [Privacy](https://onepagecheckout.pro/privacy/)

== Changelog ==

= 4.3.0 =
* New: free address suggestions. Click Turn on (Autocomplete tab) and customers get address suggestions as they type: 500 lookups a month. Nothing contacts our service before that click.
* New: this month's lookups as a bar on the Autocomplete tab and in the sidebar, and one dismissible notice when the month's lookups are used up.
* Changed: your own Google Places key now works in OnePageCheckout Pro only. If your checkout used one, turn on the free suggestions to keep them; the key stays saved.

= 4.2.0 =
* Fix: with "log in during checkout" on, guest checkout could fail on some themes, and logging in at checkout did not work. The login box is now its own form above the checkout.
* Fix: block checkout, a tap on a shipping option right after an address field now selects it.
* Fix: on shops under several domains, the header logo links to the domain the customer is on.
* New: the order total with its tax note right above the pay button, on by default (also after this update).
* New: the coupon field between items and totals, behind a "Redeem a coupon code" link on new installs (updated shops keep it open); applied coupons as removable chips.
* New: optional unit prices, a clearer summary bar on phones, three section-heading styles.
* New: header promises on phones and a switch for the "Secure checkout" badge (Content tab).
* Checkout fields from other plugins render as declared.
* Classic checkout: errors right under the field; a missing delivery address is filled from the saved billing address.
* Address autocomplete: a magnifier in the street field while suggestions are available; with your own Google key, suggestions come in your site's language.
* The "+ Add company name" links read naturally in every language.
* For developers: new filters for the footer links, the shipping list, the total row, company and VAT behind one toggle, the prefill and the autocomplete icon; `opcw_footnav_links` now also works on the block checkout.

= Earlier versions =
* 4.1.0: new name and folder; coming from the 4.0 download, activate this plugin, then delete the old one (settings stay). 4.0.0: the free edition. 1.0 to 3.0.6: released on onepagecheckout.pro.

== Upgrade Notice ==

= 4.3.0 =
Using your own Google key for address suggestions? It now needs OnePageCheckout Pro. To keep suggestions for free, click Turn on (Autocomplete tab): 500 lookups a month.
