Plugin Directory

Changeset 3297644


Ignore:
Timestamp:
05/20/2025 08:21:57 PM (11 months ago)
Author:
datalogics
Message:

2.6.41

Location:
datalogics
Files:
87 added
4 edited

Legend:

Unmodified
Added
Removed
  • datalogics/assets/readme-he_IL.txt

    r3291430 r3297644  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 2.6.40
     6Stable tag: 2.6.41
    77Requires PHP: 7.4
    88License: GPLv2 or later
  • datalogics/trunk/README.txt

    r3291430 r3297644  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 2.6.40
     6Stable tag: 2.6.41
    77Requires PHP: 7.4
    88License: GPLv2 or later
  • datalogics/trunk/actions.php

    r3291430 r3297644  
    331331    }
    332332
     333    $meta_data_array = $order_data['meta_data'] ? array_map(function($meta) {
     334        return [
     335            'key' => $meta->key,
     336            'value' => $meta->value,
     337        ];
     338    }, $order->get_meta_data()) : [];
     339   
     340    $all_post_meta = get_post_meta($order_id);
     341    foreach ($all_post_meta as $key => $value) {
     342        $meta_data_array[] = [
     343            'key' => $key,
     344            'value' => is_array($value) && count($value) === 1 ? $value[0] : $value,
     345        ];
     346    }
     347
     348    $order_data['meta_data'] = $meta_data_array;
     349
    333350
    334351    return $order_data;
    335352}
     353
    336354
    337355function datalogics_add_shipping($order_id = 0, $govina = '', $comment = '',$auto=''){
     
    345363
    346364    $order_data = datalogics_get_order_data($order_id);
     365    //$meta_ncode = get_post_meta($order_id,'datalogics_n_code',true);
     366    //var_dump($order_data,$meta_ncode);
    347367
    348368    $data['order'] = $order_data;
  • datalogics/trunk/datalogics.php

    r3291430 r3297644  
    1010    License: GPLv2 or later
    1111    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    12     Version: 2.6.40
     12    Version: 2.6.41
    1313*/
    1414
Note: See TracChangeset for help on using the changeset viewer.