WooCommerce order by phone

58,66 лв. / 29,99 

A WooCommerce plugin that allows customers to place orders using only a phone number, simplifying the purchase process.

This site uses the “WooCommerce Orders by Phone Number Only” plugin.




Category:

The WooCommerce Order By Phone plugin enhances WooCommerce by allowing customers to place orders directly from product pages using just their phone number. It adds a simple form with a phone input field and an “Order Now” button to the product summary section, available only for purchasable, in-stock products. Upon submission, the plugin uses AJAX to create an order, either linking it to an existing user (identified by phone number) or creating a new customer account with a generated username (PHONE_ prefix) and a dummy email. Orders are set to “Processing” status, stock levels are reduced, and a new order email is triggered. The plugin tracks order attribution (e.g., direct, organic, referral) based on the referrer or UTM parameters, storing details like source type, referrer, and device type as order meta. It includes a loading spinner, error handling, and nonce verification for security. Compatible with WooCommerce’s High-Performance Order Storage (HPOS), it provides a seamless, user-friendly experience for quick purchases.

Features of WooCommerce order by phone

  • Phone-based ordering: Allows customers to place orders by entering only a phone number on the product page, bypassing traditional checkout.
  • AJAX order processing: Submits orders via AJAX with a loading spinner, providing instant feedback (success or error messages).
  • User management: Links orders to existing users by phone number or creates new customer accounts with a PHONE_ prefix username.
  • Order attribution: Tracks order sources (direct, organic, referral) using referrer or UTM parameters, storing meta data.
  • Stock management: Automatically reduces product stock levels upon order creation.
  • Email notifications: Triggers WooCommerce’s new order email to admins upon successful order placement.
  • Product validation: Ensures orders are only possible for purchasable, in-stock products with sufficient quantity.
  • Secure processing: Implements nonce verification, input sanitization, and permission checks for AJAX requests.
  • HPOS compatibility: Declares compatibility with WooCommerce’s custom order tables for High-Performance Order Storage.
  • Localization support: Uses the ms-woocommerce-byphone text domain for translatable strings.
  • Visual feedback: Includes a CSS-based loading spinner and styled error/success messages for a polished user experience.

Installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Activate the Mobileship WooCommerce Order By Phone plugin through the WordPress admin panel.
  3. Ensure WooCommerce is installed and activated.
  4. The phone order form will automatically appear on single product pages for eligible products (purchasable and in stock).

Usage of WooCommerce order by phone

  • Place an order: On a product page, customers enter their phone number in the provided form and click “Order Now.” The form appears only for purchasable, in-stock products.
  • Order processing: The plugin validates the phone number (minimum 9 digits) and product availability, then creates an order via AJAX. A loading spinner displays during processing, followed by a success or error message.
  • User handling: If the phone number matches an existing user (via meta or PHONE_ username), the order links to that user. Otherwise, a new customer account is created with a dummy email and the phone number stored as meta.
  • Order attribution: The plugin captures the order’s source (e.g., direct, Google organic, referral) based on the referrer or cookies, saving details like referrer URL, UTM source, and device type (default: Mobile) as order meta.
  • Stock and notifications: Stock levels reduce automatically, and a new order email is sent to admins using WooCommerce’s email system.
  • Customize styling: Adjust the form’s appearance by targeting #phone-order-form, #phone-order-loader, or #phone-order-message in your theme’s CSS.

Requirements

  • WordPress 5.0 or higher
  • PHP 7.0 or higher
  • WooCommerce 4.0 or higher
  • Products configured as purchasable and in stock for the form to appear