Changeset 2772699
- Timestamp:
- 08/19/2022 05:32:55 PM (4 years ago)
- Location:
- shiptimize-for-woocommerce/trunk
- Files:
-
- 6 edited
-
constants.php (modified) (1 diff)
-
includes/admin/class-shiptimize-order-ui.php (modified) (1 diff)
-
includes/class-woo-shiptimize-order.php (modified) (1 diff)
-
includes/class-woo-shiptimize.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
shiptimize.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shiptimize-for-woocommerce/trunk/constants.php
r2760287 r2772699 4 4 define( 'SHIPTIMIZE_API_URL', 'https://api.pakketmail.nl/v3' ); 5 5 define( 'SHIPTIMIZE_BRAND', 'Shiptimize' ); 6 define( 'SHIPTIMIZE_VERSION', '3.1. 49' );6 define( 'SHIPTIMIZE_VERSION', '3.1.50' ); 7 7 define( 'SHIPTIMIZE_CREATE_ACCOUNT', 'https://www.shiptimize.me/quote/' ); 8 8 define( 'SHIPTIMIZE_CHECKOUT', 0); -
shiptimize-for-woocommerce/trunk/includes/admin/class-shiptimize-order-ui.php
r2746465 r2772699 79 79 $labelurl = $response->response->LabelFile; // all labels in this batch share the same url 80 80 $msg = $shiptimize->translate('labelprinted'); 81 $order->set_tracking_id($labelresult->TrackingId, $labelurl); 81 82 } 82 83 else { -
shiptimize-for-woocommerce/trunk/includes/class-woo-shiptimize-order.php
r2760287 r2772699 478 478 global $wpdb, $shiptimize; 479 479 480 if ($tracking_id == get_post_meta($this->ShopItemId, 'shiptimize_trackingid', true)) { 481 WooShiptimize::log("Order already has trackingid $tracking_id ignoring"); 482 return; 483 } 484 480 485 $this->add_message($this->get_formated_message($shiptimize->translate("api sent trackingId:").' '.$tracking_id)); 481 486 -
shiptimize-for-woocommerce/trunk/includes/class-woo-shiptimize.php
r2757277 r2772699 816 816 $contentvalid = true; 817 817 818 try { 819 $content = file_get_contents($checkapiurl); 818 try { 819 $content = file_get_contents($checkapiurl); 820 820 $json = json_decode($content); 821 $contentvalid = isset($json-> home);821 $contentvalid = isset($json->name); 822 822 } 823 823 catch (Exception $e) { 824 824 $contentvalid = false; 825 self::log( $e->getMessage());825 self::log("Exception ocurred trying to get the api url " . $e->getMessage()); 826 826 } 827 827 828 828 restore_error_handler(); 829 self::log("==== is_api_active " . ($contentvalid ? 'Yes' : 'No')); 829 830 return $contentvalid; 830 831 } -
shiptimize-for-woocommerce/trunk/readme.txt
r2760287 r2772699 85 85 = 3.1.41 - 20212-04-13 = 86 86 * enhancement - allow users to declare Free shipping With one of our carriers 87 88 87 89 88 = 3.1.40 - 20212-03-28 = -
shiptimize-for-woocommerce/trunk/shiptimize.php
r2760287 r2772699 3 3 * Plugin Name: Shiptimize for WooCommerce 4 4 * Description: Shiptimize for WooCommerce 5 * Version: 3.1. 495 * Version: 3.1.50 6 6 * Author: Shiptimize 7 7 * Author URI: https://shiptimize.me … … 15 15 * 16 16 */ 17 18 17 if ( ! defined( 'ABSPATH' ) ) { 19 18 exit; // Exit if accessed directly. … … 34 33 define( 'SHIPTIMIZE_LOGO', SHIPTIMIZE_PLUGIN_URL . 'assets/images/logo.svg' ); 35 34 36 37 35 require_once(SHIPTIMIZE_PLUGIN_PATH . '/constants.php'); 38 36 require_once(SHIPTIMIZE_PLUGIN_PATH . 'includes/class-woo-shiptimize.php');
Note: See TracChangeset
for help on using the changeset viewer.