Advanced Shipment Tracking for WooCommerce - Version 2.8.8

Version Description

  • Added "Date" in simple layout tracking display format
  • Added missing plain email template tracking-info.php
  • Updated sample csv file for bulk import
  • Updated date format for bulk import from dd-mm-YYYY to dd/mm/YYYY
Download this release

Release Info

Developer zorem
Plugin Icon 128x128 Advanced Shipment Tracking for WooCommerce
Version 2.8.8
Comparing to
See all releases

Code changes from version 2.7 to 2.8.8

Files changed (122) hide show
  1. assets/css/admin.css +504 -174
  2. assets/css/customizer-styles.css +24 -1
  3. assets/css/front.css +202 -33
  4. assets/css/icons/Late-Shipments-512.png +0 -0
  5. assets/css/icons/invalid-v3.png +0 -0
  6. assets/css/icons/late-shipment-v3.png +0 -0
  7. assets/css/icons/updated-tracking-icon.png +0 -0
  8. assets/images/Tracking-Per-Item-addon-sidebar.png +0 -0
  9. assets/images/Tracking-Per-Item-addon.jpg +0 -0
  10. assets/images/ast-addons-notice-image.jpg +0 -0
  11. assets/images/smswoo.png +0 -0
  12. assets/images/t_layout_1.jpg +0 -0
  13. assets/images/t_layout_2.jpg +0 -0
  14. assets/images/tracking-1.png +0 -0
  15. assets/images/tracking-2.png +0 -0
  16. assets/images/trackship-logo.png +0 -0
  17. assets/images/trackship-sidebar-addons.png +0 -0
  18. assets/images/ts-banner.jpg +0 -0
  19. assets/js/admin.js +127 -41
  20. assets/js/customizer-scripts.js +252 -49
  21. assets/js/front.js +37 -1
  22. assets/js/preview-scripts.js +76 -25
  23. assets/js/settings.js +64 -19
  24. assets/js/shipping_row.js +294 -16
  25. assets/shipment-provider-img/7-eleven.png +0 -0
  26. assets/shipment-provider-img/bpost.png +0 -0
  27. assets/shipment-provider-img/brt.png +0 -0
  28. assets/shipment-provider-img/ceska-posta.png +0 -0
  29. assets/shipment-provider-img/chit-chats.png +0 -0
  30. assets/shipment-provider-img/cj-logistics.png +0 -0
  31. assets/shipment-provider-img/cjpacket.png +0 -0
  32. assets/shipment-provider-img/cne-express.png +0 -0
  33. assets/shipment-provider-img/correos-express.png +0 -0
  34. assets/shipment-provider-img/courierpost.png +0 -0
  35. assets/shipment-provider-img/dicom.png +0 -0
  36. assets/shipment-provider-img/dpd-fr.png +0 -0
  37. assets/shipment-provider-img/dpd-pt.png +0 -0
  38. assets/shipment-provider-img/ekart.png +0 -0
  39. assets/shipment-provider-img/gig-logistics.png +0 -0
  40. assets/shipment-provider-img/gls-denmark.png +0 -0
  41. assets/shipment-provider-img/hfd.png +0 -0
  42. assets/shipment-provider-img/jcex.png +0 -0
  43. assets/shipment-provider-img/jet-express.png +0 -0
  44. assets/shipment-provider-img/jne.png +0 -0
  45. assets/shipment-provider-img/jt.png +0 -0
  46. assets/shipment-provider-img/lion-parcel.png +0 -0
  47. assets/shipment-provider-img/lithuania-post.png +0 -0
  48. assets/shipment-provider-img/luxembourg-post.png +0 -0
  49. assets/shipment-provider-img/magyar-posta.png +0 -0
  50. assets/shipment-provider-img/mrw.png +0 -0
  51. assets/shipment-provider-img/new-zealand-courierpost.png +0 -0
  52. assets/shipment-provider-img/ninja-express.png +0 -0
  53. assets/shipment-provider-img/ontime.png +0 -0
  54. assets/shipment-provider-img/pos-indonesia.png +0 -0
  55. assets/shipment-provider-img/poste-italiane.png +0 -0
  56. assets/shipment-provider-img/redpack.png +0 -0
  57. assets/shipment-provider-img/rides.png +0 -0
  58. assets/shipment-provider-img/russian-post.png +0 -0
  59. assets/shipment-provider-img/saudi-post.png +0 -0
  60. assets/shipment-provider-img/shadowfax.png +0 -0
  61. assets/shipment-provider-img/shree-maruti-courier.png +0 -0
  62. assets/shipment-provider-img/shree-tirupati-courier.png +0 -0
  63. assets/shipment-provider-img/sicepat.png +0 -0
  64. assets/shipment-provider-img/skynet-worldwide-express.png +0 -0
  65. assets/shipment-provider-img/skynet.png +0 -0
  66. assets/shipment-provider-img/spee-dee.png +0 -0
  67. assets/shipment-provider-img/thailand-post.png +0 -0
  68. assets/shipment-provider-img/tiki.png +0 -0
  69. assets/shipment-provider-img/tipsa.png +0 -0
  70. assets/shipment-provider-img/toll-ipec.png +0 -0
  71. assets/shipment-provider-img/yamato.png +0 -0
  72. assets/shipment-provider-img/yodel.png +0 -0
  73. assets/tracking.csv +3 -3
  74. includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php +58 -33
  75. includes/class-wc-advanced-shipment-tracking-admin.php +464 -907
  76. includes/class-wc-advanced-shipment-tracking-front.php +858 -508
  77. includes/class-wc-advanced-shipment-tracking-install.php +380 -53
  78. includes/class-wc-advanced-shipment-tracking-late-shipments.php +303 -0
  79. includes/class-wc-advanced-shipment-tracking-license.php +332 -0
  80. includes/class-wc-advanced-shipment-tracking-settings.php +965 -0
  81. includes/class-wc-advanced-shipment-tracking.php +263 -121
  82. includes/customizer/class-wc-availableforpickup-email-customizer.php +71 -40
  83. includes/customizer/class-wc-delivered-email-customizer.php +71 -40
  84. includes/customizer/class-wc-email-customizer.php +38 -22
  85. includes/customizer/class-wc-failure-email-customizer.php +73 -41
  86. includes/customizer/class-wc-intransit-email-customizer.php +72 -39
  87. includes/customizer/class-wc-late-shipments-email-customizer.php +540 -0
  88. includes/customizer/class-wc-outfordelivery-email-customizer.php +73 -41
  89. includes/customizer/class-wc-partial-shipped-email-customizer.php +24 -14
  90. includes/customizer/class-wc-returntosender-email-customizer.php +70 -39
  91. includes/customizer/class-wc-tracking-info-customizer.php +334 -157
  92. includes/customizer/class-wc-updated-tracking-email-customizer.php +430 -0
  93. includes/customizer/class-wcast-customizer.php +63 -16
  94. includes/customizer/custom-controls.php +1 -1
  95. includes/customizer/preview/late_shipments_preview.php +30 -0
  96. includes/customizer/preview/updated_tracking_preview.php +30 -0
  97. includes/email-manager.php +108 -159
  98. includes/emails/class-shipment-delivered-email.php +27 -15
  99. includes/emails/class-shipment-partial-shipped-email.php +3 -3
  100. includes/emails/class-shipment-updated-tracking-email.php +184 -0
  101. includes/vendor/persist-admin-notices-dismissal/dismiss-notice.js +37 -0
  102. includes/vendor/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php +1 -1
  103. includes/views/admin_options_addons.php +178 -0
  104. includes/views/admin_options_bulk_upload.php +27 -8
  105. includes/views/admin_options_settings.php +106 -24
  106. includes/views/admin_options_shipping_provider.php +20 -13
  107. includes/views/admin_options_tools.php +25 -26
  108. includes/views/admin_options_trackship_integration.php +28 -224
  109. includes/views/admin_status_notifications.php +120 -0
  110. includes/views/admin_tracking_page_settings.php +132 -0
  111. includes/views/admin_trackship_dashboard.php +84 -0
  112. includes/views/zorem_admin_addons_sidebar.php +30 -0
  113. includes/views/zorem_admin_sidebar.php +49 -37
  114. includes/views/zorem_admin_ts_sidebar.php +0 -32
  115. lang/woo-advanced-shipment-tracking-bg_BG.mo +0 -0
  116. lang/woo-advanced-shipment-tracking-bg_BG.po +1011 -445
  117. lang/woo-advanced-shipment-tracking-da_DK.mo +0 -0
  118. lang/woo-advanced-shipment-tracking-da_DK.po +1001 -451
  119. lang/woo-advanced-shipment-tracking-de_DE.mo +0 -0
  120. lang/woo-advanced-shipment-tracking-de_DE.po +1077 -423
  121. lang/woo-advanced-shipment-tracking-el.mo +0 -0
  122. lang/woo-advanced-shipment-tracking-el.po +797 -356
assets/css/admin.css CHANGED
@@ -37,6 +37,12 @@
37
  width: 100%
38
  }
39
  #woocommerce-advanced-shipment-tracking input[type=checkbox]{
 
 
 
 
 
 
40
  margin: 0px 4px 0 4px;
41
  }
42
  #woocommerce-advanced-shipment-tracking .preview_tracking_link {
@@ -81,18 +87,20 @@ section.tab_section {
81
  display: none;
82
  padding: 0 30px 30px;
83
  border-top: 1px solid #ddd;
84
- background: rgb(245, 248, 250);
 
 
 
85
  }
86
  section.tpage_section{
87
  display: none;
88
  }
89
- input.tab_input {
90
  display: none;
91
  }
92
  label.tab_label {
93
  text-decoration: none;
94
- padding: 17px 0 15px;
95
- border-bottom: 2px solid #fff;
96
  font-size: 14px;
97
  color: #393f4c;
98
  display: inline-block;
@@ -100,6 +108,16 @@ label.tab_label {
100
  line-height: 1;
101
  outline: none;
102
  }
 
 
 
 
 
 
 
 
 
 
103
  label.tab_label.first_label {
104
  margin-left: 30px;
105
  }
@@ -112,9 +130,9 @@ label.tab_label:hover {
112
  color: #74C2E1;
113
  cursor: pointer;
114
  }
115
- input.tab_input:checked + label {
116
  color: #74C2E1;
117
- border-bottom-color: #74C2E1;
118
  margin-bottom: -1px;
119
  }
120
  input.tab_input_1 {
@@ -134,13 +152,16 @@ input.tab_input_1:checked + label{
134
  display: table-cell;
135
  vertical-align: top;
136
  }
 
 
 
137
  #content1 .tab_inner_container{
138
  display: block;
139
  }
140
  .tab_inner_container h4 {
141
  margin-top: 0;
142
  }
143
- #tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3, #tab4:checked ~ #content4, #tab5:checked ~ #content5, #tab6:checked ~ #content6, #tab7:checked ~ #content7, #tab8:checked ~ #content8, #tab9:checked ~ #content9, #tab10:checked ~ #content10 {
144
  display: block;
145
  }
146
  .shipping_add_field {
@@ -157,17 +178,24 @@ input.tab_input_1:checked + label{
157
  width: 280px;
158
  display: table-cell;
159
  vertical-align: top;
160
- padding: 25px 0px 25px 30px;
 
 
 
 
161
  }
162
  .zorem_admin_layout .zorem_admin_sidebar h3{
163
- margin: 0 0 1em 0;
164
- background: #fff;
165
  color: #005B9A;
166
  border-bottom: 1px solid #eee;
167
- padding: 15px 15px;
 
 
 
 
168
  }
169
  .zorem_admin_layout .zorem_admin_sidebar p,.zorem_admin_layout .zorem_admin_sidebar a{
170
- margin: 10px 10px 10px 15px;
171
  }
172
  .zorem-sidebar-title {
173
  padding: 10px 0;
@@ -175,11 +203,8 @@ input.tab_input_1:checked + label{
175
  color: #1ead94;
176
  line-height: 15px;
177
  }
178
- .zorem-sidebar__section {
179
- padding: 0;
180
- background: #fff;
181
- border: 1px solid #eee;
182
- margin-bottom: 10px;
183
  }
184
  ..zorem-sidebar__section li:before {
185
  position: absolute;
@@ -188,10 +213,11 @@ input.tab_input_1:checked + label{
188
  }
189
  .zorem-sidebar__section ul {
190
  position: relative;
191
- margin: 10px 10px 10px 15px;
192
  }
193
  .zorem-sidebar__section li {
194
  list-style: none;
 
195
  }
196
  .zorem-sidebar__section li img.plugin_thumbnail {
197
  width: 60px;
@@ -208,6 +234,22 @@ input.tab_input_1:checked + label{
208
  .zorem-sidebar__section div a {
209
  color: #0085ba;
210
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  .shipping_provider_tab {
212
  width: 100%;
213
  display: block;
@@ -299,10 +341,6 @@ input.tab_input_1:checked + label{
299
  margin-top: 20px;
300
  padding: 10px 15px;
301
  }
302
- .order-status.status-delivered {
303
- color: #fff;
304
- background: #212c42;
305
- }
306
  #woocommerce-advanced-shipment-tracking #advanced-shipment-tracking-form {
307
  display: none;
308
  }
@@ -313,7 +351,7 @@ input.tab_input_1:checked + label{
313
  width: 30%;
314
  }
315
  .ast_admin_content .form-table th.titledesc {
316
- width: 50%;
317
  }
318
  .woocommerce .ast_admin_content table.form-table th label .woocommerce-help-tip{
319
  margin: -4px 0 0 5px;
@@ -346,7 +384,7 @@ input.tab_input_1:checked + label{
346
  .ast_admin_content .form-table .wp-color-result.button {
347
  margin: 0 6px 0px 0;
348
  }
349
- #wc_ast_status_label_color,#wc_ast_status_partial_shipped_label_color {
350
  width: 80px;
351
  }
352
  .color_field input[type=text] {
@@ -593,12 +631,9 @@ td.column-columnname.url-column {
593
  .form-table td p{
594
  margin: 0;
595
  }
596
- #wc_ast_settings_form .form-table tr,#wc_ast_trackship_form .form-table tr,#wc_ast_upload_csv_form .form-table tr{
597
  border-bottom: 1px solid #eee;
598
  }
599
- a.settings_edit {
600
- margin-left: 10px;
601
- }
602
  input#wc_ast_api_key {
603
  width: 260px;
604
  }
@@ -622,8 +657,7 @@ span.api_connected .dashicons.dashicons-yes {
622
  .ac-container .headig_label {
623
  padding: 15px 20px 15px 60px;
624
  margin-bottom: 0;
625
- position: relative;
626
- z-index: 20;
627
  display: block;
628
  cursor: default;
629
  color: #777;
@@ -813,8 +847,20 @@ span.email_status_span i:hover,span.email_status_span i:focus{
813
  span.email_status_span i.enable {
814
  color: #83bd31;
815
  }
 
 
 
 
 
 
 
 
 
 
 
 
816
  .ast-shipment-status i {
817
- font-size: 18px;
818
  }
819
  .label_content {
820
  font-weight: 600;
@@ -832,14 +878,14 @@ span.email_status_span i.enable {
832
  margin-right: 10px;
833
  }
834
  .wcast-shipment-status-icon span{
835
- margin-top: 4px;
836
  display: inline-block;
837
  }
838
  .wcast-shipment-status-icon .icon-invalid_user_key:before{
839
  content: ' ';
840
  background-image: url(icons/invalid-user-key-v4.png);
841
- width: 20px;
842
- height: 20px;
843
  background-size: cover;
844
  display: inline-block;
845
  vertical-align: middle;
@@ -847,8 +893,8 @@ span.email_status_span i.enable {
847
  .wcast-shipment-status-icon .icon-delivered:before{
848
  content: ' ';
849
  background-image: url(icons/delivered-v4.png);
850
- width: 20px;
851
- height: 20px;
852
  background-size: cover;
853
  display: inline-block;
854
  vertical-align: middle;
@@ -856,8 +902,8 @@ span.email_status_span i.enable {
856
  .wcast-shipment-status-icon .icon-in_transit:before{
857
  content: ' ';
858
  background-image: url(icons/in-transit-v4.png);
859
- width: 20px;
860
- height: 20px;
861
  background-size: cover;
862
  display: inline-block;
863
  vertical-align: middle;
@@ -865,8 +911,8 @@ span.email_status_span i.enable {
865
  .wcast-shipment-status-icon .icon-pre_transit:before{
866
  content: ' ';
867
  background-image: url(icons/pre-transit-v4.png);
868
- width: 20px;
869
- height: 20px;
870
  background-size: cover;
871
  display: inline-block;
872
  vertical-align: middle;
@@ -874,8 +920,8 @@ span.email_status_span i.enable {
874
  .wcast-shipment-status-icon .icon-out_for_delivery:before{
875
  content: ' ';
876
  background-image: url(icons/out-for-delivery-v4.png);
877
- width: 20px;
878
- height: 20px;
879
  background-size: cover;
880
  display: inline-block;
881
  vertical-align: middle;
@@ -883,8 +929,8 @@ span.email_status_span i.enable {
883
  .wcast-shipment-status-icon .icon-available_for_pickup:before{
884
  content: ' ';
885
  background-image: url(icons/available-for-picup-v4.png);
886
- width: 20px;
887
- height: 20px;
888
  background-size: cover;
889
  display: inline-block;
890
  vertical-align: middle;
@@ -892,8 +938,8 @@ span.email_status_span i.enable {
892
  .wcast-shipment-status-icon .icon-return_to_sender:before{
893
  content: ' ';
894
  background-image: url(icons/return-to-sender-v4.png);
895
- width: 20px;
896
- height: 20px;
897
  background-size: cover;
898
  display: inline-block;
899
  vertical-align: middle;
@@ -901,8 +947,8 @@ span.email_status_span i.enable {
901
  .wcast-shipment-status-icon .icon-failure:before{
902
  content: ' ';
903
  background-image: url(icons/failure-v4.png);
904
- width: 20px;
905
- height: 20px;
906
  background-size: cover;
907
  display: inline-block;
908
  vertical-align: middle;
@@ -910,8 +956,8 @@ span.email_status_span i.enable {
910
  .wcast-shipment-status-icon .icon-unknown:before{
911
  content: ' ';
912
  background-image: url(icons/unknown-v4.png);
913
- width: 20px;
914
- height: 20px;
915
  background-size: cover;
916
  display: inline-block;
917
  vertical-align: middle;
@@ -919,8 +965,8 @@ span.email_status_span i.enable {
919
  .wcast-shipment-status-icon .icon-pending_trackship:before{
920
  content: ' ';
921
  background-image: url(icons/pending-trackship-v4.png);
922
- width: 20px;
923
- height: 20px;
924
  background-size: cover;
925
  display: inline-block;
926
  vertical-align: middle;
@@ -928,8 +974,8 @@ span.email_status_span i.enable {
928
  .wcast-shipment-status-icon .icon-INVALID_TRACKING_NUM:before{
929
  content: ' ';
930
  background-image: url(icons/invalid-v3.png);
931
- width: 20px;
932
- height: 20px;
933
  background-size: cover;
934
  display: inline-block;
935
  vertical-align: middle;
@@ -937,8 +983,8 @@ span.email_status_span i.enable {
937
  .wcast-shipment-status-icon .icon-wrong_shipping_provider:before{
938
  content: ' ';
939
  background-image: url(icons/invalid-v3.png);
940
- width: 20px;
941
- height: 20px;
942
  background-size: cover;
943
  display: inline-block;
944
  vertical-align: middle;
@@ -946,8 +992,8 @@ span.email_status_span i.enable {
946
  .wcast-shipment-status-icon .icon-default:before{
947
  content: ' ';
948
  background-image: url(icons/invalid-v3.png);
949
- width: 20px;
950
- height: 20px;
951
  background-size: cover;
952
  display: inline-block;
953
  vertical-align: middle;
@@ -955,119 +1001,132 @@ span.email_status_span i.enable {
955
  .ast-shipment-status .icon-default:before{
956
  content: ' ';
957
  background-image: url(icons/invalid-v3.png);
958
- width: 20px;
959
- height: 20px;
960
  background-size: cover;
961
  display: inline-block;
962
- vertical-align: middle;
 
963
  }
964
  .ast-shipment-status .icon-INVALID_TRACKING_NUM:before{
965
  content: ' ';
966
  background-image: url(icons/invalid-v3.png);
967
- width: 20px;
968
- height: 20px;
969
  background-size: cover;
970
  display: inline-block;
971
- vertical-align: middle;
 
972
  }
973
  .ast-shipment-status .icon-wrong_shipping_provider:before{
974
  content: ' ';
975
  background-image: url(icons/invalid-v3.png);
976
- width: 20px;
977
- height: 20px;
978
  background-size: cover;
979
  display: inline-block;
980
- vertical-align: middle;
 
981
  }
982
  .ast-shipment-status .icon-delivered:before{
983
  content: ' ';
984
  background-image: url(icons/delivered-v4.png);
985
- width: 20px;
986
- height: 20px;
987
  background-size: cover;
988
  display: inline-block;
989
- vertical-align: middle;
 
990
  }
991
  .ast-shipment-status .icon-in_transit:before{
992
  content: ' ';
993
  background-image: url(icons/in-transit-v4.png);
994
- width: 20px;
995
- height: 20px;
996
  background-size: cover;
997
  display: inline-block;
998
- vertical-align: middle;
 
999
  }
1000
  .ast-shipment-status .icon-pre_transit:before{
1001
  content: ' ';
1002
  background-image: url(icons/pre-transit-v4.png);
1003
- width: 20px;
1004
- height: 20px;
1005
  background-size: cover;
1006
  display: inline-block;
1007
- vertical-align: middle;
 
1008
  }
1009
  .ast-shipment-status .icon-out_for_delivery:before{
1010
  content: ' ';
1011
  background-image: url(icons/out-for-delivery-v4.png);
1012
- width: 20px;
1013
- height: 20px;
1014
  background-size: cover;
1015
  display: inline-block;
1016
- vertical-align: middle;
 
1017
  }
1018
  .ast-shipment-status .icon-available_for_pickup:before{
1019
  content: ' ';
1020
  background-image: url(icons/available-for-picup-v4.png);
1021
- width: 20px;
1022
- height: 20px;
1023
  background-size: cover;
1024
  display: inline-block;
1025
- vertical-align: middle;
 
1026
  }
1027
  .ast-shipment-status .icon-return_to_sender:before{
1028
  content: ' ';
1029
  background-image: url(icons/return-to-sender-v4.png);
1030
- width: 20px;
1031
- height: 20px;
1032
  background-size: cover;
1033
  display: inline-block;
1034
- vertical-align: middle;
 
1035
  }
1036
  .ast-shipment-status .icon-failure:before{
1037
  content: ' ';
1038
  background-image: url(icons/failure-v4.png);
1039
- width: 20px;
1040
- height: 20px;
1041
  background-size: cover;
1042
  display: inline-block;
1043
- vertical-align: middle;
 
1044
  }
1045
  .ast-shipment-status .icon-unknown:before{
1046
  content: ' ';
1047
  background-image: url(icons/unknown-v4.png);
1048
- width: 20px;
1049
- height: 20px;
1050
  background-size: cover;
1051
  display: inline-block;
1052
- vertical-align: middle;
 
1053
  }
1054
  .ast-shipment-status .icon-pending_trackship:before{
1055
  content: ' ';
1056
  background-image: url(icons/pending-trackship-v4.png);
1057
- width: 20px;
1058
- height: 20px;
1059
  background-size: cover;
1060
  display: inline-block;
1061
- vertical-align: middle;
 
1062
  }
1063
  .ast-shipment-status .icon-invalid_user_key:before{
1064
  content: ' ';
1065
  background-image: url(icons/invalid-user-key-v4.png);
1066
- width: 20px;
1067
- height: 20px;
1068
  background-size: cover;
1069
  display: inline-block;
1070
- vertical-align: middle;
 
1071
  }
1072
 
1073
  .wcast-shipment-status-icon i {
@@ -1086,7 +1145,7 @@ span.email_status_span i.enable {
1086
  .icon-pending_trackship {
1087
  color: #CCCC00;
1088
  }
1089
- .wcast-shipment-est-delivery {
1090
  display: block;
1091
  }
1092
  .showif_has_est_delivery_0, .showif_has_est_delivery_1 {
@@ -1113,11 +1172,12 @@ span.email_status_span i.enable {
1113
  font-size: 11px;
1114
  }
1115
  .wcast-tracking-number-list li, .wcast-shipment-status-list li {
1116
- position:relative;
1117
- border: 1px solid #eee;
1118
- padding: 5px 10px;
1119
  min-height: 50px;
1120
  box-sizing: border-box;
 
1121
  }
1122
  a.inline_tracking_delete{
1123
  display:none;
@@ -1219,7 +1279,7 @@ a.cancel_edit {
1219
  padding-bottom: 40px;
1220
  }
1221
  .woocommerce_page_woocommerce-advanced-shipment-tracking #wpfooter{
1222
- background: rgb(245, 248, 250);
1223
  }
1224
  .woocommerce_page_woocommerce-advanced-shipment-tracking .white-bg{
1225
  background: #fff;
@@ -1353,17 +1413,17 @@ span.provider_name {
1353
  font-weight: 500;
1354
  font-size: 14px;
1355
  }
1356
- .row-1 {
1357
  margin-bottom: 0;
1358
  display: flex;
1359
  align-items: start;
1360
  }
1361
- .row-1:after {
1362
  content: '';
1363
  clear: both;
1364
  display: block;
1365
  }
1366
- .row-2 {
1367
  margin-top: 15px;
1368
  border-top: 1px solid #ccc;
1369
  padding-top: 10px;
@@ -1383,7 +1443,7 @@ span.provider_name {
1383
  float: right;
1384
  padding-right: 10px;
1385
  }
1386
- .row-2:after{
1387
  content:'';
1388
  clear:both;
1389
  display: block;
@@ -1394,9 +1454,10 @@ span.provider_name {
1394
  }
1395
  .status_filter {
1396
  margin: 10px 8px 10px 0;
1397
- display:inline-block;
1398
  }
1399
  .status_filter a{
 
1400
  padding: 0 5px;
1401
  text-decoration: none;
1402
  }
@@ -1408,19 +1469,21 @@ a.active{
1408
  color:#74C2E1;
1409
  }
1410
  .search_section {
1411
- display: inline-block;
1412
- float: right;
1413
  }
1414
  #search_provider{
1415
- width: 264px;
1416
- padding-top: 5px;
1417
- padding-bottom: 5px;
1418
- border-radius: 3px;
1419
- padding-left: 30px;
 
 
1420
  }
1421
  .search_section .search-icon{
1422
  position: absolute;
1423
- padding: 5px;
 
1424
  }
1425
  .provider_settings {
1426
  display: inline-block;
@@ -1435,65 +1498,61 @@ a.active{
1435
  display:block;
1436
  }
1437
  .provider_top {
1438
- position: relative;
1439
- margin: 10px 0;
 
 
1440
  }
1441
- .dropdown {
1442
- position: relative;
1443
- display: inline-block;
 
1444
  }
1445
 
1446
- .dropdown-content {
1447
- display: none;
 
 
 
 
 
 
 
1448
  position: absolute;
1449
- right: 0;
1450
- background-color: #f9f9f9;
1451
- min-width: 220px;
1452
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
1453
- z-index: 100;
1454
- border: 1px solid #ccc;
1455
- padding: .5rem;
1456
- margin-top: 0;
1457
  }
1458
- .dropdown-content li {
1459
- margin-bottom: 0;
1460
- border-bottom: 1px solid #ebeef2;
1461
- padding: .5rem;
1462
  }
1463
- .dropdown-content li a {
1464
- color: black;
1465
- text-decoration: none;
1466
- display: block;
1467
-
1468
- }
1469
- .dropdown-content li a.reset_active,.dropdown-content li a.reset_inactive{
1470
- display: inline-block;
1471
- color: #0073aa;
1472
  }
1473
- .dropdown-content li:last-child{
1474
- border-bottom: none;
 
1475
  }
1476
- .dropdown-content li:hover {background-color: #f1f1f1;}
1477
- /*.dropdown:hover .dropdown-content {display: block;}*/
1478
-
1479
  .dropdown_menu{
1480
  cursor: pointer;
1481
  padding: 0 5px 10px;
1482
  }
1483
- .dropdown-content:before{
1484
- content: '';
1485
- width: .75rem;
1486
- height: .75rem;
1487
- position: absolute;
1488
- z-index: 1;
1489
- top: -0.375rem;
1490
- right: 8px;
1491
- background-color: #fff;
1492
- transform: rotate(45deg);
1493
- /* box-shadow: -1px -1px 1px rgba(0,0,0,0.125); */
1494
- border: 1px solid #aebacc;
1495
- border-width: 1px 0 0 1px;
1496
- margin-top: -1px;
1497
  }
1498
  .mdl-dialog.add_custom_dialog{
1499
  width: 600px;
@@ -1539,9 +1598,9 @@ a.active{
1539
  .popuprow {
1540
  display: inline-block;
1541
  vertical-align: middle;
1542
- max-width: 300px;
1543
  background: #f9f9f9;
1544
- padding: 30px;
1545
  position: relative;
1546
  z-index: 10;
1547
  border-radius: 2px;
@@ -1549,17 +1608,19 @@ a.active{
1549
  width: calc(100% - 5px);
1550
  max-height: 90%;
1551
  overflow-y: overlay;
 
1552
  }
1553
- .how_to_video_popup .popuprow{
1554
  max-width: 700px;
1555
  padding: 0;
1556
  }
1557
  .trackingpopup_row {
1558
  display: inline-block;
1559
  vertical-align: middle;
1560
- max-width: 300px;
 
1561
  background: #f9f9f9;
1562
- padding: 30px;
1563
  position: relative;
1564
  z-index: 10;
1565
  border-radius: 2px;
@@ -1580,19 +1641,28 @@ a.active{
1580
  line-height: 24px;
1581
  color: #0d0d0d;
1582
  width: 100%;
1583
- margin-bottom: 10px;
1584
- /*border: 1px solid #ddd !important;*/
1585
  }
1586
  .popupwrapper input[type=text].image_path,.trackingpopup_wrapper input[type=text].image_path{
1587
- width: 68%;
1588
  }
1589
  .popupwrapper select,.popupwrapper .select2,.trackingpopup_wrapper select,.trackingpopup_wrapper .select2{
1590
  line-height: 24px;
1591
  color: #0d0d0d;
1592
  width: 100%;
1593
  margin-bottom: 10px;
1594
- height: 32px;
1595
- /*border: 1px solid #ddd !important;*/
 
 
 
 
 
 
 
 
 
 
1596
  }
1597
  .close-button{
1598
  background: #000 none repeat scroll 0 0;
@@ -1610,7 +1680,7 @@ a.active{
1610
  }
1611
  .change_order_to_shipped_field ul li {
1612
  display: inline-block;
1613
- margin-left: 5px;
1614
  }
1615
  .provider-status .mdl-switch{
1616
  width: auto;
@@ -1695,6 +1765,7 @@ p.delivered_message {
1695
  .woocommerce.zorem_admin_layout table.form-table.heading-table{
1696
  margin: 25px 0 0;
1697
  border-bottom: 0;
 
1698
  }
1699
  #wc_ast_settings_form table.form-table.heading-table tr,#wc_ast_trackship_form table.form-table.heading-table tr,#wc_ast_upload_csv_form table.form-table.heading-table tr{
1700
  border-bottom: 0;
@@ -1705,6 +1776,7 @@ p.delivered_message {
1705
  .woocommerce.zorem_admin_layout table.form-table.heading-table td h3{
1706
  margin: 0;
1707
  color:#005B9A;
 
1708
  }
1709
  .woocommerce.zorem_admin_layout table.form-table.heading-table td.button-column{
1710
  text-align:right;
@@ -1716,6 +1788,7 @@ p.delivered_message {
1716
  margin: 25px 0 0;
1717
  border-bottom: 0;
1718
  padding: 15px;
 
1719
  }
1720
  .zorem_admin_layout h3.table-heading:after{
1721
  content:'';
@@ -1726,6 +1799,7 @@ p.delivered_message {
1726
  }
1727
  .woocommerce.zorem_admin_layout table.form-table th{
1728
  padding: 20px 24px 20px 15px;
 
1729
  }
1730
  .woocommerce.zorem_admin_layout table.form-table td{
1731
  padding: 15px 15px;
@@ -1733,6 +1807,7 @@ p.delivered_message {
1733
  .woocommerce.zorem_admin_layout table.form-table th label{
1734
  font-weight: 400;
1735
  color: #444;
 
1736
  }
1737
  .woocommerce.zorem_admin_layout table.form-table p.description{
1738
  font-size: 0.9em;
@@ -1763,6 +1838,13 @@ p.tracking-preview-desc {
1763
  width: auto;
1764
  max-width: 400px;
1765
  min-width: 90px;
 
 
 
 
 
 
 
1766
  }
1767
  .trackship-icon{
1768
  width: 70px;
@@ -1772,6 +1854,9 @@ p.tracking-preview-desc {
1772
  text-align:left;
1773
  }
1774
  .add_tracking_number_form input[type=checkbox]{
 
 
 
1775
  margin: 0px 4px 0 4px;
1776
  }
1777
  .d_table{
@@ -1882,6 +1967,13 @@ p.tracking-preview-desc {
1882
  width: 100%;
1883
  height: 100%;
1884
  }
 
 
 
 
 
 
 
1885
  @media (max-width: 767px) {
1886
  .notice.ast-admin-notice {
1887
  padding: 10px;
@@ -2049,7 +2141,228 @@ section.widget_tab_section {
2049
  padding: 0;
2050
  margin: 0;
2051
  }
 
 
 
 
2052
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2053
  /*** RTL CSS ***/
2054
  .rtl.shipment_tracking_admin_settings #wpcontent {
2055
  padding-right: 0;
@@ -2159,7 +2472,8 @@ section.widget_tab_section {
2159
  width: 25%;
2160
  }
2161
  #search_provider{
2162
- width: 200px;
 
2163
  }
2164
  .provider-thumb {
2165
  height: 40px;
@@ -2168,6 +2482,13 @@ section.widget_tab_section {
2168
  width: 60%;
2169
  }
2170
  }
 
 
 
 
 
 
 
2171
  @media screen and (max-width: 750px) {
2172
  .d_table{
2173
  display:block;
@@ -2189,6 +2510,12 @@ section.widget_tab_section {
2189
  padding: 15px 0 15px;
2190
  margin-left: 30px;
2191
  }
 
 
 
 
 
 
2192
  }
2193
  @media screen and (max-width: 500px) {
2194
  .provider{
@@ -2205,4 +2532,7 @@ section.widget_tab_section {
2205
  #search_provider{
2206
  width: 100%;
2207
  }
 
 
 
2208
  }
37
  width: 100%
38
  }
39
  #woocommerce-advanced-shipment-tracking input[type=checkbox]{
40
+ margin: 0px 4px 0 0px;
41
+ }
42
+ #woocommerce-advanced-shipment-tracking .ast-product-table input[type=checkbox]{
43
+ margin: 0px 4px 0 4px;
44
+ }
45
+ #woocommerce-advanced-shipment-tracking #change_order_to_shipped_field{
46
  margin: 0px 4px 0 4px;
47
  }
48
  #woocommerce-advanced-shipment-tracking .preview_tracking_link {
87
  display: none;
88
  padding: 0 30px 30px;
89
  border-top: 1px solid #ddd;
90
+ background: #f7fafc;
91
+ }
92
+ section.inner_tab_section {
93
+ display: none;
94
  }
95
  section.tpage_section{
96
  display: none;
97
  }
98
+ input.tab_input,input.inner_tab_input {
99
  display: none;
100
  }
101
  label.tab_label {
102
  text-decoration: none;
103
+ padding: 17px 0 15px;
 
104
  font-size: 14px;
105
  color: #393f4c;
106
  display: inline-block;
108
  line-height: 1;
109
  outline: none;
110
  }
111
+ label.inner_tab_label {
112
+ text-decoration: none;
113
+ padding: 15px 0 5px;
114
+ font-size: 13px;
115
+ color: #393f4c;
116
+ display: inline-block;
117
+ margin-right: 15px;
118
+ line-height: 1;
119
+ outline: none;
120
+ }
121
  label.tab_label.first_label {
122
  margin-left: 30px;
123
  }
130
  color: #74C2E1;
131
  cursor: pointer;
132
  }
133
+ input.tab_input:checked + label,input.inner_tab_input:checked + label {
134
  color: #74C2E1;
135
+ border-bottom: 2px solid #74C2E1;
136
  margin-bottom: -1px;
137
  }
138
  input.tab_input_1 {
152
  display: table-cell;
153
  vertical-align: top;
154
  }
155
+ #wc_ast_trackship_form {
156
+ border-top: 1px solid #eee;
157
+ }
158
  #content1 .tab_inner_container{
159
  display: block;
160
  }
161
  .tab_inner_container h4 {
162
  margin-top: 0;
163
  }
164
+ #tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3, #tab4:checked ~ #content4, #tab5:checked ~ #content5, #tab6:checked ~ #content6, #tab7:checked ~ #content7, #tab8:checked ~ #content8, #tab9:checked ~ #content9, #tab10:checked ~ #content10,#tab_trackship_dashboard:checked ~ #wc_ast_trackship_form #content_trackship_dashboard,#tab_tracking_page:checked ~ #wc_ast_trackship_form #content_tracking_page,#tab_status_notifications:checked ~ #wc_ast_trackship_form #content_status_notifications,#tab_tools:checked ~ #wc_ast_trackship_form #content_tools {
165
  display: block;
166
  }
167
  .shipping_add_field {
178
  width: 280px;
179
  display: table-cell;
180
  vertical-align: top;
181
+ padding: 25px 0px 25px 20px;
182
+ }
183
+ .zorem_admin_sidebar_inner {
184
+ border-left: 1px solid #eee;
185
+ padding-left: 20px;
186
  }
187
  .zorem_admin_layout .zorem_admin_sidebar h3{
188
+ margin: 0 0 5px 0;
 
189
  color: #005B9A;
190
  border-bottom: 1px solid #eee;
191
+ padding: 0 0 10px;
192
+ }
193
+ .zorem_admin_layout .zorem_admin_sidebar h3.top-border{
194
+ padding: 10px 0 10px;
195
+ border-top: 1px solid #eee;
196
  }
197
  .zorem_admin_layout .zorem_admin_sidebar p,.zorem_admin_layout .zorem_admin_sidebar a{
198
+ margin: 0px 10px 0 0;
199
  }
200
  .zorem-sidebar-title {
201
  padding: 10px 0;
203
  color: #1ead94;
204
  line-height: 15px;
205
  }
206
+ .zorem-sidebar__section {
207
+ margin-bottom: 20px;
 
 
 
208
  }
209
  ..zorem-sidebar__section li:before {
210
  position: absolute;
213
  }
214
  .zorem-sidebar__section ul {
215
  position: relative;
216
+ margin: 10px 0 10px 0;
217
  }
218
  .zorem-sidebar__section li {
219
  list-style: none;
220
+ margin-bottom: 10px;
221
  }
222
  .zorem-sidebar__section li img.plugin_thumbnail {
223
  width: 60px;
234
  .zorem-sidebar__section div a {
235
  color: #0085ba;
236
  }
237
+ .sidebar_addon_inner {
238
+ border: 1px solid #e9e9e9;
239
+ padding: 0;
240
+ margin-top: 10px;
241
+ }
242
+ .sidebar_addon_logo{
243
+ max-width: 100%;
244
+ }
245
+ .addon_button_div {
246
+ padding: 10px 15px;
247
+ border-top: 1px solid #e9e9e9;
248
+ background-color: #fff;
249
+ }
250
+ .addon_widget_button .dashicons{
251
+ vertical-align:middle;
252
+ }
253
  .shipping_provider_tab {
254
  width: 100%;
255
  display: block;
341
  margin-top: 20px;
342
  padding: 10px 15px;
343
  }
 
 
 
 
344
  #woocommerce-advanced-shipment-tracking #advanced-shipment-tracking-form {
345
  display: none;
346
  }
351
  width: 30%;
352
  }
353
  .ast_admin_content .form-table th.titledesc {
354
+ width: 40%;
355
  }
356
  .woocommerce .ast_admin_content table.form-table th label .woocommerce-help-tip{
357
  margin: -4px 0 0 5px;
384
  .ast_admin_content .form-table .wp-color-result.button {
385
  margin: 0 6px 0px 0;
386
  }
387
+ #wc_ast_status_label_color,#wc_ast_status_partial_shipped_label_color,#wc_ast_status_updated_tracking_label_color,#wc_ast_select_primary_color,#wc_ast_select_border_color {
388
  width: 80px;
389
  }
390
  .color_field input[type=text] {
631
  .form-table td p{
632
  margin: 0;
633
  }
634
+ #wc_ast_settings_form .form-table tr,#wc_ast_trackship_form .form-table tr,#wc_ast_upload_csv_form .form-table tr,#wc_ast_addons_form .form-table tr{
635
  border-bottom: 1px solid #eee;
636
  }
 
 
 
637
  input#wc_ast_api_key {
638
  width: 260px;
639
  }
657
  .ac-container .headig_label {
658
  padding: 15px 20px 15px 60px;
659
  margin-bottom: 0;
660
+ position: relative;
 
661
  display: block;
662
  cursor: default;
663
  color: #777;
847
  span.email_status_span i.enable {
848
  color: #83bd31;
849
  }
850
+ .tracking-content-div{
851
+ margin-bottom: 5px;
852
+ }
853
+ .ast-shipment-status-div{
854
+ margin-top: 10px;
855
+ }
856
+ .wcast-shipment-status-list .ast-shipment-status{
857
+ display: grid;
858
+ }
859
+ .wcast-shipment-status-list .ast-shipment-status.has_est_delivery_1{
860
+ display: block;
861
+ }
862
  .ast-shipment-status i {
863
+ font-size: 18px;
864
  }
865
  .label_content {
866
  font-weight: 600;
878
  margin-right: 10px;
879
  }
880
  .wcast-shipment-status-icon span{
881
+ margin-top: 0px;
882
  display: inline-block;
883
  }
884
  .wcast-shipment-status-icon .icon-invalid_user_key:before{
885
  content: ' ';
886
  background-image: url(icons/invalid-user-key-v4.png);
887
+ width: 16px;
888
+ height: 16px;
889
  background-size: cover;
890
  display: inline-block;
891
  vertical-align: middle;
893
  .wcast-shipment-status-icon .icon-delivered:before{
894
  content: ' ';
895
  background-image: url(icons/delivered-v4.png);
896
+ width: 16px;
897
+ height: 16px;
898
  background-size: cover;
899
  display: inline-block;
900
  vertical-align: middle;
902
  .wcast-shipment-status-icon .icon-in_transit:before{
903
  content: ' ';
904
  background-image: url(icons/in-transit-v4.png);
905
+ width: 16px;
906
+ height: 16px;
907
  background-size: cover;
908
  display: inline-block;
909
  vertical-align: middle;
911
  .wcast-shipment-status-icon .icon-pre_transit:before{
912
  content: ' ';
913
  background-image: url(icons/pre-transit-v4.png);
914
+ width: 16px;
915
+ height: 16px;
916
  background-size: cover;
917
  display: inline-block;
918
  vertical-align: middle;
920
  .wcast-shipment-status-icon .icon-out_for_delivery:before{
921
  content: ' ';
922
  background-image: url(icons/out-for-delivery-v4.png);
923
+ width: 16px;
924
+ height: 16px;
925
  background-size: cover;
926
  display: inline-block;
927
  vertical-align: middle;
929
  .wcast-shipment-status-icon .icon-available_for_pickup:before{
930
  content: ' ';
931
  background-image: url(icons/available-for-picup-v4.png);
932
+ width: 16px;
933
+ height: 16px;
934
  background-size: cover;
935
  display: inline-block;
936
  vertical-align: middle;
938
  .wcast-shipment-status-icon .icon-return_to_sender:before{
939
  content: ' ';
940
  background-image: url(icons/return-to-sender-v4.png);
941
+ width: 16px;
942
+ height: 16px;
943
  background-size: cover;
944
  display: inline-block;
945
  vertical-align: middle;
947
  .wcast-shipment-status-icon .icon-failure:before{
948
  content: ' ';
949
  background-image: url(icons/failure-v4.png);
950
+ width: 16px;
951
+ height: 16px;
952
  background-size: cover;
953
  display: inline-block;
954
  vertical-align: middle;
956
  .wcast-shipment-status-icon .icon-unknown:before{
957
  content: ' ';
958
  background-image: url(icons/unknown-v4.png);
959
+ width: 16px;
960
+ height: 16px;
961
  background-size: cover;
962
  display: inline-block;
963
  vertical-align: middle;
965
  .wcast-shipment-status-icon .icon-pending_trackship:before{
966
  content: ' ';
967
  background-image: url(icons/pending-trackship-v4.png);
968
+ width: 16px;
969
+ height: 16px;
970
  background-size: cover;
971
  display: inline-block;
972
  vertical-align: middle;
974
  .wcast-shipment-status-icon .icon-INVALID_TRACKING_NUM:before{
975
  content: ' ';
976
  background-image: url(icons/invalid-v3.png);
977
+ width: 16px;
978
+ height: 16px;
979
  background-size: cover;
980
  display: inline-block;
981
  vertical-align: middle;
983
  .wcast-shipment-status-icon .icon-wrong_shipping_provider:before{
984
  content: ' ';
985
  background-image: url(icons/invalid-v3.png);
986
+ width: 16px;
987
+ height: 16px;
988
  background-size: cover;
989
  display: inline-block;
990
  vertical-align: middle;
992
  .wcast-shipment-status-icon .icon-default:before{
993
  content: ' ';
994
  background-image: url(icons/invalid-v3.png);
995
+ width: 16px;
996
+ height: 16px;
997
  background-size: cover;
998
  display: inline-block;
999
  vertical-align: middle;
1001
  .ast-shipment-status .icon-default:before{
1002
  content: ' ';
1003
  background-image: url(icons/invalid-v3.png);
1004
+ width: 16px;
1005
+ height: 16px;
1006
  background-size: cover;
1007
  display: inline-block;
1008
+ vertical-align: sub;
1009
+ margin-right: 5px;
1010
  }
1011
  .ast-shipment-status .icon-INVALID_TRACKING_NUM:before{
1012
  content: ' ';
1013
  background-image: url(icons/invalid-v3.png);
1014
+ width: 16px;
1015
+ height: 16px;
1016
  background-size: cover;
1017
  display: inline-block;
1018
+ vertical-align: sub;
1019
+ margin-right: 5px;
1020
  }
1021
  .ast-shipment-status .icon-wrong_shipping_provider:before{
1022
  content: ' ';
1023
  background-image: url(icons/invalid-v3.png);
1024
+ width: 16px;
1025
+ height: 16px;
1026
  background-size: cover;
1027
  display: inline-block;
1028
+ vertical-align: sub;
1029
+ margin-right: 5px;
1030
  }
1031
  .ast-shipment-status .icon-delivered:before{
1032
  content: ' ';
1033
  background-image: url(icons/delivered-v4.png);
1034
+ width: 16px;
1035
+ height: 16px;
1036
  background-size: cover;
1037
  display: inline-block;
1038
+ vertical-align: sub;
1039
+ margin-right: 5px;
1040
  }
1041
  .ast-shipment-status .icon-in_transit:before{
1042
  content: ' ';
1043
  background-image: url(icons/in-transit-v4.png);
1044
+ width: 16px;
1045
+ height: 16px;
1046
  background-size: cover;
1047
  display: inline-block;
1048
+ vertical-align: sub;
1049
+ margin-right: 5px;
1050
  }
1051
  .ast-shipment-status .icon-pre_transit:before{
1052
  content: ' ';
1053
  background-image: url(icons/pre-transit-v4.png);
1054
+ width: 16px;
1055
+ height: 16px;
1056
  background-size: cover;
1057
  display: inline-block;
1058
+ vertical-align: sub;
1059
+ margin-right: 5px;
1060
  }
1061
  .ast-shipment-status .icon-out_for_delivery:before{
1062
  content: ' ';
1063
  background-image: url(icons/out-for-delivery-v4.png);
1064
+ width: 16px;
1065
+ height: 16px;
1066
  background-size: cover;
1067
  display: inline-block;
1068
+ vertical-align: sub;
1069
+ margin-right: 5px;
1070
  }
1071
  .ast-shipment-status .icon-available_for_pickup:before{
1072
  content: ' ';
1073
  background-image: url(icons/available-for-picup-v4.png);
1074
+ width: 16px;
1075
+ height: 16px;
1076
  background-size: cover;
1077
  display: inline-block;
1078
+ vertical-align: sub;
1079
+ margin-right: 5px;
1080
  }
1081
  .ast-shipment-status .icon-return_to_sender:before{
1082
  content: ' ';
1083
  background-image: url(icons/return-to-sender-v4.png);
1084
+ width: 16px;
1085
+ height: 16px;
1086
  background-size: cover;
1087
  display: inline-block;
1088
+ vertical-align: sub;
1089
+ margin-right: 5px;
1090
  }
1091
  .ast-shipment-status .icon-failure:before{
1092
  content: ' ';
1093
  background-image: url(icons/failure-v4.png);
1094
+ width: 16px;
1095
+ height: 16px;
1096
  background-size: cover;
1097
  display: inline-block;
1098
+ vertical-align: sub;
1099
+ margin-right: 5px;
1100
  }
1101
  .ast-shipment-status .icon-unknown:before{
1102
  content: ' ';
1103
  background-image: url(icons/unknown-v4.png);
1104
+ width: 16px;
1105
+ height: 16px;
1106
  background-size: cover;
1107
  display: inline-block;
1108
+ vertical-align: sub;
1109
+ margin-right: 5px;
1110
  }
1111
  .ast-shipment-status .icon-pending_trackship:before{
1112
  content: ' ';
1113
  background-image: url(icons/pending-trackship-v4.png);
1114
+ width: 16px;
1115
+ height: 16px;
1116
  background-size: cover;
1117
  display: inline-block;
1118
+ vertical-align: sub;
1119
+ margin-right: 5px;
1120
  }
1121
  .ast-shipment-status .icon-invalid_user_key:before{
1122
  content: ' ';
1123
  background-image: url(icons/invalid-user-key-v4.png);
1124
+ width: 16px;
1125
+ height: 16px;
1126
  background-size: cover;
1127
  display: inline-block;
1128
+ vertical-align: sub;
1129
+ margin-right: 5px;
1130
  }
1131
 
1132
  .wcast-shipment-status-icon i {
1145
  .icon-pending_trackship {
1146
  color: #CCCC00;
1147
  }
1148
+ .wcast-shipment-status-list .wcast-shipment-est-delivery {
1149
  display: block;
1150
  }
1151
  .showif_has_est_delivery_0, .showif_has_est_delivery_1 {
1172
  font-size: 11px;
1173
  }
1174
  .wcast-tracking-number-list li, .wcast-shipment-status-list li {
1175
+ position: relative;
1176
+ border: 1px solid #eee;
1177
+ padding: 10px;
1178
  min-height: 50px;
1179
  box-sizing: border-box;
1180
+ background-color: #fff;
1181
  }
1182
  a.inline_tracking_delete{
1183
  display:none;
1279
  padding-bottom: 40px;
1280
  }
1281
  .woocommerce_page_woocommerce-advanced-shipment-tracking #wpfooter{
1282
+ background: #f7fafc;
1283
  }
1284
  .woocommerce_page_woocommerce-advanced-shipment-tracking .white-bg{
1285
  background: #fff;
1413
  font-weight: 500;
1414
  font-size: 14px;
1415
  }
1416
+ .provider_list .row-1 {
1417
  margin-bottom: 0;
1418
  display: flex;
1419
  align-items: start;
1420
  }
1421
+ .provider_list .row-1:after {
1422
  content: '';
1423
  clear: both;
1424
  display: block;
1425
  }
1426
+ .provider_list .row-2 {
1427
  margin-top: 15px;
1428
  border-top: 1px solid #ccc;
1429
  padding-top: 10px;
1443
  float: right;
1444
  padding-right: 10px;
1445
  }
1446
+ .provider_list .row-2:after{
1447
  content:'';
1448
  clear:both;
1449
  display: block;
1454
  }
1455
  .status_filter {
1456
  margin: 10px 8px 10px 0;
1457
+ display:inline-block;
1458
  }
1459
  .status_filter a{
1460
+ font-size: 1.1em;
1461
  padding: 0 5px;
1462
  text-decoration: none;
1463
  }
1469
  color:#74C2E1;
1470
  }
1471
  .search_section {
1472
+ display: inline-block;
 
1473
  }
1474
  #search_provider{
1475
+ width: 264px;
1476
+ min-width: 280px;
1477
+ border: 1px solid #ccc;
1478
+ border-radius: 3px;
1479
+ padding: 0 0 0 30px;
1480
+ line-height: 2;
1481
+ min-height: 30px;
1482
  }
1483
  .search_section .search-icon{
1484
  position: absolute;
1485
+ padding: 5px 6px;
1486
+ color: #005b9a;
1487
  }
1488
  .provider_settings {
1489
  display: inline-block;
1498
  display:block;
1499
  }
1500
  .provider_top {
1501
+ position: relative;
1502
+ margin: 5px 0 10px 0;
1503
+ padding-bottom: 5px;
1504
+ border-bottom: 1px solid #e9e9e9;
1505
  }
1506
+ /* Tooltip container */
1507
+ .provider_settings .tooltip {
1508
+ position: relative;
1509
+ display: inline-block;
1510
  }
1511
 
1512
+ /* Tooltip text */
1513
+ .provider_settings .tooltip .tooltiptext {
1514
+ visibility: hidden;
1515
+ width: 100px;
1516
+ background-color: black;
1517
+ color: #fff;
1518
+ text-align: center;
1519
+ padding: 5px 0;
1520
+ border-radius: 6px;
1521
  position: absolute;
1522
+ z-index: 1;
 
 
 
 
 
 
 
1523
  }
1524
+ .provider_settings .tooltip-top{
1525
+ bottom: 125%;
1526
+ left: 20%;
1527
+ margin-left: -52px;
1528
  }
1529
+ .provider_settings .tooltip .tooltiptext::after {
1530
+ content: " ";
1531
+ position: absolute;
1532
+ top: 100%; /* At the bottom of the tooltip */
1533
+ left: 58%;
1534
+ margin-left: -5px;
1535
+ border-width: 5px;
1536
+ border-style: solid;
1537
+ border-color: black transparent transparent transparent;
1538
  }
1539
+ /* Show the tooltip text when you mouse over the tooltip container */
1540
+ .provider_settings .tooltip:hover .tooltiptext {
1541
+ visibility: visible;
1542
  }
 
 
 
1543
  .dropdown_menu{
1544
  cursor: pointer;
1545
  padding: 0 5px 10px;
1546
  }
1547
+ ul.provider_settings_ul {
1548
+ margin: 5px 0 0;
1549
+ }
1550
+ .provider_settings_ul li {
1551
+ display: inline-block;
1552
+ margin: 0 5px;
1553
+ }
1554
+ .provider_settings_ul li a {
1555
+ text-decoration: none;
 
 
 
 
 
1556
  }
1557
  .mdl-dialog.add_custom_dialog{
1558
  width: 600px;
1598
  .popuprow {
1599
  display: inline-block;
1600
  vertical-align: middle;
1601
+ max-width: 310px;
1602
  background: #f9f9f9;
1603
+ padding: 15px 30px;
1604
  position: relative;
1605
  z-index: 10;
1606
  border-radius: 2px;
1608
  width: calc(100% - 5px);
1609
  max-height: 90%;
1610
  overflow-y: overlay;
1611
+ text-align: left;
1612
  }
1613
+ .how_to_video_popup .popuprow,.ts_video_popup .popuprow,.tracking_item_video_popup .popuprow{
1614
  max-width: 700px;
1615
  padding: 0;
1616
  }
1617
  .trackingpopup_row {
1618
  display: inline-block;
1619
  vertical-align: middle;
1620
+ max-width: 310px;
1621
+ text-align:left;
1622
  background: #f9f9f9;
1623
+ padding: 15px 30px;
1624
  position: relative;
1625
  z-index: 10;
1626
  border-radius: 2px;
1641
  line-height: 24px;
1642
  color: #0d0d0d;
1643
  width: 100%;
1644
+ margin-bottom: 10px;
 
1645
  }
1646
  .popupwrapper input[type=text].image_path,.trackingpopup_wrapper input[type=text].image_path{
1647
+ width: 77.5%;
1648
  }
1649
  .popupwrapper select,.popupwrapper .select2,.trackingpopup_wrapper select,.trackingpopup_wrapper .select2{
1650
  line-height: 24px;
1651
  color: #0d0d0d;
1652
  width: 100%;
1653
  margin-bottom: 10px;
1654
+ height: 32px;
1655
+ }
1656
+ .custom_provider_instruction{
1657
+ text-align:left;
1658
+ margin-bottom: 10px;
1659
+ }
1660
+ .add_provider_popup .popuprow{
1661
+ max-width: 310px;
1662
+ text-align: left;
1663
+ }
1664
+ .popupwrapper #upload_image_button{
1665
+ min-height: 30px;
1666
  }
1667
  .close-button{
1668
  background: #000 none repeat scroll 0 0;
1680
  }
1681
  .change_order_to_shipped_field ul li {
1682
  display: inline-block;
1683
+ margin-right: 5px;
1684
  }
1685
  .provider-status .mdl-switch{
1686
  width: auto;
1765
  .woocommerce.zorem_admin_layout table.form-table.heading-table{
1766
  margin: 25px 0 0;
1767
  border-bottom: 0;
1768
+ background: #f5f8fa;
1769
  }
1770
  #wc_ast_settings_form table.form-table.heading-table tr,#wc_ast_trackship_form table.form-table.heading-table tr,#wc_ast_upload_csv_form table.form-table.heading-table tr{
1771
  border-bottom: 0;
1776
  .woocommerce.zorem_admin_layout table.form-table.heading-table td h3{
1777
  margin: 0;
1778
  color:#005B9A;
1779
+ font-weight: 400;
1780
  }
1781
  .woocommerce.zorem_admin_layout table.form-table.heading-table td.button-column{
1782
  text-align:right;
1788
  margin: 25px 0 0;
1789
  border-bottom: 0;
1790
  padding: 15px;
1791
+ font-weight: 400;
1792
  }
1793
  .zorem_admin_layout h3.table-heading:after{
1794
  content:'';
1799
  }
1800
  .woocommerce.zorem_admin_layout table.form-table th{
1801
  padding: 20px 24px 20px 15px;
1802
+ vertical-align: middle;
1803
  }
1804
  .woocommerce.zorem_admin_layout table.form-table td{
1805
  padding: 15px 15px;
1807
  .woocommerce.zorem_admin_layout table.form-table th label{
1808
  font-weight: 400;
1809
  color: #444;
1810
+ cursor: auto;
1811
  }
1812
  .woocommerce.zorem_admin_layout table.form-table p.description{
1813
  font-size: 0.9em;
1838
  width: auto;
1839
  max-width: 400px;
1840
  min-width: 90px;
1841
+ line-height: 20px;
1842
+ }
1843
+ .woocommerce.zorem_admin_layout table.form-table .input-text{
1844
+ width: 100%;
1845
+ max-width: 400px;
1846
+ min-width: 90px;
1847
+ line-height: 20px;
1848
  }
1849
  .trackship-icon{
1850
  width: 70px;
1854
  text-align:left;
1855
  }
1856
  .add_tracking_number_form input[type=checkbox]{
1857
+ margin: 0px 4px 0 0px;
1858
+ }
1859
+ .add_tracking_number_form .ast-product-table input[type=checkbox]{
1860
  margin: 0px 4px 0 4px;
1861
  }
1862
  .d_table{
1967
  width: 100%;
1968
  height: 100%;
1969
  }
1970
+
1971
+ .zorem_admin_layout .ast_admin_content .wp-picker-container .wp-picker-input-wrap label{
1972
+ margin: 0 5px 0 0!important;
1973
+ }
1974
+ .woocommerce.zorem_admin_layout .ast_admin_content .wp-picker-container .wp-picker-input-wrap .input-text{
1975
+ line-height: 15px;
1976
+ }
1977
  @media (max-width: 767px) {
1978
  .notice.ast-admin-notice {
1979
  padding: 10px;
2141
  padding: 0;
2142
  margin: 0;
2143
  }
2144
+ span.tracking_product_list {
2145
+ display: list-item;
2146
+ list-style: none;
2147
+ }
2148
 
2149
+ .addons_inner_container{
2150
+ display: -webkit-box;
2151
+ display: -ms-flexbox;
2152
+ display: flex;
2153
+ -ms-flex-flow: wrap;
2154
+ flex-flow: wrap;
2155
+ -webkit-box-pack: justify;
2156
+ -ms-flex-pack: justify;
2157
+ justify-content: space-between;
2158
+ }
2159
+ .addons_inner_container .ast_addons_section{
2160
+ width: calc(50% - 12.5px);
2161
+ position: relative;
2162
+ padding: 0 0 0;
2163
+ }
2164
+ .ast_admin_content .ast_addons_section .form-table th.titledesc{
2165
+ width: 35%;
2166
+ }
2167
+ .ast_admin_content .ast_addons_section span.api_connected{
2168
+ line-height: 36px;
2169
+ height: 40px;
2170
+ padding: 10px 20px;
2171
+ font-size: 15px;
2172
+ }
2173
+ .woocommerce.zorem_admin_layout table.form-table.heading-table tr.addons_header td{
2174
+ padding:0;
2175
+ }
2176
+ .woocommerce.zorem_admin_layout table.form-table.heading-table tr.addons_header td img{
2177
+ width:100%;
2178
+ }
2179
+ .ast_addons_section .submit .btn_ast2{
2180
+ display: inline-block;
2181
+ float: none;
2182
+ }
2183
+ .ast_addons_section .submit .pesan{
2184
+ width: 65%;
2185
+ /*display: inline-block;*/
2186
+ vertical-align: bottom;
2187
+ margin-left: 5px;
2188
+ line-height: 15px;
2189
+ }
2190
+ .ast_addons_section .submit{
2191
+ margin: 0;
2192
+ }
2193
+ .ast_addons_section .submit .pesan.license_active{
2194
+ color:green;
2195
+ }
2196
+ .ast_addons_section .submit:after{
2197
+ display: block;
2198
+ content: '';
2199
+ clear: both;
2200
+ }
2201
+ .ts_addons_header,.tracking_item_addons_header{
2202
+ position: relative;
2203
+ display: inline-block;
2204
+ cursor: pointer;
2205
+ }
2206
+ .ts_addons_header:before,.tracking_item_addons_header:before{
2207
+ color: #eee;
2208
+ }
2209
+ .ts_addons_header:after,.tracking_item_addons_header:after{
2210
+ position:absolute;
2211
+ top: 50%;
2212
+ left: 50%;
2213
+ transform: translate(-50%, -50%);
2214
+ -webkit-transform: translate(-50%, -50%);
2215
+ content: "\f01d";
2216
+ font-family: FontAwesome;
2217
+ font-size: 100px;
2218
+ color: #fff;
2219
+ opacity: .8;
2220
+ text-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
2221
+ }
2222
+ .woocommerce.zorem_admin_layout .license_div{
2223
+ /*height: 118px;*/
2224
+ background: #fff;
2225
+ border: 1px solid #eee;
2226
+ margin-top: 0;
2227
+ margin-bottom: 0px;
2228
+ vertical-align: middle;
2229
+ padding-top: 20px;
2230
+ padding-bottom: 20px;
2231
+ }
2232
+ .woocommerce.zorem_admin_layout .license_div table.form-table{
2233
+ background: 0;
2234
+ border: 0;
2235
+ }
2236
+ /*.woocommerce.zorem_admin_layout .license_div table.form-table tr{
2237
+ height:50px;
2238
+ }*/
2239
+ .ast_admin_content .ast_addons_section .license_div .form-table th.titledesc {
2240
+ padding: 0px 24px 0px 15px;
2241
+ vertical-align: middle;
2242
+ }
2243
+ .ast_admin_content .ast_addons_section .license_div .form-table td {
2244
+ padding: 0 15px;
2245
+ }
2246
+ #wc_ast_addons_form .license_div .form-table tr{
2247
+ border-bottom:0;
2248
+ }
2249
+ #woocommerce-advanced-shipment-tracking.postbox{
2250
+ background: #f9f9f9;
2251
+ }
2252
+
2253
+ .order-status-table tr.disable_row{
2254
+ background: #eee;
2255
+ opacity: 0.7;
2256
+ }
2257
+ .order-status-table tr.disable_row td{
2258
+ pointer-events: none;
2259
+ }
2260
+ .order-status-table tr.disable_row td:first-child{
2261
+ pointer-events: auto;
2262
+ }
2263
+ .order-status-table td:last-child{
2264
+ text-align:right;
2265
+ }
2266
+ .order-status-table .order-label{
2267
+ display: -webkit-inline-box;
2268
+ display: -webkit-inline-flex;
2269
+ display: inline-flex;
2270
+ line-height: 2.2em;
2271
+ color: #777;
2272
+ background: #e5e5e5;
2273
+ border-radius: 4px;
2274
+ border-bottom: 1px solid rgba(0,0,0,.05);
2275
+ margin: -.25em 0;
2276
+ cursor: inherit!important;
2277
+ white-space: nowrap;
2278
+ max-width: 100%;
2279
+ padding: 0 1em;
2280
+ }
2281
+ .order-status-table tr td.status-label-column{
2282
+ width:130px;
2283
+ }
2284
+ .form-table .multiple_checkbox {
2285
+ display: inline-block;
2286
+ padding-right: 5px;
2287
+ padding-bottom: 5px;
2288
+ min-width: 160px;
2289
+ }
2290
+ .order-status-table .wp-picker-container,.tracking_page_table .wp-picker-container {
2291
+ display: inline-block;
2292
+ vertical-align: middle;
2293
+ }
2294
+ .form-table.order-status-table td .send_email_label {
2295
+ margin: 0 5px !important;
2296
+ vertical-align: inherit;
2297
+ }
2298
+ .add_custom_p_a{
2299
+ font-weight: 500;
2300
+ font-size: 14px;
2301
+ display: block;
2302
+ text-align: center;
2303
+ margin-top: 14px;
2304
+ }
2305
+ .add_custom_inner .dashicons{
2306
+ display: block;
2307
+ text-align: center;
2308
+ margin: 10px auto;
2309
+ font-size: 35px;
2310
+ width: 40px;
2311
+ height: 38px;
2312
+ cursor: pointer;
2313
+ color:#005B9A;
2314
+ }
2315
+ .add_custom_provider_div{
2316
+ background: #fff;
2317
+ border: 1px solid rgba(116, 194, 225, 0.5);
2318
+ padding: 10px 10px 0px 10px;
2319
+ }
2320
+ .ast_admin_content .tracking-layout-table.form-table th.titledesc{
2321
+ width: 50%;
2322
+ }
2323
+ .tracking_color_label{
2324
+ line-height:30px;
2325
+ }
2326
+ .tracking_layout_options_div label{
2327
+ margin-bottom: 5px;
2328
+ display: block;
2329
+ }
2330
+ span.select_t_layout_section {
2331
+ display: inline-block;
2332
+ width: 45%;
2333
+ margin-right: 10px;
2334
+ margin-top: 5px;
2335
+ }
2336
+ .tracking-layout-table .radio-img {
2337
+ position: absolute;
2338
+ left: -9999px;
2339
+ }
2340
+
2341
+ .tracking-layout-table .radio-img:checked + label>img {
2342
+ border: 1px solid #74C2E1;
2343
+ }
2344
+
2345
+ /* Stuff after this is only to make things more pretty */
2346
+ .tracking-layout-table .radio-img + label>img {
2347
+ border: 1px solid #bdbdbd;
2348
+ width: 100%;
2349
+ border-radius: 5px;
2350
+ }
2351
+ .tracking_layout_preview_1,.tracking_layout_preview_2{
2352
+ text-align:center;
2353
+ }
2354
+ table.form-table.heading-table.disable_tracking_page {
2355
+ background: #f5f8fa;
2356
+ color: #222629;
2357
+ }
2358
+ .tracking_preview_iframe{
2359
+ width:100%;
2360
+ display:none;
2361
+ }
2362
+ .ast_radio_label {
2363
+ min-width: 125px;
2364
+ display: inline-block;
2365
+ }
2366
  /*** RTL CSS ***/
2367
  .rtl.shipment_tracking_admin_settings #wpcontent {
2368
  padding-right: 0;
2472
  width: 25%;
2473
  }
2474
  #search_provider{
2475
+ width: 210px;
2476
+ min-width: 210px;
2477
  }
2478
  .provider-thumb {
2479
  height: 40px;
2482
  width: 60%;
2483
  }
2484
  }
2485
+ @media screen and (max-width: 820px) {
2486
+ .nav_doc_section{
2487
+ float: none;
2488
+ margin-left: 30px;
2489
+ margin-right: 0;
2490
+ }
2491
+ }
2492
  @media screen and (max-width: 750px) {
2493
  .d_table{
2494
  display:block;
2510
  padding: 15px 0 15px;
2511
  margin-left: 30px;
2512
  }
2513
+ .status_filter{
2514
+ width: auto;
2515
+ }
2516
+ .provider_settings{
2517
+ float: none;
2518
+ }
2519
  }
2520
  @media screen and (max-width: 500px) {
2521
  .provider{
2532
  #search_provider{
2533
  width: 100%;
2534
  }
2535
+ .plugin-logo{
2536
+ max-width: 300px;
2537
+ }
2538
  }
assets/css/customizer-styles.css CHANGED
@@ -18,7 +18,17 @@
18
  vertical-align: middle;
19
  background-repeat: no-repeat;
20
  }
21
- #accordion-panel-wcast_emails_panel>h3:before{
 
 
 
 
 
 
 
 
 
 
22
  font-family: 'Dashicons';
23
  font-size: 20px;
24
  font-weight: thin !important;
@@ -103,6 +113,15 @@
103
  display: inline-block;
104
  vertical-align: middle;
105
  }
 
 
 
 
 
 
 
 
 
106
 
107
  #accordion-section-tracking_page_section>h3:before{
108
  font-family: 'Dashicons';
@@ -178,4 +197,8 @@
178
  }
179
  .customize-control-description{
180
  font-size: 12px;
 
 
 
 
181
  }
18
  vertical-align: middle;
19
  background-repeat: no-repeat;
20
  }
21
+ #accordion-section-customer_updated_tracking_email>h3:before{
22
+ content: ' ';
23
+ background-image: url(icons/updated-tracking-icon.png);
24
+ width: 20px;
25
+ height: 20px;
26
+ background-size: contain;
27
+ display: inline-block;
28
+ vertical-align: middle;
29
+ background-repeat: no-repeat;
30
+ }
31
+ #accordion-panel-wcast_emails_panel>h3:before,#accordion-panel-wcast_admin_emails_panel>h3:before{
32
  font-family: 'Dashicons';
33
  font-size: 20px;
34
  font-weight: thin !important;
113
  display: inline-block;
114
  vertical-align: middle;
115
  }
116
+ #accordion-section-admin_late_shipments_email>h3:before{
117
+ content: ' ';
118
+ background-image: url(icons/late-shipment-v3.png);
119
+ width: 20px;
120
+ height: 20px;
121
+ background-size: cover;
122
+ display: inline-block;
123
+ vertical-align: middle;
124
+ }
125
 
126
  #accordion-section-tracking_page_section>h3:before{
127
  font-family: 'Dashicons';
197
  }
198
  .customize-control-description{
199
  font-size: 12px;
200
+ }
201
+ .customize-control+.customize-control:not(.customize-control-kirki-code)#customize-control-tracking_info_settings-display_shipment_provider_name,.customize-control+.customize-control:not(.customize-control-kirki-code)#customize-control-tracking_info_settings-table_header_block,.customize-control+.customize-control:not(.customize-control-kirki-code)#customize-control-tracking_info_settings-hide_table_header,.customize-control+.customize-control:not(.customize-control-kirki-code)#customize-control-table_header,.customize-control+.customize-control:not(.customize-control-kirki-code)#customize-control-tracking_info_settings-table_padding,.customize-control+.customize-control:not(.customize-control-kirki-code)#customize-control-tracking_info_settings-shipment_link_header,.customize-control+.customize-control:not(.customize-control-kirki-code)#customize-control-tracking_info_settings-tracking_link_font_color,.customize-control+.customize-control:not(.customize-control-kirki-code)#customize-control-tracking_info_settings-table_content_header{
202
+ border-top: 0;
203
+ padding-top: 0;
204
  }
assets/css/front.css CHANGED
@@ -11,7 +11,15 @@
11
  margin-top: 50px;
12
  position: relative
13
  }
14
-
 
 
 
 
 
 
 
 
15
  @media (max-width: 575.98px) {
16
  .tracker-progress-bar-with-dots {
17
  font-size: 12px
@@ -162,9 +170,9 @@
162
  }
163
 
164
  @media screen and (prefers-reduced-motion: reduce) {
165
- .progress-bar {
166
- transition: none
167
- }
168
  }
169
  .progress-bar-striped {
170
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
@@ -192,14 +200,14 @@
192
  .tracking-detail .text-right {
193
  text-align: right;
194
  }
195
- .tracking-detail .text-secondary {
196
  color: #303F9F;
197
  }
198
- .tracking-detail .text-warning {
199
  color: #f0ad4e;
200
  }
201
- .tracking-detail .text-success {
202
- color: #0c8043;
203
  }
204
  .tracking-detail .border-light {
205
  border-color: #E4ECEF;
@@ -291,7 +299,7 @@
291
  padding-top: .5rem !important;
292
  }
293
  .tracking-detail .mb-3, .tracking-detail .my-3 {
294
- margin-bottom: 0 !important;
295
  }
296
  .col.tracking-detail {
297
  margin: 20px auto 20px;
@@ -307,18 +315,16 @@
307
  padding-bottom: 10px;
308
  font-weight: 600;
309
  }
310
- .shipment_status_heading{
311
- padding-top: 10px;
312
  font-weight: 600;
313
  color: #303F9F;
 
 
314
  }
315
  .tracker-top-level {
316
  display: flex;
317
  margin-bottom: 2rem;
318
  }
319
- .tracking-details{
320
- display: contents;
321
- }
322
  .tracking-table thead tr th{
323
  padding: 15px 0;
324
  border-bottom: 0;
@@ -331,9 +337,10 @@ display: contents;
331
  display: flex;
332
  margin-bottom: 30px;
333
  }
334
- .tracking-number {
335
  font-weight: 400;
336
- color: #303F9F;
 
337
  }
338
  .mobile-section{
339
  display:none;
@@ -347,23 +354,21 @@ table.tracking-table tr:nth-child(n+3) {
347
  table.tracking-table{
348
  margin-bottom: 5px;
349
  }
350
- .view_table_rows{
351
- color: #303F9F;
352
- text-decoration: underline;
353
- }
354
  .hide_table_rows{
355
- display:none;
356
- color: #303F9F;
357
- text-decoration: underline;
358
  }
359
  .shipment_progress_div {
 
360
  padding-bottom: 7px;
361
  }
362
- .h4-heading{
363
  border-bottom: 1px solid #eee;
 
 
 
364
  }
365
- .tracker-progress-bar-with-dots .dot.past-state,.tracker-progress-bar-with-dots .dot.future-state{
366
- background-size: 50px;
367
  background-repeat: no-repeat;
368
  background-position: center center;
369
  }
@@ -373,6 +378,133 @@ table.tracking-table{
373
  .track-order-section{
374
  text-align: left;
375
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
376
  /*** RTL CSS ***/
377
 
378
  .rtl .track-order-section{
@@ -407,8 +539,8 @@ table.tracking-table{
407
 
408
  @media screen and (max-width: 767px) {
409
  .col.tracking-detail{
410
- padding: 20px 15px 0;
411
- width: 100%;
412
  }
413
  .tracking-detail .col-md-6{
414
  width: 100%;
@@ -427,6 +559,29 @@ table.tracking-table{
427
  background-repeat: no-repeat;
428
  background-position: center center;
429
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
430
  /*** RTL CSS ***/
431
  .rtl .tracking-detail .text-right {
432
  text-align: right;
@@ -452,11 +607,11 @@ table.tracking-table{
452
  }
453
  .mobile-section .tracker-progress-bar-with-dots .dot{
454
  background-size: cover;
455
- width: 60px;
456
  position: relative;
457
  display: inline-block;
458
  vertical-align: middle;
459
- height: 60px;
460
  margin: 0 auto;
461
  }
462
  .tracker-progress-bar-with-dots .state-1{
@@ -479,13 +634,13 @@ table.tracking-table{
479
  height: 93%;
480
  position: absolute;
481
  top: 10px;
482
- left: 48px;
483
  width: 5px;
484
  background-color: #C1C1C1;
485
  }
486
- .progress-bar{
487
  position: absolute;
488
- }
489
  .progress-bar.bg-secondary:before{
490
  content: '';
491
  height: 100%;
@@ -509,6 +664,20 @@ table.tracking-table{
509
  background-repeat: no-repeat;
510
  background-position: center center;
511
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
512
  .rtl .tracker-progress-bar-with-dots .state-1{
513
  right: 0;
514
  }
11
  margin-top: 50px;
12
  position: relative
13
  }
14
+ .progress-bar.bg-secondary {
15
+ background-color: #303F9F;
16
+ }
17
+ .progress-bar.bg-success {
18
+ background-color: #0f8042;
19
+ }
20
+ .progress-bar.bg-warning {
21
+ background-color: #f0ad4e;
22
+ }
23
  @media (max-width: 575.98px) {
24
  .tracker-progress-bar-with-dots {
25
  font-size: 12px
170
  }
171
 
172
  @media screen and (prefers-reduced-motion: reduce) {
173
+ .progress-bar {
174
+ transition: none
175
+ }
176
  }
177
  .progress-bar-striped {
178
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
200
  .tracking-detail .text-right {
201
  text-align: right;
202
  }
203
+ .tracking-detail .text-secondary,.tracking-header .text-secondary {
204
  color: #303F9F;
205
  }
206
+ .tracking-detail .text-warning,.tracking-header .text-warning {
207
  color: #f0ad4e;
208
  }
209
+ .tracking-detail .text-success,.tracking-header .text-success {
210
+ color: #0f8042;
211
  }
212
  .tracking-detail .border-light {
213
  border-color: #E4ECEF;
299
  padding-top: .5rem !important;
300
  }
301
  .tracking-detail .mb-3, .tracking-detail .my-3 {
302
+ margin-bottom: 0.3rem !important;
303
  }
304
  .col.tracking-detail {
305
  margin: 20px auto 20px;
315
  padding-bottom: 10px;
316
  font-weight: 600;
317
  }
318
+ .shipment_status_heading{
 
319
  font-weight: 600;
320
  color: #303F9F;
321
+ font-size: 36px;
322
+ margin-bottom: 0;
323
  }
324
  .tracker-top-level {
325
  display: flex;
326
  margin-bottom: 2rem;
327
  }
 
 
 
328
  .tracking-table thead tr th{
329
  padding: 15px 0;
330
  border-bottom: 0;
337
  display: flex;
338
  margin-bottom: 30px;
339
  }
340
+ .tracking-detail .tracking-number {
341
  font-weight: 400;
342
+ color: #757575;
343
+ font-size: 14px;
344
  }
345
  .mobile-section{
346
  display:none;
354
  table.tracking-table{
355
  margin-bottom: 5px;
356
  }
 
 
 
 
357
  .hide_table_rows{
358
+ display:none;
 
 
359
  }
360
  .shipment_progress_div {
361
+ margin-top: 60px;
362
  padding-bottom: 7px;
363
  }
364
+ .tracking-detail .h4-heading{
365
  border-bottom: 1px solid #eee;
366
+ color: #424242;
367
+ font-size: 14px;
368
+ font-weight: bold;
369
  }
370
+ .tracker-progress-bar-with-dots .dot.past-state,.tracker-progress-bar-with-dots .dot.future-state,.tracker-progress-bar-with-dots .dot.current-state{
371
+ background-size: 60px;
372
  background-repeat: no-repeat;
373
  background-position: center center;
374
  }
378
  .track-order-section{
379
  text-align: left;
380
  }
381
+
382
+ /**** Layout 2 CSS ***/
383
+ .tracking-layout-2 .shipment_status_heading{
384
+ padding-top: 0;
385
+ font-weight: 600;
386
+ margin-top: 0;
387
+ font-size: 36px;
388
+ }
389
+ .tracking-layout-2 .tracker-progress-bar .progress {
390
+ display: -ms-flexbox;
391
+ display: flex;
392
+ height: 40px;
393
+ overflow: hidden;
394
+ background-color: #f5f5f5;
395
+ border-radius: 5px;
396
+ border: 1px solid #bdbdbd;
397
+ }
398
+ .tracking-layout-2 .progress-bar {
399
+ display: -ms-flexbox;
400
+ display: flex;
401
+ -ms-flex-direction: column;
402
+ flex-direction: column;
403
+ -ms-flex-pack: center;
404
+ justify-content: center;
405
+ color: #fff;
406
+ text-align: center;
407
+ white-space: nowrap;
408
+ background-color: #303F9F;
409
+ transition: width 0.6s ease;
410
+ }
411
+ .tracking-layout-2 .tracker-progress-bar .progress .bg-secondary {
412
+ background-color: #303F9F;
413
+ }
414
+ .tracking-layout-2 .tracker-progress-bar .progress .bg-success {
415
+ background-color: #5cb85c;
416
+ }
417
+ .tracking-layout-2 .tracker-progress-bar .progress .bg-warning {
418
+ background-color: #f0ad4e;
419
+ }
420
+ .tracking-layout-2 .tracker-progress-bar-flat .progress-bar {
421
+ box-shadow: none;
422
+ }
423
+ .tracking-layout-2 .progress_top{
424
+ display:flex;
425
+ }
426
+ .tracking-layout-2 .col-md-6{
427
+ padding:0;
428
+ }
429
+ .tracking-detail .font-weight-demi-bold{
430
+ font-weight: 500;
431
+ }
432
+ .tracking-detail .font-weight-bold{
433
+ font-weight: 800;
434
+ }
435
+ .tracking-detail .text-uppercase {
436
+ text-transform: uppercase;
437
+ }
438
+ .tracking-detail .mt-6, .tracking-detail .my-6 {
439
+ margin-top: 2rem;
440
+ }
441
+ .tracking-detail .mb-4{
442
+ margin-bottom: 1rem;
443
+ }
444
+ .tracking-detail .tracking-details .date {
445
+ min-width: 160px;
446
+ }
447
+ .tracking-detail .tracking-details .time {
448
+ min-width: 85px;
449
+ margin-left: 10px;
450
+ }
451
+ .tracking-layout-2.tracking-detail .tracking-details .time {
452
+ margin-left: 0px;
453
+ }
454
+ .tracking-detail .tracking-details .location {
455
+ min-width: 200px;
456
+ }
457
+ .tracking-detail .w-100 {
458
+ width: 100%;
459
+ }
460
+ .tracking-detail .ml-auto, .tracking-detail .mx-auto {
461
+ margin-left: auto;
462
+ }
463
+ .tracking-detail .old-details{
464
+ display: none;
465
+ }
466
+ .tracking-detail .provider_image{
467
+ width: 60px;
468
+ }
469
+ .tracking-detail p.mb-2 {
470
+ margin-bottom: 1em;
471
+ }
472
+ .tracking-detail .tracking-details {
473
+ font-size: 14px;
474
+ }
475
+ .tracking-detail .tracking_group_by_date {
476
+ border-bottom: 1px solid #e0e0e0;
477
+ margin-bottom: 0.5rem;
478
+ }
479
+ .tracking-detail .tracking-details {
480
+ margin-top: 4rem;
481
+ }
482
+ .tracking-detail .view_table_rows, .tracking-detail .hide_table_rows, .tracking-detail .view_old_details, .tracking-detail .hide_old_details{
483
+ color: #303F9F;
484
+ border-bottom: 1px solid;
485
+ text-decoration: none;
486
+ }
487
+ .tracking-layout-2.tracking-detail .tracking-details {
488
+ margin-top: 2rem;
489
+ }
490
+ .tracking-detail .tracking-desktop-header{
491
+ display:flex;
492
+ }
493
+ .tracking-detail .tracking_details_desktop{
494
+ display:block;
495
+ }
496
+ .tracking-detail .tracking-mobile-header,.tracking-detail .tracking_details_mobile{
497
+ display:none;
498
+ }
499
+ @media (min-width: 768px){
500
+ .tracking-detail .d-md-flex {
501
+ display: -ms-flexbox;
502
+ display: flex;
503
+ }
504
+ .tracking-detail .text-md-right {
505
+ text-align: right;
506
+ }
507
+ }
508
  /*** RTL CSS ***/
509
 
510
  .rtl .track-order-section{
539
 
540
  @media screen and (max-width: 767px) {
541
  .col.tracking-detail{
542
+ padding: 20px 15px 10px;
543
+ width: 95%;
544
  }
545
  .tracking-detail .col-md-6{
546
  width: 100%;
559
  background-repeat: no-repeat;
560
  background-position: center center;
561
  }
562
+
563
+ .tracking-detail .header_top_left {
564
+ margin-right: 1rem;
565
+ width: 50px;
566
+ }
567
+ .tracking-detail .header_top1 {
568
+ margin-bottom: 15px;
569
+ }
570
+ .tracking-detail .tracking-mobile-header{
571
+ display:block;
572
+ }
573
+ .tracking-detail .tracking_details_mobile{
574
+ display:block;
575
+ }
576
+ .tracking-detail .tracking-desktop-header,.tracking-detail .tracking_details_desktop{
577
+ display:none;
578
+ }
579
+ .tracking-detail .tracking_details_mobile_row {
580
+ border-bottom: 1px solid #eee;
581
+ }
582
+ .tracking-detail .tracking-details .time {
583
+ margin-left: 0px;
584
+ }
585
  /*** RTL CSS ***/
586
  .rtl .tracking-detail .text-right {
587
  text-align: right;
607
  }
608
  .mobile-section .tracker-progress-bar-with-dots .dot{
609
  background-size: cover;
610
+ width: 45px;
611
  position: relative;
612
  display: inline-block;
613
  vertical-align: middle;
614
+ height: 45px;
615
  margin: 0 auto;
616
  }
617
  .tracker-progress-bar-with-dots .state-1{
634
  height: 93%;
635
  position: absolute;
636
  top: 10px;
637
+ left: 40px;
638
  width: 5px;
639
  background-color: #C1C1C1;
640
  }
641
+ /*.progress-bar{
642
  position: absolute;
643
+ }*/
644
  .progress-bar.bg-secondary:before{
645
  content: '';
646
  height: 100%;
664
  background-repeat: no-repeat;
665
  background-position: center center;
666
  }
667
+ .tracking-detail .tracking-details {
668
+ margin-top: 2rem;
669
+ }
670
+ .mobile-section .tracker-progress-bar .progress{
671
+ position: absolute;
672
+ width: 5px;
673
+ left: 26px;
674
+ }
675
+ .mobile-section .tracker-progress-bar .progress.bg-success{
676
+ background: #0f8042;
677
+ }
678
+ .mobile-section .tracker-progress-bar .progress.bg-warning{
679
+ background: #f0ad4e;
680
+ }
681
  .rtl .tracker-progress-bar-with-dots .state-1{
682
  right: 0;
683
  }
assets/css/icons/Late-Shipments-512.png ADDED
Binary file
assets/css/icons/invalid-v3.png CHANGED
Binary file
assets/css/icons/late-shipment-v3.png ADDED
Binary file
assets/css/icons/updated-tracking-icon.png ADDED
Binary file
assets/images/Tracking-Per-Item-addon-sidebar.png ADDED
Binary file
assets/images/Tracking-Per-Item-addon.jpg ADDED
Binary file
assets/images/ast-addons-notice-image.jpg ADDED
Binary file
assets/images/smswoo.png ADDED
Binary file
assets/images/t_layout_1.jpg ADDED
Binary file
assets/images/t_layout_2.jpg ADDED
Binary file
assets/images/tracking-1.png ADDED
Binary file
assets/images/tracking-2.png ADDED
Binary file
assets/images/trackship-logo.png ADDED
Binary file
assets/images/trackship-sidebar-addons.png ADDED
Binary file
assets/images/ts-banner.jpg ADDED
Binary file
assets/js/admin.js CHANGED
@@ -13,13 +13,14 @@ jQuery( function( $ ) {
13
 
14
  // When a user enters a new tracking item
15
  save_form: function () {
16
- var error;
17
  var tracking_number = jQuery("#tracking_number");
18
  var tracking_provider = jQuery("#tracking_provider");
 
19
  if( tracking_number.val() === '' ){
20
  showerror( tracking_number );error = true;
21
  } else{
22
- var pattern = /^[0-9a-zA-Z \b]+$/;
23
  if(!pattern.test(tracking_number.val())){
24
  showerror( tracking_number );
25
  error = true;
@@ -34,6 +35,26 @@ jQuery( function( $ ) {
34
  jQuery("#tracking_provider").siblings('.select2-container').find('.select2-selection').css('border-color','#ddd');
35
  hideerror(tracking_provider);
36
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  if(error == true){
38
  return false;
39
  }
@@ -58,8 +79,20 @@ jQuery( function( $ ) {
58
  checked = 'change_order_to_shipped';
59
  } else{
60
  checked = 'no';
61
- }
 
 
 
 
 
 
 
 
 
 
 
62
 
 
63
  var data = {
64
  action: 'wc_shipment_tracking_save_form',
65
  order_id: woocommerce_admin_meta_boxes.post_id,
@@ -68,34 +101,45 @@ jQuery( function( $ ) {
68
  custom_tracking_link: $( 'input#custom_tracking_link' ).val(),
69
  tracking_number: $( 'input#tracking_number' ).val(),
70
  date_shipped: $( 'input#date_shipped' ).val(),
 
71
  change_order_to_shipped: checked,
72
  security: $( '#wc_shipment_tracking_create_nonce' ).val()
73
  };
74
-
75
-
76
- $.post( woocommerce_admin_meta_boxes.ajax_url, data, function( response ) {
77
- $( '#advanced-shipment-tracking-form' ).unblock();
78
- if ( response != '-1' ) {
79
- $( '#advanced-shipment-tracking-form' ).hide();
80
- $( '#woocommerce-advanced-shipment-tracking #tracking-items' ).append( response );
81
- $( '#woocommerce-advanced-shipment-tracking button.button-show-tracking-form' ).show();
82
- $( '#tracking_provider' ).selectedIndex = 0;
83
- $( '#custom_tracking_provider' ).val( '' );
84
- $( 'input#custom_tracking_link' ).val( '' );
85
- $( 'input#tracking_number' ).val( '' );
86
- $( 'input#date_shipped' ).val( '' );
87
- if(checked == 'change_order_to_shipped'){
88
- jQuery('#order_status').val('wc-completed');
89
- jQuery('#order_status').select2().trigger('change');
90
- jQuery('#post').before('<div id="order_updated_message" class="updated notice notice-success is-dismissible"><p>Order updated.</p><button type="button" class="notice-dismiss update-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>');
91
- } else if(checked == 'change_order_to_partial_shipped'){
92
- jQuery('#order_status').val('wc-partial-shipped');
93
- jQuery('#order_status').select2().trigger('change');
94
- jQuery('#post').before('<div id="order_updated_message" class="updated notice notice-success is-dismissible"><p>Order updated.</p><button type="button" class="notice-dismiss update-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>');
95
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  }
97
- });
98
-
99
  return false;
100
  },
101
 
@@ -229,11 +273,47 @@ function modelMatcher (params, data) {
229
  }
230
 
231
  jQuery(document).on("click", ".add_inline_tracking", function(){
 
 
 
 
 
 
 
 
 
232
  var order_id = jQuery(this).attr('href');
233
  order_id = order_id.replace("#", "");
234
  jQuery('.add_tracking_number_form #order_id').val(order_id);
235
- jQuery('.add_tracking_popup').show();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  });
 
237
  jQuery(document).on("click", ".popupclose", function(){
238
  jQuery('.add_tracking_popup').hide();
239
  });
@@ -258,7 +338,7 @@ jQuery(document).on("submit", "#add_tracking_number_form", function(){
258
  showerror(tracking_number);
259
  error = true;
260
  } else{
261
- var pattern = /^[0-9a-zA-Z \b]+$/;
262
  if(!pattern.test(tracking_number.val())){
263
  showerror(tracking_number);
264
  error = true;
@@ -275,9 +355,28 @@ jQuery(document).on("submit", "#add_tracking_number_form", function(){
275
  }
276
 
277
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
278
  if(error == true){
279
  return false;
280
  }
 
281
  jQuery("#add_tracking_number_form").block({
282
  message: null,
283
  overlayCSS: {
@@ -336,19 +435,6 @@ jQuery(document).on("click", ".inline_tracking_delete", function(){
336
  }
337
  });
338
 
339
- /*jQuery(document).on("submit", ".post-type-shop_order #posts-filter", function(){
340
- var form = jQuery('.post-type-shop_order #posts-filter');
341
- var bulk_select = jQuery('#bulk-action-selector-top').val();
342
-
343
- if(bulk_select == 'get_shipment_status'){
344
- var checked_checkbox = jQuery(".type-shop_order .check-column input[type='checkbox']:checked");
345
- if(checked_checkbox.length > 100){
346
- alert(ast_admin_js.i18n.get_shipment_status_message);
347
- return false;
348
- }
349
- }
350
- });*/
351
-
352
  function showerror(element){
353
  element.css("border","1px solid red");
354
  }
13
 
14
  // When a user enters a new tracking item
15
  save_form: function () {
16
+ var error;
17
  var tracking_number = jQuery("#tracking_number");
18
  var tracking_provider = jQuery("#tracking_provider");
19
+
20
  if( tracking_number.val() === '' ){
21
  showerror( tracking_number );error = true;
22
  } else{
23
+ var pattern = /^[0-9a-zA-Z- \b]+$/;
24
  if(!pattern.test(tracking_number.val())){
25
  showerror( tracking_number );
26
  error = true;
35
  jQuery("#tracking_provider").siblings('.select2-container').find('.select2-selection').css('border-color','#ddd');
36
  hideerror(tracking_provider);
37
  }
38
+
39
+
40
+ if(jQuery("tr").hasClass("ASTProduct_row")){
41
+ var qty = false;
42
+ jQuery(".ASTProduct_row").each(function(index){
43
+ var ASTProduct_qty = jQuery(this).find('input[type="number"]').val();
44
+ if(ASTProduct_qty > 0){
45
+ qty = true;
46
+ return false;
47
+ }
48
+ });
49
+ }
50
+
51
+ if(qty == false){
52
+ jQuery('.qty_validation').show();
53
+ return false;
54
+ } else{
55
+ jQuery('.qty_validation').hide();
56
+ }
57
+
58
  if(error == true){
59
  return false;
60
  }
79
  checked = 'change_order_to_shipped';
80
  } else{
81
  checked = 'no';
82
+ }
83
+
84
+ var product_data = [];
85
+ jQuery(".ASTProduct_row").each(function(index){
86
+ var ASTProduct_qty = jQuery(this).find('input[type="number"]').val();
87
+ if(ASTProduct_qty > 0){
88
+ product_data.push({
89
+ product: jQuery(this).find('.product_id').val(),
90
+ qty: jQuery(this).find('input[type="number"]').val(),
91
+ });
92
+ }
93
+ });
94
 
95
+ var jsonString = JSON.stringify(product_data);
96
  var data = {
97
  action: 'wc_shipment_tracking_save_form',
98
  order_id: woocommerce_admin_meta_boxes.post_id,
101
  custom_tracking_link: $( 'input#custom_tracking_link' ).val(),
102
  tracking_number: $( 'input#tracking_number' ).val(),
103
  date_shipped: $( 'input#date_shipped' ).val(),
104
+ productlist: jsonString,
105
  change_order_to_shipped: checked,
106
  security: $( '#wc_shipment_tracking_create_nonce' ).val()
107
  };
108
+
109
+ jQuery.ajax({
110
+ url: woocommerce_admin_meta_boxes.ajax_url,
111
+ data: data,
112
+ type: 'POST',
113
+ success: function(response) {
114
+ $( '#advanced-shipment-tracking-form' ).unblock();
115
+ if ( response == 'reload' ) {
116
+ location.reload(true);
117
+ return false;
 
 
 
 
 
 
 
 
 
 
 
118
  }
119
+ if ( response != '-1' ) {
120
+ $( '#advanced-shipment-tracking-form' ).hide();
121
+ $( '#woocommerce-advanced-shipment-tracking #tracking-items' ).append( response );
122
+ $( '#woocommerce-advanced-shipment-tracking button.button-show-tracking-form' ).show();
123
+ $( '#tracking_provider' ).selectedIndex = 0;
124
+ $( '#custom_tracking_provider' ).val( '' );
125
+ $( 'input#custom_tracking_link' ).val( '' );
126
+ $( 'input#tracking_number' ).val( '' );
127
+ $( 'input#date_shipped' ).val( '' );
128
+ if(checked == 'change_order_to_shipped'){
129
+ jQuery('#order_status').val('wc-completed');
130
+ jQuery('#order_status').select2().trigger('change');
131
+ jQuery('#post').before('<div id="order_updated_message" class="updated notice notice-success is-dismissible"><p>Order updated.</p><button type="button" class="notice-dismiss update-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>');
132
+ } else if(checked == 'change_order_to_partial_shipped'){
133
+ jQuery('#order_status').val('wc-partial-shipped');
134
+ jQuery('#order_status').select2().trigger('change');
135
+ jQuery('#post').before('<div id="order_updated_message" class="updated notice notice-success is-dismissible"><p>Order updated.</p><button type="button" class="notice-dismiss update-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button></div>');
136
+ }
137
+ }
138
+ },
139
+ error: function(response) {
140
+ console.log(response);
141
  }
142
+ });
 
143
  return false;
144
  },
145
 
273
  }
274
 
275
  jQuery(document).on("click", ".add_inline_tracking", function(){
276
+
277
+ jQuery(this).closest('.wc_actions').block({
278
+ message: null,
279
+ overlayCSS: {
280
+ background: "#fff",
281
+ opacity: .6
282
+ }
283
+ });
284
+
285
  var order_id = jQuery(this).attr('href');
286
  order_id = order_id.replace("#", "");
287
  jQuery('.add_tracking_number_form #order_id').val(order_id);
288
+
289
+ var ajax_data = {
290
+ action: 'ast_open_inline_tracking_form',
291
+ order_id: order_id,
292
+ };
293
+
294
+ jQuery.ajax({
295
+ url: ajaxurl,
296
+ data: ajax_data,
297
+ type: 'POST',
298
+ success: function(response) {
299
+ jQuery( ".add_tracking_popup" ).remove();
300
+ jQuery("body").append(response);
301
+ jQuery('.add_tracking_popup').show();
302
+ jQuery('.wc_actions').unblock();
303
+ },
304
+ error: function(response) {
305
+ jQuery('.wc_actions').unblock();
306
+ }
307
+ });
308
+ });
309
+
310
+ jQuery(document).on("click", ".mark_shipped_checkbox", function(){
311
+ if(jQuery(this).prop("checked") == true){
312
+ jQuery('.mark_shipped_checkbox').prop('checked', false);
313
+ jQuery(this).prop('checked', true);
314
+ }
315
  });
316
+
317
  jQuery(document).on("click", ".popupclose", function(){
318
  jQuery('.add_tracking_popup').hide();
319
  });
338
  showerror(tracking_number);
339
  error = true;
340
  } else{
341
+ var pattern = /^[0-9a-zA-Z- \b]+$/;
342
  if(!pattern.test(tracking_number.val())){
343
  showerror(tracking_number);
344
  error = true;
355
  }
356
 
357
 
358
+ if(jQuery("tr").hasClass("ASTProduct_row")){
359
+ var qty = false;
360
+ jQuery(".ASTProduct_row").each(function(index){
361
+ var ASTProduct_qty = jQuery(this).find('input[type="number"]').val();
362
+ if(ASTProduct_qty > 0){
363
+ qty = true;
364
+ return false;
365
+ }
366
+ });
367
+ }
368
+
369
+ if(qty == false){
370
+ jQuery('.qty_validation').show();
371
+ return false;
372
+ } else{
373
+ jQuery('.qty_validation').hide();
374
+ }
375
+
376
  if(error == true){
377
  return false;
378
  }
379
+
380
  jQuery("#add_tracking_number_form").block({
381
  message: null,
382
  overlayCSS: {
435
  }
436
  });
437
 
 
 
 
 
 
 
 
 
 
 
 
 
 
438
  function showerror(element){
439
  element.css("border","1px solid red");
440
  }
assets/js/customizer-scripts.js CHANGED
@@ -12,81 +12,259 @@ jQuery(document).ready(function() {
12
  jQuery('#customize-theme-controls #accordion-section-themes').hide();
13
 
14
  if(wcast_customizer.wcast_enable_delivered_email == 'yes'){
15
- jQuery('#_customize-input-wcast_enable_delivered_status_email').prop('disabled', true);
16
  }
17
 
18
- if(jQuery("#_customize-input-show_track_label").prop("checked") != true){
19
- jQuery('#customize-control-track_header_text').hide();
20
  }
21
 
22
- if(jQuery("#_customize-input-wcast_enable_delivered_ga_tracking").prop("checked") != true){
23
- jQuery('#customize-control-wcast_delivered_analytics_link').hide();
24
  }
25
- if(jQuery('#_customize-input-hide_table_header').prop("checked") == true){
26
- jQuery('#customize-control-provider_header_text').hide();
27
- jQuery('#customize-control-tracking_number_header_text').hide();
28
- jQuery('#customize-control-shipped_date_header_text').hide();
29
- jQuery('#customize-control-show_track_label').hide();
30
- jQuery('#customize-control-track_header_text').hide();
31
- jQuery('#customize-control-table_header_font_size').hide();
32
- jQuery('#customize-control-table_header_font_color').hide();
33
  } else{
34
- jQuery('#customize-control-provider_header_text').show();
35
- jQuery('#customize-control-tracking_number_header_text').show();
36
- jQuery('#customize-control-shipped_date_header_text').show();
37
- jQuery('#customize-control-track_header_text').show();
38
- jQuery('#customize-control-table_header_font_size').show();
39
- jQuery('#customize-control-table_header_font_color').show();
40
- if(jQuery("#_customize-input-show_track_label").prop("checked") == true){
41
- jQuery('#customize-control-track_header_text').show();
42
  } else{
43
- jQuery('#customize-control-track_header_text').hide();
44
  }
45
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
 
 
 
 
 
 
47
  });
48
- jQuery(document).on("change", "#_customize-input-show_track_label", function(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  if(jQuery(this).prop("checked") == true){
50
- jQuery('#customize-control-track_header_text').show();
51
  } else{
52
- jQuery('#customize-control-track_header_text').hide();
53
  }
54
  });
55
- jQuery(document).on("change", "#_customize-input-hide_table_header", function(){
 
56
  if(jQuery(this).prop("checked") == true){
57
- jQuery('#customize-control-provider_header_text').hide();
58
- jQuery('#customize-control-tracking_number_header_text').hide();
59
- jQuery('#customize-control-shipped_date_header_text').hide();
60
- jQuery('#customize-control-show_track_label').hide();
61
- jQuery('#customize-control-show_track_label').hide();
62
- jQuery('#customize-control-track_header_text').hide();
63
- jQuery('#customize-control-table_header_font_size').hide();
64
- jQuery('#customize-control-table_header_font_color').hide();
65
  } else{
66
- jQuery('#customize-control-provider_header_text').show();
67
- jQuery('#customize-control-tracking_number_header_text').show();
68
- jQuery('#customize-control-shipped_date_header_text').show();
69
- jQuery('#customize-control-show_track_label').show();
70
- jQuery('#customize-control-track_header_text').show();
71
- jQuery('#customize-control-table_header_font_size').show();
72
- jQuery('#customize-control-table_header_font_color').show();
73
- if(jQuery("#_customize-input-show_track_label").prop("checked") == true){
74
- jQuery('#customize-control-track_header_text').show();
75
  }
76
  }
77
  });
78
- jQuery(document).on("change", "#_customize-input-wcast_enable_delivered_ga_tracking", function(){
79
  if(jQuery(this).prop("checked") == true){
80
- jQuery('#customize-control-wcast_delivered_analytics_link').show();
81
  } else{
82
- jQuery('#customize-control-wcast_delivered_analytics_link').hide();
83
  }
84
  });
85
- jQuery(document).on("change", "#customize-control-woocommerce_customer_delivered_order_settings-enabled input", function(){
86
  if(jQuery(this).prop("checked") == true){
87
- jQuery('#_customize-input-wcast_enable_delivered_status_email').prop('disabled', true);
88
  } else{
89
- jQuery('#_customize-input-wcast_enable_delivered_status_email').removeAttr('disabled');
90
  }
91
  });
92
  // Handle mobile button click
@@ -156,6 +334,19 @@ jQuery(document).on("change", "#customize-control-woocommerce_customer_delivered
156
  } );
157
  } ( wp.customize ) );
158
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  (function ( api ) {
160
  api.section( 'default_controls_section', function( section ) {
161
  section.expanded.bind( function( isExpanded ) {
@@ -241,6 +432,18 @@ jQuery(document).on("change", "#customize-control-woocommerce_customer_delivered
241
  } );
242
  } );
243
  } ( wp.customize ) );
 
 
 
 
 
 
 
 
 
 
 
 
244
 
245
  jQuery(document).on("change", ".preview_order_select", function(){
246
  var wcast_preview_order_id = jQuery(this).val();
12
  jQuery('#customize-theme-controls #accordion-section-themes').hide();
13
 
14
  if(wcast_customizer.wcast_enable_delivered_email == 'yes'){
15
+ jQuery('#customize-control-wcast_delivered_email_settings-wcast_enable_delivered_status_email input').prop('disabled', true);
16
  }
17
 
18
+ if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") != true){
19
+ jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
20
  }
21
 
22
+ if(jQuery("#customize-control-woocommerce_customer_delivered_order_settings-wcast_enable_delivered_ga_tracking input").prop("checked") != true){
23
+ jQuery('#customize-control-woocommerce_customer_delivered_order_settings-wcast_delivered_analytics_link').hide();
24
  }
25
+ if(jQuery('#customize-control-tracking_info_settings-hide_table_header input').prop("checked") == true){
26
+ jQuery('#customize-control-tracking_info_settings-provider_header_text').hide();
27
+ jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').hide();
28
+ jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').hide();
29
+ jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
30
+ jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
31
+ jQuery('#customize-control-tracking_info_settings-table_header_font_size').hide();
32
+ jQuery('#customize-control-tracking_info_settings-table_header_font_color').hide();
33
  } else{
34
+ jQuery('#customize-control-tracking_info_settings-provider_header_text').show();
35
+ jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').show();
36
+ jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').show();
37
+ jQuery('#customize-control-tracking_info_settings-track_header_text').show();
38
+ jQuery('#customize-control-tracking_info_settings-table_header_font_size').show();
39
+ jQuery('#customize-control-tracking_info_settings-table_header_font_color').show();
40
+ if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") == true){
41
+ jQuery('#customize-control-tracking_info_settings-track_header_text').show();
42
  } else{
43
+ jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
44
  }
45
  }
46
+
47
+ if(jQuery('#customize-control-tracking_info_settings-tracking_number_link input').prop("checked") == true){
48
+ jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
49
+ jQuery('#customize-control-tracking_info_settings-shipment_link_header').hide();
50
+ jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').hide();
51
+ jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').hide();
52
+ jQuery('#customize-control-tracking_info_settings-tracking_link_border').hide();
53
+ jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
54
+ } else{
55
+ if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") == true && jQuery('#customize-control-tracking_info_settings-tracking_number_link input').prop("checked") != true){
56
+ jQuery('#customize-control-tracking_info_settings-track_header_text').show();
57
+ }
58
+ jQuery('#customize-control-tracking_info_settings-show_track_label').show();
59
+ jQuery('#customize-control-tracking_info_settings-shipment_link_header').show();
60
+ jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').show();
61
+ jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').show();
62
+ jQuery('#customize-control-tracking_info_settings-tracking_link_border').show();
63
+ }
64
+
65
+ var tracking_template = jQuery(".tracking_template_select").val();
66
+ if(tracking_template == 'simple_list'){
67
+ jQuery('#customize-control-tracking_info_settings-table_content_header').hide();
68
+ jQuery('#customize-control-tracking_info_settings-display_shipment_provider_image').hide();
69
+ jQuery('#customize-control-tracking_info_settings-display_shipment_provider_name').hide();
70
+ jQuery('#customize-control-tracking_info_settings-remove_date_from_tracking').hide();
71
+ jQuery('#customize-control-tracking_info_settings-table_header_block').hide();
72
+ jQuery('#customize-control-tracking_info_settings-hide_table_header').hide();
73
+ jQuery('#customize-control-tracking_info_settings-provider_header_text').hide();
74
+ jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').hide();
75
+ jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').hide();
76
+ jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').hide();
77
+ jQuery('#customize-control-tracking_info_settings-tracking_number_link').hide();
78
+ jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
79
+ jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
80
+ jQuery('#customize-control-tracking_info_settings-table_header_font_size').hide();
81
+ jQuery('#customize-control-tracking_info_settings-table_header_font_color').hide();
82
+ jQuery('#customize-control-table_header').hide();
83
+ jQuery('#customize-control-tracking_info_settings-table_padding').hide();
84
+ jQuery('#customize-control-tracking_info_settings-table_bg_color').hide();
85
+ jQuery('#customize-control-tracking_info_settings-table_border_color').hide();
86
+ jQuery('#customize-control-tracking_info_settings-table_border_size').hide();
87
+ jQuery('#customize-control-tracking_info_settings-header_content_text_align').hide();
88
+ jQuery('#customize-control-tracking_info_settings-table_content_font_size').hide();
89
+ jQuery('#customize-control-tracking_info_settings-table_content_font_color').hide();
90
+ jQuery('#customize-control-tracking_info_settings-table_content_line_height').hide();
91
+ jQuery('#customize-control-tracking_info_settings-table_content_font_weight').hide();
92
+ jQuery('#customize-control-tracking_info_settings-shipment_link_header').hide();
93
+ jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').hide();
94
+ jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').hide();
95
+ jQuery('#customize-control-tracking_info_settings-tracking_link_border').hide();
96
+ jQuery('#customize-control-tracking_info_settings-simple_content_header').show();
97
+ jQuery('#customize-control-tracking_info_settings-show_simple_shipped_date').show();
98
+ jQuery('#customize-control-tracking_info_settings-simple_provider_font_size').show();
99
+ jQuery('#customize-control-tracking_info_settings-simple_provider_font_color').show();
100
+ jQuery('#customize-control-tracking_info_settings-show_provider_border').show();
101
+ if(jQuery('#customize-control-tracking_info_settings-show_provider_border input').prop("checked") == true){
102
+ jQuery('#customize-control-tracking_info_settings-provider_border_color').show();
103
+ }
104
+ } else{
105
+ jQuery('#customize-control-tracking_info_settings-simple_content_header').hide();
106
+ jQuery('#customize-control-tracking_info_settings-show_simple_shipped_date').hide();
107
+ jQuery('#customize-control-tracking_info_settings-simple_provider_font_size').hide();
108
+ jQuery('#customize-control-tracking_info_settings-simple_provider_font_color').hide();
109
+ jQuery('#customize-control-tracking_info_settings-show_provider_border').hide();
110
+ jQuery('#customize-control-tracking_info_settings-provider_border_color').hide();
111
+ }
112
+ });
113
 
114
+ jQuery(document).on("click", "#customize-control-tracking_info_settings-show_provider_border input", function(){
115
+ if(jQuery(this).prop("checked") == true){
116
+ jQuery('#customize-control-tracking_info_settings-provider_border_color').show();
117
+ } else{
118
+ jQuery('#customize-control-tracking_info_settings-provider_border_color').hide();
119
+ }
120
  });
121
+ jQuery(document).on("change", ".tracking_template_select", function(){
122
+ var tracking_template = jQuery(this).val();
123
+ if(tracking_template == 'simple_list'){
124
+ jQuery('#customize-control-tracking_info_settings-table_content_header').hide();
125
+ jQuery('#customize-control-tracking_info_settings-display_shipment_provider_image').hide();
126
+ jQuery('#customize-control-tracking_info_settings-display_shipment_provider_name').hide();
127
+ jQuery('#customize-control-tracking_info_settings-remove_date_from_tracking').hide();
128
+ jQuery('#customize-control-tracking_info_settings-table_header_block').hide();
129
+ jQuery('#customize-control-tracking_info_settings-hide_table_header').hide();
130
+ jQuery('#customize-control-tracking_info_settings-provider_header_text').hide();
131
+ jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').hide();
132
+ jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').hide();
133
+ jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').hide();
134
+ jQuery('#customize-control-tracking_info_settings-tracking_number_link').hide();
135
+ jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
136
+ jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
137
+ jQuery('#customize-control-tracking_info_settings-table_header_font_size').hide();
138
+ jQuery('#customize-control-tracking_info_settings-table_header_font_color').hide();
139
+ jQuery('#customize-control-table_header').hide();
140
+ jQuery('#customize-control-tracking_info_settings-table_padding').hide();
141
+ jQuery('#customize-control-tracking_info_settings-table_bg_color').hide();
142
+ jQuery('#customize-control-tracking_info_settings-table_border_color').hide();
143
+ jQuery('#customize-control-tracking_info_settings-table_border_size').hide();
144
+ jQuery('#customize-control-tracking_info_settings-header_content_text_align').hide();
145
+ jQuery('#customize-control-tracking_info_settings-table_content_font_size').hide();
146
+ jQuery('#customize-control-tracking_info_settings-table_content_font_color').hide();
147
+ jQuery('#customize-control-tracking_info_settings-table_content_line_height').hide();
148
+ jQuery('#customize-control-tracking_info_settings-table_content_font_weight').hide();
149
+ jQuery('#customize-control-tracking_info_settings-shipment_link_header').hide();
150
+ jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').hide();
151
+ jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').hide();
152
+ jQuery('#customize-control-tracking_info_settings-tracking_link_border').hide();
153
+ jQuery('#customize-control-tracking_info_settings-simple_content_header').show();
154
+ jQuery('#customize-control-tracking_info_settings-show_simple_shipped_date').show();
155
+ jQuery('#customize-control-tracking_info_settings-simple_provider_font_size').show();
156
+ jQuery('#customize-control-tracking_info_settings-simple_provider_font_color').show();
157
+ jQuery('#customize-control-tracking_info_settings-show_provider_border').show();
158
+ if(jQuery('#customize-control-tracking_info_settings-show_provider_border input').prop("checked") == true){
159
+ jQuery('#customize-control-tracking_info_settings-provider_border_color').show();
160
+ }
161
+ } else{
162
+ jQuery('#customize-control-tracking_info_settings-simple_content_header').hide();
163
+ jQuery('#customize-control-tracking_info_settings-show_simple_shipped_date').hide();
164
+ jQuery('#customize-control-tracking_info_settings-simple_provider_font_size').hide();
165
+ jQuery('#customize-control-tracking_info_settings-simple_provider_font_color').hide();
166
+ jQuery('#customize-control-tracking_info_settings-show_provider_border').hide();
167
+ jQuery('#customize-control-tracking_info_settings-provider_border_color').hide();
168
+ jQuery('#customize-control-tracking_info_settings-table_content_header').show();
169
+ jQuery('#customize-control-tracking_info_settings-display_shipment_provider_image').show();
170
+ jQuery('#customize-control-tracking_info_settings-display_shipment_provider_name').show();
171
+ jQuery('#customize-control-tracking_info_settings-remove_date_from_tracking').show();
172
+ jQuery('#customize-control-tracking_info_settings-table_header_block').show();
173
+ jQuery('#customize-control-show_table_header').show();
174
+ jQuery('#customize-control-tracking_info_settings-tracking_number_link').show();
175
+ jQuery('#customize-control-table_header').show();
176
+ jQuery('#customize-control-tracking_info_settings-table_padding').show();
177
+ jQuery('#customize-control-tracking_info_settings-table_bg_color').show();
178
+ jQuery('#customize-control-tracking_info_settings-table_border_color').show();
179
+ jQuery('#customize-control-tracking_info_settings-table_border_size').show();
180
+ jQuery('#customize-control-tracking_info_settings-header_content_text_align').show();
181
+ jQuery('#customize-control-tracking_info_settings-table_content_font_size').show();
182
+ jQuery('#customize-control-tracking_info_settings-table_content_font_color').show();
183
+ jQuery('#customize-control-tracking_info_settings-table_content_line_height').show();
184
+ jQuery('#customize-control-tracking_info_settings-table_content_font_weight').show();
185
+ jQuery('#customize-control-tracking_info_settings-hide_table_header').show();
186
+ if(jQuery('#customize-control-tracking_info_settings-hide_table_header input').prop("checked") != true){
187
+ jQuery('#customize-control-tracking_info_settings-provider_header_text').show();
188
+ jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').show();
189
+ jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').show();
190
+ jQuery('#customize-control-tracking_info_settings-table_header_font_size').show();
191
+ jQuery('#customize-control-tracking_info_settings-table_header_font_color').show();
192
+ }
193
+ if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") == true && jQuery('#customize-control-tracking_info_settings-tracking_number_link input').prop("checked") != true){
194
+ jQuery('#customize-control-tracking_info_settings-track_header_text').show();
195
+ }
196
+ if(jQuery('#customize-control-tracking_info_settings-tracking_number_link input').prop("checked") != true){
197
+ jQuery('#customize-control-tracking_info_settings-show_track_label').show();
198
+ jQuery('#customize-control-tracking_info_settings-shipment_link_header').show();
199
+ jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').show();
200
+ jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').show();
201
+ jQuery('#customize-control-tracking_info_settings-tracking_link_border').show();
202
+ }
203
+ }
204
+ });
205
+ jQuery(document).on("change", "#customize-control-tracking_info_settings-tracking_number_link input", function(){
206
+ if(jQuery(this).prop("checked") == true){
207
+ jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
208
+ jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
209
+ jQuery('#customize-control-tracking_info_settings-shipment_link_header').hide();
210
+ jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').hide();
211
+ jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').hide();
212
+ jQuery('#customize-control-tracking_info_settings-tracking_link_border').hide();
213
+ } else{
214
+ if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") == true){
215
+ jQuery('#customize-control-tracking_info_settings-track_header_text').show();
216
+ }
217
+ jQuery('#customize-control-tracking_info_settings-show_track_label').show();
218
+ jQuery('#customize-control-tracking_info_settings-shipment_link_header').show();
219
+ jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').show();
220
+ jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').show();
221
+ jQuery('#customize-control-tracking_info_settings-tracking_link_border').show();
222
+ }
223
+ });
224
+
225
+ jQuery(document).on("change", "#customize-control-tracking_info_settings-show_track_label input", function(){
226
  if(jQuery(this).prop("checked") == true){
227
+ jQuery('#customize-control-tracking_info_settings-track_header_text').show();
228
  } else{
229
+ jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
230
  }
231
  });
232
+
233
+ jQuery(document).on("change", "#customize-control-tracking_info_settings-hide_table_header input", function(){
234
  if(jQuery(this).prop("checked") == true){
235
+ jQuery('#customize-control-tracking_info_settings-provider_header_text').hide();
236
+ jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').hide();
237
+ jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').hide();
238
+ jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
239
+ jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
240
+ jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
241
+ jQuery('#customize-control-tracking_info_settings-table_header_font_size').hide();
242
+ jQuery('#customize-control-tracking_info_settings-table_header_font_color').hide();
243
  } else{
244
+ jQuery('#customize-control-tracking_info_settings-provider_header_text').show();
245
+ jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').show();
246
+ jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').show();
247
+ jQuery('#customize-control-tracking_info_settings-show_track_label').show();
248
+ jQuery('#customize-control-tracking_info_settings-track_header_text').show();
249
+ jQuery('#customize-control-tracking_info_settings-table_header_font_size').show();
250
+ jQuery('#customize-control-tracking_info_settings-table_header_font_color').show();
251
+ if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") == true){
252
+ jQuery('#customize-control-tracking_info_settings-track_header_text').show();
253
  }
254
  }
255
  });
256
+ jQuery(document).on("change", "#customize-control-woocommerce_customer_delivered_order_settings-wcast_enable_delivered_ga_tracking input", function(){
257
  if(jQuery(this).prop("checked") == true){
258
+ jQuery('#customize-control-woocommerce_customer_delivered_order_settings-wcast_delivered_analytics_link').show();
259
  } else{
260
+ jQuery('#customize-control-woocommerce_customer_delivered_order_settings-wcast_delivered_analytics_link').hide();
261
  }
262
  });
263
+ jQuery(document).on("change", "#_customize-input-customizer_delivered_order_settings_enabled", function(){
264
  if(jQuery(this).prop("checked") == true){
265
+ jQuery('#customize-control-wcast_delivered_email_settings-wcast_enable_delivered_status_email input').prop('disabled', true);
266
  } else{
267
+ jQuery('#customize-control-wcast_delivered_email_settings-wcast_enable_delivered_status_email input').removeAttr('disabled');
268
  }
269
  });
270
  // Handle mobile button click
334
  } );
335
  } ( wp.customize ) );
336
 
337
+ (function ( api ) {
338
+ api.section( 'customer_updated_tracking_email', function( section ) {
339
+ section.expanded.bind( function( isExpanded ) {
340
+ var url;
341
+ if ( isExpanded ) {
342
+ jQuery('#save').trigger('click');
343
+ url = wcast_customizer.updated_tracking_email_preview_url;
344
+ api.previewer.previewUrl.set( url );
345
+ }
346
+ } );
347
+ } );
348
+ } ( wp.customize ) );
349
+
350
  (function ( api ) {
351
  api.section( 'default_controls_section', function( section ) {
352
  section.expanded.bind( function( isExpanded ) {
432
  } );
433
  } );
434
  } ( wp.customize ) );
435
+ (function ( api ) {
436
+ api.section( 'admin_late_shipments_email', function( section ) {
437
+ section.expanded.bind( function( isExpanded ) {
438
+ var url;
439
+ if ( isExpanded ) {
440
+ jQuery('#save').trigger('click');
441
+ url = wcast_customizer.admin_late_shipments_preview_url;
442
+ api.previewer.previewUrl.set( url );
443
+ }
444
+ } );
445
+ } );
446
+ } ( wp.customize ) );
447
 
448
  jQuery(document).on("change", ".preview_order_select", function(){
449
  var wcast_preview_order_id = jQuery(this).val();
assets/js/front.js CHANGED
@@ -1,6 +1,24 @@
1
  jQuery(document).on("submit", ".order_track_form", function(){
2
  var form = jQuery(this);
3
  var error;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  jQuery(".order_track_form ").block({
5
  message: null,
6
  overlayCSS: {
@@ -8,6 +26,7 @@ jQuery(document).on("submit", ".order_track_form", function(){
8
  opacity: .6
9
  }
10
  });
 
11
  jQuery.ajax({
12
  url: zorem_ajax_object.ajax_url,
13
  data: form.serialize(),
@@ -53,4 +72,21 @@ jQuery(document).on("click", ".hide_table_rows", function(){
53
  jQuery(this).hide();
54
  jQuery(this).closest('.shipment_progress_div').find('.view_table_rows').show();
55
  jQuery(this).closest('.shipment_progress_div').find('table.tracking-table tr:nth-child(n+3)').hide();
56
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  jQuery(document).on("submit", ".order_track_form", function(){
2
  var form = jQuery(this);
3
  var error;
4
+ var order_id = form.find("#order_id");
5
+ var order_email = form.find("#order_email");
6
+
7
+ if( order_id.val() === '' ){
8
+ showerror( order_id );error = true;
9
+ } else{
10
+ hideerror(order_id);
11
+ }
12
+ if(order_email.val() == '' ){
13
+ showerror(order_email);error = true;
14
+ } else {
15
+ hideerror(order_email);
16
+ }
17
+
18
+ if(error == true){
19
+ return false;
20
+ }
21
+
22
  jQuery(".order_track_form ").block({
23
  message: null,
24
  overlayCSS: {
26
  opacity: .6
27
  }
28
  });
29
+
30
  jQuery.ajax({
31
  url: zorem_ajax_object.ajax_url,
32
  data: form.serialize(),
72
  jQuery(this).hide();
73
  jQuery(this).closest('.shipment_progress_div').find('.view_table_rows').show();
74
  jQuery(this).closest('.shipment_progress_div').find('table.tracking-table tr:nth-child(n+3)').hide();
75
+ });
76
+
77
+ jQuery(document).on("click", ".view_old_details", function(){
78
+ jQuery(this).hide();
79
+ jQuery(this).closest('.tracking-details').find('.hide_old_details').show();
80
+ jQuery(this).closest('.tracking-details').find('.old-details').fadeIn();
81
+ });
82
+ jQuery(document).on("click", ".hide_old_details", function(){
83
+ jQuery(this).hide();
84
+ jQuery(this).closest('.tracking-details').find('.view_old_details').show();
85
+ jQuery(this).closest('.tracking-details').find('.old-details').fadeOut();
86
+ });
87
+ function showerror(element){
88
+ element.css("border-color","red");
89
+ }
90
+ function hideerror(element){
91
+ element.css("border-color","");
92
+ }
assets/js/preview-scripts.js CHANGED
@@ -1,7 +1,7 @@
1
  ( function( $ ) {
2
  $('.hide').hide();
3
  /* Hide/Show Header */
4
- wp.customize( 'display_shipment_provider_image', function( value ) {
5
  value.bind( function( to ) {
6
  if( to ){
7
  $( '.tracking-provider img' ).show();
@@ -11,7 +11,7 @@
11
  }
12
  });
13
  });
14
- wp.customize( 'remove_date_from_tracking', function( value ) {
15
  value.bind( function( remove_date_from_tracking ) {
16
  if( remove_date_from_tracking ){
17
  $( '.date-shipped' ).hide();
@@ -21,7 +21,7 @@
21
  }
22
  });
23
  });
24
- wp.customize( 'show_track_label', function( value ) {
25
  value.bind( function( show_track_label ) {
26
  if( show_track_label ){
27
  $( 'span.track_label' ).show();
@@ -31,8 +31,8 @@
31
  }
32
  });
33
  });
34
- wp.customize( 'header_text_change', function( value ) {
35
- value.bind( function( header_text ) {
36
  if( header_text ){
37
  $( '.header_text' ).text(header_text);
38
  } else{
@@ -40,7 +40,7 @@
40
  }
41
  });
42
  });
43
- wp.customize( 'additional_header_text', function( value ) {
44
  value.bind( function( additional_header_text ) {
45
  if( additional_header_text ){
46
  $( '.addition_header' ).text(additional_header_text);
@@ -50,7 +50,7 @@
50
  });
51
  });
52
 
53
- wp.customize( 'hide_table_header', function( value ) {
54
  value.bind( function( hide_table_header ) {
55
  if( hide_table_header ){
56
  $( '.tracking_table thead' ).hide();
@@ -61,7 +61,7 @@
61
  });
62
  });
63
 
64
- wp.customize( 'provider_header_text', function( value ) {
65
  value.bind( function( provider_header_text ) {
66
  if( provider_header_text ){
67
  $( 'th.tracking-provider' ).text(provider_header_text);
@@ -71,7 +71,7 @@
71
  });
72
  });
73
 
74
- wp.customize( 'tracking_number_header_text', function( value ) {
75
  value.bind( function( tracking_number_header_text ) {
76
  if( tracking_number_header_text ){
77
  $( 'th.tracking-number' ).text(tracking_number_header_text);
@@ -81,7 +81,7 @@
81
  });
82
  });
83
 
84
- wp.customize( 'shipped_date_header_text', function( value ) {
85
  value.bind( function( shipped_date_header_text ) {
86
  if( shipped_date_header_text ){
87
  $( 'th.date-shipped ' ).text(shipped_date_header_text);
@@ -91,7 +91,7 @@
91
  });
92
  });
93
 
94
- wp.customize( 'track_header_text', function( value ) {
95
  value.bind( function( track_header_text ) {
96
  if( track_header_text ){
97
  $( 'th.order-actions' ).text(track_header_text);
@@ -102,7 +102,7 @@
102
  });
103
 
104
 
105
- wp.customize( 'header_content_text_align', function( setting ) {
106
  /* Deferred callback for when setting exists */
107
  setting.bind( function( header_content_text_align ) {
108
  /* Update callback for setting change */
@@ -111,7 +111,7 @@
111
  } );
112
  } );
113
 
114
- wp.customize( 'table_padding', function( setting ) {
115
  /* Deferred callback for when setting exists */
116
  setting.bind( function( table_padding ) {
117
  /* Update callback for setting change */
@@ -120,14 +120,14 @@
120
  } );
121
  } );
122
 
123
- wp.customize( 'table_bg_color', function( setting ) {
124
  /* Deferred callback for when setting exists */
125
  setting.bind( function( newValue ) {
126
  /* Update callback for setting change */
127
  $( '.tracking_table' ).css( 'background-color',newValue );
128
  } );
129
  } );
130
- wp.customize( 'table_border_color', function( setting ) {
131
  /* Deferred callback for when setting exists */
132
  setting.bind( function( table_border_color ) {
133
  /* Update callback for setting change */
@@ -135,7 +135,7 @@
135
  $( '.tracking_table td' ).css( 'border-color',table_border_color );
136
  } );
137
  } );
138
- wp.customize( 'table_border_size', function( setting ) {
139
  /* Deferred callback for when setting exists */
140
  setting.bind( function( table_border_size ) {
141
  /* Update callback for setting change */
@@ -143,49 +143,49 @@
143
  $( '.tracking_table td' ).css( 'border-width',table_border_size+'px' );
144
  } );
145
  } );
146
- wp.customize( 'table_header_font_size', function( setting ) {
147
  /* Deferred callback for when setting exists */
148
  setting.bind( function( table_header_font_size ) {
149
  /* Update callback for setting change */
150
  $( '.tracking_table th' ).css( 'font-size',table_header_font_size+'px' );
151
  } );
152
  } );
153
- wp.customize( 'table_header_font_color', function( setting ) {
154
  /* Deferred callback for when setting exists */
155
  setting.bind( function( table_header_font_color ) {
156
  /* Update callback for setting change */
157
  $( '.tracking_table th' ).css( 'color',table_header_font_color );
158
  } );
159
  } );
160
- wp.customize( 'table_content_font_size', function( setting ) {
161
  /* Deferred callback for when setting exists */
162
  setting.bind( function( table_content_font_size ) {
163
  /* Update callback for setting change */
164
  $( '.tracking_table td' ).css( 'font-size',table_content_font_size+'px' );
165
  } );
166
  } );
167
- wp.customize( 'table_content_font_color', function( setting ) {
168
  /* Deferred callback for when setting exists */
169
  setting.bind( function( table_content_font_color ) {
170
  /* Update callback for setting change */
171
  $( '.tracking_table td' ).css( 'color',table_content_font_color );
172
  } );
173
  } );
174
- wp.customize( 'tracking_link_font_color', function( setting ) {
175
  /* Deferred callback for when setting exists */
176
  setting.bind( function( tracking_link_font_color ) {
177
  /* Update callback for setting change */
178
  $( '.tracking_table td a' ).css( 'color',tracking_link_font_color );
179
  } );
180
  } );
181
- wp.customize( 'tracking_link_bg_color', function( setting ) {
182
  /* Deferred callback for when setting exists */
183
  setting.bind( function( tracking_link_bg_color ) {
184
  /* Update callback for setting change */
185
  $( '.tracking_table td a' ).css( 'background-color',tracking_link_bg_color );
186
  } );
187
  } );
188
- wp.customize( 'tracking_link_border', function( setting ) {
189
  /* Deferred callback for when setting exists */
190
  setting.bind( function( tracking_link_border ) {
191
  /* Update callback for setting change */
@@ -197,12 +197,12 @@
197
  }
198
  } );
199
  } );
200
- wp.customize( 'table_content_line_height', function( value ) {
201
  value.bind( function( table_content_line_height ) {
202
  $( '.tracking_table' ).css( 'line-height',table_content_line_height+'px' );
203
  });
204
  });
205
- wp.customize( 'table_content_font_weight', function( value ) {
206
  value.bind( function( table_content_font_weight ) {
207
  $( '.tracking_table td' ).css( 'font-weight',table_content_font_weight );
208
  });
@@ -240,6 +240,22 @@
240
  });
241
  });
242
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
 
244
  wp.customize( 'remove_trackship_branding', function( value ) {
245
  value.bind( function( remove_trackship_branding ) {
@@ -345,4 +361,39 @@
345
  }
346
  });
347
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
  } )( jQuery );
1
  ( function( $ ) {
2
  $('.hide').hide();
3
  /* Hide/Show Header */
4
+ wp.customize( 'tracking_info_settings[display_shipment_provider_image]', function( value ) {
5
  value.bind( function( to ) {
6
  if( to ){
7
  $( '.tracking-provider img' ).show();
11
  }
12
  });
13
  });
14
+ wp.customize( 'tracking_info_settings[remove_date_from_tracking]', function( value ) {
15
  value.bind( function( remove_date_from_tracking ) {
16
  if( remove_date_from_tracking ){
17
  $( '.date-shipped' ).hide();
21
  }
22
  });
23
  });
24
+ wp.customize( 'tracking_info_settings[show_track_label]', function( value ) {
25
  value.bind( function( show_track_label ) {
26
  if( show_track_label ){
27
  $( 'span.track_label' ).show();
31
  }
32
  });
33
  });
34
+ wp.customize( 'tracking_info_settings[header_text_change]', function( value ) {
35
+ value.bind( function( header_text ) {
36
  if( header_text ){
37
  $( '.header_text' ).text(header_text);
38
  } else{
40
  }
41
  });
42
  });
43
+ wp.customize( 'tracking_info_settings[additional_header_text]', function( value ) {
44
  value.bind( function( additional_header_text ) {
45
  if( additional_header_text ){
46
  $( '.addition_header' ).text(additional_header_text);
50
  });
51
  });
52
 
53
+ wp.customize( 'tracking_info_settings[hide_table_header]', function( value ) {
54
  value.bind( function( hide_table_header ) {
55
  if( hide_table_header ){
56
  $( '.tracking_table thead' ).hide();
61
  });
62
  });
63
 
64
+ wp.customize( 'tracking_info_settings[provider_header_text]', function( value ) {
65
  value.bind( function( provider_header_text ) {
66
  if( provider_header_text ){
67
  $( 'th.tracking-provider' ).text(provider_header_text);
71
  });
72
  });
73
 
74
+ wp.customize( 'tracking_info_settings[tracking_number_header_text]', function( value ) {
75
  value.bind( function( tracking_number_header_text ) {
76
  if( tracking_number_header_text ){
77
  $( 'th.tracking-number' ).text(tracking_number_header_text);
81
  });
82
  });
83
 
84
+ wp.customize( 'tracking_info_settings[shipped_date_header_text]', function( value ) {
85
  value.bind( function( shipped_date_header_text ) {
86
  if( shipped_date_header_text ){
87
  $( 'th.date-shipped ' ).text(shipped_date_header_text);
91
  });
92
  });
93
 
94
+ wp.customize( 'tracking_info_settings[track_header_text]', function( value ) {
95
  value.bind( function( track_header_text ) {
96
  if( track_header_text ){
97
  $( 'th.order-actions' ).text(track_header_text);
102
  });
103
 
104
 
105
+ wp.customize( 'tracking_info_settings[header_content_text_align]', function( setting ) {
106
  /* Deferred callback for when setting exists */
107
  setting.bind( function( header_content_text_align ) {
108
  /* Update callback for setting change */
111
  } );
112
  } );
113
 
114
+ wp.customize( 'tracking_info_settings[table_padding]', function( setting ) {
115
  /* Deferred callback for when setting exists */
116
  setting.bind( function( table_padding ) {
117
  /* Update callback for setting change */
120
  } );
121
  } );
122
 
123
+ wp.customize( 'tracking_info_settings[table_bg_color]', function( setting ) {
124
  /* Deferred callback for when setting exists */
125
  setting.bind( function( newValue ) {
126
  /* Update callback for setting change */
127
  $( '.tracking_table' ).css( 'background-color',newValue );
128
  } );
129
  } );
130
+ wp.customize( 'tracking_info_settings[table_border_color]', function( setting ) {
131
  /* Deferred callback for when setting exists */
132
  setting.bind( function( table_border_color ) {
133
  /* Update callback for setting change */
135
  $( '.tracking_table td' ).css( 'border-color',table_border_color );
136
  } );
137
  } );
138
+ wp.customize( 'tracking_info_settings[table_border_size]', function( setting ) {
139
  /* Deferred callback for when setting exists */
140
  setting.bind( function( table_border_size ) {
141
  /* Update callback for setting change */
143
  $( '.tracking_table td' ).css( 'border-width',table_border_size+'px' );
144
  } );
145
  } );
146
+ wp.customize( 'tracking_info_settings[table_header_font_size]', function( setting ) {
147
  /* Deferred callback for when setting exists */
148
  setting.bind( function( table_header_font_size ) {
149
  /* Update callback for setting change */
150
  $( '.tracking_table th' ).css( 'font-size',table_header_font_size+'px' );
151
  } );
152
  } );
153
+ wp.customize( 'tracking_info_settings[table_header_font_color]', function( setting ) {
154
  /* Deferred callback for when setting exists */
155
  setting.bind( function( table_header_font_color ) {
156
  /* Update callback for setting change */
157
  $( '.tracking_table th' ).css( 'color',table_header_font_color );
158
  } );
159
  } );
160
+ wp.customize( 'tracking_info_settings[table_content_font_size]', function( setting ) {
161
  /* Deferred callback for when setting exists */
162
  setting.bind( function( table_content_font_size ) {
163
  /* Update callback for setting change */
164
  $( '.tracking_table td' ).css( 'font-size',table_content_font_size+'px' );
165
  } );
166
  } );
167
+ wp.customize( 'tracking_info_settings[table_content_font_color]', function( setting ) {
168
  /* Deferred callback for when setting exists */
169
  setting.bind( function( table_content_font_color ) {
170
  /* Update callback for setting change */
171
  $( '.tracking_table td' ).css( 'color',table_content_font_color );
172
  } );
173
  } );
174
+ wp.customize( 'tracking_info_settings[tracking_link_font_color]', function( setting ) {
175
  /* Deferred callback for when setting exists */
176
  setting.bind( function( tracking_link_font_color ) {
177
  /* Update callback for setting change */
178
  $( '.tracking_table td a' ).css( 'color',tracking_link_font_color );
179
  } );
180
  } );
181
+ wp.customize( 'tracking_info_settings[tracking_link_bg_color]', function( setting ) {
182
  /* Deferred callback for when setting exists */
183
  setting.bind( function( tracking_link_bg_color ) {
184
  /* Update callback for setting change */
185
  $( '.tracking_table td a' ).css( 'background-color',tracking_link_bg_color );
186
  } );
187
  } );
188
+ wp.customize( 'tracking_info_settings[tracking_link_border]', function( setting ) {
189
  /* Deferred callback for when setting exists */
190
  setting.bind( function( tracking_link_border ) {
191
  /* Update callback for setting change */
197
  }
198
  } );
199
  } );
200
+ wp.customize( 'tracking_info_settings[table_content_line_height]', function( value ) {
201
  value.bind( function( table_content_line_height ) {
202
  $( '.tracking_table' ).css( 'line-height',table_content_line_height+'px' );
203
  });
204
  });
205
+ wp.customize( 'tracking_info_settings[table_content_font_weight]', function( value ) {
206
  value.bind( function( table_content_font_weight ) {
207
  $( '.tracking_table td' ).css( 'font-weight',table_content_font_weight );
208
  });
240
  });
241
  });
242
 
243
+ wp.customize( 'woocommerce_customer_updated_tracking_order_settings[heading]', function( value ) {
244
+ value.bind( function( wcast_updated_tracking_email_heading ) {
245
+
246
+ var str = wcast_updated_tracking_email_heading;
247
+ var res = str.replace("{site_title}", wcast_preview.site_title);
248
+
249
+ var res = res.replace("{order_number}", wcast_preview.order_number);
250
+
251
+ if( wcast_updated_tracking_email_heading ){
252
+ $( '#header_wrapper h1' ).text(res);
253
+ } else{
254
+ $( '#header_wrapper h1' ).text('');
255
+ }
256
+ });
257
+ });
258
+
259
 
260
  wp.customize( 'remove_trackship_branding', function( value ) {
261
  value.bind( function( remove_trackship_branding ) {
361
  }
362
  });
363
  });
364
+
365
+ wp.customize( 'tracking_info_settings[simple_provider_font_size]', function( setting ) {
366
+ /* Deferred callback for when setting exists */
367
+ setting.bind( function( simple_provider_font_size ) {
368
+ /* Update callback for setting change */
369
+ $( '.tracking_list_div' ).css( 'font-size',simple_provider_font_size );
370
+ } );
371
+ } );
372
+
373
+ wp.customize( 'tracking_info_settings[simple_provider_font_color]', function( setting ) {
374
+ /* Deferred callback for when setting exists */
375
+ setting.bind( function( simple_provider_font_color ) {
376
+ /* Update callback for setting change */
377
+ $( '.tracking_list_div' ).css( 'color',simple_provider_font_color );
378
+ } );
379
+ } );
380
+
381
+ wp.customize( 'tracking_info_settings[show_provider_border]', function( setting ) {
382
+ /* Deferred callback for when setting exists */
383
+ setting.bind( function( show_provider_border ) {
384
+ if( show_provider_border ){
385
+ $( '.tracking_list_div' ).css( 'border-bottom','1px solid' );;
386
+ }
387
+ else{
388
+ $( '.tracking_list_div' ).css( 'border-bottom','0' );;
389
+ }
390
+ } );
391
+ } );
392
+
393
+ wp.customize( 'tracking_info_settings[provider_border_color]', function( setting ) {
394
+ /* Deferred callback for when setting exists */
395
+ setting.bind( function( provider_border_color ) {
396
+ $( '.tracking_list_div' ).css( 'border-bottom','1px solid '+provider_border_color );
397
+ } );
398
+ } );
399
  } )( jQuery );
assets/js/settings.js CHANGED
@@ -9,30 +9,25 @@ jQuery(document).on("click", ".shipping_provider_tab li", function(){
9
  });
10
  jQuery(document).on("click", "#wc_ast_status_delivered", function(){
11
  if(jQuery(this).prop("checked") == true){
12
- jQuery('.status_label_color_th').show();
13
- jQuery('label.tab_label[for="tab5"]').show();
14
  } else{
15
- jQuery('.status_label_color_th').hide();
16
- jQuery('label.tab_label[for="tab5"]').hide();
17
- }
18
- var email_type = jQuery('#wc_ast_select_email_type').val();
19
- if(email_type == 'wc_email' && jQuery(this).prop("checked") == true){
20
- jQuery('.manage_delivered_order_email_link').show();
21
- } else{
22
- jQuery('.manage_delivered_order_email_link').hide();
23
  }
24
  });
25
 
26
  jQuery(document).on("click", "#wc_ast_status_partial_shipped", function(){
27
-
28
  if(jQuery(this).prop("checked") == true){
29
- jQuery('.partial_shipped_status_label_color_th').show();
30
- jQuery('#partial-shipped').closest( ".mdl-list__item-secondary-action" ).show();
31
  } else{
32
- jQuery('.partial_shipped_status_label_color_th').hide();
33
- jQuery('#partial-shipped').closest( ".mdl-list__item-secondary-action" ).hide();
34
- }
35
-
 
 
 
 
 
36
  });
37
 
38
  jQuery(document).on("change", "#wc_ast_select_email_type", function(){
@@ -85,10 +80,60 @@ jQuery( document ).ready(function() {
85
  jQuery('.partial_shipped_status_label_color_th').hide();
86
  }
87
 
88
- jQuery('#wc_ast_status_label_color').wpColorPicker();
89
- jQuery('#wc_ast_status_partial_shipped_label_color').wpColorPicker();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  jQuery('.color_field input').wpColorPicker();
91
  });
 
 
 
 
 
 
 
 
 
 
 
 
92
  jQuery(document).on("click", '#variable_tag #var_input', function(e){
93
  jQuery(this).focus();
94
  jQuery(this).select();
9
  });
10
  jQuery(document).on("click", "#wc_ast_status_delivered", function(){
11
  if(jQuery(this).prop("checked") == true){
12
+ jQuery(this).closest('tr').removeClass('disable_row');
 
13
  } else{
14
+ jQuery(this).closest('tr').addClass('disable_row');
 
 
 
 
 
 
 
15
  }
16
  });
17
 
18
  jQuery(document).on("click", "#wc_ast_status_partial_shipped", function(){
 
19
  if(jQuery(this).prop("checked") == true){
20
+ jQuery(this).closest('tr').removeClass('disable_row');
 
21
  } else{
22
+ jQuery(this).closest('tr').addClass('disable_row');
23
+ }
24
+ });
25
+ jQuery(document).on("click", "#wc_ast_status_updated_tracking", function(){
26
+ if(jQuery(this).prop("checked") == true){
27
+ jQuery(this).closest('tr').removeClass('disable_row');
28
+ } else{
29
+ jQuery(this).closest('tr').addClass('disable_row');
30
+ }
31
  });
32
 
33
  jQuery(document).on("change", "#wc_ast_select_email_type", function(){
80
  jQuery('.partial_shipped_status_label_color_th').hide();
81
  }
82
 
83
+ jQuery('#wc_ast_status_label_color').wpColorPicker({
84
+ change: function(e, ui) {
85
+ var color = ui.color.toString();
86
+ jQuery('.order-status-table .order-label.wc-delivered').css('background',color);
87
+ },
88
+ });
89
+ jQuery('#wc_ast_status_partial_shipped_label_color').wpColorPicker({
90
+ change: function(e, ui) {
91
+ var color = ui.color.toString();
92
+ jQuery('.order-status-table .order-label.wc-partially-shipped').css('background',color);
93
+ },
94
+ });
95
+ jQuery('#wc_ast_status_updated_tracking_label_color').wpColorPicker({
96
+ change: function(e, ui) {
97
+ var color = ui.color.toString();
98
+ jQuery('.order-status-table .order-label.wc-updated-tracking').css('background',color);
99
+ },
100
+ });
101
+ jQuery('#wc_ast_select_primary_color').wpColorPicker({
102
+ change: function(e, ui) {
103
+ var color = ui.color.toString();
104
+ jQuery('#tracking_preview_iframe').contents().find('.bg-secondary').css('background-color',color);
105
+ jQuery('#tracking_preview_iframe').contents().find('.tracker-progress-bar-with-dots .secondary .dot').css('border-color',color);
106
+ jQuery('#tracking_preview_iframe').contents().find('.text-secondary').css('color',color);
107
+ jQuery('#tracking_preview_iframe').contents().find('.progress-bar.bg-secondary:before').css('background-color',color);
108
+ jQuery('#tracking_preview_iframe').contents().find('.tracking-number').css('color',color);
109
+ jQuery('#tracking_preview_iframe').contents().find('.view_table_rows').css('color',color);
110
+ jQuery('#tracking_preview_iframe').contents().find('.hide_table_rows').css('color',color);
111
+ jQuery('#tracking_preview_iframe').contents().find('.tracking-detail.tracking-layout-2').css('color',color);
112
+ jQuery('#tracking_preview_iframe').contents().find('.view_old_details').css('color',color);
113
+ jQuery('#tracking_preview_iframe').contents().find('.hide_old_details').css('color',color);
114
+ jQuery('#tracking_preview_iframe').contents().find('.tracking-table tbody tr td').css('color',color);
115
+ },
116
+ });
117
+ jQuery('#wc_ast_select_border_color').wpColorPicker({
118
+ change: function(e, ui) {
119
+ var color = ui.color.toString();
120
+ jQuery('#tracking_preview_iframe').contents().find('.col.tracking-detail').css('border','1px solid '+color);
121
+ },
122
+ });
123
  jQuery('.color_field input').wpColorPicker();
124
  });
125
+ jQuery(document).on("change", "#wc_ast_status_label_font_color", function(){
126
+ var font_color = jQuery(this).val();
127
+ jQuery('.order-status-table .order-label.wc-delivered').css('color',font_color);
128
+ });
129
+ jQuery(document).on("change", "#wc_ast_status_partial_shipped_label_font_color", function(){
130
+ var font_color = jQuery(this).val();
131
+ jQuery('.order-status-table .order-label.wc-partially-shipped').css('color',font_color);
132
+ });
133
+ jQuery(document).on("change", "#wc_ast_status_updated_tracking_label_font_color", function(){
134
+ var font_color = jQuery(this).val();
135
+ jQuery('.order-status-table .order-label.wc-updated-tracking').css('color',font_color);
136
+ });
137
  jQuery(document).on("click", '#variable_tag #var_input', function(e){
138
  jQuery(this).focus();
139
  jQuery(this).select();
assets/js/shipping_row.js CHANGED
@@ -7,6 +7,7 @@
7
 
8
  var $wc_ast_settings_form = $("#wc_ast_settings_form");
9
  var $wc_ast_trackship_form = $("#wc_ast_trackship_form");
 
10
 
11
 
12
  var wc_table_rate_rows = {
@@ -28,6 +29,7 @@
28
 
29
  $wc_ast_settings_form.on( 'click', '.woocommerce-save-button', this.save_wc_ast_settings_form );
30
  $wc_ast_trackship_form.on( 'click', '.woocommerce-save-button', this.save_wc_ast_trackship_form );
 
31
 
32
  $(".tipTip").tipTip();
33
 
@@ -59,8 +61,45 @@
59
  $wc_ast_trackship_form.find(".spinner").removeClass("active");
60
  var snackbarContainer = document.querySelector('#demo-toast-example');
61
  var data = {message: 'Data saved successfully.'};
62
- snackbarContainer.MaterialSnackbar.showSnackbar(data);
63
- //$wc_ast_settings_form.find(".success_msg").show();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  });
65
 
66
  },
@@ -201,11 +240,14 @@ jQuery(document).on("change", ".wc_ast_default_provider", function(){
201
  });
202
  jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
203
  jQuery('.csv_upload_status li').remove();
 
204
  jQuery('.progress_title').hide();
205
  var form = jQuery('#wc_ast_upload_csv_form');
206
  var error;
207
  var trcking_csv_file = form.find("#trcking_csv_file");
208
  var replace_tracking_info = jQuery("#replace_tracking_info").prop("checked");
 
 
209
  if(replace_tracking_info == true){
210
  replace_tracking_info = 1;
211
  } else{
@@ -254,11 +296,18 @@ jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
254
  tracking.tracking_number = cells[2];
255
  tracking.date_shipped = cells[3];
256
  tracking.status_shipped = cells[4];
 
 
 
 
 
 
257
  if(tracking.order_id){
258
  trackings.push(tracking);
259
  }
260
  }
261
- }
 
262
  var csv_length = trackings.length;
263
 
264
  jQuery("#wc_ast_upload_csv_form")[0].reset();
@@ -267,20 +316,30 @@ jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
267
  querySelector.MaterialProgress.setProgress(0);
268
  jQuery("#p1").show();
269
  jQuery(trackings).each(function(index, element) {
270
-
 
271
  var order_id = trackings[index]['order_id'];
272
  var tracking_provider = trackings[index]['tracking_provider'];
273
  var tracking_number = trackings[index]['tracking_number'];
274
  var date_shipped = trackings[index]['date_shipped'];
275
- var status_shipped = trackings[index]['status_shipped'];
 
 
 
 
 
 
276
 
277
  var data = {
278
  action: 'wc_ast_upload_csv_form_update',
279
  order_id: order_id,
 
280
  tracking_provider: tracking_provider,
281
  tracking_number: tracking_number,
282
  date_shipped: date_shipped,
283
  status_shipped: status_shipped,
 
 
284
  replace_tracking_info: replace_tracking_info,
285
  trackings: trackings,
286
  };
@@ -296,6 +355,7 @@ jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
296
 
297
  jQuery('.csv_upload_status').append(data);
298
  var progress = (index+1)*100/csv_length;
 
299
  jQuery('.progress_title').show();
300
  querySelector.MaterialProgress.setProgress(progress);
301
  if(progress == 100){
@@ -360,6 +420,30 @@ jQuery(document).on("change", ".shipment_status_toggle input", function(){
360
  });
361
  });
362
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
363
 
364
  jQuery(document).on("click", ".status_filter a", function(){
365
  jQuery("#content1 ").block({
@@ -475,9 +559,9 @@ jQuery(document).on( "input", "#search_provider", function(){
475
  data: ajax_data,
476
  type: 'POST',
477
  success: function(response) {
478
- jQuery(".provider_list").replaceWith(response);
479
- //jQuery("#content1 ").unblock();
480
- componentHandler.upgradeAllRegistered();
481
  var searchvalue = jQuery("#search_provider").val().toLowerCase().replace(/\s+/g, '');
482
  jQuery('.provider').each(function() {
483
  var provider = jQuery(this).find('.provider_name').text().toLowerCase().replace(/\s+/g, '');
@@ -487,11 +571,17 @@ jQuery(document).on( "input", "#search_provider", function(){
487
  var hascountry= country.indexOf(searchvalue)!==-1;
488
 
489
  if (hasprovider || hascountry) {
490
- jQuery(this).show();
491
- } else {
 
492
  jQuery(this).hide();
493
  }
494
  });
 
 
 
 
 
495
  },
496
  error: function(response) {
497
  }
@@ -506,6 +596,8 @@ jQuery(document).on("click", ".popupclose", function(){
506
  jQuery('.edit_provider_popup').hide();
507
  jQuery('.sync_provider_popup').hide();
508
  jQuery('.how_to_video_popup').hide();
 
 
509
  });
510
  jQuery(document).on("click", ".close_synch_popup", function(){
511
  jQuery('.sync_provider_popup').hide();
@@ -596,7 +688,7 @@ jQuery(document).on("click", ".remove", function(){
596
  var r = confirm( shipment_tracking_table_rows.i18n.delete_provider );
597
  if (r === true) {
598
  } else {
599
- $("#content1").unblock();
600
  return;
601
  }
602
  var id = jQuery(this).data('pid');
@@ -646,9 +738,9 @@ jQuery(document).on("click", ".edit_provider", function(){
646
  jQuery('.edit_provider_popup #thumb_url').val(image);
647
  jQuery('.edit_provider_popup #thumb_id').val(custom_thumb_id);
648
  jQuery('.edit_provider_popup #provider_id').val(id);
649
- $(".edit_provider_popup #shipping_country").val(shipping_country);
650
  jQuery('.edit_provider_popup').show();
651
- //console.log(provider_name);
652
  },
653
  error: function(response) {
654
  console.log(response);
@@ -728,7 +820,7 @@ jQuery(document).on("click", ".reset_active", function(){
728
  var r = confirm( 'Do you really want to change all provider status to active?' );
729
  if (r === true) {
730
  } else {
731
- $("#content1").unblock();
732
  return;
733
  }
734
 
@@ -764,7 +856,7 @@ jQuery(document).on("click", ".reset_inactive", function(){
764
  var r = confirm( 'Do you really want to change all provider status to inactive?' );
765
  if (r === true) {
766
  } else {
767
- $("#content1").unblock();
768
  return;
769
  }
770
 
@@ -991,19 +1083,205 @@ jQuery(document).on("click", ".bulk_shipment_status_button_for_empty_balance", f
991
  return false;
992
  });
993
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
994
  jQuery(document).on("click", ".tab_input", function(){
995
  var tab = jQuery(this).data('tab');
996
  var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=woocommerce-advanced-shipment-tracking&tab="+tab;
997
  window.history.pushState({path:url},'',url);
998
  });
 
 
 
 
 
999
 
1000
  jQuery(document).on("click", ".open_video_popup", function(){
1001
  jQuery('.how_to_video_popup').show();
1002
  });
1003
 
 
 
 
 
 
 
 
1004
  jQuery(document).on("click", ".how_to_video_popup .popupclose", function(){
1005
  jQuery('#how_to_video').each(function(index) {
1006
  jQuery(this).attr('src', jQuery(this).attr('src'));
1007
  return false;
1008
  });
1009
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  var $wc_ast_settings_form = $("#wc_ast_settings_form");
9
  var $wc_ast_trackship_form = $("#wc_ast_trackship_form");
10
+ var $wc_ast_addons_form = $("#wc_ast_addons_form");
11
 
12
 
13
  var wc_table_rate_rows = {
29
 
30
  $wc_ast_settings_form.on( 'click', '.woocommerce-save-button', this.save_wc_ast_settings_form );
31
  $wc_ast_trackship_form.on( 'click', '.woocommerce-save-button', this.save_wc_ast_trackship_form );
32
+ $wc_ast_addons_form.on( 'click', '.woocommerce-save-button', this.save_wc_ast_addons_form );
33
 
34
  $(".tipTip").tipTip();
35
 
61
  $wc_ast_trackship_form.find(".spinner").removeClass("active");
62
  var snackbarContainer = document.querySelector('#demo-toast-example');
63
  var data = {message: 'Data saved successfully.'};
64
+ snackbarContainer.MaterialSnackbar.showSnackbar(data);
65
+ });
66
+
67
+ },
68
+
69
+ save_wc_ast_addons_form: function( event ) {
70
+ event.preventDefault();
71
+
72
+ $wc_ast_addons_form.find(".spinner").addClass("active");
73
+ jQuery('.pesan').hide();
74
+ var action = jQuery('#ast-license-action').val();
75
+ //$wc_ast_settings_form.find(".success_msg").hide();
76
+ var ajax_data = $wc_ast_addons_form.serialize();
77
+
78
+ $.post( ajaxurl, ajax_data, function(data) {
79
+ $wc_ast_addons_form.find(".spinner").removeClass("active");
80
+ jQuery('.pesan').show();
81
+ //console.log(data.success);
82
+ var btn_value = 'Activate';
83
+ if(data.success == true){
84
+ if(action == 'ast_product_license_activate'){
85
+ var btn_value = 'Deactivate';
86
+ jQuery('#ast-license-action').val('esre_license_deactivate');
87
+ jQuery('.pesan').html('Congratulation, your license successful activated');
88
+ jQuery('.activated').show();
89
+ window.location.reload();
90
+ } else {
91
+ jQuery('#ast-license-action').val('esre_license_activate');
92
+ jQuery('#ast_product_license_key').val('');
93
+ jQuery('#ast_product_license_email').val('');
94
+ jQuery('.pesan').html('<span style="color:green;">Congratulation, your license successful deactivated</span>');
95
+ jQuery('.activated').hide();
96
+ window.location.reload();
97
+ }
98
+ } else {
99
+ jQuery('.pesan').html('<span style="color:red;">'+data.error+'</span>');
100
+ }
101
+
102
+ jQuery('#saveS').prop('disabled', false).val(btn_value);
103
  });
104
 
105
  },
240
  });
241
  jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
242
  jQuery('.csv_upload_status li').remove();
243
+ jQuery('.bulk_upload_status_tr').hide();
244
  jQuery('.progress_title').hide();
245
  var form = jQuery('#wc_ast_upload_csv_form');
246
  var error;
247
  var trcking_csv_file = form.find("#trcking_csv_file");
248
  var replace_tracking_info = jQuery("#replace_tracking_info").prop("checked");
249
+ var date_format_for_csv_import = jQuery('input[name="date_format_for_csv_import"]:checked').val();
250
+
251
  if(replace_tracking_info == true){
252
  replace_tracking_info = 1;
253
  } else{
296
  tracking.tracking_number = cells[2];
297
  tracking.date_shipped = cells[3];
298
  tracking.status_shipped = cells[4];
299
+ if(cells[5]){
300
+ tracking.sku = cells[5];
301
+ }
302
+ if(cells[6]){
303
+ tracking.qty = cells[6];
304
+ }
305
  if(tracking.order_id){
306
  trackings.push(tracking);
307
  }
308
  }
309
+ }
310
+
311
  var csv_length = trackings.length;
312
 
313
  jQuery("#wc_ast_upload_csv_form")[0].reset();
316
  querySelector.MaterialProgress.setProgress(0);
317
  jQuery("#p1").show();
318
  jQuery(trackings).each(function(index, element) {
319
+ var sku = '';
320
+ var qty = '';
321
  var order_id = trackings[index]['order_id'];
322
  var tracking_provider = trackings[index]['tracking_provider'];
323
  var tracking_number = trackings[index]['tracking_number'];
324
  var date_shipped = trackings[index]['date_shipped'];
325
+ var status_shipped = trackings[index]['status_shipped'];
326
+ if(trackings[index]['sku']){
327
+ var sku = trackings[index]['sku'];
328
+ }
329
+ if(trackings[index]['qty']){
330
+ var qty = trackings[index]['qty'];
331
+ }
332
 
333
  var data = {
334
  action: 'wc_ast_upload_csv_form_update',
335
  order_id: order_id,
336
+ date_format_for_csv_import: date_format_for_csv_import,
337
  tracking_provider: tracking_provider,
338
  tracking_number: tracking_number,
339
  date_shipped: date_shipped,
340
  status_shipped: status_shipped,
341
+ sku: sku,
342
+ qty: qty,
343
  replace_tracking_info: replace_tracking_info,
344
  trackings: trackings,
345
  };
355
 
356
  jQuery('.csv_upload_status').append(data);
357
  var progress = (index+1)*100/csv_length;
358
+ jQuery('.bulk_upload_status_tr').show();
359
  jQuery('.progress_title').show();
360
  querySelector.MaterialProgress.setProgress(progress);
361
  if(progress == 100){
420
  });
421
  });
422
 
423
+ jQuery(document).on("change", "#wcast_enable_late_shipments_admin_email", function(){
424
+ if(jQuery(this).prop("checked") == true){
425
+ var wcast_enable_late_shipments_email = 1;
426
+ }
427
+ var id = jQuery(this).attr('id');
428
+ var ajax_data = {
429
+ action: 'update_enable_late_shipments_email',
430
+ id: id,
431
+ wcast_enable_late_shipments_email: wcast_enable_late_shipments_email,
432
+ };
433
+ jQuery.ajax({
434
+ url: ajaxurl,
435
+ data: ajax_data,
436
+ type: 'POST',
437
+ success: function(response) {
438
+ var snackbarContainer = document.querySelector('#demo-toast-example');
439
+ var data = {message: shipment_tracking_table_rows.i18n.data_saved};
440
+ snackbarContainer.MaterialSnackbar.showSnackbar(data);
441
+ },
442
+ error: function(response) {
443
+ }
444
+ });
445
+ });
446
+
447
 
448
  jQuery(document).on("click", ".status_filter a", function(){
449
  jQuery("#content1 ").block({
559
  data: ajax_data,
560
  type: 'POST',
561
  success: function(response) {
562
+ jQuery(".provider_list").replaceWith(response);
563
+ componentHandler.upgradeAllRegistered();
564
+ var provider_found = false;
565
  var searchvalue = jQuery("#search_provider").val().toLowerCase().replace(/\s+/g, '');
566
  jQuery('.provider').each(function() {
567
  var provider = jQuery(this).find('.provider_name').text().toLowerCase().replace(/\s+/g, '');
571
  var hascountry= country.indexOf(searchvalue)!==-1;
572
 
573
  if (hasprovider || hascountry) {
574
+ jQuery(this).show();
575
+ provider_found = true;
576
+ } else {
577
  jQuery(this).hide();
578
  }
579
  });
580
+ if(provider_found == false){
581
+ jQuery(".provider_list").append('<h3 class="not_found_label">No Shipping Providers Found.</h3>');
582
+ } else{
583
+ jQuery(".not_found_label").remove();
584
+ }
585
  },
586
  error: function(response) {
587
  }
596
  jQuery('.edit_provider_popup').hide();
597
  jQuery('.sync_provider_popup').hide();
598
  jQuery('.how_to_video_popup').hide();
599
+ jQuery('.ts_video_popup').hide();
600
+ jQuery('.tracking_item_video_popup').hide();
601
  });
602
  jQuery(document).on("click", ".close_synch_popup", function(){
603
  jQuery('.sync_provider_popup').hide();
688
  var r = confirm( shipment_tracking_table_rows.i18n.delete_provider );
689
  if (r === true) {
690
  } else {
691
+ jQuery("#content1").unblock();
692
  return;
693
  }
694
  var id = jQuery(this).data('pid');
738
  jQuery('.edit_provider_popup #thumb_url').val(image);
739
  jQuery('.edit_provider_popup #thumb_id').val(custom_thumb_id);
740
  jQuery('.edit_provider_popup #provider_id').val(id);
741
+ jQuery(".edit_provider_popup #shipping_country").val(shipping_country);
742
  jQuery('.edit_provider_popup').show();
743
+ //console.log(provider_url);
744
  },
745
  error: function(response) {
746
  console.log(response);
820
  var r = confirm( 'Do you really want to change all provider status to active?' );
821
  if (r === true) {
822
  } else {
823
+ jQuery("#content1").unblock();
824
  return;
825
  }
826
 
856
  var r = confirm( 'Do you really want to change all provider status to inactive?' );
857
  if (r === true) {
858
  } else {
859
+ jQuery("#content1").unblock();
860
  return;
861
  }
862
 
1083
  return false;
1084
  });
1085
 
1086
+ jQuery(document).on("click", ".bulk_shipment_status_button_for_do_connection", function(){
1087
+ jQuery("#content3").block({
1088
+ message: null,
1089
+ overlayCSS: {
1090
+ background: "#fff",
1091
+ opacity: .6
1092
+ }
1093
+ });
1094
+ var ajax_data = {
1095
+ action: 'bulk_shipment_status_for_do_connection_from_settings',
1096
+ };
1097
+ jQuery.ajax({
1098
+ url: ajaxurl,
1099
+ data: ajax_data,
1100
+ type: 'POST',
1101
+ success: function(response) {
1102
+ jQuery("#content3").unblock();
1103
+ jQuery( '.bulk_shipment_status_button_for_do_connection' ).after( "<div class='bulk_shipment_status_success'>Tracking info sent to Trackship for all Orders.</div>" );
1104
+ jQuery( '.bulk_shipment_status_button_for_do_connection' ).attr("disabled", true);
1105
+ },
1106
+ error: function(response) {
1107
+ console.log(response);
1108
+ }
1109
+ });
1110
+ return false;
1111
+ });
1112
+
1113
  jQuery(document).on("click", ".tab_input", function(){
1114
  var tab = jQuery(this).data('tab');
1115
  var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=woocommerce-advanced-shipment-tracking&tab="+tab;
1116
  window.history.pushState({path:url},'',url);
1117
  });
1118
+ jQuery(document).on("click", ".inner_tab_input", function(){
1119
+ var tab = jQuery(this).data('tab');
1120
+ var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=woocommerce-advanced-shipment-tracking&tab="+tab;
1121
+ window.history.pushState({path:url},'',url);
1122
+ });
1123
 
1124
  jQuery(document).on("click", ".open_video_popup", function(){
1125
  jQuery('.how_to_video_popup').show();
1126
  });
1127
 
1128
+ jQuery(document).on("click", ".ts_addons_header", function(){
1129
+ jQuery('.ts_video_popup').show();
1130
+ });
1131
+ jQuery(document).on("click", ".tracking_item_addons_header", function(){
1132
+ jQuery('.tracking_item_video_popup').show();
1133
+ });
1134
+
1135
  jQuery(document).on("click", ".how_to_video_popup .popupclose", function(){
1136
  jQuery('#how_to_video').each(function(index) {
1137
  jQuery(this).attr('src', jQuery(this).attr('src'));
1138
  return false;
1139
  });
1140
+ });
1141
+ jQuery(document).on("click", ".ts_video_popup .popupclose", function(){
1142
+ jQuery('#ts_video').each(function(index) {
1143
+ jQuery(this).attr('src', jQuery(this).attr('src'));
1144
+ return false;
1145
+ });
1146
+ });
1147
+ jQuery(document).on("click", ".tracking_item_video_popup .popupclose", function(){
1148
+ jQuery('#trackin_per_item_video').each(function(index) {
1149
+ jQuery(this).attr('src', jQuery(this).attr('src'));
1150
+ return false;
1151
+ });
1152
+ });
1153
+ jQuery(document).on("change", "#wc_ast_use_tracking_page", function(){
1154
+ if(jQuery(this).prop("checked") == true){
1155
+ jQuery('.tracking_page_table').show();
1156
+ jQuery('.tracking_save_table').hide();
1157
+ jQuery('#tracking_preview_iframe').height( '' );
1158
+ jQuery(this).closest('table').removeClass('disable_tracking_page');
1159
+ setTimeout(
1160
+ function()
1161
+ {
1162
+ var iframe = document.getElementById("tracking_preview_iframe");
1163
+ iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
1164
+ }, 1000);
1165
+ } else{
1166
+ jQuery('.tracking_page_table').hide();
1167
+ jQuery('.tracking_save_table').show();
1168
+ jQuery(this).closest('table').addClass('disable_tracking_page');
1169
+ }
1170
+ });
1171
+
1172
+ jQuery(document).on("change", ".select_t_layout_section .radio-img", function(){
1173
+ jQuery('#tracking_preview_iframe').height( '' );
1174
+ var val = jQuery(this).val();
1175
+ if(val == 't_layout_1'){
1176
+ jQuery('#tracking_preview_iframe').contents().find('.tracking-layout-1').show();
1177
+ jQuery('#tracking_preview_iframe').contents().find('.tracking-layout-2').hide();
1178
+ } else{
1179
+ jQuery('#tracking_preview_iframe').contents().find('.tracking-layout-1').hide();
1180
+ jQuery('#tracking_preview_iframe').contents().find('.tracking-layout-2').show();
1181
+ }
1182
+ var iframe = document.getElementById("tracking_preview_iframe");
1183
+ iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
1184
+ });
1185
+
1186
+ jQuery('#tracking_preview_iframe').load(function(){
1187
+ var iframe = jQuery('#tracking_preview_iframe').contents();
1188
+ iframe.find(".view_old_details").click(function(){
1189
+ jQuery('#tracking_preview_iframe').contents().find('.hide_old_details').show();
1190
+ jQuery('#tracking_preview_iframe').contents().find('.old-details').fadeIn();
1191
+ jQuery('#tracking_preview_iframe').height( '' );
1192
+ var iframe1 = document.getElementById("tracking_preview_iframe");
1193
+ iframe1.style.height = iframe1.contentWindow.document.body.scrollHeight + 'px';
1194
+ });
1195
+ });
1196
+
1197
+ jQuery('#tracking_preview_iframe').load(function(){
1198
+ var iframe = jQuery('#tracking_preview_iframe').contents();
1199
+ iframe.find(".hide_old_details").click(function(){
1200
+ jQuery('#tracking_preview_iframe').contents().find('.view_old_details').show();
1201
+ jQuery('#tracking_preview_iframe').contents().find('.old-details').fadeOut();
1202
+ jQuery('#tracking_preview_iframe').height( '' );
1203
+ var iframe1 = document.getElementById("tracking_preview_iframe");
1204
+ iframe1.style.height = iframe1.contentWindow.document.body.scrollHeight + 'px';
1205
+ });
1206
+ });
1207
+
1208
+ jQuery(document).on("click", "#wc_ast_hide_tracking_provider_image", function(){
1209
+ if(jQuery(this).prop("checked") == true){
1210
+ jQuery('#tracking_preview_iframe').contents().find('.provider-image-div').hide();
1211
+ } else{
1212
+ jQuery('#tracking_preview_iframe').contents().find('.provider-image-div').show();
1213
+ }
1214
+ });
1215
+ jQuery(document).on("click", "#wc_ast_hide_tracking_events", function(){
1216
+ jQuery('#tracking_preview_iframe').height( '' );
1217
+ if(jQuery(this).prop("checked") == true){
1218
+ jQuery('#tracking_preview_iframe').contents().find('.shipment_progress_div').hide();
1219
+ jQuery('#tracking_preview_iframe').contents().find('.tracking-details').hide();
1220
+ } else{
1221
+ jQuery('#tracking_preview_iframe').contents().find('.shipment_progress_div').show();
1222
+ jQuery('#tracking_preview_iframe').contents().find('.tracking-details').show();
1223
+ }
1224
+ var iframe = document.getElementById("tracking_preview_iframe");
1225
+ iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
1226
+ });
1227
+ jQuery(document).on("click", "#wc_ast_remove_trackship_branding", function(){
1228
+ jQuery('#tracking_preview_iframe').height( '' );
1229
+ if(jQuery(this).prop("checked") == true){
1230
+ jQuery('#tracking_preview_iframe').contents().find('.trackship_branding').hide();
1231
+ } else{
1232
+ jQuery('#tracking_preview_iframe').contents().find('.trackship_branding').show();
1233
+ }
1234
+ var iframe = document.getElementById("tracking_preview_iframe");
1235
+ iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
1236
+ });
1237
+ jQuery(document).on("click", ".tracking_page_label", function(){
1238
+ setTimeout(
1239
+ function()
1240
+ {
1241
+ jQuery('#tracking_preview_iframe').height( '' );
1242
+ var iframe = document.getElementById("tracking_preview_iframe");
1243
+ iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
1244
+ }, 1000);
1245
+ });
1246
+ jQuery( document ).ready(function() {
1247
+ if(jQuery('#wc_ast_use_tracking_page').prop("checked") == true){
1248
+ jQuery('.tracking_page_table').show();
1249
+ jQuery('.tracking_save_table').hide();
1250
+ } else{
1251
+ jQuery('.tracking_page_table').hide();
1252
+ jQuery('.tracking_save_table').show();
1253
+ }
1254
+ if(jQuery('#wc_ast_use_tracking_page').prop("checked") == true){
1255
+ jQuery('#wc_ast_use_tracking_page').closest('table').removeClass('disable_tracking_page');
1256
+ } else{
1257
+ jQuery('#wc_ast_use_tracking_page').closest('table').addClass('disable_tracking_page');
1258
+ }
1259
+ });
1260
+ jQuery(function(){
1261
+ jQuery('#tracking_preview_iframe').load(function(){
1262
+ var tab = getUrlParameter('tab');
1263
+ if(tab == 'tracking-page'){
1264
+ jQuery(this).show();
1265
+ var iframe = document.getElementById("tracking_preview_iframe");
1266
+ iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px';
1267
+ } else{
1268
+ jQuery(this).show();
1269
+ }
1270
+ });
1271
+ });
1272
+
1273
+ var getUrlParameter = function getUrlParameter(sParam) {
1274
+ var sPageURL = window.location.search.substring(1),
1275
+ sURLVariables = sPageURL.split('&'),
1276
+ sParameterName,
1277
+ i;
1278
+
1279
+ for (i = 0; i < sURLVariables.length; i++) {
1280
+ sParameterName = sURLVariables[i].split('=');
1281
+
1282
+ if (sParameterName[0] === sParam) {
1283
+ return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
1284
+ }
1285
+ }
1286
+ };
1287
+
assets/shipment-provider-img/7-eleven.png CHANGED
Binary file
assets/shipment-provider-img/bpost.png ADDED
Binary file
assets/shipment-provider-img/brt.png ADDED
Binary file
assets/shipment-provider-img/ceska-posta.png CHANGED
Binary file
assets/shipment-provider-img/chit-chats.png ADDED
Binary file
assets/shipment-provider-img/cj-logistics.png ADDED
Binary file
assets/shipment-provider-img/cjpacket.png ADDED
Binary file
assets/shipment-provider-img/cne-express.png ADDED
Binary file
assets/shipment-provider-img/correos-express.png ADDED
Binary file
assets/shipment-provider-img/courierpost.png CHANGED
Binary file
assets/shipment-provider-img/dicom.png ADDED
Binary file
assets/shipment-provider-img/dpd-fr.png ADDED
Binary file
assets/shipment-provider-img/dpd-pt.png ADDED
Binary file
assets/shipment-provider-img/ekart.png ADDED
Binary file
assets/shipment-provider-img/gig-logistics.png ADDED
Binary file
assets/shipment-provider-img/gls-denmark.png ADDED
Binary file
assets/shipment-provider-img/hfd.png ADDED
Binary file
assets/shipment-provider-img/jcex.png ADDED
Binary file
assets/shipment-provider-img/jet-express.png ADDED
Binary file
assets/shipment-provider-img/jne.png ADDED
Binary file
assets/shipment-provider-img/jt.png ADDED
Binary file
assets/shipment-provider-img/lion-parcel.png ADDED
Binary file
assets/shipment-provider-img/lithuania-post.png ADDED
Binary file
assets/shipment-provider-img/luxembourg-post.png ADDED
Binary file
assets/shipment-provider-img/magyar-posta.png ADDED
Binary file
assets/shipment-provider-img/mrw.png ADDED
Binary file
assets/shipment-provider-img/new-zealand-courierpost.png ADDED
Binary file
assets/shipment-provider-img/ninja-express.png ADDED
Binary file
assets/shipment-provider-img/ontime.png ADDED
Binary file
assets/shipment-provider-img/pos-indonesia.png ADDED
Binary file
assets/shipment-provider-img/poste-italiane.png ADDED
Binary file
assets/shipment-provider-img/redpack.png ADDED
Binary file
assets/shipment-provider-img/rides.png ADDED
Binary file
assets/shipment-provider-img/russian-post.png ADDED
Binary file
assets/shipment-provider-img/saudi-post.png ADDED
Binary file
assets/shipment-provider-img/shadowfax.png ADDED
Binary file
assets/shipment-provider-img/shree-maruti-courier.png ADDED
Binary file
assets/shipment-provider-img/shree-tirupati-courier.png ADDED
Binary file
assets/shipment-provider-img/sicepat.png ADDED
Binary file
assets/shipment-provider-img/skynet-worldwide-express.png ADDED
Binary file
assets/shipment-provider-img/skynet.png ADDED
Binary file
assets/shipment-provider-img/spee-dee.png ADDED
Binary file
assets/shipment-provider-img/thailand-post.png ADDED
Binary file
assets/shipment-provider-img/tiki.png ADDED
Binary file
assets/shipment-provider-img/tipsa.png ADDED
Binary file
assets/shipment-provider-img/toll-ipec.png ADDED
Binary file
assets/shipment-provider-img/yamato.png ADDED
Binary file
assets/shipment-provider-img/yodel.png ADDED
Binary file
assets/tracking.csv CHANGED
@@ -1,4 +1,4 @@
1
  order_id,tracking_provider,tracking_number,date_shipped,status_shipped
2
- 1,UPS,number123,12-03-2019,1
3
- 2,USPS,dfsdf23123,12-03-2019,1
4
- 3,DHL,dfsdf45swd,12-03-2019,0
1
  order_id,tracking_provider,tracking_number,date_shipped,status_shipped
2
+ 1,UPS,number123,12/03/2020,1
3
+ 2,USPS,dfsdf23123,12/03/2020,1
4
+ 3,DHL,dfsdf45swd,12/03/2020,0
includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php CHANGED
@@ -82,7 +82,7 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
82
  'schema' => array( $this, 'get_public_item_schema' ),
83
  ) );
84
 
85
- register_rest_route( $this->namespace, '/update_user_key', array(
86
  array(
87
  'methods' => WP_REST_Server::CREATABLE,
88
  'callback' => array( $this, 'update_user_key' ),
@@ -94,7 +94,7 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
94
  ) ),
95
  ),
96
  'schema' => array( $this, 'get_public_item_schema' ),
97
- ) );
98
 
99
  //disconnect_from_trackship
100
  register_rest_route( $this->namespace, '/disconnect_from_trackship', array(
@@ -132,6 +132,7 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
132
  ) );
133
 
134
  //check_wcast_installed_from_third_party_tool
 
135
  register_rest_route( $this->namespace, '/check_wcast_installed_from_third_party_tool', array(
136
  array(
137
  'methods' => 'GET',
@@ -153,12 +154,12 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
153
  return rest_ensure_response( $data );
154
  }
155
 
156
- /*
157
  * check_wcast_installed
158
  */
159
  public function check_wcast_installed( $request ){
160
  $wc_ast_api_key = get_option('wc_ast_api_key');
161
- $wc_ast_api_enabled = get_option('wc_ast_api_enabled');
162
  if(empty($wc_ast_api_key)){
163
  update_option('wc_ast_api_key',$request['user_key']);
164
  }
@@ -166,6 +167,13 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
166
  update_option('wc_ast_api_enabled',1);
167
  }
168
 
 
 
 
 
 
 
 
169
  $data = array(
170
  'status' => 'installed'
171
  );
@@ -188,6 +196,7 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
188
  $tracking_event_status = $request['tracking_event_status'];
189
  $tracking_event_date = $request['tracking_event_date'];
190
  $tracking_est_delivery_date = $request['tracking_est_delivery_date'];
 
191
 
192
  $st = WC_Advanced_Shipment_Tracking_Actions::get_instance();
193
  $tracking_items = $st->get_tracking_items( $order_id, true );
@@ -199,17 +208,18 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
199
 
200
  if( is_string($shipment_status) )$shipment_status = array();
201
 
202
- $st->trigger_tracking_email( $order_id, $shipment_status[$key]['status'], $tracking_event_status );
203
- //$logger->error( "order_id \n\n".$order_id."\n\n", $context );
204
- //$logger->error( "old_status \n\n".$shipment_status[$key]['status']."\n\n", $context );
205
- //$logger->error( "new_status \n\n".$tracking_event_status."\n\n", $context );
206
  $shipment_status[$key]['status'] = $tracking_event_status;
 
 
207
  $shipment_status[$key]['status_date'] = $tracking_event_date;
208
  if($tracking_est_delivery_date){
209
  $shipment_status[$key]['est_delivery_date'] = date("Y-m-d", strtotime($tracking_est_delivery_date));
210
  }
211
 
212
  update_post_meta( $order_id, "shipment_status", $shipment_status);
 
 
213
  }
214
  $st->check_tracking_delivered( $order_id );
215
  $data = array(
@@ -301,26 +311,7 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
301
  public function update_user_key($request){
302
  $add_key = update_option( 'wc_ast_api_key', $request['user_key'] );
303
  $wc_ast_api_enabled = update_option( 'wc_ast_api_enabled', 1 );
304
- $trackers_balance = update_option( 'trackers_balance', $request['trackers_balance'] );
305
-
306
- $new_page_title = 'Shipment Tracking';
307
- $new_page_slug = 'ts-shipment-tracking';
308
- $new_page_content = '[wcast-track-order]';
309
- //don't change the code below, unless you know what you're doing
310
- $page_check = get_page_by_title($new_page_title);
311
- //echo $page_check;exit;
312
- $new_page = array(
313
- 'post_type' => 'page',
314
- 'post_title' => $new_page_title,
315
- 'post_name' => $new_page_slug,
316
- 'post_content' => $new_page_content,
317
- 'post_status' => 'publish',
318
- 'post_author' => 1,
319
- );
320
- if(!isset($page_check->ID)){
321
- $new_page_id = wp_insert_post($new_page);
322
- update_option( 'wc_ast_trackship_page_id', $new_page_id );
323
- }
324
  }
325
 
326
  /*
@@ -379,7 +370,7 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
379
  */
380
  public function create_item( $request ) {
381
  if ( ! empty( $request['tracking_id'] ) ) {
382
- return new WP_Error( 'woocommerce_rest_shop_order_shipment_tracking_exists', __( 'Cannot create existing order shipment tracking.', 'woocommerce-shipment-tracking' ), array( 'status' => 400 ) );
383
  }
384
 
385
  $order_id = (int) $request['order_id'];
@@ -388,11 +379,23 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
388
  $order_id = $wast->get_formated_order_id($order_id);
389
 
390
  if ( ! $this->is_valid_order_id( $order_id ) ) {
391
- return new WP_Error( 'woocommerce_rest_order_invalid_id', __( 'Invalid order ID.', 'woocommerce-shipment-tracking' ), array( 'status' => 404 ) );
392
  }
393
-
 
 
 
 
 
 
 
 
 
 
 
 
394
  $args = array(
395
- 'tracking_provider' => wc_clean( sanitize_title( $request['tracking_provider'] ) ),
396
  'custom_tracking_provider' => wc_clean( $request['custom_tracking_provider'] ),
397
  'custom_tracking_link' => wc_clean( $request['custom_tracking_link'] ),
398
  'tracking_number' => wc_clean( $request['tracking_number'] ),
@@ -403,6 +406,24 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
403
  $args = apply_filters( 'ast_api_create_item_arg', $args );
404
  //print_r($args);exit;
405
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
406
  $st = WC_Advanced_Shipment_Tracking_Actions::get_instance();
407
  $tracking_item = $st->add_tracking_item( $order_id, $args );
408
  $tracking_item['order_id'] = $order_id;
@@ -491,12 +512,16 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
491
  * @return WP_REST_Response $response Response data
492
  */
493
  public function prepare_item_for_response( $tracking_item, $request ) {
 
 
 
 
494
  $data = array(
495
  'tracking_id' => $tracking_item['tracking_id'],
496
  'tracking_provider' => $tracking_item['formatted_tracking_provider'],
497
  'tracking_link' => $tracking_item['formatted_tracking_link'],
498
  'tracking_number' => $tracking_item['tracking_number'],
499
- 'date_shipped' => date( 'Y-m-d', $tracking_item['date_shipped'] ),
500
  );
501
 
502
  $order_id = $tracking_item['order_id'];
82
  'schema' => array( $this, 'get_public_item_schema' ),
83
  ) );
84
 
85
+ /*register_rest_route( $this->namespace, '/update_user_key', array(
86
  array(
87
  'methods' => WP_REST_Server::CREATABLE,
88
  'callback' => array( $this, 'update_user_key' ),
94
  ) ),
95
  ),
96
  'schema' => array( $this, 'get_public_item_schema' ),
97
+ ) );*/
98
 
99
  //disconnect_from_trackship
100
  register_rest_route( $this->namespace, '/disconnect_from_trackship', array(
132
  ) );
133
 
134
  //check_wcast_installed_from_third_party_tool
135
+ // this is use for sendle
136
  register_rest_route( $this->namespace, '/check_wcast_installed_from_third_party_tool', array(
137
  array(
138
  'methods' => 'GET',
154
  return rest_ensure_response( $data );
155
  }
156
 
157
+ /*
158
  * check_wcast_installed
159
  */
160
  public function check_wcast_installed( $request ){
161
  $wc_ast_api_key = get_option('wc_ast_api_key');
162
+ $wc_ast_api_enabled = get_option('wc_ast_api_enabled');
163
  if(empty($wc_ast_api_key)){
164
  update_option('wc_ast_api_key',$request['user_key']);
165
  }
167
  update_option('wc_ast_api_enabled',1);
168
  }
169
 
170
+ if($request['trackers_balance']){
171
+ update_option( 'trackers_balance', $request['trackers_balance'] );
172
+ }
173
+
174
+ $ast_install = new WC_Advanced_Shipment_Tracking_Install;
175
+ $ast_install->create_tracking_page();
176
+
177
  $data = array(
178
  'status' => 'installed'
179
  );
196
  $tracking_event_status = $request['tracking_event_status'];
197
  $tracking_event_date = $request['tracking_event_date'];
198
  $tracking_est_delivery_date = $request['tracking_est_delivery_date'];
199
+ $tracking_events = $request['tracking_events'];
200
 
201
  $st = WC_Advanced_Shipment_Tracking_Actions::get_instance();
202
  $tracking_items = $st->get_tracking_items( $order_id, true );
208
 
209
  if( is_string($shipment_status) )$shipment_status = array();
210
 
211
+ $previous_status = $shipment_status[$key]['status'];
 
 
 
212
  $shipment_status[$key]['status'] = $tracking_event_status;
213
+ $shipment_status[$key]['tracking_events'] = json_decode($tracking_events);
214
+
215
  $shipment_status[$key]['status_date'] = $tracking_event_date;
216
  if($tracking_est_delivery_date){
217
  $shipment_status[$key]['est_delivery_date'] = date("Y-m-d", strtotime($tracking_est_delivery_date));
218
  }
219
 
220
  update_post_meta( $order_id, "shipment_status", $shipment_status);
221
+
222
+ $st->trigger_tracking_email( $order_id, $previous_status, $tracking_event_status, $tracking_item, $shipment_status[$key] );
223
  }
224
  $st->check_tracking_delivered( $order_id );
225
  $data = array(
311
  public function update_user_key($request){
312
  $add_key = update_option( 'wc_ast_api_key', $request['user_key'] );
313
  $wc_ast_api_enabled = update_option( 'wc_ast_api_enabled', 1 );
314
+ $trackers_balance = update_option( 'trackers_balance', $request['trackers_balance'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  }
316
 
317
  /*
370
  */
371
  public function create_item( $request ) {
372
  if ( ! empty( $request['tracking_id'] ) ) {
373
+ return new WP_Error( 'woocommerce_rest_shop_order_shipment_tracking_exists', __( 'Cannot create existing order shipment tracking.', 'woo-advanced-shipment-tracking' ), array( 'status' => 400 ) );
374
  }
375
 
376
  $order_id = (int) $request['order_id'];
379
  $order_id = $wast->get_formated_order_id($order_id);
380
 
381
  if ( ! $this->is_valid_order_id( $order_id ) ) {
382
+ return new WP_Error( 'woocommerce_rest_order_invalid_id', __( 'Invalid order ID.', 'woo-advanced-shipment-tracking' ), array( 'status' => 404 ) );
383
  }
384
+
385
+ if(preg_match('/[^a-z0-9- \b]+/i', $request['tracking_number'])){
386
+ return new WP_Error( 'woocommerce_rest_order_invalid_id', __( 'Special character not allowd in tracking number', 'woo-advanced-shipment-tracking' ), array( 'status' => 404 ) );
387
+ }
388
+
389
+ global $wpdb;
390
+ $ast_admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
391
+ $tracking_provider = $wpdb->get_var( "SELECT ts_slug FROM $ast_admin->table WHERE provider_name = '".$request['tracking_provider']."'" );
392
+
393
+ if(!$tracking_provider){
394
+ $tracking_provider = sanitize_title( $request['tracking_provider'] );
395
+ }
396
+
397
  $args = array(
398
+ 'tracking_provider' => wc_clean( $tracking_provider ),
399
  'custom_tracking_provider' => wc_clean( $request['custom_tracking_provider'] ),
400
  'custom_tracking_link' => wc_clean( $request['custom_tracking_link'] ),
401
  'tracking_number' => wc_clean( $request['tracking_number'] ),
406
  $args = apply_filters( 'ast_api_create_item_arg', $args );
407
  //print_r($args);exit;
408
 
409
+ if(isset($request['sku']) && isset($request['qty'])){
410
+
411
+ $tracking_items = $wast->get_tracking_items( $order_id );
412
+
413
+ $products_list = array();
414
+ $product_id = wc_get_product_id_by_sku( $request['sku'] );
415
+ $product_data = (object) array (
416
+ 'product' => $product_id,
417
+ 'qty' => $request['qty'],
418
+ );
419
+ array_push($products_list,$product_data);
420
+
421
+ $product_args = array(
422
+ 'products_list' => $products_list,
423
+ );
424
+ $args = array_merge($args,$product_args);
425
+ }
426
+
427
  $st = WC_Advanced_Shipment_Tracking_Actions::get_instance();
428
  $tracking_item = $st->add_tracking_item( $order_id, $args );
429
  $tracking_item['order_id'] = $order_id;
512
  * @return WP_REST_Response $response Response data
513
  */
514
  public function prepare_item_for_response( $tracking_item, $request ) {
515
+ $date_shipped = date("Y-m-d");
516
+ if(isset($tracking_item['date_shipped'])){
517
+ $date_shipped = date( 'Y-m-d', $tracking_item['date_shipped'] );
518
+ }
519
  $data = array(
520
  'tracking_id' => $tracking_item['tracking_id'],
521
  'tracking_provider' => $tracking_item['formatted_tracking_provider'],
522
  'tracking_link' => $tracking_item['formatted_tracking_link'],
523
  'tracking_number' => $tracking_item['tracking_number'],
524
+ 'date_shipped' => $date_shipped,
525
  );
526
 
527
  $order_id = $tracking_item['order_id'];
includes/class-wc-advanced-shipment-tracking-admin.php CHANGED
@@ -5,11 +5,22 @@ if ( ! defined( 'ABSPATH' ) ) {
5
 
6
  class WC_Advanced_Shipment_Tracking_Admin {
7
 
 
 
 
 
 
 
 
8
  /**
9
  * Initialize the main plugin function
10
  */
11
  public function __construct() {
12
-
 
 
 
 
13
  global $wpdb;
14
  if( is_multisite() ){
15
  if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
@@ -55,59 +66,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
55
 
56
  //database check
57
  add_action( 'init', array( $this, 'database_table_check') );
58
-
59
- //rename order status + rename bulk action + rename filter
60
- add_filter( 'wc_order_statuses', array( $this, 'wc_renaming_order_status') );
61
- add_filter( 'woocommerce_register_shop_order_post_statuses', array( $this, 'filter_woocommerce_register_shop_order_post_statuses'), 10, 1 );
62
- add_filter( 'bulk_actions-edit-shop_order', array( $this, 'modify_bulk_actions'), 50, 1 );
63
-
64
- //new order status
65
- $newstatus = get_option( "wc_ast_status_delivered", 0);
66
- if( $newstatus == true ){
67
- //register order status
68
- add_action( 'init', array( $this, 'register_order_status') );
69
- //add status after completed
70
- add_filter( 'wc_order_statuses', array( $this, 'add_delivered_to_order_statuses') );
71
- //Custom Statuses in admin reports
72
- add_filter( 'woocommerce_reports_order_statuses', array( $this, 'include_custom_order_status_to_reports'), 20, 1 );
73
- // for automate woo to check order is paid
74
- add_filter( 'woocommerce_order_is_paid_statuses', array( $this, 'delivered_woocommerce_order_is_paid_statuses' ) );
75
- //add bulk action
76
- add_filter( 'bulk_actions-edit-shop_order', array( $this, 'add_bulk_actions'), 50, 1 );
77
- }
78
-
79
- //new order status
80
- $partial_shipped_status = get_option( "wc_ast_status_partial_shipped", 0);
81
- if( $partial_shipped_status == true ){
82
- //register order status
83
- add_action( 'init', array( $this, 'register_partial_shipped_order_status') );
84
- //add status after completed
85
- add_filter( 'wc_order_statuses', array( $this, 'add_partial_shipped_to_order_statuses') );
86
- //Custom Statuses in admin reports
87
- add_filter( 'woocommerce_reports_order_statuses', array( $this, 'include_partial_shipped_order_status_to_reports'), 20, 1 );
88
- // for automate woo to check order is paid
89
- add_filter( 'woocommerce_order_is_paid_statuses', array( $this, 'partial_shipped_woocommerce_order_is_paid_statuses' ) );
90
- //add bulk action
91
- add_filter( 'bulk_actions-edit-shop_order', array( $this, 'add_bulk_actions_partial_shipped'), 50, 1 );
92
- }
93
-
94
  //cron_schedules
95
- add_filter( 'cron_schedules', array( $this, 'add_cron_interval') );
96
- //cron hook
97
- //add_action( WC_Advanced_Shipment_Tracking_Cron::CRON_HOOK, array( $this, 'wc_ast_cron_callback' ) );
98
-
99
- //filter in shipped orders
100
- add_filter( 'is_order_shipped', array( $this, "check_tracking_exist" ),10,2);
101
- add_filter( 'is_order_shipped', array( $this, "check_order_status" ),5,2);
102
-
103
- $wc_ast_status_delivered = get_option('wc_ast_status_delivered');
104
- if($wc_ast_status_delivered == 1){
105
- add_action( 'woocommerce_order_actions', array( $this, 'add_order_meta_box_actions' ) );
106
- add_action( 'woocommerce_order_action_resend_delivered_order_notification', array( $this, 'process_order_meta_box_actions' ) );
107
- }
108
-
109
- //batch process cron hook
110
- //add_action( 'wc_ast_batch_process', array( $this, 'wc_ast_batch_process_callback' ) );
111
 
112
  $api_enabled = get_option( "wc_ast_api_enabled", 0);
113
  if( $api_enabled == true ){
@@ -128,6 +89,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
128
  // Bulk shipment status sync for empty balance ajax call from settings
129
  add_action( 'wp_ajax_bulk_shipment_status_for_empty_balance_from_settings', array( $this, 'bulk_shipment_status_for_empty_balance_from_settings_fun' ) );
130
 
 
 
 
131
  // The results notice from bulk action on orders
132
  add_action( 'admin_notices', array( $this, 'shipment_status_bulk_action_admin_notice' ) );
133
 
@@ -137,9 +101,10 @@ class WC_Advanced_Shipment_Tracking_Admin {
137
 
138
  // add bulk order filter for exported / non-exported orders
139
  add_action( 'restrict_manage_posts', array( $this, 'filter_orders_by_shipment_status') , 20 );
140
- add_filter( 'request', array( $this, 'filter_orders_by_shipment_status_query' ) );
141
 
142
- add_action( 'wp_dashboard_setup', array( $this, 'ast_add_dashboard_widgets') );
 
143
  }
144
 
145
  // trigger when order status changed to shipped or completed
@@ -154,9 +119,11 @@ class WC_Advanced_Shipment_Tracking_Admin {
154
 
155
  add_action( 'wp_ajax_update_delivered_order_email_status', array( $this, 'update_delivered_order_email_status_fun') );
156
 
157
- add_action( 'wp_ajax_update_shipment_status_email_status', array( $this, 'update_shipment_status_email_status_fun') );
 
 
158
 
159
- add_action( 'admin_footer', array( $this, 'footer_function') );
160
 
161
  // filter for shipment status
162
  add_filter("trackship_status_filter", array($this, "trackship_status_filter_func"), 10 , 1);
@@ -188,16 +155,11 @@ class WC_Advanced_Shipment_Tracking_Admin {
188
 
189
  add_action( 'wp_ajax_update_default_provider', array( $this, 'update_default_provider_fun') );
190
 
191
- add_action( 'wp_ajax_update_shipment_status', array( $this, 'update_shipment_status_fun') );
192
-
193
- add_action( 'wp_ajax_sync_providers', array( $this, 'sync_providers_fun') );
194
-
195
- // Hook for add admin body class in settings page
196
- add_filter( 'admin_body_class', array( $this, 'ahipment_tracking_admin_body_class' ) );
197
 
198
- add_action( 'woocommerce_update_options_email_customer_delivered_order', array( $this, 'save_delivered_email' ) ,100, 1);
199
-
200
- add_action( 'woocommerce_update_options_email_customer_partial_shipped_order', array( $this, 'save_partial_shipped_email' ) ,100, 1);
201
  }
202
 
203
  /*
@@ -218,197 +180,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
218
  require_once ABSPATH . '/wp-admin/includes/upgrade.php';
219
  }
220
  maybe_create_table( $table_name, $sql );
221
- }
222
-
223
- /*
224
- * Add class in admin settings page
225
- */
226
- public function ahipment_tracking_admin_body_class($classes){
227
- $page = (isset($_REQUEST["page"])?$_REQUEST["page"]:"");
228
- if( $page == 'woocommerce-advanced-shipment-tracking') {
229
- $classes .= 'shipment_tracking_admin_settings';
230
- }
231
- return $classes;
232
- }
233
-
234
- /*
235
- * Rename WooCommerce Order Status
236
- */
237
- function wc_renaming_order_status( $order_statuses ) {
238
-
239
- $enable = get_option( "wc_ast_status_shipped", 0);
240
- if( $enable == false )return $order_statuses;
241
-
242
- foreach ( $order_statuses as $key => $status ) {
243
- $new_order_statuses[ $key ] = $status;
244
- if ( 'wc-completed' === $key ) {
245
- $order_statuses['wc-completed'] = esc_html__( 'Shipped','woo-advanced-shipment-tracking' );
246
- }
247
- }
248
- return $order_statuses;
249
- }
250
-
251
- /*
252
- * define the woocommerce_register_shop_order_post_statuses callback
253
- * rename filter
254
- * rename from completed to shipped
255
- */
256
- function filter_woocommerce_register_shop_order_post_statuses( $array ) {
257
-
258
- $enable = get_option( "wc_ast_status_shipped", 0);
259
- if( $enable == false )return $array;
260
-
261
- if( isset( $array[ 'wc-completed' ] ) ){
262
- $array[ 'wc-completed' ]['label_count'] = _n_noop( 'Shipped <span class="count">(%s)</span>', 'Shipped <span class="count">(%s)</span>', 'woo-advanced-shipment-tracking' );
263
- }
264
- return $array;
265
- }
266
-
267
- /*
268
- * rename bulk action
269
- */
270
- function modify_bulk_actions($bulk_actions) {
271
-
272
- $enable = get_option( "wc_ast_status_shipped", 0);
273
- if( $enable == false )return $bulk_actions;
274
-
275
- if( isset( $bulk_actions['mark_completed'] ) ){
276
- $bulk_actions['mark_completed'] = __( 'Change status to shipped', 'woo-advanced-shipment-tracking' );
277
- }
278
- return $bulk_actions;
279
- }
280
-
281
- /**
282
- * Register new status : Delivered
283
- **/
284
- function register_order_status() {
285
- register_post_status( 'wc-delivered', array(
286
- 'label' => __( 'Delivered', 'woo-advanced-shipment-tracking' ),
287
- 'public' => true,
288
- 'show_in_admin_status_list' => true,
289
- 'show_in_admin_all_list' => true,
290
- 'exclude_from_search' => false,
291
- 'label_count' => _n_noop( 'Delivered <span class="count">(%s)</span>', 'Delivered <span class="count">(%s)</span>', 'woo-advanced-shipment-tracking' )
292
- ) );
293
- $wc_ast_api_key = get_option('wc_ast_api_key');
294
- $api_enabled = get_option( "wc_ast_api_enabled", 0);
295
- if($wc_ast_api_key && $api_enabled){
296
- register_post_status( 'wc-updated-tracking', array(
297
- 'label' => __( 'Updated Tracking', 'woo-advanced-shipment-tracking' ),
298
- 'public' => true,
299
- 'show_in_admin_status_list' => true,
300
- 'show_in_admin_all_list' => true,
301
- 'exclude_from_search' => false,
302
- 'label_count' => _n_noop( 'Updated Tracking <span class="count">(%s)</span>', 'Updated Tracking <span class="count">(%s)</span>', 'woo-advanced-shipment-tracking' )
303
- ) );
304
- }
305
- }
306
-
307
- /**
308
- * Register new status : Partial Shipped
309
- **/
310
- function register_partial_shipped_order_status() {
311
- register_post_status( 'wc-partial-shipped', array(
312
- 'label' => __( 'Partial Shipped', 'woo-advanced-shipment-tracking' ),
313
- 'public' => true,
314
- 'show_in_admin_status_list' => true,
315
- 'show_in_admin_all_list' => true,
316
- 'exclude_from_search' => false,
317
- 'label_count' => _n_noop( 'Partial Shipped <span class="count">(%s)</span>', 'Partial Shipped <span class="count">(%s)</span>', 'woo-advanced-shipment-tracking' )
318
- ) );
319
- }
320
-
321
- /*
322
- * add status after completed
323
- */
324
- function add_delivered_to_order_statuses( $order_statuses ) {
325
- $new_order_statuses = array();
326
- foreach ( $order_statuses as $key => $status ) {
327
- $new_order_statuses[ $key ] = $status;
328
- if ( 'wc-completed' === $key ) {
329
- $new_order_statuses['wc-delivered'] = __( 'Delivered', 'woo-advanced-shipment-tracking' );
330
- //$new_order_statuses['wc-updated-tracking'] = __( 'Updated Tracking', 'woo-advanced-shipment-tracking' );
331
- }
332
- }
333
- $wc_ast_api_key = get_option('wc_ast_api_key');
334
- $api_enabled = get_option( "wc_ast_api_enabled", 0);
335
- if($wc_ast_api_key && $api_enabled){
336
- foreach ( $order_statuses as $key => $status ) {
337
- $new_order_statuses[ $key ] = $status;
338
- if ( 'wc-completed' === $key ) {
339
- //$new_order_statuses['wc-delivered'] = __( 'Delivered', 'woo-advanced-shipment-tracking' );
340
- $new_order_statuses['wc-updated-tracking'] = __( 'Updated Tracking', 'woo-advanced-shipment-tracking' );
341
- }
342
- }
343
- }
344
- return $new_order_statuses;
345
- }
346
-
347
- /*
348
- * add status after completed
349
- */
350
- function add_partial_shipped_to_order_statuses( $order_statuses ) {
351
- $new_order_statuses = array();
352
- foreach ( $order_statuses as $key => $status ) {
353
- $new_order_statuses[ $key ] = $status;
354
- if ( 'wc-completed' === $key ) {
355
- $new_order_statuses['wc-partial-shipped'] = __( 'Partial Shipped', 'woo-advanced-shipment-tracking' );
356
- }
357
- }
358
- return $new_order_statuses;
359
- }
360
-
361
- /*
362
- * Adding the custom order status to the default woocommerce order statuses
363
- */
364
- function include_custom_order_status_to_reports( $statuses ){
365
- if($statuses)$statuses[] = 'delivered';
366
- if($statuses)$statuses[] = 'updated-tracking';
367
- return $statuses;
368
- }
369
-
370
- /*
371
- * Adding the partial-shipped order status to the default woocommerce order statuses
372
- */
373
- function include_partial_shipped_order_status_to_reports( $statuses ){
374
- if($statuses)$statuses[] = 'partial-shipped';
375
- return $statuses;
376
- }
377
-
378
- /*
379
- * mark status as a paid.
380
- */
381
- function delivered_woocommerce_order_is_paid_statuses( $statuses ) {
382
- $statuses[] = 'delivered';
383
- $statuses[] = 'updated-tracking';
384
- return $statuses;
385
- }
386
-
387
- /*
388
- * mark status as a paid.
389
- */
390
- function partial_shipped_woocommerce_order_is_paid_statuses( $statuses ) {
391
- $statuses[] = 'partial-shipped';
392
- return $statuses;
393
- }
394
-
395
- /*
396
- * add bulk action
397
- * Change order status to delivered
398
- */
399
- function add_bulk_actions( $bulk_actions ){
400
- $bulk_actions['mark_delivered'] = __( 'Change status to delivered', 'woo-advanced-shipment-tracking' );
401
- return $bulk_actions;
402
- }
403
-
404
- /*
405
- * add bulk action
406
- * Change order status to delivered
407
- */
408
- function add_bulk_actions_partial_shipped( $bulk_actions ){
409
- $bulk_actions['mark_partial-shipped'] = __( 'Change status to partial shipped', 'woo-advanced-shipment-tracking' );
410
- return $bulk_actions;
411
- }
412
 
413
  /*
414
  * add_cron_interval
@@ -463,86 +236,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
463
  }
464
  //$orders = wc_get_orders( $args );print_r($orders);exit;
465
  return $orders = wc_get_orders( $args );
466
- }
467
-
468
- /*
469
- * cron callback
470
- */
471
- function wc_ast_cron_callback(){
472
-
473
- //get shipped orders
474
- $orders = $this->get_shipped_orders();
475
-
476
- foreach( $orders as $order ){
477
- $order_shipped = apply_filters( 'is_order_shipped', true, $order );
478
-
479
- if( $order_shipped ){
480
- $this->add_in_batch_process( $order->get_id() );
481
- }
482
- }
483
-
484
- if ( ! wp_next_scheduled( 'wc_ast_batch_process' ) ) {
485
- wp_schedule_event( time(), 'wc_ast_2min', 'wc_ast_batch_process' );
486
- }
487
- }
488
-
489
- /*
490
- * tracking number filter
491
- * if number not found. return false
492
- * if number found. return true
493
- */
494
- function check_tracking_exist( $value, $order ){
495
-
496
- if($value == true){
497
-
498
- $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
499
- if( $tracking_items ){
500
- return true;
501
- } else {
502
- return false;
503
- }
504
- }
505
- return $value;
506
- }
507
-
508
- /*
509
- * If order status is "Updated Tracking" or "Completed" than retrn true else return false
510
- */
511
- function check_order_status($value, $order){
512
- $order_status = $order->get_status();
513
-
514
- $all_order_status = wc_get_order_statuses();
515
-
516
- $default_order_status = array(
517
- 'wc-pending' => 'Pending payment',
518
- 'wc-processing' => 'Processing',
519
- 'wc-on-hold' => 'On hold',
520
- 'wc-completed' => 'Completed',
521
- 'wc-delivered' => 'Delivered',
522
- 'wc-cancelled' => 'Cancelled',
523
- 'wc-refunded' => 'Refunded',
524
- 'wc-failed' => 'Failed'
525
- );
526
-
527
- foreach($default_order_status as $key=>$value){
528
- unset($all_order_status[$key]);
529
- }
530
-
531
- $custom_order_status = $all_order_status;
532
-
533
- foreach($custom_order_status as $key=>$value){
534
- unset($custom_order_status[$key]);
535
- $key = str_replace("wc-", "", $key);
536
- $custom_order_status[] = $key;
537
- }
538
-
539
- if($order_status == 'updated-tracking' || $order_status == 'completed' || in_array($order_status, $custom_order_status)){
540
- return true;
541
- } else {
542
- return false;
543
- }
544
- return $value;
545
- }
546
 
547
  /*
548
  * add in batch process
@@ -564,30 +258,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
564
  global $wpdb;
565
  $table_name = $wpdb->prefix.'shipment_batch_process';
566
  $wpdb->delete( $table_name, array( 'id' => $batch_process_id ) );
567
- }
568
-
569
- /*
570
- * batch process cron func
571
- * this will run when data in table "shipment_batch_process"
572
- * if no data cron clear
573
- */
574
- function wc_ast_batch_process_callback(){
575
- error_reporting(E_ALL); ini_set('display_errors', 1);
576
- global $wpdb;
577
- $table_name = $wpdb->prefix.'shipment_batch_process';
578
- $result = $wpdb->get_results( "SELECT * FROM `{$table_name}` LIMIT 30", ARRAY_A );
579
- $result = $wpdb->get_results( "SELECT * FROM `{$table_name}` LIMIT 2", ARRAY_A );
580
-
581
- foreach( (array)$result as $row ){
582
- $order_id = $row['order_id'];
583
- $array = $this->shipment_api_call( $order_id );
584
- $this->remove_from_batch_process( $row['id'] );
585
- }
586
-
587
- if( count($result) == 0 ){
588
- wp_clear_scheduled_hook( 'wc_ast_batch_process' );
589
- }
590
- }
591
 
592
  /*
593
  * shipment api call
@@ -629,15 +300,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
629
 
630
  foreach ( $columns as $column_name => $column_info ) {
631
 
632
- $new_columns[ $column_name ] = $column_info;
633
-
634
- /*if ( 'order_status' === $column_name ) {
635
- $new_columns['woocommerce-advanced-shipment-tracking'] = __( 'Shipment Tracking', 'woo-advanced-shipment-tracking' );
636
- $new_columns['shipment_status'] = __( 'Shipment status', 'woo-advanced-shipment-tracking' );
637
- }*/
638
 
639
- if ( 'woocommerce-advanced-shipment-tracking' === $column_name ) {
640
- //$new_columns['shipment_status_old'] = __( 'Shipment status', 'woo-advanced-shipment-tracking' );
641
  $new_columns['shipment_status'] = __( 'Shipment status', 'woo-advanced-shipment-tracking' );
642
  }
643
  }
@@ -677,9 +342,13 @@ class WC_Advanced_Shipment_Tracking_Admin {
677
 
678
  $ast = new WC_Advanced_Shipment_Tracking_Actions;
679
  $tracking_items = $ast->get_tracking_items( $post->ID );
680
- $shipment_status = get_post_meta( $post->ID, "shipment_status", true);
681
- //echo '<pre>';print_r($shipment_status);echo '</pre>';
682
-
 
 
 
 
683
  if ( count( $tracking_items ) > 0 ) {
684
  ?>
685
  <ul class="wcast-shipment-status-list">
@@ -691,11 +360,11 @@ class WC_Advanced_Shipment_Tracking_Admin {
691
  $status = $shipment_status[$key]['status'];
692
  $status_date = $shipment_status[$key]['status_date'];
693
  if(isset($shipment_status[$key]['est_delivery_date'])){
694
- $est_delivery_date = $shipment_status[$key]['est_delivery_date'];
695
  }
696
  if( $status != 'delivered' && $status != 'return_to_sender' && !empty($est_delivery_date) ){
697
  $has_est_delivery = true;
698
- }
699
  ?>
700
  <li id="tracking-item-<?php echo $tracking_item['tracking_id'];?>" class="tracking-item-<?php echo $tracking_item['tracking_id'];?>">
701
  <div class="wcast-shipment-status-icon">
@@ -703,10 +372,10 @@ class WC_Advanced_Shipment_Tracking_Admin {
703
  </div>
704
  <div class="ast-shipment-status shipment-<?php echo sanitize_title($status)?> has_est_delivery_<?php echo ( $has_est_delivery ? 1 : 0 )?>">
705
  <span class="ast-shipment-tracking-status"><?php echo apply_filters("trackship_status_filter",$status);?></span>
706
- <span class="showif_has_est_delivery_1 ft11">(<?php echo date( "d/m", strtotime($status_date))?>)</span>
707
- <span class="showif_has_est_delivery_0 ft11">on <?php echo date( "d/m", strtotime($status_date))?></span>
708
  <?php if( $has_est_delivery){?>
709
- <span class="wcast-shipment-est-delivery ft11">Est. Delivery(<?php echo date( "d/m", strtotime($est_delivery_date))?>)</span>
710
  <?php } ?>
711
  </div>
712
  </li>
@@ -746,6 +415,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
746
 
747
  wp_enqueue_style( 'shipment_tracking_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
748
 
 
 
749
  wp_enqueue_script( 'woocommerce-advanced-shipment-tracking-js', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/admin.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version);
750
 
751
  wp_localize_script( 'woocommerce-advanced-shipment-tracking-js', 'ast_admin_js', array(
@@ -780,6 +451,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
780
 
781
  wp_enqueue_script( 'advanced_shipment_tracking_settings', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/settings.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
782
 
 
 
783
  wp_register_script( 'shipment_tracking_table_rows', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/shipping_row.js' , array( 'jquery', 'wp-util' ), wc_advanced_shipment_tracking()->version );
784
  wp_localize_script( 'shipment_tracking_table_rows', 'shipment_tracking_table_rows', array(
785
  'i18n' => array(
@@ -799,7 +472,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
799
  * WC sub menu
800
  */
801
  public function register_woocommerce_menu() {
802
- add_submenu_page( 'woocommerce', 'Shipment Tracking', 'Shipment Tracking', 'manage_options', 'woocommerce-advanced-shipment-tracking', array( $this, 'woocommerce_advanced_shipment_tracking_page_callback' ) );
803
  }
804
 
805
  /*
@@ -860,16 +533,11 @@ class WC_Advanced_Shipment_Tracking_Admin {
860
  <input id="tab4" type="radio" name="tabs" class="tab_input" data-tab="bulk-upload" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'bulk-upload'){ echo 'checked'; } ?>>
861
  <label for="tab4" class="tab_label"><?php _e('Bulk Upload', 'woo-advanced-shipment-tracking'); ?></label>
862
 
863
- <input id="tab3" type="radio" name="tabs" class="tab_input" data-tab="trackship" <?php if(isset($_GET['tab']) && ($_GET['tab'] == 'trackship' || $_GET['tab'] == 'tracking-page' || $_GET['tab'] == 'shipment-status-notifications')){ echo 'checked'; } ?>>
864
  <label for="tab3" class="tab_label">TrackShip</label>
865
 
866
- <?php
867
- $wc_ast_api_key = get_option('wc_ast_api_key');
868
- if($wc_ast_api_key){
869
- ?>
870
- <input id="tab5" type="radio" name="tabs" class="tab_input" data-tab="tools" <?php if(isset($_GET['tab']) && ($_GET['tab'] == 'tools')){ echo 'checked'; } ?>>
871
- <label for="tab5" class="tab_label"><?php _e('Tools', 'woo-advanced-shipment-tracking'); ?></label>
872
- <?php } ?>
873
 
874
  <div class="nav_doc_section">
875
  <a target="blank" class="doc_link" href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a>
@@ -879,8 +547,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
879
  <?php require_once( 'views/admin_options_shipping_provider.php' );?>
880
  <?php require_once( 'views/admin_options_settings.php' );?>
881
  <?php require_once( 'views/admin_options_trackship_integration.php' );?>
882
- <?php require_once( 'views/admin_options_bulk_upload.php' );?>
883
- <?php if($wc_ast_api_key){ require_once( 'views/admin_options_tools.php' ); }?>
 
884
  </div>
885
  </div>
886
  <div id="demo-toast-example" class="mdl-js-snackbar mdl-snackbar">
@@ -893,8 +562,25 @@ class WC_Advanced_Shipment_Tracking_Admin {
893
  <iframe id="how_to_video" src="https://www.youtube.com/embed/Mw7laecPtyw" frameborder="0" allowfullscreen></iframe>
894
  </div>
895
  </div>
896
- <div class="popupclose"></div>
897
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
898
  <?php
899
  if(isset( $_GET['tab'] ) && $_GET['tab'] == 'trackship'){ ?>
900
  <script>
@@ -982,15 +668,17 @@ class WC_Advanced_Shipment_Tracking_Admin {
982
  } else{
983
  $checked="";
984
  }?>
985
- <span class="mdl-list__item-secondary-action multiple_checkbox">
986
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="<?php echo $key?>">
987
  <input type="hidden" name="<?php echo $id?>[<?php echo $key?>]" value="0"/>
988
- <input type="checkbox" id="<?php echo $key?>" name="<?php echo $id?>[<?php echo $key?>]" class="mdl-switch__input" <?php echo $checked; ?> value="1"/>
989
  <span class="multiple_label"><?php echo $val['status']; ?></span>
990
  </br>
991
  </label>
992
  </span>
993
- <?php }
 
 
994
  if($val['type'] == 'custom'){
995
  $multi_checkbox_data = get_option($id);
996
  if(isset($multi_checkbox_data[$key]) && $multi_checkbox_data[$key] == 1){
@@ -999,22 +687,23 @@ class WC_Advanced_Shipment_Tracking_Admin {
999
  $checked="";
1000
  }
1001
  if($op == 1){ ?>
1002
- <div style="margin: 10px 0 15px;">
1003
  <strong style="font-weight: 700;padding-bottom: 3px;">
1004
  <?php _e( 'Custom Statuses', 'woo-advanced-shipment-tracking' ); ?>
1005
  </strong>
1006
  </div>
1007
  <?php } ?>
1008
- <span class="mdl-list__item-secondary-action multiple_checkbox">
1009
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="<?php echo $key?>">
1010
  <input type="hidden" name="<?php echo $id?>[<?php echo $key?>]" value="0"/>
1011
- <input type="checkbox" id="<?php echo $key?>" name="<?php echo $id?>[<?php echo $key?>]" class="mdl-switch__input" <?php echo $checked; ?> value="1"/>
1012
  <span class="multiple_label"><?php echo $val['status']; ?></span>
1013
  </br>
1014
  </label>
1015
  </span>
1016
  <?php $op++; }
1017
- } ?>
 
1018
 
1019
  <?php } elseif( isset( $array['type'] ) && $array['type'] == 'dropdown' ){?>
1020
  <?php
@@ -1044,8 +733,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1044
  <?php } elseif( $array['type'] == 'title' ){?>
1045
  <?php }
1046
  elseif( $array['type'] == 'key_field' ){ ?>
1047
- <fieldset>
1048
- <!--input class="input-text regular-input " type="text" name="<?php echo $id?>" id="<?php echo $id?>" style="" value="<?php echo get_option($id)?>" placeholder="" readonly-->
1049
  <?php if($array['connected'] == true){ ?>
1050
  <a href="https://my.trackship.info/" target="_blank">
1051
  <span class="api_connected"><label><?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></label><span class="dashicons dashicons-yes"></span></span></a>
@@ -1143,6 +831,31 @@ class WC_Advanced_Shipment_Tracking_Admin {
1143
  } else{
1144
  $disable_bulk_sync_zero_balance = true;
1145
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1146
 
1147
  $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
1148
 
@@ -1171,6 +884,15 @@ class WC_Advanced_Shipment_Tracking_Admin {
1171
  'button_class' => 'bulk_shipment_status_button_for_empty_balance',
1172
  'class' => '',
1173
  ),
 
 
 
 
 
 
 
 
 
1174
  );
1175
  return $form_data;
1176
  }
@@ -1240,7 +962,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1240
  $slug = $post->post_name;
1241
 
1242
  if($slug != 'ts-shipment-tracking'){
1243
- $page_desc = __( 'You must add the shortcode [wcast-track-order] to the "page name" in order for the tracking page to work.', 'woo-advanced-shipment-tracking' );
1244
  } else{
1245
  $page_desc = '';
1246
  }
@@ -1260,6 +982,17 @@ class WC_Advanced_Shipment_Tracking_Admin {
1260
  'show' => $show_trackship_field,
1261
  'class' => '',
1262
  ),
 
 
 
 
 
 
 
 
 
 
 
1263
  'wc_ast_select_primary_color' => array(
1264
  'type' => 'color',
1265
  'title' => __( 'Select primary color for tracking page', 'woo-advanced-shipment-tracking' ),
@@ -1271,7 +1004,13 @@ class WC_Advanced_Shipment_Tracking_Admin {
1271
  'title' => __( 'Select content border color for tracking page', 'woo-advanced-shipment-tracking' ),
1272
  'class' => 'color_field',
1273
  'show' => $show_trackship_field,
1274
- ),
 
 
 
 
 
 
1275
  'wc_ast_hide_tracking_events' => array(
1276
  'type' => 'checkbox',
1277
  'title' => __( 'Hide tracking events details', 'woo-advanced-shipment-tracking' ),
@@ -1288,6 +1027,23 @@ class WC_Advanced_Shipment_Tracking_Admin {
1288
  return $form_data;
1289
 
1290
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1291
 
1292
  /*
1293
  * settings form save
@@ -1308,6 +1064,35 @@ class WC_Advanced_Shipment_Tracking_Admin {
1308
  echo json_encode( array('success' => 'true') );die();
1309
 
1310
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1311
  }
1312
 
1313
  /*
@@ -1355,7 +1140,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1355
  'wc-on-hold' => 'On hold',
1356
  'wc-completed' => 'Completed',
1357
  'wc-delivered' => 'Delivered',
1358
- //'wc-partial-shipped' => 'Partial Shipped',
1359
  'wc-cancelled' => 'Cancelled',
1360
  'wc-refunded' => 'Refunded',
1361
  'wc-failed' => 'Failed'
@@ -1452,31 +1237,30 @@ class WC_Advanced_Shipment_Tracking_Admin {
1452
  $form_data = array(
1453
  'wc_ast_status_delivered' => array(
1454
  'type' => 'checkbox',
1455
- 'title' => __( 'Enable custom order status “Delivered"', 'woo-advanced-shipment-tracking' ),
1456
- 'tooltip' => __( 'if you enable the delivered item, you will have the option to send delivered email notifications.', 'woo-advanced-shipment-tracking' ),
1457
  'show' => true,
1458
  'class' => '',
1459
  ),
1460
  'wc_ast_status_label_color' => array(
1461
  'type' => 'color',
1462
- 'title' => __( 'Delivered Label color', 'woo-advanced-shipment-tracking' ),
1463
  'class' => 'status_label_color_th',
1464
  'show' => true,
1465
  ),
1466
  'wc_ast_status_label_font_color' => array(
1467
  'type' => 'dropdown',
1468
- 'title' => __( 'Delivered Label font color', 'woo-advanced-shipment-tracking' ),
1469
  'options' => array(
1470
  "" =>__( 'Select', 'woocommerce' ),
1471
- "#fff" =>__( 'Light', 'woo-advanced-shipment-tracking' ),
1472
- "#000" =>__( 'Dark', 'woo-advanced-shipment-tracking' ),
1473
  ),
1474
  'class' => 'status_label_color_th',
1475
  'show' => true,
1476
  ),
1477
  'wcast_enable_delivered_email' => array(
1478
  'type' => 'checkbox',
1479
- 'title' => __( 'Enable the Delivered order status email', 'woo-advanced-shipment-tracking' ),
1480
  'title_link'=> "<a class='settings_edit' href='".wcast_initialise_customizer_email::get_customizer_url('customer_delivered_email')."'>".__( 'Edit', 'woocommerce' )."</a>",
1481
  'class' => 'status_label_color_th',
1482
  'show' => true,
@@ -1485,40 +1269,80 @@ class WC_Advanced_Shipment_Tracking_Admin {
1485
  return $form_data;
1486
 
1487
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1488
 
1489
  /*
1490
- * get Partial shipped array data
1491
  * return array
1492
  */
1493
  function get_partial_shipped_data(){
1494
  $form_data = array(
1495
  'wc_ast_status_partial_shipped' => array(
1496
  'type' => 'checkbox',
1497
- 'title' => __( 'Enable custom order status “Partial Shipped"', 'woo-advanced-shipment-tracking' ),
1498
- 'tooltip' => __( 'if you enable the Partial Shipped item, you will have the option to send Partial Shipped email notifications.', 'woo-advanced-shipment-tracking' ),
1499
  'show' => true,
1500
  'class' => '',
1501
  ),
1502
  'wc_ast_status_partial_shipped_label_color' => array(
1503
  'type' => 'color',
1504
- 'title' => __( 'Partial Shipped Label color', 'woo-advanced-shipment-tracking' ),
1505
  'class' => 'partial_shipped_status_label_color_th',
1506
  'show' => true,
1507
  ),
1508
  'wc_ast_status_partial_shipped_label_font_color' => array(
1509
  'type' => 'dropdown',
1510
- 'title' => __( 'Partial Shipped Label font color', 'woo-advanced-shipment-tracking' ),
1511
  'options' => array(
1512
  "" =>__( 'Select', 'woocommerce' ),
1513
- "#fff" =>__( 'Light', 'woo-advanced-shipment-tracking' ),
1514
- "#000" =>__( 'Dark', 'woo-advanced-shipment-tracking' ),
1515
  ),
1516
  'class' => 'partial_shipped_status_label_color_th',
1517
  'show' => true,
1518
  ),
1519
  'wcast_enable_partial_shipped_email' => array(
1520
  'type' => 'checkbox',
1521
- 'title' => __( 'Enable the Partial Shipped order status email', 'woo-advanced-shipment-tracking' ),
1522
  'title_link'=> "<a class='settings_edit' href='".wcast_partial_shipped_customizer_email::get_customizer_url('customer_partial_shipped_email')."'>".__( 'Edit', 'woocommerce' )."</a>",
1523
  'class' => 'partial_shipped_status_label_color_th',
1524
  'show' => true,
@@ -1533,7 +1357,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1533
  */
1534
  function wc_ast_settings_form_update_callback(){
1535
  if ( ! empty( $_POST ) && check_admin_referer( 'wc_ast_settings_form', 'wc_ast_settings_form' ) ) {
1536
-
1537
  $data = $this->get_settings_data();
1538
 
1539
  foreach( $data as $key => $val ){
@@ -1573,7 +1397,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1573
  $data = $this->get_partial_shipped_data();
1574
 
1575
  foreach( $data as $key => $val ){
1576
- if($key == 'wcast_enable_partial_shipped_email'){
1577
  if(isset($_POST['wcast_enable_partial_shipped_email'])){
1578
  $wcast_enable_partial_shipped_email = get_option('woocommerce_customer_partial_shipped_order_settings');
1579
  if($_POST['wcast_enable_partial_shipped_email'] == 1){
@@ -1597,6 +1421,35 @@ class WC_Advanced_Shipment_Tracking_Admin {
1597
  update_option( $key, $_POST[ $key ] );
1598
  }
1599
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1600
 
1601
  echo json_encode( array('success' => 'true') );die();
1602
 
@@ -1607,25 +1460,32 @@ class WC_Advanced_Shipment_Tracking_Admin {
1607
  * change style of delivered order label
1608
  */
1609
  function footer_function(){
1610
- $bg_color = get_option('wc_ast_status_label_color');
1611
- $color = get_option('wc_ast_status_label_font_color','#fff');
1612
-
1613
- $ps_bg_color = get_option('wc_ast_status_partial_shipped_label_color');
1614
- $ps_color = get_option('wc_ast_status_partial_shipped_label_font_color','#fff');
1615
- ?>
1616
- <style>
1617
- .order_status .order-status.status-delivered{
1618
- background: <?php echo $bg_color; ?>;
 
 
 
 
1619
  color: <?php echo $color; ?>;
1620
- }
1621
- <?php if($ps_bg_color){ ?>
1622
- .order_status .order-status.status-partial-shipped{
1623
- background: <?php echo $ps_bg_color; ?>;
1624
  color: <?php echo $ps_color; ?>;
 
 
 
 
 
 
 
1625
  }
1626
- <?php } ?>
1627
- </style>
1628
- <?php
1629
  }
1630
 
1631
  /*
@@ -1634,6 +1494,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
1634
  function upload_tracking_csv_fun(){
1635
 
1636
  $replace_tracking_info = $_POST['replace_tracking_info'];
 
 
1637
  $order_id = $_POST['order_id'];
1638
 
1639
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
@@ -1642,6 +1504,15 @@ class WC_Advanced_Shipment_Tracking_Admin {
1642
  $tracking_provider = $_POST['tracking_provider'];
1643
  $tracking_number = $_POST['tracking_number'];
1644
  $date_shipped = str_replace("/","-",$_POST['date_shipped']);
 
 
 
 
 
 
 
 
 
1645
  if(empty($date_shipped)){
1646
  $date_shipped = date("d-m-Y");
1647
  }
@@ -1651,22 +1522,28 @@ class WC_Advanced_Shipment_Tracking_Admin {
1651
  $woo_shippment_table_name = $this->table;
1652
  $shippment_provider = $wpdb->get_var( "SELECT COUNT(*) FROM $woo_shippment_table_name WHERE provider_name = '".$tracking_provider."'" );
1653
 
 
1654
  if($shippment_provider == 0){
1655
  echo '<li class="error">Failed - Invalid Tracking Provider for Order Id - '.$_POST['order_id'].'</li>';exit;
1656
  }
1657
  if(empty($tracking_number)){
1658
  echo '<li class="error">Failed - Empty Tracking Number for Order Id - '.$_POST['order_id'].'</li>';exit;
1659
  }
1660
- if(preg_match('/[^a-z0-9 \b]+/i', $tracking_number)){
1661
  echo '<li class="error">Failed - Special character not allowd in tracking number for Order Id - '.$_POST['order_id'].'</li>';exit;
1662
  }
1663
  if(empty($date_shipped)){
1664
  echo '<li class="error">Failed - Empty Date Shipped for Order Id - '.$_POST['order_id'].'</li>';exit;
1665
- }
1666
- if(!$this->isDate($date_shipped)){
1667
  echo '<li class="error">Failed - Invalid Date Shipped for Order Id - '.$_POST['order_id'].'</li>';exit;
1668
  }
1669
 
 
 
 
 
 
1670
  if($replace_tracking_info == 1){
1671
  $order = wc_get_order($order_id);
1672
 
@@ -1676,24 +1553,68 @@ class WC_Advanced_Shipment_Tracking_Admin {
1676
  if ( count( $tracking_items ) > 0 ) {
1677
  foreach ( $tracking_items as $key => $item ) {
1678
  $tracking_number = $item['tracking_number'];
1679
- if(in_array($tracking_number, array_column($_POST['trackings'], 'tracking_number'))) {
1680
-
1681
- } else{
1682
- unset( $tracking_items[ $key ] );
1683
- }
1684
  }
1685
  $wast->save_tracking_items( $order_id, $tracking_items );
1686
  }
1687
  }
1688
  }
1689
  if($tracking_provider && $tracking_number && $date_shipped){
1690
-
1691
- $args = array(
1692
- 'tracking_provider' => wc_clean( sanitize_title($_POST['tracking_provider']) ),
1693
- 'tracking_number' => wc_clean( $_POST['tracking_number'] ),
1694
- 'date_shipped' => wc_clean( $_POST['date_shipped'] ),
1695
- 'status_shipped' => wc_clean( $_POST['status_shipped'] ),
1696
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1697
  $order = wc_get_order($order_id);
1698
 
1699
  if ( $order === false ) {
@@ -1716,18 +1637,15 @@ class WC_Advanced_Shipment_Tracking_Admin {
1716
  *
1717
  * @return boolean
1718
  */
1719
- function isDate($value)
1720
  {
1721
- if (!$value) {
1722
- return false;
1723
- }
1724
-
1725
- try {
1726
- new \DateTime($value);
1727
- return true;
1728
- } catch (\Exception $e) {
1729
  return false;
1730
  }
 
 
 
 
1731
  }
1732
 
1733
  /*
@@ -1827,6 +1745,36 @@ class WC_Advanced_Shipment_Tracking_Admin {
1827
  echo $url;die();
1828
  }
1829
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1830
  /**
1831
  * Add 'get_shipment_status' link to order actions select box on edit order page
1832
  *
@@ -1857,8 +1805,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
1857
  $count = intval( $_REQUEST['processed_count'] );
1858
 
1859
  printf( '<div id="message" class="updated fade"><p>' .
1860
- _n( 'Tracking info sent to Trackship for %s Order.',
1861
- 'Tracking info sent to Trackship for %s Orders.',
1862
  $count,
1863
  'get_shipment_status'
1864
  ) . '</p></div>', $count );
@@ -1975,26 +1923,6 @@ class WC_Advanced_Shipment_Tracking_Admin {
1975
  $this->trigger_woocommerce_order_status_completed( $order_id );
1976
  }
1977
 
1978
- /*
1979
- * define the item in the meta box by adding an item to the $actions array
1980
- */
1981
- function add_order_meta_box_actions( $actions ) {
1982
- $actions['resend_delivered_order_notification'] = __( 'Resend delivered order notification', 'woo-advanced-shipment-tracking' );
1983
- return $actions;
1984
- }
1985
-
1986
- /*
1987
- * function call when resend delivered order email notification trigger
1988
- */
1989
- function process_order_meta_box_actions($order){
1990
- require_once( 'email-manager.php' );
1991
- $old_status = 'in_transit';
1992
- $new_status = 'delivered';
1993
- $order_id = $order->get_id();
1994
- //wc_advanced_shipment_tracking_email_class()->delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status);
1995
- WC()->mailer()->emails['WC_Email_Customer_Delivered_Order']->trigger( $order_id, $order );
1996
- }
1997
-
1998
  /*
1999
  * update preview order id in customizer
2000
  */
@@ -2032,6 +1960,11 @@ class WC_Advanced_Shipment_Tracking_Admin {
2032
  exit;
2033
  }
2034
 
 
 
 
 
 
2035
  /*
2036
  * Change completed order email title to Shipped Order
2037
  */
@@ -2201,10 +2134,19 @@ class WC_Advanced_Shipment_Tracking_Admin {
2201
  </div>
2202
  </div>
2203
  <?php } } else{
2204
- $status = 'active';
2205
  ?>
2206
- <h3><?php echo sprintf(__("You don't have any %s shipping providers.", 'woo-advanced-shipment-tracking'), $status); ?></h3>
2207
- <?php } ?>
 
 
 
 
 
 
 
 
 
2208
  </div>
2209
  <?php
2210
  }
@@ -2338,7 +2280,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
2338
  'provider_name' => sanitize_text_field($_POST['shipping_provider']),
2339
  'ts_slug' => sanitize_title($_POST['shipping_provider']),
2340
  'custom_thumb_id' => sanitize_text_field($_POST['thumb_id']),
2341
- 'provider_url' => esc_url($_POST['tracking_url'])
2342
  );
2343
  $where_array = array(
2344
  'id' => $_POST['provider_id'],
@@ -2387,173 +2329,6 @@ class WC_Advanced_Shipment_Tracking_Admin {
2387
  exit;
2388
  }
2389
 
2390
- /**
2391
- * Synch provider function
2392
- */
2393
- public function sync_providers_fun(){
2394
- global $wpdb;
2395
-
2396
- $url = 'https://trackship.info/wp-json/WCAST/v1/Provider';
2397
- $resp = wp_remote_get( $url );
2398
-
2399
- if ( is_array( $resp ) && ! is_wp_error( $resp ) ) {
2400
- $providers = json_decode($resp['body'],true);
2401
-
2402
- $default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table WHERE shipping_default = 1" );
2403
-
2404
- foreach ( $default_shippment_providers as $key => $val ){
2405
- $shippment_providers[ $val->provider_name ] = $val;
2406
- }
2407
-
2408
- foreach ( $providers as $key => $val ){
2409
- $providers_name[ $val['provider_name'] ] = $val;
2410
- }
2411
-
2412
- $added = 0;
2413
- $updated = 0;
2414
- $deleted = 0;
2415
- $added_html = '';
2416
- $updated_html = '';
2417
- $deleted_html = '';
2418
-
2419
- foreach($providers as $provider){
2420
-
2421
- $provider_name = $provider['shipping_provider'];
2422
- $provider_url = $provider['provider_url'];
2423
- $shipping_country = $provider['shipping_country'];
2424
- $ts_slug = $provider['shipping_provider_slug'];
2425
-
2426
- if(isset($shippment_providers[$provider_name])){
2427
- $db_provider_url = $shippment_providers[$provider_name]->provider_url;
2428
- $db_shipping_country = $shippment_providers[$provider_name]->shipping_country;
2429
- $db_ts_slug = $shippment_providers[$provider_name]->ts_slug;
2430
- if(($db_provider_url != $provider_url) || ($db_shipping_country != $shipping_country) || ($db_ts_slug != $ts_slug)){
2431
- $data_array = array(
2432
- 'ts_slug' => $ts_slug,
2433
- 'provider_url' => $provider_url,
2434
- 'shipping_country' => $shipping_country,
2435
- );
2436
- $where_array = array(
2437
- 'provider_name' => $provider_name,
2438
- );
2439
- $wpdb->update( $this->table, $data_array, $where_array);
2440
- $updated_data[$updated] = array('provider_name' => $provider_name);
2441
- $updated++;
2442
- }
2443
- } else{
2444
- $img_url = $provider['img_url'];
2445
-
2446
- $img_slug = sanitize_title($provider_name);
2447
- $img = wc_advanced_shipment_tracking()->get_plugin_path().'/assets/shipment-provider-img/'.$img_slug.'.png';
2448
-
2449
- $ch = curl_init();
2450
-
2451
- curl_setopt($ch, CURLOPT_HEADER, 0);
2452
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
2453
- curl_setopt($ch, CURLOPT_URL, $img_url);
2454
-
2455
- $data = curl_exec($ch);
2456
- curl_close($ch);
2457
-
2458
- file_put_contents($img, $data);
2459
-
2460
-
2461
- $data_array = array(
2462
- 'shipping_country' => sanitize_text_field($shipping_country),
2463
- 'provider_name' => sanitize_text_field($provider_name),
2464
- 'ts_slug' => $ts_slug,
2465
- 'provider_url' => sanitize_text_field($provider_url),
2466
- 'display_in_order' => 0,
2467
- 'shipping_default' => 1,
2468
- );
2469
- $result = $wpdb->insert( $this->table, $data_array );
2470
- $added_data[$added] = array('provider_name' => $provider_name);
2471
- $added++;
2472
- }
2473
- }
2474
- foreach($default_shippment_providers as $db_provider){
2475
- if(!isset($providers_name[$db_provider->provider_name])){
2476
- $where = array(
2477
- 'provider_name' => $db_provider->provider_name,
2478
- 'shipping_default' => 1
2479
- );
2480
- $wpdb->delete( $this->table, $where );
2481
- $deleted_data[$deleted] = array('provider_name' => $db_provider->provider_name);
2482
- $deleted++;
2483
- }
2484
- }
2485
- if($added > 0){
2486
- ob_start();
2487
- $added_html = $this->added_html($added_data);
2488
- $added_html = ob_get_clean();
2489
- }
2490
- if($updated > 0){
2491
- ob_start();
2492
- $updated_html = $this->updated_html($updated_data);
2493
- $updated_html = ob_get_clean();
2494
- }
2495
- if($deleted > 0){
2496
- ob_start();
2497
- $deleted_html = $this->deleted_html($deleted_data);
2498
- $deleted_html = ob_get_clean();
2499
- }
2500
-
2501
- $status = 'active';
2502
- $default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table WHERE display_in_order = 1" );
2503
- ob_start();
2504
- $html = $this->get_provider_html($default_shippment_providers,$status);
2505
- $html = ob_get_clean();
2506
- echo json_encode( array('added' => $added,'added_html' =>$added_html,'updated' => $updated,'updated_html' =>$updated_html,'deleted' => $deleted,'deleted_html' =>$deleted_html,'html' => $html) );exit;
2507
- } else{
2508
- echo json_encode( array('sync_error' => 1, 'message' => __( 'There are some issue with sync, Please Retry.', 'woo-advanced-shipment-tracking')) );exit;
2509
- }
2510
- }
2511
-
2512
- /**
2513
- * Output html of added provider from sync providers
2514
- */
2515
- public function added_html($added_data){ ?>
2516
- <ul class="updated_details" id="added_providers">
2517
- <?php
2518
- foreach ( $added_data as $added ){ ?>
2519
- <li><?php echo $added['provider_name']; ?></li>
2520
- <?php }
2521
- ?>
2522
- </ul>
2523
- <a class="view_synch_details" id="view_added_details" href="javaScript:void(0);" style="display: block;"><?php _e( 'view details', 'woo-advanced-shipment-tracking'); ?></a>
2524
- <a class="view_synch_details" id="hide_added_details" href="javaScript:void(0);" style="display: none;"><?php _e( 'hide details', 'woo-advanced-shipment-tracking'); ?></a>
2525
- <?php }
2526
-
2527
- /**
2528
- * Output html of updated provider from sync providers
2529
- */
2530
- public function updated_html($updated_data){ ?>
2531
- <ul class="updated_details" id="updated_providers">
2532
- <?php
2533
- foreach ( $updated_data as $updated ){ ?>
2534
- <li><?php echo $updated['provider_name']; ?></li>
2535
- <?php }
2536
- ?>
2537
- </ul>
2538
- <a class="view_synch_details" id="view_updated_details" href="javaScript:void(0);" style="display: block;"><?php _e( 'view details', 'woo-advanced-shipment-tracking'); ?></a>
2539
- <a class="view_synch_details" id="hide_updated_details" href="javaScript:void(0);" style="display: none;"><?php _e( 'hide details', 'woo-advanced-shipment-tracking'); ?></a>
2540
- <?php }
2541
-
2542
- /**
2543
- * Output html of deleted provider from sync providers
2544
- */
2545
- public function deleted_html($deleted_data){ ?>
2546
- <ul class="updated_details" id="deleted_providers">
2547
- <?php
2548
- foreach ( $deleted_data as $deleted ){ ?>
2549
- <li><?php echo $deleted['provider_name']; ?></li>
2550
- <?php }
2551
- ?>
2552
- </ul>
2553
- <a class="view_synch_details" id="view_deleted_details" href="javaScript:void(0);" style="display: block;"><?php _e( 'view details', 'woo-advanced-shipment-tracking'); ?></a>
2554
- <a class="view_synch_details" id="hide_deleted_details" href="javaScript:void(0);" style="display: none;"><?php _e( 'hide details', 'woo-advanced-shipment-tracking'); ?></a>
2555
- <?php }
2556
-
2557
  /**
2558
  * Add bulk filter for Shipment status in orders list
2559
  *
@@ -2591,7 +2366,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
2591
  </select>
2592
  <?php
2593
  }
2594
- }
2595
 
2596
  /**
2597
  * Get the order count for orders by shipment status
@@ -2668,257 +2443,39 @@ class WC_Advanced_Shipment_Tracking_Admin {
2668
 
2669
  return $vars;
2670
  }
2671
- /**
2672
- * Add a new dashboard widget.
2673
- */
2674
- public function ast_add_dashboard_widgets() {
2675
- wp_add_dashboard_widget( 'trackship_dashboard_widget', 'Tracking Analytics <small>(last 30 days)</small>', array( $this, 'dashboard_widget_function') );
2676
- }
2677
- /**
2678
- * Output the contents of the dashboard widget
2679
- */
2680
- public function dashboard_widget_function( $post, $callback_args ) {
2681
-
2682
- wp_enqueue_script( 'amcharts');
2683
- wp_enqueue_script( 'amcharts-light-theme');
2684
-
2685
- // Get orders completed.
2686
- $args = array(
2687
- //'status' => 'wc-completed',
2688
- 'limit' => -1,
2689
- 'date_created' => '>' . ( time() - 2592000 ),
2690
- );
2691
- $orders = wc_get_orders( $args );
2692
- $shipment_trackers = 0;
2693
- $shipment_status_merge = array();
2694
- $tracking_item_merge = array();
2695
- foreach($orders as $order){
2696
- $order_id = $order->get_id();
2697
-
2698
- $ast = new WC_Advanced_Shipment_Tracking_Actions;
2699
- $tracking_items = $ast->get_tracking_items( $order_id, true );
2700
-
2701
- if($tracking_items){
2702
- $shipment_status = get_post_meta( $order_id, "shipment_status", true);
2703
- $shipment_status_merge = array_merge($shipment_status_merge, $shipment_status);
2704
- foreach ( $tracking_items as $key => $tracking_item ) {
2705
- if( isset($shipment_status[$key]) ){
2706
-
2707
- $tracking_item_merge[] = $tracking_item;
2708
- $shipment_trackers++;
2709
- }
2710
- }
2711
- }
2712
- }
2713
-
2714
- $shipment_status_arr = array();
2715
-
2716
- foreach ($shipment_status_merge as $key => $item) {
2717
- $shipment_status_arr[$item['status']][$key] = $item;
2718
- }
2719
-
2720
- $tracking_provider_arr = array();
2721
-
2722
- foreach ($tracking_item_merge as $key => $item) {
2723
- $tracking_provider_arr[$item['formatted_tracking_provider']][$key] = $item;
2724
- }
2725
-
2726
- $tracking_issue_array = array();
2727
- foreach($shipment_status_arr as $status => $val){
2728
- if($status == 'carrier_unsupported' || $status == 'INVALID_TRACKING_NUM' || $status == 'unknown' || $status == 'wrong_shipping_provider'){
2729
- $tracking_issue_array[$status] = $val;
2730
- }
2731
- }
2732
-
2733
- ksort($shipment_status_arr, SORT_NUMERIC);
2734
- ksort($tracking_provider_arr, SORT_NUMERIC);
2735
-
2736
-
2737
-
2738
- ?>
2739
- <script type="text/javascript">
2740
- AmCharts.makeChart("ast_dashboard_status_chart",
2741
- {
2742
- "type": "serial",
2743
- "categoryField": "shipment_status",
2744
- "startDuration": 1,
2745
- "handDrawScatter": 4,
2746
- "theme": "light",
2747
- "categoryAxis": {
2748
- "autoRotateAngle": 0,
2749
- "autoRotateCount": 0,
2750
- "autoWrap": true,
2751
- "gridPosition": "start",
2752
- "minHorizontalGap": 10,
2753
- "offset": 1
2754
- },
2755
- "trendLines": [],
2756
- "graphs": [
2757
- {
2758
- "balloonText": " [[shipment_status]] : [[value]]",
2759
- "bulletBorderThickness": 7,
2760
- "colorField": "color",
2761
- "fillAlphas": 1,
2762
- "id": "AmGraph-1",
2763
- "lineColorField": "color",
2764
- "title": "graph 1",
2765
- "type": "column",
2766
- "valueField": "count"
2767
- }
2768
- ],
2769
- "guides": [],
2770
- "valueAxes": [
2771
- {
2772
- "id": "ValueAxis-1",
2773
- "title": ""
2774
- }
2775
- ],
2776
- "allLabels": [],
2777
- "balloon": {},
2778
- "titles": [
2779
- {
2780
- "id": "Title-1",
2781
- "size": 15,
2782
- "text": ""
2783
- }
2784
- ],
2785
- "dataProvider": [
2786
- <?php
2787
- foreach($shipment_status_arr as $status => $array){ ?>
2788
- {
2789
- "shipment_status": "<?php echo apply_filters("trackship_status_filter",$status); ?>",
2790
- "count": <?php echo count($array); ?>,
2791
- "color": "#BBE285",
2792
- },
2793
- <?php
2794
- } ?>
2795
- ]
2796
- }
2797
- );
2798
- </script>
2799
- <script type="text/javascript">
2800
- AmCharts.makeChart("ast_dashboard_providers_chart",
2801
- {
2802
- "type": "serial",
2803
- "categoryField": "shipment_provider",
2804
- "startDuration": 1,
2805
- "handDrawScatter": 4,
2806
- "theme": "light",
2807
- "categoryAxis": {
2808
- "autoRotateAngle": 0,
2809
- "autoRotateCount": 0,
2810
- "autoWrap": true,
2811
- "gridPosition": "start",
2812
- "minHorizontalGap": 10,
2813
- "offset": 1
2814
- },
2815
- "trendLines": [],
2816
- "graphs": [
2817
- {
2818
- "balloonText": " [[shipment_provider]] : [[value]]",
2819
- "bulletBorderThickness": 7,
2820
- "colorField": "color",
2821
- "fillAlphas": 1,
2822
- "id": "AmGraph-1",
2823
- "lineColorField": "color",
2824
- "title": "graph 1",
2825
- "type": "column",
2826
- "valueField": "count"
2827
- }
2828
- ],
2829
- "guides": [],
2830
- "valueAxes": [
2831
- {
2832
- "id": "ValueAxis-1",
2833
- "title": ""
2834
- }
2835
- ],
2836
- "allLabels": [],
2837
- "balloon": {},
2838
- "titles": [
2839
- {
2840
- "id": "Title-1",
2841
- "size": 15,
2842
- "text": ""
2843
- }
2844
- ],
2845
- "dataProvider": [
2846
- <?php
2847
- foreach($tracking_provider_arr as $provider => $array){ ?>
2848
- {
2849
- "shipment_provider": "<?php echo $provider; ?>",
2850
- "count": <?php echo count($array); ?>,
2851
- "color": "#BBE285",
2852
- },
2853
- <?php
2854
- } ?>
2855
- ]
2856
- }
2857
- );
2858
- </script>
2859
- <div class="ast-dashborad-widget">
2860
-
2861
- <input id="tab_s_providers" type="radio" name="tabs" class="widget_tab_input" checked>
2862
- <label for="tab_s_providers" class="widget_tab_label first_label"><?php _e('Shipment Providers', 'woo-advanced-shipment-tracking'); ?></label>
2863
-
2864
- <input id="tab_s_status" type="radio" name="tabs" class="widget_tab_input">
2865
- <label for="tab_s_status" class="widget_tab_label"><?php _e('Shipment Status', 'woo-advanced-shipment-tracking'); ?></label>
2866
-
2867
- <input id="tab_t_issues" type="radio" name="tabs" class="widget_tab_input">
2868
- <label for="tab_t_issues" class="widget_tab_label"><?php _e('Tracking issues', 'woo-advanced-shipment-tracking'); ?></label>
2869
-
2870
- <section id="content_s_providers" class="widget_tab_section">
2871
- <?php if($tracking_provider_arr){ ?>
2872
- <div id="ast_dashboard_providers_chart" class="" style="width: 100%;height: 300px;"></div>
2873
- <?php } else{ ?>
2874
- <p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
2875
- <?php } ?>
2876
- </section>
2877
-
2878
- <section id="content_s_status" class="widget_tab_section">
2879
- <?php if($shipment_status_arr){ ?>
2880
- <div id="ast_dashboard_status_chart" class="" style="width: 100%;height: 300px;"></div>
2881
- <?php } else{ ?>
2882
- <p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
2883
- <?php } ?>
2884
- </section>
2885
-
2886
- <section id="content_t_issues" class="widget_tab_section">
2887
- <?php if($tracking_issue_array){ ?>
2888
- <table class="table widefat fixed striped" style="border: 0;border-bottom: 1px solid #e5e5e5;">
2889
- <tbody>
2890
- <?php foreach($tracking_issue_array as $status => $array){ ?>
2891
- <tr>
2892
- <td><a href="<?php echo get_site_url(); ?>/wp-admin/edit.php?s&post_status=all&post_type=shop_order&_shop_order_shipment_status=<?php echo $status; ?>"><?php echo apply_filters("trackship_status_filter",$status); ?></a></td>
2893
- <td><?php echo count($array); ?></td>
2894
- </tr>
2895
- <?php } ?>
2896
- </tbody>
2897
- </table>
2898
- <?php } else{ ?>
2899
- <p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
2900
- <?php } ?>
2901
- </section>
2902
-
2903
- </div>
2904
- <div class="widget_footer">
2905
- <a class="" href="https://my.trackship.info/analytics/" target="blank"><?php _e( 'View more on TrackShip','woo-advanced-shipment-tracking' ); ?></a>
2906
- </div>
2907
- <?php }
2908
-
2909
- /**
2910
- * Update Delivered order email enable/disable in customizer
2911
- */
2912
- public function save_delivered_email($data){
2913
- $woocommerce_customer_delivered_order_enabled = (isset($_POST["woocommerce_customer_delivered_order_enabled"])?$_REQUEST["woocommerce_customer_delivered_order_enabled"]:"");
2914
- update_option( 'customizer_delivered_order_settings_enabled',$woocommerce_customer_delivered_order_enabled);
2915
- }
2916
 
2917
  /**
2918
- * Update Partial Shipped order email enable/disable in customizer
2919
- */
2920
- public function save_partial_shipped_email($data){
2921
- $woocommerce_customer_partial_shipped_order_enabled = (isset($_POST["woocommerce_customer_partial_shipped_order_enabled"])?$_REQUEST["woocommerce_customer_partial_shipped_order_enabled"]:"");
2922
- update_option( 'customizer_partial_shipped_order_settings_enabled',$woocommerce_customer_partial_shipped_order_enabled);
2923
- }
2924
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
  class WC_Advanced_Shipment_Tracking_Admin {
7
 
8
+ var $item_code = 'ast_per_product';
9
+ var $store_url = 'https://www.zorem.com/';
10
+ var $license_status;
11
+ var $license_key;
12
+ var $license_email;
13
+ var $zorem_pluginlist;
14
+
15
  /**
16
  * Initialize the main plugin function
17
  */
18
  public function __construct() {
19
+
20
+ $this->license_status = 'ast_product_license_status';
21
+ $this->license_key = 'ast_product_license_key';
22
+ $this->license_email = 'ast_product_license_email';
23
+
24
  global $wpdb;
25
  if( is_multisite() ){
26
  if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
66
 
67
  //database check
68
  add_action( 'init', array( $this, 'database_table_check') );
69
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  //cron_schedules
71
+ add_filter( 'cron_schedules', array( $this, 'add_cron_interval') );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
  $api_enabled = get_option( "wc_ast_api_enabled", 0);
74
  if( $api_enabled == true ){
89
  // Bulk shipment status sync for empty balance ajax call from settings
90
  add_action( 'wp_ajax_bulk_shipment_status_for_empty_balance_from_settings', array( $this, 'bulk_shipment_status_for_empty_balance_from_settings_fun' ) );
91
 
92
+ // Bulk shipment status sync for please do connection status ajax call from settings
93
+ add_action( 'wp_ajax_bulk_shipment_status_for_do_connection_from_settings', array( $this, 'bulk_shipment_status_for_do_connection_from_settings_fun' ) );
94
+
95
  // The results notice from bulk action on orders
96
  add_action( 'admin_notices', array( $this, 'shipment_status_bulk_action_admin_notice' ) );
97
 
101
 
102
  // add bulk order filter for exported / non-exported orders
103
  add_action( 'restrict_manage_posts', array( $this, 'filter_orders_by_shipment_status') , 20 );
104
+ add_filter( 'request', array( $this, 'filter_orders_by_shipment_status_query' ) );
105
 
106
+ // add bulk order tracking number filter for exported / non-exported orders
107
+ add_filter( 'woocommerce_shop_order_search_fields', array( $this, 'filter_orders_by_tracking_number_query' ) );
108
  }
109
 
110
  // trigger when order status changed to shipped or completed
119
 
120
  add_action( 'wp_ajax_update_delivered_order_email_status', array( $this, 'update_delivered_order_email_status_fun') );
121
 
122
+ add_action( 'wp_ajax_update_shipment_status_email_status', array( $this, 'update_shipment_status_email_status_fun') );
123
+
124
+ add_action( 'wp_ajax_update_enable_late_shipments_email', array( $this, 'update_enable_late_shipments_email_fun') );
125
 
126
+ add_action( 'admin_footer', array( $this, 'footer_function'),1 );
127
 
128
  // filter for shipment status
129
  add_filter("trackship_status_filter", array($this, "trackship_status_filter_func"), 10 , 1);
155
 
156
  add_action( 'wp_ajax_update_default_provider', array( $this, 'update_default_provider_fun') );
157
 
158
+ add_action( 'wp_ajax_update_shipment_status', array( $this, 'update_shipment_status_fun') );
 
 
 
 
 
159
 
160
+ if ( is_plugin_active( 'ast-tracking-per-order-items/ast-tracking-per-order-items.php' ) ) {
161
+ if( !$this->licence_valid() )add_action( 'admin_notices', array( $this, 'ast_product_licence_notice') );
162
+ }
163
  }
164
 
165
  /*
180
  require_once ABSPATH . '/wp-admin/includes/upgrade.php';
181
  }
182
  maybe_create_table( $table_name, $sql );
183
+ }
184
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
 
186
  /*
187
  * add_cron_interval
236
  }
237
  //$orders = wc_get_orders( $args );print_r($orders);exit;
238
  return $orders = wc_get_orders( $args );
239
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
 
241
  /*
242
  * add in batch process
258
  global $wpdb;
259
  $table_name = $wpdb->prefix.'shipment_batch_process';
260
  $wpdb->delete( $table_name, array( 'id' => $batch_process_id ) );
261
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
 
263
  /*
264
  * shipment api call
300
 
301
  foreach ( $columns as $column_name => $column_info ) {
302
 
303
+ $new_columns[ $column_name ] = $column_info;
 
 
 
 
 
304
 
305
+ if ( 'woocommerce-advanced-shipment-tracking' === $column_name ) {
 
306
  $new_columns['shipment_status'] = __( 'Shipment status', 'woo-advanced-shipment-tracking' );
307
  }
308
  }
342
 
343
  $ast = new WC_Advanced_Shipment_Tracking_Actions;
344
  $tracking_items = $ast->get_tracking_items( $post->ID );
345
+ $shipment_status = get_post_meta( $post->ID, "shipment_status", true);
346
+ $wp_date_format = get_option( 'date_format' );
347
+ if($wp_date_format == 'd/m/Y'){
348
+ $date_format = 'd/m';
349
+ } else{
350
+ $date_format = 'm/d';
351
+ }
352
  if ( count( $tracking_items ) > 0 ) {
353
  ?>
354
  <ul class="wcast-shipment-status-list">
360
  $status = $shipment_status[$key]['status'];
361
  $status_date = $shipment_status[$key]['status_date'];
362
  if(isset($shipment_status[$key]['est_delivery_date'])){
363
+ $est_delivery_date = $shipment_status[$key]['est_delivery_date'];
364
  }
365
  if( $status != 'delivered' && $status != 'return_to_sender' && !empty($est_delivery_date) ){
366
  $has_est_delivery = true;
367
+ }
368
  ?>
369
  <li id="tracking-item-<?php echo $tracking_item['tracking_id'];?>" class="tracking-item-<?php echo $tracking_item['tracking_id'];?>">
370
  <div class="wcast-shipment-status-icon">
372
  </div>
373
  <div class="ast-shipment-status shipment-<?php echo sanitize_title($status)?> has_est_delivery_<?php echo ( $has_est_delivery ? 1 : 0 )?>">
374
  <span class="ast-shipment-tracking-status"><?php echo apply_filters("trackship_status_filter",$status);?></span>
375
+ <span class="showif_has_est_delivery_1 ft11">(<?php echo date( $date_format, strtotime($status_date))?>)</span>
376
+ <span class="showif_has_est_delivery_0 ft11">on <?php echo date( $date_format, strtotime($status_date))?></span>
377
  <?php if( $has_est_delivery){?>
378
+ <span class="wcast-shipment-est-delivery ft11">Est. Delivery(<?php echo date( $date_format, strtotime($est_delivery_date)); ?>)</span>
379
  <?php } ?>
380
  </div>
381
  </li>
415
 
416
  wp_enqueue_style( 'shipment_tracking_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
417
 
418
+ wp_enqueue_style( 'front_style', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/front.css', array(), wc_advanced_shipment_tracking()->version );
419
+
420
  wp_enqueue_script( 'woocommerce-advanced-shipment-tracking-js', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/admin.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version);
421
 
422
  wp_localize_script( 'woocommerce-advanced-shipment-tracking-js', 'ast_admin_js', array(
451
 
452
  wp_enqueue_script( 'advanced_shipment_tracking_settings', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/settings.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
453
 
454
+ wp_enqueue_script( 'front-js', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/front.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
455
+
456
  wp_register_script( 'shipment_tracking_table_rows', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/shipping_row.js' , array( 'jquery', 'wp-util' ), wc_advanced_shipment_tracking()->version );
457
  wp_localize_script( 'shipment_tracking_table_rows', 'shipment_tracking_table_rows', array(
458
  'i18n' => array(
472
  * WC sub menu
473
  */
474
  public function register_woocommerce_menu() {
475
+ add_submenu_page( 'woocommerce', 'Shipment Tracking', 'Shipment Tracking', 'manage_woocommerce', 'woocommerce-advanced-shipment-tracking', array( $this, 'woocommerce_advanced_shipment_tracking_page_callback' ) );
476
  }
477
 
478
  /*
533
  <input id="tab4" type="radio" name="tabs" class="tab_input" data-tab="bulk-upload" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'bulk-upload'){ echo 'checked'; } ?>>
534
  <label for="tab4" class="tab_label"><?php _e('Bulk Upload', 'woo-advanced-shipment-tracking'); ?></label>
535
 
536
+ <input id="tab3" type="radio" name="tabs" class="tab_input" data-tab="trackship" <?php if(isset($_GET['tab']) && ($_GET['tab'] == 'trackship' || $_GET['tab'] == 'tracking-page' || $_GET['tab'] == 'notifications' || $_GET['tab'] == 'trackship-dashboard' || $_GET['tab'] == 'tools')){ echo 'checked'; } ?>>
537
  <label for="tab3" class="tab_label">TrackShip</label>
538
 
539
+ <input id="tab6" type="radio" name="tabs" class="tab_input" data-tab="addons" <?php if(isset($_GET['tab']) && ($_GET['tab'] == 'addons')){ echo 'checked'; } ?>>
540
+ <label for="tab6" class="tab_label"><?php _e('Add-ons', 'woo-advanced-shipment-tracking'); ?></label>
 
 
 
 
 
541
 
542
  <div class="nav_doc_section">
543
  <a target="blank" class="doc_link" href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a>
547
  <?php require_once( 'views/admin_options_shipping_provider.php' );?>
548
  <?php require_once( 'views/admin_options_settings.php' );?>
549
  <?php require_once( 'views/admin_options_trackship_integration.php' );?>
550
+ <?php require_once( 'views/admin_options_bulk_upload.php' );?>
551
+ <?php require_once( 'views/admin_options_addons.php' );?>
552
+
553
  </div>
554
  </div>
555
  <div id="demo-toast-example" class="mdl-js-snackbar mdl-snackbar">
562
  <iframe id="how_to_video" src="https://www.youtube.com/embed/Mw7laecPtyw" frameborder="0" allowfullscreen></iframe>
563
  </div>
564
  </div>
565
+ <div class="popupclose"></div>
566
+ </div>
567
+
568
+ <div id="" class="popupwrapper ts_video_popup" style="display:none;">
569
+ <div class="popuprow">
570
+ <div class="videoWrapper">
571
+ <iframe id="ts_video" src="https://www.youtube.com/embed/PhnqDorKN_c" frameborder="0" allowfullscreen></iframe>
572
+ </div>
573
+ </div>
574
+ <div class="popupclose"></div>
575
+ </div>
576
+ <div id="" class="popupwrapper tracking_item_video_popup" style="display:none;">
577
+ <div class="popuprow">
578
+ <div class="videoWrapper">
579
+ <iframe id="trackin_per_item_video" src="https://www.youtube.com/embed/L8uWc2sY_Go" frameborder="0" allowfullscreen></iframe>
580
+ </div>
581
+ </div>
582
+ <div class="popupclose"></div>
583
+ </div>
584
  <?php
585
  if(isset( $_GET['tab'] ) && $_GET['tab'] == 'trackship'){ ?>
586
  <script>
668
  } else{
669
  $checked="";
670
  }?>
671
+ <span class=" multiple_checkbox">
672
+ <label class="" for="<?php echo $key?>">
673
  <input type="hidden" name="<?php echo $id?>[<?php echo $key?>]" value="0"/>
674
+ <input type="checkbox" id="<?php echo $key?>" name="<?php echo $id?>[<?php echo $key?>]" class="" <?php echo $checked; ?> value="1"/>
675
  <span class="multiple_label"><?php echo $val['status']; ?></span>
676
  </br>
677
  </label>
678
  </span>
679
+ <?php }
680
+ }
681
+ foreach((array)$array['options'] as $key => $val ){
682
  if($val['type'] == 'custom'){
683
  $multi_checkbox_data = get_option($id);
684
  if(isset($multi_checkbox_data[$key]) && $multi_checkbox_data[$key] == 1){
687
  $checked="";
688
  }
689
  if($op == 1){ ?>
690
+ <div style="margin: 10px 0;">
691
  <strong style="font-weight: 700;padding-bottom: 3px;">
692
  <?php _e( 'Custom Statuses', 'woo-advanced-shipment-tracking' ); ?>
693
  </strong>
694
  </div>
695
  <?php } ?>
696
+ <span class="multiple_checkbox">
697
+ <label class="" for="<?php echo $key?>">
698
  <input type="hidden" name="<?php echo $id?>[<?php echo $key?>]" value="0"/>
699
+ <input type="checkbox" id="<?php echo $key?>" name="<?php echo $id?>[<?php echo $key?>]" class="" <?php echo $checked; ?> value="1"/>
700
  <span class="multiple_label"><?php echo $val['status']; ?></span>
701
  </br>
702
  </label>
703
  </span>
704
  <?php $op++; }
705
+ }
706
+ ?>
707
 
708
  <?php } elseif( isset( $array['type'] ) && $array['type'] == 'dropdown' ){?>
709
  <?php
733
  <?php } elseif( $array['type'] == 'title' ){?>
734
  <?php }
735
  elseif( $array['type'] == 'key_field' ){ ?>
736
+ <fieldset>
 
737
  <?php if($array['connected'] == true){ ?>
738
  <a href="https://my.trackship.info/" target="_blank">
739
  <span class="api_connected"><label><?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></label><span class="dashicons dashicons-yes"></span></span></a>
831
  } else{
832
  $disable_bulk_sync_zero_balance = true;
833
  }
834
+
835
+ $completed_order_with_do_connection = 0;
836
+
837
+ foreach($orders as $order){
838
+ $order_id = $order->get_id();
839
+
840
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
841
+ $tracking_items = $ast->get_tracking_items( $order_id, true );
842
+ if($tracking_items){
843
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
844
+ foreach ( $tracking_items as $key => $tracking_item ) {
845
+ if(isset($shipment_status[$key]['status']) && $shipment_status[$key]['status'] == 'Please do connection'){
846
+ $completed_order_with_do_connection++;
847
+ }
848
+ }
849
+ }
850
+ }
851
+
852
+ if($completed_order_with_do_connection > 0){
853
+ $disable_bulk_sync_do_connection = false;
854
+ $show_bulk_sync_do_connection = true;
855
+ } else{
856
+ $disable_bulk_sync_do_connection = true;
857
+ $show_bulk_sync_do_connection = false;
858
+ }
859
 
860
  $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
861
 
884
  'button_class' => 'bulk_shipment_status_button_for_empty_balance',
885
  'class' => '',
886
  ),
887
+ 'wc_ast_bulk_shipment_status_for_please_do_connection' => array(
888
+ 'type' => 'button',
889
+ 'title' => sprintf(__('%s %s orders with “Please do connection”', 'woo-advanced-shipment-tracking'), $completed_order_with_do_connection , $completed_order_label),
890
+ 'label' => __( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ),
891
+ 'show' => $show_bulk_sync_do_connection,
892
+ 'disable' => $disable_bulk_sync_do_connection,
893
+ 'button_class' => 'bulk_shipment_status_button_for_do_connection',
894
+ 'class' => '',
895
+ ),
896
  );
897
  return $form_data;
898
  }
962
  $slug = $post->post_name;
963
 
964
  if($slug != 'ts-shipment-tracking'){
965
+ $page_desc = __( 'You must add the shortcode [wcast-track-order] to the selected page in order for the tracking page to work.', 'woo-advanced-shipment-tracking' );
966
  } else{
967
  $page_desc = '';
968
  }
982
  'show' => $show_trackship_field,
983
  'class' => '',
984
  ),
985
+ 'wc_ast_select_tracking_page_layout' => array(
986
+ 'type' => 'radio',
987
+ 'title' => __( 'Tracking Page Layout', 'woo-advanced-shipment-tracking' ),
988
+ 'show' => $show_trackship_field,
989
+ 'options' => array(
990
+ "" =>__( 'Select', 'woocommerce' ),
991
+ "t_layout_1" =>__( 'Layout 1', '' ),
992
+ "t_layout_2" =>__( 'Layout 2', '' ),
993
+ ),
994
+ 'class' => '',
995
+ ),
996
  'wc_ast_select_primary_color' => array(
997
  'type' => 'color',
998
  'title' => __( 'Select primary color for tracking page', 'woo-advanced-shipment-tracking' ),
1004
  'title' => __( 'Select content border color for tracking page', 'woo-advanced-shipment-tracking' ),
1005
  'class' => 'color_field',
1006
  'show' => $show_trackship_field,
1007
+ ),
1008
+ 'wc_ast_hide_tracking_provider_image' => array(
1009
+ 'type' => 'checkbox',
1010
+ 'title' => __( 'Hide Shipping Provider Image', 'woo-advanced-shipment-tracking' ),
1011
+ 'show' => $show_trackship_field,
1012
+ 'class' => '',
1013
+ ),
1014
  'wc_ast_hide_tracking_events' => array(
1015
  'type' => 'checkbox',
1016
  'title' => __( 'Hide tracking events details', 'woo-advanced-shipment-tracking' ),
1027
  return $form_data;
1028
 
1029
  }
1030
+
1031
+ /*
1032
+ * get ast per product addons licence data
1033
+ * return array
1034
+ */
1035
+ function get_ast_product_license_data(){
1036
+ $form_data = array(
1037
+ 'ast_product_license_key' => array(
1038
+ 'type' => 'text',
1039
+ 'title' => __( 'License Key', 'woo-advanced-shipment-tracking' ),
1040
+ 'show' => true,
1041
+ 'tooltip' => __( 'a Valid license is required to receive updates and support', 'woo-advanced-shipment-tracking' ),
1042
+ 'class' => '',
1043
+ ),
1044
+ );
1045
+ return $form_data;
1046
+ }
1047
 
1048
  /*
1049
  * settings form save
1064
  echo json_encode( array('success' => 'true') );die();
1065
 
1066
  }
1067
+ }
1068
+
1069
+ /*
1070
+ * return licence valid
1071
+ * return licence status
1072
+ * return licence key
1073
+ * return licence email
1074
+ */
1075
+ public function licence_valid() {
1076
+ return get_option( $this->license_status, false);
1077
+ }
1078
+ public function get_license_status() {
1079
+ return get_option( $this->license_status, false);
1080
+ }
1081
+ public function get_license_key() {
1082
+ return get_option( $this->license_key, false);
1083
+ }
1084
+ public function get_license_email() {
1085
+ return get_option( $this->license_email, false);
1086
+ }
1087
+
1088
+ /*
1089
+ * License notice
1090
+ */
1091
+ function ast_product_licence_notice() {
1092
+ $class = 'notice notice-error';
1093
+ $message = __( 'Opps! your <strong>Tracking Per Item Add-on for AST</strong> licence key is not activated. To buy license <a href="'.admin_url( '/admin.php?page=woocommerce-advanced-shipment-tracking&tab=addons' ).'">click here</a> to activate it.', 'woo-advanced-shipment-tracking' );
1094
+
1095
+ printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), $message );
1096
  }
1097
 
1098
  /*
1140
  'wc-on-hold' => 'On hold',
1141
  'wc-completed' => 'Completed',
1142
  'wc-delivered' => 'Delivered',
1143
+ //'wc-partial-shipped' => 'Partially Shipped',
1144
  'wc-cancelled' => 'Cancelled',
1145
  'wc-refunded' => 'Refunded',
1146
  'wc-failed' => 'Failed'
1237
  $form_data = array(
1238
  'wc_ast_status_delivered' => array(
1239
  'type' => 'checkbox',
1240
+ 'title' => __( 'Enable custom order status “Delivered"', '' ),
 
1241
  'show' => true,
1242
  'class' => '',
1243
  ),
1244
  'wc_ast_status_label_color' => array(
1245
  'type' => 'color',
1246
+ 'title' => __( 'Delivered Label color', '' ),
1247
  'class' => 'status_label_color_th',
1248
  'show' => true,
1249
  ),
1250
  'wc_ast_status_label_font_color' => array(
1251
  'type' => 'dropdown',
1252
+ 'title' => __( 'Delivered Label font color', '' ),
1253
  'options' => array(
1254
  "" =>__( 'Select', 'woocommerce' ),
1255
+ "#fff" =>__( 'Light', '' ),
1256
+ "#000" =>__( 'Dark', '' ),
1257
  ),
1258
  'class' => 'status_label_color_th',
1259
  'show' => true,
1260
  ),
1261
  'wcast_enable_delivered_email' => array(
1262
  'type' => 'checkbox',
1263
+ 'title' => __( 'Enable the Delivered order status email', '' ),
1264
  'title_link'=> "<a class='settings_edit' href='".wcast_initialise_customizer_email::get_customizer_url('customer_delivered_email')."'>".__( 'Edit', 'woocommerce' )."</a>",
1265
  'class' => 'status_label_color_th',
1266
  'show' => true,
1269
  return $form_data;
1270
 
1271
  }
1272
+
1273
+ /*
1274
+ * get updated tracking status settings array data
1275
+ * return array
1276
+ */
1277
+ function get_updated_tracking_data(){
1278
+ $form_data = array(
1279
+ 'wc_ast_status_updated_tracking' => array(
1280
+ 'type' => 'checkbox',
1281
+ 'title' => __( 'Enable custom order status “Updated Tracking"', '' ),
1282
+ 'show' => true,
1283
+ 'class' => '',
1284
+ ),
1285
+ 'wc_ast_status_updated_tracking_label_color' => array(
1286
+ 'type' => 'color',
1287
+ 'title' => __( 'Updated Tracking Label color', '' ),
1288
+ 'class' => 'updated_tracking_status_label_color_th',
1289
+ 'show' => true,
1290
+ ),
1291
+ 'wc_ast_status_updated_tracking_label_font_color' => array(
1292
+ 'type' => 'dropdown',
1293
+ 'title' => __( 'Updated Tracking Label font color', '' ),
1294
+ 'options' => array(
1295
+ "" =>__( 'Select', 'woocommerce' ),
1296
+ "#fff" =>__( 'Light', '' ),
1297
+ "#000" =>__( 'Dark', '' ),
1298
+ ),
1299
+ 'class' => 'updated_tracking_status_label_color_th',
1300
+ 'show' => true,
1301
+ ),
1302
+ 'wcast_enable_updated_tracking_email' => array(
1303
+ 'type' => 'checkbox',
1304
+ 'title' => __( 'Enable the Updated Tracking order status email', '' ),
1305
+ 'title_link'=> "<a class='settings_edit' href='".wcast_initialise_customizer_email::get_customizer_url('customer_updated_tracking_email')."'>".__( 'Edit', 'woocommerce' )."</a>",
1306
+ 'class' => 'updated_tracking_status_label_color_th',
1307
+ 'show' => true,
1308
+ ),
1309
+ );
1310
+ return $form_data;
1311
+
1312
+ }
1313
 
1314
  /*
1315
+ * get Partially Shipped array data
1316
  * return array
1317
  */
1318
  function get_partial_shipped_data(){
1319
  $form_data = array(
1320
  'wc_ast_status_partial_shipped' => array(
1321
  'type' => 'checkbox',
1322
+ 'title' => __( 'Enable custom order status “Partially Shipped"', '' ),
 
1323
  'show' => true,
1324
  'class' => '',
1325
  ),
1326
  'wc_ast_status_partial_shipped_label_color' => array(
1327
  'type' => 'color',
1328
+ 'title' => __( 'Partially Shipped Label color', '' ),
1329
  'class' => 'partial_shipped_status_label_color_th',
1330
  'show' => true,
1331
  ),
1332
  'wc_ast_status_partial_shipped_label_font_color' => array(
1333
  'type' => 'dropdown',
1334
+ 'title' => __( 'Partially Shipped Label font color', '' ),
1335
  'options' => array(
1336
  "" =>__( 'Select', 'woocommerce' ),
1337
+ "#fff" =>__( 'Light', '' ),
1338
+ "#000" =>__( 'Dark', '' ),
1339
  ),
1340
  'class' => 'partial_shipped_status_label_color_th',
1341
  'show' => true,
1342
  ),
1343
  'wcast_enable_partial_shipped_email' => array(
1344
  'type' => 'checkbox',
1345
+ 'title' => __( 'Enable the Partially Shipped order status email', '' ),
1346
  'title_link'=> "<a class='settings_edit' href='".wcast_partial_shipped_customizer_email::get_customizer_url('customer_partial_shipped_email')."'>".__( 'Edit', 'woocommerce' )."</a>",
1347
  'class' => 'partial_shipped_status_label_color_th',
1348
  'show' => true,
1357
  */
1358
  function wc_ast_settings_form_update_callback(){
1359
  if ( ! empty( $_POST ) && check_admin_referer( 'wc_ast_settings_form', 'wc_ast_settings_form' ) ) {
1360
+
1361
  $data = $this->get_settings_data();
1362
 
1363
  foreach( $data as $key => $val ){
1397
  $data = $this->get_partial_shipped_data();
1398
 
1399
  foreach( $data as $key => $val ){
1400
+ if($key == 'wcast_enable_partial_shipped_email'){
1401
  if(isset($_POST['wcast_enable_partial_shipped_email'])){
1402
  $wcast_enable_partial_shipped_email = get_option('woocommerce_customer_partial_shipped_order_settings');
1403
  if($_POST['wcast_enable_partial_shipped_email'] == 1){
1421
  update_option( $key, $_POST[ $key ] );
1422
  }
1423
  }
1424
+
1425
+ $data = $this->get_updated_tracking_data();
1426
+
1427
+ foreach( $data as $key => $val ){
1428
+ if($key == 'wcast_enable_updated_tracking_email'){
1429
+
1430
+ if(isset($_POST['wcast_enable_updated_tracking_email'])){
1431
+ $wcast_enable_updated_tracking_email = get_option('woocommerce_customer_updated_tracking_order_settings');
1432
+ if($_POST['wcast_enable_updated_tracking_email'] == 1){
1433
+ update_option( 'customizer_updated_tracking_order_settings_enabled',$_POST['wcast_enable_updated_tracking_email']);
1434
+ $enabled = 'yes';
1435
+ } else{
1436
+ update_option( 'customizer_updated_tracking_order_settings_enabled','');
1437
+ $enabled = 'no';
1438
+ }
1439
+
1440
+ $opt = array(
1441
+ 'enabled' => $enabled,
1442
+ 'subject' => $wcast_enable_updated_tracking_email['subject'],
1443
+ 'heading' => $wcast_enable_updated_tracking_email['heading'],
1444
+ 'email_type' => $wcast_enable_updated_tracking_email['email_type'],
1445
+ );
1446
+ update_option( 'woocommerce_customer_updated_tracking_order_settings', $opt );
1447
+ }
1448
+ }
1449
+ if(isset($_POST[ $key ])){
1450
+ update_option( $key, $_POST[ $key ] );
1451
+ }
1452
+ }
1453
 
1454
  echo json_encode( array('success' => 'true') );die();
1455
 
1460
  * change style of delivered order label
1461
  */
1462
  function footer_function(){
1463
+ if ( !is_plugin_active( 'woocommerce-order-status-manager/woocommerce-order-status-manager.php' ) ) {
1464
+ $bg_color = get_option('wc_ast_status_label_color','#212c42');
1465
+ $color = get_option('wc_ast_status_label_font_color','#fff');
1466
+
1467
+ $ps_bg_color = get_option('wc_ast_status_partial_shipped_label_color','#0c0c0c');
1468
+ $ps_color = get_option('wc_ast_status_partial_shipped_label_font_color','#fff');
1469
+
1470
+ $ut_bg_color = get_option('wc_ast_status_updated_tracking_label_color','#d6d6d6');
1471
+ $ut_color = get_option('wc_ast_status_updated_tracking_label_font_color','#000');
1472
+ ?>
1473
+ <style>
1474
+ .order-status.status-delivered,.order-status-table .order-label.wc-delivered{
1475
+ background: <?php echo $bg_color; ?>;
1476
  color: <?php echo $color; ?>;
1477
+ }
1478
+ .order-status.status-partial-shipped,.order-status-table .order-label.wc-partially-shipped{
1479
+ background: <?php echo $ps_bg_color; ?>;
 
1480
  color: <?php echo $ps_color; ?>;
1481
+ }
1482
+ .order-status.status-updated-tracking,.order-status-table .order-label.wc-updated-tracking{
1483
+ background: <?php echo $ut_bg_color; ?>;
1484
+ color: <?php echo $ut_color; ?>;
1485
+ }
1486
+ </style>
1487
+ <?php
1488
  }
 
 
 
1489
  }
1490
 
1491
  /*
1494
  function upload_tracking_csv_fun(){
1495
 
1496
  $replace_tracking_info = $_POST['replace_tracking_info'];
1497
+ $date_format_for_csv_import = $_POST['date_format_for_csv_import'];
1498
+ update_option('date_format_for_csv_import',$date_format_for_csv_import);
1499
  $order_id = $_POST['order_id'];
1500
 
1501
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
1504
  $tracking_provider = $_POST['tracking_provider'];
1505
  $tracking_number = $_POST['tracking_number'];
1506
  $date_shipped = str_replace("/","-",$_POST['date_shipped']);
1507
+
1508
+ if(isset($_POST['sku'])){
1509
+ $sku = $_POST['sku'];
1510
+ }
1511
+
1512
+ if(isset($_POST['qty'])){
1513
+ $qty = $_POST['qty'];
1514
+ }
1515
+
1516
  if(empty($date_shipped)){
1517
  $date_shipped = date("d-m-Y");
1518
  }
1522
  $woo_shippment_table_name = $this->table;
1523
  $shippment_provider = $wpdb->get_var( "SELECT COUNT(*) FROM $woo_shippment_table_name WHERE provider_name = '".$tracking_provider."'" );
1524
 
1525
+
1526
  if($shippment_provider == 0){
1527
  echo '<li class="error">Failed - Invalid Tracking Provider for Order Id - '.$_POST['order_id'].'</li>';exit;
1528
  }
1529
  if(empty($tracking_number)){
1530
  echo '<li class="error">Failed - Empty Tracking Number for Order Id - '.$_POST['order_id'].'</li>';exit;
1531
  }
1532
+ if(preg_match('/[^a-z0-9- \b]+/i', $tracking_number)){
1533
  echo '<li class="error">Failed - Special character not allowd in tracking number for Order Id - '.$_POST['order_id'].'</li>';exit;
1534
  }
1535
  if(empty($date_shipped)){
1536
  echo '<li class="error">Failed - Empty Date Shipped for Order Id - '.$_POST['order_id'].'</li>';exit;
1537
+ }
1538
+ if(!$this->isDate($date_shipped,$date_format_for_csv_import)){
1539
  echo '<li class="error">Failed - Invalid Date Shipped for Order Id - '.$_POST['order_id'].'</li>';exit;
1540
  }
1541
 
1542
+ if($date_format_for_csv_import == 'm-d-Y'){
1543
+ $date_array = explode("-",$date_shipped);
1544
+ $date_shipped = $date_array[1].'-'.$date_array[0].'-'.$date_array[2];
1545
+ }
1546
+
1547
  if($replace_tracking_info == 1){
1548
  $order = wc_get_order($order_id);
1549
 
1553
  if ( count( $tracking_items ) > 0 ) {
1554
  foreach ( $tracking_items as $key => $item ) {
1555
  $tracking_number = $item['tracking_number'];
1556
+ unset( $tracking_items[ $key ] );
 
 
 
 
1557
  }
1558
  $wast->save_tracking_items( $order_id, $tracking_items );
1559
  }
1560
  }
1561
  }
1562
  if($tracking_provider && $tracking_number && $date_shipped){
1563
+
1564
+ $tracking_provider = $wpdb->get_var( "SELECT ts_slug FROM $woo_shippment_table_name WHERE provider_name = '".$tracking_provider."'" );
1565
+
1566
+ if(!$tracking_provider){
1567
+ $tracking_provider = sanitize_title($_POST['tracking_provider']);
1568
+ }
1569
+
1570
+ if($sku != ''){
1571
+ $tracking_items = $wast->get_tracking_items( $order_id );
1572
+ if ( count( $tracking_items ) > 0 ) {
1573
+ foreach ( $tracking_items as $key => $item ) {
1574
+ if($item['tracking_number'] == $_POST['tracking_number']){
1575
+ unset( $tracking_items[ $key ] );
1576
+ }
1577
+ }
1578
+ $wast->save_tracking_items( $order_id, $tracking_items );
1579
+ }
1580
+ $args = array(
1581
+ 'tracking_provider' => wc_clean( $tracking_provider ),
1582
+ 'tracking_number' => wc_clean( $_POST['tracking_number'] ),
1583
+ 'date_shipped' => wc_clean( $date_shipped ),
1584
+ 'status_shipped' => wc_clean( $_POST['status_shipped'] ),
1585
+ );
1586
+
1587
+ $products_list = array();
1588
+
1589
+ foreach($_POST['trackings'] as $tracking){
1590
+ if($tracking['qty'] > 0){
1591
+ if($tracking['tracking_number'] == $_POST['tracking_number']){
1592
+ $product_id = wc_get_product_id_by_sku( $tracking['sku'] );
1593
+ if($product_id){
1594
+ $product_data = (object) array (
1595
+ 'product' => $product_id,
1596
+ 'qty' => $tracking['qty'],
1597
+ );
1598
+ array_push($products_list,$product_data);
1599
+ }
1600
+ }
1601
+ }
1602
+ }
1603
+
1604
+ $product_args = array(
1605
+ 'products_list' => $products_list,
1606
+ );
1607
+
1608
+ $args = array_merge($args,$product_args);
1609
+ } else{
1610
+ $args = array(
1611
+ 'tracking_provider' => wc_clean( $tracking_provider ),
1612
+ 'tracking_number' => wc_clean( $_POST['tracking_number'] ),
1613
+ 'date_shipped' => wc_clean( $date_shipped ),
1614
+ 'status_shipped' => wc_clean( $_POST['status_shipped'] ),
1615
+ );
1616
+ }
1617
+
1618
  $order = wc_get_order($order_id);
1619
 
1620
  if ( $order === false ) {
1637
  *
1638
  * @return boolean
1639
  */
1640
+ function isDate($date, $format = 'd-m-Y')
1641
  {
1642
+ if (!$date) {
 
 
 
 
 
 
 
1643
  return false;
1644
  }
1645
+
1646
+ $d = DateTime::createFromFormat($format, $date);
1647
+ // The Y ( 4 digits year ) returns TRUE for any integer with any number of digits so changing the comparison from == to === fixes the issue.
1648
+ return $d && $d->format($format) === $date;
1649
  }
1650
 
1651
  /*
1745
  echo $url;die();
1746
  }
1747
 
1748
+ /*
1749
+ * bulk shipment status action for "TrackShip balance is 0" status
1750
+ */
1751
+ public static function bulk_shipment_status_for_do_connection_from_settings_fun(){
1752
+ $args = array(
1753
+ 'status' => 'wc-completed',
1754
+ 'limit' => -1,
1755
+ 'date_created' => '>' . ( time() - 2592000 ),
1756
+ );
1757
+ $orders = wc_get_orders( $args );
1758
+
1759
+ foreach($orders as $order){
1760
+ $order_id = $order->get_id();
1761
+
1762
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
1763
+ $tracking_items = $ast->get_tracking_items( $order_id, true );
1764
+ if($tracking_items){
1765
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
1766
+ foreach ( $tracking_items as $key => $tracking_item ) {
1767
+ if($shipment_status[$key]['status'] == 'Please do connection'){
1768
+ wp_schedule_single_event( time() + 1, 'wcast_retry_trackship_apicall', array( $order_id ) );
1769
+ }
1770
+ }
1771
+ }
1772
+ }
1773
+
1774
+ $url = admin_url('/edit.php?post_type=shop_order');
1775
+ echo $url;die();
1776
+ }
1777
+
1778
  /**
1779
  * Add 'get_shipment_status' link to order actions select box on edit order page
1780
  *
1805
  $count = intval( $_REQUEST['processed_count'] );
1806
 
1807
  printf( '<div id="message" class="updated fade"><p>' .
1808
+ _n( 'The shipment status updates will run in the background, please refresh the page in a few minutes.',
1809
+ 'The shipment status updates will run in the background, please refresh the page in a few minutes.',
1810
  $count,
1811
  'get_shipment_status'
1812
  ) . '</p></div>', $count );
1923
  $this->trigger_woocommerce_order_status_completed( $order_id );
1924
  }
1925
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1926
  /*
1927
  * update preview order id in customizer
1928
  */
1960
  exit;
1961
  }
1962
 
1963
+ public function update_enable_late_shipments_email_fun(){
1964
+ set_theme_mod($_POST['id'], $_POST['wcast_enable_late_shipments_email']);
1965
+ exit;
1966
+ }
1967
+
1968
  /*
1969
  * Change completed order email title to Shipped Order
1970
  */
2134
  </div>
2135
  </div>
2136
  <?php } } else{
2137
+ $p_status = 'active';
2138
  ?>
2139
+ <h3><?php echo sprintf(__("You don't have any %s shipping providers.", 'woo-advanced-shipment-tracking'), $p_status); ?></h3>
2140
+ <?php }
2141
+ if($status == 'custom'){ ?>
2142
+ <div class="provider">
2143
+ <div class="provider_inner add_custom_provider_div">
2144
+ <div class="add_custom_p_a"><?php _e("Add Custom Provider", "woo-advanced-shipment-tracking")?></div>
2145
+ <a href="javascript:void(0);" class="add_custom_inner add_custom_provider"><span class="dashicons dashicons-plus-alt"></span></a>
2146
+ </div>
2147
+ </div>
2148
+ <?php }
2149
+ ?>
2150
  </div>
2151
  <?php
2152
  }
2280
  'provider_name' => sanitize_text_field($_POST['shipping_provider']),
2281
  'ts_slug' => sanitize_title($_POST['shipping_provider']),
2282
  'custom_thumb_id' => sanitize_text_field($_POST['thumb_id']),
2283
+ 'provider_url' => sanitize_text_field($_POST['tracking_url'])
2284
  );
2285
  $where_array = array(
2286
  'id' => $_POST['provider_id'],
2329
  exit;
2330
  }
2331
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2332
  /**
2333
  * Add bulk filter for Shipment status in orders list
2334
  *
2366
  </select>
2367
  <?php
2368
  }
2369
+ }
2370
 
2371
  /**
2372
  * Get the order count for orders by shipment status
2443
 
2444
  return $vars;
2445
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2446
 
2447
  /**
2448
+ * Process bulk filter action for shipment status orders
2449
+ *
2450
+ * @since 2.7.4
2451
+ * @param array $vars query vars without filtering
2452
+ * @return array $vars query vars with (maybe) filtering
2453
+ */
2454
+ public function filter_orders_by_tracking_number_query( $search_fields ){
2455
+ $search_fields[] = '_wc_shipment_tracking_items';
2456
+ return $search_fields;
2457
+ }
2458
+ /*
2459
+ * get_zorem_pluginlist
2460
+ *
2461
+ * return array
2462
+ */
2463
+ public function get_zorem_pluginlist(){
2464
+
2465
+ if ( !empty( $this->zorem_pluginlist ) ) return $this->zorem_pluginlist;
2466
+
2467
+ if ( false === ( $plugin_list = get_transient( 'zorem_pluginlist' ) ) ) {
2468
+
2469
+ $response = wp_remote_get( 'https://www.zorem.com/wp-json/pluginlist/v1/' );
2470
+
2471
+ if ( is_array( $response ) && ! is_wp_error( $response ) ) {
2472
+ $body = $response['body']; // use the content
2473
+ $plugin_list = json_decode( $body );
2474
+ set_transient( 'zorem_pluginlist', $plugin_list, 60*60*24 );
2475
+ } else {
2476
+ $plugin_list = array();
2477
+ }
2478
+ }
2479
+ return $this->zorem_pluginlist = $plugin_list;
2480
+ }
2481
+ }
includes/class-wc-advanced-shipment-tracking-front.php CHANGED
@@ -66,48 +66,53 @@ class WC_Advanced_Shipment_Tracking_Front {
66
  * Include front js and css
67
  */
68
  public function front_styles(){
69
- wp_enqueue_script( 'front-js', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/front.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
70
  wp_localize_script( 'front-js', 'zorem_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
71
 
72
- wp_enqueue_style( 'front_style', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/front.css', array(), wc_advanced_shipment_tracking()->version );
 
 
 
 
 
 
73
  }
74
 
75
- public function woo_track_order_function(){
76
-
 
77
  global $wpdb;
78
  $wc_ast_api_key = get_option('wc_ast_api_key');
79
  $primary_color = get_option('wc_ast_select_primary_color');
80
  $success_color = get_option('wc_ast_select_success_color');
81
  $warning_color = get_option('wc_ast_select_warning_color');
82
  $border_color = get_option('wc_ast_select_border_color');
83
- $hide_tracking_events = get_option('wc_ast_hide_tracking_events');
 
 
84
  ?>
85
- <style>
86
-
87
- <?php if($primary_color){ ?>
88
- .bg-secondary{
89
- background-color:<?php echo $primary_color; ?> !important;
90
- }
91
- .tracker-progress-bar-with-dots .secondary .dot {
92
- border-color: <?php echo $primary_color; ?>;
93
- }
94
- .text-secondary{
95
- color: <?php echo $primary_color; ?> !important;
96
- }
97
- .progress-bar.bg-secondary:before{
98
- background-color: <?php echo $primary_color; ?>;
99
- }
100
- .tracking-number{
101
- color: <?php echo $primary_color; ?> !important;
102
- }
103
- .view_table_rows,.hide_table_rows{
104
- color: <?php echo $primary_color; ?> !important;
105
- }
106
  <?php } ?>
107
  <?php if($border_color){ ?>
108
- .col.tracking-detail{
109
- border: 1px solid <?php echo $border_color; ?>;
110
- }
111
  <?php } ?>
112
  </style>
113
  <?php
@@ -133,7 +138,7 @@ class WC_Advanced_Shipment_Tracking_Front {
133
  } else {
134
  $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
135
  }
136
-
137
  if(!$tracking_items){
138
  unset($order_id);
139
  }
@@ -170,218 +175,101 @@ class WC_Advanced_Shipment_Tracking_Front {
170
  $num = 1;
171
  $total_trackings = sizeof($tracking_items);
172
 
173
- foreach($tracking_items as $item){
174
 
175
  $tracking_number = $item['tracking_number'];
176
  $trackship_url = 'https://trackship.info';
177
  $tracking_provider = $item['tracking_provider'];
178
  $results = $wpdb->get_row( "SELECT * FROM {$this->table} WHERE ts_slug= '{$tracking_provider}'");
179
  $tracking_provider = $results->provider_name;
180
-
181
- /*** Update in 2.4.1
182
- * Change URL
183
- * Add User Key
184
- ***/
185
- $url = $trackship_url.'/wp-json/tracking/get_tracking_info';
186
- $args['body'] = array(
187
- 'tracking_number' => $tracking_number,
188
- 'order_id' => $order_id,
189
- 'domain' => get_home_url(),
190
- 'user_key' => $wc_ast_api_key,
191
- );
192
- $response = wp_remote_post( $url, $args );
193
- $data = $response['body'];
194
- $decoded_data = json_decode($data);
195
 
196
- $tracker = new \stdClass();
197
- $tracker->ep_status = '';
198
- if(!empty($decoded_data)){
199
- $tracker = $decoded_data[0];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  }
201
 
202
  $tracking_detail_org = '';
203
  $trackind_detail_by_status_rev = '';
204
 
205
  if(isset($tracker->tracking_detail) && $tracker->tracking_detail != 'null'){
206
- $tracking_detail_org = json_decode($tracker->tracking_detail);
 
207
  $trackind_detail_by_status_rev = array_reverse($tracking_detail_org);
208
- }
209
-
210
- if(!empty($decoded_data)){
211
-
212
- if($tracker->est_delivery_date){
213
- $unixTimestamp = strtotime($tracker->est_delivery_date);
214
- $day = date("l", $unixTimestamp);
215
  }
216
-
217
- if($tracker->ep_status == "unknown"){ $state0_class = 'unknown'; } else{ $state0_class = 'pre_transit'; }
218
-
219
- if($tracker->ep_status == "return_to_sender" ){
220
- $state2_class = 'return_to_sender';
221
- } elseif($tracker->ep_status == "failure"){
222
- $state2_class = 'failure';
223
- } elseif($tracker->ep_status == "available_for_pickup"){
224
- $state2_class = 'available_for_pickup';
225
- } else{
226
- $state2_class = 'out_for_delivery';
227
- }
228
- ?>
229
 
230
  <div class="tracking-detail col">
231
  <?php if($total_trackings > 1 ){ ?>
232
  <p class="shipment_heading"><?php
233
  echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
234
- <?php } ?>
235
- <div class="tracking-header">
236
- <div class="col-md col-md-6">
237
- <?php _e( 'Order', 'woocommerce' ); ?>: <span class="tracking-number">#<?php echo apply_filters( 'ast_order_number_filter', $order_id); ?></span><br/>
238
- <?php echo apply_filters( 'ast_provider_title', $tracking_provider); ?>: <span class="tracking-number"><?php echo $tracker->tracking_code; ?></span>
239
- <h1 class="shipment_status_heading <?php if($tracker->ep_status == "delivered") { echo 'text-success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure") { echo 'text-success'; } else{ echo 'text-secondary'; } ?>"><?php echo apply_filters("trackship_status_filter",$tracker->ep_status);?></h1>
240
- </div>
241
- <div class="col-md col-md-6">
242
- <?php
243
- if($tracker->est_delivery_date){
244
- ?>
245
- <div class="text-muted text-right">
246
- <?php _e( 'Estimated Delivery Date: ', 'woo-advanced-shipment-tracking' ); ?><span class="tracking-number"><?php echo $day; ?>, <?php echo date('M d', strtotime($tracker->est_delivery_date)); ?></span>
247
- </div>
248
- <?php } else{ ?>
249
- <div class="text-muted text-right">
250
- <?php _e( 'Estimated Delivery Date: ', 'woo-advanced-shipment-tracking' ); ?><span class="tracking-number">N/A</span>
251
- </div>
252
- <?php } ?>
253
- </div>
254
- </div>
255
- <?php
256
  if($tracker->ep_status == 'pending_trackship' || $tracker->ep_status == 'INVALID_TRACKING_NUM' || $tracker->ep_status == 'carrier_unsupported' || $tracker->ep_status == 'invalid_user_key' || $tracker->ep_status == 'wrong_shipping_provider' || $tracker->ep_status == 'deleted' || $tracker->ep_status == 'pending'){
257
-
258
- }
259
- elseif(isset($tracker->ep_status)){ ?>
260
- <div class="status-section desktop-section">
261
- <div class="tracker-progress-bar tracker-progress-bar-with-dots">
262
- <div class="progress">
263
- <div class="progress-bar"></div>
264
- </div>
265
- <div style="background-color: transparent;" class="<?php if($tracker->ep_status == "delivered") { echo 'success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure" || $tracker->ep_status == "unknown") { echo 'warning'; } else{ echo 'secondary';} ?>">
266
- <span class="dot state-0 <?php echo $state0_class?> <?php if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo ' current-state'; } else{ echo 'past-state';} ?>"></span>
267
- <span class="state-label <?php if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo 'current-state'; } else{ echo 'past-state';} ?>">
268
- <?php
269
- if($tracker->ep_status == "unknown"){
270
- echo apply_filters("trackship_status_filter",'unknown');
271
- } else{
272
- echo apply_filters("trackship_status_filter",'pre_transit');
273
- }
274
- ?>
275
- </span>
276
-
277
- <span class="dot state-1 in_transit <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>"></span>
278
- <span class="state-label state-1 <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>">
279
- <?php echo apply_filters("trackship_status_filter",'in_transit'); ?>
280
- </span>
281
-
282
- <span class="dot state-2 <?php echo $state2_class; if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo ' current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo ' future-state'; } else{ echo ' past-state'; } ?>"></span>
283
- <span class="state-label state-2 <?php if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo 'future-state'; } else{ echo 'past-state'; } ?>">
284
- <?php
285
- if($tracker->ep_status == "return_to_sender"){
286
- echo apply_filters("trackship_status_filter",'return_to_sender');
287
- } elseif($tracker->ep_status == "failure"){
288
- echo apply_filters("trackship_status_filter",'failure');
289
- } else{
290
- echo apply_filters("trackship_status_filter",'out_for_delivery');
291
- }
292
- ?>
293
- </span>
294
-
295
- <span class="dot state-3 delivered <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; }?>"></span>
296
- <span class="state-label state-3 <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; }?>">
297
- <?php echo apply_filters("trackship_status_filter",'delivered'); ?>
298
- </span>
299
- </div>
300
- </div>
301
- </div>
302
-
303
- <div class="status-section mobile-section">
304
- <div class="tracker-progress-bar tracker-progress-bar-with-dots">
305
- <div class="progress">
306
- <div class="progress-bar <?php if($tracker->ep_status == "delivered") { echo 'bg-success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'bg-warning'; } else{ echo 'bg-secondary';} ?>"></div>
307
- </div>
308
- <div style="background-color: transparent;" class="<?php if($tracker->ep_status == "delivered") { echo 'success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure" || $tracker->ep_status == "unknown") { echo 'warning'; } else{ echo 'secondary';} ?>">
309
-
310
- <div class="dot-div">
311
- <span class="dot state-0 <?php echo $state0_class?> <?php if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo ' current-state'; } else{ echo 'past-state';} ?>"></span>
312
- <span class="state-label <?php if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo 'current-state'; } else{ echo 'past-state';} ?>">
313
- <?php
314
- if($tracker->ep_status == "unknown"){
315
- echo apply_filters("trackship_status_filter",'unknown');
316
- } else{
317
- echo apply_filters("trackship_status_filter",'pre_transit');
318
- }
319
- ?>
320
- </span>
321
- </div>
322
-
323
- <div class="dot-div">
324
- <span class="dot state-1 in_transit <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>"></span>
325
- <span class="state-label state-1 <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>">
326
- <?php echo apply_filters("trackship_status_filter",'in_transit'); ?>
327
- </span>
328
- </div>
329
-
330
- <div class="dot-div">
331
- <span class="dot state-2 <?php echo $state2_class; if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo ' current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo ' future-state'; } else{ echo ' past-state'; } ?>"></span>
332
- <span class="state-label state-2 <?php if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo 'future-state'; } else{ echo ' past-state'; } ?>">
333
- <?php
334
- if($tracker->ep_status == "return_to_sender"){
335
- echo apply_filters("trackship_status_filter",'return_to_sender');
336
- } elseif($tracker->ep_status == "failure"){
337
- echo apply_filters("trackship_status_filter",'failure');
338
- } else{
339
- echo apply_filters("trackship_status_filter",'out_for_delivery');
340
- }
341
- ?>
342
- </span>
343
- </div>
344
-
345
- <div class="dot-div">
346
- <span class="dot state-3 delivered <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; }?>"></span>
347
- <span class="state-label state-3 <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; }?>">
348
- <?php echo apply_filters("trackship_status_filter",'delivered'); ?>
349
- </span>
350
- </div>
351
-
352
- </div>
353
- </div>
354
- </div>
355
- <?php } ?>
356
- <?php if( !empty($trackind_detail_by_status_rev) && $hide_tracking_events != 1 ){ ?>
357
- <div class="shipment_progress_div">
358
- <div class="shipment_progress_heading_div">
359
- <h4 class="tracking-number h4-heading" style=""><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
360
- </div>
361
- <table class="tracking-table">
362
- <tbody>
363
- <?php
364
- $i=0;
365
- foreach($trackind_detail_by_status_rev as $key=>$status_detail){ ?>
366
- <tr>
367
- <td><?php echo date_i18n( get_option( 'date_format' ), strtotime($status_detail->datetime) ); ?>
368
- <?php echo date_i18n( get_option( 'time_format' ), strtotime($status_detail->datetime) ); ?></td>
369
- <td><?php echo apply_filters("trackship_status_filter",$status_detail->status);?></td>
370
- <td><?php echo $status_detail->message; ?></td>
371
- </tr>
372
- <?php }
373
- ?>
374
- </tbody>
375
- </table>
376
- <?php if(count($trackind_detail_by_status_rev) > 2){ ?>
377
-
378
- <a class="view_table_rows" href="javaScript:void(0);"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
379
- <a class="hide_table_rows" href="javaScript:void(0);"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
380
- <?php } ?>
381
- </div>
382
- <?php } ?>
383
- </div>
384
- <?php } else{ ?>
385
  <div class="tracking-detail col">
386
  <h1 class="shipment_status_heading text-secondary text-center"><?php _e( 'Tracking&nbsp;#&nbsp;'.$tracking_number, 'woo-advanced-shipment-tracking' ); ?></h1>
387
  <h3 class="text-center"><?php _e( 'Tracking details not found in TrackShip', 'woo-advanced-shipment-tracking' ); ?></h3>
@@ -397,18 +285,52 @@ class WC_Advanced_Shipment_Tracking_Front {
397
  <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
398
  </div>
399
  <?php }
400
-
401
  $form = ob_get_clean();
402
  return $form;
403
- }
404
  }
405
 
406
  public function get_tracking_info_fun(){
407
-
 
408
  global $wpdb;
409
  $wc_ast_api_key = get_option('wc_ast_api_key');
410
- $hide_tracking_events = get_option('wc_ast_hide_tracking_events');
411
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
412
  if(!$wc_ast_api_key){
413
  return;
414
  }
@@ -416,21 +338,51 @@ class WC_Advanced_Shipment_Tracking_Front {
416
  $order_id = $_POST['order_id'];
417
  $email = $_POST['order_email'];
418
 
419
- $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
420
- $order_id = $wast->get_formated_order_id($order_id);
421
-
422
  $order = wc_get_order( $order_id );
423
-
424
  if(empty($order)){
425
- echo '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
426
  exit;
427
  }
428
-
 
 
 
429
  $order_email = $order->get_billing_email();
430
 
431
  if(strtolower($order_email) != strtolower($email)){
432
- echo '';
433
- exit;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
434
  }
435
 
436
  if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
@@ -438,7 +390,7 @@ class WC_Advanced_Shipment_Tracking_Front {
438
  } else {
439
  $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
440
  }
441
-
442
  if(!$tracking_items){
443
  echo 'tracking_items_not_found';
444
  exit;
@@ -447,7 +399,7 @@ class WC_Advanced_Shipment_Tracking_Front {
447
  $num = 1;
448
  $total_trackings = sizeof($tracking_items);
449
 
450
- foreach($tracking_items as $item){
451
 
452
  $tracking_number = $item['tracking_number'];
453
  $trackship_url = 'https://trackship.info';
@@ -455,25 +407,38 @@ class WC_Advanced_Shipment_Tracking_Front {
455
  $results = $wpdb->get_row( "SELECT * FROM {$this->table} WHERE ts_slug= '{$tracking_provider}'");
456
  $tracking_provider = $results->provider_name;
457
 
458
- /*** Update in 2.4.1
459
- * Change URL
460
- * Add User Key
461
  ***/
462
- $url = $trackship_url.'/wp-json/tracking/get_tracking_info';
463
- $args['body'] = array(
464
- 'tracking_number' => $tracking_number,
465
- 'order_id' => $order_id,
466
- 'domain' => get_home_url(),
467
- 'user_key' => $wc_ast_api_key,
468
- );
469
- $response = wp_remote_post( $url, $args );
470
- $data = $response['body'];
471
- $decoded_data = json_decode($data);
472
-
473
- $tracker = new \stdClass();
474
- $tracker->ep_status = '';
475
- if(!empty($decoded_data)){
476
- $tracker = $decoded_data[0];
 
 
 
 
 
 
 
 
 
 
 
 
 
477
  }
478
 
479
  $tracking_detail_org = '';
@@ -482,64 +447,167 @@ class WC_Advanced_Shipment_Tracking_Front {
482
  if(isset($tracker->tracking_detail) && $tracker->tracking_detail != 'null'){
483
  $tracking_detail_org = json_decode($tracker->tracking_detail);
484
  $trackind_detail_by_status_rev = array_reverse($tracking_detail_org);
485
- }
486
-
487
- if(!empty($decoded_data)){
488
-
489
- if($tracker->est_delivery_date){
490
- $unixTimestamp = strtotime($tracker->est_delivery_date);
491
- $day = date("l", $unixTimestamp);
492
- }
493
-
494
- if($tracker->ep_status == "unknown"){ $state0_class = 'unknown'; } else{ $state0_class = 'pre_transit'; }
495
-
496
- if($tracker->ep_status == "return_to_sender" ){
497
- $state2_class = 'return_to_sender';
498
- } elseif($tracker->ep_status == "failure"){
499
- $state2_class = 'failure';
500
- } elseif($tracker->ep_status == "available_for_pickup"){
501
- $state2_class = 'available_for_pickup';
502
- } else{
503
- $state2_class = 'out_for_delivery';
504
  }
505
- ?>
 
 
 
 
 
 
 
 
 
506
 
507
  <div class="tracking-detail col">
508
  <?php if($total_trackings > 1 ){ ?>
509
  <p class="shipment_heading"><?php
510
  echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
511
- <?php } ?>
512
- <div class="tracking-header">
513
- <div class="col-md col-md-6">
514
- <?php _e( 'Order', 'woocommerce' ); ?>: <span class="tracking-number">#<?php echo apply_filters( 'ast_order_number_filter', $order_id); ?></span><br/>
515
- <?php echo apply_filters( 'ast_provider_title', $tracking_provider); ?>: <span class="tracking-number"><?php echo $tracker->tracking_code; ?></span>
516
- <h1 class="shipment_status_heading <?php if($tracker->ep_status == "delivered") { echo 'text-success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure") { echo 'text-success'; } else{ echo 'text-secondary'; } ?>"><?php echo apply_filters("trackship_status_filter",$tracker->ep_status);?></h1>
517
- </div>
518
- <div class="col-md col-md-6">
519
- <?php
520
- if($tracker->est_delivery_date){
521
- ?>
522
- <div class="text-muted text-right">
523
- <?php _e( 'Estimated Delivery Date: ', 'woo-advanced-shipment-tracking' ); ?><span class="tracking-number"><?php echo $day; ?>, <?php echo date('M d', strtotime($tracker->est_delivery_date)); ?></span>
524
- </div>
525
- <?php } else{ ?>
526
- <div class="text-muted text-right">
527
- <?php _e( 'Estimated Delivery Date: ', 'woo-advanced-shipment-tracking' ); ?><span class="tracking-number">N/A</span>
528
- </div>
529
- <?php } ?>
530
- </div>
531
- </div>
532
- <?php
533
  if($tracker->ep_status == 'pending_trackship' || $tracker->ep_status == 'INVALID_TRACKING_NUM' || $tracker->ep_status == 'carrier_unsupported' || $tracker->ep_status == 'invalid_user_key' || $tracker->ep_status == 'wrong_shipping_provider' || $tracker->ep_status == 'deleted' || $tracker->ep_status == 'pending'){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
534
 
535
- }
536
- elseif(isset($tracker->ep_status)){ ?>
537
- <div class="status-section desktop-section">
538
- <div class="tracker-progress-bar tracker-progress-bar-with-dots">
539
- <div class="progress">
540
- <div class="progress-bar"></div>
541
- </div>
542
- <div style="background-color: transparent;" class="<?php if($tracker->ep_status == "delivered") { echo 'success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure" || $tracker->ep_status == "unknown") { echo 'warning'; } else{ echo 'secondary';} ?>">
 
 
 
 
 
 
 
 
543
  <span class="dot state-0 <?php echo $state0_class?> <?php if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo ' current-state'; } else{ echo 'past-state';} ?>"></span>
544
  <span class="state-label <?php if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo 'current-state'; } else{ echo 'past-state';} ?>">
545
  <?php
@@ -550,135 +618,248 @@ class WC_Advanced_Shipment_Tracking_Front {
550
  }
551
  ?>
552
  </span>
553
-
 
 
554
  <span class="dot state-1 in_transit <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>"></span>
555
  <span class="state-label state-1 <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>">
556
- <?php echo apply_filters("trackship_status_filter",'in_transit'); ?>
557
  </span>
558
-
 
 
559
  <span class="dot state-2 <?php echo $state2_class; if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo ' current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo ' future-state'; } else{ echo ' past-state'; } ?>"></span>
560
- <span class="state-label state-2 <?php if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo 'future-state'; } else{ echo 'past-state'; } ?>">
561
- <?php
562
- if($tracker->ep_status == "return_to_sender"){
563
- echo apply_filters("trackship_status_filter",'return_to_sender');
564
- } elseif($tracker->ep_status == "failure"){
565
- echo apply_filters("trackship_status_filter",'failure');
566
- } else{
567
- echo apply_filters("trackship_status_filter",'out_for_delivery');
568
- }
569
- ?>
570
  </span>
571
-
 
 
572
  <span class="dot state-3 delivered <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; }?>"></span>
573
  <span class="state-label state-3 <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; }?>">
574
  <?php echo apply_filters("trackship_status_filter",'delivered'); ?>
575
  </span>
576
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
577
  </div>
 
578
  </div>
579
-
580
- <div class="status-section mobile-section">
581
- <div class="tracker-progress-bar tracker-progress-bar-with-dots">
582
- <div class="progress">
583
- <div class="progress-bar <?php if($tracker->ep_status == "delivered") { echo 'bg-success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'bg-warning'; } else{ echo 'bg-secondary';} ?>"></div>
584
- </div>
585
- <div style="background-color: transparent;" class="<?php if($tracker->ep_status == "delivered") { echo 'success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure" || $tracker->ep_status == "unknown") { echo 'warning'; } else{ echo 'secondary';} ?>">
586
-
587
- <div class="dot-div">
588
- <span class="dot state-0 <?php echo $state0_class?> <?php if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo ' current-state'; } else{ echo 'past-state';} ?>"></span>
589
- <span class="state-label <?php if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo 'current-state'; } else{ echo 'past-state';} ?>">
590
- <?php
591
- if($tracker->ep_status == "unknown"){
592
- echo apply_filters("trackship_status_filter",'unknown');
593
- } else{
594
- echo apply_filters("trackship_status_filter",'pre_transit');
595
- }
596
- ?>
597
- </span>
598
- </div>
599
-
600
- <div class="dot-div">
601
- <span class="dot state-1 in_transit <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>"></span>
602
- <span class="state-label state-1 <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>">
603
- <?php echo apply_filters("trackship_status_filter",'in_transit'); ?>
604
- </span>
605
- </div>
606
-
607
- <div class="dot-div">
608
- <span class="dot state-2 <?php echo $state2_class; if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo ' current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo ' future-state'; } else{ echo ' past-state'; } ?>"></span>
609
- <span class="state-label state-2 <?php if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo 'future-state'; } else{ echo ' past-state'; } ?>">
610
- <?php
611
- if($tracker->ep_status == "return_to_sender"){
612
- echo apply_filters("trackship_status_filter",'return_to_sender');
613
- } elseif($tracker->ep_status == "failure"){
614
- echo apply_filters("trackship_status_filter",'failure');
615
- } else{
616
- echo apply_filters("trackship_status_filter",'out_for_delivery');
617
- }
618
- ?>
619
- </span>
620
- </div>
621
-
622
- <div class="dot-div">
623
- <span class="dot state-3 delivered <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; }?>"></span>
624
- <span class="state-label state-3 <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; }?>">
625
- <?php echo apply_filters("trackship_status_filter",'delivered'); ?>
626
- </span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
627
  </div>
628
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
629
  </div>
 
630
  </div>
631
- </div>
632
- <?php } ?>
633
- <?php if( !empty($trackind_detail_by_status_rev) && $hide_tracking_events != 1 ){ ?>
634
- <div class="shipment_progress_div">
635
- <div class="shipment_progress_heading_div">
636
- <h4 class="tracking-number h4-heading" style=""><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
637
- </div>
638
- <table class="tracking-table">
639
- <tbody>
640
- <?php
641
- $i=0;
642
- foreach($trackind_detail_by_status_rev as $key=>$status_detail){ ?>
643
- <tr>
644
- <td><?php echo date_i18n( get_option( 'date_format' ), strtotime($status_detail->datetime) ); ?>
645
- <?php echo date_i18n( get_option( 'time_format' ), strtotime($status_detail->datetime) ); ?></td>
646
- <td><?php echo apply_filters("trackship_status_filter",$status_detail->status);?></td>
647
- <td><?php echo $status_detail->message; ?></td>
648
- </tr>
649
- <?php }
650
- ?>
651
- </tbody>
652
- </table>
653
- <?php if(count($trackind_detail_by_status_rev) > 2){ ?>
654
-
655
- <a class="view_table_rows" href="javaScript:void(0);"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
656
- <a class="hide_table_rows" href="javaScript:void(0);"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
657
- <?php } ?>
658
- </div>
659
- <?php } ?>
660
- </div>
661
- <?php } else{ ?>
662
- <div class="tracking-detail col">
663
- <h1 class="shipment_status_heading text-secondary text-center"><?php _e( 'Tracking&nbsp;#&nbsp;'.$tracking_number, 'woo-advanced-shipment-tracking' ); ?></h1>
664
- <h3 class="text-center"><?php _e( 'Tracking details not found in TrackShip', 'woo-advanced-shipment-tracking' ); ?></h3>
665
  </div>
666
- <?php }
667
- $num++;
668
- }
669
-
670
- $remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
671
-
672
- if($remove_trackship_branding != 1){ ?>
673
-
674
- <div class="trackship_branding">
675
- <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
676
- </div>
677
-
678
- <?php }
679
-
680
- exit;
681
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
682
 
683
  /**
684
  * convert string to date
@@ -697,35 +878,42 @@ class WC_Advanced_Shipment_Tracking_Front {
697
 
698
  public static function preview_tracking_page(){
699
  $action = (isset($_REQUEST["action"])?$_REQUEST["action"]:"");
700
- if($action != 'preview_tracking_page')return;
701
-
702
- get_header();
703
-
704
  $wc_ast_api_key = get_option('wc_ast_api_key');
705
  $primary_color = get_option('wc_ast_select_primary_color');
706
  $border_color = get_option('wc_ast_select_border_color');
707
- $hide_tracking_events = get_option('wc_ast_hide_tracking_events');
 
 
708
  ?>
709
 
710
  <style>
 
 
 
711
  <?php if($primary_color){ ?>
712
  .bg-secondary{
713
- background-color:<?php echo $primary_color; ?> !important;
714
  }
715
  .tracker-progress-bar-with-dots .secondary .dot {
716
  border-color: <?php echo $primary_color; ?>;
717
  }
718
  .text-secondary{
719
- color: <?php echo $primary_color; ?> !important;
720
  }
721
  .progress-bar.bg-secondary:before{
722
  background-color: <?php echo $primary_color; ?>;
723
  }
724
  .tracking-number{
725
- color: <?php echo $primary_color; ?> !important;
726
  }
727
- .view_table_rows,.hide_table_rows{
728
- color: <?php echo $primary_color; ?> !important;
 
 
 
729
  }
730
  <?php }
731
  if($border_color){ ?>
@@ -735,118 +923,280 @@ class WC_Advanced_Shipment_Tracking_Front {
735
  <?php } ?>
736
  </style>
737
 
738
- <div class="tracking-detail col">
739
- <div class="tracking-header">
740
- <div class="col-md col-md-6">
741
- <?php _e( 'Order', 'woocommerce' ); ?>: <span class="tracking-number">#4542</span><br>
742
- USPS: <span class="tracking-number">9405511899561468285343</span>
743
- <h1 class="shipment_status_heading text-success">Delivered</h1>
 
 
 
 
 
 
744
  </div>
745
- <div class="col-md col-md-6">
746
- <div class="text-muted text-right">
747
- <?php _e( 'Estimated Delivery Date', 'woo-advanced-shipment-tracking' ); ?>: <span class="tracking-number">Friday, Jun 28</span>
 
 
 
 
748
  </div>
749
  </div>
 
 
 
 
750
  </div>
751
  <div class="status-section desktop-section">
752
  <div class="tracker-progress-bar tracker-progress-bar-with-dots">
753
  <div class="progress">
754
- <div class="progress-bar bg-success" style=""></div>
755
  </div>
756
  <div style="background-color: transparent;" class="success">
757
- <span class="dot state-0 pre_transit past-state"></span>
758
- <span class="state-label past-state">
759
- Pre Transit
760
- </span>
761
  <span class="dot state-1 in_transit past-state"></span>
762
- <span class="state-label state-1 past-state">
763
- In Transit
764
- </span>
765
- <span class="dot state-2 out_for_delivery past-state"></span>
766
- <span class="state-label state-2 past-state">
767
- Out for delivery
768
- </span>
769
- <span class="dot state-3 delivered current-state"></span>
770
- <span class="state-label state-3 current-state">
771
- Delivered </span>
772
  </div>
773
  </div>
774
  </div>
775
  <div class="status-section mobile-section">
776
  <div class="tracker-progress-bar tracker-progress-bar-with-dots">
777
- <div class="progress">
778
- <div class="progress-bar bg-success" style=""></div>
779
  </div>
780
  <div style="background-color: transparent;" class="success">
781
  <div class="dot-div">
782
- <span class="dot state-0 pre_transit past-state"></span>
783
- <span class="state-label past-state">
784
- Pre Transit
785
- </span>
786
  </div>
787
  <div class="dot-div">
788
- <span class="dot state-1 in_transit past-state"></span>
789
- <span class="state-label state-1 past-state">
790
- In Transit
791
- </span>
792
  </div>
793
  <div class="dot-div">
794
- <span class="dot state-2 out_for_delivery past-state"></span>
795
- <span class="state-label state-2 past-state">
796
- Out for delivery
797
- </span>
798
  </div>
799
  <div class="dot-div">
800
- <span class="dot state-3 delivered current-state"></span>
801
- <span class="state-label state-3 current-state">
802
- Delivered </span>
803
  </div>
804
  </div>
805
  </div>
806
- </div>
807
-
808
- <?php if($hide_tracking_events != 1){ ?>
809
 
810
- <div class="shipment_progress_div">
811
- <div class="shipment_progress_heading_div">
812
- <h4 class="tracking-number h4-heading"><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
813
  </div>
814
- <table class="tracking-table">
815
- <tbody>
816
- <tr>
817
- <td>June 28, 2019 1:46 pm</td>
818
- <td>Delivered</td>
819
- <td>Delivered, Garage or Other Location at Address</td>
820
- </tr>
821
- <tr>
822
- <td>June 28, 2019 8:31 am</td>
823
- <td>Out for delivery</td>
824
- <td>Out for Delivery</td>
825
- </tr>
826
- <tr style="display: none;">
827
- <td>June 28, 2019 8:21 am</td>
828
- <td>In Transit</td>
829
- <td>Sorting Complete</td>
830
- </tr>
831
- </tbody>
832
- </table>
833
- <a class="view_table_rows" href="javaScript:void(0);" style="display: inline;"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
834
- <a class="hide_table_rows" href="javaScript:void(0);" style="display: none;"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
835
- </div>
836
-
837
- <?php } ?>
838
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
839
  </div>
840
- <?php
841
 
842
- $remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
843
-
844
- if($remove_trackship_branding != 1){ ?>
845
- <div class="trackship_branding">
846
- <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
 
 
 
 
 
 
 
 
847
  </div>
848
- <?php }
849
- get_footer();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
850
  exit;
851
  }
852
  }
66
  * Include front js and css
67
  */
68
  public function front_styles(){
69
+ wp_register_script( 'front-js', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/front.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
70
  wp_localize_script( 'front-js', 'zorem_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
71
 
72
+ wp_register_style( 'front_style', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/front.css', array(), wc_advanced_shipment_tracking()->version );
73
+
74
+ $action = (isset($_REQUEST["action"])?$_REQUEST["action"]:"");
75
+ if($action == 'preview_tracking_page'){
76
+ wp_enqueue_style( 'front_style' );
77
+ wp_enqueue_script( 'front-js' );
78
+ }
79
  }
80
 
81
+ public function woo_track_order_function(){
82
+ wp_enqueue_style( 'front_style' );
83
+ wp_enqueue_script( 'front-js' );
84
  global $wpdb;
85
  $wc_ast_api_key = get_option('wc_ast_api_key');
86
  $primary_color = get_option('wc_ast_select_primary_color');
87
  $success_color = get_option('wc_ast_select_success_color');
88
  $warning_color = get_option('wc_ast_select_warning_color');
89
  $border_color = get_option('wc_ast_select_border_color');
90
+ $hide_tracking_events = get_option('wc_ast_hide_tracking_events');
91
+ $hide_tracking_provider_image = get_option('wc_ast_hide_tracking_provider_image');
92
+ $tracking_page_layout = get_option('wc_ast_select_tracking_page_layout','t_layout_1');
93
  ?>
94
+ <style>
95
+ <?php if($primary_color){ ?>
96
+ body .tracker-progress-bar-with-dots .secondary .dot {
97
+ border-color: <?php echo $primary_color; ?>;
98
+ }
99
+ body .progress-bar.bg-secondary:before{
100
+ background-color: <?php echo $primary_color; ?>;
101
+ }
102
+ body .tracking-number{
103
+ color: <?php echo $primary_color; ?> !important;
104
+ }
105
+ body .tracking-detail.tracking-layout-2{
106
+ color: <?php echo $primary_color; ?>;
107
+ }
108
+ body .tracking-detail .tracking-details{
109
+ color: <?php echo $primary_color; ?>;
110
+ }
 
 
 
 
111
  <?php } ?>
112
  <?php if($border_color){ ?>
113
+ body .col.tracking-detail{
114
+ border: 1px solid <?php echo $border_color; ?>;
115
+ }
116
  <?php } ?>
117
  </style>
118
  <?php
138
  } else {
139
  $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
140
  }
141
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
142
  if(!$tracking_items){
143
  unset($order_id);
144
  }
175
  $num = 1;
176
  $total_trackings = sizeof($tracking_items);
177
 
178
+ foreach($tracking_items as $key => $item){
179
 
180
  $tracking_number = $item['tracking_number'];
181
  $trackship_url = 'https://trackship.info';
182
  $tracking_provider = $item['tracking_provider'];
183
  $results = $wpdb->get_row( "SELECT * FROM {$this->table} WHERE ts_slug= '{$tracking_provider}'");
184
  $tracking_provider = $results->provider_name;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
 
186
+ /*** Update in 2.7.9
187
+ * Date - 20/01/2020
188
+ * Remove api call code after three month - get_tracking_info
189
+ ***/
190
+ if( isset($shipment_status[$key]['tracking_events'])){
191
+ $tracker = new \stdClass();
192
+ $tracker->ep_status = $shipment_status[$key]['status'];
193
+ $tracker->tracking_detail = json_encode($shipment_status[$key]['tracking_events']);
194
+ $tracker->est_delivery_date = $shipment_status[$key]['est_delivery_date'];
195
+ $decoded_data = true;
196
+
197
+ } else {
198
+ /*** Update in 2.4.1
199
+ * Change URL
200
+ * Add User Key
201
+ ***/
202
+ $url = $trackship_url.'/wp-json/tracking/get_tracking_info';
203
+ $args['body'] = array(
204
+ 'tracking_number' => $tracking_number,
205
+ 'order_id' => $order_id,
206
+ 'domain' => get_home_url(),
207
+ 'user_key' => $wc_ast_api_key,
208
+ );
209
+ $response = wp_remote_post( $url, $args );
210
+ $data = $response['body'];
211
+ $decoded_data = json_decode($data);
212
+
213
+ $tracker = new \stdClass();
214
+ $tracker->ep_status = '';
215
+ if(!empty($decoded_data)){
216
+ $tracker = $decoded_data[0];
217
+ }
218
  }
219
 
220
  $tracking_detail_org = '';
221
  $trackind_detail_by_status_rev = '';
222
 
223
  if(isset($tracker->tracking_detail) && $tracker->tracking_detail != 'null'){
224
+ $tracking_detail_org = json_decode($tracker->tracking_detail);
225
+
226
  $trackind_detail_by_status_rev = array_reverse($tracking_detail_org);
 
 
 
 
 
 
 
227
  }
228
+ $tracking_details_by_date = array();
229
+ foreach((array)$trackind_detail_by_status_rev as $key => $details){
230
+ if(isset($details->datetime)){
231
+ $date = date('Y-m-d', strtotime($details->datetime));
232
+ $tracking_details_by_date[$date][] = $details;
233
+ }
234
+ }
235
+
236
+ if(!empty($decoded_data)){
237
+ if($tracking_page_layout == 't_layout_1'){ ?>
 
 
 
238
 
239
  <div class="tracking-detail col">
240
  <?php if($total_trackings > 1 ){ ?>
241
  <p class="shipment_heading"><?php
242
  echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
243
+ <?php }
244
+ echo $this->tracking_page_header($order_id,$tracking_provider,$tracking_number,$tracker);
245
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  if($tracker->ep_status == 'pending_trackship' || $tracker->ep_status == 'INVALID_TRACKING_NUM' || $tracker->ep_status == 'carrier_unsupported' || $tracker->ep_status == 'invalid_user_key' || $tracker->ep_status == 'wrong_shipping_provider' || $tracker->ep_status == 'deleted' || $tracker->ep_status == 'pending'){
247
+ } elseif(isset($tracker->ep_status)){
248
+ echo $this->layout1_progress_bar($tracker);
249
+ }
250
+
251
+ if( !empty($trackind_detail_by_status_rev) && $hide_tracking_events != 1 ){
252
+ echo $this->layout1_tracking_details($trackind_detail_by_status_rev,$tracking_details_by_date);
253
+ } ?>
254
+ </div>
255
+ <?php } else{
256
+ ?>
257
+ <div class="tracking-detail tracking-layout-2 col">
258
+ <?php if($total_trackings > 1 ){ ?>
259
+ <p class="shipment_heading"><?php echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
260
+ <?php }
261
+ echo $tracking_header = $this->tracking_page_header($order_id,$tracking_provider,$tracking_number,$tracker);
262
+ if($tracker->ep_status == 'pending_trackship' || $tracker->ep_status == 'INVALID_TRACKING_NUM' || $tracker->ep_status == 'carrier_unsupported' || $tracker->ep_status == 'invalid_user_key' || $tracker->ep_status == 'wrong_shipping_provider' || $tracker->ep_status == 'deleted' || $tracker->ep_status == 'pending'){
263
+ } elseif(isset($tracker->ep_status)){
264
+ echo $this->layout2_progress_bar($tracker);
265
+ }
266
+
267
+ if( !empty($trackind_detail_by_status_rev) && $hide_tracking_events != 1 ){
268
+ echo $this->layout2_tracking_details($trackind_detail_by_status_rev,$tracking_details_by_date);
269
+ } ?>
270
+
271
+ </div>
272
+ <?php } } else{ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
  <div class="tracking-detail col">
274
  <h1 class="shipment_status_heading text-secondary text-center"><?php _e( 'Tracking&nbsp;#&nbsp;'.$tracking_number, 'woo-advanced-shipment-tracking' ); ?></h1>
275
  <h3 class="text-center"><?php _e( 'Tracking details not found in TrackShip', 'woo-advanced-shipment-tracking' ); ?></h3>
285
  <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
286
  </div>
287
  <?php }
 
288
  $form = ob_get_clean();
289
  return $form;
290
+ }
291
  }
292
 
293
  public function get_tracking_info_fun(){
294
+ wp_enqueue_style( 'front_style' );
295
+ wp_enqueue_script( 'front-js' );
296
  global $wpdb;
297
  $wc_ast_api_key = get_option('wc_ast_api_key');
298
+ $primary_color = get_option('wc_ast_select_primary_color');
299
+ $success_color = get_option('wc_ast_select_success_color');
300
+ $warning_color = get_option('wc_ast_select_warning_color');
301
+ $border_color = get_option('wc_ast_select_border_color');
302
+ $hide_tracking_events = get_option('wc_ast_hide_tracking_events');
303
+ $hide_tracking_provider_image = get_option('wc_ast_hide_tracking_provider_image');
304
+ $tracking_page_layout = get_option('wc_ast_select_tracking_page_layout','t_layout_1');
305
+ ?>
306
+ <style>
307
+ <?php if($primary_color){ ?>
308
+ body .tracker-progress-bar-with-dots .secondary .dot {
309
+ border-color: <?php echo $primary_color; ?>;
310
+ }
311
+ body .text-secondary{
312
+ color: <?php echo $primary_color; ?> !important;
313
+ }
314
+ body .progress-bar.bg-secondary:before{
315
+ background-color: <?php echo $primary_color; ?>;
316
+ }
317
+ body .tracking-number{
318
+ color: <?php echo $primary_color; ?> !important;
319
+ }
320
+ body .tracking-detail.tracking-layout-2{
321
+ color: <?php echo $primary_color; ?>;
322
+ }
323
+ body .tracking-detail .tracking-details{
324
+ color: <?php echo $primary_color; ?>;
325
+ }
326
+ <?php } ?>
327
+ <?php if($border_color){ ?>
328
+ body .col.tracking-detail{
329
+ border: 1px solid <?php echo $border_color; ?>;
330
+ }
331
+ <?php } ?>
332
+ </style>
333
+ <?php
334
  if(!$wc_ast_api_key){
335
  return;
336
  }
338
  $order_id = $_POST['order_id'];
339
  $email = $_POST['order_email'];
340
 
 
 
 
341
  $order = wc_get_order( $order_id );
 
342
  if(empty($order)){
343
+ ob_start();
344
+ ?>
345
+ <div class="track-order-section">
346
+ <form method="post" class="order_track_form">
347
+ <p><?php echo apply_filters( 'ast_tracking_page_front_text', __( 'To track your order please enter your Order ID in the box below and press the "Track" button. This was given to you on your receipt and in the confirmation email you should have received.', 'woo-advanced-shipment-tracking' ) ); ?></p>
348
+ <p class="form-row form-row-first"><label for="order_id"><?php echo apply_filters( 'ast_tracking_page_front_order_label', __( 'Order ID', 'woocommerce' ) ); ?></label> <input class="input-text" type="text" name="order_id" id="order_id" value="" placeholder="<?php _e( 'Found in your order confirmation email.', 'woo-advanced-shipment-tracking' ); ?>"></p>
349
+ <p class="form-row form-row-last"><label for="order_email"><?php echo apply_filters( 'ast_tracking_page_front_order_email_label', __( 'Order Email', 'woo-advanced-shipment-tracking' ) ); ?></label> <input class="input-text" type="text" name="order_email" id="order_email" value="" placeholder="<?php _e( 'Found in your order confirmation email.', 'woo-advanced-shipment-tracking' ); ?>"></p>
350
+ <div class="clear"></div>
351
+ <input type="hidden" name="action" value="get_tracking_info">
352
+ <p class="form-row"><button type="submit" class="button" name="track" value="Track"><?php echo apply_filters( 'ast_tracking_page_front_track_label', __( 'Track', 'woo-advanced-shipment-tracking' ) ); ?></button></p>
353
+ <div class="track_fail_msg" style="display:none;color: red;"></div>
354
+ </form>
355
+ </div>
356
+ <?php
357
+
358
+ $form = ob_get_clean();
359
+ echo $form;exit;
360
  exit;
361
  }
362
+
363
+ $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
364
+ $order_id = $wast->get_formated_order_id($order_id);
365
+
366
  $order_email = $order->get_billing_email();
367
 
368
  if(strtolower($order_email) != strtolower($email)){
369
+ ob_start();
370
+ ?>
371
+ <div class="track-order-section">
372
+ <form method="post" class="order_track_form">
373
+ <p><?php echo apply_filters( 'ast_tracking_page_front_text', __( 'To track your order please enter your Order ID in the box below and press the "Track" button. This was given to you on your receipt and in the confirmation email you should have received.', 'woo-advanced-shipment-tracking' ) ); ?></p>
374
+ <p class="form-row form-row-first"><label for="order_id"><?php echo apply_filters( 'ast_tracking_page_front_order_label', __( 'Order ID', 'woocommerce' ) ); ?></label> <input class="input-text" type="text" name="order_id" id="order_id" value="" placeholder="<?php _e( 'Found in your order confirmation email.', 'woo-advanced-shipment-tracking' ); ?>"></p>
375
+ <p class="form-row form-row-last"><label for="order_email"><?php echo apply_filters( 'ast_tracking_page_front_order_email_label', __( 'Order Email', 'woo-advanced-shipment-tracking' ) ); ?></label> <input class="input-text" type="text" name="order_email" id="order_email" value="" placeholder="<?php _e( 'Found in your order confirmation email.', 'woo-advanced-shipment-tracking' ); ?>"></p>
376
+ <div class="clear"></div>
377
+ <input type="hidden" name="action" value="get_tracking_info">
378
+ <p class="form-row"><button type="submit" class="button" name="track" value="Track"><?php echo apply_filters( 'ast_tracking_page_front_track_label', __( 'Track', 'woo-advanced-shipment-tracking' ) ); ?></button></p>
379
+ <div class="track_fail_msg" style="display:none;color: red;"></div>
380
+ </form>
381
+ </div>
382
+ <?php
383
+
384
+ $form = ob_get_clean();
385
+ echo $form;exit;
386
  }
387
 
388
  if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
390
  } else {
391
  $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
392
  }
393
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
394
  if(!$tracking_items){
395
  echo 'tracking_items_not_found';
396
  exit;
399
  $num = 1;
400
  $total_trackings = sizeof($tracking_items);
401
 
402
+ foreach($tracking_items as $key => $item){
403
 
404
  $tracking_number = $item['tracking_number'];
405
  $trackship_url = 'https://trackship.info';
407
  $results = $wpdb->get_row( "SELECT * FROM {$this->table} WHERE ts_slug= '{$tracking_provider}'");
408
  $tracking_provider = $results->provider_name;
409
 
410
+ /*** Update in 2.7.9
411
+ * Date - 20/01/2020
412
+ * Remove api call code after three month - get_tracking_info
413
  ***/
414
+ if( isset($shipment_status[$key]['tracking_events'])){
415
+ $tracker = new \stdClass();
416
+ $tracker->ep_status = $shipment_status[$key]['status'];
417
+ $tracker->tracking_detail = json_encode($shipment_status[$key]['tracking_events']);
418
+ $tracker->est_delivery_date = $shipment_status[$key]['est_delivery_date'];
419
+ $decoded_data = true;
420
+
421
+ } else {
422
+ /*** Update in 2.4.1
423
+ * Change URL
424
+ * Add User Key
425
+ ***/
426
+ $url = $trackship_url.'/wp-json/tracking/get_tracking_info';
427
+ $args['body'] = array(
428
+ 'tracking_number' => $tracking_number,
429
+ 'order_id' => $order_id,
430
+ 'domain' => get_home_url(),
431
+ 'user_key' => $wc_ast_api_key,
432
+ );
433
+ $response = wp_remote_post( $url, $args );
434
+ $data = $response['body'];
435
+ $decoded_data = json_decode($data);
436
+
437
+ $tracker = new \stdClass();
438
+ $tracker->ep_status = '';
439
+ if(!empty($decoded_data)){
440
+ $tracker = $decoded_data[0];
441
+ }
442
  }
443
 
444
  $tracking_detail_org = '';
447
  if(isset($tracker->tracking_detail) && $tracker->tracking_detail != 'null'){
448
  $tracking_detail_org = json_decode($tracker->tracking_detail);
449
  $trackind_detail_by_status_rev = array_reverse($tracking_detail_org);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
450
  }
451
+ $tracking_details_by_date = array();
452
+ foreach((array)$trackind_detail_by_status_rev as $key => $details){
453
+ if(isset($details->datetime)){
454
+ $date = date('Y-m-d', strtotime($details->datetime));
455
+ $tracking_details_by_date[$date][] = $details;
456
+ }
457
+ }
458
+
459
+ if(!empty($decoded_data)){
460
+ if($tracking_page_layout == 't_layout_1'){ ?>
461
 
462
  <div class="tracking-detail col">
463
  <?php if($total_trackings > 1 ){ ?>
464
  <p class="shipment_heading"><?php
465
  echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
466
+ <?php }
467
+ echo $this->tracking_page_header($order_id,$tracking_provider,$tracking_number,$tracker);
468
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
469
  if($tracker->ep_status == 'pending_trackship' || $tracker->ep_status == 'INVALID_TRACKING_NUM' || $tracker->ep_status == 'carrier_unsupported' || $tracker->ep_status == 'invalid_user_key' || $tracker->ep_status == 'wrong_shipping_provider' || $tracker->ep_status == 'deleted' || $tracker->ep_status == 'pending'){
470
+ } elseif(isset($tracker->ep_status)){
471
+ echo $this->layout1_progress_bar($tracker);
472
+ }
473
+
474
+ if( !empty($trackind_detail_by_status_rev) && $hide_tracking_events != 1 ){
475
+ echo $this->layout1_tracking_details($trackind_detail_by_status_rev,$tracking_details_by_date);
476
+ } ?>
477
+ </div>
478
+ <?php } else{
479
+ ?>
480
+ <div class="tracking-detail tracking-layout-2 col">
481
+ <?php if($total_trackings > 1 ){ ?>
482
+ <p class="shipment_heading"><?php echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
483
+ <?php }
484
+ echo $tracking_header = $this->tracking_page_header($order_id,$tracking_provider,$tracking_number,$tracker);
485
+ if($tracker->ep_status == 'pending_trackship' || $tracker->ep_status == 'INVALID_TRACKING_NUM' || $tracker->ep_status == 'carrier_unsupported' || $tracker->ep_status == 'invalid_user_key' || $tracker->ep_status == 'wrong_shipping_provider' || $tracker->ep_status == 'deleted' || $tracker->ep_status == 'pending'){
486
+ } elseif(isset($tracker->ep_status)){
487
+ echo $this->layout2_progress_bar($tracker);
488
+ }
489
+
490
+ if( !empty($trackind_detail_by_status_rev) && $hide_tracking_events != 1 ){
491
+ echo $this->layout2_tracking_details($trackind_detail_by_status_rev,$tracking_details_by_date);
492
+ } ?>
493
+
494
+ </div>
495
+ <?php } } else{ ?>
496
+ <div class="tracking-detail col">
497
+ <h1 class="shipment_status_heading text-secondary text-center"><?php _e( 'Tracking&nbsp;#&nbsp;'.$tracking_number, 'woo-advanced-shipment-tracking' ); ?></h1>
498
+ <h3 class="text-center"><?php _e( 'Tracking details not found in TrackShip', 'woo-advanced-shipment-tracking' ); ?></h3>
499
+ </div>
500
+ <?php }
501
+ $num++;
502
+ }
503
+
504
+ $remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
505
+
506
+ if($remove_trackship_branding != 1){ ?>
507
+
508
+ <div class="trackship_branding">
509
+ <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
510
+ </div>
511
+
512
+ <?php }
513
+
514
+ exit;
515
+ }
516
+
517
+ public function tracking_page_header($order_id,$tracking_provider,$tracking_number,$tracker){
518
+ if($tracker->est_delivery_date){
519
+ $unixTimestamp = strtotime($tracker->est_delivery_date);
520
+ $day = date("l", $unixTimestamp);
521
+ }
522
+ $hide_tracking_provider_image = get_option('wc_ast_hide_tracking_provider_image');
523
+ ?>
524
+ <div class="tracking-header tracking-desktop-header">
525
+ <div class="col-md col-md-6">
526
+ <span class="tracking-number"><?php _e( 'Order', 'woocommerce' ); ?>: <strong>#<?php echo apply_filters( 'ast_order_number_filter', $order_id); ?></strong></span><br>
527
+ <span class="tracking-number"><?php echo $tracking_provider; ?>: <strong><?php echo $tracking_number; ?></strong></span>
528
+ <h1 class="shipment_status_heading <?php if($tracker->ep_status == "delivered" || $tracker->ep_status == "available_for_pickup") { echo 'text-success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure") { echo 'text-warning'; } else{ echo 'text-secondary'; } ?>">
529
+ <?php echo apply_filters("trackship_status_filter",$tracker->ep_status);?>
530
+ </h1>
531
+ <span class="tracking-number">
532
+ <?php _e( 'Est. Delivery Date', 'woo-advanced-shipment-tracking' ); ?>: <strong>
533
+ <?php
534
+ if($tracker->est_delivery_date){
535
+ echo $day; ?>, <?php echo date('M d', strtotime($tracker->est_delivery_date));
536
+ } else{
537
+ echo 'N/A';
538
+ } ?></strong>
539
+ </span>
540
+ </div>
541
+ <div class="col-md col-md-6 provider-image-div" style="<?php if($hide_tracking_provider_image == 1) { echo 'display:none'; }; ?>">
542
+ <div class="text-right">
543
+ <img class="provider_image" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/<?php echo sanitize_title($tracking_provider); ?>.png">
544
+ </div>
545
+ </div>
546
+ </div>
547
+ <div class="tracking-header tracking-mobile-header">
548
+ <div class="d-flex align-items-center header_top1">
549
+ <div class="header_top_left">
550
+ <img class="provider_image" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/<?php echo sanitize_title($tracking_provider); ?>.png">
551
+ </div>
552
+ <div class="header_top_right">
553
+ <span class="tracking-number"><?php echo $tracking_provider; ?>: <strong><?php echo $tracker->tracking_code; ?></strong></span><br>
554
+ <span class="tracking-number"><?php _e( 'Order', 'woocommerce' ); ?>: <strong>#<?php echo apply_filters( 'ast_order_number_filter', $order_id); ?></strong></span>
555
+ </div>
556
+ </div>
557
+ <div class="col-md col-md-6 header_top2">
558
+ <h1 class="shipment_status_heading <?php if($tracker->ep_status == "delivered") { echo 'text-success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure") { echo 'text-warning'; } else{ echo 'text-secondary'; } ?>">
559
+ <?php echo apply_filters("trackship_status_filter",$tracker->ep_status);?>
560
+ </h1>
561
+ <span class="tracking-number">
562
+ <?php _e( 'Est. Delivery Date', 'woo-advanced-shipment-tracking' ); ?>: <strong>
563
+ <?php
564
+ if($tracker->est_delivery_date){
565
+ echo $day; ?>, <?php echo date('M d', strtotime($tracker->est_delivery_date));
566
+ } else{
567
+ echo 'N/A';
568
+ } ?></strong>
569
+ </span>
570
+ </div>
571
+ </div>
572
+ <?php }
573
+
574
+ public function layout1_progress_bar($tracker){
575
+ if($tracker->ep_status == "unknown"){ $state0_class = 'unknown'; } else{ $state0_class = 'pre_transit'; }
576
+
577
+ if($tracker->ep_status == "return_to_sender" ){
578
+ $state2_class = 'return_to_sender';
579
+ } elseif($tracker->ep_status == "failure"){
580
+ $state2_class = 'failure';
581
+ } elseif($tracker->ep_status == "available_for_pickup"){
582
+ $state2_class = 'available_for_pickup';
583
+ } else{
584
+ $state2_class = 'out_for_delivery';
585
+ }
586
+ ?>
587
+ <div class="status-section desktop-section">
588
+ <div class="tracker-progress-bar tracker-progress-bar-with-dots">
589
+ <div class="progress">
590
+ <div class="progress-bar <?php if($tracker->ep_status == "delivered") { echo 'bg-success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'bg-warning'; } else{ echo 'bg-success';} ?>" style="<?php if($tracker->ep_status == "in_transit") { echo 'width:33%;'; } elseif($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'width:67%';} elseif($tracker->ep_status == "delivered") { echo 'width:100%'; } ?>"></div>
591
+ </div>
592
+ <div class="<?php if($tracker->ep_status == "delivered") { echo 'success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure" || $tracker->ep_status == "unknown") { echo 'warning'; } else{ echo 'secondary';} ?>">
593
+ <span class="dot state-0 <?php echo $state0_class; echo ' '; if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo ' current-state'; } else{ echo 'past-state';} ?>"></span>
594
 
595
+ <span class="dot state-1 <?php echo 'in_transit'; echo ' '; if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>"></span>
596
+
597
+ <span class="dot state-2 <?php echo $state2_class; echo ' '; if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo ' current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo ' future-state'; } else{ echo ' past-state'; } ?>"></span>
598
+
599
+ <span class="dot state-3 <?php echo 'delivered'; echo ' '; if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; } ?>"></span>
600
+
601
+ </div>
602
+ </div>
603
+ </div>
604
+ <div class="status-section mobile-section">
605
+ <div class="tracker-progress-bar tracker-progress-bar-with-dots">
606
+ <div class="progress <?php if($tracker->ep_status == "delivered") { echo 'bg-success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'bg-warning'; } else{ echo 'bg-secondary';} ?>" style="<?php if($tracker->ep_status == "in_transit") { echo 'height:33%;'; } elseif($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'height:67%';} elseif($tracker->ep_status == "delivered") { echo 'height:100%'; } ?>">
607
+ <div class="progress-bar" style=""></div>
608
+ </div>
609
+ <div style="background-color: transparent;" class="<?php if($tracker->ep_status == "delivered") { echo 'success'; } elseif($tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure" || $tracker->ep_status == "unknown") { echo 'warning'; } else{ echo 'secondary';} ?>">
610
+ <div class="dot-div">
611
  <span class="dot state-0 <?php echo $state0_class?> <?php if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo ' current-state'; } else{ echo 'past-state';} ?>"></span>
612
  <span class="state-label <?php if($tracker->ep_status =="pre_transit" || $tracker->ep_status =="unknown"){ echo 'current-state'; } else{ echo 'past-state';} ?>">
613
  <?php
618
  }
619
  ?>
620
  </span>
621
+ </div>
622
+
623
+ <div class="dot-div">
624
  <span class="dot state-1 in_transit <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>"></span>
625
  <span class="state-label state-1 <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown"){ echo 'future-state'; } else{ echo 'past-state'; } ?>">
626
+ <?php echo apply_filters("trackship_status_filter",'in_transit'); ?>
627
  </span>
628
+ </div>
629
+
630
+ <div class="dot-div">
631
  <span class="dot state-2 <?php echo $state2_class; if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo ' current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo ' future-state'; } else{ echo ' past-state'; } ?>"></span>
632
+ <span class="state-label state-2 <?php if($tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "failure" || $tracker->ep_status == "return_to_sender"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit"){ echo 'future-state'; } else{ echo ' past-state'; } ?>">
633
+ <?php
634
+ if($tracker->ep_status == "return_to_sender"){
635
+ echo apply_filters("trackship_status_filter",'return_to_sender');
636
+ } elseif($tracker->ep_status == "failure"){
637
+ echo apply_filters("trackship_status_filter",'failure');
638
+ } else{
639
+ echo apply_filters("trackship_status_filter",'out_for_delivery');
640
+ }
641
+ ?>
642
  </span>
643
+ </div>
644
+
645
+ <div class="dot-div">
646
  <span class="dot state-3 delivered <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; }?>"></span>
647
  <span class="state-label state-3 <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $tracker->ep_status =="unknown" || $tracker->ep_status == "in_transit" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure"){ echo 'future-state'; }?>">
648
  <?php echo apply_filters("trackship_status_filter",'delivered'); ?>
649
  </span>
650
+ </div>
651
+ </div>
652
+ </div>
653
+ </div>
654
+ <?php }
655
+
656
+ public function layout2_progress_bar($tracker){
657
+ if($tracker->ep_status == 'pending_trackship' || $tracker->ep_status == 'INVALID_TRACKING_NUM' || $tracker->ep_status == 'carrier_unsupported' || $tracker->ep_status == 'invalid_user_key' || $tracker->ep_status == 'wrong_shipping_provider' || $tracker->ep_status == 'deleted' || $tracker->ep_status == 'pending' || $tracker->ep_status == 'unknown' || $tracker->ep_status == 'pre_transit'){
658
+ $width = '0';
659
+ $progress_bar_class = 'bg-secondary';
660
+ } else if($tracker->ep_status == 'in_transit'){
661
+ $width = '33%';
662
+ $progress_bar_class = 'bg-secondary';
663
+ } else if($tracker->ep_status == 'out_for_delivery'){
664
+ $width = '67%';
665
+ $progress_bar_class = 'bg-secondary';
666
+ } else if($tracker->ep_status == 'available_for_pickup'){
667
+ $width = '67%';
668
+ $progress_bar_class = 'bg-success';
669
+ } else if($tracker->ep_status == 'return_to_sender'){
670
+ $width = '67%';
671
+ $progress_bar_class = 'bg-warning';
672
+ } else if($tracker->ep_status == 'delivered'){
673
+ $width = '100%';
674
+ $progress_bar_class = 'bg-success';
675
+ }
676
+ ?>
677
+ <div class="tracker-progress-bar tracker-progress-bar-flat">
678
+ <div class="progress">
679
+ <div class="progress-bar <?php echo $progress_bar_class; ?>" style="width: <?php echo $width; ?>;"></div>
680
+ </div>
681
+ </div>
682
+ <?php }
683
+
684
+ public function layout1_tracking_details($trackind_detail_by_status_rev,$tracking_details_by_date){
685
+ ?>
686
+ <div class="tracking-details" style="">
687
+ <div class="shipment_progress_heading_div">
688
+ <h4 class="tracking-number h4-heading text-uppercase"><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
689
+ </div>
690
+ <?php if(!empty($tracking_details_by_date)){ ?>
691
+ <div class="tracking_details_desktop">
692
+ <div class="tracking_group_by_date">
693
+ <?php
694
+ $a = 1;
695
+ foreach($tracking_details_by_date as $date => $date_details){
696
+ if($a > 1)break;
697
+ foreach($date_details as $key => $value){
698
+ ?>
699
+ <div class="d-flex mb-3">
700
+ <div class="d-md-flex w-100">
701
+ <div class="date text-uppercase font-weight-demi-bold"><?php echo date_i18n( get_option( 'date_format' ), strtotime($date) ); //date( 'F j, Y', strtotime($date)); ?></div>
702
+ <div class="time mr-md-2"><?php echo date_i18n( get_option( 'time_format' ), strtotime($value->datetime) ) //date( 'g:i a', strtotime($value->datetime)); ?></div>
703
+ <div class="message font-weight-demi-bold mr-md-3"><?php echo $value->message; ?></div>
704
+ <div class="location text-uppercase text-md-right ml-auto"><?php echo $value->tracking_location->city; ?></div>
705
+ </div>
706
+ </div>
707
+ <?php } $a++; } ?>
708
+ </div>
709
+ <div class="old-details" style="">
710
+ <?php
711
+ $a = 1;
712
+ foreach($tracking_details_by_date as $date => $date_details){
713
+ if($a == 1){
714
+ $a++;
715
+ continue;
716
+ } ?>
717
+ <div class="tracking_group_by_date">
718
+ <?php foreach($date_details as $key => $value){ ?>
719
+ <div class="d-flex mb-3">
720
+ <div class="d-md-flex w-100">
721
+ <div class="date text-uppercase font-weight-demi-bold"><?php echo date_i18n( get_option( 'date_format' ), strtotime($date) ); //date( 'F j, Y', strtotime($date)); ?></div>
722
+ <div class="time mr-md-2"><?php echo date_i18n( get_option( 'time_format' ), strtotime($value->datetime) ) //date( 'g:i a', strtotime($value->datetime)); ?></div>
723
+ <div class="message font-weight-demi-bold mr-md-3"><?php echo $value->message; ?></div>
724
+ <div class="location text-uppercase text-md-right ml-auto"><?php echo $value->tracking_location->city; ?></div>
725
+ </div>
726
+ </div>
727
+ <?php } ?>
728
  </div>
729
+ <?php } ?>
730
  </div>
731
+ </div>
732
+ <div class="tracking_details_mobile">
733
+ <?php
734
+ $a = 1;
735
+ foreach($tracking_details_by_date as $date => $date_details){
736
+ if($a > 1)break;
737
+ foreach($date_details as $key => $value){ ?>
738
+ <div class="d-flex mb-3 tracking_details_mobile_row">
739
+ <div class="d-md-flex w-100">
740
+ <div class="time mr-md-2"><span class="text-uppercase"><?php echo date_i18n( get_option( 'date_format' ), strtotime($date) ); //date( 'F j, Y', strtotime($date)); ?></span> <?php echo date_i18n( get_option( 'time_format' ), strtotime($value->datetime) ) //date( 'g:i a', strtotime($value->datetime)); ?></div>
741
+ <div class="message font-weight-demi-bold mr-md-3"><?php echo $value->message; ?></div>
742
+ <div class="location text-uppercase text-md-right ml-auto"><?php echo $value->tracking_location->city; ?></div>
743
+ </div>
744
+ </div>
745
+ <?php }
746
+ $a++;
747
+ }
748
+ ?>
749
+ <div class="old-details" style="">
750
+ <?php
751
+ $a = 1;
752
+ foreach($tracking_details_by_date as $date => $date_details){
753
+ if($a == 1){
754
+ $a++;
755
+ continue;
756
+ }
757
+ foreach($date_details as $key => $value){
758
+ ?>
759
+ <div class="d-flex mb-3 tracking_details_mobile_row">
760
+ <div class="d-md-flex w-100">
761
+ <div class="time mr-md-2"><span class="text-uppercase"><?php echo date_i18n( get_option( 'date_format' ), strtotime($date) ); //date( 'F j, Y', strtotime($date)); ?></span> <?php echo date_i18n( get_option( 'time_format' ), strtotime($value->datetime) ) //date( 'g:i a', strtotime($value->datetime)); ?></div>
762
+ <div class="message font-weight-demi-bold mr-md-3"><?php echo $value->message; ?></div>
763
+ <div class="location text-uppercase text-md-right ml-auto"><?php echo $value->tracking_location->city; ?></div>
764
+ </div>
765
+ </div>
766
+ <?php } } ?>
767
+ </div>
768
+ </div>
769
+ <a class="view_old_details" href="javaScript:void(0);" style="display: inline;"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
770
+ <a class="hide_old_details" href="javaScript:void(0);" style="display: none;"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
771
+ <?php } ?>
772
+ </div>
773
+ <?php }
774
+
775
+ public function layout2_tracking_details($trackind_detail_by_status_rev,$tracking_details_by_date){ ?>
776
+ <div class="tracking-details">
777
+ <div class="shipment_progress_heading_div">
778
+ <h4 class="tracking-number h4-heading text-uppercase" style=""><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
779
+ </div>
780
+ <div class="tracking_details_desktop">
781
+ <?php
782
+ $a = 1;
783
+ foreach($tracking_details_by_date as $date => $date_details){
784
+ if($a > 1)break;
785
+ ?>
786
+ <div class="tracking_group_by_date">
787
+ <div class="date text-uppercase font-weight-bold mb-3"><?php echo date_i18n( get_option( 'date_format' ), strtotime($date) ); //date( 'F j, Y', strtotime($date)); ?></div>
788
+ <?php foreach($date_details as $key => $value){ ?>
789
+ <div class="d-flex mb-3">
790
+ <div class="d-md-flex w-100">
791
+ <div class="time mr-md-2"><?php echo date_i18n( get_option( 'time_format' ), strtotime($value->datetime) ) //date( 'g:i a', strtotime($value->datetime)); ?></div>
792
+ <div class="message font-weight-demi-bold mr-md-3"><?php echo $value->message; ?></div>
793
+ <div class="location text-uppercase text-md-right ml-auto"><?php echo $value->tracking_location->city; ?></div>
794
+ </div>
795
  </div>
796
+ <?php } ?>
797
+ </div>
798
+ <?php $a++; } ?>
799
+ <div class="old-details" style="">
800
+ <?php
801
+ $a = 1;
802
+ foreach($tracking_details_by_date as $date => $date_details){
803
+ if($a == 1){
804
+ $a++;
805
+ continue;
806
+ } ?>
807
+ <div class="tracking_group_by_date">
808
+ <div class="date text-uppercase font-weight-bold mb-3"><?php echo date_i18n( get_option( 'date_format' ), strtotime($date) ); //date( 'F j, Y', strtotime($date)); ?></div>
809
+ <?php foreach($date_details as $key => $value){ ?>
810
+ <div class="d-flex mb-3">
811
+ <div class="d-md-flex w-100">
812
+ <div class="time text-gray-300 mr-md-2 text-success"><?php echo date_i18n( get_option( 'time_format' ), strtotime($value->datetime) ) //date( 'g:i a', strtotime($value->datetime)); ?></div>
813
+ <div class="message font-weight-demi-bold mr-md-3"><?php echo $value->message; ?></div>
814
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300"><?php echo $value->tracking_location->city; ?></div>
815
+ </div>
816
  </div>
817
+ <?php } ?>
818
  </div>
819
+ <?php } ?>
820
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
821
  </div>
822
+ <div class="tracking_details_mobile">
823
+ <?php
824
+ $a = 1;
825
+ foreach($tracking_details_by_date as $date => $date_details){
826
+ if($a > 1)break;
827
+ foreach($date_details as $key => $value){ ?>
828
+ <div class="d-flex mb-3 tracking_details_mobile_row">
829
+ <div class="d-md-flex w-100">
830
+ <div class="time text-gray-300 mr-md-2 text-success"><span class="text-uppercase"><?php echo date( 'F j, Y', strtotime($date)); ?></span> <?php echo date_i18n( get_option( 'time_format' ), strtotime($value->datetime) ) //date( 'g:i a', strtotime($value->datetime)); ?></div>
831
+ <div class="message font-weight-demi-bold mr-md-3"><?php echo $value->message; ?></div>
832
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300"><?php echo $value->tracking_location->city; ?></div>
833
+ </div>
834
+ </div>
835
+ <?php }
836
+ $a++;
837
+ }
838
+ ?>
839
+ <div class="old-details" style="">
840
+ <?php
841
+ $a = 1;
842
+ foreach($tracking_details_by_date as $date => $date_details){
843
+ if($a == 1){
844
+ $a++;
845
+ continue;
846
+ }
847
+ foreach($date_details as $key => $value){
848
+ ?>
849
+ <div class="d-flex mb-3 tracking_details_mobile_row">
850
+ <div class="d-md-flex w-100">
851
+ <div class="time text-gray-300 mr-md-2 text-success"><span class="text-uppercase"><?php echo date_i18n( get_option( 'date_format' ), strtotime($date) ); //date( 'F j, Y', strtotime($date)); ?></span> <?php echo date_i18n( get_option( 'time_format' ), strtotime($value->datetime) ) //date( 'g:i a', strtotime($value->datetime)); ?></div>
852
+ <div class="message font-weight-demi-bold mr-md-3"><?php echo $value->message; ?></div>
853
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300"><?php echo $value->tracking_location->city; ?></div>
854
+ </div>
855
+ </div>
856
+ <?php } } ?>
857
+ </div>
858
+ </div>
859
+ <a class="view_old_details" href="javaScript:void(0);" style="display: inline;"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
860
+ <a class="hide_old_details" href="javaScript:void(0);" style="display: none;"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
861
+ </div>
862
+ <?php }
863
 
864
  /**
865
  * convert string to date
878
 
879
  public static function preview_tracking_page(){
880
  $action = (isset($_REQUEST["action"])?$_REQUEST["action"]:"");
881
+ if($action != 'preview_tracking_page')return;
882
+ wp_head();
883
+
 
884
  $wc_ast_api_key = get_option('wc_ast_api_key');
885
  $primary_color = get_option('wc_ast_select_primary_color');
886
  $border_color = get_option('wc_ast_select_border_color');
887
+ $hide_tracking_provider_image = get_option('wc_ast_hide_tracking_provider_image');
888
+ $hide_tracking_events = get_option('wc_ast_hide_tracking_events');
889
+ $tracking_page_layout = get_option('wc_ast_select_tracking_page_layout','t_layout_1');
890
  ?>
891
 
892
  <style>
893
+ html{
894
+ background-color:#fff;
895
+ }
896
  <?php if($primary_color){ ?>
897
  .bg-secondary{
898
+ background-color:<?php echo $primary_color; ?>;
899
  }
900
  .tracker-progress-bar-with-dots .secondary .dot {
901
  border-color: <?php echo $primary_color; ?>;
902
  }
903
  .text-secondary{
904
+ color: <?php echo $primary_color; ?>;
905
  }
906
  .progress-bar.bg-secondary:before{
907
  background-color: <?php echo $primary_color; ?>;
908
  }
909
  .tracking-number{
910
+ color: <?php echo $primary_color; ?>;
911
  }
912
+ .tracking-detail .tracking-number{
913
+ color: <?php echo $primary_color; ?>;
914
+ }
915
+ .tracking-detail.tracking-layout-2{
916
+ color: <?php echo $primary_color; ?>;
917
  }
918
  <?php }
919
  if($border_color){ ?>
923
  <?php } ?>
924
  </style>
925
 
926
+ <div class="tracking-detail tracking-layout-1 col" style="<?php if($tracking_page_layout != 't_layout_1'){ echo 'display:none;'; } ?>">
927
+ <div class="tracking-header tracking-desktop-header">
928
+ <div class="col-md col-md-6">
929
+ <span class="tracking-number"><?php _e( 'Order', 'woocommerce' ); ?>: <strong>#4542</strong></span><br>
930
+ <span class="tracking-number">UPS: <strong>6A17149676461</strong></span>
931
+ <h1 class="shipment_status_heading text-success">Out For Delivery</h1>
932
+ <span class="tracking-number"><?php _e( 'Est. Delivery Date', 'woo-advanced-shipment-tracking' ); ?>: <strong>Monday, Dec 23</strong></span>
933
+ </div>
934
+ <div class="col-md col-md-6 provider-image-div" style="<?php if($hide_tracking_provider_image == 1) { echo 'display:none'; }; ?>">
935
+ <div class="text-right">
936
+ <img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/ups.png">
937
+ </div>
938
  </div>
939
+ </div>
940
+ <div class="tracking-header tracking-mobile-header">
941
+ <div class="d-flex align-items-center header_top1">
942
+ <div class="header_top_left"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/ups.png"></div>
943
+ <div class="header_top_right">
944
+ <span class="tracking-number">UPS: <strong>6A17149676461</strong></span><br>
945
+ <span class="tracking-number"><?php _e( 'Order', 'woocommerce' ); ?>: <strong>#4542</strong></span>
946
  </div>
947
  </div>
948
+ <div class="col-md col-md-6 header_top2">
949
+ <h1 class="shipment_status_heading text-success">Out For Delivery</h1>
950
+ <span class="tracking-number"><?php _e( 'Est. Delivery Date', 'woo-advanced-shipment-tracking' ); ?>: <strong>Monday, Dec 23</strong></span>
951
+ </div>
952
  </div>
953
  <div class="status-section desktop-section">
954
  <div class="tracker-progress-bar tracker-progress-bar-with-dots">
955
  <div class="progress">
956
+ <div class="progress-bar bg-success bg-success" style="width:67%"></div>
957
  </div>
958
  <div style="background-color: transparent;" class="success">
959
+ <span class="dot state-0 pre_transit past-state"></span>
960
+
 
 
961
  <span class="dot state-1 in_transit past-state"></span>
962
+
963
+ <span class="dot state-2 out_for_delivery current-state"></span>
964
+
965
+ <span class="dot state-3 delivered future-state"></span>
966
+
 
 
 
 
 
967
  </div>
968
  </div>
969
  </div>
970
  <div class="status-section mobile-section">
971
  <div class="tracker-progress-bar tracker-progress-bar-with-dots">
972
+ <div class="progress bg-success" style="height: 62%;">
973
+ <div class="progress-bar" style=""></div>
974
  </div>
975
  <div style="background-color: transparent;" class="success">
976
  <div class="dot-div">
977
+ <span class="dot state-0 pre_transit past-state"></span>
978
+ <span class="state-label past-state">Pre Transit</span>
 
 
979
  </div>
980
  <div class="dot-div">
981
+ <span class="dot state-1 in_transit past-state"></span>
982
+ <span class="state-label state-1 past-state">In Transit</span>
 
 
983
  </div>
984
  <div class="dot-div">
985
+ <span class="dot state-2 out_for_delivery current-state"></span>
986
+ <span class="state-label state-2 past-state">Out for delivery</span>
 
 
987
  </div>
988
  <div class="dot-div">
989
+ <span class="dot state-3 delivered future-state"></span>
990
+ <span class="state-label state-3 current-state">Delivered</span>
 
991
  </div>
992
  </div>
993
  </div>
994
+ </div>
 
 
995
 
996
+ <div class="tracking-details" style="<?php if($hide_tracking_events == 1){ echo 'display:none'; } ?>">
997
+ <div class="shipment_progress_heading_div">
998
+ <h4 class="tracking-number h4-heading text-uppercase" style="">Tracking Details</h4>
999
  </div>
1000
+ <div class="tracking_details_desktop">
1001
+ <div class="tracking_group_by_date">
1002
+ <div class="d-flex mb-3">
1003
+ <div class="d-md-flex w-100">
1004
+ <div class="date text-uppercase font-weight-demi-bold">December 23, 2019</div>
1005
+ <div class="time text-gray-300 mr-md-2 text-success">11:52am</div>
1006
+ <div class="message font-weight-demi-bold mr-md-3">Out for delivery</div>
1007
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1008
+ </div>
1009
+ </div>
1010
+ <div class="d-flex mb-3">
1011
+ <div class="d-md-flex w-100">
1012
+ <div class="date text-uppercase font-weight-demi-bold">December 23, 2019</div>
1013
+ <div class="time text-gray-300 mr-md-2 text-success">08:55am</div>
1014
+ <div class="message font-weight-demi-bold mr-md-3">Notice card left indicating where and when to pickup item</div>
1015
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1016
+ </div>
1017
+ </div>
1018
+ </div>
1019
+ <div class="old-details" style="">
1020
+ <div class="tracking_group_by_date">
1021
+ <div class="d-flex mb-3">
1022
+ <div class="d-md-flex w-100">
1023
+ <div class="date text-uppercase font-weight-demi-bold">December 22, 2019</div>
1024
+ <div class="time text-gray-300 mr-md-2 text-success">11:52am</div>
1025
+ <div class="message font-weight-demi-bold mr-md-3">In Transit</div>
1026
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1027
+ </div>
1028
+ </div>
1029
+ <div class="d-flex mb-3">
1030
+ <div class="d-md-flex w-100">
1031
+ <div class="date text-uppercase font-weight-demi-bold">December 22, 2019</div>
1032
+ <div class="time text-gray-300 mr-md-2 text-success">08:55am</div>
1033
+ <div class="message font-weight-demi-bold mr-md-3">Notice card left indicating where and when to pickup item</div>
1034
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1035
+ </div>
1036
+ </div>
1037
+ </div>
1038
+ </div>
1039
+ </div>
1040
+ <div class="tracking_details_mobile">
1041
+ <div class="d-flex mb-3 tracking_details_mobile_row">
1042
+ <div class="d-md-flex w-100">
1043
+ <div class="time text-gray-300 mr-md-2 text-success"><span class="text-uppercase">December</span> 23, 2019 11:52am</div>
1044
+ <div class="message font-weight-demi-bold mr-md-3">Out for delivery</div>
1045
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1046
+ </div>
1047
+ </div>
1048
+ <div class="d-flex mb-3 tracking_details_mobile_row">
1049
+ <div class="d-md-flex w-100">
1050
+ <div class="time text-gray-300 mr-md-2 text-success"><span class="text-uppercase">December</span> 23, 2019 08:55am</div>
1051
+ <div class="message font-weight-demi-bold mr-md-3">Notice card left indicating where and when to pickup item</div>
1052
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1053
+ </div>
1054
+ </div>
1055
+ <div class="old-details" style="">
1056
+ <div class="tracking_group_by_date">
1057
+ <div class="d-flex mb-3 tracking_details_mobile_row">
1058
+ <div class="d-md-flex w-100">
1059
+ <div class="time text-gray-300 mr-md-2 text-success"><span class="text-uppercase">December</span> 22, 2019 11:52am</div>
1060
+ <div class="message font-weight-demi-bold mr-md-3">In Transit</div>
1061
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1062
+ </div>
1063
+ </div>
1064
+ <div class="d-flex mb-3 tracking_details_mobile_row">
1065
+ <div class="d-md-flex w-100">
1066
+ <div class="time text-gray-300 mr-md-2 text-success"><span class="text-uppercase">December</span> 22, 2019 08:55am</div>
1067
+ <div class="message font-weight-demi-bold mr-md-3">Notice card left indicating where and when to pickup item</div>
1068
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1069
+ </div>
1070
+ </div>
1071
+ </div>
1072
+ </div>
1073
+ </div>
1074
+ <a class="view_old_details" href="javaScript:void(0);" style="display: inline;"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
1075
+ <a class="hide_old_details" href="javaScript:void(0);" style="display: none;"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
1076
+ </div>
1077
  </div>
 
1078
 
1079
+ <div class="tracking-detail tracking-layout-2 col" style="<?php if($tracking_page_layout != 't_layout_2'){ echo 'display:none;'; } ?>">
1080
+ <div class="tracking-header tracking-desktop-header">
1081
+ <div class="col-md col-md-6">
1082
+ <span class="tracking-number"><?php _e( 'Order', 'woocommerce' ); ?>: <strong>#4542</strong></span><br>
1083
+ <span class="tracking-number">UPS: <strong>6A17149676461</strong></span>
1084
+ <h1 class="shipment_status_heading text-success">Out For Delivery</h1>
1085
+ <span class="tracking-number"><?php _e( 'Est. Delivery Date', 'woo-advanced-shipment-tracking' ); ?>: <strong>Monday, Dec 23</strong></span>
1086
+ </div>
1087
+ <div class="col-md col-md-6 provider-image-div" style="<?php if($hide_tracking_provider_image == 1) { echo 'display:none'; }; ?>">
1088
+ <div class="text-right">
1089
+ <img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/ups.png">
1090
+ </div>
1091
+ </div>
1092
  </div>
1093
+ <div class="tracking-header tracking-mobile-header">
1094
+ <div class="d-flex align-items-center header_top1">
1095
+ <div class="header_top_left"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/ups.png"></div>
1096
+ <div class="header_top_right">
1097
+ <span class="tracking-number">UPS: <strong>6A17149676461</strong></span><br>
1098
+ <span class="tracking-number"><?php _e( 'Order', 'woocommerce' ); ?>: <strong>#4542</strong></span>
1099
+ </div>
1100
+ </div>
1101
+ <div class="col-md col-md-6 header_top2">
1102
+ <h1 class="shipment_status_heading text-success">Out For Delivery</h1>
1103
+ <span class="tracking-number"><?php _e( 'Est. Delivery Date', 'woo-advanced-shipment-tracking' ); ?>: <strong>Monday, Dec 23</strong></span>
1104
+ </div>
1105
+ </div>
1106
+
1107
+ <div class="tracker-progress-bar tracker-progress-bar-flat">
1108
+ <div class="progress">
1109
+ <div class="progress-bar bg-success" style="width: 67%;"></div>
1110
+ </div>
1111
+ </div>
1112
+ <div class="tracking-details" style="<?php if($hide_tracking_events == 1){ echo 'display:none'; } ?>">
1113
+ <div class="shipment_progress_heading_div">
1114
+ <h4 class="tracking-number h4-heading text-uppercase" style="">Tracking Details</h4>
1115
+ </div>
1116
+ <div class="tracking_details_desktop">
1117
+ <div class="tracking_group_by_date">
1118
+ <div class="date text-uppercase font-weight-bold mb-3">December 23, 2019</div>
1119
+ <div class="d-flex mb-3">
1120
+ <div class="d-md-flex w-100">
1121
+ <div class="time text-gray-300 mr-md-2 text-success">11:52am</div>
1122
+ <div class="message font-weight-demi-bold mr-md-3">Out for delivery</div>
1123
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1124
+ </div>
1125
+ </div>
1126
+ <div class="d-flex mb-3">
1127
+ <div class="d-md-flex w-100">
1128
+ <div class="time text-gray-300 mr-md-2 text-success">08:55am</div>
1129
+ <div class="message font-weight-demi-bold mr-md-3">Notice card left indicating where and when to pickup item</div>
1130
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1131
+ </div>
1132
+ </div>
1133
+ </div>
1134
+ <div class="old-details" style="">
1135
+ <div class="tracking_group_by_date">
1136
+ <div class="date text-uppercase font-weight-bold mb-3">December 22, 2019</div>
1137
+ <div class="d-flex mb-3">
1138
+ <div class="d-md-flex w-100">
1139
+ <div class="time text-gray-300 mr-md-2 text-success">11:52am</div>
1140
+ <div class="message font-weight-demi-bold mr-md-3">In Transit</div>
1141
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1142
+ </div>
1143
+ </div>
1144
+ <div class="d-flex mb-3">
1145
+ <div class="d-md-flex w-100">
1146
+ <div class="time text-gray-300 mr-md-2 text-success">08:55am</div>
1147
+ <div class="message font-weight-demi-bold mr-md-3">Notice card left indicating where and when to pickup item</div>
1148
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1149
+ </div>
1150
+ </div>
1151
+ </div>
1152
+ </div>
1153
+ </div>
1154
+ <div class="tracking_details_mobile">
1155
+ <div class="d-flex mb-3 tracking_details_mobile_row">
1156
+ <div class="d-md-flex w-100">
1157
+ <div class="time text-gray-300 mr-md-2 text-success"><span class="text-uppercase">December</span> 23, 2019 11:52am</div>
1158
+ <div class="message font-weight-demi-bold mr-md-3">Out for delivery</div>
1159
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1160
+ </div>
1161
+ </div>
1162
+ <div class="d-flex mb-3 tracking_details_mobile_row">
1163
+ <div class="d-md-flex w-100">
1164
+ <div class="time text-gray-300 mr-md-2 text-success"><span class="text-uppercase">December</span> 23, 2019 08:55am</div>
1165
+ <div class="message font-weight-demi-bold mr-md-3">Notice card left indicating where and when to pickup item</div>
1166
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1167
+ </div>
1168
+ </div>
1169
+ <div class="old-details" style="">
1170
+ <div class="tracking_group_by_date">
1171
+ <div class="d-flex mb-3 tracking_details_mobile_row">
1172
+ <div class="d-md-flex w-100">
1173
+ <div class="time text-gray-300 mr-md-2 text-success"><span class="text-uppercase">December</span> 22, 2019 11:52am</div>
1174
+ <div class="message font-weight-demi-bold mr-md-3">In Transit</div>
1175
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1176
+ </div>
1177
+ </div>
1178
+ <div class="d-flex mb-3 tracking_details_mobile_row">
1179
+ <div class="d-md-flex w-100">
1180
+ <div class="time text-gray-300 mr-md-2 text-success"><span class="text-uppercase">December</span> 22, 2019 08:55am</div>
1181
+ <div class="message font-weight-demi-bold mr-md-3">Notice card left indicating where and when to pickup item</div>
1182
+ <div class="location text-uppercase text-md-right ml-auto text-gray-300">DAWSON CREEK,BC</div>
1183
+ </div>
1184
+ </div>
1185
+ </div>
1186
+ </div>
1187
+ </div>
1188
+ <a class="view_old_details" href="javaScript:void(0);" style="display: inline;"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
1189
+ <a class="hide_old_details" href="javaScript:void(0);" style="display: none;"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
1190
+ </div>
1191
+ </div>
1192
+ <?php
1193
+ $remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
1194
+ ?>
1195
+ <div class="trackship_branding" style="<?php if($remove_trackship_branding == 1){ echo 'display:none'; }?>">
1196
+ <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
1197
+ </div>
1198
+ <?php
1199
+ //wp_footer();
1200
  exit;
1201
  }
1202
  }
includes/class-wc-advanced-shipment-tracking-install.php CHANGED
@@ -58,11 +58,15 @@ class WC_Advanced_Shipment_Tracking_Install {
58
  add_action( 'wp_ajax_ast_hide_admin_menu_tooltip', array( $this, 'ast_mark_admin_menu_tooltip_hidden') );
59
  $wc_ast_api_key = get_option('wc_ast_api_key');
60
 
 
 
 
 
 
 
 
61
  if(!$wc_ast_api_key){
62
- add_action( 'adminmenu', array( $this, 'admin_notice_menu_tooltip') );
63
- //require_once( 'vendor/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php' );
64
- //add_action( 'admin_init', array( 'PAnD', 'init' ) );
65
- //add_action( 'admin_notices', array( $this, 'admin_notice_after_update' ) );
66
  }
67
  }
68
 
@@ -82,29 +86,7 @@ class WC_Advanced_Shipment_Tracking_Install {
82
  // Add transient to trigger redirect.
83
  set_transient( '_ast_activation_redirect', 1, 30 );
84
 
85
- $woo_shippment_table_name = $wpdb->prefix . 'woo_shippment_provider';
86
- $woo_shippment_status_email_table = $wpdb->prefix . 'woo_shipment_status_email';
87
- // create the ECPT metabox database table
88
- if($wpdb->get_var("show tables like '$woo_shippment_status_email_table'") != $woo_shippment_status_email_table) {
89
- $charset_collate = $wpdb->get_charset_collate();
90
-
91
- $sql = "CREATE TABLE $woo_shippment_status_email_table (
92
- id int(11) NOT NULL AUTO_INCREMENT,
93
- enable int(11) NOT NULL DEFAULT '1',
94
- email_trigger text NOT NULL,
95
- email_label text NOT NULL,
96
- email_to text NOT NULL,
97
- shippment_status text NOT NULL,
98
- order_status text NOT NULL,
99
- email_subject text NOT NULL,
100
- email_heading text NOT NULL,
101
- email_content text NOT NULL,
102
- PRIMARY KEY (id)
103
- ) $charset_collate;";
104
- //echo $sql;exit;
105
- require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
106
- dbDelta( $sql );
107
- }
108
  if($wpdb->get_var("show tables like '$woo_shippment_table_name'") != $woo_shippment_table_name)
109
  {
110
  $charset_collate = $wpdb->get_charset_collate();
@@ -113,15 +95,14 @@ class WC_Advanced_Shipment_Tracking_Install {
113
  id mediumint(9) NOT NULL AUTO_INCREMENT,
114
  provider_name varchar(500) DEFAULT '' NOT NULL,
115
  ts_slug text NULL DEFAULT NULL,
116
- provider_url varchar(500) DEFAULT '' NOT NULL,
117
- shipping_country varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
118
- shipping_default tinyint(4) NOT NULL DEFAULT '0',
119
  custom_thumb_id int(11) NOT NULL DEFAULT '0',
120
  display_in_order tinyint(4) NOT NULL DEFAULT '1',
121
  sort_order int(11) NOT NULL DEFAULT '0',
122
  PRIMARY KEY (id)
123
- ) $charset_collate;";
124
- //echo $sql;exit;
125
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
126
  dbDelta( $sql );
127
 
@@ -1525,7 +1506,224 @@ class WC_Advanced_Shipment_Tracking_Install {
1525
  }
1526
  update_option( 'wc_ast_unclude_tracking_info', $data_array );
1527
  update_option( 'wc_advanced_shipment_tracking', '3.5');
1528
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1529
  }
1530
  }
1531
 
@@ -1615,12 +1813,117 @@ class WC_Advanced_Shipment_Tracking_Install {
1615
  }
1616
  }
1617
  }
1618
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1619
  /*
1620
  * Display admin notice on plugin install or update
1621
  */
1622
  public function admin_notice_after_update(){
1623
- if ( ! PAnD::is_admin_notice_active( 'disable-ts-notice-new-forever' ) ) {
1624
  return;
1625
  }
1626
  ?>
@@ -1702,24 +2005,20 @@ class WC_Advanced_Shipment_Tracking_Install {
1702
  box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
1703
  }
1704
  </style>
1705
- <div data-dismissible="disable-ts-notice-new-forever" class="notice updated is-dismissible ast-admin-notice">
1706
- <div class="ast-admin-notice-inner">
1707
- <div class="ast-admin-notice-icon">
1708
- <img class="notice-logo" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url().'/assets/images/trackship-400.png'; ?>" alt="Trackship Logo" />
1709
- </div>
1710
-
1711
- <div class="ast-admin-notice-content">
1712
- <h3>Thanks for using the Advanced Shipment Tracking!</h3>
1713
- <p>
1714
- <p>Add TrackShip integration and automate your post shipping operations!</p>
1715
- <a href="https://trackship.info/" target="_blank">Try trackship with 50 free trackers >></a>
1716
- </p>
1717
- </div>
1718
-
1719
- <div class="trackship-install-now">
1720
- <a class="button button-primary btn_green2 btn_large" href="https://trackship.info/" target="_blank">SIGNUP NOW</a>
1721
- </div>
1722
- </div>
1723
  </div>
1724
  <?php
1725
  }
@@ -1916,6 +2215,7 @@ class WC_Advanced_Shipment_Tracking_Install {
1916
  </script>
1917
  <?php
1918
  }
 
1919
  /**
1920
  * Store the time when the float bar was hidden so it won't show again for 14 days.
1921
  */
@@ -1924,4 +2224,31 @@ class WC_Advanced_Shipment_Tracking_Install {
1924
  update_option( 'ast_admin_menu_tooltip', time() );
1925
  wp_send_json_success();
1926
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1927
  }
58
  add_action( 'wp_ajax_ast_hide_admin_menu_tooltip', array( $this, 'ast_mark_admin_menu_tooltip_hidden') );
59
  $wc_ast_api_key = get_option('wc_ast_api_key');
60
 
61
+ require_once( 'vendor/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php' );
62
+ add_action( 'admin_init', array( 'PAnD', 'init' ) );
63
+
64
+ if ( !is_plugin_active( 'ast-tracking-per-order-items/ast-tracking-per-order-items.php' ) ) {
65
+ add_action( 'admin_notices', array( $this, 'admin_notice_for_addon' ) );
66
+ }
67
+ add_action( 'admin_notices', array( $this, 'admin_notice_after_update' ) );
68
  if(!$wc_ast_api_key){
69
+ add_action( 'adminmenu', array( $this, 'admin_notice_menu_tooltip') );
 
 
 
70
  }
71
  }
72
 
86
  // Add transient to trigger redirect.
87
  set_transient( '_ast_activation_redirect', 1, 30 );
88
 
89
+ $woo_shippment_table_name = $this->table;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  if($wpdb->get_var("show tables like '$woo_shippment_table_name'") != $woo_shippment_table_name)
91
  {
92
  $charset_collate = $wpdb->get_charset_collate();
95
  id mediumint(9) NOT NULL AUTO_INCREMENT,
96
  provider_name varchar(500) DEFAULT '' NOT NULL,
97
  ts_slug text NULL DEFAULT NULL,
98
+ provider_url varchar(500) DEFAULT '' NULL,
99
+ shipping_country varchar(45) DEFAULT '' NULL,
100
+ shipping_default tinyint(4) NULL DEFAULT '0',
101
  custom_thumb_id int(11) NOT NULL DEFAULT '0',
102
  display_in_order tinyint(4) NOT NULL DEFAULT '1',
103
  sort_order int(11) NOT NULL DEFAULT '0',
104
  PRIMARY KEY (id)
105
+ ) $charset_collate;";
 
106
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
107
  dbDelta( $sql );
108
 
1506
  }
1507
  update_option( 'wc_ast_unclude_tracking_info', $data_array );
1508
  update_option( 'wc_advanced_shipment_tracking', '3.5');
1509
+ }
1510
+ if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.6', '<') ){
1511
+ set_theme_mod('display_shipment_provider_name', 1);
1512
+ set_theme_mod('select_tracking_template', 'default_table');
1513
+ set_theme_mod('simple_provider_font_size', '14');
1514
+ set_theme_mod('simple_provider_font_color', '#575f6d');
1515
+ set_theme_mod('show_provider_border', 1);
1516
+ set_theme_mod('provider_border_color', '#e0e0e0');
1517
+ update_option( 'wc_advanced_shipment_tracking', '3.6');
1518
+ }
1519
+ if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.7', '<') ){
1520
+ global $wpdb;
1521
+
1522
+ $woo_shippment_table_name = $this->table;
1523
+ if($wpdb->get_var("show tables like '$woo_shippment_table_name'") != $woo_shippment_table_name)
1524
+ {
1525
+ $charset_collate = $wpdb->get_charset_collate();
1526
+
1527
+ $sql = "CREATE TABLE $woo_shippment_table_name (
1528
+ id mediumint(9) NOT NULL AUTO_INCREMENT,
1529
+ provider_name varchar(500) DEFAULT '' NOT NULL,
1530
+ ts_slug text NULL DEFAULT NULL,
1531
+ provider_url varchar(500) DEFAULT '' NULL,
1532
+ shipping_country varchar(45) DEFAULT '' NULL,
1533
+ shipping_default tinyint(4) NULL DEFAULT '0',
1534
+ custom_thumb_id int(11) NOT NULL DEFAULT '0',
1535
+ display_in_order tinyint(4) NOT NULL DEFAULT '1',
1536
+ sort_order int(11) NOT NULL DEFAULT '0',
1537
+ PRIMARY KEY (id)
1538
+ ) $charset_collate;";
1539
+ require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
1540
+ dbDelta( $sql );
1541
+
1542
+ $providers = $this->provider_list();
1543
+
1544
+ foreach($providers as $shipping_provider){
1545
+ $shipping_provider['provider_name'];
1546
+ $success = $wpdb->insert($woo_shippment_table_name, array(
1547
+ "provider_name" => $shipping_provider['provider_name'],
1548
+ "ts_slug" => $shipping_provider['ts_slug'],
1549
+ "provider_url" => $shipping_provider['provider_url'],
1550
+ "shipping_country" => $shipping_provider['shipping_country'],
1551
+ "shipping_default" => $shipping_provider['shipping_default'],
1552
+ ));
1553
+ }
1554
+ }
1555
+ update_option( 'wc_advanced_shipment_tracking', '3.7');
1556
+ }
1557
+ if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.8', '<') ){
1558
+ $wcast_customizer_settings = new wcast_initialise_customizer_settings();
1559
+ $opt = array(
1560
+ 'display_tracking_info_at' => get_theme_mod('display_tracking_info_at',$wcast_customizer_settings->defaults['display_tracking_info_at']),
1561
+ 'select_tracking_template' => get_theme_mod('select_tracking_template',$wcast_customizer_settings->defaults['select_tracking_template']),
1562
+ 'header_text_change' => get_theme_mod('header_text_change',$wcast_customizer_settings->defaults['header_text_change']),
1563
+ 'additional_header_text' => get_theme_mod('additional_header_text',$wcast_customizer_settings->defaults['additional_header_text']),
1564
+ 'simple_provider_font_size' => get_theme_mod('simple_provider_font_size',$wcast_customizer_settings->defaults['simple_provider_font_size']),
1565
+ 'simple_provider_font_color' => get_theme_mod('simple_provider_font_color',$wcast_customizer_settings->defaults['simple_provider_font_color']),
1566
+ 'show_provider_border' => get_theme_mod('show_provider_border',$wcast_customizer_settings->defaults['show_provider_border']),
1567
+ 'provider_border_color' => get_theme_mod('provider_border_color',$wcast_customizer_settings->defaults['provider_border_color']),
1568
+ 'display_shipment_provider_name' => get_theme_mod('display_shipment_provider_name',$wcast_customizer_settings->defaults['display_shipment_provider_name']),
1569
+ 'display_shipment_provider_image' => get_theme_mod('display_shipment_provider_image',$wcast_customizer_settings->defaults['display_shipment_provider_image']),
1570
+ 'remove_date_from_tracking' => get_theme_mod('remove_date_from_tracking',$wcast_customizer_settings->defaults['remove_date_from_tracking']),
1571
+ 'tracking_number_link' => get_theme_mod('tracking_number_link',$wcast_customizer_settings->defaults['tracking_number_link']),
1572
+ 'hide_table_header' => get_theme_mod('hide_table_header',$wcast_customizer_settings->defaults['hide_table_header']),'provider_header_text' => get_theme_mod('provider_header_text',$wcast_customizer_settings->defaults['provider_header_text']),
1573
+ 'tracking_number_header_text' => get_theme_mod('tracking_number_header_text',$wcast_customizer_settings->defaults['tracking_number_header_text']),
1574
+ 'shipped_date_header_text' => get_theme_mod('shipped_date_header_text',$wcast_customizer_settings->defaults['shipped_date_header_text']),
1575
+ 'show_track_label' => get_theme_mod('show_track_label',$wcast_customizer_settings->defaults['show_track_label']),'track_header_text' => get_theme_mod('track_header_text',$wcast_customizer_settings->defaults['track_header_text']),'table_header_font_size' => get_theme_mod('table_header_font_size',$wcast_customizer_settings->defaults['table_header_font_size']),
1576
+ 'table_header_font_color' => get_theme_mod('table_header_font_color',$wcast_customizer_settings->defaults['table_header_font_color']),
1577
+ 'table_padding' => get_theme_mod('table_padding',$wcast_customizer_settings->defaults['table_padding']),'table_bg_color' => get_theme_mod('table_bg_color',$wcast_customizer_settings->defaults['table_bg_color']),'table_border_color' => get_theme_mod('table_border_color',$wcast_customizer_settings->defaults['table_border_color']),
1578
+ 'table_border_size' => get_theme_mod('table_border_size',$wcast_customizer_settings->defaults['table_border_size']),'header_content_text_align' => get_theme_mod('header_content_text_align',$wcast_customizer_settings->defaults['header_content_text_align']),
1579
+ 'table_content_font_color' => get_theme_mod('table_content_font_color',$wcast_customizer_settings->defaults['table_content_font_color']),
1580
+ 'table_content_font_size' => get_theme_mod('table_content_font_size',$wcast_customizer_settings->defaults['table_content_font_size']),
1581
+ 'table_content_line_height' => get_theme_mod('table_content_line_height',$wcast_customizer_settings->defaults['table_content_line_height']),
1582
+ 'table_content_font_weight' => get_theme_mod('table_content_font_weight',$wcast_customizer_settings->defaults['table_content_font_weight']),
1583
+ 'tracking_link_font_color' => get_theme_mod('tracking_link_font_color',$wcast_customizer_settings->defaults['tracking_link_font_color']),
1584
+ 'tracking_link_bg_color' => get_theme_mod('tracking_link_bg_color',$wcast_customizer_settings->defaults['tracking_link_bg_color']),
1585
+ 'tracking_link_border' => get_theme_mod('tracking_link_border',$wcast_customizer_settings->defaults['tracking_link_border']),
1586
+ );
1587
+ update_option('tracking_info_settings',$opt);
1588
+
1589
+ $wcast_delivered_order_email = new wcast_initialise_customizer_email();
1590
+ $woocommerce_customer_delivered_order_settings = get_option('woocommerce_customer_delivered_order_settings');
1591
+ $delivered_email_opt = array(
1592
+ 'enabled' => $woocommerce_customer_delivered_order_settings['enabled'],
1593
+ 'subject' => $woocommerce_customer_delivered_order_settings['subject'],
1594
+ 'heading' => $woocommerce_customer_delivered_order_settings['heading'],
1595
+ 'wcast_delivered_email_content' => get_theme_mod('wcast_delivered_email_content',$wcast_delivered_order_email->defaults['wcast_delivered_email_content']),
1596
+ 'wcast_show_tracking_details' => get_theme_mod('wcast_show_tracking_details',$wcast_delivered_order_email->defaults['wcast_show_tracking_details']),
1597
+ 'wcast_show_order_details' => get_theme_mod('wcast_show_order_details',$wcast_delivered_order_email->defaults['wcast_show_order_details']),
1598
+ 'wcast_show_shipping_address' => get_theme_mod('wcast_show_shipping_address',$wcast_delivered_order_email->defaults['wcast_show_shipping_address']),
1599
+ 'wcast_show_billing_address' => get_theme_mod('wcast_show_billing_address',$wcast_delivered_order_email->defaults['wcast_show_billing_address']),
1600
+ 'wcast_enable_delivered_ga_tracking' => get_theme_mod('wcast_enable_delivered_ga_tracking',''),
1601
+ 'wcast_delivered_analytics_link' => get_theme_mod('wcast_delivered_analytics_link',''),
1602
+ );
1603
+ update_option( 'woocommerce_customer_delivered_order_settings', $delivered_email_opt );
1604
+
1605
+ $wcast_partial_shipped_customizer_email = new wcast_partial_shipped_customizer_email();
1606
+ $woocommerce_customer_partial_shipped_order_settings = get_option('woocommerce_customer_partial_shipped_order_settings');
1607
+ $partial_shipped_email_opt = array(
1608
+ 'enabled' => $woocommerce_customer_partial_shipped_order_settings['enabled'],
1609
+ 'subject' => $woocommerce_customer_partial_shipped_order_settings['subject'],
1610
+ 'heading' => $woocommerce_customer_partial_shipped_order_settings['heading'],
1611
+ 'wcast_partial_shipped_email_content' => get_theme_mod('wcast_partial_shipped_email_content',$wcast_partial_shipped_customizer_email->defaults['wcast_partial_shipped_email_content']),
1612
+ );
1613
+ update_option( 'woocommerce_customer_partial_shipped_order_settings', $partial_shipped_email_opt );
1614
+
1615
+ $wcast_updated_tracking_customizer_email = new wcast_updated_tracking_customizer_email();
1616
+ $woocommerce_customer_updated_tracking_order_settings = get_option('woocommerce_customer_updated_tracking_order_settings');
1617
+ $updated_tracking_email_opt = array(
1618
+ 'enabled' => $woocommerce_customer_updated_tracking_order_settings['enabled'],
1619
+ 'subject' => $woocommerce_customer_updated_tracking_order_settings['subject'],
1620
+ 'heading' => $woocommerce_customer_updated_tracking_order_settings['heading'],
1621
+ 'wcast_updated_tracking_email_content' => get_theme_mod('wcast_updated_tracking_email_content',$wcast_updated_tracking_customizer_email->defaults['wcast_updated_tracking_email_content']),
1622
+ );
1623
+ update_option( 'woocommerce_customer_updated_tracking_order_settings', $updated_tracking_email_opt );
1624
+
1625
+ $wcast_intransit_customizer_email = new wcast_intransit_customizer_email();
1626
+ $in_transit_email_opt = array(
1627
+ 'wcast_enable_intransit_email' => get_theme_mod('wcast_enable_intransit_email',$wcast_intransit_customizer_email->defaults['wcast_enable_intransit_email']),
1628
+ 'wcast_intransit_email_to' => get_theme_mod('wcast_intransit_email_to',$wcast_intransit_customizer_email->defaults['wcast_intransit_email_to']),
1629
+ 'wcast_intransit_email_subject' => get_theme_mod('wcast_intransit_email_subject',$wcast_intransit_customizer_email->defaults['wcast_intransit_email_subject']),
1630
+ 'wcast_intransit_email_heading' => get_theme_mod('wcast_intransit_email_heading',$wcast_intransit_customizer_email->defaults['wcast_intransit_email_heading']),
1631
+ 'wcast_intransit_show_tracking_details' => get_theme_mod('wcast_intransit_show_tracking_details',$wcast_intransit_customizer_email->defaults['wcast_intransit_show_tracking_details']),
1632
+ 'wcast_intransit_show_order_details' => get_theme_mod('wcast_intransit_show_order_details',$wcast_intransit_customizer_email->defaults['wcast_intransit_show_order_details']),
1633
+ 'wcast_intransit_show_billing_address' => get_theme_mod('wcast_intransit_show_billing_address',$wcast_intransit_customizer_email->defaults['wcast_intransit_show_billing_address']),
1634
+ 'wcast_intransit_show_shipping_address' => get_theme_mod('wcast_intransit_show_shipping_address',$wcast_intransit_customizer_email->defaults['wcast_intransit_show_shipping_address']),
1635
+ 'wcast_intransit_email_content' => get_theme_mod('wcast_intransit_email_content',$wcast_intransit_customizer_email->defaults['wcast_intransit_email_content']),
1636
+ 'wcast_intransit_analytics_link' => get_theme_mod('wcast_intransit_analytics_link',''),
1637
+ );
1638
+ update_option( 'wcast_intransit_email_settings', $in_transit_email_opt );
1639
+
1640
+ $wcast_returntosender_customizer_email = new wcast_returntosender_customizer_email();
1641
+ $returntosender_email_opt = array(
1642
+ 'wcast_enable_returntosender_email' => get_theme_mod('wcast_enable_returntosender_email',$wcast_returntosender_customizer_email->defaults['wcast_enable_returntosender_email']),
1643
+ 'wcast_returntosender_email_to' => get_theme_mod('wcast_returntosender_email_to',$wcast_returntosender_customizer_email->defaults['wcast_returntosender_email_to']),
1644
+ 'wcast_returntosender_email_subject' => get_theme_mod('wcast_returntosender_email_subject',$wcast_returntosender_customizer_email->defaults['wcast_returntosender_email_subject']),
1645
+ 'wcast_returntosender_email_heading' => get_theme_mod('wcast_returntosender_email_heading',$wcast_returntosender_customizer_email->defaults['wcast_returntosender_email_heading']),
1646
+ 'wcast_returntosender_show_tracking_details' => get_theme_mod('wcast_returntosender_show_tracking_details',$wcast_returntosender_customizer_email->defaults['wcast_returntosender_show_tracking_details']),
1647
+ 'wcast_returntosender_show_order_details' => get_theme_mod('wcast_returntosender_show_order_details',$wcast_returntosender_customizer_email->defaults['wcast_returntosender_show_order_details']),
1648
+ 'wcast_returntosender_show_billing_address' => get_theme_mod('wcast_returntosender_show_billing_address',$wcast_returntosender_customizer_email->defaults['wcast_returntosender_show_billing_address']), 'wcast_returntosender_show_shipping_address' => get_theme_mod('wcast_returntosender_show_shipping_address',$wcast_returntosender_customizer_email->defaults['wcast_returntosender_show_shipping_address']),
1649
+ 'wcast_returntosender_email_content' => get_theme_mod('wcast_returntosender_email_content',$wcast_returntosender_customizer_email->defaults['wcast_returntosender_email_content']),
1650
+ 'wcast_returntosender_analytics_link' => get_theme_mod('wcast_returntosender_analytics_link',''),
1651
+ );
1652
+ update_option( 'wcast_returntosender_email_settings', $returntosender_email_opt );
1653
+
1654
+ $wcast_availableforpickup_customizer_email = new wcast_availableforpickup_customizer_email();
1655
+ $availableforpickup_email_opt = array(
1656
+ 'wcast_enable_availableforpickup_email' => get_theme_mod('wcast_enable_availableforpickup_email',$wcast_availableforpickup_customizer_email->defaults['wcast_enable_availableforpickup_email']),
1657
+ 'wcast_availableforpickup_email_to' => get_theme_mod('wcast_availableforpickup_email_to',$wcast_availableforpickup_customizer_email->defaults['wcast_availableforpickup_email_to']),
1658
+ 'wcast_availableforpickup_email_subject' => get_theme_mod('wcast_availableforpickup_email_subject',$wcast_availableforpickup_customizer_email->defaults['wcast_availableforpickup_email_subject']),
1659
+ 'wcast_availableforpickup_email_heading' => get_theme_mod('wcast_availableforpickup_email_heading',$wcast_availableforpickup_customizer_email->defaults['wcast_availableforpickup_email_heading']),
1660
+ 'wcast_availableforpickup_show_tracking_details' => get_theme_mod('wcast_availableforpickup_show_tracking_details',$wcast_availableforpickup_customizer_email->defaults['wcast_availableforpickup_show_tracking_details']),
1661
+ 'wcast_availableforpickup_show_order_details' => get_theme_mod('wcast_availableforpickup_show_order_details',$wcast_availableforpickup_customizer_email->defaults['wcast_availableforpickup_show_order_details']),
1662
+ 'wcast_availableforpickup_show_billing_address' => get_theme_mod('wcast_availableforpickup_show_billing_address',$wcast_availableforpickup_customizer_email->defaults['wcast_availableforpickup_show_billing_address']),'wcast_availableforpickup_show_shipping_address' => get_theme_mod('wcast_availableforpickup_show_shipping_address',$wcast_availableforpickup_customizer_email->defaults['wcast_availableforpickup_show_shipping_address']),
1663
+ 'wcast_availableforpickup_email_content' => get_theme_mod('wcast_availableforpickup_email_content',$wcast_availableforpickup_customizer_email->defaults['wcast_availableforpickup_email_content']),
1664
+ 'wcast_availableforpickup_analytics_link' => get_theme_mod('wcast_availableforpickup_analytics_link',''),
1665
+ );
1666
+ update_option( 'wcast_availableforpickup_email_settings', $availableforpickup_email_opt );
1667
+
1668
+ $wcast_outfordelivery_customizer_email = new wcast_outfordelivery_customizer_email();
1669
+ $outfordelivery_email_opt = array(
1670
+ 'wcast_enable_outfordelivery_email' => get_theme_mod('wcast_enable_outfordelivery_email',$wcast_outfordelivery_customizer_email->defaults['wcast_enable_outfordelivery_email']),
1671
+ 'wcast_outfordelivery_email_to' => get_theme_mod('wcast_outfordelivery_email_to',$wcast_outfordelivery_customizer_email->defaults['wcast_outfordelivery_email_to']),
1672
+ 'wcast_outfordelivery_email_subject' => get_theme_mod('wcast_outfordelivery_email_subject',$wcast_outfordelivery_customizer_email->defaults['wcast_outfordelivery_email_subject']),
1673
+ 'wcast_outfordelivery_email_heading' => get_theme_mod('wcast_outfordelivery_email_heading',$wcast_outfordelivery_customizer_email->defaults['wcast_outfordelivery_email_heading']),
1674
+ 'wcast_outfordelivery_show_tracking_details' => get_theme_mod('wcast_outfordelivery_show_tracking_details',$wcast_outfordelivery_customizer_email->defaults['wcast_outfordelivery_show_tracking_details']),
1675
+ 'wcast_outfordelivery_show_order_details' => get_theme_mod('wcast_outfordelivery_show_order_details',$wcast_outfordelivery_customizer_email->defaults['wcast_outfordelivery_show_order_details']),
1676
+ 'wcast_outfordelivery_show_billing_address' => get_theme_mod('wcast_outfordelivery_show_billing_address',$wcast_outfordelivery_customizer_email->defaults['wcast_outfordelivery_show_billing_address']), 'wcast_outfordelivery_show_shipping_address' => get_theme_mod('wcast_outfordelivery_show_shipping_address',$wcast_outfordelivery_customizer_email->defaults['wcast_outfordelivery_show_shipping_address']),
1677
+ 'wcast_outfordelivery_email_content' => get_theme_mod('wcast_outfordelivery_email_content',$wcast_outfordelivery_customizer_email->defaults['wcast_outfordelivery_email_content']),
1678
+ 'wcast_outfordelivery_analytics_link' => get_theme_mod('wcast_outfordelivery_analytics_link',''),
1679
+ );
1680
+ update_option( 'wcast_outfordelivery_email_settings', $outfordelivery_email_opt );
1681
+
1682
+ $wcast_failure_customizer_email = new wcast_failure_customizer_email();
1683
+ $failure_email_opt = array(
1684
+ 'wcast_enable_failure_email' => get_theme_mod('wcast_enable_failure_email',$wcast_failure_customizer_email->defaults['wcast_enable_failure_email']),
1685
+ 'wcast_failure_email_to' => get_theme_mod('wcast_failure_email_to',$wcast_failure_customizer_email->defaults['wcast_failure_email_to']),
1686
+ 'wcast_failure_email_subject' => get_theme_mod('wcast_failure_email_subject',$wcast_failure_customizer_email->defaults['wcast_failure_email_subject']),
1687
+ 'wcast_failure_email_heading' => get_theme_mod('wcast_failure_email_heading',$wcast_failure_customizer_email->defaults['wcast_failure_email_heading']),
1688
+ 'wcast_failure_show_tracking_details' => get_theme_mod('wcast_failure_show_tracking_details',$wcast_failure_customizer_email->defaults['wcast_failure_show_tracking_details']),
1689
+ 'wcast_failure_show_order_details' => get_theme_mod('wcast_failure_show_order_details',$wcast_failure_customizer_email->defaults['wcast_failure_show_order_details']),
1690
+ 'wcast_failure_show_billing_address' => get_theme_mod('wcast_failure_show_billing_address',$wcast_failure_customizer_email->defaults['wcast_failure_show_billing_address']),
1691
+ 'wcast_failure_show_shipping_address' => get_theme_mod('wcast_failure_show_shipping_address',$wcast_failure_customizer_email->defaults['wcast_failure_show_shipping_address']),
1692
+ 'wcast_failure_email_content' => get_theme_mod('wcast_failure_email_content',$wcast_failure_customizer_email->defaults['wcast_failure_email_content']),
1693
+ 'wcast_failure_analytics_link' => get_theme_mod('wcast_failure_analytics_link',''),
1694
+ );
1695
+ update_option( 'wcast_failure_email_settings', $failure_email_opt );
1696
+
1697
+ $wcast_delivered_customizer_email = new wcast_delivered_customizer_email();
1698
+ $delivered_status_email_opt = array(
1699
+ 'wcast_enable_delivered_status_email' => get_theme_mod('wcast_enable_delivered_status_email',$wcast_delivered_customizer_email->defaults['wcast_enable_delivered_status_email']),
1700
+ 'wcast_delivered_status_email_to' => get_theme_mod('wcast_delivered_status_email_to',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_to']),
1701
+ 'wcast_delivered_status_email_subject' => get_theme_mod('wcast_delivered_status_email_subject',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_subject']),
1702
+ 'wcast_delivered_status_email_heading' => get_theme_mod('wcast_delivered_status_email_heading',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_heading']),
1703
+ 'wcast_delivered_status_show_tracking_details' => get_theme_mod('wcast_delivered_status_show_tracking_details',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_tracking_details']),
1704
+ 'wcast_delivered_status_show_order_details' => get_theme_mod('wcast_delivered_status_show_order_details',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_order_details']),
1705
+ 'wcast_delivered_status_show_billing_address' => get_theme_mod('wcast_delivered_status_show_billing_address',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_billing_address']), 'wcast_delivered_status_show_shipping_address' => get_theme_mod('wcast_delivered_status_show_shipping_address',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_shipping_address']),
1706
+ 'wcast_delivered_status_email_content' => get_theme_mod('wcast_delivered_status_email_content',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_content']),
1707
+ 'wcast_delivered_status_analytics_link' => get_theme_mod('wcast_delivered_status_analytics_link',''),
1708
+ );
1709
+ update_option( 'wcast_delivered_email_settings', $delivered_status_email_opt );
1710
+
1711
+ $wcast_late_shipments_customizer_email = new wcast_late_shipments_customizer_email();
1712
+ $late_shipments_email_opt = array(
1713
+ 'wcast_enable_late_shipments_admin_email' => get_theme_mod('wcast_enable_late_shipments_admin_email',$wcast_late_shipments_customizer_email->defaults['wcast_enable_late_shipments_admin_email']),
1714
+ 'wcast_late_shipments_days' => get_theme_mod('wcast_late_shipments_days',$wcast_late_shipments_customizer_email->defaults['wcast_late_shipments_days']),
1715
+ 'wcast_late_shipments_email_to' => get_theme_mod('wcast_late_shipments_email_to',$wcast_late_shipments_customizer_email->defaults['wcast_late_shipments_email_to']),
1716
+ 'wcast_late_shipments_email_subject' => get_theme_mod('wcast_late_shipments_email_subject',$wcast_late_shipments_customizer_email->defaults['wcast_late_shipments_email_subject']),
1717
+ 'wcast_late_shipments_email_heading' => get_theme_mod('wcast_late_shipments_email_heading',$wcast_late_shipments_customizer_email->defaults['wcast_late_shipments_email_heading']),
1718
+ 'wcast_late_shipments_show_tracking_details' => get_theme_mod('wcast_late_shipments_show_tracking_details',$wcast_late_shipments_customizer_email->defaults['wcast_late_shipments_show_tracking_details']),
1719
+ 'wcast_late_shipments_show_order_details' => get_theme_mod('wcast_late_shipments_show_order_details',$wcast_late_shipments_customizer_email->defaults['wcast_late_shipments_show_order_details']), 'wcast_late_shipments_show_billing_address' => get_theme_mod('wcast_late_shipments_show_billing_address',$wcast_late_shipments_customizer_email->defaults['wcast_late_shipments_show_billing_address']),
1720
+ 'wcast_late_shipments_show_shipping_address' => get_theme_mod('wcast_late_shipments_show_shipping_address',$wcast_late_shipments_customizer_email->defaults['wcast_late_shipments_show_shipping_address']),
1721
+ 'wcast_late_shipments_email_content' => get_theme_mod('wcast_late_shipments_email_content',''),
1722
+ );
1723
+ update_option( 'late_shipments_email_settings', $late_shipments_email_opt );
1724
+
1725
+ update_option( 'wc_advanced_shipment_tracking', '3.8');
1726
+ }
1727
  }
1728
  }
1729
 
1813
  }
1814
  }
1815
  }
1816
+
1817
+ /*
1818
+ * Display admin notice addons
1819
+ */
1820
+ public function admin_notice_for_addon(){
1821
+ if ( ! PAnD::is_admin_notice_active( 'disable-ast-addon-forever' ) ) {
1822
+ return;
1823
+ }
1824
+ ?>
1825
+ <style>
1826
+ .notice.addon-admin-notice {
1827
+ padding: 20px;
1828
+ background: #F6FBFF;
1829
+ border: 1px solid #eee;
1830
+ border-left: 4px solid #005B9A !important;
1831
+ }
1832
+ .rtl .notice.addon-admin-notice {
1833
+ border-right-color: #83bd31 !important;
1834
+ }
1835
+ .notice.addon-admin-notice .ast-admin-notice-inner {
1836
+ display: table;
1837
+ width: 100%;
1838
+ }
1839
+ .notice.addon-admin-notice .ast-admin-notice-inner .ast-admin-notice-icon,
1840
+ .notice.addon-admin-notice .ast-admin-notice-inner .ast-admin-notice-content,
1841
+ .notice.addon-admin-notice .ast-admin-notice-inner .trackship-install-now {
1842
+ display: table-cell;
1843
+ vertical-align: middle;
1844
+ }
1845
+ .notice.addon-admin-notice .ast-admin-notice-icon {
1846
+ color: #83bd31;
1847
+ }
1848
+ .notice.addon-admin-notice .ast-admin-notice-icon .notice-logo{
1849
+ width: 200px;
1850
+ }
1851
+ .notice.addon-admin-notice .ast-admin-notice-content {
1852
+ padding: 0 20px;
1853
+ }
1854
+ .notice.addon-admin-notice p {
1855
+ padding: 0;
1856
+ margin: 0;
1857
+ }
1858
+ .notice.addon-admin-notice h3 {
1859
+ margin: 0 0 5px;
1860
+ color: #005B9A;
1861
+ }
1862
+ .notice.addon-admin-notice .trackship-install-now {
1863
+ text-align: center;
1864
+ }
1865
+ .notice.addon-admin-notice .trackship-install-now .hello-elementor-install-button {
1866
+ padding: 5px 30px;
1867
+ height: auto;
1868
+ line-height: 20px;
1869
+ text-transform: capitalize;
1870
+ }
1871
+ .notice.addon-admin-notice .trackship-install-now .hello-elementor-install-button i {
1872
+ padding-right: 5px;
1873
+ }
1874
+ .rtl .notice.addon-admin-notice .trackship-install-now .hello-elementor-install-button i {
1875
+ padding-right: 0;
1876
+ padding-left: 5px;
1877
+ }
1878
+ .notice.addon-admin-notice .trackship-install-now .hello-elementor-install-button:active {
1879
+ transform: translateY(1px);
1880
+ }
1881
+ .addon-admin-notice .notice-dismiss:before{
1882
+ color: #005B9A;
1883
+ font: normal 20px/20px dashicons;
1884
+ }
1885
+ .wp-core-ui .btn_blue {
1886
+ background: #005B9A;
1887
+ text-shadow: none;
1888
+ border-color: #005B9A;
1889
+ box-shadow: none;
1890
+ font-size: 14px;
1891
+ line-height: 32px;
1892
+ height: 35px;
1893
+ padding: 0 20px;
1894
+ }
1895
+ .wp-core-ui .btn_blue:hover, .wp-core-ui .btn_blue:focus {
1896
+ background: #005B9A;
1897
+ border-color: rgba(0,0,0,0.05);
1898
+ color: #fff;
1899
+ text-shadow: none;
1900
+ box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
1901
+ }
1902
+ </style>
1903
+ <div data-dismissible="disable-ast-addon-forever" class="notice updated is-dismissible addon-admin-notice">
1904
+ <div class="ast-admin-notice-inner">
1905
+ <div class="ast-admin-notice-icon">
1906
+ <img class="notice-logo" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url().'/assets/images/ast-addons-notice-image.jpg'; ?>" alt="Tracking Per Item Add-on" />
1907
+ </div>
1908
+
1909
+ <div class="ast-admin-notice-content">
1910
+ <h3>New AST Add-on!</h3>
1911
+ <p>The Tracking Per Item add-on allows attaching the tracking numbers to specific order items.</p>
1912
+ </div>
1913
+
1914
+ <div data-dismissible="disable-ast-addon-forever" class="trackship-install-now">
1915
+ <a class="button button-primary btn_blue btn_large" href="<?php echo admin_url( '/admin.php?page=woocommerce-advanced-shipment-tracking&tab=addons' )?>">For more info</a>
1916
+ </div>
1917
+ </div>
1918
+ </div>
1919
+ <?php
1920
+ }
1921
+
1922
  /*
1923
  * Display admin notice on plugin install or update
1924
  */
1925
  public function admin_notice_after_update(){
1926
+ if ( ! PAnD::is_admin_notice_active( 'disable-review-notice-forever' ) ) {
1927
  return;
1928
  }
1929
  ?>
2005
  box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
2006
  }
2007
  </style>
2008
+ <div data-dismissible="disable-review-notice-forever" class="notice updated is-dismissible">
2009
+ <p>
2010
+ <?php
2011
+ printf(
2012
+ //esc_html__( '%1$s %2$s.' ),
2013
+ esc_html__( 'We added many improvements to %1$s, please help and give us a review :) Thanks!', '' ),
2014
+ sprintf(
2015
+ '<a href="%s" target="blank">%s</a>',
2016
+ esc_url( 'https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/reviews/#new-post' ),
2017
+ esc_html__( 'Advanced Shipment Tracking', '' )
2018
+ )
2019
+ );
2020
+ ?>
2021
+ </p>
 
 
 
 
2022
  </div>
2023
  <?php
2024
  }
2215
  </script>
2216
  <?php
2217
  }
2218
+
2219
  /**
2220
  * Store the time when the float bar was hidden so it won't show again for 14 days.
2221
  */
2224
  update_option( 'ast_admin_menu_tooltip', time() );
2225
  wp_send_json_success();
2226
  }
2227
+
2228
+ /**
2229
+ * Create tracking page after store is connected
2230
+ */
2231
+ public function create_tracking_page(){
2232
+ if(version_compare(get_option( 'wc_advanced_shipment_tracking_ts_page' ),'1.0', '<') ){
2233
+ $new_page_title = 'Shipment Tracking';
2234
+ $new_page_slug = 'ts-shipment-tracking';
2235
+ $new_page_content = '[wcast-track-order]';
2236
+ //don't change the code below, unless you know what you're doing
2237
+ $page_check = get_page_by_title($new_page_title);
2238
+
2239
+ if(!isset($page_check->ID)){
2240
+ $new_page = array(
2241
+ 'post_type' => 'page',
2242
+ 'post_title' => $new_page_title,
2243
+ 'post_name' => $new_page_slug,
2244
+ 'post_content' => $new_page_content,
2245
+ 'post_status' => 'publish',
2246
+ 'post_author' => 1,
2247
+ );
2248
+ $new_page_id = wp_insert_post($new_page);
2249
+ update_option( 'wc_ast_trackship_page_id', $new_page_id );
2250
+ }
2251
+ update_option( 'wc_advanced_shipment_tracking_ts_page', '1.0');
2252
+ }
2253
+ }
2254
  }
includes/class-wc-advanced-shipment-tracking-late-shipments.php ADDED
@@ -0,0 +1,303 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+
6
+ class WC_Advanced_Shipment_Tracking_Late_Shipments {
7
+
8
+ /**
9
+ * Instance of this class.
10
+ *
11
+ * @var object Class Instance
12
+ */
13
+ private static $instance;
14
+
15
+ /**
16
+ * Get the class instance
17
+ *
18
+ * @since 1.0
19
+ * @return smswoo_license
20
+ */
21
+ public static function get_instance() {
22
+
23
+ if ( null === self::$instance ) {
24
+ self::$instance = new self;
25
+ }
26
+
27
+ return self::$instance;
28
+ }
29
+
30
+ /**
31
+ * Initialize the main plugin function
32
+ *
33
+ * @since 1.0
34
+ * @return void
35
+ */
36
+ public function __construct() {
37
+ $this->init();
38
+ }
39
+
40
+ /*
41
+ * init function
42
+ *
43
+ * @since 1.0
44
+ */
45
+ public function init(){
46
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
47
+
48
+ $wcast_enable_late_shipments_email = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_enable_late_shipments_admin_email','');
49
+
50
+ $wc_ast_api_key = get_option('wc_ast_api_key');
51
+ if(!$wcast_enable_late_shipments_email || !$wc_ast_api_key){
52
+ return;
53
+ }
54
+ //cron schedule added
55
+ add_filter( 'cron_schedules', array( $this, 'late_shipments_cron_schedule') );
56
+ add_action( 'wp_ajax_send_late_shipments_email', array( $this, 'send_late_shipments_email') );
57
+ add_action( 'wp_ajax_nopriv_send_late_shipments_email', array( $this, 'send_late_shipments_email') );
58
+
59
+ //Send Late Shipments Email
60
+ add_action( 'ast_late_shipments_cron_hook', array( $this, 'send_late_shipments_email' ) );
61
+
62
+ if (!wp_next_scheduled( 'ast_late_shipments_cron_hook' ) ) {
63
+ wp_schedule_event( time(), 'ast_late_shipments_cron_events', 'ast_late_shipments_cron_hook' );
64
+ }
65
+ }
66
+
67
+ /*
68
+ * add schedule for late shipments check
69
+ *
70
+ * @since 1.0
71
+ *
72
+ * @return array
73
+ */
74
+ function late_shipments_cron_schedule( $schedules ){
75
+ $schedules[ 'ast_late_shipments_cron_events' ] = array(
76
+ 'interval' => 86400,
77
+ 'display' => __( 'Every day' ),
78
+ );
79
+ return $schedules;
80
+ }
81
+
82
+ /**
83
+ *
84
+ * Send Late Shipments Email
85
+ *
86
+ */
87
+ public function send_late_shipments_email() {
88
+
89
+ $orders = new WP_Query(
90
+ array(
91
+ 'post_type' => 'shop_order',
92
+ 'post_status' => array_keys( wc_get_order_statuses() ),
93
+ 'posts_per_page' => -1,
94
+ 'meta_key' => 'shipment_status',
95
+ 'meta_compare' => 'EXISTS', // The comparison argument
96
+ // Using the date_query to filter posts from last 90 days
97
+ 'date_query' => array(
98
+ array(
99
+ 'after' => '-90 days'
100
+ )
101
+ )
102
+ )
103
+ );
104
+
105
+ $wcast_late_shipments_settings = new wcast_late_shipments_customizer_email();
106
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
107
+
108
+ $wcast_late_shipments_days = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_late_shipments_days',$wcast_late_shipments_settings->defaults['wcast_late_shipments_days']);
109
+
110
+ foreach ( $orders->posts as $order ) {
111
+ $order_object = new WC_Order( $order->ID );
112
+ $shipment_status = get_post_meta( $order_object->get_id(), "shipment_status", true);
113
+
114
+ foreach($shipment_status as $key => $tracker){
115
+ $tracking_items = get_post_meta( $order_object->get_id(), '_wc_shipment_tracking_items', true );
116
+
117
+ $shipment_length = $this->get_shipment_length($tracker);
118
+
119
+ if($tracker['status'] != 'available_for_pickup' && $tracker['status'] != 'delivered'){
120
+ if($shipment_length >= $wcast_late_shipments_days){
121
+ $late_shipments = get_post_meta( $order_object->get_id(), 'late_shipments_email', true );
122
+ if(isset($late_shipments[$tracking_items[$key]['tracking_number']])){
123
+ if($late_shipments[$tracking_items[$key]['tracking_number']]['email_send'] != 1){
124
+ $email_send = $this->late_shippment_email_trigger($order_object->get_id(), $order_object, $tracker, $tracking_items[$key]['tracking_number']);
125
+ if($email_send){
126
+ $late_shipments_array[$tracking_items[$key]['tracking_number']] = array( 'email_send' => '1' );update_post_meta( $order_object->get_id(), 'late_shipments_email', $late_shipments_array );
127
+ }
128
+ }
129
+ } else{
130
+ $email_send = $this->late_shippment_email_trigger($order_object->get_id(), $order_object, $tracker, $tracking_items[$key]['tracking_number']);
131
+ if($email_send){
132
+ $late_shipments_array[$tracking_items[$key]['tracking_number']] = array( 'email_send' => '1' );update_post_meta( $order_object->get_id(), 'late_shipments_email', $late_shipments_array );
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ exit;
140
+ }
141
+
142
+ /*
143
+ * get shiment lenth of tracker
144
+ * return (int)days
145
+ */
146
+ function get_shipment_length($ep_tracker){
147
+ if( empty($ep_tracker['tracking_events'] ))return 0;
148
+ if( count( $ep_tracker['tracking_events'] ) == 0 )return 0;
149
+
150
+ $first = reset($ep_tracker['tracking_events']);
151
+ $first_date = $first->datetime;
152
+ $last = end($ep_tracker['tracking_events']);
153
+ $last_date = $last->datetime;
154
+
155
+ $status = $ep_tracker['status'];
156
+ if( $status != 'delivered' ){
157
+ $last_date = date("Y-m-d H:i:s");
158
+ }
159
+
160
+ $days = $this->get_num_of_days( $first_date, $last_date );
161
+ return $days;
162
+ }
163
+
164
+ /*
165
+ *
166
+ */
167
+ function get_num_of_days( $first_date, $last_date ){
168
+ $date1 = strtotime($first_date);
169
+ $date2 = strtotime($last_date);
170
+ $diff = abs($date2 - $date1);
171
+ return date( "d", $diff );
172
+ }
173
+
174
+ /**
175
+ * code for send shipment status email
176
+ */
177
+ public function late_shippment_email_trigger($order_id, $order, $tracker, $tracking_number){
178
+
179
+ $wcast_late_shipments_settings = new wcast_late_shipments_customizer_email();
180
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
181
+
182
+ $email_subject = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_late_shipments_email_subject',$wcast_late_shipments_settings->defaults['wcast_late_shipments_email_subject']);
183
+
184
+ $subject = wc_advanced_shipment_tracking_email_class()->email_subject($email_subject,$order_id,$order);
185
+
186
+ $email_to = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_late_shipments_email_to',$wcast_late_shipments_settings->defaults['wcast_late_shipments_email_to']);
187
+
188
+ $email_to = explode(",",$email_to);
189
+
190
+ foreach($email_to as $email){
191
+ $email_heading = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_late_shipments_email_heading',$wcast_late_shipments_settings->defaults['wcast_late_shipments_email_heading']);
192
+
193
+ $email_content = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_late_shipments_email_content',$wcast_late_shipments_settings->defaults['wcast_late_shipments_email_content']);
194
+
195
+ $wcast_show_tracking_details = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_late_shipments_show_tracking_details','');
196
+
197
+ $wcast_show_order_details = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_late_shipments_show_order_details','');
198
+
199
+ $wcast_show_billing_address = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_late_shipments_show_billing_address','');
200
+
201
+ $wcast_show_shipping_address = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_late_shipments_show_shipping_address','');
202
+
203
+ $sent_to_admin = false;
204
+ $plain_text = false;
205
+
206
+ $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
207
+ $tracking_items = $wast->get_tracking_items( $order_id, true );
208
+
209
+ foreach($tracking_items as $key => $item){
210
+ if($item['tracking_number'] != $tracking_number){
211
+ unset($tracking_items[$key]);
212
+ }
213
+ }
214
+
215
+ $recipient = wc_advanced_shipment_tracking_email_class()->email_to($email,$order,$order_id);
216
+
217
+ $email_content = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$order_id, $order);
218
+
219
+ $email_content = $this->email_content($email_content,$order_id, $order, $tracker);
220
+
221
+ $mailer = WC()->mailer();
222
+
223
+ $email_heading = wc_advanced_shipment_tracking_email_class()->email_heading($email_heading,$order_id,$order);
224
+
225
+
226
+
227
+ if($wcast_show_tracking_details == 1){
228
+
229
+ ob_start();
230
+ wc_get_template( 'emails/tracking-info.php', array(
231
+ 'tracking_items' => $tracking_items,
232
+ 'order_id' => $order_id,
233
+ ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
234
+ $email_content .= ob_get_clean();
235
+ }
236
+
237
+ if($wcast_show_order_details == 1){
238
+
239
+ ob_start();
240
+ wc_get_template(
241
+ 'emails/wcast-email-order-details.php', array(
242
+ 'order' => $order,
243
+ 'sent_to_admin' => $sent_to_admin,
244
+ 'plain_text' => $plain_text,
245
+ 'email' => '',
246
+ ),
247
+ 'woocommerce-advanced-shipment-tracking/',
248
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
249
+ );
250
+ $email_content .= ob_get_clean();
251
+ }
252
+
253
+ if($wcast_show_billing_address == 1){
254
+ ob_start();
255
+ wc_get_template(
256
+ 'emails/wcast-billing-email-addresses.php', array(
257
+ 'order' => $order,
258
+ 'sent_to_admin' => $sent_to_admin,
259
+ ),
260
+ 'woocommerce-advanced-shipment-tracking/',
261
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
262
+ );
263
+ $email_content .= ob_get_clean();
264
+ }
265
+
266
+ if($wcast_show_shipping_address == 1){
267
+ ob_start();
268
+ wc_get_template(
269
+ 'emails/wcast-shipping-email-addresses.php', array(
270
+ 'order' => $order,
271
+ 'sent_to_admin' => $sent_to_admin,
272
+ ),
273
+ 'woocommerce-advanced-shipment-tracking/',
274
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
275
+ );
276
+ $email_content .= ob_get_clean();
277
+ }
278
+
279
+ // create a new email
280
+ $email = new WC_Email();
281
+
282
+ // wrap the content with the email template and then add styles
283
+ $email_content = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $email_content ) ) );
284
+ $headers = "Content-Type: text/html\r\n";
285
+ add_filter( 'wp_mail_from', array( wc_advanced_shipment_tracking_email_class(), 'get_from_address' ) );
286
+ add_filter( 'wp_mail_from_name', array( wc_advanced_shipment_tracking_email_class(), 'get_from_name' ) );
287
+
288
+ $email_send = wp_mail( $recipient, $subject, $email_content, $email->get_headers() );
289
+ $logger = wc_get_logger();
290
+ $context = array( 'source' => 'trackship_late_shipments_email_log' );
291
+ $logger->error( "Order_Id: ".$order_id." Late Shipments" .$email_send, $context );
292
+ return $email_send;
293
+ }
294
+ }
295
+ /**
296
+ * code for format email content
297
+ */
298
+ public function email_content($email_content, $order_id, $order, $tracker){
299
+ $shipment_length = $this->get_shipment_length($tracker);
300
+ $email_content = str_replace( '{shipment_length}', $shipment_length, $email_content );
301
+ return $email_content;
302
+ }
303
+ }
includes/class-wc-advanced-shipment-tracking-license.php ADDED
@@ -0,0 +1,332 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+
6
+ class WC_Advanced_Shipment_Tracking_License {
7
+
8
+ /**
9
+ * Instance of this class.
10
+ *
11
+ * @var object Class Instance
12
+ */
13
+ private static $instance;
14
+
15
+ /**
16
+ * @var string store_url
17
+ */
18
+ var $item_code = 'ast_per_product';
19
+ var $store_url = 'https://www.zorem.com/';
20
+ var $default_product_id = '76646';
21
+
22
+ /**
23
+ * Get the class instance
24
+ *
25
+ * @since 1.0
26
+ * @return smswoo_license
27
+ */
28
+ public static function get_instance() {
29
+
30
+ if ( null === self::$instance ) {
31
+ self::$instance = new self;
32
+ }
33
+
34
+ return self::$instance;
35
+ }
36
+
37
+ /**
38
+ * Initialize the main plugin function
39
+ *
40
+ * @since 1.0
41
+ * @return void
42
+ */
43
+ public function __construct() {
44
+ $this->init();
45
+ }
46
+
47
+ /**
48
+ * Return item code
49
+ *
50
+ * @since 1.0
51
+ * @return string
52
+ *
53
+ */
54
+ public function get_item_code() {
55
+ return $this->item_code;
56
+ }
57
+
58
+ /**
59
+ * Set license key
60
+ *
61
+ * @since 1.0
62
+ * @return Void
63
+ *
64
+ */
65
+ public function set_license_key( $license_key ) {
66
+ update_option( 'ast_product_license_key', $license_key );
67
+ }
68
+
69
+ /**
70
+ * Return licence key
71
+ *
72
+ * @since 1.0
73
+ * @return string
74
+ *
75
+ */
76
+ public function get_license_key() {
77
+ return get_option( 'ast_product_license_key', false);
78
+ }
79
+
80
+ /**
81
+ * Set license status
82
+ *
83
+ * @since 1.0
84
+ * @return Void
85
+ *
86
+ */
87
+ public function set_license_status( $status ) {
88
+ update_option( 'ast_product_license_status', $status );
89
+ }
90
+
91
+ /**
92
+ * Return license status
93
+ *
94
+ * @since 1.0
95
+ * @return Bool
96
+ *
97
+ */
98
+ public function get_license_status() {
99
+ return get_option( 'ast_product_license_status', false);
100
+ }
101
+ /*
102
+ //below line remove if in future not in use
103
+ */
104
+ public function licence_valid() {
105
+ return get_option( 'ast_product_license_status', false);
106
+ }
107
+
108
+
109
+ /**
110
+ * Create Instance ID
111
+ *
112
+ * @since 1.0
113
+ * @return string
114
+ *
115
+ */
116
+ public function create_instance_id() {
117
+ return $instance_id = md5( $this->get_item_code().time() );
118
+ }
119
+
120
+ /**
121
+ * Set Instance ID
122
+ *
123
+ * @since 1.0
124
+ * @return Void
125
+ *
126
+ */
127
+ public function set_instance_id( $instance_id ) {
128
+ update_option( $this->get_item_code().'_instance_id', $instance_id );
129
+ }
130
+
131
+ /**
132
+ * Return Instance ID
133
+ *
134
+ * @since 1.0
135
+ * @return string
136
+ *
137
+ */
138
+ public function get_instance_id() {
139
+ return get_option( $this->get_item_code().'_instance_id', false);
140
+ }
141
+
142
+ /**
143
+ * Set Instance ID
144
+ *
145
+ * @since 1.0
146
+ * @return Void
147
+ *
148
+ */
149
+ public function set_product_id( $product_id ) {
150
+ update_option( $this->get_item_code().'_product_id', $product_id );
151
+ }
152
+
153
+ /**
154
+ * Return item code
155
+ *
156
+ * @since 1.0
157
+ * @return string
158
+ *
159
+ */
160
+ public function get_product_id() {
161
+ $product_id = get_option( $this->get_item_code().'_product_id', false );
162
+ return !empty( $product_id ) ? $product_id : $this->default_product_id;
163
+ }
164
+
165
+ /*
166
+ * init function
167
+ *
168
+ * @since 1.0
169
+ */
170
+ public function init(){
171
+
172
+ //cron schedule added
173
+ add_filter( 'cron_schedules', array( $this, 'license_cron_schedule') );
174
+
175
+ //ajax call for license
176
+ add_action( 'wp_ajax_ast_product_license_activate', array( $this, 'license_activate') );
177
+ add_action( 'wp_ajax_ast_product_license_deactivate', array( $this, 'license_deactivate') );
178
+
179
+ //OLD
180
+
181
+ //check license valid
182
+ add_action( 'ast_license_cron_hook', array( $this, 'check_license_valid' ) );
183
+ if (!wp_next_scheduled( 'ast_license_cron_hook' ) ) {
184
+ wp_schedule_event( time(), 'ast_product_license_cron_events', 'ast_license_cron_hook' );
185
+ }
186
+ }
187
+
188
+ /*
189
+ * add schedule for license check
190
+ *
191
+ * @since 1.0
192
+ *
193
+ * @return array
194
+ */
195
+ function license_cron_schedule( $schedules ){
196
+ $schedules[ 'ast_product_license_cron_events' ] = array(
197
+ 'interval' => 86400,
198
+ 'display' => __( 'Every day' ),
199
+ );
200
+ return $schedules;
201
+ }
202
+
203
+ /*
204
+ * license activate
205
+ * @return json string
206
+ */
207
+ function license_activate() {
208
+ $license_key = sanitize_text_field( $_POST['ast_product_license_key'] );
209
+
210
+ //do api call and get product ID
211
+ $this->get_product_id_by_licence( $license_key );
212
+
213
+ if( isset( $license_key ) ) {
214
+ $instance_id = $this->create_instance_id();
215
+ $return = $this->license_authorize_action( $license_key, 'activate', $instance_id );
216
+ if($return->success == 'true'){
217
+ $this->set_license_key( $license_key );
218
+ $this->set_instance_id( $instance_id );
219
+ delete_transient( 'zorem_upgrade_'.$this->get_item_code() );
220
+ }
221
+ header('Content-type: application/json');
222
+ echo json_encode($return, JSON_PRETTY_PRINT);
223
+ die();
224
+ }
225
+ }
226
+
227
+ /*
228
+ * license deactivate
229
+ * @return json string
230
+ */
231
+ function license_deactivate() {
232
+
233
+ $license_key = sanitize_text_field( $_POST['ast_product_license_key'] );
234
+
235
+ if( isset( $license_key ) ) {
236
+ $return = $this->license_authorize_action( $license_key, 'deactivate' );
237
+ if($return->success == 'true'){
238
+ $this->set_license_key( '' );
239
+ $this->set_instance_id( '' );
240
+ $this->set_license_status( 0 );
241
+ delete_transient( 'zorem_upgrade_'.$this->get_item_code() );
242
+ }
243
+ header('Content-type: application/json');
244
+ echo json_encode($return, JSON_PRETTY_PRINT);
245
+ die();
246
+ }
247
+ }
248
+
249
+ /*
250
+ * License authorize with server
251
+ */
252
+ public function license_authorize_action( $license_key = '', $action = 'validate', $instance_id = false) {
253
+
254
+ if ( $instance_id == false ) $instance_id = $this->get_instance_id();
255
+
256
+ $domain = home_url();
257
+
258
+ $api_params = array(
259
+ 'wc-api' => 'wc-am-api',
260
+ 'wc_am_action' => $action,
261
+ 'instance' => $instance_id,
262
+ 'object' => $domain,
263
+ 'product_id' => $this->get_product_id(),
264
+ 'api_key' => $license_key,
265
+ );
266
+
267
+ $request = add_query_arg( $api_params, $this->store_url );
268
+ $response = wp_remote_get( $request, array( 'timeout' => 15, 'sslverify' => false ) );
269
+
270
+ if ( is_wp_error( $response ) )
271
+ return false;
272
+
273
+ $authorize_data = json_decode( wp_remote_retrieve_body( $response ) );
274
+ if(empty($authorize_data) || $authorize_data === NULL || $authorize_data === false) return false;
275
+ if( $authorize_data->success == 'true' ) {
276
+ $this->set_license_status( 1 );
277
+ } else {
278
+ $this->set_license_status( 0 );
279
+ }
280
+ return $authorize_data;
281
+ }
282
+
283
+ /**
284
+ *
285
+ *
286
+ */
287
+ function get_product_id_by_licence( $license_key ){
288
+
289
+ $domain = home_url();
290
+
291
+ $args = array(
292
+ 'body' => array(
293
+ 'license_key' => $license_key,
294
+ ),
295
+ 'timeout' => 15,
296
+ 'sslverify' => false,
297
+ );
298
+
299
+ $response = wp_remote_post( 'https://www.zorem.com/wp-json/get_plugin_product_id/v1/', $args );
300
+
301
+ if ( is_wp_error( $response ) ) return false;
302
+
303
+ $authorize_data = json_decode( wp_remote_retrieve_body( $response ) );
304
+ if(empty($authorize_data) || $authorize_data === NULL || $authorize_data === false) return false;
305
+
306
+ if( $authorize_data->product_id ) {
307
+ $this->set_product_id( $authorize_data->product_id );
308
+ }
309
+
310
+ }
311
+
312
+ /*
313
+ *
314
+ * OLD
315
+ *
316
+ */
317
+
318
+ /**
319
+ *
320
+ * Check license valid
321
+ *
322
+ */
323
+ public function check_license_valid() {
324
+ $license = $this->get_license_key();
325
+ $authorize = $this->license_authorize_action($license, 'status');
326
+ if($authorize->success == 'true'){
327
+ return true;
328
+ }
329
+ return false;
330
+ }
331
+
332
+ }
includes/class-wc-advanced-shipment-tracking-settings.php ADDED
@@ -0,0 +1,965 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ exit;
4
+ }
5
+
6
+ class WC_Advanced_Shipment_Tracking_Settings {
7
+
8
+ /**
9
+ * Initialize the main plugin function
10
+ */
11
+ public function __construct() {
12
+
13
+ global $wpdb;
14
+ if( is_multisite() ){
15
+ if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
16
+ require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
17
+ }
18
+ if ( is_plugin_active_for_network( 'woo-advanced-shipment-tracking/woocommerce-advanced-shipment-tracking.php' ) ) {
19
+ $main_blog_prefix = $wpdb->get_blog_prefix(BLOG_ID_CURRENT_SITE);
20
+ $this->table = $main_blog_prefix."woo_shippment_provider";
21
+ } else{
22
+ $this->table = $wpdb->prefix."woo_shippment_provider";
23
+ }
24
+ } else{
25
+ $this->table = $wpdb->prefix."woo_shippment_provider";
26
+ }
27
+
28
+ }
29
+
30
+ /**
31
+ * Instance of this class.
32
+ *
33
+ * @var object Class Instance
34
+ */
35
+ private static $instance;
36
+
37
+ /**
38
+ * Get the class instance
39
+ *
40
+ * @return WC_Advanced_Shipment_Tracking_Settings
41
+ */
42
+ public static function get_instance() {
43
+
44
+ if ( null === self::$instance ) {
45
+ self::$instance = new self;
46
+ }
47
+
48
+ return self::$instance;
49
+ }
50
+
51
+ /*
52
+ * init from parent mail class
53
+ */
54
+ public function init(){
55
+
56
+ //rename order status + rename bulk action + rename filter
57
+ add_filter( 'wc_order_statuses', array( $this, 'wc_renaming_order_status') );
58
+ add_filter( 'woocommerce_register_shop_order_post_statuses', array( $this, 'filter_woocommerce_register_shop_order_post_statuses'), 10, 1 );
59
+ add_filter( 'bulk_actions-edit-shop_order', array( $this, 'modify_bulk_actions'), 50, 1 );
60
+
61
+ add_action( 'woocommerce_update_options_email_customer_delivered_order', array( $this, 'save_delivered_email' ) ,100, 1);
62
+ add_action( 'woocommerce_update_options_email_customer_partial_shipped_order', array( $this, 'save_partial_shipped_email' ) ,100, 1);
63
+ add_action( 'wp_ajax_sync_providers', array( $this, 'sync_providers_fun') );
64
+
65
+ //new order status
66
+ $newstatus = get_option( "wc_ast_status_delivered", 0);
67
+ if( $newstatus == true ){
68
+ //register order status
69
+ add_action( 'init', array( $this, 'register_order_status') );
70
+ //add status after completed
71
+ add_filter( 'wc_order_statuses', array( $this, 'add_delivered_to_order_statuses') );
72
+ //Custom Statuses in admin reports
73
+ add_filter( 'woocommerce_reports_order_statuses', array( $this, 'include_custom_order_status_to_reports'), 20, 1 );
74
+ // for automate woo to check order is paid
75
+ add_filter( 'woocommerce_order_is_paid_statuses', array( $this, 'delivered_woocommerce_order_is_paid_statuses' ) );
76
+ //add bulk action
77
+ add_filter( 'bulk_actions-edit-shop_order', array( $this, 'add_bulk_actions'), 50, 1 );
78
+ }
79
+
80
+ //new order status
81
+ $updated_tracking_status = get_option( "wc_ast_status_updated_tracking", 0);
82
+ if( $updated_tracking_status == true ){
83
+ //register order status
84
+ add_action( 'init', array( $this, 'register_updated_tracking_order_status') );
85
+ //add status after completed
86
+ add_filter( 'wc_order_statuses', array( $this, 'add_updated_tracking_to_order_statuses') );
87
+ //Custom Statuses in admin reports
88
+ add_filter( 'woocommerce_reports_order_statuses', array( $this, 'include_updated_tracking_order_status_to_reports'), 20, 1 );
89
+ // for automate woo to check order is paid
90
+ add_filter( 'woocommerce_order_is_paid_statuses', array( $this, 'updated_tracking_woocommerce_order_is_paid_statuses' ) );
91
+ //add bulk action
92
+ add_filter( 'bulk_actions-edit-shop_order', array( $this, 'add_bulk_actions_updated_tracking'), 50, 1 );
93
+ }
94
+
95
+ //new order status
96
+ $partial_shipped_status = get_option( "wc_ast_status_partial_shipped", 0);
97
+ if( $partial_shipped_status == true ){
98
+ //register order status
99
+ add_action( 'init', array( $this, 'register_partial_shipped_order_status') );
100
+ //add status after completed
101
+ add_filter( 'wc_order_statuses', array( $this, 'add_partial_shipped_to_order_statuses') );
102
+ //Custom Statuses in admin reports
103
+ add_filter( 'woocommerce_reports_order_statuses', array( $this, 'include_partial_shipped_order_status_to_reports'), 20, 1 );
104
+ // for automate woo to check order is paid
105
+ add_filter( 'woocommerce_order_is_paid_statuses', array( $this, 'partial_shipped_woocommerce_order_is_paid_statuses' ) );
106
+ //add bulk action
107
+ add_filter( 'bulk_actions-edit-shop_order', array( $this, 'add_bulk_actions_partial_shipped'), 50, 1 );
108
+ }
109
+
110
+ //filter in shipped orders
111
+ add_filter( 'is_order_shipped', array( $this, "check_tracking_exist" ),10,2);
112
+ add_filter( 'is_order_shipped', array( $this, "check_order_status" ),5,2);
113
+
114
+ // Hook for add admin body class in settings page
115
+ add_filter( 'admin_body_class', array( $this, 'ahipment_tracking_admin_body_class' ) );
116
+
117
+ // Ajax hook for open inline tracking form
118
+ add_action( 'wp_ajax_ast_open_inline_tracking_form', array( $this, 'ast_open_inline_tracking_form_fun' ) );
119
+
120
+ $wc_ast_status_delivered = get_option('wc_ast_status_delivered');
121
+ if($wc_ast_status_delivered == 1){
122
+ add_action( 'woocommerce_order_actions', array( $this, 'add_order_meta_box_actions' ) );
123
+ add_action( 'woocommerce_order_action_resend_delivered_order_notification', array( $this, 'process_order_meta_box_actions' ) );
124
+ }
125
+
126
+ $api_enabled = get_option( "wc_ast_api_enabled", 0);
127
+ if( $api_enabled == true ){
128
+ add_action( 'wp_dashboard_setup', array( $this, 'ast_add_dashboard_widgets') );
129
+ }
130
+ }
131
+
132
+ /**
133
+ * Register new status : Delivered
134
+ **/
135
+ function register_order_status() {
136
+ register_post_status( 'wc-delivered', array(
137
+ 'label' => __( 'Delivered', 'woo-advanced-shipment-tracking' ),
138
+ 'public' => true,
139
+ 'show_in_admin_status_list' => true,
140
+ 'show_in_admin_all_list' => true,
141
+ 'exclude_from_search' => false,
142
+ 'label_count' => _n_noop( 'Delivered <span class="count">(%s)</span>', 'Delivered <span class="count">(%s)</span>', 'woo-advanced-shipment-tracking' )
143
+ ) );
144
+ }
145
+
146
+ /**
147
+ * Register new status : Updated Tracking
148
+ **/
149
+ function register_updated_tracking_order_status() {
150
+ register_post_status( 'wc-updated-tracking', array(
151
+ 'label' => __( 'Updated Tracking', 'woo-advanced-shipment-tracking' ),
152
+ 'public' => true,
153
+ 'show_in_admin_status_list' => true,
154
+ 'show_in_admin_all_list' => true,
155
+ 'exclude_from_search' => false,
156
+ 'label_count' => _n_noop( 'Updated Tracking <span class="count">(%s)</span>', 'Updated Tracking <span class="count">(%s)</span>', 'woo-advanced-shipment-tracking' )
157
+ ) );
158
+ }
159
+
160
+ /**
161
+ * Register new status : Partially Shipped
162
+ **/
163
+ function register_partial_shipped_order_status() {
164
+ register_post_status( 'wc-partial-shipped', array(
165
+ 'label' => __( 'Partially Shipped', 'woo-advanced-shipment-tracking' ),
166
+ 'public' => true,
167
+ 'show_in_admin_status_list' => true,
168
+ 'show_in_admin_all_list' => true,
169
+ 'exclude_from_search' => false,
170
+ 'label_count' => _n_noop( 'Partially Shipped <span class="count">(%s)</span>', 'Partially Shipped <span class="count">(%s)</span>', 'woo-advanced-shipment-tracking' )
171
+ ) );
172
+ }
173
+
174
+ /*
175
+ * add status after completed
176
+ */
177
+ function add_delivered_to_order_statuses( $order_statuses ) {
178
+ $new_order_statuses = array();
179
+ foreach ( $order_statuses as $key => $status ) {
180
+ $new_order_statuses[ $key ] = $status;
181
+ if ( 'wc-completed' === $key ) {
182
+ $new_order_statuses['wc-delivered'] = __( 'Delivered', 'woo-advanced-shipment-tracking' );
183
+ }
184
+ }
185
+
186
+ return $new_order_statuses;
187
+ }
188
+
189
+ /*
190
+ * add status after completed
191
+ */
192
+ function add_updated_tracking_to_order_statuses( $order_statuses ) {
193
+ $new_order_statuses = array();
194
+ foreach ( $order_statuses as $key => $status ) {
195
+ $new_order_statuses[ $key ] = $status;
196
+ if ( 'wc-completed' === $key ) {
197
+ $new_order_statuses['wc-updated-tracking'] = __( 'Updated Tracking', 'woo-advanced-shipment-tracking' );
198
+ }
199
+ }
200
+ return $new_order_statuses;
201
+ }
202
+
203
+ /*
204
+ * add status after completed
205
+ */
206
+ function add_partial_shipped_to_order_statuses( $order_statuses ) {
207
+ $new_order_statuses = array();
208
+ foreach ( $order_statuses as $key => $status ) {
209
+ $new_order_statuses[ $key ] = $status;
210
+ if ( 'wc-completed' === $key ) {
211
+ $new_order_statuses['wc-partial-shipped'] = __( 'Partially Shipped', 'woo-advanced-shipment-tracking' );
212
+ }
213
+ }
214
+ return $new_order_statuses;
215
+ }
216
+
217
+ /*
218
+ * Adding the custom order status to the default woocommerce order statuses
219
+ */
220
+ function include_custom_order_status_to_reports( $statuses ){
221
+ if($statuses)$statuses[] = 'delivered';
222
+ return $statuses;
223
+ }
224
+
225
+ /*
226
+ * Adding the updated-tracking order status to the default woocommerce order statuses
227
+ */
228
+ function include_updated_tracking_order_status_to_reports( $statuses ){
229
+ if($statuses)$statuses[] = 'updated-tracking';
230
+ return $statuses;
231
+ }
232
+
233
+ /*
234
+ * Adding the partial-shipped order status to the default woocommerce order statuses
235
+ */
236
+ function include_partial_shipped_order_status_to_reports( $statuses ){
237
+ if($statuses)$statuses[] = 'partial-shipped';
238
+ return $statuses;
239
+ }
240
+
241
+ /*
242
+ * mark status as a paid.
243
+ */
244
+ function delivered_woocommerce_order_is_paid_statuses( $statuses ) {
245
+ $statuses[] = 'delivered';
246
+ return $statuses;
247
+ }
248
+
249
+ /*
250
+ * mark status as a paid.
251
+ */
252
+ function updated_tracking_woocommerce_order_is_paid_statuses( $statuses ) {
253
+ $statuses[] = 'updated-tracking';
254
+ return $statuses;
255
+ }
256
+
257
+ /*
258
+ * mark status as a paid.
259
+ */
260
+ function partial_shipped_woocommerce_order_is_paid_statuses( $statuses ) {
261
+ $statuses[] = 'partial-shipped';
262
+ return $statuses;
263
+ }
264
+
265
+ /*
266
+ * add bulk action
267
+ * Change order status to delivered
268
+ */
269
+ function add_bulk_actions( $bulk_actions ){
270
+ $bulk_actions['mark_delivered'] = __( 'Change status to delivered', 'woo-advanced-shipment-tracking' );
271
+ return $bulk_actions;
272
+ }
273
+
274
+ /*
275
+ * add bulk action
276
+ * Change order status to Updated Tracking
277
+ */
278
+ function add_bulk_actions_updated_tracking( $bulk_actions ){
279
+ $bulk_actions['mark_updated-tracking'] = __( 'Change status to Updated Tracking', 'woo-advanced-shipment-tracking' );
280
+ return $bulk_actions;
281
+ }
282
+
283
+ /*
284
+ * add bulk action
285
+ * Change order status to Partially Shipped
286
+ */
287
+ function add_bulk_actions_partial_shipped( $bulk_actions ){
288
+ $bulk_actions['mark_partial-shipped'] = __( 'Change status to Partially Shipped', 'woo-advanced-shipment-tracking' );
289
+ return $bulk_actions;
290
+ }
291
+
292
+ /*
293
+ * Rename WooCommerce Order Status
294
+ */
295
+ function wc_renaming_order_status( $order_statuses ) {
296
+
297
+ $enable = get_option( "wc_ast_status_shipped", 0);
298
+ if( $enable == false )return $order_statuses;
299
+
300
+ foreach ( $order_statuses as $key => $status ) {
301
+ $new_order_statuses[ $key ] = $status;
302
+ if ( 'wc-completed' === $key ) {
303
+ $order_statuses['wc-completed'] = esc_html__( 'Shipped','woo-advanced-shipment-tracking' );
304
+ }
305
+ }
306
+ return $order_statuses;
307
+ }
308
+
309
+ /*
310
+ * define the woocommerce_register_shop_order_post_statuses callback
311
+ * rename filter
312
+ * rename from completed to shipped
313
+ */
314
+ function filter_woocommerce_register_shop_order_post_statuses( $array ) {
315
+
316
+ $enable = get_option( "wc_ast_status_shipped", 0);
317
+ if( $enable == false )return $array;
318
+
319
+ if( isset( $array[ 'wc-completed' ] ) ){
320
+ $array[ 'wc-completed' ]['label_count'] = _n_noop( 'Shipped <span class="count">(%s)</span>', 'Shipped <span class="count">(%s)</span>', 'woo-advanced-shipment-tracking' );
321
+ }
322
+ return $array;
323
+ }
324
+
325
+ /*
326
+ * rename bulk action
327
+ */
328
+ function modify_bulk_actions($bulk_actions) {
329
+
330
+ $enable = get_option( "wc_ast_status_shipped", 0);
331
+ if( $enable == false )return $bulk_actions;
332
+
333
+ if( isset( $bulk_actions['mark_completed'] ) ){
334
+ $bulk_actions['mark_completed'] = __( 'Change status to shipped', 'woo-advanced-shipment-tracking' );
335
+ }
336
+ return $bulk_actions;
337
+ }
338
+
339
+ /*
340
+ * tracking number filter
341
+ * if number not found. return false
342
+ * if number found. return true
343
+ */
344
+ function check_tracking_exist( $value, $order ){
345
+
346
+ if($value == true){
347
+
348
+ $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
349
+ if( $tracking_items ){
350
+ return true;
351
+ } else {
352
+ return false;
353
+ }
354
+ }
355
+ return $value;
356
+ }
357
+
358
+ /*
359
+ * If order status is "Updated Tracking" or "Completed" than retrn true else return false
360
+ */
361
+ function check_order_status($value, $order){
362
+ $order_status = $order->get_status();
363
+
364
+ $all_order_status = wc_get_order_statuses();
365
+
366
+ $default_order_status = array(
367
+ 'wc-pending' => 'Pending payment',
368
+ 'wc-processing' => 'Processing',
369
+ 'wc-on-hold' => 'On hold',
370
+ 'wc-completed' => 'Completed',
371
+ 'wc-delivered' => 'Delivered',
372
+ 'wc-cancelled' => 'Cancelled',
373
+ 'wc-refunded' => 'Refunded',
374
+ 'wc-failed' => 'Failed'
375
+ );
376
+
377
+ foreach($default_order_status as $key=>$value){
378
+ unset($all_order_status[$key]);
379
+ }
380
+
381
+ $custom_order_status = $all_order_status;
382
+
383
+ foreach($custom_order_status as $key=>$value){
384
+ unset($custom_order_status[$key]);
385
+ $key = str_replace("wc-", "", $key);
386
+ $custom_order_status[] = $key;
387
+ }
388
+
389
+ if($order_status == 'updated-tracking' || $order_status == 'completed' || in_array($order_status, $custom_order_status)){
390
+ return true;
391
+ } else {
392
+ return false;
393
+ }
394
+ return $value;
395
+ }
396
+
397
+ /*
398
+ * Add class in admin settings page
399
+ */
400
+ public function ahipment_tracking_admin_body_class($classes){
401
+ $page = (isset($_REQUEST["page"])?$_REQUEST["page"]:"");
402
+ if( $page == 'woocommerce-advanced-shipment-tracking') {
403
+ $classes .= 'shipment_tracking_admin_settings';
404
+ }
405
+ return $classes;
406
+ }
407
+
408
+ public function ast_open_inline_tracking_form_fun(){
409
+ $order_id = wc_clean($_POST['order_id']);
410
+ global $wpdb;
411
+ $WC_Countries = new WC_Countries();
412
+ $countries = $WC_Countries->get_countries();
413
+
414
+ $woo_shippment_table_name = $wpdb->prefix . 'woo_shippment_provider';
415
+
416
+ if( is_multisite() ){
417
+ if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
418
+ require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
419
+ }
420
+ if ( is_plugin_active_for_network( 'woo-advanced-shipment-tracking/woocommerce-advanced-shipment-tracking.php' ) ) {
421
+ $main_blog_prefix = $wpdb->get_blog_prefix(BLOG_ID_CURRENT_SITE);
422
+ $woo_shippment_table_name = $main_blog_prefix."woo_shippment_provider";
423
+ } else{
424
+ $woo_shippment_table_name = $wpdb->prefix."woo_shippment_provider";
425
+ }
426
+ } else{
427
+ $woo_shippment_table_name = $wpdb->prefix."woo_shippment_provider";
428
+ }
429
+ $shippment_countries = $wpdb->get_results( "SELECT shipping_country FROM $woo_shippment_table_name WHERE display_in_order = 1 GROUP BY shipping_country" );
430
+
431
+ $shippment_providers = $wpdb->get_results( "SELECT * FROM $woo_shippment_table_name" );
432
+
433
+ $default_provider = get_option("wc_ast_default_provider" );
434
+ $wc_ast_default_mark_shipped = get_option("wc_ast_default_mark_shipped" );
435
+
436
+ $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
437
+ if($wc_ast_status_shipped == 1){
438
+ $change_order_status_label = __( 'Mark as Shipped?', 'woo-advanced-shipment-tracking' );
439
+ $shipped_label = __( 'Shipped', 'woo-advanced-shipment-tracking' );
440
+ } else{
441
+ $change_order_status_label = __( 'Mark as Completed?', 'woo-advanced-shipment-tracking' );
442
+ $shipped_label = __( 'Completed', 'woo-advanced-shipment-tracking' );
443
+ }
444
+
445
+ $wc_ast_status_partial_shipped = get_option('wc_ast_status_partial_shipped');
446
+ ob_start();
447
+ ?>
448
+ <div id="" class="trackingpopup_wrapper add_tracking_popup" style="display:none;">
449
+ <div class="trackingpopup_row">
450
+ <h3 class="popup_title"><?php _e( 'Add Tracking Number', 'woo-advanced-shipment-tracking'); ?></h2>
451
+ <form id="add_tracking_number_form" method="POST" class="add_tracking_number_form">
452
+ <p class="form-field">
453
+ <label for="tracking_number"><?php _e( 'Provider:', 'woo-advanced-shipment-tracking'); ?></label>
454
+ <select class="chosen_select" id="tracking_provider" name="tracking_provider" style="width: 100%;max-width:100%;">
455
+ <option value=""><?php _e( 'Provider:', 'woo-advanced-shipment-tracking' ); ?></option>
456
+ <?php
457
+ foreach($shippment_countries as $s_c){
458
+ if($s_c->shipping_country != 'Global'){
459
+ $country_name = esc_attr( $WC_Countries->countries[$s_c->shipping_country] );
460
+ } else{
461
+ $country_name = 'Global';
462
+ }
463
+ echo '<optgroup label="' . $country_name . '">';
464
+ $country = $s_c->shipping_country;
465
+ $shippment_providers_by_country = $wpdb->get_results( "SELECT * FROM $woo_shippment_table_name WHERE shipping_country = '$country' AND display_in_order = 1" );
466
+ foreach ( $shippment_providers_by_country as $providers ) {
467
+ $selected = ( $default_provider == esc_attr( $providers->ts_slug ) ) ? 'selected' : '';
468
+ echo '<option value="' . esc_attr( $providers->ts_slug ) . '" '.$selected. '>' . esc_html( $providers->provider_name ) . '</option>';
469
+ }
470
+ echo '</optgroup>';
471
+ } ?>
472
+ </select>
473
+ </p>
474
+ <p class="form-field tracking_number_field ">
475
+ <label for="tracking_number"><?php _e( 'Tracking number:', 'woo-advanced-shipment-tracking'); ?></label>
476
+ <input type="text" class="short" style="" name="tracking_number" id="tracking_number" value="" placeholder="">
477
+ </p>
478
+ <p class="form-field date_shipped_field">
479
+ <label for="date_shipped"><?php _e( 'Date shipped:', 'woo-advanced-shipment-tracking'); ?></label>
480
+ <input type="text" class="date-picker-field" style="" name="date_shipped" id="date_shipped" value="<?php echo date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), current_time( 'timestamp' ) ); ?>" placeholder="<?php echo date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), time() ); ?>">
481
+ </p>
482
+ <?php
483
+
484
+ do_action("ast_tracking_form_between_form", $order_id);
485
+
486
+ if($wc_ast_status_partial_shipped){ ?>
487
+ <fieldset class="form-field change_order_to_shipped_field">
488
+ <span><?php _e( 'Mark order as:', 'woo-advanced-shipment-tracking'); ?></span>
489
+ <ul class="wc-radios">
490
+ <li><label><input name="change_order_to_shipped" value="change_order_to_shipped" type="checkbox" class="select short mark_shipped_checkbox" <?php if($wc_ast_default_mark_shipped == 1){ echo 'checked'; }?>><?php _e( $shipped_label, 'woo-advanced-shipment-tracking'); ?></label></li>
491
+ <li><label><input name="change_order_to_shipped" value="change_order_to_partial_shipped" type="checkbox" class="select short mark_shipped_checkbox"><?php _e( 'Partial Shipped', 'woo-advanced-shipment-tracking'); ?></label></li>
492
+ </ul>
493
+ </fieldset>
494
+ <?php } else{ ?>
495
+ <p class="form-field change_order_to_shipped_field ">
496
+ <label for="change_order_to_shipped"><?php echo $change_order_status_label; ?></label>
497
+ <input type="checkbox" class="checkbox" style="" name="change_order_to_shipped" id="change_order_to_shipped" value="yes" <?php if($wc_ast_default_mark_shipped == 1){ echo 'checked'; }?>>
498
+ </p>
499
+ <?php } ?>
500
+ <p class="" style="text-align:left;">
501
+ <input type="hidden" name="action" value="add_inline_tracking_number">
502
+ <input type="hidden" name="order_id" id="order_id" value="<?php echo $order_id; ?>">
503
+ <input type="submit" name="Submit" value="Save Tracking" class="button-primary btn_green">
504
+ </p>
505
+ </form>
506
+ </div>
507
+ <div class="popupclose"></div>
508
+ </div>
509
+ <?php
510
+ $html = ob_get_clean();
511
+ echo $html;exit;
512
+ }
513
+
514
+ /*
515
+ * define the item in the meta box by adding an item to the $actions array
516
+ */
517
+ function add_order_meta_box_actions( $actions ) {
518
+ $actions['resend_delivered_order_notification'] = __( 'Resend delivered order notification', 'woo-advanced-shipment-tracking' );
519
+ return $actions;
520
+ }
521
+
522
+ /*
523
+ * function call when resend delivered order email notification trigger
524
+ */
525
+ function process_order_meta_box_actions($order){
526
+ require_once( 'email-manager.php' );
527
+ $old_status = 'pre_transit';
528
+ $new_status = 'in_transit';
529
+ $order_id = $order->get_id();
530
+ $st = WC_Advanced_Shipment_Tracking_Actions::get_instance();
531
+ $tracking_items = $st->get_tracking_items( $order_id, true );
532
+ foreach( ( array )$tracking_items as $key => $tracking_item ){
533
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
534
+ if( is_string($shipment_status) )$shipment_status = array();
535
+ $st->trigger_tracking_email( $order_id, $old_status, $new_status, $tracking_item, $shipment_status[$key] );
536
+ }
537
+ WC()->mailer()->emails['WC_Email_Customer_Delivered_Order']->trigger( $order_id, $order );
538
+ }
539
+
540
+ /**
541
+ * Add a new dashboard widget.
542
+ */
543
+ public function ast_add_dashboard_widgets() {
544
+ wp_add_dashboard_widget( 'trackship_dashboard_widget', 'Tracking Analytics <small>(last 30 days)</small>', array( $this, 'dashboard_widget_function') );
545
+ }
546
+
547
+ /**
548
+ * Output the contents of the dashboard widget
549
+ */
550
+ public function dashboard_widget_function( $post, $callback_args ) {
551
+
552
+ wp_enqueue_script( 'amcharts');
553
+ wp_enqueue_script( 'amcharts-light-theme');
554
+
555
+ // Get orders completed.
556
+ $args = array(
557
+ //'status' => 'wc-completed',
558
+ 'limit' => -1,
559
+ 'date_created' => '>' . ( time() - 2592000 ),
560
+ );
561
+ $orders = wc_get_orders( $args );
562
+ $shipment_trackers = 0;
563
+ $shipment_status = array();
564
+ $shipment_status_merge = array();
565
+ $tracking_item_merge = array();
566
+ foreach($orders as $order){
567
+ $order_id = $order->get_id();
568
+
569
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
570
+ $tracking_items = $ast->get_tracking_items( $order_id, true );
571
+
572
+ if($tracking_items){
573
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
574
+
575
+ if(is_array($shipment_status)){
576
+ $shipment_status_merge = array_merge($shipment_status_merge, $shipment_status);
577
+ }
578
+ //echo '<pre>';print_r($shipment_status_merge);echo '</pre>';
579
+ foreach ( $tracking_items as $key => $tracking_item ) {
580
+ if( isset($shipment_status[$key]) ){
581
+ $tracking_item_merge[] = $tracking_item;
582
+ $shipment_trackers++;
583
+ }
584
+ }
585
+ }
586
+ }
587
+
588
+ $shipment_status_arr = array();
589
+
590
+ foreach ((array)$shipment_status_merge as $key => $item) {
591
+ $shipment_status_arr[$item['status']][$key] = $item;
592
+ }
593
+
594
+ $tracking_provider_arr = array();
595
+
596
+ foreach ($tracking_item_merge as $key => $item) {
597
+ $tracking_provider_arr[$item['formatted_tracking_provider']][$key] = $item;
598
+ }
599
+
600
+ $tracking_issue_array = array();
601
+ foreach($shipment_status_arr as $status => $val){
602
+ if($status == 'carrier_unsupported' || $status == 'INVALID_TRACKING_NUM' || $status == 'unknown' || $status == 'wrong_shipping_provider'){
603
+ $tracking_issue_array[$status] = $val;
604
+ }
605
+ }
606
+
607
+ ksort($shipment_status_arr, SORT_NUMERIC);
608
+ ksort($tracking_provider_arr, SORT_NUMERIC);
609
+
610
+
611
+
612
+ ?>
613
+ <script type="text/javascript">
614
+ AmCharts.makeChart("ast_dashboard_status_chart",
615
+ {
616
+ "type": "serial",
617
+ "categoryField": "shipment_status",
618
+ "startDuration": 1,
619
+ "handDrawScatter": 4,
620
+ "theme": "light",
621
+ "categoryAxis": {
622
+ "autoRotateAngle": 0,
623
+ "autoRotateCount": 0,
624
+ "autoWrap": true,
625
+ "gridPosition": "start",
626
+ "minHorizontalGap": 10,
627
+ "offset": 1
628
+ },
629
+ "trendLines": [],
630
+ "graphs": [
631
+ {
632
+ "balloonText": " [[shipment_status]] : [[value]]",
633
+ "bulletBorderThickness": 7,
634
+ "colorField": "color",
635
+ "fillAlphas": 1,
636
+ "id": "AmGraph-1",
637
+ "lineColorField": "color",
638
+ "title": "graph 1",
639
+ "type": "column",
640
+ "valueField": "count"
641
+ }
642
+ ],
643
+ "guides": [],
644
+ "valueAxes": [
645
+ {
646
+ "id": "ValueAxis-1",
647
+ "title": ""
648
+ }
649
+ ],
650
+ "allLabels": [],
651
+ "balloon": {},
652
+ "titles": [
653
+ {
654
+ "id": "Title-1",
655
+ "size": 15,
656
+ "text": ""
657
+ }
658
+ ],
659
+ "dataProvider": [
660
+ <?php
661
+ foreach($shipment_status_arr as $status => $array){ ?>
662
+ {
663
+ "shipment_status": "<?php echo apply_filters("trackship_status_filter",$status); ?>",
664
+ "count": <?php echo count($array); ?>,
665
+ "color": "#BBE285",
666
+ },
667
+ <?php
668
+ } ?>
669
+ ]
670
+ }
671
+ );
672
+ </script>
673
+ <script type="text/javascript">
674
+ AmCharts.makeChart("ast_dashboard_providers_chart",
675
+ {
676
+ "type": "serial",
677
+ "categoryField": "shipment_provider",
678
+ "startDuration": 1,
679
+ "handDrawScatter": 4,
680
+ "theme": "light",
681
+ "categoryAxis": {
682
+ "autoRotateAngle": 0,
683
+ "autoRotateCount": 0,
684
+ "autoWrap": true,
685
+ "gridPosition": "start",
686
+ "minHorizontalGap": 10,
687
+ "offset": 1
688
+ },
689
+ "trendLines": [],
690
+ "graphs": [
691
+ {
692
+ "balloonText": " [[shipment_provider]] : [[value]]",
693
+ "bulletBorderThickness": 7,
694
+ "colorField": "color",
695
+ "fillAlphas": 1,
696
+ "id": "AmGraph-1",
697
+ "lineColorField": "color",
698
+ "title": "graph 1",
699
+ "type": "column",
700
+ "valueField": "count"
701
+ }
702
+ ],
703
+ "guides": [],
704
+ "valueAxes": [
705
+ {
706
+ "id": "ValueAxis-1",
707
+ "title": ""
708
+ }
709
+ ],
710
+ "allLabels": [],
711
+ "balloon": {},
712
+ "titles": [
713
+ {
714
+ "id": "Title-1",
715
+ "size": 15,
716
+ "text": ""
717
+ }
718
+ ],
719
+ "dataProvider": [
720
+ <?php
721
+ foreach($tracking_provider_arr as $provider => $array){ ?>
722
+ {
723
+ "shipment_provider": "<?php echo $provider; ?>",
724
+ "count": <?php echo count($array); ?>,
725
+ "color": "#BBE285",
726
+ },
727
+ <?php
728
+ } ?>
729
+ ]
730
+ }
731
+ );
732
+ </script>
733
+ <div class="ast-dashborad-widget">
734
+
735
+ <input id="tab_s_providers" type="radio" name="tabs" class="widget_tab_input" checked>
736
+ <label for="tab_s_providers" class="widget_tab_label first_label"><?php _e('Shipment Providers', 'woo-advanced-shipment-tracking'); ?></label>
737
+
738
+ <input id="tab_s_status" type="radio" name="tabs" class="widget_tab_input">
739
+ <label for="tab_s_status" class="widget_tab_label"><?php _e('Shipment Status', 'woo-advanced-shipment-tracking'); ?></label>
740
+
741
+ <input id="tab_t_issues" type="radio" name="tabs" class="widget_tab_input">
742
+ <label for="tab_t_issues" class="widget_tab_label"><?php _e('Tracking issues', 'woo-advanced-shipment-tracking'); ?></label>
743
+
744
+ <section id="content_s_providers" class="widget_tab_section">
745
+ <?php if($tracking_provider_arr){ ?>
746
+ <div id="ast_dashboard_providers_chart" class="" style="width: 100%;height: 300px;"></div>
747
+ <?php } else{ ?>
748
+ <p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
749
+ <?php } ?>
750
+ </section>
751
+
752
+ <section id="content_s_status" class="widget_tab_section">
753
+ <?php if($shipment_status_arr){ ?>
754
+ <div id="ast_dashboard_status_chart" class="" style="width: 100%;height: 300px;"></div>
755
+ <?php } else{ ?>
756
+ <p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
757
+ <?php } ?>
758
+ </section>
759
+
760
+ <section id="content_t_issues" class="widget_tab_section">
761
+ <?php if($tracking_issue_array){ ?>
762
+ <table class="table widefat fixed striped" style="border: 0;border-bottom: 1px solid #e5e5e5;">
763
+ <tbody>
764
+ <?php foreach($tracking_issue_array as $status => $array){ ?>
765
+ <tr>
766
+ <td><a href="<?php echo get_site_url(); ?>/wp-admin/edit.php?s&post_status=all&post_type=shop_order&_shop_order_shipment_status=<?php echo $status; ?>"><?php echo apply_filters("trackship_status_filter",$status); ?></a></td>
767
+ <td><?php echo count($array); ?></td>
768
+ </tr>
769
+ <?php } ?>
770
+ </tbody>
771
+ </table>
772
+ <?php } else{ ?>
773
+ <p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
774
+ <?php } ?>
775
+ </section>
776
+
777
+ </div>
778
+ <div class="widget_footer">
779
+ <a class="" href="https://my.trackship.info/analytics/" target="blank"><?php _e( 'View more on TrackShip','woo-advanced-shipment-tracking' ); ?></a>
780
+ </div>
781
+ <?php }
782
+
783
+ /**
784
+ * Update Delivered order email enable/disable in customizer
785
+ */
786
+ public function save_delivered_email($data){
787
+ $woocommerce_customer_delivered_order_enabled = (isset($_POST["woocommerce_customer_delivered_order_enabled"])?$_REQUEST["woocommerce_customer_delivered_order_enabled"]:"");
788
+ update_option( 'customizer_delivered_order_settings_enabled',$woocommerce_customer_delivered_order_enabled);
789
+ }
790
+
791
+ /**
792
+ * Update Partially Shipped order email enable/disable in customizer
793
+ */
794
+ public function save_partial_shipped_email($data){
795
+ $woocommerce_customer_partial_shipped_order_enabled = (isset($_POST["woocommerce_customer_partial_shipped_order_enabled"])?$_REQUEST["woocommerce_customer_partial_shipped_order_enabled"]:"");
796
+ update_option( 'customizer_partial_shipped_order_settings_enabled',$woocommerce_customer_partial_shipped_order_enabled);
797
+ }
798
+
799
+ /**
800
+ * Synch provider function
801
+ */
802
+ public function sync_providers_fun(){
803
+ global $wpdb;
804
+
805
+ $url = 'https://trackship.info/wp-json/WCAST/v1/Provider';
806
+ $resp = wp_remote_get( $url );
807
+
808
+ if ( is_array( $resp ) && ! is_wp_error( $resp ) ) {
809
+ $providers = json_decode($resp['body'],true);
810
+
811
+ $default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table WHERE shipping_default = 1" );
812
+
813
+ foreach ( $default_shippment_providers as $key => $val ){
814
+ $shippment_providers[ $val->provider_name ] = $val;
815
+ }
816
+
817
+ foreach ( $providers as $key => $val ){
818
+ $providers_name[ $val['provider_name'] ] = $val;
819
+ }
820
+
821
+ $added = 0;
822
+ $updated = 0;
823
+ $deleted = 0;
824
+ $added_html = '';
825
+ $updated_html = '';
826
+ $deleted_html = '';
827
+
828
+ foreach($providers as $provider){
829
+
830
+ $provider_name = $provider['shipping_provider'];
831
+ $provider_url = $provider['provider_url'];
832
+ $shipping_country = $provider['shipping_country'];
833
+ $ts_slug = $provider['shipping_provider_slug'];
834
+
835
+ if(isset($shippment_providers[$provider_name])){
836
+ $db_provider_url = $shippment_providers[$provider_name]->provider_url;
837
+ $db_shipping_country = $shippment_providers[$provider_name]->shipping_country;
838
+ $db_ts_slug = $shippment_providers[$provider_name]->ts_slug;
839
+ if(($db_provider_url != $provider_url) || ($db_shipping_country != $shipping_country) || ($db_ts_slug != $ts_slug)){
840
+ $data_array = array(
841
+ 'ts_slug' => $ts_slug,
842
+ 'provider_url' => $provider_url,
843
+ 'shipping_country' => $shipping_country,
844
+ );
845
+ $where_array = array(
846
+ 'provider_name' => $provider_name,
847
+ );
848
+ $wpdb->update( $this->table, $data_array, $where_array);
849
+ $updated_data[$updated] = array('provider_name' => $provider_name);
850
+ $updated++;
851
+ }
852
+ } else{
853
+ $img_url = $provider['img_url'];
854
+ $img_slug = sanitize_title($provider_name);
855
+ $img = wc_advanced_shipment_tracking()->get_plugin_path().'/assets/shipment-provider-img/'.$img_slug.'.png';
856
+
857
+ $ch = curl_init();
858
+
859
+ curl_setopt($ch, CURLOPT_HEADER, 0);
860
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
861
+ curl_setopt($ch, CURLOPT_URL, $img_url);
862
+
863
+ $data = curl_exec($ch);
864
+ curl_close($ch);
865
+
866
+ file_put_contents($img, $data);
867
+
868
+
869
+ $data_array = array(
870
+ 'shipping_country' => sanitize_text_field($shipping_country),
871
+ 'provider_name' => sanitize_text_field($provider_name),
872
+ 'ts_slug' => $ts_slug,
873
+ 'provider_url' => sanitize_text_field($provider_url),
874
+ 'display_in_order' => 0,
875
+ 'shipping_default' => 1,
876
+ );
877
+ $result = $wpdb->insert( $this->table, $data_array );
878
+ $added_data[$added] = array('provider_name' => $provider_name);
879
+ $added++;
880
+ }
881
+ }
882
+ foreach($default_shippment_providers as $db_provider){
883
+ if(!isset($providers_name[$db_provider->provider_name])){
884
+ $where = array(
885
+ 'provider_name' => $db_provider->provider_name,
886
+ 'shipping_default' => 1
887
+ );
888
+ $wpdb->delete( $this->table, $where );
889
+ $deleted_data[$deleted] = array('provider_name' => $db_provider->provider_name);
890
+ $deleted++;
891
+ }
892
+ }
893
+ if($added > 0){
894
+ ob_start();
895
+ $added_html = $this->added_html($added_data);
896
+ $added_html = ob_get_clean();
897
+ }
898
+ if($updated > 0){
899
+ ob_start();
900
+ $updated_html = $this->updated_html($updated_data);
901
+ $updated_html = ob_get_clean();
902
+ }
903
+ if($deleted > 0){
904
+ ob_start();
905
+ $deleted_html = $this->deleted_html($deleted_data);
906
+ $deleted_html = ob_get_clean();
907
+ }
908
+
909
+ $status = 'active';
910
+ $default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table WHERE display_in_order = 1" );
911
+ ob_start();
912
+ $admin = new WC_Advanced_Shipment_Tracking_Admin;
913
+ $html = $admin->get_provider_html($default_shippment_providers,$status);
914
+ $html = ob_get_clean();
915
+ echo json_encode( array('added' => $added,'added_html' =>$added_html,'updated' => $updated,'updated_html' =>$updated_html,'deleted' => $deleted,'deleted_html' =>$deleted_html,'html' => $html) );exit;
916
+ } else{
917
+ echo json_encode( array('sync_error' => 1, 'message' => __( 'There are some issue with sync, Please Retry.', 'woo-advanced-shipment-tracking')) );exit;
918
+ }
919
+ }
920
+
921
+ /**
922
+ * Output html of added provider from sync providers
923
+ */
924
+ public function added_html($added_data){ ?>
925
+ <ul class="updated_details" id="added_providers">
926
+ <?php
927
+ foreach ( $added_data as $added ){ ?>
928
+ <li><?php echo $added['provider_name']; ?></li>
929
+ <?php }
930
+ ?>
931
+ </ul>
932
+ <a class="view_synch_details" id="view_added_details" href="javaScript:void(0);" style="display: block;"><?php _e( 'view details', 'woo-advanced-shipment-tracking'); ?></a>
933
+ <a class="view_synch_details" id="hide_added_details" href="javaScript:void(0);" style="display: none;"><?php _e( 'hide details', 'woo-advanced-shipment-tracking'); ?></a>
934
+ <?php }
935
+
936
+ /**
937
+ * Output html of updated provider from sync providers
938
+ */
939
+ public function updated_html($updated_data){ ?>
940
+ <ul class="updated_details" id="updated_providers">
941
+ <?php
942
+ foreach ( $updated_data as $updated ){ ?>
943
+ <li><?php echo $updated['provider_name']; ?></li>
944
+ <?php }
945
+ ?>
946
+ </ul>
947
+ <a class="view_synch_details" id="view_updated_details" href="javaScript:void(0);" style="display: block;"><?php _e( 'view details', 'woo-advanced-shipment-tracking'); ?></a>
948
+ <a class="view_synch_details" id="hide_updated_details" href="javaScript:void(0);" style="display: none;"><?php _e( 'hide details', 'woo-advanced-shipment-tracking'); ?></a>
949
+ <?php }
950
+
951
+ /**
952
+ * Output html of deleted provider from sync providers
953
+ */
954
+ public function deleted_html($deleted_data){ ?>
955
+ <ul class="updated_details" id="deleted_providers">
956
+ <?php
957
+ foreach ( $deleted_data as $deleted ){ ?>
958
+ <li><?php echo $deleted['provider_name']; ?></li>
959
+ <?php }
960
+ ?>
961
+ </ul>
962
+ <a class="view_synch_details" id="view_deleted_details" href="javaScript:void(0);" style="display: block;"><?php _e( 'view details', 'woo-advanced-shipment-tracking'); ?></a>
963
+ <a class="view_synch_details" id="hide_deleted_details" href="javaScript:void(0);" style="display: none;"><?php _e( 'hide details', 'woo-advanced-shipment-tracking'); ?></a>
964
+ <?php }
965
+ }
includes/class-wc-advanced-shipment-tracking.php CHANGED
@@ -131,16 +131,28 @@ class WC_Advanced_Shipment_Tracking_Actions {
131
  foreach ( $tracking_items as $tracking_item ) {
132
  $formatted = $this->get_formatted_tracking_item( $order_id, $tracking_item );
133
  $url = str_replace('%number%',$tracking_item['tracking_number'],$formatted['formatted_tracking_link']);
134
- printf(
135
- '<li id="tracking-item-%s" class="tracking-item-%s"><div><b>%s</b></div><a href="%s" target="_blank" class=ft11>%s</a><a class="inline_tracking_delete" rel="%s" data-order="%s"><span class="dashicons dashicons-trash"></span></a></li>',
136
- esc_attr( $tracking_item['tracking_id'] ),
137
- esc_attr( $tracking_item['tracking_id'] ),
138
- $formatted['formatted_tracking_provider'],
139
- esc_url( $url ),
140
- esc_html( $tracking_item['tracking_number'] ),
141
- esc_attr( $tracking_item['tracking_id'] ),
142
- esc_attr( $order_id )
143
- );
 
 
 
 
 
 
 
 
 
 
 
 
144
  }
145
  echo '</ul>';
146
  } else {
@@ -194,9 +206,12 @@ class WC_Advanced_Shipment_Tracking_Actions {
194
  <div class="trackingpopup_row">
195
  <h3 class="popup_title"><?php _e( 'Add Tracking Number', 'woo-advanced-shipment-tracking'); ?></h2>
196
  <form id="add_tracking_number_form" method="POST" class="add_tracking_number_form">
197
-
 
 
 
198
  <p class="form-field">
199
- <select class="chosen_select" id="tracking_provider" name="tracking_provider" style="width: 100%;">
200
  <option value=""><?php _e( 'Provider:', 'woo-advanced-shipment-tracking' ); ?></option>
201
  <?php
202
  foreach($shippment_countries as $s_c){
@@ -224,14 +239,16 @@ class WC_Advanced_Shipment_Tracking_Actions {
224
  <label for="date_shipped"><?php _e( 'Date shipped:', 'woo-advanced-shipment-tracking'); ?></label>
225
  <input type="text" class="date-picker-field" style="" name="date_shipped" id="date_shipped" value="<?php echo date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), current_time( 'timestamp' ) ); ?>" placeholder="<?php echo date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), time() ); ?>">
226
  </p>
227
-
228
  <?php
 
 
 
229
  if($wc_ast_status_partial_shipped){ ?>
230
  <fieldset class="form-field change_order_to_shipped_field ">
231
  <legend><?php _e( 'Mark order as:', 'woo-advanced-shipment-tracking'); ?></legend>
232
  <ul class="wc-radios">
233
- <li><label><input name="change_order_to_shipped" value="change_order_to_shipped" type="radio" class="select short" style=""><?php _e( $shipped_label, 'woo-advanced-shipment-tracking'); ?></label></li>
234
- <li><label><input name="change_order_to_shipped" value="change_order_to_partial_shipped" type="radio" class="select short" style=""><?php _e( 'Partial Shipped', 'woo-advanced-shipment-tracking'); ?></label></li>
235
  </ul>
236
  </fieldset>
237
  <?php } else{ ?>
@@ -264,24 +281,28 @@ class WC_Advanced_Shipment_Tracking_Actions {
264
  * Returns a HTML node for a tracking item for the admin meta box
265
  */
266
  public function display_html_tracking_item_for_meta_box( $order_id, $item ) {
267
- $formatted = $this->get_formatted_tracking_item( $order_id, $item );
 
268
  ?>
269
  <div class="tracking-item" id="tracking-item-<?php echo esc_attr( $item['tracking_id'] ); ?>">
270
- <p class="tracking-content">
271
- <strong><?php echo esc_html( $formatted['formatted_tracking_provider'] ); ?></strong>
272
-
273
- <?php if ( strlen( $formatted['formatted_tracking_link'] ) > 0 ) : ?>
274
- - <?php
275
- $url = str_replace('%number%',$item['tracking_number'],$formatted['formatted_tracking_link']);
276
- echo sprintf( '<a href="%s" target="_blank" title="' . esc_attr( __( 'Click here to track your shipment', 'woo-advanced-shipment-tracking' ) ) . '">' . __( 'Track', 'woo-advanced-shipment-tracking' ) . '</a>', esc_url( $url ) ); ?>
277
- <?php endif; ?>
278
- <br/>
279
- <em><?php echo esc_html( $item['tracking_number'] ); ?></em>
280
- <?php $this->display_shipment_tracking_info( $order_id, $item );?>
281
- </p>
 
 
 
282
  <p class="meta">
283
  <?php /* translators: 1: shipping date */ ?>
284
- <?php echo esc_html( sprintf( __( 'Shipped on %s', 'woo-advanced-shipment-tracking' ), date_i18n( 'Y-m-d', $item['date_shipped'] ) ) ); ?>
285
  <a href="#" class="delete-tracking" rel="<?php echo esc_attr( $item['tracking_id'] ); ?>"><?php _e( 'Delete', 'woocommerce' ); ?></a>
286
  </p>
287
  </div>
@@ -295,6 +316,12 @@ class WC_Advanced_Shipment_Tracking_Actions {
295
  $shipment_status = get_post_meta( $order_id, "shipment_status", true);
296
  $tracking_id = $item['tracking_id'];
297
  $tracking_items = $this->get_tracking_items( $order_id );
 
 
 
 
 
 
298
  if ( count( $tracking_items ) > 0 ) {
299
  foreach ( $tracking_items as $key => $tracking_item ) {
300
  if( $tracking_id == $tracking_item['tracking_id'] ){
@@ -309,14 +336,15 @@ class WC_Advanced_Shipment_Tracking_Actions {
309
  if( $status != 'delivered' && $status != 'return_to_sender' && !empty($est_delivery_date) ){
310
  $has_est_delivery = true;
311
  }
312
- ?>
313
- </br>
314
  <span class="ast-shipment-status shipment-<?php echo sanitize_title($status)?>"><?php echo apply_filters( "trackship_status_icon_filter", "", $status )?> <strong><?php echo apply_filters("trackship_status_filter",$status)?></strong></span>
315
- <span class="">on <?php echo date( "d/m", strtotime($status_date))?></span>
316
  <br>
317
  <?php if( $has_est_delivery ){?>
318
- <span class="wcast-shipment-est-delivery ft11">Est. Delivery(<?php echo date( "d/m", strtotime($est_delivery_date))?>)</span>
319
  <?php } ?>
 
320
  <?php
321
  }
322
  }
@@ -351,7 +379,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
351
  }
352
 
353
  $tracking_items = $this->get_tracking_items( $post->ID );
354
-
355
  $shippment_countries = $wpdb->get_results( "SELECT shipping_country FROM $woo_shippment_table_name WHERE display_in_order = 1 GROUP BY shipping_country" );
356
 
357
  $shippment_providers = $wpdb->get_results( "SELECT * FROM $woo_shippment_table_name" );
@@ -382,7 +410,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
382
 
383
  echo '<div id="tracking-items">';
384
  if ( count( $tracking_items ) > 0 ) {
385
- foreach ( $tracking_items as $tracking_item ) {
386
  $this->display_html_tracking_item_for_meta_box( $post->ID, $tracking_item );
387
  }
388
  }
@@ -444,18 +472,19 @@ class WC_Advanced_Shipment_Tracking_Actions {
444
  'class' => 'date-picker-field',
445
  'value' => date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), current_time( 'timestamp' ) ),
446
  ) );
447
-
 
 
448
  if($wc_ast_status_partial_shipped){
449
- woocommerce_wp_radio( array(
450
- 'id' => 'change_order_to_shipped',
451
- 'label' => __( 'Mark order as:', 'woo-advanced-shipment-tracking' ),
452
- 'description' => '',
453
- 'options' => array(
454
- 'change_order_to_shipped' => __($shipped_label, 'woo-advanced-shipment-tracking'),
455
- 'change_order_to_partial_shipped' => __('Partial Shipped', 'woo-advanced-shipment-tracking')
456
- ),
457
- 'value' => $cbvalue,
458
- ) );
459
  } else{
460
  woocommerce_wp_checkbox( array(
461
  'id' => 'change_order_to_shipped',
@@ -465,8 +494,8 @@ class WC_Advanced_Shipment_Tracking_Actions {
465
  'value' => $value,
466
  ) );
467
  }
468
- echo '<button class="button button-primary button-save-form">' . __( 'Save Tracking', 'woo-advanced-shipment-tracking' ) . '</button>';
469
- echo '<p class="preview_tracking_link">' . __( 'Preview:', 'woo-advanced-shipment-tracking' ) . ' <a href="" target="_blank">' . __( 'Click here to track your shipment', 'woo-advanced-shipment-tracking' ) . '</a></p>';
470
 
471
  echo '</div>';
472
  $provider_array = array();
@@ -524,6 +553,8 @@ class WC_Advanced_Shipment_Tracking_Actions {
524
 
525
  wp_enqueue_style( 'shipment_tracking_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
526
  wp_enqueue_script( 'woocommerce-advanced-shipment-tracking-js', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/admin.js' );
 
 
527
  }
528
 
529
  /**
@@ -573,10 +604,11 @@ class WC_Advanced_Shipment_Tracking_Actions {
573
  public function save_meta_box_ajax() {
574
  check_ajax_referer( 'create-tracking-item', 'security', true );
575
  $tracking_number = str_replace(' ', '', $_POST['tracking_number']);
576
-
577
  if ( isset( $_POST['tracking_number'] ) && $_POST['tracking_provider'] != '' && isset( $_POST['tracking_provider'] ) && strlen( $_POST['tracking_number'] ) > 0 ) {
578
 
579
  $order_id = wc_clean( $_POST['order_id'] );
 
580
  $args = array(
581
  'tracking_provider' => $_POST['tracking_provider'],
582
  'tracking_number' => wc_clean( $_POST['tracking_number'] ),
@@ -585,15 +617,21 @@ class WC_Advanced_Shipment_Tracking_Actions {
585
 
586
  $tracking_item = $this->add_tracking_item( $order_id, $args );
587
 
588
- if($_POST['change_order_to_shipped'] == 'change_order_to_shipped'){
589
- $order = new WC_Order($order_id);
590
- $order->update_status('completed');
591
- $ast_admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
592
- $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
593
- } elseif($_POST['change_order_to_shipped'] == 'change_order_to_partial_shipped'){
594
- $order = new WC_Order($order_id);
595
- $order->update_status('partial-shipped');
596
- $ast_admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
 
 
 
 
 
 
597
  $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
598
  }
599
 
@@ -609,6 +647,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
609
  * Function for saving tracking items via AJAX
610
  */
611
  public function save_inline_tracking_number() {
 
612
  if ( isset( $_POST['tracking_number'] ) && $_POST['tracking_provider'] != '' && isset( $_POST['tracking_provider'] ) && strlen( $_POST['tracking_number'] ) > 0 ) {
613
  $order_id = wc_clean( $_POST['order_id'] );
614
  $args = array(
@@ -618,20 +657,25 @@ class WC_Advanced_Shipment_Tracking_Actions {
618
  );
619
 
620
  $tracking_item = $this->add_tracking_item( $order_id, $args );
621
-
622
  if($_POST['change_order_to_shipped'] == 'change_order_to_shipped' || $_POST['change_order_to_shipped'] == 'yes'){
623
  $order = new WC_Order($order_id);
624
- $order->update_status('completed');
625
- $ast_admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
626
- $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
 
 
627
  } elseif($_POST['change_order_to_shipped'] == 'change_order_to_partial_shipped'){
628
  $order = new WC_Order($order_id);
629
- $order->update_status('partial-shipped');
630
- $ast_admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
 
 
 
 
 
631
  $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
632
- }
633
-
634
- //$this->display_html_tracking_item_for_meta_box( $order_id, $tracking_item );
635
  }
636
  }
637
 
@@ -685,7 +729,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
685
  * Display Shipment info in the frontend (order view/tracking page).
686
  */
687
  public function show_tracking_info_order( $order_id ) {
688
- wc_get_template( 'myaccount/tracking-info.php', array( 'tracking_items' => $this->get_tracking_items( $order_id, true ) ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
689
  }
690
 
691
  /**
@@ -719,26 +763,26 @@ class WC_Advanced_Shipment_Tracking_Actions {
719
 
720
  $wc_ast_unclude_tracking_info = get_option('wc_ast_unclude_tracking_info');
721
 
722
- $order_id = is_callable( array( $order, 'get_id' ) ) ? $order->get_id() : $order->id;
723
  $order = wc_get_order( $order_id );
724
- $order_status = $order->get_status();
725
- //echo '<pre>';print_r($wc_ast_unclude_tracking_info);echo '</pre>';exit;
726
- //echo $order_status;exit;
727
-
728
- if ( is_a( $email, 'WC_Email_Customer_Invoice' ) && isset($wc_ast_unclude_tracking_info['show_in_customer_invoice']) && $wc_ast_unclude_tracking_info['show_in_customer_invoice'] == 0){
729
- return;
730
- }
731
- if(isset($wc_ast_unclude_tracking_info[$order_status]) && $wc_ast_unclude_tracking_info[$order_status] == 0 && !is_a( $email, 'WC_Email_Customer_Invoice' )){
732
- return;
733
- }
734
-
735
- $tracking_items = $this->get_tracking_items( $order_id, true );
736
-
737
- if ( true === $plain_text ) {
738
- wc_get_template( 'emails/plain/tracking-info.php', array( 'tracking_items' => $this->get_tracking_items( $order_id, true ) ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
739
- } else {
740
- wc_get_template( 'emails/tracking-info.php', array( 'tracking_items' => $this->get_tracking_items( $order_id, true ) ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
741
- }
742
  }
743
 
744
  /**
@@ -764,14 +808,24 @@ class WC_Advanced_Shipment_Tracking_Actions {
764
  $tracking_items = $this->get_tracking_items( $order_id, true );
765
  if($tracking_items){
766
  $wcast_customizer_settings = new wcast_initialise_customizer_settings();
767
- $provider_header_text = get_theme_mod('provider_header_text',$wcast_customizer_settings->defaults['provider_header_text']);
768
- $tracking_number_header_text = get_theme_mod('tracking_number_header_text',$wcast_customizer_settings->defaults['tracking_number_header_text']);
769
- $show_track_label = get_theme_mod('show_track_label');
770
- $remove_date_from_tracking_info = get_theme_mod('remove_date_from_tracking');
771
- $track_header_text = get_theme_mod('track_header_text',$wcast_customizer_settings->defaults['track_header_text']);
772
- $display_thumbnail = get_theme_mod('display_shipment_provider_image');
773
- $shipped_date_header_text = get_theme_mod('shipped_date_header_text',$wcast_customizer_settings->defaults['shipped_date_header_text']);
774
- if(get_theme_mod('header_text_change')){ $shipment_tracking_header = get_theme_mod('header_text_change'); } else{ $shipment_tracking_header = "Tracking Information"; }
 
 
 
 
 
 
 
 
 
 
775
  ?>
776
  <h2 class="header_text"><?php echo apply_filters( 'woocommerce_shipment_tracking_my_orders_title', __( $shipment_tracking_header, 'woo-advanced-shipment-tracking' ) ); ?></h2><br/>
777
  <table class="order-details">
@@ -780,7 +834,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
780
  <th class=""><?php _e( $provider_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
781
  <th class=""><?php _e( $tracking_number_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
782
  <?php if($remove_date_from_tracking_info != 1){ ?>
783
- <th class="" style="<?php echo $th_column_style; ?>"><span class="nobr"><?php _e( $shipped_date_header_text, 'woo-advanced-shipment-tracking' ); ?></span></th>
784
  <?php }
785
  ?>
786
  <th class=""><?php if($show_track_label == 1){ _e( $track_header_text, 'woo-advanced-shipment-tracking' ); } ?></th>
@@ -788,6 +842,10 @@ class WC_Advanced_Shipment_Tracking_Actions {
788
  </thead>
789
  <tbody><?php
790
  foreach ( $tracking_items as $tracking_item ) {
 
 
 
 
791
  ?><tr class="tracking">
792
  <td class="">
793
  <?php
@@ -818,7 +876,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
818
  <?php
819
  if($remove_date_from_tracking_info != 1){ ?>
820
  <td class="">
821
- <time datetime="<?php echo date( 'Y-m-d', $tracking_item['date_shipped'] ); ?>" title="<?php echo date( 'Y-m-d', $tracking_item['date_shipped'] ); ?>"><?php echo date_i18n( get_option( 'date_format' ), $tracking_item['date_shipped'] ); ?></time>
822
  </td>
823
  <?php } ?>
824
  <td class="">
@@ -847,6 +905,20 @@ class WC_Advanced_Shipment_Tracking_Actions {
847
  */
848
  public function get_formatted_tracking_item( $order_id, $tracking_item ) {
849
  $formatted = array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
850
 
851
  if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
852
  $postcode = get_post_meta( $order_id, '_shipping_postcode', true );
@@ -865,7 +937,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
865
  $formatted['formatted_tracking_provider'] = '';
866
  $formatted['formatted_tracking_link'] = '';
867
 
868
- if ( isset( $tracking_item['custom_tracking_provider'] ) && !empty( $tracking_item['custom_tracking_provider'] ) ) {
869
  $formatted['formatted_tracking_provider'] = $tracking_item['custom_tracking_provider'];
870
  $formatted['formatted_tracking_link'] = $tracking_item['custom_tracking_link'];
871
  } else {
@@ -888,7 +960,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
888
  $wc_ast_api_key = get_option('wc_ast_api_key');
889
  $use_tracking_page = get_option('wc_ast_use_tracking_page');
890
 
891
- if( $wc_ast_api_key && $use_tracking_page){
892
  $order_key = $order->get_order_key();
893
  $formatted['formatted_tracking_link'] = get_permalink( $tracking_page ).'?order_id='.$order_id.'&order_key='.$order_key;
894
  } else {
@@ -904,10 +976,17 @@ class WC_Advanced_Shipment_Tracking_Actions {
904
  $shipping_country = $order->get_billing_country();
905
  }
906
 
907
- if($shipping_country){
 
 
 
 
 
 
908
  if($tracking_item['tracking_provider'] == 'dhl-ecommerce'){
909
  $link_format = str_replace('us-en', strtolower($shipping_country).'-en', $link_format);
910
  }
 
911
  if($tracking_item['tracking_provider'] == 'dhl-freight'){
912
  $link_format = str_replace('global-en', strtolower($shipping_country).'-en', $link_format);
913
  }
@@ -991,14 +1070,18 @@ class WC_Advanced_Shipment_Tracking_Actions {
991
  $tracking_item['tracking_number'] = wc_clean( $args['tracking_number'] );
992
  }
993
 
994
- if(isset($args['date_shipped'])){
995
- $date = str_replace("/","-",$args['date_shipped']);
996
  $date = date_create($date);
997
  $date = date_format($date,"d-m-Y");
998
 
999
  $tracking_item['date_shipped'] = wc_clean( strtotime( $date ) );
1000
  }
1001
 
 
 
 
 
1002
  if(isset($args['status_shipped'])){
1003
  $tracking_item['status_shipped'] = wc_clean( $args['status_shipped'] );
1004
  }
@@ -1012,17 +1095,32 @@ class WC_Advanced_Shipment_Tracking_Actions {
1012
  } else {
1013
  $tracking_item['tracking_id'] = md5( "{$tracking_item['tracking_provider']}-{$tracking_item['tracking_number']}" . microtime() );
1014
  }
1015
-
1016
- $tracking_items = $this->get_tracking_items( $order_id );
1017
- $tracking_items[] = $tracking_item;
 
 
 
 
 
 
 
 
 
 
 
1018
 
1019
  $this->save_tracking_items( $order_id, $tracking_items );
1020
 
1021
  $status_shipped = (isset($tracking_item["status_shipped"])?$tracking_item["status_shipped"]:"");
1022
-
1023
  if( $status_shipped == 1){
1024
  $order = new WC_Order( $order_id );
1025
- $order->update_status('completed');
 
 
 
 
1026
  }
1027
 
1028
  if( $status_shipped == 2){
@@ -1030,6 +1128,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
1030
  if($wc_ast_status_partial_shipped){
1031
  $order = new WC_Order( $order_id );
1032
  $order->update_status('partial-shipped');
 
1033
  }
1034
  }
1035
 
@@ -1047,6 +1146,15 @@ class WC_Advanced_Shipment_Tracking_Actions {
1047
  return $tracking_item;
1048
  }
1049
 
 
 
 
 
 
 
 
 
 
1050
  /*
1051
  * Adds a tracking item to the post_meta array from external system programatticaly
1052
  *
@@ -1095,15 +1203,20 @@ class WC_Advanced_Shipment_Tracking_Actions {
1095
  }
1096
 
1097
  $status_shipped = (isset($tracking_item["status_shipped"])?$tracking_item["status_shipped"]:"");
1098
-
1099
  if( $status_shipped == 1){
1100
  $order = new WC_Order( $order_id );
1101
- $order->update_status('completed');
1102
- }
 
 
 
 
1103
 
1104
  if( $status_shipped == 2){
1105
  $order = new WC_Order( $order_id );
1106
  $order->update_status('partial-shipped');
 
1107
  }
1108
  return $tracking_item;
1109
  }
@@ -1243,7 +1356,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
1243
  tracking_number.css( "border-color", "red" );
1244
  error = true;
1245
  } else {
1246
- var pattern = /^[A-Za-z0-9]+$/;
1247
  if(!pattern.test(tracking_number.val())){
1248
  tracking_number.css( "border-color", "red" );
1249
  error = true;
@@ -1262,18 +1375,18 @@ class WC_Advanced_Shipment_Tracking_Actions {
1262
  /**
1263
  * code for trigger shipment status email
1264
  */
1265
- public function trigger_tracking_email($order_id, $old_status, $new_status){
1266
  $order = wc_get_order( $order_id );
1267
  require_once( 'email-manager.php' );
1268
-
1269
- if( $old_status != $new_status){
1270
-
1271
  if($new_status == 'delivered'){
1272
- wc_advanced_shipment_tracking_email_class()->delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status);
1273
  } elseif($new_status == 'failure' || $new_status == 'in_transit' || $new_status == 'out_for_delivery' || $new_status == 'available_for_pickup' || $new_status == 'return_to_sender'){
1274
- wc_advanced_shipment_tracking_email_class()->shippment_status_email_trigger($order_id, $order, $old_status, $new_status);
1275
  }
1276
- do_action( 'ast_trigger_ts_status_change',$order_id, $old_status, $new_status );
1277
  }
1278
  }
1279
 
@@ -1330,6 +1443,22 @@ class WC_Advanced_Shipment_Tracking_Actions {
1330
  }
1331
  }
1332
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1333
  if ( is_plugin_active( 'wp-lister-amazon/wp-lister-amazon.php' ) ) {
1334
  $wpla_use_amazon_order_number = get_option( 'wpla_use_amazon_order_number' );
1335
  if($wpla_use_amazon_order_number == 1){
@@ -1365,11 +1494,15 @@ class WC_Advanced_Shipment_Tracking_Actions {
1365
  'post_type' => 'shop_order',
1366
  'posts_per_page' => '1',
1367
  'meta_query' => array(
1368
- 'relation' => 'AND',
1369
  array(
1370
- 'key' => '_ebay_extended_order_id',
1371
- 'value' => $order_id
1372
  ),
 
 
 
 
1373
  ),
1374
  'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
1375
  );
@@ -1388,4 +1521,13 @@ class WC_Advanced_Shipment_Tracking_Actions {
1388
  }
1389
  return $order_id;
1390
  }
 
 
 
 
 
 
 
 
 
1391
  }
131
  foreach ( $tracking_items as $tracking_item ) {
132
  $formatted = $this->get_formatted_tracking_item( $order_id, $tracking_item );
133
  $url = str_replace('%number%',$tracking_item['tracking_number'],$formatted['formatted_tracking_link']);
134
+ if($url){
135
+ printf(
136
+ '<li id="tracking-item-%s" class="tracking-item-%s"><div><b>%s</b></div><a href="%s" target="_blank" class=ft11>%s</a><a class="inline_tracking_delete" rel="%s" data-order="%s"><span class="dashicons dashicons-trash"></span></a></li>',
137
+ esc_attr( $tracking_item['tracking_id'] ),
138
+ esc_attr( $tracking_item['tracking_id'] ),
139
+ $formatted['formatted_tracking_provider'],
140
+ esc_url( $url ),
141
+ esc_html( $tracking_item['tracking_number'] ),
142
+ esc_attr( $tracking_item['tracking_id'] ),
143
+ esc_attr( $order_id )
144
+ );
145
+ } else{
146
+ printf(
147
+ '<li id="tracking-item-%s" class="tracking-item-%s"><div><b>%s</b></div>%s<a class="inline_tracking_delete" rel="%s" data-order="%s"><span class="dashicons dashicons-trash"></span></a></li>',
148
+ esc_attr( $tracking_item['tracking_id'] ),
149
+ esc_attr( $tracking_item['tracking_id'] ),
150
+ $formatted['formatted_tracking_provider'],
151
+ esc_html( $tracking_item['tracking_number'] ),
152
+ esc_attr( $tracking_item['tracking_id'] ),
153
+ esc_attr( $order_id )
154
+ );
155
+ }
156
  }
157
  echo '</ul>';
158
  } else {
206
  <div class="trackingpopup_row">
207
  <h3 class="popup_title"><?php _e( 'Add Tracking Number', 'woo-advanced-shipment-tracking'); ?></h2>
208
  <form id="add_tracking_number_form" method="POST" class="add_tracking_number_form">
209
+ <p class="form-field tracking_number_field ">
210
+ <label for="tracking_number"><?php _e( 'Provider:', 'woo-advanced-shipment-tracking'); ?></label>
211
+ <input type="text" class="short" style="" name="tracking_number" id="tracking_number" value="" placeholder="">
212
+ </p>
213
  <p class="form-field">
214
+ <select class="chosen_select" id="tracking_provider" name="tracking_provider" style="width: 100%;max-width: 100%;">
215
  <option value=""><?php _e( 'Provider:', 'woo-advanced-shipment-tracking' ); ?></option>
216
  <?php
217
  foreach($shippment_countries as $s_c){
239
  <label for="date_shipped"><?php _e( 'Date shipped:', 'woo-advanced-shipment-tracking'); ?></label>
240
  <input type="text" class="date-picker-field" style="" name="date_shipped" id="date_shipped" value="<?php echo date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), current_time( 'timestamp' ) ); ?>" placeholder="<?php echo date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), time() ); ?>">
241
  </p>
 
242
  <?php
243
+
244
+ //do_action("ast_tracking_form_between_form", $post->ID);
245
+
246
  if($wc_ast_status_partial_shipped){ ?>
247
  <fieldset class="form-field change_order_to_shipped_field ">
248
  <legend><?php _e( 'Mark order as:', 'woo-advanced-shipment-tracking'); ?></legend>
249
  <ul class="wc-radios">
250
+ <li><label><input name="change_order_to_shipped" value="change_order_to_shipped" type="checkbox" class="select short" style=""><?php _e( $shipped_label, 'woo-advanced-shipment-tracking'); ?></label></li>
251
+ <li><label><input name="change_order_to_shipped" value="change_order_to_partial_shipped" type="checkbox" class="select short" style=""><?php _e( 'Partial Shipped', 'woo-advanced-shipment-tracking'); ?></label></li>
252
  </ul>
253
  </fieldset>
254
  <?php } else{ ?>
281
  * Returns a HTML node for a tracking item for the admin meta box
282
  */
283
  public function display_html_tracking_item_for_meta_box( $order_id, $item ) {
284
+ $formatted = $this->get_formatted_tracking_item( $order_id, $item );
285
+ //echo '<pre>';print_r($formatted);echo '</pre>';
286
  ?>
287
  <div class="tracking-item" id="tracking-item-<?php echo esc_attr( $item['tracking_id'] ); ?>">
288
+ <div class="tracking-content">
289
+ <div class="tracking-content-div">
290
+ <strong><?php echo esc_html( $formatted['formatted_tracking_provider'] ); ?></strong>
291
+ <?php if ( strlen( $formatted['formatted_tracking_link'] ) > 0 ) { ?>
292
+ - <?php
293
+ $url = str_replace('%number%',$item['tracking_number'],$formatted['formatted_tracking_link']);
294
+ echo sprintf( '<a href="%s" target="_blank" title="' . esc_attr( __( 'Track Shipment', 'woo-advanced-shipment-tracking' ) ) . '">' . __( $item['tracking_number'] ) . '</a>', esc_url( $url ) ); ?>
295
+ <?php } else{ ?>
296
+ <span> - <?php echo $item['tracking_number']; ?></span>
297
+ <?php } ?>
298
+ </div>
299
+ <?php do_action('ast_after_tracking_number',$order_id,$item['tracking_id']); ?>
300
+ <?php
301
+ $this->display_shipment_tracking_info( $order_id, $item );?>
302
+ </div>
303
  <p class="meta">
304
  <?php /* translators: 1: shipping date */ ?>
305
+ <?php echo esc_html( sprintf( __( 'Shipped on %s', 'woo-advanced-shipment-tracking' ), date_i18n( get_option( 'date_format' ), $item['date_shipped'] ) ) ); ?>
306
  <a href="#" class="delete-tracking" rel="<?php echo esc_attr( $item['tracking_id'] ); ?>"><?php _e( 'Delete', 'woocommerce' ); ?></a>
307
  </p>
308
  </div>
316
  $shipment_status = get_post_meta( $order_id, "shipment_status", true);
317
  $tracking_id = $item['tracking_id'];
318
  $tracking_items = $this->get_tracking_items( $order_id );
319
+ $wp_date_format = get_option( 'date_format' );
320
+ if($wp_date_format == 'd/m/Y'){
321
+ $date_format = 'd/m';
322
+ } else{
323
+ $date_format = 'm/d';
324
+ }
325
  if ( count( $tracking_items ) > 0 ) {
326
  foreach ( $tracking_items as $key => $tracking_item ) {
327
  if( $tracking_id == $tracking_item['tracking_id'] ){
336
  if( $status != 'delivered' && $status != 'return_to_sender' && !empty($est_delivery_date) ){
337
  $has_est_delivery = true;
338
  }
339
+ ?>
340
+ <div class="ast-shipment-status-div">
341
  <span class="ast-shipment-status shipment-<?php echo sanitize_title($status)?>"><?php echo apply_filters( "trackship_status_icon_filter", "", $status )?> <strong><?php echo apply_filters("trackship_status_filter",$status)?></strong></span>
342
+ <span class="">on <?php echo date( $date_format, strtotime($status_date))?></span>
343
  <br>
344
  <?php if( $has_est_delivery ){?>
345
+ <span class="wcast-shipment-est-delivery ft11">Est. Delivery(<?php echo date( $date_format, strtotime($est_delivery_date))?>)</span>
346
  <?php } ?>
347
+ </div>
348
  <?php
349
  }
350
  }
379
  }
380
 
381
  $tracking_items = $this->get_tracking_items( $post->ID );
382
+ //echo '<pre>';print_r($tracking_items);echo '</pre>';
383
  $shippment_countries = $wpdb->get_results( "SELECT shipping_country FROM $woo_shippment_table_name WHERE display_in_order = 1 GROUP BY shipping_country" );
384
 
385
  $shippment_providers = $wpdb->get_results( "SELECT * FROM $woo_shippment_table_name" );
410
 
411
  echo '<div id="tracking-items">';
412
  if ( count( $tracking_items ) > 0 ) {
413
+ foreach ( $tracking_items as $tracking_item ) {
414
  $this->display_html_tracking_item_for_meta_box( $post->ID, $tracking_item );
415
  }
416
  }
472
  'class' => 'date-picker-field',
473
  'value' => date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), current_time( 'timestamp' ) ),
474
  ) );
475
+
476
+ do_action("ast_tracking_form_between_form", $post->ID);
477
+
478
  if($wc_ast_status_partial_shipped){
479
+ ?>
480
+ <fieldset class="form-field change_order_to_shipped_field" style="margin-bottom: 10px;">
481
+ <span><?php _e( 'Mark order as:', 'woo-advanced-shipment-tracking'); ?></span>
482
+ <ul class="wc-radios">
483
+ <li><label><input name="change_order_to_shipped" value="change_order_to_shipped" type="checkbox" class="select short mark_shipped_checkbox" <?php if($wc_ast_default_mark_shipped == 1){ echo 'checked'; }?>><?php _e( $shipped_label, 'woo-advanced-shipment-tracking'); ?></label></li>
484
+ <li><label><input name="change_order_to_shipped" value="change_order_to_partial_shipped" type="checkbox" class="select short mark_shipped_checkbox"><?php _e( 'Partial Shipped', 'woo-advanced-shipment-tracking'); ?></label></li>
485
+ </ul>
486
+ </fieldset>
487
+ <?php
 
488
  } else{
489
  woocommerce_wp_checkbox( array(
490
  'id' => 'change_order_to_shipped',
494
  'value' => $value,
495
  ) );
496
  }
497
+ echo '<button class="button button-primary btn_green button-save-form">' . __( 'Save Tracking', 'woo-advanced-shipment-tracking' ) . '</button>';
498
+ echo '<p class="preview_tracking_link">' . __( 'Preview:', 'woo-advanced-shipment-tracking' ) . ' <a href="" target="_blank">' . __( 'Track Shipment', 'woo-advanced-shipment-tracking' ) . '</a></p>';
499
 
500
  echo '</div>';
501
  $provider_array = array();
553
 
554
  wp_enqueue_style( 'shipment_tracking_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
555
  wp_enqueue_script( 'woocommerce-advanced-shipment-tracking-js', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/admin.js' );
556
+
557
+ do_action("ast_tracking_form_end_meta_box");
558
  }
559
 
560
  /**
604
  public function save_meta_box_ajax() {
605
  check_ajax_referer( 'create-tracking-item', 'security', true );
606
  $tracking_number = str_replace(' ', '', $_POST['tracking_number']);
607
+ $ast_admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
608
  if ( isset( $_POST['tracking_number'] ) && $_POST['tracking_provider'] != '' && isset( $_POST['tracking_provider'] ) && strlen( $_POST['tracking_number'] ) > 0 ) {
609
 
610
  $order_id = wc_clean( $_POST['order_id'] );
611
+ $order = new WC_Order($order_id);
612
  $args = array(
613
  'tracking_provider' => $_POST['tracking_provider'],
614
  'tracking_number' => wc_clean( $_POST['tracking_number'] ),
617
 
618
  $tracking_item = $this->add_tracking_item( $order_id, $args );
619
 
620
+ if($_POST['change_order_to_shipped'] == 'change_order_to_shipped'){
621
+
622
+ if('completed' == $order->get_status()){
623
+ WC()->mailer()->emails['WC_Email_Customer_Completed_Order']->trigger( $order_id, $order );
624
+ $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
625
+ } else{
626
+ $order->update_status('completed');
627
+ }
628
+ } elseif($_POST['change_order_to_shipped'] == 'change_order_to_partial_shipped'){
629
+ $previous_order_status = $order->get_status();
630
+
631
+ if('partial-shipped' == $previous_order_status){
632
+ WC()->mailer()->emails['WC_Email_Customer_Partial_Shipped_Order']->trigger( $order_id, $order );
633
+ }
634
+ $order->update_status('partial-shipped');
635
  $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
636
  }
637
 
647
  * Function for saving tracking items via AJAX
648
  */
649
  public function save_inline_tracking_number() {
650
+ $ast_admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
651
  if ( isset( $_POST['tracking_number'] ) && $_POST['tracking_provider'] != '' && isset( $_POST['tracking_provider'] ) && strlen( $_POST['tracking_number'] ) > 0 ) {
652
  $order_id = wc_clean( $_POST['order_id'] );
653
  $args = array(
657
  );
658
 
659
  $tracking_item = $this->add_tracking_item( $order_id, $args );
660
+
661
  if($_POST['change_order_to_shipped'] == 'change_order_to_shipped' || $_POST['change_order_to_shipped'] == 'yes'){
662
  $order = new WC_Order($order_id);
663
+ if('completed' == $order->get_status()){
664
+ $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
665
+ } else{
666
+ $order->update_status('completed');
667
+ }
668
  } elseif($_POST['change_order_to_shipped'] == 'change_order_to_partial_shipped'){
669
  $order = new WC_Order($order_id);
670
+
671
+ $previous_order_status = $order->get_status();
672
+
673
+ if('partial-shipped' == $previous_order_status){
674
+ WC()->mailer()->emails['WC_Email_Customer_Partial_Shipped_Order']->trigger( $order_id, $order );
675
+ }
676
+ $order->update_status('partial-shipped');
677
  $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
678
+ }
 
 
679
  }
680
  }
681
 
729
  * Display Shipment info in the frontend (order view/tracking page).
730
  */
731
  public function show_tracking_info_order( $order_id ) {
732
+ wc_get_template( 'myaccount/tracking-info.php', array( 'tracking_items' => $this->get_tracking_items( $order_id, true ), 'order_id' => $order_id ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
733
  }
734
 
735
  /**
763
 
764
  $wc_ast_unclude_tracking_info = get_option('wc_ast_unclude_tracking_info');
765
 
766
+ $order_id = is_callable( array( $order, 'get_id' ) ) ? $order->get_id() : $order->id;
767
  $order = wc_get_order( $order_id );
768
+ if($order){
769
+ $order_status = $order->get_status();
770
+
771
+ if ( is_a( $email, 'WC_Email_Customer_Invoice' ) && isset($wc_ast_unclude_tracking_info['show_in_customer_invoice']) && $wc_ast_unclude_tracking_info['show_in_customer_invoice'] == 0){
772
+ return;
773
+ }
774
+ if(isset($wc_ast_unclude_tracking_info[$order_status]) && $wc_ast_unclude_tracking_info[$order_status] == 0 && !is_a( $email, 'WC_Email_Customer_Invoice' )){
775
+ return;
776
+ }
777
+
778
+ $tracking_items = $this->get_tracking_items( $order_id, true );
779
+
780
+ if ( true === $plain_text ) {
781
+ wc_get_template( 'emails/plain/tracking-info.php', array( 'tracking_items' => $this->get_tracking_items( $order_id, true ), 'order_id'=> $order_id ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
782
+ } else {
783
+ wc_get_template( 'emails/tracking-info.php', array( 'tracking_items' => $this->get_tracking_items( $order_id, true ), 'order_id'=> $order_id ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
784
+ }
785
+ }
786
  }
787
 
788
  /**
808
  $tracking_items = $this->get_tracking_items( $order_id, true );
809
  if($tracking_items){
810
  $wcast_customizer_settings = new wcast_initialise_customizer_settings();
811
+ $tracking_info_settings = get_option('tracking_info_settings');
812
+
813
+ $provider_header_text = $this->get_option_value_from_array('tracking_info_settings','provider_header_text',$wcast_customizer_settings->defaults['provider_header_text']);
814
+
815
+ $tracking_number_header_text = $this->get_option_value_from_array('tracking_info_settings','tracking_number_header_text',$wcast_customizer_settings->defaults['tracking_number_header_text']);
816
+
817
+ $shipped_date_header_text = $this->get_option_value_from_array('tracking_info_settings','shipped_date_header_text',$wcast_customizer_settings->defaults['shipped_date_header_text']);
818
+
819
+ $show_track_label = $tracking_info_settings['show_track_label'];
820
+
821
+ $remove_date_from_tracking_info = $tracking_info_settings['remove_date_from_tracking'];
822
+
823
+ $track_header_text = $this->get_option_value_from_array('tracking_info_settings','track_header_text',$wcast_customizer_settings->defaults['track_header_text']);
824
+
825
+ $display_thumbnail = $tracking_info_settings['display_shipment_provider_image'];
826
+
827
+ if($tracking_info_settings['header_text_change']){ $shipment_tracking_header = $tracking_info_settings['header_text_change']; } else{ $shipment_tracking_header = "Tracking Information"; }
828
+
829
  ?>
830
  <h2 class="header_text"><?php echo apply_filters( 'woocommerce_shipment_tracking_my_orders_title', __( $shipment_tracking_header, 'woo-advanced-shipment-tracking' ) ); ?></h2><br/>
831
  <table class="order-details">
834
  <th class=""><?php _e( $provider_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
835
  <th class=""><?php _e( $tracking_number_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
836
  <?php if($remove_date_from_tracking_info != 1){ ?>
837
+ <th class="" style=""><span class="nobr"><?php _e( $shipped_date_header_text, 'woo-advanced-shipment-tracking' ); ?></span></th>
838
  <?php }
839
  ?>
840
  <th class=""><?php if($show_track_label == 1){ _e( $track_header_text, 'woo-advanced-shipment-tracking' ); } ?></th>
842
  </thead>
843
  <tbody><?php
844
  foreach ( $tracking_items as $tracking_item ) {
845
+ $date_shipped = date("Y-m-d");
846
+ if(isset($tracking_item['date_shipped'])){
847
+ $date_shipped = $tracking_item['date_shipped'];
848
+ }
849
  ?><tr class="tracking">
850
  <td class="">
851
  <?php
876
  <?php
877
  if($remove_date_from_tracking_info != 1){ ?>
878
  <td class="">
879
+ <time datetime="<?php echo date( 'Y-m-d', $date_shipped ); ?>" title="<?php echo date( 'Y-m-d', $date_shipped ); ?>"><?php echo date_i18n( get_option( 'date_format' ), $date_shipped ); ?></time>
880
  </td>
881
  <?php } ?>
882
  <td class="">
905
  */
906
  public function get_formatted_tracking_item( $order_id, $tracking_item ) {
907
  $formatted = array();
908
+ $tracking_items = $this->get_tracking_items( $order_id );
909
+
910
+ foreach($tracking_items as $key=>$item){
911
+ if($item['tracking_id'] == $tracking_item['tracking_id']){
912
+ $shipmet_key = $key;
913
+ }
914
+ }
915
+
916
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
917
+
918
+ $status = '';
919
+ if(isset($shipment_status[$shipmet_key])){
920
+ $status = $shipment_status[$shipmet_key]['status'];
921
+ }
922
 
923
  if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
924
  $postcode = get_post_meta( $order_id, '_shipping_postcode', true );
937
  $formatted['formatted_tracking_provider'] = '';
938
  $formatted['formatted_tracking_link'] = '';
939
 
940
+ if ( isset( $tracking_item['custom_tracking_provider'] ) && !empty( $tracking_item['custom_tracking_provider']) ) {
941
  $formatted['formatted_tracking_provider'] = $tracking_item['custom_tracking_provider'];
942
  $formatted['formatted_tracking_link'] = $tracking_item['custom_tracking_link'];
943
  } else {
960
  $wc_ast_api_key = get_option('wc_ast_api_key');
961
  $use_tracking_page = get_option('wc_ast_use_tracking_page');
962
 
963
+ if( $wc_ast_api_key && $use_tracking_page && $status != 'carrier_unsupported'){
964
  $order_key = $order->get_order_key();
965
  $formatted['formatted_tracking_link'] = get_permalink( $tracking_page ).'?order_id='.$order_id.'&order_key='.$order_key;
966
  } else {
976
  $shipping_country = $order->get_billing_country();
977
  }
978
 
979
+ if($shipping_country){
980
+
981
+ if($tracking_item['tracking_provider'] == 'jp-post' && $shipping_country != 'JP'){
982
+ $local_en = '&locale=en';
983
+ $link_format = $link_format.$local_en;
984
+ }
985
+
986
  if($tracking_item['tracking_provider'] == 'dhl-ecommerce'){
987
  $link_format = str_replace('us-en', strtolower($shipping_country).'-en', $link_format);
988
  }
989
+
990
  if($tracking_item['tracking_provider'] == 'dhl-freight'){
991
  $link_format = str_replace('global-en', strtolower($shipping_country).'-en', $link_format);
992
  }
1070
  $tracking_item['tracking_number'] = wc_clean( $args['tracking_number'] );
1071
  }
1072
 
1073
+ if(isset($args['date_shipped'])){
1074
+ $date = str_replace("/","-",$args['date_shipped']);
1075
  $date = date_create($date);
1076
  $date = date_format($date,"d-m-Y");
1077
 
1078
  $tracking_item['date_shipped'] = wc_clean( strtotime( $date ) );
1079
  }
1080
 
1081
+ if(isset($args['products_list'])){
1082
+ $tracking_item['products_list'] = $args['products_list'];
1083
+ }
1084
+
1085
  if(isset($args['status_shipped'])){
1086
  $tracking_item['status_shipped'] = wc_clean( $args['status_shipped'] );
1087
  }
1095
  } else {
1096
  $tracking_item['tracking_id'] = md5( "{$tracking_item['tracking_provider']}-{$tracking_item['tracking_number']}" . microtime() );
1097
  }
1098
+
1099
+ $tracking_items = $this->get_tracking_items( $order_id );
1100
+ if($tracking_items){
1101
+ $key = $this->seach_tracking_number_in_items($args['tracking_number'], $tracking_items);
1102
+ if($key && isset($args['products_list'])){
1103
+ array_push($tracking_items[$key]['products_list'],$args['products_list'][0]);
1104
+ } else{
1105
+ $tracking_items[] = $tracking_item;
1106
+ }
1107
+ } else{
1108
+ $tracking_items[] = $tracking_item;
1109
+ }
1110
+ //echo '<pre>';print_r($args['products_list']);echo '</pre>';
1111
+ //echo '<pre>';print_r($tracking_items);echo '</pre>';exit;
1112
 
1113
  $this->save_tracking_items( $order_id, $tracking_items );
1114
 
1115
  $status_shipped = (isset($tracking_item["status_shipped"])?$tracking_item["status_shipped"]:"");
1116
+ $ast_admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
1117
  if( $status_shipped == 1){
1118
  $order = new WC_Order( $order_id );
1119
+ if('completed' == $order->get_status()){
1120
+ $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
1121
+ } else{
1122
+ $order->update_status('completed');
1123
+ }
1124
  }
1125
 
1126
  if( $status_shipped == 2){
1128
  if($wc_ast_status_partial_shipped){
1129
  $order = new WC_Order( $order_id );
1130
  $order->update_status('partial-shipped');
1131
+ $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
1132
  }
1133
  }
1134
 
1146
  return $tracking_item;
1147
  }
1148
 
1149
+ public function seach_tracking_number_in_items($tracking_number, $tracking_items){
1150
+ foreach ($tracking_items as $key => $val) {
1151
+ if ($val['tracking_number'] === $tracking_number) {
1152
+ return $key;
1153
+ }
1154
+ }
1155
+ return null;
1156
+ }
1157
+
1158
  /*
1159
  * Adds a tracking item to the post_meta array from external system programatticaly
1160
  *
1203
  }
1204
 
1205
  $status_shipped = (isset($tracking_item["status_shipped"])?$tracking_item["status_shipped"]:"");
1206
+ $ast_admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
1207
  if( $status_shipped == 1){
1208
  $order = new WC_Order( $order_id );
1209
+ if('completed' == $order->get_status()){
1210
+ $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
1211
+ } else{
1212
+ $order->update_status('completed');
1213
+ }
1214
+ }
1215
 
1216
  if( $status_shipped == 2){
1217
  $order = new WC_Order( $order_id );
1218
  $order->update_status('partial-shipped');
1219
+ $ast_admin->trigger_woocommerce_order_status_completed( $order_id );
1220
  }
1221
  return $tracking_item;
1222
  }
1356
  tracking_number.css( "border-color", "red" );
1357
  error = true;
1358
  } else {
1359
+ var pattern = /^[0-9a-zA-Z- \b]+$/;
1360
  if(!pattern.test(tracking_number.val())){
1361
  tracking_number.css( "border-color", "red" );
1362
  error = true;
1375
  /**
1376
  * code for trigger shipment status email
1377
  */
1378
+ public function trigger_tracking_email($order_id, $old_status, $new_status, $tracking_item, $shipment_status){
1379
  $order = wc_get_order( $order_id );
1380
  require_once( 'email-manager.php' );
1381
+ //echo $new_status;exit;
1382
+ //echo '<pre>';print_r($tracking_item);echo '</pre>';exit;
1383
+ if( $old_status != $new_status){
1384
  if($new_status == 'delivered'){
1385
+ wc_advanced_shipment_tracking_email_class()->delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status, $tracking_item);
1386
  } elseif($new_status == 'failure' || $new_status == 'in_transit' || $new_status == 'out_for_delivery' || $new_status == 'available_for_pickup' || $new_status == 'return_to_sender'){
1387
+ wc_advanced_shipment_tracking_email_class()->shippment_status_email_trigger($order_id, $order, $old_status, $new_status, $tracking_item);
1388
  }
1389
+ do_action( 'ast_trigger_ts_status_change',$order_id, $old_status, $new_status, $tracking_item, $shipment_status );
1390
  }
1391
  }
1392
 
1443
  }
1444
  }
1445
 
1446
+ if ( is_plugin_active( 'woocommerce-sequential-order-numbers-pro/woocommerce-sequential-order-numbers.php' ) ) {
1447
+
1448
+ // search for the order by custom order number
1449
+ $query_args = array(
1450
+ 'numberposts' => 1,
1451
+ 'meta_key' => '_order_number_formatted',
1452
+ 'meta_value' => $order_id,
1453
+ 'post_type' => 'shop_order',
1454
+ 'post_status' => 'any',
1455
+ 'fields' => 'ids',
1456
+ );
1457
+
1458
+ $posts = get_posts( $query_args );
1459
+ list( $order_id ) = ! empty( $posts ) ? $posts : null;
1460
+ }
1461
+
1462
  if ( is_plugin_active( 'wp-lister-amazon/wp-lister-amazon.php' ) ) {
1463
  $wpla_use_amazon_order_number = get_option( 'wpla_use_amazon_order_number' );
1464
  if($wpla_use_amazon_order_number == 1){
1494
  'post_type' => 'shop_order',
1495
  'posts_per_page' => '1',
1496
  'meta_query' => array(
1497
+ 'relation' => 'OR',
1498
  array(
1499
+ 'key' => '_ebay_extended_order_id',
1500
+ 'value' => $order_id
1501
  ),
1502
+ array(
1503
+ 'key' => '_ebay_order_id',
1504
+ 'value' => $order_id
1505
+ ),
1506
  ),
1507
  'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
1508
  );
1521
  }
1522
  return $order_id;
1523
  }
1524
+
1525
+ public function get_option_value_from_array($array,$key,$default_value){
1526
+ $array_data = get_option($array);
1527
+ $value = $array_data[$key];
1528
+ if($value == ''){
1529
+ $value = $default_value;
1530
+ }
1531
+ return $value;
1532
+ }
1533
  }
includes/customizer/class-wc-availableforpickup-email-customizer.php CHANGED
@@ -144,14 +144,15 @@ class wcast_availableforpickup_customizer_email {
144
  */
145
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
146
 
147
- $wp_customize->add_setting( 'availableforpickup_order_email_heading',
148
  array(
149
  'default' => '',
150
  'transport' => 'postMessage',
 
151
  'sanitize_callback' => ''
152
  )
153
  );
154
- $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'availableforpickup_order_email_heading',
155
  array(
156
  'label' => __( 'Available For Pickup shipment status email', 'woo-advanced-shipment-tracking' ),
157
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
@@ -159,14 +160,15 @@ class wcast_availableforpickup_customizer_email {
159
  )
160
  ) );
161
  // Display Shipment Provider image/thumbnail
162
- $wp_customize->add_setting( 'wcast_enable_availableforpickup_email',
163
  array(
164
  'default' => $this->defaults['wcast_enable_availableforpickup_email'],
165
  'transport' => 'postMessage',
 
166
  'sanitize_callback' => ''
167
  )
168
  );
169
- $wp_customize->add_control( 'wcast_enable_availableforpickup_email',
170
  array(
171
  'label' => __( 'Enable Available For Pickup shipment status email', 'woo-advanced-shipment-tracking' ),
172
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -196,14 +198,15 @@ class wcast_availableforpickup_customizer_email {
196
  ) );
197
 
198
  // Header Text
199
- $wp_customize->add_setting( 'wcast_availableforpickup_email_to',
200
  array(
201
  'default' => $this->defaults['wcast_availableforpickup_email_to'],
202
  'transport' => 'postMessage',
 
203
  'sanitize_callback' => ''
204
  )
205
  );
206
- $wp_customize->add_control( 'wcast_availableforpickup_email_to',
207
  array(
208
  'label' => __( 'Recipient(s)', 'woocommerce' ),
209
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
@@ -218,58 +221,61 @@ class wcast_availableforpickup_customizer_email {
218
  );
219
 
220
  // Header Text
221
- $wp_customize->add_setting( 'wcast_availableforpickup_email_subject',
222
  array(
223
  'default' => $this->defaults['wcast_availableforpickup_email_subject'],
224
  'transport' => 'postMessage',
 
225
  'sanitize_callback' => ''
226
  )
227
  );
228
- $wp_customize->add_control( 'wcast_availableforpickup_email_subject',
229
  array(
230
  'label' => __( 'Subject', 'woocommerce' ),
231
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
232
  'section' => 'customer_availableforpickup_email',
233
  'type' => 'text',
234
  'input_attrs' => array(
235
  'class' => '',
236
  'style' => '',
237
- 'placeholder' => __( 'Please enter email subject here', 'woo-advanced-shipment-tracking' ),
238
  ),
239
  )
240
  );
241
 
242
  // Header Text
243
- $wp_customize->add_setting( 'wcast_availableforpickup_email_heading',
244
  array(
245
  'default' => $this->defaults['wcast_availableforpickup_email_heading'],
246
- 'transport' => 'postMessage',
 
247
  'sanitize_callback' => ''
248
  )
249
  );
250
- $wp_customize->add_control( 'wcast_availableforpickup_email_heading',
251
  array(
252
  'label' => __( 'Email heading', 'woocommerce' ),
253
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
254
  'section' => 'customer_availableforpickup_email',
255
  'type' => 'text',
256
  'input_attrs' => array(
257
  'class' => '',
258
  'style' => '',
259
- 'placeholder' => __( 'Please enter email heading here', 'woo-advanced-shipment-tracking' ),
260
  ),
261
  )
262
  );
263
 
264
  // Display Shipment Provider image/thumbnail
265
- $wp_customize->add_setting( 'wcast_availableforpickup_show_tracking_details',
266
  array(
267
  'default' => $this->defaults['wcast_availableforpickup_show_tracking_details'],
268
  'transport' => 'refresh',
 
269
  'sanitize_callback' => ''
270
  )
271
  );
272
- $wp_customize->add_control( 'wcast_availableforpickup_show_tracking_details',
273
  array(
274
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
275
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -278,14 +284,15 @@ class wcast_availableforpickup_customizer_email {
278
  )
279
  );
280
  // Display Shipment Provider image/thumbnail
281
- $wp_customize->add_setting( 'wcast_availableforpickup_show_order_details',
282
  array(
283
  'default' => $this->defaults['wcast_availableforpickup_show_order_details'],
284
  'transport' => 'refresh',
 
285
  'sanitize_callback' => ''
286
  )
287
  );
288
- $wp_customize->add_control( 'wcast_availableforpickup_show_order_details',
289
  array(
290
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
291
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -294,14 +301,15 @@ class wcast_availableforpickup_customizer_email {
294
  )
295
  );
296
  // Display Shipment Provider image/thumbnail
297
- $wp_customize->add_setting( 'wcast_availableforpickup_show_billing_address',
298
  array(
299
  'default' => $this->defaults['wcast_availableforpickup_show_billing_address'],
300
  'transport' => 'refresh',
 
301
  'sanitize_callback' => ''
302
  )
303
  );
304
- $wp_customize->add_control( 'wcast_availableforpickup_show_billing_address',
305
  array(
306
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
307
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -311,14 +319,15 @@ class wcast_availableforpickup_customizer_email {
311
  );
312
 
313
  // Display Shipment Provider image/thumbnail
314
- $wp_customize->add_setting( 'wcast_availableforpickup_show_shipping_address',
315
  array(
316
  'default' => $this->defaults['wcast_availableforpickup_show_shipping_address'],
317
  'transport' => 'refresh',
 
318
  'sanitize_callback' => ''
319
  )
320
  );
321
- $wp_customize->add_control( 'wcast_availableforpickup_show_shipping_address',
322
  array(
323
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
324
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -327,14 +336,15 @@ class wcast_availableforpickup_customizer_email {
327
  )
328
  );
329
 
330
- $wp_customize->add_setting( 'wcast_availableforpickup_analytics_link',
331
  array(
332
  'default' => '',
333
- 'transport' => 'refresh',
 
334
  'sanitize_callback' => ''
335
  )
336
  );
337
- $wp_customize->add_control( 'wcast_availableforpickup_analytics_link',
338
  array(
339
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
340
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
@@ -349,14 +359,15 @@ class wcast_availableforpickup_customizer_email {
349
  );
350
 
351
  // Test of TinyMCE control
352
- $wp_customize->add_setting( 'wcast_availableforpickup_email_content',
353
  array(
354
  'default' => $this->defaults['wcast_availableforpickup_email_content'],
355
  'transport' => 'refresh',
 
356
  'sanitize_callback' => 'wp_kses_post'
357
  )
358
  );
359
- $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_availableforpickup_email_content',
360
  array(
361
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
362
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
@@ -364,20 +375,22 @@ class wcast_availableforpickup_customizer_email {
364
  'input_attrs' => array(
365
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
366
  'mediaButtons' => true,
 
367
  )
368
  )
369
  ) );
370
 
371
- $wp_customize->add_setting( 'wcast_availableforpickup_email_code_block',
372
  array(
373
  'default' => $this->defaults['wcast_availableforpickup_email_code_block'],
374
  'transport' => 'postMessage',
 
375
  'sanitize_callback' => ''
376
  )
377
  );
378
- $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_availableforpickup_email_code_block',
379
  array(
380
- 'label' => __( 'Available placeholders', 'woo-advanced-shipment-tracking' ),
381
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
382
  'section' => 'customer_availableforpickup_email',
383
  )
@@ -408,17 +421,23 @@ class wcast_availableforpickup_customizer_email {
408
  $wc_emails = WC_Emails::instance();
409
  $emails = $wc_emails->get_emails();
410
  $preview_id = get_theme_mod('wcast_availableforpickup_email_preview_order_id');
 
411
 
 
412
 
413
- $email_heading = get_theme_mod('wcast_availableforpickup_email_heading');
414
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
415
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
416
 
417
- $email_content = get_theme_mod('wcast_availableforpickup_email_content');
418
- $wcast_show_tracking_details = get_theme_mod('wcast_availableforpickup_show_tracking_details');
419
- $wcast_show_order_details = get_theme_mod('wcast_availableforpickup_show_order_details');
420
- $wcast_show_billing_address = get_theme_mod('wcast_availableforpickup_show_billing_address');
421
- $wcast_show_shipping_address = get_theme_mod('wcast_availableforpickup_show_shipping_address');
 
 
 
 
 
422
  $sent_to_admin = false;
423
  $plain_text = false;
424
  $email = '';
@@ -429,6 +448,13 @@ class wcast_availableforpickup_customizer_email {
429
  return;
430
  }
431
  $order = wc_get_order( $preview_id );
 
 
 
 
 
 
 
432
  $mailer = WC()->mailer();
433
 
434
  // get the preview email subject
@@ -437,7 +463,7 @@ class wcast_availableforpickup_customizer_email {
437
 
438
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
439
 
440
- $wcast_availableforpickup_analytics_link = get_theme_mod('wcast_availableforpickup_analytics_link');
441
 
442
  if($wcast_availableforpickup_analytics_link){
443
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
@@ -449,7 +475,9 @@ class wcast_availableforpickup_customizer_email {
449
  if($wcast_show_tracking_details == 1){
450
  ob_start();
451
  wc_get_template( 'emails/tracking-info.php', array(
452
- 'tracking_items' => $wast->get_tracking_items( $preview_id, true )
 
 
453
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
454
  $message .= ob_get_clean();
455
  }
@@ -510,11 +538,14 @@ class wcast_availableforpickup_customizer_email {
510
  * code for append analytics link in email content
511
  */
512
  public function _appendCampaignToString($match){
 
 
 
513
  $url = $match[2];
514
  if (strpos($url, '?') === false) {
515
  $url .= '?';
516
  }
517
- $url .= get_theme_mod('wcast_availableforpickup_analytics_link');
518
  return $match[1].$url.$match[3];
519
  }
520
  }
144
  */
145
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
146
 
147
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[availableforpickup_order_email_heading]',
148
  array(
149
  'default' => '',
150
  'transport' => 'postMessage',
151
+ 'type' => 'option',
152
  'sanitize_callback' => ''
153
  )
154
  );
155
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'wcast_availableforpickup_email_settings[availableforpickup_order_email_heading]',
156
  array(
157
  'label' => __( 'Available For Pickup shipment status email', 'woo-advanced-shipment-tracking' ),
158
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
160
  )
161
  ) );
162
  // Display Shipment Provider image/thumbnail
163
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_enable_availableforpickup_email]',
164
  array(
165
  'default' => $this->defaults['wcast_enable_availableforpickup_email'],
166
  'transport' => 'postMessage',
167
+ 'type' => 'option',
168
  'sanitize_callback' => ''
169
  )
170
  );
171
+ $wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_enable_availableforpickup_email]',
172
  array(
173
  'label' => __( 'Enable Available For Pickup shipment status email', 'woo-advanced-shipment-tracking' ),
174
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
198
  ) );
199
 
200
  // Header Text
201
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_email_to]',
202
  array(
203
  'default' => $this->defaults['wcast_availableforpickup_email_to'],
204
  'transport' => 'postMessage',
205
+ 'type' => 'option',
206
  'sanitize_callback' => ''
207
  )
208
  );
209
+ $wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_email_to]',
210
  array(
211
  'label' => __( 'Recipient(s)', 'woocommerce' ),
212
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
221
  );
222
 
223
  // Header Text
224
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_email_subject]',
225
  array(
226
  'default' => $this->defaults['wcast_availableforpickup_email_subject'],
227
  'transport' => 'postMessage',
228
+ 'type' => 'option',
229
  'sanitize_callback' => ''
230
  )
231
  );
232
+ $wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_email_subject]',
233
  array(
234
  'label' => __( 'Subject', 'woocommerce' ),
235
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ) . ' {site_title}, {order_number}',
236
  'section' => 'customer_availableforpickup_email',
237
  'type' => 'text',
238
  'input_attrs' => array(
239
  'class' => '',
240
  'style' => '',
241
+ 'placeholder' => __( $this->defaults['wcast_availableforpickup_email_subject'], 'woo-advanced-shipment-tracking' ),
242
  ),
243
  )
244
  );
245
 
246
  // Header Text
247
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_email_heading]',
248
  array(
249
  'default' => $this->defaults['wcast_availableforpickup_email_heading'],
250
+ 'transport' => 'refresh',
251
+ 'type' => 'option',
252
  'sanitize_callback' => ''
253
  )
254
  );
255
+ $wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_email_heading]',
256
  array(
257
  'label' => __( 'Email heading', 'woocommerce' ),
258
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ) . ' {site_title}, {order_number}',
259
  'section' => 'customer_availableforpickup_email',
260
  'type' => 'text',
261
  'input_attrs' => array(
262
  'class' => '',
263
  'style' => '',
264
+ 'placeholder' => __( $this->defaults['wcast_availableforpickup_email_heading'], 'woo-advanced-shipment-tracking' ),
265
  ),
266
  )
267
  );
268
 
269
  // Display Shipment Provider image/thumbnail
270
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_tracking_details]',
271
  array(
272
  'default' => $this->defaults['wcast_availableforpickup_show_tracking_details'],
273
  'transport' => 'refresh',
274
+ 'type' => 'option',
275
  'sanitize_callback' => ''
276
  )
277
  );
278
+ $wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_tracking_details]',
279
  array(
280
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
281
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
284
  )
285
  );
286
  // Display Shipment Provider image/thumbnail
287
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_order_details]',
288
  array(
289
  'default' => $this->defaults['wcast_availableforpickup_show_order_details'],
290
  'transport' => 'refresh',
291
+ 'type' => 'option',
292
  'sanitize_callback' => ''
293
  )
294
  );
295
+ $wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_order_details]',
296
  array(
297
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
298
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
301
  )
302
  );
303
  // Display Shipment Provider image/thumbnail
304
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_billing_address]',
305
  array(
306
  'default' => $this->defaults['wcast_availableforpickup_show_billing_address'],
307
  'transport' => 'refresh',
308
+ 'type' => 'option',
309
  'sanitize_callback' => ''
310
  )
311
  );
312
+ $wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_billing_address]',
313
  array(
314
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
315
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
319
  );
320
 
321
  // Display Shipment Provider image/thumbnail
322
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_shipping_address]',
323
  array(
324
  'default' => $this->defaults['wcast_availableforpickup_show_shipping_address'],
325
  'transport' => 'refresh',
326
+ 'type' => 'option',
327
  'sanitize_callback' => ''
328
  )
329
  );
330
+ $wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_shipping_address]',
331
  array(
332
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
333
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
336
  )
337
  );
338
 
339
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_analytics_link]',
340
  array(
341
  'default' => '',
342
+ 'transport' => 'refresh',
343
+ 'type' => 'option',
344
  'sanitize_callback' => ''
345
  )
346
  );
347
+ $wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_analytics_link]',
348
  array(
349
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
350
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
359
  );
360
 
361
  // Test of TinyMCE control
362
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_email_content]',
363
  array(
364
  'default' => $this->defaults['wcast_availableforpickup_email_content'],
365
  'transport' => 'refresh',
366
+ 'type' => 'option',
367
  'sanitize_callback' => 'wp_kses_post'
368
  )
369
  );
370
+ $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_availableforpickup_email_settings[wcast_availableforpickup_email_content]',
371
  array(
372
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
373
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
375
  'input_attrs' => array(
376
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
377
  'mediaButtons' => true,
378
+ 'placeholder' => __( $this->defaults['wcast_availableforpickup_email_content'], 'woo-advanced-shipment-tracking' ),
379
  )
380
  )
381
  ) );
382
 
383
+ $wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_email_code_block]',
384
  array(
385
  'default' => $this->defaults['wcast_availableforpickup_email_code_block'],
386
  'transport' => 'postMessage',
387
+ 'type' => 'option',
388
  'sanitize_callback' => ''
389
  )
390
  );
391
+ $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_availableforpickup_email_settings[wcast_availableforpickup_email_code_block]',
392
  array(
393
+ 'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
394
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
395
  'section' => 'customer_availableforpickup_email',
396
  )
421
  $wc_emails = WC_Emails::instance();
422
  $emails = $wc_emails->get_emails();
423
  $preview_id = get_theme_mod('wcast_availableforpickup_email_preview_order_id');
424
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
425
 
426
+ $email_heading = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_email_heading',$this->defaults['wcast_availableforpickup_email_heading']);
427
 
 
428
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
429
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
430
 
431
+ $email_content = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_email_content',$this->defaults['wcast_availableforpickup_email_content']);
432
+
433
+ $wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_show_tracking_details',$this->defaults['wcast_availableforpickup_show_tracking_details']);
434
+
435
+ $wcast_show_order_details = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_show_order_details',$this->defaults['wcast_availableforpickup_show_order_details']);
436
+
437
+ $wcast_show_billing_address = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_show_billing_address',$this->defaults['wcast_availableforpickup_show_billing_address']);
438
+
439
+ $wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_show_shipping_address',$this->defaults['wcast_availableforpickup_show_shipping_address']);
440
+
441
  $sent_to_admin = false;
442
  $plain_text = false;
443
  $email = '';
448
  return;
449
  }
450
  $order = wc_get_order( $preview_id );
451
+
452
+ if(!$order){
453
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
454
+ echo $content;
455
+ return;
456
+ }
457
+
458
  $mailer = WC()->mailer();
459
 
460
  // get the preview email subject
463
 
464
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
465
 
466
+ $wcast_availableforpickup_analytics_link = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_analytics_link','');
467
 
468
  if($wcast_availableforpickup_analytics_link){
469
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
475
  if($wcast_show_tracking_details == 1){
476
  ob_start();
477
  wc_get_template( 'emails/tracking-info.php', array(
478
+ 'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
479
+ 'order_id' => $preview_id,
480
+ 'new_status' => 'available_for_pickup',
481
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
482
  $message .= ob_get_clean();
483
  }
538
  * code for append analytics link in email content
539
  */
540
  public function _appendCampaignToString($match){
541
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
542
+ $wcast_availableforpickup_analytics_link = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_analytics_link','');
543
+
544
  $url = $match[2];
545
  if (strpos($url, '?') === false) {
546
  $url .= '?';
547
  }
548
+ $url .= $wcast_availableforpickup_analytics_link;
549
  return $match[1].$url.$match[3];
550
  }
551
  }
includes/customizer/class-wc-delivered-email-customizer.php CHANGED
@@ -145,14 +145,15 @@ class wcast_delivered_customizer_email {
145
  */
146
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
147
 
148
- $wp_customize->add_setting( 'delivered_status_order_email_heading',
149
  array(
150
  'default' => '',
151
  'transport' => 'postMessage',
 
152
  'sanitize_callback' => ''
153
  )
154
  );
155
- $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'delivered_status_order_email_heading',
156
  array(
157
  'label' => __( 'Delivered shipment status email', 'woo-advanced-shipment-tracking' ),
158
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
@@ -160,14 +161,15 @@ class wcast_delivered_customizer_email {
160
  )
161
  ) );
162
  // Display Shipment Provider image/thumbnail
163
- $wp_customize->add_setting( 'wcast_enable_delivered_status_email',
164
  array(
165
  'default' => $this->defaults['wcast_enable_delivered_status_email'],
166
  'transport' => 'postMessage',
 
167
  'sanitize_callback' => ''
168
  )
169
  );
170
- $wp_customize->add_control( 'wcast_enable_delivered_status_email',
171
  array(
172
  'label' => __( 'Enable Delivered shipment status email', 'woo-advanced-shipment-tracking' ),
173
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -197,14 +199,15 @@ class wcast_delivered_customizer_email {
197
  ) );
198
 
199
  // Header Text
200
- $wp_customize->add_setting( 'wcast_delivered_status_email_to',
201
  array(
202
  'default' => $this->defaults['wcast_delivered_status_email_to'],
203
  'transport' => 'postMessage',
 
204
  'sanitize_callback' => ''
205
  )
206
  );
207
- $wp_customize->add_control( 'wcast_delivered_status_email_to',
208
  array(
209
  'label' => __( 'Recipient(s)', 'woocommerce' ),
210
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
@@ -219,58 +222,61 @@ class wcast_delivered_customizer_email {
219
  );
220
 
221
  // Header Text
222
- $wp_customize->add_setting( 'wcast_delivered_status_email_subject',
223
  array(
224
  'default' => $this->defaults['wcast_delivered_status_email_subject'],
225
  'transport' => 'postMessage',
 
226
  'sanitize_callback' => ''
227
  )
228
  );
229
- $wp_customize->add_control( 'wcast_delivered_status_email_subject',
230
  array(
231
  'label' => __( 'Subject', 'woocommerce' ),
232
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
233
  'section' => 'customer_delivered_status_email',
234
  'type' => 'text',
235
  'input_attrs' => array(
236
  'class' => '',
237
  'style' => '',
238
- 'placeholder' => __( 'Please enter email subject here', 'woo-advanced-shipment-tracking' ),
239
  ),
240
  )
241
  );
242
 
243
  // Header Text
244
- $wp_customize->add_setting( 'wcast_delivered_status_email_heading',
245
  array(
246
  'default' => $this->defaults['wcast_delivered_status_email_heading'],
247
- 'transport' => 'postMessage',
 
248
  'sanitize_callback' => ''
249
  )
250
  );
251
- $wp_customize->add_control( 'wcast_delivered_status_email_heading',
252
  array(
253
  'label' => __( 'Email heading', 'woocommerce' ),
254
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
255
  'section' => 'customer_delivered_status_email',
256
  'type' => 'text',
257
  'input_attrs' => array(
258
  'class' => '',
259
  'style' => '',
260
- 'placeholder' => __( 'Please enter email heading here', 'woo-advanced-shipment-tracking' ),
261
  ),
262
  )
263
  );
264
 
265
  // Display Shipment Provider image/thumbnail
266
- $wp_customize->add_setting( 'wcast_delivered_status_show_tracking_details',
267
  array(
268
  'default' => $this->defaults['wcast_delivered_status_show_tracking_details'],
269
  'transport' => 'refresh',
 
270
  'sanitize_callback' => ''
271
  )
272
  );
273
- $wp_customize->add_control( 'wcast_delivered_status_show_tracking_details',
274
  array(
275
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
276
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -279,14 +285,15 @@ class wcast_delivered_customizer_email {
279
  )
280
  );
281
  // Display Shipment Provider image/thumbnail
282
- $wp_customize->add_setting( 'wcast_delivered_status_show_order_details',
283
  array(
284
  'default' => $this->defaults['wcast_delivered_status_show_order_details'],
285
  'transport' => 'refresh',
 
286
  'sanitize_callback' => ''
287
  )
288
  );
289
- $wp_customize->add_control( 'wcast_delivered_status_show_order_details',
290
  array(
291
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
292
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -295,14 +302,15 @@ class wcast_delivered_customizer_email {
295
  )
296
  );
297
  // Display Shipment Provider image/thumbnail
298
- $wp_customize->add_setting( 'wcast_delivered_status_show_billing_address',
299
  array(
300
  'default' => $this->defaults['wcast_delivered_status_show_billing_address'],
301
  'transport' => 'refresh',
 
302
  'sanitize_callback' => ''
303
  )
304
  );
305
- $wp_customize->add_control( 'wcast_delivered_status_show_billing_address',
306
  array(
307
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
308
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -312,14 +320,15 @@ class wcast_delivered_customizer_email {
312
  );
313
 
314
  // Display Shipment Provider image/thumbnail
315
- $wp_customize->add_setting( 'wcast_delivered_status_show_shipping_address',
316
  array(
317
  'default' => $this->defaults['wcast_delivered_status_show_shipping_address'],
318
  'transport' => 'refresh',
 
319
  'sanitize_callback' => ''
320
  )
321
  );
322
- $wp_customize->add_control( 'wcast_delivered_status_show_shipping_address',
323
  array(
324
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
325
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -328,14 +337,15 @@ class wcast_delivered_customizer_email {
328
  )
329
  );
330
 
331
- $wp_customize->add_setting( 'wcast_delivered_status_analytics_link',
332
  array(
333
  'default' => '',
334
- 'transport' => 'refresh',
 
335
  'sanitize_callback' => ''
336
  )
337
  );
338
- $wp_customize->add_control( 'wcast_delivered_status_analytics_link',
339
  array(
340
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
341
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
@@ -350,14 +360,15 @@ class wcast_delivered_customizer_email {
350
  );
351
 
352
  // Test of TinyMCE control
353
- $wp_customize->add_setting( 'wcast_delivered_status_email_content',
354
  array(
355
  'default' => $this->defaults['wcast_delivered_status_email_content'],
356
  'transport' => 'refresh',
 
357
  'sanitize_callback' => 'wp_kses_post'
358
  )
359
  );
360
- $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_delivered_status_email_content',
361
  array(
362
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
363
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
@@ -365,21 +376,23 @@ class wcast_delivered_customizer_email {
365
  'input_attrs' => array(
366
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
367
  'mediaButtons' => true,
 
368
  )
369
  )
370
  ) );
371
 
372
 
373
- $wp_customize->add_setting( 'wcast_delivered_status_email_code_block',
374
  array(
375
  'default' => $this->defaults['wcast_delivered_status_email_code_block'],
376
  'transport' => 'postMessage',
 
377
  'sanitize_callback' => ''
378
  )
379
  );
380
- $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_delivered_status_email_code_block',
381
  array(
382
- 'label' => __( 'Available placeholders', 'woo-advanced-shipment-tracking' ),
383
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
384
  'section' => 'customer_delivered_status_email',
385
  )
@@ -410,17 +423,23 @@ class wcast_delivered_customizer_email {
410
  $wc_emails = WC_Emails::instance();
411
  $emails = $wc_emails->get_emails();
412
  $preview_id = get_theme_mod('wcast_delivered_status_email_preview_order_id');
 
413
 
 
414
 
415
- $email_heading = get_theme_mod('wcast_delivered_status_email_heading');
416
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
417
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
418
 
419
- $email_content = get_theme_mod('wcast_delivered_status_email_content');
420
- $wcast_show_tracking_details = get_theme_mod('wcast_delivered_status_show_tracking_details');
421
- $wcast_show_order_details = get_theme_mod('wcast_delivered_status_show_order_details');
422
- $wcast_show_billing_address = get_theme_mod('wcast_delivered_status_show_billing_address');
423
- $wcast_show_shipping_address = get_theme_mod('wcast_delivered_status_show_shipping_address');
 
 
 
 
 
424
  $sent_to_admin = false;
425
  $plain_text = false;
426
  $email = '';
@@ -431,6 +450,13 @@ class wcast_delivered_customizer_email {
431
  return;
432
  }
433
  $order = wc_get_order( $preview_id );
 
 
 
 
 
 
 
434
  $mailer = WC()->mailer();
435
 
436
  // get the preview email subject
@@ -439,7 +465,7 @@ class wcast_delivered_customizer_email {
439
 
440
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
441
 
442
- $wcast_delivered_status_analytics_link = get_theme_mod('wcast_delivered_status_analytics_link');
443
 
444
  if($wcast_delivered_status_analytics_link){
445
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
@@ -451,7 +477,9 @@ class wcast_delivered_customizer_email {
451
  if($wcast_show_tracking_details == 1){
452
  ob_start();
453
  wc_get_template( 'emails/tracking-info.php', array(
454
- 'tracking_items' => $wast->get_tracking_items( $preview_id, true )
 
 
455
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
456
  $message .= ob_get_clean();
457
  }
@@ -511,11 +539,14 @@ class wcast_delivered_customizer_email {
511
  * code for append analytics link in email content
512
  */
513
  public function _appendCampaignToString($match){
 
 
 
514
  $url = $match[2];
515
  if (strpos($url, '?') === false) {
516
  $url .= '?';
517
  }
518
- $url .= get_theme_mod('wcast_delivered_status_analytics_link');
519
  return $match[1].$url.$match[3];
520
  }
521
  }
145
  */
146
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
147
 
148
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[delivered_status_order_email_heading]',
149
  array(
150
  'default' => '',
151
  'transport' => 'postMessage',
152
+ 'type' => 'option',
153
  'sanitize_callback' => ''
154
  )
155
  );
156
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'wcast_delivered_email_settings[delivered_status_order_email_heading]',
157
  array(
158
  'label' => __( 'Delivered shipment status email', 'woo-advanced-shipment-tracking' ),
159
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
161
  )
162
  ) );
163
  // Display Shipment Provider image/thumbnail
164
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_enable_delivered_status_email]',
165
  array(
166
  'default' => $this->defaults['wcast_enable_delivered_status_email'],
167
  'transport' => 'postMessage',
168
+ 'type' => 'option',
169
  'sanitize_callback' => ''
170
  )
171
  );
172
+ $wp_customize->add_control( 'wcast_delivered_email_settings[wcast_enable_delivered_status_email]',
173
  array(
174
  'label' => __( 'Enable Delivered shipment status email', 'woo-advanced-shipment-tracking' ),
175
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
199
  ) );
200
 
201
  // Header Text
202
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_email_to]',
203
  array(
204
  'default' => $this->defaults['wcast_delivered_status_email_to'],
205
  'transport' => 'postMessage',
206
+ 'type' => 'option',
207
  'sanitize_callback' => ''
208
  )
209
  );
210
+ $wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_email_to]',
211
  array(
212
  'label' => __( 'Recipient(s)', 'woocommerce' ),
213
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
222
  );
223
 
224
  // Header Text
225
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_email_subject]',
226
  array(
227
  'default' => $this->defaults['wcast_delivered_status_email_subject'],
228
  'transport' => 'postMessage',
229
+ 'type' => 'option',
230
  'sanitize_callback' => ''
231
  )
232
  );
233
+ $wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_email_subject]',
234
  array(
235
  'label' => __( 'Subject', 'woocommerce' ),
236
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
237
  'section' => 'customer_delivered_status_email',
238
  'type' => 'text',
239
  'input_attrs' => array(
240
  'class' => '',
241
  'style' => '',
242
+ 'placeholder' => __( $this->defaults['wcast_delivered_status_email_subject'], 'woo-advanced-shipment-tracking' ),
243
  ),
244
  )
245
  );
246
 
247
  // Header Text
248
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_email_heading]',
249
  array(
250
  'default' => $this->defaults['wcast_delivered_status_email_heading'],
251
+ 'transport' => 'refresh',
252
+ 'type' => 'option',
253
  'sanitize_callback' => ''
254
  )
255
  );
256
+ $wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_email_heading]',
257
  array(
258
  'label' => __( 'Email heading', 'woocommerce' ),
259
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
260
  'section' => 'customer_delivered_status_email',
261
  'type' => 'text',
262
  'input_attrs' => array(
263
  'class' => '',
264
  'style' => '',
265
+ 'placeholder' => __( $this->defaults['wcast_delivered_status_email_heading'], 'woo-advanced-shipment-tracking' ),
266
  ),
267
  )
268
  );
269
 
270
  // Display Shipment Provider image/thumbnail
271
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_show_tracking_details]',
272
  array(
273
  'default' => $this->defaults['wcast_delivered_status_show_tracking_details'],
274
  'transport' => 'refresh',
275
+ 'type' => 'option',
276
  'sanitize_callback' => ''
277
  )
278
  );
279
+ $wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_show_tracking_details]',
280
  array(
281
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
282
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
285
  )
286
  );
287
  // Display Shipment Provider image/thumbnail
288
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_show_order_details]',
289
  array(
290
  'default' => $this->defaults['wcast_delivered_status_show_order_details'],
291
  'transport' => 'refresh',
292
+ 'type' => 'option',
293
  'sanitize_callback' => ''
294
  )
295
  );
296
+ $wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_show_order_details]',
297
  array(
298
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
299
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
302
  )
303
  );
304
  // Display Shipment Provider image/thumbnail
305
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_show_billing_address]',
306
  array(
307
  'default' => $this->defaults['wcast_delivered_status_show_billing_address'],
308
  'transport' => 'refresh',
309
+ 'type' => 'option',
310
  'sanitize_callback' => ''
311
  )
312
  );
313
+ $wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_show_billing_address]',
314
  array(
315
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
316
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
320
  );
321
 
322
  // Display Shipment Provider image/thumbnail
323
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_show_shipping_address]',
324
  array(
325
  'default' => $this->defaults['wcast_delivered_status_show_shipping_address'],
326
  'transport' => 'refresh',
327
+ 'type' => 'option',
328
  'sanitize_callback' => ''
329
  )
330
  );
331
+ $wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_show_shipping_address]',
332
  array(
333
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
334
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
337
  )
338
  );
339
 
340
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_analytics_link]',
341
  array(
342
  'default' => '',
343
+ 'transport' => 'refresh',
344
+ 'type' => 'option',
345
  'sanitize_callback' => ''
346
  )
347
  );
348
+ $wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_analytics_link]',
349
  array(
350
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
351
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
360
  );
361
 
362
  // Test of TinyMCE control
363
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_email_content]',
364
  array(
365
  'default' => $this->defaults['wcast_delivered_status_email_content'],
366
  'transport' => 'refresh',
367
+ 'type' => 'option',
368
  'sanitize_callback' => 'wp_kses_post'
369
  )
370
  );
371
+ $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_delivered_email_settings[wcast_delivered_status_email_content]',
372
  array(
373
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
374
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
376
  'input_attrs' => array(
377
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
378
  'mediaButtons' => true,
379
+ 'placeholder' => __( $this->defaults['wcast_delivered_status_email_content'], 'woo-advanced-shipment-tracking' ),
380
  )
381
  )
382
  ) );
383
 
384
 
385
+ $wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_email_code_block]',
386
  array(
387
  'default' => $this->defaults['wcast_delivered_status_email_code_block'],
388
  'transport' => 'postMessage',
389
+ 'type' => 'option',
390
  'sanitize_callback' => ''
391
  )
392
  );
393
+ $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_delivered_email_settings[wcast_delivered_status_email_code_block]',
394
  array(
395
+ 'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
396
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
397
  'section' => 'customer_delivered_status_email',
398
  )
423
  $wc_emails = WC_Emails::instance();
424
  $emails = $wc_emails->get_emails();
425
  $preview_id = get_theme_mod('wcast_delivered_status_email_preview_order_id');
426
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
427
 
428
+ $email_heading = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_email_heading',$this->defaults['wcast_delivered_status_email_heading']);
429
 
 
430
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
431
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
432
 
433
+ $email_content = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_email_content',$this->defaults['wcast_delivered_status_email_content']);
434
+
435
+ $wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_tracking_details',$this->defaults['wcast_delivered_status_show_tracking_details']);
436
+
437
+ $wcast_show_order_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_order_details',$this->defaults['wcast_delivered_status_show_order_details']);
438
+
439
+ $wcast_show_billing_address = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_billing_address',$this->defaults['wcast_delivered_status_show_billing_address']);
440
+
441
+ $wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_shipping_address',$this->defaults['wcast_delivered_status_show_shipping_address']);
442
+
443
  $sent_to_admin = false;
444
  $plain_text = false;
445
  $email = '';
450
  return;
451
  }
452
  $order = wc_get_order( $preview_id );
453
+
454
+ if(!$order){
455
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
456
+ echo $content;
457
+ return;
458
+ }
459
+
460
  $mailer = WC()->mailer();
461
 
462
  // get the preview email subject
465
 
466
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
467
 
468
+ $wcast_delivered_status_analytics_link = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_analytics_link','');
469
 
470
  if($wcast_delivered_status_analytics_link){
471
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
477
  if($wcast_show_tracking_details == 1){
478
  ob_start();
479
  wc_get_template( 'emails/tracking-info.php', array(
480
+ 'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
481
+ 'order_id' => $preview_id,
482
+ 'new_status' => 'delivered',
483
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
484
  $message .= ob_get_clean();
485
  }
539
  * code for append analytics link in email content
540
  */
541
  public function _appendCampaignToString($match){
542
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
543
+ $wcast_delivered_status_analytics_link = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_analytics_link','');
544
+
545
  $url = $match[2];
546
  if (strpos($url, '?') === false) {
547
  $url .= '?';
548
  }
549
+ $url .= $wcast_delivered_status_analytics_link;
550
  return $match[1].$url.$match[3];
551
  }
552
  }
includes/customizer/class-wc-email-customizer.php CHANGED
@@ -240,13 +240,13 @@ class wcast_initialise_customizer_email {
240
  $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[subject]',
241
  array(
242
  'label' => __( 'Subject', 'woocommerce' ),
243
- 'description' => esc_html__( 'Available variables: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
244
  'section' => 'customer_delivered_email',
245
  'type' => 'text',
246
  'input_attrs' => array(
247
  'class' => '',
248
  'style' => '',
249
- 'placeholder' => __( 'Please enter email subject here', 'woo-advanced-shipment-tracking' ),
250
  ),
251
  )
252
  );
@@ -263,47 +263,50 @@ class wcast_initialise_customizer_email {
263
  $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[heading]',
264
  array(
265
  'label' => __( 'Email heading', 'woocommerce' ),
266
- 'description' => esc_html__( 'Available variables: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
267
  'section' => 'customer_delivered_email',
268
  'type' => 'text',
269
  'input_attrs' => array(
270
  'class' => '',
271
  'style' => '',
272
- 'placeholder' => __( 'Please enter email heading here', 'woo-advanced-shipment-tracking' ),
273
  ),
274
  )
275
  );
276
 
277
 
278
  // Test of TinyMCE control
279
- $wp_customize->add_setting( 'wcast_delivered_email_content',
280
  array(
281
  'default' => $this->defaults['wcast_delivered_email_content'],
282
  'transport' => 'refresh',
 
283
  'sanitize_callback' => 'wp_kses_post'
284
  )
285
  );
286
- $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_delivered_email_content',
287
  array(
288
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
289
- 'description' => __( 'available variables: {site_title}, {customer_email}, {customer_first_name}, {customer_last_name}, {customer_username}, {order_number}', 'woo-advanced-shipment-tracking' ),
290
  'section' => 'customer_delivered_email',
291
  'input_attrs' => array(
292
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
293
  'mediaButtons' => true,
 
294
  )
295
  )
296
  ) );
297
 
298
  // Display Shipment Provider image/thumbnail
299
- $wp_customize->add_setting( 'wcast_show_tracking_details',
300
  array(
301
  'default' => $this->defaults['wcast_show_tracking_details'],
302
  'transport' => 'refresh',
 
303
  'sanitize_callback' => ''
304
  )
305
  );
306
- $wp_customize->add_control( 'wcast_show_tracking_details',
307
  array(
308
  'label' => __( 'Display tracking details', 'woo-advanced-shipment-tracking' ),
309
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -312,14 +315,15 @@ class wcast_initialise_customizer_email {
312
  )
313
  );
314
  // Display Shipment Provider image/thumbnail
315
- $wp_customize->add_setting( 'wcast_show_order_details',
316
  array(
317
  'default' => $this->defaults['wcast_show_order_details'],
318
  'transport' => 'refresh',
 
319
  'sanitize_callback' => ''
320
  )
321
  );
322
- $wp_customize->add_control( 'wcast_show_order_details',
323
  array(
324
  'label' => __( 'Display order details', 'woo-advanced-shipment-tracking' ),
325
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -329,14 +333,15 @@ class wcast_initialise_customizer_email {
329
  );
330
 
331
  // Display Shipment Provider image/thumbnail
332
- $wp_customize->add_setting( 'wcast_show_shipping_address',
333
  array(
334
  'default' => $this->defaults['wcast_show_shipping_address'],
335
  'transport' => 'refresh',
 
336
  'sanitize_callback' => ''
337
  )
338
  );
339
- $wp_customize->add_control( 'wcast_show_shipping_address',
340
  array(
341
  'label' => __( 'Display Shipping Address', 'woo-advanced-shipment-tracking' ),
342
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -346,14 +351,15 @@ class wcast_initialise_customizer_email {
346
  );
347
 
348
  // Display Shipment Provider image/thumbnail
349
- $wp_customize->add_setting( 'wcast_show_billing_address',
350
  array(
351
  'default' => $this->defaults['wcast_show_billing_address'],
352
  'transport' => 'refresh',
 
353
  'sanitize_callback' => ''
354
  )
355
  );
356
- $wp_customize->add_control( 'wcast_show_billing_address',
357
  array(
358
  'label' => __( 'Display Billing Address', 'woo-advanced-shipment-tracking' ),
359
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -363,14 +369,15 @@ class wcast_initialise_customizer_email {
363
  );
364
 
365
  // Display Shipment Provider image/thumbnail
366
- $wp_customize->add_setting( 'wcast_enable_delivered_ga_tracking',
367
  array(
368
  'default' => '',
369
  'transport' => 'refresh',
 
370
  'sanitize_callback' => ''
371
  )
372
  );
373
- $wp_customize->add_control( 'wcast_enable_delivered_ga_tracking',
374
  array(
375
  'label' => __( 'Enable Google Analytics tracking', 'woo-advanced-shipment-tracking' ),
376
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -380,14 +387,15 @@ class wcast_initialise_customizer_email {
380
  );
381
 
382
 
383
- $wp_customize->add_setting( 'wcast_delivered_analytics_link',
384
  array(
385
  'default' => '',
386
- 'transport' => 'refresh',
 
387
  'sanitize_callback' => ''
388
  )
389
  );
390
- $wp_customize->add_control( 'wcast_delivered_analytics_link',
391
  array(
392
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
393
  'description' => esc_html__( 'This will be appended to URL in the email content – e.g. utm_source=ast&utm_medium=email&utm_campaign=delivered', 'woo-advanced-shipment-tracking' ),
@@ -410,7 +418,7 @@ class wcast_initialise_customizer_email {
410
  );
411
  $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_email_code_block',
412
  array(
413
- 'label' => __( 'Available placeholders', 'woo-advanced-shipment-tracking' ),
414
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}</code>',
415
  'section' => 'customer_delivered_email',
416
  )
@@ -446,7 +454,15 @@ class wcast_initialise_customizer_email {
446
  $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
447
  echo $content;
448
  return;
449
- }
 
 
 
 
 
 
 
 
450
 
451
  $email_type = 'WC_Email_Customer_Delivered_Order';
452
 
240
  $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[subject]',
241
  array(
242
  'label' => __( 'Subject', 'woocommerce' ),
243
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
244
  'section' => 'customer_delivered_email',
245
  'type' => 'text',
246
  'input_attrs' => array(
247
  'class' => '',
248
  'style' => '',
249
+ 'placeholder' => __( $this->defaults['wcast_delivered_email_subject'], 'woo-advanced-shipment-tracking' ),
250
  ),
251
  )
252
  );
263
  $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[heading]',
264
  array(
265
  'label' => __( 'Email heading', 'woocommerce' ),
266
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
267
  'section' => 'customer_delivered_email',
268
  'type' => 'text',
269
  'input_attrs' => array(
270
  'class' => '',
271
  'style' => '',
272
+ 'placeholder' => __( $this->defaults['wcast_delivered_email_heading'], 'woo-advanced-shipment-tracking' ),
273
  ),
274
  )
275
  );
276
 
277
 
278
  // Test of TinyMCE control
279
+ $wp_customize->add_setting( 'woocommerce_customer_delivered_order_settings[wcast_delivered_email_content]',
280
  array(
281
  'default' => $this->defaults['wcast_delivered_email_content'],
282
  'transport' => 'refresh',
283
+ 'type' => 'option',
284
  'sanitize_callback' => 'wp_kses_post'
285
  )
286
  );
287
+ $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'woocommerce_customer_delivered_order_settings[wcast_delivered_email_content]',
288
  array(
289
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
290
+ 'description' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {customer_email}, {customer_first_name}, {customer_last_name}, {customer_username}, {order_number}',
291
  'section' => 'customer_delivered_email',
292
  'input_attrs' => array(
293
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
294
  'mediaButtons' => true,
295
+ 'placeholder' => __( $this->defaults['wcast_delivered_email_content'], 'woo-advanced-shipment-tracking' ),
296
  )
297
  )
298
  ) );
299
 
300
  // Display Shipment Provider image/thumbnail
301
+ $wp_customize->add_setting( 'woocommerce_customer_delivered_order_settings[wcast_show_tracking_details]',
302
  array(
303
  'default' => $this->defaults['wcast_show_tracking_details'],
304
  'transport' => 'refresh',
305
+ 'type' => 'option',
306
  'sanitize_callback' => ''
307
  )
308
  );
309
+ $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[wcast_show_tracking_details]',
310
  array(
311
  'label' => __( 'Display tracking details', 'woo-advanced-shipment-tracking' ),
312
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
315
  )
316
  );
317
  // Display Shipment Provider image/thumbnail
318
+ $wp_customize->add_setting( 'woocommerce_customer_delivered_order_settings[wcast_show_order_details]',
319
  array(
320
  'default' => $this->defaults['wcast_show_order_details'],
321
  'transport' => 'refresh',
322
+ 'type' => 'option',
323
  'sanitize_callback' => ''
324
  )
325
  );
326
+ $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[wcast_show_order_details]',
327
  array(
328
  'label' => __( 'Display order details', 'woo-advanced-shipment-tracking' ),
329
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
333
  );
334
 
335
  // Display Shipment Provider image/thumbnail
336
+ $wp_customize->add_setting( 'woocommerce_customer_delivered_order_settings[wcast_show_shipping_address]',
337
  array(
338
  'default' => $this->defaults['wcast_show_shipping_address'],
339
  'transport' => 'refresh',
340
+ 'type' => 'option',
341
  'sanitize_callback' => ''
342
  )
343
  );
344
+ $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[wcast_show_shipping_address]',
345
  array(
346
  'label' => __( 'Display Shipping Address', 'woo-advanced-shipment-tracking' ),
347
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
351
  );
352
 
353
  // Display Shipment Provider image/thumbnail
354
+ $wp_customize->add_setting( 'woocommerce_customer_delivered_order_settings[wcast_show_billing_address]',
355
  array(
356
  'default' => $this->defaults['wcast_show_billing_address'],
357
  'transport' => 'refresh',
358
+ 'type' => 'option',
359
  'sanitize_callback' => ''
360
  )
361
  );
362
+ $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[wcast_show_billing_address]',
363
  array(
364
  'label' => __( 'Display Billing Address', 'woo-advanced-shipment-tracking' ),
365
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
369
  );
370
 
371
  // Display Shipment Provider image/thumbnail
372
+ $wp_customize->add_setting( 'woocommerce_customer_delivered_order_settings[wcast_enable_delivered_ga_tracking]',
373
  array(
374
  'default' => '',
375
  'transport' => 'refresh',
376
+ 'type' => 'option',
377
  'sanitize_callback' => ''
378
  )
379
  );
380
+ $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[wcast_enable_delivered_ga_tracking]',
381
  array(
382
  'label' => __( 'Enable Google Analytics tracking', 'woo-advanced-shipment-tracking' ),
383
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
387
  );
388
 
389
 
390
+ $wp_customize->add_setting( 'woocommerce_customer_delivered_order_settings[wcast_delivered_analytics_link]',
391
  array(
392
  'default' => '',
393
+ 'transport' => 'refresh',
394
+ 'type' => 'option',
395
  'sanitize_callback' => ''
396
  )
397
  );
398
+ $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[wcast_delivered_analytics_link]',
399
  array(
400
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
401
  'description' => esc_html__( 'This will be appended to URL in the email content – e.g. utm_source=ast&utm_medium=email&utm_campaign=delivered', 'woo-advanced-shipment-tracking' ),
418
  );
419
  $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_email_code_block',
420
  array(
421
+ 'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
422
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}</code>',
423
  'section' => 'customer_delivered_email',
424
  )
454
  $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
455
  echo $content;
456
  return;
457
+ }
458
+
459
+ $order = wc_get_order( $preview_id );
460
+
461
+ if(!$order){
462
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
463
+ echo $content;
464
+ return;
465
+ }
466
 
467
  $email_type = 'WC_Email_Customer_Delivered_Order';
468
 
includes/customizer/class-wc-failure-email-customizer.php CHANGED
@@ -144,14 +144,15 @@ class wcast_failure_customizer_email {
144
  */
145
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
146
 
147
- $wp_customize->add_setting( 'failure_order_email_heading',
148
  array(
149
  'default' => '',
150
  'transport' => 'postMessage',
 
151
  'sanitize_callback' => ''
152
  )
153
  );
154
- $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'failure_order_email_heading',
155
  array(
156
  'label' => __( 'Failed Attempt shipment status email', 'woo-advanced-shipment-tracking' ),
157
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
@@ -159,14 +160,15 @@ class wcast_failure_customizer_email {
159
  )
160
  ) );
161
  // Display Shipment Provider image/thumbnail
162
- $wp_customize->add_setting( 'wcast_enable_failure_email',
163
  array(
164
  'default' => $this->defaults['wcast_enable_failure_email'],
165
  'transport' => 'postMessage',
 
166
  'sanitize_callback' => ''
167
  )
168
  );
169
- $wp_customize->add_control( 'wcast_enable_failure_email',
170
  array(
171
  'label' => __( 'Enable Failed Attempt shipment status email', 'woo-advanced-shipment-tracking' ),
172
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -196,14 +198,15 @@ class wcast_failure_customizer_email {
196
  ) );
197
 
198
  // Header Text
199
- $wp_customize->add_setting( 'wcast_failure_email_to',
200
  array(
201
  'default' => $this->defaults['wcast_failure_email_to'],
202
  'transport' => 'postMessage',
 
203
  'sanitize_callback' => ''
204
  )
205
  );
206
- $wp_customize->add_control( 'wcast_failure_email_to',
207
  array(
208
  'label' => __( 'Recipient(s)', 'woocommerce' ),
209
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
@@ -218,58 +221,61 @@ class wcast_failure_customizer_email {
218
  );
219
 
220
  // Header Text
221
- $wp_customize->add_setting( 'wcast_failure_email_subject',
222
  array(
223
  'default' => $this->defaults['wcast_failure_email_subject'],
224
  'transport' => 'postMessage',
 
225
  'sanitize_callback' => ''
226
  )
227
  );
228
- $wp_customize->add_control( 'wcast_failure_email_subject',
229
  array(
230
  'label' => __( 'Subject', 'woocommerce' ),
231
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
232
  'section' => 'customer_failure_email',
233
  'type' => 'text',
234
  'input_attrs' => array(
235
  'class' => '',
236
  'style' => '',
237
- 'placeholder' => __( 'Please enter email subject here', 'woo-advanced-shipment-tracking' ),
238
  ),
239
  )
240
  );
241
 
242
  // Header Text
243
- $wp_customize->add_setting( 'wcast_failure_email_heading',
244
  array(
245
  'default' => $this->defaults['wcast_failure_email_heading'],
246
- 'transport' => 'postMessage',
 
247
  'sanitize_callback' => ''
248
  )
249
  );
250
- $wp_customize->add_control( 'wcast_failure_email_heading',
251
  array(
252
  'label' => __( 'Email heading', 'woocommerce' ),
253
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
254
  'section' => 'customer_failure_email',
255
  'type' => 'text',
256
  'input_attrs' => array(
257
  'class' => '',
258
  'style' => '',
259
- 'placeholder' => __( 'Please enter email heading here', 'woo-advanced-shipment-tracking' ),
260
  ),
261
  )
262
  );
263
 
264
  // Display Shipment Provider image/thumbnail
265
- $wp_customize->add_setting( 'wcast_failure_show_tracking_details',
266
  array(
267
  'default' => $this->defaults['wcast_failure_show_tracking_details'],
268
  'transport' => 'refresh',
 
269
  'sanitize_callback' => ''
270
  )
271
  );
272
- $wp_customize->add_control( 'wcast_failure_show_tracking_details',
273
  array(
274
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
275
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -278,14 +284,15 @@ class wcast_failure_customizer_email {
278
  )
279
  );
280
  // Display Shipment Provider image/thumbnail
281
- $wp_customize->add_setting( 'wcast_failure_show_order_details',
282
  array(
283
  'default' => $this->defaults['wcast_failure_show_order_details'],
284
  'transport' => 'refresh',
 
285
  'sanitize_callback' => ''
286
  )
287
  );
288
- $wp_customize->add_control( 'wcast_failure_show_order_details',
289
  array(
290
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
291
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -294,14 +301,15 @@ class wcast_failure_customizer_email {
294
  )
295
  );
296
  // Display Shipment Provider image/thumbnail
297
- $wp_customize->add_setting( 'wcast_failure_show_billing_address',
298
  array(
299
  'default' => $this->defaults['wcast_failure_show_billing_address'],
300
  'transport' => 'refresh',
 
301
  'sanitize_callback' => ''
302
  )
303
  );
304
- $wp_customize->add_control( 'wcast_failure_show_billing_address',
305
  array(
306
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
307
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -311,14 +319,15 @@ class wcast_failure_customizer_email {
311
  );
312
 
313
  // Display Shipment Provider image/thumbnail
314
- $wp_customize->add_setting( 'wcast_failure_show_shipping_address',
315
  array(
316
  'default' => $this->defaults['wcast_failure_show_shipping_address'],
317
  'transport' => 'refresh',
 
318
  'sanitize_callback' => ''
319
  )
320
  );
321
- $wp_customize->add_control( 'wcast_failure_show_shipping_address',
322
  array(
323
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
324
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -327,14 +336,15 @@ class wcast_failure_customizer_email {
327
  )
328
  );
329
 
330
- $wp_customize->add_setting( 'wcast_failure_analytics_link',
331
  array(
332
  'default' => '',
333
- 'transport' => 'refresh',
 
334
  'sanitize_callback' => ''
335
  )
336
  );
337
- $wp_customize->add_control( 'wcast_failure_analytics_link',
338
  array(
339
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
340
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
@@ -349,14 +359,15 @@ class wcast_failure_customizer_email {
349
  );
350
 
351
  // Test of TinyMCE control
352
- $wp_customize->add_setting( 'wcast_failure_email_content',
353
  array(
354
  'default' => $this->defaults['wcast_failure_email_content'],
355
  'transport' => 'refresh',
 
356
  'sanitize_callback' => 'wp_kses_post'
357
  )
358
  );
359
- $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_failure_email_content',
360
  array(
361
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
362
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
@@ -364,21 +375,23 @@ class wcast_failure_customizer_email {
364
  'input_attrs' => array(
365
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
366
  'mediaButtons' => true,
 
367
  )
368
  )
369
  ) );
370
 
371
 
372
- $wp_customize->add_setting( 'wcast_failure_email_code_block',
373
  array(
374
  'default' => $this->defaults['wcast_failure_email_code_block'],
375
  'transport' => 'postMessage',
 
376
  'sanitize_callback' => ''
377
  )
378
  );
379
- $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_failure_email_code_block',
380
  array(
381
- 'label' => __( 'Available placeholders', 'woo-advanced-shipment-tracking' ),
382
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
383
  'section' => 'customer_failure_email',
384
  )
@@ -409,17 +422,23 @@ class wcast_failure_customizer_email {
409
  $wc_emails = WC_Emails::instance();
410
  $emails = $wc_emails->get_emails();
411
  $preview_id = get_theme_mod('wcast_failure_email_preview_order_id');
 
412
 
413
-
414
- $email_heading = get_theme_mod('wcast_failure_email_heading');
415
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
416
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
417
 
418
- $email_content = get_theme_mod('wcast_failure_email_content');
419
- $wcast_show_tracking_details = get_theme_mod('wcast_failure_show_tracking_details');
420
- $wcast_show_order_details = get_theme_mod('wcast_failure_show_order_details');
421
- $wcast_show_billing_address = get_theme_mod('wcast_failure_show_billing_address');
422
- $wcast_show_shipping_address = get_theme_mod('wcast_failure_show_shipping_address');
 
 
 
 
 
423
  $sent_to_admin = false;
424
  $plain_text = false;
425
  $email = '';
@@ -429,7 +448,15 @@ class wcast_failure_customizer_email {
429
  echo $content;
430
  return;
431
  }
 
432
  $order = wc_get_order( $preview_id );
 
 
 
 
 
 
 
433
  $mailer = WC()->mailer();
434
 
435
  // get the preview email subject
@@ -438,7 +465,7 @@ class wcast_failure_customizer_email {
438
 
439
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
440
 
441
- $wcast_failure_analytics_link = get_theme_mod('wcast_failure_analytics_link');
442
 
443
  if($wcast_failure_analytics_link){
444
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
@@ -450,7 +477,9 @@ class wcast_failure_customizer_email {
450
  if($wcast_show_tracking_details == 1){
451
  ob_start();
452
  wc_get_template( 'emails/tracking-info.php', array(
453
- 'tracking_items' => $wast->get_tracking_items( $preview_id, true )
 
 
454
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
455
  $message .= ob_get_clean();
456
  }
@@ -509,11 +538,14 @@ class wcast_failure_customizer_email {
509
  * code for append analytics link in email content
510
  */
511
  public function _appendCampaignToString($match){
 
 
 
512
  $url = $match[2];
513
  if (strpos($url, '?') === false) {
514
  $url .= '?';
515
  }
516
- $url .= get_theme_mod('wcast_failure_analytics_link');
517
  return $match[1].$url.$match[3];
518
  }
519
  }
144
  */
145
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
146
 
147
+ $wp_customize->add_setting( 'wcast_failure_email_settings[failure_order_email_heading]',
148
  array(
149
  'default' => '',
150
  'transport' => 'postMessage',
151
+ 'type' => 'option',
152
  'sanitize_callback' => ''
153
  )
154
  );
155
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'wcast_failure_email_settings[failure_order_email_heading]',
156
  array(
157
  'label' => __( 'Failed Attempt shipment status email', 'woo-advanced-shipment-tracking' ),
158
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
160
  )
161
  ) );
162
  // Display Shipment Provider image/thumbnail
163
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_enable_failure_email]',
164
  array(
165
  'default' => $this->defaults['wcast_enable_failure_email'],
166
  'transport' => 'postMessage',
167
+ 'type' => 'option',
168
  'sanitize_callback' => ''
169
  )
170
  );
171
+ $wp_customize->add_control( 'wcast_failure_email_settings[wcast_enable_failure_email]',
172
  array(
173
  'label' => __( 'Enable Failed Attempt shipment status email', 'woo-advanced-shipment-tracking' ),
174
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
198
  ) );
199
 
200
  // Header Text
201
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_email_to]',
202
  array(
203
  'default' => $this->defaults['wcast_failure_email_to'],
204
  'transport' => 'postMessage',
205
+ 'type' => 'option',
206
  'sanitize_callback' => ''
207
  )
208
  );
209
+ $wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_email_to]',
210
  array(
211
  'label' => __( 'Recipient(s)', 'woocommerce' ),
212
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
221
  );
222
 
223
  // Header Text
224
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_email_subject]',
225
  array(
226
  'default' => $this->defaults['wcast_failure_email_subject'],
227
  'transport' => 'postMessage',
228
+ 'type' => 'option',
229
  'sanitize_callback' => ''
230
  )
231
  );
232
+ $wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_email_subject]',
233
  array(
234
  'label' => __( 'Subject', 'woocommerce' ),
235
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
236
  'section' => 'customer_failure_email',
237
  'type' => 'text',
238
  'input_attrs' => array(
239
  'class' => '',
240
  'style' => '',
241
+ 'placeholder' => __( $this->defaults['wcast_failure_email_subject'], 'woo-advanced-shipment-tracking' ),
242
  ),
243
  )
244
  );
245
 
246
  // Header Text
247
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_email_heading]',
248
  array(
249
  'default' => $this->defaults['wcast_failure_email_heading'],
250
+ 'transport' => 'refresh',
251
+ 'type' => 'option',
252
  'sanitize_callback' => ''
253
  )
254
  );
255
+ $wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_email_heading]',
256
  array(
257
  'label' => __( 'Email heading', 'woocommerce' ),
258
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
259
  'section' => 'customer_failure_email',
260
  'type' => 'text',
261
  'input_attrs' => array(
262
  'class' => '',
263
  'style' => '',
264
+ 'placeholder' => __( $this->defaults['wcast_failure_email_heading'], 'woo-advanced-shipment-tracking' ),
265
  ),
266
  )
267
  );
268
 
269
  // Display Shipment Provider image/thumbnail
270
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_show_tracking_details]',
271
  array(
272
  'default' => $this->defaults['wcast_failure_show_tracking_details'],
273
  'transport' => 'refresh',
274
+ 'type' => 'option',
275
  'sanitize_callback' => ''
276
  )
277
  );
278
+ $wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_show_tracking_details]',
279
  array(
280
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
281
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
284
  )
285
  );
286
  // Display Shipment Provider image/thumbnail
287
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_show_order_details]',
288
  array(
289
  'default' => $this->defaults['wcast_failure_show_order_details'],
290
  'transport' => 'refresh',
291
+ 'type' => 'option',
292
  'sanitize_callback' => ''
293
  )
294
  );
295
+ $wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_show_order_details]',
296
  array(
297
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
298
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
301
  )
302
  );
303
  // Display Shipment Provider image/thumbnail
304
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_show_billing_address]',
305
  array(
306
  'default' => $this->defaults['wcast_failure_show_billing_address'],
307
  'transport' => 'refresh',
308
+ 'type' => 'option',
309
  'sanitize_callback' => ''
310
  )
311
  );
312
+ $wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_show_billing_address]',
313
  array(
314
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
315
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
319
  );
320
 
321
  // Display Shipment Provider image/thumbnail
322
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_show_shipping_address]',
323
  array(
324
  'default' => $this->defaults['wcast_failure_show_shipping_address'],
325
  'transport' => 'refresh',
326
+ 'type' => 'option',
327
  'sanitize_callback' => ''
328
  )
329
  );
330
+ $wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_show_shipping_address]',
331
  array(
332
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
333
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
336
  )
337
  );
338
 
339
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_analytics_link]',
340
  array(
341
  'default' => '',
342
+ 'transport' => 'refresh',
343
+ 'type' => 'option',
344
  'sanitize_callback' => ''
345
  )
346
  );
347
+ $wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_analytics_link]',
348
  array(
349
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
350
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
359
  );
360
 
361
  // Test of TinyMCE control
362
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_email_content]',
363
  array(
364
  'default' => $this->defaults['wcast_failure_email_content'],
365
  'transport' => 'refresh',
366
+ 'type' => 'option',
367
  'sanitize_callback' => 'wp_kses_post'
368
  )
369
  );
370
+ $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_failure_email_settings[wcast_failure_email_content]',
371
  array(
372
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
373
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
375
  'input_attrs' => array(
376
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
377
  'mediaButtons' => true,
378
+ 'placeholder' => __( $this->defaults['wcast_failure_email_content'], 'woo-advanced-shipment-tracking' ),
379
  )
380
  )
381
  ) );
382
 
383
 
384
+ $wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_email_code_block]',
385
  array(
386
  'default' => $this->defaults['wcast_failure_email_code_block'],
387
  'transport' => 'postMessage',
388
+ 'type' => 'option',
389
  'sanitize_callback' => ''
390
  )
391
  );
392
+ $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_failure_email_settings[wcast_failure_email_code_block]',
393
  array(
394
+ 'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
395
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
396
  'section' => 'customer_failure_email',
397
  )
422
  $wc_emails = WC_Emails::instance();
423
  $emails = $wc_emails->get_emails();
424
  $preview_id = get_theme_mod('wcast_failure_email_preview_order_id');
425
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
426
 
427
+ $email_heading = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_email_heading',$this->defaults['wcast_failure_email_heading']);
428
+
429
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
430
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
431
 
432
+ $email_content = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_email_content',$this->defaults['wcast_failure_email_content']);
433
+
434
+ $wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_show_tracking_details',$this->defaults['wcast_failure_show_tracking_details']);
435
+
436
+ $wcast_show_order_details = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_show_order_details',$this->defaults['wcast_failure_show_order_details']);
437
+
438
+ $wcast_show_billing_address = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_show_billing_address',$this->defaults['wcast_failure_show_billing_address']);
439
+
440
+ $wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_show_shipping_address',$this->defaults['wcast_failure_show_shipping_address']);
441
+
442
  $sent_to_admin = false;
443
  $plain_text = false;
444
  $email = '';
448
  echo $content;
449
  return;
450
  }
451
+
452
  $order = wc_get_order( $preview_id );
453
+
454
+ if(!$order){
455
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
456
+ echo $content;
457
+ return;
458
+ }
459
+
460
  $mailer = WC()->mailer();
461
 
462
  // get the preview email subject
465
 
466
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
467
 
468
+ $wcast_failure_analytics_link = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_analytics_link','');
469
 
470
  if($wcast_failure_analytics_link){
471
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
477
  if($wcast_show_tracking_details == 1){
478
  ob_start();
479
  wc_get_template( 'emails/tracking-info.php', array(
480
+ 'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
481
+ 'order_id' => $preview_id,
482
+ 'new_status' => 'failure',
483
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
484
  $message .= ob_get_clean();
485
  }
538
  * code for append analytics link in email content
539
  */
540
  public function _appendCampaignToString($match){
541
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
542
+ $wcast_failure_analytics_link = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_analytics_link','');
543
+
544
  $url = $match[2];
545
  if (strpos($url, '?') === false) {
546
  $url .= '?';
547
  }
548
+ $url .= $wcast_failure_analytics_link;
549
  return $match[1].$url.$match[3];
550
  }
551
  }
includes/customizer/class-wc-intransit-email-customizer.php CHANGED
@@ -151,6 +151,7 @@ class wcast_intransit_customizer_email {
151
  array(
152
  'default' => '',
153
  'transport' => 'postMessage',
 
154
  'sanitize_callback' => ''
155
  )
156
  );
@@ -162,14 +163,15 @@ class wcast_intransit_customizer_email {
162
  )
163
  ) );
164
  // Display Shipment Provider image/thumbnail
165
- $wp_customize->add_setting( 'wcast_enable_intransit_email',
166
  array(
167
  'default' => $this->defaults['wcast_enable_intransit_email'],
168
  'transport' => 'postMessage',
 
169
  'sanitize_callback' => ''
170
  )
171
  );
172
- $wp_customize->add_control( 'wcast_enable_intransit_email',
173
  array(
174
  'label' => __( 'Enable In Transit shipment status email', 'woo-advanced-shipment-tracking' ),
175
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -182,7 +184,7 @@ class wcast_intransit_customizer_email {
182
  $wp_customize->add_setting( 'wcast_intransit_email_preview_order_id',
183
  array(
184
  'default' => 'mockup',
185
- 'transport' => 'refresh',
186
  'sanitize_callback' => ''
187
  )
188
  );
@@ -200,14 +202,15 @@ class wcast_intransit_customizer_email {
200
  ) );
201
 
202
  // Header Text
203
- $wp_customize->add_setting( 'wcast_intransit_email_to',
204
  array(
205
  'default' => $this->defaults['wcast_intransit_email_to'],
206
  'transport' => 'postMessage',
 
207
  'sanitize_callback' => ''
208
  )
209
  );
210
- $wp_customize->add_control( 'wcast_intransit_email_to',
211
  array(
212
  'label' => __( 'Recipient(s)', 'woocommerce' ),
213
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
@@ -222,58 +225,61 @@ class wcast_intransit_customizer_email {
222
  );
223
 
224
  // Header Text
225
- $wp_customize->add_setting( 'wcast_intransit_email_subject',
226
  array(
227
  'default' => $this->defaults['wcast_intransit_email_subject'],
228
  'transport' => 'postMessage',
 
229
  'sanitize_callback' => ''
230
  )
231
  );
232
- $wp_customize->add_control( 'wcast_intransit_email_subject',
233
  array(
234
  'label' => __( 'Subject', 'woocommerce' ),
235
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
236
  'section' => 'customer_intransit_email',
237
  'type' => 'text',
238
  'input_attrs' => array(
239
  'class' => '',
240
  'style' => '',
241
- 'placeholder' => __( 'Please enter email subject here', 'woo-advanced-shipment-tracking' ),
242
  ),
243
  )
244
  );
245
 
246
  // Header Text
247
- $wp_customize->add_setting( 'wcast_intransit_email_heading',
248
  array(
249
  'default' => $this->defaults['wcast_intransit_email_heading'],
250
- 'transport' => 'postMessage',
 
251
  'sanitize_callback' => ''
252
  )
253
  );
254
- $wp_customize->add_control( 'wcast_intransit_email_heading',
255
  array(
256
  'label' => __( 'Email heading', 'woocommerce' ),
257
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
258
  'section' => 'customer_intransit_email',
259
  'type' => 'text',
260
  'input_attrs' => array(
261
  'class' => '',
262
  'style' => '',
263
- 'placeholder' => __( 'Please enter email heading here', 'woo-advanced-shipment-tracking' ),
264
  ),
265
  )
266
  );
267
 
268
  // Display Shipment Provider image/thumbnail
269
- $wp_customize->add_setting( 'wcast_intransit_show_tracking_details',
270
  array(
271
  'default' => $this->defaults['wcast_intransit_show_tracking_details'],
272
  'transport' => 'refresh',
 
273
  'sanitize_callback' => ''
274
  )
275
  );
276
- $wp_customize->add_control( 'wcast_intransit_show_tracking_details',
277
  array(
278
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
279
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -282,14 +288,15 @@ class wcast_intransit_customizer_email {
282
  )
283
  );
284
  // Display Shipment Provider image/thumbnail
285
- $wp_customize->add_setting( 'wcast_intransit_show_order_details',
286
  array(
287
  'default' => $this->defaults['wcast_intransit_show_order_details'],
288
  'transport' => 'refresh',
 
289
  'sanitize_callback' => ''
290
  )
291
  );
292
- $wp_customize->add_control( 'wcast_intransit_show_order_details',
293
  array(
294
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
295
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -298,14 +305,15 @@ class wcast_intransit_customizer_email {
298
  )
299
  );
300
  // Display Shipment Provider image/thumbnail
301
- $wp_customize->add_setting( 'wcast_intransit_show_billing_address',
302
  array(
303
  'default' => $this->defaults['wcast_intransit_show_billing_address'],
304
  'transport' => 'refresh',
 
305
  'sanitize_callback' => ''
306
  )
307
  );
308
- $wp_customize->add_control( 'wcast_intransit_show_billing_address',
309
  array(
310
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
311
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -315,14 +323,15 @@ class wcast_intransit_customizer_email {
315
  );
316
 
317
  // Display Shipment Provider image/thumbnail
318
- $wp_customize->add_setting( 'wcast_intransit_show_shipping_address',
319
  array(
320
  'default' => $this->defaults['wcast_intransit_show_shipping_address'],
321
  'transport' => 'refresh',
 
322
  'sanitize_callback' => ''
323
  )
324
  );
325
- $wp_customize->add_control( 'wcast_intransit_show_shipping_address',
326
  array(
327
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
328
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -332,14 +341,15 @@ class wcast_intransit_customizer_email {
332
  );
333
 
334
  // Test of TinyMCE control
335
- $wp_customize->add_setting( 'wcast_intransit_email_content',
336
  array(
337
  'default' => $this->defaults['wcast_intransit_email_content'],
338
  'transport' => 'refresh',
 
339
  'sanitize_callback' => 'wp_kses_post'
340
  )
341
  );
342
- $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_intransit_email_content',
343
  array(
344
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
345
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
@@ -347,18 +357,20 @@ class wcast_intransit_customizer_email {
347
  'input_attrs' => array(
348
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
349
  'mediaButtons' => true,
 
350
  )
351
  )
352
  ) );
353
 
354
- $wp_customize->add_setting( 'wcast_intransit_analytics_link',
355
  array(
356
  'default' => '',
357
- 'transport' => 'refresh',
 
358
  'sanitize_callback' => ''
359
  )
360
  );
361
- $wp_customize->add_control( 'wcast_intransit_analytics_link',
362
  array(
363
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
364
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
@@ -373,16 +385,17 @@ class wcast_intransit_customizer_email {
373
  );
374
 
375
 
376
- $wp_customize->add_setting( 'wcast_intransit_email_code_block',
377
  array(
378
  'default' => $this->defaults['wcast_intransit_email_code_block'],
379
  'transport' => 'postMessage',
 
380
  'sanitize_callback' => ''
381
  )
382
  );
383
- $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_intransit_email_code_block',
384
  array(
385
- 'label' => __( 'Available placeholders', 'woo-advanced-shipment-tracking' ),
386
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
387
  'section' => 'customer_intransit_email',
388
  )
@@ -413,16 +426,23 @@ class wcast_intransit_customizer_email {
413
  $wc_emails = WC_Emails::instance();
414
  $emails = $wc_emails->get_emails();
415
  $preview_id = get_theme_mod('wcast_intransit_email_preview_order_id');
 
416
 
417
- $email_heading = get_theme_mod('wcast_intransit_email_heading');
 
418
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
419
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
420
 
421
- $email_content = get_theme_mod('wcast_intransit_email_content');
422
- $wcast_show_tracking_details = get_theme_mod('wcast_intransit_show_tracking_details');
423
- $wcast_show_order_details = get_theme_mod('wcast_intransit_show_order_details');
424
- $wcast_show_billing_address = get_theme_mod('wcast_intransit_show_billing_address');
425
- $wcast_show_shipping_address = get_theme_mod('wcast_intransit_show_shipping_address');
 
 
 
 
 
426
  $sent_to_admin = false;
427
  $plain_text = false;
428
  $email = '';
@@ -434,6 +454,13 @@ class wcast_intransit_customizer_email {
434
  }
435
 
436
  $order = wc_get_order( $preview_id );
 
 
 
 
 
 
 
437
  $mailer = WC()->mailer();
438
 
439
  // get the preview email subject
@@ -442,7 +469,7 @@ class wcast_intransit_customizer_email {
442
 
443
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
444
 
445
- $wcast_intransit_analytics_link = get_theme_mod('wcast_intransit_analytics_link');
446
 
447
  if($wcast_intransit_analytics_link){
448
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
@@ -454,7 +481,10 @@ class wcast_intransit_customizer_email {
454
  if($wcast_show_tracking_details == 1){
455
  ob_start();
456
  wc_get_template( 'emails/tracking-info.php', array(
457
- 'tracking_items' => $wast->get_tracking_items( $preview_id, true )
 
 
 
458
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
459
  $message .= ob_get_clean();
460
  }
@@ -511,11 +541,14 @@ class wcast_intransit_customizer_email {
511
  * code for append analytics link in email content
512
  */
513
  public function _appendCampaignToString($match){
 
 
 
514
  $url = $match[2];
515
  if (strpos($url, '?') === false) {
516
  $url .= '?';
517
  }
518
- $url .= get_theme_mod('wcast_intransit_analytics_link');
519
  return $match[1].$url.$match[3];
520
  }
521
  }
151
  array(
152
  'default' => '',
153
  'transport' => 'postMessage',
154
+ 'type' => 'option',
155
  'sanitize_callback' => ''
156
  )
157
  );
163
  )
164
  ) );
165
  // Display Shipment Provider image/thumbnail
166
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_enable_intransit_email]',
167
  array(
168
  'default' => $this->defaults['wcast_enable_intransit_email'],
169
  'transport' => 'postMessage',
170
+ 'type' => 'option',
171
  'sanitize_callback' => ''
172
  )
173
  );
174
+ $wp_customize->add_control( 'wcast_intransit_email_settings[wcast_enable_intransit_email]',
175
  array(
176
  'label' => __( 'Enable In Transit shipment status email', 'woo-advanced-shipment-tracking' ),
177
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
184
  $wp_customize->add_setting( 'wcast_intransit_email_preview_order_id',
185
  array(
186
  'default' => 'mockup',
187
+ 'transport' => 'refresh',
188
  'sanitize_callback' => ''
189
  )
190
  );
202
  ) );
203
 
204
  // Header Text
205
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_email_to]',
206
  array(
207
  'default' => $this->defaults['wcast_intransit_email_to'],
208
  'transport' => 'postMessage',
209
+ 'type' => 'option',
210
  'sanitize_callback' => ''
211
  )
212
  );
213
+ $wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_email_to]',
214
  array(
215
  'label' => __( 'Recipient(s)', 'woocommerce' ),
216
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
225
  );
226
 
227
  // Header Text
228
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_email_subject]',
229
  array(
230
  'default' => $this->defaults['wcast_intransit_email_subject'],
231
  'transport' => 'postMessage',
232
+ 'type' => 'option',
233
  'sanitize_callback' => ''
234
  )
235
  );
236
+ $wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_email_subject]',
237
  array(
238
  'label' => __( 'Subject', 'woocommerce' ),
239
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
240
  'section' => 'customer_intransit_email',
241
  'type' => 'text',
242
  'input_attrs' => array(
243
  'class' => '',
244
  'style' => '',
245
+ 'placeholder' => __( $this->defaults['wcast_intransit_email_subject'], 'woo-advanced-shipment-tracking' ),
246
  ),
247
  )
248
  );
249
 
250
  // Header Text
251
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_email_heading]',
252
  array(
253
  'default' => $this->defaults['wcast_intransit_email_heading'],
254
+ 'transport' => 'refresh',
255
+ 'type' => 'option',
256
  'sanitize_callback' => ''
257
  )
258
  );
259
+ $wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_email_heading]',
260
  array(
261
  'label' => __( 'Email heading', 'woocommerce' ),
262
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
263
  'section' => 'customer_intransit_email',
264
  'type' => 'text',
265
  'input_attrs' => array(
266
  'class' => '',
267
  'style' => '',
268
+ 'placeholder' => __( $this->defaults['wcast_intransit_email_heading'], 'woo-advanced-shipment-tracking' ),
269
  ),
270
  )
271
  );
272
 
273
  // Display Shipment Provider image/thumbnail
274
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_show_tracking_details]',
275
  array(
276
  'default' => $this->defaults['wcast_intransit_show_tracking_details'],
277
  'transport' => 'refresh',
278
+ 'type' => 'option',
279
  'sanitize_callback' => ''
280
  )
281
  );
282
+ $wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_show_tracking_details]',
283
  array(
284
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
285
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
288
  )
289
  );
290
  // Display Shipment Provider image/thumbnail
291
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_show_order_details]',
292
  array(
293
  'default' => $this->defaults['wcast_intransit_show_order_details'],
294
  'transport' => 'refresh',
295
+ 'type' => 'option',
296
  'sanitize_callback' => ''
297
  )
298
  );
299
+ $wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_show_order_details]',
300
  array(
301
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
302
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
305
  )
306
  );
307
  // Display Shipment Provider image/thumbnail
308
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_show_billing_address]',
309
  array(
310
  'default' => $this->defaults['wcast_intransit_show_billing_address'],
311
  'transport' => 'refresh',
312
+ 'type' => 'option',
313
  'sanitize_callback' => ''
314
  )
315
  );
316
+ $wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_show_billing_address]',
317
  array(
318
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
319
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
323
  );
324
 
325
  // Display Shipment Provider image/thumbnail
326
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_show_shipping_address]',
327
  array(
328
  'default' => $this->defaults['wcast_intransit_show_shipping_address'],
329
  'transport' => 'refresh',
330
+ 'type' => 'option',
331
  'sanitize_callback' => ''
332
  )
333
  );
334
+ $wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_show_shipping_address]',
335
  array(
336
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
337
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
341
  );
342
 
343
  // Test of TinyMCE control
344
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_email_content]',
345
  array(
346
  'default' => $this->defaults['wcast_intransit_email_content'],
347
  'transport' => 'refresh',
348
+ 'type' => 'option',
349
  'sanitize_callback' => 'wp_kses_post'
350
  )
351
  );
352
+ $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_intransit_email_settings[wcast_intransit_email_content]',
353
  array(
354
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
355
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
357
  'input_attrs' => array(
358
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
359
  'mediaButtons' => true,
360
+ 'placeholder' => __( $this->defaults['wcast_intransit_email_content'], 'woo-advanced-shipment-tracking' ),
361
  )
362
  )
363
  ) );
364
 
365
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_analytics_link]',
366
  array(
367
  'default' => '',
368
+ 'transport' => 'refresh',
369
+ 'type' => 'option',
370
  'sanitize_callback' => ''
371
  )
372
  );
373
+ $wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_analytics_link]',
374
  array(
375
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
376
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
385
  );
386
 
387
 
388
+ $wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_email_code_block]',
389
  array(
390
  'default' => $this->defaults['wcast_intransit_email_code_block'],
391
  'transport' => 'postMessage',
392
+ 'type' => 'option',
393
  'sanitize_callback' => ''
394
  )
395
  );
396
+ $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_intransit_email_settings[wcast_intransit_email_code_block]',
397
  array(
398
+ 'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
399
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
400
  'section' => 'customer_intransit_email',
401
  )
426
  $wc_emails = WC_Emails::instance();
427
  $emails = $wc_emails->get_emails();
428
  $preview_id = get_theme_mod('wcast_intransit_email_preview_order_id');
429
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
430
 
431
+ $email_heading = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_email_heading',$this->defaults['wcast_intransit_email_heading']);
432
+
433
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
434
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
435
 
436
+ $email_content = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_email_content',$this->defaults['wcast_intransit_email_content']);
437
+
438
+ $wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_show_tracking_details',$this->defaults['wcast_intransit_show_tracking_details']);
439
+
440
+ $wcast_show_order_details = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_show_order_details',$this->defaults['wcast_intransit_show_order_details']);
441
+
442
+ $wcast_show_billing_address = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_show_billing_address',$this->defaults['wcast_intransit_show_billing_address']);
443
+
444
+ $wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_show_shipping_address',$this->defaults['wcast_intransit_show_shipping_address']);
445
+
446
  $sent_to_admin = false;
447
  $plain_text = false;
448
  $email = '';
454
  }
455
 
456
  $order = wc_get_order( $preview_id );
457
+
458
+ if(!$order){
459
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
460
+ echo $content;
461
+ return;
462
+ }
463
+
464
  $mailer = WC()->mailer();
465
 
466
  // get the preview email subject
469
 
470
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
471
 
472
+ $wcast_intransit_analytics_link = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_analytics_link','');
473
 
474
  if($wcast_intransit_analytics_link){
475
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
481
  if($wcast_show_tracking_details == 1){
482
  ob_start();
483
  wc_get_template( 'emails/tracking-info.php', array(
484
+ 'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
485
+ 'order_id' => $preview_id,
486
+ 'show_shipment_status' => false,
487
+ 'new_status' => 'in_transit',
488
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
489
  $message .= ob_get_clean();
490
  }
541
  * code for append analytics link in email content
542
  */
543
  public function _appendCampaignToString($match){
544
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
545
+ $wcast_intransit_analytics_link = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_analytics_link','');
546
+
547
  $url = $match[2];
548
  if (strpos($url, '?') === false) {
549
  $url .= '?';
550
  }
551
+ $url .= $wcast_intransit_analytics_link;
552
  return $match[1].$url.$match[3];
553
  }
554
  }
includes/customizer/class-wc-late-shipments-email-customizer.php ADDED
@@ -0,0 +1,540 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Customizer Setup and Custom Controls
4
+ *
5
+ */
6
+
7
+ /**
8
+ * Adds the individual sections, settings, and controls to the theme customizer
9
+ */
10
+ class wcast_late_shipments_customizer_email {
11
+ // Get our default values
12
+ public function __construct() {
13
+ // Get our Customizer defaults
14
+ $this->defaults = $this->wcast_generate_defaults();
15
+
16
+ $wc_ast_api_key = get_option('wc_ast_api_key');
17
+
18
+ if(!$wc_ast_api_key){
19
+ return;
20
+ }
21
+
22
+ // Register our sample default controls
23
+ add_action( 'customize_register', array( $this, 'wcast_register_sample_default_controls' ) );
24
+
25
+ // Only proceed if this is own request.
26
+ if ( ! wcast_late_shipments_customizer_email::is_own_customizer_request() && ! wcast_late_shipments_customizer_email::is_own_preview_request() ) {
27
+ return;
28
+ }
29
+ add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
30
+ // Register our sections
31
+ add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
32
+
33
+ // Remove unrelated components.
34
+ add_filter( 'customize_loaded_components', array( wcast_customizer(), 'remove_unrelated_components' ), 99, 2 );
35
+
36
+ // Remove unrelated sections.
37
+ add_filter( 'customize_section_active', array( wcast_customizer(), 'remove_unrelated_sections' ), 10, 2 );
38
+
39
+ // Unhook divi front end.
40
+ add_action( 'woomail_footer', array( wcast_customizer(), 'unhook_divi' ), 10 );
41
+
42
+ // Unhook Flatsome js
43
+ add_action( 'customize_preview_init', array( wcast_customizer(), 'unhook_flatsome' ), 50 );
44
+
45
+ add_filter( 'customize_controls_enqueue_scripts', array( wcast_customizer(), 'enqueue_customizer_scripts' ) );
46
+
47
+ add_action( 'parse_request', array( $this, 'set_up_preview' ) );
48
+
49
+ add_action( 'customize_preview_init', array( $this, 'enqueue_preview_scripts' ) );
50
+
51
+ }
52
+
53
+ /**
54
+ * add css and js for preview
55
+ */
56
+ public function enqueue_preview_scripts() {
57
+ wp_enqueue_script('wcast-email-preview-scripts', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/preview-scripts.js', array('jquery', 'customize-preview'), wc_advanced_shipment_tracking()->version, true);
58
+ wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
59
+ // Send variables to Javascript
60
+ $preview_id = get_theme_mod('wcast_email_preview_order_id');
61
+ wp_localize_script('wcast-email-preview-scripts', 'wcast_preview', array(
62
+ 'site_title' => $this->get_blogname(),
63
+ 'order_number' => $preview_id,
64
+ ));
65
+ }
66
+
67
+ /**
68
+ * Get blog name formatted for emails.
69
+ *
70
+ * @return string
71
+ */
72
+ public function get_blogname() {
73
+ return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
74
+ }
75
+
76
+ /**
77
+ * Checks to see if we are opening our custom customizer preview
78
+ *
79
+ * @access public
80
+ * @return bool
81
+ */
82
+ public static function is_own_preview_request() {
83
+ return isset( $_REQUEST['wcast-late-shipments-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-late-shipments-email-customizer-preview'];
84
+ }
85
+
86
+ /**
87
+ * Checks to see if we are opening our custom customizer controls
88
+ *
89
+ * @access public
90
+ * @return bool
91
+ */
92
+ public static function is_own_customizer_request() {
93
+ return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'admin_late_shipments_email';
94
+ }
95
+
96
+ /**
97
+ * Get Customizer URL
98
+ *
99
+ */
100
+ public static function get_customizer_url($email,$return_tab) {
101
+ $customizer_url = add_query_arg( array(
102
+ 'wcast-customizer' => '1',
103
+ 'email' => $email,
104
+ 'url' => urlencode( add_query_arg( array( 'wcast-late-shipments-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
105
+ 'return' => urlencode( wcast_late_shipments_customizer_email::get_email_settings_page_url($return_tab) ),
106
+ ), admin_url( 'customize.php' ) );
107
+
108
+ return $customizer_url;
109
+ }
110
+
111
+ /**
112
+ * Get WooCommerce email settings page URL
113
+ *
114
+ * @access public
115
+ * @return string
116
+ */
117
+ public static function get_email_settings_page_url($return_tab) {
118
+ return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
119
+ }
120
+
121
+ /**
122
+ * code for initialize default value for customizer
123
+ */
124
+ public function wcast_generate_defaults() {
125
+ $customizer_defaults = array(
126
+ 'wcast_late_shipments_email_subject' => __( 'Late shipment for order #{order_number}', 'woo-advanced-shipment-tracking' ),
127
+ 'wcast_late_shipments_email_heading' => __( 'Late shipment', 'woo-advanced-shipment-tracking' ),
128
+ 'wcast_late_shipments_email_content' => __( 'This shipment exceeded {shipment_length} days.', 'woo-advanced-shipment-tracking' ),
129
+ 'wcast_enable_late_shipments_admin_email' => '',
130
+ 'wcast_late_shipments_days' => '7',
131
+ 'wcast_late_shipments_email_to' => '{admin_email}',
132
+ 'wcast_late_shipments_show_tracking_details' => '',
133
+ 'wcast_late_shipments_show_order_details' => '',
134
+ 'wcast_late_shipments_show_billing_address' => '',
135
+ 'wcast_late_shipments_show_shipping_address' => '',
136
+ 'wcast_late_shipments_email_code_block' => '',
137
+ );
138
+
139
+ return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
140
+ }
141
+
142
+ /**
143
+ * Register our sample default controls
144
+ */
145
+ public function wcast_register_sample_default_controls( $wp_customize ) {
146
+ /**
147
+ * Load all our Customizer Custom Controls
148
+ */
149
+ require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
150
+
151
+ $wp_customize->add_setting( 'late_shipments_email_settings[late_shipments_admin_email_heading]',
152
+ array(
153
+ 'default' => '',
154
+ 'transport' => 'postMessage',
155
+ 'type' => 'option',
156
+ 'sanitize_callback' => ''
157
+ )
158
+ );
159
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'late_shipments_email_settings[late_shipments_admin_email_heading]',
160
+ array(
161
+ 'label' => __( 'Late Shipments admin email', 'woo-advanced-shipment-tracking' ),
162
+ 'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
163
+ 'section' => 'admin_late_shipments_email'
164
+ )
165
+ ) );
166
+
167
+ $wp_customize->add_setting( 'wcast_late_shipments_email_preview_order_id',
168
+ array(
169
+ 'default' => 'mockup',
170
+ 'transport' => 'refresh',
171
+ 'sanitize_callback' => ''
172
+ )
173
+ );
174
+ $wp_customize->add_control( new Skyrocket_Dropdown_Select_Custom_Control( $wp_customize, 'wcast_late_shipments_email_preview_order_id',
175
+ array(
176
+ 'label' => __( 'Preview order', 'woo-advanced-shipment-tracking' ),
177
+ 'description' => '',
178
+ 'section' => 'admin_late_shipments_email',
179
+ 'input_attrs' => array(
180
+ 'placeholder' => __( 'Please select a order...', 'skyrocket' ),
181
+ 'class' => 'preview_order_select',
182
+ ),
183
+ 'choices' => wcast_customizer()->get_order_ids(),
184
+ )
185
+ ) );
186
+
187
+ // Display Shipment Provider image/thumbnail
188
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_enable_late_shipments_admin_email]',
189
+ array(
190
+ 'default' => $this->defaults['wcast_enable_late_shipments_admin_email'],
191
+ 'transport' => 'postMessage',
192
+ 'type' => 'option',
193
+ 'sanitize_callback' => ''
194
+ )
195
+ );
196
+ $wp_customize->add_control( 'late_shipments_email_settings[wcast_enable_late_shipments_admin_email]',
197
+ array(
198
+ 'label' => __( 'Enable Late Shipments admin email', 'woo-advanced-shipment-tracking' ),
199
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
200
+ 'section' => 'admin_late_shipments_email',
201
+ 'type' => 'checkbox'
202
+ )
203
+ );
204
+
205
+ // Header Text
206
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_late_shipments_days]',
207
+ array(
208
+ 'default' => $this->defaults['wcast_late_shipments_days'],
209
+ 'transport' => 'refresh',
210
+ 'type' => 'option',
211
+ 'sanitize_callback' => ''
212
+ )
213
+ );
214
+ $wp_customize->add_control( 'late_shipments_email_settings[wcast_late_shipments_days]',
215
+ array(
216
+ 'label' => __( 'Late Shipment Days', 'woocommerce' ),
217
+ 'description' => esc_html__( '', 'woocommerce' ),
218
+ 'section' => 'admin_late_shipments_email',
219
+ 'type' => 'number',
220
+ )
221
+ );
222
+
223
+ // Header Text
224
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_late_shipments_email_to]',
225
+ array(
226
+ 'default' => $this->defaults['wcast_late_shipments_email_to'],
227
+ 'transport' => 'postMessage',
228
+ 'type' => 'option',
229
+ 'sanitize_callback' => ''
230
+ )
231
+ );
232
+ $wp_customize->add_control( 'late_shipments_email_settings[wcast_late_shipments_email_to]',
233
+ array(
234
+ 'label' => __( 'Recipient(s)', 'woocommerce' ),
235
+ 'description' => esc_html__( 'Enter emails here or use variables such as {admin_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
236
+ 'section' => 'admin_late_shipments_email',
237
+ 'type' => 'text',
238
+ 'input_attrs' => array(
239
+ 'class' => '',
240
+ 'style' => '',
241
+ 'placeholder' => __( 'E.g. {admin_email}, admin@example.org', 'woo-advanced-shipment-tracking' ),
242
+ ),
243
+ )
244
+ );
245
+ // Header Text
246
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_late_shipments_email_subject]',
247
+ array(
248
+ 'default' => $this->defaults['wcast_late_shipments_email_subject'],
249
+ 'transport' => 'postMessage',
250
+ 'type' => 'option',
251
+ 'sanitize_callback' => ''
252
+ )
253
+ );
254
+ $wp_customize->add_control( 'late_shipments_email_settings[wcast_late_shipments_email_subject]',
255
+ array(
256
+ 'label' => __( 'Subject', 'woocommerce' ),
257
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
258
+ 'section' => 'admin_late_shipments_email',
259
+ 'type' => 'text',
260
+ 'input_attrs' => array(
261
+ 'class' => '',
262
+ 'style' => '',
263
+ 'placeholder' => __( $this->defaults['wcast_late_shipments_email_subject'], 'woo-advanced-shipment-tracking' ),
264
+ ),
265
+ )
266
+ );
267
+
268
+ // Header Text
269
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_late_shipments_email_heading]',
270
+ array(
271
+ 'default' => $this->defaults['wcast_late_shipments_email_heading'],
272
+ 'transport' => 'refresh',
273
+ 'type' => 'option',
274
+ 'sanitize_callback' => ''
275
+ )
276
+ );
277
+ $wp_customize->add_control( 'late_shipments_email_settings[wcast_late_shipments_email_heading]',
278
+ array(
279
+ 'label' => __( 'Email heading', 'woocommerce' ),
280
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
281
+ 'section' => 'admin_late_shipments_email',
282
+ 'type' => 'text',
283
+ 'input_attrs' => array(
284
+ 'class' => '',
285
+ 'style' => '',
286
+ 'placeholder' => __( $this->defaults['wcast_late_shipments_email_heading'], 'woo-advanced-shipment-tracking' ),
287
+ ),
288
+ )
289
+ );
290
+ // Display Shipment Provider image/thumbnail
291
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_late_shipments_show_tracking_details]',
292
+ array(
293
+ 'default' => $this->defaults['wcast_late_shipments_show_tracking_details'],
294
+ 'transport' => 'refresh',
295
+ 'type' => 'option',
296
+ 'sanitize_callback' => ''
297
+ )
298
+ );
299
+ $wp_customize->add_control( 'late_shipments_email_settings[wcast_late_shipments_show_tracking_details]',
300
+ array(
301
+ 'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
302
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
303
+ 'section' => 'admin_late_shipments_email',
304
+ 'type' => 'checkbox'
305
+ )
306
+ );
307
+ // Display Shipment Provider image/thumbnail
308
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_late_shipments_show_order_details]',
309
+ array(
310
+ 'default' => $this->defaults['wcast_late_shipments_show_order_details'],
311
+ 'transport' => 'refresh',
312
+ 'type' => 'option',
313
+ 'sanitize_callback' => ''
314
+ )
315
+ );
316
+ $wp_customize->add_control( 'late_shipments_email_settings[wcast_late_shipments_show_order_details]',
317
+ array(
318
+ 'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
319
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
320
+ 'section' => 'admin_late_shipments_email',
321
+ 'type' => 'checkbox'
322
+ )
323
+ );
324
+ // Display Shipment Provider image/thumbnail
325
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_late_shipments_show_billing_address]',
326
+ array(
327
+ 'default' => $this->defaults['wcast_late_shipments_show_billing_address'],
328
+ 'transport' => 'refresh',
329
+ 'type' => 'option',
330
+ 'sanitize_callback' => ''
331
+ )
332
+ );
333
+ $wp_customize->add_control( 'late_shipments_email_settings[wcast_late_shipments_show_billing_address]',
334
+ array(
335
+ 'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
336
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
337
+ 'section' => 'admin_late_shipments_email',
338
+ 'type' => 'checkbox'
339
+ )
340
+ );
341
+
342
+ // Display Shipment Provider image/thumbnail
343
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_late_shipments_show_shipping_address]',
344
+ array(
345
+ 'default' => $this->defaults['wcast_late_shipments_show_shipping_address'],
346
+ 'transport' => 'refresh',
347
+ 'type' => 'option',
348
+ 'sanitize_callback' => ''
349
+ )
350
+ );
351
+ $wp_customize->add_control( 'late_shipments_email_settings[wcast_late_shipments_show_shipping_address]',
352
+ array(
353
+ 'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
354
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
355
+ 'section' => 'admin_late_shipments_email',
356
+ 'type' => 'checkbox'
357
+ )
358
+ );
359
+
360
+ // Test of TinyMCE control
361
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_late_shipments_email_content]',
362
+ array(
363
+ 'default' => $this->defaults['wcast_late_shipments_email_content'],
364
+ 'transport' => 'refresh',
365
+ 'type' => 'option',
366
+ 'sanitize_callback' => 'wp_kses_post'
367
+ )
368
+ );
369
+ $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'late_shipments_email_settings[wcast_late_shipments_email_content]',
370
+ array(
371
+ 'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
372
+ 'description' => __( '', 'woo-advanced-shipment-tracking' ),
373
+ 'section' => 'admin_late_shipments_email',
374
+ 'input_attrs' => array(
375
+ 'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
376
+ 'mediaButtons' => true,
377
+ 'placeholder' => __( $this->defaults['wcast_late_shipments_email_content'], 'woo-advanced-shipment-tracking' ),
378
+ )
379
+ )
380
+ ) );
381
+
382
+ $wp_customize->add_setting( 'late_shipments_email_settings[wcast_late_shipments_email_code_block]',
383
+ array(
384
+ 'default' => '',
385
+ 'transport' => 'postMessage',
386
+ 'type' => 'option',
387
+ 'sanitize_callback' => ''
388
+ )
389
+ );
390
+ $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'late_shipments_email_settings[wcast_late_shipments_email_code_block]',
391
+ array(
392
+ 'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
393
+ 'description' => '<code>{site_title}<br>{admin_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{shipment_length}<br>{est_delivery_date}</code>',
394
+ 'section' => 'admin_late_shipments_email',
395
+ )
396
+ ) );
397
+ }
398
+
399
+ /**
400
+ * Set up preview
401
+ *
402
+ * @access public
403
+ * @return void
404
+ */
405
+ public function set_up_preview() {
406
+
407
+ // Make sure this is own preview request.
408
+ if ( ! wcast_late_shipments_customizer_email::is_own_preview_request() ) {
409
+ return;
410
+ }
411
+ include wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/preview/late_shipments_preview.php';
412
+ exit;
413
+ }
414
+ /**
415
+ * code for preview of in transit email
416
+ */
417
+ public function preview_late_shipments_email(){
418
+ // Load WooCommerce emails.
419
+ $wc_emails = WC_Emails::instance();
420
+ $emails = $wc_emails->get_emails();
421
+ $preview_id = get_theme_mod('wcast_late_shipments_email_preview_order_id');
422
+
423
+ $email_heading = get_theme_mod('wcast_late_shipments_email_heading',$this->defaults['wcast_late_shipments_email_heading']);
424
+
425
+ if($email_heading == ''){
426
+ $email_heading = $this->defaults['wcast_late_shipments_email_heading'];
427
+ }
428
+
429
+ $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
430
+ $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
431
+
432
+ $email_content = get_theme_mod('wcast_late_shipments_email_content',$this->defaults['wcast_late_shipments_email_content']);
433
+
434
+ if($email_content == ''){
435
+ $email_content = $this->defaults['wcast_late_shipments_email_content'];
436
+ }
437
+
438
+ $wcast_show_tracking_details = get_theme_mod('wcast_late_shipments_show_tracking_details');
439
+ $wcast_show_order_details = get_theme_mod('wcast_late_shipments_show_order_details');
440
+ $wcast_show_billing_address = get_theme_mod('wcast_late_shipments_show_billing_address');
441
+ $wcast_show_shipping_address = get_theme_mod('wcast_late_shipments_show_shipping_address');
442
+ $sent_to_admin = false;
443
+ $plain_text = false;
444
+ $email = '';
445
+
446
+ if($preview_id == '' || $preview_id == 'mockup') {
447
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
448
+ echo $content;
449
+ return;
450
+ }
451
+
452
+ $order = wc_get_order( $preview_id );
453
+
454
+ if(!$order){
455
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
456
+ echo $content;
457
+ return;
458
+ }
459
+
460
+ $mailer = WC()->mailer();
461
+
462
+ // get the preview email subject
463
+ $email_heading = __( $email_heading, 'woo-advanced-shipment-tracking' );
464
+ //ob_start();
465
+
466
+ $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
467
+ $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
468
+ $message = $this->email_content($message,$preview_id,$order);
469
+
470
+ if($wcast_show_tracking_details == 1){
471
+ ob_start();
472
+ wc_get_template( 'emails/tracking-info.php', array(
473
+ 'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
474
+ 'order_id' => $preview_id,
475
+ ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
476
+ $message .= ob_get_clean();
477
+ }
478
+
479
+ if($wcast_show_order_details == 1){
480
+ ob_start();
481
+ wc_get_template(
482
+ 'emails/wcast-email-order-details.php', array(
483
+ 'order' => $order,
484
+ 'sent_to_admin' => $sent_to_admin,
485
+ 'plain_text' => $plain_text,
486
+ 'email' => $email,
487
+ ),
488
+ 'woocommerce-advanced-shipment-tracking/',
489
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
490
+ );
491
+ $message .= ob_get_clean();
492
+ }
493
+
494
+ if($wcast_show_billing_address == 1){
495
+ ob_start();
496
+ wc_get_template(
497
+ 'emails/wcast-billing-email-addresses.php', array(
498
+ 'order' => $order,
499
+ 'sent_to_admin' => $sent_to_admin,
500
+ ),
501
+ 'woocommerce-advanced-shipment-tracking/',
502
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
503
+ );
504
+ $message .= ob_get_clean();
505
+ }
506
+
507
+ if($wcast_show_shipping_address == 1){
508
+ ob_start();
509
+ wc_get_template(
510
+ 'emails/wcast-shipping-email-addresses.php', array(
511
+ 'order' => $order,
512
+ 'sent_to_admin' => $sent_to_admin,
513
+ ),
514
+ 'woocommerce-advanced-shipment-tracking/',
515
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
516
+ );
517
+ $message .= ob_get_clean();
518
+ }
519
+ // create a new email
520
+ $email = new WC_Email();
521
+ $email->id = 'WC_Delivered_email';
522
+ // wrap the content with the email template and then add styles
523
+ $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
524
+ echo $message;
525
+ }
526
+ /**
527
+ * code for format email content
528
+ */
529
+ public function email_content($message, $order_id, $order){
530
+ $shipment_length = get_theme_mod('wcast_late_shipments_days');
531
+ $message = str_replace( '{shipment_length}', $shipment_length, $message );
532
+ return $message;
533
+ }
534
+
535
+ }
536
+ /**
537
+ * Initialise our Customizer settings
538
+ */
539
+
540
+ $wcast_late_shipments_settings = new wcast_late_shipments_customizer_email();
includes/customizer/class-wc-outfordelivery-email-customizer.php CHANGED
@@ -126,7 +126,7 @@ class wcast_outfordelivery_customizer_email {
126
  'wcast_outfordelivery_email_heading' => __( 'Out For Delivery', 'woo-advanced-shipment-tracking' ),
127
  'wcast_outfordelivery_email_content' => __( "Hi there. we thought you'd like to know that your recent order from {site_title} is out for delivery.", 'woo-advanced-shipment-tracking' ),
128
  'wcast_enable_outfordelivery_email' => '',
129
- 'wcast_outfordelivery_email_to' => '{customer_email}',
130
  'wcast_outfordelivery_show_tracking_details' => '',
131
  'wcast_outfordelivery_show_order_details' => '',
132
  'wcast_outfordelivery_show_billing_address' => '',
@@ -146,14 +146,15 @@ class wcast_outfordelivery_customizer_email {
146
  */
147
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
148
 
149
- $wp_customize->add_setting( 'outfordelivery_order_email_heading',
150
  array(
151
  'default' => '',
152
  'transport' => 'postMessage',
 
153
  'sanitize_callback' => ''
154
  )
155
  );
156
- $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'outfordelivery_order_email_heading',
157
  array(
158
  'label' => __( 'Out For Delivery shipment status email', 'woo-advanced-shipment-tracking' ),
159
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
@@ -161,14 +162,15 @@ class wcast_outfordelivery_customizer_email {
161
  )
162
  ) );
163
  // Display Shipment Provider image/thumbnail
164
- $wp_customize->add_setting( 'wcast_enable_outfordelivery_email',
165
  array(
166
  'default' => $this->defaults['wcast_enable_outfordelivery_email'],
167
  'transport' => 'postMessage',
 
168
  'sanitize_callback' => ''
169
  )
170
  );
171
- $wp_customize->add_control( 'wcast_enable_outfordelivery_email',
172
  array(
173
  'label' => __( 'Enable Out For Delivery shipment status email', 'woo-advanced-shipment-tracking' ),
174
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -198,14 +200,15 @@ class wcast_outfordelivery_customizer_email {
198
  ) );
199
 
200
  // Header Text
201
- $wp_customize->add_setting( 'wcast_outfordelivery_email_to',
202
  array(
203
  'default' => $this->defaults['wcast_outfordelivery_email_to'],
204
  'transport' => 'postMessage',
 
205
  'sanitize_callback' => ''
206
  )
207
  );
208
- $wp_customize->add_control( 'wcast_outfordelivery_email_to',
209
  array(
210
  'label' => __( 'Recipient(s)', 'woocommerce' ),
211
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
@@ -220,58 +223,61 @@ class wcast_outfordelivery_customizer_email {
220
  );
221
 
222
  // Header Text
223
- $wp_customize->add_setting( 'wcast_outfordelivery_email_subject',
224
  array(
225
  'default' => $this->defaults['wcast_outfordelivery_email_subject'],
226
  'transport' => 'postMessage',
 
227
  'sanitize_callback' => ''
228
  )
229
  );
230
- $wp_customize->add_control( 'wcast_outfordelivery_email_subject',
231
  array(
232
  'label' => __( 'Subject', 'woocommerce' ),
233
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
234
  'section' => 'customer_outfordelivery_email',
235
  'type' => 'text',
236
  'input_attrs' => array(
237
  'class' => '',
238
  'style' => '',
239
- 'placeholder' => __( 'Please enter email subject here', 'woo-advanced-shipment-tracking' ),
240
  ),
241
  )
242
  );
243
 
244
  // Header Text
245
- $wp_customize->add_setting( 'wcast_outfordelivery_email_heading',
246
  array(
247
  'default' => $this->defaults['wcast_outfordelivery_email_heading'],
248
- 'transport' => 'postMessage',
 
249
  'sanitize_callback' => ''
250
  )
251
  );
252
- $wp_customize->add_control( 'wcast_outfordelivery_email_heading',
253
  array(
254
  'label' => __( 'Email heading', 'woocommerce' ),
255
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
256
  'section' => 'customer_outfordelivery_email',
257
  'type' => 'text',
258
  'input_attrs' => array(
259
  'class' => '',
260
  'style' => '',
261
- 'placeholder' => __( 'Please enter email heading here', 'woo-advanced-shipment-tracking' ),
262
  ),
263
  )
264
  );
265
 
266
  // Display Shipment Provider image/thumbnail
267
- $wp_customize->add_setting( 'wcast_outfordelivery_show_tracking_details',
268
  array(
269
  'default' => $this->defaults['wcast_outfordelivery_show_tracking_details'],
270
  'transport' => 'refresh',
 
271
  'sanitize_callback' => ''
272
  )
273
  );
274
- $wp_customize->add_control( 'wcast_outfordelivery_show_tracking_details',
275
  array(
276
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
277
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -280,14 +286,15 @@ class wcast_outfordelivery_customizer_email {
280
  )
281
  );
282
  // Display Shipment Provider image/thumbnail
283
- $wp_customize->add_setting( 'wcast_outfordelivery_show_order_details',
284
  array(
285
  'default' => $this->defaults['wcast_outfordelivery_show_order_details'],
286
  'transport' => 'refresh',
 
287
  'sanitize_callback' => ''
288
  )
289
  );
290
- $wp_customize->add_control( 'wcast_outfordelivery_show_order_details',
291
  array(
292
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
293
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -296,14 +303,15 @@ class wcast_outfordelivery_customizer_email {
296
  )
297
  );
298
  // Display Shipment Provider image/thumbnail
299
- $wp_customize->add_setting( 'wcast_outfordelivery_show_billing_address',
300
  array(
301
  'default' => $this->defaults['wcast_outfordelivery_show_billing_address'],
302
  'transport' => 'refresh',
 
303
  'sanitize_callback' => ''
304
  )
305
  );
306
- $wp_customize->add_control( 'wcast_outfordelivery_show_billing_address',
307
  array(
308
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
309
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -313,14 +321,15 @@ class wcast_outfordelivery_customizer_email {
313
  );
314
 
315
  // Display Shipment Provider image/thumbnail
316
- $wp_customize->add_setting( 'wcast_outfordelivery_show_shipping_address',
317
  array(
318
  'default' => $this->defaults['wcast_outfordelivery_show_shipping_address'],
319
  'transport' => 'refresh',
 
320
  'sanitize_callback' => ''
321
  )
322
  );
323
- $wp_customize->add_control( 'wcast_outfordelivery_show_shipping_address',
324
  array(
325
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
326
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -329,14 +338,15 @@ class wcast_outfordelivery_customizer_email {
329
  )
330
  );
331
 
332
- $wp_customize->add_setting( 'wcast_outfordelivery_analytics_link',
333
  array(
334
  'default' => '',
335
- 'transport' => 'refresh',
 
336
  'sanitize_callback' => ''
337
  )
338
  );
339
- $wp_customize->add_control( 'wcast_outfordelivery_analytics_link',
340
  array(
341
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
342
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
@@ -351,14 +361,15 @@ class wcast_outfordelivery_customizer_email {
351
  );
352
 
353
  // Test of TinyMCE control
354
- $wp_customize->add_setting( 'wcast_outfordelivery_email_content',
355
  array(
356
  'default' => $this->defaults['wcast_outfordelivery_email_content'],
357
  'transport' => 'refresh',
 
358
  'sanitize_callback' => 'wp_kses_post'
359
  )
360
  );
361
- $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_outfordelivery_email_content',
362
  array(
363
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
364
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
@@ -366,21 +377,23 @@ class wcast_outfordelivery_customizer_email {
366
  'input_attrs' => array(
367
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
368
  'mediaButtons' => true,
 
369
  )
370
  )
371
  ) );
372
 
373
 
374
- $wp_customize->add_setting( 'wcast_outfordelivery_email_code_block',
375
  array(
376
  'default' => $this->defaults['wcast_outfordelivery_email_code_block'],
377
  'transport' => 'postMessage',
 
378
  'sanitize_callback' => ''
379
  )
380
  );
381
- $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_outfordelivery_email_code_block',
382
  array(
383
- 'label' => __( 'Available placeholders', 'woo-advanced-shipment-tracking' ),
384
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
385
  'section' => 'customer_outfordelivery_email',
386
  )
@@ -411,16 +424,23 @@ class wcast_outfordelivery_customizer_email {
411
  $wc_emails = WC_Emails::instance();
412
  $emails = $wc_emails->get_emails();
413
  $preview_id = get_theme_mod('wcast_outfordelivery_email_preview_order_id');
 
 
 
414
 
415
- $email_heading = get_theme_mod('wcast_outfordelivery_email_heading');
416
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
417
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
418
 
419
- $email_content = get_theme_mod('wcast_outfordelivery_email_content');
420
- $wcast_show_tracking_details = get_theme_mod('wcast_outfordelivery_show_tracking_details');
421
- $wcast_show_order_details = get_theme_mod('wcast_outfordelivery_show_order_details');
422
- $wcast_show_billing_address = get_theme_mod('wcast_outfordelivery_show_billing_address');
423
- $wcast_show_shipping_address = get_theme_mod('wcast_outfordelivery_show_shipping_address');
 
 
 
 
 
424
  $sent_to_admin = false;
425
  $plain_text = false;
426
  $email = '';
@@ -432,6 +452,13 @@ class wcast_outfordelivery_customizer_email {
432
  }
433
 
434
  $order = wc_get_order( $preview_id );
 
 
 
 
 
 
 
435
  $mailer = WC()->mailer();
436
 
437
  // get the preview email subject
@@ -440,7 +467,7 @@ class wcast_outfordelivery_customizer_email {
440
 
441
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
442
 
443
- $wcast_outfordelivery_analytics_link = get_theme_mod('wcast_outfordelivery_analytics_link');
444
 
445
  if($wcast_outfordelivery_analytics_link){
446
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
@@ -452,7 +479,9 @@ class wcast_outfordelivery_customizer_email {
452
  if($wcast_show_tracking_details == 1){
453
  ob_start();
454
  wc_get_template( 'emails/tracking-info.php', array(
455
- 'tracking_items' => $wast->get_tracking_items( $preview_id, true )
 
 
456
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
457
  $message .= ob_get_clean();
458
  }
@@ -512,11 +541,14 @@ class wcast_outfordelivery_customizer_email {
512
  * code for append analytics link in email content
513
  */
514
  public function _appendCampaignToString($match){
 
 
 
515
  $url = $match[2];
516
  if (strpos($url, '?') === false) {
517
  $url .= '?';
518
  }
519
- $url .= get_theme_mod('wcast_outfordelivery_analytics_link');
520
  return $match[1].$url.$match[3];
521
  }
522
  }
126
  'wcast_outfordelivery_email_heading' => __( 'Out For Delivery', 'woo-advanced-shipment-tracking' ),
127
  'wcast_outfordelivery_email_content' => __( "Hi there. we thought you'd like to know that your recent order from {site_title} is out for delivery.", 'woo-advanced-shipment-tracking' ),
128
  'wcast_enable_outfordelivery_email' => '',
129
+ 'wcast_outfordelivery_email_to' => '{customer_email}',
130
  'wcast_outfordelivery_show_tracking_details' => '',
131
  'wcast_outfordelivery_show_order_details' => '',
132
  'wcast_outfordelivery_show_billing_address' => '',
146
  */
147
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
148
 
149
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[outfordelivery_order_email_heading]',
150
  array(
151
  'default' => '',
152
  'transport' => 'postMessage',
153
+ 'type' => 'option',
154
  'sanitize_callback' => ''
155
  )
156
  );
157
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'wcast_outfordelivery_email_settings[outfordelivery_order_email_heading]',
158
  array(
159
  'label' => __( 'Out For Delivery shipment status email', 'woo-advanced-shipment-tracking' ),
160
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
162
  )
163
  ) );
164
  // Display Shipment Provider image/thumbnail
165
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_enable_outfordelivery_email]',
166
  array(
167
  'default' => $this->defaults['wcast_enable_outfordelivery_email'],
168
  'transport' => 'postMessage',
169
+ 'type' => 'option',
170
  'sanitize_callback' => ''
171
  )
172
  );
173
+ $wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_enable_outfordelivery_email]',
174
  array(
175
  'label' => __( 'Enable Out For Delivery shipment status email', 'woo-advanced-shipment-tracking' ),
176
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
200
  ) );
201
 
202
  // Header Text
203
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_email_to]',
204
  array(
205
  'default' => $this->defaults['wcast_outfordelivery_email_to'],
206
  'transport' => 'postMessage',
207
+ 'type' => 'option',
208
  'sanitize_callback' => ''
209
  )
210
  );
211
+ $wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_email_to]',
212
  array(
213
  'label' => __( 'Recipient(s)', 'woocommerce' ),
214
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
223
  );
224
 
225
  // Header Text
226
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_email_subject]',
227
  array(
228
  'default' => $this->defaults['wcast_outfordelivery_email_subject'],
229
  'transport' => 'postMessage',
230
+ 'type' => 'option',
231
  'sanitize_callback' => ''
232
  )
233
  );
234
+ $wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_email_subject]',
235
  array(
236
  'label' => __( 'Subject', 'woocommerce' ),
237
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
238
  'section' => 'customer_outfordelivery_email',
239
  'type' => 'text',
240
  'input_attrs' => array(
241
  'class' => '',
242
  'style' => '',
243
+ 'placeholder' => __( $this->defaults['wcast_outfordelivery_email_subject'], 'woo-advanced-shipment-tracking' ),
244
  ),
245
  )
246
  );
247
 
248
  // Header Text
249
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_email_heading]',
250
  array(
251
  'default' => $this->defaults['wcast_outfordelivery_email_heading'],
252
+ 'transport' => 'refresh',
253
+ 'type' => 'option',
254
  'sanitize_callback' => ''
255
  )
256
  );
257
+ $wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_email_heading]',
258
  array(
259
  'label' => __( 'Email heading', 'woocommerce' ),
260
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
261
  'section' => 'customer_outfordelivery_email',
262
  'type' => 'text',
263
  'input_attrs' => array(
264
  'class' => '',
265
  'style' => '',
266
+ 'placeholder' => __( $this->defaults['wcast_outfordelivery_email_heading'], 'woo-advanced-shipment-tracking' ),
267
  ),
268
  )
269
  );
270
 
271
  // Display Shipment Provider image/thumbnail
272
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_tracking_details]',
273
  array(
274
  'default' => $this->defaults['wcast_outfordelivery_show_tracking_details'],
275
  'transport' => 'refresh',
276
+ 'type' => 'option',
277
  'sanitize_callback' => ''
278
  )
279
  );
280
+ $wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_tracking_details]',
281
  array(
282
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
283
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
286
  )
287
  );
288
  // Display Shipment Provider image/thumbnail
289
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_order_details]',
290
  array(
291
  'default' => $this->defaults['wcast_outfordelivery_show_order_details'],
292
  'transport' => 'refresh',
293
+ 'type' => 'option',
294
  'sanitize_callback' => ''
295
  )
296
  );
297
+ $wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_order_details]',
298
  array(
299
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
300
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
303
  )
304
  );
305
  // Display Shipment Provider image/thumbnail
306
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_billing_address]',
307
  array(
308
  'default' => $this->defaults['wcast_outfordelivery_show_billing_address'],
309
  'transport' => 'refresh',
310
+ 'type' => 'option',
311
  'sanitize_callback' => ''
312
  )
313
  );
314
+ $wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_billing_address]',
315
  array(
316
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
317
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
321
  );
322
 
323
  // Display Shipment Provider image/thumbnail
324
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_shipping_address]',
325
  array(
326
  'default' => $this->defaults['wcast_outfordelivery_show_shipping_address'],
327
  'transport' => 'refresh',
328
+ 'type' => 'option',
329
  'sanitize_callback' => ''
330
  )
331
  );
332
+ $wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_shipping_address]',
333
  array(
334
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
335
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
338
  )
339
  );
340
 
341
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_analytics_link]',
342
  array(
343
  'default' => '',
344
+ 'transport' => 'refresh',
345
+ 'type' => 'option',
346
  'sanitize_callback' => ''
347
  )
348
  );
349
+ $wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_analytics_link]',
350
  array(
351
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
352
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
361
  );
362
 
363
  // Test of TinyMCE control
364
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_email_content]',
365
  array(
366
  'default' => $this->defaults['wcast_outfordelivery_email_content'],
367
  'transport' => 'refresh',
368
+ 'type' => 'option',
369
  'sanitize_callback' => 'wp_kses_post'
370
  )
371
  );
372
+ $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_outfordelivery_email_settings[wcast_outfordelivery_email_content]',
373
  array(
374
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
375
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
377
  'input_attrs' => array(
378
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
379
  'mediaButtons' => true,
380
+ 'placeholder' => __( $this->defaults['wcast_outfordelivery_email_content'], 'woo-advanced-shipment-tracking' ),
381
  )
382
  )
383
  ) );
384
 
385
 
386
+ $wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_email_code_block]',
387
  array(
388
  'default' => $this->defaults['wcast_outfordelivery_email_code_block'],
389
  'transport' => 'postMessage',
390
+ 'type' => 'option',
391
  'sanitize_callback' => ''
392
  )
393
  );
394
+ $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_outfordelivery_email_settings[wcast_outfordelivery_email_code_block]',
395
  array(
396
+ 'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
397
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
398
  'section' => 'customer_outfordelivery_email',
399
  )
424
  $wc_emails = WC_Emails::instance();
425
  $emails = $wc_emails->get_emails();
426
  $preview_id = get_theme_mod('wcast_outfordelivery_email_preview_order_id');
427
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
428
+
429
+ $email_heading = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_email_heading',$this->defaults['wcast_outfordelivery_email_heading']);
430
 
 
431
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
432
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
433
 
434
+ $email_content = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_email_content',$this->defaults['wcast_outfordelivery_email_content']);
435
+
436
+ $wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_show_tracking_details',$this->defaults['wcast_outfordelivery_show_tracking_details']);
437
+
438
+ $wcast_show_order_details = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_show_order_details',$this->defaults['wcast_outfordelivery_show_order_details']);
439
+
440
+ $wcast_show_billing_address = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_show_billing_address',$this->defaults['wcast_outfordelivery_show_billing_address']);
441
+
442
+ $wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_show_shipping_address',$this->defaults['wcast_outfordelivery_show_shipping_address']);
443
+
444
  $sent_to_admin = false;
445
  $plain_text = false;
446
  $email = '';
452
  }
453
 
454
  $order = wc_get_order( $preview_id );
455
+
456
+ if(!$order){
457
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
458
+ echo $content;
459
+ return;
460
+ }
461
+
462
  $mailer = WC()->mailer();
463
 
464
  // get the preview email subject
467
 
468
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
469
 
470
+ $wcast_outfordelivery_analytics_link = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_analytics_link','');
471
 
472
  if($wcast_outfordelivery_analytics_link){
473
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
479
  if($wcast_show_tracking_details == 1){
480
  ob_start();
481
  wc_get_template( 'emails/tracking-info.php', array(
482
+ 'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
483
+ 'order_id' => $preview_id,
484
+ 'new_status' => 'out_for_delivery',
485
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
486
  $message .= ob_get_clean();
487
  }
541
  * code for append analytics link in email content
542
  */
543
  public function _appendCampaignToString($match){
544
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
545
+ $wcast_outfordelivery_analytics_link = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_analytics_link','');
546
+
547
  $url = $match[2];
548
  if (strpos($url, '?') === false) {
549
  $url .= '?';
550
  }
551
+ $url .= $wcast_outfordelivery_analytics_link;
552
  return $match[1].$url.$match[3];
553
  }
554
  }
includes/customizer/class-wc-partial-shipped-email-customizer.php CHANGED
@@ -113,9 +113,9 @@ class wcast_partial_shipped_customizer_email {
113
  */
114
  public function wcast_generate_defaults() {
115
  $customizer_defaults = array(
116
- 'wcast_partial_shipped_email_subject' => __( 'Your {site_title} order is now partial shipped', 'woo-advanced-shipment-tracking' ),
117
- 'wcast_partial_shipped_email_heading' => __( 'Thanks for shopping with us', 'woocommerce' ),
118
- 'wcast_partial_shipped_email_content' => __( "Hi there. we thought you'd like to know that your recent order from {site_title} has been Partial Shipped.", 'woo-advanced-shipment-tracking' ),
119
  'wcast_enable_partial_shipped_email' => 'no',
120
  );
121
 
@@ -140,7 +140,7 @@ class wcast_partial_shipped_customizer_email {
140
  );
141
  $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'partial_shipped_order_email_heading',
142
  array(
143
- 'label' => __( 'Partial Shipped status email', 'woo-advanced-shipment-tracking' ),
144
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
145
  'section' => 'customer_partial_shipped_email'
146
  )
@@ -156,7 +156,7 @@ class wcast_partial_shipped_customizer_email {
156
  );
157
  $wp_customize->add_control( 'customizer_partial_shipped_order_settings_enabled',
158
  array(
159
- 'label' => __( 'Enable Partial Shipped order status email', 'woo-advanced-shipment-tracking' ),
160
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
161
  'section' => 'customer_partial_shipped_email',
162
  'type' => 'checkbox',
@@ -197,13 +197,13 @@ class wcast_partial_shipped_customizer_email {
197
  $wp_customize->add_control( 'woocommerce_customer_partial_shipped_order_settings[subject]',
198
  array(
199
  'label' => __( 'Subject', 'woocommerce' ),
200
- 'description' => esc_html__( 'Available variables: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
201
  'section' => 'customer_partial_shipped_email',
202
  'type' => 'text',
203
  'input_attrs' => array(
204
  'class' => '',
205
  'style' => '',
206
- 'placeholder' => __( 'Please enter email subject here', 'woo-advanced-shipment-tracking' ),
207
  ),
208
  )
209
  );
@@ -220,34 +220,36 @@ class wcast_partial_shipped_customizer_email {
220
  $wp_customize->add_control( 'woocommerce_customer_partial_shipped_order_settings[heading]',
221
  array(
222
  'label' => __( 'Email heading', 'woocommerce' ),
223
- 'description' => esc_html__( 'Available variables: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
224
  'section' => 'customer_partial_shipped_email',
225
  'type' => 'text',
226
  'input_attrs' => array(
227
  'class' => '',
228
  'style' => '',
229
- 'placeholder' => __( 'Please enter email heading here', 'woo-advanced-shipment-tracking' ),
230
  ),
231
  )
232
  );
233
 
234
 
235
  // Test of TinyMCE control
236
- $wp_customize->add_setting( 'wcast_partial_shipped_email_content',
237
  array(
238
  'default' => $this->defaults['wcast_partial_shipped_email_content'],
239
  'transport' => 'refresh',
240
- 'sanitize_callback' => 'wp_kses_post'
 
241
  )
242
  );
243
- $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_partial_shipped_email_content',
244
  array(
245
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
246
- 'description' => __( 'available variables: {site_title}, {customer_email}, {customer_first_name}, {customer_last_name}, {customer_username}, {order_number}', 'woo-advanced-shipment-tracking' ),
247
  'section' => 'customer_partial_shipped_email',
248
  'input_attrs' => array(
249
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
250
  'mediaButtons' => true,
 
251
  )
252
  )
253
  ) );
@@ -261,7 +263,7 @@ class wcast_partial_shipped_customizer_email {
261
  );
262
  $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_partial_shipped_code_block',
263
  array(
264
- 'label' => __( 'Available placeholders', 'woo-advanced-shipment-tracking' ),
265
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}</code>',
266
  'section' => 'customer_partial_shipped_email',
267
  )
@@ -299,6 +301,14 @@ class wcast_partial_shipped_customizer_email {
299
  return;
300
  }
301
 
 
 
 
 
 
 
 
 
302
  $email_type = 'WC_Email_Customer_Partial_Shipped_Order';
303
 
304
  if ( false === $email_type ) {
113
  */
114
  public function wcast_generate_defaults() {
115
  $customizer_defaults = array(
116
+ 'wcast_partial_shipped_email_subject' => __( 'Your {site_title} order is now partially shipped', 'woo-advanced-shipment-tracking' ),
117
+ 'wcast_partial_shipped_email_heading' => __( 'Your Order is Partially Shipped', 'woocommerce' ),
118
+ 'wcast_partial_shipped_email_content' => __( "Hi there. we thought you'd like to know that your recent order from {site_title} has been partially shipped.", 'woo-advanced-shipment-tracking' ),
119
  'wcast_enable_partial_shipped_email' => 'no',
120
  );
121
 
140
  );
141
  $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'partial_shipped_order_email_heading',
142
  array(
143
+ 'label' => __( 'Partially Shipped status email', 'woo-advanced-shipment-tracking' ),
144
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
145
  'section' => 'customer_partial_shipped_email'
146
  )
156
  );
157
  $wp_customize->add_control( 'customizer_partial_shipped_order_settings_enabled',
158
  array(
159
+ 'label' => __( 'Enable Partially Shipped order status email', 'woo-advanced-shipment-tracking' ),
160
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
161
  'section' => 'customer_partial_shipped_email',
162
  'type' => 'checkbox',
197
  $wp_customize->add_control( 'woocommerce_customer_partial_shipped_order_settings[subject]',
198
  array(
199
  'label' => __( 'Subject', 'woocommerce' ),
200
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
201
  'section' => 'customer_partial_shipped_email',
202
  'type' => 'text',
203
  'input_attrs' => array(
204
  'class' => '',
205
  'style' => '',
206
+ 'placeholder' => __( $this->defaults['wcast_partial_shipped_email_subject'], 'woo-advanced-shipment-tracking' ),
207
  ),
208
  )
209
  );
220
  $wp_customize->add_control( 'woocommerce_customer_partial_shipped_order_settings[heading]',
221
  array(
222
  'label' => __( 'Email heading', 'woocommerce' ),
223
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
224
  'section' => 'customer_partial_shipped_email',
225
  'type' => 'text',
226
  'input_attrs' => array(
227
  'class' => '',
228
  'style' => '',
229
+ 'placeholder' => __( $this->defaults['wcast_partial_shipped_email_heading'], 'woo-advanced-shipment-tracking' ),
230
  ),
231
  )
232
  );
233
 
234
 
235
  // Test of TinyMCE control
236
+ $wp_customize->add_setting( 'woocommerce_customer_partial_shipped_order_settings[wcast_partial_shipped_email_content]',
237
  array(
238
  'default' => $this->defaults['wcast_partial_shipped_email_content'],
239
  'transport' => 'refresh',
240
+ 'sanitize_callback' => 'wp_kses_post',
241
+ 'type' => 'option',
242
  )
243
  );
244
+ $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'woocommerce_customer_partial_shipped_order_settings[wcast_partial_shipped_email_content]',
245
  array(
246
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
247
+ 'description' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {customer_email}, {customer_first_name}, {customer_last_name}, {customer_username}, {order_number}',
248
  'section' => 'customer_partial_shipped_email',
249
  'input_attrs' => array(
250
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
251
  'mediaButtons' => true,
252
+ 'placeholder' => __( $this->defaults['wcast_partial_shipped_email_content'], 'woo-advanced-shipment-tracking' ),
253
  )
254
  )
255
  ) );
263
  );
264
  $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_partial_shipped_code_block',
265
  array(
266
+ 'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
267
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}</code>',
268
  'section' => 'customer_partial_shipped_email',
269
  )
301
  return;
302
  }
303
 
304
+ $order = wc_get_order( $preview_id );
305
+
306
+ if(!$order){
307
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
308
+ echo $content;
309
+ return;
310
+ }
311
+
312
  $email_type = 'WC_Email_Customer_Partial_Shipped_Order';
313
 
314
  if ( false === $email_type ) {
includes/customizer/class-wc-returntosender-email-customizer.php CHANGED
@@ -144,14 +144,15 @@ class wcast_returntosender_customizer_email {
144
  */
145
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
146
 
147
- $wp_customize->add_setting( 'returntosender_order_email_heading',
148
  array(
149
  'default' => '',
150
  'transport' => 'postMessage',
 
151
  'sanitize_callback' => ''
152
  )
153
  );
154
- $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'returntosender_order_email_heading',
155
  array(
156
  'label' => __( 'Return To Sender shipment status email', 'woo-advanced-shipment-tracking' ),
157
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
@@ -159,14 +160,15 @@ class wcast_returntosender_customizer_email {
159
  )
160
  ) );
161
  // Display Shipment Provider image/thumbnail
162
- $wp_customize->add_setting( 'wcast_enable_returntosender_email',
163
  array(
164
  'default' => $this->defaults['wcast_enable_returntosender_email'],
165
  'transport' => 'postMessage',
 
166
  'sanitize_callback' => ''
167
  )
168
  );
169
- $wp_customize->add_control( 'wcast_enable_returntosender_email',
170
  array(
171
  'label' => __( 'Enable Return To Sender shipment status email', 'woo-advanced-shipment-tracking' ),
172
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -196,14 +198,15 @@ class wcast_returntosender_customizer_email {
196
  ) );
197
 
198
  // Header Text
199
- $wp_customize->add_setting( 'wcast_returntosender_email_to',
200
  array(
201
  'default' => $this->defaults['wcast_returntosender_email_to'],
202
  'transport' => 'postMessage',
 
203
  'sanitize_callback' => ''
204
  )
205
  );
206
- $wp_customize->add_control( 'wcast_returntosender_email_to',
207
  array(
208
  'label' => __( 'Recipient(s)', 'woocommerce' ),
209
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
@@ -218,58 +221,61 @@ class wcast_returntosender_customizer_email {
218
  );
219
 
220
  // Header Text
221
- $wp_customize->add_setting( 'wcast_returntosender_email_subject',
222
  array(
223
  'default' => $this->defaults['wcast_returntosender_email_subject'],
224
  'transport' => 'postMessage',
 
225
  'sanitize_callback' => ''
226
  )
227
  );
228
- $wp_customize->add_control( 'wcast_returntosender_email_subject',
229
  array(
230
  'label' => __( 'Subject', 'woocommerce' ),
231
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
232
  'section' => 'customer_returntosender_email',
233
  'type' => 'text',
234
  'input_attrs' => array(
235
  'class' => '',
236
  'style' => '',
237
- 'placeholder' => __( 'Please enter email subject here', 'woo-advanced-shipment-tracking' ),
238
  ),
239
  )
240
  );
241
 
242
  // Header Text
243
- $wp_customize->add_setting( 'wcast_returntosender_email_heading',
244
  array(
245
  'default' => $this->defaults['wcast_returntosender_email_heading'],
246
- 'transport' => 'postMessage',
 
247
  'sanitize_callback' => ''
248
  )
249
  );
250
- $wp_customize->add_control( 'wcast_returntosender_email_heading',
251
  array(
252
  'label' => __( 'Email heading', 'woocommerce' ),
253
- 'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
254
  'section' => 'customer_returntosender_email',
255
  'type' => 'text',
256
  'input_attrs' => array(
257
  'class' => '',
258
  'style' => '',
259
- 'placeholder' => __( 'Please enter email heading here', 'woo-advanced-shipment-tracking' ),
260
  ),
261
  )
262
  );
263
 
264
  // Display Shipment Provider image/thumbnail
265
- $wp_customize->add_setting( 'wcast_returntosender_show_tracking_details',
266
  array(
267
  'default' => $this->defaults['wcast_returntosender_show_tracking_details'],
268
  'transport' => 'refresh',
 
269
  'sanitize_callback' => ''
270
  )
271
  );
272
- $wp_customize->add_control( 'wcast_returntosender_show_tracking_details',
273
  array(
274
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
275
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -278,14 +284,15 @@ class wcast_returntosender_customizer_email {
278
  )
279
  );
280
  // Display Shipment Provider image/thumbnail
281
- $wp_customize->add_setting( 'wcast_returntosender_show_order_details',
282
  array(
283
  'default' => $this->defaults['wcast_returntosender_show_order_details'],
284
  'transport' => 'refresh',
 
285
  'sanitize_callback' => ''
286
  )
287
  );
288
- $wp_customize->add_control( 'wcast_returntosender_show_order_details',
289
  array(
290
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
291
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -294,14 +301,15 @@ class wcast_returntosender_customizer_email {
294
  )
295
  );
296
  // Display Shipment Provider image/thumbnail
297
- $wp_customize->add_setting( 'wcast_returntosender_show_billing_address',
298
  array(
299
  'default' => $this->defaults['wcast_returntosender_show_billing_address'],
300
  'transport' => 'refresh',
 
301
  'sanitize_callback' => ''
302
  )
303
  );
304
- $wp_customize->add_control( 'wcast_returntosender_show_billing_address',
305
  array(
306
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
307
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -311,14 +319,15 @@ class wcast_returntosender_customizer_email {
311
  );
312
 
313
  // Display Shipment Provider image/thumbnail
314
- $wp_customize->add_setting( 'wcast_returntosender_show_shipping_address',
315
  array(
316
  'default' => $this->defaults['wcast_returntosender_show_shipping_address'],
317
  'transport' => 'refresh',
 
318
  'sanitize_callback' => ''
319
  )
320
  );
321
- $wp_customize->add_control( 'wcast_returntosender_show_shipping_address',
322
  array(
323
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
324
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
@@ -327,14 +336,15 @@ class wcast_returntosender_customizer_email {
327
  )
328
  );
329
 
330
- $wp_customize->add_setting( 'wcast_returntosender_analytics_link',
331
  array(
332
  'default' => '',
333
- 'transport' => 'refresh',
 
334
  'sanitize_callback' => ''
335
  )
336
  );
337
- $wp_customize->add_control( 'wcast_returntosender_analytics_link',
338
  array(
339
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
340
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
@@ -349,14 +359,15 @@ class wcast_returntosender_customizer_email {
349
  );
350
 
351
  // Test of TinyMCE control
352
- $wp_customize->add_setting( 'wcast_returntosender_email_content',
353
  array(
354
  'default' => $this->defaults['wcast_returntosender_email_content'],
355
  'transport' => 'refresh',
 
356
  'sanitize_callback' => 'wp_kses_post'
357
  )
358
  );
359
- $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_returntosender_email_content',
360
  array(
361
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
362
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
@@ -364,6 +375,7 @@ class wcast_returntosender_customizer_email {
364
  'input_attrs' => array(
365
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
366
  'mediaButtons' => true,
 
367
  )
368
  )
369
  ) );
@@ -378,7 +390,7 @@ class wcast_returntosender_customizer_email {
378
  );
379
  $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_returntosender_email_code_block',
380
  array(
381
- 'label' => __( 'Available placeholders', 'woo-advanced-shipment-tracking' ),
382
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
383
  'section' => 'customer_returntosender_email',
384
  )
@@ -409,16 +421,23 @@ class wcast_returntosender_customizer_email {
409
  $wc_emails = WC_Emails::instance();
410
  $emails = $wc_emails->get_emails();
411
  $preview_id = get_theme_mod('wcast_returntosender_email_preview_order_id');
412
-
413
- $email_heading = get_theme_mod('wcast_returntosender_email_heading');
 
 
414
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
415
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
416
 
417
- $email_content = get_theme_mod('wcast_returntosender_email_content');
418
- $wcast_show_tracking_details = get_theme_mod('wcast_returntosender_show_tracking_details');
419
- $wcast_show_order_details = get_theme_mod('wcast_returntosender_show_order_details');
420
- $wcast_show_billing_address = get_theme_mod('wcast_returntosender_show_billing_address');
421
- $wcast_show_shipping_address = get_theme_mod('wcast_returntosender_show_shipping_address');
 
 
 
 
 
422
  $sent_to_admin = false;
423
  $plain_text = false;
424
  $email = '';
@@ -430,6 +449,13 @@ class wcast_returntosender_customizer_email {
430
  }
431
 
432
  $order = wc_get_order( $preview_id );
 
 
 
 
 
 
 
433
  $mailer = WC()->mailer();
434
 
435
  // get the preview email subject
@@ -438,7 +464,7 @@ class wcast_returntosender_customizer_email {
438
 
439
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
440
 
441
- $wcast_returntosender_analytics_link = get_theme_mod('wcast_returntosender_analytics_link');
442
 
443
  if($wcast_returntosender_analytics_link){
444
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
@@ -450,7 +476,9 @@ class wcast_returntosender_customizer_email {
450
  if($wcast_show_tracking_details == 1){
451
  ob_start();
452
  wc_get_template( 'emails/tracking-info.php', array(
453
- 'tracking_items' => $wast->get_tracking_items( $preview_id, true )
 
 
454
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
455
  $message .= ob_get_clean();
456
  }
@@ -510,11 +538,14 @@ class wcast_returntosender_customizer_email {
510
  * code for append analytics link in email content
511
  */
512
  public function _appendCampaignToString($match){
 
 
 
513
  $url = $match[2];
514
  if (strpos($url, '?') === false) {
515
  $url .= '?';
516
  }
517
- $url .= get_theme_mod('wcast_returntosender_analytics_link');
518
  return $match[1].$url.$match[3];
519
  }
520
  }
144
  */
145
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
146
 
147
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[returntosender_order_email_heading]',
148
  array(
149
  'default' => '',
150
  'transport' => 'postMessage',
151
+ 'type' => 'option',
152
  'sanitize_callback' => ''
153
  )
154
  );
155
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'wcast_returntosender_email_settings[returntosender_order_email_heading]',
156
  array(
157
  'label' => __( 'Return To Sender shipment status email', 'woo-advanced-shipment-tracking' ),
158
  'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
160
  )
161
  ) );
162
  // Display Shipment Provider image/thumbnail
163
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_enable_returntosender_email]',
164
  array(
165
  'default' => $this->defaults['wcast_enable_returntosender_email'],
166
  'transport' => 'postMessage',
167
+ 'type' => 'option',
168
  'sanitize_callback' => ''
169
  )
170
  );
171
+ $wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_enable_returntosender_email]',
172
  array(
173
  'label' => __( 'Enable Return To Sender shipment status email', 'woo-advanced-shipment-tracking' ),
174
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
198
  ) );
199
 
200
  // Header Text
201
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_email_to]',
202
  array(
203
  'default' => $this->defaults['wcast_returntosender_email_to'],
204
  'transport' => 'postMessage',
205
+ 'type' => 'option',
206
  'sanitize_callback' => ''
207
  )
208
  );
209
+ $wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_email_to]',
210
  array(
211
  'label' => __( 'Recipient(s)', 'woocommerce' ),
212
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
221
  );
222
 
223
  // Header Text
224
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_email_subject]',
225
  array(
226
  'default' => $this->defaults['wcast_returntosender_email_subject'],
227
  'transport' => 'postMessage',
228
+ 'type' => 'option',
229
  'sanitize_callback' => ''
230
  )
231
  );
232
+ $wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_email_subject]',
233
  array(
234
  'label' => __( 'Subject', 'woocommerce' ),
235
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
236
  'section' => 'customer_returntosender_email',
237
  'type' => 'text',
238
  'input_attrs' => array(
239
  'class' => '',
240
  'style' => '',
241
+ 'placeholder' => __( $this->defaults['wcast_returntosender_email_subject'], 'woo-advanced-shipment-tracking' ),
242
  ),
243
  )
244
  );
245
 
246
  // Header Text
247
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_email_heading]',
248
  array(
249
  'default' => $this->defaults['wcast_returntosender_email_heading'],
250
+ 'transport' => 'refresh',
251
+ 'type' => 'option',
252
  'sanitize_callback' => ''
253
  )
254
  );
255
+ $wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_email_heading]',
256
  array(
257
  'label' => __( 'Email heading', 'woocommerce' ),
258
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
259
  'section' => 'customer_returntosender_email',
260
  'type' => 'text',
261
  'input_attrs' => array(
262
  'class' => '',
263
  'style' => '',
264
+ 'placeholder' => __( $this->defaults['wcast_returntosender_email_heading'], 'woo-advanced-shipment-tracking' ),
265
  ),
266
  )
267
  );
268
 
269
  // Display Shipment Provider image/thumbnail
270
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_show_tracking_details]',
271
  array(
272
  'default' => $this->defaults['wcast_returntosender_show_tracking_details'],
273
  'transport' => 'refresh',
274
+ 'type' => 'option',
275
  'sanitize_callback' => ''
276
  )
277
  );
278
+ $wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_show_tracking_details]',
279
  array(
280
  'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
281
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
284
  )
285
  );
286
  // Display Shipment Provider image/thumbnail
287
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_show_order_details]',
288
  array(
289
  'default' => $this->defaults['wcast_returntosender_show_order_details'],
290
  'transport' => 'refresh',
291
+ 'type' => 'option',
292
  'sanitize_callback' => ''
293
  )
294
  );
295
+ $wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_show_order_details]',
296
  array(
297
  'label' => __( 'Show order details', 'woo-advanced-shipment-tracking' ),
298
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
301
  )
302
  );
303
  // Display Shipment Provider image/thumbnail
304
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_show_billing_address]',
305
  array(
306
  'default' => $this->defaults['wcast_returntosender_show_billing_address'],
307
  'transport' => 'refresh',
308
+ 'type' => 'option',
309
  'sanitize_callback' => ''
310
  )
311
  );
312
+ $wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_show_billing_address]',
313
  array(
314
  'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
315
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
319
  );
320
 
321
  // Display Shipment Provider image/thumbnail
322
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_show_shipping_address]',
323
  array(
324
  'default' => $this->defaults['wcast_returntosender_show_shipping_address'],
325
  'transport' => 'refresh',
326
+ 'type' => 'option',
327
  'sanitize_callback' => ''
328
  )
329
  );
330
+ $wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_show_shipping_address]',
331
  array(
332
  'label' => __( 'Show shipping address', 'woo-advanced-shipment-tracking' ),
333
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
336
  )
337
  );
338
 
339
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_analytics_link]',
340
  array(
341
  'default' => '',
342
+ 'transport' => 'refresh',
343
+ 'type' => 'option',
344
  'sanitize_callback' => ''
345
  )
346
  );
347
+ $wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_analytics_link]',
348
  array(
349
  'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
350
  'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
359
  );
360
 
361
  // Test of TinyMCE control
362
+ $wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_email_content]',
363
  array(
364
  'default' => $this->defaults['wcast_returntosender_email_content'],
365
  'transport' => 'refresh',
366
+ 'type' => 'option',
367
  'sanitize_callback' => 'wp_kses_post'
368
  )
369
  );
370
+ $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'wcast_returntosender_email_settings[wcast_returntosender_email_content]',
371
  array(
372
  'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
373
  'description' => __( '', 'woo-advanced-shipment-tracking' ),
375
  'input_attrs' => array(
376
  'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
377
  'mediaButtons' => true,
378
+ 'placeholder' => __( $this->defaults['wcast_returntosender_email_content'], 'woo-advanced-shipment-tracking' ),
379
  )
380
  )
381
  ) );
390
  );
391
  $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_returntosender_email_code_block',
392
  array(
393
+ 'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
394
  'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
395
  'section' => 'customer_returntosender_email',
396
  )
421
  $wc_emails = WC_Emails::instance();
422
  $emails = $wc_emails->get_emails();
423
  $preview_id = get_theme_mod('wcast_returntosender_email_preview_order_id');
424
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
425
+
426
+ $email_heading = $ast->get_option_value_from_array('wcast_returntosender_email_settings','wcast_returntosender_email_heading',$this->defaults['wcast_returntosender_email_heading']);
427
+
428
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
429
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
430
 
431
+ $email_content = $ast->get_option_value_from_array('wcast_returntosender_email_settings','wcast_returntosender_email_content',$this->defaults['wcast_returntosender_email_content']);
432
+
433
+ $wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_returntosender_email_settings','wcast_returntosender_show_tracking_details',$this->defaults['wcast_returntosender_show_tracking_details']);
434
+
435
+ $wcast_show_order_details = $ast->get_option_value_from_array('wcast_returntosender_email_settings','wcast_returntosender_show_order_details',$this->defaults['wcast_returntosender_show_order_details']);
436
+
437
+ $wcast_show_billing_address = $ast->get_option_value_from_array('wcast_returntosender_email_settings','wcast_returntosender_show_billing_address',$this->defaults['wcast_returntosender_show_billing_address']);
438
+
439
+ $wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_returntosender_email_settings','wcast_returntosender_show_shipping_address',$this->defaults['wcast_returntosender_show_shipping_address']);
440
+
441
  $sent_to_admin = false;
442
  $plain_text = false;
443
  $email = '';
449
  }
450
 
451
  $order = wc_get_order( $preview_id );
452
+
453
+ if(!$order){
454
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
455
+ echo $content;
456
+ return;
457
+ }
458
+
459
  $mailer = WC()->mailer();
460
 
461
  // get the preview email subject
464
 
465
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$preview_id,$order);
466
 
467
+ $wcast_returntosender_analytics_link = $ast->get_option_value_from_array('wcast_returntosender_email_settings','wcast_returntosender_analytics_link','');
468
 
469
  if($wcast_returntosender_analytics_link){
470
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
476
  if($wcast_show_tracking_details == 1){
477
  ob_start();
478
  wc_get_template( 'emails/tracking-info.php', array(
479
+ 'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
480
+ 'order_id' => $preview_id,
481
+ 'new_status' => 'return_to_sender',
482
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
483
  $message .= ob_get_clean();
484
  }
538
  * code for append analytics link in email content
539
  */
540
  public function _appendCampaignToString($match){
541
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
542
+ $wcast_returntosender_analytics_link = $ast->get_option_value_from_array('wcast_returntosender_email_settings','wcast_returntosender_analytics_link','');
543
+
544
  $url = $match[2];
545
  if (strpos($url, '?') === false) {
546
  $url .= '?';
547
  }
548
+ $url .= $wcast_returntosender_analytics_link;
549
  return $match[1].$url.$match[3];
550
  }
551
  }
includes/customizer/class-wc-tracking-info-customizer.php CHANGED
@@ -125,13 +125,13 @@ class wcast_initialise_customizer_settings {
125
  'remove_date_from_tracking' => '',
126
  'header_text_change' => '',
127
  'additional_header_text' => '',
128
- 'table_bg_color' => '',
129
- 'table_border_color' => '',
130
- 'table_border_size' => '',
131
  'table_header_font_size' => '',
132
  'table_header_font_color' => '',
133
- 'table_content_font_size' => '',
134
- 'table_content_font_color' => '',
135
  'tracking_link_font_color' => '',
136
  'tracking_link_bg_color' => '',
137
  'wcast_preview_order_id' => 'mockup',
@@ -146,6 +146,12 @@ class wcast_initialise_customizer_settings {
146
  'shipped_date_header_text' => __( 'Shipped Date', 'woo-advanced-shipment-tracking' ),
147
  'track_header_text' => __( 'Track', 'woo-advanced-shipment-tracking' ),
148
  'display_tracking_info_at' => 'before_order',
 
 
 
 
 
 
149
  );
150
 
151
  return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
@@ -176,7 +182,7 @@ class wcast_initialise_customizer_settings {
176
  $wp_customize->add_control( new Skyrocket_Dropdown_Select_Custom_Control( $wp_customize, 'wcast_preview_order_id',
177
  array(
178
  'label' => __( 'Preview order', 'woo-advanced-shipment-tracking' ),
179
- 'description' => esc_html__( 'select from last 20 orders one order that you added tracking info in order to preview and design the tracking info table.', 'woo-advanced-shipment-tracking' ),
180
  'section' => 'default_controls_section',
181
  'input_attrs' => array(
182
  'placeholder' => __( 'Please select a order...', 'woo-advanced-shipment-tracking' ),
@@ -184,31 +190,18 @@ class wcast_initialise_customizer_settings {
184
  ),
185
  'choices' => wcast_customizer()->get_order_ids(),
186
  )
187
- ) );
188
-
189
- $wp_customize->add_setting( 'general_settings_header',
190
- array(
191
- 'default' => '',
192
- 'transport' => 'postMessage',
193
- 'sanitize_callback' => ''
194
- )
195
- );
196
- $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'general_settings_header',
197
- array(
198
- 'label' => __( 'General Settings', 'woo-advanced-shipment-tracking' ),
199
- 'section' => 'default_controls_section'
200
- )
201
  ) );
202
-
203
  // Tracking Display Position
204
- $wp_customize->add_setting( 'display_tracking_info_at',
205
  array(
206
  'default' => $this->defaults['display_tracking_info_at'],
207
  'transport' => 'refresh',
208
- 'sanitize_callback' => ''
 
209
  )
210
  );
211
- $wp_customize->add_control( 'display_tracking_info_at',
212
  array(
213
  'label' => __( 'Tracking Display Position', 'woo-advanced-shipment-tracking' ),
214
  'section' => 'default_controls_section',
@@ -218,19 +211,20 @@ class wcast_initialise_customizer_settings {
218
  'after_order' => __( 'After Order Details', 'woo-advanced-shipment-tracking' ),
219
  )
220
  )
221
- );
222
 
223
  // Header Text
224
- $wp_customize->add_setting( 'header_text_change',
225
  array(
226
  'default' => $this->defaults['header_text_change'],
227
  'transport' => 'postMessage',
228
- 'sanitize_callback' => ''
 
229
  )
230
  );
231
- $wp_customize->add_control( 'header_text_change',
232
  array(
233
- 'label' => __( 'Main Header text', 'woo-advanced-shipment-tracking' ),
234
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
235
  'section' => 'default_controls_section',
236
  'type' => 'text',
@@ -243,14 +237,15 @@ class wcast_initialise_customizer_settings {
243
  );
244
 
245
  // Additional text after header
246
- $wp_customize->add_setting( 'additional_header_text',
247
  array(
248
  'default' => $this->defaults['additional_header_text'],
249
  'transport' => 'postMessage',
250
- 'sanitize_callback' => ''
 
251
  )
252
  );
253
- $wp_customize->add_control( 'additional_header_text',
254
  array(
255
  'label' => __( 'Additional text after header', 'woo-advanced-shipment-tracking' ),
256
  'section' => 'default_controls_section',
@@ -263,49 +258,219 @@ class wcast_initialise_customizer_settings {
263
  )
264
  );
265
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
266
  // Test of Toggle Switch Custom Control
267
- $wp_customize->add_setting( 'table_content_header',
268
  array(
269
  'default' => '',
270
  'transport' => 'postMessage',
271
- 'sanitize_callback' => ''
 
272
  )
273
  );
274
- $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'table_content_header',
275
  array(
276
- 'label' => __( 'Table Content', 'woo-advanced-shipment-tracking' ),
277
  'section' => 'default_controls_section'
278
  )
279
  ) );
280
 
281
- // Display Shipment Provider image/thumbnail
282
- $wp_customize->add_setting( 'display_shipment_provider_image',
283
  array(
284
- 'default' => $this->defaults['display_shipment_provider_image'],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
  'transport' => 'postMessage',
286
- 'sanitize_callback' => ''
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
287
  )
288
  );
289
- $wp_customize->add_control( 'display_shipment_provider_image',
290
  array(
291
- 'label' => __( 'Display Shipment Provider image', 'woo-advanced-shipment-tracking' ),
292
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
293
  'section' => 'default_controls_section',
294
  'type' => 'checkbox'
295
  )
296
  );
297
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
298
  // Remove date from tracking info
299
- $wp_customize->add_setting( 'remove_date_from_tracking',
300
  array(
301
  'default' => $this->defaults['remove_date_from_tracking'],
302
  'transport' => 'postMessage',
303
- 'sanitize_callback' => ''
 
304
  )
305
  );
306
- $wp_customize->add_control( 'remove_date_from_tracking',
307
  array(
308
- 'label' => __( 'Hide date', 'woo-advanced-shipment-tracking' ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
310
  'section' => 'default_controls_section',
311
  'type' => 'checkbox'
@@ -313,31 +478,33 @@ class wcast_initialise_customizer_settings {
313
  );
314
 
315
  // Test of Toggle Switch Custom Control
316
- $wp_customize->add_setting( 'table_header_block',
317
  array(
318
  'default' => '',
319
  'transport' => 'postMessage',
320
- 'sanitize_callback' => ''
 
321
  )
322
  );
323
- $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'table_header_block',
324
  array(
325
- 'label' => __( 'Table Header', 'woo-advanced-shipment-tracking' ),
326
  'section' => 'default_controls_section'
327
  )
328
  ) );
329
 
330
  // Show track label
331
- $wp_customize->add_setting( 'hide_table_header',
332
  array(
333
  'default' => '',
334
  'transport' => 'postMessage',
335
- 'sanitize_callback' => ''
 
336
  )
337
  );
338
- $wp_customize->add_control( 'hide_table_header',
339
  array(
340
- 'label' => __( 'Hide Header', 'woo-advanced-shipment-tracking' ),
341
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
342
  'section' => 'default_controls_section',
343
  'type' => 'checkbox'
@@ -345,16 +512,17 @@ class wcast_initialise_customizer_settings {
345
  );
346
 
347
  // Provider Header Text
348
- $wp_customize->add_setting( 'provider_header_text',
349
  array(
350
  'default' => $this->defaults['provider_header_text'],
351
  'transport' => 'postMessage',
352
- 'sanitize_callback' => ''
 
353
  )
354
  );
355
- $wp_customize->add_control( 'provider_header_text',
356
  array(
357
- 'label' => __( 'Provider Header Text', 'woo-advanced-shipment-tracking' ),
358
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
359
  'section' => 'default_controls_section',
360
  'type' => 'text',
@@ -367,16 +535,17 @@ class wcast_initialise_customizer_settings {
367
  );
368
 
369
  // Tracking Number Header Text
370
- $wp_customize->add_setting( 'tracking_number_header_text',
371
  array(
372
  'default' => $this->defaults['tracking_number_header_text'],
373
  'transport' => 'postMessage',
374
- 'sanitize_callback' => ''
 
375
  )
376
  );
377
- $wp_customize->add_control( 'tracking_number_header_text',
378
  array(
379
- 'label' => __( 'Tracking Number Header Text', 'woo-advanced-shipment-tracking' ),
380
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
381
  'section' => 'default_controls_section',
382
  'type' => 'text',
@@ -388,16 +557,17 @@ class wcast_initialise_customizer_settings {
388
  )
389
  );
390
  // Shipped Date Header Text
391
- $wp_customize->add_setting( 'shipped_date_header_text',
392
  array(
393
  'default' => $this->defaults['shipped_date_header_text'],
394
  'transport' => 'postMessage',
395
- 'sanitize_callback' => ''
 
396
  )
397
  );
398
- $wp_customize->add_control( 'shipped_date_header_text',
399
  array(
400
- 'label' => __( 'Shipped Date Header Text', 'woo-advanced-shipment-tracking' ),
401
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
402
  'section' => 'default_controls_section',
403
  'type' => 'text',
@@ -408,33 +578,37 @@ class wcast_initialise_customizer_settings {
408
  ),
409
  )
410
  );
 
411
  // Show track label
412
- $wp_customize->add_setting( 'show_track_label',
413
  array(
414
  'default' => $this->defaults['show_track_label'],
415
  'transport' => 'postMessage',
416
- 'sanitize_callback' => ''
 
417
  )
418
  );
419
- $wp_customize->add_control( 'show_track_label',
420
  array(
421
  'label' => __( 'Track Label', 'woo-advanced-shipment-tracking' ),
422
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
423
  'section' => 'default_controls_section',
424
- 'type' => 'checkbox'
425
  )
426
- );
 
427
  // Track Header Text
428
- $wp_customize->add_setting( 'track_header_text',
429
  array(
430
  'default' => $this->defaults['track_header_text'],
431
  'transport' => 'postMessage',
432
- 'sanitize_callback' => ''
 
433
  )
434
  );
435
- $wp_customize->add_control( 'track_header_text',
436
  array(
437
- 'label' => __( 'Track Header Text', 'woo-advanced-shipment-tracking' ),
438
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
439
  'section' => 'default_controls_section',
440
  'type' => 'text',
@@ -447,16 +621,17 @@ class wcast_initialise_customizer_settings {
447
  );
448
 
449
  // Table header font size
450
- $wp_customize->add_setting( 'table_header_font_size',
451
  array(
452
  'default' => $this->defaults['table_header_font_size'],
453
  'transport' => 'postMessage',
454
- 'sanitize_callback' => ''
 
455
  )
456
  );
457
- $wp_customize->add_control( 'table_header_font_size',
458
  array(
459
- 'label' => __( 'Table header font size', 'woo-advanced-shipment-tracking' ),
460
  'section' => 'default_controls_section',
461
  'type' => 'select',
462
  'choices' => $font_size_array
@@ -464,16 +639,17 @@ class wcast_initialise_customizer_settings {
464
  );
465
 
466
  // Table header font color
467
- $wp_customize->add_setting( 'table_header_font_color',
468
  array(
469
  'default' => $this->defaults['table_header_font_color'],
470
  'transport' => 'postMessage',
471
- 'sanitize_callback' => ''
 
472
  )
473
  );
474
- $wp_customize->add_control( 'table_header_font_color',
475
  array(
476
- 'label' => __( 'Table header font color', 'woo-advanced-shipment-tracking' ),
477
  'section' => 'default_controls_section',
478
  'type' => 'color'
479
  )
@@ -484,25 +660,27 @@ class wcast_initialise_customizer_settings {
484
  array(
485
  'default' => '',
486
  'transport' => 'postMessage',
487
- 'sanitize_callback' => ''
 
488
  )
489
  );
490
  $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'table_header',
491
  array(
492
- 'label' => __( 'Table Design', 'woo-advanced-shipment-tracking' ),
493
  'section' => 'default_controls_section'
494
  )
495
  ) );
496
 
497
  // Table content font weight
498
- $wp_customize->add_setting( 'table_padding',
499
  array(
500
  'default' => $this->defaults['table_padding'],
501
  'transport' => 'postMessage',
502
- 'sanitize_callback' => ''
 
503
  )
504
  );
505
- $wp_customize->add_control( new Skyrocket_Slider_Custom_Control( $wp_customize, 'table_padding',
506
  array(
507
  'label' => __( 'Padding', 'woo-advanced-shipment-tracking' ),
508
  'section' => 'default_controls_section',
@@ -515,42 +693,32 @@ class wcast_initialise_customizer_settings {
515
  )
516
  ));
517
  // Table Background color
518
- $wp_customize->add_setting( 'table_bg_color',
519
  array(
520
  'default' => $this->defaults['table_bg_color'],
521
  'transport' => 'postMessage',
522
- 'sanitize_callback' => 'sanitize_hex_color'
 
523
  )
524
  );
525
- $wp_customize->add_control( 'table_bg_color',
526
  array(
527
  'label' => __( 'Background color', 'woo-advanced-shipment-tracking' ),
528
  'section' => 'default_controls_section',
529
  'type' => 'color',
530
  )
531
  );
532
- /* $wp_customize->add_control( new Skyrocket_Customize_Alpha_Color_Control( $wp_customize, 'table_bg_color',
533
- array(
534
- 'label' => __( 'Content font weight', 'woo-advanced-shipment-tracking' ),
535
- 'section' => 'default_controls_section',
536
- 'input_attrs' => array(
537
- 'default' => $this->defaults['table_bg_color'],
538
- 'step' => 100,
539
- 'min' => 100,
540
- 'max' => 900,
541
- ),
542
- )
543
- ));*/
544
 
545
  // Table Border color
546
- $wp_customize->add_setting( 'table_border_color',
547
  array(
548
  'default' => $this->defaults['table_border_color'],
549
  'transport' => 'postMessage',
550
- 'sanitize_callback' => 'sanitize_hex_color'
 
551
  )
552
  );
553
- $wp_customize->add_control( 'table_border_color',
554
  array(
555
  'label' => __( 'Border color', 'woo-advanced-shipment-tracking' ),
556
  'section' => 'default_controls_section',
@@ -559,14 +727,15 @@ class wcast_initialise_customizer_settings {
559
  );
560
 
561
  // Table Border size
562
- $wp_customize->add_setting( 'table_border_size',
563
  array(
564
  'default' => $this->defaults['table_border_size'],
565
  'transport' => 'postMessage',
566
- 'sanitize_callback' => ''
 
567
  )
568
  );
569
- $wp_customize->add_control( 'table_border_size',
570
  array(
571
  'label' => __( 'Border size', 'woo-advanced-shipment-tracking' ),
572
  'section' => 'default_controls_section',
@@ -583,16 +752,17 @@ class wcast_initialise_customizer_settings {
583
  );
584
 
585
  // Table Border size
586
- $wp_customize->add_setting( 'header_content_text_align',
587
  array(
588
  'default' => $this->defaults['header_content_text_align'],
589
  'transport' => 'postMessage',
590
- 'sanitize_callback' => ''
 
591
  )
592
  );
593
- $wp_customize->add_control( 'header_content_text_align',
594
  array(
595
- 'label' => __( 'Table text align', 'woo-advanced-shipment-tracking' ),
596
  'section' => 'default_controls_section',
597
  'type' => 'select',
598
  'choices' => array(
@@ -604,49 +774,51 @@ class wcast_initialise_customizer_settings {
604
  )
605
  );
606
 
607
-
608
- // Table content font size
609
- $wp_customize->add_setting( 'table_content_font_size',
610
  array(
611
- 'default' => $this->defaults['table_content_font_size'],
612
  'transport' => 'postMessage',
613
- 'sanitize_callback' => ''
 
614
  )
615
  );
616
- $wp_customize->add_control( 'table_content_font_size',
617
  array(
618
- 'label' => __( 'Table content font size', 'woo-advanced-shipment-tracking' ),
619
  'section' => 'default_controls_section',
620
- 'type' => 'select',
621
- 'choices' => $font_size_array
622
  )
623
- );
624
 
625
- // Table content font color
626
- $wp_customize->add_setting( 'table_content_font_color',
627
  array(
628
- 'default' => $this->defaults['table_content_font_color'],
629
  'transport' => 'postMessage',
630
- 'sanitize_callback' => ''
 
631
  )
632
  );
633
- $wp_customize->add_control( 'table_content_font_color',
634
  array(
635
- 'label' => __( 'Table content font color', 'woo-advanced-shipment-tracking' ),
636
  'section' => 'default_controls_section',
637
- 'type' => 'color'
 
638
  )
639
- );
640
 
641
  // Table content line height
642
- $wp_customize->add_setting( 'table_content_line_height',
643
  array(
644
  'default' => $this->defaults['table_content_line_height'],
645
  'transport' => 'postMessage',
646
- 'sanitize_callback' => ''
 
647
  )
648
  );
649
- $wp_customize->add_control( new Skyrocket_Slider_Custom_Control( $wp_customize, 'table_content_line_height',
650
  array(
651
  'label' => __( 'Content line height', 'woo-advanced-shipment-tracking' ),
652
  'section' => 'default_controls_section',
@@ -660,14 +832,15 @@ class wcast_initialise_customizer_settings {
660
  ));
661
 
662
  // Table content font weight
663
- $wp_customize->add_setting( 'table_content_font_weight',
664
  array(
665
  'default' => $this->defaults['table_content_font_weight'],
666
  'transport' => 'postMessage',
667
- 'sanitize_callback' => ''
 
668
  )
669
  );
670
- $wp_customize->add_control( new Skyrocket_Slider_Custom_Control( $wp_customize, 'table_content_font_weight',
671
  array(
672
  'label' => __( 'Content font weight', 'woo-advanced-shipment-tracking' ),
673
  'section' => 'default_controls_section',
@@ -680,63 +853,67 @@ class wcast_initialise_customizer_settings {
680
  )
681
  ));
682
 
683
- $wp_customize->add_setting( 'shipment_link_header',
684
  array(
685
  'default' => '',
686
  'transport' => 'postMessage',
687
- 'sanitize_callback' => ''
 
688
  )
689
  );
690
 
691
 
692
- $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'shipment_link_header',
693
  array(
694
- 'label' => __( 'Track Button Design', 'woo-advanced-shipment-tracking' ),
695
  'section' => 'default_controls_section'
696
  )
697
  ) );
698
  // Tracking link font color
699
- $wp_customize->add_setting( 'tracking_link_font_color',
700
  array(
701
  'default' => $this->defaults['tracking_link_font_color'],
702
  'transport' => 'postMessage',
703
- 'sanitize_callback' => ''
 
704
  )
705
  );
706
- $wp_customize->add_control( 'tracking_link_font_color',
707
  array(
708
- 'label' => __( 'Track Link Font Color', 'woo-advanced-shipment-tracking' ),
709
  'section' => 'default_controls_section',
710
  'type' => 'color'
711
  )
712
  );
713
 
714
  // Tracking link background color
715
- $wp_customize->add_setting( 'tracking_link_bg_color',
716
  array(
717
  'default' => $this->defaults['tracking_link_bg_color'],
718
  'transport' => 'postMessage',
719
- 'sanitize_callback' => ''
 
720
  )
721
  );
722
- $wp_customize->add_control( 'tracking_link_bg_color',
723
  array(
724
- 'label' => __( 'Track Link Background Color', 'woo-advanced-shipment-tracking' ),
725
  'section' => 'default_controls_section',
726
  'type' => 'color'
727
  )
728
  );
729
  // Display Shipment Provider image/thumbnail
730
- $wp_customize->add_setting( 'tracking_link_border',
731
  array(
732
  'default' => $this->defaults['tracking_link_border'],
733
  'transport' => 'postMessage',
734
- 'sanitize_callback' => ''
 
735
  )
736
  );
737
- $wp_customize->add_control( 'tracking_link_border',
738
  array(
739
- 'label' => __( 'Track link Border', 'woo-advanced-shipment-tracking' ),
740
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
741
  'section' => 'default_controls_section',
742
  'type' => 'checkbox'
@@ -766,10 +943,10 @@ class wcast_initialise_customizer_settings {
766
  public function preview_completed_email(){
767
 
768
  $ast = new WC_Advanced_Shipment_Tracking_Actions;
769
-
770
- $display_tracking_info_at = get_theme_mod('display_tracking_info_at','before_order');
771
 
772
- if($display_tracking_info_at == 'after_order'){
773
  add_action( 'woocommerce_email_order_meta', array( $ast, 'email_display' ), 0, 4 );
774
  } else{
775
  add_action( 'woocommerce_email_before_order_table', array( $ast, 'email_display' ), 0, 4 );
@@ -788,7 +965,7 @@ class wcast_initialise_customizer_settings {
788
  $order_status = 'completed';
789
 
790
  if($preview_id == '' || $preview_id == 'mockup') {
791
- $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
792
  echo $content;
793
  return;
794
  }
125
  'remove_date_from_tracking' => '',
126
  'header_text_change' => '',
127
  'additional_header_text' => '',
128
+ 'table_bg_color' => '#ddd',
129
+ 'table_border_color' => '#e4e4e4',
130
+ 'table_border_size' => '1',
131
  'table_header_font_size' => '',
132
  'table_header_font_color' => '',
133
+ 'table_content_font_size' => '12',
134
+ 'table_content_font_color' => '#737373',
135
  'tracking_link_font_color' => '',
136
  'tracking_link_bg_color' => '',
137
  'wcast_preview_order_id' => 'mockup',
146
  'shipped_date_header_text' => __( 'Shipped Date', 'woo-advanced-shipment-tracking' ),
147
  'track_header_text' => __( 'Track', 'woo-advanced-shipment-tracking' ),
148
  'display_tracking_info_at' => 'before_order',
149
+ 'select_tracking_template' => 'default_table',
150
+ 'show_simple_shipped_date' => '',
151
+ 'simple_provider_font_size' => '14',
152
+ 'simple_provider_font_color' => '#575f6d',
153
+ 'show_provider_border' => 1,
154
+ 'provider_border_color' => '#e0e0e0',
155
  );
156
 
157
  return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
182
  $wp_customize->add_control( new Skyrocket_Dropdown_Select_Custom_Control( $wp_customize, 'wcast_preview_order_id',
183
  array(
184
  'label' => __( 'Preview order', 'woo-advanced-shipment-tracking' ),
185
+ 'description' => esc_html__( 'Select an order to preview and design the tracking info display.', 'woo-advanced-shipment-tracking' ),
186
  'section' => 'default_controls_section',
187
  'input_attrs' => array(
188
  'placeholder' => __( 'Please select a order...', 'woo-advanced-shipment-tracking' ),
190
  ),
191
  'choices' => wcast_customizer()->get_order_ids(),
192
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  ) );
194
+
195
  // Tracking Display Position
196
+ $wp_customize->add_setting( 'tracking_info_settings[display_tracking_info_at]',
197
  array(
198
  'default' => $this->defaults['display_tracking_info_at'],
199
  'transport' => 'refresh',
200
+ 'sanitize_callback' => '',
201
+ 'type' => 'option',
202
  )
203
  );
204
+ $wp_customize->add_control( 'tracking_info_settings[display_tracking_info_at]',
205
  array(
206
  'label' => __( 'Tracking Display Position', 'woo-advanced-shipment-tracking' ),
207
  'section' => 'default_controls_section',
211
  'after_order' => __( 'After Order Details', 'woo-advanced-shipment-tracking' ),
212
  )
213
  )
214
+ );
215
 
216
  // Header Text
217
+ $wp_customize->add_setting( 'tracking_info_settings[header_text_change]',
218
  array(
219
  'default' => $this->defaults['header_text_change'],
220
  'transport' => 'postMessage',
221
+ 'sanitize_callback' => '',
222
+ 'type' => 'option',
223
  )
224
  );
225
+ $wp_customize->add_control( 'tracking_info_settings[header_text_change]',
226
  array(
227
+ 'label' => __( 'Tracking Header text', 'woo-advanced-shipment-tracking' ),
228
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
229
  'section' => 'default_controls_section',
230
  'type' => 'text',
237
  );
238
 
239
  // Additional text after header
240
+ $wp_customize->add_setting( 'tracking_info_settings[additional_header_text]',
241
  array(
242
  'default' => $this->defaults['additional_header_text'],
243
  'transport' => 'postMessage',
244
+ 'sanitize_callback' => '',
245
+ 'type' => 'option',
246
  )
247
  );
248
+ $wp_customize->add_control( 'tracking_info_settings[additional_header_text]',
249
  array(
250
  'label' => __( 'Additional text after header', 'woo-advanced-shipment-tracking' ),
251
  'section' => 'default_controls_section',
258
  )
259
  );
260
 
261
+ // Preview Order
262
+ $wp_customize->add_setting( 'tracking_info_settings[select_tracking_template]',
263
+ array(
264
+ 'default' => $this->defaults['select_tracking_template'],
265
+ 'transport' => 'refresh',
266
+ 'sanitize_callback' => '',
267
+ 'type' => 'option',
268
+ )
269
+ );
270
+ $wp_customize->add_control( new Skyrocket_Dropdown_Select_Custom_Control( $wp_customize, 'tracking_info_settings[select_tracking_template]',
271
+ array(
272
+ 'label' => __( 'Tracking display template', 'woo-advanced-shipment-tracking' ),
273
+ 'section' => 'default_controls_section',
274
+ 'input_attrs' => array(
275
+ 'placeholder' => __( 'Tracking display template', 'woo-advanced-shipment-tracking' ),
276
+ 'class' => 'tracking_template_select',
277
+ ),
278
+ 'choices' => array(
279
+ '' => __( 'Select Template', 'woo-advanced-shipment-tracking' ),
280
+ 'default_table' => __( 'Table Layout', 'woo-advanced-shipment-tracking' ),
281
+ 'simple_list' => 'Simple Layout',
282
+ ),
283
+ )
284
+ ) );
285
+
286
  // Test of Toggle Switch Custom Control
287
+ $wp_customize->add_setting( 'tracking_info_settings[simple_content_header]',
288
  array(
289
  'default' => '',
290
  'transport' => 'postMessage',
291
+ 'sanitize_callback' => '',
292
+ 'type' => 'option',
293
  )
294
  );
295
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[simple_content_header]',
296
  array(
297
+ 'label' => __( 'Simple Layout Design', 'woo-advanced-shipment-tracking' ),
298
  'section' => 'default_controls_section'
299
  )
300
  ) );
301
 
302
+ // Show simple layout date
303
+ $wp_customize->add_setting( 'tracking_info_settings[show_simple_shipped_date]',
304
  array(
305
+ 'default' => $this->defaults['show_simple_shipped_date'],
306
+ 'transport' => 'refresh',
307
+ 'sanitize_callback' => '',
308
+ 'type' => 'option',
309
+ )
310
+ );
311
+ $wp_customize->add_control( 'tracking_info_settings[show_simple_shipped_date]',
312
+ array(
313
+ 'label' => __( 'Show date', 'woo-advanced-shipment-tracking' ),
314
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
315
+ 'section' => 'default_controls_section',
316
+ 'type' => 'checkbox'
317
+ )
318
+ );
319
+
320
+ // Simple Layout Provider font size
321
+ $wp_customize->add_setting( 'tracking_info_settings[simple_provider_font_size]',
322
+ array(
323
+ 'default' => $this->defaults['simple_provider_font_size'],
324
  'transport' => 'postMessage',
325
+ 'sanitize_callback' => '',
326
+ 'type' => 'option',
327
+ )
328
+ );
329
+ $wp_customize->add_control( 'tracking_info_settings[simple_provider_font_size]',
330
+ array(
331
+ 'label' => __( 'Provider font size', 'woo-advanced-shipment-tracking' ),
332
+ 'section' => 'default_controls_section',
333
+ 'type' => 'select',
334
+ 'choices' => $font_size_array
335
+ )
336
+ );
337
+
338
+ // Table header font color
339
+ $wp_customize->add_setting( 'tracking_info_settings[simple_provider_font_color]',
340
+ array(
341
+ 'default' => $this->defaults['simple_provider_font_color'],
342
+ 'transport' => 'postMessage',
343
+ 'sanitize_callback' => '',
344
+ 'type' => 'option',
345
+ )
346
+ );
347
+ $wp_customize->add_control( 'tracking_info_settings[simple_provider_font_color]',
348
+ array(
349
+ 'label' => __( 'Provider font color', 'woo-advanced-shipment-tracking' ),
350
+ 'section' => 'default_controls_section',
351
+ 'type' => 'color'
352
+ )
353
+ );
354
+
355
+ // Show track label
356
+ $wp_customize->add_setting( 'tracking_info_settings[show_provider_border]',
357
+ array(
358
+ 'default' => $this->defaults['show_provider_border'],
359
+ 'transport' => 'postMessage',
360
+ 'sanitize_callback' => '',
361
+ 'type' => 'option',
362
  )
363
  );
364
+ $wp_customize->add_control( 'tracking_info_settings[show_provider_border]',
365
  array(
366
+ 'label' => __( 'Show bottom border', 'woo-advanced-shipment-tracking' ),
367
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
368
  'section' => 'default_controls_section',
369
  'type' => 'checkbox'
370
  )
371
  );
372
 
373
+ // Table header font color
374
+ $wp_customize->add_setting( 'tracking_info_settings[provider_border_color]',
375
+ array(
376
+ 'default' => $this->defaults['provider_border_color'],
377
+ 'transport' => 'postMessage',
378
+ 'sanitize_callback' => '',
379
+ 'type' => 'option',
380
+ )
381
+ );
382
+ $wp_customize->add_control( 'tracking_info_settings[provider_border_color]',
383
+ array(
384
+ 'label' => __( 'Bottom border color', 'woo-advanced-shipment-tracking' ),
385
+ 'section' => 'default_controls_section',
386
+ 'type' => 'color'
387
+ )
388
+ );
389
+
390
+
391
+
392
+ // Test of Toggle Switch Custom Control
393
+ $wp_customize->add_setting( 'tracking_info_settings[table_content_header]',
394
+ array(
395
+ 'default' => '',
396
+ 'transport' => 'postMessage',
397
+ 'sanitize_callback' => '',
398
+ 'type' => 'option',
399
+ )
400
+ );
401
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[table_content_header]',
402
+ array(
403
+ 'label' => __( 'Table layout Design', 'woo-advanced-shipment-tracking' ),
404
+ 'section' => 'default_controls_section'
405
+ )
406
+ ) );
407
+
408
+ // Hide Shipment Provider name
409
+ $wp_customize->add_setting( 'tracking_info_settings[display_shipment_provider_name]',
410
+ array(
411
+ 'default' => '',
412
+ 'transport' => 'refresh',
413
+ 'sanitize_callback' => '',
414
+ 'type' => 'option',
415
+ )
416
+ );
417
+ $wp_customize->add_control( 'tracking_info_settings[display_shipment_provider_name]',
418
+ array(
419
+ 'label' => __( 'Display shipping provider name', 'woo-advanced-shipment-tracking' ),
420
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
421
+ 'section' => 'default_controls_section',
422
+ 'type' => 'checkbox'
423
+ )
424
+ );
425
+
426
+ // Display Shipment Provider image/thumbnail
427
+ $wp_customize->add_setting( 'tracking_info_settings[display_shipment_provider_image]',
428
+ array(
429
+ 'default' => $this->defaults['display_shipment_provider_image'],
430
+ 'transport' => 'refresh',
431
+ 'sanitize_callback' => '',
432
+ 'type' => 'option',
433
+ )
434
+ );
435
+ $wp_customize->add_control( 'tracking_info_settings[display_shipment_provider_image]',
436
+ array(
437
+ 'label' => __( 'Display shipping provider image', 'woo-advanced-shipment-tracking' ),
438
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
439
+ 'section' => 'default_controls_section',
440
+ 'type' => 'checkbox'
441
+ )
442
+ );
443
+
444
  // Remove date from tracking info
445
+ $wp_customize->add_setting( 'tracking_info_settings[remove_date_from_tracking]',
446
  array(
447
  'default' => $this->defaults['remove_date_from_tracking'],
448
  'transport' => 'postMessage',
449
+ 'sanitize_callback' => '',
450
+ 'type' => 'option',
451
  )
452
  );
453
+ $wp_customize->add_control( 'tracking_info_settings[remove_date_from_tracking]',
454
  array(
455
+ 'label' => __( 'Hide the ship date', 'woo-advanced-shipment-tracking' ),
456
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
457
+ 'section' => 'default_controls_section',
458
+ 'type' => 'checkbox'
459
+ )
460
+ );
461
+
462
+ // Use tracking number as a link
463
+ $wp_customize->add_setting( 'tracking_info_settings[tracking_number_link]',
464
+ array(
465
+ 'default' => '',
466
+ 'transport' => 'refresh',
467
+ 'sanitize_callback' => '',
468
+ 'type' => 'option',
469
+ )
470
+ );
471
+ $wp_customize->add_control( 'tracking_info_settings[tracking_number_link]',
472
+ array(
473
+ 'label' => __( 'Use tracking number as a link', 'woo-advanced-shipment-tracking' ),
474
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
475
  'section' => 'default_controls_section',
476
  'type' => 'checkbox'
478
  );
479
 
480
  // Test of Toggle Switch Custom Control
481
+ $wp_customize->add_setting( 'tracking_info_settings[table_header_block]',
482
  array(
483
  'default' => '',
484
  'transport' => 'postMessage',
485
+ 'sanitize_callback' => '',
486
+ 'type' => 'option',
487
  )
488
  );
489
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[table_header_block]',
490
  array(
491
+ 'label' => __( 'Table Headers', 'woo-advanced-shipment-tracking' ),
492
  'section' => 'default_controls_section'
493
  )
494
  ) );
495
 
496
  // Show track label
497
+ $wp_customize->add_setting( 'tracking_info_settings[hide_table_header]',
498
  array(
499
  'default' => '',
500
  'transport' => 'postMessage',
501
+ 'sanitize_callback' => '',
502
+ 'type' => 'option',
503
  )
504
  );
505
+ $wp_customize->add_control( 'tracking_info_settings[hide_table_header]',
506
  array(
507
+ 'label' => __( 'Hide Table Headers', 'woo-advanced-shipment-tracking' ),
508
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
509
  'section' => 'default_controls_section',
510
  'type' => 'checkbox'
512
  );
513
 
514
  // Provider Header Text
515
+ $wp_customize->add_setting( 'tracking_info_settings[provider_header_text]',
516
  array(
517
  'default' => $this->defaults['provider_header_text'],
518
  'transport' => 'postMessage',
519
+ 'sanitize_callback' => '',
520
+ 'type' => 'option',
521
  )
522
  );
523
+ $wp_customize->add_control( 'tracking_info_settings[provider_header_text]',
524
  array(
525
+ 'label' => __( 'Provider header text', 'woo-advanced-shipment-tracking' ),
526
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
527
  'section' => 'default_controls_section',
528
  'type' => 'text',
535
  );
536
 
537
  // Tracking Number Header Text
538
+ $wp_customize->add_setting( 'tracking_info_settings[tracking_number_header_text]',
539
  array(
540
  'default' => $this->defaults['tracking_number_header_text'],
541
  'transport' => 'postMessage',
542
+ 'sanitize_callback' => '',
543
+ 'type' => 'option',
544
  )
545
  );
546
+ $wp_customize->add_control( 'tracking_info_settings[tracking_number_header_text]',
547
  array(
548
+ 'label' => __( 'Tracking Number header text', 'woo-advanced-shipment-tracking' ),
549
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
550
  'section' => 'default_controls_section',
551
  'type' => 'text',
557
  )
558
  );
559
  // Shipped Date Header Text
560
+ $wp_customize->add_setting( 'tracking_info_settings[shipped_date_header_text]',
561
  array(
562
  'default' => $this->defaults['shipped_date_header_text'],
563
  'transport' => 'postMessage',
564
+ 'sanitize_callback' => '',
565
+ 'type' => 'option',
566
  )
567
  );
568
+ $wp_customize->add_control( 'tracking_info_settings[shipped_date_header_text]',
569
  array(
570
+ 'label' => __( 'Ship date header text', 'woo-advanced-shipment-tracking' ),
571
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
572
  'section' => 'default_controls_section',
573
  'type' => 'text',
578
  ),
579
  )
580
  );
581
+
582
  // Show track label
583
+ $wp_customize->add_setting( 'tracking_info_settings[show_track_label]',
584
  array(
585
  'default' => $this->defaults['show_track_label'],
586
  'transport' => 'postMessage',
587
+ 'sanitize_callback' => '',
588
+ 'type' => 'option',
589
  )
590
  );
591
+ $wp_customize->add_control( 'tracking_info_settings[show_track_label]',
592
  array(
593
  'label' => __( 'Track Label', 'woo-advanced-shipment-tracking' ),
594
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
595
  'section' => 'default_controls_section',
596
+ 'type' => 'checkbox',
597
  )
598
+ );
599
+
600
  // Track Header Text
601
+ $wp_customize->add_setting( 'tracking_info_settings[track_header_text]',
602
  array(
603
  'default' => $this->defaults['track_header_text'],
604
  'transport' => 'postMessage',
605
+ 'sanitize_callback' => '',
606
+ 'type' => 'option',
607
  )
608
  );
609
+ $wp_customize->add_control( 'tracking_info_settings[track_header_text]',
610
  array(
611
+ 'label' => __( 'Track header text', 'woo-advanced-shipment-tracking' ),
612
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
613
  'section' => 'default_controls_section',
614
  'type' => 'text',
621
  );
622
 
623
  // Table header font size
624
+ $wp_customize->add_setting( 'tracking_info_settings[table_header_font_size]',
625
  array(
626
  'default' => $this->defaults['table_header_font_size'],
627
  'transport' => 'postMessage',
628
+ 'sanitize_callback' => '',
629
+ 'type' => 'option',
630
  )
631
  );
632
+ $wp_customize->add_control( 'tracking_info_settings[table_header_font_size]',
633
  array(
634
+ 'label' => __( 'Headers font size', 'woo-advanced-shipment-tracking' ),
635
  'section' => 'default_controls_section',
636
  'type' => 'select',
637
  'choices' => $font_size_array
639
  );
640
 
641
  // Table header font color
642
+ $wp_customize->add_setting( 'tracking_info_settings[table_header_font_color]',
643
  array(
644
  'default' => $this->defaults['table_header_font_color'],
645
  'transport' => 'postMessage',
646
+ 'sanitize_callback' => '',
647
+ 'type' => 'option',
648
  )
649
  );
650
+ $wp_customize->add_control( 'tracking_info_settings[table_header_font_color]',
651
  array(
652
+ 'label' => __( 'Headers font color', 'woo-advanced-shipment-tracking' ),
653
  'section' => 'default_controls_section',
654
  'type' => 'color'
655
  )
660
  array(
661
  'default' => '',
662
  'transport' => 'postMessage',
663
+ 'sanitize_callback' => '',
664
+ 'type' => 'option',
665
  )
666
  );
667
  $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'table_header',
668
  array(
669
+ 'label' => __( 'Table Content', 'woo-advanced-shipment-tracking' ),
670
  'section' => 'default_controls_section'
671
  )
672
  ) );
673
 
674
  // Table content font weight
675
+ $wp_customize->add_setting( 'tracking_info_settings[table_padding]',
676
  array(
677
  'default' => $this->defaults['table_padding'],
678
  'transport' => 'postMessage',
679
+ 'sanitize_callback' => '',
680
+ 'type' => 'option',
681
  )
682
  );
683
+ $wp_customize->add_control( new Skyrocket_Slider_Custom_Control( $wp_customize, 'tracking_info_settings[table_padding]',
684
  array(
685
  'label' => __( 'Padding', 'woo-advanced-shipment-tracking' ),
686
  'section' => 'default_controls_section',
693
  )
694
  ));
695
  // Table Background color
696
+ $wp_customize->add_setting( 'tracking_info_settings[table_bg_color]',
697
  array(
698
  'default' => $this->defaults['table_bg_color'],
699
  'transport' => 'postMessage',
700
+ 'sanitize_callback' => 'sanitize_hex_color',
701
+ 'type' => 'option',
702
  )
703
  );
704
+ $wp_customize->add_control( 'tracking_info_settings[table_bg_color]',
705
  array(
706
  'label' => __( 'Background color', 'woo-advanced-shipment-tracking' ),
707
  'section' => 'default_controls_section',
708
  'type' => 'color',
709
  )
710
  );
 
 
 
 
 
 
 
 
 
 
 
 
711
 
712
  // Table Border color
713
+ $wp_customize->add_setting( 'tracking_info_settings[table_border_color]',
714
  array(
715
  'default' => $this->defaults['table_border_color'],
716
  'transport' => 'postMessage',
717
+ 'sanitize_callback' => 'sanitize_hex_color',
718
+ 'type' => 'option',
719
  )
720
  );
721
+ $wp_customize->add_control( 'tracking_info_settings[table_border_color]',
722
  array(
723
  'label' => __( 'Border color', 'woo-advanced-shipment-tracking' ),
724
  'section' => 'default_controls_section',
727
  );
728
 
729
  // Table Border size
730
+ $wp_customize->add_setting( 'tracking_info_settings[table_border_size]',
731
  array(
732
  'default' => $this->defaults['table_border_size'],
733
  'transport' => 'postMessage',
734
+ 'sanitize_callback' => '',
735
+ 'type' => 'option',
736
  )
737
  );
738
+ $wp_customize->add_control( 'tracking_info_settings[table_border_size]',
739
  array(
740
  'label' => __( 'Border size', 'woo-advanced-shipment-tracking' ),
741
  'section' => 'default_controls_section',
752
  );
753
 
754
  // Table Border size
755
+ $wp_customize->add_setting( 'tracking_info_settings[header_content_text_align]',
756
  array(
757
  'default' => $this->defaults['header_content_text_align'],
758
  'transport' => 'postMessage',
759
+ 'sanitize_callback' => '',
760
+ 'type' => 'option',
761
  )
762
  );
763
+ $wp_customize->add_control( 'tracking_info_settings[header_content_text_align]',
764
  array(
765
+ 'label' => __( 'Content Text align', 'woo-advanced-shipment-tracking' ),
766
  'section' => 'default_controls_section',
767
  'type' => 'select',
768
  'choices' => array(
774
  )
775
  );
776
 
777
+ // Table content font color
778
+ $wp_customize->add_setting( 'tracking_info_settings[table_content_font_color]',
 
779
  array(
780
+ 'default' => $this->defaults['table_content_font_color'],
781
  'transport' => 'postMessage',
782
+ 'sanitize_callback' => '',
783
+ 'type' => 'option',
784
  )
785
  );
786
+ $wp_customize->add_control( 'tracking_info_settings[table_content_font_color]',
787
  array(
788
+ 'label' => __( 'Content font color', 'woo-advanced-shipment-tracking' ),
789
  'section' => 'default_controls_section',
790
+ 'type' => 'color'
 
791
  )
792
+ );
793
 
794
+ // Table content font size
795
+ $wp_customize->add_setting( 'tracking_info_settings[table_content_font_size]',
796
  array(
797
+ 'default' => $this->defaults['table_content_font_size'],
798
  'transport' => 'postMessage',
799
+ 'sanitize_callback' => '',
800
+ 'type' => 'option',
801
  )
802
  );
803
+ $wp_customize->add_control( 'tracking_info_settings[table_content_font_size]',
804
  array(
805
+ 'label' => __( 'Content font size', 'woo-advanced-shipment-tracking' ),
806
  'section' => 'default_controls_section',
807
+ 'type' => 'select',
808
+ 'choices' => $font_size_array
809
  )
810
+ );
811
 
812
  // Table content line height
813
+ $wp_customize->add_setting( 'tracking_info_settings[table_content_line_height]',
814
  array(
815
  'default' => $this->defaults['table_content_line_height'],
816
  'transport' => 'postMessage',
817
+ 'sanitize_callback' => '',
818
+ 'type' => 'option',
819
  )
820
  );
821
+ $wp_customize->add_control( new Skyrocket_Slider_Custom_Control( $wp_customize, 'tracking_info_settings[table_content_line_height]',
822
  array(
823
  'label' => __( 'Content line height', 'woo-advanced-shipment-tracking' ),
824
  'section' => 'default_controls_section',
832
  ));
833
 
834
  // Table content font weight
835
+ $wp_customize->add_setting( 'tracking_info_settings[table_content_font_weight]',
836
  array(
837
  'default' => $this->defaults['table_content_font_weight'],
838
  'transport' => 'postMessage',
839
+ 'sanitize_callback' => '',
840
+ 'type' => 'option',
841
  )
842
  );
843
+ $wp_customize->add_control( new Skyrocket_Slider_Custom_Control( $wp_customize, 'tracking_info_settings[table_content_font_weight]',
844
  array(
845
  'label' => __( 'Content font weight', 'woo-advanced-shipment-tracking' ),
846
  'section' => 'default_controls_section',
853
  )
854
  ));
855
 
856
+ $wp_customize->add_setting( 'tracking_info_settings[shipment_link_header]',
857
  array(
858
  'default' => '',
859
  'transport' => 'postMessage',
860
+ 'sanitize_callback' => '',
861
+ 'type' => 'option',
862
  )
863
  );
864
 
865
 
866
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[shipment_link_header]',
867
  array(
868
+ 'label' => __( 'Tracking Link', 'woo-advanced-shipment-tracking' ),
869
  'section' => 'default_controls_section'
870
  )
871
  ) );
872
  // Tracking link font color
873
+ $wp_customize->add_setting( 'tracking_info_settings[tracking_link_font_color]',
874
  array(
875
  'default' => $this->defaults['tracking_link_font_color'],
876
  'transport' => 'postMessage',
877
+ 'sanitize_callback' => '',
878
+ 'type' => 'option',
879
  )
880
  );
881
+ $wp_customize->add_control( 'tracking_info_settings[tracking_link_font_color]',
882
  array(
883
+ 'label' => __( 'Font Color', 'woo-advanced-shipment-tracking' ),
884
  'section' => 'default_controls_section',
885
  'type' => 'color'
886
  )
887
  );
888
 
889
  // Tracking link background color
890
+ $wp_customize->add_setting( 'tracking_info_settings[tracking_link_bg_color]',
891
  array(
892
  'default' => $this->defaults['tracking_link_bg_color'],
893
  'transport' => 'postMessage',
894
+ 'sanitize_callback' => '',
895
+ 'type' => 'option',
896
  )
897
  );
898
+ $wp_customize->add_control( 'tracking_info_settings[tracking_link_bg_color]',
899
  array(
900
+ 'label' => __( 'Background color', 'woo-advanced-shipment-tracking' ),
901
  'section' => 'default_controls_section',
902
  'type' => 'color'
903
  )
904
  );
905
  // Display Shipment Provider image/thumbnail
906
+ $wp_customize->add_setting( 'tracking_info_settings[tracking_link_border]',
907
  array(
908
  'default' => $this->defaults['tracking_link_border'],
909
  'transport' => 'postMessage',
910
+ 'sanitize_callback' => '',
911
+ 'type' => 'option',
912
  )
913
  );
914
+ $wp_customize->add_control( 'tracking_info_settings[tracking_link_border]',
915
  array(
916
+ 'label' => __( 'Border', 'woo-advanced-shipment-tracking' ),
917
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
918
  'section' => 'default_controls_section',
919
  'type' => 'checkbox'
943
  public function preview_completed_email(){
944
 
945
  $ast = new WC_Advanced_Shipment_Tracking_Actions;
946
+
947
+ $tracking_info_settings = get_option('tracking_info_settings');
948
 
949
+ if($tracking_info_settings['display_tracking_info_at'] == 'after_order'){
950
  add_action( 'woocommerce_email_order_meta', array( $ast, 'email_display' ), 0, 4 );
951
  } else{
952
  add_action( 'woocommerce_email_before_order_table', array( $ast, 'email_display' ), 0, 4 );
965
  $order_status = 'completed';
966
 
967
  if($preview_id == '' || $preview_id == 'mockup') {
968
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'To preview the tracking display, please add tracking information to at least one order and choose it in the preview order selection.', 'woo-advanced-shipment-tracking' ) . '</div>';
969
  echo $content;
970
  return;
971
  }
includes/customizer/class-wc-updated-tracking-email-customizer.php ADDED
@@ -0,0 +1,430 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Customizer Setup and Custom Controls
4
+ *
5
+ */
6
+
7
+ /**
8
+ * Adds the individual sections, settings, and controls to the theme customizer
9
+ */
10
+ class wcast_updated_tracking_customizer_email {
11
+ // Get our default values
12
+ public function __construct() {
13
+ // Get our Customizer defaults
14
+ $this->defaults = $this->wcast_generate_defaults();
15
+
16
+ // Register our sample default controls
17
+ add_action( 'customize_register', array( $this, 'wcast_register_sample_default_controls' ) );
18
+
19
+ // Only proceed if this is own request.
20
+ if ( ! wcast_updated_tracking_customizer_email::is_own_customizer_request() && ! wcast_updated_tracking_customizer_email::is_own_preview_request() ) {
21
+ return;
22
+ }
23
+ add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
24
+ // Register our sections
25
+ add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
26
+
27
+ // Remove unrelated components.
28
+ add_filter( 'customize_loaded_components', array( wcast_customizer(), 'remove_unrelated_components' ), 99, 2 );
29
+
30
+ // Remove unrelated sections.
31
+ add_filter( 'customize_section_active', array( wcast_customizer(), 'remove_unrelated_sections' ), 10, 2 );
32
+
33
+ // Unhook divi front end.
34
+ add_action( 'woomail_footer', array( wcast_customizer(), 'unhook_divi' ), 10 );
35
+
36
+ // Unhook Flatsome js
37
+ add_action( 'customize_preview_init', array( wcast_customizer(), 'unhook_flatsome' ), 50 );
38
+
39
+ add_filter( 'customize_controls_enqueue_scripts', array( wcast_customizer(), 'enqueue_customizer_scripts' ) );
40
+
41
+ add_action( 'parse_request', array( $this, 'set_up_preview' ) );
42
+
43
+ add_action( 'customize_preview_init', array( $this, 'enqueue_preview_scripts' ) );
44
+ }
45
+
46
+ public function enqueue_preview_scripts() {
47
+ wp_enqueue_script('wcast-email-preview-scripts', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/preview-scripts.js', array('jquery', 'customize-preview'), wc_advanced_shipment_tracking()->version, true);
48
+ wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
49
+ // Send variables to Javascript
50
+ $preview_id = get_theme_mod('wcast_updated_tracking_preview_order_id');
51
+ wp_localize_script('wcast-email-preview-scripts', 'wcast_preview', array(
52
+ 'site_title' => $this->get_blogname(),
53
+ 'order_number' => $preview_id,
54
+ ));
55
+ }
56
+
57
+ /**
58
+ * Get blog name formatted for emails.
59
+ *
60
+ * @return string
61
+ */
62
+ public function get_blogname() {
63
+ return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
64
+ }
65
+
66
+ /**
67
+ * Checks to see if we are opening our custom customizer preview
68
+ *
69
+ * @access public
70
+ * @return bool
71
+ */
72
+ public static function is_own_preview_request() {
73
+ return isset( $_REQUEST['wcast-updated-tracking-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-updated-tracking-email-customizer-preview'];
74
+ }
75
+
76
+ /**
77
+ * Checks to see if we are opening our custom customizer controls
78
+ *
79
+ * @access public
80
+ * @return bool
81
+ */
82
+ public static function is_own_customizer_request() {
83
+ return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'customer_updated_tracking_email';
84
+ }
85
+
86
+ /**
87
+ * Get Customizer URL
88
+ *
89
+ */
90
+ public static function get_customizer_url($email) {
91
+ $customizer_url = add_query_arg( array(
92
+ 'wcast-customizer' => '1',
93
+ 'email' => $email,
94
+ 'url' => urlencode( add_query_arg( array( 'wcast-updated-tracking-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
95
+ 'return' => urlencode( wcast_updated_tracking_customizer_email::get_email_settings_page_url() ),
96
+ ), admin_url( 'customize.php' ) );
97
+
98
+ return $customizer_url;
99
+ }
100
+
101
+ /**
102
+ * Get WooCommerce email settings page URL
103
+ *
104
+ * @access public
105
+ * @return string
106
+ */
107
+ public static function get_email_settings_page_url() {
108
+ return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking' );
109
+ }
110
+
111
+ /**
112
+ * code for initialize default value for customizer
113
+ */
114
+ public function wcast_generate_defaults() {
115
+ $customizer_defaults = array(
116
+ 'wcast_updated_tracking_email_subject' => __( 'Your {site_title} order is now updated tracking', 'woo-advanced-shipment-tracking' ),
117
+ 'wcast_updated_tracking_email_heading' => __( 'Tracking information Update', 'woocommerce' ),
118
+ 'wcast_updated_tracking_email_content' => __( "Hi there. we thought you'd like to know that the shipment tracking for your recent order from {site_title} has been updated.", 'woo-advanced-shipment-tracking' ),
119
+ 'wcast_enable_updated_tracking_email' => 'no',
120
+ );
121
+
122
+ return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
123
+ }
124
+
125
+ /**
126
+ * Register our sample default controls
127
+ */
128
+ public function wcast_register_sample_default_controls( $wp_customize ) {
129
+ /**
130
+ * Load all our Customizer Custom Controls
131
+ */
132
+ require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
133
+
134
+ $wp_customize->add_setting( 'updated_tracking_order_email_heading',
135
+ array(
136
+ 'default' => '',
137
+ 'transport' => 'postMessage',
138
+ 'sanitize_callback' => ''
139
+ )
140
+ );
141
+ $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'updated_tracking_order_email_heading',
142
+ array(
143
+ 'label' => __( 'Updated Tracking status email', 'woo-advanced-shipment-tracking' ),
144
+ 'description' => __( 'This section lets you customize the Email Content.', 'woo-advanced-shipment-tracking' ),
145
+ 'section' => 'customer_updated_tracking_email'
146
+ )
147
+ ) );
148
+ // Display Shipment Provider image/thumbnail
149
+ $wp_customize->add_setting( 'customizer_updated_tracking_order_settings_enabled',
150
+ array(
151
+ 'default' => $this->defaults['wcast_enable_updated_tracking_email'],
152
+ 'transport' => 'postMessage',
153
+ 'type' => 'option',
154
+ 'sanitize_callback' => ''
155
+ )
156
+ );
157
+ $wp_customize->add_control( 'customizer_updated_tracking_order_settings_enabled',
158
+ array(
159
+ 'label' => __( 'Enable Updated Tracking order status email', 'woo-advanced-shipment-tracking' ),
160
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
161
+ 'section' => 'customer_updated_tracking_email',
162
+ 'type' => 'checkbox',
163
+
164
+ )
165
+ );
166
+
167
+ // Preview Order
168
+ $wp_customize->add_setting( 'wcast_updated_tracking_preview_order_id',
169
+ array(
170
+ 'default' => 'mockup',
171
+ 'transport' => 'refresh',
172
+ 'sanitize_callback' => ''
173
+ )
174
+ );
175
+ $wp_customize->add_control( new Skyrocket_Dropdown_Select_Custom_Control( $wp_customize, 'wcast_updated_tracking_preview_order_id',
176
+ array(
177
+ 'label' => __( 'Preview order', 'woo-advanced-shipment-tracking' ),
178
+ 'description' => '',
179
+ 'section' => 'customer_updated_tracking_email',
180
+ 'input_attrs' => array(
181
+ 'placeholder' => __( 'Please select a order...', 'woo-advanced-shipment-tracking' ),
182
+ 'class' => 'preview_order_select',
183
+ ),
184
+ 'choices' => wcast_customizer()->get_order_ids(),
185
+ )
186
+ ) );
187
+
188
+ // Header Text
189
+ $wp_customize->add_setting( 'woocommerce_customer_updated_tracking_order_settings[subject]',
190
+ array(
191
+ 'default' => $this->defaults['wcast_updated_tracking_email_subject'],
192
+ 'transport' => 'postMessage',
193
+ 'type' => 'option',
194
+ 'sanitize_callback' => ''
195
+ )
196
+ );
197
+ $wp_customize->add_control( 'woocommerce_customer_updated_tracking_order_settings[subject]',
198
+ array(
199
+ 'label' => __( 'Subject', 'woocommerce' ),
200
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
201
+ 'section' => 'customer_updated_tracking_email',
202
+ 'type' => 'text',
203
+ 'input_attrs' => array(
204
+ 'class' => '',
205
+ 'style' => '',
206
+ 'placeholder' => __( $this->defaults['wcast_updated_tracking_email_subject'], 'woo-advanced-shipment-tracking' ),
207
+ ),
208
+ )
209
+ );
210
+
211
+ // Header Text
212
+ $wp_customize->add_setting( 'woocommerce_customer_updated_tracking_order_settings[heading]',
213
+ array(
214
+ 'default' => $this->defaults['wcast_updated_tracking_email_heading'],
215
+ 'transport' => 'postMessage',
216
+ 'type' => 'option',
217
+ 'sanitize_callback' => ''
218
+ )
219
+ );
220
+ $wp_customize->add_control( 'woocommerce_customer_updated_tracking_order_settings[heading]',
221
+ array(
222
+ 'label' => __( 'Email heading', 'woocommerce' ),
223
+ 'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
224
+ 'section' => 'customer_updated_tracking_email',
225
+ 'type' => 'text',
226
+ 'input_attrs' => array(
227
+ 'class' => '',
228
+ 'style' => '',
229
+ 'placeholder' => __( $this->defaults['wcast_updated_tracking_email_heading'], 'woo-advanced-shipment-tracking' ),
230
+ ),
231
+ )
232
+ );
233
+
234
+
235
+ // Test of TinyMCE control
236
+ $wp_customize->add_setting( 'woocommerce_customer_updated_tracking_order_settings[wcast_updated_tracking_email_content]',
237
+ array(
238
+ 'default' => $this->defaults['wcast_updated_tracking_email_content'],
239
+ 'transport' => 'refresh',
240
+ 'type' => 'option',
241
+ 'sanitize_callback' => 'wp_kses_post'
242
+ )
243
+ );
244
+ $wp_customize->add_control( new Skyrocket_TinyMCE_Custom_control( $wp_customize, 'woocommerce_customer_updated_tracking_order_settings[wcast_updated_tracking_email_content]',
245
+ array(
246
+ 'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
247
+ 'description' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {customer_email}, {customer_first_name}, {customer_last_name}, {customer_username}, {order_number}',
248
+ 'section' => 'customer_updated_tracking_email',
249
+ 'input_attrs' => array(
250
+ 'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
251
+ 'mediaButtons' => true,
252
+ 'placeholder' => __( $this->defaults['wcast_updated_tracking_email_content'], 'woo-advanced-shipment-tracking' ),
253
+ )
254
+ )
255
+ ) );
256
+
257
+ $wp_customize->add_setting( 'wcast_updated_tracking_code_block',
258
+ array(
259
+ 'default' => '',
260
+ 'transport' => 'postMessage',
261
+ 'sanitize_callback' => ''
262
+ )
263
+ );
264
+ $wp_customize->add_control( new WP_Customize_codeinfoblock_Control( $wp_customize, 'wcast_updated_tracking_code_block',
265
+ array(
266
+ 'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
267
+ 'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}</code>',
268
+ 'section' => 'customer_updated_tracking_email',
269
+ )
270
+ ) );
271
+ }
272
+
273
+ /**
274
+ * Set up preview
275
+ *
276
+ * @access public
277
+ * @return void
278
+ */
279
+ public function set_up_preview() {
280
+
281
+ // Make sure this is own preview request.
282
+ if ( ! wcast_updated_tracking_customizer_email::is_own_preview_request() ) {
283
+ return;
284
+ }
285
+ include wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/preview/updated_tracking_preview.php';
286
+ exit;
287
+ }
288
+
289
+ /**
290
+ * code for preview of delivered order status email
291
+ */
292
+ public function preview_updated_tracking_email(){
293
+ // Load WooCommerce emails.
294
+ $wc_emails = WC_Emails::instance();
295
+ $emails = $wc_emails->get_emails();
296
+ $preview_id = get_theme_mod('wcast_updated_tracking_preview_order_id');
297
+
298
+ if($preview_id == '' || $preview_id == 'mockup') {
299
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
300
+ echo $content;
301
+ return;
302
+ }
303
+
304
+ $order = wc_get_order( $preview_id );
305
+
306
+ if(!$order){
307
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
308
+ echo $content;
309
+ return;
310
+ }
311
+
312
+ $email_type = 'WC_Email_Customer_Updated_Tracking_Order';
313
+
314
+ if ( false === $email_type ) {
315
+ return false;
316
+ }
317
+
318
+
319
+
320
+ // Reference email.
321
+ if ( isset( $emails[ $email_type ] ) && is_object( $emails[ $email_type ] ) ) {
322
+ $email = $emails[ $email_type ];
323
+ }
324
+ $order_status = 'updated-tracking';
325
+ // Get an order
326
+ $order = self::get_wc_order_for_preview( $order_status, $preview_id );
327
+
328
+ // Make sure gateways are running in case the email needs to input content from them.
329
+ WC()->payment_gateways();
330
+ // Make sure shipping is running in case the email needs to input content from it.
331
+ WC()->shipping();
332
+
333
+ $email->object = $order;
334
+ $email->find['order-date'] = '{order_date}';
335
+ $email->find['order-number'] = '{order_number}';
336
+ if ( is_object( $order ) ) {
337
+ $email->replace['order-date'] = wc_format_datetime( $email->object->get_date_created() );
338
+ $email->replace['order-number'] = $email->object->get_order_number();
339
+ // Other properties
340
+ $email->recipient = $email->object->get_billing_email();
341
+ }
342
+
343
+ // Get email content and apply styles.
344
+ $content = $email->get_content();
345
+
346
+ $content = $email->style_inline( $content );
347
+ $content = apply_filters( 'woocommerce_mail_content', $content );
348
+
349
+ echo $content;
350
+ }
351
+
352
+ /**
353
+ * Get WooCommerce order for preview
354
+ *
355
+ * @access public
356
+ * @param string $order_status
357
+ * @return object
358
+ */
359
+ public static function get_wc_order_for_preview( $order_status = null, $order_id = null ) {
360
+ if ( ! empty( $order_id ) && 'mockup' != $order_id ) {
361
+ return wc_get_order( $order_id );
362
+ } else {
363
+ // Use mockup order
364
+
365
+ // Instantiate order object
366
+ $order = new WC_Order();
367
+
368
+ // Other order properties
369
+ $order->set_props( array(
370
+ 'id' => 1,
371
+ 'status' => ( null === $order_status ? 'processing' : $order_status ),
372
+ 'billing_first_name' => 'Sherlock',
373
+ 'billing_last_name' => 'Holmes',
374
+ 'billing_company' => 'Detectives Ltd.',
375
+ 'billing_address_1' => '221B Baker Street',
376
+ 'billing_city' => 'London',
377
+ 'billing_postcode' => 'NW1 6XE',
378
+ 'billing_country' => 'GB',
379
+ 'billing_email' => 'sherlock@holmes.co.uk',
380
+ 'billing_phone' => '02079304832',
381
+ 'date_created' => date( 'Y-m-d H:i:s' ),
382
+ 'total' => 24.90,
383
+ ) );
384
+
385
+ // Item #1
386
+ $order_item = new WC_Order_Item_Product();
387
+ $order_item->set_props( array(
388
+ 'name' => 'A Study in Scarlet',
389
+ 'subtotal' => '9.95',
390
+ 'sku' => 'kwd_ex_1',
391
+ ) );
392
+ $order->add_item( $order_item );
393
+
394
+ // Item #2
395
+ $order_item = new WC_Order_Item_Product();
396
+ $order_item->set_props( array(
397
+ 'name' => 'The Hound of the Baskervilles',
398
+ 'subtotal' => '14.95',
399
+ 'sku' => 'kwd_ex_2',
400
+ ) );
401
+ $order->add_item( $order_item );
402
+
403
+ // Return mockup order
404
+ return $order;
405
+ }
406
+
407
+ }
408
+ }
409
+ /**
410
+ * Initialise our Customizer settings
411
+ */
412
+
413
+ $wcast_updated_tracking_customizer_settings = new wcast_updated_tracking_customizer_email();
414
+ add_action( 'customize_save_customizer_updated_tracking_order_settings_enabled', 'woocommerce_customer_updated_tracking_order_settings_fun', 100, 1 );
415
+
416
+ /**
417
+ * Update Delivered order email enable/disable
418
+ *
419
+ */
420
+ function woocommerce_customer_updated_tracking_order_settings_fun($data){
421
+ $post_values = json_decode( wp_unslash( $_POST['customized'] ), true );
422
+ $updated_tracking_order_settings = get_option( 'woocommerce_customer_updated_tracking_order_settings');
423
+
424
+ if(isset($post_values['customizer_updated_tracking_order_settings_enabled']) && ($post_values['customizer_updated_tracking_order_settings_enabled'] == 1)){
425
+ $updated_tracking_order_settings['enabled'] = 'yes';
426
+ } else{
427
+ $updated_tracking_order_settings['enabled'] = 'no';
428
+ }
429
+ update_option( 'woocommerce_customer_updated_tracking_order_settings',$updated_tracking_order_settings);
430
+ }
includes/customizer/class-wcast-customizer.php CHANGED
@@ -41,6 +41,13 @@ class WC_Advanced_Shipment_Tracking_Customizer {
41
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' )
42
  )
43
  );
 
 
 
 
 
 
 
44
  }
45
 
46
  /**
@@ -65,7 +72,15 @@ class WC_Advanced_Shipment_Tracking_Customizer {
65
 
66
  $wp_customize->add_section( 'customer_partial_shipped_email',
67
  array(
68
- 'title' => __( 'Partial Shipped status email', 'woo-advanced-shipment-tracking' ),
 
 
 
 
 
 
 
 
69
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
70
  'panel' => 'wcast_naviation_panel'
71
  )
@@ -123,7 +138,15 @@ class WC_Advanced_Shipment_Tracking_Customizer {
123
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
124
  'panel' => 'wcast_emails_panel'
125
  )
126
- );
 
 
 
 
 
 
 
 
127
  }
128
 
129
  /**
@@ -140,6 +163,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
140
  'ajax_url' => admin_url('admin-ajax.php'),
141
  'email_preview_url' => $this->get_email_preview_url(),
142
  'partial_shipped_email_preview_url' => $this->get_partial_shipped_email_preview_url(),
 
143
  'tracking_preview_url' => $this->get_tracking_preview_url(),
144
  'tracking_page_preview_url' => $this->get_tracking_page_preview_url(),
145
  'customer_failure_preview_url' => $this->get_customer_failure_preview_url(),
@@ -148,6 +172,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
148
  'customer_delivered_preview_url' => $this->get_customer_delivered_preview_url(),
149
  'customer_returntosender_preview_url' => $this->get_customer_returntosender_preview_url(),
150
  'customer_availableforpickup_preview_url' => $this->get_customer_availableforpickup_preview_url(),
 
151
  'trigger_click' => '#accordion-section-'.$_REQUEST['email'].' h3',
152
  'wcast_enable_delivered_email' => $wcast_enable_delivered_email['enabled'],
153
  ));
@@ -178,6 +203,18 @@ class WC_Advanced_Shipment_Tracking_Customizer {
178
  return $email_preview_url;
179
  }
180
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  /**
182
  * Get Customizer URL
183
  *
@@ -274,6 +311,14 @@ class WC_Advanced_Shipment_Tracking_Customizer {
274
  return $customer_intransit_preview_url;
275
  }
276
 
 
 
 
 
 
 
 
 
277
  /**
278
  * Remove unrelated components
279
  *
@@ -353,7 +398,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
353
  */
354
  public static function is_own_section( $key ) {
355
 
356
- if ($key === 'default_controls_section' || $key === 'tracking_page_section' || $key === 'customer_delivered_email' || $key === 'customer_partial_shipped_email' || $key === 'customer_failure_email' || $key === 'customer_intransit_email' || $key === 'customer_outfordelivery_email' || $key === 'customer_delivered_status_email' || $key === 'customer_returntosender_email' || $key === 'customer_availableforpickup_email') {
357
  return true;
358
  }
359
 
@@ -388,20 +433,22 @@ class WC_Advanced_Shipment_Tracking_Customizer {
388
  public static function get_order_ids() {
389
  $order_array = array();
390
  $order_array['mockup'] = __( 'Select order to preview', 'woo-advanced-shipment-tracking' );
391
- $orders = new WP_Query(
392
- array(
393
- 'post_type' => 'shop_order',
394
- 'post_status' => array_keys( wc_get_order_statuses() ),
395
- 'posts_per_page' => 20,
396
- )
397
- );
398
- if ( $orders->posts ) {
399
- foreach ( $orders->posts as $order ) {
400
- // Get order object.
401
- $order_object = new WC_Order( $order->ID );
402
- $order_array[ $order_object->get_id() ] = $order_object->get_id() . ' - ' . $order_object->get_billing_first_name() . ' ' . $order_object->get_billing_last_name();
 
 
 
403
  }
404
- }
405
  return $order_array;
406
  }
407
  }
41
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' )
42
  )
43
  );
44
+
45
+ $wp_customize->add_panel( 'wcast_admin_emails_panel',
46
+ array(
47
+ 'title' => __( 'Admin Notifications Emails', 'woo-advanced-shipment-tracking' ),
48
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' )
49
+ )
50
+ );
51
  }
52
 
53
  /**
72
 
73
  $wp_customize->add_section( 'customer_partial_shipped_email',
74
  array(
75
+ 'title' => __( 'Partially Shipped status email', 'woo-advanced-shipment-tracking' ),
76
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
77
+ 'panel' => 'wcast_naviation_panel'
78
+ )
79
+ );
80
+
81
+ $wp_customize->add_section( 'customer_updated_tracking_email',
82
+ array(
83
+ 'title' => __( 'Updated Tracking status email', 'woo-advanced-shipment-tracking' ),
84
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
85
  'panel' => 'wcast_naviation_panel'
86
  )
138
  'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
139
  'panel' => 'wcast_emails_panel'
140
  )
141
+ );
142
+
143
+ $wp_customize->add_section( 'admin_late_shipments_email',
144
+ array(
145
+ 'title' => __( 'Late Shipments', 'woo-advanced-shipment-tracking' ),
146
+ 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
147
+ 'panel' => 'wcast_admin_emails_panel'
148
+ )
149
+ );
150
  }
151
 
152
  /**
163
  'ajax_url' => admin_url('admin-ajax.php'),
164
  'email_preview_url' => $this->get_email_preview_url(),
165
  'partial_shipped_email_preview_url' => $this->get_partial_shipped_email_preview_url(),
166
+ 'updated_tracking_email_preview_url' => $this->get_updated_tracking_email_preview_url(),
167
  'tracking_preview_url' => $this->get_tracking_preview_url(),
168
  'tracking_page_preview_url' => $this->get_tracking_page_preview_url(),
169
  'customer_failure_preview_url' => $this->get_customer_failure_preview_url(),
172
  'customer_delivered_preview_url' => $this->get_customer_delivered_preview_url(),
173
  'customer_returntosender_preview_url' => $this->get_customer_returntosender_preview_url(),
174
  'customer_availableforpickup_preview_url' => $this->get_customer_availableforpickup_preview_url(),
175
+ 'admin_late_shipments_preview_url' => $this->get_admin_late_shipments_preview_url(),
176
  'trigger_click' => '#accordion-section-'.$_REQUEST['email'].' h3',
177
  'wcast_enable_delivered_email' => $wcast_enable_delivered_email['enabled'],
178
  ));
203
  return $email_preview_url;
204
  }
205
 
206
+ /**
207
+ * Get Customizer URL
208
+ *
209
+ */
210
+ public static function get_updated_tracking_email_preview_url() {
211
+ $email_preview_url = add_query_arg( array(
212
+ 'wcast-updated-tracking-email-customizer-preview' => '1',
213
+ ), home_url( '' ) );
214
+
215
+ return $email_preview_url;
216
+ }
217
+
218
  /**
219
  * Get Customizer URL
220
  *
311
  return $customer_intransit_preview_url;
312
  }
313
 
314
+ public function get_admin_late_shipments_preview_url(){
315
+ $admin_late_shipments_preview_url = add_query_arg( array(
316
+ 'wcast-late-shipments-email-customizer-preview' => '1',
317
+ ), home_url( '' ) );
318
+
319
+ return $admin_late_shipments_preview_url;
320
+ }
321
+
322
  /**
323
  * Remove unrelated components
324
  *
398
  */
399
  public static function is_own_section( $key ) {
400
 
401
+ if ($key === 'default_controls_section' || $key === 'tracking_page_section' || $key === 'customer_delivered_email' || $key === 'customer_partial_shipped_email' || $key === 'customer_updated_tracking_email' || $key === 'customer_failure_email' || $key === 'customer_intransit_email' || $key === 'customer_outfordelivery_email' || $key === 'customer_delivered_status_email' || $key === 'customer_returntosender_email' || $key === 'customer_availableforpickup_email' || $key === 'admin_late_shipments_email') {
402
  return true;
403
  }
404
 
433
  public static function get_order_ids() {
434
  $order_array = array();
435
  $order_array['mockup'] = __( 'Select order to preview', 'woo-advanced-shipment-tracking' );
436
+
437
+ $orders = wc_get_orders( array(
438
+ 'limit' => 20,
439
+ 'orderby' => 'date',
440
+ 'order' => 'DESC',
441
+ 'meta_key' => '_wc_shipment_tracking_items', // The postmeta key field
442
+ 'meta_compare' => 'EXISTS', // The comparison argument
443
+ ));
444
+
445
+ foreach ( $orders as $order ) {
446
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
447
+ $tracking_items = $ast->get_tracking_items( $order->get_id(), true );
448
+ if($tracking_items){
449
+ $order_array[ $order->get_id() ] = $order->get_id() . ' - ' . $order->get_billing_first_name() . ' ' . $order->get_billing_last_name();
450
+ }
451
  }
 
452
  return $order_array;
453
  }
454
  }
includes/customizer/custom-controls.php CHANGED
@@ -655,7 +655,7 @@ if ( class_exists( 'WP_Customize_Control' ) ) {
655
  <?php if( !empty( $this->description ) ) { ?>
656
  <span class="customize-control-description"><?php echo esc_html( $this->description ); ?></span>
657
  <?php } ?>
658
- <textarea id="<?php echo esc_attr( $this->id ); ?>" class="customize-control-tinymce-editor" <?php $this->link(); ?>><?php echo esc_attr( $this->value() ); ?></textarea>
659
  </div>
660
  <?php
661
  }
655
  <?php if( !empty( $this->description ) ) { ?>
656
  <span class="customize-control-description"><?php echo esc_html( $this->description ); ?></span>
657
  <?php } ?>
658
+ <textarea id="<?php echo esc_attr( $this->id ); ?>" placeholder="<?php echo esc_attr( $this->input_attrs['placeholder'] ); ?>" class="" <?php $this->link(); ?>><?php echo esc_attr( $this->value() ); ?></textarea>
659
  </div>
660
  <?php
661
  }
includes/customizer/preview/late_shipments_preview.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if (!defined('ABSPATH')) {
4
+ exit;
5
+ }
6
+
7
+ ?>
8
+
9
+ <head>
10
+
11
+ <meta charset="<?php bloginfo('charset'); ?>" />
12
+ <meta name="viewport" content="width=device-width" />
13
+ <style type="text/css" id="ast_designer_custom_css">.woocommerce-store-notice.demo_store, .mfp-hide {display: none;}</style>
14
+ </head>
15
+
16
+ <body class="ast_preview_body">
17
+ <div id="overlay"></div>
18
+ <div id="ast_preview_wrapper" style="display: block;">
19
+
20
+ <?php wcast_late_shipments_customizer_email::preview_late_shipments_email(); ?>
21
+
22
+ </div>
23
+
24
+ <?php
25
+ do_action( 'woomail_footer' );
26
+ wp_footer(); ?>
27
+
28
+ </body>
29
+
30
+ </html>
includes/customizer/preview/updated_tracking_preview.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // Exit if accessed directly
3
+ if (!defined('ABSPATH')) {
4
+ exit;
5
+ }
6
+
7
+ ?>
8
+
9
+ <head>
10
+
11
+ <meta charset="<?php bloginfo('charset'); ?>" />
12
+ <meta name="viewport" content="width=device-width" />
13
+ <style type="text/css" id="ast_designer_custom_css">.woocommerce-store-notice.demo_store, .mfp-hide {display: none;}</style>
14
+ </head>
15
+
16
+ <body class="ast_preview_body">
17
+ <div id="overlay"></div>
18
+ <div id="ast_preview_wrapper" style="display: block;">
19
+
20
+ <?php wcast_updated_tracking_customizer_email::preview_updated_tracking_email(); ?>
21
+
22
+ </div>
23
+
24
+ <?php
25
+ do_action( 'woomail_footer' );
26
+ wp_footer(); ?>
27
+
28
+ </body>
29
+
30
+ </html>
includes/email-manager.php CHANGED
@@ -28,131 +28,48 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
28
 
29
  if ( ! isset( $emails[ 'WC_Email_Customer_Partial_Shipped_Order' ] ) ) {
30
  $emails[ 'WC_Email_Customer_Partial_Shipped_Order' ] = include_once( 'emails/class-shipment-partial-shipped-email.php' );
 
 
 
 
31
  }
32
  return $emails;
33
- }
34
 
35
  /**
36
- * code for trigger delivered order status email
37
  */
38
- public function delivered_order_status_email_trigger($order_id, $order){
39
- $order_id = $order->get_id();
40
- $wcast_customizer_settings = new wcast_initialise_customizer_email();
41
- $email_subject = get_theme_mod('wcast_delivered_email_subject',$wcast_customizer_settings->defaults['wcast_delivered_email_subject']);
 
 
 
 
 
42
  $subject = $this->email_subject($email_subject,$order_id,$order);
 
 
43
 
44
- $email_to = get_theme_mod('wcast_delivered_email_to',$wcast_customizer_settings->defaults['wcast_delivered_email_to']);
45
 
 
46
 
47
- $enable = get_theme_mod('wcast_enable_delivered_email');
48
- if($enable == 1){
49
-
50
- $email_to = explode(",",$email_to);
51
-
52
- foreach($email_to as $email){
53
- $email_heading = get_theme_mod('wcast_delivered_email_heading',$wcast_customizer_settings->defaults['wcast_delivered_email_heading']);
54
- $email_content = get_theme_mod('wcast_delivered_email_content',$wcast_customizer_settings->defaults['wcast_delivered_email_content']);
55
- $wcast_show_tracking_details = get_theme_mod('wcast_show_tracking_details');
56
- $wcast_show_order_details = get_theme_mod('wcast_show_order_details');
57
- $wcast_show_billing_address = get_theme_mod('wcast_show_billing_address');
58
- $wcast_show_shipping_address = get_theme_mod('wcast_show_shipping_address');
59
- $sent_to_admin = false;
60
- $plain_text = false;
61
 
62
-
63
- $recipient = $this->email_to($email,$order,$order_id);
64
 
65
- $email_content = $this->email_content($email_content,$order_id, $order);
66
 
67
- $mailer = WC()->mailer();
68
 
69
- $email_heading = $this->email_heading($email_heading,$order_id,$order);
70
-
71
- $message = $email_content;
72
- $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
73
- if($wcast_show_tracking_details == 1){
74
- ob_start();
75
- wc_get_template( 'emails/tracking-info.php', array(
76
- 'tracking_items' => $wast->get_tracking_items( $order_id, true )
77
- ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
78
- $message .= ob_get_clean();
79
- }
80
- if($wcast_show_order_details == 1){
81
-
82
- ob_start();
83
- wc_get_template(
84
- 'emails/wcast-email-order-details.php', array(
85
- 'order' => $order,
86
- 'sent_to_admin' => $sent_to_admin,
87
- 'plain_text' => $plain_text,
88
- 'email' => '',
89
- ),
90
- 'woocommerce-advanced-shipment-tracking/',
91
- wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
92
- );
93
- $message .= ob_get_clean();
94
- }
95
- if($wcast_show_billing_address == 1){
96
- ob_start();
97
- wc_get_template(
98
- 'emails/wcast-billing-email-addresses.php', array(
99
- 'order' => $order,
100
- 'sent_to_admin' => $sent_to_admin,
101
- ),
102
- 'woocommerce-advanced-shipment-tracking/',
103
- wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
104
- );
105
- $message .= ob_get_clean();
106
- }
107
- if($wcast_show_shipping_address == 1){
108
- ob_start();
109
- wc_get_template(
110
- 'emails/wcast-shipping-email-addresses.php', array(
111
- 'order' => $order,
112
- 'sent_to_admin' => $sent_to_admin,
113
- ),
114
- 'woocommerce-advanced-shipment-tracking/',
115
- wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
116
- );
117
- $message .= ob_get_clean();
118
- }
119
-
120
- // create a new email
121
- $email = new WC_Email();
122
-
123
- // wrap the content with the email template and then add styles
124
- $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
125
- $headers = "Content-Type: text/html\r\n";
126
- add_filter( 'wp_mail_from', array( $this, 'get_from_address' ) );
127
- add_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ) );
128
 
129
- wp_mail( $recipient, $subject, $message, $email->get_headers() );
130
- }
131
- }
132
- }
133
-
134
- /**
135
- * code for send shipment status email
136
- */
137
- public function shippment_status_email_trigger($order_id, $order, $old_status, $new_status){
138
-
139
- $status = str_replace("_","",$new_status);
140
- $status_class = 'wcast_'.$status.'_customizer_email';
141
- $wcast_status_customizer_email = new $status_class();
142
- $email_subject = get_theme_mod('wcast_'.$status.'_email_subject',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_subject']);
143
- $subject = $this->email_subject($email_subject,$order_id,$order);
144
- $email_to = get_theme_mod('wcast_'.$status.'_email_to',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_to']);
145
- $enable = get_theme_mod('wcast_enable_'.$status.'_email');
146
- $email_to = explode(",",$email_to);
147
-
148
- if($enable == 1){
149
- foreach($email_to as $email){
150
- $email_heading = get_theme_mod('wcast_'.$status.'_email_heading',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_heading']);
151
- $email_content = get_theme_mod('wcast_'.$status.'_email_content',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_content']);
152
- $wcast_show_tracking_details = get_theme_mod('wcast_'.$status.'_show_tracking_details');
153
- $wcast_show_order_details = get_theme_mod('wcast_'.$status.'_show_order_details');
154
- $wcast_show_billing_address = get_theme_mod('wcast_'.$status.'_show_billing_address');
155
- $wcast_show_shipping_address = get_theme_mod('wcast_'.$status.'_show_shipping_address');
156
  $sent_to_admin = false;
157
  $plain_text = false;
158
 
@@ -168,18 +85,27 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
168
  $message = $this->append_analytics_link($email_content,$status);
169
 
170
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
 
 
171
 
172
- if($wcast_show_tracking_details == 1){
173
-
 
 
 
 
 
174
  ob_start();
175
  wc_get_template( 'emails/tracking-info.php', array(
176
- 'tracking_items' => $wast->get_tracking_items( $order_id, true )
 
 
 
177
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
178
  $message .= ob_get_clean();
179
  }
180
 
181
- if($wcast_show_order_details == 1){
182
-
183
  ob_start();
184
  wc_get_template(
185
  'emails/wcast-email-order-details.php', array(
@@ -229,7 +155,10 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
229
  add_filter( 'wp_mail_from', array( $this, 'get_from_address' ) );
230
  add_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ) );
231
 
232
- wp_mail( $recipient, $subject, $message, $email->get_headers() );
 
 
 
233
  }
234
  }
235
  }
@@ -237,23 +166,36 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
237
  /**
238
  * code for send delivered shipment status email
239
  */
240
- public function delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status){
241
 
242
  $wcast_delivered_customizer_email = new wcast_delivered_customizer_email();
243
- $email_subject = get_theme_mod('wcast_delivered_status_email_subject',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_subject']);
 
 
 
244
  $subject = $this->email_subject($email_subject,$order_id,$order);
245
- $email_to = get_theme_mod('wcast_delivered_status_email_to',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_to']);
246
- $enable = get_theme_mod('wcast_enable_delivered_status_email');
 
 
 
247
  $email_to = explode(",",$email_to);
248
 
249
  if($enable == 1){
250
  foreach($email_to as $email){
251
- $email_heading = get_theme_mod('wcast_delivered_status_email_heading',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_heading']);
252
- $email_content = get_theme_mod('wcast_delivered_status_email_content',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_content']);
253
- $wcast_show_tracking_details = get_theme_mod('wcast_delivered_status_show_tracking_details');
254
- $wcast_show_order_details = get_theme_mod('wcast_delivered_status_show_order_details');
255
- $wcast_show_billing_address = get_theme_mod('wcast_delivered_status_show_billing_address');
256
- $wcast_show_shipping_address = get_theme_mod('wcast_delivered_status_show_shipping_address');
 
 
 
 
 
 
 
257
  $sent_to_admin = false;
258
  $plain_text = false;
259
 
@@ -269,12 +211,20 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
269
  $message = $this->append_analytics_link($email_content,$status);
270
 
271
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
272
-
 
 
 
 
 
273
  if($wcast_show_tracking_details == 1){
274
 
275
  ob_start();
276
  wc_get_template( 'emails/tracking-info.php', array(
277
- 'tracking_items' => $wast->get_tracking_items( $order_id, true )
 
 
 
278
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
279
  $message .= ob_get_clean();
280
  }
@@ -330,7 +280,11 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
330
  add_filter( 'wp_mail_from', array( $this, 'get_from_address' ) );
331
  add_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ) );
332
 
333
- wp_mail( $recipient, $subject, $message, $email->get_headers() );
 
 
 
 
334
  }
335
  }
336
  }
@@ -388,13 +342,16 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
388
  */
389
  public function email_to($string,$order,$order_id){
390
  $customer_email = $order->get_billing_email();
391
- return str_replace( '{customer_email}', $customer_email, $string );
 
 
 
392
  }
393
 
394
  /**
395
  * code for format email content
396
  */
397
- public function email_content($email_content, $order_id, $order){
398
  $customer_email = $order->get_billing_email();
399
  $first_name = $order->get_billing_first_name();
400
  $last_name = $order->get_billing_last_name();
@@ -438,7 +395,12 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
438
  * code for append analytics link
439
  */
440
  public function append_analytics_link($message,$status){
441
- $analytics_link = get_theme_mod('wcast_'.$status.'_analytics_link');
 
 
 
 
 
442
 
443
  if($analytics_link){
444
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
@@ -447,7 +409,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
447
  if (strpos($url, '?') === false) {
448
  $url .= '?';
449
  }
450
- $url .= get_theme_mod('wcast_'.$status.'_analytics_link');
451
  return $match[1].$url.$match[3];
452
  }, $message);
453
  }
@@ -459,36 +421,23 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
459
  */
460
  public function get_est_delivery_date($order_id, $order){
461
  if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
462
- $tracking_items = get_post_meta( $order_id, '_wc_shipment_tracking_items', true );
463
-
464
- //$get_order_key = get_post_meta( $order_id, 'order_key', true );
465
  } else {
466
  $order = new WC_Order( $order_id );
467
- $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
468
- //$get_order_key = $order->order_key;
469
  }
470
- $html = '';
471
 
 
 
 
472
  if($tracking_items){
473
- foreach($tracking_items as $item){
474
- $tracking_number = $item['tracking_number'];
475
- $trackship_url = 'https://trackship.info';
476
- $url = $trackship_url.'/wp-json/wc/v1/get_tracking_info_by_number';
477
- $args['body'] = array(
478
- 'tracking_number' => $tracking_number
479
- );
480
- $response = wp_remote_post( $url, $args );
481
- $data = $response['body'];
482
- $decoded_data = json_decode($data);
483
-
484
- if(!empty($decoded_data)){
485
- $tracker = $decoded_data[0];
486
- if($tracker->est_delivery_date){
487
- $unixTimestamp = strtotime($tracker->est_delivery_date);
488
- //Get the day of the week using PHP's date function.
489
- $day = date("l", $unixTimestamp);
490
- $html .= '<div>Estimated Delivery Date for Tracking Number - '.$tracking_number.'</div><h3 style="margin:0 0 10px;">'.$day.', '.date("M d", strtotime($tracker->est_delivery_date)).'</h3>';
491
- }
492
  }
493
  }
494
  }
28
 
29
  if ( ! isset( $emails[ 'WC_Email_Customer_Partial_Shipped_Order' ] ) ) {
30
  $emails[ 'WC_Email_Customer_Partial_Shipped_Order' ] = include_once( 'emails/class-shipment-partial-shipped-email.php' );
31
+ }
32
+
33
+ if ( ! isset( $emails[ 'WC_Email_Customer_Updated_Tracking_Order' ] ) ) {
34
+ $emails[ 'WC_Email_Customer_Updated_Tracking_Order' ] = include_once( 'emails/class-shipment-updated-tracking-email.php' );
35
  }
36
  return $emails;
37
+ }
38
 
39
  /**
40
+ * code for send shipment status email
41
  */
42
+ public function shippment_status_email_trigger($order_id, $order, $old_status, $new_status ,$tracking_item){
43
+
44
+ $status = str_replace("_","",$new_status);
45
+ $status_class = 'wcast_'.$status.'_customizer_email';
46
+ $wcast_status_customizer_email = new $status_class();
47
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
48
+
49
+ $email_subject = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_email_subject',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_subject']);
50
+
51
  $subject = $this->email_subject($email_subject,$order_id,$order);
52
+
53
+ $email_to = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_email_to',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_to']);
54
 
55
+ $email_to = explode(",",$email_to);
56
 
57
+ $enable = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_enable_'.$status.'_email','');
58
 
59
+ if($enable == 1){
60
+ foreach($email_to as $email){
61
+ $email_heading = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_email_heading',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_heading']);
62
+
63
+ $email_content = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_email_content',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_content']);
 
 
 
 
 
 
 
 
 
64
 
65
+ $wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_show_tracking_details','');
 
66
 
67
+ $wcast_show_order_details = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_show_order_details','');
68
 
69
+ $wcast_show_billing_address = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_show_billing_address','');
70
 
71
+ $wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_show_shipping_address','');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  $sent_to_admin = false;
74
  $plain_text = false;
75
 
85
  $message = $this->append_analytics_link($email_content,$status);
86
 
87
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
88
+ $tracking_items = $wast->get_tracking_items( $order_id, true );
89
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
90
 
91
+ foreach($tracking_items as $key => $item){
92
+ if($item['tracking_number'] != $tracking_item['tracking_number']){
93
+ unset($tracking_items[$key]);
94
+ }
95
+ }
96
+ //echo '<pre>';print_r($tracking_item);echo '</pre>';exit;
97
+ if($wcast_show_tracking_details == 1){
98
  ob_start();
99
  wc_get_template( 'emails/tracking-info.php', array(
100
+ 'tracking_items' => $tracking_items,
101
+ 'order_id' => $order_id,
102
+ 'show_shipment_status' => false,
103
+ 'new_status' => $new_status,
104
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
105
  $message .= ob_get_clean();
106
  }
107
 
108
+ if($wcast_show_order_details == 1){
 
109
  ob_start();
110
  wc_get_template(
111
  'emails/wcast-email-order-details.php', array(
155
  add_filter( 'wp_mail_from', array( $this, 'get_from_address' ) );
156
  add_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ) );
157
 
158
+ $email_send = wp_mail( $recipient, $subject, $message, $email->get_headers() );
159
+ $logger = wc_get_logger();
160
+ $context = array( 'source' => 'trackship_shipment_status_email_log' );
161
+ $logger->error( "Order_Id: ".$order_id." Shipment_Status: ".$new_status." Email_Sent: " .$email_send, $context );
162
  }
163
  }
164
  }
166
  /**
167
  * code for send delivered shipment status email
168
  */
169
+ public function delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status, $tracking_item){
170
 
171
  $wcast_delivered_customizer_email = new wcast_delivered_customizer_email();
172
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
173
+
174
+ $email_subject = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_email_subject',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_subject']);
175
+
176
  $subject = $this->email_subject($email_subject,$order_id,$order);
177
+
178
+ $email_to = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_email_to',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_to']);
179
+
180
+ $enable = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_enable_delivered_status_email',$wcast_delivered_customizer_email->defaults['wcast_enable_delivered_status_email']);
181
+
182
  $email_to = explode(",",$email_to);
183
 
184
  if($enable == 1){
185
  foreach($email_to as $email){
186
+
187
+ $email_heading = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_email_heading',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_heading']);
188
+
189
+ $email_content = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_email_content',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_content']);
190
+
191
+ $wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_tracking_details',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_tracking_details']);
192
+
193
+ $wcast_show_order_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_order_details',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_order_details']);
194
+
195
+ $wcast_show_billing_address = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_billing_address',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_billing_address']);
196
+
197
+ $wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_shipping_address',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_shipping_address']);
198
+
199
  $sent_to_admin = false;
200
  $plain_text = false;
201
 
211
  $message = $this->append_analytics_link($email_content,$status);
212
 
213
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
214
+ $tracking_items = $wast->get_tracking_items( $order_id, true );
215
+ foreach($tracking_items as $key => $item){
216
+ if($item['tracking_number'] != $tracking_item['tracking_number']){
217
+ unset($tracking_items[$key]);
218
+ }
219
+ }
220
  if($wcast_show_tracking_details == 1){
221
 
222
  ob_start();
223
  wc_get_template( 'emails/tracking-info.php', array(
224
+ 'tracking_items' => $tracking_items,
225
+ 'order_id' => $order_id,
226
+ 'show_shipment_status' => false,
227
+ 'new_status' => $new_status,
228
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
229
  $message .= ob_get_clean();
230
  }
280
  add_filter( 'wp_mail_from', array( $this, 'get_from_address' ) );
281
  add_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ) );
282
 
283
+ $email_send = wp_mail( $recipient, $subject, $message, $email->get_headers() );
284
+
285
+ $logger = wc_get_logger();
286
+ $context = array( 'source' => 'trackship_shipment_status_email_log' );
287
+ $logger->error( "Order_Id: ".$order_id." Shipment_Status: ".$new_status." Email_Sent: " .$email_send, $context );
288
  }
289
  }
290
  }
342
  */
343
  public function email_to($string,$order,$order_id){
344
  $customer_email = $order->get_billing_email();
345
+ $admin_email = get_option('admin_email');
346
+ $string = str_replace( '{admin_email}', $admin_email, $string );
347
+ $string = str_replace( '{customer_email}', $customer_email, $string );
348
+ return $string;
349
  }
350
 
351
  /**
352
  * code for format email content
353
  */
354
+ public function email_content($email_content, $order_id, $order){
355
  $customer_email = $order->get_billing_email();
356
  $first_name = $order->get_billing_first_name();
357
  $last_name = $order->get_billing_last_name();
395
  * code for append analytics link
396
  */
397
  public function append_analytics_link($message,$status){
398
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
399
+ if($status == 'delivered_status'){
400
+ $analytics_link = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_analytics_link','');
401
+ } else{
402
+ $analytics_link = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_analytics_link','');
403
+ }
404
 
405
  if($analytics_link){
406
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
409
  if (strpos($url, '?') === false) {
410
  $url .= '?';
411
  }
412
+ $url .= $analytics_link;
413
  return $match[1].$url.$match[3];
414
  }, $message);
415
  }
421
  */
422
  public function get_est_delivery_date($order_id, $order){
423
  if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
424
+ $tracking_items = get_post_meta( $order_id, '_wc_shipment_tracking_items', true );
 
 
425
  } else {
426
  $order = new WC_Order( $order_id );
427
+ $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
 
428
  }
 
429
 
430
+ $html = '';
431
+ $wc_ast_api_key = get_option('wc_ast_api_key');
432
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
433
  if($tracking_items){
434
+ foreach($tracking_items as $key => $item){
435
+ $tracking_number = $item['tracking_number'];
436
+ if(isset($shipment_status[$key]['est_delivery_date']) && $shipment_status[$key]['est_delivery_date'] != ''){
437
+ $est_delivery_date = $shipment_status[$key]['est_delivery_date'];
438
+ $unixTimestamp = strtotime($est_delivery_date);
439
+ $day = date("l", $unixTimestamp);
440
+ $html .= '<div>Estimated Delivery Date for Tracking Number - '.$tracking_number.'</div><h3 style="margin:0 0 10px;">'.$day.', '.date("M d", strtotime($est_delivery_date)).'</h3>';
 
 
 
 
 
 
 
 
 
 
 
 
441
  }
442
  }
443
  }
includes/emails/class-shipment-delivered-email.php CHANGED
@@ -131,20 +131,24 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
131
  $mailer = WC()->mailer();
132
 
133
  $email_heading = $this->get_heading();
134
- //ob_start();
135
- $email_content = get_theme_mod('wcast_delivered_email_content');
 
 
136
 
137
- $wcast_show_tracking_details = get_theme_mod('wcast_show_tracking_details');
138
- $wcast_show_order_details = get_theme_mod('wcast_show_order_details');
139
- $wcast_show_billing_address = get_theme_mod('wcast_show_billing_address');
140
- $wcast_show_shipping_address = get_theme_mod('wcast_show_shipping_address');
 
 
141
 
142
 
143
 
144
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$order_id,$order);
145
 
146
- $wcast_enable_delivered_ga_tracking = get_theme_mod('wcast_enable_delivered_ga_tracking');
147
- $wcast_delivered_analytics_link = get_theme_mod('wcast_delivered_analytics_link');
148
 
149
  if($wcast_delivered_analytics_link && $wcast_enable_delivered_ga_tracking == 1){
150
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
@@ -155,10 +159,15 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
155
  $sent_to_admin = false;
156
  $plain_text = false;
157
 
 
 
 
 
158
  if($wcast_show_tracking_details == 1){
159
  ob_start();
160
  wc_get_template( 'emails/tracking-info.php', array(
161
- 'tracking_items' => $wast->get_tracking_items( $order_id, true )
 
162
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
163
  $message .= ob_get_clean();
164
  }
@@ -170,11 +179,11 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
170
  'order' => $order,
171
  'sent_to_admin' => $sent_to_admin,
172
  'plain_text' => $plain_text,
173
- 'email' => '',
174
  ),
175
  'woocommerce-advanced-shipment-tracking/',
176
  wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
177
- );
178
  $message .= ob_get_clean();
179
  }
180
 
@@ -203,7 +212,9 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
203
  );
204
  $message .= ob_get_clean();
205
  }
206
-
 
 
207
  // create a new email
208
  $email = new WC_Email();
209
  $email->id = 'WC_Delivered_email';
@@ -219,11 +230,12 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
219
  * code for append analytics link into rl inside email content.
220
  */
221
  public function _appendCampaignToString($match){
 
222
  $url = $match[2];
223
  if (strpos($url, '?') === false) {
224
  $url .= '?';
225
  }
226
- $url .= get_theme_mod('wcast_delivered_analytics_link');
227
  return $match[1].$url.$match[3];
228
  }
229
 
@@ -252,7 +264,7 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
252
  'type' => 'text',
253
  'desc_tip' => true,
254
  /* translators: %s: list of placeholders */
255
- 'description' => sprintf( __( 'Available placeholders: %s', 'woocommerce' ), '<code>{site_title}, {order_date}, {order_number}</code>' ),
256
  'placeholder' => $this->get_default_subject(),
257
  'default' => '',
258
  ),
@@ -261,7 +273,7 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
261
  'type' => 'text',
262
  'desc_tip' => true,
263
  /* translators: %s: list of placeholders */
264
- 'description' => sprintf( __( 'Available placeholders: %s', 'woocommerce' ), '<code>{site_title}, {order_date}, {order_number}</code>' ),
265
  'placeholder' => $this->get_default_heading(),
266
  'default' => '',
267
  ),
131
  $mailer = WC()->mailer();
132
 
133
  $email_heading = $this->get_heading();
134
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
135
+ $wcast_initialise_customizer_email = new wcast_initialise_customizer_email;
136
+ //ob_start();
137
+ $woocommerce_customer_delivered_order_settings = get_option('woocommerce_customer_delivered_order_settings');
138
 
139
+ $email_content = $ast->get_option_value_from_array('woocommerce_customer_delivered_order_settings','wcast_delivered_email_content',$wcast_initialise_customizer_email->defaults['wcast_delivered_email_content']);
140
+
141
+ $wcast_show_tracking_details = $woocommerce_customer_delivered_order_settings['wcast_show_tracking_details'];
142
+ $wcast_show_order_details = $woocommerce_customer_delivered_order_settings['wcast_show_order_details'];
143
+ $wcast_show_billing_address = $woocommerce_customer_delivered_order_settings['wcast_show_billing_address'];
144
+ $wcast_show_shipping_address = $woocommerce_customer_delivered_order_settings['wcast_show_shipping_address'];
145
 
146
 
147
 
148
  $message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$order_id,$order);
149
 
150
+ $wcast_enable_delivered_ga_tracking = $woocommerce_customer_delivered_order_settings['wcast_enable_delivered_ga_tracking'];
151
+ $wcast_delivered_analytics_link = $woocommerce_customer_delivered_order_settings['wcast_delivered_analytics_link'];
152
 
153
  if($wcast_delivered_analytics_link && $wcast_enable_delivered_ga_tracking == 1){
154
  $regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
159
  $sent_to_admin = false;
160
  $plain_text = false;
161
 
162
+ ob_start();
163
+ do_action( 'wcast_email_before_email_content', $order, $sent_to_admin, $plain_text, $this );
164
+ $message .= ob_get_clean();
165
+
166
  if($wcast_show_tracking_details == 1){
167
  ob_start();
168
  wc_get_template( 'emails/tracking-info.php', array(
169
+ 'tracking_items' => $wast->get_tracking_items( $order_id, true ),
170
+ 'order_id' => $order_id
171
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
172
  $message .= ob_get_clean();
173
  }
179
  'order' => $order,
180
  'sent_to_admin' => $sent_to_admin,
181
  'plain_text' => $plain_text,
182
+ 'email' => $this,
183
  ),
184
  'woocommerce-advanced-shipment-tracking/',
185
  wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
186
+ );
187
  $message .= ob_get_clean();
188
  }
189
 
212
  );
213
  $message .= ob_get_clean();
214
  }
215
+ ob_start();
216
+ do_action( 'wcast_email_after_email_content', $order, $sent_to_admin, $plain_text, $this );
217
+ $message .= ob_get_clean();
218
  // create a new email
219
  $email = new WC_Email();
220
  $email->id = 'WC_Delivered_email';
230
  * code for append analytics link into rl inside email content.
231
  */
232
  public function _appendCampaignToString($match){
233
+ $woocommerce_customer_delivered_order_settings = get_option('woocommerce_customer_delivered_order_settings');
234
  $url = $match[2];
235
  if (strpos($url, '?') === false) {
236
  $url .= '?';
237
  }
238
+ $url .= $woocommerce_customer_delivered_order_settings['wcast_delivered_analytics_link'];
239
  return $match[1].$url.$match[3];
240
  }
241
 
264
  'type' => 'text',
265
  'desc_tip' => true,
266
  /* translators: %s: list of placeholders */
267
+ 'description' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_date}, {order_number}',
268
  'placeholder' => $this->get_default_subject(),
269
  'default' => '',
270
  ),
273
  'type' => 'text',
274
  'desc_tip' => true,
275
  /* translators: %s: list of placeholders */
276
+ 'description' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_date}, {order_number}',
277
  'placeholder' => $this->get_default_heading(),
278
  'default' => '',
279
  ),
includes/emails/class-shipment-partial-shipped-email.php CHANGED
@@ -29,8 +29,8 @@ if ( ! class_exists( 'WC_Email_Customer_Partial_Shipped_Order', false ) ) :
29
  public function __construct() {
30
  $this->id = 'customer_partial_shipped_order';
31
  $this->customer_email = true;
32
- $this->title = __( 'Partial Shipped order', 'woocommerce' );
33
- $this->description = __( 'Order partial shipped emails are sent to customers when their orders are marked partial shipped and usually indicate that their orders have been partial shipped.', 'woocommerce' );
34
  $this->template_html = 'emails/customer-partial-shipped-order.php';
35
  $this->template_plain = 'emails/plain/customer-completed-order.php';
36
  $this->placeholders = array(
@@ -89,7 +89,7 @@ if ( ! class_exists( 'WC_Email_Customer_Partial_Shipped_Order', false ) ) :
89
  * @return string
90
  */
91
  public function get_default_heading() {
92
- return __( 'Thanks for shopping with us', 'woocommerce' );
93
  }
94
 
95
  /**
29
  public function __construct() {
30
  $this->id = 'customer_partial_shipped_order';
31
  $this->customer_email = true;
32
+ $this->title = __( 'Partially Shipped order', 'woocommerce' );
33
+ $this->description = __( 'Order partially shipped emails are sent to customers when their orders are marked partially shipped and usually indicate that their orders have been partially shipped.', 'woocommerce' );
34
  $this->template_html = 'emails/customer-partial-shipped-order.php';
35
  $this->template_plain = 'emails/plain/customer-completed-order.php';
36
  $this->placeholders = array(
89
  * @return string
90
  */
91
  public function get_default_heading() {
92
+ return __( 'Your Order is Partially Shipped', 'woocommerce' );
93
  }
94
 
95
  /**
includes/emails/class-shipment-updated-tracking-email.php ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Class WC_Email_Customer_Updated_Tracking_Order file.
4
+ *
5
+ * @package WooCommerce\Emails
6
+ */
7
+
8
+ if ( ! defined( 'ABSPATH' ) ) {
9
+ exit; // Exit if accessed directly.
10
+ }
11
+
12
+ if ( ! class_exists( 'WC_Email_Customer_Updated_Tracking_Order', false ) ) :
13
+
14
+ /**
15
+ * Customer Completed Order Email.
16
+ *
17
+ * Order complete emails are sent to the customer when the order is marked complete and usual indicates that the order has been shipped.
18
+ *
19
+ * @class WC_Email_Customer_Updated_Tracking_Order
20
+ * @version 2.0.0
21
+ * @package WooCommerce/Classes/Emails
22
+ * @extends WC_Email
23
+ */
24
+ class WC_Email_Customer_Updated_Tracking_Order extends WC_Email {
25
+
26
+ /**
27
+ * Constructor.
28
+ */
29
+ public function __construct() {
30
+ $this->id = 'customer_updated_tracking_order';
31
+ $this->customer_email = true;
32
+ $this->title = __( 'Updated Tracking order', 'woocommerce' );
33
+ $this->description = __( 'Order updated tracking emails are sent to customers when their orders are marked updated tracking and usually indicate that their orders have been updated tracking.', 'woocommerce' );
34
+ $this->template_html = 'emails/customer-updated-tracking-order.php';
35
+ $this->template_plain = 'emails/plain/customer-updated-tracking-order.php';
36
+ $this->placeholders = array(
37
+ '{order_date}' => '',
38
+ '{order_number}' => '',
39
+ );
40
+ $this->template_base = AST_TEMPLATE_PATH;
41
+ // Triggers for this email.
42
+ //add_action( 'woocommerce_order_status_completed_notification', array( $this, 'trigger' ), 10, 2 );
43
+
44
+ // Call parent constructor.
45
+ parent::__construct();
46
+ }
47
+
48
+ /**
49
+ * Trigger the sending of this email.
50
+ *
51
+ * @param int $order_id The order ID.
52
+ * @param WC_Order|false $order Order object.
53
+ */
54
+ public function trigger( $order_id, $order = false ) {
55
+ $this->setup_locale();
56
+
57
+ if ( $order_id && ! is_a( $order, 'WC_Order' ) ) {
58
+ $order = wc_get_order( $order_id );
59
+ }
60
+
61
+ if ( is_a( $order, 'WC_Order' ) ) {
62
+ $this->object = $order;
63
+ $this->recipient = $this->object->get_billing_email();
64
+ $this->placeholders['{order_date}'] = wc_format_datetime( $this->object->get_date_created() );
65
+ $this->placeholders['{order_number}'] = $this->object->get_order_number();
66
+ }
67
+
68
+ if ( $this->is_enabled() && $this->get_recipient() ) {
69
+ $this->send( $this->get_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );
70
+ }
71
+
72
+ $this->restore_locale();
73
+ }
74
+
75
+ /**
76
+ * Get email subject.
77
+ *
78
+ * @since 3.1.0
79
+ * @return string
80
+ */
81
+ public function get_default_subject() {
82
+ return __( 'Your {site_title} order is now updated tracking', 'woocommerce' );
83
+ }
84
+
85
+ /**
86
+ * Get email heading.
87
+ *
88
+ * @since 3.1.0
89
+ * @return string
90
+ */
91
+ public function get_default_heading() {
92
+ return __( 'Tracking information Update', 'woocommerce' );
93
+ }
94
+
95
+ /**
96
+ * Get content html.
97
+ *
98
+ * @return string
99
+ */
100
+ public function get_content_html() {
101
+ $template = $this->get_template( 'template_html' );
102
+ $local_file = $this->get_theme_template_file( $template );
103
+ if ( file_exists( $local_file ) && is_writable( $local_file )){
104
+ //echo $local_file;exit;
105
+ return wc_get_template_html(
106
+ $this->template_html,
107
+ array(
108
+ 'order' => $this->object,
109
+ 'email_heading' => $this->get_heading(),
110
+ 'additional_content' => $this->get_additional_content(),
111
+ 'sent_to_admin' => false,
112
+ 'plain_text' => false,
113
+ 'email' => $this,
114
+ )
115
+ );
116
+ } else{
117
+ return wc_get_template_html(
118
+ 'emails/customer-updated-tracking-order.php',
119
+ array(
120
+ 'order' => $this->object,
121
+ 'email_heading' => $this->get_heading(),
122
+ 'additional_content' => $this->get_additional_content(),
123
+ 'sent_to_admin' => false,
124
+ 'plain_text' => false,
125
+ 'email' => $this,
126
+ ),
127
+ 'woocommerce-advanced-shipment-tracking/',
128
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
129
+ );
130
+ }
131
+ }
132
+
133
+ /**
134
+ * Get content plain.
135
+ *
136
+ * @return string
137
+ */
138
+ public function get_content_plain() {
139
+ $template = $this->get_template( 'template_html' );
140
+ $local_file = $this->get_theme_template_file( $template );
141
+ if ( file_exists( $local_file ) && is_writable( $local_file )){
142
+ //echo $local_file;exit;
143
+ return wc_get_template_html(
144
+ $this->template_html,
145
+ array(
146
+ 'order' => $this->object,
147
+ 'email_heading' => $this->get_heading(),
148
+ 'additional_content' => $this->get_additional_content(),
149
+ 'sent_to_admin' => false,
150
+ 'plain_text' => false,
151
+ 'email' => $this,
152
+ )
153
+ );
154
+ } else{
155
+ return wc_get_template_html(
156
+ 'emails/customer-updated-tracking-order.php',
157
+ array(
158
+ 'order' => $this->object,
159
+ 'email_heading' => $this->get_heading(),
160
+ 'additional_content' => $this->get_additional_content(),
161
+ 'sent_to_admin' => false,
162
+ 'plain_text' => false,
163
+ 'email' => $this,
164
+ ),
165
+ 'woocommerce-advanced-shipment-tracking/',
166
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
167
+ );
168
+ }
169
+ }
170
+
171
+ /**
172
+ * Default content to show below main email content.
173
+ *
174
+ * @since 3.7.0
175
+ * @return string
176
+ */
177
+ public function get_default_additional_content() {
178
+ return __( 'Thanks for shopping with us.', 'woocommerce' );
179
+ }
180
+ }
181
+
182
+ endif;
183
+
184
+ return new WC_Email_Customer_Updated_Tracking_Order();
includes/vendor/persist-admin-notices-dismissal/dismiss-notice.js CHANGED
@@ -25,6 +25,43 @@
25
 
26
  // We can also pass the url value separately from ajaxurl for front end AJAX implementations
27
  $.post( ajaxurl, data );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
  );
30
  }
25
 
26
  // We can also pass the url value separately from ajaxurl for front end AJAX implementations
27
  $.post( ajaxurl, data );
28
+
29
+ }
30
+ );
31
+ $( 'div[data-dismissible] a.button-primary' ).click(
32
+ function (event) {
33
+ event.preventDefault();
34
+ var $this = $( this );
35
+
36
+ var attr_value, option_name, dismissible_length, data;
37
+ var href = $(this).attr('href');
38
+ attr_value = $this.parent().attr( 'data-dismissible' ).split( '-' );
39
+
40
+ // remove the dismissible length from the attribute value and rejoin the array.
41
+ dismissible_length = attr_value.pop();
42
+
43
+ option_name = attr_value.join( '-' );
44
+
45
+ data = {
46
+ 'action': 'dismiss_admin_notice',
47
+ 'option_name': option_name,
48
+ 'dismissible_length': dismissible_length,
49
+ 'nonce': dismissible_notice.nonce
50
+ };
51
+
52
+ // We can also pass the url value separately from ajaxurl for front end AJAX implementations
53
+ jQuery.ajax({
54
+ url: ajaxurl,
55
+ data: data,
56
+ type: 'POST',
57
+ success: function(response) {
58
+ window.location.replace(href);
59
+ },
60
+ error: function(response) {
61
+ console.log(response);
62
+ }
63
+ });
64
+
65
  }
66
  );
67
  }
includes/vendor/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php CHANGED
@@ -90,7 +90,7 @@ if ( ! class_exists( 'PAnD' ) ) {
90
  'dismissible-notices',
91
  $js_url,
92
  array( 'jquery', 'common' ),
93
- false,
94
  true
95
  );
96
 
90
  'dismissible-notices',
91
  $js_url,
92
  array( 'jquery', 'common' ),
93
+ wc_advanced_shipment_tracking()->version,
94
  true
95
  );
96
 
includes/views/admin_options_addons.php ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * html code for tools tab
4
+ */
5
+ ?>
6
+ <section id="content6" class="tab_section">
7
+ <div class="d_table" style="">
8
+ <div class="tab_inner_container">
9
+ <form method="post" id="wc_ast_addons_form" class="addons_inner_container" action="" enctype="multipart/form-data">
10
+ <div class="ast_addons_section">
11
+ <table class="form-table heading-table">
12
+ <tbody>
13
+ <tr valign="top" class="addons_header ts_addons_header">
14
+ <td>
15
+ <img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ts-banner.jpg">
16
+ </td>
17
+ </tr>
18
+ <tr valign="top">
19
+ <td>
20
+ <h3 style=""><?php _e( 'TrackShip', 'woo-advanced-shipment-tracking' ); ?></h3>
21
+ </td>
22
+ </tr>
23
+ </tbody>
24
+ </table>
25
+ <table class="form-table">
26
+ <tbody>
27
+ <tr style="height: 140px;">
28
+ <td>
29
+ <?php
30
+ $wc_ast_api_key = get_option('wc_ast_api_key');
31
+ if($wc_ast_api_key){
32
+ echo '<p>';
33
+ _e( 'You are now connected with TrackShip! TrackShip makes it effortless to automate your post shipping operations and get tracking and delivery status updates directly in the WooCommerce admin.', 'woo-advanced-shipment-tracking' );
34
+ echo '</p>';
35
+ } else{ ?>
36
+ <p style="margin-top: 4px;"><?php _e( 'TracksShip is a premium shipment tracking API flatform that fully integrates with WooCommerce with the Advanced Shipment Tracking. TrackShip automates the order management workflows, reduces customer inquiries, reduces time spent on customer service, and improves the post-purchase experience and satisfaction of your customers.', 'woo-advanced-shipment-tracking' ); ?></p>
37
+ <p style="margin-top: 4px;"><?php _e( 'You must have account TracksShip and connect your store in order to activate these advanced features:', 'woo-advanced-shipment-tracking' ); ?></p>
38
+ <?php } ?>
39
+ </td>
40
+ </tr>
41
+ <tr>
42
+ <td class="forminp">
43
+ <?php if($wc_ast_api_key){ ?>
44
+ <fieldset>
45
+ <a href="https://my.trackship.info/" target="_blank" class="button-primary btn_green2 btn_large">
46
+ <span class=""><label><?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></label><span class="dashicons dashicons-yes"></span></span>
47
+ </a>
48
+ </fieldset>
49
+ <?php } else{ ?>
50
+ <fieldset>
51
+ <a href="https://trackship.info/?utm_source=wpadmin&utm_campaign=tspage" target="_blank" class="button-primary btn_ast2 btn_large"><?php _e( 'SIGNUP NOW', 'woo-advanced-shipment-tracking' ); ?></a>
52
+ </fieldset>
53
+ <?php } ?>
54
+ </td>
55
+ </tr>
56
+ </tbody>
57
+ </table>
58
+ </div>
59
+ <div class="ast_addons_section">
60
+ <table class="form-table heading-table">
61
+ <tbody>
62
+ <tr valign="top" class="addons_header tracking_item_addons_header">
63
+ <td>
64
+ <img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/Tracking-Per-Item-addon.jpg">
65
+ </td>
66
+ </tr>
67
+ <tr valign="top">
68
+ <td>
69
+ <h3 style="">Tracking Per Item Add-on</h3>
70
+ </td>
71
+ </tr>
72
+ </tbody>
73
+ </table>
74
+ <?php if ( !is_plugin_active( 'ast-tracking-per-order-items/ast-tracking-per-order-items.php' ) ) {
75
+ ?>
76
+ <table class="form-table">
77
+ <tbody>
78
+ <tr style="height: 140px;">
79
+ <td>
80
+ <p style="margin-top: 4px;"><?php _e( 'The Tracking Per Item add-on extends the AST plugin and allows you to attach tracking numbers to specific line items and to line item quantities.', 'woo-advanced-shipment-tracking' ); ?></p>
81
+ </td>
82
+ </tr>
83
+ </tbody>
84
+ </table>
85
+ <table class="form-table">
86
+ <tbody>
87
+ <tr valign="top">
88
+ <td class="button-column">
89
+ <div class="submit">
90
+ <a href="https://www.zorem.com/shop/tracking-per-item-ast-add-on/" target="blank" class="button-primary btn_ast2 btn_large"><?php _e( 'Get This Add-on >', 'woo-advanced-shipment-tracking' ); ?></a>
91
+ </div>
92
+ </td>
93
+ </tr>
94
+ </tbody>
95
+ </table>
96
+ <?php } else{ ?>
97
+ <div class="license_div">
98
+ <?php
99
+ $this->get_html( $this->get_ast_product_license_data() );
100
+ ?>
101
+ </div>
102
+ <table class="form-table">
103
+ <tbody>
104
+ <tr valign="top">
105
+ <td class="button-column">
106
+ <div class="submit">
107
+ <?php
108
+ //echo $this->licence_valid();
109
+ if( $this->licence_valid() ){ ?>
110
+ <a href="https://www.zorem.com/my-account/manage-license-key/" class="button-primary btn_green2 btn_large" target="blank"><?php _e('Active','woo-advanced-shipment-tracking');?> <span class="dashicons dashicons-yes"></span></a>
111
+ <button name="save" class="button-primary woocommerce-save-button btn_ast2 btn_large" type="submit" value="Deactivate"><?php _e('Deactivate','woo-advanced-shipment-tracking');?></button>
112
+ <?php } else{ ?>
113
+ <button name="save" class="button-primary woocommerce-save-button btn_ast2 btn_large" type="submit" value="Save changes"><?php _e('Activate','woo-advanced-shipment-tracking');?></button>
114
+ <?php }
115
+ ?>
116
+ <p class="pesan"></p>
117
+ <div class="spinner"></div>
118
+ <?php wp_nonce_field( 'wc_ast_addons_form', 'wc_ast_addons_form' );?>
119
+ <input type="hidden" id="ast-license-action" name="action" value="<?=$this->licence_valid() ? 'ast_product_license_deactivate':'ast_product_license_activate';?>" />
120
+ </div>
121
+ </td>
122
+ </tr>
123
+ </tbody>
124
+ </table>
125
+ <?php
126
+ } ?>
127
+ </div>
128
+
129
+ <div class="ast_addons_section">
130
+ <table class="form-table heading-table">
131
+ <tbody>
132
+ <tr valign="top" class="addons_header">
133
+ <td>
134
+ <img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/smswoo.png">
135
+ </td>
136
+ </tr>
137
+ <tr valign="top">
138
+ <td>
139
+ <h3 style="">SMS for WooCommerce</h3>
140
+ </td>
141
+ </tr>
142
+ </tbody>
143
+ </table>
144
+
145
+ <table class="form-table">
146
+ <tbody>
147
+ <tr style="height: 140px;">
148
+ <td>
149
+ <p style="margin-top: 4px;"><?php _e( 'Keep your customers happy by offering automated SMS text messages with order updates via Twilio/Nexmo. Send SMS updates to customers when their order status is updated. You can also manually send SMS messages through the Edit Order screen.', 'woo-advanced-shipment-tracking' ); ?></p>
150
+ </td>
151
+ </tr>
152
+ </tbody>
153
+ </table>
154
+ <table class="form-table">
155
+ <tbody>
156
+ <tr valign="top">
157
+ <td class="button-column">
158
+ <div class="submit">
159
+ <?php
160
+ if( function_exists('SMSWOO') ){
161
+ if ( SMSWOO()->license->get_license_status() ){ ?>
162
+ <button name="save" class="button-primary btn_ast2 btn_large" type="button"><?php _e('Active','woo-advanced-shipment-tracking');?></button>
163
+ <?php } else{ ?>
164
+ <a href="https://www.zorem.com/products/sms-for-woocommerce/" target="blank" class="button-primary btn_ast2 btn_large"><?php _e( 'Get This Add-on >', 'woo-advanced-shipment-tracking' ); ?></a>
165
+ <?php }} else{ ?>
166
+ <a href="https://www.zorem.com/products/sms-for-woocommerce/" target="blank" class="button-primary btn_ast2 btn_large"><?php _e( 'Get This Add-on >', 'woo-advanced-shipment-tracking' ); ?></a>
167
+ <?php } ?>
168
+ </div>
169
+ </td>
170
+ </tr>
171
+ </tbody>
172
+ </table>
173
+ </div>
174
+ </form>
175
+ </div>
176
+ <?php include 'zorem_admin_addons_sidebar.php'; ?>
177
+ </div>
178
+ </section>
includes/views/admin_options_bulk_upload.php CHANGED
@@ -15,6 +15,20 @@
15
  <input type="file" name="trcking_csv_file" id="trcking_csv_file">
16
  </td>
17
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  <tr valign="top" class="">
19
  <th scope="row" class="th_80">
20
  <label for=""><?php _e('Replace tracking info if exists? (if not checked, the tracking info will be added)', 'woo-advanced-shipment-tracking'); ?></label>
@@ -34,14 +48,19 @@
34
  <input type="hidden" name="action" value="wc_ast_upload_csv_form_update">
35
  </div>
36
  </th>
37
- </tr>
38
- </tbody>
39
- </table>
40
- <div id="p1" class="mdl-progress mdl-js-progress" style="display:none;"></div>
41
- <h3 class="progress_title" style="display:none;"><?php _e('Upload Progress - ', 'woo-advanced-shipment-tracking'); ?><span class="progress_number"></span></h3>
42
- <ol class="csv_upload_status">
43
-
44
- </ol>
 
 
 
 
 
45
  <h3 class="table-heading"><?php _e('Sample CSV', 'woo-advanced-shipment-tracking'); ?></h3>
46
  <table class="form-table">
47
  <tbody>
15
  <input type="file" name="trcking_csv_file" id="trcking_csv_file">
16
  </td>
17
  </tr>
18
+ <tr valign="top" class="">
19
+ <th scope="row" class="th_80">
20
+ <label for=""><?php _e('Date Format for CSV import', 'woo-advanced-shipment-tracking'); ?></label>
21
+ </th>
22
+ <td scope="row" class="th_20">
23
+ <?php $date_format = get_option('date_format_for_csv_import','d-m-Y'); ?>
24
+ <label class="ast_radio_label" for="date_format_ddmmyy">
25
+ <input type="radio" <?php if($date_format == 'd-m-Y'){ echo 'checked'; }?> id="date_format_ddmmyy" name="date_format_for_csv_import" class="" value="d-m-Y"/> dd/mm/YYYY
26
+ </label>
27
+ <label class="ast_radio_label" for="date_format_mmddyy">
28
+ <input type="radio" <?php if($date_format == 'm-d-Y'){ echo 'checked'; }?> id="date_format_mmddyy" name="date_format_for_csv_import" class="" value="m-d-Y"/> mm/dd/YYYY
29
+ </label>
30
+ </td>
31
+ </tr>
32
  <tr valign="top" class="">
33
  <th scope="row" class="th_80">
34
  <label for=""><?php _e('Replace tracking info if exists? (if not checked, the tracking info will be added)', 'woo-advanced-shipment-tracking'); ?></label>
48
  <input type="hidden" name="action" value="wc_ast_upload_csv_form_update">
49
  </div>
50
  </th>
51
+ </tr>
52
+ <tr class="bulk_upload_status_tr" style="display:none;">
53
+ <td scope="row" colspan="2">
54
+ <div id="p1" class="mdl-progress mdl-js-progress" style="display:none;"></div>
55
+ <h3 class="progress_title" style="display:none;"><?php _e('Upload Progress - ', 'woo-advanced-shipment-tracking'); ?>
56
+ <span class="progress_number"></span>
57
+ </h3>
58
+ <ol class="csv_upload_status">
59
+ </ol>
60
+ </td>
61
+ </tr>
62
+ </tbody>
63
+ </table>
64
  <h3 class="table-heading"><?php _e('Sample CSV', 'woo-advanced-shipment-tracking'); ?></h3>
65
  <table class="form-table">
66
  <tbody>
includes/views/admin_options_settings.php CHANGED
@@ -59,39 +59,120 @@
59
  <tbody>
60
  <tr valign="top">
61
  <td>
62
- <h3 style=""><?php _e( 'Delivered Order Status', 'woo-advanced-shipment-tracking' ); ?></h3>
63
  </td>
64
  </tr>
65
  </tbody>
66
  </table>
67
- <?php $this->get_html( $this->get_delivered_data() );?>
68
- <p class="description-below-table"><?php echo sprintf(__('<strong>PLEASE NOTE</strong> - If you use the custom order status "Delivered", when you deactivate the plugin, you must register this order status in function.php in order to see these orders in the orders admin. You can find the <a href="%s" target="blank">snippet</a> to use in functions.php here or you can manually change all your "delivered" order to "completed" before deactivating the plugin.', 'woo-advanced-shipment-tracking'), 'https://gist.github.com/zorem/6f09162fe91eab180a76a621ce523441'); ?></p>
69
- <table class="form-table">
70
  <tbody>
71
- <tr valign="top">
72
- <td class="button-column">
73
- <div class="submit">
74
- <button name="save" class="button-primary woocommerce-save-button btn_ast2 btn_large" type="submit" value="Save changes"><?php _e( 'Save Changes', 'woo-advanced-shipment-tracking' ); ?></button>
75
- <div class="spinner"></div>
76
- <?php wp_nonce_field( 'wc_ast_settings_form', 'wc_ast_settings_form' );?>
77
- <input type="hidden" name="action" value="wc_ast_settings_form_update">
78
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  </td>
80
  </tr>
81
- </tbody>
82
- </table>
83
-
84
- <table class="form-table heading-table">
85
- <tbody>
86
- <tr valign="top">
87
- <td>
88
- <h3 style=""><?php _e( 'Partial Shipped Order Status', 'woo-advanced-shipment-tracking' ); ?></h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  </td>
90
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  </tbody>
92
- </table>
93
- <?php $this->get_html( $this->get_partial_shipped_data() );?>
94
- <p class="description-below-table"><?php echo sprintf(__('<strong>PLEASE NOTE</strong> - If you use the custom order status "Partial Shipped", when you deactivate the plugin, you must register this order status in function.php in order to see these orders in the orders admin. You can find the <a href="%s" target="blank">snippet</a> to use in functions.php here or you can manually change all your "partial-shipped" order to "completed" before deactivating the plugin.', 'woo-advanced-shipment-tracking'), 'https://gist.github.com/zorem/acc273dccad16095836b8aab058dbe93'); ?></p>
95
  <table class="form-table">
96
  <tbody>
97
  <tr valign="top">
@@ -105,7 +186,8 @@
105
  </td>
106
  </tr>
107
  </tbody>
108
- </table>
 
109
  </form>
110
  </div>
111
  <?php include 'zorem_admin_sidebar.php';?>
59
  <tbody>
60
  <tr valign="top">
61
  <td>
62
+ <h3 style=""><?php _e( 'Custom Order Statuses', 'woo-advanced-shipment-tracking' ); ?></h3>
63
  </td>
64
  </tr>
65
  </tbody>
66
  </table>
67
+
68
+ <table class="form-table order-status-table">
 
69
  <tbody>
70
+ <tr valign="top" class="<?php if(!get_option('wc_ast_status_delivered')){echo 'disable_row'; } ?>">
71
+ <td class="forminp" style="width: 30px;">
72
+ <span class="mdl-list__item-secondary-action">
73
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wc_ast_status_delivered">
74
+ <input type="hidden" name="wc_ast_status_delivered" value="0"/>
75
+ <input type="checkbox" id="wc_ast_status_delivered" name="wc_ast_status_delivered" class="mdl-switch__input" <?php if(get_option('wc_ast_status_delivered')){echo 'checked'; } ?> value="1"/>
76
+ </label>
77
+ </span>
78
+ </td>
79
+ <td class="forminp status-label-column">
80
+ <span class="order-label wc-delivered"><?php _e( 'Delivered', 'woo-advanced-shipment-tracking' ); ?></span>
81
+ </td>
82
+ <td class="forminp">
83
+ <?php
84
+ $wcast_enable_delivered_email = get_option('woocommerce_customer_delivered_order_settings');
85
+ if($wcast_enable_delivered_email['enabled'] == 'yes' || $wcast_enable_delivered_email['enabled'] == 1){
86
+ $delivered_checked = 'checked';
87
+ } else{
88
+ $delivered_checked = '';
89
+ }
90
+ ?>
91
+ <fieldset>
92
+ <input class="input-text regular-input " type="text" name="wc_ast_status_label_color" id="wc_ast_status_label_color" style="" value="<?php echo get_option('wc_ast_status_label_color')?>" placeholder="">
93
+ <select class="select" id="wc_ast_status_label_font_color" name="wc_ast_status_label_font_color">
94
+ <option value="#fff" <?php if(get_option('wc_ast_status_label_font_color') == '#fff'){ echo 'selected'; }?>><?php _e( 'Light Font', 'woo-advanced-shipment-tracking' ); ?></option>
95
+ <option value="#000" <?php if(get_option('wc_ast_status_label_font_color') == '#000'){ echo 'selected'; }?>><?php _e( 'Dark Font', 'woo-advanced-shipment-tracking' ); ?></option>
96
+ </select>
97
+ <label class="send_email_label">
98
+ <input type="hidden" name="wcast_enable_delivered_email" value="0"/>
99
+ <input type="checkbox" name="wcast_enable_delivered_email" id="wcast_enable_delivered_email" <?php echo $delivered_checked; ?> value="1"><?php _e( 'Send Email', 'woo-advanced-shipment-tracking' ); ?>
100
+ </label>
101
+ <a class='settings_edit' href="<?php echo wcast_initialise_customizer_email::get_customizer_url('customer_delivered_email'); ?>"><?php _e( 'Edit', 'woocommerce' ) ?></a>
102
+ </fieldset>
103
  </td>
104
  </tr>
105
+ <tr valign="top" class="<?php if(!get_option('wc_ast_status_partial_shipped')){echo 'disable_row'; } ?>">
106
+ <td class="forminp" style="width: 30px;">
107
+ <span class="mdl-list__item-secondary-action">
108
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wc_ast_status_partial_shipped">
109
+ <input type="hidden" name="wc_ast_status_partial_shipped" value="0"/>
110
+ <input type="checkbox" id="wc_ast_status_partial_shipped" name="wc_ast_status_partial_shipped" class="mdl-switch__input" <?php if(get_option('wc_ast_status_partial_shipped')){echo 'checked'; } ?> value="1"/>
111
+ </label>
112
+ </span>
113
+ </td>
114
+ <td class="forminp status-label-column">
115
+ <span class="order-label wc-partially-shipped"><?php _e( 'Partially Shipped', 'woo-advanced-shipment-tracking' ); ?></span>
116
+ </td>
117
+ <td class="forminp">
118
+ <?php
119
+ $wcast_enable_partial_shipped_email = get_option('woocommerce_customer_partial_shipped_order_settings');
120
+ if($wcast_enable_partial_shipped_email['enabled'] == 'yes' || $wcast_enable_partial_shipped_email['enabled'] == 1){
121
+ $partial_checked = 'checked';
122
+ } else{
123
+ $partial_checked = '';
124
+ }
125
+ ?>
126
+ <fieldset>
127
+ <input class="input-text regular-input " type="text" name="wc_ast_status_partial_shipped_label_color" id="wc_ast_status_partial_shipped_label_color" style="" value="<?php echo get_option('wc_ast_status_partial_shipped_label_color')?>" placeholder="">
128
+ <select class="select" id="wc_ast_status_partial_shipped_label_font_color" name="wc_ast_status_partial_shipped_label_font_color">
129
+ <option value="#fff" <?php if(get_option('wc_ast_status_partial_shipped_label_font_color') == '#fff'){ echo 'selected'; }?>><?php _e( 'Light Font', 'woo-advanced-shipment-tracking' ); ?></option>
130
+ <option value="#000" <?php if(get_option('wc_ast_status_partial_shipped_label_font_color') == '#000'){ echo 'selected'; }?>><?php _e( 'Dark Font', 'woo-advanced-shipment-tracking' ); ?></option>
131
+ </select>
132
+ <label class="send_email_label">
133
+ <input type="hidden" name="wcast_enable_partial_shipped_email" value="0"/>
134
+ <input type="checkbox" name="wcast_enable_partial_shipped_email" id="wcast_enable_partial_shipped_email" <?php echo $partial_checked; ?> value="1"><?php _e( 'Send Email', 'woo-advanced-shipment-tracking' ); ?></label>
135
+ <a class='settings_edit' href="<?php echo wcast_initialise_customizer_email::get_customizer_url('customer_partial_shipped_email'); ?>"><?php _e( 'Edit', 'woocommerce' ) ?></a>
136
+ </fieldset>
137
  </td>
138
  </tr>
139
+ <tr valign="top" class="<?php if(!get_option('wc_ast_status_updated_tracking')){echo 'disable_row'; } ?>">
140
+ <td class="forminp" style="width: 30px;">
141
+ <span class="mdl-list__item-secondary-action">
142
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wc_ast_status_updated_tracking">
143
+ <input type="hidden" name="wc_ast_status_updated_tracking" value="0"/>
144
+ <input type="checkbox" id="wc_ast_status_updated_tracking" name="wc_ast_status_updated_tracking" class="mdl-switch__input" <?php if(get_option('wc_ast_status_updated_tracking')){echo 'checked'; } ?> value="1"/>
145
+ </label>
146
+ </span>
147
+ </td>
148
+ <td class="forminp status-label-column">
149
+ <span class="order-label wc-updated-tracking"><?php _e( 'Updated Tracking', 'woo-advanced-shipment-tracking' ); ?></span>
150
+ </td>
151
+ <td class="forminp">
152
+ <?php
153
+ $wcast_enable_updated_tracking_email = get_option('woocommerce_customer_updated_tracking_order_settings');
154
+ if($wcast_enable_updated_tracking_email['enabled'] == 'yes' || $wcast_enable_updated_tracking_email['enabled'] == 1){
155
+ $updated_tracking_checked = 'checked';
156
+ } else{
157
+ $updated_tracking_checked = '';
158
+ }
159
+ ?>
160
+ <fieldset>
161
+ <input class="input-text regular-input " type="text" name="wc_ast_status_updated_tracking_label_color" id="wc_ast_status_updated_tracking_label_color" style="" value="<?php echo get_option('wc_ast_status_updated_tracking_label_color')?>" placeholder="">
162
+ <select class="select" id="wc_ast_status_updated_tracking_label_font_color" name="wc_ast_status_updated_tracking_label_font_color">
163
+ <option value="#fff" <?php if(get_option('wc_ast_status_updated_tracking_label_font_color') == '#fff'){ echo 'selected'; }?>><?php _e( 'Light Font', 'woo-advanced-shipment-tracking' ); ?></option>
164
+ <option value="#000" <?php if(get_option('wc_ast_status_updated_tracking_label_font_color') == '#000'){ echo 'selected'; }?>><?php _e( 'Dark Font', 'woo-advanced-shipment-tracking' ); ?></option>
165
+ </select>
166
+ <label class="send_email_label">
167
+ <input type="hidden" name="wcast_enable_updated_tracking_email" value="0"/>
168
+ <input type="checkbox" name="wcast_enable_updated_tracking_email" id="wcast_enable_updated_tracking_email" <?php echo $updated_tracking_checked; ?> value="1"><?php _e( 'Send Email', 'woo-advanced-shipment-tracking' ); ?>
169
+ </label>
170
+ <a class='settings_edit' href="<?php echo wcast_initialise_customizer_email::get_customizer_url('customer_updated_tracking_email'); ?>"><?php _e( 'Edit', 'woocommerce' ) ?></a>
171
+ </fieldset>
172
+ </td>
173
+ </tr>
174
  </tbody>
175
+ </table>
 
 
176
  <table class="form-table">
177
  <tbody>
178
  <tr valign="top">
186
  </td>
187
  </tr>
188
  </tbody>
189
+ </table>
190
+ <p class="description-below-table"><?php echo sprintf(__('<strong>Note:</strong> - If you use the custom order status, when you deactivate the plugin, you must register the order status, otherwise these orders will not display on your orders admin. You can find more information and the code <a href="%s" target="blank">snippet</a> to use in functions.php here.', 'woo-advanced-shipment-tracking'), 'https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/plugin-settings/#code-snippets'); ?></p>
191
  </form>
192
  </div>
193
  <?php include 'zorem_admin_sidebar.php';?>
includes/views/admin_options_shipping_provider.php CHANGED
@@ -13,19 +13,20 @@
13
  <a href="javaScript:void(0);" data-status="inactive"><?php _e( 'Inactive', 'woo-advanced-shipment-tracking'); ?></a>
14
  <a href="javaScript:void(0);" data-status="custom"><?php _e( 'Custom', 'woo-advanced-shipment-tracking'); ?></a>
15
  <a href="javaScript:void(0);" data-status="all"><?php _e( 'All', 'woocommerce'); ?></a>
16
- </div>
17
- <div class="provider_settings dropdown">
18
- <span class="dashicons dashicons-admin-generic dropdown_menu"></span>
19
- </div>
20
- <ul class="dropdown-content">
21
- <li><a href="javaScript:void(0);" class="add_custom_provider" id="add-custom"><?php _e( 'Add Custom Provider', 'woo-advanced-shipment-tracking'); ?></a></li>
22
- <li><a href="javaScript:void(0);" class="sync_providers"><?php _e( 'Sync Shipping Providers', 'woo-advanced-shipment-tracking'); ?></a></a></li>
23
- <li><?php _e( 'Reset', 'woo-advanced-shipment-tracking'); ?> <a href="javaScript:void(0);" class="reset_active"><?php _e( 'Active', 'woo-advanced-shipment-tracking'); ?></a> | <a href="javaScript:void(0);" class="reset_inactive"><?php _e( 'Inactive', 'woo-advanced-shipment-tracking'); ?></a></li>
24
- </ul>
25
  <div class="search_section">
26
  <span class="dashicons dashicons-search search-icon"></span>
27
  <input class="provider_search_bar " type="text" name="search_provider" id="search_provider" placeholder="<?php _e( 'Search by provider / country', 'woo-advanced-shipment-tracking'); ?>">
28
  </div>
 
 
 
 
 
 
 
 
29
  </div>
30
  <div class="provider_list">
31
  <?php
@@ -121,10 +122,13 @@
121
  <div>
122
  <input type="text" name="tracking_url" id="tracking_url" placeholder="Tracking URL">
123
  </div>
124
- <div>
 
 
 
125
  <input type="hidden" name="action" value="add_custom_shipment_provider">
126
  <input type="submit" name="Submit" value="Submit" class="button-primary btn_ast2 btn_large">
127
- </div>
128
  </form>
129
  </div>
130
  <div class="popupclose"></div>
@@ -155,11 +159,14 @@
155
  <div>
156
  <input type="text" name="tracking_url" id="tracking_url" placeholder="Tracking URL">
157
  </div>
158
- <div>
 
 
 
159
  <input type="hidden" name="action" value="update_custom_shipment_provider">
160
  <input type="hidden" name="provider_id" id="provider_id" value="">
161
  <input type="submit" name="Submit" value="Update" class="button-primary btn_ast2 btn_large">
162
- </div>
163
  </form>
164
  </div>
165
  <div class="popupclose"></div>
13
  <a href="javaScript:void(0);" data-status="inactive"><?php _e( 'Inactive', 'woo-advanced-shipment-tracking'); ?></a>
14
  <a href="javaScript:void(0);" data-status="custom"><?php _e( 'Custom', 'woo-advanced-shipment-tracking'); ?></a>
15
  <a href="javaScript:void(0);" data-status="all"><?php _e( 'All', 'woocommerce'); ?></a>
16
+ </div>
17
+
 
 
 
 
 
 
 
18
  <div class="search_section">
19
  <span class="dashicons dashicons-search search-icon"></span>
20
  <input class="provider_search_bar " type="text" name="search_provider" id="search_provider" placeholder="<?php _e( 'Search by provider / country', 'woo-advanced-shipment-tracking'); ?>">
21
  </div>
22
+
23
+ <div class="provider_settings">
24
+ <ul class="provider_settings_ul">
25
+ <li><?php _e( 'Reset all:', 'woo-advanced-shipment-tracking'); ?> <a href="javaScript:void(0);" class="reset_active"><?php _e( 'Active', 'woo-advanced-shipment-tracking'); ?></a> | <a href="javaScript:void(0);" class="reset_inactive"><?php _e( 'Inactive', 'woo-advanced-shipment-tracking'); ?></a></li>
26
+ <li><a href="javaScript:void(0);" class="sync_providers tooltip"><span class="dashicons dashicons-update"></span><span class="tooltiptext tooltip-top"><?php _e( 'Sync Shipping Providers', 'woo-advanced-shipment-tracking'); ?></span></a></li>
27
+ <li><a href="javaScript:void(0);" class="add_custom_provider tooltip" id="add-custom"><span class="dashicons dashicons-plus-alt"></span><span class="tooltiptext tooltip-top"><?php _e( 'Add Custom Provider', 'woo-advanced-shipment-tracking'); ?></span></a></li>
28
+ </ul>
29
+ </div>
30
  </div>
31
  <div class="provider_list">
32
  <?php
122
  <div>
123
  <input type="text" name="tracking_url" id="tracking_url" placeholder="Tracking URL">
124
  </div>
125
+ <div class="custom_provider_instruction">
126
+ <a href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/setting-shipping-providers/#adding-custom-shipping-provider" target="blank"><?php _e( 'How to add Tracking URL' , 'woo-advanced-shipment-tracking'); ?></a>
127
+ </div>
128
+ <p>
129
  <input type="hidden" name="action" value="add_custom_shipment_provider">
130
  <input type="submit" name="Submit" value="Submit" class="button-primary btn_ast2 btn_large">
131
+ </p>
132
  </form>
133
  </div>
134
  <div class="popupclose"></div>
159
  <div>
160
  <input type="text" name="tracking_url" id="tracking_url" placeholder="Tracking URL">
161
  </div>
162
+ <div class="custom_provider_instruction">
163
+ <a href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/setting-shipping-providers/#adding-custom-shipping-provider" target="blank"><?php _e( 'How to add Tracking URL' , 'woo-advanced-shipment-tracking'); ?></a>
164
+ </div>
165
+ <p>
166
  <input type="hidden" name="action" value="update_custom_shipment_provider">
167
  <input type="hidden" name="provider_id" id="provider_id" value="">
168
  <input type="submit" name="Submit" value="Update" class="button-primary btn_ast2 btn_large">
169
+ </p>
170
  </form>
171
  </div>
172
  <div class="popupclose"></div>
includes/views/admin_options_tools.php CHANGED
@@ -2,33 +2,32 @@
2
  /**
3
  * html code for tools tab
4
  */
5
-
6
  ?>
7
- <section id="content5" class="tab_section">
8
- <div class="d_table" style="">
9
- <div class="tab_inner_container">
10
- <table class="form-table heading-table">
11
- <tbody>
12
- <tr valign="top">
13
- <td>
14
- <h3 style=""><?php _e( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ); ?></h3>
15
- </td>
16
- </tr>
17
- </tbody>
18
- </table>
19
- <table class="form-table">
20
- <tbody>
21
- <tr>
22
- <td>
23
- <p><?php _e( 'You can send all your orders from the last 30 days to get shipment status from TrackShip:', 'woo-advanced-shipment-tracking' ); ?></p>
24
- </td>
25
- </tr>
26
- </tbody>
27
- </table>
28
- <?php $this->get_html( $this->get_trackship_bulk_actions_data() ); ?>
 
 
29
  </div>
30
- <?php
31
- if($wc_ast_api_key){ include 'zorem_admin_sidebar.php'; }
32
- ?>
33
  </div>
 
34
  </section>
2
  /**
3
  * html code for tools tab
4
  */
 
5
  ?>
6
+ <section id="content_tools" class="inner_tab_section">
7
+ <div class="tab_inner_container">
8
+ <div class="d_table" style="">
9
+ <div class="tab_inner_container">
10
+ <table class="form-table heading-table">
11
+ <tbody>
12
+ <tr valign="top">
13
+ <td>
14
+ <h3 style=""><?php _e( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ); ?></h3>
15
+ </td>
16
+ </tr>
17
+ </tbody>
18
+ </table>
19
+ <table class="form-table">
20
+ <tbody>
21
+ <tr>
22
+ <td>
23
+ <p><?php _e( 'You can send all your orders from the last 30 days to get shipment status from TrackShip:', 'woo-advanced-shipment-tracking' ); ?></p>
24
+ </td>
25
+ </tr>
26
+ </tbody>
27
+ </table>
28
+ <?php $this->get_html( $this->get_trackship_bulk_actions_data() ); ?>
29
+ </div>
30
  </div>
 
 
 
31
  </div>
32
+ <?php include 'zorem_admin_sidebar.php'; ?>
33
  </section>
includes/views/admin_options_trackship_integration.php CHANGED
@@ -7,9 +7,23 @@
7
  <section id="content3" class="tab_section">
8
  <div class="d_table" style="">
9
  <div class="tab_inner_container">
10
- <form method="post" id="wc_ast_trackship_form" action="" enctype="multipart/form-data">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  <?php
12
- $wc_ast_api_key = get_option('wc_ast_api_key');
13
 
14
  if($wc_ast_api_key){
15
  $url = 'https://my.trackship.info/wp-json/tracking/get_user_plan';
@@ -17,228 +31,23 @@
17
  'user_key' => $wc_ast_api_key,
18
  );
19
  $response = wp_remote_post( $url, $args );
20
- $plan_data = json_decode($response['body']);
21
- ?>
22
-
23
- <table class="form-table heading-table">
24
- <tbody>
25
- <tr valign="top">
26
- <td><h3 style=""><?php _e( 'Connection status', 'woo-advanced-shipment-tracking' ); ?></h3></td>
27
- </tr>
28
- </tbody>
29
- </table>
30
- <table class="form-table">
31
- <tbody>
32
- <tr valign="top">
33
- <td><label><?php _e( 'TrackShip Connection Status', 'woo-advanced-shipment-tracking' ); ?></label></td>
34
- <td class="forminp">
35
- <fieldset>
36
- <a href="https://my.trackship.info/" target="_blank">
37
- <span class="api_connected"><label><?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></label><span class="dashicons dashicons-yes"></span></span>
38
- </a>
39
- </fieldset>
40
- </td>
41
- </tr>
42
- <tr valign="top">
43
- <td><label><?php _e( 'Trackers Balance', 'woo-advanced-shipment-tracking' ); ?></label></td>
44
- <td class="forminp">
45
- <fieldset>
46
- <strong><?php echo get_option('trackers_balance'); ?></strong>
47
- </fieldset>
48
- </td>
49
- </tr>
50
- <tr valign="top">
51
- <td><label><?php _e( 'Current Plan', 'woo-advanced-shipment-tracking' ); ?></label></td>
52
- <td class="forminp">
53
- <fieldset>
54
- <strong>
55
- <?php
56
- if(isset($plan_data->subscription_plan)){
57
- echo $plan_data->subscription_plan;
58
- }
59
- ?>
60
- </strong>
61
- </fieldset>
62
- </td>
63
- </tr>
64
- <tr valign="top">
65
- <td colspan="2">
66
- <?php _e( 'You are now connected with TrackShip! TrackShip makes it effortless to automate your post shipping operations and get tracking and delivery status updates directly in the WooCommerce admin.', 'woo-advanced-shipment-tracking' ); ?>
67
- </td>
68
- </tr>
69
- <tr valign="top">
70
- <td colspan="2">
71
- <a href="https://trackship.info/documentation/" class="" style="margin-right: 10px;" target="blank"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a>
72
- <a href="https://my.trackship.info/" class="" target="blank"><?php _e( 'TrackShip Dashboard', 'woo-advanced-shipment-tracking' ); ?></a>
73
- </td>
74
- </tr>
75
- </tbody>
76
- </table>
77
-
78
- <table class="form-table heading-table">
79
- <tbody>
80
- <tr valign="top">
81
- <td>
82
- <h3 style=""><?php _e( 'General Settings', 'woo-advanced-shipment-tracking' ); ?></h3>
83
- </td>
84
- </tr>
85
- </tbody>
86
- </table>
87
- <?php $this->get_html( $this->get_trackship_general_data() ); ?>
88
- <table class="form-table">
89
- <tbody>
90
- <tr valign="top">
91
- <td class="button-column">
92
- <div class="submit">
93
- <button name="save" class="button-primary woocommerce-save-button btn_ast2 btn_large" type="submit" value="Save changes"><?php _e( 'Save Changes', 'woo-advanced-shipment-tracking' ); ?></button>
94
- <div class="spinner"></div>
95
- <?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form' );?>
96
- <input type="hidden" name="action" value="wc_ast_trackship_form_update">
97
- </div>
98
- </td>
99
- </tr>
100
- </tbody>
101
- </table>
102
 
103
- <table class="form-table heading-table">
104
- <tbody>
105
- <tr valign="top">
106
- <td>
107
- <h3 style=""><?php _e( 'Tracking Page', 'woo-advanced-shipment-tracking' ); ?></h3>
108
- </td>
109
- </tr>
110
- </tbody>
111
- </table>
112
- <?php $this->get_html( $this->get_trackship_page_data() ); ?>
113
- <table class="form-table">
114
- <tbody>
115
- <tr valign="top">
116
- <td>
117
- <a href="<?php echo get_home_url(); ?>?action=preview_tracking_page" class="tracking-preview-link" target="_blank" style="line-height: 30px;"><?php _e('Click to preview the tracking page', 'woo-advanced-shipment-tracking'); ?></a>
118
- <p class="tracking-preview-desc"><?php _e('PLEASE NOTE - make sure to save your settings before preview.', 'woo-advanced-shipment-tracking'); ?></p>
119
- </td>
120
- </tr>
121
- <tr valign="top">
122
- <td class="button-column">
123
- <div class="submit">
124
- <button name="save" class="button-primary woocommerce-save-button btn_ast2 btn_large" type="submit" value="Save changes"><?php _e( 'Save Changes', 'woo-advanced-shipment-tracking' ); ?></button>
125
- <div class="spinner"></div>
126
- <?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form' );?>
127
- <input type="hidden" name="action" value="wc_ast_trackship_form_update">
128
- </div>
129
- </td>
130
- </tr>
131
- </tbody>
132
- </table>
133
- <?php
134
- if($wc_ast_api_key){
135
- ?>
136
- <?php } ?>
137
- <h3 class="table-heading"><?php _e('Shipment Status Notifications ', 'woo-advanced-shipment-tracking'); ?></h3>
138
  <?php
139
- $wcast_enable_delivered_email = get_option('woocommerce_customer_delivered_order_settings');
140
- $wcast_enable_pretransit_email = get_theme_mod('wcast_enable_pretransit_email');
141
- $wcast_enable_intransit_email = get_theme_mod('wcast_enable_intransit_email');
142
- $wcast_enable_outfordelivery_email = get_theme_mod('wcast_enable_outfordelivery_email');
143
- $wcast_enable_failure_email = get_theme_mod('wcast_enable_failure_email');
144
- $wcast_enable_delivered_status_email = get_theme_mod('wcast_enable_delivered_status_email');
145
- $wcast_enable_returntosender_email = get_theme_mod('wcast_enable_returntosender_email');
146
- $wcast_enable_availableforpickup_email = get_theme_mod('wcast_enable_availableforpickup_email');
147
- $wc_ast_api_key = get_option('wc_ast_api_key');
148
- //echo '<pre>';print_r($wcast_enable_delivered_email['enabled']);echo '</pre>';
149
- ?>
150
- <section class="ac-container">
151
-
152
- <div class="headig_label <?php if($wcast_enable_intransit_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
153
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/In-Transit-512.png">
154
- <span class="email_status_span">
155
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
156
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_intransit_email">
157
- <input type="checkbox" name="wcast_enable_intransit_email" id="wcast_enable_intransit_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_intransit_email == 1) { echo 'checked'; } ?> />
158
- </label>
159
- </span>
160
- </span>
161
- <a href="<?php echo wcast_intransit_customizer_email::get_customizer_url('customer_intransit_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('In Transit', 'woo-advanced-shipment-tracking'); ?></a>
162
- <a class="edit_customizer_a" href="<?php echo wcast_intransit_customizer_email::get_customizer_url('customer_intransit_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
163
- <p class="shipment_about"><?php _e('Carrier has accepted or picked up shipment from shipper. The shipment is on the way.', 'woo-advanced-shipment-tracking'); ?></p>
164
- </div>
165
-
166
- <div class="headig_label <?php if($wcast_enable_returntosender_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
167
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/return-to-sender-512.png">
168
- <span class="email_status_span">
169
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
170
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_returntosender_email">
171
- <input type="checkbox" name="wcast_enable_returntosender_email" id="wcast_enable_returntosender_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_returntosender_email == 1) { echo 'checked'; } ?> />
172
- </label>
173
- </span>
174
- </span>
175
- <a href="<?php echo wcast_returntosender_customizer_email::get_customizer_url('customer_returntosender_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Return To Sender', 'woo-advanced-shipment-tracking'); ?></a>
176
- <a class="edit_customizer_a" href="<?php echo wcast_returntosender_customizer_email::get_customizer_url('customer_returntosender_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
177
- <p class="shipment_about"><?php _e('Shipment is returned to sender', 'woo-advanced-shipment-tracking'); ?></p>
178
- </div>
179
-
180
- <div class="headig_label <?php if($wcast_enable_availableforpickup_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
181
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/available-for-picup-512.png">
182
- <span class="email_status_span">
183
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
184
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_availableforpickup_email">
185
- <input type="checkbox" name="wcast_enable_availableforpickup_email" id="wcast_enable_availableforpickup_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_availableforpickup_email == 1) { echo 'checked'; } ?> />
186
- </label>
187
- </span>
188
- </span>
189
- <a href="<?php echo wcast_availableforpickup_customizer_email::get_customizer_url('customer_availableforpickup_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Available For Pickup', 'woo-advanced-shipment-tracking'); ?></a>
190
- <a class="edit_customizer_a" href="<?php echo wcast_availableforpickup_customizer_email::get_customizer_url('customer_availableforpickup_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
191
- <p class="shipment_about"><?php _e('The shipment is ready to pickup.', 'woo-advanced-shipment-tracking'); ?></p>
192
- </div>
193
- <div class="headig_label <?php if($wcast_enable_outfordelivery_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
194
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Out-for-Delivery-512.png">
195
- <span class="email_status_span">
196
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
197
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_outfordelivery_email">
198
- <input type="checkbox" name="wcast_enable_outfordelivery_email" id="wcast_enable_outfordelivery_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_outfordelivery_email == 1) { echo 'checked'; } ?> />
199
- </label>
200
- </span>
201
- </span>
202
- <a href="<?php echo wcast_outfordelivery_customizer_email::get_customizer_url('customer_outfordelivery_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Out For Delivery', 'woo-advanced-shipment-tracking'); ?></a>
203
- <a class="edit_customizer_a" href="<?php echo wcast_outfordelivery_customizer_email::get_customizer_url('customer_outfordelivery_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
204
- <p class="shipment_about"><?php _e('Carrier is about to deliver the shipment', 'woo-advanced-shipment-tracking'); ?></p>
205
- </div>
206
-
207
- <div class="delivered_shipment_label headig_label <?php if($wcast_enable_delivered_status_email == 1){ echo 'enable'; } else{ echo 'disable'; }?> <?php if($wcast_enable_delivered_email['enabled'] === 'yes' && get_option('wc_ast_status_delivered') == 1){ echo 'delivered_enabel'; } ?>">
208
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Delivered-512.png">
209
- <span class="email_status_span">
210
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
211
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_delivered_status_email">
212
- <input type="checkbox" name="wcast_enable_delivered_status_email" id="wcast_enable_delivered_status_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_delivered_status_email == 1 && $wcast_enable_delivered_email['enabled'] != 'yes') { echo 'checked'; } ?> <?php if($wcast_enable_delivered_email['enabled'] === 'yes' && get_option('wc_ast_status_delivered') == 1){ echo 'disabled'; }?> />
213
- </label>
214
- </span>
215
- </span>
216
- <a href="<?php echo wcast_delivered_customizer_email::get_customizer_url('customer_delivered_status_email','shipment-status-notifications') ?>" class="email_heading <?php if($wcast_enable_delivered_email['enabled'] === 'yes' && get_option('wc_ast_status_delivered') == 1){ echo 'disabled_link'; }?>"><?php _e('Delivered', 'woo-advanced-shipment-tracking'); ?></a>
217
- <a class="edit_customizer_a <?php if($wcast_enable_delivered_email['enabled'] === 'yes' && get_option('wc_ast_status_delivered') == 1){ echo 'disabled_link'; }?>" href="<?php echo wcast_delivered_customizer_email::get_customizer_url('customer_delivered_status_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
218
- <p class="shipment_about"><?php _e('The shipment was delivered successfully', 'woo-advanced-shipment-tracking'); ?></p>
219
- <p class="delivered_message <?php if($wcast_enable_delivered_email['enabled'] === 'yes' && get_option('wc_ast_status_delivered') == 1){ echo 'disable_delivered'; }?>"><?php _e("You already have delivered email enabled, to enable this email you'll need to disable the order status delivered in settings.", 'woo-advanced-shipment-tracking'); ?></p>
220
- </div>
221
-
222
- <div class="headig_label <?php if($wcast_enable_failure_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
223
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/failure-512.png">
224
- <span class="email_status_span">
225
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
226
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_failure_email">
227
- <input type="checkbox" name="wcast_enable_failure_email" id="wcast_enable_failure_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_failure_email == 1) { echo 'checked'; } ?> />
228
- </label>
229
- </span>
230
- </span>
231
- <a href="<?php echo wcast_failure_customizer_email::get_customizer_url('customer_failure_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Failed Attempt', 'woo-advanced-shipment-tracking'); ?></a>
232
- <a class="edit_customizer_a" href="<?php echo wcast_failure_customizer_email::get_customizer_url('customer_failure_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
233
- <p class="shipment_about"><?php _e('Carrier attempted to deliver but failed, and usually leaves a notice and will try to deliver the package again.', 'woo-advanced-shipment-tracking'); ?></p>
234
- </div>
235
- </section>
236
-
237
  <?php } else{ ?>
238
  <div class="section-content trackship_section">
239
  <div class="trackship-upsell-overlay">
240
  <div class="trackship-upsell-top">
241
- <h3><img src="https://trackship.info/wp-content/uploads/2019/08/trackship-400.png" class="trackship_logo"></h3>
242
  <p class="trackship-upsell-subtitle">TracksShip is a premium shipment tracking API flatform that fully integrates with WooCommerce with the Advanced Shipment Tracking. TrackShip automates the order management workflows, reduces customer inquiries, reduces time spent on customer service, and improves the post-purchase experience and satisfaction of your customers.</p>
243
  <p class="trackship-upsell-subtitle">You must have account TracksShip and connect your store in order to activate these advanced features:</p>
244
  </div>
@@ -257,13 +66,8 @@
257
  </div>
258
  </div>
259
  <?php }
260
- ?>
261
  </form>
262
  </div>
263
- <?php
264
- if($wc_ast_api_key){
265
- include 'zorem_admin_sidebar.php';
266
- }
267
- ?>
268
  </div>
269
  </section>
7
  <section id="content3" class="tab_section">
8
  <div class="d_table" style="">
9
  <div class="tab_inner_container">
10
+ <?php $wc_ast_api_key = get_option('wc_ast_api_key');
11
+ if($wc_ast_api_key){
12
+ ?>
13
+ <input id="tab_trackship_dashboard" type="radio" name="inner_tabs" class="inner_tab_input" data-tab="trackship-dashboard" checked>
14
+ <label for="tab_trackship_dashboard" class="inner_tab_label"><?php _e('Dashboard', 'woocommerce'); ?></label>
15
+
16
+ <input id="tab_tracking_page" type="radio" name="inner_tabs" class="inner_tab_input" data-tab="tracking-page" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'tracking-page'){ echo 'checked'; } ?>>
17
+ <label for="tab_tracking_page" class="inner_tab_label tracking_page_label"><?php _e('Tracking Page', 'woo-advanced-shipment-tracking'); ?></label>
18
+
19
+ <input id="tab_status_notifications" type="radio" name="inner_tabs" class="inner_tab_input" data-tab="notifications" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'notifications'){ echo 'checked'; } ?>>
20
+ <label for="tab_status_notifications" class="inner_tab_label"><?php _e('Notifications', 'woo-advanced-shipment-tracking'); ?></label>
21
+
22
+ <input id="tab_tools" type="radio" name="inner_tabs" class="inner_tab_input" data-tab="tools" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'tools'){ echo 'checked'; } ?>>
23
+ <label for="tab_tools" class="inner_tab_label"><?php _e('Tools', 'woo-advanced-shipment-tracking'); ?></label>
24
+ <?php } ?>
25
+ <form method="post" id="wc_ast_trackship_form" action="" enctype="multipart/form-data">
26
  <?php
 
27
 
28
  if($wc_ast_api_key){
29
  $url = 'https://my.trackship.info/wp-json/tracking/get_user_plan';
31
  'user_key' => $wc_ast_api_key,
32
  );
33
  $response = wp_remote_post( $url, $args );
34
+ if ( is_wp_error( $response ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
+ } else{
37
+ $plan_data = json_decode($response['body']);
38
+ }
39
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  <?php
41
+ require_once( 'admin_trackship_dashboard.php' );
42
+ require_once( 'admin_tracking_page_settings.php' );
43
+ require_once( 'admin_status_notifications.php' );
44
+ require_once( 'admin_options_tools.php' );
45
+ ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  <?php } else{ ?>
47
  <div class="section-content trackship_section">
48
  <div class="trackship-upsell-overlay">
49
  <div class="trackship-upsell-top">
50
+ <h3><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/trackship-logo.png" class="trackship_logo"></h3>
51
  <p class="trackship-upsell-subtitle">TracksShip is a premium shipment tracking API flatform that fully integrates with WooCommerce with the Advanced Shipment Tracking. TrackShip automates the order management workflows, reduces customer inquiries, reduces time spent on customer service, and improves the post-purchase experience and satisfaction of your customers.</p>
52
  <p class="trackship-upsell-subtitle">You must have account TracksShip and connect your store in order to activate these advanced features:</p>
53
  </div>
66
  </div>
67
  </div>
68
  <?php }
69
+ ?>
70
  </form>
71
  </div>
 
 
 
 
 
72
  </div>
73
  </section>
includes/views/admin_status_notifications.php ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <section id="content_status_notifications" class="inner_tab_section">
2
+ <div class="tab_inner_container">
3
+ <h3 class="table-heading"><?php _e('Shipment Status Notifications ', 'woo-advanced-shipment-tracking'); ?></h3>
4
+ <?php
5
+ $wcast_enable_delivered_email = get_option('woocommerce_customer_delivered_order_settings');
6
+ $wcast_enable_pretransit_email = get_theme_mod('wcast_enable_pretransit_email');
7
+ $wcast_enable_intransit_email = get_theme_mod('wcast_enable_intransit_email');
8
+ $wcast_enable_outfordelivery_email = get_theme_mod('wcast_enable_outfordelivery_email');
9
+ $wcast_enable_failure_email = get_theme_mod('wcast_enable_failure_email');
10
+ $wcast_enable_delivered_status_email = get_theme_mod('wcast_enable_delivered_status_email');
11
+ $wcast_enable_returntosender_email = get_theme_mod('wcast_enable_returntosender_email');
12
+ $wcast_enable_availableforpickup_email = get_theme_mod('wcast_enable_availableforpickup_email');
13
+ $wcast_enable_late_shipments_email = get_theme_mod('wcast_enable_late_shipments_admin_email');
14
+ ?>
15
+ <section class="ac-container">
16
+
17
+ <div class="headig_label <?php if($wcast_enable_intransit_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
18
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/In-Transit-512.png">
19
+ <span class="email_status_span">
20
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
21
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_intransit_email">
22
+ <input type="checkbox" name="wcast_enable_intransit_email" id="wcast_enable_intransit_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_intransit_email == 1) { echo 'checked'; } ?> />
23
+ </label>
24
+ </span>
25
+ </span>
26
+ <a href="<?php echo wcast_intransit_customizer_email::get_customizer_url('customer_intransit_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('In Transit', 'woo-advanced-shipment-tracking'); ?></a>
27
+ <a class="edit_customizer_a" href="<?php echo wcast_intransit_customizer_email::get_customizer_url('customer_intransit_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
28
+ <p class="shipment_about"><?php _e('Carrier has accepted or picked up shipment from shipper. The shipment is on the way.', 'woo-advanced-shipment-tracking'); ?></p>
29
+ </div>
30
+
31
+ <div class="headig_label <?php if($wcast_enable_returntosender_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
32
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/return-to-sender-512.png">
33
+ <span class="email_status_span">
34
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
35
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_returntosender_email">
36
+ <input type="checkbox" name="wcast_enable_returntosender_email" id="wcast_enable_returntosender_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_returntosender_email == 1) { echo 'checked'; } ?> />
37
+ </label>
38
+ </span>
39
+ </span>
40
+ <a href="<?php echo wcast_returntosender_customizer_email::get_customizer_url('customer_returntosender_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Return To Sender', 'woo-advanced-shipment-tracking'); ?></a>
41
+ <a class="edit_customizer_a" href="<?php echo wcast_returntosender_customizer_email::get_customizer_url('customer_returntosender_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
42
+ <p class="shipment_about"><?php _e('Shipment is returned to sender', 'woo-advanced-shipment-tracking'); ?></p>
43
+ </div>
44
+
45
+ <div class="headig_label <?php if($wcast_enable_availableforpickup_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
46
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/available-for-picup-512.png">
47
+ <span class="email_status_span">
48
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
49
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_availableforpickup_email">
50
+ <input type="checkbox" name="wcast_enable_availableforpickup_email" id="wcast_enable_availableforpickup_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_availableforpickup_email == 1) { echo 'checked'; } ?> />
51
+ </label>
52
+ </span>
53
+ </span>
54
+ <a href="<?php echo wcast_availableforpickup_customizer_email::get_customizer_url('customer_availableforpickup_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Available For Pickup', 'woo-advanced-shipment-tracking'); ?></a>
55
+ <a class="edit_customizer_a" href="<?php echo wcast_availableforpickup_customizer_email::get_customizer_url('customer_availableforpickup_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
56
+ <p class="shipment_about"><?php _e('The shipment is ready to pickup.', 'woo-advanced-shipment-tracking'); ?></p>
57
+ </div>
58
+ <div class="headig_label <?php if($wcast_enable_outfordelivery_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
59
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Out-for-Delivery-512.png">
60
+ <span class="email_status_span">
61
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
62
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_outfordelivery_email">
63
+ <input type="checkbox" name="wcast_enable_outfordelivery_email" id="wcast_enable_outfordelivery_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_outfordelivery_email == 1) { echo 'checked'; } ?> />
64
+ </label>
65
+ </span>
66
+ </span>
67
+ <a href="<?php echo wcast_outfordelivery_customizer_email::get_customizer_url('customer_outfordelivery_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Out For Delivery', 'woo-advanced-shipment-tracking'); ?></a>
68
+ <a class="edit_customizer_a" href="<?php echo wcast_outfordelivery_customizer_email::get_customizer_url('customer_outfordelivery_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
69
+ <p class="shipment_about"><?php _e('Carrier is about to deliver the shipment', 'woo-advanced-shipment-tracking'); ?></p>
70
+ </div>
71
+
72
+ <div class="delivered_shipment_label headig_label <?php if($wcast_enable_delivered_status_email == 1){ echo 'enable'; } else{ echo 'disable'; }?> <?php if($wcast_enable_delivered_email['enabled'] === 'yes' && get_option('wc_ast_status_delivered') == 1){ echo 'delivered_enabel'; } ?>">
73
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Delivered-512.png">
74
+ <span class="email_status_span">
75
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
76
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_delivered_status_email">
77
+ <input type="checkbox" name="wcast_enable_delivered_status_email" id="wcast_enable_delivered_status_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_delivered_status_email == 1 && $wcast_enable_delivered_email['enabled'] != 'yes') { echo 'checked'; } ?> <?php if($wcast_enable_delivered_email['enabled'] === 'yes' && get_option('wc_ast_status_delivered') == 1){ echo 'disabled'; }?> />
78
+ </label>
79
+ </span>
80
+ </span>
81
+ <a href="<?php echo wcast_delivered_customizer_email::get_customizer_url('customer_delivered_status_email','shipment-status-notifications') ?>" class="email_heading <?php if($wcast_enable_delivered_email['enabled'] === 'yes' && get_option('wc_ast_status_delivered') == 1){ echo 'disabled_link'; }?>"><?php _e('Delivered', 'woo-advanced-shipment-tracking'); ?></a>
82
+ <a class="edit_customizer_a <?php if($wcast_enable_delivered_email['enabled'] === 'yes' && get_option('wc_ast_status_delivered') == 1){ echo 'disabled_link'; }?>" href="<?php echo wcast_delivered_customizer_email::get_customizer_url('customer_delivered_status_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
83
+ <p class="shipment_about"><?php _e('The shipment was delivered successfully', 'woo-advanced-shipment-tracking'); ?></p>
84
+ <p class="delivered_message <?php if($wcast_enable_delivered_email['enabled'] === 'yes' && get_option('wc_ast_status_delivered') == 1){ echo 'disable_delivered'; }?>"><?php _e("You already have delivered email enabled, to enable this email you'll need to disable the order status delivered in settings.", 'woo-advanced-shipment-tracking'); ?></p>
85
+ </div>
86
+
87
+ <div class="headig_label <?php if($wcast_enable_failure_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
88
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/failure-512.png">
89
+ <span class="email_status_span">
90
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
91
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_failure_email">
92
+ <input type="checkbox" name="wcast_enable_failure_email" id="wcast_enable_failure_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_failure_email == 1) { echo 'checked'; } ?> />
93
+ </label>
94
+ </span>
95
+ </span>
96
+ <a href="<?php echo wcast_failure_customizer_email::get_customizer_url('customer_failure_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Failed Attempt', 'woo-advanced-shipment-tracking'); ?></a>
97
+ <a class="edit_customizer_a" href="<?php echo wcast_failure_customizer_email::get_customizer_url('customer_failure_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
98
+ <p class="shipment_about"><?php _e('Carrier attempted to deliver but failed, and usually leaves a notice and will try to deliver the package again.', 'woo-advanced-shipment-tracking'); ?></p>
99
+ </div>
100
+ </section>
101
+ <?php do_action( 'after_shipment_status_email_notifications' ); ?>
102
+ <h3 class="table-heading"><?php _e('Admin Notifications ', 'woo-advanced-shipment-tracking'); ?></h3>
103
+ <section class="ac-container">
104
+ <div class="headig_label <?php if($wcast_enable_late_shipments_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
105
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Late-Shipments-512.png">
106
+ <span class="email_status_span">
107
+ <span class="mdl-list__item-secondary-action">
108
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_late_shipments_admin_email">
109
+ <input type="checkbox" name="wcast_enable_late_shipments_admin_email" id="wcast_enable_late_shipments_admin_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_late_shipments_email == 1) { echo 'checked'; } ?> />
110
+ </label>
111
+ </span>
112
+ </span>
113
+ <a href="<?php echo wcast_late_shipments_customizer_email::get_customizer_url('admin_late_shipments_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Late Shipments', 'woo-advanced-shipment-tracking'); ?></a>
114
+ <a class="edit_customizer_a" href="<?php echo wcast_late_shipments_customizer_email::get_customizer_url('admin_late_shipments_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
115
+ <p class="shipment_about"><?php _e('If a shipment reached the number of days that you define, and the shipment is not "delivered" or "Returned to Sender" than email will trigger', 'woo-advanced-shipment-tracking'); ?></p>
116
+ </div>
117
+ </section>
118
+ </div>
119
+ <?php include 'zorem_admin_sidebar.php'; ?>
120
+ </section>
includes/views/admin_tracking_page_settings.php ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <section id="content_tracking_page" class="inner_tab_section">
2
+ <div class="tab_inner_container">
3
+ <table class="form-table heading-table">
4
+ <tbody>
5
+ <tr valign="top">
6
+ <td>
7
+ <h3 style=""><?php _e( 'Tracking Page', 'woo-advanced-shipment-tracking' ); ?></h3>
8
+ </td>
9
+ <td style="width: 40px;">
10
+ <span class="mdl-list__item-secondary-action">
11
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wc_ast_use_tracking_page">
12
+ <input type="hidden" name="wc_ast_use_tracking_page" value="0"/>
13
+ <input type="checkbox" id="wc_ast_use_tracking_page" name="wc_ast_use_tracking_page" class="mdl-switch__input" <?php if(get_option('wc_ast_use_tracking_page') == 1){ echo 'checked'; } ?> value="1"/>
14
+ </label>
15
+ </span>
16
+ </td>
17
+ </tr>
18
+ </tbody>
19
+ </table>
20
+ <table class="form-table tracking_page_table">
21
+ <tbody>
22
+ <tr valign="top" class="">
23
+ <th scope="row" class="titledesc" style="width: 21%;">
24
+ <label><?php _e( 'Select Tracking Page', 'woo-advanced-shipment-tracking' ); ?></label>
25
+ </th>
26
+ <td>
27
+ <?php $page_list = wp_list_pluck( get_pages(), 'post_title', 'ID' ); ?>
28
+ <select class="select select2" id="wc_ast_trackship_page_id" name="wc_ast_trackship_page_id">
29
+ <?php
30
+ foreach($page_list as $page_id => $page_name){ ?>
31
+ <option <?php if(get_option('wc_ast_trackship_page_id') == $page_id){ echo 'selected'; }?> value="<?php echo $page_id; ?>"><?php echo $page_name; ?></option>
32
+ <?php } ?>
33
+ </select>
34
+ </td>
35
+ </tr>
36
+ <tr valign="top">
37
+ <td class="forminp" colspan="2">
38
+ <fieldset>
39
+ <span class="tracking_page_desc"><?php _e( 'Note - If you select a different page than the Shipment Tracking page, add the [wcast-track-order] shortcode to the selected page content.', 'woo-advanced-shipment-tracking' ); ?> <a href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/integration/" target="blank"><?php _e( 'more info', 'woo-advanced-shipment-tracking' ); ?></a></span>
40
+ </fieldset>
41
+ </td>
42
+ </tr>
43
+ </tbody>
44
+ </table>
45
+ <table class="form-table tracking_page_table tracking-layout-table">
46
+ <tbody>
47
+ <tr valign="top" class="">
48
+ <th scope="row" class="titledesc" style="width: 55%;vertical-align: top;">
49
+ <h3 style="margin: 0"><?php _e( 'Tracking Page Layout', 'woo-advanced-shipment-tracking' ); ?></h3>
50
+ <span class="select_t_layout_section">
51
+ <input type="radio" name="wc_ast_select_tracking_page_layout" id="t_layout_1" value="t_layout_1" class="radio-img" <?php if(get_option('wc_ast_select_tracking_page_layout','t_layout_1') == 't_layout_1'){ echo 'checked'; } ?>/>
52
+ <label for="t_layout_1">
53
+ <img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/t_layout_1.jpg"/>
54
+ </label>
55
+ </span>
56
+ <span class="select_t_layout_section">
57
+ <input type="radio" name="wc_ast_select_tracking_page_layout" id="t_layout_2" value="t_layout_2" <?php if(get_option('wc_ast_select_tracking_page_layout','t_layout_1') == 't_layout_2'){ echo 'checked'; } ?> class="radio-img" />
58
+ <label for="t_layout_2">
59
+ <img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/t_layout_2.jpg"/>
60
+ </label>
61
+ </span>
62
+ </th>
63
+ <td class="forminp" style="padding-top: 40px;">
64
+ <div>
65
+ <label class="tracking_color_label">
66
+ <span style="margin-right: 20px;"><?php _e( 'Text Color', 'woo-advanced-shipment-tracking' ); ?></span>
67
+ <span class="">
68
+ <input class="input-text regular-input" type="text" name="wc_ast_select_primary_color" id="wc_ast_select_primary_color" style="" value="<?php echo get_option('wc_ast_select_primary_color')?>" >
69
+ </span>
70
+ </label></br></br>
71
+ <label class="tracking_color_label">
72
+ <span style="margin-right: 3px;"><?php _e( 'Border color', 'woo-advanced-shipment-tracking' ); ?></span>
73
+ <span class="">
74
+ <input class="input-text regular-input" type="text" name="wc_ast_select_border_color" id="wc_ast_select_border_color" style="" value="<?php echo get_option('wc_ast_select_border_color')?>" >
75
+ </span>
76
+ </label>
77
+ </div>
78
+ </br>
79
+ <div class="tracking_layout_options_div">
80
+ <label>
81
+ <input type="hidden" name="wc_ast_hide_tracking_provider_image" value="0"/>
82
+ <input type="checkbox" name="wc_ast_hide_tracking_provider_image" value="1" id="wc_ast_hide_tracking_provider_image" <?php if(get_option('wc_ast_hide_tracking_provider_image') == 1){ echo 'checked'; } ?>>
83
+ <?php _e( 'Hide Shipping Provider Image', 'woo-advanced-shipment-tracking' ); ?>
84
+ </label>
85
+ <label>
86
+ <input type="hidden" name="wc_ast_hide_tracking_events" value="0"/>
87
+ <input type="checkbox" name="wc_ast_hide_tracking_events" value="1" id="wc_ast_hide_tracking_events" <?php if(get_option('wc_ast_hide_tracking_events') == 1){ echo 'checked'; } ?>>
88
+ <?php _e( 'Hide tracking event details', 'woo-advanced-shipment-tracking' ); ?>
89
+ </label>
90
+ <label>
91
+ <input type="hidden" name="wc_ast_remove_trackship_branding" value="0"/>
92
+ <input type="checkbox" name="wc_ast_remove_trackship_branding" value="1" id="wc_ast_remove_trackship_branding" <?php if(get_option('wc_ast_remove_trackship_branding') == 1){ echo 'checked'; } ?>>
93
+ <?php _e( 'Remove TrackShip branding', 'woo-advanced-shipment-tracking' ); ?>
94
+ </label>
95
+ </div>
96
+ </td>
97
+ </tr>
98
+ <tr valign="top">
99
+ <td class="button-column" colspan="2">
100
+ <div class="submit">
101
+ <button name="save" class="button-primary woocommerce-save-button btn_ast2 btn_large" type="submit" value="Save changes"><?php _e( 'Save Changes', 'woo-advanced-shipment-tracking' ); ?></button>
102
+ <div class="spinner"></div>
103
+ <?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form' );?>
104
+ <input type="hidden" name="action" value="wc_ast_trackship_form_update">
105
+ </div>
106
+ </td>
107
+ </tr>
108
+ <tr valign="top" class="tracking_page_table tracking_preview_tr">
109
+ <td colspan="2">
110
+ <h3 style="margin: 0"><strong><?php _e( 'Preview', 'woo-advanced-shipment-tracking' ); ?></strong></h3>
111
+ <iframe id="tracking_preview_iframe" class="tracking_preview_iframe" src="<?php echo get_home_url(); ?>?action=preview_tracking_page" class="tracking-preview-link"></iframe>
112
+ </td>
113
+ </tr>
114
+ </tbody>
115
+ </table>
116
+ <table class="form-table tracking-layout-table tracking_save_table">
117
+ <tbody>
118
+ <tr valign="top">
119
+ <td class="button-column" colspan="2">
120
+ <div class="submit">
121
+ <button name="save" class="button-primary woocommerce-save-button btn_ast2 btn_large" type="submit" value="Save changes"><?php _e( 'Save Changes', 'woo-advanced-shipment-tracking' ); ?></button>
122
+ <div class="spinner"></div>
123
+ <?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form' );?>
124
+ <input type="hidden" name="action" value="wc_ast_trackship_form_update">
125
+ </div>
126
+ </td>
127
+ </tr>
128
+ </tbody>
129
+ </table>
130
+ </div>
131
+ <?php include 'zorem_admin_sidebar.php'; ?>
132
+ </section>
includes/views/admin_trackship_dashboard.php ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <section id="content_trackship_dashboard" class="inner_tab_section">
2
+ <div class="tab_inner_container">
3
+ <table class="form-table heading-table">
4
+ <tbody>
5
+ <tr valign="top">
6
+ <td><h3 style=""><?php _e( 'Connection status', 'woo-advanced-shipment-tracking' ); ?></h3></td>
7
+ </tr>
8
+ </tbody>
9
+ </table>
10
+ <table class="form-table">
11
+ <tbody>
12
+ <tr valign="top">
13
+ <td><label><?php _e( 'TrackShip Connection Status', 'woo-advanced-shipment-tracking' ); ?></label></td>
14
+ <td class="forminp">
15
+ <fieldset>
16
+ <a href="https://my.trackship.info/" target="_blank">
17
+ <span class="api_connected"><label><?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></label><span class="dashicons dashicons-yes"></span></span>
18
+ </a>
19
+ </fieldset>
20
+ </td>
21
+ </tr>
22
+ <tr valign="top">
23
+ <td><label><?php _e( 'Trackers Balance', 'woo-advanced-shipment-tracking' ); ?></label></td>
24
+ <td class="forminp">
25
+ <fieldset>
26
+ <strong><?php echo get_option('trackers_balance'); ?></strong>
27
+ </fieldset>
28
+ </td>
29
+ </tr>
30
+ <tr valign="top">
31
+ <td><label><?php _e( 'Current Plan', 'woo-advanced-shipment-tracking' ); ?></label></td>
32
+ <td class="forminp">
33
+ <fieldset>
34
+ <strong>
35
+ <?php
36
+ if(isset($plan_data->subscription_plan)){
37
+ echo $plan_data->subscription_plan;
38
+ }
39
+ ?>
40
+ </strong>
41
+ </fieldset>
42
+ </td>
43
+ </tr>
44
+ <tr valign="top">
45
+ <td colspan="2">
46
+ <?php _e( 'You are now connected with TrackShip! TrackShip makes it effortless to automate your post shipping operations and get tracking and delivery status updates directly in the WooCommerce admin.', 'woo-advanced-shipment-tracking' ); ?>
47
+ </td>
48
+ </tr>
49
+ <tr valign="top">
50
+ <td colspan="2">
51
+ <a href="https://trackship.info/documentation/" class="" style="margin-right: 10px;" target="blank"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a>
52
+ <a href="https://my.trackship.info/" class="" target="blank"><?php _e( 'TrackShip Dashboard', 'woo-advanced-shipment-tracking' ); ?></a>
53
+ </td>
54
+ </tr>
55
+ </tbody>
56
+ </table>
57
+
58
+ <table class="form-table heading-table">
59
+ <tbody>
60
+ <tr valign="top">
61
+ <td>
62
+ <h3 style=""><?php _e( 'General Settings', 'woo-advanced-shipment-tracking' ); ?></h3>
63
+ </td>
64
+ </tr>
65
+ </tbody>
66
+ </table>
67
+ <?php $this->get_html( $this->get_trackship_general_data() ); ?>
68
+ <table class="form-table">
69
+ <tbody>
70
+ <tr valign="top">
71
+ <td class="button-column">
72
+ <div class="submit">
73
+ <button name="save" class="button-primary woocommerce-save-button btn_ast2 btn_large" type="submit" value="Save changes"><?php _e( 'Save Changes', 'woo-advanced-shipment-tracking' ); ?></button>
74
+ <div class="spinner"></div>
75
+ <?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form' );?>
76
+ <input type="hidden" name="action" value="wc_ast_trackship_form_update">
77
+ </div>
78
+ </td>
79
+ </tr>
80
+ </tbody>
81
+ </table>
82
+ </div>
83
+ <?php include 'zorem_admin_sidebar.php'; ?>
84
+ </section>
includes/views/zorem_admin_addons_sidebar.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * html code for admin sidebar
4
+ */
5
+ ?>
6
+ <div class="zorem_admin_sidebar">
7
+ <div class="zorem_admin_sidebar_inner">
8
+ <?php $wc_ast_api_key = get_option('wc_ast_api_key'); ?>
9
+ <div class="zorem-sidebar__section">
10
+ <h3 class="top-border">Your opinion matters to us!</h3>
11
+ <p>If you enjoy using The Advanced Shipment Tracking plugin, please take a minute and <a href="https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/reviews/#new-post" target="_blank">share your review</a>
12
+ </p>
13
+ </div>
14
+
15
+ <div class="zorem-sidebar__section">
16
+ <h3 class="top-border">More plugins by zorem</h3>
17
+ <?php
18
+ $plugin_list = $this->get_zorem_pluginlist();
19
+ ?>
20
+ <ul>
21
+ <?php foreach($plugin_list as $plugin){
22
+ if( 'Advanced Shipment Tracking for WooCommerce' != $plugin->title && 'Tracking Per Item Add-on' != $plugin->title) {
23
+ ?>
24
+ <li><img class="plugin_thumbnail" src="<?php echo $plugin->image_url; ?>"><a class="plugin_url" href="<?php echo $plugin->url; ?>" target="_blank"><?php echo $plugin->title; ?></a></li>
25
+ <?php }
26
+ }?>
27
+ </ul>
28
+ </div>
29
+ </div>
30
+ </div>
includes/views/zorem_admin_sidebar.php CHANGED
@@ -4,42 +4,54 @@
4
  */
5
  ?>
6
  <div class="zorem_admin_sidebar">
7
- <div class="ts_launch zorem-sidebar__section">
8
- <h3>Your opinion matters to us!</h3>
9
- <p>If you enjoy using advanced shipment tracking plugin, please take a minute to review the plugin</br>
10
- <span>Thanks :)</span>
11
- </p>
12
- <a href="https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/reviews/#new-post" class="button button-primary btn_ast1 btn_large" target="_blank"><span>Share your review >></span><i class="icon-angle-right"></i></a>
13
- </div>
14
-
15
- <?php
16
- $wc_ast_api_key = get_option('wc_ast_api_key');
17
-
18
- if(!$wc_ast_api_key){
19
- ?>
20
- <div class="ts_launch zorem-sidebar__section">
21
- <h3 style="padding: 12px 15px 7px;"><img src="https://trackship.info/wp-content/uploads/2019/08/trackship-400.png" class="sidebar_ts_logo" style="max-width: 60%;"></h3>
22
- <p>TrackShip supports 100+ carriers and seamlessly integrates with WooCommerce to automate your post shipping operations.</br>
23
- </p>
24
- <a href="https://trackship.info/?utm_source=wpadmin&utm_campaign=astsidebar" class="button button-primary btn_green2 btn_large" target="_blank"><span>Try TrackShip for free!</span><i class="icon-angle-right"></i></a>
 
 
 
 
 
 
 
 
 
 
25
  </div>
26
- <?php } ?>
27
-
28
- <div class="zorem-sidebar__section">
29
- <h3>More plugins by zorem</h3>
30
- <?php
31
- $response = wp_remote_get('https://www.zorem.com/wp-json/pluginlist/v1' );
32
- if ( is_array( $response ) ) {
33
- $plugin_list = json_decode($response['body']);
34
- ?>
35
- <ul>
36
- <?php foreach($plugin_list as $plugin){
37
- if( 'Advanced Shipment Tracking for WooCommerce' != $plugin->title ) {
38
- ?>
39
- <li><img class="plugin_thumbnail" src="<?php echo $plugin->image_url; ?>"><a class="plugin_url" href="<?php echo $plugin->url; ?>" target="_blank"><?php echo $plugin->title; ?></a></li>
40
- <?php }
41
- }?>
42
- </ul>
43
- <?php } ?>
44
- </div>
 
 
45
  </div>
4
  */
5
  ?>
6
  <div class="zorem_admin_sidebar">
7
+ <div class="zorem_admin_sidebar_inner">
8
+ <?php $wc_ast_api_key = get_option('wc_ast_api_key'); ?>
9
+ <div class="zorem-sidebar__section">
10
+ <h3>AST Add-ons</h3>
11
+ <div class="sidebar_addon_inner">
12
+ <img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/Tracking-Per-Item-addon-sidebar.png" class="sidebar_addon_logo">
13
+ <div class="addon_button_div">
14
+ <?php if ( !is_plugin_active( 'ast-tracking-per-order-items/ast-tracking-per-order-items.php' ) ) { ?>
15
+ <a href="https://www.zorem.com/shop/tracking-per-item-ast-add-on/?utm_source=wp-admin&utm_medium=sidebar&utm_campaign=upgrade" target="blank" class="button button-primary btn_ast2 addon_widget_button"><?php _e( 'Get This Add-on >', 'woo-advanced-shipment-tracking' ); ?></a>
16
+ <?php } else{
17
+ if($this->licence_valid()){ ?>
18
+ <a href="https://www.zorem.com/my-account/manage-license-key/?utm_source=wp-admin&utm_medium=sidebar&utm_campaign=upgrade" class="button button-primary btn_green2 addon_widget_button" target="blank"><?php _e('Active','woo-advanced-shipment-tracking');?> <span class="dashicons dashicons-yes"></span></a>
19
+ <?php } else{ ?>
20
+ <a href="https://www.zorem.com/shop/tracking-per-item-ast-add-on/?utm_source=wp-admin&utm_medium=sidebar&utm_campaign=upgrade" target="blank" class="button button-primary btn_ast2 addon_widget_button"><?php _e( 'Get This Add-on >', 'woo-advanced-shipment-tracking' ); ?></a>
21
+ <?php }
22
+ } ?>
23
+ </div>
24
+ </div>
25
+ <div class="sidebar_addon_inner">
26
+ <img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/trackship-sidebar-addons.png" class="sidebar_addon_logo">
27
+ <div class="addon_button_div">
28
+ <?php if(!$wc_ast_api_key){ ?>
29
+ <a href="https://trackship.info/?utm_source=wp-admin&utm_medium=sidebar&utm_campaign=upgrade" class="button button-primary btn_ast2 addon_widget_button" target="_blank"><span><?php _e( 'Upgrade to PRO', 'woo-advanced-shipment-tracking' ); ?></span><i class="icon-angle-right"></i></a>
30
+ <?php } else{ ?>
31
+ <a href="https://my.trackship.info/?utm_source=wp-admin&utm_medium=sidebar&utm_campaign=upgrade" class="button button-primary btn_green2 addon_widget_button" target="_blank"><span><?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></span><i class="icon-angle-right"></i></a>
32
+ <?php } ?>
33
+ </div>
34
+ </div>
35
  </div>
36
+ <div class="zorem-sidebar__section">
37
+ <h3 class="top-border">Your opinion matters to us!</h3>
38
+ <p>If you enjoy using The Advanced Shipment Tracking plugin, please take a minute and <a href="https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/reviews/#new-post" target="_blank">share your review</a>
39
+ </p>
40
+ </div>
41
+
42
+ <div class="zorem-sidebar__section">
43
+ <h3 class="top-border">More plugins by zorem</h3>
44
+ <?php
45
+ $plugin_list = $this->get_zorem_pluginlist();
46
+ ?>
47
+ <ul>
48
+ <?php foreach($plugin_list as $plugin){
49
+ if( 'Advanced Shipment Tracking for WooCommerce' != $plugin->title && 'Tracking Per Item Add-on' != $plugin->title) {
50
+ ?>
51
+ <li><img class="plugin_thumbnail" src="<?php echo $plugin->image_url; ?>"><a class="plugin_url" href="<?php echo $plugin->url; ?>" target="_blank"><?php echo $plugin->title; ?></a></li>
52
+ <?php }
53
+ }?>
54
+ </ul>
55
+ </div>
56
+ </div>
57
  </div>
includes/views/zorem_admin_ts_sidebar.php DELETED
@@ -1,32 +0,0 @@
1
- <?php
2
- /**
3
- * html code for trackip tab sidebar
4
- */
5
- ?>
6
- <div class="zorem_admin_sidebar">
7
- <div class="ts_launch zorem-sidebar__section">
8
- <img src="https://trackship.info/wp-content/uploads/2019/08/trackship-400.png" alt="" style="max-width: 60%;">
9
-
10
- <p><a href="https://my.trackship.info" target="_blank" class="button button-primary btn_green" target="_blank"><span><?php _e( 'Dashboard', 'woocommerce' ); ?></span><i class="icon-angle-right"></i></a></p>
11
-
12
- <p><a href="https://trackship.info/documentation/" target="_blank" class="button button-primary btn_green" target="_blank"><span><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></span><i class="icon-angle-right"></i></a></p>
13
- </div>
14
-
15
- <div class="zorem-sidebar__section">
16
- <h3>More plugins by zorem</h3>
17
- <?php
18
- $response = wp_remote_get('https://www.zorem.com/wp-json/pluginlist/v1' );
19
- if ( is_array( $response ) ) {
20
- $plugin_list = json_decode($response['body']);
21
- ?>
22
- <ul>
23
- <?php foreach($plugin_list as $plugin){
24
- if( 'Advanced Shipment Tracking for WooCommerce' != $plugin->title ) {
25
- ?>
26
- <li><img class="plugin_thumbnail" src="<?php echo $plugin->image_url; ?>"><a class="plugin_url" href="<?php echo $plugin->url; ?>" target="_blank"><?php echo $plugin->title; ?></a></li>
27
- <?php }
28
- }?>
29
- </ul>
30
- <?php } ?>
31
- </div>
32
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/woo-advanced-shipment-tracking-bg_BG.mo CHANGED
Binary file
lang/woo-advanced-shipment-tracking-bg_BG.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2019-11-01 10:06+0000\n"
6
- "PO-Revision-Date: 2019-11-01 10:06+0000\n"
7
- "Last-Translator: gaurav <gaurav1092@zorem.com>\n"
8
  "Language-Team: Bulgarian\n"
9
  "Language: bg_BG\n"
10
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
@@ -12,9 +12,9 @@ msgstr ""
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
- "X-Loco-Version: 2.3.1; wp-5.2.4"
16
 
17
- #: woocommerce-advanced-shipment-tracking.php:114
18
  #, php-format
19
  msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
@@ -23,24 +23,365 @@ msgstr ""
23
  "Моля, инсталирайте и активирайте% sWooCommerce% s за усъвършенствано "
24
  "проследяване на пратки в WooCommerce!"
25
 
26
- #: woocommerce-advanced-shipment-tracking.php:223
27
  #, php-format
28
  msgid "Your order was shipped with %s and your tracking code is: %s"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
- #: woocommerce-advanced-shipment-tracking.php:430
32
- #: includes/views/admin_options_settings.php:68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  #, php-format
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  msgid ""
35
- "<strong>PLEASE NOTE</strong> - If you use the custom order status "
36
- "\"Delivered\", when you deactivate the plugin, you must register this order "
37
- "status in function.php in order to see these orders in the orders admin. You "
38
- "can find the <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
39
- "php here or you can manually change all your \"delivered\" order to "
40
- "\"completed\" before deactivating the plugin."
41
  msgstr ""
 
 
42
 
43
- #: includes/class-wc-advanced-shipment-tracking-front.php:150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  msgid ""
45
  "To track your order please enter your Order ID in the box below and press "
46
  "the \"Track\" button. This was given to you on your receipt and in the "
@@ -50,252 +391,321 @@ msgstr ""
50
  "долу и натиснете бутона \"Track\". Това ви беше дадено в касовата бележка и "
51
  "в имейла за потвърждение, който трябваше да получите.\n"
52
 
53
- #: includes/class-wc-advanced-shipment-tracking-front.php:151
54
- #: includes/class-wc-advanced-shipment-tracking-front.php:152
55
  msgid "Found in your order confirmation email."
56
  msgstr ""
57
  "Намерен в имейла за потвърждение на поръчката.\n"
58
 
59
- #: includes/class-wc-advanced-shipment-tracking-front.php:152
60
  msgid "Order Email"
61
  msgstr ""
62
  "Имейл за поръчка\n"
63
 
64
- #: includes/class-wc-advanced-shipment-tracking-front.php:155
65
- #: includes/class-wc-advanced-shipment-tracking.php:276
66
- #: includes/class-wc-advanced-shipment-tracking.php:701
67
- #: includes/class-wc-advanced-shipment-tracking.php:826
68
  #: includes/customizer/class-wc-tracking-info-customizer.php:147
69
- #: includes/customizer/class-wc-tracking-info-customizer.php:444
70
- #: templates/emails/tracking-info.php:174
71
- #: templates/myaccount/tracking-info.php:125
72
  msgid "Track"
73
  msgstr "път"
74
 
75
- #: includes/class-wc-advanced-shipment-tracking-front.php:233
76
- #: includes/class-wc-advanced-shipment-tracking-front.php:510
 
 
77
  #, php-format
78
  msgid "Shipment - %s (out of %s)"
79
  msgstr ""
80
  "Пратка -% s (от% s)\n"
81
 
82
- #: includes/class-wc-advanced-shipment-tracking-front.php:246
83
- #: includes/class-wc-advanced-shipment-tracking-front.php:250
84
- #: includes/class-wc-advanced-shipment-tracking-front.php:523
85
- #: includes/class-wc-advanced-shipment-tracking-front.php:527
86
- msgid "Estimated Delivery Date: "
87
- msgstr "Очаквана дата за доставка:"
 
 
 
 
 
 
 
 
88
 
89
- #: includes/class-wc-advanced-shipment-tracking-front.php:359
90
- #: includes/class-wc-advanced-shipment-tracking-front.php:636
91
- #: includes/class-wc-advanced-shipment-tracking-front.php:812
92
  msgid "Tracking Details"
93
  msgstr "Детайли за проследяване"
94
 
95
- #: includes/class-wc-advanced-shipment-tracking-front.php:378
96
- #: includes/class-wc-advanced-shipment-tracking-front.php:655
97
- #: includes/class-wc-advanced-shipment-tracking-front.php:833
 
98
  msgid "view more"
99
  msgstr "Виж повече"
100
 
101
- #: includes/class-wc-advanced-shipment-tracking-front.php:379
102
- #: includes/class-wc-advanced-shipment-tracking-front.php:656
103
- #: includes/class-wc-advanced-shipment-tracking-front.php:834
 
104
  msgid "view less"
105
  msgstr "вижте по-малко"
106
 
107
- #: includes/class-wc-advanced-shipment-tracking-front.php:387
108
- #: includes/class-wc-advanced-shipment-tracking-front.php:664
109
- msgid "Tracking details not found in TrackShip"
110
- msgstr ""
111
-
112
- #: includes/class-wc-advanced-shipment-tracking-front.php:747
113
- msgid "Estimated Delivery Date"
114
- msgstr ""
115
-
116
  #: includes/class-wc-advanced-shipment-tracking.php:95
117
- #: includes/class-wc-advanced-shipment-tracking.php:260
118
  #: includes/customizer/class-wcast-customizer.php:31
119
  msgid "Shipment Tracking"
120
  msgstr "Проследяване на пратките"
121
 
122
  #: includes/class-wc-advanced-shipment-tracking.php:184
123
- #: includes/class-wc-advanced-shipment-tracking.php:374
 
124
  msgid "Mark as Shipped?"
125
- msgstr ""
126
-
127
- #: includes/class-wc-advanced-shipment-tracking.php:185
128
- msgid "Shipped"
129
- msgstr ""
130
 
131
  #: includes/class-wc-advanced-shipment-tracking.php:187
132
- #: includes/class-wc-advanced-shipment-tracking.php:377
 
133
  msgid "Mark as Completed?"
134
- msgstr ""
135
 
136
  #: includes/class-wc-advanced-shipment-tracking.php:188
 
137
  msgid "Completed"
138
- msgstr ""
139
 
140
  #: includes/class-wc-advanced-shipment-tracking.php:195
 
141
  msgid "Add Tracking Number"
142
- msgstr ""
143
 
144
- #: includes/class-wc-advanced-shipment-tracking.php:200
145
- #: includes/class-wc-advanced-shipment-tracking.php:395
 
 
 
146
  msgid "Provider:"
147
  msgstr "доставчик на:"
148
 
149
- #: includes/class-wc-advanced-shipment-tracking.php:220
150
- #: includes/class-wc-advanced-shipment-tracking.php:433
 
151
  msgid "Tracking number:"
152
  msgstr "Номер за проследяване:"
153
 
154
- #: includes/class-wc-advanced-shipment-tracking.php:224
155
- #: includes/class-wc-advanced-shipment-tracking.php:441
 
156
  msgid "Date shipped:"
157
  msgstr "Дата на изпращане:"
158
 
159
- #: includes/class-wc-advanced-shipment-tracking.php:225
160
- #: includes/class-wc-advanced-shipment-tracking.php:442
161
- #: includes/class-wc-advanced-shipment-tracking.php:445
162
- msgid "Y-m-d"
163
- msgstr ""
164
-
165
- #: includes/class-wc-advanced-shipment-tracking.php:231
166
- #: includes/class-wc-advanced-shipment-tracking.php:451
167
- msgid "Mark as"
168
- msgstr ""
169
 
170
- #: includes/class-wc-advanced-shipment-tracking.php:234
171
- #: includes/class-wc-advanced-shipment-tracking.php:455
 
172
  msgid "Partial Shipped"
173
- msgstr ""
174
 
175
- #: includes/class-wc-advanced-shipment-tracking.php:276
176
- #: includes/class-wc-advanced-shipment-tracking.php:469
177
- msgid "Click here to track your shipment"
178
- msgstr "Кликнете тук, за да проследите пратката си"
179
 
180
  #. 1: shipping date
181
- #: includes/class-wc-advanced-shipment-tracking.php:284
182
  #, php-format
183
  msgid "Shipped on %s"
184
  msgstr "Изпратено на% s"
185
 
186
- #: includes/class-wc-advanced-shipment-tracking.php:391
187
  msgid "Add Tracking Info"
188
  msgstr "Добавяне на информация за проследяване"
189
 
190
- #: includes/class-wc-advanced-shipment-tracking.php:396
191
  msgid "Select Provider"
192
  msgstr "Изберете Доставчик"
193
 
194
- #: includes/class-wc-advanced-shipment-tracking.php:468
195
  msgid "Save Tracking"
196
  msgstr "Запазване на проследяването"
197
 
198
- #: includes/class-wc-advanced-shipment-tracking.php:469
199
  msgid "Preview:"
200
  msgstr "Преглед:"
201
 
202
- #: includes/class-wc-advanced-shipment-tracking.php:675
203
  #, php-format
204
  msgid ""
205
  "Tracking info was deleted for tracking provider %s with tracking number %s"
206
  msgstr ""
 
 
207
 
208
- #: includes/class-wc-advanced-shipment-tracking.php:1042
209
  #, php-format
210
  msgid "Order was shipped with %s and tracking number is: %s"
211
- msgstr ""
212
 
213
  #: includes/class-wc-advanced-shipment-welcome.php:38
214
  #: includes/class-wc-advanced-shipment-welcome.php:39
215
  msgid "Welcome to Advanced Shipment Tracking"
216
  msgstr ""
 
217
 
218
  #: includes/class-wc-advanced-shipment-welcome.php:90
219
  #: includes/class-wc-advanced-shipment-welcome.php:129
220
  #: includes/class-wc-advanced-shipment-welcome.php:147
221
  msgid "Save and Continue"
222
- msgstr ""
223
 
224
  #: includes/class-wc-advanced-shipment-welcome.php:177
225
- #: includes/views/admin_options_trackship_integration.php:26
226
  msgid "Connection status"
227
- msgstr ""
228
 
229
  #: includes/class-wc-advanced-shipment-welcome.php:184
230
- #: includes/views/admin_options_trackship_integration.php:33
231
  msgid "TrackShip Connection Status"
232
  msgstr "Състояние на връзката към TrackShip"
233
 
234
- #: includes/class-wc-advanced-shipment-welcome.php:188
235
- #: includes/views/admin_options_trackship_integration.php:37
236
- msgid "Connected"
237
- msgstr ""
238
- "свързан\n"
239
-
240
  #: includes/class-wc-advanced-shipment-welcome.php:194
241
- #: includes/views/admin_options_trackship_integration.php:43
242
  msgid "Trackers Balance"
243
- msgstr ""
244
 
245
  #: includes/class-wc-advanced-shipment-welcome.php:202
246
- #: includes/views/admin_options_trackship_integration.php:51
247
  msgid "Current Plan"
248
- msgstr ""
249
 
250
  #: includes/class-wc-advanced-shipment-welcome.php:217
251
- #: includes/views/admin_options_trackship_integration.php:66
 
252
  msgid ""
253
  "You are now connected with TrackShip! TrackShip makes it effortless to "
254
  "automate your post shipping operations and get tracking and delivery status "
255
  "updates directly in the WooCommerce admin."
256
  msgstr ""
257
-
258
- #: includes/class-wc-advanced-shipment-welcome.php:222
259
- #: includes/views/admin_options_bulk_upload.php:58
260
- #: includes/views/admin_options_trackship_integration.php:71
261
- #: includes/views/zorem_admin_ts_sidebar.php:12
262
- msgid "Documentation"
263
- msgstr ""
264
 
265
  #: includes/class-wc-advanced-shipment-welcome.php:223
266
- #: includes/views/admin_options_trackship_integration.php:72
267
  msgid "TrackShip Dashboard"
268
- msgstr ""
269
 
270
  #: includes/class-wc-advanced-shipment-welcome.php:253
271
  msgid "Save"
272
- msgstr ""
273
 
274
- #: includes/class-wc-advanced-shipment-welcome.php:310
275
- msgid ""
276
- "Get Shipment Status is limited to 100 orders at a time, please select up to "
277
- "100 orders."
278
- msgstr ""
279
-
280
- #: includes/class-wc-advanced-shipment-welcome.php:343
281
- msgid "Data saved successfully."
282
- msgstr "Данните са запазени успешно."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
 
284
- #: includes/class-wc-advanced-shipment-welcome.php:344
285
- msgid "Really delete this entry? This will not be undo."
286
- msgstr "Наистина ли да изтриете този запис? Това няма да бъде отменено."
287
 
288
- #: includes/class-wc-advanced-shipment-welcome.php:345
289
- msgid "You can upload only csv file."
290
- msgstr "Можете да качите само csv файл."
 
291
 
292
- #: includes/class-wc-advanced-shipment-welcome.php:346
293
- msgid "This browser does not support HTML5."
294
- msgstr "Този браузър не поддържа HTML5."
295
 
296
- #: includes/class-wc-advanced-shipment-welcome.php:347
297
- msgid "Please upload a valid CSV file."
298
- msgstr "Моля, качете валиден CSV файл."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
 
300
  #: includes/customizer/class-wcast-customizer.php:40
301
  msgid "Shipment Status Emails"
@@ -313,51 +723,16 @@ msgstr "Предоставен е имейл за състоянието на п
313
 
314
  #: includes/customizer/class-wcast-customizer.php:68
315
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:143
316
- msgid "Partial Shipped status email"
317
- msgstr ""
318
 
319
  #: includes/customizer/class-wcast-customizer.php:76
320
- msgid "Pre Transit"
321
- msgstr "Предварително преминаване"
322
-
323
- #: includes/customizer/class-wcast-customizer.php:84
324
- #: includes/customizer/class-wc-intransit-email-customizer.php:127
325
- #: includes/views/admin_options_trackship_integration.php:161
326
- msgid "In Transit"
327
- msgstr "Транзитно"
328
-
329
- #: includes/customizer/class-wcast-customizer.php:92
330
- #: includes/customizer/class-wc-returntosender-email-customizer.php:124
331
- #: includes/views/admin_options_trackship_integration.php:175
332
- msgid "Return To Sender"
333
- msgstr "Върнете се към подателя"
334
-
335
- #: includes/customizer/class-wcast-customizer.php:99
336
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
337
- #: includes/views/admin_options_trackship_integration.php:189
338
- msgid "Available For Pickup"
339
- msgstr "Предлага се за пикап"
340
-
341
- #: includes/customizer/class-wcast-customizer.php:106
342
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
343
- #: includes/views/admin_options_trackship_integration.php:202
344
- msgid "Out For Delivery"
345
  msgstr ""
346
- "За доставка\n"
347
 
348
- #: includes/customizer/class-wcast-customizer.php:114
349
- #: includes/customizer/class-wc-delivered-email-customizer.php:125
350
- #: includes/views/admin_options_trackship_integration.php:216
351
- msgid "Delivered"
352
- msgstr "Доставени"
353
-
354
- #: includes/customizer/class-wcast-customizer.php:122
355
- #: includes/customizer/class-wc-failure-email-customizer.php:124
356
- #: includes/views/admin_options_trackship_integration.php:231
357
- msgid "Failed Attempt"
358
- msgstr "Неуспешен опит"
359
-
360
- #: includes/customizer/class-wcast-customizer.php:390
361
  msgid "Select order to preview"
362
  msgstr ""
363
  "Изберете поръчка за визуализация\n"
@@ -388,6 +763,7 @@ msgstr ""
388
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
389
  #: includes/customizer/class-wc-returntosender-email-customizer.php:157
390
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:144
 
391
  msgid "This section lets you customize the Email Content."
392
  msgstr ""
393
  "Този раздел ви позволява да персонализирате съдържанието на електронната "
@@ -405,8 +781,9 @@ msgstr ""
405
  #: includes/customizer/class-wc-intransit-email-customizer.php:191
406
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
407
  #: includes/customizer/class-wc-returntosender-email-customizer.php:187
408
- #: includes/customizer/class-wc-tracking-info-customizer.php:178
409
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:177
 
410
  msgid "Preview order"
411
  msgstr ""
412
  "Преглед на поръчката\n"
@@ -421,42 +798,41 @@ msgstr ""
421
  msgid "E.g. {customer.email}, admin@example.org"
422
  msgstr "E.g. {customer.email}, admin@example.org"
423
 
 
424
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
425
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
 
426
  #: includes/customizer/class-wc-delivered-email-customizer.php:232
427
  #: includes/customizer/class-wc-delivered-email-customizer.php:254
 
 
 
 
 
428
  #: includes/customizer/class-wc-failure-email-customizer.php:231
429
  #: includes/customizer/class-wc-failure-email-customizer.php:253
 
430
  #: includes/customizer/class-wc-intransit-email-customizer.php:235
431
  #: includes/customizer/class-wc-intransit-email-customizer.php:257
 
432
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
433
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
 
434
  #: includes/customizer/class-wc-returntosender-email-customizer.php:231
435
  #: includes/customizer/class-wc-returntosender-email-customizer.php:253
436
- msgid "Available placeholders: {site_title}, {order_number}"
437
- msgstr "Налични резерви: {site_title}, {order_number}"
438
-
439
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:237
440
- #: includes/customizer/class-wc-delivered-email-customizer.php:238
441
- #: includes/customizer/class-wc-email-customizer.php:249
442
- #: includes/customizer/class-wc-failure-email-customizer.php:237
443
- #: includes/customizer/class-wc-intransit-email-customizer.php:241
444
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:239
445
- #: includes/customizer/class-wc-returntosender-email-customizer.php:237
446
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:206
447
- msgid "Please enter email subject here"
448
- msgstr "Моля, въведете тук имейл"
449
-
450
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:259
451
- #: includes/customizer/class-wc-delivered-email-customizer.php:260
452
- #: includes/customizer/class-wc-email-customizer.php:272
453
- #: includes/customizer/class-wc-failure-email-customizer.php:259
454
- #: includes/customizer/class-wc-intransit-email-customizer.php:263
455
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:261
456
- #: includes/customizer/class-wc-returntosender-email-customizer.php:259
457
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:229
458
- msgid "Please enter email heading here"
459
- msgstr "Моля, въведете имейл адреса тук"
460
 
461
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
462
  #: includes/customizer/class-wc-delivered-email-customizer.php:275
@@ -500,22 +876,22 @@ msgstr ""
500
 
501
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
502
  #: includes/customizer/class-wc-delivered-email-customizer.php:340
503
- #: includes/customizer/class-wc-email-customizer.php:392
504
  #: includes/customizer/class-wc-failure-email-customizer.php:339
505
- #: includes/customizer/class-wc-intransit-email-customizer.php:363
506
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
507
  #: includes/customizer/class-wc-returntosender-email-customizer.php:339
508
  msgid "Google Analytics link tracking"
509
- msgstr ""
510
 
511
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
512
  #: includes/customizer/class-wc-delivered-email-customizer.php:341
513
  #: includes/customizer/class-wc-failure-email-customizer.php:340
514
- #: includes/customizer/class-wc-intransit-email-customizer.php:364
515
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
516
  #: includes/customizer/class-wc-returntosender-email-customizer.php:340
517
  msgid "This will be appended to URL in the email content"
518
- msgstr ""
519
 
520
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
521
  #: includes/customizer/class-wc-delivered-email-customizer.php:362
@@ -525,36 +901,31 @@ msgstr ""
525
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
526
  #: includes/customizer/class-wc-returntosender-email-customizer.php:361
527
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:245
 
528
  msgid "Email content"
529
  msgstr "Съдържание на имейла"
530
 
531
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:380
532
- #: includes/customizer/class-wc-delivered-email-customizer.php:382
533
- #: includes/customizer/class-wc-email-customizer.php:413
534
- #: includes/customizer/class-wc-failure-email-customizer.php:381
535
- #: includes/customizer/class-wc-intransit-email-customizer.php:385
536
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:383
537
- #: includes/customizer/class-wc-returntosender-email-customizer.php:381
538
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:264
539
- msgid "Available placeholders"
540
- msgstr ""
541
- "Налични места\n"
542
-
543
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:427
544
- #: includes/customizer/class-wc-delivered-email-customizer.php:429
545
- #: includes/customizer/class-wc-email-customizer.php:446
546
- #: includes/customizer/class-wc-failure-email-customizer.php:428
547
- #: includes/customizer/class-wc-intransit-email-customizer.php:431
548
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:429
549
- #: includes/customizer/class-wc-returntosender-email-customizer.php:427
550
- #: includes/customizer/class-wc-tracking-info-customizer.php:791
551
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:297
552
  msgid "Please select order to preview."
553
- msgstr ""
554
 
555
  #: includes/customizer/class-wc-delivered-email-customizer.php:124
556
  msgid "Your order #{order_number} has been delivered"
557
- msgstr ""
558
 
559
  #: includes/customizer/class-wc-delivered-email-customizer.php:126
560
  #: includes/customizer/class-wc-email-customizer.php:132
@@ -583,51 +954,40 @@ msgid "Enable Delivered order status email"
583
  msgstr "Активиране на имейл съобщението за състоянието на поръчката"
584
 
585
  #: includes/customizer/class-wc-email-customizer.php:201
586
- #: includes/customizer/class-wc-tracking-info-customizer.php:182
587
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:181
 
588
  msgid "Please select a order..."
589
  msgstr ""
590
  "Моля, изберете поръчка ...\n"
591
 
592
- #: includes/customizer/class-wc-email-customizer.php:243
593
- #: includes/customizer/class-wc-email-customizer.php:266
594
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:200
595
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:223
596
- msgid "Available variables: {site_title}, {order_number}"
597
- msgstr ""
598
-
599
- #: includes/customizer/class-wc-email-customizer.php:289
600
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:246
601
- msgid ""
602
- "available variables: {site_title}, {customer_email}, {customer_first_name}, "
603
- "{customer_last_name}, {customer_username}, {order_number}"
604
- msgstr ""
605
-
606
- #: includes/customizer/class-wc-email-customizer.php:308
607
  msgid "Display tracking details"
608
- msgstr ""
609
 
610
- #: includes/customizer/class-wc-email-customizer.php:324
611
  msgid "Display order details"
612
- msgstr ""
613
 
614
- #: includes/customizer/class-wc-email-customizer.php:341
615
  msgid "Display Shipping Address"
616
- msgstr ""
617
 
618
- #: includes/customizer/class-wc-email-customizer.php:358
619
  msgid "Display Billing Address"
620
- msgstr ""
621
 
622
- #: includes/customizer/class-wc-email-customizer.php:375
623
  msgid "Enable Google Analytics tracking"
624
- msgstr ""
625
 
626
- #: includes/customizer/class-wc-email-customizer.php:393
627
  msgid ""
628
  "This will be appended to URL in the email content – e.g. "
629
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
630
  msgstr ""
 
 
631
 
632
  #: includes/customizer/class-wc-failure-email-customizer.php:123
633
  msgid "Your order #{order_number} is Failed Attempt"
@@ -715,203 +1075,288 @@ msgid "Enable Return To Sender shipment status email"
715
  msgstr "Активиране на имейла за състоянието на изпращане на изпращача"
716
 
717
  #: includes/customizer/class-wc-tracking-info-customizer.php:144
718
- #: includes/customizer/class-wc-tracking-info-customizer.php:364
719
- #: templates/emails/tracking-info.php:132
720
- #: templates/myaccount/tracking-info.php:91
721
  msgid "Provider"
722
  msgstr "доставчик"
723
 
724
  #: includes/customizer/class-wc-tracking-info-customizer.php:145
725
- #: includes/customizer/class-wc-tracking-info-customizer.php:386
726
- #: templates/emails/tracking-info.php:156
727
- #: templates/myaccount/tracking-info.php:113
728
  msgid "Tracking Number"
729
  msgstr "Номер за проследяване"
730
 
731
  #: includes/customizer/class-wc-tracking-info-customizer.php:146
732
- #: includes/customizer/class-wc-tracking-info-customizer.php:407
733
  msgid "Shipped Date"
734
  msgstr ""
735
  "Дата на изпращане\n"
736
 
737
- #: includes/customizer/class-wc-tracking-info-customizer.php:179
738
- msgid ""
739
- "select from last 20 orders one order that you added tracking info in order "
740
- "to preview and design the tracking info table."
741
  msgstr ""
742
- "изберете от последните 20 поръчки една поръчка, която сте добавили "
743
- "информация за проследяване, за да визуализирате и проектирате "
744
- "информационната таблица за проследяване.\n"
745
-
746
- #: includes/customizer/class-wc-tracking-info-customizer.php:198
747
- #: includes/views/admin_options_settings.php:15
748
- #: includes/views/admin_options_trackship_integration.php:82
749
- msgid "General Settings"
750
- msgstr "Основни настройки"
751
 
752
- #: includes/customizer/class-wc-tracking-info-customizer.php:213
753
  msgid "Tracking Display Position"
754
  msgstr "Проследяване на позицията на дисплея"
755
 
756
- #: includes/customizer/class-wc-tracking-info-customizer.php:217
757
  msgid "Before Order Details"
758
  msgstr "Преди подробности за поръчката"
759
 
760
- #: includes/customizer/class-wc-tracking-info-customizer.php:218
761
  msgid "After Order Details"
762
  msgstr "След подробности за поръчката"
763
 
764
- #: includes/customizer/class-wc-tracking-info-customizer.php:233
765
- msgid "Main Header text"
766
- msgstr "Текст на основния заглавие"
 
767
 
768
- #: includes/customizer/class-wc-tracking-info-customizer.php:240
769
  msgid "Tracking Information"
770
  msgstr "Информация за проследяване"
771
 
772
- #: includes/customizer/class-wc-tracking-info-customizer.php:255
773
  msgid "Additional text after header"
774
  msgstr "Допълнителен текст след заглавието"
775
 
776
- #: includes/customizer/class-wc-tracking-info-customizer.php:276
777
- msgid "Table Content"
 
 
 
 
 
 
778
  msgstr ""
 
 
 
 
 
 
779
 
780
  #: includes/customizer/class-wc-tracking-info-customizer.php:291
781
- msgid "Display Shipment Provider image"
782
- msgstr "Покажи изображението на доставчика на пратка"
 
783
 
784
- #: includes/customizer/class-wc-tracking-info-customizer.php:308
785
- msgid "Hide date"
786
- msgstr "Скриване на дата"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
787
 
788
- #: includes/customizer/class-wc-tracking-info-customizer.php:325
789
- msgid "Table Header"
790
  msgstr ""
 
791
 
792
- #: includes/customizer/class-wc-tracking-info-customizer.php:340
793
- msgid "Hide Header"
794
  msgstr ""
 
795
 
796
- #: includes/customizer/class-wc-tracking-info-customizer.php:357
797
- msgid "Provider Header Text"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
798
  msgstr "Текст на заглавката на доставчика"
799
 
800
- #: includes/customizer/class-wc-tracking-info-customizer.php:379
801
- msgid "Tracking Number Header Text"
802
- msgstr "Текст на заглавния номер на проследяването"
803
 
804
- #: includes/customizer/class-wc-tracking-info-customizer.php:400
805
- msgid "Shipped Date Header Text"
806
- msgstr "Текст на заглавката на датата"
 
807
 
808
- #: includes/customizer/class-wc-tracking-info-customizer.php:421
809
  msgid "Track Label"
810
  msgstr "Етикет за проследяване"
811
 
812
- #: includes/customizer/class-wc-tracking-info-customizer.php:437
813
- msgid "Track Header Text"
814
- msgstr "Текст на заглавието на трака"
815
-
816
- #: includes/customizer/class-wc-tracking-info-customizer.php:459
817
- msgid "Table header font size"
818
- msgstr "Размер на шрифта на заглавката на таблицата"
819
 
820
- #: includes/customizer/class-wc-tracking-info-customizer.php:476
821
- msgid "Table header font color"
822
- msgstr "Цвят на шрифта на заглавката на таблицата"
 
823
 
824
- #: includes/customizer/class-wc-tracking-info-customizer.php:492
825
- msgid "Table Design"
826
  msgstr ""
827
- "Изображение на доставчика\n"
 
 
 
 
828
 
829
- #: includes/customizer/class-wc-tracking-info-customizer.php:507
830
  msgid "Padding"
831
  msgstr ""
832
  "подложка\n"
833
 
834
- #: includes/customizer/class-wc-tracking-info-customizer.php:527
 
835
  msgid "Background color"
836
  msgstr "Цвят на фона"
837
 
838
- #: includes/customizer/class-wc-tracking-info-customizer.php:555
 
839
  msgid "Border color"
840
  msgstr "Цвят на границата"
841
 
842
- #: includes/customizer/class-wc-tracking-info-customizer.php:571
843
  msgid "Border size"
844
  msgstr "Размер на границата"
845
 
846
- #: includes/customizer/class-wc-tracking-info-customizer.php:595
847
- msgid "Table text align"
848
- msgstr "Подравняване на текста на таблицата"
 
849
 
850
- #: includes/customizer/class-wc-tracking-info-customizer.php:618
851
- msgid "Table content font size"
852
- msgstr "Размер на шрифта на съдържанието на таблицата"
 
853
 
854
- #: includes/customizer/class-wc-tracking-info-customizer.php:635
855
- msgid "Table content font color"
856
- msgstr "Цвят на шрифта на съдържанието на таблицата"
 
857
 
858
- #: includes/customizer/class-wc-tracking-info-customizer.php:651
859
  msgid "Content line height"
860
  msgstr ""
861
  "Височина на линията на съдържанието\n"
862
 
863
- #: includes/customizer/class-wc-tracking-info-customizer.php:672
864
  msgid "Content font weight"
865
  msgstr ""
866
  "Тегло на шрифта на съдържанието\n"
867
 
868
- #: includes/customizer/class-wc-tracking-info-customizer.php:694
869
- msgid "Track Button Design"
870
  msgstr ""
 
871
 
872
- #: includes/customizer/class-wc-tracking-info-customizer.php:708
873
- msgid "Track Link Font Color"
874
- msgstr "Цвят на шрифта за връзка"
 
875
 
876
- #: includes/customizer/class-wc-tracking-info-customizer.php:724
877
- msgid "Track Link Background Color"
878
- msgstr "Цвят на фона на проследяване на връзката"
 
879
 
880
- #: includes/customizer/class-wc-tracking-info-customizer.php:739
881
- msgid "Track link Border"
882
- msgstr "Проследяване на връзката Граница"
 
 
 
 
 
883
 
884
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:116
885
- msgid "Your {site_title} order is now partial shipped"
886
- msgstr ""
887
 
888
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:118
889
  msgid ""
890
  "Hi there. we thought you'd like to know that your recent order from "
891
- "{site_title} has been Partial Shipped."
892
  msgstr ""
 
 
893
 
894
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:159
895
- msgid "Enable Partial Shipped order status email"
 
 
 
 
 
 
 
 
 
 
 
896
  msgstr ""
 
 
 
 
 
 
 
897
 
898
  #: includes/emails/class-shipment-delivered-email.php:32
899
  msgid "Delivered order"
900
- msgstr ""
901
 
902
  #: includes/emails/class-shipment-delivered-email.php:33
903
  msgid ""
904
  "Order delivered emails are sent to customers when their orders are marked "
905
  "delivered and usually indicate that their orders have been shipped."
906
  msgstr ""
 
 
907
 
908
- #: includes/emails/class-shipment-delivered-email.php:279
909
  msgid "Click Here"
910
- msgstr ""
911
 
912
- #: includes/emails/class-shipment-delivered-email.php:280
913
  msgid "Edit in customizer"
914
- msgstr ""
915
 
916
  #: includes/views/admin_options_bulk_upload.php:10
917
  msgid "Upload CSV"
@@ -926,8 +1371,8 @@ msgstr ""
926
  "отметнато, информацията за проследяване ще бъде добавена)"
927
 
928
  #: includes/views/admin_options_bulk_upload.php:29
929
- #: includes/views/admin_options_shipping_provider.php:119
930
- #: includes/views/admin_options_shipping_provider.php:153
931
  msgid "Upload"
932
  msgstr "Качи"
933
 
@@ -939,177 +1384,290 @@ msgstr "Настройките са запазени."
939
  msgid "Upload Progress - "
940
  msgstr "Качване на напредъка -"
941
 
942
- #: includes/views/admin_options_bulk_upload.php:45
943
  msgid "Sample CSV"
944
- msgstr ""
945
 
946
- #: includes/views/admin_options_bulk_upload.php:50
947
  msgid "You can download an example of the csv file:"
948
  msgstr "Можете да изтеглите пример за csv файл:"
949
 
950
- #: includes/views/admin_options_bulk_upload.php:53
951
  msgid "Download sample csv file"
952
  msgstr "Изтеглете примерния файл csv"
953
 
954
- #: includes/views/admin_options_bulk_upload.php:58
955
  msgid ""
956
  "For detailed instructions on how to upload tracking info in bulk, see our"
957
  msgstr ""
958
  "За подробни инструкции за това как да качите информация за проследяване в "
959
  "насипно състояние, вижте нашата"
960
 
 
 
 
 
 
961
  #: includes/views/admin_options_settings.php:26
962
- #: includes/views/admin_options_settings.php:74
963
- #: includes/views/admin_options_settings.php:100
964
- #: includes/views/admin_options_trackship_integration.php:93
965
- #: includes/views/admin_options_trackship_integration.php:124
966
  msgid "Save Changes"
967
- msgstr ""
968
 
969
  #: includes/views/admin_options_settings.php:40
970
  msgid "Tracking Info Display"
971
- msgstr ""
972
 
973
  #: includes/views/admin_options_settings.php:49
974
  msgid "You can customize the tracking info display on emails and my account"
975
  msgstr ""
 
 
976
 
977
  #: includes/views/admin_options_settings.php:52
978
  msgid "Launch Customizer"
979
- msgstr ""
980
 
981
  #: includes/views/admin_options_settings.php:62
982
- msgid "Delivered Order Status"
983
- msgstr "Състояние на поръчката за доставка"
984
-
985
- #: includes/views/admin_options_settings.php:88
986
- msgid "Partial Shipped Order Status"
987
  msgstr ""
 
988
 
989
  #: includes/views/admin_options_settings.php:94
990
- #, php-format
991
- msgid ""
992
- "<strong>PLEASE NOTE</strong> - If you use the custom order status \"Partial "
993
- "Shipped\", when you deactivate the plugin, you must register this order "
994
- "status in function.php in order to see these orders in the orders admin. You "
995
- "can find the <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
996
- "php here or you can manually change all your \"partial-shipped\" order to "
997
- "\"completed\" before deactivating the plugin."
 
 
 
 
 
 
 
 
 
998
  msgstr ""
 
999
 
1000
  #: includes/views/admin_options_shipping_provider.php:12
1001
- #: includes/views/admin_options_shipping_provider.php:23
 
 
1002
  msgid "Active"
1003
- msgstr ""
1004
 
1005
  #: includes/views/admin_options_shipping_provider.php:13
1006
- #: includes/views/admin_options_shipping_provider.php:23
1007
  msgid "Inactive"
1008
- msgstr ""
1009
 
1010
  #: includes/views/admin_options_shipping_provider.php:14
1011
  msgid "Custom"
1012
- msgstr ""
1013
 
1014
- #: includes/views/admin_options_shipping_provider.php:21
1015
- msgid "Add Custom Provider"
 
 
 
 
1016
  msgstr ""
 
1017
 
1018
- #: includes/views/admin_options_shipping_provider.php:22
1019
- #: includes/views/admin_options_shipping_provider.php:170
1020
  #: includes/views/admin_options_shipping_provider.php:177
 
1021
  msgid "Sync Shipping Providers"
1022
- msgstr ""
1023
-
1024
- #: includes/views/admin_options_shipping_provider.php:23
1025
- msgid "Reset"
1026
- msgstr ""
1027
-
1028
- #: includes/views/admin_options_shipping_provider.php:27
1029
- msgid "Search by provider / country"
1030
- msgstr ""
1031
-
1032
- #: includes/views/admin_options_shipping_provider.php:95
1033
- #, php-format
1034
- msgid "You don't have any %s shipping providers."
1035
- msgstr "Нямате доставчици за доставки на% s."
1036
 
1037
- #: includes/views/admin_options_shipping_provider.php:101
1038
  msgid "Add Custom Shipping Provider"
1039
  msgstr "Добавете Потребителски доставчик"
1040
 
1041
- #: includes/views/admin_options_shipping_provider.php:108
1042
- #: includes/views/admin_options_shipping_provider.php:142
1043
  msgid "Shipping Country"
1044
- msgstr ""
1045
 
1046
- #: includes/views/admin_options_shipping_provider.php:109
1047
- #: includes/views/admin_options_shipping_provider.php:143
1048
  msgid "Global"
1049
- msgstr ""
 
 
 
 
 
1050
 
1051
- #: includes/views/admin_options_shipping_provider.php:135
1052
  msgid "Edit Custom Shipping Provider"
1053
  msgstr "Редактиране на доставчик по поръчка"
1054
 
1055
- #: includes/views/admin_options_shipping_provider.php:171
1056
  msgid ""
1057
  "Syncing the shipping providers list add or updates the pre-set shipping "
1058
  "providers and will not effect custom shipping providers."
1059
  msgstr ""
 
 
 
1060
 
1061
- #: includes/views/admin_options_shipping_provider.php:173
1062
  msgid "Providers Added"
1063
  msgstr "Доставчиците са добавени"
1064
 
1065
- #: includes/views/admin_options_shipping_provider.php:174
1066
  msgid "Providers Updated"
1067
  msgstr "Актуализирани доставчици"
1068
 
1069
- #: includes/views/admin_options_shipping_provider.php:175
1070
  msgid "Providers Deleted"
1071
  msgstr "Доставчиците са изтрити"
1072
 
1073
- #: includes/views/admin_options_trackship_integration.php:107
 
1074
  msgid "Tracking Page"
1075
  msgstr "Страница за проследяване"
1076
 
1077
- #: includes/views/admin_options_trackship_integration.php:117
1078
- msgid "Click to preview the tracking page"
1079
- msgstr "Кликнете, за да визуализирате проследяващата страница"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1080
 
1081
- #: includes/views/admin_options_trackship_integration.php:118
1082
- msgid "PLEASE NOTE - make sure to save your settings before preview."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1083
  msgstr ""
1084
- "МОЛЯ ЗАБЕЛЕЖКА - не забравяйте да запазите настройките си преди визуализация."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1085
 
1086
- #: includes/views/admin_options_trackship_integration.php:137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1087
  msgid "Shipment Status Notifications "
1088
  msgstr "Известия за състоянието на пратката"
1089
 
1090
- #: includes/views/admin_options_trackship_integration.php:163
1091
  msgid ""
1092
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1093
  "the way."
1094
  msgstr "Превозвачът е приел или взел пратка от изпращача. Пратката е на път."
1095
 
1096
- #: includes/views/admin_options_trackship_integration.php:177
1097
  msgid "Shipment is returned to sender"
1098
  msgstr "Пратката се връща на подателя"
1099
 
1100
- #: includes/views/admin_options_trackship_integration.php:191
1101
  msgid "The shipment is ready to pickup."
1102
  msgstr "Пратката е готова за пикап."
1103
 
1104
- #: includes/views/admin_options_trackship_integration.php:204
1105
  msgid "Carrier is about to deliver the shipment"
1106
  msgstr "Превозвачът е на път да достави пратката"
1107
 
1108
- #: includes/views/admin_options_trackship_integration.php:218
1109
  msgid "The shipment was delivered successfully"
1110
  msgstr "Пратката е доставена успешно"
1111
 
1112
- #: includes/views/admin_options_trackship_integration.php:219
1113
  msgid ""
1114
  "You already have delivered email enabled, to enable this email you'll need "
1115
  "to disable the order status delivered in settings."
@@ -1117,7 +1675,7 @@ msgstr ""
1117
  "Вече сте предоставили активиран имейл, за да активирате този имейл, ще "
1118
  "трябва да деактивирате състоянието на поръчката, доставена в настройките."
1119
 
1120
- #: includes/views/admin_options_trackship_integration.php:233
1121
  msgid ""
1122
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1123
  "will try to deliver the package again."
@@ -1125,15 +1683,10 @@ msgstr ""
1125
  "Превозвачът се опита да достави, но не успя и обикновено оставя известие и "
1126
  "ще се опита да достави пакета отново."
1127
 
1128
- #: includes/views/admin_options_tools.php:14
1129
- msgid "Get Shipment Status"
1130
- msgstr ""
1131
-
1132
- #: includes/views/admin_options_tools.php:23
1133
- msgid ""
1134
- "You can send all your orders from the last 30 days to get shipment status "
1135
- "from TrackShip:"
1136
- msgstr ""
1137
 
1138
  #. %s: Order ID.
1139
  #: templates/emails/wcast-email-order-details.php:47
@@ -1142,9 +1695,22 @@ msgid "Order number: %s"
1142
  msgstr ""
1143
  "Номер на поръчката:% s\n"
1144
 
 
 
 
 
 
 
 
 
 
 
 
 
1145
  #. Name of the plugin
1146
  msgid "Advanced Shipment Tracking for WooCommerce"
1147
  msgstr ""
 
1148
 
1149
  #. Description of the plugin
1150
  msgid ""
@@ -1153,7 +1719,7 @@ msgid ""
1153
  "will appear in customers accounts (in the order panel) and in WooCommerce "
1154
  "order complete email."
1155
  msgstr ""
1156
-
1157
- #. Author of the plugin
1158
- msgid "zorem"
1159
- msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-01-09 12:07+0000\n"
6
+ "PO-Revision-Date: 2020-01-09 12:07+0000\n"
7
+ "Last-Translator: John <gaurav1092@zorem.com>\n"
8
  "Language-Team: Bulgarian\n"
9
  "Language: bg_BG\n"
10
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
+ "X-Loco-Version: 2.3.1; wp-5.3.2"
16
 
17
+ #: woocommerce-advanced-shipment-tracking.php:117
18
  #, php-format
19
  msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
23
  "Моля, инсталирайте и активирайте% sWooCommerce% s за усъвършенствано "
24
  "проследяване на пратки в WooCommerce!"
25
 
26
+ #: woocommerce-advanced-shipment-tracking.php:254
27
  #, php-format
28
  msgid "Your order was shipped with %s and your tracking code is: %s"
29
+ msgstr "Поръчката ви беше изпратена с% s, а проследяващият ви код е:% s"
30
+
31
+ #: woocommerce-advanced-shipment-tracking.php:465
32
+ #: includes/views/admin_options_settings.php:190
33
+ #, php-format
34
+ msgid ""
35
+ "<strong>Note:</strong> - If you use the custom order status, when you "
36
+ "deactivate the plugin, you must register the order status, otherwise these "
37
+ "orders will not display on your orders admin. You can find more information "
38
+ "and the code <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
39
+ "php here."
40
+ msgstr ""
41
+ "Забележка: - Ако използвате статуса на поръчка по поръчка, когато "
42
+ "деактивирате приставката, трябва да регистрирате състоянието на поръчката, в "
43
+ "противен случай тези поръчки няма да се показват на администратора на вашите "
44
+ "поръчки. Можете да намерите повече информация и фрагмента на кода, който да "
45
+ "използвате в функции.php тук.\n"
46
+
47
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:309
48
+ msgid "Shipment status"
49
+ msgstr "Shipment status"
50
+
51
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:427
52
+ #: includes/class-wc-advanced-shipment-welcome.php:310
53
+ msgid ""
54
+ "Get Shipment Status is limited to 100 orders at a time, please select up to "
55
+ "100 orders."
56
  msgstr ""
57
+ "Съдържанието на пратката е ограничено до 100 поръчки наведнъж, моля изберете "
58
+ "до 100 поръчки."
59
+
60
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:462
61
+ #: includes/class-wc-advanced-shipment-welcome.php:343
62
+ msgid "Data saved successfully."
63
+ msgstr "Данните са запазени успешно."
64
+
65
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:463
66
+ #: includes/class-wc-advanced-shipment-welcome.php:344
67
+ msgid "Really delete this entry? This will not be undo."
68
+ msgstr "Наистина ли да изтриете този запис? Това няма да бъде отменено."
69
 
70
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:464
71
+ #: includes/class-wc-advanced-shipment-welcome.php:345
72
+ msgid "You can upload only csv file."
73
+ msgstr "Можете да качите само csv файл."
74
+
75
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:465
76
+ #: includes/class-wc-advanced-shipment-welcome.php:346
77
+ msgid "This browser does not support HTML5."
78
+ msgstr "Този браузър не поддържа HTML5."
79
+
80
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:466
81
+ #: includes/class-wc-advanced-shipment-welcome.php:347
82
+ msgid "Please upload a valid CSV file."
83
+ msgstr "Моля, качете валиден CSV файл."
84
+
85
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:535
86
+ msgid "Shipping Providers"
87
+ msgstr "Доставка доставчици"
88
+
89
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:537
90
+ msgid "Bulk Upload"
91
+ msgstr "Групово качване"
92
+
93
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:543
94
+ msgid "Add-ons"
95
+ msgstr "Добавки"
96
+
97
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:546
98
+ #: includes/class-wc-advanced-shipment-welcome.php:222
99
+ #: includes/views/admin_options_bulk_upload.php:63
100
+ #: includes/views/admin_trackship_dashboard.php:51
101
+ msgid "Documentation"
102
+ msgstr "документация"
103
+
104
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:547
105
+ msgid "How to Video"
106
+ msgstr "Как да видео"
107
+
108
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:695
109
+ msgid "Custom Statuses"
110
+ msgstr "Персонализирани статуси"
111
+
112
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:742
113
+ #: includes/class-wc-advanced-shipment-welcome.php:188
114
+ #: includes/views/zorem_admin_sidebar.php:29
115
+ #: includes/views/admin_options_addons.php:46
116
+ #: includes/views/admin_trackship_dashboard.php:17
117
+ msgid "Connected"
118
+ msgstr ""
119
+ "свързан\n"
120
+
121
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:874
122
+ #, php-format
123
+ msgid "%s %s orders with tracking info"
124
+ msgstr "% s% s поръчки с информация за проследяване"
125
+
126
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:875
127
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:884
128
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:893
129
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1838
130
+ #: includes/views/admin_options_tools.php:14
131
+ msgid "Get Shipment Status"
132
+ msgstr "Получете състояние на пратката"
133
+
134
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:883
135
  #, php-format
136
+ msgid "%s %s orders with “TrackShip balance is 0”"
137
+ msgstr "% s% s поръчки с „TrackShip баланс е 0“"
138
+
139
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:892
140
+ #, php-format
141
+ msgid "%s %s orders with “Please do connection”"
142
+ msgstr "% s% s поръчки с „Моля, свържете се“"
143
+
144
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:930
145
+ msgid "Enable/Disable"
146
+ msgstr "Включване / Изключване"
147
+
148
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:936
149
+ msgid "Set order status Delivered when order is delivered"
150
+ msgstr "Задаване на състояние на поръчката Доставено при доставка на поръчката"
151
+
152
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:968
153
  msgid ""
154
+ "You must add the shortcode [wcast-track-order] to the selected page in order "
155
+ "for the tracking page to work."
 
 
 
 
156
  msgstr ""
157
+ "Трябва да добавите краткия код [wcast-track-order] към избраната страница, "
158
+ "за да работи страницата за проследяване."
159
 
160
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:976
161
+ #: includes/views/admin_tracking_page_settings.php:24
162
+ msgid "Select Tracking Page"
163
+ msgstr "Изберете страница за проследяване"
164
+
165
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:984
166
+ msgid "Use the tracking page in the customer email/my account tracking link"
167
+ msgstr ""
168
+ "Използвайте проследяващата страница в връзката за проследяване на имейла на "
169
+ "клиента / моя акаунт"
170
+
171
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:990
172
+ #: includes/views/admin_tracking_page_settings.php:49
173
+ msgid "Tracking Page Layout"
174
+ msgstr ""
175
+ "Оформление на проследяващата страница\n"
176
+
177
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1001
178
+ msgid "Select primary color for tracking page"
179
+ msgstr "Изберете основен цвят за проследяваща страница"
180
+
181
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1007
182
+ msgid "Select content border color for tracking page"
183
+ msgstr "Изберете цвят на границата на съдържанието за проследяваща страница"
184
+
185
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1013
186
+ #: includes/views/admin_tracking_page_settings.php:83
187
+ msgid "Hide Shipping Provider Image"
188
+ msgstr ""
189
+ "Скриване на изображението на доставчика на доставка\n"
190
+
191
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1019
192
+ msgid "Hide tracking events details"
193
+ msgstr "Скриване на детайлите за проследяване на събитията"
194
+
195
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1025
196
+ #: includes/views/admin_tracking_page_settings.php:93
197
+ msgid "Remove TrackShip branding"
198
+ msgstr "Премахване на марката TrackShip"
199
+
200
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1042
201
+ msgid "License Key"
202
+ msgstr "Лицензионен ключ"
203
+
204
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1044
205
+ msgid "a Valid license is required to receive updates and support"
206
+ msgstr "валиден лиценз е необходим за получаване на актуализации и поддръжка"
207
+
208
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1193
209
+ msgid "\">click here</a> to activate it."
210
+ msgstr "\"> щракнете тук </a>, за да го активирате."
211
+
212
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1226
213
+ #: includes/class-wc-advanced-shipment-tracking.php:185
214
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:303
215
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:439
216
+ msgid "Shipped"
217
+ msgstr "Доставят"
218
+
219
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1227
220
+ msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
221
+ msgstr ""
222
+ "По подразбиране \"маркирай като <span class =\" shipped_label \"> изпратен "
223
+ "</span>\""
224
+
225
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1228
226
+ msgid ""
227
+ "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
228
+ "will be selected by default when adding tracking info to orders."
229
+ msgstr ""
230
+ "Това означава, че 'марката като <span class =' ​​shipped_label '> изпратена "
231
+ "</span>' ще бъде избрана по подразбиране при добавяне на информация за "
232
+ "проследяване към поръчки."
233
+
234
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1231
235
+ msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
236
+ msgstr ""
237
+ "По подразбиране \"маркирай като <span class =\" shipped_label \"> завършен "
238
+ "</span>\""
239
+
240
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1232
241
+ msgid ""
242
+ "This means that the 'mark as <span class='shipped_label'>completed</span>' "
243
+ "will be selected by default when adding tracking info to orders."
244
+ msgstr ""
245
+ "Това означава, че 'маркирането като <span class =' ​​shipped_label '> "
246
+ "завършено </span>' ще бъде избрано по подразбиране при добавяне на "
247
+ "информация за проследяване към поръчки."
248
+
249
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1298
250
+ msgid "Rename the “Completed” Order status to “Shipped”"
251
+ msgstr "Преименувайте състоянието на поръчката „Завършено“ на „Доставка“"
252
+
253
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1311
254
+ msgid "On which order status email to include the shipment tracking info?"
255
+ msgstr ""
256
+ "На кой имейл за състоянието на поръчката да се включи информация за "
257
+ "проследяване на пратката?"
258
+
259
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1317
260
+ msgid "Show tracking info in Invoice"
261
+ msgstr "Показване на информация за проследяване във фактура"
262
+
263
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1323
264
+ msgid "Show tracking info in Packing Slip"
265
+ msgstr "Показване на информация за проследяване в опаковъчен лист"
266
+
267
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1871
268
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2392
269
+ #: includes/customizer/class-wcast-customizer.php:92
270
+ #: includes/customizer/class-wc-intransit-email-customizer.php:127
271
+ #: includes/views/admin_status_notifications.php:25
272
+ msgid "In Transit"
273
+ msgstr "Транзитно"
274
+
275
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1874
276
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2391
277
+ #: includes/customizer/class-wcast-customizer.php:84
278
+ msgid "Pre Transit"
279
+ msgstr "Предварително преминаване"
280
+
281
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1877
282
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2069
283
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2395
284
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:137
285
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:182
286
+ #: includes/customizer/class-wcast-customizer.php:122
287
+ #: includes/customizer/class-wc-delivered-email-customizer.php:125
288
+ #: includes/views/admin_options_settings.php:80
289
+ #: includes/views/admin_status_notifications.php:80
290
+ msgid "Delivered"
291
+ msgstr "Доставени"
292
+
293
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1880
294
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2394
295
+ #: includes/customizer/class-wcast-customizer.php:114
296
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
297
+ #: includes/views/admin_status_notifications.php:66
298
+ msgid "Out For Delivery"
299
+ msgstr ""
300
+ "За доставка\n"
301
+
302
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1883
303
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2393
304
+ #: includes/customizer/class-wcast-customizer.php:107
305
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
306
+ #: includes/views/admin_status_notifications.php:53
307
+ msgid "Available For Pickup"
308
+ msgstr "Предлага се за пикап"
309
+
310
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1886
311
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2399
312
+ #: includes/customizer/class-wcast-customizer.php:100
313
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:124
314
+ #: includes/views/admin_status_notifications.php:39
315
+ msgid "Return To Sender"
316
+ msgstr "Върнете се към подателя"
317
+
318
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1889
319
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2396
320
+ #: includes/customizer/class-wcast-customizer.php:130
321
+ #: includes/customizer/class-wc-failure-email-customizer.php:124
322
+ #: includes/views/admin_status_notifications.php:95
323
+ msgid "Failed Attempt"
324
+ msgstr "Неуспешен опит"
325
+
326
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1892
327
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2390
328
+ msgid "Unknown"
329
+ msgstr "неизвестен"
330
+
331
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1895
332
+ msgid "Pending TrackShip"
333
+ msgstr "В очакване на TrackShip"
334
+
335
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1898
336
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2400
337
+ msgid "Invalid Tracking Number"
338
+ msgstr "Невалиден проследяващ номер"
339
+
340
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1901
341
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2398
342
+ msgid "Carrier Unsupported"
343
+ msgstr "Превозвач не се поддържа"
344
+
345
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1904
346
+ msgid "Invalid User Key"
347
+ msgstr "Невалиден потребителски ключ"
348
+
349
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1907
350
+ msgid "Wrong Shipping Provider"
351
+ msgstr "Грешен доставчик на доставка"
352
+
353
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2023
354
+ msgid "Shipped Order"
355
+ msgstr "Изпратена поръчка"
356
+
357
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2047
358
+ msgid "Mark order as delivered"
359
+ msgstr "Маркирайте поръчката като доставена"
360
+
361
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2054
362
+ msgid "Add Tracking"
363
+ msgstr "Добавяне на проследяване"
364
+
365
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2081
366
+ msgid "Change order status to"
367
+ msgstr "Промяна на състоянието на поръчката на"
368
+
369
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2184
370
+ #: includes/views/admin_options_shipping_provider.php:96
371
+ #, php-format
372
+ msgid "You don't have any %s shipping providers."
373
+ msgstr "Нямате доставчици за доставки на% s."
374
+
375
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2189
376
+ #: includes/views/admin_options_shipping_provider.php:27
377
+ msgid "Add Custom Provider"
378
+ msgstr "Добавете персонализиран доставчик"
379
+
380
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2405
381
+ msgid "Filter by shipment status"
382
+ msgstr "Филтриране по статус на пратката"
383
+
384
+ #: includes/class-wc-advanced-shipment-tracking-front.php:148
385
  msgid ""
386
  "To track your order please enter your Order ID in the box below and press "
387
  "the \"Track\" button. This was given to you on your receipt and in the "
391
  "долу и натиснете бутона \"Track\". Това ви беше дадено в касовата бележка и "
392
  "в имейла за потвърждение, който трябваше да получите.\n"
393
 
394
+ #: includes/class-wc-advanced-shipment-tracking-front.php:149
395
+ #: includes/class-wc-advanced-shipment-tracking-front.php:150
396
  msgid "Found in your order confirmation email."
397
  msgstr ""
398
  "Намерен в имейла за потвърждение на поръчката.\n"
399
 
400
+ #: includes/class-wc-advanced-shipment-tracking-front.php:150
401
  msgid "Order Email"
402
  msgstr ""
403
  "Имейл за поръчка\n"
404
 
405
+ #: includes/class-wc-advanced-shipment-tracking-front.php:153
406
+ #: includes/class-wc-advanced-shipment-tracking.php:728
407
+ #: includes/class-wc-advanced-shipment-tracking.php:851
 
408
  #: includes/customizer/class-wc-tracking-info-customizer.php:147
409
+ #: includes/customizer/class-wc-tracking-info-customizer.php:578
410
+ #: templates/emails/tracking-info.php:256
411
+ #: templates/myaccount/tracking-info.php:191
412
  msgid "Track"
413
  msgstr "път"
414
 
415
+ #: includes/class-wc-advanced-shipment-tracking-front.php:221
416
+ #: includes/class-wc-advanced-shipment-tracking-front.php:238
417
+ #: includes/class-wc-advanced-shipment-tracking-front.php:398
418
+ #: includes/class-wc-advanced-shipment-tracking-front.php:415
419
  #, php-format
420
  msgid "Shipment - %s (out of %s)"
421
  msgstr ""
422
  "Пратка -% s (от% s)\n"
423
 
424
+ #: includes/class-wc-advanced-shipment-tracking-front.php:251
425
+ #: includes/class-wc-advanced-shipment-tracking-front.php:428
426
+ msgid "Tracking details not found in TrackShip"
427
+ msgstr "Детайли за проследяване не са открити в TrackShip"
428
+
429
+ #: includes/class-wc-advanced-shipment-tracking-front.php:462
430
+ #: includes/class-wc-advanced-shipment-tracking-front.php:492
431
+ #: includes/class-wc-advanced-shipment-tracking-front.php:862
432
+ #: includes/class-wc-advanced-shipment-tracking-front.php:880
433
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1015
434
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1033
435
+ msgid "Est. Delivery Date"
436
+ msgstr ""
437
+ "Est. Дата на доставка\n"
438
 
439
+ #: includes/class-wc-advanced-shipment-tracking-front.php:618
440
+ #: includes/class-wc-advanced-shipment-tracking-front.php:708
 
441
  msgid "Tracking Details"
442
  msgstr "Детайли за проследяване"
443
 
444
+ #: includes/class-wc-advanced-shipment-tracking-front.php:699
445
+ #: includes/class-wc-advanced-shipment-tracking-front.php:789
446
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1004
447
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1118
448
  msgid "view more"
449
  msgstr "Виж повече"
450
 
451
+ #: includes/class-wc-advanced-shipment-tracking-front.php:700
452
+ #: includes/class-wc-advanced-shipment-tracking-front.php:790
453
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1005
454
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1119
455
  msgid "view less"
456
  msgstr "вижте по-малко"
457
 
 
 
 
 
 
 
 
 
 
458
  #: includes/class-wc-advanced-shipment-tracking.php:95
459
+ #: includes/class-wc-advanced-shipment-tracking.php:265
460
  #: includes/customizer/class-wcast-customizer.php:31
461
  msgid "Shipment Tracking"
462
  msgstr "Проследяване на пратките"
463
 
464
  #: includes/class-wc-advanced-shipment-tracking.php:184
465
+ #: includes/class-wc-advanced-shipment-tracking.php:387
466
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:438
467
  msgid "Mark as Shipped?"
468
+ msgstr "Да се ​​маркира като изпратен?"
 
 
 
 
469
 
470
  #: includes/class-wc-advanced-shipment-tracking.php:187
471
+ #: includes/class-wc-advanced-shipment-tracking.php:390
472
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:441
473
  msgid "Mark as Completed?"
474
+ msgstr "Да се ​​маркира като завършен?"
475
 
476
  #: includes/class-wc-advanced-shipment-tracking.php:188
477
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:442
478
  msgid "Completed"
479
+ msgstr "завършен"
480
 
481
  #: includes/class-wc-advanced-shipment-tracking.php:195
482
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:450
483
  msgid "Add Tracking Number"
484
+ msgstr "Добавете проследяващ номер"
485
 
486
+ #: includes/class-wc-advanced-shipment-tracking.php:198
487
+ #: includes/class-wc-advanced-shipment-tracking.php:203
488
+ #: includes/class-wc-advanced-shipment-tracking.php:408
489
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:453
490
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:455
491
  msgid "Provider:"
492
  msgstr "доставчик на:"
493
 
494
+ #: includes/class-wc-advanced-shipment-tracking.php:223
495
+ #: includes/class-wc-advanced-shipment-tracking.php:446
496
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:475
497
  msgid "Tracking number:"
498
  msgstr "Номер за проследяване:"
499
 
500
+ #: includes/class-wc-advanced-shipment-tracking.php:227
501
+ #: includes/class-wc-advanced-shipment-tracking.php:454
502
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:479
503
  msgid "Date shipped:"
504
  msgstr "Дата на изпращане:"
505
 
506
+ #: includes/class-wc-advanced-shipment-tracking.php:236
507
+ #: includes/class-wc-advanced-shipment-tracking.php:466
508
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:488
509
+ msgid "Mark order as:"
510
+ msgstr "Маркиране на поръчката като:"
 
 
 
 
 
511
 
512
+ #: includes/class-wc-advanced-shipment-tracking.php:239
513
+ #: includes/class-wc-advanced-shipment-tracking.php:469
514
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:491
515
  msgid "Partial Shipped"
516
+ msgstr "Частично изпратено"
517
 
518
+ #: includes/class-wc-advanced-shipment-tracking.php:281
519
+ #: includes/class-wc-advanced-shipment-tracking.php:483
520
+ msgid "Track Shipment"
521
+ msgstr "Проследяване на пратката"
522
 
523
  #. 1: shipping date
524
+ #: includes/class-wc-advanced-shipment-tracking.php:290
525
  #, php-format
526
  msgid "Shipped on %s"
527
  msgstr "Изпратено на% s"
528
 
529
+ #: includes/class-wc-advanced-shipment-tracking.php:404
530
  msgid "Add Tracking Info"
531
  msgstr "Добавяне на информация за проследяване"
532
 
533
+ #: includes/class-wc-advanced-shipment-tracking.php:409
534
  msgid "Select Provider"
535
  msgstr "Изберете Доставчик"
536
 
537
+ #: includes/class-wc-advanced-shipment-tracking.php:482
538
  msgid "Save Tracking"
539
  msgstr "Запазване на проследяването"
540
 
541
+ #: includes/class-wc-advanced-shipment-tracking.php:483
542
  msgid "Preview:"
543
  msgstr "Преглед:"
544
 
545
+ #: includes/class-wc-advanced-shipment-tracking.php:702
546
  #, php-format
547
  msgid ""
548
  "Tracking info was deleted for tracking provider %s with tracking number %s"
549
  msgstr ""
550
+ "Информацията за проследяване бе изтрита за проследяване на доставчика% s с "
551
+ "проследяващ номер% s"
552
 
553
+ #: includes/class-wc-advanced-shipment-tracking.php:1092
554
  #, php-format
555
  msgid "Order was shipped with %s and tracking number is: %s"
556
+ msgstr "Поръчката беше изпратена с% s, а проследяващият номер е:% s"
557
 
558
  #: includes/class-wc-advanced-shipment-welcome.php:38
559
  #: includes/class-wc-advanced-shipment-welcome.php:39
560
  msgid "Welcome to Advanced Shipment Tracking"
561
  msgstr ""
562
+ "Добре дошли в разширеното проследяване на пратките\n"
563
 
564
  #: includes/class-wc-advanced-shipment-welcome.php:90
565
  #: includes/class-wc-advanced-shipment-welcome.php:129
566
  #: includes/class-wc-advanced-shipment-welcome.php:147
567
  msgid "Save and Continue"
568
+ msgstr "Запазете и продължете"
569
 
570
  #: includes/class-wc-advanced-shipment-welcome.php:177
571
+ #: includes/views/admin_trackship_dashboard.php:6
572
  msgid "Connection status"
573
+ msgstr "Състояние на връзката"
574
 
575
  #: includes/class-wc-advanced-shipment-welcome.php:184
576
+ #: includes/views/admin_trackship_dashboard.php:13
577
  msgid "TrackShip Connection Status"
578
  msgstr "Състояние на връзката към TrackShip"
579
 
 
 
 
 
 
 
580
  #: includes/class-wc-advanced-shipment-welcome.php:194
581
+ #: includes/views/admin_trackship_dashboard.php:23
582
  msgid "Trackers Balance"
583
+ msgstr "Баланс на тракерите"
584
 
585
  #: includes/class-wc-advanced-shipment-welcome.php:202
586
+ #: includes/views/admin_trackship_dashboard.php:31
587
  msgid "Current Plan"
588
+ msgstr "Настоящ план"
589
 
590
  #: includes/class-wc-advanced-shipment-welcome.php:217
591
+ #: includes/views/admin_options_addons.php:33
592
+ #: includes/views/admin_trackship_dashboard.php:46
593
  msgid ""
594
  "You are now connected with TrackShip! TrackShip makes it effortless to "
595
  "automate your post shipping operations and get tracking and delivery status "
596
  "updates directly in the WooCommerce admin."
597
  msgstr ""
598
+ "Вече сте свързани с TrackShip! TrackShip улеснява автоматизирането на вашите "
599
+ "операции след изпращане и получаване на актуализации за проследяване и "
600
+ "състояние директно в администратора на WooCommerce."
 
 
 
 
601
 
602
  #: includes/class-wc-advanced-shipment-welcome.php:223
603
+ #: includes/views/admin_trackship_dashboard.php:52
604
  msgid "TrackShip Dashboard"
605
+ msgstr "TrackShip табло"
606
 
607
  #: includes/class-wc-advanced-shipment-welcome.php:253
608
  msgid "Save"
609
+ msgstr "Запази"
610
 
611
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:142
612
+ #, php-format
613
+ msgid "Delivered <span class=\"count\">(%s)</span>"
614
+ msgid_plural "Delivered <span class=\"count\">(%s)</span>"
615
+ msgstr[0] "Доставено <span class = \"count\"> (% s) </span>"
616
+ msgstr[1] "Доставено <span class = \"count\"> (% s) </span>"
617
+
618
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:151
619
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:197
620
+ #: includes/views/admin_options_settings.php:149
621
+ msgid "Updated Tracking"
622
+ msgstr "Актуализирано проследяване"
623
+
624
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:156
625
+ #, php-format
626
+ msgid "Updated Tracking <span class=\"count\">(%s)</span>"
627
+ msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
628
+ msgstr[0] "Актуализирано проследяване <span class = \"count\"> (% s) </span>"
629
+ msgstr[1] "Актуализирано проследяване <span class = \"count\"> (% s) </span>"
630
+
631
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:165
632
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:211
633
+ #: includes/views/admin_options_settings.php:115
634
+ msgid "Partially Shipped"
635
+ msgstr "Частично изпратени"
636
+
637
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:170
638
+ #, php-format
639
+ msgid "Partially Shipped <span class=\"count\">(%s)</span>"
640
+ msgid_plural "Partially Shipped <span class=\"count\">(%s)</span>"
641
+ msgstr[0] "Частично изпратен <span class = \"count\"> (% s) </span>"
642
+ msgstr[1] "Частично изпратен <span class = \"count\"> (% s) </span>"
643
 
644
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:270
645
+ msgid "Change status to delivered"
646
+ msgstr "Промяна на състоянието на доставено"
647
 
648
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:279
649
+ msgid "Change status to Updated Tracking"
650
+ msgstr ""
651
+ "Промяна на състоянието на Актуализирано проследяване\n"
652
 
653
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:288
654
+ msgid "Change status to Partially Shipped"
655
+ msgstr "Промяна на състоянието на частично изпратено"
656
 
657
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:320
658
+ #, php-format
659
+ msgid "Shipped <span class=\"count\">(%s)</span>"
660
+ msgid_plural "Shipped <span class=\"count\">(%s)</span>"
661
+ msgstr[0] "Изпратен <span class = \"count\"> (% s) </span>"
662
+ msgstr[1] "Изпратен <span class = \"count\"> (% s) </span>"
663
+
664
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:334
665
+ msgid "Change status to shipped"
666
+ msgstr "Промяна на състоянието на изпратено"
667
+
668
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:518
669
+ msgid "Resend delivered order notification"
670
+ msgstr "Повторно изпратено известие за поръчка"
671
+
672
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:730
673
+ msgid "Shipment Providers"
674
+ msgstr "Доставчици на пратки"
675
+
676
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:733
677
+ msgid "Shipment Status"
678
+ msgstr "Състояние на пратката"
679
+
680
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:736
681
+ msgid "Tracking issues"
682
+ msgstr "Проследяване на проблеми"
683
+
684
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:742
685
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:750
686
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:767
687
+ msgid "data not available."
688
+ msgstr "данни не са налични."
689
+
690
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:773
691
+ msgid "View more on TrackShip"
692
+ msgstr "Вижте повече на TrackShip"
693
+
694
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:911
695
+ msgid "There are some issue with sync, Please Retry."
696
+ msgstr "Има проблем със синхронизирането, Моля, опитайте отново."
697
+
698
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:926
699
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:941
700
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:956
701
+ msgid "view details"
702
+ msgstr "Разгледайте детайлите"
703
+
704
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:927
705
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:942
706
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:957
707
+ msgid "hide details"
708
+ msgstr "скрий подробности"
709
 
710
  #: includes/customizer/class-wcast-customizer.php:40
711
  msgid "Shipment Status Emails"
723
 
724
  #: includes/customizer/class-wcast-customizer.php:68
725
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:143
726
+ msgid "Partially Shipped status email"
727
+ msgstr "Частично изпратен имейл за състояние"
728
 
729
  #: includes/customizer/class-wcast-customizer.php:76
730
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:143
731
+ msgid "Updated Tracking status email"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
732
  msgstr ""
733
+ "Актуализиран имейл за състоянието на проследяването\n"
734
 
735
+ #: includes/customizer/class-wcast-customizer.php:411
 
 
 
 
 
 
 
 
 
 
 
 
736
  msgid "Select order to preview"
737
  msgstr ""
738
  "Изберете поръчка за визуализация\n"
763
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
764
  #: includes/customizer/class-wc-returntosender-email-customizer.php:157
765
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:144
766
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:144
767
  msgid "This section lets you customize the Email Content."
768
  msgstr ""
769
  "Този раздел ви позволява да персонализирате съдържанието на електронната "
781
  #: includes/customizer/class-wc-intransit-email-customizer.php:191
782
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
783
  #: includes/customizer/class-wc-returntosender-email-customizer.php:187
784
+ #: includes/customizer/class-wc-tracking-info-customizer.php:183
785
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:177
786
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:177
787
  msgid "Preview order"
788
  msgstr ""
789
  "Преглед на поръчката\n"
798
  msgid "E.g. {customer.email}, admin@example.org"
799
  msgstr "E.g. {customer.email}, admin@example.org"
800
 
801
+ #. %s: list of placeholders
802
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
803
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
804
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:381
805
  #: includes/customizer/class-wc-delivered-email-customizer.php:232
806
  #: includes/customizer/class-wc-delivered-email-customizer.php:254
807
+ #: includes/customizer/class-wc-delivered-email-customizer.php:383
808
+ #: includes/customizer/class-wc-email-customizer.php:243
809
+ #: includes/customizer/class-wc-email-customizer.php:266
810
+ #: includes/customizer/class-wc-email-customizer.php:289
811
+ #: includes/customizer/class-wc-email-customizer.php:414
812
  #: includes/customizer/class-wc-failure-email-customizer.php:231
813
  #: includes/customizer/class-wc-failure-email-customizer.php:253
814
+ #: includes/customizer/class-wc-failure-email-customizer.php:382
815
  #: includes/customizer/class-wc-intransit-email-customizer.php:235
816
  #: includes/customizer/class-wc-intransit-email-customizer.php:257
817
+ #: includes/customizer/class-wc-intransit-email-customizer.php:386
818
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
819
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
820
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:384
821
  #: includes/customizer/class-wc-returntosender-email-customizer.php:231
822
  #: includes/customizer/class-wc-returntosender-email-customizer.php:253
823
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:382
824
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:200
825
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:223
826
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:246
827
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:265
828
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:200
829
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:223
830
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:246
831
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:265
832
+ #: includes/emails/class-shipment-delivered-email.php:256
833
+ #: includes/emails/class-shipment-delivered-email.php:265
834
+ msgid "Available variables:"
835
+ msgstr "Налични променливи:"
 
 
 
 
 
 
 
 
 
 
 
836
 
837
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
838
  #: includes/customizer/class-wc-delivered-email-customizer.php:275
876
 
877
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
878
  #: includes/customizer/class-wc-delivered-email-customizer.php:340
879
+ #: includes/customizer/class-wc-email-customizer.php:393
880
  #: includes/customizer/class-wc-failure-email-customizer.php:339
881
+ #: includes/customizer/class-wc-intransit-email-customizer.php:364
882
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
883
  #: includes/customizer/class-wc-returntosender-email-customizer.php:339
884
  msgid "Google Analytics link tracking"
885
+ msgstr "Проследяване на връзки в Google Analytics"
886
 
887
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
888
  #: includes/customizer/class-wc-delivered-email-customizer.php:341
889
  #: includes/customizer/class-wc-failure-email-customizer.php:340
890
+ #: includes/customizer/class-wc-intransit-email-customizer.php:365
891
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
892
  #: includes/customizer/class-wc-returntosender-email-customizer.php:340
893
  msgid "This will be appended to URL in the email content"
894
+ msgstr "Това ще бъде добавено към URL адреса в съдържанието на имейла"
895
 
896
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
897
  #: includes/customizer/class-wc-delivered-email-customizer.php:362
901
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
902
  #: includes/customizer/class-wc-returntosender-email-customizer.php:361
903
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:245
904
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:245
905
  msgid "Email content"
906
  msgstr "Съдържание на имейла"
907
 
908
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:438
909
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:445
910
+ #: includes/customizer/class-wc-delivered-email-customizer.php:440
911
+ #: includes/customizer/class-wc-delivered-email-customizer.php:447
912
+ #: includes/customizer/class-wc-email-customizer.php:447
913
+ #: includes/customizer/class-wc-failure-email-customizer.php:439
914
+ #: includes/customizer/class-wc-failure-email-customizer.php:447
915
+ #: includes/customizer/class-wc-intransit-email-customizer.php:442
916
+ #: includes/customizer/class-wc-intransit-email-customizer.php:450
917
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:440
918
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:448
919
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:438
920
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:446
921
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:298
922
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:298
 
 
 
 
 
 
923
  msgid "Please select order to preview."
924
+ msgstr "Моля, изберете поръчка за преглед."
925
 
926
  #: includes/customizer/class-wc-delivered-email-customizer.php:124
927
  msgid "Your order #{order_number} has been delivered"
928
+ msgstr "Вашата поръчка № {order_number} е доставена"
929
 
930
  #: includes/customizer/class-wc-delivered-email-customizer.php:126
931
  #: includes/customizer/class-wc-email-customizer.php:132
954
  msgstr "Активиране на имейл съобщението за състоянието на поръчката"
955
 
956
  #: includes/customizer/class-wc-email-customizer.php:201
957
+ #: includes/customizer/class-wc-tracking-info-customizer.php:187
958
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:181
959
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:181
960
  msgid "Please select a order..."
961
  msgstr ""
962
  "Моля, изберете поръчка ...\n"
963
 
964
+ #: includes/customizer/class-wc-email-customizer.php:309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
965
  msgid "Display tracking details"
966
+ msgstr "Показване на подробности за проследяване"
967
 
968
+ #: includes/customizer/class-wc-email-customizer.php:325
969
  msgid "Display order details"
970
+ msgstr "Показване на подробности за поръчката"
971
 
972
+ #: includes/customizer/class-wc-email-customizer.php:342
973
  msgid "Display Shipping Address"
974
+ msgstr "Показване на адрес за доставка"
975
 
976
+ #: includes/customizer/class-wc-email-customizer.php:359
977
  msgid "Display Billing Address"
978
+ msgstr "Показване на адрес за фактуриране"
979
 
980
+ #: includes/customizer/class-wc-email-customizer.php:376
981
  msgid "Enable Google Analytics tracking"
982
+ msgstr "Активиране на проследяването на Google Analytics"
983
 
984
+ #: includes/customizer/class-wc-email-customizer.php:394
985
  msgid ""
986
  "This will be appended to URL in the email content – e.g. "
987
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
988
  msgstr ""
989
+ "Това ще бъде добавено към URL адреса в съдържанието на имейла - напр. "
990
+ "utm_source = AST & utm_medium = имейл & utm_campaign = доставени"
991
 
992
  #: includes/customizer/class-wc-failure-email-customizer.php:123
993
  msgid "Your order #{order_number} is Failed Attempt"
1075
  msgstr "Активиране на имейла за състоянието на изпращане на изпращача"
1076
 
1077
  #: includes/customizer/class-wc-tracking-info-customizer.php:144
1078
+ #: includes/customizer/class-wc-tracking-info-customizer.php:496
1079
+ #: templates/emails/tracking-info.php:203
1080
+ #: templates/myaccount/tracking-info.php:144
1081
  msgid "Provider"
1082
  msgstr "доставчик"
1083
 
1084
  #: includes/customizer/class-wc-tracking-info-customizer.php:145
1085
+ #: includes/customizer/class-wc-tracking-info-customizer.php:518
1086
+ #: templates/emails/tracking-info.php:232
1087
+ #: templates/myaccount/tracking-info.php:171
1088
  msgid "Tracking Number"
1089
  msgstr "Номер за проследяване"
1090
 
1091
  #: includes/customizer/class-wc-tracking-info-customizer.php:146
1092
+ #: includes/customizer/class-wc-tracking-info-customizer.php:539
1093
  msgid "Shipped Date"
1094
  msgstr ""
1095
  "Дата на изпращане\n"
1096
 
1097
+ #: includes/customizer/class-wc-tracking-info-customizer.php:184
1098
+ msgid "Select an order to preview and design the tracking info display."
 
 
1099
  msgstr ""
1100
+ "Изберете поръчка за визуализация и дизайн на дисплея с информация за "
1101
+ "проследяване.\n"
 
 
 
 
 
 
 
1102
 
1103
+ #: includes/customizer/class-wc-tracking-info-customizer.php:204
1104
  msgid "Tracking Display Position"
1105
  msgstr "Проследяване на позицията на дисплея"
1106
 
1107
+ #: includes/customizer/class-wc-tracking-info-customizer.php:208
1108
  msgid "Before Order Details"
1109
  msgstr "Преди подробности за поръчката"
1110
 
1111
+ #: includes/customizer/class-wc-tracking-info-customizer.php:209
1112
  msgid "After Order Details"
1113
  msgstr "След подробности за поръчката"
1114
 
1115
+ #: includes/customizer/class-wc-tracking-info-customizer.php:224
1116
+ msgid "Tracking Header text"
1117
+ msgstr ""
1118
+ "Проследяване на текста на заглавката\n"
1119
 
1120
+ #: includes/customizer/class-wc-tracking-info-customizer.php:231
1121
  msgid "Tracking Information"
1122
  msgstr "Информация за проследяване"
1123
 
1124
+ #: includes/customizer/class-wc-tracking-info-customizer.php:246
1125
  msgid "Additional text after header"
1126
  msgstr "Допълнителен текст след заглавието"
1127
 
1128
+ #: includes/customizer/class-wc-tracking-info-customizer.php:267
1129
+ #: includes/customizer/class-wc-tracking-info-customizer.php:270
1130
+ msgid "Tracking display template"
1131
+ msgstr ""
1132
+ "Шаблон за показване на проследяване\n"
1133
+
1134
+ #: includes/customizer/class-wc-tracking-info-customizer.php:274
1135
+ msgid "Select Template"
1136
  msgstr ""
1137
+ "Изберете шаблон\n"
1138
+
1139
+ #: includes/customizer/class-wc-tracking-info-customizer.php:275
1140
+ msgid "Table Layout"
1141
+ msgstr ""
1142
+ "Оформление на таблицата\n"
1143
 
1144
  #: includes/customizer/class-wc-tracking-info-customizer.php:291
1145
+ msgid "Simple Layout Design"
1146
+ msgstr ""
1147
+ "Прост дизайн на оформлението\n"
1148
 
1149
+ #: includes/customizer/class-wc-tracking-info-customizer.php:306
1150
+ msgid "Provider font size"
1151
+ msgstr ""
1152
+ "Размер на шрифта на доставчика\n"
1153
+
1154
+ #: includes/customizer/class-wc-tracking-info-customizer.php:323
1155
+ msgid "Provider font color"
1156
+ msgstr ""
1157
+ "Цвят на шрифта на доставчика\n"
1158
+
1159
+ #: includes/customizer/class-wc-tracking-info-customizer.php:339
1160
+ msgid "Show bottom border"
1161
+ msgstr ""
1162
+ "Показване на долната граница\n"
1163
+
1164
+ #: includes/customizer/class-wc-tracking-info-customizer.php:356
1165
+ msgid "Bottom border color"
1166
+ msgstr ""
1167
+ "Цвят на долната граница\n"
1168
 
1169
+ #: includes/customizer/class-wc-tracking-info-customizer.php:374
1170
+ msgid "Table layout Design"
1171
  msgstr ""
1172
+ "Дизайн на таблицата\n"
1173
 
1174
+ #: includes/customizer/class-wc-tracking-info-customizer.php:389
1175
+ msgid "Display shipping provider name"
1176
  msgstr ""
1177
+ "Показване на име на доставчика на доставка\n"
1178
 
1179
+ #: includes/customizer/class-wc-tracking-info-customizer.php:406
1180
+ msgid "Display shipping provider image"
1181
+ msgstr ""
1182
+ "Покажи изображението на доставчика на доставка\n"
1183
+
1184
+ #: includes/customizer/class-wc-tracking-info-customizer.php:423
1185
+ msgid "Hide the ship date"
1186
+ msgstr ""
1187
+ "Скриване на датата на кораба\n"
1188
+
1189
+ #: includes/customizer/class-wc-tracking-info-customizer.php:440
1190
+ msgid "Use tracking number as a link"
1191
+ msgstr "Използвайте проследяващия номер като връзка"
1192
+
1193
+ #: includes/customizer/class-wc-tracking-info-customizer.php:457
1194
+ msgid "Table Headers"
1195
+ msgstr ""
1196
+ "Заглавки на таблици\n"
1197
+
1198
+ #: includes/customizer/class-wc-tracking-info-customizer.php:472
1199
+ msgid "Hide Table Headers"
1200
+ msgstr ""
1201
+ "Скриване на заглавките на таблици\n"
1202
+
1203
+ #: includes/customizer/class-wc-tracking-info-customizer.php:489
1204
+ msgid "Provider header text"
1205
  msgstr "Текст на заглавката на доставчика"
1206
 
1207
+ #: includes/customizer/class-wc-tracking-info-customizer.php:511
1208
+ msgid "Tracking Number header text"
1209
+ msgstr "Текст на заглавния номер на проследяващия номер"
1210
 
1211
+ #: includes/customizer/class-wc-tracking-info-customizer.php:532
1212
+ msgid "Ship date header text"
1213
+ msgstr ""
1214
+ "Текст на заглавието на датата на изпращане\n"
1215
 
1216
+ #: includes/customizer/class-wc-tracking-info-customizer.php:554
1217
  msgid "Track Label"
1218
  msgstr "Етикет за проследяване"
1219
 
1220
+ #: includes/customizer/class-wc-tracking-info-customizer.php:571
1221
+ msgid "Track header text"
1222
+ msgstr ""
1223
+ "Проследяване на заглавния текст\n"
 
 
 
1224
 
1225
+ #: includes/customizer/class-wc-tracking-info-customizer.php:593
1226
+ msgid "Headers font size"
1227
+ msgstr ""
1228
+ "Размер на шрифта на заглавките\n"
1229
 
1230
+ #: includes/customizer/class-wc-tracking-info-customizer.php:610
1231
+ msgid "Headers font color"
1232
  msgstr ""
1233
+ "Цвят на шрифта на заглавките\n"
1234
+
1235
+ #: includes/customizer/class-wc-tracking-info-customizer.php:626
1236
+ msgid "Table Content"
1237
+ msgstr "Съдържание на таблицата"
1238
 
1239
+ #: includes/customizer/class-wc-tracking-info-customizer.php:641
1240
  msgid "Padding"
1241
  msgstr ""
1242
  "подложка\n"
1243
 
1244
+ #: includes/customizer/class-wc-tracking-info-customizer.php:661
1245
+ #: includes/customizer/class-wc-tracking-info-customizer.php:845
1246
  msgid "Background color"
1247
  msgstr "Цвят на фона"
1248
 
1249
+ #: includes/customizer/class-wc-tracking-info-customizer.php:677
1250
+ #: includes/views/admin_tracking_page_settings.php:72
1251
  msgid "Border color"
1252
  msgstr "Цвят на границата"
1253
 
1254
+ #: includes/customizer/class-wc-tracking-info-customizer.php:693
1255
  msgid "Border size"
1256
  msgstr "Размер на границата"
1257
 
1258
+ #: includes/customizer/class-wc-tracking-info-customizer.php:717
1259
+ msgid "Content Text align"
1260
+ msgstr ""
1261
+ "Изравняване на текста на съдържанието\n"
1262
 
1263
+ #: includes/customizer/class-wc-tracking-info-customizer.php:739
1264
+ msgid "Content font color"
1265
+ msgstr ""
1266
+ "Цвят на шрифта на съдържанието\n"
1267
 
1268
+ #: includes/customizer/class-wc-tracking-info-customizer.php:755
1269
+ msgid "Content font size"
1270
+ msgstr ""
1271
+ "Размер на шрифта на съдържанието\n"
1272
 
1273
+ #: includes/customizer/class-wc-tracking-info-customizer.php:772
1274
  msgid "Content line height"
1275
  msgstr ""
1276
  "Височина на линията на съдържанието\n"
1277
 
1278
+ #: includes/customizer/class-wc-tracking-info-customizer.php:793
1279
  msgid "Content font weight"
1280
  msgstr ""
1281
  "Тегло на шрифта на съдържанието\n"
1282
 
1283
+ #: includes/customizer/class-wc-tracking-info-customizer.php:815
1284
+ msgid "Tracking Link"
1285
  msgstr ""
1286
+ "Проследяваща връзка\n"
1287
 
1288
+ #: includes/customizer/class-wc-tracking-info-customizer.php:829
1289
+ msgid "Font Color"
1290
+ msgstr ""
1291
+ "Цвят на шрифта\n"
1292
 
1293
+ #: includes/customizer/class-wc-tracking-info-customizer.php:860
1294
+ msgid "Border"
1295
+ msgstr ""
1296
+ "граница\n"
1297
 
1298
+ #: includes/customizer/class-wc-tracking-info-customizer.php:912
1299
+ msgid ""
1300
+ "To preview the tracking display, please add tracking information to at least "
1301
+ "one order and choose it in the preview order selection."
1302
+ msgstr ""
1303
+ "За да визуализирате проследяващия дисплей, моля, добавете информация за "
1304
+ "проследяване на поне една поръчка и я изберете в избора на поръчка за "
1305
+ "преглед.\n"
1306
 
1307
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:116
1308
+ msgid "Your {site_title} order is now partially shipped"
1309
+ msgstr "Поръчката ви {site_title} вече е частично доставена"
1310
 
1311
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:118
1312
  msgid ""
1313
  "Hi there. we thought you'd like to know that your recent order from "
1314
+ "{site_title} has been partially shipped."
1315
  msgstr ""
1316
+ "Здрасти. решихме, че бихте искали да знаете, че скорошната ви поръчка от "
1317
+ "{site_title} е частично изпратена.\n"
1318
 
1319
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:159
1320
+ msgid "Enable Partially Shipped order status email"
1321
+ msgstr "Активиране на частично изпратен имейл за състоянието на поръчката"
1322
+
1323
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:116
1324
+ msgid "Your {site_title} order is now updated tracking"
1325
+ msgstr ""
1326
+ "Поръчката ви {site_title} вече е актуализирана за проследяване\n"
1327
+
1328
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:118
1329
+ msgid ""
1330
+ "Hi there. we thought you'd like to know that the shipment tracking for your "
1331
+ "recent order from {site_title} has been updated."
1332
  msgstr ""
1333
+ "Здрасти. решихме, че бихте искали да знаете, че проследяването на пратката "
1334
+ "за скорошната ви поръчка от {site_title} е актуализирано.\n"
1335
+
1336
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:159
1337
+ msgid "Enable Updated Tracking order status email"
1338
+ msgstr ""
1339
+ "Активиране на имейла за актуализирано проследяване на поръчката\n"
1340
 
1341
  #: includes/emails/class-shipment-delivered-email.php:32
1342
  msgid "Delivered order"
1343
+ msgstr "Доставена поръчка"
1344
 
1345
  #: includes/emails/class-shipment-delivered-email.php:33
1346
  msgid ""
1347
  "Order delivered emails are sent to customers when their orders are marked "
1348
  "delivered and usually indicate that their orders have been shipped."
1349
  msgstr ""
1350
+ "Имейлите за доставени поръчки се изпращат на клиентите, когато поръчките им "
1351
+ "са маркирани доставени и обикновено показват, че поръчките им са изпратени."
1352
 
1353
+ #: includes/emails/class-shipment-delivered-email.php:280
1354
  msgid "Click Here"
1355
+ msgstr "Натисни тук"
1356
 
1357
+ #: includes/emails/class-shipment-delivered-email.php:281
1358
  msgid "Edit in customizer"
1359
+ msgstr "Редактиране в персонализатора"
1360
 
1361
  #: includes/views/admin_options_bulk_upload.php:10
1362
  msgid "Upload CSV"
1371
  "отметнато, информацията за проследяване ще бъде добавена)"
1372
 
1373
  #: includes/views/admin_options_bulk_upload.php:29
1374
+ #: includes/views/admin_options_shipping_provider.php:120
1375
+ #: includes/views/admin_options_shipping_provider.php:157
1376
  msgid "Upload"
1377
  msgstr "Качи"
1378
 
1384
  msgid "Upload Progress - "
1385
  msgstr "Качване на напредъка -"
1386
 
1387
+ #: includes/views/admin_options_bulk_upload.php:50
1388
  msgid "Sample CSV"
1389
+ msgstr "Примерен CSV"
1390
 
1391
+ #: includes/views/admin_options_bulk_upload.php:55
1392
  msgid "You can download an example of the csv file:"
1393
  msgstr "Можете да изтеглите пример за csv файл:"
1394
 
1395
+ #: includes/views/admin_options_bulk_upload.php:58
1396
  msgid "Download sample csv file"
1397
  msgstr "Изтеглете примерния файл csv"
1398
 
1399
+ #: includes/views/admin_options_bulk_upload.php:63
1400
  msgid ""
1401
  "For detailed instructions on how to upload tracking info in bulk, see our"
1402
  msgstr ""
1403
  "За подробни инструкции за това как да качите информация за проследяване в "
1404
  "насипно състояние, вижте нашата"
1405
 
1406
+ #: includes/views/admin_options_settings.php:15
1407
+ #: includes/views/admin_trackship_dashboard.php:62
1408
+ msgid "General Settings"
1409
+ msgstr "Основни настройки"
1410
+
1411
  #: includes/views/admin_options_settings.php:26
1412
+ #: includes/views/admin_options_settings.php:181
1413
+ #: includes/views/admin_trackship_dashboard.php:73
1414
+ #: includes/views/admin_tracking_page_settings.php:101
 
1415
  msgid "Save Changes"
1416
+ msgstr "Запазите промените"
1417
 
1418
  #: includes/views/admin_options_settings.php:40
1419
  msgid "Tracking Info Display"
1420
+ msgstr "Информация за проследяване на информация"
1421
 
1422
  #: includes/views/admin_options_settings.php:49
1423
  msgid "You can customize the tracking info display on emails and my account"
1424
  msgstr ""
1425
+ "Можете да персонализирате показването на информация за проследяване на "
1426
+ "имейли и моя акаунт"
1427
 
1428
  #: includes/views/admin_options_settings.php:52
1429
  msgid "Launch Customizer"
1430
+ msgstr "Стартирайте персонализатора"
1431
 
1432
  #: includes/views/admin_options_settings.php:62
1433
+ msgid "Custom Order Statuses"
 
 
 
 
1434
  msgstr ""
1435
+ "Статуси по поръчка\n"
1436
 
1437
  #: includes/views/admin_options_settings.php:94
1438
+ #: includes/views/admin_options_settings.php:129
1439
+ #: includes/views/admin_options_settings.php:163
1440
+ msgid "Light Font"
1441
+ msgstr ""
1442
+ "Лек шрифт\n"
1443
+
1444
+ #: includes/views/admin_options_settings.php:95
1445
+ #: includes/views/admin_options_settings.php:130
1446
+ #: includes/views/admin_options_settings.php:164
1447
+ msgid "Dark Font"
1448
+ msgstr ""
1449
+ "Тъмен шрифт\n"
1450
+
1451
+ #: includes/views/admin_options_settings.php:99
1452
+ #: includes/views/admin_options_settings.php:134
1453
+ #: includes/views/admin_options_settings.php:168
1454
+ msgid "Send Email"
1455
  msgstr ""
1456
+ "Изпратете имейл\n"
1457
 
1458
  #: includes/views/admin_options_shipping_provider.php:12
1459
+ #: includes/views/admin_options_shipping_provider.php:25
1460
+ #: includes/views/zorem_admin_sidebar.php:18
1461
+ #: includes/views/admin_options_addons.php:109
1462
  msgid "Active"
1463
+ msgstr "Активен"
1464
 
1465
  #: includes/views/admin_options_shipping_provider.php:13
1466
+ #: includes/views/admin_options_shipping_provider.php:25
1467
  msgid "Inactive"
1468
+ msgstr "неактивен"
1469
 
1470
  #: includes/views/admin_options_shipping_provider.php:14
1471
  msgid "Custom"
1472
+ msgstr "Персонализиран"
1473
 
1474
+ #: includes/views/admin_options_shipping_provider.php:20
1475
+ msgid "Search by provider / country"
1476
+ msgstr "Търсене по доставчик / държава"
1477
+
1478
+ #: includes/views/admin_options_shipping_provider.php:25
1479
+ msgid "Reset all:"
1480
  msgstr ""
1481
+ "Нулиране на всички:\n"
1482
 
1483
+ #: includes/views/admin_options_shipping_provider.php:26
 
1484
  #: includes/views/admin_options_shipping_provider.php:177
1485
+ #: includes/views/admin_options_shipping_provider.php:184
1486
  msgid "Sync Shipping Providers"
1487
+ msgstr "Синхронизирайте доставчиците на доставка"
 
 
 
 
 
 
 
 
 
 
 
 
 
1488
 
1489
+ #: includes/views/admin_options_shipping_provider.php:102
1490
  msgid "Add Custom Shipping Provider"
1491
  msgstr "Добавете Потребителски доставчик"
1492
 
1493
+ #: includes/views/admin_options_shipping_provider.php:109
1494
+ #: includes/views/admin_options_shipping_provider.php:146
1495
  msgid "Shipping Country"
1496
+ msgstr "Страна на доставка"
1497
 
1498
+ #: includes/views/admin_options_shipping_provider.php:110
1499
+ #: includes/views/admin_options_shipping_provider.php:147
1500
  msgid "Global"
1501
+ msgstr "в световен мащаб"
1502
+
1503
+ #: includes/views/admin_options_shipping_provider.php:126
1504
+ #: includes/views/admin_options_shipping_provider.php:163
1505
+ msgid "How to add Tracking URL"
1506
+ msgstr "Как да добавите проследяващ URL адрес"
1507
 
1508
+ #: includes/views/admin_options_shipping_provider.php:139
1509
  msgid "Edit Custom Shipping Provider"
1510
  msgstr "Редактиране на доставчик по поръчка"
1511
 
1512
+ #: includes/views/admin_options_shipping_provider.php:178
1513
  msgid ""
1514
  "Syncing the shipping providers list add or updates the pre-set shipping "
1515
  "providers and will not effect custom shipping providers."
1516
  msgstr ""
1517
+ "Синхронизирането на списъка на доставчиците на доставки добавя или "
1518
+ "актуализира предварително зададените доставчици за доставка и няма да "
1519
+ "повлияе на доставчиците по поръчка."
1520
 
1521
+ #: includes/views/admin_options_shipping_provider.php:180
1522
  msgid "Providers Added"
1523
  msgstr "Доставчиците са добавени"
1524
 
1525
+ #: includes/views/admin_options_shipping_provider.php:181
1526
  msgid "Providers Updated"
1527
  msgstr "Актуализирани доставчици"
1528
 
1529
+ #: includes/views/admin_options_shipping_provider.php:182
1530
  msgid "Providers Deleted"
1531
  msgstr "Доставчиците са изтрити"
1532
 
1533
+ #: includes/views/admin_options_trackship_integration.php:17
1534
+ #: includes/views/admin_tracking_page_settings.php:7
1535
  msgid "Tracking Page"
1536
  msgstr "Страница за проследяване"
1537
 
1538
+ #: includes/views/admin_options_trackship_integration.php:20
1539
+ msgid "Shipment Status Notifications"
1540
+ msgstr ""
1541
+ "Известия за състоянието на пратката\n"
1542
+
1543
+ #: includes/views/admin_options_trackship_integration.php:23
1544
+ msgid "Tools"
1545
+ msgstr "Инструменти"
1546
+
1547
+ #: includes/views/zorem_admin_sidebar.php:15
1548
+ #: includes/views/admin_options_addons.php:90
1549
+ msgid "Get This Add-on >"
1550
+ msgstr ""
1551
+ "Вземете тази добавка>\n"
1552
+
1553
+ #: includes/views/zorem_admin_sidebar.php:27
1554
+ msgid "Upgrade to PRO"
1555
+ msgstr ""
1556
+ "Надградете до PRO\n"
1557
+
1558
+ #: includes/views/admin_options_tools.php:23
1559
+ msgid ""
1560
+ "You can send all your orders from the last 30 days to get shipment status "
1561
+ "from TrackShip:"
1562
+ msgstr ""
1563
+ "Можете да изпратите всичките си поръчки от последните 30 дни, за да получите "
1564
+ "статус на пратката от TrackShip:"
1565
+
1566
+ #: includes/views/admin_options_addons.php:20
1567
+ msgid "TrackShip"
1568
+ msgstr "TrackShip"
1569
 
1570
+ #: includes/views/admin_options_addons.php:36
1571
+ msgid ""
1572
+ "TracksShip is a premium shipment tracking API flatform that fully integrates "
1573
+ "with WooCommerce with the Advanced Shipment Tracking. TrackShip automates "
1574
+ "the order management workflows, reduces customer inquiries, reduces time "
1575
+ "spent on customer service, and improves the post-purchase experience and "
1576
+ "satisfaction of your customers."
1577
+ msgstr ""
1578
+ "TracksShip е първокласна форма на API за проследяване на пратки, която "
1579
+ "напълно се интегрира с WooCommerce с разширеното проследяване на пратките. "
1580
+ "TrackShip автоматизира процесите на управление на поръчките, намалява "
1581
+ "запитванията на клиенти, намалява времето, изразходвано за обслужване на "
1582
+ "клиентите, и подобрява преживяването след покупка и удовлетворението на "
1583
+ "вашите клиенти.\n"
1584
+
1585
+ #: includes/views/admin_options_addons.php:37
1586
+ msgid ""
1587
+ "You must have account TracksShip and connect your store in order to activate "
1588
+ "these advanced features:"
1589
  msgstr ""
1590
+ "Трябва да имате акаунт TracksShip и да свържете магазина си, за да "
1591
+ "активирате тези разширени функции:\n"
1592
+
1593
+ #: includes/views/admin_options_addons.php:51
1594
+ msgid "SIGNUP NOW"
1595
+ msgstr ""
1596
+ "ВКЛЮЧИ СЕ СЕГА\n"
1597
+
1598
+ #: includes/views/admin_options_addons.php:80
1599
+ msgid ""
1600
+ "The Tracking Per Item add-on extends the AST plugin and allows you to attach "
1601
+ "tracking numbers to specific line items and to line item quantities."
1602
+ msgstr ""
1603
+ "Добавката за проследяване на артикул разширява приставката AST и ви "
1604
+ "позволява да прикачите проследяващи номера към конкретни договорени позиции "
1605
+ "и за количества от договорени покупки.\n"
1606
+
1607
+ #: includes/views/admin_options_addons.php:110
1608
+ msgid "Deactivate"
1609
+ msgstr "Деактивиране"
1610
+
1611
+ #: includes/views/admin_options_addons.php:112
1612
+ msgid "Activate"
1613
+ msgstr "Активирате"
1614
 
1615
+ #: includes/views/admin_tracking_page_settings.php:39
1616
+ msgid ""
1617
+ "Note - If you select a different page than the Shipment Tracking page, add "
1618
+ "the [wcast-track-order] shortcode to the selected page content."
1619
+ msgstr ""
1620
+ "Забележка - Ако изберете страница, различна от тази за проследяване на "
1621
+ "пратката, добавете краткия код [wcast-track-order] към избраното съдържание "
1622
+ "на страницата.\n"
1623
+
1624
+ #: includes/views/admin_tracking_page_settings.php:39
1625
+ msgid "more info"
1626
+ msgstr ""
1627
+ "повече информация\n"
1628
+
1629
+ #: includes/views/admin_tracking_page_settings.php:66
1630
+ msgid "Text Color"
1631
+ msgstr ""
1632
+ "Цвят на текста\n"
1633
+
1634
+ #: includes/views/admin_tracking_page_settings.php:88
1635
+ msgid "Hide tracking event details"
1636
+ msgstr ""
1637
+ "Скриване на данните за проследяване на проследяването\n"
1638
+
1639
+ #: includes/views/admin_tracking_page_settings.php:110
1640
+ msgid "Preview"
1641
+ msgstr ""
1642
+ "предварителен преглед\n"
1643
+
1644
+ #: includes/views/admin_status_notifications.php:3
1645
  msgid "Shipment Status Notifications "
1646
  msgstr "Известия за състоянието на пратката"
1647
 
1648
+ #: includes/views/admin_status_notifications.php:27
1649
  msgid ""
1650
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1651
  "the way."
1652
  msgstr "Превозвачът е приел или взел пратка от изпращача. Пратката е на път."
1653
 
1654
+ #: includes/views/admin_status_notifications.php:41
1655
  msgid "Shipment is returned to sender"
1656
  msgstr "Пратката се връща на подателя"
1657
 
1658
+ #: includes/views/admin_status_notifications.php:55
1659
  msgid "The shipment is ready to pickup."
1660
  msgstr "Пратката е готова за пикап."
1661
 
1662
+ #: includes/views/admin_status_notifications.php:68
1663
  msgid "Carrier is about to deliver the shipment"
1664
  msgstr "Превозвачът е на път да достави пратката"
1665
 
1666
+ #: includes/views/admin_status_notifications.php:82
1667
  msgid "The shipment was delivered successfully"
1668
  msgstr "Пратката е доставена успешно"
1669
 
1670
+ #: includes/views/admin_status_notifications.php:83
1671
  msgid ""
1672
  "You already have delivered email enabled, to enable this email you'll need "
1673
  "to disable the order status delivered in settings."
1675
  "Вече сте предоставили активиран имейл, за да активирате този имейл, ще "
1676
  "трябва да деактивирате състоянието на поръчката, доставена в настройките."
1677
 
1678
+ #: includes/views/admin_status_notifications.php:97
1679
  msgid ""
1680
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1681
  "will try to deliver the package again."
1683
  "Превозвачът се опита да достави, но не успя и обикновено оставя известие и "
1684
  "ще се опита да достави пакета отново."
1685
 
1686
+ #: templates/emails/tracking-info.php:225
1687
+ #: templates/myaccount/tracking-info.php:166
1688
+ msgid "Provider Name"
1689
+ msgstr "Provider Name"
 
 
 
 
 
1690
 
1691
  #. %s: Order ID.
1692
  #: templates/emails/wcast-email-order-details.php:47
1695
  msgstr ""
1696
  "Номер на поръчката:% s\n"
1697
 
1698
+ #: includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php:368
1699
+ msgid "Cannot create existing order shipment tracking."
1700
+ msgstr "Cannot create existing order shipment tracking."
1701
+
1702
+ #: includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php:377
1703
+ msgid "Invalid order ID."
1704
+ msgstr "Невалиден идентификационен номер на поръчката."
1705
+
1706
+ #: includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php:381
1707
+ msgid "Special character not allowd in tracking number"
1708
+ msgstr "Специален знак не е разрешен в проследяващия номер"
1709
+
1710
  #. Name of the plugin
1711
  msgid "Advanced Shipment Tracking for WooCommerce"
1712
  msgstr ""
1713
+ "Разширено проследяване на пратки за WooCommerce\n"
1714
 
1715
  #. Description of the plugin
1716
  msgid ""
1719
  "will appear in customers accounts (in the order panel) and in WooCommerce "
1720
  "order complete email."
1721
  msgstr ""
1722
+ "Добавете информация за проследяване на пратките към вашите поръчки в "
1723
+ "WooCommerce и осигурете на клиентите лесен начин за проследяване на техните "
1724
+ "поръчки. Информация за проследяване на пратката ще се появи в клиентските "
1725
+ "акаунти (в панела за поръчки) и в пълния имейл на поръчката на WooCommerce."
lang/woo-advanced-shipment-tracking-da_DK.mo CHANGED
Binary file
lang/woo-advanced-shipment-tracking-da_DK.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2019-11-01 10:06+0000\n"
6
- "PO-Revision-Date: 2019-11-01 10:06+0000\n"
7
- "Last-Translator: gaurav <gaurav1092@zorem.com>\n"
8
  "Language-Team: Danish\n"
9
  "Language: da_DK\n"
10
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
@@ -12,9 +12,9 @@ msgstr ""
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
- "X-Loco-Version: 2.3.1; wp-5.2.4"
16
 
17
- #: woocommerce-advanced-shipment-tracking.php:114
18
  #, php-format
19
  msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
@@ -23,24 +23,358 @@ msgstr ""
23
  "Installer og aktiver venligst% sWooCommerce% s for WooCommerce Advanced "
24
  "Shipping Tracking!"
25
 
26
- #: woocommerce-advanced-shipment-tracking.php:223
27
  #, php-format
28
  msgid "Your order was shipped with %s and your tracking code is: %s"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  msgstr ""
 
30
 
31
- #: woocommerce-advanced-shipment-tracking.php:430
32
- #: includes/views/admin_options_settings.php:68
33
  #, php-format
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  msgid ""
35
- "<strong>PLEASE NOTE</strong> - If you use the custom order status "
36
- "\"Delivered\", when you deactivate the plugin, you must register this order "
37
- "status in function.php in order to see these orders in the orders admin. You "
38
- "can find the <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
39
- "php here or you can manually change all your \"delivered\" order to "
40
- "\"completed\" before deactivating the plugin."
41
  msgstr ""
 
 
42
 
43
- #: includes/class-wc-advanced-shipment-tracking-front.php:150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  msgid ""
45
  "To track your order please enter your Order ID in the box below and press "
46
  "the \"Track\" button. This was given to you on your receipt and in the "
@@ -50,252 +384,318 @@ msgstr ""
50
  "trykke på knappen \"Spor\". Dette blev givet til dig på din kvittering og i "
51
  "den bekræftelses e-mail, du skulle have modtaget.\n"
52
 
53
- #: includes/class-wc-advanced-shipment-tracking-front.php:151
54
- #: includes/class-wc-advanced-shipment-tracking-front.php:152
55
  msgid "Found in your order confirmation email."
56
  msgstr ""
57
  "Findes i din ordrebekræftelses-email.\n"
58
 
59
- #: includes/class-wc-advanced-shipment-tracking-front.php:152
60
  msgid "Order Email"
61
  msgstr ""
62
  "Bestil Email\n"
63
 
64
- #: includes/class-wc-advanced-shipment-tracking-front.php:155
65
- #: includes/class-wc-advanced-shipment-tracking.php:276
66
- #: includes/class-wc-advanced-shipment-tracking.php:701
67
- #: includes/class-wc-advanced-shipment-tracking.php:826
68
  #: includes/customizer/class-wc-tracking-info-customizer.php:147
69
- #: includes/customizer/class-wc-tracking-info-customizer.php:444
70
- #: templates/emails/tracking-info.php:174
71
- #: templates/myaccount/tracking-info.php:125
72
  msgid "Track"
73
  msgstr "Spor pakke"
74
 
75
- #: includes/class-wc-advanced-shipment-tracking-front.php:233
76
- #: includes/class-wc-advanced-shipment-tracking-front.php:510
 
 
77
  #, php-format
78
  msgid "Shipment - %s (out of %s)"
79
  msgstr ""
80
  "Forsendelse -% s (ud af% s)\n"
81
 
82
- #: includes/class-wc-advanced-shipment-tracking-front.php:246
83
- #: includes/class-wc-advanced-shipment-tracking-front.php:250
84
- #: includes/class-wc-advanced-shipment-tracking-front.php:523
85
- #: includes/class-wc-advanced-shipment-tracking-front.php:527
86
- msgid "Estimated Delivery Date: "
87
- msgstr "Forventet leveringsdato:"
88
 
89
- #: includes/class-wc-advanced-shipment-tracking-front.php:359
90
- #: includes/class-wc-advanced-shipment-tracking-front.php:636
91
- #: includes/class-wc-advanced-shipment-tracking-front.php:812
 
 
 
 
 
 
 
 
 
92
  msgid "Tracking Details"
93
  msgstr "Sporingsdetaljer"
94
 
95
- #: includes/class-wc-advanced-shipment-tracking-front.php:378
96
- #: includes/class-wc-advanced-shipment-tracking-front.php:655
97
- #: includes/class-wc-advanced-shipment-tracking-front.php:833
 
98
  msgid "view more"
99
  msgstr "Se mere"
100
 
101
- #: includes/class-wc-advanced-shipment-tracking-front.php:379
102
- #: includes/class-wc-advanced-shipment-tracking-front.php:656
103
- #: includes/class-wc-advanced-shipment-tracking-front.php:834
 
104
  msgid "view less"
105
  msgstr "se mindre"
106
 
107
- #: includes/class-wc-advanced-shipment-tracking-front.php:387
108
- #: includes/class-wc-advanced-shipment-tracking-front.php:664
109
- msgid "Tracking details not found in TrackShip"
110
- msgstr ""
111
-
112
- #: includes/class-wc-advanced-shipment-tracking-front.php:747
113
- msgid "Estimated Delivery Date"
114
- msgstr ""
115
-
116
  #: includes/class-wc-advanced-shipment-tracking.php:95
117
- #: includes/class-wc-advanced-shipment-tracking.php:260
118
  #: includes/customizer/class-wcast-customizer.php:31
119
  msgid "Shipment Tracking"
120
  msgstr "Forsendelsessporing"
121
 
122
  #: includes/class-wc-advanced-shipment-tracking.php:184
123
- #: includes/class-wc-advanced-shipment-tracking.php:374
 
124
  msgid "Mark as Shipped?"
125
- msgstr ""
126
-
127
- #: includes/class-wc-advanced-shipment-tracking.php:185
128
- msgid "Shipped"
129
- msgstr ""
130
 
131
  #: includes/class-wc-advanced-shipment-tracking.php:187
132
- #: includes/class-wc-advanced-shipment-tracking.php:377
 
133
  msgid "Mark as Completed?"
134
- msgstr ""
135
 
136
  #: includes/class-wc-advanced-shipment-tracking.php:188
 
137
  msgid "Completed"
138
- msgstr ""
139
 
140
  #: includes/class-wc-advanced-shipment-tracking.php:195
 
141
  msgid "Add Tracking Number"
142
- msgstr ""
143
 
144
- #: includes/class-wc-advanced-shipment-tracking.php:200
145
- #: includes/class-wc-advanced-shipment-tracking.php:395
 
 
 
146
  msgid "Provider:"
147
  msgstr "udbyder:"
148
 
149
- #: includes/class-wc-advanced-shipment-tracking.php:220
150
- #: includes/class-wc-advanced-shipment-tracking.php:433
 
151
  msgid "Tracking number:"
152
  msgstr "Tracking nummer:"
153
 
154
- #: includes/class-wc-advanced-shipment-tracking.php:224
155
- #: includes/class-wc-advanced-shipment-tracking.php:441
 
156
  msgid "Date shipped:"
157
  msgstr "Dato afsendt:"
158
 
159
- #: includes/class-wc-advanced-shipment-tracking.php:225
160
- #: includes/class-wc-advanced-shipment-tracking.php:442
161
- #: includes/class-wc-advanced-shipment-tracking.php:445
162
- msgid "Y-m-d"
163
- msgstr ""
164
-
165
- #: includes/class-wc-advanced-shipment-tracking.php:231
166
- #: includes/class-wc-advanced-shipment-tracking.php:451
167
- msgid "Mark as"
168
- msgstr ""
169
 
170
- #: includes/class-wc-advanced-shipment-tracking.php:234
171
- #: includes/class-wc-advanced-shipment-tracking.php:455
 
172
  msgid "Partial Shipped"
173
- msgstr ""
174
 
175
- #: includes/class-wc-advanced-shipment-tracking.php:276
176
- #: includes/class-wc-advanced-shipment-tracking.php:469
177
- msgid "Click here to track your shipment"
178
- msgstr "Klik her for at spore din forsendelse"
179
 
180
  #. 1: shipping date
181
- #: includes/class-wc-advanced-shipment-tracking.php:284
182
  #, php-format
183
  msgid "Shipped on %s"
184
  msgstr "Sendes på% s"
185
 
186
- #: includes/class-wc-advanced-shipment-tracking.php:391
187
  msgid "Add Tracking Info"
188
  msgstr "Tilføj sporingsinfo"
189
 
190
- #: includes/class-wc-advanced-shipment-tracking.php:396
191
  msgid "Select Provider"
192
  msgstr "Vælg Udbyder"
193
 
194
- #: includes/class-wc-advanced-shipment-tracking.php:468
195
  msgid "Save Tracking"
196
  msgstr "Gem sporing"
197
 
198
- #: includes/class-wc-advanced-shipment-tracking.php:469
199
  msgid "Preview:"
200
  msgstr "Eksempel:"
201
 
202
- #: includes/class-wc-advanced-shipment-tracking.php:675
203
  #, php-format
204
  msgid ""
205
  "Tracking info was deleted for tracking provider %s with tracking number %s"
206
- msgstr ""
207
 
208
- #: includes/class-wc-advanced-shipment-tracking.php:1042
209
  #, php-format
210
  msgid "Order was shipped with %s and tracking number is: %s"
211
- msgstr ""
212
 
213
  #: includes/class-wc-advanced-shipment-welcome.php:38
214
  #: includes/class-wc-advanced-shipment-welcome.php:39
215
  msgid "Welcome to Advanced Shipment Tracking"
216
- msgstr ""
217
 
218
  #: includes/class-wc-advanced-shipment-welcome.php:90
219
  #: includes/class-wc-advanced-shipment-welcome.php:129
220
  #: includes/class-wc-advanced-shipment-welcome.php:147
221
  msgid "Save and Continue"
222
- msgstr ""
223
 
224
  #: includes/class-wc-advanced-shipment-welcome.php:177
225
- #: includes/views/admin_options_trackship_integration.php:26
226
  msgid "Connection status"
227
- msgstr ""
228
 
229
  #: includes/class-wc-advanced-shipment-welcome.php:184
230
- #: includes/views/admin_options_trackship_integration.php:33
231
  msgid "TrackShip Connection Status"
232
  msgstr "TrackShip-forbindelsesstatus"
233
 
234
- #: includes/class-wc-advanced-shipment-welcome.php:188
235
- #: includes/views/admin_options_trackship_integration.php:37
236
- msgid "Connected"
237
- msgstr ""
238
- "forbundet\n"
239
-
240
  #: includes/class-wc-advanced-shipment-welcome.php:194
241
- #: includes/views/admin_options_trackship_integration.php:43
242
  msgid "Trackers Balance"
243
- msgstr ""
244
 
245
  #: includes/class-wc-advanced-shipment-welcome.php:202
246
- #: includes/views/admin_options_trackship_integration.php:51
247
  msgid "Current Plan"
248
- msgstr ""
249
 
250
  #: includes/class-wc-advanced-shipment-welcome.php:217
251
- #: includes/views/admin_options_trackship_integration.php:66
 
252
  msgid ""
253
  "You are now connected with TrackShip! TrackShip makes it effortless to "
254
  "automate your post shipping operations and get tracking and delivery status "
255
  "updates directly in the WooCommerce admin."
256
  msgstr ""
257
-
258
- #: includes/class-wc-advanced-shipment-welcome.php:222
259
- #: includes/views/admin_options_bulk_upload.php:58
260
- #: includes/views/admin_options_trackship_integration.php:71
261
- #: includes/views/zorem_admin_ts_sidebar.php:12
262
- msgid "Documentation"
263
- msgstr ""
264
 
265
  #: includes/class-wc-advanced-shipment-welcome.php:223
266
- #: includes/views/admin_options_trackship_integration.php:72
267
  msgid "TrackShip Dashboard"
268
- msgstr ""
269
 
270
  #: includes/class-wc-advanced-shipment-welcome.php:253
271
  msgid "Save"
272
- msgstr ""
273
 
274
- #: includes/class-wc-advanced-shipment-welcome.php:310
275
- msgid ""
276
- "Get Shipment Status is limited to 100 orders at a time, please select up to "
277
- "100 orders."
278
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
 
280
- #: includes/class-wc-advanced-shipment-welcome.php:343
281
- msgid "Data saved successfully."
282
- msgstr "Data gemmes med succes."
283
 
284
- #: includes/class-wc-advanced-shipment-welcome.php:344
285
- msgid "Really delete this entry? This will not be undo."
286
- msgstr "Vil du virkelig slette denne post? Dette vil ikke blive fortrydt."
287
-
288
- #: includes/class-wc-advanced-shipment-welcome.php:345
289
- msgid "You can upload only csv file."
290
- msgstr "Du kan kun uploade csv-filen."
291
 
292
- #: includes/class-wc-advanced-shipment-welcome.php:346
293
- msgid "This browser does not support HTML5."
294
- msgstr "Denne browser understøtter ikke HTML5."
295
 
296
- #: includes/class-wc-advanced-shipment-welcome.php:347
297
- msgid "Please upload a valid CSV file."
298
- msgstr "Upload venligst en gyldig CSV-fil."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
 
300
  #: includes/customizer/class-wcast-customizer.php:40
301
  msgid "Shipment Status Emails"
@@ -314,53 +714,16 @@ msgstr ""
314
 
315
  #: includes/customizer/class-wcast-customizer.php:68
316
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:143
317
- msgid "Partial Shipped status email"
318
- msgstr ""
319
 
320
  #: includes/customizer/class-wcast-customizer.php:76
321
- msgid "Pre Transit"
322
- msgstr ""
323
- "Pre Transit\n"
324
-
325
- #: includes/customizer/class-wcast-customizer.php:84
326
- #: includes/customizer/class-wc-intransit-email-customizer.php:127
327
- #: includes/views/admin_options_trackship_integration.php:161
328
- msgid "In Transit"
329
- msgstr "Undervejs"
330
-
331
- #: includes/customizer/class-wcast-customizer.php:92
332
- #: includes/customizer/class-wc-returntosender-email-customizer.php:124
333
- #: includes/views/admin_options_trackship_integration.php:175
334
- msgid "Return To Sender"
335
- msgstr ""
336
- "Retur til Afsender\n"
337
-
338
- #: includes/customizer/class-wcast-customizer.php:99
339
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
340
- #: includes/views/admin_options_trackship_integration.php:189
341
- msgid "Available For Pickup"
342
  msgstr ""
343
- "Klar til afhentning\n"
344
-
345
- #: includes/customizer/class-wcast-customizer.php:106
346
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
347
- #: includes/views/admin_options_trackship_integration.php:202
348
- msgid "Out For Delivery"
349
- msgstr "Ud for levering"
350
-
351
- #: includes/customizer/class-wcast-customizer.php:114
352
- #: includes/customizer/class-wc-delivered-email-customizer.php:125
353
- #: includes/views/admin_options_trackship_integration.php:216
354
- msgid "Delivered"
355
- msgstr "leveres"
356
-
357
- #: includes/customizer/class-wcast-customizer.php:122
358
- #: includes/customizer/class-wc-failure-email-customizer.php:124
359
- #: includes/views/admin_options_trackship_integration.php:231
360
- msgid "Failed Attempt"
361
- msgstr "Mislykket forsøg"
362
 
363
- #: includes/customizer/class-wcast-customizer.php:390
364
  msgid "Select order to preview"
365
  msgstr ""
366
  "Vælg rækkefølge for at forhåndsvise\n"
@@ -391,6 +754,7 @@ msgstr ""
391
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
392
  #: includes/customizer/class-wc-returntosender-email-customizer.php:157
393
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:144
 
394
  msgid "This section lets you customize the Email Content."
395
  msgstr ""
396
  "Dette afsnit giver dig mulighed for at tilpasse e-mailindholdet.\n"
@@ -407,8 +771,9 @@ msgstr ""
407
  #: includes/customizer/class-wc-intransit-email-customizer.php:191
408
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
409
  #: includes/customizer/class-wc-returntosender-email-customizer.php:187
410
- #: includes/customizer/class-wc-tracking-info-customizer.php:178
411
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:177
 
412
  msgid "Preview order"
413
  msgstr ""
414
  "Forhåndsvis rækkefølge\n"
@@ -423,42 +788,41 @@ msgstr ""
423
  msgid "E.g. {customer.email}, admin@example.org"
424
  msgstr "F.eks {customer.email}, admin@example.org"
425
 
 
426
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
427
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
 
428
  #: includes/customizer/class-wc-delivered-email-customizer.php:232
429
  #: includes/customizer/class-wc-delivered-email-customizer.php:254
 
 
 
 
 
430
  #: includes/customizer/class-wc-failure-email-customizer.php:231
431
  #: includes/customizer/class-wc-failure-email-customizer.php:253
 
432
  #: includes/customizer/class-wc-intransit-email-customizer.php:235
433
  #: includes/customizer/class-wc-intransit-email-customizer.php:257
 
434
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
435
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
 
436
  #: includes/customizer/class-wc-returntosender-email-customizer.php:231
437
  #: includes/customizer/class-wc-returntosender-email-customizer.php:253
438
- msgid "Available placeholders: {site_title}, {order_number}"
439
- msgstr "Tilgængelige pladsholdere: {site_title}, {order_number}"
440
-
441
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:237
442
- #: includes/customizer/class-wc-delivered-email-customizer.php:238
443
- #: includes/customizer/class-wc-email-customizer.php:249
444
- #: includes/customizer/class-wc-failure-email-customizer.php:237
445
- #: includes/customizer/class-wc-intransit-email-customizer.php:241
446
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:239
447
- #: includes/customizer/class-wc-returntosender-email-customizer.php:237
448
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:206
449
- msgid "Please enter email subject here"
450
- msgstr "Indtast venligst e-mail-emne her"
451
-
452
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:259
453
- #: includes/customizer/class-wc-delivered-email-customizer.php:260
454
- #: includes/customizer/class-wc-email-customizer.php:272
455
- #: includes/customizer/class-wc-failure-email-customizer.php:259
456
- #: includes/customizer/class-wc-intransit-email-customizer.php:263
457
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:261
458
- #: includes/customizer/class-wc-returntosender-email-customizer.php:259
459
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:229
460
- msgid "Please enter email heading here"
461
- msgstr "Indtast venligst e-mail-overskrift her"
462
 
463
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
464
  #: includes/customizer/class-wc-delivered-email-customizer.php:275
@@ -502,22 +866,22 @@ msgstr ""
502
 
503
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
504
  #: includes/customizer/class-wc-delivered-email-customizer.php:340
505
- #: includes/customizer/class-wc-email-customizer.php:392
506
  #: includes/customizer/class-wc-failure-email-customizer.php:339
507
- #: includes/customizer/class-wc-intransit-email-customizer.php:363
508
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
509
  #: includes/customizer/class-wc-returntosender-email-customizer.php:339
510
  msgid "Google Analytics link tracking"
511
- msgstr ""
512
 
513
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
514
  #: includes/customizer/class-wc-delivered-email-customizer.php:341
515
  #: includes/customizer/class-wc-failure-email-customizer.php:340
516
- #: includes/customizer/class-wc-intransit-email-customizer.php:364
517
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
518
  #: includes/customizer/class-wc-returntosender-email-customizer.php:340
519
  msgid "This will be appended to URL in the email content"
520
- msgstr ""
521
 
522
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
523
  #: includes/customizer/class-wc-delivered-email-customizer.php:362
@@ -527,36 +891,31 @@ msgstr ""
527
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
528
  #: includes/customizer/class-wc-returntosender-email-customizer.php:361
529
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:245
 
530
  msgid "Email content"
531
  msgstr "Email indhold"
532
 
533
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:380
534
- #: includes/customizer/class-wc-delivered-email-customizer.php:382
535
- #: includes/customizer/class-wc-email-customizer.php:413
536
- #: includes/customizer/class-wc-failure-email-customizer.php:381
537
- #: includes/customizer/class-wc-intransit-email-customizer.php:385
538
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:383
539
- #: includes/customizer/class-wc-returntosender-email-customizer.php:381
540
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:264
541
- msgid "Available placeholders"
542
- msgstr ""
543
- "Tilgængelige pladsholdere\n"
544
-
545
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:427
546
- #: includes/customizer/class-wc-delivered-email-customizer.php:429
547
- #: includes/customizer/class-wc-email-customizer.php:446
548
- #: includes/customizer/class-wc-failure-email-customizer.php:428
549
- #: includes/customizer/class-wc-intransit-email-customizer.php:431
550
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:429
551
- #: includes/customizer/class-wc-returntosender-email-customizer.php:427
552
- #: includes/customizer/class-wc-tracking-info-customizer.php:791
553
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:297
554
  msgid "Please select order to preview."
555
- msgstr ""
556
 
557
  #: includes/customizer/class-wc-delivered-email-customizer.php:124
558
  msgid "Your order #{order_number} has been delivered"
559
- msgstr ""
560
 
561
  #: includes/customizer/class-wc-delivered-email-customizer.php:126
562
  #: includes/customizer/class-wc-email-customizer.php:132
@@ -589,50 +948,39 @@ msgstr ""
589
  "Aktivér leveret ordre status email\n"
590
 
591
  #: includes/customizer/class-wc-email-customizer.php:201
592
- #: includes/customizer/class-wc-tracking-info-customizer.php:182
593
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:181
 
594
  msgid "Please select a order..."
595
  msgstr "Vælg venligst en ordre ..."
596
 
597
- #: includes/customizer/class-wc-email-customizer.php:243
598
- #: includes/customizer/class-wc-email-customizer.php:266
599
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:200
600
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:223
601
- msgid "Available variables: {site_title}, {order_number}"
602
- msgstr ""
603
-
604
- #: includes/customizer/class-wc-email-customizer.php:289
605
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:246
606
- msgid ""
607
- "available variables: {site_title}, {customer_email}, {customer_first_name}, "
608
- "{customer_last_name}, {customer_username}, {order_number}"
609
- msgstr ""
610
-
611
- #: includes/customizer/class-wc-email-customizer.php:308
612
  msgid "Display tracking details"
613
- msgstr ""
614
 
615
- #: includes/customizer/class-wc-email-customizer.php:324
616
  msgid "Display order details"
617
- msgstr ""
618
 
619
- #: includes/customizer/class-wc-email-customizer.php:341
620
  msgid "Display Shipping Address"
621
- msgstr ""
622
 
623
- #: includes/customizer/class-wc-email-customizer.php:358
624
  msgid "Display Billing Address"
625
- msgstr ""
626
 
627
- #: includes/customizer/class-wc-email-customizer.php:375
628
  msgid "Enable Google Analytics tracking"
629
- msgstr ""
630
 
631
- #: includes/customizer/class-wc-email-customizer.php:393
632
  msgid ""
633
  "This will be appended to URL in the email content – e.g. "
634
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
635
  msgstr ""
 
 
636
 
637
  #: includes/customizer/class-wc-failure-email-customizer.php:123
638
  msgid "Your order #{order_number} is Failed Attempt"
@@ -720,203 +1068,288 @@ msgstr ""
720
  "Aktivér Send e-mail til afsendelse af afsendelsesstatus\n"
721
 
722
  #: includes/customizer/class-wc-tracking-info-customizer.php:144
723
- #: includes/customizer/class-wc-tracking-info-customizer.php:364
724
- #: templates/emails/tracking-info.php:132
725
- #: templates/myaccount/tracking-info.php:91
726
  msgid "Provider"
727
  msgstr "Fragtfirma"
728
 
729
  #: includes/customizer/class-wc-tracking-info-customizer.php:145
730
- #: includes/customizer/class-wc-tracking-info-customizer.php:386
731
- #: templates/emails/tracking-info.php:156
732
- #: templates/myaccount/tracking-info.php:113
733
  msgid "Tracking Number"
734
  msgstr "Tracking nummer"
735
 
736
  #: includes/customizer/class-wc-tracking-info-customizer.php:146
737
- #: includes/customizer/class-wc-tracking-info-customizer.php:407
738
  msgid "Shipped Date"
739
  msgstr ""
740
  "Afsendt dato\n"
741
 
742
- #: includes/customizer/class-wc-tracking-info-customizer.php:179
743
- msgid ""
744
- "select from last 20 orders one order that you added tracking info in order "
745
- "to preview and design the tracking info table."
746
  msgstr ""
747
- "vælg fra de sidste 20 ordrer en ordre, som du har tilføjet "
748
- "sporingsoplysninger for at forhåndsvise og designe "
749
- "sporingsinformatortabellen."
750
-
751
- #: includes/customizer/class-wc-tracking-info-customizer.php:198
752
- #: includes/views/admin_options_settings.php:15
753
- #: includes/views/admin_options_trackship_integration.php:82
754
- msgid "General Settings"
755
- msgstr "Generelle indstillinger"
756
 
757
- #: includes/customizer/class-wc-tracking-info-customizer.php:213
758
  msgid "Tracking Display Position"
759
  msgstr "Sporing af skærmposition"
760
 
761
- #: includes/customizer/class-wc-tracking-info-customizer.php:217
762
  msgid "Before Order Details"
763
  msgstr "Før ordredetaljer"
764
 
765
- #: includes/customizer/class-wc-tracking-info-customizer.php:218
766
  msgid "After Order Details"
767
  msgstr "Efter ordredetaljer"
768
 
769
- #: includes/customizer/class-wc-tracking-info-customizer.php:233
770
- msgid "Main Header text"
771
- msgstr "Hovedteksttekst"
 
772
 
773
- #: includes/customizer/class-wc-tracking-info-customizer.php:240
774
  msgid "Tracking Information"
775
  msgstr "Sporing Oplysninger"
776
 
777
- #: includes/customizer/class-wc-tracking-info-customizer.php:255
778
  msgid "Additional text after header"
779
  msgstr "Yderligere tekst efter overskrift"
780
 
781
- #: includes/customizer/class-wc-tracking-info-customizer.php:276
782
- msgid "Table Content"
 
 
 
 
 
 
783
  msgstr ""
 
 
 
 
 
 
784
 
785
  #: includes/customizer/class-wc-tracking-info-customizer.php:291
786
- msgid "Display Shipment Provider image"
787
- msgstr "Vis leveringsbillede af forsendelse"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
788
 
789
- #: includes/customizer/class-wc-tracking-info-customizer.php:308
790
- msgid "Hide date"
791
- msgstr "Skjul dato"
 
792
 
793
- #: includes/customizer/class-wc-tracking-info-customizer.php:325
794
- msgid "Table Header"
795
  msgstr ""
 
796
 
797
- #: includes/customizer/class-wc-tracking-info-customizer.php:340
798
- msgid "Hide Header"
799
  msgstr ""
 
800
 
801
- #: includes/customizer/class-wc-tracking-info-customizer.php:357
802
- msgid "Provider Header Text"
803
- msgstr "Texto del encabezado del proveedor"
 
804
 
805
- #: includes/customizer/class-wc-tracking-info-customizer.php:379
806
- msgid "Tracking Number Header Text"
807
- msgstr "Número de seguimiento del encabezado de texto"
808
 
809
- #: includes/customizer/class-wc-tracking-info-customizer.php:400
810
- msgid "Shipped Date Header Text"
811
- msgstr "Texto de encabezado de fecha de envío"
 
812
 
813
- #: includes/customizer/class-wc-tracking-info-customizer.php:421
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
814
  msgid "Track Label"
815
  msgstr "Sporetiket"
816
 
817
- #: includes/customizer/class-wc-tracking-info-customizer.php:437
818
- msgid "Track Header Text"
819
- msgstr "Texto del encabezado de pista"
 
820
 
821
- #: includes/customizer/class-wc-tracking-info-customizer.php:459
822
- msgid "Table header font size"
823
- msgstr "Tabeloverskriftstørrelse"
 
824
 
825
- #: includes/customizer/class-wc-tracking-info-customizer.php:476
826
- msgid "Table header font color"
827
- msgstr "Tabeloverskriftstypefarve"
 
828
 
829
- #: includes/customizer/class-wc-tracking-info-customizer.php:492
830
- msgid "Table Design"
831
- msgstr "Borddesign"
832
 
833
- #: includes/customizer/class-wc-tracking-info-customizer.php:507
834
  msgid "Padding"
835
  msgstr "polstring"
836
 
837
- #: includes/customizer/class-wc-tracking-info-customizer.php:527
 
838
  msgid "Background color"
839
  msgstr "Baggrundsfarve"
840
 
841
- #: includes/customizer/class-wc-tracking-info-customizer.php:555
 
842
  msgid "Border color"
843
  msgstr ""
844
  "Border farve\n"
845
 
846
- #: includes/customizer/class-wc-tracking-info-customizer.php:571
847
  msgid "Border size"
848
  msgstr ""
849
  "Border størrelse\n"
850
 
851
- #: includes/customizer/class-wc-tracking-info-customizer.php:595
852
- msgid "Table text align"
853
- msgstr "Tabeltekst justeres"
 
854
 
855
- #: includes/customizer/class-wc-tracking-info-customizer.php:618
856
- msgid "Table content font size"
857
- msgstr "Tabelindhold skriftstørrelse"
 
858
 
859
- #: includes/customizer/class-wc-tracking-info-customizer.php:635
860
- msgid "Table content font color"
861
- msgstr "Tabelindhold fontfarve"
 
862
 
863
- #: includes/customizer/class-wc-tracking-info-customizer.php:651
864
  msgid "Content line height"
865
  msgstr ""
866
  "Indholdslinjehøjde\n"
867
 
868
- #: includes/customizer/class-wc-tracking-info-customizer.php:672
869
  msgid "Content font weight"
870
  msgstr ""
871
  "Indhold skrifttype vægt\n"
872
 
873
- #: includes/customizer/class-wc-tracking-info-customizer.php:694
874
- msgid "Track Button Design"
875
- msgstr ""
876
 
877
- #: includes/customizer/class-wc-tracking-info-customizer.php:708
878
- msgid "Track Link Font Color"
879
- msgstr "Spor link font farve"
 
880
 
881
- #: includes/customizer/class-wc-tracking-info-customizer.php:724
882
- msgid "Track Link Background Color"
883
- msgstr "Track Link Baggrundsfarve"
884
 
885
- #: includes/customizer/class-wc-tracking-info-customizer.php:739
886
- msgid "Track link Border"
887
- msgstr "Spor link grænse"
 
 
 
 
 
888
 
889
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:116
890
- msgid "Your {site_title} order is now partial shipped"
891
- msgstr ""
892
 
893
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:118
894
  msgid ""
895
  "Hi there. we thought you'd like to know that your recent order from "
896
- "{site_title} has been Partial Shipped."
897
  msgstr ""
 
 
898
 
899
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:159
900
- msgid "Enable Partial Shipped order status email"
 
 
 
 
 
 
 
 
 
 
 
901
  msgstr ""
 
 
 
 
 
 
 
902
 
903
  #: includes/emails/class-shipment-delivered-email.php:32
904
  msgid "Delivered order"
905
- msgstr ""
906
 
907
  #: includes/emails/class-shipment-delivered-email.php:33
908
  msgid ""
909
  "Order delivered emails are sent to customers when their orders are marked "
910
  "delivered and usually indicate that their orders have been shipped."
911
  msgstr ""
 
 
912
 
913
- #: includes/emails/class-shipment-delivered-email.php:279
914
  msgid "Click Here"
915
- msgstr ""
916
 
917
- #: includes/emails/class-shipment-delivered-email.php:280
918
  msgid "Edit in customizer"
919
- msgstr ""
920
 
921
  #: includes/views/admin_options_bulk_upload.php:10
922
  msgid "Upload CSV"
@@ -931,8 +1364,8 @@ msgstr ""
931
  "sporingsoplysningerne blive tilføjet)"
932
 
933
  #: includes/views/admin_options_bulk_upload.php:29
934
- #: includes/views/admin_options_shipping_provider.php:119
935
- #: includes/views/admin_options_shipping_provider.php:153
936
  msgid "Upload"
937
  msgstr "Upload"
938
 
@@ -944,154 +1377,263 @@ msgstr "Indstillinger gemt."
944
  msgid "Upload Progress - "
945
  msgstr "Upload Progress -"
946
 
947
- #: includes/views/admin_options_bulk_upload.php:45
948
  msgid "Sample CSV"
949
- msgstr ""
950
 
951
- #: includes/views/admin_options_bulk_upload.php:50
952
  msgid "You can download an example of the csv file:"
953
  msgstr "Puedes descargar un ejemplo del archivo csv:"
954
 
955
- #: includes/views/admin_options_bulk_upload.php:53
956
  msgid "Download sample csv file"
957
  msgstr "Download prøve csv fil"
958
 
959
- #: includes/views/admin_options_bulk_upload.php:58
960
  msgid ""
961
  "For detailed instructions on how to upload tracking info in bulk, see our"
962
  msgstr ""
963
  "Para obtener instrucciones detalladas sobre cómo cargar información de "
964
  "seguimiento de forma masiva, consulte nuestra"
965
 
 
 
 
 
 
966
  #: includes/views/admin_options_settings.php:26
967
- #: includes/views/admin_options_settings.php:74
968
- #: includes/views/admin_options_settings.php:100
969
- #: includes/views/admin_options_trackship_integration.php:93
970
- #: includes/views/admin_options_trackship_integration.php:124
971
  msgid "Save Changes"
972
- msgstr ""
973
 
974
  #: includes/views/admin_options_settings.php:40
975
  msgid "Tracking Info Display"
976
- msgstr ""
977
 
978
  #: includes/views/admin_options_settings.php:49
979
  msgid "You can customize the tracking info display on emails and my account"
980
- msgstr ""
981
 
982
  #: includes/views/admin_options_settings.php:52
983
  msgid "Launch Customizer"
984
- msgstr ""
985
 
986
  #: includes/views/admin_options_settings.php:62
987
- msgid "Delivered Order Status"
988
- msgstr "Leveret ordrestatus"
989
-
990
- #: includes/views/admin_options_settings.php:88
991
- msgid "Partial Shipped Order Status"
992
  msgstr ""
 
993
 
994
  #: includes/views/admin_options_settings.php:94
995
- #, php-format
996
- msgid ""
997
- "<strong>PLEASE NOTE</strong> - If you use the custom order status \"Partial "
998
- "Shipped\", when you deactivate the plugin, you must register this order "
999
- "status in function.php in order to see these orders in the orders admin. You "
1000
- "can find the <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
1001
- "php here or you can manually change all your \"partial-shipped\" order to "
1002
- "\"completed\" before deactivating the plugin."
1003
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1004
 
1005
  #: includes/views/admin_options_shipping_provider.php:12
1006
- #: includes/views/admin_options_shipping_provider.php:23
 
 
1007
  msgid "Active"
1008
- msgstr ""
1009
 
1010
  #: includes/views/admin_options_shipping_provider.php:13
1011
- #: includes/views/admin_options_shipping_provider.php:23
1012
  msgid "Inactive"
1013
- msgstr ""
1014
 
1015
  #: includes/views/admin_options_shipping_provider.php:14
1016
  msgid "Custom"
1017
- msgstr ""
1018
 
1019
- #: includes/views/admin_options_shipping_provider.php:21
1020
- msgid "Add Custom Provider"
 
 
 
 
1021
  msgstr ""
 
1022
 
1023
- #: includes/views/admin_options_shipping_provider.php:22
1024
- #: includes/views/admin_options_shipping_provider.php:170
1025
  #: includes/views/admin_options_shipping_provider.php:177
 
1026
  msgid "Sync Shipping Providers"
1027
- msgstr ""
1028
-
1029
- #: includes/views/admin_options_shipping_provider.php:23
1030
- msgid "Reset"
1031
- msgstr ""
1032
 
1033
- #: includes/views/admin_options_shipping_provider.php:27
1034
- msgid "Search by provider / country"
1035
- msgstr ""
1036
-
1037
- #: includes/views/admin_options_shipping_provider.php:95
1038
- #, php-format
1039
- msgid "You don't have any %s shipping providers."
1040
- msgstr "Du har ikke% s forsendelsesudbydere."
1041
-
1042
- #: includes/views/admin_options_shipping_provider.php:101
1043
  msgid "Add Custom Shipping Provider"
1044
  msgstr "Tilføj Tilpasset forsendelsesleverandør"
1045
 
1046
- #: includes/views/admin_options_shipping_provider.php:108
1047
- #: includes/views/admin_options_shipping_provider.php:142
1048
  msgid "Shipping Country"
1049
- msgstr ""
1050
 
1051
- #: includes/views/admin_options_shipping_provider.php:109
1052
- #: includes/views/admin_options_shipping_provider.php:143
1053
  msgid "Global"
1054
- msgstr ""
 
 
 
 
 
1055
 
1056
- #: includes/views/admin_options_shipping_provider.php:135
1057
  msgid "Edit Custom Shipping Provider"
1058
  msgstr "Rediger leverandør af tilpasset forsendelse"
1059
 
1060
- #: includes/views/admin_options_shipping_provider.php:171
1061
  msgid ""
1062
  "Syncing the shipping providers list add or updates the pre-set shipping "
1063
  "providers and will not effect custom shipping providers."
1064
  msgstr ""
 
 
 
1065
 
1066
- #: includes/views/admin_options_shipping_provider.php:173
1067
  msgid "Providers Added"
1068
  msgstr "Udbydere tilføjet"
1069
 
1070
- #: includes/views/admin_options_shipping_provider.php:174
1071
  msgid "Providers Updated"
1072
  msgstr "Udbydere opdateret"
1073
 
1074
- #: includes/views/admin_options_shipping_provider.php:175
1075
  msgid "Providers Deleted"
1076
  msgstr "Udbydere er slettet"
1077
 
1078
- #: includes/views/admin_options_trackship_integration.php:107
 
1079
  msgid "Tracking Page"
1080
  msgstr "Tracking Page"
1081
 
1082
- #: includes/views/admin_options_trackship_integration.php:117
1083
- msgid "Click to preview the tracking page"
1084
- msgstr "Klik for at forhåndsvise sporingssiden"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1085
 
1086
- #: includes/views/admin_options_trackship_integration.php:118
1087
- msgid "PLEASE NOTE - make sure to save your settings before preview."
1088
- msgstr "BEMÆRK - sørg for at gemme dine indstillinger før forhåndsvisning."
1089
 
1090
- #: includes/views/admin_options_trackship_integration.php:137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1091
  msgid "Shipment Status Notifications "
1092
  msgstr "Notifikationer om forsendelsesstatus"
1093
 
1094
- #: includes/views/admin_options_trackship_integration.php:163
1095
  msgid ""
1096
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1097
  "the way."
@@ -1099,23 +1641,23 @@ msgstr ""
1099
  "Luftfartsselskab har accepteret eller hentet forsendelse fra afsender. "
1100
  "Forsendelsen er på vej."
1101
 
1102
- #: includes/views/admin_options_trackship_integration.php:177
1103
  msgid "Shipment is returned to sender"
1104
  msgstr "Forsendelse returneres til afsenderen"
1105
 
1106
- #: includes/views/admin_options_trackship_integration.php:191
1107
  msgid "The shipment is ready to pickup."
1108
  msgstr "Forsendelsen er klar til afhentning."
1109
 
1110
- #: includes/views/admin_options_trackship_integration.php:204
1111
  msgid "Carrier is about to deliver the shipment"
1112
  msgstr "Carrier er ved at levere forsendelsen"
1113
 
1114
- #: includes/views/admin_options_trackship_integration.php:218
1115
  msgid "The shipment was delivered successfully"
1116
  msgstr "Forsendelsen blev leveret med succes"
1117
 
1118
- #: includes/views/admin_options_trackship_integration.php:219
1119
  msgid ""
1120
  "You already have delivered email enabled, to enable this email you'll need "
1121
  "to disable the order status delivered in settings."
@@ -1123,7 +1665,7 @@ msgstr ""
1123
  "Du har allerede leveret e-mail aktiveret, for at aktivere denne e-mail skal "
1124
  "du deaktivere ordrestatus leveret i indstillinger."
1125
 
1126
- #: includes/views/admin_options_trackship_integration.php:233
1127
  msgid ""
1128
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1129
  "will try to deliver the package again."
@@ -1131,15 +1673,11 @@ msgstr ""
1131
  "Luftfartsselskab forsøgte at levere, men mislykkedes, og efterlader normalt "
1132
  "en meddelelse og vil forsøge at levere pakken igen."
1133
 
1134
- #: includes/views/admin_options_tools.php:14
1135
- msgid "Get Shipment Status"
1136
- msgstr ""
1137
-
1138
- #: includes/views/admin_options_tools.php:23
1139
- msgid ""
1140
- "You can send all your orders from the last 30 days to get shipment status "
1141
- "from TrackShip:"
1142
- msgstr ""
1143
 
1144
  #. %s: Order ID.
1145
  #: templates/emails/wcast-email-order-details.php:47
@@ -1148,9 +1686,22 @@ msgid "Order number: %s"
1148
  msgstr ""
1149
  "Ordrenummer:% s\n"
1150
 
 
 
 
 
 
 
 
 
 
 
 
 
1151
  #. Name of the plugin
1152
  msgid "Advanced Shipment Tracking for WooCommerce"
1153
  msgstr ""
 
1154
 
1155
  #. Description of the plugin
1156
  msgid ""
@@ -1159,7 +1710,6 @@ msgid ""
1159
  "will appear in customers accounts (in the order panel) and in WooCommerce "
1160
  "order complete email."
1161
  msgstr ""
1162
-
1163
- #. Author of the plugin
1164
- msgid "zorem"
1165
- msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-01-09 12:07+0000\n"
6
+ "PO-Revision-Date: 2020-01-09 12:08+0000\n"
7
+ "Last-Translator: John <gaurav1092@zorem.com>\n"
8
  "Language-Team: Danish\n"
9
  "Language: da_DK\n"
10
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
+ "X-Loco-Version: 2.3.1; wp-5.3.2"
16
 
17
+ #: woocommerce-advanced-shipment-tracking.php:117
18
  #, php-format
19
  msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
23
  "Installer og aktiver venligst% sWooCommerce% s for WooCommerce Advanced "
24
  "Shipping Tracking!"
25
 
26
+ #: woocommerce-advanced-shipment-tracking.php:254
27
  #, php-format
28
  msgid "Your order was shipped with %s and your tracking code is: %s"
29
+ msgstr "Din ordre blev sendt med% s, og din sporingskode er:% s"
30
+
31
+ #: woocommerce-advanced-shipment-tracking.php:465
32
+ #: includes/views/admin_options_settings.php:190
33
+ #, php-format
34
+ msgid ""
35
+ "<strong>Note:</strong> - If you use the custom order status, when you "
36
+ "deactivate the plugin, you must register the order status, otherwise these "
37
+ "orders will not display on your orders admin. You can find more information "
38
+ "and the code <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
39
+ "php here."
40
+ msgstr ""
41
+ "Bemærk: - Hvis du bruger den tilpassede ordrestatus, skal du registrere "
42
+ "ordrestatus, når du deaktiverer plugin, ellers vises disse ordrer ikke på "
43
+ "din ordreradministrator. Du kan finde mere information og kodestykket, der "
44
+ "skal bruges i features.php her.\n"
45
+
46
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:309
47
+ msgid "Shipment status"
48
+ msgstr "Forsendelsesstatus"
49
+
50
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:427
51
+ #: includes/class-wc-advanced-shipment-welcome.php:310
52
+ msgid ""
53
+ "Get Shipment Status is limited to 100 orders at a time, please select up to "
54
+ "100 orders."
55
+ msgstr ""
56
+ "Hent forsendelsesstatus er begrænset til 100 ordrer ad gangen. Vælg venligst "
57
+ "op til 100 ordrer."
58
+
59
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:462
60
+ #: includes/class-wc-advanced-shipment-welcome.php:343
61
+ msgid "Data saved successfully."
62
+ msgstr "Data gemmes med succes."
63
+
64
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:463
65
+ #: includes/class-wc-advanced-shipment-welcome.php:344
66
+ msgid "Really delete this entry? This will not be undo."
67
+ msgstr "Vil du virkelig slette denne post? Dette vil ikke blive fortrydt."
68
+
69
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:464
70
+ #: includes/class-wc-advanced-shipment-welcome.php:345
71
+ msgid "You can upload only csv file."
72
+ msgstr "Du kan kun uploade csv-filen."
73
+
74
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:465
75
+ #: includes/class-wc-advanced-shipment-welcome.php:346
76
+ msgid "This browser does not support HTML5."
77
+ msgstr "Denne browser understøtter ikke HTML5."
78
+
79
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:466
80
+ #: includes/class-wc-advanced-shipment-welcome.php:347
81
+ msgid "Please upload a valid CSV file."
82
+ msgstr "Upload venligst en gyldig CSV-fil."
83
+
84
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:535
85
+ msgid "Shipping Providers"
86
+ msgstr "Forsendelsesleverandører"
87
+
88
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:537
89
+ msgid "Bulk Upload"
90
+ msgstr "Bulk upload"
91
+
92
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:543
93
+ msgid "Add-ons"
94
+ msgstr "Add-ons"
95
+
96
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:546
97
+ #: includes/class-wc-advanced-shipment-welcome.php:222
98
+ #: includes/views/admin_options_bulk_upload.php:63
99
+ #: includes/views/admin_trackship_dashboard.php:51
100
+ msgid "Documentation"
101
+ msgstr "Dokumentation"
102
+
103
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:547
104
+ msgid "How to Video"
105
+ msgstr "Sådan video"
106
+
107
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:695
108
+ msgid "Custom Statuses"
109
+ msgstr "Tilpassede statuer"
110
+
111
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:742
112
+ #: includes/class-wc-advanced-shipment-welcome.php:188
113
+ #: includes/views/zorem_admin_sidebar.php:29
114
+ #: includes/views/admin_options_addons.php:46
115
+ #: includes/views/admin_trackship_dashboard.php:17
116
+ msgid "Connected"
117
  msgstr ""
118
+ "forbundet\n"
119
 
120
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:874
 
121
  #, php-format
122
+ msgid "%s %s orders with tracking info"
123
+ msgstr "% s% s ordrer med sporingsinfo"
124
+
125
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:875
126
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:884
127
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:893
128
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1838
129
+ #: includes/views/admin_options_tools.php:14
130
+ msgid "Get Shipment Status"
131
+ msgstr "Få forsendelsesstatus"
132
+
133
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:883
134
+ #, php-format
135
+ msgid "%s %s orders with “TrackShip balance is 0”"
136
+ msgstr "% s% s ordrer med “TrackShip-saldo er 0”"
137
+
138
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:892
139
+ #, php-format
140
+ msgid "%s %s orders with “Please do connection”"
141
+ msgstr "% s% s ordrer med \"Venligst gør forbindelse\""
142
+
143
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:930
144
+ msgid "Enable/Disable"
145
+ msgstr "Aktivere deaktivere"
146
+
147
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:936
148
+ msgid "Set order status Delivered when order is delivered"
149
+ msgstr "Indstil ordrestatus Leveres når ordren er leveret"
150
+
151
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:968
152
  msgid ""
153
+ "You must add the shortcode [wcast-track-order] to the selected page in order "
154
+ "for the tracking page to work."
 
 
 
 
155
  msgstr ""
156
+ "Du skal tilføje kortkoden [wcast-track-order] til den valgte side for at "
157
+ "sporingssiden skal fungere."
158
 
159
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:976
160
+ #: includes/views/admin_tracking_page_settings.php:24
161
+ msgid "Select Tracking Page"
162
+ msgstr "Vælg sporingsside"
163
+
164
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:984
165
+ msgid "Use the tracking page in the customer email/my account tracking link"
166
+ msgstr "Brug sporingssiden i kundens e-mail / min kontosporingslink"
167
+
168
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:990
169
+ #: includes/views/admin_tracking_page_settings.php:49
170
+ msgid "Tracking Page Layout"
171
+ msgstr ""
172
+ "Sporing af sidelayout\n"
173
+
174
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1001
175
+ msgid "Select primary color for tracking page"
176
+ msgstr "Vælg primærfarve til sporingsside"
177
+
178
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1007
179
+ msgid "Select content border color for tracking page"
180
+ msgstr "Vælg indholdsgrænsefarve til sporingsside"
181
+
182
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1013
183
+ #: includes/views/admin_tracking_page_settings.php:83
184
+ msgid "Hide Shipping Provider Image"
185
+ msgstr ""
186
+ "Skjul forsendelsesbillede\n"
187
+
188
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1019
189
+ msgid "Hide tracking events details"
190
+ msgstr "Skjul detaljer om sporing af begivenheder"
191
+
192
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1025
193
+ #: includes/views/admin_tracking_page_settings.php:93
194
+ msgid "Remove TrackShip branding"
195
+ msgstr "Fjern TrackShip-branding"
196
+
197
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1042
198
+ msgid "License Key"
199
+ msgstr "Licensnøgle"
200
+
201
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1044
202
+ msgid "a Valid license is required to receive updates and support"
203
+ msgstr "der kræves en gyldig licens for at modtage opdateringer og support"
204
+
205
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1193
206
+ msgid "\">click here</a> to activate it."
207
+ msgstr "\"> Klik her </a> for at aktivere det."
208
+
209
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1226
210
+ #: includes/class-wc-advanced-shipment-tracking.php:185
211
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:303
212
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:439
213
+ msgid "Shipped"
214
+ msgstr "afsendt"
215
+
216
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1227
217
+ msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
218
+ msgstr "Standard \"mark som <span class =\" shipped_label \"> sendt </span>\""
219
+
220
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1228
221
+ msgid ""
222
+ "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
223
+ "will be selected by default when adding tracking info to orders."
224
+ msgstr ""
225
+ "Dette betyder, at 'mærket som <span class =' ​​shipped_label '> sendt </span>"
226
+ "' vælges som standard, når du tilføjer sporingsinfo til ordrer."
227
+
228
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1231
229
+ msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
230
+ msgstr ""
231
+ "Standard \"mark som <span class =\" shipped_label \"> afsluttet </span>\""
232
+
233
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1232
234
+ msgid ""
235
+ "This means that the 'mark as <span class='shipped_label'>completed</span>' "
236
+ "will be selected by default when adding tracking info to orders."
237
+ msgstr ""
238
+ "Dette betyder, at 'mærket som <span class =' ​​send_label '> afsluttet "
239
+ "</span>' vælges som standard, når du tilføjer sporingsinfo til ordrer."
240
+
241
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1298
242
+ msgid "Rename the “Completed” Order status to “Shipped”"
243
+ msgstr "Omdøb ordre status \"Afsluttet\" til \"Sendt\""
244
+
245
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1311
246
+ msgid "On which order status email to include the shipment tracking info?"
247
+ msgstr ""
248
+ "På hvilken e-mail med ordrestatus for at inkludere forsendelsessporingsinfo?"
249
+
250
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1317
251
+ msgid "Show tracking info in Invoice"
252
+ msgstr "Vis sporingsinfo i faktura"
253
+
254
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1323
255
+ msgid "Show tracking info in Packing Slip"
256
+ msgstr "Vis sporingsinfo i pakkeseddel"
257
+
258
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1871
259
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2392
260
+ #: includes/customizer/class-wcast-customizer.php:92
261
+ #: includes/customizer/class-wc-intransit-email-customizer.php:127
262
+ #: includes/views/admin_status_notifications.php:25
263
+ msgid "In Transit"
264
+ msgstr "Undervejs"
265
+
266
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1874
267
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2391
268
+ #: includes/customizer/class-wcast-customizer.php:84
269
+ msgid "Pre Transit"
270
+ msgstr ""
271
+ "Pre Transit\n"
272
+
273
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1877
274
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2069
275
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2395
276
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:137
277
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:182
278
+ #: includes/customizer/class-wcast-customizer.php:122
279
+ #: includes/customizer/class-wc-delivered-email-customizer.php:125
280
+ #: includes/views/admin_options_settings.php:80
281
+ #: includes/views/admin_status_notifications.php:80
282
+ msgid "Delivered"
283
+ msgstr "leveres"
284
+
285
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1880
286
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2394
287
+ #: includes/customizer/class-wcast-customizer.php:114
288
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
289
+ #: includes/views/admin_status_notifications.php:66
290
+ msgid "Out For Delivery"
291
+ msgstr "Ud for levering"
292
+
293
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1883
294
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2393
295
+ #: includes/customizer/class-wcast-customizer.php:107
296
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
297
+ #: includes/views/admin_status_notifications.php:53
298
+ msgid "Available For Pickup"
299
+ msgstr ""
300
+ "Klar til afhentning\n"
301
+
302
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1886
303
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2399
304
+ #: includes/customizer/class-wcast-customizer.php:100
305
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:124
306
+ #: includes/views/admin_status_notifications.php:39
307
+ msgid "Return To Sender"
308
+ msgstr ""
309
+ "Retur til Afsender\n"
310
+
311
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1889
312
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2396
313
+ #: includes/customizer/class-wcast-customizer.php:130
314
+ #: includes/customizer/class-wc-failure-email-customizer.php:124
315
+ #: includes/views/admin_status_notifications.php:95
316
+ msgid "Failed Attempt"
317
+ msgstr "Mislykket forsøg"
318
+
319
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1892
320
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2390
321
+ msgid "Unknown"
322
+ msgstr "Ukendt"
323
+
324
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1895
325
+ msgid "Pending TrackShip"
326
+ msgstr "Venter på TrackShip"
327
+
328
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1898
329
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2400
330
+ msgid "Invalid Tracking Number"
331
+ msgstr "Ugyldigt sporingsnummer"
332
+
333
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1901
334
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2398
335
+ msgid "Carrier Unsupported"
336
+ msgstr "Transportør understøttes ikke"
337
+
338
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1904
339
+ msgid "Invalid User Key"
340
+ msgstr "Ugyldig brugernøgle"
341
+
342
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1907
343
+ msgid "Wrong Shipping Provider"
344
+ msgstr "Forkert leverandør af forsendelse"
345
+
346
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2023
347
+ msgid "Shipped Order"
348
+ msgstr "Afsendt ordre"
349
+
350
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2047
351
+ msgid "Mark order as delivered"
352
+ msgstr "Marker ordren som leveret"
353
+
354
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2054
355
+ msgid "Add Tracking"
356
+ msgstr "Tilføj sporing"
357
+
358
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2081
359
+ msgid "Change order status to"
360
+ msgstr "Skift ordrestatus til"
361
+
362
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2184
363
+ #: includes/views/admin_options_shipping_provider.php:96
364
+ #, php-format
365
+ msgid "You don't have any %s shipping providers."
366
+ msgstr "Du har ikke% s forsendelsesudbydere."
367
+
368
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2189
369
+ #: includes/views/admin_options_shipping_provider.php:27
370
+ msgid "Add Custom Provider"
371
+ msgstr "Tilføj brugerdefineret udbyder"
372
+
373
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2405
374
+ msgid "Filter by shipment status"
375
+ msgstr "Filtrer efter forsendelsesstatus"
376
+
377
+ #: includes/class-wc-advanced-shipment-tracking-front.php:148
378
  msgid ""
379
  "To track your order please enter your Order ID in the box below and press "
380
  "the \"Track\" button. This was given to you on your receipt and in the "
384
  "trykke på knappen \"Spor\". Dette blev givet til dig på din kvittering og i "
385
  "den bekræftelses e-mail, du skulle have modtaget.\n"
386
 
387
+ #: includes/class-wc-advanced-shipment-tracking-front.php:149
388
+ #: includes/class-wc-advanced-shipment-tracking-front.php:150
389
  msgid "Found in your order confirmation email."
390
  msgstr ""
391
  "Findes i din ordrebekræftelses-email.\n"
392
 
393
+ #: includes/class-wc-advanced-shipment-tracking-front.php:150
394
  msgid "Order Email"
395
  msgstr ""
396
  "Bestil Email\n"
397
 
398
+ #: includes/class-wc-advanced-shipment-tracking-front.php:153
399
+ #: includes/class-wc-advanced-shipment-tracking.php:728
400
+ #: includes/class-wc-advanced-shipment-tracking.php:851
 
401
  #: includes/customizer/class-wc-tracking-info-customizer.php:147
402
+ #: includes/customizer/class-wc-tracking-info-customizer.php:578
403
+ #: templates/emails/tracking-info.php:256
404
+ #: templates/myaccount/tracking-info.php:191
405
  msgid "Track"
406
  msgstr "Spor pakke"
407
 
408
+ #: includes/class-wc-advanced-shipment-tracking-front.php:221
409
+ #: includes/class-wc-advanced-shipment-tracking-front.php:238
410
+ #: includes/class-wc-advanced-shipment-tracking-front.php:398
411
+ #: includes/class-wc-advanced-shipment-tracking-front.php:415
412
  #, php-format
413
  msgid "Shipment - %s (out of %s)"
414
  msgstr ""
415
  "Forsendelse -% s (ud af% s)\n"
416
 
417
+ #: includes/class-wc-advanced-shipment-tracking-front.php:251
418
+ #: includes/class-wc-advanced-shipment-tracking-front.php:428
419
+ msgid "Tracking details not found in TrackShip"
420
+ msgstr "Sporingsdetaljer findes ikke i TrackShip"
 
 
421
 
422
+ #: includes/class-wc-advanced-shipment-tracking-front.php:462
423
+ #: includes/class-wc-advanced-shipment-tracking-front.php:492
424
+ #: includes/class-wc-advanced-shipment-tracking-front.php:862
425
+ #: includes/class-wc-advanced-shipment-tracking-front.php:880
426
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1015
427
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1033
428
+ msgid "Est. Delivery Date"
429
+ msgstr ""
430
+ "Est. Leveringsdato\n"
431
+
432
+ #: includes/class-wc-advanced-shipment-tracking-front.php:618
433
+ #: includes/class-wc-advanced-shipment-tracking-front.php:708
434
  msgid "Tracking Details"
435
  msgstr "Sporingsdetaljer"
436
 
437
+ #: includes/class-wc-advanced-shipment-tracking-front.php:699
438
+ #: includes/class-wc-advanced-shipment-tracking-front.php:789
439
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1004
440
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1118
441
  msgid "view more"
442
  msgstr "Se mere"
443
 
444
+ #: includes/class-wc-advanced-shipment-tracking-front.php:700
445
+ #: includes/class-wc-advanced-shipment-tracking-front.php:790
446
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1005
447
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1119
448
  msgid "view less"
449
  msgstr "se mindre"
450
 
 
 
 
 
 
 
 
 
 
451
  #: includes/class-wc-advanced-shipment-tracking.php:95
452
+ #: includes/class-wc-advanced-shipment-tracking.php:265
453
  #: includes/customizer/class-wcast-customizer.php:31
454
  msgid "Shipment Tracking"
455
  msgstr "Forsendelsessporing"
456
 
457
  #: includes/class-wc-advanced-shipment-tracking.php:184
458
+ #: includes/class-wc-advanced-shipment-tracking.php:387
459
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:438
460
  msgid "Mark as Shipped?"
461
+ msgstr "Marker som sendt?"
 
 
 
 
462
 
463
  #: includes/class-wc-advanced-shipment-tracking.php:187
464
+ #: includes/class-wc-advanced-shipment-tracking.php:390
465
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:441
466
  msgid "Mark as Completed?"
467
+ msgstr "Marker som afsluttet?"
468
 
469
  #: includes/class-wc-advanced-shipment-tracking.php:188
470
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:442
471
  msgid "Completed"
472
+ msgstr "afsluttet"
473
 
474
  #: includes/class-wc-advanced-shipment-tracking.php:195
475
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:450
476
  msgid "Add Tracking Number"
477
+ msgstr "Tilføj sporingsnummer"
478
 
479
+ #: includes/class-wc-advanced-shipment-tracking.php:198
480
+ #: includes/class-wc-advanced-shipment-tracking.php:203
481
+ #: includes/class-wc-advanced-shipment-tracking.php:408
482
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:453
483
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:455
484
  msgid "Provider:"
485
  msgstr "udbyder:"
486
 
487
+ #: includes/class-wc-advanced-shipment-tracking.php:223
488
+ #: includes/class-wc-advanced-shipment-tracking.php:446
489
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:475
490
  msgid "Tracking number:"
491
  msgstr "Tracking nummer:"
492
 
493
+ #: includes/class-wc-advanced-shipment-tracking.php:227
494
+ #: includes/class-wc-advanced-shipment-tracking.php:454
495
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:479
496
  msgid "Date shipped:"
497
  msgstr "Dato afsendt:"
498
 
499
+ #: includes/class-wc-advanced-shipment-tracking.php:236
500
+ #: includes/class-wc-advanced-shipment-tracking.php:466
501
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:488
502
+ msgid "Mark order as:"
503
+ msgstr "Marker ordre som:"
 
 
 
 
 
504
 
505
+ #: includes/class-wc-advanced-shipment-tracking.php:239
506
+ #: includes/class-wc-advanced-shipment-tracking.php:469
507
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:491
508
  msgid "Partial Shipped"
509
+ msgstr "Delvis afsendt"
510
 
511
+ #: includes/class-wc-advanced-shipment-tracking.php:281
512
+ #: includes/class-wc-advanced-shipment-tracking.php:483
513
+ msgid "Track Shipment"
514
+ msgstr "Spor forsendelse"
515
 
516
  #. 1: shipping date
517
+ #: includes/class-wc-advanced-shipment-tracking.php:290
518
  #, php-format
519
  msgid "Shipped on %s"
520
  msgstr "Sendes på% s"
521
 
522
+ #: includes/class-wc-advanced-shipment-tracking.php:404
523
  msgid "Add Tracking Info"
524
  msgstr "Tilføj sporingsinfo"
525
 
526
+ #: includes/class-wc-advanced-shipment-tracking.php:409
527
  msgid "Select Provider"
528
  msgstr "Vælg Udbyder"
529
 
530
+ #: includes/class-wc-advanced-shipment-tracking.php:482
531
  msgid "Save Tracking"
532
  msgstr "Gem sporing"
533
 
534
+ #: includes/class-wc-advanced-shipment-tracking.php:483
535
  msgid "Preview:"
536
  msgstr "Eksempel:"
537
 
538
+ #: includes/class-wc-advanced-shipment-tracking.php:702
539
  #, php-format
540
  msgid ""
541
  "Tracking info was deleted for tracking provider %s with tracking number %s"
542
+ msgstr "Sporingsinfo blev slettet for sporingsudbyder% s med sporingsnummer% s"
543
 
544
+ #: includes/class-wc-advanced-shipment-tracking.php:1092
545
  #, php-format
546
  msgid "Order was shipped with %s and tracking number is: %s"
547
+ msgstr "Ordren blev sendt med% s, og sporingsnummeret er:% s"
548
 
549
  #: includes/class-wc-advanced-shipment-welcome.php:38
550
  #: includes/class-wc-advanced-shipment-welcome.php:39
551
  msgid "Welcome to Advanced Shipment Tracking"
552
+ msgstr "Velkommen til Advanced Shipment Tracking"
553
 
554
  #: includes/class-wc-advanced-shipment-welcome.php:90
555
  #: includes/class-wc-advanced-shipment-welcome.php:129
556
  #: includes/class-wc-advanced-shipment-welcome.php:147
557
  msgid "Save and Continue"
558
+ msgstr "Gem og fortsæt"
559
 
560
  #: includes/class-wc-advanced-shipment-welcome.php:177
561
+ #: includes/views/admin_trackship_dashboard.php:6
562
  msgid "Connection status"
563
+ msgstr "Forbindelsesstatus"
564
 
565
  #: includes/class-wc-advanced-shipment-welcome.php:184
566
+ #: includes/views/admin_trackship_dashboard.php:13
567
  msgid "TrackShip Connection Status"
568
  msgstr "TrackShip-forbindelsesstatus"
569
 
 
 
 
 
 
 
570
  #: includes/class-wc-advanced-shipment-welcome.php:194
571
+ #: includes/views/admin_trackship_dashboard.php:23
572
  msgid "Trackers Balance"
573
+ msgstr "Trackers balance"
574
 
575
  #: includes/class-wc-advanced-shipment-welcome.php:202
576
+ #: includes/views/admin_trackship_dashboard.php:31
577
  msgid "Current Plan"
578
+ msgstr "Nuværende plan"
579
 
580
  #: includes/class-wc-advanced-shipment-welcome.php:217
581
+ #: includes/views/admin_options_addons.php:33
582
+ #: includes/views/admin_trackship_dashboard.php:46
583
  msgid ""
584
  "You are now connected with TrackShip! TrackShip makes it effortless to "
585
  "automate your post shipping operations and get tracking and delivery status "
586
  "updates directly in the WooCommerce admin."
587
  msgstr ""
588
+ "Du er nu forbundet med TrackShip! TrackShip gør det nemt at automatisere "
589
+ "dine postforsendelsesoperationer og få sporings- og "
590
+ "leveringsstatusopdateringer direkte i WooCommerce-administratoren."
 
 
 
 
591
 
592
  #: includes/class-wc-advanced-shipment-welcome.php:223
593
+ #: includes/views/admin_trackship_dashboard.php:52
594
  msgid "TrackShip Dashboard"
595
+ msgstr "TrackShip Dashboard"
596
 
597
  #: includes/class-wc-advanced-shipment-welcome.php:253
598
  msgid "Save"
599
+ msgstr "Gemme"
600
 
601
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:142
602
+ #, php-format
603
+ msgid "Delivered <span class=\"count\">(%s)</span>"
604
+ msgid_plural "Delivered <span class=\"count\">(%s)</span>"
605
+ msgstr[0] "Leveret <span class = \"count\"> (% s) </span>"
606
+ msgstr[1] "Leveret <span class = \"count\"> (% s) </span>"
607
+
608
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:151
609
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:197
610
+ #: includes/views/admin_options_settings.php:149
611
+ msgid "Updated Tracking"
612
+ msgstr "Opdateret sporing"
613
+
614
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:156
615
+ #, php-format
616
+ msgid "Updated Tracking <span class=\"count\">(%s)</span>"
617
+ msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
618
+ msgstr[0] "Opdateret sporing <span class = \"count\"> (% s) </span>"
619
+ msgstr[1] "Opdateret sporing <span class = \"count\"> (% s) </span>"
620
+
621
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:165
622
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:211
623
+ #: includes/views/admin_options_settings.php:115
624
+ msgid "Partially Shipped"
625
+ msgstr "Delvist afsendt"
626
+
627
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:170
628
+ #, php-format
629
+ msgid "Partially Shipped <span class=\"count\">(%s)</span>"
630
+ msgid_plural "Partially Shipped <span class=\"count\">(%s)</span>"
631
+ msgstr[0] "Delvist afsendt <span class = \"count\"> (% s) </span>"
632
+ msgstr[1] "Delvist afsendt <span class = \"count\"> (% s) </span>"
633
 
634
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:270
635
+ msgid "Change status to delivered"
636
+ msgstr "Change status to delivered"
637
 
638
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:279
639
+ msgid "Change status to Updated Tracking"
640
+ msgstr ""
641
+ "Skift status til Opdateret sporing\n"
 
 
 
642
 
643
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:288
644
+ msgid "Change status to Partially Shipped"
645
+ msgstr "Skift status til delvist afsendt"
646
 
647
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:320
648
+ #, php-format
649
+ msgid "Shipped <span class=\"count\">(%s)</span>"
650
+ msgid_plural "Shipped <span class=\"count\">(%s)</span>"
651
+ msgstr[0] "Afsendt <span class = \"count\"> (% s) </span>"
652
+ msgstr[1] "Afsendt <span class = \"count\"> (% s) </span>"
653
+
654
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:334
655
+ msgid "Change status to shipped"
656
+ msgstr "Skift status til afsendt"
657
+
658
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:518
659
+ msgid "Resend delivered order notification"
660
+ msgstr "Send leveret ordreanmeldelse igen"
661
+
662
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:730
663
+ msgid "Shipment Providers"
664
+ msgstr "Forsendelsesleverandører"
665
+
666
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:733
667
+ msgid "Shipment Status"
668
+ msgstr "Forsendelsesstatus"
669
+
670
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:736
671
+ msgid "Tracking issues"
672
+ msgstr "Sporingsspørgsmål"
673
+
674
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:742
675
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:750
676
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:767
677
+ msgid "data not available."
678
+ msgstr "data ikke tilgængelige."
679
+
680
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:773
681
+ msgid "View more on TrackShip"
682
+ msgstr "Se mere på TrackShip"
683
+
684
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:911
685
+ msgid "There are some issue with sync, Please Retry."
686
+ msgstr "Der er nogle problemer med synkronisering, prøv igen."
687
+
688
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:926
689
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:941
690
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:956
691
+ msgid "view details"
692
+ msgstr "view details"
693
+
694
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:927
695
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:942
696
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:957
697
+ msgid "hide details"
698
+ msgstr "Gem detaljer"
699
 
700
  #: includes/customizer/class-wcast-customizer.php:40
701
  msgid "Shipment Status Emails"
714
 
715
  #: includes/customizer/class-wcast-customizer.php:68
716
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:143
717
+ msgid "Partially Shipped status email"
718
+ msgstr "Delvis afsendt status-e-mail"
719
 
720
  #: includes/customizer/class-wcast-customizer.php:76
721
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:143
722
+ msgid "Updated Tracking status email"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
723
  msgstr ""
724
+ "Opdateret e-mail med sporingsstatus\n"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
725
 
726
+ #: includes/customizer/class-wcast-customizer.php:411
727
  msgid "Select order to preview"
728
  msgstr ""
729
  "Vælg rækkefølge for at forhåndsvise\n"
754
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
755
  #: includes/customizer/class-wc-returntosender-email-customizer.php:157
756
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:144
757
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:144
758
  msgid "This section lets you customize the Email Content."
759
  msgstr ""
760
  "Dette afsnit giver dig mulighed for at tilpasse e-mailindholdet.\n"
771
  #: includes/customizer/class-wc-intransit-email-customizer.php:191
772
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
773
  #: includes/customizer/class-wc-returntosender-email-customizer.php:187
774
+ #: includes/customizer/class-wc-tracking-info-customizer.php:183
775
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:177
776
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:177
777
  msgid "Preview order"
778
  msgstr ""
779
  "Forhåndsvis rækkefølge\n"
788
  msgid "E.g. {customer.email}, admin@example.org"
789
  msgstr "F.eks {customer.email}, admin@example.org"
790
 
791
+ #. %s: list of placeholders
792
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
793
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
794
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:381
795
  #: includes/customizer/class-wc-delivered-email-customizer.php:232
796
  #: includes/customizer/class-wc-delivered-email-customizer.php:254
797
+ #: includes/customizer/class-wc-delivered-email-customizer.php:383
798
+ #: includes/customizer/class-wc-email-customizer.php:243
799
+ #: includes/customizer/class-wc-email-customizer.php:266
800
+ #: includes/customizer/class-wc-email-customizer.php:289
801
+ #: includes/customizer/class-wc-email-customizer.php:414
802
  #: includes/customizer/class-wc-failure-email-customizer.php:231
803
  #: includes/customizer/class-wc-failure-email-customizer.php:253
804
+ #: includes/customizer/class-wc-failure-email-customizer.php:382
805
  #: includes/customizer/class-wc-intransit-email-customizer.php:235
806
  #: includes/customizer/class-wc-intransit-email-customizer.php:257
807
+ #: includes/customizer/class-wc-intransit-email-customizer.php:386
808
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
809
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
810
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:384
811
  #: includes/customizer/class-wc-returntosender-email-customizer.php:231
812
  #: includes/customizer/class-wc-returntosender-email-customizer.php:253
813
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:382
814
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:200
815
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:223
816
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:246
817
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:265
818
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:200
819
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:223
820
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:246
821
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:265
822
+ #: includes/emails/class-shipment-delivered-email.php:256
823
+ #: includes/emails/class-shipment-delivered-email.php:265
824
+ msgid "Available variables:"
825
+ msgstr "Tilgængelige variabler:"
 
 
 
 
 
 
 
 
 
 
 
826
 
827
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
828
  #: includes/customizer/class-wc-delivered-email-customizer.php:275
866
 
867
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
868
  #: includes/customizer/class-wc-delivered-email-customizer.php:340
869
+ #: includes/customizer/class-wc-email-customizer.php:393
870
  #: includes/customizer/class-wc-failure-email-customizer.php:339
871
+ #: includes/customizer/class-wc-intransit-email-customizer.php:364
872
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
873
  #: includes/customizer/class-wc-returntosender-email-customizer.php:339
874
  msgid "Google Analytics link tracking"
875
+ msgstr "Google Analytics-linksporing"
876
 
877
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
878
  #: includes/customizer/class-wc-delivered-email-customizer.php:341
879
  #: includes/customizer/class-wc-failure-email-customizer.php:340
880
+ #: includes/customizer/class-wc-intransit-email-customizer.php:365
881
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
882
  #: includes/customizer/class-wc-returntosender-email-customizer.php:340
883
  msgid "This will be appended to URL in the email content"
884
+ msgstr "Dette føjes til URL i e-mail-indholdet"
885
 
886
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
887
  #: includes/customizer/class-wc-delivered-email-customizer.php:362
891
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
892
  #: includes/customizer/class-wc-returntosender-email-customizer.php:361
893
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:245
894
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:245
895
  msgid "Email content"
896
  msgstr "Email indhold"
897
 
898
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:438
899
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:445
900
+ #: includes/customizer/class-wc-delivered-email-customizer.php:440
901
+ #: includes/customizer/class-wc-delivered-email-customizer.php:447
902
+ #: includes/customizer/class-wc-email-customizer.php:447
903
+ #: includes/customizer/class-wc-failure-email-customizer.php:439
904
+ #: includes/customizer/class-wc-failure-email-customizer.php:447
905
+ #: includes/customizer/class-wc-intransit-email-customizer.php:442
906
+ #: includes/customizer/class-wc-intransit-email-customizer.php:450
907
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:440
908
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:448
909
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:438
910
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:446
911
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:298
912
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:298
 
 
 
 
 
 
913
  msgid "Please select order to preview."
914
+ msgstr "Vælg rækkefølge for at få vist forhåndsvisning."
915
 
916
  #: includes/customizer/class-wc-delivered-email-customizer.php:124
917
  msgid "Your order #{order_number} has been delivered"
918
+ msgstr "Din ordre nr. {Ordre_nummer} er leveret"
919
 
920
  #: includes/customizer/class-wc-delivered-email-customizer.php:126
921
  #: includes/customizer/class-wc-email-customizer.php:132
948
  "Aktivér leveret ordre status email\n"
949
 
950
  #: includes/customizer/class-wc-email-customizer.php:201
951
+ #: includes/customizer/class-wc-tracking-info-customizer.php:187
952
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:181
953
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:181
954
  msgid "Please select a order..."
955
  msgstr "Vælg venligst en ordre ..."
956
 
957
+ #: includes/customizer/class-wc-email-customizer.php:309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
958
  msgid "Display tracking details"
959
+ msgstr "Vis sporingsdetaljer"
960
 
961
+ #: includes/customizer/class-wc-email-customizer.php:325
962
  msgid "Display order details"
963
+ msgstr "Vis ordredetaljer"
964
 
965
+ #: includes/customizer/class-wc-email-customizer.php:342
966
  msgid "Display Shipping Address"
967
+ msgstr "Vis forsendelsesadresse"
968
 
969
+ #: includes/customizer/class-wc-email-customizer.php:359
970
  msgid "Display Billing Address"
971
+ msgstr "Vis faktureringsadresse"
972
 
973
+ #: includes/customizer/class-wc-email-customizer.php:376
974
  msgid "Enable Google Analytics tracking"
975
+ msgstr "Aktivér Google Analytics-sporing"
976
 
977
+ #: includes/customizer/class-wc-email-customizer.php:394
978
  msgid ""
979
  "This will be appended to URL in the email content – e.g. "
980
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
981
  msgstr ""
982
+ "Dette føjes til URL i e-mail-indholdet - f.eks. utm_source = ast & "
983
+ "utm_medium = email & utm_campaign = leveret"
984
 
985
  #: includes/customizer/class-wc-failure-email-customizer.php:123
986
  msgid "Your order #{order_number} is Failed Attempt"
1068
  "Aktivér Send e-mail til afsendelse af afsendelsesstatus\n"
1069
 
1070
  #: includes/customizer/class-wc-tracking-info-customizer.php:144
1071
+ #: includes/customizer/class-wc-tracking-info-customizer.php:496
1072
+ #: templates/emails/tracking-info.php:203
1073
+ #: templates/myaccount/tracking-info.php:144
1074
  msgid "Provider"
1075
  msgstr "Fragtfirma"
1076
 
1077
  #: includes/customizer/class-wc-tracking-info-customizer.php:145
1078
+ #: includes/customizer/class-wc-tracking-info-customizer.php:518
1079
+ #: templates/emails/tracking-info.php:232
1080
+ #: templates/myaccount/tracking-info.php:171
1081
  msgid "Tracking Number"
1082
  msgstr "Tracking nummer"
1083
 
1084
  #: includes/customizer/class-wc-tracking-info-customizer.php:146
1085
+ #: includes/customizer/class-wc-tracking-info-customizer.php:539
1086
  msgid "Shipped Date"
1087
  msgstr ""
1088
  "Afsendt dato\n"
1089
 
1090
+ #: includes/customizer/class-wc-tracking-info-customizer.php:184
1091
+ msgid "Select an order to preview and design the tracking info display."
 
 
1092
  msgstr ""
1093
+ "Vælg en ordre for at vist og designe visningen af ​​sporingsinfo.\n"
 
 
 
 
 
 
 
 
1094
 
1095
+ #: includes/customizer/class-wc-tracking-info-customizer.php:204
1096
  msgid "Tracking Display Position"
1097
  msgstr "Sporing af skærmposition"
1098
 
1099
+ #: includes/customizer/class-wc-tracking-info-customizer.php:208
1100
  msgid "Before Order Details"
1101
  msgstr "Før ordredetaljer"
1102
 
1103
+ #: includes/customizer/class-wc-tracking-info-customizer.php:209
1104
  msgid "After Order Details"
1105
  msgstr "Efter ordredetaljer"
1106
 
1107
+ #: includes/customizer/class-wc-tracking-info-customizer.php:224
1108
+ msgid "Tracking Header text"
1109
+ msgstr ""
1110
+ "Sporing af overskriftstekst\n"
1111
 
1112
+ #: includes/customizer/class-wc-tracking-info-customizer.php:231
1113
  msgid "Tracking Information"
1114
  msgstr "Sporing Oplysninger"
1115
 
1116
+ #: includes/customizer/class-wc-tracking-info-customizer.php:246
1117
  msgid "Additional text after header"
1118
  msgstr "Yderligere tekst efter overskrift"
1119
 
1120
+ #: includes/customizer/class-wc-tracking-info-customizer.php:267
1121
+ #: includes/customizer/class-wc-tracking-info-customizer.php:270
1122
+ msgid "Tracking display template"
1123
+ msgstr ""
1124
+ "Sporing af skærmskabelon\n"
1125
+
1126
+ #: includes/customizer/class-wc-tracking-info-customizer.php:274
1127
+ msgid "Select Template"
1128
  msgstr ""
1129
+ "Vælg skabelon\n"
1130
+
1131
+ #: includes/customizer/class-wc-tracking-info-customizer.php:275
1132
+ msgid "Table Layout"
1133
+ msgstr ""
1134
+ "Tabellayout\n"
1135
 
1136
  #: includes/customizer/class-wc-tracking-info-customizer.php:291
1137
+ msgid "Simple Layout Design"
1138
+ msgstr ""
1139
+ "Simpelt layoutdesign\n"
1140
+
1141
+ #: includes/customizer/class-wc-tracking-info-customizer.php:306
1142
+ msgid "Provider font size"
1143
+ msgstr ""
1144
+ "Udbyderens skriftstørrelse\n"
1145
+
1146
+ #: includes/customizer/class-wc-tracking-info-customizer.php:323
1147
+ msgid "Provider font color"
1148
+ msgstr ""
1149
+ "Udbyderens fontfarve\n"
1150
+
1151
+ #: includes/customizer/class-wc-tracking-info-customizer.php:339
1152
+ msgid "Show bottom border"
1153
+ msgstr ""
1154
+ "Vis nederste kant\n"
1155
+
1156
+ #: includes/customizer/class-wc-tracking-info-customizer.php:356
1157
+ msgid "Bottom border color"
1158
+ msgstr ""
1159
+ "Nederste kantfarve\n"
1160
 
1161
+ #: includes/customizer/class-wc-tracking-info-customizer.php:374
1162
+ msgid "Table layout Design"
1163
+ msgstr ""
1164
+ "Tabellayout Design\n"
1165
 
1166
+ #: includes/customizer/class-wc-tracking-info-customizer.php:389
1167
+ msgid "Display shipping provider name"
1168
  msgstr ""
1169
+ "Vis forsendelsesudbyderens navn\n"
1170
 
1171
+ #: includes/customizer/class-wc-tracking-info-customizer.php:406
1172
+ msgid "Display shipping provider image"
1173
  msgstr ""
1174
+ "Vis forsendelsesudbyders billede\n"
1175
 
1176
+ #: includes/customizer/class-wc-tracking-info-customizer.php:423
1177
+ msgid "Hide the ship date"
1178
+ msgstr ""
1179
+ "Skjul skibets dato\n"
1180
 
1181
+ #: includes/customizer/class-wc-tracking-info-customizer.php:440
1182
+ msgid "Use tracking number as a link"
1183
+ msgstr "Brug sporingsnummer som et link"
1184
 
1185
+ #: includes/customizer/class-wc-tracking-info-customizer.php:457
1186
+ msgid "Table Headers"
1187
+ msgstr ""
1188
+ "Bordoverskrifter\n"
1189
 
1190
+ #: includes/customizer/class-wc-tracking-info-customizer.php:472
1191
+ msgid "Hide Table Headers"
1192
+ msgstr ""
1193
+ "Skjul tabeloverskrifter\n"
1194
+
1195
+ #: includes/customizer/class-wc-tracking-info-customizer.php:489
1196
+ msgid "Provider header text"
1197
+ msgstr ""
1198
+ "Udbyderens hovedtekst\n"
1199
+
1200
+ #: includes/customizer/class-wc-tracking-info-customizer.php:511
1201
+ msgid "Tracking Number header text"
1202
+ msgstr ""
1203
+ "Sporing af nummeroverskriftstekst\n"
1204
+
1205
+ #: includes/customizer/class-wc-tracking-info-customizer.php:532
1206
+ msgid "Ship date header text"
1207
+ msgstr ""
1208
+ "Send datoens overskriftstekst\n"
1209
+
1210
+ #: includes/customizer/class-wc-tracking-info-customizer.php:554
1211
  msgid "Track Label"
1212
  msgstr "Sporetiket"
1213
 
1214
+ #: includes/customizer/class-wc-tracking-info-customizer.php:571
1215
+ msgid "Track header text"
1216
+ msgstr ""
1217
+ "Spor overskriftstekst\n"
1218
 
1219
+ #: includes/customizer/class-wc-tracking-info-customizer.php:593
1220
+ msgid "Headers font size"
1221
+ msgstr ""
1222
+ "Headers skriftstørrelse\n"
1223
 
1224
+ #: includes/customizer/class-wc-tracking-info-customizer.php:610
1225
+ msgid "Headers font color"
1226
+ msgstr ""
1227
+ "Headers fontfarve\n"
1228
 
1229
+ #: includes/customizer/class-wc-tracking-info-customizer.php:626
1230
+ msgid "Table Content"
1231
+ msgstr "Table Content"
1232
 
1233
+ #: includes/customizer/class-wc-tracking-info-customizer.php:641
1234
  msgid "Padding"
1235
  msgstr "polstring"
1236
 
1237
+ #: includes/customizer/class-wc-tracking-info-customizer.php:661
1238
+ #: includes/customizer/class-wc-tracking-info-customizer.php:845
1239
  msgid "Background color"
1240
  msgstr "Baggrundsfarve"
1241
 
1242
+ #: includes/customizer/class-wc-tracking-info-customizer.php:677
1243
+ #: includes/views/admin_tracking_page_settings.php:72
1244
  msgid "Border color"
1245
  msgstr ""
1246
  "Border farve\n"
1247
 
1248
+ #: includes/customizer/class-wc-tracking-info-customizer.php:693
1249
  msgid "Border size"
1250
  msgstr ""
1251
  "Border størrelse\n"
1252
 
1253
+ #: includes/customizer/class-wc-tracking-info-customizer.php:717
1254
+ msgid "Content Text align"
1255
+ msgstr ""
1256
+ "Juster indholdstekst\n"
1257
 
1258
+ #: includes/customizer/class-wc-tracking-info-customizer.php:739
1259
+ msgid "Content font color"
1260
+ msgstr ""
1261
+ "Indhold font farve\n"
1262
 
1263
+ #: includes/customizer/class-wc-tracking-info-customizer.php:755
1264
+ msgid "Content font size"
1265
+ msgstr ""
1266
+ "Indholdsstørrelse\n"
1267
 
1268
+ #: includes/customizer/class-wc-tracking-info-customizer.php:772
1269
  msgid "Content line height"
1270
  msgstr ""
1271
  "Indholdslinjehøjde\n"
1272
 
1273
+ #: includes/customizer/class-wc-tracking-info-customizer.php:793
1274
  msgid "Content font weight"
1275
  msgstr ""
1276
  "Indhold skrifttype vægt\n"
1277
 
1278
+ #: includes/customizer/class-wc-tracking-info-customizer.php:815
1279
+ msgid "Tracking Link"
1280
+ msgstr "Sporingslink"
1281
 
1282
+ #: includes/customizer/class-wc-tracking-info-customizer.php:829
1283
+ msgid "Font Color"
1284
+ msgstr ""
1285
+ "Skrift farve\n"
1286
 
1287
+ #: includes/customizer/class-wc-tracking-info-customizer.php:860
1288
+ msgid "Border"
1289
+ msgstr "Grænse"
1290
 
1291
+ #: includes/customizer/class-wc-tracking-info-customizer.php:912
1292
+ msgid ""
1293
+ "To preview the tracking display, please add tracking information to at least "
1294
+ "one order and choose it in the preview order selection."
1295
+ msgstr ""
1296
+ "Hvis du vil se en forhåndsvisning af sporingsdisplayet, skal du tilføje "
1297
+ "sporingsoplysninger til mindst en ordre og vælge dem i valg af "
1298
+ "forhåndsvisning af forhåndsvisning.\n"
1299
 
1300
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:116
1301
+ msgid "Your {site_title} order is now partially shipped"
1302
+ msgstr "Din {site_title} ordre er nu delvist sendt"
1303
 
1304
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:118
1305
  msgid ""
1306
  "Hi there. we thought you'd like to know that your recent order from "
1307
+ "{site_title} has been partially shipped."
1308
  msgstr ""
1309
+ "Hej. vi troede, du gerne vil vide, at din seneste ordre fra {site_title} er "
1310
+ "delvist sendt.\n"
1311
 
1312
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:159
1313
+ msgid "Enable Partially Shipped order status email"
1314
+ msgstr "Aktivér delvis afsendt ordre-status-e-mail"
1315
+
1316
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:116
1317
+ msgid "Your {site_title} order is now updated tracking"
1318
+ msgstr ""
1319
+ "Din {site_title} ordre er nu opdateret sporing\n"
1320
+
1321
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:118
1322
+ msgid ""
1323
+ "Hi there. we thought you'd like to know that the shipment tracking for your "
1324
+ "recent order from {site_title} has been updated."
1325
  msgstr ""
1326
+ "Hej. vi troede, du gerne vil vide, at forsendelsessporing for din seneste "
1327
+ "ordre fra {site_title} er blevet opdateret.\n"
1328
+
1329
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:159
1330
+ msgid "Enable Updated Tracking order status email"
1331
+ msgstr ""
1332
+ "Aktivér e-mail med opdateret sporingsordrestatus\n"
1333
 
1334
  #: includes/emails/class-shipment-delivered-email.php:32
1335
  msgid "Delivered order"
1336
+ msgstr "Leveret ordre"
1337
 
1338
  #: includes/emails/class-shipment-delivered-email.php:33
1339
  msgid ""
1340
  "Order delivered emails are sent to customers when their orders are marked "
1341
  "delivered and usually indicate that their orders have been shipped."
1342
  msgstr ""
1343
+ "Ordrer leverede e-mails sendes til kunderne, når deres ordrer er mærket "
1344
+ "leveret og angiver normalt, at deres ordrer er blevet sendt."
1345
 
1346
+ #: includes/emails/class-shipment-delivered-email.php:280
1347
  msgid "Click Here"
1348
+ msgstr "Klik her"
1349
 
1350
+ #: includes/emails/class-shipment-delivered-email.php:281
1351
  msgid "Edit in customizer"
1352
+ msgstr "Rediger i brugerdefineret"
1353
 
1354
  #: includes/views/admin_options_bulk_upload.php:10
1355
  msgid "Upload CSV"
1364
  "sporingsoplysningerne blive tilføjet)"
1365
 
1366
  #: includes/views/admin_options_bulk_upload.php:29
1367
+ #: includes/views/admin_options_shipping_provider.php:120
1368
+ #: includes/views/admin_options_shipping_provider.php:157
1369
  msgid "Upload"
1370
  msgstr "Upload"
1371
 
1377
  msgid "Upload Progress - "
1378
  msgstr "Upload Progress -"
1379
 
1380
+ #: includes/views/admin_options_bulk_upload.php:50
1381
  msgid "Sample CSV"
1382
+ msgstr "Eksempel på CSV"
1383
 
1384
+ #: includes/views/admin_options_bulk_upload.php:55
1385
  msgid "You can download an example of the csv file:"
1386
  msgstr "Puedes descargar un ejemplo del archivo csv:"
1387
 
1388
+ #: includes/views/admin_options_bulk_upload.php:58
1389
  msgid "Download sample csv file"
1390
  msgstr "Download prøve csv fil"
1391
 
1392
+ #: includes/views/admin_options_bulk_upload.php:63
1393
  msgid ""
1394
  "For detailed instructions on how to upload tracking info in bulk, see our"
1395
  msgstr ""
1396
  "Para obtener instrucciones detalladas sobre cómo cargar información de "
1397
  "seguimiento de forma masiva, consulte nuestra"
1398
 
1399
+ #: includes/views/admin_options_settings.php:15
1400
+ #: includes/views/admin_trackship_dashboard.php:62
1401
+ msgid "General Settings"
1402
+ msgstr "Generelle indstillinger"
1403
+
1404
  #: includes/views/admin_options_settings.php:26
1405
+ #: includes/views/admin_options_settings.php:181
1406
+ #: includes/views/admin_trackship_dashboard.php:73
1407
+ #: includes/views/admin_tracking_page_settings.php:101
 
1408
  msgid "Save Changes"
1409
+ msgstr "Gem ændringer"
1410
 
1411
  #: includes/views/admin_options_settings.php:40
1412
  msgid "Tracking Info Display"
1413
+ msgstr "Tracking Info Display"
1414
 
1415
  #: includes/views/admin_options_settings.php:49
1416
  msgid "You can customize the tracking info display on emails and my account"
1417
+ msgstr "Du kan tilpasse visningen af ​​sporingsinfo på e-mails og min konto"
1418
 
1419
  #: includes/views/admin_options_settings.php:52
1420
  msgid "Launch Customizer"
1421
+ msgstr "Start Customizer"
1422
 
1423
  #: includes/views/admin_options_settings.php:62
1424
+ msgid "Custom Order Statuses"
 
 
 
 
1425
  msgstr ""
1426
+ "Status for tilpasset ordre\n"
1427
 
1428
  #: includes/views/admin_options_settings.php:94
1429
+ #: includes/views/admin_options_settings.php:129
1430
+ #: includes/views/admin_options_settings.php:163
1431
+ msgid "Light Font"
 
 
 
 
 
1432
  msgstr ""
1433
+ "Let skrift\n"
1434
+
1435
+ #: includes/views/admin_options_settings.php:95
1436
+ #: includes/views/admin_options_settings.php:130
1437
+ #: includes/views/admin_options_settings.php:164
1438
+ msgid "Dark Font"
1439
+ msgstr ""
1440
+ "Mørk skrifttype\n"
1441
+
1442
+ #: includes/views/admin_options_settings.php:99
1443
+ #: includes/views/admin_options_settings.php:134
1444
+ #: includes/views/admin_options_settings.php:168
1445
+ msgid "Send Email"
1446
+ msgstr ""
1447
+ "Send e-mail\n"
1448
 
1449
  #: includes/views/admin_options_shipping_provider.php:12
1450
+ #: includes/views/admin_options_shipping_provider.php:25
1451
+ #: includes/views/zorem_admin_sidebar.php:18
1452
+ #: includes/views/admin_options_addons.php:109
1453
  msgid "Active"
1454
+ msgstr "Aktiv"
1455
 
1456
  #: includes/views/admin_options_shipping_provider.php:13
1457
+ #: includes/views/admin_options_shipping_provider.php:25
1458
  msgid "Inactive"
1459
+ msgstr "inaktive"
1460
 
1461
  #: includes/views/admin_options_shipping_provider.php:14
1462
  msgid "Custom"
1463
+ msgstr "Brugerdefinerede"
1464
 
1465
+ #: includes/views/admin_options_shipping_provider.php:20
1466
+ msgid "Search by provider / country"
1467
+ msgstr "Søg efter udbyder / land"
1468
+
1469
+ #: includes/views/admin_options_shipping_provider.php:25
1470
+ msgid "Reset all:"
1471
  msgstr ""
1472
+ "Genstart alt:\n"
1473
 
1474
+ #: includes/views/admin_options_shipping_provider.php:26
 
1475
  #: includes/views/admin_options_shipping_provider.php:177
1476
+ #: includes/views/admin_options_shipping_provider.php:184
1477
  msgid "Sync Shipping Providers"
1478
+ msgstr "Synkroniseringsforsendelser"
 
 
 
 
1479
 
1480
+ #: includes/views/admin_options_shipping_provider.php:102
 
 
 
 
 
 
 
 
 
1481
  msgid "Add Custom Shipping Provider"
1482
  msgstr "Tilføj Tilpasset forsendelsesleverandør"
1483
 
1484
+ #: includes/views/admin_options_shipping_provider.php:109
1485
+ #: includes/views/admin_options_shipping_provider.php:146
1486
  msgid "Shipping Country"
1487
+ msgstr "Forsendelsesland"
1488
 
1489
+ #: includes/views/admin_options_shipping_provider.php:110
1490
+ #: includes/views/admin_options_shipping_provider.php:147
1491
  msgid "Global"
1492
+ msgstr "Global"
1493
+
1494
+ #: includes/views/admin_options_shipping_provider.php:126
1495
+ #: includes/views/admin_options_shipping_provider.php:163
1496
+ msgid "How to add Tracking URL"
1497
+ msgstr "Sådan tilføjes sporings-URL"
1498
 
1499
+ #: includes/views/admin_options_shipping_provider.php:139
1500
  msgid "Edit Custom Shipping Provider"
1501
  msgstr "Rediger leverandør af tilpasset forsendelse"
1502
 
1503
+ #: includes/views/admin_options_shipping_provider.php:178
1504
  msgid ""
1505
  "Syncing the shipping providers list add or updates the pre-set shipping "
1506
  "providers and will not effect custom shipping providers."
1507
  msgstr ""
1508
+ "Synkronisering af leverandørlisten tilføj eller opdaterer de "
1509
+ "forudindstillede leverandører af levering og påvirker ikke brugerdefinerede "
1510
+ "forsendelsesleverandører."
1511
 
1512
+ #: includes/views/admin_options_shipping_provider.php:180
1513
  msgid "Providers Added"
1514
  msgstr "Udbydere tilføjet"
1515
 
1516
+ #: includes/views/admin_options_shipping_provider.php:181
1517
  msgid "Providers Updated"
1518
  msgstr "Udbydere opdateret"
1519
 
1520
+ #: includes/views/admin_options_shipping_provider.php:182
1521
  msgid "Providers Deleted"
1522
  msgstr "Udbydere er slettet"
1523
 
1524
+ #: includes/views/admin_options_trackship_integration.php:17
1525
+ #: includes/views/admin_tracking_page_settings.php:7
1526
  msgid "Tracking Page"
1527
  msgstr "Tracking Page"
1528
 
1529
+ #: includes/views/admin_options_trackship_integration.php:20
1530
+ msgid "Shipment Status Notifications"
1531
+ msgstr ""
1532
+ "Notifikationer om forsendelsesstatus\n"
1533
+
1534
+ #: includes/views/admin_options_trackship_integration.php:23
1535
+ msgid "Tools"
1536
+ msgstr "Værktøj"
1537
+
1538
+ #: includes/views/zorem_admin_sidebar.php:15
1539
+ #: includes/views/admin_options_addons.php:90
1540
+ msgid "Get This Add-on >"
1541
+ msgstr ""
1542
+ "Hent denne tilføjelse>\n"
1543
+
1544
+ #: includes/views/zorem_admin_sidebar.php:27
1545
+ msgid "Upgrade to PRO"
1546
+ msgstr ""
1547
+ "Opgrader til Pro\n"
1548
+
1549
+ #: includes/views/admin_options_tools.php:23
1550
+ msgid ""
1551
+ "You can send all your orders from the last 30 days to get shipment status "
1552
+ "from TrackShip:"
1553
+ msgstr ""
1554
+ "Du kan sende alle dine ordrer fra de sidste 30 dage for at få "
1555
+ "forsendelsesstatus fra TrackShip:"
1556
+
1557
+ #: includes/views/admin_options_addons.php:20
1558
+ msgid "TrackShip"
1559
+ msgstr "TrackShip"
1560
+
1561
+ #: includes/views/admin_options_addons.php:36
1562
+ msgid ""
1563
+ "TracksShip is a premium shipment tracking API flatform that fully integrates "
1564
+ "with WooCommerce with the Advanced Shipment Tracking. TrackShip automates "
1565
+ "the order management workflows, reduces customer inquiries, reduces time "
1566
+ "spent on customer service, and improves the post-purchase experience and "
1567
+ "satisfaction of your customers."
1568
+ msgstr ""
1569
+ "TracksShip er en premium-forsendelses-API-flatform, der fuldt ud integreres "
1570
+ "med WooCommerce med Advanced Shipment Tracking. TrackShip automatiserer "
1571
+ "orderstyringsarbejdsgange, reducerer kundeforespørgsler, reducerer tiden, "
1572
+ "der bruges på kundeservice og forbedrer dine kunders oplevelse efter købet "
1573
+ "og tilfredshed.\n"
1574
+
1575
+ #: includes/views/admin_options_addons.php:37
1576
+ msgid ""
1577
+ "You must have account TracksShip and connect your store in order to activate "
1578
+ "these advanced features:"
1579
+ msgstr ""
1580
+ "Du skal have konto TracksShip og forbinde din butik for at aktivere disse "
1581
+ "avancerede funktioner:\n"
1582
+
1583
+ #: includes/views/admin_options_addons.php:51
1584
+ msgid "SIGNUP NOW"
1585
+ msgstr ""
1586
+ "TILMELD DIG NU\n"
1587
+
1588
+ #: includes/views/admin_options_addons.php:80
1589
+ msgid ""
1590
+ "The Tracking Per Item add-on extends the AST plugin and allows you to attach "
1591
+ "tracking numbers to specific line items and to line item quantities."
1592
+ msgstr ""
1593
+ "Tilføjelsen Tracking per Item udvider AST-pluginet og giver dig mulighed for "
1594
+ "at knytte sporingsnumre til specifikke linjeposter og til "
1595
+ "linjeposteremængder.\n"
1596
 
1597
+ #: includes/views/admin_options_addons.php:110
1598
+ msgid "Deactivate"
1599
+ msgstr "Deaktiver"
1600
 
1601
+ #: includes/views/admin_options_addons.php:112
1602
+ msgid "Activate"
1603
+ msgstr "Activate"
1604
+
1605
+ #: includes/views/admin_tracking_page_settings.php:39
1606
+ msgid ""
1607
+ "Note - If you select a different page than the Shipment Tracking page, add "
1608
+ "the [wcast-track-order] shortcode to the selected page content."
1609
+ msgstr ""
1610
+ "Bemærk - Hvis du vælger en anden side end siden med sporing af forsendelse, "
1611
+ "tilføj kortkoden [wcast-track-order] til det valgte sideindhold.\n"
1612
+
1613
+ #: includes/views/admin_tracking_page_settings.php:39
1614
+ msgid "more info"
1615
+ msgstr ""
1616
+ "mere info\n"
1617
+
1618
+ #: includes/views/admin_tracking_page_settings.php:66
1619
+ msgid "Text Color"
1620
+ msgstr ""
1621
+ "Tekstfarve\n"
1622
+
1623
+ #: includes/views/admin_tracking_page_settings.php:88
1624
+ msgid "Hide tracking event details"
1625
+ msgstr ""
1626
+ "Skjul detaljer om sporingsbegivenhed\n"
1627
+
1628
+ #: includes/views/admin_tracking_page_settings.php:110
1629
+ msgid "Preview"
1630
+ msgstr "Eksempel"
1631
+
1632
+ #: includes/views/admin_status_notifications.php:3
1633
  msgid "Shipment Status Notifications "
1634
  msgstr "Notifikationer om forsendelsesstatus"
1635
 
1636
+ #: includes/views/admin_status_notifications.php:27
1637
  msgid ""
1638
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1639
  "the way."
1641
  "Luftfartsselskab har accepteret eller hentet forsendelse fra afsender. "
1642
  "Forsendelsen er på vej."
1643
 
1644
+ #: includes/views/admin_status_notifications.php:41
1645
  msgid "Shipment is returned to sender"
1646
  msgstr "Forsendelse returneres til afsenderen"
1647
 
1648
+ #: includes/views/admin_status_notifications.php:55
1649
  msgid "The shipment is ready to pickup."
1650
  msgstr "Forsendelsen er klar til afhentning."
1651
 
1652
+ #: includes/views/admin_status_notifications.php:68
1653
  msgid "Carrier is about to deliver the shipment"
1654
  msgstr "Carrier er ved at levere forsendelsen"
1655
 
1656
+ #: includes/views/admin_status_notifications.php:82
1657
  msgid "The shipment was delivered successfully"
1658
  msgstr "Forsendelsen blev leveret med succes"
1659
 
1660
+ #: includes/views/admin_status_notifications.php:83
1661
  msgid ""
1662
  "You already have delivered email enabled, to enable this email you'll need "
1663
  "to disable the order status delivered in settings."
1665
  "Du har allerede leveret e-mail aktiveret, for at aktivere denne e-mail skal "
1666
  "du deaktivere ordrestatus leveret i indstillinger."
1667
 
1668
+ #: includes/views/admin_status_notifications.php:97
1669
  msgid ""
1670
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1671
  "will try to deliver the package again."
1673
  "Luftfartsselskab forsøgte at levere, men mislykkedes, og efterlader normalt "
1674
  "en meddelelse og vil forsøge at levere pakken igen."
1675
 
1676
+ # Udbyderens navn
1677
+ #: templates/emails/tracking-info.php:225
1678
+ #: templates/myaccount/tracking-info.php:166
1679
+ msgid "Provider Name"
1680
+ msgstr "Udbyderens navn"
 
 
 
 
1681
 
1682
  #. %s: Order ID.
1683
  #: templates/emails/wcast-email-order-details.php:47
1686
  msgstr ""
1687
  "Ordrenummer:% s\n"
1688
 
1689
+ #: includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php:368
1690
+ msgid "Cannot create existing order shipment tracking."
1691
+ msgstr "Kan ikke oprette eksisterende ordreforsendelsesporing."
1692
+
1693
+ #: includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php:377
1694
+ msgid "Invalid order ID."
1695
+ msgstr "Ugyldigt ordre-ID."
1696
+
1697
+ #: includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php:381
1698
+ msgid "Special character not allowd in tracking number"
1699
+ msgstr "Specialtegn er ikke tilladt i sporingsnummer"
1700
+
1701
  #. Name of the plugin
1702
  msgid "Advanced Shipment Tracking for WooCommerce"
1703
  msgstr ""
1704
+ "Avanceret forsendelsesporing til WooCommerce\n"
1705
 
1706
  #. Description of the plugin
1707
  msgid ""
1710
  "will appear in customers accounts (in the order panel) and in WooCommerce "
1711
  "order complete email."
1712
  msgstr ""
1713
+ "Tilføj forsendelsessporingsoplysninger til dine WooCommerce-ordrer og giver "
1714
+ "kunderne en nem måde at spore deres ordrer på. Forsendelsessporingsinfo "
1715
+ "vises på kundekonti (i ordrepanelet) og i WooCommerce fuldstændig e-mail."
 
lang/woo-advanced-shipment-tracking-de_DE.mo CHANGED
Binary file
lang/woo-advanced-shipment-tracking-de_DE.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2019-11-01 10:06+0000\n"
6
- "PO-Revision-Date: 2019-11-04 07:07+0000\n"
7
- "Last-Translator: gaurav <gaurav1092@zorem.com>\n"
8
  "Language-Team: German\n"
9
  "Language: de_DE\n"
10
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
@@ -12,9 +12,9 @@ msgstr ""
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
- "X-Loco-Version: 2.3.1; wp-5.2.4"
16
 
17
- #: woocommerce-advanced-shipment-tracking.php:114
18
  #, php-format
19
  msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
@@ -23,24 +23,399 @@ msgstr ""
23
  "Bitte installieren und aktivieren Sie% sWooCommerce% s für WooCommerce "
24
  "Advanced Shipment Tracking!\n"
25
 
26
- #: woocommerce-advanced-shipment-tracking.php:223
27
  #, php-format
28
  msgid "Your order was shipped with %s and your tracking code is: %s"
29
  msgstr ""
 
30
 
31
- #: woocommerce-advanced-shipment-tracking.php:430
32
- #: includes/views/admin_options_settings.php:68
33
  #, php-format
34
  msgid ""
35
- "<strong>PLEASE NOTE</strong> - If you use the custom order status "
36
- "\"Delivered\", when you deactivate the plugin, you must register this order "
37
- "status in function.php in order to see these orders in the orders admin. You "
38
- "can find the <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
39
- "php here or you can manually change all your \"delivered\" order to "
40
- "\"completed\" before deactivating the plugin."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  msgstr ""
 
 
42
 
43
- #: includes/class-wc-advanced-shipment-tracking-front.php:150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  msgid ""
45
  "To track your order please enter your Order ID in the box below and press "
46
  "the \"Track\" button. This was given to you on your receipt and in the "
@@ -51,252 +426,349 @@ msgstr ""
51
  "auf Ihrer Quittung und in der Bestätigungs-E-Mail, die Sie hätten erhalten "
52
  "sollen, mitgeteilt.\n"
53
 
54
- #: includes/class-wc-advanced-shipment-tracking-front.php:151
55
- #: includes/class-wc-advanced-shipment-tracking-front.php:152
56
  msgid "Found in your order confirmation email."
57
  msgstr ""
58
  "Gefunden in Ihrer Auftragsbestätigungs-E-Mail.\n"
59
 
60
- #: includes/class-wc-advanced-shipment-tracking-front.php:152
61
  msgid "Order Email"
62
  msgstr ""
63
  "E-Mail bestellen\n"
64
 
65
- #: includes/class-wc-advanced-shipment-tracking-front.php:155
66
- #: includes/class-wc-advanced-shipment-tracking.php:276
67
- #: includes/class-wc-advanced-shipment-tracking.php:701
68
- #: includes/class-wc-advanced-shipment-tracking.php:826
69
  #: includes/customizer/class-wc-tracking-info-customizer.php:147
70
- #: includes/customizer/class-wc-tracking-info-customizer.php:444
71
- #: templates/emails/tracking-info.php:174
72
- #: templates/myaccount/tracking-info.php:125
73
  msgid "Track"
74
- msgstr "Track"
75
 
76
- #: includes/class-wc-advanced-shipment-tracking-front.php:233
77
- #: includes/class-wc-advanced-shipment-tracking-front.php:510
 
 
78
  #, php-format
79
  msgid "Shipment - %s (out of %s)"
80
  msgstr ""
81
  "Versand -% s (von% s)\n"
82
 
83
- #: includes/class-wc-advanced-shipment-tracking-front.php:246
84
- #: includes/class-wc-advanced-shipment-tracking-front.php:250
85
- #: includes/class-wc-advanced-shipment-tracking-front.php:523
86
- #: includes/class-wc-advanced-shipment-tracking-front.php:527
87
- msgid "Estimated Delivery Date: "
88
- msgstr "Voraussichtlicher Liefertermin:"
 
 
 
 
 
 
 
 
89
 
90
- #: includes/class-wc-advanced-shipment-tracking-front.php:359
91
- #: includes/class-wc-advanced-shipment-tracking-front.php:636
92
- #: includes/class-wc-advanced-shipment-tracking-front.php:812
93
  msgid "Tracking Details"
94
  msgstr "Verfolgungsdetails"
95
 
96
- #: includes/class-wc-advanced-shipment-tracking-front.php:378
97
- #: includes/class-wc-advanced-shipment-tracking-front.php:655
98
- #: includes/class-wc-advanced-shipment-tracking-front.php:833
 
99
  msgid "view more"
100
  msgstr "mehr sehen"
101
 
102
- #: includes/class-wc-advanced-shipment-tracking-front.php:379
103
- #: includes/class-wc-advanced-shipment-tracking-front.php:656
104
- #: includes/class-wc-advanced-shipment-tracking-front.php:834
 
105
  msgid "view less"
106
  msgstr "weniger anzeigen"
107
 
108
- #: includes/class-wc-advanced-shipment-tracking-front.php:387
109
- #: includes/class-wc-advanced-shipment-tracking-front.php:664
110
- msgid "Tracking details not found in TrackShip"
111
- msgstr ""
112
-
113
- #: includes/class-wc-advanced-shipment-tracking-front.php:747
114
- msgid "Estimated Delivery Date"
115
- msgstr ""
116
-
117
  #: includes/class-wc-advanced-shipment-tracking.php:95
118
- #: includes/class-wc-advanced-shipment-tracking.php:260
119
  #: includes/customizer/class-wcast-customizer.php:31
120
  msgid "Shipment Tracking"
121
  msgstr "Sendungsverfolgung"
122
 
123
  #: includes/class-wc-advanced-shipment-tracking.php:184
124
- #: includes/class-wc-advanced-shipment-tracking.php:374
 
125
  msgid "Mark as Shipped?"
126
- msgstr ""
127
-
128
- #: includes/class-wc-advanced-shipment-tracking.php:185
129
- msgid "Shipped"
130
- msgstr "Versendet"
131
 
132
  #: includes/class-wc-advanced-shipment-tracking.php:187
133
- #: includes/class-wc-advanced-shipment-tracking.php:377
 
134
  msgid "Mark as Completed?"
135
- msgstr ""
136
 
137
  #: includes/class-wc-advanced-shipment-tracking.php:188
 
138
  msgid "Completed"
139
- msgstr ""
140
 
141
  #: includes/class-wc-advanced-shipment-tracking.php:195
 
142
  msgid "Add Tracking Number"
143
- msgstr ""
144
 
145
- #: includes/class-wc-advanced-shipment-tracking.php:200
146
- #: includes/class-wc-advanced-shipment-tracking.php:395
 
 
 
147
  msgid "Provider:"
148
  msgstr "Anbieter:"
149
 
150
- #: includes/class-wc-advanced-shipment-tracking.php:220
151
- #: includes/class-wc-advanced-shipment-tracking.php:433
 
152
  msgid "Tracking number:"
153
  msgstr "Auftragsnummer, Frachtnummer, Sendungscode:"
154
 
155
- #: includes/class-wc-advanced-shipment-tracking.php:224
156
- #: includes/class-wc-advanced-shipment-tracking.php:441
 
157
  msgid "Date shipped:"
158
  msgstr "Lieferdatum:"
159
 
160
- #: includes/class-wc-advanced-shipment-tracking.php:225
161
- #: includes/class-wc-advanced-shipment-tracking.php:442
162
- #: includes/class-wc-advanced-shipment-tracking.php:445
163
- msgid "Y-m-d"
164
- msgstr ""
165
 
166
- #: includes/class-wc-advanced-shipment-tracking.php:231
167
- #: includes/class-wc-advanced-shipment-tracking.php:451
168
- msgid "Mark as"
169
- msgstr ""
170
-
171
- #: includes/class-wc-advanced-shipment-tracking.php:234
172
- #: includes/class-wc-advanced-shipment-tracking.php:455
173
  msgid "Partial Shipped"
174
- msgstr ""
175
 
176
- #: includes/class-wc-advanced-shipment-tracking.php:276
177
- #: includes/class-wc-advanced-shipment-tracking.php:469
178
- msgid "Click here to track your shipment"
179
- msgstr "Klicken Sie hier, um Ihre Sendung zu verfolgen"
 
180
 
181
  #. 1: shipping date
182
- #: includes/class-wc-advanced-shipment-tracking.php:284
183
  #, php-format
184
  msgid "Shipped on %s"
185
  msgstr "Versand auf% s"
186
 
187
- #: includes/class-wc-advanced-shipment-tracking.php:391
188
  msgid "Add Tracking Info"
189
  msgstr "Tracking-Info hinzufügen"
190
 
191
- #: includes/class-wc-advanced-shipment-tracking.php:396
192
  msgid "Select Provider"
193
  msgstr "Wählen Sie Provider aus"
194
 
195
- #: includes/class-wc-advanced-shipment-tracking.php:468
196
  msgid "Save Tracking"
197
  msgstr "Tracking speichern"
198
 
199
- #: includes/class-wc-advanced-shipment-tracking.php:469
200
  msgid "Preview:"
201
  msgstr "Vorschau:"
202
 
203
- #: includes/class-wc-advanced-shipment-tracking.php:675
204
  #, php-format
205
  msgid ""
206
  "Tracking info was deleted for tracking provider %s with tracking number %s"
207
  msgstr ""
 
 
208
 
209
- #: includes/class-wc-advanced-shipment-tracking.php:1042
210
  #, php-format
211
  msgid "Order was shipped with %s and tracking number is: %s"
212
  msgstr ""
 
213
 
214
  #: includes/class-wc-advanced-shipment-welcome.php:38
215
  #: includes/class-wc-advanced-shipment-welcome.php:39
216
  msgid "Welcome to Advanced Shipment Tracking"
217
- msgstr ""
218
 
219
  #: includes/class-wc-advanced-shipment-welcome.php:90
220
  #: includes/class-wc-advanced-shipment-welcome.php:129
221
  #: includes/class-wc-advanced-shipment-welcome.php:147
222
  msgid "Save and Continue"
223
- msgstr ""
224
 
225
  #: includes/class-wc-advanced-shipment-welcome.php:177
226
- #: includes/views/admin_options_trackship_integration.php:26
227
  msgid "Connection status"
228
- msgstr ""
229
 
230
  #: includes/class-wc-advanced-shipment-welcome.php:184
231
- #: includes/views/admin_options_trackship_integration.php:33
232
  msgid "TrackShip Connection Status"
233
  msgstr "TrackShip-Verbindungsstatus"
234
 
235
- #: includes/class-wc-advanced-shipment-welcome.php:188
236
- #: includes/views/admin_options_trackship_integration.php:37
237
- msgid "Connected"
238
- msgstr ""
239
- "In Verbindung gebracht\n"
240
-
241
  #: includes/class-wc-advanced-shipment-welcome.php:194
242
- #: includes/views/admin_options_trackship_integration.php:43
243
  msgid "Trackers Balance"
244
  msgstr ""
 
245
 
246
  #: includes/class-wc-advanced-shipment-welcome.php:202
247
- #: includes/views/admin_options_trackship_integration.php:51
248
  msgid "Current Plan"
249
  msgstr ""
 
250
 
251
  #: includes/class-wc-advanced-shipment-welcome.php:217
252
- #: includes/views/admin_options_trackship_integration.php:66
 
253
  msgid ""
254
  "You are now connected with TrackShip! TrackShip makes it effortless to "
255
  "automate your post shipping operations and get tracking and delivery status "
256
  "updates directly in the WooCommerce admin."
257
  msgstr ""
258
-
259
- #: includes/class-wc-advanced-shipment-welcome.php:222
260
- #: includes/views/admin_options_bulk_upload.php:58
261
- #: includes/views/admin_options_trackship_integration.php:71
262
- #: includes/views/zorem_admin_ts_sidebar.php:12
263
- msgid "Documentation"
264
- msgstr ""
265
 
266
  #: includes/class-wc-advanced-shipment-welcome.php:223
267
- #: includes/views/admin_options_trackship_integration.php:72
268
  msgid "TrackShip Dashboard"
269
  msgstr ""
 
270
 
271
  #: includes/class-wc-advanced-shipment-welcome.php:253
272
  msgid "Save"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
273
  msgstr ""
 
274
 
275
- #: includes/class-wc-advanced-shipment-welcome.php:310
276
- msgid ""
277
- "Get Shipment Status is limited to 100 orders at a time, please select up to "
278
- "100 orders."
 
 
 
 
 
 
 
 
 
279
  msgstr ""
 
280
 
281
- #: includes/class-wc-advanced-shipment-welcome.php:343
282
- msgid "Data saved successfully."
283
- msgstr "Daten erfolgreich gespeichert."
 
 
 
 
 
284
 
285
- #: includes/class-wc-advanced-shipment-welcome.php:344
286
- msgid "Really delete this entry? This will not be undo."
287
- msgstr "Diesen Eintrag wirklich löschen? Dies wird nicht rückgängig gemacht."
 
288
 
289
- #: includes/class-wc-advanced-shipment-welcome.php:345
290
- msgid "You can upload only csv file."
291
- msgstr "Sie können nur eine CSV-Datei hochladen."
 
292
 
293
- #: includes/class-wc-advanced-shipment-welcome.php:346
294
- msgid "This browser does not support HTML5."
295
- msgstr "Dieser Browser unterstützt kein HTML5."
 
296
 
297
- #: includes/class-wc-advanced-shipment-welcome.php:347
298
- msgid "Please upload a valid CSV file."
299
- msgstr "Laden Sie eine gültige CSV-Datei hoch."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
300
 
301
  #: includes/customizer/class-wcast-customizer.php:40
302
  msgid "Shipment Status Emails"
@@ -315,55 +787,17 @@ msgstr ""
315
 
316
  #: includes/customizer/class-wcast-customizer.php:68
317
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:143
318
- msgid "Partial Shipped status email"
319
  msgstr ""
 
320
 
321
  #: includes/customizer/class-wcast-customizer.php:76
322
- msgid "Pre Transit"
323
- msgstr ""
324
- "Pre Transit\n"
325
-
326
- #: includes/customizer/class-wcast-customizer.php:84
327
- #: includes/customizer/class-wc-intransit-email-customizer.php:127
328
- #: includes/views/admin_options_trackship_integration.php:161
329
- msgid "In Transit"
330
  msgstr ""
331
- "Im Transit\n"
332
-
333
- #: includes/customizer/class-wcast-customizer.php:92
334
- #: includes/customizer/class-wc-returntosender-email-customizer.php:124
335
- #: includes/views/admin_options_trackship_integration.php:175
336
- msgid "Return To Sender"
337
- msgstr ""
338
- "Zurück an den Absender\n"
339
 
340
- #: includes/customizer/class-wcast-customizer.php:99
341
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
342
- #: includes/views/admin_options_trackship_integration.php:189
343
- msgid "Available For Pickup"
344
- msgstr ""
345
- "Zur Abholung bereit\n"
346
-
347
- #: includes/customizer/class-wcast-customizer.php:106
348
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
349
- #: includes/views/admin_options_trackship_integration.php:202
350
- msgid "Out For Delivery"
351
- msgstr ""
352
- "Raus zur Lieferung\n"
353
-
354
- #: includes/customizer/class-wcast-customizer.php:114
355
- #: includes/customizer/class-wc-delivered-email-customizer.php:125
356
- #: includes/views/admin_options_trackship_integration.php:216
357
- msgid "Delivered"
358
- msgstr "Geliefert"
359
-
360
- #: includes/customizer/class-wcast-customizer.php:122
361
- #: includes/customizer/class-wc-failure-email-customizer.php:124
362
- #: includes/views/admin_options_trackship_integration.php:231
363
- msgid "Failed Attempt"
364
- msgstr "Misslungener Versuch"
365
-
366
- #: includes/customizer/class-wcast-customizer.php:390
367
  msgid "Select order to preview"
368
  msgstr "Wählen Sie die Bestellung aus, um eine Vorschau anzuzeigen"
369
 
@@ -391,6 +825,7 @@ msgstr "Verfügbar für Abholung Versandstatus E-Mail"
391
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
392
  #: includes/customizer/class-wc-returntosender-email-customizer.php:157
393
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:144
 
394
  msgid "This section lets you customize the Email Content."
395
  msgstr "In diesem Abschnitt können Sie den E-Mail-Inhalt anpassen."
396
 
@@ -405,8 +840,9 @@ msgstr "Versandstatus-E-Mail für Abholung aktivieren"
405
  #: includes/customizer/class-wc-intransit-email-customizer.php:191
406
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
407
  #: includes/customizer/class-wc-returntosender-email-customizer.php:187
408
- #: includes/customizer/class-wc-tracking-info-customizer.php:178
409
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:177
 
410
  msgid "Preview order"
411
  msgstr "Vorschau der Bestellung"
412
 
@@ -420,42 +856,41 @@ msgstr "Vorschau der Bestellung"
420
  msgid "E.g. {customer.email}, admin@example.org"
421
  msgstr "Z.B. {customer.email}, admin@example.org"
422
 
 
423
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
424
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
 
425
  #: includes/customizer/class-wc-delivered-email-customizer.php:232
426
  #: includes/customizer/class-wc-delivered-email-customizer.php:254
 
 
 
 
 
427
  #: includes/customizer/class-wc-failure-email-customizer.php:231
428
  #: includes/customizer/class-wc-failure-email-customizer.php:253
 
429
  #: includes/customizer/class-wc-intransit-email-customizer.php:235
430
  #: includes/customizer/class-wc-intransit-email-customizer.php:257
 
431
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
432
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
 
433
  #: includes/customizer/class-wc-returntosender-email-customizer.php:231
434
  #: includes/customizer/class-wc-returntosender-email-customizer.php:253
435
- msgid "Available placeholders: {site_title}, {order_number}"
436
- msgstr "Verfügbare Platzhalter: {site_title}, {order_number}"
437
-
438
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:237
439
- #: includes/customizer/class-wc-delivered-email-customizer.php:238
440
- #: includes/customizer/class-wc-email-customizer.php:249
441
- #: includes/customizer/class-wc-failure-email-customizer.php:237
442
- #: includes/customizer/class-wc-intransit-email-customizer.php:241
443
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:239
444
- #: includes/customizer/class-wc-returntosender-email-customizer.php:237
445
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:206
446
- msgid "Please enter email subject here"
447
- msgstr "Bitte geben Sie hier den E-Mail-Betreff ein"
448
-
449
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:259
450
- #: includes/customizer/class-wc-delivered-email-customizer.php:260
451
- #: includes/customizer/class-wc-email-customizer.php:272
452
- #: includes/customizer/class-wc-failure-email-customizer.php:259
453
- #: includes/customizer/class-wc-intransit-email-customizer.php:263
454
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:261
455
- #: includes/customizer/class-wc-returntosender-email-customizer.php:259
456
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:229
457
- msgid "Please enter email heading here"
458
- msgstr "Bitte geben Sie hier die E-Mail-Überschrift ein"
459
 
460
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
461
  #: includes/customizer/class-wc-delivered-email-customizer.php:275
@@ -498,22 +933,24 @@ msgstr ""
498
 
499
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
500
  #: includes/customizer/class-wc-delivered-email-customizer.php:340
501
- #: includes/customizer/class-wc-email-customizer.php:392
502
  #: includes/customizer/class-wc-failure-email-customizer.php:339
503
- #: includes/customizer/class-wc-intransit-email-customizer.php:363
504
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
505
  #: includes/customizer/class-wc-returntosender-email-customizer.php:339
506
  msgid "Google Analytics link tracking"
507
  msgstr ""
 
508
 
509
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
510
  #: includes/customizer/class-wc-delivered-email-customizer.php:341
511
  #: includes/customizer/class-wc-failure-email-customizer.php:340
512
- #: includes/customizer/class-wc-intransit-email-customizer.php:364
513
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
514
  #: includes/customizer/class-wc-returntosender-email-customizer.php:340
515
  msgid "This will be appended to URL in the email content"
516
  msgstr ""
 
517
 
518
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
519
  #: includes/customizer/class-wc-delivered-email-customizer.php:362
@@ -523,36 +960,33 @@ msgstr ""
523
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
524
  #: includes/customizer/class-wc-returntosender-email-customizer.php:361
525
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:245
 
526
  msgid "Email content"
527
  msgstr "E-Mail-Inhalt"
528
 
529
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:380
530
- #: includes/customizer/class-wc-delivered-email-customizer.php:382
531
- #: includes/customizer/class-wc-email-customizer.php:413
532
- #: includes/customizer/class-wc-failure-email-customizer.php:381
533
- #: includes/customizer/class-wc-intransit-email-customizer.php:385
534
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:383
535
- #: includes/customizer/class-wc-returntosender-email-customizer.php:381
536
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:264
537
- msgid "Available placeholders"
538
- msgstr ""
539
- "Verfügbare Platzhalter\n"
540
-
541
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:427
542
- #: includes/customizer/class-wc-delivered-email-customizer.php:429
543
- #: includes/customizer/class-wc-email-customizer.php:446
544
- #: includes/customizer/class-wc-failure-email-customizer.php:428
545
- #: includes/customizer/class-wc-intransit-email-customizer.php:431
546
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:429
547
- #: includes/customizer/class-wc-returntosender-email-customizer.php:427
548
- #: includes/customizer/class-wc-tracking-info-customizer.php:791
549
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:297
550
  msgid "Please select order to preview."
551
  msgstr ""
 
552
 
553
  #: includes/customizer/class-wc-delivered-email-customizer.php:124
554
  msgid "Your order #{order_number} has been delivered"
555
  msgstr ""
 
556
 
557
  #: includes/customizer/class-wc-delivered-email-customizer.php:126
558
  #: includes/customizer/class-wc-email-customizer.php:132
@@ -583,51 +1017,45 @@ msgstr ""
583
  "Aktivieren Sie die Status-E-Mail für die gelieferte Bestellung\n"
584
 
585
  #: includes/customizer/class-wc-email-customizer.php:201
586
- #: includes/customizer/class-wc-tracking-info-customizer.php:182
587
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:181
 
588
  msgid "Please select a order..."
589
  msgstr ""
590
  "Bitte wählen Sie eine Bestellung aus ...\n"
591
 
592
- #: includes/customizer/class-wc-email-customizer.php:243
593
- #: includes/customizer/class-wc-email-customizer.php:266
594
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:200
595
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:223
596
- msgid "Available variables: {site_title}, {order_number}"
597
- msgstr ""
598
-
599
- #: includes/customizer/class-wc-email-customizer.php:289
600
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:246
601
- msgid ""
602
- "available variables: {site_title}, {customer_email}, {customer_first_name}, "
603
- "{customer_last_name}, {customer_username}, {order_number}"
604
- msgstr ""
605
-
606
- #: includes/customizer/class-wc-email-customizer.php:308
607
  msgid "Display tracking details"
608
  msgstr ""
 
609
 
610
- #: includes/customizer/class-wc-email-customizer.php:324
611
  msgid "Display order details"
612
  msgstr ""
 
613
 
614
- #: includes/customizer/class-wc-email-customizer.php:341
615
  msgid "Display Shipping Address"
616
  msgstr ""
 
617
 
618
- #: includes/customizer/class-wc-email-customizer.php:358
619
  msgid "Display Billing Address"
620
  msgstr ""
 
621
 
622
- #: includes/customizer/class-wc-email-customizer.php:375
623
  msgid "Enable Google Analytics tracking"
624
  msgstr ""
 
625
 
626
- #: includes/customizer/class-wc-email-customizer.php:393
627
  msgid ""
628
  "This will be appended to URL in the email content – e.g. "
629
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
630
  msgstr ""
 
 
631
 
632
  #: includes/customizer/class-wc-failure-email-customizer.php:123
633
  msgid "Your order #{order_number} is Failed Attempt"
@@ -715,202 +1143,297 @@ msgstr ""
715
  "Aktivieren Sie die Sendungsstatus-E-Mail für die Rücksendung an den Absender"
716
 
717
  #: includes/customizer/class-wc-tracking-info-customizer.php:144
718
- #: includes/customizer/class-wc-tracking-info-customizer.php:364
719
- #: templates/emails/tracking-info.php:132
720
- #: templates/myaccount/tracking-info.php:91
721
  msgid "Provider"
722
  msgstr "Anbieter"
723
 
724
  #: includes/customizer/class-wc-tracking-info-customizer.php:145
725
- #: includes/customizer/class-wc-tracking-info-customizer.php:386
726
- #: templates/emails/tracking-info.php:156
727
- #: templates/myaccount/tracking-info.php:113
728
  msgid "Tracking Number"
729
  msgstr "Auftragsnummer, Frachtnummer, Sendungscode"
730
 
731
  #: includes/customizer/class-wc-tracking-info-customizer.php:146
732
- #: includes/customizer/class-wc-tracking-info-customizer.php:407
733
  msgid "Shipped Date"
734
  msgstr "Versanddatum"
735
 
736
- #: includes/customizer/class-wc-tracking-info-customizer.php:179
737
- msgid ""
738
- "select from last 20 orders one order that you added tracking info in order "
739
- "to preview and design the tracking info table."
740
  msgstr ""
741
- "Wählen Sie aus den letzten 20 Bestellungen eine Bestellung aus, die Sie mit "
742
- "Tracking-Informationen versehen haben, um die Tracking-Informationstabelle "
743
- "in der Vorschau anzuzeigen und zu gestalten.\n"
744
 
745
- #: includes/customizer/class-wc-tracking-info-customizer.php:198
746
- #: includes/views/admin_options_settings.php:15
747
- #: includes/views/admin_options_trackship_integration.php:82
748
- msgid "General Settings"
749
- msgstr "Allgemeine Einstellungen"
750
-
751
- #: includes/customizer/class-wc-tracking-info-customizer.php:213
752
  msgid "Tracking Display Position"
753
  msgstr "Verfolgung der Anzeigeposition"
754
 
755
- #: includes/customizer/class-wc-tracking-info-customizer.php:217
756
  msgid "Before Order Details"
757
  msgstr "Vor der Bestellung Details"
758
 
759
- #: includes/customizer/class-wc-tracking-info-customizer.php:218
760
  msgid "After Order Details"
761
  msgstr "Nach Auftragsdetails"
762
 
763
- #: includes/customizer/class-wc-tracking-info-customizer.php:233
764
- msgid "Main Header text"
765
- msgstr "Haupt-Header-Text"
 
766
 
767
- #: includes/customizer/class-wc-tracking-info-customizer.php:240
768
  msgid "Tracking Information"
769
  msgstr "Tracking-Informationen"
770
 
771
- #: includes/customizer/class-wc-tracking-info-customizer.php:255
772
  msgid "Additional text after header"
773
  msgstr "Zusätzlicher Text nach Kopfzeile"
774
 
775
- #: includes/customizer/class-wc-tracking-info-customizer.php:276
776
- msgid "Table Content"
 
 
 
 
 
 
777
  msgstr ""
 
 
 
 
 
 
778
 
779
  #: includes/customizer/class-wc-tracking-info-customizer.php:291
780
- msgid "Display Shipment Provider image"
781
- msgstr "Bild des Versandanbieters anzeigen"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
782
 
783
- #: includes/customizer/class-wc-tracking-info-customizer.php:308
784
- msgid "Hide date"
785
- msgstr "Datum ausblenden"
 
786
 
787
- #: includes/customizer/class-wc-tracking-info-customizer.php:325
788
- msgid "Table Header"
789
  msgstr ""
 
790
 
791
- #: includes/customizer/class-wc-tracking-info-customizer.php:340
792
- msgid "Hide Header"
793
  msgstr ""
 
794
 
795
- #: includes/customizer/class-wc-tracking-info-customizer.php:357
796
- msgid "Provider Header Text"
797
- msgstr "Anbieterkopfzeilentext"
 
798
 
799
- #: includes/customizer/class-wc-tracking-info-customizer.php:379
800
- msgid "Tracking Number Header Text"
801
- msgstr "Tracking-Nummer-Header-Text"
 
802
 
803
- #: includes/customizer/class-wc-tracking-info-customizer.php:400
804
- msgid "Shipped Date Header Text"
805
- msgstr "Versanddatum Header Text"
 
806
 
807
- #: includes/customizer/class-wc-tracking-info-customizer.php:421
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
808
  msgid "Track Label"
809
  msgstr "Track Label"
810
 
811
- #: includes/customizer/class-wc-tracking-info-customizer.php:437
812
- msgid "Track Header Text"
813
- msgstr "Kopfzeilentext verfolgen"
 
814
 
815
- #: includes/customizer/class-wc-tracking-info-customizer.php:459
816
- msgid "Table header font size"
817
- msgstr "Schriftgröße der Tabellenüberschrift"
 
818
 
819
- #: includes/customizer/class-wc-tracking-info-customizer.php:476
820
- msgid "Table header font color"
821
- msgstr "Schriftfarbe der Tabellenüberschrift"
 
822
 
823
- #: includes/customizer/class-wc-tracking-info-customizer.php:492
824
- msgid "Table Design"
825
  msgstr ""
826
- "Tisch Design\n"
827
 
828
- #: includes/customizer/class-wc-tracking-info-customizer.php:507
829
  msgid "Padding"
830
  msgstr "Polsterung"
831
 
832
- #: includes/customizer/class-wc-tracking-info-customizer.php:527
 
833
  msgid "Background color"
834
  msgstr ""
835
  "Hintergrundfarbe\n"
836
 
837
- #: includes/customizer/class-wc-tracking-info-customizer.php:555
 
838
  msgid "Border color"
839
  msgstr "Randfarbe"
840
 
841
- #: includes/customizer/class-wc-tracking-info-customizer.php:571
842
  msgid "Border size"
843
  msgstr ""
844
  "Rahmengrösse\n"
845
 
846
- #: includes/customizer/class-wc-tracking-info-customizer.php:595
847
- msgid "Table text align"
848
- msgstr "Tabellentext ausrichten"
 
849
 
850
- #: includes/customizer/class-wc-tracking-info-customizer.php:618
851
- msgid "Table content font size"
852
- msgstr "Schriftgröße des Tabelleninhalts"
 
853
 
854
- #: includes/customizer/class-wc-tracking-info-customizer.php:635
855
- msgid "Table content font color"
856
- msgstr "Schriftfarbe des Tabelleninhalts"
 
857
 
858
- #: includes/customizer/class-wc-tracking-info-customizer.php:651
859
  msgid "Content line height"
860
  msgstr "Höhe der Inhaltszeile"
861
 
862
- #: includes/customizer/class-wc-tracking-info-customizer.php:672
863
  msgid "Content font weight"
864
  msgstr ""
865
  "Schriftgröße des Inhalts\n"
866
 
867
- #: includes/customizer/class-wc-tracking-info-customizer.php:694
868
- msgid "Track Button Design"
869
  msgstr ""
 
870
 
871
- #: includes/customizer/class-wc-tracking-info-customizer.php:708
872
- msgid "Track Link Font Color"
873
- msgstr "Track Link-Schriftfarbe"
 
874
 
875
- #: includes/customizer/class-wc-tracking-info-customizer.php:724
876
- msgid "Track Link Background Color"
877
- msgstr "Track Link Hintergrundfarbe"
878
 
879
- #: includes/customizer/class-wc-tracking-info-customizer.php:739
880
- msgid "Track link Border"
881
- msgstr "Track Link Grenze"
 
 
 
 
 
882
 
883
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:116
884
- msgid "Your {site_title} order is now partial shipped"
885
  msgstr ""
 
886
 
887
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:118
888
  msgid ""
889
  "Hi there. we thought you'd like to know that your recent order from "
890
- "{site_title} has been Partial Shipped."
891
  msgstr ""
 
 
892
 
893
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:159
894
- msgid "Enable Partial Shipped order status email"
 
 
 
 
 
 
 
 
 
 
 
 
895
  msgstr ""
 
 
 
 
 
 
 
 
896
 
897
  #: includes/emails/class-shipment-delivered-email.php:32
898
  msgid "Delivered order"
899
  msgstr ""
 
900
 
901
  #: includes/emails/class-shipment-delivered-email.php:33
902
  msgid ""
903
  "Order delivered emails are sent to customers when their orders are marked "
904
  "delivered and usually indicate that their orders have been shipped."
905
  msgstr ""
 
 
 
906
 
907
- #: includes/emails/class-shipment-delivered-email.php:279
908
  msgid "Click Here"
909
  msgstr ""
 
910
 
911
- #: includes/emails/class-shipment-delivered-email.php:280
912
  msgid "Edit in customizer"
913
  msgstr ""
 
914
 
915
  #: includes/views/admin_options_bulk_upload.php:10
916
  msgid "Upload CSV"
@@ -925,8 +1448,8 @@ msgstr ""
925
  "Tracking-Informationen hinzugefügt)"
926
 
927
  #: includes/views/admin_options_bulk_upload.php:29
928
- #: includes/views/admin_options_shipping_provider.php:119
929
- #: includes/views/admin_options_shipping_provider.php:153
930
  msgid "Upload"
931
  msgstr "Hochladen"
932
 
@@ -938,155 +1461,274 @@ msgstr "Einstellungen gespeichert."
938
  msgid "Upload Progress - "
939
  msgstr "Upload-Fortschritt -"
940
 
941
- #: includes/views/admin_options_bulk_upload.php:45
942
  msgid "Sample CSV"
943
  msgstr ""
 
944
 
945
- #: includes/views/admin_options_bulk_upload.php:50
946
  msgid "You can download an example of the csv file:"
947
  msgstr "Sie können ein Beispiel für die CSV-Datei herunterladen:"
948
 
949
- #: includes/views/admin_options_bulk_upload.php:53
950
  msgid "Download sample csv file"
951
  msgstr "Laden Sie die Beispiel-CSV-Datei herunter"
952
 
953
- #: includes/views/admin_options_bulk_upload.php:58
954
  msgid ""
955
  "For detailed instructions on how to upload tracking info in bulk, see our"
956
  msgstr ""
957
  "For detailed instructions on how to upload tracking info in bulk, see our"
958
 
 
 
 
 
 
959
  #: includes/views/admin_options_settings.php:26
960
- #: includes/views/admin_options_settings.php:74
961
- #: includes/views/admin_options_settings.php:100
962
- #: includes/views/admin_options_trackship_integration.php:93
963
- #: includes/views/admin_options_trackship_integration.php:124
964
  msgid "Save Changes"
965
  msgstr ""
 
966
 
967
  #: includes/views/admin_options_settings.php:40
968
  msgid "Tracking Info Display"
969
  msgstr ""
 
970
 
971
  #: includes/views/admin_options_settings.php:49
972
  msgid "You can customize the tracking info display on emails and my account"
973
  msgstr ""
 
 
974
 
975
  #: includes/views/admin_options_settings.php:52
976
  msgid "Launch Customizer"
977
  msgstr ""
 
978
 
979
  #: includes/views/admin_options_settings.php:62
980
- msgid "Delivered Order Status"
981
- msgstr "Status der gelieferten Bestellung"
982
-
983
- #: includes/views/admin_options_settings.php:88
984
- msgid "Partial Shipped Order Status"
985
  msgstr ""
 
986
 
987
  #: includes/views/admin_options_settings.php:94
988
- #, php-format
989
- msgid ""
990
- "<strong>PLEASE NOTE</strong> - If you use the custom order status \"Partial "
991
- "Shipped\", when you deactivate the plugin, you must register this order "
992
- "status in function.php in order to see these orders in the orders admin. You "
993
- "can find the <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
994
- "php here or you can manually change all your \"partial-shipped\" order to "
995
- "\"completed\" before deactivating the plugin."
 
 
 
 
 
 
 
 
 
996
  msgstr ""
 
997
 
998
  #: includes/views/admin_options_shipping_provider.php:12
999
- #: includes/views/admin_options_shipping_provider.php:23
 
 
1000
  msgid "Active"
1001
- msgstr ""
1002
 
1003
  #: includes/views/admin_options_shipping_provider.php:13
1004
- #: includes/views/admin_options_shipping_provider.php:23
1005
  msgid "Inactive"
1006
- msgstr ""
1007
 
1008
  #: includes/views/admin_options_shipping_provider.php:14
1009
  msgid "Custom"
 
 
 
 
1010
  msgstr ""
 
1011
 
1012
- #: includes/views/admin_options_shipping_provider.php:21
1013
- msgid "Add Custom Provider"
1014
  msgstr ""
 
1015
 
1016
- #: includes/views/admin_options_shipping_provider.php:22
1017
- #: includes/views/admin_options_shipping_provider.php:170
1018
  #: includes/views/admin_options_shipping_provider.php:177
 
1019
  msgid "Sync Shipping Providers"
1020
  msgstr ""
 
1021
 
1022
- #: includes/views/admin_options_shipping_provider.php:23
1023
- msgid "Reset"
1024
- msgstr ""
1025
-
1026
- #: includes/views/admin_options_shipping_provider.php:27
1027
- msgid "Search by provider / country"
1028
- msgstr ""
1029
-
1030
- #: includes/views/admin_options_shipping_provider.php:95
1031
- #, php-format
1032
- msgid "You don't have any %s shipping providers."
1033
- msgstr "Sie haben keine% s Versandanbieter."
1034
-
1035
- #: includes/views/admin_options_shipping_provider.php:101
1036
  msgid "Add Custom Shipping Provider"
1037
  msgstr "Fügen Sie einen benutzerdefinierten Versandanbieter hinzu"
1038
 
1039
- #: includes/views/admin_options_shipping_provider.php:108
1040
- #: includes/views/admin_options_shipping_provider.php:142
1041
  msgid "Shipping Country"
1042
  msgstr ""
 
1043
 
1044
- #: includes/views/admin_options_shipping_provider.php:109
1045
- #: includes/views/admin_options_shipping_provider.php:143
1046
  msgid "Global"
 
 
 
 
 
1047
  msgstr ""
 
1048
 
1049
- #: includes/views/admin_options_shipping_provider.php:135
1050
  msgid "Edit Custom Shipping Provider"
1051
  msgstr "Benutzerdefinierten Versandanbieter bearbeiten"
1052
 
1053
- #: includes/views/admin_options_shipping_provider.php:171
1054
  msgid ""
1055
  "Syncing the shipping providers list add or updates the pre-set shipping "
1056
  "providers and will not effect custom shipping providers."
1057
  msgstr ""
 
 
 
1058
 
1059
- #: includes/views/admin_options_shipping_provider.php:173
1060
  msgid "Providers Added"
1061
  msgstr "Anbieter hinzugefügt"
1062
 
1063
- #: includes/views/admin_options_shipping_provider.php:174
1064
  msgid "Providers Updated"
1065
  msgstr "Anbieter aktualisiert"
1066
 
1067
- #: includes/views/admin_options_shipping_provider.php:175
1068
  msgid "Providers Deleted"
1069
  msgstr "Anbieter gelöscht"
1070
 
1071
- #: includes/views/admin_options_trackship_integration.php:107
 
1072
  msgid "Tracking Page"
1073
  msgstr "Tracking-Seite"
1074
 
1075
- #: includes/views/admin_options_trackship_integration.php:117
1076
- msgid "Click to preview the tracking page"
1077
- msgstr "Klicken Sie hier, um eine Vorschau der Tracking-Seite anzuzeigen"
 
1078
 
1079
- #: includes/views/admin_options_trackship_integration.php:118
1080
- msgid "PLEASE NOTE - make sure to save your settings before preview."
 
 
 
 
 
 
 
 
 
 
1081
  msgstr ""
1082
- "BITTE BEACHTEN SIE - Stellen Sie sicher, dass Sie Ihre Einstellungen vor der "
1083
- "Vorschau speichern."
1084
 
1085
- #: includes/views/admin_options_trackship_integration.php:137
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1086
  msgid "Shipment Status Notifications "
1087
  msgstr "Benachrichtigungen zum Sendungsstatus"
1088
 
1089
- #: includes/views/admin_options_trackship_integration.php:163
1090
  msgid ""
1091
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1092
  "the way."
@@ -1094,23 +1736,23 @@ msgstr ""
1094
  "Der Spediteur hat die Sendung vom Versender angenommen oder abgeholt. Die "
1095
  "Sendung ist unterwegs."
1096
 
1097
- #: includes/views/admin_options_trackship_integration.php:177
1098
  msgid "Shipment is returned to sender"
1099
  msgstr "Die Sendung wird an den Absender zurückgeschickt"
1100
 
1101
- #: includes/views/admin_options_trackship_integration.php:191
1102
  msgid "The shipment is ready to pickup."
1103
  msgstr "Die Sendung ist zur Abholung bereit."
1104
 
1105
- #: includes/views/admin_options_trackship_integration.php:204
1106
  msgid "Carrier is about to deliver the shipment"
1107
  msgstr "Der Spediteur ist im Begriff, die Sendung zu liefern"
1108
 
1109
- #: includes/views/admin_options_trackship_integration.php:218
1110
  msgid "The shipment was delivered successfully"
1111
  msgstr "Die Sendung wurde erfolgreich zugestellt"
1112
 
1113
- #: includes/views/admin_options_trackship_integration.php:219
1114
  msgid ""
1115
  "You already have delivered email enabled, to enable this email you'll need "
1116
  "to disable the order status delivered in settings."
@@ -1119,7 +1761,7 @@ msgstr ""
1119
  "aktivieren, müssen Sie den in den Einstellungen angegebenen Bestellstatus "
1120
  "deaktivieren."
1121
 
1122
- #: includes/views/admin_options_trackship_integration.php:233
1123
  msgid ""
1124
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1125
  "will try to deliver the package again."
@@ -1128,15 +1770,10 @@ msgstr ""
1128
  "Normalerweise hinterlässt er eine Nachricht und versucht, das Paket erneut "
1129
  "zuzustellen."
1130
 
1131
- #: includes/views/admin_options_tools.php:14
1132
- msgid "Get Shipment Status"
1133
- msgstr ""
1134
-
1135
- #: includes/views/admin_options_tools.php:23
1136
- msgid ""
1137
- "You can send all your orders from the last 30 days to get shipment status "
1138
- "from TrackShip:"
1139
- msgstr ""
1140
 
1141
  #. %s: Order ID.
1142
  #: templates/emails/wcast-email-order-details.php:47
@@ -1145,9 +1782,25 @@ msgid "Order number: %s"
1145
  msgstr ""
1146
  "Bestellnummer:% s\n"
1147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1148
  #. Name of the plugin
1149
  msgid "Advanced Shipment Tracking for WooCommerce"
1150
  msgstr ""
 
1151
 
1152
  #. Description of the plugin
1153
  msgid ""
@@ -1156,7 +1809,8 @@ msgid ""
1156
  "will appear in customers accounts (in the order panel) and in WooCommerce "
1157
  "order complete email."
1158
  msgstr ""
1159
-
1160
- #. Author of the plugin
1161
- msgid "zorem"
1162
- msgstr ""
 
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-01-09 12:07+0000\n"
6
+ "PO-Revision-Date: 2020-01-09 12:08+0000\n"
7
+ "Last-Translator: John <gaurav1092@zorem.com>\n"
8
  "Language-Team: German\n"
9
  "Language: de_DE\n"
10
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
+ "X-Loco-Version: 2.3.1; wp-5.3.2"
16
 
17
+ #: woocommerce-advanced-shipment-tracking.php:117
18
  #, php-format
19
  msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
23
  "Bitte installieren und aktivieren Sie% sWooCommerce% s für WooCommerce "
24
  "Advanced Shipment Tracking!\n"
25
 
26
+ #: woocommerce-advanced-shipment-tracking.php:254
27
  #, php-format
28
  msgid "Your order was shipped with %s and your tracking code is: %s"
29
  msgstr ""
30
+ "Ihre Bestellung wurde mit% s verschickt und Ihr Tracking-Code lautet:% s"
31
 
32
+ #: woocommerce-advanced-shipment-tracking.php:465
33
+ #: includes/views/admin_options_settings.php:190
34
  #, php-format
35
  msgid ""
36
+ "<strong>Note:</strong> - If you use the custom order status, when you "
37
+ "deactivate the plugin, you must register the order status, otherwise these "
38
+ "orders will not display on your orders admin. You can find more information "
39
+ "and the code <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
40
+ "php here."
41
+ msgstr ""
42
+ "Hinweis: - Wenn Sie den benutzerdefinierten Bestellstatus verwenden und das "
43
+ "Plug-in deaktivieren, müssen Sie den Bestellstatus registrieren. Andernfalls "
44
+ "werden diese Bestellungen nicht in Ihrem Bestelladministrator angezeigt. "
45
+ "Weitere Informationen und das Code-Snippet zur Verwendung in functions.php "
46
+ "finden Sie hier.\n"
47
+
48
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:309
49
+ msgid "Shipment status"
50
+ msgstr "Versandstatus"
51
+
52
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:427
53
+ #: includes/class-wc-advanced-shipment-welcome.php:310
54
+ msgid ""
55
+ "Get Shipment Status is limited to 100 orders at a time, please select up to "
56
+ "100 orders."
57
  msgstr ""
58
+ "Der Status \"Sendung abrufen\" ist jeweils auf 100 Bestellungen begrenzt. "
59
+ "Wählen Sie bis zu 100 Bestellungen aus.\n"
60
 
61
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:462
62
+ #: includes/class-wc-advanced-shipment-welcome.php:343
63
+ msgid "Data saved successfully."
64
+ msgstr "Daten erfolgreich gespeichert."
65
+
66
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:463
67
+ #: includes/class-wc-advanced-shipment-welcome.php:344
68
+ msgid "Really delete this entry? This will not be undo."
69
+ msgstr "Diesen Eintrag wirklich löschen? Dies wird nicht rückgängig gemacht."
70
+
71
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:464
72
+ #: includes/class-wc-advanced-shipment-welcome.php:345
73
+ msgid "You can upload only csv file."
74
+ msgstr "Sie können nur eine CSV-Datei hochladen."
75
+
76
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:465
77
+ #: includes/class-wc-advanced-shipment-welcome.php:346
78
+ msgid "This browser does not support HTML5."
79
+ msgstr "Dieser Browser unterstützt kein HTML5."
80
+
81
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:466
82
+ #: includes/class-wc-advanced-shipment-welcome.php:347
83
+ msgid "Please upload a valid CSV file."
84
+ msgstr "Laden Sie eine gültige CSV-Datei hoch."
85
+
86
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:535
87
+ msgid "Shipping Providers"
88
+ msgstr ""
89
+ "Versandanbieter\n"
90
+
91
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:537
92
+ msgid "Bulk Upload"
93
+ msgstr ""
94
+ "Bulk-Upload\n"
95
+
96
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:543
97
+ msgid "Add-ons"
98
+ msgstr ""
99
+ "Add-Ons\n"
100
+
101
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:546
102
+ #: includes/class-wc-advanced-shipment-welcome.php:222
103
+ #: includes/views/admin_options_bulk_upload.php:63
104
+ #: includes/views/admin_trackship_dashboard.php:51
105
+ msgid "Documentation"
106
+ msgstr "Dokumentation"
107
+
108
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:547
109
+ msgid "How to Video"
110
+ msgstr ""
111
+ "Video erstellen\n"
112
+
113
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:695
114
+ msgid "Custom Statuses"
115
+ msgstr ""
116
+ "Benutzerdefinierte Status\n"
117
+
118
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:742
119
+ #: includes/class-wc-advanced-shipment-welcome.php:188
120
+ #: includes/views/zorem_admin_sidebar.php:29
121
+ #: includes/views/admin_options_addons.php:46
122
+ #: includes/views/admin_trackship_dashboard.php:17
123
+ msgid "Connected"
124
+ msgstr ""
125
+ "In Verbindung gebracht\n"
126
+
127
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:874
128
+ #, php-format
129
+ msgid "%s %s orders with tracking info"
130
+ msgstr ""
131
+ "% s% s Bestellungen mit Tracking-Informationen\n"
132
+
133
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:875
134
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:884
135
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:893
136
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1838
137
+ #: includes/views/admin_options_tools.php:14
138
+ msgid "Get Shipment Status"
139
+ msgstr ""
140
+ "Sendungsstatus abrufen\n"
141
+
142
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:883
143
+ #, php-format
144
+ msgid "%s %s orders with “TrackShip balance is 0”"
145
+ msgstr ""
146
+ "% s% s Bestellungen mit \"TrackShip-Guthaben ist 0\"\n"
147
+
148
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:892
149
+ #, php-format
150
+ msgid "%s %s orders with “Please do connection”"
151
+ msgstr ""
152
+ "% s% s Bestellungen mit \"Bitte Verbindung herstellen\"\n"
153
+
154
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:930
155
+ msgid "Enable/Disable"
156
+ msgstr ""
157
+ "Aktivieren/deaktivieren\n"
158
+
159
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:936
160
+ msgid "Set order status Delivered when order is delivered"
161
+ msgstr ""
162
+ "Setzt den Bestellstatus Ausgeliefert, wenn die Bestellung ausgeliefert wird\n"
163
+
164
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:968
165
+ msgid ""
166
+ "You must add the shortcode [wcast-track-order] to the selected page in order "
167
+ "for the tracking page to work."
168
+ msgstr ""
169
+ "Sie müssen der ausgewählten Seite den Shortcode [wcast-track-order] "
170
+ "hinzufügen, damit die Tracking-Seite funktioniert."
171
+
172
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:976
173
+ #: includes/views/admin_tracking_page_settings.php:24
174
+ msgid "Select Tracking Page"
175
+ msgstr ""
176
+ "Wählen Sie Tracking-Seite\n"
177
+
178
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:984
179
+ msgid "Use the tracking page in the customer email/my account tracking link"
180
+ msgstr ""
181
+ "Verwenden Sie die Tracking-Seite in der Kunden-E-Mail / meinem Konto-"
182
+ "Tracking-Link\n"
183
+
184
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:990
185
+ #: includes/views/admin_tracking_page_settings.php:49
186
+ msgid "Tracking Page Layout"
187
+ msgstr ""
188
+ "Seitenlayout verfolgen\n"
189
+
190
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1001
191
+ msgid "Select primary color for tracking page"
192
+ msgstr ""
193
+ "Wählen Sie die Primärfarbe für die Verfolgungsseite aus\n"
194
+
195
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1007
196
+ msgid "Select content border color for tracking page"
197
+ msgstr ""
198
+ "Wählen Sie die Farbe des Inhaltsrahmens für die Verfolgungsseite aus\n"
199
+
200
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1013
201
+ #: includes/views/admin_tracking_page_settings.php:83
202
+ msgid "Hide Shipping Provider Image"
203
+ msgstr ""
204
+ "Bild des Versandanbieters ausblenden\n"
205
+
206
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1019
207
+ msgid "Hide tracking events details"
208
+ msgstr ""
209
+ "Details zu Verfolgungsereignissen ausblenden\n"
210
+
211
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1025
212
+ #: includes/views/admin_tracking_page_settings.php:93
213
+ msgid "Remove TrackShip branding"
214
+ msgstr ""
215
+ "Entfernen Sie das TrackShip-Branding\n"
216
+
217
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1042
218
+ msgid "License Key"
219
+ msgstr ""
220
+ "Lizenzschlüssel\n"
221
+
222
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1044
223
+ msgid "a Valid license is required to receive updates and support"
224
+ msgstr ""
225
+ "Für den Erhalt von Updates und Support ist eine gültige Lizenz erforderlich"
226
+
227
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1193
228
+ msgid "\">click here</a> to activate it."
229
+ msgstr ""
230
+ "\"> klicke hier um es zu aktivieren.\n"
231
+
232
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1226
233
+ #: includes/class-wc-advanced-shipment-tracking.php:185
234
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:303
235
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:439
236
+ msgid "Shipped"
237
+ msgstr "Versendet"
238
+
239
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1227
240
+ msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
241
+ msgstr ""
242
+ "Standard \"Als versandt markieren\"\n"
243
+
244
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1228
245
+ msgid ""
246
+ "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
247
+ "will be selected by default when adding tracking info to orders."
248
+ msgstr ""
249
+ "Dies bedeutet, dass beim Hinzufügen von Tracking-Informationen zu "
250
+ "Bestellungen standardmäßig die Option \"Als versandt markieren\" ausgewählt "
251
+ "wird.\n"
252
+
253
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1231
254
+ msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
255
+ msgstr ""
256
+ "Standard \"Als erledigt markieren\"\n"
257
+
258
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1232
259
+ msgid ""
260
+ "This means that the 'mark as <span class='shipped_label'>completed</span>' "
261
+ "will be selected by default when adding tracking info to orders."
262
+ msgstr ""
263
+ "Dies bedeutet, dass beim Hinzufügen von Tracking-Informationen zu Aufträgen "
264
+ "standardmäßig die Option \"Als erledigt markieren\" ausgewählt wird.\n"
265
+
266
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1298
267
+ msgid "Rename the “Completed” Order status to “Shipped”"
268
+ msgstr ""
269
+ "Benennen Sie den Auftragsstatus \"Abgeschlossen\" in \"Versandt\" um.\n"
270
+
271
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1311
272
+ msgid "On which order status email to include the shipment tracking info?"
273
+ msgstr ""
274
+ "In welcher Auftragsstatus-E-Mail werden die Sendungsverfolgungsinformationen "
275
+ "angegeben?\n"
276
+
277
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1317
278
+ msgid "Show tracking info in Invoice"
279
+ msgstr ""
280
+ "Tracking-Informationen in Rechnung anzeigen\n"
281
+
282
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1323
283
+ msgid "Show tracking info in Packing Slip"
284
+ msgstr ""
285
+ "Tracking-Informationen im Packzettel anzeigen\n"
286
+
287
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1871
288
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2392
289
+ #: includes/customizer/class-wcast-customizer.php:92
290
+ #: includes/customizer/class-wc-intransit-email-customizer.php:127
291
+ #: includes/views/admin_status_notifications.php:25
292
+ msgid "In Transit"
293
+ msgstr ""
294
+ "Im Transit\n"
295
+
296
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1874
297
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2391
298
+ #: includes/customizer/class-wcast-customizer.php:84
299
+ msgid "Pre Transit"
300
+ msgstr ""
301
+ "Pre Transit\n"
302
+
303
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1877
304
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2069
305
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2395
306
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:137
307
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:182
308
+ #: includes/customizer/class-wcast-customizer.php:122
309
+ #: includes/customizer/class-wc-delivered-email-customizer.php:125
310
+ #: includes/views/admin_options_settings.php:80
311
+ #: includes/views/admin_status_notifications.php:80
312
+ msgid "Delivered"
313
+ msgstr "Geliefert"
314
+
315
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1880
316
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2394
317
+ #: includes/customizer/class-wcast-customizer.php:114
318
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
319
+ #: includes/views/admin_status_notifications.php:66
320
+ msgid "Out For Delivery"
321
+ msgstr ""
322
+ "Raus zur Lieferung\n"
323
+
324
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1883
325
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2393
326
+ #: includes/customizer/class-wcast-customizer.php:107
327
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
328
+ #: includes/views/admin_status_notifications.php:53
329
+ msgid "Available For Pickup"
330
+ msgstr ""
331
+ "Zur Abholung bereit\n"
332
+
333
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1886
334
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2399
335
+ #: includes/customizer/class-wcast-customizer.php:100
336
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:124
337
+ #: includes/views/admin_status_notifications.php:39
338
+ msgid "Return To Sender"
339
+ msgstr ""
340
+ "Zurück an den Absender\n"
341
+
342
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1889
343
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2396
344
+ #: includes/customizer/class-wcast-customizer.php:130
345
+ #: includes/customizer/class-wc-failure-email-customizer.php:124
346
+ #: includes/views/admin_status_notifications.php:95
347
+ msgid "Failed Attempt"
348
+ msgstr "Misslungener Versuch"
349
+
350
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1892
351
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2390
352
+ msgid "Unknown"
353
+ msgstr "Unbekannt"
354
+
355
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1895
356
+ msgid "Pending TrackShip"
357
+ msgstr ""
358
+ "Ausstehendes TrackShip\n"
359
+
360
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1898
361
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2400
362
+ msgid "Invalid Tracking Number"
363
+ msgstr ""
364
+ "Ungültige Tracking-Nummer\n"
365
+
366
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1901
367
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2398
368
+ msgid "Carrier Unsupported"
369
+ msgstr ""
370
+ "Träger nicht unterstützt\n"
371
+
372
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1904
373
+ msgid "Invalid User Key"
374
+ msgstr ""
375
+ "Ungültiger Benutzerschlüssel\n"
376
+
377
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1907
378
+ msgid "Wrong Shipping Provider"
379
+ msgstr ""
380
+ "Falscher Versandanbieter\n"
381
+
382
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2023
383
+ msgid "Shipped Order"
384
+ msgstr "Versandauftrag"
385
+
386
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2047
387
+ msgid "Mark order as delivered"
388
+ msgstr ""
389
+ "Bestellung als geliefert markieren\n"
390
+
391
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2054
392
+ msgid "Add Tracking"
393
+ msgstr ""
394
+ "Tracking hinzufügen\n"
395
+
396
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2081
397
+ msgid "Change order status to"
398
+ msgstr ""
399
+ "Ändern Sie den Auftragsstatus in\n"
400
+
401
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2184
402
+ #: includes/views/admin_options_shipping_provider.php:96
403
+ #, php-format
404
+ msgid "You don't have any %s shipping providers."
405
+ msgstr "Sie haben keine% s Versandanbieter."
406
+
407
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2189
408
+ #: includes/views/admin_options_shipping_provider.php:27
409
+ msgid "Add Custom Provider"
410
+ msgstr ""
411
+ "Benutzerdefinierten Anbieter hinzufügen\n"
412
+
413
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2405
414
+ msgid "Filter by shipment status"
415
+ msgstr ""
416
+ "Filtern nach Sendungsstatus\n"
417
+
418
+ #: includes/class-wc-advanced-shipment-tracking-front.php:148
419
  msgid ""
420
  "To track your order please enter your Order ID in the box below and press "
421
  "the \"Track\" button. This was given to you on your receipt and in the "
426
  "auf Ihrer Quittung und in der Bestätigungs-E-Mail, die Sie hätten erhalten "
427
  "sollen, mitgeteilt.\n"
428
 
429
+ #: includes/class-wc-advanced-shipment-tracking-front.php:149
430
+ #: includes/class-wc-advanced-shipment-tracking-front.php:150
431
  msgid "Found in your order confirmation email."
432
  msgstr ""
433
  "Gefunden in Ihrer Auftragsbestätigungs-E-Mail.\n"
434
 
435
+ #: includes/class-wc-advanced-shipment-tracking-front.php:150
436
  msgid "Order Email"
437
  msgstr ""
438
  "E-Mail bestellen\n"
439
 
440
+ #: includes/class-wc-advanced-shipment-tracking-front.php:153
441
+ #: includes/class-wc-advanced-shipment-tracking.php:728
442
+ #: includes/class-wc-advanced-shipment-tracking.php:851
 
443
  #: includes/customizer/class-wc-tracking-info-customizer.php:147
444
+ #: includes/customizer/class-wc-tracking-info-customizer.php:578
445
+ #: templates/emails/tracking-info.php:256
446
+ #: templates/myaccount/tracking-info.php:191
447
  msgid "Track"
448
+ msgstr "Verfolgen"
449
 
450
+ #: includes/class-wc-advanced-shipment-tracking-front.php:221
451
+ #: includes/class-wc-advanced-shipment-tracking-front.php:238
452
+ #: includes/class-wc-advanced-shipment-tracking-front.php:398
453
+ #: includes/class-wc-advanced-shipment-tracking-front.php:415
454
  #, php-format
455
  msgid "Shipment - %s (out of %s)"
456
  msgstr ""
457
  "Versand -% s (von% s)\n"
458
 
459
+ #: includes/class-wc-advanced-shipment-tracking-front.php:251
460
+ #: includes/class-wc-advanced-shipment-tracking-front.php:428
461
+ msgid "Tracking details not found in TrackShip"
462
+ msgstr "Tracking-Details wurden in TrackShip nicht gefunden"
463
+
464
+ #: includes/class-wc-advanced-shipment-tracking-front.php:462
465
+ #: includes/class-wc-advanced-shipment-tracking-front.php:492
466
+ #: includes/class-wc-advanced-shipment-tracking-front.php:862
467
+ #: includes/class-wc-advanced-shipment-tracking-front.php:880
468
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1015
469
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1033
470
+ msgid "Est. Delivery Date"
471
+ msgstr ""
472
+ "Europäische Sommerzeit. Lieferdatum\n"
473
 
474
+ #: includes/class-wc-advanced-shipment-tracking-front.php:618
475
+ #: includes/class-wc-advanced-shipment-tracking-front.php:708
 
476
  msgid "Tracking Details"
477
  msgstr "Verfolgungsdetails"
478
 
479
+ #: includes/class-wc-advanced-shipment-tracking-front.php:699
480
+ #: includes/class-wc-advanced-shipment-tracking-front.php:789
481
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1004
482
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1118
483
  msgid "view more"
484
  msgstr "mehr sehen"
485
 
486
+ #: includes/class-wc-advanced-shipment-tracking-front.php:700
487
+ #: includes/class-wc-advanced-shipment-tracking-front.php:790
488
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1005
489
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1119
490
  msgid "view less"
491
  msgstr "weniger anzeigen"
492
 
 
 
 
 
 
 
 
 
 
493
  #: includes/class-wc-advanced-shipment-tracking.php:95
494
+ #: includes/class-wc-advanced-shipment-tracking.php:265
495
  #: includes/customizer/class-wcast-customizer.php:31
496
  msgid "Shipment Tracking"
497
  msgstr "Sendungsverfolgung"
498
 
499
  #: includes/class-wc-advanced-shipment-tracking.php:184
500
+ #: includes/class-wc-advanced-shipment-tracking.php:387
501
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:438
502
  msgid "Mark as Shipped?"
503
+ msgstr "Als versandt markieren?"
 
 
 
 
504
 
505
  #: includes/class-wc-advanced-shipment-tracking.php:187
506
+ #: includes/class-wc-advanced-shipment-tracking.php:390
507
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:441
508
  msgid "Mark as Completed?"
509
+ msgstr "Als erledigt markieren?"
510
 
511
  #: includes/class-wc-advanced-shipment-tracking.php:188
512
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:442
513
  msgid "Completed"
514
+ msgstr "vollendet, fertiggestellt"
515
 
516
  #: includes/class-wc-advanced-shipment-tracking.php:195
517
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:450
518
  msgid "Add Tracking Number"
519
+ msgstr "Tracking-Nummer hinzufügen"
520
 
521
+ #: includes/class-wc-advanced-shipment-tracking.php:198
522
+ #: includes/class-wc-advanced-shipment-tracking.php:203
523
+ #: includes/class-wc-advanced-shipment-tracking.php:408
524
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:453
525
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:455
526
  msgid "Provider:"
527
  msgstr "Anbieter:"
528
 
529
+ #: includes/class-wc-advanced-shipment-tracking.php:223
530
+ #: includes/class-wc-advanced-shipment-tracking.php:446
531
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:475
532
  msgid "Tracking number:"
533
  msgstr "Auftragsnummer, Frachtnummer, Sendungscode:"
534
 
535
+ #: includes/class-wc-advanced-shipment-tracking.php:227
536
+ #: includes/class-wc-advanced-shipment-tracking.php:454
537
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:479
538
  msgid "Date shipped:"
539
  msgstr "Lieferdatum:"
540
 
541
+ #: includes/class-wc-advanced-shipment-tracking.php:236
542
+ #: includes/class-wc-advanced-shipment-tracking.php:466
543
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:488
544
+ msgid "Mark order as:"
545
+ msgstr "Bestellung markieren als:"
546
 
547
+ #: includes/class-wc-advanced-shipment-tracking.php:239
548
+ #: includes/class-wc-advanced-shipment-tracking.php:469
549
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:491
 
 
 
 
550
  msgid "Partial Shipped"
551
+ msgstr "Teilweise versandt"
552
 
553
+ #: includes/class-wc-advanced-shipment-tracking.php:281
554
+ #: includes/class-wc-advanced-shipment-tracking.php:483
555
+ msgid "Track Shipment"
556
+ msgstr ""
557
+ "Sendung verfolgen\n"
558
 
559
  #. 1: shipping date
560
+ #: includes/class-wc-advanced-shipment-tracking.php:290
561
  #, php-format
562
  msgid "Shipped on %s"
563
  msgstr "Versand auf% s"
564
 
565
+ #: includes/class-wc-advanced-shipment-tracking.php:404
566
  msgid "Add Tracking Info"
567
  msgstr "Tracking-Info hinzufügen"
568
 
569
+ #: includes/class-wc-advanced-shipment-tracking.php:409
570
  msgid "Select Provider"
571
  msgstr "Wählen Sie Provider aus"
572
 
573
+ #: includes/class-wc-advanced-shipment-tracking.php:482
574
  msgid "Save Tracking"
575
  msgstr "Tracking speichern"
576
 
577
+ #: includes/class-wc-advanced-shipment-tracking.php:483
578
  msgid "Preview:"
579
  msgstr "Vorschau:"
580
 
581
+ #: includes/class-wc-advanced-shipment-tracking.php:702
582
  #, php-format
583
  msgid ""
584
  "Tracking info was deleted for tracking provider %s with tracking number %s"
585
  msgstr ""
586
+ "Die Tracking-Informationen wurden für den Tracking-Anbieter% s mit der "
587
+ "Tracking-Nummer% s gelöscht"
588
 
589
+ #: includes/class-wc-advanced-shipment-tracking.php:1092
590
  #, php-format
591
  msgid "Order was shipped with %s and tracking number is: %s"
592
  msgstr ""
593
+ "Die Bestellung wurde mit% s verschickt und die Sendungsnummer lautet:% s"
594
 
595
  #: includes/class-wc-advanced-shipment-welcome.php:38
596
  #: includes/class-wc-advanced-shipment-welcome.php:39
597
  msgid "Welcome to Advanced Shipment Tracking"
598
+ msgstr "Willkommen bei Advanced Shipment Tracking"
599
 
600
  #: includes/class-wc-advanced-shipment-welcome.php:90
601
  #: includes/class-wc-advanced-shipment-welcome.php:129
602
  #: includes/class-wc-advanced-shipment-welcome.php:147
603
  msgid "Save and Continue"
604
+ msgstr "Speichern und fortfahren"
605
 
606
  #: includes/class-wc-advanced-shipment-welcome.php:177
607
+ #: includes/views/admin_trackship_dashboard.php:6
608
  msgid "Connection status"
609
+ msgstr "Verbindungsstatus"
610
 
611
  #: includes/class-wc-advanced-shipment-welcome.php:184
612
+ #: includes/views/admin_trackship_dashboard.php:13
613
  msgid "TrackShip Connection Status"
614
  msgstr "TrackShip-Verbindungsstatus"
615
 
 
 
 
 
 
 
616
  #: includes/class-wc-advanced-shipment-welcome.php:194
617
+ #: includes/views/admin_trackship_dashboard.php:23
618
  msgid "Trackers Balance"
619
  msgstr ""
620
+ "Tracker-Balance\n"
621
 
622
  #: includes/class-wc-advanced-shipment-welcome.php:202
623
+ #: includes/views/admin_trackship_dashboard.php:31
624
  msgid "Current Plan"
625
  msgstr ""
626
+ "Derzeitiger Plan\n"
627
 
628
  #: includes/class-wc-advanced-shipment-welcome.php:217
629
+ #: includes/views/admin_options_addons.php:33
630
+ #: includes/views/admin_trackship_dashboard.php:46
631
  msgid ""
632
  "You are now connected with TrackShip! TrackShip makes it effortless to "
633
  "automate your post shipping operations and get tracking and delivery status "
634
  "updates directly in the WooCommerce admin."
635
  msgstr ""
636
+ "Sie sind jetzt mit TrackShip verbunden! Mit TrackShip können Sie Ihre "
637
+ "Postversandvorgänge mühelos automatisieren und Statusaktualisierungen für "
638
+ "Sendungsverfolgung und Zustellung direkt im WooCommerce-Administrator "
639
+ "abrufen.\n"
 
 
 
640
 
641
  #: includes/class-wc-advanced-shipment-welcome.php:223
642
+ #: includes/views/admin_trackship_dashboard.php:52
643
  msgid "TrackShip Dashboard"
644
  msgstr ""
645
+ "TrackShip Dashboard\n"
646
 
647
  #: includes/class-wc-advanced-shipment-welcome.php:253
648
  msgid "Save"
649
+ msgstr "speichern"
650
+
651
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:142
652
+ #, php-format
653
+ msgid "Delivered <span class=\"count\">(%s)</span>"
654
+ msgid_plural "Delivered <span class=\"count\">(%s)</span>"
655
+ msgstr[0] ""
656
+ "Geliefert <span class=\"count\">(%s)</span>\n"
657
+ msgstr[1] ""
658
+ "Geliefert <span class=\"count\">(%s)</span>\n"
659
+
660
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:151
661
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:197
662
+ #: includes/views/admin_options_settings.php:149
663
+ msgid "Updated Tracking"
664
  msgstr ""
665
+ "Aktualisiertes Tracking\n"
666
 
667
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:156
668
+ #, php-format
669
+ msgid "Updated Tracking <span class=\"count\">(%s)</span>"
670
+ msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
671
+ msgstr[0] ""
672
+ "Aktualisiertes Tracking <span class=\"count\">(%s)</span>\n"
673
+ msgstr[1] ""
674
+ "Aktualisiertes Tracking <span class=\"count\">(%s)</span>\n"
675
+
676
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:165
677
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:211
678
+ #: includes/views/admin_options_settings.php:115
679
+ msgid "Partially Shipped"
680
  msgstr ""
681
+ "zum Teil versandt\n"
682
 
683
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:170
684
+ #, php-format
685
+ msgid "Partially Shipped <span class=\"count\">(%s)</span>"
686
+ msgid_plural "Partially Shipped <span class=\"count\">(%s)</span>"
687
+ msgstr[0] ""
688
+ "Teilweise versandt <span class=\"count\">(%s)</span>\n"
689
+ msgstr[1] ""
690
+ "Teilweise versandt <span class=\"count\">(%s)</span>\n"
691
 
692
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:270
693
+ msgid "Change status to delivered"
694
+ msgstr ""
695
+ "Ändern Sie den Status in geliefert\n"
696
 
697
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:279
698
+ msgid "Change status to Updated Tracking"
699
+ msgstr ""
700
+ "Ändern Sie den Status in \"Aktualisiertes Tracking\"\n"
701
 
702
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:288
703
+ msgid "Change status to Partially Shipped"
704
+ msgstr ""
705
+ "Ändern Sie den Status in Teilweise versandt\n"
706
 
707
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:320
708
+ #, php-format
709
+ msgid "Shipped <span class=\"count\">(%s)</span>"
710
+ msgid_plural "Shipped <span class=\"count\">(%s)</span>"
711
+ msgstr[0] ""
712
+ "Versand <span class=\"count\">(%s)</span>\n"
713
+ msgstr[1] ""
714
+ "Versand <span class=\"count\">(%s)</span>\n"
715
+
716
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:334
717
+ msgid "Change status to shipped"
718
+ msgstr ""
719
+ "Ändern Sie den Status in \"Versand\"\n"
720
+
721
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:518
722
+ msgid "Resend delivered order notification"
723
+ msgstr ""
724
+ "Senden Sie die gelieferte Bestellbenachrichtigung erneut\n"
725
+
726
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:730
727
+ msgid "Shipment Providers"
728
+ msgstr ""
729
+ "Versandanbieter\n"
730
+
731
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:733
732
+ msgid "Shipment Status"
733
+ msgstr ""
734
+ "Versandstatus\n"
735
+
736
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:736
737
+ msgid "Tracking issues"
738
+ msgstr ""
739
+ "Verfolgung von Problemen\n"
740
+
741
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:742
742
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:750
743
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:767
744
+ msgid "data not available."
745
+ msgstr ""
746
+ "keine Daten verfügbar.\n"
747
+
748
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:773
749
+ msgid "View more on TrackShip"
750
+ msgstr ""
751
+ "Erfahren Sie mehr über TrackShip\n"
752
+
753
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:911
754
+ msgid "There are some issue with sync, Please Retry."
755
+ msgstr ""
756
+ "Es gibt ein Problem mit der Synchronisierung. Bitte versuchen Sie es erneut."
757
+ "\n"
758
+
759
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:926
760
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:941
761
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:956
762
+ msgid "view details"
763
+ msgstr ""
764
+ "Details anzeigen\n"
765
+
766
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:927
767
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:942
768
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:957
769
+ msgid "hide details"
770
+ msgstr ""
771
+ "Details ausblenden\n"
772
 
773
  #: includes/customizer/class-wcast-customizer.php:40
774
  msgid "Shipment Status Emails"
787
 
788
  #: includes/customizer/class-wcast-customizer.php:68
789
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:143
790
+ msgid "Partially Shipped status email"
791
  msgstr ""
792
+ "Teilweise versendete Status-E-Mail\n"
793
 
794
  #: includes/customizer/class-wcast-customizer.php:76
795
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:143
796
+ msgid "Updated Tracking status email"
 
 
 
 
 
 
797
  msgstr ""
798
+ "Aktualisierte Tracking-Status-E-Mail\n"
 
 
 
 
 
 
 
799
 
800
+ #: includes/customizer/class-wcast-customizer.php:411
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
801
  msgid "Select order to preview"
802
  msgstr "Wählen Sie die Bestellung aus, um eine Vorschau anzuzeigen"
803
 
825
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
826
  #: includes/customizer/class-wc-returntosender-email-customizer.php:157
827
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:144
828
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:144
829
  msgid "This section lets you customize the Email Content."
830
  msgstr "In diesem Abschnitt können Sie den E-Mail-Inhalt anpassen."
831
 
840
  #: includes/customizer/class-wc-intransit-email-customizer.php:191
841
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
842
  #: includes/customizer/class-wc-returntosender-email-customizer.php:187
843
+ #: includes/customizer/class-wc-tracking-info-customizer.php:183
844
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:177
845
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:177
846
  msgid "Preview order"
847
  msgstr "Vorschau der Bestellung"
848
 
856
  msgid "E.g. {customer.email}, admin@example.org"
857
  msgstr "Z.B. {customer.email}, admin@example.org"
858
 
859
+ #. %s: list of placeholders
860
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
861
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
862
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:381
863
  #: includes/customizer/class-wc-delivered-email-customizer.php:232
864
  #: includes/customizer/class-wc-delivered-email-customizer.php:254
865
+ #: includes/customizer/class-wc-delivered-email-customizer.php:383
866
+ #: includes/customizer/class-wc-email-customizer.php:243
867
+ #: includes/customizer/class-wc-email-customizer.php:266
868
+ #: includes/customizer/class-wc-email-customizer.php:289
869
+ #: includes/customizer/class-wc-email-customizer.php:414
870
  #: includes/customizer/class-wc-failure-email-customizer.php:231
871
  #: includes/customizer/class-wc-failure-email-customizer.php:253
872
+ #: includes/customizer/class-wc-failure-email-customizer.php:382
873
  #: includes/customizer/class-wc-intransit-email-customizer.php:235
874
  #: includes/customizer/class-wc-intransit-email-customizer.php:257
875
+ #: includes/customizer/class-wc-intransit-email-customizer.php:386
876
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
877
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
878
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:384
879
  #: includes/customizer/class-wc-returntosender-email-customizer.php:231
880
  #: includes/customizer/class-wc-returntosender-email-customizer.php:253
881
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:382
882
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:200
883
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:223
884
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:246
885
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:265
886
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:200
887
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:223
888
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:246
889
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:265
890
+ #: includes/emails/class-shipment-delivered-email.php:256
891
+ #: includes/emails/class-shipment-delivered-email.php:265
892
+ msgid "Available variables:"
893
+ msgstr "Verfügbare Variablen:"
 
 
 
 
 
 
 
 
 
 
 
894
 
895
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
896
  #: includes/customizer/class-wc-delivered-email-customizer.php:275
933
 
934
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
935
  #: includes/customizer/class-wc-delivered-email-customizer.php:340
936
+ #: includes/customizer/class-wc-email-customizer.php:393
937
  #: includes/customizer/class-wc-failure-email-customizer.php:339
938
+ #: includes/customizer/class-wc-intransit-email-customizer.php:364
939
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
940
  #: includes/customizer/class-wc-returntosender-email-customizer.php:339
941
  msgid "Google Analytics link tracking"
942
  msgstr ""
943
+ "Google Analytics-Linkverfolgung\n"
944
 
945
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
946
  #: includes/customizer/class-wc-delivered-email-customizer.php:341
947
  #: includes/customizer/class-wc-failure-email-customizer.php:340
948
+ #: includes/customizer/class-wc-intransit-email-customizer.php:365
949
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
950
  #: includes/customizer/class-wc-returntosender-email-customizer.php:340
951
  msgid "This will be appended to URL in the email content"
952
  msgstr ""
953
+ "Dies wird an die URL im E-Mail-Inhalt angehängt\n"
954
 
955
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
956
  #: includes/customizer/class-wc-delivered-email-customizer.php:362
960
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
961
  #: includes/customizer/class-wc-returntosender-email-customizer.php:361
962
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:245
963
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:245
964
  msgid "Email content"
965
  msgstr "E-Mail-Inhalt"
966
 
967
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:438
968
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:445
969
+ #: includes/customizer/class-wc-delivered-email-customizer.php:440
970
+ #: includes/customizer/class-wc-delivered-email-customizer.php:447
971
+ #: includes/customizer/class-wc-email-customizer.php:447
972
+ #: includes/customizer/class-wc-failure-email-customizer.php:439
973
+ #: includes/customizer/class-wc-failure-email-customizer.php:447
974
+ #: includes/customizer/class-wc-intransit-email-customizer.php:442
975
+ #: includes/customizer/class-wc-intransit-email-customizer.php:450
976
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:440
977
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:448
978
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:438
979
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:446
980
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:298
981
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:298
 
 
 
 
 
 
982
  msgid "Please select order to preview."
983
  msgstr ""
984
+ "Bitte wählen Sie eine Bestellung aus, um eine Vorschau anzuzeigen.\n"
985
 
986
  #: includes/customizer/class-wc-delivered-email-customizer.php:124
987
  msgid "Your order #{order_number} has been delivered"
988
  msgstr ""
989
+ "Ihre Bestellung Nr. {Order_number} wurde geliefert\n"
990
 
991
  #: includes/customizer/class-wc-delivered-email-customizer.php:126
992
  #: includes/customizer/class-wc-email-customizer.php:132
1017
  "Aktivieren Sie die Status-E-Mail für die gelieferte Bestellung\n"
1018
 
1019
  #: includes/customizer/class-wc-email-customizer.php:201
1020
+ #: includes/customizer/class-wc-tracking-info-customizer.php:187
1021
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:181
1022
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:181
1023
  msgid "Please select a order..."
1024
  msgstr ""
1025
  "Bitte wählen Sie eine Bestellung aus ...\n"
1026
 
1027
+ #: includes/customizer/class-wc-email-customizer.php:309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1028
  msgid "Display tracking details"
1029
  msgstr ""
1030
+ "Tracking-Details anzeigen\n"
1031
 
1032
+ #: includes/customizer/class-wc-email-customizer.php:325
1033
  msgid "Display order details"
1034
  msgstr ""
1035
+ "Bestelldetails anzeigen\n"
1036
 
1037
+ #: includes/customizer/class-wc-email-customizer.php:342
1038
  msgid "Display Shipping Address"
1039
  msgstr ""
1040
+ "Lieferadresse anzeigen\n"
1041
 
1042
+ #: includes/customizer/class-wc-email-customizer.php:359
1043
  msgid "Display Billing Address"
1044
  msgstr ""
1045
+ "Rechnungsadresse anzeigen\n"
1046
 
1047
+ #: includes/customizer/class-wc-email-customizer.php:376
1048
  msgid "Enable Google Analytics tracking"
1049
  msgstr ""
1050
+ "Aktivieren Sie das Google Analytics-Tracking\n"
1051
 
1052
+ #: includes/customizer/class-wc-email-customizer.php:394
1053
  msgid ""
1054
  "This will be appended to URL in the email content – e.g. "
1055
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
1056
  msgstr ""
1057
+ "Dies wird an die URL im E-Mail-Inhalt angehängt - z. utm_source = ast & "
1058
+ "utm_medium = email & utm_campaign = geliefert\n"
1059
 
1060
  #: includes/customizer/class-wc-failure-email-customizer.php:123
1061
  msgid "Your order #{order_number} is Failed Attempt"
1143
  "Aktivieren Sie die Sendungsstatus-E-Mail für die Rücksendung an den Absender"
1144
 
1145
  #: includes/customizer/class-wc-tracking-info-customizer.php:144
1146
+ #: includes/customizer/class-wc-tracking-info-customizer.php:496
1147
+ #: templates/emails/tracking-info.php:203
1148
+ #: templates/myaccount/tracking-info.php:144
1149
  msgid "Provider"
1150
  msgstr "Anbieter"
1151
 
1152
  #: includes/customizer/class-wc-tracking-info-customizer.php:145
1153
+ #: includes/customizer/class-wc-tracking-info-customizer.php:518
1154
+ #: templates/emails/tracking-info.php:232
1155
+ #: templates/myaccount/tracking-info.php:171
1156
  msgid "Tracking Number"
1157
  msgstr "Auftragsnummer, Frachtnummer, Sendungscode"
1158
 
1159
  #: includes/customizer/class-wc-tracking-info-customizer.php:146
1160
+ #: includes/customizer/class-wc-tracking-info-customizer.php:539
1161
  msgid "Shipped Date"
1162
  msgstr "Versanddatum"
1163
 
1164
+ #: includes/customizer/class-wc-tracking-info-customizer.php:184
1165
+ msgid "Select an order to preview and design the tracking info display."
 
 
1166
  msgstr ""
1167
+ "Wählen Sie eine Bestellung aus, um eine Vorschau anzuzeigen und die Anzeige "
1168
+ "der Tracking-Informationen zu gestalten.\n"
 
1169
 
1170
+ #: includes/customizer/class-wc-tracking-info-customizer.php:204
 
 
 
 
 
 
1171
  msgid "Tracking Display Position"
1172
  msgstr "Verfolgung der Anzeigeposition"
1173
 
1174
+ #: includes/customizer/class-wc-tracking-info-customizer.php:208
1175
  msgid "Before Order Details"
1176
  msgstr "Vor der Bestellung Details"
1177
 
1178
+ #: includes/customizer/class-wc-tracking-info-customizer.php:209
1179
  msgid "After Order Details"
1180
  msgstr "Nach Auftragsdetails"
1181
 
1182
+ #: includes/customizer/class-wc-tracking-info-customizer.php:224
1183
+ msgid "Tracking Header text"
1184
+ msgstr ""
1185
+ "Tracking-Header-Text\n"
1186
 
1187
+ #: includes/customizer/class-wc-tracking-info-customizer.php:231
1188
  msgid "Tracking Information"
1189
  msgstr "Tracking-Informationen"
1190
 
1191
+ #: includes/customizer/class-wc-tracking-info-customizer.php:246
1192
  msgid "Additional text after header"
1193
  msgstr "Zusätzlicher Text nach Kopfzeile"
1194
 
1195
+ #: includes/customizer/class-wc-tracking-info-customizer.php:267
1196
+ #: includes/customizer/class-wc-tracking-info-customizer.php:270
1197
+ msgid "Tracking display template"
1198
+ msgstr ""
1199
+ "Tracking-Display-Vorlage\n"
1200
+
1201
+ #: includes/customizer/class-wc-tracking-info-customizer.php:274
1202
+ msgid "Select Template"
1203
  msgstr ""
1204
+ "Vorlage auswählen\n"
1205
+
1206
+ #: includes/customizer/class-wc-tracking-info-customizer.php:275
1207
+ msgid "Table Layout"
1208
+ msgstr ""
1209
+ "Tabellenlayout\n"
1210
 
1211
  #: includes/customizer/class-wc-tracking-info-customizer.php:291
1212
+ msgid "Simple Layout Design"
1213
+ msgstr ""
1214
+ "Einfaches Layout Design\n"
1215
+
1216
+ #: includes/customizer/class-wc-tracking-info-customizer.php:306
1217
+ msgid "Provider font size"
1218
+ msgstr ""
1219
+ "Provider-Schriftgröße\n"
1220
+
1221
+ #: includes/customizer/class-wc-tracking-info-customizer.php:323
1222
+ msgid "Provider font color"
1223
+ msgstr ""
1224
+ "Provider-Schriftfarbe\n"
1225
+
1226
+ #: includes/customizer/class-wc-tracking-info-customizer.php:339
1227
+ msgid "Show bottom border"
1228
+ msgstr ""
1229
+ "Zeige unteren Rand\n"
1230
+
1231
+ #: includes/customizer/class-wc-tracking-info-customizer.php:356
1232
+ msgid "Bottom border color"
1233
+ msgstr ""
1234
+ "Farbe des unteren Randes\n"
1235
 
1236
+ #: includes/customizer/class-wc-tracking-info-customizer.php:374
1237
+ msgid "Table layout Design"
1238
+ msgstr ""
1239
+ "Tabellenlayout Design\n"
1240
 
1241
+ #: includes/customizer/class-wc-tracking-info-customizer.php:389
1242
+ msgid "Display shipping provider name"
1243
  msgstr ""
1244
+ "Name des Versandanbieters anzeigen\n"
1245
 
1246
+ #: includes/customizer/class-wc-tracking-info-customizer.php:406
1247
+ msgid "Display shipping provider image"
1248
  msgstr ""
1249
+ "Bild des Versandanbieters anzeigen\n"
1250
 
1251
+ #: includes/customizer/class-wc-tracking-info-customizer.php:423
1252
+ msgid "Hide the ship date"
1253
+ msgstr ""
1254
+ "Verstecken Sie das Versanddatum\n"
1255
 
1256
+ #: includes/customizer/class-wc-tracking-info-customizer.php:440
1257
+ msgid "Use tracking number as a link"
1258
+ msgstr ""
1259
+ "Verwenden Sie die Tracking-Nummer als Link\n"
1260
 
1261
+ #: includes/customizer/class-wc-tracking-info-customizer.php:457
1262
+ msgid "Table Headers"
1263
+ msgstr ""
1264
+ "Tabellenüberschriften\n"
1265
 
1266
+ #: includes/customizer/class-wc-tracking-info-customizer.php:472
1267
+ msgid "Hide Table Headers"
1268
+ msgstr ""
1269
+ "Tabellenüberschriften ausblenden\n"
1270
+
1271
+ #: includes/customizer/class-wc-tracking-info-customizer.php:489
1272
+ msgid "Provider header text"
1273
+ msgstr ""
1274
+ "Provider-Header-Text\n"
1275
+
1276
+ #: includes/customizer/class-wc-tracking-info-customizer.php:511
1277
+ msgid "Tracking Number header text"
1278
+ msgstr ""
1279
+ "Tracking-Nummer-Header-Text\n"
1280
+
1281
+ #: includes/customizer/class-wc-tracking-info-customizer.php:532
1282
+ msgid "Ship date header text"
1283
+ msgstr ""
1284
+ "Versanddatum Kopfzeilentext\n"
1285
+
1286
+ #: includes/customizer/class-wc-tracking-info-customizer.php:554
1287
  msgid "Track Label"
1288
  msgstr "Track Label"
1289
 
1290
+ #: includes/customizer/class-wc-tracking-info-customizer.php:571
1291
+ msgid "Track header text"
1292
+ msgstr ""
1293
+ "Verfolgen Sie den Header-Text\n"
1294
 
1295
+ #: includes/customizer/class-wc-tracking-info-customizer.php:593
1296
+ msgid "Headers font size"
1297
+ msgstr ""
1298
+ "Schriftgröße der Überschriften\n"
1299
 
1300
+ #: includes/customizer/class-wc-tracking-info-customizer.php:610
1301
+ msgid "Headers font color"
1302
+ msgstr ""
1303
+ "Schriftfarbe der Überschriften\n"
1304
 
1305
+ #: includes/customizer/class-wc-tracking-info-customizer.php:626
1306
+ msgid "Table Content"
1307
  msgstr ""
1308
+ "Tabelleninhalt\n"
1309
 
1310
+ #: includes/customizer/class-wc-tracking-info-customizer.php:641
1311
  msgid "Padding"
1312
  msgstr "Polsterung"
1313
 
1314
+ #: includes/customizer/class-wc-tracking-info-customizer.php:661
1315
+ #: includes/customizer/class-wc-tracking-info-customizer.php:845
1316
  msgid "Background color"
1317
  msgstr ""
1318
  "Hintergrundfarbe\n"
1319
 
1320
+ #: includes/customizer/class-wc-tracking-info-customizer.php:677
1321
+ #: includes/views/admin_tracking_page_settings.php:72
1322
  msgid "Border color"
1323
  msgstr "Randfarbe"
1324
 
1325
+ #: includes/customizer/class-wc-tracking-info-customizer.php:693
1326
  msgid "Border size"
1327
  msgstr ""
1328
  "Rahmengrösse\n"
1329
 
1330
+ #: includes/customizer/class-wc-tracking-info-customizer.php:717
1331
+ msgid "Content Text align"
1332
+ msgstr ""
1333
+ "Inhalt Text ausrichten\n"
1334
 
1335
+ #: includes/customizer/class-wc-tracking-info-customizer.php:739
1336
+ msgid "Content font color"
1337
+ msgstr ""
1338
+ "Schriftfarbe des Inhalts\n"
1339
 
1340
+ #: includes/customizer/class-wc-tracking-info-customizer.php:755
1341
+ msgid "Content font size"
1342
+ msgstr ""
1343
+ "Schriftgröße des Inhalts\n"
1344
 
1345
+ #: includes/customizer/class-wc-tracking-info-customizer.php:772
1346
  msgid "Content line height"
1347
  msgstr "Höhe der Inhaltszeile"
1348
 
1349
+ #: includes/customizer/class-wc-tracking-info-customizer.php:793
1350
  msgid "Content font weight"
1351
  msgstr ""
1352
  "Schriftgröße des Inhalts\n"
1353
 
1354
+ #: includes/customizer/class-wc-tracking-info-customizer.php:815
1355
+ msgid "Tracking Link"
1356
  msgstr ""
1357
+ "Tracking-Link\n"
1358
 
1359
+ #: includes/customizer/class-wc-tracking-info-customizer.php:829
1360
+ msgid "Font Color"
1361
+ msgstr ""
1362
+ "Schriftfarbe\n"
1363
 
1364
+ #: includes/customizer/class-wc-tracking-info-customizer.php:860
1365
+ msgid "Border"
1366
+ msgstr "Rand"
1367
 
1368
+ #: includes/customizer/class-wc-tracking-info-customizer.php:912
1369
+ msgid ""
1370
+ "To preview the tracking display, please add tracking information to at least "
1371
+ "one order and choose it in the preview order selection."
1372
+ msgstr ""
1373
+ "Um eine Vorschau der Tracking-Anzeige anzuzeigen, fügen Sie mindestens einer "
1374
+ "Bestellung Tracking-Informationen hinzu und wählen Sie diese in der Auswahl "
1375
+ "der Vorschau-Bestellung aus.\n"
1376
 
1377
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:116
1378
+ msgid "Your {site_title} order is now partially shipped"
1379
  msgstr ""
1380
+ "Ihre {site_title} Bestellung wird jetzt teilweise versendet\n"
1381
 
1382
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:118
1383
  msgid ""
1384
  "Hi there. we thought you'd like to know that your recent order from "
1385
+ "{site_title} has been partially shipped."
1386
  msgstr ""
1387
+ "Hallo. Wir dachten, Sie möchten wissen, dass Ihre letzte Bestellung von "
1388
+ "{site_title} teilweise versendet wurde.\n"
1389
 
1390
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:159
1391
+ msgid "Enable Partially Shipped order status email"
1392
+ msgstr ""
1393
+ "Teilweise versendete Bestellstatus-E-Mail aktivieren\n"
1394
+
1395
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:116
1396
+ msgid "Your {site_title} order is now updated tracking"
1397
+ msgstr ""
1398
+ "Ihre {site_title} Bestellung wird jetzt nachverfolgt\n"
1399
+
1400
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:118
1401
+ msgid ""
1402
+ "Hi there. we thought you'd like to know that the shipment tracking for your "
1403
+ "recent order from {site_title} has been updated."
1404
  msgstr ""
1405
+ "Hallo. Wir dachten, Sie möchten wissen, dass die Sendungsverfolgung für Ihre "
1406
+ "letzte Bestellung von {site_title} aktualisiert wurde.\n"
1407
+
1408
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:159
1409
+ msgid "Enable Updated Tracking order status email"
1410
+ msgstr ""
1411
+ "Aktivieren Sie die E-Mail mit dem Status der aktualisierten "
1412
+ "Sendungsverfolgung\n"
1413
 
1414
  #: includes/emails/class-shipment-delivered-email.php:32
1415
  msgid "Delivered order"
1416
  msgstr ""
1417
+ "Gelieferte Bestellung\n"
1418
 
1419
  #: includes/emails/class-shipment-delivered-email.php:33
1420
  msgid ""
1421
  "Order delivered emails are sent to customers when their orders are marked "
1422
  "delivered and usually indicate that their orders have been shipped."
1423
  msgstr ""
1424
+ "Von der Bestellung zugestellte E-Mails werden an Kunden gesendet, wenn ihre "
1425
+ "Bestellungen als zugestellt markiert sind und in der Regel angeben, dass "
1426
+ "ihre Bestellungen versandt wurden.\n"
1427
 
1428
+ #: includes/emails/class-shipment-delivered-email.php:280
1429
  msgid "Click Here"
1430
  msgstr ""
1431
+ "Klick hier\n"
1432
 
1433
+ #: includes/emails/class-shipment-delivered-email.php:281
1434
  msgid "Edit in customizer"
1435
  msgstr ""
1436
+ "Bearbeiten Sie im Customizer\n"
1437
 
1438
  #: includes/views/admin_options_bulk_upload.php:10
1439
  msgid "Upload CSV"
1448
  "Tracking-Informationen hinzugefügt)"
1449
 
1450
  #: includes/views/admin_options_bulk_upload.php:29
1451
+ #: includes/views/admin_options_shipping_provider.php:120
1452
+ #: includes/views/admin_options_shipping_provider.php:157
1453
  msgid "Upload"
1454
  msgstr "Hochladen"
1455
 
1461
  msgid "Upload Progress - "
1462
  msgstr "Upload-Fortschritt -"
1463
 
1464
+ #: includes/views/admin_options_bulk_upload.php:50
1465
  msgid "Sample CSV"
1466
  msgstr ""
1467
+ "Beispiel CSV\n"
1468
 
1469
+ #: includes/views/admin_options_bulk_upload.php:55
1470
  msgid "You can download an example of the csv file:"
1471
  msgstr "Sie können ein Beispiel für die CSV-Datei herunterladen:"
1472
 
1473
+ #: includes/views/admin_options_bulk_upload.php:58
1474
  msgid "Download sample csv file"
1475
  msgstr "Laden Sie die Beispiel-CSV-Datei herunter"
1476
 
1477
+ #: includes/views/admin_options_bulk_upload.php:63
1478
  msgid ""
1479
  "For detailed instructions on how to upload tracking info in bulk, see our"
1480
  msgstr ""
1481
  "For detailed instructions on how to upload tracking info in bulk, see our"
1482
 
1483
+ #: includes/views/admin_options_settings.php:15
1484
+ #: includes/views/admin_trackship_dashboard.php:62
1485
+ msgid "General Settings"
1486
+ msgstr "Allgemeine Einstellungen"
1487
+
1488
  #: includes/views/admin_options_settings.php:26
1489
+ #: includes/views/admin_options_settings.php:181
1490
+ #: includes/views/admin_trackship_dashboard.php:73
1491
+ #: includes/views/admin_tracking_page_settings.php:101
 
1492
  msgid "Save Changes"
1493
  msgstr ""
1494
+ "Änderungen speichern\n"
1495
 
1496
  #: includes/views/admin_options_settings.php:40
1497
  msgid "Tracking Info Display"
1498
  msgstr ""
1499
+ "Tracking-Info-Anzeige\n"
1500
 
1501
  #: includes/views/admin_options_settings.php:49
1502
  msgid "You can customize the tracking info display on emails and my account"
1503
  msgstr ""
1504
+ "Sie können die Anzeige der Tracking-Informationen in E-Mails und in meinem "
1505
+ "Konto anpassen\n"
1506
 
1507
  #: includes/views/admin_options_settings.php:52
1508
  msgid "Launch Customizer"
1509
  msgstr ""
1510
+ "Starten Sie den Customizer\n"
1511
 
1512
  #: includes/views/admin_options_settings.php:62
1513
+ msgid "Custom Order Statuses"
 
 
 
 
1514
  msgstr ""
1515
+ "Benutzerdefinierte Auftragsstatus\n"
1516
 
1517
  #: includes/views/admin_options_settings.php:94
1518
+ #: includes/views/admin_options_settings.php:129
1519
+ #: includes/views/admin_options_settings.php:163
1520
+ msgid "Light Font"
1521
+ msgstr ""
1522
+ "Leichte Schrift\n"
1523
+
1524
+ #: includes/views/admin_options_settings.php:95
1525
+ #: includes/views/admin_options_settings.php:130
1526
+ #: includes/views/admin_options_settings.php:164
1527
+ msgid "Dark Font"
1528
+ msgstr ""
1529
+ "Dunkle Schrift\n"
1530
+
1531
+ #: includes/views/admin_options_settings.php:99
1532
+ #: includes/views/admin_options_settings.php:134
1533
+ #: includes/views/admin_options_settings.php:168
1534
+ msgid "Send Email"
1535
  msgstr ""
1536
+ "E-Mail senden\n"
1537
 
1538
  #: includes/views/admin_options_shipping_provider.php:12
1539
+ #: includes/views/admin_options_shipping_provider.php:25
1540
+ #: includes/views/zorem_admin_sidebar.php:18
1541
+ #: includes/views/admin_options_addons.php:109
1542
  msgid "Active"
1543
+ msgstr "Aktiv"
1544
 
1545
  #: includes/views/admin_options_shipping_provider.php:13
1546
+ #: includes/views/admin_options_shipping_provider.php:25
1547
  msgid "Inactive"
1548
+ msgstr "Inaktiv"
1549
 
1550
  #: includes/views/admin_options_shipping_provider.php:14
1551
  msgid "Custom"
1552
+ msgstr "Benutzerdefiniert"
1553
+
1554
+ #: includes/views/admin_options_shipping_provider.php:20
1555
+ msgid "Search by provider / country"
1556
  msgstr ""
1557
+ "Suche nach Anbieter / Land\n"
1558
 
1559
+ #: includes/views/admin_options_shipping_provider.php:25
1560
+ msgid "Reset all:"
1561
  msgstr ""
1562
+ "Alles zurücksetzen:\n"
1563
 
1564
+ #: includes/views/admin_options_shipping_provider.php:26
 
1565
  #: includes/views/admin_options_shipping_provider.php:177
1566
+ #: includes/views/admin_options_shipping_provider.php:184
1567
  msgid "Sync Shipping Providers"
1568
  msgstr ""
1569
+ "Versandanbieter synchronisieren\n"
1570
 
1571
+ #: includes/views/admin_options_shipping_provider.php:102
 
 
 
 
 
 
 
 
 
 
 
 
 
1572
  msgid "Add Custom Shipping Provider"
1573
  msgstr "Fügen Sie einen benutzerdefinierten Versandanbieter hinzu"
1574
 
1575
+ #: includes/views/admin_options_shipping_provider.php:109
1576
+ #: includes/views/admin_options_shipping_provider.php:146
1577
  msgid "Shipping Country"
1578
  msgstr ""
1579
+ "Lieferungsland\n"
1580
 
1581
+ #: includes/views/admin_options_shipping_provider.php:110
1582
+ #: includes/views/admin_options_shipping_provider.php:147
1583
  msgid "Global"
1584
+ msgstr "Global"
1585
+
1586
+ #: includes/views/admin_options_shipping_provider.php:126
1587
+ #: includes/views/admin_options_shipping_provider.php:163
1588
+ msgid "How to add Tracking URL"
1589
  msgstr ""
1590
+ "So fügen Sie eine Tracking-URL hinzu\n"
1591
 
1592
+ #: includes/views/admin_options_shipping_provider.php:139
1593
  msgid "Edit Custom Shipping Provider"
1594
  msgstr "Benutzerdefinierten Versandanbieter bearbeiten"
1595
 
1596
+ #: includes/views/admin_options_shipping_provider.php:178
1597
  msgid ""
1598
  "Syncing the shipping providers list add or updates the pre-set shipping "
1599
  "providers and will not effect custom shipping providers."
1600
  msgstr ""
1601
+ "Durch das Synchronisieren der Versandanbieterliste werden die "
1602
+ "voreingestellten Versandanbieter hinzugefügt oder aktualisiert. "
1603
+ "Benutzerdefinierte Versandanbieter werden davon nicht betroffen.\n"
1604
 
1605
+ #: includes/views/admin_options_shipping_provider.php:180
1606
  msgid "Providers Added"
1607
  msgstr "Anbieter hinzugefügt"
1608
 
1609
+ #: includes/views/admin_options_shipping_provider.php:181
1610
  msgid "Providers Updated"
1611
  msgstr "Anbieter aktualisiert"
1612
 
1613
+ #: includes/views/admin_options_shipping_provider.php:182
1614
  msgid "Providers Deleted"
1615
  msgstr "Anbieter gelöscht"
1616
 
1617
+ #: includes/views/admin_options_trackship_integration.php:17
1618
+ #: includes/views/admin_tracking_page_settings.php:7
1619
  msgid "Tracking Page"
1620
  msgstr "Tracking-Seite"
1621
 
1622
+ #: includes/views/admin_options_trackship_integration.php:20
1623
+ msgid "Shipment Status Notifications"
1624
+ msgstr ""
1625
+ "Benachrichtigungen zum Sendungsstatus\n"
1626
 
1627
+ #: includes/views/admin_options_trackship_integration.php:23
1628
+ msgid "Tools"
1629
+ msgstr "Werkzeuge"
1630
+
1631
+ #: includes/views/zorem_admin_sidebar.php:15
1632
+ #: includes/views/admin_options_addons.php:90
1633
+ msgid "Get This Add-on >"
1634
+ msgstr ""
1635
+ "Holen Sie sich dieses Add-on>\n"
1636
+
1637
+ #: includes/views/zorem_admin_sidebar.php:27
1638
+ msgid "Upgrade to PRO"
1639
  msgstr ""
1640
+ "Upgrade auf PRO\n"
 
1641
 
1642
+ #: includes/views/admin_options_tools.php:23
1643
+ msgid ""
1644
+ "You can send all your orders from the last 30 days to get shipment status "
1645
+ "from TrackShip:"
1646
+ msgstr ""
1647
+ "Sie können alle Ihre Bestellungen der letzten 30 Tage senden, um den "
1648
+ "Sendungsstatus von TrackShip zu erhalten:\n"
1649
+
1650
+ #: includes/views/admin_options_addons.php:20
1651
+ msgid "TrackShip"
1652
+ msgstr "TrackShip"
1653
+
1654
+ #: includes/views/admin_options_addons.php:36
1655
+ msgid ""
1656
+ "TracksShip is a premium shipment tracking API flatform that fully integrates "
1657
+ "with WooCommerce with the Advanced Shipment Tracking. TrackShip automates "
1658
+ "the order management workflows, reduces customer inquiries, reduces time "
1659
+ "spent on customer service, and improves the post-purchase experience and "
1660
+ "satisfaction of your customers."
1661
+ msgstr ""
1662
+ "TracksShip ist eine Premium-Sendungsverfolgungs-API-Plattform, die mit der "
1663
+ "erweiterten Sendungsverfolgung vollständig in WooCommerce integriert ist. "
1664
+ "TrackShip automatisiert die Auftragsverwaltungsabläufe, reduziert "
1665
+ "Kundenanfragen, verkürzt den Zeitaufwand für den Kundenservice und "
1666
+ "verbessert die Erfahrung und Zufriedenheit Ihrer Kunden nach dem Kauf.\n"
1667
+
1668
+ #: includes/views/admin_options_addons.php:37
1669
+ msgid ""
1670
+ "You must have account TracksShip and connect your store in order to activate "
1671
+ "these advanced features:"
1672
+ msgstr ""
1673
+ "Sie müssen über ein TrackShip-Konto verfügen und eine Verbindung zu Ihrem "
1674
+ "Geschäft herstellen, um diese erweiterten Funktionen zu aktivieren:\n"
1675
+
1676
+ #: includes/views/admin_options_addons.php:51
1677
+ msgid "SIGNUP NOW"
1678
+ msgstr ""
1679
+ "JETZT REGISTRIEREN\n"
1680
+
1681
+ #: includes/views/admin_options_addons.php:80
1682
+ msgid ""
1683
+ "The Tracking Per Item add-on extends the AST plugin and allows you to attach "
1684
+ "tracking numbers to specific line items and to line item quantities."
1685
+ msgstr ""
1686
+ "Das Add-On Sendungsverfolgung erweitert das AST-Plug-In und ermöglicht Ihnen,"
1687
+ " Sendungsverfolgungsnummern an bestimmte Werbebuchungen und "
1688
+ "Werbebuchungsmengen anzuhängen.\n"
1689
+
1690
+ #: includes/views/admin_options_addons.php:110
1691
+ msgid "Deactivate"
1692
+ msgstr "Deaktivieren"
1693
+
1694
+ #: includes/views/admin_options_addons.php:112
1695
+ msgid "Activate"
1696
+ msgstr ""
1697
+ "aktivieren Sie\n"
1698
+
1699
+ #: includes/views/admin_tracking_page_settings.php:39
1700
+ msgid ""
1701
+ "Note - If you select a different page than the Shipment Tracking page, add "
1702
+ "the [wcast-track-order] shortcode to the selected page content."
1703
+ msgstr ""
1704
+ "Hinweis - Wenn Sie eine andere Seite als die Seite \"Sendungsverfolgung\" "
1705
+ "auswählen, fügen Sie dem ausgewählten Seiteninhalt den Shortcode [wcast-"
1706
+ "track-order] hinzu.\n"
1707
+
1708
+ #: includes/views/admin_tracking_page_settings.php:39
1709
+ msgid "more info"
1710
+ msgstr ""
1711
+ "Mehr Info\n"
1712
+
1713
+ #: includes/views/admin_tracking_page_settings.php:66
1714
+ msgid "Text Color"
1715
+ msgstr ""
1716
+ "Textfarbe\n"
1717
+
1718
+ #: includes/views/admin_tracking_page_settings.php:88
1719
+ msgid "Hide tracking event details"
1720
+ msgstr ""
1721
+ "Tracking-Ereignisdetails ausblenden\n"
1722
+
1723
+ #: includes/views/admin_tracking_page_settings.php:110
1724
+ msgid "Preview"
1725
+ msgstr "Vorschau"
1726
+
1727
+ #: includes/views/admin_status_notifications.php:3
1728
  msgid "Shipment Status Notifications "
1729
  msgstr "Benachrichtigungen zum Sendungsstatus"
1730
 
1731
+ #: includes/views/admin_status_notifications.php:27
1732
  msgid ""
1733
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1734
  "the way."
1736
  "Der Spediteur hat die Sendung vom Versender angenommen oder abgeholt. Die "
1737
  "Sendung ist unterwegs."
1738
 
1739
+ #: includes/views/admin_status_notifications.php:41
1740
  msgid "Shipment is returned to sender"
1741
  msgstr "Die Sendung wird an den Absender zurückgeschickt"
1742
 
1743
+ #: includes/views/admin_status_notifications.php:55
1744
  msgid "The shipment is ready to pickup."
1745
  msgstr "Die Sendung ist zur Abholung bereit."
1746
 
1747
+ #: includes/views/admin_status_notifications.php:68
1748
  msgid "Carrier is about to deliver the shipment"
1749
  msgstr "Der Spediteur ist im Begriff, die Sendung zu liefern"
1750
 
1751
+ #: includes/views/admin_status_notifications.php:82
1752
  msgid "The shipment was delivered successfully"
1753
  msgstr "Die Sendung wurde erfolgreich zugestellt"
1754
 
1755
+ #: includes/views/admin_status_notifications.php:83
1756
  msgid ""
1757
  "You already have delivered email enabled, to enable this email you'll need "
1758
  "to disable the order status delivered in settings."
1761
  "aktivieren, müssen Sie den in den Einstellungen angegebenen Bestellstatus "
1762
  "deaktivieren."
1763
 
1764
+ #: includes/views/admin_status_notifications.php:97
1765
  msgid ""
1766
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1767
  "will try to deliver the package again."
1770
  "Normalerweise hinterlässt er eine Nachricht und versucht, das Paket erneut "
1771
  "zuzustellen."
1772
 
1773
+ #: templates/emails/tracking-info.php:225
1774
+ #: templates/myaccount/tracking-info.php:166
1775
+ msgid "Provider Name"
1776
+ msgstr "Anbietername"
 
 
 
 
 
1777
 
1778
  #. %s: Order ID.
1779
  #: templates/emails/wcast-email-order-details.php:47
1782
  msgstr ""
1783
  "Bestellnummer:% s\n"
1784
 
1785
+ #: includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php:368
1786
+ msgid "Cannot create existing order shipment tracking."
1787
+ msgstr ""
1788
+ "Bestehende Sendungsverfolgung für Bestellungen kann nicht erstellt werden.\n"
1789
+
1790
+ #: includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php:377
1791
+ msgid "Invalid order ID."
1792
+ msgstr ""
1793
+ "Ungültige Bestellnummer.\n"
1794
+
1795
+ #: includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php:381
1796
+ msgid "Special character not allowd in tracking number"
1797
+ msgstr ""
1798
+ "Sonderzeichen in Tracking-Nummer nicht zulässig\n"
1799
+
1800
  #. Name of the plugin
1801
  msgid "Advanced Shipment Tracking for WooCommerce"
1802
  msgstr ""
1803
+ "Erweiterte Sendungsverfolgung für WooCommerce\n"
1804
 
1805
  #. Description of the plugin
1806
  msgid ""
1809
  "will appear in customers accounts (in the order panel) and in WooCommerce "
1810
  "order complete email."
1811
  msgstr ""
1812
+ "Fügen Sie Sendungsverfolgungsinformationen zu Ihren WooCommerce-Bestellungen "
1813
+ "hinzu und bieten Sie Kunden eine einfache Möglichkeit, ihre Bestellungen zu "
1814
+ "verfolgen. Sendungsverfolgungsinformationen werden in den Kundenkonten (im "
1815
+ "Bestellfeld) und in der vollständigen E-Mail für Bestellungen von "
1816
+ "WooCommerce angezeigt.\n"
lang/woo-advanced-shipment-tracking-el.mo CHANGED
Binary file
lang/woo-advanced-shipment-tracking-el.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2019-11-01 10:06+0000\n"
6
- "PO-Revision-Date: 2019-11-01 10:07+0000\n"
7
- "Last-Translator: gaurav <gaurav1092@zorem.com>\n"
8
  "Language-Team: Greek\n"
9
  "Language: el\n"
10
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
@@ -12,9 +12,9 @@ msgstr ""
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
- "X-Loco-Version: 2.3.1; wp-5.2.4"
16
 
17
- #: woocommerce-advanced-shipment-tracking.php:114
18
  #, php-format
19
  msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
@@ -23,24 +23,374 @@ msgstr ""
23
  "Παρακαλούμε εγκαταστήστε και ενεργοποιήστε %sWooCommerce%s for WooCommerce "
24
  "Advanced Shipment Tracking!"
25
 
26
- #: woocommerce-advanced-shipment-tracking.php:223
27
  #, php-format
28
  msgid "Your order was shipped with %s and your tracking code is: %s"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  msgstr ""
 
30
 
31
- #: woocommerce-advanced-shipment-tracking.php:430
32
- #: includes/views/admin_options_settings.php:68
33
  #, php-format
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  msgid ""
35
- "<strong>PLEASE NOTE</strong> - If you use the custom order status "
36
- "\"Delivered\", when you deactivate the plugin, you must register this order "
37
- "status in function.php in order to see these orders in the orders admin. You "
38
- "can find the <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
39
- "php here or you can manually change all your \"delivered\" order to "
40
- "\"completed\" before deactivating the plugin."
41
  msgstr ""
 
 
42
 
43
- #: includes/class-wc-advanced-shipment-tracking-front.php:150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  msgid ""
45
  "To track your order please enter your Order ID in the box below and press "
46
  "the \"Track\" button. This was given to you on your receipt and in the "
@@ -51,254 +401,322 @@ msgstr ""
51
  " Αυτό σας δόθηκε στην απόδειξή σας και στο e-mail επιβεβαίωσης που θα έπρεπε "
52
  "να έχετε λάβει.\n"
53
 
54
- #: includes/class-wc-advanced-shipment-tracking-front.php:151
55
- #: includes/class-wc-advanced-shipment-tracking-front.php:152
56
  msgid "Found in your order confirmation email."
57
  msgstr ""
58
  "Βρέθηκε στο email επιβεβαίωσης της παραγγελίας σας.\n"
59
 
60
- #: includes/class-wc-advanced-shipment-tracking-front.php:152
61
  msgid "Order Email"
62
  msgstr ""
63
  "Παραγγελία ηλεκτρονικού ταχυδρομείου\n"
64
 
65
- #: includes/class-wc-advanced-shipment-tracking-front.php:155
66
- #: includes/class-wc-advanced-shipment-tracking.php:276
67
- #: includes/class-wc-advanced-shipment-tracking.php:701
68
- #: includes/class-wc-advanced-shipment-tracking.php:826
69
  #: includes/customizer/class-wc-tracking-info-customizer.php:147
70
- #: includes/customizer/class-wc-tracking-info-customizer.php:444
71
- #: templates/emails/tracking-info.php:174
72
- #: templates/myaccount/tracking-info.php:125
73
  msgid "Track"
74
  msgstr "Παρακολούθηση"
75
 
76
- #: includes/class-wc-advanced-shipment-tracking-front.php:233
77
- #: includes/class-wc-advanced-shipment-tracking-front.php:510
 
 
78
  #, php-format
79
  msgid "Shipment - %s (out of %s)"
80
  msgstr ""
81
  "Αποστολή -% s (από% s)\n"
82
 
83
- #: includes/class-wc-advanced-shipment-tracking-front.php:246
84
- #: includes/class-wc-advanced-shipment-tracking-front.php:250
85
- #: includes/class-wc-advanced-shipment-tracking-front.php:523
86
- #: includes/class-wc-advanced-shipment-tracking-front.php:527
87
- msgid "Estimated Delivery Date: "
88
- msgstr "Εκτιμώμενη Ημερομηνία Παράδοσης:"
 
 
 
 
 
 
 
 
89
 
90
- #: includes/class-wc-advanced-shipment-tracking-front.php:359
91
- #: includes/class-wc-advanced-shipment-tracking-front.php:636
92
- #: includes/class-wc-advanced-shipment-tracking-front.php:812
93
  msgid "Tracking Details"
94
  msgstr "Στοιχεία παρακολούθησης"
95
 
96
- #: includes/class-wc-advanced-shipment-tracking-front.php:378
97
- #: includes/class-wc-advanced-shipment-tracking-front.php:655
98
- #: includes/class-wc-advanced-shipment-tracking-front.php:833
 
99
  msgid "view more"
100
  msgstr "Δείτε περισσότερα"
101
 
102
- #: includes/class-wc-advanced-shipment-tracking-front.php:379
103
- #: includes/class-wc-advanced-shipment-tracking-front.php:656
104
- #: includes/class-wc-advanced-shipment-tracking-front.php:834
 
105
  msgid "view less"
106
  msgstr "δείτε λιγότερο"
107
 
108
- #: includes/class-wc-advanced-shipment-tracking-front.php:387
109
- #: includes/class-wc-advanced-shipment-tracking-front.php:664
110
- msgid "Tracking details not found in TrackShip"
111
- msgstr ""
112
-
113
- #: includes/class-wc-advanced-shipment-tracking-front.php:747
114
- msgid "Estimated Delivery Date"
115
- msgstr ""
116
-
117
  #: includes/class-wc-advanced-shipment-tracking.php:95
118
- #: includes/class-wc-advanced-shipment-tracking.php:260
119
  #: includes/customizer/class-wcast-customizer.php:31
120
  msgid "Shipment Tracking"
121
  msgstr "Παρακολούθηση Αποστολής"
122
 
123
  #: includes/class-wc-advanced-shipment-tracking.php:184
124
- #: includes/class-wc-advanced-shipment-tracking.php:374
 
125
  msgid "Mark as Shipped?"
126
- msgstr ""
127
-
128
- #: includes/class-wc-advanced-shipment-tracking.php:185
129
- msgid "Shipped"
130
- msgstr ""
131
 
132
  #: includes/class-wc-advanced-shipment-tracking.php:187
133
- #: includes/class-wc-advanced-shipment-tracking.php:377
 
134
  msgid "Mark as Completed?"
135
- msgstr ""
136
 
137
  #: includes/class-wc-advanced-shipment-tracking.php:188
 
138
  msgid "Completed"
139
- msgstr ""
140
 
141
  #: includes/class-wc-advanced-shipment-tracking.php:195
 
142
  msgid "Add Tracking Number"
143
- msgstr ""
144
 
145
- #: includes/class-wc-advanced-shipment-tracking.php:200
146
- #: includes/class-wc-advanced-shipment-tracking.php:395
 
 
 
147
  msgid "Provider:"
148
  msgstr "Μεταφορέας:"
149
 
150
- #: includes/class-wc-advanced-shipment-tracking.php:220
151
- #: includes/class-wc-advanced-shipment-tracking.php:433
 
152
  msgid "Tracking number:"
153
  msgstr "Αριθμός Παρακολούθησης:"
154
 
155
- #: includes/class-wc-advanced-shipment-tracking.php:224
156
- #: includes/class-wc-advanced-shipment-tracking.php:441
 
157
  msgid "Date shipped:"
158
  msgstr "Ημερομηνία αποστολής:"
159
 
160
- #: includes/class-wc-advanced-shipment-tracking.php:225
161
- #: includes/class-wc-advanced-shipment-tracking.php:442
162
- #: includes/class-wc-advanced-shipment-tracking.php:445
163
- msgid "Y-m-d"
164
- msgstr ""
165
-
166
- #: includes/class-wc-advanced-shipment-tracking.php:231
167
- #: includes/class-wc-advanced-shipment-tracking.php:451
168
- msgid "Mark as"
169
- msgstr ""
170
 
171
- #: includes/class-wc-advanced-shipment-tracking.php:234
172
- #: includes/class-wc-advanced-shipment-tracking.php:455
 
173
  msgid "Partial Shipped"
174
- msgstr ""
175
 
176
- #: includes/class-wc-advanced-shipment-tracking.php:276
177
- #: includes/class-wc-advanced-shipment-tracking.php:469
178
- msgid "Click here to track your shipment"
179
- msgstr "Πατήστε εδώ για παρακολούθηση της παραγγελίας σας"
180
 
181
  #. 1: shipping date
182
- #: includes/class-wc-advanced-shipment-tracking.php:284
183
  #, php-format
184
  msgid "Shipped on %s"
185
  msgstr "Στάλθηκε στις %s"
186
 
187
- #: includes/class-wc-advanced-shipment-tracking.php:391
188
  msgid "Add Tracking Info"
189
  msgstr "Προσθήκη Παρακολούθησης"
190
 
191
- #: includes/class-wc-advanced-shipment-tracking.php:396
192
  msgid "Select Provider"
193
  msgstr "Επιλογή Παροχέα"
194
 
195
- #: includes/class-wc-advanced-shipment-tracking.php:468
196
  msgid "Save Tracking"
197
  msgstr "Αποθήκευση Παρακολούθησης"
198
 
199
- #: includes/class-wc-advanced-shipment-tracking.php:469
200
  msgid "Preview:"
201
  msgstr "Επισκόπηση:"
202
 
203
- #: includes/class-wc-advanced-shipment-tracking.php:675
204
  #, php-format
205
  msgid ""
206
  "Tracking info was deleted for tracking provider %s with tracking number %s"
207
  msgstr ""
 
 
208
 
209
- #: includes/class-wc-advanced-shipment-tracking.php:1042
210
  #, php-format
211
  msgid "Order was shipped with %s and tracking number is: %s"
212
- msgstr ""
213
 
214
  #: includes/class-wc-advanced-shipment-welcome.php:38
215
  #: includes/class-wc-advanced-shipment-welcome.php:39
216
  msgid "Welcome to Advanced Shipment Tracking"
217
  msgstr ""
 
218
 
219
  #: includes/class-wc-advanced-shipment-welcome.php:90
220
  #: includes/class-wc-advanced-shipment-welcome.php:129
221
  #: includes/class-wc-advanced-shipment-welcome.php:147
222
  msgid "Save and Continue"
223
- msgstr ""
224
 
225
  #: includes/class-wc-advanced-shipment-welcome.php:177
226
- #: includes/views/admin_options_trackship_integration.php:26
227
  msgid "Connection status"
228
- msgstr ""
229
 
230
  #: includes/class-wc-advanced-shipment-welcome.php:184
231
- #: includes/views/admin_options_trackship_integration.php:33
232
  msgid "TrackShip Connection Status"
233
  msgstr "Κατάσταση σύνδεσης TrackShip"
234
 
235
- #: includes/class-wc-advanced-shipment-welcome.php:188
236
- #: includes/views/admin_options_trackship_integration.php:37
237
- msgid "Connected"
238
- msgstr ""
239
- "Συνδεδεμένος\n"
240
-
241
  #: includes/class-wc-advanced-shipment-welcome.php:194
242
- #: includes/views/admin_options_trackship_integration.php:43
243
  msgid "Trackers Balance"
244
- msgstr ""
245
 
246
  #: includes/class-wc-advanced-shipment-welcome.php:202
247
- #: includes/views/admin_options_trackship_integration.php:51
248
  msgid "Current Plan"
249
- msgstr ""
250
 
251
  #: includes/class-wc-advanced-shipment-welcome.php:217
252
- #: includes/views/admin_options_trackship_integration.php:66
 
253
  msgid ""
254
  "You are now connected with TrackShip! TrackShip makes it effortless to "
255
  "automate your post shipping operations and get tracking and delivery status "
256
  "updates directly in the WooCommerce admin."
257
  msgstr ""
258
-
259
- #: includes/class-wc-advanced-shipment-welcome.php:222
260
- #: includes/views/admin_options_bulk_upload.php:58
261
- #: includes/views/admin_options_trackship_integration.php:71
262
- #: includes/views/zorem_admin_ts_sidebar.php:12
263
- msgid "Documentation"
264
- msgstr ""
265
 
266
  #: includes/class-wc-advanced-shipment-welcome.php:223
267
- #: includes/views/admin_options_trackship_integration.php:72
268
  msgid "TrackShip Dashboard"
269
- msgstr ""
270
 
271
  #: includes/class-wc-advanced-shipment-welcome.php:253
272
  msgid "Save"
273
- msgstr ""
274
 
275
- #: includes/class-wc-advanced-shipment-welcome.php:310
276
- msgid ""
277
- "Get Shipment Status is limited to 100 orders at a time, please select up to "
278
- "100 orders."
279
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
 
281
- #: includes/class-wc-advanced-shipment-welcome.php:343
282
- msgid "Data saved successfully."
283
- msgstr "Τα δεδομένα αποθηκεύτηκαν με επιτυχία."
284
 
285
- #: includes/class-wc-advanced-shipment-welcome.php:344
286
- msgid "Really delete this entry? This will not be undo."
287
  msgstr ""
288
- "Θέλετε πραγματικά να διαγράψετε αυτή την εγγραφή; Η ενέργεια αυτή δεν μπορεί "
289
- "να αναιρεθεί."
290
 
291
- #: includes/class-wc-advanced-shipment-welcome.php:345
292
- msgid "You can upload only csv file."
293
- msgstr "Μπορείτε να ανεβάσετε μόνο το αρχείο csv."
294
 
295
- #: includes/class-wc-advanced-shipment-welcome.php:346
296
- msgid "This browser does not support HTML5."
297
- msgstr "Αυτό το πρόγραμμα περιήγησης δεν υποστηρίζει HTML5."
298
-
299
- #: includes/class-wc-advanced-shipment-welcome.php:347
300
- msgid "Please upload a valid CSV file."
301
- msgstr "Ανεβάστε ένα έγκυρο αρχείο CSV."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
302
 
303
  #: includes/customizer/class-wcast-customizer.php:40
304
  msgid "Shipment Status Emails"
@@ -316,55 +734,16 @@ msgstr ""
316
 
317
  #: includes/customizer/class-wcast-customizer.php:68
318
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:143
319
- msgid "Partial Shipped status email"
320
- msgstr ""
321
 
322
  #: includes/customizer/class-wcast-customizer.php:76
323
- msgid "Pre Transit"
324
- msgstr ""
325
- "Pre Transit\n"
326
-
327
- #: includes/customizer/class-wcast-customizer.php:84
328
- #: includes/customizer/class-wc-intransit-email-customizer.php:127
329
- #: includes/views/admin_options_trackship_integration.php:161
330
- msgid "In Transit"
331
- msgstr ""
332
- "Στη διαμετακόμιση\n"
333
-
334
- #: includes/customizer/class-wcast-customizer.php:92
335
- #: includes/customizer/class-wc-returntosender-email-customizer.php:124
336
- #: includes/views/admin_options_trackship_integration.php:175
337
- msgid "Return To Sender"
338
  msgstr ""
339
- "Επιστροφή στον αποστολέα\n"
340
-
341
- #: includes/customizer/class-wcast-customizer.php:99
342
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
343
- #: includes/views/admin_options_trackship_integration.php:189
344
- msgid "Available For Pickup"
345
- msgstr ""
346
- "Διαθέσιμο για παραλαβή\n"
347
 
348
- #: includes/customizer/class-wcast-customizer.php:106
349
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
350
- #: includes/views/admin_options_trackship_integration.php:202
351
- msgid "Out For Delivery"
352
- msgstr ""
353
- "Out για παράδοση\n"
354
-
355
- #: includes/customizer/class-wcast-customizer.php:114
356
- #: includes/customizer/class-wc-delivered-email-customizer.php:125
357
- #: includes/views/admin_options_trackship_integration.php:216
358
- msgid "Delivered"
359
- msgstr "Παραδόθηκε"
360
-
361
- #: includes/customizer/class-wcast-customizer.php:122
362
- #: includes/customizer/class-wc-failure-email-customizer.php:124
363
- #: includes/views/admin_options_trackship_integration.php:231
364
- msgid "Failed Attempt"
365
- msgstr "ΑΠΟΤΥΧΗΜΕΝΗ προσπαθεια"
366
-
367
- #: includes/customizer/class-wcast-customizer.php:390
368
  msgid "Select order to preview"
369
  msgstr ""
370
  "Επιλέξτε παραγγελία για προεπισκόπηση\n"
@@ -395,6 +774,7 @@ msgstr ""
395
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
396
  #: includes/customizer/class-wc-returntosender-email-customizer.php:157
397
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:144
 
398
  msgid "This section lets you customize the Email Content."
399
  msgstr ""
400
  "Αυτή η ενότητα σάς επιτρέπει να προσαρμόσετε το περιεχόμενο ηλεκτρονικού "
@@ -412,8 +792,9 @@ msgstr ""
412
  #: includes/customizer/class-wc-intransit-email-customizer.php:191
413
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
414
  #: includes/customizer/class-wc-returntosender-email-customizer.php:187
415
- #: includes/customizer/class-wc-tracking-info-customizer.php:178
416
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:177
 
417
  msgid "Preview order"
418
  msgstr ""
419
  "Προεπισκόπηση σειράς\n"
@@ -428,42 +809,41 @@ msgstr ""
428
  msgid "E.g. {customer.email}, admin@example.org"
429
  msgstr "Πχ: {customer.email}, admin@example.org"
430
 
 
431
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
432
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
 
433
  #: includes/customizer/class-wc-delivered-email-customizer.php:232
434
  #: includes/customizer/class-wc-delivered-email-customizer.php:254
 
 
 
 
 
435
  #: includes/customizer/class-wc-failure-email-customizer.php:231
436
  #: includes/customizer/class-wc-failure-email-customizer.php:253
 
437
  #: includes/customizer/class-wc-intransit-email-customizer.php:235
438
  #: includes/customizer/class-wc-intransit-email-customizer.php:257
 
439
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
440
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
 
441
  #: includes/customizer/class-wc-returntosender-email-customizer.php:231
442
  #: includes/customizer/class-wc-returntosender-email-customizer.php:253
443
- msgid "Available placeholders: {site_title}, {order_number}"
444
- msgstr "Διαθέσιμοι εντολοδότες: {site_title}, {order_number}"
445
-
446
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:237
447
- #: includes/customizer/class-wc-delivered-email-customizer.php:238
448
- #: includes/customizer/class-wc-email-customizer.php:249
449
- #: includes/customizer/class-wc-failure-email-customizer.php:237
450
- #: includes/customizer/class-wc-intransit-email-customizer.php:241
451
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:239
452
- #: includes/customizer/class-wc-returntosender-email-customizer.php:237
453
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:206
454
- msgid "Please enter email subject here"
455
- msgstr "Παρακαλούμε εισάγετε το θέμα email εδώ"
456
-
457
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:259
458
- #: includes/customizer/class-wc-delivered-email-customizer.php:260
459
- #: includes/customizer/class-wc-email-customizer.php:272
460
- #: includes/customizer/class-wc-failure-email-customizer.php:259
461
- #: includes/customizer/class-wc-intransit-email-customizer.php:263
462
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:261
463
- #: includes/customizer/class-wc-returntosender-email-customizer.php:259
464
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:229
465
- msgid "Please enter email heading here"
466
- msgstr "Παρακαλούμε εισάγετε την κεφαλίδα email εδώ"
467
 
468
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
469
  #: includes/customizer/class-wc-delivered-email-customizer.php:275
@@ -507,22 +887,23 @@ msgstr ""
507
 
508
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
509
  #: includes/customizer/class-wc-delivered-email-customizer.php:340
510
- #: includes/customizer/class-wc-email-customizer.php:392
511
  #: includes/customizer/class-wc-failure-email-customizer.php:339
512
- #: includes/customizer/class-wc-intransit-email-customizer.php:363
513
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
514
  #: includes/customizer/class-wc-returntosender-email-customizer.php:339
515
  msgid "Google Analytics link tracking"
516
- msgstr ""
517
 
518
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
519
  #: includes/customizer/class-wc-delivered-email-customizer.php:341
520
  #: includes/customizer/class-wc-failure-email-customizer.php:340
521
- #: includes/customizer/class-wc-intransit-email-customizer.php:364
522
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
523
  #: includes/customizer/class-wc-returntosender-email-customizer.php:340
524
  msgid "This will be appended to URL in the email content"
525
  msgstr ""
 
526
 
527
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
528
  #: includes/customizer/class-wc-delivered-email-customizer.php:362
@@ -532,36 +913,31 @@ msgstr ""
532
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
533
  #: includes/customizer/class-wc-returntosender-email-customizer.php:361
534
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:245
 
535
  msgid "Email content"
536
  msgstr "Περιεχόμενο email"
537
 
538
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:380
539
- #: includes/customizer/class-wc-delivered-email-customizer.php:382
540
- #: includes/customizer/class-wc-email-customizer.php:413
541
- #: includes/customizer/class-wc-failure-email-customizer.php:381
542
- #: includes/customizer/class-wc-intransit-email-customizer.php:385
543
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:383
544
- #: includes/customizer/class-wc-returntosender-email-customizer.php:381
545
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:264
546
- msgid "Available placeholders"
547
- msgstr ""
548
- "Διαθέσιμες επιλογές κράτησης θέσης\n"
549
-
550
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:427
551
- #: includes/customizer/class-wc-delivered-email-customizer.php:429
552
- #: includes/customizer/class-wc-email-customizer.php:446
553
- #: includes/customizer/class-wc-failure-email-customizer.php:428
554
- #: includes/customizer/class-wc-intransit-email-customizer.php:431
555
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:429
556
- #: includes/customizer/class-wc-returntosender-email-customizer.php:427
557
- #: includes/customizer/class-wc-tracking-info-customizer.php:791
558
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:297
559
  msgid "Please select order to preview."
560
- msgstr ""
561
 
562
  #: includes/customizer/class-wc-delivered-email-customizer.php:124
563
  msgid "Your order #{order_number} has been delivered"
564
- msgstr ""
565
 
566
  #: includes/customizer/class-wc-delivered-email-customizer.php:126
567
  #: includes/customizer/class-wc-email-customizer.php:132
@@ -593,51 +969,41 @@ msgstr ""
593
  "Ενεργοποίηση μηνύματος ηλεκτρονικού ταχυδρομείου κατάστασης παραγγελίας\n"
594
 
595
  #: includes/customizer/class-wc-email-customizer.php:201
596
- #: includes/customizer/class-wc-tracking-info-customizer.php:182
597
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:181
 
598
  msgid "Please select a order..."
599
  msgstr ""
600
  "Παρακαλώ επιλέξτε παραγγελία ...\n"
601
 
602
- #: includes/customizer/class-wc-email-customizer.php:243
603
- #: includes/customizer/class-wc-email-customizer.php:266
604
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:200
605
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:223
606
- msgid "Available variables: {site_title}, {order_number}"
607
- msgstr ""
608
-
609
- #: includes/customizer/class-wc-email-customizer.php:289
610
- #: includes/customizer/class-wc-partial-shipped-email-customizer.php:246
611
- msgid ""
612
- "available variables: {site_title}, {customer_email}, {customer_first_name}, "
613
- "{customer_last_name}, {customer_username}, {order_number}"
614
- msgstr ""
615
-
616
- #: includes/customizer/class-wc-email-customizer.php:308
617
  msgid "Display tracking details"
618
- msgstr ""
619
 
620
- #: includes/customizer/class-wc-email-customizer.php:324
621
  msgid "Display order details"
622
- msgstr ""
623
 
624
- #: includes/customizer/class-wc-email-customizer.php:341
625
  msgid "Display Shipping Address"
626
- msgstr ""
627
 
628
- #: includes/customizer/class-wc-email-customizer.php:358
629
  msgid "Display Billing Address"
630
- msgstr ""
631
 
632
- #: includes/customizer/class-wc-email-customizer.php:375
633
  msgid "Enable Google Analytics tracking"
634
- msgstr ""
635
 
636
- #: includes/customizer/class-wc-email-customizer.php:393
637
  msgid ""
638
  "This will be appended to URL in the email content – e.g. "
639
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
640
  msgstr ""
 
 
 
641
 
642
  #: includes/customizer/class-wc-failure-email-customizer.php:123
643
  msgid "Your order #{order_number} is Failed Attempt"
@@ -733,206 +1099,281 @@ msgstr ""
733
  "αποστολέα"
734
 
735
  #: includes/customizer/class-wc-tracking-info-customizer.php:144
736
- #: includes/customizer/class-wc-tracking-info-customizer.php:364
737
- #: templates/emails/tracking-info.php:132
738
- #: templates/myaccount/tracking-info.php:91
739
  msgid "Provider"
740
  msgstr "Μεταφορέας"
741
 
742
  #: includes/customizer/class-wc-tracking-info-customizer.php:145
743
- #: includes/customizer/class-wc-tracking-info-customizer.php:386
744
- #: templates/emails/tracking-info.php:156
745
- #: templates/myaccount/tracking-info.php:113
746
  msgid "Tracking Number"
747
  msgstr "Αριθμός"
748
 
749
  #: includes/customizer/class-wc-tracking-info-customizer.php:146
750
- #: includes/customizer/class-wc-tracking-info-customizer.php:407
751
  msgid "Shipped Date"
752
  msgstr ""
753
  "Ημερομηνία αποστολής\n"
754
 
755
- #: includes/customizer/class-wc-tracking-info-customizer.php:179
756
- msgid ""
757
- "select from last 20 orders one order that you added tracking info in order "
758
- "to preview and design the tracking info table."
759
  msgstr ""
760
- "επιλέξτε από τις τελευταίες 20 παραγγελίες μία παραγγελία που προσθέσατε "
761
- "πληροφορίες παρακολούθησης για να δείτε και να σχεδιάσετε τον πίνακα "
762
- "πληροφοριών παρακολούθησης.\n"
763
 
764
- #: includes/customizer/class-wc-tracking-info-customizer.php:198
765
- #: includes/views/admin_options_settings.php:15
766
- #: includes/views/admin_options_trackship_integration.php:82
767
- msgid "General Settings"
768
- msgstr "Γενικές Ρυθμίσεις"
769
-
770
- #: includes/customizer/class-wc-tracking-info-customizer.php:213
771
  msgid "Tracking Display Position"
772
  msgstr "Παρακολούθηση θέσης προβολής"
773
 
774
- #: includes/customizer/class-wc-tracking-info-customizer.php:217
775
  msgid "Before Order Details"
776
  msgstr "Πριν από τις λεπτομέρειες της παραγγελίας"
777
 
778
- #: includes/customizer/class-wc-tracking-info-customizer.php:218
779
  msgid "After Order Details"
780
  msgstr "Μετά από Λεπτομέρειες Παραγγελίας"
781
 
782
- #: includes/customizer/class-wc-tracking-info-customizer.php:233
783
- msgid "Main Header text"
784
- msgstr "Κύριο κείμενο κεφαλίδας"
 
785
 
786
- #: includes/customizer/class-wc-tracking-info-customizer.php:240
787
  msgid "Tracking Information"
788
  msgstr "Πληροφορίες Παρακολούθησης"
789
 
790
- #: includes/customizer/class-wc-tracking-info-customizer.php:255
791
  msgid "Additional text after header"
792
  msgstr "Πρόσθετο κείμενο μετά την κεφαλίδα"
793
 
794
- #: includes/customizer/class-wc-tracking-info-customizer.php:276
795
- msgid "Table Content"
 
796
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
797
 
798
  #: includes/customizer/class-wc-tracking-info-customizer.php:291
799
- msgid "Display Shipment Provider image"
800
- msgstr "Εμφάνιση εικόνας παροχέα αποστολής"
 
801
 
802
- #: includes/customizer/class-wc-tracking-info-customizer.php:308
803
- msgid "Hide date"
804
- msgstr "Απόκρυψη ημερομηνίας"
805
 
806
- #: includes/customizer/class-wc-tracking-info-customizer.php:325
807
- msgid "Table Header"
808
  msgstr ""
 
 
 
 
 
 
 
 
 
809
 
810
- #: includes/customizer/class-wc-tracking-info-customizer.php:340
811
- msgid "Hide Header"
 
 
 
 
 
 
 
 
 
 
 
 
812
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
813
 
814
- #: includes/customizer/class-wc-tracking-info-customizer.php:357
815
- msgid "Provider Header Text"
816
  msgstr "Κείμενο κεφαλίδας παροχέα"
817
 
818
- #: includes/customizer/class-wc-tracking-info-customizer.php:379
819
- msgid "Tracking Number Header Text"
820
- msgstr "Κείμενο κεφαλίδας αριθμού παρακολούθησης"
 
821
 
822
- #: includes/customizer/class-wc-tracking-info-customizer.php:400
823
- msgid "Shipped Date Header Text"
824
- msgstr "Κείμενο κεφαλίδας μεταφερόμενης ημερομηνίας"
 
825
 
826
- #: includes/customizer/class-wc-tracking-info-customizer.php:421
827
  msgid "Track Label"
828
  msgstr "Ετικέτα διαδρομής"
829
 
830
- #: includes/customizer/class-wc-tracking-info-customizer.php:437
831
- msgid "Track Header Text"
832
- msgstr "Κείμενο κεφαλίδας κομματιού"
833
-
834
- #: includes/customizer/class-wc-tracking-info-customizer.php:459
835
- msgid "Table header font size"
836
- msgstr "Μέγεθος γραμματοσειράς κεφαλίδας πίνακα"
837
 
838
- #: includes/customizer/class-wc-tracking-info-customizer.php:476
839
- msgid "Table header font color"
840
- msgstr "Χρώμα γραμματοσειράς κεφαλίδας πίνακα"
841
 
842
- #: includes/customizer/class-wc-tracking-info-customizer.php:492
843
- msgid "Table Design"
844
  msgstr ""
845
- "Σχεδιασμός πίνακα\n"
 
 
 
 
846
 
847
- #: includes/customizer/class-wc-tracking-info-customizer.php:507
848
  msgid "Padding"
849
  msgstr ""
850
  "Υλικό παραγεμίσματος\n"
851
 
852
- #: includes/customizer/class-wc-tracking-info-customizer.php:527
 
853
  msgid "Background color"
854
  msgstr ""
855
  "Χρώμα του φόντου\n"
856
 
857
- #: includes/customizer/class-wc-tracking-info-customizer.php:555
 
858
  msgid "Border color"
859
  msgstr ""
860
  "Χρώμα πλαισίου\n"
861
 
862
- #: includes/customizer/class-wc-tracking-info-customizer.php:571
863
  msgid "Border size"
864
  msgstr ""
865
  "Μέγεθος περιθωρίου\n"
866
 
867
- #: includes/customizer/class-wc-tracking-info-customizer.php:595
868
- msgid "Table text align"
869
- msgstr "Ευθυγράμμιση κειμένου πίνακα"
 
870
 
871
- #: includes/customizer/class-wc-tracking-info-customizer.php:618
872
- msgid "Table content font size"
873
- msgstr "Μέγεθος γραμματοσειράς περιεχομένου πίνακα"
874
 
875
- #: includes/customizer/class-wc-tracking-info-customizer.php:635
876
- msgid "Table content font color"
877
- msgstr "Χρώμα γραμματοσειράς περιεχομένου πίνακα"
878
 
879
- #: includes/customizer/class-wc-tracking-info-customizer.php:651
880
  msgid "Content line height"
881
  msgstr ""
882
  "Το ύψος της γραμμής περιεχομένου\n"
883
 
884
- #: includes/customizer/class-wc-tracking-info-customizer.php:672
885
  msgid "Content font weight"
886
  msgstr ""
887
  "Βάρος γραμματοσειράς περιεχομένου\n"
888
 
889
- #: includes/customizer/class-wc-tracking-info-customizer.php:694
890
- msgid "Track Button Design"
891
  msgstr ""
 
892
 
893
- #: includes/customizer/class-wc-tracking-info-customizer.php:708
894
- msgid "Track Link Font Color"
895
- msgstr "Χρώμα γραμματοσειράς γραμμής σύνδεσης"
 
896
 
897
- #: includes/customizer/class-wc-tracking-info-customizer.php:724
898
- msgid "Track Link Background Color"
899
- msgstr "Χρώμα φόντου συνδέσμου διαδρομής"
900
 
901
- #: includes/customizer/class-wc-tracking-info-customizer.php:739
902
- msgid "Track link Border"
903
- msgstr "Γραμμή συνδέσμου γραμμής"
 
 
 
 
 
904
 
905
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:116
906
- msgid "Your {site_title} order is now partial shipped"
907
- msgstr ""
908
 
909
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:118
910
  msgid ""
911
  "Hi there. we thought you'd like to know that your recent order from "
912
- "{site_title} has been Partial Shipped."
913
  msgstr ""
 
 
914
 
915
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:159
916
- msgid "Enable Partial Shipped order status email"
 
 
 
 
917
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
918
 
919
  #: includes/emails/class-shipment-delivered-email.php:32
920
  msgid "Delivered order"
921
- msgstr ""
922
 
923
  #: includes/emails/class-shipment-delivered-email.php:33
924
  msgid ""
925
  "Order delivered emails are sent to customers when their orders are marked "
926
  "delivered and usually indicate that their orders have been shipped."
927
  msgstr ""
 
 
 
928
 
929
- #: includes/emails/class-shipment-delivered-email.php:279
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2020-01-09 12:07+0000\n"
6
+ "PO-Revision-Date: 2020-01-09 12:08+0000\n"
7
+ "Last-Translator: John <gaurav1092@zorem.com>\n"
8
  "Language-Team: Greek\n"
9
  "Language: el\n"
10
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
+ "X-Loco-Version: 2.3.1; wp-5.3.2"
16
 
17
+ #: woocommerce-advanced-shipment-tracking.php:117
18
  #, php-format
19
  msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
23
  "Παρακαλούμε εγκαταστήστε και ενεργοποιήστε %sWooCommerce%s for WooCommerce "
24
  "Advanced Shipment Tracking!"
25
 
26
+ #: woocommerce-advanced-shipment-tracking.php:254
27
  #, php-format
28
  msgid "Your order was shipped with %s and your tracking code is: %s"
29
+ msgstr "Η παραγγελία σας εστάλη με% s και ο κωδικός παρακολούθησης είναι:% s"
30
+
31
+ #: woocommerce-advanced-shipment-tracking.php:465
32
+ #: includes/views/admin_options_settings.php:190
33
+ #, php-format
34
+ msgid ""
35
+ "<strong>Note:</strong> - If you use the custom order status, when you "
36
+ "deactivate the plugin, you must register the order status, otherwise these "
37
+ "orders will not display on your orders admin. You can find more information "
38
+ "and the code <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
39
+ "php here."
40
+ msgstr ""
41
+ "Σημείωση: - Εάν χρησιμοποιείτε την κατάσταση της προσαρμοσμένης παραγγελίας, "
42
+ "όταν απενεργοποιείτε την προσθήκη, πρέπει να καταχωρήσετε την κατάσταση της "
43
+ "παραγγελίας, διαφορετικά αυτές οι εντολές δε θα εμφανιστούν στις εντολές σας "
44
+ "admin. Μπορείτε να βρείτε περισσότερες πληροφορίες και το απόσπασμα κώδικα "
45
+ "για χρήση στις λειτουργίες.php εδώ.\n"
46
+
47
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:309
48
+ msgid "Shipment status"
49
+ msgstr "Κατάσταση αποστολής"
50
+
51
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:427
52
+ #: includes/class-wc-advanced-shipment-welcome.php:310
53
+ msgid ""
54
+ "Get Shipment Status is limited to 100 orders at a time, please select up to "
55
+ "100 orders."
56
+ msgstr ""
57
+ "Η λήψη της Κατάστασης αποστολής περιορίζεται σε 100 παραγγελίες τη φορά, "
58
+ "παρακαλούμε επιλέξτε έως και 100 παραγγελίες."
59
+
60
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:462
61
+ #: includes/class-wc-advanced-shipment-welcome.php:343
62
+ msgid "Data saved successfully."
63
+ msgstr "Τα δεδομένα αποθηκεύτηκαν με επιτυχία."
64
+
65
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:463
66
+ #: includes/class-wc-advanced-shipment-welcome.php:344
67
+ msgid "Really delete this entry? This will not be undo."
68
+ msgstr ""
69
+ "Θέλετε πραγματικά να διαγράψετε αυτή την εγγραφή; Η ενέργεια αυτή δεν μπορεί "
70
+ "να αναιρεθεί."
71
+
72
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:464
73
+ #: includes/class-wc-advanced-shipment-welcome.php:345
74
+ msgid "You can upload only csv file."
75
+ msgstr "Μπορείτε να ανεβάσετε μόνο το αρχείο csv."
76
+
77
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:465
78
+ #: includes/class-wc-advanced-shipment-welcome.php:346
79
+ msgid "This browser does not support HTML5."
80
+ msgstr "Αυτό το πρόγραμμα περιήγησης δεν υποστηρίζει HTML5."
81
+
82
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:466
83
+ #: includes/class-wc-advanced-shipment-welcome.php:347
84
+ msgid "Please upload a valid CSV file."
85
+ msgstr "Ανεβάστε ένα έγκυρο αρχείο CSV."
86
+
87
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:535
88
+ msgid "Shipping Providers"
89
+ msgstr "Προμηθευτές αποστολής"
90
+
91
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:537
92
+ msgid "Bulk Upload"
93
+ msgstr "Μαζική μεταφόρτωση"
94
+
95
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:543
96
+ msgid "Add-ons"
97
+ msgstr "Πρόσθετα"
98
+
99
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:546
100
+ #: includes/class-wc-advanced-shipment-welcome.php:222
101
+ #: includes/views/admin_options_bulk_upload.php:63
102
+ #: includes/views/admin_trackship_dashboard.php:51
103
+ msgid "Documentation"
104
+ msgstr "Απόδειξη με έγγραφα"
105
+
106
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:547
107
+ msgid "How to Video"
108
+ msgstr "Πώς να Βίντεο"
109
+
110
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:695
111
+ msgid "Custom Statuses"
112
+ msgstr "Προσαρμοσμένες καταστάσεις"
113
+
114
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:742
115
+ #: includes/class-wc-advanced-shipment-welcome.php:188
116
+ #: includes/views/zorem_admin_sidebar.php:29
117
+ #: includes/views/admin_options_addons.php:46
118
+ #: includes/views/admin_trackship_dashboard.php:17
119
+ msgid "Connected"
120
  msgstr ""
121
+ "Συνδεδεμένος\n"
122
 
123
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:874
 
124
  #, php-format
125
+ msgid "%s %s orders with tracking info"
126
+ msgstr "% s% s παραγγελίες με πληροφορίες παρακολούθησης"
127
+
128
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:875
129
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:884
130
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:893
131
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1838
132
+ #: includes/views/admin_options_tools.php:14
133
+ msgid "Get Shipment Status"
134
+ msgstr "Λήψη κατάστασης αποστολής"
135
+
136
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:883
137
+ #, php-format
138
+ msgid "%s %s orders with “TrackShip balance is 0”"
139
+ msgstr "Οι εντολές% s% s με \"Το υπόλοιπο TrackShip είναι 0\""
140
+
141
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:892
142
+ #, php-format
143
+ msgid "%s %s orders with “Please do connection”"
144
+ msgstr "% s% s παραγγελίες με \"Παρακαλώ κάντε σύνδεση\""
145
+
146
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:930
147
+ msgid "Enable/Disable"
148
+ msgstr "Ενεργοποιώ απενεργοποιώ"
149
+
150
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:936
151
+ msgid "Set order status Delivered when order is delivered"
152
+ msgstr ""
153
+ "Ορισμός σειράς παραγγελίας Παραδίδεται κατά την παράδοση της παραγγελίας"
154
+
155
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:968
156
  msgid ""
157
+ "You must add the shortcode [wcast-track-order] to the selected page in order "
158
+ "for the tracking page to work."
 
 
 
 
159
  msgstr ""
160
+ "Πρέπει να προσθέσετε το shortcode [wcast-track-order] στην επιλεγμένη σελίδα "
161
+ "για να λειτουργήσει η σελίδα παρακολούθησης."
162
 
163
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:976
164
+ #: includes/views/admin_tracking_page_settings.php:24
165
+ msgid "Select Tracking Page"
166
+ msgstr "Επιλέξτε Σελίδα παρακολούθησης"
167
+
168
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:984
169
+ msgid "Use the tracking page in the customer email/my account tracking link"
170
+ msgstr ""
171
+ "Χρησιμοποιήστε τη σελίδα παρακολούθησης στη σύνδεση ηλεκτρονικού "
172
+ "ταχυδρομείου πελάτη / λογαριασμού παρακολούθησης λογαριασμού"
173
+
174
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:990
175
+ #: includes/views/admin_tracking_page_settings.php:49
176
+ msgid "Tracking Page Layout"
177
+ msgstr ""
178
+ "Παρακολούθηση διάταξης σελίδας\n"
179
+
180
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1001
181
+ msgid "Select primary color for tracking page"
182
+ msgstr "Επιλέξτε το αρχικό χρώμα για τη σελίδα παρακολούθησης"
183
+
184
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1007
185
+ msgid "Select content border color for tracking page"
186
+ msgstr ""
187
+ "Επιλέξτε το χρώμα περιγράμματος περιεχομένου για τη σελίδα παρακολούθησης"
188
+
189
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1013
190
+ #: includes/views/admin_tracking_page_settings.php:83
191
+ msgid "Hide Shipping Provider Image"
192
+ msgstr ""
193
+ "Απόκρυψη εικόνας παροχέα αποστολής\n"
194
+
195
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1019
196
+ msgid "Hide tracking events details"
197
+ msgstr "Απόκρυψη λεπτομερειών συμβάντων παρακολούθησης"
198
+
199
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1025
200
+ #: includes/views/admin_tracking_page_settings.php:93
201
+ msgid "Remove TrackShip branding"
202
+ msgstr "Αφαιρέστε το branding του TrackShip"
203
+
204
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1042
205
+ msgid "License Key"
206
+ msgstr "Κλειδί άδειας χρήσης"
207
+
208
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1044
209
+ msgid "a Valid license is required to receive updates and support"
210
+ msgstr ""
211
+ "απαιτείται έγκυρη άδεια χρήσης για να λαμβάνετε ενημερώσεις και υποστήριξη"
212
+
213
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1193
214
+ msgid "\">click here</a> to activate it."
215
+ msgstr "\"> κάντε κλικ εδώ </a> για να την ενεργοποιήσετε."
216
+
217
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1226
218
+ #: includes/class-wc-advanced-shipment-tracking.php:185
219
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:303
220
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:439
221
+ msgid "Shipped"
222
+ msgstr "Αποστέλλονται"
223
+
224
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1227
225
+ msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
226
+ msgstr ""
227
+ "Προεπιλεγμένο \"ως <span class =\" shipped_label \"> απεσταλμένο </ span>\""
228
+
229
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1228
230
+ msgid ""
231
+ "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
232
+ "will be selected by default when adding tracking info to orders."
233
+ msgstr ""
234
+ "Αυτό σημαίνει ότι το σήμα ως <span class = 'shipped_label'> αποσταλεί </ "
235
+ "span> θα επιλεγεί από προεπιλογή κατά την προσθήκη πληροφοριών "
236
+ "παρακολούθησης σε παραγγελίες."
237
+
238
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1231
239
+ msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
240
+ msgstr ""
241
+ "Προεπιλεγμένο \"ως <span class =\" shipped_label \"> ολοκληρώθηκε </ span>\""
242
+
243
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1232
244
+ msgid ""
245
+ "This means that the 'mark as <span class='shipped_label'>completed</span>' "
246
+ "will be selected by default when adding tracking info to orders."
247
+ msgstr ""
248
+ "Αυτό σημαίνει ότι το σήμα ως <span class = 'shipped_label'> ολοκληρώθηκε </ "
249
+ "span> θα επιλεγεί από προεπιλογή κατά την προσθήκη πληροφοριών "
250
+ "παρακολούθησης σε παραγγελίες."
251
+
252
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1298
253
+ msgid "Rename the “Completed” Order status to “Shipped”"
254
+ msgstr ""
255
+ "Μετονομάστε την κατάσταση της παραγγελίας \"Ολοκληρωμένη\" σε "
256
+ "\"Αποστέλλονται\""
257
+
258
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1311
259
+ msgid "On which order status email to include the shipment tracking info?"
260
+ msgstr ""
261
+ "Σε ποιο μήνυμα ηλεκτρονικού ταχυδρομείου κατάστασης παραγγελίας "
262
+ "συμπεριλαμβάνονται οι πληροφορίες παρακολούθησης αποστολής;"
263
+
264
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1317
265
+ msgid "Show tracking info in Invoice"
266
+ msgstr "Εμφάνιση πληροφοριών παρακολούθησης στο τιμολόγιο"
267
+
268
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1323
269
+ msgid "Show tracking info in Packing Slip"
270
+ msgstr "Εμφάνιση πληροφοριών παρακολούθησης στο πακέτο συσκευασίας"
271
+
272
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1871
273
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2392
274
+ #: includes/customizer/class-wcast-customizer.php:92
275
+ #: includes/customizer/class-wc-intransit-email-customizer.php:127
276
+ #: includes/views/admin_status_notifications.php:25
277
+ msgid "In Transit"
278
+ msgstr ""
279
+ "Στη διαμετακόμιση\n"
280
+
281
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1874
282
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2391
283
+ #: includes/customizer/class-wcast-customizer.php:84
284
+ msgid "Pre Transit"
285
+ msgstr ""
286
+ "Pre Transit\n"
287
+
288
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1877
289
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2069
290
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2395
291
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:137
292
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:182
293
+ #: includes/customizer/class-wcast-customizer.php:122
294
+ #: includes/customizer/class-wc-delivered-email-customizer.php:125
295
+ #: includes/views/admin_options_settings.php:80
296
+ #: includes/views/admin_status_notifications.php:80
297
+ msgid "Delivered"
298
+ msgstr "Παραδόθηκε"
299
+
300
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1880
301
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2394
302
+ #: includes/customizer/class-wcast-customizer.php:114
303
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
304
+ #: includes/views/admin_status_notifications.php:66
305
+ msgid "Out For Delivery"
306
+ msgstr ""
307
+ "Out για παράδοση\n"
308
+
309
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1883
310
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2393
311
+ #: includes/customizer/class-wcast-customizer.php:107
312
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
313
+ #: includes/views/admin_status_notifications.php:53
314
+ msgid "Available For Pickup"
315
+ msgstr ""
316
+ "Διαθέσιμο για παραλαβή\n"
317
+
318
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1886
319
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2399
320
+ #: includes/customizer/class-wcast-customizer.php:100
321
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:124
322
+ #: includes/views/admin_status_notifications.php:39
323
+ msgid "Return To Sender"
324
+ msgstr ""
325
+ "Επιστροφή στον αποστολέα\n"
326
+
327
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1889
328
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2396
329
+ #: includes/customizer/class-wcast-customizer.php:130
330
+ #: includes/customizer/class-wc-failure-email-customizer.php:124
331
+ #: includes/views/admin_status_notifications.php:95
332
+ msgid "Failed Attempt"
333
+ msgstr "ΑΠΟΤΥΧΗΜΕΝΗ προσπαθεια"
334
+
335
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1892
336
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2390
337
+ msgid "Unknown"
338
+ msgstr "Αγνωστος"
339
+
340
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1895
341
+ msgid "Pending TrackShip"
342
+ msgstr "Εκκρεμεί το TrackShip"
343
+
344
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1898
345
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2400
346
+ msgid "Invalid Tracking Number"
347
+ msgstr "Μη έγκυρος αριθμός παρακολούθησης"
348
+
349
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1901
350
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2398
351
+ msgid "Carrier Unsupported"
352
+ msgstr "Ο μεταφορέας δεν υποστηρίζεται"
353
+
354
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1904
355
+ msgid "Invalid User Key"
356
+ msgstr "Μη έγκυρο κλειδί χρήστη"
357
+
358
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1907
359
+ msgid "Wrong Shipping Provider"
360
+ msgstr "Δυστυχώς αποστολέας αποστολής"
361
+
362
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2023
363
+ msgid "Shipped Order"
364
+ msgstr "Αποστολή Παραγγελίας"
365
+
366
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2047
367
+ msgid "Mark order as delivered"
368
+ msgstr "Σημειώστε την παραγγελία όπως παραδόθηκε"
369
+
370
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2054
371
+ msgid "Add Tracking"
372
+ msgstr "Προσθήκη παρακολούθησης"
373
+
374
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2081
375
+ msgid "Change order status to"
376
+ msgstr "Αλλαγή κατάστασης παραγγελίας σε"
377
+
378
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2184
379
+ #: includes/views/admin_options_shipping_provider.php:96
380
+ #, php-format
381
+ msgid "You don't have any %s shipping providers."
382
+ msgstr "Δεν διαθέτετε παρόχους ναυτιλίας% s."
383
+
384
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2189
385
+ #: includes/views/admin_options_shipping_provider.php:27
386
+ msgid "Add Custom Provider"
387
+ msgstr "Προσθέστε προσαρμοσμένο παροχέα"
388
+
389
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2405
390
+ msgid "Filter by shipment status"
391
+ msgstr "Φιλτράρετε κατά κατάσταση αποστολής"
392
+
393
+ #: includes/class-wc-advanced-shipment-tracking-front.php:148
394
  msgid ""
395
  "To track your order please enter your Order ID in the box below and press "
396
  "the \"Track\" button. This was given to you on your receipt and in the "
401
  " Αυτό σας δόθηκε στην απόδειξή σας και στο e-mail επιβεβαίωσης που θα έπρεπε "
402
  "να έχετε λάβει.\n"
403
 
404
+ #: includes/class-wc-advanced-shipment-tracking-front.php:149
405
+ #: includes/class-wc-advanced-shipment-tracking-front.php:150
406
  msgid "Found in your order confirmation email."
407
  msgstr ""
408
  "Βρέθηκε στο email επιβεβαίωσης της παραγγελίας σας.\n"
409
 
410
+ #: includes/class-wc-advanced-shipment-tracking-front.php:150
411
  msgid "Order Email"
412
  msgstr ""
413
  "Παραγγελία ηλεκτρονικού ταχυδρομείου\n"
414
 
415
+ #: includes/class-wc-advanced-shipment-tracking-front.php:153
416
+ #: includes/class-wc-advanced-shipment-tracking.php:728
417
+ #: includes/class-wc-advanced-shipment-tracking.php:851
 
418
  #: includes/customizer/class-wc-tracking-info-customizer.php:147
419
+ #: includes/customizer/class-wc-tracking-info-customizer.php:578
420
+ #: templates/emails/tracking-info.php:256
421
+ #: templates/myaccount/tracking-info.php:191
422
  msgid "Track"
423
  msgstr "Παρακολούθηση"
424
 
425
+ #: includes/class-wc-advanced-shipment-tracking-front.php:221
426
+ #: includes/class-wc-advanced-shipment-tracking-front.php:238
427
+ #: includes/class-wc-advanced-shipment-tracking-front.php:398
428
+ #: includes/class-wc-advanced-shipment-tracking-front.php:415
429
  #, php-format
430
  msgid "Shipment - %s (out of %s)"
431
  msgstr ""
432
  "Αποστολή -% s (από% s)\n"
433
 
434
+ #: includes/class-wc-advanced-shipment-tracking-front.php:251
435
+ #: includes/class-wc-advanced-shipment-tracking-front.php:428
436
+ msgid "Tracking details not found in TrackShip"
437
+ msgstr "Τα στοιχεία παρακολούθησης δεν βρέθηκαν στο TrackShip"
438
+
439
+ #: includes/class-wc-advanced-shipment-tracking-front.php:462
440
+ #: includes/class-wc-advanced-shipment-tracking-front.php:492
441
+ #: includes/class-wc-advanced-shipment-tracking-front.php:862
442
+ #: includes/class-wc-advanced-shipment-tracking-front.php:880
443
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1015
444
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1033
445
+ msgid "Est. Delivery Date"
446
+ msgstr ""
447
+ "Est. Ημερομηνία παράδοσης\n"
448
 
449
+ #: includes/class-wc-advanced-shipment-tracking-front.php:618
450
+ #: includes/class-wc-advanced-shipment-tracking-front.php:708
 
451
  msgid "Tracking Details"
452
  msgstr "Στοιχεία παρακολούθησης"
453
 
454
+ #: includes/class-wc-advanced-shipment-tracking-front.php:699
455
+ #: includes/class-wc-advanced-shipment-tracking-front.php:789
456
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1004
457
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1118
458
  msgid "view more"
459
  msgstr "Δείτε περισσότερα"
460
 
461
+ #: includes/class-wc-advanced-shipment-tracking-front.php:700
462
+ #: includes/class-wc-advanced-shipment-tracking-front.php:790
463
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1005
464
+ #: includes/class-wc-advanced-shipment-tracking-front.php:1119
465
  msgid "view less"
466
  msgstr "δείτε λιγότερο"
467
 
 
 
 
 
 
 
 
 
 
468
  #: includes/class-wc-advanced-shipment-tracking.php:95
469
+ #: includes/class-wc-advanced-shipment-tracking.php:265
470
  #: includes/customizer/class-wcast-customizer.php:31
471
  msgid "Shipment Tracking"
472
  msgstr "Παρακολούθηση Αποστολής"
473
 
474
  #: includes/class-wc-advanced-shipment-tracking.php:184
475
+ #: includes/class-wc-advanced-shipment-tracking.php:387
476
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:438
477
  msgid "Mark as Shipped?"
478
+ msgstr "Ορίστε ως αποστολέα;"
 
 
 
 
479
 
480
  #: includes/class-wc-advanced-shipment-tracking.php:187
481
+ #: includes/class-wc-advanced-shipment-tracking.php:390
482
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:441
483
  msgid "Mark as Completed?"
484
+ msgstr "Σημειώστε ως ολοκληρωμένο;"
485
 
486
  #: includes/class-wc-advanced-shipment-tracking.php:188
487
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:442
488
  msgid "Completed"
489
+ msgstr "Ολοκληρώθηκε το"
490
 
491
  #: includes/class-wc-advanced-shipment-tracking.php:195
492
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:450
493
  msgid "Add Tracking Number"
494
+ msgstr "Προσθέστε τον αριθμό παρακολούθησης"
495
 
496
+ #: includes/class-wc-advanced-shipment-tracking.php:198
497
+ #: includes/class-wc-advanced-shipment-tracking.php:203
498
+ #: includes/class-wc-advanced-shipment-tracking.php:408
499
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:453
500
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:455
501
  msgid "Provider:"
502
  msgstr "Μεταφορέας:"
503
 
504
+ #: includes/class-wc-advanced-shipment-tracking.php:223
505
+ #: includes/class-wc-advanced-shipment-tracking.php:446
506
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:475
507
  msgid "Tracking number:"
508
  msgstr "Αριθμός Παρακολούθησης:"
509
 
510
+ #: includes/class-wc-advanced-shipment-tracking.php:227
511
+ #: includes/class-wc-advanced-shipment-tracking.php:454
512
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:479
513
  msgid "Date shipped:"
514
  msgstr "Ημερομηνία αποστολής:"
515
 
516
+ #: includes/class-wc-advanced-shipment-tracking.php:236
517
+ #: includes/class-wc-advanced-shipment-tracking.php:466
518
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:488
519
+ msgid "Mark order as:"
520
+ msgstr "Σημειώστε την τάξη ως:"
 
 
 
 
 
521
 
522
+ #: includes/class-wc-advanced-shipment-tracking.php:239
523
+ #: includes/class-wc-advanced-shipment-tracking.php:469
524
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:491
525
  msgid "Partial Shipped"
526
+ msgstr "Μερική αποστολή"
527
 
528
+ #: includes/class-wc-advanced-shipment-tracking.php:281
529
+ #: includes/class-wc-advanced-shipment-tracking.php:483
530
+ msgid "Track Shipment"
531
+ msgstr "Παρακολούθηση αποστολής"
532
 
533
  #. 1: shipping date
534
+ #: includes/class-wc-advanced-shipment-tracking.php:290
535
  #, php-format
536
  msgid "Shipped on %s"
537
  msgstr "Στάλθηκε στις %s"
538
 
539
+ #: includes/class-wc-advanced-shipment-tracking.php:404
540
  msgid "Add Tracking Info"
541
  msgstr "Προσθήκη Παρακολούθησης"
542
 
543
+ #: includes/class-wc-advanced-shipment-tracking.php:409
544
  msgid "Select Provider"
545
  msgstr "Επιλογή Παροχέα"
546
 
547
+ #: includes/class-wc-advanced-shipment-tracking.php:482
548
  msgid "Save Tracking"
549
  msgstr "Αποθήκευση Παρακολούθησης"
550
 
551
+ #: includes/class-wc-advanced-shipment-tracking.php:483
552
  msgid "Preview:"
553
  msgstr "Επισκόπηση:"
554
 
555
+ #: includes/class-wc-advanced-shipment-tracking.php:702
556
  #, php-format
557
  msgid ""
558
  "Tracking info was deleted for tracking provider %s with tracking number %s"
559
  msgstr ""
560
+ "Οι πληροφορίες παρακολούθησης διαγράφηκαν για τον παροχέα παρακολούθησης% s "
561
+ "με τον αριθμό παρακολούθησης% s"
562
 
563
+ #: includes/class-wc-advanced-shipment-tracking.php:1092
564
  #, php-format
565
  msgid "Order was shipped with %s and tracking number is: %s"
566
+ msgstr "Η παραγγελία παραδόθηκε με% s και ο αριθμός παρακολούθησης είναι:% s"
567
 
568
  #: includes/class-wc-advanced-shipment-welcome.php:38
569
  #: includes/class-wc-advanced-shipment-welcome.php:39
570
  msgid "Welcome to Advanced Shipment Tracking"
571
  msgstr ""
572
+ "Καλώς ήρθατε στην Προηγμένη παρακολούθηση αποστολής\n"
573
 
574
  #: includes/class-wc-advanced-shipment-welcome.php:90
575
  #: includes/class-wc-advanced-shipment-welcome.php:129
576
  #: includes/class-wc-advanced-shipment-welcome.php:147
577
  msgid "Save and Continue"
578
+ msgstr "Αποθήκευση και συνέχεια"
579
 
580
  #: includes/class-wc-advanced-shipment-welcome.php:177
581
+ #: includes/views/admin_trackship_dashboard.php:6
582
  msgid "Connection status"
583
+ msgstr "Κατάσταση σύνδεσης"
584
 
585
  #: includes/class-wc-advanced-shipment-welcome.php:184
586
+ #: includes/views/admin_trackship_dashboard.php:13
587
  msgid "TrackShip Connection Status"
588
  msgstr "Κατάσταση σύνδεσης TrackShip"
589
 
 
 
 
 
 
 
590
  #: includes/class-wc-advanced-shipment-welcome.php:194
591
+ #: includes/views/admin_trackship_dashboard.php:23
592
  msgid "Trackers Balance"
593
+ msgstr "Ισορροπία ιχνηλάτη"
594
 
595
  #: includes/class-wc-advanced-shipment-welcome.php:202
596
+ #: includes/views/admin_trackship_dashboard.php:31
597
  msgid "Current Plan"
598
+ msgstr "Τρέχον Σχέδιο"
599
 
600
  #: includes/class-wc-advanced-shipment-welcome.php:217
601
+ #: includes/views/admin_options_addons.php:33
602
+ #: includes/views/admin_trackship_dashboard.php:46
603
  msgid ""
604
  "You are now connected with TrackShip! TrackShip makes it effortless to "
605
  "automate your post shipping operations and get tracking and delivery status "
606
  "updates directly in the WooCommerce admin."
607
  msgstr ""
608
+ "Τώρα είστε συνδεδεμένοι με το TrackShip! Το TrackShip καθιστά εύκολη την "
609
+ "αυτοματοποίηση των λειτουργιών αποστολής μετά την αποστολή και την ενημέρωση "
610
+ "για την παρακολούθηση και την παράδοση απευθείας στον διαχειριστή του "
611
+ "WooCommerce."
 
 
 
612
 
613
  #: includes/class-wc-advanced-shipment-welcome.php:223
614
+ #: includes/views/admin_trackship_dashboard.php:52
615
  msgid "TrackShip Dashboard"
616
+ msgstr "Πίνακα ελέγχου TrackShip"
617
 
618
  #: includes/class-wc-advanced-shipment-welcome.php:253
619
  msgid "Save"
620
+ msgstr "Σώσει"
621
 
622
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:142
623
+ #, php-format
624
+ msgid "Delivered <span class=\"count\">(%s)</span>"
625
+ msgid_plural "Delivered <span class=\"count\">(%s)</span>"
626
+ msgstr[0] "Παραδόθηκε <span class = \"count\"> (% s) </ span>"
627
+ msgstr[1] "Παραδόθηκε <span class = \"count\"> (% s) </ span>"
628
+
629
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:151
630
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:197
631
+ #: includes/views/admin_options_settings.php:149
632
+ msgid "Updated Tracking"
633
+ msgstr "Ενημερωμένη παρακολούθηση"
634
+
635
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:156
636
+ #, php-format
637
+ msgid "Updated Tracking <span class=\"count\">(%s)</span>"
638
+ msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
639
+ msgstr[0] "Ενημερωμένη παρακολούθηση <span class = \"count\"> (% s) </ span>"
640
+ msgstr[1] "Ενημερωμένη παρακολούθηση <span class = \"count\"> (% s) </ span>"
641
+
642
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:165
643
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:211
644
+ #: includes/views/admin_options_settings.php:115
645
+ msgid "Partially Shipped"
646
+ msgstr "Μερικώς αποστέλλονται"
647
+
648
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:170
649
+ #, php-format
650
+ msgid "Partially Shipped <span class=\"count\">(%s)</span>"
651
+ msgid_plural "Partially Shipped <span class=\"count\">(%s)</span>"
652
+ msgstr[0] "Μερική αποστολή <span class = \"count\"> (% s) </ span>"
653
+ msgstr[1] "Μερική αποστολή <span class = \"count\"> (% s) </ span>"
654
 
655
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:270
656
+ msgid "Change status to delivered"
657
+ msgstr "Αλλάξτε την κατάσταση στην παραγγελία"
658
 
659
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:279
660
+ msgid "Change status to Updated Tracking"
661
  msgstr ""
662
+ "Αλλάξτε την κατάσταση στην ενημερωμένη παρακολούθηση\n"
 
663
 
664
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:288
665
+ msgid "Change status to Partially Shipped"
666
+ msgstr "Αλλάξτε την κατάσταση σε Μερική αποστολή"
667
 
668
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:320
669
+ #, php-format
670
+ msgid "Shipped <span class=\"count\">(%s)</span>"
671
+ msgid_plural "Shipped <span class=\"count\">(%s)</span>"
672
+ msgstr[0] "Αποστέλλονται <span class = \"count\"> (% s) </ span>"
673
+ msgstr[1] "Αποστέλλονται <span class = \"count\"> (% s) </ span>"
674
+
675
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:334
676
+ msgid "Change status to shipped"
677
+ msgstr "Αλλάξτε την κατάσταση αποστολής"
678
+
679
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:518
680
+ msgid "Resend delivered order notification"
681
+ msgstr "Επαναλάβετε την ειδοποίηση παραγγελίας"
682
+
683
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:730
684
+ msgid "Shipment Providers"
685
+ msgstr "Παροχείς αποστολής"
686
+
687
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:733
688
+ msgid "Shipment Status"
689
+ msgstr "Κατάσταση αποστολής"
690
+
691
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:736
692
+ msgid "Tracking issues"
693
+ msgstr "Παρακολούθηση ζητημάτων"
694
+
695
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:742
696
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:750
697
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:767
698
+ msgid "data not available."
699
+ msgstr "τα δεδομένα δεν είναι διαθέσιμα."
700
+
701
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:773
702
+ msgid "View more on TrackShip"
703
+ msgstr "Δείτε περισσότερα στο TrackShip"
704
+
705
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:911
706
+ msgid "There are some issue with sync, Please Retry."
707
+ msgstr "Υπάρχει κάποιο ζήτημα με συγχρονισμό, δοκιμάστε ξανά."
708
+
709
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:926
710
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:941
711
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:956
712
+ msgid "view details"
713
+ msgstr "δείτε λεπτομέρειες"
714
+
715
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:927
716
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:942
717
+ #: includes/class-wc-advanced-shipment-tracking-settings.php:957
718
+ msgid "hide details"
719
+ msgstr "Κρύψε τις λεπτομέρειες"
720
 
721
  #: includes/customizer/class-wcast-customizer.php:40
722
  msgid "Shipment Status Emails"
734
 
735
  #: includes/customizer/class-wcast-customizer.php:68
736
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:143
737
+ msgid "Partially Shipped status email"
738
+ msgstr "Μερική αποστολή μηνύματος κατάστασης κατάστασης"
739
 
740
  #: includes/customizer/class-wcast-customizer.php:76
741
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:143
742
+ msgid "Updated Tracking status email"
 
 
 
 
 
 
 
 
 
 
 
 
 
743
  msgstr ""
744
+ "Ενημερωμένο μήνυμα ηλεκτρονικού ταχυδρομείου κατάστασης παρακολούθησης\n"
 
 
 
 
 
 
 
745
 
746
+ #: includes/customizer/class-wcast-customizer.php:411
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
747
  msgid "Select order to preview"
748
  msgstr ""
749
  "Επιλέξτε παραγγελία για προεπισκόπηση\n"
774
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
775
  #: includes/customizer/class-wc-returntosender-email-customizer.php:157
776
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:144
777
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:144
778
  msgid "This section lets you customize the Email Content."
779
  msgstr ""
780
  "Αυτή η ενότητα σάς επιτρέπει να προσαρμόσετε το περιεχόμενο ηλεκτρονικού "
792
  #: includes/customizer/class-wc-intransit-email-customizer.php:191
793
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
794
  #: includes/customizer/class-wc-returntosender-email-customizer.php:187
795
+ #: includes/customizer/class-wc-tracking-info-customizer.php:183
796
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:177
797
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:177
798
  msgid "Preview order"
799
  msgstr ""
800
  "Προεπισκόπηση σειράς\n"
809
  msgid "E.g. {customer.email}, admin@example.org"
810
  msgstr "Πχ: {customer.email}, admin@example.org"
811
 
812
+ #. %s: list of placeholders
813
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
814
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
815
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:381
816
  #: includes/customizer/class-wc-delivered-email-customizer.php:232
817
  #: includes/customizer/class-wc-delivered-email-customizer.php:254
818
+ #: includes/customizer/class-wc-delivered-email-customizer.php:383
819
+ #: includes/customizer/class-wc-email-customizer.php:243
820
+ #: includes/customizer/class-wc-email-customizer.php:266
821
+ #: includes/customizer/class-wc-email-customizer.php:289
822
+ #: includes/customizer/class-wc-email-customizer.php:414
823
  #: includes/customizer/class-wc-failure-email-customizer.php:231
824
  #: includes/customizer/class-wc-failure-email-customizer.php:253
825
+ #: includes/customizer/class-wc-failure-email-customizer.php:382
826
  #: includes/customizer/class-wc-intransit-email-customizer.php:235
827
  #: includes/customizer/class-wc-intransit-email-customizer.php:257
828
+ #: includes/customizer/class-wc-intransit-email-customizer.php:386
829
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
830
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
831
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:384
832
  #: includes/customizer/class-wc-returntosender-email-customizer.php:231
833
  #: includes/customizer/class-wc-returntosender-email-customizer.php:253
834
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:382
835
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:200
836
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:223
837
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:246
838
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:265
839
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:200
840
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:223
841
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:246
842
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:265
843
+ #: includes/emails/class-shipment-delivered-email.php:256
844
+ #: includes/emails/class-shipment-delivered-email.php:265
845
+ msgid "Available variables:"
846
+ msgstr "Διαθέσιμες μεταβλητές:"
 
 
 
 
 
 
 
 
 
 
 
847
 
848
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
849
  #: includes/customizer/class-wc-delivered-email-customizer.php:275
887
 
888
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
889
  #: includes/customizer/class-wc-delivered-email-customizer.php:340
890
+ #: includes/customizer/class-wc-email-customizer.php:393
891
  #: includes/customizer/class-wc-failure-email-customizer.php:339
892
+ #: includes/customizer/class-wc-intransit-email-customizer.php:364
893
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
894
  #: includes/customizer/class-wc-returntosender-email-customizer.php:339
895
  msgid "Google Analytics link tracking"
896
+ msgstr "Παρακολούθηση συνδέσμου Google Analytics"
897
 
898
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
899
  #: includes/customizer/class-wc-delivered-email-customizer.php:341
900
  #: includes/customizer/class-wc-failure-email-customizer.php:340
901
+ #: includes/customizer/class-wc-intransit-email-customizer.php:365
902
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
903
  #: includes/customizer/class-wc-returntosender-email-customizer.php:340
904
  msgid "This will be appended to URL in the email content"
905
  msgstr ""
906
+ "Αυτό θα προστεθεί στη διεύθυνση URL στο περιεχόμενο ηλεκτρονικού ταχυδρομείου"
907
 
908
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
909
  #: includes/customizer/class-wc-delivered-email-customizer.php:362
913
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
914
  #: includes/customizer/class-wc-returntosender-email-customizer.php:361
915
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:245
916
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:245
917
  msgid "Email content"
918
  msgstr "Περιεχόμενο email"
919
 
920
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:438
921
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:445
922
+ #: includes/customizer/class-wc-delivered-email-customizer.php:440
923
+ #: includes/customizer/class-wc-delivered-email-customizer.php:447
924
+ #: includes/customizer/class-wc-email-customizer.php:447
925
+ #: includes/customizer/class-wc-failure-email-customizer.php:439
926
+ #: includes/customizer/class-wc-failure-email-customizer.php:447
927
+ #: includes/customizer/class-wc-intransit-email-customizer.php:442
928
+ #: includes/customizer/class-wc-intransit-email-customizer.php:450
929
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:440
930
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:448
931
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:438
932
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:446
933
+ #: includes/customizer/class-wc-partial-shipped-email-customizer.php:298
934
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:298
 
 
 
 
 
 
935
  msgid "Please select order to preview."
936
+ msgstr "Επιλέξτε παραγγελία για προεπισκόπηση."
937
 
938
  #: includes/customizer/class-wc-delivered-email-customizer.php:124
939
  msgid "Your order #{order_number} has been delivered"
940
+ msgstr "Η παραγγελία σας # {order_number} έχει παραδοθεί"
941
 
942
  #: includes/customizer/class-wc-delivered-email-customizer.php:126
943
  #: includes/customizer/class-wc-email-customizer.php:132
969
  "Ενεργοποίηση μηνύματος ηλεκτρονικού ταχυδρομείου κατάστασης παραγγελίας\n"
970
 
971
  #: includes/customizer/class-wc-email-customizer.php:201
972
+ #: includes/customizer/class-wc-tracking-info-customizer.php:187
973
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:181
974
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:181
975
  msgid "Please select a order..."
976
  msgstr ""
977
  "Παρακαλώ επιλέξτε παραγγελία ...\n"
978
 
979
+ #: includes/customizer/class-wc-email-customizer.php:309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
980
  msgid "Display tracking details"
981
+ msgstr "Προβολή λεπτομερειών παρακολούθησης"
982
 
983
+ #: includes/customizer/class-wc-email-customizer.php:325
984
  msgid "Display order details"
985
+ msgstr "Εμφάνιση λεπτομερειών παραγγελίας"
986
 
987
+ #: includes/customizer/class-wc-email-customizer.php:342
988
  msgid "Display Shipping Address"
989
+ msgstr "Εμφάνιση της διεύθυνσης αποστολής"
990
 
991
+ #: includes/customizer/class-wc-email-customizer.php:359
992
  msgid "Display Billing Address"
993
+ msgstr "Εμφάνιση της διεύθυνσης χρέωσης"
994
 
995
+ #: includes/customizer/class-wc-email-customizer.php:376
996
  msgid "Enable Google Analytics tracking"
997
+ msgstr "Ενεργοποιήστε την παρακολούθηση του Google Analytics"
998
 
999
+ #: includes/customizer/class-wc-email-customizer.php:394
1000
  msgid ""
1001
  "This will be appended to URL in the email content – e.g. "
1002
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
1003
  msgstr ""
1004
+ "Αυτό θα προσαρτηθεί στη διεύθυνση URL στο περιεχόμενο ηλεκτρονικού "
1005
+ "ταχυδρομείου - π.χ. utm_source = ast & utm_medium = email & utm_campaign = "
1006
+ "παραδόθηκε"
1007
 
1008
  #: includes/customizer/class-wc-failure-email-customizer.php:123
1009
  msgid "Your order #{order_number} is Failed Attempt"
1099
  "αποστολέα"
1100
 
1101
  #: includes/customizer/class-wc-tracking-info-customizer.php:144
1102
+ #: includes/customizer/class-wc-tracking-info-customizer.php:496
1103
+ #: templates/emails/tracking-info.php:203
1104
+ #: templates/myaccount/tracking-info.php:144
1105
  msgid "Provider"
1106
  msgstr "Μεταφορέας"
1107
 
1108
  #: includes/customizer/class-wc-tracking-info-customizer.php:145
1109
+ #: includes/customizer/class-wc-tracking-info-customizer.php:518
1110
+ #: templates/emails/tracking-info.php:232
1111
+ #: templates/myaccount/tracking-info.php:171
1112
  msgid "Tracking Number"
1113
  msgstr "Αριθμός"
1114
 
1115
  #: includes/customizer/class-wc-tracking-info-customizer.php:146
1116
+ #: includes/customizer/class-wc-tracking-info-customizer.php:539
1117
  msgid "Shipped Date"
1118
  msgstr ""
1119
  "Ημερομηνία αποστολής\n"
1120
 
1121
+ #: includes/customizer/class-wc-tracking-info-customizer.php:184
1122
+ msgid "Select an order to preview and design the tracking info display."
 
 
1123
  msgstr ""
1124
+ "Επιλέξτε μια παραγγελία για να κάνετε προεπισκόπηση και να σχεδιάσετε την "
1125
+ "οθόνη πληροφοριών παρακολούθησης.\n"
 
1126
 
1127
+ #: includes/customizer/class-wc-tracking-info-customizer.php:204
 
 
 
 
 
 
1128
  msgid "Tracking Display Position"
1129
  msgstr "Παρακολούθηση θέσης προβολής"
1130
 
1131
+ #: includes/customizer/class-wc-tracking-info-customizer.php:208
1132
  msgid "Before Order Details"
1133
  msgstr "Πριν από τις λεπτομέρειες της παραγγελίας"
1134
 
1135
+ #: includes/customizer/class-wc-tracking-info-customizer.php:209
1136
  msgid "After Order Details"
1137
  msgstr "Μετά από Λεπτομέρειες Παραγγελίας"
1138
 
1139
+ #: includes/customizer/class-wc-tracking-info-customizer.php:224
1140
+ msgid "Tracking Header text"
1141
+ msgstr ""
1142
+ "Κείμενο κεφαλίδας εντοπισμού\n"
1143
 
1144
+ #: includes/customizer/class-wc-tracking-info-customizer.php:231
1145
  msgid "Tracking Information"
1146
  msgstr "Πληροφορίες Παρακολούθησης"
1147
 
1148
+ #: includes/customizer/class-wc-tracking-info-customizer.php:246
1149
  msgid "Additional text after header"
1150
  msgstr "Πρόσθετο κείμενο μετά την κεφαλίδα"
1151
 
1152
+ #: includes/customizer/class-wc-tracking-info-customizer.php:267
1153
+ #: includes/customizer/class-wc-tracking-info-customizer.php:270
1154
+ msgid "Tracking display template"
1155
  msgstr ""
1156
+ "Παρακολούθηση πρότυπου προβολής\n"
1157
+
1158
+ #: includes/customizer/class-wc-tracking-info-customizer.php:274
1159
+ msgid "Select Template"
1160
+ msgstr ""
1161
+ "Επιλέξτε Πρότυπο\n"
1162
+
1163
+ #: includes/customizer/class-wc-tracking-info-customizer.php:275
1164
+ msgid "Table Layout"
1165
+ msgstr ""
1166
+ "Διάταξη πίνακα\n"
1167
 
1168
  #: includes/customizer/class-wc-tracking-info-customizer.php:291
1169
+ msgid "Simple Layout Design"
1170
+ msgstr ""
1171
+ "Απλό σχέδιο διάταξης\n"
1172
 
1173
+ #: includes/customizer/class-wc-tracking-info-customizer.php:306
1174
+ msgid "Provider font size"
1175
+ msgstr "Μέγεθος γραμματοσειράς παροχέα"
1176
 
1177
+ #: includes/customizer/class-wc-tracking-info-customizer.php:323
1178
+ msgid "Provider font color"
1179
  msgstr ""
1180
+ "Χρώμα γραμματοσειράς παροχέα\n"
1181
+
1182
+ #: includes/customizer/class-wc-tracking-info-customizer.php:339
1183
+ msgid "Show bottom border"
1184
+ msgstr "Εμφάνιση περιθωρίου κάτω"
1185
+
1186
+ #: includes/customizer/class-wc-tracking-info-customizer.php:356
1187
+ msgid "Bottom border color"
1188
+ msgstr "Το χρώμα του κάτω ορίου"
1189
 
1190
+ #: includes/customizer/class-wc-tracking-info-customizer.php:374
1191
+ msgid "Table layout Design"
1192
+ msgstr "Σχέδιο διάταξης πίνακα"
1193
+
1194
+ #: includes/customizer/class-wc-tracking-info-customizer.php:389
1195
+ msgid "Display shipping provider name"
1196
+ msgstr "Εμφάνιση ονόματος παρόχου αποστολής"
1197
+
1198
+ #: includes/customizer/class-wc-tracking-info-customizer.php:406
1199
+ msgid "Display shipping provider image"
1200
+ msgstr "Εμφανίστε την εικόνα του προμηθευτή αποστολής"
1201
+
1202
+ #: includes/customizer/class-wc-tracking-info-customizer.php:423
1203
+ msgid "Hide the ship date"
1204
  msgstr ""
1205
+ "Απόκρυψη της ημερομηνίας του πλοίου\n"
1206
+
1207
+ #: includes/customizer/class-wc-tracking-info-customizer.php:440
1208
+ msgid "Use tracking number as a link"
1209
+ msgstr "Χρησιμοποιήστε τον αριθμό παρακολούθησης ως σύνδεσμο"
1210
+
1211
+ #: includes/customizer/class-wc-tracking-info-customizer.php:457
1212
+ msgid "Table Headers"
1213
+ msgstr "Κεφαλίδες στον πίνακα"
1214
+
1215
+ #: includes/customizer/class-wc-tracking-info-customizer.php:472
1216
+ msgid "Hide Table Headers"
1217
+ msgstr "Απόκρυψη κεφαλίδων πίνακα"
1218
 
1219
+ #: includes/customizer/class-wc-tracking-info-customizer.php:489
1220
+ msgid "Provider header text"
1221
  msgstr "Κείμενο κεφαλίδας παροχέα"
1222
 
1223
+ #: includes/customizer/class-wc-tracking-info-customizer.php:511
1224
+ msgid "Tracking Number header text"
1225
+ msgstr ""
1226
+ "Κείμενο κεφαλίδας αριθμού παρακολούθησης\n"
1227
 
1228
+ #: includes/customizer/class-wc-tracking-info-customizer.php:532
1229
+ msgid "Ship date header text"
1230
+ msgstr ""
1231
+ "Κείμενο κεφαλίδας ημερομηνίας πλοίου\n"
1232
 
1233
+ #: includes/customizer/class-wc-tracking-info-customizer.php:554
1234
  msgid "Track Label"
1235
  msgstr "Ετικέτα διαδρομής"
1236
 
1237
+ #: includes/customizer/class-wc-tracking-info-customizer.php:571
1238
+ msgid "Track header text"
1239
+ msgstr ""
1240
+ "Κείμενο κεφαλίδας παρακολούθησης\n"
 
 
 
1241
 
1242
+ #: includes/customizer/class-wc-tracking-info-customizer.php:593
1243
+ msgid "Headers font size"
1244
+ msgstr "Κεφάλαιο μέγεθος γραμματοσειράς"
1245
 
1246
+ #: includes/customizer/class-wc-tracking-info-customizer.php:610
1247
+ msgid "Headers font color"
1248
  msgstr ""
1249
+ "Χρώμα γραμματοσειράς κεφαλίδων\n"
1250
+
1251
+ #: includes/customizer/class-wc-tracking-info-customizer.php:626
1252
+ msgid "Table Content"
1253
+ msgstr "Περιεχόμενο πίνακα"
1254
 
1255
+ #: includes/customizer/class-wc-tracking-info-customizer.php:641
1256
  msgid "Padding"
1257
  msgstr ""
1258
  "Υλικό παραγεμίσματος\n"
1259
 
1260
+ #: includes/customizer/class-wc-tracking-info-customizer.php:661
1261
+ #: includes/customizer/class-wc-tracking-info-customizer.php:845
1262
  msgid "Background color"
1263
  msgstr ""
1264
  "Χρώμα του φόντου\n"
1265
 
1266
+ #: includes/customizer/class-wc-tracking-info-customizer.php:677
1267
+ #: includes/views/admin_tracking_page_settings.php:72
1268
  msgid "Border color"
1269
  msgstr ""
1270
  "Χρώμα πλαισίου\n"
1271
 
1272
+ #: includes/customizer/class-wc-tracking-info-customizer.php:693
1273
  msgid "Border size"
1274
  msgstr ""
1275
  "Μέγεθος περιθωρίου\n"
1276
 
1277
+ #: includes/customizer/class-wc-tracking-info-customizer.php:717
1278
+ msgid "Content Text align"
1279
+ msgstr ""
1280
+ "Ευθυγράμμιση κειμένου περιεχομένου\n"
1281
 
1282
+ #: includes/customizer/class-wc-tracking-info-customizer.php:739
1283
+ msgid "Content font color"
1284
+ msgstr "Το χρώμα γραμματοσειράς περιεχομένου"
1285
 
1286
+ #: includes/customizer/class-wc-tracking-info-customizer.php:755
1287
+ msgid "Content font size"
1288
+ msgstr "Μέγεθος γραμματοσειράς περιεχομένου"
1289
 
1290
+ #: includes/customizer/class-wc-tracking-info-customizer.php:772
1291
  msgid "Content line height"
1292
  msgstr ""
1293
  "Το ύψος της γραμμής περιεχομένου\n"
1294
 
1295
+ #: includes/customizer/class-wc-tracking-info-customizer.php:793
1296
  msgid "Content font weight"
1297
  msgstr ""
1298
  "Βάρος γραμματοσειράς περιεχομένου\n"
1299
 
1300
+ #: includes/customizer/class-wc-tracking-info-customizer.php:815
1301
+ msgid "Tracking Link"
1302
  msgstr ""
1303
+ "Σύνδεσμος παρακολούθησης\n"
1304
 
1305
+ #: includes/customizer/class-wc-tracking-info-customizer.php:829
1306
+ msgid "Font Color"
1307
+ msgstr ""
1308
+ "Χρώμα γραμματοσειράς\n"
1309
 
1310
+ #: includes/customizer/class-wc-tracking-info-customizer.php:860
1311
+ msgid "Border"
1312
+ msgstr "Σύνορο"
1313
 
1314
+ #: includes/customizer/class-wc-tracking-info-customizer.php:912
1315
+ msgid ""
1316
+ "To preview the tracking display, please add tracking information to at least "
1317
+ "one order and choose it in the preview order selection."
1318
+ msgstr ""
1319
+ "Για να κάνετε προεπισκόπηση της οθόνης παρακολούθησης, προσθέστε πληροφορίες "
1320
+ "παρακολούθησης σε τουλάχιστον μία παραγγελία και επιλέξτε την στην επιλογή "
1321
+ "σειράς προεπισκόπησης.\n"
1322
 
1323
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:116
1324
+ msgid "Your {site_title} order is now partially shipped"
1325
+ msgstr "Η παραγγελία σας {site_title} αποστέλλεται τώρα εν μέρει"
1326
 
1327
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:118
1328
  msgid ""
1329
  "Hi there. we thought you'd like to know that your recent order from "
1330
+ "{site_title} has been partially shipped."
1331
  msgstr ""
1332
+ "Γεια σου. σκεφτήκαμε ότι θα θέλατε να μάθετε ότι η πρόσφατη παραγγελία σας "
1333
+ "από {site_title} έχει αποσταλεί εν μέρει.\n"
1334
 
1335
  #: includes/customizer/class-wc-partial-shipped-email-customizer.php:159
1336
+ msgid "Enable Partially Shipped order status email"
1337
+ msgstr "Ενεργοποίηση μηνύματος κατάστασης παραγγελίας μερικής αποστολής"
1338
+
1339
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:116
1340
+ msgid "Your {site_title} order is now updated tracking"
1341
  msgstr ""
1342
+ "Η παραγγελία σας {site_title} είναι πλέον ενημερωμένη παρακολούθηση\n"
1343
+
1344
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:118
1345
+ msgid ""
1346
+ "Hi there. we thought you'd like to know that the shipment tracking for your "
1347
+ "recent order from {site_title} has been updated."
1348
+ msgstr ""
1349
+ "Γεια σου. σκεφτήκαμε ότι θα θέλατε να μάθετε ότι η παρακολούθηση αποστολής "
1350
+ "για την πρόσφατη παραγγελία σας από {site_title} έχει ενημερωθεί.\n"
1351
+
1352
+ #: includes/customizer/class-wc-updated-tracking-email-customizer.php:159
1353
+ msgid "Enable Updated Tracking order status email"
1354
+ msgstr ""
1355
+ "Ενεργοποιήστε το ενημερωμένο email κατάστασης εντολής παρακολούθησης\n"
1356
 
1357
  #: includes/emails/class-shipment-delivered-email.php:32
1358
  msgid "Delivered order"
1359
+ msgstr "Παραδοθείσα παραγγελία"
1360
 
1361
  #: includes/emails/class-shipment-delivered-email.php:33
1362
  msgid ""
1363
  "Order delivered emails are sent to customers when their orders are marked "
1364
  "delivered and usually indicate that their orders have been shipped."
1365
  msgstr ""
1366
+ "Τα παραδοθέντα ηλεκτρονικά μηνύματα αποστέλλονται στους πελάτες όταν "
1367
+ "παραγγελθούν οι παραγγελίες τους και συνήθως υποδεικνύουν ότι οι παραγγελίες "
1368
+ "τους έχουν αποσταλεί."
1369
 
1370
+ #: includes/emails/class-shipment-delivered-email.php: