Plugin Directory

Changeset 2995756


Ignore:
Timestamp:
11/14/2023 12:50:12 PM (2 years ago)
Author:
woosms
Message:

3.0.1

Location:
woosms-sms-module-for-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woosms-sms-module-for-woocommerce/trunk/readme.txt

    r2995624 r2995756  
    160160
    161161== Changelog ==
     162
     163= 3.0.1 =
     164* Bug fix https://wordpress.org/support/topic/after-update-i-cannot-view-order/
    162165
    163166= 3.0.0 =
  • woosms-sms-module-for-woocommerce/trunk/src/Template/Init.php

    r2995624 r2995756  
    99
    1010use BulkGate\{Plugin\Debug\Logger, Plugin\Debug\Requirements, Plugin\Eshop, Plugin\Settings\Settings, Plugin\Strict, Plugin\User\Sign, Plugin\Utils\JsonResponse, WooSms\Ajax\Authenticate, WooSms\Ajax\PluginSettingsChange, WooSms\Debug\Page, WooSms\DI\Factory, WooSms\Utils\Logo, WooSms\Utils\Meta};
     11use function method_exists, in_array;
    1112
    1213class Init
     
    4243            if (in_array($post_type, ['shop_order', 'woocommerce_page_wc-orders'], true) && Factory::get()->getByClass(Settings::class)->load('static:application_token'))
    4344            {
    44                 add_meta_box('bulkgate_send_message', 'BulkGate SMS', fn ($post) => SendMessage::print(Factory::get(), wc_get_order($post->get_id()), []), $post_type, 'side', 'high');
     45                add_meta_box('bulkgate_send_message', 'BulkGate SMS', fn ($post) => SendMessage::print(Factory::get(), wc_get_order(method_exists($post, 'get_id') ? $post->get_id() : $post->ID), []), $post_type, 'side', 'high');
    4546            }
    4647        });
  • woosms-sms-module-for-woocommerce/trunk/woosms-sms-module-for-woocommerce.php

    r2995624 r2995756  
    55 * Plugin URI: https://www.bulkgate.com/en/integrations/sms-plugin-for-woocommerce/
    66 * Description: Notify your customers about order status via SMS notifications.
    7  * Version: 3.0.0
     7 * Version: 3.0.1
    88 * Author: BulkGate
    99 * Author URI: https://www.bulkgate.com/
Note: See TracChangeset for help on using the changeset viewer.