Skip to content

Commit 6a36667

Browse files
authored
PES-2792: Packeta information is added to emails even when the order status is changed in administration (#791)
2 parents 5b0f6d0 + e842d1d commit 6a36667

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
== Changelog ==
2+
= 2.0.5 =
3+
Updated: The payment method restriction set for the carrier has been implemented in the block checkout.
4+
Fixed: Packeta information is added to emails even when the order status is changed in administration.
5+
26
= 2.0.4 =
37
Fixed: Shipping tax was not displayed in the order details (fixed only for advanced carrier settings).
48

languages/packeta.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is distributed under the GNU General Public License v3.0.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Packeta 2.0.4\n"
5+
"Project-Id-Version: Packeta 2.0.5\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/packeta\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <[email protected]>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2025-04-15T09:23:55+02:00\n"
12+
"POT-Creation-Date: 2025-05-14T16:59:37+02:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.11.0\n"
1515
"X-Domain: packeta\n"

packeta.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Plugin Name: Packeta
1010
* Description: This is the official plugin, that allows you to choose pickup points of Packeta and its external carriers in all of Europe, or utilize address delivery to 25 countries in the European Union, straight from the cart in your e-shop. Furthermore, you can also submit all your orders to Packeta with just one click.
11-
* Version: 2.0.4
11+
* Version: 2.0.5
1212
* Author: Zásilkovna s.r.o.
1313
* Author URI: https://www.zasilkovna.cz/
1414
* Text Domain: packeta

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: packeta
33
Tags: WooCommerce, shipping
44
Requires at least: 5.5
55
Tested up to: 6.7.2
6-
Stable tag: 2.0.4
6+
Stable tag: 2.0.5
77
Requires PHP: 7.2
88
WC requires at least: 5.1
99
WC tested up to: 9.7.1
@@ -62,6 +62,10 @@ We are constantly working on adding new features. If there is a feature you woul
6262
Please contact us at [email protected] .
6363

6464
== Changelog ==
65+
= 2.0.5 =
66+
Updated: The payment method restriction set for the carrier has been implemented in the block checkout.
67+
Fixed: Packeta information is added to emails even when the order status is changed in administration.
68+
6569
= 2.0.4 =
6670
Fixed: Shipping tax was not displayed in the order details (fixed only for advanced carrier settings).
6771

src/Packetery/Module/Hooks/HookRegistrar.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ static function () {
351351
$this->registerFrontEnd();
352352
}
353353

354+
$wcEmailHook = $this->optionsProvider->getEmailHook();
355+
$this->wpAdapter->addAction( $wcEmailHook, [ $this->viewMail, 'renderEmailFooter' ] );
356+
354357
$this->wpAdapter->addFilter( 'woocommerce_shipping_methods', [ $this, 'addShippingMethods' ] );
355358
$this->cronService->register();
356359
$this->packetAutoSubmitter->register();
@@ -519,9 +522,6 @@ function () {
519522
private function registerFrontEnd(): void {
520523
$this->checkout->registerHooks();
521524

522-
$wcEmailHook = $this->optionsProvider->getEmailHook();
523-
$this->wpAdapter->addAction( $wcEmailHook, [ $this->viewMail, 'renderEmailFooter' ] );
524-
525525
$this->wpAdapter->addAction( 'wp_enqueue_scripts', [ $this->assetManager, 'enqueueFrontAssets' ] );
526526
$this->wpAdapter->addAction(
527527
'woocommerce_cart_calculate_fees',

src/Packetery/Module/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class Plugin {
2020

21-
public const VERSION = '2.0.4';
21+
public const VERSION = '2.0.5';
2222
public const DOMAIN = 'packeta';
2323
public const PARAM_PACKETERY_ACTION = 'packetery_action';
2424
public const PARAM_NONCE = '_wpnonce';

0 commit comments

Comments
 (0)