=== Frebix Panel ===
Contributors: frebix
Tags: woocommerce dashboard, measurements, size chart, currency switcher
Requires at least: 6.0
Tested up to: 7.1
Stable tag: 2.0.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Modern WooCommerce admin panel with built-in store modules you switch on per store.

== Description ==

Frebix Panel replaces the default WooCommerce admin with one calm, modern
look: a home page with your numbers, and orders, products and customers you
can work through quickly, on a computer or a phone. WordPress's own screens
(plugins, posts, pages, users, settings, themes, categories) get the same look.

It also adds optional store modules:

* Measurements: collect and save customer body measurements for made-to-measure clothing.
* Size Chart: attach size charts to products or categories.
* Currency Switcher: show prices in the visitor's currency while checkout charges in the store currency.
* Admin tools: role classes, admin CSS, comments off, admin bar clean-up, duplicate posts, AVIF images, log in as a user, free shipping wording.

Turn modules on or off under WooCommerce > Settings > Frebix Panel > Modules.

Add-ons (licensed, each under Settings > Frebix Panel > Add-ons): Suppliers,
Customer Insights, Layouts and Returns.

= Https redirect =

When the site address is https, plain-http storefront visits are sent to https
with a 301, so a page cache never saves a copy whose scripts browsers block.
A request that still looks like http right after being redirected (a proxy that
ends https and does not say so) is served as it is instead of being redirected
again, and a line is written to the PHP error log. To switch the redirect off,
add `define( 'FREBIX_FORCE_HTTPS', false );` to wp-config.php, or return false
from the `frebix_force_https` filter.

== External services ==

Frebix Panel works on your own server. It contacts these outside services:

* **Frebix update server (serve.frebix.com)**: checks for and downloads Frebix Panel updates. Sends the site address, WordPress, PHP and plugin versions and the site's Frebix key. https://frebix.com
* **open.er-api.com (ExchangeRate-API)**: the Currency Switcher module fetches daily exchange rates for your store currency (no visitor data is sent). Rates by Exchange Rate API, https://www.exchangerate-api.com, terms: https://www.exchangerate-api.com/terms
* **Browser push services** (Google, Mozilla, Apple, Microsoft): new-order push notifications to your own devices go to the push service of the browser you subscribed with. Keys are created on your site.
* **WooCommerce geolocation**: only when the Currency Switcher's "Choose by country" is on and Cloudflare does not already give the visitor's country. It uses WooCommerce's own geolocation (its MaxMind database when set up); see WooCommerce's documentation for what that sends.
* **Google Fonts (fonts.googleapis.com, fonts.gstatic.com)**: only when you pick a Google font under Appearance. The admin and login pages then load it from Google, which receives the admin's IP address. The default system font loads nothing.

Visitor countries for the dashboard are looked up in a list that ships with the plugin; no visitor address leaves your server.

== Credits ==

Frebix Panel is a fork of BrikPanel 3.3.40 by Brksoft (https://brksoft.com),
licensed GPL-2.0-or-later. Upstream history is in changelog.txt. Brksoft's
deactivation survey, newsletter sign-up, review requests and BrikMentor promotions
have been removed. The full licence is in LICENSE.

Third-party data and code (full notices in THIRD-PARTY-NOTICES.txt):

* IP to country data: IP to Country Lite by DB-IP (https://db-ip.com), licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).
* Region and country names and shapes: Natural Earth (https://www.naturalearthdata.com, public domain) and GeoNames (https://www.geonames.org, CC BY 4.0).
* Chart.js (MIT), flatpickr (MIT), canvas-confetti (ISC), cobe (MIT), Font Awesome Free icons (CC BY 4.0), Caveat font (SIL OFL 1.1).

== Upgrade Notice ==

= 2.0.0 =
A new look and new names inside. Your settings, orders data and history are copied over on the first load and the old copies are kept. Suppliers and Customer Insights are now add-ons; Google Sheets and Ad Platforms are paused. New Staff access: sensitive areas are closed to staff unless you open them; on an existing store nothing changes for staff until you choose on Home. Back up first.

== Changelog ==




= 2.0.7 =
* New Frebix logo in the footer, signature and WordPress menu icon.

= 2.0.6 =
* The Frebix page in your dashboard is now a home for your plugins: what needs you, which plugins have updates, and each plugin's state.

= 2.0.5 =
* Security: staff whose access closes Profit or Expenses no longer get those figures from the store summary or product costs; the signup popup no longer hands an existing code to someone else.

= 2.0.4 =
* A clearer More menu on computers: every page in plain groups (Store, Content, Site, Frebix), each with its icon and a line about it, its own pages as small links instead of fly-outs, search and your recent pages on top, and Store, Panel and WordPress settings named apart at the bottom.

= 2.0.3 =
* The order summary above the Orders list (counts, revenue and the small trend lines) also works on SQLite, and puts each order in the right hour or day across a daylight-saving change.

= 2.0.2 =
* The sales chart on Home also works where WordPress runs on SQLite (WordPress Playground, used for the live demo on frebix.com). Same figures as before everywhere else.
* Panel is now a free download from frebix.com; updates no longer need a site key.

= 2.0.1 =
* Pages opened before the 2.0 update (an open tab, a phone's in-app browser) keep counting visits: their old request names now reach the new handlers instead of being refused.

= 2.0.0 =
* Staff access (Settings > Frebix Panel > Staff access): store settings, payments, Panel settings, profit and costs, expenses, users, exports, plugins and themes, tools and store health stay with administrators until you open them for store managers, editors, other staff roles or one person. Closed areas simply are not there for staff: no menu row, button or link, and a typed address lands on the Dashboard. Existing stores keep what staff had until an administrator chooses on Home.
* New look everywhere: the home page, orders, products and customers in one calm style, light or dark, with your accent colour; a top menu, search or jump to (Ctrl/Cmd+K) and a cleaner order bell.
* WordPress's own screens in the same look: Plugins (grouped by what each plugin does, switches, a folded "Turned off" box), Posts, Pages, Media, Users, Comments, Reviews, other plugins' lists, Profile, Add user, Themes, categories and tags, and the settings pages (cards, plain labels, a save bar).
* Add-ons, each with a slide-in under Settings > Frebix Panel > Add-ons instead of a page of its own: Suppliers and Customer Insights move out of Panel into add-ons; new Layouts (arrange any screen, download and bring in layouts) and Returns (customer returns and refunds under Orders).
* From BrikPanel 3.3.41–3.3.52: print an order summary, Month to date on the dashboard with a date button, one Locations card with a map for any country, Sort for stores that list newest first, a phone keeps a product you have not saved, a box that explains a page that is stuck, signup code rules (one code per email, new customers only, minimum spend), long customer names that give way, numbers on closed menu rows, and a newer visitor country list.
* New names inside (frebix_panel_ instead of brikpanel_): on the first load your settings, data and scheduled jobs are copied to the new names and the old ones are kept, so nothing is lost and going back to 1.x still works. Old hooks keep working.
* Classic look, BrikMarket and BrikMentor parts removed. Google Sheets and Ad Platforms are paused until they have their own connection service.


= 1.2.6 =
* New look (Frebix): white sidebar with your store's logo or initial, a greeting and one figure strip on the dashboard, plain summaries, flat cards and status dots. Appearance → Look → Classic brings back the previous look.
* Measurements module 2.1.0: unit switch, saved measurement sets, server-side checks, accessible panel, privacy export/erase (see Frebix Measurements 2.1.0).
* Google Sheets and Ad Platforms: off on new installs, with a plain notice that connecting goes through Brksoft's server. Connected sites keep working and get a one-click Disconnect.
* Currency Switcher: My Account and order pages keep the amounts charged; "$" no longer stands for several currencies; prices after a symbol with a dot ("Rs.") are read correctly; screen-reader prices follow the chosen currency.
* Https redirect: can be switched off (FREBIX_FORCE_HTTPS or the frebix_force_https filter) and no longer loops behind a proxy that hides https.
* Other plugins' notices are no longer hidden unless you switch that on; WordPress's own notices are never hidden.
* Live visitors: one database row per visitor instead of one shared cache entry, pings sent with sendBeacon, and off on new installs.
* Email popup coupons: only for emails with no orders, one code per email, a daily limit (50 by default) and not combinable with other coupons. New codes start with WELCOME instead of BRIK.
* AVIF images: email, feed and main images stay JPEG/PNG.
* Smaller fixes: safe sign-in redirects, settings import/export follows the admins-only lock, product copy checks the product, Buy Now waits for options and works with AJAX themes, free shipping wording only on free delivery, Log in as history and switch-back, faster size charts.
* New order chime made for Frebix Panel; licence file and third-party notices added.

= 1.2.5 =
* Measurements: browsers and caches now fetch the updated measurement scripts and styles.

= 1.2.4 =
* Measurements: guest orders keep their measurements, an expired page no longer blocks saving, the button shows on simple products, required fields are checked, each line shows its measurements once, and order emails show them as plain text.

= 1.2.3 =
* Updates now come from Frebix (serve.frebix.com).

= 1.2.2 =
* Plain-http visits now go to https, so a page cache can no longer save a copy whose scripts browsers block (mini cart not counting).
* The page cache (SpeedyCache) is cleared after a plugin or theme is installed, updated or switched.

= 1.2.1 =
* Currency Switcher: new toggle style that shows every currency side by side, the chosen one on a dark background. Automatic for stores with up to three currencies; choose it under Switcher style.

= 1.2.0 =
* New Buy Now module: adds the item and goes straight to checkout.

= 1.1.0 =
* New Admin tools module, replacing WP Switchboard's admin and media utilities. Imports Switchboard's admin CSS, admin bar choices, duplicate post types and free shipping wording on first use.

= 1.0.2 =
* Currency Switcher: show the store-currency note on block cart and checkout pages.

= 1.0.1 =
* Currency Switcher: also convert prices that themes print without wc_price().

= 1.0.0 =
* Forked from BrikPanel 3.3.40 and rebranded as Frebix Panel.
* Removed calls home to brksoft.com (exit survey, early access, review notices, BrikMentor, survey card).
* New Modules settings: switch store features on per site; every module starts off.
* Measurements module, from Frebix Measurements 2.0.0 (same data, no migration).
* Size Chart module, reading WPC Product Size Chart's charts and product settings directly.
* Currency Switcher module: display-only conversion that stays correct behind page caches; checkout always charges in the store currency. Imports currencies from FOX on first run.
