Plugin Directory

Changeset 3382531


Ignore:
Timestamp:
10/22/2025 10:52:07 AM (6 months ago)
Author:
bostateam
Message:

Release version 4.3.0

Location:
bosta-woocommerce/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • bosta-woocommerce/trunk/bosta-woocommerce.php

    r3378853 r3382531  
    66 * Author: Bosta
    77 * Author URI: https://www.bosta.co/
    8  * Version: 4.2.2
     8 * Version: 4.3.0
    99 * Requires at least: 5.0
    1010 * php version 7.0
     
    4242require_once plugin_dir_path(__FILE__) . 'includes/class-bosta-consignee-ranking.php';
    4343
     44// Include payment method handler
     45require_once plugin_dir_path(__FILE__) . 'includes/class-bosta-payment-method-handler.php';
     46
    4447
    4548
     
    4750add_action('init', function() {
    4851    Bosta_Webhook_Loader::init();
     52    Bosta_Payment_Method_Handler::init();
    4953});
    5054
     
    116120const BOSTA_ENV_URL_V0 = 'https://app.bosta.co/api/v0';
    117121const BOSTA_ENV_URL_V2 = 'https://app.bosta.co/api/v2';
    118 const PLUGIN_VERSION = '4.2.2';
     122const PLUGIN_VERSION = '4.3.0';
    119123const bosta_cache_duration = 86400;
    120124const bosta_country_id_duration = 604800;
     
    15951599    if ($order->get_payment_method() === 'cod') {
    15961600        $newOrder->cod = (float) $order->get_total();
     1601    } else {
     1602        $newOrder->cod = 0;
    15971603    }
    15981604
     
    18691875    if ($includeProductDescriptions === 'yes' && !$is_fulfillment) {
    18701876        $newOrder->specs->packageDetails = bosta_format_package_details($order, $productDescription);
     1877    }
     1878
     1879    // Add COD handling
     1880    if ($order->get_payment_method() === 'cod') {
     1881        $newOrder->cod = (float) $order->get_total();
     1882    } else {
     1883        $newOrder->cod = 0;
    18711884    }
    18721885
  • bosta-woocommerce/trunk/readme.txt

    r3378853 r3382531  
    77Requires PHP: 7.0
    88Tested up to: 6.8.2
    9 Stable tag: 4.2.2
     9Stable tag: 4.3.0
    1010WC requires at least: 2.6
    1111WC tested up to: 10.0.4
     
    247247= 4.2.2 =
    248248* Added Filter for consignee ranking
     249
     250= 4.3.0 =
     251* Added handling for payment method update
Note: See TracChangeset for help on using the changeset viewer.