=== TrustPerks - USPs for WooCommerce ===
Contributors: anna_werner, conschneider
Tags: woocommerce, usp, unique selling proposition, product page, trust
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display unique selling propositions (USPs) on your WooCommerce product pages – globally, per category, or per product. Lightweight, zero icon fonts.

== Description ==

Give your customers compelling reasons to buy right where the decision happens – on the product page. TrustPerks - USPs for WooCommerce lets you show short, icon-led selling points like "Free shipping from 50 €", "30-day returns" or "Secure checkout".

**Lightweight by design.** Unlike its predecessor (Woo USP), this plugin loads **no icon fonts at all**. Icons are inlined as tiny SVGs, and the only frontend asset is a ~0.5 KB stylesheet that is loaded exclusively on pages where USPs are actually displayed. Nothing else. No Font Awesome, no Linearicons, no Linecons.

**Features**

* Unlimited USPs with a curated set of crisp SVG icons.
* Drag & drop sorting of your USPs.
* Choose where the USPs appear on the product page (below title, price, short description, add-to-cart button, or product meta).
* Override USPs per product category.
* Override USPs per individual product.
* Customizable icon color.
* "Product USPs" block for the block editor.
* `[trustperks_usps]` shortcode for any page or template.
* Automatic one-click-free migration of existing Woo USP data (settings, per-product USPs, and a smart icon-font-to-SVG mapping).
* Compatible with WooCommerce High-Performance Order Storage (HPOS).

**Upgrading from Woo USP?**

Simply install and activate this plugin. Your global USPs, icon color, and per-product USPs are picked up automatically; legacy icon-font choices are mapped to the closest SVG icon. If you placed the old `[woousp]` shortcode in any page or template, replace it with `[trustperks_usps]`. Once you have verified everything looks right, you can deactivate and delete Woo USP.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/trustperks-usps-for-woocommerce`, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the "Plugins" screen.
3. Configure your USPs under Settings → Product USPs.
4. Optionally override USPs on any product edit screen or product category edit screen.

== Frequently Asked Questions ==

= Where are the USPs shown? =

By default below the "Add to cart" button on single product pages. You can change the position under Settings → Product USPs, or disable automatic insertion and place them manually with the block or shortcode.

= The USPs do not appear on my product page. Why? =

If your theme is a block theme that builds the product page from individual blocks, the classic WooCommerce hook this plugin uses may not run. Add the "Product USPs" block (or the `[trustperks_usps]` shortcode) to your single product template instead.

= Can I show different USPs per product or category? =

Yes. Product-specific USPs (product edit screen) win over category USPs (product category edit screen), which win over the global USPs.

= How do I change the order of my USPs? =

Drag the handle at the left of each row – on the settings page, on products, and on categories.

= Which icons are available? =

A curated set of 29 SVG icons (checkmarks, truck, package, shield, lock, credit card, returns, clock, phone, chat, star, heart, gift, and more). Developers can add their own via the `trustperks_icons` filter.

= Does this plugin slow down my shop? =

No. It loads a single ~0.5 KB stylesheet, and only on pages that actually render USPs. Icons are inline SVG – there are no icon fonts, no extra requests.

= I used Woo USP before. Do I have to reconfigure everything? =

No. On activation the plugin migrates your Woo USP settings and maps your icon-font choices to the new SVG icons. Please review the result under Settings → Product USPs.

== Screenshots ==

1. The settings page with drag & drop USP sorting and the SVG icon picker.
2. USPs displayed below the add-to-cart button on a single product page.
3. Per-product USPs on the product edit screen.
4. Per-category USPs on the category edit screen.

== Changelog ==

= 1.0.0 =
* Initial release. Successor of the "Woo USP" plugin.
* Replaced all icon fonts with inline SVG icons – frontend payload reduced from ~300 KB to ~0.5 KB.
* New: unlimited USPs with drag & drop sorting.
* New: selectable position on the product page.
* New: USPs per product category.
* New: "Product USPs" block for the block editor.
* New: `[trustperks_usps]` shortcode.
* Automatic migration of Woo USP data, including icon mapping.
* Security hardening: capability checks, nonces, escaping throughout.
* Declared compatibility with WooCommerce HPOS.
