Changeset 3348648
- Timestamp:
- 08/22/2025 12:35:01 PM (6 months ago)
- Location:
- emw-multiple-order-management/trunk
- Files:
-
- 12 edited
-
CHANGELOG.md (modified) (4 diffs)
-
assets/js/admin-settings.js (modified) (1 diff)
-
emw-multiple-order-management.php (modified) (3 diffs)
-
includes/class-emw-mom-admin.php (modified) (6 diffs)
-
languages/emw-multiple-order-management.pot (modified) (1 diff)
-
license.txt (modified) (2 diffs)
-
readme.MD (modified) (5 diffs)
-
templates/admin-page.php (modified) (1 diff)
-
templates/general-settings.php (modified) (1 diff)
-
templates/group-details-popup.php (modified) (5 diffs)
-
templates/notifications-settings.php (modified) (3 diffs)
-
templates/rest-api-settings.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
emw-multiple-order-management/trunk/CHANGELOG.md
r3348643 r3348648 5 5 --- 6 6 7 ## [1.2.0] - 2025-08-22 8 9 ### Changed 10 - **Renamed plugin**: Updated plugin name to **MultiOrder Sync** across all files, settings, and documentation. 11 - **Terminology updates**: 12 - Replaced all references to **"Primary Order"** with **"Parent Order"**. 13 - Replaced all references to **"Secondary Order(s)"** with **"Linked Order(s)"**. 14 - Updated meta keys, labels, API responses, and internal methods for consistency. 15 - Updated admin UI, REST API, and settings pages to reflect the new terminology: 16 - Admin meta boxes and linked order displays use updated wording. 17 7 18 ## [1.1.0] - 2025-08-18 8 19 9 20 ### Changed 10 21 - Improved the metadata structure used to store linked orders: 11 - Now, **all linked orders** (primary and secondary) consistently store a `multipleorders` meta entry. 12 - This structure includes: 13 - `is_primary` or `is_secondary` flag. 14 - Reference IDs for the linked orders (`primary_order_id` or `secondary_order_ids`). 22 - Now, **all linked orders** (parent and linked) consistently store a `multipleorders` meta entry. 15 23 - Updated the following methods to support full metadata persistence: 16 24 - `ajax_link_orders()` now updates meta for **all orders** in the group. … … 28 36 ### Deprecated 29 37 - Legacy partial `multipleorders` meta structure used prior to v1.0.1: 30 - Was only set for the p rimaryorder (or only for secondaries).38 - Was only set for the parent order (or only for secondaries). 31 39 - **Fallback retained temporarily for backward compatibility.** 32 40 - ⚠️ **Deprecated:** This fallback will be removed in a future major release (e.g., `v2.0.0`). Please update any custom code depending on the old structure. … … 34 42 ### Fixed 35 43 - Fixed inconsistencies in how linked orders were displayed in the admin UI. 36 - Fixed issue where some secondaryorders were not saving metadata correctly.44 - Fixed issue where some linked orders were not saving metadata correctly. 37 45 38 46 --- … … 41 49 42 50 ### Added 43 - Initial release of the Multi ple Order Managementplugin.51 - Initial release of the MultiOrder Sync plugin. 44 52 - Ability to group WooCommerce orders based on customizable criteria. 45 53 - Link grouped orders into primary/secondary relationships. -
emw-multiple-order-management/trunk/assets/js/admin-settings.js
r3348643 r3348648 175 175 176 176 if ( ! primaryOrder ) { 177 showError( 'Please select one p rimaryorder.' );177 showError( 'Please select one parent order.' ); 178 178 return; 179 179 } 180 180 181 181 if ( secondaryOrders.length === 0 ) { 182 showError( 'Please select at least one secondaryorder.' );182 showError( 'Please select at least one linked order.' ); 183 183 return; 184 184 } -
emw-multiple-order-management/trunk/emw-multiple-order-management.php
r3348643 r3348648 1 1 <?php 2 2 /** 3 * Plugin Name: Multi ple Order ManagementFor WooCommerce3 * Plugin Name: MultiOrder Sync For WooCommerce 4 4 * Plugin URI: https://wordpress.org/plugins/emw-multiple-order-management/ 5 5 * Description: A plugin to manage and link multiple WooCommerce orders based on custom criteria. 6 * Version: 1. 1.06 * Version: 1.2.0 7 7 * Author: Kiran M S 8 8 * Author URI: https://profiles.wordpress.org/kiranms1996/ … … 22 22 * Define plugin constants. 23 23 */ 24 define( 'EMW_MOM_VERSION', '1. 1.0' );24 define( 'EMW_MOM_VERSION', '1.2.0' ); 25 25 define( 'EMW_MOM_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); 26 26 define( 'EMW_MOM_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); … … 53 53 ?> 54 54 <div class="notice notice-error"> 55 <p><?php esc_html_e( ' EMW Multiple Order Managementrequires WooCommerce to be installed and active.', 'emw-multiple-order-management' ); ?></p>55 <p><?php esc_html_e( 'MultiOrder Sync requires WooCommerce to be installed and active.', 'emw-multiple-order-management' ); ?></p> 56 56 </div> 57 57 <?php -
emw-multiple-order-management/trunk/includes/class-emw-mom-admin.php
r3348643 r3348648 69 69 70 70 add_menu_page( 71 esc_html__( ' Order Management', 'emw-multiple-order-management' ),72 esc_html__( ' Order Management', 'emw-multiple-order-management' ) . $badge,71 esc_html__( 'Multi-Order', 'emw-multiple-order-management' ), 72 esc_html__( 'Multi-Order', 'emw-multiple-order-management' ) . $badge, 73 73 'manage_woocommerce', // phpcs:ignore 74 74 'emw-mom', … … 80 80 add_submenu_page( 81 81 'emw-mom', 82 esc_html__( ' MultipleOrders', 'emw-multiple-order-management' ),83 esc_html__( ' MultipleOrders', 'emw-multiple-order-management' ),82 esc_html__( 'Group Orders', 'emw-multiple-order-management' ), 83 esc_html__( 'Group Orders', 'emw-multiple-order-management' ), 84 84 'manage_woocommerce', // phpcs:ignore 85 85 'emw-mom', … … 179 179 'general' => esc_html__( 'General', 'emw-multiple-order-management' ), 180 180 'notifications' => esc_html__( 'Notifications', 'emw-multiple-order-management' ), 181 'criteria' => esc_html__( 'Multi ple OrderCriteria', 'emw-multiple-order-management' ),181 'criteria' => esc_html__( 'MultiOrder Sync Criteria', 'emw-multiple-order-management' ), 182 182 'rest-api' => esc_html__( 'REST API', 'emw-multiple-order-management' ), 183 183 'pro-ver' => wp_kses_post( 'Pro Version <span class="dashicons dashicons-star-filled" style="color: #ffb900;vertical-align: middle;"></span>' ), … … 188 188 ?> 189 189 <div class="wrap"> 190 <h1><?php esc_html_e( ' Order ManagementSettings', 'emw-multiple-order-management' ); ?></h1>190 <h1><?php esc_html_e( 'MultiOrder Settings', 'emw-multiple-order-management' ); ?></h1> 191 191 <nav class="nav-tab-wrapper"> 192 192 <?php foreach ( $tabs as $tab_id => $tab_name ) : ?> … … 564 564 // Display role badge. 565 565 if ( $is_primary ) { 566 echo '<span class="emw-mom-badge role-primary">' . esc_html__( 'P rimary', 'emw-multiple-order-management' ) . '</span>';566 echo '<span class="emw-mom-badge role-primary">' . esc_html__( 'Parent Order', 'emw-multiple-order-management' ) . '</span>'; 567 567 } elseif ( $is_secondary ) { 568 echo '<span class="emw-mom-badge role-secondary">' . esc_html__( ' Secondary', 'emw-multiple-order-management' ) . '</span>';568 echo '<span class="emw-mom-badge role-secondary">' . esc_html__( 'Linked Order(s)', 'emw-multiple-order-management' ) . '</span>'; 569 569 } 570 570 ?> … … 612 612 if ( $primary_order ) { 613 613 echo '<p>' . sprintf( 614 esc_html__( 'Linked to P rimaryOrder %s', 'emw-multiple-order-management' ),614 esc_html__( 'Linked to Parent Order %s', 'emw-multiple-order-management' ), 615 615 '<a href="' . esc_url( $primary_order->get_edit_order_url() ) . '">#' . esc_html( $primary_order->get_order_number() ) . '</a>' 616 616 ) . '</p>'; -
emw-multiple-order-management/trunk/languages/emw-multiple-order-management.pot
r3348643 r3348648 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: EMW Multiple Order Management 1.1.0\n"5 "Project-Id-Version: MultiOrder Sync 1.2.0\n" 6 6 "Report-Msgid-Bugs-To: https://example.com/support\n" 7 7 "POT-Creation-Date: 2025-07-03 16:14+0530\n" -
emw-multiple-order-management/trunk/license.txt
r3348643 r3348648 1 1 <?php 2 2 /** 3 * This file is part of EMW Multiple Order Management.3 * This file is part of MultiOrder Sync. 4 4 * 5 * EMW Multiple Order Managementis free software: you can redistribute it and/or modify5 * MultiOrder Sync is free software: you can redistribute it and/or modify 6 6 * it under the terms of the GNU General Public License as published by 7 7 * the Free Software Foundation, either version 2 of the License, or 8 8 * (at your option) any later version. 9 9 * 10 * EMW Multiple Order Managementis distributed in the hope that it will be useful,10 * MultiOrder Sync is distributed in the hope that it will be useful, 11 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 14 14 * 15 15 * You should have received a copy of the GNU General Public License 16 * along with EMW Multiple Order Management. If not, see <https://www.gnu.org/licenses/>.16 * along with MultiOrder Sync . If not, see <https://www.gnu.org/licenses/>. 17 17 */ -
emw-multiple-order-management/trunk/readme.MD
r3348643 r3348648 1 === Multi ple Order ManagementFor WooCommerce ===1 === MultiOrder Sync For WooCommerce === 2 2 Contributors: kiranms1996 3 Tags: multiple, order, management, link orders, woocommerce3 Tags: multiple, order, sync, link orders, woocommerce 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 1. 1.06 Stable tag: 1.2.0 7 7 Requires PHP: 7.2 8 8 License: GPLv2 or later … … 12 12 13 13 == Description == 14 Multi ple Order ManagementFor WooCommerce allows store owners to group and link WooCommerce orders based on criteria like customer ID, billing email, or address. Features include:14 MultiOrder Sync For WooCommerce allows store owners to group and link WooCommerce orders based on criteria like customer ID, billing email, or address. Features include: 15 15 - Grouping orders automatically based on customizable criteria. 16 - Linking orders into p rimary and secondaryrelationships.16 - Linking orders into parent and sub-order relationships. 17 17 - Email notifications for order status changes. 18 18 - REST API for fetching orders. … … 22 22 1. Upload the `emw-multiple-order-management` folder to the `/wp-content/plugins/` directory. 23 23 2. Activate the plugin through the 'Plugins' menu in WordPress. 24 3. Navigate to ' Order Management' in the admin menu to configure settings and manage orders.24 3. Navigate to 'Muilti-Order' in the admin menu to configure settings and manage orders. 25 25 26 26 == Frequently Asked Questions == … … 70 70 == Changelog == 71 71 72 = 1.2.0 - 2025-08-22 = 73 * Changed: Plugin name updated to **MultiOrder Sync**. 74 * Changed: All references to "Primary Order" have been renamed to **Parent Order**. 75 * Changed: All references to "Secondary Order" have been renamed to **Linked Order**. 76 * Changed: Updated admin labels, meta keys, API fields, and internal function names to reflect new terminology. 77 * Changed: Improved consistency in database schema and UI components related to order relationships. 78 * Fixed: Minor translation and text domain issues caused by renamed labels. 79 72 80 = 1.1.0 - 2025-08-18 = 73 81 * Changed: Unified `multipleorders` meta structure for all linked orders. … … 82 90 83 91 = 1.0.0 - 2025-08-13 = 84 * Initial release of the Multi ple Order Managementplugin.92 * Initial release of the MultiOrder Sync plugin. 85 93 * Ability to group WooCommerce orders based on customizable criteria. 86 * Link grouped orders into p rimary/secondaryrelationships.94 * Link grouped orders into parent/sub-order relationships. 87 95 * Admin UI for managing grouped orders. 88 96 * Settings panel for order criteria, email templates, and API key. -
emw-multiple-order-management/trunk/templates/admin-page.php
r3348643 r3348648 14 14 15 15 <div class="wrap"> 16 <h1><?php esc_html_e( ' EMW Multiple Order Management', 'emw-multiple-order-management' ); ?></h1>16 <h1><?php esc_html_e( 'MultiOrder Sync ', 'emw-multiple-order-management' ); ?></h1> 17 17 <form method="get"> 18 18 <input type="hidden" name="page" value="emw-mom" /> -
emw-multiple-order-management/trunk/templates/general-settings.php
r3348643 r3348648 69 69 </div> 70 70 <p class="description"> 71 <?php esc_html_e( 'Select the order statuses allowed for multiple order management (e.g., bulk actions).', 'emw-multiple-order-management' ); ?>71 <?php esc_html_e( 'Select the order statuses allowed for MultiOrder Sync.', 'emw-multiple-order-management' ); ?> 72 72 </p> 73 73 </td> -
emw-multiple-order-management/trunk/templates/group-details-popup.php
r3348643 r3348648 23 23 24 24 <div class="emw-mom-group-details-title"> 25 <h2><?php esc_html_e( 'Multi ple Order Details', 'emw-multiple-order-management' ); ?></h2>25 <h2><?php esc_html_e( 'MultiOrder Sync', 'emw-multiple-order-management' ); ?></h2> 26 26 </div> 27 27 … … 55 55 <tr> 56 56 <td class="manage-column column-cb check-column" style="width: auto;"> 57 <?php esc_html_e( 'P rimary', 'emw-multiple-order-management' ); ?>57 <?php esc_html_e( 'Parent Order', 'emw-multiple-order-management' ); ?> 58 58 </td> 59 <th scope="col"><?php esc_html_e( ' Secondary', 'emw-multiple-order-management' ); ?></th>59 <th scope="col"><?php esc_html_e( 'Linked Order(s)', 'emw-multiple-order-management' ); ?></th> 60 60 <th scope="col"><?php esc_html_e( 'Order Number', 'emw-multiple-order-management' ); ?></th> 61 61 <th scope="col"><?php esc_html_e( 'Status', 'emw-multiple-order-management' ); ?></th> … … 69 69 <th class="check-column"> 70 70 <label class="screen-reader-text" for="primary_<?php echo esc_attr( $mom_order['id'] ); ?>"> 71 <?php esc_html_e( 'Select as p rimaryorder', 'emw-multiple-order-management' ); ?>71 <?php esc_html_e( 'Select as parent order', 'emw-multiple-order-management' ); ?> 72 72 </label> 73 73 <input … … 83 83 <td> 84 84 <label class="screen-reader-text" for="secondary_<?php echo esc_attr( $mom_order['id'] ); ?>"> 85 <?php esc_html_e( 'Select as secondaryorder', 'emw-multiple-order-management' ); ?>85 <?php esc_html_e( 'Select as linked order', 'emw-multiple-order-management' ); ?> 86 86 </label> 87 87 <input … … 133 133 <?php endif; ?> 134 134 <div class="emw-mom-group-details-footer"> 135 <p><?php esc_html_e( 'Note: Only one p rimary order can be selected. Multiple secondaryorders can be selected.', 'emw-multiple-order-management' ); ?></p>136 <p><?php esc_html_e( 'After linking, the p rimary order will retain its details, and the secondaryorders will be merged into it.', 'emw-multiple-order-management' ); ?></p>135 <p><?php esc_html_e( 'Note: Only one parent order can be selected. Multiple linked orders can be selected.', 'emw-multiple-order-management' ); ?></p> 136 <p><?php esc_html_e( 'After linking, the parent order will retain its details, and the linked orders will be merged into it.', 'emw-multiple-order-management' ); ?></p> 137 137 </div> -
emw-multiple-order-management/trunk/templates/notifications-settings.php
r3348643 r3348648 34 34 <p class="description" id="emw-mom-email-subject-description"> 35 35 <?php 36 esc_html_e( 'Customize the subject line for new multiple order notifications. Use the following placeholders:', 'emw-multiple-order-management' );36 esc_html_e( 'Customize the subject line for new MultiOrder notifications. Use the following placeholders:', 'emw-multiple-order-management' ); 37 37 ?> 38 38 <ul style="list-style: disc; margin-left: 20px;"> … … 58 58 /> 59 59 <p class="description" id="emw-mom-admin-email-description"> 60 <?php esc_html_e( 'Enter the email address to notify when a new multiple order arrives.', 'emw-multiple-order-management' ); ?>60 <?php esc_html_e( 'Enter the email address to notify when a new MultiOrder arrives.', 'emw-multiple-order-management' ); ?> 61 61 </p> 62 62 </td> … … 98 98 <p class="description"> 99 99 <?php 100 esc_html_e( 'Customize the email template for new multiple order notifications. Use the following placeholders:', 'emw-multiple-order-management' );100 esc_html_e( 'Customize the email template for new MultiOrder notifications. Use the following placeholders:', 'emw-multiple-order-management' ); 101 101 ?> 102 102 <ul style="list-style: disc; margin-left: 20px;"> -
emw-multiple-order-management/trunk/templates/rest-api-settings.php
r3348643 r3348648 32 32 /> 33 33 <p class="description"> 34 <?php esc_html_e( 'Enable REST API access for multiple order management.', 'emw-multiple-order-management' ); ?>34 <?php esc_html_e( 'Enable REST API access for MultiOrder management.', 'emw-multiple-order-management' ); ?> 35 35 </p> 36 36 </td>
Note: See TracChangeset
for help on using the changeset viewer.