=== Factorize Schema ===
Contributors: webyoungstown
Tags: schema, structured data, json-ld, woocommerce, open graph
Requires at least: 6.2
Tested up to: 7.1
Stable tag: 1.1.2
Requires PHP: 7.4
License: Factorize License (proprietary)
License URI: https://factorize.webyoungstown.com/license/

Prices, stock, stars and answers in search results, and a proper preview when a link is shared.

== Description ==

Factorize Schema prints structured data (JSON-LD) and sharing tags built from your live store data.

= What it prints =

* **Organization and WebSite** on every page, with your logo, social links, phone and the search box Google can show.
* **LocalBusiness** with address and opening hours (optional, off until you fill it in).
* **Product** on every product page, in place of WooCommerce's thinner one: all pictures, brand (a Brands term, a Brand attribute or your default), barcode as gtin (or mpn), condition (from a Condition attribute, the Essentials condition note or your default), shipping details and return policy from Settings, the sale end date, backorder availability, and stars and reviews only when the product has reviews.
* **Breadcrumbs** on products, categories, pages and posts, in place of WooCommerce's.
* **FAQ** from a Questions and answers box on any page, post or product, plus an optional store-wide FAQ for shipping, returns and pickup. The questions are shown on the page, which Google requires.
* **Open Graph and Twitter tags on all pages.** Products add og:price:amount, og:price:currency and product:availability, so Pinterest Rich Pins work.

The price and stock printed are the ones on the page: they come from the same WooCommerce functions the page uses. It never prints a price or stock that differs.

= Check a page =

Type the address of a page of your own site. The tool lists the structured data it prints and which properties Google asks for are there or missing, flags a type printed twice, and compares the price in the data with the price on the page. The lists are written into the plugin; nothing leaves your site.

= Steps aside =

When Yoast SEO, Rank Math, All in One SEO, SEOPress or The SEO Framework is active, Factorize Schema prints nothing and leaves WooCommerce's own data in place. A setting turns this off.

= Fast =

No remote call on a page view, no scheduled task. The business part is built once and kept until you change a setting. Product data is cached on the product, keyed on its modified date, stock, price and rating, so a product page adds no database query once cached. Admin scripts load only on the plugin's own screen and the edit screens.

== Installation ==

1. Upload the folder to wp-content/plugins and activate it.
2. Open Factorize → Schema and fill in Your business, Shipping and Returns.
3. Open Check a page and test /shop/ and a product.

== Frequently Asked Questions ==

= Does it need a license? =
No. It works with no license and makes no outside calls.

= Does it work with Factorize SEO? =
Yes. Factorize SEO prints titles and descriptions; this plugin prints the data and the sharing tags, and Factorize SEO then leaves the sharing tags to it.

= What happens to my questions and answers if I remove the plugin? =
They stay in your database (post field _fzsch_faq). Settings and caches are removed.

== Changelog ==

= 1.1.1 =
* Two small hooks for the new SEO plugins: a filter on the business nodes (Factorize Local adds opening hours, geo and a map link) and functions to read and write the store-wide FAQ (Factorize Answers). Nothing changes on its own.

= 1.1.0 =
* New: breadcrumb markup that matches the breadcrumb the page shows (products, categories and guides use WooCommerce's own list; pages with none get none); a sharing picture at least 1200 px wide with its width and height; both are settings, on by default.

= 1.0.0 =
* First release: Organization, WebSite, LocalBusiness, Product, breadcrumbs, FAQ, Open Graph and Twitter tags, Check a page.
