=== OrderRing Lite ===
Contributors: alextechgamer
Tags: woocommerce, sms, twilio, pickup, notifications
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
WC requires at least: 7.0

Ready-for-pickup SMS for WooCommerce via your own Twilio account. Consent-aware. You pay Twilio directly, zero markup.

== Description ==

OrderRing Lite texts customers when an order is ready for pickup, using **your** Twilio account.

* Send SMS from the order screen
* Auto SMS when an order enters **Ready for Pickup** (or any status you map)
* Checkout consent checkbox (classic + block checkout)
* STOP / HELP / START keyword handling
* Optional Local Pickup filter
* Compatible with WooCommerce HPOS

**Bring your own Twilio account.** The plugin does not sell or provide messaging services. Message costs are billed by Twilio to you — OrderRing adds zero markup.

Twilio and all related logos are trademarks of Twilio Inc. or its affiliates. OrderRing is not affiliated with, endorsed, or sponsored by Twilio Inc.

A paid **OrderRing** plugin (voice, WhatsApp, two-way chat, bulk reminders) is sold separately at https://tillpress.com/orderring/. It is a different plugin. This Lite plugin is complete and is never locked.

== External services ==

This plugin connects to **Twilio**, a third-party SMS/messaging provider, using the Twilio account credentials **you** configure on the settings screen (or in `wp-config.php`). Twilio is required for the plugin's core function: sending and receiving order text messages. The plugin does not resell or provide messaging itself — you contract with Twilio directly and Twilio bills you.

What is sent, and when:

* **When you (or the "Ready for Pickup" automation) send an SMS:** the plugin calls the Twilio REST API (`https://api.twilio.com`) with your Account SID and Auth Token, the destination phone number, your Twilio "from" number, and the message body (which may include the customer's first name, order number, order total, and tracking number from the merge tags you configure).
* **When you use "Test connection":** the plugin makes a read-only call to the Twilio API to confirm your credentials are valid.
* **When a customer replies (STOP/HELP/START or any inbound text) or Twilio reports delivery status:** Twilio calls this site's webhook URLs. The plugin verifies Twilio's request signature and stores the message/status in your own database. No customer data is sent out in this direction — it is received from Twilio.

No data is sent to Twilio unless you have entered Twilio credentials and either send a message or receive one. This plugin sends no data to the plugin author or any other third party — there is no license check, telemetry, or phone-home.

Twilio's terms and privacy policy:

* Terms of Service: https://www.twilio.com/legal/tos
* Privacy Policy: https://www.twilio.com/legal/privacy

== Installation ==

1. Upload the `orderring-lite` folder to `/wp-content/plugins/`
2. Activate through the Plugins menu (WooCommerce must be active)
3. Open **OrderRing Lite** and enter your Twilio Account SID, Auth Token, and From Number
4. Map Ready for Pickup (the plugin registers that status by default)
5. In the Twilio Console, set the Incoming SMS webhook to the URL shown on the settings screen

== Frequently Asked Questions ==

= Do I need a Twilio account? =
Yes. You provide Account SID, Auth Token, and From Number. You pay Twilio directly.

= Do I need A2P 10DLC? =
If you text US mobile numbers, carriers require A2P 10DLC (or a verified toll-free number). Register that in the Twilio Console. This plugin does not file it for you.

= Is there a license key or trial? =
No. Every feature listed above works without a key, trial, or phone-home to the author.

= What if I also install OrderRing (the paid plugin)? =
Lite steps aside so you do not send duplicate SMS. You can deactivate Lite.

= Can I set credentials in wp-config.php? =
Yes. Define `ORLT_ACCOUNT_SID`, `ORLT_AUTH_TOKEN`, and/or `ORLT_FROM_NUMBER` (the older `ORL_` names still work).

== Changelog ==





= 1.0.5 =
* Prefix all functions, options, hooks, roles, custom tables, and script/style handles with the distinct "orlt" prefix (wp.org 4-character prefix guideline). Existing settings, opt-out lists, and message logs migrate automatically on update.
* REST webhook routes now verify the Twilio request signature in a permission_callback (the in-handler signature check is kept as defense in depth).
* Document the Twilio third-party service under "External services" (what data is sent, when, and links to Twilio's terms and privacy policy).
* Point Plugin URI / Author URI / paid-plugin link at the current tillpress.com pages.
= 1.0.4 =
* Normalize mixed CRLF/LF line endings in the main plugin file (Plugin Check Internal.LineEndings.Mixed)
= 1.0.3 =
* Tested up to WordPress 7.1 (Plugin Check outdated_tested_upto_header)
* Plugin URI now points at the Lite landing page
* Author set to AlexTechGamer / alextechgamer.com
= 1.0.2 =
* Use $wpdb->prepare() %i for table names (Plugin Check InterpolatedNotPrepared)
* Requires WordPress 6.2+ (%i identifiers)
= 1.0.1 =
* Plugin Check: translators comment, TwiML escaping, drop unused logger queries
* readme: Tested up to 7.0
* Restore failed-SMS order notes; stop calling a missing Shipped helper

= 1.0.0 =
* First public release: Ready-for-pickup SMS, checkout consent, STOP/HELP/START
