Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/hozt/lean-schema-wc/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Lightweight, complete JSON-LD structured data for WooCommerce. One PHP file, no front-end CSS or JS, no database tables.
It replaces WooCommerce's built-in structured data with fuller markup aimed at Google product rich results and merchant listings, so nothing is duplicated.
Author: Jeffrey Haug · License: GPL-2.0-or-later · Requires: WordPress 6.0+, WooCommerce 7.0+, PHP 7.4+
What it outputs
- Product: name, description, images (main + gallery), SKU, GTIN, MPN, brand (with URL), category
- Variable products:
ProductGroupwithhasVariantandvariesBy(color, size, material, pattern); other attributes becomeadditionalProperty - Offer: price (matches your shop's tax display), currency, availability incl. backorder, condition, seller
- Sale prices:
StrikethroughPriceandpriceValidUntilfrom the sale end date - Grouped products:
AggregateOffer - Reviews:
AggregateRatingplus recent reviews - Shipping and returns:
OfferShippingDetailsandMerchantReturnPolicy - BreadcrumbList: respects the Yoast / Rank Math primary category, skips "Uncategorized"
- Organization and WebSite on the home page (logo, social profiles, return policy)
Everything goes in a single `