Tosee SMS

By hassanvafaei

0+ active installationsVersion 2.12.12

SMS login, WooCommerce order notifications, and customer account tools.

Description

Tosee SMS adds one-time SMS codes for sign-in. The WooCommerce integration includes customer accounts, checkout and cart recovery, delivery scheduling, order notifications, invoices, shipping labels, and a loyalty program.

The Tosee Form widget works with Elementor Free. It starts with name and mobile fields. Add, remove, and reorder text, mobile, email, or message fields, and style each widget independently. Receive submissions by WordPress email, or configure optional SMS to the visitor and site administrators. Assign the recipient and pattern variables in the widget’s field controls. The existing integration with Elementor Pro’s Forms widget remains available.

SMS login works without WooCommerce. Store features require WooCommerce. SMS sending requires a Kavenegar account, an API key, approved message templates, and SMS credit. The contact form’s email delivery, loyalty, delivery scheduling, and in-account announcements do not depend on an SMS panel or license.

External services

Kavenegar

Kavenegar provides optional SMS and voice verification and transactional template messages. The administrator supplies a Kavenegar API key and approved template names. Sending uses that account’s credit. Enabling local account, delivery, invoice or loyalty features alone does not send SMS.

When a visitor requests an SMS/voice code, an administrator runs a test, or an enabled order, delivery, stock, form or cart-recovery rule processes its queue, the server sends the API key, recipient telephone number, template name, mapped token values and the SMS/voice channel to https://api.kavenegar.com/v1/ through HTTPS. Tokens may contain a code, customer name, order number, amount, delivery information or a site link, depending on the configured mapping. Delivery polling sends the API key and provider message IDs to the SMS status endpoint. Kavenegar receives the website server’s IP address as part of the connection; this is not the visitor’s browser IP.

  • Service: https://kavenegar.com/
  • API documentation: https://kavenegar.com/rest.html
  • Provider contact: https://kavenegar.com/support/contact
  • Kavenegar Terms of Service: On the public signup page, click the text «قوانین را خوانده و می‌پذیرم» next to the checkbox (above the signup button) to open «شرایط استفاده از خدمات» (Terms of Service). You can read the terms without creating an account or accepting them.
  • Kavenegar privacy information: The same official terms include a limited notice on how Kavenegar uses the identity documents it collects to establish account and line ownership. We could not verify a separate public Kavenegar privacy policy covering SMS and voice recipients, message data, or delivery reports. For questions about that processing, contact Kavenegar support.
  • Tosee Privacy Policy: Section 4 explains the plugin’s SMS data flows and the roles of the site operator, Tosee, and the SMS provider. This is Tosee’s own policy.

OpenStreetMap Foundation

The optional address picker and administrator order-location map load tiles from https://tile.openstreetmap.org/. Requests happen when a map is opened/loaded and when its displayed area or zoom changes. The tile provider receives the browser IP address, requested tile coordinates, user agent and referrer subject to the browser’s referrer policy. The plugin does not include the customer’s name, phone or typed postal address in tile requests. Place search uses the bundled Iranian city data locally; it does not call an external geocoding service. Device location is requested only after the user presses the location button and grants browser permission. Selected coordinates are saved on the store’s own site. Manual address entry is available.

  • Terms: https://osmfoundation.org/wiki/Terms_of_Use
  • Tile usage policy: https://operations.osmfoundation.org/policies/tiles/
  • Privacy: https://osmfoundation.org/wiki/Privacy_Policy

Developers can replace the tile URL with the tosee_address_tile_url filter. The site operator must document the replacement provider’s data handling and policies. Administrator-configured external image URLs can also cause browser requests to that image host; use locally uploaded images to avoid that dependency. Links to the Tosee website or panel are ordinary navigation links, not background API calls.

Source Code

The PHP files and the readable, non-minified JavaScript and CSS in assets/ are the editable source used directly by the plugin. No first-party compilation, bundling, npm installation or build step is required to run or modify this release. Edit these files directly and increment the plugin version to invalidate asset caches. There is no separately generated first-party JavaScript bundle. See docs/SOURCE.md for third-party source and license information.

Privacy

  • Verified phone numbers, events, and the SMS queue are stored to support enabled features. Log retention is configurable. The API key is encrypted using WordPress salts and must be entered again if the salts change.
  • Customer accounts can store national ID, buyer type, and company details. Personal data exports include account data and custom order fields. Erasure removes account data and feedback while preserving financial records and information needed for returns. Refund bank details are encrypted with AES-GCM using WordPress keys and are never included in SMS messages.
  • Account data may include in-site announcements, survey responses, legacy SMS consent preferences, favorites, recently viewed products, and deletion requests. Administrator announcements appear in the account inbox. Review request links use an expiring signature.
  • Purchase funnel analytics are off by default. When an administrator enables them, collection starts without a visitor prompt. Do Not Track and legacy preferences do not block collection. A signed random identifier is stored in a one-day cookie. Funnel summaries contain no raw IP addresses or contact information. Earlier visits are not reconstructed. Browser analytics can miss visits or include unidentified bots.
  • Guest checkout tracking is active only when cart recovery is enabled. Product, cart, and checkout events are linked using an HMAC of the WooCommerce session identifier. Raw IP addresses and visitor names are not stored. A phone number entered at checkout may be retained to send a reminder to that number. Session data follows the configured log retention period. An order stops reminders for the same session.
  • Leads are stored only for configured forms. Records contain name, phone number, page path without query parameters, and an internal note. Retention is 30, 90, or 180 days, with 90 days as the default. Cleanup runs in batches. Administrators can delete individual leads. Guest leads are not linked to email addresses. No lead data is sent to an external analytics service. Order attribution uses WooCommerce data and is subject to its separate consent settings.
  • The Tosee Form widget sends submitted field values to the configured email address through WordPress mail when email is enabled. When SMS is enabled, only mapped values are included in the SMS queue. The widget does not create a separate permanent submissions database. An IP-derived rate limit and a temporary submission hash help reduce spam and repeated messages.

Integrations

  • Tax invoice integrations generate the official invoice and can provide its order URL through the tosee_sms_official_invoice_url filter.
  • Shipping integrations can add tracking numbers and links through the tosee_sms_account_order_tracking filter.

Licenses

See LICENSE.txt for the plugin license. Leaflet and city data licenses are included in assets/vendor.

Installation

  1. Go to Plugins > Add New Plugin > Upload Plugin, select the ZIP, and activate Tosee SMS.
  2. Open the Tosee menu and configure the features you need. Each settings page has its own help button.
  3. Enter your Kavenegar API key and approved template, then send a test message. Test messages use SMS credit.
  4. Use [tosee_login] for the login form or [tosee_login_button] for the login button.
  5. To create a contact form, add the “فرم طوسی” widget in Elementor. Set the email destination or enable optional SMS and select field mappings, then publish the page. The Elementor editing preview does not send form submissions.

To upgrade manually, replace the previous version. Activate the plugin on each site individually. The loading animation respects the device’s reduced-motion preference.

Changelog

2.12.12

  • Display Jalali dates on WooCommerce order, refund, product, coupon and customer date properties without inspecting the PHP call stack. Standalone date objects created by other extensions use native WooCommerce formatting.
  • Preserve Gregorian timestamps and timezone offsets in ISO output, including stores configured with a numeric UTC offset.
  • Updated the review notes and removed superseded scan reports and reviewer correspondence from the distribution.

2.12.11

  • Fixed numeric UTC offset handling (e.g. UTC+03:30) in the Jalali wc_format_datetime() formatter so both local times and ISO offsets render accurately.
  • Fixed shipping-tax-only refund accounting in loyalty order reconciliation under HPOS and SQLite so excluded shipping tax refunds do not deduct customer points.

2.12.10

  • Restored exact wc_format_datetime() caller scoping in the Jalali calendar adapter so explicit order date formats convert accurately while standard WordPress and ISO dates remain untouched.

2.12.9

  • Scoped the WooCommerce Jalali date_i18n formatter strictly to WooCommerce date/time display formats so standard WordPress and ISO dates on account pages remain untouched.

2.12.8

  • Fixed a double timezone offset in the Jalali date_i18n formatter for WooCommerce order times.
  • Removed the built-in diagnostics UI, unused storage-health utility, and production debug_backtrace() calls.
  • Separated remaining compound nonce and capability checks and added nonce verification for loyalty views and product point estimates.
  • Documented remaining transactional custom-table and bounded meta queries for Plugin Check compliance.

2.12.7

  • Validate public loyalty estimates, document authorization, shipping selection and request origins.
  • Remove the global PHP warning handler and clarify external service data flows.

2.12.6

  • Show a session-bound payment result after supported gateway returns, with same-order payment actions when available.

2.12.5

  • Replace the first-order exclusion query with a bounded two-ID lookup through WooCommerce.
  • Skip unused total-count queries when checking legacy phone ownership and listing deletion requests.
  • Document remaining Plugin Check warnings without adding suppressions.

2.12.4

  • Refined the mobile layout for the checkout, cart page, and header mini-cart.

2.12.2

  • Sanitize delivery request fields and failed drafts; namespace temporary delivery notices.
  • Harden coin icon CSS output and limit setup conflict notices to the plugin screen.
  • Distribute readable first-party JavaScript source and expand external service documentation.

2.12.1

  • Fix delivery pickup fields, unavailable-rate fallback, capacity overview, loyalty refund allocation and review credit restoration.
  • Exclude external and grouped parents from stock subscriptions.

2.12.0

  • Added the independently styled Tosee Form widget for Elementor Free, with editable fields, email delivery and optional customer and administrator SMS.
  • Iranian mobile inputs accept local or international format, with or without a leading zero.
  • Kept store features in one plugin distribution without purchase or license gates.

2.11.26

  • Cleaned up unused delivery code and settings left over from removed features. Existing order history is preserved.

2.11.25

  • Added independent controls for return requests, shipment tracking, account deletion requests, and their SMS notifications.
  • Simplified in-store pickup, retired custom delivery methods, and removed the duplicate payment settings page.
  • Kept legal buyer fields available and used the signup email preference for signed-in SMS customers on classic checkout.

2.11.24

  • Initial WordPress.org release.

2.11.23

  • Prefixed local template variables and documented shared WordPress and WooCommerce identifiers.

2.11.22

  • Hardened form validation and nonce verification and corrected the tested WordPress series.

2.11.21

  • Added safe removal of loyalty rules, missions, and rewards from the admin list.
  • Fixed address map initialization when address controls are missing or filtered.

2.11.20

  • Removed the built-in update service and the code that automatically enrolled the plugin in updates.
  • Loaded invoice and cart recovery styles through the WordPress stylesheet API.
  • Simplified the loyalty storage exception to avoid a static analysis parser error.
  • Translated the readme and added the tested WordPress version.

2.11.19

  • Updated output escaping and SQL placeholders while preserving form controls and transaction behavior.

2.11.18

  • Improved request validation, output escaping, and prepared queries.

2.11.17

  • Converted additional database queries to prepared placeholders and escaped more output values.

2.11.16

  • Improved error report queries and escaping in invoices and shipping labels.

2.11.15

  • Added province, city, address, and postal code to business profiles and used the business address on invoices.

2.11.14

  • Removed the fallback print button when invoicing is disabled.
  • Added live previews, three layouts each for invoices and shipping labels, independent label settings, and stamp and signature uploads.

2.11.13

  • Combined SMS examples and variable guidance, with compatible choices and clearer errors.

2.11.12

  • Combined the login template example, preview, and iPhone code suggestion guidance.

2.11.11

  • Removed the dark account menu option and its preview. The account uses shared design settings.
  • Improved keyboard suggestions for SMS codes.

2.11.10

  • Unified dashboard headers and tabs.
  • Added a configurable loyalty program name and a default coin icon.

2.11.9

  • Prevented update prompts for an already installed version.

2.11.8

  • Removed SMS delivery and the subscription setting for general account announcements. In-account announcements and transactional SMS remained available.
  • Matched the dark account menu with its live preview.

2.11.7

  • Added signed invoice links valid for seven days and preserved previously valid links.
  • Avoided failed send records for forms without a customer phone number and corrected administrator message configuration.
  • Allowed read-only dashboard panels before a successful SMS test while retaining access checks.
  • Included delivery and order item tables in the database engine inspection and conversion tool. Conversion requires administrator approval.
  • Removed unused branch code, the old refund bank form, and legacy order events.