Plugin Directory

Changeset 3483813


Ignore:
Timestamp:
03/16/2026 11:50:43 AM (2 weeks ago)
Author:
shipmatedev
Message:

local pickup returns last method id

Location:
mailplus-shipmate
Files:
8 added
3 edited

Legend:

Unmodified
Added
Removed
  • mailplus-shipmate/trunk/includes/mailplus-shipmate-rest-endpoints.php

    r3483792 r3483813  
    8888    $order = wc_get_order( $order_id );
    8989    $is_local_pickup = false;
     90    $last_method = '';
    9091
    9192    foreach ($order->get_shipping_methods() as $item_id => $item) {
    9293        $method_id = $item->get_method_id();
     94        $last_method = $method_id;
    9395        if ($method_id === 'local_pickup') {
    9496            $is_local_pickup = true;
     
    99101    return new WP_REST_Response(array(
    100102        'local_pickup' => $is_local_pickup,
     103        'method_id' => $last_method,
    101104        'message' => 'done',
    102105    ), 200);
  • mailplus-shipmate/trunk/mailplus-shipmate.php

    r3483792 r3483813  
    33 * Plugin Name: MailPlus Shipmate
    44 * Description: As an Australian shipping service, MailPlus Shipmate integrates MailPlus delivery options with WooCommerce, providing real-time shipping rates and automated parcel management through your MailPlus account.
    5  * Version: 0.2.1
     5 * Version: 0.2.2
    66 * Author: MailPlus
    77 * License: GPL v2 or later
  • mailplus-shipmate/trunk/readme.txt

    r3483792 r3483813  
    55Tested up to: 6.9
    66Requires PHP: 8.2
    7 Stable tag: 0.2.1
     7Stable tag: 0.2.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.