commit 52e7d416fab1e006f291a4673c6c32af1816d0e6 Author: absoftlabs Date: Thu Jul 24 23:31:58 2025 +0600 track order by order id for woocommerce + wordpress plugin developed completed diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..d2bf87c --- /dev/null +++ b/readme.md @@ -0,0 +1,30 @@ +# đŸ“Ļ Order Tracking by Order Number Only (WooCommerce) + +Easily allow your customers to **track their WooCommerce orders** using only the **Order Number** — no email, login, or account required. + +--- + +## 🔍 Features + +- ✅ Track WooCommerce orders without login or email. +- 🧩 Simple and lightweight — works with a shortcode. +- 🌐 User-friendly interface (includes Bangla labels). +- 📱 WhatsApp support for customization and assistance. + +--- + +## đŸ› ī¸ Installation + +1. Download the plugin `.zip` file. +2. Go to your WordPress Admin Dashboard. +3. Navigate to: `Plugins` → `Add New` → `Upload Plugin`. +4. Upload the `.zip` file and click **Install Now**. +5. After installation, click **Activate Plugin**. + +--- + +## đŸ§Ē Usage + +Add the following shortcode anywhere on your page/post to display the tracking form: + +[track_order_by_number] \ No newline at end of file diff --git a/track-order-by-order-id.php b/track-order-by-order-id.php new file mode 100644 index 0000000..194f007 --- /dev/null +++ b/track-order-by-order-id.php @@ -0,0 +1,46 @@ +WhatsApp me for custom plugin/solutions + * Version: 1.0.8 + * Author: absoftlab + * Author Email: absoftlab@gmail.com + * Author URI: https://absoftlab.com + * License: GPL2 + */ + +if (!defined('ABSPATH')) exit; // Exit if accessed directly + +add_shortcode('track_order_by_number', 'otbn_track_order_shortcode'); + +function otbn_track_order_shortcode() { + ob_start(); + + if (!class_exists('WooCommerce')) { + echo '

WooCommerce is not active.

'; + return ob_get_clean(); + } + + ?> +
+
+ + +
+ get_status()); + echo "

✅ āĻāχ āĻ…āĻ°ā§āĻĄāĻžāϰāϟāĻŋ #$order_id āĻŦāĻ°ā§āϤāĻŽāĻžāύ⧇: $status āĻ āφāĻĒāĻĄā§‡āϟ āĻšā§Ÿā§‡āϛ⧇āĨ¤

"; + } else { + echo "

❌ #$order_id āĻāχ āύāĻžāĻŽā§āĻŦāĻžāϰ⧇āϰ āĻ…āĻ°ā§āĻĄāĻžāϰ āĻĒāĻžāĻ“āϝāĻŧāĻž āϝāĻžāϝāĻŧāύāĻŋāĨ¤

"; + } + } + + return ob_get_clean(); +} +