=== Gorilla Returns ===
Contributors: gpublic
Donate link: https://gorillapublic.com
Tags: woocommerce, returns, rma, refunds, customer portal
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A self-serve returns portal for WooCommerce. Customers file their own returns, you approve and process them from one admin screen.

== Description ==

Stop handling return requests one email at a time. **Gorilla Returns** gives your customers a self-serve portal where they can file return requests, and gives you a tidy RMA inbox to review and approve them.

Customers visit your `/returns/` page, enter their order number and email, pick which items they want to return, pick a reason, and submit. You get an email and an admin notification. You review the request, approve or reject it, and follow up with shipping instructions by email.

Everything lives in your own WordPress admin — no third-party platform, no monthly SaaS subscription, no data leaving your server.

= What it does =

* **Self-serve customer portal** — Customers file return requests on your own domain, inside your own theme
* **Guest checkout friendly** — Customers identify themselves with an order number and email; no account required
* **Full RMA workflow** — Submitted, approved, rejected, completed statuses with a clean admin inbox
* **Order status gating** — Only orders in statuses you specify are eligible for returns
* **Return window enforcement** — Automatic cutoff after your configured number of days
* **Configurable reasons list** — Edit the dropdown customers pick from, flag any reason as requiring a note
* **Admin notifications** — Menu badge count and top-of-page notice when new returns come in
* **Customer email notifications** — Automatic emails on submission, approval, rejection, and completion
* **Setup wizard** — 4-step guided onboarding on first install
* **HPOS compatible** — Works with WooCommerce's High-Performance Order Storage
* **Works with any theme** — The portal page uses your theme's styling

= What this free version does NOT do =

This free version handles refunds **manually**. You review the return, approve it, follow up with shipping instructions by email, and issue the refund through WooCommerce yourself. For the automated stuff — prepaid USPS labels, variant exchanges, store credit — see **Gorilla Returns Pro**.

= Gorilla Returns Pro =

Need more automation? [Gorilla Returns Pro](https://gorillapublic.com/products/gorilla-returns-portal/) adds:

* **Prepaid USPS return labels** via EasyPost (attached as PNGs to the approval email)
* **Automatic variant exchanges** with reserved replacement orders
* **Store credit** with a configurable bonus multiplier
* **Per-RMA shipping fees** with one-click waiver
* **Editable customer email templates** with placeholder tokens
* **Customer photo uploads** on the return portal
* **Serial-returner blocklist** with flag/review/block modes
* **Analytics dashboard** — return rate by product, resolution split, reason breakdown
* **Email-the-customer** directly from the RMA admin
* **Customer name search** on the RMA list
* **Lookup log** for diagnosing failed returns

Pro is $49/year. [Learn more →](https://gorillapublic.com/products/gorilla-returns-portal/)

= Requirements =

* WordPress 6.0 or later
* WooCommerce 7.0 or later
* PHP 7.4 or later

== Installation ==

1. Install the plugin through the WordPress plugins screen or upload the zip file
2. Activate the plugin
3. The setup wizard will launch — walk through the 4 steps
4. Visit your new `/returns/` page to see the customer portal
5. Tell customers to use it (add a link to your site menu, order confirmation emails, FAQ page)

== Frequently Asked Questions ==

= Does this work with guest checkout? =

Yes. Customers identify themselves with their order number and the email they used at checkout. No account required.

= What does the customer see? =

They visit `/returns/` on your site. They enter their order number and email. They pick which items to return and a reason for each. They submit. They get an email confirming the submission. They wait for you to review it and follow up with shipping instructions.

= How are refunds processed? =

In this free version, you process refunds manually through WooCommerce — the plugin tracks the RMA workflow but doesn't issue refunds automatically. For automated refunds plus prepaid return labels, exchanges, and store credit, upgrade to [Gorilla Returns Pro](https://gorillapublic.com/products/gorilla-returns-portal/).

= Does this work with High-Performance Order Storage (HPOS)? =

Yes. Fully HPOS-compatible.

= Can I customize the customer emails? =

In the free version, the email templates are fixed. Pro has editable subject and body for every email with placeholder tokens like `{customer_name}`, `{rma_token}`, and `{net_refund}`.

= What if I delete the /returns/ page? =

The plugin recreates it silently on the next visit. You can also embed the `[gorilla_returns]` shortcode on any existing page.

= Is this GPL? =

Yes. The code is GPLv2 or later. You're free to modify it for your own site.

= Where do I report bugs or ask questions? =

Use the [WordPress.org support forum](https://wordpress.org/support/plugin/gorilla-returns-lite/) for bug reports and general questions. Pro customers get direct email support at hello@gorillapublic.com.

== Screenshots ==

1. The admin RMA inbox — stats strip at the top (needs your review, in progress, completed, total), filterable list below with search by customer name, email, order number, or RMA token.
2. The customer return portal — step 1 lookup. Customers enter their order number and the email they used at checkout. No account or login required.
3. The admin RMA detail view showing an exchange — items requested, customer info, replacement order link, resolution type, actions. The customer picked "Exchange" and the plugin created a replacement WooCommerce order automatically.
4. The setup wizard final step — six steps, resumable, about five minutes end-to-end from fresh install to a working return portal.

== Changelog ==

= 1.0.2 =
* Fixes applied for the wordpress.org plugin review: status-badge CSS moved from inline <style> output into the enqueued stylesheet; plural string "N requests waiting" converted to use _n() so it translates correctly; portal-controller nonce now goes through sanitize_text_field + wp_unslash before verification; display-only $_GET reads for flash messages tagged with phpcs:ignore comments where appropriate and sanitized through sanitize_text_field; Contributors field in readme corrected to the plugin owner's WordPress.org username.

= 1.0.1 =
* Minor packaging fixes for wordpress.org submission.

= 1.0.0 =
* Initial release of Gorilla Returns (free)
* Self-serve customer portal with 4-step flow
* Admin RMA inbox with submitted/approved/rejected/completed workflow
* Setup wizard
* Order status + return window gating
* Configurable reasons list
* Customer and admin email notifications
* HPOS compatibility

== Upgrade Notice ==

= 1.0.0 =
Initial release.
