Advanced Shipment Tracking for WooCommerce - Version 2.5.5

Version Description

  • Added Bulk Actions section in TrackShip tab
  • Updated design trackship connection button
  • Updated settingd of Tracking Info Display customizer
  • Updated translation .pot file
  • Removed admin message for users which is not connected to trackship
  • Fixed design issue of tracking page for trackship for RTL
  • Fixed design issue of shipping providers list for small screen
  • Fixed warning - Undefined index: custom_tracking_provider
Download this release

Release Info

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

Code changes from version 2.4.5 to 2.5.5

Files changed (69) hide show
  1. assets/css/admin.css +488 -193
  2. assets/css/checkbox-slider.css +0 -55
  3. assets/css/customizer-styles.css +8 -1
  4. assets/css/front.css +52 -0
  5. assets/css/icons/invalid-v3.png +0 -0
  6. assets/images/ast-logo.png +0 -0
  7. assets/images/trackship-400.png +0 -0
  8. assets/images/ts_bg.png +0 -0
  9. assets/js/admin.js +15 -3
  10. assets/js/customizer-scripts.js +44 -0
  11. assets/js/preview-scripts.js +11 -0
  12. assets/js/shipping_row.js +49 -2
  13. assets/shipment-provider-img/4px.png +0 -0
  14. assets/shipment-provider-img/acs-courier.png +0 -0
  15. assets/shipment-provider-img/aramex.png +0 -0
  16. assets/shipment-provider-img/courierpost.png +0 -0
  17. assets/shipment-provider-img/dpd-uk.png +0 -0
  18. assets/shipment-provider-img/laos-post.png +0 -0
  19. assets/shipment-provider-img/naqel.png +0 -0
  20. assets/shipment-provider-img/new-zealand-post.png +0 -0
  21. assets/shipment-provider-img/poste-maroc.png +0 -0
  22. assets/shipment-provider-img/purolator.png +0 -0
  23. assets/shipment-provider-img/sda.png +0 -0
  24. assets/shipment-provider-img/smsa-express.png +0 -0
  25. assets/shipment-provider-img/the-professional-couriers.png +0 -0
  26. assets/shipment-provider-img/turkey-post.png +0 -0
  27. includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php +24 -95
  28. includes/class-wc-advanced-shipment-tracking-admin.php +416 -322
  29. includes/class-wc-advanced-shipment-tracking-api-call.php +13 -1
  30. includes/class-wc-advanced-shipment-tracking-front.php +357 -481
  31. includes/class-wc-advanced-shipment-tracking-install.php +886 -784
  32. includes/class-wc-advanced-shipment-tracking.php +201 -38
  33. includes/customizer/class-wc-availableforpickup-email-customizer.php +28 -9
  34. includes/customizer/class-wc-delivered-email-customizer.php +38 -18
  35. includes/customizer/class-wc-email-customizer.php +35 -25
  36. includes/customizer/class-wc-failure-email-customizer.php +32 -9
  37. includes/customizer/class-wc-intransit-email-customizer.php +36 -15
  38. includes/customizer/class-wc-outfordelivery-email-customizer.php +37 -15
  39. includes/customizer/class-wc-returntosender-email-customizer.php +31 -13
  40. includes/customizer/class-wc-tracking-info-customizer.php +126 -66
  41. includes/customizer/class-wc-tracking-page-customizer.php +0 -734
  42. includes/customizer/class-wcast-customizer.php +22 -5
  43. includes/customizer/delivered_preview.php +0 -8
  44. includes/customizer/preview.php +0 -10
  45. includes/email-manager.php +137 -105
  46. includes/emails/class-shipment-delivered-email.php +25 -15
  47. includes/views/admin_options_bulk_upload.php +38 -17
  48. includes/views/admin_options_settings.php +79 -27
  49. includes/views/admin_options_shipping_provider.php +75 -68
  50. includes/views/admin_options_trackship_integration.php +245 -271
  51. includes/views/html-tracking-info-design-preview.php +0 -73
  52. includes/views/zorem_admin_sidebar.php +55 -60
  53. includes/views/zorem_admin_ts_sidebar.php +37 -59
  54. lang/woo-advanced-shipment-tracking-he_IL.mo +0 -0
  55. lang/woo-advanced-shipment-tracking-he_IL.po +424 -466
  56. lang/woo-advanced-shipment-tracking-hi_IN.mo +0 -0
  57. lang/woo-advanced-shipment-tracking-hi_IN.po +615 -772
  58. lang/woo-advanced-shipment-tracking-sv_SE.mo +0 -0
  59. lang/woo-advanced-shipment-tracking-sv_SE.po +411 -129
  60. lang/woo-advanced-shipment-tracking.pot +585 -720
  61. readme.txt +42 -1
  62. templates/emails/plain/tracking-info.php +0 -32
  63. templates/emails/tracking-info.php +25 -4
  64. templates/emails/wcast-billing-email-addresses.php +2 -2
  65. templates/emails/wcast-email-order-details.php +96 -41
  66. templates/emails/wcast-shipping-email-addresses.php +1 -1
  67. templates/myaccount/view-order.php +4 -2
  68. templates/pip/tracking-info.php +0 -31
  69. woocommerce-advanced-shipment-tracking.php +51 -28
assets/css/admin.css CHANGED
@@ -79,9 +79,9 @@
79
  }
80
  section.tab_section {
81
  display: none;
82
- padding: 10px 0;
83
  border-top: 1px solid #ddd;
84
- background: #f9f9f9;
85
  }
86
  section.tpage_section{
87
  display: none;
@@ -90,16 +90,18 @@ input.tab_input {
90
  display: none;
91
  }
92
  label.tab_label {
93
- display: inline-block;
94
- font-weight: 600;
95
- border: 1px solid #ccc;
96
- border-bottom: none;
97
- margin-left: .5em;
98
- padding: 5px 10px;
99
- font-size: 14px;
100
- line-height: 24px;
101
- background: #efefef;
102
- color: #071d57;
 
 
103
  }
104
  label.tab_label:before {
105
  font-family: fontawesome;
@@ -107,13 +109,12 @@ label.tab_label:before {
107
  margin-right: 10px;
108
  }
109
  label.tab_label:hover {
110
- color: #83bd31;
111
  cursor: pointer;
112
  }
113
- input.tab_input:checked + label {
114
- background: #f9f9f9;
115
- color: #83bd31;
116
- border-bottom: 1px solid #f9f9f9;
117
  margin-bottom: -1px;
118
  }
119
  input.tab_input_1 {
@@ -131,8 +132,7 @@ input.tab_input_1:checked + label{
131
  .tab_inner_container {
132
  padding: 0;
133
  display: table-cell;
134
- vertical-align: top;
135
- padding-right: 20px;
136
  }
137
  #content1 .tab_inner_container{
138
  display: block;
@@ -151,15 +151,25 @@ input.tab_input_1:checked + label{
151
  }
152
  .ast_admin_content {
153
  width: 100%;
154
- vertical-align: top;
155
- padding-right: 20px;
 
156
  }
157
  .zorem_admin_sidebar {
158
- width: 260px;
159
- padding-right: 20px;
160
- display: table-cell;
161
- vertical-align: top;
162
- padding-left: 20px;
 
 
 
 
 
 
 
 
 
163
  }
164
  .zorem-sidebar-title {
165
  padding: 10px 0;
@@ -168,8 +178,10 @@ input.tab_input_1:checked + label{
168
  line-height: 15px;
169
  }
170
  .zorem-sidebar__section {
171
- padding: 20px 0;
172
- border-bottom: 1px solid #1ead94;
 
 
173
  }
174
  ..zorem-sidebar__section li:before {
175
  position: absolute;
@@ -178,6 +190,7 @@ input.tab_input_1:checked + label{
178
  }
179
  .zorem-sidebar__section ul {
180
  position: relative;
 
181
  }
182
  .zorem-sidebar__section li {
183
  list-style: none;
@@ -191,6 +204,7 @@ input.tab_input_1:checked + label{
191
  vertical-align: middle;
192
  display: inline-block;
193
  margin-left: 10px;
 
194
  line-height: 20px;
195
  }
196
  .zorem-sidebar__section div a {
@@ -427,10 +441,9 @@ td.column-columnname.url-column {
427
  padding: 0px 0px;
428
  }
429
  #demo-toast-example.mdl-snackbar {
430
- background: #4BB543;
431
- min-width: 100%;
432
- max-width: 100%;
433
  z-index: 100000;
 
434
  }
435
  #demo-toast-example .mdl-snackbar__text {
436
  float: unset;
@@ -451,13 +464,14 @@ td.column-columnname.url-column {
451
  color: #83bd31;
452
  }
453
  .wp-core-ui .btn_green {
454
- background: #071d57;
455
  text-shadow: none;
456
- border-color: #071d57;
457
  box-shadow: none;
458
  font-size: 14px;
459
  line-height: 30px;
460
- height: 32px;
 
461
  }
462
  .wp-core-ui .btn_green2 {
463
  background: #83bd31;
@@ -465,8 +479,29 @@ td.column-columnname.url-column {
465
  border-color: #83bd31;
466
  box-shadow: none;
467
  font-size: 14px;
468
- line-height: 30px;
469
- height: 32px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
470
  }
471
  .wp-core-ui .btn_red {
472
  background: red;
@@ -474,8 +509,18 @@ td.column-columnname.url-column {
474
  border-color: red;
475
  box-shadow: none;
476
  font-size: 14px;
477
- line-height: 30px;
478
- height: 32px;
 
 
 
 
 
 
 
 
 
 
479
  }
480
  .wp-core-ui .btn_red:hover, .wp-core-ui .btn_red:focus {
481
  background: red;
@@ -491,6 +536,20 @@ td.column-columnname.url-column {
491
  text-shadow: none;
492
  box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
493
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
494
  .wp-core-ui .btn_green2:hover, .wp-core-ui .btn_green2:focus {
495
  background: rgba(131, 189, 49, 0.8);
496
  border-color: rgba(131, 189, 49, 0.8);
@@ -498,6 +557,12 @@ td.column-columnname.url-column {
498
  text-shadow: none;
499
  box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
500
  }
 
 
 
 
 
 
501
  .on_edit_show.custom_provider_name {
502
  margin: 10px 0;
503
  }
@@ -516,6 +581,7 @@ td.column-columnname.url-column {
516
  }
517
  #wc_ast_upload_csv_form .mdl-progress {
518
  width: 100%;
 
519
  }
520
  .csv_upload_status {
521
  margin-left: 1em;
@@ -539,29 +605,33 @@ input#wc_ast_api_key {
539
  width: 260px;
540
  }
541
  span.api_connected {
542
- color: green;
543
- line-height: 33px;
 
 
 
 
544
  }
545
  span.api_connected .dashicons.dashicons-yes {
546
  font-size: 30px;
547
  line-height: 33px;
548
  }
549
  .ac-container {
550
- margin: 10px auto 30px auto;
551
  text-align: left;
 
552
  }
553
  .ac-container .headig_label {
554
- padding: 15px 20px 15px 55px;
555
- margin-bottom: 10px;
556
  position: relative;
557
  z-index: 20;
558
  display: block;
559
  cursor: default;
560
  color: #777;
561
  text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
562
- font-size: 14px;
563
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea', GradientType=0 );
564
- box-shadow: 0px 0px 0px 1px rgba(155,155,155,0.3), 1px 0px 0px 0px rgba(255,255,255,0.9) inset, 0px 2px 2px rgba(0,0,0,0.1);
565
  }
566
  .email_heading{
567
  font-size: 14px!important;
@@ -726,13 +796,13 @@ form#add_new_status_email_form:after {
726
  height: 200px !important;
727
  }
728
  .mdl-switch.is-checked .mdl-switch__track {
729
- background: rgba(131, 189, 49, 0.5) !important;
730
  }
731
  .mdl-switch__ripple-container .mdl-ripple {
732
- background: #83bd31 !important;
733
  }
734
  .mdl-switch.is-checked .mdl-switch__thumb {
735
- background: #83bd31 !important;
736
  }
737
  span.email_status_span i {
738
  vertical-align: middle;
@@ -857,6 +927,60 @@ span.email_status_span i.enable {
857
  display: inline-block;
858
  vertical-align: middle;
859
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
860
  .ast-shipment-status .icon-delivered:before{
861
  content: ' ';
862
  background-image: url(icons/delivered-v4.png);
@@ -1089,14 +1213,18 @@ a.cancel_edit {
1089
  .ac-container .headig_label:hover .edit_customizer_a{
1090
  display:inline-block;
1091
  }
1092
- .woocommerce_page_woocommerce-advanced-shipment-tracking #wpcontent, .woocommerce_page_woocommerce-advanced-shipment-tracking#wpfooter{
1093
- background: #f9f9f9;
 
1094
  }
1095
- .ast_admin_content{
1096
- background: #f9f9f9;
1097
  }
1098
- #wc_ast_settings_form,#wc_ast_trackship_form,#wc_ast_upload_csv_form {
1099
- padding: 10px;
 
 
 
1100
  }
1101
  .trackship_logo{
1102
  width: 200px;
@@ -1108,95 +1236,7 @@ a.cancel_edit {
1108
  .trackship_section .heading{
1109
  font-size: 25px;
1110
  }
1111
- .trackship_button{
1112
- background-color: #83bd31;
1113
- position: relative;
1114
- display: inline-block;
1115
- text-transform: uppercase;
1116
- font-size: 1.5em;
1117
- letter-spacing: .03em;
1118
- -ms-touch-action: none;
1119
- touch-action: none;
1120
- cursor: pointer;
1121
- font-weight: bolder;
1122
- text-align: center;
1123
- color: currentColor;
1124
- text-decoration: none;
1125
- border: 1px solid transparent;
1126
- vertical-align: middle;
1127
- border-radius: 0;
1128
- margin-top: 0;
1129
- margin-right: 1em;
1130
- text-shadow: none;
1131
- padding: 15px 30px;
1132
- max-width: 100%;
1133
- text-rendering: optimizeLegibility;
1134
- box-sizing: border-box;
1135
- color: #fff;
1136
- border-radius: 10px;
1137
- }
1138
- .trackship_button:hover{
1139
- color: #fff;
1140
- }
1141
- .section-title {
1142
- position: relative;
1143
- -js-display: flex;
1144
- display: -ms-flexbox;
1145
- display: flex;
1146
- -ms-flex-flow: row wrap;
1147
- flex-flow: row wrap;
1148
- -ms-flex-align: center;
1149
- align-items: center;
1150
- -ms-flex-pack: justify;
1151
- justify-content: space-between;
1152
- width: 100%;
1153
- font-size: 20px;
1154
- }
1155
- .section-title b {
1156
- display: block;
1157
- -ms-flex: 1;
1158
- flex: 1;
1159
- height: 2px;
1160
- opacity: .1;
1161
- background-color: currentColor;
1162
- }
1163
- .section-title-center span{
1164
- text-align: center;
1165
- margin: 0 15px;
1166
- text-transform: uppercase;
1167
- }
1168
- .col-4{
1169
- max-width: 33.33%;
1170
- -ms-flex-preferred-size: 33.33%;
1171
- flex-basis: 33.33%;
1172
- position: relative;
1173
- margin: 0;
1174
- padding: 0 15px 30px;
1175
- box-sizing:border-box;
1176
- }
1177
- .row-box-shadow-1{
1178
- width: 100%;
1179
- -js-display: flex;
1180
- display: -ms-flexbox;
1181
- display: flex;
1182
- -ms-flex-flow: row wrap;
1183
- flex-flow: row wrap;
1184
- }
1185
- .row-box-shadow-1 .col-inner{
1186
- padding: 20px 20px 20px 20px;
1187
- background: #edf2f7;
1188
- box-shadow: 0 1px 3px -2px rgba(0,0,0,0.12), 0 1px 2px rgba(237, 242, 247, 0.24);
1189
- transition: transform .3s, box-shadow .3s, background-color .3s, color .3s, opacity .3s;
1190
- height:100%;
1191
- box-sizing:border-box;
1192
- }
1193
- .featured-box h4{
1194
- color: #071d57;
1195
- font-size: 17px;
1196
- line-height: 23px;
1197
- margin-top: 10px;
1198
- margin-bottom: 10px;
1199
- }
1200
  .multiple_checkbox .mdl-switch.is-upgraded{
1201
  padding-left: 42px;
1202
  margin-bottom: 6px;
@@ -1278,43 +1318,60 @@ a.cancel_edit {
1278
  .widefat .column-wc_actions a.delivered_icon.button::after { font-family: woocommerce; content: "\e01a"; }
1279
  .widefat .column-wc_actions a.add_inline_tracking.button::after { content: "\f230"; }
1280
 
 
 
 
 
 
1281
  .provider {
1282
- padding: 10px 5px 10px 10px;
1283
- border: 1px solid #ccc;
1284
- display: inline-block;
1285
- width: 16%;
1286
- margin-bottom: 10px;
1287
- margin-right: 7px;
1288
- vertical-align: top;
1289
- min-height: 110px;
1290
- box-sizing: border-box;
1291
- background: #eee;
 
 
1292
  }
1293
  .provider_list {
1294
  }
1295
  .provider-thumb{
1296
- height: 50px;
1297
  }
1298
- .left-div {
1299
- display: inline-block;
1300
- vertical-align: middle;
1301
- width: 30%;
1302
  }
1303
- .right-div {
1304
- display: inline-block;
1305
- vertical-align: middle;
1306
- margin-left: 8px;
1307
- width: 62%;
1308
  }
1309
  span.provider_name {
1310
  font-weight: 500;
1311
  font-size: 14px;
1312
  }
1313
  .row-1 {
1314
- margin-bottom: 5px;
 
 
 
 
 
 
 
1315
  }
1316
  .row-2 {
1317
- margin-top: 10px;
 
 
 
 
 
1318
  }
1319
  .default-provider {
1320
  float: left;
@@ -1333,8 +1390,8 @@ span.provider_name {
1333
  clear:both;
1334
  display: block;
1335
  }
1336
- .active_provider {
1337
- border: 1px solid rgba(131, 189, 49, 0.5);
1338
  background: #fff;
1339
  }
1340
  .status_filter {
@@ -1345,8 +1402,12 @@ span.provider_name {
1345
  padding: 0 5px;
1346
  text-decoration: none;
1347
  }
 
 
 
 
1348
  a.active{
1349
- color:#83bd31;
1350
  }
1351
  .search_section {
1352
  display: inline-block;
@@ -1377,7 +1438,7 @@ a.active{
1377
  }
1378
  .provider_top {
1379
  position: relative;
1380
- margin-bottom: 10px;
1381
  }
1382
  .dropdown {
1383
  position: relative;
@@ -1491,6 +1552,10 @@ a.active{
1491
  max-height: 90%;
1492
  overflow-y: overlay;
1493
  }
 
 
 
 
1494
  .trackingpopup_row {
1495
  display: inline-block;
1496
  vertical-align: middle;
@@ -1560,10 +1625,14 @@ a.active{
1560
  color: #444;
1561
  }
1562
  h1.plugin-title {
1563
- padding: 20px 10px 10px 10px;
1564
  font-size: 1.7em;
1565
  color: #071d57;
1566
  }
 
 
 
 
1567
  .disable_label span {
1568
  color: #999;
1569
  }
@@ -1582,8 +1651,9 @@ h1.plugin-title {
1582
  .sync_provider_popup .spinner{
1583
  display:none;
1584
  height: 25px;
 
1585
  }
1586
- .spinner.active{
1587
  display: inline-block;
1588
  }
1589
  .shipment_about{
@@ -1607,22 +1677,58 @@ p.delivered_message {
1607
  }
1608
  .email-icon{
1609
  position: absolute;
1610
- left: 10px;
1611
  top: 17px;
1612
  width: 35px;
1613
  }
1614
  .woocommerce.zorem_admin_layout table.form-table{
1615
  background: #fff;
1616
- border: 2px solid #eee;
1617
- margin-top: 20px;
1618
- margin-bottom: 10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1619
  }
1620
  .ast_admin_content div.submit{
1621
- padding: 0;
1622
  }
1623
  .woocommerce.zorem_admin_layout table.form-table th{
1624
  padding: 20px 24px 20px 15px;
1625
  }
 
 
 
 
 
 
 
1626
  .woocommerce.zorem_admin_layout table.form-table p.description{
1627
  font-size: 0.9em;
1628
  }
@@ -1643,14 +1749,15 @@ p.tracking-preview-desc {
1643
  display: inline-block;
1644
  border-bottom: 0;
1645
  padding-bottom: 0;
1646
- background: #071d57;
1647
  color: #fff;
1648
  padding: 5px;
1649
  border-radius: 3px;
1650
  }
1651
  .woocommerce.zorem_admin_layout table.form-table select{
1652
- width: 100%;
1653
- max-width: 400px;
 
1654
  }
1655
  .trackship-icon{
1656
  width: 70px;
@@ -1676,6 +1783,179 @@ p.tracking-preview-desc {
1676
  width: 80%;
1677
  margin: 1em auto;
1678
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1679
 
1680
  /*** Dashboard Widget CSS ***/
1681
  .ast-dashborad-widget.row{
@@ -1698,22 +1978,32 @@ p.tracking-preview-desc {
1698
  color:#83bd31;
1699
  margin-top:10px;
1700
  }
1701
- @media screen and (min-width: 1850px) {
1702
- .provider{
1703
- padding:10px;
1704
- }
1705
- .right-div{
1706
- margin-left:10px;
1707
- }
 
 
 
1708
  }
1709
- @media screen and (min-width: 1215px) and (max-width: 1465px) {
 
 
 
 
 
 
 
1710
  .provider {
1711
- width: 19%;
1712
  }
1713
  }
1714
- @media screen and (min-width: 768px) and (max-width: 1214px) {
1715
  .provider{
1716
- width: 23%;
1717
  }
1718
  #search_provider{
1719
  width: 200px;
@@ -1733,7 +2023,7 @@ p.tracking-preview-desc {
1733
  }
1734
  @media screen and (max-width: 767px) {
1735
  .provider{
1736
- width: 30.8%;
1737
  }
1738
  .search_section .search-icon{
1739
  padding: 8px 5px;
@@ -1741,10 +2031,15 @@ p.tracking-preview-desc {
1741
  .provider_top {
1742
  margin-bottom: 10px;
1743
  }
 
 
 
 
 
1744
  }
1745
  @media screen and (max-width: 500px) {
1746
  .provider{
1747
- width: 47%;
1748
  }
1749
  .search_section{
1750
  display: block;
79
  }
80
  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;
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;
99
+ margin-right: 25px;
100
+ line-height: 1;
101
+ outline: none;
102
+ }
103
+ label.tab_label.first_label {
104
+ margin-left: 30px;
105
  }
106
  label.tab_label:before {
107
  font-family: fontawesome;
109
  margin-right: 10px;
110
  }
111
  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 {
132
  .tab_inner_container {
133
  padding: 0;
134
  display: table-cell;
135
+ vertical-align: top;
 
136
  }
137
  #content1 .tab_inner_container{
138
  display: block;
151
  }
152
  .ast_admin_content {
153
  width: 100%;
154
+ vertical-align: top;
155
+ border-top: 1px solid #ddd;
156
+ background: #fff;
157
  }
158
  .zorem_admin_sidebar {
159
+ width: 280px;
160
+ display: table-cell;
161
+ vertical-align: top;
162
+ padding: 25px 0px 25px 30px;
163
+ }
164
+ .zorem_admin_layout .zorem_admin_sidebar h3{
165
+ margin: 0 0 1em 0;
166
+ background: #fff;
167
+ color: #005B9A;
168
+ border-bottom: 1px solid #eee;
169
+ padding: 15px 15px;
170
+ }
171
+ .zorem_admin_layout .zorem_admin_sidebar p,.zorem_admin_layout .zorem_admin_sidebar a{
172
+ margin: 10px 10px 10px 15px;
173
  }
174
  .zorem-sidebar-title {
175
  padding: 10px 0;
178
  line-height: 15px;
179
  }
180
  .zorem-sidebar__section {
181
+ padding: 0;
182
+ background: #fff;
183
+ border: 1px solid #eee;
184
+ margin-bottom: 10px;
185
  }
186
  ..zorem-sidebar__section li:before {
187
  position: absolute;
190
  }
191
  .zorem-sidebar__section ul {
192
  position: relative;
193
+ margin: 10px 10px 10px 15px;
194
  }
195
  .zorem-sidebar__section li {
196
  list-style: none;
204
  vertical-align: middle;
205
  display: inline-block;
206
  margin-left: 10px;
207
+ margin-right: 0;
208
  line-height: 20px;
209
  }
210
  .zorem-sidebar__section div a {
441
  padding: 0px 0px;
442
  }
443
  #demo-toast-example.mdl-snackbar {
444
+ background: #83bd31;
 
 
445
  z-index: 100000;
446
+ bottom: 10px;
447
  }
448
  #demo-toast-example .mdl-snackbar__text {
449
  float: unset;
464
  color: #83bd31;
465
  }
466
  .wp-core-ui .btn_green {
467
+ background: rgb(35, 54, 152);
468
  text-shadow: none;
469
+ border-color: rgb(35, 54, 152);
470
  box-shadow: none;
471
  font-size: 14px;
472
  line-height: 30px;
473
+ height: 35px;
474
+ padding: 0 20px;
475
  }
476
  .wp-core-ui .btn_green2 {
477
  background: #83bd31;
479
  border-color: #83bd31;
480
  box-shadow: none;
481
  font-size: 14px;
482
+ line-height: 32px;
483
+ height: 35px;
484
+ padding: 0 20px;
485
+ }
486
+ .wp-core-ui .btn_ast1{
487
+ background: #74C2E1;
488
+ text-shadow: none;
489
+ border-color: #74C2E1;
490
+ box-shadow: none;
491
+ font-size: 14px;
492
+ line-height: 32px;
493
+ height: 35px;
494
+ padding: 0 20px;
495
+ }
496
+ .wp-core-ui .btn_ast2{
497
+ background: #005B9A;
498
+ text-shadow: none;
499
+ border-color: #005B9A;
500
+ box-shadow: none;
501
+ font-size: 14px;
502
+ line-height: 32px;
503
+ height: 35px;
504
+ padding: 0 20px;
505
  }
506
  .wp-core-ui .btn_red {
507
  background: red;
509
  border-color: red;
510
  box-shadow: none;
511
  font-size: 14px;
512
+ line-height: 30px;
513
+ height: 35px;
514
+ }
515
+ .wp-core-ui .btn_large {
516
+ line-height: 36px;
517
+ height: 40px;
518
+ padding: 0 20px;
519
+ font-size: 15px;
520
+ }
521
+ .wp-core-ui .btn_large .dashicons{
522
+ vertical-align: middle;
523
+ margin-left: 5px;
524
  }
525
  .wp-core-ui .btn_red:hover, .wp-core-ui .btn_red:focus {
526
  background: red;
536
  text-shadow: none;
537
  box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
538
  }
539
+ .wp-core-ui .btn_ast1:hover, .wp-core-ui .btn_ast1:focus {
540
+ background: #74C2E1;
541
+ border-color: rgba(0,0,0,0.05);
542
+ color: #fff;
543
+ text-shadow: none;
544
+ box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
545
+ }
546
+ .wp-core-ui .btn_ast2:hover, .wp-core-ui .btn_ast2:focus {
547
+ background: #005B9A;
548
+ border-color: rgba(0,0,0,0.05);
549
+ color: #fff;
550
+ text-shadow: none;
551
+ box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
552
+ }
553
  .wp-core-ui .btn_green2:hover, .wp-core-ui .btn_green2:focus {
554
  background: rgba(131, 189, 49, 0.8);
555
  border-color: rgba(131, 189, 49, 0.8);
557
  text-shadow: none;
558
  box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
559
  }
560
+ .woocommerce_page_woocommerce-advanced-shipment-tracking.wp-core-ui .button-primary:disabled{
561
+ color: #fff!important;
562
+ background: #ccc!important;
563
+ border-color: #eee!important;
564
+ cursor: not-allowed;
565
+ }
566
  .on_edit_show.custom_provider_name {
567
  margin: 10px 0;
568
  }
581
  }
582
  #wc_ast_upload_csv_form .mdl-progress {
583
  width: 100%;
584
+ margin-top: 10px;
585
  }
586
  .csv_upload_status {
587
  margin-left: 1em;
605
  width: 260px;
606
  }
607
  span.api_connected {
608
+ color: #fff;
609
+ line-height: 33px;
610
+ background: #83bd31;
611
+ padding: 12px 26px;
612
+ font-size: 15px;
613
+ border-radius: 5px;
614
  }
615
  span.api_connected .dashicons.dashicons-yes {
616
  font-size: 30px;
617
  line-height: 33px;
618
  }
619
  .ac-container {
620
+ margin: 0 auto 30px auto;
621
  text-align: left;
622
+ border: 1px solid #eee;
623
  }
624
  .ac-container .headig_label {
625
+ padding: 15px 20px 15px 60px;
626
+ margin-bottom: 0;
627
  position: relative;
628
  z-index: 20;
629
  display: block;
630
  cursor: default;
631
  color: #777;
632
  text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
633
+ font-size: 14px;
634
+ border-bottom: 1px solid #eee;
 
635
  }
636
  .email_heading{
637
  font-size: 14px!important;
796
  height: 200px !important;
797
  }
798
  .mdl-switch.is-checked .mdl-switch__track {
799
+ background: #74C2E1 !important;
800
  }
801
  .mdl-switch__ripple-container .mdl-ripple {
802
+ background: #005B9A !important;
803
  }
804
  .mdl-switch.is-checked .mdl-switch__thumb {
805
+ background: #005B9A !important;
806
  }
807
  span.email_status_span i {
808
  vertical-align: middle;
927
  display: inline-block;
928
  vertical-align: middle;
929
  }
930
+ .wcast-shipment-status-icon .icon-INVALID_TRACKING_NUM:before{
931
+ content: ' ';
932
+ background-image: url(icons/invalid-v3.png);
933
+ width: 20px;
934
+ height: 20px;
935
+ background-size: cover;
936
+ display: inline-block;
937
+ vertical-align: middle;
938
+ }
939
+ .wcast-shipment-status-icon .icon-wrong_shipping_provider:before{
940
+ content: ' ';
941
+ background-image: url(icons/invalid-v3.png);
942
+ width: 20px;
943
+ height: 20px;
944
+ background-size: cover;
945
+ display: inline-block;
946
+ vertical-align: middle;
947
+ }
948
+ .wcast-shipment-status-icon .icon-default:before{
949
+ content: ' ';
950
+ background-image: url(icons/invalid-v3.png);
951
+ width: 20px;
952
+ height: 20px;
953
+ background-size: cover;
954
+ display: inline-block;
955
+ vertical-align: middle;
956
+ }
957
+ .ast-shipment-status .icon-default:before{
958
+ content: ' ';
959
+ background-image: url(icons/invalid-v3.png);
960
+ width: 20px;
961
+ height: 20px;
962
+ background-size: cover;
963
+ display: inline-block;
964
+ vertical-align: middle;
965
+ }
966
+ .ast-shipment-status .icon-INVALID_TRACKING_NUM:before{
967
+ content: ' ';
968
+ background-image: url(icons/invalid-v3.png);
969
+ width: 20px;
970
+ height: 20px;
971
+ background-size: cover;
972
+ display: inline-block;
973
+ vertical-align: middle;
974
+ }
975
+ .ast-shipment-status .icon-wrong_shipping_provider:before{
976
+ content: ' ';
977
+ background-image: url(icons/invalid-v3.png);
978
+ width: 20px;
979
+ height: 20px;
980
+ background-size: cover;
981
+ display: inline-block;
982
+ vertical-align: middle;
983
+ }
984
  .ast-shipment-status .icon-delivered:before{
985
  content: ' ';
986
  background-image: url(icons/delivered-v4.png);
1213
  .ac-container .headig_label:hover .edit_customizer_a{
1214
  display:inline-block;
1215
  }
1216
+ .woocommerce_page_woocommerce-advanced-shipment-tracking #wpcontent{
1217
+ background: rgb(245, 248, 250);
1218
+ padding-left: 0;
1219
  }
1220
+ .woocommerce_page_woocommerce-advanced-shipment-tracking #wpbody-content{
1221
+ padding-bottom: 40px;
1222
  }
1223
+ .woocommerce_page_woocommerce-advanced-shipment-tracking #wpfooter{
1224
+ background: rgb(245, 248, 250);
1225
+ }
1226
+ .woocommerce_page_woocommerce-advanced-shipment-tracking .white-bg{
1227
+ background: #fff;
1228
  }
1229
  .trackship_logo{
1230
  width: 200px;
1236
  .trackship_section .heading{
1237
  font-size: 25px;
1238
  }
1239
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1240
  .multiple_checkbox .mdl-switch.is-upgraded{
1241
  padding-left: 42px;
1242
  margin-bottom: 6px;
1318
  .widefat .column-wc_actions a.delivered_icon.button::after { font-family: woocommerce; content: "\e01a"; }
1319
  .widefat .column-wc_actions a.add_inline_tracking.button::after { content: "\f230"; }
1320
 
1321
+ .provider_list:after {
1322
+ clear: both;
1323
+ content: '';
1324
+ display: block;
1325
+ }
1326
  .provider {
1327
+ padding: 0 5px;
1328
+ width: 16.66%;
1329
+ margin-bottom: 10px;
1330
+ vertical-align: top;
1331
+ box-sizing: border-box;
1332
+ float: left;
1333
+ }
1334
+ .provider_inner {
1335
+ border: 1px solid #ccc;
1336
+ background: #eee;
1337
+ min-height: 105px;
1338
+ padding: 10px 5px 0px 10px;
1339
  }
1340
  .provider_list {
1341
  }
1342
  .provider-thumb{
1343
+ height: 50px;
1344
  }
1345
+ .left-div {
1346
+ box-sizing: border-box;
1347
+ display: block;
 
1348
  }
1349
+ .right-div {
1350
+ margin-left: 15px;
1351
+ width: 100%;
1352
+ display: block;
 
1353
  }
1354
  span.provider_name {
1355
  font-weight: 500;
1356
  font-size: 14px;
1357
  }
1358
  .row-1 {
1359
+ margin-bottom: 0;
1360
+ display: flex;
1361
+ align-items: start;
1362
+ }
1363
+ .row-1:after {
1364
+ content: '';
1365
+ clear: both;
1366
+ display: block;
1367
  }
1368
  .row-2 {
1369
+ margin-top: 15px;
1370
+ border-top: 1px solid #ccc;
1371
+ padding-top: 10px;
1372
+ }
1373
+ .active_provider .row-2{
1374
+ border-top: 1px solid #eee;
1375
  }
1376
  .default-provider {
1377
  float: left;
1390
  clear:both;
1391
  display: block;
1392
  }
1393
+ .active_provider .provider_inner{
1394
+ border: 1px solid rgba(116, 194, 225, 0.5);
1395
  background: #fff;
1396
  }
1397
  .status_filter {
1402
  padding: 0 5px;
1403
  text-decoration: none;
1404
  }
1405
+ .status_filter a:focus{
1406
+ outline: none;
1407
+ box-shadow: none;
1408
+ }
1409
  a.active{
1410
+ color:#74C2E1;
1411
  }
1412
  .search_section {
1413
  display: inline-block;
1438
  }
1439
  .provider_top {
1440
  position: relative;
1441
+ margin: 10px 0;
1442
  }
1443
  .dropdown {
1444
  position: relative;
1552
  max-height: 90%;
1553
  overflow-y: overlay;
1554
  }
1555
+ .how_to_video_popup .popuprow{
1556
+ max-width: 700px;
1557
+ padding: 0;
1558
+ }
1559
  .trackingpopup_row {
1560
  display: inline-block;
1561
  vertical-align: middle;
1625
  color: #444;
1626
  }
1627
  h1.plugin-title {
1628
+ padding: 20px 30px 10px 30px;
1629
  font-size: 1.7em;
1630
  color: #071d57;
1631
  }
1632
+ .plugin-logo{
1633
+ max-width: 400px;
1634
+ padding: 15px 0px 15px 30px;
1635
+ }
1636
  .disable_label span {
1637
  color: #999;
1638
  }
1651
  .sync_provider_popup .spinner{
1652
  display:none;
1653
  height: 25px;
1654
+ float: none;
1655
  }
1656
+ .sync_provider_popup .spinner.active{
1657
  display: inline-block;
1658
  }
1659
  .shipment_about{
1677
  }
1678
  .email-icon{
1679
  position: absolute;
1680
+ left: 15px;
1681
  top: 17px;
1682
  width: 35px;
1683
  }
1684
  .woocommerce.zorem_admin_layout table.form-table{
1685
  background: #fff;
1686
+ border: 1px solid #eee;
1687
+ margin-top: 0;
1688
+ margin-bottom: 0px;
1689
+ }
1690
+ .woocommerce.zorem_admin_layout table.form-table.heading-table{
1691
+ margin: 25px 0 0;
1692
+ border-bottom: 0;
1693
+ }
1694
+ #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{
1695
+ border-bottom: 0;
1696
+ }
1697
+ .woocommerce.zorem_admin_layout table.form-table.heading-table td{
1698
+ padding: 12px 15px;
1699
+ }
1700
+ .woocommerce.zorem_admin_layout table.form-table.heading-table td h3{
1701
+ margin: 0;
1702
+ color:#005B9A;
1703
+ }
1704
+ .woocommerce.zorem_admin_layout table.form-table.heading-table td.button-column{
1705
+ text-align:right;
1706
+ }
1707
+ .zorem_admin_layout h3.table-heading{
1708
+ background: #fff;
1709
+ color: #005B9A;
1710
+ border: 1px solid #eee;
1711
+ margin: 25px 0 0;
1712
+ border-bottom: 0;
1713
+ padding: 15px;
1714
+ }
1715
+ .zorem_admin_layout h3.table-heading:after{
1716
+ content:'';
1717
+ clear:both;
1718
  }
1719
  .ast_admin_content div.submit{
1720
+ padding: 0;
1721
  }
1722
  .woocommerce.zorem_admin_layout table.form-table th{
1723
  padding: 20px 24px 20px 15px;
1724
  }
1725
+ .woocommerce.zorem_admin_layout table.form-table td{
1726
+ padding: 15px 15px;
1727
+ }
1728
+ .woocommerce.zorem_admin_layout table.form-table th label{
1729
+ font-weight: 400;
1730
+ color: #444;
1731
+ }
1732
  .woocommerce.zorem_admin_layout table.form-table p.description{
1733
  font-size: 0.9em;
1734
  }
1749
  display: inline-block;
1750
  border-bottom: 0;
1751
  padding-bottom: 0;
1752
+ background: #74C2E1;
1753
  color: #fff;
1754
  padding: 5px;
1755
  border-radius: 3px;
1756
  }
1757
  .woocommerce.zorem_admin_layout table.form-table select{
1758
+ width: auto;
1759
+ max-width: 400px;
1760
+ min-width: 90px;
1761
  }
1762
  .trackship-icon{
1763
  width: 70px;
1783
  width: 80%;
1784
  margin: 1em auto;
1785
  }
1786
+ .description-below-table{
1787
+ background: #fff;
1788
+ border: 1px solid #eee;
1789
+ margin-top: 0;
1790
+ margin-bottom: 0;
1791
+ padding: 20px 24px 20px 15px;
1792
+ border-top: 0;
1793
+ }
1794
+ .ast_admin_content div.submit .spinner{
1795
+ display: none;
1796
+ float: none;
1797
+ margin: 0px 10px 0;
1798
+ }
1799
+ .ast_admin_content div.submit .spinner.active{
1800
+ display: inline-block;
1801
+ }
1802
+
1803
+ /*** AST Notice CSS ***/
1804
+ .ast-notice {
1805
+ position: relative;
1806
+ color: #444;
1807
+ }
1808
+ .ast-notice .ast-notice-inner {
1809
+ margin-top: 25px;
1810
+ padding: 20px;
1811
+ background: #fff;
1812
+ border-left: 3px solid;
1813
+ line-height: 1.5;
1814
+ font-size: 14px;
1815
+ border-left-color: #83bd31;
1816
+ }
1817
+ .ast-notice .dismiss-notice {
1818
+ border: none;
1819
+ background: none;
1820
+ padding: 0;
1821
+ margin: 0;
1822
+ display: inline-block;
1823
+ cursor: pointer;
1824
+ color: #acbdc9;
1825
+ position: relative;
1826
+ float: right;
1827
+ }
1828
+ .ast-notice .ast-notice-inner .notice-title {
1829
+ color: #061c58;
1830
+ font-weight: 700;
1831
+ display: block;
1832
+ margin: 0 0 6px;
1833
+ padding: 0;
1834
+ }
1835
+ .ast-notice .notice-content {
1836
+ margin-right: 20px;
1837
+ margin-bottom: 20px;
1838
+ }
1839
+
1840
+
1841
+ .nav_doc_section {
1842
+ float: right;
1843
+ padding: 15px 0 15px;
1844
+ margin-right: 30px;
1845
+ }
1846
+
1847
+ .nav_doc_section a {
1848
+ color: #393f4c;
1849
+ text-decoration: none;
1850
+ font-size: 14px;
1851
+ }
1852
+ .nav_doc_section a:hover{
1853
+ color: #74C2E1;
1854
+ }
1855
+ .nav_doc_section a:focus{
1856
+ outline: none;
1857
+ box-shadow: none;
1858
+ }
1859
+ .nav_doc_section a.open_video_popup:after {
1860
+ content: "\f236";
1861
+ font-family: dashicons;
1862
+ font-size: 18px;
1863
+ vertical-align: bottom;
1864
+ margin-left: 5px;
1865
+ clear: both;
1866
+ }
1867
+ .videoWrapper {
1868
+ position: relative;
1869
+ padding-bottom: 56.25%; /* 16:9 */
1870
+ padding-top: 25px;
1871
+ height: 0;
1872
+ }
1873
+ .videoWrapper iframe {
1874
+ position: absolute;
1875
+ top: 0;
1876
+ left: 0;
1877
+ width: 100%;
1878
+ height: 100%;
1879
+ }
1880
+ @media (max-width: 767px) {
1881
+ .notice.ast-admin-notice {
1882
+ padding: 10px;
1883
+ }
1884
+ .notice.ast-admin-notice .ast-admin-notice-inner {
1885
+ display: block;
1886
+ }
1887
+ .notice.ast-admin-notice .ast-admin-notice-inner .ast-admin-notice-content {
1888
+ display: block;
1889
+ padding: 0;
1890
+ }
1891
+ .notice.ast-admin-notice .ast-admin-notice-inner .ast-admin-notice-icon,
1892
+ .notice.ast-admin-notice .ast-admin-notice-inner .trackship-install-now {
1893
+ display: none;
1894
+ }
1895
+ }
1896
+
1897
+ /*** Trackship Upsell CSS ***/
1898
+ .trackship-upsell-overlay {
1899
+ width: 750px;
1900
+ max-width: 100%;
1901
+ -webkit-box-shadow: 0 5px 25px 0 rgba(0,0,0,.15);
1902
+ box-shadow: 0 5px 25px 0 rgba(0,0,0,.15);
1903
+ background-color: #fff;
1904
+ border: 1px solid #eee;
1905
+ margin: 70px auto 50px;
1906
+ }
1907
+ .trackship-upsell-overlay .trackship-upsell-top {
1908
+ padding: 0 40px;
1909
+ }
1910
+ .trackship-upsell-overlay h3 {
1911
+ text-align: center;
1912
+ color: #393f4c;
1913
+ font-size: 20px;
1914
+ margin: 32px 0 20px;
1915
+ line-height: 1.4;
1916
+ }
1917
+ .trackship-upsell-overlay .trackship-upsell-subtitle {
1918
+ color: #071d57;
1919
+ font-size: 16px;
1920
+ text-align: center;
1921
+ }
1922
+ .trackship-upsell-overlay .trackship-upsell-content {
1923
+ border-top: 1px solid #eee;
1924
+ background: #f9fbff;
1925
+ padding: 40px;
1926
+ }
1927
+ .trackship-upsell-overlay .trackship-upsell-content ul {
1928
+ margin: 0 auto;
1929
+ max-width: 520px;
1930
+ }
1931
+ .trackship-upsell-overlay .trackship-upsell-content ul li {
1932
+ color: #071d57;
1933
+ font-size: 16px;
1934
+ margin: 0 0 20px;
1935
+ padding-left: 40px;
1936
+ position: relative;
1937
+ line-height: 1.5;
1938
+ }
1939
+ .trackship-upsell-overlay .trackship-upsell-content ul li:before {
1940
+ position: absolute;
1941
+ content: "\f147";
1942
+ width: 20px;
1943
+ height: 20px;
1944
+ background: #83bd31;
1945
+ left: 0;
1946
+ border-radius: 50%;
1947
+ display: inline-block;
1948
+ font-family: dashicons;
1949
+ font-style: normal;
1950
+ font-weight: 400;
1951
+ -webkit-font-smoothing: antialiased;
1952
+ -moz-osx-font-smoothing: grayscale;
1953
+ color: #f9fbff;
1954
+ font-size: 14px;
1955
+ text-align: center;
1956
+ line-height: 20px;
1957
+ top: 4px;
1958
+ }
1959
 
1960
  /*** Dashboard Widget CSS ***/
1961
  .ast-dashborad-widget.row{
1978
  color:#83bd31;
1979
  margin-top:10px;
1980
  }
1981
+ .woocommerce_page_woocommerce-advanced-shipment-tracking .woocommerce-help-tip{
1982
+ color: #005B9A;
1983
+ }
1984
+ .woocommerce_page_woocommerce-advanced-shipment-tracking #tiptip_content{
1985
+ background:#005B9A;
1986
+ padding: 15px;
1987
+ font-size: 12px;
1988
+ }
1989
+ .woocommerce_page_woocommerce-advanced-shipment-tracking #tiptip_holder.tip_top #tiptip_arrow_inner{
1990
+ border-top-color: #005B9A;
1991
  }
1992
+ .woocommerce_page_woocommerce-advanced-shipment-tracking #tiptip_holder.tip_bottom #tiptip_arrow_inner{
1993
+ border-bottom-color: #005B9A;
1994
+ }
1995
+ .trackship_section{
1996
+ background-image: url(../images/ts_bg.png);
1997
+ min-height: 100vh;
1998
+ }
1999
+ @media screen and (min-width: 1270px) and (max-width: 1465px) {
2000
  .provider {
2001
+ width: 20%;
2002
  }
2003
  }
2004
+ @media screen and (min-width: 768px) and (max-width: 1269px) {
2005
  .provider{
2006
+ width: 25%;
2007
  }
2008
  #search_provider{
2009
  width: 200px;
2023
  }
2024
  @media screen and (max-width: 767px) {
2025
  .provider{
2026
+ width: 33.3%;
2027
  }
2028
  .search_section .search-icon{
2029
  padding: 8px 5px;
2031
  .provider_top {
2032
  margin-bottom: 10px;
2033
  }
2034
+ .nav_doc_section{
2035
+ float: none;
2036
+ padding: 15px 0 15px;
2037
+ margin-left: 30px;
2038
+ }
2039
  }
2040
  @media screen and (max-width: 500px) {
2041
  .provider{
2042
+ width: 50%;
2043
  }
2044
  .search_section{
2045
  display: block;
assets/css/checkbox-slider.css DELETED
@@ -1,55 +0,0 @@
1
- /*
2
- * checkbox slider
3
- * version 1.0
4
- */
5
- .switch {
6
- position: relative;
7
- display: inline-block;
8
- width: 50px;
9
- height: 25px;
10
- }
11
- .switch input {
12
- opacity: 0;
13
- width: 0;
14
- height: 0;
15
- display: none;
16
- }
17
- .slider {
18
- position: absolute;
19
- cursor: pointer;
20
- top: 0;
21
- left: 0;
22
- right: 0;
23
- bottom: 0;
24
- background-color: #ccc;
25
- -webkit-transition: .4s;
26
- transition: .4s;
27
- }
28
- .slider:before {
29
- position: absolute;
30
- content: "";
31
- height: 17px;
32
- width: 17px;
33
- left: 4px;
34
- bottom: 4px;
35
- background-color: white;
36
- -webkit-transition: .4s;
37
- transition: .4s;
38
- }
39
- input:checked + .slider {
40
- background-color: #65baaf;
41
- }
42
- input:focus + .slider {
43
- box-shadow: 0 0 1px #2196F3;
44
- }
45
- input:checked + .slider:before {
46
- -webkit-transform: translateX(26px);
47
- -ms-transform: translateX(26px);
48
- transform: translateX(26px);
49
- }
50
- .slider.round {
51
- border-radius: 34px;
52
- }
53
- .slider.round:before {
54
- border-radius: 50%;
55
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/customizer-styles.css CHANGED
@@ -161,5 +161,12 @@
161
  color: #505050;
162
  }
163
  #customize-controls li.customize-control h3{
164
- margin-top: 4px;
 
 
 
 
 
 
 
165
  }
161
  color: #505050;
162
  }
163
  #customize-controls li.customize-control h3{
164
+ margin-top: 0px;
165
+ margin-bottom: 0;
166
+ }
167
+ #customize-controls li.customize-control h3.control_heading{
168
+ margin-bottom:14px;
169
+ }
170
+ .customize-control-description{
171
+ font-size: 12px;
172
  }
assets/css/front.css CHANGED
@@ -367,6 +367,42 @@ table.tracking-table{
367
  background-repeat: no-repeat;
368
  background-position: center center;
369
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  @media screen and (max-width: 767px) {
371
  .col.tracking-detail{
372
  padding: 20px 15px 0;
@@ -389,6 +425,10 @@ table.tracking-table{
389
  background-repeat: no-repeat;
390
  background-position: center center;
391
  }
 
 
 
 
392
  }
393
  @media screen and (max-width: 550px) {
394
  .mobile-section{
@@ -467,4 +507,16 @@ table.tracking-table{
467
  background-repeat: no-repeat;
468
  background-position: center center;
469
  }
 
 
 
 
 
 
 
 
 
 
 
 
470
  }
367
  background-repeat: no-repeat;
368
  background-position: center center;
369
  }
370
+ .col.tracking-detail{
371
+ text-align: left;
372
+ }
373
+ .track-order-section{
374
+ text-align: left;
375
+ }
376
+ /*** RTL CSS ***/
377
+
378
+ .rtl .track-order-section{
379
+ text-align: right;
380
+ }
381
+ .rtl .col.tracking-detail{
382
+ text-align: right;
383
+ }
384
+ .rtl .tracking-detail .text-right{
385
+ text-align: left;
386
+ }
387
+ .rtl .tracker-progress-bar-with-dots .state-0{
388
+ right: 0;
389
+ }
390
+ .rtl .tracker-progress-bar-with-dots .state-1{
391
+ right: 33%;
392
+ }
393
+ .rtl .tracker-progress-bar-with-dots .state-2{
394
+ right: 66%;
395
+ }
396
+ .rtl .tracker-progress-bar-with-dots .state-3{
397
+ right: 95%;
398
+ }
399
+ .rtl .tracker-progress-bar-with-dots .progress{
400
+ margin-right: 15px;
401
+ margin-left: 0;
402
+ }
403
+
404
+ /*** END OF RTL CSS ***/
405
+
406
  @media screen and (max-width: 767px) {
407
  .col.tracking-detail{
408
  padding: 20px 15px 0;
425
  background-repeat: no-repeat;
426
  background-position: center center;
427
  }
428
+ /*** RTL CSS ***/
429
+ .rtl .tracking-detail .text-right {
430
+ text-align: right;
431
+ }
432
  }
433
  @media screen and (max-width: 550px) {
434
  .mobile-section{
507
  background-repeat: no-repeat;
508
  background-position: center center;
509
  }
510
+ .rtl .tracker-progress-bar-with-dots .state-1{
511
+ right: 0;
512
+ }
513
+ .rtl .tracker-progress-bar-with-dots .state-2{
514
+ right: 0;
515
+ }
516
+ .rtl .tracker-progress-bar-with-dots .state-3{
517
+ right: 0;
518
+ }
519
+ .rtl .mobile-section .tracker-progress-bar.tracker-progress-bar-with-dots:before{
520
+ right: 27px;
521
+ }
522
  }
assets/css/icons/invalid-v3.png ADDED
Binary file
assets/images/ast-logo.png ADDED
Binary file
assets/images/trackship-400.png ADDED
Binary file
assets/images/ts_bg.png ADDED
Binary file
assets/js/admin.js CHANGED
@@ -12,14 +12,20 @@ jQuery( function( $ ) {
12
  },
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
- hideerror(tracking_number);
 
 
 
 
 
 
23
  }
24
  if( tracking_provider.val() === '' ){
25
  jQuery("#tracking_provider").siblings('.select2-container').find('.select2-selection').css('border-color','red');
@@ -244,7 +250,13 @@ jQuery(document).on("submit", "#add_tracking_number_form", function(){
244
  showerror(tracking_number);
245
  error = true;
246
  } else{
247
- hideerror(tracking_number);
 
 
 
 
 
 
248
  }
249
 
250
  if( date_shipped.val() === '' ){
12
  },
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;
26
+ } else{
27
+ hideerror(tracking_number);
28
+ }
29
  }
30
  if( tracking_provider.val() === '' ){
31
  jQuery("#tracking_provider").siblings('.select2-container').find('.select2-selection').css('border-color','red');
250
  showerror(tracking_number);
251
  error = true;
252
  } else{
253
+ var pattern = /^[0-9a-zA-Z \b]+$/;
254
+ if(!pattern.test(tracking_number.val())){
255
+ showerror(tracking_number);
256
+ error = true;
257
+ } else{
258
+ hideerror(tracking_number);
259
+ }
260
  }
261
 
262
  if( date_shipped.val() === '' ){
assets/js/customizer-scripts.js CHANGED
@@ -22,6 +22,27 @@ jQuery(document).ready(function() {
22
  if(jQuery("#_customize-input-wcast_enable_delivered_ga_tracking").prop("checked") != true){
23
  jQuery('#customize-control-wcast_delivered_analytics_link').hide();
24
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  });
27
  jQuery(document).on("change", "#_customize-input-show_track_label", function(){
@@ -31,6 +52,29 @@ jQuery(document).on("change", "#_customize-input-show_track_label", function(){
31
  jQuery('#customize-control-track_header_text').hide();
32
  }
33
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  jQuery(document).on("change", "#_customize-input-wcast_enable_delivered_ga_tracking", function(){
35
  if(jQuery(this).prop("checked") == true){
36
  jQuery('#customize-control-wcast_delivered_analytics_link').show();
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(){
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();
assets/js/preview-scripts.js CHANGED
@@ -50,6 +50,17 @@
50
  });
51
  });
52
 
 
 
 
 
 
 
 
 
 
 
 
53
  wp.customize( 'provider_header_text', function( value ) {
54
  value.bind( function( provider_header_text ) {
55
  if( provider_header_text ){
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();
57
+ }
58
+ else{
59
+ $( '.tracking_table thead' ).show();
60
+ }
61
+ });
62
+ });
63
+
64
  wp.customize( 'provider_header_text', function( value ) {
65
  value.bind( function( provider_header_text ) {
66
  if( provider_header_text ){
assets/js/shipping_row.js CHANGED
@@ -212,7 +212,7 @@ jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
212
  replace_tracking_info = 0;
213
  }
214
 
215
- //alert(jQuery("#replace_tracking_info").prop("checked"));
216
 
217
  var ext = jQuery('#trcking_csv_file').val().split('.').pop().toLowerCase();
218
 
@@ -228,9 +228,11 @@ jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
228
  hideerror(trcking_csv_file);
229
  }
230
  }
 
231
  if(error == true){
232
  return false;
233
  }
 
234
 
235
  var regex = /([a-zA-Z0-9\s_\\.\-\(\):])+(.csv|.txt)$/;
236
  if (regex.test(jQuery("#trcking_csv_file").val().toLowerCase())) {
@@ -254,7 +256,7 @@ jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
254
  }
255
  }
256
  }
257
- var csv_length = trackings.length;
258
  jQuery("#wc_ast_upload_csv_form")[0].reset();
259
  jQuery("#p1 .progressbar").css('background-color','rgb(63,81,181)');
260
  var querySelector = document.querySelector('#p1');
@@ -499,6 +501,7 @@ jQuery(document).on("click", ".popupclose", function(){
499
  jQuery('.add_provider_popup').hide();
500
  jQuery('.edit_provider_popup').hide();
501
  jQuery('.sync_provider_popup').hide();
 
502
  });
503
  jQuery(document).on("click", ".close_synch_popup", function(){
504
  jQuery('.sync_provider_popup').hide();
@@ -932,4 +935,48 @@ jQuery(document).on("click", ".bulk_shipment_status_button", function(){
932
  }
933
  });
934
  return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
935
  });
212
  replace_tracking_info = 0;
213
  }
214
 
215
+
216
 
217
  var ext = jQuery('#trcking_csv_file').val().split('.').pop().toLowerCase();
218
 
228
  hideerror(trcking_csv_file);
229
  }
230
  }
231
+
232
  if(error == true){
233
  return false;
234
  }
235
+
236
 
237
  var regex = /([a-zA-Z0-9\s_\\.\-\(\):])+(.csv|.txt)$/;
238
  if (regex.test(jQuery("#trcking_csv_file").val().toLowerCase())) {
256
  }
257
  }
258
  }
259
+ var csv_length = trackings.length;
260
  jQuery("#wc_ast_upload_csv_form")[0].reset();
261
  jQuery("#p1 .progressbar").css('background-color','rgb(63,81,181)');
262
  var querySelector = document.querySelector('#p1');
501
  jQuery('.add_provider_popup').hide();
502
  jQuery('.edit_provider_popup').hide();
503
  jQuery('.sync_provider_popup').hide();
504
+ jQuery('.how_to_video_popup').hide();
505
  });
506
  jQuery(document).on("click", ".close_synch_popup", function(){
507
  jQuery('.sync_provider_popup').hide();
935
  }
936
  });
937
  return false;
938
+ });
939
+
940
+ jQuery(document).on("click", ".bulk_shipment_status_button_for_empty_balance", function(){
941
+ jQuery("#content3").block({
942
+ message: null,
943
+ overlayCSS: {
944
+ background: "#fff",
945
+ opacity: .6
946
+ }
947
+ });
948
+ var ajax_data = {
949
+ action: 'bulk_shipment_status_for_empty_balance_from_settings',
950
+ };
951
+ jQuery.ajax({
952
+ url: ajaxurl,
953
+ data: ajax_data,
954
+ type: 'POST',
955
+ success: function(response) {
956
+ jQuery("#content3").unblock();
957
+ jQuery( '.bulk_shipment_status_button_for_empty_balance' ).after( "<div class='bulk_shipment_status_success'>Tracking info sent to Trackship for all Orders.</div>" );
958
+ jQuery( '.bulk_shipment_status_button_for_empty_balance' ).attr("disabled", true);
959
+ },
960
+ error: function(response) {
961
+ console.log(response);
962
+ }
963
+ });
964
+ return false;
965
+ });
966
+
967
+ jQuery(document).on("click", ".tab_input", function(){
968
+ var tab = jQuery(this).data('tab');
969
+ var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=woocommerce-advanced-shipment-tracking&tab="+tab;
970
+ window.history.pushState({path:url},'',url);
971
+ });
972
+
973
+ jQuery(document).on("click", ".open_video_popup", function(){
974
+ jQuery('.how_to_video_popup').show();
975
+ });
976
+
977
+ jQuery(document).on("click", ".how_to_video_popup .popupclose", function(){
978
+ jQuery('#how_to_video').each(function(index) {
979
+ jQuery(this).attr('src', jQuery(this).attr('src'));
980
+ return false;
981
+ });
982
  });
assets/shipment-provider-img/4px.png ADDED
Binary file
assets/shipment-provider-img/acs-courier.png ADDED
Binary file
assets/shipment-provider-img/aramex.png ADDED
Binary file
assets/shipment-provider-img/courierpost.png ADDED
Binary file
assets/shipment-provider-img/dpd-uk.png ADDED
Binary file
assets/shipment-provider-img/laos-post.png ADDED
Binary file
assets/shipment-provider-img/naqel.png ADDED
Binary file
assets/shipment-provider-img/new-zealand-post.png ADDED
Binary file
assets/shipment-provider-img/poste-maroc.png ADDED
Binary file
assets/shipment-provider-img/purolator.png ADDED
Binary file
assets/shipment-provider-img/sda.png ADDED
Binary file
assets/shipment-provider-img/smsa-express.png ADDED
Binary file
assets/shipment-provider-img/the-professional-couriers.png ADDED
Binary file
assets/shipment-provider-img/turkey-post.png ADDED
Binary file
includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php CHANGED
@@ -130,9 +130,30 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
130
  ),
131
  'schema' => array( $this, 'get_public_item_schema' ),
132
  ) );
133
- }
 
 
 
 
 
 
 
 
 
 
134
 
135
  /*
 
 
 
 
 
 
 
 
 
 
 
136
  * check_wcast_installed
137
  */
138
  public function check_wcast_installed( $request ){
@@ -363,100 +384,8 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
363
 
364
  $order_id = (int) $request['order_id'];
365
 
366
- if ( is_plugin_active( 'custom-order-numbers-for-woocommerce/custom-order-numbers-for-woocommerce.php' ) ) {
367
- $alg_wc_custom_order_numbers_enabled = get_option('alg_wc_custom_order_numbers_enabled');
368
- if($alg_wc_custom_order_numbers_enabled == 'yes'){
369
- $args = array(
370
- 'post_type' => 'shop_order',
371
- 'posts_per_page' => '1',
372
- 'meta_query' => array(
373
- 'relation' => 'AND',
374
- array(
375
- 'key' => '_alg_wc_custom_order_number',
376
- 'value' => $order_id
377
- ),
378
- ),
379
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
380
- );
381
- $posts = get_posts( $args );
382
- $my_query = new WP_Query( $args );
383
-
384
- if( $my_query->have_posts() ) {
385
- while( $my_query->have_posts()) {
386
- $my_query->the_post();
387
- if(get_the_ID()){
388
- $order_id = get_the_ID();
389
- }
390
- } // end while
391
- } // end if
392
- wp_reset_postdata();
393
- }
394
- }
395
-
396
- if ( is_plugin_active( 'woocommerce-sequential-order-numbers/woocommerce-sequential-order-numbers.php' ) ) {
397
-
398
- $s_order_id = wc_sequential_order_numbers()->find_order_by_order_number( $order_id );
399
- if($s_order_id){
400
- $order_id = $s_order_id;
401
- }
402
- }
403
-
404
- if ( is_plugin_active( 'wp-lister-amazon/wp-lister-amazon.php' ) ) {
405
- $wpla_use_amazon_order_number = get_option( 'wpla_use_amazon_order_number' );
406
- if($wpla_use_amazon_order_number == 1){
407
- $args = array(
408
- 'post_type' => 'shop_order',
409
- 'posts_per_page' => '1',
410
- 'meta_query' => array(
411
- 'relation' => 'AND',
412
- array(
413
- 'key' => '_wpla_amazon_order_id',
414
- 'value' => $order_id
415
- ),
416
- ),
417
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
418
- );
419
- $posts = get_posts( $args );
420
- $my_query = new WP_Query( $args );
421
-
422
- if( $my_query->have_posts() ) {
423
- while( $my_query->have_posts()) {
424
- $my_query->the_post();
425
- if(get_the_ID()){
426
- $order_id = get_the_ID();
427
- }
428
- } // end while
429
- } // end if
430
- wp_reset_postdata();
431
- }
432
- }
433
-
434
- if ( is_plugin_active( 'wp-lister/wp-lister.php' ) || is_plugin_active( 'wp-lister-for-ebay/wp-lister.php' )) {
435
- $args = array(
436
- 'post_type' => 'shop_order',
437
- 'posts_per_page' => '1',
438
- 'meta_query' => array(
439
- 'relation' => 'AND',
440
- array(
441
- 'key' => '_ebay_extended_order_id',
442
- 'value' => $order_id
443
- ),
444
- ),
445
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
446
- );
447
- $posts = get_posts( $args );
448
- $my_query = new WP_Query( $args );
449
-
450
- if( $my_query->have_posts() ) {
451
- while( $my_query->have_posts()) {
452
- $my_query->the_post();
453
- if(get_the_ID()){
454
- $order_id = get_the_ID();
455
- }
456
- } // end while
457
- } // end if
458
- wp_reset_postdata();
459
- }
460
 
461
  if ( ! $this->is_valid_order_id( $order_id ) ) {
462
  return new WP_Error( 'woocommerce_rest_order_invalid_id', __( 'Invalid order ID.', 'woocommerce-shipment-tracking' ), array( 'status' => 404 ) );
130
  ),
131
  'schema' => array( $this, 'get_public_item_schema' ),
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',
138
+ 'callback' => array( $this, 'check_wcast_installed_from_third_party_tool' ),
139
+ 'permission_callback' => array( $this, 'get_item_permissions_check' ),
140
+ ),
141
+ 'schema' => array( $this, 'get_public_item_schema' ),
142
+ ) );
143
+ }
144
 
145
  /*
146
+ * check_wcast_installed_from_third_party_tool
147
+ */
148
+ public function check_wcast_installed_from_third_party_tool( $request ){
149
+
150
+ $data = array(
151
+ 'status' => 'installed'
152
+ );
153
+ return rest_ensure_response( $data );
154
+ }
155
+
156
+ /*
157
  * check_wcast_installed
158
  */
159
  public function check_wcast_installed( $request ){
384
 
385
  $order_id = (int) $request['order_id'];
386
 
387
+ $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
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 ) );
includes/class-wc-advanced-shipment-tracking-admin.php CHANGED
@@ -110,6 +110,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
110
  // Bulk shipment status sync ajax call from settings
111
  add_action( 'wp_ajax_bulk_shipment_status_from_settings', array( $this, 'bulk_shipment_status_from_settings_fun' ) );
112
 
 
 
 
113
  // The results notice from bulk action on orders
114
  add_action( 'admin_notices', array( $this, 'shipment_status_bulk_action_admin_notice' ) );
115
 
@@ -416,6 +419,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
416
  return $value;
417
  }
418
 
 
 
 
419
  function check_order_status($value, $order){
420
  $order_status = $order->get_status();
421
 
@@ -426,6 +432,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
426
  }
427
  return $value;
428
  }
 
429
  /*
430
  * add in batch process
431
  */
@@ -606,6 +613,15 @@ class WC_Advanced_Shipment_Tracking_Admin {
606
  */
607
  public function admin_styles($hook) {
608
 
 
 
 
 
 
 
 
 
 
609
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
610
 
611
  wp_enqueue_style( 'font-awesome', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/font-awesome.min.css', array(), '4.7' );
@@ -623,16 +639,6 @@ class WC_Advanced_Shipment_Tracking_Admin {
623
  ),
624
  ) );
625
 
626
- if(!isset($_GET['page'])) {
627
- return;
628
- }
629
- if( $_GET['page'] != 'woocommerce-advanced-shipment-tracking') {
630
- return;
631
- }
632
-
633
-
634
-
635
-
636
  wp_register_script( 'selectWoo', WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full' . $suffix . '.js', array( 'jquery' ), '1.0.4' );
637
  wp_register_script( 'wc-enhanced-select', WC()->plugin_url() . '/assets/js/admin/wc-enhanced-select' . $suffix . '.js', array( 'jquery', 'selectWoo' ), WC_VERSION );
638
  wp_register_script( 'jquery-blockui', WC()->plugin_url() . '/assets/js/jquery-blockui/jquery.blockUI' . $suffix . '.js', array( 'jquery' ), '2.70', true );
@@ -647,12 +653,10 @@ class WC_Advanced_Shipment_Tracking_Admin {
647
  wp_enqueue_script( 'jquery-tiptip' );
648
  wp_enqueue_script( 'jquery-blockui' );
649
  wp_enqueue_script( 'wp-color-picker' );
650
- wp_enqueue_script( 'jquery-ui-sortable' );
651
- //wp_enqueue_style( 'wp-color-picker' );
652
  wp_enqueue_script('media-upload');
653
  wp_enqueue_script('thickbox');
654
- wp_enqueue_style('thickbox');
655
- wp_enqueue_style( 'checkbox-slider', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/checkbox-slider.css' );
656
 
657
  wp_enqueue_style( 'material-css', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/material.css', array(), wc_advanced_shipment_tracking()->version );
658
  wp_enqueue_script( 'material-js', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/material.min.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
@@ -663,14 +667,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
663
 
664
  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 );
665
  wp_localize_script( 'shipment_tracking_table_rows', 'shipment_tracking_table_rows', array(
666
- 'i18n' => array(
667
- 'order' => __( 'Order', 'woo-advanced-shipment-tracking' ),
668
- 'item' => __( 'Item', 'woo-advanced-shipment-tracking' ),
669
- 'line_item' => __( 'Line Item', 'woo-advanced-shipment-tracking' ),
670
- 'class' => __( 'Class', 'woo-advanced-shipment-tracking' ),
671
- 'delete_rates' => __( 'Delete the selected rates?', 'woo-advanced-shipment-tracking' ),
672
- 'dupe_rates' => __( 'Duplicate the selected rates?', 'woo-advanced-shipment-tracking' ),
673
- 'provider_status_alert' => __( 'Really want to bulk change all provider status?', 'woo-advanced-shipment-tracking' ),
674
  'data_saved' => __( 'Data saved successfully.', 'woo-advanced-shipment-tracking' ),
675
  'delete_provider' => __( 'Really delete this entry? This will not be undo.', 'woo-advanced-shipment-tracking' ),
676
  'upload_only_csv_file' => __( 'You can upload only csv file.', 'woo-advanced-shipment-tracking' ),
@@ -679,9 +676,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
679
  ),
680
  'delete_rates_nonce' => wp_create_nonce( "delete-rate" ),
681
  ) );
682
- if (isset($_GET['page']) && $_GET['page'] == 'woocommerce-advanced-shipment-tracking') {
683
- wp_enqueue_media();
684
- }
685
  }
686
 
687
  /*
@@ -691,12 +686,21 @@ class WC_Advanced_Shipment_Tracking_Admin {
691
  public function register_woocommerce_menu() {
692
  add_submenu_page( 'woocommerce', 'Shipment Tracking', 'Shipment Tracking', 'manage_options', 'woocommerce-advanced-shipment-tracking', array( $this, 'woocommerce_advanced_shipment_tracking_page_callback' ) );
693
  }
 
 
 
 
694
  public function sortByCountryAsc($a, $b) {
695
  return strcmp($a->country, $b->country);
696
  }
 
 
 
 
697
  public function sortByCountryDesc($a, $b) {
698
  return strcmp($b->country, $a->country);
699
  }
 
700
  /*
701
  * callback for Shipment Tracking page
702
  */
@@ -727,34 +731,47 @@ class WC_Advanced_Shipment_Tracking_Admin {
727
  }
728
  }
729
  wp_enqueue_script( 'shipment_tracking_table_rows' );
730
- ?>
731
- <h1 class="plugin-title"><?php _e('Advanced Shipment Tracking', 'woo-advanced-shipment-tracking'); ?></h1>
732
- <div class="wrap woocommerce zorem_admin_layout">
733
- <div class="ast_admin_content" >
734
-
735
- <input id="tab1" type="radio" name="tabs" class="tab_input" <?php if(!isset($_GET['tab'])){ echo 'checked'; } ?> >
736
- <label for="tab1" class="tab_label"><?php _e('Shipping Providers', 'woo-advanced-shipment-tracking'); ?></label>
737
-
738
- <input id="tab2" type="radio" name="tabs" class="tab_input" <?php if(isset($_GET['tab']) && ($_GET['tab'] == 'settings' || $_GET['tab'] == 'delivered-order-status')){ echo 'checked'; } ?>>
739
- <label for="tab2" class="tab_label"><?php _e('Settings', 'woo-advanced-shipment-tracking'); ?></label>
740
-
741
- <input id="tab4" type="radio" name="tabs" class="tab_input" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'bulk-upload'){ echo 'checked'; } ?>>
742
- <label for="tab4" class="tab_label"><?php _e('Bulk Upload', 'woo-advanced-shipment-tracking'); ?></label>
743
-
744
- <input id="tab3" type="radio" name="tabs" class="tab_input" <?php if(isset($_GET['tab']) && ($_GET['tab'] == 'trackship' || $_GET['tab'] == 'tracking-page' || $_GET['tab'] == 'shipment-status-notifications')){ echo 'checked'; } ?>>
745
- <label for="tab3" class="tab_label"><?php _e('TrackShip', 'woo-advanced-shipment-tracking'); ?></label>
 
 
 
 
 
 
746
 
747
  <?php require_once( 'views/admin_options_shipping_provider.php' );?>
748
  <?php require_once( 'views/admin_options_settings.php' );?>
749
  <?php require_once( 'views/admin_options_trackship_integration.php' );?>
750
  <?php require_once( 'views/admin_options_bulk_upload.php' );?>
751
- </div>
752
- <?php //require_once( 'views/zorem_admin_sidebar.php' );?>
753
  </div>
754
  <div id="demo-toast-example" class="mdl-js-snackbar mdl-snackbar">
755
  <div class="mdl-snackbar__text"></div>
756
  <button class="mdl-snackbar__action" type="button"></button>
757
- </div>
 
 
 
 
 
 
 
 
758
  <?php
759
  if(isset( $_GET['tab'] ) && $_GET['tab'] == 'trackship'){ ?>
760
  <script>
@@ -881,17 +898,6 @@ class WC_Advanced_Shipment_Tracking_Admin {
881
  <?php } ?>
882
  </fieldset>
883
  <?php }
884
- elseif( $array['type'] == 'desc' ){ ?>
885
- <fieldset>
886
- <p><?php _e( 'Auto-track all your shipments, get real-time shipment tracking updates without leaving your stores admin.', 'woo-advanced-shipment-tracking' ); ?></p>
887
- <p><?php
888
- $url = '<a href="https://trackship.info/my-account" target="blank">TrackShip</a>';
889
- echo sprintf(__("You must have account and connect your store to %s in order to activate these advanced features.", 'woo-advanced-shipment-tracking'), $url); ?></p>
890
- <p><?php
891
- $url = '<a href="https://trackship.info/my-account" target="blank">Trackship</a>';
892
- echo sprintf(__("50 free Trackers for every new account! Get your %s account now>>", 'woo-advanced-shipment-tracking'), $url); ?></p>
893
- </fieldset>
894
- <?php }
895
  elseif( $array['type'] == 'label' ){ ?>
896
  <fieldset>
897
  <label><?php echo $array['value']; ?></label>
@@ -904,7 +910,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
904
  <?php }
905
  elseif( $array['type'] == 'button' ){ ?>
906
  <fieldset>
907
- <button class="button-primary btn_green <?php echo $array['button_class'];?>"><?php echo $array['label'];?></button>
908
  </fieldset>
909
  <?php }
910
  else { ?>
@@ -922,38 +928,24 @@ class WC_Advanced_Shipment_Tracking_Admin {
922
  <?php } } ?>
923
  </tbody>
924
  </table>
925
- <?php }
 
926
 
927
  /*
928
- * get settings tab array data
929
  * return array
930
  */
931
- function get_trackship_general_data(){
932
- $wc_ast_api_key = get_option('wc_ast_api_key');
933
- $trackers_balance = get_option( 'trackers_balance' );
934
- $wc_ast_status_delivered = get_option( 'wc_ast_status_delivered' );
935
- if($wc_ast_api_key){
936
- $connected = true;
937
- $show_trackship_field = true;
938
- $show_trackship_description = false;
939
- } else{
940
- $connected = false;
941
- $show_trackship_field = false;
942
- $show_trackship_description = true;
943
- }
944
- if($wc_ast_status_delivered){
945
- $disabled_change_to_delivered = false;
946
- } else{
947
- $disabled_change_to_delivered = true;
948
- }
949
- $page_list = wp_list_pluck( get_pages(), 'post_title', 'ID' );
950
-
951
  // Get orders completed.
952
  $args = array(
953
- 'status' => 'wc-completed',
 
 
954
  );
 
955
  $orders = wc_get_orders( $args );
956
  $completed_order_with_tracking = 0;
 
957
  foreach($orders as $order){
958
  $order_id = $order->get_id();
959
 
@@ -961,7 +953,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
961
  $tracking_items = $ast->get_tracking_items( $order_id, true );
962
  if($tracking_items){
963
  $shipment_status = get_post_meta( $order_id, "shipment_status", true);
964
- foreach ( $tracking_items as $key => $tracking_item ) {
965
  if( !isset($shipment_status[$key]) ){
966
  $completed_order_with_tracking++;
967
  }
@@ -970,26 +962,92 @@ class WC_Advanced_Shipment_Tracking_Admin {
970
  }
971
 
972
  if($completed_order_with_tracking > 0){
973
- $show_bulk_sync = true;
974
  } else{
975
- $show_bulk_sync = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
976
  }
977
 
978
  $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
 
979
  if($wc_ast_status_shipped == 1){
980
  $completed_order_label = '<span class="shipped_label">shipped</span>';
981
  } else{
982
  $completed_order_label = '<span class="shipped_label">completed</span>';
983
- }
984
- //echo '<pre>';print_r($completed_order_with_tracking);echo '</pre>';
985
- $form_data = array(
986
- 'wc_ast_trackship_connection_status' => array(
987
- 'type' => 'key_field',
988
- 'title' => __( 'TrackShip Connection Status', 'woo-advanced-shipment-tracking' ),
989
- 'connected' => $connected,
990
- 'show' => $show_trackship_field,
 
 
991
  'class' => '',
992
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
993
  'wc_ast_api_enabled' => array(
994
  'type' => 'checkbox',
995
  'title' => __( 'Enable/Disable', 'woo-advanced-shipment-tracking' ),
@@ -1003,24 +1061,10 @@ class WC_Advanced_Shipment_Tracking_Admin {
1003
  'class' => '',
1004
  'disabled' => $disabled_change_to_delivered,
1005
  ),
1006
- 'wc_ast_bulk_shipment_status' => array(
1007
- 'type' => 'button',
1008
- 'title' => sprintf(__('You have %s %s orders that you can track with TrackShip, you can send these shipments to TrackShip in Bulk.', 'woo-advanced-shipment-tracking'), $completed_order_with_tracking , $completed_order_label),
1009
- 'label' => __( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ),
1010
- 'show' => $show_bulk_sync,
1011
- 'button_class' => 'bulk_shipment_status_button',
1012
- 'class' => '',
1013
- ),
1014
- 'wc_ast_trackship_description' => array(
1015
- 'type' => 'desc',
1016
- 'title' => '',
1017
- 'show' => $show_trackship_description,
1018
- 'class' => '',
1019
- ),
1020
  );
1021
  return $form_data;
1022
-
1023
  }
 
1024
  /*
1025
  * get settings tab array data
1026
  * return array
@@ -1058,12 +1102,6 @@ class WC_Advanced_Shipment_Tracking_Admin {
1058
  'desc' => $page_desc,
1059
  'class' => '',
1060
  ),
1061
- 'wc_ast_remove_trackship_branding' => array(
1062
- 'type' => 'checkbox',
1063
- 'title' => __( 'Remove Trackship branding from tracking page', 'woo-advanced-shipment-tracking' ),
1064
- 'show' => $show_trackship_field,
1065
- 'class' => '',
1066
- ),
1067
  'wc_ast_use_tracking_page' => array(
1068
  'type' => 'checkbox',
1069
  'title' => __( 'Use the tracking page in the customer email/my account tracking link', 'woo-advanced-shipment-tracking' ),
@@ -1081,7 +1119,19 @@ class WC_Advanced_Shipment_Tracking_Admin {
1081
  'title' => __( 'Select content border color for tracking page', 'woo-advanced-shipment-tracking' ),
1082
  'class' => 'color_field',
1083
  'show' => $show_trackship_field,
1084
- ),
 
 
 
 
 
 
 
 
 
 
 
 
1085
  );
1086
  return $form_data;
1087
 
@@ -1133,23 +1183,56 @@ class WC_Advanced_Shipment_Tracking_Admin {
1133
  * return array
1134
  */
1135
  function get_settings_data(){
1136
- if ( is_plugin_active( 'woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php' ) ) {
1137
- $show_invoice_field = true;
1138
- } else{
1139
- $show_invoice_field = false;
1140
- }
1141
-
1142
  $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
1143
  if($wc_ast_status_shipped == 1){
1144
  $completed_order_label = __( 'Shipped', 'woo-advanced-shipment-tracking' );
1145
- $mark_as_shipped_label = __( 'Default "mark as <span class="shipped_label">shipped</span>" checkbox state', 'woo-advanced-shipment-tracking' );
1146
  $mark_as_shipped_tooltip = __( "This means that the 'mark as <span class='shipped_label'>shipped</span>' will be selected by default when adding tracking info to orders.", 'woo-advanced-shipment-tracking' );
1147
  } else{
1148
- $completed_order_label = __( 'Completed', 'woo-advanced-shipment-tracking' );
1149
- $mark_as_shipped_label = __( 'Default "mark as <span class="shipped_label">completed</span>" checkbox state', 'woo-advanced-shipment-tracking' );
1150
  $mark_as_shipped_tooltip = __( "This means that the 'mark as <span class='shipped_label'>completed</span>' will be selected by default when adding tracking info to orders.", 'woo-advanced-shipment-tracking' );
1151
  }
1152
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1153
  $form_data = array(
1154
  'wc_ast_status_shipped' => array(
1155
  'type' => 'checkbox',
@@ -1166,14 +1249,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1166
  ),
1167
  'wc_ast_unclude_tracking_info' => array(
1168
  'type' => 'multiple_checkbox',
1169
- 'title' => __( 'On which customer order status email to include tracking info?', 'woo-advanced-shipment-tracking' ),'options' => array(
1170
- "show_in_cancelled" =>__( 'Cancelled', 'woo-advanced-shipment-tracking' ),
1171
- "show_in_customer_invoice" =>__( 'Customer Invoice', 'woo-advanced-shipment-tracking' ),
1172
- "show_in_refunded" =>__( 'Refunded', 'woo-advanced-shipment-tracking' ),
1173
- "show_in_processing" =>__( 'Processing', 'woo-advanced-shipment-tracking' ),
1174
- "show_in_failed" =>__( 'Failed', 'woo-advanced-shipment-tracking' ),
1175
- "show_in_completed" =>__( $completed_order_label, 'woo-advanced-shipment-tracking' ),
1176
- ),
1177
  'show' => true,
1178
  'class' => '',
1179
  ),
@@ -1202,45 +1278,34 @@ class WC_Advanced_Shipment_Tracking_Admin {
1202
  $form_data = array(
1203
  'wc_ast_status_delivered' => array(
1204
  'type' => 'checkbox',
1205
- 'title' => __( 'Enable a New Custom order status - “Delivered', 'woo-advanced-shipment-tracking' ),
1206
  'tooltip' => __( 'if you enable the delivered item, you will have the option to send delivered email notifications.', 'woo-advanced-shipment-tracking' ),
1207
  'show' => true,
1208
  'class' => '',
1209
  ),
1210
  'wc_ast_status_label_color' => array(
1211
  'type' => 'color',
1212
- 'title' => __( 'Delivered Status Label color', 'woo-advanced-shipment-tracking' ),
1213
  'class' => 'status_label_color_th',
1214
  'show' => true,
1215
  ),
1216
- 'wcast_enable_delivered_email' => array(
1217
- 'type' => 'checkbox',
1218
- 'title' => __( 'Delivered order status email', 'woo-advanced-shipment-tracking' ),
1219
- 'title_link'=> "<a class='settings_edit' href='".wcast_initialise_customizer_email::get_customizer_url('customer_delivered_email')."'>".__( 'Edit', 'woo-advanced-shipment-tracking' )."</a>",
 
 
 
 
1220
  'class' => 'status_label_color_th',
1221
  'show' => true,
1222
  ),
1223
- );
1224
- return $form_data;
1225
-
1226
- }
1227
-
1228
- /*
1229
- * get settings tab array data
1230
- * return array
1231
- */
1232
- function get_uninstall_data(){
1233
- $form_data = array(
1234
- 'wc_ast_deactivate_delivered' => array(
1235
- 'type' => 'dropdown',
1236
- 'title' => __( 'Change the "Delivered" orders to "Completed" when you deactivate the plugin', 'woo-advanced-shipment-tracking' ),
1237
- 'options' => array(
1238
- "no" =>__( 'No, I will use the snippet', 'woo-advanced-shipment-tracking' ),
1239
- "yes" =>__( 'Yes, change all Delivered orders to Completed', 'woo-advanced-shipment-tracking' ),
1240
- ),
1241
- 'desc' => sprintf(__('PLEASE NOTE - 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 snippet to use in functions.php %s or we can set to change all your "delivered" order to "completed".', 'woo-advanced-shipment-tracking'), '<a href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/code-snippets/#delivered_code" target="blank">here</a>'),
1242
  'show' => true,
1243
- 'class' => 'status_label_color_th',
1244
  ),
1245
  );
1246
  return $form_data;
@@ -1283,122 +1348,33 @@ class WC_Advanced_Shipment_Tracking_Admin {
1283
 
1284
  }
1285
  }
1286
-
1287
-
1288
-
1289
-
1290
  function footer_function(){
1291
- $color = get_option('wc_ast_status_label_color');
 
1292
  ?>
1293
  <style>
1294
  .order-status.status-delivered{
1295
- background: <?php echo $color; ?>;
 
1296
  }
1297
  </style>
1298
  <?php
1299
  }
1300
 
1301
- function upload_tracking_csv_fun(){
1302
-
1303
- $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
 
1304
 
1305
  $replace_tracking_info = $_POST['replace_tracking_info'];
1306
  $order_id = $_POST['order_id'];
1307
 
1308
- if ( is_plugin_active( 'custom-order-numbers-for-woocommerce/custom-order-numbers-for-woocommerce.php' ) ) {
1309
- $alg_wc_custom_order_numbers_enabled = get_option('alg_wc_custom_order_numbers_enabled');
1310
- if($alg_wc_custom_order_numbers_enabled == 'yes'){
1311
- $args = array(
1312
- 'post_type' => 'shop_order',
1313
- 'posts_per_page' => '1',
1314
- 'meta_query' => array(
1315
- 'relation' => 'AND',
1316
- array(
1317
- 'key' => '_alg_wc_custom_order_number',
1318
- 'value' => $order_id
1319
- ),
1320
- ),
1321
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
1322
- );
1323
- $posts = get_posts( $args );
1324
- $my_query = new WP_Query( $args );
1325
-
1326
- if( $my_query->have_posts() ) {
1327
- while( $my_query->have_posts()) {
1328
- $my_query->the_post();
1329
- if(get_the_ID()){
1330
- $order_id = get_the_ID();
1331
- }
1332
- } // end while
1333
- } // end if
1334
- wp_reset_postdata();
1335
- }
1336
- }
1337
-
1338
- if ( is_plugin_active( 'woocommerce-sequential-order-numbers/woocommerce-sequential-order-numbers.php' ) ) {
1339
-
1340
- $s_order_id = wc_sequential_order_numbers()->find_order_by_order_number( $order_id );
1341
- if($s_order_id){
1342
- $order_id = $s_order_id;
1343
- }
1344
- }
1345
-
1346
- if ( is_plugin_active( 'wp-lister-amazon/wp-lister-amazon.php' ) ) {
1347
- $wpla_use_amazon_order_number = get_option( 'wpla_use_amazon_order_number' );
1348
- if($wpla_use_amazon_order_number == 1){
1349
- $args = array(
1350
- 'post_type' => 'shop_order',
1351
- 'posts_per_page' => '1',
1352
- 'meta_query' => array(
1353
- 'relation' => 'AND',
1354
- array(
1355
- 'key' => '_wpla_amazon_order_id',
1356
- 'value' => $order_id
1357
- ),
1358
- ),
1359
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
1360
- );
1361
- $posts = get_posts( $args );
1362
- $my_query = new WP_Query( $args );
1363
-
1364
- if( $my_query->have_posts() ) {
1365
- while( $my_query->have_posts()) {
1366
- $my_query->the_post();
1367
- if(get_the_ID()){
1368
- $order_id = get_the_ID();
1369
- }
1370
- } // end while
1371
- } // end if
1372
- wp_reset_postdata();
1373
- }
1374
- }
1375
-
1376
- if ( is_plugin_active( 'wp-lister/wp-lister.php' ) || is_plugin_active( 'wp-lister-for-ebay/wp-lister.php' )) {
1377
- $args = array(
1378
- 'post_type' => 'shop_order',
1379
- 'posts_per_page' => '1',
1380
- 'meta_query' => array(
1381
- 'relation' => 'AND',
1382
- array(
1383
- 'key' => '_ebay_extended_order_id',
1384
- 'value' => $order_id
1385
- ),
1386
- ),
1387
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
1388
- );
1389
- $posts = get_posts( $args );
1390
- $my_query = new WP_Query( $args );
1391
-
1392
- if( $my_query->have_posts() ) {
1393
- while( $my_query->have_posts()) {
1394
- $my_query->the_post();
1395
- if(get_the_ID()){
1396
- $order_id = get_the_ID();
1397
- }
1398
- } // end while
1399
- } // end if
1400
- wp_reset_postdata();
1401
- }
1402
 
1403
  $tracking_provider = $_POST['tracking_provider'];
1404
  $tracking_number = $_POST['tracking_number'];
@@ -1418,6 +1394,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
1418
  if(empty($tracking_number)){
1419
  echo '<li class="error">Failed - Empty Tracking Number for Order Id - '.$_POST['order_id'].'</li>';exit;
1420
  }
 
 
 
1421
  if(empty($date_shipped)){
1422
  echo '<li class="error">Failed - Empty Date Shipped for Order Id - '.$_POST['order_id'].'</li>';exit;
1423
  }
@@ -1466,6 +1445,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1466
  echo '<li class="error">Failed - Invalid Tracking Data</li>';exit;
1467
  }
1468
  }
 
1469
  /**
1470
  * Check if the value is a valid date
1471
  *
@@ -1492,10 +1472,13 @@ class WC_Advanced_Shipment_Tracking_Admin {
1492
  * Change order status to delivered
1493
  */
1494
  function add_bulk_actions_get_shipment_status($bulk_actions){
1495
- $bulk_actions['get_shipment_status'] = 'Get Shipment status';
1496
  return $bulk_actions;
1497
  }
1498
 
 
 
 
1499
  function get_shipment_status_handle_bulk_action_edit_shop_order( $redirect_to, $action, $post_ids ){
1500
 
1501
  if ( $action !== 'get_shipment_status' )
@@ -1506,7 +1489,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1506
  $order_count = count($post_ids);
1507
 
1508
  if($order_count > 100){
1509
- return $redirect_to;
1510
  }
1511
 
1512
  foreach ( $post_ids as $post_id ) {
@@ -1523,11 +1506,15 @@ class WC_Advanced_Shipment_Tracking_Admin {
1523
  ), $redirect_to );
1524
  }
1525
 
 
 
 
1526
  public static function bulk_shipment_status_from_settings_fun(){
1527
  $args = array(
1528
  'status' => 'wc-completed',
1529
- );
1530
-
 
1531
  $orders = wc_get_orders( $args );
1532
  foreach($orders as $order){
1533
  $order_id = $order->get_id();
@@ -1536,6 +1523,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
1536
  $tracking_items = $ast->get_tracking_items( $order_id, true );
1537
  if($tracking_items){
1538
  $shipment_status = get_post_meta( $order_id, "shipment_status", true);
 
 
1539
  foreach ( $tracking_items as $key => $tracking_item ) {
1540
  if( !isset($shipment_status[$key]) ){
1541
  wp_schedule_single_event( time() + 1, 'wcast_retry_trackship_apicall', array( $order_id ) );
@@ -1547,6 +1536,36 @@ class WC_Advanced_Shipment_Tracking_Admin {
1547
  echo $url;die();
1548
  }
1549
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1550
  /**
1551
  * Add 'get_shipment_status' link to order actions select box on edit order page
1552
  *
@@ -1557,15 +1576,20 @@ class WC_Advanced_Shipment_Tracking_Admin {
1557
  public function add_order_meta_box_get_shipment_status_actions( $actions ) {
1558
 
1559
  // add download to CSV action
1560
- $actions['get_shipment_status_edit_order'] = __( 'Get shipment status', 'woo-advanced-shipment-tracking' );
1561
  return $actions;
1562
  }
1563
 
 
 
 
1564
  public function process_order_meta_box_actions_get_shipment_status( $order ){
1565
  $this->trigger_woocommerce_order_status_completed( $order->get_id() );
1566
  }
1567
-
1568
- // The results notice from bulk action on orders
 
 
1569
  function shipment_status_bulk_action_admin_notice() {
1570
  if ( empty( $_REQUEST['get_shipment_status'] ) ) return; // Exit
1571
 
@@ -1594,7 +1618,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1594
  $status = __( 'Delivered', 'woo-advanced-shipment-tracking' );
1595
  break;
1596
  case "out_for_delivery":
1597
- $status = __( 'Out for delivery', 'woo-advanced-shipment-tracking' );
1598
  break;
1599
  case "available_for_pickup":
1600
  $status = __( 'Available For Pickup', 'woo-advanced-shipment-tracking' );
@@ -1615,11 +1639,17 @@ class WC_Advanced_Shipment_Tracking_Admin {
1615
  $status = __( 'Invalid Tracking', 'woo-advanced-shipment-tracking' );
1616
  break;
1617
  case "carrier_unsupported":
1618
- $status = __( 'Carrier unsupported', 'woo-advanced-shipment-tracking' );
1619
  break;
1620
  case "invalid_user_key":
1621
  $status = __( 'Invalid User Key', 'woo-advanced-shipment-tracking' );
1622
  break;
 
 
 
 
 
 
1623
 
1624
  }
1625
  return $status;
@@ -1658,13 +1688,16 @@ class WC_Advanced_Shipment_Tracking_Admin {
1658
  $html = '<span class="icon-'.$status.'">';
1659
  break;
1660
  case "INVALID_TRACKING_NUM":
1661
- $html = '<i class="fa fa-question-circle icon-'.$status.'" aria-hidden="true"></i>';
1662
  break;
 
 
 
1663
  case "invalid_user_key":
1664
  $html = '<span class="icon-'.$status.'">';
1665
  break;
1666
  default:
1667
- $html = '<i class="fa fa-question-circle icon-'.$status.'" aria-hidden="true"></i>';
1668
  break;
1669
 
1670
  }
@@ -1680,6 +1713,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1680
  $logger->info( "Retry trackship api call for Order id : ".$order_id, $context );
1681
  $this->trigger_woocommerce_order_status_completed( $order_id );
1682
  }
 
1683
  /*
1684
  * define the item in the meta box by adding an item to the $actions array
1685
  */
@@ -1687,6 +1721,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1687
  $actions['resend_delivered_order_notification'] = __( 'Resend delivered order notification', 'woo-advanced-shipment-tracking' );
1688
  return $actions;
1689
  }
 
1690
  /*
1691
  * function call when resend delivered order email notification trigger
1692
  */
@@ -1698,6 +1733,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1698
  //wc_advanced_shipment_tracking_email_class()->delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status);
1699
  WC()->mailer()->emails['WC_Email_Customer_Delivered_Order']->trigger( $order_id, $order );
1700
  }
 
1701
  /*
1702
  * update preview order id in customizer
1703
  */
@@ -1712,6 +1748,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1712
  set_theme_mod('wcast_preview_order_id', $_POST['wcast_preview_order_id']);
1713
  exit;
1714
  }
 
1715
  /*
1716
  * update delivered order email status
1717
  */
@@ -1725,6 +1762,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1725
  update_option( 'woocommerce_customer_delivered_order_settings', $opt );
1726
  exit;
1727
  }
 
1728
  /*
1729
  * update all shipment status email status
1730
  */
@@ -1732,6 +1770,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1732
  set_theme_mod($_POST['id'], $_POST['wcast_enable_status_email']);
1733
  exit;
1734
  }
 
1735
  /*
1736
  * Change completed order email title to Shipped Order
1737
  */
@@ -1749,10 +1788,15 @@ class WC_Advanced_Shipment_Tracking_Admin {
1749
  }
1750
  return $email_title;
1751
  }
 
1752
  /*
1753
  * Add action button in order list to change order status from completed to delivered
1754
  */
1755
  public function add_delivered_order_status_actions_button($actions, $order){
 
 
 
 
1756
  $wc_ast_status_delivered = get_option('wc_ast_status_delivered');
1757
  if($wc_ast_status_delivered){
1758
  if ( $order->has_status( array( 'completed' ) ) ) {
@@ -1773,6 +1817,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1773
  );
1774
  return $actions;
1775
  }
 
1776
  /*
1777
  * Add delivered action button in preview order list to change order status from completed to delivered
1778
  */
@@ -1803,6 +1848,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
1803
  return $actions;
1804
  }
1805
 
 
 
 
1806
  public function filter_shipiing_provider_by_status_fun(){
1807
  $status = $_POST['status'];
1808
  global $wpdb;
@@ -1823,6 +1871,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
1823
  echo $html;exit;
1824
  }
1825
 
 
 
 
1826
  public function get_provider_html($default_shippment_providers,$status){
1827
  $WC_Countries = new WC_Countries();
1828
  ?>
@@ -1831,58 +1882,60 @@ class WC_Advanced_Shipment_Tracking_Admin {
1831
  if($default_shippment_providers){
1832
  foreach($default_shippment_providers as $d_s_p){ ?>
1833
  <div class="provider <?php if($d_s_p->display_in_order == 1) { echo 'active_provider'; } ?>">
1834
- <div class="row-1">
1835
- <div class="left-div">
1836
- <a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank">
1837
- <?php if( $d_s_p->shipping_default == 1 ){ ?>
1838
- <img class="provider-thumb" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/<?php echo sanitize_title($d_s_p->provider_name);?>.png?v=<?php echo wc_advanced_shipment_tracking()->version;?>">
1839
- <?php } else{
1840
- $custom_thumb_id = $d_s_p->custom_thumb_id;
1841
- $image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
1842
- //echo '<pre>';print_r($custom_thumb_id);echo '</pre>';exit;
1843
- if($custom_thumb_id != 0){ ?>
1844
- <img class="provider-thumb" src="<?php echo $image_attributes[0]; ?>">
1845
- <?php } else{
1846
- ?>
1847
- <img class="provider-thumb" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/icon-default.png">
1848
- <?php } ?>
1849
- <?php } ?>
1850
- </a>
1851
- </div>
1852
- <div class="right-div">
1853
- <a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank">
1854
- <span class="provider_name"><?php echo $d_s_p->provider_name; ?></span>
1855
- </a>
1856
- <br>
1857
- <span class="provider_country"><?php
1858
- $search = array('(US)', '(UK)');
1859
- $replace = array('', '');
1860
- if($d_s_p->shipping_country && $d_s_p->shipping_country != 'Global'){
1861
- echo str_replace($search, $replace, $WC_Countries->countries[$d_s_p->shipping_country]);
1862
- } elseif($d_s_p->shipping_country && $d_s_p->shipping_country == 'Global'){
1863
- echo 'Global';
1864
- }
1865
- ?></span>
1866
- </div>
1867
- </div>
1868
- <div class="row-2">
1869
- <div class="default-provider">
1870
- <?php $default_provider = get_option("wc_ast_default_provider" );?>
1871
- <label for="make_default_<?php echo $d_s_p->id; ?>" id="default_label_<?php echo $d_s_p->id; ?>" class="<?php if($d_s_p->display_in_order != 1) { echo 'disable_label'; } ?>">
1872
- <input type="checkbox" id="make_default_<?php echo $d_s_p->id; ?>" name="make_provider_default" data-id="<?php echo $d_s_p->id; ?>" class="make_provider_default" value="<?php echo sanitize_title( $d_s_p->provider_name )?>" <?php if( $default_provider == sanitize_title( $d_s_p->provider_name ) )echo 'checked';?> <?php if($d_s_p->display_in_order != 1) { echo 'disabled'; } ?>>
1873
- <span>default</span>
1874
- </label>
1875
  </div>
1876
- <div class="provider-status">
1877
- <?php if( $d_s_p->shipping_default == 0 ){ ?>
1878
- <span class="dashicons dashicons-edit edit_provider" data-pid="<?php echo $d_s_p->id; ?>"></span>
1879
- <span class="dashicons dashicons-trash remove" data-pid="<?php echo $d_s_p->id; ?>"></span>
1880
- <?php } ?>
1881
- <span class="mdl-list__item-secondary-action">
1882
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="list-switch-<?php echo $d_s_p->id; ?>">
1883
- <input type="checkbox" name="select_custom_provider[]" id="list-switch-<?php echo $d_s_p->id; ?>" class="mdl-switch__input status_slide" value="<?php echo $d_s_p->id; ?>" <?php if($d_s_p->display_in_order == 1) { echo 'checked'; } ?> />
1884
  </label>
1885
- </span>
 
 
 
 
 
 
 
 
 
 
 
1886
  </div>
1887
  </div>
1888
  </div>
@@ -1894,6 +1947,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
1894
  </div>
1895
  <?php
1896
  }
 
1897
  /*
1898
  * Update shipment provider status
1899
  */
@@ -1909,6 +1963,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
1909
  exit;
1910
  }
1911
 
 
 
 
1912
  function update_default_provider_fun(){
1913
  if($_POST['checked'] == 1){
1914
  update_option("wc_ast_default_provider", $_POST['default_provider'] );
@@ -1918,6 +1975,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
1918
  exit;
1919
  }
1920
 
 
 
 
1921
  function add_custom_shipment_provider_fun(){
1922
 
1923
  global $wpdb;
@@ -1961,6 +2021,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
1961
  echo $html;exit;
1962
  }
1963
 
 
 
 
1964
  public function get_provider_details_fun(){
1965
  $id = $_POST['provider_id'];
1966
  global $wpdb;
@@ -1969,6 +2032,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
1969
  echo json_encode( array('id' => $shippment_provider[0]->id,'provider_name' => $shippment_provider[0]->provider_name,'provider_url' => $shippment_provider[0]->provider_url,'shipping_country' => $shippment_provider[0]->shipping_country,'custom_thumb_id' => $shippment_provider[0]->custom_thumb_id,'image' => $image) );exit;
1970
  }
1971
 
 
 
 
1972
  public function update_custom_shipment_provider_fun(){
1973
 
1974
  global $wpdb;
@@ -1989,6 +2055,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
1989
  echo $html;exit;
1990
  }
1991
 
 
 
 
1992
  public function update_provider_status_active_fun(){
1993
  global $wpdb;
1994
  $data_array = array(
@@ -2004,6 +2073,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
2004
  exit;
2005
  }
2006
 
 
 
 
2007
  public function update_provider_status_inactive_fun(){
2008
  global $wpdb;
2009
  $data_array = array(
@@ -2020,6 +2092,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
2020
  exit;
2021
  }
2022
 
 
 
 
2023
  public function sync_providers_fun(){
2024
  global $wpdb;
2025
 
@@ -2134,6 +2209,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
2134
  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;
2135
  }
2136
 
 
 
 
2137
  public function added_html($added_data){ ?>
2138
  <ul class="updated_details" id="added_providers">
2139
  <?php
@@ -2146,6 +2224,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
2146
  <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>
2147
  <?php }
2148
 
 
 
 
2149
  public function updated_html($updated_data){ ?>
2150
  <ul class="updated_details" id="updated_providers">
2151
  <?php
@@ -2158,6 +2239,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
2158
  <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>
2159
  <?php }
2160
 
 
 
 
2161
  public function deleted_html($deleted_data){ ?>
2162
  <ul class="updated_details" id="deleted_providers">
2163
  <?php
@@ -2168,7 +2252,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
2168
  </ul>
2169
  <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>
2170
  <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>
2171
- <?php }
 
2172
  /**
2173
  * Add bulk filter for Shipment status in orders list
2174
  *
@@ -2185,8 +2270,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
2185
  'unknown' => (object) array( 'count' => $count['unknown'], 'term' => __( 'Unknown', 'woo-advanced-shipment-tracking' ) ),
2186
  'pre_transit' => (object) array( 'count' => $count['pre_transit'],'term' => __( 'Pre Transit', 'woo-advanced-shipment-tracking' ) ),
2187
  'in_transit' => (object) array( 'count' => $count['in_transit'],'term' => __( 'In Transit', 'woo-advanced-shipment-tracking' ) ),
2188
- 'available_for_pickup' => (object) array( 'count' => $count['available_for_pickup'],'term' => __( 'Available for Pickup', 'woo-advanced-shipment-tracking' ) ),
2189
- 'out_for_delivery' => (object) array( 'count' => $count['out_for_delivery'],'term' => __( 'Out for Delivery', 'woo-advanced-shipment-tracking' ) ),
2190
  'delivered' => (object) array( 'count' => $count['delivered'],'term' => __( 'Delivered', 'woo-advanced-shipment-tracking' ) ),
2191
  'failed_attempt' => (object) array( 'count' => $count['failed_attempt'],'term' => __( 'Failed Attempt', 'woo-advanced-shipment-tracking' ) ),
2192
  'cancelled' => (object) array( 'count' => $count['cancelled'],'term' => __( 'Cancelled', 'woo-advanced-shipment-tracking' ) ),
@@ -2356,6 +2441,15 @@ class WC_Advanced_Shipment_Tracking_Admin {
2356
  </table>
2357
  </div>
2358
  </div>
 
 
 
 
 
 
 
 
 
2359
  <style scope="scope">
2360
  </style>
2361
  </div>
110
  // Bulk shipment status sync ajax call from settings
111
  add_action( 'wp_ajax_bulk_shipment_status_from_settings', array( $this, 'bulk_shipment_status_from_settings_fun' ) );
112
 
113
+ // Bulk shipment status sync for empty balance ajax call from settings
114
+ add_action( 'wp_ajax_bulk_shipment_status_for_empty_balance_from_settings', array( $this, 'bulk_shipment_status_for_empty_balance_from_settings_fun' ) );
115
+
116
  // The results notice from bulk action on orders
117
  add_action( 'admin_notices', array( $this, 'shipment_status_bulk_action_admin_notice' ) );
118
 
419
  return $value;
420
  }
421
 
422
+ /*
423
+ * If order status is "Updated Tracking" or "Completed" than retrn true else return false
424
+ */
425
  function check_order_status($value, $order){
426
  $order_status = $order->get_status();
427
 
432
  }
433
  return $value;
434
  }
435
+
436
  /*
437
  * add in batch process
438
  */
613
  */
614
  public function admin_styles($hook) {
615
 
616
+
617
+
618
+ if(!isset($_GET['page'])) {
619
+ return;
620
+ }
621
+ if( $_GET['page'] != 'woocommerce-advanced-shipment-tracking') {
622
+ return;
623
+ }
624
+
625
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
626
 
627
  wp_enqueue_style( 'font-awesome', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/font-awesome.min.css', array(), '4.7' );
639
  ),
640
  ) );
641
 
 
 
 
 
 
 
 
 
 
 
642
  wp_register_script( 'selectWoo', WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full' . $suffix . '.js', array( 'jquery' ), '1.0.4' );
643
  wp_register_script( 'wc-enhanced-select', WC()->plugin_url() . '/assets/js/admin/wc-enhanced-select' . $suffix . '.js', array( 'jquery', 'selectWoo' ), WC_VERSION );
644
  wp_register_script( 'jquery-blockui', WC()->plugin_url() . '/assets/js/jquery-blockui/jquery.blockUI' . $suffix . '.js', array( 'jquery' ), '2.70', true );
653
  wp_enqueue_script( 'jquery-tiptip' );
654
  wp_enqueue_script( 'jquery-blockui' );
655
  wp_enqueue_script( 'wp-color-picker' );
656
+ wp_enqueue_script( 'jquery-ui-sortable' );
 
657
  wp_enqueue_script('media-upload');
658
  wp_enqueue_script('thickbox');
659
+ wp_enqueue_style('thickbox');
 
660
 
661
  wp_enqueue_style( 'material-css', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/material.css', array(), wc_advanced_shipment_tracking()->version );
662
  wp_enqueue_script( 'material-js', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/material.min.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
667
 
668
  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 );
669
  wp_localize_script( 'shipment_tracking_table_rows', 'shipment_tracking_table_rows', array(
670
+ 'i18n' => array(
 
 
 
 
 
 
 
671
  'data_saved' => __( 'Data saved successfully.', 'woo-advanced-shipment-tracking' ),
672
  'delete_provider' => __( 'Really delete this entry? This will not be undo.', 'woo-advanced-shipment-tracking' ),
673
  'upload_only_csv_file' => __( 'You can upload only csv file.', 'woo-advanced-shipment-tracking' ),
676
  ),
677
  'delete_rates_nonce' => wp_create_nonce( "delete-rate" ),
678
  ) );
679
+ wp_enqueue_media();
 
 
680
  }
681
 
682
  /*
686
  public function register_woocommerce_menu() {
687
  add_submenu_page( 'woocommerce', 'Shipment Tracking', 'Shipment Tracking', 'manage_options', 'woocommerce-advanced-shipment-tracking', array( $this, 'woocommerce_advanced_shipment_tracking_page_callback' ) );
688
  }
689
+
690
+ /*
691
+ * Sort by Country ascending
692
+ */
693
  public function sortByCountryAsc($a, $b) {
694
  return strcmp($a->country, $b->country);
695
  }
696
+
697
+ /*
698
+ * Sort by Country descending
699
+ */
700
  public function sortByCountryDesc($a, $b) {
701
  return strcmp($b->country, $a->country);
702
  }
703
+
704
  /*
705
  * callback for Shipment Tracking page
706
  */
731
  }
732
  }
733
  wp_enqueue_script( 'shipment_tracking_table_rows' );
734
+ ?>
735
+ <div class="white-bg">
736
+ <img class="plugin-logo" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ast-logo.png">
737
+ </div>
738
+ <div class="woocommerce zorem_admin_layout">
739
+ <div class="ast_admin_content" >
740
+ <input id="tab2" type="radio" name="tabs" class="tab_input" data-tab="settings" checked>
741
+ <label for="tab2" class="tab_label first_label"><?php _e('Settings', 'woo-advanced-shipment-tracking'); ?></label>
742
+
743
+ <input id="tab1" type="radio" name="tabs" class="tab_input" data-tab="shipping-providers" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'shipping-providers'){ echo 'checked'; } ?>>
744
+ <label for="tab1" class="tab_label"><?php _e('Shipping Providers', 'woo-advanced-shipment-tracking'); ?></label>
745
+
746
+ <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'; } ?>>
747
+ <label for="tab4" class="tab_label"><?php _e('Bulk Upload', 'woo-advanced-shipment-tracking'); ?></label>
748
+
749
+ <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'; } ?>>
750
+ <label for="tab3" class="tab_label">TrackShip</label>
751
+
752
+ <div class="nav_doc_section">
753
+ <a target="blank" href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/" style="margin-right: 25px;"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a>
754
+ <a href="JavaScript:void(0);" class="open_video_popup"><?php _e( 'How to Video', 'woo-advanced-shipment-tracking' ); ?></a>
755
+ </div>
756
 
757
  <?php require_once( 'views/admin_options_shipping_provider.php' );?>
758
  <?php require_once( 'views/admin_options_settings.php' );?>
759
  <?php require_once( 'views/admin_options_trackship_integration.php' );?>
760
  <?php require_once( 'views/admin_options_bulk_upload.php' );?>
761
+ </div>
 
762
  </div>
763
  <div id="demo-toast-example" class="mdl-js-snackbar mdl-snackbar">
764
  <div class="mdl-snackbar__text"></div>
765
  <button class="mdl-snackbar__action" type="button"></button>
766
+ </div>
767
+ <div id="" class="popupwrapper how_to_video_popup" style="display:none;">
768
+ <div class="popuprow">
769
+ <div class="videoWrapper">
770
+ <iframe id="how_to_video" src="https://www.youtube.com/embed/Mw7laecPtyw" frameborder="0" allowfullscreen></iframe>
771
+ </div>
772
+ </div>
773
+ <div class="popupclose"></div>
774
+ </div>
775
  <?php
776
  if(isset( $_GET['tab'] ) && $_GET['tab'] == 'trackship'){ ?>
777
  <script>
898
  <?php } ?>
899
  </fieldset>
900
  <?php }
 
 
 
 
 
 
 
 
 
 
 
901
  elseif( $array['type'] == 'label' ){ ?>
902
  <fieldset>
903
  <label><?php echo $array['value']; ?></label>
910
  <?php }
911
  elseif( $array['type'] == 'button' ){ ?>
912
  <fieldset>
913
+ <button class="button-primary btn_green2 <?php echo $array['button_class'];?>" <?php if($array['disable'] == 1){ echo 'disabled'; }?>><?php echo $array['label'];?></button>
914
  </fieldset>
915
  <?php }
916
  else { ?>
928
  <?php } } ?>
929
  </tbody>
930
  </table>
931
+ <?php
932
+ }
933
 
934
  /*
935
+ * get trackship bulk actions tab array data
936
  * return array
937
  */
938
+ function get_trackship_bulk_actions_data(){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
939
  // Get orders completed.
940
  $args = array(
941
+ 'status' => 'wc-completed',
942
+ 'limit' => -1,
943
+ 'date_created' => '>' . ( time() - 2592000 ),
944
  );
945
+
946
  $orders = wc_get_orders( $args );
947
  $completed_order_with_tracking = 0;
948
+
949
  foreach($orders as $order){
950
  $order_id = $order->get_id();
951
 
953
  $tracking_items = $ast->get_tracking_items( $order_id, true );
954
  if($tracking_items){
955
  $shipment_status = get_post_meta( $order_id, "shipment_status", true);
956
+ foreach ( $tracking_items as $key => $tracking_item ) {
957
  if( !isset($shipment_status[$key]) ){
958
  $completed_order_with_tracking++;
959
  }
962
  }
963
 
964
  if($completed_order_with_tracking > 0){
965
+ $disable_bulk_sync = false;
966
  } else{
967
+ $disable_bulk_sync = true;
968
+ }
969
+
970
+ $completed_order_with_zero_balance = 0;
971
+
972
+ foreach($orders as $order){
973
+ $order_id = $order->get_id();
974
+
975
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
976
+ $tracking_items = $ast->get_tracking_items( $order_id, true );
977
+ if($tracking_items){
978
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
979
+ foreach ( $tracking_items as $key => $tracking_item ) {
980
+ if($shipment_status[$key]['status'] == 'TrackShip balance is 0'){
981
+ $completed_order_with_zero_balance++;
982
+ }
983
+ }
984
+ }
985
+ }
986
+
987
+ $trackers_balance = get_option( 'trackers_balance' );
988
+
989
+ if($completed_order_with_zero_balance > 0 && $trackers_balance > 0){
990
+ $disable_bulk_sync_zero_balance = false;
991
+ } else{
992
+ $disable_bulk_sync_zero_balance = true;
993
  }
994
 
995
  $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
996
+
997
  if($wc_ast_status_shipped == 1){
998
  $completed_order_label = '<span class="shipped_label">shipped</span>';
999
  } else{
1000
  $completed_order_label = '<span class="shipped_label">completed</span>';
1001
+ }
1002
+
1003
+ $form_data = array(
1004
+ 'wc_ast_bulk_shipment_status' => array(
1005
+ 'type' => 'button',
1006
+ 'title' => sprintf(__('%s %s orders with tracking info', 'woo-advanced-shipment-tracking'), $completed_order_with_tracking , $completed_order_label),
1007
+ 'label' => __( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ),
1008
+ 'show' => true,
1009
+ 'disable' => $disable_bulk_sync,
1010
+ 'button_class' => 'bulk_shipment_status_button',
1011
  'class' => '',
1012
  ),
1013
+ 'wc_ast_bulk_shipment_status_for_zero_tracker_balace' => array(
1014
+ 'type' => 'button',
1015
+ 'title' => sprintf(__('%s %s orders with “TrackShip balance is 0”', 'woo-advanced-shipment-tracking'), $completed_order_with_zero_balance , $completed_order_label),
1016
+ 'label' => __( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ),
1017
+ 'show' => true,
1018
+ 'disable' => $disable_bulk_sync_zero_balance,
1019
+ 'button_class' => 'bulk_shipment_status_button_for_empty_balance',
1020
+ 'class' => '',
1021
+ ),
1022
+ );
1023
+ return $form_data;
1024
+ }
1025
+
1026
+ /*
1027
+ * get settings tab array data
1028
+ * return array
1029
+ */
1030
+ function get_trackship_general_data(){
1031
+ $wc_ast_api_key = get_option('wc_ast_api_key');
1032
+ $trackers_balance = get_option( 'trackers_balance' );
1033
+ $wc_ast_status_delivered = get_option( 'wc_ast_status_delivered' );
1034
+ if($wc_ast_api_key){
1035
+ $connected = true;
1036
+ $show_trackship_field = true;
1037
+ $show_trackship_description = false;
1038
+ } else{
1039
+ $connected = false;
1040
+ $show_trackship_field = false;
1041
+ $show_trackship_description = true;
1042
+ }
1043
+ if($wc_ast_status_delivered){
1044
+ $disabled_change_to_delivered = false;
1045
+ } else{
1046
+ $disabled_change_to_delivered = true;
1047
+ }
1048
+ $page_list = wp_list_pluck( get_pages(), 'post_title', 'ID' );
1049
+
1050
+ $form_data = array(
1051
  'wc_ast_api_enabled' => array(
1052
  'type' => 'checkbox',
1053
  'title' => __( 'Enable/Disable', 'woo-advanced-shipment-tracking' ),
1061
  'class' => '',
1062
  'disabled' => $disabled_change_to_delivered,
1063
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1064
  );
1065
  return $form_data;
 
1066
  }
1067
+
1068
  /*
1069
  * get settings tab array data
1070
  * return array
1102
  'desc' => $page_desc,
1103
  'class' => '',
1104
  ),
 
 
 
 
 
 
1105
  'wc_ast_use_tracking_page' => array(
1106
  'type' => 'checkbox',
1107
  'title' => __( 'Use the tracking page in the customer email/my account tracking link', 'woo-advanced-shipment-tracking' ),
1119
  'title' => __( 'Select content border color for tracking page', 'woo-advanced-shipment-tracking' ),
1120
  'class' => 'color_field',
1121
  'show' => $show_trackship_field,
1122
+ ),
1123
+ 'wc_ast_hide_tracking_events' => array(
1124
+ 'type' => 'checkbox',
1125
+ 'title' => __( 'Hide tracking events details', 'woo-advanced-shipment-tracking' ),
1126
+ 'show' => $show_trackship_field,
1127
+ 'class' => '',
1128
+ ),
1129
+ 'wc_ast_remove_trackship_branding' => array(
1130
+ 'type' => 'checkbox',
1131
+ 'title' => __( 'Remove TrackShip branding', 'woo-advanced-shipment-tracking' ),
1132
+ 'show' => $show_trackship_field,
1133
+ 'class' => '',
1134
+ ),
1135
  );
1136
  return $form_data;
1137
 
1183
  * return array
1184
  */
1185
  function get_settings_data(){
1186
+
 
 
 
 
 
1187
  $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
1188
  if($wc_ast_status_shipped == 1){
1189
  $completed_order_label = __( 'Shipped', 'woo-advanced-shipment-tracking' );
1190
+ $mark_as_shipped_label = __( 'Default "mark as <span class="shipped_label">shipped</span>"', 'woo-advanced-shipment-tracking' );
1191
  $mark_as_shipped_tooltip = __( "This means that the 'mark as <span class='shipped_label'>shipped</span>' will be selected by default when adding tracking info to orders.", 'woo-advanced-shipment-tracking' );
1192
  } else{
1193
+ $completed_order_label = __( 'Completed', 'woocommerce' );
1194
+ $mark_as_shipped_label = __( 'Default "mark as <span class="shipped_label">completed</span>"', 'woo-advanced-shipment-tracking' );
1195
  $mark_as_shipped_tooltip = __( "This means that the 'mark as <span class='shipped_label'>completed</span>' will be selected by default when adding tracking info to orders.", 'woo-advanced-shipment-tracking' );
1196
  }
1197
 
1198
+ $all_order_status = wc_get_order_statuses();
1199
+
1200
+ $default_order_status = array(
1201
+ 'wc-pending' => 'Pending payment',
1202
+ 'wc-processing' => 'Processing',
1203
+ 'wc-on-hold' => 'On hold',
1204
+ 'wc-completed' => 'Completed',
1205
+ 'wc-delivered' => 'Delivered',
1206
+ 'wc-cancelled' => 'Cancelled',
1207
+ 'wc-refunded' => 'Refunded',
1208
+ 'wc-failed' => 'Failed'
1209
+ );
1210
+ foreach($default_order_status as $key=>$value){
1211
+ unset($all_order_status[$key]);
1212
+ }
1213
+ $custom_order_status = $all_order_status;
1214
+ foreach($custom_order_status as $key=>$value){
1215
+ unset($custom_order_status[$key]);
1216
+ $key = str_replace("wc-", "", $key);
1217
+ $custom_order_status[$key] = $value;
1218
+ }
1219
+
1220
+ $order_status = array(
1221
+ "cancelled" =>__( 'Cancelled', 'woocommerce' ),
1222
+ "show_in_customer_invoice" =>__( 'Customer Invoice', 'woo-advanced-shipment-tracking' ),
1223
+ "refunded" =>__( 'Refunded', 'woocommerce' ),
1224
+ "processing" =>__( 'Processing', 'woocommerce' ),
1225
+ "failed" =>__( 'Failed', 'woocommerce' ),
1226
+ "completed" =>$completed_order_label,
1227
+ );
1228
+ $order_status_array = array_merge($order_status,$custom_order_status);
1229
+
1230
+ if ( is_plugin_active( 'woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php' ) ) {
1231
+ $show_invoice_field = true;
1232
+ } else{
1233
+ $show_invoice_field = false;
1234
+ }
1235
+
1236
  $form_data = array(
1237
  'wc_ast_status_shipped' => array(
1238
  'type' => 'checkbox',
1249
  ),
1250
  'wc_ast_unclude_tracking_info' => array(
1251
  'type' => 'multiple_checkbox',
1252
+ 'title' => __( 'On which order status email to include the shipment tracking info?', 'woo-advanced-shipment-tracking' ),'options' => $order_status_array,
 
 
 
 
 
 
 
1253
  'show' => true,
1254
  'class' => '',
1255
  ),
1278
  $form_data = array(
1279
  'wc_ast_status_delivered' => array(
1280
  'type' => 'checkbox',
1281
+ 'title' => __( 'Enable custom order status “Delivered"', 'woo-advanced-shipment-tracking' ),
1282
  'tooltip' => __( 'if you enable the delivered item, you will have the option to send delivered email notifications.', 'woo-advanced-shipment-tracking' ),
1283
  'show' => true,
1284
  'class' => '',
1285
  ),
1286
  'wc_ast_status_label_color' => array(
1287
  'type' => 'color',
1288
+ 'title' => __( 'Delivered Label color', 'woo-advanced-shipment-tracking' ),
1289
  'class' => 'status_label_color_th',
1290
  'show' => true,
1291
  ),
1292
+ 'wc_ast_status_label_font_color' => array(
1293
+ 'type' => 'dropdown',
1294
+ 'title' => __( 'Delivered Label font color', 'woo-advanced-shipment-tracking' ),
1295
+ 'options' => array(
1296
+ "" =>__( 'Select', 'woocommerce' ),
1297
+ "#fff" =>__( 'Light', 'woo-advanced-shipment-tracking' ),
1298
+ "#000" =>__( 'Dark', 'woo-advanced-shipment-tracking' ),
1299
+ ),
1300
  'class' => 'status_label_color_th',
1301
  'show' => true,
1302
  ),
1303
+ 'wcast_enable_delivered_email' => array(
1304
+ 'type' => 'checkbox',
1305
+ 'title' => __( 'Enable the Delivered order status email', 'woo-advanced-shipment-tracking' ),
1306
+ 'title_link'=> "<a class='settings_edit' href='".wcast_initialise_customizer_email::get_customizer_url('customer_delivered_email')."'>".__( 'Edit', 'woocommerce' )."</a>",
1307
+ 'class' => 'status_label_color_th',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1308
  'show' => true,
 
1309
  ),
1310
  );
1311
  return $form_data;
1348
 
1349
  }
1350
  }
1351
+
1352
+ /*
1353
+ * change style of delivered order label
1354
+ */
1355
  function footer_function(){
1356
+ $bg_color = get_option('wc_ast_status_label_color');
1357
+ $color = get_option('wc_ast_status_label_font_color','#fff');
1358
  ?>
1359
  <style>
1360
  .order-status.status-delivered{
1361
+ background: <?php echo $bg_color; ?>;
1362
+ color: <?php echo $color; ?>;
1363
  }
1364
  </style>
1365
  <?php
1366
  }
1367
 
1368
+ /*
1369
+ * Ajax call for upload tracking details into order from bulk upload
1370
+ */
1371
+ function upload_tracking_csv_fun(){
1372
 
1373
  $replace_tracking_info = $_POST['replace_tracking_info'];
1374
  $order_id = $_POST['order_id'];
1375
 
1376
+ $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
1377
+ $order_id = $wast->get_formated_order_id($order_id);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1378
 
1379
  $tracking_provider = $_POST['tracking_provider'];
1380
  $tracking_number = $_POST['tracking_number'];
1394
  if(empty($tracking_number)){
1395
  echo '<li class="error">Failed - Empty Tracking Number for Order Id - '.$_POST['order_id'].'</li>';exit;
1396
  }
1397
+ if(preg_match('/[^a-z0-9 \b]+/i', $tracking_number)){
1398
+ echo '<li class="error">Failed - Special character not allowd in tracking number for Order Id - '.$_POST['order_id'].'</li>';exit;
1399
+ }
1400
  if(empty($date_shipped)){
1401
  echo '<li class="error">Failed - Empty Date Shipped for Order Id - '.$_POST['order_id'].'</li>';exit;
1402
  }
1445
  echo '<li class="error">Failed - Invalid Tracking Data</li>';exit;
1446
  }
1447
  }
1448
+
1449
  /**
1450
  * Check if the value is a valid date
1451
  *
1472
  * Change order status to delivered
1473
  */
1474
  function add_bulk_actions_get_shipment_status($bulk_actions){
1475
+ $bulk_actions['get_shipment_status'] = 'Get Shipment Status';
1476
  return $bulk_actions;
1477
  }
1478
 
1479
+ /*
1480
+ * order bulk action for get shipment status
1481
+ */
1482
  function get_shipment_status_handle_bulk_action_edit_shop_order( $redirect_to, $action, $post_ids ){
1483
 
1484
  if ( $action !== 'get_shipment_status' )
1489
  $order_count = count($post_ids);
1490
 
1491
  if($order_count > 100){
1492
+ //return $redirect_to;
1493
  }
1494
 
1495
  foreach ( $post_ids as $post_id ) {
1506
  ), $redirect_to );
1507
  }
1508
 
1509
+ /*
1510
+ * bulk shipment status action for completed order with tracking details and without shipment status
1511
+ */
1512
  public static function bulk_shipment_status_from_settings_fun(){
1513
  $args = array(
1514
  'status' => 'wc-completed',
1515
+ 'limit' => -1,
1516
+ 'date_created' => '>' . ( time() - 2592000 ),
1517
+ );
1518
  $orders = wc_get_orders( $args );
1519
  foreach($orders as $order){
1520
  $order_id = $order->get_id();
1523
  $tracking_items = $ast->get_tracking_items( $order_id, true );
1524
  if($tracking_items){
1525
  $shipment_status = get_post_meta( $order_id, "shipment_status", true);
1526
+ //echo '<pre>';print_r($shipment_status);echo '</pre>';
1527
+ //echo '<pre>';print_r($tracking_items);echo '</pre>';exit;
1528
  foreach ( $tracking_items as $key => $tracking_item ) {
1529
  if( !isset($shipment_status[$key]) ){
1530
  wp_schedule_single_event( time() + 1, 'wcast_retry_trackship_apicall', array( $order_id ) );
1536
  echo $url;die();
1537
  }
1538
 
1539
+ /*
1540
+ * bulk shipment status action for "TrackShip balance is 0" status
1541
+ */
1542
+ public static function bulk_shipment_status_for_empty_balance_from_settings_fun(){
1543
+ $args = array(
1544
+ 'status' => 'wc-completed',
1545
+ 'limit' => -1,
1546
+ 'date_created' => '>' . ( time() - 2592000 ),
1547
+ );
1548
+ $orders = wc_get_orders( $args );
1549
+
1550
+ foreach($orders as $order){
1551
+ $order_id = $order->get_id();
1552
+
1553
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
1554
+ $tracking_items = $ast->get_tracking_items( $order_id, true );
1555
+ if($tracking_items){
1556
+ $shipment_status = get_post_meta( $order_id, "shipment_status", true);
1557
+ foreach ( $tracking_items as $key => $tracking_item ) {
1558
+ if($shipment_status[$key]['status'] == 'TrackShip balance is 0'){
1559
+ wp_schedule_single_event( time() + 1, 'wcast_retry_trackship_apicall', array( $order_id ) );
1560
+ }
1561
+ }
1562
+ }
1563
+ }
1564
+
1565
+ $url = admin_url('/edit.php?post_type=shop_order');
1566
+ echo $url;die();
1567
+ }
1568
+
1569
  /**
1570
  * Add 'get_shipment_status' link to order actions select box on edit order page
1571
  *
1576
  public function add_order_meta_box_get_shipment_status_actions( $actions ) {
1577
 
1578
  // add download to CSV action
1579
+ $actions['get_shipment_status_edit_order'] = __( 'Get Shipment Status', 'woo-advanced-shipment-tracking' );
1580
  return $actions;
1581
  }
1582
 
1583
+ /*
1584
+ * order details meta box action
1585
+ */
1586
  public function process_order_meta_box_actions_get_shipment_status( $order ){
1587
  $this->trigger_woocommerce_order_status_completed( $order->get_id() );
1588
  }
1589
+
1590
+ /*
1591
+ * The results notice from bulk action on orders
1592
+ */
1593
  function shipment_status_bulk_action_admin_notice() {
1594
  if ( empty( $_REQUEST['get_shipment_status'] ) ) return; // Exit
1595
 
1618
  $status = __( 'Delivered', 'woo-advanced-shipment-tracking' );
1619
  break;
1620
  case "out_for_delivery":
1621
+ $status = __( 'Out For Delivery', 'woo-advanced-shipment-tracking' );
1622
  break;
1623
  case "available_for_pickup":
1624
  $status = __( 'Available For Pickup', 'woo-advanced-shipment-tracking' );
1639
  $status = __( 'Invalid Tracking', 'woo-advanced-shipment-tracking' );
1640
  break;
1641
  case "carrier_unsupported":
1642
+ $status = __( 'Carrier Unsupported', 'woo-advanced-shipment-tracking' );
1643
  break;
1644
  case "invalid_user_key":
1645
  $status = __( 'Invalid User Key', 'woo-advanced-shipment-tracking' );
1646
  break;
1647
+ case "wrong_shipping_provider":
1648
+ $status = __( 'Wrong Shipping Provider', 'woo-advanced-shipment-tracking' );
1649
+ break;
1650
+ case "deleted":
1651
+ $status = __( 'Deleted', 'woo-advanced-shipment-tracking' );
1652
+ break;
1653
 
1654
  }
1655
  return $status;
1688
  $html = '<span class="icon-'.$status.'">';
1689
  break;
1690
  case "INVALID_TRACKING_NUM":
1691
+ $html = '<span class="icon-'.$status.'">';
1692
  break;
1693
+ case "wrong_shipping_provider":
1694
+ $html = '<span class="icon-'.$status.'">';
1695
+ break;
1696
  case "invalid_user_key":
1697
  $html = '<span class="icon-'.$status.'">';
1698
  break;
1699
  default:
1700
+ $html = '<span class="icon-default">';
1701
  break;
1702
 
1703
  }
1713
  $logger->info( "Retry trackship api call for Order id : ".$order_id, $context );
1714
  $this->trigger_woocommerce_order_status_completed( $order_id );
1715
  }
1716
+
1717
  /*
1718
  * define the item in the meta box by adding an item to the $actions array
1719
  */
1721
  $actions['resend_delivered_order_notification'] = __( 'Resend delivered order notification', 'woo-advanced-shipment-tracking' );
1722
  return $actions;
1723
  }
1724
+
1725
  /*
1726
  * function call when resend delivered order email notification trigger
1727
  */
1733
  //wc_advanced_shipment_tracking_email_class()->delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status);
1734
  WC()->mailer()->emails['WC_Email_Customer_Delivered_Order']->trigger( $order_id, $order );
1735
  }
1736
+
1737
  /*
1738
  * update preview order id in customizer
1739
  */
1748
  set_theme_mod('wcast_preview_order_id', $_POST['wcast_preview_order_id']);
1749
  exit;
1750
  }
1751
+
1752
  /*
1753
  * update delivered order email status
1754
  */
1762
  update_option( 'woocommerce_customer_delivered_order_settings', $opt );
1763
  exit;
1764
  }
1765
+
1766
  /*
1767
  * update all shipment status email status
1768
  */
1770
  set_theme_mod($_POST['id'], $_POST['wcast_enable_status_email']);
1771
  exit;
1772
  }
1773
+
1774
  /*
1775
  * Change completed order email title to Shipped Order
1776
  */
1788
  }
1789
  return $email_title;
1790
  }
1791
+
1792
  /*
1793
  * Add action button in order list to change order status from completed to delivered
1794
  */
1795
  public function add_delivered_order_status_actions_button($actions, $order){
1796
+
1797
+ wp_enqueue_style( 'shipment_tracking_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
1798
+ 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);
1799
+
1800
  $wc_ast_status_delivered = get_option('wc_ast_status_delivered');
1801
  if($wc_ast_status_delivered){
1802
  if ( $order->has_status( array( 'completed' ) ) ) {
1817
  );
1818
  return $actions;
1819
  }
1820
+
1821
  /*
1822
  * Add delivered action button in preview order list to change order status from completed to delivered
1823
  */
1848
  return $actions;
1849
  }
1850
 
1851
+ /*
1852
+ * filter shipping providers by stats
1853
+ */
1854
  public function filter_shipiing_provider_by_status_fun(){
1855
  $status = $_POST['status'];
1856
  global $wpdb;
1871
  echo $html;exit;
1872
  }
1873
 
1874
+ /*
1875
+ * Get providers list html
1876
+ */
1877
  public function get_provider_html($default_shippment_providers,$status){
1878
  $WC_Countries = new WC_Countries();
1879
  ?>
1882
  if($default_shippment_providers){
1883
  foreach($default_shippment_providers as $d_s_p){ ?>
1884
  <div class="provider <?php if($d_s_p->display_in_order == 1) { echo 'active_provider'; } ?>">
1885
+ <div class="provider_inner">
1886
+ <div class="row-1">
1887
+ <div class="left-div">
1888
+ <a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank">
1889
+ <?php if( $d_s_p->shipping_default == 1 ){ ?>
1890
+ <img class="provider-thumb" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/<?php echo sanitize_title($d_s_p->provider_name);?>.png?v=<?php echo wc_advanced_shipment_tracking()->version;?>">
1891
+ <?php } else{
1892
+ $custom_thumb_id = $d_s_p->custom_thumb_id;
1893
+ $image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
1894
+ //echo '<pre>';print_r($custom_thumb_id);echo '</pre>';exit;
1895
+ if($custom_thumb_id != 0){ ?>
1896
+ <img class="provider-thumb" src="<?php echo $image_attributes[0]; ?>">
1897
+ <?php } else{
1898
+ ?>
1899
+ <img class="provider-thumb" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/icon-default.png">
1900
+ <?php } ?>
1901
+ <?php } ?>
1902
+ </a>
1903
+ </div>
1904
+ <div class="right-div">
1905
+ <a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank">
1906
+ <span class="provider_name"><?php echo $d_s_p->provider_name; ?></span>
1907
+ </a>
1908
+ <br>
1909
+ <span class="provider_country"><?php
1910
+ $search = array('(US)', '(UK)');
1911
+ $replace = array('', '');
1912
+ if($d_s_p->shipping_country && $d_s_p->shipping_country != 'Global'){
1913
+ echo str_replace($search, $replace, $WC_Countries->countries[$d_s_p->shipping_country]);
1914
+ } elseif($d_s_p->shipping_country && $d_s_p->shipping_country == 'Global'){
1915
+ echo 'Global';
1916
+ }
1917
+ ?></span>
1918
+ </div>
 
 
 
 
 
 
 
1919
  </div>
1920
+ <div class="row-2">
1921
+ <div class="default-provider">
1922
+ <?php $default_provider = get_option("wc_ast_default_provider" );?>
1923
+ <label for="make_default_<?php echo $d_s_p->id; ?>" id="default_label_<?php echo $d_s_p->id; ?>" class="<?php if($d_s_p->display_in_order != 1) { echo 'disable_label'; } ?>">
1924
+ <input type="checkbox" id="make_default_<?php echo $d_s_p->id; ?>" name="make_provider_default" data-id="<?php echo $d_s_p->id; ?>" class="make_provider_default" value="<?php echo sanitize_title( $d_s_p->provider_name )?>" <?php if( $default_provider == sanitize_title( $d_s_p->provider_name ) )echo 'checked';?> <?php if($d_s_p->display_in_order != 1) { echo 'disabled'; } ?>>
1925
+ <span>default</span>
 
 
1926
  </label>
1927
+ </div>
1928
+ <div class="provider-status">
1929
+ <?php if( $d_s_p->shipping_default == 0 ){ ?>
1930
+ <span class="dashicons dashicons-edit edit_provider" data-pid="<?php echo $d_s_p->id; ?>"></span>
1931
+ <span class="dashicons dashicons-trash remove" data-pid="<?php echo $d_s_p->id; ?>"></span>
1932
+ <?php } ?>
1933
+ <span class="mdl-list__item-secondary-action">
1934
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="list-switch-<?php echo $d_s_p->id; ?>">
1935
+ <input type="checkbox" name="select_custom_provider[]" id="list-switch-<?php echo $d_s_p->id; ?>" class="mdl-switch__input status_slide" value="<?php echo $d_s_p->id; ?>" <?php if($d_s_p->display_in_order == 1) { echo 'checked'; } ?> />
1936
+ </label>
1937
+ </span>
1938
+ </div>
1939
  </div>
1940
  </div>
1941
  </div>
1947
  </div>
1948
  <?php
1949
  }
1950
+
1951
  /*
1952
  * Update shipment provider status
1953
  */
1963
  exit;
1964
  }
1965
 
1966
+ /**
1967
+ * update default provider function
1968
+ */
1969
  function update_default_provider_fun(){
1970
  if($_POST['checked'] == 1){
1971
  update_option("wc_ast_default_provider", $_POST['default_provider'] );
1975
  exit;
1976
  }
1977
 
1978
+ /**
1979
+ * Add custom shipping provider function
1980
+ */
1981
  function add_custom_shipment_provider_fun(){
1982
 
1983
  global $wpdb;
2021
  echo $html;exit;
2022
  }
2023
 
2024
+ /**
2025
+ * Get shipping provider details fun
2026
+ */
2027
  public function get_provider_details_fun(){
2028
  $id = $_POST['provider_id'];
2029
  global $wpdb;
2032
  echo json_encode( array('id' => $shippment_provider[0]->id,'provider_name' => $shippment_provider[0]->provider_name,'provider_url' => $shippment_provider[0]->provider_url,'shipping_country' => $shippment_provider[0]->shipping_country,'custom_thumb_id' => $shippment_provider[0]->custom_thumb_id,'image' => $image) );exit;
2033
  }
2034
 
2035
+ /**
2036
+ * Update custom shipping provider and returen html of it
2037
+ */
2038
  public function update_custom_shipment_provider_fun(){
2039
 
2040
  global $wpdb;
2055
  echo $html;exit;
2056
  }
2057
 
2058
+ /**
2059
+ * Update bulk status of providers to active
2060
+ */
2061
  public function update_provider_status_active_fun(){
2062
  global $wpdb;
2063
  $data_array = array(
2073
  exit;
2074
  }
2075
 
2076
+ /**
2077
+ * Update bulk status of providers to inactive
2078
+ */
2079
  public function update_provider_status_inactive_fun(){
2080
  global $wpdb;
2081
  $data_array = array(
2092
  exit;
2093
  }
2094
 
2095
+ /**
2096
+ * Synch provider function
2097
+ */
2098
  public function sync_providers_fun(){
2099
  global $wpdb;
2100
 
2209
  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;
2210
  }
2211
 
2212
+ /**
2213
+ * Output html of added provider from sync providers
2214
+ */
2215
  public function added_html($added_data){ ?>
2216
  <ul class="updated_details" id="added_providers">
2217
  <?php
2224
  <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>
2225
  <?php }
2226
 
2227
+ /**
2228
+ * Output html of updated provider from sync providers
2229
+ */
2230
  public function updated_html($updated_data){ ?>
2231
  <ul class="updated_details" id="updated_providers">
2232
  <?php
2239
  <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>
2240
  <?php }
2241
 
2242
+ /**
2243
+ * Output html of deleted provider from sync providers
2244
+ */
2245
  public function deleted_html($deleted_data){ ?>
2246
  <ul class="updated_details" id="deleted_providers">
2247
  <?php
2252
  </ul>
2253
  <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>
2254
  <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>
2255
+ <?php }
2256
+
2257
  /**
2258
  * Add bulk filter for Shipment status in orders list
2259
  *
2270
  'unknown' => (object) array( 'count' => $count['unknown'], 'term' => __( 'Unknown', 'woo-advanced-shipment-tracking' ) ),
2271
  'pre_transit' => (object) array( 'count' => $count['pre_transit'],'term' => __( 'Pre Transit', 'woo-advanced-shipment-tracking' ) ),
2272
  'in_transit' => (object) array( 'count' => $count['in_transit'],'term' => __( 'In Transit', 'woo-advanced-shipment-tracking' ) ),
2273
+ 'available_for_pickup' => (object) array( 'count' => $count['available_for_pickup'],'term' => __( 'Available For Pickup', 'woo-advanced-shipment-tracking' ) ),
2274
+ 'out_for_delivery' => (object) array( 'count' => $count['out_for_delivery'],'term' => __( 'Out For Delivery', 'woo-advanced-shipment-tracking' ) ),
2275
  'delivered' => (object) array( 'count' => $count['delivered'],'term' => __( 'Delivered', 'woo-advanced-shipment-tracking' ) ),
2276
  'failed_attempt' => (object) array( 'count' => $count['failed_attempt'],'term' => __( 'Failed Attempt', 'woo-advanced-shipment-tracking' ) ),
2277
  'cancelled' => (object) array( 'count' => $count['cancelled'],'term' => __( 'Cancelled', 'woo-advanced-shipment-tracking' ) ),
2441
  </table>
2442
  </div>
2443
  </div>
2444
+ <div class="col medium-12 small-12 large-12">
2445
+ <div class="col-inner">
2446
+ <p data-line-height="s"><strong>Tracking Issues</strong></p>
2447
+ <table class="table">
2448
+ <tbody>
2449
+ </tbody>
2450
+ </table>
2451
+ </div>
2452
+ </div>
2453
  <style scope="scope">
2454
  </style>
2455
  </div>
includes/class-wc-advanced-shipment-tracking-api-call.php CHANGED
@@ -8,11 +8,17 @@ class WC_Advanced_Shipment_Tracking_Api_Call {
8
 
9
  }
10
 
 
 
 
11
  public function isJson($string) {
12
  json_decode($string);
13
  return (json_last_error() == JSON_ERROR_NONE);
14
  }
15
-
 
 
 
16
  public function get_trackship_apicall( $order_id ){
17
 
18
  $logger = wc_get_logger();
@@ -100,6 +106,9 @@ class WC_Advanced_Shipment_Tracking_Api_Call {
100
  return $array;
101
  }
102
 
 
 
 
103
  public function get_trackship_data( $order, $tracking_number, $tracking_provider ){
104
  $user_key = get_option("wc_ast_api_key");
105
  $domain = get_home_url();
@@ -137,6 +146,9 @@ class WC_Advanced_Shipment_Tracking_Api_Call {
137
  return $response;
138
  }
139
 
 
 
 
140
  public function delete_tracking_number_from_trackship($order_id, $tracking_number, $tracking_provider){
141
  $user_key = get_option("wc_ast_api_key");
142
  $domain = get_site_url();
8
 
9
  }
10
 
11
+ /*
12
+ * check if string is json or not
13
+ */
14
  public function isJson($string) {
15
  json_decode($string);
16
  return (json_last_error() == JSON_ERROR_NONE);
17
  }
18
+
19
+ /*
20
+ * get trackship shipment status and update in order meta
21
+ */
22
  public function get_trackship_apicall( $order_id ){
23
 
24
  $logger = wc_get_logger();
106
  return $array;
107
  }
108
 
109
+ /*
110
+ * get trackship shipment data
111
+ */
112
  public function get_trackship_data( $order, $tracking_number, $tracking_provider ){
113
  $user_key = get_option("wc_ast_api_key");
114
  $domain = get_home_url();
146
  return $response;
147
  }
148
 
149
+ /*
150
+ * delete tracking number from trackship
151
+ */
152
  public function delete_tracking_number_from_trackship($order_id, $tracking_number, $tracking_provider){
153
  $user_key = get_option("wc_ast_api_key");
154
  $domain = get_site_url();
includes/class-wc-advanced-shipment-tracking-front.php CHANGED
@@ -11,6 +11,7 @@ class WC_Advanced_Shipment_Tracking_Front {
11
  * @var object Class Instance
12
  */
13
  private static $instance;
 
14
  /**
15
  * Initialize the main plugin function
16
  */
@@ -33,6 +34,7 @@ class WC_Advanced_Shipment_Tracking_Front {
33
 
34
  $this->init();
35
  }
 
36
  /**
37
  * Get the class instance
38
  *
@@ -46,6 +48,7 @@ class WC_Advanced_Shipment_Tracking_Front {
46
 
47
  return self::$instance;
48
  }
 
49
  /*
50
  * init from parent mail class
51
  */
@@ -56,252 +59,177 @@ class WC_Advanced_Shipment_Tracking_Front {
56
 
57
  add_action( 'wp_ajax_nopriv_get_tracking_info', array( $this, 'get_tracking_info_fun') );
58
  add_action( 'wp_ajax_get_tracking_info', array( $this, 'get_tracking_info_fun') );
 
59
  }
60
-
 
 
 
61
  public function front_styles(){
62
  wp_enqueue_script( 'front-js', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/front.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
63
  wp_localize_script( 'front-js', 'zorem_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
64
 
65
  wp_enqueue_style( 'front_style', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/front.css', array(), wc_advanced_shipment_tracking()->version );
66
  }
67
- public function woo_track_order_function(){
68
- global $wpdb;
69
- $wc_ast_api_key = get_option('wc_ast_api_key');
70
- $primary_color = get_option('wc_ast_select_primary_color');
71
- $success_color = get_option('wc_ast_select_success_color');
72
- $warning_color = get_option('wc_ast_select_warning_color');
73
- $border_color = get_option('wc_ast_select_border_color');
74
- ?>
75
- <style>
76
 
77
- <?php if($primary_color){ ?>
78
- .bg-secondary{
79
- background-color:<?php echo $primary_color; ?> !important;
80
- }
81
- .tracker-progress-bar-with-dots .secondary .dot {
82
- border-color: <?php echo $primary_color; ?>;
83
- }
84
- .text-secondary{
85
- color: <?php echo $primary_color; ?> !important;
86
- }
87
- .progress-bar.bg-secondary:before{
88
- background-color: <?php echo $primary_color; ?>;
89
- }
90
- .tracking-number{
91
- color: <?php echo $primary_color; ?> !important;
92
- }
93
- .view_table_rows,.hide_table_rows{
94
- color: <?php echo $primary_color; ?> !important;
95
- }
96
- <?php } ?>
97
- <?php if($border_color){ ?>
98
- .col.tracking-detail{
99
- border: 1px solid <?php echo $border_color; ?>;
100
- }
101
- <?php } ?>
102
- </style>
103
- <?php
104
- if(!$wc_ast_api_key){
105
- return;
106
- }
107
- if(isset($_GET['order_id']) && isset($_GET['order_key'])){
108
- $order_id = $_GET['order_id'];
109
- $order = new WC_Order( $order_id );
110
- $order_key = $order->get_order_key();
111
- if($order_key != $_GET['order_key']){
112
- return;
113
- }
114
 
115
- if(!get_post_status( $order_id )){
116
- return;
117
- }
118
- if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
119
- $tracking_items = get_post_meta( $order_id, '_wc_shipment_tracking_items', true );
120
- } else {
121
- $order = new WC_Order( $order_id );
122
- $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
 
 
 
 
 
123
  }
124
- if(!$tracking_items){
125
- unset($order_id);
 
 
 
 
 
 
 
 
 
126
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
 
128
- }
129
-
130
- ?>
131
-
132
- <?php
133
- if(!isset($order_id)){
134
- ?>
135
- <div class="track-order-section">
136
- <form method="post" class="order_track_form">
 
 
137
 
138
- <p><?php _e( '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>
139
- <p class="form-row form-row-first"><label for="order_id"><?php _e( 'Order ID', 'woo-advanced-shipment-tracking' ); ?></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>
140
- <p class="form-row form-row-last"><label for="order_email"><?php _e( '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>
141
- <div class="clear"></div>
142
- <input type="hidden" name="action" value="get_tracking_info">
143
- <p class="form-row"><button type="submit" class="button" name="track" value="Track"><?php _e( 'Track', 'woo-advanced-shipment-tracking' ); ?></button></p>
144
- <div class="track_fail_msg" style="display:none;color: red;"></div>
145
- </form>
146
- </div>
147
- <?php
148
- } else{
149
- if ( is_plugin_active( 'custom-order-numbers-for-woocommerce/custom-order-numbers-for-woocommerce.php' ) ) {
150
- $alg_wc_custom_order_numbers_enabled = get_option('alg_wc_custom_order_numbers_enabled');
151
- if($alg_wc_custom_order_numbers_enabled == 'yes'){
152
- $args = array(
153
- 'post_type' => 'shop_order',
154
- 'posts_per_page' => '1',
155
- 'meta_query' => array(
156
- 'relation' => 'AND',
157
- array(
158
- 'key' => '_alg_wc_custom_order_number',
159
- 'value' => $order_id
160
- ),
161
- ),
162
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
163
- );
164
- $posts = get_posts( $args );
165
- $my_query = new WP_Query( $args );
166
-
167
- if( $my_query->have_posts() ) {
168
- while( $my_query->have_posts()) {
169
- $my_query->the_post();
170
- if(get_the_ID()){
171
- $order_id = get_the_ID();
172
- }
173
- } // end while
174
- } // end if
175
- wp_reset_postdata();
176
- }
177
- }
178
 
179
- if ( is_plugin_active( 'woocommerce-sequential-order-numbers/woocommerce-sequential-order-numbers.php' ) ) {
180
-
181
- $s_order_id = wc_sequential_order_numbers()->find_order_by_order_number( $order_id );
182
- if($s_order_id){
183
- $order_id = $s_order_id;
184
  }
 
185
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
 
187
- if ( is_plugin_active( 'wp-lister-amazon/wp-lister-amazon.php' ) ) {
188
- $wpla_use_amazon_order_number = get_option( 'wpla_use_amazon_order_number' );
189
- if($wpla_use_amazon_order_number == 1){
190
- $args = array(
191
- 'post_type' => 'shop_order',
192
- 'posts_per_page' => '1',
193
- 'meta_query' => array(
194
- 'relation' => 'AND',
195
- array(
196
- 'key' => '_wpla_amazon_order_id',
197
- 'value' => $order_id
198
- ),
199
- ),
200
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
201
- );
202
- $posts = get_posts( $args );
203
- $my_query = new WP_Query( $args );
204
-
205
- if( $my_query->have_posts() ) {
206
- while( $my_query->have_posts()) {
207
- $my_query->the_post();
208
- if(get_the_ID()){
209
- $order_id = get_the_ID();
210
- }
211
- } // end while
212
- } // end if
213
- wp_reset_postdata();
214
- }
215
- }
216
 
217
- if ( is_plugin_active( 'wp-lister/wp-lister.php' ) ) {
218
- $args = array(
219
- 'post_type' => 'shop_order',
220
- 'posts_per_page' => '1',
221
- 'meta_query' => array(
222
- 'relation' => 'AND',
223
- array(
224
- 'key' => '_ebay_extended_order_id',
225
- 'value' => $order_id
226
- ),
227
- ),
228
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
229
- );
230
- $posts = get_posts( $args );
231
- $my_query = new WP_Query( $args );
232
 
233
- if( $my_query->have_posts() ) {
234
- while( $my_query->have_posts()) {
235
- $my_query->the_post();
236
- if(get_the_ID()){
237
- $order_id = get_the_ID();
238
- }
239
- } // end while
240
- } // end if
241
- wp_reset_postdata();
242
- }
243
 
244
- $num = 1;
245
- $total_trackings = sizeof($tracking_items);
246
 
247
  foreach($tracking_items as $item){
248
 
249
- $tracking_number = $item['tracking_number'];
250
- $trackship_url = 'https://trackship.info';
251
- $tracking_provider = $item['tracking_provider'];
252
- $results = $wpdb->get_row( "SELECT * FROM {$this->table} WHERE ts_slug= '{$tracking_provider}'");
253
- $tracking_provider = $results->provider_name;
254
-
255
- /*** Update in 2.4.1
256
- * Change URL
257
- * Add User Key
258
- ***/
259
- $url = $trackship_url.'/wp-json/tracking/get_tracking_info';
260
- $args['body'] = array(
261
- 'tracking_number' => $tracking_number,
262
- 'order_id' => $order_id,
263
- 'domain' => get_home_url(),
264
- 'user_key' => $wc_ast_api_key,
265
- );
266
- $response = wp_remote_post( $url, $args );
267
- $data = $response['body'];
268
- $decoded_data = json_decode($data);
269
-
270
- $tracker = new \stdClass();
271
- $tracker->ep_status = '';
272
- if(!empty($decoded_data)){
273
- $tracker = $decoded_data[0];
274
- }
275
-
276
- $tracking_detail_org = '';
277
- $trackind_detail_by_status_rev = '';
278
 
279
- if(isset($tracker->tracking_detail) && $tracker->tracking_detail != 'null'){
280
- $tracking_detail_org = json_decode($tracker->tracking_detail);
281
- $trackind_detail_by_status_rev = array_reverse($tracking_detail_org);
282
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
 
284
  if(!empty($decoded_data)){
285
 
286
- if($tracker->est_delivery_date){
287
- $unixTimestamp = strtotime($tracker->est_delivery_date);
288
- $day = date("l", $unixTimestamp);
289
- }
290
 
291
- if($tracker->ep_status == "unknown"){ $state0_class = 'unknown'; } else{ $state0_class = 'pre_transit'; }
292
- if($tracker->ep_status == "return_to_sender" ){
293
- $state2_class = 'return_to_sender';
294
- } elseif($tracker->ep_status == "failure"){
295
- $state2_class = 'failure';
296
- } elseif($tracker->ep_status == "available_for_pickup"){
297
- $state2_class = 'available_for_pickup';
298
- } else{
299
- $state2_class = 'out_for_delivery';
300
- }
301
-
302
- ?>
303
 
304
- <div class="tracking-detail col">
 
 
 
 
 
 
 
 
 
 
 
305
  <?php if($total_trackings > 1 ){ ?>
306
  <p class="shipment_heading"><?php
307
  echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
@@ -309,7 +237,7 @@ class WC_Advanced_Shipment_Tracking_Front {
309
  <div class="tracking-header">
310
  <div class="col-md col-md-6">
311
  <?php _e( 'Order: ', 'woo-advanced-shipment-tracking' ); ?><span class="tracking-number">#<?php echo apply_filters( 'ast_order_number_filter', $order_id); ?></span><br/>
312
- <?php echo $tracking_provider; ?>: <span class="tracking-number"><?php echo $tracker->tracking_code; ?></span>
313
  <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>
314
  </div>
315
  <div class="col-md col-md-6">
@@ -326,7 +254,11 @@ class WC_Advanced_Shipment_Tracking_Front {
326
  <?php } ?>
327
  </div>
328
  </div>
329
- <?php if(isset($tracker->ep_status)){ ?>
 
 
 
 
330
  <div class="status-section desktop-section">
331
  <div class="tracker-progress-bar tracker-progress-bar-with-dots">
332
  <div class="progress">
@@ -422,167 +354,87 @@ class WC_Advanced_Shipment_Tracking_Front {
422
  </div>
423
  </div>
424
  </div>
425
- <?php } ?>
426
- <?php if( !empty($trackind_detail_by_status_rev) ){ ?>
427
- <div class="shipment_progress_div">
428
- <div class="shipment_progress_heading_div">
429
- <h4 class="tracking-number h4-heading" style=""><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
430
- </div>
431
- <table class="tracking-table">
432
- <tbody>
433
- <?php
434
- $i=0;
435
- foreach($trackind_detail_by_status_rev as $key=>$status_detail){ ?>
436
- <tr>
437
- <td><?php echo date_i18n( get_option( 'date_format' ), strtotime($status_detail->datetime) ); ?>
438
- <?php echo date_i18n( get_option( 'time_format' ), strtotime($status_detail->datetime) ); ?></td>
439
- <td><?php echo apply_filters("trackship_status_filter",$status_detail->status);?></td>
440
- <td><?php echo $status_detail->message; ?></td>
441
- </tr>
442
- <?php }
443
- ?>
444
- </tbody>
445
- </table>
446
- <?php if(count($trackind_detail_by_status_rev) > 2){ ?>
447
-
448
- <a class="view_table_rows" href="javaScript:void(0);"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
449
- <a class="hide_table_rows" href="javaScript:void(0);"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
450
- <?php } ?>
451
- </div>
452
  <?php } ?>
453
- </div>
454
  <?php } else{ ?>
455
  <div class="tracking-detail col">
456
  <h1 class="shipment_status_heading text-secondary text-center"><?php _e( 'Tracking&nbsp;#&nbsp;'.$tracking_number, 'woo-advanced-shipment-tracking' ); ?></h1>
457
- <h3 class="text-center"><?php _e( 'Invalid Tracking Number', 'woo-advanced-shipment-tracking' ); ?></h3>
458
  </div>
459
  <?php }
460
  $num++;
461
  }
 
462
  $remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
 
463
  if($remove_trackship_branding != 1){ ?>
464
  <div class="trackship_branding">
465
  <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
466
  </div>
467
- <?php } ?>
468
- <?php } }
 
 
 
 
469
 
470
  public function get_tracking_info_fun(){
 
471
  global $wpdb;
472
- $wc_ast_api_key = get_option('wc_ast_api_key');
 
 
473
  if(!$wc_ast_api_key){
474
  return;
475
  }
 
476
  $order_id = $_POST['order_id'];
477
 
478
  $email = $_POST['order_email'];
479
- if ( is_plugin_active( 'custom-order-numbers-for-woocommerce/custom-order-numbers-for-woocommerce.php' ) ) {
480
- $alg_wc_custom_order_numbers_enabled = get_option('alg_wc_custom_order_numbers_enabled');
481
- if($alg_wc_custom_order_numbers_enabled == 'yes'){
482
- $args = array(
483
- 'post_type' => 'shop_order',
484
- 'posts_per_page' => '1',
485
- 'meta_query' => array(
486
- 'relation' => 'AND',
487
- array(
488
- 'key' => '_alg_wc_custom_order_number',
489
- 'value' => $order_id
490
- ),
491
- ),
492
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
493
- );
494
- $posts = get_posts( $args );
495
- $my_query = new WP_Query( $args );
496
-
497
- if( $my_query->have_posts() ) {
498
- while( $my_query->have_posts()) {
499
- $my_query->the_post();
500
- if(get_the_ID()){
501
- $order_id = get_the_ID();
502
- }
503
- } // end while
504
- } // end if
505
- wp_reset_postdata();
506
- }
507
- }
508
-
509
- if ( is_plugin_active( 'woocommerce-sequential-order-numbers/woocommerce-sequential-order-numbers.php' ) ) {
510
-
511
- $s_order_id = wc_sequential_order_numbers()->find_order_by_order_number( $order_id );
512
- if($s_order_id){
513
- $order_id = $s_order_id;
514
- }
515
- }
516
 
517
- if ( is_plugin_active( 'wp-lister-amazon/wp-lister-amazon.php' ) ) {
518
- $wpla_use_amazon_order_number = get_option( 'wpla_use_amazon_order_number' );
519
- if($wpla_use_amazon_order_number == 1){
520
- $args = array(
521
- 'post_type' => 'shop_order',
522
- 'posts_per_page' => '1',
523
- 'meta_query' => array(
524
- 'relation' => 'AND',
525
- array(
526
- 'key' => '_wpla_amazon_order_id',
527
- 'value' => $order_id
528
- ),
529
- ),
530
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
531
- );
532
- $posts = get_posts( $args );
533
- $my_query = new WP_Query( $args );
534
-
535
- if( $my_query->have_posts() ) {
536
- while( $my_query->have_posts()) {
537
- $my_query->the_post();
538
- if(get_the_ID()){
539
- $order_id = get_the_ID();
540
- }
541
- } // end while
542
- } // end if
543
- wp_reset_postdata();
544
- }
545
- }
546
-
547
- if ( is_plugin_active( 'wp-lister/wp-lister.php' ) || is_plugin_active( 'wp-lister-for-ebay/wp-lister.php' )) {
548
-
549
- $args = array(
550
- 'post_type' => 'shop_order',
551
- 'posts_per_page' => '1',
552
- 'meta_query' => array(
553
- 'relation' => 'AND',
554
- array(
555
- 'key' => '_ebay_extended_order_id',
556
- 'value' => $order_id
557
- ),
558
- ),
559
- 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
560
- );
561
- $posts = get_posts( $args );
562
-
563
- $my_query = new WP_Query( $args );
564
-
565
- if( $my_query->have_posts() ) {
566
- while( $my_query->have_posts()) {
567
- $my_query->the_post();
568
- if(get_the_ID()){
569
- $order_id = get_the_ID();
570
- }
571
- } // end while
572
- } // end if
573
- wp_reset_postdata();
574
- }
575
 
576
  if(!get_post_status( $order_id )){
577
  echo '';
578
  exit;
579
  }
 
580
  $order = new WC_Order( $order_id );
581
  $order_email = $order->get_billing_email();
 
582
  if($order_email != $email){
583
  echo '';
584
  exit;
585
  }
 
586
  if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
587
  $tracking_items = get_post_meta( $order_id, '_wc_shipment_tracking_items', true );
588
  $order_key = get_post_meta( $order_id, 'order_key', true );
@@ -591,72 +443,77 @@ class WC_Advanced_Shipment_Tracking_Front {
591
  $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
592
  $order_key = $order->order_key;
593
  }
 
594
  if(!$tracking_items){
595
  echo 'tracking_items_not_found';
596
  exit;
597
  }
598
- ?>
599
 
600
- <?php
601
  $num = 1;
602
  $total_trackings = sizeof($tracking_items);
603
- foreach($tracking_items as $item){
604
- $tracking_number = $item['tracking_number'];
605
- $trackship_url = 'https://trackship.info';
606
- $tracking_provider = $item['tracking_provider'];
607
- $results = $wpdb->get_row( "SELECT * FROM {$this->table} WHERE ts_slug= '{$tracking_provider}'");
608
- $tracking_provider = $results->provider_name;
609
- /*** Update in 2.4.1
610
- * Change URL
611
- * Add User Key
612
- ***/
613
- $url = $trackship_url.'/wp-json/tracking/get_tracking_info';
614
- $args['body'] = array(
615
- 'tracking_number' => $tracking_number,
616
- 'order_id' => $order_id,
617
- 'domain' => get_home_url(),
618
- 'user_key' => $wc_ast_api_key,
619
- );
620
-
621
- $response = wp_remote_post( $url, $args );
622
-
623
- $data = $response['body'];
624
- $decoded_data = json_decode($data);
625
-
626
- $tracker->ep_status = '';
627
-
628
- $tracker = $decoded_data[0];
629
-
630
- $tracking_detail_org = '';
631
- $trackind_detail_by_status_rev = '';
632
 
633
- if(!$tracker){
634
- header("Status: 404 Not Found");
635
- exit;
636
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
637
 
638
- $tracking_detail_org = '';
639
- if($tracker->tracking_detail != 'null'){
640
- $tracking_detail_org = json_decode($tracker->tracking_detail);
641
- $trackind_detail_by_status_rev = array_reverse($tracking_detail_org);
642
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
643
 
644
- if($tracker->ep_status == "unknown"){ $state0_class = 'unknown'; } else{ $state0_class = 'pre_transit'; }
645
- if($tracker->ep_status == "return_to_sender" ){
646
- $state2_class = 'return_to_sender';
647
- } elseif($tracker->ep_status == "failure"){
648
- $state2_class = 'failure';
649
- } elseif($tracker->ep_status == "available_for_pickup"){
650
- $state2_class = 'available_for_pickup';
651
- } else{
652
- $state2_class = 'out_for_delivery';
653
- }
654
- $unixTimestamp = strtotime($decoded_data[0]->est_delivery_date);
655
- //Get the day of the week using PHP's date function.
656
- $day = date("l", $unixTimestamp);
657
- if($decoded_data){
658
- ?>
659
- <div class="tracking-detail col">
660
  <?php if($total_trackings > 1 ){ ?>
661
  <p class="shipment_heading"><?php
662
  echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
@@ -664,7 +521,7 @@ class WC_Advanced_Shipment_Tracking_Front {
664
  <div class="tracking-header">
665
  <div class="col-md col-md-6">
666
  <?php _e( 'Order: ', 'woo-advanced-shipment-tracking' ); ?><span class="tracking-number">#<?php echo apply_filters( 'ast_order_number_filter', $order_id); ?></span><br/>
667
- <?php echo $tracking_provider; ?>: <span class="tracking-number"><?php echo $tracker->tracking_code; ?></span>
668
  <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>
669
  </div>
670
  <div class="col-md col-md-6">
@@ -682,7 +539,9 @@ class WC_Advanced_Shipment_Tracking_Front {
682
  </div>
683
  </div>
684
  <?php
 
685
  if(isset($tracker->ep_status)){ ?>
 
686
  <div class="status-section desktop-section">
687
  <div class="tracker-progress-bar tracker-progress-bar-with-dots">
688
  <div class="progress">
@@ -778,58 +637,67 @@ class WC_Advanced_Shipment_Tracking_Front {
778
  </div>
779
  </div>
780
  </div>
781
- <?php } ?>
782
- <?php if( !empty($trackind_detail_by_status_rev) ){ ?>
783
- <div class="shipment_progress_div">
784
- <div class="shipment_progress_heading_div">
785
- <h4 class="tracking-number h4-heading" style=""><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
786
- </div>
787
- <table class="tracking-table">
788
- <tbody>
789
- <?php
790
- $i=0;
791
- foreach($trackind_detail_by_status_rev as $key=>$status_detail){ ?>
792
- <tr>
793
- <td><?php echo date_i18n( get_option( 'date_format' ), strtotime($status_detail->datetime) ); ?>
794
- <?php echo date_i18n( get_option( 'time_format' ), strtotime($status_detail->datetime) ); ?></td>
795
- <td><?php echo apply_filters("trackship_status_filter",$status_detail->status);?></td>
796
- <td><?php echo $status_detail->message; ?></td>
797
- </tr>
798
- <?php }
799
- ?>
800
- </tbody>
801
- </table>
802
- <?php if(count($trackind_detail_by_status_rev) > 2){ ?>
803
 
804
- <a class="view_table_rows" href="javaScript:void(0);"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
805
- <a class="hide_table_rows" href="javaScript:void(0);"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
806
- <?php } ?>
807
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
808
  <?php } ?>
809
- </div>
810
- <?php } else{ ?>
 
 
 
811
  <div class="tracking-detail col">
812
  <h1 class="shipment_status_heading text-secondary text-center"><?php _e( 'Tracking&nbsp;#&nbsp;'.$tracking_number, 'woo-advanced-shipment-tracking' ); ?></h1>
813
  <h3 class="text-center"><?php _e( 'Invalid Tracking Number', 'woo-advanced-shipment-tracking' ); ?></h3>
814
  </div>
815
- <?php
816
- //header("Status: 302 Not Found");
817
- //exit;
818
- }
819
- $num++;
820
- } ?>
821
- <?php
822
  $remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
823
- if($remove_trackship_branding != 1){
824
- ?>
 
825
  <div class="trackship_branding">
826
  <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
827
  </div>
828
- <?php } ?>
829
-
830
- <?php exit; }
 
 
831
 
832
- function convertString ($date)
 
 
 
833
  {
834
  // convert date and time to seconds
835
  $sec = strtotime($date);
@@ -837,47 +705,47 @@ class WC_Advanced_Shipment_Tracking_Front {
837
  // convert seconds into a specific format
838
  $date = date("m/d/Y H:i", $sec);
839
 
840
- // append seconds to the date and time
841
- //$date = $date . ":00";
842
-
843
  // print final date and time
844
  return $date;
845
  }
846
 
847
- function preview_tracking_page(){
848
  get_header();
849
 
850
- $wc_ast_api_key = get_option('wc_ast_api_key');
851
- $primary_color = get_option('wc_ast_select_primary_color');
852
- $border_color = get_option('wc_ast_select_border_color');
853
- ?>
854
- <style>
855
- <?php if($primary_color){ ?>
856
- .bg-secondary{
857
- background-color:<?php echo $primary_color; ?> !important;
858
- }
859
- .tracker-progress-bar-with-dots .secondary .dot {
860
- border-color: <?php echo $primary_color; ?>;
861
- }
862
- .text-secondary{
863
- color: <?php echo $primary_color; ?> !important;
864
- }
865
- .progress-bar.bg-secondary:before{
866
- background-color: <?php echo $primary_color; ?>;
867
- }
868
- .tracking-number{
869
- color: <?php echo $primary_color; ?> !important;
870
- }
871
- .view_table_rows,.hide_table_rows{
872
- color: <?php echo $primary_color; ?> !important;
873
- }
874
- <?php } ?>
875
- <?php if($border_color){ ?>
876
- .col.tracking-detail{
877
- border: 1px solid <?php echo $border_color; ?>;
878
- }
879
- <?php } ?>
880
- </style>
 
 
 
881
  <div class="tracking-detail col">
882
  <div class="tracking-header">
883
  <div class="col-md col-md-6">
@@ -947,6 +815,9 @@ $wc_ast_api_key = get_option('wc_ast_api_key');
947
  </div>
948
  </div>
949
  </div>
 
 
 
950
  <div class="shipment_progress_div">
951
  <div class="shipment_progress_heading_div">
952
  <h4 class="tracking-number h4-heading">Tracking Details</h4>
@@ -973,14 +844,19 @@ $wc_ast_api_key = get_option('wc_ast_api_key');
973
  <a class="view_table_rows" href="javaScript:void(0);" style="display: inline;">view more</a>
974
  <a class="hide_table_rows" href="javaScript:void(0);" style="display: none;">view less</a>
975
  </div>
976
- </div>
 
 
 
977
  <?php
 
978
  $remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
 
979
  if($remove_trackship_branding != 1){ ?>
980
  <div class="trackship_branding">
981
  <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
982
  </div>
983
- <?php }
984
  get_footer();
985
  exit;
986
  }
11
  * @var object Class Instance
12
  */
13
  private static $instance;
14
+
15
  /**
16
  * Initialize the main plugin function
17
  */
34
 
35
  $this->init();
36
  }
37
+
38
  /**
39
  * Get the class instance
40
  *
48
 
49
  return self::$instance;
50
  }
51
+
52
  /*
53
  * init from parent mail class
54
  */
59
 
60
  add_action( 'wp_ajax_nopriv_get_tracking_info', array( $this, 'get_tracking_info_fun') );
61
  add_action( 'wp_ajax_get_tracking_info', array( $this, 'get_tracking_info_fun') );
62
+
63
  }
64
+
65
+ /**
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
114
+ if(!$wc_ast_api_key){
115
+ return;
116
+ }
117
+ if(isset($_GET['order_id']) && isset($_GET['order_key'])){
118
 
119
+ $order_id = $_GET['order_id'];
120
+ $order = new WC_Order( $order_id );
121
+ $order_key = $order->get_order_key();
122
+
123
+ if($order_key != $_GET['order_key']){
124
+ return;
125
+ }
126
+
127
+ if(!get_post_status( $order_id )){
128
+ return;
129
+ }
130
 
131
+ if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
132
+ $tracking_items = get_post_meta( $order_id, '_wc_shipment_tracking_items', true );
133
+ } else {
134
+ $order = new WC_Order( $order_id );
135
+ $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
136
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
 
138
+ if(!$tracking_items){
139
+ unset($order_id);
 
 
 
140
  }
141
+
142
  }
143
+
144
+ ?>
145
+
146
+ <?php
147
+ if(!isset($order_id)){
148
+ ob_start();
149
+ ?>
150
+ <div class="track-order-section">
151
+ <form method="post" class="order_track_form">
152
+ <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>
153
+ <p class="form-row form-row-first"><label for="order_id"><?php echo apply_filters( 'ast_tracking_page_front_order_label', __( 'Order ID', 'woo-advanced-shipment-tracking' ) ); ?></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>
154
+ <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>
155
+ <div class="clear"></div>
156
+ <input type="hidden" name="action" value="get_tracking_info">
157
+ <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>
158
+ <div class="track_fail_msg" style="display:none;color: red;"></div>
159
+ </form>
160
+ </div>
161
+ <?php
162
 
163
+ $form = ob_get_clean();
164
+ return $form;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
 
166
+ } else{
167
+ ob_start();
 
 
 
 
 
 
 
 
 
 
 
 
 
168
 
169
+ $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
170
+ $order_id = $wast->get_formated_order_id($order_id);
 
 
 
 
 
 
 
 
171
 
172
+ $num = 1;
173
+ $total_trackings = sizeof($tracking_items);
174
 
175
  foreach($tracking_items as $item){
176
 
177
+ $tracking_number = $item['tracking_number'];
178
+ $trackship_url = 'https://trackship.info';
179
+ $tracking_provider = $item['tracking_provider'];
180
+ $results = $wpdb->get_row( "SELECT * FROM {$this->table} WHERE ts_slug= '{$tracking_provider}'");
181
+ $tracking_provider = $results->provider_name;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
 
183
+ /*** Update in 2.4.1
184
+ * Change URL
185
+ * Add User Key
186
+ ***/
187
+ $url = $trackship_url.'/wp-json/tracking/get_tracking_info';
188
+ $args['body'] = array(
189
+ 'tracking_number' => $tracking_number,
190
+ 'order_id' => $order_id,
191
+ 'domain' => get_home_url(),
192
+ 'user_key' => $wc_ast_api_key,
193
+ );
194
+ $response = wp_remote_post( $url, $args );
195
+ $data = $response['body'];
196
+ $decoded_data = json_decode($data);
197
+
198
+ $tracker = new \stdClass();
199
+ $tracker->ep_status = '';
200
+ if(!empty($decoded_data)){
201
+ $tracker = $decoded_data[0];
202
+ }
203
+
204
+ $tracking_detail_org = '';
205
+ $trackind_detail_by_status_rev = '';
206
+
207
+ if(isset($tracker->tracking_detail) && $tracker->tracking_detail != 'null'){
208
+ $tracking_detail_org = json_decode($tracker->tracking_detail);
209
+ $trackind_detail_by_status_rev = array_reverse($tracking_detail_org);
210
+ }
211
 
212
  if(!empty($decoded_data)){
213
 
214
+ if($tracker->est_delivery_date){
215
+ $unixTimestamp = strtotime($tracker->est_delivery_date);
216
+ $day = date("l", $unixTimestamp);
217
+ }
218
 
219
+ if($tracker->ep_status == "unknown"){ $state0_class = 'unknown'; } else{ $state0_class = 'pre_transit'; }
 
 
 
 
 
 
 
 
 
 
 
220
 
221
+ if($tracker->ep_status == "return_to_sender" ){
222
+ $state2_class = 'return_to_sender';
223
+ } elseif($tracker->ep_status == "failure"){
224
+ $state2_class = 'failure';
225
+ } elseif($tracker->ep_status == "available_for_pickup"){
226
+ $state2_class = 'available_for_pickup';
227
+ } else{
228
+ $state2_class = 'out_for_delivery';
229
+ }
230
+ ?>
231
+
232
+ <div class="tracking-detail col">
233
  <?php if($total_trackings > 1 ){ ?>
234
  <p class="shipment_heading"><?php
235
  echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
237
  <div class="tracking-header">
238
  <div class="col-md col-md-6">
239
  <?php _e( 'Order: ', 'woo-advanced-shipment-tracking' ); ?><span class="tracking-number">#<?php echo apply_filters( 'ast_order_number_filter', $order_id); ?></span><br/>
240
+ <?php echo apply_filters( 'ast_provider_title', $tracking_provider); ?>: <span class="tracking-number"><?php echo $tracker->tracking_code; ?></span>
241
  <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>
242
  </div>
243
  <div class="col-md col-md-6">
254
  <?php } ?>
255
  </div>
256
  </div>
257
+ <?php
258
+ 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'){
259
+
260
+ }
261
+ elseif(isset($tracker->ep_status)){ ?>
262
  <div class="status-section desktop-section">
263
  <div class="tracker-progress-bar tracker-progress-bar-with-dots">
264
  <div class="progress">
354
  </div>
355
  </div>
356
  </div>
357
+ <?php } ?>
358
+ <?php if( !empty($trackind_detail_by_status_rev) && $hide_tracking_events != 1 ){ ?>
359
+ <div class="shipment_progress_div">
360
+ <div class="shipment_progress_heading_div">
361
+ <h4 class="tracking-number h4-heading" style=""><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
362
+ </div>
363
+ <table class="tracking-table">
364
+ <tbody>
365
+ <?php
366
+ $i=0;
367
+ foreach($trackind_detail_by_status_rev as $key=>$status_detail){ ?>
368
+ <tr>
369
+ <td><?php echo date_i18n( get_option( 'date_format' ), strtotime($status_detail->datetime) ); ?>
370
+ <?php echo date_i18n( get_option( 'time_format' ), strtotime($status_detail->datetime) ); ?></td>
371
+ <td><?php echo apply_filters("trackship_status_filter",$status_detail->status);?></td>
372
+ <td><?php echo $status_detail->message; ?></td>
373
+ </tr>
374
+ <?php }
375
+ ?>
376
+ </tbody>
377
+ </table>
378
+ <?php if(count($trackind_detail_by_status_rev) > 2){ ?>
379
+
380
+ <a class="view_table_rows" href="javaScript:void(0);"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
381
+ <a class="hide_table_rows" href="javaScript:void(0);"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
382
+ <?php } ?>
383
+ </div>
384
  <?php } ?>
385
+ </div>
386
  <?php } else{ ?>
387
  <div class="tracking-detail col">
388
  <h1 class="shipment_status_heading text-secondary text-center"><?php _e( 'Tracking&nbsp;#&nbsp;'.$tracking_number, 'woo-advanced-shipment-tracking' ); ?></h1>
389
+ <h3 class="text-center"><?php _e( 'Tracking details not found in TrackShip', 'woo-advanced-shipment-tracking' ); ?></h3>
390
  </div>
391
  <?php }
392
  $num++;
393
  }
394
+
395
  $remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
396
+
397
  if($remove_trackship_branding != 1){ ?>
398
  <div class="trackship_branding">
399
  <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
400
  </div>
401
+ <?php }
402
+
403
+ $form = ob_get_clean();
404
+ return $form;
405
+ }
406
+ }
407
 
408
  public function get_tracking_info_fun(){
409
+
410
  global $wpdb;
411
+ $wc_ast_api_key = get_option('wc_ast_api_key');
412
+ $hide_tracking_events = get_option('wc_ast_hide_tracking_events');
413
+
414
  if(!$wc_ast_api_key){
415
  return;
416
  }
417
+
418
  $order_id = $_POST['order_id'];
419
 
420
  $email = $_POST['order_email'];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
421
 
422
+ $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
423
+ $order_id = $wast->get_formated_order_id($order_id);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
424
 
425
  if(!get_post_status( $order_id )){
426
  echo '';
427
  exit;
428
  }
429
+
430
  $order = new WC_Order( $order_id );
431
  $order_email = $order->get_billing_email();
432
+
433
  if($order_email != $email){
434
  echo '';
435
  exit;
436
  }
437
+
438
  if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
439
  $tracking_items = get_post_meta( $order_id, '_wc_shipment_tracking_items', true );
440
  $order_key = get_post_meta( $order_id, 'order_key', true );
443
  $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
444
  $order_key = $order->order_key;
445
  }
446
+
447
  if(!$tracking_items){
448
  echo 'tracking_items_not_found';
449
  exit;
450
  }
 
451
 
 
452
  $num = 1;
453
  $total_trackings = sizeof($tracking_items);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454
 
455
+ foreach($tracking_items as $item){
456
+
457
+ $tracking_number = $item['tracking_number'];
458
+ $trackship_url = 'https://trackship.info';
459
+ $tracking_provider = $item['tracking_provider'];
460
+ $results = $wpdb->get_row( "SELECT * FROM {$this->table} WHERE ts_slug= '{$tracking_provider}'");
461
+ $tracking_provider = $results->provider_name;
462
+
463
+ /*** Update in 2.4.1
464
+ * Change URL
465
+ * Add User Key
466
+ ***/
467
+ $url = $trackship_url.'/wp-json/tracking/get_tracking_info';
468
+ $args['body'] = array(
469
+ 'tracking_number' => $tracking_number,
470
+ 'order_id' => $order_id,
471
+ 'domain' => get_home_url(),
472
+ 'user_key' => $wc_ast_api_key,
473
+ );
474
 
475
+ $response = wp_remote_post( $url, $args );
476
+
477
+ $data = $response['body'];
478
+ $decoded_data = json_decode($data);
479
+
480
+ $tracker->ep_status = '';
481
+
482
+ $tracker = $decoded_data[0];
483
+
484
+ $tracking_detail_org = '';
485
+ $trackind_detail_by_status_rev = '';
486
+
487
+ if(!$tracker){
488
+ header("Status: 404 Not Found");
489
+ exit;
490
+ }
491
+
492
+ $tracking_detail_org = '';
493
+ if($tracker->tracking_detail != 'null'){
494
+ $tracking_detail_org = json_decode($tracker->tracking_detail);
495
+ $trackind_detail_by_status_rev = array_reverse($tracking_detail_org);
496
+ }
497
+
498
+ if($tracker->ep_status == "unknown"){ $state0_class = 'unknown'; } else{ $state0_class = 'pre_transit'; }
499
+
500
+ if($tracker->ep_status == "return_to_sender" ){
501
+ $state2_class = 'return_to_sender';
502
+ } elseif($tracker->ep_status == "failure"){
503
+ $state2_class = 'failure';
504
+ } elseif($tracker->ep_status == "available_for_pickup"){
505
+ $state2_class = 'available_for_pickup';
506
+ } else{
507
+ $state2_class = 'out_for_delivery';
508
+ }
509
+
510
+ $unixTimestamp = strtotime($decoded_data[0]->est_delivery_date);
511
+
512
+ //Get the day of the week using PHP's date function.
513
+ $day = date("l", $unixTimestamp);
514
+ if($decoded_data){ ?>
515
 
516
+ <div class="tracking-detail col">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
517
  <?php if($total_trackings > 1 ){ ?>
518
  <p class="shipment_heading"><?php
519
  echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
521
  <div class="tracking-header">
522
  <div class="col-md col-md-6">
523
  <?php _e( 'Order: ', 'woo-advanced-shipment-tracking' ); ?><span class="tracking-number">#<?php echo apply_filters( 'ast_order_number_filter', $order_id); ?></span><br/>
524
+ <?php echo apply_filters( 'ast_provider_title', $tracking_provider); ?>: <span class="tracking-number"><?php echo $tracker->tracking_code; ?></span>
525
  <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>
526
  </div>
527
  <div class="col-md col-md-6">
539
  </div>
540
  </div>
541
  <?php
542
+
543
  if(isset($tracker->ep_status)){ ?>
544
+
545
  <div class="status-section desktop-section">
546
  <div class="tracker-progress-bar tracker-progress-bar-with-dots">
547
  <div class="progress">
637
  </div>
638
  </div>
639
  </div>
640
+ <?php }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
641
 
642
+ if( !empty($trackind_detail_by_status_rev) && $hide_tracking_events != 1 ){ ?>
643
+
644
+ <div class="shipment_progress_div">
645
+ <div class="shipment_progress_heading_div">
646
+ <h4 class="tracking-number h4-heading" style=""><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
647
+ </div>
648
+ <table class="tracking-table">
649
+ <tbody>
650
+ <?php
651
+ $i=0;
652
+ foreach($trackind_detail_by_status_rev as $key=>$status_detail){ ?>
653
+ <tr>
654
+ <td><?php echo date_i18n( get_option( 'date_format' ), strtotime($status_detail->datetime) ); ?>
655
+ <?php echo date_i18n( get_option( 'time_format' ), strtotime($status_detail->datetime) ); ?></td>
656
+ <td><?php echo apply_filters("trackship_status_filter",$status_detail->status);?></td>
657
+ <td><?php echo $status_detail->message; ?></td>
658
+ </tr>
659
+ <?php }
660
+ ?>
661
+ </tbody>
662
+ </table>
663
+ <?php if(count($trackind_detail_by_status_rev) > 2){ ?>
664
+
665
+ <a class="view_table_rows" href="javaScript:void(0);"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
666
+ <a class="hide_table_rows" href="javaScript:void(0);"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
667
+ <?php } ?>
668
+ </div>
669
  <?php } ?>
670
+
671
+ </div>
672
+
673
+ <?php } else{ ?>
674
+
675
  <div class="tracking-detail col">
676
  <h1 class="shipment_status_heading text-secondary text-center"><?php _e( 'Tracking&nbsp;#&nbsp;'.$tracking_number, 'woo-advanced-shipment-tracking' ); ?></h1>
677
  <h3 class="text-center"><?php _e( 'Invalid Tracking Number', 'woo-advanced-shipment-tracking' ); ?></h3>
678
  </div>
679
+ <?php
680
+ }
681
+ $num++;
682
+ }
683
+
 
 
684
  $remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
685
+
686
+ if($remove_trackship_branding != 1){ ?>
687
+
688
  <div class="trackship_branding">
689
  <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
690
  </div>
691
+
692
+ <?php }
693
+
694
+ exit;
695
+ }
696
 
697
+ /**
698
+ * convert string to date
699
+ */
700
+ public static function convertString ($date)
701
  {
702
  // convert date and time to seconds
703
  $sec = strtotime($date);
705
  // convert seconds into a specific format
706
  $date = date("m/d/Y H:i", $sec);
707
 
 
 
 
708
  // print final date and time
709
  return $date;
710
  }
711
 
712
+ public static function preview_tracking_page(){
713
  get_header();
714
 
715
+ $wc_ast_api_key = get_option('wc_ast_api_key');
716
+ $primary_color = get_option('wc_ast_select_primary_color');
717
+ $border_color = get_option('wc_ast_select_border_color');
718
+ $hide_tracking_events = get_option('wc_ast_hide_tracking_events');
719
+ ?>
720
+
721
+ <style>
722
+ <?php if($primary_color){ ?>
723
+ .bg-secondary{
724
+ background-color:<?php echo $primary_color; ?> !important;
725
+ }
726
+ .tracker-progress-bar-with-dots .secondary .dot {
727
+ border-color: <?php echo $primary_color; ?>;
728
+ }
729
+ .text-secondary{
730
+ color: <?php echo $primary_color; ?> !important;
731
+ }
732
+ .progress-bar.bg-secondary:before{
733
+ background-color: <?php echo $primary_color; ?>;
734
+ }
735
+ .tracking-number{
736
+ color: <?php echo $primary_color; ?> !important;
737
+ }
738
+ .view_table_rows,.hide_table_rows{
739
+ color: <?php echo $primary_color; ?> !important;
740
+ }
741
+ <?php }
742
+ if($border_color){ ?>
743
+ .col.tracking-detail{
744
+ border: 1px solid <?php echo $border_color; ?>;
745
+ }
746
+ <?php } ?>
747
+ </style>
748
+
749
  <div class="tracking-detail col">
750
  <div class="tracking-header">
751
  <div class="col-md col-md-6">
815
  </div>
816
  </div>
817
  </div>
818
+
819
+ <?php if($hide_tracking_events != 1){ ?>
820
+
821
  <div class="shipment_progress_div">
822
  <div class="shipment_progress_heading_div">
823
  <h4 class="tracking-number h4-heading">Tracking Details</h4>
844
  <a class="view_table_rows" href="javaScript:void(0);" style="display: inline;">view more</a>
845
  <a class="hide_table_rows" href="javaScript:void(0);" style="display: none;">view less</a>
846
  </div>
847
+
848
+ <?php } ?>
849
+
850
+ </div>
851
  <?php
852
+
853
  $remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
854
+
855
  if($remove_trackship_branding != 1){ ?>
856
  <div class="trackship_branding">
857
  <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
858
  </div>
859
+ <?php }
860
  get_footer();
861
  exit;
862
  }
includes/class-wc-advanced-shipment-tracking-install.php CHANGED
@@ -11,6 +11,7 @@ class WC_Advanced_Shipment_Tracking_Install {
11
  * @var object Class Instance
12
  */
13
  private static $instance;
 
14
  /**
15
  * Initialize the main plugin function
16
  */
@@ -34,6 +35,7 @@ class WC_Advanced_Shipment_Tracking_Install {
34
 
35
  $this->init();
36
  }
 
37
  /**
38
  * Get the class instance
39
  *
@@ -47,6 +49,7 @@ class WC_Advanced_Shipment_Tracking_Install {
47
 
48
  return self::$instance;
49
  }
 
50
  /*
51
  * init from parent mail class
52
  */
@@ -54,9 +57,9 @@ class WC_Advanced_Shipment_Tracking_Install {
54
  add_action( 'init', array( $this, 'update_database_check'));
55
  $wc_ast_api_key = get_option('wc_ast_api_key');
56
  if(!$wc_ast_api_key){
57
- require_once( 'vendor/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php' );
58
- add_action( 'admin_init', array( 'PAnD', 'init' ) );
59
- add_action( 'admin_notices', array( $this, 'admin_notice_after_update' ) );
60
  }
61
  }
62
 
@@ -69,7 +72,7 @@ class WC_Advanced_Shipment_Tracking_Install {
69
  *
70
  *
71
  */
72
- public function woo_shippment_tracking_install(){
73
 
74
  global $wpdb;
75
 
@@ -131,6 +134,7 @@ class WC_Advanced_Shipment_Tracking_Install {
131
  update_option( 'wc_advanced_shipment_tracking', '3.1');
132
  }
133
  }
 
134
  /**
135
  *
136
  * Return shipment provider list array
@@ -138,807 +142,808 @@ class WC_Advanced_Shipment_Tracking_Install {
138
  */
139
  public function provider_list(){
140
  $providers = array(
141
- 0 => array (
142
- "provider_name" => 'Australia Post',
143
- "ts_slug" => 'australia-post',
144
- "provider_url" => 'http://auspost.com.au/track/track.html?id=%number%',
145
- "shipping_country" => 'AU',
146
- "shipping_default" => '1'
147
- ),
148
-
149
- 1 => array (
150
- "provider_name" => 'Fastway AU',
151
- "ts_slug" => 'fastway-au',
152
- "provider_url" => 'http://www.fastway.com.au/courier-services/track-your-parcel?l=%number%',
153
- "shipping_country" => 'AU',
154
- "shipping_default" => '1'
155
- ),
 
 
 
 
 
 
 
 
156
 
157
- 2 => array (
158
- "provider_name" => 'post.at',
159
- "ts_slug" => 'post-at',
160
- "provider_url" => 'http://www.post.at/sendungsverfolgung.php?pnum1=%number%',
161
- "shipping_country" => 'AT',
162
- "shipping_default" => '1'
163
- ),
164
-
165
- 3 => array (
166
- "provider_name" => 'DHL at',
167
- "ts_slug" => 'dhl-at',
168
- "provider_url" => 'http://www.dhl.at/content/at/de/express/sendungsverfolgung.html?brand=DHL&AWB=%number%',
169
- "shipping_country" => 'AT',
170
- "shipping_default" => '1'
171
- ),
172
 
173
- 4 => array (
174
- "provider_name" => 'DPD.at',
175
- "ts_slug" => 'dpd-at',
176
- "provider_url" => 'https://tracking.dpd.de/parcelstatus?locale=de_AT&query=%number%',
177
- "shipping_country" => 'AT',
178
- "shipping_default" => '1'
179
- ),
180
 
181
- 5 => array (
182
- "provider_name" => 'Brazil Correios',
183
- "ts_slug" => 'brazil-correios',
184
- "provider_url" => 'http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_TIPO=001&P_COD_UNI=%number%',
185
- "shipping_country" => 'BR',
186
- "shipping_default" => '1'
187
- ),
188
 
189
- 6 => array (
190
- "provider_name" => 'Belgium Post',
191
- "ts_slug" => 'belgium-post',
192
- "provider_url" => 'https://track.bpost.be/btr/web/#/search?itemCode=%number%',
193
- "shipping_country" => 'BE',
194
- "shipping_default" => '1'
195
- ),
196
 
197
- 7 => array (
198
- "provider_name" => 'Canada Post',
199
- "ts_slug" => 'canada-post',
200
- "provider_url" => 'http://www.canadapost.ca/cpotools/apps/track/personal/findByTrackNumber?trackingNumber=%number%',
201
- "shipping_country" => 'CA',
202
- "shipping_default" => '1'
203
- ),
204
-
205
- 8 => array (
206
- "provider_name" => 'DHL cz',
207
- "ts_slug" => 'dhl-cz',
208
- "provider_url" => 'http://www.dhl.cz/cs/express/sledovani_zasilek.html?AWB=%number%',
209
- "shipping_country" => 'CZ',
210
- "shipping_default" => '1'
211
- ),
212
-
213
- 9 => array (
214
- "provider_name" => 'DPD.cz',
215
- "ts_slug" => 'dpd-cz',
216
- "provider_url" => 'https://tracking.dpd.de/parcelstatus?locale=cs_CZ&query=%number%',
217
- "shipping_country" => 'CZ',
218
- "shipping_default" => '1'
219
- ),
220
 
221
- 10 => array (
222
- "provider_name" => 'Colissimo',
223
- "ts_slug" => 'colissimo',
224
- "provider_url" => 'https://www.laposte.fr/outils/suivre-vos-envois?code=%number%',
225
- "shipping_country" => 'FR',
226
- "shipping_default" => '1'
227
- ),
228
 
229
- 11 => array (
230
- "provider_name" => 'DHL Intraship (DE)',
231
- "ts_slug" => 'dhl-intraship-de',
232
- "provider_url" => 'http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=%number%&rfn=&extendedSearch=true',
233
- "shipping_country" => 'DE',
234
- "shipping_default" => '1'
235
- ),
236
 
237
- 12 => array (
238
- "provider_name" => 'Hermes Germany',
239
- "ts_slug" => 'hermes-de',
240
- "provider_url" => 'https://www.myhermes.de/empfangen/sendungsverfolgung/?suche=%number%',
241
- "shipping_country" => 'DE',
242
- "shipping_default" => '1'
243
- ),
244
 
245
- 13 => array (
246
- "provider_name" => 'Deutsche Post DHL',
247
- "ts_slug" => 'deutsche-post-dhl',
248
- "provider_url" => 'http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=%number%',
249
- "shipping_country" => 'DE',
250
- "shipping_default" => '1'
251
- ),
252
 
253
- 14 => array (
254
- "provider_name" => 'UPS Germany',
255
- "ts_slug" => 'ups-germany',
256
- "provider_url" => 'http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=de_DE&InquiryNumber1=%number%',
257
- "shipping_country" => 'DE',
258
- "shipping_default" => '1'
259
- ),
260
 
261
- 15 => array (
262
- "provider_name" => 'DPD.de',
263
- "ts_slug" => 'dpd-de',
264
- "provider_url" => 'https://tracking.dpd.de/parcelstatus?query=%number%&locale=en_DE',
265
- "shipping_country" => 'DE',
266
- "shipping_default" => '1'
267
- ),
268
 
269
- 16 => array (
270
- "provider_name" => 'DPD.ie',
271
- "ts_slug" => 'dpd-ie',
272
- "provider_url" => 'http://www2.dpd.ie/Services/QuickTrack/tabid/222/ConsignmentID/%number%/Default.aspx',
273
- "shipping_country" => 'IE',
274
- "shipping_default" => '1'
275
- ),
276
 
277
- 17 => array (
278
- "provider_name" => 'DHL Express',
279
- "ts_slug" => 'dhl-express',
280
- "provider_url" => 'http://www.dhl.it/it/express/ricerca.html?AWB=%number%&brand=DHL',
281
- "shipping_country" => 'Global',
282
- "shipping_default" => '1'
283
- ),
284
 
285
- 18 => array (
286
- "provider_name" => 'PostNL',
287
- "ts_slug" => 'postnl',
288
- "provider_url" => 'https://mijnpakket.postnl.nl/Claim?Barcode=%number%&Postalcode=%2$s&Foreign=False&ShowAnonymousLayover=False&CustomerServiceClaim=False',
289
- "shipping_country" => 'NL',
290
- "shipping_default" => '1'
291
- ),
292
 
293
- 19 => array (
294
- "provider_name" => 'DPD.NL',
295
- "ts_slug" => 'dpd-nl',
296
- "provider_url" => 'http://track.dpdnl.nl/?parcelnumber=%number%',
297
- "shipping_country" => 'NL',
298
- "shipping_default" => '1'
299
- ),
300
 
301
- 20 => array (
302
- "provider_name" => 'Fastway NZ',
303
- "ts_slug" => 'fastway-nz',
304
- "provider_url" => 'https://www.fastway.co.nz/tools/track?l=%number%',
305
- "shipping_country" => 'NZ',
306
- "shipping_default" => '1'
307
- ),
308
 
309
- 21 => array (
310
- "provider_name" => 'DPD Romania',
311
- "ts_slug" => 'dpd-romania',
312
- "provider_url" => 'https://tracking.dpd.de/parcelstatus?query=%number%&locale=ro_RO',
313
- "shipping_country" => 'RO',
314
- "shipping_default" => '1'
315
- ),
316
 
317
- 22 => array (
318
- "provider_name" => 'PostNord Sverige AB',
319
- "ts_slug" => 'postnord-sverige-ab',
320
- "provider_url" => 'http://www.postnord.se/sv/verktyg/sok/Sidor/spara-brev-paket-och-pall.aspx?search=%number%',
321
- "shipping_country" => 'SE',
322
- "shipping_default" => '1'
323
- ),
324
 
325
- 23 => array (
326
- "provider_name" => 'DHL se',
327
- "ts_slug" => 'dhl-se',
328
- "provider_url" => 'http://www.dhl.se/content/se/sv/express/godssoekning.shtml?brand=DHL&AWB=%number%',
329
- "shipping_country" => 'SE',
330
- "shipping_default" => '1'
331
- ),
332
 
333
- 24 => array (
334
- "provider_name" => 'UPS.se',
335
- "ts_slug" => 'ups-se',
336
- "provider_url" => 'http://wwwapps.ups.com/WebTracking/track?track=yes&loc=sv_SE&trackNums=%number%',
337
- "shipping_country" => 'SE',
338
- "shipping_default" => '1'
339
- ),
340
 
341
- 25 => array (
342
- "provider_name" => 'DHL uk',
343
- "ts_slug" => 'dhl-uk',
344
- "provider_url" => 'http://www.dhl.com/content/g0/en/express/tracking.shtml?brand=DHL&AWB=%number%',
345
- "shipping_country" => 'GB',
346
- "shipping_default" => '1'
347
- ),
348
 
349
- 26 => array (
350
- "provider_name" => 'DPD.co.uk',
351
- "ts_slug" => 'dpd-co-uk',
352
- "provider_url" => 'http://www.dpd.co.uk/tracking/trackingSearch.do?search.searchType=0&search.parcelNumber=%number%',
353
- "shipping_country" => 'GB',
354
- "shipping_default" => '1'
355
- ),
356
 
357
- 27 => array (
358
- "provider_name" => 'InterLink',
359
- "ts_slug" => 'interlink',
360
- "provider_url" => 'http://www.interlinkexpress.com/apps/tracking/?reference=%number%&postcode=%2$s#results',
361
- "shipping_country" => 'GB',
362
- "shipping_default" => '1'
363
- ),
364
 
365
- 28 => array (
366
- "provider_name" => 'ParcelForce',
367
- "ts_slug" => 'parcelforce',
368
- "provider_url" => 'http://www.parcelforce.com/portal/pw/track?trackNumber=%number%',
369
- "shipping_country" => 'GB',
370
- "shipping_default" => '1'
371
- ),
372
 
373
- 29 => array (
374
- "provider_name" => 'Royal Mail',
375
- "ts_slug" => 'royal-mail',
376
- "provider_url" => 'https://www.royalmail.com/track-your-item/?trackNumber=%number%',
377
- "shipping_country" => 'GB',
378
- "shipping_default" => '1'
379
- ),
380
 
381
- 30 => array (
382
- "provider_name" => 'Fedex',
383
- "ts_slug" => 'fedex',
384
- "provider_url" => 'http://www.fedex.com/Tracking?action=track&tracknumbers=%number%',
385
- "shipping_country" => 'US',
386
- "shipping_default" => '1'
387
- ),
388
 
389
- 31 => array (
390
- "provider_name" => 'FedEx Sameday',
391
- "ts_slug" => 'fedex-sameday',
392
- "provider_url" => 'https://www.fedexsameday.com/fdx_dotracking_ua.aspx?tracknum=%number%',
393
- "shipping_country" => 'US',
394
- "shipping_default" => '1'
395
- ),
396
 
397
- 32 => array (
398
- "provider_name" => 'OnTrac',
399
- "ts_slug" => 'ontrac',
400
- "provider_url" => 'http://www.ontrac.com/trackingdetail.asp?tracking=%number%',
401
- "shipping_country" => 'US',
402
- "shipping_default" => '1'
403
- ),
404
 
405
- 33 => array (
406
- "provider_name" => 'UPS',
407
- "ts_slug" => 'ups',
408
- "provider_url" => 'http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=%number%',
409
- "shipping_country" => 'US',
410
- "shipping_default" => '1'
411
- ),
412
 
413
- 34 => array (
414
- "provider_name" => 'USPS',
415
- "ts_slug" => 'usps',
416
- "provider_url" => 'https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=%number%',
417
- "shipping_country" => 'US',
418
- "shipping_default" => '1'
419
- ),
420
 
421
- 35 => array (
422
- "provider_name" => 'DHL US',
423
- "ts_slug" => 'dhl-us',
424
- "provider_url" => 'https://www.logistics.dhl/us-en/home/tracking/tracking-ecommerce.html?tracking-id=%number%',
425
- "shipping_country" => 'US',
426
- "shipping_default" => '1'
427
- ),
428
 
429
- 36 => array (
430
- "provider_name" => 'LaserShip',
431
- "ts_slug" => 'lasership',
432
- "provider_url" => 'https://www.lasership.com/track.php?track_number_input=%number%',
433
- "shipping_country" => 'US',
434
- "shipping_default" => '1'
435
- ),
436
- 37 => array (
437
- "provider_name" => 'GSO',
438
- "ts_slug" => 'gso',
439
- "provider_url" => 'https://www.gso.com/tracking',
440
- "shipping_country" => 'US',
441
- "shipping_default" => '1'
442
- ),
443
- 38 => array (
444
- "provider_name" => 'ABF',
445
- "ts_slug" => 'abf',
446
- "provider_url" => 'https://arcb.com/tools/tracking.html',
447
- "shipping_country" => 'IN',
448
- "shipping_default" => '1'
449
- ),
450
- 39 => array (
451
- "provider_name" => 'Associated Global Systems',
452
- "ts_slug" => 'associated-global-systems',
453
- "provider_url" => 'https://tracking.agsystems.com/',
454
- "shipping_country" => 'US',
455
- "shipping_default" => '1'
456
- ),
457
- 40 => array (
458
- "provider_name" => 'APC',
459
- "ts_slug" => 'apc',
460
- "provider_url" => 'https://us.mytracking.net/APC/track/TrackDetails.aspx?t=%number%',
461
- "shipping_country" => 'US',
462
- "shipping_default" => '1'
463
- ),
464
- 41 => array (
465
- "provider_name" => 'ArrowXL',
466
- "ts_slug" => 'arrowxl',
467
- "provider_url" => 'https://askaxl.co.uk/tracking?upi=%number%',
468
- "shipping_country" => 'GB',
469
- "shipping_default" => '1'
470
- ),
471
- 42 => array (
472
- "provider_name" => 'Dai Post',
473
- "ts_slug" => 'dai-post',
474
- "provider_url" => 'https://daiglobaltrack.com/tracking.aspx?custtracknbr=%number%',
475
- "shipping_country" => 'AU',
476
- "shipping_default" => '1'
477
- ),
478
- 43 => array (
479
- "provider_name" => 'Deliv',
480
- "ts_slug" => 'deliv',
481
- "provider_url" => 'https://tracking.deliv.co/',
482
- "shipping_country" => 'US',
483
- "shipping_default" => '1'
484
- ),
485
- 44 => array (
486
- "provider_name" => 'India Post',
487
- "ts_slug" => 'india-post',
488
- "provider_url" => 'https://www.indiapost.gov.in/_layouts/15/dop.portal.tracking/trackconsignment.aspx',
489
- "shipping_country" => 'IN',
490
- "shipping_default" => '1'
491
- ),
492
- 45 => array (
493
- "provider_name" => 'Israel Post',
494
- "ts_slug" => 'israel-post',
495
- "provider_url" => 'https://mypost.israelpost.co.il/itemtrace?itemcode=%number%',
496
- "shipping_country" => 'IL',
497
- "shipping_default" => '1'
498
- ),
499
- 46 => array (
500
- "provider_name" => 'Boxberry',
501
- "ts_slug" => 'boxberry',
502
- "provider_url" => 'https://boxberry.ru/tracking/',
503
- "shipping_country" => 'RU',
504
- "shipping_default" => '1'
505
- ),
506
- 47 => array (
507
- "provider_name" => 'Canpar',
508
- "ts_slug" => 'canpar',
509
- "provider_url" => 'https://www.canpar.ca/en/track/tracking.jsp',
510
- "shipping_country" => 'CA',
511
- "shipping_default" => '1'
512
- ),
513
- 48 => array (
514
- "provider_name" => 'China Post',
515
- "ts_slug" => 'china-post',
516
- "provider_url" => 'http://parcelsapp.com/en/tracking/%number%',
517
- "shipping_country" => 'CN',
518
- "shipping_default" => '1'
519
- ),
520
- 49 => array (
521
- "provider_name" => 'Chronopost',
522
- "ts_slug" => 'chronopost',
523
- "provider_url" => 'https://www.chronopost.fr/fr/chrono_suivi_search?listeNumerosLT=%number%',
524
- "shipping_country" => 'FR',
525
- "shipping_default" => '1'
526
- ),
527
- 50 => array (
528
- "provider_name" => 'Colis Privé',
529
- "ts_slug" => 'colis-prive',
530
- "provider_url" => 'https://www.colisprive.fr/',
531
- "shipping_country" => 'FR',
532
- "shipping_default" => '1'
533
- ),
534
- 51 => array (
535
- "provider_name" => 'Correos Chile',
536
- "ts_slug" => 'correos-chile',
537
- "provider_url" => 'https://seguimientoenvio.correos.cl/home/index/%number%',
538
- "shipping_country" => 'CL',
539
- "shipping_default" => '1'
540
- ),
541
- 52 => array (
542
- "provider_name" => 'Correos Costa Rica',
543
- "ts_slug" => 'correos-costa-rica',
544
- "provider_url" => 'https://www.correos.go.cr/rastreo/consulta_envios/rastreo.aspx',
545
- "shipping_country" => 'CR',
546
- "shipping_default" => '1'
547
- ),
548
- 53 => array (
549
- "provider_name" => 'CouriersPlease',
550
- "ts_slug" => 'couriersplease',
551
- "provider_url" => 'https://www.couriersplease.com.au/tools-track/no/%number%',
552
- "shipping_country" => 'AU',
553
- "shipping_default" => '1'
554
- ),
555
- 54 => array (
556
- "provider_name" => 'Delhivery',
557
- "ts_slug" => 'delhivery',
558
- "provider_url" => 'https://www.delhivery.com/track/package/%number%',
559
- "shipping_country" => 'IN',
560
- "shipping_default" => '1'
561
- ),
562
- 55 => array (
563
- "provider_name" => 'Deutsche Post',
564
- "ts_slug" => 'deutsche-post',
565
- "provider_url" => 'https://www.deutschepost.de/sendung/simpleQuery.html',
566
- "shipping_country" => 'DE',
567
- "shipping_default" => '1'
568
- ),
569
- 56 => array (
570
- "provider_name" => 'Direct Link',
571
- "ts_slug" => 'direct-link',
572
- "provider_url" => 'https://tracking.directlink.com/?itemNumber=%number%',
573
- "shipping_country" => 'DE',
574
- "shipping_default" => '1'
575
- ),
576
- 57 => array (
577
- "provider_name" => 'EC Firstclass',
578
- "ts_slug" => 'ec-firstclass',
579
- "provider_url" => 'http://www.ec-firstclass.org/Details.aspx',
580
- "shipping_country" => 'US',
581
- "shipping_default" => '1'
582
- ),
583
- 58 => array (
584
- "provider_name" => 'Ecom Express',
585
- "ts_slug" => 'ecom-express',
586
- "provider_url" => 'https://ecomexpress.in/tracking/?tflag=0&awb_field=%number%',
587
- "shipping_country" => 'IN',
588
- "shipping_default" => '1'
589
- ),
590
- 59 => array (
591
- "provider_name" => 'EMS',
592
- "ts_slug" => 'ems',
593
- "provider_url" => 'https://www.ems.post/en/global-network/tracking',
594
- "shipping_country" => 'CN',
595
- "shipping_default" => '1'
596
- ),
597
- 60 => array (
598
- "provider_name" => 'Hong Kong Post',
599
- "ts_slug" => 'hong-kong-post',
600
- "provider_url" => 'https://www.hongkongpost.hk/en/mail_tracking/index.html',
601
- "shipping_country" => 'HK',
602
- "shipping_default" => '1'
603
- ),
604
- 61 => array (
605
- "provider_name" => 'JP Post',
606
- "ts_slug" => 'jp-post',
607
- "provider_url" => 'https://trackings.post.japanpost.jp/services/srv/sequenceNoSearch/?requestNo=%number%&count=100&sequenceNoSearch.x=94&sequenceNoSearch.y=10&locale=en',
608
- "shipping_country" => 'JP',
609
- "shipping_default" => '1'
610
- ),
611
- 62 => array (
612
- "provider_name" => 'La Poste',
613
- "ts_slug" => 'la-poste',
614
- "provider_url" => 'https://www.laposte.fr/particulier/outils/en/track-a-parcel',
615
- "shipping_country" => 'FR',
616
- "shipping_default" => '1'
617
- ),
618
- 63 => array (
619
- "provider_name" => 'Latvijas Pasts',
620
- "ts_slug" => 'latvijas-pasts',
621
- "provider_url" => 'https://www.pasts.lv/en/Category/Tracking_of_Postal_Items/',
622
- "shipping_country" => 'LV',
623
- "shipping_default" => '1'
624
- ),
625
- 64 => array (
626
- "provider_name" => 'Ninja Van',
627
- "ts_slug" => 'ninja-van',
628
- "provider_url" => 'https://www.ninjavan.co/en-sg/?tracking_id=%number%',
629
- "shipping_country" => 'SG',
630
- "shipping_default" => '1'
631
- ),
632
- 65 => array (
633
- "provider_name" => 'Singapore Post',
634
- "ts_slug" => 'singapore-post',
635
- "provider_url" => 'https://www.singpost.com/track-items',
636
- "shipping_country" => 'SG',
637
- "shipping_default" => '1'
638
- ),
639
- 66 => array (
640
- "provider_name" => 'StarTrack',
641
- "ts_slug" => 'startrack',
642
- "provider_url" => 'https://sttrackandtrace.startrack.com.au/%number%',
643
- "shipping_country" => 'AU',
644
- "shipping_default" => '1'
645
- ),
646
- 67 => array (
647
- "provider_name" => 'Ukrposhta',
648
- "ts_slug" => 'ukrposhta',
649
- "provider_url" => 'http://ukrposhta.ua/en/vidslidkuvati-forma-poshuku',
650
- "shipping_country" => 'UA',
651
- "shipping_default" => '1'
652
- ),
653
- 68 => array (
654
- "provider_name" => 'UPS i-parcel',
655
- "ts_slug" => 'ups-i-parcel',
656
- "provider_url" => 'https://tracking.i-parcel.com/?TrackingNumber=%number%',
657
- "shipping_country" => 'US',
658
- "shipping_default" => '1'
659
- ),
660
- 69 => array (
661
- "provider_name" => 'DTDC',
662
- "ts_slug" => 'dtdc',
663
- "provider_url" => 'http://www.dtdc.in/tracking/tracking_results.asp?Ttype=awb_no&strCnno=%number%&TrkType2=awb_no',
664
- "shipping_country" => 'IN',
665
- "shipping_default" => '1'
666
- ),
667
- 70 => array (
668
- "provider_name" => 'DHL Parcel',
669
- "ts_slug" => 'dhl-parcel',
670
- "provider_url" => 'https://www.logistics.dhl/us-en/home/tracking/tracking-ecommerce.html?tracking-id=%number%',
671
- "shipping_country" => 'US',
672
- "shipping_default" => '1'
673
- ),
674
- 71 => array (
675
- "provider_name" => 'An Post',
676
- "ts_slug" => 'an-post',
677
- "provider_url" => 'https://www.anpost.com/Post-Parcels/Track/History?item=%number%',
678
- "shipping_country" => 'IE',
679
- "shipping_default" => '1'
680
- ),
681
- 72 => array (
682
- "provider_name" => 'Mondial Relay',
683
- "ts_slug" => 'mondial-relay',
684
- "provider_url" => 'https://www.mondialrelay.fr/suivi-de-colis?numeroExpedition=%number%',
685
- "shipping_country" => 'FR',
686
- "shipping_default" => '1'
687
- ),
688
- 73 => array (
689
- "provider_name" => 'Swiss Post',
690
- "ts_slug" => 'swiss-post',
691
- "provider_url" => 'https://service.post.ch/EasyTrack/submitParcelData.do?p_language=en&formattedParcelCodes=%number%',
692
- "shipping_country" => 'CH',
693
- "shipping_default" => '1'
694
- ),
695
- 74 => array (
696
- "provider_name" => 'S.F Express',
697
- "ts_slug" => 's-f-express',
698
- "provider_url" => 'http://www.sf-express.com/cn/en/dynamic_function/waybill/#search/bill-number/%number%',
699
- "shipping_country" => 'CN',
700
- "shipping_default" => '1'
701
- ),
702
- 75 => array (
703
- "provider_name" => 'ePacket',
704
- "ts_slug" => 'epacket',
705
- "provider_url" => 'http://www.ems.com.cn/english.html',
706
- "shipping_country" => 'CN',
707
- "shipping_default" => '1'
708
- ),
709
- 76 => array (
710
- "provider_name" => 'DTDC Plus',
711
- "ts_slug" => 'dtdc-plus',
712
- "provider_url" => 'http://www.dtdc.in/tracking/tracking_results.asp?Ttype=awb_no&strCnno=&TrkType2=awb_no',
713
- "shipping_country" => 'IN',
714
- "shipping_default" => '1'
715
- ),
716
- 77 => array (
717
- "provider_name" => 'DHLParcel NL',
718
- "ts_slug" => 'dhlparcel-nl',
719
- "provider_url" => 'https://www.logistics.dhl/nl-en/home/tracking/tracking-parcel.html?tracking-id=%number%',
720
- "shipping_country" => 'NL',
721
- "shipping_default" => '1'
722
- ),
723
- 78 => array (
724
- "provider_name" => 'TNT',
725
- "ts_slug" => 'tnt',
726
- "provider_url" => 'https://www.tnt.com/?searchType=con&cons=%number%',
727
- "shipping_country" => 'US',
728
- "shipping_default" => '1'
729
- ),
730
- 79 => array (
731
- "provider_name" => 'Australia EMS',
732
- "ts_slug" => 'australia-ems',
733
- "provider_url" => 'https://auspost.com.au/mypost/track/#/details/%number%',
734
- "shipping_country" => 'AU',
735
- "shipping_default" => '1'
736
- ),
737
- 80 => array (
738
- "provider_name" => 'Bangladesh EMS',
739
- "ts_slug" => 'bangladesh-ems',
740
- "provider_url" => 'http://www.bangladeshpost.gov.bd/tracking.html',
741
- "shipping_country" => 'BD',
742
- "shipping_default" => '1'
743
- ),
744
- 81 => array (
745
- "provider_name" => 'Colombia Post',
746
- "ts_slug" => 'colombia-post',
747
- "provider_url" => 'http://www.4-72.com.co/',
748
- "shipping_country" => 'CO',
749
- "shipping_default" => '1'
750
- ),
751
- 82 => array (
752
- "provider_name" => 'Costa Rica Post',
753
- "ts_slug" => 'costa-rica-post',
754
- "provider_url" => 'https://www.correos.go.cr/rastreo/consulta_envios/',
755
- "shipping_country" => 'CR',
756
- "shipping_default" => '1'
757
- ),
758
- 83 => array (
759
- "provider_name" => 'Croatia Post',
760
- "ts_slug" => 'croatia-post',
761
- "provider_url" => 'https://www.posta.hr/tracktrace.aspx?broj=%number%',
762
- "shipping_country" => 'HR',
763
- "shipping_default" => '1'
764
- ),
765
- 84 => array (
766
- "provider_name" => 'Cyprus Post',
767
- "ts_slug" => 'cyprus-post',
768
- "provider_url" => 'https://www.cypruspost.post/en/track-n-trace-results?code=%number%',
769
- "shipping_country" => 'CY',
770
- "shipping_default" => '1'
771
- ),
772
- 85 => array (
773
- "provider_name" => 'Denmark Post',
774
- "ts_slug" => 'denmark-post',
775
- "provider_url" => 'https://www.postnord.dk/en/track-and-trace#dynamicloading=true&shipmentid=%number%',
776
- "shipping_country" => 'DK',
777
- "shipping_default" => '1'
778
- ),
779
- 86 => array (
780
- "provider_name" => 'Estonia Post',
781
- "ts_slug" => 'estonia-post',
782
- "provider_url" => 'https://www.omniva.ee/private/track_and_trace',
783
- "shipping_country" => 'EE',
784
- "shipping_default" => '1'
785
- ),
786
- 87 => array (
787
- "provider_name" => 'France EMS - Chronopost',
788
- "ts_slug" => 'france-ems-chronopost',
789
- "provider_url" => 'https://www.chronopost.fr/tracking-no-cms/suivi-page?listeNumerosLT=%number%',
790
- "shipping_country" => 'FR',
791
- "shipping_default" => '1'
792
- ),
793
- 88 => array (
794
- "provider_name" => 'Ivory Coast EMS',
795
- "ts_slug" => 'ivory-coast-ems',
796
- "provider_url" => 'https://laposte.ci.post/tracking-colis?identifiant=%number%',
797
- "shipping_country" => 'CI',
798
- "shipping_default" => '1'
799
- ),
800
- 89 => array (
801
- "provider_name" => 'Korea Post',
802
- "ts_slug" => 'korea-post',
803
- "provider_url" => 'https://service.epost.go.kr/trace.RetrieveEmsRigiTraceList.comm?ems_gubun=E&sid1=&POST_CODE=%number%',
804
- "shipping_country" => 'KR',
805
- "shipping_default" => '1'
806
- ),
807
- 90 => array (
808
- "provider_name" => 'Monaco EMS',
809
- "ts_slug" => 'monaco-ems',
810
- "provider_url" => 'http://www.lapostemonaco.mc',
811
- "shipping_country" => 'MC',
812
- "shipping_default" => '1'
813
- ),
814
- 91 => array (
815
- "provider_name" => 'Overseas Territory FR EMS',
816
- "ts_slug" => 'overseas-territory-fr-ems',
817
- "provider_url" => 'https://www.chronopost.fr/tracking-no-cms/suivi-page?listeNumerosLT=%number%',
818
- "shipping_country" => 'FR',
819
- "shipping_default" => '1'
820
- ),
821
- 92 => array (
822
- "provider_name" => 'Portugal Post - CTT',
823
- "ts_slug" => 'portugal-post-ctt',
824
- "provider_url" => 'http://www.ctt.pt/feapl_2/app/open/objectSearch/objectSearch.jspx',
825
- "shipping_country" => 'PT',
826
- "shipping_default" => '1'
827
- ),
828
- 93 => array (
829
- "provider_name" => 'South African Post Office',
830
- "ts_slug" => 'south-african-post-office',
831
- "provider_url" => 'http://www.southafricanpostoffice.post/index.html',
832
- "shipping_country" => 'ZA',
833
- "shipping_default" => '1'
834
- ),
835
- 94 => array (
836
- "provider_name" => 'Ukraine EMS',
837
- "ts_slug" => 'ukraine-ems',
838
- "provider_url" => 'http://dpsz.ua/en/track/ems',
839
- "shipping_country" => 'UA',
840
- "shipping_default" => '1'
841
- ),
842
- 95 => array (
843
- "provider_name" => 'TNT Italy',
844
- "ts_slug" => 'tnt-italy',
845
- "provider_url" => 'https://www.tnt.it/tracking/Tracking.do',
846
- "shipping_country" => 'IT',
847
- "shipping_default" => '1'
848
- ),
849
- 96 => array (
850
- "provider_name" => 'TNT France',
851
- "ts_slug" => 'tnt-france',
852
- "provider_url" => 'https://www.tnt.fr/public/suivi_colis/recherche/visubontransport.do',
853
- "shipping_country" => 'FR',
854
- "shipping_default" => '1'
855
- ),
856
- 97 => array (
857
- "provider_name" => 'TNT UK',
858
- "ts_slug" => 'tnt-uk',
859
- "provider_url" => 'https://www.tnt.com/?searchType=con&cons=%number%',
860
- "shipping_country" => 'GB',
861
- "shipping_default" => '1'
862
- ),
863
- 98 => array (
864
- "provider_name" => 'Aliexpress Standard Shipping',
865
- "ts_slug" => 'aliexpress-standard-shipping',
866
- "provider_url" => 'https://global.cainiao.com/detail.htm?mailNoList=LP00139185155139',
867
- "shipping_country" => 'Global',
868
- "shipping_default" => '1'
869
- ),
870
- 99 => array (
871
- "provider_name" => 'Speedex Courier',
872
- "ts_slug" => 'speedex-courier',
873
- "provider_url" => 'http://www.speedexcourier.com/',
874
- "shipping_country" => 'US',
875
- "shipping_default" => '1'
876
- ),
877
- 100 => array (
878
- "provider_name" => 'TNT Reference',
879
- "ts_slug" => 'tnt-reference',
880
- "provider_url" => 'https://www.tnt.com/express/en_gb/site/shipping-tools/tracking.html?searchType=con&cons=%number%',
881
- "shipping_country" => 'GB',
882
- "shipping_default" => '1'
883
- ),
884
- 101 => array (
885
- "provider_name" => 'TNT Click',
886
- "ts_slug" => 'tnt-click',
887
- "provider_url" => 'https://www.tnt-click.it/',
888
- "shipping_country" => 'IT',
889
- "shipping_default" => '1'
890
- ),
891
- 102 => array (
892
- "provider_name" => 'TNT Australia',
893
- "ts_slug" => 'tnt-australia',
894
- "provider_url" => 'https://www.tnt.com/express/en_au/site/shipping-tools/tracking.html?respCountry=au&respLang=en&cons=%number%',
895
- "shipping_country" => 'AU',
896
- "shipping_default" => '1'
897
- ),
898
- 103 => array (
899
- "provider_name" => 'DHL Freight',
900
- "ts_slug" => 'dhl-freight',
901
- "provider_url" => 'https://www.logistics.dhl/global-en/home/tracking/tracking-freight.html?tracking-id=%number%',
902
- "shipping_country" => 'Global',
903
- "shipping_default" => '1'
904
- ),
905
- 104 => array (
906
- "provider_name" => 'Sendle',
907
- "ts_slug" => 'sendle',
908
- "provider_url" => 'https://track.sendle.com/tracking?ref=%number%',
909
- "shipping_country" => 'AU',
910
- "shipping_default" => '1'
911
- ),
912
- 105 => array (
913
- "provider_name" => 'Deppon',
914
- "ts_slug" => 'deppon',
915
- "provider_url" => 'https://www.deppon.com/en/toTrack.action',
916
- "shipping_country" => 'CN',
917
- "shipping_default" => '1',
918
- ),
919
- 106 => array (
920
- "provider_name" => 'GLS Italy',
921
- "ts_slug" => 'gls-italy',
922
- "provider_url" => 'https://www.gls-italy.com/?option=com_gls&view=track_e_trace&mode=search&numero_spedizione=%number%&tipo_codice=nazionale',
923
- "shipping_country" => 'IT',
924
- "shipping_default" => '1',
925
- ),
926
- 107 => array (
927
- "provider_name" => 'Hermes World',
928
- "ts_slug" => 'hermes',
929
- "provider_url" => 'https://new.myhermes.co.uk/track.html#/parcel/%number%/details',
930
- "shipping_country" => 'Global',
931
- "shipping_default" => '1',
932
- ),
933
- );
934
-
935
- return $providers;
936
  }
 
937
  /*
938
  * database update
939
  */
940
  public function update_database_check(){
941
  if ( is_admin() ){
 
942
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'1.2', '>=') ){
943
  }
944
  else{
@@ -949,6 +954,7 @@ class WC_Advanced_Shipment_Tracking_Install {
949
  }
950
  update_option( 'wc_advanced_shipment_tracking', '1.2');
951
  }
 
952
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'1.3', '>=') ){
953
  }
954
  else{
@@ -959,6 +965,7 @@ class WC_Advanced_Shipment_Tracking_Install {
959
  }
960
  update_option( 'wc_advanced_shipment_tracking', '1.3');
961
  }
 
962
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'1.4', '>=') ){
963
  }
964
  else{
@@ -986,6 +993,7 @@ class WC_Advanced_Shipment_Tracking_Install {
986
  }
987
  update_option( 'wc_advanced_shipment_tracking', '1.4');
988
  }
 
989
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'1.5', '>=') ){
990
  }
991
  else{
@@ -998,6 +1006,7 @@ class WC_Advanced_Shipment_Tracking_Install {
998
  }
999
  update_option( 'wc_advanced_shipment_tracking', '1.5');
1000
  }
 
1001
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'2.4', '<') ){
1002
  global $wpdb;
1003
  $woo_shippment_table_name = $wpdb->prefix . 'woo_shippment_provider';
@@ -1034,6 +1043,7 @@ class WC_Advanced_Shipment_Tracking_Install {
1034
  }
1035
  update_option( 'wc_advanced_shipment_tracking', '2.4');
1036
  }
 
1037
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'2.5', '<') ){
1038
  global $wpdb;
1039
  $woo_shippment_table_name = $wpdb->prefix . 'woo_shippment_provider';
@@ -1047,6 +1057,7 @@ class WC_Advanced_Shipment_Tracking_Install {
1047
  $result = $wpdb->update( $woo_shippment_table_name, $data_array, $where_array );
1048
  update_option( 'wc_advanced_shipment_tracking', '2.5');
1049
  }
 
1050
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'2.6', '<') ){
1051
  global $wpdb;
1052
  $woo_shippment_table_name = $wpdb->prefix . 'woo_shippment_provider';
@@ -1086,7 +1097,8 @@ class WC_Advanced_Shipment_Tracking_Install {
1086
  "shipping_default" => $provider['shipping_default'],
1087
  ));
1088
  update_option( 'wc_advanced_shipment_tracking', '2.7');
1089
- }
 
1090
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'2.8', '<') ){
1091
  global $wpdb;
1092
  $woo_shippment_table_name = $wpdb->prefix . 'woo_shippment_provider';
@@ -1444,6 +1456,7 @@ class WC_Advanced_Shipment_Tracking_Install {
1444
 
1445
  update_option( 'wc_advanced_shipment_tracking', '2.9');
1446
  }
 
1447
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.0', '<') ){
1448
  global $wpdb;
1449
  $new_providers = array (
@@ -1469,14 +1482,17 @@ class WC_Advanced_Shipment_Tracking_Install {
1469
  }
1470
  update_option( 'wc_advanced_shipment_tracking', '3.0');
1471
  }
 
1472
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.1', '<') ){
1473
  $this->update_shipping_providers();
1474
  update_option( 'wc_advanced_shipment_tracking', '3.1');
1475
  }
 
1476
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.2', '<') ){
1477
  $this->update_shipping_providers();
1478
  update_option( 'wc_advanced_shipment_tracking', '3.2');
1479
  }
 
1480
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.3', '<') ){
1481
  global $wpdb;
1482
  $results = $wpdb->get_row( "SELECT * FROM {$this->table} LIMIT 1");
@@ -1489,6 +1505,9 @@ class WC_Advanced_Shipment_Tracking_Install {
1489
  }
1490
  }
1491
 
 
 
 
1492
  public function update_shipping_providers(){
1493
  global $wpdb;
1494
  $url = 'https://trackship.info/wp-json/WCAST/v1/Provider';
@@ -1568,28 +1587,111 @@ class WC_Advanced_Shipment_Tracking_Install {
1568
  }
1569
  }
1570
  }
 
1571
  /*
1572
  * Display admin notice on plugin install or update
1573
  */
1574
  public function admin_notice_after_update(){
1575
- if ( ! PAnD::is_admin_notice_active( 'disable-ts-notice-forever' ) ) {
1576
  return;
1577
  }
1578
- ?>
1579
- <div data-dismissible="disable-ts-notice-forever" class="updated notice notice-success is-dismissible">
1580
- <p>
1581
- <?php
1582
- printf(
1583
- //esc_html__( '%1$s %2$s.' ),
1584
- esc_html__( 'Thanks for using the Advanced Shipment Tracking! add TrackShip integration and automate your post shipping operations! %1$s', 'woo-advanced-shipment-tracking' ),
1585
- sprintf(
1586
- '<a href="%s" target="blank">%s</a>',
1587
- esc_url( 'https://trackship.info/' ),
1588
- esc_html__( 'Try trackship with 50 free trackers >>', 'woo-advanced-shipment-tracking' )
1589
- )
1590
- );
1591
- ?>
1592
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1593
  </div>
1594
  <?php
1595
  }
11
  * @var object Class Instance
12
  */
13
  private static $instance;
14
+
15
  /**
16
  * Initialize the main plugin function
17
  */
35
 
36
  $this->init();
37
  }
38
+
39
  /**
40
  * Get the class instance
41
  *
49
 
50
  return self::$instance;
51
  }
52
+
53
  /*
54
  * init from parent mail class
55
  */
57
  add_action( 'init', array( $this, 'update_database_check'));
58
  $wc_ast_api_key = get_option('wc_ast_api_key');
59
  if(!$wc_ast_api_key){
60
+ //require_once( 'vendor/persist-admin-notices-dismissal/persist-admin-notices-dismissal.php' );
61
+ //add_action( 'admin_init', array( 'PAnD', 'init' ) );
62
+ //add_action( 'admin_notices', array( $this, 'admin_notice_after_update' ) );
63
  }
64
  }
65
 
72
  *
73
  *
74
  */
75
+ public function woo_shippment_tracking_install(){
76
 
77
  global $wpdb;
78
 
134
  update_option( 'wc_advanced_shipment_tracking', '3.1');
135
  }
136
  }
137
+
138
  /**
139
  *
140
  * Return shipment provider list array
142
  */
143
  public function provider_list(){
144
  $providers = array(
145
+ 0 => array (
146
+ "provider_name" => 'Australia Post',
147
+ "ts_slug" => 'australia-post',
148
+ "provider_url" => 'http://auspost.com.au/track/track.html?id=%number%',
149
+ "shipping_country" => 'AU',
150
+ "shipping_default" => '1'
151
+ ),
152
+
153
+ 1 => array (
154
+ "provider_name" => 'Fastway AU',
155
+ "ts_slug" => 'fastway-au',
156
+ "provider_url" => 'http://www.fastway.com.au/courier-services/track-your-parcel?l=%number%',
157
+ "shipping_country" => 'AU',
158
+ "shipping_default" => '1'
159
+ ),
160
+
161
+ 2 => array (
162
+ "provider_name" => 'post.at',
163
+ "ts_slug" => 'post-at',
164
+ "provider_url" => 'http://www.post.at/sendungsverfolgung.php?pnum1=%number%',
165
+ "shipping_country" => 'AT',
166
+ "shipping_default" => '1'
167
+ ),
168
 
169
+ 3 => array (
170
+ "provider_name" => 'DHL at',
171
+ "ts_slug" => 'dhl-at',
172
+ "provider_url" => 'http://www.dhl.at/content/at/de/express/sendungsverfolgung.html?brand=DHL&AWB=%number%',
173
+ "shipping_country" => 'AT',
174
+ "shipping_default" => '1'
175
+ ),
 
 
 
 
 
 
 
 
176
 
177
+ 4 => array (
178
+ "provider_name" => 'DPD.at',
179
+ "ts_slug" => 'dpd-at',
180
+ "provider_url" => 'https://tracking.dpd.de/parcelstatus?locale=de_AT&query=%number%',
181
+ "shipping_country" => 'AT',
182
+ "shipping_default" => '1'
183
+ ),
184
 
185
+ 5 => array (
186
+ "provider_name" => 'Brazil Correios',
187
+ "ts_slug" => 'brazil-correios',
188
+ "provider_url" => 'http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_TIPO=001&P_COD_UNI=%number%',
189
+ "shipping_country" => 'BR',
190
+ "shipping_default" => '1'
191
+ ),
192
 
193
+ 6 => array (
194
+ "provider_name" => 'Belgium Post',
195
+ "ts_slug" => 'belgium-post',
196
+ "provider_url" => 'https://track.bpost.be/btr/web/#/search?itemCode=%number%',
197
+ "shipping_country" => 'BE',
198
+ "shipping_default" => '1'
199
+ ),
200
 
201
+ 7 => array (
202
+ "provider_name" => 'Canada Post',
203
+ "ts_slug" => 'canada-post',
204
+ "provider_url" => 'http://www.canadapost.ca/cpotools/apps/track/personal/findByTrackNumber?trackingNumber=%number%',
205
+ "shipping_country" => 'CA',
206
+ "shipping_default" => '1'
207
+ ),
208
+
209
+ 8 => array (
210
+ "provider_name" => 'DHL cz',
211
+ "ts_slug" => 'dhl-cz',
212
+ "provider_url" => 'http://www.dhl.cz/cs/express/sledovani_zasilek.html?AWB=%number%',
213
+ "shipping_country" => 'CZ',
214
+ "shipping_default" => '1'
215
+ ),
216
+
217
+ 9 => array (
218
+ "provider_name" => 'DPD.cz',
219
+ "ts_slug" => 'dpd-cz',
220
+ "provider_url" => 'https://tracking.dpd.de/parcelstatus?locale=cs_CZ&query=%number%',
221
+ "shipping_country" => 'CZ',
222
+ "shipping_default" => '1'
223
+ ),
224
 
225
+ 10 => array (
226
+ "provider_name" => 'Colissimo',
227
+ "ts_slug" => 'colissimo',
228
+ "provider_url" => 'https://www.laposte.fr/outils/suivre-vos-envois?code=%number%',
229
+ "shipping_country" => 'FR',
230
+ "shipping_default" => '1'
231
+ ),
232
 
233
+ 11 => array (
234
+ "provider_name" => 'DHL Intraship (DE)',
235
+ "ts_slug" => 'dhl-intraship-de',
236
+ "provider_url" => 'http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=%number%&rfn=&extendedSearch=true',
237
+ "shipping_country" => 'DE',
238
+ "shipping_default" => '1'
239
+ ),
240
 
241
+ 12 => array (
242
+ "provider_name" => 'Hermes Germany',
243
+ "ts_slug" => 'hermes-de',
244
+ "provider_url" => 'https://www.myhermes.de/empfangen/sendungsverfolgung/?suche=%number%',
245
+ "shipping_country" => 'DE',
246
+ "shipping_default" => '1'
247
+ ),
248
 
249
+ 13 => array (
250
+ "provider_name" => 'Deutsche Post DHL',
251
+ "ts_slug" => 'deutsche-post-dhl',
252
+ "provider_url" => 'http://nolp.dhl.de/nextt-online-public/set_identcodes.do?lang=de&idc=%number%',
253
+ "shipping_country" => 'DE',
254
+ "shipping_default" => '1'
255
+ ),
256
 
257
+ 14 => array (
258
+ "provider_name" => 'UPS Germany',
259
+ "ts_slug" => 'ups-germany',
260
+ "provider_url" => 'http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=de_DE&InquiryNumber1=%number%',
261
+ "shipping_country" => 'DE',
262
+ "shipping_default" => '1'
263
+ ),
264
 
265
+ 15 => array (
266
+ "provider_name" => 'DPD.de',
267
+ "ts_slug" => 'dpd-de',
268
+ "provider_url" => 'https://tracking.dpd.de/parcelstatus?query=%number%&locale=en_DE',
269
+ "shipping_country" => 'DE',
270
+ "shipping_default" => '1'
271
+ ),
272
 
273
+ 16 => array (
274
+ "provider_name" => 'DPD.ie',
275
+ "ts_slug" => 'dpd-ie',
276
+ "provider_url" => 'http://www2.dpd.ie/Services/QuickTrack/tabid/222/ConsignmentID/%number%/Default.aspx',
277
+ "shipping_country" => 'IE',
278
+ "shipping_default" => '1'
279
+ ),
280
 
281
+ 17 => array (
282
+ "provider_name" => 'DHL Express',
283
+ "ts_slug" => 'dhl-express',
284
+ "provider_url" => 'http://www.dhl.it/it/express/ricerca.html?AWB=%number%&brand=DHL',
285
+ "shipping_country" => 'Global',
286
+ "shipping_default" => '1'
287
+ ),
288
 
289
+ 18 => array (
290
+ "provider_name" => 'PostNL',
291
+ "ts_slug" => 'postnl',
292
+ "provider_url" => 'https://mijnpakket.postnl.nl/Claim?Barcode=%number%&Postalcode=%2$s&Foreign=False&ShowAnonymousLayover=False&CustomerServiceClaim=False',
293
+ "shipping_country" => 'NL',
294
+ "shipping_default" => '1'
295
+ ),
296
 
297
+ 19 => array (
298
+ "provider_name" => 'DPD.NL',
299
+ "ts_slug" => 'dpd-nl',
300
+ "provider_url" => 'http://track.dpdnl.nl/?parcelnumber=%number%',
301
+ "shipping_country" => 'NL',
302
+ "shipping_default" => '1'
303
+ ),
304
 
305
+ 20 => array (
306
+ "provider_name" => 'Fastway NZ',
307
+ "ts_slug" => 'fastway-nz',
308
+ "provider_url" => 'https://www.fastway.co.nz/tools/track?l=%number%',
309
+ "shipping_country" => 'NZ',
310
+ "shipping_default" => '1'
311
+ ),
312
 
313
+ 21 => array (
314
+ "provider_name" => 'DPD Romania',
315
+ "ts_slug" => 'dpd-romania',
316
+ "provider_url" => 'https://tracking.dpd.de/parcelstatus?query=%number%&locale=ro_RO',
317
+ "shipping_country" => 'RO',
318
+ "shipping_default" => '1'
319
+ ),
320
 
321
+ 22 => array (
322
+ "provider_name" => 'PostNord Sverige AB',
323
+ "ts_slug" => 'postnord-sverige-ab',
324
+ "provider_url" => 'http://www.postnord.se/sv/verktyg/sok/Sidor/spara-brev-paket-och-pall.aspx?search=%number%',
325
+ "shipping_country" => 'SE',
326
+ "shipping_default" => '1'
327
+ ),
328
 
329
+ 23 => array (
330
+ "provider_name" => 'DHL se',
331
+ "ts_slug" => 'dhl-se',
332
+ "provider_url" => 'http://www.dhl.se/content/se/sv/express/godssoekning.shtml?brand=DHL&AWB=%number%',
333
+ "shipping_country" => 'SE',
334
+ "shipping_default" => '1'
335
+ ),
336
 
337
+ 24 => array (
338
+ "provider_name" => 'UPS.se',
339
+ "ts_slug" => 'ups-se',
340
+ "provider_url" => 'http://wwwapps.ups.com/WebTracking/track?track=yes&loc=sv_SE&trackNums=%number%',
341
+ "shipping_country" => 'SE',
342
+ "shipping_default" => '1'
343
+ ),
344
 
345
+ 25 => array (
346
+ "provider_name" => 'DHL uk',
347
+ "ts_slug" => 'dhl-uk',
348
+ "provider_url" => 'http://www.dhl.com/content/g0/en/express/tracking.shtml?brand=DHL&AWB=%number%',
349
+ "shipping_country" => 'GB',
350
+ "shipping_default" => '1'
351
+ ),
352
 
353
+ 26 => array (
354
+ "provider_name" => 'DPD.co.uk',
355
+ "ts_slug" => 'dpd-co-uk',
356
+ "provider_url" => 'http://www.dpd.co.uk/tracking/trackingSearch.do?search.searchType=0&search.parcelNumber=%number%',
357
+ "shipping_country" => 'GB',
358
+ "shipping_default" => '1'
359
+ ),
360
 
361
+ 27 => array (
362
+ "provider_name" => 'InterLink',
363
+ "ts_slug" => 'interlink',
364
+ "provider_url" => 'http://www.interlinkexpress.com/apps/tracking/?reference=%number%&postcode=%2$s#results',
365
+ "shipping_country" => 'GB',
366
+ "shipping_default" => '1'
367
+ ),
368
 
369
+ 28 => array (
370
+ "provider_name" => 'ParcelForce',
371
+ "ts_slug" => 'parcelforce',
372
+ "provider_url" => 'http://www.parcelforce.com/portal/pw/track?trackNumber=%number%',
373
+ "shipping_country" => 'GB',
374
+ "shipping_default" => '1'
375
+ ),
376
 
377
+ 29 => array (
378
+ "provider_name" => 'Royal Mail',
379
+ "ts_slug" => 'royal-mail',
380
+ "provider_url" => 'https://www.royalmail.com/track-your-item/?trackNumber=%number%',
381
+ "shipping_country" => 'GB',
382
+ "shipping_default" => '1'
383
+ ),
384
 
385
+ 30 => array (
386
+ "provider_name" => 'Fedex',
387
+ "ts_slug" => 'fedex',
388
+ "provider_url" => 'http://www.fedex.com/Tracking?action=track&tracknumbers=%number%',
389
+ "shipping_country" => 'US',
390
+ "shipping_default" => '1'
391
+ ),
392
 
393
+ 31 => array (
394
+ "provider_name" => 'FedEx Sameday',
395
+ "ts_slug" => 'fedex-sameday',
396
+ "provider_url" => 'https://www.fedexsameday.com/fdx_dotracking_ua.aspx?tracknum=%number%',
397
+ "shipping_country" => 'US',
398
+ "shipping_default" => '1'
399
+ ),
400
 
401
+ 32 => array (
402
+ "provider_name" => 'OnTrac',
403
+ "ts_slug" => 'ontrac',
404
+ "provider_url" => 'http://www.ontrac.com/trackingdetail.asp?tracking=%number%',
405
+ "shipping_country" => 'US',
406
+ "shipping_default" => '1'
407
+ ),
408
 
409
+ 33 => array (
410
+ "provider_name" => 'UPS',
411
+ "ts_slug" => 'ups',
412
+ "provider_url" => 'http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=%number%',
413
+ "shipping_country" => 'US',
414
+ "shipping_default" => '1'
415
+ ),
416
 
417
+ 34 => array (
418
+ "provider_name" => 'USPS',
419
+ "ts_slug" => 'usps',
420
+ "provider_url" => 'https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=%number%',
421
+ "shipping_country" => 'US',
422
+ "shipping_default" => '1'
423
+ ),
424
 
425
+ 35 => array (
426
+ "provider_name" => 'DHL US',
427
+ "ts_slug" => 'dhl-us',
428
+ "provider_url" => 'https://www.logistics.dhl/us-en/home/tracking/tracking-ecommerce.html?tracking-id=%number%',
429
+ "shipping_country" => 'US',
430
+ "shipping_default" => '1'
431
+ ),
432
 
433
+ 36 => array (
434
+ "provider_name" => 'LaserShip',
435
+ "ts_slug" => 'lasership',
436
+ "provider_url" => 'https://www.lasership.com/track.php?track_number_input=%number%',
437
+ "shipping_country" => 'US',
438
+ "shipping_default" => '1'
439
+ ),
440
+ 37 => array (
441
+ "provider_name" => 'GSO',
442
+ "ts_slug" => 'gso',
443
+ "provider_url" => 'https://www.gso.com/tracking',
444
+ "shipping_country" => 'US',
445
+ "shipping_default" => '1'
446
+ ),
447
+ 38 => array (
448
+ "provider_name" => 'ABF',
449
+ "ts_slug" => 'abf',
450
+ "provider_url" => 'https://arcb.com/tools/tracking.html',
451
+ "shipping_country" => 'IN',
452
+ "shipping_default" => '1'
453
+ ),
454
+ 39 => array (
455
+ "provider_name" => 'Associated Global Systems',
456
+ "ts_slug" => 'associated-global-systems',
457
+ "provider_url" => 'https://tracking.agsystems.com/',
458
+ "shipping_country" => 'US',
459
+ "shipping_default" => '1'
460
+ ),
461
+ 40 => array (
462
+ "provider_name" => 'APC',
463
+ "ts_slug" => 'apc',
464
+ "provider_url" => 'https://us.mytracking.net/APC/track/TrackDetails.aspx?t=%number%',
465
+ "shipping_country" => 'US',
466
+ "shipping_default" => '1'
467
+ ),
468
+ 41 => array (
469
+ "provider_name" => 'ArrowXL',
470
+ "ts_slug" => 'arrowxl',
471
+ "provider_url" => 'https://askaxl.co.uk/tracking?upi=%number%',
472
+ "shipping_country" => 'GB',
473
+ "shipping_default" => '1'
474
+ ),
475
+ 42 => array (
476
+ "provider_name" => 'Dai Post',
477
+ "ts_slug" => 'dai-post',
478
+ "provider_url" => 'https://daiglobaltrack.com/tracking.aspx?custtracknbr=%number%',
479
+ "shipping_country" => 'AU',
480
+ "shipping_default" => '1'
481
+ ),
482
+ 43 => array (
483
+ "provider_name" => 'Deliv',
484
+ "ts_slug" => 'deliv',
485
+ "provider_url" => 'https://tracking.deliv.co/',
486
+ "shipping_country" => 'US',
487
+ "shipping_default" => '1'
488
+ ),
489
+ 44 => array (
490
+ "provider_name" => 'India Post',
491
+ "ts_slug" => 'india-post',
492
+ "provider_url" => 'https://www.indiapost.gov.in/_layouts/15/dop.portal.tracking/trackconsignment.aspx',
493
+ "shipping_country" => 'IN',
494
+ "shipping_default" => '1'
495
+ ),
496
+ 45 => array (
497
+ "provider_name" => 'Israel Post',
498
+ "ts_slug" => 'israel-post',
499
+ "provider_url" => 'https://mypost.israelpost.co.il/itemtrace?itemcode=%number%',
500
+ "shipping_country" => 'IL',
501
+ "shipping_default" => '1'
502
+ ),
503
+ 46 => array (
504
+ "provider_name" => 'Boxberry',
505
+ "ts_slug" => 'boxberry',
506
+ "provider_url" => 'https://boxberry.ru/tracking/',
507
+ "shipping_country" => 'RU',
508
+ "shipping_default" => '1'
509
+ ),
510
+ 47 => array (
511
+ "provider_name" => 'Canpar',
512
+ "ts_slug" => 'canpar',
513
+ "provider_url" => 'https://www.canpar.ca/en/track/tracking.jsp',
514
+ "shipping_country" => 'CA',
515
+ "shipping_default" => '1'
516
+ ),
517
+ 48 => array (
518
+ "provider_name" => 'China Post',
519
+ "ts_slug" => 'china-post',
520
+ "provider_url" => 'http://parcelsapp.com/en/tracking/%number%',
521
+ "shipping_country" => 'CN',
522
+ "shipping_default" => '1'
523
+ ),
524
+ 49 => array (
525
+ "provider_name" => 'Chronopost',
526
+ "ts_slug" => 'chronopost',
527
+ "provider_url" => 'https://www.chronopost.fr/fr/chrono_suivi_search?listeNumerosLT=%number%',
528
+ "shipping_country" => 'FR',
529
+ "shipping_default" => '1'
530
+ ),
531
+ 50 => array (
532
+ "provider_name" => 'Colis Privé',
533
+ "ts_slug" => 'colis-prive',
534
+ "provider_url" => 'https://www.colisprive.fr/',
535
+ "shipping_country" => 'FR',
536
+ "shipping_default" => '1'
537
+ ),
538
+ 51 => array (
539
+ "provider_name" => 'Correos Chile',
540
+ "ts_slug" => 'correos-chile',
541
+ "provider_url" => 'https://seguimientoenvio.correos.cl/home/index/%number%',
542
+ "shipping_country" => 'CL',
543
+ "shipping_default" => '1'
544
+ ),
545
+ 52 => array (
546
+ "provider_name" => 'Correos Costa Rica',
547
+ "ts_slug" => 'correos-costa-rica',
548
+ "provider_url" => 'https://www.correos.go.cr/rastreo/consulta_envios/rastreo.aspx',
549
+ "shipping_country" => 'CR',
550
+ "shipping_default" => '1'
551
+ ),
552
+ 53 => array (
553
+ "provider_name" => 'CouriersPlease',
554
+ "ts_slug" => 'couriersplease',
555
+ "provider_url" => 'https://www.couriersplease.com.au/tools-track/no/%number%',
556
+ "shipping_country" => 'AU',
557
+ "shipping_default" => '1'
558
+ ),
559
+ 54 => array (
560
+ "provider_name" => 'Delhivery',
561
+ "ts_slug" => 'delhivery',
562
+ "provider_url" => 'https://www.delhivery.com/track/package/%number%',
563
+ "shipping_country" => 'IN',
564
+ "shipping_default" => '1'
565
+ ),
566
+ 55 => array (
567
+ "provider_name" => 'Deutsche Post',
568
+ "ts_slug" => 'deutsche-post',
569
+ "provider_url" => 'https://www.deutschepost.de/sendung/simpleQuery.html',
570
+ "shipping_country" => 'DE',
571
+ "shipping_default" => '1'
572
+ ),
573
+ 56 => array (
574
+ "provider_name" => 'Direct Link',
575
+ "ts_slug" => 'direct-link',
576
+ "provider_url" => 'https://tracking.directlink.com/?itemNumber=%number%',
577
+ "shipping_country" => 'DE',
578
+ "shipping_default" => '1'
579
+ ),
580
+ 57 => array (
581
+ "provider_name" => 'EC Firstclass',
582
+ "ts_slug" => 'ec-firstclass',
583
+ "provider_url" => 'http://www.ec-firstclass.org/Details.aspx',
584
+ "shipping_country" => 'US',
585
+ "shipping_default" => '1'
586
+ ),
587
+ 58 => array (
588
+ "provider_name" => 'Ecom Express',
589
+ "ts_slug" => 'ecom-express',
590
+ "provider_url" => 'https://ecomexpress.in/tracking/?tflag=0&awb_field=%number%',
591
+ "shipping_country" => 'IN',
592
+ "shipping_default" => '1'
593
+ ),
594
+ 59 => array (
595
+ "provider_name" => 'EMS',
596
+ "ts_slug" => 'ems',
597
+ "provider_url" => 'https://www.ems.post/en/global-network/tracking',
598
+ "shipping_country" => 'CN',
599
+ "shipping_default" => '1'
600
+ ),
601
+ 60 => array (
602
+ "provider_name" => 'Hong Kong Post',
603
+ "ts_slug" => 'hong-kong-post',
604
+ "provider_url" => 'https://www.hongkongpost.hk/en/mail_tracking/index.html',
605
+ "shipping_country" => 'HK',
606
+ "shipping_default" => '1'
607
+ ),
608
+ 61 => array (
609
+ "provider_name" => 'JP Post',
610
+ "ts_slug" => 'jp-post',
611
+ "provider_url" => 'https://trackings.post.japanpost.jp/services/srv/sequenceNoSearch/?requestNo=%number%&count=100&sequenceNoSearch.x=94&sequenceNoSearch.y=10&locale=en',
612
+ "shipping_country" => 'JP',
613
+ "shipping_default" => '1'
614
+ ),
615
+ 62 => array (
616
+ "provider_name" => 'La Poste',
617
+ "ts_slug" => 'la-poste',
618
+ "provider_url" => 'https://www.laposte.fr/particulier/outils/en/track-a-parcel',
619
+ "shipping_country" => 'FR',
620
+ "shipping_default" => '1'
621
+ ),
622
+ 63 => array (
623
+ "provider_name" => 'Latvijas Pasts',
624
+ "ts_slug" => 'latvijas-pasts',
625
+ "provider_url" => 'https://www.pasts.lv/en/Category/Tracking_of_Postal_Items/',
626
+ "shipping_country" => 'LV',
627
+ "shipping_default" => '1'
628
+ ),
629
+ 64 => array (
630
+ "provider_name" => 'Ninja Van',
631
+ "ts_slug" => 'ninja-van',
632
+ "provider_url" => 'https://www.ninjavan.co/en-sg/?tracking_id=%number%',
633
+ "shipping_country" => 'SG',
634
+ "shipping_default" => '1'
635
+ ),
636
+ 65 => array (
637
+ "provider_name" => 'Singapore Post',
638
+ "ts_slug" => 'singapore-post',
639
+ "provider_url" => 'https://www.singpost.com/track-items',
640
+ "shipping_country" => 'SG',
641
+ "shipping_default" => '1'
642
+ ),
643
+ 66 => array (
644
+ "provider_name" => 'StarTrack',
645
+ "ts_slug" => 'startrack',
646
+ "provider_url" => 'https://sttrackandtrace.startrack.com.au/%number%',
647
+ "shipping_country" => 'AU',
648
+ "shipping_default" => '1'
649
+ ),
650
+ 67 => array (
651
+ "provider_name" => 'Ukrposhta',
652
+ "ts_slug" => 'ukrposhta',
653
+ "provider_url" => 'http://ukrposhta.ua/en/vidslidkuvati-forma-poshuku',
654
+ "shipping_country" => 'UA',
655
+ "shipping_default" => '1'
656
+ ),
657
+ 68 => array (
658
+ "provider_name" => 'UPS i-parcel',
659
+ "ts_slug" => 'ups-i-parcel',
660
+ "provider_url" => 'https://tracking.i-parcel.com/?TrackingNumber=%number%',
661
+ "shipping_country" => 'US',
662
+ "shipping_default" => '1'
663
+ ),
664
+ 69 => array (
665
+ "provider_name" => 'DTDC',
666
+ "ts_slug" => 'dtdc',
667
+ "provider_url" => 'http://www.dtdc.in/tracking/tracking_results.asp?Ttype=awb_no&strCnno=%number%&TrkType2=awb_no',
668
+ "shipping_country" => 'IN',
669
+ "shipping_default" => '1'
670
+ ),
671
+ 70 => array (
672
+ "provider_name" => 'DHL Parcel',
673
+ "ts_slug" => 'dhl-parcel',
674
+ "provider_url" => 'https://www.logistics.dhl/us-en/home/tracking/tracking-ecommerce.html?tracking-id=%number%',
675
+ "shipping_country" => 'US',
676
+ "shipping_default" => '1'
677
+ ),
678
+ 71 => array (
679
+ "provider_name" => 'An Post',
680
+ "ts_slug" => 'an-post',
681
+ "provider_url" => 'https://www.anpost.com/Post-Parcels/Track/History?item=%number%',
682
+ "shipping_country" => 'IE',
683
+ "shipping_default" => '1'
684
+ ),
685
+ 72 => array (
686
+ "provider_name" => 'Mondial Relay',
687
+ "ts_slug" => 'mondial-relay',
688
+ "provider_url" => 'https://www.mondialrelay.fr/suivi-de-colis?numeroExpedition=%number%',
689
+ "shipping_country" => 'FR',
690
+ "shipping_default" => '1'
691
+ ),
692
+ 73 => array (
693
+ "provider_name" => 'Swiss Post',
694
+ "ts_slug" => 'swiss-post',
695
+ "provider_url" => 'https://service.post.ch/EasyTrack/submitParcelData.do?p_language=en&formattedParcelCodes=%number%',
696
+ "shipping_country" => 'CH',
697
+ "shipping_default" => '1'
698
+ ),
699
+ 74 => array (
700
+ "provider_name" => 'S.F Express',
701
+ "ts_slug" => 's-f-express',
702
+ "provider_url" => 'http://www.sf-express.com/cn/en/dynamic_function/waybill/#search/bill-number/%number%',
703
+ "shipping_country" => 'CN',
704
+ "shipping_default" => '1'
705
+ ),
706
+ 75 => array (
707
+ "provider_name" => 'ePacket',
708
+ "ts_slug" => 'epacket',
709
+ "provider_url" => 'http://www.ems.com.cn/english.html',
710
+ "shipping_country" => 'CN',
711
+ "shipping_default" => '1'
712
+ ),
713
+ 76 => array (
714
+ "provider_name" => 'DTDC Plus',
715
+ "ts_slug" => 'dtdc-plus',
716
+ "provider_url" => 'http://www.dtdc.in/tracking/tracking_results.asp?Ttype=awb_no&strCnno=&TrkType2=awb_no',
717
+ "shipping_country" => 'IN',
718
+ "shipping_default" => '1'
719
+ ),
720
+ 77 => array (
721
+ "provider_name" => 'DHLParcel NL',
722
+ "ts_slug" => 'dhlparcel-nl',
723
+ "provider_url" => 'https://www.logistics.dhl/nl-en/home/tracking/tracking-parcel.html?tracking-id=%number%',
724
+ "shipping_country" => 'NL',
725
+ "shipping_default" => '1'
726
+ ),
727
+ 78 => array (
728
+ "provider_name" => 'TNT',
729
+ "ts_slug" => 'tnt',
730
+ "provider_url" => 'https://www.tnt.com/?searchType=con&cons=%number%',
731
+ "shipping_country" => 'US',
732
+ "shipping_default" => '1'
733
+ ),
734
+ 79 => array (
735
+ "provider_name" => 'Australia EMS',
736
+ "ts_slug" => 'australia-ems',
737
+ "provider_url" => 'https://auspost.com.au/mypost/track/#/details/%number%',
738
+ "shipping_country" => 'AU',
739
+ "shipping_default" => '1'
740
+ ),
741
+ 80 => array (
742
+ "provider_name" => 'Bangladesh EMS',
743
+ "ts_slug" => 'bangladesh-ems',
744
+ "provider_url" => 'http://www.bangladeshpost.gov.bd/tracking.html',
745
+ "shipping_country" => 'BD',
746
+ "shipping_default" => '1'
747
+ ),
748
+ 81 => array (
749
+ "provider_name" => 'Colombia Post',
750
+ "ts_slug" => 'colombia-post',
751
+ "provider_url" => 'http://www.4-72.com.co/',
752
+ "shipping_country" => 'CO',
753
+ "shipping_default" => '1'
754
+ ),
755
+ 82 => array (
756
+ "provider_name" => 'Costa Rica Post',
757
+ "ts_slug" => 'costa-rica-post',
758
+ "provider_url" => 'https://www.correos.go.cr/rastreo/consulta_envios/',
759
+ "shipping_country" => 'CR',
760
+ "shipping_default" => '1'
761
+ ),
762
+ 83 => array (
763
+ "provider_name" => 'Croatia Post',
764
+ "ts_slug" => 'croatia-post',
765
+ "provider_url" => 'https://www.posta.hr/tracktrace.aspx?broj=%number%',
766
+ "shipping_country" => 'HR',
767
+ "shipping_default" => '1'
768
+ ),
769
+ 84 => array (
770
+ "provider_name" => 'Cyprus Post',
771
+ "ts_slug" => 'cyprus-post',
772
+ "provider_url" => 'https://www.cypruspost.post/en/track-n-trace-results?code=%number%',
773
+ "shipping_country" => 'CY',
774
+ "shipping_default" => '1'
775
+ ),
776
+ 85 => array (
777
+ "provider_name" => 'Denmark Post',
778
+ "ts_slug" => 'denmark-post',
779
+ "provider_url" => 'https://www.postnord.dk/en/track-and-trace#dynamicloading=true&shipmentid=%number%',
780
+ "shipping_country" => 'DK',
781
+ "shipping_default" => '1'
782
+ ),
783
+ 86 => array (
784
+ "provider_name" => 'Estonia Post',
785
+ "ts_slug" => 'estonia-post',
786
+ "provider_url" => 'https://www.omniva.ee/private/track_and_trace',
787
+ "shipping_country" => 'EE',
788
+ "shipping_default" => '1'
789
+ ),
790
+ 87 => array (
791
+ "provider_name" => 'France EMS - Chronopost',
792
+ "ts_slug" => 'france-ems-chronopost',
793
+ "provider_url" => 'https://www.chronopost.fr/tracking-no-cms/suivi-page?listeNumerosLT=%number%',
794
+ "shipping_country" => 'FR',
795
+ "shipping_default" => '1'
796
+ ),
797
+ 88 => array (
798
+ "provider_name" => 'Ivory Coast EMS',
799
+ "ts_slug" => 'ivory-coast-ems',
800
+ "provider_url" => 'https://laposte.ci.post/tracking-colis?identifiant=%number%',
801
+ "shipping_country" => 'CI',
802
+ "shipping_default" => '1'
803
+ ),
804
+ 89 => array (
805
+ "provider_name" => 'Korea Post',
806
+ "ts_slug" => 'korea-post',
807
+ "provider_url" => 'https://service.epost.go.kr/trace.RetrieveEmsRigiTraceList.comm?ems_gubun=E&sid1=&POST_CODE=%number%',
808
+ "shipping_country" => 'KR',
809
+ "shipping_default" => '1'
810
+ ),
811
+ 90 => array (
812
+ "provider_name" => 'Monaco EMS',
813
+ "ts_slug" => 'monaco-ems',
814
+ "provider_url" => 'http://www.lapostemonaco.mc',
815
+ "shipping_country" => 'MC',
816
+ "shipping_default" => '1'
817
+ ),
818
+ 91 => array (
819
+ "provider_name" => 'Overseas Territory FR EMS',
820
+ "ts_slug" => 'overseas-territory-fr-ems',
821
+ "provider_url" => 'https://www.chronopost.fr/tracking-no-cms/suivi-page?listeNumerosLT=%number%',
822
+ "shipping_country" => 'FR',
823
+ "shipping_default" => '1'
824
+ ),
825
+ 92 => array (
826
+ "provider_name" => 'Portugal Post - CTT',
827
+ "ts_slug" => 'portugal-post-ctt',
828
+ "provider_url" => 'http://www.ctt.pt/feapl_2/app/open/objectSearch/objectSearch.jspx',
829
+ "shipping_country" => 'PT',
830
+ "shipping_default" => '1'
831
+ ),
832
+ 93 => array (
833
+ "provider_name" => 'South African Post Office',
834
+ "ts_slug" => 'south-african-post-office',
835
+ "provider_url" => 'http://www.southafricanpostoffice.post/index.html',
836
+ "shipping_country" => 'ZA',
837
+ "shipping_default" => '1'
838
+ ),
839
+ 94 => array (
840
+ "provider_name" => 'Ukraine EMS',
841
+ "ts_slug" => 'ukraine-ems',
842
+ "provider_url" => 'http://dpsz.ua/en/track/ems',
843
+ "shipping_country" => 'UA',
844
+ "shipping_default" => '1'
845
+ ),
846
+ 95 => array (
847
+ "provider_name" => 'TNT Italy',
848
+ "ts_slug" => 'tnt-italy',
849
+ "provider_url" => 'https://www.tnt.it/tracking/Tracking.do',
850
+ "shipping_country" => 'IT',
851
+ "shipping_default" => '1'
852
+ ),
853
+ 96 => array (
854
+ "provider_name" => 'TNT France',
855
+ "ts_slug" => 'tnt-france',
856
+ "provider_url" => 'https://www.tnt.fr/public/suivi_colis/recherche/visubontransport.do',
857
+ "shipping_country" => 'FR',
858
+ "shipping_default" => '1'
859
+ ),
860
+ 97 => array (
861
+ "provider_name" => 'TNT UK',
862
+ "ts_slug" => 'tnt-uk',
863
+ "provider_url" => 'https://www.tnt.com/?searchType=con&cons=%number%',
864
+ "shipping_country" => 'GB',
865
+ "shipping_default" => '1'
866
+ ),
867
+ 98 => array (
868
+ "provider_name" => 'Aliexpress Standard Shipping',
869
+ "ts_slug" => 'aliexpress-standard-shipping',
870
+ "provider_url" => 'https://global.cainiao.com/detail.htm?mailNoList=LP00139185155139',
871
+ "shipping_country" => 'Global',
872
+ "shipping_default" => '1'
873
+ ),
874
+ 99 => array (
875
+ "provider_name" => 'Speedex Courier',
876
+ "ts_slug" => 'speedex-courier',
877
+ "provider_url" => 'http://www.speedexcourier.com/',
878
+ "shipping_country" => 'US',
879
+ "shipping_default" => '1'
880
+ ),
881
+ 100 => array (
882
+ "provider_name" => 'TNT Reference',
883
+ "ts_slug" => 'tnt-reference',
884
+ "provider_url" => 'https://www.tnt.com/express/en_gb/site/shipping-tools/tracking.html?searchType=con&cons=%number%',
885
+ "shipping_country" => 'GB',
886
+ "shipping_default" => '1'
887
+ ),
888
+ 101 => array (
889
+ "provider_name" => 'TNT Click',
890
+ "ts_slug" => 'tnt-click',
891
+ "provider_url" => 'https://www.tnt-click.it/',
892
+ "shipping_country" => 'IT',
893
+ "shipping_default" => '1'
894
+ ),
895
+ 102 => array (
896
+ "provider_name" => 'TNT Australia',
897
+ "ts_slug" => 'tnt-australia',
898
+ "provider_url" => 'https://www.tnt.com/express/en_au/site/shipping-tools/tracking.html?respCountry=au&respLang=en&cons=%number%',
899
+ "shipping_country" => 'AU',
900
+ "shipping_default" => '1'
901
+ ),
902
+ 103 => array (
903
+ "provider_name" => 'DHL Freight',
904
+ "ts_slug" => 'dhl-freight',
905
+ "provider_url" => 'https://www.logistics.dhl/global-en/home/tracking/tracking-freight.html?tracking-id=%number%',
906
+ "shipping_country" => 'Global',
907
+ "shipping_default" => '1'
908
+ ),
909
+ 104 => array (
910
+ "provider_name" => 'Sendle',
911
+ "ts_slug" => 'sendle',
912
+ "provider_url" => 'https://track.sendle.com/tracking?ref=%number%',
913
+ "shipping_country" => 'AU',
914
+ "shipping_default" => '1'
915
+ ),
916
+ 105 => array (
917
+ "provider_name" => 'Deppon',
918
+ "ts_slug" => 'deppon',
919
+ "provider_url" => 'https://www.deppon.com/en/toTrack.action',
920
+ "shipping_country" => 'CN',
921
+ "shipping_default" => '1',
922
+ ),
923
+ 106 => array (
924
+ "provider_name" => 'GLS Italy',
925
+ "ts_slug" => 'gls-italy',
926
+ "provider_url" => 'https://www.gls-italy.com/?option=com_gls&view=track_e_trace&mode=search&numero_spedizione=%number%&tipo_codice=nazionale',
927
+ "shipping_country" => 'IT',
928
+ "shipping_default" => '1',
929
+ ),
930
+ 107 => array (
931
+ "provider_name" => 'Hermes World',
932
+ "ts_slug" => 'hermes',
933
+ "provider_url" => 'https://new.myhermes.co.uk/track.html#/parcel/%number%/details',
934
+ "shipping_country" => 'Global',
935
+ "shipping_default" => '1',
936
+ ),
937
+ );
938
+ return $providers;
 
939
  }
940
+
941
  /*
942
  * database update
943
  */
944
  public function update_database_check(){
945
  if ( is_admin() ){
946
+
947
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'1.2', '>=') ){
948
  }
949
  else{
954
  }
955
  update_option( 'wc_advanced_shipment_tracking', '1.2');
956
  }
957
+
958
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'1.3', '>=') ){
959
  }
960
  else{
965
  }
966
  update_option( 'wc_advanced_shipment_tracking', '1.3');
967
  }
968
+
969
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'1.4', '>=') ){
970
  }
971
  else{
993
  }
994
  update_option( 'wc_advanced_shipment_tracking', '1.4');
995
  }
996
+
997
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'1.5', '>=') ){
998
  }
999
  else{
1006
  }
1007
  update_option( 'wc_advanced_shipment_tracking', '1.5');
1008
  }
1009
+
1010
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'2.4', '<') ){
1011
  global $wpdb;
1012
  $woo_shippment_table_name = $wpdb->prefix . 'woo_shippment_provider';
1043
  }
1044
  update_option( 'wc_advanced_shipment_tracking', '2.4');
1045
  }
1046
+
1047
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'2.5', '<') ){
1048
  global $wpdb;
1049
  $woo_shippment_table_name = $wpdb->prefix . 'woo_shippment_provider';
1057
  $result = $wpdb->update( $woo_shippment_table_name, $data_array, $where_array );
1058
  update_option( 'wc_advanced_shipment_tracking', '2.5');
1059
  }
1060
+
1061
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'2.6', '<') ){
1062
  global $wpdb;
1063
  $woo_shippment_table_name = $wpdb->prefix . 'woo_shippment_provider';
1097
  "shipping_default" => $provider['shipping_default'],
1098
  ));
1099
  update_option( 'wc_advanced_shipment_tracking', '2.7');
1100
+ }
1101
+
1102
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'2.8', '<') ){
1103
  global $wpdb;
1104
  $woo_shippment_table_name = $wpdb->prefix . 'woo_shippment_provider';
1456
 
1457
  update_option( 'wc_advanced_shipment_tracking', '2.9');
1458
  }
1459
+
1460
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.0', '<') ){
1461
  global $wpdb;
1462
  $new_providers = array (
1482
  }
1483
  update_option( 'wc_advanced_shipment_tracking', '3.0');
1484
  }
1485
+
1486
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.1', '<') ){
1487
  $this->update_shipping_providers();
1488
  update_option( 'wc_advanced_shipment_tracking', '3.1');
1489
  }
1490
+
1491
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.2', '<') ){
1492
  $this->update_shipping_providers();
1493
  update_option( 'wc_advanced_shipment_tracking', '3.2');
1494
  }
1495
+
1496
  if(version_compare(get_option( 'wc_advanced_shipment_tracking' ),'3.3', '<') ){
1497
  global $wpdb;
1498
  $results = $wpdb->get_row( "SELECT * FROM {$this->table} LIMIT 1");
1505
  }
1506
  }
1507
 
1508
+ /**
1509
+ * get providers list from trackship and update providers in database
1510
+ */
1511
  public function update_shipping_providers(){
1512
  global $wpdb;
1513
  $url = 'https://trackship.info/wp-json/WCAST/v1/Provider';
1587
  }
1588
  }
1589
  }
1590
+
1591
  /*
1592
  * Display admin notice on plugin install or update
1593
  */
1594
  public function admin_notice_after_update(){
1595
+ if ( ! PAnD::is_admin_notice_active( 'disable-ts-notice-new-forever' ) ) {
1596
  return;
1597
  }
1598
+ ?>
1599
+ <style>
1600
+ .notice.ast-admin-notice {
1601
+ padding: 20px;
1602
+ background: rgb(245, 248, 250);
1603
+ border: 1px solid #eee;
1604
+ border-left: 4px solid #83bd31 !important;
1605
+ }
1606
+ .rtl .notice.ast-admin-notice {
1607
+ border-right-color: #83bd31 !important;
1608
+ }
1609
+ .notice.ast-admin-notice .ast-admin-notice-inner {
1610
+ display: table;
1611
+ width: 100%;
1612
+ }
1613
+ .notice.ast-admin-notice .ast-admin-notice-inner .ast-admin-notice-icon,
1614
+ .notice.ast-admin-notice .ast-admin-notice-inner .ast-admin-notice-content,
1615
+ .notice.ast-admin-notice .ast-admin-notice-inner .trackship-install-now {
1616
+ display: table-cell;
1617
+ vertical-align: middle;
1618
+ }
1619
+ .notice.ast-admin-notice .ast-admin-notice-icon {
1620
+ color: #83bd31;
1621
+ }
1622
+ .notice.ast-admin-notice .ast-admin-notice-icon .notice-logo{
1623
+ width: 200px;
1624
+ }
1625
+ .notice.ast-admin-notice .ast-admin-notice-content {
1626
+ padding: 0 20px;
1627
+ }
1628
+ .notice.ast-admin-notice p {
1629
+ padding: 0;
1630
+ margin: 0;
1631
+ }
1632
+ .notice.ast-admin-notice h3 {
1633
+ margin: 0 0 5px;
1634
+ color: #061c58;
1635
+ }
1636
+ .notice.ast-admin-notice .trackship-install-now {
1637
+ text-align: center;
1638
+ }
1639
+ .notice.ast-admin-notice .trackship-install-now .hello-elementor-install-button {
1640
+ padding: 5px 30px;
1641
+ height: auto;
1642
+ line-height: 20px;
1643
+ text-transform: capitalize;
1644
+ }
1645
+ .notice.ast-admin-notice .trackship-install-now .hello-elementor-install-button i {
1646
+ padding-right: 5px;
1647
+ }
1648
+ .rtl .notice.ast-admin-notice .trackship-install-now .hello-elementor-install-button i {
1649
+ padding-right: 0;
1650
+ padding-left: 5px;
1651
+ }
1652
+ .notice.ast-admin-notice .trackship-install-now .hello-elementor-install-button:active {
1653
+ transform: translateY(1px);
1654
+ }
1655
+ .ast-admin-notice .notice-dismiss:before{
1656
+ color: #061c58;
1657
+ font: normal 20px/20px dashicons;
1658
+ }
1659
+ .wp-core-ui .btn_green2 {
1660
+ background: #83bd31;
1661
+ text-shadow: none;
1662
+ border-color: #83bd31;
1663
+ box-shadow: none;
1664
+ font-size: 14px;
1665
+ line-height: 32px;
1666
+ height: 35px;
1667
+ padding: 0 20px;
1668
+ }
1669
+ .wp-core-ui .btn_green2:hover, .wp-core-ui .btn_green2:focus {
1670
+ background: rgba(131, 189, 49, 0.8);
1671
+ border-color: rgba(131, 189, 49, 0.8);
1672
+ color: #fff;
1673
+ text-shadow: none;
1674
+ box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
1675
+ }
1676
+ </style>
1677
+ <div data-dismissible="disable-ts-notice-new-forever" class="notice updated is-dismissible ast-admin-notice">
1678
+ <div class="ast-admin-notice-inner">
1679
+ <div class="ast-admin-notice-icon">
1680
+ <img class="notice-logo" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url().'/assets/images/trackship-400.png'; ?>" alt="Trackship Logo" />
1681
+ </div>
1682
+
1683
+ <div class="ast-admin-notice-content">
1684
+ <h3>Thanks for using the Advanced Shipment Tracking!</h3>
1685
+ <p>
1686
+ <p>Add TrackShip integration and automate your post shipping operations!</p>
1687
+ <a href="https://trackship.info/" target="_blank">Try trackship with 50 free trackers >></a>
1688
+ </p>
1689
+ </div>
1690
+
1691
+ <div class="trackship-install-now">
1692
+ <a class="button button-primary btn_green2 btn_large" href="https://trackship.info/" target="_blank">SIGNUP NOW</a>
1693
+ </div>
1694
+ </div>
1695
  </div>
1696
  <?php
1697
  }
includes/class-wc-advanced-shipment-tracking.php CHANGED
@@ -43,7 +43,10 @@ class WC_Advanced_Shipment_Tracking_Actions {
43
 
44
  return self::$instance;
45
  }
46
-
 
 
 
47
  function get_providers(){
48
 
49
  if ( empty( $this->providers ) ) {
@@ -56,8 +59,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
56
 
57
  if ( ! empty( $results ) ) {
58
 
59
- foreach ( $results as $row ) {
60
- //$shippment_providers[ $row->ts_slug ] = apply_filters( 'shipping_provider_url_template', $row->provider_url, $row->ts_slug );
61
  $shippment_providers[ $row->ts_slug ] = array(
62
  'provider_name'=> $row->provider_name,
63
  'provider_url' => $row->provider_url,
@@ -147,6 +149,9 @@ class WC_Advanced_Shipment_Tracking_Actions {
147
  return apply_filters( 'woocommerce_shipment_tracking_get_shipment_tracking_column', ob_get_clean(), $order_id, $tracking_items );
148
  }
149
 
 
 
 
150
  public function add_inline_tracking_lightbox(){
151
  global $wpdb;
152
  $WC_Countries = new WC_Countries();
@@ -176,9 +181,9 @@ class WC_Advanced_Shipment_Tracking_Actions {
176
 
177
  $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
178
  if($wc_ast_status_shipped == 1){
179
- $change_order_status_label = __( 'Change order to Shipped?', 'woo-advanced-shipment-tracking' );
180
  } else{
181
- $change_order_status_label = __( 'Change order to Completed?', 'woo-advanced-shipment-tracking' );
182
  }
183
  ?>
184
  <div id="" class="trackingpopup_wrapper add_tracking_popup" style="display:none;">
@@ -266,13 +271,15 @@ class WC_Advanced_Shipment_Tracking_Actions {
266
  <p class="meta">
267
  <?php /* translators: 1: shipping date */ ?>
268
  <?php echo esc_html( sprintf( __( 'Shipped on %s', 'woo-advanced-shipment-tracking' ), date_i18n( 'Y-m-d', $item['date_shipped'] ) ) ); ?>
269
- <a href="#" class="delete-tracking" rel="<?php echo esc_attr( $item['tracking_id'] ); ?>"><?php _e( 'Delete', 'woo-advanced-shipment-tracking' ); ?></a>
270
- <?php /*?><button class="button" type="button">Get shipment status</button><?php */?>
271
  </p>
272
  </div>
273
  <?php
274
  }
275
 
 
 
 
276
  public function display_shipment_tracking_info( $order_id, $item ){
277
  $shipment_status = get_post_meta( $order_id, "shipment_status", true);
278
  $tracking_id = $item['tracking_id'];
@@ -348,9 +355,9 @@ class WC_Advanced_Shipment_Tracking_Actions {
348
 
349
  $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
350
  if($wc_ast_status_shipped == 1){
351
- $change_order_status_label = __( 'Change order to Shipped?', 'woo-advanced-shipment-tracking' );
352
  } else{
353
- $change_order_status_label = __( 'Change order to Completed?', 'woo-advanced-shipment-tracking' );
354
  }
355
 
356
 
@@ -483,7 +490,8 @@ class WC_Advanced_Shipment_Tracking_Actions {
483
  } else {
484
  WC()->add_inline_js( $js );
485
  }
486
-
 
487
  wp_enqueue_script( 'woocommerce-advanced-shipment-tracking-js', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/admin.js' );
488
  }
489
 
@@ -597,10 +605,11 @@ class WC_Advanced_Shipment_Tracking_Actions {
597
 
598
  $order_id = wc_clean( $_POST['order_id'] );
599
  $tracking_id = wc_clean( $_POST['tracking_id'] );
600
-
 
601
  $api_enabled = get_option( "wc_ast_api_enabled", 0);
602
  if( $api_enabled ){
603
- $tracking_items = $this->get_tracking_items( $order_id, true );
604
  foreach($tracking_items as $tracking_item){
605
 
606
  if($tracking_item['tracking_id'] == $_POST['tracking_id']){
@@ -614,7 +623,22 @@ class WC_Advanced_Shipment_Tracking_Actions {
614
  }
615
 
616
  }
617
- $this->delete_tracking_item( $order_id, $tracking_id );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
618
  }
619
 
620
  /**
@@ -652,24 +676,20 @@ class WC_Advanced_Shipment_Tracking_Actions {
652
  */
653
  public function email_display( $order, $sent_to_admin, $plain_text = null, $email = null ) {
654
 
655
- $wc_ast_unclude_tracking_info = get_option('wc_ast_unclude_tracking_info');
656
- if ( is_a( $email, 'WC_Email_Customer_Completed_Order' ) && !isset($wc_ast_unclude_tracking_info['show_in_completed'])){
657
- return;
658
- }
659
- if ( is_a( $email, 'WC_Email_Customer_Processing_Order' ) && !isset($wc_ast_unclude_tracking_info['show_in_processing'])){
660
- return;
661
- }
 
662
  if ( is_a( $email, 'WC_Email_Customer_Invoice' ) && !isset($wc_ast_unclude_tracking_info['show_in_customer_invoice'])){
663
  return;
 
 
664
  }
665
- if ( is_a( $email, 'WC_Email_Customer_Refunded_Order' ) && !isset($wc_ast_unclude_tracking_info['show_in_refunded'])){
666
- return;
667
- }
668
- if ( is_a( $email, 'WC_Email_Failed_Order' ) && !isset($wc_ast_unclude_tracking_info['show_in_failed'])){
669
- return;
670
- }
671
-
672
- $order_id = is_callable( array( $order, 'get_id' ) ) ? $order->get_id() : $order->id;
673
  $tracking_items = $this->get_tracking_items( $order_id, true );
674
 
675
  if ( true === $plain_text ) {
@@ -678,6 +698,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
678
  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/' );
679
  }
680
  }
 
681
  /**
682
  * Display shipment info in PDF Invoices & Packing slips.
683
  *
@@ -769,6 +790,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
769
  <?php
770
  }
771
  }
 
772
  /**
773
  * Prevents data being copied to subscription renewals
774
  */
@@ -899,30 +921,42 @@ class WC_Advanced_Shipment_Tracking_Actions {
899
  public function add_tracking_item( $order_id, $args ) {
900
  $tracking_item = array();
901
 
902
- if($args['tracking_provider']){
903
- $tracking_item['tracking_provider'] = $args['tracking_provider'];
 
 
 
 
 
 
 
904
  }
905
 
906
- if($args['tracking_number']){
907
- $tracking_item['tracking_number'] = wc_clean( $args['tracking_number'] );
908
  }
909
- if($args['date_shipped']){
 
910
  $date = str_replace("/","-",$args['date_shipped']);
911
  $date = date_create($date);
912
  $date = date_format($date,"d-m-Y");
913
 
914
- $tracking_item['date_shipped'] = wc_clean( strtotime( $date ) );
915
  }
916
 
917
  if(isset($args['status_shipped'])){
918
- $tracking_item['status_shipped'] = wc_clean( $args['status_shipped'] );
919
  }
920
 
921
  if ( isset($tracking_item['date_shipped']) && 0 == (int) $tracking_item['date_shipped'] ) {
922
  $tracking_item['date_shipped'] = time();
923
  }
924
 
925
- $tracking_item['tracking_id'] = md5( "{$tracking_item['tracking_provider']}-{$tracking_item['tracking_number']}" . microtime() );
 
 
 
 
926
 
927
  $tracking_items = $this->get_tracking_items( $order_id );
928
  $tracking_items[] = $tracking_item;
@@ -933,6 +967,18 @@ class WC_Advanced_Shipment_Tracking_Actions {
933
  $order = new WC_Order( $order_id );
934
  $order->update_status('completed');
935
  }
 
 
 
 
 
 
 
 
 
 
 
 
936
  return $tracking_item;
937
  }
938
 
@@ -1082,6 +1128,9 @@ class WC_Advanced_Shipment_Tracking_Actions {
1082
  return $this->plugin_path;
1083
  }
1084
 
 
 
 
1085
  public function check_tracking_delivered( $order_id ){
1086
  $delivered = true;
1087
  $shipment_status = get_post_meta( $order_id, "shipment_status", true);
@@ -1101,9 +1150,13 @@ class WC_Advanced_Shipment_Tracking_Actions {
1101
  }
1102
  }
1103
  }
 
 
 
 
1104
  public function custom_validation_js(){ ?>
1105
  <script>
1106
- jQuery(document).on("click",".button-save-form",function(e){
1107
  var error;
1108
  var tracking_provider = jQuery("#tracking_provider");
1109
  var tracking_number = jQuery("#tracking_number");
@@ -1118,7 +1171,13 @@ class WC_Advanced_Shipment_Tracking_Actions {
1118
  tracking_number.css( "border-color", "red" );
1119
  error = true;
1120
  } else {
1121
- tracking_number.css( "border-color", "" );
 
 
 
 
 
 
1122
  }
1123
 
1124
  if(error == true){
@@ -1128,6 +1187,9 @@ class WC_Advanced_Shipment_Tracking_Actions {
1128
  </script>
1129
  <?php }
1130
 
 
 
 
1131
  public function trigger_tracking_email($order_id, $old_status, $new_status){
1132
  $order = wc_get_order( $order_id );
1133
  require_once( 'email-manager.php' );
@@ -1152,4 +1214,105 @@ class WC_Advanced_Shipment_Tracking_Actions {
1152
  update_post_meta( $order_id, "shipment_status", $shipment_status);
1153
  }
1154
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1155
  }
43
 
44
  return self::$instance;
45
  }
46
+
47
+ /**
48
+ * Get shipping providers from database
49
+ */
50
  function get_providers(){
51
 
52
  if ( empty( $this->providers ) ) {
59
 
60
  if ( ! empty( $results ) ) {
61
 
62
+ foreach ( $results as $row ) {
 
63
  $shippment_providers[ $row->ts_slug ] = array(
64
  'provider_name'=> $row->provider_name,
65
  'provider_url' => $row->provider_url,
149
  return apply_filters( 'woocommerce_shipment_tracking_get_shipment_tracking_column', ob_get_clean(), $order_id, $tracking_items );
150
  }
151
 
152
+ /**
153
+ * Lightbox for add tracking number from orders list
154
+ */
155
  public function add_inline_tracking_lightbox(){
156
  global $wpdb;
157
  $WC_Countries = new WC_Countries();
181
 
182
  $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
183
  if($wc_ast_status_shipped == 1){
184
+ $change_order_status_label = __( 'Mark as Shipped?', 'woo-advanced-shipment-tracking' );
185
  } else{
186
+ $change_order_status_label = __( 'Mark as Completed?', 'woo-advanced-shipment-tracking' );
187
  }
188
  ?>
189
  <div id="" class="trackingpopup_wrapper add_tracking_popup" style="display:none;">
271
  <p class="meta">
272
  <?php /* translators: 1: shipping date */ ?>
273
  <?php echo esc_html( sprintf( __( 'Shipped on %s', 'woo-advanced-shipment-tracking' ), date_i18n( 'Y-m-d', $item['date_shipped'] ) ) ); ?>
274
+ <a href="#" class="delete-tracking" rel="<?php echo esc_attr( $item['tracking_id'] ); ?>"><?php _e( 'Delete', 'woocommerce' ); ?></a>
 
275
  </p>
276
  </div>
277
  <?php
278
  }
279
 
280
+ /**
281
+ * Shipment tracking info html in orders details page
282
+ */
283
  public function display_shipment_tracking_info( $order_id, $item ){
284
  $shipment_status = get_post_meta( $order_id, "shipment_status", true);
285
  $tracking_id = $item['tracking_id'];
355
 
356
  $wc_ast_status_shipped = get_option('wc_ast_status_shipped');
357
  if($wc_ast_status_shipped == 1){
358
+ $change_order_status_label = __( 'Mark as Shipped?', 'woo-advanced-shipment-tracking' );
359
  } else{
360
+ $change_order_status_label = __( 'Mark as Completed?', 'woo-advanced-shipment-tracking' );
361
  }
362
 
363
 
490
  } else {
491
  WC()->add_inline_js( $js );
492
  }
493
+
494
+ wp_enqueue_style( 'shipment_tracking_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
495
  wp_enqueue_script( 'woocommerce-advanced-shipment-tracking-js', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/admin.js' );
496
  }
497
 
605
 
606
  $order_id = wc_clean( $_POST['order_id'] );
607
  $tracking_id = wc_clean( $_POST['tracking_id'] );
608
+ $tracking_items = $this->get_tracking_items( $order_id, true );
609
+
610
  $api_enabled = get_option( "wc_ast_api_enabled", 0);
611
  if( $api_enabled ){
612
+
613
  foreach($tracking_items as $tracking_item){
614
 
615
  if($tracking_item['tracking_id'] == $_POST['tracking_id']){
623
  }
624
 
625
  }
626
+
627
+ foreach($tracking_items as $tracking_item){
628
+ if($tracking_item['tracking_id'] == $_POST['tracking_id']){
629
+ $formated_tracking_item = $this->get_formatted_tracking_item( $order_id, $tracking_item );
630
+
631
+ $tracking_number = $tracking_item['tracking_number'];
632
+ $tracking_provider = $formated_tracking_item['formatted_tracking_provider'];
633
+ $order = wc_get_order( $order_id );
634
+ // The text for the note
635
+ $note = sprintf(__("Tracking info was deleted for tracking provider %s with tracking number %s", 'woo-advanced-shipment-tracking'), $tracking_provider, $tracking_number );
636
+
637
+ // Add the note
638
+ $order->add_order_note( $note );
639
+ }
640
+ }
641
+ $this->delete_tracking_item( $order_id, $tracking_id );
642
  }
643
 
644
  /**
676
  */
677
  public function email_display( $order, $sent_to_admin, $plain_text = null, $email = null ) {
678
 
679
+
680
+ $wc_ast_unclude_tracking_info = get_option('wc_ast_unclude_tracking_info');
681
+
682
+ $order_id = is_callable( array( $order, 'get_id' ) ) ? $order->get_id() : $order->id;
683
+ $order = wc_get_order( $order_id );
684
+ $order_status = $order->get_status();
685
+ //echo '<pre>';print_r($wc_ast_unclude_tracking_info);echo '</pre>';exit;
686
+
687
  if ( is_a( $email, 'WC_Email_Customer_Invoice' ) && !isset($wc_ast_unclude_tracking_info['show_in_customer_invoice'])){
688
  return;
689
+ } elseif(!isset($wc_ast_unclude_tracking_info[$order_status])){
690
+ return;
691
  }
692
+
 
 
 
 
 
 
 
693
  $tracking_items = $this->get_tracking_items( $order_id, true );
694
 
695
  if ( true === $plain_text ) {
698
  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/' );
699
  }
700
  }
701
+
702
  /**
703
  * Display shipment info in PDF Invoices & Packing slips.
704
  *
790
  <?php
791
  }
792
  }
793
+
794
  /**
795
  * Prevents data being copied to subscription renewals
796
  */
921
  public function add_tracking_item( $order_id, $args ) {
922
  $tracking_item = array();
923
 
924
+ if(isset($args['tracking_provider'])){
925
+ $tracking_item['tracking_provider'] = $args['tracking_provider'];
926
+ }
927
+
928
+ if(isset($args['custom_tracking_provider'])){
929
+ $tracking_item['custom_tracking_provider'] = wc_clean( $args['custom_tracking_provider'] );
930
+ }
931
+ if(isset($args['custom_tracking_link'])){
932
+ $tracking_item['custom_tracking_link'] = wc_clean( $args['custom_tracking_link'] );
933
  }
934
 
935
+ if(isset($args['tracking_number'])){
936
+ $tracking_item['tracking_number'] = wc_clean( $args['tracking_number'] );
937
  }
938
+
939
+ if(isset($args['date_shipped'])){
940
  $date = str_replace("/","-",$args['date_shipped']);
941
  $date = date_create($date);
942
  $date = date_format($date,"d-m-Y");
943
 
944
+ $tracking_item['date_shipped'] = wc_clean( strtotime( $date ) );
945
  }
946
 
947
  if(isset($args['status_shipped'])){
948
+ $tracking_item['status_shipped'] = wc_clean( $args['status_shipped'] );
949
  }
950
 
951
  if ( isset($tracking_item['date_shipped']) && 0 == (int) $tracking_item['date_shipped'] ) {
952
  $tracking_item['date_shipped'] = time();
953
  }
954
 
955
+ if ( isset($tracking_item['custom_tracking_provider'] )) {
956
+ $tracking_item['tracking_id'] = md5( "{$tracking_item['custom_tracking_provider']}-{$tracking_item['tracking_number']}" . microtime() );
957
+ } else {
958
+ $tracking_item['tracking_id'] = md5( "{$tracking_item['tracking_provider']}-{$tracking_item['tracking_number']}" . microtime() );
959
+ }
960
 
961
  $tracking_items = $this->get_tracking_items( $order_id );
962
  $tracking_items[] = $tracking_item;
967
  $order = new WC_Order( $order_id );
968
  $order->update_status('completed');
969
  }
970
+
971
+ $formated_tracking_item = $this->get_formatted_tracking_item( $order_id, $tracking_item );
972
+ $tracking_provider = $formated_tracking_item['formatted_tracking_provider'];
973
+
974
+ $order = wc_get_order( $order_id );
975
+
976
+ // The text for the note
977
+ $note = sprintf(__("Order was shipped with %s and tracking number is: %s", 'woo-advanced-shipment-tracking'), $tracking_provider, $tracking_item['tracking_number'] );
978
+
979
+ // Add the note
980
+ $order->add_order_note( $note );
981
+
982
  return $tracking_item;
983
  }
984
 
1128
  return $this->plugin_path;
1129
  }
1130
 
1131
+ /**
1132
+ * code for check if tracking number in order is delivered or not
1133
+ */
1134
  public function check_tracking_delivered( $order_id ){
1135
  $delivered = true;
1136
  $shipment_status = get_post_meta( $order_id, "shipment_status", true);
1150
  }
1151
  }
1152
  }
1153
+
1154
+ /**
1155
+ * validation code add tracking info form
1156
+ */
1157
  public function custom_validation_js(){ ?>
1158
  <script>
1159
+ jQuery(document).on("click",".button-save-form",function(e){
1160
  var error;
1161
  var tracking_provider = jQuery("#tracking_provider");
1162
  var tracking_number = jQuery("#tracking_number");
1171
  tracking_number.css( "border-color", "red" );
1172
  error = true;
1173
  } else {
1174
+ var pattern = /^[A-Za-z0-9]+$/;
1175
+ if(!pattern.test(tracking_number.val())){
1176
+ tracking_number.css( "border-color", "red" );
1177
+ error = true;
1178
+ } else{
1179
+ tracking_number.css( "border-color", "" );
1180
+ }
1181
  }
1182
 
1183
  if(error == true){
1187
  </script>
1188
  <?php }
1189
 
1190
+ /**
1191
+ * code for trigger shipment status email
1192
+ */
1193
  public function trigger_tracking_email($order_id, $old_status, $new_status){
1194
  $order = wc_get_order( $order_id );
1195
  require_once( 'email-manager.php' );
1214
  update_post_meta( $order_id, "shipment_status", $shipment_status);
1215
  }
1216
  }
1217
+
1218
+ /*
1219
+ * Get formated order id
1220
+ */
1221
+ public function get_formated_order_id($order_id){
1222
+ if ( is_plugin_active( 'custom-order-numbers-for-woocommerce/custom-order-numbers-for-woocommerce.php' ) ) {
1223
+ $alg_wc_custom_order_numbers_enabled = get_option('alg_wc_custom_order_numbers_enabled');
1224
+ if($alg_wc_custom_order_numbers_enabled == 'yes'){
1225
+ $args = array(
1226
+ 'post_type' => 'shop_order',
1227
+ 'posts_per_page' => '1',
1228
+ 'meta_query' => array(
1229
+ 'relation' => 'AND',
1230
+ array(
1231
+ 'key' => '_alg_wc_custom_order_number',
1232
+ 'value' => $order_id
1233
+ ),
1234
+ ),
1235
+ 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
1236
+ );
1237
+ $posts = get_posts( $args );
1238
+ $my_query = new WP_Query( $args );
1239
+
1240
+ if( $my_query->have_posts() ) {
1241
+ while( $my_query->have_posts()) {
1242
+ $my_query->the_post();
1243
+ if(get_the_ID()){
1244
+ $order_id = get_the_ID();
1245
+ }
1246
+ } // end while
1247
+ } // end if
1248
+ wp_reset_postdata();
1249
+ }
1250
+ }
1251
+
1252
+ if ( is_plugin_active( 'woocommerce-sequential-order-numbers/woocommerce-sequential-order-numbers.php' ) ) {
1253
+
1254
+ $s_order_id = wc_sequential_order_numbers()->find_order_by_order_number( $order_id );
1255
+ if($s_order_id){
1256
+ $order_id = $s_order_id;
1257
+ }
1258
+ }
1259
+
1260
+ if ( is_plugin_active( 'wp-lister-amazon/wp-lister-amazon.php' ) ) {
1261
+ $wpla_use_amazon_order_number = get_option( 'wpla_use_amazon_order_number' );
1262
+ if($wpla_use_amazon_order_number == 1){
1263
+ $args = array(
1264
+ 'post_type' => 'shop_order',
1265
+ 'posts_per_page' => '1',
1266
+ 'meta_query' => array(
1267
+ 'relation' => 'AND',
1268
+ array(
1269
+ 'key' => '_wpla_amazon_order_id',
1270
+ 'value' => $order_id
1271
+ ),
1272
+ ),
1273
+ 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
1274
+ );
1275
+ $posts = get_posts( $args );
1276
+ $my_query = new WP_Query( $args );
1277
+
1278
+ if( $my_query->have_posts() ) {
1279
+ while( $my_query->have_posts()) {
1280
+ $my_query->the_post();
1281
+ if(get_the_ID()){
1282
+ $order_id = get_the_ID();
1283
+ }
1284
+ } // end while
1285
+ } // end if
1286
+ wp_reset_postdata();
1287
+ }
1288
+ }
1289
+
1290
+ if ( is_plugin_active( 'wp-lister/wp-lister.php' ) || is_plugin_active( 'wp-lister-for-ebay/wp-lister.php' )) {
1291
+ $args = array(
1292
+ 'post_type' => 'shop_order',
1293
+ 'posts_per_page' => '1',
1294
+ 'meta_query' => array(
1295
+ 'relation' => 'AND',
1296
+ array(
1297
+ 'key' => '_ebay_extended_order_id',
1298
+ 'value' => $order_id
1299
+ ),
1300
+ ),
1301
+ 'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
1302
+ );
1303
+ $posts = get_posts( $args );
1304
+ $my_query = new WP_Query( $args );
1305
+
1306
+ if( $my_query->have_posts() ) {
1307
+ while( $my_query->have_posts()) {
1308
+ $my_query->the_post();
1309
+ if(get_the_ID()){
1310
+ $order_id = get_the_ID();
1311
+ }
1312
+ } // end while
1313
+ } // end if
1314
+ wp_reset_postdata();
1315
+ }
1316
+ return $order_id;
1317
+ }
1318
  }
includes/customizer/class-wc-availableforpickup-email-customizer.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
  /**
3
- * Customizer Setup and Custom Controls
4
- *
5
  */
6
 
7
  /**
@@ -10,6 +9,7 @@
10
  class wcast_availableforpickup_customizer_email {
11
  // Get our default values
12
  public function __construct() {
 
13
  // Get our Customizer defaults
14
  $this->defaults = $this->wcast_generate_defaults();
15
  $wc_ast_api_key = get_option('wc_ast_api_key');
@@ -47,7 +47,10 @@ class wcast_availableforpickup_customizer_email {
47
 
48
  }
49
 
50
- public function enqueue_preview_scripts() {
 
 
 
51
  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);
52
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
53
  // Send variables to Javascript
@@ -56,8 +59,9 @@ class wcast_availableforpickup_customizer_email {
56
  'site_title' => $this->get_blogname(),
57
  'order_number' => $preview_id,
58
  ));
59
- }
60
- /**
 
61
  * Get blog name formatted for emails.
62
  *
63
  * @return string
@@ -75,6 +79,7 @@ class wcast_availableforpickup_customizer_email {
75
  public static function is_own_preview_request() {
76
  return isset( $_REQUEST['wcast-availableforpickup-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-availableforpickup-email-customizer-preview'];
77
  }
 
78
  /**
79
  * Checks to see if we are opening our custom customizer controls
80
  *
@@ -110,6 +115,9 @@ class wcast_availableforpickup_customizer_email {
110
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
111
  }
112
 
 
 
 
113
  public function wcast_generate_defaults() {
114
  $customizer_defaults = array(
115
  'wcast_availableforpickup_email_subject' => __( 'Your order #{order_number} is available for pickup', 'woo-advanced-shipment-tracking' ),
@@ -197,7 +205,7 @@ class wcast_availableforpickup_customizer_email {
197
  );
198
  $wp_customize->add_control( 'wcast_availableforpickup_email_to',
199
  array(
200
- 'label' => __( 'To', 'woo-advanced-shipment-tracking' ),
201
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woo-advanced-shipment-tracking' ),
202
  'section' => 'customer_availableforpickup_email',
203
  'type' => 'text',
@@ -219,7 +227,7 @@ class wcast_availableforpickup_customizer_email {
219
  );
220
  $wp_customize->add_control( 'wcast_availableforpickup_email_subject',
221
  array(
222
- 'label' => __( 'Email subject', 'woo-advanced-shipment-tracking' ),
223
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
224
  'section' => 'customer_availableforpickup_email',
225
  'type' => 'text',
@@ -241,7 +249,7 @@ class wcast_availableforpickup_customizer_email {
241
  );
242
  $wp_customize->add_control( 'wcast_availableforpickup_email_heading',
243
  array(
244
- 'label' => __( 'Email heading', 'woo-advanced-shipment-tracking' ),
245
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
246
  'section' => 'customer_availableforpickup_email',
247
  'type' => 'text',
@@ -392,6 +400,9 @@ class wcast_availableforpickup_customizer_email {
392
  exit;
393
  }
394
 
 
 
 
395
  public function preview_availableforpickup_email(){
396
  // Load WooCommerce emails.
397
  $wc_emails = WC_Emails::instance();
@@ -413,7 +424,7 @@ class wcast_availableforpickup_customizer_email {
413
  $email = '';
414
 
415
  if($preview_id == '' || $preview_id == 'mockup') {
416
- $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select preview order.', 'woo-advanced-shipment-tracking' ) . '</div>';
417
  echo $content;
418
  return;
419
  }
@@ -434,6 +445,7 @@ class wcast_availableforpickup_customizer_email {
434
  }
435
 
436
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
 
437
  if($wcast_show_tracking_details == 1){
438
  ob_start();
439
  wc_get_template( 'emails/tracking-info.php', array(
@@ -441,6 +453,7 @@ class wcast_availableforpickup_customizer_email {
441
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
442
  $message .= ob_get_clean();
443
  }
 
444
  if($wcast_show_order_details == 1){
445
 
446
  ob_start();
@@ -456,6 +469,7 @@ class wcast_availableforpickup_customizer_email {
456
  );
457
  $message .= ob_get_clean();
458
  }
 
459
  if($wcast_show_billing_address == 1){
460
  ob_start();
461
  wc_get_template(
@@ -468,6 +482,7 @@ class wcast_availableforpickup_customizer_email {
468
  );
469
  $message .= ob_get_clean();
470
  }
 
471
  if($wcast_show_shipping_address == 1){
472
  ob_start();
473
  wc_get_template(
@@ -480,6 +495,7 @@ class wcast_availableforpickup_customizer_email {
480
  );
481
  $message .= ob_get_clean();
482
  }
 
483
  // create a new email
484
  $email = new WC_Email();
485
  $email->id = 'WC_Delivered_email';
@@ -490,6 +506,9 @@ class wcast_availableforpickup_customizer_email {
490
  echo $message;
491
  }
492
 
 
 
 
493
  public function _appendCampaignToString($match){
494
  $url = $match[2];
495
  if (strpos($url, '?') === false) {
1
  <?php
2
  /**
3
+ * Customizer Setup and Custom Controls
 
4
  */
5
 
6
  /**
9
  class wcast_availableforpickup_customizer_email {
10
  // Get our default values
11
  public function __construct() {
12
+
13
  // Get our Customizer defaults
14
  $this->defaults = $this->wcast_generate_defaults();
15
  $wc_ast_api_key = get_option('wc_ast_api_key');
47
 
48
  }
49
 
50
+ /**
51
+ * add css and js for preview
52
+ */
53
+ public function enqueue_preview_scripts() {
54
  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);
55
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
56
  // Send variables to Javascript
59
  'site_title' => $this->get_blogname(),
60
  'order_number' => $preview_id,
61
  ));
62
+ }
63
+
64
+ /**
65
  * Get blog name formatted for emails.
66
  *
67
  * @return string
79
  public static function is_own_preview_request() {
80
  return isset( $_REQUEST['wcast-availableforpickup-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-availableforpickup-email-customizer-preview'];
81
  }
82
+
83
  /**
84
  * Checks to see if we are opening our custom customizer controls
85
  *
115
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
116
  }
117
 
118
+ /**
119
+ * code for initialize default value for customizer
120
+ */
121
  public function wcast_generate_defaults() {
122
  $customizer_defaults = array(
123
  'wcast_availableforpickup_email_subject' => __( 'Your order #{order_number} is available for pickup', 'woo-advanced-shipment-tracking' ),
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.', 'woo-advanced-shipment-tracking' ),
210
  'section' => 'customer_availableforpickup_email',
211
  'type' => 'text',
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',
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',
400
  exit;
401
  }
402
 
403
+ /**
404
+ * code for preview of available for pickup email
405
+ */
406
  public function preview_availableforpickup_email(){
407
  // Load WooCommerce emails.
408
  $wc_emails = WC_Emails::instance();
424
  $email = '';
425
 
426
  if($preview_id == '' || $preview_id == 'mockup') {
427
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
428
  echo $content;
429
  return;
430
  }
445
  }
446
 
447
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
448
+
449
  if($wcast_show_tracking_details == 1){
450
  ob_start();
451
  wc_get_template( 'emails/tracking-info.php', array(
453
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
454
  $message .= ob_get_clean();
455
  }
456
+
457
  if($wcast_show_order_details == 1){
458
 
459
  ob_start();
469
  );
470
  $message .= ob_get_clean();
471
  }
472
+
473
  if($wcast_show_billing_address == 1){
474
  ob_start();
475
  wc_get_template(
482
  );
483
  $message .= ob_get_clean();
484
  }
485
+
486
  if($wcast_show_shipping_address == 1){
487
  ob_start();
488
  wc_get_template(
495
  );
496
  $message .= ob_get_clean();
497
  }
498
+
499
  // create a new email
500
  $email = new WC_Email();
501
  $email->id = 'WC_Delivered_email';
506
  echo $message;
507
  }
508
 
509
+ /**
510
+ * code for append analytics link in email content
511
+ */
512
  public function _appendCampaignToString($match){
513
  $url = $match[2];
514
  if (strpos($url, '?') === false) {
includes/customizer/class-wc-delivered-email-customizer.php CHANGED
@@ -49,7 +49,10 @@ class wcast_delivered_customizer_email {
49
 
50
  }
51
 
52
- public function enqueue_preview_scripts() {
 
 
 
53
  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);
54
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
55
  // Send variables to Javascript
@@ -58,8 +61,9 @@ class wcast_delivered_customizer_email {
58
  'site_title' => $this->get_blogname(),
59
  'order_number' => $preview_id,
60
  ));
61
- }
62
- /**
 
63
  * Get blog name formatted for emails.
64
  *
65
  * @return string
@@ -67,6 +71,7 @@ class wcast_delivered_customizer_email {
67
  public function get_blogname() {
68
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
69
  }
 
70
  /**
71
  * Checks to see if we are opening our custom customizer preview
72
  *
@@ -76,6 +81,7 @@ class wcast_delivered_customizer_email {
76
  public static function is_own_preview_request() {
77
  return isset( $_REQUEST['wcast-delivered-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-delivered-email-customizer-preview'];
78
  }
 
79
  /**
80
  * Checks to see if we are opening our custom customizer controls
81
  *
@@ -84,21 +90,22 @@ class wcast_delivered_customizer_email {
84
  */
85
  public static function is_own_customizer_request() {
86
  return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'customer_delivered_status_email';
87
- }
 
88
  /**
89
  * Get Customizer URL
90
  *
91
  */
92
  public static function get_customizer_url($email,$return_tab) {
93
- $customizer_url = add_query_arg( array(
94
- 'wcast-customizer' => '1',
95
- 'email' => $email,
96
- 'url' => urlencode( add_query_arg( array( 'wcast-delivered-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
97
- 'return' => urlencode( wcast_delivered_customizer_email::get_email_settings_page_url($return_tab) ),
98
- ), admin_url( 'customize.php' ) );
99
-
100
  return $customizer_url;
101
- }
 
102
  /**
103
  * Get WooCommerce email settings page URL
104
  *
@@ -109,6 +116,9 @@ class wcast_delivered_customizer_email {
109
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
110
  }
111
 
 
 
 
112
  public function wcast_generate_defaults() {
113
  $customizer_defaults = array(
114
  'wcast_delivered_status_email_subject' => __( 'Your order #{order_number} has been delivered', 'woo-advanced-shipment-tracking' ),
@@ -196,7 +206,7 @@ class wcast_delivered_customizer_email {
196
  );
197
  $wp_customize->add_control( 'wcast_delivered_status_email_to',
198
  array(
199
- 'label' => __( 'To', 'woo-advanced-shipment-tracking' ),
200
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woo-advanced-shipment-tracking' ),
201
  'section' => 'customer_delivered_status_email',
202
  'type' => 'text',
@@ -218,7 +228,7 @@ class wcast_delivered_customizer_email {
218
  );
219
  $wp_customize->add_control( 'wcast_delivered_status_email_subject',
220
  array(
221
- 'label' => __( 'Email subject', 'woo-advanced-shipment-tracking' ),
222
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
223
  'section' => 'customer_delivered_status_email',
224
  'type' => 'text',
@@ -240,7 +250,7 @@ class wcast_delivered_customizer_email {
240
  );
241
  $wp_customize->add_control( 'wcast_delivered_status_email_heading',
242
  array(
243
- 'label' => __( 'Email heading', 'woo-advanced-shipment-tracking' ),
244
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
245
  'section' => 'customer_delivered_status_email',
246
  'type' => 'text',
@@ -392,6 +402,9 @@ class wcast_delivered_customizer_email {
392
  exit;
393
  }
394
 
 
 
 
395
  public function preview_delivered_email(){
396
  // Load WooCommerce emails.
397
  $wc_emails = WC_Emails::instance();
@@ -413,7 +426,7 @@ class wcast_delivered_customizer_email {
413
  $email = '';
414
 
415
  if($preview_id == '' || $preview_id == 'mockup') {
416
- $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select preview order.', 'woo-advanced-shipment-tracking' ) . '</div>';
417
  echo $content;
418
  return;
419
  }
@@ -434,6 +447,7 @@ class wcast_delivered_customizer_email {
434
  }
435
 
436
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
 
437
  if($wcast_show_tracking_details == 1){
438
  ob_start();
439
  wc_get_template( 'emails/tracking-info.php', array(
@@ -441,6 +455,7 @@ class wcast_delivered_customizer_email {
441
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
442
  $message .= ob_get_clean();
443
  }
 
444
  if($wcast_show_order_details == 1){
445
 
446
  ob_start();
@@ -456,6 +471,7 @@ class wcast_delivered_customizer_email {
456
  );
457
  $message .= ob_get_clean();
458
  }
 
459
  if($wcast_show_billing_address == 1){
460
  ob_start();
461
  wc_get_template(
@@ -468,6 +484,7 @@ class wcast_delivered_customizer_email {
468
  );
469
  $message .= ob_get_clean();
470
  }
 
471
  if($wcast_show_shipping_address == 1){
472
  ob_start();
473
  wc_get_template(
@@ -480,16 +497,19 @@ class wcast_delivered_customizer_email {
480
  );
481
  $message .= ob_get_clean();
482
  }
 
483
  // create a new email
484
  $email = new WC_Email();
485
  $email->id = 'WC_Delivered_email';
486
- //echo '<pre>';print_r($email);echo '</pre>';
487
  // wrap the content with the email template and then add styles
488
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
489
-
490
  echo $message;
491
  }
492
 
 
 
 
493
  public function _appendCampaignToString($match){
494
  $url = $match[2];
495
  if (strpos($url, '?') === false) {
49
 
50
  }
51
 
52
+ /**
53
+ * add css and js for preview
54
+ */
55
+ public function enqueue_preview_scripts() {
56
  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);
57
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
58
  // Send variables to Javascript
61
  'site_title' => $this->get_blogname(),
62
  'order_number' => $preview_id,
63
  ));
64
+ }
65
+
66
+ /**
67
  * Get blog name formatted for emails.
68
  *
69
  * @return string
71
  public function get_blogname() {
72
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
73
  }
74
+
75
  /**
76
  * Checks to see if we are opening our custom customizer preview
77
  *
81
  public static function is_own_preview_request() {
82
  return isset( $_REQUEST['wcast-delivered-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-delivered-email-customizer-preview'];
83
  }
84
+
85
  /**
86
  * Checks to see if we are opening our custom customizer controls
87
  *
90
  */
91
  public static function is_own_customizer_request() {
92
  return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'customer_delivered_status_email';
93
+ }
94
+
95
  /**
96
  * Get Customizer URL
97
  *
98
  */
99
  public static function get_customizer_url($email,$return_tab) {
100
+ $customizer_url = add_query_arg( array(
101
+ 'wcast-customizer' => '1',
102
+ 'email' => $email,
103
+ 'url' => urlencode( add_query_arg( array( 'wcast-delivered-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
104
+ 'return' => urlencode( wcast_delivered_customizer_email::get_email_settings_page_url($return_tab) ),
105
+ ), admin_url( 'customize.php' ) );
 
106
  return $customizer_url;
107
+ }
108
+
109
  /**
110
  * Get WooCommerce email settings page URL
111
  *
116
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
117
  }
118
 
119
+ /**
120
+ * code for initialize default value for customizer
121
+ */
122
  public function wcast_generate_defaults() {
123
  $customizer_defaults = array(
124
  'wcast_delivered_status_email_subject' => __( 'Your order #{order_number} has been delivered', 'woo-advanced-shipment-tracking' ),
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.', 'woo-advanced-shipment-tracking' ),
211
  'section' => 'customer_delivered_status_email',
212
  'type' => 'text',
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',
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',
402
  exit;
403
  }
404
 
405
+ /**
406
+ * code for preview of delivered email
407
+ */
408
  public function preview_delivered_email(){
409
  // Load WooCommerce emails.
410
  $wc_emails = WC_Emails::instance();
426
  $email = '';
427
 
428
  if($preview_id == '' || $preview_id == 'mockup') {
429
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
430
  echo $content;
431
  return;
432
  }
447
  }
448
 
449
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
450
+
451
  if($wcast_show_tracking_details == 1){
452
  ob_start();
453
  wc_get_template( 'emails/tracking-info.php', array(
455
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
456
  $message .= ob_get_clean();
457
  }
458
+
459
  if($wcast_show_order_details == 1){
460
 
461
  ob_start();
471
  );
472
  $message .= ob_get_clean();
473
  }
474
+
475
  if($wcast_show_billing_address == 1){
476
  ob_start();
477
  wc_get_template(
484
  );
485
  $message .= ob_get_clean();
486
  }
487
+
488
  if($wcast_show_shipping_address == 1){
489
  ob_start();
490
  wc_get_template(
497
  );
498
  $message .= ob_get_clean();
499
  }
500
+
501
  // create a new email
502
  $email = new WC_Email();
503
  $email->id = 'WC_Delivered_email';
504
+
505
  // wrap the content with the email template and then add styles
506
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
 
507
  echo $message;
508
  }
509
 
510
+ /**
511
+ * code for append analytics link in email content
512
+ */
513
  public function _appendCampaignToString($match){
514
  $url = $match[2];
515
  if (strpos($url, '?') === false) {
includes/customizer/class-wc-email-customizer.php CHANGED
@@ -41,27 +41,28 @@ class wcast_initialise_customizer_email {
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
 
47
- public function enqueue_preview_scripts() {
48
  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);
49
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
50
- // Send variables to Javascript
51
  $preview_id = get_theme_mod('wcast_email_preview_order_id');
52
  wp_localize_script('wcast-email-preview-scripts', 'wcast_preview', array(
53
  'site_title' => $this->get_blogname(),
54
  'order_number' => $preview_id,
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
  * Checks to see if we are opening our custom customizer preview
67
  *
@@ -71,6 +72,7 @@ class wcast_initialise_customizer_email {
71
  public static function is_own_preview_request() {
72
  return isset( $_REQUEST['wcast-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-email-customizer-preview'];
73
  }
 
74
  /**
75
  * Checks to see if we are opening our custom customizer controls
76
  *
@@ -86,15 +88,16 @@ class wcast_initialise_customizer_email {
86
  *
87
  */
88
  public static function get_customizer_url($email) {
89
- $customizer_url = add_query_arg( array(
90
- 'wcast-customizer' => '1',
91
- 'email' => $email,
92
- 'url' => urlencode( add_query_arg( array( 'wcast-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
93
- 'return' => urlencode( wcast_initialise_customizer_email::get_email_settings_page_url() ),
94
- ), admin_url( 'customize.php' ) );
95
 
96
- return $customizer_url;
97
  }
 
98
  /**
99
  * Get Customizer URL
100
  *
@@ -108,6 +111,7 @@ class wcast_initialise_customizer_email {
108
 
109
  return $customizer_url;
110
  }
 
111
  /**
112
  * Get WooCommerce email settings page URL
113
  *
@@ -117,6 +121,10 @@ class wcast_initialise_customizer_email {
117
  public static function get_email_settings_page_url() {
118
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking' );
119
  }
 
 
 
 
120
  public function wcast_generate_defaults() {
121
  $customizer_defaults = array(
122
  'wcast_delivered_email_subject' => __( 'Your {site_title} order is now delivered', 'woo-advanced-shipment-tracking' ),
@@ -208,7 +216,7 @@ class wcast_initialise_customizer_email {
208
  );
209
  $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[recipient]',
210
  array(
211
- 'label' => __( 'Receipts', 'woo-advanced-shipment-tracking' ),
212
  'description' => esc_html__( 'Enter emails use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woo-advanced-shipment-tracking' ),
213
  'section' => 'customer_delivered_email',
214
  'type' => 'text',
@@ -231,7 +239,7 @@ class wcast_initialise_customizer_email {
231
  );
232
  $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[subject]',
233
  array(
234
- 'label' => __( 'Email subject', 'woo-advanced-shipment-tracking' ),
235
  'description' => esc_html__( 'Available variables: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
236
  'section' => 'customer_delivered_email',
237
  'type' => 'text',
@@ -254,7 +262,7 @@ class wcast_initialise_customizer_email {
254
  );
255
  $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[heading]',
256
  array(
257
- 'label' => __( 'Email heading', 'woo-advanced-shipment-tracking' ),
258
  'description' => esc_html__( 'Available variables: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
259
  'section' => 'customer_delivered_email',
260
  'type' => 'text',
@@ -408,9 +416,7 @@ class wcast_initialise_customizer_email {
408
  )
409
  ) );
410
  }
411
-
412
-
413
-
414
  /**
415
  * Set up preview
416
  *
@@ -427,6 +433,9 @@ class wcast_initialise_customizer_email {
427
  exit;
428
  }
429
 
 
 
 
430
  public function preview_delivered_email(){
431
  // Load WooCommerce emails.
432
  $wc_emails = WC_Emails::instance();
@@ -434,7 +443,7 @@ class wcast_initialise_customizer_email {
434
  $preview_id = get_theme_mod('wcast_email_preview_order_id');
435
 
436
  if($preview_id == '' || $preview_id == 'mockup') {
437
- $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select preview order.', 'woo-advanced-shipment-tracking' ) . '</div>';
438
  echo $content;
439
  return;
440
  }
@@ -477,7 +486,8 @@ class wcast_initialise_customizer_email {
477
  $content = apply_filters( 'woocommerce_mail_content', $content );
478
 
479
  echo $content;
480
- }
 
481
  /**
482
  * Get WooCommerce order for preview
483
  *
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_email_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
  *
72
  public static function is_own_preview_request() {
73
  return isset( $_REQUEST['wcast-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-email-customizer-preview'];
74
  }
75
+
76
  /**
77
  * Checks to see if we are opening our custom customizer controls
78
  *
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-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
95
+ 'return' => urlencode( wcast_initialise_customizer_email::get_email_settings_page_url() ),
96
+ ), admin_url( 'customize.php' ) );
97
 
98
+ return $customizer_url;
99
  }
100
+
101
  /**
102
  * Get Customizer URL
103
  *
111
 
112
  return $customizer_url;
113
  }
114
+
115
  /**
116
  * Get WooCommerce email settings page URL
117
  *
121
  public static function get_email_settings_page_url() {
122
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking' );
123
  }
124
+
125
+ /**
126
+ * code for initialize default value for customizer
127
+ */
128
  public function wcast_generate_defaults() {
129
  $customizer_defaults = array(
130
  'wcast_delivered_email_subject' => __( 'Your {site_title} order is now delivered', 'woo-advanced-shipment-tracking' ),
216
  );
217
  $wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[recipient]',
218
  array(
219
+ 'label' => __( 'Recipient(s)', 'woocommerce' ),
220
  'description' => esc_html__( 'Enter emails use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woo-advanced-shipment-tracking' ),
221
  'section' => 'customer_delivered_email',
222
  'type' => 'text',
239
  );
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',
262
  );
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',
416
  )
417
  ) );
418
  }
419
+
 
 
420
  /**
421
  * Set up preview
422
  *
433
  exit;
434
  }
435
 
436
+ /**
437
+ * code for preview of delivered order status email
438
+ */
439
  public function preview_delivered_email(){
440
  // Load WooCommerce emails.
441
  $wc_emails = WC_Emails::instance();
443
  $preview_id = get_theme_mod('wcast_email_preview_order_id');
444
 
445
  if($preview_id == '' || $preview_id == 'mockup') {
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
  }
486
  $content = apply_filters( 'woocommerce_mail_content', $content );
487
 
488
  echo $content;
489
+ }
490
+
491
  /**
492
  * Get WooCommerce order for preview
493
  *
includes/customizer/class-wc-failure-email-customizer.php CHANGED
@@ -47,7 +47,10 @@ class wcast_failure_customizer_email {
47
 
48
  }
49
 
50
- public function enqueue_preview_scripts() {
 
 
 
51
  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);
52
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
53
  // Send variables to Javascript
@@ -56,8 +59,9 @@ class wcast_failure_customizer_email {
56
  'site_title' => $this->get_blogname(),
57
  'order_number' => $preview_id,
58
  ));
59
- }
60
- /**
 
61
  * Get blog name formatted for emails.
62
  *
63
  * @return string
@@ -65,6 +69,7 @@ class wcast_failure_customizer_email {
65
  public function get_blogname() {
66
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
67
  }
 
68
  /**
69
  * Checks to see if we are opening our custom customizer preview
70
  *
@@ -74,6 +79,7 @@ class wcast_failure_customizer_email {
74
  public static function is_own_preview_request() {
75
  return isset( $_REQUEST['wcast-failure-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-failure-email-customizer-preview'];
76
  }
 
77
  /**
78
  * Checks to see if we are opening our custom customizer controls
79
  *
@@ -83,6 +89,7 @@ class wcast_failure_customizer_email {
83
  public static function is_own_customizer_request() {
84
  return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'customer_failure_email';
85
  }
 
86
  /**
87
  * Get Customizer URL
88
  *
@@ -97,6 +104,7 @@ class wcast_failure_customizer_email {
97
 
98
  return $customizer_url;
99
  }
 
100
  /**
101
  * Get WooCommerce email settings page URL
102
  *
@@ -107,6 +115,9 @@ class wcast_failure_customizer_email {
107
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
108
  }
109
 
 
 
 
110
  public function wcast_generate_defaults() {
111
  $customizer_defaults = array(
112
  'wcast_failure_email_subject' => __( 'Your order #{order_number} is Failed Attempt', 'woo-advanced-shipment-tracking' ),
@@ -123,6 +134,7 @@ class wcast_failure_customizer_email {
123
 
124
  return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
125
  }
 
126
  /**
127
  * Register our sample default controls
128
  */
@@ -193,7 +205,7 @@ class wcast_failure_customizer_email {
193
  );
194
  $wp_customize->add_control( 'wcast_failure_email_to',
195
  array(
196
- 'label' => __( 'To', 'woo-advanced-shipment-tracking' ),
197
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woo-advanced-shipment-tracking' ),
198
  'section' => 'customer_failure_email',
199
  'type' => 'text',
@@ -215,7 +227,7 @@ class wcast_failure_customizer_email {
215
  );
216
  $wp_customize->add_control( 'wcast_failure_email_subject',
217
  array(
218
- 'label' => __( 'Email subject', 'woo-advanced-shipment-tracking' ),
219
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
220
  'section' => 'customer_failure_email',
221
  'type' => 'text',
@@ -237,7 +249,7 @@ class wcast_failure_customizer_email {
237
  );
238
  $wp_customize->add_control( 'wcast_failure_email_heading',
239
  array(
240
- 'label' => __( 'Email heading', 'woo-advanced-shipment-tracking' ),
241
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
242
  'section' => 'customer_failure_email',
243
  'type' => 'text',
@@ -372,6 +384,7 @@ class wcast_failure_customizer_email {
372
  )
373
  ) );
374
  }
 
375
  /**
376
  * Set up preview
377
  *
@@ -388,6 +401,9 @@ class wcast_failure_customizer_email {
388
  exit;
389
  }
390
 
 
 
 
391
  public function preview_failure_email(){
392
  // Load WooCommerce emails.
393
  $wc_emails = WC_Emails::instance();
@@ -409,7 +425,7 @@ class wcast_failure_customizer_email {
409
  $email = '';
410
 
411
  if($preview_id == '' || $preview_id == 'mockup') {
412
- $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select preview order.', 'woo-advanced-shipment-tracking' ) . '</div>';
413
  echo $content;
414
  return;
415
  }
@@ -430,6 +446,7 @@ class wcast_failure_customizer_email {
430
  }
431
 
432
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
 
433
  if($wcast_show_tracking_details == 1){
434
  ob_start();
435
  wc_get_template( 'emails/tracking-info.php', array(
@@ -437,6 +454,7 @@ class wcast_failure_customizer_email {
437
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
438
  $message .= ob_get_clean();
439
  }
 
440
  if($wcast_show_order_details == 1){
441
 
442
  ob_start();
@@ -452,6 +470,7 @@ class wcast_failure_customizer_email {
452
  );
453
  $message .= ob_get_clean();
454
  }
 
455
  if($wcast_show_billing_address == 1){
456
  ob_start();
457
  wc_get_template(
@@ -464,6 +483,7 @@ class wcast_failure_customizer_email {
464
  );
465
  $message .= ob_get_clean();
466
  }
 
467
  if($wcast_show_shipping_address == 1){
468
  ob_start();
469
  wc_get_template(
@@ -479,12 +499,15 @@ class wcast_failure_customizer_email {
479
  // create a new email
480
  $email = new WC_Email();
481
  $email->id = 'WC_Delivered_email';
482
- //echo '<pre>';print_r($email);echo '</pre>';
483
  // wrap the content with the email template and then add styles
484
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
485
-
486
  echo $message;
487
  }
 
 
 
 
488
  public function _appendCampaignToString($match){
489
  $url = $match[2];
490
  if (strpos($url, '?') === false) {
47
 
48
  }
49
 
50
+ /**
51
+ * add css and js for preview
52
+ */
53
+ public function enqueue_preview_scripts() {
54
  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);
55
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
56
  // Send variables to Javascript
59
  'site_title' => $this->get_blogname(),
60
  'order_number' => $preview_id,
61
  ));
62
+ }
63
+
64
+ /**
65
  * Get blog name formatted for emails.
66
  *
67
  * @return string
69
  public function get_blogname() {
70
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
71
  }
72
+
73
  /**
74
  * Checks to see if we are opening our custom customizer preview
75
  *
79
  public static function is_own_preview_request() {
80
  return isset( $_REQUEST['wcast-failure-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-failure-email-customizer-preview'];
81
  }
82
+
83
  /**
84
  * Checks to see if we are opening our custom customizer controls
85
  *
89
  public static function is_own_customizer_request() {
90
  return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'customer_failure_email';
91
  }
92
+
93
  /**
94
  * Get Customizer URL
95
  *
104
 
105
  return $customizer_url;
106
  }
107
+
108
  /**
109
  * Get WooCommerce email settings page URL
110
  *
115
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
116
  }
117
 
118
+ /**
119
+ * code for initialize default value for customizer
120
+ */
121
  public function wcast_generate_defaults() {
122
  $customizer_defaults = array(
123
  'wcast_failure_email_subject' => __( 'Your order #{order_number} is Failed Attempt', 'woo-advanced-shipment-tracking' ),
134
 
135
  return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
136
  }
137
+
138
  /**
139
  * Register our sample default controls
140
  */
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.', 'woo-advanced-shipment-tracking' ),
210
  'section' => 'customer_failure_email',
211
  'type' => 'text',
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',
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',
384
  )
385
  ) );
386
  }
387
+
388
  /**
389
  * Set up preview
390
  *
401
  exit;
402
  }
403
 
404
+ /**
405
+ * code for preview of failure email
406
+ */
407
  public function preview_failure_email(){
408
  // Load WooCommerce emails.
409
  $wc_emails = WC_Emails::instance();
425
  $email = '';
426
 
427
  if($preview_id == '' || $preview_id == 'mockup') {
428
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
429
  echo $content;
430
  return;
431
  }
446
  }
447
 
448
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
449
+
450
  if($wcast_show_tracking_details == 1){
451
  ob_start();
452
  wc_get_template( 'emails/tracking-info.php', array(
454
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
455
  $message .= ob_get_clean();
456
  }
457
+
458
  if($wcast_show_order_details == 1){
459
 
460
  ob_start();
470
  );
471
  $message .= ob_get_clean();
472
  }
473
+
474
  if($wcast_show_billing_address == 1){
475
  ob_start();
476
  wc_get_template(
483
  );
484
  $message .= ob_get_clean();
485
  }
486
+
487
  if($wcast_show_shipping_address == 1){
488
  ob_start();
489
  wc_get_template(
499
  // create a new email
500
  $email = new WC_Email();
501
  $email->id = 'WC_Delivered_email';
502
+
503
  // wrap the content with the email template and then add styles
504
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
 
505
  echo $message;
506
  }
507
+
508
+ /**
509
+ * code for append analytics link in email content
510
+ */
511
  public function _appendCampaignToString($match){
512
  $url = $match[2];
513
  if (strpos($url, '?') === false) {
includes/customizer/class-wc-intransit-email-customizer.php CHANGED
@@ -14,6 +14,7 @@ class wcast_intransit_customizer_email {
14
  $this->defaults = $this->wcast_generate_defaults();
15
 
16
  $wc_ast_api_key = get_option('wc_ast_api_key');
 
17
  if(!$wc_ast_api_key){
18
  return;
19
  }
@@ -49,7 +50,10 @@ class wcast_intransit_customizer_email {
49
 
50
  }
51
 
52
- public function enqueue_preview_scripts() {
 
 
 
53
  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);
54
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
55
  // Send variables to Javascript
@@ -58,8 +62,9 @@ class wcast_intransit_customizer_email {
58
  'site_title' => $this->get_blogname(),
59
  'order_number' => $preview_id,
60
  ));
61
- }
62
- /**
 
63
  * Get blog name formatted for emails.
64
  *
65
  * @return string
@@ -67,6 +72,7 @@ class wcast_intransit_customizer_email {
67
  public function get_blogname() {
68
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
69
  }
 
70
  /**
71
  * Checks to see if we are opening our custom customizer preview
72
  *
@@ -76,6 +82,7 @@ class wcast_intransit_customizer_email {
76
  public static function is_own_preview_request() {
77
  return isset( $_REQUEST['wcast-intransit-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-intransit-email-customizer-preview'];
78
  }
 
79
  /**
80
  * Checks to see if we are opening our custom customizer controls
81
  *
@@ -85,6 +92,7 @@ class wcast_intransit_customizer_email {
85
  public static function is_own_customizer_request() {
86
  return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'customer_intransit_email';
87
  }
 
88
  /**
89
  * Get Customizer URL
90
  *
@@ -99,6 +107,7 @@ class wcast_intransit_customizer_email {
99
 
100
  return $customizer_url;
101
  }
 
102
  /**
103
  * Get WooCommerce email settings page URL
104
  *
@@ -109,6 +118,9 @@ class wcast_intransit_customizer_email {
109
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
110
  }
111
 
 
 
 
112
  public function wcast_generate_defaults() {
113
  $customizer_defaults = array(
114
  'wcast_intransit_email_subject' => __( 'Your order #{order_number} is in transit', 'woo-advanced-shipment-tracking' ),
@@ -125,6 +137,7 @@ class wcast_intransit_customizer_email {
125
 
126
  return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
127
  }
 
128
  /**
129
  * Register our sample default controls
130
  */
@@ -196,7 +209,7 @@ class wcast_intransit_customizer_email {
196
  );
197
  $wp_customize->add_control( 'wcast_intransit_email_to',
198
  array(
199
- 'label' => __( 'To', 'woo-advanced-shipment-tracking' ),
200
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woo-advanced-shipment-tracking' ),
201
  'section' => 'customer_intransit_email',
202
  'type' => 'text',
@@ -218,7 +231,7 @@ class wcast_intransit_customizer_email {
218
  );
219
  $wp_customize->add_control( 'wcast_intransit_email_subject',
220
  array(
221
- 'label' => __( 'Email subject', 'woo-advanced-shipment-tracking' ),
222
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
223
  'section' => 'customer_intransit_email',
224
  'type' => 'text',
@@ -240,7 +253,7 @@ class wcast_intransit_customizer_email {
240
  );
241
  $wp_customize->add_control( 'wcast_intransit_email_heading',
242
  array(
243
- 'label' => __( 'Email heading', 'woo-advanced-shipment-tracking' ),
244
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
245
  'section' => 'customer_intransit_email',
246
  'type' => 'text',
@@ -375,6 +388,7 @@ class wcast_intransit_customizer_email {
375
  )
376
  ) );
377
  }
 
378
  /**
379
  * Set up preview
380
  *
@@ -391,13 +405,15 @@ class wcast_intransit_customizer_email {
391
  exit;
392
  }
393
 
 
 
 
394
  public function preview_intransit_email(){
395
  // Load WooCommerce emails.
396
  $wc_emails = WC_Emails::instance();
397
  $emails = $wc_emails->get_emails();
398
  $preview_id = get_theme_mod('wcast_intransit_email_preview_order_id');
399
-
400
-
401
  $email_heading = get_theme_mod('wcast_intransit_email_heading');
402
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
403
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
@@ -412,10 +428,11 @@ class wcast_intransit_customizer_email {
412
  $email = '';
413
 
414
  if($preview_id == '' || $preview_id == 'mockup') {
415
- $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select preview order.', 'woo-advanced-shipment-tracking' ) . '</div>';
416
  echo $content;
417
  return;
418
  }
 
419
  $order = wc_get_order( $preview_id );
420
  $mailer = WC()->mailer();
421
 
@@ -433,6 +450,7 @@ class wcast_intransit_customizer_email {
433
  }
434
 
435
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
 
436
  if($wcast_show_tracking_details == 1){
437
  ob_start();
438
  wc_get_template( 'emails/tracking-info.php', array(
@@ -440,8 +458,8 @@ class wcast_intransit_customizer_email {
440
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
441
  $message .= ob_get_clean();
442
  }
443
- if($wcast_show_order_details == 1){
444
-
445
  ob_start();
446
  wc_get_template(
447
  'emails/wcast-email-order-details.php', array(
@@ -455,6 +473,7 @@ class wcast_intransit_customizer_email {
455
  );
456
  $message .= ob_get_clean();
457
  }
 
458
  if($wcast_show_billing_address == 1){
459
  ob_start();
460
  wc_get_template(
@@ -467,6 +486,7 @@ class wcast_intransit_customizer_email {
467
  );
468
  $message .= ob_get_clean();
469
  }
 
470
  if($wcast_show_shipping_address == 1){
471
  ob_start();
472
  wc_get_template(
@@ -481,14 +501,15 @@ class wcast_intransit_customizer_email {
481
  }
482
  // create a new email
483
  $email = new WC_Email();
484
- $email->id = 'WC_Delivered_email';
485
- //echo '<pre>';print_r($email);echo '</pre>';
486
  // wrap the content with the email template and then add styles
487
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
488
-
489
  echo $message;
490
  }
491
-
 
 
 
492
  public function _appendCampaignToString($match){
493
  $url = $match[2];
494
  if (strpos($url, '?') === false) {
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
  }
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
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
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
  *
82
  public static function is_own_preview_request() {
83
  return isset( $_REQUEST['wcast-intransit-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-intransit-email-customizer-preview'];
84
  }
85
+
86
  /**
87
  * Checks to see if we are opening our custom customizer controls
88
  *
92
  public static function is_own_customizer_request() {
93
  return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'customer_intransit_email';
94
  }
95
+
96
  /**
97
  * Get Customizer URL
98
  *
107
 
108
  return $customizer_url;
109
  }
110
+
111
  /**
112
  * Get WooCommerce email settings page URL
113
  *
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_intransit_email_subject' => __( 'Your order #{order_number} is in transit', 'woo-advanced-shipment-tracking' ),
137
 
138
  return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
139
  }
140
+
141
  /**
142
  * Register our sample default controls
143
  */
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.', 'woo-advanced-shipment-tracking' ),
214
  'section' => 'customer_intransit_email',
215
  'type' => 'text',
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',
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',
388
  )
389
  ) );
390
  }
391
+
392
  /**
393
  * Set up preview
394
  *
405
  exit;
406
  }
407
 
408
+ /**
409
+ * code for preview of in transit email
410
+ */
411
  public function preview_intransit_email(){
412
  // Load WooCommerce emails.
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 );
428
  $email = '';
429
 
430
  if($preview_id == '' || $preview_id == 'mockup') {
431
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
432
  echo $content;
433
  return;
434
  }
435
+
436
  $order = wc_get_order( $preview_id );
437
  $mailer = WC()->mailer();
438
 
450
  }
451
 
452
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
453
+
454
  if($wcast_show_tracking_details == 1){
455
  ob_start();
456
  wc_get_template( 'emails/tracking-info.php', array(
458
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
459
  $message .= ob_get_clean();
460
  }
461
+
462
+ if($wcast_show_order_details == 1){
463
  ob_start();
464
  wc_get_template(
465
  'emails/wcast-email-order-details.php', array(
473
  );
474
  $message .= ob_get_clean();
475
  }
476
+
477
  if($wcast_show_billing_address == 1){
478
  ob_start();
479
  wc_get_template(
486
  );
487
  $message .= ob_get_clean();
488
  }
489
+
490
  if($wcast_show_shipping_address == 1){
491
  ob_start();
492
  wc_get_template(
501
  }
502
  // create a new email
503
  $email = new WC_Email();
504
+ $email->id = 'WC_Delivered_email';
 
505
  // wrap the content with the email template and then add styles
506
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
 
507
  echo $message;
508
  }
509
+
510
+ /**
511
+ * code for append analytics link in email content
512
+ */
513
  public function _appendCampaignToString($match){
514
  $url = $match[2];
515
  if (strpos($url, '?') === false) {
includes/customizer/class-wc-outfordelivery-email-customizer.php CHANGED
@@ -49,7 +49,10 @@ class wcast_outfordelivery_customizer_email {
49
 
50
  }
51
 
52
- public function enqueue_preview_scripts() {
 
 
 
53
  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);
54
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
55
  // Send variables to Javascript
@@ -58,8 +61,9 @@ class wcast_outfordelivery_customizer_email {
58
  'site_title' => $this->get_blogname(),
59
  'order_number' => $preview_id,
60
  ));
61
- }
62
- /**
 
63
  * Get blog name formatted for emails.
64
  *
65
  * @return string
@@ -67,6 +71,7 @@ class wcast_outfordelivery_customizer_email {
67
  public function get_blogname() {
68
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
69
  }
 
70
  /**
71
  * Checks to see if we are opening our custom customizer preview
72
  *
@@ -76,6 +81,7 @@ class wcast_outfordelivery_customizer_email {
76
  public static function is_own_preview_request() {
77
  return isset( $_REQUEST['wcast-outfordelivery-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-outfordelivery-email-customizer-preview'];
78
  }
 
79
  /**
80
  * Checks to see if we are opening our custom customizer controls
81
  *
@@ -85,6 +91,7 @@ class wcast_outfordelivery_customizer_email {
85
  public static function is_own_customizer_request() {
86
  return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'customer_outfordelivery_email';
87
  }
 
88
  /**
89
  * Get Customizer URL
90
  *
@@ -99,6 +106,7 @@ class wcast_outfordelivery_customizer_email {
99
 
100
  return $customizer_url;
101
  }
 
102
  /**
103
  * Get WooCommerce email settings page URL
104
  *
@@ -109,6 +117,9 @@ class wcast_outfordelivery_customizer_email {
109
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
110
  }
111
 
 
 
 
112
  public function wcast_generate_defaults() {
113
  $customizer_defaults = array(
114
  'wcast_outfordelivery_email_subject' => __( 'Your order #{order_number} is out for delivery', 'woo-advanced-shipment-tracking' ),
@@ -196,7 +207,7 @@ class wcast_outfordelivery_customizer_email {
196
  );
197
  $wp_customize->add_control( 'wcast_outfordelivery_email_to',
198
  array(
199
- 'label' => __( 'To', 'woo-advanced-shipment-tracking' ),
200
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woo-advanced-shipment-tracking' ),
201
  'section' => 'customer_outfordelivery_email',
202
  'type' => 'text',
@@ -218,7 +229,7 @@ class wcast_outfordelivery_customizer_email {
218
  );
219
  $wp_customize->add_control( 'wcast_outfordelivery_email_subject',
220
  array(
221
- 'label' => __( 'Email subject', 'woo-advanced-shipment-tracking' ),
222
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
223
  'section' => 'customer_outfordelivery_email',
224
  'type' => 'text',
@@ -240,7 +251,7 @@ class wcast_outfordelivery_customizer_email {
240
  );
241
  $wp_customize->add_control( 'wcast_outfordelivery_email_heading',
242
  array(
243
- 'label' => __( 'Email heading', 'woo-advanced-shipment-tracking' ),
244
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
245
  'section' => 'customer_outfordelivery_email',
246
  'type' => 'text',
@@ -374,7 +385,8 @@ class wcast_outfordelivery_customizer_email {
374
  'section' => 'customer_outfordelivery_email',
375
  )
376
  ) );
377
- }
 
378
  /**
379
  * Set up preview
380
  *
@@ -391,12 +403,14 @@ class wcast_outfordelivery_customizer_email {
391
  exit;
392
  }
393
 
 
 
 
394
  public function preview_outfordelivery_email(){
395
  // Load WooCommerce emails.
396
  $wc_emails = WC_Emails::instance();
397
  $emails = $wc_emails->get_emails();
398
- $preview_id = get_theme_mod('wcast_outfordelivery_email_preview_order_id');
399
-
400
 
401
  $email_heading = get_theme_mod('wcast_outfordelivery_email_heading');
402
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
@@ -412,10 +426,11 @@ class wcast_outfordelivery_customizer_email {
412
  $email = '';
413
 
414
  if($preview_id == '' || $preview_id == 'mockup') {
415
- $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select preview order.', 'woo-advanced-shipment-tracking' ) . '</div>';
416
  echo $content;
417
  return;
418
- }
 
419
  $order = wc_get_order( $preview_id );
420
  $mailer = WC()->mailer();
421
 
@@ -433,6 +448,7 @@ class wcast_outfordelivery_customizer_email {
433
  }
434
 
435
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
 
436
  if($wcast_show_tracking_details == 1){
437
  ob_start();
438
  wc_get_template( 'emails/tracking-info.php', array(
@@ -440,6 +456,7 @@ class wcast_outfordelivery_customizer_email {
440
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
441
  $message .= ob_get_clean();
442
  }
 
443
  if($wcast_show_order_details == 1){
444
 
445
  ob_start();
@@ -455,6 +472,7 @@ class wcast_outfordelivery_customizer_email {
455
  );
456
  $message .= ob_get_clean();
457
  }
 
458
  if($wcast_show_billing_address == 1){
459
  ob_start();
460
  wc_get_template(
@@ -467,6 +485,7 @@ class wcast_outfordelivery_customizer_email {
467
  );
468
  $message .= ob_get_clean();
469
  }
 
470
  if($wcast_show_shipping_address == 1){
471
  ob_start();
472
  wc_get_template(
@@ -478,17 +497,20 @@ class wcast_outfordelivery_customizer_email {
478
  wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
479
  );
480
  $message .= ob_get_clean();
481
- }
 
482
  // create a new email
483
  $email = new WC_Email();
484
  $email->id = 'WC_Delivered_email';
485
- //echo '<pre>';print_r($email);echo '</pre>';
486
  // wrap the content with the email template and then add styles
487
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
488
-
489
  echo $message;
490
  }
491
-
 
 
 
492
  public function _appendCampaignToString($match){
493
  $url = $match[2];
494
  if (strpos($url, '?') === false) {
49
 
50
  }
51
 
52
+ /**
53
+ * add css and js for preview
54
+ */
55
+ public function enqueue_preview_scripts() {
56
  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);
57
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
58
  // Send variables to Javascript
61
  'site_title' => $this->get_blogname(),
62
  'order_number' => $preview_id,
63
  ));
64
+ }
65
+
66
+ /**
67
  * Get blog name formatted for emails.
68
  *
69
  * @return string
71
  public function get_blogname() {
72
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
73
  }
74
+
75
  /**
76
  * Checks to see if we are opening our custom customizer preview
77
  *
81
  public static function is_own_preview_request() {
82
  return isset( $_REQUEST['wcast-outfordelivery-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-outfordelivery-email-customizer-preview'];
83
  }
84
+
85
  /**
86
  * Checks to see if we are opening our custom customizer controls
87
  *
91
  public static function is_own_customizer_request() {
92
  return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'customer_outfordelivery_email';
93
  }
94
+
95
  /**
96
  * Get Customizer URL
97
  *
106
 
107
  return $customizer_url;
108
  }
109
+
110
  /**
111
  * Get WooCommerce email settings page URL
112
  *
117
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
118
  }
119
 
120
+ /**
121
+ * code for initialize default value for customizer
122
+ */
123
  public function wcast_generate_defaults() {
124
  $customizer_defaults = array(
125
  'wcast_outfordelivery_email_subject' => __( 'Your order #{order_number} is out for delivery', 'woo-advanced-shipment-tracking' ),
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.', 'woo-advanced-shipment-tracking' ),
212
  'section' => 'customer_outfordelivery_email',
213
  'type' => 'text',
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',
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',
385
  'section' => 'customer_outfordelivery_email',
386
  )
387
  ) );
388
+ }
389
+
390
  /**
391
  * Set up preview
392
  *
403
  exit;
404
  }
405
 
406
+ /**
407
+ * code for preview of out for delivery email
408
+ */
409
  public function preview_outfordelivery_email(){
410
  // Load WooCommerce emails.
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 );
426
  $email = '';
427
 
428
  if($preview_id == '' || $preview_id == 'mockup') {
429
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
430
  echo $content;
431
  return;
432
+ }
433
+
434
  $order = wc_get_order( $preview_id );
435
  $mailer = WC()->mailer();
436
 
448
  }
449
 
450
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
451
+
452
  if($wcast_show_tracking_details == 1){
453
  ob_start();
454
  wc_get_template( 'emails/tracking-info.php', array(
456
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
457
  $message .= ob_get_clean();
458
  }
459
+
460
  if($wcast_show_order_details == 1){
461
 
462
  ob_start();
472
  );
473
  $message .= ob_get_clean();
474
  }
475
+
476
  if($wcast_show_billing_address == 1){
477
  ob_start();
478
  wc_get_template(
485
  );
486
  $message .= ob_get_clean();
487
  }
488
+
489
  if($wcast_show_shipping_address == 1){
490
  ob_start();
491
  wc_get_template(
497
  wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
498
  );
499
  $message .= ob_get_clean();
500
+ }
501
+
502
  // create a new email
503
  $email = new WC_Email();
504
  $email->id = 'WC_Delivered_email';
505
+
506
  // wrap the content with the email template and then add styles
507
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
 
508
  echo $message;
509
  }
510
+
511
+ /**
512
+ * code for append analytics link in email content
513
+ */
514
  public function _appendCampaignToString($match){
515
  $url = $match[2];
516
  if (strpos($url, '?') === false) {
includes/customizer/class-wc-returntosender-email-customizer.php CHANGED
@@ -47,7 +47,10 @@ class wcast_returntosender_customizer_email {
47
 
48
  }
49
 
50
- public function enqueue_preview_scripts() {
 
 
 
51
  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);
52
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
53
  // Send variables to Javascript
@@ -56,8 +59,9 @@ class wcast_returntosender_customizer_email {
56
  'site_title' => $this->get_blogname(),
57
  'order_number' => $preview_id,
58
  ));
59
- }
60
- /**
 
61
  * Get blog name formatted for emails.
62
  *
63
  * @return string
@@ -75,6 +79,7 @@ class wcast_returntosender_customizer_email {
75
  public static function is_own_preview_request() {
76
  return isset( $_REQUEST['wcast-returntosender-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-returntosender-email-customizer-preview'];
77
  }
 
78
  /**
79
  * Checks to see if we are opening our custom customizer controls
80
  *
@@ -110,6 +115,9 @@ class wcast_returntosender_customizer_email {
110
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
111
  }
112
 
 
 
 
113
  public function wcast_generate_defaults() {
114
  $customizer_defaults = array(
115
  'wcast_returntosender_email_subject' => __( 'Your order #{order_number} has returned to sender', 'woo-advanced-shipment-tracking' ),
@@ -197,7 +205,7 @@ class wcast_returntosender_customizer_email {
197
  );
198
  $wp_customize->add_control( 'wcast_returntosender_email_to',
199
  array(
200
- 'label' => __( 'To', 'woo-advanced-shipment-tracking' ),
201
  'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woo-advanced-shipment-tracking' ),
202
  'section' => 'customer_returntosender_email',
203
  'type' => 'text',
@@ -219,7 +227,7 @@ class wcast_returntosender_customizer_email {
219
  );
220
  $wp_customize->add_control( 'wcast_returntosender_email_subject',
221
  array(
222
- 'label' => __( 'Email subject', 'woo-advanced-shipment-tracking' ),
223
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
224
  'section' => 'customer_returntosender_email',
225
  'type' => 'text',
@@ -241,7 +249,7 @@ class wcast_returntosender_customizer_email {
241
  );
242
  $wp_customize->add_control( 'wcast_returntosender_email_heading',
243
  array(
244
- 'label' => __( 'Email heading', 'woo-advanced-shipment-tracking' ),
245
  'description' => esc_html__( 'Available placeholders: {site_title}, {order_number}', 'woo-advanced-shipment-tracking' ),
246
  'section' => 'customer_returntosender_email',
247
  'type' => 'text',
@@ -392,14 +400,16 @@ class wcast_returntosender_customizer_email {
392
  include wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/preview/returntosender_preview.php';
393
  exit;
394
  }
395
-
 
 
 
396
  public function preview_returntosender_email(){
397
  // Load WooCommerce emails.
398
  $wc_emails = WC_Emails::instance();
399
  $emails = $wc_emails->get_emails();
400
  $preview_id = get_theme_mod('wcast_returntosender_email_preview_order_id');
401
-
402
-
403
  $email_heading = get_theme_mod('wcast_returntosender_email_heading');
404
  $email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
405
  $email_heading = str_replace( '{order_number}', $preview_id, $email_heading );
@@ -414,10 +424,11 @@ class wcast_returntosender_customizer_email {
414
  $email = '';
415
 
416
  if($preview_id == '' || $preview_id == 'mockup') {
417
- $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select preview order.', 'woo-advanced-shipment-tracking' ) . '</div>';
418
  echo $content;
419
  return;
420
  }
 
421
  $order = wc_get_order( $preview_id );
422
  $mailer = WC()->mailer();
423
 
@@ -435,6 +446,7 @@ class wcast_returntosender_customizer_email {
435
  }
436
 
437
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
 
438
  if($wcast_show_tracking_details == 1){
439
  ob_start();
440
  wc_get_template( 'emails/tracking-info.php', array(
@@ -442,6 +454,7 @@ class wcast_returntosender_customizer_email {
442
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
443
  $message .= ob_get_clean();
444
  }
 
445
  if($wcast_show_order_details == 1){
446
 
447
  ob_start();
@@ -457,6 +470,7 @@ class wcast_returntosender_customizer_email {
457
  );
458
  $message .= ob_get_clean();
459
  }
 
460
  if($wcast_show_billing_address == 1){
461
  ob_start();
462
  wc_get_template(
@@ -469,6 +483,7 @@ class wcast_returntosender_customizer_email {
469
  );
470
  $message .= ob_get_clean();
471
  }
 
472
  if($wcast_show_shipping_address == 1){
473
  ob_start();
474
  wc_get_template(
@@ -481,16 +496,19 @@ class wcast_returntosender_customizer_email {
481
  );
482
  $message .= ob_get_clean();
483
  }
 
484
  // create a new email
485
  $email = new WC_Email();
486
  $email->id = 'WC_Delivered_email';
487
- //echo '<pre>';print_r($email);echo '</pre>';
488
  // wrap the content with the email template and then add styles
489
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
490
-
491
  echo $message;
492
  }
493
-
 
 
 
494
  public function _appendCampaignToString($match){
495
  $url = $match[2];
496
  if (strpos($url, '?') === false) {
47
 
48
  }
49
 
50
+ /**
51
+ * add css and js for preview
52
+ */
53
+ public function enqueue_preview_scripts() {
54
  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);
55
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
56
  // Send variables to Javascript
59
  'site_title' => $this->get_blogname(),
60
  'order_number' => $preview_id,
61
  ));
62
+ }
63
+
64
+ /**
65
  * Get blog name formatted for emails.
66
  *
67
  * @return string
79
  public static function is_own_preview_request() {
80
  return isset( $_REQUEST['wcast-returntosender-email-customizer-preview'] ) && '1' === $_REQUEST['wcast-returntosender-email-customizer-preview'];
81
  }
82
+
83
  /**
84
  * Checks to see if we are opening our custom customizer controls
85
  *
115
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
116
  }
117
 
118
+ /**
119
+ * code for initialize default value for customizer
120
+ */
121
  public function wcast_generate_defaults() {
122
  $customizer_defaults = array(
123
  'wcast_returntosender_email_subject' => __( 'Your order #{order_number} has returned to sender', 'woo-advanced-shipment-tracking' ),
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.', 'woo-advanced-shipment-tracking' ),
210
  'section' => 'customer_returntosender_email',
211
  'type' => 'text',
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',
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',
400
  include wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/preview/returntosender_preview.php';
401
  exit;
402
  }
403
+
404
+ /**
405
+ * code for preview of return to sender email
406
+ */
407
  public function preview_returntosender_email(){
408
  // Load WooCommerce emails.
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 );
424
  $email = '';
425
 
426
  if($preview_id == '' || $preview_id == 'mockup') {
427
+ $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select order to preview.', 'woo-advanced-shipment-tracking' ) . '</div>';
428
  echo $content;
429
  return;
430
  }
431
+
432
  $order = wc_get_order( $preview_id );
433
  $mailer = WC()->mailer();
434
 
446
  }
447
 
448
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
449
+
450
  if($wcast_show_tracking_details == 1){
451
  ob_start();
452
  wc_get_template( 'emails/tracking-info.php', array(
454
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
455
  $message .= ob_get_clean();
456
  }
457
+
458
  if($wcast_show_order_details == 1){
459
 
460
  ob_start();
470
  );
471
  $message .= ob_get_clean();
472
  }
473
+
474
  if($wcast_show_billing_address == 1){
475
  ob_start();
476
  wc_get_template(
483
  );
484
  $message .= ob_get_clean();
485
  }
486
+
487
  if($wcast_show_shipping_address == 1){
488
  ob_start();
489
  wc_get_template(
496
  );
497
  $message .= ob_get_clean();
498
  }
499
+
500
  // create a new email
501
  $email = new WC_Email();
502
  $email->id = 'WC_Delivered_email';
503
+
504
  // wrap the content with the email template and then add styles
505
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
 
506
  echo $message;
507
  }
508
+
509
+ /**
510
+ * code for append analytics link in email content
511
+ */
512
  public function _appendCampaignToString($match){
513
  $url = $match[2];
514
  if (strpos($url, '?') === false) {
includes/customizer/class-wc-tracking-info-customizer.php CHANGED
@@ -10,10 +10,10 @@
10
  class wcast_initialise_customizer_settings {
11
  // Get our default values
12
  private static $order_ids = null;
 
13
  public function __construct() {
14
  // Get our Customizer defaults
15
- $this->defaults = $this->wcast_generate_defaults();
16
-
17
 
18
  // Register our sample default controls
19
  add_action( 'customize_register', array( $this, 'wcast_register_sample_default_controls' ) );
@@ -21,8 +21,7 @@ class wcast_initialise_customizer_settings {
21
  // Only proceed if this is own request.
22
  if ( ! wcast_initialise_customizer_settings::is_own_customizer_request() && ! wcast_initialise_customizer_settings::is_own_preview_request() ) {
23
  return;
24
- }
25
- // Set up preview.
26
 
27
  // Register our Panels
28
  add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
@@ -49,7 +48,10 @@ class wcast_initialise_customizer_settings {
49
  add_action( 'customize_preview_init', array( $this, 'enqueue_preview_scripts' ) );
50
  }
51
 
52
- public function enqueue_preview_scripts() {
 
 
 
53
  wp_enqueue_script('wcast-preview-scripts', wc_advanced_shipment_tracking()->plugin_dir_url() . '/assets/js/preview-scripts.js', array('jquery', 'customize-preview'), wc_advanced_shipment_tracking()->version, true);
54
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
55
  $preview_id = get_theme_mod('wcast_email_preview_order_id');
@@ -57,12 +59,13 @@ class wcast_initialise_customizer_settings {
57
  'site_title' => $this->get_blogname(),
58
  'order_number' => $preview_id,
59
  ));
60
- }
61
- /**
62
- * Get blog name formatted for emails.
63
- *
64
- * @return string
65
- */
 
66
  public function get_blogname() {
67
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
68
  }
@@ -76,6 +79,7 @@ class wcast_initialise_customizer_settings {
76
  public static function is_own_preview_request() {
77
  return isset( $_REQUEST['wcast-tracking-preview'] ) && '1' === $_REQUEST['wcast-tracking-preview'];
78
  }
 
79
  /**
80
  * Checks to see if we are opening our custom customizer controls
81
  *
@@ -84,7 +88,8 @@ class wcast_initialise_customizer_settings {
84
  */
85
  public static function is_own_customizer_request() {
86
  return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'default_controls_section';
87
- }
 
88
  /**
89
  * Get Customizer URL
90
  *
@@ -99,7 +104,8 @@ class wcast_initialise_customizer_settings {
99
  ), admin_url( 'customize.php' ) );
100
 
101
  return $customizer_url;
102
- }
 
103
  /**
104
  * Get WooCommerce email settings page URL
105
  *
@@ -109,6 +115,10 @@ class wcast_initialise_customizer_settings {
109
  public static function get_email_settings_page_url($return_tab) {
110
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
111
  }
 
 
 
 
112
  public function wcast_generate_defaults() {
113
  $customizer_defaults = array(
114
  'display_shipment_provider_image' => '',
@@ -140,6 +150,7 @@ class wcast_initialise_customizer_settings {
140
 
141
  return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
142
  }
 
143
  /**
144
  * Register our sample default controls
145
  */
@@ -148,6 +159,12 @@ class wcast_initialise_customizer_settings {
148
  * Load all our Customizer Custom Controls
149
  */
150
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
 
 
 
 
 
 
151
  // Preview Order
152
  $wp_customize->add_setting( 'wcast_preview_order_id',
153
  array(
@@ -168,7 +185,21 @@ class wcast_initialise_customizer_settings {
168
  'choices' => wcast_customizer()->get_order_ids(),
169
  )
170
  ) );
171
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  // Tracking Display Position
173
  $wp_customize->add_setting( 'display_tracking_info_at',
174
  array(
@@ -233,16 +264,16 @@ class wcast_initialise_customizer_settings {
233
  );
234
 
235
  // Test of Toggle Switch Custom Control
236
- $wp_customize->add_setting( 'table_header',
237
  array(
238
  'default' => '',
239
  'transport' => 'postMessage',
240
  'sanitize_callback' => ''
241
  )
242
  );
243
- $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'table_header',
244
  array(
245
- 'label' => __( 'Table Layout', 'woo-advanced-shipment-tracking' ),
246
  'section' => 'default_controls_section'
247
  )
248
  ) );
@@ -281,6 +312,38 @@ class wcast_initialise_customizer_settings {
281
  )
282
  );
283
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  // Provider Header Text
285
  $wp_customize->add_setting( 'provider_header_text',
286
  array(
@@ -383,6 +446,39 @@ class wcast_initialise_customizer_settings {
383
  )
384
  );
385
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
386
  // Test of Toggle Switch Custom Control
387
  $wp_customize->add_setting( 'table_header',
388
  array(
@@ -476,7 +572,7 @@ class wcast_initialise_customizer_settings {
476
  'section' => 'default_controls_section',
477
  'type' => 'select',
478
  'choices' => array(
479
- '' => __( 'Select', 'woo-advanced-shipment-tracking' ),
480
  '1' => '1 px',
481
  '2' => '2 px',
482
  '3' => '3 px',
@@ -500,53 +596,15 @@ class wcast_initialise_customizer_settings {
500
  'section' => 'default_controls_section',
501
  'type' => 'select',
502
  'choices' => array(
503
- '' => __( 'Select', 'woo-advanced-shipment-tracking' ),
504
- 'left' => __( 'Left', 'woo-advanced-shipment-tracking' ),
505
- 'right' => __( 'Right', 'woo-advanced-shipment-tracking' ),
506
- 'center' => __( 'Center', 'woo-advanced-shipment-tracking' )
507
  )
508
  )
509
- );
510
-
511
- $font_size_array[ '' ] = __( 'Select', 'woo-advanced-shipment-tracking' );
512
- for ( $i = 10; $i <= 30; $i++ ) {
513
- $font_size_array[ $i ] = $i."px";
514
- }
515
- // Table header font size
516
- $wp_customize->add_setting( 'table_header_font_size',
517
- array(
518
- 'default' => $this->defaults['table_header_font_size'],
519
- 'transport' => 'postMessage',
520
- 'sanitize_callback' => ''
521
- )
522
- );
523
- $wp_customize->add_control( 'table_header_font_size',
524
- array(
525
- 'label' => __( 'Table header font size', 'woo-advanced-shipment-tracking' ),
526
- 'section' => 'default_controls_section',
527
- 'type' => 'select',
528
- 'choices' => $font_size_array
529
- )
530
- );
531
-
532
 
533
 
534
- // Table header font color
535
- $wp_customize->add_setting( 'table_header_font_color',
536
- array(
537
- 'default' => $this->defaults['table_header_font_color'],
538
- 'transport' => 'postMessage',
539
- 'sanitize_callback' => ''
540
- )
541
- );
542
- $wp_customize->add_control( 'table_header_font_color',
543
- array(
544
- 'label' => __( 'Table header font color', 'woo-advanced-shipment-tracking' ),
545
- 'section' => 'default_controls_section',
546
- 'type' => 'color'
547
- )
548
- );
549
-
550
  // Table content font size
551
  $wp_customize->add_setting( 'table_content_font_size',
552
  array(
@@ -633,7 +691,7 @@ class wcast_initialise_customizer_settings {
633
 
634
  $wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'shipment_link_header',
635
  array(
636
- 'label' => __( 'Track Link', 'woo-advanced-shipment-tracking' ),
637
  'section' => 'default_controls_section'
638
  )
639
  ) );
@@ -702,6 +760,9 @@ class wcast_initialise_customizer_settings {
702
  exit;
703
  }
704
 
 
 
 
705
  public function preview_completed_email(){
706
 
707
  $ast = new WC_Advanced_Shipment_Tracking_Actions;
@@ -727,7 +788,7 @@ class wcast_initialise_customizer_settings {
727
  $order_status = 'completed';
728
 
729
  if($preview_id == '' || $preview_id == 'mockup') {
730
- $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select preview order.', 'woo-advanced-shipment-tracking' ) . '</div>';
731
  echo $content;
732
  return;
733
  }
@@ -764,6 +825,7 @@ class wcast_initialise_customizer_settings {
764
  }
765
  echo $content;
766
  }
 
767
  /**
768
  * Get WooCommerce order for preview
769
  *
@@ -774,8 +836,7 @@ class wcast_initialise_customizer_settings {
774
  public static function get_wc_order_for_preview( $order_status = null, $order_id = null ) {
775
  if ( ! empty( $order_id ) && 'mockup' != $order_id ) {
776
  return wc_get_order( $order_id );
777
- } else {
778
- // Use mockup order
779
 
780
  // Instantiate order object
781
  $order = new WC_Order();
@@ -818,7 +879,6 @@ class wcast_initialise_customizer_settings {
818
  // Return mockup order
819
  return $order;
820
  }
821
-
822
  }
823
  }
824
  /**
10
  class wcast_initialise_customizer_settings {
11
  // Get our default values
12
  private static $order_ids = null;
13
+
14
  public function __construct() {
15
  // Get our Customizer defaults
16
+ $this->defaults = $this->wcast_generate_defaults();
 
17
 
18
  // Register our sample default controls
19
  add_action( 'customize_register', array( $this, 'wcast_register_sample_default_controls' ) );
21
  // Only proceed if this is own request.
22
  if ( ! wcast_initialise_customizer_settings::is_own_customizer_request() && ! wcast_initialise_customizer_settings::is_own_preview_request() ) {
23
  return;
24
+ }
 
25
 
26
  // Register our Panels
27
  add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
48
  add_action( 'customize_preview_init', array( $this, 'enqueue_preview_scripts' ) );
49
  }
50
 
51
+ /**
52
+ * add css and js for preview
53
+ */
54
+ public function enqueue_preview_scripts() {
55
  wp_enqueue_script('wcast-preview-scripts', wc_advanced_shipment_tracking()->plugin_dir_url() . '/assets/js/preview-scripts.js', array('jquery', 'customize-preview'), wc_advanced_shipment_tracking()->version, true);
56
  wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
57
  $preview_id = get_theme_mod('wcast_email_preview_order_id');
59
  'site_title' => $this->get_blogname(),
60
  'order_number' => $preview_id,
61
  ));
62
+ }
63
+
64
+ /**
65
+ * Get blog name formatted for emails.
66
+ *
67
+ * @return string
68
+ */
69
  public function get_blogname() {
70
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
71
  }
79
  public static function is_own_preview_request() {
80
  return isset( $_REQUEST['wcast-tracking-preview'] ) && '1' === $_REQUEST['wcast-tracking-preview'];
81
  }
82
+
83
  /**
84
  * Checks to see if we are opening our custom customizer controls
85
  *
88
  */
89
  public static function is_own_customizer_request() {
90
  return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'default_controls_section';
91
+ }
92
+
93
  /**
94
  * Get Customizer URL
95
  *
104
  ), admin_url( 'customize.php' ) );
105
 
106
  return $customizer_url;
107
+ }
108
+
109
  /**
110
  * Get WooCommerce email settings page URL
111
  *
115
  public static function get_email_settings_page_url($return_tab) {
116
  return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking&tab='.$return_tab );
117
  }
118
+
119
+ /**
120
+ * code for initialize default value for customizer
121
+ */
122
  public function wcast_generate_defaults() {
123
  $customizer_defaults = array(
124
  'display_shipment_provider_image' => '',
150
 
151
  return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
152
  }
153
+
154
  /**
155
  * Register our sample default controls
156
  */
159
  * Load all our Customizer Custom Controls
160
  */
161
  require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
162
+
163
+ $font_size_array[ '' ] = __( 'Select', 'woocommerce' );
164
+ for ( $i = 10; $i <= 30; $i++ ) {
165
+ $font_size_array[ $i ] = $i."px";
166
+ }
167
+
168
  // Preview Order
169
  $wp_customize->add_setting( 'wcast_preview_order_id',
170
  array(
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(
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
  ) );
312
  )
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'
344
+ )
345
+ );
346
+
347
  // Provider Header Text
348
  $wp_customize->add_setting( 'provider_header_text',
349
  array(
446
  )
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
463
+ )
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
+ )
480
+ );
481
+
482
  // Test of Toggle Switch Custom Control
483
  $wp_customize->add_setting( 'table_header',
484
  array(
572
  'section' => 'default_controls_section',
573
  'type' => 'select',
574
  'choices' => array(
575
+ '' => __( 'Select', 'woocommerce' ),
576
  '1' => '1 px',
577
  '2' => '2 px',
578
  '3' => '3 px',
596
  'section' => 'default_controls_section',
597
  'type' => 'select',
598
  'choices' => array(
599
+ '' => __( 'Select', 'woocommerce' ),
600
+ 'left' => __( 'Left', '' ),
601
+ 'right' => __( 'Right', '' ),
602
+ 'center' => __( 'Center', '' )
603
  )
604
  )
605
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
606
 
607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
608
  // Table content font size
609
  $wp_customize->add_setting( 'table_content_font_size',
610
  array(
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
  ) );
760
  exit;
761
  }
762
 
763
+ /**
764
+ * code for preview of tracking info in email
765
+ */
766
  public function preview_completed_email(){
767
 
768
  $ast = new WC_Advanced_Shipment_Tracking_Actions;
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
  }
825
  }
826
  echo $content;
827
  }
828
+
829
  /**
830
  * Get WooCommerce order for preview
831
  *
836
  public static function get_wc_order_for_preview( $order_status = null, $order_id = null ) {
837
  if ( ! empty( $order_id ) && 'mockup' != $order_id ) {
838
  return wc_get_order( $order_id );
839
+ } else {
 
840
 
841
  // Instantiate order object
842
  $order = new WC_Order();
879
  // Return mockup order
880
  return $order;
881
  }
 
882
  }
883
  }
884
  /**
includes/customizer/class-wc-tracking-page-customizer.php DELETED
@@ -1,734 +0,0 @@
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_tracking_page_customizer {
11
- // Get our default values
12
- public function __construct() {
13
- // Get our Customizer defaults
14
- $this->defaults = $this->wcast_generate_defaults();
15
- $wc_ast_api_key = get_option('wc_ast_api_key');
16
- if(!$wc_ast_api_key){
17
- return;
18
- }
19
-
20
- // Register our sample default controls
21
- add_action( 'customize_register', array( $this, 'wcast_register_sample_default_controls' ) );
22
-
23
- // Only proceed if this is own request.
24
- if ( ! wcast_tracking_page_customizer::is_own_customizer_request() && ! wcast_tracking_page_customizer::is_own_preview_request() ) {
25
- return;
26
- }
27
-
28
- // Set up preview.
29
-
30
- // Register our Panels
31
- add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
32
-
33
- // Register our sections
34
- add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
35
-
36
- // Remove unrelated components.
37
- add_filter( 'customize_loaded_components', array( wcast_customizer(), 'remove_unrelated_components' ), 99, 2 );
38
-
39
- // Remove unrelated sections.
40
- add_filter( 'customize_section_active', array( wcast_customizer(), 'remove_unrelated_sections' ), 10, 2 );
41
-
42
- // Unhook divi front end.
43
- add_action( 'woomail_footer', array( wcast_customizer(), 'unhook_divi' ), 10 );
44
-
45
- // Unhook Flatsome js
46
- add_action( 'customize_preview_init', array( wcast_customizer(), 'unhook_flatsome' ), 50 );
47
-
48
- add_filter( 'customize_controls_enqueue_scripts', array( wcast_customizer(), 'enqueue_customizer_scripts' ) );
49
-
50
- add_action( 'customize_preview_init', array( $this, 'enqueue_preview_scripts' ) );
51
-
52
- add_action( 'parse_request', array( $this, 'set_up_preview' ) );
53
- }
54
-
55
- public function enqueue_preview_scripts() {
56
-
57
- wp_enqueue_script('wcast-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
- wp_localize_script('wcast-preview-scripts', 'wcast_preview', array(
60
- 'site_title' => $this->get_blogname(),
61
- ));
62
- }
63
- /**
64
- * Get blog name formatted for emails.
65
- *
66
- * @return string
67
- */
68
- public function get_blogname() {
69
- return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
70
- }
71
- /**
72
- * Checks to see if we are opening our custom customizer preview
73
- *
74
- * @access public
75
- * @return bool
76
- */
77
- public static function is_own_preview_request() {
78
- return isset( $_REQUEST['wcast-tracking-page-preview'] ) && '1' === $_REQUEST['wcast-tracking-page-preview'];
79
- }
80
- /**
81
- * Checks to see if we are opening our custom customizer controls
82
- *
83
- * @access public
84
- * @return bool
85
- */
86
- public static function is_own_customizer_request() {
87
- return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'tracking_page_section';
88
- }
89
- /**
90
- * Get Customizer URL
91
- *
92
- */
93
- public static function get_customizer_url($email) {
94
- $customizer_url = add_query_arg( array(
95
- 'wcast-customizer' => '1',
96
- 'email' => $email,
97
- 'url' => urlencode( add_query_arg( array( 'wcast-tracking-page-preview' => '1' ), home_url( '/' ) ) ),
98
- 'return' => urlencode( wcast_tracking_page_customizer::get_email_settings_page_url() ),
99
- ), admin_url( 'customize.php' ) );
100
-
101
- return $customizer_url;
102
- }
103
- /**
104
- * Get WooCommerce email settings page URL
105
- *
106
- * @access public
107
- * @return string
108
- */
109
- public static function get_email_settings_page_url() {
110
- return admin_url( 'admin.php?page=woocommerce-advanced-shipment-tracking' );
111
- }
112
- public function wcast_generate_defaults() {
113
- $customizer_defaults = array(
114
- 'wcast_tracking_page_list' => 'select',
115
- 'remove_trackship_branding' => '',
116
- 'use_tracking_page' => '',
117
- 'tpage_primary_color' => '',
118
- 'tpage_success_color' => '',
119
- 'tpage_warning_color' => '',
120
- 'tpage_border_color' => '',
121
- 'tracking_info_width' => '800',
122
- 'tdetails_border_color' => '#E4ECEF',
123
- 'tinfo_shade_color' => '#F5F8F8',
124
- 'tevents_font_color' => '#777',
125
- 'table_margin_top_bottom' => '20',
126
- );
127
-
128
- return apply_filters( 'skyrocket_customizer_defaults', $customizer_defaults );
129
- }
130
- /**
131
- * Register our sample default controls
132
- */
133
- public function wcast_register_sample_default_controls( $wp_customize ) {
134
- /**
135
- * Load all our Customizer Custom Controls
136
- */
137
- require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
138
- $page_list = wp_list_pluck( get_pages(), 'post_title', 'ID' );
139
-
140
- // Display Shipment Provider image/thumbnail
141
- $wp_customize->add_setting( 'remove_trackship_branding',
142
- array(
143
- 'default' => $this->defaults['remove_trackship_branding'],
144
- 'transport' => 'postMessage',
145
- 'sanitize_callback' => ''
146
- )
147
- );
148
- $wp_customize->add_control( 'remove_trackship_branding',
149
- array(
150
- 'label' => __( 'Remove Trackship branding from tracking page', 'woo-advanced-shipment-tracking' ),
151
- 'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
152
- 'section' => 'tracking_page_section',
153
- 'type' => 'checkbox'
154
- )
155
- );
156
-
157
- // Primary color for tracking page
158
- $wp_customize->add_setting( 'tpage_primary_color',
159
- array(
160
- 'default' => $this->defaults['tpage_primary_color'],
161
- 'transport' => 'postMessage',
162
- 'sanitize_callback' => 'sanitize_hex_color'
163
- )
164
- );
165
- $wp_customize->add_control( 'tpage_primary_color',
166
- array(
167
- 'label' => __( 'Header Color', 'woo-advanced-shipment-tracking' ),
168
- 'section' => 'tracking_page_section',
169
- 'type' => 'color',
170
- )
171
- );
172
-
173
- // Success color for tracking page
174
- $wp_customize->add_setting( 'tpage_success_color',
175
- array(
176
- 'default' => $this->defaults['tpage_success_color'],
177
- 'transport' => 'postMessage',
178
- 'sanitize_callback' => 'sanitize_hex_color'
179
- )
180
- );
181
- $wp_customize->add_control( 'tpage_success_color',
182
- array(
183
- 'label' => __( 'Success Status Color', 'woo-advanced-shipment-tracking' ),
184
- 'section' => 'tracking_page_section',
185
- 'type' => 'color',
186
- )
187
- );
188
-
189
- // Warning color for tracking page
190
- $wp_customize->add_setting( 'tpage_warning_color',
191
- array(
192
- 'default' => $this->defaults['tpage_warning_color'],
193
- 'transport' => 'postMessage',
194
- 'sanitize_callback' => 'sanitize_hex_color'
195
- )
196
- );
197
- $wp_customize->add_control( 'tpage_warning_color',
198
- array(
199
- 'label' => __( 'Warning Status Color', 'woo-advanced-shipment-tracking' ),
200
- 'section' => 'tracking_page_section',
201
- 'type' => 'color',
202
- )
203
- );
204
-
205
- // Content border color for tracking page
206
- $wp_customize->add_setting( 'tpage_border_color',
207
- array(
208
- 'default' => $this->defaults['tpage_border_color'],
209
- 'transport' => 'postMessage',
210
- 'sanitize_callback' => 'sanitize_hex_color'
211
- )
212
- );
213
- $wp_customize->add_control( 'tpage_border_color',
214
- array(
215
- 'label' => __( 'Tracking info Border Color', 'woo-advanced-shipment-tracking' ),
216
- 'section' => 'tracking_page_section',
217
- 'type' => 'color',
218
- )
219
- );
220
- // Tracking info width
221
- $wp_customize->add_setting( 'tracking_info_width',
222
- array(
223
- 'default' => $this->defaults['tracking_info_width'],
224
- 'transport' => 'postMessage',
225
- 'sanitize_callback' => ''
226
- )
227
- );
228
- $wp_customize->add_control( new Skyrocket_Slider_Custom_Control( $wp_customize, 'tracking_info_width',
229
- array(
230
- 'label' => __( 'Tracking info width (px)', 'woo-advanced-shipment-tracking' ),
231
- 'section' => 'tracking_page_section',
232
- 'input_attrs' => array(
233
- 'default' => $this->defaults['tracking_info_width'],
234
- 'step' => 10,
235
- 'min' => 200,
236
- 'max' => 1500,
237
- ),
238
- )
239
- ));
240
- // Tracking details Border Color
241
- $wp_customize->add_setting( 'tdetails_border_color',
242
- array(
243
- 'default' => $this->defaults['tdetails_border_color'],
244
- 'transport' => 'postMessage',
245
- 'sanitize_callback' => 'sanitize_hex_color'
246
- )
247
- );
248
- $wp_customize->add_control( 'tdetails_border_color',
249
- array(
250
- 'label' => __( 'Tracking details Border Color', 'woo-advanced-shipment-tracking' ),
251
- 'section' => 'tracking_page_section',
252
- 'type' => 'color',
253
- )
254
- );
255
- // Tracking info table shade color
256
- $wp_customize->add_setting( 'tinfo_shade_color',
257
- array(
258
- 'default' => $this->defaults['tinfo_shade_color'],
259
- 'transport' => 'postMessage',
260
- 'sanitize_callback' => 'sanitize_hex_color'
261
- )
262
- );
263
- $wp_customize->add_control( 'tinfo_shade_color',
264
- array(
265
- 'label' => __( 'Tracking info table shade color', 'woo-advanced-shipment-tracking' ),
266
- 'section' => 'tracking_page_section',
267
- 'type' => 'color',
268
- )
269
- );
270
- // Tracking events font color
271
- $wp_customize->add_setting( 'tevents_font_color',
272
- array(
273
- 'default' => $this->defaults['tevents_font_color'],
274
- 'transport' => 'postMessage',
275
- 'sanitize_callback' => 'sanitize_hex_color'
276
- )
277
- );
278
- $wp_customize->add_control( 'tevents_font_color',
279
- array(
280
- 'label' => __( 'Tracking events font color', 'woo-advanced-shipment-tracking' ),
281
- 'section' => 'tracking_page_section',
282
- 'type' => 'color',
283
- )
284
- );
285
- // Tracking info width
286
- $wp_customize->add_setting( 'table_margin_top_bottom',
287
- array(
288
- 'default' => $this->defaults['table_margin_top_bottom'],
289
- 'transport' => 'postMessage',
290
- 'sanitize_callback' => ''
291
- )
292
- );
293
- $wp_customize->add_control( new Skyrocket_Slider_Custom_Control( $wp_customize, 'table_margin_top_bottom',
294
- array(
295
- 'label' => __( 'Tracking info table margin top/bottom(px)', 'woo-advanced-shipment-tracking' ),
296
- 'section' => 'tracking_page_section',
297
- 'input_attrs' => array(
298
- 'default' => $this->defaults['table_margin_top_bottom'],
299
- 'step' => 1,
300
- 'min' => 5,
301
- 'max' => 50,
302
- ),
303
- )
304
- ));
305
- }
306
-
307
- /**
308
- * Set up preview
309
- *
310
- * @access public
311
- * @return void
312
- */
313
- public function set_up_preview() {
314
- // Make sure this is own preview request.
315
- if ( ! wcast_tracking_page_customizer::is_own_preview_request() ) {
316
- return;
317
- }
318
- include wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/preview/tracking_page_preview.php';
319
- exit;
320
- }
321
-
322
- public function preview_tracking_page(){
323
-
324
- $wc_ast_api_key = get_option('wc_ast_api_key');
325
- $remove_trackship_branding = get_theme_mod('remove_trackship_branding');
326
- $use_tracking_page = get_theme_mod('use_tracking_page');
327
- $primary_color = get_theme_mod('tpage_primary_color');
328
- $success_color = get_theme_mod('tpage_success_color');
329
- $warning_color = get_theme_mod('tpage_warning_color');
330
- $border_color = get_theme_mod('tpage_border_color');
331
- $remove_trackship_branding = get_theme_mod('remove_trackship_branding');
332
- $tracking_info_width = get_theme_mod('tracking_info_width');
333
- $tdetails_border_color = get_theme_mod('tdetails_border_color');
334
- $tinfo_shade_color = get_theme_mod('tinfo_shade_color');
335
- $tevents_font_color = get_theme_mod('tevents_font_color');
336
- $table_margin_top_bottom = get_theme_mod('table_margin_top_bottom');
337
- ?>
338
- <style>
339
- <?php if($success_color){ ?>
340
- .progress-bar.bg-success{
341
- background-color:<?php echo $success_color; ?>;
342
- }
343
- .tracker-progress-bar-with-dots .success .dot{
344
- border-color: <?php echo $success_color; ?>;
345
- }
346
- .text-success{
347
- color: <?php echo $success_color; ?>;
348
- }
349
- <?php } ?>
350
- <?php if($warning_color){ ?>
351
- .progress-bar.bg-warning{
352
- background-color:<?php echo $warning_color; ?>;
353
- }
354
- .tracker-progress-bar-with-dots .warning .dot{
355
- border-color: <?php echo $warning_color; ?>;
356
- }
357
- .text-warning{
358
- color: <?php echo $warning_color; ?>;
359
- }
360
- <?php } ?>
361
- <?php if($primary_color){ ?>
362
- .bg-secondary{
363
- background-color:<?php echo $primary_color; ?>;
364
- }
365
- .tracker-progress-bar-with-dots .secondary .dot {
366
- border-color: <?php echo $primary_color; ?>;
367
- }
368
- .text-secondary{
369
- color: <?php echo $primary_color; ?>;
370
- }
371
- <?php } ?>
372
- <?php if($border_color){ ?>
373
- .col.tracking-detail{
374
- border: 1px solid <?php echo $border_color; ?>;
375
- }
376
- <?php }
377
- if($remove_trackship_branding == 1){ ?>
378
- .trackship_branding{
379
- display:none;
380
- }
381
- <?php }
382
-
383
- if($tracking_info_width){ ?>
384
- .col.tracking-detail{
385
- width: <?php echo $tracking_info_width; ?>px;
386
- }
387
- <?php
388
- }
389
- if($tdetails_border_color){ ?>
390
- .tracking-details{
391
- border-color: <?php echo $tdetails_border_color; ?>;
392
- }
393
- <?php }
394
- if($tinfo_shade_color){ ?>
395
- .bg-gray-100{
396
- background-color: <?php echo $tinfo_shade_color; ?>;
397
- }
398
- <?php }
399
- if($tevents_font_color){ ?>
400
- .text-gray-300{
401
- color: <?php echo $tevents_font_color; ?>;
402
- }
403
- <?php } if($table_margin_top_bottom){
404
- ?>
405
- .col.tracking-detail{
406
- margin: <?php echo $table_margin_top_bottom; ?>px auto;
407
- }
408
-
409
- <?php
410
- }?>
411
- </style>
412
- <?php
413
- if(!$wc_ast_api_key){
414
- return;
415
- }
416
-
417
- /* $order_id = get_theme_mod('wcast_tpage_preview_order_id');
418
- if($order_id == '' || $order_id == 'mockup') {
419
- $content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select preview order.', 'woo-advanced-shipment-tracking' ) . '</div>';
420
- echo $content;
421
- return;
422
- }
423
- $order = new WC_Order( $order_id );
424
-
425
- //$order_key = $_GET['key'];
426
- if(!get_post_status( $order_id )){
427
- return;
428
- }
429
- if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
430
- $tracking_items = get_post_meta( $order_id, '_wc_shipment_tracking_items', true );
431
- //$get_order_key = get_post_meta( $order_id, 'order_key', true );
432
- } else {
433
- $order = new WC_Order( $order_id );
434
- $tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
435
- //$get_order_key = $order->order_key;
436
- }
437
- $num = 1;
438
- $total_trackings = sizeof($tracking_items);
439
- foreach($tracking_items as $item){
440
- $tracking_number = $item['tracking_number'];
441
- $trackship_url = 'https://trackship.info';
442
- $url = $trackship_url.'/wp-json/wc/v1/get_tracking_info_by_number';
443
- $args['body'] = array(
444
- 'tracking_number' => $tracking_number
445
- );
446
- $response = wp_remote_post( $url, $args );
447
- $data = $response['body'];
448
- $decoded_data = json_decode($data);
449
-
450
- $tracker = $decoded_data[0];
451
-
452
- $tracking_detail_org = '';
453
-
454
-
455
-
456
- if($tracker->tracking_detail != 'null'){
457
- $tracking_detail = array_reverse(json_decode($tracker->tracking_detail));
458
- $tracking_detail_org = json_decode($tracker->tracking_detail);
459
- $trackind_detail_by_status = array();
460
- foreach ($tracking_detail_org as $key => $item) {
461
- $trackind_detail_by_status[$item->status] = $item;
462
- }
463
- $trackind_detail_by_status_rev = array_reverse($trackind_detail_by_status);
464
- }
465
-
466
- $unixTimestamp = strtotime($tracker->est_delivery_date);
467
- //Get the day of the week using PHP's date function.
468
- $day = date("l", $unixTimestamp);
469
- if($tracking_detail_org){
470
- ?>
471
-
472
- <div class="tracking-detail col">
473
- <?php if($total_trackings > 1 ){ ?>
474
- <p class="shipment_heading"><?php
475
- echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
476
- <?php } ?>
477
- <h1 class="shipment_status_heading text-secondary"><?php echo apply_filters("trackship_status_filter",$tracker->ep_status);?></h1>
478
- <div class="status-section">
479
- <div class="tracker-progress-bar tracker-progress-bar-with-dots">
480
- <div class="progress">
481
- <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';} ?>" 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:66%';} elseif($tracker->ep_status == "delivered") { echo 'width:100%'; } ?>"></div>
482
- </div>
483
- <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';} ?>">
484
- <span class="dot state-0"></span>
485
- <span class="state-label state-0 <?php if($tracker->ep_status =="pre_transit"){ echo 'current-state'; } else{ echo 'past-state';} ?>">
486
- <?php
487
- if($tracker->ep_status == "unknown"){
488
- echo apply_filters("trackship_status_filter",'unknown');
489
- } else{
490
- echo apply_filters("trackship_status_filter",'pre_transit');
491
- }
492
- ?>
493
- </span>
494
- <?php
495
- if($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" || $tracker->ep_status == "delivered") {
496
- echo '<span class="dot state-1"></span>';
497
- }
498
- ?>
499
- <span class="state-label state-1 <?php if($tracker->ep_status == "in_transit"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit"){ echo 'future-state'; } else{ echo 'past-state'; } ?>">
500
- <?php echo apply_filters("trackship_status_filter",'in_transit'); ?>
501
- </span>
502
- <?php
503
- if($tracker->ep_status == "delivered" || $tracker->ep_status == "return_to_sender" || $tracker->ep_status == "failure" || $tracker->ep_status == "out_for_delivery" || $tracker->ep_status == "available_for_pickup") {
504
- echo '<span class="dot state-2"></span>';
505
- }
506
- ?>
507
- <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 == "in_transit"){ echo 'future-state'; } ?>">
508
- <?php
509
- if($tracker->ep_status == "return_to_sender"){
510
- echo apply_filters("trackship_status_filter",'return_to_sender');
511
- } elseif($tracker->ep_status == "failure"){
512
- echo apply_filters("trackship_status_filter",'failure');
513
- } else{
514
- echo apply_filters("trackship_status_filter",'out_for_delivery');
515
- }
516
- ?>
517
- </span>
518
- <?php
519
- if($tracker->ep_status == "delivered") {
520
- echo '<span class="dot state-3"></span>';
521
- }
522
- ?>
523
- <span class="state-label state-3 <?php if($tracker->ep_status == "delivered"){ echo 'current-state'; } elseif($tracker->ep_status == "pre_transit" || $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'; }?>">
524
- <?php echo apply_filters("trackship_status_filter",'delivered'); ?>
525
- </span>
526
- </div>
527
- </div>
528
- </div>
529
- <div class="tracker-top-level">
530
- <div class="col-md col-md-6 pb-6 pb-md-0 est-delivery-date-container">
531
- <?php
532
- if($tracker->est_delivery_date){
533
- ?>
534
- <div class="text-muted">
535
- <?php _e( 'Estimated Delivery Date', 'woo-advanced-shipment-tracking' ); ?>
536
- </div>
537
- <h1 class="est-delivery-date text-secondary"><?php echo $day; ?>, <?php echo date('M d', strtotime($tracker->est_delivery_date)); ?></h1>
538
- <?php } else{ ?>
539
- <div class="text-muted">
540
- <?php _e( 'No Estimated Delivery Date', 'woo-advanced-shipment-tracking' ); ?>
541
- </div>
542
- <?php } ?>
543
- </div>
544
- <div class="col-md col-md-6">
545
- <div class="mb-2 mt-6 mt-md-0"><?php echo $tracker->carrier; ?></div>
546
- <div class="tracking-code text-secondary text-truncate font-weight-bold font-size-h5">
547
- <?php echo $tracker->tracking_code; ?>
548
- </div>
549
- </div>
550
- </div>
551
- <div class="shipment_progress_div">
552
- <div class="shipment_progress_heading_div">
553
- <?php if( sizeof($trackind_detail_by_status_rev) > 0 ){?>
554
- <div class="col-md col-md-6">
555
- <h2 class="font-weight-bold text-secondary py-2 mb-3"><?php _e( 'Shipment Progress', 'woo-advanced-shipment-tracking' ); ?></h2>
556
- </div>
557
- <div class="col-md col-md-6">
558
- <p class="small text-right"><span class="text-muted"><?php _e( 'Last Updated:', 'woo-advanced-shipment-tracking' ); ?></span> <strong> <?php echo date('F d g:iA', strtotime($tracker->ep_updated_at)); ?></strong></p>
559
- </div>
560
- <?php } ?>
561
- </div>
562
- <div class="">
563
- <?php if( sizeof($trackind_detail_by_status_rev) > 0 ){?>
564
- <ul class="tracking-details list-unstyled mb-4 border border-light">
565
- <?php } ?>
566
- <?php
567
- $i=0;
568
- foreach($trackind_detail_by_status_rev as $key=>$status_detail){
569
-
570
- ?>
571
- <!--li class="px-3 py-2 mb-3 font-weight-bold bg-gray-100 text-secondary">
572
- <?php echo date("F d, Y",strtotime($status_detail->datetime)); ?>
573
- </li-->
574
- <?php //foreach($date_detail as $time=>$time_detail){
575
- $bg_class = '';
576
- if ($i % 2 == 0){
577
- $bg_class = 'bg-gray-100';
578
- }
579
- ?>
580
- <li class="d-flex align-items-center mb-0 <?php echo $bg_class; ?>">
581
- <div class="font-size-h3 px-3 px-lg-4 <?php if($status_detail->status_detail == "arrived_at_destination" || $status_detail->status_detail == "arrived_at_pickup_location"){ echo 'ep-icon-theme1-delivered text-success'; } elseif($status_detail->status_detail == "out_for_delivery" || $status_detail->status_detail == "available_for_pickup"){ echo 'ep-icon-theme1-clock text-secondary'; } elseif($status_detail->status_detail == "label_created"){ echo 'ep-icon-theme1-barcode text-secondary'; } elseif($status_detail->status_detail == "failure"){ echo 'ep-icon-theme1-exclamation text-warning'; } elseif($status_detail->status_detail == "return"){ echo 'ep-icon-theme1-back-arrow text-warning'; } else{ echo 'ep-icon-theme1-default';} ?> "></div>
582
- <div class="tracking-details-date text-gray-300 font-size-h5 text-center">
583
- <?php echo date("F d, Y",strtotime($status_detail->datetime)); ?>
584
- </div>
585
- <div class="tracking-details-time text-gray-300 font-size-h5 text-center">
586
- <?php echo date("g:i a", strtotime($status_detail->datetime)); ?>
587
- </div>
588
-
589
- <div>
590
- <div class="font-size-h5">
591
- <strong><?php echo $status_detail->description; ?></strong>
592
- </div>
593
- <div class="text-gray-300">
594
- <?php echo $status_detail->tracking_location->city; if($status_detail->tracking_location->city) echo ',';?>
595
- <?php echo $status_detail->tracking_location->state; ?>
596
- <?php echo $status_detail->tracking_location->zip; ?>
597
- <?php echo $status_detail->tracking_location->country; ?>
598
- </div>
599
- </div>
600
- </li>
601
- <?php //} ?>
602
- <?php $i++; } ?>
603
- <?php if( sizeof($trackind_detail_by_status_rev) > 0 ){?>
604
- </ul>
605
- <?php } ?>
606
- </div>
607
- </div>
608
- </div>
609
- <?php }
610
- $num++;}*/ ?>
611
- <?php
612
-
613
- ?>
614
- <div class="tracking-detail col">
615
- <h1 class="shipment_status_heading text-secondary">Delivered</h1>
616
- <div class="status-section">
617
- <div class="tracker-progress-bar tracker-progress-bar-with-dots">
618
- <div class="progress">
619
- <div class="progress-bar bg-success" style="width:100%"></div>
620
- </div>
621
- <div class="success">
622
- <span class="dot state-0"></span>
623
- <span class="state-label state-0 past-state">
624
- Pre Transit
625
- </span>
626
- <span class="dot state-1"></span>
627
- <span class="state-label state-1 past-state">
628
- In Transit
629
- </span>
630
- <span class="dot state-2"></span> <span class="state-label state-2 ">
631
- Out for delivery
632
- </span>
633
- <span class="dot state-3"></span> <span class="state-label state-3 current-state">
634
- Delivered </span>
635
- </div>
636
- </div>
637
- </div>
638
- <div class="tracker-top-level">
639
- <div class="col-md col-md-6 pb-6 pb-md-0 est-delivery-date-container">
640
- <div class="text-muted">
641
- Estimated Delivery Date
642
- </div>
643
- <h1 class="est-delivery-date text-secondary">Monday, Jun 03</h1>
644
- </div>
645
- <div class="col-md col-md-6">
646
- <div class="mb-2 mt-6 mt-md-0">FedEx</div>
647
- <div class="tracking-code text-secondary text-truncate font-weight-bold font-size-h5">
648
- 775313062254
649
- </div>
650
- </div>
651
- </div>
652
- <div class="shipment_progress_div">
653
- <div class="shipment_progress_heading_div">
654
- <div class="col-md col-md-6">
655
- <h2 class="font-weight-bold text-secondary py-2 mb-3">Shipment Progress</h2>
656
- </div>
657
- <div class="col-md col-md-6">
658
- <p class="small text-right"><span class="text-muted">Last Updated:</span> <strong> May 30 2:30AM</strong></p>
659
- </div>
660
- </div>
661
- <div class="">
662
- <ul class="tracking-details list-unstyled mb-4 border border-light">
663
- <!--li class="px-3 py-2 mb-3 font-weight-bold bg-gray-100 text-secondary">
664
- May 30, 2019 </li-->
665
- <li class="d-flex align-items-center mb-0 bg-gray-100">
666
- <div class="font-size-h3 px-3 px-lg-4 ep-icon-theme1-delivered text-success "></div>
667
- <div class="tracking-details-date text-gray-300 font-size-h5 text-center">
668
- May 30, 2019
669
- </div>
670
- <div class="tracking-details-time text-gray-300 font-size-h5 text-center">
671
- 1:18 am
672
- </div>
673
- <div>
674
- <div class="font-size-h5">
675
- <strong>Delivered</strong>
676
- </div>
677
- <div class="text-gray-300">
678
- TAITO-KU JP,
679
- </div>
680
- </div>
681
- </li>
682
- <!--li class="px-3 py-2 mb-3 font-weight-bold bg-gray-100 text-secondary">
683
- May 29, 2019 </li-->
684
- <li class="d-flex align-items-center mb-0 ">
685
- <div class="font-size-h3 px-3 px-lg-4 ep-icon-theme1-default "></div>
686
- <div class="tracking-details-date text-gray-300 font-size-h5 text-center">
687
- May 29, 2019
688
- </div>
689
- <div class="tracking-details-time text-gray-300 font-size-h5 text-center">
690
- 7:34 am
691
- </div>
692
- <div>
693
- <div class="font-size-h5">
694
- <strong>In transit</strong>
695
- </div>
696
- <div class="text-gray-300">
697
- TOKYO-KOTO-KU JP,
698
- </div>
699
- </div>
700
- </li>
701
- <!--li class="px-3 py-2 mb-3 font-weight-bold bg-gray-100 text-secondary">
702
- May 26, 2019 </li-->
703
- <li class="d-flex align-items-center mb-0 bg-gray-100">
704
- <div class="font-size-h3 px-3 px-lg-4 ep-icon-theme1-barcode text-secondary "></div>
705
- <div class="tracking-details-date text-gray-300 font-size-h5 text-center">
706
- May 26, 2019
707
- </div>
708
- <div class="tracking-details-time text-gray-300 font-size-h5 text-center">
709
- 8:36 am
710
- </div>
711
- <div>
712
- <div class="font-size-h5">
713
- <strong>Shipment information sent to FedEx</strong>
714
- </div>
715
- <div class="text-gray-300">
716
- </div>
717
- </div>
718
- </li>
719
- </ul>
720
- </div>
721
- </div>
722
- </div>
723
- <div class="trackship_branding" >
724
- <p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
725
- </div>
726
- <?php
727
-
728
- }
729
- }
730
- /**
731
- * Initialise our Customizer settings
732
- */
733
-
734
- $wcast_customizer_settings = new wcast_tracking_page_customizer();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/customizer/class-wcast-customizer.php CHANGED
@@ -11,13 +11,14 @@ class WC_Advanced_Shipment_Tracking_Customizer {
11
  * @var object Class Instance
12
  */
13
  private static $instance;
 
14
  /**
15
  * Initialize the main plugin function
16
  */
17
  public function __construct() {
18
-
19
- //$this->init();
20
  }
 
21
  /**
22
  * Register the Customizer panels
23
  */
@@ -41,6 +42,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
41
  )
42
  );
43
  }
 
44
  /**
45
  * Register the Customizer sections
46
  */
@@ -48,7 +50,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
48
  $wp_customize->add_section( 'default_controls_section',
49
  array(
50
  'title' => __( 'Tracking info display', 'woo-advanced-shipment-tracking' ),
51
- 'description' => esc_html__( 'This section lets you customize the Tracking Info display design.', 'woo-advanced-shipment-tracking' ),
52
  'panel' => 'wcast_naviation_panel'
53
  )
54
  );
@@ -115,6 +117,10 @@ class WC_Advanced_Shipment_Tracking_Customizer {
115
  )
116
  );
117
  }
 
 
 
 
118
  public function enqueue_customizer_scripts(){
119
  $wcast_enable_delivered_email = get_option('woocommerce_customer_delivered_order_settings');
120
  if(isset( $_REQUEST['wcast-customizer'] ) && '1' === $_REQUEST['wcast-customizer']){
@@ -138,6 +144,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
138
  ));
139
  }
140
  }
 
141
  /**
142
  * Get Customizer URL
143
  *
@@ -149,6 +156,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
149
 
150
  return $email_preview_url;
151
  }
 
152
  /**
153
  * Get Customizer URL
154
  *
@@ -160,6 +168,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
160
 
161
  return $tracking_preview_url;
162
  }
 
163
  /**
164
  * Get Tracking page preview URL
165
  *
@@ -171,6 +180,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
171
  //$tracking_page_preview_url = get_permalink( '3570' );
172
  return $tracking_page_preview_url;
173
  }
 
174
  /**
175
  * Get Tracking page preview URL
176
  *
@@ -182,6 +192,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
182
 
183
  return $customer_failure_preview_url;
184
  }
 
185
  /**
186
  * Get Tracking page preview URL
187
  *
@@ -192,7 +203,8 @@ class WC_Advanced_Shipment_Tracking_Customizer {
192
  ), home_url( '' ) );
193
 
194
  return $customer_intransit_preview_url;
195
- }
 
196
  /**
197
  * Get Tracking page preview URL
198
  *
@@ -204,6 +216,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
204
 
205
  return $customer_intransit_preview_url;
206
  }
 
207
  /**
208
  * Get Tracking page preview URL
209
  *
@@ -215,6 +228,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
215
 
216
  return $customer_intransit_preview_url;
217
  }
 
218
  /**
219
  * Get Tracking page preview URL
220
  *
@@ -325,6 +339,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
325
  // Section not found
326
  return false;
327
  }
 
328
  /*
329
  * Unhook flatsome front end.
330
  */
@@ -332,7 +347,8 @@ class WC_Advanced_Shipment_Tracking_Customizer {
332
  // Unhook flatsome issue.
333
  wp_dequeue_style( 'flatsome-customizer-preview' );
334
  wp_dequeue_script( 'flatsome-customizer-frontend-js' );
335
- }
 
336
  /*
337
  * Unhook Divi front end.
338
  */
@@ -341,6 +357,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
341
  remove_action( 'wp_footer', 'et_builder_get_modules_js_data' );
342
  remove_action( 'et_customizer_footer_preview', 'et_load_social_icons' );
343
  }
 
344
  /**
345
  * Get Order Ids
346
  *
11
  * @var object Class Instance
12
  */
13
  private static $instance;
14
+
15
  /**
16
  * Initialize the main plugin function
17
  */
18
  public function __construct() {
19
+
 
20
  }
21
+
22
  /**
23
  * Register the Customizer panels
24
  */
42
  )
43
  );
44
  }
45
+
46
  /**
47
  * Register the Customizer sections
48
  */
50
  $wp_customize->add_section( 'default_controls_section',
51
  array(
52
  'title' => __( 'Tracking info display', 'woo-advanced-shipment-tracking' ),
53
+ 'description' => '',
54
  'panel' => 'wcast_naviation_panel'
55
  )
56
  );
117
  )
118
  );
119
  }
120
+
121
+ /**
122
+ * add css and js for customizer
123
+ */
124
  public function enqueue_customizer_scripts(){
125
  $wcast_enable_delivered_email = get_option('woocommerce_customer_delivered_order_settings');
126
  if(isset( $_REQUEST['wcast-customizer'] ) && '1' === $_REQUEST['wcast-customizer']){
144
  ));
145
  }
146
  }
147
+
148
  /**
149
  * Get Customizer URL
150
  *
156
 
157
  return $email_preview_url;
158
  }
159
+
160
  /**
161
  * Get Customizer URL
162
  *
168
 
169
  return $tracking_preview_url;
170
  }
171
+
172
  /**
173
  * Get Tracking page preview URL
174
  *
180
  //$tracking_page_preview_url = get_permalink( '3570' );
181
  return $tracking_page_preview_url;
182
  }
183
+
184
  /**
185
  * Get Tracking page preview URL
186
  *
192
 
193
  return $customer_failure_preview_url;
194
  }
195
+
196
  /**
197
  * Get Tracking page preview URL
198
  *
203
  ), home_url( '' ) );
204
 
205
  return $customer_intransit_preview_url;
206
+ }
207
+
208
  /**
209
  * Get Tracking page preview URL
210
  *
216
 
217
  return $customer_intransit_preview_url;
218
  }
219
+
220
  /**
221
  * Get Tracking page preview URL
222
  *
228
 
229
  return $customer_intransit_preview_url;
230
  }
231
+
232
  /**
233
  * Get Tracking page preview URL
234
  *
339
  // Section not found
340
  return false;
341
  }
342
+
343
  /*
344
  * Unhook flatsome front end.
345
  */
347
  // Unhook flatsome issue.
348
  wp_dequeue_style( 'flatsome-customizer-preview' );
349
  wp_dequeue_script( 'flatsome-customizer-frontend-js' );
350
+ }
351
+
352
  /*
353
  * Unhook Divi front end.
354
  */
357
  remove_action( 'wp_footer', 'et_builder_get_modules_js_data' );
358
  remove_action( 'et_customizer_footer_preview', 'et_load_social_icons' );
359
  }
360
+
361
  /**
362
  * Get Order Ids
363
  *
includes/customizer/delivered_preview.php CHANGED
@@ -3,28 +3,20 @@
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="kadence_woomail_designer_custom_css">.woocommerce-store-notice.demo_store, .mfp-hide {display: none;}</style>
14
  </head>
15
 
16
  <body>
17
-
18
  <div id="kt_woomail_preview_wrapper" style="display: block;">
19
-
20
  <?php wcast_initialise_customizer_email::preview_delivered_email(); ?>
21
-
22
  </div>
23
 
24
  <?php
25
  do_action( 'woomail_footer' );
26
  wp_footer(); ?>
27
-
28
  </body>
29
-
30
  </html>
3
  if (!defined('ABSPATH')) {
4
  exit;
5
  }
 
6
  ?>
 
7
  <head>
 
8
  <meta charset="<?php bloginfo('charset'); ?>" />
9
  <meta name="viewport" content="width=device-width" />
10
  <style type="text/css" id="kadence_woomail_designer_custom_css">.woocommerce-store-notice.demo_store, .mfp-hide {display: none;}</style>
11
  </head>
12
 
13
  <body>
 
14
  <div id="kt_woomail_preview_wrapper" style="display: block;">
 
15
  <?php wcast_initialise_customizer_email::preview_delivered_email(); ?>
 
16
  </div>
17
 
18
  <?php
19
  do_action( 'woomail_footer' );
20
  wp_footer(); ?>
 
21
  </body>
 
22
  </html>
includes/customizer/preview.php CHANGED
@@ -3,28 +3,18 @@
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="kadence_woomail_designer_custom_css">.woocommerce-store-notice.demo_store, .mfp-hide {display: none;}</style>
14
  </head>
15
-
16
  <body>
17
-
18
  <div id="kt_woomail_preview_wrapper" style="display: block;">
19
-
20
  <?php wcast_initialise_customizer_settings::preview_completed_email(); ?>
21
-
22
  </div>
23
-
24
  <?php
25
  do_action( 'woomail_footer' );
26
  wp_footer(); ?>
27
-
28
  </body>
29
-
30
  </html>
3
  if (!defined('ABSPATH')) {
4
  exit;
5
  }
 
6
  ?>
 
7
  <head>
 
8
  <meta charset="<?php bloginfo('charset'); ?>" />
9
  <meta name="viewport" content="width=device-width" />
10
  <style type="text/css" id="kadence_woomail_designer_custom_css">.woocommerce-store-notice.demo_store, .mfp-hide {display: none;}</style>
11
  </head>
 
12
  <body>
 
13
  <div id="kt_woomail_preview_wrapper" style="display: block;">
 
14
  <?php wcast_initialise_customizer_settings::preview_completed_email(); ?>
 
15
  </div>
 
16
  <?php
17
  do_action( 'woomail_footer' );
18
  wp_footer(); ?>
 
19
  </body>
 
20
  </html>
includes/email-manager.php CHANGED
@@ -15,7 +15,10 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
15
  // hook for when order status is changed
16
  add_filter( 'woocommerce_email_classes', array( $this, 'custom_init_emails' ));
17
  }
18
-
 
 
 
19
  public function custom_init_emails( $emails ) {
20
 
21
  // Include the email class file if it's not included already
@@ -25,118 +28,121 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
25
  return $emails;
26
  }
27
 
 
 
 
28
  public function delivered_order_status_email_trigger($order_id, $order){
29
- $order_id = $order->get_id();
30
- $wcast_customizer_settings = new wcast_initialise_customizer_email();
31
- $email_subject = get_theme_mod('wcast_delivered_email_subject',$wcast_customizer_settings->defaults['wcast_delivered_email_subject']);
32
- $subject = $this->email_subject($email_subject,$order_id,$order);
33
-
34
- $email_to = get_theme_mod('wcast_delivered_email_to',$wcast_customizer_settings->defaults['wcast_delivered_email_to']);
 
 
 
 
35
 
 
36
 
37
- $enable = get_theme_mod('wcast_enable_delivered_email');
38
- if($enable == 1){
39
-
40
- $email_to = explode(",",$email_to);
 
 
 
 
 
41
 
42
- foreach($email_to as $email){
43
- $email_heading = get_theme_mod('wcast_delivered_email_heading',$wcast_customizer_settings->defaults['wcast_delivered_email_heading']);
44
- $email_content = get_theme_mod('wcast_delivered_email_content',$wcast_customizer_settings->defaults['wcast_delivered_email_content']);
45
- $wcast_show_tracking_details = get_theme_mod('wcast_show_tracking_details');
46
- $wcast_show_order_details = get_theme_mod('wcast_show_order_details');
47
- $wcast_show_billing_address = get_theme_mod('wcast_show_billing_address');
48
- $wcast_show_shipping_address = get_theme_mod('wcast_show_shipping_address');
49
- $sent_to_admin = false;
50
- $plain_text = false;
51
-
52
-
53
- $recipient = $this->email_to($email,$order,$order_id);
54
-
55
- $email_content = $this->email_content($email_content,$order_id, $order);
56
 
57
- $mailer = WC()->mailer();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
- $email_heading = $this->email_heading($email_heading,$order_id,$order);
60
-
61
- $message = $email_content;
62
- $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
63
- if($wcast_show_tracking_details == 1){
64
- ob_start();
65
- wc_get_template( 'emails/tracking-info.php', array(
66
- 'tracking_items' => $wast->get_tracking_items( $order_id, true )
67
- ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
68
- $message .= ob_get_clean();
69
- }
70
- if($wcast_show_order_details == 1){
71
-
72
- ob_start();
73
- wc_get_template(
74
- 'emails/wcast-email-order-details.php', array(
 
75
  'order' => $order,
76
  'sent_to_admin' => $sent_to_admin,
77
- 'plain_text' => $plain_text,
78
- 'email' => '',
79
- ),
80
- 'woocommerce-advanced-shipment-tracking/',
81
- wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
82
- );
83
- $message .= ob_get_clean();
84
- }
85
- if($wcast_show_billing_address == 1){
86
- ob_start();
87
- wc_get_template(
88
- 'emails/wcast-billing-email-addresses.php', array(
89
- 'order' => $order,
90
- 'sent_to_admin' => $sent_to_admin,
91
- ),
92
- 'woocommerce-advanced-shipment-tracking/',
93
- wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
94
- );
95
- $message .= ob_get_clean();
96
- }
97
- if($wcast_show_shipping_address == 1){
98
- ob_start();
99
- wc_get_template(
100
- 'emails/wcast-shipping-email-addresses.php', array(
101
- 'order' => $order,
102
- 'sent_to_admin' => $sent_to_admin,
103
- ),
104
- 'woocommerce-advanced-shipment-tracking/',
105
- wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
106
- );
107
- $message .= ob_get_clean();
108
- }
109
-
110
- // create a new email
111
- $email = new WC_Email();
112
-
113
- // wrap the content with the email template and then add styles
114
- $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
115
- $headers = "Content-Type: text/html\r\n";
116
- add_filter( 'wp_mail_from', array( $this, 'get_from_address' ) );
117
- add_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ) );
118
-
119
- wp_mail( $recipient, $subject, $message, $email->get_headers() );
120
  }
121
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  }
123
 
 
 
 
124
  public function shippment_status_email_trigger($order_id, $order, $old_status, $new_status){
 
125
  $status = str_replace("_","",$new_status);
126
- $status_class = 'wcast_'.$status.'_customizer_email';
127
- //echo $status_class;exit;
128
  $wcast_status_customizer_email = new $status_class();
129
- //echo $wcast_status_customizer_email->defaults['wcast_'.$status.'_email_subject'];exit;
130
  $email_subject = get_theme_mod('wcast_'.$status.'_email_subject',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_subject']);
131
  $subject = $this->email_subject($email_subject,$order_id,$order);
132
  $email_to = get_theme_mod('wcast_'.$status.'_email_to',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_to']);
133
- //$wcast_pretransit_email_subject = $wcast_pretransit_customizer_email->defaults['wcast_pretransit_email_subject'];
134
  $enable = get_theme_mod('wcast_enable_'.$status.'_email');
135
  $email_to = explode(",",$email_to);
 
136
  if($enable == 1){
137
- foreach($email_to as $email){
138
-
139
-
140
  $email_heading = get_theme_mod('wcast_'.$status.'_email_heading',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_heading']);
141
  $email_content = get_theme_mod('wcast_'.$status.'_email_content',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_content']);
142
  $wcast_show_tracking_details = get_theme_mod('wcast_'.$status.'_show_tracking_details');
@@ -158,6 +164,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
158
  $message = $this->append_analytics_link($email_content,$status);
159
 
160
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
 
161
  if($wcast_show_tracking_details == 1){
162
 
163
  ob_start();
@@ -166,6 +173,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
166
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
167
  $message .= ob_get_clean();
168
  }
 
169
  if($wcast_show_order_details == 1){
170
 
171
  ob_start();
@@ -181,6 +189,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
181
  );
182
  $message .= ob_get_clean();
183
  }
 
184
  if($wcast_show_billing_address == 1){
185
  ob_start();
186
  wc_get_template(
@@ -193,6 +202,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
193
  );
194
  $message .= ob_get_clean();
195
  }
 
196
  if($wcast_show_shipping_address == 1){
197
  ob_start();
198
  wc_get_template(
@@ -219,20 +229,21 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
219
  }
220
  }
221
  }
222
-
223
-
 
 
224
  public function delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status){
 
225
  $wcast_delivered_customizer_email = new wcast_delivered_customizer_email();
226
  $email_subject = get_theme_mod('wcast_delivered_status_email_subject',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_subject']);
227
  $subject = $this->email_subject($email_subject,$order_id,$order);
228
- $email_to = get_theme_mod('wcast_delivered_status_email_to',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_to']);
229
-
230
  $enable = get_theme_mod('wcast_enable_delivered_status_email');
231
  $email_to = explode(",",$email_to);
 
232
  if($enable == 1){
233
- foreach($email_to as $email){
234
-
235
-
236
  $email_heading = get_theme_mod('wcast_delivered_status_email_heading',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_heading']);
237
  $email_content = get_theme_mod('wcast_delivered_status_email_content',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_content']);
238
  $wcast_show_tracking_details = get_theme_mod('wcast_delivered_status_show_tracking_details');
@@ -240,8 +251,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
240
  $wcast_show_billing_address = get_theme_mod('wcast_delivered_status_show_billing_address');
241
  $wcast_show_shipping_address = get_theme_mod('wcast_delivered_status_show_shipping_address');
242
  $sent_to_admin = false;
243
- $plain_text = false;
244
-
245
 
246
  $recipient = $this->email_to($email,$order,$order_id);
247
 
@@ -255,6 +265,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
255
  $message = $this->append_analytics_link($email_content,$status);
256
 
257
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
 
258
  if($wcast_show_tracking_details == 1){
259
 
260
  ob_start();
@@ -263,6 +274,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
263
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
264
  $message .= ob_get_clean();
265
  }
 
266
  if($wcast_show_order_details == 1){
267
 
268
  ob_start();
@@ -278,6 +290,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
278
  );
279
  $message .= ob_get_clean();
280
  }
 
281
  if($wcast_show_billing_address == 1){
282
  ob_start();
283
  wc_get_template(
@@ -290,6 +303,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
290
  );
291
  $message .= ob_get_clean();
292
  }
 
293
  if($wcast_show_shipping_address == 1){
294
  ob_start();
295
  wc_get_template(
@@ -317,7 +331,9 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
317
  }
318
  }
319
 
320
-
 
 
321
  public function email_subject($string,$order_id,$order){
322
  $customer_email = $order->get_billing_email();
323
  $first_name = $order->get_billing_first_name();
@@ -339,6 +355,9 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
339
  return $string;
340
  }
341
 
 
 
 
342
  public function email_heading($string,$order_id,$order){
343
  $customer_email = $order->get_billing_email();
344
  $first_name = $order->get_billing_first_name();
@@ -360,11 +379,17 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
360
  return $string;
361
  }
362
 
 
 
 
363
  public function email_to($string,$order,$order_id){
364
  $customer_email = $order->get_billing_email();
365
  return str_replace( '{customer_email}', $customer_email, $string );
366
  }
367
-
 
 
 
368
  public function email_content($email_content, $order_id, $order){
369
  $customer_email = $order->get_billing_email();
370
  $first_name = $order->get_billing_first_name();
@@ -397,6 +422,9 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
397
  return $email_content;
398
  }
399
 
 
 
 
400
  public function append_analytics_link($message,$status){
401
  $analytics_link = get_theme_mod('wcast_'.$status.'_analytics_link');
402
 
@@ -414,7 +442,9 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
414
  return $message;
415
  }
416
 
417
-
 
 
418
  public function get_est_delivery_date($order_id, $order){
419
  if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
420
  $tracking_items = get_post_meta( $order_id, '_wc_shipment_tracking_items', true );
@@ -453,6 +483,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
453
  }
454
  return $html;
455
  }
 
456
  /**
457
  * Get blog name formatted for emails.
458
  *
@@ -461,6 +492,7 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
461
  private function get_blogname() {
462
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
463
  }
 
464
  /**
465
  * Get the from name for outgoing emails.
466
  *
15
  // hook for when order status is changed
16
  add_filter( 'woocommerce_email_classes', array( $this, 'custom_init_emails' ));
17
  }
18
+
19
+ /**
20
+ * code for include delivered email class
21
+ */
22
  public function custom_init_emails( $emails ) {
23
 
24
  // Include the email class file if it's not included already
28
  return $emails;
29
  }
30
 
31
+ /**
32
+ * code for trigger delivered order status email
33
+ */
34
  public function delivered_order_status_email_trigger($order_id, $order){
35
+ $order_id = $order->get_id();
36
+ $wcast_customizer_settings = new wcast_initialise_customizer_email();
37
+ $email_subject = get_theme_mod('wcast_delivered_email_subject',$wcast_customizer_settings->defaults['wcast_delivered_email_subject']);
38
+ $subject = $this->email_subject($email_subject,$order_id,$order);
39
+
40
+ $email_to = get_theme_mod('wcast_delivered_email_to',$wcast_customizer_settings->defaults['wcast_delivered_email_to']);
41
+
42
+
43
+ $enable = get_theme_mod('wcast_enable_delivered_email');
44
+ if($enable == 1){
45
 
46
+ $email_to = explode(",",$email_to);
47
 
48
+ foreach($email_to as $email){
49
+ $email_heading = get_theme_mod('wcast_delivered_email_heading',$wcast_customizer_settings->defaults['wcast_delivered_email_heading']);
50
+ $email_content = get_theme_mod('wcast_delivered_email_content',$wcast_customizer_settings->defaults['wcast_delivered_email_content']);
51
+ $wcast_show_tracking_details = get_theme_mod('wcast_show_tracking_details');
52
+ $wcast_show_order_details = get_theme_mod('wcast_show_order_details');
53
+ $wcast_show_billing_address = get_theme_mod('wcast_show_billing_address');
54
+ $wcast_show_shipping_address = get_theme_mod('wcast_show_shipping_address');
55
+ $sent_to_admin = false;
56
+ $plain_text = false;
57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
+ $recipient = $this->email_to($email,$order,$order_id);
60
+
61
+ $email_content = $this->email_content($email_content,$order_id, $order);
62
+
63
+ $mailer = WC()->mailer();
64
+
65
+ $email_heading = $this->email_heading($email_heading,$order_id,$order);
66
+
67
+ $message = $email_content;
68
+ $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
69
+ if($wcast_show_tracking_details == 1){
70
+ ob_start();
71
+ wc_get_template( 'emails/tracking-info.php', array(
72
+ 'tracking_items' => $wast->get_tracking_items( $order_id, true )
73
+ ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
74
+ $message .= ob_get_clean();
75
+ }
76
+ if($wcast_show_order_details == 1){
77
 
78
+ ob_start();
79
+ wc_get_template(
80
+ 'emails/wcast-email-order-details.php', array(
81
+ 'order' => $order,
82
+ 'sent_to_admin' => $sent_to_admin,
83
+ 'plain_text' => $plain_text,
84
+ 'email' => '',
85
+ ),
86
+ 'woocommerce-advanced-shipment-tracking/',
87
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
88
+ );
89
+ $message .= ob_get_clean();
90
+ }
91
+ if($wcast_show_billing_address == 1){
92
+ ob_start();
93
+ wc_get_template(
94
+ 'emails/wcast-billing-email-addresses.php', array(
95
  'order' => $order,
96
  'sent_to_admin' => $sent_to_admin,
97
+ ),
98
+ 'woocommerce-advanced-shipment-tracking/',
99
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
100
+ );
101
+ $message .= ob_get_clean();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  }
103
+ if($wcast_show_shipping_address == 1){
104
+ ob_start();
105
+ wc_get_template(
106
+ 'emails/wcast-shipping-email-addresses.php', array(
107
+ 'order' => $order,
108
+ 'sent_to_admin' => $sent_to_admin,
109
+ ),
110
+ 'woocommerce-advanced-shipment-tracking/',
111
+ wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
112
+ );
113
+ $message .= ob_get_clean();
114
+ }
115
+
116
+ // create a new email
117
+ $email = new WC_Email();
118
+
119
+ // wrap the content with the email template and then add styles
120
+ $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
121
+ $headers = "Content-Type: text/html\r\n";
122
+ add_filter( 'wp_mail_from', array( $this, 'get_from_address' ) );
123
+ add_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ) );
124
+
125
+ wp_mail( $recipient, $subject, $message, $email->get_headers() );
126
+ }
127
+ }
128
  }
129
 
130
+ /**
131
+ * code for send shipment status email
132
+ */
133
  public function shippment_status_email_trigger($order_id, $order, $old_status, $new_status){
134
+
135
  $status = str_replace("_","",$new_status);
136
+ $status_class = 'wcast_'.$status.'_customizer_email';
 
137
  $wcast_status_customizer_email = new $status_class();
 
138
  $email_subject = get_theme_mod('wcast_'.$status.'_email_subject',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_subject']);
139
  $subject = $this->email_subject($email_subject,$order_id,$order);
140
  $email_to = get_theme_mod('wcast_'.$status.'_email_to',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_to']);
 
141
  $enable = get_theme_mod('wcast_enable_'.$status.'_email');
142
  $email_to = explode(",",$email_to);
143
+
144
  if($enable == 1){
145
+ foreach($email_to as $email){
 
 
146
  $email_heading = get_theme_mod('wcast_'.$status.'_email_heading',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_heading']);
147
  $email_content = get_theme_mod('wcast_'.$status.'_email_content',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_content']);
148
  $wcast_show_tracking_details = get_theme_mod('wcast_'.$status.'_show_tracking_details');
164
  $message = $this->append_analytics_link($email_content,$status);
165
 
166
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
167
+
168
  if($wcast_show_tracking_details == 1){
169
 
170
  ob_start();
173
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
174
  $message .= ob_get_clean();
175
  }
176
+
177
  if($wcast_show_order_details == 1){
178
 
179
  ob_start();
189
  );
190
  $message .= ob_get_clean();
191
  }
192
+
193
  if($wcast_show_billing_address == 1){
194
  ob_start();
195
  wc_get_template(
202
  );
203
  $message .= ob_get_clean();
204
  }
205
+
206
  if($wcast_show_shipping_address == 1){
207
  ob_start();
208
  wc_get_template(
229
  }
230
  }
231
  }
232
+
233
+ /**
234
+ * code for send delivered shipment status email
235
+ */
236
  public function delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status){
237
+
238
  $wcast_delivered_customizer_email = new wcast_delivered_customizer_email();
239
  $email_subject = get_theme_mod('wcast_delivered_status_email_subject',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_subject']);
240
  $subject = $this->email_subject($email_subject,$order_id,$order);
241
+ $email_to = get_theme_mod('wcast_delivered_status_email_to',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_to']);
 
242
  $enable = get_theme_mod('wcast_enable_delivered_status_email');
243
  $email_to = explode(",",$email_to);
244
+
245
  if($enable == 1){
246
+ foreach($email_to as $email){
 
 
247
  $email_heading = get_theme_mod('wcast_delivered_status_email_heading',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_heading']);
248
  $email_content = get_theme_mod('wcast_delivered_status_email_content',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_email_content']);
249
  $wcast_show_tracking_details = get_theme_mod('wcast_delivered_status_show_tracking_details');
251
  $wcast_show_billing_address = get_theme_mod('wcast_delivered_status_show_billing_address');
252
  $wcast_show_shipping_address = get_theme_mod('wcast_delivered_status_show_shipping_address');
253
  $sent_to_admin = false;
254
+ $plain_text = false;
 
255
 
256
  $recipient = $this->email_to($email,$order,$order_id);
257
 
265
  $message = $this->append_analytics_link($email_content,$status);
266
 
267
  $wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
268
+
269
  if($wcast_show_tracking_details == 1){
270
 
271
  ob_start();
274
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
275
  $message .= ob_get_clean();
276
  }
277
+
278
  if($wcast_show_order_details == 1){
279
 
280
  ob_start();
290
  );
291
  $message .= ob_get_clean();
292
  }
293
+
294
  if($wcast_show_billing_address == 1){
295
  ob_start();
296
  wc_get_template(
303
  );
304
  $message .= ob_get_clean();
305
  }
306
+
307
  if($wcast_show_shipping_address == 1){
308
  ob_start();
309
  wc_get_template(
331
  }
332
  }
333
 
334
+ /**
335
+ * code for format email subject
336
+ */
337
  public function email_subject($string,$order_id,$order){
338
  $customer_email = $order->get_billing_email();
339
  $first_name = $order->get_billing_first_name();
355
  return $string;
356
  }
357
 
358
+ /**
359
+ * code for format email heading
360
+ */
361
  public function email_heading($string,$order_id,$order){
362
  $customer_email = $order->get_billing_email();
363
  $first_name = $order->get_billing_first_name();
379
  return $string;
380
  }
381
 
382
+ /**
383
+ * code for format recipients
384
+ */
385
  public function email_to($string,$order,$order_id){
386
  $customer_email = $order->get_billing_email();
387
  return str_replace( '{customer_email}', $customer_email, $string );
388
  }
389
+
390
+ /**
391
+ * code for format email content
392
+ */
393
  public function email_content($email_content, $order_id, $order){
394
  $customer_email = $order->get_billing_email();
395
  $first_name = $order->get_billing_first_name();
422
  return $email_content;
423
  }
424
 
425
+ /**
426
+ * code for append analytics link
427
+ */
428
  public function append_analytics_link($message,$status){
429
  $analytics_link = get_theme_mod('wcast_'.$status.'_analytics_link');
430
 
442
  return $message;
443
  }
444
 
445
+ /**
446
+ * code for get estimate delivery date
447
+ */
448
  public function get_est_delivery_date($order_id, $order){
449
  if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
450
  $tracking_items = get_post_meta( $order_id, '_wc_shipment_tracking_items', true );
483
  }
484
  return $html;
485
  }
486
+
487
  /**
488
  * Get blog name formatted for emails.
489
  *
492
  private function get_blogname() {
493
  return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
494
  }
495
+
496
  /**
497
  * Get the from name for outgoing emails.
498
  *
includes/emails/class-shipment-delivered-email.php CHANGED
@@ -44,6 +44,7 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
44
  // Call parent constructor.
45
  parent::__construct();
46
  }
 
47
  /**
48
  * Get valid recipients.
49
  *
@@ -55,6 +56,7 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
55
  $recipients = array_map( 'trim', explode( ',', $recipient ) );
56
  return implode( ', ', $recipients );
57
  }
 
58
  /**
59
  * Trigger the sending of this email.
60
  *
@@ -160,8 +162,8 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
160
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
161
  $message .= ob_get_clean();
162
  }
163
- if($wcast_show_order_details == 1){
164
-
165
  ob_start();
166
  wc_get_template(
167
  'emails/wcast-email-order-details.php', array(
@@ -175,6 +177,7 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
175
  );
176
  $message .= ob_get_clean();
177
  }
 
178
  if($wcast_show_billing_address == 1){
179
  ob_start();
180
  wc_get_template(
@@ -187,6 +190,7 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
187
  );
188
  $message .= ob_get_clean();
189
  }
 
190
  if($wcast_show_shipping_address == 1){
191
  ob_start();
192
  wc_get_template(
@@ -199,15 +203,21 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
199
  );
200
  $message .= ob_get_clean();
201
  }
 
202
  // create a new email
203
  $email = new WC_Email();
204
  $email->id = 'WC_Delivered_email';
 
205
  // wrap the content with the email template and then add styles
206
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
 
207
  return $message;
208
  }
209
  }
210
-
 
 
 
211
  public function _appendCampaignToString($match){
212
  $url = $match[2];
213
  if (strpos($url, '?') === false) {
@@ -223,50 +233,50 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
223
  public function init_form_fields() {
224
  $this->form_fields = array(
225
  'enabled' => array(
226
- 'title' => __( 'Enable/Disable', 'woo-advanced-shipment-tracking' ),
227
  'type' => 'checkbox',
228
- 'label' => __( 'Enable this email notification', 'woo-advanced-shipment-tracking' ),
229
  'default' => 'yes',
230
  ),
231
  'recipient' => array(
232
- 'title' => __( 'Recipient(s)', 'woo-advanced-shipment-tracking' ),
233
  'type' => 'text',
234
  /* translators: %s: WP admin email */
235
- 'description' => sprintf( __( 'Enter recipients (comma separated) for this email. Defaults to %s.', 'woo-advanced-shipment-tracking' ), '<code>' . esc_attr( get_option( 'admin_email' ) ) . '</code>' ),
236
  'placeholder' => '',
237
  'default' => '{customer_email}',
238
  'desc_tip' => true,
239
  ),
240
  'subject' => array(
241
- 'title' => __( 'Subject', 'woo-advanced-shipment-tracking' ),
242
  'type' => 'text',
243
  'desc_tip' => true,
244
  /* translators: %s: list of placeholders */
245
- 'description' => sprintf( __( 'Available placeholders: %s', 'woo-advanced-shipment-tracking' ), '<code>{site_title}, {order_date}, {order_number}</code>' ),
246
  'placeholder' => $this->get_default_subject(),
247
  'default' => '',
248
  ),
249
  'heading' => array(
250
- 'title' => __( 'Email heading', 'woo-advanced-shipment-tracking' ),
251
  'type' => 'text',
252
  'desc_tip' => true,
253
  /* translators: %s: list of placeholders */
254
- 'description' => sprintf( __( 'Available placeholders: %s', 'woo-advanced-shipment-tracking' ), '<code>{site_title}, {order_date}, {order_number}</code>' ),
255
  'placeholder' => $this->get_default_heading(),
256
  'default' => '',
257
  ),
258
  'email_type' => array(
259
- 'title' => __( 'Email type', 'woo-advanced-shipment-tracking' ),
260
  'type' => 'select',
261
- 'description' => __( 'Choose which format of email to send.', 'woo-advanced-shipment-tracking' ),
262
  'default' => 'html',
263
  'class' => 'email_type wc-enhanced-select',
264
  'options' => $this->get_email_type_options(),
265
  'desc_tip' => true,
266
  ),
267
- 'display_premium_options1' => array(
268
  'type' => 'title',
269
- 'description' => __( '<a href="'.wcast_initialise_customizer_email::get_customizer_url('customer_delivered_email').'" >Click Here</a>', 'woo-advanced-shipment-tracking' ),
270
  'title' => __( 'Edit in customizer', 'woo-advanced-shipment-tracking' ),
271
  ),
272
  );
44
  // Call parent constructor.
45
  parent::__construct();
46
  }
47
+
48
  /**
49
  * Get valid recipients.
50
  *
56
  $recipients = array_map( 'trim', explode( ',', $recipient ) );
57
  return implode( ', ', $recipients );
58
  }
59
+
60
  /**
61
  * Trigger the sending of this email.
62
  *
162
  ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
163
  $message .= ob_get_clean();
164
  }
165
+
166
+ if($wcast_show_order_details == 1){
167
  ob_start();
168
  wc_get_template(
169
  'emails/wcast-email-order-details.php', array(
177
  );
178
  $message .= ob_get_clean();
179
  }
180
+
181
  if($wcast_show_billing_address == 1){
182
  ob_start();
183
  wc_get_template(
190
  );
191
  $message .= ob_get_clean();
192
  }
193
+
194
  if($wcast_show_shipping_address == 1){
195
  ob_start();
196
  wc_get_template(
203
  );
204
  $message .= ob_get_clean();
205
  }
206
+
207
  // create a new email
208
  $email = new WC_Email();
209
  $email->id = 'WC_Delivered_email';
210
+
211
  // wrap the content with the email template and then add styles
212
  $message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
213
+
214
  return $message;
215
  }
216
  }
217
+
218
+ /**
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) {
233
  public function init_form_fields() {
234
  $this->form_fields = array(
235
  'enabled' => array(
236
+ 'title' => __( 'Enable/Disable', 'woocommerce' ),
237
  'type' => 'checkbox',
238
+ 'label' => __( 'Enable this email notification', 'woocommerce' ),
239
  'default' => 'yes',
240
  ),
241
  'recipient' => array(
242
+ 'title' => __( 'Recipient(s)', 'woocommerce' ),
243
  'type' => 'text',
244
  /* translators: %s: WP admin email */
245
+ 'description' => sprintf( __( 'Enter recipients (comma separated) for this email. Defaults to %s.', 'woocommerce' ), '<code>' . esc_attr( get_option( 'admin_email' ) ) . '</code>' ),
246
  'placeholder' => '',
247
  'default' => '{customer_email}',
248
  'desc_tip' => true,
249
  ),
250
  'subject' => array(
251
+ 'title' => __( 'Subject', 'woocommerce' ),
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
  ),
259
  'heading' => array(
260
+ 'title' => __( 'Email heading', 'woocommerce' ),
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
  ),
268
  'email_type' => array(
269
+ 'title' => __( 'Email type', 'woocommerce' ),
270
  'type' => 'select',
271
+ 'description' => __( 'Choose which format of email to send.', 'woocommerce' ),
272
  'default' => 'html',
273
  'class' => 'email_type wc-enhanced-select',
274
  'options' => $this->get_email_type_options(),
275
  'desc_tip' => true,
276
  ),
277
+ 'edit_in_customizer' => array(
278
  'type' => 'title',
279
+ 'description' => '<a href="'.wcast_initialise_customizer_email::get_customizer_url('customer_delivered_email').'" >'.__( 'Click Here', 'woo-advanced-shipment-tracking' ).'</a>',
280
  'title' => __( 'Edit in customizer', 'woo-advanced-shipment-tracking' ),
281
  ),
282
  );
includes/views/admin_options_bulk_upload.php CHANGED
@@ -1,8 +1,13 @@
 
 
 
 
 
1
  <section id="content4" class="tab_section">
2
  <div class="tab_inner_container">
3
  <form method="post" id="wc_ast_upload_csv_form" action="" enctype="multipart/form-data">
4
  <section id="" class="tpage_section" style="display:block;">
5
- <h3><?php _e('Upload CSV', 'woo-advanced-shipment-tracking'); ?></h3>
6
  <table class="form-table upload_csv_table">
7
  <tbody>
8
  <tr valign="top" class="">
@@ -17,28 +22,44 @@
17
  <td scope="row" class="th_20">
18
  <input type="checkbox" id="replace_tracking_info" name="replace_tracking_info" class="" value="1"/>
19
  </td>
20
- </tr>
 
 
 
 
 
 
 
 
 
 
 
 
21
  </tbody>
22
- </table>
23
-
24
- <div class="submit">
25
- <button name="save" class="button-primary woocommerce-upload-csv-save-button btn_green" type="submit" value="Save"><?php _e('Upload', 'woo-advanced-shipment-tracking'); ?></button>
26
-
27
- <div class="spinner" style="float:none"></div>
28
- <div class="success_msg" style="display:none;"><?php _e('Settings Saved.', 'woo-advanced-shipment-tracking'); ?></div>
29
- <div class="error_msg" style="display:none;"></div>
30
- <?php wp_nonce_field( 'wc_ast_upload_csv_form', 'wc_ast_upload_csv_form' );?>
31
- <input type="hidden" name="action" value="wc_ast_upload_csv_form_update">
32
- </div>
33
- <hr>
34
- <p><?php _e('You can download an example of the csv file:', 'woo-advanced-shipment-tracking'); ?></p>
35
- <a class="button-primary btn_green2" href="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>/assets/tracking.csv"><?php _e('Download sample csv file', 'woo-advanced-shipment-tracking'); ?></a>
36
- <p><?php _e('For detailed instructions on how to upload tracking info in bulk, see our', 'woo-advanced-shipment-tracking'); ?> <a class="" href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/bulk-import-shipment-tracking/" target="blank"><?php _e('documentation', 'woo-advanced-shipment-tracking'); ?></a>.</p>
37
  <div id="p1" class="mdl-progress mdl-js-progress" style="display:none;"></div>
38
  <h3 class="progress_title" style="display:none;"><?php _e('Upload Progress - ', 'woo-advanced-shipment-tracking'); ?><span class="progress_number"></span></h3>
39
  <ol class="csv_upload_status">
40
 
41
  </ol>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  </section>
43
  </form>
44
  </div>
1
+ <?php
2
+ /**
3
+ * html code for bulk upload tab
4
+ */
5
+ ?>
6
  <section id="content4" class="tab_section">
7
  <div class="tab_inner_container">
8
  <form method="post" id="wc_ast_upload_csv_form" action="" enctype="multipart/form-data">
9
  <section id="" class="tpage_section" style="display:block;">
10
+ <h3 class="table-heading"><?php _e('Upload CSV', 'woo-advanced-shipment-tracking'); ?></h3>
11
  <table class="form-table upload_csv_table">
12
  <tbody>
13
  <tr valign="top" class="">
22
  <td scope="row" class="th_20">
23
  <input type="checkbox" id="replace_tracking_info" name="replace_tracking_info" class="" value="1"/>
24
  </td>
25
+ </tr>
26
+ <tr valign="top" class="">
27
+ <th scope="row" colspan="2">
28
+ <div class="submit">
29
+ <button name="save" class="button-primary btn_ast2 btn_large" type="submit" value="Save"><?php _e('Upload', 'woo-advanced-shipment-tracking'); ?></button>
30
+ <div class="spinner" style="float:none"></div>
31
+ <div class="success_msg" style="display:none;"><?php _e('Settings Saved.', 'woo-advanced-shipment-tracking'); ?></div>
32
+ <div class="error_msg" style="display:none;"></div>
33
+ <?php wp_nonce_field( 'wc_ast_upload_csv_form', 'wc_ast_upload_csv_form' );?>
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>
48
+ <tr valign="top" style="border-bottom: 0;">
49
+ <td>
50
+ <p><?php _e('You can download an example of the csv file:', 'woo-advanced-shipment-tracking'); ?></p>
51
+ </td>
52
+ <td>
53
+ <a class="button-primary btn_ast2 btn_large" href="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>/assets/tracking.csv"><?php _e('Download sample csv file', 'woo-advanced-shipment-tracking'); ?></a>
54
+ </td>
55
+ </tr>
56
+ <tr valign="top">
57
+ <td style="padding-top: 0;" colspan="2">
58
+ <p><?php _e('For detailed instructions on how to upload tracking info in bulk, see our', 'woo-advanced-shipment-tracking'); ?> <a class="" href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/bulk-import-shipment-tracking/" target="blank"><?php _e('Documentation', 'woo-advanced-shipment-tracking'); ?></a>.</p>
59
+ </td>
60
+ </tr>
61
+ </tbody>
62
+ </table>
63
  </section>
64
  </form>
65
  </div>
includes/views/admin_options_settings.php CHANGED
@@ -1,34 +1,86 @@
1
- <section id="content2" class="tab_section">
 
 
 
 
 
2
  <div class="tab_inner_container">
3
  <form method="post" id="wc_ast_settings_form" action="" enctype="multipart/form-data">
4
  <?php #nonce?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
 
6
- <input id="tab9" type="radio" name="pagetabs" class="tab_input_1" checked>
7
- <label for="tab9"><?php _e( 'General', 'woo-advanced-shipment-tracking' ); ?></label>
8
- <span style="margin: 0 3px;">|</span>
9
- <input id="tab10" type="radio" class="tab_input_1" name="pagetabs" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'delivered-order-status'){ echo 'checked'; } ?>>
10
- <label for="tab10"><?php _e( 'Delivered Order Status', 'woo-advanced-shipment-tracking' ); ?></label>
11
- <span style="margin: 0 3px;">|</span>
12
- <label style="vertical-align: top;"><a style="text-decoration: none;" href="<?php echo wcast_initialise_customizer_settings::get_customizer_url('default_controls_section','settings') ?>" class=""><?php _e( 'Tracking Info Display Designer', 'woo-advanced-shipment-tracking' ); ?> <span class="dashicons dashicons-welcome-view-site"></span> </a></label>
13
- <br class="clear">
14
- <section id="content9" class="tpage_section">
15
- <h3><?php _e( 'General Settings', 'woo-advanced-shipment-tracking' ); ?></h3>
16
- <?php $this->get_html( $this->get_settings_data() );?>
17
- </section>
18
- <section id="content10" class="tpage_section">
19
- <h3><?php _e( 'Delivered Order Status', 'woo-advanced-shipment-tracking' ); ?></h3>
20
- <?php $this->get_html( $this->get_delivered_data() );?>
21
- <p><?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>
22
- </section>
23
- <div class="submit">
24
- <button name="save" class="button-primary woocommerce-save-button btn_green" type="submit" value="Save changes"><?php _e( 'Save', 'woo-advanced-shipment-tracking' ); ?></button>
25
- <div class="spinner" style="float:none"></div>
26
- <div class="success_msg" style="display:none;"><?php _e( 'Data saved successfully.', 'woo-advanced-shipment-tracking' ); ?></div>
27
- <div class="error_msg" style="display:none;"></div>
28
- <?php wp_nonce_field( 'wc_ast_settings_form', 'wc_ast_settings_form' );?>
29
- <input type="hidden" name="action" value="wc_ast_settings_form_update">
30
- </div>
31
  </form>
32
  </div>
33
  <?php include 'zorem_admin_sidebar.php';?>
34
- </section>
1
+ <?php
2
+ /**
3
+ * html code for settings tab
4
+ */
5
+ ?>
6
+ <section id="content2" class="tab_section">
7
  <div class="tab_inner_container">
8
  <form method="post" id="wc_ast_settings_form" action="" enctype="multipart/form-data">
9
  <?php #nonce?>
10
+
11
+ <table class="form-table heading-table">
12
+ <tbody>
13
+ <tr valign="top">
14
+ <td>
15
+ <h3 style=""><?php _e( 'General Settings', 'woo-advanced-shipment-tracking' ); ?></h3>
16
+ </td>
17
+ </tr>
18
+ </tbody>
19
+ </table>
20
+ <?php $this->get_html( $this->get_settings_data() );?>
21
+ <table class="form-table">
22
+ <tbody>
23
+ <tr valign="top">
24
+ <td class="button-column">
25
+ <div class="submit">
26
+ <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>
27
+ <div class="spinner"></div>
28
+ <?php wp_nonce_field( 'wc_ast_settings_form', 'wc_ast_settings_form' );?>
29
+ <input type="hidden" name="action" value="wc_ast_settings_form_update">
30
+ </div>
31
+ </td>
32
+ </tr>
33
+ </tbody>
34
+ </table>
35
+
36
+ <table class="form-table heading-table">
37
+ <tbody>
38
+ <tr valign="top">
39
+ <td>
40
+ <h3 style=""><?php _e( 'Tracking Info Display', 'woo-advanced-shipment-tracking' ); ?></h3>
41
+ </td>
42
+ </tr>
43
+ </tbody>
44
+ </table>
45
+ <table class="form-table">
46
+ <tbody>
47
+ <tr valign="top">
48
+ <td>
49
+ <p style=""><?php _e( 'You can customize the tracking info display on emails and my account', 'woo-advanced-shipment-tracking' ); ?></p>
50
+ </td>
51
+ <td>
52
+ <a href="<?php echo wcast_initialise_customizer_settings::get_customizer_url('default_controls_section','settings') ?>" class="button-primary btn_ast2 btn_large"><?php _e( 'Launch Customizer', 'woo-advanced-shipment-tracking' ); ?> <span class="dashicons dashicons-welcome-view-site"></span></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( '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
  </form>
84
  </div>
85
  <?php include 'zorem_admin_sidebar.php';?>
86
+ </section>
includes/views/admin_options_shipping_provider.php CHANGED
@@ -1,25 +1,30 @@
 
 
 
 
 
1
  <?php $wc_ast_api_key = get_option('wc_ast_api_key'); ?>
2
  <section id="content1" class="tab_section">
3
  <div class="d_table" style="">
4
  <div class="tab_inner_container">
5
  <div class="provider_top">
6
  <div class="status_filter">
7
- <a href="javaScript:void(0);" data-status="active" class="active">Active</a>
8
- <a href="javaScript:void(0);" data-status="inactive">Inactive</a>
9
- <a href="javaScript:void(0);" data-status="custom">Custom</a>
10
- <a href="javaScript:void(0);" data-status="all">All</a>
11
  </div>
12
  <div class="provider_settings dropdown">
13
  <span class="dashicons dashicons-admin-generic dropdown_menu"></span>
14
  </div>
15
  <ul class="dropdown-content">
16
- <li><a href="javaScript:void(0);" class="add_custom_provider" id="add-custom">Add Custom Provider</a></li>
17
- <li><a href="javaScript:void(0);" class="sync_providers">Sync Provider List</a></li>
18
- <li>Reset <a href="javaScript:void(0);" class="reset_active">active</a> | <a href="javaScript:void(0);" class="reset_inactive">inactive</a></li>
19
  </ul>
20
  <div class="search_section">
21
  <span class="dashicons dashicons-search search-icon"></span>
22
- <input class="provider_search_bar " type="text" name="search_provider" id="search_provider" placeholder="Search by provider / country">
23
  </div>
24
  </div>
25
  <div class="provider_list">
@@ -27,59 +32,61 @@
27
  if($default_shippment_providers){
28
  foreach($default_shippment_providers as $d_s_p){ ?>
29
  <div class="provider <?php if($d_s_p->display_in_order == 1) { echo 'active_provider'; } ?>">
30
- <div class="row-1">
31
- <div class="left-div">
32
- <a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank">
33
- <?php if( $d_s_p->shipping_default == 1 ){ ?>
34
- <img class="provider-thumb" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/<?php echo sanitize_title($d_s_p->provider_name);?>.png?v=<?php echo wc_advanced_shipment_tracking()->version;?>">
35
- <?php } else{
36
- $custom_thumb_id = $d_s_p->custom_thumb_id;
37
- $image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
38
- //echo '<pre>';print_r($custom_thumb_id);echo '</pre>';exit;
39
- if($custom_thumb_id != 0){ ?>
40
- <img class="provider-thumb" src="<?php echo $image_attributes[0]; ?>">
41
- <?php } else{
42
- ?>
43
- <img class="provider-thumb" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/icon-default.png">
44
- <?php } ?>
45
- <?php } ?>
46
- </a>
47
- </div>
48
- <div class="right-div">
49
- <a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank">
50
- <span class="provider_name"><?php echo $d_s_p->provider_name; ?></span>
51
- </a>
52
- <br>
53
- <span class="provider_country"><?php
54
- $search = array('(US)', '(UK)');
55
- $replace = array('', '');
56
- if($d_s_p->shipping_country && $d_s_p->shipping_country != 'Global'){
57
- echo str_replace($search, $replace, $WC_Countries->countries[$d_s_p->shipping_country]);
58
- } elseif($d_s_p->shipping_country && $d_s_p->shipping_country == 'Global'){
59
- echo 'Global';
60
- }
61
- ?></span>
62
- </div>
63
- </div>
64
- <div class="row-2">
65
- <div class="default-provider">
66
- <?php $default_provider = get_option("wc_ast_default_provider" );?>
67
- <label for="make_default_<?php echo $d_s_p->id; ?>" id="default_label_<?php echo $d_s_p->id; ?>" class="<?php if($d_s_p->display_in_order != 1) { echo 'disable_label'; } ?>">
68
- <input type="checkbox" id="make_default_<?php echo $d_s_p->id; ?>" name="make_provider_default" data-id="<?php echo $d_s_p->id; ?>" class="make_provider_default" value="<?php echo sanitize_title( $d_s_p->provider_name )?>" <?php if( $default_provider == sanitize_title( $d_s_p->provider_name ) )echo 'checked';?> <?php if($d_s_p->display_in_order != 1) { echo 'disabled'; } ?>>
69
- <span>default</span>
70
- </label>
71
  </div>
72
- <div class="provider-status">
73
- <?php if( $d_s_p->shipping_default == 0 ){ ?>
74
- <span class="dashicons dashicons-edit edit_provider" data-pid="<?php echo $d_s_p->id; ?>"></span>
75
- <span class="dashicons dashicons-trash remove" data-pid="<?php echo $d_s_p->id; ?>"></span>
76
- <?php } ?>
77
- <span class="mdl-list__item-secondary-action">
78
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="list-switch-<?php echo $d_s_p->id; ?>">
79
- <input type="checkbox" name="select_custom_provider[]" id="list-switch-<?php echo $d_s_p->id; ?>" class="mdl-switch__input status_slide" value="<?php echo $d_s_p->id; ?>" <?php if($d_s_p->display_in_order == 1) { echo 'checked'; } ?> />
80
  </label>
81
- </span>
82
- </div>
 
 
 
 
 
 
 
 
 
 
 
83
  </div>
84
  </div>
85
  <?php } } else{
@@ -98,7 +105,7 @@
98
  </div>
99
  <div>
100
  <select class="select wcast_shipping_country" name="shipping_country" id="shipping_country">
101
- <option value=""><?php _e( 'Shiping Country', 'woo-advanced-shipment-tracking' ); ?></option>
102
  <option value="Global"><?php _e( 'Global', 'woo-advanced-shipment-tracking' ); ?></option>
103
  <?php
104
  foreach($countries as $key=>$val){ ?>
@@ -116,7 +123,7 @@
116
  </div>
117
  <div>
118
  <input type="hidden" name="action" value="add_custom_shipment_provider">
119
- <input type="submit" name="Submit" value="Submit" class="button-primary btn_green">
120
  </div>
121
  </form>
122
  </div>
@@ -132,7 +139,7 @@
132
  </div>
133
  <div>
134
  <select class="select wcast_shipping_country" name="shipping_country" id="shipping_country">
135
- <option value=""><?php _e( 'Shiping Country', 'woo-advanced-shipment-tracking' ); ?></option>
136
  <option value="Global"><?php _e( 'Global', 'woo-advanced-shipment-tracking' ); ?></option>
137
  <?php
138
  foreach($countries as $key=>$val){ ?>
@@ -151,7 +158,7 @@
151
  <div>
152
  <input type="hidden" name="action" value="update_custom_shipment_provider">
153
  <input type="hidden" name="provider_id" id="provider_id" value="">
154
- <input type="submit" name="Submit" value="Update" class="button-primary btn_green">
155
  </div>
156
  </form>
157
  </div>
@@ -160,16 +167,16 @@
160
 
161
  <div id="" class="popupwrapper sync_provider_popup" style="display:none;">
162
  <div class="popuprow">
163
- <h3 class="popup_title"><?php _e( 'Sync Providers', 'woo-advanced-shipment-tracking'); ?></h2>
164
- <p class="sync_message"><?php _e( 'Do you really want to sync all providers?', 'woo-advanced-shipment-tracking'); ?></p>
165
  <ul class="synch_result">
166
  <li class="providers_added"><?php _e( 'Providers Added', 'woo-advanced-shipment-tracking'); ?> - <span></span></li>
167
  <li class="providers_updated"><?php _e( 'Providers Updated', 'woo-advanced-shipment-tracking'); ?> - <span></span></li>
168
  <li class="providers_deleted"><?php _e( 'Providers Deleted', 'woo-advanced-shipment-tracking'); ?> - <span></span></li>
169
  </ul>
170
- <button class="sync_providers_btn button-primary btn_green"><?php _e( 'Sync Providers', 'woo-advanced-shipment-tracking'); ?></button>
171
- <button class="close_synch_popup button-primary btn_green"><?php _e( 'Close', 'woo-advanced-shipment-tracking'); ?></button>
172
- <div class="spinner" style="float:none"></div>
173
  </div>
174
  <div class="popupclose"></div>
175
  </div>
1
+ <?php
2
+ /**
3
+ * html code for shipping providers tab
4
+ */
5
+ ?>
6
  <?php $wc_ast_api_key = get_option('wc_ast_api_key'); ?>
7
  <section id="content1" class="tab_section">
8
  <div class="d_table" style="">
9
  <div class="tab_inner_container">
10
  <div class="provider_top">
11
  <div class="status_filter">
12
+ <a href="javaScript:void(0);" data-status="active" class="active"><?php _e( 'Active', 'woo-advanced-shipment-tracking'); ?></a>
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', 'woo-advanced-shipment-tracking'); ?></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">
32
  if($default_shippment_providers){
33
  foreach($default_shippment_providers as $d_s_p){ ?>
34
  <div class="provider <?php if($d_s_p->display_in_order == 1) { echo 'active_provider'; } ?>">
35
+ <div class="provider_inner">
36
+ <div class="row-1">
37
+ <div class="left-div">
38
+ <a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank">
39
+ <?php if( $d_s_p->shipping_default == 1 ){ ?>
40
+ <img class="provider-thumb" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/<?php echo sanitize_title($d_s_p->provider_name);?>.png?v=<?php echo wc_advanced_shipment_tracking()->version;?>">
41
+ <?php } else{
42
+ $custom_thumb_id = $d_s_p->custom_thumb_id;
43
+ $image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
44
+ //echo '<pre>';print_r($custom_thumb_id);echo '</pre>';exit;
45
+ if($custom_thumb_id != 0){ ?>
46
+ <img class="provider-thumb" src="<?php echo $image_attributes[0]; ?>">
47
+ <?php } else{
48
+ ?>
49
+ <img class="provider-thumb" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/shipment-provider-img/icon-default.png">
50
+ <?php } ?>
51
+ <?php } ?>
52
+ </a>
53
+ </div>
54
+ <div class="right-div">
55
+ <a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank">
56
+ <span class="provider_name"><?php echo $d_s_p->provider_name; ?></span>
57
+ </a>
58
+ <br>
59
+ <span class="provider_country"><?php
60
+ $search = array('(US)', '(UK)');
61
+ $replace = array('', '');
62
+ if($d_s_p->shipping_country && $d_s_p->shipping_country != 'Global'){
63
+ echo str_replace($search, $replace, $WC_Countries->countries[$d_s_p->shipping_country]);
64
+ } elseif($d_s_p->shipping_country && $d_s_p->shipping_country == 'Global'){
65
+ echo 'Global';
66
+ }
67
+ ?></span>
68
+ </div>
 
 
 
 
 
 
 
69
  </div>
70
+ <div class="row-2">
71
+ <div class="default-provider">
72
+ <?php $default_provider = get_option("wc_ast_default_provider" );?>
73
+ <label for="make_default_<?php echo $d_s_p->id; ?>" id="default_label_<?php echo $d_s_p->id; ?>" class="<?php if($d_s_p->display_in_order != 1) { echo 'disable_label'; } ?>">
74
+ <input type="checkbox" id="make_default_<?php echo $d_s_p->id; ?>" name="make_provider_default" data-id="<?php echo $d_s_p->id; ?>" class="make_provider_default" value="<?php echo sanitize_title( $d_s_p->provider_name )?>" <?php if( $default_provider == sanitize_title( $d_s_p->provider_name ) )echo 'checked';?> <?php if($d_s_p->display_in_order != 1) { echo 'disabled'; } ?>>
75
+ <span>default</span>
 
 
76
  </label>
77
+ </div>
78
+ <div class="provider-status">
79
+ <?php if( $d_s_p->shipping_default == 0 ){ ?>
80
+ <span class="dashicons dashicons-edit edit_provider" data-pid="<?php echo $d_s_p->id; ?>"></span>
81
+ <span class="dashicons dashicons-trash remove" data-pid="<?php echo $d_s_p->id; ?>"></span>
82
+ <?php } ?>
83
+ <span class="mdl-list__item-secondary-action">
84
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="list-switch-<?php echo $d_s_p->id; ?>">
85
+ <input type="checkbox" name="select_custom_provider[]" id="list-switch-<?php echo $d_s_p->id; ?>" class="mdl-switch__input status_slide" value="<?php echo $d_s_p->id; ?>" <?php if($d_s_p->display_in_order == 1) { echo 'checked'; } ?> />
86
+ </label>
87
+ </span>
88
+ </div>
89
+ </div>
90
  </div>
91
  </div>
92
  <?php } } else{
105
  </div>
106
  <div>
107
  <select class="select wcast_shipping_country" name="shipping_country" id="shipping_country">
108
+ <option value=""><?php _e( 'Shipping Country', 'woo-advanced-shipment-tracking' ); ?></option>
109
  <option value="Global"><?php _e( 'Global', 'woo-advanced-shipment-tracking' ); ?></option>
110
  <?php
111
  foreach($countries as $key=>$val){ ?>
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>
139
  </div>
140
  <div>
141
  <select class="select wcast_shipping_country" name="shipping_country" id="shipping_country">
142
+ <option value=""><?php _e( 'Shipping Country', 'woo-advanced-shipment-tracking' ); ?></option>
143
  <option value="Global"><?php _e( 'Global', 'woo-advanced-shipment-tracking' ); ?></option>
144
  <?php
145
  foreach($countries as $key=>$val){ ?>
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>
167
 
168
  <div id="" class="popupwrapper sync_provider_popup" style="display:none;">
169
  <div class="popuprow">
170
+ <h3 class="popup_title"><?php _e( 'Sync Shipping Providers', 'woo-advanced-shipment-tracking'); ?></h2>
171
+ <p class="sync_message"><?php _e( 'Syncing the shipping providers list add or updates the pre-set shipping providers and will not effect custom shipping providers.', 'woo-advanced-shipment-tracking'); ?></p>
172
  <ul class="synch_result">
173
  <li class="providers_added"><?php _e( 'Providers Added', 'woo-advanced-shipment-tracking'); ?> - <span></span></li>
174
  <li class="providers_updated"><?php _e( 'Providers Updated', 'woo-advanced-shipment-tracking'); ?> - <span></span></li>
175
  <li class="providers_deleted"><?php _e( 'Providers Deleted', 'woo-advanced-shipment-tracking'); ?> - <span></span></li>
176
  </ul>
177
+ <button class="sync_providers_btn button-primary btn_ast2 btn_large"><?php _e( 'Sync Shipping Providers', 'woo-advanced-shipment-tracking'); ?></button>
178
+ <button class="close_synch_popup button-primary btn_ast2 btn_large"><?php _e( 'Close', 'woocommerce'); ?></button>
179
+ <div class="spinner" style=""></div>
180
  </div>
181
  <div class="popupclose"></div>
182
  </div>
includes/views/admin_options_trackship_integration.php CHANGED
@@ -1,283 +1,257 @@
 
 
 
 
 
1
  <section id="content3" class="tab_section">
2
  <div class="d_table" style="">
3
- <div class="tab_inner_container">
4
- <form method="post" id="wc_ast_trackship_form" action="" enctype="multipart/form-data">
5
- <?php #nonce?>
6
- <?php
7
- $wc_ast_api_key = get_option('wc_ast_api_key');
8
- if($wc_ast_api_key){ ?>
9
- <input id="tab6" type="radio" name="pagetabs" class="tab_input_1" checked>
10
- <label for="tab6"><?php _e( 'General', 'woo-advanced-shipment-tracking' ); ?></label>
11
- <span style="margin: 0 3px;">|</span>
12
- <input id="tab7" type="radio" class="tab_input_1" name="pagetabs" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'tracking-page'){ echo 'checked'; } ?>>
13
- <label for="tab7"><?php _e( 'Tracking Page', 'woo-advanced-shipment-tracking' ); ?></label>
14
- <span style="margin: 0 3px;">|</span>
15
- <input id="tab8" type="radio" class="tab_input_1" name="pagetabs" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'shipment-status-notifications'){ echo 'checked'; } ?>>
16
- <label for="tab8"><?php _e( 'Shipment Status Notifications', 'woo-advanced-shipment-tracking' ); ?></label>
17
- <br class="clear">
18
- <section id="content6" class="tpage_section">
19
- <h3><?php _e('General Settings', 'woo-advanced-shipment-tracking'); ?></h3>
20
- <?php
21
- $this->get_html( $this->get_trackship_general_data() );
22
- if($wc_ast_api_key){
23
- ?>
24
- <div class="submit">
25
- <button name="save" class="button-primary woocommerce-save-button btn_green" type="submit" value="Save changes"><?php _e( 'Save', 'woo-advanced-shipment-tracking' ); ?></button>
26
- <div class="spinner" style="float:none"></div>
27
- <div class="success_msg" style="display:none;"><?php _e( 'Settings Saved.', 'woo-advanced-shipment-tracking' ); ?></div>
28
- <div class="error_msg" style="display:none;"></div>
29
- <?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form' );?>
30
- <input type="hidden" name="action" value="wc_ast_trackship_form_update">
31
- </div>
32
- <?php } ?>
33
- </section>
34
- <section id="content7" class="tpage_section">
35
- <h3><?php _e('Tracking Page', 'woo-advanced-shipment-tracking'); ?></h3>
36
- <?php
37
- $this->get_html( $this->get_trackship_page_data() );
38
- if($wc_ast_api_key){
39
- ?>
40
- <a href="<?php echo admin_url('admin-ajax.php')?>?action=preview_tracking_page" class="tracking-preview-link" target="_blank"><?php _e('Click to preview the tracking page', 'woo-advanced-shipment-tracking'); ?></a>
41
- <p class="tracking-preview-desc"><?php _e('PLEASE NOTE - make sure to save your settings before preview.', 'woo-advanced-shipment-tracking'); ?></p>
42
- <div class="submit">
43
- <button name="save" class="button-primary woocommerce-save-button btn_green" type="submit" value="Save changes"><?php _e( 'Save', 'woo-advanced-shipment-tracking' ); ?></button>
44
- <div class="spinner" style="float:none"></div>
45
- <div class="success_msg" style="display:none;"><?php _e( 'Settings Saved.', 'woo-advanced-shipment-tracking' ); ?></div>
46
- <div class="error_msg" style="display:none;"></div>
47
- <?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form' );?>
48
- <input type="hidden" name="action" value="wc_ast_trackship_form_update">
49
- </div>
50
- <?php } ?>
51
- </section>
52
- <section id="content8" class="tpage_section">
53
- <h3><?php _e('Shipment Status Notifications ', 'woo-advanced-shipment-tracking'); ?></h3>
54
- <?php
55
- $wcast_enable_delivered_email = get_option('woocommerce_customer_delivered_order_settings');
56
- $wcast_enable_pretransit_email = get_theme_mod('wcast_enable_pretransit_email');
57
- $wcast_enable_intransit_email = get_theme_mod('wcast_enable_intransit_email');
58
- $wcast_enable_outfordelivery_email = get_theme_mod('wcast_enable_outfordelivery_email');
59
- $wcast_enable_failure_email = get_theme_mod('wcast_enable_failure_email');
60
- $wcast_enable_delivered_status_email = get_theme_mod('wcast_enable_delivered_status_email');
61
- $wcast_enable_returntosender_email = get_theme_mod('wcast_enable_returntosender_email');
62
- $wcast_enable_availableforpickup_email = get_theme_mod('wcast_enable_availableforpickup_email');
63
- $wc_ast_api_key = get_option('wc_ast_api_key');
64
- //echo '<pre>';print_r($wcast_enable_delivered_email['enabled']);echo '</pre>';
65
- ?>
66
- <section class="ac-container">
67
- <?php
68
- if($wc_ast_api_key){
69
- ?>
70
- <div class="headig_label <?php if($wcast_enable_intransit_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
71
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/In-Transit-512.png">
72
- <span class="email_status_span">
73
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
74
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_intransit_email">
75
- <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'; } ?> />
76
- </label>
77
- </span>
78
- </span>
79
- <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>
80
- <a class="edit_customizer_a" href="<?php echo wcast_intransit_customizer_email::get_customizer_url('customer_intransit_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woo-advanced-shipment-tracking'); ?></a>
81
- <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>
82
- </div>
83
 
84
- <div class="headig_label <?php if($wcast_enable_returntosender_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
85
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/return-to-sender-512.png">
86
- <span class="email_status_span">
87
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
88
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_returntosender_email">
89
- <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'; } ?> />
90
- </label>
91
- </span>
92
- </span>
93
- <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>
94
- <a class="edit_customizer_a" href="<?php echo wcast_returntosender_customizer_email::get_customizer_url('customer_returntosender_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woo-advanced-shipment-tracking'); ?></a>
95
- <p class="shipment_about"><?php _e('Shipment is returned to sender', 'woo-advanced-shipment-tracking'); ?></p>
96
- </div>
97
-
98
- <div class="headig_label <?php if($wcast_enable_availableforpickup_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
99
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/available-for-picup-512.png">
100
- <span class="email_status_span">
101
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
102
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_availableforpickup_email">
103
- <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'; } ?> />
104
- </label>
105
- </span>
106
- </span>
107
- <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>
108
- <a class="edit_customizer_a" href="<?php echo wcast_availableforpickup_customizer_email::get_customizer_url('customer_availableforpickup_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woo-advanced-shipment-tracking'); ?></a>
109
- <p class="shipment_about"><?php _e('The shipment is ready to pickup.', 'woo-advanced-shipment-tracking'); ?></p>
110
- </div>
111
- <div class="headig_label <?php if($wcast_enable_outfordelivery_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
112
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Out-for-Delivery-512.png">
113
- <span class="email_status_span">
114
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
115
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_outfordelivery_email">
116
- <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'; } ?> />
117
- </label>
118
- </span>
119
- </span>
120
- <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>
121
- <a class="edit_customizer_a" href="<?php echo wcast_outfordelivery_customizer_email::get_customizer_url('customer_outfordelivery_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woo-advanced-shipment-tracking'); ?></a>
122
- <p class="shipment_about"><?php _e('Carrier is about to deliver the shipment', 'woo-advanced-shipment-tracking'); ?></p>
123
- </div>
124
-
125
- <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'){ echo 'delivered_enabel'; } ?>">
126
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Delivered-512.png">
127
- <span class="email_status_span">
128
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
129
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_delivered_status_email">
130
- <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'){ echo 'disabled'; }?> />
131
- </label>
132
- </span>
133
- </span>
134
- <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'){ echo 'disabled_link'; }?>"><?php _e('Delivered', 'woo-advanced-shipment-tracking'); ?></a>
135
- <a class="edit_customizer_a <?php if($wcast_enable_delivered_email['enabled'] === 'yes'){ echo 'disabled_link'; }?>" href="<?php echo wcast_delivered_customizer_email::get_customizer_url('customer_delivered_status_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woo-advanced-shipment-tracking'); ?></a>
136
- <p class="shipment_about"><?php _e('The shipment was delivered successfully', 'woo-advanced-shipment-tracking'); ?></p>
137
- <p class="delivered_message <?php if($wcast_enable_delivered_email['enabled'] === 'yes'){ 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>
138
- </div>
139
-
140
- <div class="headig_label <?php if($wcast_enable_failure_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
141
- <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/failure-512.png">
142
- <span class="email_status_span">
143
- <span class="mdl-list__item-secondary-action shipment_status_toggle">
144
- <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_failure_email">
145
- <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'; } ?> />
146
- </label>
147
- </span>
148
- </span>
149
- <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>
150
- <a class="edit_customizer_a" href="<?php echo wcast_failure_customizer_email::get_customizer_url('customer_failure_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woo-advanced-shipment-tracking'); ?></a>
151
- <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>
152
- </div>
153
- <?php } ?>
154
- </section>
155
- </section>
156
- <?php } else{ ?>
157
- <div class="section-content trackship_section">
158
- <div class="" id="">
159
- <div class="text-center">
160
- <img src="https://trackship.info/wp-content/uploads/2019/08/trackship-400.png" class="trackship_logo">
161
- </div>
162
- <div class="text-center">
163
- <h3 class="heading">Automate your Shipment Tracking &amp; Delivery Operations</h3>
164
- <p class="lead ts_description">TrackShip pro actively sends shipment status updates to your WooCommerce store and streamlines your order management process and provide improved post-purchase experience to your customers.</p>
165
- <a href="https://trackship.info?utm_source=wp_admin&utm_medium=referral&utm_campaign=coming_soon" target="_self" class="trackship_button"><span>SIGNUP NOW</span></a>
166
- </div>
167
- <div class="col small-12 large-12">
168
- <div class="col-inner text-center">
169
- <div class="container section-title-container">
170
- <h3 class="section-title section-title-center"><b></b><span class="section-title-main">included Features</span><b></b></h3>
171
- </div>
172
- <div class="row row-box-shadow-1" id="row-582581561">
173
- <div class="col-4">
174
- <div class="col-inner">
175
- <div class="icon-box featured-box icon-box-center text-center">
176
- <div class="icon-box-img" style="width: 60px">
177
- <div class="icon">
178
- <div class="icon-inner"></div>
179
- </div>
180
- </div>
181
- <div class="icon-box-text last-reset">
182
- <img class="trackship-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Multi-Carrier-Support.png">
183
- <h4>Multi-Carrier </br>Support</h4>
184
- <p>TrackShip’s Tracking API auto-tracks all your shipments with <a href="https://trackship.info/shipping-providers/" target="blak">100+ shipping providers</a> across the globe, so you and your customers can see exactly where their package is 24×7.</p>
185
- </div>
186
- </div>
187
- </div>
188
- </div>
189
- <div class="col-4">
190
- <div class="col-inner">
191
- <div class="icon-box featured-box icon-box-center text-center">
192
- <div class="icon-box-img" style="width: 60px">
193
- <div class="icon">
194
- <div class="icon-inner"></div>
195
- </div>
196
- </div>
197
- <div class="icon-box-text last-reset">
198
- <img class="trackship-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/woo-inegration.png">
199
- <h4>WooCommerce </br>Integration</h4>
200
- <p>Trackship fully integrates with WooCommerce with the <a href="https://wordpress.org/plugins/woo-advanced-shipment-tracking/">Advanced Shipment Tracking</a> plugin, and most of its features can be easily managed directly from your WooCommerce admin panel.</p>
201
- </div>
202
- </div>
203
- </div>
204
- </div>
205
- <div class="col-4">
206
- <div class="col-inner">
207
- <div class="icon-box featured-box icon-box-center text-center">
208
- <div class="icon-box-img" style="width: 60px">
209
- <div class="icon">
210
- <div class="icon-inner"></div>
211
- </div>
212
- </div>
213
- <div class="icon-box-text last-reset">
214
- <img class="trackship-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/customer-support.png">
215
- <h4>Better Customer </br>Support</h4>
216
- <p>The most frequent question shoppers ask is, “Where's my order?” with TrackShip, you and your customers will know where the package is at all time. tracking information will display on WooCommerce orders panel.</p>
217
- </div>
218
- </div>
219
- </div>
220
- </div>
221
- <div class="col-4">
222
- <div class="col-inner">
223
- <div class="icon-box featured-box icon-box-center text-center">
224
- <div class="icon-box-img" style="width: 60px">
225
- <div class="icon">
226
- <div class="icon-inner"></div>
227
- </div>
228
- </div>
229
- <div class="icon-box-text last-reset">
230
- <img class="trackship-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/delivery-email-2.png">
231
- <h4>Shipment Status </br>Notifications</h4>
232
- <p>Engage your Customer with personalized shipment status email notifications triggered by shipment status changes; In Transit, Out For Delivery, Delivered or have an Exception.</p>
233
- </div>
234
- </div>
235
- </div>
236
- </div>
237
- <div class="col-4">
238
- <div class="col-inner">
239
- <div class="icon-box featured-box icon-box-center text-center">
240
- <div class="icon-box-img" style="width: 60px">
241
- <div class="icon">
242
- <div class="icon-inner"></div>
243
- </div>
244
- </div>
245
- <div class="icon-box-text last-reset">
246
- <img class="trackship-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Branded-Tracking-Page.png">
247
- <h4>Branded Tracking </br>Page</h4>
248
- <p>Direct customers to a tracking page on your website and further engage customers after sales. Instead of sending your customers to track their order at a carrier page, you can direct customers to a detailed tracking page on your store.</p>
249
- </div>
250
- </div>
251
- </div>
252
- </div>
253
- <div class="col-4">
254
- <div class="col-inner">
255
- <div class="icon-box featured-box icon-box-center text-center">
256
- <div class="icon-box-img" style="width: 60px">
257
- <div class="icon">
258
- <div class="icon-inner"></div>
259
- </div>
260
- </div>
261
- <div class="icon-box-text last-reset">
262
- <img class="trackship-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/shiping-and-delivery-analytics.png">
263
- <h4>Shipping & Delivery </br>Analytics</h4>
264
- <p>Analyse delivery performance using tracking data. Find out exception for your past shipments and get an overview of your historic shipments data, find shipments by provider, delivery status,, ship date and more.</p>
265
- </div>
266
- </div>
267
- </div>
 
 
268
  </div>
 
 
 
 
 
 
 
 
 
 
 
269
  </div>
270
  </div>
271
  </div>
272
- </div>
273
- </div>
274
- <?php }
275
- ?>
276
- </form>
277
- </div>
278
  <?php
279
  if($wc_ast_api_key){
280
- include 'zorem_admin_ts_sidebar.php';
281
  }
282
  ?>
283
  </div>
1
+ <?php
2
+ /**
3
+ * html code for trackship tab
4
+ */
5
+ ?>
6
  <section id="content3" class="tab_section">
7
  <div class="d_table" style="">
8
+ <div class="tab_inner_container">
9
+ <form method="post" id="wc_ast_trackship_form" action="" enctype="multipart/form-data">
10
+ <?php
11
+ $wc_ast_api_key = get_option('wc_ast_api_key');
12
+ if($wc_ast_api_key){ ?>
13
+
14
+ <table class="form-table heading-table">
15
+ <tbody>
16
+ <tr valign="top">
17
+ <td><h3 style=""><?php _e( 'Connection status', 'woo-advanced-shipment-tracking' ); ?></h3></td>
18
+ </tr>
19
+ </tbody>
20
+ </table>
21
+ <table class="form-table">
22
+ <tbody>
23
+ <tr valign="top">
24
+ <td><label><?php _e( 'TrackShip Connection Status', 'woo-advanced-shipment-tracking' ); ?></label></td>
25
+ <td class="forminp">
26
+ <fieldset>
27
+ <a href="https://my.trackship.info/" target="_blank">
28
+ <span class="api_connected"><label><?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></label><span class="dashicons dashicons-yes"></span></span>
29
+ </a>
30
+ </fieldset>
31
+ </td>
32
+ </tr>
33
+ <tr valign="top">
34
+ <td colspan="2">
35
+ <?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' ); ?>
36
+ </td>
37
+ </tr>
38
+ <tr valign="top">
39
+ <td colspan="2">
40
+ <a href="https://trackship.info/documentation/" class="" style="margin-right: 10px;" target="blank"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a>
41
+ <a href="https://my.trackship.info/" class="" target="blank"><?php _e( 'TrackShip Dashboard', 'woo-advanced-shipment-tracking' ); ?></a>
42
+ </td>
43
+ </tr>
44
+ </tbody>
45
+ </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
+ <table class="form-table heading-table">
48
+ <tbody>
49
+ <tr valign="top">
50
+ <td>
51
+ <h3 style=""><?php _e( 'General Settings', 'woo-advanced-shipment-tracking' ); ?></h3>
52
+ </td>
53
+ </tr>
54
+ </tbody>
55
+ </table>
56
+ <?php $this->get_html( $this->get_trackship_general_data() ); ?>
57
+ <table class="form-table">
58
+ <tbody>
59
+ <tr valign="top">
60
+ <td class="button-column">
61
+ <div class="submit">
62
+ <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>
63
+ <div class="spinner"></div>
64
+ <?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form' );?>
65
+ <input type="hidden" name="action" value="wc_ast_trackship_form_update">
66
+ </div>
67
+ </td>
68
+ </tr>
69
+ </tbody>
70
+ </table>
71
+
72
+ <table class="form-table heading-table">
73
+ <tbody>
74
+ <tr valign="top">
75
+ <td>
76
+ <h3 style=""><?php _e( 'Tracking Page', 'woo-advanced-shipment-tracking' ); ?></h3>
77
+ </td>
78
+ </tr>
79
+ </tbody>
80
+ </table>
81
+ <?php $this->get_html( $this->get_trackship_page_data() ); ?>
82
+ <table class="form-table">
83
+ <tbody>
84
+ <tr valign="top">
85
+ <td>
86
+ <a href="<?php echo admin_url('admin-ajax.php')?>?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>
87
+ <p class="tracking-preview-desc"><?php _e('PLEASE NOTE - make sure to save your settings before preview.', 'woo-advanced-shipment-tracking'); ?></p>
88
+ </td>
89
+ </tr>
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
+ <?php
103
+ if($wc_ast_api_key){
104
+ ?>
105
+ <?php } ?>
106
+ <h3 class="table-heading"><?php _e('Shipment Status Notifications ', 'woo-advanced-shipment-tracking'); ?></h3>
107
+ <?php
108
+ $wcast_enable_delivered_email = get_option('woocommerce_customer_delivered_order_settings');
109
+ $wcast_enable_pretransit_email = get_theme_mod('wcast_enable_pretransit_email');
110
+ $wcast_enable_intransit_email = get_theme_mod('wcast_enable_intransit_email');
111
+ $wcast_enable_outfordelivery_email = get_theme_mod('wcast_enable_outfordelivery_email');
112
+ $wcast_enable_failure_email = get_theme_mod('wcast_enable_failure_email');
113
+ $wcast_enable_delivered_status_email = get_theme_mod('wcast_enable_delivered_status_email');
114
+ $wcast_enable_returntosender_email = get_theme_mod('wcast_enable_returntosender_email');
115
+ $wcast_enable_availableforpickup_email = get_theme_mod('wcast_enable_availableforpickup_email');
116
+ $wc_ast_api_key = get_option('wc_ast_api_key');
117
+ //echo '<pre>';print_r($wcast_enable_delivered_email['enabled']);echo '</pre>';
118
+ ?>
119
+ <section class="ac-container">
120
+
121
+ <div class="headig_label <?php if($wcast_enable_intransit_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
122
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/In-Transit-512.png">
123
+ <span class="email_status_span">
124
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
125
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_intransit_email">
126
+ <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'; } ?> />
127
+ </label>
128
+ </span>
129
+ </span>
130
+ <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>
131
+ <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>
132
+ <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>
133
+ </div>
134
+
135
+ <div class="headig_label <?php if($wcast_enable_returntosender_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
136
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/return-to-sender-512.png">
137
+ <span class="email_status_span">
138
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
139
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_returntosender_email">
140
+ <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'; } ?> />
141
+ </label>
142
+ </span>
143
+ </span>
144
+ <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>
145
+ <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>
146
+ <p class="shipment_about"><?php _e('Shipment is returned to sender', 'woo-advanced-shipment-tracking'); ?></p>
147
+ </div>
148
+
149
+ <div class="headig_label <?php if($wcast_enable_availableforpickup_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
150
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/available-for-picup-512.png">
151
+ <span class="email_status_span">
152
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
153
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_availableforpickup_email">
154
+ <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'; } ?> />
155
+ </label>
156
+ </span>
157
+ </span>
158
+ <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>
159
+ <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>
160
+ <p class="shipment_about"><?php _e('The shipment is ready to pickup.', 'woo-advanced-shipment-tracking'); ?></p>
161
+ </div>
162
+ <div class="headig_label <?php if($wcast_enable_outfordelivery_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
163
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Out-for-Delivery-512.png">
164
+ <span class="email_status_span">
165
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
166
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_outfordelivery_email">
167
+ <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'; } ?> />
168
+ </label>
169
+ </span>
170
+ </span>
171
+ <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>
172
+ <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>
173
+ <p class="shipment_about"><?php _e('Carrier is about to deliver the shipment', 'woo-advanced-shipment-tracking'); ?></p>
174
+ </div>
175
+
176
+ <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'){ echo 'delivered_enabel'; } ?>">
177
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Delivered-512.png">
178
+ <span class="email_status_span">
179
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
180
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_delivered_status_email">
181
+ <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'){ echo 'disabled'; }?> />
182
+ </label>
183
+ </span>
184
+ </span>
185
+ <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'){ echo 'disabled_link'; }?>"><?php _e('Delivered', 'woo-advanced-shipment-tracking'); ?></a>
186
+ <a class="edit_customizer_a <?php if($wcast_enable_delivered_email['enabled'] === 'yes'){ 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>
187
+ <p class="shipment_about"><?php _e('The shipment was delivered successfully', 'woo-advanced-shipment-tracking'); ?></p>
188
+ <p class="delivered_message <?php if($wcast_enable_delivered_email['enabled'] === 'yes'){ 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>
189
+ </div>
190
+
191
+ <div class="headig_label <?php if($wcast_enable_failure_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
192
+ <img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/failure-512.png">
193
+ <span class="email_status_span">
194
+ <span class="mdl-list__item-secondary-action shipment_status_toggle">
195
+ <label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_failure_email">
196
+ <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'; } ?> />
197
+ </label>
198
+ </span>
199
+ </span>
200
+ <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>
201
+ <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>
202
+ <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>
203
+ </div>
204
+ </section>
205
+
206
+ <table class="form-table heading-table">
207
+ <tbody>
208
+ <tr valign="top">
209
+ <td>
210
+ <h3 style=""><?php _e( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ); ?></h3>
211
+ </td>
212
+ </tr>
213
+ </tbody>
214
+ </table>
215
+ <table class="form-table">
216
+ <tbody>
217
+ <tr>
218
+ <td>
219
+ <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>
220
+ </td>
221
+ </tr>
222
+ </tbody>
223
+ </table>
224
+ <?php $this->get_html( $this->get_trackship_bulk_actions_data() ); ?>
225
+
226
+ <?php } else{ ?>
227
+ <div class="section-content trackship_section">
228
+ <div class="trackship-upsell-overlay">
229
+ <div class="trackship-upsell-top">
230
+ <h3><img src="https://trackship.info/wp-content/uploads/2019/08/trackship-400.png" class="trackship_logo"></h3>
231
+ <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>
232
+ <p class="trackship-upsell-subtitle">You must have account TracksShip and connect your store in order to activate these advanced features:</p>
233
  </div>
234
+ <div class="trackship-upsell-content">
235
+ <ul>
236
+ <li>Automatically track your shipments with 100+ shipping providers.</li>
237
+ <li>Display Shipment Status and latest shipment status, update date and est. delivery date on WooCommerce orders admin.</li>
238
+ <li>Option to manually get shipment tracking updates for orders.</li>
239
+ <li>Automatically change order status to Delivered once the shipment is delivered to your customers.</li>
240
+ <li>Option to filter orders with invalid tracking numbers or by shipment status event in orders admin</li>
241
+ <li>Send personalized emails to notify the customer when their shipments are In Transit, Out For Delivery, Delivered or have an exception.</li>
242
+ <li>Direct customers to a Tracking page on your store.</li>
243
+ </ul>
244
+ <div class="text-center"><a href="https://trackship.info/" target="_blank" class="button-primary btn_green2 btn_large">SIGNUP NOW</a></div>
245
  </div>
246
  </div>
247
  </div>
248
+ <?php }
249
+ ?>
250
+ </form>
251
+ </div>
 
 
252
  <?php
253
  if($wc_ast_api_key){
254
+ include 'zorem_admin_sidebar.php';
255
  }
256
  ?>
257
  </div>
includes/views/html-tracking-info-design-preview.php DELETED
@@ -1,73 +0,0 @@
1
- <?php
2
- $table_header_font_size = '';
3
- $table_header_font_color = '';
4
- $table_content_font_size = '';
5
- $table_content_font_color = '';
6
- $email_border_color = '';
7
- $email_border_size = '';
8
- $shipment_tracking_header_text = '';
9
- $email_table_backgroud_color = '';
10
- $tracking_link_font_color = '';
11
- $tracking_link_bg_color = '';
12
-
13
- $display_thumbnail = get_option('display_shipment_provider_thumbnail');
14
- if(get_option('email_border_color')){ $email_border_color = get_option('email_border_color'); } else{ $email_border_color = "#e4e4e4"; }
15
- if(get_option('email_border_size')){ $email_border_size = get_option('email_border_size'); } else{ $email_border_size = "1"; }
16
- if(get_option('email_shipment_tracking_header')){ $shipment_tracking_header = get_option('email_shipment_tracking_header'); } else{ $shipment_tracking_header = "Tracking Information"; }
17
- if(get_option('email_shipment_tracking_header_text')){ $shipment_tracking_header_text = get_option('email_shipment_tracking_header_text'); }
18
- $email_table_backgroud_color = get_option('email_table_backgroud_color');
19
-
20
- if(get_option('email_table_header_font_size')){ $table_header_font_size = get_option('email_table_header_font_size'); }
21
- if(get_option('email_table_header_font_color')){ $table_header_font_color = get_option('email_table_header_font_color'); } else{ $table_header_font_color = "#737373"; }
22
-
23
- if(get_option('email_table_content_font_size')){ $table_content_font_size = get_option('email_table_content_font_size'); }
24
-
25
- if(get_option('email_table_content_font_color')){ $table_content_font_color = get_option('email_table_content_font_color'); } else{ $table_content_font_color = "#737373"; }
26
-
27
- if(get_option('email_table_tracking_link_font_color')){ $tracking_link_font_color = get_option('email_table_tracking_link_font_color'); }
28
-
29
- if(get_option('email_table_tracking_link_bg_color')){ $tracking_link_bg_color = get_option('email_table_tracking_link_bg_color'); }
30
-
31
- $th_column_style = "text-align: center; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;font-size:".$table_header_font_size."px; color: ".$table_header_font_color." ; border: ".$email_border_size."px solid ".$email_border_color."; padding: 12px;";
32
-
33
- $td_column_style = "text-align: center; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size:".$table_content_font_size."px; color: ".$table_content_font_color." ; border: ".$email_border_size."px solid ".$email_border_color."; padding: 12px;";
34
-
35
- $tracking_link_style = "color: ".$tracking_link_font_color." ;background:".$tracking_link_bg_color.";padding: 10px;";
36
-
37
- $remove_date_from_tracking_info = get_option('remove_date_from_tracking_info');
38
- ?>
39
- <h2><?php echo apply_filters( 'woocommerce_shipment_tracking_my_orders_title', __( $shipment_tracking_header, 'woo-advanced-shipment-tracking' ) ); ?></h2>
40
- <p><?php echo $shipment_tracking_header_text; ?></p>
41
- <table class="td" cellspacing="0" cellpadding="6" style="width: 100%;border-collapse: collapse;margin-bottom: 20px;background:<?php echo $email_table_backgroud_color; ?>" border="1">
42
-
43
- <thead>
44
- <tr>
45
- <th class="tracking-provider" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( 'Provider', 'woo-advanced-shipment-tracking' ); ?></th>
46
- <th class="tracking-number" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( 'Tracking Number', 'woo-advanced-shipment-tracking' ); ?></th>
47
- <?php if($remove_date_from_tracking_info != 1){ ?>
48
- <th class="date-shipped" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( 'Date', 'woocommerce' ); ?></th>
49
- <?php } ?>
50
- <th class="order-actions" scope="col" class="td" style="<?php echo $th_column_style; ?>">&nbsp;</th>
51
- </tr>
52
- </thead>
53
-
54
- <tbody>
55
- <tr class="tracking">
56
- <td class="tracking-provider" style="<?php echo $td_column_style; ?>">
57
- <?php
58
- if($display_thumbnail == 1){
59
- $src = wc_advanced_shipment_tracking()->plugin_dir_url()."assets/shipment-provider-img/usps.png";
60
- ?><img style="width: 50px;" src="<?php echo $src; ?>"><?php } _e( 'USPS', 'woo-advanced-shipment-tracking' ); ?>
61
- </td>
62
- <td class="tracking-number" style="<?php echo $td_column_style; ?>">
63
- 123456789
64
- </td>
65
- <?php if($remove_date_from_tracking_info != 1){ ?>
66
- <td class="date-shipped" style="<?php echo $td_column_style; ?>">March 9, 2019</td>
67
- <?php } ?>
68
- <td class="order-actions" style="<?php echo $td_column_style; ?>">
69
- <a href="#" style="<?php echo $tracking_link_style; ?>" target="_blank"><?php _e( 'Track', 'woo-advanced-shipment-tracking' ); ?></a>
70
- </td>
71
- </tr>
72
- </tbody>
73
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/views/zorem_admin_sidebar.php CHANGED
@@ -1,60 +1,55 @@
1
- <div class="zorem_admin_sidebar">
2
- <div class="ts_launch">
3
- <h3>Advanced Shipment Tracking</h3>
4
- <p>Hey, your opinion matters to us. If you like the advanced shipment tracking plugin, please take 1 minute to leave us review on WordPress.org</br>
5
- <span>Thanks :)</span>
6
- </p>
7
-
8
- <a href="https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/reviews/#new-post" target="_self" class="button button-primary btn_green" target="_blank"><span><?php _e('Leave your review', 'woo-advanced-shipment-tracking'); ?></span><i class="icon-angle-right"></i></a>
9
- </div>
10
-
11
- <!--<div class="zorem-sidebar-title"></div>-->
12
- <div class="zorem-sidebar__section">
13
- <h3>More plugins by zorem</h3>
14
- <?php
15
- $plugin_array = array(
16
- array(
17
- 'name' => 'Shop Manager Admin Bar for WooCommerce',
18
- 'url' => 'https://wordpress.org/plugins/woo-shop-manager-admin-bar/',
19
- 'img' => 'woocommerce-shop-manager-admin-bar-thumbnail.jpg',
20
- ),
21
- array(
22
- 'name' => 'Ajax Login/Register for WooCommerce',
23
- 'url' => 'https://wordpress.org/plugins/woo-ajax-loginregister/',
24
- 'img' => 'WooCommerce-Ajax-Login-Register-thumbnail.jpg',
25
- ),
26
- /*0 => array(
27
- 'name' => 'Country Based Restrictions for WooCommerce',
28
- 'url' => 'https://wordpress.org/plugins/woo-product-country-base-restrictions/',
29
- 'img' => 'WooCommerce-Country-Based-Restrictions-thumbnail.jpg',
30
- ),
31
- 2 => array(
32
- 'name' => 'Sales Report Email for WooCommerce',
33
- 'url' => 'https://wordpress.org/plugins/woo-advanced-sales-report-email/',
34
- 'img' => 'woocommerce-advanced-sales-report-email-thumbnail.jpg',
35
- ),
36
- 4 => array(
37
- 'name' => 'Sales Report By Country for WooCommerce',
38
- 'url' => 'https://wordpress.org/plugins/woo-sales-by-country-reports/',
39
- 'img' => 'country-based-report-banner-thumbnail.jpg',
40
- ),
41
- 5 => array(
42
- 'name' => 'Sales Report for WooCommerce & WP-Lister',
43
- 'url' => 'https://wordpress.org/plugins/woo-sales-report-for-wp-lister/',
44
- 'img' => 'WooCommerce-Sales-Report-for-WP-Lister-thumbnail.jpg',
45
- ),
46
- 6 => array(
47
- 'name' => 'Bit Payment Gateway for WooCommerce',
48
- 'url' => 'https://wordpress.org/plugins/woo-bit-payment-gateway/',
49
- 'img' => 'WooCommerce-Bit-payment-thumbnail.jpg',
50
- ),*/
51
- );
52
- ?>
53
- <ul>
54
- <?php foreach($plugin_array as $plugin){ ?>
55
- <li><img class="plugin_thumbnail" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/<?php echo $plugin['img']?>"><a class="plugin_url" href="<?php echo $plugin['url']?>" target="_blank"><?php echo $plugin['name']?></a></li>
56
- <?php }?>
57
- </ul>
58
- <!--a href="https://www.zorem.com/plugins/" target="_blank">view all zorem plugins</a-->
59
- </div>
60
- </div>
1
+ <?php
2
+ /**
3
+ * html code for admin sidebar
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/" 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
+ $plugin_array = array(
32
+ array(
33
+ 'name' => 'Shop Manager Admin Bar for WooCommerce',
34
+ 'url' => 'https://wordpress.org/plugins/woo-shop-manager-admin-bar/',
35
+ 'img' => 'woocommerce-shop-manager-admin-bar-thumbnail.jpg',
36
+ ),
37
+ array(
38
+ 'name' => 'Ajax Login/Register for WooCommerce',
39
+ 'url' => 'https://wordpress.org/plugins/woo-ajax-loginregister/',
40
+ 'img' => 'WooCommerce-Ajax-Login-Register-thumbnail.jpg',
41
+ ),
42
+ array(
43
+ 'name' => 'Sales Report Email for WooCommerce',
44
+ 'url' => 'https://wordpress.org/plugins/woo-advanced-sales-report-email/',
45
+ 'img' => 'woocommerce-advanced-sales-report-email-thumbnail.jpg',
46
+ ),
47
+ );
48
+ ?>
49
+ <ul>
50
+ <?php foreach($plugin_array as $plugin){ ?>
51
+ <li><img class="plugin_thumbnail" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/<?php echo $plugin['img']?>"><a class="plugin_url" href="<?php echo $plugin['url']?>" target="_blank"><?php echo $plugin['name']?></a></li>
52
+ <?php }?>
53
+ </ul>
54
+ </div>
55
+ </div>
 
 
 
 
 
includes/views/zorem_admin_ts_sidebar.php CHANGED
@@ -1,59 +1,37 @@
1
- <div class="zorem_admin_sidebar">
2
- <div class="ts_launch">
3
- <img src="https://trackship.info/wp-content/uploads/2019/08/trackship-400.png" alt="" style="max-width: 60%;">
4
-
5
- <p><a href="https://my.trackship.info" target="_blank" class="button button-primary btn_green" target="_blank"><span><?php _e( 'Dashboard', 'woo-advanced-shipment-tracking' ); ?></span><i class="icon-angle-right"></i></a></p>
6
-
7
- <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>
8
- </div>
9
-
10
- <!--<div class="zorem-sidebar-title"></div>-->
11
- <div class="zorem-sidebar__section">
12
- <h3>More plugins by zorem</h3>
13
- <?php
14
- $plugin_array = array(
15
- array(
16
- 'name' => 'Shop Manager Admin Bar for WooCommerce',
17
- 'url' => 'https://wordpress.org/plugins/woo-shop-manager-admin-bar/',
18
- 'img' => 'woocommerce-shop-manager-admin-bar-thumbnail.jpg',
19
- ),
20
- array(
21
- 'name' => 'Ajax Login/Register for WooCommerce',
22
- 'url' => 'https://wordpress.org/plugins/woo-ajax-loginregister/',
23
- 'img' => 'WooCommerce-Ajax-Login-Register-thumbnail.jpg',
24
- ),
25
- /*0 => array(
26
- 'name' => 'Country Based Restrictions for WooCommerce',
27
- 'url' => 'https://wordpress.org/plugins/woo-product-country-base-restrictions/',
28
- 'img' => 'WooCommerce-Country-Based-Restrictions-thumbnail.jpg',
29
- ),
30
- 2 => array(
31
- 'name' => 'Sales Report Email for WooCommerce',
32
- 'url' => 'https://wordpress.org/plugins/woo-advanced-sales-report-email/',
33
- 'img' => 'woocommerce-advanced-sales-report-email-thumbnail.jpg',
34
- ),
35
- 4 => array(
36
- 'name' => 'Sales Report By Country for WooCommerce',
37
- 'url' => 'https://wordpress.org/plugins/woo-sales-by-country-reports/',
38
- 'img' => 'country-based-report-banner-thumbnail.jpg',
39
- ),
40
- 5 => array(
41
- 'name' => 'Sales Report for WooCommerce & WP-Lister',
42
- 'url' => 'https://wordpress.org/plugins/woo-sales-report-for-wp-lister/',
43
- 'img' => 'WooCommerce-Sales-Report-for-WP-Lister-thumbnail.jpg',
44
- ),
45
- 6 => array(
46
- 'name' => 'Bit Payment Gateway for WooCommerce',
47
- 'url' => 'https://wordpress.org/plugins/woo-bit-payment-gateway/',
48
- 'img' => 'WooCommerce-Bit-payment-thumbnail.jpg',
49
- ),*/
50
- );
51
- ?>
52
- <ul>
53
- <?php foreach($plugin_array as $plugin){ ?>
54
- <li><img class="plugin_thumbnail" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/<?php echo $plugin['img']?>"><a class="plugin_url" href="<?php echo $plugin['url']?>" target="_blank"><?php echo $plugin['name']?></a></li>
55
- <?php }?>
56
- </ul>
57
- <!--a href="https://www.zorem.com/plugins/" target="_blank">view all zorem plugins</a-->
58
- </div>
59
- </div>
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', 'woo-advanced-shipment-tracking' ); ?></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
+ $plugin_array = array(
19
+ array(
20
+ 'name' => 'Shop Manager Admin Bar for WooCommerce',
21
+ 'url' => 'https://wordpress.org/plugins/woo-shop-manager-admin-bar/',
22
+ 'img' => 'woocommerce-shop-manager-admin-bar-thumbnail.jpg',
23
+ ),
24
+ array(
25
+ 'name' => 'Ajax Login/Register for WooCommerce',
26
+ 'url' => 'https://wordpress.org/plugins/woo-ajax-loginregister/',
27
+ 'img' => 'WooCommerce-Ajax-Login-Register-thumbnail.jpg',
28
+ ),
29
+ );
30
+ ?>
31
+ <ul>
32
+ <?php foreach($plugin_array as $plugin){ ?>
33
+ <li><img class="plugin_thumbnail" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/<?php echo $plugin['img']?>"><a class="plugin_url" href="<?php echo $plugin['url']?>" target="_blank"><?php echo $plugin['name']?></a></li>
34
+ <?php }?>
35
+ </ul>
36
+ </div>
37
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lang/woo-advanced-shipment-tracking-he_IL.mo CHANGED
Binary file
lang/woo-advanced-shipment-tracking-he_IL.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-09-06 11:44+0000\n"
6
- "PO-Revision-Date: 2019-09-06 11:46+0000\n"
7
- "Last-Translator: gaurav <gaurav1092@zorem.com>\n"
8
  "Language-Team: Hebrew\n"
9
  "Language: he_IL\n"
10
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
@@ -21,8 +21,13 @@ msgid ""
21
  "Shipment Tracking!"
22
  msgstr "יש להתקין ולהפעיל% sWooCommerce% s למעקב המשלוח המתקדם של WooCommerce!"
23
 
24
- #: woocommerce-advanced-shipment-tracking.php:390
25
- #: includes/views/admin_options_settings.php:21
 
 
 
 
 
26
  #, php-format
27
  msgid ""
28
  "<strong>PLEASE NOTE</strong> - If you use the custom order status "
@@ -34,7 +39,7 @@ msgid ""
34
  msgstr ""
35
 
36
  #: includes/class-wc-advanced-shipment-tracking-admin.php:209
37
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1144
38
  msgid "Shipped"
39
  msgstr "נשלח"
40
 
@@ -47,16 +52,16 @@ msgstr[1] ""
47
 
48
  #: includes/class-wc-advanced-shipment-tracking-admin.php:240
49
  msgid "Change status to shipped"
50
- msgstr "שנה סטטוס למשלוח"
51
 
52
  #: includes/class-wc-advanced-shipment-tracking-admin.php:250
53
  #: includes/class-wc-advanced-shipment-tracking-admin.php:279
54
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1594
55
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1785
56
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2190
57
  #: includes/customizer/class-wcast-customizer.php:104
58
  #: includes/customizer/class-wc-delivered-email-customizer.php:115
59
- #: includes/views/admin_options_trackship_integration.php:134
60
  msgid "Delivered"
61
  msgstr "נמסרה ללקוח"
62
 
@@ -87,469 +92,380 @@ msgstr "שנה סטטוס למסירה"
87
  msgid "Shipment status"
88
  msgstr "סטטוס המשלוח"
89
 
90
- #: includes/class-wc-advanced-shipment-tracking-admin.php:622
91
  msgid ""
92
  "Get Shipment Status is limited to 100 orders at a time, please select up to "
93
  "100 orders."
94
  msgstr ""
95
 
96
- #: includes/class-wc-advanced-shipment-tracking-admin.php:667
97
- msgid "Order"
98
- msgstr "הזמנה"
99
-
100
- #: includes/class-wc-advanced-shipment-tracking-admin.php:668
101
- msgid "Item"
102
- msgstr "פריט"
103
-
104
- #: includes/class-wc-advanced-shipment-tracking-admin.php:669
105
- msgid "Line Item"
106
- msgstr "פריט שורה"
107
-
108
- #: includes/class-wc-advanced-shipment-tracking-admin.php:670
109
- msgid "Class"
110
- msgstr "מעמד"
111
-
112
- #: includes/class-wc-advanced-shipment-tracking-admin.php:671
113
- msgid "Delete the selected rates?"
114
- msgstr "מחק שורות מסומנות"
115
-
116
- #: includes/class-wc-advanced-shipment-tracking-admin.php:672
117
- msgid "Duplicate the selected rates?"
118
- msgstr "שכפל את התעריפים המסומנים"
119
-
120
- #: includes/class-wc-advanced-shipment-tracking-admin.php:673
121
- msgid "Really want to bulk change all provider status?"
122
- msgstr "אתה בטוח שברצונך לשנות את כל ספקי השירות בבת אחת?"
123
-
124
- #: includes/class-wc-advanced-shipment-tracking-admin.php:674
125
- #: includes/views/admin_options_settings.php:26
126
  msgid "Data saved successfully."
127
  msgstr "נשמר בהצלחה"
128
 
129
- #: includes/class-wc-advanced-shipment-tracking-admin.php:675
130
  msgid "Really delete this entry? This will not be undo."
131
  msgstr "באמת למחוק ערך זה? זה לא יהיה לבטל."
132
 
133
- #: includes/class-wc-advanced-shipment-tracking-admin.php:676
134
  msgid "You can upload only csv file."
135
  msgstr "ניתן לטעון רק קובץ csv."
136
 
137
- #: includes/class-wc-advanced-shipment-tracking-admin.php:677
138
  msgid "This browser does not support HTML5."
139
  msgstr "דפדפן זה אינו תומך ב- HTML5."
140
 
141
- #: includes/class-wc-advanced-shipment-tracking-admin.php:678
142
  msgid "Please upload a valid CSV file."
143
  msgstr "העלה קובץ CSV חוקי."
144
 
145
- #: includes/class-wc-advanced-shipment-tracking-admin.php:736
146
- msgid "Shipping Providers"
147
- msgstr ""
148
-
149
- #: includes/class-wc-advanced-shipment-tracking-admin.php:739
150
  msgid "Settings"
151
  msgstr "הגדרות"
152
 
153
- #: includes/class-wc-advanced-shipment-tracking-admin.php:742
 
 
 
 
154
  msgid "Bulk Upload"
155
  msgstr "העלאה המונית"
156
 
157
- #: includes/class-wc-advanced-shipment-tracking-admin.php:745
158
- msgid "TrackShip"
159
- msgstr ""
160
-
161
- #: includes/class-wc-advanced-shipment-tracking-admin.php:880
162
- msgid "Connected"
163
- msgstr ""
164
-
165
- #: includes/class-wc-advanced-shipment-tracking-admin.php:886
166
- msgid ""
167
- "Auto-track all your shipments, get real-time shipment tracking updates "
168
- "without leaving your stores admin."
169
- msgstr ""
170
-
171
- #: includes/class-wc-advanced-shipment-tracking-admin.php:889
172
- #, php-format
173
- msgid ""
174
- "You must have account and connect your store to %s in order to activate "
175
- "these advanced features."
176
  msgstr ""
177
 
178
- #: includes/class-wc-advanced-shipment-tracking-admin.php:892
179
- #, php-format
180
- msgid "50 free Trackers for every new account! Get your %s account now>>"
181
  msgstr ""
182
 
183
- #: includes/class-wc-advanced-shipment-tracking-admin.php:988
184
- msgid "TrackShip Connection Status"
185
- msgstr ""
 
186
 
187
- #: includes/class-wc-advanced-shipment-tracking-admin.php:995
188
- #: includes/emails/class-shipment-delivered-email.php:226
189
  msgid "Enable/Disable"
190
  msgstr "הפעל / השבת"
191
 
192
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1001
193
  msgid "Set order status Delivered when order is delivered"
194
- msgstr ""
195
 
196
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1008
197
  #, php-format
198
  msgid ""
199
- "You have %s %s orders that you can track with TrackShip, you can send these "
200
- "shipments to TrackShip in Bulk."
201
  msgstr ""
202
 
203
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1009
204
  msgid "Get Shipment Status"
205
  msgstr ""
206
 
207
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1047
208
  msgid ""
209
  "You must add the shortcode [wcast-track-order] to the \"page name\" in order "
210
  "for the tracking page to work."
211
  msgstr ""
212
 
213
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1055
214
  msgid "Select Tracking Page"
215
- msgstr ""
216
-
217
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1063
218
- #: includes/customizer/class-wc-tracking-page-customizer.php:150
219
- msgid "Remove Trackship branding from tracking page"
220
- msgstr ""
221
 
222
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1069
223
  msgid "Use the tracking page in the customer email/my account tracking link"
224
- msgstr ""
225
 
226
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1075
227
  msgid "Select primary color for tracking page"
228
- msgstr ""
229
 
230
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1081
231
  msgid "Select content border color for tracking page"
232
- msgstr ""
233
 
234
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1145
235
- msgid ""
236
- "Default \"mark as <span class=\"shipped_label\">shipped</span>\" checkbox "
237
- "state"
238
  msgstr ""
239
 
240
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1146
 
 
 
 
 
 
 
 
241
  msgid ""
242
  "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
243
  "will be selected by default when adding tracking info to orders."
244
  msgstr ""
245
 
246
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1148
247
- msgid "Completed"
248
- msgstr ""
249
-
250
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1149
251
- msgid ""
252
- "Default \"mark as <span class=\"shipped_label\">completed</span>\" checkbox "
253
- "state"
254
  msgstr ""
255
 
256
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1150
257
  msgid ""
258
  "This means that the 'mark as <span class='shipped_label'>completed</span>' "
259
  "will be selected by default when adding tracking info to orders."
260
  msgstr ""
261
 
262
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1156
263
- msgid "Rename the “Completed” Order status to “Shipped”"
264
- msgstr "שנה את השם של סטטוס הזמנה 'הושלמה' ל- 'נשלחה'"
265
-
266
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1169
267
- msgid "On which customer order status email to include tracking info?"
268
- msgstr ""
269
-
270
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1170
271
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2192
272
- msgid "Cancelled"
273
- msgstr ""
274
-
275
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1171
276
  msgid "Customer Invoice"
277
  msgstr ""
278
 
279
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1172
280
- msgid "Refunded"
281
- msgstr ""
282
-
283
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1173
284
- msgid "Processing"
285
- msgstr ""
286
 
287
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1174
288
- msgid "Failed"
289
  msgstr ""
290
 
291
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1182
292
  msgid "Show tracking info in Invoice"
293
  msgstr ""
294
 
295
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1188
296
  msgid "Show tracking info in Packing Slip"
297
  msgstr ""
298
 
299
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1205
300
- msgid "Enable a New Custom order status - “Delivered"
301
- msgstr "אפשר יצירת סטטוס הזמנה חדש - \"נמסרה ללקוח״"
302
 
303
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1206
304
  msgid ""
305
  "if you enable the delivered item, you will have the option to send delivered "
306
  "email notifications."
307
  msgstr "אם תפעיל את הפריט שנמסר, תהיה לך אפשרות לשלוח הודעות דוא\"ל שנשלחו."
308
 
309
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1212
310
- msgid "Delivered Status Label color"
311
- msgstr "צבע תווית סטטוס שנמסר"
312
 
313
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1218
314
- #: includes/customizer/class-wcast-customizer.php:58
315
- #: includes/customizer/class-wc-email-customizer.php:155
316
- msgid "Delivered order status email"
317
- msgstr ""
318
 
319
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1219
320
- #: includes/views/admin_options_trackship_integration.php:80
321
- #: includes/views/admin_options_trackship_integration.php:94
322
- #: includes/views/admin_options_trackship_integration.php:108
323
- #: includes/views/admin_options_trackship_integration.php:121
324
- #: includes/views/admin_options_trackship_integration.php:135
325
- #: includes/views/admin_options_trackship_integration.php:150
326
- msgid "Edit"
327
  msgstr ""
328
 
329
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1236
330
- msgid ""
331
- "Change the \"Delivered\" orders to \"Completed\" when you deactivate the "
332
- "plugin"
333
- msgstr ""
334
-
335
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1238
336
- msgid "No, I will use the snippet"
337
- msgstr ""
338
-
339
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1239
340
- msgid "Yes, change all Delivered orders to Completed"
341
  msgstr ""
342
 
343
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1241
344
- #, php-format
345
- msgid ""
346
- "PLEASE NOTE - If you use the custom order status \"Delivered\", when you "
347
- "deactivate the plugin, you must register this order status in function.php "
348
- "in order to see these orders in the orders admin. You can find the snippet "
349
- "to use in functions.php %s or we can set to change all your \"delivered\" "
350
- "order to \"completed\"."
351
- msgstr ""
352
 
353
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1560
354
  msgid "Get shipment status"
355
  msgstr ""
356
 
357
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1588
358
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2187
359
  #: includes/customizer/class-wcast-customizer.php:74
360
  #: includes/customizer/class-wc-intransit-email-customizer.php:115
361
- #: includes/views/admin_options_trackship_integration.php:79
362
  msgid "In Transit"
363
  msgstr ""
364
 
365
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1591
366
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2186
367
  #: includes/customizer/class-wcast-customizer.php:66
368
  msgid "Pre Transit"
369
  msgstr ""
370
 
371
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1597
372
- msgid "Out for delivery"
 
 
 
 
373
  msgstr ""
374
 
375
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1600
 
376
  #: includes/customizer/class-wcast-customizer.php:89
377
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:116
378
- #: includes/views/admin_options_trackship_integration.php:107
379
  msgid "Available For Pickup"
380
- msgstr ""
381
 
382
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1603
383
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2194
384
  #: includes/customizer/class-wcast-customizer.php:82
385
  #: includes/customizer/class-wc-returntosender-email-customizer.php:116
386
- #: includes/views/admin_options_trackship_integration.php:93
387
  msgid "Return To Sender"
388
  msgstr ""
389
 
390
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1606
391
  msgid "Delivery Failure"
392
  msgstr ""
393
 
394
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1609
395
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2185
396
  msgid "Unknown"
397
- msgstr ""
398
 
399
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1612
400
  msgid "Pending TrackShip"
401
  msgstr ""
402
 
403
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1615
404
  msgid "Invalid Tracking"
405
  msgstr ""
406
 
407
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1618
408
- msgid "Carrier unsupported"
 
409
  msgstr ""
410
 
411
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1621
412
  msgid "Invalid User Key"
413
  msgstr ""
414
 
415
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1687
 
 
 
 
 
 
 
 
416
  msgid "Resend delivered order notification"
417
  msgstr "שלח שוב את הודעת ההזמנה שנשלחו"
418
 
419
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1745
420
  msgid "Shipped Order"
421
- msgstr ""
422
 
423
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1764
424
  msgid "Mark order as delivered"
425
- msgstr ""
426
 
427
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1771
428
  msgid "Add Tracking"
429
- msgstr ""
430
 
431
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1797
432
  msgid "Change order status to"
433
  msgstr ""
434
 
435
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1892
436
- #: includes/views/admin_options_shipping_provider.php:88
437
  #, php-format
438
  msgid "You don't have any %s shipping providers."
439
- msgstr ""
440
 
441
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2145
442
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2157
443
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2169
444
  msgid "view details"
445
- msgstr ""
446
 
447
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2146
448
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2158
449
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2170
450
  msgid "hide details"
451
  msgstr ""
452
 
453
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2188
454
- msgid "Available for Pickup"
455
- msgstr ""
456
-
457
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2189
458
- msgid "Out for Delivery"
459
- msgstr ""
460
-
461
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2191
462
  #: includes/customizer/class-wcast-customizer.php:112
463
  #: includes/customizer/class-wc-failure-email-customizer.php:113
464
- #: includes/views/admin_options_trackship_integration.php:149
465
  msgid "Failed Attempt"
466
  msgstr ""
467
 
468
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2193
469
- msgid "Carrier Unsupported"
470
- msgstr ""
471
 
472
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2195
473
- #: includes/class-wc-advanced-shipment-tracking-front.php:457
474
- #: includes/class-wc-advanced-shipment-tracking-front.php:813
475
  msgid "Invalid Tracking Number"
476
  msgstr ""
477
 
478
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2200
479
  msgid "Filter by shipment status"
480
  msgstr ""
481
 
482
- #: includes/class-wc-advanced-shipment-tracking-front.php:138
483
  msgid ""
484
  "To track your order please enter your Order ID in the box below and press "
485
  "the \"Track\" button. This was given to you on your receipt and in the "
486
  "confirmation email you should have received."
487
  msgstr ""
488
 
489
- #: includes/class-wc-advanced-shipment-tracking-front.php:139
490
  msgid "Order ID"
491
  msgstr ""
492
 
493
- #: includes/class-wc-advanced-shipment-tracking-front.php:139
494
- #: includes/class-wc-advanced-shipment-tracking-front.php:140
495
  msgid "Found in your order confirmation email."
496
  msgstr ""
497
 
498
- #: includes/class-wc-advanced-shipment-tracking-front.php:140
499
  msgid "Order Email"
500
  msgstr ""
501
 
502
- #: includes/class-wc-advanced-shipment-tracking-front.php:143
503
  #: includes/class-wc-advanced-shipment-tracking.php:260
504
- #: includes/class-wc-advanced-shipment-tracking.php:637
505
- #: includes/class-wc-advanced-shipment-tracking.php:763
506
  #: includes/customizer/class-wc-tracking-info-customizer.php:137
507
- #: includes/customizer/class-wc-tracking-info-customizer.php:381
508
  #: includes/views/html-tracking-info-design-preview.php:69
509
  #: templates/emails/tracking-info.php:152
510
  #: templates/myaccount/view-order.php:123 templates/pip/tracking-info.php:23
511
  msgid "Track"
512
  msgstr "מעקב הזמנה"
513
 
514
- #: includes/class-wc-advanced-shipment-tracking-front.php:307
515
- #: includes/class-wc-advanced-shipment-tracking-front.php:662
516
  #, php-format
517
  msgid "Shipment - %s (out of %s)"
518
  msgstr ""
519
 
520
- #: includes/class-wc-advanced-shipment-tracking-front.php:311
521
- #: includes/class-wc-advanced-shipment-tracking-front.php:666
522
  msgid "Order: "
523
  msgstr ""
524
 
525
- #: includes/class-wc-advanced-shipment-tracking-front.php:320
526
- #: includes/class-wc-advanced-shipment-tracking-front.php:324
527
- #: includes/class-wc-advanced-shipment-tracking-front.php:675
528
- #: includes/class-wc-advanced-shipment-tracking-front.php:679
529
  msgid "Estimated Delivery Date: "
530
- msgstr ""
531
 
532
- #: includes/class-wc-advanced-shipment-tracking-front.php:429
533
- #: includes/class-wc-advanced-shipment-tracking-front.php:785
534
  msgid "Tracking Details"
535
- msgstr ""
536
 
537
- #: includes/class-wc-advanced-shipment-tracking-front.php:448
538
- #: includes/class-wc-advanced-shipment-tracking-front.php:804
539
  msgid "view more"
540
- msgstr ""
541
 
542
- #: includes/class-wc-advanced-shipment-tracking-front.php:449
543
- #: includes/class-wc-advanced-shipment-tracking-front.php:805
544
  msgid "view less"
545
- msgstr ""
546
 
547
- #. esc_html__( '%1$s %2$s.' ),
548
- #: includes/class-wc-advanced-shipment-tracking-install.php:1583
549
- #, php-format
550
- msgid ""
551
- "We added many improvements to %1$s, please help and give us a review :) "
552
- "Thanks!"
553
  msgstr ""
554
 
555
  #: includes/class-wc-advanced-shipment-tracking.php:93
@@ -587,6 +503,13 @@ msgstr "מספר מעקב"
587
  msgid "Date shipped:"
588
  msgstr "תאריך משלוח:"
589
 
 
 
 
 
 
 
 
590
  #: includes/class-wc-advanced-shipment-tracking.php:260
591
  #: templates/pip/tracking-info.php:23
592
  msgid "Click here to track your shipment"
@@ -599,10 +522,6 @@ msgstr "הקלק למעקב משלוח"
599
  msgid "Shipped on %s"
600
  msgstr "נשלח ב- %s"
601
 
602
- #: includes/class-wc-advanced-shipment-tracking.php:269
603
- msgid "Delete"
604
- msgstr "מחק"
605
-
606
  #: includes/class-wc-advanced-shipment-tracking.php:365
607
  msgid "Add Tracking Info"
608
  msgstr "הוסף פרטי מעקב"
@@ -623,27 +542,33 @@ msgstr "תצוגה מקדימה:"
623
  msgid "Click here to track shipment"
624
  msgstr "לחץ כאן כדי לעקוב אחר המשלוח"
625
 
 
 
 
 
 
 
 
 
 
 
 
626
  #: includes/customizer/class-wcast-customizer.php:39
627
  msgid "Shipment Status Emails"
628
- msgstr ""
629
 
630
  #: includes/customizer/class-wcast-customizer.php:50
631
  msgid "Tracking info display"
632
  msgstr "תצוגת מידע מעקב"
633
 
634
- #: includes/customizer/class-wcast-customizer.php:51
635
- msgid "This section lets you customize the Tracking Info display design."
636
- msgstr "סעיף זה מאפשר לך להתאים אישית את תצוגת התצוגה של פרטי המעקב."
637
-
638
- #: includes/customizer/class-wcast-customizer.php:96
639
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:115
640
- #: includes/views/admin_options_trackship_integration.php:120
641
- msgid "Out For Delivery"
642
  msgstr ""
643
 
644
  #: includes/customizer/class-wcast-customizer.php:352
645
  msgid "Select order to preview"
646
- msgstr ""
647
 
648
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:115
649
  msgid "Your order #{order_number} is available for pickup"
@@ -657,7 +582,7 @@ msgstr ""
657
 
658
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:148
659
  msgid "Available For Pickup shipment status email"
660
- msgstr ""
661
 
662
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:149
663
  #: includes/customizer/class-wc-delivered-email-customizer.php:148
@@ -682,7 +607,7 @@ msgstr ""
682
  #: includes/customizer/class-wc-returntosender-email-customizer.php:179
683
  #: includes/customizer/class-wc-tracking-info-customizer.php:161
684
  msgid "Preview order"
685
- msgstr ""
686
 
687
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:200
688
  #: includes/customizer/class-wc-delivered-email-customizer.php:199
@@ -758,7 +683,6 @@ msgstr "הזן כאן את נושא הדוא\"ל"
758
  #: includes/customizer/class-wc-intransit-email-customizer.php:243
759
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:243
760
  #: includes/customizer/class-wc-returntosender-email-customizer.php:244
761
- #: includes/emails/class-shipment-delivered-email.php:250
762
  msgid "Email heading"
763
  msgstr "כותרת דוא\"ל"
764
 
@@ -788,7 +712,7 @@ msgstr ""
788
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:281
789
  #: includes/customizer/class-wc-returntosender-email-customizer.php:282
790
  msgid "Show order details"
791
- msgstr ""
792
 
793
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:298
794
  #: includes/customizer/class-wc-delivered-email-customizer.php:297
@@ -797,7 +721,7 @@ msgstr ""
797
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:297
798
  #: includes/customizer/class-wc-returntosender-email-customizer.php:298
799
  msgid "Show billing address"
800
- msgstr ""
801
 
802
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:315
803
  #: includes/customizer/class-wc-delivered-email-customizer.php:314
@@ -806,7 +730,7 @@ msgstr ""
806
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:314
807
  #: includes/customizer/class-wc-returntosender-email-customizer.php:315
808
  msgid "Show shipping address"
809
- msgstr ""
810
 
811
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:331
812
  #: includes/customizer/class-wc-delivered-email-customizer.php:330
@@ -854,9 +778,9 @@ msgstr ""
854
  #: includes/customizer/class-wc-intransit-email-customizer.php:415
855
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:415
856
  #: includes/customizer/class-wc-returntosender-email-customizer.php:417
857
- #: includes/customizer/class-wc-tracking-info-customizer.php:730
858
  msgid "Please select preview order."
859
- msgstr ""
860
 
861
  #: includes/customizer/class-wc-delivered-email-customizer.php:114
862
  msgid "Your order #{order_number} has been delivered"
@@ -919,6 +843,8 @@ msgid ""
919
  "available variables: {site_title}, {customer_email}, {customer_first_name}, "
920
  "{customer_last_name}, {customer_username}, {order_number}"
921
  msgstr ""
 
 
922
 
923
  #: includes/customizer/class-wc-email-customizer.php:300
924
  msgid "Display tracking details"
@@ -1019,14 +945,14 @@ msgid "Enable Return To Sender shipment status email"
1019
  msgstr ""
1020
 
1021
  #: includes/customizer/class-wc-tracking-info-customizer.php:134
1022
- #: includes/customizer/class-wc-tracking-info-customizer.php:301
1023
  #: includes/views/html-tracking-info-design-preview.php:45
1024
  #: templates/emails/tracking-info.php:110 templates/myaccount/view-order.php:89
1025
  msgid "Provider"
1026
  msgstr "ספק"
1027
 
1028
  #: includes/customizer/class-wc-tracking-info-customizer.php:135
1029
- #: includes/customizer/class-wc-tracking-info-customizer.php:323
1030
  #: includes/views/html-tracking-info-design-preview.php:46
1031
  #: templates/emails/tracking-info.php:134
1032
  #: templates/myaccount/view-order.php:111
@@ -1034,154 +960,160 @@ msgid "Tracking Number"
1034
  msgstr "מספר מעקב"
1035
 
1036
  #: includes/customizer/class-wc-tracking-info-customizer.php:136
1037
- #: includes/customizer/class-wc-tracking-info-customizer.php:344
1038
  msgid "Shipped Date"
1039
- msgstr ""
1040
 
1041
  #: includes/customizer/class-wc-tracking-info-customizer.php:162
1042
  msgid ""
1043
  "select from last 20 orders one order that you added tracking info in order "
1044
  "to preview and design the tracking info table."
1045
  msgstr ""
 
 
1046
 
1047
- #: includes/customizer/class-wc-tracking-info-customizer.php:182
1048
- msgid "Tracking Display Position"
 
 
1049
  msgstr ""
1050
 
1051
- #: includes/customizer/class-wc-tracking-info-customizer.php:186
 
 
 
 
1052
  msgid "Before Order Details"
1053
- msgstr ""
1054
 
1055
- #: includes/customizer/class-wc-tracking-info-customizer.php:187
1056
  msgid "After Order Details"
1057
- msgstr ""
1058
 
1059
- #: includes/customizer/class-wc-tracking-info-customizer.php:202
1060
  msgid "Main Header text"
1061
  msgstr ""
1062
 
1063
- #: includes/customizer/class-wc-tracking-info-customizer.php:209
1064
  #: templates/pip/tracking-info.php:17
1065
  msgid "Tracking Information"
1066
  msgstr "מעקב אחרי מידע"
1067
 
1068
- #: includes/customizer/class-wc-tracking-info-customizer.php:224
1069
  msgid "Additional text after header"
1070
  msgstr "טקסט נוסף אחרי כותרת"
1071
 
1072
- #: includes/customizer/class-wc-tracking-info-customizer.php:245
1073
- msgid "Table Layout"
1074
  msgstr ""
1075
 
1076
- #: includes/customizer/class-wc-tracking-info-customizer.php:260
1077
  msgid "Display Shipment Provider image"
1078
  msgstr ""
1079
 
1080
- #: includes/customizer/class-wc-tracking-info-customizer.php:277
1081
  msgid "Hide date"
1082
  msgstr ""
1083
 
1084
- #: includes/customizer/class-wc-tracking-info-customizer.php:294
1085
  msgid "Provider Header Text"
1086
  msgstr ""
1087
 
1088
- #: includes/customizer/class-wc-tracking-info-customizer.php:316
1089
  msgid "Tracking Number Header Text"
1090
  msgstr ""
1091
 
1092
- #: includes/customizer/class-wc-tracking-info-customizer.php:337
1093
  msgid "Shipped Date Header Text"
1094
- msgstr ""
1095
 
1096
- #: includes/customizer/class-wc-tracking-info-customizer.php:358
1097
  msgid "Track Label"
1098
- msgstr ""
1099
 
1100
- #: includes/customizer/class-wc-tracking-info-customizer.php:374
1101
  msgid "Track Header Text"
1102
- msgstr ""
1103
 
1104
- #: includes/customizer/class-wc-tracking-info-customizer.php:396
1105
  msgid "Table Design"
1106
- msgstr ""
1107
 
1108
- #: includes/customizer/class-wc-tracking-info-customizer.php:411
1109
  msgid "Padding"
1110
  msgstr ""
1111
 
1112
- #: includes/customizer/class-wc-tracking-info-customizer.php:431
1113
  msgid "Background color"
1114
- msgstr ""
1115
 
1116
- #: includes/customizer/class-wc-tracking-info-customizer.php:459
1117
  msgid "Border color"
1118
- msgstr ""
1119
 
1120
- #: includes/customizer/class-wc-tracking-info-customizer.php:475
1121
  msgid "Border size"
1122
- msgstr ""
1123
-
1124
- #: includes/customizer/class-wc-tracking-info-customizer.php:479
1125
- #: includes/customizer/class-wc-tracking-info-customizer.php:503
1126
- #: includes/customizer/class-wc-tracking-info-customizer.php:511
1127
- msgid "Select"
1128
- msgstr "בחר"
1129
 
1130
- #: includes/customizer/class-wc-tracking-info-customizer.php:499
1131
  msgid "Table text align"
1132
- msgstr ""
1133
 
1134
- #: includes/customizer/class-wc-tracking-info-customizer.php:504
1135
  msgid "Left"
1136
  msgstr ""
1137
 
1138
- #: includes/customizer/class-wc-tracking-info-customizer.php:505
1139
  msgid "Right"
1140
  msgstr ""
1141
 
1142
- #: includes/customizer/class-wc-tracking-info-customizer.php:506
1143
  msgid "Center"
1144
  msgstr ""
1145
 
1146
- #: includes/customizer/class-wc-tracking-info-customizer.php:525
1147
  msgid "Table header font size"
1148
  msgstr "גודל גופן של כותרת הטבלה"
1149
 
1150
- #: includes/customizer/class-wc-tracking-info-customizer.php:544
1151
  msgid "Table header font color"
1152
  msgstr "צבע גופן של כותרת הטבלה"
1153
 
1154
- #: includes/customizer/class-wc-tracking-info-customizer.php:560
1155
  msgid "Table content font size"
1156
  msgstr "גודל גופן של תוכן טבלה"
1157
 
1158
- #: includes/customizer/class-wc-tracking-info-customizer.php:577
1159
  msgid "Table content font color"
1160
  msgstr "צבע גופן של תוכן טבלה"
1161
 
1162
- #: includes/customizer/class-wc-tracking-info-customizer.php:593
1163
  msgid "Content line height"
1164
  msgstr ""
1165
 
1166
- #: includes/customizer/class-wc-tracking-info-customizer.php:614
1167
  msgid "Content font weight"
1168
  msgstr ""
1169
 
1170
- #: includes/customizer/class-wc-tracking-info-customizer.php:636
1171
- msgid "Track Link"
1172
  msgstr ""
1173
 
1174
- #: includes/customizer/class-wc-tracking-info-customizer.php:650
1175
  msgid "Track Link Font Color"
1176
  msgstr ""
1177
 
1178
- #: includes/customizer/class-wc-tracking-info-customizer.php:666
1179
  msgid "Track Link Background Color"
1180
  msgstr ""
1181
 
1182
- #: includes/customizer/class-wc-tracking-info-customizer.php:681
1183
  msgid "Track link Border"
1184
- msgstr ""
 
 
 
 
1185
 
1186
  #: includes/customizer/class-wc-tracking-page-customizer.php:167
1187
  msgid "Header Color"
@@ -1197,7 +1129,7 @@ msgstr ""
1197
 
1198
  #: includes/customizer/class-wc-tracking-page-customizer.php:215
1199
  msgid "Tracking info Border Color"
1200
- msgstr ""
1201
 
1202
  #: includes/customizer/class-wc-tracking-page-customizer.php:230
1203
  msgid "Tracking info width (px)"
@@ -1205,7 +1137,7 @@ msgstr ""
1205
 
1206
  #: includes/customizer/class-wc-tracking-page-customizer.php:250
1207
  msgid "Tracking details Border Color"
1208
- msgstr ""
1209
 
1210
  #: includes/customizer/class-wc-tracking-page-customizer.php:265
1211
  msgid "Tracking info table shade color"
@@ -1221,7 +1153,7 @@ msgstr ""
1221
 
1222
  #: includes/emails/class-shipment-delivered-email.php:32
1223
  msgid "Delivered order"
1224
- msgstr ""
1225
 
1226
  #: includes/emails/class-shipment-delivered-email.php:33
1227
  msgid ""
@@ -1229,41 +1161,8 @@ msgid ""
1229
  "delivered and usually indicate that their orders have been shipped."
1230
  msgstr ""
1231
 
1232
- #: includes/emails/class-shipment-delivered-email.php:228
1233
- msgid "Enable this email notification"
1234
- msgstr ""
1235
-
1236
- #: includes/emails/class-shipment-delivered-email.php:232
1237
- msgid "Recipient(s)"
1238
- msgstr ""
1239
-
1240
- #. %s: WP admin email
1241
- #: includes/emails/class-shipment-delivered-email.php:235
1242
- #, php-format
1243
- msgid "Enter recipients (comma separated) for this email. Defaults to %s."
1244
- msgstr ""
1245
-
1246
- #: includes/emails/class-shipment-delivered-email.php:241
1247
- msgid "Subject"
1248
- msgstr ""
1249
-
1250
- #. %s: list of placeholders
1251
- #: includes/emails/class-shipment-delivered-email.php:245
1252
- #: includes/emails/class-shipment-delivered-email.php:254
1253
- #, php-format
1254
- msgid "Available placeholders: %s"
1255
- msgstr ""
1256
-
1257
- #: includes/emails/class-shipment-delivered-email.php:259
1258
- msgid "Email type"
1259
- msgstr ""
1260
-
1261
- #: includes/emails/class-shipment-delivered-email.php:261
1262
- msgid "Choose which format of email to send."
1263
- msgstr ""
1264
-
1265
  #: includes/emails/class-shipment-delivered-email.php:269
1266
- msgid "\" >Click Here</a>"
1267
  msgstr ""
1268
 
1269
  #: includes/emails/class-shipment-delivered-email.php:270
@@ -1280,157 +1179,203 @@ msgid ""
1280
  "added)"
1281
  msgstr "להחליף מידע מעקב אם קיים? (אם לא מסומנת, פרטי המעקב יתווספו)"
1282
 
1283
- #: includes/views/admin_options_bulk_upload.php:25
1284
- #: includes/views/admin_options_shipping_provider.php:112
1285
- #: includes/views/admin_options_shipping_provider.php:146
1286
  msgid "Upload"
1287
  msgstr "העלה"
1288
 
1289
- #: includes/views/admin_options_bulk_upload.php:28
1290
- #: includes/views/admin_options_trackship_integration.php:27
1291
- #: includes/views/admin_options_trackship_integration.php:45
1292
  msgid "Settings Saved."
1293
  msgstr "הגדרות נשמרו."
1294
 
1295
- #: includes/views/admin_options_bulk_upload.php:34
 
 
 
 
 
 
 
 
1296
  msgid "You can download an example of the csv file:"
1297
- msgstr ""
1298
 
1299
- #: includes/views/admin_options_bulk_upload.php:35
1300
  msgid "Download sample csv file"
1301
- msgstr "הורד קובץ csv לדוגמה"
1302
 
1303
- #: includes/views/admin_options_bulk_upload.php:36
1304
  msgid ""
1305
  "For detailed instructions on how to upload tracking info in bulk, see our"
1306
  msgstr ""
1307
 
1308
- #: includes/views/admin_options_bulk_upload.php:36
1309
- msgid "documentation"
1310
- msgstr ""
 
 
 
1311
 
1312
- #: includes/views/admin_options_bulk_upload.php:38
1313
- msgid "Upload Progress - "
1314
- msgstr "העלאת התקדמות -"
1315
 
1316
- #: includes/views/admin_options_settings.php:7
1317
- #: includes/views/admin_options_trackship_integration.php:10
1318
- msgid "General"
1319
  msgstr ""
1320
 
1321
- #: includes/views/admin_options_settings.php:10
1322
- #: includes/views/admin_options_settings.php:19
 
 
 
1323
  msgid "Delivered Order Status"
 
 
 
 
1324
  msgstr ""
1325
 
1326
- #: includes/views/admin_options_settings.php:12
1327
- msgid "Tracking Info Display Designer"
1328
  msgstr ""
1329
 
1330
- #: includes/views/admin_options_settings.php:15
1331
- #: includes/views/admin_options_trackship_integration.php:19
1332
- msgid "General Settings"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1333
  msgstr ""
1334
 
1335
- #: includes/views/admin_options_settings.php:24
1336
- #: includes/views/admin_options_trackship_integration.php:25
1337
- #: includes/views/admin_options_trackship_integration.php:43
1338
- msgid "Save"
1339
- msgstr "שמירה"
 
 
1340
 
1341
- #: includes/views/admin_options_shipping_provider.php:94
1342
  msgid "Add Custom Shipping Provider"
1343
  msgstr "הוספת ספק משלוח ייחודי"
1344
 
1345
- #: includes/views/admin_options_shipping_provider.php:101
1346
- #: includes/views/admin_options_shipping_provider.php:135
1347
  msgid "Shiping Country"
1348
- msgstr ""
1349
 
1350
- #: includes/views/admin_options_shipping_provider.php:102
1351
- #: includes/views/admin_options_shipping_provider.php:136
1352
  msgid "Global"
1353
  msgstr ""
1354
 
1355
- #: includes/views/admin_options_shipping_provider.php:128
1356
  msgid "Edit Custom Shipping Provider"
1357
  msgstr ""
1358
 
1359
- #: includes/views/admin_options_shipping_provider.php:163
1360
- #: includes/views/admin_options_shipping_provider.php:170
1361
  msgid "Sync Providers"
1362
- msgstr ""
1363
 
1364
- #: includes/views/admin_options_shipping_provider.php:164
1365
  msgid "Do you really want to sync all providers?"
1366
- msgstr ""
1367
 
1368
- #: includes/views/admin_options_shipping_provider.php:166
1369
  msgid "Providers Added"
1370
  msgstr ""
1371
 
1372
- #: includes/views/admin_options_shipping_provider.php:167
1373
  msgid "Providers Updated"
1374
  msgstr ""
1375
 
1376
- #: includes/views/admin_options_shipping_provider.php:168
1377
  msgid "Providers Deleted"
1378
  msgstr ""
1379
 
1380
- #: includes/views/admin_options_shipping_provider.php:171
1381
- msgid "Close"
1382
  msgstr ""
1383
 
1384
- #: includes/views/admin_options_trackship_integration.php:13
1385
- #: includes/views/admin_options_trackship_integration.php:35
1386
- msgid "Tracking Page"
1387
- msgstr "לינק למעקב"
1388
 
1389
- #: includes/views/admin_options_trackship_integration.php:16
1390
- msgid "Shipment Status Notifications"
 
 
 
1391
  msgstr ""
1392
 
1393
- #: includes/views/admin_options_trackship_integration.php:40
1394
- msgid "Click to preview the tracking page"
1395
  msgstr ""
1396
 
1397
- #: includes/views/admin_options_trackship_integration.php:41
 
 
 
 
 
 
 
 
1398
  msgid "PLEASE NOTE - make sure to save your settings before preview."
1399
- msgstr ""
1400
 
1401
- #: includes/views/admin_options_trackship_integration.php:53
1402
  msgid "Shipment Status Notifications "
1403
- msgstr ""
1404
 
1405
- #: includes/views/admin_options_trackship_integration.php:81
1406
  msgid ""
1407
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1408
  "the way."
1409
  msgstr ""
1410
 
1411
- #: includes/views/admin_options_trackship_integration.php:95
1412
  msgid "Shipment is returned to sender"
1413
  msgstr ""
1414
 
1415
- #: includes/views/admin_options_trackship_integration.php:109
1416
  msgid "The shipment is ready to pickup."
1417
- msgstr ""
1418
 
1419
- #: includes/views/admin_options_trackship_integration.php:122
1420
  msgid "Carrier is about to deliver the shipment"
1421
  msgstr ""
1422
 
1423
- #: includes/views/admin_options_trackship_integration.php:136
1424
  msgid "The shipment was delivered successfully"
1425
- msgstr ""
1426
 
1427
- #: includes/views/admin_options_trackship_integration.php:137
1428
  msgid ""
1429
  "You already have delivered email enabled, to enable this email you'll need "
1430
  "to disable the order status delivered in settings."
1431
  msgstr ""
1432
 
1433
- #: includes/views/admin_options_trackship_integration.php:151
1434
  msgid ""
1435
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1436
  "will try to deliver the package again."
@@ -1440,36 +1385,49 @@ msgstr ""
1440
  msgid "USPS"
1441
  msgstr "USPS"
1442
 
1443
- #: includes/views/zorem_admin_sidebar.php:8
1444
- msgid "Leave your review"
1445
- msgstr ""
1446
-
1447
  #: includes/views/zorem_admin_ts_sidebar.php:5
1448
  msgid "Dashboard"
1449
  msgstr ""
1450
 
1451
- #: includes/views/zorem_admin_ts_sidebar.php:7
1452
- msgid "Documentation"
1453
- msgstr ""
1454
-
1455
  #: templates/emails/tracking-info.php:138
1456
  msgid "Status"
1457
  msgstr "סטטוס"
1458
 
1459
- #: templates/emails/wcast-email-order-details.php:26
1460
  msgid "Order Details"
1461
  msgstr ""
1462
 
1463
  #. %s: Order ID.
1464
- #: templates/emails/wcast-email-order-details.php:42
1465
  #, php-format
1466
  msgid "Order number: %s"
1467
  msgstr ""
1468
 
1469
- #: templates/emails/wcast-email-order-details.php:49
1470
  msgid "Order date:"
1471
  msgstr ""
1472
 
1473
  #: templates/emails/plain/tracking-info.php:18
1474
  msgid "TRACKING INFORMATION"
1475
  msgstr "מעקב אחרי מידע"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2019-09-20 10:53+0000\n"
6
+ "PO-Revision-Date: 2019-09-22 11:45+0000\n"
7
+ "Last-Translator: inearuco_admin <info@zorem.com>\n"
8
  "Language-Team: Hebrew\n"
9
  "Language: he_IL\n"
10
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
21
  "Shipment Tracking!"
22
  msgstr "יש להתקין ולהפעיל% sWooCommerce% s למעקב המשלוח המתקדם של WooCommerce!"
23
 
24
+ #: woocommerce-advanced-shipment-tracking.php:209
25
+ #, php-format
26
+ msgid "Your order was shipped with %s and your tracking code is: %s"
27
+ msgstr "ההזמנה נשלחה עם %s ומספר המעקב הוא: %s"
28
+
29
+ #: woocommerce-advanced-shipment-tracking.php:413
30
+ #: includes/views/admin_options_settings.php:63
31
  #, php-format
32
  msgid ""
33
  "<strong>PLEASE NOTE</strong> - If you use the custom order status "
39
  msgstr ""
40
 
41
  #: includes/class-wc-advanced-shipment-tracking-admin.php:209
42
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1125
43
  msgid "Shipped"
44
  msgstr "נשלח"
45
 
52
 
53
  #: includes/class-wc-advanced-shipment-tracking-admin.php:240
54
  msgid "Change status to shipped"
55
+ msgstr "שנה את סטטוס ההזמנה לנשלחה"
56
 
57
  #: includes/class-wc-advanced-shipment-tracking-admin.php:250
58
  #: includes/class-wc-advanced-shipment-tracking-admin.php:279
59
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1601
60
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1805
61
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2212
62
  #: includes/customizer/class-wcast-customizer.php:104
63
  #: includes/customizer/class-wc-delivered-email-customizer.php:115
64
+ #: includes/views/admin_options_trackship_integration.php:183
65
  msgid "Delivered"
66
  msgstr "נמסרה ללקוח"
67
 
92
  msgid "Shipment status"
93
  msgstr "סטטוס המשלוח"
94
 
95
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:631
96
  msgid ""
97
  "Get Shipment Status is limited to 100 orders at a time, please select up to "
98
  "100 orders."
99
  msgstr ""
100
 
101
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:665
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  msgid "Data saved successfully."
103
  msgstr "נשמר בהצלחה"
104
 
105
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:666
106
  msgid "Really delete this entry? This will not be undo."
107
  msgstr "באמת למחוק ערך זה? זה לא יהיה לבטל."
108
 
109
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:667
110
  msgid "You can upload only csv file."
111
  msgstr "ניתן לטעון רק קובץ csv."
112
 
113
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:668
114
  msgid "This browser does not support HTML5."
115
  msgstr "דפדפן זה אינו תומך ב- HTML5."
116
 
117
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:669
118
  msgid "Please upload a valid CSV file."
119
  msgstr "העלה קובץ CSV חוקי."
120
 
121
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:726
 
 
 
 
122
  msgid "Settings"
123
  msgstr "הגדרות"
124
 
125
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:729
126
+ msgid "Shipping Providers"
127
+ msgstr "ספקי שילוח"
128
+
129
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:732
130
  msgid "Bulk Upload"
131
  msgstr "העלאה המונית"
132
 
133
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:738
134
+ #: includes/views/admin_options_bulk_upload.php:53
135
+ #: includes/views/admin_options_trackship_integration.php:35
136
+ #: includes/views/zorem_admin_ts_sidebar.php:7
137
+ msgid "Documentation"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
138
  msgstr ""
139
 
140
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:739
141
+ msgid "How to Video"
 
142
  msgstr ""
143
 
144
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:882
145
+ #: includes/views/admin_options_trackship_integration.php:23
146
+ msgid "Connected"
147
+ msgstr "מחובר"
148
 
149
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:981
 
150
  msgid "Enable/Disable"
151
  msgstr "הפעל / השבת"
152
 
153
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:987
154
  msgid "Set order status Delivered when order is delivered"
155
+ msgstr "העבר את ההזמנה לסטטוס נמסרה ללקוח כשמתקבל אישור מסירה ללקוח?"
156
 
157
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:994
158
  #, php-format
159
  msgid ""
160
+ "You have %s %s orders from the last 30 days, would you like to bulk send all "
161
+ "these orders to TrackShip?"
162
  msgstr ""
163
 
164
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:995
165
  msgid "Get Shipment Status"
166
  msgstr ""
167
 
168
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1027
169
  msgid ""
170
  "You must add the shortcode [wcast-track-order] to the \"page name\" in order "
171
  "for the tracking page to work."
172
  msgstr ""
173
 
174
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1035
175
  msgid "Select Tracking Page"
176
+ msgstr "בחר עמוד מעקב משלוח"
 
 
 
 
 
177
 
178
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1043
179
  msgid "Use the tracking page in the customer email/my account tracking link"
180
+ msgstr "הפנה לקוחות לעמוד המעקב באתר שלך (באימייל אישור הזמנה ובחשבון לקוח)"
181
 
182
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1049
183
  msgid "Select primary color for tracking page"
184
+ msgstr "בחר צבע ראשי לעמוד מעקב משלוח"
185
 
186
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1055
187
  msgid "Select content border color for tracking page"
188
+ msgstr "צבע גבול של עמוד מעקב הזמנה"
189
 
190
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1061
191
+ msgid "Hide tracking events details"
 
 
192
  msgstr ""
193
 
194
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1067
195
+ msgid "Remove TrackShip branding"
196
+ msgstr "הסר מיתוג TrackShip"
197
+
198
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1126
199
+ msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
200
+ msgstr "ברירת מחדל ״שנה את סטטוס ההזמנה לנשלחה״"
201
+
202
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1127
203
  msgid ""
204
  "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
205
  "will be selected by default when adding tracking info to orders."
206
  msgstr ""
207
 
208
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1130
209
+ msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
 
 
 
 
 
 
210
  msgstr ""
211
 
212
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1131
213
  msgid ""
214
  "This means that the 'mark as <span class='shipped_label'>completed</span>' "
215
  "will be selected by default when adding tracking info to orders."
216
  msgstr ""
217
 
218
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1158
 
 
 
 
 
 
 
 
 
 
 
 
 
219
  msgid "Customer Invoice"
220
  msgstr ""
221
 
222
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1175
223
+ msgid "Rename the “Completed” Order status to “Shipped”"
224
+ msgstr "שנה את השם של סטטוס הזמנה 'הושלמה' ל- 'נשלחה'"
 
 
 
 
225
 
226
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1188
227
+ msgid "On which order status email to include the shipment tracking info?"
228
  msgstr ""
229
 
230
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1194
231
  msgid "Show tracking info in Invoice"
232
  msgstr ""
233
 
234
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1200
235
  msgid "Show tracking info in Packing Slip"
236
  msgstr ""
237
 
238
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1217
239
+ msgid "Enable custom order status “Delivered\""
240
+ msgstr "אפשר סטטוס הזמנה חדש ״נמסרה ללקוח״"
241
 
242
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1218
243
  msgid ""
244
  "if you enable the delivered item, you will have the option to send delivered "
245
  "email notifications."
246
  msgstr "אם תפעיל את הפריט שנמסר, תהיה לך אפשרות לשלוח הודעות דוא\"ל שנשלחו."
247
 
248
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1224
249
+ msgid "Delivered Label color"
250
+ msgstr "צבע הלייבל של ״נמסרה ללקוח״"
251
 
252
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1230
253
+ msgid "Delivered Label font color"
254
+ msgstr "צבע הגופן של ״נמסרה ללקוח״"
 
 
255
 
256
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1233
257
+ msgid "Light"
 
 
 
 
 
 
258
  msgstr ""
259
 
260
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1234
261
+ msgid "Dark"
 
 
 
 
 
 
 
 
 
 
262
  msgstr ""
263
 
264
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1241
265
+ msgid "Enable the Delivered order status email"
266
+ msgstr "אפשר אימייל לסטטוס הזמנה ״נמסרה ללקוח״"
 
 
 
 
 
 
267
 
268
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1567
269
  msgid "Get shipment status"
270
  msgstr ""
271
 
272
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1595
273
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2209
274
  #: includes/customizer/class-wcast-customizer.php:74
275
  #: includes/customizer/class-wc-intransit-email-customizer.php:115
276
+ #: includes/views/admin_options_trackship_integration.php:128
277
  msgid "In Transit"
278
  msgstr ""
279
 
280
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1598
281
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2208
282
  #: includes/customizer/class-wcast-customizer.php:66
283
  msgid "Pre Transit"
284
  msgstr ""
285
 
286
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1604
287
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2211
288
+ #: includes/customizer/class-wcast-customizer.php:96
289
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:115
290
+ #: includes/views/admin_options_trackship_integration.php:169
291
+ msgid "Out For Delivery"
292
  msgstr ""
293
 
294
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1607
295
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2210
296
  #: includes/customizer/class-wcast-customizer.php:89
297
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:116
298
+ #: includes/views/admin_options_trackship_integration.php:156
299
  msgid "Available For Pickup"
300
+ msgstr "זמין לאיסוף"
301
 
302
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1610
303
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2216
304
  #: includes/customizer/class-wcast-customizer.php:82
305
  #: includes/customizer/class-wc-returntosender-email-customizer.php:116
306
+ #: includes/views/admin_options_trackship_integration.php:142
307
  msgid "Return To Sender"
308
  msgstr ""
309
 
310
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1613
311
  msgid "Delivery Failure"
312
  msgstr ""
313
 
314
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1616
315
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2207
316
  msgid "Unknown"
317
+ msgstr "לא ידוע"
318
 
319
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1619
320
  msgid "Pending TrackShip"
321
  msgstr ""
322
 
323
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1622
324
  msgid "Invalid Tracking"
325
  msgstr ""
326
 
327
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1625
328
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2215
329
+ msgid "Carrier Unsupported"
330
  msgstr ""
331
 
332
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1628
333
  msgid "Invalid User Key"
334
  msgstr ""
335
 
336
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1631
337
+ msgid "Wrong Shipping Provider"
338
+ msgstr ""
339
+
340
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1634
341
+ msgid "Deleted"
342
+ msgstr ""
343
+
344
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1703
345
  msgid "Resend delivered order notification"
346
  msgstr "שלח שוב את הודעת ההזמנה שנשלחו"
347
 
348
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1761
349
  msgid "Shipped Order"
350
+ msgstr "ההזמנה נשלחה"
351
 
352
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1784
353
  msgid "Mark order as delivered"
354
+ msgstr "סמן הזמנה כ-״נמסרה ללקוח״"
355
 
356
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1791
357
  msgid "Add Tracking"
358
+ msgstr "הוסף פרטי מעקב"
359
 
360
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1817
361
  msgid "Change order status to"
362
  msgstr ""
363
 
364
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1914
365
+ #: includes/views/admin_options_shipping_provider.php:90
366
  #, php-format
367
  msgid "You don't have any %s shipping providers."
368
+ msgstr "לא הופעלו ספקי שילוח"
369
 
370
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2167
371
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2179
372
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2191
373
  msgid "view details"
374
+ msgstr "הצג פרטים"
375
 
376
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2168
377
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2180
378
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2192
379
  msgid "hide details"
380
  msgstr ""
381
 
382
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2213
 
 
 
 
 
 
 
 
383
  #: includes/customizer/class-wcast-customizer.php:112
384
  #: includes/customizer/class-wc-failure-email-customizer.php:113
385
+ #: includes/views/admin_options_trackship_integration.php:198
386
  msgid "Failed Attempt"
387
  msgstr ""
388
 
389
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2214
390
+ msgid "Cancelled"
391
+ msgstr "בוטל"
392
 
393
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2217
394
+ #: includes/class-wc-advanced-shipment-tracking-front.php:827
 
395
  msgid "Invalid Tracking Number"
396
  msgstr ""
397
 
398
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2222
399
  msgid "Filter by shipment status"
400
  msgstr ""
401
 
402
+ #: includes/class-wc-advanced-shipment-tracking-front.php:140
403
  msgid ""
404
  "To track your order please enter your Order ID in the box below and press "
405
  "the \"Track\" button. This was given to you on your receipt and in the "
406
  "confirmation email you should have received."
407
  msgstr ""
408
 
409
+ #: includes/class-wc-advanced-shipment-tracking-front.php:141
410
  msgid "Order ID"
411
  msgstr ""
412
 
413
+ #: includes/class-wc-advanced-shipment-tracking-front.php:141
414
+ #: includes/class-wc-advanced-shipment-tracking-front.php:142
415
  msgid "Found in your order confirmation email."
416
  msgstr ""
417
 
418
+ #: includes/class-wc-advanced-shipment-tracking-front.php:142
419
  msgid "Order Email"
420
  msgstr ""
421
 
422
+ #: includes/class-wc-advanced-shipment-tracking-front.php:145
423
  #: includes/class-wc-advanced-shipment-tracking.php:260
424
+ #: includes/class-wc-advanced-shipment-tracking.php:654
425
+ #: includes/class-wc-advanced-shipment-tracking.php:776
426
  #: includes/customizer/class-wc-tracking-info-customizer.php:137
427
+ #: includes/customizer/class-wc-tracking-info-customizer.php:395
428
  #: includes/views/html-tracking-info-design-preview.php:69
429
  #: templates/emails/tracking-info.php:152
430
  #: templates/myaccount/view-order.php:123 templates/pip/tracking-info.php:23
431
  msgid "Track"
432
  msgstr "מעקב הזמנה"
433
 
434
+ #: includes/class-wc-advanced-shipment-tracking-front.php:313
435
+ #: includes/class-wc-advanced-shipment-tracking-front.php:676
436
  #, php-format
437
  msgid "Shipment - %s (out of %s)"
438
  msgstr ""
439
 
440
+ #: includes/class-wc-advanced-shipment-tracking-front.php:317
441
+ #: includes/class-wc-advanced-shipment-tracking-front.php:680
442
  msgid "Order: "
443
  msgstr ""
444
 
445
+ #: includes/class-wc-advanced-shipment-tracking-front.php:326
446
+ #: includes/class-wc-advanced-shipment-tracking-front.php:330
447
+ #: includes/class-wc-advanced-shipment-tracking-front.php:689
448
+ #: includes/class-wc-advanced-shipment-tracking-front.php:693
449
  msgid "Estimated Delivery Date: "
450
+ msgstr "תאריך מסירה משוער"
451
 
452
+ #: includes/class-wc-advanced-shipment-tracking-front.php:439
453
+ #: includes/class-wc-advanced-shipment-tracking-front.php:799
454
  msgid "Tracking Details"
455
+ msgstr "פרטי מעקב הזמנה"
456
 
457
+ #: includes/class-wc-advanced-shipment-tracking-front.php:458
458
+ #: includes/class-wc-advanced-shipment-tracking-front.php:818
459
  msgid "view more"
460
+ msgstr "הצג עוד"
461
 
462
+ #: includes/class-wc-advanced-shipment-tracking-front.php:459
463
+ #: includes/class-wc-advanced-shipment-tracking-front.php:819
464
  msgid "view less"
465
+ msgstr "הצג פחות"
466
 
467
+ #: includes/class-wc-advanced-shipment-tracking-front.php:467
468
+ msgid "Tracking details not found in TrackShip"
 
 
 
 
469
  msgstr ""
470
 
471
  #: includes/class-wc-advanced-shipment-tracking.php:93
503
  msgid "Date shipped:"
504
  msgstr "תאריך משלוח:"
505
 
506
+ #: includes/class-wc-advanced-shipment-tracking.php:218
507
+ #: includes/class-wc-advanced-shipment-tracking.php:221
508
+ #: includes/class-wc-advanced-shipment-tracking.php:416
509
+ #: includes/class-wc-advanced-shipment-tracking.php:419
510
+ msgid "Y-m-d"
511
+ msgstr ""
512
+
513
  #: includes/class-wc-advanced-shipment-tracking.php:260
514
  #: templates/pip/tracking-info.php:23
515
  msgid "Click here to track your shipment"
522
  msgid "Shipped on %s"
523
  msgstr "נשלח ב- %s"
524
 
 
 
 
 
525
  #: includes/class-wc-advanced-shipment-tracking.php:365
526
  msgid "Add Tracking Info"
527
  msgstr "הוסף פרטי מעקב"
542
  msgid "Click here to track shipment"
543
  msgstr "לחץ כאן כדי לעקוב אחר המשלוח"
544
 
545
+ #: includes/class-wc-advanced-shipment-tracking.php:628
546
+ #, php-format
547
+ msgid ""
548
+ "Tracking info was deleted for tracking provider %s with tracking number %s"
549
+ msgstr ""
550
+
551
+ #: includes/class-wc-advanced-shipment-tracking.php:966
552
+ #, php-format
553
+ msgid "Order was shipped with %s and tracking number is: %s"
554
+ msgstr ""
555
+
556
  #: includes/customizer/class-wcast-customizer.php:39
557
  msgid "Shipment Status Emails"
558
+ msgstr "התראות אימייל על שינוי סטטוס משלוח"
559
 
560
  #: includes/customizer/class-wcast-customizer.php:50
561
  msgid "Tracking info display"
562
  msgstr "תצוגת מידע מעקב"
563
 
564
+ #: includes/customizer/class-wcast-customizer.php:58
565
+ #: includes/customizer/class-wc-email-customizer.php:155
566
+ msgid "Delivered order status email"
 
 
 
 
 
567
  msgstr ""
568
 
569
  #: includes/customizer/class-wcast-customizer.php:352
570
  msgid "Select order to preview"
571
+ msgstr "בחר הזמנה לתצוגה מקדימה"
572
 
573
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:115
574
  msgid "Your order #{order_number} is available for pickup"
582
 
583
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:148
584
  msgid "Available For Pickup shipment status email"
585
+ msgstr "אימייל של סטטוס משלוח זמין לאיסוף"
586
 
587
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:149
588
  #: includes/customizer/class-wc-delivered-email-customizer.php:148
607
  #: includes/customizer/class-wc-returntosender-email-customizer.php:179
608
  #: includes/customizer/class-wc-tracking-info-customizer.php:161
609
  msgid "Preview order"
610
+ msgstr "הזמנה לתצוגה מקדימה"
611
 
612
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:200
613
  #: includes/customizer/class-wc-delivered-email-customizer.php:199
683
  #: includes/customizer/class-wc-intransit-email-customizer.php:243
684
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:243
685
  #: includes/customizer/class-wc-returntosender-email-customizer.php:244
 
686
  msgid "Email heading"
687
  msgstr "כותרת דוא\"ל"
688
 
712
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:281
713
  #: includes/customizer/class-wc-returntosender-email-customizer.php:282
714
  msgid "Show order details"
715
+ msgstr "הצג פרטי הזמנה"
716
 
717
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:298
718
  #: includes/customizer/class-wc-delivered-email-customizer.php:297
721
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:297
722
  #: includes/customizer/class-wc-returntosender-email-customizer.php:298
723
  msgid "Show billing address"
724
+ msgstr "הצג כתובת למשלוח"
725
 
726
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:315
727
  #: includes/customizer/class-wc-delivered-email-customizer.php:314
730
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:314
731
  #: includes/customizer/class-wc-returntosender-email-customizer.php:315
732
  msgid "Show shipping address"
733
+ msgstr "הצג כתובת למשלוח"
734
 
735
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:331
736
  #: includes/customizer/class-wc-delivered-email-customizer.php:330
778
  #: includes/customizer/class-wc-intransit-email-customizer.php:415
779
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:415
780
  #: includes/customizer/class-wc-returntosender-email-customizer.php:417
781
+ #: includes/customizer/class-wc-tracking-info-customizer.php:744
782
  msgid "Please select preview order."
783
+ msgstr "בחר הזמנה לתצוגה מקדימה"
784
 
785
  #: includes/customizer/class-wc-delivered-email-customizer.php:114
786
  msgid "Your order #{order_number} has been delivered"
843
  "available variables: {site_title}, {customer_email}, {customer_first_name}, "
844
  "{customer_last_name}, {customer_username}, {order_number}"
845
  msgstr ""
846
+ "משתנים זמינים: {site_title}, {customer_email}, {customer_first_name}, "
847
+ "{customer_last_name}, {customer_username}, {order_number}"
848
 
849
  #: includes/customizer/class-wc-email-customizer.php:300
850
  msgid "Display tracking details"
945
  msgstr ""
946
 
947
  #: includes/customizer/class-wc-tracking-info-customizer.php:134
948
+ #: includes/customizer/class-wc-tracking-info-customizer.php:315
949
  #: includes/views/html-tracking-info-design-preview.php:45
950
  #: templates/emails/tracking-info.php:110 templates/myaccount/view-order.php:89
951
  msgid "Provider"
952
  msgstr "ספק"
953
 
954
  #: includes/customizer/class-wc-tracking-info-customizer.php:135
955
+ #: includes/customizer/class-wc-tracking-info-customizer.php:337
956
  #: includes/views/html-tracking-info-design-preview.php:46
957
  #: templates/emails/tracking-info.php:134
958
  #: templates/myaccount/view-order.php:111
960
  msgstr "מספר מעקב"
961
 
962
  #: includes/customizer/class-wc-tracking-info-customizer.php:136
963
+ #: includes/customizer/class-wc-tracking-info-customizer.php:358
964
  msgid "Shipped Date"
965
+ msgstr "תאריך משלוח"
966
 
967
  #: includes/customizer/class-wc-tracking-info-customizer.php:162
968
  msgid ""
969
  "select from last 20 orders one order that you added tracking info in order "
970
  "to preview and design the tracking info table."
971
  msgstr ""
972
+ "בחר הזמנה לתצוגה מקדימה מ -20 הזמנות אחרונות, וודא שבחרת הזמנה שנוספו לה "
973
+ "פרטי מעקב."
974
 
975
+ #: includes/customizer/class-wc-tracking-info-customizer.php:181
976
+ #: includes/views/admin_options_settings.php:10
977
+ #: includes/views/admin_options_trackship_integration.php:47
978
+ msgid "General Settings"
979
  msgstr ""
980
 
981
+ #: includes/customizer/class-wc-tracking-info-customizer.php:196
982
+ msgid "Tracking Display Position"
983
+ msgstr "מיקום תצוגת פרטי מעקב"
984
+
985
+ #: includes/customizer/class-wc-tracking-info-customizer.php:200
986
  msgid "Before Order Details"
987
+ msgstr "לפני פרטי ההזמנה"
988
 
989
+ #: includes/customizer/class-wc-tracking-info-customizer.php:201
990
  msgid "After Order Details"
991
+ msgstr "אחרי פרטי ההזמנה"
992
 
993
+ #: includes/customizer/class-wc-tracking-info-customizer.php:216
994
  msgid "Main Header text"
995
  msgstr ""
996
 
997
+ #: includes/customizer/class-wc-tracking-info-customizer.php:223
998
  #: templates/pip/tracking-info.php:17
999
  msgid "Tracking Information"
1000
  msgstr "מעקב אחרי מידע"
1001
 
1002
+ #: includes/customizer/class-wc-tracking-info-customizer.php:238
1003
  msgid "Additional text after header"
1004
  msgstr "טקסט נוסף אחרי כותרת"
1005
 
1006
+ #: includes/customizer/class-wc-tracking-info-customizer.php:259
1007
+ msgid "Table Content"
1008
  msgstr ""
1009
 
1010
+ #: includes/customizer/class-wc-tracking-info-customizer.php:274
1011
  msgid "Display Shipment Provider image"
1012
  msgstr ""
1013
 
1014
+ #: includes/customizer/class-wc-tracking-info-customizer.php:291
1015
  msgid "Hide date"
1016
  msgstr ""
1017
 
1018
+ #: includes/customizer/class-wc-tracking-info-customizer.php:308
1019
  msgid "Provider Header Text"
1020
  msgstr ""
1021
 
1022
+ #: includes/customizer/class-wc-tracking-info-customizer.php:330
1023
  msgid "Tracking Number Header Text"
1024
  msgstr ""
1025
 
1026
+ #: includes/customizer/class-wc-tracking-info-customizer.php:351
1027
  msgid "Shipped Date Header Text"
1028
+ msgstr "טקסט כותרת לעמודת תאריך משלוח"
1029
 
1030
+ #: includes/customizer/class-wc-tracking-info-customizer.php:372
1031
  msgid "Track Label"
1032
+ msgstr "טקסט של כפתור מעקב משלוח"
1033
 
1034
+ #: includes/customizer/class-wc-tracking-info-customizer.php:388
1035
  msgid "Track Header Text"
1036
+ msgstr "כותרת של כפתור מעקב משלוח"
1037
 
1038
+ #: includes/customizer/class-wc-tracking-info-customizer.php:410
1039
  msgid "Table Design"
1040
+ msgstr "עיצוב טבלה"
1041
 
1042
+ #: includes/customizer/class-wc-tracking-info-customizer.php:425
1043
  msgid "Padding"
1044
  msgstr ""
1045
 
1046
+ #: includes/customizer/class-wc-tracking-info-customizer.php:445
1047
  msgid "Background color"
1048
+ msgstr "צבע רקע"
1049
 
1050
+ #: includes/customizer/class-wc-tracking-info-customizer.php:473
1051
  msgid "Border color"
1052
+ msgstr "צבע גבול"
1053
 
1054
+ #: includes/customizer/class-wc-tracking-info-customizer.php:489
1055
  msgid "Border size"
1056
+ msgstr "גודל גבול"
 
 
 
 
 
 
1057
 
1058
+ #: includes/customizer/class-wc-tracking-info-customizer.php:513
1059
  msgid "Table text align"
1060
+ msgstr "יישור טקסט טבלה"
1061
 
1062
+ #: includes/customizer/class-wc-tracking-info-customizer.php:518
1063
  msgid "Left"
1064
  msgstr ""
1065
 
1066
+ #: includes/customizer/class-wc-tracking-info-customizer.php:519
1067
  msgid "Right"
1068
  msgstr ""
1069
 
1070
+ #: includes/customizer/class-wc-tracking-info-customizer.php:520
1071
  msgid "Center"
1072
  msgstr ""
1073
 
1074
+ #: includes/customizer/class-wc-tracking-info-customizer.php:539
1075
  msgid "Table header font size"
1076
  msgstr "גודל גופן של כותרת הטבלה"
1077
 
1078
+ #: includes/customizer/class-wc-tracking-info-customizer.php:558
1079
  msgid "Table header font color"
1080
  msgstr "צבע גופן של כותרת הטבלה"
1081
 
1082
+ #: includes/customizer/class-wc-tracking-info-customizer.php:574
1083
  msgid "Table content font size"
1084
  msgstr "גודל גופן של תוכן טבלה"
1085
 
1086
+ #: includes/customizer/class-wc-tracking-info-customizer.php:591
1087
  msgid "Table content font color"
1088
  msgstr "צבע גופן של תוכן טבלה"
1089
 
1090
+ #: includes/customizer/class-wc-tracking-info-customizer.php:607
1091
  msgid "Content line height"
1092
  msgstr ""
1093
 
1094
+ #: includes/customizer/class-wc-tracking-info-customizer.php:628
1095
  msgid "Content font weight"
1096
  msgstr ""
1097
 
1098
+ #: includes/customizer/class-wc-tracking-info-customizer.php:650
1099
+ msgid "Track Button Design"
1100
  msgstr ""
1101
 
1102
+ #: includes/customizer/class-wc-tracking-info-customizer.php:664
1103
  msgid "Track Link Font Color"
1104
  msgstr ""
1105
 
1106
+ #: includes/customizer/class-wc-tracking-info-customizer.php:680
1107
  msgid "Track Link Background Color"
1108
  msgstr ""
1109
 
1110
+ #: includes/customizer/class-wc-tracking-info-customizer.php:695
1111
  msgid "Track link Border"
1112
+ msgstr "צבע גבול של כפתור מעקב הזמנה"
1113
+
1114
+ #: includes/customizer/class-wc-tracking-page-customizer.php:150
1115
+ msgid "Remove Trackship branding from tracking page"
1116
+ msgstr "הסר מיתוג TrackShip מעמוד מעקב הזמנה"
1117
 
1118
  #: includes/customizer/class-wc-tracking-page-customizer.php:167
1119
  msgid "Header Color"
1129
 
1130
  #: includes/customizer/class-wc-tracking-page-customizer.php:215
1131
  msgid "Tracking info Border Color"
1132
+ msgstr "צבע גבול של פרטי מעקב"
1133
 
1134
  #: includes/customizer/class-wc-tracking-page-customizer.php:230
1135
  msgid "Tracking info width (px)"
1137
 
1138
  #: includes/customizer/class-wc-tracking-page-customizer.php:250
1139
  msgid "Tracking details Border Color"
1140
+ msgstr "צבע גבול פרטי מעקב הזמנה"
1141
 
1142
  #: includes/customizer/class-wc-tracking-page-customizer.php:265
1143
  msgid "Tracking info table shade color"
1153
 
1154
  #: includes/emails/class-shipment-delivered-email.php:32
1155
  msgid "Delivered order"
1156
+ msgstr "ההזמנה נמסרה ללקוח"
1157
 
1158
  #: includes/emails/class-shipment-delivered-email.php:33
1159
  msgid ""
1161
  "delivered and usually indicate that their orders have been shipped."
1162
  msgstr ""
1163
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1164
  #: includes/emails/class-shipment-delivered-email.php:269
1165
+ msgid "Click Here"
1166
  msgstr ""
1167
 
1168
  #: includes/emails/class-shipment-delivered-email.php:270
1179
  "added)"
1180
  msgstr "להחליף מידע מעקב אם קיים? (אם לא מסומנת, פרטי המעקב יתווספו)"
1181
 
1182
+ #: includes/views/admin_options_bulk_upload.php:24
1183
+ #: includes/views/admin_options_shipping_provider.php:114
1184
+ #: includes/views/admin_options_shipping_provider.php:148
1185
  msgid "Upload"
1186
  msgstr "העלה"
1187
 
1188
+ #: includes/views/admin_options_bulk_upload.php:26
 
 
1189
  msgid "Settings Saved."
1190
  msgstr "הגדרות נשמרו."
1191
 
1192
+ #: includes/views/admin_options_bulk_upload.php:36
1193
+ msgid "Upload Progress - "
1194
+ msgstr "העלאת התקדמות -"
1195
+
1196
+ #: includes/views/admin_options_bulk_upload.php:40
1197
+ msgid "Sample CSV"
1198
+ msgstr "CSV לדוגמא"
1199
+
1200
+ #: includes/views/admin_options_bulk_upload.php:45
1201
  msgid "You can download an example of the csv file:"
1202
+ msgstr "ניתן להוריד דוגמא של קובץ ה-CSV:"
1203
 
1204
+ #: includes/views/admin_options_bulk_upload.php:48
1205
  msgid "Download sample csv file"
1206
+ msgstr "הורד קובץ CSV לדוגמא"
1207
 
1208
+ #: includes/views/admin_options_bulk_upload.php:53
1209
  msgid ""
1210
  "For detailed instructions on how to upload tracking info in bulk, see our"
1211
  msgstr ""
1212
 
1213
+ #: includes/views/admin_options_settings.php:21
1214
+ #: includes/views/admin_options_settings.php:69
1215
+ #: includes/views/admin_options_trackship_integration.php:58
1216
+ #: includes/views/admin_options_trackship_integration.php:89
1217
+ msgid "Save Changes"
1218
+ msgstr "שמור שינויים"
1219
 
1220
+ #: includes/views/admin_options_settings.php:35
1221
+ msgid "Tracking Info Display"
1222
+ msgstr "תצוגת מעקב הזמנה"
1223
 
1224
+ #: includes/views/admin_options_settings.php:44
1225
+ msgid "You can customize the tracking info display on emails and my account"
 
1226
  msgstr ""
1227
 
1228
+ #: includes/views/admin_options_settings.php:47
1229
+ msgid "Launch Customizer"
1230
+ msgstr ""
1231
+
1232
+ #: includes/views/admin_options_settings.php:57
1233
  msgid "Delivered Order Status"
1234
+ msgstr "סטטוס נמסרה ללקוח"
1235
+
1236
+ #: includes/views/admin_options_shipping_provider.php:7
1237
+ msgid "Active"
1238
  msgstr ""
1239
 
1240
+ #: includes/views/admin_options_shipping_provider.php:8
1241
+ msgid "Inactive"
1242
  msgstr ""
1243
 
1244
+ #: includes/views/admin_options_shipping_provider.php:9
1245
+ msgid "Custom"
1246
+ msgstr ""
1247
+
1248
+ #: includes/views/admin_options_shipping_provider.php:10
1249
+ msgid "All"
1250
+ msgstr "הכל"
1251
+
1252
+ #: includes/views/admin_options_shipping_provider.php:16
1253
+ msgid "Add Custom Provider"
1254
+ msgstr "הוסף ספק משלוח "
1255
+
1256
+ #: includes/views/admin_options_shipping_provider.php:17
1257
+ msgid "Sync Provider List"
1258
+ msgstr "סנכרן רשימת ספקי שילוח"
1259
+
1260
+ #: includes/views/admin_options_shipping_provider.php:18
1261
+ msgid "Reset"
1262
+ msgstr ""
1263
+
1264
+ #: includes/views/admin_options_shipping_provider.php:18
1265
+ msgid "active"
1266
  msgstr ""
1267
 
1268
+ #: includes/views/admin_options_shipping_provider.php:18
1269
+ msgid "inactive"
1270
+ msgstr ""
1271
+
1272
+ #: includes/views/admin_options_shipping_provider.php:22
1273
+ msgid "Search by provider / country"
1274
+ msgstr "חפש לפי ספק שילוח / מדינה"
1275
 
1276
+ #: includes/views/admin_options_shipping_provider.php:96
1277
  msgid "Add Custom Shipping Provider"
1278
  msgstr "הוספת ספק משלוח ייחודי"
1279
 
1280
+ #: includes/views/admin_options_shipping_provider.php:103
1281
+ #: includes/views/admin_options_shipping_provider.php:137
1282
  msgid "Shiping Country"
1283
+ msgstr "ארץ משלוח"
1284
 
1285
+ #: includes/views/admin_options_shipping_provider.php:104
1286
+ #: includes/views/admin_options_shipping_provider.php:138
1287
  msgid "Global"
1288
  msgstr ""
1289
 
1290
+ #: includes/views/admin_options_shipping_provider.php:130
1291
  msgid "Edit Custom Shipping Provider"
1292
  msgstr ""
1293
 
1294
+ #: includes/views/admin_options_shipping_provider.php:165
1295
+ #: includes/views/admin_options_shipping_provider.php:172
1296
  msgid "Sync Providers"
1297
+ msgstr "סנכרן רשימת ספקי שילוח"
1298
 
1299
+ #: includes/views/admin_options_shipping_provider.php:166
1300
  msgid "Do you really want to sync all providers?"
1301
+ msgstr "האם ברצונך לסנכרן את רשימת ספקי השילוח?"
1302
 
1303
+ #: includes/views/admin_options_shipping_provider.php:168
1304
  msgid "Providers Added"
1305
  msgstr ""
1306
 
1307
+ #: includes/views/admin_options_shipping_provider.php:169
1308
  msgid "Providers Updated"
1309
  msgstr ""
1310
 
1311
+ #: includes/views/admin_options_shipping_provider.php:170
1312
  msgid "Providers Deleted"
1313
  msgstr ""
1314
 
1315
+ #: includes/views/admin_options_trackship_integration.php:12
1316
+ msgid "Connection status"
1317
  msgstr ""
1318
 
1319
+ #: includes/views/admin_options_trackship_integration.php:19
1320
+ msgid "TrackShip Connection Status"
1321
+ msgstr ""
 
1322
 
1323
+ #: includes/views/admin_options_trackship_integration.php:30
1324
+ msgid ""
1325
+ "You are now connected with TrackShip! TrackShip makes it effortless to "
1326
+ "automate your post shipping operations and get tracking and delivery status "
1327
+ "updates directly in the WooCommerce admin."
1328
  msgstr ""
1329
 
1330
+ #: includes/views/admin_options_trackship_integration.php:36
1331
+ msgid "TrackShip Dashboard"
1332
  msgstr ""
1333
 
1334
+ #: includes/views/admin_options_trackship_integration.php:72
1335
+ msgid "Tracking Page"
1336
+ msgstr "לינק למעקב"
1337
+
1338
+ #: includes/views/admin_options_trackship_integration.php:82
1339
+ msgid "Click to preview the tracking page"
1340
+ msgstr "צפה בדוגמא של עמוד המעקב"
1341
+
1342
+ #: includes/views/admin_options_trackship_integration.php:83
1343
  msgid "PLEASE NOTE - make sure to save your settings before preview."
1344
+ msgstr "שים לב לשמור את ההגדרות לפני צפייה בדוגמא של עמוד המעקב."
1345
 
1346
+ #: includes/views/admin_options_trackship_integration.php:102
1347
  msgid "Shipment Status Notifications "
1348
+ msgstr "התראות סטטוס משלוח"
1349
 
1350
+ #: includes/views/admin_options_trackship_integration.php:130
1351
  msgid ""
1352
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1353
  "the way."
1354
  msgstr ""
1355
 
1356
+ #: includes/views/admin_options_trackship_integration.php:144
1357
  msgid "Shipment is returned to sender"
1358
  msgstr ""
1359
 
1360
+ #: includes/views/admin_options_trackship_integration.php:158
1361
  msgid "The shipment is ready to pickup."
1362
+ msgstr "המשלוח מוכן לאיסוף"
1363
 
1364
+ #: includes/views/admin_options_trackship_integration.php:171
1365
  msgid "Carrier is about to deliver the shipment"
1366
  msgstr ""
1367
 
1368
+ #: includes/views/admin_options_trackship_integration.php:185
1369
  msgid "The shipment was delivered successfully"
1370
+ msgstr "המשלוח נמסר ללקוח"
1371
 
1372
+ #: includes/views/admin_options_trackship_integration.php:186
1373
  msgid ""
1374
  "You already have delivered email enabled, to enable this email you'll need "
1375
  "to disable the order status delivered in settings."
1376
  msgstr ""
1377
 
1378
+ #: includes/views/admin_options_trackship_integration.php:200
1379
  msgid ""
1380
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1381
  "will try to deliver the package again."
1385
  msgid "USPS"
1386
  msgstr "USPS"
1387
 
 
 
 
 
1388
  #: includes/views/zorem_admin_ts_sidebar.php:5
1389
  msgid "Dashboard"
1390
  msgstr ""
1391
 
 
 
 
 
1392
  #: templates/emails/tracking-info.php:138
1393
  msgid "Status"
1394
  msgstr "סטטוס"
1395
 
1396
+ #: templates/emails/wcast-email-order-details.php:31
1397
  msgid "Order Details"
1398
  msgstr ""
1399
 
1400
  #. %s: Order ID.
1401
+ #: templates/emails/wcast-email-order-details.php:47
1402
  #, php-format
1403
  msgid "Order number: %s"
1404
  msgstr ""
1405
 
1406
+ #: templates/emails/wcast-email-order-details.php:54
1407
  msgid "Order date:"
1408
  msgstr ""
1409
 
1410
  #: templates/emails/plain/tracking-info.php:18
1411
  msgid "TRACKING INFORMATION"
1412
  msgstr "מעקב אחרי מידע"
1413
+
1414
+ #. Name of the plugin
1415
+ msgid "Advanced Shipment Tracking for WooCommerce"
1416
+ msgstr "מעקב משלוחים מתקדם עבור ווקומרס"
1417
+
1418
+ #. Description of the plugin
1419
+ msgid ""
1420
+ "Add shipment tracking information to your WooCommerce orders and provide "
1421
+ "customers with an easy way to track their orders. Shipment tracking Info "
1422
+ "will appear in customers accounts (in the order panel) and in WooCommerce "
1423
+ "order complete email."
1424
+ msgstr ""
1425
+ "מעקב משלוחים מתקדם לווקומרס הוא תוסף המאפשר להוסיף פרטי מעקב משלוחים להזמנות."
1426
+ " התוסף מספק יותר מ-100 חברות שילוח מוגדרות מראש, וניתן להוסיף גם חברות שילוח "
1427
+ "בהתאמה אישית. התוסף מאפשר להוסיף לכל הזמנה ספק משלוחים, מספר מעקב ותאריך "
1428
+ "משלוח. הלקוח יקבל את מידע המעקב ולינק באימייל של \"הזמנה הושלמה\" ומידע "
1429
+ "המעקב גם יוצג להזמנות בחשבון האישי של הלקוח באתר."
1430
+
1431
+ #. Author of the plugin
1432
+ msgid "zorem"
1433
+ msgstr ""
lang/woo-advanced-shipment-tracking-hi_IN.mo CHANGED
Binary file
lang/woo-advanced-shipment-tracking-hi_IN.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2019-09-06 11:44+0000\n"
6
- "PO-Revision-Date: 2019-09-06 11:46+0000\n"
7
  "Last-Translator: gaurav <gaurav1092@zorem.com>\n"
8
  "Language-Team: Hindi\n"
9
  "Language: hi_IN\n"
@@ -14,7 +14,7 @@ msgstr ""
14
  "X-Generator: Loco https://localise.biz/\n"
15
  "X-Loco-Version: 2.3.0; wp-5.2.3"
16
 
17
- #: woocommerce-advanced-shipment-tracking.php:112
18
  #, php-format
19
  msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
@@ -23,8 +23,13 @@ msgstr ""
23
  "कृपया WooCommerce उन्नत शिपमेंट ट्रैकिंग के लिए% sWooCommerce% s को स्थापित "
24
  "और सक्रिय करें!"
25
 
26
- #: woocommerce-advanced-shipment-tracking.php:390
27
- #: includes/views/admin_options_settings.php:21
 
 
 
 
 
28
  #, php-format
29
  msgid ""
30
  "<strong>PLEASE NOTE</strong> - If you use the custom order status "
@@ -35,281 +40,219 @@ msgid ""
35
  "\"completed\" before deactivating the plugin."
36
  msgstr ""
37
 
38
- #: includes/class-wc-advanced-shipment-tracking-admin.php:209
39
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1144
40
  msgid "Shipped"
41
  msgstr "भेज दिया"
42
 
43
- #: includes/class-wc-advanced-shipment-tracking-admin.php:226
44
  #, php-format
45
  msgid "Shipped <span class=\"count\">(%s)</span>"
46
  msgid_plural "Shipped <span class=\"count\">(%s)</span>"
47
  msgstr[0] "भेज दिया गया <span class = \"count\"> (% s) </ span>"
48
  msgstr[1] "भेज दिया गया <span class = \"count\"> (% s) </ span>"
49
 
50
- #: includes/class-wc-advanced-shipment-tracking-admin.php:240
51
  msgid "Change status to shipped"
52
  msgstr "शिप करने की स्थिति बदलें"
53
 
54
- #: includes/class-wc-advanced-shipment-tracking-admin.php:250
55
- #: includes/class-wc-advanced-shipment-tracking-admin.php:279
56
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1594
57
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1785
58
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2190
59
- #: includes/customizer/class-wcast-customizer.php:104
60
- #: includes/customizer/class-wc-delivered-email-customizer.php:115
61
- #: includes/views/admin_options_trackship_integration.php:134
62
  msgid "Delivered"
63
  msgstr "पहुंचा दिया"
64
 
65
- #: includes/class-wc-advanced-shipment-tracking-admin.php:255
66
  #, php-format
67
  msgid "Delivered <span class=\"count\">(%s)</span>"
68
  msgid_plural "Delivered <span class=\"count\">(%s)</span>"
69
  msgstr[0] "वितरित <span class = \"count\"> (% s) </ span>"
70
  msgstr[1] "वितरित <span class = \"count\"> (% s) </ span>"
71
 
72
- #: includes/class-wc-advanced-shipment-tracking-admin.php:261
73
- #: includes/class-wc-advanced-shipment-tracking-admin.php:290
74
  msgid "Updated Tracking"
75
  msgstr "अपडेटेड ट्रैकिंग"
76
 
77
- #: includes/class-wc-advanced-shipment-tracking-admin.php:266
78
  #, php-format
79
  msgid "Updated Tracking <span class=\"count\">(%s)</span>"
80
  msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
81
  msgstr[0] "अद्यतित ट्रैकिंग <span class = \"count\"> (% s) </ span>"
82
  msgstr[1] "अद्यतित ट्रैकिंग <span class = \"count\"> (% s) </ span>"
83
 
84
- #: includes/class-wc-advanced-shipment-tracking-admin.php:320
85
  msgid "Change status to delivered"
86
  msgstr "वितरित करने के लिए स्थिति बदलें"
87
 
88
- #: includes/class-wc-advanced-shipment-tracking-admin.php:523
89
  msgid "Shipment status"
90
  msgstr ""
91
  "नौवहन स्थिति\n"
92
 
93
- #: includes/class-wc-advanced-shipment-tracking-admin.php:622
94
  msgid ""
95
  "Get Shipment Status is limited to 100 orders at a time, please select up to "
96
  "100 orders."
97
  msgstr ""
98
 
99
- #: includes/class-wc-advanced-shipment-tracking-admin.php:667
100
- msgid "Order"
101
- msgstr "क्रम"
102
-
103
- #: includes/class-wc-advanced-shipment-tracking-admin.php:668
104
- msgid "Item"
105
- msgstr "मद"
106
-
107
- #: includes/class-wc-advanced-shipment-tracking-admin.php:669
108
- msgid "Line Item"
109
- msgstr "लाइन आइटम"
110
-
111
- #: includes/class-wc-advanced-shipment-tracking-admin.php:670
112
- msgid "Class"
113
- msgstr "कक्षा"
114
-
115
  #: includes/class-wc-advanced-shipment-tracking-admin.php:671
116
- msgid "Delete the selected rates?"
117
- msgstr "चयनित दरों को हटाएं?"
118
-
119
- #: includes/class-wc-advanced-shipment-tracking-admin.php:672
120
- msgid "Duplicate the selected rates?"
121
- msgstr "चयनित दरों की नकल करें?"
122
-
123
- #: includes/class-wc-advanced-shipment-tracking-admin.php:673
124
- msgid "Really want to bulk change all provider status?"
125
- msgstr "वास्तव में सभी प्रदाता स्थिति को बदलना चाहते हैं?"
126
-
127
- #: includes/class-wc-advanced-shipment-tracking-admin.php:674
128
- #: includes/views/admin_options_settings.php:26
129
  msgid "Data saved successfully."
130
  msgstr "डेटा सफलतापूर्वक सहेजा गया।"
131
 
132
- #: includes/class-wc-advanced-shipment-tracking-admin.php:675
133
  msgid "Really delete this entry? This will not be undo."
134
  msgstr "वास्तव में इस प्रविष्टि को हटा दें? यह पूर्ववत नहीं होगा।"
135
 
136
- #: includes/class-wc-advanced-shipment-tracking-admin.php:676
137
  msgid "You can upload only csv file."
138
  msgstr "आप केवल csv फ़ाइल अपलोड कर सकते हैं।"
139
 
140
- #: includes/class-wc-advanced-shipment-tracking-admin.php:677
141
  msgid "This browser does not support HTML5."
142
  msgstr "यह ब्राउज़र HTML5 का समर्थन नहीं करता है।"
143
 
144
- #: includes/class-wc-advanced-shipment-tracking-admin.php:678
145
  msgid "Please upload a valid CSV file."
146
  msgstr "कृपया एक मान्य CSV फ़ाइल अपलोड करें।"
147
 
148
- #: includes/class-wc-advanced-shipment-tracking-admin.php:736
149
- msgid "Shipping Providers"
150
- msgstr "नौवहन प्रदाता"
151
-
152
- #: includes/class-wc-advanced-shipment-tracking-admin.php:739
153
  msgid "Settings"
154
  msgstr "सेटिंग्स"
155
 
156
- #: includes/class-wc-advanced-shipment-tracking-admin.php:742
 
 
 
 
157
  msgid "Bulk Upload"
158
  msgstr "सामूहिक अपलोड"
159
 
160
- #: includes/class-wc-advanced-shipment-tracking-admin.php:745
161
- msgid "TrackShip"
 
 
 
 
 
 
 
162
  msgstr ""
163
 
164
- #: includes/class-wc-advanced-shipment-tracking-admin.php:880
 
165
  msgid "Connected"
166
  msgstr "जुड़े हुए"
167
 
168
- #: includes/class-wc-advanced-shipment-tracking-admin.php:886
 
169
  msgid ""
170
- "Auto-track all your shipments, get real-time shipment tracking updates "
171
- "without leaving your stores admin."
172
  msgstr ""
173
- "अपने सभी स्टोरों को ऑटो-ट्रैक करें, अपने स्टोर व्यवस्थापक को छोड़ने के बिना "
174
- "वास्तविक समय शिपमेंट ट्रैकिंग अपडेट प्राप्त करें।"
175
 
176
- #: includes/class-wc-advanced-shipment-tracking-admin.php:889
177
- #, php-format
178
- msgid ""
179
- "You must have account and connect your store to %s in order to activate "
180
- "these advanced features."
181
  msgstr ""
182
- "इन उन्नत सुविधाओं को सक्रिय करने के लिए आपके पास खाता होना चाहिए और अपने "
183
- "स्टोर को % s से जोड़ना चाहिए।"
184
 
185
- #: includes/class-wc-advanced-shipment-tracking-admin.php:892
186
  #, php-format
187
- msgid "50 free Trackers for every new account! Get your %s account now>>"
188
- msgstr "हर नए खाते के लिए 50 मुफ्त ट्रैकर! अपना %s खाता अभी प्राप्त करें >>"
189
-
190
- #: includes/class-wc-advanced-shipment-tracking-admin.php:988
191
- msgid "TrackShip Connection Status"
192
- msgstr "TrackShip कनेक्शन स्थिति"
193
 
194
- #: includes/class-wc-advanced-shipment-tracking-admin.php:995
195
- #: includes/emails/class-shipment-delivered-email.php:226
196
  msgid "Enable/Disable"
197
  msgstr "अक्षम सक्षम"
198
 
199
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1001
200
  msgid "Set order status Delivered when order is delivered"
201
  msgstr "ऑर्डर की स्थिति सेट करें जब ऑर्डर दिया जाता है तब वितरित किया गया"
202
 
203
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1008
204
- #, php-format
205
- msgid ""
206
- "You have %s %s orders that you can track with TrackShip, you can send these "
207
- "shipments to TrackShip in Bulk."
208
- msgstr ""
209
-
210
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1009
211
- msgid "Get Shipment Status"
212
- msgstr ""
213
-
214
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1047
215
  msgid ""
216
  "You must add the shortcode [wcast-track-order] to the \"page name\" in order "
217
  "for the tracking page to work."
218
  msgstr ""
219
 
220
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1055
221
  msgid "Select Tracking Page"
222
  msgstr ""
223
  "ट्रैकिंग पृष्ठ का चयन करें\n"
224
 
225
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1063
226
- #: includes/customizer/class-wc-tracking-page-customizer.php:150
227
- msgid "Remove Trackship branding from tracking page"
228
- msgstr "ट्रैकिंग पृष्ठ से ट्रैकिंग ब्रांडिंग निकालें"
229
-
230
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1069
231
  msgid "Use the tracking page in the customer email/my account tracking link"
232
  msgstr "ग्राहक ईमेल / मेरे खाता ट्रैकिंग लिंक में ट्रैकिंग पृष्ठ का उपयोग करें"
233
 
234
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1075
235
  msgid "Select primary color for tracking page"
236
  msgstr ""
237
  "ट्रैकिंग पृष्ठ के लिए प्राथमिक रंग चुनें\n"
238
 
239
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1081
240
  msgid "Select content border color for tracking page"
241
  msgstr "ट्रैकिंग पृष्ठ के लिए सामग्री सीमा रंग चुनें"
242
 
243
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1145
244
- msgid ""
245
- "Default \"mark as <span class=\"shipped_label\">shipped</span>\" checkbox "
246
- "state"
 
 
 
 
 
 
247
  msgstr ""
248
 
249
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1146
250
  msgid ""
251
  "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
252
  "will be selected by default when adding tracking info to orders."
253
  msgstr ""
254
 
255
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1148
256
- msgid "Completed"
257
- msgstr "पूरा कर लिया है"
258
-
259
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1149
260
- msgid ""
261
- "Default \"mark as <span class=\"shipped_label\">completed</span>\" checkbox "
262
- "state"
263
  msgstr ""
264
 
265
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1150
266
  msgid ""
267
  "This means that the 'mark as <span class='shipped_label'>completed</span>' "
268
  "will be selected by default when adding tracking info to orders."
269
  msgstr ""
270
 
271
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1156
272
- msgid "Rename the “Completed” Order status to “Shipped”"
273
- msgstr "\"भेज दिया गया\" ऑर्डर की स्थिति को \"भेज दिया गया\" का नाम दें"
274
-
275
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1169
276
- msgid "On which customer order status email to include tracking info?"
277
- msgstr "ट्रैकिंग जानकारी शामिल करने के लिए किस ग्राहक के आदेश स्थिति ईमेल पर?"
278
-
279
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1170
280
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2192
281
- msgid "Cancelled"
282
- msgstr "रद्द"
283
-
284
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1171
285
  msgid "Customer Invoice"
286
  msgstr "ग्राहक का बिल"
287
 
288
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1172
289
- msgid "Refunded"
290
- msgstr "वापसी की गई है"
291
-
292
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1173
293
- msgid "Processing"
294
- msgstr "प्रसंस्करण"
295
 
296
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1174
297
- msgid "Failed"
298
- msgstr "अनुत्तीर्ण होना"
299
 
300
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1182
301
  msgid "Show tracking info in Invoice"
302
  msgstr "चालान में ट्रैकिंग जानकारी दिखाएं"
303
 
304
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1188
305
  msgid "Show tracking info in Packing Slip"
306
  msgstr "पैकिंग स्लिप में ट्रैकिंग जानकारी दिखाएं"
307
 
308
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1205
309
- msgid "Enable a New Custom order status - “Delivered"
310
- msgstr "एक नई कस्टम ऑर्डर स्थिति सक्षम करें - \"वितरित\""
311
 
312
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1206
313
  msgid ""
314
  "if you enable the delivered item, you will have the option to send delivered "
315
  "email notifications."
@@ -317,198 +260,171 @@ msgstr ""
317
  "यदि आप वितरित आइटम को सक्षम करते हैं, तो आपके पास वितरित ईमेल सूचनाएं भेजने "
318
  "का विकल्प होगा।"
319
 
320
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1212
321
- msgid "Delivered Status Label color"
322
- msgstr "वितरित स्थिति लेबल रंग"
323
 
324
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1218
325
- #: includes/customizer/class-wcast-customizer.php:58
326
- #: includes/customizer/class-wc-email-customizer.php:155
327
- msgid "Delivered order status email"
328
  msgstr ""
329
- "वितरित स्थिति स्थिति ईमेल\n"
330
 
331
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1219
332
- #: includes/views/admin_options_trackship_integration.php:80
333
- #: includes/views/admin_options_trackship_integration.php:94
334
- #: includes/views/admin_options_trackship_integration.php:108
335
- #: includes/views/admin_options_trackship_integration.php:121
336
- #: includes/views/admin_options_trackship_integration.php:135
337
- #: includes/views/admin_options_trackship_integration.php:150
338
- msgid "Edit"
339
- msgstr "संपादित करें"
340
-
341
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1236
342
- msgid ""
343
- "Change the \"Delivered\" orders to \"Completed\" when you deactivate the "
344
- "plugin"
345
  msgstr ""
346
- "जब आप प्लगइन को निष्क्रिय करते हैं तो \"डिलीवर किए गए\" ऑर्डर \"पूर्ण\" में "
347
- "बदल दें"
348
 
349
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1238
350
- msgid "No, I will use the snippet"
351
- msgstr "नहीं, मैं स्निपेट का उपयोग करूंगा"
352
 
353
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1239
354
- msgid "Yes, change all Delivered orders to Completed"
355
- msgstr "हां, सभी वितरित आदेशों को पूर्ण में बदल दें"
356
 
357
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1241
358
- #, php-format
359
- msgid ""
360
- "PLEASE NOTE - If you use the custom order status \"Delivered\", when you "
361
- "deactivate the plugin, you must register this order status in function.php "
362
- "in order to see these orders in the orders admin. You can find the snippet "
363
- "to use in functions.php %s or we can set to change all your \"delivered\" "
364
- "order to \"completed\"."
365
- msgstr ""
366
- "कृपया ध्यान दें - यदि आप कस्टम ऑर्डर स्टेटस \"डिलीवरेड\" का उपयोग करते हैं, "
367
- "तो जब आप प्लगइन को निष्क्रिय करते हैं, तो आपको ऑर्डर में इन आदेशों को देखने "
368
- "के लिए function.php में इस ऑर्डर की स्थिति दर्ज करनी होगी। आप कार्यों में "
369
- "उपयोग करने के लिए स्निपेट पा सकते हैं।% s या हम आपके सभी \"डिलीवर किए गए\" "
370
- "ऑर्डर को \"पूरा\" करने के लिए सेट कर सकते हैं।"
371
-
372
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1560
373
  msgid "Get shipment status"
374
  msgstr ""
375
  "शिपमेंट स्थिति प्राप्त करें\n"
376
 
377
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1588
378
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2187
379
- #: includes/customizer/class-wcast-customizer.php:74
380
- #: includes/customizer/class-wc-intransit-email-customizer.php:115
381
- #: includes/views/admin_options_trackship_integration.php:79
382
  msgid "In Transit"
383
  msgstr ""
384
  "रास्ते में\n"
385
 
386
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1591
387
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2186
388
- #: includes/customizer/class-wcast-customizer.php:66
389
  msgid "Pre Transit"
390
  msgstr ""
391
  "पूर्व पारगमन\n"
392
 
393
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1597
394
- msgid "Out for delivery"
 
 
 
 
395
  msgstr ""
396
  "डिलिवरी के लिए रवाना\n"
397
 
398
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1600
399
- #: includes/customizer/class-wcast-customizer.php:89
400
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:116
401
- #: includes/views/admin_options_trackship_integration.php:107
 
402
  msgid "Available For Pickup"
403
  msgstr ""
404
  "बटोरने के लिए उपलब्ध\n"
405
 
406
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1603
407
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2194
408
- #: includes/customizer/class-wcast-customizer.php:82
409
- #: includes/customizer/class-wc-returntosender-email-customizer.php:116
410
- #: includes/views/admin_options_trackship_integration.php:93
411
  msgid "Return To Sender"
412
  msgstr ""
413
  "भेजने वाले को वापिस लौटा दें\n"
414
 
415
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1606
416
  msgid "Delivery Failure"
417
  msgstr ""
418
  "वितरण विफल\n"
419
 
420
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1609
421
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2185
422
  msgid "Unknown"
423
  msgstr ""
424
  "अनजान\n"
425
 
426
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1612
427
  msgid "Pending TrackShip"
428
  msgstr ""
429
  "लंबित ट्रैकशिप\n"
430
 
431
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1615
432
  msgid "Invalid Tracking"
433
  msgstr ""
434
  "अमान्य ट्रैकिंग\n"
435
 
436
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1618
437
- msgid "Carrier unsupported"
438
- msgstr "वाहक असमर्थित"
 
439
 
440
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1621
441
  msgid "Invalid User Key"
442
  msgstr ""
443
 
444
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1687
 
 
 
 
 
 
 
 
445
  msgid "Resend delivered order notification"
446
  msgstr "डिलीट ऑर्डर नोटिफिकेशन"
447
 
448
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1745
449
  msgid "Shipped Order"
450
  msgstr "आदेश भेज दिया"
451
 
452
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1764
453
  msgid "Mark order as delivered"
454
  msgstr "वितरित के रूप में मार्क आदेश"
455
 
456
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1771
457
  msgid "Add Tracking"
458
  msgstr ""
459
 
460
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1797
461
  msgid "Change order status to"
462
  msgstr "ऑर्डर की स्थिति बदलें"
463
 
464
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1892
465
- #: includes/views/admin_options_shipping_provider.php:88
466
  #, php-format
467
  msgid "You don't have any %s shipping providers."
468
  msgstr "आपके पास कोई% s शिपिंग प्रदाता नहीं हैं।"
469
 
470
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2145
471
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2157
472
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2169
473
  msgid "view details"
474
  msgstr "विवरण देखें"
475
 
476
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2146
477
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2158
478
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2170
479
  msgid "hide details"
480
  msgstr "जानकारी छिपाएँ"
481
 
482
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2188
483
- msgid "Available for Pickup"
484
- msgstr ""
485
-
486
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2189
487
- msgid "Out for Delivery"
488
- msgstr ""
489
-
490
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2191
491
- #: includes/customizer/class-wcast-customizer.php:112
492
- #: includes/customizer/class-wc-failure-email-customizer.php:113
493
- #: includes/views/admin_options_trackship_integration.php:149
494
  msgid "Failed Attempt"
495
  msgstr "असफल प्रयास"
496
 
497
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2193
498
- msgid "Carrier Unsupported"
499
- msgstr ""
500
 
501
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2195
502
- #: includes/class-wc-advanced-shipment-tracking-front.php:457
503
- #: includes/class-wc-advanced-shipment-tracking-front.php:813
504
  msgid "Invalid Tracking Number"
505
  msgstr "अवैध ट्रैकिंग नंबर"
506
 
507
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2200
508
  msgid "Filter by shipment status"
509
  msgstr ""
510
 
511
- #: includes/class-wc-advanced-shipment-tracking-front.php:138
512
  msgid ""
513
  "To track your order please enter your Order ID in the box below and press "
514
  "the \"Track\" button. This was given to you on your receipt and in the "
@@ -518,181 +434,180 @@ msgstr ""
518
  "दर्ज करें और \"ट्रैक\" बटन दबाएं। यह आपको आपकी रसीद पर दिया गया था और आपको "
519
  "जो पुष्टिकरण ईमेल मिलना चाहिए था।\n"
520
 
521
- #: includes/class-wc-advanced-shipment-tracking-front.php:139
522
  msgid "Order ID"
523
  msgstr ""
524
  "आदेश कामतत्व\n"
525
 
526
- #: includes/class-wc-advanced-shipment-tracking-front.php:139
527
- #: includes/class-wc-advanced-shipment-tracking-front.php:140
528
  msgid "Found in your order confirmation email."
529
  msgstr ""
530
  "आपके आदेश की पुष्टि ईमेल में मिली।\n"
531
 
532
- #: includes/class-wc-advanced-shipment-tracking-front.php:140
533
  msgid "Order Email"
534
  msgstr ""
535
  "आदेश ईमेल\n"
536
 
537
- #: includes/class-wc-advanced-shipment-tracking-front.php:143
538
- #: includes/class-wc-advanced-shipment-tracking.php:260
539
- #: includes/class-wc-advanced-shipment-tracking.php:637
540
- #: includes/class-wc-advanced-shipment-tracking.php:763
541
- #: includes/customizer/class-wc-tracking-info-customizer.php:137
542
- #: includes/customizer/class-wc-tracking-info-customizer.php:381
543
- #: includes/views/html-tracking-info-design-preview.php:69
544
- #: templates/emails/tracking-info.php:152
545
- #: templates/myaccount/view-order.php:123 templates/pip/tracking-info.php:23
546
  msgid "Track"
547
  msgstr "धावन पथ"
548
 
549
- #: includes/class-wc-advanced-shipment-tracking-front.php:307
550
- #: includes/class-wc-advanced-shipment-tracking-front.php:662
551
  #, php-format
552
  msgid "Shipment - %s (out of %s)"
553
  msgstr ""
554
  "शिपमेंट -% s (% s में से)\n"
555
 
556
- #: includes/class-wc-advanced-shipment-tracking-front.php:311
557
- #: includes/class-wc-advanced-shipment-tracking-front.php:666
558
  msgid "Order: "
559
  msgstr "आदेश:"
560
 
561
- #: includes/class-wc-advanced-shipment-tracking-front.php:320
562
- #: includes/class-wc-advanced-shipment-tracking-front.php:324
563
- #: includes/class-wc-advanced-shipment-tracking-front.php:675
564
- #: includes/class-wc-advanced-shipment-tracking-front.php:679
565
  msgid "Estimated Delivery Date: "
566
  msgstr "अनुमानित प्रसव तिथि:"
567
 
568
- #: includes/class-wc-advanced-shipment-tracking-front.php:429
569
- #: includes/class-wc-advanced-shipment-tracking-front.php:785
570
  msgid "Tracking Details"
571
  msgstr "ट्रैकिंग विवरण"
572
 
573
- #: includes/class-wc-advanced-shipment-tracking-front.php:448
574
- #: includes/class-wc-advanced-shipment-tracking-front.php:804
575
  msgid "view more"
576
  msgstr "और देखो"
577
 
578
- #: includes/class-wc-advanced-shipment-tracking-front.php:449
579
- #: includes/class-wc-advanced-shipment-tracking-front.php:805
580
  msgid "view less"
581
  msgstr "कम देखें"
582
 
583
- #. esc_html__( '%1$s %2$s.' ),
584
- #: includes/class-wc-advanced-shipment-tracking-install.php:1583
585
- #, php-format
586
- msgid ""
587
- "We added many improvements to %1$s, please help and give us a review :) "
588
- "Thanks!"
589
  msgstr ""
590
- "हमने% 1 $ s में कई सुधार जोड़े, कृपया मदद करें और हमें एक समीक्षा दें :) "
591
- "धन्यवाद!"
592
 
593
- #: includes/class-wc-advanced-shipment-tracking.php:93
594
- #: includes/class-wc-advanced-shipment-tracking.php:244
595
- #: includes/customizer/class-wcast-customizer.php:30
596
  msgid "Shipment Tracking"
597
  msgstr "नौवहन पर नज़र रखना"
598
 
599
- #: includes/class-wc-advanced-shipment-tracking.php:179
600
- #: includes/class-wc-advanced-shipment-tracking.php:351
601
- msgid "Change order to Shipped?"
602
  msgstr ""
603
 
604
- #: includes/class-wc-advanced-shipment-tracking.php:181
605
- #: includes/class-wc-advanced-shipment-tracking.php:353
606
- msgid "Change order to Completed?"
607
  msgstr ""
608
 
609
- #: includes/class-wc-advanced-shipment-tracking.php:186
610
  msgid "Add Tracking Number"
611
  msgstr ""
612
 
613
- #: includes/class-wc-advanced-shipment-tracking.php:191
614
- #: includes/class-wc-advanced-shipment-tracking.php:369
615
  msgid "Provider:"
616
  msgstr "प्रदाता:"
617
 
618
- #: includes/class-wc-advanced-shipment-tracking.php:211
619
- #: includes/class-wc-advanced-shipment-tracking.php:407
620
  msgid "Tracking number:"
621
  msgstr "खोज संख्या:"
622
 
623
- #: includes/class-wc-advanced-shipment-tracking.php:217
624
- #: includes/class-wc-advanced-shipment-tracking.php:415
625
  msgid "Date shipped:"
626
  msgstr "जिस तारीख पर भेजा गया:"
627
 
628
- #: includes/class-wc-advanced-shipment-tracking.php:260
629
- #: templates/pip/tracking-info.php:23
 
 
 
 
 
 
630
  msgid "Click here to track your shipment"
631
  msgstr "अपने शिपमेंट को ट्रैक करने के लिए यहां क्लिक करें"
632
 
633
  #. 1: shipping date
634
- #: includes/class-wc-advanced-shipment-tracking.php:268
635
- #: templates/pip/tracking-info.php:29
636
  #, php-format
637
  msgid "Shipped on %s"
638
  msgstr "% S पर भेज दिया गया"
639
 
640
- #: includes/class-wc-advanced-shipment-tracking.php:269
641
- msgid "Delete"
642
- msgstr "हटाना"
643
-
644
- #: includes/class-wc-advanced-shipment-tracking.php:365
645
  msgid "Add Tracking Info"
646
  msgstr "ट्रैकिंग जानकारी जोड़ें"
647
 
648
- #: includes/class-wc-advanced-shipment-tracking.php:370
649
  msgid "Select Provider"
650
  msgstr "Select Provider"
651
 
652
- #: includes/class-wc-advanced-shipment-tracking.php:430
653
  msgid "Save Tracking"
654
  msgstr "ट्रैकिंग सहेजें"
655
 
656
- #: includes/class-wc-advanced-shipment-tracking.php:431
657
  msgid "Preview:"
658
  msgstr "पूर्वावलोकन:"
659
 
660
- #: includes/class-wc-advanced-shipment-tracking.php:431
661
  msgid "Click here to track shipment"
662
  msgstr "शिपमेंट को ट्रैक करने के लिए यहां क्लिक करें"
663
 
664
- #: includes/customizer/class-wcast-customizer.php:39
 
 
 
 
 
 
 
 
 
 
 
665
  msgid "Shipment Status Emails"
666
  msgstr "शिपमेंट स्थिति ईमेल"
667
 
668
- #: includes/customizer/class-wcast-customizer.php:50
669
  msgid "Tracking info display"
670
  msgstr ""
671
  "ट्रैकिंग जानकारी प्रदर्शित करें\n"
672
 
673
- #: includes/customizer/class-wcast-customizer.php:51
674
- msgid "This section lets you customize the Tracking Info display design."
675
- msgstr ""
676
- "यह अनुभाग आपको ट्रैकिंग जानकारी प्रदर्शन डिज़ाइन को अनुकूलित करने देता है।"
677
-
678
- #: includes/customizer/class-wcast-customizer.php:96
679
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:115
680
- #: includes/views/admin_options_trackship_integration.php:120
681
- msgid "Out For Delivery"
682
  msgstr ""
683
- "डिलिवरी के लिए रवाना\n"
684
 
685
- #: includes/customizer/class-wcast-customizer.php:352
686
  msgid "Select order to preview"
687
  msgstr ""
688
  "पूर्वावलोकन करने के लिए आदेश का चयन करें\n"
689
 
690
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:115
691
  msgid "Your order #{order_number} is available for pickup"
692
  msgstr ""
693
  "पिकअप के लिए आपका ऑर्डर # {order_number} उपलब्ध है\n"
694
 
695
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:117
696
  msgid ""
697
  "Hi there. we thought you'd like to know that your recent order from "
698
  "{site_title} is available for pickup."
@@ -700,53 +615,44 @@ msgstr ""
700
  "नमस्ते। हमने सोचा था कि आप जानना चाहते हैं कि {site_title} से आपका हालिया "
701
  "ऑर्डर पिकअप के लिए उपलब्ध है।\n"
702
 
703
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:148
704
  msgid "Available For Pickup shipment status email"
705
  msgstr ""
706
  "पिकअप शिपमेंट स्थिति ईमेल के लिए उपलब्ध है\n"
707
 
708
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:149
709
- #: includes/customizer/class-wc-delivered-email-customizer.php:148
710
- #: includes/customizer/class-wc-email-customizer.php:156
711
- #: includes/customizer/class-wc-failure-email-customizer.php:145
712
- #: includes/customizer/class-wc-intransit-email-customizer.php:147
713
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:148
714
- #: includes/customizer/class-wc-returntosender-email-customizer.php:149
715
  msgid "This section lets you customize the Email Content."
716
  msgstr ""
717
  "यह अनुभाग आपको ईमेल सामग्री को अनुकूलित करने देता है।\n"
718
 
719
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:163
720
  msgid "Enable Available For Pickup shipment status email"
721
  msgstr "पिकअप शिपमेंट स्थिति ईमेल के लिए उपलब्ध सक्षम करें"
722
 
723
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:179
724
- #: includes/customizer/class-wc-delivered-email-customizer.php:178
725
- #: includes/customizer/class-wc-email-customizer.php:189
726
- #: includes/customizer/class-wc-failure-email-customizer.php:175
727
- #: includes/customizer/class-wc-intransit-email-customizer.php:178
728
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:178
729
- #: includes/customizer/class-wc-returntosender-email-customizer.php:179
730
- #: includes/customizer/class-wc-tracking-info-customizer.php:161
731
  msgid "Preview order"
732
  msgstr ""
733
  "पूर्वावलोकन आदेश\n"
734
 
735
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:200
736
- #: includes/customizer/class-wc-delivered-email-customizer.php:199
737
- #: includes/customizer/class-wc-failure-email-customizer.php:196
738
- #: includes/customizer/class-wc-intransit-email-customizer.php:199
739
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:199
740
- #: includes/customizer/class-wc-returntosender-email-customizer.php:200
741
- msgid "To"
742
- msgstr "सेवा मेरे"
743
-
744
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:201
745
- #: includes/customizer/class-wc-delivered-email-customizer.php:200
746
- #: includes/customizer/class-wc-failure-email-customizer.php:197
747
- #: includes/customizer/class-wc-intransit-email-customizer.php:200
748
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:200
749
- #: includes/customizer/class-wc-returntosender-email-customizer.php:201
750
  msgid ""
751
  "Enter emails here or use variables such as {customer_email}. Multiple emails "
752
  "can be separated by commas."
@@ -754,169 +660,147 @@ msgstr ""
754
  "यहां ईमेल दर्ज करें या {customer_email} जैसे चर का उपयोग करें। एकाधिक ईमेल "
755
  "अल्पविराम द्वारा अलग किए जा सकते हैं।"
756
 
757
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:207
758
- #: includes/customizer/class-wc-delivered-email-customizer.php:206
759
- #: includes/customizer/class-wc-email-customizer.php:218
760
- #: includes/customizer/class-wc-failure-email-customizer.php:203
761
- #: includes/customizer/class-wc-intransit-email-customizer.php:206
762
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:206
763
- #: includes/customizer/class-wc-returntosender-email-customizer.php:207
764
  msgid "E.g. {customer.email}, admin@example.org"
765
  msgstr "जैसे {customer.email}, admin@example.org"
766
 
767
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:222
768
- #: includes/customizer/class-wc-delivered-email-customizer.php:221
769
- #: includes/customizer/class-wc-email-customizer.php:234
770
- #: includes/customizer/class-wc-failure-email-customizer.php:218
771
- #: includes/customizer/class-wc-intransit-email-customizer.php:221
772
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:221
773
- #: includes/customizer/class-wc-returntosender-email-customizer.php:222
774
- msgid "Email subject"
775
- msgstr "ईमेल विषय"
776
-
777
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:223
778
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:245
779
- #: includes/customizer/class-wc-delivered-email-customizer.php:222
780
- #: includes/customizer/class-wc-delivered-email-customizer.php:244
781
- #: includes/customizer/class-wc-failure-email-customizer.php:219
782
- #: includes/customizer/class-wc-failure-email-customizer.php:241
783
- #: includes/customizer/class-wc-intransit-email-customizer.php:222
784
- #: includes/customizer/class-wc-intransit-email-customizer.php:244
785
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:222
786
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:244
787
- #: includes/customizer/class-wc-returntosender-email-customizer.php:223
788
- #: includes/customizer/class-wc-returntosender-email-customizer.php:245
789
  msgid "Available placeholders: {site_title}, {order_number}"
790
  msgstr "उपलब्ध प्लेसहोल्डर: {site_title}, {order_number}"
791
 
792
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:229
793
- #: includes/customizer/class-wc-delivered-email-customizer.php:228
794
- #: includes/customizer/class-wc-email-customizer.php:241
795
- #: includes/customizer/class-wc-failure-email-customizer.php:225
796
- #: includes/customizer/class-wc-intransit-email-customizer.php:228
797
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:228
798
- #: includes/customizer/class-wc-returntosender-email-customizer.php:229
799
  msgid "Please enter email subject here"
800
  msgstr "कृपया यहाँ ईमेल विषय दर्ज करें"
801
 
802
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:244
803
- #: includes/customizer/class-wc-delivered-email-customizer.php:243
804
- #: includes/customizer/class-wc-email-customizer.php:257
805
- #: includes/customizer/class-wc-failure-email-customizer.php:240
806
- #: includes/customizer/class-wc-intransit-email-customizer.php:243
807
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:243
808
- #: includes/customizer/class-wc-returntosender-email-customizer.php:244
809
- #: includes/emails/class-shipment-delivered-email.php:250
810
- msgid "Email heading"
811
- msgstr "ईमेल हेडिंग"
812
-
813
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:251
814
- #: includes/customizer/class-wc-delivered-email-customizer.php:250
815
- #: includes/customizer/class-wc-email-customizer.php:264
816
- #: includes/customizer/class-wc-failure-email-customizer.php:247
817
- #: includes/customizer/class-wc-intransit-email-customizer.php:250
818
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:250
819
- #: includes/customizer/class-wc-returntosender-email-customizer.php:251
820
  msgid "Please enter email heading here"
821
  msgstr "कृपया यहां ईमेल हेडिंग दर्ज करें"
822
 
823
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:266
824
- #: includes/customizer/class-wc-delivered-email-customizer.php:265
825
- #: includes/customizer/class-wc-failure-email-customizer.php:262
826
- #: includes/customizer/class-wc-intransit-email-customizer.php:265
827
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:265
828
- #: includes/customizer/class-wc-returntosender-email-customizer.php:266
829
  msgid "Show tracking details"
830
  msgstr ""
831
  "ट्रैकिंग विवरण दिखाएं\n"
832
 
833
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:282
834
- #: includes/customizer/class-wc-delivered-email-customizer.php:281
835
- #: includes/customizer/class-wc-failure-email-customizer.php:278
836
- #: includes/customizer/class-wc-intransit-email-customizer.php:281
837
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:281
838
- #: includes/customizer/class-wc-returntosender-email-customizer.php:282
839
  msgid "Show order details"
840
  msgstr ""
841
  "आदेश का विवरण दिखाएं\n"
842
 
843
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:298
844
- #: includes/customizer/class-wc-delivered-email-customizer.php:297
845
- #: includes/customizer/class-wc-failure-email-customizer.php:294
846
- #: includes/customizer/class-wc-intransit-email-customizer.php:297
847
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:297
848
- #: includes/customizer/class-wc-returntosender-email-customizer.php:298
849
  msgid "Show billing address"
850
  msgstr ""
851
  "बिलिंग पता दिखाएं\n"
852
 
853
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:315
854
- #: includes/customizer/class-wc-delivered-email-customizer.php:314
855
- #: includes/customizer/class-wc-failure-email-customizer.php:311
856
- #: includes/customizer/class-wc-intransit-email-customizer.php:314
857
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:314
858
- #: includes/customizer/class-wc-returntosender-email-customizer.php:315
859
  msgid "Show shipping address"
860
  msgstr ""
861
  "शिपिंग पता दिखाएं\n"
862
 
863
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:331
864
- #: includes/customizer/class-wc-delivered-email-customizer.php:330
865
- #: includes/customizer/class-wc-email-customizer.php:384
866
- #: includes/customizer/class-wc-failure-email-customizer.php:327
867
- #: includes/customizer/class-wc-intransit-email-customizer.php:350
868
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:330
869
- #: includes/customizer/class-wc-returntosender-email-customizer.php:331
870
  msgid "Google Analytics link tracking"
871
  msgstr ""
872
 
873
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:332
874
- #: includes/customizer/class-wc-delivered-email-customizer.php:331
875
- #: includes/customizer/class-wc-failure-email-customizer.php:328
876
- #: includes/customizer/class-wc-intransit-email-customizer.php:351
877
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:331
878
- #: includes/customizer/class-wc-returntosender-email-customizer.php:332
879
  msgid "This will be appended to URL in the email content"
880
  msgstr ""
881
 
882
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:353
883
- #: includes/customizer/class-wc-delivered-email-customizer.php:352
884
- #: includes/customizer/class-wc-email-customizer.php:280
885
- #: includes/customizer/class-wc-failure-email-customizer.php:349
886
- #: includes/customizer/class-wc-intransit-email-customizer.php:331
887
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:352
888
- #: includes/customizer/class-wc-returntosender-email-customizer.php:353
889
  msgid "Email content"
890
  msgstr "ईमेल सामग्री"
891
 
892
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:372
893
- #: includes/customizer/class-wc-delivered-email-customizer.php:372
894
- #: includes/customizer/class-wc-email-customizer.php:405
895
- #: includes/customizer/class-wc-failure-email-customizer.php:369
896
- #: includes/customizer/class-wc-intransit-email-customizer.php:372
897
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:372
898
- #: includes/customizer/class-wc-returntosender-email-customizer.php:373
899
  msgid "Available placeholders"
900
  msgstr ""
901
  "उपलब्ध प्लेसहोल्डर\n"
902
 
903
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:416
904
- #: includes/customizer/class-wc-delivered-email-customizer.php:416
905
- #: includes/customizer/class-wc-email-customizer.php:437
906
- #: includes/customizer/class-wc-failure-email-customizer.php:412
907
- #: includes/customizer/class-wc-intransit-email-customizer.php:415
908
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:415
909
- #: includes/customizer/class-wc-returntosender-email-customizer.php:417
910
- #: includes/customizer/class-wc-tracking-info-customizer.php:730
911
- msgid "Please select preview order."
912
  msgstr ""
913
- "कृपया पूर्वावलोकन क्रम का चयन करें।\n"
914
 
915
- #: includes/customizer/class-wc-delivered-email-customizer.php:114
916
  msgid "Your order #{order_number} has been delivered"
917
  msgstr ""
918
 
919
- #: includes/customizer/class-wc-delivered-email-customizer.php:116
920
  msgid ""
921
  "Hi there. we thought you'd like to know that your recent order from "
922
  "{site_title} has been Delivered."
@@ -924,96 +808,92 @@ msgstr ""
924
  "नमस्ते। हमने सोचा कि आप जानना चाहते हैं कि {site_title} से आपका हालिया ऑर्डर "
925
  "डिलीवर हो गया है।\n"
926
 
927
- #: includes/customizer/class-wc-delivered-email-customizer.php:147
928
  msgid "Delivered shipment status email"
929
  msgstr ""
930
  "शिपमेंट स्थिति ईमेल वितरित किया गया\n"
931
 
932
- #: includes/customizer/class-wc-delivered-email-customizer.php:162
933
  msgid "Enable Delivered shipment status email"
934
  msgstr ""
935
  "वितरित शिपमेंट स्थिति ईमेल सक्षम करें\n"
936
 
937
- #: includes/customizer/class-wc-email-customizer.php:122
938
- #: includes/emails/class-shipment-delivered-email.php:92
939
  msgid "Your {site_title} order is now delivered"
940
  msgstr ""
941
  "अब आपका {site_title} ऑर्डर डिलीवर हो गया है\n"
942
 
943
- #: includes/customizer/class-wc-email-customizer.php:123
944
- #: includes/emails/class-shipment-delivered-email.php:102
945
  msgid "Thanks for shopping with us"
946
  msgstr ""
947
  "हमारे साथ खरीदारी करने के लिए धन्यवाद\n"
948
 
949
- #: includes/customizer/class-wc-email-customizer.php:124
950
  msgid "Hi there. Your recent order on {site_title} has been delivered."
951
  msgstr ""
952
  "नमस्ते। {Site_title} पर आपका हालिया आदेश वितरित कर दिया गया है।\n"
953
 
954
- #: includes/customizer/class-wc-email-customizer.php:171
955
  msgid "Enable Delivered order status email"
956
  msgstr ""
957
  "वितरित आदेश स्थिति ईमेल सक्षम करें\n"
958
 
959
- #: includes/customizer/class-wc-email-customizer.php:193
960
- #: includes/customizer/class-wc-tracking-info-customizer.php:165
961
  msgid "Please select a order..."
962
  msgstr ""
963
  "कृपया एक आदेश चुनें ...\n"
964
 
965
- #: includes/customizer/class-wc-email-customizer.php:211
966
- msgid "Receipts"
967
- msgstr ""
968
-
969
- #: includes/customizer/class-wc-email-customizer.php:212
970
  msgid ""
971
  "Enter emails use variables such as {customer_email}. Multiple emails can be "
972
  "separated by commas."
973
  msgstr ""
974
 
975
- #: includes/customizer/class-wc-email-customizer.php:235
976
- #: includes/customizer/class-wc-email-customizer.php:258
977
  msgid "Available variables: {site_title}, {order_number}"
978
  msgstr ""
979
 
980
- #: includes/customizer/class-wc-email-customizer.php:281
981
  msgid ""
982
  "available variables: {site_title}, {customer_email}, {customer_first_name}, "
983
  "{customer_last_name}, {customer_username}, {order_number}"
984
  msgstr ""
985
 
986
- #: includes/customizer/class-wc-email-customizer.php:300
987
  msgid "Display tracking details"
988
  msgstr ""
989
 
990
- #: includes/customizer/class-wc-email-customizer.php:316
991
  msgid "Display order details"
992
  msgstr ""
993
 
994
- #: includes/customizer/class-wc-email-customizer.php:333
995
  msgid "Display Shipping Address"
996
  msgstr ""
997
 
998
- #: includes/customizer/class-wc-email-customizer.php:350
999
  msgid "Display Billing Address"
1000
  msgstr ""
1001
 
1002
- #: includes/customizer/class-wc-email-customizer.php:367
1003
  msgid "Enable Google Analytics tracking"
1004
  msgstr ""
1005
 
1006
- #: includes/customizer/class-wc-email-customizer.php:385
1007
  msgid ""
1008
  "This will be appended to URL in the email content – e.g. "
1009
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
1010
  msgstr ""
1011
 
1012
- #: includes/customizer/class-wc-failure-email-customizer.php:112
1013
  msgid "Your order #{order_number} is Failed Attempt"
1014
  msgstr "आपका आदेश # {order_number} विफल है"
1015
 
1016
- #: includes/customizer/class-wc-failure-email-customizer.php:114
1017
  msgid ""
1018
  "Hi there. we thought you'd like to know that your recent order from "
1019
  "{site_title} is Failed Attempt"
@@ -1021,20 +901,20 @@ msgstr ""
1021
  "नमस्ते। हमने सोचा कि आप जानना चाहते हैं कि {site_title} से आपका हालिया आदेश "
1022
  "विफल है"
1023
 
1024
- #: includes/customizer/class-wc-failure-email-customizer.php:144
1025
  msgid "Failed Attempt shipment status email"
1026
  msgstr "असफल शिपमेंट स्थिति ईमेल"
1027
 
1028
- #: includes/customizer/class-wc-failure-email-customizer.php:159
1029
  msgid "Enable Failed Attempt shipment status email"
1030
  msgstr "असफल शिपमेंट स्थिति ईमेल सक्षम करें"
1031
 
1032
- #: includes/customizer/class-wc-intransit-email-customizer.php:114
1033
  msgid "Your order #{order_number} is in transit"
1034
  msgstr ""
1035
  "आपका आदेश # {order_number} पारगमन में है\n"
1036
 
1037
- #: includes/customizer/class-wc-intransit-email-customizer.php:116
1038
  msgid ""
1039
  "Hi there. we thought you'd like to know that your recent order from "
1040
  "{site_title} is in transit"
@@ -1042,22 +922,22 @@ msgstr ""
1042
  "नमस्ते। हमने सोचा कि आप जानना चाहेंगे कि आपका हालिया आदेश {site_title} से "
1043
  "पारगमन में है\n"
1044
 
1045
- #: includes/customizer/class-wc-intransit-email-customizer.php:146
1046
  msgid "In Transit shipment status email"
1047
  msgstr ""
1048
  "ट्रांजिट शिपमेंट स्थिति ईमेल में\n"
1049
 
1050
- #: includes/customizer/class-wc-intransit-email-customizer.php:161
1051
  msgid "Enable In Transit shipment status email"
1052
  msgstr ""
1053
  "ट्रांजिट शिपमेंट स्थिति ईमेल में सक्षम करें\n"
1054
 
1055
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:114
1056
  msgid "Your order #{order_number} is out for delivery"
1057
  msgstr ""
1058
  "आपका ऑर्डर # {order_number} डिलीवरी के लिए है\n"
1059
 
1060
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:116
1061
  msgid ""
1062
  "Hi there. we thought you'd like to know that your recent order from "
1063
  "{site_title} is out for delivery."
@@ -1065,21 +945,21 @@ msgstr ""
1065
  "नमस्ते। हमने सोचा कि आप जानना चाहते हैं कि {site_title} से आपका हालिया ऑर्डर "
1066
  "डिलीवरी के लिए है।\n"
1067
 
1068
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:147
1069
  msgid "Out For Delivery shipment status email"
1070
  msgstr ""
1071
  "डिलीवरी शिपमेंट स्थिति ईमेल के लिए\n"
1072
 
1073
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:162
1074
  msgid "Enable Out For Delivery shipment status email"
1075
  msgstr "वितरण शिपमेंट स्थिति ईमेल के लिए सक्षम करें"
1076
 
1077
- #: includes/customizer/class-wc-returntosender-email-customizer.php:115
1078
  msgid "Your order #{order_number} has returned to sender"
1079
  msgstr ""
1080
  "आपका आदेश # {order_number} प्रेषक को वापस आ गया है\n"
1081
 
1082
- #: includes/customizer/class-wc-returntosender-email-customizer.php:117
1083
  msgid ""
1084
  "Hi there. we thought you'd like to know that your recent order from "
1085
  "{site_title} has been returned to sender."
@@ -1087,37 +967,35 @@ msgstr ""
1087
  "नमस्ते। हमने सोचा था कि आप यह जानना चाहेंगे कि आपका हालिया आदेश {site_title} "
1088
  "से प्रेषक को वापस कर दिया गया है।\n"
1089
 
1090
- #: includes/customizer/class-wc-returntosender-email-customizer.php:148
1091
  msgid "Return To Sender shipment status email"
1092
  msgstr ""
1093
  "प्रेषक शिपमेंट स्थिति ईमेल पर लौटें\n"
1094
 
1095
- #: includes/customizer/class-wc-returntosender-email-customizer.php:163
1096
  msgid "Enable Return To Sender shipment status email"
1097
  msgstr "प्रेषक शिपमेंट स्थिति ईमेल पर वापसी सक्षम करें"
1098
 
1099
- #: includes/customizer/class-wc-tracking-info-customizer.php:134
1100
- #: includes/customizer/class-wc-tracking-info-customizer.php:301
1101
- #: includes/views/html-tracking-info-design-preview.php:45
1102
- #: templates/emails/tracking-info.php:110 templates/myaccount/view-order.php:89
1103
  msgid "Provider"
1104
  msgstr "प्रदाता"
1105
 
1106
- #: includes/customizer/class-wc-tracking-info-customizer.php:135
1107
- #: includes/customizer/class-wc-tracking-info-customizer.php:323
1108
- #: includes/views/html-tracking-info-design-preview.php:46
1109
- #: templates/emails/tracking-info.php:134
1110
- #: templates/myaccount/view-order.php:111
1111
  msgid "Tracking Number"
1112
  msgstr "खोज संख्या"
1113
 
1114
- #: includes/customizer/class-wc-tracking-info-customizer.php:136
1115
- #: includes/customizer/class-wc-tracking-info-customizer.php:344
1116
  msgid "Shipped Date"
1117
  msgstr ""
1118
  "भेजने की तिथि\n"
1119
 
1120
- #: includes/customizer/class-wc-tracking-info-customizer.php:162
1121
  msgid ""
1122
  "select from last 20 orders one order that you added tracking info in order "
1123
  "to preview and design the tracking info table."
@@ -1125,198 +1003,148 @@ msgstr ""
1125
  "पिछले 20 आदेशों में से एक आदेश चुनें जिसे आपने ट्रैकिंग जानकारी जोड़ी और "
1126
  "ट्रैकिंग जानकारी तालिका का पूर्वावलोकन और डिज़ाइन करने के लिए जोड़ा।\n"
1127
 
1128
- #: includes/customizer/class-wc-tracking-info-customizer.php:182
 
 
 
 
 
 
1129
  msgid "Tracking Display Position"
1130
  msgstr "ट्रैकिंग प्रदर्शन की स्थिति"
1131
 
1132
- #: includes/customizer/class-wc-tracking-info-customizer.php:186
1133
  msgid "Before Order Details"
1134
  msgstr "आदेश विवरण से पहले"
1135
 
1136
- #: includes/customizer/class-wc-tracking-info-customizer.php:187
1137
  msgid "After Order Details"
1138
  msgstr "आदेश विवरण के बाद"
1139
 
1140
- #: includes/customizer/class-wc-tracking-info-customizer.php:202
1141
  msgid "Main Header text"
1142
  msgstr "मुख्य हैडर पाठ"
1143
 
1144
- #: includes/customizer/class-wc-tracking-info-customizer.php:209
1145
- #: templates/pip/tracking-info.php:17
1146
  msgid "Tracking Information"
1147
  msgstr "ट्रैकिंग जानकारी"
1148
 
1149
- #: includes/customizer/class-wc-tracking-info-customizer.php:224
1150
  msgid "Additional text after header"
1151
  msgstr "हेडर के बाद अतिरिक्त पाठ"
1152
 
1153
- #: includes/customizer/class-wc-tracking-info-customizer.php:245
1154
- msgid "Table Layout"
1155
- msgstr "टेबल लेआउट"
1156
 
1157
- #: includes/customizer/class-wc-tracking-info-customizer.php:260
1158
  msgid "Display Shipment Provider image"
1159
  msgstr "शिपमेंट प्रदाता छवि प्रदर्शित करें"
1160
 
1161
- #: includes/customizer/class-wc-tracking-info-customizer.php:277
1162
  msgid "Hide date"
1163
  msgstr "तारीख छिपाएं"
1164
 
1165
- #: includes/customizer/class-wc-tracking-info-customizer.php:294
 
 
 
 
 
 
 
 
1166
  msgid "Provider Header Text"
1167
  msgstr "प्रदाता हैडर पाठ"
1168
 
1169
- #: includes/customizer/class-wc-tracking-info-customizer.php:316
1170
  msgid "Tracking Number Header Text"
1171
  msgstr "ट्रैकिंग नंबर हैडर पाठ"
1172
 
1173
- #: includes/customizer/class-wc-tracking-info-customizer.php:337
1174
  msgid "Shipped Date Header Text"
1175
  msgstr "भेज दिया गया हैडर पाठ"
1176
 
1177
- #: includes/customizer/class-wc-tracking-info-customizer.php:358
1178
  msgid "Track Label"
1179
  msgstr ""
1180
  "ट्रैक लेबल\n"
1181
 
1182
- #: includes/customizer/class-wc-tracking-info-customizer.php:374
1183
  msgid "Track Header Text"
1184
  msgstr "ट्रैक हैडर पाठ"
1185
 
1186
- #: includes/customizer/class-wc-tracking-info-customizer.php:396
 
 
 
 
 
 
 
 
1187
  msgid "Table Design"
1188
  msgstr ""
1189
  "टेबल डिजाइन\n"
1190
 
1191
- #: includes/customizer/class-wc-tracking-info-customizer.php:411
1192
  msgid "Padding"
1193
  msgstr ""
1194
  "गद्दी\n"
1195
 
1196
- #: includes/customizer/class-wc-tracking-info-customizer.php:431
1197
  msgid "Background color"
1198
  msgstr ""
1199
  "पीछे का रंग\n"
1200
 
1201
- #: includes/customizer/class-wc-tracking-info-customizer.php:459
1202
  msgid "Border color"
1203
  msgstr ""
1204
  "किनारे का रंग\n"
1205
 
1206
- #: includes/customizer/class-wc-tracking-info-customizer.php:475
1207
  msgid "Border size"
1208
  msgstr ""
1209
  "सीमा का आकार\n"
1210
 
1211
- #: includes/customizer/class-wc-tracking-info-customizer.php:479
1212
- #: includes/customizer/class-wc-tracking-info-customizer.php:503
1213
- #: includes/customizer/class-wc-tracking-info-customizer.php:511
1214
- msgid "Select"
1215
- msgstr "चुनते हैं"
1216
-
1217
- #: includes/customizer/class-wc-tracking-info-customizer.php:499
1218
  msgid "Table text align"
1219
  msgstr "तालिका पाठ संरेखित करें"
1220
 
1221
- #: includes/customizer/class-wc-tracking-info-customizer.php:504
1222
- msgid "Left"
1223
- msgstr "बाएं"
1224
-
1225
- #: includes/customizer/class-wc-tracking-info-customizer.php:505
1226
- msgid "Right"
1227
- msgstr "दाईं "
1228
-
1229
- #: includes/customizer/class-wc-tracking-info-customizer.php:506
1230
- msgid "Center"
1231
- msgstr "केंद्र"
1232
-
1233
- #: includes/customizer/class-wc-tracking-info-customizer.php:525
1234
- msgid "Table header font size"
1235
- msgstr "टेबल हेडर फ़ॉन्ट आकार"
1236
-
1237
- #: includes/customizer/class-wc-tracking-info-customizer.php:544
1238
- msgid "Table header font color"
1239
- msgstr "टेबल हेडर फ़ॉन्ट रंग"
1240
-
1241
- #: includes/customizer/class-wc-tracking-info-customizer.php:560
1242
  msgid "Table content font size"
1243
  msgstr "तालिका सामग्री फ़ॉन्ट आकार"
1244
 
1245
- #: includes/customizer/class-wc-tracking-info-customizer.php:577
1246
  msgid "Table content font color"
1247
  msgstr "तालिका सामग्री फ़ॉन्ट रंग"
1248
 
1249
- #: includes/customizer/class-wc-tracking-info-customizer.php:593
1250
  msgid "Content line height"
1251
  msgstr ""
1252
  "सामग्री लाइन ऊंचाई\n"
1253
 
1254
- #: includes/customizer/class-wc-tracking-info-customizer.php:614
1255
  msgid "Content font weight"
1256
  msgstr ""
1257
  "सामग्री फ़ॉन्ट वजन\n"
1258
 
1259
- #: includes/customizer/class-wc-tracking-info-customizer.php:636
1260
- msgid "Track Link"
1261
- msgstr "ट्रैक लिंक"
1262
 
1263
- #: includes/customizer/class-wc-tracking-info-customizer.php:650
1264
  msgid "Track Link Font Color"
1265
  msgstr "ट्रैक लिंक फ़ॉन्ट रंग"
1266
 
1267
- #: includes/customizer/class-wc-tracking-info-customizer.php:666
1268
  msgid "Track Link Background Color"
1269
  msgstr "ट्रैक लिंक बैकग्राउंड कलर"
1270
 
1271
- #: includes/customizer/class-wc-tracking-info-customizer.php:681
1272
  msgid "Track link Border"
1273
  msgstr "ट्रैक लिंक बॉर्डर"
1274
 
1275
- #: includes/customizer/class-wc-tracking-page-customizer.php:167
1276
- msgid "Header Color"
1277
- msgstr ""
1278
- "हैडर रंग\n"
1279
-
1280
- #: includes/customizer/class-wc-tracking-page-customizer.php:183
1281
- msgid "Success Status Color"
1282
- msgstr ""
1283
- "सफलता की स्थिति रंग\n"
1284
-
1285
- #: includes/customizer/class-wc-tracking-page-customizer.php:199
1286
- msgid "Warning Status Color"
1287
- msgstr ""
1288
- "चेतावनी स्थिति रंग\n"
1289
-
1290
- #: includes/customizer/class-wc-tracking-page-customizer.php:215
1291
- msgid "Tracking info Border Color"
1292
- msgstr ""
1293
- "ट्रैकिंग बॉर्डर रंग\n"
1294
-
1295
- #: includes/customizer/class-wc-tracking-page-customizer.php:230
1296
- msgid "Tracking info width (px)"
1297
- msgstr ""
1298
- "ट्रैकिंग जानकारी चौड़ाई (px)\n"
1299
-
1300
- #: includes/customizer/class-wc-tracking-page-customizer.php:250
1301
- msgid "Tracking details Border Color"
1302
- msgstr ""
1303
- "ट्रैकिंग विवरण सीमा रंग\n"
1304
-
1305
- #: includes/customizer/class-wc-tracking-page-customizer.php:265
1306
- msgid "Tracking info table shade color"
1307
- msgstr ""
1308
- "ट्रैकिंग टेबल शेड का रंग\n"
1309
-
1310
- #: includes/customizer/class-wc-tracking-page-customizer.php:280
1311
- msgid "Tracking events font color"
1312
- msgstr ""
1313
- "ट्रैकिंग इवेंट्स फ़ॉन्ट रंग\n"
1314
-
1315
- #: includes/customizer/class-wc-tracking-page-customizer.php:295
1316
- msgid "Tracking info table margin top/bottom(px)"
1317
- msgstr ""
1318
- "ट्रैकिंग जानकारी टेबल मार्जिन टॉप / बॉटम (px)\n"
1319
-
1320
  #: includes/emails/class-shipment-delivered-email.php:32
1321
  msgid "Delivered order"
1322
  msgstr ""
@@ -1327,52 +1155,19 @@ msgid ""
1327
  "delivered and usually indicate that their orders have been shipped."
1328
  msgstr ""
1329
 
1330
- #: includes/emails/class-shipment-delivered-email.php:228
1331
- msgid "Enable this email notification"
1332
- msgstr ""
1333
-
1334
- #: includes/emails/class-shipment-delivered-email.php:232
1335
- msgid "Recipient(s)"
1336
- msgstr ""
1337
-
1338
- #. %s: WP admin email
1339
- #: includes/emails/class-shipment-delivered-email.php:235
1340
- #, php-format
1341
- msgid "Enter recipients (comma separated) for this email. Defaults to %s."
1342
- msgstr ""
1343
-
1344
- #: includes/emails/class-shipment-delivered-email.php:241
1345
- msgid "Subject"
1346
- msgstr ""
1347
-
1348
- #. %s: list of placeholders
1349
- #: includes/emails/class-shipment-delivered-email.php:245
1350
- #: includes/emails/class-shipment-delivered-email.php:254
1351
- #, php-format
1352
- msgid "Available placeholders: %s"
1353
- msgstr ""
1354
-
1355
- #: includes/emails/class-shipment-delivered-email.php:259
1356
- msgid "Email type"
1357
- msgstr ""
1358
-
1359
- #: includes/emails/class-shipment-delivered-email.php:261
1360
- msgid "Choose which format of email to send."
1361
  msgstr ""
1362
 
1363
- #: includes/emails/class-shipment-delivered-email.php:269
1364
- msgid "\" >Click Here</a>"
1365
- msgstr ""
1366
-
1367
- #: includes/emails/class-shipment-delivered-email.php:270
1368
  msgid "Edit in customizer"
1369
  msgstr ""
1370
 
1371
- #: includes/views/admin_options_bulk_upload.php:5
1372
  msgid "Upload CSV"
1373
  msgstr "CSV अपलोड करें"
1374
 
1375
- #: includes/views/admin_options_bulk_upload.php:15
1376
  msgid ""
1377
  "Replace tracking info if exists? (if not checked, the tracking info will be "
1378
  "added)"
@@ -1380,156 +1175,204 @@ msgstr ""
1380
  "यदि मौजूद है तो ट्रैकिंग जानकारी बदलें? (यदि जांच नहीं की गई है, तो ट्रैकिंग "
1381
  "जानकारी जोड़ी जाएगी)"
1382
 
1383
- #: includes/views/admin_options_bulk_upload.php:25
1384
- #: includes/views/admin_options_shipping_provider.php:112
1385
- #: includes/views/admin_options_shipping_provider.php:146
1386
  msgid "Upload"
1387
  msgstr "अपलोड"
1388
 
1389
- #: includes/views/admin_options_bulk_upload.php:28
1390
- #: includes/views/admin_options_trackship_integration.php:27
1391
- #: includes/views/admin_options_trackship_integration.php:45
1392
  msgid "Settings Saved."
1393
  msgstr "सेटिंग्स को सहेजा गया।"
1394
 
1395
- #: includes/views/admin_options_bulk_upload.php:34
 
 
 
 
 
 
 
 
1396
  msgid "You can download an example of the csv file:"
1397
  msgstr "आप csv फ़ाइल का एक उदाहरण डाउनलोड कर सकते हैं:"
1398
 
1399
- #: includes/views/admin_options_bulk_upload.php:35
1400
  msgid "Download sample csv file"
1401
  msgstr "नमूना csv फ़ाइल डाउनलोड करें"
1402
 
1403
- #: includes/views/admin_options_bulk_upload.php:36
1404
  msgid ""
1405
  "For detailed instructions on how to upload tracking info in bulk, see our"
1406
  msgstr ""
1407
  "थोक में ट्रैकिंग जानकारी कैसे अपलोड करें, इस बारे में विस्तृत निर्देशों के "
1408
  "लिए, देखें"
1409
 
1410
- #: includes/views/admin_options_bulk_upload.php:36
1411
- msgid "documentation"
1412
- msgstr "प्रलेखन"
 
 
 
1413
 
1414
- #: includes/views/admin_options_bulk_upload.php:38
1415
- msgid "Upload Progress - "
1416
- msgstr "अपलोड प्रगति -"
1417
 
1418
- #: includes/views/admin_options_settings.php:7
1419
- #: includes/views/admin_options_trackship_integration.php:10
1420
- msgid "General"
1421
- msgstr "सामान्य"
 
 
 
1422
 
1423
- #: includes/views/admin_options_settings.php:10
1424
- #: includes/views/admin_options_settings.php:19
1425
  msgid "Delivered Order Status"
1426
  msgstr "वितरित स्थिति"
1427
 
1428
- #: includes/views/admin_options_settings.php:12
1429
- msgid "Tracking Info Display Designer"
1430
  msgstr ""
1431
- "ट्रैकिंग जानकारी प्रदर्शित डिजाइनर\n"
1432
 
1433
- #: includes/views/admin_options_settings.php:15
1434
- #: includes/views/admin_options_trackship_integration.php:19
1435
- msgid "General Settings"
1436
- msgstr "सामान्य सेटिंग्स"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1437
 
1438
- #: includes/views/admin_options_settings.php:24
1439
- #: includes/views/admin_options_trackship_integration.php:25
1440
- #: includes/views/admin_options_trackship_integration.php:43
1441
- msgid "Save"
1442
- msgstr "बचाना"
 
 
 
 
 
 
 
 
 
 
1443
 
1444
- #: includes/views/admin_options_shipping_provider.php:94
1445
  msgid "Add Custom Shipping Provider"
1446
  msgstr "कस्टम शिपिंग प्रदाता जोड़ें"
1447
 
1448
- #: includes/views/admin_options_shipping_provider.php:101
1449
- #: includes/views/admin_options_shipping_provider.php:135
1450
- msgid "Shiping Country"
1451
- msgstr "शिपिंग देश"
1452
 
1453
- #: includes/views/admin_options_shipping_provider.php:102
1454
- #: includes/views/admin_options_shipping_provider.php:136
1455
  msgid "Global"
1456
  msgstr ""
1457
 
1458
- #: includes/views/admin_options_shipping_provider.php:128
1459
  msgid "Edit Custom Shipping Provider"
1460
  msgstr "कस्टम शिपिंग प्रदाता संपादित करें"
1461
 
1462
- #: includes/views/admin_options_shipping_provider.php:163
1463
- #: includes/views/admin_options_shipping_provider.php:170
1464
- msgid "Sync Providers"
1465
- msgstr "सिंक प्रदाता"
1466
-
1467
- #: includes/views/admin_options_shipping_provider.php:164
1468
- msgid "Do you really want to sync all providers?"
1469
- msgstr "क्या आप वास्तव में सभी प्रदाताओं को सिंक करना चाहते हैं?"
1470
 
1471
- #: includes/views/admin_options_shipping_provider.php:166
1472
  msgid "Providers Added"
1473
  msgstr "प्रदाता जोड़े गए"
1474
 
1475
- #: includes/views/admin_options_shipping_provider.php:167
1476
  msgid "Providers Updated"
1477
  msgstr "प्रदाताओं अद्यतन"
1478
 
1479
- #: includes/views/admin_options_shipping_provider.php:168
1480
  msgid "Providers Deleted"
1481
  msgstr "प्रदाता हटा दिए गए"
1482
 
1483
- #: includes/views/admin_options_shipping_provider.php:171
1484
- msgid "Close"
1485
- msgstr "बंद करे"
 
 
 
 
1486
 
1487
- #: includes/views/admin_options_trackship_integration.php:13
1488
  #: includes/views/admin_options_trackship_integration.php:35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1489
  msgid "Tracking Page"
1490
  msgstr "ट्रैकिंग पृष्ठ"
1491
 
1492
- #: includes/views/admin_options_trackship_integration.php:16
1493
- msgid "Shipment Status Notifications"
1494
- msgstr "शिपमेंट स्थिति अधिसूचनाएँ"
1495
-
1496
- #: includes/views/admin_options_trackship_integration.php:40
1497
  msgid "Click to preview the tracking page"
1498
  msgstr "ट्रैकिंग पृष्ठ का पूर्वावलोकन करने के लिए क्लिक करें"
1499
 
1500
- #: includes/views/admin_options_trackship_integration.php:41
1501
  msgid "PLEASE NOTE - make sure to save your settings before preview."
1502
  msgstr ""
1503
  "कृपया ध्यान दें - पूर्वावलोकन से पहले अपनी सेटिंग्स को सहेजना सुनिश्चित करें।"
1504
 
1505
- #: includes/views/admin_options_trackship_integration.php:53
1506
  msgid "Shipment Status Notifications "
1507
  msgstr "शिपमेंट स्थिति अधिसूचनाएँ"
1508
 
1509
- #: includes/views/admin_options_trackship_integration.php:81
1510
  msgid ""
1511
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1512
  "the way."
1513
  msgstr ""
1514
  "कैरियर ने शिपर से शिपमेंट को स्वीकार या उठाया है। शिपमेंट रास्ते में है।"
1515
 
1516
- #: includes/views/admin_options_trackship_integration.php:95
1517
  msgid "Shipment is returned to sender"
1518
  msgstr "शिपमेंट प्रेषक को वापस कर दिया जाता है"
1519
 
1520
- #: includes/views/admin_options_trackship_integration.php:109
1521
  msgid "The shipment is ready to pickup."
1522
  msgstr "शिपमेंट पिकअप के लिए तैयार है।"
1523
 
1524
- #: includes/views/admin_options_trackship_integration.php:122
1525
  msgid "Carrier is about to deliver the shipment"
1526
  msgstr "वाहक शिपमेंट वितरित करने वाला है"
1527
 
1528
- #: includes/views/admin_options_trackship_integration.php:136
1529
  msgid "The shipment was delivered successfully"
1530
  msgstr "शिपमेंट सफलतापूर्वक वितरित किया गया था"
1531
 
1532
- #: includes/views/admin_options_trackship_integration.php:137
1533
  msgid ""
1534
  "You already have delivered email enabled, to enable this email you'll need "
1535
  "to disable the order status delivered in settings."
@@ -1537,7 +1380,7 @@ msgstr ""
1537
  "आपने पहले ही ईमेल सक्षम कर दिया है, इस ईमेल को सक्षम करने के लिए आपको "
1538
  "सेटिंग्स में दिए गए ऑर्डर की स्थिति को निष्क्रिय करना होगा।"
1539
 
1540
- #: includes/views/admin_options_trackship_integration.php:151
1541
  msgid ""
1542
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1543
  "will try to deliver the package again."
@@ -1545,43 +1388,43 @@ msgstr ""
1545
  "कैरियर देने का प्रयास किया, लेकिन विफल रहा, और आमतौर पर एक नोटिस छोड़ देता "
1546
  "है और पैकेज को फिर से वितरित करने का प्रयास करेगा।"
1547
 
1548
- #: includes/views/html-tracking-info-design-preview.php:60
1549
- msgid "USPS"
1550
- msgstr "USPS"
1551
-
1552
- #: includes/views/zorem_admin_sidebar.php:8
1553
- msgid "Leave your review"
1554
- msgstr ""
1555
-
1556
- #: includes/views/zorem_admin_ts_sidebar.php:5
1557
  msgid "Dashboard"
1558
  msgstr ""
1559
 
1560
- #: includes/views/zorem_admin_ts_sidebar.php:7
1561
- msgid "Documentation"
1562
- msgstr ""
1563
-
1564
- #: templates/emails/tracking-info.php:138
1565
  msgid "Status"
1566
  msgstr "स्थिति"
1567
 
1568
- #: templates/emails/wcast-email-order-details.php:26
1569
  msgid "Order Details"
1570
  msgstr ""
1571
  "ऑर्डर का विवरण\n"
1572
 
1573
  #. %s: Order ID.
1574
- #: templates/emails/wcast-email-order-details.php:42
1575
  #, php-format
1576
  msgid "Order number: %s"
1577
  msgstr ""
1578
  "क्रम संख्या:% s\n"
1579
 
1580
- #: templates/emails/wcast-email-order-details.php:49
1581
  msgid "Order date:"
1582
  msgstr ""
1583
  "आदेश की तारीख:\n"
1584
 
1585
- #: templates/emails/plain/tracking-info.php:18
1586
- msgid "TRACKING INFORMATION"
1587
- msgstr "ट्रैकिंग जानकारी"
 
 
 
 
 
 
 
 
 
 
 
 
2
  msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2019-09-30 12:52+0000\n"
6
+ "PO-Revision-Date: 2019-09-30 12:52+0000\n"
7
  "Last-Translator: gaurav <gaurav1092@zorem.com>\n"
8
  "Language-Team: Hindi\n"
9
  "Language: hi_IN\n"
14
  "X-Generator: Loco https://localise.biz/\n"
15
  "X-Loco-Version: 2.3.0; wp-5.2.3"
16
 
17
+ #: woocommerce-advanced-shipment-tracking.php:113
18
  #, php-format
19
  msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
23
  "कृपया WooCommerce उन्नत शिपमेंट ट्रैकिंग के लिए% sWooCommerce% s को स्थापित "
24
  "और सक्रिय करें!"
25
 
26
+ #: woocommerce-advanced-shipment-tracking.php:210
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:413
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 "
40
  "\"completed\" before deactivating the plugin."
41
  msgstr ""
42
 
43
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:212
44
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1189
45
  msgid "Shipped"
46
  msgstr "भेज दिया"
47
 
48
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:229
49
  #, php-format
50
  msgid "Shipped <span class=\"count\">(%s)</span>"
51
  msgid_plural "Shipped <span class=\"count\">(%s)</span>"
52
  msgstr[0] "भेज दिया गया <span class = \"count\"> (% s) </ span>"
53
  msgstr[1] "भेज दिया गया <span class = \"count\"> (% s) </ span>"
54
 
55
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:243
56
  msgid "Change status to shipped"
57
  msgstr "शिप करने की स्थिति बदलें"
58
 
59
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:253
60
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:282
61
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1712
62
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1924
63
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2369
64
+ #: includes/customizer/class-wcast-customizer.php:106
65
+ #: includes/customizer/class-wc-delivered-email-customizer.php:125
66
+ #: includes/views/admin_options_trackship_integration.php:198
67
  msgid "Delivered"
68
  msgstr "पहुंचा दिया"
69
 
70
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:258
71
  #, php-format
72
  msgid "Delivered <span class=\"count\">(%s)</span>"
73
  msgid_plural "Delivered <span class=\"count\">(%s)</span>"
74
  msgstr[0] "वितरित <span class = \"count\"> (% s) </ span>"
75
  msgstr[1] "वितरित <span class = \"count\"> (% s) </ span>"
76
 
77
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:264
78
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:293
79
  msgid "Updated Tracking"
80
  msgstr "अपडेटेड ट्रैकिंग"
81
 
82
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:269
83
  #, php-format
84
  msgid "Updated Tracking <span class=\"count\">(%s)</span>"
85
  msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
86
  msgstr[0] "अद्यतित ट्रैकिंग <span class = \"count\"> (% s) </ span>"
87
  msgstr[1] "अद्यतित ट्रैकिंग <span class = \"count\"> (% s) </ span>"
88
 
89
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:323
90
  msgid "Change status to delivered"
91
  msgstr "वितरित करने के लिए स्थिति बदलें"
92
 
93
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:530
94
  msgid "Shipment status"
95
  msgstr ""
96
  "नौवहन स्थिति\n"
97
 
98
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:638
99
  msgid ""
100
  "Get Shipment Status is limited to 100 orders at a time, please select up to "
101
  "100 orders."
102
  msgstr ""
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  #: includes/class-wc-advanced-shipment-tracking-admin.php:671
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  msgid "Data saved successfully."
106
  msgstr "डेटा सफलतापूर्वक सहेजा गया।"
107
 
108
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:672
109
  msgid "Really delete this entry? This will not be undo."
110
  msgstr "वास्तव में इस प्रविष्टि को हटा दें? यह पूर्ववत नहीं होगा।"
111
 
112
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:673
113
  msgid "You can upload only csv file."
114
  msgstr "आप केवल csv फ़ाइल अपलोड कर सकते हैं।"
115
 
116
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:674
117
  msgid "This browser does not support HTML5."
118
  msgstr "यह ब्राउज़र HTML5 का समर्थन नहीं करता है।"
119
 
120
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:675
121
  msgid "Please upload a valid CSV file."
122
  msgstr "कृपया एक मान्य CSV फ़ाइल अपलोड करें।"
123
 
124
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:741
 
 
 
 
125
  msgid "Settings"
126
  msgstr "सेटिंग्स"
127
 
128
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:744
129
+ msgid "Shipping Providers"
130
+ msgstr "नौवहन प्रदाता"
131
+
132
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:747
133
  msgid "Bulk Upload"
134
  msgstr "सामूहिक अपलोड"
135
 
136
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:753
137
+ #: includes/views/admin_options_bulk_upload.php:58
138
+ #: includes/views/admin_options_trackship_integration.php:40
139
+ #: includes/views/zorem_admin_ts_sidebar.php:12
140
+ msgid "Documentation"
141
+ msgstr ""
142
+
143
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:754
144
+ msgid "How to Video"
145
  msgstr ""
146
 
147
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:897
148
+ #: includes/views/admin_options_trackship_integration.php:28
149
  msgid "Connected"
150
  msgstr "जुड़े हुए"
151
 
152
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1006
153
+ #, php-format
154
  msgid ""
155
+ "You have %s %s orders from the last 30 days, would you like to bulk send all "
156
+ "these orders to TrackShip?"
157
  msgstr ""
 
 
158
 
159
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1007
160
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1016
161
+ msgid "Get Shipment Status"
 
 
162
  msgstr ""
 
 
163
 
164
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1015
165
  #, php-format
166
+ msgid ""
167
+ "You have %s %s orders from the last 30 days with TrackShip balance is 0 "
168
+ "status, would you like to bulk send all these orders to TrackShip?"
169
+ msgstr ""
 
 
170
 
171
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1053
 
172
  msgid "Enable/Disable"
173
  msgstr "अक्षम सक्षम"
174
 
175
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1059
176
  msgid "Set order status Delivered when order is delivered"
177
  msgstr "ऑर्डर की स्थिति सेट करें जब ऑर्डर दिया जाता है तब वितरित किया गया"
178
 
179
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1091
 
 
 
 
 
 
 
 
 
 
 
180
  msgid ""
181
  "You must add the shortcode [wcast-track-order] to the \"page name\" in order "
182
  "for the tracking page to work."
183
  msgstr ""
184
 
185
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1099
186
  msgid "Select Tracking Page"
187
  msgstr ""
188
  "ट्रैकिंग पृष्ठ का चयन करें\n"
189
 
190
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1107
 
 
 
 
 
191
  msgid "Use the tracking page in the customer email/my account tracking link"
192
  msgstr "ग्राहक ईमेल / मेरे खाता ट्रैकिंग लिंक में ट्रैकिंग पृष्ठ का उपयोग करें"
193
 
194
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1113
195
  msgid "Select primary color for tracking page"
196
  msgstr ""
197
  "ट्रैकिंग पृष्ठ के लिए प्राथमिक रंग चुनें\n"
198
 
199
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1119
200
  msgid "Select content border color for tracking page"
201
  msgstr "ट्रैकिंग पृष्ठ के लिए सामग्री सीमा रंग चुनें"
202
 
203
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1125
204
+ msgid "Hide tracking events details"
205
+ msgstr ""
206
+
207
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1131
208
+ msgid "Remove TrackShip branding"
209
+ msgstr ""
210
+
211
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1190
212
+ msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
213
  msgstr ""
214
 
215
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1191
216
  msgid ""
217
  "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
218
  "will be selected by default when adding tracking info to orders."
219
  msgstr ""
220
 
221
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1194
222
+ msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
 
 
 
 
 
 
223
  msgstr ""
224
 
225
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1195
226
  msgid ""
227
  "This means that the 'mark as <span class='shipped_label'>completed</span>' "
228
  "will be selected by default when adding tracking info to orders."
229
  msgstr ""
230
 
231
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1222
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  msgid "Customer Invoice"
233
  msgstr "ग्राहक का बिल"
234
 
235
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1239
236
+ msgid "Rename the “Completed” Order status to “Shipped”"
237
+ msgstr "\"भेज दिया गया\" ऑर्डर की स्थिति को \"भेज दिया गया\" का नाम दें"
 
 
 
 
238
 
239
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1252
240
+ msgid "On which order status email to include the shipment tracking info?"
241
+ msgstr ""
242
 
243
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1258
244
  msgid "Show tracking info in Invoice"
245
  msgstr "चालान में ट्रैकिंग जानकारी दिखाएं"
246
 
247
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1264
248
  msgid "Show tracking info in Packing Slip"
249
  msgstr "पैकिंग स्लिप में ट्रैकिंग जानकारी दिखाएं"
250
 
251
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1281
252
+ msgid "Enable custom order status “Delivered\""
253
+ msgstr ""
254
 
255
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1282
256
  msgid ""
257
  "if you enable the delivered item, you will have the option to send delivered "
258
  "email notifications."
260
  "यदि आप वितरित आइटम को सक्षम करते हैं, तो आपके पास वितरित ईमेल सूचनाएं भेजने "
261
  "का विकल्प होगा।"
262
 
263
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1288
264
+ msgid "Delivered Label color"
265
+ msgstr ""
266
 
267
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1294
268
+ msgid "Delivered Label font color"
 
 
269
  msgstr ""
 
270
 
271
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1297
272
+ msgid "Light"
 
 
 
 
 
 
 
 
 
 
 
 
273
  msgstr ""
 
 
274
 
275
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1298
276
+ msgid "Dark"
277
+ msgstr ""
278
 
279
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1305
280
+ msgid "Enable the Delivered order status email"
281
+ msgstr ""
282
 
283
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1673
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  msgid "Get shipment status"
285
  msgstr ""
286
  "शिपमेंट स्थिति प्राप्त करें\n"
287
 
288
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1706
289
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2366
290
+ #: includes/customizer/class-wcast-customizer.php:76
291
+ #: includes/customizer/class-wc-intransit-email-customizer.php:127
292
+ #: includes/views/admin_options_trackship_integration.php:143
293
  msgid "In Transit"
294
  msgstr ""
295
  "रास्ते में\n"
296
 
297
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1709
298
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2365
299
+ #: includes/customizer/class-wcast-customizer.php:68
300
  msgid "Pre Transit"
301
  msgstr ""
302
  "पूर्व पारगमन\n"
303
 
304
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1715
305
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2368
306
+ #: includes/customizer/class-wcast-customizer.php:98
307
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
308
+ #: includes/views/admin_options_trackship_integration.php:184
309
+ msgid "Out For Delivery"
310
  msgstr ""
311
  "डिलिवरी के लिए रवाना\n"
312
 
313
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1718
314
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2367
315
+ #: includes/customizer/class-wcast-customizer.php:91
316
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
317
+ #: includes/views/admin_options_trackship_integration.php:171
318
  msgid "Available For Pickup"
319
  msgstr ""
320
  "बटोरने के लिए उपलब्ध\n"
321
 
322
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1721
323
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2373
324
+ #: includes/customizer/class-wcast-customizer.php:84
325
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:124
326
+ #: includes/views/admin_options_trackship_integration.php:157
327
  msgid "Return To Sender"
328
  msgstr ""
329
  "भेजने वाले को वापिस लौटा दें\n"
330
 
331
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1724
332
  msgid "Delivery Failure"
333
  msgstr ""
334
  "वितरण विफल\n"
335
 
336
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1727
337
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2364
338
  msgid "Unknown"
339
  msgstr ""
340
  "अनजान\n"
341
 
342
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1730
343
  msgid "Pending TrackShip"
344
  msgstr ""
345
  "लंबित ट्रैकशिप\n"
346
 
347
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1733
348
  msgid "Invalid Tracking"
349
  msgstr ""
350
  "अमान्य ट्रैकिंग\n"
351
 
352
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1736
353
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2372
354
+ msgid "Carrier Unsupported"
355
+ msgstr ""
356
 
357
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1739
358
  msgid "Invalid User Key"
359
  msgstr ""
360
 
361
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1742
362
+ msgid "Wrong Shipping Provider"
363
+ msgstr ""
364
+
365
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1745
366
+ msgid "Deleted"
367
+ msgstr ""
368
+
369
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1815
370
  msgid "Resend delivered order notification"
371
  msgstr "डिलीट ऑर्डर नोटिफिकेशन"
372
 
373
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1878
374
  msgid "Shipped Order"
375
  msgstr "आदेश भेज दिया"
376
 
377
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1902
378
  msgid "Mark order as delivered"
379
  msgstr "वितरित के रूप में मार्क आदेश"
380
 
381
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1909
382
  msgid "Add Tracking"
383
  msgstr ""
384
 
385
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1936
386
  msgid "Change order status to"
387
  msgstr "ऑर्डर की स्थिति बदलें"
388
 
389
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2039
390
+ #: includes/views/admin_options_shipping_provider.php:95
391
  #, php-format
392
  msgid "You don't have any %s shipping providers."
393
  msgstr "आपके पास कोई% s शिपिंग प्रदाता नहीं हैं।"
394
 
395
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2317
396
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2332
397
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2347
398
  msgid "view details"
399
  msgstr "विवरण देखें"
400
 
401
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2318
402
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2333
403
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2348
404
  msgid "hide details"
405
  msgstr "जानकारी छिपाएँ"
406
 
407
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2370
408
+ #: includes/customizer/class-wcast-customizer.php:114
409
+ #: includes/customizer/class-wc-failure-email-customizer.php:124
410
+ #: includes/views/admin_options_trackship_integration.php:213
 
 
 
 
 
 
 
 
411
  msgid "Failed Attempt"
412
  msgstr "असफल प्रयास"
413
 
414
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2371
415
+ msgid "Cancelled"
416
+ msgstr "रद्द"
417
 
418
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2374
419
+ #: includes/class-wc-advanced-shipment-tracking-front.php:865
 
420
  msgid "Invalid Tracking Number"
421
  msgstr "अवैध ट्रैकिंग नंबर"
422
 
423
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2379
424
  msgid "Filter by shipment status"
425
  msgstr ""
426
 
427
+ #: includes/class-wc-advanced-shipment-tracking-front.php:152
428
  msgid ""
429
  "To track your order please enter your Order ID in the box below and press "
430
  "the \"Track\" button. This was given to you on your receipt and in the "
434
  "दर्ज करें और \"ट्रैक\" बटन दबाएं। यह आपको आपकी रसीद पर दिया गया था और आपको "
435
  "जो पुष्टिकरण ईमेल मिलना चाहिए था।\n"
436
 
437
+ #: includes/class-wc-advanced-shipment-tracking-front.php:153
438
  msgid "Order ID"
439
  msgstr ""
440
  "आदेश कामतत्व\n"
441
 
442
+ #: includes/class-wc-advanced-shipment-tracking-front.php:153
443
+ #: includes/class-wc-advanced-shipment-tracking-front.php:154
444
  msgid "Found in your order confirmation email."
445
  msgstr ""
446
  "आपके आदेश की पुष्टि ईमेल में मिली।\n"
447
 
448
+ #: includes/class-wc-advanced-shipment-tracking-front.php:154
449
  msgid "Order Email"
450
  msgstr ""
451
  "आदेश ईमेल\n"
452
 
453
+ #: includes/class-wc-advanced-shipment-tracking-front.php:157
454
+ #: includes/class-wc-advanced-shipment-tracking.php:265
455
+ #: includes/class-wc-advanced-shipment-tracking.php:662
456
+ #: includes/class-wc-advanced-shipment-tracking.php:785
457
+ #: includes/customizer/class-wc-tracking-info-customizer.php:147
458
+ #: includes/customizer/class-wc-tracking-info-customizer.php:444
459
+ #: templates/emails/tracking-info.php:173
460
+ #: templates/myaccount/view-order.php:125
 
461
  msgid "Track"
462
  msgstr "धावन पथ"
463
 
464
+ #: includes/class-wc-advanced-shipment-tracking-front.php:328
465
+ #: includes/class-wc-advanced-shipment-tracking-front.php:707
466
  #, php-format
467
  msgid "Shipment - %s (out of %s)"
468
  msgstr ""
469
  "शिपमेंट -% s (% s में से)\n"
470
 
471
+ #: includes/class-wc-advanced-shipment-tracking-front.php:332
472
+ #: includes/class-wc-advanced-shipment-tracking-front.php:711
473
  msgid "Order: "
474
  msgstr "आदेश:"
475
 
476
+ #: includes/class-wc-advanced-shipment-tracking-front.php:341
477
+ #: includes/class-wc-advanced-shipment-tracking-front.php:345
478
+ #: includes/class-wc-advanced-shipment-tracking-front.php:720
479
+ #: includes/class-wc-advanced-shipment-tracking-front.php:724
480
  msgid "Estimated Delivery Date: "
481
  msgstr "अनुमानित प्रसव तिथि:"
482
 
483
+ #: includes/class-wc-advanced-shipment-tracking-front.php:454
484
+ #: includes/class-wc-advanced-shipment-tracking-front.php:834
485
  msgid "Tracking Details"
486
  msgstr "ट्रैकिंग विवरण"
487
 
488
+ #: includes/class-wc-advanced-shipment-tracking-front.php:473
489
+ #: includes/class-wc-advanced-shipment-tracking-front.php:853
490
  msgid "view more"
491
  msgstr "और देखो"
492
 
493
+ #: includes/class-wc-advanced-shipment-tracking-front.php:474
494
+ #: includes/class-wc-advanced-shipment-tracking-front.php:854
495
  msgid "view less"
496
  msgstr "कम देखें"
497
 
498
+ #: includes/class-wc-advanced-shipment-tracking-front.php:482
499
+ msgid "Tracking details not found in TrackShip"
 
 
 
 
500
  msgstr ""
 
 
501
 
502
+ #: includes/class-wc-advanced-shipment-tracking.php:95
503
+ #: includes/class-wc-advanced-shipment-tracking.php:249
504
+ #: includes/customizer/class-wcast-customizer.php:31
505
  msgid "Shipment Tracking"
506
  msgstr "नौवहन पर नज़र रखना"
507
 
508
+ #: includes/class-wc-advanced-shipment-tracking.php:184
509
+ #: includes/class-wc-advanced-shipment-tracking.php:359
510
+ msgid "Mark as Shipped?"
511
  msgstr ""
512
 
513
+ #: includes/class-wc-advanced-shipment-tracking.php:186
514
+ #: includes/class-wc-advanced-shipment-tracking.php:361
515
+ msgid "Mark as Completed?"
516
  msgstr ""
517
 
518
+ #: includes/class-wc-advanced-shipment-tracking.php:191
519
  msgid "Add Tracking Number"
520
  msgstr ""
521
 
522
+ #: includes/class-wc-advanced-shipment-tracking.php:196
523
+ #: includes/class-wc-advanced-shipment-tracking.php:377
524
  msgid "Provider:"
525
  msgstr "प्रदाता:"
526
 
527
+ #: includes/class-wc-advanced-shipment-tracking.php:216
528
+ #: includes/class-wc-advanced-shipment-tracking.php:415
529
  msgid "Tracking number:"
530
  msgstr "खोज संख्या:"
531
 
532
+ #: includes/class-wc-advanced-shipment-tracking.php:222
533
+ #: includes/class-wc-advanced-shipment-tracking.php:423
534
  msgid "Date shipped:"
535
  msgstr "जिस तारीख पर भेजा गया:"
536
 
537
+ #: includes/class-wc-advanced-shipment-tracking.php:223
538
+ #: includes/class-wc-advanced-shipment-tracking.php:226
539
+ #: includes/class-wc-advanced-shipment-tracking.php:424
540
+ #: includes/class-wc-advanced-shipment-tracking.php:427
541
+ msgid "Y-m-d"
542
+ msgstr ""
543
+
544
+ #: includes/class-wc-advanced-shipment-tracking.php:265
545
  msgid "Click here to track your shipment"
546
  msgstr "अपने शिपमेंट को ट्रैक करने के लिए यहां क्लिक करें"
547
 
548
  #. 1: shipping date
549
+ #: includes/class-wc-advanced-shipment-tracking.php:273
 
550
  #, php-format
551
  msgid "Shipped on %s"
552
  msgstr "% S पर भेज दिया गया"
553
 
554
+ #: includes/class-wc-advanced-shipment-tracking.php:373
 
 
 
 
555
  msgid "Add Tracking Info"
556
  msgstr "ट्रैकिंग जानकारी जोड़ें"
557
 
558
+ #: includes/class-wc-advanced-shipment-tracking.php:378
559
  msgid "Select Provider"
560
  msgstr "Select Provider"
561
 
562
+ #: includes/class-wc-advanced-shipment-tracking.php:438
563
  msgid "Save Tracking"
564
  msgstr "ट्रैकिंग सहेजें"
565
 
566
+ #: includes/class-wc-advanced-shipment-tracking.php:439
567
  msgid "Preview:"
568
  msgstr "पूर्वावलोकन:"
569
 
570
+ #: includes/class-wc-advanced-shipment-tracking.php:439
571
  msgid "Click here to track shipment"
572
  msgstr "शिपमेंट को ट्रैक करने के लिए यहां क्लिक करें"
573
 
574
+ #: includes/class-wc-advanced-shipment-tracking.php:636
575
+ #, php-format
576
+ msgid ""
577
+ "Tracking info was deleted for tracking provider %s with tracking number %s"
578
+ msgstr ""
579
+
580
+ #: includes/class-wc-advanced-shipment-tracking.php:976
581
+ #, php-format
582
+ msgid "Order was shipped with %s and tracking number is: %s"
583
+ msgstr ""
584
+
585
+ #: includes/customizer/class-wcast-customizer.php:40
586
  msgid "Shipment Status Emails"
587
  msgstr "शिपमेंट स्थिति ईमेल"
588
 
589
+ #: includes/customizer/class-wcast-customizer.php:52
590
  msgid "Tracking info display"
591
  msgstr ""
592
  "ट्रैकिंग जानकारी प्रदर्शित करें\n"
593
 
594
+ #: includes/customizer/class-wcast-customizer.php:60
595
+ #: includes/customizer/class-wc-email-customizer.php:163
596
+ msgid "Delivered order status email"
 
 
 
 
 
 
597
  msgstr ""
598
+ "वितरित स्थिति स्थिति ईमेल\n"
599
 
600
+ #: includes/customizer/class-wcast-customizer.php:369
601
  msgid "Select order to preview"
602
  msgstr ""
603
  "पूर्वावलोकन करने के लिए आदेश का चयन करें\n"
604
 
605
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:123
606
  msgid "Your order #{order_number} is available for pickup"
607
  msgstr ""
608
  "पिकअप के लिए आपका ऑर्डर # {order_number} उपलब्ध है\n"
609
 
610
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:125
611
  msgid ""
612
  "Hi there. we thought you'd like to know that your recent order from "
613
  "{site_title} is available for pickup."
615
  "नमस्ते। हमने सोचा था कि आप जानना चाहते हैं कि {site_title} से आपका हालिया "
616
  "ऑर्डर पिकअप के लिए उपलब्ध है।\n"
617
 
618
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:156
619
  msgid "Available For Pickup shipment status email"
620
  msgstr ""
621
  "पिकअप शिपमेंट स्थिति ईमेल के लिए उपलब्ध है\n"
622
 
623
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:157
624
+ #: includes/customizer/class-wc-delivered-email-customizer.php:158
625
+ #: includes/customizer/class-wc-email-customizer.php:164
626
+ #: includes/customizer/class-wc-failure-email-customizer.php:157
627
+ #: includes/customizer/class-wc-intransit-email-customizer.php:160
628
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
629
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:157
630
  msgid "This section lets you customize the Email Content."
631
  msgstr ""
632
  "यह अनुभाग आपको ईमेल सामग्री को अनुकूलित करने देता है।\n"
633
 
634
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:171
635
  msgid "Enable Available For Pickup shipment status email"
636
  msgstr "पिकअप शिपमेंट स्थिति ईमेल के लिए उपलब्ध सक्षम करें"
637
 
638
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:187
639
+ #: includes/customizer/class-wc-delivered-email-customizer.php:188
640
+ #: includes/customizer/class-wc-email-customizer.php:197
641
+ #: includes/customizer/class-wc-failure-email-customizer.php:187
642
+ #: includes/customizer/class-wc-intransit-email-customizer.php:191
643
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
644
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:187
645
+ #: includes/customizer/class-wc-tracking-info-customizer.php:178
646
  msgid "Preview order"
647
  msgstr ""
648
  "पूर्वावलोकन आदेश\n"
649
 
650
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:209
651
+ #: includes/customizer/class-wc-delivered-email-customizer.php:210
652
+ #: includes/customizer/class-wc-failure-email-customizer.php:209
653
+ #: includes/customizer/class-wc-intransit-email-customizer.php:213
654
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:211
655
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:209
 
 
 
 
 
 
 
 
 
656
  msgid ""
657
  "Enter emails here or use variables such as {customer_email}. Multiple emails "
658
  "can be separated by commas."
660
  "यहां ईमेल दर्ज करें या {customer_email} जैसे चर का उपयोग करें। एकाधिक ईमेल "
661
  "अल्पविराम द्वारा अलग किए जा सकते हैं।"
662
 
663
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:215
664
+ #: includes/customizer/class-wc-delivered-email-customizer.php:216
665
+ #: includes/customizer/class-wc-email-customizer.php:226
666
+ #: includes/customizer/class-wc-failure-email-customizer.php:215
667
+ #: includes/customizer/class-wc-intransit-email-customizer.php:219
668
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:217
669
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:215
670
  msgid "E.g. {customer.email}, admin@example.org"
671
  msgstr "जैसे {customer.email}, admin@example.org"
672
 
673
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
674
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
675
+ #: includes/customizer/class-wc-delivered-email-customizer.php:232
676
+ #: includes/customizer/class-wc-delivered-email-customizer.php:254
677
+ #: includes/customizer/class-wc-failure-email-customizer.php:231
678
+ #: includes/customizer/class-wc-failure-email-customizer.php:253
679
+ #: includes/customizer/class-wc-intransit-email-customizer.php:235
680
+ #: includes/customizer/class-wc-intransit-email-customizer.php:257
681
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
682
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
683
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:231
684
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:253
 
 
 
 
 
 
 
 
 
 
685
  msgid "Available placeholders: {site_title}, {order_number}"
686
  msgstr "उपलब्ध प्लेसहोल्डर: {site_title}, {order_number}"
687
 
688
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:237
689
+ #: includes/customizer/class-wc-delivered-email-customizer.php:238
690
+ #: includes/customizer/class-wc-email-customizer.php:249
691
+ #: includes/customizer/class-wc-failure-email-customizer.php:237
692
+ #: includes/customizer/class-wc-intransit-email-customizer.php:241
693
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:239
694
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:237
695
  msgid "Please enter email subject here"
696
  msgstr "कृपया यहाँ ईमेल विषय दर्ज करें"
697
 
698
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:259
699
+ #: includes/customizer/class-wc-delivered-email-customizer.php:260
700
+ #: includes/customizer/class-wc-email-customizer.php:272
701
+ #: includes/customizer/class-wc-failure-email-customizer.php:259
702
+ #: includes/customizer/class-wc-intransit-email-customizer.php:263
703
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:261
704
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:259
 
 
 
 
 
 
 
 
 
 
 
705
  msgid "Please enter email heading here"
706
  msgstr "कृपया यहां ईमेल हेडिंग दर्ज करें"
707
 
708
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
709
+ #: includes/customizer/class-wc-delivered-email-customizer.php:275
710
+ #: includes/customizer/class-wc-failure-email-customizer.php:274
711
+ #: includes/customizer/class-wc-intransit-email-customizer.php:278
712
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:276
713
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:274
714
  msgid "Show tracking details"
715
  msgstr ""
716
  "ट्रैकिंग विवरण दिखाएं\n"
717
 
718
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:290
719
+ #: includes/customizer/class-wc-delivered-email-customizer.php:291
720
+ #: includes/customizer/class-wc-failure-email-customizer.php:290
721
+ #: includes/customizer/class-wc-intransit-email-customizer.php:294
722
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:292
723
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:290
724
  msgid "Show order details"
725
  msgstr ""
726
  "आदेश का विवरण दिखाएं\n"
727
 
728
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:306
729
+ #: includes/customizer/class-wc-delivered-email-customizer.php:307
730
+ #: includes/customizer/class-wc-failure-email-customizer.php:306
731
+ #: includes/customizer/class-wc-intransit-email-customizer.php:310
732
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:308
733
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:306
734
  msgid "Show billing address"
735
  msgstr ""
736
  "बिलिंग पता दिखाएं\n"
737
 
738
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:323
739
+ #: includes/customizer/class-wc-delivered-email-customizer.php:324
740
+ #: includes/customizer/class-wc-failure-email-customizer.php:323
741
+ #: includes/customizer/class-wc-intransit-email-customizer.php:327
742
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:325
743
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:323
744
  msgid "Show shipping address"
745
  msgstr ""
746
  "शिपिंग पता दिखाएं\n"
747
 
748
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
749
+ #: includes/customizer/class-wc-delivered-email-customizer.php:340
750
+ #: includes/customizer/class-wc-email-customizer.php:392
751
+ #: includes/customizer/class-wc-failure-email-customizer.php:339
752
+ #: includes/customizer/class-wc-intransit-email-customizer.php:363
753
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
754
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:339
755
  msgid "Google Analytics link tracking"
756
  msgstr ""
757
 
758
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
759
+ #: includes/customizer/class-wc-delivered-email-customizer.php:341
760
+ #: includes/customizer/class-wc-failure-email-customizer.php:340
761
+ #: includes/customizer/class-wc-intransit-email-customizer.php:364
762
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
763
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:340
764
  msgid "This will be appended to URL in the email content"
765
  msgstr ""
766
 
767
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
768
+ #: includes/customizer/class-wc-delivered-email-customizer.php:362
769
+ #: includes/customizer/class-wc-email-customizer.php:288
770
+ #: includes/customizer/class-wc-failure-email-customizer.php:361
771
+ #: includes/customizer/class-wc-intransit-email-customizer.php:344
772
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
773
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:361
774
  msgid "Email content"
775
  msgstr "ईमेल सामग्री"
776
 
777
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:380
778
+ #: includes/customizer/class-wc-delivered-email-customizer.php:382
779
+ #: includes/customizer/class-wc-email-customizer.php:413
780
+ #: includes/customizer/class-wc-failure-email-customizer.php:381
781
+ #: includes/customizer/class-wc-intransit-email-customizer.php:385
782
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:383
783
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:381
784
  msgid "Available placeholders"
785
  msgstr ""
786
  "उपलब्ध प्लेसहोल्डर\n"
787
 
788
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:427
789
+ #: includes/customizer/class-wc-delivered-email-customizer.php:429
790
+ #: includes/customizer/class-wc-email-customizer.php:446
791
+ #: includes/customizer/class-wc-failure-email-customizer.php:428
792
+ #: includes/customizer/class-wc-intransit-email-customizer.php:431
793
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:429
794
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:427
795
+ #: includes/customizer/class-wc-tracking-info-customizer.php:791
796
+ msgid "Please select order to preview."
797
  msgstr ""
 
798
 
799
+ #: includes/customizer/class-wc-delivered-email-customizer.php:124
800
  msgid "Your order #{order_number} has been delivered"
801
  msgstr ""
802
 
803
+ #: includes/customizer/class-wc-delivered-email-customizer.php:126
804
  msgid ""
805
  "Hi there. we thought you'd like to know that your recent order from "
806
  "{site_title} has been Delivered."
808
  "नमस्ते। हमने सोचा कि आप जानना चाहते हैं कि {site_title} से आपका हालिया ऑर्डर "
809
  "डिलीवर हो गया है।\n"
810
 
811
+ #: includes/customizer/class-wc-delivered-email-customizer.php:157
812
  msgid "Delivered shipment status email"
813
  msgstr ""
814
  "शिपमेंट स्थिति ईमेल वितरित किया गया\n"
815
 
816
+ #: includes/customizer/class-wc-delivered-email-customizer.php:172
817
  msgid "Enable Delivered shipment status email"
818
  msgstr ""
819
  "वितरित शिपमेंट स्थिति ईमेल सक्षम करें\n"
820
 
821
+ #: includes/customizer/class-wc-email-customizer.php:130
822
+ #: includes/emails/class-shipment-delivered-email.php:94
823
  msgid "Your {site_title} order is now delivered"
824
  msgstr ""
825
  "अब आपका {site_title} ऑर्डर डिलीवर हो गया है\n"
826
 
827
+ #: includes/customizer/class-wc-email-customizer.php:131
828
+ #: includes/emails/class-shipment-delivered-email.php:104
829
  msgid "Thanks for shopping with us"
830
  msgstr ""
831
  "हमारे साथ खरीदारी करने के लिए धन्यवाद\n"
832
 
833
+ #: includes/customizer/class-wc-email-customizer.php:132
834
  msgid "Hi there. Your recent order on {site_title} has been delivered."
835
  msgstr ""
836
  "नमस्ते। {Site_title} पर आपका हालिया आदेश वितरित कर दिया गया है।\n"
837
 
838
+ #: includes/customizer/class-wc-email-customizer.php:179
839
  msgid "Enable Delivered order status email"
840
  msgstr ""
841
  "वितरित आदेश स्थिति ईमेल सक्षम करें\n"
842
 
843
+ #: includes/customizer/class-wc-email-customizer.php:201
844
+ #: includes/customizer/class-wc-tracking-info-customizer.php:182
845
  msgid "Please select a order..."
846
  msgstr ""
847
  "कृपया एक आदेश चुनें ...\n"
848
 
849
+ #: includes/customizer/class-wc-email-customizer.php:220
 
 
 
 
850
  msgid ""
851
  "Enter emails use variables such as {customer_email}. Multiple emails can be "
852
  "separated by commas."
853
  msgstr ""
854
 
855
+ #: includes/customizer/class-wc-email-customizer.php:243
856
+ #: includes/customizer/class-wc-email-customizer.php:266
857
  msgid "Available variables: {site_title}, {order_number}"
858
  msgstr ""
859
 
860
+ #: includes/customizer/class-wc-email-customizer.php:289
861
  msgid ""
862
  "available variables: {site_title}, {customer_email}, {customer_first_name}, "
863
  "{customer_last_name}, {customer_username}, {order_number}"
864
  msgstr ""
865
 
866
+ #: includes/customizer/class-wc-email-customizer.php:308
867
  msgid "Display tracking details"
868
  msgstr ""
869
 
870
+ #: includes/customizer/class-wc-email-customizer.php:324
871
  msgid "Display order details"
872
  msgstr ""
873
 
874
+ #: includes/customizer/class-wc-email-customizer.php:341
875
  msgid "Display Shipping Address"
876
  msgstr ""
877
 
878
+ #: includes/customizer/class-wc-email-customizer.php:358
879
  msgid "Display Billing Address"
880
  msgstr ""
881
 
882
+ #: includes/customizer/class-wc-email-customizer.php:375
883
  msgid "Enable Google Analytics tracking"
884
  msgstr ""
885
 
886
+ #: includes/customizer/class-wc-email-customizer.php:393
887
  msgid ""
888
  "This will be appended to URL in the email content – e.g. "
889
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
890
  msgstr ""
891
 
892
+ #: includes/customizer/class-wc-failure-email-customizer.php:123
893
  msgid "Your order #{order_number} is Failed Attempt"
894
  msgstr "आपका आदेश # {order_number} विफल है"
895
 
896
+ #: includes/customizer/class-wc-failure-email-customizer.php:125
897
  msgid ""
898
  "Hi there. we thought you'd like to know that your recent order from "
899
  "{site_title} is Failed Attempt"
901
  "नमस्ते। हमने सोचा कि आप जानना चाहते हैं कि {site_title} से आपका हालिया आदेश "
902
  "विफल है"
903
 
904
+ #: includes/customizer/class-wc-failure-email-customizer.php:156
905
  msgid "Failed Attempt shipment status email"
906
  msgstr "असफल शिपमेंट स्थिति ईमेल"
907
 
908
+ #: includes/customizer/class-wc-failure-email-customizer.php:171
909
  msgid "Enable Failed Attempt shipment status email"
910
  msgstr "असफल शिपमेंट स्थिति ईमेल सक्षम करें"
911
 
912
+ #: includes/customizer/class-wc-intransit-email-customizer.php:126
913
  msgid "Your order #{order_number} is in transit"
914
  msgstr ""
915
  "आपका आदेश # {order_number} पारगमन में है\n"
916
 
917
+ #: includes/customizer/class-wc-intransit-email-customizer.php:128
918
  msgid ""
919
  "Hi there. we thought you'd like to know that your recent order from "
920
  "{site_title} is in transit"
922
  "नमस्ते। हमने सोचा कि आप जानना चाहेंगे कि आपका हालिया आदेश {site_title} से "
923
  "पारगमन में है\n"
924
 
925
+ #: includes/customizer/class-wc-intransit-email-customizer.php:159
926
  msgid "In Transit shipment status email"
927
  msgstr ""
928
  "ट्रांजिट शिपमेंट स्थिति ईमेल में\n"
929
 
930
+ #: includes/customizer/class-wc-intransit-email-customizer.php:174
931
  msgid "Enable In Transit shipment status email"
932
  msgstr ""
933
  "ट्रांजिट शिपमेंट स्थिति ईमेल में सक्षम करें\n"
934
 
935
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:125
936
  msgid "Your order #{order_number} is out for delivery"
937
  msgstr ""
938
  "आपका ऑर्डर # {order_number} डिलीवरी के लिए है\n"
939
 
940
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:127
941
  msgid ""
942
  "Hi there. we thought you'd like to know that your recent order from "
943
  "{site_title} is out for delivery."
945
  "नमस्ते। हमने सोचा कि आप जानना चाहते हैं कि {site_title} से आपका हालिया ऑर्डर "
946
  "डिलीवरी के लिए है।\n"
947
 
948
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:158
949
  msgid "Out For Delivery shipment status email"
950
  msgstr ""
951
  "डिलीवरी शिपमेंट स्थिति ईमेल के लिए\n"
952
 
953
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:173
954
  msgid "Enable Out For Delivery shipment status email"
955
  msgstr "वितरण शिपमेंट स्थिति ईमेल के लिए सक्षम करें"
956
 
957
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:123
958
  msgid "Your order #{order_number} has returned to sender"
959
  msgstr ""
960
  "आपका आदेश # {order_number} प्रेषक को वापस आ गया है\n"
961
 
962
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:125
963
  msgid ""
964
  "Hi there. we thought you'd like to know that your recent order from "
965
  "{site_title} has been returned to sender."
967
  "नमस्ते। हमने सोचा था कि आप यह जानना चाहेंगे कि आपका हालिया आदेश {site_title} "
968
  "से प्रेषक को वापस कर दिया गया है।\n"
969
 
970
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:156
971
  msgid "Return To Sender shipment status email"
972
  msgstr ""
973
  "प्रेषक शिपमेंट स्थिति ईमेल पर लौटें\n"
974
 
975
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:171
976
  msgid "Enable Return To Sender shipment status email"
977
  msgstr "प्रेषक शिपमेंट स्थिति ईमेल पर वापसी सक्षम करें"
978
 
979
+ #: includes/customizer/class-wc-tracking-info-customizer.php:144
980
+ #: includes/customizer/class-wc-tracking-info-customizer.php:364
981
+ #: templates/emails/tracking-info.php:131 templates/myaccount/view-order.php:91
 
982
  msgid "Provider"
983
  msgstr "प्रदाता"
984
 
985
+ #: includes/customizer/class-wc-tracking-info-customizer.php:145
986
+ #: includes/customizer/class-wc-tracking-info-customizer.php:386
987
+ #: templates/emails/tracking-info.php:155
988
+ #: templates/myaccount/view-order.php:113
 
989
  msgid "Tracking Number"
990
  msgstr "खोज संख्या"
991
 
992
+ #: includes/customizer/class-wc-tracking-info-customizer.php:146
993
+ #: includes/customizer/class-wc-tracking-info-customizer.php:407
994
  msgid "Shipped Date"
995
  msgstr ""
996
  "भेजने की तिथि\n"
997
 
998
+ #: includes/customizer/class-wc-tracking-info-customizer.php:179
999
  msgid ""
1000
  "select from last 20 orders one order that you added tracking info in order "
1001
  "to preview and design the tracking info table."
1003
  "पिछले 20 आदेशों में से एक आदेश चुनें जिसे आपने ट्रैकिंग जानकारी जोड़ी और "
1004
  "ट्रैकिंग जानकारी तालिका का पूर्वावलोकन और डिज़ाइन करने के लिए जोड़ा।\n"
1005
 
1006
+ #: includes/customizer/class-wc-tracking-info-customizer.php:198
1007
+ #: includes/views/admin_options_settings.php:15
1008
+ #: includes/views/admin_options_trackship_integration.php:62
1009
+ msgid "General Settings"
1010
+ msgstr "सामान्य सेटिंग्स"
1011
+
1012
+ #: includes/customizer/class-wc-tracking-info-customizer.php:213
1013
  msgid "Tracking Display Position"
1014
  msgstr "ट्रैकिंग प्रदर्शन की स्थिति"
1015
 
1016
+ #: includes/customizer/class-wc-tracking-info-customizer.php:217
1017
  msgid "Before Order Details"
1018
  msgstr "आदेश विवरण से पहले"
1019
 
1020
+ #: includes/customizer/class-wc-tracking-info-customizer.php:218
1021
  msgid "After Order Details"
1022
  msgstr "आदेश विवरण के बाद"
1023
 
1024
+ #: includes/customizer/class-wc-tracking-info-customizer.php:233
1025
  msgid "Main Header text"
1026
  msgstr "मुख्य हैडर पाठ"
1027
 
1028
+ #: includes/customizer/class-wc-tracking-info-customizer.php:240
 
1029
  msgid "Tracking Information"
1030
  msgstr "ट्रैकिंग जानकारी"
1031
 
1032
+ #: includes/customizer/class-wc-tracking-info-customizer.php:255
1033
  msgid "Additional text after header"
1034
  msgstr "हेडर के बाद अतिरिक्त पाठ"
1035
 
1036
+ #: includes/customizer/class-wc-tracking-info-customizer.php:276
1037
+ msgid "Table Content"
1038
+ msgstr ""
1039
 
1040
+ #: includes/customizer/class-wc-tracking-info-customizer.php:291
1041
  msgid "Display Shipment Provider image"
1042
  msgstr "शिपमेंट प्रदाता छवि प्रदर्शित करें"
1043
 
1044
+ #: includes/customizer/class-wc-tracking-info-customizer.php:308
1045
  msgid "Hide date"
1046
  msgstr "तारीख छिपाएं"
1047
 
1048
+ #: includes/customizer/class-wc-tracking-info-customizer.php:325
1049
+ msgid "Table Header"
1050
+ msgstr ""
1051
+
1052
+ #: includes/customizer/class-wc-tracking-info-customizer.php:340
1053
+ msgid "Hide Header"
1054
+ msgstr ""
1055
+
1056
+ #: includes/customizer/class-wc-tracking-info-customizer.php:357
1057
  msgid "Provider Header Text"
1058
  msgstr "प्रदाता हैडर पाठ"
1059
 
1060
+ #: includes/customizer/class-wc-tracking-info-customizer.php:379
1061
  msgid "Tracking Number Header Text"
1062
  msgstr "ट्रैकिंग नंबर हैडर पाठ"
1063
 
1064
+ #: includes/customizer/class-wc-tracking-info-customizer.php:400
1065
  msgid "Shipped Date Header Text"
1066
  msgstr "भेज दिया गया हैडर पाठ"
1067
 
1068
+ #: includes/customizer/class-wc-tracking-info-customizer.php:421
1069
  msgid "Track Label"
1070
  msgstr ""
1071
  "ट्रैक लेबल\n"
1072
 
1073
+ #: includes/customizer/class-wc-tracking-info-customizer.php:437
1074
  msgid "Track Header Text"
1075
  msgstr "ट्रैक हैडर पाठ"
1076
 
1077
+ #: includes/customizer/class-wc-tracking-info-customizer.php:459
1078
+ msgid "Table header font size"
1079
+ msgstr "टेबल हेडर फ़ॉन्ट आकार"
1080
+
1081
+ #: includes/customizer/class-wc-tracking-info-customizer.php:476
1082
+ msgid "Table header font color"
1083
+ msgstr "टेबल हेडर फ़ॉन्ट रंग"
1084
+
1085
+ #: includes/customizer/class-wc-tracking-info-customizer.php:492
1086
  msgid "Table Design"
1087
  msgstr ""
1088
  "टेबल डिजाइन\n"
1089
 
1090
+ #: includes/customizer/class-wc-tracking-info-customizer.php:507
1091
  msgid "Padding"
1092
  msgstr ""
1093
  "गद्दी\n"
1094
 
1095
+ #: includes/customizer/class-wc-tracking-info-customizer.php:527
1096
  msgid "Background color"
1097
  msgstr ""
1098
  "पीछे का रंग\n"
1099
 
1100
+ #: includes/customizer/class-wc-tracking-info-customizer.php:555
1101
  msgid "Border color"
1102
  msgstr ""
1103
  "किनारे का रंग\n"
1104
 
1105
+ #: includes/customizer/class-wc-tracking-info-customizer.php:571
1106
  msgid "Border size"
1107
  msgstr ""
1108
  "सीमा का आकार\n"
1109
 
1110
+ #: includes/customizer/class-wc-tracking-info-customizer.php:595
 
 
 
 
 
 
1111
  msgid "Table text align"
1112
  msgstr "तालिका पाठ संरेखित करें"
1113
 
1114
+ #: includes/customizer/class-wc-tracking-info-customizer.php:618
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1115
  msgid "Table content font size"
1116
  msgstr "तालिका सामग्री फ़ॉन्ट आकार"
1117
 
1118
+ #: includes/customizer/class-wc-tracking-info-customizer.php:635
1119
  msgid "Table content font color"
1120
  msgstr "तालिका सामग्री फ़ॉन्ट रंग"
1121
 
1122
+ #: includes/customizer/class-wc-tracking-info-customizer.php:651
1123
  msgid "Content line height"
1124
  msgstr ""
1125
  "सामग्री लाइन ऊंचाई\n"
1126
 
1127
+ #: includes/customizer/class-wc-tracking-info-customizer.php:672
1128
  msgid "Content font weight"
1129
  msgstr ""
1130
  "सामग्री फ़ॉन्ट वजन\n"
1131
 
1132
+ #: includes/customizer/class-wc-tracking-info-customizer.php:694
1133
+ msgid "Track Button Design"
1134
+ msgstr ""
1135
 
1136
+ #: includes/customizer/class-wc-tracking-info-customizer.php:708
1137
  msgid "Track Link Font Color"
1138
  msgstr "ट्रैक लिंक फ़ॉन्ट रंग"
1139
 
1140
+ #: includes/customizer/class-wc-tracking-info-customizer.php:724
1141
  msgid "Track Link Background Color"
1142
  msgstr "ट्रैक लिंक बैकग्राउंड कलर"
1143
 
1144
+ #: includes/customizer/class-wc-tracking-info-customizer.php:739
1145
  msgid "Track link Border"
1146
  msgstr "ट्रैक लिंक बॉर्डर"
1147
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1148
  #: includes/emails/class-shipment-delivered-email.php:32
1149
  msgid "Delivered order"
1150
  msgstr ""
1155
  "delivered and usually indicate that their orders have been shipped."
1156
  msgstr ""
1157
 
1158
+ #: includes/emails/class-shipment-delivered-email.php:279
1159
+ msgid "Click Here"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1160
  msgstr ""
1161
 
1162
+ #: includes/emails/class-shipment-delivered-email.php:280
 
 
 
 
1163
  msgid "Edit in customizer"
1164
  msgstr ""
1165
 
1166
+ #: includes/views/admin_options_bulk_upload.php:10
1167
  msgid "Upload CSV"
1168
  msgstr "CSV अपलोड करें"
1169
 
1170
+ #: includes/views/admin_options_bulk_upload.php:20
1171
  msgid ""
1172
  "Replace tracking info if exists? (if not checked, the tracking info will be "
1173
  "added)"
1175
  "यदि मौजूद है तो ट्रैकिंग जानकारी बदलें? (यदि जांच नहीं की गई है, तो ट्रैकिंग "
1176
  "जानकारी जोड़ी जाएगी)"
1177
 
1178
+ #: includes/views/admin_options_bulk_upload.php:29
1179
+ #: includes/views/admin_options_shipping_provider.php:119
1180
+ #: includes/views/admin_options_shipping_provider.php:153
1181
  msgid "Upload"
1182
  msgstr "अपलोड"
1183
 
1184
+ #: includes/views/admin_options_bulk_upload.php:31
 
 
1185
  msgid "Settings Saved."
1186
  msgstr "सेटिंग्स को सहेजा गया।"
1187
 
1188
+ #: includes/views/admin_options_bulk_upload.php:41
1189
+ msgid "Upload Progress - "
1190
+ msgstr "अपलोड प्रगति -"
1191
+
1192
+ #: includes/views/admin_options_bulk_upload.php:45
1193
+ msgid "Sample CSV"
1194
+ msgstr ""
1195
+
1196
+ #: includes/views/admin_options_bulk_upload.php:50
1197
  msgid "You can download an example of the csv file:"
1198
  msgstr "आप csv फ़ाइल का एक उदाहरण डाउनलोड कर सकते हैं:"
1199
 
1200
+ #: includes/views/admin_options_bulk_upload.php:53
1201
  msgid "Download sample csv file"
1202
  msgstr "नमूना csv फ़ाइल डाउनलोड करें"
1203
 
1204
+ #: includes/views/admin_options_bulk_upload.php:58
1205
  msgid ""
1206
  "For detailed instructions on how to upload tracking info in bulk, see our"
1207
  msgstr ""
1208
  "थोक में ट्रैकिंग जानकारी कैसे अपलोड करें, इस बारे में विस्तृत निर्देशों के "
1209
  "लिए, देखें"
1210
 
1211
+ #: includes/views/admin_options_settings.php:26
1212
+ #: includes/views/admin_options_settings.php:74
1213
+ #: includes/views/admin_options_trackship_integration.php:73
1214
+ #: includes/views/admin_options_trackship_integration.php:104
1215
+ msgid "Save Changes"
1216
+ msgstr ""
1217
 
1218
+ #: includes/views/admin_options_settings.php:40
1219
+ msgid "Tracking Info Display"
1220
+ msgstr ""
1221
 
1222
+ #: includes/views/admin_options_settings.php:49
1223
+ msgid "You can customize the tracking info display on emails and my account"
1224
+ msgstr ""
1225
+
1226
+ #: includes/views/admin_options_settings.php:52
1227
+ msgid "Launch Customizer"
1228
+ msgstr ""
1229
 
1230
+ #: includes/views/admin_options_settings.php:62
 
1231
  msgid "Delivered Order Status"
1232
  msgstr "वितरित स्थिति"
1233
 
1234
+ #: includes/views/admin_options_shipping_provider.php:12
1235
+ msgid "Active"
1236
  msgstr ""
 
1237
 
1238
+ #: includes/views/admin_options_shipping_provider.php:13
1239
+ msgid "Inactive"
1240
+ msgstr ""
1241
+
1242
+ #: includes/views/admin_options_shipping_provider.php:14
1243
+ msgid "Custom"
1244
+ msgstr ""
1245
+
1246
+ #: includes/views/admin_options_shipping_provider.php:15
1247
+ msgid "All"
1248
+ msgstr ""
1249
+
1250
+ #: includes/views/admin_options_shipping_provider.php:21
1251
+ msgid "Add Custom Provider"
1252
+ msgstr ""
1253
+
1254
+ #: includes/views/admin_options_shipping_provider.php:22
1255
+ #: includes/views/admin_options_shipping_provider.php:170
1256
+ #: includes/views/admin_options_shipping_provider.php:177
1257
+ msgid "Sync Shipping Providers"
1258
+ msgstr ""
1259
 
1260
+ #: includes/views/admin_options_shipping_provider.php:23
1261
+ msgid "Reset"
1262
+ msgstr ""
1263
+
1264
+ #: includes/views/admin_options_shipping_provider.php:23
1265
+ msgid "active"
1266
+ msgstr ""
1267
+
1268
+ #: includes/views/admin_options_shipping_provider.php:23
1269
+ msgid "inactive"
1270
+ msgstr ""
1271
+
1272
+ #: includes/views/admin_options_shipping_provider.php:27
1273
+ msgid "Search by provider / country"
1274
+ msgstr ""
1275
 
1276
+ #: includes/views/admin_options_shipping_provider.php:101
1277
  msgid "Add Custom Shipping Provider"
1278
  msgstr "कस्टम शिपिंग प्रदाता जोड़ें"
1279
 
1280
+ #: includes/views/admin_options_shipping_provider.php:108
1281
+ #: includes/views/admin_options_shipping_provider.php:142
1282
+ msgid "Shipping Country"
1283
+ msgstr ""
1284
 
1285
+ #: includes/views/admin_options_shipping_provider.php:109
1286
+ #: includes/views/admin_options_shipping_provider.php:143
1287
  msgid "Global"
1288
  msgstr ""
1289
 
1290
+ #: includes/views/admin_options_shipping_provider.php:135
1291
  msgid "Edit Custom Shipping Provider"
1292
  msgstr "कस्टम शिपिंग प्रदाता संपादित करें"
1293
 
1294
+ #: includes/views/admin_options_shipping_provider.php:171
1295
+ msgid ""
1296
+ "Syncing the shipping providers list add or updates the pre-set shipping "
1297
+ "providers and will not effect custom shipping providers."
1298
+ msgstr ""
 
 
 
1299
 
1300
+ #: includes/views/admin_options_shipping_provider.php:173
1301
  msgid "Providers Added"
1302
  msgstr "प्रदाता जोड़े गए"
1303
 
1304
+ #: includes/views/admin_options_shipping_provider.php:174
1305
  msgid "Providers Updated"
1306
  msgstr "प्रदाताओं अद्यतन"
1307
 
1308
+ #: includes/views/admin_options_shipping_provider.php:175
1309
  msgid "Providers Deleted"
1310
  msgstr "प्रदाता हटा दिए गए"
1311
 
1312
+ #: includes/views/admin_options_trackship_integration.php:17
1313
+ msgid "Connection status"
1314
+ msgstr ""
1315
+
1316
+ #: includes/views/admin_options_trackship_integration.php:24
1317
+ msgid "TrackShip Connection Status"
1318
+ msgstr "TrackShip कनेक्शन स्थिति"
1319
 
 
1320
  #: includes/views/admin_options_trackship_integration.php:35
1321
+ msgid ""
1322
+ "You are now connected with TrackShip! TrackShip makes it effortless to "
1323
+ "automate your post shipping operations and get tracking and delivery status "
1324
+ "updates directly in the WooCommerce admin."
1325
+ msgstr ""
1326
+
1327
+ #: includes/views/admin_options_trackship_integration.php:41
1328
+ msgid "TrackShip Dashboard"
1329
+ msgstr ""
1330
+
1331
+ #: includes/views/admin_options_trackship_integration.php:51
1332
+ msgid "Bulk Actions"
1333
+ msgstr ""
1334
+
1335
+ #: includes/views/admin_options_trackship_integration.php:87
1336
  msgid "Tracking Page"
1337
  msgstr "ट्रैकिंग पृष्ठ"
1338
 
1339
+ #: includes/views/admin_options_trackship_integration.php:97
 
 
 
 
1340
  msgid "Click to preview the tracking page"
1341
  msgstr "ट्रैकिंग पृष्ठ का पूर्वावलोकन करने के लिए क्लिक करें"
1342
 
1343
+ #: includes/views/admin_options_trackship_integration.php:98
1344
  msgid "PLEASE NOTE - make sure to save your settings before preview."
1345
  msgstr ""
1346
  "कृपया ध्यान दें - पूर्वावलोकन से पहले अपनी सेटिंग्स को सहेजना सुनिश्चित करें।"
1347
 
1348
+ #: includes/views/admin_options_trackship_integration.php:117
1349
  msgid "Shipment Status Notifications "
1350
  msgstr "शिपमेंट स्थिति अधिसूचनाएँ"
1351
 
1352
+ #: includes/views/admin_options_trackship_integration.php:145
1353
  msgid ""
1354
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1355
  "the way."
1356
  msgstr ""
1357
  "कैरियर ने शिपर से शिपमेंट को स्वीकार या उठाया है। शिपमेंट रास्ते में है।"
1358
 
1359
+ #: includes/views/admin_options_trackship_integration.php:159
1360
  msgid "Shipment is returned to sender"
1361
  msgstr "शिपमेंट प्रेषक को वापस कर दिया जाता है"
1362
 
1363
+ #: includes/views/admin_options_trackship_integration.php:173
1364
  msgid "The shipment is ready to pickup."
1365
  msgstr "शिपमेंट पिकअप के लिए तैयार है।"
1366
 
1367
+ #: includes/views/admin_options_trackship_integration.php:186
1368
  msgid "Carrier is about to deliver the shipment"
1369
  msgstr "वाहक शिपमेंट वितरित करने वाला है"
1370
 
1371
+ #: includes/views/admin_options_trackship_integration.php:200
1372
  msgid "The shipment was delivered successfully"
1373
  msgstr "शिपमेंट सफलतापूर्वक वितरित किया गया था"
1374
 
1375
+ #: includes/views/admin_options_trackship_integration.php:201
1376
  msgid ""
1377
  "You already have delivered email enabled, to enable this email you'll need "
1378
  "to disable the order status delivered in settings."
1380
  "आपने पहले ही ईमेल सक्षम कर दिया है, इस ईमेल को सक्षम करने के लिए आपको "
1381
  "सेटिंग्स में दिए गए ऑर्डर की स्थिति को निष्क्रिय करना होगा।"
1382
 
1383
+ #: includes/views/admin_options_trackship_integration.php:215
1384
  msgid ""
1385
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1386
  "will try to deliver the package again."
1388
  "कैरियर देने का प्रयास किया, लेकिन विफल रहा, और आमतौर पर एक नोटिस छोड़ देता "
1389
  "है और पैकेज को फिर से वितरित करने का प्रयास करेगा।"
1390
 
1391
+ #: includes/views/zorem_admin_ts_sidebar.php:10
 
 
 
 
 
 
 
 
1392
  msgid "Dashboard"
1393
  msgstr ""
1394
 
1395
+ #: templates/emails/tracking-info.php:159
 
 
 
 
1396
  msgid "Status"
1397
  msgstr "स्थिति"
1398
 
1399
+ #: templates/emails/wcast-email-order-details.php:31
1400
  msgid "Order Details"
1401
  msgstr ""
1402
  "ऑर्डर का विवरण\n"
1403
 
1404
  #. %s: Order ID.
1405
+ #: templates/emails/wcast-email-order-details.php:47
1406
  #, php-format
1407
  msgid "Order number: %s"
1408
  msgstr ""
1409
  "क्रम संख्या:% s\n"
1410
 
1411
+ #: templates/emails/wcast-email-order-details.php:54
1412
  msgid "Order date:"
1413
  msgstr ""
1414
  "आदेश की तारीख:\n"
1415
 
1416
+ #. Name of the plugin
1417
+ msgid "Advanced Shipment Tracking for WooCommerce"
1418
+ msgstr ""
1419
+
1420
+ #. Description of the plugin
1421
+ msgid ""
1422
+ "Add shipment tracking information to your WooCommerce orders and provide "
1423
+ "customers with an easy way to track their orders. Shipment tracking Info "
1424
+ "will appear in customers accounts (in the order panel) and in WooCommerce "
1425
+ "order complete email."
1426
+ msgstr ""
1427
+
1428
+ #. Author of the plugin
1429
+ msgid "zorem"
1430
+ msgstr ""
lang/woo-advanced-shipment-tracking-sv_SE.mo CHANGED
Binary file
lang/woo-advanced-shipment-tracking-sv_SE.po CHANGED
@@ -3,16 +3,16 @@ msgstr ""
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2019-09-06 11:44+0000\n"
6
- "PO-Revision-Date: 2019-09-06 11:47+0000\n"
7
- "Last-Translator: gaurav <gaurav1092@zorem.com>\n"
8
  "Language-Team: Swedish\n"
9
  "Language: sv_SE\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
- "X-Generator: Loco https://localise.biz/\n"
15
- "X-Loco-Version: 2.3.0; wp-5.2.3"
16
 
17
  #: woocommerce-advanced-shipment-tracking.php:112
18
  #, php-format
@@ -20,19 +20,19 @@ msgid ""
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
21
  "Shipment Tracking!"
22
  msgstr ""
23
- "Vänligen installera och aktivera% sWooCommerce% s för att kunna använda "
24
  "WooCommerce Advanced Shipping Tracking!"
25
 
26
  #: woocommerce-advanced-shipment-tracking.php:390
27
  #: includes/views/admin_options_settings.php:21
28
  #, php-format
29
  msgid ""
30
- "<strong>PLEASE NOTE</strong> - If you use the custom order status "
31
- "\"Delivered\", when you deactivate the plugin, you must register this order "
32
- "status in function.php in order to see these orders in the orders admin. You "
33
- "can find the <a href=\"%s\" target=\"blank\">snippet</a> to use in functions."
34
- "php here or you can manually change all your \"delivered\" order to "
35
- "\"completed\" before deactivating the plugin."
36
  msgstr ""
37
 
38
  #: includes/class-wc-advanced-shipment-tracking-admin.php:209
@@ -72,14 +72,14 @@ msgstr[1] "Skickades <span class = \"count\"> (% s) </ span>"
72
  #: includes/class-wc-advanced-shipment-tracking-admin.php:261
73
  #: includes/class-wc-advanced-shipment-tracking-admin.php:290
74
  msgid "Updated Tracking"
75
- msgstr "Uppdaterad spårning"
76
 
77
  #: includes/class-wc-advanced-shipment-tracking-admin.php:266
78
  #, php-format
79
  msgid "Updated Tracking <span class=\"count\">(%s)</span>"
80
  msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
81
- msgstr[0] "Uppdaterad spårning <span class = \"count\"> (% s) </ span>"
82
- msgstr[1] "Uppdaterad spårning <span class = \"count\"> (% s) </ span>"
83
 
84
  #: includes/class-wc-advanced-shipment-tracking-admin.php:320
85
  msgid "Change status to delivered"
@@ -94,6 +94,8 @@ msgid ""
94
  "Get Shipment Status is limited to 100 orders at a time, please select up to "
95
  "100 orders."
96
  msgstr ""
 
 
97
 
98
  #: includes/class-wc-advanced-shipment-tracking-admin.php:667
99
  msgid "Order"
@@ -158,7 +160,7 @@ msgstr "Massuppladdning"
158
 
159
  #: includes/class-wc-advanced-shipment-tracking-admin.php:745
160
  msgid "TrackShip"
161
- msgstr ""
162
 
163
  #: includes/class-wc-advanced-shipment-tracking-admin.php:880
164
  msgid "Connected"
@@ -188,7 +190,7 @@ msgstr "50 spårningar gratis för varje nytt konto! Skapa ditt %s konto nu>>"
188
 
189
  #: includes/class-wc-advanced-shipment-tracking-admin.php:988
190
  msgid "TrackShip Connection Status"
191
- msgstr "TrackShip-anslutningsstatus"
192
 
193
  #: includes/class-wc-advanced-shipment-tracking-admin.php:995
194
  #: includes/emails/class-shipment-delivered-email.php:226
@@ -205,16 +207,20 @@ msgid ""
205
  "You have %s %s orders that you can track with TrackShip, you can send these "
206
  "shipments to TrackShip in Bulk."
207
  msgstr ""
 
 
208
 
209
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1009
210
  msgid "Get Shipment Status"
211
- msgstr ""
212
 
213
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1047
214
  msgid ""
215
  "You must add the shortcode [wcast-track-order] to the \"page name\" in order "
216
  "for the tracking page to work."
217
  msgstr ""
 
 
218
 
219
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1055
220
  msgid "Select Tracking Page"
@@ -242,28 +248,38 @@ msgid ""
242
  "Default \"mark as <span class=\"shipped_label\">shipped</span>\" checkbox "
243
  "state"
244
  msgstr ""
 
 
245
 
246
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1146
247
  msgid ""
248
  "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
249
  "will be selected by default when adding tracking info to orders."
250
  msgstr ""
 
 
 
251
 
252
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1148
253
  msgid "Completed"
254
- msgstr "Avslutad"
255
 
256
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1149
257
  msgid ""
258
  "Default \"mark as <span class=\"shipped_label\">completed</span>\" checkbox "
259
  "state"
260
  msgstr ""
 
 
261
 
262
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1150
263
  msgid ""
264
  "This means that the 'mark as <span class='shipped_label'>completed</span>' "
265
  "will be selected by default when adding tracking info to orders."
266
  msgstr ""
 
 
 
267
 
268
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1156
269
  msgid "Rename the “Completed” Order status to “Shipped”"
@@ -271,13 +287,12 @@ msgstr "Ändra namn på orderstatusen 'Färdigbehandlad' till 'Skickad'"
271
 
272
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1169
273
  msgid "On which customer order status email to include tracking info?"
274
- msgstr ""
275
- "På vilken kundbeställningsstatus e-post för att inkludera spårningsinfo?"
276
 
277
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1170
278
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2192
279
  msgid "Cancelled"
280
- msgstr "Avbokad"
281
 
282
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1171
283
  msgid "Customer Invoice"
@@ -285,23 +300,23 @@ msgstr "Kundfaktura"
285
 
286
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1172
287
  msgid "Refunded"
288
- msgstr "återbetalas"
289
 
290
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1173
291
  msgid "Processing"
292
- msgstr "bearbetning"
293
 
294
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1174
295
  msgid "Failed"
296
- msgstr "misslyckades"
297
 
298
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1182
299
  msgid "Show tracking info in Invoice"
300
- msgstr "Visa spårningsinfo i faktura"
301
 
302
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1188
303
  msgid "Show tracking info in Packing Slip"
304
- msgstr "Visa spårningsinfo i Packing Slip"
305
 
306
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1205
307
  msgid "Enable a New Custom order status - “Delivered”"
@@ -339,15 +354,18 @@ msgstr "Ändra"
339
  msgid ""
340
  "Change the \"Delivered\" orders to \"Completed\" when you deactivate the "
341
  "plugin"
342
- msgstr "Ändra levererade order till \"Slutförd\" när du inaktiverar plugin"
 
 
343
 
344
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1238
345
  msgid "No, I will use the snippet"
346
- msgstr "Nej, jag ska använda utdraget"
347
 
348
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1239
349
  msgid "Yes, change all Delivered orders to Completed"
350
- msgstr "Ja, ändra alla Levererade order till Slutförda"
 
351
 
352
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1241
353
  #, php-format
@@ -358,11 +376,11 @@ msgid ""
358
  "to use in functions.php %s or we can set to change all your \"delivered\" "
359
  "order to \"completed\"."
360
  msgstr ""
361
- "OBSERVERA - Om du använder beställningsstatusen \"Delivered\", när du "
362
- "inaktiverar pluginet måste du registrera denna orderstatus i function.php "
363
- "för att kunna se dessa order i orderadministratören. Du kan hitta utdraget "
364
- "att använda i functions.php% s eller vi kan ställa in för att ändra all din "
365
- "\"levererade\" ordning till \"klar\"."
366
 
367
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1560
368
  msgid "Get shipment status"
@@ -424,7 +442,7 @@ msgstr "Fraktleverantören stöds inte"
424
 
425
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1621
426
  msgid "Invalid User Key"
427
- msgstr ""
428
 
429
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1687
430
  msgid "Resend delivered order notification"
@@ -432,15 +450,15 @@ msgstr "Återsänd ordermeddelande om 'Levererat'"
432
 
433
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1745
434
  msgid "Shipped Order"
435
- msgstr "Skickad beställning"
436
 
437
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1764
438
  msgid "Mark order as delivered"
439
- msgstr "Markera ordning som levererad"
440
 
441
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1771
442
  msgid "Add Tracking"
443
- msgstr ""
444
 
445
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1797
446
  msgid "Change order status to"
@@ -450,7 +468,7 @@ msgstr "Ändra orderstatus till"
450
  #: includes/views/admin_options_shipping_provider.php:88
451
  #, php-format
452
  msgid "You don't have any %s shipping providers."
453
- msgstr "Du har inga% s fraktleverantörer."
454
 
455
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2145
456
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2157
@@ -462,26 +480,26 @@ msgstr "visa detaljer"
462
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2158
463
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2170
464
  msgid "hide details"
465
- msgstr "gömma detaljer"
466
 
467
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2188
468
  msgid "Available for Pickup"
469
- msgstr ""
470
 
471
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2189
472
  msgid "Out for Delivery"
473
- msgstr ""
474
 
475
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2191
476
  #: includes/customizer/class-wcast-customizer.php:112
477
  #: includes/customizer/class-wc-failure-email-customizer.php:113
478
  #: includes/views/admin_options_trackship_integration.php:149
479
  msgid "Failed Attempt"
480
- msgstr "Misslyckat försök"
481
 
482
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2193
483
  msgid "Carrier Unsupported"
484
- msgstr ""
485
 
486
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2195
487
  #: includes/class-wc-advanced-shipment-tracking-front.php:457
@@ -491,7 +509,7 @@ msgstr "Ogiltigt sändningsnummer"
491
 
492
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2200
493
  msgid "Filter by shipment status"
494
- msgstr ""
495
 
496
  #: includes/class-wc-advanced-shipment-tracking-front.php:138
497
  msgid ""
@@ -499,9 +517,9 @@ msgid ""
499
  "the \"Track\" button. This was given to you on your receipt and in the "
500
  "confirmation email you should have received."
501
  msgstr ""
502
- "För att spåra din beställning, ange ditt order-id i rutan nedan och tryck på "
503
- "'Spåra'-knappen. Informationen återfinns på ditt kvitt and i bekräftelse e-"
504
- "postmeddelandet som du mottagit."
505
 
506
  #: includes/class-wc-advanced-shipment-tracking-front.php:139
507
  msgid "Order ID"
@@ -537,19 +555,19 @@ msgstr "Leverans - %s (av %s)"
537
  #: includes/class-wc-advanced-shipment-tracking-front.php:311
538
  #: includes/class-wc-advanced-shipment-tracking-front.php:666
539
  msgid "Order: "
540
- msgstr "Ordning:"
541
 
542
  #: includes/class-wc-advanced-shipment-tracking-front.php:320
543
  #: includes/class-wc-advanced-shipment-tracking-front.php:324
544
  #: includes/class-wc-advanced-shipment-tracking-front.php:675
545
  #: includes/class-wc-advanced-shipment-tracking-front.php:679
546
  msgid "Estimated Delivery Date: "
547
- msgstr "Beräknat leveransdatum:"
548
 
549
  #: includes/class-wc-advanced-shipment-tracking-front.php:429
550
  #: includes/class-wc-advanced-shipment-tracking-front.php:785
551
  msgid "Tracking Details"
552
- msgstr "Spårningsinformation"
553
 
554
  #: includes/class-wc-advanced-shipment-tracking-front.php:448
555
  #: includes/class-wc-advanced-shipment-tracking-front.php:804
@@ -568,28 +586,28 @@ msgid ""
568
  "We added many improvements to %1$s, please help and give us a review :) "
569
  "Thanks!"
570
  msgstr ""
571
- "Vi har lagt till många förbättringar till% 1 $ s, snälla hjälp och ge oss en "
572
- "recension :) Tack!"
573
 
574
  #: includes/class-wc-advanced-shipment-tracking.php:93
575
  #: includes/class-wc-advanced-shipment-tracking.php:244
576
  #: includes/customizer/class-wcast-customizer.php:30
577
  msgid "Shipment Tracking"
578
- msgstr "Försändelsespårning"
579
 
580
  #: includes/class-wc-advanced-shipment-tracking.php:179
581
  #: includes/class-wc-advanced-shipment-tracking.php:351
582
  msgid "Change order to Shipped?"
583
- msgstr ""
584
 
585
  #: includes/class-wc-advanced-shipment-tracking.php:181
586
  #: includes/class-wc-advanced-shipment-tracking.php:353
587
  msgid "Change order to Completed?"
588
- msgstr ""
589
 
590
  #: includes/class-wc-advanced-shipment-tracking.php:186
591
  msgid "Add Tracking Number"
592
- msgstr ""
593
 
594
  #: includes/class-wc-advanced-shipment-tracking.php:191
595
  #: includes/class-wc-advanced-shipment-tracking.php:369
@@ -644,7 +662,7 @@ msgstr "Klicka här för att spåra försändelsen"
644
 
645
  #: includes/customizer/class-wcast-customizer.php:39
646
  msgid "Shipment Status Emails"
647
- msgstr "E-postmeddelanden om leveransstatus"
648
 
649
  #: includes/customizer/class-wcast-customizer.php:50
650
  msgid "Tracking info display"
@@ -837,7 +855,7 @@ msgstr "Visa leveransadress"
837
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:330
838
  #: includes/customizer/class-wc-returntosender-email-customizer.php:331
839
  msgid "Google Analytics link tracking"
840
- msgstr ""
841
 
842
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:332
843
  #: includes/customizer/class-wc-delivered-email-customizer.php:331
@@ -846,7 +864,7 @@ msgstr ""
846
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:331
847
  #: includes/customizer/class-wc-returntosender-email-customizer.php:332
848
  msgid "This will be appended to URL in the email content"
849
- msgstr ""
850
 
851
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:353
852
  #: includes/customizer/class-wc-delivered-email-customizer.php:352
@@ -881,7 +899,7 @@ msgstr "Välj order att förhandsgranska."
881
 
882
  #: includes/customizer/class-wc-delivered-email-customizer.php:114
883
  msgid "Your order #{order_number} has been delivered"
884
- msgstr ""
885
 
886
  #: includes/customizer/class-wc-delivered-email-customizer.php:116
887
  msgid ""
@@ -922,70 +940,75 @@ msgstr "Välj beställning..."
922
 
923
  #: includes/customizer/class-wc-email-customizer.php:211
924
  msgid "Receipts"
925
- msgstr ""
926
 
927
  #: includes/customizer/class-wc-email-customizer.php:212
928
  msgid ""
929
  "Enter emails use variables such as {customer_email}. Multiple emails can be "
930
  "separated by commas."
931
  msgstr ""
 
 
932
 
933
  #: includes/customizer/class-wc-email-customizer.php:235
934
  #: includes/customizer/class-wc-email-customizer.php:258
935
  msgid "Available variables: {site_title}, {order_number}"
936
- msgstr ""
937
 
938
  #: includes/customizer/class-wc-email-customizer.php:281
939
  msgid ""
940
  "available variables: {site_title}, {customer_email}, {customer_first_name}, "
941
  "{customer_last_name}, {customer_username}, {order_number}"
942
  msgstr ""
 
 
 
943
 
944
  #: includes/customizer/class-wc-email-customizer.php:300
945
  msgid "Display tracking details"
946
- msgstr ""
947
 
948
  #: includes/customizer/class-wc-email-customizer.php:316
949
  msgid "Display order details"
950
- msgstr ""
951
 
952
  #: includes/customizer/class-wc-email-customizer.php:333
953
  msgid "Display Shipping Address"
954
- msgstr ""
955
 
956
  #: includes/customizer/class-wc-email-customizer.php:350
957
  msgid "Display Billing Address"
958
- msgstr ""
959
 
960
  #: includes/customizer/class-wc-email-customizer.php:367
961
  msgid "Enable Google Analytics tracking"
962
- msgstr ""
963
 
964
  #: includes/customizer/class-wc-email-customizer.php:385
965
  msgid ""
966
  "This will be appended to URL in the email content – e.g. "
967
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
968
  msgstr ""
 
 
969
 
970
  #: includes/customizer/class-wc-failure-email-customizer.php:112
971
  msgid "Your order #{order_number} is Failed Attempt"
972
- msgstr "Din beställning # {order_nummer} misslyckades"
973
 
974
  #: includes/customizer/class-wc-failure-email-customizer.php:114
975
  msgid ""
976
  "Hi there. we thought you'd like to know that your recent order from "
977
  "{site_title} is Failed Attempt"
978
- msgstr ""
979
- "Hallå där. vi trodde att du vill veta att din senaste beställning från "
980
- "{site_title} misslyckades"
981
 
982
  #: includes/customizer/class-wc-failure-email-customizer.php:144
983
  msgid "Failed Attempt shipment status email"
984
- msgstr "Det gick inte att försöka e-postmeddelanden om leveransstatus"
985
 
986
  #: includes/customizer/class-wc-failure-email-customizer.php:159
987
  msgid "Enable Failed Attempt shipment status email"
988
- msgstr "Aktivera misslyckat försök e-postmeddelanden om leveransstatus"
989
 
990
  #: includes/customizer/class-wc-intransit-email-customizer.php:114
991
  msgid "Your order #{order_number} is in transit"
@@ -1060,7 +1083,7 @@ msgstr "Sändningsnummer"
1060
  #: includes/customizer/class-wc-tracking-info-customizer.php:136
1061
  #: includes/customizer/class-wc-tracking-info-customizer.php:344
1062
  msgid "Shipped Date"
1063
- msgstr "Skickat datum"
1064
 
1065
  #: includes/customizer/class-wc-tracking-info-customizer.php:162
1066
  msgid ""
@@ -1072,19 +1095,19 @@ msgstr ""
1072
 
1073
  #: includes/customizer/class-wc-tracking-info-customizer.php:182
1074
  msgid "Tracking Display Position"
1075
- msgstr "Spårar visningsposition"
1076
 
1077
  #: includes/customizer/class-wc-tracking-info-customizer.php:186
1078
  msgid "Before Order Details"
1079
- msgstr "Innan orderdetaljer"
1080
 
1081
  #: includes/customizer/class-wc-tracking-info-customizer.php:187
1082
  msgid "After Order Details"
1083
- msgstr "Efter beställningsinformation"
1084
 
1085
  #: includes/customizer/class-wc-tracking-info-customizer.php:202
1086
  msgid "Main Header text"
1087
- msgstr "Huvudtexttext"
1088
 
1089
  #: includes/customizer/class-wc-tracking-info-customizer.php:209
1090
  #: templates/pip/tracking-info.php:17
@@ -1097,11 +1120,11 @@ msgstr "Ytterligare text"
1097
 
1098
  #: includes/customizer/class-wc-tracking-info-customizer.php:245
1099
  msgid "Table Layout"
1100
- msgstr "Tabelllayout"
1101
 
1102
  #: includes/customizer/class-wc-tracking-info-customizer.php:260
1103
  msgid "Display Shipment Provider image"
1104
- msgstr "Visa leverantörens bild"
1105
 
1106
  #: includes/customizer/class-wc-tracking-info-customizer.php:277
1107
  msgid "Hide date"
@@ -1117,7 +1140,7 @@ msgstr "Rubriktext - Sändningsnummerkolumn"
1117
 
1118
  #: includes/customizer/class-wc-tracking-info-customizer.php:337
1119
  msgid "Shipped Date Header Text"
1120
- msgstr "Rubriktext - 'Skickat datum'-kolumn"
1121
 
1122
  #: includes/customizer/class-wc-tracking-info-customizer.php:358
1123
  msgid "Track Label"
@@ -1155,7 +1178,7 @@ msgstr "Välj"
1155
 
1156
  #: includes/customizer/class-wc-tracking-info-customizer.php:499
1157
  msgid "Table text align"
1158
- msgstr "Tabelltext anpassas"
1159
 
1160
  #: includes/customizer/class-wc-tracking-info-customizer.php:504
1161
  msgid "Left"
@@ -1171,19 +1194,19 @@ msgstr "Centrera"
1171
 
1172
  #: includes/customizer/class-wc-tracking-info-customizer.php:525
1173
  msgid "Table header font size"
1174
- msgstr "Tabellrubrikstilsstorlek"
1175
 
1176
  #: includes/customizer/class-wc-tracking-info-customizer.php:544
1177
  msgid "Table header font color"
1178
- msgstr "Tabellhuvud typsnittsfärg"
1179
 
1180
  #: includes/customizer/class-wc-tracking-info-customizer.php:560
1181
  msgid "Table content font size"
1182
- msgstr "Tabellens innehållsstorlek"
1183
 
1184
  #: includes/customizer/class-wc-tracking-info-customizer.php:577
1185
  msgid "Table content font color"
1186
- msgstr "Tabellinnehåll typsnittsfärg"
1187
 
1188
  #: includes/customizer/class-wc-tracking-info-customizer.php:593
1189
  msgid "Content line height"
@@ -1195,19 +1218,19 @@ msgstr "Innehåll - Fetstil"
1195
 
1196
  #: includes/customizer/class-wc-tracking-info-customizer.php:636
1197
  msgid "Track Link"
1198
- msgstr "Spårlänk"
1199
 
1200
  #: includes/customizer/class-wc-tracking-info-customizer.php:650
1201
  msgid "Track Link Font Color"
1202
- msgstr "Spårlänksteckensfärg"
1203
 
1204
  #: includes/customizer/class-wc-tracking-info-customizer.php:666
1205
  msgid "Track Link Background Color"
1206
- msgstr "Spårlänk bakgrundsfärg"
1207
 
1208
  #: includes/customizer/class-wc-tracking-info-customizer.php:681
1209
  msgid "Track link Border"
1210
- msgstr "Spårlänk gränsen"
1211
 
1212
  #: includes/customizer/class-wc-tracking-page-customizer.php:167
1213
  msgid "Header Color"
@@ -1247,54 +1270,58 @@ msgstr "Sändningsinformation - Tabellmarginal topp/botten(px)"
1247
 
1248
  #: includes/emails/class-shipment-delivered-email.php:32
1249
  msgid "Delivered order"
1250
- msgstr ""
1251
 
1252
  #: includes/emails/class-shipment-delivered-email.php:33
1253
  msgid ""
1254
  "Order delivered emails are sent to customers when their orders are marked "
1255
  "delivered and usually indicate that their orders have been shipped."
1256
  msgstr ""
 
 
 
1257
 
1258
  #: includes/emails/class-shipment-delivered-email.php:228
1259
  msgid "Enable this email notification"
1260
- msgstr ""
1261
 
1262
  #: includes/emails/class-shipment-delivered-email.php:232
1263
  msgid "Recipient(s)"
1264
- msgstr ""
1265
 
1266
  #. %s: WP admin email
1267
  #: includes/emails/class-shipment-delivered-email.php:235
1268
  #, php-format
1269
  msgid "Enter recipients (comma separated) for this email. Defaults to %s."
1270
  msgstr ""
 
1271
 
1272
  #: includes/emails/class-shipment-delivered-email.php:241
1273
  msgid "Subject"
1274
- msgstr ""
1275
 
1276
  #. %s: list of placeholders
1277
  #: includes/emails/class-shipment-delivered-email.php:245
1278
  #: includes/emails/class-shipment-delivered-email.php:254
1279
  #, php-format
1280
  msgid "Available placeholders: %s"
1281
- msgstr ""
1282
 
1283
  #: includes/emails/class-shipment-delivered-email.php:259
1284
  msgid "Email type"
1285
- msgstr ""
1286
 
1287
  #: includes/emails/class-shipment-delivered-email.php:261
1288
  msgid "Choose which format of email to send."
1289
- msgstr ""
1290
 
1291
  #: includes/emails/class-shipment-delivered-email.php:269
1292
  msgid "\" >Click Here</a>"
1293
- msgstr ""
1294
 
1295
  #: includes/emails/class-shipment-delivered-email.php:270
1296
  msgid "Edit in customizer"
1297
- msgstr ""
1298
 
1299
  #: includes/views/admin_options_bulk_upload.php:5
1300
  msgid "Upload CSV"
@@ -1351,7 +1378,7 @@ msgstr "Allmänt"
1351
  #: includes/views/admin_options_settings.php:10
1352
  #: includes/views/admin_options_settings.php:19
1353
  msgid "Delivered Order Status"
1354
- msgstr "Levererad orderstatus"
1355
 
1356
  #: includes/views/admin_options_settings.php:12
1357
  msgid "Tracking Info Display Designer"
@@ -1360,7 +1387,7 @@ msgstr "Sändningsinformation - Anpassare"
1360
  #: includes/views/admin_options_settings.php:15
1361
  #: includes/views/admin_options_trackship_integration.php:19
1362
  msgid "General Settings"
1363
- msgstr "Allmänna Inställningar"
1364
 
1365
  #: includes/views/admin_options_settings.php:24
1366
  #: includes/views/admin_options_trackship_integration.php:25
@@ -1375,41 +1402,41 @@ msgstr "Lägg till anpassad fraktleverantör"
1375
  #: includes/views/admin_options_shipping_provider.php:101
1376
  #: includes/views/admin_options_shipping_provider.php:135
1377
  msgid "Shiping Country"
1378
- msgstr "Fraktland"
1379
 
1380
  #: includes/views/admin_options_shipping_provider.php:102
1381
  #: includes/views/admin_options_shipping_provider.php:136
1382
  msgid "Global"
1383
- msgstr ""
1384
 
1385
  #: includes/views/admin_options_shipping_provider.php:128
1386
  msgid "Edit Custom Shipping Provider"
1387
- msgstr "Redigera anpassad leveransleverantör"
1388
 
1389
  #: includes/views/admin_options_shipping_provider.php:163
1390
  #: includes/views/admin_options_shipping_provider.php:170
1391
  msgid "Sync Providers"
1392
- msgstr "Synkroniseringsleverantörer"
1393
 
1394
  #: includes/views/admin_options_shipping_provider.php:164
1395
  msgid "Do you really want to sync all providers?"
1396
- msgstr "Vill du verkligen synkronisera alla leverantörer?"
1397
 
1398
  #: includes/views/admin_options_shipping_provider.php:166
1399
  msgid "Providers Added"
1400
- msgstr "Leverantörer tillagda"
1401
 
1402
  #: includes/views/admin_options_shipping_provider.php:167
1403
  msgid "Providers Updated"
1404
- msgstr "Leverantörer uppdaterade"
1405
 
1406
  #: includes/views/admin_options_shipping_provider.php:168
1407
  msgid "Providers Deleted"
1408
- msgstr "Leverantörer raderade"
1409
 
1410
  #: includes/views/admin_options_shipping_provider.php:171
1411
  msgid "Close"
1412
- msgstr "Stänga"
1413
 
1414
  #: includes/views/admin_options_trackship_integration.php:13
1415
  #: includes/views/admin_options_trackship_integration.php:35
@@ -1418,7 +1445,7 @@ msgstr "Spårningssida"
1418
 
1419
  #: includes/views/admin_options_trackship_integration.php:16
1420
  msgid "Shipment Status Notifications"
1421
- msgstr "Meddelanden om leveransstatus"
1422
 
1423
  #: includes/views/admin_options_trackship_integration.php:40
1424
  msgid "Click to preview the tracking page"
@@ -1426,53 +1453,53 @@ msgstr "Klicka för att förhandsgranska spårningssidan"
1426
 
1427
  #: includes/views/admin_options_trackship_integration.php:41
1428
  msgid "PLEASE NOTE - make sure to save your settings before preview."
1429
- msgstr ""
1430
- "Observera - se till att spara dina inställningar innan förhandsgranskning."
1431
 
1432
  #: includes/views/admin_options_trackship_integration.php:53
1433
  msgid "Shipment Status Notifications "
1434
- msgstr "Meddelanden om leveransstatus"
1435
 
1436
  #: includes/views/admin_options_trackship_integration.php:81
1437
  msgid ""
1438
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1439
  "the way."
1440
  msgstr ""
1441
- "Transportören har accepterat eller hämtat frakt från avsändaren. Sändningen "
1442
- "är väg."
1443
 
1444
  #: includes/views/admin_options_trackship_integration.php:95
1445
  msgid "Shipment is returned to sender"
1446
- msgstr "Frakt returneras till avsändaren"
1447
 
1448
  #: includes/views/admin_options_trackship_integration.php:109
1449
  msgid "The shipment is ready to pickup."
1450
- msgstr "Leveransen är redo att hämtas."
1451
 
1452
  #: includes/views/admin_options_trackship_integration.php:122
1453
  msgid "Carrier is about to deliver the shipment"
1454
- msgstr "Carrier håller att leverera leveransen"
1455
 
1456
  #: includes/views/admin_options_trackship_integration.php:136
1457
  msgid "The shipment was delivered successfully"
1458
- msgstr "Leveransen levererades framgångsrikt"
1459
 
1460
  #: includes/views/admin_options_trackship_integration.php:137
1461
  msgid ""
1462
  "You already have delivered email enabled, to enable this email you'll need "
1463
  "to disable the order status delivered in settings."
1464
  msgstr ""
1465
- "Du har redan levererat e-post aktiverat, för att aktivera det här e-"
1466
- "postmeddelandet måste du inaktivera orderstatusen som levererats i "
1467
- "inställningarna."
1468
 
1469
  #: includes/views/admin_options_trackship_integration.php:151
1470
  msgid ""
1471
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1472
  "will try to deliver the package again."
1473
  msgstr ""
1474
- "Carrier försökte leverera men misslyckades, och lämnar vanligtvis ett "
1475
- "meddelande och kommer att försöka leverera paketet igen."
 
1476
 
1477
  #: includes/views/html-tracking-info-design-preview.php:60
1478
  msgid "USPS"
@@ -1480,15 +1507,15 @@ msgstr "USPS"
1480
 
1481
  #: includes/views/zorem_admin_sidebar.php:8
1482
  msgid "Leave your review"
1483
- msgstr ""
1484
 
1485
  #: includes/views/zorem_admin_ts_sidebar.php:5
1486
  msgid "Dashboard"
1487
- msgstr ""
1488
 
1489
  #: includes/views/zorem_admin_ts_sidebar.php:7
1490
  msgid "Documentation"
1491
- msgstr ""
1492
 
1493
  #: templates/emails/tracking-info.php:138
1494
  msgid "Status"
@@ -1511,3 +1538,258 @@ msgstr "Orderdatum:"
1511
  #: templates/emails/plain/tracking-info.php:18
1512
  msgid "TRACKING INFORMATION"
1513
  msgstr "SÄNDNINGSINFORMATION"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2019-09-06 11:44+0000\n"
6
+ "PO-Revision-Date: 2019-09-10 11:55+0200\n"
7
+ "Last-Translator: Mikael Grönholm <mikael@gronholm.nu>\n"
8
  "Language-Team: Swedish\n"
9
  "Language: sv_SE\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
+ "X-Generator: Poedit 2.2.3\n"
15
+ "X-Loco-Version: 2.2.2; wp-5.1.1\n"
16
 
17
  #: woocommerce-advanced-shipment-tracking.php:112
18
  #, php-format
20
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
21
  "Shipment Tracking!"
22
  msgstr ""
23
+ "Vänligen installera och aktivera %sWooCommerce%s för att kunna använda "
24
  "WooCommerce Advanced Shipping Tracking!"
25
 
26
  #: woocommerce-advanced-shipment-tracking.php:390
27
  #: includes/views/admin_options_settings.php:21
28
  #, php-format
29
  msgid ""
30
+ "<strong>PLEASE NOTE</strong> - If you use the custom order status \"Delivered"
31
+ "\", when you deactivate the plugin, you must register this order status in "
32
+ "function.php in order to see these orders in the orders admin. You can find "
33
+ "the <a href=\"%s\" target=\"blank\">snippet</a> to use in functions.php here "
34
+ "or you can manually change all your \"delivered\" order to \"completed\" "
35
+ "before deactivating the plugin."
36
  msgstr ""
37
 
38
  #: includes/class-wc-advanced-shipment-tracking-admin.php:209
72
  #: includes/class-wc-advanced-shipment-tracking-admin.php:261
73
  #: includes/class-wc-advanced-shipment-tracking-admin.php:290
74
  msgid "Updated Tracking"
75
+ msgstr "Uppdaterad sändningsinformation"
76
 
77
  #: includes/class-wc-advanced-shipment-tracking-admin.php:266
78
  #, php-format
79
  msgid "Updated Tracking <span class=\"count\">(%s)</span>"
80
  msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
81
+ msgstr[0] "Uppdaterad spårning <span class=\"count\">(%s)</span>"
82
+ msgstr[1] "Uppdaterad spårningar <span class=\"count\">(%s)</span>"
83
 
84
  #: includes/class-wc-advanced-shipment-tracking-admin.php:320
85
  msgid "Change status to delivered"
94
  "Get Shipment Status is limited to 100 orders at a time, please select up to "
95
  "100 orders."
96
  msgstr ""
97
+ "Hämta Sändningsstatus är begränsad till 100 sändningar i taget. Välj därför "
98
+ "max 100 sändningar."
99
 
100
  #: includes/class-wc-advanced-shipment-tracking-admin.php:667
101
  msgid "Order"
160
 
161
  #: includes/class-wc-advanced-shipment-tracking-admin.php:745
162
  msgid "TrackShip"
163
+ msgstr "TrackShip"
164
 
165
  #: includes/class-wc-advanced-shipment-tracking-admin.php:880
166
  msgid "Connected"
190
 
191
  #: includes/class-wc-advanced-shipment-tracking-admin.php:988
192
  msgid "TrackShip Connection Status"
193
+ msgstr "TrackShip anslutningsstatus"
194
 
195
  #: includes/class-wc-advanced-shipment-tracking-admin.php:995
196
  #: includes/emails/class-shipment-delivered-email.php:226
207
  "You have %s %s orders that you can track with TrackShip, you can send these "
208
  "shipments to TrackShip in Bulk."
209
  msgstr ""
210
+ "Du har %s %s ordrar som kan spåras via TrackShip, du kan skicka dessa "
211
+ "sändningar till TrackShip i Bulk."
212
 
213
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1009
214
  msgid "Get Shipment Status"
215
+ msgstr "Visa fraktstatus"
216
 
217
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1047
218
  msgid ""
219
  "You must add the shortcode [wcast-track-order] to the \"page name\" in order "
220
  "for the tracking page to work."
221
  msgstr ""
222
+ "Du måste lägga till kortkoden [wcast-track-order] till sidnamnet för att "
223
+ "spårningssidan ska fungera."
224
 
225
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1055
226
  msgid "Select Tracking Page"
248
  "Default \"mark as <span class=\"shipped_label\">shipped</span>\" checkbox "
249
  "state"
250
  msgstr ""
251
+ "Aktivera 'markera som <span class=\"shipped_label\">skickad</span>' "
252
+ "kryssrutan som standard"
253
 
254
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1146
255
  msgid ""
256
  "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
257
  "will be selected by default when adding tracking info to orders."
258
  msgstr ""
259
+ "Det här innebär att kryssrutan 'Markera som <span "
260
+ "class='shipped_label'>skickad</span>' alltid kommer att vara ikryssad som "
261
+ "standard när du lägger till sändningsinformation till en order."
262
 
263
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1148
264
  msgid "Completed"
265
+ msgstr "Färdigbehandlad"
266
 
267
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1149
268
  msgid ""
269
  "Default \"mark as <span class=\"shipped_label\">completed</span>\" checkbox "
270
  "state"
271
  msgstr ""
272
+ "Aktivera 'markera som <span class=\"shipped_label\">färdigbehandlad</span>' "
273
+ "kryssrutan som standard"
274
 
275
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1150
276
  msgid ""
277
  "This means that the 'mark as <span class='shipped_label'>completed</span>' "
278
  "will be selected by default when adding tracking info to orders."
279
  msgstr ""
280
+ "Det här innebär att kryssrutan 'Markera som <span "
281
+ "class='shipped_label'>färdigbehandlad</span>' alltid kommer att vara "
282
+ "ikryssad som standard när du lägger till sändningsinformation till en order."
283
 
284
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1156
285
  msgid "Rename the “Completed” Order status to “Shipped”"
287
 
288
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1169
289
  msgid "On which customer order status email to include tracking info?"
290
+ msgstr "Inkludera spårningsinformation för följande orderstatusar:"
 
291
 
292
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1170
293
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2192
294
  msgid "Cancelled"
295
+ msgstr "Avbruten"
296
 
297
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1171
298
  msgid "Customer Invoice"
300
 
301
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1172
302
  msgid "Refunded"
303
+ msgstr "Krediterad"
304
 
305
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1173
306
  msgid "Processing"
307
+ msgstr "Behandlas"
308
 
309
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1174
310
  msgid "Failed"
311
+ msgstr "Avbruten"
312
 
313
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1182
314
  msgid "Show tracking info in Invoice"
315
+ msgstr "Visa spårningsinformation faktura"
316
 
317
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1188
318
  msgid "Show tracking info in Packing Slip"
319
+ msgstr "Visa spårningsinformation följesedel"
320
 
321
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1205
322
  msgid "Enable a New Custom order status - “Delivered”"
354
  msgid ""
355
  "Change the \"Delivered\" orders to \"Completed\" when you deactivate the "
356
  "plugin"
357
+ msgstr ""
358
+ "Återställ ordrar med orderstatus \"Levererad\" till \"Färdigbehandlad\" när "
359
+ "du inaktiverar detta plugin."
360
 
361
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1238
362
  msgid "No, I will use the snippet"
363
+ msgstr "Nej, jag kommer använda kodavsnittet"
364
 
365
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1239
366
  msgid "Yes, change all Delivered orders to Completed"
367
+ msgstr ""
368
+ "Ja, ändra alla ordrar med status \"Levererad\" till \"Färdigbehandlade\""
369
 
370
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1241
371
  #, php-format
376
  "to use in functions.php %s or we can set to change all your \"delivered\" "
377
  "order to \"completed\"."
378
  msgstr ""
379
+ "PLEASE NOTE - If you use the custom order status \"Delivered\", when you "
380
+ "deactivate the plugin, you must register this order status in function.php "
381
+ "in order to see these orders in the orders admin. You can find the snippet "
382
+ "to use in functions.php %s or we can set to change all your \"delivered\" "
383
+ "order to \"completed\"."
384
 
385
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1560
386
  msgid "Get shipment status"
442
 
443
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1621
444
  msgid "Invalid User Key"
445
+ msgstr "Ogiltig användarnyckel"
446
 
447
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1687
448
  msgid "Resend delivered order notification"
450
 
451
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1745
452
  msgid "Shipped Order"
453
+ msgstr "Skickad order"
454
 
455
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1764
456
  msgid "Mark order as delivered"
457
+ msgstr "Markera order som levererad"
458
 
459
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1771
460
  msgid "Add Tracking"
461
+ msgstr "Lägg till sändningsinformation"
462
 
463
  #: includes/class-wc-advanced-shipment-tracking-admin.php:1797
464
  msgid "Change order status to"
468
  #: includes/views/admin_options_shipping_provider.php:88
469
  #, php-format
470
  msgid "You don't have any %s shipping providers."
471
+ msgstr "Du har inte valt några %s fraktleverantörer."
472
 
473
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2145
474
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2157
480
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2158
481
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2170
482
  msgid "hide details"
483
+ msgstr "dölj detaljer"
484
 
485
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2188
486
  msgid "Available for Pickup"
487
+ msgstr "Tillgänglig för upphämtning"
488
 
489
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2189
490
  msgid "Out for Delivery"
491
+ msgstr "Ute för leverans"
492
 
493
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2191
494
  #: includes/customizer/class-wcast-customizer.php:112
495
  #: includes/customizer/class-wc-failure-email-customizer.php:113
496
  #: includes/views/admin_options_trackship_integration.php:149
497
  msgid "Failed Attempt"
498
+ msgstr "Misslyckat leveransförsök"
499
 
500
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2193
501
  msgid "Carrier Unsupported"
502
+ msgstr "Fraktleverantören stöds inte"
503
 
504
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2195
505
  #: includes/class-wc-advanced-shipment-tracking-front.php:457
509
 
510
  #: includes/class-wc-advanced-shipment-tracking-admin.php:2200
511
  msgid "Filter by shipment status"
512
+ msgstr "Filtrera efter fraktstatus"
513
 
514
  #: includes/class-wc-advanced-shipment-tracking-front.php:138
515
  msgid ""
517
  "the \"Track\" button. This was given to you on your receipt and in the "
518
  "confirmation email you should have received."
519
  msgstr ""
520
+ "Ange ditt Order-ID i rutan nedan och tryck på 'Spåra'-knappen för att spåra "
521
+ "din beställning. Informationen återfinns på din faktura/följesedel och i "
522
+ "leveransbekräftelsen du fått via e-post."
523
 
524
  #: includes/class-wc-advanced-shipment-tracking-front.php:139
525
  msgid "Order ID"
555
  #: includes/class-wc-advanced-shipment-tracking-front.php:311
556
  #: includes/class-wc-advanced-shipment-tracking-front.php:666
557
  msgid "Order: "
558
+ msgstr "Order: "
559
 
560
  #: includes/class-wc-advanced-shipment-tracking-front.php:320
561
  #: includes/class-wc-advanced-shipment-tracking-front.php:324
562
  #: includes/class-wc-advanced-shipment-tracking-front.php:675
563
  #: includes/class-wc-advanced-shipment-tracking-front.php:679
564
  msgid "Estimated Delivery Date: "
565
+ msgstr "Beräknat leveransdatum: "
566
 
567
  #: includes/class-wc-advanced-shipment-tracking-front.php:429
568
  #: includes/class-wc-advanced-shipment-tracking-front.php:785
569
  msgid "Tracking Details"
570
+ msgstr "Spårningsdetaljer"
571
 
572
  #: includes/class-wc-advanced-shipment-tracking-front.php:448
573
  #: includes/class-wc-advanced-shipment-tracking-front.php:804
586
  "We added many improvements to %1$s, please help and give us a review :) "
587
  "Thanks!"
588
  msgstr ""
589
+ "Vi har gjort många förbättringar i %1$s. om du uppskattar vårt arbete med "
590
+ "pluginet, så lämna gärna en positiv recension :). Tack på förhand!"
591
 
592
  #: includes/class-wc-advanced-shipment-tracking.php:93
593
  #: includes/class-wc-advanced-shipment-tracking.php:244
594
  #: includes/customizer/class-wcast-customizer.php:30
595
  msgid "Shipment Tracking"
596
+ msgstr "Spåra försändelser"
597
 
598
  #: includes/class-wc-advanced-shipment-tracking.php:179
599
  #: includes/class-wc-advanced-shipment-tracking.php:351
600
  msgid "Change order to Shipped?"
601
+ msgstr "Ändra orderstatus till skickad?"
602
 
603
  #: includes/class-wc-advanced-shipment-tracking.php:181
604
  #: includes/class-wc-advanced-shipment-tracking.php:353
605
  msgid "Change order to Completed?"
606
+ msgstr "Ändra orderstatus till Färdigbehandlad?"
607
 
608
  #: includes/class-wc-advanced-shipment-tracking.php:186
609
  msgid "Add Tracking Number"
610
+ msgstr "Lägg till spårningsnummer"
611
 
612
  #: includes/class-wc-advanced-shipment-tracking.php:191
613
  #: includes/class-wc-advanced-shipment-tracking.php:369
662
 
663
  #: includes/customizer/class-wcast-customizer.php:39
664
  msgid "Shipment Status Emails"
665
+ msgstr "E-poststatusnotiser"
666
 
667
  #: includes/customizer/class-wcast-customizer.php:50
668
  msgid "Tracking info display"
855
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:330
856
  #: includes/customizer/class-wc-returntosender-email-customizer.php:331
857
  msgid "Google Analytics link tracking"
858
+ msgstr "Google Analytics länkspårning"
859
 
860
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:332
861
  #: includes/customizer/class-wc-delivered-email-customizer.php:331
864
  #: includes/customizer/class-wc-outfordelivery-email-customizer.php:331
865
  #: includes/customizer/class-wc-returntosender-email-customizer.php:332
866
  msgid "This will be appended to URL in the email content"
867
+ msgstr "Det här kommer att läggas till i URL:en i e-postmeddelanden"
868
 
869
  #: includes/customizer/class-wc-availableforpickup-email-customizer.php:353
870
  #: includes/customizer/class-wc-delivered-email-customizer.php:352
899
 
900
  #: includes/customizer/class-wc-delivered-email-customizer.php:114
901
  msgid "Your order #{order_number} has been delivered"
902
+ msgstr "Din beställning #{order_number} har levererats"
903
 
904
  #: includes/customizer/class-wc-delivered-email-customizer.php:116
905
  msgid ""
940
 
941
  #: includes/customizer/class-wc-email-customizer.php:211
942
  msgid "Receipts"
943
+ msgstr "Kvitton"
944
 
945
  #: includes/customizer/class-wc-email-customizer.php:212
946
  msgid ""
947
  "Enter emails use variables such as {customer_email}. Multiple emails can be "
948
  "separated by commas."
949
  msgstr ""
950
+ "Ange e-postadresser här eller använd variabler som {customer_email}. "
951
+ "Separera flera adresser med kommatecken."
952
 
953
  #: includes/customizer/class-wc-email-customizer.php:235
954
  #: includes/customizer/class-wc-email-customizer.php:258
955
  msgid "Available variables: {site_title}, {order_number}"
956
+ msgstr "Tillgängliga variabler: {site_title}, {order_number}"
957
 
958
  #: includes/customizer/class-wc-email-customizer.php:281
959
  msgid ""
960
  "available variables: {site_title}, {customer_email}, {customer_first_name}, "
961
  "{customer_last_name}, {customer_username}, {order_number}"
962
  msgstr ""
963
+ "Tillgängliga variabler: {site_title}, {customer_email}, "
964
+ "{customer_first_name}, {customer_last_name}, {customer_username}, "
965
+ "{order_number}"
966
 
967
  #: includes/customizer/class-wc-email-customizer.php:300
968
  msgid "Display tracking details"
969
+ msgstr "Visa sändningsinformation"
970
 
971
  #: includes/customizer/class-wc-email-customizer.php:316
972
  msgid "Display order details"
973
+ msgstr "Visa orderdetaljer"
974
 
975
  #: includes/customizer/class-wc-email-customizer.php:333
976
  msgid "Display Shipping Address"
977
+ msgstr "Visa leveransadress"
978
 
979
  #: includes/customizer/class-wc-email-customizer.php:350
980
  msgid "Display Billing Address"
981
+ msgstr "Visa fakturaadress"
982
 
983
  #: includes/customizer/class-wc-email-customizer.php:367
984
  msgid "Enable Google Analytics tracking"
985
+ msgstr "Aktivera Google Analytics länkspårning"
986
 
987
  #: includes/customizer/class-wc-email-customizer.php:385
988
  msgid ""
989
  "This will be appended to URL in the email content – e.g. "
990
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
991
  msgstr ""
992
+ "Det här kommer att läggas till i URL:en i e-postmeddelanden – e.g. "
993
+ "utm_source=ast&utm_medium=email&utm_campaign=delivered"
994
 
995
  #: includes/customizer/class-wc-failure-email-customizer.php:112
996
  msgid "Your order #{order_number} is Failed Attempt"
997
+ msgstr "Din beställning #{order_number} kunde inte levereras"
998
 
999
  #: includes/customizer/class-wc-failure-email-customizer.php:114
1000
  msgid ""
1001
  "Hi there. we thought you'd like to know that your recent order from "
1002
  "{site_title} is Failed Attempt"
1003
+ msgstr "Hej. Din leverans från {site_title} kunde inte levereras"
 
 
1004
 
1005
  #: includes/customizer/class-wc-failure-email-customizer.php:144
1006
  msgid "Failed Attempt shipment status email"
1007
+ msgstr "E-postmeddelande för Frakt-status - 'Misslyckades'"
1008
 
1009
  #: includes/customizer/class-wc-failure-email-customizer.php:159
1010
  msgid "Enable Failed Attempt shipment status email"
1011
+ msgstr "Aktivera e-postmeddelande för 'Misslyckad leverans'"
1012
 
1013
  #: includes/customizer/class-wc-intransit-email-customizer.php:114
1014
  msgid "Your order #{order_number} is in transit"
1083
  #: includes/customizer/class-wc-tracking-info-customizer.php:136
1084
  #: includes/customizer/class-wc-tracking-info-customizer.php:344
1085
  msgid "Shipped Date"
1086
+ msgstr "Skickas"
1087
 
1088
  #: includes/customizer/class-wc-tracking-info-customizer.php:162
1089
  msgid ""
1095
 
1096
  #: includes/customizer/class-wc-tracking-info-customizer.php:182
1097
  msgid "Tracking Display Position"
1098
+ msgstr "Position för Spårningsinformation"
1099
 
1100
  #: includes/customizer/class-wc-tracking-info-customizer.php:186
1101
  msgid "Before Order Details"
1102
+ msgstr "Före orderdetaljer"
1103
 
1104
  #: includes/customizer/class-wc-tracking-info-customizer.php:187
1105
  msgid "After Order Details"
1106
+ msgstr "Efter orderdetaljer"
1107
 
1108
  #: includes/customizer/class-wc-tracking-info-customizer.php:202
1109
  msgid "Main Header text"
1110
+ msgstr "Huvudrubriktext"
1111
 
1112
  #: includes/customizer/class-wc-tracking-info-customizer.php:209
1113
  #: templates/pip/tracking-info.php:17
1120
 
1121
  #: includes/customizer/class-wc-tracking-info-customizer.php:245
1122
  msgid "Table Layout"
1123
+ msgstr "Tabell layout"
1124
 
1125
  #: includes/customizer/class-wc-tracking-info-customizer.php:260
1126
  msgid "Display Shipment Provider image"
1127
+ msgstr "Visa miniatyr"
1128
 
1129
  #: includes/customizer/class-wc-tracking-info-customizer.php:277
1130
  msgid "Hide date"
1140
 
1141
  #: includes/customizer/class-wc-tracking-info-customizer.php:337
1142
  msgid "Shipped Date Header Text"
1143
+ msgstr "Rubriktext - 'Skickas'-kolumn"
1144
 
1145
  #: includes/customizer/class-wc-tracking-info-customizer.php:358
1146
  msgid "Track Label"
1178
 
1179
  #: includes/customizer/class-wc-tracking-info-customizer.php:499
1180
  msgid "Table text align"
1181
+ msgstr "Textjustering för tabell"
1182
 
1183
  #: includes/customizer/class-wc-tracking-info-customizer.php:504
1184
  msgid "Left"
1194
 
1195
  #: includes/customizer/class-wc-tracking-info-customizer.php:525
1196
  msgid "Table header font size"
1197
+ msgstr "Tabellrubrik - Textstorlek"
1198
 
1199
  #: includes/customizer/class-wc-tracking-info-customizer.php:544
1200
  msgid "Table header font color"
1201
+ msgstr "Tabellrubrik - Textfärg"
1202
 
1203
  #: includes/customizer/class-wc-tracking-info-customizer.php:560
1204
  msgid "Table content font size"
1205
+ msgstr "Tabellinnehåll - Textstorlek"
1206
 
1207
  #: includes/customizer/class-wc-tracking-info-customizer.php:577
1208
  msgid "Table content font color"
1209
+ msgstr "Tabellinnehåll - Textfärg"
1210
 
1211
  #: includes/customizer/class-wc-tracking-info-customizer.php:593
1212
  msgid "Content line height"
1218
 
1219
  #: includes/customizer/class-wc-tracking-info-customizer.php:636
1220
  msgid "Track Link"
1221
+ msgstr "Spårningslänk"
1222
 
1223
  #: includes/customizer/class-wc-tracking-info-customizer.php:650
1224
  msgid "Track Link Font Color"
1225
+ msgstr "Spårningslänk - Textfärg"
1226
 
1227
  #: includes/customizer/class-wc-tracking-info-customizer.php:666
1228
  msgid "Track Link Background Color"
1229
+ msgstr "Spårningslänk - Bakgrundsfärg"
1230
 
1231
  #: includes/customizer/class-wc-tracking-info-customizer.php:681
1232
  msgid "Track link Border"
1233
+ msgstr "Spårningslänk - Ram"
1234
 
1235
  #: includes/customizer/class-wc-tracking-page-customizer.php:167
1236
  msgid "Header Color"
1270
 
1271
  #: includes/emails/class-shipment-delivered-email.php:32
1272
  msgid "Delivered order"
1273
+ msgstr "Levererad order"
1274
 
1275
  #: includes/emails/class-shipment-delivered-email.php:33
1276
  msgid ""
1277
  "Order delivered emails are sent to customers when their orders are marked "
1278
  "delivered and usually indicate that their orders have been shipped."
1279
  msgstr ""
1280
+ "E-post med information om att ordern levererats skickas när en order "
1281
+ "markerats som levererad och innebär vanligtvis att en order således har "
1282
+ "skickats."
1283
 
1284
  #: includes/emails/class-shipment-delivered-email.php:228
1285
  msgid "Enable this email notification"
1286
+ msgstr "Aktivera e-postnotis"
1287
 
1288
  #: includes/emails/class-shipment-delivered-email.php:232
1289
  msgid "Recipient(s)"
1290
+ msgstr "Mottagare"
1291
 
1292
  #. %s: WP admin email
1293
  #: includes/emails/class-shipment-delivered-email.php:235
1294
  #, php-format
1295
  msgid "Enter recipients (comma separated) for this email. Defaults to %s."
1296
  msgstr ""
1297
+ "Ange mottagare (separerade med komma) för denna typ av e-post. Standard %s."
1298
 
1299
  #: includes/emails/class-shipment-delivered-email.php:241
1300
  msgid "Subject"
1301
+ msgstr "Ämne"
1302
 
1303
  #. %s: list of placeholders
1304
  #: includes/emails/class-shipment-delivered-email.php:245
1305
  #: includes/emails/class-shipment-delivered-email.php:254
1306
  #, php-format
1307
  msgid "Available placeholders: %s"
1308
+ msgstr "Tillgängliga platshållare: %s"
1309
 
1310
  #: includes/emails/class-shipment-delivered-email.php:259
1311
  msgid "Email type"
1312
+ msgstr "E-posttyp"
1313
 
1314
  #: includes/emails/class-shipment-delivered-email.php:261
1315
  msgid "Choose which format of email to send."
1316
+ msgstr "Välj format för e-postmeddelanden."
1317
 
1318
  #: includes/emails/class-shipment-delivered-email.php:269
1319
  msgid "\" >Click Here</a>"
1320
+ msgstr "\" >Klicka här</a>"
1321
 
1322
  #: includes/emails/class-shipment-delivered-email.php:270
1323
  msgid "Edit in customizer"
1324
+ msgstr "Redigera i anpassaren"
1325
 
1326
  #: includes/views/admin_options_bulk_upload.php:5
1327
  msgid "Upload CSV"
1378
  #: includes/views/admin_options_settings.php:10
1379
  #: includes/views/admin_options_settings.php:19
1380
  msgid "Delivered Order Status"
1381
+ msgstr "Orderstatus 'Levererad'"
1382
 
1383
  #: includes/views/admin_options_settings.php:12
1384
  msgid "Tracking Info Display Designer"
1387
  #: includes/views/admin_options_settings.php:15
1388
  #: includes/views/admin_options_trackship_integration.php:19
1389
  msgid "General Settings"
1390
+ msgstr "Allmänna inställningar"
1391
 
1392
  #: includes/views/admin_options_settings.php:24
1393
  #: includes/views/admin_options_trackship_integration.php:25
1402
  #: includes/views/admin_options_shipping_provider.php:101
1403
  #: includes/views/admin_options_shipping_provider.php:135
1404
  msgid "Shiping Country"
1405
+ msgstr "Leveransland"
1406
 
1407
  #: includes/views/admin_options_shipping_provider.php:102
1408
  #: includes/views/admin_options_shipping_provider.php:136
1409
  msgid "Global"
1410
+ msgstr "Global"
1411
 
1412
  #: includes/views/admin_options_shipping_provider.php:128
1413
  msgid "Edit Custom Shipping Provider"
1414
+ msgstr "Redigera anpassad fraktleverantör"
1415
 
1416
  #: includes/views/admin_options_shipping_provider.php:163
1417
  #: includes/views/admin_options_shipping_provider.php:170
1418
  msgid "Sync Providers"
1419
+ msgstr "Synkronisera leverantörer"
1420
 
1421
  #: includes/views/admin_options_shipping_provider.php:164
1422
  msgid "Do you really want to sync all providers?"
1423
+ msgstr "Vill du synkronisera alla dina leverantörer?"
1424
 
1425
  #: includes/views/admin_options_shipping_provider.php:166
1426
  msgid "Providers Added"
1427
+ msgstr "Fraktleverantörer tillagd"
1428
 
1429
  #: includes/views/admin_options_shipping_provider.php:167
1430
  msgid "Providers Updated"
1431
+ msgstr "Leverantörer uppdaterades"
1432
 
1433
  #: includes/views/admin_options_shipping_provider.php:168
1434
  msgid "Providers Deleted"
1435
+ msgstr "Leverantörer raderades"
1436
 
1437
  #: includes/views/admin_options_shipping_provider.php:171
1438
  msgid "Close"
1439
+ msgstr "Stäng"
1440
 
1441
  #: includes/views/admin_options_trackship_integration.php:13
1442
  #: includes/views/admin_options_trackship_integration.php:35
1445
 
1446
  #: includes/views/admin_options_trackship_integration.php:16
1447
  msgid "Shipment Status Notifications"
1448
+ msgstr "Leveransstatus notiser"
1449
 
1450
  #: includes/views/admin_options_trackship_integration.php:40
1451
  msgid "Click to preview the tracking page"
1453
 
1454
  #: includes/views/admin_options_trackship_integration.php:41
1455
  msgid "PLEASE NOTE - make sure to save your settings before preview."
1456
+ msgstr "OBS - spara inställningarna innan förhandsgranskning."
 
1457
 
1458
  #: includes/views/admin_options_trackship_integration.php:53
1459
  msgid "Shipment Status Notifications "
1460
+ msgstr "Fraktnotiser "
1461
 
1462
  #: includes/views/admin_options_trackship_integration.php:81
1463
  msgid ""
1464
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1465
  "the way."
1466
  msgstr ""
1467
+ "Fraktleverantören har accepterat eller hämtat upp försändelsen och är nu på "
1468
+ "väg till dig."
1469
 
1470
  #: includes/views/admin_options_trackship_integration.php:95
1471
  msgid "Shipment is returned to sender"
1472
+ msgstr "Försändelsen har returnerats till avsändaren."
1473
 
1474
  #: includes/views/admin_options_trackship_integration.php:109
1475
  msgid "The shipment is ready to pickup."
1476
+ msgstr "Försändelsen finns att hämta."
1477
 
1478
  #: includes/views/admin_options_trackship_integration.php:122
1479
  msgid "Carrier is about to deliver the shipment"
1480
+ msgstr "Försändelsen är under leverans."
1481
 
1482
  #: includes/views/admin_options_trackship_integration.php:136
1483
  msgid "The shipment was delivered successfully"
1484
+ msgstr "Försändelsen levererades"
1485
 
1486
  #: includes/views/admin_options_trackship_integration.php:137
1487
  msgid ""
1488
  "You already have delivered email enabled, to enable this email you'll need "
1489
  "to disable the order status delivered in settings."
1490
  msgstr ""
1491
+ "Du har redan aktiverat \"Levererat\"-meddelanden. För att aktivera denna typ "
1492
+ "av e-postmeddelanden så måste du inaktivera orderstatus \"Levererad\" i "
1493
+ "inställningar."
1494
 
1495
  #: includes/views/admin_options_trackship_integration.php:151
1496
  msgid ""
1497
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1498
  "will try to deliver the package again."
1499
  msgstr ""
1500
+ "Transportföretaget försökte leverera försändelsen men misslyckades. "
1501
+ "Vanligtvis lämnar budet ett meddelande eller en avi alternativt kommer de "
1502
+ "att försöka leverera paketet igen."
1503
 
1504
  #: includes/views/html-tracking-info-design-preview.php:60
1505
  msgid "USPS"
1507
 
1508
  #: includes/views/zorem_admin_sidebar.php:8
1509
  msgid "Leave your review"
1510
+ msgstr "Lämna recension"
1511
 
1512
  #: includes/views/zorem_admin_ts_sidebar.php:5
1513
  msgid "Dashboard"
1514
+ msgstr "Översiktspanel"
1515
 
1516
  #: includes/views/zorem_admin_ts_sidebar.php:7
1517
  msgid "Documentation"
1518
+ msgstr "Dokumentation"
1519
 
1520
  #: templates/emails/tracking-info.php:138
1521
  msgid "Status"
1538
  #: templates/emails/plain/tracking-info.php:18
1539
  msgid "TRACKING INFORMATION"
1540
  msgstr "SÄNDNINGSINFORMATION"
1541
+
1542
+ #~ msgid "Retry Trackship Api call for failed orders"
1543
+ #~ msgstr "Försök skicka API-data igen för alla misslyckade ordrar"
1544
+
1545
+ #~ msgid "Tracking: "
1546
+ #~ msgstr "Spårning: "
1547
+
1548
+ #~ msgid "Bulk import tracking info"
1549
+ #~ msgstr "Bulkimportera sändningsinformation"
1550
+
1551
+ #~ msgid ""
1552
+ #~ "Upload multiple tracking # to orders from CSV file. Option to download a "
1553
+ #~ "CSV file with example with the fields format:"
1554
+ #~ msgstr ""
1555
+ #~ "Ladda upp flera spårningar # till beställningar från CSV-filen. "
1556
+ #~ "Alternativ för att ladda ner en CSV-fil med exempel med fältformatet:"
1557
+
1558
+ #~ msgid "order_id - WooCommerce order id"
1559
+ #~ msgstr "order_id - WooCommerce Order-ID"
1560
+
1561
+ #~ msgid ""
1562
+ #~ "tracking_provider - Shipment Provider - Must match the shipping Provider "
1563
+ #~ "name as in the advanced shipment tracking settings."
1564
+ #~ msgstr ""
1565
+ #~ "tracking_provider - Fraktleverantör - Måste matcha fraktleverantörens "
1566
+ #~ "namn som angetts i de avancerade inställningarna."
1567
+
1568
+ #~ msgid "tracking_number - Tracking code / number"
1569
+ #~ msgstr "tracking_number - Sändningskod / -nummer"
1570
+
1571
+ #~ msgid ""
1572
+ #~ "date_shipped (Optional) Shipping date - Date format DD/MM/YYYY - if not "
1573
+ #~ "added, we set the upload date."
1574
+ #~ msgstr ""
1575
+ #~ "date_shipped (Valfritt) Leveransdatum - Datumformat DD / MM / ÅÅÅÅ - om "
1576
+ #~ "ej tillagt, så ställer vi in uppladdningsdatum."
1577
+
1578
+ #~ msgid ""
1579
+ #~ "status_shipped (1=yes, 0=no) (Optional) Change order status to "
1580
+ #~ "“Shipped” (completed) - if this field in null, we will treat it as 0"
1581
+ #~ msgstr ""
1582
+ #~ "status_shipped (1 = ja, 0 = nej) (Valfritt) Ändra orderstatus till "
1583
+ #~ "\"Skickad\" (slutfört) - om det här fältet är tomt, så behandlar vi det "
1584
+ #~ "som 0"
1585
+
1586
+ #~ msgid "Uninstall Options"
1587
+ #~ msgstr "Avinstallationsalternativ"
1588
+
1589
+ #~ msgid "API key"
1590
+ #~ msgstr "API-nyckel"
1591
+
1592
+ #~ msgid "Select success color for tracking page"
1593
+ #~ msgstr "Välj färg för lyckade händelser på spårningssidan"
1594
+
1595
+ #~ msgid "Select warning color for tracking page"
1596
+ #~ msgstr "Välj färg för varningar/undantag på spårningssidan"
1597
+
1598
+ #~ msgid "Rename the “Completed Order” to “Shipped Order” in email settings"
1599
+ #~ msgstr ""
1600
+ #~ "Ändra namn på orderstatusen 'Färdigbehandlad' till 'Skickad' för e-"
1601
+ #~ "postmeddelanden"
1602
+
1603
+ #~ msgid "None"
1604
+ #~ msgstr "Inget"
1605
+
1606
+ #~ msgid "Shipping URL"
1607
+ #~ msgstr "Spårnings-URL"
1608
+
1609
+ #~ msgid ""
1610
+ #~ "You can add tracking number parameter like this - http://shippingprovider."
1611
+ #~ "com?tracking_number=%number% , %number% - parameter"
1612
+ #~ msgstr ""
1613
+ #~ "Du kan lägga till spårningsparametrar så här - http://shippingprovider."
1614
+ #~ "com?tracking_number=%number%,% number% - parameter"
1615
+
1616
+ #~ msgid "Update"
1617
+ #~ msgstr "Uppdatering"
1618
+
1619
+ #~ msgid "Please select default provider"
1620
+ #~ msgstr "Välj standardleverantör"
1621
+
1622
+ #~ msgid "No Estimated Delivery Date"
1623
+ #~ msgstr "Inget beräknat leveransdatum"
1624
+
1625
+ #~ msgid "Shipment Progress"
1626
+ #~ msgstr "Leveransstatus"
1627
+
1628
+ #~ msgid "Last Updated:"
1629
+ #~ msgstr "Senast uppdaterad:"
1630
+
1631
+ #~ msgid ""
1632
+ #~ "Now, you can change (and preview) the style of the shipment tracking "
1633
+ #~ "display on order email and customer account. setup your design"
1634
+ #~ msgstr ""
1635
+ #~ "Nu kan du ändra (och förhandsgranska) designen på sändningsinformationen "
1636
+ #~ "i e-postmeddelanden och i Kundkonton. Anpassa"
1637
+
1638
+ #~ msgid "Pre Transit shipment status email"
1639
+ #~ msgstr "E-postmeddelande för Frakt-status - Registrerad för sändning"
1640
+
1641
+ #~ msgid "Your order #{order_number} is pre transit"
1642
+ #~ msgstr "Din beställning #{order_number} är färdig att skickas"
1643
+
1644
+ #~ msgid ""
1645
+ #~ "Hi there. we thought you'd like to know that your recent order from "
1646
+ #~ "{site_title} is pre transit"
1647
+ #~ msgstr ""
1648
+ #~ "Hej. Din beställning från {site_title} har registrerats för sändning"
1649
+
1650
+ #~ msgid "Enable Pre Transit shipment status email"
1651
+ #~ msgstr ""
1652
+ #~ "Aktivera e-postmeddelande för Frakt-status - Registrerad för sändning"
1653
+
1654
+ #~ msgid "Remove date from tracking info"
1655
+ #~ msgstr "Dölj datum i sändningsinformationen"
1656
+
1657
+ #~ msgid "Header/content text align"
1658
+ #~ msgstr "Textjustering för tabellrubriker & innehåll"
1659
+
1660
+ #~ msgid "Shipment Tracking Link"
1661
+ #~ msgstr "Spårningslänk"
1662
+
1663
+ #~ msgid "Select Shiping Provider which you want to use in order."
1664
+ #~ msgstr "Välj de fraktleverantörer du vill aktivera"
1665
+
1666
+ #~ msgid "Default shipping provider :"
1667
+ #~ msgstr "Standardleverantör:"
1668
+
1669
+ #~ msgid "Enabled"
1670
+ #~ msgstr "Aktiverad"
1671
+
1672
+ #~ msgid "Disabled"
1673
+ #~ msgstr "Inaktiverad"
1674
+
1675
+ #~ msgid "Advanced Shipment Tracking for WooCommerce"
1676
+ #~ msgstr "Advanced Shipment Tracking for WooCommerce"
1677
+
1678
+ #~ msgid "Y-m-d"
1679
+ #~ msgstr "Y-m-d"
1680
+
1681
+ #~ msgid "Available For Pickup shippment status email"
1682
+ #~ msgstr "E-postmeddelande för Frakt-status - Tillgänglig för upphämtning"
1683
+
1684
+ #~ msgid ""
1685
+ #~ "<code>{site_title}<br>{customer_email}<br>{customer_first_name}"
1686
+ #~ "<br>{customer_last_name}<br>{customer_username}<br>{order_number}"
1687
+ #~ "<br>{est_delivery_date}</code>"
1688
+ #~ msgstr ""
1689
+ #~ "<code>{site_title}<br>{customer_email}<br>{customer_first_name}"
1690
+ #~ "<br>{customer_last_name}<br>{customer_username}<br>{order_number}"
1691
+ #~ "<br>{est_delivery_date}</code>"
1692
+
1693
+ #~ msgid "Delivered shippment status email"
1694
+ #~ msgstr "E-postmeddelande för Frakt-status - 'Levererad'"
1695
+
1696
+ #~ msgid "Out For Delivery shippment status email"
1697
+ #~ msgstr "E-postmeddelande för Frakt-status - Ute för leverans"
1698
+
1699
+ #~ msgid "Return To Sender shippment status email"
1700
+ #~ msgstr "E-postmeddelande för Frakt-status - Åter till avsändare"
1701
+
1702
+ #~ msgid "Edit Tracking Page"
1703
+ #~ msgstr "Redigera spårningssida"
1704
+
1705
+ #~ msgid ""
1706
+ #~ "Add shipment tracking information to your WooCommerce orders and provide "
1707
+ #~ "customers with an easy way to track their orders. Shipment tracking Info "
1708
+ #~ "will appear in customers accounts (in the order panel) and in WooCommerce "
1709
+ #~ "order complete email."
1710
+ #~ msgstr ""
1711
+ #~ "Add shipment tracking information to your WooCommerce orders and provide "
1712
+ #~ "customers with an easy way to track their orders. Shipment tracking Info "
1713
+ #~ "will appear in customers accounts (in the order panel) and in WooCommerce "
1714
+ #~ "order complete email."
1715
+
1716
+ #~ msgid "http://www.zorem.com/shop"
1717
+ #~ msgstr "http://www.zorem.com/shop"
1718
+
1719
+ #~ msgid "zorem"
1720
+ #~ msgstr "zorem"
1721
+
1722
+ #~ msgid "http://www.zorem.com/"
1723
+ #~ msgstr "http://www.zorem.com/"
1724
+
1725
+ #~ msgid "Email sub heading"
1726
+ #~ msgstr "E-post - underrubrik"
1727
+
1728
+ #~ msgid "Please enter email sub heading here"
1729
+ #~ msgstr "Ange e-post underrubrik här"
1730
+
1731
+ #~ msgid "Sorry, you cannot list resources."
1732
+ #~ msgstr "Tyvärr, du saknar behörighet för att lista detta."
1733
+
1734
+ #~ msgid "Sorry, you are not allowed to create resources."
1735
+ #~ msgstr "Tyvärr, saknar behörighet för detta."
1736
+
1737
+ #~ msgid "Sorry, you cannot view this resource."
1738
+ #~ msgstr "Tyvärr, du saknar behörighet för att visa detta."
1739
+
1740
+ #~ msgid "Sorry, you are not allowed to delete this resource."
1741
+ #~ msgstr "Tyvärr, du saknar behörighet för att bort detta."
1742
+
1743
+ #~ msgid "Cannot create existing order shipment tracking."
1744
+ #~ msgstr "Det går inte att skapa redan befintlig spårningsinformation."
1745
+
1746
+ #~ msgid "Invalid shipment tracking ID."
1747
+ #~ msgstr "Ogiltigt Spårningsnummer."
1748
+
1749
+ #~ msgid "The shipment tracking cannot be deleted."
1750
+ #~ msgstr "Spårningsinformationen kan inte tas bort."
1751
+
1752
+ #~ msgid "Unique identifier for shipment tracking."
1753
+ #~ msgstr "Unik identifierare för leveransspårning."
1754
+
1755
+ #~ msgid "Tracking provider name."
1756
+ #~ msgstr "Fraktleverantörens namn."
1757
+
1758
+ #~ msgid "Custom tracking provider name."
1759
+ #~ msgstr "Anpassat fraktleverantörsnamn."
1760
+
1761
+ #~ msgid "Custom tracking provider link."
1762
+ #~ msgstr "Anpassad spårningslänk."
1763
+
1764
+ #~ msgid "Tracking number."
1765
+ #~ msgstr "Spårningsnummer."
1766
+
1767
+ #~ msgid "Date when package was shipped."
1768
+ #~ msgstr "Datum då paketet skickades."
1769
+
1770
+ #~ msgid "https://www.zorem.com/shop/woocommerce-advanced-shipment-tracking/"
1771
+ #~ msgstr "https://www.zorem.com/shop/woocommerce-advanced-shipment-tracking/"
1772
+
1773
+ #~ msgid "Click here to preview your design"
1774
+ #~ msgstr "Klicka här för att förhandsgranska din design"
1775
+
1776
+ #~ msgid "Trigger"
1777
+ #~ msgstr "Utlösare"
1778
+
1779
+ #~ msgid "This functionality only available for trackship premium customers."
1780
+ #~ msgstr "Den här funktionen är endast tillgänglig för Premium-kunder."
1781
+
1782
+ #~ msgid "Label"
1783
+ #~ msgstr "Rubrik"
1784
+
1785
+ #~ msgid "For Internal Use"
1786
+ #~ msgstr "För intern användning"
1787
+
1788
+ #~ msgid "Variables"
1789
+ #~ msgstr "Variabler"
1790
+
1791
+ #~ msgid "Copied"
1792
+ #~ msgstr "Kopierad"
1793
+
1794
+ #~ msgid "Select Delivered Email Type"
1795
+ #~ msgstr "Välj e-posttyp för 'Levererad'"
lang/woo-advanced-shipment-tracking.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2019-09-06 11:44+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
@@ -15,15 +15,20 @@ msgstr ""
15
  "X-Generator: Loco https://localise.biz/\n"
16
  "X-Loco-Version: 2.2.0; wp-5.0.3"
17
 
18
- #: woocommerce-advanced-shipment-tracking.php:112
19
  #, php-format
20
  msgid ""
21
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
22
  "Shipment Tracking!"
23
  msgstr ""
24
 
25
- #: woocommerce-advanced-shipment-tracking.php:390
26
- #: includes/views/admin_options_settings.php:21
 
 
 
 
 
27
  #, php-format
28
  msgid ""
29
  "<strong>PLEASE NOTE</strong> - If you use the custom order status "
@@ -34,1190 +39,1032 @@ msgid ""
34
  "\"completed\" before deactivating the plugin."
35
  msgstr ""
36
 
37
- #: includes/class-wc-advanced-shipment-tracking-admin.php:209
38
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1144
39
  msgid "Shipped"
40
  msgstr ""
41
 
42
- #: includes/class-wc-advanced-shipment-tracking-admin.php:226
43
  #, php-format
44
  msgid "Shipped <span class=\"count\">(%s)</span>"
45
  msgid_plural "Shipped <span class=\"count\">(%s)</span>"
46
  msgstr[0] ""
47
  msgstr[1] ""
48
 
49
- #: includes/class-wc-advanced-shipment-tracking-admin.php:240
50
  msgid "Change status to shipped"
51
  msgstr ""
52
 
53
- #: includes/class-wc-advanced-shipment-tracking-admin.php:250
54
- #: includes/class-wc-advanced-shipment-tracking-admin.php:279
55
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1594
56
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1785
57
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2190
58
- #: includes/customizer/class-wcast-customizer.php:104
59
- #: includes/customizer/class-wc-delivered-email-customizer.php:115
60
- #: includes/views/admin_options_trackship_integration.php:134
61
  msgid "Delivered"
62
  msgstr ""
63
 
64
- #: includes/class-wc-advanced-shipment-tracking-admin.php:255
65
  #, php-format
66
  msgid "Delivered <span class=\"count\">(%s)</span>"
67
  msgid_plural "Delivered <span class=\"count\">(%s)</span>"
68
  msgstr[0] ""
69
  msgstr[1] ""
70
 
71
- #: includes/class-wc-advanced-shipment-tracking-admin.php:261
72
- #: includes/class-wc-advanced-shipment-tracking-admin.php:290
73
  msgid "Updated Tracking"
74
  msgstr ""
75
 
76
- #: includes/class-wc-advanced-shipment-tracking-admin.php:266
77
  #, php-format
78
  msgid "Updated Tracking <span class=\"count\">(%s)</span>"
79
  msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
80
  msgstr[0] ""
81
  msgstr[1] ""
82
 
83
- #: includes/class-wc-advanced-shipment-tracking-admin.php:320
84
  msgid "Change status to delivered"
85
  msgstr ""
86
 
87
- #: includes/class-wc-advanced-shipment-tracking-admin.php:523
88
  msgid "Shipment status"
89
  msgstr ""
90
 
91
- #: includes/class-wc-advanced-shipment-tracking-admin.php:622
92
  msgid ""
93
  "Get Shipment Status is limited to 100 orders at a time, please select up to "
94
  "100 orders."
95
  msgstr ""
96
 
97
- #: includes/class-wc-advanced-shipment-tracking-admin.php:667
98
- msgid "Order"
99
- msgstr ""
100
-
101
- #: includes/class-wc-advanced-shipment-tracking-admin.php:668
102
- msgid "Item"
103
- msgstr ""
104
-
105
- #: includes/class-wc-advanced-shipment-tracking-admin.php:669
106
- msgid "Line Item"
107
- msgstr ""
108
-
109
- #: includes/class-wc-advanced-shipment-tracking-admin.php:670
110
- msgid "Class"
111
- msgstr ""
112
-
113
  #: includes/class-wc-advanced-shipment-tracking-admin.php:671
114
- msgid "Delete the selected rates?"
115
- msgstr ""
116
-
117
- #: includes/class-wc-advanced-shipment-tracking-admin.php:672
118
- msgid "Duplicate the selected rates?"
119
- msgstr ""
120
-
121
- #: includes/class-wc-advanced-shipment-tracking-admin.php:673
122
- msgid "Really want to bulk change all provider status?"
123
- msgstr ""
124
-
125
- #: includes/class-wc-advanced-shipment-tracking-admin.php:674
126
- #: includes/views/admin_options_settings.php:26
127
  msgid "Data saved successfully."
128
  msgstr ""
129
 
130
- #: includes/class-wc-advanced-shipment-tracking-admin.php:675
131
  msgid "Really delete this entry? This will not be undo."
132
  msgstr ""
133
 
134
- #: includes/class-wc-advanced-shipment-tracking-admin.php:676
135
  msgid "You can upload only csv file."
136
  msgstr ""
137
 
138
- #: includes/class-wc-advanced-shipment-tracking-admin.php:677
139
  msgid "This browser does not support HTML5."
140
  msgstr ""
141
 
142
- #: includes/class-wc-advanced-shipment-tracking-admin.php:678
143
  msgid "Please upload a valid CSV file."
144
  msgstr ""
145
 
146
- #: includes/class-wc-advanced-shipment-tracking-admin.php:736
147
- msgid "Shipping Providers"
148
  msgstr ""
149
 
150
- #: includes/class-wc-advanced-shipment-tracking-admin.php:739
151
- msgid "Settings"
152
  msgstr ""
153
 
154
- #: includes/class-wc-advanced-shipment-tracking-admin.php:742
155
  msgid "Bulk Upload"
156
  msgstr ""
157
 
158
- #: includes/class-wc-advanced-shipment-tracking-admin.php:745
159
- msgid "TrackShip"
 
 
 
160
  msgstr ""
161
 
162
- #: includes/class-wc-advanced-shipment-tracking-admin.php:880
163
- msgid "Connected"
164
  msgstr ""
165
 
166
- #: includes/class-wc-advanced-shipment-tracking-admin.php:886
167
- msgid ""
168
- "Auto-track all your shipments, get real-time shipment tracking updates "
169
- "without leaving your stores admin."
170
  msgstr ""
171
 
172
- #: includes/class-wc-advanced-shipment-tracking-admin.php:889
173
  #, php-format
174
- msgid ""
175
- "You must have account and connect your store to %s in order to activate "
176
- "these advanced features."
177
  msgstr ""
178
 
179
- #: includes/class-wc-advanced-shipment-tracking-admin.php:892
180
- #, php-format
181
- msgid "50 free Trackers for every new account! Get your %s account now>>"
 
 
182
  msgstr ""
183
 
184
- #: includes/class-wc-advanced-shipment-tracking-admin.php:988
185
- msgid "TrackShip Connection Status"
 
186
  msgstr ""
187
 
188
- #: includes/class-wc-advanced-shipment-tracking-admin.php:995
189
- #: includes/emails/class-shipment-delivered-email.php:226
190
  msgid "Enable/Disable"
191
  msgstr ""
192
 
193
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1001
194
  msgid "Set order status Delivered when order is delivered"
195
  msgstr ""
196
 
197
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1008
198
- #, php-format
199
- msgid ""
200
- "You have %s %s orders that you can track with TrackShip, you can send these "
201
- "shipments to TrackShip in Bulk."
202
- msgstr ""
203
-
204
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1009
205
- msgid "Get Shipment Status"
206
- msgstr ""
207
-
208
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1047
209
  msgid ""
210
  "You must add the shortcode [wcast-track-order] to the \"page name\" in order "
211
  "for the tracking page to work."
212
  msgstr ""
213
 
214
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1055
215
  msgid "Select Tracking Page"
216
  msgstr ""
217
 
218
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1063
219
- #: includes/customizer/class-wc-tracking-page-customizer.php:150
220
- msgid "Remove Trackship branding from tracking page"
221
- msgstr ""
222
-
223
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1069
224
  msgid "Use the tracking page in the customer email/my account tracking link"
225
  msgstr ""
226
 
227
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1075
228
  msgid "Select primary color for tracking page"
229
  msgstr ""
230
 
231
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1081
232
  msgid "Select content border color for tracking page"
233
  msgstr ""
234
 
235
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1145
236
- msgid ""
237
- "Default \"mark as <span class=\"shipped_label\">shipped</span>\" checkbox "
238
- "state"
239
  msgstr ""
240
 
241
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1146
242
- msgid ""
243
- "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
244
- "will be selected by default when adding tracking info to orders."
245
  msgstr ""
246
 
247
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1148
248
- msgid "Completed"
249
  msgstr ""
250
 
251
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1149
252
  msgid ""
253
- "Default \"mark as <span class=\"shipped_label\">completed</span>\" checkbox "
254
- "state"
255
- msgstr ""
256
-
257
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1150
258
- msgid ""
259
- "This means that the 'mark as <span class='shipped_label'>completed</span>' "
260
  "will be selected by default when adding tracking info to orders."
261
  msgstr ""
262
 
263
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1156
264
- msgid "Rename the “Completed” Order status to “Shipped”"
265
- msgstr ""
266
-
267
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1169
268
- msgid "On which customer order status email to include tracking info?"
269
  msgstr ""
270
 
271
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1170
272
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2192
273
- msgid "Cancelled"
 
274
  msgstr ""
275
 
276
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1171
277
  msgid "Customer Invoice"
278
  msgstr ""
279
 
280
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1172
281
- msgid "Refunded"
282
- msgstr ""
283
-
284
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1173
285
- msgid "Processing"
286
  msgstr ""
287
 
288
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1174
289
- msgid "Failed"
290
  msgstr ""
291
 
292
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1182
293
  msgid "Show tracking info in Invoice"
294
  msgstr ""
295
 
296
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1188
297
  msgid "Show tracking info in Packing Slip"
298
  msgstr ""
299
 
300
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1205
301
- msgid "Enable a New Custom order status - “Delivered"
302
  msgstr ""
303
 
304
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1206
305
  msgid ""
306
  "if you enable the delivered item, you will have the option to send delivered "
307
  "email notifications."
308
  msgstr ""
309
 
310
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1212
311
- msgid "Delivered Status Label color"
312
  msgstr ""
313
 
314
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1218
315
- #: includes/customizer/class-wcast-customizer.php:58
316
- #: includes/customizer/class-wc-email-customizer.php:155
317
- msgid "Delivered order status email"
318
- msgstr ""
319
-
320
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1219
321
- #: includes/views/admin_options_trackship_integration.php:80
322
- #: includes/views/admin_options_trackship_integration.php:94
323
- #: includes/views/admin_options_trackship_integration.php:108
324
- #: includes/views/admin_options_trackship_integration.php:121
325
- #: includes/views/admin_options_trackship_integration.php:135
326
- #: includes/views/admin_options_trackship_integration.php:150
327
- msgid "Edit"
328
  msgstr ""
329
 
330
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1236
331
- msgid ""
332
- "Change the \"Delivered\" orders to \"Completed\" when you deactivate the "
333
- "plugin"
334
  msgstr ""
335
 
336
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1238
337
- msgid "No, I will use the snippet"
338
  msgstr ""
339
 
340
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1239
341
- msgid "Yes, change all Delivered orders to Completed"
342
  msgstr ""
343
 
344
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1241
345
- #, php-format
346
- msgid ""
347
- "PLEASE NOTE - If you use the custom order status \"Delivered\", when you "
348
- "deactivate the plugin, you must register this order status in function.php "
349
- "in order to see these orders in the orders admin. You can find the snippet "
350
- "to use in functions.php %s or we can set to change all your \"delivered\" "
351
- "order to \"completed\"."
352
- msgstr ""
353
-
354
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1560
355
- msgid "Get shipment status"
356
- msgstr ""
357
-
358
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1588
359
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2187
360
- #: includes/customizer/class-wcast-customizer.php:74
361
- #: includes/customizer/class-wc-intransit-email-customizer.php:115
362
- #: includes/views/admin_options_trackship_integration.php:79
363
  msgid "In Transit"
364
  msgstr ""
365
 
366
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1591
367
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2186
368
- #: includes/customizer/class-wcast-customizer.php:66
369
  msgid "Pre Transit"
370
  msgstr ""
371
 
372
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1597
373
- msgid "Out for delivery"
 
 
 
 
374
  msgstr ""
375
 
376
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1600
377
- #: includes/customizer/class-wcast-customizer.php:89
378
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:116
379
- #: includes/views/admin_options_trackship_integration.php:107
 
380
  msgid "Available For Pickup"
381
  msgstr ""
382
 
383
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1603
384
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2194
385
- #: includes/customizer/class-wcast-customizer.php:82
386
- #: includes/customizer/class-wc-returntosender-email-customizer.php:116
387
- #: includes/views/admin_options_trackship_integration.php:93
388
  msgid "Return To Sender"
389
  msgstr ""
390
 
391
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1606
392
  msgid "Delivery Failure"
393
  msgstr ""
394
 
395
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1609
396
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2185
397
  msgid "Unknown"
398
  msgstr ""
399
 
400
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1612
401
  msgid "Pending TrackShip"
402
  msgstr ""
403
 
404
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1615
405
  msgid "Invalid Tracking"
406
  msgstr ""
407
 
408
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1618
409
- msgid "Carrier unsupported"
 
410
  msgstr ""
411
 
412
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1621
413
  msgid "Invalid User Key"
414
  msgstr ""
415
 
416
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1687
 
 
 
 
 
 
 
 
417
  msgid "Resend delivered order notification"
418
  msgstr ""
419
 
420
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1745
421
  msgid "Shipped Order"
422
  msgstr ""
423
 
424
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1764
425
  msgid "Mark order as delivered"
426
  msgstr ""
427
 
428
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1771
429
  msgid "Add Tracking"
430
  msgstr ""
431
 
432
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1797
433
  msgid "Change order status to"
434
  msgstr ""
435
 
436
- #: includes/class-wc-advanced-shipment-tracking-admin.php:1892
437
- #: includes/views/admin_options_shipping_provider.php:88
438
  #, php-format
439
  msgid "You don't have any %s shipping providers."
440
  msgstr ""
441
 
442
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2145
443
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2157
444
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2169
445
  msgid "view details"
446
  msgstr ""
447
 
448
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2146
449
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2158
450
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2170
451
  msgid "hide details"
452
  msgstr ""
453
 
454
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2188
455
- msgid "Available for Pickup"
456
- msgstr ""
457
-
458
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2189
459
- msgid "Out for Delivery"
460
- msgstr ""
461
-
462
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2191
463
- #: includes/customizer/class-wcast-customizer.php:112
464
- #: includes/customizer/class-wc-failure-email-customizer.php:113
465
- #: includes/views/admin_options_trackship_integration.php:149
466
  msgid "Failed Attempt"
467
  msgstr ""
468
 
469
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2193
470
- msgid "Carrier Unsupported"
471
  msgstr ""
472
 
473
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2195
474
- #: includes/class-wc-advanced-shipment-tracking-front.php:457
475
- #: includes/class-wc-advanced-shipment-tracking-front.php:813
476
  msgid "Invalid Tracking Number"
477
  msgstr ""
478
 
479
- #: includes/class-wc-advanced-shipment-tracking-admin.php:2200
480
  msgid "Filter by shipment status"
481
  msgstr ""
482
 
483
- #: includes/class-wc-advanced-shipment-tracking-front.php:138
484
  msgid ""
485
  "To track your order please enter your Order ID in the box below and press "
486
  "the \"Track\" button. This was given to you on your receipt and in the "
487
  "confirmation email you should have received."
488
  msgstr ""
489
 
490
- #: includes/class-wc-advanced-shipment-tracking-front.php:139
491
  msgid "Order ID"
492
  msgstr ""
493
 
494
- #: includes/class-wc-advanced-shipment-tracking-front.php:139
495
- #: includes/class-wc-advanced-shipment-tracking-front.php:140
496
  msgid "Found in your order confirmation email."
497
  msgstr ""
498
 
499
- #: includes/class-wc-advanced-shipment-tracking-front.php:140
500
  msgid "Order Email"
501
  msgstr ""
502
 
503
- #: includes/class-wc-advanced-shipment-tracking-front.php:143
504
- #: includes/class-wc-advanced-shipment-tracking.php:260
505
- #: includes/class-wc-advanced-shipment-tracking.php:637
506
- #: includes/class-wc-advanced-shipment-tracking.php:763
507
- #: includes/customizer/class-wc-tracking-info-customizer.php:137
508
- #: includes/customizer/class-wc-tracking-info-customizer.php:381
509
- #: includes/views/html-tracking-info-design-preview.php:69
510
- #: templates/emails/tracking-info.php:152
511
- #: templates/myaccount/view-order.php:123 templates/pip/tracking-info.php:23
512
  msgid "Track"
513
  msgstr ""
514
 
515
- #: includes/class-wc-advanced-shipment-tracking-front.php:307
516
- #: includes/class-wc-advanced-shipment-tracking-front.php:662
517
  #, php-format
518
  msgid "Shipment - %s (out of %s)"
519
  msgstr ""
520
 
521
- #: includes/class-wc-advanced-shipment-tracking-front.php:311
522
- #: includes/class-wc-advanced-shipment-tracking-front.php:666
523
  msgid "Order: "
524
  msgstr ""
525
 
526
- #: includes/class-wc-advanced-shipment-tracking-front.php:320
527
- #: includes/class-wc-advanced-shipment-tracking-front.php:324
528
- #: includes/class-wc-advanced-shipment-tracking-front.php:675
529
- #: includes/class-wc-advanced-shipment-tracking-front.php:679
530
  msgid "Estimated Delivery Date: "
531
  msgstr ""
532
 
533
- #: includes/class-wc-advanced-shipment-tracking-front.php:429
534
- #: includes/class-wc-advanced-shipment-tracking-front.php:785
535
  msgid "Tracking Details"
536
  msgstr ""
537
 
538
- #: includes/class-wc-advanced-shipment-tracking-front.php:448
539
- #: includes/class-wc-advanced-shipment-tracking-front.php:804
540
  msgid "view more"
541
  msgstr ""
542
 
543
- #: includes/class-wc-advanced-shipment-tracking-front.php:449
544
- #: includes/class-wc-advanced-shipment-tracking-front.php:805
545
  msgid "view less"
546
  msgstr ""
547
 
548
- #. esc_html__( '%1$s %2$s.' ),
549
- #: includes/class-wc-advanced-shipment-tracking-install.php:1583
550
- #, php-format
551
- msgid ""
552
- "We added many improvements to %1$s, please help and give us a review :) "
553
- "Thanks!"
554
  msgstr ""
555
 
556
- #: includes/class-wc-advanced-shipment-tracking.php:93
557
- #: includes/class-wc-advanced-shipment-tracking.php:244
558
- #: includes/customizer/class-wcast-customizer.php:30
559
  msgid "Shipment Tracking"
560
  msgstr ""
561
 
562
- #: includes/class-wc-advanced-shipment-tracking.php:179
563
- #: includes/class-wc-advanced-shipment-tracking.php:351
564
- msgid "Change order to Shipped?"
565
  msgstr ""
566
 
567
- #: includes/class-wc-advanced-shipment-tracking.php:181
568
- #: includes/class-wc-advanced-shipment-tracking.php:353
569
- msgid "Change order to Completed?"
570
  msgstr ""
571
 
572
- #: includes/class-wc-advanced-shipment-tracking.php:186
573
  msgid "Add Tracking Number"
574
  msgstr ""
575
 
576
- #: includes/class-wc-advanced-shipment-tracking.php:191
577
- #: includes/class-wc-advanced-shipment-tracking.php:369
578
  msgid "Provider:"
579
  msgstr ""
580
 
581
- #: includes/class-wc-advanced-shipment-tracking.php:211
582
- #: includes/class-wc-advanced-shipment-tracking.php:407
583
  msgid "Tracking number:"
584
  msgstr ""
585
 
586
- #: includes/class-wc-advanced-shipment-tracking.php:217
587
- #: includes/class-wc-advanced-shipment-tracking.php:415
588
  msgid "Date shipped:"
589
  msgstr ""
590
 
591
- #: includes/class-wc-advanced-shipment-tracking.php:260
592
- #: templates/pip/tracking-info.php:23
 
 
 
 
 
 
593
  msgid "Click here to track your shipment"
594
  msgstr ""
595
 
596
  #. 1: shipping date
597
- #: includes/class-wc-advanced-shipment-tracking.php:268
598
- #: templates/pip/tracking-info.php:29
599
  #, php-format
600
  msgid "Shipped on %s"
601
  msgstr ""
602
 
603
- #: includes/class-wc-advanced-shipment-tracking.php:269
604
- msgid "Delete"
605
- msgstr ""
606
-
607
- #: includes/class-wc-advanced-shipment-tracking.php:365
608
  msgid "Add Tracking Info"
609
  msgstr ""
610
 
611
- #: includes/class-wc-advanced-shipment-tracking.php:370
612
  msgid "Select Provider"
613
  msgstr ""
614
 
615
- #: includes/class-wc-advanced-shipment-tracking.php:430
616
  msgid "Save Tracking"
617
  msgstr ""
618
 
619
- #: includes/class-wc-advanced-shipment-tracking.php:431
620
  msgid "Preview:"
621
  msgstr ""
622
 
623
- #: includes/class-wc-advanced-shipment-tracking.php:431
624
  msgid "Click here to track shipment"
625
  msgstr ""
626
 
627
- #: includes/customizer/class-wcast-customizer.php:39
628
- msgid "Shipment Status Emails"
 
 
629
  msgstr ""
630
 
631
- #: includes/customizer/class-wcast-customizer.php:50
632
- msgid "Tracking info display"
 
633
  msgstr ""
634
 
635
- #: includes/customizer/class-wcast-customizer.php:51
636
- msgid "This section lets you customize the Tracking Info display design."
637
  msgstr ""
638
 
639
- #: includes/customizer/class-wcast-customizer.php:96
640
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:115
641
- #: includes/views/admin_options_trackship_integration.php:120
642
- msgid "Out For Delivery"
 
 
 
643
  msgstr ""
644
 
645
- #: includes/customizer/class-wcast-customizer.php:352
646
  msgid "Select order to preview"
647
  msgstr ""
648
 
649
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:115
650
  msgid "Your order #{order_number} is available for pickup"
651
  msgstr ""
652
 
653
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:117
654
  msgid ""
655
  "Hi there. we thought you'd like to know that your recent order from "
656
  "{site_title} is available for pickup."
657
  msgstr ""
658
 
659
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:148
660
  msgid "Available For Pickup shipment status email"
661
  msgstr ""
662
 
663
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:149
664
- #: includes/customizer/class-wc-delivered-email-customizer.php:148
665
- #: includes/customizer/class-wc-email-customizer.php:156
666
- #: includes/customizer/class-wc-failure-email-customizer.php:145
667
- #: includes/customizer/class-wc-intransit-email-customizer.php:147
668
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:148
669
- #: includes/customizer/class-wc-returntosender-email-customizer.php:149
670
  msgid "This section lets you customize the Email Content."
671
  msgstr ""
672
 
673
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:163
674
  msgid "Enable Available For Pickup shipment status email"
675
  msgstr ""
676
 
677
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:179
678
- #: includes/customizer/class-wc-delivered-email-customizer.php:178
679
- #: includes/customizer/class-wc-email-customizer.php:189
680
- #: includes/customizer/class-wc-failure-email-customizer.php:175
681
- #: includes/customizer/class-wc-intransit-email-customizer.php:178
682
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:178
683
- #: includes/customizer/class-wc-returntosender-email-customizer.php:179
684
- #: includes/customizer/class-wc-tracking-info-customizer.php:161
685
  msgid "Preview order"
686
  msgstr ""
687
 
688
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:200
689
- #: includes/customizer/class-wc-delivered-email-customizer.php:199
690
- #: includes/customizer/class-wc-failure-email-customizer.php:196
691
- #: includes/customizer/class-wc-intransit-email-customizer.php:199
692
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:199
693
- #: includes/customizer/class-wc-returntosender-email-customizer.php:200
694
- msgid "To"
695
- msgstr ""
696
-
697
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:201
698
- #: includes/customizer/class-wc-delivered-email-customizer.php:200
699
- #: includes/customizer/class-wc-failure-email-customizer.php:197
700
- #: includes/customizer/class-wc-intransit-email-customizer.php:200
701
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:200
702
- #: includes/customizer/class-wc-returntosender-email-customizer.php:201
703
  msgid ""
704
  "Enter emails here or use variables such as {customer_email}. Multiple emails "
705
  "can be separated by commas."
706
  msgstr ""
707
 
708
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:207
709
- #: includes/customizer/class-wc-delivered-email-customizer.php:206
710
- #: includes/customizer/class-wc-email-customizer.php:218
711
- #: includes/customizer/class-wc-failure-email-customizer.php:203
712
- #: includes/customizer/class-wc-intransit-email-customizer.php:206
713
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:206
714
- #: includes/customizer/class-wc-returntosender-email-customizer.php:207
715
  msgid "E.g. {customer.email}, admin@example.org"
716
  msgstr ""
717
 
718
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:222
719
- #: includes/customizer/class-wc-delivered-email-customizer.php:221
720
- #: includes/customizer/class-wc-email-customizer.php:234
721
- #: includes/customizer/class-wc-failure-email-customizer.php:218
722
- #: includes/customizer/class-wc-intransit-email-customizer.php:221
723
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:221
724
- #: includes/customizer/class-wc-returntosender-email-customizer.php:222
725
- msgid "Email subject"
726
- msgstr ""
727
-
728
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:223
729
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:245
730
- #: includes/customizer/class-wc-delivered-email-customizer.php:222
731
- #: includes/customizer/class-wc-delivered-email-customizer.php:244
732
- #: includes/customizer/class-wc-failure-email-customizer.php:219
733
- #: includes/customizer/class-wc-failure-email-customizer.php:241
734
- #: includes/customizer/class-wc-intransit-email-customizer.php:222
735
- #: includes/customizer/class-wc-intransit-email-customizer.php:244
736
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:222
737
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:244
738
- #: includes/customizer/class-wc-returntosender-email-customizer.php:223
739
- #: includes/customizer/class-wc-returntosender-email-customizer.php:245
740
  msgid "Available placeholders: {site_title}, {order_number}"
741
  msgstr ""
742
 
743
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:229
744
- #: includes/customizer/class-wc-delivered-email-customizer.php:228
745
- #: includes/customizer/class-wc-email-customizer.php:241
746
- #: includes/customizer/class-wc-failure-email-customizer.php:225
747
- #: includes/customizer/class-wc-intransit-email-customizer.php:228
748
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:228
749
- #: includes/customizer/class-wc-returntosender-email-customizer.php:229
750
  msgid "Please enter email subject here"
751
  msgstr ""
752
 
753
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:244
754
- #: includes/customizer/class-wc-delivered-email-customizer.php:243
755
- #: includes/customizer/class-wc-email-customizer.php:257
756
- #: includes/customizer/class-wc-failure-email-customizer.php:240
757
- #: includes/customizer/class-wc-intransit-email-customizer.php:243
758
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:243
759
- #: includes/customizer/class-wc-returntosender-email-customizer.php:244
760
- #: includes/emails/class-shipment-delivered-email.php:250
761
- msgid "Email heading"
762
- msgstr ""
763
-
764
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:251
765
- #: includes/customizer/class-wc-delivered-email-customizer.php:250
766
- #: includes/customizer/class-wc-email-customizer.php:264
767
- #: includes/customizer/class-wc-failure-email-customizer.php:247
768
- #: includes/customizer/class-wc-intransit-email-customizer.php:250
769
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:250
770
- #: includes/customizer/class-wc-returntosender-email-customizer.php:251
771
  msgid "Please enter email heading here"
772
  msgstr ""
773
 
774
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:266
775
- #: includes/customizer/class-wc-delivered-email-customizer.php:265
776
- #: includes/customizer/class-wc-failure-email-customizer.php:262
777
- #: includes/customizer/class-wc-intransit-email-customizer.php:265
778
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:265
779
- #: includes/customizer/class-wc-returntosender-email-customizer.php:266
780
  msgid "Show tracking details"
781
  msgstr ""
782
 
783
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:282
784
- #: includes/customizer/class-wc-delivered-email-customizer.php:281
785
- #: includes/customizer/class-wc-failure-email-customizer.php:278
786
- #: includes/customizer/class-wc-intransit-email-customizer.php:281
787
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:281
788
- #: includes/customizer/class-wc-returntosender-email-customizer.php:282
789
  msgid "Show order details"
790
  msgstr ""
791
 
792
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:298
793
- #: includes/customizer/class-wc-delivered-email-customizer.php:297
794
- #: includes/customizer/class-wc-failure-email-customizer.php:294
795
- #: includes/customizer/class-wc-intransit-email-customizer.php:297
796
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:297
797
- #: includes/customizer/class-wc-returntosender-email-customizer.php:298
798
  msgid "Show billing address"
799
  msgstr ""
800
 
801
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:315
802
- #: includes/customizer/class-wc-delivered-email-customizer.php:314
803
- #: includes/customizer/class-wc-failure-email-customizer.php:311
804
- #: includes/customizer/class-wc-intransit-email-customizer.php:314
805
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:314
806
- #: includes/customizer/class-wc-returntosender-email-customizer.php:315
807
  msgid "Show shipping address"
808
  msgstr ""
809
 
810
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:331
811
- #: includes/customizer/class-wc-delivered-email-customizer.php:330
812
- #: includes/customizer/class-wc-email-customizer.php:384
813
- #: includes/customizer/class-wc-failure-email-customizer.php:327
814
- #: includes/customizer/class-wc-intransit-email-customizer.php:350
815
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:330
816
- #: includes/customizer/class-wc-returntosender-email-customizer.php:331
817
  msgid "Google Analytics link tracking"
818
  msgstr ""
819
 
820
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:332
821
- #: includes/customizer/class-wc-delivered-email-customizer.php:331
822
- #: includes/customizer/class-wc-failure-email-customizer.php:328
823
- #: includes/customizer/class-wc-intransit-email-customizer.php:351
824
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:331
825
- #: includes/customizer/class-wc-returntosender-email-customizer.php:332
826
  msgid "This will be appended to URL in the email content"
827
  msgstr ""
828
 
829
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:353
830
- #: includes/customizer/class-wc-delivered-email-customizer.php:352
831
- #: includes/customizer/class-wc-email-customizer.php:280
832
- #: includes/customizer/class-wc-failure-email-customizer.php:349
833
- #: includes/customizer/class-wc-intransit-email-customizer.php:331
834
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:352
835
- #: includes/customizer/class-wc-returntosender-email-customizer.php:353
836
  msgid "Email content"
837
  msgstr ""
838
 
839
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:372
840
- #: includes/customizer/class-wc-delivered-email-customizer.php:372
841
- #: includes/customizer/class-wc-email-customizer.php:405
842
- #: includes/customizer/class-wc-failure-email-customizer.php:369
843
- #: includes/customizer/class-wc-intransit-email-customizer.php:372
844
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:372
845
- #: includes/customizer/class-wc-returntosender-email-customizer.php:373
846
  msgid "Available placeholders"
847
  msgstr ""
848
 
849
- #: includes/customizer/class-wc-availableforpickup-email-customizer.php:416
850
- #: includes/customizer/class-wc-delivered-email-customizer.php:416
851
- #: includes/customizer/class-wc-email-customizer.php:437
852
- #: includes/customizer/class-wc-failure-email-customizer.php:412
853
- #: includes/customizer/class-wc-intransit-email-customizer.php:415
854
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:415
855
- #: includes/customizer/class-wc-returntosender-email-customizer.php:417
856
- #: includes/customizer/class-wc-tracking-info-customizer.php:730
857
- msgid "Please select preview order."
858
  msgstr ""
859
 
860
- #: includes/customizer/class-wc-delivered-email-customizer.php:114
861
  msgid "Your order #{order_number} has been delivered"
862
  msgstr ""
863
 
864
- #: includes/customizer/class-wc-delivered-email-customizer.php:116
865
  msgid ""
866
  "Hi there. we thought you'd like to know that your recent order from "
867
  "{site_title} has been Delivered."
868
  msgstr ""
869
 
870
- #: includes/customizer/class-wc-delivered-email-customizer.php:147
871
  msgid "Delivered shipment status email"
872
  msgstr ""
873
 
874
- #: includes/customizer/class-wc-delivered-email-customizer.php:162
875
  msgid "Enable Delivered shipment status email"
876
  msgstr ""
877
 
878
- #: includes/customizer/class-wc-email-customizer.php:122
879
- #: includes/emails/class-shipment-delivered-email.php:92
880
  msgid "Your {site_title} order is now delivered"
881
  msgstr ""
882
 
883
- #: includes/customizer/class-wc-email-customizer.php:123
884
- #: includes/emails/class-shipment-delivered-email.php:102
885
  msgid "Thanks for shopping with us"
886
  msgstr ""
887
 
888
- #: includes/customizer/class-wc-email-customizer.php:124
889
  msgid "Hi there. Your recent order on {site_title} has been delivered."
890
  msgstr ""
891
 
892
- #: includes/customizer/class-wc-email-customizer.php:171
893
  msgid "Enable Delivered order status email"
894
  msgstr ""
895
 
896
- #: includes/customizer/class-wc-email-customizer.php:193
897
- #: includes/customizer/class-wc-tracking-info-customizer.php:165
898
  msgid "Please select a order..."
899
  msgstr ""
900
 
901
- #: includes/customizer/class-wc-email-customizer.php:211
902
- msgid "Receipts"
903
- msgstr ""
904
-
905
- #: includes/customizer/class-wc-email-customizer.php:212
906
  msgid ""
907
  "Enter emails use variables such as {customer_email}. Multiple emails can be "
908
  "separated by commas."
909
  msgstr ""
910
 
911
- #: includes/customizer/class-wc-email-customizer.php:235
912
- #: includes/customizer/class-wc-email-customizer.php:258
913
  msgid "Available variables: {site_title}, {order_number}"
914
  msgstr ""
915
 
916
- #: includes/customizer/class-wc-email-customizer.php:281
917
  msgid ""
918
  "available variables: {site_title}, {customer_email}, {customer_first_name}, "
919
  "{customer_last_name}, {customer_username}, {order_number}"
920
  msgstr ""
921
 
922
- #: includes/customizer/class-wc-email-customizer.php:300
923
  msgid "Display tracking details"
924
  msgstr ""
925
 
926
- #: includes/customizer/class-wc-email-customizer.php:316
927
  msgid "Display order details"
928
  msgstr ""
929
 
930
- #: includes/customizer/class-wc-email-customizer.php:333
931
  msgid "Display Shipping Address"
932
  msgstr ""
933
 
934
- #: includes/customizer/class-wc-email-customizer.php:350
935
  msgid "Display Billing Address"
936
  msgstr ""
937
 
938
- #: includes/customizer/class-wc-email-customizer.php:367
939
  msgid "Enable Google Analytics tracking"
940
  msgstr ""
941
 
942
- #: includes/customizer/class-wc-email-customizer.php:385
943
  msgid ""
944
  "This will be appended to URL in the email content – e.g. "
945
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
946
  msgstr ""
947
 
948
- #: includes/customizer/class-wc-failure-email-customizer.php:112
949
  msgid "Your order #{order_number} is Failed Attempt"
950
  msgstr ""
951
 
952
- #: includes/customizer/class-wc-failure-email-customizer.php:114
953
  msgid ""
954
  "Hi there. we thought you'd like to know that your recent order from "
955
  "{site_title} is Failed Attempt"
956
  msgstr ""
957
 
958
- #: includes/customizer/class-wc-failure-email-customizer.php:144
959
  msgid "Failed Attempt shipment status email"
960
  msgstr ""
961
 
962
- #: includes/customizer/class-wc-failure-email-customizer.php:159
963
  msgid "Enable Failed Attempt shipment status email"
964
  msgstr ""
965
 
966
- #: includes/customizer/class-wc-intransit-email-customizer.php:114
967
  msgid "Your order #{order_number} is in transit"
968
  msgstr ""
969
 
970
- #: includes/customizer/class-wc-intransit-email-customizer.php:116
971
  msgid ""
972
  "Hi there. we thought you'd like to know that your recent order from "
973
  "{site_title} is in transit"
974
  msgstr ""
975
 
976
- #: includes/customizer/class-wc-intransit-email-customizer.php:146
977
  msgid "In Transit shipment status email"
978
  msgstr ""
979
 
980
- #: includes/customizer/class-wc-intransit-email-customizer.php:161
981
  msgid "Enable In Transit shipment status email"
982
  msgstr ""
983
 
984
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:114
985
  msgid "Your order #{order_number} is out for delivery"
986
  msgstr ""
987
 
988
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:116
989
  msgid ""
990
  "Hi there. we thought you'd like to know that your recent order from "
991
  "{site_title} is out for delivery."
992
  msgstr ""
993
 
994
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:147
995
  msgid "Out For Delivery shipment status email"
996
  msgstr ""
997
 
998
- #: includes/customizer/class-wc-outfordelivery-email-customizer.php:162
999
  msgid "Enable Out For Delivery shipment status email"
1000
  msgstr ""
1001
 
1002
- #: includes/customizer/class-wc-returntosender-email-customizer.php:115
1003
  msgid "Your order #{order_number} has returned to sender"
1004
  msgstr ""
1005
 
1006
- #: includes/customizer/class-wc-returntosender-email-customizer.php:117
1007
  msgid ""
1008
  "Hi there. we thought you'd like to know that your recent order from "
1009
  "{site_title} has been returned to sender."
1010
  msgstr ""
1011
 
1012
- #: includes/customizer/class-wc-returntosender-email-customizer.php:148
1013
  msgid "Return To Sender shipment status email"
1014
  msgstr ""
1015
 
1016
- #: includes/customizer/class-wc-returntosender-email-customizer.php:163
1017
  msgid "Enable Return To Sender shipment status email"
1018
  msgstr ""
1019
 
1020
- #: includes/customizer/class-wc-tracking-info-customizer.php:134
1021
- #: includes/customizer/class-wc-tracking-info-customizer.php:301
1022
- #: includes/views/html-tracking-info-design-preview.php:45
1023
- #: templates/emails/tracking-info.php:110 templates/myaccount/view-order.php:89
1024
  msgid "Provider"
1025
  msgstr ""
1026
 
1027
- #: includes/customizer/class-wc-tracking-info-customizer.php:135
1028
- #: includes/customizer/class-wc-tracking-info-customizer.php:323
1029
- #: includes/views/html-tracking-info-design-preview.php:46
1030
- #: templates/emails/tracking-info.php:134
1031
- #: templates/myaccount/view-order.php:111
1032
  msgid "Tracking Number"
1033
  msgstr ""
1034
 
1035
- #: includes/customizer/class-wc-tracking-info-customizer.php:136
1036
- #: includes/customizer/class-wc-tracking-info-customizer.php:344
1037
  msgid "Shipped Date"
1038
  msgstr ""
1039
 
1040
- #: includes/customizer/class-wc-tracking-info-customizer.php:162
1041
  msgid ""
1042
  "select from last 20 orders one order that you added tracking info in order "
1043
  "to preview and design the tracking info table."
1044
  msgstr ""
1045
 
1046
- #: includes/customizer/class-wc-tracking-info-customizer.php:182
 
 
 
 
 
 
1047
  msgid "Tracking Display Position"
1048
  msgstr ""
1049
 
1050
- #: includes/customizer/class-wc-tracking-info-customizer.php:186
1051
  msgid "Before Order Details"
1052
  msgstr ""
1053
 
1054
- #: includes/customizer/class-wc-tracking-info-customizer.php:187
1055
  msgid "After Order Details"
1056
  msgstr ""
1057
 
1058
- #: includes/customizer/class-wc-tracking-info-customizer.php:202
1059
  msgid "Main Header text"
1060
  msgstr ""
1061
 
1062
- #: includes/customizer/class-wc-tracking-info-customizer.php:209
1063
- #: templates/pip/tracking-info.php:17
1064
  msgid "Tracking Information"
1065
  msgstr ""
1066
 
1067
- #: includes/customizer/class-wc-tracking-info-customizer.php:224
1068
  msgid "Additional text after header"
1069
  msgstr ""
1070
 
1071
- #: includes/customizer/class-wc-tracking-info-customizer.php:245
1072
- msgid "Table Layout"
1073
  msgstr ""
1074
 
1075
- #: includes/customizer/class-wc-tracking-info-customizer.php:260
1076
  msgid "Display Shipment Provider image"
1077
  msgstr ""
1078
 
1079
- #: includes/customizer/class-wc-tracking-info-customizer.php:277
1080
  msgid "Hide date"
1081
  msgstr ""
1082
 
1083
- #: includes/customizer/class-wc-tracking-info-customizer.php:294
 
 
 
 
 
 
 
 
1084
  msgid "Provider Header Text"
1085
  msgstr ""
1086
 
1087
- #: includes/customizer/class-wc-tracking-info-customizer.php:316
1088
  msgid "Tracking Number Header Text"
1089
  msgstr ""
1090
 
1091
- #: includes/customizer/class-wc-tracking-info-customizer.php:337
1092
  msgid "Shipped Date Header Text"
1093
  msgstr ""
1094
 
1095
- #: includes/customizer/class-wc-tracking-info-customizer.php:358
1096
  msgid "Track Label"
1097
  msgstr ""
1098
 
1099
- #: includes/customizer/class-wc-tracking-info-customizer.php:374
1100
  msgid "Track Header Text"
1101
  msgstr ""
1102
 
1103
- #: includes/customizer/class-wc-tracking-info-customizer.php:396
 
 
 
 
 
 
 
 
1104
  msgid "Table Design"
1105
  msgstr ""
1106
 
1107
- #: includes/customizer/class-wc-tracking-info-customizer.php:411
1108
  msgid "Padding"
1109
  msgstr ""
1110
 
1111
- #: includes/customizer/class-wc-tracking-info-customizer.php:431
1112
  msgid "Background color"
1113
  msgstr ""
1114
 
1115
- #: includes/customizer/class-wc-tracking-info-customizer.php:459
1116
  msgid "Border color"
1117
  msgstr ""
1118
 
1119
- #: includes/customizer/class-wc-tracking-info-customizer.php:475
1120
  msgid "Border size"
1121
  msgstr ""
1122
 
1123
- #: includes/customizer/class-wc-tracking-info-customizer.php:479
1124
- #: includes/customizer/class-wc-tracking-info-customizer.php:503
1125
- #: includes/customizer/class-wc-tracking-info-customizer.php:511
1126
- msgid "Select"
1127
- msgstr ""
1128
-
1129
- #: includes/customizer/class-wc-tracking-info-customizer.php:499
1130
  msgid "Table text align"
1131
  msgstr ""
1132
 
1133
- #: includes/customizer/class-wc-tracking-info-customizer.php:504
1134
- msgid "Left"
1135
- msgstr ""
1136
-
1137
- #: includes/customizer/class-wc-tracking-info-customizer.php:505
1138
- msgid "Right"
1139
- msgstr ""
1140
-
1141
- #: includes/customizer/class-wc-tracking-info-customizer.php:506
1142
- msgid "Center"
1143
- msgstr ""
1144
-
1145
- #: includes/customizer/class-wc-tracking-info-customizer.php:525
1146
- msgid "Table header font size"
1147
- msgstr ""
1148
-
1149
- #: includes/customizer/class-wc-tracking-info-customizer.php:544
1150
- msgid "Table header font color"
1151
- msgstr ""
1152
-
1153
- #: includes/customizer/class-wc-tracking-info-customizer.php:560
1154
  msgid "Table content font size"
1155
  msgstr ""
1156
 
1157
- #: includes/customizer/class-wc-tracking-info-customizer.php:577
1158
  msgid "Table content font color"
1159
  msgstr ""
1160
 
1161
- #: includes/customizer/class-wc-tracking-info-customizer.php:593
1162
  msgid "Content line height"
1163
  msgstr ""
1164
 
1165
- #: includes/customizer/class-wc-tracking-info-customizer.php:614
1166
  msgid "Content font weight"
1167
  msgstr ""
1168
 
1169
- #: includes/customizer/class-wc-tracking-info-customizer.php:636
1170
- msgid "Track Link"
1171
  msgstr ""
1172
 
1173
- #: includes/customizer/class-wc-tracking-info-customizer.php:650
1174
  msgid "Track Link Font Color"
1175
  msgstr ""
1176
 
1177
- #: includes/customizer/class-wc-tracking-info-customizer.php:666
1178
  msgid "Track Link Background Color"
1179
  msgstr ""
1180
 
1181
- #: includes/customizer/class-wc-tracking-info-customizer.php:681
1182
  msgid "Track link Border"
1183
  msgstr ""
1184
 
1185
- #: includes/customizer/class-wc-tracking-page-customizer.php:167
1186
- msgid "Header Color"
1187
- msgstr ""
1188
-
1189
- #: includes/customizer/class-wc-tracking-page-customizer.php:183
1190
- msgid "Success Status Color"
1191
- msgstr ""
1192
-
1193
- #: includes/customizer/class-wc-tracking-page-customizer.php:199
1194
- msgid "Warning Status Color"
1195
- msgstr ""
1196
-
1197
- #: includes/customizer/class-wc-tracking-page-customizer.php:215
1198
- msgid "Tracking info Border Color"
1199
- msgstr ""
1200
-
1201
- #: includes/customizer/class-wc-tracking-page-customizer.php:230
1202
- msgid "Tracking info width (px)"
1203
- msgstr ""
1204
-
1205
- #: includes/customizer/class-wc-tracking-page-customizer.php:250
1206
- msgid "Tracking details Border Color"
1207
- msgstr ""
1208
-
1209
- #: includes/customizer/class-wc-tracking-page-customizer.php:265
1210
- msgid "Tracking info table shade color"
1211
- msgstr ""
1212
-
1213
- #: includes/customizer/class-wc-tracking-page-customizer.php:280
1214
- msgid "Tracking events font color"
1215
- msgstr ""
1216
-
1217
- #: includes/customizer/class-wc-tracking-page-customizer.php:295
1218
- msgid "Tracking info table margin top/bottom(px)"
1219
- msgstr ""
1220
-
1221
  #: includes/emails/class-shipment-delivered-email.php:32
1222
  msgid "Delivered order"
1223
  msgstr ""
@@ -1228,247 +1075,265 @@ msgid ""
1228
  "delivered and usually indicate that their orders have been shipped."
1229
  msgstr ""
1230
 
1231
- #: includes/emails/class-shipment-delivered-email.php:228
1232
- msgid "Enable this email notification"
1233
  msgstr ""
1234
 
1235
- #: includes/emails/class-shipment-delivered-email.php:232
1236
- msgid "Recipient(s)"
1237
  msgstr ""
1238
 
1239
- #. %s: WP admin email
1240
- #: includes/emails/class-shipment-delivered-email.php:235
1241
- #, php-format
1242
- msgid "Enter recipients (comma separated) for this email. Defaults to %s."
1243
  msgstr ""
1244
 
1245
- #: includes/emails/class-shipment-delivered-email.php:241
1246
- msgid "Subject"
 
 
1247
  msgstr ""
1248
 
1249
- #. %s: list of placeholders
1250
- #: includes/emails/class-shipment-delivered-email.php:245
1251
- #: includes/emails/class-shipment-delivered-email.php:254
1252
- #, php-format
1253
- msgid "Available placeholders: %s"
1254
  msgstr ""
1255
 
1256
- #: includes/emails/class-shipment-delivered-email.php:259
1257
- msgid "Email type"
1258
  msgstr ""
1259
 
1260
- #: includes/emails/class-shipment-delivered-email.php:261
1261
- msgid "Choose which format of email to send."
1262
  msgstr ""
1263
 
1264
- #: includes/emails/class-shipment-delivered-email.php:269
1265
- msgid "\" >Click Here</a>"
1266
  msgstr ""
1267
 
1268
- #: includes/emails/class-shipment-delivered-email.php:270
1269
- msgid "Edit in customizer"
1270
  msgstr ""
1271
 
1272
- #: includes/views/admin_options_bulk_upload.php:5
1273
- msgid "Upload CSV"
1274
  msgstr ""
1275
 
1276
- #: includes/views/admin_options_bulk_upload.php:15
1277
  msgid ""
1278
- "Replace tracking info if exists? (if not checked, the tracking info will be "
1279
- "added)"
1280
  msgstr ""
1281
 
1282
- #: includes/views/admin_options_bulk_upload.php:25
1283
- #: includes/views/admin_options_shipping_provider.php:112
1284
- #: includes/views/admin_options_shipping_provider.php:146
1285
- msgid "Upload"
 
1286
  msgstr ""
1287
 
1288
- #: includes/views/admin_options_bulk_upload.php:28
1289
- #: includes/views/admin_options_trackship_integration.php:27
1290
- #: includes/views/admin_options_trackship_integration.php:45
1291
- msgid "Settings Saved."
1292
  msgstr ""
1293
 
1294
- #: includes/views/admin_options_bulk_upload.php:34
1295
- msgid "You can download an example of the csv file:"
1296
  msgstr ""
1297
 
1298
- #: includes/views/admin_options_bulk_upload.php:35
1299
- msgid "Download sample csv file"
1300
  msgstr ""
1301
 
1302
- #: includes/views/admin_options_bulk_upload.php:36
1303
- msgid ""
1304
- "For detailed instructions on how to upload tracking info in bulk, see our"
1305
  msgstr ""
1306
 
1307
- #: includes/views/admin_options_bulk_upload.php:36
1308
- msgid "documentation"
1309
  msgstr ""
1310
 
1311
- #: includes/views/admin_options_bulk_upload.php:38
1312
- msgid "Upload Progress - "
1313
  msgstr ""
1314
 
1315
- #: includes/views/admin_options_settings.php:7
1316
- #: includes/views/admin_options_trackship_integration.php:10
1317
- msgid "General"
1318
  msgstr ""
1319
 
1320
- #: includes/views/admin_options_settings.php:10
1321
- #: includes/views/admin_options_settings.php:19
1322
- msgid "Delivered Order Status"
1323
  msgstr ""
1324
 
1325
- #: includes/views/admin_options_settings.php:12
1326
- msgid "Tracking Info Display Designer"
1327
  msgstr ""
1328
 
1329
- #: includes/views/admin_options_settings.php:15
1330
- #: includes/views/admin_options_trackship_integration.php:19
1331
- msgid "General Settings"
 
1332
  msgstr ""
1333
 
1334
- #: includes/views/admin_options_settings.php:24
1335
- #: includes/views/admin_options_trackship_integration.php:25
1336
- #: includes/views/admin_options_trackship_integration.php:43
1337
- msgid "Save"
1338
  msgstr ""
1339
 
1340
- #: includes/views/admin_options_shipping_provider.php:94
1341
- msgid "Add Custom Shipping Provider"
 
 
 
 
 
 
 
 
1342
  msgstr ""
1343
 
1344
  #: includes/views/admin_options_shipping_provider.php:101
1345
- #: includes/views/admin_options_shipping_provider.php:135
1346
- msgid "Shiping Country"
1347
  msgstr ""
1348
 
1349
- #: includes/views/admin_options_shipping_provider.php:102
1350
- #: includes/views/admin_options_shipping_provider.php:136
1351
- msgid "Global"
1352
  msgstr ""
1353
 
1354
- #: includes/views/admin_options_shipping_provider.php:128
1355
- msgid "Edit Custom Shipping Provider"
 
1356
  msgstr ""
1357
 
1358
- #: includes/views/admin_options_shipping_provider.php:163
1359
- #: includes/views/admin_options_shipping_provider.php:170
1360
- msgid "Sync Providers"
1361
  msgstr ""
1362
 
1363
- #: includes/views/admin_options_shipping_provider.php:164
1364
- msgid "Do you really want to sync all providers?"
 
 
1365
  msgstr ""
1366
 
1367
- #: includes/views/admin_options_shipping_provider.php:166
1368
  msgid "Providers Added"
1369
  msgstr ""
1370
 
1371
- #: includes/views/admin_options_shipping_provider.php:167
1372
  msgid "Providers Updated"
1373
  msgstr ""
1374
 
1375
- #: includes/views/admin_options_shipping_provider.php:168
1376
  msgid "Providers Deleted"
1377
  msgstr ""
1378
 
1379
- #: includes/views/admin_options_shipping_provider.php:171
1380
- msgid "Close"
 
 
 
 
1381
  msgstr ""
1382
 
1383
- #: includes/views/admin_options_trackship_integration.php:13
1384
  #: includes/views/admin_options_trackship_integration.php:35
1385
- msgid "Tracking Page"
 
 
 
1386
  msgstr ""
1387
 
1388
- #: includes/views/admin_options_trackship_integration.php:16
1389
- msgid "Shipment Status Notifications"
1390
  msgstr ""
1391
 
1392
- #: includes/views/admin_options_trackship_integration.php:40
 
 
 
 
1393
  msgid "Click to preview the tracking page"
1394
  msgstr ""
1395
 
1396
- #: includes/views/admin_options_trackship_integration.php:41
1397
  msgid "PLEASE NOTE - make sure to save your settings before preview."
1398
  msgstr ""
1399
 
1400
- #: includes/views/admin_options_trackship_integration.php:53
1401
  msgid "Shipment Status Notifications "
1402
  msgstr ""
1403
 
1404
- #: includes/views/admin_options_trackship_integration.php:81
1405
  msgid ""
1406
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1407
  "the way."
1408
  msgstr ""
1409
 
1410
- #: includes/views/admin_options_trackship_integration.php:95
1411
  msgid "Shipment is returned to sender"
1412
  msgstr ""
1413
 
1414
- #: includes/views/admin_options_trackship_integration.php:109
1415
  msgid "The shipment is ready to pickup."
1416
  msgstr ""
1417
 
1418
- #: includes/views/admin_options_trackship_integration.php:122
1419
  msgid "Carrier is about to deliver the shipment"
1420
  msgstr ""
1421
 
1422
- #: includes/views/admin_options_trackship_integration.php:136
1423
  msgid "The shipment was delivered successfully"
1424
  msgstr ""
1425
 
1426
- #: includes/views/admin_options_trackship_integration.php:137
1427
  msgid ""
1428
  "You already have delivered email enabled, to enable this email you'll need "
1429
  "to disable the order status delivered in settings."
1430
  msgstr ""
1431
 
1432
- #: includes/views/admin_options_trackship_integration.php:151
1433
  msgid ""
1434
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1435
  "will try to deliver the package again."
1436
  msgstr ""
1437
 
1438
- #: includes/views/html-tracking-info-design-preview.php:60
1439
- msgid "USPS"
1440
- msgstr ""
1441
-
1442
- #: includes/views/zorem_admin_sidebar.php:8
1443
- msgid "Leave your review"
1444
  msgstr ""
1445
 
1446
- #: includes/views/zorem_admin_ts_sidebar.php:5
1447
  msgid "Dashboard"
1448
  msgstr ""
1449
 
1450
- #: includes/views/zorem_admin_ts_sidebar.php:7
1451
- msgid "Documentation"
1452
- msgstr ""
1453
-
1454
- #: templates/emails/tracking-info.php:138
1455
  msgid "Status"
1456
  msgstr ""
1457
 
1458
- #: templates/emails/wcast-email-order-details.php:26
1459
  msgid "Order Details"
1460
  msgstr ""
1461
 
1462
  #. %s: Order ID.
1463
- #: templates/emails/wcast-email-order-details.php:42
1464
  #, php-format
1465
  msgid "Order number: %s"
1466
  msgstr ""
1467
 
1468
- #: templates/emails/wcast-email-order-details.php:49
1469
  msgid "Order date:"
1470
  msgstr ""
1471
 
1472
- #: templates/emails/plain/tracking-info.php:18
1473
- msgid "TRACKING INFORMATION"
 
 
 
 
 
 
 
 
 
 
 
 
1474
  msgstr ""
3
  msgstr ""
4
  "Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2019-10-01 10:28+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
15
  "X-Generator: Loco https://localise.biz/\n"
16
  "X-Loco-Version: 2.2.0; wp-5.0.3"
17
 
18
+ #: woocommerce-advanced-shipment-tracking.php:113
19
  #, php-format
20
  msgid ""
21
  "Please install and activate %sWooCommerce%s for WooCommerce Advanced "
22
  "Shipment Tracking!"
23
  msgstr ""
24
 
25
+ #: woocommerce-advanced-shipment-tracking.php:210
26
+ #, php-format
27
+ msgid "Your order was shipped with %s and your tracking code is: %s"
28
+ msgstr ""
29
+
30
+ #: woocommerce-advanced-shipment-tracking.php:413
31
+ #: includes/views/admin_options_settings.php:68
32
  #, php-format
33
  msgid ""
34
  "<strong>PLEASE NOTE</strong> - If you use the custom order status "
39
  "\"completed\" before deactivating the plugin."
40
  msgstr ""
41
 
42
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:212
43
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1189
44
  msgid "Shipped"
45
  msgstr ""
46
 
47
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:229
48
  #, php-format
49
  msgid "Shipped <span class=\"count\">(%s)</span>"
50
  msgid_plural "Shipped <span class=\"count\">(%s)</span>"
51
  msgstr[0] ""
52
  msgstr[1] ""
53
 
54
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:243
55
  msgid "Change status to shipped"
56
  msgstr ""
57
 
58
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:253
59
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:282
60
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1618
61
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1830
62
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2275
63
+ #: includes/customizer/class-wcast-customizer.php:106
64
+ #: includes/customizer/class-wc-delivered-email-customizer.php:125
65
+ #: includes/views/admin_options_trackship_integration.php:185
66
  msgid "Delivered"
67
  msgstr ""
68
 
69
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:258
70
  #, php-format
71
  msgid "Delivered <span class=\"count\">(%s)</span>"
72
  msgid_plural "Delivered <span class=\"count\">(%s)</span>"
73
  msgstr[0] ""
74
  msgstr[1] ""
75
 
76
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:264
77
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:293
78
  msgid "Updated Tracking"
79
  msgstr ""
80
 
81
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:269
82
  #, php-format
83
  msgid "Updated Tracking <span class=\"count\">(%s)</span>"
84
  msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
85
  msgstr[0] ""
86
  msgstr[1] ""
87
 
88
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:323
89
  msgid "Change status to delivered"
90
  msgstr ""
91
 
92
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:530
93
  msgid "Shipment status"
94
  msgstr ""
95
 
96
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:638
97
  msgid ""
98
  "Get Shipment Status is limited to 100 orders at a time, please select up to "
99
  "100 orders."
100
  msgstr ""
101
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  #: includes/class-wc-advanced-shipment-tracking-admin.php:671
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  msgid "Data saved successfully."
104
  msgstr ""
105
 
106
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:672
107
  msgid "Really delete this entry? This will not be undo."
108
  msgstr ""
109
 
110
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:673
111
  msgid "You can upload only csv file."
112
  msgstr ""
113
 
114
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:674
115
  msgid "This browser does not support HTML5."
116
  msgstr ""
117
 
118
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:675
119
  msgid "Please upload a valid CSV file."
120
  msgstr ""
121
 
122
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:741
123
+ msgid "Settings"
124
  msgstr ""
125
 
126
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:744
127
+ msgid "Shipping Providers"
128
  msgstr ""
129
 
130
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:747
131
  msgid "Bulk Upload"
132
  msgstr ""
133
 
134
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:753
135
+ #: includes/views/admin_options_bulk_upload.php:58
136
+ #: includes/views/admin_options_trackship_integration.php:40
137
+ #: includes/views/zorem_admin_ts_sidebar.php:12
138
+ msgid "Documentation"
139
  msgstr ""
140
 
141
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:754
142
+ msgid "How to Video"
143
  msgstr ""
144
 
145
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:897
146
+ #: includes/views/admin_options_trackship_integration.php:28
147
+ msgid "Connected"
 
148
  msgstr ""
149
 
150
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1006
151
  #, php-format
152
+ msgid "%s %s orders with tracking info"
 
 
153
  msgstr ""
154
 
155
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1007
156
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1016
157
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1579
158
+ #: includes/views/admin_options_trackship_integration.php:210
159
+ msgid "Get Shipment Status"
160
  msgstr ""
161
 
162
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1015
163
+ #, php-format
164
+ msgid "%s %s orders with “TrackShip balance is 0”"
165
  msgstr ""
166
 
167
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1053
 
168
  msgid "Enable/Disable"
169
  msgstr ""
170
 
171
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1059
172
  msgid "Set order status Delivered when order is delivered"
173
  msgstr ""
174
 
175
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1091
 
 
 
 
 
 
 
 
 
 
 
176
  msgid ""
177
  "You must add the shortcode [wcast-track-order] to the \"page name\" in order "
178
  "for the tracking page to work."
179
  msgstr ""
180
 
181
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1099
182
  msgid "Select Tracking Page"
183
  msgstr ""
184
 
185
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1107
 
 
 
 
 
186
  msgid "Use the tracking page in the customer email/my account tracking link"
187
  msgstr ""
188
 
189
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1113
190
  msgid "Select primary color for tracking page"
191
  msgstr ""
192
 
193
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1119
194
  msgid "Select content border color for tracking page"
195
  msgstr ""
196
 
197
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1125
198
+ msgid "Hide tracking events details"
 
 
199
  msgstr ""
200
 
201
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1131
202
+ msgid "Remove TrackShip branding"
 
 
203
  msgstr ""
204
 
205
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1190
206
+ msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
207
  msgstr ""
208
 
209
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1191
210
  msgid ""
211
+ "This means that the 'mark as <span class='shipped_label'>shipped</span>' "
 
 
 
 
 
 
212
  "will be selected by default when adding tracking info to orders."
213
  msgstr ""
214
 
215
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1194
216
+ msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
 
 
 
 
217
  msgstr ""
218
 
219
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1195
220
+ msgid ""
221
+ "This means that the 'mark as <span class='shipped_label'>completed</span>' "
222
+ "will be selected by default when adding tracking info to orders."
223
  msgstr ""
224
 
225
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1222
226
  msgid "Customer Invoice"
227
  msgstr ""
228
 
229
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1239
230
+ msgid "Rename the “Completed” Order status to “Shipped”"
 
 
 
 
231
  msgstr ""
232
 
233
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1252
234
+ msgid "On which order status email to include the shipment tracking info?"
235
  msgstr ""
236
 
237
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1258
238
  msgid "Show tracking info in Invoice"
239
  msgstr ""
240
 
241
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1264
242
  msgid "Show tracking info in Packing Slip"
243
  msgstr ""
244
 
245
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1281
246
+ msgid "Enable custom order status “Delivered\""
247
  msgstr ""
248
 
249
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1282
250
  msgid ""
251
  "if you enable the delivered item, you will have the option to send delivered "
252
  "email notifications."
253
  msgstr ""
254
 
255
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1288
256
+ msgid "Delivered Label color"
257
  msgstr ""
258
 
259
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1294
260
+ msgid "Delivered Label font color"
 
 
 
 
 
 
 
 
 
 
 
 
261
  msgstr ""
262
 
263
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1297
264
+ msgid "Light"
 
 
265
  msgstr ""
266
 
267
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1298
268
+ msgid "Dark"
269
  msgstr ""
270
 
271
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1305
272
+ msgid "Enable the Delivered order status email"
273
  msgstr ""
274
 
275
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1612
276
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2272
277
+ #: includes/customizer/class-wcast-customizer.php:76
278
+ #: includes/customizer/class-wc-intransit-email-customizer.php:127
279
+ #: includes/views/admin_options_trackship_integration.php:130
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  msgid "In Transit"
281
  msgstr ""
282
 
283
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1615
284
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2271
285
+ #: includes/customizer/class-wcast-customizer.php:68
286
  msgid "Pre Transit"
287
  msgstr ""
288
 
289
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1621
290
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2274
291
+ #: includes/customizer/class-wcast-customizer.php:98
292
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
293
+ #: includes/views/admin_options_trackship_integration.php:171
294
+ msgid "Out For Delivery"
295
  msgstr ""
296
 
297
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1624
298
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2273
299
+ #: includes/customizer/class-wcast-customizer.php:91
300
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
301
+ #: includes/views/admin_options_trackship_integration.php:158
302
  msgid "Available For Pickup"
303
  msgstr ""
304
 
305
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1627
306
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2279
307
+ #: includes/customizer/class-wcast-customizer.php:84
308
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:124
309
+ #: includes/views/admin_options_trackship_integration.php:144
310
  msgid "Return To Sender"
311
  msgstr ""
312
 
313
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1630
314
  msgid "Delivery Failure"
315
  msgstr ""
316
 
317
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1633
318
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2270
319
  msgid "Unknown"
320
  msgstr ""
321
 
322
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1636
323
  msgid "Pending TrackShip"
324
  msgstr ""
325
 
326
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1639
327
  msgid "Invalid Tracking"
328
  msgstr ""
329
 
330
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1642
331
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2278
332
+ msgid "Carrier Unsupported"
333
  msgstr ""
334
 
335
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1645
336
  msgid "Invalid User Key"
337
  msgstr ""
338
 
339
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1648
340
+ msgid "Wrong Shipping Provider"
341
+ msgstr ""
342
+
343
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1651
344
+ msgid "Deleted"
345
+ msgstr ""
346
+
347
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1721
348
  msgid "Resend delivered order notification"
349
  msgstr ""
350
 
351
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1784
352
  msgid "Shipped Order"
353
  msgstr ""
354
 
355
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1808
356
  msgid "Mark order as delivered"
357
  msgstr ""
358
 
359
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1815
360
  msgid "Add Tracking"
361
  msgstr ""
362
 
363
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1842
364
  msgid "Change order status to"
365
  msgstr ""
366
 
367
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:1945
368
+ #: includes/views/admin_options_shipping_provider.php:95
369
  #, php-format
370
  msgid "You don't have any %s shipping providers."
371
  msgstr ""
372
 
373
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2223
374
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2238
375
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2253
376
  msgid "view details"
377
  msgstr ""
378
 
379
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2224
380
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2239
381
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2254
382
  msgid "hide details"
383
  msgstr ""
384
 
385
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2276
386
+ #: includes/customizer/class-wcast-customizer.php:114
387
+ #: includes/customizer/class-wc-failure-email-customizer.php:124
388
+ #: includes/views/admin_options_trackship_integration.php:200
 
 
 
 
 
 
 
 
389
  msgid "Failed Attempt"
390
  msgstr ""
391
 
392
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2277
393
+ msgid "Cancelled"
394
  msgstr ""
395
 
396
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2280
397
+ #: includes/class-wc-advanced-shipment-tracking-front.php:677
 
398
  msgid "Invalid Tracking Number"
399
  msgstr ""
400
 
401
+ #: includes/class-wc-advanced-shipment-tracking-admin.php:2285
402
  msgid "Filter by shipment status"
403
  msgstr ""
404
 
405
+ #: includes/class-wc-advanced-shipment-tracking-front.php:152
406
  msgid ""
407
  "To track your order please enter your Order ID in the box below and press "
408
  "the \"Track\" button. This was given to you on your receipt and in the "
409
  "confirmation email you should have received."
410
  msgstr ""
411
 
412
+ #: includes/class-wc-advanced-shipment-tracking-front.php:153
413
  msgid "Order ID"
414
  msgstr ""
415
 
416
+ #: includes/class-wc-advanced-shipment-tracking-front.php:153
417
+ #: includes/class-wc-advanced-shipment-tracking-front.php:154
418
  msgid "Found in your order confirmation email."
419
  msgstr ""
420
 
421
+ #: includes/class-wc-advanced-shipment-tracking-front.php:154
422
  msgid "Order Email"
423
  msgstr ""
424
 
425
+ #: includes/class-wc-advanced-shipment-tracking-front.php:157
426
+ #: includes/class-wc-advanced-shipment-tracking.php:265
427
+ #: includes/class-wc-advanced-shipment-tracking.php:661
428
+ #: includes/class-wc-advanced-shipment-tracking.php:784
429
+ #: includes/customizer/class-wc-tracking-info-customizer.php:147
430
+ #: includes/customizer/class-wc-tracking-info-customizer.php:444
431
+ #: templates/emails/tracking-info.php:173
432
+ #: templates/myaccount/view-order.php:125
 
433
  msgid "Track"
434
  msgstr ""
435
 
436
+ #: includes/class-wc-advanced-shipment-tracking-front.php:235
437
+ #: includes/class-wc-advanced-shipment-tracking-front.php:519
438
  #, php-format
439
  msgid "Shipment - %s (out of %s)"
440
  msgstr ""
441
 
442
+ #: includes/class-wc-advanced-shipment-tracking-front.php:239
443
+ #: includes/class-wc-advanced-shipment-tracking-front.php:523
444
  msgid "Order: "
445
  msgstr ""
446
 
447
+ #: includes/class-wc-advanced-shipment-tracking-front.php:248
448
+ #: includes/class-wc-advanced-shipment-tracking-front.php:252
449
+ #: includes/class-wc-advanced-shipment-tracking-front.php:532
450
+ #: includes/class-wc-advanced-shipment-tracking-front.php:536
451
  msgid "Estimated Delivery Date: "
452
  msgstr ""
453
 
454
+ #: includes/class-wc-advanced-shipment-tracking-front.php:361
455
+ #: includes/class-wc-advanced-shipment-tracking-front.php:646
456
  msgid "Tracking Details"
457
  msgstr ""
458
 
459
+ #: includes/class-wc-advanced-shipment-tracking-front.php:380
460
+ #: includes/class-wc-advanced-shipment-tracking-front.php:665
461
  msgid "view more"
462
  msgstr ""
463
 
464
+ #: includes/class-wc-advanced-shipment-tracking-front.php:381
465
+ #: includes/class-wc-advanced-shipment-tracking-front.php:666
466
  msgid "view less"
467
  msgstr ""
468
 
469
+ #: includes/class-wc-advanced-shipment-tracking-front.php:389
470
+ msgid "Tracking details not found in TrackShip"
 
 
 
 
471
  msgstr ""
472
 
473
+ #: includes/class-wc-advanced-shipment-tracking.php:95
474
+ #: includes/class-wc-advanced-shipment-tracking.php:249
475
+ #: includes/customizer/class-wcast-customizer.php:31
476
  msgid "Shipment Tracking"
477
  msgstr ""
478
 
479
+ #: includes/class-wc-advanced-shipment-tracking.php:184
480
+ #: includes/class-wc-advanced-shipment-tracking.php:358
481
+ msgid "Mark as Shipped?"
482
  msgstr ""
483
 
484
+ #: includes/class-wc-advanced-shipment-tracking.php:186
485
+ #: includes/class-wc-advanced-shipment-tracking.php:360
486
+ msgid "Mark as Completed?"
487
  msgstr ""
488
 
489
+ #: includes/class-wc-advanced-shipment-tracking.php:191
490
  msgid "Add Tracking Number"
491
  msgstr ""
492
 
493
+ #: includes/class-wc-advanced-shipment-tracking.php:196
494
+ #: includes/class-wc-advanced-shipment-tracking.php:376
495
  msgid "Provider:"
496
  msgstr ""
497
 
498
+ #: includes/class-wc-advanced-shipment-tracking.php:216
499
+ #: includes/class-wc-advanced-shipment-tracking.php:414
500
  msgid "Tracking number:"
501
  msgstr ""
502
 
503
+ #: includes/class-wc-advanced-shipment-tracking.php:222
504
+ #: includes/class-wc-advanced-shipment-tracking.php:422
505
  msgid "Date shipped:"
506
  msgstr ""
507
 
508
+ #: includes/class-wc-advanced-shipment-tracking.php:223
509
+ #: includes/class-wc-advanced-shipment-tracking.php:226
510
+ #: includes/class-wc-advanced-shipment-tracking.php:423
511
+ #: includes/class-wc-advanced-shipment-tracking.php:426
512
+ msgid "Y-m-d"
513
+ msgstr ""
514
+
515
+ #: includes/class-wc-advanced-shipment-tracking.php:265
516
  msgid "Click here to track your shipment"
517
  msgstr ""
518
 
519
  #. 1: shipping date
520
+ #: includes/class-wc-advanced-shipment-tracking.php:273
 
521
  #, php-format
522
  msgid "Shipped on %s"
523
  msgstr ""
524
 
525
+ #: includes/class-wc-advanced-shipment-tracking.php:372
 
 
 
 
526
  msgid "Add Tracking Info"
527
  msgstr ""
528
 
529
+ #: includes/class-wc-advanced-shipment-tracking.php:377
530
  msgid "Select Provider"
531
  msgstr ""
532
 
533
+ #: includes/class-wc-advanced-shipment-tracking.php:437
534
  msgid "Save Tracking"
535
  msgstr ""
536
 
537
+ #: includes/class-wc-advanced-shipment-tracking.php:438
538
  msgid "Preview:"
539
  msgstr ""
540
 
541
+ #: includes/class-wc-advanced-shipment-tracking.php:438
542
  msgid "Click here to track shipment"
543
  msgstr ""
544
 
545
+ #: includes/class-wc-advanced-shipment-tracking.php:635
546
+ #, php-format
547
+ msgid ""
548
+ "Tracking info was deleted for tracking provider %s with tracking number %s"
549
  msgstr ""
550
 
551
+ #: includes/class-wc-advanced-shipment-tracking.php:977
552
+ #, php-format
553
+ msgid "Order was shipped with %s and tracking number is: %s"
554
  msgstr ""
555
 
556
+ #: includes/customizer/class-wcast-customizer.php:40
557
+ msgid "Shipment Status Emails"
558
  msgstr ""
559
 
560
+ #: includes/customizer/class-wcast-customizer.php:52
561
+ msgid "Tracking info display"
562
+ msgstr ""
563
+
564
+ #: includes/customizer/class-wcast-customizer.php:60
565
+ #: includes/customizer/class-wc-email-customizer.php:163
566
+ msgid "Delivered order status email"
567
  msgstr ""
568
 
569
+ #: includes/customizer/class-wcast-customizer.php:369
570
  msgid "Select order to preview"
571
  msgstr ""
572
 
573
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:123
574
  msgid "Your order #{order_number} is available for pickup"
575
  msgstr ""
576
 
577
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:125
578
  msgid ""
579
  "Hi there. we thought you'd like to know that your recent order from "
580
  "{site_title} is available for pickup."
581
  msgstr ""
582
 
583
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:156
584
  msgid "Available For Pickup shipment status email"
585
  msgstr ""
586
 
587
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:157
588
+ #: includes/customizer/class-wc-delivered-email-customizer.php:158
589
+ #: includes/customizer/class-wc-email-customizer.php:164
590
+ #: includes/customizer/class-wc-failure-email-customizer.php:157
591
+ #: includes/customizer/class-wc-intransit-email-customizer.php:160
592
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
593
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:157
594
  msgid "This section lets you customize the Email Content."
595
  msgstr ""
596
 
597
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:171
598
  msgid "Enable Available For Pickup shipment status email"
599
  msgstr ""
600
 
601
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:187
602
+ #: includes/customizer/class-wc-delivered-email-customizer.php:188
603
+ #: includes/customizer/class-wc-email-customizer.php:197
604
+ #: includes/customizer/class-wc-failure-email-customizer.php:187
605
+ #: includes/customizer/class-wc-intransit-email-customizer.php:191
606
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
607
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:187
608
+ #: includes/customizer/class-wc-tracking-info-customizer.php:178
609
  msgid "Preview order"
610
  msgstr ""
611
 
612
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:209
613
+ #: includes/customizer/class-wc-delivered-email-customizer.php:210
614
+ #: includes/customizer/class-wc-failure-email-customizer.php:209
615
+ #: includes/customizer/class-wc-intransit-email-customizer.php:213
616
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:211
617
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:209
 
 
 
 
 
 
 
 
 
618
  msgid ""
619
  "Enter emails here or use variables such as {customer_email}. Multiple emails "
620
  "can be separated by commas."
621
  msgstr ""
622
 
623
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:215
624
+ #: includes/customizer/class-wc-delivered-email-customizer.php:216
625
+ #: includes/customizer/class-wc-email-customizer.php:226
626
+ #: includes/customizer/class-wc-failure-email-customizer.php:215
627
+ #: includes/customizer/class-wc-intransit-email-customizer.php:219
628
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:217
629
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:215
630
  msgid "E.g. {customer.email}, admin@example.org"
631
  msgstr ""
632
 
633
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
634
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
635
+ #: includes/customizer/class-wc-delivered-email-customizer.php:232
636
+ #: includes/customizer/class-wc-delivered-email-customizer.php:254
637
+ #: includes/customizer/class-wc-failure-email-customizer.php:231
638
+ #: includes/customizer/class-wc-failure-email-customizer.php:253
639
+ #: includes/customizer/class-wc-intransit-email-customizer.php:235
640
+ #: includes/customizer/class-wc-intransit-email-customizer.php:257
641
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
642
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
643
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:231
644
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:253
 
 
 
 
 
 
 
 
 
 
645
  msgid "Available placeholders: {site_title}, {order_number}"
646
  msgstr ""
647
 
648
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:237
649
+ #: includes/customizer/class-wc-delivered-email-customizer.php:238
650
+ #: includes/customizer/class-wc-email-customizer.php:249
651
+ #: includes/customizer/class-wc-failure-email-customizer.php:237
652
+ #: includes/customizer/class-wc-intransit-email-customizer.php:241
653
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:239
654
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:237
655
  msgid "Please enter email subject here"
656
  msgstr ""
657
 
658
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:259
659
+ #: includes/customizer/class-wc-delivered-email-customizer.php:260
660
+ #: includes/customizer/class-wc-email-customizer.php:272
661
+ #: includes/customizer/class-wc-failure-email-customizer.php:259
662
+ #: includes/customizer/class-wc-intransit-email-customizer.php:263
663
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:261
664
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:259
 
 
 
 
 
 
 
 
 
 
 
665
  msgid "Please enter email heading here"
666
  msgstr ""
667
 
668
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
669
+ #: includes/customizer/class-wc-delivered-email-customizer.php:275
670
+ #: includes/customizer/class-wc-failure-email-customizer.php:274
671
+ #: includes/customizer/class-wc-intransit-email-customizer.php:278
672
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:276
673
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:274
674
  msgid "Show tracking details"
675
  msgstr ""
676
 
677
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:290
678
+ #: includes/customizer/class-wc-delivered-email-customizer.php:291
679
+ #: includes/customizer/class-wc-failure-email-customizer.php:290
680
+ #: includes/customizer/class-wc-intransit-email-customizer.php:294
681
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:292
682
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:290
683
  msgid "Show order details"
684
  msgstr ""
685
 
686
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:306
687
+ #: includes/customizer/class-wc-delivered-email-customizer.php:307
688
+ #: includes/customizer/class-wc-failure-email-customizer.php:306
689
+ #: includes/customizer/class-wc-intransit-email-customizer.php:310
690
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:308
691
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:306
692
  msgid "Show billing address"
693
  msgstr ""
694
 
695
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:323
696
+ #: includes/customizer/class-wc-delivered-email-customizer.php:324
697
+ #: includes/customizer/class-wc-failure-email-customizer.php:323
698
+ #: includes/customizer/class-wc-intransit-email-customizer.php:327
699
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:325
700
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:323
701
  msgid "Show shipping address"
702
  msgstr ""
703
 
704
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
705
+ #: includes/customizer/class-wc-delivered-email-customizer.php:340
706
+ #: includes/customizer/class-wc-email-customizer.php:392
707
+ #: includes/customizer/class-wc-failure-email-customizer.php:339
708
+ #: includes/customizer/class-wc-intransit-email-customizer.php:363
709
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
710
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:339
711
  msgid "Google Analytics link tracking"
712
  msgstr ""
713
 
714
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
715
+ #: includes/customizer/class-wc-delivered-email-customizer.php:341
716
+ #: includes/customizer/class-wc-failure-email-customizer.php:340
717
+ #: includes/customizer/class-wc-intransit-email-customizer.php:364
718
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
719
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:340
720
  msgid "This will be appended to URL in the email content"
721
  msgstr ""
722
 
723
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
724
+ #: includes/customizer/class-wc-delivered-email-customizer.php:362
725
+ #: includes/customizer/class-wc-email-customizer.php:288
726
+ #: includes/customizer/class-wc-failure-email-customizer.php:361
727
+ #: includes/customizer/class-wc-intransit-email-customizer.php:344
728
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
729
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:361
730
  msgid "Email content"
731
  msgstr ""
732
 
733
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:380
734
+ #: includes/customizer/class-wc-delivered-email-customizer.php:382
735
+ #: includes/customizer/class-wc-email-customizer.php:413
736
+ #: includes/customizer/class-wc-failure-email-customizer.php:381
737
+ #: includes/customizer/class-wc-intransit-email-customizer.php:385
738
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:383
739
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:381
740
  msgid "Available placeholders"
741
  msgstr ""
742
 
743
+ #: includes/customizer/class-wc-availableforpickup-email-customizer.php:427
744
+ #: includes/customizer/class-wc-delivered-email-customizer.php:429
745
+ #: includes/customizer/class-wc-email-customizer.php:446
746
+ #: includes/customizer/class-wc-failure-email-customizer.php:428
747
+ #: includes/customizer/class-wc-intransit-email-customizer.php:431
748
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:429
749
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:427
750
+ #: includes/customizer/class-wc-tracking-info-customizer.php:791
751
+ msgid "Please select order to preview."
752
  msgstr ""
753
 
754
+ #: includes/customizer/class-wc-delivered-email-customizer.php:124
755
  msgid "Your order #{order_number} has been delivered"
756
  msgstr ""
757
 
758
+ #: includes/customizer/class-wc-delivered-email-customizer.php:126
759
  msgid ""
760
  "Hi there. we thought you'd like to know that your recent order from "
761
  "{site_title} has been Delivered."
762
  msgstr ""
763
 
764
+ #: includes/customizer/class-wc-delivered-email-customizer.php:157
765
  msgid "Delivered shipment status email"
766
  msgstr ""
767
 
768
+ #: includes/customizer/class-wc-delivered-email-customizer.php:172
769
  msgid "Enable Delivered shipment status email"
770
  msgstr ""
771
 
772
+ #: includes/customizer/class-wc-email-customizer.php:130
773
+ #: includes/emails/class-shipment-delivered-email.php:94
774
  msgid "Your {site_title} order is now delivered"
775
  msgstr ""
776
 
777
+ #: includes/customizer/class-wc-email-customizer.php:131
778
+ #: includes/emails/class-shipment-delivered-email.php:104
779
  msgid "Thanks for shopping with us"
780
  msgstr ""
781
 
782
+ #: includes/customizer/class-wc-email-customizer.php:132
783
  msgid "Hi there. Your recent order on {site_title} has been delivered."
784
  msgstr ""
785
 
786
+ #: includes/customizer/class-wc-email-customizer.php:179
787
  msgid "Enable Delivered order status email"
788
  msgstr ""
789
 
790
+ #: includes/customizer/class-wc-email-customizer.php:201
791
+ #: includes/customizer/class-wc-tracking-info-customizer.php:182
792
  msgid "Please select a order..."
793
  msgstr ""
794
 
795
+ #: includes/customizer/class-wc-email-customizer.php:220
 
 
 
 
796
  msgid ""
797
  "Enter emails use variables such as {customer_email}. Multiple emails can be "
798
  "separated by commas."
799
  msgstr ""
800
 
801
+ #: includes/customizer/class-wc-email-customizer.php:243
802
+ #: includes/customizer/class-wc-email-customizer.php:266
803
  msgid "Available variables: {site_title}, {order_number}"
804
  msgstr ""
805
 
806
+ #: includes/customizer/class-wc-email-customizer.php:289
807
  msgid ""
808
  "available variables: {site_title}, {customer_email}, {customer_first_name}, "
809
  "{customer_last_name}, {customer_username}, {order_number}"
810
  msgstr ""
811
 
812
+ #: includes/customizer/class-wc-email-customizer.php:308
813
  msgid "Display tracking details"
814
  msgstr ""
815
 
816
+ #: includes/customizer/class-wc-email-customizer.php:324
817
  msgid "Display order details"
818
  msgstr ""
819
 
820
+ #: includes/customizer/class-wc-email-customizer.php:341
821
  msgid "Display Shipping Address"
822
  msgstr ""
823
 
824
+ #: includes/customizer/class-wc-email-customizer.php:358
825
  msgid "Display Billing Address"
826
  msgstr ""
827
 
828
+ #: includes/customizer/class-wc-email-customizer.php:375
829
  msgid "Enable Google Analytics tracking"
830
  msgstr ""
831
 
832
+ #: includes/customizer/class-wc-email-customizer.php:393
833
  msgid ""
834
  "This will be appended to URL in the email content – e.g. "
835
  "utm_source=ast&utm_medium=email&utm_campaign=delivered"
836
  msgstr ""
837
 
838
+ #: includes/customizer/class-wc-failure-email-customizer.php:123
839
  msgid "Your order #{order_number} is Failed Attempt"
840
  msgstr ""
841
 
842
+ #: includes/customizer/class-wc-failure-email-customizer.php:125
843
  msgid ""
844
  "Hi there. we thought you'd like to know that your recent order from "
845
  "{site_title} is Failed Attempt"
846
  msgstr ""
847
 
848
+ #: includes/customizer/class-wc-failure-email-customizer.php:156
849
  msgid "Failed Attempt shipment status email"
850
  msgstr ""
851
 
852
+ #: includes/customizer/class-wc-failure-email-customizer.php:171
853
  msgid "Enable Failed Attempt shipment status email"
854
  msgstr ""
855
 
856
+ #: includes/customizer/class-wc-intransit-email-customizer.php:126
857
  msgid "Your order #{order_number} is in transit"
858
  msgstr ""
859
 
860
+ #: includes/customizer/class-wc-intransit-email-customizer.php:128
861
  msgid ""
862
  "Hi there. we thought you'd like to know that your recent order from "
863
  "{site_title} is in transit"
864
  msgstr ""
865
 
866
+ #: includes/customizer/class-wc-intransit-email-customizer.php:159
867
  msgid "In Transit shipment status email"
868
  msgstr ""
869
 
870
+ #: includes/customizer/class-wc-intransit-email-customizer.php:174
871
  msgid "Enable In Transit shipment status email"
872
  msgstr ""
873
 
874
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:125
875
  msgid "Your order #{order_number} is out for delivery"
876
  msgstr ""
877
 
878
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:127
879
  msgid ""
880
  "Hi there. we thought you'd like to know that your recent order from "
881
  "{site_title} is out for delivery."
882
  msgstr ""
883
 
884
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:158
885
  msgid "Out For Delivery shipment status email"
886
  msgstr ""
887
 
888
+ #: includes/customizer/class-wc-outfordelivery-email-customizer.php:173
889
  msgid "Enable Out For Delivery shipment status email"
890
  msgstr ""
891
 
892
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:123
893
  msgid "Your order #{order_number} has returned to sender"
894
  msgstr ""
895
 
896
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:125
897
  msgid ""
898
  "Hi there. we thought you'd like to know that your recent order from "
899
  "{site_title} has been returned to sender."
900
  msgstr ""
901
 
902
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:156
903
  msgid "Return To Sender shipment status email"
904
  msgstr ""
905
 
906
+ #: includes/customizer/class-wc-returntosender-email-customizer.php:171
907
  msgid "Enable Return To Sender shipment status email"
908
  msgstr ""
909
 
910
+ #: includes/customizer/class-wc-tracking-info-customizer.php:144
911
+ #: includes/customizer/class-wc-tracking-info-customizer.php:364
912
+ #: templates/emails/tracking-info.php:131 templates/myaccount/view-order.php:91
 
913
  msgid "Provider"
914
  msgstr ""
915
 
916
+ #: includes/customizer/class-wc-tracking-info-customizer.php:145
917
+ #: includes/customizer/class-wc-tracking-info-customizer.php:386
918
+ #: templates/emails/tracking-info.php:155
919
+ #: templates/myaccount/view-order.php:113
 
920
  msgid "Tracking Number"
921
  msgstr ""
922
 
923
+ #: includes/customizer/class-wc-tracking-info-customizer.php:146
924
+ #: includes/customizer/class-wc-tracking-info-customizer.php:407
925
  msgid "Shipped Date"
926
  msgstr ""
927
 
928
+ #: includes/customizer/class-wc-tracking-info-customizer.php:179
929
  msgid ""
930
  "select from last 20 orders one order that you added tracking info in order "
931
  "to preview and design the tracking info table."
932
  msgstr ""
933
 
934
+ #: includes/customizer/class-wc-tracking-info-customizer.php:198
935
+ #: includes/views/admin_options_settings.php:15
936
+ #: includes/views/admin_options_trackship_integration.php:51
937
+ msgid "General Settings"
938
+ msgstr ""
939
+
940
+ #: includes/customizer/class-wc-tracking-info-customizer.php:213
941
  msgid "Tracking Display Position"
942
  msgstr ""
943
 
944
+ #: includes/customizer/class-wc-tracking-info-customizer.php:217
945
  msgid "Before Order Details"
946
  msgstr ""
947
 
948
+ #: includes/customizer/class-wc-tracking-info-customizer.php:218
949
  msgid "After Order Details"
950
  msgstr ""
951
 
952
+ #: includes/customizer/class-wc-tracking-info-customizer.php:233
953
  msgid "Main Header text"
954
  msgstr ""
955
 
956
+ #: includes/customizer/class-wc-tracking-info-customizer.php:240
 
957
  msgid "Tracking Information"
958
  msgstr ""
959
 
960
+ #: includes/customizer/class-wc-tracking-info-customizer.php:255
961
  msgid "Additional text after header"
962
  msgstr ""
963
 
964
+ #: includes/customizer/class-wc-tracking-info-customizer.php:276
965
+ msgid "Table Content"
966
  msgstr ""
967
 
968
+ #: includes/customizer/class-wc-tracking-info-customizer.php:291
969
  msgid "Display Shipment Provider image"
970
  msgstr ""
971
 
972
+ #: includes/customizer/class-wc-tracking-info-customizer.php:308
973
  msgid "Hide date"
974
  msgstr ""
975
 
976
+ #: includes/customizer/class-wc-tracking-info-customizer.php:325
977
+ msgid "Table Header"
978
+ msgstr ""
979
+
980
+ #: includes/customizer/class-wc-tracking-info-customizer.php:340
981
+ msgid "Hide Header"
982
+ msgstr ""
983
+
984
+ #: includes/customizer/class-wc-tracking-info-customizer.php:357
985
  msgid "Provider Header Text"
986
  msgstr ""
987
 
988
+ #: includes/customizer/class-wc-tracking-info-customizer.php:379
989
  msgid "Tracking Number Header Text"
990
  msgstr ""
991
 
992
+ #: includes/customizer/class-wc-tracking-info-customizer.php:400
993
  msgid "Shipped Date Header Text"
994
  msgstr ""
995
 
996
+ #: includes/customizer/class-wc-tracking-info-customizer.php:421
997
  msgid "Track Label"
998
  msgstr ""
999
 
1000
+ #: includes/customizer/class-wc-tracking-info-customizer.php:437
1001
  msgid "Track Header Text"
1002
  msgstr ""
1003
 
1004
+ #: includes/customizer/class-wc-tracking-info-customizer.php:459
1005
+ msgid "Table header font size"
1006
+ msgstr ""
1007
+
1008
+ #: includes/customizer/class-wc-tracking-info-customizer.php:476
1009
+ msgid "Table header font color"
1010
+ msgstr ""
1011
+
1012
+ #: includes/customizer/class-wc-tracking-info-customizer.php:492
1013
  msgid "Table Design"
1014
  msgstr ""
1015
 
1016
+ #: includes/customizer/class-wc-tracking-info-customizer.php:507
1017
  msgid "Padding"
1018
  msgstr ""
1019
 
1020
+ #: includes/customizer/class-wc-tracking-info-customizer.php:527
1021
  msgid "Background color"
1022
  msgstr ""
1023
 
1024
+ #: includes/customizer/class-wc-tracking-info-customizer.php:555
1025
  msgid "Border color"
1026
  msgstr ""
1027
 
1028
+ #: includes/customizer/class-wc-tracking-info-customizer.php:571
1029
  msgid "Border size"
1030
  msgstr ""
1031
 
1032
+ #: includes/customizer/class-wc-tracking-info-customizer.php:595
 
 
 
 
 
 
1033
  msgid "Table text align"
1034
  msgstr ""
1035
 
1036
+ #: includes/customizer/class-wc-tracking-info-customizer.php:618
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1037
  msgid "Table content font size"
1038
  msgstr ""
1039
 
1040
+ #: includes/customizer/class-wc-tracking-info-customizer.php:635
1041
  msgid "Table content font color"
1042
  msgstr ""
1043
 
1044
+ #: includes/customizer/class-wc-tracking-info-customizer.php:651
1045
  msgid "Content line height"
1046
  msgstr ""
1047
 
1048
+ #: includes/customizer/class-wc-tracking-info-customizer.php:672
1049
  msgid "Content font weight"
1050
  msgstr ""
1051
 
1052
+ #: includes/customizer/class-wc-tracking-info-customizer.php:694
1053
+ msgid "Track Button Design"
1054
  msgstr ""
1055
 
1056
+ #: includes/customizer/class-wc-tracking-info-customizer.php:708
1057
  msgid "Track Link Font Color"
1058
  msgstr ""
1059
 
1060
+ #: includes/customizer/class-wc-tracking-info-customizer.php:724
1061
  msgid "Track Link Background Color"
1062
  msgstr ""
1063
 
1064
+ #: includes/customizer/class-wc-tracking-info-customizer.php:739
1065
  msgid "Track link Border"
1066
  msgstr ""
1067
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1068
  #: includes/emails/class-shipment-delivered-email.php:32
1069
  msgid "Delivered order"
1070
  msgstr ""
1075
  "delivered and usually indicate that their orders have been shipped."
1076
  msgstr ""
1077
 
1078
+ #: includes/emails/class-shipment-delivered-email.php:279
1079
+ msgid "Click Here"
1080
  msgstr ""
1081
 
1082
+ #: includes/emails/class-shipment-delivered-email.php:280
1083
+ msgid "Edit in customizer"
1084
  msgstr ""
1085
 
1086
+ #: includes/views/admin_options_bulk_upload.php:10
1087
+ msgid "Upload CSV"
 
 
1088
  msgstr ""
1089
 
1090
+ #: includes/views/admin_options_bulk_upload.php:20
1091
+ msgid ""
1092
+ "Replace tracking info if exists? (if not checked, the tracking info will be "
1093
+ "added)"
1094
  msgstr ""
1095
 
1096
+ #: includes/views/admin_options_bulk_upload.php:29
1097
+ #: includes/views/admin_options_shipping_provider.php:119
1098
+ #: includes/views/admin_options_shipping_provider.php:153
1099
+ msgid "Upload"
 
1100
  msgstr ""
1101
 
1102
+ #: includes/views/admin_options_bulk_upload.php:31
1103
+ msgid "Settings Saved."
1104
  msgstr ""
1105
 
1106
+ #: includes/views/admin_options_bulk_upload.php:41
1107
+ msgid "Upload Progress - "
1108
  msgstr ""
1109
 
1110
+ #: includes/views/admin_options_bulk_upload.php:45
1111
+ msgid "Sample CSV"
1112
  msgstr ""
1113
 
1114
+ #: includes/views/admin_options_bulk_upload.php:50
1115
+ msgid "You can download an example of the csv file:"
1116
  msgstr ""
1117
 
1118
+ #: includes/views/admin_options_bulk_upload.php:53
1119
+ msgid "Download sample csv file"
1120
  msgstr ""
1121
 
1122
+ #: includes/views/admin_options_bulk_upload.php:58
1123
  msgid ""
1124
+ "For detailed instructions on how to upload tracking info in bulk, see our"
 
1125
  msgstr ""
1126
 
1127
+ #: includes/views/admin_options_settings.php:26
1128
+ #: includes/views/admin_options_settings.php:74
1129
+ #: includes/views/admin_options_trackship_integration.php:62
1130
+ #: includes/views/admin_options_trackship_integration.php:93
1131
+ msgid "Save Changes"
1132
  msgstr ""
1133
 
1134
+ #: includes/views/admin_options_settings.php:40
1135
+ msgid "Tracking Info Display"
 
 
1136
  msgstr ""
1137
 
1138
+ #: includes/views/admin_options_settings.php:49
1139
+ msgid "You can customize the tracking info display on emails and my account"
1140
  msgstr ""
1141
 
1142
+ #: includes/views/admin_options_settings.php:52
1143
+ msgid "Launch Customizer"
1144
  msgstr ""
1145
 
1146
+ #: includes/views/admin_options_settings.php:62
1147
+ msgid "Delivered Order Status"
 
1148
  msgstr ""
1149
 
1150
+ #: includes/views/admin_options_shipping_provider.php:12
1151
+ msgid "Active"
1152
  msgstr ""
1153
 
1154
+ #: includes/views/admin_options_shipping_provider.php:13
1155
+ msgid "Inactive"
1156
  msgstr ""
1157
 
1158
+ #: includes/views/admin_options_shipping_provider.php:14
1159
+ msgid "Custom"
 
1160
  msgstr ""
1161
 
1162
+ #: includes/views/admin_options_shipping_provider.php:15
1163
+ msgid "All"
 
1164
  msgstr ""
1165
 
1166
+ #: includes/views/admin_options_shipping_provider.php:21
1167
+ msgid "Add Custom Provider"
1168
  msgstr ""
1169
 
1170
+ #: includes/views/admin_options_shipping_provider.php:22
1171
+ #: includes/views/admin_options_shipping_provider.php:170
1172
+ #: includes/views/admin_options_shipping_provider.php:177
1173
+ msgid "Sync Shipping Providers"
1174
  msgstr ""
1175
 
1176
+ #: includes/views/admin_options_shipping_provider.php:23
1177
+ msgid "Reset"
 
 
1178
  msgstr ""
1179
 
1180
+ #: includes/views/admin_options_shipping_provider.php:23
1181
+ msgid "active"
1182
+ msgstr ""
1183
+
1184
+ #: includes/views/admin_options_shipping_provider.php:23
1185
+ msgid "inactive"
1186
+ msgstr ""
1187
+
1188
+ #: includes/views/admin_options_shipping_provider.php:27
1189
+ msgid "Search by provider / country"
1190
  msgstr ""
1191
 
1192
  #: includes/views/admin_options_shipping_provider.php:101
1193
+ msgid "Add Custom Shipping Provider"
 
1194
  msgstr ""
1195
 
1196
+ #: includes/views/admin_options_shipping_provider.php:108
1197
+ #: includes/views/admin_options_shipping_provider.php:142
1198
+ msgid "Shipping Country"
1199
  msgstr ""
1200
 
1201
+ #: includes/views/admin_options_shipping_provider.php:109
1202
+ #: includes/views/admin_options_shipping_provider.php:143
1203
+ msgid "Global"
1204
  msgstr ""
1205
 
1206
+ #: includes/views/admin_options_shipping_provider.php:135
1207
+ msgid "Edit Custom Shipping Provider"
 
1208
  msgstr ""
1209
 
1210
+ #: includes/views/admin_options_shipping_provider.php:171
1211
+ msgid ""
1212
+ "Syncing the shipping providers list add or updates the pre-set shipping "
1213
+ "providers and will not effect custom shipping providers."
1214
  msgstr ""
1215
 
1216
+ #: includes/views/admin_options_shipping_provider.php:173
1217
  msgid "Providers Added"
1218
  msgstr ""
1219
 
1220
+ #: includes/views/admin_options_shipping_provider.php:174
1221
  msgid "Providers Updated"
1222
  msgstr ""
1223
 
1224
+ #: includes/views/admin_options_shipping_provider.php:175
1225
  msgid "Providers Deleted"
1226
  msgstr ""
1227
 
1228
+ #: includes/views/admin_options_trackship_integration.php:17
1229
+ msgid "Connection status"
1230
+ msgstr ""
1231
+
1232
+ #: includes/views/admin_options_trackship_integration.php:24
1233
+ msgid "TrackShip Connection Status"
1234
  msgstr ""
1235
 
 
1236
  #: includes/views/admin_options_trackship_integration.php:35
1237
+ msgid ""
1238
+ "You are now connected with TrackShip! TrackShip makes it effortless to "
1239
+ "automate your post shipping operations and get tracking and delivery status "
1240
+ "updates directly in the WooCommerce admin."
1241
  msgstr ""
1242
 
1243
+ #: includes/views/admin_options_trackship_integration.php:41
1244
+ msgid "TrackShip Dashboard"
1245
  msgstr ""
1246
 
1247
+ #: includes/views/admin_options_trackship_integration.php:76
1248
+ msgid "Tracking Page"
1249
+ msgstr ""
1250
+
1251
+ #: includes/views/admin_options_trackship_integration.php:86
1252
  msgid "Click to preview the tracking page"
1253
  msgstr ""
1254
 
1255
+ #: includes/views/admin_options_trackship_integration.php:87
1256
  msgid "PLEASE NOTE - make sure to save your settings before preview."
1257
  msgstr ""
1258
 
1259
+ #: includes/views/admin_options_trackship_integration.php:106
1260
  msgid "Shipment Status Notifications "
1261
  msgstr ""
1262
 
1263
+ #: includes/views/admin_options_trackship_integration.php:132
1264
  msgid ""
1265
  "Carrier has accepted or picked up shipment from shipper. The shipment is on "
1266
  "the way."
1267
  msgstr ""
1268
 
1269
+ #: includes/views/admin_options_trackship_integration.php:146
1270
  msgid "Shipment is returned to sender"
1271
  msgstr ""
1272
 
1273
+ #: includes/views/admin_options_trackship_integration.php:160
1274
  msgid "The shipment is ready to pickup."
1275
  msgstr ""
1276
 
1277
+ #: includes/views/admin_options_trackship_integration.php:173
1278
  msgid "Carrier is about to deliver the shipment"
1279
  msgstr ""
1280
 
1281
+ #: includes/views/admin_options_trackship_integration.php:187
1282
  msgid "The shipment was delivered successfully"
1283
  msgstr ""
1284
 
1285
+ #: includes/views/admin_options_trackship_integration.php:188
1286
  msgid ""
1287
  "You already have delivered email enabled, to enable this email you'll need "
1288
  "to disable the order status delivered in settings."
1289
  msgstr ""
1290
 
1291
+ #: includes/views/admin_options_trackship_integration.php:202
1292
  msgid ""
1293
  "Carrier attempted to deliver but failed, and usually leaves a notice and "
1294
  "will try to deliver the package again."
1295
  msgstr ""
1296
 
1297
+ #: includes/views/admin_options_trackship_integration.php:219
1298
+ msgid ""
1299
+ "You can send all your orders from the last 30 days to get shipment status "
1300
+ "from TrackShip:"
 
 
1301
  msgstr ""
1302
 
1303
+ #: includes/views/zorem_admin_ts_sidebar.php:10
1304
  msgid "Dashboard"
1305
  msgstr ""
1306
 
1307
+ #: templates/emails/tracking-info.php:159
 
 
 
 
1308
  msgid "Status"
1309
  msgstr ""
1310
 
1311
+ #: templates/emails/wcast-email-order-details.php:31
1312
  msgid "Order Details"
1313
  msgstr ""
1314
 
1315
  #. %s: Order ID.
1316
+ #: templates/emails/wcast-email-order-details.php:47
1317
  #, php-format
1318
  msgid "Order number: %s"
1319
  msgstr ""
1320
 
1321
+ #: templates/emails/wcast-email-order-details.php:54
1322
  msgid "Order date:"
1323
  msgstr ""
1324
 
1325
+ #. Name of the plugin
1326
+ msgid "Advanced Shipment Tracking for WooCommerce"
1327
+ msgstr ""
1328
+
1329
+ #. Description of the plugin
1330
+ msgid ""
1331
+ "Add shipment tracking information to your WooCommerce orders and provide "
1332
+ "customers with an easy way to track their orders. Shipment tracking Info "
1333
+ "will appear in customers accounts (in the order panel) and in WooCommerce "
1334
+ "order complete email."
1335
+ msgstr ""
1336
+
1337
+ #. Author of the plugin
1338
+ msgid "zorem"
1339
  msgstr ""
readme.txt CHANGED
@@ -73,8 +73,11 @@ Hebrew, Hindi, Italian, Norwegian (Bokmål), Russian, Swedish, Turkish, Bulgaria
73
  * [WP-Lister Pro for Amazon](https://www.wplab.com/plugins/wp-lister-for-amazon/)
74
 
75
  == Compatibility with PDF Invoices & Packing Slips plugins ==
76
- * [WooCommerce PDF Invoices & Packing Slips plugin](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips).
77
 
 
 
 
78
 
79
  https://www.youtube.com/watch?v=Mw7laecPtyw
80
 
@@ -118,6 +121,44 @@ http://a32694-tmp.s415.upress.link/wp-json/wc/v1/orders/<order-id>/shipment-trac
118
 
119
  == Changelog ==
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  = 2.4.5 =
122
  * Fixed issue with search
123
  * Fixed translabled string issue in delivered email
73
  * [WP-Lister Pro for Amazon](https://www.wplab.com/plugins/wp-lister-for-amazon/)
74
 
75
  == Compatibility with PDF Invoices & Packing Slips plugins ==
76
+ * [WooCommerce PDF Invoices & Packing Slips plugin](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips)
77
 
78
+ == Compatibility with SMS Plugins ==
79
+ * [SMS Alert Order Notifications – WooCommerce](https://wordpress.org/plugins/sms-alert/)
80
+ * [WC – APG SMS Notifications](https://wordpress.org/plugins/woocommerce-apg-sms-notifications/)
81
 
82
  https://www.youtube.com/watch?v=Mw7laecPtyw
83
 
121
 
122
  == Changelog ==
123
 
124
+ = 2.5.5 =
125
+ * Added Bulk Actions section in TrackShip tab
126
+ * Updated design trackship connection button
127
+ * Updated settingd of Tracking Info Display customizer
128
+ * Updated translation .pot file
129
+ * Removed admin message for users which is not connected to trackship
130
+ * Fixed design issue of tracking page for trackship for RTL
131
+ * Fixed design issue of shipping providers list for small screen
132
+ * Fixed warning - Undefined index: custom_tracking_provider
133
+
134
+ = 2.5.1 =
135
+ * Added filter for change tracking provider name - "ast_provider_title"
136
+ * Updated translation strings
137
+ * Removed white gaps from settings / bulk upload bottom
138
+ * Fixed design issue with WeDocs plugin
139
+
140
+ = 2.5 =
141
+ * Added validation in tracking number for special character when add new tracking info in order and also in bulk upload
142
+ * Added filter in Trackship tracking page text
143
+ * Added functionality for add tracking info in custom order status emails
144
+ * Added compatibility with - "WC – APG SMS Notifications" plugin
145
+ * Added option for Hide tracking events details for TracksShip users
146
+ * Updated Advanced Shipment Tracking settings page design
147
+
148
+ = 2.4.7.2 =
149
+ * Fixed Delivered email qty issue with Kadence
150
+ * Added compatibility with "SMS Alert Order Notifications – WooCommerce" plugin
151
+ * Added functionality for add custom tracking provider from REST API
152
+ * Updated swedish language files
153
+
154
+ = 2.4.7 =
155
+ * Fixed issue with tracking page
156
+ * Added functionality of add order note whene adding/deleting tracking infomration in order
157
+ * Updated swedish language files
158
+
159
+ = 2.4.6 =
160
+ * Updated option to Send only last 30 days shipped orders to trackship from settings panel
161
+
162
  = 2.4.5 =
163
  * Fixed issue with search
164
  * Fixed translabled string issue in delivered email
templates/emails/plain/tracking-info.php DELETED
@@ -1,32 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) {
3
- exit;
4
- }
5
-
6
- /**
7
- * Shipment Tracking
8
- *
9
- * Shows tracking information in the plain text order email
10
- *
11
- * @author WooThemes
12
- * @package WooCommerce Shipment Tracking/templates/email/plain
13
- * @version 1.6.4
14
- */
15
-
16
- if ( $tracking_items ) :
17
-
18
- echo apply_filters( 'woocommerce_shipment_tracking_my_orders_title', __( 'TRACKING INFORMATION', 'woo-advanced-shipment-tracking' ) );
19
-
20
- echo "\n";
21
-
22
- foreach ( $tracking_items as $tracking_item ) {
23
- echo esc_html( $tracking_item[ 'formatted_tracking_provider' ] ) . "\n";
24
- echo esc_html( $tracking_item[ 'tracking_number' ] ) . "\n";
25
- echo esc_url( $tracking_item[ 'formatted_tracking_link' ] ) . "\n\n";
26
- }
27
-
28
- echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= \n\n";
29
-
30
- endif;
31
-
32
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
templates/emails/tracking-info.php CHANGED
@@ -67,6 +67,7 @@ if ( $tracking_items ) :
67
 
68
  $tracking_link_style = "color: ".$tracking_link_font_color." ;background:".$tracking_link_bg_color.";padding: 10px;text-decoration:".$tracking_link_border."";
69
 
 
70
  $remove_date_from_tracking_info = get_theme_mod('remove_date_from_tracking');
71
  $show_track_label = get_theme_mod('show_track_label');
72
 
@@ -84,8 +85,8 @@ if ( $tracking_items ) :
84
  <h2 class="header_text"><?php echo apply_filters( 'woocommerce_shipment_tracking_my_orders_title', __( $shipment_tracking_header, 'woo-advanced-shipment-tracking' ) ); ?></h2>
85
  <p class="addition_header"><?php echo $shipment_tracking_header_text; ?></p>
86
  <table class="td tracking_table" cellspacing="0" cellpadding="6" style="width: 100%;border-collapse: collapse;line-height:<?php echo $table_content_line_height; ?>px;background:<?php echo $email_table_backgroud_color; ?>" border="1">
87
-
88
- <thead>
89
  <tr>
90
  <th class="tracking-provider" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( $provider_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
91
  <th class="tracking-number" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( $tracking_number_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
@@ -103,6 +104,26 @@ if ( $tracking_items ) :
103
  <?php } ?>
104
  </tr>
105
  </thead>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
 
107
  <tbody><?php
108
  foreach ( $tracking_items as $tracking_item ) {
@@ -129,7 +150,7 @@ if ( $tracking_items ) :
129
  <?php } else{
130
  if($display_thumbnail == 1){ ?>
131
  <img style="width: 50px;margin-right: 5px;vertical-align: middle;" src="<?php echo $src; ?>"><?php } }
132
- echo esc_html( $tracking_item['formatted_tracking_provider'] ); ?>
133
  </td>
134
  <td class="tracking-number" data-title="<?php _e( 'Tracking Number', 'woo-advanced-shipment-tracking' ); ?>" style="<?php echo $td_column_style; ?>">
135
  <?php echo esc_html( $tracking_item['tracking_number'] ); ?>
@@ -158,4 +179,4 @@ if ( $tracking_items ) :
158
  </table><br /><br />
159
 
160
  <?php
161
- endif;
67
 
68
  $tracking_link_style = "color: ".$tracking_link_font_color." ;background:".$tracking_link_bg_color.";padding: 10px;text-decoration:".$tracking_link_border."";
69
 
70
+ $hide_table_header = get_theme_mod('hide_table_header');
71
  $remove_date_from_tracking_info = get_theme_mod('remove_date_from_tracking');
72
  $show_track_label = get_theme_mod('show_track_label');
73
 
85
  <h2 class="header_text"><?php echo apply_filters( 'woocommerce_shipment_tracking_my_orders_title', __( $shipment_tracking_header, 'woo-advanced-shipment-tracking' ) ); ?></h2>
86
  <p class="addition_header"><?php echo $shipment_tracking_header_text; ?></p>
87
  <table class="td tracking_table" cellspacing="0" cellpadding="6" style="width: 100%;border-collapse: collapse;line-height:<?php echo $table_content_line_height; ?>px;background:<?php echo $email_table_backgroud_color; ?>" border="1">
88
+ <?php if($preview){ ?>
89
+ <thead class="<?php if($hide_table_header){ echo 'hide'; }?>">
90
  <tr>
91
  <th class="tracking-provider" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( $provider_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
92
  <th class="tracking-number" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( $tracking_number_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
104
  <?php } ?>
105
  </tr>
106
  </thead>
107
+ <?php } else{ ?>
108
+ <thead style="<?php if($hide_table_header){ echo 'display:none'; }?>">
109
+ <tr>
110
+ <th class="tracking-provider" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( $provider_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
111
+ <th class="tracking-number" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( $tracking_number_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
112
+ <?php if($preview){ ?>
113
+ <th class="date-shipped <?php if($remove_date_from_tracking_info == 1){ echo 'hide'; } ?>" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( $shipped_date_header_text, 'woo-advanced-shipment-tracking' ); ?></th>
114
+ <?php } else{
115
+ if($remove_date_from_tracking_info != 1){ ?>
116
+ <th class="date-shipped" style="<?php echo $th_column_style; ?>"><span class="nobr"><?php _e( $shipped_date_header_text, 'woo-advanced-shipment-tracking' ); ?></span></th>
117
+ <?php }
118
+ } ?>
119
+ <?php if($preview){ ?>
120
+ <th class="order-actions" scope="col" class="td" style="<?php echo $th_column_style; ?>"><span class="track_label <?php if($show_track_label != 1){ echo 'hide'; } ?>"><?php _e( $track_header_text, 'woo-advanced-shipment-tracking' ); ?></span></th>
121
+ <?php } else{ ?>
122
+ <th class="order-actions" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php if($show_track_label == 1){ _e( $track_header_text, 'woo-advanced-shipment-tracking' ); } ?></th>
123
+ <?php } ?>
124
+ </tr>
125
+ </thead>
126
+ <?php } ?>
127
 
128
  <tbody><?php
129
  foreach ( $tracking_items as $tracking_item ) {
150
  <?php } else{
151
  if($display_thumbnail == 1){ ?>
152
  <img style="width: 50px;margin-right: 5px;vertical-align: middle;" src="<?php echo $src; ?>"><?php } }
153
+ echo apply_filters( 'ast_provider_title', esc_html( $tracking_item['formatted_tracking_provider'] )); ?>
154
  </td>
155
  <td class="tracking-number" data-title="<?php _e( 'Tracking Number', 'woo-advanced-shipment-tracking' ); ?>" style="<?php echo $td_column_style; ?>">
156
  <?php echo esc_html( $tracking_item['tracking_number'] ); ?>
179
  </table><br /><br />
180
 
181
  <?php
182
+ endif;
templates/emails/wcast-billing-email-addresses.php CHANGED
@@ -23,7 +23,7 @@ $text_align = is_rtl() ? 'right' : 'left';
23
  $address = $order->get_formatted_billing_address();
24
  $shipping = $order->get_formatted_shipping_address();
25
 
26
- ?><table id="addresses" cellspacing="0" cellpadding="0" style="width: 48%;float: left; vertical-align: top; margin-bottom: 40px; padding:0;" border="0">
27
  <tr>
28
  <td style="text-align:<?php echo esc_attr( $text_align ); ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; border:0; padding:0;" valign="top" width="50%">
29
  <h2><?php esc_html_e( 'Billing address', 'woocommerce' ); ?></h2>
@@ -39,4 +39,4 @@ $shipping = $order->get_formatted_shipping_address();
39
  </address>
40
  </td>
41
  </tr>
42
- </table>
23
  $address = $order->get_formatted_billing_address();
24
  $shipping = $order->get_formatted_shipping_address();
25
 
26
+ ?><table id="addresses" cellspacing="0" cellpadding="0" style="width: 48%;float: left;margin-right: 20px; vertical-align: top; margin-bottom: 40px; padding:0;" border="0">
27
  <tr>
28
  <td style="text-align:<?php echo esc_attr( $text_align ); ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; border:0; padding:0;" valign="top" width="50%">
29
  <h2><?php esc_html_e( 'Billing address', 'woocommerce' ); ?></h2>
39
  </address>
40
  </td>
41
  </tr>
42
+ </table>
templates/emails/wcast-email-order-details.php CHANGED
@@ -19,7 +19,12 @@ if ( ! defined( 'ABSPATH' ) ) {
19
  exit;
20
  }
21
 
22
- $text_align = is_rtl() ? 'right' : 'left'; ?>
 
 
 
 
 
23
  <br>
24
  <h2>
25
  <?php
@@ -52,52 +57,102 @@ $text_align = is_rtl() ? 'right' : 'left'; ?>
52
  </td>
53
  </tr>
54
  </table>
55
-
56
- <div style="margin-bottom: 40px;">
57
- <table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
58
- <thead>
59
- <tr>
60
- <th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Product', 'woocommerce' ); ?></th>
61
- <th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></th>
62
- <th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Price', 'woocommerce' ); ?></th>
63
- </tr>
64
- </thead>
65
- <tbody>
66
- <?php
67
- echo wc_get_email_order_items( $order, array( // WPCS: XSS ok.
68
- 'show_sku' => $sent_to_admin,
69
- 'show_image' => false,
70
- 'image_size' => array( 32, 32 ),
71
- 'plain_text' => $plain_text,
72
- 'sent_to_admin' => $sent_to_admin,
73
- ) );
74
- ?>
75
- </tbody>
76
- <tfoot>
77
- <?php
78
- $totals = $order->get_order_item_totals();
79
-
80
- if ( $totals ) {
81
- $i = 0;
82
- foreach ( $totals as $total ) {
83
- $i++;
 
 
 
 
 
 
 
 
 
84
  ?>
85
  <tr>
86
- <th class="td" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['label'] ); ?></th>
87
- <td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['value'] ); ?></td>
88
  </tr>
89
  <?php
90
  }
91
- }
92
- if ( $order->get_customer_note() ) {
93
  ?>
 
 
 
 
 
 
 
94
  <tr>
95
- <th class="td" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Note:', 'woocommerce' ); ?></th>
96
- <td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( wptexturize( $order->get_customer_note() ) ); ?></td>
 
97
  </tr>
 
 
98
  <?php
99
- }
100
- ?>
101
- </tfoot>
102
- </table>
103
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  exit;
20
  }
21
 
22
+ $text_align = is_rtl() ? 'right' : 'left';
23
+ if (class_exists('Kadence_Woomail_Customizer')) {
24
+ $responsive_check = Kadence_Woomail_Customizer::opt( 'responsive_mode' );
25
+ }
26
+ //echo $responsive_check;
27
+ ?>
28
  <br>
29
  <h2>
30
  <?php
57
  </td>
58
  </tr>
59
  </table>
60
+ <?php
61
+ if ( true == $responsive_check ) { ?>
62
+ <div style="margin-bottom: 40px;">
63
+ <table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
64
+ <thead>
65
+ <tr>
66
+ <th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Product', 'woocommerce' ); ?></th>
67
+ <th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Price', 'woocommerce' ); ?></th>
68
+ </tr>
69
+ </thead>
70
+ <tbody>
71
+ <?php
72
+ echo wc_get_email_order_items( $order, array( // WPCS: XSS ok.
73
+ 'show_sku' => $sent_to_admin,
74
+ 'show_image' => false,
75
+ 'image_size' => array( 32, 32 ),
76
+ 'plain_text' => $plain_text,
77
+ 'sent_to_admin' => $sent_to_admin,
78
+ ) );
79
+ ?>
80
+ </tbody>
81
+ <tfoot>
82
+ <?php
83
+ $totals = $order->get_order_item_totals();
84
+
85
+ if ( $totals ) {
86
+ $i = 0;
87
+ foreach ( $totals as $total ) {
88
+ $i++;
89
+ ?>
90
+ <tr>
91
+ <th class="td" scope="row" colspan="1" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['label'] ); ?></th>
92
+ <td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['value'] ); ?></td>
93
+ </tr>
94
+ <?php
95
+ }
96
+ }
97
+ if ( $order->get_customer_note() ) {
98
  ?>
99
  <tr>
100
+ <th class="td" scope="row" colspan="1" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Note:', 'woocommerce' ); ?></th>
101
+ <td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( wptexturize( $order->get_customer_note() ) ); ?></td>
102
  </tr>
103
  <?php
104
  }
 
 
105
  ?>
106
+ </tfoot>
107
+ </table>
108
+ </div>
109
+ <?php } else{ ?>
110
+ <div style="margin-bottom: 40px;">
111
+ <table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
112
+ <thead>
113
  <tr>
114
+ <th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Product', 'woocommerce' ); ?></th>
115
+ <th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></th>
116
+ <th class="td" scope="col" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Price', 'woocommerce' ); ?></th>
117
  </tr>
118
+ </thead>
119
+ <tbody>
120
  <?php
121
+ echo wc_get_email_order_items( $order, array( // WPCS: XSS ok.
122
+ 'show_sku' => $sent_to_admin,
123
+ 'show_image' => false,
124
+ 'image_size' => array( 32, 32 ),
125
+ 'plain_text' => $plain_text,
126
+ 'sent_to_admin' => $sent_to_admin,
127
+ ) );
128
+ ?>
129
+ </tbody>
130
+ <tfoot>
131
+ <?php
132
+ $totals = $order->get_order_item_totals();
133
+
134
+ if ( $totals ) {
135
+ $i = 0;
136
+ foreach ( $totals as $total ) {
137
+ $i++;
138
+ ?>
139
+ <tr>
140
+ <th class="td" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['label'] ); ?></th>
141
+ <td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['value'] ); ?></td>
142
+ </tr>
143
+ <?php
144
+ }
145
+ }
146
+ if ( $order->get_customer_note() ) {
147
+ ?>
148
+ <tr>
149
+ <th class="td" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Note:', 'woocommerce' ); ?></th>
150
+ <td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( wptexturize( $order->get_customer_note() ) ); ?></td>
151
+ </tr>
152
+ <?php
153
+ }
154
+ ?>
155
+ </tfoot>
156
+ </table>
157
+ </div>
158
+ <?php } ?>
templates/emails/wcast-shipping-email-addresses.php CHANGED
@@ -23,7 +23,7 @@ $text_align = is_rtl() ? 'right' : 'left';
23
  $address = $order->get_formatted_billing_address();
24
  $shipping = $order->get_formatted_shipping_address();
25
 
26
- ?><table id="addresses" cellspacing="0" cellpadding="0" style="width: 48%;float: right; vertical-align: top; margin-bottom: 40px; padding:0;" border="0">
27
  <tr>
28
  <td style="text-align:<?php echo esc_attr( $text_align ); ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; padding:0;" valign="top" width="50%">
29
  <h2><?php esc_html_e( 'Shipping address', 'woocommerce' ); ?></h2>
23
  $address = $order->get_formatted_billing_address();
24
  $shipping = $order->get_formatted_shipping_address();
25
 
26
+ ?><table id="addresses" cellspacing="0" cellpadding="0" style="width: 48%;float: left; vertical-align: top; margin-bottom: 40px; padding:0;" border="0">
27
  <tr>
28
  <td style="text-align:<?php echo esc_attr( $text_align ); ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; padding:0;" valign="top" width="50%">
29
  <h2><?php esc_html_e( 'Shipping address', 'woocommerce' ); ?></h2>
templates/myaccount/view-order.php CHANGED
@@ -55,7 +55,7 @@ if ( $tracking_items ) :
55
  $td_column_style = "text-align: center; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size:".$table_content_font_size."px;font-weight:".$table_content_font_weight."; color: ".$table_content_font_color." ; border: ".$email_border_size."px solid ".$email_border_color."; padding: 12px;";
56
 
57
  $tracking_link_style = "color: ".$tracking_link_font_color." ;background:".$tracking_link_bg_color.";padding: 10px;";
58
-
59
  $remove_date_from_tracking_info = get_theme_mod('remove_date_from_tracking');
60
  $show_track_label = get_theme_mod('show_track_label');
61
  $provider_header_text = get_theme_mod('provider_header_text',$wcast_customizer_settings->defaults['provider_header_text']);
@@ -73,6 +73,7 @@ if ( $tracking_items ) :
73
  }
74
  </style>
75
  <table class="shop_table shop_table_responsive my_account_tracking" style="width: 100%;border-collapse: collapse;line-height:<?php echo $table_content_line_height; ?>px;background:<?php echo $email_table_backgroud_color; ?>">
 
76
  <thead>
77
  <tr>
78
  <th class="tracking-provider" style="<?php echo $th_column_style; ?>"><span class="nobr"><?php _e( $provider_header_text, 'woo-advanced-shipment-tracking' ); ?></span></th>
@@ -83,6 +84,7 @@ if ( $tracking_items ) :
83
  <th class="order-actions" style="<?php echo $th_column_style; ?>"><?php if($show_track_label == 1) { _e( $track_header_text, 'woo-advanced-shipment-tracking' ); }?></th>
84
  </tr>
85
  </thead>
 
86
  <tbody><?php
87
  foreach ( $tracking_items as $tracking_item ) {
88
  ?><tr class="tracking">
@@ -106,7 +108,7 @@ if ( $tracking_items ) :
106
  }
107
  ?>
108
  <img style="width: 50px;margin-right: 5px;vertical-align: middle;" src="<?php echo $src; ?>">
109
- <?php } echo esc_html( $tracking_item['formatted_tracking_provider'] ); ?>
110
  </td>
111
  <td class="tracking-number" style="<?php echo $td_column_style; ?>" data-title="<?php _e( 'Tracking Number', 'woo-advanced-shipment-tracking' ); ?>">
112
  <?php echo esc_html( $tracking_item['tracking_number'] ); ?>
55
  $td_column_style = "text-align: center; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; font-size:".$table_content_font_size."px;font-weight:".$table_content_font_weight."; color: ".$table_content_font_color." ; border: ".$email_border_size."px solid ".$email_border_color."; padding: 12px;";
56
 
57
  $tracking_link_style = "color: ".$tracking_link_font_color." ;background:".$tracking_link_bg_color.";padding: 10px;";
58
+ $hide_table_header = get_theme_mod('hide_table_header');
59
  $remove_date_from_tracking_info = get_theme_mod('remove_date_from_tracking');
60
  $show_track_label = get_theme_mod('show_track_label');
61
  $provider_header_text = get_theme_mod('provider_header_text',$wcast_customizer_settings->defaults['provider_header_text']);
73
  }
74
  </style>
75
  <table class="shop_table shop_table_responsive my_account_tracking" style="width: 100%;border-collapse: collapse;line-height:<?php echo $table_content_line_height; ?>px;background:<?php echo $email_table_backgroud_color; ?>">
76
+ <?php if($hide_table_header != 1){ ?>
77
  <thead>
78
  <tr>
79
  <th class="tracking-provider" style="<?php echo $th_column_style; ?>"><span class="nobr"><?php _e( $provider_header_text, 'woo-advanced-shipment-tracking' ); ?></span></th>
84
  <th class="order-actions" style="<?php echo $th_column_style; ?>"><?php if($show_track_label == 1) { _e( $track_header_text, 'woo-advanced-shipment-tracking' ); }?></th>
85
  </tr>
86
  </thead>
87
+ <?php } ?>
88
  <tbody><?php
89
  foreach ( $tracking_items as $tracking_item ) {
90
  ?><tr class="tracking">
108
  }
109
  ?>
110
  <img style="width: 50px;margin-right: 5px;vertical-align: middle;" src="<?php echo $src; ?>">
111
+ <?php } echo apply_filters( 'ast_provider_title', esc_html( $tracking_item['formatted_tracking_provider'] )); ?>
112
  </td>
113
  <td class="tracking-number" style="<?php echo $td_column_style; ?>" data-title="<?php _e( 'Tracking Number', 'woo-advanced-shipment-tracking' ); ?>">
114
  <?php echo esc_html( $tracking_item['tracking_number'] ); ?>
templates/pip/tracking-info.php DELETED
@@ -1,31 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) {
3
- exit;
4
- }
5
-
6
- /**
7
- * Shipment Tracking
8
- *
9
- * Shows tracking information in the HTML order email
10
- *
11
- * @author WooThemes
12
- * @package WooCommerce Shipment Tracking/templates/email
13
- * @version 1.6.4
14
- */
15
- ?>
16
-
17
- <h3><?php echo apply_filters( 'woocommerce_shipment_tracking_my_orders_title', __( 'Tracking Information', 'woo-advanced-shipment-tracking' ) ); ?></h3>
18
-
19
- <?php foreach ( $items as $item ) : ?>
20
- <p class="tracking-content">
21
- <strong><?php echo esc_html( $item['formatted_tracking_provider'] ); ?></strong>
22
- <?php if ( strlen( $item['formatted_tracking_link'] ) > 0 ) : ?>
23
- - <?php 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>', $item['formatted_tracking_link'] ); ?>
24
- <?php endif; ?>
25
- <br/>
26
- <em><?php echo esc_html( $item['tracking_number'] ); ?></em>
27
- <br />
28
- <?php /* translators: 1: date of shipping */ ?>
29
- <span style="font-size: 0.8em"><?php echo esc_html( sprintf( __( 'Shipped on %s', 'woo-advanced-shipment-tracking' ), date_i18n( 'Y-m-d', $item['date_shipped'] ) ) ); ?></span>
30
- </p>
31
- <?php endforeach; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
woocommerce-advanced-shipment-tracking.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Advanced Shipment Tracking for WooCommerce
5
  * Plugin URI:
6
  * Description: Add shipment tracking information to your WooCommerce orders and provide customers with an easy way to track their orders. Shipment tracking Info will appear in customers accounts (in the order panel) and in WooCommerce order complete email.
7
- * Version: 2.4.5
8
  * Author: zorem
9
  * Author URI:
10
  * License: GPL-2.0+
@@ -22,7 +22,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
22
  *
23
  * @var string
24
  */
25
- public $version = '2.4.5';
26
 
27
  /**
28
  * Initialize the main plugin function
@@ -73,7 +73,8 @@ class zorem_woocommerce_advanced_shipment_tracking {
73
  }
74
  add_action( 'admin_footer', array( $this, 'uninstall_notice') );
75
  //register_deactivation_hook( __FILE__, array( $this, 'uninstall' ) );
76
- }
 
77
  /**
78
  * Check if WooCommerce is active
79
  *
@@ -179,7 +180,8 @@ class zorem_woocommerce_advanced_shipment_tracking {
179
 
180
  add_action( 'wp_ajax_nopriv_preview_tracking_page', array( $this->front, 'preview_tracking_page') );
181
  add_action( 'wp_ajax_preview_tracking_page', array( $this->front, 'preview_tracking_page') );
182
- }
 
183
 
184
  /**
185
  * Send email when order status change to "Delivered"
@@ -190,6 +192,31 @@ class zorem_woocommerce_advanced_shipment_tracking {
190
  //wc_advanced_shipment_tracking_email_class()->delivered_order_status_email_trigger($order_id, $order);
191
  WC()->mailer()->emails['WC_Email_Customer_Delivered_Order']->trigger( $order_id, $order );
192
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
193
  public function tracking_info_shortcode(){
194
  ob_start();
195
  $order_id = $woo_mb_base->order_id;
@@ -202,6 +229,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
202
  ob_end_clean();
203
  return $html;
204
  }
 
205
  /**
206
  * Init advanced shipment tracking REST API.
207
  *
@@ -209,14 +237,12 @@ class zorem_woocommerce_advanced_shipment_tracking {
209
  private function init_rest_api() {
210
  add_action( 'rest_api_init', array( $this, 'rest_api_register_routes' ) );
211
  }
212
-
213
-
214
  /*** Method load Language file ***/
215
  function wst_load_textdomain() {
216
  load_plugin_textdomain( 'woo-advanced-shipment-tracking', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
217
  }
218
-
219
-
220
  /**
221
  * Gets the absolute plugin path without a trailing slash, e.g.
222
  * /path/to/wp-content/plugins/plugin-directory.
@@ -277,6 +303,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
277
  ORDER BY id ASC
278
  ", $output );
279
  }
 
280
  /*
281
  * include files
282
  */
@@ -324,6 +351,10 @@ class zorem_woocommerce_advanced_shipment_tracking {
324
  WC()->api->WC_Advanced_Shipment_Tracking_REST_API_Controller->register_routes();
325
 
326
  }
 
 
 
 
327
  public function on_plugins_loaded() {
328
  require_once $this->get_plugin_path() . '/includes/email-manager.php';
329
 
@@ -345,28 +376,20 @@ class zorem_woocommerce_advanced_shipment_tracking {
345
 
346
  require_once $this->get_plugin_path() . '/includes/customizer/class-wc-availableforpickup-email-customizer.php';
347
  }
348
- public function plugin_dir_url(){
349
- return plugin_dir_url( __FILE__ );
350
- }
351
  /*
352
- * Deactivate plugin code - change order status from delivered to completed
353
  */
354
- /*public function uninstall(){
355
- $wc_ast_deactivate_delivered = get_option('wc_ast_deactivate_delivered','no');
356
- if($wc_ast_deactivate_delivered == 'no')return;
357
-
358
- remove_action( 'woocommerce_order_status_completed_notification', array( WC()->mailer()->emails['WC_Email_Customer_Completed_Order'], 'trigger' ) );
359
-
360
- $statuses = ['delivered'];
361
- $orders = wc_get_orders( ['limit' => -1, 'status' => $statuses] );
362
- foreach($orders as $order){
363
- $order_id = $order->get_id();
364
- $order = new WC_Order($order_id);
365
- $order->update_status('completed');
366
- }
367
- }*/
368
 
369
- public function uninstall_notice(){ ?>
 
 
 
 
 
370
  <script>
371
  jQuery(document).on("click","[data-slug='woo-advanced-shipment-tracking'] .deactivate a",function(e){
372
  e.preventDefault();
@@ -386,7 +409,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
386
  </script>
387
  <div id="" class="popupwrapper uninstall_popup" style="display:none;">
388
  <div class="popuprow" style="text-align: left;max-width: 380px;">
389
- <h3 class="popup_title"><?php _e( 'Advanced Shipment Tracking for WooCommerce', 'woo-advanced-shipment-tracking'); ?></h2>
390
  <p><?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>
391
  <p class="" style="text-align:left;">
392
  <input type="button" value="Uninstall" class="uninstall_plugin button-primary btn_green">
4
  * Plugin Name: Advanced Shipment Tracking for WooCommerce
5
  * Plugin URI:
6
  * Description: Add shipment tracking information to your WooCommerce orders and provide customers with an easy way to track their orders. Shipment tracking Info will appear in customers accounts (in the order panel) and in WooCommerce order complete email.
7
+ * Version: 2.5.5
8
  * Author: zorem
9
  * Author URI:
10
  * License: GPL-2.0+
22
  *
23
  * @var string
24
  */
25
+ public $version = '2.5.5';
26
 
27
  /**
28
  * Initialize the main plugin function
73
  }
74
  add_action( 'admin_footer', array( $this, 'uninstall_notice') );
75
  //register_deactivation_hook( __FILE__, array( $this, 'uninstall' ) );
76
+ }
77
+
78
  /**
79
  * Check if WooCommerce is active
80
  *
180
 
181
  add_action( 'wp_ajax_nopriv_preview_tracking_page', array( $this->front, 'preview_tracking_page') );
182
  add_action( 'wp_ajax_preview_tracking_page', array( $this->front, 'preview_tracking_page') );
183
+ add_filter( 'apg_sms_message', array( $this, 'apg_sms_message_fun' ), 10, 2 );
184
+ }
185
 
186
  /**
187
  * Send email when order status change to "Delivered"
192
  //wc_advanced_shipment_tracking_email_class()->delivered_order_status_email_trigger($order_id, $order);
193
  WC()->mailer()->emails['WC_Email_Customer_Delivered_Order']->trigger( $order_id, $order );
194
  }
195
+
196
+ /**
197
+ * Add tracking info in SMS when order status is completed
198
+ * Compatibility with - WC – APG SMS Notifications
199
+ *
200
+ */
201
+ public function apg_sms_message_fun($message , $order_id){
202
+ $order = wc_get_order( $order_id );
203
+ $order_status = $order->get_status();
204
+ if($order_status == 'completed'){
205
+ $ast = new WC_Advanced_Shipment_Tracking_Actions;
206
+ $tracking_items = $ast->get_tracking_items( $order_id );
207
+ if ( count( $tracking_items ) > 0 ) {
208
+ foreach ( $tracking_items as $key => $tracking_item ) {
209
+ $message .= '<br>';
210
+ $message .= sprintf(__("Your order was shipped with %s and your tracking code is: %s", 'woo-advanced-shipment-tracking'), $tracking_item['tracking_provider'], $tracking_item['tracking_number'] );
211
+ }
212
+ }
213
+ }
214
+ return $message;
215
+ }
216
+
217
+ /*
218
+ * Tracking info shortcode
219
+ */
220
  public function tracking_info_shortcode(){
221
  ob_start();
222
  $order_id = $woo_mb_base->order_id;
229
  ob_end_clean();
230
  return $html;
231
  }
232
+
233
  /**
234
  * Init advanced shipment tracking REST API.
235
  *
237
  private function init_rest_api() {
238
  add_action( 'rest_api_init', array( $this, 'rest_api_register_routes' ) );
239
  }
240
+
 
241
  /*** Method load Language file ***/
242
  function wst_load_textdomain() {
243
  load_plugin_textdomain( 'woo-advanced-shipment-tracking', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
244
  }
245
+
 
246
  /**
247
  * Gets the absolute plugin path without a trailing slash, e.g.
248
  * /path/to/wp-content/plugins/plugin-directory.
303
  ORDER BY id ASC
304
  ", $output );
305
  }
306
+
307
  /*
308
  * include files
309
  */
351
  WC()->api->WC_Advanced_Shipment_Tracking_REST_API_Controller->register_routes();
352
 
353
  }
354
+
355
+ /*
356
+ * include file on plugin load
357
+ */
358
  public function on_plugins_loaded() {
359
  require_once $this->get_plugin_path() . '/includes/email-manager.php';
360
 
376
 
377
  require_once $this->get_plugin_path() . '/includes/customizer/class-wc-availableforpickup-email-customizer.php';
378
  }
379
+
 
 
380
  /*
381
+ * return plugin directory URL
382
  */
383
+ public function plugin_dir_url(){
384
+ return plugin_dir_url( __FILE__ );
385
+ }
 
 
 
 
 
 
 
 
 
 
 
386
 
387
+ /*
388
+ * Plugin uninstall code
389
+ */
390
+ public function uninstall_notice(){
391
+ wp_enqueue_style( 'shipment_tracking_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
392
+ ?>
393
  <script>
394
  jQuery(document).on("click","[data-slug='woo-advanced-shipment-tracking'] .deactivate a",function(e){
395
  e.preventDefault();
409
  </script>
410
  <div id="" class="popupwrapper uninstall_popup" style="display:none;">
411
  <div class="popuprow" style="text-align: left;max-width: 380px;">
412
+ <h3 class="popup_title">Advanced Shipment Tracking for WooCommerce</h2>
413
  <p><?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>
414
  <p class="" style="text-align:left;">
415
  <input type="button" value="Uninstall" class="uninstall_plugin button-primary btn_green">