Plugin Directory

Changeset 3343990


Ignore:
Timestamp:
08/13/2025 07:45:48 AM (6 months ago)
Author:
robertosnap
Message:

Update to version 7.12.0 from GitHub

Location:
logistra-woocommerce-integrasjon-fra-wildrobot-app
Files:
4 added
4 deleted
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • logistra-woocommerce-integrasjon-fra-wildrobot-app/tags/7.12.0/README.txt

    r3321591 r3343990  
    55Requires at least: 5.1
    66Tested up to: 6.7.2
    7 Stable tag: 7.11.4
     7Stable tag: 7.12.0
    88WC requires at least: 3.0.0
    99WC tested up to: 9.8.1
     
    4949== Changelog ==
    5050
     51== 7.12.0 ==
     52* NEW Added support for estimating freight cost.
     53
    5154== 7.11.4 ==
    5255* NEW Added support for Pickup Point in WooCommerce Subscriptions upgrade and downgrade.
  • logistra-woocommerce-integrasjon-fra-wildrobot-app/tags/7.12.0/includes/class-wildrobot-logistra-ajax.php

    r3240546 r3343990  
    130130            "create_goods_letter",
    131131            "get_order_freight_label_url",
     132            "estimate_consignment_from_args",
    132133            "quickstart"
    133134        );
     
    641642    }
    642643
     644    public static function estimate_consignment_from_args()
     645    {
     646        try {
     647            ob_start();
     648            self::check_security();
     649            $data = self::check_array('data');
     650           
     651            foreach ($data as $key => $value) {
     652                if ($value === "no") {
     653                    $data[$key] = false;
     654                }
     655                if ($value === "yes") {
     656                    $data[$key] = true;
     657                }
     658            }
     659
     660            // Force estimate to true for estimate calls
     661            $data['estimate'] = true;
     662            $data['print_without_api'] = true;
     663
     664            $consignment = new Wildrobot_Logistra_Consignment($data);
     665            $consignment_xml = $consignment->to_estimate();
     666            $estimate_result = Wildrobot_Logistra_Cargonizer::estimate_consignment($consignment_xml);
     667           
     668            wp_send_json_success([
     669                "estimate" => $estimate_result
     670            ]);
     671        } catch (\Throwable $error) {
     672            wp_send_json_error([
     673                "message" => $error->getMessage(),
     674                "code" => $error->getCode()
     675            ]);
     676        }
     677    }
     678
    643679    public static function get_service_partners()
    644680    {
  • logistra-woocommerce-integrasjon-fra-wildrobot-app/tags/7.12.0/logistra-robots.php

    r3321591 r3343990  
    1717 * Plugin URI:        https://wildrobot.app/wildrobot-logistra-cargonizer-woocommerce-integrasjon/
    1818 * Description:       Integrate WooCommerce with Profrakt or Logistra - Freight administration made easy by Wildrobot!
    19  * Version:           7.11.4
     19 * Version:           7.12.0
    2020 * Author:            Robertosnap
    2121 * Author URI:        https://wildrobot.app/wildrobot-logistra-cargonizer-woocommerce-integrasjon/
     
    3939 * Rename this for your plugin and update it as you release new versions.
    4040 */
    41 define('WILDROBOT_LOGISTRA_VERSION', '7.11.4');
     41define('WILDROBOT_LOGISTRA_VERSION', '7.12.0');
    4242
    4343/**
  • logistra-woocommerce-integrasjon-fra-wildrobot-app/trunk/README.txt

    r3321591 r3343990  
    55Requires at least: 5.1
    66Tested up to: 6.7.2
    7 Stable tag: 7.11.4
     7Stable tag: 7.12.0
    88WC requires at least: 3.0.0
    99WC tested up to: 9.8.1
     
    4949== Changelog ==
    5050
     51== 7.12.0 ==
     52* NEW Added support for estimating freight cost.
     53
    5154== 7.11.4 ==
    5255* NEW Added support for Pickup Point in WooCommerce Subscriptions upgrade and downgrade.
  • logistra-woocommerce-integrasjon-fra-wildrobot-app/trunk/includes/class-wildrobot-logistra-ajax.php

    r3240546 r3343990  
    130130            "create_goods_letter",
    131131            "get_order_freight_label_url",
     132            "estimate_consignment_from_args",
    132133            "quickstart"
    133134        );
     
    641642    }
    642643
     644    public static function estimate_consignment_from_args()
     645    {
     646        try {
     647            ob_start();
     648            self::check_security();
     649            $data = self::check_array('data');
     650           
     651            foreach ($data as $key => $value) {
     652                if ($value === "no") {
     653                    $data[$key] = false;
     654                }
     655                if ($value === "yes") {
     656                    $data[$key] = true;
     657                }
     658            }
     659
     660            // Force estimate to true for estimate calls
     661            $data['estimate'] = true;
     662            $data['print_without_api'] = true;
     663
     664            $consignment = new Wildrobot_Logistra_Consignment($data);
     665            $consignment_xml = $consignment->to_estimate();
     666            $estimate_result = Wildrobot_Logistra_Cargonizer::estimate_consignment($consignment_xml);
     667           
     668            wp_send_json_success([
     669                "estimate" => $estimate_result
     670            ]);
     671        } catch (\Throwable $error) {
     672            wp_send_json_error([
     673                "message" => $error->getMessage(),
     674                "code" => $error->getCode()
     675            ]);
     676        }
     677    }
     678
    643679    public static function get_service_partners()
    644680    {
  • logistra-woocommerce-integrasjon-fra-wildrobot-app/trunk/logistra-robots.php

    r3321591 r3343990  
    1717 * Plugin URI:        https://wildrobot.app/wildrobot-logistra-cargonizer-woocommerce-integrasjon/
    1818 * Description:       Integrate WooCommerce with Profrakt or Logistra - Freight administration made easy by Wildrobot!
    19  * Version:           7.11.4
     19 * Version:           7.12.0
    2020 * Author:            Robertosnap
    2121 * Author URI:        https://wildrobot.app/wildrobot-logistra-cargonizer-woocommerce-integrasjon/
     
    3939 * Rename this for your plugin and update it as you release new versions.
    4040 */
    41 define('WILDROBOT_LOGISTRA_VERSION', '7.11.4');
     41define('WILDROBOT_LOGISTRA_VERSION', '7.12.0');
    4242
    4343/**
Note: See TracChangeset for help on using the changeset viewer.