Skip to content

Commit 5cc2922

Browse files
authored
Add WebshopEngine in request logs
* fix: move WebshopEngine post field. * fix: bump version
1 parent d200bb7 commit 5cc2922

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

README.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: goran87
33
Tags: gls, shipping, woocommerce shipping
44
Requires at least: 4.4
55
Tested up to: 6.7
6-
Stable tag: 1.2.2
6+
Stable tag: 1.2.3
77
License: GPLv2
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

@@ -63,6 +63,9 @@ To install and configure this plugin:
6363

6464
== Changelog ==
6565

66+
= 1.2.3 =
67+
* Added WebshopEngine in request logs.
68+
6669
= 1.2.2 =
6770
* Removed second Street Address field from content.
6871

gls-shipping-for-woocommerce.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Plugin Name: GLS Shipping for WooCommerce
55
* Description: Offical GLS Shipping for WooCommerce plugin
6-
* Version: 1.2.2
6+
* Version: 1.2.3
77
* Author: Inchoo
88
* License: GPLv2
99
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -24,7 +24,7 @@ final class GLS_Shipping_For_Woo
2424
{
2525
private static $instance;
2626

27-
private $version = '1.2.2';
27+
private $version = '1.2.3';
2828

2929
private function __construct()
3030
{

includes/api/class-gls-shipping-api-data.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ public function generate_post_fields_multi()
449449
}
450450

451451
$params = [
452+
'WebshopEngine' => 'woocommercehr',
452453
'ParcelList' => $parcel_list,
453454
'PrintPosition' => (int)$this->get_option("print_position") ?: 1,
454455
'TypeOfPrinter' => $this->get_option("type_of_printer") ?: 'A4_2x2',
@@ -501,6 +502,7 @@ public function generate_post_fields($count = 1)
501502
}
502503

503504
$params = [
505+
'WebshopEngine' => 'woocommercehr',
504506
'ParcelList' => [$parcel],
505507
'PrintPosition' => (int)$this->get_option("print_position") ?: 1,
506508
'TypeOfPrinter' => $this->get_option("type_of_printer") ?: 'A4_2x2',

includes/api/class-gls-shipping-api-service.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ private function generate_post_request($post_fields)
5656
{
5757
$post_fields['Username'] = $this->get_option("username");
5858
$post_fields['Password'] = $this->get_password();
59-
$post_fields['WebshopEngine'] = 'woocommercehr';
6059

6160
$params = array(
6261
'headers' => array('Content-Type' => 'application/json'),

0 commit comments

Comments
 (0)