Skip to content

Commit 7fe704d

Browse files
author
Adam Karpita
authored
PES-2291: setting checkout detection (#620)
* PES-2291: Add access modifier for constants * PES-2291: change options provider variable from underscore to CamelCase * PES-2291: Now the user has the possibility to force which type of checkout he uses * fixup! PES-2291: Now the user has the possibility to force which type of checkout he uses * fixup! use constant instead string * fixup! PES-2291: Refactor wc and wp functions to the adapter and add tests * fixup! PES-2291: Remove blocks trait and improve code styling * fixup! PES-2291: Transferring setUp into a private function * fixup! PES-2291: Remove unused statements * PES-2291: Prepare for version 1.8.2. and add translations
1 parent dcd4ab7 commit 7fe704d

File tree

14 files changed

+355
-172
lines changed

14 files changed

+355
-172
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
== Changelog ==
2+
= 1.8.2 =
3+
Added: Now the user has the possibility to force which type of checkout he uses (block-based or classic).
4+
25
= 1.8.1 =
36
Fixed: Error in bulk label printing.
47

languages/packeta.pot

Lines changed: 78 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# This file is distributed under the GNU General Public License v3.0.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Packeta 1.8.1\n"
5+
"Project-Id-Version: Packeta 1.8.2\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: 2024-10-08T13:09:48+02:00\n"
12+
"POT-Creation-Date: 2024-10-14T13:49:14+02:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"X-Generator: WP-CLI 2.10.0\n"
14+
"X-Generator: WP-CLI 2.11.0\n"
1515
"X-Domain: packeta\n"
1616

1717
#. Plugin Name of the plugin
@@ -30,7 +30,7 @@ msgstr ""
3030
#: src/Packetery/Module/Log/Page.php:118
3131
#: src/Packetery/Module/Options/Page.php:132
3232
#: src/Packetery/Module/Options/Page.php:133
33-
#: src/Packetery/Module/Options/Page.php:769
33+
#: src/Packetery/Module/Options/Page.php:779
3434
#: src/Packetery/Module/Order/GridExtender.php:395
3535
#: src/Packetery/Module/Order/LabelPrint.php:204
3636
#: src/Packetery/Module/Order/Metabox.php:218
@@ -253,7 +253,7 @@ msgid "Address validation"
253253
msgstr ""
254254

255255
#: src/Packetery/Module/Carrier/OptionsPage.php:318
256-
#: src/Packetery/Module/Checkout.php:884
256+
#: src/Packetery/Module/Checkout.php:900
257257
msgid "Age verification fee"
258258
msgstr ""
259259

@@ -343,8 +343,8 @@ msgstr ""
343343
#: src/Packetery/Module/Carrier/OptionsPage.php:570
344344
#: src/Packetery/Module/Options/Page.php:283
345345
#: src/Packetery/Module/Options/Page.php:375
346-
#: src/Packetery/Module/Options/Page.php:541
347-
#: src/Packetery/Module/Options/Page.php:777
346+
#: src/Packetery/Module/Options/Page.php:551
347+
#: src/Packetery/Module/Options/Page.php:787
348348
msgid "Save changes"
349349
msgstr ""
350350

@@ -569,12 +569,12 @@ msgstr ""
569569
msgid "The selected Packeta pickup point could not be validated, reason: %s."
570570
msgstr ""
571571

572-
#: src/Packetery/Module/Checkout.php:909
573-
#: src/Packetery/Module/Checkout.php:1602
572+
#: src/Packetery/Module/Checkout.php:925
573+
#: src/Packetery/Module/Checkout.php:1618
574574
msgid "COD surcharge"
575575
msgstr ""
576576

577-
#: src/Packetery/Module/Checkout.php:1034
577+
#: src/Packetery/Module/Checkout.php:1050
578578
msgid "Free"
579579
msgstr ""
580580

@@ -845,200 +845,220 @@ msgid "Replace shipping address with pickup point address"
845845
msgstr ""
846846

847847
#: src/Packetery/Module/Options/Page.php:507
848-
msgid "Widget button location in checkout"
848+
msgid "Force checkout type"
849849
msgstr ""
850850

851851
#: src/Packetery/Module/Options/Page.php:509
852-
msgid "After shipping rate"
852+
msgid "Automatic detection"
853853
msgstr ""
854854

855855
#: src/Packetery/Module/Options/Page.php:510
856+
msgid "Classic checkout"
857+
msgstr ""
858+
859+
#: src/Packetery/Module/Options/Page.php:511
860+
msgid "Block-based checkout"
861+
msgstr ""
862+
863+
#: src/Packetery/Module/Options/Page.php:517
864+
msgid "Widget button location in checkout"
865+
msgstr ""
866+
867+
#: src/Packetery/Module/Options/Page.php:519
868+
msgid "After shipping rate"
869+
msgstr ""
870+
871+
#: src/Packetery/Module/Options/Page.php:520
856872
msgid "After transport methods"
857873
msgstr ""
858874

859-
#: src/Packetery/Module/Options/Page.php:516
875+
#: src/Packetery/Module/Options/Page.php:526
860876
msgid "Hook used to view information in email"
861877
msgstr ""
862878

863-
#: src/Packetery/Module/Options/Page.php:525
879+
#: src/Packetery/Module/Options/Page.php:535
864880
msgid "Force order cancellation"
865881
msgstr ""
866882

867-
#: src/Packetery/Module/Options/Page.php:529
883+
#: src/Packetery/Module/Options/Page.php:539
868884
msgid "Automatically open widget when shipping was selected"
869885
msgstr ""
870886

871-
#: src/Packetery/Module/Options/Page.php:533
887+
#: src/Packetery/Module/Options/Page.php:543
872888
msgid "Display the FREE shipping text in checkout"
873889
msgstr ""
874890

875-
#: src/Packetery/Module/Options/Page.php:537
891+
#: src/Packetery/Module/Options/Page.php:547
876892
msgid "Prices include tax"
877893
msgstr ""
878894

879-
#: src/Packetery/Module/Options/Page.php:556
895+
#: src/Packetery/Module/Options/Page.php:566
880896
msgid "Main Settings"
881897
msgstr ""
882898

883-
#: src/Packetery/Module/Options/Page.php:645
899+
#: src/Packetery/Module/Options/Page.php:655
884900
msgid "Sender validation was successful"
885901
msgstr ""
886902

887-
#: src/Packetery/Module/Options/Page.php:652
903+
#: src/Packetery/Module/Options/Page.php:662
888904
msgid "Sender could not be validated"
889905
msgstr ""
890906

891-
#: src/Packetery/Module/Options/Page.php:660
907+
#: src/Packetery/Module/Options/Page.php:670
892908
msgid "Specified sender does not exist"
893909
msgstr ""
894910

895-
#: src/Packetery/Module/Options/Page.php:664
911+
#: src/Packetery/Module/Options/Page.php:674
896912
msgid "Unable to check specified sender"
897913
msgstr ""
898914

899-
#: src/Packetery/Module/Options/Page.php:681
915+
#: src/Packetery/Module/Options/Page.php:691
900916
msgid "Specified sender has been validated."
901917
msgstr ""
902918

903-
#: src/Packetery/Module/Options/Page.php:725
919+
#: src/Packetery/Module/Options/Page.php:735
904920
msgid "This plugin requires an active SOAP library for proper operation. Contact your web hosting administrator."
905921
msgstr ""
906922

907-
#: src/Packetery/Module/Options/Page.php:766
923+
#: src/Packetery/Module/Options/Page.php:776
908924
msgid "Cancel the packet for an order even if the cancellation in the Packeta system will not be successful."
909925
msgstr ""
910926

911-
#: src/Packetery/Module/Options/Page.php:770
927+
#: src/Packetery/Module/Options/Page.php:780
912928
msgid "Options"
913929
msgstr ""
914930

915-
#: src/Packetery/Module/Options/Page.php:771
931+
#: src/Packetery/Module/Options/Page.php:781
916932
msgid "General"
917933
msgstr ""
918934

919-
#: src/Packetery/Module/Options/Page.php:772
935+
#: src/Packetery/Module/Options/Page.php:782
920936
msgid "Packet auto-submission"
921937
msgstr ""
922938

923-
#: src/Packetery/Module/Options/Page.php:773
939+
#: src/Packetery/Module/Options/Page.php:783
924940
msgid "Choose events for payment methods that will trigger packet submission"
925941
msgstr ""
926942

927943
#. translators: %s represents URL.
928-
#: src/Packetery/Module/Options/Page.php:775
944+
#: src/Packetery/Module/Options/Page.php:785
929945
msgid "API password can be found at %s"
930946
msgstr ""
931947

932-
#: src/Packetery/Module/Options/Page.php:778
948+
#: src/Packetery/Module/Options/Page.php:788
933949
msgid "Validate sender"
934950
msgstr ""
935951

936-
#: src/Packetery/Module/Options/Page.php:779
952+
#: src/Packetery/Module/Options/Page.php:789
937953
msgid "Support"
938954
msgstr ""
939955

940-
#: src/Packetery/Module/Options/Page.php:780
956+
#: src/Packetery/Module/Options/Page.php:790
941957
msgid "By clicking the button, you will export the settings of your plugin into a separate file. The export does not contain any sensitive information about your e-shop. Please send the resulting file to the technical support of Packeta (you can find the e-mail address here:"
942958
msgstr ""
943959

944-
#: src/Packetery/Module/Options/Page.php:784
960+
#: src/Packetery/Module/Options/Page.php:794
945961
msgid ") along with the description of your problem. For a better understanding of your problem, we recommend adding screenshots, which show the problem (if possible)."
946962
msgstr ""
947963

948-
#: src/Packetery/Module/Options/Page.php:788
964+
#: src/Packetery/Module/Options/Page.php:798
949965
msgid "Export the plugin settings"
950966
msgstr ""
951967

952-
#: src/Packetery/Module/Options/Page.php:789
968+
#: src/Packetery/Module/Options/Page.php:799
953969
msgid "Date and time of the last export of settings"
954970
msgstr ""
955971

956-
#: src/Packetery/Module/Options/Page.php:790
972+
#: src/Packetery/Module/Options/Page.php:800
957973
msgid "The settings have not been exported yet."
958974
msgstr ""
959975

960976
#. translators: 1: emphasis start 2: emphasis end 3: client section link start 4: client section link end
961-
#: src/Packetery/Module/Options/Page.php:793
977+
#: src/Packetery/Module/Options/Page.php:803
962978
msgid "Fill here %1$ssender label%2$s - you will find it in %3$sclient section%4$s - user information - field 'Indication'."
963979
msgstr ""
964980

965-
#: src/Packetery/Module/Options/Page.php:799
981+
#: src/Packetery/Module/Options/Page.php:809
966982
msgid "This parameter is used to determine the weight of the packaging material. This value is automatically added to the total weight of each order that contains products with non-zero weight. This value is also taken into account when evaluating the weight rules in the cart."
967983
msgstr ""
968984

969-
#: src/Packetery/Module/Options/Page.php:800
985+
#: src/Packetery/Module/Options/Page.php:810
970986
msgid "This value is automatically added to the total weight of each order that contains products with zero weight."
971987
msgstr ""
972988

973-
#: src/Packetery/Module/Options/Page.php:801
989+
#: src/Packetery/Module/Options/Page.php:811
974990
msgid "These dimensions will be applied to the packet by default, if required by the carrier."
975991
msgstr ""
976992

977-
#: src/Packetery/Module/Options/Page.php:802
993+
#: src/Packetery/Module/Options/Page.php:812
994+
msgid "If you have trouble displaying the widget button in the checkout, you can force what type of checkout you are using."
995+
msgstr ""
996+
997+
#: src/Packetery/Module/Options/Page.php:813
978998
msgid "Packet status tracking"
979999
msgstr ""
9801000

981-
#: src/Packetery/Module/Options/Page.php:803
1001+
#: src/Packetery/Module/Options/Page.php:814
9821002
msgid "Order statuses, for which cron will check the packet status"
9831003
msgstr ""
9841004

985-
#: src/Packetery/Module/Options/Page.php:804
1005+
#: src/Packetery/Module/Options/Page.php:815
9861006
msgid "Cron will automatically track all orders with these statuses and check if the shipment status has changed."
9871007
msgstr ""
9881008

989-
#: src/Packetery/Module/Options/Page.php:805
1009+
#: src/Packetery/Module/Options/Page.php:816
9901010
msgid "Packet statuses that are being checked"
9911011
msgstr ""
9921012

993-
#: src/Packetery/Module/Options/Page.php:806
1013+
#: src/Packetery/Module/Options/Page.php:817
9941014
msgid "If an order has a shipment with one of these selected statuses, the shipment status will be tracked."
9951015
msgstr ""
9961016

997-
#: src/Packetery/Module/Options/Page.php:807
1017+
#: src/Packetery/Module/Options/Page.php:818
9981018
msgid "Number of days after the creation of an order, during which the order status will be checked."
9991019
msgstr ""
10001020

1001-
#: src/Packetery/Module/Options/Page.php:808
1021+
#: src/Packetery/Module/Options/Page.php:819
10021022
msgid "If this option is active, the widget for selecting pickup points will open automatically after selecting the shipping method at the checkout."
10031023
msgstr ""
10041024

1005-
#: src/Packetery/Module/Options/Page.php:809
1025+
#: src/Packetery/Module/Options/Page.php:820
10061026
msgid "Change order status after data submission to Packeta."
10071027
msgstr ""
10081028

1009-
#: src/Packetery/Module/Options/Page.php:810
1029+
#: src/Packetery/Module/Options/Page.php:821
10101030
msgid "If enabled, \"FREE\" will be displayed after the name of the shipping method, if free shipping is applied."
10111031
msgstr ""
10121032

1013-
#: src/Packetery/Module/Options/Page.php:811
1033+
#: src/Packetery/Module/Options/Page.php:822
10141034
msgid "Order status change settings"
10151035
msgstr ""
10161036

1017-
#: src/Packetery/Module/Options/Page.php:812
1037+
#: src/Packetery/Module/Options/Page.php:823
10181038
msgid "Dimensions"
10191039
msgstr ""
10201040

1021-
#: src/Packetery/Module/Options/Provider.php:477
1041+
#: src/Packetery/Module/Options/Provider.php:495
10221042
msgid "1/4 A4, print on A4, 4pcs/page"
10231043
msgstr ""
10241044

1025-
#: src/Packetery/Module/Options/Provider.php:482
1045+
#: src/Packetery/Module/Options/Provider.php:500
10261046
msgid "1/4 A4, direct print, 1pc/page"
10271047
msgstr ""
10281048

1029-
#: src/Packetery/Module/Options/Provider.php:487
1049+
#: src/Packetery/Module/Options/Provider.php:505
10301050
msgid "1/8 A4, direct print, 1pc/page"
10311051
msgstr ""
10321052

1033-
#: src/Packetery/Module/Options/Provider.php:492
1053+
#: src/Packetery/Module/Options/Provider.php:510
10341054
msgid "1/8 A4, print on A4, 8pcs/page"
10351055
msgstr ""
10361056

1037-
#: src/Packetery/Module/Options/Provider.php:497
1057+
#: src/Packetery/Module/Options/Provider.php:515
10381058
msgid "105x35mm, print on A4, 16 pcs/page"
10391059
msgstr ""
10401060

1041-
#: src/Packetery/Module/Options/Provider.php:502
1061+
#: src/Packetery/Module/Options/Provider.php:520
10421062
msgid "1/16 A4, direct print, 1pc/page"
10431063
msgstr ""
10441064

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: 1.8.1
11+
* Version: 1.8.2
1212
* Author: Zásilkovna s.r.o.
1313
* Author URI: https://www.zasilkovna.cz/
1414
* Text Domain: packeta

readme.txt

Lines changed: 4 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.6.2
6-
Stable tag: 1.8.1
6+
Stable tag: 1.8.2
77
Requires PHP: 7.2
88
WC requires at least: 4.5
99
WC tested up to: 9.3.3
@@ -64,6 +64,9 @@ We are constantly working on adding new features. You can find a list of feature
6464
Please contact us at [email protected] .
6565

6666
== Changelog ==
67+
= 1.8.2 =
68+
Added: Now the user has the possibility to force which type of checkout he uses (block-based or classic).
69+
6770
= 1.8.1 =
6871
Fixed: Error in bulk label printing.
6972

0 commit comments

Comments
 (0)