Version Description
- Added Trackship analytics widget in admin dashboard
- Added tracker balance and current plan in trackship tab
- Updated translaed string in language template file
- Updated "On which order status email to include the shipment tracking info?" option in settings tab
- Fixed issue with Divi theme
- Fixed issue with RTL in settings and tracking page
Download this release
Release Info
Developer | zorem |
Plugin | Advanced Shipment Tracking for WooCommerce |
Version | 2.6 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.6
- assets/css/admin.css +238 -163
- assets/css/checkbox-slider.css +0 -55
- assets/css/customizer-styles.css +3 -0
- assets/css/front.css +56 -2
- assets/css/icons/invalid-v3.png +0 -0
- assets/js/amcharts/amcharts.js +403 -0
- assets/js/amcharts/light.js +1 -0
- assets/js/amcharts/serial.js +9 -0
- assets/js/customizer-scripts.js +44 -0
- assets/js/preview-scripts.js +11 -0
- assets/js/shipping_row.js +34 -2
- assets/shipment-provider-img/7-eleven.png +0 -0
- assets/shipment-provider-img/bring.png +0 -0
- assets/shipment-provider-img/courierpost.png +0 -0
- assets/shipment-provider-img/dhl-paket.png +0 -0
- assets/shipment-provider-img/dpd-uk.png +0 -0
- assets/shipment-provider-img/laos-post.png +0 -0
- assets/shipment-provider-img/naqel.png +0 -0
- assets/shipment-provider-img/new-zealand-post.png +0 -0
- assets/shipment-provider-img/poste-maroc.png +0 -0
- assets/shipment-provider-img/posten-norge.png +0 -0
- assets/shipment-provider-img/sda.png +0 -0
- assets/shipment-provider-img/smsa-express.png +0 -0
- includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php +4 -96
- includes/class-wc-advanced-shipment-tracking-admin.php +537 -321
- includes/class-wc-advanced-shipment-tracking-api-call.php +13 -1
- includes/class-wc-advanced-shipment-tracking-front.php +381 -519
- includes/class-wc-advanced-shipment-tracking-install.php +882 -786
- includes/class-wc-advanced-shipment-tracking.php +147 -24
- includes/customizer/class-wc-availableforpickup-email-customizer.php +29 -10
- includes/customizer/class-wc-delivered-email-customizer.php +39 -19
- includes/customizer/class-wc-email-customizer.php +38 -28
- includes/customizer/class-wc-failure-email-customizer.php +33 -10
- includes/customizer/class-wc-intransit-email-customizer.php +37 -16
- includes/customizer/class-wc-outfordelivery-email-customizer.php +38 -16
- includes/customizer/class-wc-returntosender-email-customizer.php +32 -14
- includes/customizer/class-wc-tracking-info-customizer.php +107 -61
- includes/customizer/class-wc-tracking-page-customizer.php +0 -734
- includes/customizer/class-wcast-customizer.php +21 -4
- includes/customizer/delivered_preview.php +0 -8
- includes/customizer/preview.php +0 -10
- includes/email-manager.php +137 -105
- includes/emails/class-shipment-delivered-email.php +26 -16
- includes/views/admin_options_bulk_upload.php +7 -2
- includes/views/admin_options_settings.php +7 -2
- includes/views/admin_options_shipping_provider.php +19 -14
- includes/views/admin_options_trackship_integration.php +275 -222
- includes/views/html-tracking-info-design-preview.php +0 -73
- includes/views/zorem_admin_sidebar.php +55 -71
- includes/views/zorem_admin_ts_sidebar.php +37 -59
- lang/woo-advanced-shipment-tracking-he_IL.mo +0 -0
- lang/woo-advanced-shipment-tracking-he_IL.po +512 -539
- lang/woo-advanced-shipment-tracking-hi_IN.mo +0 -0
- lang/woo-advanced-shipment-tracking-hi_IN.po +615 -772
- lang/woo-advanced-shipment-tracking.pot +519 -833
- readme.txt +24 -0
- templates/emails/plain/tracking-info.php +0 -32
- templates/emails/tracking-info.php +26 -5
- templates/emails/wcast-billing-email-addresses.php +1 -1
- templates/emails/wcast-email-order-details.php +4 -4
- templates/myaccount/{view-order.php → tracking-info.php} +4 -2
- templates/pip/tracking-info.php +0 -31
- woocommerce-advanced-shipment-tracking.php +32 -32
assets/css/admin.css
CHANGED
@@ -146,13 +146,12 @@ input.tab_input_1:checked + label{
|
|
146 |
.shipping_add_field {
|
147 |
width: 300px;
|
148 |
}
|
149 |
-
|
150 |
-
position: relative !important;
|
151 |
-
}
|
152 |
.ast_admin_content {
|
153 |
width: 100%;
|
154 |
vertical-align: top;
|
155 |
border-top: 1px solid #ddd;
|
|
|
156 |
}
|
157 |
.zorem_admin_sidebar {
|
158 |
width: 280px;
|
@@ -508,8 +507,8 @@ td.column-columnname.url-column {
|
|
508 |
border-color: red;
|
509 |
box-shadow: none;
|
510 |
font-size: 14px;
|
511 |
-
|
512 |
-
|
513 |
}
|
514 |
.wp-core-ui .btn_large {
|
515 |
line-height: 36px;
|
@@ -556,6 +555,12 @@ td.column-columnname.url-column {
|
|
556 |
text-shadow: none;
|
557 |
box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
|
558 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
.on_edit_show.custom_provider_name {
|
560 |
margin: 10px 0;
|
561 |
}
|
@@ -598,8 +603,12 @@ input#wc_ast_api_key {
|
|
598 |
width: 260px;
|
599 |
}
|
600 |
span.api_connected {
|
601 |
-
color:
|
602 |
-
|
|
|
|
|
|
|
|
|
603 |
}
|
604 |
span.api_connected .dashicons.dashicons-yes {
|
605 |
font-size: 30px;
|
@@ -916,6 +925,60 @@ span.email_status_span i.enable {
|
|
916 |
display: inline-block;
|
917 |
vertical-align: middle;
|
918 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
919 |
.ast-shipment-status .icon-delivered:before{
|
920 |
content: ' ';
|
921 |
background-image: url(icons/delivered-v4.png);
|
@@ -1149,7 +1212,7 @@ a.cancel_edit {
|
|
1149 |
display:inline-block;
|
1150 |
}
|
1151 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #wpcontent{
|
1152 |
-
background:
|
1153 |
padding-left: 0;
|
1154 |
}
|
1155 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #wpbody-content{
|
@@ -1158,6 +1221,9 @@ a.cancel_edit {
|
|
1158 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #wpfooter{
|
1159 |
background: rgb(245, 248, 250);
|
1160 |
}
|
|
|
|
|
|
|
1161 |
.trackship_logo{
|
1162 |
width: 200px;
|
1163 |
height: auto;
|
@@ -1168,95 +1234,7 @@ a.cancel_edit {
|
|
1168 |
.trackship_section .heading{
|
1169 |
font-size: 25px;
|
1170 |
}
|
1171 |
-
|
1172 |
-
background-color: #83bd31;
|
1173 |
-
position: relative;
|
1174 |
-
display: inline-block;
|
1175 |
-
text-transform: uppercase;
|
1176 |
-
font-size: 1.5em;
|
1177 |
-
letter-spacing: .03em;
|
1178 |
-
-ms-touch-action: none;
|
1179 |
-
touch-action: none;
|
1180 |
-
cursor: pointer;
|
1181 |
-
font-weight: bolder;
|
1182 |
-
text-align: center;
|
1183 |
-
color: currentColor;
|
1184 |
-
text-decoration: none;
|
1185 |
-
border: 1px solid transparent;
|
1186 |
-
vertical-align: middle;
|
1187 |
-
border-radius: 0;
|
1188 |
-
margin-top: 0;
|
1189 |
-
margin-right: 1em;
|
1190 |
-
text-shadow: none;
|
1191 |
-
padding: 15px 30px;
|
1192 |
-
max-width: 100%;
|
1193 |
-
text-rendering: optimizeLegibility;
|
1194 |
-
box-sizing: border-box;
|
1195 |
-
color: #fff;
|
1196 |
-
border-radius: 10px;
|
1197 |
-
}
|
1198 |
-
.trackship_button:hover{
|
1199 |
-
color: #fff;
|
1200 |
-
}
|
1201 |
-
.section-title {
|
1202 |
-
position: relative;
|
1203 |
-
-js-display: flex;
|
1204 |
-
display: -ms-flexbox;
|
1205 |
-
display: flex;
|
1206 |
-
-ms-flex-flow: row wrap;
|
1207 |
-
flex-flow: row wrap;
|
1208 |
-
-ms-flex-align: center;
|
1209 |
-
align-items: center;
|
1210 |
-
-ms-flex-pack: justify;
|
1211 |
-
justify-content: space-between;
|
1212 |
-
width: 100%;
|
1213 |
-
font-size: 20px;
|
1214 |
-
}
|
1215 |
-
.section-title b {
|
1216 |
-
display: block;
|
1217 |
-
-ms-flex: 1;
|
1218 |
-
flex: 1;
|
1219 |
-
height: 2px;
|
1220 |
-
opacity: .1;
|
1221 |
-
background-color: currentColor;
|
1222 |
-
}
|
1223 |
-
.section-title-center span{
|
1224 |
-
text-align: center;
|
1225 |
-
margin: 0 15px;
|
1226 |
-
text-transform: uppercase;
|
1227 |
-
}
|
1228 |
-
.col-4{
|
1229 |
-
max-width: 33.33%;
|
1230 |
-
-ms-flex-preferred-size: 33.33%;
|
1231 |
-
flex-basis: 33.33%;
|
1232 |
-
position: relative;
|
1233 |
-
margin: 0;
|
1234 |
-
padding: 0 15px 30px;
|
1235 |
-
box-sizing:border-box;
|
1236 |
-
}
|
1237 |
-
.row-box-shadow-1{
|
1238 |
-
width: 100%;
|
1239 |
-
-js-display: flex;
|
1240 |
-
display: -ms-flexbox;
|
1241 |
-
display: flex;
|
1242 |
-
-ms-flex-flow: row wrap;
|
1243 |
-
flex-flow: row wrap;
|
1244 |
-
}
|
1245 |
-
.row-box-shadow-1 .col-inner{
|
1246 |
-
padding: 20px 20px 20px 20px;
|
1247 |
-
background: #edf2f7;
|
1248 |
-
box-shadow: 0 1px 3px -2px rgba(0,0,0,0.12), 0 1px 2px rgba(237, 242, 247, 0.24);
|
1249 |
-
transition: transform .3s, box-shadow .3s, background-color .3s, color .3s, opacity .3s;
|
1250 |
-
height:100%;
|
1251 |
-
box-sizing:border-box;
|
1252 |
-
}
|
1253 |
-
.featured-box h4{
|
1254 |
-
color: #071d57;
|
1255 |
-
font-size: 17px;
|
1256 |
-
line-height: 23px;
|
1257 |
-
margin-top: 10px;
|
1258 |
-
margin-bottom: 10px;
|
1259 |
-
}
|
1260 |
.multiple_checkbox .mdl-switch.is-upgraded{
|
1261 |
padding-left: 42px;
|
1262 |
margin-bottom: 6px;
|
@@ -1857,65 +1835,7 @@ p.tracking-preview-desc {
|
|
1857 |
margin-bottom: 20px;
|
1858 |
}
|
1859 |
|
1860 |
-
|
1861 |
-
padding: 20px;
|
1862 |
-
background: rgb(245, 248, 250);
|
1863 |
-
border: 1px solid #eee;
|
1864 |
-
border-left: 4px solid #83bd31 !important;
|
1865 |
-
}
|
1866 |
-
.rtl .notice.ast-admin-notice {
|
1867 |
-
border-right-color: #83bd31 !important;
|
1868 |
-
}
|
1869 |
-
.notice.ast-admin-notice .ast-admin-notice-inner {
|
1870 |
-
display: table;
|
1871 |
-
width: 100%;
|
1872 |
-
}
|
1873 |
-
.notice.ast-admin-notice .ast-admin-notice-inner .ast-admin-notice-icon,
|
1874 |
-
.notice.ast-admin-notice .ast-admin-notice-inner .ast-admin-notice-content,
|
1875 |
-
.notice.ast-admin-notice .ast-admin-notice-inner .trackship-install-now {
|
1876 |
-
display: table-cell;
|
1877 |
-
vertical-align: middle;
|
1878 |
-
}
|
1879 |
-
.notice.ast-admin-notice .ast-admin-notice-icon {
|
1880 |
-
color: #83bd31;
|
1881 |
-
}
|
1882 |
-
.notice.ast-admin-notice .ast-admin-notice-icon .notice-logo{
|
1883 |
-
width: 200px;
|
1884 |
-
}
|
1885 |
-
.notice.ast-admin-notice .ast-admin-notice-content {
|
1886 |
-
padding: 0 20px;
|
1887 |
-
}
|
1888 |
-
.notice.ast-admin-notice p {
|
1889 |
-
padding: 0;
|
1890 |
-
margin: 0;
|
1891 |
-
}
|
1892 |
-
.notice.ast-admin-notice h3 {
|
1893 |
-
margin: 0 0 5px;
|
1894 |
-
color: #061c58;
|
1895 |
-
}
|
1896 |
-
.notice.ast-admin-notice .trackship-install-now {
|
1897 |
-
text-align: center;
|
1898 |
-
}
|
1899 |
-
.notice.ast-admin-notice .trackship-install-now .hello-elementor-install-button {
|
1900 |
-
padding: 5px 30px;
|
1901 |
-
height: auto;
|
1902 |
-
line-height: 20px;
|
1903 |
-
text-transform: capitalize;
|
1904 |
-
}
|
1905 |
-
.notice.ast-admin-notice .trackship-install-now .hello-elementor-install-button i {
|
1906 |
-
padding-right: 5px;
|
1907 |
-
}
|
1908 |
-
.rtl .notice.ast-admin-notice .trackship-install-now .hello-elementor-install-button i {
|
1909 |
-
padding-right: 0;
|
1910 |
-
padding-left: 5px;
|
1911 |
-
}
|
1912 |
-
.notice.ast-admin-notice .trackship-install-now .hello-elementor-install-button:active {
|
1913 |
-
transform: translateY(1px);
|
1914 |
-
}
|
1915 |
-
.ast-admin-notice .notice-dismiss:before{
|
1916 |
-
color: #061c58;
|
1917 |
-
font: normal 20px/20px dashicons;
|
1918 |
-
}
|
1919 |
.nav_doc_section {
|
1920 |
float: right;
|
1921 |
padding: 15px 0 15px;
|
@@ -2045,13 +1965,47 @@ p.tracking-preview-desc {
|
|
2045 |
flex-flow: row wrap;
|
2046 |
}
|
2047 |
.ast-dashborad-widget.row .large-6 {
|
2048 |
-
max-width:
|
2049 |
-
-ms-flex-preferred-size:
|
2050 |
-
flex-basis:
|
2051 |
position: relative;
|
2052 |
-
border: 1px
|
2053 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2054 |
}
|
|
|
|
|
2055 |
.bulk_shipment_status_success{
|
2056 |
color:#83bd31;
|
2057 |
margin-top:10px;
|
@@ -2064,16 +2018,132 @@ p.tracking-preview-desc {
|
|
2064 |
padding: 15px;
|
2065 |
font-size: 12px;
|
2066 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2067 |
.trackship_section{
|
2068 |
background-image: url(../images/ts_bg.png);
|
2069 |
min-height: 100vh;
|
2070 |
}
|
2071 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2072 |
.provider {
|
2073 |
width: 20%;
|
2074 |
}
|
2075 |
}
|
2076 |
-
@media screen and (min-width: 768px) and (max-width:
|
2077 |
.provider{
|
2078 |
width: 25%;
|
2079 |
}
|
@@ -2103,6 +2173,11 @@ p.tracking-preview-desc {
|
|
2103 |
.provider_top {
|
2104 |
margin-bottom: 10px;
|
2105 |
}
|
|
|
|
|
|
|
|
|
|
|
2106 |
}
|
2107 |
@media screen and (max-width: 500px) {
|
2108 |
.provider{
|
146 |
.shipping_add_field {
|
147 |
width: 300px;
|
148 |
}
|
149 |
+
|
|
|
|
|
150 |
.ast_admin_content {
|
151 |
width: 100%;
|
152 |
vertical-align: top;
|
153 |
border-top: 1px solid #ddd;
|
154 |
+
background: #fff;
|
155 |
}
|
156 |
.zorem_admin_sidebar {
|
157 |
width: 280px;
|
507 |
border-color: red;
|
508 |
box-shadow: none;
|
509 |
font-size: 14px;
|
510 |
+
line-height: 30px;
|
511 |
+
height: 35px;
|
512 |
}
|
513 |
.wp-core-ui .btn_large {
|
514 |
line-height: 36px;
|
555 |
text-shadow: none;
|
556 |
box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
|
557 |
}
|
558 |
+
.shipment_tracking_admin_settings.wp-core-ui .button-primary:disabled{
|
559 |
+
color: #fff!important;
|
560 |
+
background: #ccc!important;
|
561 |
+
border-color: #eee!important;
|
562 |
+
cursor: not-allowed;
|
563 |
+
}
|
564 |
.on_edit_show.custom_provider_name {
|
565 |
margin: 10px 0;
|
566 |
}
|
603 |
width: 260px;
|
604 |
}
|
605 |
span.api_connected {
|
606 |
+
color: #fff;
|
607 |
+
line-height: 33px;
|
608 |
+
background: #83bd31;
|
609 |
+
padding: 12px 26px;
|
610 |
+
font-size: 15px;
|
611 |
+
border-radius: 5px;
|
612 |
}
|
613 |
span.api_connected .dashicons.dashicons-yes {
|
614 |
font-size: 30px;
|
925 |
display: inline-block;
|
926 |
vertical-align: middle;
|
927 |
}
|
928 |
+
.wcast-shipment-status-icon .icon-INVALID_TRACKING_NUM:before{
|
929 |
+
content: ' ';
|
930 |
+
background-image: url(icons/invalid-v3.png);
|
931 |
+
width: 20px;
|
932 |
+
height: 20px;
|
933 |
+
background-size: cover;
|
934 |
+
display: inline-block;
|
935 |
+
vertical-align: middle;
|
936 |
+
}
|
937 |
+
.wcast-shipment-status-icon .icon-wrong_shipping_provider:before{
|
938 |
+
content: ' ';
|
939 |
+
background-image: url(icons/invalid-v3.png);
|
940 |
+
width: 20px;
|
941 |
+
height: 20px;
|
942 |
+
background-size: cover;
|
943 |
+
display: inline-block;
|
944 |
+
vertical-align: middle;
|
945 |
+
}
|
946 |
+
.wcast-shipment-status-icon .icon-default:before{
|
947 |
+
content: ' ';
|
948 |
+
background-image: url(icons/invalid-v3.png);
|
949 |
+
width: 20px;
|
950 |
+
height: 20px;
|
951 |
+
background-size: cover;
|
952 |
+
display: inline-block;
|
953 |
+
vertical-align: middle;
|
954 |
+
}
|
955 |
+
.ast-shipment-status .icon-default:before{
|
956 |
+
content: ' ';
|
957 |
+
background-image: url(icons/invalid-v3.png);
|
958 |
+
width: 20px;
|
959 |
+
height: 20px;
|
960 |
+
background-size: cover;
|
961 |
+
display: inline-block;
|
962 |
+
vertical-align: middle;
|
963 |
+
}
|
964 |
+
.ast-shipment-status .icon-INVALID_TRACKING_NUM:before{
|
965 |
+
content: ' ';
|
966 |
+
background-image: url(icons/invalid-v3.png);
|
967 |
+
width: 20px;
|
968 |
+
height: 20px;
|
969 |
+
background-size: cover;
|
970 |
+
display: inline-block;
|
971 |
+
vertical-align: middle;
|
972 |
+
}
|
973 |
+
.ast-shipment-status .icon-wrong_shipping_provider:before{
|
974 |
+
content: ' ';
|
975 |
+
background-image: url(icons/invalid-v3.png);
|
976 |
+
width: 20px;
|
977 |
+
height: 20px;
|
978 |
+
background-size: cover;
|
979 |
+
display: inline-block;
|
980 |
+
vertical-align: middle;
|
981 |
+
}
|
982 |
.ast-shipment-status .icon-delivered:before{
|
983 |
content: ' ';
|
984 |
background-image: url(icons/delivered-v4.png);
|
1212 |
display:inline-block;
|
1213 |
}
|
1214 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #wpcontent{
|
1215 |
+
background: rgb(245, 248, 250);
|
1216 |
padding-left: 0;
|
1217 |
}
|
1218 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #wpbody-content{
|
1221 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #wpfooter{
|
1222 |
background: rgb(245, 248, 250);
|
1223 |
}
|
1224 |
+
.woocommerce_page_woocommerce-advanced-shipment-tracking .white-bg{
|
1225 |
+
background: #fff;
|
1226 |
+
}
|
1227 |
.trackship_logo{
|
1228 |
width: 200px;
|
1229 |
height: auto;
|
1234 |
.trackship_section .heading{
|
1235 |
font-size: 25px;
|
1236 |
}
|
1237 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1238 |
.multiple_checkbox .mdl-switch.is-upgraded{
|
1239 |
padding-left: 42px;
|
1240 |
margin-bottom: 6px;
|
1835 |
margin-bottom: 20px;
|
1836 |
}
|
1837 |
|
1838 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1839 |
.nav_doc_section {
|
1840 |
float: right;
|
1841 |
padding: 15px 0 15px;
|
1965 |
flex-flow: row wrap;
|
1966 |
}
|
1967 |
.ast-dashborad-widget.row .large-6 {
|
1968 |
+
max-width: 50%;
|
1969 |
+
-ms-flex-preferred-size: 50%;
|
1970 |
+
flex-basis: 50%;
|
1971 |
position: relative;
|
1972 |
+
border-right: 1px solid #ececec;
|
1973 |
+
border-bottom:1px solid #ececec;
|
1974 |
+
padding: 8px 12px;
|
1975 |
+
box-sizing: border-box;
|
1976 |
+
}
|
1977 |
+
#trackship_dashboard_widget .widget_footer{
|
1978 |
+
padding: 8px 12px;
|
1979 |
+
}
|
1980 |
+
input.widget_tab_input {
|
1981 |
+
display: none;
|
1982 |
+
}
|
1983 |
+
input.widget_tab_input:checked + label {
|
1984 |
+
color: #74C2E1;
|
1985 |
+
}
|
1986 |
+
label.widget_tab_label{
|
1987 |
+
text-decoration: none;
|
1988 |
+
padding: 17px 0 15px;
|
1989 |
+
border-bottom: 2px solid #fff;
|
1990 |
+
font-size: 14px;
|
1991 |
+
color: #393f4c;
|
1992 |
+
display: inline-block;
|
1993 |
+
margin-right: 12px;
|
1994 |
+
line-height: 1;
|
1995 |
+
outline: none;
|
1996 |
+
}
|
1997 |
+
label.widget_tab_label.first_label{
|
1998 |
+
margin-left: 12px;
|
1999 |
+
}
|
2000 |
+
#tab_s_providers:checked ~ #content_s_providers,#tab_s_status:checked ~ #content_s_status{
|
2001 |
+
display: block;
|
2002 |
+
}
|
2003 |
+
section.widget_tab_section {
|
2004 |
+
display: none;
|
2005 |
+
border-top:1px solid #eee;
|
2006 |
}
|
2007 |
+
/**** -------- ****/
|
2008 |
+
|
2009 |
.bulk_shipment_status_success{
|
2010 |
color:#83bd31;
|
2011 |
margin-top:10px;
|
2018 |
padding: 15px;
|
2019 |
font-size: 12px;
|
2020 |
}
|
2021 |
+
.woocommerce_page_woocommerce-advanced-shipment-tracking #tiptip_holder.tip_top #tiptip_arrow_inner{
|
2022 |
+
border-top-color: #005B9A;
|
2023 |
+
}
|
2024 |
+
.woocommerce_page_woocommerce-advanced-shipment-tracking #tiptip_holder.tip_bottom #tiptip_arrow_inner{
|
2025 |
+
border-bottom-color: #005B9A;
|
2026 |
+
}
|
2027 |
.trackship_section{
|
2028 |
background-image: url(../images/ts_bg.png);
|
2029 |
min-height: 100vh;
|
2030 |
}
|
2031 |
+
.doc_link{
|
2032 |
+
margin-right: 25px;
|
2033 |
+
}
|
2034 |
+
#trackship_dashboard_widget .inside h3{
|
2035 |
+
font-weight:600;
|
2036 |
+
}
|
2037 |
+
#trackship_dashboard_widget .inside{
|
2038 |
+
padding: 0;
|
2039 |
+
margin: 0;
|
2040 |
+
}
|
2041 |
+
|
2042 |
+
/*** RTL CSS ***/
|
2043 |
+
.rtl.shipment_tracking_admin_settings #wpcontent {
|
2044 |
+
padding-right: 0;
|
2045 |
+
background: rgb(245, 248, 250);
|
2046 |
+
}
|
2047 |
+
.rtl.shipment_tracking_admin_settings .white-bg {
|
2048 |
+
background: #fff;
|
2049 |
+
}
|
2050 |
+
.rtl .plugin-logo {
|
2051 |
+
padding: 15px 30px 15px 0px;
|
2052 |
+
}
|
2053 |
+
.rtl .nav_doc_section {
|
2054 |
+
float: left;
|
2055 |
+
margin-left: 30px;
|
2056 |
+
}
|
2057 |
+
.rtl .doc_link{
|
2058 |
+
margin-left: 25px;
|
2059 |
+
margin-right: 0;
|
2060 |
+
}
|
2061 |
+
.rtl .nav_doc_section a.open_video_popup:after{
|
2062 |
+
margin-right: 5px;
|
2063 |
+
margin-left: 0;
|
2064 |
+
}
|
2065 |
+
.rtl label.tab_label.first_label{
|
2066 |
+
margin-right: 30px;
|
2067 |
+
margin-left: 0;
|
2068 |
+
}
|
2069 |
+
.rtl .zorem_admin_sidebar{
|
2070 |
+
padding: 25px 30px 25px 0px;
|
2071 |
+
}
|
2072 |
+
.rtl .zorem-sidebar__section li a.plugin_url{
|
2073 |
+
margin-right: 10px;
|
2074 |
+
margin-left: 0;
|
2075 |
+
}
|
2076 |
+
.rtl .multiple_checkbox .mdl-switch.is-upgraded{
|
2077 |
+
padding-right: 42px;
|
2078 |
+
margin-left: 0;
|
2079 |
+
}
|
2080 |
+
.rtl .mdl-switch__track{
|
2081 |
+
right: 0;
|
2082 |
+
left: auto;
|
2083 |
+
}
|
2084 |
+
.rtl .mdl-switch__thumb{
|
2085 |
+
right: 0;
|
2086 |
+
left: auto;
|
2087 |
+
}
|
2088 |
+
.rtl .mdl-switch__ripple-container{
|
2089 |
+
right: -14px;
|
2090 |
+
left: auto;
|
2091 |
+
}
|
2092 |
+
.rtl .mdl-switch.is-checked .mdl-switch__ripple-container {
|
2093 |
+
right: 2px;
|
2094 |
+
left: auto;
|
2095 |
+
}
|
2096 |
+
.rtl .search_section{
|
2097 |
+
float:left;
|
2098 |
+
}
|
2099 |
+
.rtl #search_provider{
|
2100 |
+
padding-left:0;
|
2101 |
+
padding-right: 30px;
|
2102 |
+
}
|
2103 |
+
.rtl .provider_settings{
|
2104 |
+
float:left;
|
2105 |
+
}
|
2106 |
+
.rtl .dropdown_menu{
|
2107 |
+
padding: 0 5px 10px;
|
2108 |
+
}
|
2109 |
+
.rtl .provider_settings{
|
2110 |
+
margin-left:0;
|
2111 |
+
margin-right: 5px;
|
2112 |
+
}
|
2113 |
+
.rtl .right-div{
|
2114 |
+
margin-right: 15px;
|
2115 |
+
}
|
2116 |
+
.rtl .provider_inner{
|
2117 |
+
min-height: 110px;
|
2118 |
+
}
|
2119 |
+
.rtl .dropdown-content{
|
2120 |
+
left: 0;
|
2121 |
+
right:auto;
|
2122 |
+
top: 35px;
|
2123 |
+
}
|
2124 |
+
.rtl .dropdown-content:before{
|
2125 |
+
left: 8px;
|
2126 |
+
right:auto;
|
2127 |
+
}
|
2128 |
+
.rtl .email_status_span{
|
2129 |
+
float: left;
|
2130 |
+
}
|
2131 |
+
.rtl .ac-container .headig_label{
|
2132 |
+
padding: 15px 60px 15px 20px;
|
2133 |
+
text-align: right;
|
2134 |
+
}
|
2135 |
+
.rtl .email-icon{
|
2136 |
+
right: 15px;
|
2137 |
+
left: auto;
|
2138 |
+
}
|
2139 |
+
|
2140 |
+
|
2141 |
+
@media screen and (min-width: 1270px) and (max-width: 1465px) {
|
2142 |
.provider {
|
2143 |
width: 20%;
|
2144 |
}
|
2145 |
}
|
2146 |
+
@media screen and (min-width: 768px) and (max-width: 1269px) {
|
2147 |
.provider{
|
2148 |
width: 25%;
|
2149 |
}
|
2173 |
.provider_top {
|
2174 |
margin-bottom: 10px;
|
2175 |
}
|
2176 |
+
.nav_doc_section{
|
2177 |
+
float: none;
|
2178 |
+
padding: 15px 0 15px;
|
2179 |
+
margin-left: 30px;
|
2180 |
+
}
|
2181 |
}
|
2182 |
@media screen and (max-width: 500px) {
|
2183 |
.provider{
|
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
@@ -164,6 +164,9 @@
|
|
164 |
margin-top: 0px;
|
165 |
margin-bottom: 0;
|
166 |
}
|
|
|
|
|
|
|
167 |
.customize-control-description{
|
168 |
font-size: 12px;
|
169 |
}
|
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
@@ -297,7 +297,7 @@
|
|
297 |
margin: 20px auto 20px;
|
298 |
padding: 30px;
|
299 |
border: 1px solid #f9f9f9;
|
300 |
-
width: 800px;
|
301 |
}
|
302 |
.trackship_branding {
|
303 |
text-align: center;
|
@@ -324,7 +324,7 @@ display: contents;
|
|
324 |
border-bottom: 0;
|
325 |
}
|
326 |
.tracking-table tbody tr td{
|
327 |
-
padding: .5em .5em .5em
|
328 |
border-bottom: 1px solid #eee
|
329 |
}
|
330 |
.tracking-header {
|
@@ -367,6 +367,44 @@ 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 +427,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 +509,16 @@ table.tracking-table{
|
|
467 |
background-repeat: no-repeat;
|
468 |
background-position: center center;
|
469 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
}
|
297 |
margin: 20px auto 20px;
|
298 |
padding: 30px;
|
299 |
border: 1px solid #f9f9f9;
|
300 |
+
max-width: 800px;
|
301 |
}
|
302 |
.trackship_branding {
|
303 |
text-align: center;
|
324 |
border-bottom: 0;
|
325 |
}
|
326 |
.tracking-table tbody tr td{
|
327 |
+
padding: .5em .5em .5em .5em;
|
328 |
border-bottom: 1px solid #eee
|
329 |
}
|
330 |
.tracking-header {
|
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 |
+
.rtl .status-section{
|
404 |
+
margin: 0px 0 0 35px;
|
405 |
+
}
|
406 |
+
/*** END OF RTL CSS ***/
|
407 |
+
|
408 |
@media screen and (max-width: 767px) {
|
409 |
.col.tracking-detail{
|
410 |
padding: 20px 15px 0;
|
427 |
background-repeat: no-repeat;
|
428 |
background-position: center center;
|
429 |
}
|
430 |
+
/*** RTL CSS ***/
|
431 |
+
.rtl .tracking-detail .text-right {
|
432 |
+
text-align: right;
|
433 |
+
}
|
434 |
}
|
435 |
@media screen and (max-width: 550px) {
|
436 |
.mobile-section{
|
509 |
background-repeat: no-repeat;
|
510 |
background-position: center center;
|
511 |
}
|
512 |
+
.rtl .tracker-progress-bar-with-dots .state-1{
|
513 |
+
right: 0;
|
514 |
+
}
|
515 |
+
.rtl .tracker-progress-bar-with-dots .state-2{
|
516 |
+
right: 0;
|
517 |
+
}
|
518 |
+
.rtl .tracker-progress-bar-with-dots .state-3{
|
519 |
+
right: 0;
|
520 |
+
}
|
521 |
+
.rtl .mobile-section .tracker-progress-bar.tracker-progress-bar-with-dots:before{
|
522 |
+
right: 27px;
|
523 |
+
}
|
524 |
}
|
assets/css/icons/invalid-v3.png
ADDED
Binary file
|
assets/js/amcharts/amcharts.js
ADDED
@@ -0,0 +1,403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function(){var d;window.AmCharts?d=window.AmCharts:(d={},window.AmCharts=d,d.themes={},d.maps={},d.inheriting={},d.charts=[],d.onReadyArray=[],d.useUTC=!1,d.updateRate=60,d.uid=0,d.lang={},d.translations={},d.mapTranslations={},d.windows={},d.initHandlers=[],d.amString="am",d.pmString="pm");d.Class=function(a){var b=function(){arguments[0]!==d.inheriting&&(this.events={},this.construct.apply(this,arguments))};a.inherits?(b.prototype=new a.inherits(d.inheriting),b.base=a.inherits.prototype,delete a.inherits):
|
2 |
+
(b.prototype.createEvents=function(){for(var a=0;a<arguments.length;a++)this.events[arguments[a]]=[]},b.prototype.listenTo=function(a,b,c){this.removeListener(a,b,c);a.events[b].push({handler:c,scope:this})},b.prototype.addListener=function(a,b,c){this.removeListener(this,a,b);a&&this.events[a]&&this.events[a].push({handler:b,scope:c})},b.prototype.removeListener=function(a,b,c){if(a&&a.events&&(a=a.events[b]))for(b=a.length-1;0<=b;b--)a[b].handler===c&&a.splice(b,1)},b.prototype.fire=function(a){for(var b=
|
3 |
+
this.events[a.type],c=0;c<b.length;c++){var d=b[c];d.handler.call(d.scope,a)}});for(var c in a)b.prototype[c]=a[c];return b};d.addChart=function(a){window.requestAnimationFrame?d.animationRequested||(d.animationRequested=!0,window.requestAnimationFrame(d.update)):d.updateInt||(d.updateInt=setInterval(function(){d.update()},Math.round(1E3/d.updateRate)));d.charts.push(a)};d.removeChart=function(a){for(var b=d.charts,c=b.length-1;0<=c;c--)b[c]==a&&b.splice(c,1);0===b.length&&(d.requestAnimation&&(window.cancelAnimationFrame(d.requestAnimation),
|
4 |
+
d.animationRequested=!1),d.updateInt&&(clearInterval(d.updateInt),d.updateInt=NaN))};d.isModern=!0;d.getIEVersion=function(){var a=0,b,c;"Microsoft Internet Explorer"==navigator.appName&&(b=navigator.userAgent,c=/MSIE ([0-9]{1,}[.0-9]{0,})/,null!==c.exec(b)&&(a=parseFloat(RegExp.$1)));return a};d.applyLang=function(a,b){var c=d.translations;b.dayNames=d.extend({},d.dayNames);b.shortDayNames=d.extend({},d.shortDayNames);b.monthNames=d.extend({},d.monthNames);b.shortMonthNames=d.extend({},d.shortMonthNames);
|
5 |
+
b.amString="am";b.pmString="pm";c&&(c=c[a])&&(d.lang=c,b.langObj=c,c.monthNames&&(b.dayNames=d.extend({},c.dayNames),b.shortDayNames=d.extend({},c.shortDayNames),b.monthNames=d.extend({},c.monthNames),b.shortMonthNames=d.extend({},c.shortMonthNames)),c.am&&(b.amString=c.am),c.pm&&(b.pmString=c.pm));d.amString=b.amString;d.pmString=b.pmString};d.IEversion=d.getIEVersion();9>d.IEversion&&0<d.IEversion&&(d.isModern=!1,d.isIE=!0);d.dx=0;d.dy=0;if(document.addEventListener||window.opera)d.isNN=!0,d.isIE=
|
6 |
+
!1,d.dx=.5,d.dy=.5;document.attachEvent&&(d.isNN=!1,d.isIE=!0,d.isModern||(d.dx=0,d.dy=0));window.chrome&&(d.chrome=!0);d.handleMouseUp=function(a){for(var b=d.charts,c=0;c<b.length;c++){var e=b[c];e&&e.handleReleaseOutside&&e.handleReleaseOutside(a)}};d.handleMouseMove=function(a){for(var b=d.charts,c=0;c<b.length;c++){var e=b[c];e&&e.handleMouseMove&&e.handleMouseMove(a)}};d.handleWheel=function(a){for(var b=d.charts,c=0;c<b.length;c++){var e=b[c];if(e&&e.mouseIsOver){(e.mouseWheelScrollEnabled||
|
7 |
+
e.mouseWheelZoomEnabled)&&e.handleWheel&&(e.handleMouseMove(a),e.handleWheel(a));break}}};d.resetMouseOver=function(){for(var a=d.charts,b=0;b<a.length;b++){var c=a[b];c&&(c.mouseIsOver=!1)}};d.ready=function(a){d.onReadyArray.push(a)};d.handleLoad=function(){d.isReady=!0;for(var a=d.onReadyArray,b=0;b<a.length;b++){var c=a[b];isNaN(d.processDelay)?c():setTimeout(c,d.processDelay*b)}d.onReadyArray=[]};d.addInitHandler=function(a,b){d.initHandlers.push({method:a,types:b})};d.callInitHandler=function(a){var b=
|
8 |
+
d.initHandlers;if(d.initHandlers)for(var c=0;c<b.length;c++){var e=b[c];e.types?d.isInArray(e.types,a.type)&&e.method(a):e.method(a)}};d.getUniqueId=function(){d.uid++;return"AmChartsEl-"+d.uid};d.isNN&&(document.addEventListener("mousemove",d.handleMouseMove),document.addEventListener("mouseup",d.handleMouseUp,!0),window.addEventListener("load",d.handleLoad,!0));d.isIE&&(document.attachEvent("onmousemove",d.handleMouseMove),document.attachEvent("onmouseup",d.handleMouseUp),window.attachEvent("onload",
|
9 |
+
d.handleLoad));d.addWheelListeners=function(){d.wheelIsListened||(d.isNN&&(window.addEventListener("DOMMouseScroll",d.handleWheel,!0),document.addEventListener("mousewheel",d.handleWheel,!0)),d.isIE&&document.attachEvent("onmousewheel",d.handleWheel));d.wheelIsListened=!0};d.clear=function(){var a=d.charts;if(a)for(var b=a.length-1;0<=b;b--)a[b].clear();d.updateInt&&clearInterval(d.updateInt);d.requestAnimation&&window.cancelAnimationFrame(d.requestAnimation);d.charts=[];d.isNN&&(document.removeEventListener("mousemove",
|
10 |
+
d.handleMouseMove,!0),document.removeEventListener("mouseup",d.handleMouseUp,!0),window.removeEventListener("load",d.handleLoad,!0),window.removeEventListener("DOMMouseScroll",d.handleWheel,!0),document.removeEventListener("mousewheel",d.handleWheel,!0));d.isIE&&(document.detachEvent("onmousemove",d.handleMouseMove),document.detachEvent("onmouseup",d.handleMouseUp),window.detachEvent("onload",d.handleLoad))};d.makeChart=function(a,b,c){var e=b.type,g=b.theme;d.isString(g)&&(g=d.themes[g],b.theme=
|
11 |
+
g);var f;switch(e){case "serial":f=new d.AmSerialChart(g);break;case "xy":f=new d.AmXYChart(g);break;case "pie":f=new d.AmPieChart(g);break;case "radar":f=new d.AmRadarChart(g);break;case "gauge":f=new d.AmAngularGauge(g);break;case "funnel":f=new d.AmFunnelChart(g);break;case "map":f=new d.AmMap(g);break;case "stock":f=new d.AmStockChart(g);break;case "gantt":f=new d.AmGanttChart(g)}d.extend(f,b);d.isReady?isNaN(c)?f.write(a):setTimeout(function(){d.realWrite(f,a)},c):d.ready(function(){isNaN(c)?
|
12 |
+
f.write(a):setTimeout(function(){d.realWrite(f,a)},c)});return f};d.realWrite=function(a,b){a.write(b)};d.updateCount=0;d.validateAt=Math.round(d.updateRate/10);d.update=function(){var a=d.charts;d.updateCount++;var b=!1;d.updateCount==d.validateAt&&(b=!0,d.updateCount=0);if(a)for(var c=a.length-1;0<=c;c--)a[c].update&&a[c].update(),b&&(a[c].autoResize?a[c].validateSize&&a[c].validateSize():a[c].premeasure&&a[c].premeasure());window.requestAnimationFrame&&(d.requestAnimation=window.requestAnimationFrame(d.update))};
|
13 |
+
"complete"==document.readyState&&d.handleLoad()})();(function(){var d=window.AmCharts;d.toBoolean=function(a,b){if(void 0===a)return b;switch(String(a).toLowerCase()){case "true":case "yes":case "1":return!0;case "false":case "no":case "0":case null:return!1;default:return!!a}};d.removeFromArray=function(a,b){var c;if(void 0!==b&&void 0!==a)for(c=a.length-1;0<=c;c--)a[c]==b&&a.splice(c,1)};d.getPath=function(){var a=document.getElementsByTagName("script");if(a)for(var b=0;b<a.length;b++){var c=a[b].src;if(-1!==c.search(/\/(amcharts|ammap)\.js/))return c.replace(/\/(amcharts|ammap)\.js.*/,
|
14 |
+
"/")}};d.normalizeUrl=function(a){return""!==a&&-1===a.search(/\/$/)?a+"/":a};d.isAbsolute=function(a){return 0===a.search(/^http[s]?:|^\//)};d.isInArray=function(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return!0;return!1};d.getDecimals=function(a){var b=0;isNaN(a)||(a=String(a),-1!=a.indexOf("e-")?b=Number(a.split("-")[1]):-1!=a.indexOf(".")&&(b=a.split(".")[1].length));return b};d.wordwrap=function(a,b,c,e){var g,f,h,k;a+="";if(1>b)return a;g=-1;for(a=(k=a.split(/\r\n|\n|\r/)).length;++g<a;k[g]+=
|
15 |
+
h){h=k[g];for(k[g]="";h.length>b;k[g]+=d.trim(h.slice(0,f))+((h=h.slice(f)).length?c:""))f=2==e||(f=h.slice(0,b+1).match(/\S*(\s)?$/))[1]?b:f.input.length-f[0].length||1==e&&b||f.input.length+(f=h.slice(b).match(/^\S*/))[0].length;h=d.trim(h)}return k.join(c)};d.trim=function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};d.wrappedText=function(a,b,c,e,g,f,h,k){var l=d.text(a,b,c,e,g,f,h);if(l){var m=l.getBBox();if(m.width>k){var n="\n";d.isModern||(n="<br>");k=Math.floor(k/(m.width/
|
16 |
+
b.length));2<k&&(k-=2);b=d.wordwrap(b,k,n,!0);l.remove();l=d.text(a,b,c,e,g,f,h)}}return l};d.getStyle=function(a,b){var c="";if(document.defaultView&&document.defaultView.getComputedStyle)try{c=document.defaultView.getComputedStyle(a,"").getPropertyValue(b)}catch(e){}else a.currentStyle&&(b=b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),c=a.currentStyle[b]);return c};d.removePx=function(a){if(void 0!==a)return Number(a.substring(0,a.length-2))};d.getURL=function(a,b){if(a)if("_self"!=
|
17 |
+
b&&b)if("_top"==b&&window.top)window.top.location.href=a;else if("_parent"==b&&window.parent)window.parent.location.href=a;else if("_blank"==b)window.open(a);else{var c=document.getElementsByName(b)[0];c?c.src=a:(c=d.windows[b])?c.opener&&!c.opener.closed?c.location.href=a:d.windows[b]=window.open(a):d.windows[b]=window.open(a)}else window.location.href=a};d.ifArray=function(a){return a&&"object"==typeof a&&0<a.length?!0:!1};d.callMethod=function(a,b){var c;for(c=0;c<b.length;c++){var e=b[c];if(e){if(e[a])e[a]();
|
18 |
+
var d=e.length;if(0<d){var f;for(f=0;f<d;f++){var h=e[f];if(h&&h[a])h[a]()}}}}};d.toNumber=function(a){return"number"==typeof a?a:Number(String(a).replace(/[^0-9\-.]+/g,""))};d.toColor=function(a){if(""!==a&&void 0!==a)if(-1!=a.indexOf(",")){a=a.split(",");var b;for(b=0;b<a.length;b++){var c=a[b].substring(a[b].length-6,a[b].length);a[b]="#"+c}}else a=a.substring(a.length-6,a.length),a="#"+a;return a};d.toCoordinate=function(a,b,c){var e;void 0!==a&&(a=String(a),c&&c<b&&(b=c),e=Number(a),-1!=a.indexOf("!")&&
|
19 |
+
(e=b-Number(a.substr(1))),-1!=a.indexOf("%")&&(e=b*Number(a.substr(0,a.length-1))/100));return e};d.fitToBounds=function(a,b,c){a<b&&(a=b);a>c&&(a=c);return a};d.isDefined=function(a){return void 0===a?!1:!0};d.stripNumbers=function(a){return a.replace(/[0-9]+/g,"")};d.roundTo=function(a,b){if(0>b)return a;var c=Math.pow(10,b);return Math.round(a*c)/c};d.toFixed=function(a,b){var c=!1;0>a&&(c=!0,a=Math.abs(a));var e=String(Math.round(a*Math.pow(10,b)));if(0<b){var d=e.length;if(d<b){var f;for(f=0;f<
|
20 |
+
b-d;f++)e="0"+e}d=e.substring(0,e.length-b);""===d&&(d=0);e=d+"."+e.substring(e.length-b,e.length);return c?"-"+e:e}return String(e)};d.formatDuration=function(a,b,c,e,g,f){var h=d.intervals,k=f.decimalSeparator;if(a>=h[b].contains){var l=a-Math.floor(a/h[b].contains)*h[b].contains;"ss"==b?(l=d.formatNumber(l,f),1==l.split(k)[0].length&&(l="0"+l)):l=d.roundTo(l,f.precision);("mm"==b||"hh"==b)&&10>l&&(l="0"+l);c=l+""+e[b]+""+c;a=Math.floor(a/h[b].contains);b=h[b].nextInterval;return d.formatDuration(a,
|
21 |
+
b,c,e,g,f)}"ss"==b&&(a=d.formatNumber(a,f),1==a.split(k)[0].length&&(a="0"+a));"mm"==b&&(a=d.roundTo(a,f.precision));("mm"==b||"hh"==b)&&10>a&&(a="0"+a);c=a+""+e[b]+""+c;if(h[g].count>h[b].count)for(a=h[b].count;a<h[g].count;a++)b=h[b].nextInterval,"ss"==b||"mm"==b||"hh"==b?c="00"+e[b]+""+c:"DD"==b&&(c="0"+e[b]+""+c);":"==c.charAt(c.length-1)&&(c=c.substring(0,c.length-1));return c};d.formatNumber=function(a,b,c,e,g){a=d.roundTo(a,b.precision);isNaN(c)&&(c=b.precision);var f=b.decimalSeparator;b=
|
22 |
+
b.thousandsSeparator;void 0==f&&(f=",");void 0==b&&(b=" ");var h;h=0>a?"-":"";a=Math.abs(a);var k=String(a),l=!1;-1!=k.indexOf("e")&&(l=!0);0<=c&&!l&&(k=d.toFixed(a,c));var m="";if(l)m=k;else{var k=k.split("."),l=String(k[0]),n;for(n=l.length;0<=n;n-=3)m=n!=l.length?0!==n?l.substring(n-3,n)+b+m:l.substring(n-3,n)+m:l.substring(n-3,n);void 0!==k[1]&&(m=m+f+k[1]);void 0!==c&&0<c&&"0"!=m&&(m=d.addZeroes(m,f,c))}m=h+m;""===h&&!0===e&&0!==a&&(m="+"+m);!0===g&&(m+="%");return m};d.addZeroes=function(a,
|
23 |
+
b,c){a=a.split(b);void 0===a[1]&&0<c&&(a[1]="0");return a[1].length<c?(a[1]+="0",d.addZeroes(a[0]+b+a[1],b,c)):void 0!==a[1]?a[0]+b+a[1]:a[0]};d.scientificToNormal=function(a){var b;a=String(a).split("e");var c;if("-"==a[1].substr(0,1)){b="0.";for(c=0;c<Math.abs(Number(a[1]))-1;c++)b+="0";b+=a[0].split(".").join("")}else{var e=0;b=a[0].split(".");b[1]&&(e=b[1].length);b=a[0].split(".").join("");for(c=0;c<Math.abs(Number(a[1]))-e;c++)b+="0"}return b};d.toScientific=function(a,b){if(0===a)return"0";
|
24 |
+
var c=Math.floor(Math.log(Math.abs(a))*Math.LOG10E),e=String(e).split(".").join(b);return String(e)+"e"+c};d.randomColor=function(){return"#"+("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6)};d.hitTest=function(a,b,c){var e=!1,g=a.x,f=a.x+a.width,h=a.y,k=a.y+a.height,l=d.isInRectangle;e||(e=l(g,h,b));e||(e=l(g,k,b));e||(e=l(f,h,b));e||(e=l(f,k,b));e||!0===c||(e=d.hitTest(b,a,!0));return e};d.isInRectangle=function(a,b,c){return a>=c.x-5&&a<=c.x+c.width+5&&b>=c.y-5&&b<=c.y+c.height+5?
|
25 |
+
!0:!1};d.isPercents=function(a){if(-1!=String(a).indexOf("%"))return!0};d.formatValue=function(a,b,c,e,g,f,h,k){if(b){void 0===g&&(g="");var l;for(l=0;l<c.length;l++){var m=c[l],n=b[m];void 0!==n&&(n=f?d.addPrefix(n,k,h,e):d.formatNumber(n,e),a=a.replace(new RegExp("\\[\\["+g+""+m+"\\]\\]","g"),n))}}return a};d.formatDataContextValue=function(a,b){if(a){var c=a.match(/\[\[.*?\]\]/g),e;for(e=0;e<c.length;e++){var d=c[e],d=d.substr(2,d.length-4);void 0!==b[d]&&(a=a.replace(new RegExp("\\[\\["+d+"\\]\\]",
|
26 |
+
"g"),b[d]))}}return a};d.massReplace=function(a,b){for(var c in b)if(b.hasOwnProperty(c)){var e=b[c];void 0===e&&(e="");a=a.replace(c,e)}return a};d.cleanFromEmpty=function(a){return a.replace(/\[\[[^\]]*\]\]/g,"")};d.addPrefix=function(a,b,c,e,g){var f=d.formatNumber(a,e),h="",k,l,m;if(0===a)return"0";0>a&&(h="-");a=Math.abs(a);if(1<a)for(k=b.length-1;-1<k;k--){if(a>=b[k].number&&(l=a/b[k].number,m=Number(e.precision),1>m&&(m=1),c=d.roundTo(l,m),m=d.formatNumber(c,{precision:-1,decimalSeparator:e.decimalSeparator,
|
27 |
+
thousandsSeparator:e.thousandsSeparator}),!g||l==c)){f=h+""+m+""+b[k].prefix;break}}else for(k=0;k<c.length;k++)if(a<=c[k].number){l=a/c[k].number;m=Math.abs(Math.floor(Math.log(l)*Math.LOG10E));l=d.roundTo(l,m);f=h+""+l+""+c[k].prefix;break}return f};d.remove=function(a){a&&a.remove()};d.getEffect=function(a){">"==a&&(a="easeOutSine");"<"==a&&(a="easeInSine");"elastic"==a&&(a="easeOutElastic");return a};d.getObjById=function(a,b){var c,e;for(e=0;e<a.length;e++){var d=a[e];if(d.id==b){c=d;break}}return c};
|
28 |
+
d.applyTheme=function(a,b,c){b||(b=d.theme);try{b=JSON.parse(JSON.stringify(b))}catch(e){}b&&b[c]&&d.extend(a,b[c])};d.isString=function(a){return"string"==typeof a?!0:!1};d.extend=function(a,b,c){var e;a||(a={});for(e in b)c?a.hasOwnProperty(e)||(a[e]=b[e]):a[e]=b[e];return a};d.copyProperties=function(a,b){for(var c in a)a.hasOwnProperty(c)&&"events"!=c&&void 0!==a[c]&&"function"!=typeof a[c]&&"cname"!=c&&(b[c]=a[c])};d.processObject=function(a,b,c,e){if(!1===a instanceof b&&(a=e?d.extend(new b(c),
|
29 |
+
a):d.extend(a,new b(c),!0),a.listeners))for(var g in a.listeners)b=a.listeners[g],a.addListener(b.event,b.method);return a};d.fixNewLines=function(a){var b=RegExp("\\n","g");a&&(a=a.replace(b,"<br />"));return a};d.fixBrakes=function(a){if(d.isModern){var b=RegExp("<br>","g");a&&(a=a.replace(b,"\n"))}else a=d.fixNewLines(a);return a};d.deleteObject=function(a,b){if(a){if(void 0===b||null===b)b=20;if(0!==b)if("[object Array]"===Object.prototype.toString.call(a))for(var c=0;c<a.length;c++)d.deleteObject(a[c],
|
30 |
+
b-1),a[c]=null;else if(a&&!a.tagName)try{for(c in a.theme=null,a)a[c]&&("object"==typeof a[c]&&d.deleteObject(a[c],b-1),"function"!=typeof a[c]&&(a[c]=null))}catch(e){}}};d.bounce=function(a,b,c,e,d){return(b/=d)<1/2.75?7.5625*e*b*b+c:b<2/2.75?e*(7.5625*(b-=1.5/2.75)*b+.75)+c:b<2.5/2.75?e*(7.5625*(b-=2.25/2.75)*b+.9375)+c:e*(7.5625*(b-=2.625/2.75)*b+.984375)+c};d.easeInOutQuad=function(a,b,c,e,d){b/=d/2;if(1>b)return e/2*b*b+c;b--;return-e/2*(b*(b-2)-1)+c};d.easeInSine=function(a,b,c,e,d){return-e*
|
31 |
+
Math.cos(b/d*(Math.PI/2))+e+c};d.easeOutSine=function(a,b,c,e,d){return e*Math.sin(b/d*(Math.PI/2))+c};d.easeOutElastic=function(a,b,c,e,d){a=1.70158;var f=0,h=e;if(0===b)return c;if(1==(b/=d))return c+e;f||(f=.3*d);h<Math.abs(e)?(h=e,a=f/4):a=f/(2*Math.PI)*Math.asin(e/h);return h*Math.pow(2,-10*b)*Math.sin(2*(b*d-a)*Math.PI/f)+e+c};d.fixStepE=function(a){a=a.toExponential(0).split("e");var b=Number(a[1]);9==Number(a[0])&&b++;return d.generateNumber(1,b)};d.generateNumber=function(a,b){var c="",e;
|
32 |
+
e=0>b?Math.abs(b)-1:Math.abs(b);var d;for(d=0;d<e;d++)c+="0";return 0>b?Number("0."+c+String(a)):Number(String(a)+c)};d.setCN=function(a,b,c,e){if(a.addClassNames&&b&&(b=b.node)&&c){var d=b.getAttribute("class");a=a.classNamePrefix+"-";e&&(a="");d?b.setAttribute("class",d+" "+a+c):b.setAttribute("class",a+c)}};d.removeCN=function(a,b,c){b&&(b=b.node)&&c&&(b=b.classList)&&b.remove(a.classNamePrefix+"-"+c)};d.parseDefs=function(a,b){for(var c in a){var e=typeof a[c];if(0<a[c].length&&"object"==e)for(var g=
|
33 |
+
0;g<a[c].length;g++)e=document.createElementNS(d.SVG_NS,c),b.appendChild(e),d.parseDefs(a[c][g],e);else"object"==e?(e=document.createElementNS(d.SVG_NS,c),b.appendChild(e),d.parseDefs(a[c],e)):b.setAttribute(c,a[c])}}})();(function(){var d=window.AmCharts;d.AxisBase=d.Class({construct:function(a){this.createEvents("clickItem","rollOverItem","rollOutItem","rollOverGuide","rollOutGuide","clickGuide");this.titleDY=this.y=this.x=this.dy=this.dx=0;this.axisThickness=1;this.axisColor="#000000";this.axisAlpha=1;this.gridCount=this.tickLength=5;this.gridAlpha=.15;this.gridThickness=1;this.gridColor="#000000";this.dashLength=0;this.labelFrequency=1;this.showLastLabel=this.showFirstLabel=!0;this.fillColor="#FFFFFF";this.fillAlpha=
|
34 |
+
0;this.labelsEnabled=!0;this.labelRotation=0;this.autoGridCount=!0;this.offset=0;this.guides=[];this.visible=!0;this.counter=0;this.guides=[];this.ignoreAxisWidth=this.inside=!1;this.minHorizontalGap=75;this.minVerticalGap=35;this.titleBold=!0;this.minorGridEnabled=!1;this.minorGridAlpha=.07;this.autoWrap=!1;this.titleAlign="middle";this.labelOffset=0;this.bcn="axis-";this.centerLabels=!1;this.firstDayOfWeek=1;this.centerLabelOnFullPeriod=this.markPeriodChange=this.boldPeriodBeginning=!0;this.titleWidth=
|
35 |
+
0;this.periods=[{period:"fff",count:1},{period:"fff",count:5},{period:"fff",count:10},{period:"fff",count:50},{period:"fff",count:100},{period:"fff",count:500},{period:"ss",count:1},{period:"ss",count:5},{period:"ss",count:10},{period:"ss",count:30},{period:"mm",count:1},{period:"mm",count:5},{period:"mm",count:10},{period:"mm",count:30},{period:"hh",count:1},{period:"hh",count:3},{period:"hh",count:6},{period:"hh",count:12},{period:"DD",count:1},{period:"DD",count:2},{period:"DD",count:3},{period:"DD",
|
36 |
+
count:4},{period:"DD",count:5},{period:"WW",count:1},{period:"MM",count:1},{period:"MM",count:2},{period:"MM",count:3},{period:"MM",count:6},{period:"YYYY",count:1},{period:"YYYY",count:2},{period:"YYYY",count:5},{period:"YYYY",count:10},{period:"YYYY",count:50},{period:"YYYY",count:100}];this.dateFormats=[{period:"fff",format:"NN:SS.QQQ"},{period:"ss",format:"JJ:NN:SS"},{period:"mm",format:"JJ:NN"},{period:"hh",format:"JJ:NN"},{period:"DD",format:"MMM DD"},{period:"WW",format:"MMM DD"},{period:"MM",
|
37 |
+
format:"MMM"},{period:"YYYY",format:"YYYY"}];this.nextPeriod={fff:"ss",ss:"mm",mm:"hh",hh:"DD",DD:"MM",MM:"YYYY"};d.applyTheme(this,a,"AxisBase")},zoom:function(a,b){this.start=a;this.end=b;this.dataChanged=!0;this.draw()},fixAxisPosition:function(){var a=this.position;"H"==this.orientation?("left"==a&&(a="bottom"),"right"==a&&(a="top")):("bottom"==a&&(a="left"),"top"==a&&(a="right"));this.position=a},init:function(){this.createBalloon()},draw:function(){var a=this.chart;this.prevBY=this.prevBX=NaN;
|
38 |
+
this.allLabels=[];this.counter=0;this.destroy();this.fixAxisPosition();this.setBalloonBounds();this.labels=[];var b=a.container,c=b.set();a.gridSet.push(c);this.set=c;b=b.set();a.axesLabelsSet.push(b);this.labelsSet=b;this.axisLine=new this.axisRenderer(this);this.autoGridCount?("V"==this.orientation?(a=this.height/this.minVerticalGap,3>a&&(a=3)):a=this.width/this.minHorizontalGap,this.gridCountR=Math.max(a,1)):this.gridCountR=this.gridCount;this.axisWidth=this.axisLine.axisWidth;this.addTitle()},
|
39 |
+
setOrientation:function(a){this.orientation=a?"H":"V"},addTitle:function(){var a=this.title;this.titleLabel=null;if(a){var b=this.chart,c=this.titleColor;void 0===c&&(c=b.color);var e=this.titleFontSize;isNaN(e)&&(e=b.fontSize+1);a=d.text(b.container,a,c,b.fontFamily,e,this.titleAlign,this.titleBold);d.setCN(b,a,this.bcn+"title");this.titleLabel=a}},positionTitle:function(){var a=this.titleLabel;if(a){var b,c,e=this.labelsSet,g={};0<e.length()?g=e.getBBox():(g.x=0,g.y=0,g.width=this.width,g.height=
|
40 |
+
this.height,d.VML&&(g.y+=this.y,g.x+=this.x));e.push(a);var e=g.x,f=g.y;d.VML&&(f-=this.y,e-=this.x);var h=g.width,g=g.height,k=this.width,l=this.height,m=0,n=a.getBBox().height/2,q=this.inside,p=this.titleAlign;switch(this.position){case "top":b="left"==p?-1:"right"==p?k:k/2;c=f-10-n;break;case "bottom":b="left"==p?-1:"right"==p?k:k/2;c=f+g+10+n;break;case "left":b=e-10-n;q&&(b-=5);m=-90;c=("left"==p?l+1:"right"==p?-1:l/2)+this.titleDY;this.titleWidth=n+10;break;case "right":b=e+h+10+n,q&&(b+=7),
|
41 |
+
c=("left"==p?l+2:"right"==p?-2:l/2)+this.titleDY,this.titleWidth=n+10,m=-90}this.marginsChanged?(a.translate(b,c),this.tx=b,this.ty=c):a.translate(this.tx,this.ty);this.marginsChanged=!1;isNaN(this.titleRotation)||(m=this.titleRotation);0!==m&&a.rotate(m)}},pushAxisItem:function(a,b){var c=this,e=a.graphics();0<e.length()&&(b?c.labelsSet.push(e):c.set.push(e));if(e=a.getLabel())c.labelsSet.push(e),e.click(function(b){c.handleMouse(b,a,"clickItem")}).touchend(function(b){c.handleMouse(b,a,"clickItem")}).mouseover(function(b){c.handleMouse(b,
|
42 |
+
a,"rollOverItem")}).mouseout(function(b){c.handleMouse(b,a,"rollOutItem")})},handleMouse:function(a,b,c){this.fire({type:c,value:b.value,serialDataItem:b.serialDataItem,axis:this,target:b.label,chart:this.chart,event:a})},addGuide:function(a){for(var b=this.guides,c=!1,e=b.length,g=0;g<b.length;g++)b[g]==a&&(c=!0,e=g);a=d.processObject(a,d.Guide,this.theme);a.id||(a.id="guideAuto"+e+"_"+(new Date).getTime());c||b.push(a)},removeGuide:function(a){var b=this.guides,c;for(c=0;c<b.length;c++)b[c]==a&&
|
43 |
+
b.splice(c,1)},handleGuideOver:function(a){clearTimeout(this.chart.hoverInt);var b={x:0,y:0,width:0,height:0};a.graphics&&(b=a.graphics.getBBox());var c=this.x+b.x+b.width/2,b=this.y+b.y+b.height/2,e=a.fillColor;void 0===e&&(e=a.lineColor);this.chart.showBalloon(a.balloonText,e,!0,c,b);this.fire({type:"rollOverGuide",guide:a,chart:this.chart})},handleGuideOut:function(a){this.chart.hideBalloon();this.fire({type:"rollOutGuide",guide:a,chart:this.chart})},handleGuideClick:function(a){this.chart.hideBalloon();
|
44 |
+
this.fire({type:"clickGuide",guide:a,chart:this.chart})},addEventListeners:function(a,b){var c=this;a.mouseover(function(){c.handleGuideOver(b)});a.mouseup(function(){c.handleGuideClick(b)});a.touchstart(function(){c.handleGuideOver(b)});a.mouseout(function(){c.handleGuideOut(b)})},getBBox:function(){var a;this.labelsSet&&(a=this.labelsSet.getBBox());a?d.VML||(a={x:a.x+this.x,y:a.y+this.y,width:a.width,height:a.height}):a={x:0,y:0,width:0,height:0};return a},destroy:function(){d.remove(this.set);
|
45 |
+
d.remove(this.labelsSet);var a=this.axisLine;a&&d.remove(a.axisSet);d.remove(this.grid0)},chooseMinorFrequency:function(a){for(var b=10;0<b;b--)if(a/b==Math.round(a/b))return a/b},parseDatesDraw:function(){var a,b=this.chart,c=this.showFirstLabel,e=this.showLastLabel,g,f="",h=d.extractPeriod(this.minPeriod),k=d.getPeriodDuration(h.period,h.count),l,m,n,q,p,t=this.firstDayOfWeek,r=this.boldPeriodBeginning;a=this.minorGridEnabled;var w,z=this.gridAlpha,x,u=this.choosePeriod(0),A=u.period,u=u.count,
|
46 |
+
y=d.getPeriodDuration(A,u);y<k&&(A=h.period,u=h.count,y=k);h=A;"WW"==h&&(h="DD");this.stepWidth=this.getStepWidth(this.timeDifference);var B=Math.ceil(this.timeDifference/y)+5,D=l=d.resetDateToMin(new Date(this.startTime-y),A,u,t).getTime();if(h==A&&1==u&&this.centerLabelOnFullPeriod||this.autoWrap||this.centerLabels)n=y*this.stepWidth,this.autoWrap&&!this.centerLabels&&(n=-n);this.cellWidth=k*this.stepWidth;q=Math.round(l/y);k=-1;q/2==Math.round(q/2)&&(k=-2,l-=y);q=this.firstTime;var C=0,I=0;a&&
|
47 |
+
1<u&&(w=this.chooseMinorFrequency(u),x=d.getPeriodDuration(A,w),"DD"==A&&(x+=d.getPeriodDuration("hh")),"fff"==A&&(x=1));if(0<this.gridCountR)for(B-5-k>this.autoRotateCount&&!isNaN(this.autoRotateAngle)&&(this.labelRotationR=this.autoRotateAngle),a=k;a<=B;a++){p=q+y*(a+Math.floor((D-q)/y))-C;"DD"==A&&(p+=36E5);p=d.resetDateToMin(new Date(p),A,u,t).getTime();"MM"==A&&(g=(p-l)/y,1.5<=(p-l)/y&&(p=p-(g-1)*y+d.getPeriodDuration("DD",3),p=d.resetDateToMin(new Date(p),A,1).getTime(),C+=y));g=(p-this.startTime)*
|
48 |
+
this.stepWidth;if("radar"==b.type){if(g=this.axisWidth-g,0>g||g>this.axisWidth)continue}else this.rotate?"date"==this.type&&"middle"==this.gridPosition&&(I=-y*this.stepWidth/2):"date"==this.type&&(g=this.axisWidth-g);f=!1;this.nextPeriod[h]&&(f=this.checkPeriodChange(this.nextPeriod[h],1,p,l,h));l=!1;f&&this.markPeriodChange?(f=this.dateFormatsObject[this.nextPeriod[h]],this.twoLineMode&&(f=this.dateFormatsObject[h]+"\n"+f,f=d.fixBrakes(f)),l=!0):f=this.dateFormatsObject[h];r||(l=!1);this.currentDateFormat=
|
49 |
+
f;f=d.formatDate(new Date(p),f,b);if(a==k&&!c||a==B&&!e)f=" ";this.labelFunction&&(f=this.labelFunction(f,new Date(p),this,A,u,m).toString());this.boldLabels&&(l=!0);m=new this.axisItemRenderer(this,g,f,!1,n,I,!1,l);this.pushAxisItem(m);m=l=p;if(!isNaN(w))for(g=1;g<u;g+=w)this.gridAlpha=this.minorGridAlpha,f=p+x*g,f=d.resetDateToMin(new Date(f),A,w,t).getTime(),f=new this.axisItemRenderer(this,(f-this.startTime)*this.stepWidth,void 0,void 0,void 0,void 0,void 0,void 0,void 0,!0),this.pushAxisItem(f);
|
50 |
+
this.gridAlpha=z}},choosePeriod:function(a){var b=d.getPeriodDuration(this.periods[a].period,this.periods[a].count),c=this.periods;return this.timeDifference<b&&0<a?c[a-1]:Math.ceil(this.timeDifference/b)<=this.gridCountR?c[a]:a+1<c.length?this.choosePeriod(a+1):c[a]},getStepWidth:function(a){var b;this.startOnAxis?(b=this.axisWidth/(a-1),1==a&&(b=this.axisWidth)):b=this.axisWidth/a;return b},timeZoom:function(a,b){this.startTime=a;this.endTime=b},minDuration:function(){var a=d.extractPeriod(this.minPeriod);
|
51 |
+
return d.getPeriodDuration(a.period,a.count)},checkPeriodChange:function(a,b,c,e,g){c=new Date(c);var f=new Date(e),h=this.firstDayOfWeek;e=b;"DD"==a&&(b=1);c=d.resetDateToMin(c,a,b,h).getTime();b=d.resetDateToMin(f,a,b,h).getTime();return"DD"==a&&"hh"!=g&&c-b<d.getPeriodDuration(a,e)-d.getPeriodDuration("hh",1)?!1:c!=b?!0:!1},generateDFObject:function(){this.dateFormatsObject={};var a;for(a=0;a<this.dateFormats.length;a++){var b=this.dateFormats[a];this.dateFormatsObject[b.period]=b.format}},hideBalloon:function(){this.balloon&&
|
52 |
+
this.balloon.hide&&this.balloon.hide();this.prevBY=this.prevBX=NaN},formatBalloonText:function(a){return a},showBalloon:function(a,b,c,e){var d=this.offset;switch(this.position){case "bottom":b=this.height+d;break;case "top":b=-d;break;case "left":a=-d;break;case "right":a=this.width+d}c||(c=this.currentDateFormat);if("V"==this.orientation){if(0>b||b>this.height)return;if(isNaN(b)){this.hideBalloon();return}b=this.adjustBalloonCoordinate(b,e);e=this.coordinateToValue(b)}else{if(0>a||a>this.width)return;
|
53 |
+
if(isNaN(a)){this.hideBalloon();return}a=this.adjustBalloonCoordinate(a,e);e=this.coordinateToValue(a)}var f;if(d=this.chart.chartCursor)f=d.index;if(this.balloon&&void 0!==e&&this.balloon.enabled){if(this.balloonTextFunction){if("date"==this.type||!0===this.parseDates)e=new Date(e);e=this.balloonTextFunction(e)}else this.balloonText?e=this.formatBalloonText(this.balloonText,f,c):isNaN(e)||(e=this.formatValue(e,c));if(a!=this.prevBX||b!=this.prevBY)this.balloon.setPosition(a,b),this.prevBX=a,this.prevBY=
|
54 |
+
b,e&&this.balloon.showBalloon(e)}},adjustBalloonCoordinate:function(a){return a},createBalloon:function(){var a=this.chart,b=a.chartCursor;b&&(b=b.cursorPosition,"mouse"!=b&&(this.stickBalloonToCategory=!0),"start"==b&&(this.stickBalloonToStart=!0),"ValueAxis"==this.cname&&(this.stickBalloonToCategory=!1));this.balloon&&(this.balloon.destroy&&this.balloon.destroy(),d.extend(this.balloon,a.balloon,!0))},setBalloonBounds:function(){var a=this.balloon;if(a){var b=this.chart;a.cornerRadius=0;a.shadowAlpha=
|
55 |
+
0;a.borderThickness=1;a.borderAlpha=1;a.adjustBorderColor=!1;a.showBullet=!1;this.balloon=a;a.chart=b;a.mainSet=b.plotBalloonsSet;a.pointerWidth=this.tickLength;if(this.parseDates||"date"==this.type)a.pointerWidth=0;a.className=this.id;b="V";"V"==this.orientation&&(b="H");this.stickBalloonToCategory||(a.animationDuration=0);var c,e,d,f,h=this.inside,k=this.width,l=this.height;switch(this.position){case "bottom":c=0;e=k;h?(d=0,f=l):(d=l,f=l+1E3);break;case "top":c=0;e=k;h?(d=0,f=l):(d=-1E3,f=0);break;
|
56 |
+
case "left":d=0;f=l;h?(c=0,e=k):(c=-1E3,e=0);break;case "right":d=0,f=l,h?(c=0,e=k):(c=k,e=k+1E3)}a.drop||(a.pointerOrientation=b);a.setBounds(c,d,e,f)}}})})();(function(){var d=window.AmCharts;d.ValueAxis=d.Class({inherits:d.AxisBase,construct:function(a){this.cname="ValueAxis";this.createEvents("axisChanged","logarithmicAxisFailed","axisZoomed","axisIntZoomed");d.ValueAxis.base.construct.call(this,a);this.dataChanged=!0;this.stackType="none";this.position="left";this.unitPosition="right";this.includeAllValues=this.recalculateToPercents=this.includeHidden=this.includeGuidesInMinMax=this.integersOnly=!1;this.durationUnits={DD:"d. ",hh:":",mm:":",ss:""};
|
57 |
+
this.scrollbar=!1;this.baseValue=0;this.radarCategoriesEnabled=!0;this.axisFrequency=1;this.gridType="polygons";this.useScientificNotation=!1;this.axisTitleOffset=10;this.pointPosition="axis";this.minMaxMultiplier=1;this.logGridLimit=2;this.totalTextOffset=this.treatZeroAs=0;this.minPeriod="ss";this.relativeStart=0;this.relativeEnd=1;d.applyTheme(this,a,this.cname)},updateData:function(){0>=this.gridCountR&&(this.gridCountR=1);this.totals=[];this.data=this.chart.chartData;var a=this.chart;"xy"!=a.type&&
|
58 |
+
(this.stackGraphs("smoothedLine"),this.stackGraphs("line"),this.stackGraphs("column"),this.stackGraphs("step"));this.recalculateToPercents&&this.recalculate();if(this.synchronizationMultiplier&&this.synchronizeWith)d.isString(this.synchronizeWith)&&(this.synchronizeWith=a.getValueAxisById(this.synchronizeWith)),this.synchronizeWith&&(this.synchronizeWithAxis(this.synchronizeWith),this.foundGraphs=!0);else if(this.foundGraphs=!1,this.getMinMax(),0===this.start&&this.end==this.data.length-1&&isNaN(this.minZoom)&&
|
59 |
+
isNaN(this.maxZoom)||isNaN(this.fullMin)&&isNaN(this.fullMax))this.fullMin=this.min,this.fullMax=this.max,"date"!=this.type&&this.strictMinMax&&(isNaN(this.minimum)||(this.fullMin=this.minimum),isNaN(this.maximum)||(this.fullMax=this.maximum)),this.logarithmic&&(this.fullMin=this.logMin,0===this.fullMin&&(this.fullMin=this.treatZeroAs)),"date"==this.type&&(this.minimumDate||(this.fullMin=this.minRR),this.maximumDate||(this.fullMax=this.maxRR),this.strictMinMax&&(this.minimumDate&&(this.fullMin=this.minimumDate.getTime()),
|
60 |
+
this.maximumDate&&(this.fullMax=this.maximumDate.getTime())))},draw:function(){d.ValueAxis.base.draw.call(this);var a=this.chart,b=this.set;this.labelRotationR=this.labelRotation;d.setCN(a,this.set,"value-axis value-axis-"+this.id);d.setCN(a,this.labelsSet,"value-axis value-axis-"+this.id);d.setCN(a,this.axisLine.axisSet,"value-axis value-axis-"+this.id);var c=this.type;"duration"==c&&(this.duration="ss");!0===this.dataChanged&&(this.updateData(),this.dataChanged=!1);"date"==c&&(this.logarithmic=
|
61 |
+
!1,this.min=this.minRR,this.max=this.maxRR,this.reversed=!1,this.getDateMinMax());if(this.logarithmic){var e=this.treatZeroAs,g=this.getExtremes(0,this.data.length-1).min;!isNaN(this.minimum)&&this.minimum<g&&(g=this.minimum);this.logMin=g;this.minReal<g&&(this.minReal=g);isNaN(this.minReal)&&(this.minReal=g);0<e&&0===g&&(this.minReal=g=e);if(0>=g||0>=this.minimum){this.fire({type:"logarithmicAxisFailed",chart:a});return}}this.grid0=null;var f,h,k=a.dx,l=a.dy,e=!1,g=this.logarithmic;if(isNaN(this.min)||
|
62 |
+
isNaN(this.max)||!this.foundGraphs||Infinity==this.min||-Infinity==this.max)e=!0;else{"date"==this.type&&this.min==this.max&&(this.max+=this.minDuration(),this.min-=this.minDuration());var m=this.labelFrequency,n=this.showFirstLabel,q=this.showLastLabel,p=1,t=0;this.minCalc=this.min;this.maxCalc=this.max;if(this.strictMinMax&&(isNaN(this.minimum)||(this.min=this.minimum),isNaN(this.maximum)||(this.max=this.maximum),this.min==this.max))return;isNaN(this.minZoom)||(this.minReal=this.min=this.minZoom);
|
63 |
+
isNaN(this.maxZoom)||(this.max=this.maxZoom);if(this.logarithmic){h=this.fullMin;var r=this.fullMax;isNaN(this.minimum)||(h=this.minimum);isNaN(this.maximum)||(r=this.maximum);var r=Math.log(r)*Math.LOG10E-Math.log(h)*Math.LOG10E,w=Math.log(this.max)/Math.LN10-Math.log(h)*Math.LOG10E;this.relativeStart=d.roundTo((Math.log(this.minReal)/Math.LN10-Math.log(h)*Math.LOG10E)/r,5);this.relativeEnd=d.roundTo(w/r,5)}else this.relativeStart=d.roundTo(d.fitToBounds((this.min-this.fullMin)/(this.fullMax-this.fullMin),
|
64 |
+
0,1),5),this.relativeEnd=d.roundTo(d.fitToBounds((this.max-this.fullMin)/(this.fullMax-this.fullMin),0,1),5);var r=Math.round((this.maxCalc-this.minCalc)/this.step)+1,z;!0===g?(z=Math.log(this.max)*Math.LOG10E-Math.log(this.minReal)*Math.LOG10E,this.stepWidth=this.axisWidth/z,z>this.logGridLimit&&(r=Math.ceil(Math.log(this.max)*Math.LOG10E)+1,t=Math.round(Math.log(this.minReal)*Math.LOG10E),r>this.gridCountR&&(p=Math.ceil(r/this.gridCountR)))):this.stepWidth=this.axisWidth/(this.max-this.min);var x=
|
65 |
+
0;1>this.step&&-1<this.step&&(x=d.getDecimals(this.step));this.integersOnly&&(x=0);x>this.maxDecCount&&(x=this.maxDecCount);w=this.precision;isNaN(w)||(x=w);isNaN(this.maxZoom)&&(this.max=d.roundTo(this.max,this.maxDecCount),this.min=d.roundTo(this.min,this.maxDecCount));h={};h.precision=x;h.decimalSeparator=a.nf.decimalSeparator;h.thousandsSeparator=a.nf.thousandsSeparator;this.numberFormatter=h;var u;this.exponential=!1;for(h=t;h<r;h+=p){var A=d.roundTo(this.step*h+this.min,x);-1!=String(A).indexOf("e")&&
|
66 |
+
(this.exponential=!0)}this.duration&&(this.maxInterval=d.getMaxInterval(this.max,this.duration));var x=this.step,y,A=this.minorGridAlpha;this.minorGridEnabled&&(y=this.getMinorGridStep(x,this.stepWidth*x));if(this.autoGridCount||0!==this.gridCount)if("date"==c)this.generateDFObject(),this.timeDifference=this.max-this.min,this.maxTime=this.lastTime=this.max,this.startTime=this.firstTime=this.min,this.parseDatesDraw();else for(r>=this.autoRotateCount&&!isNaN(this.autoRotateAngle)&&(this.labelRotationR=
|
67 |
+
this.autoRotateAngle),c=this.minCalc,g&&(r++,c=this.maxCalc-r*x),this.gridCountReal=r,h=this.startCount=t;h<r;h+=p)if(t=x*h+c,t=d.roundTo(t,this.maxDecCount+1),!this.integersOnly||Math.round(t)==t)if(isNaN(w)||Number(d.toFixed(t,w))==t){if(!0===g)if(z>this.logGridLimit){if(t=Math.pow(10,h),t>this.max)continue}else if(0>=t&&(t=c+x*h+x/2,0>=t))continue;u=this.formatValue(t,!1,h);Math.round(h/m)!=h/m&&(u=void 0);if(0===h&&!n||h==r-1&&!q)u=" ";f=this.getCoordinate(t);var B;this.rotate&&this.autoWrap&&
|
68 |
+
(B=this.stepWidth*x-10);u=new this.axisItemRenderer(this,f,u,void 0,B,void 0,void 0,this.boldLabels);this.pushAxisItem(u);if(t==this.baseValue&&"radar"!=a.type){var D,C,I=this.width,H=this.height;"H"==this.orientation?0<=f&&f<=I+1&&(D=[f,f,f+k],C=[H,0,l]):0<=f&&f<=H+1&&(D=[0,I,I+k],C=[f,f,f+l]);D&&(f=d.fitToBounds(2*this.gridAlpha,0,1),isNaN(this.zeroGridAlpha)||(f=this.zeroGridAlpha),f=d.line(a.container,D,C,this.gridColor,f,1,this.dashLength),f.translate(this.x,this.y),this.grid0=f,a.axesSet.push(f),
|
69 |
+
f.toBack(),d.setCN(a,f,this.bcn+"zero-grid-"+this.id),d.setCN(a,f,this.bcn+"zero-grid"))}if(!isNaN(y)&&0<A&&h<r-1){f=x/y;g&&(y=x*(h+p)+this.minCalc,y=d.roundTo(y,this.maxDecCount+1),z>this.logGridLimit&&(y=Math.pow(10,h+p)),f=9,y=(y-t)/f);I=this.gridAlpha;this.gridAlpha=this.minorGridAlpha;for(H=1;H<f;H++){var Q=this.getCoordinate(t+y*H),Q=new this.axisItemRenderer(this,Q,"",!1,0,0,!1,!1,0,!0);this.pushAxisItem(Q)}this.gridAlpha=I}}z=this.guides;B=z.length;if(0<B){D=this.fillAlpha;for(h=this.fillAlpha=
|
70 |
+
0;h<B;h++)C=z[h],k=NaN,y=C.above,isNaN(C.toValue)||(k=this.getCoordinate(C.toValue),u=new this.axisItemRenderer(this,k,"",!0,NaN,NaN,C),this.pushAxisItem(u,y)),l=NaN,isNaN(C.value)||(l=this.getCoordinate(C.value),u=new this.axisItemRenderer(this,l,C.label,!0,NaN,(k-l)/2,C),this.pushAxisItem(u,y)),isNaN(k)&&(l-=3,k=l+3),u&&(m=u.label)&&this.addEventListeners(m,C),isNaN(k-l)||0>l&&0>k||(k=new this.guideFillRenderer(this,l,k,C),this.pushAxisItem(k,y),y=k.graphics(),C.graphics=y,this.addEventListeners(y,
|
71 |
+
C));this.fillAlpha=D}u=this.baseValue;this.min>this.baseValue&&this.max>this.baseValue&&(u=this.min);this.min<this.baseValue&&this.max<this.baseValue&&(u=this.max);g&&u<this.minReal&&(u=this.minReal);this.baseCoord=this.getCoordinate(u,!0);u={type:"axisChanged",target:this,chart:a};u.min=g?this.minReal:this.min;u.max=this.max;this.fire(u);this.axisCreated=!0}g=this.axisLine.set;u=this.labelsSet;b.translate(this.x,this.y);u.translate(this.x,this.y);this.positionTitle();"radar"!=a.type&&g.toFront();
|
72 |
+
!this.visible||e?(b.hide(),g.hide(),u.hide()):(b.show(),g.show(),u.show());this.axisY=this.y;this.axisX=this.x},getDateMinMax:function(){this.minimumDate&&(this.minimumDate instanceof Date||(this.minimumDate=d.getDate(this.minimumDate,this.chart.dataDateFormat,"fff")),this.min=this.minimumDate.getTime());this.maximumDate&&(this.maximumDate instanceof Date||(this.maximumDate=d.getDate(this.maximumDate,this.chart.dataDateFormat,"fff")),this.max=this.maximumDate.getTime())},formatValue:function(a,b,
|
73 |
+
c){var e=this.exponential,g=this.logarithmic,f=this.numberFormatter,h=this.chart;if(f)return!0===this.logarithmic&&(e=-1!=String(a).indexOf("e")?!0:!1),this.useScientificNotation&&(e=!0),this.usePrefixes&&(e=!1),e?(c=-1==String(a).indexOf("e")?a.toExponential(15):String(a),e=c.split("e"),c=Number(e[0]),e=Number(e[1]),c=d.roundTo(c,14),b||isNaN(this.precision)||(c=d.roundTo(c,this.precision)),10==c&&(c=1,e+=1),c=c+"e"+e,0===a&&(c="0"),1==a&&(c="1")):(g&&(e=String(a).split("."),e[1]?(f.precision=e[1].length,
|
74 |
+
0>c&&(f.precision=Math.abs(c)),b&&1<a&&(f.precision=0),b||isNaN(this.precision)||(f.precision=this.precision)):f.precision=-1),c=this.usePrefixes?d.addPrefix(a,h.prefixesOfBigNumbers,h.prefixesOfSmallNumbers,f,!b):d.formatNumber(a,f,f.precision)),this.duration&&(b&&(f.precision=0),c=d.formatDuration(a,this.duration,"",this.durationUnits,this.maxInterval,f)),"date"==this.type&&(c=d.formatDate(new Date(a),this.currentDateFormat,h)),this.recalculateToPercents?c+="%":(b=this.unit)&&(c="left"==this.unitPosition?
|
75 |
+
b+c:c+b),this.labelFunction&&(c="date"==this.type?this.labelFunction(c,new Date(a),this).toString():this.labelFunction(a,c,this).toString()),c},getMinorGridStep:function(a,b){var c=[5,4,2];60>b&&c.shift();for(var e=Math.floor(Math.log(Math.abs(a))*Math.LOG10E),d=0;d<c.length;d++){var f=a/c[d],h=Math.floor(Math.log(Math.abs(f))*Math.LOG10E);if(!(1<Math.abs(e-h)))if(1>a){if(h=Math.pow(10,-h)*f,h==Math.round(h))return f}else if(f==Math.round(f))return f}return 1},stackGraphs:function(a){var b=this.stackType;
|
76 |
+
"stacked"==b&&(b="regular");"line"==b&&(b="none");"100% stacked"==b&&(b="100%");this.stackType=b;var c=[],e=[],g=[],f=[],h,k=this.chart.graphs,l,m,n,q,p,t=this.baseValue,r=!1;if("line"==a||"step"==a||"smoothedLine"==a)r=!0;if(r&&("regular"==b||"100%"==b))for(q=0;q<k.length;q++)n=k[q],n.stackGraph=null,n.hidden||(m=n.type,n.chart==this.chart&&n.valueAxis==this&&a==m&&n.stackable&&(l&&(n.stackGraph=l),l=n));n=this.start-10;l=this.end+10;q=this.data.length-1;n=d.fitToBounds(n,0,q);l=d.fitToBounds(l,
|
77 |
+
0,q);for(p=n;p<=l;p++){var w=0;for(q=0;q<k.length;q++)if(n=k[q],n.hidden)n.newStack&&(g[p]=NaN,e[p]=NaN);else if(m=n.type,n.chart==this.chart&&n.valueAxis==this&&a==m&&n.stackable)if(m=this.data[p].axes[this.id].graphs[n.id],h=m.values.value,isNaN(h))n.newStack&&(g[p]=NaN,e[p]=NaN);else{var z=d.getDecimals(h);w<z&&(w=z);isNaN(f[p])?f[p]=Math.abs(h):f[p]+=Math.abs(h);f[p]=d.roundTo(f[p],w);z=n.fillToGraph;r&&z&&(z=this.data[p].axes[this.id].graphs[z.id])&&(m.values.open=z.values.value);"regular"==
|
78 |
+
b&&(r&&(isNaN(c[p])?(c[p]=h,m.values.close=h,m.values.open=this.baseValue):(isNaN(h)?m.values.close=c[p]:m.values.close=h+c[p],m.values.open=c[p],c[p]=m.values.close)),"column"==a&&(n.newStack&&(g[p]=NaN,e[p]=NaN),m.values.close=h,0>h?(m.values.close=h,isNaN(e[p])?m.values.open=t:(m.values.close+=e[p],m.values.open=e[p]),e[p]=m.values.close):(m.values.close=h,isNaN(g[p])?m.values.open=t:(m.values.close+=g[p],m.values.open=g[p]),g[p]=m.values.close)))}}for(p=this.start;p<=this.end;p++)for(q=0;q<k.length;q++)(n=
|
79 |
+
k[q],n.hidden)?n.newStack&&(g[p]=NaN,e[p]=NaN):(m=n.type,n.chart==this.chart&&n.valueAxis==this&&a==m&&n.stackable&&(m=this.data[p].axes[this.id].graphs[n.id],h=m.values.value,isNaN(h)||(c=h/f[p]*100,m.values.percents=c,m.values.total=f[p],n.newStack&&(g[p]=NaN,e[p]=NaN),"100%"==b&&(isNaN(e[p])&&(e[p]=0),isNaN(g[p])&&(g[p]=0),0>c?(m.values.close=d.fitToBounds(c+e[p],-100,100),m.values.open=e[p],e[p]=m.values.close):(m.values.close=d.fitToBounds(c+g[p],-100,100),m.values.open=g[p],g[p]=m.values.close)))))},
|
80 |
+
recalculate:function(){var a=this.chart,b=a.graphs,c;for(c=0;c<b.length;c++){var e=b[c];if(e.valueAxis==this){var g="value";if("candlestick"==e.type||"ohlc"==e.type)g="open";var f,h,k=this.end+2,k=d.fitToBounds(this.end+1,0,this.data.length-1),l=this.start;0<l&&l--;var m;h=this.start;e.compareFromStart&&(h=0);if(!isNaN(a.startTime)&&(m=a.categoryAxis)){var n=m.minDuration(),n=new Date(a.startTime+n/2),q=d.resetDateToMin(new Date(a.startTime),m.minPeriod).getTime();d.resetDateToMin(new Date(n),m.minPeriod).getTime()>
|
81 |
+
q&&h++}if(m=a.recalculateFromDate)m=d.getDate(m,a.dataDateFormat,"fff"),h=a.getClosestIndex(a.chartData,"time",m.getTime(),!0,0,a.chartData.length),k=a.chartData.length-1;for(m=h;m<=k&&(h=this.data[m].axes[this.id].graphs[e.id],f=h.values[g],e.recalculateValue&&(f=h.dataContext[e.valueField+e.recalculateValue]),isNaN(f));m++);this.recBaseValue=f;for(g=l;g<=k;g++){h=this.data[g].axes[this.id].graphs[e.id];h.percents={};var l=h.values,p;for(p in l)h.percents[p]="percents"!=p?l[p]/f*100-100:l[p]}}}},
|
82 |
+
getMinMax:function(){var a=!1,b=this.chart,c=b.graphs,e;for(e=0;e<c.length;e++){var g=c[e].type;("line"==g||"step"==g||"smoothedLine"==g)&&this.expandMinMax&&(a=!0)}a&&(0<this.start&&this.start--,this.end<this.data.length-1&&this.end++);"serial"==b.type&&(!0!==b.categoryAxis.parseDates||a||this.end<this.data.length-1&&this.end++);this.includeAllValues&&(this.start=0,this.end=this.data.length-1);a=this.minMaxMultiplier;b=this.getExtremes(this.start,this.end);this.min=b.min;this.max=b.max;this.minRR=
|
83 |
+
this.min;this.maxRR=this.max;a=(this.max-this.min)*(a-1);this.min-=a;this.max+=a;a=this.guides.length;if(this.includeGuidesInMinMax&&0<a)for(b=0;b<a;b++)c=this.guides[b],c.toValue<this.min&&(this.min=c.toValue),c.value<this.min&&(this.min=c.value),c.toValue>this.max&&(this.max=c.toValue),c.value>this.max&&(this.max=c.value);isNaN(this.minimum)||(this.min=this.minimum);isNaN(this.maximum)||(this.max=this.maximum);"date"==this.type&&this.getDateMinMax();this.min>this.max&&(a=this.max,this.max=this.min,
|
84 |
+
this.min=a);isNaN(this.minZoom)||(this.min=this.minZoom);isNaN(this.maxZoom)||(this.max=this.maxZoom);this.minCalc=this.min;this.maxCalc=this.max;this.minReal=this.min;this.maxReal=this.max;0===this.min&&0===this.max&&(this.max=9);this.min>this.max&&(this.min=this.max-1);a=this.min;b=this.max;c=this.max-this.min;e=0===c?Math.pow(10,Math.floor(Math.log(Math.abs(this.max))*Math.LOG10E))/10:Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E))/10;isNaN(this.maximum)&&(this.max=Math.ceil(this.max/
|
85 |
+
e)*e+e);isNaN(this.minimum)&&(this.min=Math.floor(this.min/e)*e-e);0>this.min&&0<=a&&(this.min=0);0<this.max&&0>=b&&(this.max=0);"100%"==this.stackType&&(this.min=0>this.min?-100:0,this.max=0>this.max?0:100);c=this.max-this.min;e=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E))/10;this.step=Math.ceil(c/this.gridCountR/e)*e;c=Math.pow(10,Math.floor(Math.log(Math.abs(this.step))*Math.LOG10E));c=d.fixStepE(c);e=Math.ceil(this.step/c);5<e&&(e=10);5>=e&&2<e&&(e=5);this.step=Math.ceil(this.step/
|
86 |
+
(c*e))*c*e;isNaN(this.setStep)||(this.step=this.setStep);1>c?(this.maxDecCount=Math.abs(Math.log(Math.abs(c))*Math.LOG10E),this.maxDecCount=Math.round(this.maxDecCount),this.step=d.roundTo(this.step,this.maxDecCount+1)):this.maxDecCount=0;this.min=this.step*Math.floor(this.min/this.step);this.max=this.step*Math.ceil(this.max/this.step);0>this.min&&0<=a&&(this.min=0);0<this.max&&0>=b&&(this.max=0);1<this.minReal&&1<this.max-this.minReal&&(this.minReal=Math.floor(this.minReal));c=Math.pow(10,Math.floor(Math.log(Math.abs(this.minReal))*
|
87 |
+
Math.LOG10E));0===this.min&&(this.minReal=c);0===this.min&&1<this.minReal&&(this.minReal=1);0<this.min&&0<this.minReal-this.step&&(this.minReal=this.min+this.step<this.minReal?this.min+this.step:this.min);this.logarithmic&&(2<Math.log(b)*Math.LOG10E-Math.log(a)*Math.LOG10E?(this.minReal=this.min=Math.pow(10,Math.floor(Math.log(Math.abs(a))*Math.LOG10E)),this.maxReal=this.max=Math.pow(10,Math.ceil(Math.log(Math.abs(b))*Math.LOG10E))):(a=Math.pow(10,Math.floor(Math.log(Math.abs(a))*Math.LOG10E))/10,
|
88 |
+
Math.pow(10,Math.floor(Math.log(Math.abs(this.min))*Math.LOG10E))/10<a&&(this.minReal=this.min=10*a)))},getExtremes:function(a,b){var c,e,d;for(d=a;d<=b;d++){var f=this.data[d].axes[this.id].graphs,h;for(h in f)if(f.hasOwnProperty(h)){var k=this.chart.graphsById[h];if(k.includeInMinMax&&(!k.hidden||this.includeHidden)){isNaN(c)&&(c=Infinity);isNaN(e)&&(e=-Infinity);this.foundGraphs=!0;k=f[h].values;this.recalculateToPercents&&(k=f[h].percents);var l;if(this.minMaxField)l=k[this.minMaxField],l<c&&
|
89 |
+
(c=l),l>e&&(e=l);else for(var m in k)k.hasOwnProperty(m)&&"percents"!=m&&"total"!=m&&"error"!=m&&(l=k[m],l<c&&(c=l),l>e&&(e=l))}}}return{min:c,max:e}},zoomOut:function(a){this.maxZoom=this.minZoom=NaN;this.zoomToRelativeValues(0,1,a)},zoomToRelativeValues:function(a,b,c){if(this.reversed){var e=a;a=1-b;b=1-e}var d=this.fullMax,e=this.fullMin,f=e+(d-e)*a,h=e+(d-e)*b;0<=this.minimum&&0>f&&(f=0);this.logarithmic&&(isNaN(this.minimum)||(e=this.minimum),isNaN(this.maximum)||(d=this.maximum),d=Math.log(d)*
|
90 |
+
Math.LOG10E-Math.log(e)*Math.LOG10E,f=Math.pow(10,d*a+Math.log(e)*Math.LOG10E),h=Math.pow(10,d*b+Math.log(e)*Math.LOG10E));return this.zoomToValues(f,h,c)},zoomToValues:function(a,b,c){if(b<a){var e=b;b=a;a=e}var g=this.fullMax,e=this.fullMin;this.relativeStart=d.roundTo((a-e)/(g-e),9);this.relativeEnd=d.roundTo((b-e)/(g-e),9);if(this.logarithmic){isNaN(this.minimum)||(e=this.minimum);isNaN(this.maximum)||(g=this.maximum);var g=Math.log(g)*Math.LOG10E-Math.log(e)*Math.LOG10E,f=Math.log(b)/Math.LN10-
|
91 |
+
Math.log(e)*Math.LOG10E;this.relativeStart=d.roundTo((Math.log(a)/Math.LN10-Math.log(e)*Math.LOG10E)/g,9);this.relativeEnd=d.roundTo(f/g,9)}if(this.minZoom!=a||this.maxZoom!=b)return this.minZoom=a,this.maxZoom=b,e={type:"axisZoomed"},e.chart=this.chart,e.valueAxis=this,e.startValue=a,e.endValue=b,e.relativeStart=this.relativeStart,e.relativeEnd=this.relativeEnd,this.prevStartValue==a&&this.prevEndValue==b||this.fire(e),this.prevStartValue=a,this.prevEndValue=b,c||(a={},d.copyProperties(e,a),a.type=
|
92 |
+
"axisIntZoomed",this.fire(a)),0===this.relativeStart&&1==this.relativeEnd&&(this.maxZoom=this.minZoom=NaN),!0},coordinateToValue:function(a){if(isNaN(a))return NaN;var b=this.axisWidth,c=this.stepWidth,e=this.reversed,d=this.rotate,f=this.min,h=this.minReal;return!0===this.logarithmic?Math.pow(10,(d?!0===e?(b-a)/c:a/c:!0===e?a/c:(b-a)/c)+Math.log(h)*Math.LOG10E):!0===e?d?f-(a-b)/c:a/c+f:d?a/c+f:f-(a-b)/c},getCoordinate:function(a,b){if(isNaN(a))return NaN;var c=this.rotate,e=this.reversed,d=this.axisWidth,
|
93 |
+
f=this.stepWidth,h=this.min,k=this.minReal;!0===this.logarithmic?(0===a&&(a=this.treatZeroAs),h=Math.log(a)*Math.LOG10E-Math.log(k)*Math.LOG10E,c=c?!0===e?d-f*h:f*h:!0===e?f*h:d-f*h):c=!0===e?c?d-f*(a-h):f*(a-h):c?f*(a-h):d-f*(a-h);1E7<Math.abs(c)&&(c=c/Math.abs(c)*1E7);b||(c=Math.round(c));return c},synchronizeWithAxis:function(a){this.synchronizeWith=a;this.listenTo(this.synchronizeWith,"axisChanged",this.handleSynchronization)},handleSynchronization:function(){if(this.synchronizeWith){d.isString(this.synchronizeWith)&&
|
94 |
+
(this.synchronizeWith=this.chart.getValueAxisById(this.synchronizeWith));var a=this.synchronizeWith,b=a.min,c=a.max,a=a.step,e=this.synchronizationMultiplier;e&&(this.min=b*e,this.max=c*e,this.step=a*e,b=Math.abs(Math.log(Math.abs(Math.pow(10,Math.floor(Math.log(Math.abs(this.step))*Math.LOG10E))))*Math.LOG10E),this.maxDecCount=b=Math.round(b),this.draw())}}})})();(function(){var d=window.AmCharts;d.RecAxis=d.Class({construct:function(a){var b=a.chart,c=a.axisThickness,e=a.axisColor,g=a.axisAlpha,f=a.offset,h=a.dx,k=a.dy,l=a.x,m=a.y,n=a.height,q=a.width,p=b.container;"H"==a.orientation?(e=d.line(p,[0,q],[0,0],e,g,c),this.axisWidth=a.width,"bottom"==a.position?(k=c/2+f+n+m-1,c=l):(k=-c/2-f+m+k,c=h+l)):(this.axisWidth=a.height,"right"==a.position?(e=d.line(p,[0,0,-h],[0,n,n-k],e,g,c),k=m+k,c=c/2+f+h+q+l-1):(e=d.line(p,[0,0],[0,n],e,g,c),k=m,c=-c/2-f+l));e.translate(c,
|
95 |
+
k);c=b.container.set();c.push(e);b.axesSet.push(c);d.setCN(b,e,a.bcn+"line");this.axisSet=c;this.set=e}})})();(function(){var d=window.AmCharts;d.RecItem=d.Class({construct:function(a,b,c,e,g,f,h,k,l,m,n,q){b=Math.round(b);var p=a.chart;this.value=c;void 0==c&&(c="");l||(l=0);void 0==e&&(e=!0);var t=p.fontFamily,r=a.fontSize;void 0==r&&(r=p.fontSize);var w=a.color;void 0==w&&(w=p.color);void 0!==n&&(w=n);var z=a.chart.container,x=z.set();this.set=x;var u=a.axisThickness,A=a.axisColor,y=a.axisAlpha,B=a.tickLength,D=a.gridAlpha,C=a.gridThickness,I=a.gridColor,H=a.dashLength,Q=a.fillColor,M=a.fillAlpha,P=a.labelsEnabled;
|
96 |
+
n=a.labelRotationR;var ia=a.counter,J=a.inside,aa=a.labelOffset,ma=a.dx,na=a.dy,Pa=a.orientation,Z=a.position,da=a.previousCoord,X=a.height,xa=a.width,ea=a.offset,fa,Ba;h?(void 0!==h.id&&(q=p.classNamePrefix+"-guide-"+h.id),P=!0,isNaN(h.tickLength)||(B=h.tickLength),void 0!=h.lineColor&&(I=h.lineColor),void 0!=h.color&&(w=h.color),isNaN(h.lineAlpha)||(D=h.lineAlpha),isNaN(h.dashLength)||(H=h.dashLength),isNaN(h.lineThickness)||(C=h.lineThickness),!0===h.inside&&(J=!0,0<ea&&(ea=0)),isNaN(h.labelRotation)||
|
97 |
+
(n=h.labelRotation),isNaN(h.fontSize)||(r=h.fontSize),h.position&&(Z=h.position),void 0!==h.boldLabel&&(k=h.boldLabel),isNaN(h.labelOffset)||(aa=h.labelOffset)):""===c&&(B=0);m&&!isNaN(a.minorTickLength)&&(B=a.minorTickLength);var ga="start";0<g&&(ga="middle");a.centerLabels&&(ga="middle");var V=n*Math.PI/180,Y,Da,G=0,v=0,oa=0,ha=Y=0,Qa=0;"V"==Pa&&(n=0);var ca;P&&""!==c&&(ca=a.autoWrap&&0===n?d.wrappedText(z,c,w,t,r,ga,k,Math.abs(g),0):d.text(z,c,w,t,r,ga,k),ga=ca.getBBox(),ha=ga.width,Qa=ga.height);
|
98 |
+
if("H"==Pa){if(0<=b&&b<=xa+1&&(0<B&&0<y&&b+l<=xa+1&&(fa=d.line(z,[b+l,b+l],[0,B],A,y,C),x.push(fa)),0<D&&(Ba=d.line(z,[b,b+ma,b+ma],[X,X+na,na],I,D,C,H),x.push(Ba))),v=0,G=b,h&&90==n&&J&&(G-=r),!1===e?(ga="start",v="bottom"==Z?J?v+B:v-B:J?v-B:v+B,G+=3,0<g&&(G+=g/2-3,ga="middle"),0<n&&(ga="middle")):ga="middle",1==ia&&0<M&&!h&&!m&&da<xa&&(e=d.fitToBounds(b,0,xa),da=d.fitToBounds(da,0,xa),Y=e-da,0<Y&&(Da=d.rect(z,Y,a.height,Q,M),Da.translate(e-Y+ma,na),x.push(Da))),"bottom"==Z?(v+=X+r/2+ea,J?(0<n?(v=
|
99 |
+
X-ha/2*Math.sin(V)-B-3,a.centerRotatedLabels||(G+=ha/2*Math.cos(V)-4+2)):0>n?(v=X+ha*Math.sin(V)-B-3+2,G+=-ha*Math.cos(V)-Qa*Math.sin(V)-4):v-=B+r+3+3,v-=aa):(0<n?(v=X+ha/2*Math.sin(V)+B+3,a.centerRotatedLabels||(G-=ha/2*Math.cos(V))):0>n?(v=X+B+3-ha/2*Math.sin(V)+2,G+=ha/2*Math.cos(V)):v+=B+u+3+3,v+=aa)):(v+=na+r/2-ea,G+=ma,J?(0<n?(v=ha/2*Math.sin(V)+B+3,a.centerRotatedLabels||(G-=ha/2*Math.cos(V))):v+=B+3,v+=aa):(0<n?(v=-(ha/2)*Math.sin(V)-B-6,a.centerRotatedLabels||(G+=ha/2*Math.cos(V))):v-=B+
|
100 |
+
r+3+u+3,v-=aa)),"bottom"==Z?Y=(J?X-B-1:X+u-1)+ea:(oa=ma,Y=(J?na:na-B-u+1)-ea),f&&(G+=f),r=G,0<n&&(r+=ha/2*Math.cos(V)),ca&&(f=0,J&&(f=ha/2*Math.cos(V)),r+f>xa+2||0>r))ca.remove(),ca=null}else{0<=b&&b<=X+1&&(0<B&&0<y&&b+l<=X+1&&(fa=d.line(z,[0,B+1],[b+l,b+l],A,y,C),x.push(fa)),0<D&&(Ba=d.line(z,[0,ma,xa+ma],[b,b+na,b+na],I,D,C,H),x.push(Ba)));ga="end";if(!0===J&&"left"==Z||!1===J&&"right"==Z)ga="start";v=b-Qa/2+2;1==ia&&0<M&&!h&&!m&&(e=d.fitToBounds(b,0,X),da=d.fitToBounds(da,0,X),V=e-da,Da=d.polygon(z,
|
101 |
+
[0,a.width,a.width,0],[0,0,V,V],Q,M),Da.translate(ma,e-V+na),x.push(Da));v+=r/2;"right"==Z?(G+=ma+xa+ea,v+=na,J?(f||(v-=r/2+3),G=G-(B+4)-aa):(G+=B+4+u,v-=2,G+=aa)):J?(G+=B+4-ea,f||(v-=r/2+3),h&&(G+=ma,v+=na),G+=aa):(G+=-B-u-4-2-ea,v-=2,G-=aa);fa&&("right"==Z?(oa+=ma+ea+xa-1,Y+=na,oa=J?oa-u:oa+u):(oa-=ea,J||(oa-=B+u)));f&&(v+=f);J=-3;"right"==Z&&(J+=na);ca&&(v>X+1||v<J-r/10)&&(ca.remove(),ca=null)}fa&&(fa.translate(oa,Y),d.setCN(p,fa,a.bcn+"tick"),d.setCN(p,fa,q,!0),h&&d.setCN(p,fa,"guide"));!1===
|
102 |
+
a.visible&&(fa&&fa.remove(),ca&&(ca.remove(),ca=null));ca&&(ca.attr({"text-anchor":ga}),ca.translate(G,v,NaN,!0),0!==n&&ca.rotate(-n,a.chart.backgroundColor),a.allLabels.push(ca),this.label=ca,d.setCN(p,ca,a.bcn+"label"),d.setCN(p,ca,q,!0),h&&d.setCN(p,ca,"guide"));Ba&&(d.setCN(p,Ba,a.bcn+"grid"),d.setCN(p,Ba,q,!0),h&&d.setCN(p,Ba,"guide"));Da&&(d.setCN(p,Da,a.bcn+"fill"),d.setCN(p,Da,q,!0));m?Ba&&d.setCN(p,Ba,a.bcn+"grid-minor"):(a.counter=0===ia?1:0,a.previousCoord=b);0===this.set.node.childNodes.length&&
|
103 |
+
this.set.remove()},graphics:function(){return this.set},getLabel:function(){return this.label}})})();(function(){var d=window.AmCharts;d.RecFill=d.Class({construct:function(a,b,c,e){var g=a.dx,f=a.dy,h=a.orientation,k=0;if(c<b){var l=b;b=c;c=l}var m=e.fillAlpha;isNaN(m)&&(m=0);var l=a.chart.container,n=e.fillColor;"V"==h?(b=d.fitToBounds(b,0,a.height),c=d.fitToBounds(c,0,a.height)):(b=d.fitToBounds(b,0,a.width),c=d.fitToBounds(c,0,a.width));c-=b;isNaN(c)&&(c=4,k=2,m=0);0>c&&"object"==typeof n&&(n=n.join(",").split(",").reverse());"V"==h?(h=d.rect(l,a.width,c,n,m),h.translate(g,b-k+f)):(h=d.rect(l,
|
104 |
+
c,a.height,n,m),h.translate(b-k+g,f));d.setCN(a.chart,h,"guide-fill");e.id&&d.setCN(a.chart,h,"guide-fill-"+e.id);this.set=l.set([h])},graphics:function(){return this.set},getLabel:function(){}})})();(function(){var d=window.AmCharts;d.AmChart=d.Class({construct:function(a){this.svgIcons=this.tapToActivate=!0;this.theme=a;this.classNamePrefix="amcharts";this.addClassNames=!1;this.version="3.21.13";d.addChart(this);this.createEvents("buildStarted","dataUpdated","init","rendered","drawn","failed","resized","animationFinished");this.height=this.width="100%";this.dataChanged=!0;this.chartCreated=!1;this.previousWidth=this.previousHeight=0;this.backgroundColor="#FFFFFF";this.borderAlpha=this.backgroundAlpha=
|
105 |
+
0;this.color=this.borderColor="#000000";this.fontFamily="Verdana";this.fontSize=11;this.usePrefixes=!1;this.autoResize=!0;this.autoDisplay=!1;this.addCodeCredits=this.accessible=!0;this.touchStartTime=this.touchClickDuration=0;this.precision=-1;this.percentPrecision=2;this.decimalSeparator=".";this.thousandsSeparator=",";this.labels=[];this.allLabels=[];this.titles=[];this.marginRight=this.marginLeft=this.autoMarginOffset=0;this.timeOuts=[];this.creditsPosition="top-left";var b=document.createElement("div"),
|
106 |
+
c=b.style;c.overflow="hidden";c.position="relative";c.textAlign="left";this.chartDiv=b;b=document.createElement("div");c=b.style;c.overflow="hidden";c.position="relative";c.textAlign="left";this.legendDiv=b;this.titleHeight=0;this.hideBalloonTime=150;this.handDrawScatter=2;this.cssScale=this.handDrawThickness=1;this.cssAngle=0;this.prefixesOfBigNumbers=[{number:1E3,prefix:"k"},{number:1E6,prefix:"M"},{number:1E9,prefix:"G"},{number:1E12,prefix:"T"},{number:1E15,prefix:"P"},{number:1E18,prefix:"E"},
|
107 |
+
{number:1E21,prefix:"Z"},{number:1E24,prefix:"Y"}];this.prefixesOfSmallNumbers=[{number:1E-24,prefix:"y"},{number:1E-21,prefix:"z"},{number:1E-18,prefix:"a"},{number:1E-15,prefix:"f"},{number:1E-12,prefix:"p"},{number:1E-9,prefix:"n"},{number:1E-6,prefix:"\u03bc"},{number:.001,prefix:"m"}];this.panEventsEnabled=!0;this.product="amcharts";this.animations=[];this.balloon=new d.AmBalloon(this.theme);this.balloon.chart=this;this.processTimeout=0;this.processCount=1E3;this.animatable=[];this.langObj={};
|
108 |
+
d.applyTheme(this,a,"AmChart")},drawChart:function(){0<this.realWidth&&0<this.realHeight&&(this.drawBackground(),this.redrawLabels(),this.drawTitles(),this.brr(),this.renderFix(),this.chartDiv&&(this.boundingRect=this.chartDiv.getBoundingClientRect()))},makeAccessible:function(a,b,c){this.accessible&&a&&(c&&a.setAttr("role",c),a.setAttr("aria-label",b))},drawBackground:function(){d.remove(this.background);var a=this.container,b=this.backgroundColor,c=this.backgroundAlpha,e=this.set;d.isModern||0!==
|
109 |
+
c||(c=.001);var g=this.updateWidth();this.realWidth=g;var f=this.updateHeight();this.realHeight=f;b=d.polygon(a,[0,g-1,g-1,0],[0,0,f-1,f-1],b,c,1,this.borderColor,this.borderAlpha);d.setCN(this,b,"bg");this.background=b;e.push(b);if(b=this.backgroundImage)a=a.image(b,0,0,g,f),d.setCN(this,b,"bg-image"),this.bgImg=a,e.push(a)},drawTitles:function(a){var b=this.titles;this.titleHeight=0;if(d.ifArray(b)){var c=20,e;for(e=0;e<b.length;e++){var g=b[e],g=d.processObject(g,d.Title,this.theme);if(!1!==g.enabled){var f=
|
110 |
+
g.color;void 0===f&&(f=this.color);var h=g.size;isNaN(h)&&(h=this.fontSize+2);isNaN(g.alpha);var k=this.marginLeft,l=!0;void 0!==g.bold&&(l=g.bold);f=d.wrappedText(this.container,g.text,f,this.fontFamily,h,"middle",l,this.realWidth-35-this.marginRight-k);f.translate(k+(this.realWidth-this.marginRight-k)/2,c);f.node.style.pointerEvents="none";g.sprite=f;void 0!==g.tabIndex&&f.setAttr("tabindex",g.tabIndex);d.setCN(this,f,"title");g.id&&d.setCN(this,f,"title-"+g.id);f.attr({opacity:g.alpha});c+=f.getBBox().height+
|
111 |
+
5;a?f.remove():this.freeLabelsSet.push(f)}}this.titleHeight=c-10}},write:function(a){var b=this;if(b.listeners)for(var c=0;c<b.listeners.length;c++){var e=b.listeners[c];b.addListener(e.event,e.method)}b.fire({type:"buildStarted",chart:b});b.afterWriteTO&&clearTimeout(b.afterWriteTO);0<b.processTimeout?b.afterWriteTO=setTimeout(function(){b.afterWrite.call(b,a)},b.processTimeout):b.afterWrite(a)},afterWrite:function(a){var b;if(b="object"!=typeof a?document.getElementById(a):a){for(;b.firstChild;)b.removeChild(b.firstChild);
|
112 |
+
this.div=b;b.style.overflow="hidden";b.style.textAlign="left";a=this.chartDiv;var c=this.legendDiv,e=this.legend,g=c.style,f=a.style;this.measure();this.previousHeight=this.divRealHeight;this.previousWidth=this.divRealWidth;var h,k=document.createElement("div");h=k.style;h.position="relative";this.containerDiv=k;k.className=this.classNamePrefix+"-main-div";a.className=this.classNamePrefix+"-chart-div";b.appendChild(k);(b=this.exportConfig)&&d.AmExport&&!this.AmExport&&(this.AmExport=new d.AmExport(this,
|
113 |
+
b));this.amExport&&d.AmExport&&(this.AmExport=d.extend(this.amExport,new d.AmExport(this),!0));this.AmExport&&this.AmExport.init&&this.AmExport.init();if(e){e=this.addLegend(e,e.divId);if(e.enabled)switch(g.left=null,g.top=null,g.right=null,f.left=null,f.right=null,f.top=null,g.position="relative",f.position="relative",h.width="100%",h.height="100%",e.position){case "bottom":k.appendChild(a);k.appendChild(c);break;case "top":k.appendChild(c);k.appendChild(a);break;case "absolute":g.position="absolute";
|
114 |
+
f.position="absolute";void 0!==e.left&&(g.left=e.left+"px");void 0!==e.right&&(g.right=e.right+"px");void 0!==e.top&&(g.top=e.top+"px");void 0!==e.bottom&&(g.bottom=e.bottom+"px");e.marginLeft=0;e.marginRight=0;k.appendChild(a);k.appendChild(c);break;case "right":g.position="relative";f.position="absolute";k.appendChild(a);k.appendChild(c);break;case "left":g.position="absolute";f.position="relative";k.appendChild(a);k.appendChild(c);break;case "outside":k.appendChild(a)}else k.appendChild(a);this.prevLegendPosition=
|
115 |
+
e.position}else k.appendChild(a);this.listenersAdded||(this.addListeners(),this.listenersAdded=!0);(this.mouseWheelScrollEnabled||this.mouseWheelZoomEnabled)&&d.addWheelListeners();this.initChart()}},createLabelsSet:function(){d.remove(this.labelsSet);this.labelsSet=this.container.set();this.freeLabelsSet.push(this.labelsSet)},initChart:function(){this.balloon=d.processObject(this.balloon,d.AmBalloon,this.theme);window.AmCharts_path&&(this.path=window.AmCharts_path);void 0===this.path&&(this.path=
|
116 |
+
d.getPath());void 0===this.path&&(this.path="amcharts/");this.path=d.normalizeUrl(this.path);void 0===this.pathToImages&&(this.pathToImages=this.path+"images/");this.initHC||(d.callInitHandler(this),this.initHC=!0);d.applyLang(this.language,this);var a=this.numberFormatter;a&&(isNaN(a.precision)||(this.precision=a.precision),void 0!==a.thousandsSeparator&&(this.thousandsSeparator=a.thousandsSeparator),void 0!==a.decimalSeparator&&(this.decimalSeparator=a.decimalSeparator));(a=this.percentFormatter)&&
|
117 |
+
!isNaN(a.precision)&&(this.percentPrecision=a.precision);this.nf={precision:this.precision,thousandsSeparator:this.thousandsSeparator,decimalSeparator:this.decimalSeparator};this.pf={precision:this.percentPrecision,thousandsSeparator:this.thousandsSeparator,decimalSeparator:this.decimalSeparator};this.destroy();(a=this.container)?(a.container.innerHTML="",a.width=this.realWidth,a.height=this.realHeight,a.addDefs(this),this.chartDiv.appendChild(a.container)):a=new d.AmDraw(this.chartDiv,this.realWidth,
|
118 |
+
this.realHeight,this);this.container=a;this.extension=".png";this.svgIcons&&d.SVG&&(this.extension=".svg");this.checkDisplay();this.checkTransform(this.div);a.chart=this;d.VML||d.SVG?(a.handDrawn=this.handDrawn,a.handDrawScatter=this.handDrawScatter,a.handDrawThickness=this.handDrawThickness,d.remove(this.set),this.set=a.set(),d.remove(this.gridSet),this.gridSet=a.set(),d.remove(this.cursorLineSet),this.cursorLineSet=a.set(),d.remove(this.graphsBehindSet),this.graphsBehindSet=a.set(),d.remove(this.bulletBehindSet),
|
119 |
+
this.bulletBehindSet=a.set(),d.remove(this.columnSet),this.columnSet=a.set(),d.remove(this.graphsSet),this.graphsSet=a.set(),d.remove(this.trendLinesSet),this.trendLinesSet=a.set(),d.remove(this.axesSet),this.axesSet=a.set(),d.remove(this.cursorSet),this.cursorSet=a.set(),d.remove(this.scrollbarsSet),this.scrollbarsSet=a.set(),d.remove(this.bulletSet),this.bulletSet=a.set(),d.remove(this.freeLabelsSet),this.freeLabelsSet=a.set(),d.remove(this.axesLabelsSet),this.axesLabelsSet=a.set(),d.remove(this.balloonsSet),
|
120 |
+
this.balloonsSet=a.set(),d.remove(this.plotBalloonsSet),this.plotBalloonsSet=a.set(),d.remove(this.zoomButtonSet),this.zoomButtonSet=a.set(),d.remove(this.zbSet),this.zbSet=null,d.remove(this.linkSet),this.linkSet=a.set()):this.fire({type:"failed",chart:this})},premeasure:function(){var a=this.div;if(a){try{this.boundingRect=this.chartDiv.getBoundingClientRect()}catch(e){}var b=a.offsetWidth,c=a.offsetHeight;a.clientHeight&&(b=a.clientWidth,c=a.clientHeight);if(b!=this.mw||c!=this.mh)this.mw=b,this.mh=
|
121 |
+
c,this.measure()}},measure:function(){var a=this.div;if(a){var b=this.chartDiv,c=a.offsetWidth,e=a.offsetHeight,g=this.container;a.clientHeight&&(c=a.clientWidth,e=a.clientHeight);var e=Math.round(e),c=Math.round(c),a=Math.round(d.toCoordinate(this.width,c)),f=Math.round(d.toCoordinate(this.height,e));(c!=this.previousWidth||e!=this.previousHeight)&&0<a&&0<f&&(b.style.width=a+"px",b.style.height=f+"px",b.style.padding=0,g&&g.setSize(a,f),this.balloon=d.processObject(this.balloon,d.AmBalloon,this.theme));
|
122 |
+
this.balloon&&this.balloon.setBounds&&this.balloon.setBounds(2,2,a-2,f);this.updateWidth();this.balloon.chart=this;this.realWidth=a;this.realHeight=f;this.divRealWidth=c;this.divRealHeight=e}},checkDisplay:function(){if(this.autoDisplay&&this.container){var a=d.rect(this.container,10,10),b=a.getBBox();0===b.width&&0===b.height&&(this.divRealHeight=this.divRealWidth=this.realHeight=this.realWidth=0,this.previousWidth=this.previousHeight=NaN);a.remove()}},checkTransform:function(a){if(this.autoTransform&&
|
123 |
+
window.getComputedStyle&&a){if(a.style){var b=window.getComputedStyle(a,null);if(b&&(b=b.getPropertyValue("-webkit-transform")||b.getPropertyValue("-moz-transform")||b.getPropertyValue("-ms-transform")||b.getPropertyValue("-o-transform")||b.getPropertyValue("transform"))&&"none"!==b){var c=b.split("(")[1].split(")")[0].split(","),b=c[0],c=c[1],b=Math.sqrt(b*b+c*c);isNaN(b)||(this.cssScale*=b)}}a.parentNode&&this.checkTransform(a.parentNode)}},destroy:function(){this.chartDiv.innerHTML="";this.clearTimeOuts();
|
124 |
+
this.legend&&this.legend.destroy()},clearTimeOuts:function(){var a=this.timeOuts;if(a){var b;for(b=0;b<a.length;b++)clearTimeout(a[b])}this.timeOuts=[]},clear:function(a){try{document.removeEventListener("touchstart",this.docfn1,!0),document.removeEventListener("touchend",this.docfn2,!0)}catch(b){}d.callMethod("clear",[this.chartScrollbar,this.scrollbarV,this.scrollbarH,this.chartCursor]);this.chartCursor=this.scrollbarH=this.scrollbarV=this.chartScrollbar=null;this.clearTimeOuts();this.container&&
|
125 |
+
(this.container.remove(this.chartDiv),this.container.remove(this.legendDiv));a||d.removeChart(this);if(a=this.div)for(;a.firstChild;)a.removeChild(a.firstChild);this.legend&&this.legend.destroy();this.AmExport&&this.AmExport.clear&&this.AmExport.clear()},setMouseCursor:function(a){"auto"==a&&d.isNN&&(a="default");this.chartDiv.style.cursor=a;this.legendDiv.style.cursor=a},redrawLabels:function(){this.labels=[];var a=this.allLabels;this.createLabelsSet();var b;for(b=0;b<a.length;b++)this.drawLabel(a[b])},
|
126 |
+
drawLabel:function(a){var b=this;if(b.container&&!1!==a.enabled){a=d.processObject(a,d.Label,b.theme);var c=a.y,e=a.text,g=a.align,f=a.size,h=a.color,k=a.rotation,l=a.alpha,m=a.bold,n=d.toCoordinate(a.x,b.realWidth),c=d.toCoordinate(c,b.realHeight);n||(n=0);c||(c=0);void 0===h&&(h=b.color);isNaN(f)&&(f=b.fontSize);g||(g="start");"left"==g&&(g="start");"right"==g&&(g="end");"center"==g&&(g="middle",k?c=b.realHeight-c+c/2:n=b.realWidth/2-n);void 0===l&&(l=1);void 0===k&&(k=0);c+=f/2;e=d.text(b.container,
|
127 |
+
e,h,b.fontFamily,f,g,m,l);e.translate(n,c);void 0!==a.tabIndex&&e.setAttr("tabindex",a.tabIndex);d.setCN(b,e,"label");a.id&&d.setCN(b,e,"label-"+a.id);0!==k&&e.rotate(k);a.url?(e.setAttr("cursor","pointer"),e.click(function(){d.getURL(a.url,b.urlTarget)})):e.node.style.pointerEvents="none";b.labelsSet.push(e);b.labels.push(e)}},addLabel:function(a,b,c,e,d,f,h,k,l,m){a={x:a,y:b,text:c,align:e,size:d,color:f,alpha:k,rotation:h,bold:l,url:m,enabled:!0};this.container&&this.drawLabel(a);this.allLabels.push(a)},
|
128 |
+
clearLabels:function(){var a=this.labels,b;for(b=a.length-1;0<=b;b--)a[b].remove();this.labels=[];this.allLabels=[]},updateHeight:function(){var a=this.divRealHeight,b=this.legend;if(b){var c=this.legendDiv.offsetHeight,b=b.position;if("top"==b||"bottom"==b){a-=c;if(0>a||isNaN(a))a=0;this.chartDiv.style.height=a+"px"}}return a},updateWidth:function(){var a=this.divRealWidth,b=this.divRealHeight,c=this.legend;if(c){var e=this.legendDiv,d=e.offsetWidth;isNaN(c.width)||(d=c.width);c.ieW&&(d=c.ieW);var f=
|
129 |
+
e.offsetHeight,e=e.style,h=this.chartDiv.style,k=c.position;if(("right"==k||"left"==k)&&void 0===c.divId){a-=d;if(0>a||isNaN(a))a=0;h.width=a+"px";this.balloon&&this.balloon.setBounds&&this.balloon.setBounds(2,2,a-2,this.realHeight);"left"==k?(h.left=d+"px",e.left="0px"):(h.left="0px",e.left=a+"px");b>f&&(e.top=(b-f)/2+"px")}}return a},getTitleHeight:function(){this.drawTitles(!0);return this.titleHeight},addTitle:function(a,b,c,e,d){isNaN(b)&&(b=this.fontSize+2);a={text:a,size:b,color:c,alpha:e,
|
130 |
+
bold:d,enabled:!0};this.titles.push(a);return a},handleWheel:function(a){var b=0;a||(a=window.event);a.wheelDelta?b=a.wheelDelta/120:a.detail&&(b=-a.detail/3);b&&this.handleWheelReal(b,a.shiftKey);a.preventDefault&&a.preventDefault()},handleWheelReal:function(){},handleDocTouchStart:function(){this.handleMouseMove();this.tmx=this.mouseX;this.tmy=this.mouseY;this.touchStartTime=(new Date).getTime()},handleDocTouchEnd:function(){-.5<this.tmx&&this.tmx<this.divRealWidth+1&&0<this.tmy&&this.tmy<this.divRealHeight?
|
131 |
+
(this.handleMouseMove(),4>Math.abs(this.mouseX-this.tmx)&&4>Math.abs(this.mouseY-this.tmy)?(this.tapped=!0,this.panRequired&&this.panEventsEnabled&&this.chartDiv&&(this.chartDiv.style.msTouchAction="none",this.chartDiv.style.touchAction="none")):this.mouseIsOver||this.resetTouchStyle()):(this.tapped=!1,this.resetTouchStyle())},resetTouchStyle:function(){this.panEventsEnabled&&this.chartDiv&&(this.chartDiv.style.msTouchAction="auto",this.chartDiv.style.touchAction="auto")},checkTouchDuration:function(a){var b=
|
132 |
+
this,c=(new Date).getTime();if(a)if(a.touches)b.isTouchEvent=!0;else if(!b.isTouchEvent)return!0;if(c-b.touchStartTime>b.touchClickDuration)return!0;setTimeout(function(){b.resetTouchDuration()},300)},resetTouchDuration:function(){this.isTouchEvent=!1},checkTouchMoved:function(){if(4<Math.abs(this.mouseX-this.tmx)||4<Math.abs(this.mouseY-this.tmy))return!0},addListeners:function(){var a=this,b=a.chartDiv;document.addEventListener?("ontouchstart"in document.documentElement&&(b.addEventListener("touchstart",
|
133 |
+
function(b){a.handleTouchStart.call(a,b)},!0),b.addEventListener("touchmove",function(b){a.handleMouseMove.call(a,b)},!0),b.addEventListener("touchend",function(b){a.handleTouchEnd.call(a,b)},!0),a.docfn1=function(b){a.handleDocTouchStart.call(a,b)},a.docfn2=function(b){a.handleDocTouchEnd.call(a,b)},document.addEventListener("touchstart",a.docfn1,!0),document.addEventListener("touchend",a.docfn2,!0)),b.addEventListener("mousedown",function(b){a.mouseIsOver=!0;a.handleMouseMove.call(a,b);a.handleMouseDown.call(a,
|
134 |
+
b);a.handleDocTouchStart.call(a,b)},!0),b.addEventListener("mouseover",function(b){a.handleMouseOver.call(a,b)},!0),b.addEventListener("mouseout",function(b){a.handleMouseOut.call(a,b)},!0),b.addEventListener("mouseup",function(b){a.handleDocTouchEnd.call(a,b)},!0)):(b.attachEvent("onmousedown",function(b){a.handleMouseDown.call(a,b)}),b.attachEvent("onmouseover",function(b){a.handleMouseOver.call(a,b)}),b.attachEvent("onmouseout",function(b){a.handleMouseOut.call(a,b)}))},dispDUpd:function(){this.skipEvents||
|
135 |
+
(this.dispatchDataUpdated&&(this.dispatchDataUpdated=!1,this.fire({type:"dataUpdated",chart:this})),this.chartCreated||(this.chartCreated=!0,this.fire({type:"init",chart:this})),this.chartRendered||(this.fire({type:"rendered",chart:this}),this.chartRendered=!0),this.fire({type:"drawn",chart:this}));this.skipEvents=!1},validateSize:function(){var a=this;a.premeasure();a.checkDisplay();a.cssScale=1;a.cssAngle=0;a.checkTransform(a.div);if(a.divRealWidth!=a.previousWidth||a.divRealHeight!=a.previousHeight){var b=
|
136 |
+
a.legend;if(0<a.realWidth&&0<a.realHeight){a.sizeChanged=!0;if(b){a.legendInitTO&&clearTimeout(a.legendInitTO);var c=setTimeout(function(){b.invalidateSize()},10);a.timeOuts.push(c);a.legendInitTO=c}a.marginsUpdated=!1;clearTimeout(a.initTO);c=setTimeout(function(){a.initChart()},10);a.timeOuts.push(c);a.initTO=c}a.renderFix();b&&b.renderFix&&b.renderFix();a.positionCred();clearTimeout(a.resizedTO);a.resizedTO=setTimeout(function(){a.fire({type:"resized",chart:a})},10);a.previousHeight=a.divRealHeight;
|
137 |
+
a.previousWidth=a.divRealWidth}},invalidateSize:function(){this.previousHeight=this.previousWidth=NaN;this.invalidateSizeReal()},invalidateSizeReal:function(){var a=this;a.marginsUpdated=!1;clearTimeout(a.validateTO);var b=setTimeout(function(){a.validateSize()},5);a.timeOuts.push(b);a.validateTO=b},validateData:function(a){this.chartCreated&&(this.dataChanged=!0,this.marginsUpdated=!1,this.initChart(a))},validateNow:function(a,b){this.initTO&&clearTimeout(this.initTO);a&&(this.dataChanged=!0,this.marginsUpdated=
|
138 |
+
!1);this.skipEvents=b;this.chartRendered=!1;var c=this.legend;c&&c.position!=this.prevLegendPosition&&(this.previousWidth=this.mw=0,c.invalidateSize&&(c.invalidateSize(),this.validateSize()));this.write(this.div)},showItem:function(a){a.hidden=!1;this.initChart()},hideItem:function(a){a.hidden=!0;this.initChart()},hideBalloon:function(){var a=this;clearTimeout(a.hoverInt);clearTimeout(a.balloonTO);a.hoverInt=setTimeout(function(){a.hideBalloonReal.call(a)},a.hideBalloonTime)},cleanChart:function(){},
|
139 |
+
hideBalloonReal:function(){var a=this.balloon;a&&a.hide&&a.hide()},showBalloon:function(a,b,c,e,d){var f=this;clearTimeout(f.balloonTO);clearTimeout(f.hoverInt);f.balloonTO=setTimeout(function(){f.showBalloonReal.call(f,a,b,c,e,d)},1)},showBalloonReal:function(a,b,c,e,d){this.handleMouseMove();var f=this.balloon;f.enabled&&(f.followCursor(!1),f.changeColor(b),!c||f.fixedPosition?(f.setPosition(e,d),isNaN(e)||isNaN(d)?f.followCursor(!0):f.followCursor(!1)):f.followCursor(!0),a&&f.showBalloon(a))},
|
140 |
+
handleMouseOver:function(){this.outTO&&clearTimeout(this.outTO);d.resetMouseOver();this.mouseIsOver=!0},handleMouseOut:function(){var a=this;d.resetMouseOver();a.outTO&&clearTimeout(a.outTO);a.outTO=setTimeout(function(){a.handleMouseOutReal()},10)},handleMouseOutReal:function(){this.mouseIsOver=!1},handleMouseMove:function(a){a||(a=window.event);this.mouse2Y=this.mouse2X=NaN;var b,c,e,d;if(a){if(a.touches){var f=a.touches.item(1);f&&this.panEventsEnabled&&this.boundingRect&&(e=f.clientX-this.boundingRect.left,
|
141 |
+
d=f.clientY-this.boundingRect.top);a=a.touches.item(0);if(!a)return}else this.wasTouched=!1;this.boundingRect&&a.clientX&&(b=a.clientX-this.boundingRect.left,c=a.clientY-this.boundingRect.top);isNaN(e)?this.mouseX=b:(this.mouseX=Math.min(b,e),this.mouse2X=Math.max(b,e));isNaN(d)?this.mouseY=c:(this.mouseY=Math.min(c,d),this.mouse2Y=Math.max(c,d));this.autoTransform&&(this.mouseX/=this.cssScale,this.mouseY/=this.cssScale)}},handleTouchStart:function(a){this.hideBalloonReal();a&&(a.touches&&this.tapToActivate&&
|
142 |
+
!this.tapped||!this.panRequired)||(this.handleMouseMove(a),this.handleMouseDown(a))},handleTouchEnd:function(a){this.wasTouched=!0;this.handleMouseMove(a);d.resetMouseOver();this.handleReleaseOutside(a)},handleReleaseOutside:function(){this.handleDocTouchEnd.call(this)},handleMouseDown:function(a){d.resetMouseOver();this.mouseIsOver=!0;a&&a.preventDefault&&(this.panEventsEnabled?a.preventDefault():a.touches||a.preventDefault())},addLegend:function(a,b){a=d.processObject(a,d.AmLegend,this.theme);a.divId=
|
143 |
+
b;a.ieW=0;var c;c="object"!=typeof b&&b?document.getElementById(b):b;this.legend=a;a.chart=this;c?(a.div=c,a.position="outside",a.autoMargins=!1):a.div=this.legendDiv;return a},removeLegend:function(){this.legend=void 0;this.previousWidth=0;this.legendDiv.innerHTML=""},handleResize:function(){(d.isPercents(this.width)||d.isPercents(this.height))&&this.invalidateSizeReal();this.renderFix()},renderFix:function(){if(!d.VML){var a=this.container;a&&a.renderFix()}},getSVG:function(){if(d.hasSVG)return this.container},
|
144 |
+
animate:function(a,b,c,e,g,f,h){a["an_"+b]&&d.removeFromArray(this.animations,a["an_"+b]);c={obj:a,frame:0,attribute:b,from:c,to:e,time:g,effect:f,suffix:h};a["an_"+b]=c;this.animations.push(c);return c},setLegendData:function(a){var b=this.legend;b&&b.setData(a)},stopAnim:function(a){d.removeFromArray(this.animations,a)},updateAnimations:function(){var a;this.container&&this.container.update();if(this.animations)for(a=this.animations.length-1;0<=a;a--){var b=this.animations[a],c=d.updateRate*b.time,
|
145 |
+
e=b.frame+1,g=b.obj,f=b.attribute;if(e<=c){b.frame++;var h=Number(b.from),k=Number(b.to)-h,c=d[b.effect](0,e,h,k,c);0===k?(this.animations.splice(a,1),g.node.style[f]=Number(b.to)+b.suffix):g.node.style[f]=c+b.suffix}else g.node.style[f]=Number(b.to)+b.suffix,g.animationFinished=!0,this.animations.splice(a,1)}},update:function(){this.updateAnimations();var a=this.animatable;if(0<a.length){for(var b=!0,c=a.length-1;0<=c;c--){var e=a[c];e&&(e.animationFinished?a.splice(c,1):b=!1)}b&&(this.fire({type:"animationFinished",
|
146 |
+
chart:this}),this.animatable=[])}},inIframe:function(){try{return window.self!==window.top}catch(a){return!0}},brr:function(){if(!this.hideCredits){var a="amcharts.com",b=window.location.hostname.split("."),c;2<=b.length&&(c=b[b.length-2]+"."+b[b.length-1]);this.amLink&&(b=this.amLink.parentNode)&&b.removeChild(this.amLink);if(c!=a||!0===this.inIframe()){c=a="http://www."+a;var b="JavaScript charts",e="JS chart by amCharts";"ammap"==this.product&&(c=a+"/javascript-maps/",b="Interactive JavaScript maps",
|
147 |
+
e="JS map by amCharts");a=document.createElement("a");e=document.createTextNode(e);a.setAttribute("href",c);a.setAttribute("title",b);this.urlTarget&&a.setAttribute("target",this.urlTarget);a.appendChild(e);this.chartDiv.appendChild(a);this.amLink=a;a=a.style;a.position="absolute";a.textDecoration="none";a.color=this.color;a.fontFamily=this.fontFamily;a.fontSize="11px";a.opacity=.7;a.display="block";this.positionCred()}}},positionCred:function(){var a=this.amLink;if(a){var b=this.creditsPosition,
|
148 |
+
c=a.style,e=a.offsetWidth,a=a.offsetHeight,d=0,f=0,h=this.realWidth,k=this.realHeight,l=this.type;if("serial"==l||"xy"==l||"gantt"==l)d=this.marginLeftReal,f=this.marginTopReal,h=d+this.plotAreaWidth,k=f+this.plotAreaHeight;var l=5+d,m=f+5;"bottom-left"==b&&(l=5+d,m=k-a-3);"bottom-right"==b&&(l=h-e-5,m=k-a-3);"top-right"==b&&(l=h-e-5,m=f+5);c.left=l+"px";c.top=m+"px"}}});d.Slice=d.Class({construct:function(){}});d.SerialDataItem=d.Class({construct:function(){}});d.GraphDataItem=d.Class({construct:function(){}});
|
149 |
+
d.Guide=d.Class({construct:function(a){this.cname="Guide";d.applyTheme(this,a,this.cname)}});d.Title=d.Class({construct:function(a){this.cname="Title";d.applyTheme(this,a,this.cname)}});d.Label=d.Class({construct:function(a){this.cname="Label";d.applyTheme(this,a,this.cname)}})})();(function(){var d=window.AmCharts;d.AmGraph=d.Class({construct:function(a){this.cname="AmGraph";this.createEvents("rollOverGraphItem","rollOutGraphItem","clickGraphItem","doubleClickGraphItem","rightClickGraphItem","clickGraph","rollOverGraph","rollOutGraph");this.type="line";this.stackable=!0;this.columnCount=1;this.columnIndex=0;this.centerCustomBullets=this.showBalloon=!0;this.maxBulletSize=50;this.minBulletSize=4;this.balloonText="[[value]]";this.hidden=this.scrollbar=this.animationPlayed=!1;
|
150 |
+
this.pointPosition="middle";this.depthCount=1;this.includeInMinMax=!0;this.negativeBase=0;this.visibleInLegend=!0;this.showAllValueLabels=!1;this.showBulletsAt=this.showBalloonAt="close";this.lineThickness=1;this.dashLength=0;this.connect=!0;this.lineAlpha=1;this.bullet="none";this.bulletBorderThickness=2;this.bulletBorderAlpha=0;this.bulletAlpha=1;this.bulletSize=8;this.cornerRadiusTop=this.hideBulletsCount=this.bulletOffset=0;this.cursorBulletAlpha=1;this.gradientOrientation="vertical";this.dy=
|
151 |
+
this.dx=0;this.periodValue="";this.clustered=!0;this.periodSpan=1;this.accessibleLabel="[[title]] [[category]] [[value]]";this.accessibleSkipText="Press enter to skip [[title]]";this.y=this.x=0;this.switchable=!0;this.minDistance=.8;this.tcc=1;this.labelRotation=0;this.labelAnchor="auto";this.labelOffset=3;this.bcn="graph-";this.dateFormat="MMM DD, YYYY";this.noRounding=!0;d.applyTheme(this,a,this.cname)},init:function(){this.createBalloon()},draw:function(){var a=this.chart;a.isRolledOverBullet=
|
152 |
+
!1;var b=a.type;if(a.drawGraphs){isNaN(this.precision)||(this.numberFormatter?this.numberFormatter.precision=this.precision:this.numberFormatter={precision:this.precision,decimalSeparator:a.decimalSeparator,thousandsSeparator:a.thousandsSeparator});var c=a.container;this.container=c;this.destroy();var e=c.set();this.set=e;e.translate(this.x,this.y);var g=c.set();this.bulletSet=g;g.translate(this.x,this.y);this.behindColumns?(a.graphsBehindSet.push(e),a.bulletBehindSet.push(g)):(a.graphsSet.push(e),
|
153 |
+
a.bulletSet.push(g));var f=this.bulletAxis;d.isString(f)&&(this.bulletAxis=a.getValueAxisById(f));c=c.set();d.remove(this.columnsSet);this.columnsSet=c;d.setCN(a,e,"graph-"+this.type);d.setCN(a,e,"graph-"+this.id);d.setCN(a,g,"graph-"+this.type);d.setCN(a,g,"graph-"+this.id);this.columnsArray=[];this.ownColumns=[];this.allBullets=[];this.animationArray=[];g=this.labelPosition;g||(f=this.valueAxis.stackType,g="top","column"==this.type&&(a.rotate&&(g="right"),"100%"==f||"regular"==f)&&(g="middle"),
|
154 |
+
this.labelPosition=g);d.ifArray(this.data)&&(a=!1,"xy"==b?this.xAxis.axisCreated&&this.yAxis.axisCreated&&(a=!0):this.valueAxis.axisCreated&&(a=!0),!this.hidden&&a&&this.createGraph());e.push(c)}},createGraph:function(){var a=this,b=a.chart;a.startAlpha=b.startAlpha;a.seqAn=b.sequencedAnimation;a.baseCoord=a.valueAxis.baseCoord;void 0===a.fillAlphas&&(a.fillAlphas=0);a.bulletColorR=a.bulletColor;void 0===a.bulletColorR&&(a.bulletColorR=a.lineColorR,a.bulletColorNegative=a.negativeLineColor);void 0===
|
155 |
+
a.bulletAlpha&&(a.bulletAlpha=a.lineAlpha);if("step"==c||d.VML)a.noRounding=!1;var c=b.type;"gantt"==c&&(c="serial");clearTimeout(a.playedTO);if(!isNaN(a.valueAxis.min)&&!isNaN(a.valueAxis.max)){switch(c){case "serial":a.categoryAxis&&(a.createSerialGraph(),"candlestick"==a.type&&1>a.valueAxis.minMaxMultiplier&&a.positiveClip(a.set));break;case "radar":a.createRadarGraph();break;case "xy":a.createXYGraph()}a.playedTO=setTimeout(function(){a.setAnimationPlayed.call(a)},500*a.chart.startDuration)}},
|
156 |
+
setAnimationPlayed:function(){this.animationPlayed=!0},createXYGraph:function(){var a=[],b=[],c=this.xAxis,e=this.yAxis;this.pmh=e.height;this.pmw=c.width;this.pmy=this.pmx=0;var d;for(d=this.start;d<=this.end;d++){var f=this.data[d].axes[c.id].graphs[this.id],h=f.values,k=h.x,l=h.y,h=c.getCoordinate(k,this.noRounding),m=e.getCoordinate(l,this.noRounding);if(!isNaN(k)&&!isNaN(l)&&(a.push(h),b.push(m),f.x=h,f.y=m,k=this.createBullet(f,h,m,d),l=this.labelText)){var l=this.createLabel(f,l),n=0;k&&(n=
|
157 |
+
k.size);this.positionLabel(f,h,m,l,n)}}this.drawLineGraph(a,b);this.launchAnimation()},createRadarGraph:function(){var a=this.valueAxis.stackType,b=[],c=[],e=[],d=[],f,h,k,l,m;for(m=this.start;m<=this.end;m++){var n=this.data[m].axes[this.valueAxis.id].graphs[this.id],q,p;"none"==a||"3d"==a?q=n.values.value:(q=n.values.close,p=n.values.open);if(isNaN(q))this.connect||(this.drawLineGraph(b,c,e,d),b=[],c=[],e=[],d=[]);else{var t=this.valueAxis.getCoordinate(q,this.noRounding)-this.height,t=t*this.valueAxis.rMultiplier,
|
158 |
+
r=-360/(this.end-this.start+1)*m;"middle"==this.valueAxis.pointPosition&&(r-=180/(this.end-this.start+1));q=t*Math.sin(r/180*Math.PI);t*=Math.cos(r/180*Math.PI);b.push(q);c.push(t);if(!isNaN(p)){var w=this.valueAxis.getCoordinate(p,this.noRounding)-this.height,w=w*this.valueAxis.rMultiplier,z=w*Math.sin(r/180*Math.PI),r=w*Math.cos(r/180*Math.PI);e.push(z);d.push(r);isNaN(k)&&(k=z);isNaN(l)&&(l=r)}r=this.createBullet(n,q,t,m);n.x=q;n.y=t;if(z=this.labelText)z=this.createLabel(n,z),w=0,r&&(w=r.size),
|
159 |
+
this.positionLabel(n,q,t,z,w);isNaN(f)&&(f=q);isNaN(h)&&(h=t)}}b.push(f);c.push(h);isNaN(k)||(e.push(k),d.push(l));this.drawLineGraph(b,c,e,d);this.launchAnimation()},positionLabel:function(a,b,c,e,d){if(e){var f=this.chart,h=this.valueAxis,k="middle",l=!1,m=this.labelPosition,n=e.getBBox(),q=this.chart.rotate,p=a.isNegative,t=this.fontSize;void 0===t&&(t=this.chart.fontSize);c-=n.height/2-t/2-1;void 0!==a.labelIsNegative&&(p=a.labelIsNegative);switch(m){case "right":m=q?p?"left":"right":"right";
|
160 |
+
break;case "top":m=q?"top":p?"bottom":"top";break;case "bottom":m=q?"bottom":p?"top":"bottom";break;case "left":m=q?p?"right":"left":"left"}var t=a.columnGraphics,r=0,w=0;t&&(r=t.x,w=t.y);var z=this.labelOffset;switch(m){case "right":k="start";b+=d/2+z;break;case "top":c=h.reversed?c+(d/2+n.height/2+z):c-(d/2+n.height/2+z);break;case "bottom":c=h.reversed?c-(d/2+n.height/2+z):c+(d/2+n.height/2+z);break;case "left":k="end";b-=d/2+z;break;case "inside":"column"==this.type&&(l=!0,q?p?(k="end",b=r-3-
|
161 |
+
z):(k="start",b=r+3+z):c=p?w+7+z:w-10-z);break;case "middle":"column"==this.type&&(l=!0,q?b-=(b-r)/2+z-3:c-=(c-w)/2+z-3)}"auto"!=this.labelAnchor&&(k=this.labelAnchor);e.attr({"text-anchor":k});this.labelRotation&&e.rotate(this.labelRotation);e.translate(b,c);!this.showAllValueLabels&&t&&l&&(n=e.getBBox(),n.height>a.columnHeight||n.width>a.columnWidth)&&(e.remove(),e=null);if(e&&"radar"!=f.type)if(q){if(0>c||c>this.height)e.remove(),e=null;!this.showAllValueLabels&&e&&(0>b||b>this.width)&&(e.remove(),
|
162 |
+
e=null)}else{if(0>b||b>this.width)e.remove(),e=null;!this.showAllValueLabels&&e&&(0>c||c>this.height)&&(e.remove(),e=null)}e&&this.allBullets.push(e);return e}},getGradRotation:function(){var a=270;"horizontal"==this.gradientOrientation&&(a=0);return this.gradientRotation=a},createSerialGraph:function(){this.dashLengthSwitched=this.fillColorsSwitched=this.lineColorSwitched=void 0;var a=this.chart,b=this.id,c=this.index,e=this.data,g=this.chart.container,f=this.valueAxis,h=this.type,k=this.columnWidthReal,
|
163 |
+
l=this.showBulletsAt;isNaN(this.columnWidth)||(k=this.columnWidth);isNaN(k)&&(k=.8);var m=this.useNegativeColorIfDown,n=this.width,q=this.height,p=this.y,t=this.rotate,r=this.columnCount,w=d.toCoordinate(this.cornerRadiusTop,k/2),z=this.connect,x=[],u=[],A,y,B,D,C=this.chart.graphs.length,I,H=this.dx/this.tcc,Q=this.dy/this.tcc,M=f.stackType,P=this.start,ia=this.end,J=this.scrollbar,aa="graph-column-";J&&(aa="scrollbar-graph-column-");var ma=this.categoryAxis,na=this.baseCoord,Pa=this.negativeBase,
|
164 |
+
Z=this.columnIndex,da=this.lineThickness,X=this.lineAlpha,xa=this.lineColorR,ea=this.dashLength,fa=this.set,Ba,ga=this.getGradRotation(),V=this.chart.columnSpacing,Y=ma.cellWidth,Da=(Y*k-r)/r;V>Da&&(V=Da);var G,v,oa,ha=q,Qa=n,ca=0,tb=0,ub=0,vb=0,lb=0,mb=0,wb=this.fillColorsR,Ra=this.negativeFillColors,Ja=this.negativeLineColor,bb=this.fillAlphas,cb=this.negativeFillAlphas;"object"==typeof bb&&(bb=bb[0]);"object"==typeof cb&&(cb=cb[0]);var xb=this.noRounding;"step"==h&&(xb=!1);var nb=f.getCoordinate(f.min);
|
165 |
+
f.logarithmic&&(nb=f.getCoordinate(f.minReal));this.minCoord=nb;this.resetBullet&&(this.bullet="none");if(!(J||"line"!=h&&"smoothedLine"!=h&&"step"!=h||(1==e.length&&"step"!=h&&"none"==this.bullet&&(this.bullet="round",this.resetBullet=!0),!Ra&&void 0==Ja||m))){var Ua=Pa;Ua>f.max&&(Ua=f.max);Ua<f.min&&(Ua=f.min);f.logarithmic&&(Ua=f.minReal);var Ka=f.getCoordinate(Ua)+.5,Mb=f.getCoordinate(f.max);t?(ha=q,Qa=Math.abs(Mb-Ka),ub=q,vb=Math.abs(nb-Ka),mb=tb=0,f.reversed?(ca=0,lb=Ka):(ca=Ka,lb=0)):(Qa=
|
166 |
+
n,ha=Math.abs(Mb-Ka),vb=n,ub=Math.abs(nb-Ka),lb=ca=0,f.reversed?(mb=p,tb=Ka):mb=Ka)}var La=Math.round;this.pmx=La(ca);this.pmy=La(tb);this.pmh=La(ha);this.pmw=La(Qa);this.nmx=La(lb);this.nmy=La(mb);this.nmh=La(ub);this.nmw=La(vb);d.isModern||(this.nmy=this.nmx=0,this.nmh=this.height);this.clustered||(r=1);k="column"==h?(Y*k-V*(r-1))/r:Y*k;1>k&&(k=1);var Nb=this.fixedColumnWidth;isNaN(Nb)||(k=Nb);var L;if("line"==h||"step"==h||"smoothedLine"==h){if(0<P){for(L=P-1;-1<L;L--)if(G=e[L],v=G.axes[f.id].graphs[b],
|
167 |
+
oa=v.values.value,!isNaN(oa)){P=L;break}if(this.lineColorField)for(L=P;-1<L;L--)if(G=e[L],v=G.axes[f.id].graphs[b],v.lineColor){this.lineColorSwitched=v.lineColor;void 0===this.bulletColor&&(this.bulletColorSwitched=this.lineColorSwitched);break}if(this.fillColorsField)for(L=P;-1<L;L--)if(G=e[L],v=G.axes[f.id].graphs[b],v.fillColors){this.fillColorsSwitched=v.fillColors;break}if(this.dashLengthField)for(L=P;-1<L;L--)if(G=e[L],v=G.axes[f.id].graphs[b],!isNaN(v.dashLength)){this.dashLengthSwitched=
|
168 |
+
v.dashLength;break}}if(ia<e.length-1)for(L=ia+1;L<e.length;L++)if(G=e[L],v=G.axes[f.id].graphs[b],oa=v.values.value,!isNaN(oa)){ia=L;break}}ia<e.length-1&&ia++;var T=[],U=[],Ma=!1;if("line"==h||"step"==h||"smoothedLine"==h)if(this.stackable&&"regular"==M||"100%"==M||this.fillToGraph)Ma=!0;var Ob=this.noStepRisers,db=-1E3,eb=-1E3,ob=this.minDistance,Sa=!0,Va=!1;for(L=P;L<=ia;L++){G=e[L];v=G.axes[f.id].graphs[b];v.index=L;var fb,Ta=NaN;if(m&&void 0==this.openField)for(var yb=L+1;yb<e.length&&(!e[yb]||
|
169 |
+
!(fb=e[L+1].axes[f.id].graphs[b])||!fb.values||(Ta=fb.values.value,isNaN(Ta)));yb++);var S,R,K,ba,ja=NaN,E=NaN,F=NaN,O=NaN,N=NaN,qa=NaN,ra=NaN,sa=NaN,ta=NaN,ya=NaN,Ea=NaN,ka=NaN,la=NaN,W=NaN,zb=NaN,Ab=NaN,ua=NaN,va=void 0,Na=wb,Wa=bb,Ha=xa,Ca,za,Bb=this.proCandlesticks,pb=this.topRadius,Fa=q-1,pa=n-1,gb=this.pattern;void 0!=v.pattern&&(gb=v.pattern);isNaN(v.alpha)||(Wa=v.alpha);isNaN(v.dashLength)||(ea=v.dashLength);var Ia=v.values;f.recalculateToPercents&&(Ia=v.percents);"none"==M&&(Z=isNaN(v.columnIndex)?
|
170 |
+
this.columnIndex:v.columnIndex);if(Ia){W=this.stackable&&"none"!=M&&"3d"!=M?Ia.close:Ia.value;if("candlestick"==h||"ohlc"==h)W=Ia.close,Ab=Ia.low,ra=f.getCoordinate(Ab),zb=Ia.high,ta=f.getCoordinate(zb);ua=Ia.open;F=f.getCoordinate(W,xb);isNaN(ua)||(N=f.getCoordinate(ua,xb),m&&"regular"!=M&&"100%"!=M&&(Ta=ua,ua=N=NaN));m&&(void 0==this.openField?fb&&(fb.isNegative=Ta<W?!0:!1,isNaN(Ta)&&(v.isNegative=!Sa)):v.isNegative=Ta>W?!0:!1);if(!J)switch(this.showBalloonAt){case "close":v.y=F;break;case "open":v.y=
|
171 |
+
N;break;case "high":v.y=ta;break;case "low":v.y=ra}var ja=G.x[ma.id],Xa=this.periodSpan-1;"step"!=h||isNaN(G.cellWidth)||(Y=G.cellWidth);var wa=Math.floor(Y/2)+Math.floor(Xa*Y/2),Ga=wa,qb=0;"left"==this.stepDirection&&(qb=(2*Y+Xa*Y)/2,ja-=qb);"center"==this.stepDirection&&(qb=Y/2,ja-=qb);"start"==this.pointPosition&&(ja-=Y/2+Math.floor(Xa*Y/2),wa=0,Ga=Math.floor(Y)+Math.floor(Xa*Y));"end"==this.pointPosition&&(ja+=Y/2+Math.floor(Xa*Y/2),wa=Math.floor(Y)+Math.floor(Xa*Y),Ga=0);if(Ob){var Cb=this.columnWidth;
|
172 |
+
isNaN(Cb)||(wa*=Cb,Ga*=Cb)}J||(v.x=ja);-1E5>ja&&(ja=-1E5);ja>n+1E5&&(ja=n+1E5);t?(E=F,O=N,N=F=ja,isNaN(ua)&&!this.fillToGraph&&(O=na),qa=ra,sa=ta):(O=E=ja,isNaN(ua)&&!this.fillToGraph&&(N=na));if(!Bb&&W<ua||Bb&&W<Ba)v.isNegative=!0,Ra&&(Na=Ra),cb&&(Wa=cb),void 0!=Ja&&(Ha=Ja);Va=!1;isNaN(W)||(m?W>Ta?(Sa&&(Va=!0),Sa=!1):(Sa||(Va=!0),Sa=!0):v.isNegative=W<Pa?!0:!1,Ba=W);var Pb=!1;J&&a.chartScrollbar.ignoreCustomColors&&(Pb=!0);Pb||(void 0!=v.color&&(Na=v.color),v.fillColors&&(Na=v.fillColors));F=d.fitToBounds(F,
|
173 |
+
-3E4,3E4);switch(h){case "line":if(isNaN(W))z||(this.drawLineGraph(x,u,T,U),x=[],u=[],T=[],U=[]);else{if(Math.abs(E-db)>=ob||Math.abs(F-eb)>=ob)x.push(E),u.push(F),db=E,eb=F;ya=E;Ea=F;ka=E;la=F;!Ma||isNaN(N)||isNaN(O)||(T.push(O),U.push(N));if(Va||void 0!=v.lineColor&&v.lineColor!=this.lineColorSwitched||void 0!=v.fillColors&&v.fillColors!=this.fillColorsSwitched||!isNaN(v.dashLength))this.drawLineGraph(x,u,T,U),x=[E],u=[F],T=[],U=[],!Ma||isNaN(N)||isNaN(O)||(T.push(O),U.push(N)),m?(Sa?(this.lineColorSwitched=
|
174 |
+
xa,this.fillColorsSwitched=wb):(this.lineColorSwitched=Ja,this.fillColorsSwitched=Ra),void 0===this.bulletColor&&(this.bulletColorSwitched=xa)):(this.lineColorSwitched=v.lineColor,this.fillColorsSwitched=v.fillColors,void 0===this.bulletColor&&(this.bulletColorSwitched=this.lineColorSwitched)),this.dashLengthSwitched=v.dashLength;v.gap&&(this.drawLineGraph(x,u,T,U),x=[],u=[],T=[],U=[],eb=db=-1E3)}break;case "smoothedLine":if(isNaN(W))z||(this.drawSmoothedGraph(x,u,T,U),x=[],u=[],T=[],U=[]);else{if(Math.abs(E-
|
175 |
+
db)>=ob||Math.abs(F-eb)>=ob)x.push(E),u.push(F),db=E,eb=F;ya=E;Ea=F;ka=E;la=F;!Ma||isNaN(N)||isNaN(O)||(T.push(O),U.push(N));if(Va||void 0!=v.lineColor&&v.lineColor!=this.lineColorSwitched||void 0!=v.fillColors&&v.fillColors!=this.fillColorsSwitched||!isNaN(v.dashLength))this.drawSmoothedGraph(x,u,T,U),x=[E],u=[F],T=[],U=[],!Ma||isNaN(N)||isNaN(O)||(T.push(O),U.push(N)),this.lineColorSwitched=v.lineColor,this.fillColorsSwitched=v.fillColors,this.dashLengthSwitched=v.dashLength;v.gap&&(this.drawSmoothedGraph(x,
|
176 |
+
u,T,U),x=[],u=[],T=[],U=[])}break;case "step":if(!isNaN(W)){t?(isNaN(A)||(x.push(A),u.push(F-wa)),u.push(F-wa),x.push(E),u.push(F+Ga),x.push(E),!Ma||isNaN(N)||isNaN(O)||(isNaN(B)||(T.push(B),U.push(N-wa)),T.push(O),U.push(N-wa),T.push(O),U.push(N+Ga))):(isNaN(y)||(u.push(y),x.push(E-wa)),x.push(E-wa),u.push(F),x.push(E+Ga),u.push(F),!Ma||isNaN(N)||isNaN(O)||(isNaN(D)||(T.push(O-wa),U.push(D)),T.push(O-wa),U.push(N),T.push(O+Ga),U.push(N)));A=E;y=F;B=O;D=N;ya=E;Ea=F;ka=E;la=F;if(Va||void 0!=v.lineColor||
|
177 |
+
void 0!=v.fillColors||!isNaN(v.dashLength)){var Db=x[x.length-2],dc=u[u.length-2];x.pop();u.pop();T.pop();U.pop();this.drawLineGraph(x,u,T,U);x=[Db];u=[dc];T=[];U=[];Ma&&(T=[Db,Db+wa+Ga],U=[D,D]);t?(u.push(F+Ga),x.push(E)):(x.push(E+Ga),u.push(F));this.lineColorSwitched=v.lineColor;this.fillColorsSwitched=v.fillColors;this.dashLengthSwitched=v.dashLength;m&&(Sa?(this.lineColorSwitched=xa,this.fillColorsSwitched=wb):(this.lineColorSwitched=Ja,this.fillColorsSwitched=Ra))}if(Ob||v.gap)A=y=NaN,this.drawLineGraph(x,
|
178 |
+
u,T,U),x=[],u=[],T=[],U=[]}else if(!z){if(1>=this.periodSpan||1<this.periodSpan&&E-A>wa+Ga)A=y=NaN;this.drawLineGraph(x,u,T,U);x=[];u=[];T=[];U=[]}break;case "column":Ca=Ha;void 0!=v.lineColor&&(Ca=v.lineColor);if(!isNaN(W)){m||(v.isNegative=W<Pa?!0:!1);v.isNegative&&(Ra&&(Na=Ra),void 0!=Ja&&(Ca=Ja));var Qb=f.min,Rb=f.max,rb=ua;isNaN(rb)&&(rb=Pa);if(!(W<Qb&&rb<Qb||W>Rb&&rb>Rb)){var Aa;if(t){"3d"==M?(R=F-(r/2-this.depthCount+1)*(k+V)+V/2+Q*Z,S=O+H*Z,Aa=Z):(R=Math.floor(F-(r/2-Z)*(k+V)+V/2),S=O,Aa=
|
179 |
+
0);K=k;ya=E;Ea=R+k/2;ka=E;la=R+k/2;R+K>q+Aa*Q&&(K=q-R+Aa*Q);R<Aa*Q&&(K+=R,R=Aa*Q);ba=E-O;var ec=S;S=d.fitToBounds(S,0,n);ba+=ec-S;ba=d.fitToBounds(ba,-S,n-S+H*Z);v.labelIsNegative=0>ba?!0:!1;0===ba&&1/W===1/-0&&(v.labelIsNegative=!0);isNaN(G.percentWidthValue)||(K=this.height*G.percentWidthValue/100,R=ja-K/2,Ea=R+K/2);K=d.roundTo(K,2);ba=d.roundTo(ba,2);R<q&&0<K&&(va=new d.Cuboid(g,ba,K,H-a.d3x,Q-a.d3y,Na,Wa,da,Ca,X,ga,w,t,ea,gb,pb,aa),v.columnWidth=Math.abs(ba),v.columnHeight=Math.abs(K))}else{"3d"==
|
180 |
+
M?(S=E-(r/2-this.depthCount+1)*(k+V)+V/2+H*Z,R=N+Q*Z,Aa=Z):(S=E-(r/2-Z)*(k+V)+V/2,R=N,Aa=0);K=k;ya=S+k/2;Ea=F;ka=S+k/2;la=F;S+K>n+Aa*H&&(K=n-S+Aa*H);S<Aa*H&&(K+=S-Aa*H,S=Aa*H);ba=F-N;v.labelIsNegative=0<ba?!0:!1;0===ba&&1/W!==1/Math.abs(W)&&(v.labelIsNegative=!0);var fc=R;R=d.fitToBounds(R,this.dy,q);ba+=fc-R;ba=d.fitToBounds(ba,-R+Q*Aa,q-R);isNaN(G.percentWidthValue)||(K=this.width*G.percentWidthValue/100,S=ja-K/2,ya=S+K/2);K=d.roundTo(K,2);ba=d.roundTo(ba,2);S<n+Z*H&&0<K&&(this.showOnAxis&&(R-=
|
181 |
+
Q/2),va=new d.Cuboid(g,K,ba,H-a.d3x,Q-a.d3y,Na,Wa,da,Ca,this.lineAlpha,ga,w,t,ea,gb,pb,aa),v.columnHeight=Math.abs(ba),v.columnWidth=Math.abs(K))}}if(va){za=va.set;d.setCN(a,va.set,"graph-"+this.type);d.setCN(a,va.set,"graph-"+this.id);v.className&&d.setCN(a,va.set,v.className,!0);v.columnGraphics=za;S=d.roundTo(S,2);R=d.roundTo(R,2);za.translate(S,R);(v.url||this.showHandOnHover)&&za.setAttr("cursor","pointer");if(!J){"none"==M&&(I=t?(this.end+1-L)*C-c:C*L+c);"3d"==M&&(t?(I=(this.end+1-L)*C-c-1E3*
|
182 |
+
this.depthCount,ya+=H*Z,ka+=H*Z,v.y+=H*Z):(I=(C-c)*(L+1)+1E3*this.depthCount,Ea+=Q*Z,la+=Q*Z,v.y+=Q*Z));if("regular"==M||"100%"==M)I=t?0<Ia.value?(this.end+1-L)*C+c+1E3*this.depthCount:(this.end+1-L)*C-c+1E3*this.depthCount:0<Ia.value?C*L+c:C*L-c;this.columnsArray.push({column:va,depth:I});v.x=t?R+K/2:S+K/2;this.ownColumns.push(va);this.animateColumns(va,L,E,O,F,N);this.addListeners(za,v);void 0!==this.tabIndex&&za.setAttr("tabindex",this.tabIndex)}this.columnsSet.push(za)}}break;case "candlestick":if(!isNaN(ua)&&
|
183 |
+
!isNaN(W)){var Ya,hb;Ca=Ha;void 0!=v.lineColor&&(Ca=v.lineColor);ya=E;la=Ea=F;ka=E;if(t){"open"==l&&(ka=O);"high"==l&&(ka=sa);"low"==l&&(ka=qa);E=d.fitToBounds(E,0,pa);O=d.fitToBounds(O,0,pa);qa=d.fitToBounds(qa,0,pa);sa=d.fitToBounds(sa,0,pa);if(0===E&&0===O&&0===qa&&0===sa)continue;if(E==pa&&O==pa&&qa==pa&&sa==pa)continue;R=F-k/2;S=O;K=k;R+K>q&&(K=q-R);0>R&&(K+=R,R=0);if(R<q&&0<K){var Eb,Fb;W>ua?(Eb=[E,sa],Fb=[O,qa]):(Eb=[O,sa],Fb=[E,qa]);!isNaN(sa)&&!isNaN(qa)&&F<q&&0<F&&(Ya=d.line(g,Eb,[F,F],
|
184 |
+
Ca,X,da),hb=d.line(g,Fb,[F,F],Ca,X,da));ba=E-O;va=new d.Cuboid(g,ba,K,H,Q,Na,bb,da,Ca,X,ga,w,t,ea,gb,pb,aa)}}else{"open"==l&&(la=N);"high"==l&&(la=ta);"low"==l&&(la=ra);F=d.fitToBounds(F,0,Fa);N=d.fitToBounds(N,0,Fa);ra=d.fitToBounds(ra,0,Fa);ta=d.fitToBounds(ta,0,Fa);if(0===F&&0===N&&0===ra&&0===ta)continue;if(F==Fa&&N==Fa&&ra==Fa&&ta==Fa)continue;S=E-k/2;R=N+da/2;K=k;S+K>n&&(K=n-S);0>S&&(K+=S,S=0);ba=F-N;if(S<n&&0<K){Bb&&W>=ua&&(Wa=0);var va=new d.Cuboid(g,K,ba,H,Q,Na,Wa,da,Ca,X,ga,w,t,ea,gb,pb,
|
185 |
+
aa),Gb,Hb;W>ua?(Gb=[F,ta],Hb=[N,ra]):(Gb=[N,ta],Hb=[F,ra]);!isNaN(ta)&&!isNaN(ra)&&E<n&&0<E&&(Ya=d.line(g,[E,E],Gb,Ca,X,da),hb=d.line(g,[E,E],Hb,Ca,X,da),d.setCN(a,Ya,this.bcn+"line-high"),v.className&&d.setCN(a,Ya,v.className,!0),d.setCN(a,hb,this.bcn+"line-low"),v.className&&d.setCN(a,hb,v.className,!0))}}va&&(za=va.set,v.columnGraphics=za,fa.push(za),za.translate(S,R-da/2),(v.url||this.showHandOnHover)&&za.setAttr("cursor","pointer"),Ya&&(fa.push(Ya),fa.push(hb)),J||(v.x=t?R+K/2:S+K/2,this.animateColumns(va,
|
186 |
+
L,E,O,F,N),this.addListeners(za,v),void 0!==this.tabIndex&&za.setAttr("tabindex",this.tabIndex)))}break;case "ohlc":if(!(isNaN(ua)||isNaN(zb)||isNaN(Ab)||isNaN(W))){var Sb=g.set();fa.push(Sb);W<ua&&(v.isNegative=!0,void 0!=Ja&&(Ha=Ja));void 0!=v.lineColor&&(Ha=v.lineColor);var Za,$a,ab;if(t){la=F;ka=E;"open"==l&&(ka=O);"high"==l&&(ka=sa);"low"==l&&(ka=qa);qa=d.fitToBounds(qa,0,pa);sa=d.fitToBounds(sa,0,pa);if(0===E&&0===O&&0===qa&&0===sa)continue;if(E==pa&&O==pa&&qa==pa&&sa==pa)continue;var Ib=F-
|
187 |
+
k/2,Ib=d.fitToBounds(Ib,0,q),Tb=d.fitToBounds(F,0,q),Jb=F+k/2,Jb=d.fitToBounds(Jb,0,q);0<=O&&O<=pa&&($a=d.line(g,[O,O],[Ib,Tb],Ha,X,da,ea));0<F&&F<q&&(Za=d.line(g,[qa,sa],[F,F],Ha,X,da,ea));0<=E&&E<=pa&&(ab=d.line(g,[E,E],[Tb,Jb],Ha,X,da,ea))}else{la=F;"open"==l&&(la=N);"high"==l&&(la=ta);"low"==l&&(la=ra);var ka=E,ra=d.fitToBounds(ra,0,Fa),ta=d.fitToBounds(ta,0,Fa),Kb=E-k/2,Kb=d.fitToBounds(Kb,0,n),Ub=d.fitToBounds(E,0,n),Lb=E+k/2,Lb=d.fitToBounds(Lb,0,n);0<=N&&N<=Fa&&($a=d.line(g,[Kb,Ub],[N,N],
|
188 |
+
Ha,X,da,ea));0<E&&E<n&&(Za=d.line(g,[E,E],[ra,ta],Ha,X,da,ea));0<=F&&F<=Fa&&(ab=d.line(g,[Ub,Lb],[F,F],Ha,X,da,ea))}fa.push($a);fa.push(Za);fa.push(ab);d.setCN(a,$a,this.bcn+"stroke-open");d.setCN(a,ab,this.bcn+"stroke-close");d.setCN(a,Za,this.bcn+"stroke");v.className&&d.setCN(a,Sb,v.className,!0);Za&&this.addListeners(Za,v);ab&&this.addListeners(ab,v);$a&&this.addListeners($a,v);ya=E;Ea=F}}if(!J&&!isNaN(W)){var Vb=this.hideBulletsCount;if(this.end-this.start<=Vb||0===Vb){var Wb=this.createBullet(v,
|
189 |
+
ka,la,L),Xb=this.labelText;if(Xb&&!isNaN(ya)&&!isNaN(ya)){var gc=this.createLabel(v,Xb),Yb=0;Wb&&(Yb=Wb.size);this.positionLabel(v,ya,Ea,gc,Yb)}if("regular"==M||"100%"==M){var Zb=f.totalText;if(Zb){var Oa=this.createLabel(v,Zb,f.totalTextColor);d.setCN(a,Oa,this.bcn+"label-total");this.allBullets.push(Oa);if(Oa){var $b=Oa.getBBox(),ac=$b.width,bc=$b.height,ib,jb,sb=f.totalTextOffset,cc=f.totals[L];cc&&cc.remove();var kb=0;"column"!=h&&(kb=this.bulletSize);t?(jb=Ea,ib=0>W?E-ac/2-2-kb-sb:E+ac/2+3+kb+
|
190 |
+
sb):(ib=ya,jb=0>W?F+bc/2+kb+sb:F-bc/2-3-kb-sb);Oa.translate(ib,jb);f.totals[L]=Oa;t?(0>jb||jb>q)&&Oa.remove():(0>ib||ib>n)&&Oa.remove()}}}}}}}this.lastDataItem=v;if("line"==h||"step"==h||"smoothedLine"==h)"smoothedLine"==h?this.drawSmoothedGraph(x,u,T,U):this.drawLineGraph(x,u,T,U),J||this.launchAnimation();this.bulletsHidden&&this.hideBullets();this.customBulletsHidden&&this.hideCustomBullets()},animateColumns:function(a,b){var c=this,e=c.chart.startDuration;0<e&&!c.animationPlayed&&(c.seqAn?(a.set.hide(),
|
191 |
+
c.animationArray.push(a),e=setTimeout(function(){c.animate.call(c)},e/(c.end-c.start+1)*(b-c.start)*1E3),c.timeOuts.push(e)):c.animate(a),c.chart.animatable.push(a))},createLabel:function(a,b,c){var e=this.chart,g=a.labelColor;g||(g=this.color);g||(g=e.color);c&&(g=c);c=this.fontSize;void 0===c&&(this.fontSize=c=e.fontSize);var f=this.labelFunction;b=e.formatString(b,a);b=d.cleanFromEmpty(b);f&&(b=f(a,b));if(void 0!==b&&""!==b)return a=d.text(this.container,b,g,e.fontFamily,c),a.node.style.pointerEvents=
|
192 |
+
"none",d.setCN(e,a,this.bcn+"label"),this.bulletSet.push(a),a},positiveClip:function(a){a.clipRect(this.pmx,this.pmy,this.pmw,this.pmh)},negativeClip:function(a){a.clipRect(this.nmx,this.nmy,this.nmw,this.nmh)},drawLineGraph:function(a,b,c,e){var g=this;if(1<a.length){var f=g.noRounding,h=g.set,k=g.chart,l=g.container,m=l.set(),n=l.set();h.push(n);h.push(m);var q=g.lineAlpha,p=g.lineThickness,h=g.fillAlphas,t=g.lineColorR,r=g.negativeLineAlpha;isNaN(r)&&(r=q);var w=g.lineColorSwitched;w&&(t=w);var w=
|
193 |
+
g.fillColorsR,z=g.fillColorsSwitched;z&&(w=z);var x=g.dashLength;(z=g.dashLengthSwitched)&&(x=z);var z=g.negativeLineColor,u=g.negativeFillColors,A=g.negativeFillAlphas,y=g.baseCoord;0!==g.negativeBase&&(y=g.valueAxis.getCoordinate(g.negativeBase,f),y>g.height&&(y=g.height),0>y&&(y=0));q=d.line(l,a,b,t,q,p,x,!1,!1,f);q.node.setAttribute("stroke-linejoin","round");d.setCN(k,q,g.bcn+"stroke");m.push(q);m.click(function(a){g.handleGraphEvent(a,"clickGraph")}).mouseover(function(a){g.handleGraphEvent(a,
|
194 |
+
"rollOverGraph")}).mouseout(function(a){g.handleGraphEvent(a,"rollOutGraph")}).touchmove(function(a){g.chart.handleMouseMove(a)}).touchend(function(a){g.chart.handleTouchEnd(a)});void 0===z||g.useNegativeColorIfDown||(p=d.line(l,a,b,z,r,p,x,!1,!1,f),p.node.setAttribute("stroke-linejoin","round"),d.setCN(k,p,g.bcn+"stroke"),d.setCN(k,p,g.bcn+"stroke-negative"),n.push(p));if(0<h||0<A)if(p=a.join(";").split(";"),r=b.join(";").split(";"),q=k.type,"serial"==q||"radar"==q?0<c.length?(c.reverse(),e.reverse(),
|
195 |
+
p=a.concat(c),r=b.concat(e)):"radar"==q?(r.push(0),p.push(0)):g.rotate?(r.push(r[r.length-1]),p.push(y),r.push(r[0]),p.push(y),r.push(r[0]),p.push(p[0])):(p.push(p[p.length-1]),r.push(y),p.push(p[0]),r.push(y),p.push(a[0]),r.push(r[0])):"xy"==q&&(b=g.fillToAxis)&&(d.isString(b)&&(b=k.getValueAxisById(b)),"H"==b.orientation?(y="top"==b.position?0:b.height,p.push(p[p.length-1]),r.push(y),p.push(p[0]),r.push(y),p.push(a[0]),r.push(r[0])):(y="left"==b.position?0:b.width,r.push(r[r.length-1]),p.push(y),
|
196 |
+
r.push(r[0]),p.push(y),r.push(r[0]),p.push(p[0]))),a=g.gradientRotation,0<h&&(b=d.polygon(l,p,r,w,h,1,"#000",0,a,f),b.pattern(g.pattern,NaN,k.path),d.setCN(k,b,g.bcn+"fill"),m.push(b),b.toBack()),u||void 0!==z)isNaN(A)&&(A=h),u||(u=z),f=d.polygon(l,p,r,u,A,1,"#000",0,a,f),d.setCN(k,f,g.bcn+"fill"),d.setCN(k,f,g.bcn+"fill-negative"),f.pattern(g.pattern,NaN,k.path),n.push(f),f.toBack(),n.click(function(a){g.handleGraphEvent(a,"clickGraph")}).mouseover(function(a){g.handleGraphEvent(a,"rollOverGraph")}).mouseout(function(a){g.handleGraphEvent(a,
|
197 |
+
"rollOutGraph")}).touchmove(function(a){g.chart.handleMouseMove(a)}).touchend(function(a){g.chart.handleTouchEnd(a)});g.applyMask(n,m)}},applyMask:function(a,b){var c=a.length();"serial"!=this.chart.type||this.scrollbar||(this.positiveClip(b),0<c&&this.negativeClip(a))},drawSmoothedGraph:function(a,b,c,e){if(1<a.length){var g=this.set,f=this.chart,h=this.container,k=h.set(),l=h.set();g.push(l);g.push(k);var m=this.lineAlpha,n=this.lineThickness,g=this.dashLength,q=this.fillAlphas,p=this.lineColorR,
|
198 |
+
t=this.fillColorsR,r=this.negativeLineColor,w=this.negativeFillColors,z=this.negativeFillAlphas,x=this.baseCoord,u=this.lineColorSwitched;u&&(p=u);(u=this.fillColorsSwitched)&&(t=u);var A=this.negativeLineAlpha;isNaN(A)&&(A=m);u=this.getGradRotation();m=new d.Bezier(h,a,b,p,m,n,t,0,g,void 0,u);d.setCN(f,m,this.bcn+"stroke");k.push(m.path);void 0!==r&&(n=new d.Bezier(h,a,b,r,A,n,t,0,g,void 0,u),d.setCN(f,n,this.bcn+"stroke"),d.setCN(f,n,this.bcn+"stroke-negative"),l.push(n.path));0<q&&(n=a.join(";").split(";"),
|
199 |
+
m=b.join(";").split(";"),p="",0<c.length?(c.push("M"),e.push("M"),c.reverse(),e.reverse(),n=a.concat(c),m=b.concat(e)):(this.rotate?(p+=" L"+x+","+b[b.length-1],p+=" L"+x+","+b[0]):(p+=" L"+a[a.length-1]+","+x,p+=" L"+a[0]+","+x),p+=" L"+a[0]+","+b[0]),a=new d.Bezier(h,n,m,NaN,0,0,t,q,g,p,u),d.setCN(f,a,this.bcn+"fill"),a.path.pattern(this.pattern,NaN,f.path),k.push(a.path),w||void 0!==r)&&(z||(z=q),w||(w=r),h=new d.Bezier(h,n,m,NaN,0,0,w,z,g,p,u),h.path.pattern(this.pattern,NaN,f.path),d.setCN(f,
|
200 |
+
h,this.bcn+"fill"),d.setCN(f,h,this.bcn+"fill-negative"),l.push(h.path));this.applyMask(l,k)}},launchAnimation:function(){var a=this,b=a.chart.startDuration;if(0<b&&!a.animationPlayed){var c=a.set,e=a.bulletSet;d.VML||(c.attr({opacity:a.startAlpha}),e.attr({opacity:a.startAlpha}));c.hide();e.hide();a.seqAn?(b=setTimeout(function(){a.animateGraphs.call(a)},a.index*b*1E3),a.timeOuts.push(b)):a.animateGraphs()}},animateGraphs:function(){var a=this.chart,b=this.set,c=this.bulletSet,e=this.x,d=this.y;
|
201 |
+
b.show();c.show();var f=a.startDuration,h=a.startEffect;b&&(this.rotate?(b.translate(-1E3,d),c.translate(-1E3,d)):(b.translate(e,-1E3),c.translate(e,-1E3)),b.animate({opacity:1,translate:e+","+d},f,h),c.animate({opacity:1,translate:e+","+d},f,h),a.animatable.push(b))},animate:function(a){var b=this.chart,c=this.animationArray;!a&&0<c.length&&(a=c[0],c.shift());c=d[d.getEffect(b.startEffect)];b=b.startDuration;a&&(this.rotate?a.animateWidth(b,c):a.animateHeight(b,c),a.set.show())},legendKeyColor:function(){var a=
|
202 |
+
this.legendColor,b=this.lineAlpha;void 0===a&&(a=this.lineColorR,0===b&&(b=this.fillColorsR)&&(a="object"==typeof b?b[0]:b));return a},legendKeyAlpha:function(){var a=this.legendAlpha;void 0===a&&(a=this.lineAlpha,this.fillAlphas>a&&(a=this.fillAlphas),0===a&&(a=this.bulletAlpha),0===a&&(a=1));return a},createBullet:function(a,b,c){if(!isNaN(b)&&!isNaN(c)&&("none"!=this.bullet||this.customBullet||a.bullet||a.customBullet)){var e=this.chart,g=this.container,f=this.bulletOffset,h=this.bulletSize;isNaN(a.bulletSize)||
|
203 |
+
(h=a.bulletSize);var k=a.values.value,l=this.maxValue,m=this.minValue,n=this.maxBulletSize,q=this.minBulletSize;isNaN(l)||(isNaN(k)||(h=(k-m)/(l-m)*(n-q)+q),m==l&&(h=n));l=h;this.bulletAxis&&(h=a.values.error,isNaN(h)||(k=h),h=this.bulletAxis.stepWidth*k);h<this.minBulletSize&&(h=this.minBulletSize);this.rotate?b=a.isNegative?b-f:b+f:c=a.isNegative?c+f:c-f;q=this.bulletColorR;a.lineColor&&void 0===this.bulletColor&&(this.bulletColorSwitched=a.lineColor);this.bulletColorSwitched&&(q=this.bulletColorSwitched);
|
204 |
+
a.isNegative&&void 0!==this.bulletColorNegative&&(q=this.bulletColorNegative);void 0!==a.color&&(q=a.color);var p;"xy"==e.type&&this.valueField&&(p=this.pattern,a.pattern&&(p=a.pattern));f=this.bullet;a.bullet&&(f=a.bullet);var k=this.bulletBorderThickness,m=this.bulletBorderColorR,n=this.bulletBorderAlpha,t=this.bulletAlpha;m||(m=q);this.useLineColorForBulletBorder&&(m=this.lineColorR,a.isNegative&&this.negativeLineColor&&(m=this.negativeLineColor),this.lineColorSwitched&&(m=this.lineColorSwitched));
|
205 |
+
var r=a.alpha;isNaN(r)||(t=r);p=d.bullet(g,f,h,q,t,k,m,n,l,0,p,e.path);l=this.customBullet;a.customBullet&&(l=a.customBullet);l&&(p&&p.remove(),"function"==typeof l?(l=new l,l.chart=e,a.bulletConfig&&(l.availableSpace=c,l.graph=this,l.graphDataItem=a,l.bulletY=c,a.bulletConfig.minCoord=this.minCoord-c,l.bulletConfig=a.bulletConfig),l.write(g),p&&l.showBullet&&l.set.push(p),a.customBulletGraphics=l.cset,p=l.set):(p=g.set(),l=g.image(l,0,0,h,h),p.push(l),this.centerCustomBullets&&l.translate(-h/2,-h/
|
206 |
+
2)));if(p){(a.url||this.showHandOnHover)&&p.setAttr("cursor","pointer");if("serial"==e.type||"gantt"==e.type)if(-.5>b||b>this.width||c<-h/2||c>this.height)p.remove(),p=null;p&&(this.bulletSet.push(p),p.translate(b,c),this.addListeners(p,a),this.allBullets.push(p));a.bx=b;a.by=c;d.setCN(e,p,this.bcn+"bullet");a.className&&d.setCN(e,p,a.className,!0)}if(p){p.size=h||0;if(e=this.bulletHitAreaSize)g=d.circle(g,e,"#FFFFFF",.001,0),g.translate(b,c),a.hitBullet=g,this.bulletSet.push(g),this.addListeners(g,
|
207 |
+
a);a.bulletGraphics=p;void 0!==this.tabIndex&&p.setAttr("tabindex",this.tabIndex)}else p={size:0};p.graphDataItem=a;return p}},showBullets:function(){var a=this.allBullets,b;this.bulletsHidden=!1;for(b=0;b<a.length;b++)a[b].show()},hideBullets:function(){var a=this.allBullets,b;this.bulletsHidden=!0;for(b=0;b<a.length;b++)a[b].hide()},showCustomBullets:function(){var a=this.allBullets,b;this.customBulletsHidden=!1;for(b=0;b<a.length;b++){var c=a[b].graphDataItem;c&&c.customBulletGraphics&&c.customBulletGraphics.show()}},
|
208 |
+
hideCustomBullets:function(){var a=this.allBullets,b;this.customBulletsHidden=!0;for(b=0;b<a.length;b++){var c=a[b].graphDataItem;c&&c.customBulletGraphics&&c.customBulletGraphics.hide()}},addListeners:function(a,b){var c=this;a.mouseover(function(a){c.handleRollOver(b,a)}).mouseout(function(a){c.handleRollOut(b,a)}).touchend(function(a){c.handleRollOver(b,a);c.chart.panEventsEnabled&&c.handleClick(b,a)}).touchstart(function(a){c.handleRollOver(b,a)}).click(function(a){c.handleClick(b,a)}).dblclick(function(a){c.handleDoubleClick(b,
|
209 |
+
a)}).contextmenu(function(a){c.handleRightClick(b,a)});var e=c.chart;if(e.accessible&&c.accessibleLabel){var d=e.formatString(c.accessibleLabel,b);e.makeAccessible(a,d)}},handleRollOver:function(a,b){this.handleGraphEvent(b,"rollOverGraph");if(a){var c=this.chart;a.bulletConfig&&(c.isRolledOverBullet=!0);var e={type:"rollOverGraphItem",item:a,index:a.index,graph:this,target:this,chart:this.chart,event:b};this.fire(e);c.fire(e);clearTimeout(c.hoverInt);(c=c.chartCursor)&&c.valueBalloonsEnabled||this.showGraphBalloon(a,
|
210 |
+
"V",!0)}},handleRollOut:function(a,b){var c=this.chart;if(a){var e={type:"rollOutGraphItem",item:a,index:a.index,graph:this,target:this,chart:this.chart,event:b};this.fire(e);c.fire(e);c.isRolledOverBullet=!1}this.handleGraphEvent(b,"rollOutGraph");(c=c.chartCursor)&&c.valueBalloonsEnabled||this.hideBalloon()},handleClick:function(a,b){if(!this.chart.checkTouchMoved()&&this.chart.checkTouchDuration(b)){if(a){var c={type:"clickGraphItem",item:a,index:a.index,graph:this,target:this,chart:this.chart,
|
211 |
+
event:b};this.fire(c);this.chart.fire(c);d.getURL(a.url,this.urlTarget)}this.handleGraphEvent(b,"clickGraph")}},handleGraphEvent:function(a,b){var c={type:b,graph:this,target:this,chart:this.chart,event:a};this.fire(c);this.chart.fire(c)},handleRightClick:function(a,b){if(a){var c={type:"rightClickGraphItem",item:a,index:a.index,graph:this,target:this,chart:this.chart,event:b};this.fire(c);this.chart.fire(c)}},handleDoubleClick:function(a,b){if(a){var c={type:"doubleClickGraphItem",item:a,index:a.index,
|
212 |
+
graph:this,target:this,chart:this.chart,event:b};this.fire(c);this.chart.fire(c)}},zoom:function(a,b){this.start=a;this.end=b;this.draw()},changeOpacity:function(a){var b=this.set;b&&b.setAttr("opacity",a);if(b=this.ownColumns){var c;for(c=0;c<b.length;c++){var e=b[c].set;e&&e.setAttr("opacity",a)}}(b=this.bulletSet)&&b.setAttr("opacity",a)},destroy:function(){d.remove(this.set);d.remove(this.bulletSet);var a=this.timeOuts;if(a){var b;for(b=0;b<a.length;b++)clearTimeout(a[b])}this.timeOuts=[]},createBalloon:function(){var a=
|
213 |
+
this.chart;this.balloon?this.balloon.destroy&&this.balloon.destroy():this.balloon={};var b=this.balloon;d.extend(b,a.balloon,!0);b.chart=a;b.mainSet=a.plotBalloonsSet;b.className=this.id},hideBalloon:function(){var a=this,b=a.chart;b.chartCursor?b.chartCursor.valueBalloonsEnabled||b.hideBalloon():b.hideBalloon();clearTimeout(a.hoverInt);a.hoverInt=setTimeout(function(){a.hideBalloonReal.call(a)},b.hideBalloonTime)},hideBalloonReal:function(){this.balloon&&this.balloon.hide();this.fixBulletSize()},
|
214 |
+
fixBulletSize:function(){if(d.isModern){var a=this.resizedDItem;if(a){var b=a.bulletGraphics;if(b&&!b.doNotScale){b.translate(a.bx,a.by,1);var c=this.bulletAlpha;isNaN(a.alpha)||(c=a.alpha);b.setAttr("fill-opacity",c);b.setAttr("stroke-opacity",this.bulletBorderAlpha)}}this.resizedDItem=null}},showGraphBalloon:function(a,b,c,e,g){if(a){var f=this.chart,h=this.balloon,k=0,l=0,m=f.chartCursor,n=!0;m?m.valueBalloonsEnabled||(h=f.balloon,k=this.x,l=this.y,n=!1):(h=f.balloon,k=this.x,l=this.y,n=!1);clearTimeout(this.hoverInt);
|
215 |
+
if(f.chartCursor&&(this.currentDataItem=a,"serial"==f.type&&f.isRolledOverBullet&&f.chartCursor.valueBalloonsEnabled)){this.hideBalloonReal();return}this.resizeBullet(a,e,g);if(h&&h.enabled&&this.showBalloon&&!this.hidden){var m=f.formatString(this.balloonText,a,!0),q=this.balloonFunction;q&&(m=q(a,a.graph));m&&(m=d.cleanFromEmpty(m));m&&""!==m?(e=f.getBalloonColor(this,a),h.drop||(h.pointerOrientation=b),b=a.x,g=a.y,f.rotate&&(b=a.y,g=a.x),b+=k,g+=l,isNaN(b)||isNaN(g)?this.hideBalloonReal():(a=this.width,
|
216 |
+
q=this.height,n&&h.setBounds(k,l,a+k,q+l),h.changeColor(e),h.setPosition(b,g),h.fixPrevious(),h.fixedPosition&&(c=!1),!c&&"radar"!=f.type&&(b<k-.5||b>a+k||g<l-.5||g>q+l)?(h.showBalloon(m),h.hide(0)):(h.followCursor(c),h.showBalloon(m)))):(this.hideBalloonReal(),h.hide(),this.resizeBullet(a,e,g))}else this.hideBalloonReal()}},resizeBullet:function(a,b,c){this.fixBulletSize();if(a&&d.isModern&&(1!=b||!isNaN(c))){var e=a.bulletGraphics;e&&!e.doNotScale&&(e.translate(a.bx,a.by,b),isNaN(c)||(e.setAttr("fill-opacity",
|
217 |
+
c),e.setAttr("stroke-opacity",c)),this.resizedDItem=a)}}})})();(function(){var d=window.AmCharts;d.ChartCursor=d.Class({construct:function(a){this.cname="ChartCursor";this.createEvents("changed","zoomed","onHideCursor","onShowCursor","draw","selected","moved","panning","zoomStarted");this.enabled=!0;this.cursorAlpha=1;this.selectionAlpha=.2;this.cursorColor="#CC0000";this.categoryBalloonAlpha=1;this.color="#FFFFFF";this.type="cursor";this.zoomed=!1;this.zoomable=!0;this.pan=!1;this.categoryBalloonDateFormat="MMM DD, YYYY";this.categoryBalloonText="[[category]]";
|
218 |
+
this.categoryBalloonEnabled=this.valueBalloonsEnabled=!0;this.rolledOver=!1;this.cursorPosition="middle";this.bulletsEnabled=this.skipZoomDispatch=!1;this.bulletSize=8;this.selectWithoutZooming=this.oneBalloonOnly=!1;this.graphBulletSize=1.7;this.animationDuration=.3;this.zooming=!1;this.adjustment=0;this.avoidBalloonOverlapping=!0;this.leaveCursor=!1;this.leaveAfterTouch=!0;this.valueZoomable=!1;this.balloonPointerOrientation="horizontal";this.hLineEnabled=this.vLineEnabled=!0;this.vZoomEnabled=
|
219 |
+
this.hZoomEnabled=!1;d.applyTheme(this,a,this.cname)},draw:function(){this.destroy();var a=this.chart;a.panRequired=!0;var b=a.container;this.rotate=a.rotate;this.container=b;this.prevLineHeight=this.prevLineWidth=NaN;b=b.set();b.translate(this.x,this.y);this.set=b;a.cursorSet.push(b);this.createElements();d.isString(this.limitToGraph)&&(this.limitToGraph=d.getObjById(a.graphs,this.limitToGraph),this.fullWidth=!1,this.cursorPosition="middle");this.pointer=this.balloonPointerOrientation.substr(0,1).toUpperCase();
|
220 |
+
this.isHidden=!1;this.hideLines();this.valueLineAxis||(this.valueLineAxis=a.valueAxes[0])},createElements:function(){var a=this,b=a.chart,c=b.dx,e=b.dy,g=a.width,f=a.height,h,k,l=a.cursorAlpha,m=a.valueLineAlpha;a.rotate?(h=m,k=l):(k=m,h=l);"xy"==b.type&&(k=l,void 0!==m&&(k=m),h=l);a.vvLine=d.line(a.container,[c,0,0],[e,0,f],a.cursorColor,h,1);d.setCN(b,a.vvLine,"cursor-line");d.setCN(b,a.vvLine,"cursor-line-vertical");a.hhLine=d.line(a.container,[0,g,g+c],[0,0,e],a.cursorColor,k,1);d.setCN(b,a.hhLine,
|
221 |
+
"cursor-line");d.setCN(b,a.hhLine,"cursor-line-horizontal");a.vLine=a.rotate?a.vvLine:a.hhLine;a.set.push(a.vvLine);a.set.push(a.hhLine);a.set.node.style.pointerEvents="none";a.fullLines=a.container.set();b=b.cursorLineSet;b.push(a.fullLines);b.translate(a.x,a.y);b.clipRect(-1,-1,g+2,f+2);void 0!==a.tabIndex&&(b.setAttr("tabindex",a.tabIndex),b.keyup(function(b){a.handleKeys(b)}).focus(function(b){a.showCursor()}).blur(function(b){a.hideCursor()}));a.set.clipRect(0,0,g,f)},handleKeys:function(a){var b=
|
222 |
+
this.prevIndex,c=this.chart;if(c){var e=c.chartData;e&&(isNaN(b)&&(b=e.length-1),37!=a.keyCode&&40!=a.keyCode||b--,39!=a.keyCode&&38!=a.keyCode||b++,b=d.fitToBounds(b,c.startIndex,c.endIndex),(a=this.chart.chartData[b])&&this.setPosition(a.x.categoryAxis),this.prevIndex=b)}},update:function(){var a=this.chart;if(a){var b=a.mouseX-this.x,c=a.mouseY-this.y;this.mouseX=b;this.mouseY=c;this.mouse2X=a.mouse2X-this.x;this.mouse2Y=a.mouse2Y-this.y;var e;if(a.chartData&&0<a.chartData.length){this.mouseIsOver()?
|
223 |
+
(this.hideGraphBalloons=!1,this.rolledOver=e=!0,this.updateDrawing(),this.vvLine&&isNaN(this.fx)&&(a.rotate||!this.limitToGraph)&&this.vvLine.translate(b,0),!this.hhLine||!isNaN(this.fy)||a.rotate&&this.limitToGraph||this.hhLine.translate(0,c),isNaN(this.mouse2X)?this.dispatchMovedEvent(b,c):e=!1):this.forceShow||this.hideCursor();if(this.zooming){if(!isNaN(this.mouse2X)){isNaN(this.mouse2X0)||this.dispatchPanEvent();return}if(this.pan){this.dispatchPanEvent();return}(this.hZoomEnabled||this.vZoomEnabled)&&
|
224 |
+
this.zooming&&this.updateSelection()}e&&this.showCursor()}}},updateDrawing:function(){this.drawing&&this.chart.setMouseCursor("crosshair");if(this.drawingNow&&(d.remove(this.drawingLine),1<Math.abs(this.drawStartX-this.mouseX)||1<Math.abs(this.drawStartY-this.mouseY))){var a=this.chart,b=a.marginTop,a=a.marginLeft;this.drawingLine=d.line(this.container,[this.drawStartX+a,this.mouseX+a],[this.drawStartY+b,this.mouseY+b],this.cursorColor,1,1)}},fixWidth:function(a){if(this.fullWidth&&this.prevLineWidth!=
|
225 |
+
a){var b=this.vvLine,c=0;b&&(b.remove(),c=b.x);b=this.container.set();b.translate(c,0);c=d.rect(this.container,a,this.height,this.cursorColor,this.cursorAlpha,this.cursorAlpha,this.cursorColor);d.setCN(this.chart,c,"cursor-fill");c.translate(-a/2-1,0);b.push(c);this.vvLine=b;this.fullLines.push(b);this.prevLineWidth=a}},fixHeight:function(a){if(this.fullWidth&&this.prevLineHeight!=a){var b=this.hhLine,c=0;b&&(b.remove(),c=b.y);b=this.container.set();b.translate(0,c);c=d.rect(this.container,this.width,
|
226 |
+
a,this.cursorColor,this.cursorAlpha);c.translate(0,-a/2);b.push(c);this.fullLines.push(b);this.hhLine=b;this.prevLineHeight=a}},fixVLine:function(a,b){if(!isNaN(a)&&this.vvLine){if(isNaN(this.prevLineX)){var c=0,e=this.mouseX;if(this.limitToGraph){var d=this.chart.categoryAxis;d&&(this.chart.rotate||(c="bottom"==d.position?this.height:-this.height),e=a)}this.vvLine.translate(e,c)}else this.prevLineX!=a&&this.vvLine.translate(this.prevLineX,this.prevLineY);this.fx=a;this.prevLineX!=a&&(c=this.animationDuration,
|
227 |
+
this.zooming&&(c=0),this.vvLine.stop(),this.vvLine.animate({translate:a+","+b},c,"easeOutSine"),this.prevLineX=a,this.prevLineY=b)}},fixHLine:function(a,b){if(!isNaN(a)&&this.hhLine){if(isNaN(this.prevLineY)){var c=0,e=this.mouseY;if(this.limitToGraph){var d=this.chart.categoryAxis;d&&(this.chart.rotate&&(c="right"==d.position?this.width:-this.width),e=a)}this.hhLine.translate(c,e)}else this.prevLineY!=a&&this.hhLine.translate(this.prevLineX,this.prevLineY);this.fy=a;this.prevLineY!=a&&(c=this.animationDuration,
|
228 |
+
this.zooming&&(c=0),this.hhLine.stop(),this.hhLine.animate({translate:b+","+a},c,"easeOutSine"),this.prevLineY=a,this.prevLineX=b)}},hideCursor:function(a){this.forceShow=!1;this.chart.wasTouched&&this.leaveAfterTouch||this.isHidden||this.leaveCursor||(this.hideCursorReal(),a?this.chart.handleCursorHide():this.fire({target:this,chart:this.chart,type:"onHideCursor"}),this.chart.setMouseCursor("auto"))},hideCursorReal:function(){this.hideLines();this.isHidden=!0;this.index=this.prevLineY=this.prevLineX=
|
229 |
+
this.mouseY0=this.mouseX0=this.fy=this.fx=NaN},hideLines:function(){this.vvLine&&this.vvLine.hide();this.hhLine&&this.hhLine.hide();this.fullLines&&this.fullLines.hide();this.isHidden=!0;this.chart.handleCursorHide()},showCursor:function(a){!this.drawing&&this.enabled&&(this.vLineEnabled&&this.vvLine&&this.vvLine.show(),this.hLineEnabled&&this.hhLine&&this.hhLine.show(),this.isHidden=!1,this.updateFullLine(),a||this.fire({target:this,chart:this.chart,type:"onShowCursor"}),this.pan&&this.chart.setMouseCursor("move"))},
|
230 |
+
updateFullLine:function(){this.zooming&&this.fullWidth&&this.selection&&(this.rotate?0<this.selection.height&&this.hhLine.hide():0<this.selection.width&&this.vvLine.hide())},updateSelection:function(){if(!this.pan&&this.enabled){var a=this.mouseX,b=this.mouseY;isNaN(this.fx)||(a=this.fx);isNaN(this.fy)||(b=this.fy);this.clearSelection();var c=this.mouseX0,e=this.mouseY0,g=this.width,f=this.height,a=d.fitToBounds(a,0,g),b=d.fitToBounds(b,0,f),h;a<c&&(h=a,a=c,c=h);b<e&&(h=b,b=e,e=h);this.hZoomEnabled?
|
231 |
+
g=a-c:c=0;this.vZoomEnabled?f=b-e:e=0;isNaN(this.mouse2X)&&0<Math.abs(g)&&0<Math.abs(f)&&(a=this.chart,b=d.rect(this.container,g,f,this.cursorColor,this.selectionAlpha),d.setCN(a,b,"cursor-selection"),b.width=g,b.height=f,b.translate(c,e),this.set.push(b),this.selection=b);this.updateFullLine()}},mouseIsOver:function(){var a=this.mouseX,b=this.mouseY;if(this.justReleased)return this.justReleased=!1,!0;if(this.mouseIsDown)return!0;if(!this.chart.mouseIsOver)return this.handleMouseOut(),!1;if(0<a&&
|
232 |
+
a<this.width&&0<b&&b<this.height)return!0;this.handleMouseOut();return!1},fixPosition:function(){this.prevY=this.prevX=NaN},handleMouseDown:function(){this.update();if(this.mouseIsOver())if(this.mouseIsDown=!0,this.mouseX0=this.mouseX,this.mouseY0=this.mouseY,this.mouse2X0=this.mouse2X,this.mouse2Y0=this.mouse2Y,this.drawing)this.drawStartY=this.mouseY,this.drawStartX=this.mouseX,this.drawingNow=!0;else if(this.dispatchMovedEvent(this.mouseX,this.mouseY),!this.pan&&isNaN(this.mouse2X0)&&(isNaN(this.fx)||
|
233 |
+
(this.mouseX0=this.fx),isNaN(this.fy)||(this.mouseY0=this.fy)),this.hZoomEnabled||this.vZoomEnabled){this.zooming=!0;var a={chart:this.chart,target:this,type:"zoomStarted"};a.x=this.mouseX/this.width;a.y=this.mouseY/this.height;this.index0=a.index=this.index;this.timestamp0=this.timestamp;this.fire(a)}},registerInitialMouse:function(){},handleReleaseOutside:function(){this.mouseIsDown=!1;if(this.drawingNow){this.drawingNow=!1;d.remove(this.drawingLine);var a=this.drawStartX,b=this.drawStartY,c=this.mouseX,
|
234 |
+
e=this.mouseY,g=this.chart;(2<Math.abs(a-c)||2<Math.abs(b-e))&&this.fire({type:"draw",target:this,chart:g,initialX:a,initialY:b,finalX:c,finalY:e})}this.zooming&&(this.zooming=!1,this.selectWithoutZooming?this.dispatchZoomEvent("selected"):(this.hZoomEnabled||this.vZoomEnabled)&&this.dispatchZoomEvent("zoomed"),this.rolledOver&&this.dispatchMovedEvent(this.mouseX,this.mouseY));this.mouse2Y0=this.mouse2X0=this.mouseY0=this.mouseX0=NaN},dispatchZoomEvent:function(a){if(!this.pan){var b=this.selection;
|
235 |
+
if(b&&3<Math.abs(b.width)&&3<Math.abs(b.height)){var c=Math.min(this.index,this.index0),e=Math.max(this.index,this.index0),d=c,f=e,h=this.chart,k=h.chartData,l=h.categoryAxis;l&&l.parseDates&&!l.equalSpacing&&(d=k[c]?k[c].time:Math.min(this.timestamp0,this.timestamp),f=k[e]?h.getEndTime(k[e].time):Math.max(this.timestamp0,this.timestamp));var b={type:a,chart:this.chart,target:this,end:f,start:d,startIndex:c,endIndex:e,selectionHeight:b.height,selectionWidth:b.width,selectionY:b.y,selectionX:b.x},
|
236 |
+
m;this.hZoomEnabled&&4<Math.abs(this.mouseX0-this.mouseX)&&(b.startX=this.mouseX0/this.width,b.endX=this.mouseX/this.width,m=!0);this.vZoomEnabled&&4<Math.abs(this.mouseY0-this.mouseY)&&(b.startY=1-this.mouseY0/this.height,b.endY=1-this.mouseY/this.height,m=!0);m&&(this.prevY=this.prevX=NaN,this.fire(b),"selected"!=a&&this.clearSelection());this.hideCursor()}}},dispatchMovedEvent:function(a,b,c,e){a=Math.round(a);b=Math.round(b);if(!this.isHidden&&(a!=this.prevX||b!=this.prevY||"changed"==c)){c||
|
237 |
+
(c="moved");var d=this.fx,f=this.fy;isNaN(d)&&(d=a);isNaN(f)&&(f=b);var h=!1;this.zooming&&this.pan&&(h=!0);h={hidden:this.isHidden,type:c,chart:this.chart,target:this,x:a,y:b,finalX:d,finalY:f,zooming:this.zooming,panning:h,mostCloseGraph:this.mostCloseGraph,index:this.index,skip:e,hideBalloons:this.hideGraphBalloons};this.prevIndex=this.index;this.rotate?(h.position=b,h.finalPosition=f):(h.position=a,h.finalPosition=d);this.prevX=a;this.prevY=b;e?this.chart.handleCursorMove(h):(this.fire(h),"changed"==
|
238 |
+
c&&this.chart.fire(h))}},dispatchPanEvent:function(){if(this.mouseIsDown){var a=d.roundTo((this.mouseX-this.mouseX0)/this.width,3),b=d.roundTo((this.mouseY-this.mouseY0)/this.height,3),c=d.roundTo((this.mouse2X-this.mouse2X0)/this.width,3),e=d.roundTo((this.mouse2Y-this.mouse2Y0)/this.height,2),g=!1;0!==Math.abs(a)&&0!==Math.abs(b)&&(g=!0);if(this.prevDeltaX==a||this.prevDeltaY==b)g=!1;isNaN(c)||isNaN(e)||(0!==Math.abs(c)&&0!==Math.abs(e)&&(g=!0),this.prevDelta2X!=c&&this.prevDelta2Y!=e)||(g=!1);
|
239 |
+
g&&(this.hideLines(),this.fire({type:"panning",chart:this.chart,target:this,deltaX:a,deltaY:b,delta2X:c,delta2Y:e,index:this.index}),this.prevDeltaX=a,this.prevDeltaY=b,this.prevDelta2X=c,this.prevDelta2Y=e)}},clearSelection:function(){var a=this.selection;a&&(a.width=0,a.height=0,a.remove())},destroy:function(){this.clear();d.remove(this.selection);this.selection=null;clearTimeout(this.syncTO);d.remove(this.set)},clear:function(){},setTimestamp:function(a){this.timestamp=a},setIndex:function(a,b){a!=
|
240 |
+
this.index&&(this.index=a,b||this.isHidden||this.dispatchMovedEvent(this.mouseX,this.mouseY,"changed"))},handleMouseOut:function(){this.enabled&&this.rolledOver&&(this.leaveCursor||this.setIndex(void 0),this.forceShow=!1,this.hideCursor(),this.rolledOver=!1)},showCursorAt:function(a){var b=this.chart.categoryAxis;b&&this.setPosition(b.categoryToCoordinate(a),a)},setPosition:function(a,b){var c=this.chart,e=c.categoryAxis;if(e){var d,f;void 0===b&&(b=e.coordinateToValue(a));e.showBalloonAt(b,a);this.forceShow=
|
241 |
+
!0;e.stickBalloonToCategory?c.rotate?this.fixHLine(a,0):this.fixVLine(a,0):(this.showCursor(),c.rotate?this.hhLine.translate(0,a):this.vvLine.translate(a,0));c.rotate?d=a:f=a;c.rotate?(this.vvLine&&this.vvLine.hide(),this.hhLine&&this.hhLine.show()):(this.hhLine&&this.hhLine.hide(),this.vvLine&&this.vvLine.show());this.updateFullLine();this.isHidden=!1;this.dispatchMovedEvent(f,d,"moved",!0)}},enableDrawing:function(a){this.enabled=!a;this.hideCursor();this.drawing=a},syncWithCursor:function(a,b){clearTimeout(this.syncTO);
|
242 |
+
a&&(a.isHidden?this.hideCursor(!0):this.syncWithCursorReal(a,b))},isZooming:function(a){this.zooming=a},syncWithCursorReal:function(a,b){var c=a.vvLine,e=a.hhLine;this.index=a.index;this.forceShow=!0;this.zooming&&this.pan||this.showCursor(!0);this.hideGraphBalloons=b;this.justReleased=a.justReleased;this.zooming=a.zooming;this.index0=a.index0;this.mouseX0=a.mouseX0;this.mouseY0=a.mouseY0;this.mouse2X0=a.mouse2X0;this.mouse2Y0=a.mouse2Y0;this.timestamp0=a.timestamp0;this.prevDeltaX=a.prevDeltaX;this.prevDeltaY=
|
243 |
+
a.prevDeltaY;this.prevDelta2X=a.prevDelta2X;this.prevDelta2Y=a.prevDelta2Y;this.fx=a.fx;this.fy=a.fy;a.zooming&&this.updateSelection();var d=a.mouseX,f=a.mouseY;this.rotate?(d=NaN,this.vvLine&&this.vvLine.hide(),this.hhLine&&e&&(isNaN(a.fy)?this.hhLine.translate(0,a.mouseY):this.fixHLine(a.fy,0))):(f=NaN,this.hhLine&&this.hhLine.hide(),this.vvLine&&c&&(isNaN(a.fx)?this.vvLine.translate(a.mouseX,0):this.fixVLine(a.fx,0)));this.dispatchMovedEvent(d,f,"moved",!0)}})})();(function(){var d=window.AmCharts;d.SimpleChartScrollbar=d.Class({construct:function(a){this.createEvents("zoomed","zoomStarted","zoomEnded");this.backgroundColor="#D4D4D4";this.backgroundAlpha=1;this.selectedBackgroundColor="#EFEFEF";this.scrollDuration=this.selectedBackgroundAlpha=1;this.resizeEnabled=!0;this.hideResizeGrips=!1;this.scrollbarHeight=20;this.updateOnReleaseOnly=!1;9>document.documentMode&&(this.updateOnReleaseOnly=!0);this.dragIconHeight=this.dragIconWidth=35;this.dragIcon="dragIconRoundBig";
|
244 |
+
this.dragCursorHover="cursor: move; cursor: grab; cursor: -moz-grab; cursor: -webkit-grab;";this.dragCursorDown="cursor: move; cursor: grab; cursor: -moz-grabbing; cursor: -webkit-grabbing;";this.vResizeCursor="ns-resize";this.hResizeCursor="ew-resize";this.enabled=!0;this.percentStart=this.offset=0;this.percentEnd=1;d.applyTheme(this,a,"SimpleChartScrollbar")},getPercents:function(){var a=this.getDBox(),b=a.x,c=a.y,e=a.width,a=a.height;this.rotate?(b=1-c/this.height,c=1-(c+a)/this.height):(c=b/this.width,
|
245 |
+
b=(b+e)/this.width);this.percentStart=c;this.percentEnd=b},draw:function(){var a=this;a.destroy();if(a.enabled){var b=a.chart.container,c=a.rotate,e=a.chart;e.panRequired=!0;var g=b.set();a.set=g;c?d.setCN(e,g,"scrollbar-vertical"):d.setCN(e,g,"scrollbar-horizontal");e.scrollbarsSet.push(g);var f,h;c?(f=a.scrollbarHeight,h=e.plotAreaHeight):(h=a.scrollbarHeight,f=e.plotAreaWidth);a.width=f;if((a.height=h)&&f){var k=d.rect(b,f,h,a.backgroundColor,a.backgroundAlpha,1,a.backgroundColor,a.backgroundAlpha);
|
246 |
+
d.setCN(e,k,"scrollbar-bg");a.bg=k;g.push(k);k=d.rect(b,f,h,"#000",.005);g.push(k);a.invisibleBg=k;k.click(function(){a.handleBgClick()}).mouseover(function(){a.handleMouseOver()}).mouseout(function(){a.handleMouseOut()}).touchend(function(){a.handleBgClick()});k=d.rect(b,f,h,a.selectedBackgroundColor,a.selectedBackgroundAlpha);d.setCN(e,k,"scrollbar-bg-selected");a.selectedBG=k;g.push(k);f=d.rect(b,f,h,"#000",.005);a.dragger=f;g.push(f);f.mousedown(function(b){a.handleDragStart(b)}).mouseup(function(){a.handleDragStop()}).mouseover(function(){a.handleDraggerOver()}).mouseout(function(){a.handleMouseOut()}).touchstart(function(b){a.handleDragStart(b)}).touchend(function(){a.handleDragStop()});
|
247 |
+
h=e.pathToImages;var l,k=a.dragIcon.replace(/\.[a-z]*$/i,"");d.isAbsolute(k)&&(h="");c?(l=h+k+"H"+e.extension,h=a.dragIconWidth,c=a.dragIconHeight):(l=h+k+e.extension,c=a.dragIconWidth,h=a.dragIconHeight);k=b.image(l,0,0,c,h);d.setCN(e,k,"scrollbar-grip-left");l=b.image(l,0,0,c,h);d.setCN(e,l,"scrollbar-grip-right");var m=10,n=20;e.panEventsEnabled&&(m=25,n=a.scrollbarHeight);var q=d.rect(b,m,n,"#000",.005),p=d.rect(b,m,n,"#000",.005);p.translate(-(m-c)/2,-(n-h)/2);q.translate(-(m-c)/2,-(n-h)/2);
|
248 |
+
c=b.set([k,p]);b=b.set([l,q]);a.iconLeft=c;g.push(a.iconLeft);a.iconRight=b;g.push(b);a.updateGripCursor(!1);e.makeAccessible(c,a.accessibleLabel);e.makeAccessible(b,a.accessibleLabel);e.makeAccessible(f,a.accessibleLabel);c.setAttr("role","menuitem");b.setAttr("role","menuitem");f.setAttr("role","menuitem");void 0!==a.tabIndex&&(c.setAttr("tabindex",a.tabIndex),c.keyup(function(b){a.handleKeys(b,1,0)}));void 0!==a.tabIndex&&(f.setAttr("tabindex",a.tabIndex),f.keyup(function(b){a.handleKeys(b,1,1)}));
|
249 |
+
void 0!==a.tabIndex&&(b.setAttr("tabindex",a.tabIndex),b.keyup(function(b){a.handleKeys(b,0,1)}));c.mousedown(function(){a.leftDragStart()}).mouseup(function(){a.leftDragStop()}).mouseover(function(){a.iconRollOver()}).mouseout(function(){a.iconRollOut()}).touchstart(function(){a.leftDragStart()}).touchend(function(){a.leftDragStop()});b.mousedown(function(){a.rightDragStart()}).mouseup(function(){a.rightDragStop()}).mouseover(function(){a.iconRollOver()}).mouseout(function(){a.iconRollOut()}).touchstart(function(){a.rightDragStart()}).touchend(function(){a.rightDragStop()});
|
250 |
+
d.ifArray(e.chartData)?g.show():g.hide();a.hideDragIcons();a.clipDragger(!1)}g.translate(a.x,a.y);g.node.style.msTouchAction="none";g.node.style.touchAction="none"}},handleKeys:function(a,b,c){this.getPercents();var e=this.percentStart,d=this.percentEnd;if(this.rotate)var f=d,d=e,e=f;if(37==a.keyCode||40==a.keyCode)e-=.02*b,d-=.02*c;if(39==a.keyCode||38==a.keyCode)e+=.02*b,d+=.02*c;this.rotate&&(a=d,d=e,e=a);isNaN(d)||isNaN(e)||this.percentZoom(e,d,!0)},updateScrollbarSize:function(a,b){if(!isNaN(a)&&
|
251 |
+
!isNaN(b)){a=Math.round(a);b=Math.round(b);var c=this.dragger,e,d,f,h,k;this.rotate?(e=0,d=a,f=this.width+1,h=b-a,c.setAttr("height",b-a),c.setAttr("y",d)):(e=a,d=0,f=b-a,h=this.height+1,k=b-a,c.setAttr("x",e),c.setAttr("width",k));this.clipAndUpdate(e,d,f,h)}},update:function(){var a,b=!1,c,e,d=this.x,f=this.y,h=this.dragger,k=this.getDBox();if(k){c=k.x+d;e=k.y+f;var l=k.width,k=k.height,m=this.rotate,n=this.chart,q=this.width,p=this.height,t=n.mouseX,n=n.mouseY;a=this.initialMouse;this.forceClip&&
|
252 |
+
this.clipDragger(!0);if(this.dragging){var r=this.initialCoord;if(m)a=r+(n-a),0>a&&(a=0),r=p-k,a>r&&(a=r),h.setAttr("y",a);else{a=r+(t-a);0>a&&(a=0);r=q-l;if(a>r||isNaN(a))a=r;h.setAttr("x",a)}this.clipDragger(!0)}if(this.resizingRight){if(m)if(a=n-e,!isNaN(this.maxHeight)&&a>this.maxHeight&&(a=this.maxHeight),a+e>p+f&&(a=p-e+f),0>a)this.resizingRight=!1,b=this.resizingLeft=!0;else{if(0===a||isNaN(a))a=.1;h.setAttr("height",a)}else if(a=t-c,!isNaN(this.maxWidth)&&a>this.maxWidth&&(a=this.maxWidth),
|
253 |
+
a+c>q+d&&(a=q-c+d),0>a)this.resizingRight=!1,b=this.resizingLeft=!0;else{if(0===a||isNaN(a))a=.1;h.setAttr("width",a)}this.clipDragger(!0)}if(this.resizingLeft){if(m)if(c=e,e=n,e<f&&(e=f),isNaN(e)&&(e=f),e>p+f&&(e=p+f),a=!0===b?c-e:k+c-e,!isNaN(this.maxHeight)&&a>this.maxHeight&&(a=this.maxHeight,e=c),0>a)this.resizingRight=!0,this.resizingLeft=!1,h.setAttr("y",c+k-f);else{if(0===a||isNaN(a))a=.1;h.setAttr("y",e-f);h.setAttr("height",a)}else if(e=t,e<d&&(e=d),isNaN(e)&&(e=d),e>q+d&&(e=q+d),a=!0===
|
254 |
+
b?c-e:l+c-e,!isNaN(this.maxWidth)&&a>this.maxWidth&&(a=this.maxWidth,e=c),0>a)this.resizingRight=!0,this.resizingLeft=!1,h.setAttr("x",c+l-d);else{if(0===a||isNaN(a))a=.1;h.setAttr("x",e-d);h.setAttr("width",a)}this.clipDragger(!0)}}},stopForceClip:function(){this.animating=this.forceClip=!1},clipDragger:function(a){var b=this.getDBox();if(b){var c=b.x,e=b.y,d=b.width,b=b.height,f=!1;if(this.rotate){if(c=0,d=this.width+1,this.clipY!=e||this.clipH!=b)f=!0}else if(e=0,b=this.height+1,this.clipX!=c||
|
255 |
+
this.clipW!=d)f=!0;f&&this.clipAndUpdate(c,e,d,b);a&&(this.updateOnReleaseOnly||this.dispatchScrollbarEvent())}},maskGraphs:function(){},clipAndUpdate:function(a,b,c,d){this.clipX=a;this.clipY=b;this.clipW=c;this.clipH=d;this.selectedBG.setAttr("width",c);this.selectedBG.setAttr("height",d);this.selectedBG.translate(a,b);this.updateDragIconPositions();this.maskGraphs(a,b,c,d)},dispatchScrollbarEvent:function(){if(this.skipEvent)this.skipEvent=!1;else{var a=this.chart;a.hideBalloon();var b=this.getDBox(),
|
256 |
+
c=b.x,d=b.y,g=b.width,b=b.height;this.getPercents();this.rotate?(c=d,g=this.height/b):g=this.width/g;a={type:"zoomed",position:c,chart:a,target:this,multiplier:g,relativeStart:this.percentStart,relativeEnd:this.percentEnd};if(this.percentStart!=this.prevPercentStart||this.percentEnd!=this.prevPercentEnd||this.prevMultiplier!=g)this.fire(a),this.prevPercentStart=this.percentStart,this.prevPercentEnd=this.percentEnd,this.prevMultiplier=g}},updateDragIconPositions:function(){var a=this.getDBox(),b=a.x,
|
257 |
+
c=a.y,d=this.iconLeft,g=this.iconRight,f,h,k=this.scrollbarHeight;this.rotate?(f=this.dragIconWidth,h=this.dragIconHeight,d.translate((k-h)/2,c-f/2),g.translate((k-h)/2,c+a.height-f/2)):(f=this.dragIconHeight,h=this.dragIconWidth,d.translate(b-h/2,(k-f)/2),g.translate(b-h/2+a.width,(k-f)/2))},showDragIcons:function(){this.resizeEnabled&&(this.iconLeft.show(),this.iconRight.show())},hideDragIcons:function(){if(!this.resizingLeft&&!this.resizingRight&&!this.dragging){if(this.hideResizeGrips||!this.resizeEnabled)this.iconLeft.hide(),
|
258 |
+
this.iconRight.hide();this.removeCursors()}},removeCursors:function(){this.chart.setMouseCursor("auto")},fireZoomEvent:function(a){this.fire({type:a,chart:this.chart,target:this})},percentZoom:function(a,b,c){a=d.fitToBounds(a,0,b);b=d.fitToBounds(b,a,1);if(this.dragger&&this.enabled){this.dragger.stop();isNaN(a)&&(a=0);isNaN(b)&&(b=1);var e,g;this.rotate?(e=this.height,b=e-e*b,g=e-e*a):(e=this.width,g=e*b,b=e*a);this.updateScrollbarSize(b,g);this.clipDragger(!1);this.getPercents();c&&this.dispatchScrollbarEvent()}},
|
259 |
+
destroy:function(){this.clear();d.remove(this.set);d.remove(this.iconRight);d.remove(this.iconLeft)},clear:function(){},handleDragStart:function(){if(this.enabled){this.fireZoomEvent("zoomStarted");var a=this.chart;this.dragger.stop();this.removeCursors();d.isModern&&(this.dragger.node.style.cssText=this.dragCursorDown);this.dragging=!0;var b=this.getDBox();this.rotate?(this.initialCoord=b.y,this.initialMouse=a.mouseY):(this.initialCoord=b.x,this.initialMouse=a.mouseX)}},handleDragStop:function(){this.updateOnReleaseOnly&&
|
260 |
+
(this.update(),this.skipEvent=!1,this.dispatchScrollbarEvent());this.dragging=!1;this.mouseIsOver&&this.removeCursors();d.isModern&&(this.dragger.node.style.cssText=this.dragCursorHover);this.update();this.fireZoomEvent("zoomEnded")},handleDraggerOver:function(){this.handleMouseOver();d.isModern&&(this.dragger.node.style.cssText=this.dragCursorHover)},leftDragStart:function(){this.fireZoomEvent("zoomStarted");this.dragger.stop();this.resizingLeft=!0;this.updateGripCursor(!0)},updateGripCursor:function(a){d.isModern&&
|
261 |
+
(a=this.rotate?a?this.vResizeCursorDown:this.vResizeCursorHover:a?this.hResizeCursorDown:this.hResizeCursorHover)&&(this.iconRight&&(this.iconRight.node.style.cssText=a),this.iconLeft&&(this.iconLeft.node.style.cssText=a))},leftDragStop:function(){this.resizingLeft&&(this.resizingLeft=!1,this.mouseIsOver||this.removeCursors(),this.updateOnRelease(),this.fireZoomEvent("zoomEnded"));this.updateGripCursor(!1)},rightDragStart:function(){this.fireZoomEvent("zoomStarted");this.dragger.stop();this.resizingRight=
|
262 |
+
!0;this.updateGripCursor(!0)},rightDragStop:function(){this.resizingRight&&(this.resizingRight=!1,this.mouseIsOver||this.removeCursors(),this.updateOnRelease(),this.fireZoomEvent("zoomEnded"));this.updateGripCursor(!1)},iconRollOut:function(){this.removeCursors()},iconRollOver:function(){this.rotate?this.vResizeCursor&&this.chart.setMouseCursor(this.vResizeCursor):this.hResizeCursor&&this.chart.setMouseCursor(this.hResizeCursor);this.handleMouseOver()},getDBox:function(){if(this.dragger)return this.dragger.getBBox()},
|
263 |
+
handleBgClick:function(){var a=this;if(!a.resizingRight&&!a.resizingLeft){a.zooming=!0;var b,c,e=a.scrollDuration,g=a.dragger;b=a.getDBox();var f=b.height,h=b.width;c=a.chart;var k=a.y,l=a.x,m=a.rotate;m?(b="y",c=c.mouseY-f/2-k,c=d.fitToBounds(c,0,a.height-f)):(b="x",c=c.mouseX-h/2-l,c=d.fitToBounds(c,0,a.width-h));a.updateOnReleaseOnly?(a.skipEvent=!1,g.setAttr(b,c),a.dispatchScrollbarEvent(),a.clipDragger()):(a.animating=!0,c=Math.round(c),m?g.animate({y:c},e,">"):g.animate({x:c},e,">"),a.forceClip=
|
264 |
+
!0,clearTimeout(a.forceTO),a.forceTO=setTimeout(function(){a.stopForceClip.call(a)},5E3*e))}},updateOnRelease:function(){this.updateOnReleaseOnly&&(this.update(),this.skipEvent=!1,this.dispatchScrollbarEvent())},handleReleaseOutside:function(){if(this.set){if(this.resizingLeft||this.resizingRight||this.dragging)this.dragging=this.resizingRight=this.resizingLeft=!1,this.updateOnRelease(),this.removeCursors();this.animating=this.mouseIsOver=!1;this.hideDragIcons();this.update()}},handleMouseOver:function(){this.mouseIsOver=
|
265 |
+
!0;this.showDragIcons()},handleMouseOut:function(){this.mouseIsOver=!1;this.hideDragIcons();this.removeCursors()}})})();(function(){var d=window.AmCharts;d.ChartScrollbar=d.Class({inherits:d.SimpleChartScrollbar,construct:function(a){this.cname="ChartScrollbar";d.ChartScrollbar.base.construct.call(this,a);this.graphLineColor="#BBBBBB";this.graphLineAlpha=0;this.graphFillColor="#BBBBBB";this.graphFillAlpha=1;this.selectedGraphLineColor="#888888";this.selectedGraphLineAlpha=0;this.selectedGraphFillColor="#888888";this.selectedGraphFillAlpha=1;this.gridCount=0;this.gridColor="#FFFFFF";this.gridAlpha=.7;this.skipEvent=
|
266 |
+
this.autoGridCount=!1;this.color="#FFFFFF";this.scrollbarCreated=!1;this.oppositeAxis=!0;this.accessibleLabel="Zoom chart using cursor arrows";d.applyTheme(this,a,this.cname)},init:function(){var a=this.categoryAxis,b=this.chart,c=this.gridAxis;a||("CategoryAxis"==this.gridAxis.cname?(this.catScrollbar=!0,a=new d.CategoryAxis,a.id="scrollbar"):(a=new d.ValueAxis,a.data=b.chartData,a.id=c.id,a.type=c.type,a.maximumDate=c.maximumDate,a.minimumDate=c.minimumDate,a.minPeriod=c.minPeriod,a.minMaxField=
|
267 |
+
c.minMaxField),this.categoryAxis=a);a.chart=b;var e=b.categoryAxis;e&&(a.firstDayOfWeek=e.firstDayOfWeek);a.dateFormats=c.dateFormats;a.markPeriodChange=c.markPeriodChange;a.boldPeriodBeginning=c.boldPeriodBeginning;a.labelFunction=c.labelFunction;a.axisItemRenderer=d.RecItem;a.axisRenderer=d.RecAxis;a.guideFillRenderer=d.RecFill;a.inside=!0;a.fontSize=this.fontSize;a.tickLength=0;a.axisAlpha=0;d.isString(this.graph)&&(this.graph=d.getObjById(b.graphs,this.graph));(a=this.graph)&&this.catScrollbar&&
|
268 |
+
(c=this.valueAxis,c||(this.valueAxis=c=new d.ValueAxis,c.visible=!1,c.scrollbar=!0,c.axisItemRenderer=d.RecItem,c.axisRenderer=d.RecAxis,c.guideFillRenderer=d.RecFill,c.labelsEnabled=!1,c.chart=b),b=this.unselectedGraph,b||(b=new d.AmGraph,b.scrollbar=!0,this.unselectedGraph=b,b.negativeBase=a.negativeBase,b.noStepRisers=a.noStepRisers),b=this.selectedGraph,b||(b=new d.AmGraph,b.scrollbar=!0,this.selectedGraph=b,b.negativeBase=a.negativeBase,b.noStepRisers=a.noStepRisers));this.scrollbarCreated=!0},
|
269 |
+
draw:function(){var a=this;d.ChartScrollbar.base.draw.call(a);if(a.enabled){a.scrollbarCreated||a.init();var b=a.chart,c=b.chartData,e=a.categoryAxis,g=a.rotate,f=a.x,h=a.y,k=a.width,l=a.height,m=a.gridAxis,n=a.set;e.setOrientation(!g);e.parseDates=m.parseDates;"ValueAxis"==a.categoryAxis.cname&&(e.rotate=!g);e.equalSpacing=m.equalSpacing;e.minPeriod=m.minPeriod;e.startOnAxis=m.startOnAxis;e.width=k-1;e.height=l;e.gridCount=a.gridCount;e.gridColor=a.gridColor;e.gridAlpha=a.gridAlpha;e.color=a.color;
|
270 |
+
e.tickLength=0;e.axisAlpha=0;e.autoGridCount=a.autoGridCount;e.parseDates&&!e.equalSpacing&&e.timeZoom(b.firstTime,b.lastTime);e.minimum=a.gridAxis.fullMin;e.maximum=a.gridAxis.fullMax;e.strictMinMax=!0;e.zoom(0,c.length-1);if((m=a.graph)&&a.catScrollbar){var q=a.valueAxis,p=m.valueAxis;q.id=p.id;q.rotate=g;q.setOrientation(g);q.width=k;q.height=l;q.dataProvider=c;q.reversed=p.reversed;q.logarithmic=p.logarithmic;q.gridAlpha=0;q.axisAlpha=0;n.push(q.set);g?(q.y=h,q.x=0):(q.x=f,q.y=0);var f=Infinity,
|
271 |
+
h=-Infinity,t;for(t=0;t<c.length;t++){var r=c[t].axes[p.id].graphs[m.id].values,w;for(w in r)if(r.hasOwnProperty(w)&&"percents"!=w&&"total"!=w){var z=r[w];z<f&&(f=z);z>h&&(h=z)}}Infinity!=f&&(q.minimum=f);-Infinity!=h&&(q.maximum=h+.1*(h-f));f==h&&(--q.minimum,q.maximum+=1);void 0!==a.minimum&&(q.minimum=a.minimum);void 0!==a.maximum&&(q.maximum=a.maximum);q.zoom(0,c.length-1);w=a.unselectedGraph;w.id=m.id;w.bcn="scrollbar-graph-";w.rotate=g;w.chart=b;w.data=c;w.valueAxis=q;w.chart=m.chart;w.categoryAxis=
|
272 |
+
a.categoryAxis;w.periodSpan=m.periodSpan;w.valueField=m.valueField;w.openField=m.openField;w.closeField=m.closeField;w.highField=m.highField;w.lowField=m.lowField;w.lineAlpha=a.graphLineAlpha;w.lineColorR=a.graphLineColor;w.fillAlphas=a.graphFillAlpha;w.fillColorsR=a.graphFillColor;w.connect=m.connect;w.hidden=m.hidden;w.width=k;w.height=l;w.pointPosition=m.pointPosition;w.stepDirection=m.stepDirection;w.periodSpan=m.periodSpan;p=a.selectedGraph;p.id=m.id;p.bcn=w.bcn+"selected-";p.rotate=g;p.chart=
|
273 |
+
b;p.data=c;p.valueAxis=q;p.chart=m.chart;p.categoryAxis=e;p.periodSpan=m.periodSpan;p.valueField=m.valueField;p.openField=m.openField;p.closeField=m.closeField;p.highField=m.highField;p.lowField=m.lowField;p.lineAlpha=a.selectedGraphLineAlpha;p.lineColorR=a.selectedGraphLineColor;p.fillAlphas=a.selectedGraphFillAlpha;p.fillColorsR=a.selectedGraphFillColor;p.connect=m.connect;p.hidden=m.hidden;p.width=k;p.height=l;p.pointPosition=m.pointPosition;p.stepDirection=m.stepDirection;p.periodSpan=m.periodSpan;
|
274 |
+
b=a.graphType;b||(b=m.type);w.type=b;p.type=b;c=c.length-1;w.zoom(0,c);p.zoom(0,c);p.set.click(function(){a.handleBackgroundClick()}).mouseover(function(){a.handleMouseOver()}).mouseout(function(){a.handleMouseOut()});w.set.click(function(){a.handleBackgroundClick()}).mouseover(function(){a.handleMouseOver()}).mouseout(function(){a.handleMouseOut()});n.push(w.set);n.push(p.set)}n.push(e.set);n.push(e.labelsSet);a.bg.toBack();a.invisibleBg.toFront();a.dragger.toFront();a.iconLeft.toFront();a.iconRight.toFront()}},
|
275 |
+
timeZoom:function(a,b,c){this.startTime=a;this.endTime=b;this.timeDifference=b-a;this.skipEvent=!d.toBoolean(c);this.zoomScrollbar();this.dispatchScrollbarEvent()},zoom:function(a,b){this.start=a;this.end=b;this.skipEvent=!0;this.zoomScrollbar()},dispatchScrollbarEvent:function(){if(this.categoryAxis&&"ValueAxis"==this.categoryAxis.cname)d.ChartScrollbar.base.dispatchScrollbarEvent.call(this);else if(this.skipEvent)this.skipEvent=!1;else{var a=this.chart.chartData,b,c,e=this.dragger.getBBox();b=e.x;
|
276 |
+
var g=e.y,f=e.width,e=e.height,h=this.chart;this.rotate?(b=g,c=e):c=f;f={type:"zoomed",target:this};f.chart=h;var k=this.categoryAxis,l=this.stepWidth,g=h.minSelectedTime,e=h.maxSelectedTime,m=!1;if(k.parseDates&&!k.equalSpacing){if(a=h.lastTime,h=h.firstTime,k=Math.round(b/l)+h,b=this.dragging?k+this.timeDifference:Math.round((b+c)/l)+h,k>b&&(k=b),0<g&&b-k<g&&(b=Math.round(k+(b-k)/2),m=Math.round(g/2),k=b-m,b+=m,m=!0),0<e&&b-k>e&&(b=Math.round(k+(b-k)/2),m=Math.round(e/2),k=b-m,b+=m,m=!0),b>a&&(b=
|
277 |
+
a),b-g<k&&(k=b-g),k<h&&(k=h),k+g>b&&(b=k+g),k!=this.startTime||b!=this.endTime)this.startTime=k,this.endTime=b,f.start=k,f.end=b,f.startDate=new Date(k),f.endDate=new Date(b),this.fire(f)}else{k.startOnAxis||(b+=l/2);c-=this.stepWidth/2;g=k.xToIndex(b);b=k.getCoordinate(g)-this.stepWidth/2;b=k.xToIndex(b+c);if(g!=this.start||this.end!=b)k.startOnAxis&&(this.resizingRight&&g==b&&b++,this.resizingLeft&&g==b&&(0<g?g--:b=1)),this.start=g,this.end=this.dragging?this.start+this.difference:b,f.start=this.start,
|
278 |
+
f.end=this.end,k.parseDates&&(a[this.start]&&(f.startDate=new Date(a[this.start].time)),a[this.end]&&(f.endDate=new Date(a[this.end].time))),this.fire(f);this.percentStart=g;this.percentEnd=b}m&&this.zoomScrollbar(!0)}},zoomScrollbar:function(a){if((!(this.dragging||this.resizingLeft||this.resizingRight||this.animating)||a)&&this.dragger&&this.enabled){var b,c,d=this.chart;a=d.chartData;var g=this.categoryAxis;g.parseDates&&!g.equalSpacing?(a=g.stepWidth,c=d.firstTime,b=a*(this.startTime-c),c=a*(this.endTime-
|
279 |
+
c)):(a[this.start]&&(b=a[this.start].x[g.id]),a[this.end]&&(c=a[this.end].x[g.id]),a=g.stepWidth,g.startOnAxis||(d=a/2,b-=d,c+=d));this.stepWidth=a;isNaN(b)||isNaN(c)||this.updateScrollbarSize(b,c)}},maskGraphs:function(a,b,c,d){var g=this.selectedGraph;g&&g.set.clipRect(a,b,c,d)},handleDragStart:function(){d.ChartScrollbar.base.handleDragStart.call(this);this.difference=this.end-this.start;this.timeDifference=this.endTime-this.startTime;0>this.timeDifference&&(this.timeDifference=0)},handleBackgroundClick:function(){d.ChartScrollbar.base.handleBackgroundClick.call(this);
|
280 |
+
this.dragging||(this.difference=this.end-this.start,this.timeDifference=this.endTime-this.startTime,0>this.timeDifference&&(this.timeDifference=0))}})})();(function(){var d=window.AmCharts;d.AmBalloon=d.Class({construct:function(a){this.cname="AmBalloon";this.enabled=!0;this.fillColor="#FFFFFF";this.fillAlpha=.8;this.borderThickness=2;this.borderColor="#FFFFFF";this.borderAlpha=1;this.cornerRadius=0;this.maxWidth=220;this.horizontalPadding=8;this.verticalPadding=4;this.pointerWidth=6;this.pointerOrientation="V";this.color="#000000";this.adjustBorderColor=!0;this.show=this.follow=this.showBullet=!1;this.bulletSize=3;this.shadowAlpha=.4;this.shadowColor=
|
281 |
+
"#000000";this.fadeOutDuration=this.animationDuration=.3;this.fixedPosition=!0;this.offsetY=6;this.offsetX=1;this.textAlign="center";this.disableMouseEvents=!0;this.deltaSignX=this.deltaSignY=1;d.isModern||(this.offsetY*=1.5);this.sdy=this.sdx=0;d.applyTheme(this,a,this.cname)},draw:function(){var a=this.pointToX,b=this.pointToY;d.isModern||(this.drop=!1);var c=this.chart;d.VML&&(this.fadeOutDuration=0);this.xAnim&&c.stopAnim(this.xAnim);this.yAnim&&c.stopAnim(this.yAnim);this.sdy=this.sdx=0;if(!isNaN(a)){var e=
|
282 |
+
this.follow,g=c.container,f=this.set;d.remove(f);this.removeDiv();f=g.set();f.node.style.pointerEvents="none";this.set=f;this.mainSet?(this.mainSet.push(this.set),this.sdx=this.mainSet.x,this.sdy=this.mainSet.y):c.balloonsSet.push(f);if(this.show){var h=this.l,k=this.t,l=this.r,m=this.b,n=this.balloonColor,q=this.fillColor,p=this.borderColor,t=q;void 0!=n&&(this.adjustBorderColor?t=p=n:q=n);var r=this.horizontalPadding,w=this.verticalPadding,z=this.pointerWidth,x=this.pointerOrientation,u=this.cornerRadius,
|
283 |
+
A=c.fontFamily,y=this.fontSize;void 0==y&&(y=c.fontSize);var n=document.createElement("div"),B=c.classNamePrefix;n.className=B+"-balloon-div";this.className&&(n.className=n.className+" "+B+"-balloon-div-"+this.className);B=n.style;this.disableMouseEvents&&(B.pointerEvents="none");B.position="absolute";var D=this.minWidth,C=document.createElement("div");n.appendChild(C);var I=C.style;isNaN(D)||(I.minWidth=D-2*r+"px");I.textAlign=this.textAlign;I.maxWidth=this.maxWidth+"px";I.fontSize=y+"px";I.color=
|
284 |
+
this.color;I.fontFamily=A;C.innerHTML=this.text;c.chartDiv.appendChild(n);this.textDiv=n;var I=n.offsetWidth,H=n.offsetHeight;n.clientHeight&&(I=n.clientWidth,H=n.clientHeight);A=H+2*w;C=I+2*r;!isNaN(D)&&C<D&&(C=D);window.opera&&(A+=2);var Q=!1,y=this.offsetY;c.handDrawn&&(y+=c.handDrawScatter+2);"H"!=x?(D=a-C/2,b<k+A+10&&"down"!=x?(Q=!0,e&&(b+=y),y=b+z,this.deltaSignY=-1):(e&&(b-=y),y=b-A-z,this.deltaSignY=1)):(2*z>A&&(z=A/2),y=b-A/2,a<h+(l-h)/2?(D=a+z,this.deltaSignX=-1):(D=a-C-z,this.deltaSignX=
|
285 |
+
1));y+A>=m&&(y=m-A);y<k&&(y=k);D<h&&(D=h);D+C>l&&(D=l-C);var k=y+w,m=D+r,M=this.shadowAlpha,P=this.shadowColor,r=this.borderThickness,ia=this.bulletSize,J,w=this.fillAlpha,aa=this.borderAlpha;this.showBullet&&(J=d.circle(g,ia,t,w),f.push(J));this.drop?(h=C/1.6,l=0,"V"==x&&(x="down"),"H"==x&&(x="left"),"down"==x&&(D=a+1,y=b-h-h/3),"up"==x&&(l=180,D=a+1,y=b+h+h/3),"left"==x&&(l=270,D=a+h+h/3+2,y=b),"right"==x&&(l=90,D=a-h-h/3+2,y=b),k=y-H/2+1,m=D-I/2-1,q=d.drop(g,h,l,q,w,r,p,aa)):0<u||0===z?(0<M&&(a=
|
286 |
+
d.rect(g,C,A,q,0,r+1,P,M,u),d.isModern?a.translate(1,1):a.translate(4,4),f.push(a)),q=d.rect(g,C,A,q,w,r,p,aa,u)):(t=[],u=[],"H"!=x?(h=a-D,h>C-z&&(h=C-z),h<z&&(h=z),t=[0,h-z,a-D,h+z,C,C,0,0],u=Q?[0,0,b-y,0,0,A,A,0]:[A,A,b-y,A,A,0,0,A]):(x=b-y,x>A-z&&(x=A-z),x<z&&(x=z),u=[0,x-z,b-y,x+z,A,A,0,0],t=a<h+(l-h)/2?[0,0,D<a?0:a-D,0,0,C,C,0]:[C,C,D+C>a?C:a-D,C,C,0,0,C]),0<M&&(a=d.polygon(g,t,u,q,0,r,P,M),a.translate(1,1),f.push(a)),q=d.polygon(g,t,u,q,w,r,p,aa));this.bg=q;f.push(q);q.toFront();d.setCN(c,q,
|
287 |
+
"balloon-bg");this.className&&d.setCN(c,q,"balloon-bg-"+this.className);g=1*this.deltaSignX;m+=this.sdx;k+=this.sdy;B.left=m+"px";B.top=k+"px";f.translate(D-g,y,1,!0);q=q.getBBox();this.bottom=y+A+1;this.yPos=q.y+y;J&&J.translate(this.pointToX-D+g,b-y);b=this.animationDuration;0<this.animationDuration&&!e&&!isNaN(this.prevX)&&(f.translate(this.prevX,this.prevY,NaN,!0),f.animate({translate:D-g+","+y},b,"easeOutSine"),n&&(B.left=this.prevTX+"px",B.top=this.prevTY+"px",this.xAnim=c.animate({node:n},
|
288 |
+
"left",this.prevTX,m,b,"easeOutSine","px"),this.yAnim=c.animate({node:n},"top",this.prevTY,k,b,"easeOutSine","px")));this.prevX=D-g;this.prevY=y;this.prevTX=m;this.prevTY=k}}},fixPrevious:function(){this.rPrevX=this.prevX;this.rPrevY=this.prevY;this.rPrevTX=this.prevTX;this.rPrevTY=this.prevTY},restorePrevious:function(){this.prevX=this.rPrevX;this.prevY=this.rPrevY;this.prevTX=this.rPrevTX;this.prevTY=this.rPrevTY},followMouse:function(){if(this.follow&&this.show){var a=this.chart.mouseX-this.offsetX*
|
289 |
+
this.deltaSignX-this.sdx,b=this.chart.mouseY-this.sdy;this.pointToX=a;this.pointToY=b;if(a!=this.previousX||b!=this.previousY)if(this.previousX=a,this.previousY=b,0===this.cornerRadius)this.draw();else{var c=this.set;if(c){var d=c.getBBox(),a=a-d.width/2,g=b-d.height-10;a<this.l&&(a=this.l);a>this.r-d.width&&(a=this.r-d.width);g<this.t&&(g=b+10);c.translate(a,g);b=this.textDiv.style;b.left=a+this.horizontalPadding+"px";b.top=g+this.verticalPadding+"px"}}}},changeColor:function(a){this.balloonColor=
|
290 |
+
a},setBounds:function(a,b,c,d){this.l=a;this.t=b;this.r=c;this.b=d;this.destroyTO&&clearTimeout(this.destroyTO)},showBalloon:function(a){if(this.text!=a||this.positionChanged)this.text=a,this.isHiding=!1,this.show=!0,this.destroyTO&&clearTimeout(this.destroyTO),a=this.chart,this.fadeAnim1&&a.stopAnim(this.fadeAnim1),this.fadeAnim2&&a.stopAnim(this.fadeAnim2),this.draw(),this.positionChanged=!1},hide:function(a){var b=this;b.text=void 0;isNaN(a)&&(a=b.fadeOutDuration);var c=b.chart;if(0<a&&!b.isHiding){b.isHiding=
|
291 |
+
!0;b.destroyTO&&clearTimeout(b.destroyTO);b.destroyTO=setTimeout(function(){b.destroy.call(b)},1E3*a);b.follow=!1;b.show=!1;var d=b.set;d&&(d.setAttr("opacity",b.fillAlpha),b.fadeAnim1=d.animate({opacity:0},a,"easeInSine"));b.textDiv&&(b.fadeAnim2=c.animate({node:b.textDiv},"opacity",1,0,a,"easeInSine",""))}else b.show=!1,b.follow=!1,b.destroy()},setPosition:function(a,b){if(a!=this.pointToX||b!=this.pointToY)this.previousX=this.pointToX,this.previousY=this.pointToY,this.pointToX=a,this.pointToY=
|
292 |
+
b,this.positionChanged=!0},followCursor:function(a){var b=this;b.follow=a;clearInterval(b.interval);var c=b.chart.mouseX-b.sdx,d=b.chart.mouseY-b.sdy;!isNaN(c)&&a&&(b.pointToX=c-b.offsetX*b.deltaSignX,b.pointToY=d,b.followMouse(),b.interval=setInterval(function(){b.followMouse.call(b)},40))},removeDiv:function(){if(this.textDiv){var a=this.textDiv.parentNode;a&&a.removeChild(this.textDiv)}},destroy:function(){clearInterval(this.interval);d.remove(this.set);this.removeDiv();this.set=null}})})();(function(){var d=window.AmCharts;d.AmCoordinateChart=d.Class({inherits:d.AmChart,construct:function(a){d.AmCoordinateChart.base.construct.call(this,a);this.theme=a;this.createEvents("rollOverGraphItem","rollOutGraphItem","clickGraphItem","doubleClickGraphItem","rightClickGraphItem","clickGraph","rollOverGraph","rollOutGraph");this.startAlpha=1;this.startDuration=0;this.startEffect="elastic";this.sequencedAnimation=!0;this.colors="#FF6600 #FCD202 #B0DE09 #0D8ECF #2A0CD0 #CD0D74 #CC0000 #00CC00 #0000CC #DDDDDD #999999 #333333 #990000".split(" ");
|
293 |
+
this.balloonDateFormat="MMM DD, YYYY";this.valueAxes=[];this.graphs=[];this.guides=[];this.gridAboveGraphs=!1;d.applyTheme(this,a,"AmCoordinateChart")},initChart:function(){d.AmCoordinateChart.base.initChart.call(this);this.drawGraphs=!0;var a=this.categoryAxis;a&&(this.categoryAxis=d.processObject(a,d.CategoryAxis,this.theme));this.processValueAxes();this.createValueAxes();this.processGraphs();this.processGuides();d.VML&&(this.startAlpha=1);this.setLegendData(this.graphs);this.gridAboveGraphs&&(this.gridSet.toFront(),
|
294 |
+
this.bulletSet.toFront(),this.balloonsSet.toFront())},createValueAxes:function(){if(0===this.valueAxes.length){var a=new d.ValueAxis;this.addValueAxis(a)}},parseData:function(){this.processValueAxes();this.processGraphs()},parseSerialData:function(a){this.chartData=[];if(a)if(0<this.processTimeout){1>this.processCount&&(this.processCount=1);var b=a.length/this.processCount;this.parseCount=Math.ceil(b)-1;for(var c=0;c<b;c++)this.delayParseSerialData(a,c)}else this.parseCount=0,this.parsePartSerialData(a,
|
295 |
+
0,a.length,0);else this.onDataUpdated()},delayParseSerialData:function(a,b){var c=this,d=c.processCount;setTimeout(function(){c.parsePartSerialData.call(c,a,b*d,(b+1)*d,b)},c.processTimeout)},parsePartSerialData:function(a,b,c,e){c>a.length&&(c=a.length);var g=this.graphs,f={},h=this.seriesIdField;h||(h=this.categoryField);var k=!1,l,m=this.categoryAxis,n,q,p;m&&(k=m.parseDates,n=m.forceShowField,p=m.classNameField,q=m.labelColorField,l=m.categoryFunction);var t,r,w={},z;k&&(t=d.extractPeriod(m.minPeriod),
|
296 |
+
r=t.period,t=t.count,z=d.getPeriodDuration(r,t));var x={};this.lookupTable=x;var u,A=this.dataDateFormat,y={};for(u=b;u<c;u++){var B={},D=a[u];b=D[this.categoryField];B.dataContext=D;B.category=l?l(b,D,m):String(b);n&&(B.forceShow=D[n]);p&&(B.className=D[p]);q&&(B.labelColor=D[q]);x[D[h]]=B;if(k&&(m.categoryFunction?b=m.categoryFunction(b,D,m):(!A||b instanceof Date||(b=b.toString()+" |"),b=d.getDate(b,A,m.minPeriod)),b=d.resetDateToMin(b,r,t,m.firstDayOfWeek),B.category=b,B.time=b.getTime(),isNaN(B.time)))continue;
|
297 |
+
var C=this.valueAxes;B.axes={};B.x={};var I;for(I=0;I<C.length;I++){var H=C[I].id;B.axes[H]={};B.axes[H].graphs={};var Q;for(Q=0;Q<g.length;Q++){b=g[Q];var M=b.id,P=1.1;isNaN(b.gapPeriod)||(P=b.gapPeriod);var ia=b.periodValue;if(b.valueAxis.id==H){B.axes[H].graphs[M]={};var J={};J.index=u;var aa=D;b.dataProvider&&(aa=f);J.values=this.processValues(aa,b,ia);if(!b.connect||b.forceGap&&!isNaN(b.gapPeriod))if(y&&y[M]&&0<P&&B.time-w[M]>=z*P&&(y[M].gap=!0),b.forceGap){var P=0,ma;for(ma in J.values)P++;
|
298 |
+
0<P&&(w[M]=B.time,y[M]=J)}else w[M]=B.time,y[M]=J;this.processFields(b,J,aa);J.category=B.category;J.serialDataItem=B;J.graph=b;B.axes[H].graphs[M]=J}}}this.chartData[u]=B}if(this.parseCount==e){for(a=0;a<g.length;a++)b=g[a],b.dataProvider&&this.parseGraphData(b);this.dataChanged=!1;this.dispatchDataUpdated=!0;this.onDataUpdated()}},processValues:function(a,b,c){var e={},g,f=!1;"candlestick"!=b.type&&"ohlc"!=b.type||""===c||(f=!0);for(var h="value error open close low high".split(" "),k=0;k<h.length;k++){var l=
|
299 |
+
h[k];"value"!=l&&"error"!=l&&f&&(c=l.charAt(0).toUpperCase()+l.slice(1));var m=a[b[l+"Field"]+c];null!==m&&(g=Number(m),isNaN(g)||(e[l]=g),"date"==b.valueAxis.type&&void 0!==m&&(g=d.getDate(m,b.chart.dataDateFormat),e[l]=g.getTime()))}return e},parseGraphData:function(a){var b=a.dataProvider,c=a.seriesIdField;c||(c=this.seriesIdField);c||(c=this.categoryField);var d;for(d=0;d<b.length;d++){var g=b[d],f=this.lookupTable[String(g[c])],h=a.valueAxis.id;f&&(h=f.axes[h].graphs[a.id],h.serialDataItem=f,
|
300 |
+
h.values=this.processValues(g,a,a.periodValue),this.processFields(a,h,g))}},addValueAxis:function(a){a.chart=this;this.valueAxes.push(a);this.validateData()},removeValueAxesAndGraphs:function(){var a=this.valueAxes,b;for(b=a.length-1;-1<b;b--)this.removeValueAxis(a[b])},removeValueAxis:function(a){var b=this.graphs,c;for(c=b.length-1;0<=c;c--){var d=b[c];d&&d.valueAxis==a&&this.removeGraph(d)}b=this.valueAxes;for(c=b.length-1;0<=c;c--)b[c]==a&&b.splice(c,1);this.validateData()},addGraph:function(a){this.graphs.push(a);
|
301 |
+
this.chooseGraphColor(a,this.graphs.length-1);this.validateData()},removeGraph:function(a){var b=this.graphs,c;for(c=b.length-1;0<=c;c--)b[c]==a&&(b.splice(c,1),a.destroy());this.validateData()},handleValueAxisZoom:function(){},processValueAxes:function(){var a=this.valueAxes,b;for(b=0;b<a.length;b++){var c=a[b],c=d.processObject(c,d.ValueAxis,this.theme);a[b]=c;c.chart=this;c.init();this.listenTo(c,"axisIntZoomed",this.handleValueAxisZoom);c.id||(c.id="valueAxisAuto"+b+"_"+(new Date).getTime());
|
302 |
+
void 0===c.usePrefixes&&(c.usePrefixes=this.usePrefixes)}},processGuides:function(){var a=this.guides,b=this.categoryAxis;if(a)for(var c=0;c<a.length;c++){var e=a[c];(void 0!==e.category||void 0!==e.date)&&b&&b.addGuide(e);e.id||(e.id="guideAuto"+c+"_"+(new Date).getTime());var g=e.valueAxis;g?(d.isString(g)&&(g=this.getValueAxisById(g)),g?g.addGuide(e):this.valueAxes[0].addGuide(e)):isNaN(e.value)||this.valueAxes[0].addGuide(e)}},processGraphs:function(){var a=this.graphs,b;this.graphsById={};for(b=
|
303 |
+
0;b<a.length;b++){var c=a[b],c=d.processObject(c,d.AmGraph,this.theme);a[b]=c;this.chooseGraphColor(c,b);c.chart=this;c.init();d.isString(c.valueAxis)&&(c.valueAxis=this.getValueAxisById(c.valueAxis));c.valueAxis||(c.valueAxis=this.valueAxes[0]);c.id||(c.id="graphAuto"+b+"_"+(new Date).getTime());this.graphsById[c.id]=c}},formatString:function(a,b,c){var e=b.graph,g=e.valueAxis;if(g.duration&&g.maxInterval&&b.values.value){var f=g.numberFormatter;f||(f=chart.nf);g=d.formatDuration(b.values.value,
|
304 |
+
g.duration,"",g.durationUnits,g.maxInterval,f);a=a.split("[[value]]").join(g)}a=d.massReplace(a,{"[[title]]":e.title,"[[description]]":b.description});a=c?d.fixNewLines(a):d.fixBrakes(a);return a=d.cleanFromEmpty(a)},getBalloonColor:function(a,b,c){var e=a.lineColor,g=a.balloonColor;c&&(g=e);c=a.fillColorsR;"object"==typeof c?e=c[0]:void 0!==c&&(e=c);b.isNegative&&(c=a.negativeLineColor,a=a.negativeFillColors,"object"==typeof a?c=a[0]:void 0!==a&&(c=a),void 0!==c&&(e=c));void 0!==b.color&&(e=b.color);
|
305 |
+
void 0!==b.lineColor&&(e=b.lineColor);b=b.fillColors;void 0!==b&&(e=b,d.ifArray(b)&&(e=b[0]));void 0===g&&(g=e);return g},getGraphById:function(a){return d.getObjById(this.graphs,a)},getValueAxisById:function(a){return d.getObjById(this.valueAxes,a)},processFields:function(a,b,c){if(a.itemColors){var e=a.itemColors,g=b.index;b.color=g<e.length?e[g]:d.randomColor()}e="lineColor color alpha fillColors description bullet customBullet bulletSize bulletConfig url labelColor dashLength pattern gap className columnIndex".split(" ");
|
306 |
+
for(g=0;g<e.length;g++){var f=e[g],h=a[f+"Field"];h&&(h=c[h],d.isDefined(h)&&(b[f]=h))}b.dataContext=c},chooseGraphColor:function(a,b){if(a.lineColor)a.lineColorR=a.lineColor;else{var c;c=this.colors.length>b?this.colors[b]:a.lineColorR?a.lineColorR:d.randomColor();a.lineColorR=c}a.fillColorsR=a.fillColors?a.fillColors:a.lineColorR;a.bulletBorderColorR=a.bulletBorderColor?a.bulletBorderColor:a.useLineColorForBulletBorder?a.lineColorR:a.bulletColor;a.bulletColorR=a.bulletColor?a.bulletColor:a.lineColorR;
|
307 |
+
if(c=this.patterns)a.pattern=c[b]},handleLegendEvent:function(a){var b=a.type;if(a=a.dataItem){var c=a.hidden,d=a.showBalloon;switch(b){case "clickMarker":this.textClickEnabled&&(d?this.hideGraphsBalloon(a):this.showGraphsBalloon(a));break;case "clickLabel":d?this.hideGraphsBalloon(a):this.showGraphsBalloon(a);break;case "rollOverItem":c||this.highlightGraph(a);break;case "rollOutItem":c||this.unhighlightGraph();break;case "hideItem":this.hideGraph(a);break;case "showItem":this.showGraph(a)}}},highlightGraph:function(a){var b=
|
308 |
+
this.graphs;if(b){var c,d=.2;this.legend&&(d=this.legend.rollOverGraphAlpha);if(1!=d)for(c=0;c<b.length;c++){var g=b[c];g!=a&&g.changeOpacity(d)}}},unhighlightGraph:function(){var a;this.legend&&(a=this.legend.rollOverGraphAlpha);if(1!=a){a=this.graphs;var b;for(b=0;b<a.length;b++)a[b].changeOpacity(1)}},showGraph:function(a){a.switchable&&(a.hidden=!1,this.dataChanged=!0,"xy"!=this.type&&(this.marginsUpdated=!1),this.chartCreated&&this.initChart())},hideGraph:function(a){a.switchable&&(this.dataChanged=
|
309 |
+
!0,"xy"!=this.type&&(this.marginsUpdated=!1),a.hidden=!0,this.chartCreated&&this.initChart())},hideGraphsBalloon:function(a){a.showBalloon=!1;this.updateLegend()},showGraphsBalloon:function(a){a.showBalloon=!0;this.updateLegend()},updateLegend:function(){this.legend&&this.legend.invalidateSize()},resetAnimation:function(){this.animatable=[];var a=this.graphs;if(a){var b;for(b=0;b<a.length;b++)a[b].animationPlayed=!1}},animateAgain:function(){this.resetAnimation();this.validateNow()}})})();(function(){var d=window.AmCharts;d.TrendLine=d.Class({construct:function(a){this.cname="TrendLine";this.createEvents("click","rollOver","rollOut");this.isProtected=!1;this.dashLength=0;this.lineColor="#00CC00";this.lineThickness=this.lineAlpha=1;d.applyTheme(this,a,this.cname)},draw:function(){var a=this;a.destroy();var b=a.chart,c=b.container,e,g,f,h,k=a.categoryAxis,l=a.initialDate,m=a.initialCategory,n=a.finalDate,q=a.finalCategory,p=a.valueAxis,t=a.valueAxisX,r=a.initialXValue,w=a.finalXValue,
|
310 |
+
z=a.initialValue,x=a.finalValue,u=p.recalculateToPercents,A=b.dataDateFormat;k&&(l&&(l=d.getDate(l,A,"fff"),a.initialDate=l,e=k.dateToCoordinate(l)),m&&(e=k.categoryToCoordinate(m)),n&&(n=d.getDate(n,A,"fff"),a.finalDate=n,g=k.dateToCoordinate(n)),q&&(g=k.categoryToCoordinate(q)));t&&!u&&(isNaN(r)||(e=t.getCoordinate(r)),isNaN(w)||(g=t.getCoordinate(w)));p&&!u&&(isNaN(z)||(f=p.getCoordinate(z)),isNaN(x)||(h=p.getCoordinate(x)));if(!(isNaN(e)||isNaN(g)||isNaN(f)||isNaN(f))){b.rotate?(k=[f,h],h=[e,
|
311 |
+
g]):(k=[e,g],h=[f,h]);f=d.line(c,k,h,a.lineColor,a.lineAlpha,a.lineThickness,a.dashLength);e=k;g=h;n=k[1]-k[0];q=h[1]-h[0];0===n&&(n=.01);0===q&&(q=.01);l=n/Math.abs(n);m=q/Math.abs(q);q=90*Math.PI/180-Math.asin(n/(n*q/Math.abs(n*q)*Math.sqrt(Math.pow(n,2)+Math.pow(q,2))));n=Math.abs(5*Math.cos(q));q=Math.abs(5*Math.sin(q));e.push(k[1]-l*q,k[0]-l*q);g.push(h[1]+m*n,h[0]+m*n);h=d.polygon(c,e,g,"#ffffff",.005,0);c=c.set([h,f]);c.translate(b.marginLeftReal,b.marginTopReal);b.trendLinesSet.push(c);d.setCN(b,
|
312 |
+
f,"trend-line");d.setCN(b,f,"trend-line-"+a.id);a.line=f;a.set=c;if(f=a.initialImage)f=d.processObject(f,d.Image,a.theme),f.chart=b,f.draw(),f.translate(e[0]+f.offsetX,g[0]+f.offsetY),c.push(f.set);if(f=a.finalImage)f=d.processObject(f,d.Image,a.theme),f.chart=b,f.draw(),f.translate(e[1]+f.offsetX,g[1]+f.offsetY),c.push(f.set);c.mouseup(function(){a.handleLineClick()}).mouseover(function(){a.handleLineOver()}).mouseout(function(){a.handleLineOut()});c.touchend&&c.touchend(function(){a.handleLineClick()});
|
313 |
+
c.clipRect(0,0,b.plotAreaWidth,b.plotAreaHeight)}},handleLineClick:function(){this.fire({type:"click",trendLine:this,chart:this.chart})},handleLineOver:function(){var a=this.rollOverColor;void 0!==a&&this.line.attr({stroke:a});this.balloonText&&(clearTimeout(this.chart.hoverInt),a=this.line.getBBox(),this.chart.showBalloon(this.balloonText,this.lineColor,!0,this.x+a.x+a.width/2,this.y+a.y+a.height/2));this.fire({type:"rollOver",trendLine:this,chart:this.chart})},handleLineOut:function(){this.line.attr({stroke:this.lineColor});
|
314 |
+
this.balloonText&&this.chart.hideBalloon();this.fire({type:"rollOut",trendLine:this,chart:this.chart})},destroy:function(){d.remove(this.set)}})})();(function(){var d=window.AmCharts;d.Image=d.Class({construct:function(a){this.cname="Image";this.height=this.width=20;this.rotation=this.offsetY=this.offsetX=0;this.balloonColor=this.color="#000000";this.opacity=1;d.applyTheme(this,a,this.cname)},draw:function(){var a=this;a.set&&a.set.remove();var b=a.chart.container;a.set=b.set();var c,d;a.url?(c=b.image(a.url,0,0,a.width,a.height),d=1):a.svgPath&&(c=b.path(a.svgPath),c.setAttr("fill",a.color),c.setAttr("stroke",a.outlineColor),b=c.getBBox(),d=
|
315 |
+
Math.min(a.width/b.width,a.height/b.height));c&&(c.setAttr("opacity",a.opacity),a.set.rotate(a.rotation),c.translate(-a.width/2,-a.height/2,d),a.balloonText&&c.mouseover(function(){a.chart.showBalloon(a.balloonText,a.balloonColor,!0)}).mouseout(function(){a.chart.hideBalloon()}).touchend(function(){a.chart.hideBalloon()}).touchstart(function(){a.chart.showBalloon(a.balloonText,a.balloonColor,!0)}),a.set.push(c))},translate:function(a,b){this.set&&this.set.translate(a,b)}})})();(function(){var d=window.AmCharts;d.circle=function(a,b,c,e,g,f,h,k,l){0>=b&&(b=.001);if(void 0==g||0===g)g=.01;void 0===f&&(f="#000000");void 0===h&&(h=0);e={fill:c,stroke:f,"fill-opacity":e,"stroke-width":g,"stroke-opacity":h};a=isNaN(l)?a.circle(0,0,b).attr(e):a.ellipse(0,0,b,l).attr(e);k&&a.gradient("radialGradient",[c,d.adjustLuminosity(c,-.6)]);return a};d.text=function(a,b,c,e,g,f,h,k){f||(f="middle");"right"==f&&(f="end");"left"==f&&(f="start");isNaN(k)&&(k=1);void 0!==b&&(b=String(b),d.isIE&&
|
316 |
+
!d.isModern&&(b=b.replace("&","&"),b=b.replace("&","&")));c={fill:c,"font-family":e,"font-size":g+"px",opacity:k};!0===h&&(c["font-weight"]="bold");c["text-anchor"]=f;return a.text(b,c)};d.polygon=function(a,b,c,e,g,f,h,k,l,m,n){isNaN(f)&&(f=.01);isNaN(k)&&(k=g);var q=e,p=!1;"object"==typeof q&&1<q.length&&(p=!0,q=q[0]);void 0===h&&(h=q);g={fill:q,stroke:h,"fill-opacity":g,"stroke-width":f,"stroke-opacity":k};void 0!==n&&0<n&&(g["stroke-dasharray"]=n);n=d.dx;f=d.dy;a.handDrawn&&(c=d.makeHD(b,
|
317 |
+
c,a.handDrawScatter),b=c[0],c=c[1]);h=Math.round;m&&(h=Number);k="M"+(h(b[0])+n)+","+(h(c[0])+f);for(q=1;q<b.length;q++)m&&(b[q]=d.roundTo(b[q],5),c[q]=d.roundTo(c[q],5)),k+=" L"+(h(b[q])+n)+","+(h(c[q])+f);a=a.path(k+" Z").attr(g);p&&a.gradient("linearGradient",e,l);return a};d.rect=function(a,b,c,e,g,f,h,k,l,m,n){if(isNaN(b)||isNaN(c))return a.set();isNaN(f)&&(f=0);void 0===l&&(l=0);void 0===m&&(m=270);isNaN(g)&&(g=0);var q=e,p=!1;"object"==typeof q&&(q=q[0],p=!0);void 0===h&&(h=q);void 0===k&&
|
318 |
+
(k=g);b=Math.round(b);c=Math.round(c);var t=0,r=0;0>b&&(b=Math.abs(b),t=-b);0>c&&(c=Math.abs(c),r=-c);t+=d.dx;r+=d.dy;g={fill:q,stroke:h,"fill-opacity":g,"stroke-opacity":k};void 0!==n&&0<n&&(g["stroke-dasharray"]=n);a=a.rect(t,r,b,c,l,f).attr(g);p&&a.gradient("linearGradient",e,m);return a};d.bullet=function(a,b,c,e,g,f,h,k,l,m,n,q,p){var t;"circle"==b&&(b="round");switch(b){case "round":t=d.circle(a,c/2,e,g,f,h,k);break;case "square":t=d.polygon(a,[-c/2,c/2,c/2,-c/2],[c/2,c/2,-c/2,-c/2],e,g,f,h,
|
319 |
+
k,m-180,void 0,p);break;case "rectangle":t=d.polygon(a,[-c,c,c,-c],[c/2,c/2,-c/2,-c/2],e,g,f,h,k,m-180,void 0,p);break;case "diamond":t=d.polygon(a,[-c/2,0,c/2,0],[0,-c/2,0,c/2],e,g,f,h,k);break;case "triangleUp":t=d.triangle(a,c,0,e,g,f,h,k);break;case "triangleDown":t=d.triangle(a,c,180,e,g,f,h,k);break;case "triangleLeft":t=d.triangle(a,c,270,e,g,f,h,k);break;case "triangleRight":t=d.triangle(a,c,90,e,g,f,h,k);break;case "bubble":t=d.circle(a,c/2,e,g,f,h,k,!0);break;case "line":t=d.line(a,[-c/
|
320 |
+
2,c/2],[0,0],e,g,f,h,k);break;case "yError":t=a.set();t.push(d.line(a,[0,0],[-c/2,c/2],e,g,f));t.push(d.line(a,[-l,l],[-c/2,-c/2],e,g,f));t.push(d.line(a,[-l,l],[c/2,c/2],e,g,f));break;case "xError":t=a.set(),t.push(d.line(a,[-c/2,c/2],[0,0],e,g,f)),t.push(d.line(a,[-c/2,-c/2],[-l,l],e,g,f)),t.push(d.line(a,[c/2,c/2],[-l,l],e,g,f))}t&&t.pattern(n,NaN,q);return t};d.triangle=function(a,b,c,d,g,f,h,k){if(void 0===f||0===f)f=1;void 0===h&&(h="#000");void 0===k&&(k=0);d={fill:d,stroke:h,"fill-opacity":g,
|
321 |
+
"stroke-width":f,"stroke-opacity":k};b/=2;var l;0===c&&(l=" M"+-b+","+b+" L0,"+-b+" L"+b+","+b+" Z");180==c&&(l=" M"+-b+","+-b+" L0,"+b+" L"+b+","+-b+" Z");90==c&&(l=" M"+-b+","+-b+" L"+b+",0 L"+-b+","+b+" Z");270==c&&(l=" M"+-b+",0 L"+b+","+b+" L"+b+","+-b+" Z");return a.path(l).attr(d)};d.line=function(a,b,c,e,g,f,h,k,l,m,n){if(a.handDrawn&&!n)return d.handDrawnLine(a,b,c,e,g,f,h,k,l,m,n);f={fill:"none","stroke-width":f};void 0!==h&&0<h&&(f["stroke-dasharray"]=h);isNaN(g)||(f["stroke-opacity"]=
|
322 |
+
g);e&&(f.stroke=e);e=Math.round;m&&(e=Number,b[0]=d.roundTo(b[0],5),c[0]=d.roundTo(c[0],5));m=d.dx;g=d.dy;h="M"+(e(b[0])+m)+","+(e(c[0])+g);for(k=1;k<b.length;k++)b[k]=d.roundTo(b[k],5),c[k]=d.roundTo(c[k],5),h+=" L"+(e(b[k])+m)+","+(e(c[k])+g);if(d.VML)return a.path(h,void 0,!0).attr(f);l&&(h+=" M0,0 L0,0");return a.path(h).attr(f)};d.makeHD=function(a,b,c){for(var d=[],g=[],f=1;f<a.length;f++)for(var h=Number(a[f-1]),k=Number(b[f-1]),l=Number(a[f]),m=Number(b[f]),n=Math.round(Math.sqrt(Math.pow(l-
|
323 |
+
h,2)+Math.pow(m-k,2))/50)+1,l=(l-h)/n,m=(m-k)/n,q=0;q<=n;q++){var p=k+q*m+Math.random()*c;d.push(h+q*l+Math.random()*c);g.push(p)}return[d,g]};d.handDrawnLine=function(a,b,c,e,g,f,h,k,l,m){var n,q=a.set();for(n=1;n<b.length;n++)for(var p=[b[n-1],b[n]],t=[c[n-1],c[n]],t=d.makeHD(p,t,a.handDrawScatter),p=t[0],t=t[1],r=1;r<p.length;r++)q.push(d.line(a,[p[r-1],p[r]],[t[r-1],t[r]],e,g,f+Math.random()*a.handDrawThickness-a.handDrawThickness/2,h,k,l,m,!0));return q};d.doNothing=function(a){return a};d.drop=
|
324 |
+
function(a,b,c,d,g,f,h,k){var l=1/180*Math.PI,m=c-20,n=Math.sin(m*l)*b,q=Math.cos(m*l)*b,p=Math.sin((m+40)*l)*b,t=Math.cos((m+40)*l)*b,r=.8*b,w=-b/3,z=b/3;0===c&&(w=-w,z=0);180==c&&(z=0);90==c&&(w=0);270==c&&(w=0,z=-z);c={fill:d,stroke:h,"stroke-width":f,"stroke-opacity":k,"fill-opacity":g};b="M"+n+","+q+" A"+b+","+b+",0,1,1,"+p+","+t+(" A"+r+","+r+",0,0,0,"+(Math.sin((m+20)*l)*b+z)+","+(Math.cos((m+20)*l)*b+w));b+=" A"+r+","+r+",0,0,0,"+n+","+q;return a.path(b,void 0,void 0,"1000,1000").attr(c)};
|
325 |
+
d.wedge=function(a,b,c,e,g,f,h,k,l,m,n,q,p,t){var r=Math.round;f=r(f);h=r(h);k=r(k);var w=r(h/f*k),z=d.VML,x=359.5+f/100;359.94<x&&(x=359.94);g>=x&&(g=x);var u=1/180*Math.PI,x=b+Math.sin(e*u)*k,A=c-Math.cos(e*u)*w,y=b+Math.sin(e*u)*f,B=c-Math.cos(e*u)*h,D=b+Math.sin((e+g)*u)*f,C=c-Math.cos((e+g)*u)*h,I=b+Math.sin((e+g)*u)*k,u=c-Math.cos((e+g)*u)*w,H={fill:d.adjustLuminosity(m.fill,-.2),"stroke-opacity":0,"fill-opacity":m["fill-opacity"]},Q=0;180<Math.abs(g)&&(Q=1);e=a.set();var M;z&&(x=r(10*x),y=
|
326 |
+
r(10*y),D=r(10*D),I=r(10*I),A=r(10*A),B=r(10*B),C=r(10*C),u=r(10*u),b=r(10*b),l=r(10*l),c=r(10*c),f*=10,h*=10,k*=10,w*=10,1>Math.abs(g)&&1>=Math.abs(D-y)&&1>=Math.abs(C-B)&&(M=!0));g="";var P;q&&(H["fill-opacity"]=0,H["stroke-opacity"]=m["stroke-opacity"]/2,H.stroke=m.stroke);if(0<l){P=" M"+x+","+(A+l)+" L"+y+","+(B+l);z?(M||(P+=" A"+(b-f)+","+(l+c-h)+","+(b+f)+","+(l+c+h)+","+y+","+(B+l)+","+D+","+(C+l)),P+=" L"+I+","+(u+l),0<k&&(M||(P+=" B"+(b-k)+","+(l+c-w)+","+(b+k)+","+(l+c+w)+","+I+","+(l+u)+
|
327 |
+
","+x+","+(l+A)))):(P+=" A"+f+","+h+",0,"+Q+",1,"+D+","+(C+l)+" L"+I+","+(u+l),0<k&&(P+=" A"+k+","+w+",0,"+Q+",0,"+x+","+(A+l)));P+=" Z";var ia=l;z&&(ia/=10);for(var J=0;J<ia;J+=10){var aa=a.path(P,void 0,void 0,"1000,1000").attr(H);e.push(aa);aa.translate(0,-J)}P=a.path(" M"+x+","+A+" L"+x+","+(A+l)+" L"+y+","+(B+l)+" L"+y+","+B+" L"+x+","+A+" Z",void 0,void 0,"1000,1000").attr(H);l=a.path(" M"+D+","+C+" L"+D+","+(C+l)+" L"+I+","+(u+l)+" L"+I+","+u+" L"+D+","+C+" Z",void 0,void 0,"1000,1000").attr(H);
|
328 |
+
e.push(P);e.push(l)}z?(M||(g=" A"+r(b-f)+","+r(c-h)+","+r(b+f)+","+r(c+h)+","+r(y)+","+r(B)+","+r(D)+","+r(C)),h=" M"+r(x)+","+r(A)+" L"+r(y)+","+r(B)+g+" L"+r(I)+","+r(u)):h=" M"+x+","+A+" L"+y+","+B+(" A"+f+","+h+",0,"+Q+",1,"+D+","+C)+" L"+I+","+u;0<k&&(z?M||(h+=" B"+(b-k)+","+(c-w)+","+(b+k)+","+(c+w)+","+I+","+u+","+x+","+A):h+=" A"+k+","+w+",0,"+Q+",0,"+x+","+A);a.handDrawn&&(k=d.line(a,[x,y],[A,B],m.stroke,m.thickness*Math.random()*a.handDrawThickness,m["stroke-opacity"]),e.push(k));a=a.path(h+
|
329 |
+
" Z",void 0,void 0,"1000,1000").attr(m);if(n){k=[];for(w=0;w<n.length;w++)k.push(d.adjustLuminosity(m.fill,n[w]));"radial"!=t||d.isModern||(k=[]);0<k.length&&a.gradient(t+"Gradient",k)}d.isModern&&"radial"==t&&a.grad&&(a.grad.setAttribute("gradientUnits","userSpaceOnUse"),a.grad.setAttribute("r",f),a.grad.setAttribute("cx",b),a.grad.setAttribute("cy",c));a.pattern(q,NaN,p);e.wedge=a;e.push(a);return e};d.rgb2hex=function(a){return(a=a.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&
|
330 |
+
4===a.length?"#"+("0"+parseInt(a[1],10).toString(16)).slice(-2)+("0"+parseInt(a[2],10).toString(16)).slice(-2)+("0"+parseInt(a[3],10).toString(16)).slice(-2):""};d.adjustLuminosity=function(a,b){a&&-1!=a.indexOf("rgb")&&(a=d.rgb2hex(a));a=String(a).replace(/[^0-9a-f]/gi,"");6>a.length&&(a=String(a[0])+String(a[0])+String(a[1])+String(a[1])+String(a[2])+String(a[2]));b=b||0;var c="#",e,g;for(g=0;3>g;g++)e=parseInt(a.substr(2*g,2),16),e=Math.round(Math.min(Math.max(0,e+e*b),255)).toString(16),c+=("00"+
|
331 |
+
e).substr(e.length);return c}})();(function(){var d=window.AmCharts;d.Bezier=d.Class({construct:function(a,b,c,e,g,f,h,k,l,m,n){var q=a.chart,p=d.bezierX,t=d.bezierY;isNaN(q.bezierX)||(p=q.bezierX);isNaN(q.bezierY)||(t=q.bezierY);isNaN(p)&&(q.rotate?(p=20,t=4):(t=20,p=4));var r,w;"object"==typeof h&&1<h.length&&(w=!0,r=h,h=h[0]);"object"==typeof k&&(k=k[0]);0===k&&(h="none");f={fill:h,"fill-opacity":k,"stroke-width":f};void 0!==l&&0<l&&(f["stroke-dasharray"]=l);isNaN(g)||(f["stroke-opacity"]=g);e&&(f.stroke=e);e="M"+Math.round(b[0])+
|
332 |
+
","+Math.round(c[0])+" ";g=[];for(l=0;l<b.length;l++)isNaN(b[l])||isNaN(c[l])?(e+=this.drawSegment(g,p,t),l<b.length-1&&(e+="L"+b[l+1]+","+c[l+1]+" "),g=[]):g.push({x:Number(b[l]),y:Number(c[l])});e+=this.drawSegment(g,p,t);m&&(e+=m);this.path=a.path(e).attr(f);this.node=this.path.node;w&&this.path.gradient("linearGradient",r,n)},drawSegment:function(a,b,c){var d="";if(2<a.length)for(var g=0;g<a.length-1;g++){var f=[],h=a[g-1],k=a[g],l=a[g+1],m=a[g+2];0===g?(f.push({x:k.x,y:k.y}),f.push({x:k.x,y:k.y}),
|
333 |
+
f.push({x:l.x,y:l.y}),f.push({x:m.x,y:m.y})):g>=a.length-2?(f.push({x:h.x,y:h.y}),f.push({x:k.x,y:k.y}),f.push({x:l.x,y:l.y}),f.push({x:l.x,y:l.y})):(f.push({x:h.x,y:h.y}),f.push({x:k.x,y:k.y}),f.push({x:l.x,y:l.y}),f.push({x:m.x,y:m.y}));h=[];k=Math.round;h.push({x:k(f[1].x),y:k(f[1].y)});h.push({x:k((-f[0].x+b*f[1].x+f[2].x)/b),y:k((-f[0].y+c*f[1].y+f[2].y)/c)});h.push({x:k((f[1].x+b*f[2].x-f[3].x)/b),y:k((f[1].y+c*f[2].y-f[3].y)/c)});h.push({x:k(f[2].x),y:k(f[2].y)});d+="C"+h[1].x+","+h[1].y+","+
|
334 |
+
h[2].x+","+h[2].y+","+h[3].x+","+h[3].y+" "}else 1<a.length&&(d+="L"+a[1].x+","+a[1].y);return d}})})();(function(){var d=window.AmCharts;d.AmDraw=d.Class({construct:function(a,b,c,e){d.SVG_NS="http://www.w3.org/2000/svg";d.SVG_XLINK="http://www.w3.org/1999/xlink";d.hasSVG=!!document.createElementNS&&!!document.createElementNS(d.SVG_NS,"svg").createSVGRect;1>b&&(b=10);1>c&&(c=10);this.div=a;this.width=b;this.height=c;this.rBin=document.createElement("div");d.hasSVG?(d.SVG=!0,b=this.createSvgElement("svg"),a.appendChild(b),this.container=b,this.addDefs(e),this.R=new d.SVGRenderer(this)):d.isIE&&d.VMLRenderer&&
|
335 |
+
(d.VML=!0,d.vmlStyleSheet||(document.namespaces.add("amvml","urn:schemas-microsoft-com:vml"),31>document.styleSheets.length?(b=document.createStyleSheet(),b.addRule(".amvml","behavior:url(#default#VML); display:inline-block; antialias:true"),d.vmlStyleSheet=b):document.styleSheets[0].addRule(".amvml","behavior:url(#default#VML); display:inline-block; antialias:true")),this.container=a,this.R=new d.VMLRenderer(this,e),this.R.disableSelection(a))},createSvgElement:function(a){return document.createElementNS(d.SVG_NS,
|
336 |
+
a)},circle:function(a,b,c,e){var g=new d.AmDObject("circle",this);g.attr({r:c,cx:a,cy:b});this.addToContainer(g.node,e);return g},ellipse:function(a,b,c,e,g){var f=new d.AmDObject("ellipse",this);f.attr({rx:c,ry:e,cx:a,cy:b});this.addToContainer(f.node,g);return f},setSize:function(a,b){0<a&&0<b&&(this.container.style.width=a+"px",this.container.style.height=b+"px")},rect:function(a,b,c,e,g,f,h){var k=new d.AmDObject("rect",this);d.VML&&(g=Math.round(100*g/Math.min(c,e)),c+=2*f,e+=2*f,k.bw=f,k.node.style.marginLeft=
|
337 |
+
-f,k.node.style.marginTop=-f);1>c&&(c=1);1>e&&(e=1);k.attr({x:a,y:b,width:c,height:e,rx:g,ry:g,"stroke-width":f});this.addToContainer(k.node,h);return k},image:function(a,b,c,e,g,f){var h=new d.AmDObject("image",this);h.attr({x:b,y:c,width:e,height:g});this.R.path(h,a);this.addToContainer(h.node,f);return h},addToContainer:function(a,b){b||(b=this.container);b.appendChild(a)},text:function(a,b,c){return this.R.text(a,b,c)},path:function(a,b,c,e){var g=new d.AmDObject("path",this);e||(e="100,100");
|
338 |
+
g.attr({cs:e});c?g.attr({dd:a}):g.attr({d:a});this.addToContainer(g.node,b);return g},set:function(a){return this.R.set(a)},remove:function(a){if(a){var b=this.rBin;b.appendChild(a);b.innerHTML=""}},renderFix:function(){var a=this.container,b=a.style;b.top="0px";b.left="0px";try{var c=a.getBoundingClientRect(),d=c.left-Math.round(c.left),g=c.top-Math.round(c.top);d&&(b.left=d+"px");g&&(b.top=g+"px")}catch(f){}},update:function(){this.R.update()},addDefs:function(a){if(d.hasSVG){var b=this.createSvgElement("desc"),
|
339 |
+
c=this.container;c.setAttribute("version","1.1");c.style.position="absolute";this.setSize(this.width,this.height);if(a.accessibleTitle){var e=this.createSvgElement("text");c.appendChild(e);e.innerHTML=a.accessibleTitle;e.style.opacity=0}d.rtl&&(c.setAttribute("direction","rtl"),c.style.left="auto",c.style.right="0px");a&&(a.addCodeCredits&&b.appendChild(document.createTextNode("JavaScript chart by amCharts "+a.version)),a.accessibleDescription&&(b.innerHTML="",b.appendChild(document.createTextNode(a.accessibleDescription))),
|
340 |
+
c.appendChild(b),a.defs&&(b=this.createSvgElement("defs"),c.appendChild(b),d.parseDefs(a.defs,b),this.defs=b))}}})})();(function(){var d=window.AmCharts;d.AmDObject=d.Class({construct:function(a,b){this.D=b;this.R=b.R;this.node=this.R.create(this,a);this.y=this.x=0;this.scale=1},attr:function(a){this.R.attr(this,a);return this},getAttr:function(a){return this.node.getAttribute(a)},setAttr:function(a,b){this.R.setAttr(this,a,b);return this},clipRect:function(a,b,c,d){this.R.clipRect(this,a,b,c,d)},translate:function(a,b,c,d){d||(a=Math.round(a),b=Math.round(b));this.R.move(this,a,b,c);this.x=a;this.y=b;this.scale=
|
341 |
+
c;this.angle&&this.rotate(this.angle)},rotate:function(a,b){this.R.rotate(this,a,b);this.angle=a},animate:function(a,b,c){for(var e in a)if(a.hasOwnProperty(e)){var g=e,f=a[e];c=d.getEffect(c);this.R.animate(this,g,f,b,c)}},push:function(a){if(a){var b=this.node;b.appendChild(a.node);var c=a.clipPath;c&&b.appendChild(c);(a=a.grad)&&b.appendChild(a)}},text:function(a){this.R.setText(this,a)},remove:function(){this.stop();this.R.remove(this)},clear:function(){var a=this.node;if(a.hasChildNodes())for(;1<=
|
342 |
+
a.childNodes.length;)a.removeChild(a.firstChild)},hide:function(){this.setAttr("visibility","hidden")},show:function(){this.setAttr("visibility","visible")},getBBox:function(){return this.R.getBBox(this)},toFront:function(){var a=this.node;if(a){this.prevNextNode=a.nextSibling;var b=a.parentNode;b&&b.appendChild(a)}},toPrevious:function(){var a=this.node;a&&this.prevNextNode&&(a=a.parentNode)&&a.insertBefore(this.prevNextNode,null)},toBack:function(){var a=this.node;if(a){this.prevNextNode=a.nextSibling;
|
343 |
+
var b=a.parentNode;if(b){var c=b.firstChild;c&&b.insertBefore(a,c)}}},mouseover:function(a){this.R.addListener(this,"mouseover",a);return this},mouseout:function(a){this.R.addListener(this,"mouseout",a);return this},click:function(a){this.R.addListener(this,"click",a);return this},dblclick:function(a){this.R.addListener(this,"dblclick",a);return this},mousedown:function(a){this.R.addListener(this,"mousedown",a);return this},mouseup:function(a){this.R.addListener(this,"mouseup",a);return this},touchmove:function(a){this.R.addListener(this,
|
344 |
+
"touchmove",a);return this},touchstart:function(a){this.R.addListener(this,"touchstart",a);return this},touchend:function(a){this.R.addListener(this,"touchend",a);return this},keyup:function(a){this.R.addListener(this,"keyup",a);return this},focus:function(a){this.R.addListener(this,"focus",a);return this},blur:function(a){this.R.addListener(this,"blur",a);return this},contextmenu:function(a){this.node.addEventListener?this.node.addEventListener("contextmenu",a,!0):this.R.addListener(this,"contextmenu",
|
345 |
+
a);return this},stop:function(){d.removeFromArray(this.R.animations,this.an_translate);d.removeFromArray(this.R.animations,this.an_y);d.removeFromArray(this.R.animations,this.an_x)},length:function(){return this.node.childNodes.length},gradient:function(a,b,c){this.R.gradient(this,a,b,c)},pattern:function(a,b,c){a&&this.R.pattern(this,a,b,c)}})})();(function(){var d=window.AmCharts;d.VMLRenderer=d.Class({construct:function(a,b){this.chart=b;this.D=a;this.cNames={circle:"oval",ellipse:"oval",rect:"roundrect",path:"shape"};this.styleMap={x:"left",y:"top",width:"width",height:"height","font-family":"fontFamily","font-size":"fontSize",visibility:"visibility"}},create:function(a,b){var c;if("group"==b)c=document.createElement("div"),a.type="div";else if("text"==b)c=document.createElement("div"),a.type="text";else if("image"==b)c=document.createElement("img"),
|
346 |
+
a.type="image";else{a.type="shape";a.shapeType=this.cNames[b];c=document.createElement("amvml:"+this.cNames[b]);var d=document.createElement("amvml:stroke");c.appendChild(d);a.stroke=d;var g=document.createElement("amvml:fill");c.appendChild(g);a.fill=g;g.className="amvml";d.className="amvml";c.className="amvml"}c.style.position="absolute";c.style.top=0;c.style.left=0;return c},path:function(a,b){a.node.setAttribute("src",b)},setAttr:function(a,b,c){if(void 0!==c){var e;8===document.documentMode&&
|
347 |
+
(e=!0);var g=a.node,f=a.type,h=g.style;"r"==b&&(h.width=2*c,h.height=2*c);"oval"==a.shapeType&&("rx"==b&&(h.width=2*c),"ry"==b&&(h.height=2*c));"roundrect"==a.shapeType&&("width"!=b&&"height"!=b||--c);"cursor"==b&&(h.cursor=c);"cx"==b&&(h.left=c-d.removePx(h.width)/2);"cy"==b&&(h.top=c-d.removePx(h.height)/2);var k=this.styleMap[b];"width"==k&&0>c&&(c=0);void 0!==k&&(h[k]=c);"text"==f&&("text-anchor"==b&&(a.anchor=c,k=g.clientWidth,"end"==c&&(h.marginLeft=-k+"px"),"middle"==c&&(h.marginLeft=-(k/2)+
|
348 |
+
"px",h.textAlign="center"),"start"==c&&(h.marginLeft="0px")),"fill"==b&&(h.color=c),"font-weight"==b&&(h.fontWeight=c));if(h=a.children)for(k=0;k<h.length;k++)h[k].setAttr(b,c);if("shape"==f){"cs"==b&&(g.style.width="100px",g.style.height="100px",g.setAttribute("coordsize",c));"d"==b&&g.setAttribute("path",this.svgPathToVml(c));"dd"==b&&g.setAttribute("path",c);f=a.stroke;a=a.fill;"stroke"==b&&(e?f.color=c:f.setAttribute("color",c));"stroke-width"==b&&(e?f.weight=c:f.setAttribute("weight",c));"stroke-opacity"==
|
349 |
+
b&&(e?f.opacity=c:f.setAttribute("opacity",c));"stroke-dasharray"==b&&(h="solid",0<c&&3>c&&(h="dot"),3<=c&&6>=c&&(h="dash"),6<c&&(h="longdash"),e?f.dashstyle=h:f.setAttribute("dashstyle",h));if("fill-opacity"==b||"opacity"==b)0===c?e?a.on=!1:a.setAttribute("on",!1):e?a.opacity=c:a.setAttribute("opacity",c);"fill"==b&&(e?a.color=c:a.setAttribute("color",c));"rx"==b&&(e?g.arcSize=c+"%":g.setAttribute("arcsize",c+"%"))}}},attr:function(a,b){for(var c in b)b.hasOwnProperty(c)&&this.setAttr(a,c,b[c])},
|
350 |
+
text:function(a,b,c){var e=new d.AmDObject("text",this.D),g=e.node;g.style.whiteSpace="pre";g.innerHTML=a;this.D.addToContainer(g,c);this.attr(e,b);return e},getBBox:function(a){return this.getBox(a.node)},getBox:function(a){var b=a.offsetLeft,c=a.offsetTop,d=a.offsetWidth,g=a.offsetHeight,f;if(a.hasChildNodes()){var h,k,l;for(l=0;l<a.childNodes.length;l++){f=this.getBox(a.childNodes[l]);var m=f.x;isNaN(m)||(isNaN(h)?h=m:m<h&&(h=m));var n=f.y;isNaN(n)||(isNaN(k)?k=n:n<k&&(k=n));m=f.width+m;isNaN(m)||
|
351 |
+
(d=Math.max(d,m));f=f.height+n;isNaN(f)||(g=Math.max(g,f))}0>h&&(b+=h);0>k&&(c+=k)}return{x:b,y:c,width:d,height:g}},setText:function(a,b){var c=a.node;c&&(c.innerHTML=b);this.setAttr(a,"text-anchor",a.anchor)},addListener:function(a,b,c){a.node["on"+b]=c},move:function(a,b,c){var e=a.node,g=e.style;"text"==a.type&&(c-=d.removePx(g.fontSize)/2-1);"oval"==a.shapeType&&(b-=d.removePx(g.width)/2,c-=d.removePx(g.height)/2);a=a.bw;isNaN(a)||(b-=a,c-=a);isNaN(b)||isNaN(c)||(e.style.left=b+"px",e.style.top=
|
352 |
+
c+"px")},svgPathToVml:function(a){var b=a.split(" ");a="";var c,d=Math.round,g;for(g=0;g<b.length;g++){var f=b[g],h=f.substring(0,1),f=f.substring(1),k=f.split(","),l=d(k[0])+","+d(k[1]);"M"==h&&(a+=" m "+l);"L"==h&&(a+=" l "+l);"Z"==h&&(a+=" x e");if("Q"==h){var m=c.length,n=c[m-1],q=k[0],p=k[1],l=k[2],t=k[3];c=d(c[m-2]/3+2/3*q);n=d(n/3+2/3*p);q=d(2/3*q+l/3);p=d(2/3*p+t/3);a+=" c "+c+","+n+","+q+","+p+","+l+","+t}"C"==h&&(a+=" c "+k[0]+","+k[1]+","+k[2]+","+k[3]+","+k[4]+","+k[5]);"A"==h&&(a+=" wa "+
|
353 |
+
f);"B"==h&&(a+=" at "+f);c=k}return a},animate:function(a,b,c,d,g){var f=a.node,h=this.chart;a.animationFinished=!1;if("translate"==b){b=c.split(",");c=b[1];var k=f.offsetTop;h.animate(a,"left",f.offsetLeft,b[0],d,g,"px");h.animate(a,"top",k,c,d,g,"px")}},clipRect:function(a,b,c,d,g){a=a.node;0===b&&0===c?(a.style.width=d+"px",a.style.height=g+"px",a.style.overflow="hidden"):a.style.clip="rect("+c+"px "+(b+d)+"px "+(c+g)+"px "+b+"px)"},rotate:function(a,b,c){if(0!==Number(b)){var e=a.node;a=e.style;
|
354 |
+
c||(c=this.getBGColor(e.parentNode));a.backgroundColor=c;a.paddingLeft=1;c=b*Math.PI/180;var g=Math.cos(c),f=Math.sin(c),h=d.removePx(a.left),k=d.removePx(a.top),l=e.offsetWidth,e=e.offsetHeight;b/=Math.abs(b);a.left=h+l/2-l/2*Math.cos(c)-b*e/2*Math.sin(c)+3;a.top=k-b*l/2*Math.sin(c)+b*e/2*Math.sin(c);a.cssText=a.cssText+"; filter:progid:DXImageTransform.Microsoft.Matrix(M11='"+g+"', M12='"+-f+"', M21='"+f+"', M22='"+g+"', sizingmethod='auto expand');"}},getBGColor:function(a){var b="#FFFFFF";if(a.style){var c=
|
355 |
+
a.style.backgroundColor;""!==c?b=c:a.parentNode&&(b=this.getBGColor(a.parentNode))}return b},set:function(a){var b=new d.AmDObject("group",this.D);this.D.container.appendChild(b.node);if(a){var c;for(c=0;c<a.length;c++)b.push(a[c])}return b},gradient:function(a,b,c,d){var g="";"radialGradient"==b&&(b="gradientradial",c.reverse());"linearGradient"==b&&(b="gradient");var f;for(f=0;f<c.length;f++)g+=Math.round(100*f/(c.length-1))+"% "+c[f],f<c.length-1&&(g+=",");a=a.fill;90==d?d=0:270==d?d=180:180==
|
356 |
+
d?d=90:0===d&&(d=270);8===document.documentMode?(a.type=b,a.angle=d):(a.setAttribute("type",b),a.setAttribute("angle",d));g&&(a.colors.value=g)},remove:function(a){a.clipPath&&this.D.remove(a.clipPath);this.D.remove(a.node)},disableSelection:function(a){a.onselectstart=function(){return!1};a.style.cursor="default"},pattern:function(a,b,c,e){c=a.node;a=a.fill;var g="none";b.color&&(g=b.color);c.fillColor=g;b=b.url;d.isAbsolute(b)||(b=e+b);8===document.documentMode?(a.type="tile",a.src=b):(a.setAttribute("type",
|
357 |
+
"tile"),a.setAttribute("src",b))},update:function(){}})})();(function(){var d=window.AmCharts;d.SVGRenderer=d.Class({construct:function(a){this.D=a;this.animations=[]},create:function(a,b){return document.createElementNS(d.SVG_NS,b)},attr:function(a,b){for(var c in b)b.hasOwnProperty(c)&&this.setAttr(a,c,b[c])},setAttr:function(a,b,c){void 0!==c&&a.node.setAttribute(b,c)},animate:function(a,b,c,e,g){a.animationFinished=!1;var f=a.node;a["an_"+b]&&d.removeFromArray(this.animations,a["an_"+b]);"translate"==b?(f=(f=f.getAttribute("transform"))?String(f).substring(10,
|
358 |
+
f.length-1):"0,0",f=f.split(", ").join(" "),f=f.split(" ").join(","),0===f&&(f="0,0")):f=Number(f.getAttribute(b));c={obj:a,frame:0,attribute:b,from:f,to:c,time:e,effect:g};this.animations.push(c);a["an_"+b]=c},update:function(){var a,b=this.animations;for(a=b.length-1;0<=a;a--){var c=b[a],e=c.time*d.updateRate,g=c.frame+1,f=c.obj,h=c.attribute,k,l,m;if(g<=e){c.frame++;if("translate"==h){k=c.from.split(",");h=Number(k[0]);k=Number(k[1]);isNaN(k)&&(k=0);l=c.to.split(",");m=Number(l[0]);l=Number(l[1]);
|
359 |
+
m=0===m-h?m:Math.round(d[c.effect](0,g,h,m-h,e));c=0===l-k?l:Math.round(d[c.effect](0,g,k,l-k,e));h="transform";if(isNaN(m)||isNaN(c))continue;c="translate("+m+","+c+")"}else l=Number(c.from),k=Number(c.to),m=k-l,c=d[c.effect](0,g,l,m,e),isNaN(c)&&(c=k),0===m&&this.animations.splice(a,1);this.setAttr(f,h,c)}else"translate"==h?(l=c.to.split(","),m=Number(l[0]),l=Number(l[1]),f.translate(m,l)):(k=Number(c.to),this.setAttr(f,h,k)),f.animationFinished=!0,this.animations.splice(a,1)}},getBBox:function(a){if(a=
|
360 |
+
a.node)try{return a.getBBox()}catch(b){}return{width:0,height:0,x:0,y:0}},path:function(a,b){a.node.setAttributeNS(d.SVG_XLINK,"xlink:href",b)},clipRect:function(a,b,c,e,g){var f=a.node,h=a.clipPath;h&&this.D.remove(h);var k=f.parentNode;k&&(f=document.createElementNS(d.SVG_NS,"clipPath"),h=d.getUniqueId(),f.setAttribute("id",h),this.D.rect(b,c,e,g,0,0,f),k.appendChild(f),b="#",d.baseHref&&!d.isIE&&(b=this.removeTarget(window.location.href)+b),this.setAttr(a,"clip-path","url("+b+h+")"),this.clipPathC++,
|
361 |
+
a.clipPath=f)},text:function(a,b,c){var e=new d.AmDObject("text",this.D);a=String(a).split("\n");var g=d.removePx(b["font-size"]),f;for(f=0;f<a.length;f++){var h=this.create(null,"tspan");h.appendChild(document.createTextNode(a[f]));h.setAttribute("y",(g+2)*f+Math.round(g/2));h.setAttribute("x",0);e.node.appendChild(h)}e.node.setAttribute("y",Math.round(g/2));this.attr(e,b);this.D.addToContainer(e.node,c);return e},setText:function(a,b){var c=a.node;c&&(c.removeChild(c.firstChild),c.appendChild(document.createTextNode(b)))},
|
362 |
+
move:function(a,b,c,d){isNaN(b)&&(b=0);isNaN(c)&&(c=0);b="translate("+b+","+c+")";d&&(b=b+" scale("+d+")");this.setAttr(a,"transform",b)},rotate:function(a,b){var c=a.node.getAttribute("transform"),d="rotate("+b+")";c&&(d=c+" "+d);this.setAttr(a,"transform",d)},set:function(a){var b=new d.AmDObject("g",this.D);this.D.container.appendChild(b.node);if(a){var c;for(c=0;c<a.length;c++)b.push(a[c])}return b},addListener:function(a,b,c){a.node["on"+b]=c},gradient:function(a,b,c,e){var g=a.node,f=a.grad;
|
363 |
+
f&&this.D.remove(f);b=document.createElementNS(d.SVG_NS,b);f=d.getUniqueId();b.setAttribute("id",f);if(!isNaN(e)){var h=0,k=0,l=0,m=0;90==e?l=100:270==e?m=100:180==e?h=100:0===e&&(k=100);b.setAttribute("x1",h+"%");b.setAttribute("x2",k+"%");b.setAttribute("y1",l+"%");b.setAttribute("y2",m+"%")}for(e=0;e<c.length;e++)h=document.createElementNS(d.SVG_NS,"stop"),k=100*e/(c.length-1),0===e&&(k=0),h.setAttribute("offset",k+"%"),h.setAttribute("stop-color",c[e]),b.appendChild(h);g.parentNode.appendChild(b);
|
364 |
+
c="#";d.baseHref&&!d.isIE&&(c=this.removeTarget(window.location.href)+c);g.setAttribute("fill","url("+c+f+")");a.grad=b},removeTarget:function(a){return a.split("#")[0]},pattern:function(a,b,c,e){var g=a.node;isNaN(c)&&(c=1);var f=a.patternNode;f&&this.D.remove(f);var f=document.createElementNS(d.SVG_NS,"pattern"),h=d.getUniqueId(),k=b;b.url&&(k=b.url);d.isAbsolute(k)||-1!=k.indexOf("data:image")||(k=e+k);e=Number(b.width);isNaN(e)&&(e=4);var l=Number(b.height);isNaN(l)&&(l=4);e/=c;l/=c;c=b.x;isNaN(c)&&
|
365 |
+
(c=0);var m=-Math.random()*Number(b.randomX);isNaN(m)||(c=m);m=b.y;isNaN(m)&&(m=0);var n=-Math.random()*Number(b.randomY);isNaN(n)||(m=n);f.setAttribute("id",h);f.setAttribute("width",e);f.setAttribute("height",l);f.setAttribute("patternUnits","userSpaceOnUse");f.setAttribute("xlink:href",k);b.color&&(n=document.createElementNS(d.SVG_NS,"rect"),n.setAttributeNS(null,"height",e),n.setAttributeNS(null,"width",l),n.setAttributeNS(null,"fill",b.color),f.appendChild(n));this.D.image(k,0,0,e,l,f).translate(c,
|
366 |
+
m);k="#";d.baseHref&&!d.isIE&&(k=this.removeTarget(window.location.href)+k);g.setAttribute("fill","url("+k+h+")");a.patternNode=f;g.parentNode.appendChild(f)},remove:function(a){a.clipPath&&this.D.remove(a.clipPath);a.grad&&this.D.remove(a.grad);a.patternNode&&this.D.remove(a.patternNode);this.D.remove(a.node)}})})();(function(){var d=window.AmCharts;d.AmLegend=d.Class({construct:function(a){this.enabled=!0;this.cname="AmLegend";this.createEvents("rollOverMarker","rollOverItem","rollOutMarker","rollOutItem","showItem","hideItem","clickMarker","clickLabel");this.position="bottom";this.borderColor=this.color="#000000";this.borderAlpha=0;this.markerLabelGap=5;this.verticalGap=10;this.align="left";this.horizontalGap=0;this.spacing=10;this.markerDisabledColor="#AAB3B3";this.markerType="square";this.markerSize=16;this.markerBorderThickness=
|
367 |
+
this.markerBorderAlpha=1;this.marginBottom=this.marginTop=0;this.marginLeft=this.marginRight=20;this.autoMargins=!0;this.valueWidth=50;this.switchable=!0;this.switchType="x";this.switchColor="#FFFFFF";this.rollOverColor="#CC0000";this.reversedOrder=!1;this.labelText="[[title]]";this.valueText="[[value]]";this.accessibleLabel="[[title]]";this.useMarkerColorForLabels=!1;this.rollOverGraphAlpha=1;this.textClickEnabled=!1;this.equalWidths=!0;this.backgroundColor="#FFFFFF";this.backgroundAlpha=0;this.useGraphSettings=
|
368 |
+
!1;this.showEntries=!0;this.labelDx=0;d.applyTheme(this,a,this.cname)},setData:function(a){this.legendData=a;this.invalidateSize()},invalidateSize:function(){this.destroy();this.entries=[];this.valueLabels=[];var a=this.legendData;this.enabled&&(d.ifArray(a)||d.ifArray(this.data))&&this.drawLegend()},drawLegend:function(){var a=this.chart,b=this.position,c=this.width,e=a.divRealWidth,g=a.divRealHeight,f=this.div,h=this.legendData;this.data&&(h=this.combineLegend?this.legendData.concat(this.data):
|
369 |
+
this.data);isNaN(this.fontSize)&&(this.fontSize=a.fontSize);this.maxColumnsReal=this.maxColumns;if("right"==b||"left"==b)this.maxColumnsReal=1,this.autoMargins&&(this.marginLeft=this.marginRight=10);else if(this.autoMargins){this.marginRight=a.marginRight;this.marginLeft=a.marginLeft;var k=a.autoMarginOffset;"bottom"==b?(this.marginBottom=k,this.marginTop=0):(this.marginTop=k,this.marginBottom=0)}c=void 0!==c?d.toCoordinate(c,e):"right"!=b&&"left"!=b?a.realWidth:0<this.ieW?this.ieW:a.realWidth;"outside"==
|
370 |
+
b?(c=f.offsetWidth,g=f.offsetHeight,f.clientHeight&&(c=f.clientWidth,g=f.clientHeight)):(isNaN(c)||(f.style.width=c+"px"),f.className="amChartsLegend "+a.classNamePrefix+"-legend-div");this.divWidth=c;(b=this.container)?(b.container.innerHTML="",f.appendChild(b.container),b.width=c,b.height=g,b.setSize(c,g),b.addDefs(a)):b=new d.AmDraw(f,c,g,a);this.container=b;this.lx=0;this.ly=8;g=this.markerSize;g>this.fontSize&&(this.ly=g/2-1);0<g&&(this.lx+=g+this.markerLabelGap);this.titleWidth=0;if(g=this.title)g=
|
371 |
+
d.text(this.container,g,this.color,a.fontFamily,this.fontSize,"start",!0),d.setCN(a,g,"legend-title"),g.translate(this.marginLeft,this.marginTop+this.verticalGap+this.ly+1),a=g.getBBox(),this.titleWidth=a.width+15,this.titleHeight=a.height+6;this.index=this.maxLabelWidth=0;if(this.showEntries){for(a=0;a<h.length;a++)this.createEntry(h[a]);for(a=this.index=0;a<h.length;a++)this.createValue(h[a])}this.arrangeEntries();this.updateValues()},arrangeEntries:function(){var a=this.position,b=this.marginLeft+
|
372 |
+
this.titleWidth,c=this.marginRight,e=this.marginTop,g=this.marginBottom,f=this.horizontalGap,h=this.div,k=this.divWidth,l=this.maxColumnsReal,m=this.verticalGap,n=this.spacing,q=k-c-b,p=0,t=0,r=this.container;this.set&&this.set.remove();var w=r.set();this.set=w;var z=r.set();w.push(z);var x=this.entries,u,A;for(A=0;A<x.length;A++){u=x[A].getBBox();var y=u.width;y>p&&(p=y);u=u.height;u>t&&(t=u)}var y=t=0,B=f,D=0,C=0;for(A=0;A<x.length;A++){var I=x[A];this.reversedOrder&&(I=x[x.length-A-1]);u=I.getBBox();
|
373 |
+
var H;this.equalWidths?H=y*(p+n+this.markerLabelGap):(H=B,B=B+u.width+f+n);H+u.width>q&&0<A&&0!==y&&(t++,H=y=0,B=H+u.width+f+n,D=D+C+m,C=0);u.height>C&&(C=u.height);I.translate(H,D);y++;!isNaN(l)&&y>=l&&(y=0,t++,D=D+C+m,B=f,C=0);z.push(I)}u=z.getBBox();l=u.height+2*m-1;"left"==a||"right"==a?(n=u.width+2*f,k=n+b+c,h.style.width=k+"px",this.ieW=k):n=k-b-c-1;c=d.polygon(this.container,[0,n,n,0],[0,0,l,l],this.backgroundColor,this.backgroundAlpha,1,this.borderColor,this.borderAlpha);d.setCN(this.chart,
|
374 |
+
c,"legend-bg");w.push(c);w.translate(b,e);c.toBack();b=f;if("top"==a||"bottom"==a||"absolute"==a||"outside"==a)"center"==this.align?b=f+(n-u.width)/2:"right"==this.align&&(b=f+n-u.width);z.translate(b,m+1);this.titleHeight>l&&(l=this.titleHeight);e=l+e+g+1;0>e&&(e=0);"absolute"!=a&&"outside"!=a&&e>this.chart.divRealHeight&&(h.style.top="0px");h.style.height=Math.round(e)+"px";r.setSize(this.divWidth,e)},createEntry:function(a){if(!1!==a.visibleInLegend&&!a.hideFromLegend){var b=this,c=b.chart,e=b.useGraphSettings,
|
375 |
+
g=a.markerType;g&&(e=!1);a.legendEntryWidth=b.markerSize;g||(g=b.markerType);var f=a.color,h=a.alpha;a.legendKeyColor&&(f=a.legendKeyColor());a.legendKeyAlpha&&(h=a.legendKeyAlpha());var k;!0===a.hidden&&(k=f=b.markerDisabledColor);var l=a.pattern,m,n=a.customMarker;n||(n=b.customMarker);var q=b.container,p=b.markerSize,t=0,r=0,w=p/2;if(e){e=a.type;b.switchType=void 0;if("line"==e||"step"==e||"smoothedLine"==e||"ohlc"==e)m=q.set(),a.hidden||(f=a.lineColorR,k=a.bulletBorderColorR),t=d.line(q,[0,2*
|
376 |
+
p],[p/2,p/2],f,a.lineAlpha,a.lineThickness,a.dashLength),d.setCN(c,t,"graph-stroke"),m.push(t),a.bullet&&(a.hidden||(f=a.bulletColorR),t=d.bullet(q,a.bullet,a.bulletSize,f,a.bulletAlpha,a.bulletBorderThickness,k,a.bulletBorderAlpha))&&(d.setCN(c,t,"graph-bullet"),t.translate(p+1,p/2),m.push(t)),w=0,t=p,r=p/3;else{a.getGradRotation&&(m=a.getGradRotation(),0===m&&(m=180));t=a.fillColorsR;!0===a.hidden&&(t=f);if(m=b.createMarker("rectangle",t,a.fillAlphas,a.lineThickness,f,a.lineAlpha,m,l,a.dashLength))w=
|
377 |
+
p,m.translate(w,p/2);t=p}d.setCN(c,m,"graph-"+e);d.setCN(c,m,"graph-"+a.id)}else if(n)m=q.image(n,0,0,p,p);else{var z;isNaN(b.gradientRotation)||(z=180+b.gradientRotation);(m=b.createMarker(g,f,h,void 0,void 0,void 0,z,l))&&m.translate(p/2,p/2)}d.setCN(c,m,"legend-marker");b.addListeners(m,a);q=q.set([m]);b.switchable&&a.switchable&&q.setAttr("cursor","pointer");void 0!==a.id&&d.setCN(c,q,"legend-item-"+a.id);d.setCN(c,q,a.className,!0);k=b.switchType;var x;k&&"none"!=k&&0<p&&("x"==k?(x=b.createX(),
|
378 |
+
x.translate(p/2,p/2)):x=b.createV(),x.dItem=a,!0!==a.hidden?"x"==k?x.hide():x.show():"x"!=k&&x.hide(),b.switchable||x.hide(),b.addListeners(x,a),a.legendSwitch=x,q.push(x),d.setCN(c,x,"legend-switch"));k=b.color;a.showBalloon&&b.textClickEnabled&&void 0!==b.selectedColor&&(k=b.selectedColor);b.useMarkerColorForLabels&&!l&&(k=f);!0===a.hidden&&(k=b.markerDisabledColor);f=d.massReplace(b.labelText,{"[[title]]":a.title});void 0!==b.tabIndex&&(q.setAttr("tabindex",b.tabIndex),q.setAttr("role","menuitem"),
|
379 |
+
q.keyup(function(c){13==c.keyCode&&b.clickMarker(a,c)}));c.accessible&&b.accessibleLabel&&(l=d.massReplace(b.accessibleLabel,{"[[title]]":a.title}),c.makeAccessible(q,l));l=b.fontSize;m&&(p<=l&&(p=p/2+b.ly-l/2+(l+2-p)/2-r,m.translate(w,p),x&&x.translate(x.x,p)),a.legendEntryWidth=m.getBBox().width);var u;f&&(f=d.fixBrakes(f),a.legendTextReal=f,u=b.labelWidth,u=isNaN(u)?d.text(b.container,f,k,c.fontFamily,l,"start"):d.wrappedText(b.container,f,k,c.fontFamily,l,"start",!1,u,0),d.setCN(c,u,"legend-label"),
|
380 |
+
u.translate(b.lx+t,b.ly),q.push(u),b.labelDx=t,c=u.getBBox().width,b.maxLabelWidth<c&&(b.maxLabelWidth=c));b.entries[b.index]=q;a.legendEntry=b.entries[b.index];a.legendMarker=m;a.legendLabel=u;b.index++}},addListeners:function(a,b){var c=this;a&&a.mouseover(function(a){c.rollOverMarker(b,a)}).mouseout(function(a){c.rollOutMarker(b,a)}).click(function(a){c.clickMarker(b,a)})},rollOverMarker:function(a,b){this.switchable&&this.dispatch("rollOverMarker",a,b);this.dispatch("rollOverItem",a,b)},rollOutMarker:function(a,
|
381 |
+
b){this.switchable&&this.dispatch("rollOutMarker",a,b);this.dispatch("rollOutItem",a,b)},clickMarker:function(a,b){this.switchable&&(!0===a.hidden?this.dispatch("showItem",a,b):this.dispatch("hideItem",a,b));this.dispatch("clickMarker",a,b)},rollOverLabel:function(a,b){a.hidden||this.textClickEnabled&&a.legendLabel&&a.legendLabel.attr({fill:this.rollOverColor});this.dispatch("rollOverItem",a,b)},rollOutLabel:function(a,b){if(!a.hidden&&this.textClickEnabled&&a.legendLabel){var c=this.color;void 0!==
|
382 |
+
this.selectedColor&&a.showBalloon&&(c=this.selectedColor);this.useMarkerColorForLabels&&(c=a.lineColor,void 0===c&&(c=a.color));a.legendLabel.attr({fill:c})}this.dispatch("rollOutItem",a,b)},clickLabel:function(a,b){this.textClickEnabled?a.hidden||this.dispatch("clickLabel",a,b):this.switchable&&(!0===a.hidden?this.dispatch("showItem",a,b):this.dispatch("hideItem",a,b))},dispatch:function(a,b,c){a={type:a,dataItem:b,target:this,event:c,chart:this.chart};this.chart&&this.chart.handleLegendEvent(a);
|
383 |
+
this.fire(a)},createValue:function(a){var b=this,c=b.fontSize,e=b.chart;if(!1!==a.visibleInLegend&&!a.hideFromLegend){var g=b.maxLabelWidth,f=0;b.forceWidth&&(g=b.labelWidth);b.equalWidths||(b.valueAlign="left");f={x:0,y:0,width:0,height:0};a.legendLabel&&(f=a.legendLabel.getBBox());"left"==b.valueAlign&&(g=f.width);var f=f.height,h=g,k=b.markerSize;k<c+7&&(k=c+7,d.VML&&(k+=3));if(b.valueText&&0<b.valueWidth){var l=b.color;b.useMarkerColorForValues&&(l=a.color,a.legendKeyColor&&(l=a.legendKeyColor()));
|
384 |
+
!0===a.hidden&&(l=b.markerDisabledColor);var m=b.valueText,g=g+b.lx+b.labelDx+b.markerLabelGap+b.valueWidth,n="end";"left"==b.valueAlign&&(g-=b.valueWidth,n="start");c=d.text(b.container,m,l,b.chart.fontFamily,c,n);d.setCN(e,c,"legend-value");c.translate(g,b.ly);b.entries[b.index].push(c);h+=b.valueWidth+2*b.markerLabelGap;c.dItem=a;b.valueLabels.push(c);k<f+5&&(k=f+5)}b.index++;e=b.container.rect(a.legendEntryWidth,0,h,k,0,0).attr({stroke:"none",fill:"#fff","fill-opacity":.005});e.dItem=a;b.entries[b.index-
|
385 |
+
1].push(e);e.mouseover(function(c){b.rollOverLabel(a,c)}).mouseout(function(c){b.rollOutLabel(a,c)}).click(function(c){b.clickLabel(a,c)})}},createV:function(){var a=this.markerSize;return d.polygon(this.container,[a/5,a/2,a-a/5,a/2],[a/3,a-a/5,a/5,a/1.7],this.switchColor)},createX:function(){var a=(this.markerSize-4)/2,b={stroke:this.switchColor,"stroke-width":3},c=this.container,e=d.line(c,[-a,a],[-a,a]).attr(b),a=d.line(c,[-a,a],[a,-a]).attr(b);return this.container.set([e,a])},createMarker:function(a,
|
386 |
+
b,c,e,g,f,h,k,l){var m=this.markerSize,n=this.container;g||(g=this.markerBorderColor);g||(g=b);isNaN(e)&&(e=this.markerBorderThickness);isNaN(f)&&(f=this.markerBorderAlpha);return d.bullet(n,a,m,b,c,e,g,f,m,h,k,this.chart.path,l)},validateNow:function(){this.invalidateSize()},updateValues:function(){var a=this.valueLabels,b=this.chart,c,e=this.data;if(a)for(c=0;c<a.length;c++){var g=a[c],f=g.dItem;f.periodDataItem=void 0;f.periodPercentDataItem=void 0;var h=" ";if(e)f.value?g.text(f.value):g.text("");
|
387 |
+
else{var k=null;if(void 0!==f.type){var k=f.currentDataItem,l=this.periodValueText;f.legendPeriodValueText&&(l=f.legendPeriodValueText);f.legendPeriodValueTextR&&(l=f.legendPeriodValueTextR);k?(h=this.valueText,f.legendValueText&&(h=f.legendValueText),f.legendValueTextR&&(h=f.legendValueTextR),h=b.formatString(h,k)):l&&b.formatPeriodString&&(l=d.massReplace(l,{"[[title]]":f.title}),h=b.formatPeriodString(l,f))}else h=b.formatString(this.valueText,f);l=f;k&&(l=k);var m=this.valueFunction;m&&(h=m(l,
|
388 |
+
h,b.periodDataItem));var n;this.useMarkerColorForLabels&&!k&&f.lastDataItem&&(k=f.lastDataItem);k?n=b.getBalloonColor(f,k):f.legendKeyColor&&(n=f.legendKeyColor());f.legendColorFunction&&(n=f.legendColorFunction(l,h,f.periodDataItem,f.periodPercentDataItem));g.text(h);if(!f.pattern&&(this.useMarkerColorForValues&&g.setAttr("fill",n),this.useMarkerColorForLabels)){if(g=f.legendMarker)g.setAttr("fill",n),g.setAttr("stroke",n);(g=f.legendLabel)&&(f.hidden?g.setAttr("fill",this.markerDisabledColor):g.setAttr("fill",
|
389 |
+
n))}}}},renderFix:function(){if(!d.VML&&this.enabled){var a=this.container;a&&a.renderFix()}},destroy:function(){this.div.innerHTML="";d.remove(this.set)}})})();(function(){var d=window.AmCharts;d.formatMilliseconds=function(a,b){if(-1!=a.indexOf("fff")){var c=b.getMilliseconds(),d=String(c);10>c&&(d="00"+c);10<=c&&100>c&&(d="0"+c);a=a.replace(/fff/g,d)}return a};d.extractPeriod=function(a){var b=d.stripNumbers(a),c=1;b!=a&&(c=Number(a.slice(0,a.indexOf(b))));return{period:b,count:c}};d.getDate=function(a,b,c){return a instanceof Date?d.newDate(a,c):b&&isNaN(a)?d.stringToDate(a,b):new Date(a)};d.daysInMonth=function(a){return(new Date(a.getYear(),a.getMonth()+
|
390 |
+
1,0)).getDate()};d.newDate=function(a,b){return b&&-1==b.indexOf("fff")?new Date(a):new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds())};d.resetDateToMin=function(a,b,c,e){void 0===e&&(e=1);var g,f,h,k,l,m,n;d.useUTC?(g=a.getUTCFullYear(),f=a.getUTCMonth(),h=a.getUTCDate(),k=a.getUTCHours(),l=a.getUTCMinutes(),m=a.getUTCSeconds(),n=a.getUTCMilliseconds(),a=a.getUTCDay()):(g=a.getFullYear(),f=a.getMonth(),h=a.getDate(),k=a.getHours(),l=
|
391 |
+
a.getMinutes(),m=a.getSeconds(),n=a.getMilliseconds(),a=a.getDay());switch(b){case "YYYY":g=Math.floor(g/c)*c;f=0;h=1;n=m=l=k=0;break;case "MM":f=Math.floor(f/c)*c;h=1;n=m=l=k=0;break;case "WW":h=a>=e?h-a+e:h-(7+a)+e;n=m=l=k=0;break;case "DD":n=m=l=k=0;break;case "hh":k=Math.floor(k/c)*c;n=m=l=0;break;case "mm":l=Math.floor(l/c)*c;n=m=0;break;case "ss":m=Math.floor(m/c)*c;n=0;break;case "fff":n=Math.floor(n/c)*c}d.useUTC?(a=new Date,a.setUTCFullYear(g,f,h),a.setUTCHours(k,l,m,n)):a=new Date(g,f,h,
|
392 |
+
k,l,m,n);return a};d.getPeriodDuration=function(a,b){void 0===b&&(b=1);var c;switch(a){case "YYYY":c=316224E5;break;case "MM":c=26784E5;break;case "WW":c=6048E5;break;case "DD":c=864E5;break;case "hh":c=36E5;break;case "mm":c=6E4;break;case "ss":c=1E3;break;case "fff":c=1}return c*b};d.intervals={s:{nextInterval:"ss",contains:1E3},ss:{nextInterval:"mm",contains:60,count:0},mm:{nextInterval:"hh",contains:60,count:1},hh:{nextInterval:"DD",contains:24,count:2},DD:{nextInterval:"",contains:Infinity,count:3}};
|
393 |
+
d.getMaxInterval=function(a,b){var c=d.intervals;return a>=c[b].contains?(a=Math.round(a/c[b].contains),b=c[b].nextInterval,d.getMaxInterval(a,b)):"ss"==b?c[b].nextInterval:b};d.dayNames="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ");d.shortDayNames="Sun Mon Tue Wed Thu Fri Sat".split(" ");d.monthNames="January February March April May June July August September October November December".split(" ");d.shortMonthNames="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");
|
394 |
+
d.getWeekNumber=function(a){a=new Date(a);a.setHours(0,0,0);a.setDate(a.getDate()+4-(a.getDay()||7));var b=new Date(a.getFullYear(),0,1);return Math.ceil(((a-b)/864E5+1)/7)};d.stringToDate=function(a,b){var c={},e=[{pattern:"YYYY",period:"year"},{pattern:"YY",period:"year"},{pattern:"MM",period:"month"},{pattern:"M",period:"month"},{pattern:"DD",period:"date"},{pattern:"D",period:"date"},{pattern:"JJ",period:"hours"},{pattern:"J",period:"hours"},{pattern:"HH",period:"hours"},{pattern:"H",period:"hours"},
|
395 |
+
{pattern:"KK",period:"hours"},{pattern:"K",period:"hours"},{pattern:"LL",period:"hours"},{pattern:"L",period:"hours"},{pattern:"NN",period:"minutes"},{pattern:"N",period:"minutes"},{pattern:"SS",period:"seconds"},{pattern:"S",period:"seconds"},{pattern:"QQQ",period:"milliseconds"},{pattern:"QQ",period:"milliseconds"},{pattern:"Q",period:"milliseconds"}],g=!0,f=b.indexOf("AA");-1!=f&&(a.substr(f,2),"pm"==a.toLowerCase&&(g=!1));var f=b,h,k,l;for(l=0;l<e.length;l++)k=e[l].period,c[k]=0,"date"==k&&(c[k]=
|
396 |
+
1);for(l=0;l<e.length;l++)if(h=e[l].pattern,k=e[l].period,-1!=b.indexOf(h)){var m=d.getFromDateString(h,a,f);b=b.replace(h,"");if("KK"==h||"K"==h||"LL"==h||"L"==h)g||(m+=12);c[k]=m}d.useUTC?(e=new Date,e.setUTCFullYear(c.year,c.month,c.date),e.setUTCHours(c.hours,c.minutes,c.seconds,c.milliseconds)):e=new Date(c.year,c.month,c.date,c.hours,c.minutes,c.seconds,c.milliseconds);return e};d.getFromDateString=function(a,b,c){if(void 0!==b)return c=c.indexOf(a),b=String(b),b=b.substr(c,a.length),"0"==b.charAt(0)&&
|
397 |
+
(b=b.substr(1,b.length-1)),b=Number(b),isNaN(b)&&(b=0),-1!=a.indexOf("M")&&b--,b};d.formatDate=function(a,b,c){c||(c=d);var e,g,f,h,k,l,m,n,q=d.getWeekNumber(a);d.useUTC?(e=a.getUTCFullYear(),g=a.getUTCMonth(),f=a.getUTCDate(),h=a.getUTCDay(),k=a.getUTCHours(),l=a.getUTCMinutes(),m=a.getUTCSeconds(),n=a.getUTCMilliseconds()):(e=a.getFullYear(),g=a.getMonth(),f=a.getDate(),h=a.getDay(),k=a.getHours(),l=a.getMinutes(),m=a.getSeconds(),n=a.getMilliseconds());var p=String(e).substr(2,2),t="0"+h;b=b.replace(/W/g,
|
398 |
+
q);q=k;24==q&&(q=0);var r=q;10>r&&(r="0"+r);b=b.replace(/JJ/g,r);b=b.replace(/J/g,q);r=k;0===r&&(r=24,-1!=b.indexOf("H")&&(f--,0===f&&(e=new Date(a),e.setDate(e.getDate()-1),g=e.getMonth(),f=e.getDate(),e=e.getFullYear())));a=g+1;9>g&&(a="0"+a);q=f;10>f&&(q="0"+f);var w=r;10>w&&(w="0"+w);b=b.replace(/HH/g,w);b=b.replace(/H/g,r);r=k;11<r&&(r-=12);w=r;10>w&&(w="0"+w);b=b.replace(/KK/g,w);b=b.replace(/K/g,r);r=k;0===r&&(r=12);12<r&&(r-=12);w=r;10>w&&(w="0"+w);b=b.replace(/LL/g,w);b=b.replace(/L/g,r);
|
399 |
+
r=l;10>r&&(r="0"+r);b=b.replace(/NN/g,r);b=b.replace(/N/g,l);l=m;10>l&&(l="0"+l);b=b.replace(/SS/g,l);b=b.replace(/S/g,m);m=n;10>m?m="00"+m:100>m&&(m="0"+m);l=n;10>l&&(l="00"+l);b=b.replace(/A/g,"@A@");b=b.replace(/QQQ/g,m);b=b.replace(/QQ/g,l);b=b.replace(/Q/g,n);b=b.replace(/YYYY/g,"@IIII@");b=b.replace(/YY/g,"@II@");b=b.replace(/MMMM/g,"@XXXX@");b=b.replace(/MMM/g,"@XXX@");b=b.replace(/MM/g,"@XX@");b=b.replace(/M/g,"@X@");b=b.replace(/DD/g,"@RR@");b=b.replace(/D/g,"@R@");b=b.replace(/EEEE/g,"@PPPP@");
|
400 |
+
b=b.replace(/EEE/g,"@PPP@");b=b.replace(/EE/g,"@PP@");b=b.replace(/E/g,"@P@");b=b.replace(/@IIII@/g,e);b=b.replace(/@II@/g,p);b=b.replace(/@XXXX@/g,c.monthNames[g]);b=b.replace(/@XXX@/g,c.shortMonthNames[g]);b=b.replace(/@XX@/g,a);b=b.replace(/@X@/g,g+1);b=b.replace(/@RR@/g,q);b=b.replace(/@R@/g,f);b=b.replace(/@PPPP@/g,c.dayNames[h]);b=b.replace(/@PPP@/g,c.shortDayNames[h]);b=b.replace(/@PP@/g,t);b=b.replace(/@P@/g,h);return b=12>k?b.replace(/@A@/g,c.amString):b.replace(/@A@/g,c.pmString)};d.changeDate=
|
401 |
+
function(a,b,c,e,g){if(d.useUTC)return d.changeUTCDate(a,b,c,e,g);var f=-1;void 0===e&&(e=!0);void 0===g&&(g=!1);!0===e&&(f=1);switch(b){case "YYYY":a.setFullYear(a.getFullYear()+c*f);e||g||a.setDate(a.getDate()+1);break;case "MM":b=a.getMonth();var h=a.getFullYear();a.setMonth(a.getMonth()+c*f);h==a.getFullYear()&&a.getMonth()>b+c*f&&a.setDate(a.getDate()-1);e||g||a.setDate(a.getDate()+1);break;case "DD":a.setDate(a.getDate()+c*f);break;case "WW":a.setDate(a.getDate()+c*f*7);break;case "hh":a.setHours(a.getHours()+
|
402 |
+
c*f);break;case "mm":a.setMinutes(a.getMinutes()+c*f);break;case "ss":a.setSeconds(a.getSeconds()+c*f);break;case "fff":a.setMilliseconds(a.getMilliseconds()+c*f)}return a};d.changeUTCDate=function(a,b,c,d,g){var f=-1;void 0===d&&(d=!0);void 0===g&&(g=!1);!0===d&&(f=1);switch(b){case "YYYY":a.setUTCFullYear(a.getUTCFullYear()+c*f);d||g||a.setUTCDate(a.getUTCDate()+1);break;case "MM":b=a.getUTCMonth();a.setUTCMonth(a.getUTCMonth()+c*f);a.getUTCMonth()>b+c*f&&a.setUTCDate(a.getUTCDate()-1);d||g||a.setUTCDate(a.getUTCDate()+
|
403 |
+
1);break;case "DD":a.setUTCDate(a.getUTCDate()+c*f);break;case "WW":a.setUTCDate(a.getUTCDate()+c*f*7);break;case "hh":a.setUTCHours(a.getUTCHours()+c*f);break;case "mm":a.setUTCMinutes(a.getUTCMinutes()+c*f);break;case "ss":a.setUTCSeconds(a.getUTCSeconds()+c*f);break;case "fff":a.setUTCMilliseconds(a.getUTCMilliseconds()+c*f)}return a}})();
|
assets/js/amcharts/light.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
AmCharts.themes.light={themeName:"light",AmChart:{color:"#000000",backgroundColor:"#FFFFFF"},AmCoordinateChart:{colors:["#67b7dc","#fdd400","#84b761","#cc4748","#cd82ad","#2f4074","#448e4d","#b7b83f","#b9783f","#b93e3d","#913167"]},AmStockChart:{colors:["#67b7dc","#fdd400","#84b761","#cc4748","#cd82ad","#2f4074","#448e4d","#b7b83f","#b9783f","#b93e3d","#913167"]},AmSlicedChart:{colors:["#67b7dc","#fdd400","#84b761","#cc4748","#cd82ad","#2f4074","#448e4d","#b7b83f","#b9783f","#b93e3d","#913167"],outlineAlpha:1,outlineThickness:2,labelTickColor:"#000000",labelTickAlpha:0.3},AmRectangularChart:{zoomOutButtonColor:'#000000',zoomOutButtonRollOverAlpha:0.15,zoomOutButtonImage:"lens"},AxisBase:{axisColor:"#000000",axisAlpha:0.3,gridAlpha:0.1,gridColor:"#000000"},ChartScrollbar:{backgroundColor:"#000000",backgroundAlpha:0.12,graphFillAlpha:0.5,graphLineAlpha:0,selectedBackgroundColor:"#FFFFFF",selectedBackgroundAlpha:0.4,gridAlpha:0.15},ChartCursor:{cursorColor:"#000000",color:"#FFFFFF",cursorAlpha:0.5},AmLegend:{color:"#000000"},AmGraph:{lineAlpha:0.9},GaugeArrow:{color:"#000000",alpha:0.8,nailAlpha:0,innerRadius:"40%",nailRadius:15,startWidth:15,borderAlpha:0.8,nailBorderAlpha:0},GaugeAxis:{tickColor:"#000000",tickAlpha:1,tickLength:15,minorTickLength:8,axisThickness:3,axisColor:'#000000',axisAlpha:1,bandAlpha:0.8},TrendLine:{lineColor:"#c03246",lineAlpha:0.8},AreasSettings:{alpha:0.8,color:"#67b7dc",colorSolid:"#003767",unlistedAreasAlpha:0.4,unlistedAreasColor:"#000000",outlineColor:"#FFFFFF",outlineAlpha:0.5,outlineThickness:0.5,rollOverColor:"#3c5bdc",rollOverOutlineColor:"#FFFFFF",selectedOutlineColor:"#FFFFFF",selectedColor:"#f15135",unlistedAreasOutlineColor:"#FFFFFF",unlistedAreasOutlineAlpha:0.5},LinesSettings:{color:"#000000",alpha:0.8},ImagesSettings:{alpha:0.8,labelColor:"#000000",color:"#000000",labelRollOverColor:"#3c5bdc"},ZoomControl:{buttonFillAlpha:0.7,buttonIconColor:"#a7a7a7"},SmallMap:{mapColor:"#000000",rectangleColor:"#f15135",backgroundColor:"#FFFFFF",backgroundAlpha:0.7,borderThickness:1,borderAlpha:0.8},PeriodSelector:{color:"#000000"},PeriodButton:{color:"#000000",background:"transparent",opacity:0.7,border:"1px solid rgba(0, 0, 0, .3)",MozBorderRadius:"5px",borderRadius:"5px",margin:"1px",outline:"none",boxSizing:"border-box"},PeriodButtonSelected:{color:"#000000",backgroundColor:"#b9cdf5",border:"1px solid rgba(0, 0, 0, .3)",MozBorderRadius:"5px",borderRadius:"5px",margin:"1px",outline:"none",opacity:1,boxSizing:"border-box"},PeriodInputField:{color:"#000000",background:"transparent",border:"1px solid rgba(0, 0, 0, .3)",outline:"none"},DataSetSelector:{color:"#000000",selectedBackgroundColor:"#b9cdf5",rollOverBackgroundColor:"#a8b0e4"},DataSetCompareList:{color:"#000000",lineHeight:"100%",boxSizing:"initial",webkitBoxSizing:"initial",border:"1px solid rgba(0, 0, 0, .3)"},DataSetSelect:{border:"1px solid rgba(0, 0, 0, .3)",outline:"none"}};
|
assets/js/amcharts/serial.js
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function(){var e=window.AmCharts;e.AmRectangularChart=e.Class({inherits:e.AmCoordinateChart,construct:function(a){e.AmRectangularChart.base.construct.call(this,a);this.theme=a;this.createEvents("zoomed","changed");this.marginRight=this.marginBottom=this.marginTop=this.marginLeft=20;this.depth3D=this.angle=0;this.plotAreaFillColors="#FFFFFF";this.plotAreaFillAlphas=0;this.plotAreaBorderColor="#000000";this.plotAreaBorderAlpha=0;this.maxZoomFactor=20;this.zoomOutButtonImageSize=19;this.zoomOutButtonImage="lens";this.zoomOutText="Show all";this.zoomOutButtonColor="#e5e5e5";this.zoomOutButtonAlpha=0;this.zoomOutButtonRollOverAlpha=1;this.zoomOutButtonPadding=8;this.trendLines=[];this.autoMargins=!0;this.marginsUpdated=!1;this.autoMarginOffset=10;e.applyTheme(this,a,"AmRectangularChart")},initChart:function(){e.AmRectangularChart.base.initChart.call(this);this.updateDxy();!this.marginsUpdated&&this.autoMargins&&(this.resetMargins(),this.drawGraphs=!1);this.processScrollbars();this.updateMargins();this.updatePlotArea();this.updateScrollbars();this.updateTrendLines();this.updateChartCursor();this.updateValueAxes();this.scrollbarOnly||this.updateGraphs()},drawChart:function(){e.AmRectangularChart.base.drawChart.call(this);this.drawPlotArea();if(e.ifArray(this.chartData)){var a=this.chartCursor;a&&a.draw()}},resetMargins:function(){var a={},b;if("xy"==this.type){var c=this.xAxes,d=this.yAxes;for(b=0;b<c.length;b++){var g=c[b];g.ignoreAxisWidth||(g.setOrientation(!0),g.fixAxisPosition(),a[g.position]=!0)}for(b=0;b<d.length;b++)c=d[b],c.ignoreAxisWidth||(c.setOrientation(!1),c.fixAxisPosition(),a[c.position]=!0)}else{d=this.valueAxes;for(b=0;b<d.length;b++)c=d[b],c.ignoreAxisWidth||(c.setOrientation(this.rotate),c.fixAxisPosition(),a[c.position]=!0);(b=this.categoryAxis)&&!b.ignoreAxisWidth&&(b.setOrientation(!this.rotate),b.fixAxisPosition(),b.fixAxisPosition(),a[b.position]=!0)}a.left&&(this.marginLeft=0);a.right&&(this.marginRight=0);a.top&&(this.marginTop=0);a.bottom&&(this.marginBottom=0);this.fixMargins=a},measureMargins:function(){var a=this.valueAxes,b,c=this.autoMarginOffset,d=this.fixMargins,g=this.realWidth,h=this.realHeight,f=c,e=c,k=g;b=h;var m;for(m=0;m<a.length;m++)a[m].handleSynchronization(),b=this.getAxisBounds(a[m],f,k,e,b),f=Math.round(b.l),k=Math.round(b.r),e=Math.round(b.t),b=Math.round(b.b);if(a=this.categoryAxis)b=this.getAxisBounds(a,f,k,e,b),f=Math.round(b.l),k=Math.round(b.r),e=Math.round(b.t),b=Math.round(b.b);d.left&&f<c&&(this.marginLeft=Math.round(-f+c),!isNaN(this.minMarginLeft)&&this.marginLeft<this.minMarginLeft&&(this.marginLeft=this.minMarginLeft));d.right&&k>=g-c&&(this.marginRight=Math.round(k-g+c),!isNaN(this.minMarginRight)&&this.marginRight<this.minMarginRight&&(this.marginRight=this.minMarginRight));d.top&&e<c+this.titleHeight&&(this.marginTop=Math.round(this.marginTop-e+c+this.titleHeight),!isNaN(this.minMarginTop)&&this.marginTop<this.minMarginTop&&(this.marginTop=this.minMarginTop));d.bottom&&b>h-c&&(this.marginBottom=Math.round(this.marginBottom+b-h+c),!isNaN(this.minMarginBottom)&&this.marginBottom<this.minMarginBottom&&(this.marginBottom=this.minMarginBottom));this.initChart()},getAxisBounds:function(a,b,c,d,g){if(!a.ignoreAxisWidth){var h=a.labelsSet,f=a.tickLength;a.inside&&(f=0);if(h)switch(h=a.getBBox(),a.position){case "top":a=h.y;d>a&&(d=a);break;case "bottom":a=h.y+h.height;g<a&&(g=a);break;case "right":a=h.x+h.width+f+3;c<a&&(c=a);break;case "left":a=h.x-f,b>a&&(b=a)}}return{l:b,t:d,r:c,b:g}},drawZoomOutButton:function(){var a=this;if(!a.zbSet){var b=a.container.set();a.zoomButtonSet.push(b);var c=a.color,d=a.fontSize,g=a.zoomOutButtonImageSize,h=a.zoomOutButtonImage.replace(/\.[a-z]*$/i,""),f=a.langObj.zoomOutText||a.zoomOutText,l=a.zoomOutButtonColor,k=a.zoomOutButtonAlpha,m=a.zoomOutButtonFontSize,p=a.zoomOutButtonPadding;isNaN(m)||(d=m);(m=a.zoomOutButtonFontColor)&&(c=m);var m=a.zoomOutButton,n;m&&(m.fontSize&&(d=m.fontSize),m.color&&(c=m.color),m.backgroundColor&&(l=m.backgroundColor),isNaN(m.backgroundAlpha)||(a.zoomOutButtonRollOverAlpha=m.backgroundAlpha));var u=m=0,u=a.pathToImages;if(h){if(e.isAbsolute(h)||void 0===u)u="";n=a.container.image(u+h+a.extension,0,0,g,g);e.setCN(a,n,"zoom-out-image");b.push(n);n=n.getBBox();m=n.width+5}void 0!==f&&(c=e.text(a.container,f,c,a.fontFamily,d,"start"),e.setCN(a,c,"zoom-out-label"),d=c.getBBox(),u=n?n.height/2-3:d.height/2,c.translate(m,u),b.push(c));n=b.getBBox();c=1;e.isModern||(c=0);l=e.rect(a.container,n.width+2*p+5,n.height+2*p-2,l,1,1,l,c);l.setAttr("opacity",k);l.translate(-p,-p);e.setCN(a,l,"zoom-out-bg");b.push(l);l.toBack();a.zbBG=l;n=l.getBBox();b.translate(a.marginLeftReal+a.plotAreaWidth-n.width+p,a.marginTopReal+p);b.hide();b.mouseover(function(){a.rollOverZB()}).mouseout(function(){a.rollOutZB()}).click(function(){a.clickZB()}).touchstart(function(){a.rollOverZB()}).touchend(function(){a.rollOutZB();a.clickZB()});for(k=0;k<b.length;k++)b[k].attr({cursor:"pointer"});void 0!==a.zoomOutButtonTabIndex&&(b.setAttr("tabindex",a.zoomOutButtonTabIndex),b.setAttr("role","menuitem"),b.keyup(function(b){13==b.keyCode&&a.clickZB()}));a.zbSet=b}},rollOverZB:function(){this.rolledOverZB=!0;this.zbBG.setAttr("opacity",this.zoomOutButtonRollOverAlpha)},rollOutZB:function(){this.rolledOverZB=!1;this.zbBG.setAttr("opacity",this.zoomOutButtonAlpha)},clickZB:function(){this.rolledOverZB=!1;this.zoomOut()},zoomOut:function(){this.zoomOutValueAxes()},drawPlotArea:function(){var a=this.dx,b=this.dy,c=this.marginLeftReal,d=this.marginTopReal,g=this.plotAreaWidth-1,h=this.plotAreaHeight-1,f=this.plotAreaFillColors,l=this.plotAreaFillAlphas,k=this.plotAreaBorderColor,m=this.plotAreaBorderAlpha;"object"==typeof l&&(l=l[0]);f=e.polygon(this.container,[0,g,g,0,0],[0,0,h,h,0],f,l,1,k,m,this.plotAreaGradientAngle);e.setCN(this,f,"plot-area");f.translate(c+a,d+b);this.set.push(f);0!==a&&0!==b&&(f=this.plotAreaFillColors,"object"==typeof f&&(f=f[0]),f=e.adjustLuminosity(f,-.15),g=e.polygon(this.container,[0,a,g+a,g,0],[0,b,b,0,0],f,l,1,k,m),e.setCN(this,g,"plot-area-bottom"),g.translate(c,d+h),this.set.push(g),a=e.polygon(this.container,[0,0,a,a,0],[0,h,h+b,b,0],f,l,1,k,m),e.setCN(this,a,"plot-area-left"),a.translate(c,d),this.set.push(a));(c=this.bbset)&&this.scrollbarOnly&&c.remove()},updatePlotArea:function(){var a=this.updateWidth(),b=this.updateHeight(),c=this.container;this.realWidth=a;this.realWidth=b;c&&this.container.setSize(a,b);var c=this.marginLeftReal,d=this.marginTopReal,a=a-c-this.marginRightReal-this.dx,b=b-d-this.marginBottomReal;1>a&&(a=1);1>b&&(b=1);this.plotAreaWidth=Math.round(a);this.plotAreaHeight=Math.round(b);this.plotBalloonsSet.translate(c,d)},updateDxy:function(){this.dx=Math.round(this.depth3D*Math.cos(this.angle*Math.PI/180));this.dy=Math.round(-this.depth3D*Math.sin(this.angle*Math.PI/180));this.d3x=Math.round(this.columnSpacing3D*Math.cos(this.angle*Math.PI/180));this.d3y=Math.round(-this.columnSpacing3D*Math.sin(this.angle*Math.PI/180))},updateMargins:function(){var a=this.getTitleHeight();this.titleHeight=a;this.marginTopReal=this.marginTop-this.dy;this.fixMargins&&!this.fixMargins.top&&(this.marginTopReal+=a);this.marginBottomReal=this.marginBottom;this.marginLeftReal=this.marginLeft;this.marginRightReal=this.marginRight},updateValueAxes:function(){var a=this.valueAxes,b;for(b=0;b<a.length;b++){var c=a[b];this.setAxisRenderers(c);this.updateObjectSize(c)}},setAxisRenderers:function(a){a.axisRenderer=e.RecAxis;a.guideFillRenderer=e.RecFill;a.axisItemRenderer=e.RecItem;a.marginsChanged=!0},updateGraphs:function(){var a=this.graphs,b;for(b=0;b<a.length;b++){var c=a[b];c.index=b;c.rotate=this.rotate;this.updateObjectSize(c)}},updateObjectSize:function(a){a.width=this.plotAreaWidth-1;a.height=this.plotAreaHeight-1;a.x=this.marginLeftReal;a.y=this.marginTopReal;a.dx=this.dx;a.dy=this.dy},updateChartCursor:function(){var a=this.chartCursor;a&&(a=e.processObject(a,e.ChartCursor,this.theme),this.updateObjectSize(a),this.addChartCursor(a),a.chart=this)},processScrollbars:function(){var a=this.chartScrollbar;a&&(a=e.processObject(a,e.ChartScrollbar,this.theme),this.addChartScrollbar(a))},updateScrollbars:function(){},removeChartCursor:function(){e.callMethod("destroy",[this.chartCursor]);this.chartCursor=null},zoomTrendLines:function(){var a=this.trendLines,b;for(b=0;b<a.length;b++){var c=a[b];c.valueAxis.recalculateToPercents?c.set&&c.set.hide():(c.x=this.marginLeftReal,c.y=this.marginTopReal,c.draw())}},handleCursorValueZoom:function(){},addTrendLine:function(a){this.trendLines.push(a)},zoomOutValueAxes:function(){for(var a=this.valueAxes,b=0;b<a.length;b++)a[b].zoomOut()},removeTrendLine:function(a){var b=this.trendLines,c;for(c=b.length-1;0<=c;c--)b[c]==a&&b.splice(c,1)},adjustMargins:function(a,b){var c=a.position,d=a.scrollbarHeight+a.offset;a.enabled&&("top"==c?b?this.marginLeftReal+=d:this.marginTopReal+=d:b?this.marginRightReal+=d:this.marginBottomReal+=d)},getScrollbarPosition:function(a,b,c){var d="bottom",g="top";a.oppositeAxis||(g=d,d="top");a.position=b?"bottom"==c||"left"==c?d:g:"top"==c||"right"==c?d:g},updateChartScrollbar:function(a,b){if(a){a.rotate=b;var c=this.marginTopReal,d=this.marginLeftReal,g=a.scrollbarHeight,h=this.dx,f=this.dy,e=a.offset;"top"==a.position?b?(a.y=c,a.x=d-g-e):(a.y=c-g+f-e,a.x=d+h):b?(a.y=c+f,a.x=d+this.plotAreaWidth+h+e):(a.y=c+this.plotAreaHeight+e,a.x=this.marginLeftReal)}},showZB:function(a){var b=this.zbSet;a&&(b=this.zoomOutText,""!==b&&b&&this.drawZoomOutButton());if(b=this.zbSet)this.zoomButtonSet.push(b),a?b.show():b.hide(),this.rollOutZB()},handleReleaseOutside:function(a){e.AmRectangularChart.base.handleReleaseOutside.call(this,a);(a=this.chartCursor)&&a.handleReleaseOutside&&a.handleReleaseOutside()},handleMouseDown:function(a){e.AmRectangularChart.base.handleMouseDown.call(this,a);var b=this.chartCursor;b&&b.handleMouseDown&&!this.rolledOverZB&&b.handleMouseDown(a)},update:function(){e.AmRectangularChart.base.update.call(this);this.chartCursor&&this.chartCursor.update&&this.chartCursor.update()},handleScrollbarValueZoom:function(a){this.relativeZoomValueAxes(a.target.valueAxes,a.relativeStart,a.relativeEnd);this.zoomAxesAndGraphs()},zoomValueScrollbar:function(a){if(a&&a.enabled){var b=a.valueAxes[0],c=b.relativeStart,d=b.relativeEnd;b.reversed&&(d=1-c,c=1-b.relativeEnd);a.percentZoom(c,d)}},zoomAxesAndGraphs:function(){if(!this.scrollbarOnly){var a=this.valueAxes,b;for(b=0;b<a.length;b++)a[b].zoom(this.start,this.end);a=this.graphs;for(b=0;b<a.length;b++)a[b].zoom(this.start,this.end);(b=this.chartCursor)&&b.clearSelection();this.zoomTrendLines()}},handleValueAxisZoomReal:function(a,b){var c=a.relativeStart,d=a.relativeEnd;if(c>d)var g=c,c=d,d=g;this.relativeZoomValueAxes(b,c,d);this.updateAfterValueZoom()},updateAfterValueZoom:function(){this.zoomAxesAndGraphs();this.zoomScrollbar()},relativeZoomValueAxes:function(a,b,c){this.hideBalloonReal();b=e.fitToBounds(b,0,1);c=e.fitToBounds(c,0,1);if(b>c){var d=b;b=c;c=d}var d=1/this.maxZoomFactor,g=e.getDecimals(d)+4;c-b<d&&(c=b+(c-b)/2,b=c-d/2,c+=d/2,1<c&&(b-=c-1,c=1),0>b&&(b=0,c=d));b=e.roundTo(b,g);c=e.roundTo(c,g);d=!1;if(a){for(g=0;g<a.length;g++){var h=a[g].zoomToRelativeValues(b,c,!0);h&&(d=h)}this.showZB()}return d},addChartCursor:function(a){e.callMethod("destroy",[this.chartCursor]);a&&(this.listenTo(a,"moved",this.handleCursorMove),this.listenTo(a,"zoomed",this.handleCursorZoom),this.listenTo(a,"zoomStarted",this.handleCursorZoomStarted),this.listenTo(a,"panning",this.handleCursorPanning),this.listenTo(a,"onHideCursor",this.handleCursorHide));this.chartCursor=a},handleCursorChange:function(){},handleCursorMove:function(a){var b,c=this.valueAxes;for(b=0;b<c.length;b++)if(!a.panning){var d=c[b];d&&d.showBalloon&&d.showBalloon(a.x,a.y)}},handleCursorZoom:function(a){if(this.skipZoomed)this.skipZoomed=!1;else{var b=this.startX0,c=this.endX0,d=this.endY0,g=this.startY0,e=a.startX,f=a.endX,l=a.startY,k=a.endY;this.startX0=this.endX0=this.startY0=this.endY0=NaN;this.handleCursorZoomReal(b+e*(c-b),b+f*(c-b),g+l*(d-g),g+k*(d-g),a)}},handleCursorHide:function(){var a,b=this.valueAxes;for(a=0;a<b.length;a++)b[a].hideBalloon();b=this.graphs;for(a=0;a<b.length;a++)b[a].hideBalloonReal()}})})();(function(){var e=window.AmCharts;e.AmSerialChart=e.Class({inherits:e.AmRectangularChart,construct:function(a){this.type="serial";e.AmSerialChart.base.construct.call(this,a);this.cname="AmSerialChart";this.theme=a;this.columnSpacing=5;this.columnSpacing3D=0;this.columnWidth=.8;var b=new e.CategoryAxis(a);b.chart=this;this.categoryAxis=b;this.zoomOutOnDataUpdate=!0;this.mouseWheelZoomEnabled=this.mouseWheelScrollEnabled=this.rotate=this.skipZoom=!1;this.minSelectedTime=0;e.applyTheme(this,a,this.cname)},initChart:function(){e.AmSerialChart.base.initChart.call(this);this.updateCategoryAxis(this.categoryAxis,this.rotate,"categoryAxis");if(this.dataChanged)this.parseData();else this.onDataUpdated();this.drawGraphs=!0},onDataUpdated:function(){var a=this.countColumns(),b=this.chartData,c=this.graphs,d;for(d=0;d<c.length;d++){var g=c[d];g.data=b;g.columnCount=a}0<b.length&&(this.firstTime=this.getStartTime(b[0].time),this.lastTime=this.getEndTime(b[b.length-1].time));this.drawChart();this.autoMargins&&!this.marginsUpdated?(this.marginsUpdated=!0,this.measureMargins()):this.dispDUpd()},syncGrid:function(){if(this.synchronizeGrid){var a=this.valueAxes,b,c;if(0<a.length){var d=0;for(c=0;c<a.length;c++)b=a[c],d<b.gridCountReal&&(d=b.gridCountReal);var g=!1;for(c=0;c<a.length;c++)if(b=a[c],b.gridCountReal<d){var h=(d-b.gridCountReal)/2,f=g=h;0!==h-Math.round(h)&&(g-=.5,f+=.5);0<=b.min&&0>b.min-g*b.step&&(f+=g,g=0);0>=b.max&&0<b.max+f*b.step&&(g+=f,f=0);h=e.getDecimals(b.step);b.minimum=e.roundTo(b.min-
|
2 |
+
g*b.step,h);b.maximum=e.roundTo(b.max+f*b.step,h);b.setStep=b.step;g=b.strictMinMax=!0}g&&this.updateAfterValueZoom();for(c=0;c<a.length;c++)b=a[c],b.minimum=NaN,b.maximum=NaN,b.setStep=NaN,b.strictMinMax=!1}}},handleWheelReal:function(a,b){if(!this.wheelBusy){var c=this.categoryAxis,d=c.parseDates,g=c.minDuration(),e=1,f=1;this.mouseWheelZoomEnabled?b||(e=-1):b&&(e=-1);var l=this.chartCursor;if(l)if(l.mouseIsOver()){var k=l.mouseX,l=l.mouseY;e!=f&&(k=this.rotate?l/this.plotAreaHeight:k/this.plotAreaWidth,e*=k,f*=1-k);k=.05*(this.end-this.start);d&&(k=.05*(this.endTime-this.startTime)/g);1>k&&(k=1);e*=k;f*=k;if(!d||c.equalSpacing)e=Math.round(e),f=Math.round(f);l=this.chartData.length;c=this.lastTime;k=this.firstTime;0>a?d?(l=this.endTime-this.startTime,d=this.startTime+e*g,g=this.endTime+f*g,0<f&&0<e&&g>=c&&(g=c,d=c-l),this.zoomToDates(new Date(d),new Date(g))):(0<f&&0<e&&this.end>=l-1&&(e=f=0),d=this.start+e,g=this.end+f,this.zoomToIndexes(d,g)):d?(l=this.endTime-this.startTime,d=this.startTime-
|
3 |
+
e*g,g=this.endTime-f*g,0<f&&0<e&&d<=k&&(d=k,g=k+l),this.zoomToDates(new Date(d),new Date(g))):(0<f&&0<e&&1>this.start&&(e=f=0),d=this.start-e,g=this.end-f,this.zoomToIndexes(d,g))}else this.handleMouseOut()}},validateData:function(a){this.marginsUpdated=!1;this.zoomOutOnDataUpdate&&!a&&(this.endTime=this.end=this.startTime=this.start=NaN);var b=a=!1,c=!1,d=this.chartScrollbar;d&&(d.dragging&&(a=!0,d.handleDragStop()),d.resizingRight&&(c=!0,d.rightDragStop()),d.resizingLeft&&(b=!0,d.leftDragStop()));e.AmSerialChart.base.validateData.call(this);a&&d.handleDragStart();c&&d.rightDragStart();b&&d.leftDragStart()},drawChart:function(){if(0<this.realWidth&&0<this.realHeight){e.AmSerialChart.base.drawChart.call(this);var a=this.chartData;if(e.ifArray(a)){var b=this.chartScrollbar;!b||!this.marginsUpdated&&this.autoMargins||b.draw();(b=this.valueScrollbar)&&b.draw();var b=a.length-1,c,d;c=this.categoryAxis;if(c.parseDates&&!c.equalSpacing){if(c=this.startTime,d=this.endTime,isNaN(c)||isNaN(d))c=this.firstTime,d=this.lastTime}else{c=this.start;d=this.end;if(isNaN(c)||isNaN(d))d=c=NaN;isNaN(c)&&(isNaN(this.startTime)||(c=this.getClosestIndex(a,"time",this.startTime,!0,0,a.length)));isNaN(d)&&(isNaN(this.endTime)||(d=this.getClosestIndex(a,"time",this.endTime,!1,0,a.length)));if(isNaN(c)||isNaN(d))c=0,d=b}this.endTime=this.startTime=this.end=this.start=void 0;this.zoom(c,d)}}else this.cleanChart()},cleanChart:function(){e.callMethod("destroy",[this.valueAxes,this.graphs,this.categoryAxis,this.chartScrollbar,this.chartCursor,this.valueScrollbar])},updateCategoryAxis:function(a,b,c){a.chart=this;a.id=c;a.rotate=b;a.setOrientation(!this.rotate);a.init();this.setAxisRenderers(a);this.updateObjectSize(a)},updateValueAxes:function(){e.AmSerialChart.base.updateValueAxes.call(this);var a=this.valueAxes,b;for(b=0;b<a.length;b++){var c=a[b],d=this.rotate;c.rotate=d;c.setOrientation(d);d=this.categoryAxis;if(!d.startOnAxis||d.parseDates)c.expandMinMax=!0}},getStartTime:function(a){var b=this.categoryAxis;return e.resetDateToMin(new Date(a),b.minPeriod,1,b.firstDayOfWeek).getTime()},getEndTime:function(a){var b=e.extractPeriod(this.categoryAxis.minPeriod);return e.changeDate(new Date(a),b.period,b.count,!0).getTime()-1},updateMargins:function(){e.AmSerialChart.base.updateMargins.call(this);var a=this.chartScrollbar;a&&(this.getScrollbarPosition(a,this.rotate,this.categoryAxis.position),this.adjustMargins(a,this.rotate));if(a=this.valueScrollbar)this.getScrollbarPosition(a,!this.rotate,this.valueAxes[0].position),this.adjustMargins(a,!this.rotate)},updateScrollbars:function(){e.AmSerialChart.base.updateScrollbars.call(this);this.updateChartScrollbar(this.chartScrollbar,this.rotate);this.updateChartScrollbar(this.valueScrollbar,!this.rotate)},zoom:function(a,b){var c=this.categoryAxis;c.parseDates&&!c.equalSpacing?(this.timeZoom(a,b),isNaN(a)&&this.zoomOutValueAxes()):this.indexZoom(a,b);(c=this.chartCursor)&&(c.pan||c.hideCursorReal());this.updateLegendValues()},timeZoom:function(a,b){var c=this.maxSelectedTime;isNaN(c)||(b!=this.endTime&&b-a>c&&(a=b-c),a!=this.startTime&&b-a>c&&(b=a+c));var d=this.minSelectedTime;if(0<d&&b-a<d){var g=Math.round(a+(b-a)/2),d=Math.round(d/2);a=g-d;b=g+d}d=this.chartData;g=this.categoryAxis;if(e.ifArray(d)&&(a!=this.startTime||b!=this.endTime)){var h=g.minDuration(),f=this.firstTime,l=this.lastTime;a||(a=f,isNaN(c)||(a=l-c));b||(b=l);a>l&&(a=l);b<f&&(b=f);a<f&&(a=f);b>l&&(b=l);b<a&&(b=a+h);b-a<h/5&&(b<l?b=a+h/5:a=b-h/5);this.startTime=a;this.endTime=b;c=d.length-1;h=this.getClosestIndex(d,"time",a,!0,0,c);d=this.getClosestIndex(d,"time",b,!1,h,c);g.timeZoom(a,b);g.zoom(h,d);this.start=e.fitToBounds(h,0,c);this.end=e.fitToBounds(d,0,c);this.zoomAxesAndGraphs();this.zoomScrollbar();this.fixCursor();this.showZB();this.syncGrid();this.updateColumnsDepth();this.dispatchTimeZoomEvent()}},showZB:function(){var a,b=this.categoryAxis;b&&b.parseDates&&!b.equalSpacing&&(this.startTime>this.firstTime&&(a=!0),this.endTime<this.lastTime&&(a=!0));0<this.start&&(a=!0);this.end<this.chartData.length-
|
4 |
+
1&&(a=!0);if(b=this.valueAxes)b=b[0],isNaN(b.relativeStart)||(0!==e.roundTo(b.relativeStart,3)&&(a=!0),1!=e.roundTo(b.relativeEnd,3)&&(a=!0));e.AmSerialChart.base.showZB.call(this,a)},updateAfterValueZoom:function(){e.AmSerialChart.base.updateAfterValueZoom.call(this);this.updateColumnsDepth()},indexZoom:function(a,b){var c=this.maxSelectedSeries,d=!1;isNaN(c)||(b!=this.end&&b-a>c&&(a=b-c,d=!0),a!=this.start&&b-a>c&&(b=a+c,d=!0));if(d&&(d=this.chartScrollbar)&&d.dragger){var g=d.dragger.getBBox();d.maxWidth=g.width;d.maxHeight=g.height}if(a!=this.start||b!=this.end)d=this.chartData.length-1,isNaN(a)&&(a=0,isNaN(c)||(a=d-c)),isNaN(b)&&(b=d),b<a&&(b=a),b>d&&(b=d),a>d&&(a=d-1),0>a&&(a=0),this.start=a,this.end=b,this.categoryAxis.zoom(a,b),this.zoomAxesAndGraphs(),this.zoomScrollbar(),this.fixCursor(),0!==a||b!=this.chartData.length-1?this.showZB(!0):this.showZB(!1),this.syncGrid(),this.updateColumnsDepth(),this.dispatchIndexZoomEvent()},updateGraphs:function(){e.AmSerialChart.base.updateGraphs.call(this);var a=this.graphs,b;for(b=0;b<a.length;b++){var c=a[b];c.columnWidthReal=this.columnWidth;c.categoryAxis=this.categoryAxis;e.isString(c.fillToGraph)&&(c.fillToGraph=this.graphsById[c.fillToGraph])}},zoomAxesAndGraphs:function(){e.AmSerialChart.base.zoomAxesAndGraphs.call(this);this.updateColumnsDepth()},updateColumnsDepth:function(){if(0!==this.depth3D||0!==this.angle){var a,b=this.graphs,c;this.columnsArray=[];for(a=0;a<b.length;a++){c=b[a];var d=c.columnsArray;if(d){var g;for(g=0;g<d.length;g++)this.columnsArray.push(d[g])}}this.columnsArray.sort(this.compareDepth);b=this.columnsSet;if(0<this.columnsArray.length){d=this.container.set();this.columnSet.push(d);for(a=0;a<this.columnsArray.length;a++)d.push(this.columnsArray[a].column.set);c&&d.translate(c.x,c.y);this.columnsSet=d}e.remove(b)}},compareDepth:function(a,b){return a.depth>b.depth?1:-1},zoomScrollbar:function(){var a=this.chartScrollbar,b=this.categoryAxis;if(a){if(!this.zoomedByScrollbar){var c=a.dragger;c&&c.stop()}this.zoomedByScrollbar=!1;b.parseDates&&!b.equalSpacing?a.timeZoom(this.startTime,this.endTime):a.zoom(this.start,this.end)}this.zoomValueScrollbar(this.valueScrollbar)},updateTrendLines:function(){var a=this.trendLines,b;for(b=0;b<a.length;b++){var c=a[b],c=e.processObject(c,e.TrendLine,this.theme);a[b]=c;c.chart=this;c.id||(c.id="trendLineAuto"+b+"_"+(new Date).getTime());e.isString(c.valueAxis)&&(c.valueAxis=this.getValueAxisById(c.valueAxis));c.valueAxis||(c.valueAxis=this.valueAxes[0]);c.categoryAxis=this.categoryAxis}},validateNow:function(a,b){a&&this.zoomOutOnDataUpdate&&(this.endTime=this.end=this.startTime=this.start=NaN);e.AmSerialChart.base.validateNow.call(this,a,b)},countColumns:function(){var a=0,b=this.valueAxes.length,c=this.graphs.length,d,g,e=!1,f,l;for(l=0;l<b;l++){g=this.valueAxes[l];var k=g.stackType,m=0;if("100%"==k||"regular"==k)for(e=!1,f=0;f<c;f++)d=this.graphs[f],d.tcc=1,d.valueAxis==g&&"column"==d.type&&(!e&&d.stackable&&(a++,e=!0),(!d.stackable&&d.clustered||d.newStack&&0!==m)&&a++,d.columnIndex=a-1,d.clustered||(d.columnIndex=0),m++);if("none"==k||"3d"==k){m=!1;for(f=0;f<c;f++)d=this.graphs[f],d.valueAxis==g&&"column"==d.type&&(d.clustered?(d.tcc=1,d.newStack&&(a=0),d.hidden||(d.columnIndex=a,a++)):d.hidden||(m=!0,d.tcc=1,d.columnIndex=0));m&&0===a&&(a=1)}if("3d"==k){g=1;for(m=0;m<c;m++)d=this.graphs[m],d.newStack&&g++,d.depthCount=g,d.tcc=a;a=g}if("regular"==k||"100%"==k)for(g=10,m=0;m<c;m++)d=this.graphs[m],d.newStack&&g--,d.depthCount=g,d.tcc=a}return a},parseData:function(){e.AmSerialChart.base.parseData.call(this);this.parseSerialData(this.dataProvider)},getCategoryIndexByValue:function(a){var b=this.chartData,c;for(c=0;c<b.length;c++)if(b[c].category==a)return c},handleScrollbarZoom:function(a){this.zoomedByScrollbar=!0;this.zoom(a.start,a.end)},dispatchTimeZoomEvent:function(){if(this.drawGraphs&&(this.prevStartTime!=this.startTime||this.prevEndTime!=this.endTime)){var a={type:"zoomed"};a.startDate=new Date(this.startTime);a.endDate=new Date(this.endTime);a.startIndex=this.start;a.endIndex=this.end;this.startIndex=this.start;this.endIndex=this.end;this.startDate=a.startDate;this.endDate=a.endDate;this.prevStartTime=this.startTime;this.prevEndTime=this.endTime;var b=this.categoryAxis,c=e.extractPeriod(b.minPeriod).period,b=b.dateFormatsObject[c];a.startValue=e.formatDate(a.startDate,b,this);a.endValue=e.formatDate(a.endDate,b,this);a.chart=this;a.target=this;this.fire(a)}},dispatchIndexZoomEvent:function(){if(this.drawGraphs&&(this.prevStartIndex!=this.start||this.prevEndIndex!=this.end)){this.startIndex=this.start;this.endIndex=this.end;var a=this.chartData;if(e.ifArray(a)&&!isNaN(this.start)&&!isNaN(this.end)){var b={chart:this,target:this,type:"zoomed"};b.startIndex=this.start;b.endIndex=this.end;b.startValue=a[this.start].category;b.endValue=a[this.end].category;this.categoryAxis.parseDates&&(this.startTime=a[this.start].time,this.endTime=a[this.end].time,b.startDate=new Date(this.startTime),b.endDate=new Date(this.endTime));this.prevStartIndex=this.start;this.prevEndIndex=this.end;this.fire(b)}}},updateLegendValues:function(){this.legend&&this.legend.updateValues()},getClosestIndex:function(a,b,c,d,g,e){0>g&&(g=0);e>a.length-1&&(e=a.length-1);var f=g+Math.round((e-g)/2),l=a[f][b];return c==l?f:1>=e-g?d?g:Math.abs(a[g][b]-c)<Math.abs(a[e][b]-c)?g:e:c==l?f:c<l?this.getClosestIndex(a,b,c,d,g,f):this.getClosestIndex(a,b,c,d,f,e)},zoomToIndexes:function(a,b){var c=this.chartData;if(c){var d=c.length;0<d&&(0>a&&(a=0),b>d-1&&(b=d-1),d=this.categoryAxis,d.parseDates&&!d.equalSpacing?this.zoom(c[a].time,this.getEndTime(c[b].time)):this.zoom(a,b))}},zoomToDates:function(a,b){var c=this.chartData;if(c)if(this.categoryAxis.equalSpacing){var d=this.getClosestIndex(c,"time",a.getTime(),!0,0,c.length);b=e.resetDateToMin(b,this.categoryAxis.minPeriod,1);c=this.getClosestIndex(c,"time",b.getTime(),!1,0,c.length);this.zoom(d,c)}else this.zoom(a.getTime(),b.getTime())},zoomToCategoryValues:function(a,b){this.chartData&&this.zoom(this.getCategoryIndexByValue(a),this.getCategoryIndexByValue(b))},formatPeriodString:function(a,b){if(b){b.periodDataItem={};b.periodPercentDataItem={};var c=["value","open","low","high","close"],d="value open low high close average sum count".split(" "),g=b.valueAxis,h=this.chartData,f=b.numberFormatter;f||(f=this.nf);for(var l=0;l<c.length;l++){for(var k=c[l],m=0,p=0,n=0,u=0,v,x,E,t,r,B,q,w,y,C,F=this.start;F<=this.end;F++){var D=h[F];if(D){var A=D.axes[g.id].graphs[b.id];if(A){if(A.values){var z=A.values[k],D=D.x.categoryAxis;if(this.rotate){if(0>D||D>A.graph.height)z=NaN}else if(0>D||D>A.graph.width)z=NaN;if(!isNaN(z)){isNaN(v)&&(v=z);x=z;if(isNaN(E)||E>z)E=z;if(isNaN(t)||t<z)t=z;r=e.getDecimals(m);D=e.getDecimals(z);m+=z;m=e.roundTo(m,Math.max(r,D));p++;r=m/p}}if(A.percents&&(A=A.percents[k],!isNaN(A))){isNaN(B)&&(B=A);q=A;if(isNaN(w)||w>A)w=A;if(isNaN(y)||y<A)y=A;C=e.getDecimals(n);z=e.getDecimals(A);n+=A;n=e.roundTo(n,Math.max(C,z));u++;C=n/u}}}}m={open:v,close:x,high:t,low:E,average:r,sum:m,count:p};n={open:B,close:q,high:y,low:w,average:C,sum:n,count:u};a=e.formatValue(a,m,d,f,k+"\\.",this.usePrefixes,this.prefixesOfSmallNumbers,this.prefixesOfBigNumbers);a=e.formatValue(a,n,d,this.pf,"percents\\."+k+"\\.");b.periodDataItem[k]=m;b.periodPercentDataItem[k]=n}}return a=e.cleanFromEmpty(a)},formatString:function(a,b,c){if(b){var d=b.graph;if(void 0!==a){if(-1!=a.indexOf("[[category]]")){var g=b.serialDataItem.category;if(this.categoryAxis.parseDates){var h=this.balloonDateFormat,f=this.chartCursor;f&&f.categoryBalloonDateFormat&&(h=f.categoryBalloonDateFormat);h=e.formatDate(g,h,this);-1!=h.indexOf("fff")&&(h=e.formatMilliseconds(h,g));g=h}a=a.replace(/\[\[category\]\]/g,String(g.replace("$","$$$")))}g=d.numberFormatter;g||(g=this.nf);h=b.graph.valueAxis;(f=h.duration)&&!isNaN(b.values.value)&&h.maxInterval&&(f=e.formatDuration(b.values.value,f,"",h.durationUnits,h.maxInterval,g),a=a.replace(RegExp("\\[\\[value\\]\\]","g"),f));"date"==h.type&&(h=e.formatDate(new Date(b.values.value),d.dateFormat,this),f=RegExp("\\[\\[value\\]\\]","g"),a=a.replace(f,h),h=e.formatDate(new Date(b.values.open),d.dateFormat,this),f=RegExp("\\[\\[open\\]\\]","g"),a=a.replace(f,h));d="value open low high close total".split(" ");h=this.pf;a=e.formatValue(a,b.percents,d,h,"percents\\.");a=e.formatValue(a,b.values,d,g,"",this.usePrefixes,this.prefixesOfSmallNumbers,this.prefixesOfBigNumbers);a=e.formatValue(a,b.values,["percents"],h);-1!=a.indexOf("[[")&&(a=e.formatDataContextValue(a,b.dataContext));-1!=a.indexOf("[[")&&b.graph.customData&&(a=e.formatDataContextValue(a,b.graph.customData));a=e.AmSerialChart.base.formatString.call(this,a,b,c)}return a}},updateChartCursor:function(){e.AmSerialChart.base.updateChartCursor.call(this);var a=this.chartCursor,b=this.categoryAxis;if(a){var c=a.categoryBalloonAlpha,d=a.categoryBalloonColor,g=a.color;void 0===d&&(d=a.cursorColor);var h=a.valueZoomable,f=a.zoomable,l=a.valueLineEnabled;this.rotate?(a.vLineEnabled=l,a.hZoomEnabled=h,a.vZoomEnabled=f):(a.hLineEnabled=l,a.vZoomEnabled=h,a.hZoomEnabled=f);if(a.valueLineBalloonEnabled)for(l=0;l<this.valueAxes.length;l++)h=this.valueAxes[l],(f=h.balloon)||(f={}),f=e.extend(f,this.balloon,!0),f.fillColor=d,f.balloonColor=d,f.fillAlpha=c,f.borderColor=d,f.color=g,h.balloon=f;else for(f=0;f<this.valueAxes.length;f++)h=this.valueAxes[f],h.balloon&&(h.balloon=null);b&&(b.balloonTextFunction=a.categoryBalloonFunction,a.categoryLineAxis=b,b.balloonText=a.categoryBalloonText,a.categoryBalloonEnabled&&((f=b.balloon)||(f={}),f=e.extend(f,this.balloon,!0),f.fillColor=d,f.balloonColor=d,f.fillAlpha=c,f.borderColor=d,f.color=g,b.balloon=f),b.balloon&&(b.balloon.enabled=a.categoryBalloonEnabled))}},addChartScrollbar:function(a){e.callMethod("destroy",[this.chartScrollbar]);a&&(a.chart=this,this.listenTo(a,"zoomed",this.handleScrollbarZoom));this.rotate?void 0===a.width&&(a.width=a.scrollbarHeight):void 0===a.height&&(a.height=a.scrollbarHeight);a.gridAxis=this.categoryAxis;this.chartScrollbar=a},addValueScrollbar:function(a){e.callMethod("destroy",[this.valueScrollbar]);a&&(a.chart=this,this.listenTo(a,"zoomed",this.handleScrollbarValueZoom),this.listenTo(a,"zoomStarted",this.handleCursorZoomStarted));var b=a.scrollbarHeight;this.rotate?void 0===a.height&&(a.height=b):void 0===a.width&&(a.width=b);a.gridAxis||(a.gridAxis=this.valueAxes[0]);a.valueAxes=this.valueAxes;this.valueScrollbar=a},removeChartScrollbar:function(){e.callMethod("destroy",[this.chartScrollbar]);this.chartScrollbar=null},removeValueScrollbar:function(){e.callMethod("destroy",[this.valueScrollbar]);this.valueScrollbar=null},handleReleaseOutside:function(a){e.AmSerialChart.base.handleReleaseOutside.call(this,a);e.callMethod("handleReleaseOutside",[this.chartScrollbar,this.valueScrollbar])},update:function(){e.AmSerialChart.base.update.call(this);this.chartScrollbar&&this.chartScrollbar.update&&this.chartScrollbar.update();this.valueScrollbar&&this.valueScrollbar.update&&this.valueScrollbar.update()},processScrollbars:function(){e.AmSerialChart.base.processScrollbars.call(this);var a=this.valueScrollbar;a&&(a=e.processObject(a,e.ChartScrollbar,this.theme),a.id="valueScrollbar",this.addValueScrollbar(a))},handleValueAxisZoom:function(a){this.handleValueAxisZoomReal(a,this.valueAxes)},zoomOut:function(){e.AmSerialChart.base.zoomOut.call(this);this.zoom();this.syncGrid()},getNextItem:function(a){var b=a.index,c=this.chartData,d=a.graph;if(b+1<c.length)for(b+=1;b<c.length;b++)if(a=c[b])if(a=a.axes[d.valueAxis.id].graphs[d.id],!isNaN(a.y))return a},handleCursorZoomReal:function(a,b,c,d,e){var h=e.target,f,l;this.rotate?(isNaN(a)||isNaN(b)||this.relativeZoomValueAxes(this.valueAxes,a,b)&&this.updateAfterValueZoom(),h.vZoomEnabled&&(f=e.start,l=e.end)):(isNaN(c)||isNaN(d)||this.relativeZoomValueAxes(this.valueAxes,c,d)&&this.updateAfterValueZoom(),h.hZoomEnabled&&(f=e.start,l=e.end));isNaN(f)||isNaN(l)||(a=this.categoryAxis,a.parseDates&&!a.equalSpacing?this.zoomToDates(new Date(f),new Date(l)):this.zoomToIndexes(f,l))},handleCursorZoomStarted:function(){var a=this.valueAxes;if(a){var a=a[0],b=a.relativeStart,c=a.relativeEnd;a.reversed&&(b=1-a.relativeEnd,c=1-a.relativeStart);this.rotate?(this.startX0=b,this.endX0=c):(this.startY0=b,this.endY0=c)}this.categoryAxis&&(this.start0=this.start,this.end0=this.end,this.startTime0=this.startTime,this.endTime0=this.endTime)},fixCursor:function(){this.chartCursor&&this.chartCursor.fixPosition();this.prevCursorItem=null},handleCursorMove:function(a){e.AmSerialChart.base.handleCursorMove.call(this,a);var b=a.target,c=this.categoryAxis;if(a.panning)this.handleCursorHide(a);else if(this.chartData&&!b.isHidden){var d=this.graphs;if(d){var g;g=c.xToIndex(this.rotate?a.y:a.x);if(g=this.chartData[g]){var h,f,l,k;if(b.oneBalloonOnly&&b.valueBalloonsEnabled){var m=Infinity;for(h=d.length-1;0<=h;h--)if(f=d[h],f.balloon.enabled&&f.showBalloon&&!f.hidden){l=f.valueAxis.id;l=g.axes[l].graphs[f.id];if(b.showNextAvailable&&isNaN(l.y)&&(l=this.getNextItem(l),!l))continue;l=l.y;"top"==f.showBalloonAt&&(l=0);"bottom"==f.showBalloonAt&&(l=this.height);var p=b.mouseX,n=b.mouseY;l=this.rotate?Math.abs(p-l):Math.abs(n-l);l<m&&(m=l,k=f)}b.mostCloseGraph=k}if(this.prevCursorItem!=g||k!=this.prevMostCloseGraph){m=[];for(h=0;h<d.length;h++){f=d[h];l=f.valueAxis.id;l=g.axes[l].graphs[f.id];if(b.showNextAvailable&&isNaN(l.y)&&(l=this.getNextItem(l),!l&&f.balloon)){f.balloon.hide();continue}k&&f!=k?(f.showGraphBalloon(l,b.pointer,!1,b.graphBulletSize,b.graphBulletAlpha),f.balloon.hide(0)):b.valueBalloonsEnabled?(f.balloon.showBullet=b.bulletsEnabled,f.balloon.bulletSize=b.bulletSize/2,a.hideBalloons||(f.showGraphBalloon(l,b.pointer,!1,b.graphBulletSize,b.graphBulletAlpha),f.balloon.set&&m.push({balloon:f.balloon,y:f.balloon.pointToY}))):(f.currentDataItem=l,f.resizeBullet(l,b.graphBulletSize,b.graphBulletAlpha))}b.avoidBalloonOverlapping&&this.arrangeBalloons(m);this.prevCursorItem=g}this.prevMostCloseGraph=k}}d=e.fitToBounds(a.x,0,b.width);k=e.fitToBounds(a.y,0,b.height);c.showBalloon(d,k,b.categoryBalloonDateFormat,a.skip);this.updateLegendValues()}},handleCursorHide:function(a){e.AmSerialChart.base.handleCursorHide.call(this,a);a=this.categoryAxis;this.prevCursorItem=null;this.updateLegendValues();a&&a.hideBalloon();a=this.graphs;var b;for(b=0;b<a.length;b++)a[b].currentDataItem=null},handleCursorPanning:function(a){var b=a.target,c,d=a.deltaX,g=a.deltaY,h=a.delta2X,f=a.delta2Y;a=!1;if(this.rotate){isNaN(h)&&(h=d,a=!0);var l=this.endX0;c=this.startX0;var k=l-c,l=l-k*h,m=k;a||(m=0);a=e.fitToBounds(c-k*d,0,1-m)}else isNaN(f)&&(f=g,a=!0),l=this.endY0,c=this.startY0,k=l-c,l+=k*g,m=k,a||(m=0),a=e.fitToBounds(c+k*f,0,1-m);c=e.fitToBounds(l,m,1);var p;b.valueZoomable&&(p=this.relativeZoomValueAxes(this.valueAxes,a,c));var n;c=this.categoryAxis;this.rotate&&(d=g,h=f);a=!1;isNaN(h)&&(h=d,a=!0);if(b.zoomable&&(0<Math.abs(d)||0<Math.abs(h)))if(c.parseDates&&!c.equalSpacing){if(f=this.startTime0,g=this.endTime0,c=g-f,h*=c,k=this.firstTime,l=this.lastTime,m=c,a||(m=0),a=Math.round(e.fitToBounds(f-c*d,k,l-m)),h=Math.round(e.fitToBounds(g-h,k+m,l)),this.startTime!=a||this.endTime!=h)n={chart:this,target:b,type:"zoomed",start:a,end:h},this.skipZoomed=!0,b.fire(n),this.zoom(a,h),n=!0}else if(f=this.start0,g=this.end0,c=g-f,d=Math.round(c*d),h=Math.round(c*h),k=this.chartData.length-1,a||(c=0),a=e.fitToBounds(f-d,0,k-c),c=e.fitToBounds(g-h,c,k),this.start!=a||this.end!=c)this.skipZoomed=!0,b.fire({chart:this,target:b,type:"zoomed",start:a,end:c}),this.zoom(a,c),n=!0;!n&&p&&this.updateAfterValueZoom()},arrangeBalloons:function(a){var b=this.plotAreaHeight;a.sort(this.compareY);var c,d,e,h=this.plotAreaWidth,f=a.length;for(c=0;c<f;c++)d=a[c].balloon,d.setBounds(0,0,h,b),d.restorePrevious(),d.draw(),b=d.yPos-3;a.reverse();for(c=0;c<f;c++){d=a[c].balloon;var b=d.bottom,l=d.bottom-d.yPos;0<c&&b-l<e+3&&d.setBounds&&(d.setBounds(0,e+3,h,e+l+3),d.restorePrevious(),d.draw());d.set&&d.set.show();e=d.bottom}},compareY:function(a,b){return a.y<b.y?1:-1}})})();(function(){var e=window.AmCharts;e.Cuboid=e.Class({construct:function(a,b,c,d,e,h,f,l,k,m,p,n,u,v,x,E,t){this.set=a.set();this.container=a;this.h=Math.round(c);this.w=Math.round(b);this.dx=d;this.dy=e;this.colors=h;this.alpha=f;this.bwidth=l;this.bcolor=k;this.balpha=m;this.dashLength=v;this.topRadius=E;this.pattern=x;this.rotate=u;this.bcn=t;u?0>b&&0===p&&(p=180):0>c&&270==p&&(p=90);this.gradientRotation=p;0===d&&0===e&&(this.cornerRadius=n);this.draw()},draw:function(){var a=this.set;a.clear();var b=this.container,c=b.chart,d=this.w,g=this.h,h=this.dx,f=this.dy,l=this.colors,k=this.alpha,m=this.bwidth,p=this.bcolor,n=this.balpha,u=this.gradientRotation,v=this.cornerRadius,x=this.dashLength,E=this.pattern,t=this.topRadius,r=this.bcn,B=l,q=l;"object"==typeof l&&(B=l[0],q=l[l.length-1]);var w,y,C,F,D,A,z,L,M,Q=k;E&&(k=0);var G,H,I,J,K=this.rotate;if(0<Math.abs(h)||0<Math.abs(f))if(isNaN(t))z=q,q=e.adjustLuminosity(B,-.2),q=e.adjustLuminosity(B,-.2),w=e.polygon(b,[0,h,d+h,d,0],[0,f,f,0,0],q,k,1,p,0,u),0<n&&(M=e.line(b,[0,h,d+h],[0,f,f],p,n,m,x)),y=e.polygon(b,[0,0,d,d,0],[0,g,g,0,0],q,k,1,p,0,u),y.translate(h,f),0<n&&(C=e.line(b,[h,h],[f,f+g],p,n,m,x)),F=e.polygon(b,[0,0,h,h,0],[0,g,g+f,f,0],q,k,1,p,0,u),D=e.polygon(b,[d,d,d+h,d+h,d],[0,g,g+f,f,0],q,k,1,p,0,u),0<n&&(A=e.line(b,[d,d+h,d+h,d],[0,f,g+f,g],p,n,m,x)),q=e.adjustLuminosity(z,.2),z=e.polygon(b,[0,h,d+h,d,0],[g,g+f,g+f,g,g],q,k,1,p,0,u),0<n&&(L=e.line(b,[0,h,d+h],[g,g+f,g+f],p,n,m,x));else{var N,O,P;K?(N=g/2,q=h/2,P=g/2,O=d+h/2,H=Math.abs(g/2),G=Math.abs(h/2)):(q=d/2,N=f/2,O=d/2,P=g+f/2+1,G=Math.abs(d/2),H=Math.abs(f/2));I=G*t;J=H*t;.1<G&&.1<G&&(w=e.circle(b,G,B,k,m,p,n,!1,H),w.translate(q,N));.1<I&&.1<I&&(z=e.circle(b,I,e.adjustLuminosity(B,.5),k,m,p,n,!1,J),z.translate(O,P))}k=Q;1>Math.abs(g)&&(g=0);1>Math.abs(d)&&(d=0);!isNaN(t)&&(0<Math.abs(h)||0<Math.abs(f))?(l=[B],l={fill:l,stroke:p,"stroke-width":m,"stroke-opacity":n,"fill-opacity":k},K?(k="M0,0 L"+d+","+(g/2-g/2*t),m=" B",0<d&&(m=" A"),e.VML?(k+=m+Math.round(d-
|
5 |
+
I)+","+Math.round(g/2-J)+","+Math.round(d+I)+","+Math.round(g/2+J)+","+d+",0,"+d+","+g,k=k+(" L0,"+g)+(m+Math.round(-G)+","+Math.round(g/2-H)+","+Math.round(G)+","+Math.round(g/2+H)+",0,"+g+",0,0")):(k+="A"+I+","+J+",0,0,0,"+d+","+(g-g/2*(1-t))+"L0,"+g,k+="A"+G+","+H+",0,0,1,0,0"),G=90):(m=d/2-d/2*t,k="M0,0 L"+m+","+g,e.VML?(k="M0,0 L"+m+","+g,m=" B",0>g&&(m=" A"),k+=m+Math.round(d/2-I)+","+Math.round(g-J)+","+Math.round(d/2+I)+","+Math.round(g+J)+",0,"+g+","+d+","+g,k+=" L"+d+",0",k+=m+Math.round(d/2+G)+","+Math.round(H)+","+Math.round(d/2-G)+","+Math.round(-H)+","+d+",0,0,0"):(k+="A"+I+","+J+",0,0,0,"+(d-d/2*(1-t))+","+g+"L"+d+",0",k+="A"+G+","+H+",0,0,1,0,0"),G=180),b=b.path(k).attr(l),b.gradient("linearGradient",[B,e.adjustLuminosity(B,-.3),e.adjustLuminosity(B,-.3),B],G),K?b.translate(h/2,0):b.translate(0,f/2)):b=0===g?e.line(b,[0,d],[0,0],p,n,m,x):0===d?e.line(b,[0,0],[0,g],p,n,m,x):0<v?e.rect(b,d,g,l,k,m,p,n,v,u,x):e.polygon(b,[0,0,d,d,0],[0,g,g,0,0],l,k,m,p,n,u,!1,x);d=isNaN(t)?0>g?[w,M,y,C,F,D,A,z,L,b]:[z,L,y,C,F,D,w,M,A,b]:K?0<d?[w,b,z]:[z,b,w]:0>g?[w,b,z]:[z,b,w];e.setCN(c,b,r+"front");e.setCN(c,y,r+"back");e.setCN(c,z,r+"top");e.setCN(c,w,r+"bottom");e.setCN(c,F,r+"left");e.setCN(c,D,r+"right");for(w=0;w<d.length;w++)if(y=d[w])a.push(y),e.setCN(c,y,r+"element");E&&b.pattern(E,NaN,c.path)},width:function(a){isNaN(a)&&(a=0);this.w=Math.round(a);this.draw()},height:function(a){isNaN(a)&&(a=0);this.h=Math.round(a);this.draw()},animateHeight:function(a,b){var c=this;c.animationFinished=!1;c.easing=b;c.totalFrames=a*e.updateRate;c.rh=c.h;c.frame=0;c.height(1);setTimeout(function(){c.updateHeight.call(c)},1E3/e.updateRate)},updateHeight:function(){var a=this;a.frame++;var b=a.totalFrames;a.frame<=b?(b=a.easing(0,a.frame,1,a.rh-1,b),a.height(b),window.requestAnimationFrame?window.requestAnimationFrame(function(){a.updateHeight.call(a)}):setTimeout(function(){a.updateHeight.call(a)},1E3/e.updateRate)):(a.height(a.rh),a.animationFinished=!0)},animateWidth:function(a,b){var c=this;c.animationFinished=!1;c.easing=b;c.totalFrames=a*e.updateRate;c.rw=c.w;c.frame=0;c.width(1);setTimeout(function(){c.updateWidth.call(c)},1E3/e.updateRate)},updateWidth:function(){var a=this;a.frame++;var b=a.totalFrames;a.frame<=b?(b=a.easing(0,a.frame,1,a.rw-1,b),a.width(b),window.requestAnimationFrame?window.requestAnimationFrame(function(){a.updateWidth.call(a)}):setTimeout(function(){a.updateWidth.call(a)},1E3/e.updateRate)):(a.width(a.rw),a.animationFinished=!0)}})})();(function(){var e=window.AmCharts;e.CategoryAxis=e.Class({inherits:e.AxisBase,construct:function(a){this.cname="CategoryAxis";e.CategoryAxis.base.construct.call(this,a);this.minPeriod="DD";this.equalSpacing=this.parseDates=!1;this.position="bottom";this.startOnAxis=!1;this.gridPosition="middle";this.safeDistance=30;this.stickBalloonToCategory=!1;e.applyTheme(this,a,this.cname)},draw:function(){e.CategoryAxis.base.draw.call(this);this.generateDFObject();var a=this.chart.chartData;this.data=a;this.labelRotationR=this.labelRotation;this.type=null;if(e.ifArray(a)){var b,c=this.chart;"scrollbar"!=this.id?(e.setCN(c,this.set,"category-axis"),e.setCN(c,this.labelsSet,"category-axis"),e.setCN(c,this.axisLine.axisSet,"category-axis")):this.bcn=this.id+"-";var d=this.start,g=this.labelFrequency,h=0,f=this.end-d+1,l=this.gridCountR,k=this.showFirstLabel,m=this.showLastLabel,p,n="",n=e.extractPeriod(this.minPeriod),u=e.getPeriodDuration(n.period,n.count),v,x,E,t,r,B=this.rotate,q=this.firstDayOfWeek,w=this.boldPeriodBeginning;b=e.resetDateToMin(new Date(a[a.length-1].time+1.05*u),this.minPeriod,1,q).getTime();this.firstTime=c.firstTime;this.endTime>b&&(this.endTime=b);r=this.minorGridEnabled;x=this.gridAlpha;var y=0,C=0;if(this.widthField)for(b=this.start;b<=this.end;b++)if(t=this.data[b]){var F=Number(this.data[b].dataContext[this.widthField]);isNaN(F)||(y+=F,t.widthValue=F)}if(this.parseDates&&!this.equalSpacing)this.lastTime=a[a.length-1].time,this.maxTime=e.resetDateToMin(new Date(this.lastTime+1.05*u),this.minPeriod,1,q).getTime(),this.timeDifference=this.endTime-this.startTime,this.parseDatesDraw();else if(!this.parseDates){if(this.cellWidth=this.getStepWidth(f),f<l&&(l=f),h+=this.start,this.stepWidth=this.getStepWidth(f),0<l)for(q=Math.floor(f/l),t=this.chooseMinorFrequency(q),f=h,f/2==Math.round(f/2)&&f--,0>f&&(f=0),w=0,this.widthField&&(f=this.start,q=1),this.end-f+1>=this.autoRotateCount&&(this.labelRotationR=this.autoRotateAngle),b=f;b<=this.end+2;b++){l=!1;0<=b&&b<this.data.length?(v=this.data[b],n=v.category,l=v.forceShow):n="";if(r&&!isNaN(t))if(b/t==Math.round(b/t)||l)b/q==Math.round(b/q)||l||(this.gridAlpha=this.minorGridAlpha,n=void 0);else continue;else if(b/q!=Math.round(b/q)&&!l)continue;f=this.getCoordinate(b-h);l=0;"start"==this.gridPosition&&(f-=this.cellWidth/2,l=this.cellWidth/2);p=!0;E=l;"start"==this.tickPosition&&(E=0,p=!1,l=0);if(b==d&&!k||b==this.end&&!m)n=void 0;Math.round(w/g)!=w/g&&(n=void 0);w++;a=this.cellWidth;B&&(a=NaN,this.ignoreAxisWidth||!c.autoMargins)&&(a="right"==this.position?c.marginRight-this.titleWidth:c.marginLeft-this.titleWidth,a-=this.tickLength+10);this.labelFunction&&v&&(n=this.labelFunction(n,v,this));n=e.fixBrakes(n);u=!1;this.boldLabels&&(u=!0);b>this.end&&"start"==this.tickPosition&&(n=" ");this.rotate&&this.inside&&(l-=2);isNaN(v.widthValue)||(v.percentWidthValue=v.widthValue/y*100,a=this.rotate?this.height*v.widthValue/y:this.width*v.widthValue/y,f=C,C+=a,E=l=a/2);p=new this.axisItemRenderer(this,f,n,p,a,l,void 0,u,E,!1,v.labelColor,v.className);p.serialDataItem=v;this.pushAxisItem(p);this.gridAlpha=x}}else if(this.parseDates&&this.equalSpacing){h=this.start;this.startTime=this.data[this.start].time;this.endTime=this.data[this.end].time;this.timeDifference=this.endTime-this.startTime;b=this.choosePeriod(0);g=b.period;v=b.count;b=e.getPeriodDuration(g,v);b<u&&(g=n.period,v=n.count,b=u);x=g;"WW"==x&&(x="DD");this.currentDateFormat=this.dateFormatsObject[x];this.stepWidth=this.getStepWidth(f);l=Math.ceil(this.timeDifference/b)+1;n=e.resetDateToMin(new Date(this.startTime-
|
6 |
+
b),g,v,q).getTime();this.cellWidth=this.getStepWidth(f);f=Math.round(n/b);d=-1;f/2==Math.round(f/2)&&(d=-2,n-=b);f=this.start;f/2==Math.round(f/2)&&f--;0>f&&(f=0);C=this.end+2;C>=this.data.length&&(C=this.data.length);a=!1;a=!k;this.previousPos=-1E3;20<this.labelRotationR&&(this.safeDistance=5);F=f;if(this.data[f].time!=e.resetDateToMin(new Date(this.data[f].time),g,v,q).getTime()){var u=0,D=n;for(b=f;b<C;b++)t=this.data[b].time,this.checkPeriodChange(g,v,t,D)&&(u++,2<=u&&(F=b,b=C),D=t)}r&&1<v&&(t=this.chooseMinorFrequency(v),e.getPeriodDuration(g,t));if(0<this.gridCountR)for(b=f;b<C;b++)if(t=this.data[b].time,this.checkPeriodChange(g,v,t,n)&&b>=F){f=this.getCoordinate(b-this.start);r=!1;this.nextPeriod[x]&&(r=this.checkPeriodChange(this.nextPeriod[x],1,t,n,x))&&e.resetDateToMin(new Date(t),this.nextPeriod[x],1,q).getTime()!=t&&(r=!1);u=!1;r&&this.markPeriodChange?(r=this.dateFormatsObject[this.nextPeriod[x]],u=!0):r=this.dateFormatsObject[x];n=e.formatDate(new Date(t),r,c);if(b==d&&!k||b==l&&!m)n=" ";a?a=!1:(w||(u=!1),f-this.previousPos>this.safeDistance*Math.cos(this.labelRotationR*Math.PI/180)&&(this.labelFunction&&(n=this.labelFunction(n,new Date(t),this,g,v,E)),this.boldLabels&&(u=!0),p=new this.axisItemRenderer(this,f,n,void 0,void 0,void 0,void 0,u),r=p.graphics(),this.pushAxisItem(p),r=r.getBBox().width,e.isModern||(r-=f),this.previousPos=f+r));E=n=t}}for(b=k=0;b<this.data.length;b++)if(t=this.data[b])this.parseDates&&!this.equalSpacing?(m=t.time,d=this.cellWidth,"MM"==this.minPeriod&&(d=864E5*e.daysInMonth(new Date(m))*this.stepWidth,t.cellWidth=d),m=Math.round((m-this.startTime)*this.stepWidth+d/2)):m=this.getCoordinate(b-h),t.x[this.id]=m;if(this.widthField)for(b=this.start;b<=this.end;b++)t=this.data[b],d=t.widthValue,t.percentWidthValue=d/y*100,this.rotate?(m=this.height*d/y/2+k,k=this.height*d/y+k):(m=this.width*d/y/2+k,k=this.width*d/y+k),t.x[this.id]=m;y=this.guides.length;for(b=0;b<y;b++)if(k=this.guides[b],q=q=q=r=d=NaN,m=k.above,k.toCategory&&(q=c.getCategoryIndexByValue(k.toCategory),isNaN(q)||(d=this.getCoordinate(q-h),k.expand&&(d+=this.cellWidth/2),p=new this.axisItemRenderer(this,d,"",!0,NaN,NaN,k),this.pushAxisItem(p,m))),k.category&&(q=c.getCategoryIndexByValue(k.category),isNaN(q)||(r=this.getCoordinate(q-h),k.expand&&(r-=this.cellWidth/2),q=(d-r)/2,p=new this.axisItemRenderer(this,r,k.label,!0,NaN,q,k),this.pushAxisItem(p,m))),w=c.dataDateFormat,k.toDate&&(!w||k.toDate instanceof Date||(k.toDate=k.toDate.toString()+" |"),k.toDate=e.getDate(k.toDate,w),this.equalSpacing?(q=c.getClosestIndex(this.data,"time",k.toDate.getTime(),!1,0,this.data.length-1),isNaN(q)||(d=this.getCoordinate(q-h))):d=(k.toDate.getTime()-this.startTime)*this.stepWidth,p=new this.axisItemRenderer(this,d,"",!0,NaN,NaN,k),this.pushAxisItem(p,m)),k.date&&(!w||k.date instanceof Date||(k.date=k.date.toString()+" |"),k.date=e.getDate(k.date,w),this.equalSpacing?(q=c.getClosestIndex(this.data,"time",k.date.getTime(),!1,0,this.data.length-1),isNaN(q)||(r=this.getCoordinate(q-h))):r=(k.date.getTime()-
|
7 |
+
this.startTime)*this.stepWidth,q=(d-r)/2,p=!0,k.toDate&&(p=!1),p="H"==this.orientation?new this.axisItemRenderer(this,r,k.label,p,2*q,NaN,k):new this.axisItemRenderer(this,r,k.label,!1,NaN,q,k),this.pushAxisItem(p,m)),p&&(q=p.label)&&this.addEventListeners(q,k),0<d||0<r){q=!1;if(this.rotate){if(d<this.height||r<this.height)q=!0}else if(d<this.width||r<this.width)q=!0;q&&(d=new this.guideFillRenderer(this,r,d,k),r=d.graphics(),this.pushAxisItem(d,m),k.graphics=r,r.index=b,this.addEventListeners(r,k))}if(c=c.chartCursor)B?c.fixHeight(this.cellWidth):(c.fixWidth(this.cellWidth),c.fullWidth&&this.balloon&&(this.balloon.minWidth=this.cellWidth));this.previousHeight=A}this.axisCreated=!0;this.set.translate(this.x,this.y);this.labelsSet.translate(this.x,this.y);this.labelsSet.show();this.positionTitle();(B=this.axisLine.set)&&B.toFront();var A=this.getBBox().height;2<A-this.previousHeight&&this.autoWrap&&!this.parseDates&&(this.axisCreated=this.chart.marginsUpdated=!1)},xToIndex:function(a){var b=this.data,c=this.chart,d=c.rotate,g=this.stepWidth,h;if(this.parseDates&&!this.equalSpacing)a=this.startTime+Math.round(a/g)-this.minDuration()/2,h=c.getClosestIndex(b,"time",a,!1,this.start,this.end+1);else if(this.widthField)for(c=Infinity,g=this.start;g<=this.end;g++){var f=this.data[g];f&&(f=Math.abs(f.x[this.id]-a),f<c&&(c=f,h=g))}else this.startOnAxis||(a-=g/2),h=this.start+Math.round(a/g);h=e.fitToBounds(h,0,b.length-1);var l;b[h]&&(l=b[h].x[this.id]);d?l>this.height+1&&h--:l>this.width+1&&h--;0>l&&h++;return h=e.fitToBounds(h,0,b.length-1)},dateToCoordinate:function(a){return this.parseDates&&!this.equalSpacing?(a.getTime()-this.startTime)*this.stepWidth:this.parseDates&&this.equalSpacing?(a=this.chart.getClosestIndex(this.data,"time",a.getTime(),!1,0,this.data.length-1),this.getCoordinate(a-this.start)):NaN},categoryToCoordinate:function(a){if(this.chart){if(this.parseDates)return this.dateToCoordinate(new Date(a));a=this.chart.getCategoryIndexByValue(a);if(!isNaN(a))return this.getCoordinate(a-
|
8 |
+
this.start)}else return NaN},coordinateToDate:function(a){return this.equalSpacing?(a=this.xToIndex(a),new Date(this.data[a].time)):new Date(this.startTime+a/this.stepWidth)},coordinateToValue:function(a){a=this.xToIndex(a);if(a=this.data[a])return this.parseDates?a.time:a.category},getCoordinate:function(a){a*=this.stepWidth;this.startOnAxis||(a+=this.stepWidth/2);return Math.round(a)},formatValue:function(a,b){b||(b=this.currentDateFormat);this.parseDates&&(a=e.formatDate(new Date(a),b,this.chart));return a},showBalloonAt:function(a,b){void 0===b&&(b=this.parseDates?this.dateToCoordinate(new Date(a)):this.categoryToCoordinate(a));return this.adjustBalloonCoordinate(b)},formatBalloonText:function(a,b,c){var d="",g="",h=this.chart,f=this.data[b];if(f)if(this.parseDates)d=e.formatDate(f.category,c,h),b=e.changeDate(new Date(f.category),this.minPeriod,1),g=e.formatDate(b,c,h),-1!=d.indexOf("fff")&&(d=e.formatMilliseconds(d,f.category),g=e.formatMilliseconds(g,b));else{var l;this.data[b+1]&&(l=this.data[b+
|
9 |
+
1]);d=e.fixNewLines(f.category);l&&(g=e.fixNewLines(l.category))}a=a.replace(/\[\[category\]\]/g,String(d));return a=a.replace(/\[\[toCategory\]\]/g,String(g))},adjustBalloonCoordinate:function(a,b){var c=this.xToIndex(a),d=this.chart.chartCursor;if(this.stickBalloonToCategory){var e=this.data[c];e&&(a=e.x[this.id]);this.stickBalloonToStart&&(a-=this.cellWidth/2);var h=0;if(d){var f=d.limitToGraph;if(f){var l=f.valueAxis.id;f.hidden||(h=e.axes[l].graphs[f.id].y)}this.rotate?("left"==this.position?(f&&(h-=d.width),0<h&&(h=0)):0>h&&(h=0),d.fixHLine(a,h)):("top"==this.position?(f&&(h-=d.height),0<h&&(h=0)):0>h&&(h=0),d.fullWidth&&(a+=1),d.fixVLine(a,h))}}d&&!b&&(d.setIndex(c),this.parseDates&&d.setTimestamp(this.coordinateToDate(a).getTime()));return a}})})();
|
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 |
-
|
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');
|
@@ -934,14 +936,44 @@ jQuery(document).on("click", ".bulk_shipment_status_button", function(){
|
|
934 |
});
|
935 |
return false;
|
936 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
937 |
jQuery(document).on("click", ".tab_input", function(){
|
938 |
var tab = jQuery(this).data('tab');
|
939 |
var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=woocommerce-advanced-shipment-tracking&tab="+tab;
|
940 |
window.history.pushState({path:url},'',url);
|
941 |
});
|
|
|
942 |
jQuery(document).on("click", ".open_video_popup", function(){
|
943 |
jQuery('.how_to_video_popup').show();
|
944 |
});
|
|
|
945 |
jQuery(document).on("click", ".how_to_video_popup .popupclose", function(){
|
946 |
jQuery('#how_to_video').each(function(index) {
|
947 |
jQuery(this).attr('src', jQuery(this).attr('src'));
|
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');
|
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'));
|
assets/shipment-provider-img/7-eleven.png
ADDED
Binary file
|
assets/shipment-provider-img/bring.png
ADDED
Binary file
|
assets/shipment-provider-img/courierpost.png
ADDED
Binary file
|
assets/shipment-provider-img/dhl-paket.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/posten-norge.png
ADDED
Binary file
|
assets/shipment-provider-img/sda.png
ADDED
Binary file
|
assets/shipment-provider-img/smsa-express.png
ADDED
Binary file
|
includes/api/v1/class-wc-advanced-shipment-tracking-rest-api-controller.php
CHANGED
@@ -139,8 +139,8 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
|
|
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
|
@@ -384,100 +384,8 @@ class WC_Advanced_Shipment_Tracking_V1_REST_API_Controller extends WC_REST_Contr
|
|
384 |
|
385 |
$order_id = (int) $request['order_id'];
|
386 |
|
387 |
-
|
388 |
-
|
389 |
-
if($alg_wc_custom_order_numbers_enabled == 'yes'){
|
390 |
-
$args = array(
|
391 |
-
'post_type' => 'shop_order',
|
392 |
-
'posts_per_page' => '1',
|
393 |
-
'meta_query' => array(
|
394 |
-
'relation' => 'AND',
|
395 |
-
array(
|
396 |
-
'key' => '_alg_wc_custom_order_number',
|
397 |
-
'value' => $order_id
|
398 |
-
),
|
399 |
-
),
|
400 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
401 |
-
);
|
402 |
-
$posts = get_posts( $args );
|
403 |
-
$my_query = new WP_Query( $args );
|
404 |
-
|
405 |
-
if( $my_query->have_posts() ) {
|
406 |
-
while( $my_query->have_posts()) {
|
407 |
-
$my_query->the_post();
|
408 |
-
if(get_the_ID()){
|
409 |
-
$order_id = get_the_ID();
|
410 |
-
}
|
411 |
-
} // end while
|
412 |
-
} // end if
|
413 |
-
wp_reset_postdata();
|
414 |
-
}
|
415 |
-
}
|
416 |
-
|
417 |
-
if ( is_plugin_active( 'woocommerce-sequential-order-numbers/woocommerce-sequential-order-numbers.php' ) ) {
|
418 |
-
|
419 |
-
$s_order_id = wc_sequential_order_numbers()->find_order_by_order_number( $order_id );
|
420 |
-
if($s_order_id){
|
421 |
-
$order_id = $s_order_id;
|
422 |
-
}
|
423 |
-
}
|
424 |
-
|
425 |
-
if ( is_plugin_active( 'wp-lister-amazon/wp-lister-amazon.php' ) ) {
|
426 |
-
$wpla_use_amazon_order_number = get_option( 'wpla_use_amazon_order_number' );
|
427 |
-
if($wpla_use_amazon_order_number == 1){
|
428 |
-
$args = array(
|
429 |
-
'post_type' => 'shop_order',
|
430 |
-
'posts_per_page' => '1',
|
431 |
-
'meta_query' => array(
|
432 |
-
'relation' => 'AND',
|
433 |
-
array(
|
434 |
-
'key' => '_wpla_amazon_order_id',
|
435 |
-
'value' => $order_id
|
436 |
-
),
|
437 |
-
),
|
438 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
439 |
-
);
|
440 |
-
$posts = get_posts( $args );
|
441 |
-
$my_query = new WP_Query( $args );
|
442 |
-
|
443 |
-
if( $my_query->have_posts() ) {
|
444 |
-
while( $my_query->have_posts()) {
|
445 |
-
$my_query->the_post();
|
446 |
-
if(get_the_ID()){
|
447 |
-
$order_id = get_the_ID();
|
448 |
-
}
|
449 |
-
} // end while
|
450 |
-
} // end if
|
451 |
-
wp_reset_postdata();
|
452 |
-
}
|
453 |
-
}
|
454 |
-
|
455 |
-
if ( is_plugin_active( 'wp-lister/wp-lister.php' ) || is_plugin_active( 'wp-lister-for-ebay/wp-lister.php' )) {
|
456 |
-
$args = array(
|
457 |
-
'post_type' => 'shop_order',
|
458 |
-
'posts_per_page' => '1',
|
459 |
-
'meta_query' => array(
|
460 |
-
'relation' => 'AND',
|
461 |
-
array(
|
462 |
-
'key' => '_ebay_extended_order_id',
|
463 |
-
'value' => $order_id
|
464 |
-
),
|
465 |
-
),
|
466 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
467 |
-
);
|
468 |
-
$posts = get_posts( $args );
|
469 |
-
$my_query = new WP_Query( $args );
|
470 |
-
|
471 |
-
if( $my_query->have_posts() ) {
|
472 |
-
while( $my_query->have_posts()) {
|
473 |
-
$my_query->the_post();
|
474 |
-
if(get_the_ID()){
|
475 |
-
$order_id = get_the_ID();
|
476 |
-
}
|
477 |
-
} // end while
|
478 |
-
} // end if
|
479 |
-
wp_reset_postdata();
|
480 |
-
}
|
481 |
|
482 |
if ( ! $this->is_valid_order_id( $order_id ) ) {
|
483 |
return new WP_Error( 'woocommerce_rest_order_invalid_id', __( 'Invalid order ID.', 'woocommerce-shipment-tracking' ), array( 'status' => 404 ) );
|
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
|
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 |
|
@@ -121,7 +124,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
121 |
add_action( 'restrict_manage_posts', array( $this, 'filter_orders_by_shipment_status') , 20 );
|
122 |
add_filter( 'request', array( $this, 'filter_orders_by_shipment_status_query' ) );
|
123 |
|
124 |
-
|
125 |
}
|
126 |
|
127 |
// trigger when order status changed to shipped or completed
|
@@ -172,7 +175,10 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
172 |
|
173 |
add_action( 'wp_ajax_update_shipment_status', array( $this, 'update_shipment_status_fun') );
|
174 |
|
175 |
-
add_action( 'wp_ajax_sync_providers', array( $this, 'sync_providers_fun') );
|
|
|
|
|
|
|
176 |
}
|
177 |
|
178 |
/*
|
@@ -195,6 +201,16 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
195 |
maybe_create_table( $table_name, $sql );
|
196 |
}
|
197 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
/*
|
199 |
* Rename WooCommerce Order Status
|
200 |
*/
|
@@ -416,6 +432,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 +445,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
426 |
}
|
427 |
return $value;
|
428 |
}
|
|
|
429 |
/*
|
430 |
* add in batch process
|
431 |
*/
|
@@ -606,6 +626,19 @@ 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 +656,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 +670,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 +684,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 +693,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
679 |
),
|
680 |
'delete_rates_nonce' => wp_create_nonce( "delete-rate" ),
|
681 |
) );
|
682 |
-
|
683 |
-
wp_enqueue_media();
|
684 |
-
}
|
685 |
}
|
686 |
|
687 |
/*
|
@@ -691,12 +703,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,35 +748,33 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
727 |
}
|
728 |
}
|
729 |
wp_enqueue_script( 'shipment_tracking_table_rows' );
|
730 |
-
?>
|
731 |
-
|
732 |
-
|
|
|
733 |
<div class="woocommerce zorem_admin_layout">
|
734 |
-
<div class="ast_admin_content" >
|
735 |
-
|
736 |
-
|
737 |
-
<label for="tab2" class="tab_label first_label"><?php _e('Settings', 'woo-advanced-shipment-tracking'); ?></label>
|
738 |
|
739 |
<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'; } ?>>
|
740 |
-
|
741 |
-
|
742 |
<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'; } ?>>
|
743 |
<label for="tab4" class="tab_label"><?php _e('Bulk Upload', 'woo-advanced-shipment-tracking'); ?></label>
|
744 |
|
745 |
<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'; } ?>>
|
746 |
-
|
747 |
|
748 |
<div class="nav_doc_section">
|
749 |
-
|
750 |
-
|
751 |
-
</div>
|
752 |
|
753 |
<?php require_once( 'views/admin_options_shipping_provider.php' );?>
|
754 |
<?php require_once( 'views/admin_options_settings.php' );?>
|
755 |
<?php require_once( 'views/admin_options_trackship_integration.php' );?>
|
756 |
<?php require_once( 'views/admin_options_bulk_upload.php' );?>
|
757 |
-
</div>
|
758 |
-
<?php //require_once( 'views/zorem_admin_sidebar.php' );?>
|
759 |
</div>
|
760 |
<div id="demo-toast-example" class="mdl-js-snackbar mdl-snackbar">
|
761 |
<div class="mdl-snackbar__text"></div>
|
@@ -836,7 +855,10 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
836 |
</label>
|
837 |
</span>
|
838 |
<?php } elseif( $array['type'] == 'multiple_checkbox' ){ ?>
|
839 |
-
<?php
|
|
|
|
|
|
|
840 |
$multi_checkbox_data = get_option($id);
|
841 |
if(!$multi_checkbox_data){
|
842 |
$multi_checkbox_data = array();
|
@@ -852,12 +874,40 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
852 |
<span class="mdl-list__item-secondary-action multiple_checkbox">
|
853 |
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="<?php echo $key?>">
|
854 |
<input type="checkbox" id="<?php echo $key?>" name="<?php echo $id?>[<?php echo $key?>]" class="mdl-switch__input" <?php echo $checked; ?> value="1"/>
|
855 |
-
<span class="multiple_label"><?php echo $val; ?></span>
|
856 |
-
|
857 |
</label>
|
858 |
-
</span>
|
859 |
-
|
860 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
861 |
|
862 |
<?php } elseif( isset( $array['type'] ) && $array['type'] == 'dropdown' ){?>
|
863 |
<?php
|
@@ -895,17 +945,6 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
895 |
<?php } ?>
|
896 |
</fieldset>
|
897 |
<?php }
|
898 |
-
elseif( $array['type'] == 'desc' ){ ?>
|
899 |
-
<fieldset>
|
900 |
-
<p><?php _e( 'Auto-track all your shipments, get real-time shipment tracking updates without leaving your stores admin.', 'woo-advanced-shipment-tracking' ); ?></p>
|
901 |
-
<p><?php
|
902 |
-
$url = '<a href="https://trackship.info/my-account" target="blank">TrackShip</a>';
|
903 |
-
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>
|
904 |
-
<p><?php
|
905 |
-
$url = '<a href="https://trackship.info/my-account" target="blank">Trackship</a>';
|
906 |
-
echo sprintf(__("50 free Trackers for every new account! Get your %s account now>>", 'woo-advanced-shipment-tracking'), $url); ?></p>
|
907 |
-
</fieldset>
|
908 |
-
<?php }
|
909 |
elseif( $array['type'] == 'label' ){ ?>
|
910 |
<fieldset>
|
911 |
<label><?php echo $array['value']; ?></label>
|
@@ -918,7 +957,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
918 |
<?php }
|
919 |
elseif( $array['type'] == 'button' ){ ?>
|
920 |
<fieldset>
|
921 |
-
<button class="button-primary
|
922 |
</fieldset>
|
923 |
<?php }
|
924 |
else { ?>
|
@@ -936,40 +975,24 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
936 |
<?php } } ?>
|
937 |
</tbody>
|
938 |
</table>
|
939 |
-
<?php
|
|
|
940 |
|
941 |
/*
|
942 |
-
* get
|
943 |
* return array
|
944 |
*/
|
945 |
-
function
|
946 |
-
$wc_ast_api_key = get_option('wc_ast_api_key');
|
947 |
-
$trackers_balance = get_option( 'trackers_balance' );
|
948 |
-
$wc_ast_status_delivered = get_option( 'wc_ast_status_delivered' );
|
949 |
-
if($wc_ast_api_key){
|
950 |
-
$connected = true;
|
951 |
-
$show_trackship_field = true;
|
952 |
-
$show_trackship_description = false;
|
953 |
-
} else{
|
954 |
-
$connected = false;
|
955 |
-
$show_trackship_field = false;
|
956 |
-
$show_trackship_description = true;
|
957 |
-
}
|
958 |
-
if($wc_ast_status_delivered){
|
959 |
-
$disabled_change_to_delivered = false;
|
960 |
-
} else{
|
961 |
-
$disabled_change_to_delivered = true;
|
962 |
-
}
|
963 |
-
$page_list = wp_list_pluck( get_pages(), 'post_title', 'ID' );
|
964 |
-
|
965 |
// Get orders completed.
|
966 |
$args = array(
|
967 |
'status' => 'wc-completed',
|
968 |
'limit' => -1,
|
969 |
'date_created' => '>' . ( time() - 2592000 ),
|
970 |
);
|
|
|
971 |
$orders = wc_get_orders( $args );
|
972 |
$completed_order_with_tracking = 0;
|
|
|
973 |
foreach($orders as $order){
|
974 |
$order_id = $order->get_id();
|
975 |
|
@@ -977,7 +1000,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
977 |
$tracking_items = $ast->get_tracking_items( $order_id, true );
|
978 |
if($tracking_items){
|
979 |
$shipment_status = get_post_meta( $order_id, "shipment_status", true);
|
980 |
-
foreach ( $tracking_items as $key => $tracking_item ) {
|
981 |
if( !isset($shipment_status[$key]) ){
|
982 |
$completed_order_with_tracking++;
|
983 |
}
|
@@ -986,18 +1009,89 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
986 |
}
|
987 |
|
988 |
if($completed_order_with_tracking > 0){
|
989 |
-
$
|
990 |
} else{
|
991 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
992 |
}
|
993 |
|
994 |
$wc_ast_status_shipped = get_option('wc_ast_status_shipped');
|
|
|
995 |
if($wc_ast_status_shipped == 1){
|
996 |
$completed_order_label = '<span class="shipped_label">shipped</span>';
|
997 |
} else{
|
998 |
$completed_order_label = '<span class="shipped_label">completed</span>';
|
999 |
-
}
|
1000 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1001 |
$form_data = array(
|
1002 |
'wc_ast_api_enabled' => array(
|
1003 |
'type' => 'checkbox',
|
@@ -1011,25 +1105,11 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1011 |
'show' => $show_trackship_field,
|
1012 |
'class' => '',
|
1013 |
'disabled' => $disabled_change_to_delivered,
|
1014 |
-
),
|
1015 |
-
'wc_ast_bulk_shipment_status' => array(
|
1016 |
-
'type' => 'button',
|
1017 |
-
'title' => sprintf(__('You have %s %s orders from the last 30 days, would you like to bulk send all these orders to TrackShip?', 'woo-advanced-shipment-tracking'), $completed_order_with_tracking , $completed_order_label),
|
1018 |
-
'label' => __( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ),
|
1019 |
-
'show' => $show_bulk_sync,
|
1020 |
-
'button_class' => 'bulk_shipment_status_button',
|
1021 |
-
'class' => '',
|
1022 |
-
),
|
1023 |
-
'wc_ast_trackship_description' => array(
|
1024 |
-
'type' => 'desc',
|
1025 |
-
'title' => '',
|
1026 |
-
'show' => $show_trackship_description,
|
1027 |
-
'class' => '',
|
1028 |
),
|
1029 |
);
|
1030 |
return $form_data;
|
1031 |
-
|
1032 |
}
|
|
|
1033 |
/*
|
1034 |
* get settings tab array data
|
1035 |
* return array
|
@@ -1155,7 +1235,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1155 |
$mark_as_shipped_label = __( 'Default "mark as <span class="shipped_label">shipped</span>"', 'woo-advanced-shipment-tracking' );
|
1156 |
$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' );
|
1157 |
} else{
|
1158 |
-
$completed_order_label = __( 'Completed', '
|
1159 |
$mark_as_shipped_label = __( 'Default "mark as <span class="shipped_label">completed</span>"', 'woo-advanced-shipment-tracking' );
|
1160 |
$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' );
|
1161 |
}
|
@@ -1179,19 +1259,40 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1179 |
foreach($custom_order_status as $key=>$value){
|
1180 |
unset($custom_order_status[$key]);
|
1181 |
$key = str_replace("wc-", "", $key);
|
1182 |
-
$custom_order_status[$key] =
|
|
|
|
|
|
|
1183 |
}
|
1184 |
|
1185 |
$order_status = array(
|
1186 |
-
"cancelled" =>
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
"
|
1191 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1192 |
);
|
1193 |
-
$order_status_array = array_merge($order_status,$custom_order_status);
|
1194 |
-
|
1195 |
if ( is_plugin_active( 'woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php' ) ) {
|
1196 |
$show_invoice_field = true;
|
1197 |
} else{
|
@@ -1258,7 +1359,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1258 |
'type' => 'dropdown',
|
1259 |
'title' => __( 'Delivered Label font color', 'woo-advanced-shipment-tracking' ),
|
1260 |
'options' => array(
|
1261 |
-
"" =>__( 'Select', '
|
1262 |
"#fff" =>__( 'Light', 'woo-advanced-shipment-tracking' ),
|
1263 |
"#000" =>__( 'Dark', 'woo-advanced-shipment-tracking' ),
|
1264 |
),
|
@@ -1268,35 +1369,13 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1268 |
'wcast_enable_delivered_email' => array(
|
1269 |
'type' => 'checkbox',
|
1270 |
'title' => __( 'Enable the Delivered order status email', 'woo-advanced-shipment-tracking' ),
|
1271 |
-
'title_link'=> "<a class='settings_edit' href='".wcast_initialise_customizer_email::get_customizer_url('customer_delivered_email')."'>".__( 'Edit', '
|
1272 |
'class' => 'status_label_color_th',
|
1273 |
'show' => true,
|
1274 |
),
|
1275 |
);
|
1276 |
return $form_data;
|
1277 |
|
1278 |
-
}
|
1279 |
-
|
1280 |
-
/*
|
1281 |
-
* get settings tab array data
|
1282 |
-
* return array
|
1283 |
-
*/
|
1284 |
-
function get_uninstall_data(){
|
1285 |
-
$form_data = array(
|
1286 |
-
'wc_ast_deactivate_delivered' => array(
|
1287 |
-
'type' => 'dropdown',
|
1288 |
-
'title' => __( 'Change the "Delivered" orders to "Completed" when you deactivate the plugin', 'woo-advanced-shipment-tracking' ),
|
1289 |
-
'options' => array(
|
1290 |
-
"no" =>__( 'No, I will use the snippet', 'woo-advanced-shipment-tracking' ),
|
1291 |
-
"yes" =>__( 'Yes, change all Delivered orders to Completed', 'woo-advanced-shipment-tracking' ),
|
1292 |
-
),
|
1293 |
-
'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>'),
|
1294 |
-
'show' => true,
|
1295 |
-
'class' => 'status_label_color_th',
|
1296 |
-
),
|
1297 |
-
);
|
1298 |
-
return $form_data;
|
1299 |
-
|
1300 |
}
|
1301 |
|
1302 |
/*
|
@@ -1335,10 +1414,10 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1335 |
|
1336 |
}
|
1337 |
}
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
function footer_function(){
|
1343 |
$bg_color = get_option('wc_ast_status_label_color');
|
1344 |
$color = get_option('wc_ast_status_label_font_color','#fff');
|
@@ -1352,107 +1431,16 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1352 |
<?php
|
1353 |
}
|
1354 |
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
|
|
1358 |
|
1359 |
$replace_tracking_info = $_POST['replace_tracking_info'];
|
1360 |
$order_id = $_POST['order_id'];
|
1361 |
|
1362 |
-
|
1363 |
-
|
1364 |
-
if($alg_wc_custom_order_numbers_enabled == 'yes'){
|
1365 |
-
$args = array(
|
1366 |
-
'post_type' => 'shop_order',
|
1367 |
-
'posts_per_page' => '1',
|
1368 |
-
'meta_query' => array(
|
1369 |
-
'relation' => 'AND',
|
1370 |
-
array(
|
1371 |
-
'key' => '_alg_wc_custom_order_number',
|
1372 |
-
'value' => $order_id
|
1373 |
-
),
|
1374 |
-
),
|
1375 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
1376 |
-
);
|
1377 |
-
$posts = get_posts( $args );
|
1378 |
-
$my_query = new WP_Query( $args );
|
1379 |
-
|
1380 |
-
if( $my_query->have_posts() ) {
|
1381 |
-
while( $my_query->have_posts()) {
|
1382 |
-
$my_query->the_post();
|
1383 |
-
if(get_the_ID()){
|
1384 |
-
$order_id = get_the_ID();
|
1385 |
-
}
|
1386 |
-
} // end while
|
1387 |
-
} // end if
|
1388 |
-
wp_reset_postdata();
|
1389 |
-
}
|
1390 |
-
}
|
1391 |
-
|
1392 |
-
if ( is_plugin_active( 'woocommerce-sequential-order-numbers/woocommerce-sequential-order-numbers.php' ) ) {
|
1393 |
-
|
1394 |
-
$s_order_id = wc_sequential_order_numbers()->find_order_by_order_number( $order_id );
|
1395 |
-
if($s_order_id){
|
1396 |
-
$order_id = $s_order_id;
|
1397 |
-
}
|
1398 |
-
}
|
1399 |
-
|
1400 |
-
if ( is_plugin_active( 'wp-lister-amazon/wp-lister-amazon.php' ) ) {
|
1401 |
-
$wpla_use_amazon_order_number = get_option( 'wpla_use_amazon_order_number' );
|
1402 |
-
if($wpla_use_amazon_order_number == 1){
|
1403 |
-
$args = array(
|
1404 |
-
'post_type' => 'shop_order',
|
1405 |
-
'posts_per_page' => '1',
|
1406 |
-
'meta_query' => array(
|
1407 |
-
'relation' => 'AND',
|
1408 |
-
array(
|
1409 |
-
'key' => '_wpla_amazon_order_id',
|
1410 |
-
'value' => $order_id
|
1411 |
-
),
|
1412 |
-
),
|
1413 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
1414 |
-
);
|
1415 |
-
$posts = get_posts( $args );
|
1416 |
-
$my_query = new WP_Query( $args );
|
1417 |
-
|
1418 |
-
if( $my_query->have_posts() ) {
|
1419 |
-
while( $my_query->have_posts()) {
|
1420 |
-
$my_query->the_post();
|
1421 |
-
if(get_the_ID()){
|
1422 |
-
$order_id = get_the_ID();
|
1423 |
-
}
|
1424 |
-
} // end while
|
1425 |
-
} // end if
|
1426 |
-
wp_reset_postdata();
|
1427 |
-
}
|
1428 |
-
}
|
1429 |
-
|
1430 |
-
if ( is_plugin_active( 'wp-lister/wp-lister.php' ) || is_plugin_active( 'wp-lister-for-ebay/wp-lister.php' )) {
|
1431 |
-
$args = array(
|
1432 |
-
'post_type' => 'shop_order',
|
1433 |
-
'posts_per_page' => '1',
|
1434 |
-
'meta_query' => array(
|
1435 |
-
'relation' => 'AND',
|
1436 |
-
array(
|
1437 |
-
'key' => '_ebay_extended_order_id',
|
1438 |
-
'value' => $order_id
|
1439 |
-
),
|
1440 |
-
),
|
1441 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
1442 |
-
);
|
1443 |
-
$posts = get_posts( $args );
|
1444 |
-
$my_query = new WP_Query( $args );
|
1445 |
-
|
1446 |
-
if( $my_query->have_posts() ) {
|
1447 |
-
while( $my_query->have_posts()) {
|
1448 |
-
$my_query->the_post();
|
1449 |
-
if(get_the_ID()){
|
1450 |
-
$order_id = get_the_ID();
|
1451 |
-
}
|
1452 |
-
} // end while
|
1453 |
-
} // end if
|
1454 |
-
wp_reset_postdata();
|
1455 |
-
}
|
1456 |
|
1457 |
$tracking_provider = $_POST['tracking_provider'];
|
1458 |
$tracking_number = $_POST['tracking_number'];
|
@@ -1523,6 +1511,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1523 |
echo '<li class="error">Failed - Invalid Tracking Data</li>';exit;
|
1524 |
}
|
1525 |
}
|
|
|
1526 |
/**
|
1527 |
* Check if the value is a valid date
|
1528 |
*
|
@@ -1549,10 +1538,13 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1549 |
* Change order status to delivered
|
1550 |
*/
|
1551 |
function add_bulk_actions_get_shipment_status($bulk_actions){
|
1552 |
-
$bulk_actions['get_shipment_status'] = 'Get Shipment
|
1553 |
return $bulk_actions;
|
1554 |
}
|
1555 |
|
|
|
|
|
|
|
1556 |
function get_shipment_status_handle_bulk_action_edit_shop_order( $redirect_to, $action, $post_ids ){
|
1557 |
|
1558 |
if ( $action !== 'get_shipment_status' )
|
@@ -1563,7 +1555,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1563 |
$order_count = count($post_ids);
|
1564 |
|
1565 |
if($order_count > 100){
|
1566 |
-
return $redirect_to;
|
1567 |
}
|
1568 |
|
1569 |
foreach ( $post_ids as $post_id ) {
|
@@ -1580,6 +1572,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1580 |
), $redirect_to );
|
1581 |
}
|
1582 |
|
|
|
|
|
|
|
1583 |
public static function bulk_shipment_status_from_settings_fun(){
|
1584 |
$args = array(
|
1585 |
'status' => 'wc-completed',
|
@@ -1594,6 +1589,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1594 |
$tracking_items = $ast->get_tracking_items( $order_id, true );
|
1595 |
if($tracking_items){
|
1596 |
$shipment_status = get_post_meta( $order_id, "shipment_status", true);
|
|
|
|
|
1597 |
foreach ( $tracking_items as $key => $tracking_item ) {
|
1598 |
if( !isset($shipment_status[$key]) ){
|
1599 |
wp_schedule_single_event( time() + 1, 'wcast_retry_trackship_apicall', array( $order_id ) );
|
@@ -1605,6 +1602,36 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1605 |
echo $url;die();
|
1606 |
}
|
1607 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1608 |
/**
|
1609 |
* Add 'get_shipment_status' link to order actions select box on edit order page
|
1610 |
*
|
@@ -1615,15 +1642,20 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1615 |
public function add_order_meta_box_get_shipment_status_actions( $actions ) {
|
1616 |
|
1617 |
// add download to CSV action
|
1618 |
-
$actions['get_shipment_status_edit_order'] = __( 'Get
|
1619 |
return $actions;
|
1620 |
}
|
1621 |
|
|
|
|
|
|
|
1622 |
public function process_order_meta_box_actions_get_shipment_status( $order ){
|
1623 |
$this->trigger_woocommerce_order_status_completed( $order->get_id() );
|
1624 |
}
|
1625 |
-
|
1626 |
-
|
|
|
|
|
1627 |
function shipment_status_bulk_action_admin_notice() {
|
1628 |
if ( empty( $_REQUEST['get_shipment_status'] ) ) return; // Exit
|
1629 |
|
@@ -1652,7 +1684,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1652 |
$status = __( 'Delivered', 'woo-advanced-shipment-tracking' );
|
1653 |
break;
|
1654 |
case "out_for_delivery":
|
1655 |
-
$status = __( 'Out
|
1656 |
break;
|
1657 |
case "available_for_pickup":
|
1658 |
$status = __( 'Available For Pickup', 'woo-advanced-shipment-tracking' );
|
@@ -1661,7 +1693,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1661 |
$status = __( 'Return To Sender', 'woo-advanced-shipment-tracking' );
|
1662 |
break;
|
1663 |
case "failure":
|
1664 |
-
$status = __( '
|
1665 |
break;
|
1666 |
case "unknown":
|
1667 |
$status = __( 'Unknown', 'woo-advanced-shipment-tracking' );
|
@@ -1670,10 +1702,10 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1670 |
$status = __( 'Pending TrackShip', 'woo-advanced-shipment-tracking' );
|
1671 |
break;
|
1672 |
case "INVALID_TRACKING_NUM":
|
1673 |
-
$status = __( 'Invalid Tracking', 'woo-advanced-shipment-tracking' );
|
1674 |
break;
|
1675 |
case "carrier_unsupported":
|
1676 |
-
$status = __( 'Carrier
|
1677 |
break;
|
1678 |
case "invalid_user_key":
|
1679 |
$status = __( 'Invalid User Key', 'woo-advanced-shipment-tracking' );
|
@@ -1682,7 +1714,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1682 |
$status = __( 'Wrong Shipping Provider', 'woo-advanced-shipment-tracking' );
|
1683 |
break;
|
1684 |
case "deleted":
|
1685 |
-
$status = __( 'Deleted', '
|
1686 |
break;
|
1687 |
|
1688 |
}
|
@@ -1722,16 +1754,16 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1722 |
$html = '<span class="icon-'.$status.'">';
|
1723 |
break;
|
1724 |
case "INVALID_TRACKING_NUM":
|
1725 |
-
$html = '<
|
1726 |
break;
|
1727 |
case "wrong_shipping_provider":
|
1728 |
-
$html = '<
|
1729 |
break;
|
1730 |
case "invalid_user_key":
|
1731 |
$html = '<span class="icon-'.$status.'">';
|
1732 |
break;
|
1733 |
default:
|
1734 |
-
$html = '<
|
1735 |
break;
|
1736 |
|
1737 |
}
|
@@ -1747,6 +1779,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1747 |
$logger->info( "Retry trackship api call for Order id : ".$order_id, $context );
|
1748 |
$this->trigger_woocommerce_order_status_completed( $order_id );
|
1749 |
}
|
|
|
1750 |
/*
|
1751 |
* define the item in the meta box by adding an item to the $actions array
|
1752 |
*/
|
@@ -1754,6 +1787,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1754 |
$actions['resend_delivered_order_notification'] = __( 'Resend delivered order notification', 'woo-advanced-shipment-tracking' );
|
1755 |
return $actions;
|
1756 |
}
|
|
|
1757 |
/*
|
1758 |
* function call when resend delivered order email notification trigger
|
1759 |
*/
|
@@ -1765,6 +1799,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1765 |
//wc_advanced_shipment_tracking_email_class()->delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status);
|
1766 |
WC()->mailer()->emails['WC_Email_Customer_Delivered_Order']->trigger( $order_id, $order );
|
1767 |
}
|
|
|
1768 |
/*
|
1769 |
* update preview order id in customizer
|
1770 |
*/
|
@@ -1779,6 +1814,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1779 |
set_theme_mod('wcast_preview_order_id', $_POST['wcast_preview_order_id']);
|
1780 |
exit;
|
1781 |
}
|
|
|
1782 |
/*
|
1783 |
* update delivered order email status
|
1784 |
*/
|
@@ -1792,6 +1828,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1792 |
update_option( 'woocommerce_customer_delivered_order_settings', $opt );
|
1793 |
exit;
|
1794 |
}
|
|
|
1795 |
/*
|
1796 |
* update all shipment status email status
|
1797 |
*/
|
@@ -1799,6 +1836,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1799 |
set_theme_mod($_POST['id'], $_POST['wcast_enable_status_email']);
|
1800 |
exit;
|
1801 |
}
|
|
|
1802 |
/*
|
1803 |
* Change completed order email title to Shipped Order
|
1804 |
*/
|
@@ -1816,10 +1854,15 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1816 |
}
|
1817 |
return $email_title;
|
1818 |
}
|
|
|
1819 |
/*
|
1820 |
* Add action button in order list to change order status from completed to delivered
|
1821 |
*/
|
1822 |
public function add_delivered_order_status_actions_button($actions, $order){
|
|
|
|
|
|
|
|
|
1823 |
$wc_ast_status_delivered = get_option('wc_ast_status_delivered');
|
1824 |
if($wc_ast_status_delivered){
|
1825 |
if ( $order->has_status( array( 'completed' ) ) ) {
|
@@ -1840,6 +1883,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1840 |
);
|
1841 |
return $actions;
|
1842 |
}
|
|
|
1843 |
/*
|
1844 |
* Add delivered action button in preview order list to change order status from completed to delivered
|
1845 |
*/
|
@@ -1870,6 +1914,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1870 |
return $actions;
|
1871 |
}
|
1872 |
|
|
|
|
|
|
|
1873 |
public function filter_shipiing_provider_by_status_fun(){
|
1874 |
$status = $_POST['status'];
|
1875 |
global $wpdb;
|
@@ -1890,6 +1937,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1890 |
echo $html;exit;
|
1891 |
}
|
1892 |
|
|
|
|
|
|
|
1893 |
public function get_provider_html($default_shippment_providers,$status){
|
1894 |
$WC_Countries = new WC_Countries();
|
1895 |
?>
|
@@ -1963,6 +2013,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1963 |
</div>
|
1964 |
<?php
|
1965 |
}
|
|
|
1966 |
/*
|
1967 |
* Update shipment provider status
|
1968 |
*/
|
@@ -1978,6 +2029,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1978 |
exit;
|
1979 |
}
|
1980 |
|
|
|
|
|
|
|
1981 |
function update_default_provider_fun(){
|
1982 |
if($_POST['checked'] == 1){
|
1983 |
update_option("wc_ast_default_provider", $_POST['default_provider'] );
|
@@ -1987,6 +2041,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1987 |
exit;
|
1988 |
}
|
1989 |
|
|
|
|
|
|
|
1990 |
function add_custom_shipment_provider_fun(){
|
1991 |
|
1992 |
global $wpdb;
|
@@ -2030,6 +2087,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2030 |
echo $html;exit;
|
2031 |
}
|
2032 |
|
|
|
|
|
|
|
2033 |
public function get_provider_details_fun(){
|
2034 |
$id = $_POST['provider_id'];
|
2035 |
global $wpdb;
|
@@ -2038,6 +2098,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2038 |
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;
|
2039 |
}
|
2040 |
|
|
|
|
|
|
|
2041 |
public function update_custom_shipment_provider_fun(){
|
2042 |
|
2043 |
global $wpdb;
|
@@ -2058,6 +2121,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2058 |
echo $html;exit;
|
2059 |
}
|
2060 |
|
|
|
|
|
|
|
2061 |
public function update_provider_status_active_fun(){
|
2062 |
global $wpdb;
|
2063 |
$data_array = array(
|
@@ -2073,6 +2139,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2073 |
exit;
|
2074 |
}
|
2075 |
|
|
|
|
|
|
|
2076 |
public function update_provider_status_inactive_fun(){
|
2077 |
global $wpdb;
|
2078 |
$data_array = array(
|
@@ -2089,6 +2158,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2089 |
exit;
|
2090 |
}
|
2091 |
|
|
|
|
|
|
|
2092 |
public function sync_providers_fun(){
|
2093 |
global $wpdb;
|
2094 |
|
@@ -2203,6 +2275,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2203 |
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;
|
2204 |
}
|
2205 |
|
|
|
|
|
|
|
2206 |
public function added_html($added_data){ ?>
|
2207 |
<ul class="updated_details" id="added_providers">
|
2208 |
<?php
|
@@ -2215,6 +2290,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2215 |
<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>
|
2216 |
<?php }
|
2217 |
|
|
|
|
|
|
|
2218 |
public function updated_html($updated_data){ ?>
|
2219 |
<ul class="updated_details" id="updated_providers">
|
2220 |
<?php
|
@@ -2227,6 +2305,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2227 |
<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>
|
2228 |
<?php }
|
2229 |
|
|
|
|
|
|
|
2230 |
public function deleted_html($deleted_data){ ?>
|
2231 |
<ul class="updated_details" id="deleted_providers">
|
2232 |
<?php
|
@@ -2237,7 +2318,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2237 |
</ul>
|
2238 |
<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>
|
2239 |
<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>
|
2240 |
-
<?php }
|
|
|
2241 |
/**
|
2242 |
* Add bulk filter for Shipment status in orders list
|
2243 |
*
|
@@ -2254,11 +2336,11 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2254 |
'unknown' => (object) array( 'count' => $count['unknown'], 'term' => __( 'Unknown', 'woo-advanced-shipment-tracking' ) ),
|
2255 |
'pre_transit' => (object) array( 'count' => $count['pre_transit'],'term' => __( 'Pre Transit', 'woo-advanced-shipment-tracking' ) ),
|
2256 |
'in_transit' => (object) array( 'count' => $count['in_transit'],'term' => __( 'In Transit', 'woo-advanced-shipment-tracking' ) ),
|
2257 |
-
'available_for_pickup' => (object) array( 'count' => $count['available_for_pickup'],'term' => __( 'Available
|
2258 |
-
'out_for_delivery' => (object) array( 'count' => $count['out_for_delivery'],'term' => __( 'Out
|
2259 |
'delivered' => (object) array( 'count' => $count['delivered'],'term' => __( 'Delivered', 'woo-advanced-shipment-tracking' ) ),
|
2260 |
'failed_attempt' => (object) array( 'count' => $count['failed_attempt'],'term' => __( 'Failed Attempt', 'woo-advanced-shipment-tracking' ) ),
|
2261 |
-
'cancelled' => (object) array( 'count' => $count['cancelled'],'term' => __( 'Cancelled', '
|
2262 |
'carrier_unsupported' => (object) array( 'count' => $count['carrier_unsupported'],'term' => __( 'Carrier Unsupported', 'woo-advanced-shipment-tracking' ) ),
|
2263 |
'return_to_sender' => (object) array( 'count' => $count['return_to_sender'],'term' => __( 'Return To Sender', 'woo-advanced-shipment-tracking' ) ),
|
2264 |
'INVALID_TRACKING_NUM' => (object) array( 'count' => $count['invalid_tracking_number'],'term' => __( 'Invalid Tracking Number', 'woo-advanced-shipment-tracking' ) ),
|
@@ -2356,77 +2438,211 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2356 |
* Add a new dashboard widget.
|
2357 |
*/
|
2358 |
public function ast_add_dashboard_widgets() {
|
2359 |
-
wp_add_dashboard_widget( '
|
2360 |
}
|
2361 |
/**
|
2362 |
* Output the contents of the dashboard widget
|
2363 |
*/
|
2364 |
-
public function dashboard_widget_function( $post, $callback_args ) {
|
2365 |
-
|
2366 |
-
|
2367 |
-
|
2368 |
-
|
2369 |
-
|
2370 |
-
|
2371 |
-
|
2372 |
-
|
2373 |
-
|
2374 |
-
|
2375 |
-
|
2376 |
-
|
2377 |
-
|
2378 |
-
|
2379 |
-
|
2380 |
-
|
2381 |
-
|
2382 |
-
|
2383 |
-
|
2384 |
-
|
2385 |
-
|
2386 |
-
|
2387 |
-
|
2388 |
-
|
2389 |
-
|
2390 |
-
|
2391 |
-
|
2392 |
-
|
2393 |
-
|
2394 |
-
|
2395 |
-
|
2396 |
-
|
2397 |
-
|
2398 |
-
|
2399 |
-
|
2400 |
-
|
2401 |
-
|
2402 |
-
|
2403 |
-
|
2404 |
-
|
2405 |
-
|
2406 |
-
|
2407 |
-
|
2408 |
-
|
2409 |
-
|
2410 |
-
|
2411 |
-
|
2412 |
-
|
2413 |
-
|
2414 |
-
|
2415 |
-
|
2416 |
-
|
2417 |
-
|
2418 |
-
|
2419 |
-
|
2420 |
-
|
2421 |
-
|
2422 |
-
|
2423 |
-
|
2424 |
-
|
2425 |
-
|
2426 |
-
|
2427 |
-
|
2428 |
-
|
2429 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2430 |
</div>
|
2431 |
<?php }
|
2432 |
}
|
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 |
|
124 |
add_action( 'restrict_manage_posts', array( $this, 'filter_orders_by_shipment_status') , 20 );
|
125 |
add_filter( 'request', array( $this, 'filter_orders_by_shipment_status_query' ) );
|
126 |
|
127 |
+
add_action( 'wp_dashboard_setup', array( $this, 'ast_add_dashboard_widgets') );
|
128 |
}
|
129 |
|
130 |
// trigger when order status changed to shipped or completed
|
175 |
|
176 |
add_action( 'wp_ajax_update_shipment_status', array( $this, 'update_shipment_status_fun') );
|
177 |
|
178 |
+
add_action( 'wp_ajax_sync_providers', array( $this, 'sync_providers_fun') );
|
179 |
+
|
180 |
+
// Hook for add admin body class in settings page
|
181 |
+
add_filter( 'admin_body_class', array( $this, 'ahipment_tracking_admin_body_class' ) );
|
182 |
}
|
183 |
|
184 |
/*
|
201 |
maybe_create_table( $table_name, $sql );
|
202 |
}
|
203 |
|
204 |
+
/*
|
205 |
+
* Add class in admin settings page
|
206 |
+
*/
|
207 |
+
public function ahipment_tracking_admin_body_class($classes){
|
208 |
+
if( $_GET['page'] == 'woocommerce-advanced-shipment-tracking') {
|
209 |
+
$classes .= 'shipment_tracking_admin_settings';
|
210 |
+
}
|
211 |
+
return $classes;
|
212 |
+
}
|
213 |
+
|
214 |
/*
|
215 |
* Rename WooCommerce Order Status
|
216 |
*/
|
432 |
return $value;
|
433 |
}
|
434 |
|
435 |
+
/*
|
436 |
+
* If order status is "Updated Tracking" or "Completed" than retrn true else return false
|
437 |
+
*/
|
438 |
function check_order_status($value, $order){
|
439 |
$order_status = $order->get_status();
|
440 |
|
445 |
}
|
446 |
return $value;
|
447 |
}
|
448 |
+
|
449 |
/*
|
450 |
* add in batch process
|
451 |
*/
|
626 |
*/
|
627 |
public function admin_styles($hook) {
|
628 |
|
629 |
+
|
630 |
+
//amcharts js
|
631 |
+
wp_enqueue_script( 'amcharts', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/amcharts/amcharts.js' );
|
632 |
+
wp_enqueue_script( 'amcharts-light-theme', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/amcharts/light.js' );
|
633 |
+
wp_enqueue_script( 'amcharts-serial', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/amcharts/serial.js' );
|
634 |
+
|
635 |
+
if(!isset($_GET['page'])) {
|
636 |
+
return;
|
637 |
+
}
|
638 |
+
if( $_GET['page'] != 'woocommerce-advanced-shipment-tracking') {
|
639 |
+
return;
|
640 |
+
}
|
641 |
+
|
642 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
643 |
|
644 |
wp_enqueue_style( 'font-awesome', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/font-awesome.min.css', array(), '4.7' );
|
656 |
),
|
657 |
) );
|
658 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
659 |
wp_register_script( 'selectWoo', WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full' . $suffix . '.js', array( 'jquery' ), '1.0.4' );
|
660 |
wp_register_script( 'wc-enhanced-select', WC()->plugin_url() . '/assets/js/admin/wc-enhanced-select' . $suffix . '.js', array( 'jquery', 'selectWoo' ), WC_VERSION );
|
661 |
wp_register_script( 'jquery-blockui', WC()->plugin_url() . '/assets/js/jquery-blockui/jquery.blockUI' . $suffix . '.js', array( 'jquery' ), '2.70', true );
|
670 |
wp_enqueue_script( 'jquery-tiptip' );
|
671 |
wp_enqueue_script( 'jquery-blockui' );
|
672 |
wp_enqueue_script( 'wp-color-picker' );
|
673 |
+
wp_enqueue_script( 'jquery-ui-sortable' );
|
|
|
674 |
wp_enqueue_script('media-upload');
|
675 |
wp_enqueue_script('thickbox');
|
676 |
+
wp_enqueue_style('thickbox');
|
|
|
677 |
|
678 |
wp_enqueue_style( 'material-css', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/material.css', array(), wc_advanced_shipment_tracking()->version );
|
679 |
wp_enqueue_script( 'material-js', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/material.min.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
|
684 |
|
685 |
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 );
|
686 |
wp_localize_script( 'shipment_tracking_table_rows', 'shipment_tracking_table_rows', array(
|
687 |
+
'i18n' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
688 |
'data_saved' => __( 'Data saved successfully.', 'woo-advanced-shipment-tracking' ),
|
689 |
'delete_provider' => __( 'Really delete this entry? This will not be undo.', 'woo-advanced-shipment-tracking' ),
|
690 |
'upload_only_csv_file' => __( 'You can upload only csv file.', 'woo-advanced-shipment-tracking' ),
|
693 |
),
|
694 |
'delete_rates_nonce' => wp_create_nonce( "delete-rate" ),
|
695 |
) );
|
696 |
+
wp_enqueue_media();
|
|
|
|
|
697 |
}
|
698 |
|
699 |
/*
|
703 |
public function register_woocommerce_menu() {
|
704 |
add_submenu_page( 'woocommerce', 'Shipment Tracking', 'Shipment Tracking', 'manage_options', 'woocommerce-advanced-shipment-tracking', array( $this, 'woocommerce_advanced_shipment_tracking_page_callback' ) );
|
705 |
}
|
706 |
+
|
707 |
+
/*
|
708 |
+
* Sort by Country ascending
|
709 |
+
*/
|
710 |
public function sortByCountryAsc($a, $b) {
|
711 |
return strcmp($a->country, $b->country);
|
712 |
}
|
713 |
+
|
714 |
+
/*
|
715 |
+
* Sort by Country descending
|
716 |
+
*/
|
717 |
public function sortByCountryDesc($a, $b) {
|
718 |
return strcmp($b->country, $a->country);
|
719 |
}
|
720 |
+
|
721 |
/*
|
722 |
* callback for Shipment Tracking page
|
723 |
*/
|
748 |
}
|
749 |
}
|
750 |
wp_enqueue_script( 'shipment_tracking_table_rows' );
|
751 |
+
?>
|
752 |
+
<div class="white-bg">
|
753 |
+
<img class="plugin-logo" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ast-logo.png">
|
754 |
+
</div>
|
755 |
<div class="woocommerce zorem_admin_layout">
|
756 |
+
<div class="ast_admin_content" >
|
757 |
+
<input id="tab2" type="radio" name="tabs" class="tab_input" data-tab="settings" checked>
|
758 |
+
<label for="tab2" class="tab_label first_label"><?php _e('Settings', 'woocommerce'); ?></label>
|
|
|
759 |
|
760 |
<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'; } ?>>
|
761 |
+
<label for="tab1" class="tab_label"><?php _e('Shipping Providers', 'woo-advanced-shipment-tracking'); ?></label>
|
|
|
762 |
<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'; } ?>>
|
763 |
<label for="tab4" class="tab_label"><?php _e('Bulk Upload', 'woo-advanced-shipment-tracking'); ?></label>
|
764 |
|
765 |
<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'; } ?>>
|
766 |
+
<label for="tab3" class="tab_label">TrackShip</label>
|
767 |
|
768 |
<div class="nav_doc_section">
|
769 |
+
<a target="blank" class="doc_link" href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a>
|
770 |
+
<a href="JavaScript:void(0);" class="open_video_popup"><?php _e( 'How to Video', 'woo-advanced-shipment-tracking' ); ?></a>
|
771 |
+
</div>
|
772 |
|
773 |
<?php require_once( 'views/admin_options_shipping_provider.php' );?>
|
774 |
<?php require_once( 'views/admin_options_settings.php' );?>
|
775 |
<?php require_once( 'views/admin_options_trackship_integration.php' );?>
|
776 |
<?php require_once( 'views/admin_options_bulk_upload.php' );?>
|
777 |
+
</div>
|
|
|
778 |
</div>
|
779 |
<div id="demo-toast-example" class="mdl-js-snackbar mdl-snackbar">
|
780 |
<div class="mdl-snackbar__text"></div>
|
855 |
</label>
|
856 |
</span>
|
857 |
<?php } elseif( $array['type'] == 'multiple_checkbox' ){ ?>
|
858 |
+
<?php
|
859 |
+
$op = 1;
|
860 |
+
foreach((array)$array['options'] as $key => $val ){
|
861 |
+
if($val['type'] == 'default'){
|
862 |
$multi_checkbox_data = get_option($id);
|
863 |
if(!$multi_checkbox_data){
|
864 |
$multi_checkbox_data = array();
|
874 |
<span class="mdl-list__item-secondary-action multiple_checkbox">
|
875 |
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="<?php echo $key?>">
|
876 |
<input type="checkbox" id="<?php echo $key?>" name="<?php echo $id?>[<?php echo $key?>]" class="mdl-switch__input" <?php echo $checked; ?> value="1"/>
|
877 |
+
<span class="multiple_label"><?php echo $val['status']; ?></span>
|
878 |
+
</br>
|
879 |
</label>
|
880 |
+
</span>
|
881 |
+
<?php }
|
882 |
+
if($val['type'] == 'custom'){
|
883 |
+
$multi_checkbox_data = get_option($id);
|
884 |
+
if(!$multi_checkbox_data){
|
885 |
+
$multi_checkbox_data = array();
|
886 |
+
$multi_checkbox_data['show_in_completed'] = 1;
|
887 |
+
$data_array = array('show_in_completed' => 1);
|
888 |
+
update_option( 'wc_ast_unclude_tracking_info', $data_array );
|
889 |
+
}
|
890 |
+
if(isset($multi_checkbox_data[$key])){
|
891 |
+
$checked="checked";
|
892 |
+
} else{
|
893 |
+
$checked="";
|
894 |
+
}
|
895 |
+
if($op == 1){ ?>
|
896 |
+
<div style="margin: 10px 0 15px;">
|
897 |
+
<strong style="font-weight: 700;padding-bottom: 3px;">
|
898 |
+
<?php _e( 'Custom Statuses', 'woo-advanced-shipment-tracking' ); ?>
|
899 |
+
</strong>
|
900 |
+
</div>
|
901 |
+
<?php } ?>
|
902 |
+
<span class="mdl-list__item-secondary-action multiple_checkbox">
|
903 |
+
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="<?php echo $key?>">
|
904 |
+
<input type="checkbox" id="<?php echo $key?>" name="<?php echo $id?>[<?php echo $key?>]" class="mdl-switch__input" <?php echo $checked; ?> value="1"/>
|
905 |
+
<span class="multiple_label"><?php echo $val['status']; ?></span>
|
906 |
+
</br>
|
907 |
+
</label>
|
908 |
+
</span>
|
909 |
+
<?php $op++; }
|
910 |
+
} ?>
|
911 |
|
912 |
<?php } elseif( isset( $array['type'] ) && $array['type'] == 'dropdown' ){?>
|
913 |
<?php
|
945 |
<?php } ?>
|
946 |
</fieldset>
|
947 |
<?php }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
948 |
elseif( $array['type'] == 'label' ){ ?>
|
949 |
<fieldset>
|
950 |
<label><?php echo $array['value']; ?></label>
|
957 |
<?php }
|
958 |
elseif( $array['type'] == 'button' ){ ?>
|
959 |
<fieldset>
|
960 |
+
<button class="button-primary btn_green2 <?php echo $array['button_class'];?>" <?php if($array['disable'] == 1){ echo 'disabled'; }?>><?php echo $array['label'];?></button>
|
961 |
</fieldset>
|
962 |
<?php }
|
963 |
else { ?>
|
975 |
<?php } } ?>
|
976 |
</tbody>
|
977 |
</table>
|
978 |
+
<?php
|
979 |
+
}
|
980 |
|
981 |
/*
|
982 |
+
* get trackship bulk actions tab array data
|
983 |
* return array
|
984 |
*/
|
985 |
+
function get_trackship_bulk_actions_data(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
986 |
// Get orders completed.
|
987 |
$args = array(
|
988 |
'status' => 'wc-completed',
|
989 |
'limit' => -1,
|
990 |
'date_created' => '>' . ( time() - 2592000 ),
|
991 |
);
|
992 |
+
|
993 |
$orders = wc_get_orders( $args );
|
994 |
$completed_order_with_tracking = 0;
|
995 |
+
|
996 |
foreach($orders as $order){
|
997 |
$order_id = $order->get_id();
|
998 |
|
1000 |
$tracking_items = $ast->get_tracking_items( $order_id, true );
|
1001 |
if($tracking_items){
|
1002 |
$shipment_status = get_post_meta( $order_id, "shipment_status", true);
|
1003 |
+
foreach ( $tracking_items as $key => $tracking_item ) {
|
1004 |
if( !isset($shipment_status[$key]) ){
|
1005 |
$completed_order_with_tracking++;
|
1006 |
}
|
1009 |
}
|
1010 |
|
1011 |
if($completed_order_with_tracking > 0){
|
1012 |
+
$disable_bulk_sync = false;
|
1013 |
} else{
|
1014 |
+
$disable_bulk_sync = true;
|
1015 |
+
}
|
1016 |
+
|
1017 |
+
$completed_order_with_zero_balance = 0;
|
1018 |
+
|
1019 |
+
foreach($orders as $order){
|
1020 |
+
$order_id = $order->get_id();
|
1021 |
+
|
1022 |
+
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
1023 |
+
$tracking_items = $ast->get_tracking_items( $order_id, true );
|
1024 |
+
if($tracking_items){
|
1025 |
+
$shipment_status = get_post_meta( $order_id, "shipment_status", true);
|
1026 |
+
foreach ( $tracking_items as $key => $tracking_item ) {
|
1027 |
+
if(isset($shipment_status[$key]['status']) && $shipment_status[$key]['status'] == 'TrackShip balance is 0'){
|
1028 |
+
$completed_order_with_zero_balance++;
|
1029 |
+
}
|
1030 |
+
}
|
1031 |
+
}
|
1032 |
+
}
|
1033 |
+
|
1034 |
+
if($completed_order_with_zero_balance > 0){
|
1035 |
+
$disable_bulk_sync_zero_balance = false;
|
1036 |
+
} else{
|
1037 |
+
$disable_bulk_sync_zero_balance = true;
|
1038 |
}
|
1039 |
|
1040 |
$wc_ast_status_shipped = get_option('wc_ast_status_shipped');
|
1041 |
+
|
1042 |
if($wc_ast_status_shipped == 1){
|
1043 |
$completed_order_label = '<span class="shipped_label">shipped</span>';
|
1044 |
} else{
|
1045 |
$completed_order_label = '<span class="shipped_label">completed</span>';
|
1046 |
+
}
|
1047 |
+
|
1048 |
+
$form_data = array(
|
1049 |
+
'wc_ast_bulk_shipment_status' => array(
|
1050 |
+
'type' => 'button',
|
1051 |
+
'title' => sprintf(__('%s %s orders with tracking info', 'woo-advanced-shipment-tracking'), $completed_order_with_tracking , $completed_order_label),
|
1052 |
+
'label' => __( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ),
|
1053 |
+
'show' => true,
|
1054 |
+
'disable' => $disable_bulk_sync,
|
1055 |
+
'button_class' => 'bulk_shipment_status_button',
|
1056 |
+
'class' => '',
|
1057 |
+
),
|
1058 |
+
'wc_ast_bulk_shipment_status_for_zero_tracker_balace' => array(
|
1059 |
+
'type' => 'button',
|
1060 |
+
'title' => sprintf(__('%s %s orders with “TrackShip balance is 0”', 'woo-advanced-shipment-tracking'), $completed_order_with_zero_balance , $completed_order_label),
|
1061 |
+
'label' => __( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ),
|
1062 |
+
'show' => true,
|
1063 |
+
'disable' => $disable_bulk_sync_zero_balance,
|
1064 |
+
'button_class' => 'bulk_shipment_status_button_for_empty_balance',
|
1065 |
+
'class' => '',
|
1066 |
+
),
|
1067 |
+
);
|
1068 |
+
return $form_data;
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
/*
|
1072 |
+
* get settings tab array data
|
1073 |
+
* return array
|
1074 |
+
*/
|
1075 |
+
function get_trackship_general_data(){
|
1076 |
+
$wc_ast_api_key = get_option('wc_ast_api_key');
|
1077 |
+
$trackers_balance = get_option( 'trackers_balance' );
|
1078 |
+
$wc_ast_status_delivered = get_option( 'wc_ast_status_delivered' );
|
1079 |
+
if($wc_ast_api_key){
|
1080 |
+
$connected = true;
|
1081 |
+
$show_trackship_field = true;
|
1082 |
+
$show_trackship_description = false;
|
1083 |
+
} else{
|
1084 |
+
$connected = false;
|
1085 |
+
$show_trackship_field = false;
|
1086 |
+
$show_trackship_description = true;
|
1087 |
+
}
|
1088 |
+
if($wc_ast_status_delivered){
|
1089 |
+
$disabled_change_to_delivered = false;
|
1090 |
+
} else{
|
1091 |
+
$disabled_change_to_delivered = true;
|
1092 |
+
}
|
1093 |
+
$page_list = wp_list_pluck( get_pages(), 'post_title', 'ID' );
|
1094 |
+
|
1095 |
$form_data = array(
|
1096 |
'wc_ast_api_enabled' => array(
|
1097 |
'type' => 'checkbox',
|
1105 |
'show' => $show_trackship_field,
|
1106 |
'class' => '',
|
1107 |
'disabled' => $disabled_change_to_delivered,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1108 |
),
|
1109 |
);
|
1110 |
return $form_data;
|
|
|
1111 |
}
|
1112 |
+
|
1113 |
/*
|
1114 |
* get settings tab array data
|
1115 |
* return array
|
1235 |
$mark_as_shipped_label = __( 'Default "mark as <span class="shipped_label">shipped</span>"', 'woo-advanced-shipment-tracking' );
|
1236 |
$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' );
|
1237 |
} else{
|
1238 |
+
$completed_order_label = __( 'Completed', 'woocommerce' );
|
1239 |
$mark_as_shipped_label = __( 'Default "mark as <span class="shipped_label">completed</span>"', 'woo-advanced-shipment-tracking' );
|
1240 |
$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' );
|
1241 |
}
|
1259 |
foreach($custom_order_status as $key=>$value){
|
1260 |
unset($custom_order_status[$key]);
|
1261 |
$key = str_replace("wc-", "", $key);
|
1262 |
+
$custom_order_status[$key] = array(
|
1263 |
+
'status' => __( $value, '' ),
|
1264 |
+
'type' => 'custom',
|
1265 |
+
);
|
1266 |
}
|
1267 |
|
1268 |
$order_status = array(
|
1269 |
+
"cancelled" => array(
|
1270 |
+
'status' => __( 'Cancelled', 'woocommerce' ),
|
1271 |
+
'type' => 'default',
|
1272 |
+
),
|
1273 |
+
"show_in_customer_invoice" => array(
|
1274 |
+
'status' => __( 'Customer Invoice', 'woocommerce' ),
|
1275 |
+
'type' => 'default',
|
1276 |
+
),
|
1277 |
+
"refunded" => array(
|
1278 |
+
'status' => __( 'Refunded', 'woocommerce' ),
|
1279 |
+
'type' => 'default',
|
1280 |
+
),
|
1281 |
+
"processing" => array(
|
1282 |
+
'status' => __( 'Processing', 'woocommerce' ),
|
1283 |
+
'type' => 'default',
|
1284 |
+
),
|
1285 |
+
"failed" => array(
|
1286 |
+
'status' => __( 'Failed', 'woocommerce' ),
|
1287 |
+
'type' => 'default',
|
1288 |
+
),
|
1289 |
+
"completed" => array(
|
1290 |
+
'status' => $completed_order_label,
|
1291 |
+
'type' => 'default',
|
1292 |
+
),
|
1293 |
);
|
1294 |
+
$order_status_array = array_merge($order_status,$custom_order_status);
|
1295 |
+
|
1296 |
if ( is_plugin_active( 'woocommerce-pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php' ) ) {
|
1297 |
$show_invoice_field = true;
|
1298 |
} else{
|
1359 |
'type' => 'dropdown',
|
1360 |
'title' => __( 'Delivered Label font color', 'woo-advanced-shipment-tracking' ),
|
1361 |
'options' => array(
|
1362 |
+
"" =>__( 'Select', 'woocommerce' ),
|
1363 |
"#fff" =>__( 'Light', 'woo-advanced-shipment-tracking' ),
|
1364 |
"#000" =>__( 'Dark', 'woo-advanced-shipment-tracking' ),
|
1365 |
),
|
1369 |
'wcast_enable_delivered_email' => array(
|
1370 |
'type' => 'checkbox',
|
1371 |
'title' => __( 'Enable the Delivered order status email', 'woo-advanced-shipment-tracking' ),
|
1372 |
+
'title_link'=> "<a class='settings_edit' href='".wcast_initialise_customizer_email::get_customizer_url('customer_delivered_email')."'>".__( 'Edit', 'woocommerce' )."</a>",
|
1373 |
'class' => 'status_label_color_th',
|
1374 |
'show' => true,
|
1375 |
),
|
1376 |
);
|
1377 |
return $form_data;
|
1378 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1379 |
}
|
1380 |
|
1381 |
/*
|
1414 |
|
1415 |
}
|
1416 |
}
|
1417 |
+
|
1418 |
+
/*
|
1419 |
+
* change style of delivered order label
|
1420 |
+
*/
|
1421 |
function footer_function(){
|
1422 |
$bg_color = get_option('wc_ast_status_label_color');
|
1423 |
$color = get_option('wc_ast_status_label_font_color','#fff');
|
1431 |
<?php
|
1432 |
}
|
1433 |
|
1434 |
+
/*
|
1435 |
+
* Ajax call for upload tracking details into order from bulk upload
|
1436 |
+
*/
|
1437 |
+
function upload_tracking_csv_fun(){
|
1438 |
|
1439 |
$replace_tracking_info = $_POST['replace_tracking_info'];
|
1440 |
$order_id = $_POST['order_id'];
|
1441 |
|
1442 |
+
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
1443 |
+
$order_id = $wast->get_formated_order_id($order_id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1444 |
|
1445 |
$tracking_provider = $_POST['tracking_provider'];
|
1446 |
$tracking_number = $_POST['tracking_number'];
|
1511 |
echo '<li class="error">Failed - Invalid Tracking Data</li>';exit;
|
1512 |
}
|
1513 |
}
|
1514 |
+
|
1515 |
/**
|
1516 |
* Check if the value is a valid date
|
1517 |
*
|
1538 |
* Change order status to delivered
|
1539 |
*/
|
1540 |
function add_bulk_actions_get_shipment_status($bulk_actions){
|
1541 |
+
$bulk_actions['get_shipment_status'] = 'Get Shipment Status';
|
1542 |
return $bulk_actions;
|
1543 |
}
|
1544 |
|
1545 |
+
/*
|
1546 |
+
* order bulk action for get shipment status
|
1547 |
+
*/
|
1548 |
function get_shipment_status_handle_bulk_action_edit_shop_order( $redirect_to, $action, $post_ids ){
|
1549 |
|
1550 |
if ( $action !== 'get_shipment_status' )
|
1555 |
$order_count = count($post_ids);
|
1556 |
|
1557 |
if($order_count > 100){
|
1558 |
+
//return $redirect_to;
|
1559 |
}
|
1560 |
|
1561 |
foreach ( $post_ids as $post_id ) {
|
1572 |
), $redirect_to );
|
1573 |
}
|
1574 |
|
1575 |
+
/*
|
1576 |
+
* bulk shipment status action for completed order with tracking details and without shipment status
|
1577 |
+
*/
|
1578 |
public static function bulk_shipment_status_from_settings_fun(){
|
1579 |
$args = array(
|
1580 |
'status' => 'wc-completed',
|
1589 |
$tracking_items = $ast->get_tracking_items( $order_id, true );
|
1590 |
if($tracking_items){
|
1591 |
$shipment_status = get_post_meta( $order_id, "shipment_status", true);
|
1592 |
+
//echo '<pre>';print_r($shipment_status);echo '</pre>';
|
1593 |
+
//echo '<pre>';print_r($tracking_items);echo '</pre>';exit;
|
1594 |
foreach ( $tracking_items as $key => $tracking_item ) {
|
1595 |
if( !isset($shipment_status[$key]) ){
|
1596 |
wp_schedule_single_event( time() + 1, 'wcast_retry_trackship_apicall', array( $order_id ) );
|
1602 |
echo $url;die();
|
1603 |
}
|
1604 |
|
1605 |
+
/*
|
1606 |
+
* bulk shipment status action for "TrackShip balance is 0" status
|
1607 |
+
*/
|
1608 |
+
public static function bulk_shipment_status_for_empty_balance_from_settings_fun(){
|
1609 |
+
$args = array(
|
1610 |
+
'status' => 'wc-completed',
|
1611 |
+
'limit' => -1,
|
1612 |
+
'date_created' => '>' . ( time() - 2592000 ),
|
1613 |
+
);
|
1614 |
+
$orders = wc_get_orders( $args );
|
1615 |
+
|
1616 |
+
foreach($orders as $order){
|
1617 |
+
$order_id = $order->get_id();
|
1618 |
+
|
1619 |
+
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
1620 |
+
$tracking_items = $ast->get_tracking_items( $order_id, true );
|
1621 |
+
if($tracking_items){
|
1622 |
+
$shipment_status = get_post_meta( $order_id, "shipment_status", true);
|
1623 |
+
foreach ( $tracking_items as $key => $tracking_item ) {
|
1624 |
+
if($shipment_status[$key]['status'] == 'TrackShip balance is 0'){
|
1625 |
+
wp_schedule_single_event( time() + 1, 'wcast_retry_trackship_apicall', array( $order_id ) );
|
1626 |
+
}
|
1627 |
+
}
|
1628 |
+
}
|
1629 |
+
}
|
1630 |
+
|
1631 |
+
$url = admin_url('/edit.php?post_type=shop_order');
|
1632 |
+
echo $url;die();
|
1633 |
+
}
|
1634 |
+
|
1635 |
/**
|
1636 |
* Add 'get_shipment_status' link to order actions select box on edit order page
|
1637 |
*
|
1642 |
public function add_order_meta_box_get_shipment_status_actions( $actions ) {
|
1643 |
|
1644 |
// add download to CSV action
|
1645 |
+
$actions['get_shipment_status_edit_order'] = __( 'Get Shipment Status', 'woo-advanced-shipment-tracking' );
|
1646 |
return $actions;
|
1647 |
}
|
1648 |
|
1649 |
+
/*
|
1650 |
+
* order details meta box action
|
1651 |
+
*/
|
1652 |
public function process_order_meta_box_actions_get_shipment_status( $order ){
|
1653 |
$this->trigger_woocommerce_order_status_completed( $order->get_id() );
|
1654 |
}
|
1655 |
+
|
1656 |
+
/*
|
1657 |
+
* The results notice from bulk action on orders
|
1658 |
+
*/
|
1659 |
function shipment_status_bulk_action_admin_notice() {
|
1660 |
if ( empty( $_REQUEST['get_shipment_status'] ) ) return; // Exit
|
1661 |
|
1684 |
$status = __( 'Delivered', 'woo-advanced-shipment-tracking' );
|
1685 |
break;
|
1686 |
case "out_for_delivery":
|
1687 |
+
$status = __( 'Out For Delivery', 'woo-advanced-shipment-tracking' );
|
1688 |
break;
|
1689 |
case "available_for_pickup":
|
1690 |
$status = __( 'Available For Pickup', 'woo-advanced-shipment-tracking' );
|
1693 |
$status = __( 'Return To Sender', 'woo-advanced-shipment-tracking' );
|
1694 |
break;
|
1695 |
case "failure":
|
1696 |
+
$status = __( 'Failed Attempt', 'woo-advanced-shipment-tracking' );
|
1697 |
break;
|
1698 |
case "unknown":
|
1699 |
$status = __( 'Unknown', 'woo-advanced-shipment-tracking' );
|
1702 |
$status = __( 'Pending TrackShip', 'woo-advanced-shipment-tracking' );
|
1703 |
break;
|
1704 |
case "INVALID_TRACKING_NUM":
|
1705 |
+
$status = __( 'Invalid Tracking Number', 'woo-advanced-shipment-tracking' );
|
1706 |
break;
|
1707 |
case "carrier_unsupported":
|
1708 |
+
$status = __( 'Carrier Unsupported', 'woo-advanced-shipment-tracking' );
|
1709 |
break;
|
1710 |
case "invalid_user_key":
|
1711 |
$status = __( 'Invalid User Key', 'woo-advanced-shipment-tracking' );
|
1714 |
$status = __( 'Wrong Shipping Provider', 'woo-advanced-shipment-tracking' );
|
1715 |
break;
|
1716 |
case "deleted":
|
1717 |
+
$status = __( 'Deleted', 'woocommerce' );
|
1718 |
break;
|
1719 |
|
1720 |
}
|
1754 |
$html = '<span class="icon-'.$status.'">';
|
1755 |
break;
|
1756 |
case "INVALID_TRACKING_NUM":
|
1757 |
+
$html = '<span class="icon-'.$status.'">';
|
1758 |
break;
|
1759 |
case "wrong_shipping_provider":
|
1760 |
+
$html = '<span class="icon-'.$status.'">';
|
1761 |
break;
|
1762 |
case "invalid_user_key":
|
1763 |
$html = '<span class="icon-'.$status.'">';
|
1764 |
break;
|
1765 |
default:
|
1766 |
+
$html = '<span class="icon-default">';
|
1767 |
break;
|
1768 |
|
1769 |
}
|
1779 |
$logger->info( "Retry trackship api call for Order id : ".$order_id, $context );
|
1780 |
$this->trigger_woocommerce_order_status_completed( $order_id );
|
1781 |
}
|
1782 |
+
|
1783 |
/*
|
1784 |
* define the item in the meta box by adding an item to the $actions array
|
1785 |
*/
|
1787 |
$actions['resend_delivered_order_notification'] = __( 'Resend delivered order notification', 'woo-advanced-shipment-tracking' );
|
1788 |
return $actions;
|
1789 |
}
|
1790 |
+
|
1791 |
/*
|
1792 |
* function call when resend delivered order email notification trigger
|
1793 |
*/
|
1799 |
//wc_advanced_shipment_tracking_email_class()->delivered_shippment_status_email_trigger($order_id, $order, $old_status, $new_status);
|
1800 |
WC()->mailer()->emails['WC_Email_Customer_Delivered_Order']->trigger( $order_id, $order );
|
1801 |
}
|
1802 |
+
|
1803 |
/*
|
1804 |
* update preview order id in customizer
|
1805 |
*/
|
1814 |
set_theme_mod('wcast_preview_order_id', $_POST['wcast_preview_order_id']);
|
1815 |
exit;
|
1816 |
}
|
1817 |
+
|
1818 |
/*
|
1819 |
* update delivered order email status
|
1820 |
*/
|
1828 |
update_option( 'woocommerce_customer_delivered_order_settings', $opt );
|
1829 |
exit;
|
1830 |
}
|
1831 |
+
|
1832 |
/*
|
1833 |
* update all shipment status email status
|
1834 |
*/
|
1836 |
set_theme_mod($_POST['id'], $_POST['wcast_enable_status_email']);
|
1837 |
exit;
|
1838 |
}
|
1839 |
+
|
1840 |
/*
|
1841 |
* Change completed order email title to Shipped Order
|
1842 |
*/
|
1854 |
}
|
1855 |
return $email_title;
|
1856 |
}
|
1857 |
+
|
1858 |
/*
|
1859 |
* Add action button in order list to change order status from completed to delivered
|
1860 |
*/
|
1861 |
public function add_delivered_order_status_actions_button($actions, $order){
|
1862 |
+
|
1863 |
+
wp_enqueue_style( 'shipment_tracking_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
|
1864 |
+
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);
|
1865 |
+
|
1866 |
$wc_ast_status_delivered = get_option('wc_ast_status_delivered');
|
1867 |
if($wc_ast_status_delivered){
|
1868 |
if ( $order->has_status( array( 'completed' ) ) ) {
|
1883 |
);
|
1884 |
return $actions;
|
1885 |
}
|
1886 |
+
|
1887 |
/*
|
1888 |
* Add delivered action button in preview order list to change order status from completed to delivered
|
1889 |
*/
|
1914 |
return $actions;
|
1915 |
}
|
1916 |
|
1917 |
+
/*
|
1918 |
+
* filter shipping providers by stats
|
1919 |
+
*/
|
1920 |
public function filter_shipiing_provider_by_status_fun(){
|
1921 |
$status = $_POST['status'];
|
1922 |
global $wpdb;
|
1937 |
echo $html;exit;
|
1938 |
}
|
1939 |
|
1940 |
+
/*
|
1941 |
+
* Get providers list html
|
1942 |
+
*/
|
1943 |
public function get_provider_html($default_shippment_providers,$status){
|
1944 |
$WC_Countries = new WC_Countries();
|
1945 |
?>
|
2013 |
</div>
|
2014 |
<?php
|
2015 |
}
|
2016 |
+
|
2017 |
/*
|
2018 |
* Update shipment provider status
|
2019 |
*/
|
2029 |
exit;
|
2030 |
}
|
2031 |
|
2032 |
+
/**
|
2033 |
+
* update default provider function
|
2034 |
+
*/
|
2035 |
function update_default_provider_fun(){
|
2036 |
if($_POST['checked'] == 1){
|
2037 |
update_option("wc_ast_default_provider", $_POST['default_provider'] );
|
2041 |
exit;
|
2042 |
}
|
2043 |
|
2044 |
+
/**
|
2045 |
+
* Add custom shipping provider function
|
2046 |
+
*/
|
2047 |
function add_custom_shipment_provider_fun(){
|
2048 |
|
2049 |
global $wpdb;
|
2087 |
echo $html;exit;
|
2088 |
}
|
2089 |
|
2090 |
+
/**
|
2091 |
+
* Get shipping provider details fun
|
2092 |
+
*/
|
2093 |
public function get_provider_details_fun(){
|
2094 |
$id = $_POST['provider_id'];
|
2095 |
global $wpdb;
|
2098 |
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;
|
2099 |
}
|
2100 |
|
2101 |
+
/**
|
2102 |
+
* Update custom shipping provider and returen html of it
|
2103 |
+
*/
|
2104 |
public function update_custom_shipment_provider_fun(){
|
2105 |
|
2106 |
global $wpdb;
|
2121 |
echo $html;exit;
|
2122 |
}
|
2123 |
|
2124 |
+
/**
|
2125 |
+
* Update bulk status of providers to active
|
2126 |
+
*/
|
2127 |
public function update_provider_status_active_fun(){
|
2128 |
global $wpdb;
|
2129 |
$data_array = array(
|
2139 |
exit;
|
2140 |
}
|
2141 |
|
2142 |
+
/**
|
2143 |
+
* Update bulk status of providers to inactive
|
2144 |
+
*/
|
2145 |
public function update_provider_status_inactive_fun(){
|
2146 |
global $wpdb;
|
2147 |
$data_array = array(
|
2158 |
exit;
|
2159 |
}
|
2160 |
|
2161 |
+
/**
|
2162 |
+
* Synch provider function
|
2163 |
+
*/
|
2164 |
public function sync_providers_fun(){
|
2165 |
global $wpdb;
|
2166 |
|
2275 |
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;
|
2276 |
}
|
2277 |
|
2278 |
+
/**
|
2279 |
+
* Output html of added provider from sync providers
|
2280 |
+
*/
|
2281 |
public function added_html($added_data){ ?>
|
2282 |
<ul class="updated_details" id="added_providers">
|
2283 |
<?php
|
2290 |
<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>
|
2291 |
<?php }
|
2292 |
|
2293 |
+
/**
|
2294 |
+
* Output html of updated provider from sync providers
|
2295 |
+
*/
|
2296 |
public function updated_html($updated_data){ ?>
|
2297 |
<ul class="updated_details" id="updated_providers">
|
2298 |
<?php
|
2305 |
<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>
|
2306 |
<?php }
|
2307 |
|
2308 |
+
/**
|
2309 |
+
* Output html of deleted provider from sync providers
|
2310 |
+
*/
|
2311 |
public function deleted_html($deleted_data){ ?>
|
2312 |
<ul class="updated_details" id="deleted_providers">
|
2313 |
<?php
|
2318 |
</ul>
|
2319 |
<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>
|
2320 |
<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>
|
2321 |
+
<?php }
|
2322 |
+
|
2323 |
/**
|
2324 |
* Add bulk filter for Shipment status in orders list
|
2325 |
*
|
2336 |
'unknown' => (object) array( 'count' => $count['unknown'], 'term' => __( 'Unknown', 'woo-advanced-shipment-tracking' ) ),
|
2337 |
'pre_transit' => (object) array( 'count' => $count['pre_transit'],'term' => __( 'Pre Transit', 'woo-advanced-shipment-tracking' ) ),
|
2338 |
'in_transit' => (object) array( 'count' => $count['in_transit'],'term' => __( 'In Transit', 'woo-advanced-shipment-tracking' ) ),
|
2339 |
+
'available_for_pickup' => (object) array( 'count' => $count['available_for_pickup'],'term' => __( 'Available For Pickup', 'woo-advanced-shipment-tracking' ) ),
|
2340 |
+
'out_for_delivery' => (object) array( 'count' => $count['out_for_delivery'],'term' => __( 'Out For Delivery', 'woo-advanced-shipment-tracking' ) ),
|
2341 |
'delivered' => (object) array( 'count' => $count['delivered'],'term' => __( 'Delivered', 'woo-advanced-shipment-tracking' ) ),
|
2342 |
'failed_attempt' => (object) array( 'count' => $count['failed_attempt'],'term' => __( 'Failed Attempt', 'woo-advanced-shipment-tracking' ) ),
|
2343 |
+
'cancelled' => (object) array( 'count' => $count['cancelled'],'term' => __( 'Cancelled', 'woocommerce' ) ),
|
2344 |
'carrier_unsupported' => (object) array( 'count' => $count['carrier_unsupported'],'term' => __( 'Carrier Unsupported', 'woo-advanced-shipment-tracking' ) ),
|
2345 |
'return_to_sender' => (object) array( 'count' => $count['return_to_sender'],'term' => __( 'Return To Sender', 'woo-advanced-shipment-tracking' ) ),
|
2346 |
'INVALID_TRACKING_NUM' => (object) array( 'count' => $count['invalid_tracking_number'],'term' => __( 'Invalid Tracking Number', 'woo-advanced-shipment-tracking' ) ),
|
2438 |
* Add a new dashboard widget.
|
2439 |
*/
|
2440 |
public function ast_add_dashboard_widgets() {
|
2441 |
+
wp_add_dashboard_widget( 'trackship_dashboard_widget', 'Tracking Analytics <small>(last 30 days)</small>', array( $this, 'dashboard_widget_function') );
|
2442 |
}
|
2443 |
/**
|
2444 |
* Output the contents of the dashboard widget
|
2445 |
*/
|
2446 |
+
public function dashboard_widget_function( $post, $callback_args ) {
|
2447 |
+
|
2448 |
+
wp_enqueue_script( 'amcharts');
|
2449 |
+
wp_enqueue_script( 'amcharts-light-theme');
|
2450 |
+
|
2451 |
+
// Get orders completed.
|
2452 |
+
$args = array(
|
2453 |
+
//'status' => 'wc-completed',
|
2454 |
+
'limit' => -1,
|
2455 |
+
'date_created' => '>' . ( time() - 2592000 ),
|
2456 |
+
);
|
2457 |
+
$orders = wc_get_orders( $args );
|
2458 |
+
$shipment_trackers = 0;
|
2459 |
+
$shipment_status_merge = array();
|
2460 |
+
$tracking_item_merge = array();
|
2461 |
+
foreach($orders as $order){
|
2462 |
+
$order_id = $order->get_id();
|
2463 |
+
|
2464 |
+
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
2465 |
+
$tracking_items = $ast->get_tracking_items( $order_id, true );
|
2466 |
+
|
2467 |
+
if($tracking_items){
|
2468 |
+
$shipment_status = get_post_meta( $order_id, "shipment_status", true);
|
2469 |
+
$shipment_status_merge = array_merge($shipment_status_merge, $shipment_status);
|
2470 |
+
foreach ( $tracking_items as $key => $tracking_item ) {
|
2471 |
+
if( isset($shipment_status[$key]) ){
|
2472 |
+
|
2473 |
+
$tracking_item_merge[] = $tracking_item;
|
2474 |
+
$shipment_trackers++;
|
2475 |
+
}
|
2476 |
+
}
|
2477 |
+
}
|
2478 |
+
}
|
2479 |
+
|
2480 |
+
//echo '<pre>';print_r($tracking_item_merge);echo '</pre>';
|
2481 |
+
$shipment_status_arr = array();
|
2482 |
+
|
2483 |
+
foreach ($shipment_status_merge as $key => $item) {
|
2484 |
+
$shipment_status_arr[$item['status']][$key] = $item;
|
2485 |
+
}
|
2486 |
+
|
2487 |
+
$tracking_provider_arr = array();
|
2488 |
+
|
2489 |
+
foreach ($tracking_item_merge as $key => $item) {
|
2490 |
+
$tracking_provider_arr[$item['formatted_tracking_provider']][$key] = $item;
|
2491 |
+
}
|
2492 |
+
|
2493 |
+
ksort($shipment_status_arr, SORT_NUMERIC);
|
2494 |
+
ksort($tracking_provider_arr, SORT_NUMERIC);
|
2495 |
+
|
2496 |
+
|
2497 |
+
|
2498 |
+
?>
|
2499 |
+
<script type="text/javascript">
|
2500 |
+
AmCharts.makeChart("ast_dashboard_status_chart",
|
2501 |
+
{
|
2502 |
+
"type": "serial",
|
2503 |
+
"categoryField": "shipment_status",
|
2504 |
+
"startDuration": 1,
|
2505 |
+
"handDrawScatter": 4,
|
2506 |
+
"theme": "light",
|
2507 |
+
"categoryAxis": {
|
2508 |
+
"autoRotateAngle": 61.2,
|
2509 |
+
"autoRotateCount": 0,
|
2510 |
+
"autoWrap": true,
|
2511 |
+
"gridPosition": "start",
|
2512 |
+
"minHorizontalGap": 10,
|
2513 |
+
"offset": 1
|
2514 |
+
},
|
2515 |
+
"trendLines": [],
|
2516 |
+
"graphs": [
|
2517 |
+
{
|
2518 |
+
"balloonText": " [[shipment_status]] : [[value]]",
|
2519 |
+
"bulletBorderThickness": 7,
|
2520 |
+
"colorField": "color",
|
2521 |
+
"fillAlphas": 1,
|
2522 |
+
"id": "AmGraph-1",
|
2523 |
+
"lineColorField": "color",
|
2524 |
+
"title": "graph 1",
|
2525 |
+
"type": "column",
|
2526 |
+
"valueField": "count"
|
2527 |
+
}
|
2528 |
+
],
|
2529 |
+
"guides": [],
|
2530 |
+
"valueAxes": [
|
2531 |
+
{
|
2532 |
+
"id": "ValueAxis-1",
|
2533 |
+
"title": ""
|
2534 |
+
}
|
2535 |
+
],
|
2536 |
+
"allLabels": [],
|
2537 |
+
"balloon": {},
|
2538 |
+
"titles": [
|
2539 |
+
{
|
2540 |
+
"id": "Title-1",
|
2541 |
+
"size": 15,
|
2542 |
+
"text": ""
|
2543 |
+
}
|
2544 |
+
],
|
2545 |
+
"dataProvider": [
|
2546 |
+
<?php
|
2547 |
+
foreach($shipment_status_arr as $status => $array){ ?>
|
2548 |
+
{
|
2549 |
+
"shipment_status": "<?php echo apply_filters("trackship_status_filter",$status); ?>",
|
2550 |
+
"count": <?php echo count($array); ?>,
|
2551 |
+
"color": "#BBE285",
|
2552 |
+
},
|
2553 |
+
<?php
|
2554 |
+
} ?>
|
2555 |
+
]
|
2556 |
+
}
|
2557 |
+
);
|
2558 |
+
</script>
|
2559 |
+
<script type="text/javascript">
|
2560 |
+
AmCharts.makeChart("ast_dashboard_providers_chart",
|
2561 |
+
{
|
2562 |
+
"type": "serial",
|
2563 |
+
"categoryField": "shipment_provider",
|
2564 |
+
"startDuration": 1,
|
2565 |
+
"handDrawScatter": 4,
|
2566 |
+
"theme": "light",
|
2567 |
+
"categoryAxis": {
|
2568 |
+
"autoRotateAngle": 61.2,
|
2569 |
+
"autoRotateCount": 0,
|
2570 |
+
"autoWrap": true,
|
2571 |
+
"gridPosition": "start",
|
2572 |
+
"minHorizontalGap": 10,
|
2573 |
+
"offset": 1
|
2574 |
+
},
|
2575 |
+
"trendLines": [],
|
2576 |
+
"graphs": [
|
2577 |
+
{
|
2578 |
+
"balloonText": " [[shipment_provider]] : [[value]]",
|
2579 |
+
"bulletBorderThickness": 7,
|
2580 |
+
"colorField": "color",
|
2581 |
+
"fillAlphas": 1,
|
2582 |
+
"id": "AmGraph-1",
|
2583 |
+
"lineColorField": "color",
|
2584 |
+
"title": "graph 1",
|
2585 |
+
"type": "column",
|
2586 |
+
"valueField": "count"
|
2587 |
+
}
|
2588 |
+
],
|
2589 |
+
"guides": [],
|
2590 |
+
"valueAxes": [
|
2591 |
+
{
|
2592 |
+
"id": "ValueAxis-1",
|
2593 |
+
"title": ""
|
2594 |
+
}
|
2595 |
+
],
|
2596 |
+
"allLabels": [],
|
2597 |
+
"balloon": {},
|
2598 |
+
"titles": [
|
2599 |
+
{
|
2600 |
+
"id": "Title-1",
|
2601 |
+
"size": 15,
|
2602 |
+
"text": ""
|
2603 |
+
}
|
2604 |
+
],
|
2605 |
+
"dataProvider": [
|
2606 |
+
<?php
|
2607 |
+
foreach($tracking_provider_arr as $provider => $array){ ?>
|
2608 |
+
{
|
2609 |
+
"shipment_provider": "<?php echo $provider; ?>",
|
2610 |
+
"count": <?php echo count($array); ?>,
|
2611 |
+
"color": "#BBE285",
|
2612 |
+
},
|
2613 |
+
<?php
|
2614 |
+
} ?>
|
2615 |
+
]
|
2616 |
+
}
|
2617 |
+
);
|
2618 |
+
</script>
|
2619 |
+
<div class="ast-dashborad-widget">
|
2620 |
+
|
2621 |
+
<input id="tab_s_providers" type="radio" name="tabs" class="widget_tab_input" checked>
|
2622 |
+
<label for="tab_s_providers" class="widget_tab_label first_label"><?php _e('Shipment Providers', 'woo-advanced-shipment-tracking'); ?></label>
|
2623 |
+
|
2624 |
+
<input id="tab_s_status" type="radio" name="tabs" class="widget_tab_input">
|
2625 |
+
<label for="tab_s_status" class="widget_tab_label"><?php _e('Shipment Status', 'woo-advanced-shipment-tracking'); ?></label>
|
2626 |
+
|
2627 |
+
<section id="content_s_providers" class="widget_tab_section">
|
2628 |
+
<?php if($tracking_provider_arr){ ?>
|
2629 |
+
<div id="ast_dashboard_providers_chart" class="" style="width: 100%;height: 300px;"></div>
|
2630 |
+
<?php } else{ ?>
|
2631 |
+
<p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
|
2632 |
+
<?php } ?>
|
2633 |
+
</section>
|
2634 |
+
|
2635 |
+
<section id="content_s_status" class="widget_tab_section">
|
2636 |
+
<?php if($shipment_status_arr){ ?>
|
2637 |
+
<div id="ast_dashboard_status_chart" class="" style="width: 100%;height: 300px;"></div>
|
2638 |
+
<?php } else{ ?>
|
2639 |
+
<p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
|
2640 |
+
<?php } ?>
|
2641 |
+
</section>
|
2642 |
+
|
2643 |
+
</div>
|
2644 |
+
<div class="widget_footer">
|
2645 |
+
<a class="" href="https://my.trackship.info/analytics/" target="blank"><?php _e( 'View More Details In Trackship','woo-advanced-shipment-tracking' ); ?></a>
|
2646 |
</div>
|
2647 |
<?php }
|
2648 |
}
|
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 |
*/
|
@@ -58,264 +61,183 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
58 |
add_action( 'wp_ajax_get_tracking_info', array( $this, 'get_tracking_info_fun') );
|
59 |
|
60 |
}
|
61 |
-
|
|
|
|
|
|
|
62 |
public function front_styles(){
|
63 |
wp_enqueue_script( 'front-js', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/front.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
|
64 |
wp_localize_script( 'front-js', 'zorem_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) );
|
65 |
|
66 |
wp_enqueue_style( 'front_style', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/front.css', array(), wc_advanced_shipment_tracking()->version );
|
67 |
}
|
68 |
-
public function woo_track_order_function(){
|
69 |
-
global $wpdb;
|
70 |
-
$wc_ast_api_key = get_option('wc_ast_api_key');
|
71 |
-
$primary_color = get_option('wc_ast_select_primary_color');
|
72 |
-
$success_color = get_option('wc_ast_select_success_color');
|
73 |
-
$warning_color = get_option('wc_ast_select_warning_color');
|
74 |
-
$border_color = get_option('wc_ast_select_border_color');
|
75 |
-
$hide_tracking_events = get_option('wc_ast_hide_tracking_events');
|
76 |
-
?>
|
77 |
-
<style>
|
78 |
|
79 |
-
|
80 |
-
.bg-secondary{
|
81 |
-
background-color:<?php echo $primary_color; ?> !important;
|
82 |
-
}
|
83 |
-
.tracker-progress-bar-with-dots .secondary .dot {
|
84 |
-
border-color: <?php echo $primary_color; ?>;
|
85 |
-
}
|
86 |
-
.text-secondary{
|
87 |
-
color: <?php echo $primary_color; ?> !important;
|
88 |
-
}
|
89 |
-
.progress-bar.bg-secondary:before{
|
90 |
-
background-color: <?php echo $primary_color; ?>;
|
91 |
-
}
|
92 |
-
.tracking-number{
|
93 |
-
color: <?php echo $primary_color; ?> !important;
|
94 |
-
}
|
95 |
-
.view_table_rows,.hide_table_rows{
|
96 |
-
color: <?php echo $primary_color; ?> !important;
|
97 |
-
}
|
98 |
-
<?php } ?>
|
99 |
-
<?php if($border_color){ ?>
|
100 |
-
.col.tracking-detail{
|
101 |
-
border: 1px solid <?php echo $border_color; ?>;
|
102 |
-
}
|
103 |
-
<?php } ?>
|
104 |
-
</style>
|
105 |
-
<?php
|
106 |
-
if(!$wc_ast_api_key){
|
107 |
-
return;
|
108 |
-
}
|
109 |
-
if(isset($_GET['order_id']) && isset($_GET['order_key'])){
|
110 |
-
$order_id = $_GET['order_id'];
|
111 |
-
$order = new WC_Order( $order_id );
|
112 |
-
$order_key = $order->get_order_key();
|
113 |
-
if($order_key != $_GET['order_key']){
|
114 |
-
return;
|
115 |
-
}
|
116 |
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
$
|
122 |
-
|
123 |
-
|
124 |
-
|
|
|
|
|
|
|
|
|
|
|
125 |
}
|
126 |
-
|
127 |
-
|
128 |
}
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
<?php
|
135 |
-
if(!isset($order_id)){
|
136 |
-
ob_start();
|
137 |
-
?>
|
138 |
-
<div class="track-order-section">
|
139 |
-
<form method="post" class="order_track_form">
|
140 |
-
<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>
|
141 |
-
<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>
|
142 |
-
<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>
|
143 |
-
<div class="clear"></div>
|
144 |
-
<input type="hidden" name="action" value="get_tracking_info">
|
145 |
-
<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>
|
146 |
-
<div class="track_fail_msg" style="display:none;color: red;"></div>
|
147 |
-
</form>
|
148 |
-
</div>
|
149 |
-
<?php
|
150 |
-
$form = ob_get_clean();
|
151 |
-
return $form;
|
152 |
-
} else{
|
153 |
-
ob_start();
|
154 |
-
if ( is_plugin_active( 'custom-order-numbers-for-woocommerce/custom-order-numbers-for-woocommerce.php' ) ) {
|
155 |
-
$alg_wc_custom_order_numbers_enabled = get_option('alg_wc_custom_order_numbers_enabled');
|
156 |
-
if($alg_wc_custom_order_numbers_enabled == 'yes'){
|
157 |
-
$args = array(
|
158 |
-
'post_type' => 'shop_order',
|
159 |
-
'posts_per_page' => '1',
|
160 |
-
'meta_query' => array(
|
161 |
-
'relation' => 'AND',
|
162 |
-
array(
|
163 |
-
'key' => '_alg_wc_custom_order_number',
|
164 |
-
'value' => $order_id
|
165 |
-
),
|
166 |
-
),
|
167 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
168 |
-
);
|
169 |
-
$posts = get_posts( $args );
|
170 |
-
$my_query = new WP_Query( $args );
|
171 |
-
|
172 |
-
if( $my_query->have_posts() ) {
|
173 |
-
while( $my_query->have_posts()) {
|
174 |
-
$my_query->the_post();
|
175 |
-
if(get_the_ID()){
|
176 |
-
$order_id = get_the_ID();
|
177 |
-
}
|
178 |
-
} // end while
|
179 |
-
} // end if
|
180 |
-
wp_reset_postdata();
|
181 |
-
}
|
182 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
|
184 |
-
|
185 |
-
|
186 |
-
$s_order_id = wc_sequential_order_numbers()->find_order_by_order_number( $order_id );
|
187 |
-
if($s_order_id){
|
188 |
-
$order_id = $s_order_id;
|
189 |
}
|
190 |
-
}
|
191 |
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
'value' => $order_id
|
203 |
-
),
|
204 |
-
),
|
205 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
206 |
-
);
|
207 |
-
$posts = get_posts( $args );
|
208 |
-
$my_query = new WP_Query( $args );
|
209 |
-
|
210 |
-
if( $my_query->have_posts() ) {
|
211 |
-
while( $my_query->have_posts()) {
|
212 |
-
$my_query->the_post();
|
213 |
-
if(get_the_ID()){
|
214 |
-
$order_id = get_the_ID();
|
215 |
-
}
|
216 |
-
} // end while
|
217 |
-
} // end if
|
218 |
-
wp_reset_postdata();
|
219 |
-
}
|
220 |
-
}
|
221 |
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
'posts_per_page' => '1',
|
226 |
-
'meta_query' => array(
|
227 |
-
'relation' => 'AND',
|
228 |
-
array(
|
229 |
-
'key' => '_ebay_extended_order_id',
|
230 |
-
'value' => $order_id
|
231 |
-
),
|
232 |
-
),
|
233 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
234 |
-
);
|
235 |
-
$posts = get_posts( $args );
|
236 |
-
$my_query = new WP_Query( $args );
|
237 |
|
238 |
-
if( $my_query->have_posts() ) {
|
239 |
-
while( $my_query->have_posts()) {
|
240 |
-
$my_query->the_post();
|
241 |
-
if(get_the_ID()){
|
242 |
-
$order_id = get_the_ID();
|
243 |
-
}
|
244 |
-
} // end while
|
245 |
-
} // end if
|
246 |
-
wp_reset_postdata();
|
247 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
-
$
|
250 |
-
|
251 |
|
252 |
-
|
|
|
|
|
|
|
|
|
253 |
|
254 |
-
|
255 |
-
|
256 |
-
$tracking_provider = $item['tracking_provider'];
|
257 |
-
$results = $wpdb->get_row( "SELECT * FROM {$this->table} WHERE ts_slug= '{$tracking_provider}'");
|
258 |
-
$tracking_provider = $results->provider_name;
|
259 |
-
|
260 |
-
/*** Update in 2.4.1
|
261 |
-
* Change URL
|
262 |
-
* Add User Key
|
263 |
-
***/
|
264 |
-
$url = $trackship_url.'/wp-json/tracking/get_tracking_info';
|
265 |
-
$args['body'] = array(
|
266 |
-
'tracking_number' => $tracking_number,
|
267 |
-
'order_id' => $order_id,
|
268 |
-
'domain' => get_home_url(),
|
269 |
-
'user_key' => $wc_ast_api_key,
|
270 |
-
);
|
271 |
-
$response = wp_remote_post( $url, $args );
|
272 |
-
$data = $response['body'];
|
273 |
-
$decoded_data = json_decode($data);
|
274 |
-
|
275 |
-
$tracker = new \stdClass();
|
276 |
-
$tracker->ep_status = '';
|
277 |
-
if(!empty($decoded_data)){
|
278 |
-
$tracker = $decoded_data[0];
|
279 |
-
}
|
280 |
|
281 |
-
$
|
282 |
-
$trackind_detail_by_status_rev = '';
|
283 |
|
284 |
-
|
285 |
-
$
|
286 |
-
$
|
287 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
|
289 |
if(!empty($decoded_data)){
|
290 |
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
|
296 |
-
|
297 |
-
|
298 |
-
$
|
299 |
-
|
300 |
-
$
|
301 |
-
|
302 |
-
$
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
?>
|
309 |
|
310 |
-
|
311 |
<?php if($total_trackings > 1 ){ ?>
|
312 |
<p class="shipment_heading"><?php
|
313 |
echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
|
314 |
<?php } ?>
|
315 |
<div class="tracking-header">
|
316 |
<div class="col-md col-md-6">
|
317 |
-
<?php _e( 'Order
|
318 |
-
<?php echo $tracking_provider; ?>: <span class="tracking-number"><?php echo $tracker->tracking_code; ?></span>
|
319 |
<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>
|
320 |
</div>
|
321 |
<div class="col-md col-md-6">
|
@@ -333,7 +255,7 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
333 |
</div>
|
334 |
</div>
|
335 |
<?php
|
336 |
-
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'){
|
337 |
|
338 |
}
|
339 |
elseif(isset($tracker->ep_status)){ ?>
|
@@ -434,169 +356,85 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
434 |
</div>
|
435 |
<?php } ?>
|
436 |
<?php if( !empty($trackind_detail_by_status_rev) && $hide_tracking_events != 1 ){ ?>
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
<?php } ?>
|
463 |
-
|
464 |
<?php } else{ ?>
|
465 |
<div class="tracking-detail col">
|
466 |
<h1 class="shipment_status_heading text-secondary text-center"><?php _e( 'Tracking # '.$tracking_number, 'woo-advanced-shipment-tracking' ); ?></h1>
|
467 |
-
<h3 class="text-center"><?php _e( '
|
468 |
</div>
|
469 |
<?php }
|
470 |
$num++;
|
471 |
}
|
|
|
472 |
$remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
|
|
|
473 |
if($remove_trackship_branding != 1){ ?>
|
474 |
<div class="trackship_branding">
|
475 |
<p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
|
476 |
</div>
|
477 |
-
<?php }
|
478 |
-
|
479 |
$form = ob_get_clean();
|
480 |
-
return $form;
|
481 |
-
}
|
|
|
482 |
|
483 |
public function get_tracking_info_fun(){
|
|
|
484 |
global $wpdb;
|
485 |
$wc_ast_api_key = get_option('wc_ast_api_key');
|
486 |
$hide_tracking_events = get_option('wc_ast_hide_tracking_events');
|
|
|
487 |
if(!$wc_ast_api_key){
|
488 |
return;
|
489 |
}
|
|
|
490 |
$order_id = $_POST['order_id'];
|
491 |
|
492 |
$email = $_POST['order_email'];
|
493 |
-
if ( is_plugin_active( 'custom-order-numbers-for-woocommerce/custom-order-numbers-for-woocommerce.php' ) ) {
|
494 |
-
$alg_wc_custom_order_numbers_enabled = get_option('alg_wc_custom_order_numbers_enabled');
|
495 |
-
if($alg_wc_custom_order_numbers_enabled == 'yes'){
|
496 |
-
$args = array(
|
497 |
-
'post_type' => 'shop_order',
|
498 |
-
'posts_per_page' => '1',
|
499 |
-
'meta_query' => array(
|
500 |
-
'relation' => 'AND',
|
501 |
-
array(
|
502 |
-
'key' => '_alg_wc_custom_order_number',
|
503 |
-
'value' => $order_id
|
504 |
-
),
|
505 |
-
),
|
506 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
507 |
-
);
|
508 |
-
$posts = get_posts( $args );
|
509 |
-
$my_query = new WP_Query( $args );
|
510 |
-
|
511 |
-
if( $my_query->have_posts() ) {
|
512 |
-
while( $my_query->have_posts()) {
|
513 |
-
$my_query->the_post();
|
514 |
-
if(get_the_ID()){
|
515 |
-
$order_id = get_the_ID();
|
516 |
-
}
|
517 |
-
} // end while
|
518 |
-
} // end if
|
519 |
-
wp_reset_postdata();
|
520 |
-
}
|
521 |
-
}
|
522 |
|
523 |
-
|
524 |
-
|
525 |
-
$s_order_id = wc_sequential_order_numbers()->find_order_by_order_number( $order_id );
|
526 |
-
if($s_order_id){
|
527 |
-
$order_id = $s_order_id;
|
528 |
-
}
|
529 |
-
}
|
530 |
-
|
531 |
-
if ( is_plugin_active( 'wp-lister-amazon/wp-lister-amazon.php' ) ) {
|
532 |
-
$wpla_use_amazon_order_number = get_option( 'wpla_use_amazon_order_number' );
|
533 |
-
if($wpla_use_amazon_order_number == 1){
|
534 |
-
$args = array(
|
535 |
-
'post_type' => 'shop_order',
|
536 |
-
'posts_per_page' => '1',
|
537 |
-
'meta_query' => array(
|
538 |
-
'relation' => 'AND',
|
539 |
-
array(
|
540 |
-
'key' => '_wpla_amazon_order_id',
|
541 |
-
'value' => $order_id
|
542 |
-
),
|
543 |
-
),
|
544 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
545 |
-
);
|
546 |
-
$posts = get_posts( $args );
|
547 |
-
$my_query = new WP_Query( $args );
|
548 |
-
|
549 |
-
if( $my_query->have_posts() ) {
|
550 |
-
while( $my_query->have_posts()) {
|
551 |
-
$my_query->the_post();
|
552 |
-
if(get_the_ID()){
|
553 |
-
$order_id = get_the_ID();
|
554 |
-
}
|
555 |
-
} // end while
|
556 |
-
} // end if
|
557 |
-
wp_reset_postdata();
|
558 |
-
}
|
559 |
-
}
|
560 |
-
|
561 |
-
if ( is_plugin_active( 'wp-lister/wp-lister.php' ) || is_plugin_active( 'wp-lister-for-ebay/wp-lister.php' )) {
|
562 |
-
|
563 |
-
$args = array(
|
564 |
-
'post_type' => 'shop_order',
|
565 |
-
'posts_per_page' => '1',
|
566 |
-
'meta_query' => array(
|
567 |
-
'relation' => 'AND',
|
568 |
-
array(
|
569 |
-
'key' => '_ebay_extended_order_id',
|
570 |
-
'value' => $order_id
|
571 |
-
),
|
572 |
-
),
|
573 |
-
'post_status' => array('wc-pending', 'wc-processing', 'wc-on-hold', 'wc-completed', 'wc-delivered', 'wc-cancelled', 'wc-refunded', 'wc-failed','wc-bit-payment') ,
|
574 |
-
);
|
575 |
-
$posts = get_posts( $args );
|
576 |
-
|
577 |
-
$my_query = new WP_Query( $args );
|
578 |
-
|
579 |
-
if( $my_query->have_posts() ) {
|
580 |
-
while( $my_query->have_posts()) {
|
581 |
-
$my_query->the_post();
|
582 |
-
if(get_the_ID()){
|
583 |
-
$order_id = get_the_ID();
|
584 |
-
}
|
585 |
-
} // end while
|
586 |
-
} // end if
|
587 |
-
wp_reset_postdata();
|
588 |
-
}
|
589 |
|
590 |
if(!get_post_status( $order_id )){
|
591 |
echo '';
|
592 |
exit;
|
593 |
}
|
|
|
594 |
$order = new WC_Order( $order_id );
|
595 |
$order_email = $order->get_billing_email();
|
|
|
596 |
if($order_email != $email){
|
597 |
echo '';
|
598 |
exit;
|
599 |
}
|
|
|
600 |
if ( version_compare( WC_VERSION, '3.0', '<' ) ) {
|
601 |
$tracking_items = get_post_meta( $order_id, '_wc_shipment_tracking_items', true );
|
602 |
$order_key = get_post_meta( $order_id, 'order_key', true );
|
@@ -605,80 +443,85 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
605 |
$tracking_items = $order->get_meta( '_wc_shipment_tracking_items', true );
|
606 |
$order_key = $order->order_key;
|
607 |
}
|
|
|
608 |
if(!$tracking_items){
|
609 |
echo 'tracking_items_not_found';
|
610 |
exit;
|
611 |
}
|
612 |
-
?>
|
613 |
|
614 |
-
<?php
|
615 |
$num = 1;
|
616 |
$total_trackings = sizeof($tracking_items);
|
617 |
-
foreach($tracking_items as $item){
|
618 |
-
$tracking_number = $item['tracking_number'];
|
619 |
-
$trackship_url = 'https://trackship.info';
|
620 |
-
$tracking_provider = $item['tracking_provider'];
|
621 |
-
$results = $wpdb->get_row( "SELECT * FROM {$this->table} WHERE ts_slug= '{$tracking_provider}'");
|
622 |
-
$tracking_provider = $results->provider_name;
|
623 |
-
/*** Update in 2.4.1
|
624 |
-
* Change URL
|
625 |
-
* Add User Key
|
626 |
-
***/
|
627 |
-
$url = $trackship_url.'/wp-json/tracking/get_tracking_info';
|
628 |
-
$args['body'] = array(
|
629 |
-
'tracking_number' => $tracking_number,
|
630 |
-
'order_id' => $order_id,
|
631 |
-
'domain' => get_home_url(),
|
632 |
-
'user_key' => $wc_ast_api_key,
|
633 |
-
);
|
634 |
-
|
635 |
-
$response = wp_remote_post( $url, $args );
|
636 |
-
|
637 |
-
$data = $response['body'];
|
638 |
-
$decoded_data = json_decode($data);
|
639 |
-
|
640 |
-
$tracker->ep_status = '';
|
641 |
-
|
642 |
-
$tracker = $decoded_data[0];
|
643 |
-
|
644 |
-
$tracking_detail_org = '';
|
645 |
-
$trackind_detail_by_status_rev = '';
|
646 |
-
|
647 |
-
if(!$tracker){
|
648 |
-
header("Status: 404 Not Found");
|
649 |
-
exit;
|
650 |
-
}
|
651 |
|
652 |
-
$
|
653 |
-
|
654 |
-
$
|
655 |
-
$
|
656 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
|
658 |
-
|
659 |
-
if($tracker->ep_status == "return_to_sender" ){
|
660 |
-
$state2_class = 'return_to_sender';
|
661 |
-
} elseif($tracker->ep_status == "failure"){
|
662 |
-
$state2_class = 'failure';
|
663 |
-
} elseif($tracker->ep_status == "available_for_pickup"){
|
664 |
-
$state2_class = 'available_for_pickup';
|
665 |
-
} else{
|
666 |
-
$state2_class = 'out_for_delivery';
|
667 |
-
}
|
668 |
-
$unixTimestamp = strtotime($decoded_data[0]->est_delivery_date);
|
669 |
-
//Get the day of the week using PHP's date function.
|
670 |
-
$day = date("l", $unixTimestamp);
|
671 |
-
if($decoded_data){
|
672 |
-
?>
|
673 |
-
<div class="tracking-detail col">
|
674 |
<?php if($total_trackings > 1 ){ ?>
|
675 |
<p class="shipment_heading"><?php
|
676 |
echo sprintf(__("Shipment - %s (out of %s)", 'woo-advanced-shipment-tracking'), $num , $total_trackings); ?></p>
|
677 |
<?php } ?>
|
678 |
<div class="tracking-header">
|
679 |
<div class="col-md col-md-6">
|
680 |
-
<?php _e( 'Order
|
681 |
-
<?php echo $tracking_provider; ?>: <span class="tracking-number"><?php echo $tracker->tracking_code; ?></span>
|
682 |
<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>
|
683 |
</div>
|
684 |
<div class="col-md col-md-6">
|
@@ -696,7 +539,9 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
696 |
</div>
|
697 |
</div>
|
698 |
<?php
|
|
|
699 |
if(isset($tracker->ep_status)){ ?>
|
|
|
700 |
<div class="status-section desktop-section">
|
701 |
<div class="tracker-progress-bar tracker-progress-bar-with-dots">
|
702 |
<div class="progress">
|
@@ -792,58 +637,67 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
792 |
</div>
|
793 |
</div>
|
794 |
</div>
|
795 |
-
<?php }
|
796 |
-
<?php if( !empty($trackind_detail_by_status_rev) && $hide_tracking_events != 1 ){ ?>
|
797 |
-
<div class="shipment_progress_div">
|
798 |
-
<div class="shipment_progress_heading_div">
|
799 |
-
<h4 class="tracking-number h4-heading" style=""><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
|
800 |
-
</div>
|
801 |
-
<table class="tracking-table">
|
802 |
-
<tbody>
|
803 |
-
<?php
|
804 |
-
$i=0;
|
805 |
-
foreach($trackind_detail_by_status_rev as $key=>$status_detail){ ?>
|
806 |
-
<tr>
|
807 |
-
<td><?php echo date_i18n( get_option( 'date_format' ), strtotime($status_detail->datetime) ); ?>
|
808 |
-
<?php echo date_i18n( get_option( 'time_format' ), strtotime($status_detail->datetime) ); ?></td>
|
809 |
-
<td><?php echo apply_filters("trackship_status_filter",$status_detail->status);?></td>
|
810 |
-
<td><?php echo $status_detail->message; ?></td>
|
811 |
-
</tr>
|
812 |
-
<?php }
|
813 |
-
?>
|
814 |
-
</tbody>
|
815 |
-
</table>
|
816 |
-
<?php if(count($trackind_detail_by_status_rev) > 2){ ?>
|
817 |
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
822 |
<?php } ?>
|
823 |
-
|
824 |
-
|
|
|
|
|
|
|
825 |
<div class="tracking-detail col">
|
826 |
<h1 class="shipment_status_heading text-secondary text-center"><?php _e( 'Tracking # '.$tracking_number, 'woo-advanced-shipment-tracking' ); ?></h1>
|
827 |
<h3 class="text-center"><?php _e( 'Invalid Tracking Number', 'woo-advanced-shipment-tracking' ); ?></h3>
|
828 |
</div>
|
829 |
-
<?php
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
} ?>
|
835 |
-
<?php
|
836 |
$remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
|
837 |
-
|
838 |
-
?>
|
|
|
839 |
<div class="trackship_branding">
|
840 |
<p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
|
841 |
</div>
|
842 |
-
|
843 |
-
|
844 |
-
|
|
|
|
|
845 |
|
846 |
-
|
|
|
|
|
|
|
847 |
{
|
848 |
// convert date and time to seconds
|
849 |
$sec = strtotime($date);
|
@@ -851,58 +705,60 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
851 |
// convert seconds into a specific format
|
852 |
$date = date("m/d/Y H:i", $sec);
|
853 |
|
854 |
-
// append seconds to the date and time
|
855 |
-
//$date = $date . ":00";
|
856 |
-
|
857 |
// print final date and time
|
858 |
return $date;
|
859 |
}
|
860 |
|
861 |
-
function preview_tracking_page(){
|
|
|
|
|
|
|
862 |
get_header();
|
863 |
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
|
|
|
|
896 |
<div class="tracking-detail col">
|
897 |
<div class="tracking-header">
|
898 |
<div class="col-md col-md-6">
|
899 |
-
Order
|
900 |
USPS: <span class="tracking-number">9405511899561468285343</span>
|
901 |
<h1 class="shipment_status_heading text-success">Delivered</h1>
|
902 |
</div>
|
903 |
<div class="col-md col-md-6">
|
904 |
<div class="text-muted text-right">
|
905 |
-
Estimated Delivery Date
|
906 |
</div>
|
907 |
</div>
|
908 |
</div>
|
@@ -962,42 +818,48 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
962 |
</div>
|
963 |
</div>
|
964 |
</div>
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
<
|
971 |
-
<tbody>
|
972 |
-
<tr>
|
973 |
-
<td>June 28, 2019 1:46 pm</td>
|
974 |
-
<td>Delivered</td>
|
975 |
-
<td>Delivered, Garage or Other Location at Address</td>
|
976 |
-
</tr>
|
977 |
-
<tr>
|
978 |
-
<td>June 28, 2019 8:31 am</td>
|
979 |
-
<td>Out for delivery</td>
|
980 |
-
<td>Out for Delivery</td>
|
981 |
-
</tr>
|
982 |
-
<tr style="display: none;">
|
983 |
-
<td>June 28, 2019 8:21 am</td>
|
984 |
-
<td>In Transit</td>
|
985 |
-
<td>Sorting Complete</td>
|
986 |
-
</tr>
|
987 |
-
</tbody>
|
988 |
-
</table>
|
989 |
-
<a class="view_table_rows" href="javaScript:void(0);" style="display: inline;">view more</a>
|
990 |
-
<a class="hide_table_rows" href="javaScript:void(0);" style="display: none;">view less</a>
|
991 |
</div>
|
992 |
-
|
993 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
994 |
<?php
|
|
|
995 |
$remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
|
|
|
996 |
if($remove_trackship_branding != 1){ ?>
|
997 |
<div class="trackship_branding">
|
998 |
<p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
|
999 |
</div>
|
1000 |
-
<?php }
|
1001 |
get_footer();
|
1002 |
exit;
|
1003 |
}
|
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 |
*/
|
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', 'woocommerce' ) ); ?></label> <input class="input-text" type="text" name="order_id" id="order_id" value="" placeholder="<?php _e( 'Found in your order confirmation email.', 'woo-advanced-shipment-tracking' ); ?>"></p>
|
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>
|
236 |
<?php } ?>
|
237 |
<div class="tracking-header">
|
238 |
<div class="col-md col-md-6">
|
239 |
+
<?php _e( 'Order', 'woocommerce' ); ?>: <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">
|
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)){ ?>
|
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 # '.$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>
|
520 |
<?php } ?>
|
521 |
<div class="tracking-header">
|
522 |
<div class="col-md col-md-6">
|
523 |
+
<?php _e( 'Order', 'woocommerce' ); ?>: <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 # '.$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 |
+
|
714 |
+
if($_GET['action'] != 'preview_tracking_page')return;
|
715 |
+
|
716 |
get_header();
|
717 |
|
718 |
+
$wc_ast_api_key = get_option('wc_ast_api_key');
|
719 |
+
$primary_color = get_option('wc_ast_select_primary_color');
|
720 |
+
$border_color = get_option('wc_ast_select_border_color');
|
721 |
+
$hide_tracking_events = get_option('wc_ast_hide_tracking_events');
|
722 |
+
?>
|
723 |
+
|
724 |
+
<style>
|
725 |
+
<?php if($primary_color){ ?>
|
726 |
+
.bg-secondary{
|
727 |
+
background-color:<?php echo $primary_color; ?> !important;
|
728 |
+
}
|
729 |
+
.tracker-progress-bar-with-dots .secondary .dot {
|
730 |
+
border-color: <?php echo $primary_color; ?>;
|
731 |
+
}
|
732 |
+
.text-secondary{
|
733 |
+
color: <?php echo $primary_color; ?> !important;
|
734 |
+
}
|
735 |
+
.progress-bar.bg-secondary:before{
|
736 |
+
background-color: <?php echo $primary_color; ?>;
|
737 |
+
}
|
738 |
+
.tracking-number{
|
739 |
+
color: <?php echo $primary_color; ?> !important;
|
740 |
+
}
|
741 |
+
.view_table_rows,.hide_table_rows{
|
742 |
+
color: <?php echo $primary_color; ?> !important;
|
743 |
+
}
|
744 |
+
<?php }
|
745 |
+
if($border_color){ ?>
|
746 |
+
.col.tracking-detail{
|
747 |
+
border: 1px solid <?php echo $border_color; ?>;
|
748 |
+
}
|
749 |
+
<?php } ?>
|
750 |
+
</style>
|
751 |
+
|
752 |
<div class="tracking-detail col">
|
753 |
<div class="tracking-header">
|
754 |
<div class="col-md col-md-6">
|
755 |
+
<?php _e( 'Order', 'woocommerce' ); ?>: <span class="tracking-number">#4542</span><br>
|
756 |
USPS: <span class="tracking-number">9405511899561468285343</span>
|
757 |
<h1 class="shipment_status_heading text-success">Delivered</h1>
|
758 |
</div>
|
759 |
<div class="col-md col-md-6">
|
760 |
<div class="text-muted text-right">
|
761 |
+
<?php _e( 'Estimated Delivery Date', 'woo-advanced-shipment-tracking' ); ?>: <span class="tracking-number">Friday, Jun 28</span>
|
762 |
</div>
|
763 |
</div>
|
764 |
</div>
|
818 |
</div>
|
819 |
</div>
|
820 |
</div>
|
821 |
+
|
822 |
+
<?php if($hide_tracking_events != 1){ ?>
|
823 |
+
|
824 |
+
<div class="shipment_progress_div">
|
825 |
+
<div class="shipment_progress_heading_div">
|
826 |
+
<h4 class="tracking-number h4-heading"><?php _e( 'Tracking Details', 'woo-advanced-shipment-tracking' ); ?></h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
827 |
</div>
|
828 |
+
<table class="tracking-table">
|
829 |
+
<tbody>
|
830 |
+
<tr>
|
831 |
+
<td>June 28, 2019 1:46 pm</td>
|
832 |
+
<td>Delivered</td>
|
833 |
+
<td>Delivered, Garage or Other Location at Address</td>
|
834 |
+
</tr>
|
835 |
+
<tr>
|
836 |
+
<td>June 28, 2019 8:31 am</td>
|
837 |
+
<td>Out for delivery</td>
|
838 |
+
<td>Out for Delivery</td>
|
839 |
+
</tr>
|
840 |
+
<tr style="display: none;">
|
841 |
+
<td>June 28, 2019 8:21 am</td>
|
842 |
+
<td>In Transit</td>
|
843 |
+
<td>Sorting Complete</td>
|
844 |
+
</tr>
|
845 |
+
</tbody>
|
846 |
+
</table>
|
847 |
+
<a class="view_table_rows" href="javaScript:void(0);" style="display: inline;"><?php _e( 'view more', 'woo-advanced-shipment-tracking' ); ?></a>
|
848 |
+
<a class="hide_table_rows" href="javaScript:void(0);" style="display: none;"><?php _e( 'view less', 'woo-advanced-shipment-tracking' ); ?></a>
|
849 |
+
</div>
|
850 |
+
|
851 |
+
<?php } ?>
|
852 |
+
|
853 |
+
</div>
|
854 |
<?php
|
855 |
+
|
856 |
$remove_trackship_branding = get_option('wc_ast_remove_trackship_branding');
|
857 |
+
|
858 |
if($remove_trackship_branding != 1){ ?>
|
859 |
<div class="trackship_branding">
|
860 |
<p>Shipment Tracking info by <a href="https://trackship.info" title="TrackShip" target="blank">TrackShip</a></p>
|
861 |
</div>
|
862 |
+
<?php }
|
863 |
get_footer();
|
864 |
exit;
|
865 |
}
|
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 |
-
|
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 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
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 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
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,6 +1587,7 @@ class WC_Advanced_Shipment_Tracking_Install {
|
|
1568 |
}
|
1569 |
}
|
1570 |
}
|
|
|
1571 |
/*
|
1572 |
* Display admin notice on plugin install or update
|
1573 |
*/
|
@@ -1577,26 +1597,102 @@ class WC_Advanced_Shipment_Tracking_Install {
|
|
1577 |
}
|
1578 |
?>
|
1579 |
<style>
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1597 |
</div>
|
1598 |
</div>
|
1599 |
-
</div>
|
1600 |
<?php
|
1601 |
}
|
1602 |
}
|
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 |
*/
|
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 |
}
|
1698 |
}
|
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 = __( '
|
180 |
} else{
|
181 |
-
$change_order_status_label = __( '
|
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', '
|
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 = __( '
|
352 |
} else{
|
353 |
-
$change_order_status_label = __( '
|
354 |
}
|
355 |
|
356 |
|
@@ -428,7 +435,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
428 |
) );
|
429 |
|
430 |
echo '<button class="button button-primary button-save-form">' . __( 'Save Tracking', 'woo-advanced-shipment-tracking' ) . '</button>';
|
431 |
-
echo '<p class="preview_tracking_link">' . __( 'Preview:', 'woo-advanced-shipment-tracking' ) . ' <a href="" target="_blank">' . __( 'Click here to track shipment', 'woo-advanced-shipment-tracking' ) . '</a></p>';
|
432 |
|
433 |
echo '</div>';
|
434 |
$provider_array = array();
|
@@ -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 |
|
@@ -636,8 +644,8 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
636 |
/**
|
637 |
* Display Shipment info in the frontend (order view/tracking page).
|
638 |
*/
|
639 |
-
public function show_tracking_info_order( $order_id ) {
|
640 |
-
wc_get_template( 'myaccount/
|
641 |
}
|
642 |
|
643 |
/**
|
@@ -690,6 +698,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
690 |
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/' );
|
691 |
}
|
692 |
}
|
|
|
693 |
/**
|
694 |
* Display shipment info in PDF Invoices & Packing slips.
|
695 |
*
|
@@ -781,6 +790,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
781 |
<?php
|
782 |
}
|
783 |
}
|
|
|
784 |
/**
|
785 |
* Prevents data being copied to subscription renewals
|
786 |
*/
|
@@ -911,37 +921,38 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
911 |
public function add_tracking_item( $order_id, $args ) {
|
912 |
$tracking_item = array();
|
913 |
|
914 |
-
if($args['tracking_provider']){
|
915 |
-
$tracking_item['tracking_provider']
|
916 |
}
|
917 |
|
918 |
-
if($args['custom_tracking_provider']){
|
919 |
$tracking_item['custom_tracking_provider'] = wc_clean( $args['custom_tracking_provider'] );
|
920 |
}
|
921 |
-
if($args['custom_tracking_link']){
|
922 |
-
$tracking_item['custom_tracking_link']
|
923 |
}
|
924 |
|
925 |
-
if($args['tracking_number']){
|
926 |
-
$tracking_item['tracking_number']
|
927 |
}
|
928 |
-
|
|
|
929 |
$date = str_replace("/","-",$args['date_shipped']);
|
930 |
$date = date_create($date);
|
931 |
$date = date_format($date,"d-m-Y");
|
932 |
|
933 |
-
$tracking_item['date_shipped']
|
934 |
}
|
935 |
|
936 |
if(isset($args['status_shipped'])){
|
937 |
-
$tracking_item['status_shipped']
|
938 |
}
|
939 |
|
940 |
if ( isset($tracking_item['date_shipped']) && 0 == (int) $tracking_item['date_shipped'] ) {
|
941 |
$tracking_item['date_shipped'] = time();
|
942 |
}
|
943 |
|
944 |
-
if ( $tracking_item['custom_tracking_provider'] ) {
|
945 |
$tracking_item['tracking_id'] = md5( "{$tracking_item['custom_tracking_provider']}-{$tracking_item['tracking_number']}" . microtime() );
|
946 |
} else {
|
947 |
$tracking_item['tracking_id'] = md5( "{$tracking_item['tracking_provider']}-{$tracking_item['tracking_number']}" . microtime() );
|
@@ -961,6 +972,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
961 |
$tracking_provider = $formated_tracking_item['formatted_tracking_provider'];
|
962 |
|
963 |
$order = wc_get_order( $order_id );
|
|
|
964 |
// The text for the note
|
965 |
$note = sprintf(__("Order was shipped with %s and tracking number is: %s", 'woo-advanced-shipment-tracking'), $tracking_provider, $tracking_item['tracking_number'] );
|
966 |
|
@@ -1116,6 +1128,9 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
1116 |
return $this->plugin_path;
|
1117 |
}
|
1118 |
|
|
|
|
|
|
|
1119 |
public function check_tracking_delivered( $order_id ){
|
1120 |
$delivered = true;
|
1121 |
$shipment_status = get_post_meta( $order_id, "shipment_status", true);
|
@@ -1135,6 +1150,10 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
1135 |
}
|
1136 |
}
|
1137 |
}
|
|
|
|
|
|
|
|
|
1138 |
public function custom_validation_js(){ ?>
|
1139 |
<script>
|
1140 |
jQuery(document).on("click",".button-save-form",function(e){
|
@@ -1168,6 +1187,9 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
1168 |
</script>
|
1169 |
<?php }
|
1170 |
|
|
|
|
|
|
|
1171 |
public function trigger_tracking_email($order_id, $old_status, $new_status){
|
1172 |
$order = wc_get_order( $order_id );
|
1173 |
require_once( 'email-manager.php' );
|
@@ -1192,4 +1214,105 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
1192 |
update_post_meta( $order_id, "shipment_status", $shipment_status);
|
1193 |
}
|
1194 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1195 |
}
|
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 |
|
435 |
) );
|
436 |
|
437 |
echo '<button class="button button-primary button-save-form">' . __( 'Save Tracking', 'woo-advanced-shipment-tracking' ) . '</button>';
|
438 |
+
echo '<p class="preview_tracking_link">' . __( 'Preview:', 'woo-advanced-shipment-tracking' ) . ' <a href="" target="_blank">' . __( 'Click here to track your shipment', 'woo-advanced-shipment-tracking' ) . '</a></p>';
|
439 |
|
440 |
echo '</div>';
|
441 |
$provider_array = array();
|
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 |
|
644 |
/**
|
645 |
* Display Shipment info in the frontend (order view/tracking page).
|
646 |
*/
|
647 |
+
public function show_tracking_info_order( $order_id ) {
|
648 |
+
wc_get_template( 'myaccount/tracking-info.php', array( 'tracking_items' => $this->get_tracking_items( $order_id, true ) ), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
649 |
}
|
650 |
|
651 |
/**
|
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() );
|
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 |
|
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){
|
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 |
-
|
|
|
|
|
|
|
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,8 +205,8 @@ class wcast_availableforpickup_customizer_email {
|
|
197 |
);
|
198 |
$wp_customize->add_control( 'wcast_availableforpickup_email_to',
|
199 |
array(
|
200 |
-
'label' => __( '
|
201 |
-
'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', '
|
202 |
'section' => 'customer_availableforpickup_email',
|
203 |
'type' => 'text',
|
204 |
'input_attrs' => array(
|
@@ -219,7 +227,7 @@ class wcast_availableforpickup_customizer_email {
|
|
219 |
);
|
220 |
$wp_customize->add_control( 'wcast_availableforpickup_email_subject',
|
221 |
array(
|
222 |
-
'label' => __( '
|
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', '
|
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
|
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.', 'woocommerce' ),
|
210 |
'section' => 'customer_availableforpickup_email',
|
211 |
'type' => 'text',
|
212 |
'input_attrs' => array(
|
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 |
-
|
|
|
|
|
|
|
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 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
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,8 +206,8 @@ class wcast_delivered_customizer_email {
|
|
196 |
);
|
197 |
$wp_customize->add_control( 'wcast_delivered_status_email_to',
|
198 |
array(
|
199 |
-
'label' => __( '
|
200 |
-
'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', '
|
201 |
'section' => 'customer_delivered_status_email',
|
202 |
'type' => 'text',
|
203 |
'input_attrs' => array(
|
@@ -218,7 +228,7 @@ class wcast_delivered_customizer_email {
|
|
218 |
);
|
219 |
$wp_customize->add_control( 'wcast_delivered_status_email_subject',
|
220 |
array(
|
221 |
-
'label' => __( '
|
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', '
|
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
|
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 |
-
|
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.', 'woocommerce' ),
|
211 |
'section' => 'customer_delivered_status_email',
|
212 |
'type' => 'text',
|
213 |
'input_attrs' => array(
|
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 |
-
|
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 |
-
|
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 |
-
|
59 |
-
|
60 |
-
|
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 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
|
96 |
-
|
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,11 +121,15 @@ 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' ),
|
123 |
-
'wcast_delivered_email_heading' => __( 'Thanks for shopping with us', '
|
124 |
-
'wcast_delivered_email_content' => __(
|
125 |
'wcast_enable_delivered_email' => 'no',
|
126 |
'wcast_delivered_email_to' => '{customer_email}',
|
127 |
'wcast_show_tracking_details' => '',
|
@@ -208,8 +216,8 @@ class wcast_initialise_customizer_email {
|
|
208 |
);
|
209 |
$wp_customize->add_control( 'woocommerce_customer_delivered_order_settings[recipient]',
|
210 |
array(
|
211 |
-
'label' => __( '
|
212 |
-
'description' => esc_html__( 'Enter emails use variables such as {customer_email}. Multiple emails can be separated by commas.', '
|
213 |
'section' => 'customer_delivered_email',
|
214 |
'type' => 'text',
|
215 |
'input_attrs' => array(
|
@@ -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' => __( '
|
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', '
|
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
|
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' ),
|
131 |
+
'wcast_delivered_email_heading' => __( 'Thanks for shopping with us', 'woocommerce' ),
|
132 |
+
'wcast_delivered_email_content' => __( "Hi there. we thought you'd like to know that your recent order from {site_title} has been Delivered.", 'woo-advanced-shipment-tracking' ),
|
133 |
'wcast_enable_delivered_email' => 'no',
|
134 |
'wcast_delivered_email_to' => '{customer_email}',
|
135 |
'wcast_show_tracking_details' => '',
|
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 here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
|
221 |
'section' => 'customer_delivered_email',
|
222 |
'type' => 'text',
|
223 |
'input_attrs' => array(
|
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 |
-
|
|
|
|
|
|
|
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,8 +205,8 @@ class wcast_failure_customizer_email {
|
|
193 |
);
|
194 |
$wp_customize->add_control( 'wcast_failure_email_to',
|
195 |
array(
|
196 |
-
'label' => __( '
|
197 |
-
'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', '
|
198 |
'section' => 'customer_failure_email',
|
199 |
'type' => 'text',
|
200 |
'input_attrs' => array(
|
@@ -215,7 +227,7 @@ class wcast_failure_customizer_email {
|
|
215 |
);
|
216 |
$wp_customize->add_control( 'wcast_failure_email_subject',
|
217 |
array(
|
218 |
-
'label' => __( '
|
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', '
|
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
|
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 |
-
|
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.', 'woocommerce' ),
|
210 |
'section' => 'customer_failure_email',
|
211 |
'type' => 'text',
|
212 |
'input_attrs' => array(
|
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 |
-
|
|
|
|
|
|
|
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,8 +209,8 @@ class wcast_intransit_customizer_email {
|
|
196 |
);
|
197 |
$wp_customize->add_control( 'wcast_intransit_email_to',
|
198 |
array(
|
199 |
-
'label' => __( '
|
200 |
-
'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', '
|
201 |
'section' => 'customer_intransit_email',
|
202 |
'type' => 'text',
|
203 |
'input_attrs' => array(
|
@@ -218,7 +231,7 @@ class wcast_intransit_customizer_email {
|
|
218 |
);
|
219 |
$wp_customize->add_control( 'wcast_intransit_email_subject',
|
220 |
array(
|
221 |
-
'label' => __( '
|
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', '
|
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
|
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 |
-
|
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.', 'woocommerce' ),
|
214 |
'section' => 'customer_intransit_email',
|
215 |
'type' => 'text',
|
216 |
'input_attrs' => array(
|
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 |
-
|
|
|
|
|
|
|
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,8 +207,8 @@ class wcast_outfordelivery_customizer_email {
|
|
196 |
);
|
197 |
$wp_customize->add_control( 'wcast_outfordelivery_email_to',
|
198 |
array(
|
199 |
-
'label' => __( '
|
200 |
-
'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', '
|
201 |
'section' => 'customer_outfordelivery_email',
|
202 |
'type' => 'text',
|
203 |
'input_attrs' => array(
|
@@ -218,7 +229,7 @@ class wcast_outfordelivery_customizer_email {
|
|
218 |
);
|
219 |
$wp_customize->add_control( 'wcast_outfordelivery_email_subject',
|
220 |
array(
|
221 |
-
'label' => __( '
|
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', '
|
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
|
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 |
-
|
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.', 'woocommerce' ),
|
212 |
'section' => 'customer_outfordelivery_email',
|
213 |
'type' => 'text',
|
214 |
'input_attrs' => array(
|
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 |
-
|
|
|
|
|
|
|
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,8 +205,8 @@ class wcast_returntosender_customizer_email {
|
|
197 |
);
|
198 |
$wp_customize->add_control( 'wcast_returntosender_email_to',
|
199 |
array(
|
200 |
-
'label' => __( '
|
201 |
-
'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', '
|
202 |
'section' => 'customer_returntosender_email',
|
203 |
'type' => 'text',
|
204 |
'input_attrs' => array(
|
@@ -219,7 +227,7 @@ class wcast_returntosender_customizer_email {
|
|
219 |
);
|
220 |
$wp_customize->add_control( 'wcast_returntosender_email_subject',
|
221 |
array(
|
222 |
-
'label' => __( '
|
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', '
|
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
|
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 |
-
|
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.', 'woocommerce' ),
|
210 |
'section' => 'customer_returntosender_email',
|
211 |
'type' => 'text',
|
212 |
'input_attrs' => array(
|
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 |
-
|
|
|
|
|
|
|
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 |
-
|
63 |
-
|
64 |
-
|
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(
|
@@ -295,6 +312,38 @@ class wcast_initialise_customizer_settings {
|
|
295 |
)
|
296 |
);
|
297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
// Provider Header Text
|
299 |
$wp_customize->add_setting( 'provider_header_text',
|
300 |
array(
|
@@ -397,6 +446,39 @@ class wcast_initialise_customizer_settings {
|
|
397 |
)
|
398 |
);
|
399 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
400 |
// Test of Toggle Switch Custom Control
|
401 |
$wp_customize->add_setting( 'table_header',
|
402 |
array(
|
@@ -490,7 +572,7 @@ class wcast_initialise_customizer_settings {
|
|
490 |
'section' => 'default_controls_section',
|
491 |
'type' => 'select',
|
492 |
'choices' => array(
|
493 |
-
'' => __( 'Select', '
|
494 |
'1' => '1 px',
|
495 |
'2' => '2 px',
|
496 |
'3' => '3 px',
|
@@ -514,53 +596,15 @@ class wcast_initialise_customizer_settings {
|
|
514 |
'section' => 'default_controls_section',
|
515 |
'type' => 'select',
|
516 |
'choices' => array(
|
517 |
-
'' => __( 'Select', '
|
518 |
-
'left' => __( 'Left', '
|
519 |
-
'right' => __( 'Right', '
|
520 |
-
'center' => __( 'Center', '
|
521 |
)
|
522 |
)
|
523 |
-
);
|
524 |
-
|
525 |
-
$font_size_array[ '' ] = __( 'Select', 'woo-advanced-shipment-tracking' );
|
526 |
-
for ( $i = 10; $i <= 30; $i++ ) {
|
527 |
-
$font_size_array[ $i ] = $i."px";
|
528 |
-
}
|
529 |
-
// Table header font size
|
530 |
-
$wp_customize->add_setting( 'table_header_font_size',
|
531 |
-
array(
|
532 |
-
'default' => $this->defaults['table_header_font_size'],
|
533 |
-
'transport' => 'postMessage',
|
534 |
-
'sanitize_callback' => ''
|
535 |
-
)
|
536 |
-
);
|
537 |
-
$wp_customize->add_control( 'table_header_font_size',
|
538 |
-
array(
|
539 |
-
'label' => __( 'Table header font size', 'woo-advanced-shipment-tracking' ),
|
540 |
-
'section' => 'default_controls_section',
|
541 |
-
'type' => 'select',
|
542 |
-
'choices' => $font_size_array
|
543 |
-
)
|
544 |
-
);
|
545 |
-
|
546 |
|
547 |
|
548 |
-
// Table header font color
|
549 |
-
$wp_customize->add_setting( 'table_header_font_color',
|
550 |
-
array(
|
551 |
-
'default' => $this->defaults['table_header_font_color'],
|
552 |
-
'transport' => 'postMessage',
|
553 |
-
'sanitize_callback' => ''
|
554 |
-
)
|
555 |
-
);
|
556 |
-
$wp_customize->add_control( 'table_header_font_color',
|
557 |
-
array(
|
558 |
-
'label' => __( 'Table header font color', 'woo-advanced-shipment-tracking' ),
|
559 |
-
'section' => 'default_controls_section',
|
560 |
-
'type' => 'color'
|
561 |
-
)
|
562 |
-
);
|
563 |
-
|
564 |
// Table content font size
|
565 |
$wp_customize->add_setting( 'table_content_font_size',
|
566 |
array(
|
@@ -716,6 +760,9 @@ class wcast_initialise_customizer_settings {
|
|
716 |
exit;
|
717 |
}
|
718 |
|
|
|
|
|
|
|
719 |
public function preview_completed_email(){
|
720 |
|
721 |
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
@@ -741,7 +788,7 @@ class wcast_initialise_customizer_settings {
|
|
741 |
$order_status = 'completed';
|
742 |
|
743 |
if($preview_id == '' || $preview_id == 'mockup') {
|
744 |
-
$content = '<div style="padding: 35px 40px; background-color: white;">' . __( 'Please select preview
|
745 |
echo $content;
|
746 |
return;
|
747 |
}
|
@@ -778,6 +825,7 @@ class wcast_initialise_customizer_settings {
|
|
778 |
}
|
779 |
echo $content;
|
780 |
}
|
|
|
781 |
/**
|
782 |
* Get WooCommerce order for preview
|
783 |
*
|
@@ -788,8 +836,7 @@ class wcast_initialise_customizer_settings {
|
|
788 |
public static function get_wc_order_for_preview( $order_status = null, $order_id = null ) {
|
789 |
if ( ! empty( $order_id ) && 'mockup' != $order_id ) {
|
790 |
return wc_get_order( $order_id );
|
791 |
-
} else {
|
792 |
-
// Use mockup order
|
793 |
|
794 |
// Instantiate order object
|
795 |
$order = new WC_Order();
|
@@ -832,7 +879,6 @@ class wcast_initialise_customizer_settings {
|
|
832 |
// Return mockup order
|
833 |
return $order;
|
834 |
}
|
835 |
-
|
836 |
}
|
837 |
}
|
838 |
/**
|
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(
|
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(
|
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 |
*/
|
@@ -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 |
*/
|
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 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
35 |
|
|
|
36 |
|
37 |
-
$
|
38 |
-
|
39 |
-
|
40 |
-
$
|
|
|
|
|
|
|
|
|
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
75 |
'order' => $order,
|
76 |
'sent_to_admin' => $sent_to_admin,
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
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 |
*
|
@@ -99,7 +101,7 @@ if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
|
|
99 |
* @return string
|
100 |
*/
|
101 |
public function get_default_heading() {
|
102 |
-
return __( 'Thanks for shopping with us', '
|
103 |
}
|
104 |
|
105 |
/**
|
@@ -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 |
-
|
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', '
|
227 |
'type' => 'checkbox',
|
228 |
-
'label' => __( 'Enable this email notification', '
|
229 |
'default' => 'yes',
|
230 |
),
|
231 |
'recipient' => array(
|
232 |
-
'title' => __( 'Recipient(s)', '
|
233 |
'type' => 'text',
|
234 |
/* translators: %s: WP admin email */
|
235 |
-
'description' => sprintf( __( 'Enter recipients (comma separated) for this email. Defaults to %s.', '
|
236 |
'placeholder' => '',
|
237 |
'default' => '{customer_email}',
|
238 |
'desc_tip' => true,
|
239 |
),
|
240 |
'subject' => array(
|
241 |
-
'title' => __( 'Subject', '
|
242 |
'type' => 'text',
|
243 |
'desc_tip' => true,
|
244 |
/* translators: %s: list of placeholders */
|
245 |
-
'description' => sprintf( __( 'Available placeholders: %s', '
|
246 |
'placeholder' => $this->get_default_subject(),
|
247 |
'default' => '',
|
248 |
),
|
249 |
'heading' => array(
|
250 |
-
'title' => __( 'Email heading', '
|
251 |
'type' => 'text',
|
252 |
'desc_tip' => true,
|
253 |
/* translators: %s: list of placeholders */
|
254 |
-
'description' => sprintf( __( 'Available placeholders: %s', '
|
255 |
'placeholder' => $this->get_default_heading(),
|
256 |
'default' => '',
|
257 |
),
|
258 |
'email_type' => array(
|
259 |
-
'title' => __( 'Email type', '
|
260 |
'type' => 'select',
|
261 |
-
'description' => __( 'Choose which format of email to send.', '
|
262 |
'default' => 'html',
|
263 |
'class' => 'email_type wc-enhanced-select',
|
264 |
'options' => $this->get_email_type_options(),
|
265 |
'desc_tip' => true,
|
266 |
),
|
267 |
-
'
|
268 |
'type' => 'title',
|
269 |
-
'description' =>
|
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 |
*
|
101 |
* @return string
|
102 |
*/
|
103 |
public function get_default_heading() {
|
104 |
+
return __( 'Thanks for shopping with us', 'woocommerce' );
|
105 |
}
|
106 |
|
107 |
/**
|
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,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
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">
|
@@ -21,7 +26,7 @@
|
|
21 |
<tr valign="top" class="">
|
22 |
<th scope="row" colspan="2">
|
23 |
<div class="submit">
|
24 |
-
<button name="save" class="button-primary
|
25 |
<div class="spinner" style="float:none"></div>
|
26 |
<div class="success_msg" style="display:none;"><?php _e('Settings Saved.', 'woo-advanced-shipment-tracking'); ?></div>
|
27 |
<div class="error_msg" style="display:none;"></div>
|
@@ -50,7 +55,7 @@
|
|
50 |
</tr>
|
51 |
<tr valign="top">
|
52 |
<td style="padding-top: 0;" colspan="2">
|
53 |
-
<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('
|
54 |
</td>
|
55 |
</tr>
|
56 |
</tbody>
|
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">
|
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>
|
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>
|
includes/views/admin_options_settings.php
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
2 |
<div class="tab_inner_container">
|
3 |
<form method="post" id="wc_ast_settings_form" action="" enctype="multipart/form-data">
|
4 |
<?php #nonce?>
|
@@ -78,4 +83,4 @@
|
|
78 |
</form>
|
79 |
</div>
|
80 |
<?php include 'zorem_admin_sidebar.php';?>
|
81 |
-
|
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?>
|
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"
|
8 |
-
<a href="javaScript:void(0);" data-status="inactive"
|
9 |
-
<a href="javaScript:void(0);" data-status="custom"
|
10 |
-
<a href="javaScript:void(0);" data-status="all"
|
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"
|
17 |
-
<li><a href="javaScript:void(0);" class="sync_providers"
|
18 |
-
<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">
|
@@ -100,7 +105,7 @@
|
|
100 |
</div>
|
101 |
<div>
|
102 |
<select class="select wcast_shipping_country" name="shipping_country" id="shipping_country">
|
103 |
-
<option value=""><?php _e( '
|
104 |
<option value="Global"><?php _e( 'Global', 'woo-advanced-shipment-tracking' ); ?></option>
|
105 |
<?php
|
106 |
foreach($countries as $key=>$val){ ?>
|
@@ -134,7 +139,7 @@
|
|
134 |
</div>
|
135 |
<div>
|
136 |
<select class="select wcast_shipping_country" name="shipping_country" id="shipping_country">
|
137 |
-
<option value=""><?php _e( '
|
138 |
<option value="Global"><?php _e( 'Global', 'woo-advanced-shipment-tracking' ); ?></option>
|
139 |
<?php
|
140 |
foreach($countries as $key=>$val){ ?>
|
@@ -162,15 +167,15 @@
|
|
162 |
|
163 |
<div id="" class="popupwrapper sync_provider_popup" style="display:none;">
|
164 |
<div class="popuprow">
|
165 |
-
<h3 class="popup_title"><?php _e( 'Sync Providers', 'woo-advanced-shipment-tracking'); ?></h2>
|
166 |
-
<p class="sync_message"><?php _e( '
|
167 |
<ul class="synch_result">
|
168 |
<li class="providers_added"><?php _e( 'Providers Added', 'woo-advanced-shipment-tracking'); ?> - <span></span></li>
|
169 |
<li class="providers_updated"><?php _e( 'Providers Updated', 'woo-advanced-shipment-tracking'); ?> - <span></span></li>
|
170 |
<li class="providers_deleted"><?php _e( 'Providers Deleted', 'woo-advanced-shipment-tracking'); ?> - <span></span></li>
|
171 |
</ul>
|
172 |
-
<button class="sync_providers_btn button-primary btn_ast2 btn_large"><?php _e( 'Sync Providers', 'woo-advanced-shipment-tracking'); ?></button>
|
173 |
-
<button class="close_synch_popup button-primary btn_ast2 btn_large"><?php _e( 'Close', '
|
174 |
<div class="spinner" style=""></div>
|
175 |
</div>
|
176 |
<div class="popupclose"></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', 'woocommerce'); ?></a>
|
16 |
</div>
|
17 |
<div class="provider_settings dropdown">
|
18 |
<span class="dashicons dashicons-admin-generic dropdown_menu"></span>
|
19 |
</div>
|
20 |
<ul class="dropdown-content">
|
21 |
+
<li><a href="javaScript:void(0);" class="add_custom_provider" id="add-custom"><?php _e( 'Add Custom Provider', 'woo-advanced-shipment-tracking'); ?></a></li>
|
22 |
+
<li><a href="javaScript:void(0);" class="sync_providers"><?php _e( 'Sync Shipping Providers', 'woo-advanced-shipment-tracking'); ?></a></a></li>
|
23 |
+
<li><?php _e( 'Reset', 'woo-advanced-shipment-tracking'); ?> <a href="javaScript:void(0);" class="reset_active"><?php _e( 'Active', 'woo-advanced-shipment-tracking'); ?></a> | <a href="javaScript:void(0);" class="reset_inactive"><?php _e( 'Inactive', 'woo-advanced-shipment-tracking'); ?></a></li>
|
24 |
</ul>
|
25 |
<div class="search_section">
|
26 |
<span class="dashicons dashicons-search search-icon"></span>
|
27 |
+
<input class="provider_search_bar " type="text" name="search_provider" id="search_provider" placeholder="<?php _e( 'Search by provider / country', 'woo-advanced-shipment-tracking'); ?>">
|
28 |
</div>
|
29 |
</div>
|
30 |
<div class="provider_list">
|
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){ ?>
|
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){ ?>
|
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>
|
includes/views/admin_options_trackship_integration.php
CHANGED
@@ -1,232 +1,285 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<section id="content3" class="tab_section">
|
2 |
<div class="d_table" style="">
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
<
|
20 |
-
<
|
21 |
-
|
22 |
-
<a href="https://my.trackship.info/" target="_blank">
|
23 |
-
<span class="api_connected"><label><?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></label><span class="dashicons dashicons-yes"></span></span>
|
24 |
-
</a>
|
25 |
-
</fieldset>
|
26 |
-
</td>
|
27 |
-
</tr>
|
28 |
-
<tr valign="top">
|
29 |
-
<td colspan="2">
|
30 |
-
<?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' ); ?>
|
31 |
-
</td>
|
32 |
-
</tr>
|
33 |
-
<tr valign="top">
|
34 |
-
<td colspan="2">
|
35 |
-
<a href="https://trackship.info/documentation/" class="" style="margin-right: 10px;" target="blank"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a>
|
36 |
-
<a href="https://my.trackship.info/" class="" target="blank"><?php _e( 'TrackShip Dashboard', 'woo-advanced-shipment-tracking' ); ?></a>
|
37 |
-
</td>
|
38 |
-
</tr>
|
39 |
-
</tbody>
|
40 |
-
</table>
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
</
|
85 |
-
</
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
$wcast_enable_delivered_status_email = get_theme_mod('wcast_enable_delivered_status_email');
|
110 |
-
$wcast_enable_returntosender_email = get_theme_mod('wcast_enable_returntosender_email');
|
111 |
-
$wcast_enable_availableforpickup_email = get_theme_mod('wcast_enable_availableforpickup_email');
|
112 |
-
$wc_ast_api_key = get_option('wc_ast_api_key');
|
113 |
-
//echo '<pre>';print_r($wcast_enable_delivered_email['enabled']);echo '</pre>';
|
114 |
-
?>
|
115 |
-
<section class="ac-container">
|
116 |
-
<?php
|
117 |
-
if($wc_ast_api_key){
|
118 |
-
?>
|
119 |
-
<div class="headig_label <?php if($wcast_enable_intransit_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
120 |
-
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/In-Transit-512.png">
|
121 |
-
<span class="email_status_span">
|
122 |
-
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
123 |
-
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_intransit_email">
|
124 |
-
<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'; } ?> />
|
125 |
-
</label>
|
126 |
-
</span>
|
127 |
-
</span>
|
128 |
-
<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>
|
129 |
-
<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>
|
130 |
-
<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>
|
131 |
-
</div>
|
132 |
-
|
133 |
-
<div class="headig_label <?php if($wcast_enable_returntosender_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
134 |
-
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/return-to-sender-512.png">
|
135 |
-
<span class="email_status_span">
|
136 |
-
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
137 |
-
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_returntosender_email">
|
138 |
-
<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'; } ?> />
|
139 |
-
</label>
|
140 |
-
</span>
|
141 |
-
</span>
|
142 |
-
<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>
|
143 |
-
<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>
|
144 |
-
<p class="shipment_about"><?php _e('Shipment is returned to sender', 'woo-advanced-shipment-tracking'); ?></p>
|
145 |
-
</div>
|
146 |
-
|
147 |
-
<div class="headig_label <?php if($wcast_enable_availableforpickup_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
148 |
-
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/available-for-picup-512.png">
|
149 |
-
<span class="email_status_span">
|
150 |
-
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
151 |
-
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_availableforpickup_email">
|
152 |
-
<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'; } ?> />
|
153 |
-
</label>
|
154 |
-
</span>
|
155 |
-
</span>
|
156 |
-
<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>
|
157 |
-
<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>
|
158 |
-
<p class="shipment_about"><?php _e('The shipment is ready to pickup.', 'woo-advanced-shipment-tracking'); ?></p>
|
159 |
-
</div>
|
160 |
-
<div class="headig_label <?php if($wcast_enable_outfordelivery_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
161 |
-
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Out-for-Delivery-512.png">
|
162 |
-
<span class="email_status_span">
|
163 |
-
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
164 |
-
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_outfordelivery_email">
|
165 |
-
<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'; } ?> />
|
166 |
-
</label>
|
167 |
-
</span>
|
168 |
-
</span>
|
169 |
-
<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>
|
170 |
-
<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>
|
171 |
-
<p class="shipment_about"><?php _e('Carrier is about to deliver the shipment', 'woo-advanced-shipment-tracking'); ?></p>
|
172 |
-
</div>
|
173 |
-
|
174 |
-
<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'; } ?>">
|
175 |
-
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Delivered-512.png">
|
176 |
-
<span class="email_status_span">
|
177 |
-
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
178 |
-
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_delivered_status_email">
|
179 |
-
<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'; }?> />
|
180 |
-
</label>
|
181 |
-
</span>
|
182 |
-
</span>
|
183 |
-
<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>
|
184 |
-
<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>
|
185 |
-
<p class="shipment_about"><?php _e('The shipment was delivered successfully', 'woo-advanced-shipment-tracking'); ?></p>
|
186 |
-
<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>
|
187 |
-
</div>
|
188 |
-
|
189 |
-
<div class="headig_label <?php if($wcast_enable_failure_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
190 |
-
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/failure-512.png">
|
191 |
-
<span class="email_status_span">
|
192 |
-
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
193 |
-
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_failure_email">
|
194 |
-
<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'; } ?> />
|
195 |
-
</label>
|
196 |
-
</span>
|
197 |
-
</span>
|
198 |
-
<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>
|
199 |
-
<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>
|
200 |
-
<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>
|
201 |
-
</div>
|
202 |
-
<?php } ?>
|
203 |
-
</section>
|
204 |
-
<?php } else{ ?>
|
205 |
-
<div class="section-content trackship_section">
|
206 |
-
<div class="trackship-upsell-overlay">
|
207 |
-
<div class="trackship-upsell-top">
|
208 |
-
<h3><img src="https://trackship.info/wp-content/uploads/2019/08/trackship-400.png" class="trackship_logo"></h3>
|
209 |
-
<p class="trackship-upsell-subtitle"><?php _e('TracksShip is a premium shipment tracking API flatform that fully integrates with WooCommerce with the Advanced Shipment Tracking. TrackShip automates the order management workflows, reduces customer inquiries, reduces time spent on customer service, and improves the post-purchase experience and satisfaction of your customers.', 'woo-advanced-shipment-tracking'); ?></p>
|
210 |
-
<p class="trackship-upsell-subtitle"><?php _e('You must have account TracksShip and connect your store in order to activate these advanced features:', 'woo-advanced-shipment-tracking'); ?></p>
|
211 |
-
</div>
|
212 |
-
<div class="trackship-upsell-content">
|
213 |
-
<ul>
|
214 |
-
<li><?php _e('Automatically track your shipments with 100+ shipping providers.', 'woo-advanced-shipment-tracking'); ?></li>
|
215 |
-
<li><?php _e('Display Shipment Status and latest shipment status, update date and est. delivery date on WooCommerce orders admin.', 'woo-advanced-shipment-tracking'); ?></li>
|
216 |
-
<li><?php _e('Option to manually get shipment tracking updates for orders.', 'woo-advanced-shipment-tracking'); ?></li>
|
217 |
-
<li><?php _e('Automatically change order status to Delivered once the shipment is delivered to your customers.', 'woo-advanced-shipment-tracking'); ?></li>
|
218 |
-
<li><?php _e('Option to filter orders with invalid tracking numbers or by shipment status event in orders admin', 'woo-advanced-shipment-tracking'); ?></li>
|
219 |
-
<li><?php _e('Send personalized emails to notify the customer when their shipments are In Transit, Out For Delivery, Delivered or have an exception.', 'woo-advanced-shipment-tracking'); ?></li>
|
220 |
-
<li><?php _e('Direct customers to a Tracking page on your store.', 'woo-advanced-shipment-tracking'); ?></li>
|
221 |
-
</ul>
|
222 |
-
<div class="text-center"><a href="https://trackship.info/" target="_blank" class="button-primary woocommerce-upload-csv-save-button btn_green2 btn_large"><?php _e('SIGNUP NOW', 'woo-advanced-shipment-tracking'); ?></a></div>
|
223 |
</div>
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
</form>
|
229 |
-
</div>
|
230 |
<?php
|
231 |
if($wc_ast_api_key){
|
232 |
include 'zorem_admin_sidebar.php';
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* html code for trackship tab
|
4 |
+
*/
|
5 |
+
|
6 |
+
?>
|
7 |
<section id="content3" class="tab_section">
|
8 |
<div class="d_table" style="">
|
9 |
+
<div class="tab_inner_container">
|
10 |
+
<form method="post" id="wc_ast_trackship_form" action="" enctype="multipart/form-data">
|
11 |
+
<?php
|
12 |
+
$wc_ast_api_key = get_option('wc_ast_api_key');
|
13 |
+
|
14 |
+
if($wc_ast_api_key){
|
15 |
+
$url = 'https://my.trackship.info/wp-json/tracking/get_user_plan';
|
16 |
+
$args['body'] = array(
|
17 |
+
'user_key' => $wc_ast_api_key,
|
18 |
+
);
|
19 |
+
$response = wp_remote_post( $url, $args );
|
20 |
+
$plan_data = json_decode($response['body']);
|
21 |
+
?>
|
22 |
+
|
23 |
+
<table class="form-table heading-table">
|
24 |
+
<tbody>
|
25 |
+
<tr valign="top">
|
26 |
+
<td><h3 style=""><?php _e( 'Connection status', 'woo-advanced-shipment-tracking' ); ?></h3></td>
|
27 |
+
</tr>
|
28 |
+
</tbody>
|
29 |
+
</table>
|
30 |
+
<table class="form-table">
|
31 |
+
<tbody>
|
32 |
+
<tr valign="top">
|
33 |
+
<td><label><?php _e( 'TrackShip Connection Status', 'woo-advanced-shipment-tracking' ); ?></label></td>
|
34 |
+
<td class="forminp">
|
35 |
+
<fieldset>
|
36 |
+
<a href="https://my.trackship.info/" target="_blank">
|
37 |
+
<span class="api_connected"><label><?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></label><span class="dashicons dashicons-yes"></span></span>
|
38 |
+
</a>
|
39 |
+
</fieldset>
|
40 |
+
</td>
|
41 |
+
</tr>
|
42 |
+
<tr valign="top">
|
43 |
+
<td><label><?php _e( 'Trackers Balance', 'woo-advanced-shipment-tracking' ); ?></label></td>
|
44 |
+
<td class="forminp">
|
45 |
+
<fieldset>
|
46 |
+
<strong><?php echo get_option('trackers_balance'); ?></strong>
|
47 |
+
</fieldset>
|
48 |
+
</td>
|
49 |
+
</tr>
|
50 |
+
<tr valign="top">
|
51 |
+
<td><label><?php _e( 'Current Plan', 'woo-advanced-shipment-tracking' ); ?></label></td>
|
52 |
+
<td class="forminp">
|
53 |
+
<fieldset>
|
54 |
+
<strong>
|
55 |
+
<?php
|
56 |
+
if(isset($plan_data->subscription_plan)){
|
57 |
+
echo $plan_data->subscription_plan;
|
58 |
+
}
|
59 |
+
?>
|
60 |
+
</strong>
|
61 |
+
</fieldset>
|
62 |
+
</td>
|
63 |
+
</tr>
|
64 |
+
<tr valign="top">
|
65 |
+
<td colspan="2">
|
66 |
+
<?php _e( 'You are now connected with TrackShip! TrackShip makes it effortless to automate your post shipping operations and get tracking and delivery status updates directly in the WooCommerce admin.', 'woo-advanced-shipment-tracking' ); ?>
|
67 |
+
</td>
|
68 |
+
</tr>
|
69 |
+
<tr valign="top">
|
70 |
+
<td colspan="2">
|
71 |
+
<a href="https://trackship.info/documentation/" class="" style="margin-right: 10px;" target="blank"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a>
|
72 |
+
<a href="https://my.trackship.info/" class="" target="blank"><?php _e( 'TrackShip Dashboard', 'woo-advanced-shipment-tracking' ); ?></a>
|
73 |
+
</td>
|
74 |
+
</tr>
|
75 |
+
</tbody>
|
76 |
+
</table>
|
77 |
+
|
78 |
+
<table class="form-table heading-table">
|
79 |
+
<tbody>
|
80 |
+
<tr valign="top">
|
81 |
+
<td>
|
82 |
+
<h3 style=""><?php _e( 'General Settings', 'woo-advanced-shipment-tracking' ); ?></h3>
|
83 |
+
</td>
|
84 |
+
</tr>
|
85 |
+
</tbody>
|
86 |
+
</table>
|
87 |
+
<?php $this->get_html( $this->get_trackship_general_data() ); ?>
|
88 |
+
<table class="form-table">
|
89 |
+
<tbody>
|
90 |
+
<tr valign="top">
|
91 |
+
<td class="button-column">
|
92 |
+
<div class="submit">
|
93 |
+
<button name="save" class="button-primary woocommerce-save-button btn_ast2 btn_large" type="submit" value="Save changes"><?php _e( 'Save Changes', 'woo-advanced-shipment-tracking' ); ?></button>
|
94 |
+
<div class="spinner"></div>
|
95 |
+
<?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form' );?>
|
96 |
+
<input type="hidden" name="action" value="wc_ast_trackship_form_update">
|
97 |
+
</div>
|
98 |
+
</td>
|
99 |
+
</tr>
|
100 |
+
</tbody>
|
101 |
+
</table>
|
102 |
+
|
103 |
+
<table class="form-table heading-table">
|
104 |
+
<tbody>
|
105 |
+
<tr valign="top">
|
106 |
+
<td>
|
107 |
+
<h3 style=""><?php _e( 'Tracking Page', 'woo-advanced-shipment-tracking' ); ?></h3>
|
108 |
+
</td>
|
109 |
+
</tr>
|
110 |
+
</tbody>
|
111 |
+
</table>
|
112 |
+
<?php $this->get_html( $this->get_trackship_page_data() ); ?>
|
113 |
+
<table class="form-table">
|
114 |
+
<tbody>
|
115 |
+
<tr valign="top">
|
116 |
+
<td>
|
117 |
+
<a href="<?php echo get_home_url(); ?>?action=preview_tracking_page" class="tracking-preview-link" target="_blank" style="line-height: 30px;"><?php _e('Click to preview the tracking page', 'woo-advanced-shipment-tracking'); ?></a>
|
118 |
+
<p class="tracking-preview-desc"><?php _e('PLEASE NOTE - make sure to save your settings before preview.', 'woo-advanced-shipment-tracking'); ?></p>
|
119 |
+
</td>
|
120 |
+
</tr>
|
121 |
+
<tr valign="top">
|
122 |
+
<td class="button-column">
|
123 |
+
<div class="submit">
|
124 |
+
<button name="save" class="button-primary woocommerce-save-button btn_ast2 btn_large" type="submit" value="Save changes"><?php _e( 'Save Changes', 'woo-advanced-shipment-tracking' ); ?></button>
|
125 |
+
<div class="spinner"></div>
|
126 |
+
<?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form' );?>
|
127 |
+
<input type="hidden" name="action" value="wc_ast_trackship_form_update">
|
128 |
+
</div>
|
129 |
+
</td>
|
130 |
+
</tr>
|
131 |
+
</tbody>
|
132 |
+
</table>
|
133 |
+
<?php
|
134 |
+
if($wc_ast_api_key){
|
135 |
+
?>
|
136 |
+
<?php } ?>
|
137 |
+
<h3 class="table-heading"><?php _e('Shipment Status Notifications ', 'woo-advanced-shipment-tracking'); ?></h3>
|
138 |
+
<?php
|
139 |
+
$wcast_enable_delivered_email = get_option('woocommerce_customer_delivered_order_settings');
|
140 |
+
$wcast_enable_pretransit_email = get_theme_mod('wcast_enable_pretransit_email');
|
141 |
+
$wcast_enable_intransit_email = get_theme_mod('wcast_enable_intransit_email');
|
142 |
+
$wcast_enable_outfordelivery_email = get_theme_mod('wcast_enable_outfordelivery_email');
|
143 |
+
$wcast_enable_failure_email = get_theme_mod('wcast_enable_failure_email');
|
144 |
+
$wcast_enable_delivered_status_email = get_theme_mod('wcast_enable_delivered_status_email');
|
145 |
+
$wcast_enable_returntosender_email = get_theme_mod('wcast_enable_returntosender_email');
|
146 |
+
$wcast_enable_availableforpickup_email = get_theme_mod('wcast_enable_availableforpickup_email');
|
147 |
+
$wc_ast_api_key = get_option('wc_ast_api_key');
|
148 |
+
//echo '<pre>';print_r($wcast_enable_delivered_email['enabled']);echo '</pre>';
|
149 |
+
?>
|
150 |
+
<section class="ac-container">
|
151 |
+
|
152 |
+
<div class="headig_label <?php if($wcast_enable_intransit_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
153 |
+
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/In-Transit-512.png">
|
154 |
+
<span class="email_status_span">
|
155 |
+
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
156 |
+
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_intransit_email">
|
157 |
+
<input type="checkbox" name="wcast_enable_intransit_email" id="wcast_enable_intransit_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_intransit_email == 1) { echo 'checked'; } ?> />
|
158 |
+
</label>
|
159 |
+
</span>
|
160 |
+
</span>
|
161 |
+
<a href="<?php echo wcast_intransit_customizer_email::get_customizer_url('customer_intransit_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('In Transit', 'woo-advanced-shipment-tracking'); ?></a>
|
162 |
+
<a class="edit_customizer_a" href="<?php echo wcast_intransit_customizer_email::get_customizer_url('customer_intransit_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
|
163 |
+
<p class="shipment_about"><?php _e('Carrier has accepted or picked up shipment from shipper. The shipment is on the way.', 'woo-advanced-shipment-tracking'); ?></p>
|
164 |
+
</div>
|
165 |
|
166 |
+
<div class="headig_label <?php if($wcast_enable_returntosender_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
167 |
+
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/return-to-sender-512.png">
|
168 |
+
<span class="email_status_span">
|
169 |
+
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
170 |
+
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_returntosender_email">
|
171 |
+
<input type="checkbox" name="wcast_enable_returntosender_email" id="wcast_enable_returntosender_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_returntosender_email == 1) { echo 'checked'; } ?> />
|
172 |
+
</label>
|
173 |
+
</span>
|
174 |
+
</span>
|
175 |
+
<a href="<?php echo wcast_returntosender_customizer_email::get_customizer_url('customer_returntosender_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Return To Sender', 'woo-advanced-shipment-tracking'); ?></a>
|
176 |
+
<a class="edit_customizer_a" href="<?php echo wcast_returntosender_customizer_email::get_customizer_url('customer_returntosender_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
|
177 |
+
<p class="shipment_about"><?php _e('Shipment is returned to sender', 'woo-advanced-shipment-tracking'); ?></p>
|
178 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
|
180 |
+
<div class="headig_label <?php if($wcast_enable_availableforpickup_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
181 |
+
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/available-for-picup-512.png">
|
182 |
+
<span class="email_status_span">
|
183 |
+
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
184 |
+
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_availableforpickup_email">
|
185 |
+
<input type="checkbox" name="wcast_enable_availableforpickup_email" id="wcast_enable_availableforpickup_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_availableforpickup_email == 1) { echo 'checked'; } ?> />
|
186 |
+
</label>
|
187 |
+
</span>
|
188 |
+
</span>
|
189 |
+
<a href="<?php echo wcast_availableforpickup_customizer_email::get_customizer_url('customer_availableforpickup_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Available For Pickup', 'woo-advanced-shipment-tracking'); ?></a>
|
190 |
+
<a class="edit_customizer_a" href="<?php echo wcast_availableforpickup_customizer_email::get_customizer_url('customer_availableforpickup_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
|
191 |
+
<p class="shipment_about"><?php _e('The shipment is ready to pickup.', 'woo-advanced-shipment-tracking'); ?></p>
|
192 |
+
</div>
|
193 |
+
<div class="headig_label <?php if($wcast_enable_outfordelivery_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
194 |
+
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Out-for-Delivery-512.png">
|
195 |
+
<span class="email_status_span">
|
196 |
+
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
197 |
+
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_outfordelivery_email">
|
198 |
+
<input type="checkbox" name="wcast_enable_outfordelivery_email" id="wcast_enable_outfordelivery_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_outfordelivery_email == 1) { echo 'checked'; } ?> />
|
199 |
+
</label>
|
200 |
+
</span>
|
201 |
+
</span>
|
202 |
+
<a href="<?php echo wcast_outfordelivery_customizer_email::get_customizer_url('customer_outfordelivery_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Out For Delivery', 'woo-advanced-shipment-tracking'); ?></a>
|
203 |
+
<a class="edit_customizer_a" href="<?php echo wcast_outfordelivery_customizer_email::get_customizer_url('customer_outfordelivery_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
|
204 |
+
<p class="shipment_about"><?php _e('Carrier is about to deliver the shipment', 'woo-advanced-shipment-tracking'); ?></p>
|
205 |
+
</div>
|
206 |
|
207 |
+
<div class="delivered_shipment_label headig_label <?php if($wcast_enable_delivered_status_email == 1){ echo 'enable'; } else{ echo 'disable'; }?> <?php if($wcast_enable_delivered_email['enabled'] === 'yes'){ echo 'delivered_enabel'; } ?>">
|
208 |
+
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/Delivered-512.png">
|
209 |
+
<span class="email_status_span">
|
210 |
+
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
211 |
+
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_delivered_status_email">
|
212 |
+
<input type="checkbox" name="wcast_enable_delivered_status_email" id="wcast_enable_delivered_status_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_delivered_status_email == 1 && $wcast_enable_delivered_email['enabled'] != 'yes') { echo 'checked'; } ?> <?php if($wcast_enable_delivered_email['enabled'] === 'yes'){ echo 'disabled'; }?> />
|
213 |
+
</label>
|
214 |
+
</span>
|
215 |
+
</span>
|
216 |
+
<a href="<?php echo wcast_delivered_customizer_email::get_customizer_url('customer_delivered_status_email','shipment-status-notifications') ?>" class="email_heading <?php if($wcast_enable_delivered_email['enabled'] === 'yes'){ echo 'disabled_link'; }?>"><?php _e('Delivered', 'woo-advanced-shipment-tracking'); ?></a>
|
217 |
+
<a class="edit_customizer_a <?php if($wcast_enable_delivered_email['enabled'] === 'yes'){ echo 'disabled_link'; }?>" href="<?php echo wcast_delivered_customizer_email::get_customizer_url('customer_delivered_status_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
|
218 |
+
<p class="shipment_about"><?php _e('The shipment was delivered successfully', 'woo-advanced-shipment-tracking'); ?></p>
|
219 |
+
<p class="delivered_message <?php if($wcast_enable_delivered_email['enabled'] === 'yes'){ echo 'disable_delivered'; }?>"><?php _e("You already have delivered email enabled, to enable this email you'll need to disable the order status delivered in settings.", 'woo-advanced-shipment-tracking'); ?></p>
|
220 |
+
</div>
|
221 |
+
|
222 |
+
<div class="headig_label <?php if($wcast_enable_failure_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
223 |
+
<img class="email-icon" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/css/icons/failure-512.png">
|
224 |
+
<span class="email_status_span">
|
225 |
+
<span class="mdl-list__item-secondary-action shipment_status_toggle">
|
226 |
+
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="wcast_enable_failure_email">
|
227 |
+
<input type="checkbox" name="wcast_enable_failure_email" id="wcast_enable_failure_email" class="mdl-switch__input" value="yes" <?php if($wcast_enable_failure_email == 1) { echo 'checked'; } ?> />
|
228 |
+
</label>
|
229 |
+
</span>
|
230 |
+
</span>
|
231 |
+
<a href="<?php echo wcast_failure_customizer_email::get_customizer_url('customer_failure_email','shipment-status-notifications') ?>" class="email_heading"><?php _e('Failed Attempt', 'woo-advanced-shipment-tracking'); ?></a>
|
232 |
+
<a class="edit_customizer_a" href="<?php echo wcast_failure_customizer_email::get_customizer_url('customer_failure_email','shipment-status-notifications') ?>"><?php _e('Edit', 'woocommerce'); ?></a>
|
233 |
+
<p class="shipment_about"><?php _e('Carrier attempted to deliver but failed, and usually leaves a notice and will try to deliver the package again.', 'woo-advanced-shipment-tracking'); ?></p>
|
234 |
+
</div>
|
235 |
+
</section>
|
236 |
|
237 |
+
<table class="form-table heading-table">
|
238 |
+
<tbody>
|
239 |
+
<tr valign="top">
|
240 |
+
<td>
|
241 |
+
<h3 style=""><?php _e( 'Get Shipment Status', 'woo-advanced-shipment-tracking' ); ?></h3>
|
242 |
+
</td>
|
243 |
+
</tr>
|
244 |
+
</tbody>
|
245 |
+
</table>
|
246 |
+
<table class="form-table">
|
247 |
+
<tbody>
|
248 |
+
<tr>
|
249 |
+
<td>
|
250 |
+
<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>
|
251 |
+
</td>
|
252 |
+
</tr>
|
253 |
+
</tbody>
|
254 |
+
</table>
|
255 |
+
<?php $this->get_html( $this->get_trackship_bulk_actions_data() ); ?>
|
256 |
+
|
257 |
+
<?php } else{ ?>
|
258 |
+
<div class="section-content trackship_section">
|
259 |
+
<div class="trackship-upsell-overlay">
|
260 |
+
<div class="trackship-upsell-top">
|
261 |
+
<h3><img src="https://trackship.info/wp-content/uploads/2019/08/trackship-400.png" class="trackship_logo"></h3>
|
262 |
+
<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>
|
263 |
+
<p class="trackship-upsell-subtitle">You must have account TracksShip and connect your store in order to activate these advanced features:</p>
|
264 |
+
</div>
|
265 |
+
<div class="trackship-upsell-content">
|
266 |
+
<ul>
|
267 |
+
<li>Automatically track your shipments with 100+ shipping providers.</li>
|
268 |
+
<li>Display Shipment Status and latest shipment status, update date and est. delivery date on WooCommerce orders admin.</li>
|
269 |
+
<li>Option to manually get shipment tracking updates for orders.</li>
|
270 |
+
<li>Automatically change order status to Delivered once the shipment is delivered to your customers.</li>
|
271 |
+
<li>Option to filter orders with invalid tracking numbers or by shipment status event in orders admin</li>
|
272 |
+
<li>Send personalized emails to notify the customer when their shipments are In Transit, Out For Delivery, Delivered or have an exception.</li>
|
273 |
+
<li>Direct customers to a Tracking page on your store.</li>
|
274 |
+
</ul>
|
275 |
+
<div class="text-center"><a href="https://trackship.info/" target="_blank" class="button-primary btn_green2 btn_large">SIGNUP NOW</a></div>
|
276 |
+
</div>
|
277 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
</div>
|
279 |
+
<?php }
|
280 |
+
?>
|
281 |
+
</form>
|
282 |
+
</div>
|
|
|
|
|
283 |
<?php
|
284 |
if($wc_ast_api_key){
|
285 |
include 'zorem_admin_sidebar.php';
|
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; ?>"> </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,71 +1,55 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
),
|
57 |
-
6 => array(
|
58 |
-
'name' => 'Bit Payment Gateway for WooCommerce',
|
59 |
-
'url' => 'https://wordpress.org/plugins/woo-bit-payment-gateway/',
|
60 |
-
'img' => 'WooCommerce-Bit-payment-thumbnail.jpg',
|
61 |
-
),*/
|
62 |
-
);
|
63 |
-
?>
|
64 |
-
<ul>
|
65 |
-
<?php foreach($plugin_array as $plugin){ ?>
|
66 |
-
<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>
|
67 |
-
<?php }?>
|
68 |
-
</ul>
|
69 |
-
<!--a href="https://www.zorem.com/plugins/" target="_blank">view all zorem plugins</a-->
|
70 |
-
</div>
|
71 |
-
</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 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
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', 'woocommerce' ); ?></span><i class="icon-angle-right"></i></a></p>
|
11 |
+
|
12 |
+
<p><a href="https://trackship.info/documentation/" target="_blank" class="button button-primary btn_green" target="_blank"><span><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></span><i class="icon-angle-right"></i></a></p>
|
13 |
+
</div>
|
14 |
+
|
15 |
+
<div class="zorem-sidebar__section">
|
16 |
+
<h3>More plugins by zorem</h3>
|
17 |
+
<?php
|
18 |
+
$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,10 +2,10 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2019-09-
|
6 |
-
"PO-Revision-Date: 2019-
|
7 |
-
"Last-Translator:
|
8 |
-
"Language-Team:
|
9 |
"Language: he_IL\n"
|
10 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
11 |
"MIME-Version: 1.0\n"
|
@@ -21,8 +21,13 @@ msgid ""
|
|
21 |
"Shipment Tracking!"
|
22 |
msgstr "יש להתקין ולהפעיל% sWooCommerce% s למעקב המשלוח המתקדם של WooCommerce!"
|
23 |
|
24 |
-
#: woocommerce-advanced-shipment-tracking.php:
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
26 |
#, php-format
|
27 |
msgid ""
|
28 |
"<strong>PLEASE NOTE</strong> - If you use the custom order status "
|
@@ -32,9 +37,14 @@ msgid ""
|
|
32 |
"php here or you can manually change all your \"delivered\" order to "
|
33 |
"\"completed\" before deactivating the plugin."
|
34 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:209
|
37 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
38 |
msgid "Shipped"
|
39 |
msgstr "נשלח"
|
40 |
|
@@ -47,16 +57,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:
|
55 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
56 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
60 |
msgid "Delivered"
|
61 |
msgstr "נמסרה ללקוח"
|
62 |
|
@@ -70,7 +80,7 @@ msgstr[1] ""
|
|
70 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:261
|
71 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:290
|
72 |
msgid "Updated Tracking"
|
73 |
-
msgstr ""
|
74 |
|
75 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:266
|
76 |
#, php-format
|
@@ -87,486 +97,398 @@ msgstr "שנה סטטוס למסירה"
|
|
87 |
msgid "Shipment status"
|
88 |
msgstr "סטטוס המשלוח"
|
89 |
|
90 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
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:
|
130 |
msgid "Really delete this entry? This will not be undo."
|
131 |
msgstr "באמת למחוק ערך זה? זה לא יהיה לבטל."
|
132 |
|
133 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
134 |
msgid "You can upload only csv file."
|
135 |
msgstr "ניתן לטעון רק קובץ csv."
|
136 |
|
137 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
138 |
msgid "This browser does not support HTML5."
|
139 |
msgstr "דפדפן זה אינו תומך ב- HTML5."
|
140 |
|
141 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
142 |
msgid "Please upload a valid CSV file."
|
143 |
msgstr "העלה קובץ CSV חוקי."
|
144 |
|
145 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
|
|
|
|
|
|
|
|
154 |
msgid "Bulk Upload"
|
155 |
msgstr "העלאה המונית"
|
156 |
|
157 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
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:
|
179 |
-
|
180 |
-
|
181 |
-
msgstr ""
|
182 |
|
183 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
184 |
-
|
185 |
-
|
|
|
186 |
|
187 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
193 |
msgid "Set order status Delivered when order is delivered"
|
194 |
-
msgstr ""
|
195 |
|
196 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
197 |
#, php-format
|
198 |
msgid ""
|
199 |
-
"You have %s %s orders
|
200 |
-
"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
204 |
msgid "Get Shipment Status"
|
205 |
-
msgstr ""
|
206 |
|
207 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
214 |
msgid "Select Tracking Page"
|
215 |
-
msgstr ""
|
216 |
|
217 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
227 |
msgid "Select primary color for tracking page"
|
228 |
-
msgstr ""
|
229 |
|
230 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
231 |
msgid "Select content border color for tracking page"
|
232 |
-
msgstr ""
|
233 |
|
234 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
235 |
-
msgid ""
|
236 |
-
|
237 |
-
|
238 |
-
|
|
|
|
|
239 |
|
240 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
|
|
|
|
|
|
|
|
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:
|
247 |
-
msgid "
|
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:
|
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:
|
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:
|
280 |
-
msgid "
|
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:
|
288 |
-
msgid "
|
289 |
-
msgstr ""
|
290 |
|
291 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
292 |
msgid "Show tracking info in Invoice"
|
293 |
-
msgstr ""
|
294 |
|
295 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
296 |
msgid "Show tracking info in Packing Slip"
|
297 |
-
msgstr ""
|
298 |
|
299 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
300 |
-
msgid "Enable
|
301 |
-
msgstr "אפשר
|
302 |
|
303 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
310 |
-
msgid "Delivered
|
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:
|
330 |
-
msgid ""
|
331 |
-
|
332 |
-
"plugin"
|
333 |
-
msgstr ""
|
334 |
|
335 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
336 |
-
msgid "
|
337 |
-
msgstr ""
|
338 |
|
339 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
340 |
-
msgid "
|
341 |
-
msgstr ""
|
342 |
|
343 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:1241
|
344 |
-
|
345 |
-
|
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:
|
354 |
msgid "Get shipment status"
|
355 |
-
msgstr ""
|
356 |
|
357 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
358 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
362 |
msgid "In Transit"
|
363 |
-
msgstr ""
|
364 |
|
365 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
366 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
367 |
#: includes/customizer/class-wcast-customizer.php:66
|
368 |
msgid "Pre Transit"
|
369 |
-
msgstr ""
|
370 |
|
371 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
372 |
-
|
373 |
-
|
|
|
|
|
|
|
|
|
374 |
|
375 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
|
|
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:
|
379 |
msgid "Available For Pickup"
|
380 |
-
msgstr ""
|
381 |
|
382 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
383 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
387 |
msgid "Return To Sender"
|
388 |
-
msgstr ""
|
389 |
|
390 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
391 |
msgid "Delivery Failure"
|
392 |
-
msgstr ""
|
393 |
|
394 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
395 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
396 |
msgid "Unknown"
|
397 |
msgstr "לא ידוע"
|
398 |
|
399 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
400 |
msgid "Pending TrackShip"
|
401 |
-
msgstr ""
|
402 |
|
403 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
404 |
msgid "Invalid Tracking"
|
405 |
-
msgstr ""
|
406 |
|
407 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
408 |
-
|
409 |
-
|
|
|
410 |
|
411 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
412 |
msgid "Invalid User Key"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
416 |
msgid "Resend delivered order notification"
|
417 |
msgstr "שלח שוב את הודעת ההזמנה שנשלחו"
|
418 |
|
419 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
420 |
msgid "Shipped Order"
|
421 |
msgstr "ההזמנה נשלחה"
|
422 |
|
423 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
424 |
msgid "Mark order as delivered"
|
425 |
-
msgstr ""
|
426 |
|
427 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
428 |
msgid "Add Tracking"
|
429 |
-
msgstr ""
|
430 |
|
431 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
432 |
msgid "Change order status to"
|
433 |
-
msgstr ""
|
434 |
|
435 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
436 |
-
#: includes/views/admin_options_shipping_provider.php:
|
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:
|
442 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
443 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
444 |
msgid "view details"
|
445 |
msgstr "הצג פרטים"
|
446 |
|
447 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
448 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
449 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
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:
|
465 |
msgid "Failed Attempt"
|
466 |
-
msgstr ""
|
467 |
|
468 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
469 |
-
msgid "
|
470 |
-
msgstr ""
|
471 |
|
472 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
473 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
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:
|
479 |
msgid "Filter by shipment status"
|
480 |
-
msgstr ""
|
481 |
|
482 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
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:
|
490 |
msgid "Order ID"
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
494 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
495 |
msgid "Found in your order confirmation email."
|
496 |
msgstr ""
|
|
|
497 |
|
498 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
499 |
msgid "Order Email"
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
503 |
#: includes/class-wc-advanced-shipment-tracking.php:260
|
504 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
505 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
506 |
#: includes/customizer/class-wc-tracking-info-customizer.php:137
|
507 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
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:
|
515 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
516 |
#, php-format
|
517 |
msgid "Shipment - %s (out of %s)"
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
521 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
522 |
msgid "Order: "
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
526 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
527 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
528 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
529 |
msgid "Estimated Delivery Date: "
|
530 |
-
msgstr ""
|
531 |
|
532 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
533 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
534 |
msgid "Tracking Details"
|
535 |
-
msgstr ""
|
536 |
|
537 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
538 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
539 |
msgid "view more"
|
540 |
msgstr "הצג עוד"
|
541 |
|
542 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
543 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
544 |
msgid "view less"
|
545 |
msgstr "הצג פחות"
|
546 |
|
547 |
-
|
548 |
-
|
549 |
-
|
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
|
556 |
#: includes/class-wc-advanced-shipment-tracking.php:244
|
557 |
#: includes/customizer/class-wcast-customizer.php:30
|
558 |
msgid "Shipment Tracking"
|
559 |
-
msgstr "מעקב
|
560 |
|
561 |
#: includes/class-wc-advanced-shipment-tracking.php:179
|
562 |
#: includes/class-wc-advanced-shipment-tracking.php:351
|
563 |
msgid "Change order to Shipped?"
|
564 |
-
msgstr ""
|
565 |
|
566 |
#: includes/class-wc-advanced-shipment-tracking.php:181
|
567 |
#: includes/class-wc-advanced-shipment-tracking.php:353
|
568 |
msgid "Change order to Completed?"
|
569 |
-
msgstr ""
|
570 |
|
571 |
#: includes/class-wc-advanced-shipment-tracking.php:186
|
572 |
msgid "Add Tracking Number"
|
@@ -575,7 +497,7 @@ msgstr "הוסף מספר מעקב"
|
|
575 |
#: includes/class-wc-advanced-shipment-tracking.php:191
|
576 |
#: includes/class-wc-advanced-shipment-tracking.php:369
|
577 |
msgid "Provider:"
|
578 |
-
msgstr "ספק
|
579 |
|
580 |
#: includes/class-wc-advanced-shipment-tracking.php:211
|
581 |
#: includes/class-wc-advanced-shipment-tracking.php:407
|
@@ -587,6 +509,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 +528,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,6 +548,17 @@ 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 "התראות אימייל על שינוי סטטוס משלוח"
|
@@ -631,33 +567,29 @@ msgstr "התראות אימייל על שינוי סטטוס משלוח"
|
|
631 |
msgid "Tracking info display"
|
632 |
msgstr "תצוגת מידע מעקב"
|
633 |
|
634 |
-
#: includes/customizer/class-wcast-customizer.php:
|
635 |
-
|
636 |
-
|
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"
|
650 |
-
msgstr ""
|
651 |
|
652 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:117
|
653 |
msgid ""
|
654 |
"Hi there. we thought you'd like to know that your recent order from "
|
655 |
"{site_title} is available for pickup."
|
656 |
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
|
@@ -667,11 +599,11 @@ msgstr ""
|
|
667 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:148
|
668 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:149
|
669 |
msgid "This section lets you customize the Email Content."
|
670 |
-
msgstr ""
|
671 |
|
672 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:163
|
673 |
msgid "Enable Available For Pickup shipment status email"
|
674 |
-
msgstr ""
|
675 |
|
676 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:179
|
677 |
#: includes/customizer/class-wc-delivered-email-customizer.php:178
|
@@ -682,7 +614,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 +690,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 |
|
@@ -779,7 +710,7 @@ msgstr "אנא הזן כותרת דוא\"ל כאן"
|
|
779 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:265
|
780 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:266
|
781 |
msgid "Show tracking details"
|
782 |
-
msgstr ""
|
783 |
|
784 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:282
|
785 |
#: includes/customizer/class-wc-delivered-email-customizer.php:281
|
@@ -816,7 +747,7 @@ msgstr "הצג כתובת למשלוח"
|
|
816 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:330
|
817 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:331
|
818 |
msgid "Google Analytics link tracking"
|
819 |
-
msgstr ""
|
820 |
|
821 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:332
|
822 |
#: includes/customizer/class-wc-delivered-email-customizer.php:331
|
@@ -845,7 +776,7 @@ msgstr "תוכן דוא\"ל"
|
|
845 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:372
|
846 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:373
|
847 |
msgid "Available placeholders"
|
848 |
-
msgstr ""
|
849 |
|
850 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:416
|
851 |
#: includes/customizer/class-wc-delivered-email-customizer.php:416
|
@@ -854,32 +785,35 @@ 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:
|
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"
|
863 |
msgstr ""
|
|
|
864 |
|
865 |
#: includes/customizer/class-wc-delivered-email-customizer.php:116
|
866 |
msgid ""
|
867 |
"Hi there. we thought you'd like to know that your recent order from "
|
868 |
"{site_title} has been Delivered."
|
869 |
msgstr ""
|
|
|
870 |
|
871 |
#: includes/customizer/class-wc-delivered-email-customizer.php:147
|
872 |
msgid "Delivered shipment status email"
|
873 |
-
msgstr ""
|
874 |
|
875 |
#: includes/customizer/class-wc-delivered-email-customizer.php:162
|
876 |
msgid "Enable Delivered shipment status email"
|
877 |
-
msgstr ""
|
878 |
|
879 |
#: includes/customizer/class-wc-email-customizer.php:122
|
880 |
#: includes/emails/class-shipment-delivered-email.php:92
|
881 |
msgid "Your {site_title} order is now delivered"
|
882 |
msgstr ""
|
|
|
883 |
|
884 |
#: includes/customizer/class-wc-email-customizer.php:123
|
885 |
#: includes/emails/class-shipment-delivered-email.php:102
|
@@ -888,16 +822,16 @@ msgstr ""
|
|
888 |
|
889 |
#: includes/customizer/class-wc-email-customizer.php:124
|
890 |
msgid "Hi there. Your recent order on {site_title} has been delivered."
|
891 |
-
msgstr ""
|
892 |
|
893 |
#: includes/customizer/class-wc-email-customizer.php:171
|
894 |
msgid "Enable Delivered order status email"
|
895 |
-
msgstr ""
|
896 |
|
897 |
#: includes/customizer/class-wc-email-customizer.php:193
|
898 |
#: includes/customizer/class-wc-tracking-info-customizer.php:165
|
899 |
msgid "Please select a order..."
|
900 |
-
msgstr ""
|
901 |
|
902 |
#: includes/customizer/class-wc-email-customizer.php:211
|
903 |
msgid "Receipts"
|
@@ -912,33 +846,35 @@ msgstr ""
|
|
912 |
#: includes/customizer/class-wc-email-customizer.php:235
|
913 |
#: includes/customizer/class-wc-email-customizer.php:258
|
914 |
msgid "Available variables: {site_title}, {order_number}"
|
915 |
-
msgstr ""
|
916 |
|
917 |
#: includes/customizer/class-wc-email-customizer.php:281
|
918 |
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"
|
925 |
-
msgstr ""
|
926 |
|
927 |
#: includes/customizer/class-wc-email-customizer.php:316
|
928 |
msgid "Display order details"
|
929 |
-
msgstr ""
|
930 |
|
931 |
#: includes/customizer/class-wc-email-customizer.php:333
|
932 |
msgid "Display Shipping Address"
|
933 |
-
msgstr ""
|
934 |
|
935 |
#: includes/customizer/class-wc-email-customizer.php:350
|
936 |
msgid "Display Billing Address"
|
937 |
-
msgstr ""
|
938 |
|
939 |
#: includes/customizer/class-wc-email-customizer.php:367
|
940 |
msgid "Enable Google Analytics tracking"
|
941 |
-
msgstr ""
|
942 |
|
943 |
#: includes/customizer/class-wc-email-customizer.php:385
|
944 |
msgid ""
|
@@ -948,85 +884,88 @@ msgstr ""
|
|
948 |
|
949 |
#: includes/customizer/class-wc-failure-email-customizer.php:112
|
950 |
msgid "Your order #{order_number} is Failed Attempt"
|
951 |
-
msgstr ""
|
952 |
|
953 |
#: includes/customizer/class-wc-failure-email-customizer.php:114
|
954 |
msgid ""
|
955 |
"Hi there. we thought you'd like to know that your recent order from "
|
956 |
"{site_title} is Failed Attempt"
|
957 |
msgstr ""
|
|
|
958 |
|
959 |
#: includes/customizer/class-wc-failure-email-customizer.php:144
|
960 |
msgid "Failed Attempt shipment status email"
|
961 |
-
msgstr ""
|
962 |
|
963 |
#: includes/customizer/class-wc-failure-email-customizer.php:159
|
964 |
msgid "Enable Failed Attempt shipment status email"
|
965 |
-
msgstr ""
|
966 |
|
967 |
#: includes/customizer/class-wc-intransit-email-customizer.php:114
|
968 |
msgid "Your order #{order_number} is in transit"
|
969 |
-
msgstr ""
|
970 |
|
971 |
#: includes/customizer/class-wc-intransit-email-customizer.php:116
|
972 |
msgid ""
|
973 |
"Hi there. we thought you'd like to know that your recent order from "
|
974 |
"{site_title} is in transit"
|
975 |
msgstr ""
|
|
|
976 |
|
977 |
#: includes/customizer/class-wc-intransit-email-customizer.php:146
|
978 |
msgid "In Transit shipment status email"
|
979 |
-
msgstr ""
|
980 |
|
981 |
#: includes/customizer/class-wc-intransit-email-customizer.php:161
|
982 |
msgid "Enable In Transit shipment status email"
|
983 |
-
msgstr ""
|
984 |
|
985 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:114
|
986 |
msgid "Your order #{order_number} is out for delivery"
|
987 |
-
msgstr ""
|
988 |
|
989 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:116
|
990 |
msgid ""
|
991 |
"Hi there. we thought you'd like to know that your recent order from "
|
992 |
"{site_title} is out for delivery."
|
993 |
-
msgstr ""
|
994 |
|
995 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:147
|
996 |
msgid "Out For Delivery shipment status email"
|
997 |
-
msgstr ""
|
998 |
|
999 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:162
|
1000 |
msgid "Enable Out For Delivery shipment status email"
|
1001 |
-
msgstr ""
|
1002 |
|
1003 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:115
|
1004 |
msgid "Your order #{order_number} has returned to sender"
|
1005 |
-
msgstr ""
|
1006 |
|
1007 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:117
|
1008 |
msgid ""
|
1009 |
"Hi there. we thought you'd like to know that your recent order from "
|
1010 |
"{site_title} has been returned to sender."
|
1011 |
msgstr ""
|
|
|
1012 |
|
1013 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:148
|
1014 |
msgid "Return To Sender shipment status email"
|
1015 |
-
msgstr ""
|
1016 |
|
1017 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:163
|
1018 |
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:
|
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:
|
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,7 +973,7 @@ 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:
|
1038 |
msgid "Shipped Date"
|
1039 |
msgstr "תאריך משלוח"
|
1040 |
|
@@ -1043,149 +982,155 @@ 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:
|
1048 |
msgid "Tracking Display Position"
|
1049 |
-
msgstr ""
|
1050 |
|
1051 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1052 |
msgid "Before Order Details"
|
1053 |
-
msgstr ""
|
1054 |
|
1055 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1056 |
msgid "After Order Details"
|
1057 |
-
msgstr ""
|
1058 |
|
1059 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1060 |
msgid "Main Header text"
|
1061 |
-
msgstr ""
|
1062 |
|
1063 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1064 |
#: templates/pip/tracking-info.php:17
|
1065 |
msgid "Tracking Information"
|
1066 |
msgstr "מעקב אחרי מידע"
|
1067 |
|
1068 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1069 |
msgid "Additional text after header"
|
1070 |
msgstr "טקסט נוסף אחרי כותרת"
|
1071 |
|
1072 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1073 |
-
msgid "Table
|
1074 |
-
msgstr "
|
1075 |
|
1076 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1077 |
msgid "Display Shipment Provider image"
|
1078 |
-
msgstr ""
|
1079 |
|
1080 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1081 |
msgid "Hide date"
|
1082 |
-
msgstr ""
|
1083 |
|
1084 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1085 |
msgid "Provider Header Text"
|
1086 |
-
msgstr ""
|
1087 |
|
1088 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1089 |
msgid "Tracking Number Header Text"
|
1090 |
-
msgstr ""
|
1091 |
|
1092 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1093 |
msgid "Shipped Date Header Text"
|
1094 |
msgstr "טקסט כותרת לעמודת תאריך משלוח"
|
1095 |
|
1096 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1097 |
msgid "Track Label"
|
1098 |
msgstr "טקסט של כפתור מעקב משלוח"
|
1099 |
|
1100 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1101 |
msgid "Track Header Text"
|
1102 |
msgstr "כותרת של כפתור מעקב משלוח"
|
1103 |
|
1104 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1105 |
msgid "Table Design"
|
1106 |
msgstr "עיצוב טבלה"
|
1107 |
|
1108 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1109 |
msgid "Padding"
|
1110 |
-
msgstr ""
|
1111 |
|
1112 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1113 |
msgid "Background color"
|
1114 |
-
msgstr ""
|
1115 |
|
1116 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1117 |
msgid "Border color"
|
1118 |
-
msgstr ""
|
1119 |
|
1120 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
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:
|
1131 |
msgid "Table text align"
|
1132 |
msgstr "יישור טקסט טבלה"
|
1133 |
|
1134 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1135 |
msgid "Left"
|
1136 |
msgstr ""
|
1137 |
|
1138 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1139 |
msgid "Right"
|
1140 |
msgstr ""
|
1141 |
|
1142 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1143 |
msgid "Center"
|
1144 |
-
msgstr ""
|
1145 |
|
1146 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1147 |
msgid "Table header font size"
|
1148 |
msgstr "גודל גופן של כותרת הטבלה"
|
1149 |
|
1150 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1151 |
msgid "Table header font color"
|
1152 |
msgstr "צבע גופן של כותרת הטבלה"
|
1153 |
|
1154 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1155 |
msgid "Table content font size"
|
1156 |
msgstr "גודל גופן של תוכן טבלה"
|
1157 |
|
1158 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1159 |
msgid "Table content font color"
|
1160 |
msgstr "צבע גופן של תוכן טבלה"
|
1161 |
|
1162 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1163 |
msgid "Content line height"
|
1164 |
-
msgstr ""
|
1165 |
|
1166 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
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:
|
1179 |
msgid "Track Link Background Color"
|
1180 |
-
msgstr ""
|
1181 |
|
1182 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1183 |
msgid "Track link Border"
|
1184 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
1185 |
|
1186 |
#: includes/customizer/class-wc-tracking-page-customizer.php:167
|
1187 |
msgid "Header Color"
|
1188 |
-
msgstr ""
|
1189 |
|
1190 |
#: includes/customizer/class-wc-tracking-page-customizer.php:183
|
1191 |
msgid "Success Status Color"
|
@@ -1197,7 +1142,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,23 +1150,23 @@ 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"
|
1212 |
-
msgstr ""
|
1213 |
|
1214 |
#: includes/customizer/class-wc-tracking-page-customizer.php:280
|
1215 |
msgid "Tracking events font color"
|
1216 |
-
msgstr ""
|
1217 |
|
1218 |
#: includes/customizer/class-wc-tracking-page-customizer.php:295
|
1219 |
msgid "Tracking info table margin top/bottom(px)"
|
1220 |
-
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,46 +1174,13 @@ 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 "
|
1267 |
-
msgstr ""
|
1268 |
|
1269 |
#: includes/emails/class-shipment-delivered-email.php:270
|
1270 |
msgid "Edit in customizer"
|
1271 |
-
msgstr ""
|
1272 |
|
1273 |
#: includes/views/admin_options_bulk_upload.php:5
|
1274 |
msgid "Upload CSV"
|
@@ -1280,196 +1192,257 @@ msgid ""
|
|
1280 |
"added)"
|
1281 |
msgstr "להחליף מידע מעקב אם קיים? (אם לא מסומנת, פרטי המעקב יתווספו)"
|
1282 |
|
1283 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1284 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1285 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1286 |
msgid "Upload"
|
1287 |
msgstr "העלה"
|
1288 |
|
1289 |
-
#: includes/views/admin_options_bulk_upload.php:
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1296 |
msgid "You can download an example of the csv file:"
|
1297 |
msgstr "ניתן להוריד דוגמא של קובץ ה-CSV:"
|
1298 |
|
1299 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1300 |
msgid "Download sample csv file"
|
1301 |
-
msgstr "הורד קובץ
|
1302 |
|
1303 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1304 |
msgid ""
|
1305 |
"For detailed instructions on how to upload tracking info in bulk, see our"
|
1306 |
-
msgstr ""
|
1307 |
|
1308 |
-
#: includes/views/
|
1309 |
-
|
1310 |
-
|
|
|
|
|
|
|
1311 |
|
1312 |
-
#: includes/views/
|
1313 |
-
msgid "
|
1314 |
-
msgstr "
|
1315 |
|
1316 |
-
#: includes/views/admin_options_settings.php:
|
1317 |
-
|
1318 |
-
|
1319 |
-
msgstr ""
|
1320 |
|
1321 |
-
#: includes/views/admin_options_settings.php:
|
1322 |
-
|
|
|
|
|
|
|
1323 |
msgid "Delivered Order Status"
|
1324 |
-
msgstr ""
|
1325 |
|
1326 |
-
#: includes/views/
|
1327 |
-
msgid "
|
1328 |
-
msgstr ""
|
1329 |
|
1330 |
-
#: includes/views/
|
1331 |
-
|
1332 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1333 |
msgstr ""
|
1334 |
|
1335 |
-
#: includes/views/
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
|
|
|
|
1340 |
|
1341 |
-
#: includes/views/admin_options_shipping_provider.php:
|
|
|
|
|
|
|
|
|
1342 |
msgid "Add Custom Shipping Provider"
|
1343 |
msgstr "הוספת ספק משלוח ייחודי"
|
1344 |
|
1345 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1346 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1347 |
msgid "Shiping Country"
|
1348 |
-
msgstr ""
|
1349 |
|
1350 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1351 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1352 |
msgid "Global"
|
1353 |
-
msgstr ""
|
1354 |
|
1355 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1356 |
msgid "Edit Custom Shipping Provider"
|
1357 |
-
msgstr ""
|
1358 |
|
1359 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1360 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1361 |
msgid "Sync Providers"
|
1362 |
msgstr "סנכרן רשימת ספקי שילוח"
|
1363 |
|
1364 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1365 |
msgid "Do you really want to sync all providers?"
|
1366 |
-
msgstr ""
|
1367 |
|
1368 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1369 |
msgid "Providers Added"
|
1370 |
-
msgstr ""
|
1371 |
|
1372 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1373 |
msgid "Providers Updated"
|
1374 |
-
msgstr ""
|
1375 |
|
1376 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1377 |
msgid "Providers Deleted"
|
1378 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
1379 |
|
1380 |
-
#: includes/views/
|
1381 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1382 |
msgstr ""
|
1383 |
|
1384 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1385 |
-
|
|
|
|
|
|
|
1386 |
msgid "Tracking Page"
|
1387 |
msgstr "לינק למעקב"
|
1388 |
|
1389 |
-
#: includes/views/admin_options_trackship_integration.php:
|
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:
|
1398 |
msgid "PLEASE NOTE - make sure to save your settings before preview."
|
1399 |
-
msgstr ""
|
1400 |
|
1401 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1402 |
msgid "Shipment Status Notifications "
|
1403 |
msgstr "התראות סטטוס משלוח"
|
1404 |
|
1405 |
-
#: includes/views/admin_options_trackship_integration.php:
|
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:
|
1412 |
msgid "Shipment is returned to sender"
|
1413 |
-
msgstr ""
|
1414 |
|
1415 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1416 |
msgid "The shipment is ready to pickup."
|
1417 |
msgstr "המשלוח מוכן לאיסוף"
|
1418 |
|
1419 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1420 |
msgid "Carrier is about to deliver the shipment"
|
1421 |
-
msgstr ""
|
1422 |
|
1423 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1424 |
msgid "The shipment was delivered successfully"
|
1425 |
msgstr "המשלוח נמסר ללקוח"
|
1426 |
|
1427 |
-
#: includes/views/admin_options_trackship_integration.php:
|
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:
|
1434 |
msgid ""
|
1435 |
"Carrier attempted to deliver but failed, and usually leaves a notice and "
|
1436 |
"will try to deliver the package again."
|
1437 |
msgstr ""
|
|
|
|
|
1438 |
|
1439 |
#: includes/views/html-tracking-info-design-preview.php:60
|
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:
|
1460 |
msgid "Order Details"
|
1461 |
msgstr ""
|
1462 |
|
1463 |
#. %s: Order ID.
|
1464 |
-
#: templates/emails/wcast-email-order-details.php:
|
1465 |
#, php-format
|
1466 |
msgid "Order number: %s"
|
1467 |
msgstr ""
|
1468 |
|
1469 |
-
#: templates/emails/wcast-email-order-details.php:
|
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-10-05 15:04+0000\n"
|
7 |
+
"Last-Translator: zorem DEV <info@zorem.com>\n"
|
8 |
+
"Language-Team: עִבְרִית\n"
|
9 |
"Language: he_IL\n"
|
10 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
11 |
"MIME-Version: 1.0\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 "
|
37 |
"php here or you can manually change all your \"delivered\" order to "
|
38 |
"\"completed\" before deactivating the plugin."
|
39 |
msgstr ""
|
40 |
+
"שימו לב - אם אתם משתמשים בסטטוס ההזמנה המותאם אישית \"נמסרה ללקוח\", כאשר "
|
41 |
+
"אתם מבטל את הפלאגין, עליכם לרשום את מצב ההזמנה ב - functions.php כדי לראות "
|
42 |
+
"הזמנות אלה באדמין של ההזמנות. אתה יכול למצוא את הקוד לשימוש בו <a "
|
43 |
+
"href=\"%s\" target=\"blank\">כאן</a> , או שתוכל לשנות באופן ידני את כל "
|
44 |
+
"ההזמנות בסטטוס \"נמסרה ללקוח\" לסטטוס \"הושלמה\" לפני שתשבית את התוסף.\n"
|
45 |
|
46 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:209
|
47 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1125
|
48 |
msgid "Shipped"
|
49 |
msgstr "נשלח"
|
50 |
|
57 |
|
58 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:240
|
59 |
msgid "Change status to shipped"
|
60 |
+
msgstr "שנה את סטטוס ההזמנה לנשלחה"
|
61 |
|
62 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:250
|
63 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:279
|
64 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1601
|
65 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1805
|
66 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2212
|
67 |
#: includes/customizer/class-wcast-customizer.php:104
|
68 |
#: includes/customizer/class-wc-delivered-email-customizer.php:115
|
69 |
+
#: includes/views/admin_options_trackship_integration.php:183
|
70 |
msgid "Delivered"
|
71 |
msgstr "נמסרה ללקוח"
|
72 |
|
80 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:261
|
81 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:290
|
82 |
msgid "Updated Tracking"
|
83 |
+
msgstr "פרטי מעקב משלוח עודכנו"
|
84 |
|
85 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:266
|
86 |
#, php-format
|
97 |
msgid "Shipment status"
|
98 |
msgstr "סטטוס המשלוח"
|
99 |
|
100 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:631
|
101 |
msgid ""
|
102 |
"Get Shipment Status is limited to 100 orders at a time, please select up to "
|
103 |
"100 orders."
|
104 |
+
msgstr "קבלת סטטוס משלוח מוגבלת ב - 100 הזמנות בכל פעם."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:665
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
msgid "Data saved successfully."
|
108 |
msgstr "נשמר בהצלחה"
|
109 |
|
110 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:666
|
111 |
msgid "Really delete this entry? This will not be undo."
|
112 |
msgstr "באמת למחוק ערך זה? זה לא יהיה לבטל."
|
113 |
|
114 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:667
|
115 |
msgid "You can upload only csv file."
|
116 |
msgstr "ניתן לטעון רק קובץ csv."
|
117 |
|
118 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:668
|
119 |
msgid "This browser does not support HTML5."
|
120 |
msgstr "דפדפן זה אינו תומך ב- HTML5."
|
121 |
|
122 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:669
|
123 |
msgid "Please upload a valid CSV file."
|
124 |
msgstr "העלה קובץ CSV חוקי."
|
125 |
|
126 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:726
|
|
|
|
|
|
|
|
|
127 |
msgid "Settings"
|
128 |
msgstr "הגדרות"
|
129 |
|
130 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:729
|
131 |
+
msgid "Shipping Providers"
|
132 |
+
msgstr "ספקי שילוח"
|
133 |
+
|
134 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:732
|
135 |
msgid "Bulk Upload"
|
136 |
msgstr "העלאה המונית"
|
137 |
|
138 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:738
|
139 |
+
#: includes/views/admin_options_bulk_upload.php:53
|
140 |
+
#: includes/views/admin_options_trackship_integration.php:35
|
141 |
+
#: includes/views/zorem_admin_ts_sidebar.php:7
|
142 |
+
msgid "Documentation"
|
143 |
+
msgstr "תיעוד"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
|
145 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:739
|
146 |
+
msgid "How to Video"
|
147 |
+
msgstr "סרטון הדרכה"
|
|
|
148 |
|
149 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:882
|
150 |
+
#: includes/views/admin_options_trackship_integration.php:23
|
151 |
+
msgid "Connected"
|
152 |
+
msgstr "מחובר"
|
153 |
|
154 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:981
|
|
|
155 |
msgid "Enable/Disable"
|
156 |
msgstr "הפעל / השבת"
|
157 |
|
158 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:987
|
159 |
msgid "Set order status Delivered when order is delivered"
|
160 |
+
msgstr "העבר את ההזמנה לסטטוס נמסרה ללקוח כשמתקבל אישור מסירה ללקוח?"
|
161 |
|
162 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:994
|
163 |
#, php-format
|
164 |
msgid ""
|
165 |
+
"You have %s %s orders from the last 30 days, would you like to bulk send all "
|
166 |
+
"these orders to TrackShip?"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:995
|
170 |
msgid "Get Shipment Status"
|
171 |
+
msgstr "קבל סטטוס משלוח"
|
172 |
|
173 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1027
|
174 |
msgid ""
|
175 |
"You must add the shortcode [wcast-track-order] to the \"page name\" in order "
|
176 |
"for the tracking page to work."
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1035
|
180 |
msgid "Select Tracking Page"
|
181 |
+
msgstr "בחר עמוד מעקב משלוח"
|
182 |
|
183 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1043
|
|
|
|
|
|
|
|
|
|
|
184 |
msgid "Use the tracking page in the customer email/my account tracking link"
|
185 |
msgstr "הפנה לקוחות לעמוד המעקב באתר שלך (באימייל אישור הזמנה ובחשבון לקוח)"
|
186 |
|
187 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1049
|
188 |
msgid "Select primary color for tracking page"
|
189 |
+
msgstr "בחר צבע ראשי לעמוד מעקב משלוח"
|
190 |
|
191 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1055
|
192 |
msgid "Select content border color for tracking page"
|
193 |
+
msgstr "צבע גבול של עמוד מעקב הזמנה"
|
194 |
|
195 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1061
|
196 |
+
msgid "Hide tracking events details"
|
197 |
+
msgstr "הסתר פרטי מעקב משלוח"
|
198 |
+
|
199 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1067
|
200 |
+
msgid "Remove TrackShip branding"
|
201 |
+
msgstr "הסר מיתוג TrackShip"
|
202 |
|
203 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1126
|
204 |
+
msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
|
205 |
+
msgstr "ברירת מחדל ״שנה את סטטוס ההזמנה לנשלחה״"
|
206 |
+
|
207 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1127
|
208 |
msgid ""
|
209 |
"This means that the 'mark as <span class='shipped_label'>shipped</span>' "
|
210 |
"will be selected by default when adding tracking info to orders."
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1130
|
214 |
+
msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
|
215 |
+
msgstr "ברירת מחדל בחירה של תיבת ״סמן כהושלמה״"
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
|
217 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1131
|
218 |
msgid ""
|
219 |
"This means that the 'mark as <span class='shipped_label'>completed</span>' "
|
220 |
"will be selected by default when adding tracking info to orders."
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1158
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
msgid "Customer Invoice"
|
225 |
+
msgstr "חשבונית לקוח"
|
226 |
|
227 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1175
|
228 |
+
msgid "Rename the “Completed” Order status to “Shipped”"
|
229 |
+
msgstr "שנה את השם של סטטוס הזמנה 'הושלמה' ל- 'נשלחה'"
|
|
|
|
|
|
|
|
|
230 |
|
231 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1188
|
232 |
+
msgid "On which order status email to include the shipment tracking info?"
|
233 |
+
msgstr "באיזה אימייל של סטטוס הזמנה יש לכלול את פרטי מעקב המשלוח?"
|
234 |
|
235 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1194
|
236 |
msgid "Show tracking info in Invoice"
|
237 |
+
msgstr "הצג פרטי מעקב משלוח בחשבונית"
|
238 |
|
239 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1200
|
240 |
msgid "Show tracking info in Packing Slip"
|
241 |
+
msgstr "הצג פרטי מעקב משלוח בתלוש אריזה"
|
242 |
|
243 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1217
|
244 |
+
msgid "Enable custom order status “Delivered\""
|
245 |
+
msgstr "אפשר סטטוס הזמנה חדש ״נמסרה ללקוח״"
|
246 |
|
247 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1218
|
248 |
msgid ""
|
249 |
"if you enable the delivered item, you will have the option to send delivered "
|
250 |
"email notifications."
|
251 |
msgstr "אם תפעיל את הפריט שנמסר, תהיה לך אפשרות לשלוח הודעות דוא\"ל שנשלחו."
|
252 |
|
253 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1224
|
254 |
+
msgid "Delivered Label color"
|
255 |
+
msgstr "צבע הלייבל של ״נמסרה ללקוח״"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
256 |
|
257 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1230
|
258 |
+
msgid "Delivered Label font color"
|
259 |
+
msgstr "צבע הגופן של ״נמסרה ללקוח״"
|
|
|
|
|
260 |
|
261 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1233
|
262 |
+
msgid "Light"
|
263 |
+
msgstr "בהיר"
|
264 |
|
265 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1234
|
266 |
+
msgid "Dark"
|
267 |
+
msgstr "כהה"
|
268 |
|
269 |
#: includes/class-wc-advanced-shipment-tracking-admin.php:1241
|
270 |
+
msgid "Enable the Delivered order status email"
|
271 |
+
msgstr "אפשר אימייל לסטטוס הזמנה ״נמסרה ללקוח״"
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
|
273 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1567
|
274 |
msgid "Get shipment status"
|
275 |
+
msgstr "קבל סטטוס משלוח"
|
276 |
|
277 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1595
|
278 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2209
|
279 |
#: includes/customizer/class-wcast-customizer.php:74
|
280 |
#: includes/customizer/class-wc-intransit-email-customizer.php:115
|
281 |
+
#: includes/views/admin_options_trackship_integration.php:128
|
282 |
msgid "In Transit"
|
283 |
+
msgstr "המשלוח בדרך"
|
284 |
|
285 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1598
|
286 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2208
|
287 |
#: includes/customizer/class-wcast-customizer.php:66
|
288 |
msgid "Pre Transit"
|
289 |
+
msgstr "קדם משלוח"
|
290 |
|
291 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1604
|
292 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2211
|
293 |
+
#: includes/customizer/class-wcast-customizer.php:96
|
294 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:115
|
295 |
+
#: includes/views/admin_options_trackship_integration.php:169
|
296 |
+
msgid "Out For Delivery"
|
297 |
+
msgstr "יצא למסירה"
|
298 |
|
299 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1607
|
300 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2210
|
301 |
#: includes/customizer/class-wcast-customizer.php:89
|
302 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:116
|
303 |
+
#: includes/views/admin_options_trackship_integration.php:156
|
304 |
msgid "Available For Pickup"
|
305 |
+
msgstr "זמין לאיסוף"
|
306 |
|
307 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1610
|
308 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2216
|
309 |
#: includes/customizer/class-wcast-customizer.php:82
|
310 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:116
|
311 |
+
#: includes/views/admin_options_trackship_integration.php:142
|
312 |
msgid "Return To Sender"
|
313 |
+
msgstr "הוחזר לשולח"
|
314 |
|
315 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1613
|
316 |
msgid "Delivery Failure"
|
317 |
+
msgstr "נסיון מכירה נכשל"
|
318 |
|
319 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1616
|
320 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2207
|
321 |
msgid "Unknown"
|
322 |
msgstr "לא ידוע"
|
323 |
|
324 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1619
|
325 |
msgid "Pending TrackShip"
|
326 |
+
msgstr "ממתין ל -TrackShip"
|
327 |
|
328 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1622
|
329 |
msgid "Invalid Tracking"
|
330 |
+
msgstr "פרטי מעקב שגויים"
|
331 |
|
332 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1625
|
333 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2215
|
334 |
+
msgid "Carrier Unsupported"
|
335 |
+
msgstr "ספק משלוח לא נתמך"
|
336 |
|
337 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1628
|
338 |
msgid "Invalid User Key"
|
339 |
+
msgstr "מפתח לקוח שגוי"
|
340 |
+
|
341 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1631
|
342 |
+
msgid "Wrong Shipping Provider"
|
343 |
+
msgstr "ספק משלוח שגוי"
|
344 |
+
|
345 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1634
|
346 |
+
msgid "Deleted"
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1703
|
350 |
msgid "Resend delivered order notification"
|
351 |
msgstr "שלח שוב את הודעת ההזמנה שנשלחו"
|
352 |
|
353 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1761
|
354 |
msgid "Shipped Order"
|
355 |
msgstr "ההזמנה נשלחה"
|
356 |
|
357 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1784
|
358 |
msgid "Mark order as delivered"
|
359 |
+
msgstr "סמן הזמנה כ-״נמסרה ללקוח״"
|
360 |
|
361 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1791
|
362 |
msgid "Add Tracking"
|
363 |
+
msgstr "הוסף פרטי מעקב"
|
364 |
|
365 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1817
|
366 |
msgid "Change order status to"
|
367 |
+
msgstr "שנה את סטטוס ההזמנה ל-"
|
368 |
|
369 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1914
|
370 |
+
#: includes/views/admin_options_shipping_provider.php:90
|
371 |
#, php-format
|
372 |
msgid "You don't have any %s shipping providers."
|
373 |
msgstr "לא הופעלו ספקי שילוח"
|
374 |
|
375 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2167
|
376 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2179
|
377 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2191
|
378 |
msgid "view details"
|
379 |
msgstr "הצג פרטים"
|
380 |
|
381 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2168
|
382 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2180
|
383 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2192
|
384 |
msgid "hide details"
|
385 |
+
msgstr "הסתר פרטים"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
|
387 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2213
|
388 |
#: includes/customizer/class-wcast-customizer.php:112
|
389 |
#: includes/customizer/class-wc-failure-email-customizer.php:113
|
390 |
+
#: includes/views/admin_options_trackship_integration.php:198
|
391 |
msgid "Failed Attempt"
|
392 |
+
msgstr "נסיון מסירה נכשל"
|
393 |
|
394 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2214
|
395 |
+
msgid "Cancelled"
|
396 |
+
msgstr "בוטל"
|
397 |
|
398 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2217
|
399 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:827
|
|
|
400 |
msgid "Invalid Tracking Number"
|
401 |
+
msgstr "מספר מעקב שגויים"
|
402 |
|
403 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2222
|
404 |
msgid "Filter by shipment status"
|
405 |
+
msgstr "סנן לפי מצב משלוח"
|
406 |
|
407 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:140
|
408 |
msgid ""
|
409 |
"To track your order please enter your Order ID in the box below and press "
|
410 |
"the \"Track\" button. This was given to you on your receipt and in the "
|
411 |
"confirmation email you should have received."
|
412 |
msgstr ""
|
413 |
|
414 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:141
|
415 |
msgid "Order ID"
|
416 |
msgstr ""
|
417 |
|
418 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:141
|
419 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:142
|
420 |
msgid "Found in your order confirmation email."
|
421 |
msgstr ""
|
422 |
+
"נמצא באימייל של אישור ההזמנה שלך.\n"
|
423 |
|
424 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:142
|
425 |
msgid "Order Email"
|
426 |
msgstr ""
|
427 |
|
428 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:145
|
429 |
#: includes/class-wc-advanced-shipment-tracking.php:260
|
430 |
+
#: includes/class-wc-advanced-shipment-tracking.php:654
|
431 |
+
#: includes/class-wc-advanced-shipment-tracking.php:776
|
432 |
#: includes/customizer/class-wc-tracking-info-customizer.php:137
|
433 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:395
|
434 |
#: includes/views/html-tracking-info-design-preview.php:69
|
435 |
#: templates/emails/tracking-info.php:152
|
436 |
#: templates/myaccount/view-order.php:123 templates/pip/tracking-info.php:23
|
437 |
msgid "Track"
|
438 |
msgstr "מעקב הזמנה"
|
439 |
|
440 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:313
|
441 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:676
|
442 |
#, php-format
|
443 |
msgid "Shipment - %s (out of %s)"
|
444 |
msgstr ""
|
445 |
|
446 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:317
|
447 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:680
|
448 |
msgid "Order: "
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:326
|
452 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:330
|
453 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:689
|
454 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:693
|
455 |
msgid "Estimated Delivery Date: "
|
456 |
+
msgstr "תאריך מסירה משוער"
|
457 |
|
458 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:439
|
459 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:799
|
460 |
msgid "Tracking Details"
|
461 |
+
msgstr "פרטי מעקב הזמנה"
|
462 |
|
463 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:458
|
464 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:818
|
465 |
msgid "view more"
|
466 |
msgstr "הצג עוד"
|
467 |
|
468 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:459
|
469 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:819
|
470 |
msgid "view less"
|
471 |
msgstr "הצג פחות"
|
472 |
|
473 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:467
|
474 |
+
msgid "Tracking details not found in TrackShip"
|
475 |
+
msgstr "פרטי מעקב לא נמצאו ב -TrackShip"
|
|
|
|
|
|
|
|
|
476 |
|
477 |
#: includes/class-wc-advanced-shipment-tracking.php:93
|
478 |
#: includes/class-wc-advanced-shipment-tracking.php:244
|
479 |
#: includes/customizer/class-wcast-customizer.php:30
|
480 |
msgid "Shipment Tracking"
|
481 |
+
msgstr "מעקב משלוחים"
|
482 |
|
483 |
#: includes/class-wc-advanced-shipment-tracking.php:179
|
484 |
#: includes/class-wc-advanced-shipment-tracking.php:351
|
485 |
msgid "Change order to Shipped?"
|
486 |
+
msgstr "שנה את סטטוס ההזמנה לנשלחה?"
|
487 |
|
488 |
#: includes/class-wc-advanced-shipment-tracking.php:181
|
489 |
#: includes/class-wc-advanced-shipment-tracking.php:353
|
490 |
msgid "Change order to Completed?"
|
491 |
+
msgstr "שנה את סטטוס ההזמנה להושלמה?"
|
492 |
|
493 |
#: includes/class-wc-advanced-shipment-tracking.php:186
|
494 |
msgid "Add Tracking Number"
|
497 |
#: includes/class-wc-advanced-shipment-tracking.php:191
|
498 |
#: includes/class-wc-advanced-shipment-tracking.php:369
|
499 |
msgid "Provider:"
|
500 |
+
msgstr "ספק משלוח"
|
501 |
|
502 |
#: includes/class-wc-advanced-shipment-tracking.php:211
|
503 |
#: includes/class-wc-advanced-shipment-tracking.php:407
|
509 |
msgid "Date shipped:"
|
510 |
msgstr "תאריך משלוח:"
|
511 |
|
512 |
+
#: includes/class-wc-advanced-shipment-tracking.php:218
|
513 |
+
#: includes/class-wc-advanced-shipment-tracking.php:221
|
514 |
+
#: includes/class-wc-advanced-shipment-tracking.php:416
|
515 |
+
#: includes/class-wc-advanced-shipment-tracking.php:419
|
516 |
+
msgid "Y-m-d"
|
517 |
+
msgstr ""
|
518 |
+
|
519 |
#: includes/class-wc-advanced-shipment-tracking.php:260
|
520 |
#: templates/pip/tracking-info.php:23
|
521 |
msgid "Click here to track your shipment"
|
528 |
msgid "Shipped on %s"
|
529 |
msgstr "נשלח ב- %s"
|
530 |
|
|
|
|
|
|
|
|
|
531 |
#: includes/class-wc-advanced-shipment-tracking.php:365
|
532 |
msgid "Add Tracking Info"
|
533 |
msgstr "הוסף פרטי מעקב"
|
548 |
msgid "Click here to track shipment"
|
549 |
msgstr "לחץ כאן כדי לעקוב אחר המשלוח"
|
550 |
|
551 |
+
#: includes/class-wc-advanced-shipment-tracking.php:628
|
552 |
+
#, php-format
|
553 |
+
msgid ""
|
554 |
+
"Tracking info was deleted for tracking provider %s with tracking number %s"
|
555 |
+
msgstr ""
|
556 |
+
|
557 |
+
#: includes/class-wc-advanced-shipment-tracking.php:966
|
558 |
+
#, php-format
|
559 |
+
msgid "Order was shipped with %s and tracking number is: %s"
|
560 |
+
msgstr "ההזמנה נשלחה עם %s, מספר המעקב הוא %s"
|
561 |
+
|
562 |
#: includes/customizer/class-wcast-customizer.php:39
|
563 |
msgid "Shipment Status Emails"
|
564 |
msgstr "התראות אימייל על שינוי סטטוס משלוח"
|
567 |
msgid "Tracking info display"
|
568 |
msgstr "תצוגת מידע מעקב"
|
569 |
|
570 |
+
#: includes/customizer/class-wcast-customizer.php:58
|
571 |
+
#: includes/customizer/class-wc-email-customizer.php:155
|
572 |
+
msgid "Delivered order status email"
|
573 |
+
msgstr "אימייל סטטוס הזמנה שנמסרה ללקוח"
|
|
|
|
|
|
|
|
|
|
|
574 |
|
575 |
#: includes/customizer/class-wcast-customizer.php:352
|
576 |
msgid "Select order to preview"
|
577 |
+
msgstr "בחר הזמנה לתצוגה מקדימה"
|
578 |
|
579 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:115
|
580 |
msgid "Your order #{order_number} is available for pickup"
|
581 |
+
msgstr "הזמנתך מספר {order_number} מוכנה לאיסוף"
|
582 |
|
583 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:117
|
584 |
msgid ""
|
585 |
"Hi there. we thought you'd like to know that your recent order from "
|
586 |
"{site_title} is available for pickup."
|
587 |
msgstr ""
|
588 |
+
"שלום, חשבנו שתרצה לדעת שהזמנתך #{order_number} מוכנה לאיסוף.\n"
|
589 |
|
590 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:148
|
591 |
msgid "Available For Pickup shipment status email"
|
592 |
+
msgstr "אימייל של סטטוס משלוח זמין לאיסוף"
|
593 |
|
594 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:149
|
595 |
#: includes/customizer/class-wc-delivered-email-customizer.php:148
|
599 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:148
|
600 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:149
|
601 |
msgid "This section lets you customize the Email Content."
|
602 |
+
msgstr "סעיף זה מאפשר לך להתאים אישית את תוכן הדוא\"ל."
|
603 |
|
604 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:163
|
605 |
msgid "Enable Available For Pickup shipment status email"
|
606 |
+
msgstr "אפשר אימייל סטטוס משלוח ״מוכן לאיסוף״"
|
607 |
|
608 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:179
|
609 |
#: includes/customizer/class-wc-delivered-email-customizer.php:178
|
614 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:179
|
615 |
#: includes/customizer/class-wc-tracking-info-customizer.php:161
|
616 |
msgid "Preview order"
|
617 |
+
msgstr "הזמנה לתצוגה מקדימה"
|
618 |
|
619 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:200
|
620 |
#: includes/customizer/class-wc-delivered-email-customizer.php:199
|
690 |
#: includes/customizer/class-wc-intransit-email-customizer.php:243
|
691 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:243
|
692 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:244
|
|
|
693 |
msgid "Email heading"
|
694 |
msgstr "כותרת דוא\"ל"
|
695 |
|
710 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:265
|
711 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:266
|
712 |
msgid "Show tracking details"
|
713 |
+
msgstr "הצג פרטי מעקב משלוח"
|
714 |
|
715 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:282
|
716 |
#: includes/customizer/class-wc-delivered-email-customizer.php:281
|
747 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:330
|
748 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:331
|
749 |
msgid "Google Analytics link tracking"
|
750 |
+
msgstr "מעקב Google Analytics עבור קישורים"
|
751 |
|
752 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:332
|
753 |
#: includes/customizer/class-wc-delivered-email-customizer.php:331
|
776 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:372
|
777 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:373
|
778 |
msgid "Available placeholders"
|
779 |
+
msgstr "מצייני מיקום זמינים"
|
780 |
|
781 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:416
|
782 |
#: includes/customizer/class-wc-delivered-email-customizer.php:416
|
785 |
#: includes/customizer/class-wc-intransit-email-customizer.php:415
|
786 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:415
|
787 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:417
|
788 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:744
|
789 |
msgid "Please select preview order."
|
790 |
+
msgstr "בחר הזמנה לתצוגה מקדימה"
|
791 |
|
792 |
#: includes/customizer/class-wc-delivered-email-customizer.php:114
|
793 |
msgid "Your order #{order_number} has been delivered"
|
794 |
msgstr ""
|
795 |
+
"הזמנתך #{order_number} נמסרה ללקוח\n"
|
796 |
|
797 |
#: includes/customizer/class-wc-delivered-email-customizer.php:116
|
798 |
msgid ""
|
799 |
"Hi there. we thought you'd like to know that your recent order from "
|
800 |
"{site_title} has been Delivered."
|
801 |
msgstr ""
|
802 |
+
"שלום, חשבנו שתרצה לדעת שהזמנתך #{order_number} נמסרה.\n"
|
803 |
|
804 |
#: includes/customizer/class-wc-delivered-email-customizer.php:147
|
805 |
msgid "Delivered shipment status email"
|
806 |
+
msgstr "אימייל סטטוס משלוח נמסרה ללקוח"
|
807 |
|
808 |
#: includes/customizer/class-wc-delivered-email-customizer.php:162
|
809 |
msgid "Enable Delivered shipment status email"
|
810 |
+
msgstr "אפשר אימייל סטטוס משלוח ״נמסרה ללקוח״"
|
811 |
|
812 |
#: includes/customizer/class-wc-email-customizer.php:122
|
813 |
#: includes/emails/class-shipment-delivered-email.php:92
|
814 |
msgid "Your {site_title} order is now delivered"
|
815 |
msgstr ""
|
816 |
+
"הזמנתך #{order_number} נמסרה בהצלחה\n"
|
817 |
|
818 |
#: includes/customizer/class-wc-email-customizer.php:123
|
819 |
#: includes/emails/class-shipment-delivered-email.php:102
|
822 |
|
823 |
#: includes/customizer/class-wc-email-customizer.php:124
|
824 |
msgid "Hi there. Your recent order on {site_title} has been delivered."
|
825 |
+
msgstr "שלום, חשבנו שתרצה לדעת שהזמנתך #{order_number} נמסרה."
|
826 |
|
827 |
#: includes/customizer/class-wc-email-customizer.php:171
|
828 |
msgid "Enable Delivered order status email"
|
829 |
+
msgstr "אפשר אימייל סטטוס הזמנה ״נמסרה ללקוח״"
|
830 |
|
831 |
#: includes/customizer/class-wc-email-customizer.php:193
|
832 |
#: includes/customizer/class-wc-tracking-info-customizer.php:165
|
833 |
msgid "Please select a order..."
|
834 |
+
msgstr "בחר צבע"
|
835 |
|
836 |
#: includes/customizer/class-wc-email-customizer.php:211
|
837 |
msgid "Receipts"
|
846 |
#: includes/customizer/class-wc-email-customizer.php:235
|
847 |
#: includes/customizer/class-wc-email-customizer.php:258
|
848 |
msgid "Available variables: {site_title}, {order_number}"
|
849 |
+
msgstr "משתנים זמינים: {site_title}, {order_number}"
|
850 |
|
851 |
#: includes/customizer/class-wc-email-customizer.php:281
|
852 |
msgid ""
|
853 |
"available variables: {site_title}, {customer_email}, {customer_first_name}, "
|
854 |
"{customer_last_name}, {customer_username}, {order_number}"
|
855 |
msgstr ""
|
856 |
+
"משתנים זמינים: {site_title}, {customer_email}, {customer_first_name}, "
|
857 |
+
"{customer_last_name}, {customer_username}, {order_number}"
|
858 |
|
859 |
#: includes/customizer/class-wc-email-customizer.php:300
|
860 |
msgid "Display tracking details"
|
861 |
+
msgstr "הצג פרטי מעקב משלוח"
|
862 |
|
863 |
#: includes/customizer/class-wc-email-customizer.php:316
|
864 |
msgid "Display order details"
|
865 |
+
msgstr "הצג פרטי הזמנה"
|
866 |
|
867 |
#: includes/customizer/class-wc-email-customizer.php:333
|
868 |
msgid "Display Shipping Address"
|
869 |
+
msgstr "הצג כתובת משלוח"
|
870 |
|
871 |
#: includes/customizer/class-wc-email-customizer.php:350
|
872 |
msgid "Display Billing Address"
|
873 |
+
msgstr "הצר כתובת חיוב"
|
874 |
|
875 |
#: includes/customizer/class-wc-email-customizer.php:367
|
876 |
msgid "Enable Google Analytics tracking"
|
877 |
+
msgstr "אפשר מעקב של Google Analytics"
|
878 |
|
879 |
#: includes/customizer/class-wc-email-customizer.php:385
|
880 |
msgid ""
|
884 |
|
885 |
#: includes/customizer/class-wc-failure-email-customizer.php:112
|
886 |
msgid "Your order #{order_number} is Failed Attempt"
|
887 |
+
msgstr "נכשל נסיון מסירה להזמנה מספר {order_number}"
|
888 |
|
889 |
#: includes/customizer/class-wc-failure-email-customizer.php:114
|
890 |
msgid ""
|
891 |
"Hi there. we thought you'd like to know that your recent order from "
|
892 |
"{site_title} is Failed Attempt"
|
893 |
msgstr ""
|
894 |
+
"שלום, חשבנו שתרצה לדעת שהתבצע נסיון מסירה להזמנתך #{order_number}.\n"
|
895 |
|
896 |
#: includes/customizer/class-wc-failure-email-customizer.php:144
|
897 |
msgid "Failed Attempt shipment status email"
|
898 |
+
msgstr "אימייל של סטטוס משלוח ״נסיון מסירה נכשל״"
|
899 |
|
900 |
#: includes/customizer/class-wc-failure-email-customizer.php:159
|
901 |
msgid "Enable Failed Attempt shipment status email"
|
902 |
+
msgstr "אפשר אימייל סטטוס משלוח ״נסיון מסירה נכשל״"
|
903 |
|
904 |
#: includes/customizer/class-wc-intransit-email-customizer.php:114
|
905 |
msgid "Your order #{order_number} is in transit"
|
906 |
+
msgstr "הזמנתך מספר {order_number} בסטטוס ״המשלוח בדרך״"
|
907 |
|
908 |
#: includes/customizer/class-wc-intransit-email-customizer.php:116
|
909 |
msgid ""
|
910 |
"Hi there. we thought you'd like to know that your recent order from "
|
911 |
"{site_title} is in transit"
|
912 |
msgstr ""
|
913 |
+
"שלום, חשבנו שתרצה לדעת שהזמנתך #{order_number} בדרכה אלייך.\n"
|
914 |
|
915 |
#: includes/customizer/class-wc-intransit-email-customizer.php:146
|
916 |
msgid "In Transit shipment status email"
|
917 |
+
msgstr "אימייל סטטוס משלוח ״המשלוח בדרך״"
|
918 |
|
919 |
#: includes/customizer/class-wc-intransit-email-customizer.php:161
|
920 |
msgid "Enable In Transit shipment status email"
|
921 |
+
msgstr "אפשר אימייל סטטוס משלוח ״המשלוח בדרך״"
|
922 |
|
923 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:114
|
924 |
msgid "Your order #{order_number} is out for delivery"
|
925 |
+
msgstr "המשלוח של הזמנה מספר {order_number} יצא למסירה"
|
926 |
|
927 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:116
|
928 |
msgid ""
|
929 |
"Hi there. we thought you'd like to know that your recent order from "
|
930 |
"{site_title} is out for delivery."
|
931 |
+
msgstr "שלום, חשבנו שתרצה לדעת שהזמנתך #{order_number} יצאה למסירה"
|
932 |
|
933 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:147
|
934 |
msgid "Out For Delivery shipment status email"
|
935 |
+
msgstr "אימייל סטטוס משלוח ״יצא למסירה״"
|
936 |
|
937 |
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:162
|
938 |
msgid "Enable Out For Delivery shipment status email"
|
939 |
+
msgstr "אפשר אימייל סטטוס משלוח ״יצא למסירה״"
|
940 |
|
941 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:115
|
942 |
msgid "Your order #{order_number} has returned to sender"
|
943 |
+
msgstr "הזמנתך #{order_number} הוחזרה לשולח"
|
944 |
|
945 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:117
|
946 |
msgid ""
|
947 |
"Hi there. we thought you'd like to know that your recent order from "
|
948 |
"{site_title} has been returned to sender."
|
949 |
msgstr ""
|
950 |
+
"שלום, חשבנו שתרצה לדעת שהזמנתך #{order_number} הוחזרה לשולח.\n"
|
951 |
|
952 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:148
|
953 |
msgid "Return To Sender shipment status email"
|
954 |
+
msgstr "אימייל סטטוס משלוח ״הוחזר לשולח״"
|
955 |
|
956 |
#: includes/customizer/class-wc-returntosender-email-customizer.php:163
|
957 |
msgid "Enable Return To Sender shipment status email"
|
958 |
+
msgstr "אפשר אימייל סטטוס משלוח ״הוחזר לשולח״"
|
959 |
|
960 |
#: includes/customizer/class-wc-tracking-info-customizer.php:134
|
961 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:315
|
962 |
#: includes/views/html-tracking-info-design-preview.php:45
|
963 |
#: templates/emails/tracking-info.php:110 templates/myaccount/view-order.php:89
|
964 |
msgid "Provider"
|
965 |
msgstr "ספק"
|
966 |
|
967 |
#: includes/customizer/class-wc-tracking-info-customizer.php:135
|
968 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:337
|
969 |
#: includes/views/html-tracking-info-design-preview.php:46
|
970 |
#: templates/emails/tracking-info.php:134
|
971 |
#: templates/myaccount/view-order.php:111
|
973 |
msgstr "מספר מעקב"
|
974 |
|
975 |
#: includes/customizer/class-wc-tracking-info-customizer.php:136
|
976 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:358
|
977 |
msgid "Shipped Date"
|
978 |
msgstr "תאריך משלוח"
|
979 |
|
982 |
"select from last 20 orders one order that you added tracking info in order "
|
983 |
"to preview and design the tracking info table."
|
984 |
msgstr ""
|
985 |
+
"בחר הזמנה לתצוגה מקדימה מ -20 הזמנות אחרונות, וודא שבחרת הזמנה שנוספו לה "
|
986 |
+
"פרטי מעקב."
|
987 |
+
|
988 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:181
|
989 |
+
#: includes/views/admin_options_settings.php:10
|
990 |
+
#: includes/views/admin_options_trackship_integration.php:47
|
991 |
+
msgid "General Settings"
|
992 |
+
msgstr "הגדרות כלליות"
|
993 |
|
994 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:196
|
995 |
msgid "Tracking Display Position"
|
996 |
+
msgstr "מיקום תצוגת פרטי מעקב"
|
997 |
|
998 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:200
|
999 |
msgid "Before Order Details"
|
1000 |
+
msgstr "לפני פרטי ההזמנה"
|
1001 |
|
1002 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:201
|
1003 |
msgid "After Order Details"
|
1004 |
+
msgstr "אחרי פרטי ההזמנה"
|
1005 |
|
1006 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:216
|
1007 |
msgid "Main Header text"
|
1008 |
+
msgstr "טקסט כותרת ראשית"
|
1009 |
|
1010 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:223
|
1011 |
#: templates/pip/tracking-info.php:17
|
1012 |
msgid "Tracking Information"
|
1013 |
msgstr "מעקב אחרי מידע"
|
1014 |
|
1015 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:238
|
1016 |
msgid "Additional text after header"
|
1017 |
msgstr "טקסט נוסף אחרי כותרת"
|
1018 |
|
1019 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:259
|
1020 |
+
msgid "Table Content"
|
1021 |
+
msgstr ""
|
1022 |
|
1023 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:274
|
1024 |
msgid "Display Shipment Provider image"
|
1025 |
+
msgstr "הצג תמונת ספק משלוח"
|
1026 |
|
1027 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:291
|
1028 |
msgid "Hide date"
|
1029 |
+
msgstr "הסתר תאריך משלוח"
|
1030 |
|
1031 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:308
|
1032 |
msgid "Provider Header Text"
|
1033 |
+
msgstr "טקסט כותרת ספק משלוח"
|
1034 |
|
1035 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:330
|
1036 |
msgid "Tracking Number Header Text"
|
1037 |
+
msgstr "טקסט כותרת מספר מעקב"
|
1038 |
|
1039 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:351
|
1040 |
msgid "Shipped Date Header Text"
|
1041 |
msgstr "טקסט כותרת לעמודת תאריך משלוח"
|
1042 |
|
1043 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:372
|
1044 |
msgid "Track Label"
|
1045 |
msgstr "טקסט של כפתור מעקב משלוח"
|
1046 |
|
1047 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:388
|
1048 |
msgid "Track Header Text"
|
1049 |
msgstr "כותרת של כפתור מעקב משלוח"
|
1050 |
|
1051 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:410
|
1052 |
msgid "Table Design"
|
1053 |
msgstr "עיצוב טבלה"
|
1054 |
|
1055 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:425
|
1056 |
msgid "Padding"
|
1057 |
+
msgstr "מרווח"
|
1058 |
|
1059 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:445
|
1060 |
msgid "Background color"
|
1061 |
+
msgstr "צבע רקע"
|
1062 |
|
1063 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:473
|
1064 |
msgid "Border color"
|
1065 |
+
msgstr "צבע גבול"
|
1066 |
|
1067 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:489
|
1068 |
msgid "Border size"
|
1069 |
+
msgstr "גודל גבול"
|
|
|
|
|
|
|
|
|
|
|
|
|
1070 |
|
1071 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:513
|
1072 |
msgid "Table text align"
|
1073 |
msgstr "יישור טקסט טבלה"
|
1074 |
|
1075 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:518
|
1076 |
msgid "Left"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:519
|
1080 |
msgid "Right"
|
1081 |
msgstr ""
|
1082 |
|
1083 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:520
|
1084 |
msgid "Center"
|
1085 |
+
msgstr "מרכז"
|
1086 |
|
1087 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:539
|
1088 |
msgid "Table header font size"
|
1089 |
msgstr "גודל גופן של כותרת הטבלה"
|
1090 |
|
1091 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:558
|
1092 |
msgid "Table header font color"
|
1093 |
msgstr "צבע גופן של כותרת הטבלה"
|
1094 |
|
1095 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:574
|
1096 |
msgid "Table content font size"
|
1097 |
msgstr "גודל גופן של תוכן טבלה"
|
1098 |
|
1099 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:591
|
1100 |
msgid "Table content font color"
|
1101 |
msgstr "צבע גופן של תוכן טבלה"
|
1102 |
|
1103 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:607
|
1104 |
msgid "Content line height"
|
1105 |
+
msgstr "גובה שורה של תוכן"
|
1106 |
|
1107 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:628
|
1108 |
msgid "Content font weight"
|
1109 |
+
msgstr "משקל גופן תוכן"
|
|
|
|
|
|
|
|
|
1110 |
|
1111 |
#: includes/customizer/class-wc-tracking-info-customizer.php:650
|
1112 |
+
msgid "Track Button Design"
|
1113 |
+
msgstr "עיצוב כפתור קישור למעקב"
|
1114 |
+
|
1115 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:664
|
1116 |
msgid "Track Link Font Color"
|
1117 |
+
msgstr "צבע גופן של קישור מעקב משלוח"
|
1118 |
|
1119 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:680
|
1120 |
msgid "Track Link Background Color"
|
1121 |
+
msgstr "צבע רקע של קישור מעקב משלוח"
|
1122 |
|
1123 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:695
|
1124 |
msgid "Track link Border"
|
1125 |
+
msgstr "צבע גבול של כפתור מעקב הזמנה"
|
1126 |
+
|
1127 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:150
|
1128 |
+
msgid "Remove Trackship branding from tracking page"
|
1129 |
+
msgstr "הסר מיתוג TrackShip מעמוד מעקב הזמנה"
|
1130 |
|
1131 |
#: includes/customizer/class-wc-tracking-page-customizer.php:167
|
1132 |
msgid "Header Color"
|
1133 |
+
msgstr "צבע גופן כותרת"
|
1134 |
|
1135 |
#: includes/customizer/class-wc-tracking-page-customizer.php:183
|
1136 |
msgid "Success Status Color"
|
1142 |
|
1143 |
#: includes/customizer/class-wc-tracking-page-customizer.php:215
|
1144 |
msgid "Tracking info Border Color"
|
1145 |
+
msgstr "צבע גבול של פרטי מעקב"
|
1146 |
|
1147 |
#: includes/customizer/class-wc-tracking-page-customizer.php:230
|
1148 |
msgid "Tracking info width (px)"
|
1150 |
|
1151 |
#: includes/customizer/class-wc-tracking-page-customizer.php:250
|
1152 |
msgid "Tracking details Border Color"
|
1153 |
+
msgstr "צבע גבול פרטי מעקב הזמנה"
|
1154 |
|
1155 |
#: includes/customizer/class-wc-tracking-page-customizer.php:265
|
1156 |
msgid "Tracking info table shade color"
|
1157 |
+
msgstr "רקע של גבול טבלת מעקב משלוח"
|
1158 |
|
1159 |
#: includes/customizer/class-wc-tracking-page-customizer.php:280
|
1160 |
msgid "Tracking events font color"
|
1161 |
+
msgstr "צבע גופן של פרטי המשלוח"
|
1162 |
|
1163 |
#: includes/customizer/class-wc-tracking-page-customizer.php:295
|
1164 |
msgid "Tracking info table margin top/bottom(px)"
|
1165 |
+
msgstr "מרווח חיצוני לטבלת מעקב משלוח (px - עליוןן/תחתון)"
|
1166 |
|
1167 |
#: includes/emails/class-shipment-delivered-email.php:32
|
1168 |
msgid "Delivered order"
|
1169 |
+
msgstr "ההזמנה נמסרה ללקוח"
|
1170 |
|
1171 |
#: includes/emails/class-shipment-delivered-email.php:33
|
1172 |
msgid ""
|
1174 |
"delivered and usually indicate that their orders have been shipped."
|
1175 |
msgstr ""
|
1176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1177 |
#: includes/emails/class-shipment-delivered-email.php:269
|
1178 |
+
msgid "Click Here"
|
1179 |
+
msgstr "לחץ כאן"
|
1180 |
|
1181 |
#: includes/emails/class-shipment-delivered-email.php:270
|
1182 |
msgid "Edit in customizer"
|
1183 |
+
msgstr "עריכה בהתאמה אישית"
|
1184 |
|
1185 |
#: includes/views/admin_options_bulk_upload.php:5
|
1186 |
msgid "Upload CSV"
|
1192 |
"added)"
|
1193 |
msgstr "להחליף מידע מעקב אם קיים? (אם לא מסומנת, פרטי המעקב יתווספו)"
|
1194 |
|
1195 |
+
#: includes/views/admin_options_bulk_upload.php:24
|
1196 |
+
#: includes/views/admin_options_shipping_provider.php:114
|
1197 |
+
#: includes/views/admin_options_shipping_provider.php:148
|
1198 |
msgid "Upload"
|
1199 |
msgstr "העלה"
|
1200 |
|
1201 |
+
#: includes/views/admin_options_bulk_upload.php:26
|
|
|
|
|
1202 |
msgid "Settings Saved."
|
1203 |
msgstr "הגדרות נשמרו."
|
1204 |
|
1205 |
+
#: includes/views/admin_options_bulk_upload.php:36
|
1206 |
+
msgid "Upload Progress - "
|
1207 |
+
msgstr "העלאת התקדמות -"
|
1208 |
+
|
1209 |
+
#: includes/views/admin_options_bulk_upload.php:40
|
1210 |
+
msgid "Sample CSV"
|
1211 |
+
msgstr "CSV לדוגמא"
|
1212 |
+
|
1213 |
+
#: includes/views/admin_options_bulk_upload.php:45
|
1214 |
msgid "You can download an example of the csv file:"
|
1215 |
msgstr "ניתן להוריד דוגמא של קובץ ה-CSV:"
|
1216 |
|
1217 |
+
#: includes/views/admin_options_bulk_upload.php:48
|
1218 |
msgid "Download sample csv file"
|
1219 |
+
msgstr "הורד קובץ CSV לדוגמא"
|
1220 |
|
1221 |
+
#: includes/views/admin_options_bulk_upload.php:53
|
1222 |
msgid ""
|
1223 |
"For detailed instructions on how to upload tracking info in bulk, see our"
|
1224 |
+
msgstr "להוראות מפורטות כיצד להעלות מידע על מעקב בכמויות גדולות, עיין ב"
|
1225 |
|
1226 |
+
#: includes/views/admin_options_settings.php:21
|
1227 |
+
#: includes/views/admin_options_settings.php:69
|
1228 |
+
#: includes/views/admin_options_trackship_integration.php:58
|
1229 |
+
#: includes/views/admin_options_trackship_integration.php:89
|
1230 |
+
msgid "Save Changes"
|
1231 |
+
msgstr "שמור שינויים"
|
1232 |
|
1233 |
+
#: includes/views/admin_options_settings.php:35
|
1234 |
+
msgid "Tracking Info Display"
|
1235 |
+
msgstr "תצוגת מעקב הזמנה"
|
1236 |
|
1237 |
+
#: includes/views/admin_options_settings.php:44
|
1238 |
+
msgid "You can customize the tracking info display on emails and my account"
|
1239 |
+
msgstr "אתה יכול להתאים אישית את תצוגת פרטי המעקב בהודעות דוא\"ל ובחשבון לקוח"
|
|
|
1240 |
|
1241 |
+
#: includes/views/admin_options_settings.php:47
|
1242 |
+
msgid "Launch Customizer"
|
1243 |
+
msgstr "ערוך בהתאמה אישית"
|
1244 |
+
|
1245 |
+
#: includes/views/admin_options_settings.php:57
|
1246 |
msgid "Delivered Order Status"
|
1247 |
+
msgstr "סטטוס נמסרה ללקוח"
|
1248 |
|
1249 |
+
#: includes/views/admin_options_shipping_provider.php:7
|
1250 |
+
msgid "Active"
|
1251 |
+
msgstr "פעיל"
|
1252 |
|
1253 |
+
#: includes/views/admin_options_shipping_provider.php:8
|
1254 |
+
msgid "Inactive"
|
1255 |
+
msgstr "לא פעיל"
|
1256 |
+
|
1257 |
+
#: includes/views/admin_options_shipping_provider.php:9
|
1258 |
+
msgid "Custom"
|
1259 |
+
msgstr "בהתאמה אישית"
|
1260 |
+
|
1261 |
+
#: includes/views/admin_options_shipping_provider.php:10
|
1262 |
+
msgid "All"
|
1263 |
+
msgstr "הכל"
|
1264 |
+
|
1265 |
+
#: includes/views/admin_options_shipping_provider.php:16
|
1266 |
+
msgid "Add Custom Provider"
|
1267 |
+
msgstr "הוסף ספק משלוח "
|
1268 |
+
|
1269 |
+
#: includes/views/admin_options_shipping_provider.php:17
|
1270 |
+
msgid "Sync Provider List"
|
1271 |
+
msgstr "סנכרן רשימת ספקי שילוח"
|
1272 |
+
|
1273 |
+
#: includes/views/admin_options_shipping_provider.php:18
|
1274 |
+
msgid "Reset"
|
1275 |
msgstr ""
|
1276 |
|
1277 |
+
#: includes/views/admin_options_shipping_provider.php:18
|
1278 |
+
msgid "active"
|
1279 |
+
msgstr "פעיל"
|
1280 |
+
|
1281 |
+
#: includes/views/admin_options_shipping_provider.php:18
|
1282 |
+
msgid "inactive"
|
1283 |
+
msgstr "לא פעיל"
|
1284 |
|
1285 |
+
#: includes/views/admin_options_shipping_provider.php:22
|
1286 |
+
msgid "Search by provider / country"
|
1287 |
+
msgstr "חפש לפי ספק שילוח / מדינה"
|
1288 |
+
|
1289 |
+
#: includes/views/admin_options_shipping_provider.php:96
|
1290 |
msgid "Add Custom Shipping Provider"
|
1291 |
msgstr "הוספת ספק משלוח ייחודי"
|
1292 |
|
1293 |
+
#: includes/views/admin_options_shipping_provider.php:103
|
1294 |
+
#: includes/views/admin_options_shipping_provider.php:137
|
1295 |
msgid "Shiping Country"
|
1296 |
+
msgstr "ארץ משלוח"
|
1297 |
|
1298 |
+
#: includes/views/admin_options_shipping_provider.php:104
|
1299 |
+
#: includes/views/admin_options_shipping_provider.php:138
|
1300 |
msgid "Global"
|
1301 |
+
msgstr "גלובלי"
|
1302 |
|
1303 |
+
#: includes/views/admin_options_shipping_provider.php:130
|
1304 |
msgid "Edit Custom Shipping Provider"
|
1305 |
+
msgstr "עריכת ספק משלוח ייחודי"
|
1306 |
|
1307 |
+
#: includes/views/admin_options_shipping_provider.php:165
|
1308 |
+
#: includes/views/admin_options_shipping_provider.php:172
|
1309 |
msgid "Sync Providers"
|
1310 |
msgstr "סנכרן רשימת ספקי שילוח"
|
1311 |
|
1312 |
+
#: includes/views/admin_options_shipping_provider.php:166
|
1313 |
msgid "Do you really want to sync all providers?"
|
1314 |
+
msgstr "האם ברצונך לסנכרן את רשימת ספקי השילוח?"
|
1315 |
|
1316 |
+
#: includes/views/admin_options_shipping_provider.php:168
|
1317 |
msgid "Providers Added"
|
1318 |
+
msgstr "נוסף ספק משלוח"
|
1319 |
|
1320 |
+
#: includes/views/admin_options_shipping_provider.php:169
|
1321 |
msgid "Providers Updated"
|
1322 |
+
msgstr "עדכון ספקי משלוח"
|
1323 |
|
1324 |
+
#: includes/views/admin_options_shipping_provider.php:170
|
1325 |
msgid "Providers Deleted"
|
1326 |
+
msgstr "ספק משלוח נמחק"
|
1327 |
+
|
1328 |
+
#: includes/views/admin_options_trackship_integration.php:12
|
1329 |
+
msgid "Connection status"
|
1330 |
+
msgstr "מצב חיבור"
|
1331 |
|
1332 |
+
#: includes/views/admin_options_trackship_integration.php:19
|
1333 |
+
msgid "TrackShip Connection Status"
|
1334 |
+
msgstr "מצב חיבור ל - TrackShip"
|
1335 |
+
|
1336 |
+
#: includes/views/admin_options_trackship_integration.php:30
|
1337 |
+
msgid ""
|
1338 |
+
"You are now connected with TrackShip! TrackShip makes it effortless to "
|
1339 |
+
"automate your post shipping operations and get tracking and delivery status "
|
1340 |
+
"updates directly in the WooCommerce admin."
|
1341 |
msgstr ""
|
1342 |
|
1343 |
+
#: includes/views/admin_options_trackship_integration.php:36
|
1344 |
+
msgid "TrackShip Dashboard"
|
1345 |
+
msgstr "לוח בקרה ב -TrackShip"
|
1346 |
+
|
1347 |
+
#: includes/views/admin_options_trackship_integration.php:72
|
1348 |
msgid "Tracking Page"
|
1349 |
msgstr "לינק למעקב"
|
1350 |
|
1351 |
+
#: includes/views/admin_options_trackship_integration.php:82
|
|
|
|
|
|
|
|
|
1352 |
msgid "Click to preview the tracking page"
|
1353 |
+
msgstr "צפה בדוגמא של עמוד המעקב"
|
1354 |
|
1355 |
+
#: includes/views/admin_options_trackship_integration.php:83
|
1356 |
msgid "PLEASE NOTE - make sure to save your settings before preview."
|
1357 |
+
msgstr "שים לב לשמור את ההגדרות לפני צפייה בדוגמא של עמוד המעקב."
|
1358 |
|
1359 |
+
#: includes/views/admin_options_trackship_integration.php:102
|
1360 |
msgid "Shipment Status Notifications "
|
1361 |
msgstr "התראות סטטוס משלוח"
|
1362 |
|
1363 |
+
#: includes/views/admin_options_trackship_integration.php:130
|
1364 |
msgid ""
|
1365 |
"Carrier has accepted or picked up shipment from shipper. The shipment is on "
|
1366 |
"the way."
|
1367 |
+
msgstr "המוביל קיבל או אסף את המשלוח. המשלוח בדרך."
|
1368 |
|
1369 |
+
#: includes/views/admin_options_trackship_integration.php:144
|
1370 |
msgid "Shipment is returned to sender"
|
1371 |
+
msgstr "המשלוח הוחזר לשולח"
|
1372 |
|
1373 |
+
#: includes/views/admin_options_trackship_integration.php:158
|
1374 |
msgid "The shipment is ready to pickup."
|
1375 |
msgstr "המשלוח מוכן לאיסוף"
|
1376 |
|
1377 |
+
#: includes/views/admin_options_trackship_integration.php:171
|
1378 |
msgid "Carrier is about to deliver the shipment"
|
1379 |
+
msgstr "החבילה יצאה אלייך, ספק המשלוח עומד למסור את החבילה."
|
1380 |
|
1381 |
+
#: includes/views/admin_options_trackship_integration.php:185
|
1382 |
msgid "The shipment was delivered successfully"
|
1383 |
msgstr "המשלוח נמסר ללקוח"
|
1384 |
|
1385 |
+
#: includes/views/admin_options_trackship_integration.php:186
|
1386 |
msgid ""
|
1387 |
"You already have delivered email enabled, to enable this email you'll need "
|
1388 |
"to disable the order status delivered in settings."
|
1389 |
msgstr ""
|
1390 |
|
1391 |
+
#: includes/views/admin_options_trackship_integration.php:200
|
1392 |
msgid ""
|
1393 |
"Carrier attempted to deliver but failed, and usually leaves a notice and "
|
1394 |
"will try to deliver the package again."
|
1395 |
msgstr ""
|
1396 |
+
"המוביל ניסה למסור אך נכשל, ובדרך כלל הוא משאיר הודעה וינסה למסור את החבילה "
|
1397 |
+
"שוב במועד מאוחר יותר.\n"
|
1398 |
|
1399 |
#: includes/views/html-tracking-info-design-preview.php:60
|
1400 |
msgid "USPS"
|
1401 |
msgstr "USPS"
|
1402 |
|
|
|
|
|
|
|
|
|
1403 |
#: includes/views/zorem_admin_ts_sidebar.php:5
|
1404 |
msgid "Dashboard"
|
1405 |
msgstr ""
|
1406 |
|
|
|
|
|
|
|
|
|
1407 |
#: templates/emails/tracking-info.php:138
|
1408 |
msgid "Status"
|
1409 |
msgstr "סטטוס"
|
1410 |
|
1411 |
+
#: templates/emails/wcast-email-order-details.php:31
|
1412 |
msgid "Order Details"
|
1413 |
msgstr ""
|
1414 |
|
1415 |
#. %s: Order ID.
|
1416 |
+
#: templates/emails/wcast-email-order-details.php:47
|
1417 |
#, php-format
|
1418 |
msgid "Order number: %s"
|
1419 |
msgstr ""
|
1420 |
|
1421 |
+
#: templates/emails/wcast-email-order-details.php:54
|
1422 |
msgid "Order date:"
|
1423 |
msgstr ""
|
1424 |
|
1425 |
#: templates/emails/plain/tracking-info.php:18
|
1426 |
msgid "TRACKING INFORMATION"
|
1427 |
msgstr "מעקב אחרי מידע"
|
1428 |
+
|
1429 |
+
#. Name of the plugin
|
1430 |
+
msgid "Advanced Shipment Tracking for WooCommerce"
|
1431 |
+
msgstr "מעקב משלוחים מתקדם עבור ווקומרס"
|
1432 |
+
|
1433 |
+
#. Description of the plugin
|
1434 |
+
msgid ""
|
1435 |
+
"Add shipment tracking information to your WooCommerce orders and provide "
|
1436 |
+
"customers with an easy way to track their orders. Shipment tracking Info "
|
1437 |
+
"will appear in customers accounts (in the order panel) and in WooCommerce "
|
1438 |
+
"order complete email."
|
1439 |
+
msgstr ""
|
1440 |
+
"מעקב משלוחים מתקדם לווקומרס הוא תוסף המאפשר להוסיף פרטי מעקב משלוחים להזמנות."
|
1441 |
+
" התוסף מספק יותר מ-100 חברות שילוח מוגדרות מראש, וניתן להוסיף גם חברות שילוח "
|
1442 |
+
"בהתאמה אישית. התוסף מאפשר להוסיף לכל הזמנה ספק משלוחים, מספר מעקב ותאריך "
|
1443 |
+
"משלוח. הלקוח יקבל את מידע המעקב ולינק באימייל של \"הזמנה הושלמה\" ומידע "
|
1444 |
+
"המעקב גם יוצג להזמנות בחשבון האישי של הלקוח באתר."
|
1445 |
+
|
1446 |
+
#. Author of the plugin
|
1447 |
+
msgid "zorem"
|
1448 |
+
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-
|
6 |
-
"PO-Revision-Date: 2019-09-
|
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:
|
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:
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
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:
|
39 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
40 |
msgid "Shipped"
|
41 |
msgstr "भेज दिया"
|
42 |
|
43 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
51 |
msgid "Change status to shipped"
|
52 |
msgstr "शिप करने की स्थिति बदलें"
|
53 |
|
54 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
55 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
56 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
57 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
58 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
59 |
-
#: includes/customizer/class-wcast-customizer.php:
|
60 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
61 |
-
#: includes/views/admin_options_trackship_integration.php:
|
62 |
msgid "Delivered"
|
63 |
msgstr "पहुंचा दिया"
|
64 |
|
65 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
73 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
74 |
msgid "Updated Tracking"
|
75 |
msgstr "अपडेटेड ट्रैकिंग"
|
76 |
|
77 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
85 |
msgid "Change status to delivered"
|
86 |
msgstr "वितरित करने के लिए स्थिति बदलें"
|
87 |
|
88 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
89 |
msgid "Shipment status"
|
90 |
msgstr ""
|
91 |
"नौवहन स्थिति\n"
|
92 |
|
93 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
133 |
msgid "Really delete this entry? This will not be undo."
|
134 |
msgstr "वास्तव में इस प्रविष्टि को हटा दें? यह पूर्ववत नहीं होगा।"
|
135 |
|
136 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
137 |
msgid "You can upload only csv file."
|
138 |
msgstr "आप केवल csv फ़ाइल अपलोड कर सकते हैं।"
|
139 |
|
140 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
141 |
msgid "This browser does not support HTML5."
|
142 |
msgstr "यह ब्राउज़र HTML5 का समर्थन नहीं करता है।"
|
143 |
|
144 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
145 |
msgid "Please upload a valid CSV file."
|
146 |
msgstr "कृपया एक मान्य CSV फ़ाइल अपलोड करें।"
|
147 |
|
148 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
|
|
|
|
|
|
|
|
157 |
msgid "Bulk Upload"
|
158 |
msgstr "सामूहिक अपलोड"
|
159 |
|
160 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
|
|
165 |
msgid "Connected"
|
166 |
msgstr "जुड़े हुए"
|
167 |
|
168 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
|
|
169 |
msgid ""
|
170 |
-
"
|
171 |
-
"
|
172 |
msgstr ""
|
173 |
-
"अपने सभी स्टोरों को ऑटो-ट्रैक करें, अपने स्टोर व्यवस्थापक को छोड़ने के बिना "
|
174 |
-
"वास्तविक समय शिपमेंट ट्रैकिंग अपडेट प्राप्त करें।"
|
175 |
|
176 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
177 |
-
|
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:
|
186 |
#, php-format
|
187 |
-
msgid "
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
msgid "TrackShip Connection Status"
|
192 |
-
msgstr "TrackShip कनेक्शन स्थिति"
|
193 |
|
194 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
200 |
msgid "Set order status Delivered when order is delivered"
|
201 |
msgstr "ऑर्डर की स्थिति सेट करें जब ऑर्डर दिया जाता है तब वितरित किया गया"
|
202 |
|
203 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
221 |
msgid "Select Tracking Page"
|
222 |
msgstr ""
|
223 |
"ट्रैकिंग पृष्ठ का चयन करें\n"
|
224 |
|
225 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
235 |
msgid "Select primary color for tracking page"
|
236 |
msgstr ""
|
237 |
"ट्रैकिंग पृष्ठ के लिए प्राथमिक रंग चुनें\n"
|
238 |
|
239 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
240 |
msgid "Select content border color for tracking page"
|
241 |
msgstr "ट्रैकिंग पृष्ठ के लिए सामग्री सीमा रंग चुनें"
|
242 |
|
243 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
244 |
-
msgid ""
|
245 |
-
|
246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
256 |
-
msgid "
|
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:
|
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:
|
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:
|
289 |
-
msgid "
|
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:
|
297 |
-
msgid "
|
298 |
-
msgstr "
|
299 |
|
300 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
301 |
msgid "Show tracking info in Invoice"
|
302 |
msgstr "चालान में ट्रैकिंग जानकारी दिखाएं"
|
303 |
|
304 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
305 |
msgid "Show tracking info in Packing Slip"
|
306 |
msgstr "पैकिंग स्लिप में ट्रैकिंग जानकारी दिखाएं"
|
307 |
|
308 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
309 |
-
msgid "Enable
|
310 |
-
msgstr "
|
311 |
|
312 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
321 |
-
msgid "Delivered
|
322 |
-
msgstr "
|
323 |
|
324 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
325 |
-
|
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:
|
332 |
-
|
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:
|
350 |
-
msgid "
|
351 |
-
msgstr "
|
352 |
|
353 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
354 |
-
msgid "
|
355 |
-
msgstr "
|
356 |
|
357 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
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:
|
378 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
379 |
-
#: includes/customizer/class-wcast-customizer.php:
|
380 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
381 |
-
#: includes/views/admin_options_trackship_integration.php:
|
382 |
msgid "In Transit"
|
383 |
msgstr ""
|
384 |
"रास्ते में\n"
|
385 |
|
386 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
387 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
388 |
-
#: includes/customizer/class-wcast-customizer.php:
|
389 |
msgid "Pre Transit"
|
390 |
msgstr ""
|
391 |
"पूर्व पारगमन\n"
|
392 |
|
393 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
394 |
-
|
|
|
|
|
|
|
|
|
395 |
msgstr ""
|
396 |
"डिलिवरी के लिए रवाना\n"
|
397 |
|
398 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
399 |
-
#: includes/
|
400 |
-
#: includes/customizer/class-
|
401 |
-
#: includes/
|
|
|
402 |
msgid "Available For Pickup"
|
403 |
msgstr ""
|
404 |
"बटोरने के लिए उपलब्ध\n"
|
405 |
|
406 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
407 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
408 |
-
#: includes/customizer/class-wcast-customizer.php:
|
409 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
410 |
-
#: includes/views/admin_options_trackship_integration.php:
|
411 |
msgid "Return To Sender"
|
412 |
msgstr ""
|
413 |
"भेजने वाले को वापिस लौटा दें\n"
|
414 |
|
415 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
416 |
msgid "Delivery Failure"
|
417 |
msgstr ""
|
418 |
"वितरण विफल\n"
|
419 |
|
420 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
421 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
422 |
msgid "Unknown"
|
423 |
msgstr ""
|
424 |
"अनजान\n"
|
425 |
|
426 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
427 |
msgid "Pending TrackShip"
|
428 |
msgstr ""
|
429 |
"लंबित ट्रैकशिप\n"
|
430 |
|
431 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
432 |
msgid "Invalid Tracking"
|
433 |
msgstr ""
|
434 |
"अमान्य ट्रैकिंग\n"
|
435 |
|
436 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
437 |
-
|
438 |
-
|
|
|
439 |
|
440 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
441 |
msgid "Invalid User Key"
|
442 |
msgstr ""
|
443 |
|
444 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
445 |
msgid "Resend delivered order notification"
|
446 |
msgstr "डिलीट ऑर्डर नोटिफिकेशन"
|
447 |
|
448 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
449 |
msgid "Shipped Order"
|
450 |
msgstr "आदेश भेज दिया"
|
451 |
|
452 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
453 |
msgid "Mark order as delivered"
|
454 |
msgstr "वितरित के रूप में मार्क आदेश"
|
455 |
|
456 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
457 |
msgid "Add Tracking"
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
461 |
msgid "Change order status to"
|
462 |
msgstr "ऑर्डर की स्थिति बदलें"
|
463 |
|
464 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
465 |
-
#: includes/views/admin_options_shipping_provider.php:
|
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:
|
471 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
472 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
473 |
msgid "view details"
|
474 |
msgstr "विवरण देखें"
|
475 |
|
476 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
477 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
478 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
479 |
msgid "hide details"
|
480 |
msgstr "जानकारी छिपाएँ"
|
481 |
|
482 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
483 |
-
|
484 |
-
|
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:
|
498 |
-
msgid "
|
499 |
-
msgstr ""
|
500 |
|
501 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
502 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
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:
|
508 |
msgid "Filter by shipment status"
|
509 |
msgstr ""
|
510 |
|
511 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
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:
|
522 |
msgid "Order ID"
|
523 |
msgstr ""
|
524 |
"आदेश कामतत्व\n"
|
525 |
|
526 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
527 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
528 |
msgid "Found in your order confirmation email."
|
529 |
msgstr ""
|
530 |
"आपके आदेश की पुष्टि ईमेल में मिली।\n"
|
531 |
|
532 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
533 |
msgid "Order Email"
|
534 |
msgstr ""
|
535 |
"आदेश ईमेल\n"
|
536 |
|
537 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
538 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
539 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
540 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
541 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
542 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
543 |
-
#:
|
544 |
-
#: templates/
|
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:
|
550 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
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:
|
557 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
558 |
msgid "Order: "
|
559 |
msgstr "आदेश:"
|
560 |
|
561 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
562 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
563 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
564 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
565 |
msgid "Estimated Delivery Date: "
|
566 |
msgstr "अनुमानित प्रसव तिथि:"
|
567 |
|
568 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
569 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
570 |
msgid "Tracking Details"
|
571 |
msgstr "ट्रैकिंग विवरण"
|
572 |
|
573 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
574 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
575 |
msgid "view more"
|
576 |
msgstr "और देखो"
|
577 |
|
578 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
579 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
580 |
msgid "view less"
|
581 |
msgstr "कम देखें"
|
582 |
|
583 |
-
|
584 |
-
|
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:
|
594 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
595 |
-
#: includes/customizer/class-wcast-customizer.php:
|
596 |
msgid "Shipment Tracking"
|
597 |
msgstr "नौवहन पर नज़र रखना"
|
598 |
|
599 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
600 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
601 |
-
msgid "
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
605 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
606 |
-
msgid "
|
607 |
msgstr ""
|
608 |
|
609 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
610 |
msgid "Add Tracking Number"
|
611 |
msgstr ""
|
612 |
|
613 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
614 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
615 |
msgid "Provider:"
|
616 |
msgstr "प्रदाता:"
|
617 |
|
618 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
619 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
620 |
msgid "Tracking number:"
|
621 |
msgstr "खोज संख्या:"
|
622 |
|
623 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
624 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
625 |
msgid "Date shipped:"
|
626 |
msgstr "जिस तारीख पर भेजा गया:"
|
627 |
|
628 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
629 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
630 |
msgid "Click here to track your shipment"
|
631 |
msgstr "अपने शिपमेंट को ट्रैक करने के लिए यहां क्लिक करें"
|
632 |
|
633 |
#. 1: shipping date
|
634 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
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:
|
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:
|
649 |
msgid "Select Provider"
|
650 |
msgstr "Select Provider"
|
651 |
|
652 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
653 |
msgid "Save Tracking"
|
654 |
msgstr "ट्रैकिंग सहेजें"
|
655 |
|
656 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
657 |
msgid "Preview:"
|
658 |
msgstr "पूर्वावलोकन:"
|
659 |
|
660 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
661 |
msgid "Click here to track shipment"
|
662 |
msgstr "शिपमेंट को ट्रैक करने के लिए यहां क्लिक करें"
|
663 |
|
664 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
665 |
msgid "Shipment Status Emails"
|
666 |
msgstr "शिपमेंट स्थिति ईमेल"
|
667 |
|
668 |
-
#: includes/customizer/class-wcast-customizer.php:
|
669 |
msgid "Tracking info display"
|
670 |
msgstr ""
|
671 |
"ट्रैकिंग जानकारी प्रदर्शित करें\n"
|
672 |
|
673 |
-
#: includes/customizer/class-wcast-customizer.php:
|
674 |
-
|
675 |
-
|
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 |
-
"
|
684 |
|
685 |
-
#: includes/customizer/class-wcast-customizer.php:
|
686 |
msgid "Select order to preview"
|
687 |
msgstr ""
|
688 |
"पूर्वावलोकन करने के लिए आदेश का चयन करें\n"
|
689 |
|
690 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
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:
|
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:
|
704 |
msgid "Available For Pickup shipment status email"
|
705 |
msgstr ""
|
706 |
"पिकअप शिपमेंट स्थिति ईमेल के लिए उपलब्ध है\n"
|
707 |
|
708 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
709 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
710 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
711 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
712 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
713 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
714 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
715 |
msgid "This section lets you customize the Email Content."
|
716 |
msgstr ""
|
717 |
"यह अनुभाग आपको ईमेल सामग्री को अनुकूलित करने देता है।\n"
|
718 |
|
719 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
720 |
msgid "Enable Available For Pickup shipment status email"
|
721 |
msgstr "पिकअप शिपमेंट स्थिति ईमेल के लिए उपलब्ध सक्षम करें"
|
722 |
|
723 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
724 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
725 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
726 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
727 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
728 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
729 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
730 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
731 |
msgid "Preview order"
|
732 |
msgstr ""
|
733 |
"पूर्वावलोकन आदेश\n"
|
734 |
|
735 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
736 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
737 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
738 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
739 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
740 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
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:
|
758 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
759 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
760 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
761 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
762 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
763 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
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:
|
768 |
-
#: includes/customizer/class-wc-
|
769 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
770 |
-
#: includes/customizer/class-wc-
|
771 |
-
#: includes/customizer/class-wc-
|
772 |
-
#: includes/customizer/class-wc-
|
773 |
-
#: includes/customizer/class-wc-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
#: includes/customizer/class-wc-
|
778 |
-
#: includes/customizer/class-wc-
|
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:
|
793 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
794 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
795 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
796 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
797 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
798 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
799 |
msgid "Please enter email subject here"
|
800 |
msgstr "कृपया यहाँ ईमेल विषय दर्ज करें"
|
801 |
|
802 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
803 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
804 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
805 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
806 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
807 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
808 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
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:
|
824 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
825 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
826 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
827 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
828 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
829 |
msgid "Show tracking details"
|
830 |
msgstr ""
|
831 |
"ट्रैकिंग विवरण दिखाएं\n"
|
832 |
|
833 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
834 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
835 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
836 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
837 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
838 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
839 |
msgid "Show order details"
|
840 |
msgstr ""
|
841 |
"आदेश का विवरण दिखाएं\n"
|
842 |
|
843 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
844 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
845 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
846 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
847 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
848 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
849 |
msgid "Show billing address"
|
850 |
msgstr ""
|
851 |
"बिलिंग पता दिखाएं\n"
|
852 |
|
853 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
854 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
855 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
856 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
857 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
858 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
859 |
msgid "Show shipping address"
|
860 |
msgstr ""
|
861 |
"शिपिंग पता दिखाएं\n"
|
862 |
|
863 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
864 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
865 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
866 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
867 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
868 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
869 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
870 |
msgid "Google Analytics link tracking"
|
871 |
msgstr ""
|
872 |
|
873 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
874 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
875 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
876 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
877 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
878 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
879 |
msgid "This will be appended to URL in the email content"
|
880 |
msgstr ""
|
881 |
|
882 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
883 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
884 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
885 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
886 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
887 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
888 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
889 |
msgid "Email content"
|
890 |
msgstr "ईमेल सामग्री"
|
891 |
|
892 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
893 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
894 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
895 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
896 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
897 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
898 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
899 |
msgid "Available placeholders"
|
900 |
msgstr ""
|
901 |
"उपलब्ध प्लेसहोल्डर\n"
|
902 |
|
903 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
904 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
905 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
906 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
907 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
908 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
909 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
910 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
911 |
-
msgid "Please select preview
|
912 |
msgstr ""
|
913 |
-
"कृपया पूर्वावलोकन क्रम का चयन करें।\n"
|
914 |
|
915 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
916 |
msgid "Your order #{order_number} has been delivered"
|
917 |
msgstr ""
|
918 |
|
919 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
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:
|
928 |
msgid "Delivered shipment status email"
|
929 |
msgstr ""
|
930 |
"शिपमेंट स्थिति ईमेल वितरित किया गया\n"
|
931 |
|
932 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
933 |
msgid "Enable Delivered shipment status email"
|
934 |
msgstr ""
|
935 |
"वितरित शिपमेंट स्थिति ईमेल सक्षम करें\n"
|
936 |
|
937 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
938 |
-
#: includes/emails/class-shipment-delivered-email.php:
|
939 |
msgid "Your {site_title} order is now delivered"
|
940 |
msgstr ""
|
941 |
"अब आपका {site_title} ऑर्डर डिलीवर हो गया है\n"
|
942 |
|
943 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
944 |
-
#: includes/emails/class-shipment-delivered-email.php:
|
945 |
msgid "Thanks for shopping with us"
|
946 |
msgstr ""
|
947 |
"हमारे साथ खरीदारी करने के लिए धन्यवाद\n"
|
948 |
|
949 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
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:
|
955 |
msgid "Enable Delivered order status email"
|
956 |
msgstr ""
|
957 |
"वितरित आदेश स्थिति ईमेल सक्षम करें\n"
|
958 |
|
959 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
960 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
961 |
msgid "Please select a order..."
|
962 |
msgstr ""
|
963 |
"कृपया एक आदेश चुनें ...\n"
|
964 |
|
965 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
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:
|
976 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
977 |
msgid "Available variables: {site_title}, {order_number}"
|
978 |
msgstr ""
|
979 |
|
980 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
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:
|
987 |
msgid "Display tracking details"
|
988 |
msgstr ""
|
989 |
|
990 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
991 |
msgid "Display order details"
|
992 |
msgstr ""
|
993 |
|
994 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
995 |
msgid "Display Shipping Address"
|
996 |
msgstr ""
|
997 |
|
998 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
999 |
msgid "Display Billing Address"
|
1000 |
msgstr ""
|
1001 |
|
1002 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1003 |
msgid "Enable Google Analytics tracking"
|
1004 |
msgstr ""
|
1005 |
|
1006 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
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:
|
1013 |
msgid "Your order #{order_number} is Failed Attempt"
|
1014 |
msgstr "आपका आदेश # {order_number} विफल है"
|
1015 |
|
1016 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
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:
|
1025 |
msgid "Failed Attempt shipment status email"
|
1026 |
msgstr "असफल शिपमेंट स्थिति ईमेल"
|
1027 |
|
1028 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
1029 |
msgid "Enable Failed Attempt shipment status email"
|
1030 |
msgstr "असफल शिपमेंट स्थिति ईमेल सक्षम करें"
|
1031 |
|
1032 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
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:
|
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:
|
1046 |
msgid "In Transit shipment status email"
|
1047 |
msgstr ""
|
1048 |
"ट्रांजिट शिपमेंट स्थिति ईमेल में\n"
|
1049 |
|
1050 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1051 |
msgid "Enable In Transit shipment status email"
|
1052 |
msgstr ""
|
1053 |
"ट्रांजिट शिपमेंट स्थिति ईमेल में सक्षम करें\n"
|
1054 |
|
1055 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
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:
|
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:
|
1069 |
msgid "Out For Delivery shipment status email"
|
1070 |
msgstr ""
|
1071 |
"डिलीवरी शिपमेंट स्थिति ईमेल के लिए\n"
|
1072 |
|
1073 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
1074 |
msgid "Enable Out For Delivery shipment status email"
|
1075 |
msgstr "वितरण शिपमेंट स्थिति ईमेल के लिए सक्षम करें"
|
1076 |
|
1077 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
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:
|
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:
|
1091 |
msgid "Return To Sender shipment status email"
|
1092 |
msgstr ""
|
1093 |
"प्रेषक शिपमेंट स्थिति ईमेल पर लौटें\n"
|
1094 |
|
1095 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
1096 |
msgid "Enable Return To Sender shipment status email"
|
1097 |
msgstr "प्रेषक शिपमेंट स्थिति ईमेल पर वापसी सक्षम करें"
|
1098 |
|
1099 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1100 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1101 |
-
#:
|
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:
|
1107 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1108 |
-
#:
|
1109 |
-
#: templates/
|
1110 |
-
#: templates/myaccount/view-order.php:111
|
1111 |
msgid "Tracking Number"
|
1112 |
msgstr "खोज संख्या"
|
1113 |
|
1114 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1115 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1116 |
msgid "Shipped Date"
|
1117 |
msgstr ""
|
1118 |
"भेजने की तिथि\n"
|
1119 |
|
1120 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|
1129 |
msgid "Tracking Display Position"
|
1130 |
msgstr "ट्रैकिंग प्रदर्शन की स्थिति"
|
1131 |
|
1132 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1133 |
msgid "Before Order Details"
|
1134 |
msgstr "आदेश विवरण से पहले"
|
1135 |
|
1136 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1137 |
msgid "After Order Details"
|
1138 |
msgstr "आदेश विवरण के बाद"
|
1139 |
|
1140 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1141 |
msgid "Main Header text"
|
1142 |
msgstr "मुख्य हैडर पाठ"
|
1143 |
|
1144 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1145 |
-
#: templates/pip/tracking-info.php:17
|
1146 |
msgid "Tracking Information"
|
1147 |
msgstr "ट्रैकिंग जानकारी"
|
1148 |
|
1149 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1150 |
msgid "Additional text after header"
|
1151 |
msgstr "हेडर के बाद अतिरिक्त पाठ"
|
1152 |
|
1153 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1154 |
-
msgid "Table
|
1155 |
-
msgstr "
|
1156 |
|
1157 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1158 |
msgid "Display Shipment Provider image"
|
1159 |
msgstr "शिपमेंट प्रदाता छवि प्रदर्शित करें"
|
1160 |
|
1161 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1162 |
msgid "Hide date"
|
1163 |
msgstr "तारीख छिपाएं"
|
1164 |
|
1165 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1166 |
msgid "Provider Header Text"
|
1167 |
msgstr "प्रदाता हैडर पाठ"
|
1168 |
|
1169 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1170 |
msgid "Tracking Number Header Text"
|
1171 |
msgstr "ट्रैकिंग नंबर हैडर पाठ"
|
1172 |
|
1173 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1174 |
msgid "Shipped Date Header Text"
|
1175 |
msgstr "भेज दिया गया हैडर पाठ"
|
1176 |
|
1177 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1178 |
msgid "Track Label"
|
1179 |
msgstr ""
|
1180 |
"ट्रैक लेबल\n"
|
1181 |
|
1182 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1183 |
msgid "Track Header Text"
|
1184 |
msgstr "ट्रैक हैडर पाठ"
|
1185 |
|
1186 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1187 |
msgid "Table Design"
|
1188 |
msgstr ""
|
1189 |
"टेबल डिजाइन\n"
|
1190 |
|
1191 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1192 |
msgid "Padding"
|
1193 |
msgstr ""
|
1194 |
"गद्दी\n"
|
1195 |
|
1196 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1197 |
msgid "Background color"
|
1198 |
msgstr ""
|
1199 |
"पीछे का रंग\n"
|
1200 |
|
1201 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1202 |
msgid "Border color"
|
1203 |
msgstr ""
|
1204 |
"किनारे का रंग\n"
|
1205 |
|
1206 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1207 |
msgid "Border size"
|
1208 |
msgstr ""
|
1209 |
"सीमा का आकार\n"
|
1210 |
|
1211 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
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:
|
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:
|
1246 |
msgid "Table content font color"
|
1247 |
msgstr "तालिका सामग्री फ़ॉन्ट रंग"
|
1248 |
|
1249 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1250 |
msgid "Content line height"
|
1251 |
msgstr ""
|
1252 |
"सामग्री लाइन ऊंचाई\n"
|
1253 |
|
1254 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1255 |
msgid "Content font weight"
|
1256 |
msgstr ""
|
1257 |
"सामग्री फ़ॉन्ट वजन\n"
|
1258 |
|
1259 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1260 |
-
msgid "Track
|
1261 |
-
msgstr "
|
1262 |
|
1263 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1264 |
msgid "Track Link Font Color"
|
1265 |
msgstr "ट्रैक लिंक फ़ॉन्ट रंग"
|
1266 |
|
1267 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1268 |
msgid "Track Link Background Color"
|
1269 |
msgstr "ट्रैक लिंक बैकग्राउंड कलर"
|
1270 |
|
1271 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
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:
|
1331 |
-
msgid "
|
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:
|
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:
|
1372 |
msgid "Upload CSV"
|
1373 |
msgstr "CSV अपलोड करें"
|
1374 |
|
1375 |
-
#: includes/views/admin_options_bulk_upload.php:
|
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:
|
1384 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1385 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1386 |
msgid "Upload"
|
1387 |
msgstr "अपलोड"
|
1388 |
|
1389 |
-
#: includes/views/admin_options_bulk_upload.php:
|
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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1396 |
msgid "You can download an example of the csv file:"
|
1397 |
msgstr "आप csv फ़ाइल का एक उदाहरण डाउनलोड कर सकते हैं:"
|
1398 |
|
1399 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1400 |
msgid "Download sample csv file"
|
1401 |
msgstr "नमूना csv फ़ाइल डाउनलोड करें"
|
1402 |
|
1403 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1404 |
msgid ""
|
1405 |
"For detailed instructions on how to upload tracking info in bulk, see our"
|
1406 |
msgstr ""
|
1407 |
"थोक में ट्रैकिंग जानकारी कैसे अपलोड करें, इस बारे में विस्तृत निर्देशों के "
|
1408 |
"लिए, देखें"
|
1409 |
|
1410 |
-
#: includes/views/
|
1411 |
-
|
1412 |
-
|
|
|
|
|
|
|
1413 |
|
1414 |
-
#: includes/views/
|
1415 |
-
msgid "
|
1416 |
-
msgstr "
|
1417 |
|
1418 |
-
#: includes/views/admin_options_settings.php:
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
|
|
|
|
|
|
1422 |
|
1423 |
-
#: includes/views/admin_options_settings.php:
|
1424 |
-
#: includes/views/admin_options_settings.php:19
|
1425 |
msgid "Delivered Order Status"
|
1426 |
msgstr "वितरित स्थिति"
|
1427 |
|
1428 |
-
#: includes/views/
|
1429 |
-
msgid "
|
1430 |
msgstr ""
|
1431 |
-
"ट्रैकिंग जानकारी प्रदर्शित डिजाइनर\n"
|
1432 |
|
1433 |
-
#: includes/views/
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1437 |
|
1438 |
-
#: includes/views/
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1443 |
|
1444 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1445 |
msgid "Add Custom Shipping Provider"
|
1446 |
msgstr "कस्टम शिपिंग प्रदाता जोड़ें"
|
1447 |
|
1448 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1449 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1450 |
-
msgid "
|
1451 |
-
msgstr "
|
1452 |
|
1453 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1454 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1455 |
msgid "Global"
|
1456 |
msgstr ""
|
1457 |
|
1458 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1459 |
msgid "Edit Custom Shipping Provider"
|
1460 |
msgstr "कस्टम शिपिंग प्रदाता संपादित करें"
|
1461 |
|
1462 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
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:
|
1472 |
msgid "Providers Added"
|
1473 |
msgstr "प्रदाता जोड़े गए"
|
1474 |
|
1475 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1476 |
msgid "Providers Updated"
|
1477 |
msgstr "प्रदाताओं अद्यतन"
|
1478 |
|
1479 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1480 |
msgid "Providers Deleted"
|
1481 |
msgstr "प्रदाता हटा दिए गए"
|
1482 |
|
1483 |
-
#: includes/views/
|
1484 |
-
msgid "
|
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:
|
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:
|
1501 |
msgid "PLEASE NOTE - make sure to save your settings before preview."
|
1502 |
msgstr ""
|
1503 |
"कृपया ध्यान दें - पूर्वावलोकन से पहले अपनी सेटिंग्स को सहेजना सुनिश्चित करें।"
|
1504 |
|
1505 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1506 |
msgid "Shipment Status Notifications "
|
1507 |
msgstr "शिपमेंट स्थिति अधिसूचनाएँ"
|
1508 |
|
1509 |
-
#: includes/views/admin_options_trackship_integration.php:
|
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:
|
1517 |
msgid "Shipment is returned to sender"
|
1518 |
msgstr "शिपमेंट प्रेषक को वापस कर दिया जाता है"
|
1519 |
|
1520 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1521 |
msgid "The shipment is ready to pickup."
|
1522 |
msgstr "शिपमेंट पिकअप के लिए तैयार है।"
|
1523 |
|
1524 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1525 |
msgid "Carrier is about to deliver the shipment"
|
1526 |
msgstr "वाहक शिपमेंट वितरित करने वाला है"
|
1527 |
|
1528 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1529 |
msgid "The shipment was delivered successfully"
|
1530 |
msgstr "शिपमेंट सफलतापूर्वक वितरित किया गया था"
|
1531 |
|
1532 |
-
#: includes/views/admin_options_trackship_integration.php:
|
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:
|
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/
|
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 |
-
#:
|
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:
|
1569 |
msgid "Order Details"
|
1570 |
msgstr ""
|
1571 |
"ऑर्डर का विवरण\n"
|
1572 |
|
1573 |
#. %s: Order ID.
|
1574 |
-
#: templates/emails/wcast-email-order-details.php:
|
1575 |
#, php-format
|
1576 |
msgid "Order number: %s"
|
1577 |
msgstr ""
|
1578 |
"क्रम संख्या:% s\n"
|
1579 |
|
1580 |
-
#: templates/emails/wcast-email-order-details.php:
|
1581 |
msgid "Order date:"
|
1582 |
msgstr ""
|
1583 |
"आदेश की तारीख:\n"
|
1584 |
|
1585 |
-
|
1586 |
-
msgid "
|
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.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-
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
@@ -15,18 +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:
|
19 |
#, php-format
|
20 |
-
msgid "
|
|
|
|
|
21 |
msgstr ""
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
msgid "
|
26 |
msgstr ""
|
27 |
|
28 |
#: woocommerce-advanced-shipment-tracking.php:412
|
29 |
-
#: includes/views/admin_options_settings.php:
|
30 |
#, php-format
|
31 |
msgid ""
|
32 |
"<strong>PLEASE NOTE</strong> - If you use the custom order status "
|
@@ -37,1256 +39,997 @@ msgid ""
|
|
37 |
"\"completed\" before deactivating the plugin."
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
41 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
42 |
msgid "Shipped"
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
46 |
#, php-format
|
47 |
msgid "Shipped <span class=\"count\">(%s)</span>"
|
48 |
msgid_plural "Shipped <span class=\"count\">(%s)</span>"
|
49 |
msgstr[0] ""
|
50 |
msgstr[1] ""
|
51 |
|
52 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
53 |
msgid "Change status to shipped"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
57 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
58 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
59 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
60 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
61 |
-
#: includes/customizer/class-wcast-customizer.php:
|
62 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
63 |
-
#: includes/views/admin_options_trackship_integration.php:
|
64 |
msgid "Delivered"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
68 |
#, php-format
|
69 |
msgid "Delivered <span class=\"count\">(%s)</span>"
|
70 |
msgid_plural "Delivered <span class=\"count\">(%s)</span>"
|
71 |
msgstr[0] ""
|
72 |
msgstr[1] ""
|
73 |
|
74 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
75 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
76 |
msgid "Updated Tracking"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
80 |
#, php-format
|
81 |
msgid "Updated Tracking <span class=\"count\">(%s)</span>"
|
82 |
msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
|
83 |
msgstr[0] ""
|
84 |
msgstr[1] ""
|
85 |
|
86 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
87 |
msgid "Change status to delivered"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
91 |
msgid "Shipment status"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
95 |
msgid ""
|
96 |
"Get Shipment Status is limited to 100 orders at a time, please select up to "
|
97 |
"100 orders."
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
101 |
-
msgid "Order"
|
102 |
-
msgstr ""
|
103 |
-
|
104 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:668
|
105 |
-
msgid "Item"
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:669
|
109 |
-
msgid "Line Item"
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:670
|
113 |
-
msgid "Class"
|
114 |
-
msgstr ""
|
115 |
-
|
116 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:671
|
117 |
-
msgid "Delete the selected rates?"
|
118 |
-
msgstr ""
|
119 |
-
|
120 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:672
|
121 |
-
msgid "Duplicate the selected rates?"
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:673
|
125 |
-
msgid "Really want to bulk change all provider status?"
|
126 |
-
msgstr ""
|
127 |
-
|
128 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:674
|
129 |
msgid "Data saved successfully."
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
133 |
msgid "Really delete this entry? This will not be undo."
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
137 |
msgid "You can upload only csv file."
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
141 |
msgid "This browser does not support HTML5."
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
145 |
msgid "Please upload a valid CSV file."
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
149 |
-
msgid "Advanced Shipment Tracking"
|
150 |
-
msgstr ""
|
151 |
-
|
152 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:737
|
153 |
-
msgid "Settings"
|
154 |
-
msgstr ""
|
155 |
-
|
156 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:740
|
157 |
msgid "Shipping Providers"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
161 |
msgid "Bulk Upload"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:749
|
169 |
-
#: includes/views/admin_options_trackship_integration.php:35
|
170 |
-
#: includes/views/zorem_admin_ts_sidebar.php:7
|
171 |
msgid "Documentation"
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
175 |
msgid "How to Video"
|
176 |
msgstr ""
|
177 |
|
178 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
179 |
-
|
180 |
-
msgid "Connected"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
184 |
-
|
185 |
-
|
186 |
-
"without leaving your stores admin."
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
190 |
#, php-format
|
191 |
-
msgid ""
|
192 |
-
"You must have account and connect your store to %s in order to activate "
|
193 |
-
"these advanced features."
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
#, php-format
|
198 |
-
msgid "
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
202 |
-
#: includes/emails/class-shipment-delivered-email.php:226
|
203 |
msgid "Enable/Disable"
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
207 |
msgid "Set order status Delivered when order is delivered"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
211 |
-
#, php-format
|
212 |
-
msgid ""
|
213 |
-
"You have %s %s orders from the last 30 days, would you like to bulk send all "
|
214 |
-
"these orders to TrackShip?"
|
215 |
-
msgstr ""
|
216 |
-
|
217 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1018
|
218 |
-
msgid "Get Shipment Status"
|
219 |
-
msgstr ""
|
220 |
-
|
221 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1056
|
222 |
msgid ""
|
223 |
"You must add the shortcode [wcast-track-order] to the \"page name\" in order "
|
224 |
"for the tracking page to work."
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
228 |
msgid "Select Tracking Page"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
232 |
msgid "Use the tracking page in the customer email/my account tracking link"
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
236 |
msgid "Select primary color for tracking page"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
240 |
msgid "Select content border color for tracking page"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
244 |
msgid "Hide tracking events details"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
248 |
msgid "Remove TrackShip branding"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
252 |
msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
256 |
msgid ""
|
257 |
"This means that the 'mark as <span class='shipped_label'>shipped</span>' "
|
258 |
"will be selected by default when adding tracking info to orders."
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
262 |
-
msgid "Completed"
|
263 |
-
msgstr ""
|
264 |
-
|
265 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1159
|
266 |
msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
270 |
msgid ""
|
271 |
"This means that the 'mark as <span class='shipped_label'>completed</span>' "
|
272 |
"will be selected by default when adding tracking info to orders."
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
276 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:2261
|
277 |
-
msgid "Cancelled"
|
278 |
-
msgstr ""
|
279 |
-
|
280 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1187
|
281 |
-
msgid "Customer Invoice"
|
282 |
-
msgstr ""
|
283 |
-
|
284 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1188
|
285 |
-
msgid "Refunded"
|
286 |
-
msgstr ""
|
287 |
-
|
288 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1189
|
289 |
-
msgid "Processing"
|
290 |
-
msgstr ""
|
291 |
-
|
292 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1190
|
293 |
-
msgid "Failed"
|
294 |
-
msgstr ""
|
295 |
-
|
296 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1204
|
297 |
msgid "Rename the “Completed” Order status to “Shipped”"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
301 |
msgid "On which order status email to include the shipment tracking info?"
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
305 |
msgid "Show tracking info in Invoice"
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
309 |
msgid "Show tracking info in Packing Slip"
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
313 |
msgid "Enable custom order status “Delivered\""
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
317 |
msgid ""
|
318 |
"if you enable the delivered item, you will have the option to send delivered "
|
319 |
"email notifications."
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
323 |
msgid "Delivered Label color"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
327 |
msgid "Delivered Label font color"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
331 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:493
|
332 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:517
|
333 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:525
|
334 |
-
msgid "Select"
|
335 |
-
msgstr ""
|
336 |
-
|
337 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1262
|
338 |
msgid "Light"
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
342 |
msgid "Dark"
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
346 |
msgid "Enable the Delivered order status email"
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
350 |
-
#: includes/
|
351 |
-
#: includes/
|
352 |
-
#: includes/
|
353 |
-
#: includes/views/admin_options_trackship_integration.php:
|
354 |
-
#: includes/views/admin_options_trackship_integration.php:184
|
355 |
-
#: includes/views/admin_options_trackship_integration.php:199
|
356 |
-
msgid "Edit"
|
357 |
-
msgstr ""
|
358 |
-
|
359 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1288
|
360 |
-
msgid ""
|
361 |
-
"Change the \"Delivered\" orders to \"Completed\" when you deactivate the "
|
362 |
-
"plugin"
|
363 |
-
msgstr ""
|
364 |
-
|
365 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1290
|
366 |
-
msgid "No, I will use the snippet"
|
367 |
-
msgstr ""
|
368 |
-
|
369 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1291
|
370 |
-
msgid "Yes, change all Delivered orders to Completed"
|
371 |
-
msgstr ""
|
372 |
-
|
373 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1293
|
374 |
-
#, php-format
|
375 |
-
msgid ""
|
376 |
-
"PLEASE NOTE - If you use the custom order status \"Delivered\", when you "
|
377 |
-
"deactivate the plugin, you must register this order status in function.php "
|
378 |
-
"in order to see these orders in the orders admin. You can find the snippet "
|
379 |
-
"to use in functions.php %s or we can set to change all your \"delivered\" "
|
380 |
-
"order to \"completed\"."
|
381 |
-
msgstr ""
|
382 |
-
|
383 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1618
|
384 |
-
msgid "Get shipment status"
|
385 |
-
msgstr ""
|
386 |
-
|
387 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1646
|
388 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:2256
|
389 |
-
#: includes/customizer/class-wcast-customizer.php:74
|
390 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:115
|
391 |
-
#: includes/views/admin_options_trackship_integration.php:128
|
392 |
msgid "In Transit"
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
396 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
397 |
-
#: includes/customizer/class-wcast-customizer.php:
|
398 |
msgid "Pre Transit"
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
402 |
-
|
|
|
|
|
|
|
|
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
406 |
-
#: includes/
|
407 |
-
#: includes/customizer/class-
|
408 |
-
#: includes/
|
|
|
409 |
msgid "Available For Pickup"
|
410 |
msgstr ""
|
411 |
|
412 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
413 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
414 |
-
#: includes/customizer/class-wcast-customizer.php:
|
415 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
416 |
-
#: includes/views/admin_options_trackship_integration.php:
|
417 |
msgid "Return To Sender"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
421 |
-
|
|
|
|
|
|
|
|
|
422 |
msgstr ""
|
423 |
|
424 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
425 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
426 |
msgid "Unknown"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
430 |
msgid "Pending TrackShip"
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
434 |
-
|
|
|
|
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
438 |
-
|
|
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
442 |
msgid "Invalid User Key"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
446 |
msgid "Wrong Shipping Provider"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
450 |
-
msgid "Deleted"
|
451 |
-
msgstr ""
|
452 |
-
|
453 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1754
|
454 |
msgid "Resend delivered order notification"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
458 |
msgid "Shipped Order"
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
462 |
msgid "Mark order as delivered"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
466 |
msgid "Add Tracking"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
470 |
msgid "Change order status to"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
474 |
-
#: includes/views/admin_options_shipping_provider.php:
|
475 |
#, php-format
|
476 |
msgid "You don't have any %s shipping providers."
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
480 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
481 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
482 |
msgid "view details"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
486 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
487 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
488 |
msgid "hide details"
|
489 |
msgstr ""
|
490 |
|
491 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
492 |
-
msgid "
|
493 |
-
msgstr ""
|
494 |
-
|
495 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:2258
|
496 |
-
msgid "Out for Delivery"
|
497 |
-
msgstr ""
|
498 |
-
|
499 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:2260
|
500 |
-
#: includes/customizer/class-wcast-customizer.php:112
|
501 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:113
|
502 |
-
#: includes/views/admin_options_trackship_integration.php:198
|
503 |
-
msgid "Failed Attempt"
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
507 |
-
msgid "
|
508 |
msgstr ""
|
509 |
|
510 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
511 |
-
|
512 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:827
|
513 |
-
msgid "Invalid Tracking Number"
|
514 |
msgstr ""
|
515 |
|
516 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
517 |
-
msgid "
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
521 |
msgid ""
|
522 |
"To track your order please enter your Order ID in the box below and press "
|
523 |
"the \"Track\" button. This was given to you on your receipt and in the "
|
524 |
"confirmation email you should have received."
|
525 |
msgstr ""
|
526 |
|
527 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
528 |
-
|
529 |
-
msgstr ""
|
530 |
-
|
531 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:141
|
532 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:142
|
533 |
msgid "Found in your order confirmation email."
|
534 |
msgstr ""
|
535 |
|
536 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
537 |
msgid "Order Email"
|
538 |
msgstr ""
|
539 |
|
540 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
541 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
542 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
543 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
544 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
545 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
546 |
-
#:
|
547 |
-
#: templates/
|
548 |
-
#: templates/myaccount/view-order.php:123 templates/pip/tracking-info.php:23
|
549 |
msgid "Track"
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
553 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
554 |
#, php-format
|
555 |
msgid "Shipment - %s (out of %s)"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
559 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:326
|
564 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:330
|
565 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:689
|
566 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:693
|
567 |
msgid "Estimated Delivery Date: "
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
571 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
|
|
572 |
msgid "Tracking Details"
|
573 |
msgstr ""
|
574 |
|
575 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
576 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
|
|
577 |
msgid "view more"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
581 |
-
#: includes/class-wc-advanced-shipment-tracking-front.php:
|
|
|
582 |
msgid "view less"
|
583 |
msgstr ""
|
584 |
|
585 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
586 |
-
msgid "
|
587 |
-
msgstr ""
|
588 |
-
|
589 |
-
#: includes/class-wc-advanced-shipment-tracking-install.php:1590
|
590 |
-
msgid "Add TrackShip integration and automate your post shipping operations!"
|
591 |
-
msgstr ""
|
592 |
-
|
593 |
-
#: includes/class-wc-advanced-shipment-tracking-install.php:1591
|
594 |
-
msgid "Try trackship with 50 free trackers >>"
|
595 |
msgstr ""
|
596 |
|
597 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
598 |
-
|
599 |
-
msgid "SIGNUP NOW"
|
600 |
msgstr ""
|
601 |
|
602 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
603 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
604 |
-
#: includes/customizer/class-wcast-customizer.php:
|
605 |
msgid "Shipment Tracking"
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
609 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
610 |
-
msgid "
|
611 |
msgstr ""
|
612 |
|
613 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
614 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
615 |
-
msgid "
|
616 |
msgstr ""
|
617 |
|
618 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
619 |
msgid "Add Tracking Number"
|
620 |
msgstr ""
|
621 |
|
622 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
623 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
624 |
msgid "Provider:"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
628 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
629 |
msgid "Tracking number:"
|
630 |
msgstr ""
|
631 |
|
632 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
633 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
634 |
msgid "Date shipped:"
|
635 |
msgstr ""
|
636 |
|
637 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
638 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
639 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
640 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
641 |
msgid "Y-m-d"
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
645 |
-
#:
|
646 |
msgid "Click here to track your shipment"
|
647 |
msgstr ""
|
648 |
|
649 |
#. 1: shipping date
|
650 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
651 |
-
#: templates/pip/tracking-info.php:29
|
652 |
#, php-format
|
653 |
msgid "Shipped on %s"
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
657 |
-
msgid "Delete"
|
658 |
-
msgstr ""
|
659 |
-
|
660 |
-
#: includes/class-wc-advanced-shipment-tracking.php:365
|
661 |
msgid "Add Tracking Info"
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
665 |
msgid "Select Provider"
|
666 |
msgstr ""
|
667 |
|
668 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
669 |
msgid "Save Tracking"
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
673 |
msgid "Preview:"
|
674 |
msgstr ""
|
675 |
|
676 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
677 |
-
msgid "Click here to track shipment"
|
678 |
-
msgstr ""
|
679 |
-
|
680 |
-
#: includes/class-wc-advanced-shipment-tracking.php:627
|
681 |
#, php-format
|
682 |
msgid ""
|
683 |
"Tracking info was deleted for tracking provider %s with tracking number %s"
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
687 |
#, php-format
|
688 |
msgid "Order was shipped with %s and tracking number is: %s"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: includes/customizer/class-wcast-customizer.php:
|
692 |
msgid "Shipment Status Emails"
|
693 |
msgstr ""
|
694 |
|
695 |
-
#: includes/customizer/class-wcast-customizer.php:
|
696 |
msgid "Tracking info display"
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: includes/customizer/class-wcast-customizer.php:
|
700 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
701 |
msgid "Delivered order status email"
|
702 |
msgstr ""
|
703 |
|
704 |
-
#: includes/customizer/class-wcast-customizer.php:
|
705 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:115
|
706 |
-
#: includes/views/admin_options_trackship_integration.php:169
|
707 |
-
msgid "Out For Delivery"
|
708 |
-
msgstr ""
|
709 |
-
|
710 |
-
#: includes/customizer/class-wcast-customizer.php:352
|
711 |
msgid "Select order to preview"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
715 |
msgid "Your order #{order_number} is available for pickup"
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
719 |
msgid ""
|
720 |
"Hi there. we thought you'd like to know that your recent order from "
|
721 |
"{site_title} is available for pickup."
|
722 |
msgstr ""
|
723 |
|
724 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
725 |
msgid "Available For Pickup shipment status email"
|
726 |
msgstr ""
|
727 |
|
728 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
729 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
730 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
731 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
732 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
733 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
734 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
735 |
msgid "This section lets you customize the Email Content."
|
736 |
msgstr ""
|
737 |
|
738 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
739 |
msgid "Enable Available For Pickup shipment status email"
|
740 |
msgstr ""
|
741 |
|
742 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
743 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
744 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
745 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
746 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
747 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
748 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
749 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
750 |
msgid "Preview order"
|
751 |
msgstr ""
|
752 |
|
753 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
754 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
755 |
-
#: includes/customizer/class-wc-
|
756 |
-
#: includes/customizer/class-wc-
|
757 |
-
#: includes/customizer/class-wc-
|
758 |
-
#: includes/customizer/class-wc-
|
759 |
-
|
760 |
-
msgstr ""
|
761 |
-
|
762 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:201
|
763 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:200
|
764 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:197
|
765 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:200
|
766 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:200
|
767 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:201
|
768 |
-
msgid ""
|
769 |
-
"Enter emails here or use variables such as {customer_email}. Multiple emails "
|
770 |
-
"can be separated by commas."
|
771 |
-
msgstr ""
|
772 |
-
|
773 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:207
|
774 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:206
|
775 |
-
#: includes/customizer/class-wc-email-customizer.php:218
|
776 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:203
|
777 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:206
|
778 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:206
|
779 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:207
|
780 |
msgid "E.g. {customer.email}, admin@example.org"
|
781 |
msgstr ""
|
782 |
|
783 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
784 |
-
#: includes/customizer/class-wc-
|
785 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
786 |
-
#: includes/customizer/class-wc-
|
787 |
-
#: includes/customizer/class-wc-
|
788 |
-
#: includes/customizer/class-wc-
|
789 |
-
#: includes/customizer/class-wc-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
#: includes/customizer/class-wc-
|
794 |
-
#: includes/customizer/class-wc-
|
795 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:222
|
796 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:244
|
797 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:219
|
798 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:241
|
799 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:222
|
800 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:244
|
801 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:222
|
802 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:244
|
803 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:223
|
804 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:245
|
805 |
msgid "Available placeholders: {site_title}, {order_number}"
|
806 |
msgstr ""
|
807 |
|
808 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
809 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
810 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
811 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
812 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
813 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
814 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
815 |
msgid "Please enter email subject here"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
819 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
820 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
821 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
822 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
823 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
824 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
825 |
-
#: includes/emails/class-shipment-delivered-email.php:250
|
826 |
-
msgid "Email heading"
|
827 |
-
msgstr ""
|
828 |
-
|
829 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:251
|
830 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:250
|
831 |
-
#: includes/customizer/class-wc-email-customizer.php:264
|
832 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:247
|
833 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:250
|
834 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:250
|
835 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:251
|
836 |
msgid "Please enter email heading here"
|
837 |
msgstr ""
|
838 |
|
839 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
840 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
841 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
842 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
843 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
844 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
845 |
msgid "Show tracking details"
|
846 |
msgstr ""
|
847 |
|
848 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
849 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
850 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
851 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
852 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
853 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
854 |
msgid "Show order details"
|
855 |
msgstr ""
|
856 |
|
857 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
858 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
859 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
860 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
861 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
862 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
863 |
msgid "Show billing address"
|
864 |
msgstr ""
|
865 |
|
866 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
867 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
868 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
869 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
870 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
871 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
872 |
msgid "Show shipping address"
|
873 |
msgstr ""
|
874 |
|
875 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
876 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
877 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
878 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
879 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
880 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
881 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
882 |
msgid "Google Analytics link tracking"
|
883 |
msgstr ""
|
884 |
|
885 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
886 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
887 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
888 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
889 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
890 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
891 |
msgid "This will be appended to URL in the email content"
|
892 |
msgstr ""
|
893 |
|
894 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
895 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
896 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
897 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
898 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
899 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
900 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
901 |
msgid "Email content"
|
902 |
msgstr ""
|
903 |
|
904 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
905 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
906 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
907 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
908 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
909 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
910 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
911 |
msgid "Available placeholders"
|
912 |
msgstr ""
|
913 |
|
914 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
915 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
916 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
917 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
918 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
919 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
920 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
921 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
922 |
-
msgid "Please select preview
|
923 |
msgstr ""
|
924 |
|
925 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
926 |
msgid "Your order #{order_number} has been delivered"
|
927 |
msgstr ""
|
928 |
|
929 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
|
|
930 |
msgid ""
|
931 |
"Hi there. we thought you'd like to know that your recent order from "
|
932 |
"{site_title} has been Delivered."
|
933 |
msgstr ""
|
934 |
|
935 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
936 |
msgid "Delivered shipment status email"
|
937 |
msgstr ""
|
938 |
|
939 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
940 |
msgid "Enable Delivered shipment status email"
|
941 |
msgstr ""
|
942 |
|
943 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
944 |
-
#: includes/emails/class-shipment-delivered-email.php:
|
945 |
msgid "Your {site_title} order is now delivered"
|
946 |
msgstr ""
|
947 |
|
948 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
949 |
-
#: includes/emails/class-shipment-delivered-email.php:102
|
950 |
-
msgid "Thanks for shopping with us"
|
951 |
-
msgstr ""
|
952 |
-
|
953 |
-
#: includes/customizer/class-wc-email-customizer.php:124
|
954 |
-
msgid "Hi there. Your recent order on {site_title} has been delivered."
|
955 |
-
msgstr ""
|
956 |
-
|
957 |
-
#: includes/customizer/class-wc-email-customizer.php:171
|
958 |
msgid "Enable Delivered order status email"
|
959 |
msgstr ""
|
960 |
|
961 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
962 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
963 |
msgid "Please select a order..."
|
964 |
msgstr ""
|
965 |
|
966 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
967 |
-
|
968 |
-
msgstr ""
|
969 |
-
|
970 |
-
#: includes/customizer/class-wc-email-customizer.php:212
|
971 |
-
msgid ""
|
972 |
-
"Enter emails use variables such as {customer_email}. Multiple emails can be "
|
973 |
-
"separated by commas."
|
974 |
-
msgstr ""
|
975 |
-
|
976 |
-
#: includes/customizer/class-wc-email-customizer.php:235
|
977 |
-
#: includes/customizer/class-wc-email-customizer.php:258
|
978 |
msgid "Available variables: {site_title}, {order_number}"
|
979 |
msgstr ""
|
980 |
|
981 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
982 |
msgid ""
|
983 |
"available variables: {site_title}, {customer_email}, {customer_first_name}, "
|
984 |
"{customer_last_name}, {customer_username}, {order_number}"
|
985 |
msgstr ""
|
986 |
|
987 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
988 |
msgid "Display tracking details"
|
989 |
msgstr ""
|
990 |
|
991 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
992 |
msgid "Display order details"
|
993 |
msgstr ""
|
994 |
|
995 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
996 |
msgid "Display Shipping Address"
|
997 |
msgstr ""
|
998 |
|
999 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1000 |
msgid "Display Billing Address"
|
1001 |
msgstr ""
|
1002 |
|
1003 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1004 |
msgid "Enable Google Analytics tracking"
|
1005 |
msgstr ""
|
1006 |
|
1007 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1008 |
msgid ""
|
1009 |
"This will be appended to URL in the email content – e.g. "
|
1010 |
"utm_source=ast&utm_medium=email&utm_campaign=delivered"
|
1011 |
msgstr ""
|
1012 |
|
1013 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
1014 |
msgid "Your order #{order_number} is Failed Attempt"
|
1015 |
msgstr ""
|
1016 |
|
1017 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
1018 |
msgid ""
|
1019 |
"Hi there. we thought you'd like to know that your recent order from "
|
1020 |
"{site_title} is Failed Attempt"
|
1021 |
msgstr ""
|
1022 |
|
1023 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
1024 |
msgid "Failed Attempt shipment status email"
|
1025 |
msgstr ""
|
1026 |
|
1027 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
1028 |
msgid "Enable Failed Attempt shipment status email"
|
1029 |
msgstr ""
|
1030 |
|
1031 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1032 |
msgid "Your order #{order_number} is in transit"
|
1033 |
msgstr ""
|
1034 |
|
1035 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1036 |
msgid ""
|
1037 |
"Hi there. we thought you'd like to know that your recent order from "
|
1038 |
"{site_title} is in transit"
|
1039 |
msgstr ""
|
1040 |
|
1041 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1042 |
msgid "In Transit shipment status email"
|
1043 |
msgstr ""
|
1044 |
|
1045 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1046 |
msgid "Enable In Transit shipment status email"
|
1047 |
msgstr ""
|
1048 |
|
1049 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
1050 |
msgid "Your order #{order_number} is out for delivery"
|
1051 |
msgstr ""
|
1052 |
|
1053 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
1054 |
msgid ""
|
1055 |
"Hi there. we thought you'd like to know that your recent order from "
|
1056 |
"{site_title} is out for delivery."
|
1057 |
msgstr ""
|
1058 |
|
1059 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
1060 |
msgid "Out For Delivery shipment status email"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
1064 |
msgid "Enable Out For Delivery shipment status email"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
1068 |
msgid "Your order #{order_number} has returned to sender"
|
1069 |
msgstr ""
|
1070 |
|
1071 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
1072 |
msgid ""
|
1073 |
"Hi there. we thought you'd like to know that your recent order from "
|
1074 |
"{site_title} has been returned to sender."
|
1075 |
msgstr ""
|
1076 |
|
1077 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
1078 |
msgid "Return To Sender shipment status email"
|
1079 |
msgstr ""
|
1080 |
|
1081 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
1082 |
msgid "Enable Return To Sender shipment status email"
|
1083 |
msgstr ""
|
1084 |
|
1085 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1086 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1087 |
-
#:
|
1088 |
-
#: templates/
|
1089 |
msgid "Provider"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1093 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1094 |
-
#:
|
1095 |
-
#: templates/
|
1096 |
-
#: templates/myaccount/view-order.php:111
|
1097 |
msgid "Tracking Number"
|
1098 |
msgstr ""
|
1099 |
|
1100 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1101 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1102 |
msgid "Shipped Date"
|
1103 |
msgstr ""
|
1104 |
|
1105 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1106 |
msgid ""
|
1107 |
"select from last 20 orders one order that you added tracking info in order "
|
1108 |
"to preview and design the tracking info table."
|
1109 |
msgstr ""
|
1110 |
|
1111 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1112 |
-
#: includes/views/admin_options_settings.php:
|
1113 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1114 |
msgid "General Settings"
|
1115 |
msgstr ""
|
1116 |
|
1117 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1118 |
msgid "Tracking Display Position"
|
1119 |
msgstr ""
|
1120 |
|
1121 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1122 |
msgid "Before Order Details"
|
1123 |
msgstr ""
|
1124 |
|
1125 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1126 |
msgid "After Order Details"
|
1127 |
msgstr ""
|
1128 |
|
1129 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1130 |
msgid "Main Header text"
|
1131 |
msgstr ""
|
1132 |
|
1133 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1134 |
-
#: templates/pip/tracking-info.php:17
|
1135 |
msgid "Tracking Information"
|
1136 |
msgstr ""
|
1137 |
|
1138 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1139 |
msgid "Additional text after header"
|
1140 |
msgstr ""
|
1141 |
|
1142 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1143 |
msgid "Table Content"
|
1144 |
msgstr ""
|
1145 |
|
1146 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1147 |
msgid "Display Shipment Provider image"
|
1148 |
msgstr ""
|
1149 |
|
1150 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1151 |
msgid "Hide date"
|
1152 |
msgstr ""
|
1153 |
|
1154 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1155 |
msgid "Provider Header Text"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1159 |
msgid "Tracking Number Header Text"
|
1160 |
msgstr ""
|
1161 |
|
1162 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1163 |
msgid "Shipped Date Header Text"
|
1164 |
msgstr ""
|
1165 |
|
1166 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1167 |
msgid "Track Label"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1171 |
msgid "Track Header Text"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1175 |
msgid "Table Design"
|
1176 |
msgstr ""
|
1177 |
|
1178 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1179 |
msgid "Padding"
|
1180 |
msgstr ""
|
1181 |
|
1182 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1183 |
msgid "Background color"
|
1184 |
msgstr ""
|
1185 |
|
1186 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1187 |
msgid "Border color"
|
1188 |
msgstr ""
|
1189 |
|
1190 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1191 |
msgid "Border size"
|
1192 |
msgstr ""
|
1193 |
|
1194 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1195 |
msgid "Table text align"
|
1196 |
msgstr ""
|
1197 |
|
1198 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1199 |
-
msgid "Left"
|
1200 |
-
msgstr ""
|
1201 |
-
|
1202 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:519
|
1203 |
-
msgid "Right"
|
1204 |
-
msgstr ""
|
1205 |
-
|
1206 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:520
|
1207 |
-
msgid "Center"
|
1208 |
-
msgstr ""
|
1209 |
-
|
1210 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:539
|
1211 |
-
msgid "Table header font size"
|
1212 |
-
msgstr ""
|
1213 |
-
|
1214 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:558
|
1215 |
-
msgid "Table header font color"
|
1216 |
-
msgstr ""
|
1217 |
-
|
1218 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:574
|
1219 |
msgid "Table content font size"
|
1220 |
msgstr ""
|
1221 |
|
1222 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1223 |
msgid "Table content font color"
|
1224 |
msgstr ""
|
1225 |
|
1226 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1227 |
msgid "Content line height"
|
1228 |
msgstr ""
|
1229 |
|
1230 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1231 |
msgid "Content font weight"
|
1232 |
msgstr ""
|
1233 |
|
1234 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1235 |
msgid "Track Button Design"
|
1236 |
msgstr ""
|
1237 |
|
1238 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1239 |
msgid "Track Link Font Color"
|
1240 |
msgstr ""
|
1241 |
|
1242 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1243 |
msgid "Track Link Background Color"
|
1244 |
msgstr ""
|
1245 |
|
1246 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1247 |
msgid "Track link Border"
|
1248 |
msgstr ""
|
1249 |
|
1250 |
-
#: includes/customizer/class-wc-tracking-page-customizer.php:150
|
1251 |
-
msgid "Remove Trackship branding from tracking page"
|
1252 |
-
msgstr ""
|
1253 |
-
|
1254 |
-
#: includes/customizer/class-wc-tracking-page-customizer.php:167
|
1255 |
-
msgid "Header Color"
|
1256 |
-
msgstr ""
|
1257 |
-
|
1258 |
-
#: includes/customizer/class-wc-tracking-page-customizer.php:183
|
1259 |
-
msgid "Success Status Color"
|
1260 |
-
msgstr ""
|
1261 |
-
|
1262 |
-
#: includes/customizer/class-wc-tracking-page-customizer.php:199
|
1263 |
-
msgid "Warning Status Color"
|
1264 |
-
msgstr ""
|
1265 |
-
|
1266 |
-
#: includes/customizer/class-wc-tracking-page-customizer.php:215
|
1267 |
-
msgid "Tracking info Border Color"
|
1268 |
-
msgstr ""
|
1269 |
-
|
1270 |
-
#: includes/customizer/class-wc-tracking-page-customizer.php:230
|
1271 |
-
msgid "Tracking info width (px)"
|
1272 |
-
msgstr ""
|
1273 |
-
|
1274 |
-
#: includes/customizer/class-wc-tracking-page-customizer.php:250
|
1275 |
-
msgid "Tracking details Border Color"
|
1276 |
-
msgstr ""
|
1277 |
-
|
1278 |
-
#: includes/customizer/class-wc-tracking-page-customizer.php:265
|
1279 |
-
msgid "Tracking info table shade color"
|
1280 |
-
msgstr ""
|
1281 |
-
|
1282 |
-
#: includes/customizer/class-wc-tracking-page-customizer.php:280
|
1283 |
-
msgid "Tracking events font color"
|
1284 |
-
msgstr ""
|
1285 |
-
|
1286 |
-
#: includes/customizer/class-wc-tracking-page-customizer.php:295
|
1287 |
-
msgid "Tracking info table margin top/bottom(px)"
|
1288 |
-
msgstr ""
|
1289 |
-
|
1290 |
#: includes/emails/class-shipment-delivered-email.php:32
|
1291 |
msgid "Delivered order"
|
1292 |
msgstr ""
|
@@ -1297,292 +1040,227 @@ msgid ""
|
|
1297 |
"delivered and usually indicate that their orders have been shipped."
|
1298 |
msgstr ""
|
1299 |
|
1300 |
-
#: includes/emails/class-shipment-delivered-email.php:
|
1301 |
-
msgid "
|
1302 |
-
msgstr ""
|
1303 |
-
|
1304 |
-
#: includes/emails/class-shipment-delivered-email.php:232
|
1305 |
-
msgid "Recipient(s)"
|
1306 |
-
msgstr ""
|
1307 |
-
|
1308 |
-
#. %s: WP admin email
|
1309 |
-
#: includes/emails/class-shipment-delivered-email.php:235
|
1310 |
-
#, php-format
|
1311 |
-
msgid "Enter recipients (comma separated) for this email. Defaults to %s."
|
1312 |
-
msgstr ""
|
1313 |
-
|
1314 |
-
#: includes/emails/class-shipment-delivered-email.php:241
|
1315 |
-
msgid "Subject"
|
1316 |
-
msgstr ""
|
1317 |
-
|
1318 |
-
#. %s: list of placeholders
|
1319 |
-
#: includes/emails/class-shipment-delivered-email.php:245
|
1320 |
-
#: includes/emails/class-shipment-delivered-email.php:254
|
1321 |
-
#, php-format
|
1322 |
-
msgid "Available placeholders: %s"
|
1323 |
-
msgstr ""
|
1324 |
-
|
1325 |
-
#: includes/emails/class-shipment-delivered-email.php:259
|
1326 |
-
msgid "Email type"
|
1327 |
msgstr ""
|
1328 |
|
1329 |
-
#: includes/emails/class-shipment-delivered-email.php:
|
1330 |
-
msgid "Choose which format of email to send."
|
1331 |
-
msgstr ""
|
1332 |
-
|
1333 |
-
#: includes/emails/class-shipment-delivered-email.php:269
|
1334 |
-
msgid "\" >Click Here</a>"
|
1335 |
-
msgstr ""
|
1336 |
-
|
1337 |
-
#: includes/emails/class-shipment-delivered-email.php:270
|
1338 |
msgid "Edit in customizer"
|
1339 |
msgstr ""
|
1340 |
|
1341 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1342 |
msgid "Upload CSV"
|
1343 |
msgstr ""
|
1344 |
|
1345 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1346 |
msgid ""
|
1347 |
"Replace tracking info if exists? (if not checked, the tracking info will be "
|
1348 |
"added)"
|
1349 |
msgstr ""
|
1350 |
|
1351 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1352 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1353 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1354 |
msgid "Upload"
|
1355 |
msgstr ""
|
1356 |
|
1357 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1358 |
msgid "Settings Saved."
|
1359 |
msgstr ""
|
1360 |
|
1361 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1362 |
msgid "Upload Progress - "
|
1363 |
msgstr ""
|
1364 |
|
1365 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1366 |
msgid "Sample CSV"
|
1367 |
msgstr ""
|
1368 |
|
1369 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1370 |
msgid "You can download an example of the csv file:"
|
1371 |
msgstr ""
|
1372 |
|
1373 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1374 |
msgid "Download sample csv file"
|
1375 |
msgstr ""
|
1376 |
|
1377 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1378 |
msgid ""
|
1379 |
"For detailed instructions on how to upload tracking info in bulk, see our"
|
1380 |
msgstr ""
|
1381 |
|
1382 |
-
#: includes/views/
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
#: includes/views/admin_options_settings.php:21
|
1387 |
-
#: includes/views/admin_options_settings.php:69
|
1388 |
-
#: includes/views/admin_options_trackship_integration.php:58
|
1389 |
-
#: includes/views/admin_options_trackship_integration.php:89
|
1390 |
msgid "Save Changes"
|
1391 |
msgstr ""
|
1392 |
|
1393 |
-
#: includes/views/admin_options_settings.php:
|
1394 |
msgid "Tracking Info Display"
|
1395 |
msgstr ""
|
1396 |
|
1397 |
-
#: includes/views/admin_options_settings.php:
|
1398 |
msgid "You can customize the tracking info display on emails and my account"
|
1399 |
msgstr ""
|
1400 |
|
1401 |
-
#: includes/views/admin_options_settings.php:
|
1402 |
msgid "Launch Customizer"
|
1403 |
msgstr ""
|
1404 |
|
1405 |
-
#: includes/views/admin_options_settings.php:
|
1406 |
msgid "Delivered Order Status"
|
1407 |
msgstr ""
|
1408 |
|
1409 |
-
#: includes/views/admin_options_shipping_provider.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1410 |
msgid "Add Custom Shipping Provider"
|
1411 |
msgstr ""
|
1412 |
|
1413 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1414 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1415 |
-
msgid "
|
1416 |
msgstr ""
|
1417 |
|
1418 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1419 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1420 |
msgid "Global"
|
1421 |
msgstr ""
|
1422 |
|
1423 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1424 |
msgid "Edit Custom Shipping Provider"
|
1425 |
msgstr ""
|
1426 |
|
1427 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
#: includes/views/admin_options_shipping_provider.php:166
|
1433 |
-
msgid "Do you really want to sync all providers?"
|
1434 |
msgstr ""
|
1435 |
|
1436 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1437 |
msgid "Providers Added"
|
1438 |
msgstr ""
|
1439 |
|
1440 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1441 |
msgid "Providers Updated"
|
1442 |
msgstr ""
|
1443 |
|
1444 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1445 |
msgid "Providers Deleted"
|
1446 |
msgstr ""
|
1447 |
|
1448 |
-
#: includes/views/
|
1449 |
-
msgid "Close"
|
1450 |
-
msgstr ""
|
1451 |
-
|
1452 |
-
#: includes/views/admin_options_trackship_integration.php:12
|
1453 |
msgid "Connection status"
|
1454 |
msgstr ""
|
1455 |
|
1456 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1457 |
msgid "TrackShip Connection Status"
|
1458 |
msgstr ""
|
1459 |
|
1460 |
-
#: includes/views/admin_options_trackship_integration.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1461 |
msgid ""
|
1462 |
"You are now connected with TrackShip! TrackShip makes it effortless to "
|
1463 |
"automate your post shipping operations and get tracking and delivery status "
|
1464 |
"updates directly in the WooCommerce admin."
|
1465 |
msgstr ""
|
1466 |
|
1467 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1468 |
msgid "TrackShip Dashboard"
|
1469 |
msgstr ""
|
1470 |
|
1471 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1472 |
msgid "Tracking Page"
|
1473 |
msgstr ""
|
1474 |
|
1475 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1476 |
msgid "Click to preview the tracking page"
|
1477 |
msgstr ""
|
1478 |
|
1479 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1480 |
msgid "PLEASE NOTE - make sure to save your settings before preview."
|
1481 |
msgstr ""
|
1482 |
|
1483 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1484 |
msgid "Shipment Status Notifications "
|
1485 |
msgstr ""
|
1486 |
|
1487 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1488 |
msgid ""
|
1489 |
"Carrier has accepted or picked up shipment from shipper. The shipment is on "
|
1490 |
"the way."
|
1491 |
msgstr ""
|
1492 |
|
1493 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1494 |
msgid "Shipment is returned to sender"
|
1495 |
msgstr ""
|
1496 |
|
1497 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1498 |
msgid "The shipment is ready to pickup."
|
1499 |
msgstr ""
|
1500 |
|
1501 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1502 |
msgid "Carrier is about to deliver the shipment"
|
1503 |
msgstr ""
|
1504 |
|
1505 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1506 |
msgid "The shipment was delivered successfully"
|
1507 |
msgstr ""
|
1508 |
|
1509 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1510 |
msgid ""
|
1511 |
"You already have delivered email enabled, to enable this email you'll need "
|
1512 |
"to disable the order status delivered in settings."
|
1513 |
msgstr ""
|
1514 |
|
1515 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1516 |
msgid ""
|
1517 |
"Carrier attempted to deliver but failed, and usually leaves a notice and "
|
1518 |
"will try to deliver the package again."
|
1519 |
msgstr ""
|
1520 |
|
1521 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1522 |
-
msgid ""
|
1523 |
-
"TracksShip is a premium shipment tracking API flatform that fully integrates "
|
1524 |
-
"with WooCommerce with the Advanced Shipment Tracking. TrackShip automates "
|
1525 |
-
"the order management workflows, reduces customer inquiries, reduces time "
|
1526 |
-
"spent on customer service, and improves the post-purchase experience and "
|
1527 |
-
"satisfaction of your customers."
|
1528 |
-
msgstr ""
|
1529 |
-
|
1530 |
-
#: includes/views/admin_options_trackship_integration.php:210
|
1531 |
-
msgid ""
|
1532 |
-
"You must have account TracksShip and connect your store in order to activate "
|
1533 |
-
"these advanced features:"
|
1534 |
-
msgstr ""
|
1535 |
-
|
1536 |
-
#: includes/views/admin_options_trackship_integration.php:214
|
1537 |
-
msgid "Automatically track your shipments with 100+ shipping providers."
|
1538 |
-
msgstr ""
|
1539 |
-
|
1540 |
-
#: includes/views/admin_options_trackship_integration.php:215
|
1541 |
-
msgid ""
|
1542 |
-
"Display Shipment Status and latest shipment status, update date and est. "
|
1543 |
-
"delivery date on WooCommerce orders admin."
|
1544 |
-
msgstr ""
|
1545 |
-
|
1546 |
-
#: includes/views/admin_options_trackship_integration.php:216
|
1547 |
-
msgid "Option to manually get shipment tracking updates for orders."
|
1548 |
-
msgstr ""
|
1549 |
-
|
1550 |
-
#: includes/views/admin_options_trackship_integration.php:217
|
1551 |
-
msgid ""
|
1552 |
-
"Automatically change order status to Delivered once the shipment is "
|
1553 |
-
"delivered to your customers."
|
1554 |
-
msgstr ""
|
1555 |
-
|
1556 |
-
#: includes/views/admin_options_trackship_integration.php:218
|
1557 |
-
msgid ""
|
1558 |
-
"Option to filter orders with invalid tracking numbers or by shipment status "
|
1559 |
-
"event in orders admin"
|
1560 |
-
msgstr ""
|
1561 |
-
|
1562 |
-
#: includes/views/admin_options_trackship_integration.php:219
|
1563 |
msgid ""
|
1564 |
-
"
|
1565 |
-
"
|
1566 |
-
msgstr ""
|
1567 |
-
|
1568 |
-
#: includes/views/admin_options_trackship_integration.php:220
|
1569 |
-
msgid "Direct customers to a Tracking page on your store."
|
1570 |
-
msgstr ""
|
1571 |
-
|
1572 |
-
#: includes/views/html-tracking-info-design-preview.php:60
|
1573 |
-
msgid "USPS"
|
1574 |
-
msgstr ""
|
1575 |
-
|
1576 |
-
#: includes/views/zorem_admin_ts_sidebar.php:5
|
1577 |
-
msgid "Dashboard"
|
1578 |
-
msgstr ""
|
1579 |
-
|
1580 |
-
#: templates/emails/tracking-info.php:138
|
1581 |
-
msgid "Status"
|
1582 |
-
msgstr ""
|
1583 |
-
|
1584 |
-
#: templates/emails/wcast-email-order-details.php:31
|
1585 |
-
msgid "Order Details"
|
1586 |
msgstr ""
|
1587 |
|
1588 |
#. %s: Order ID.
|
@@ -1591,10 +1269,18 @@ msgstr ""
|
|
1591 |
msgid "Order number: %s"
|
1592 |
msgstr ""
|
1593 |
|
1594 |
-
|
1595 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1596 |
msgstr ""
|
1597 |
|
1598 |
-
|
1599 |
-
msgid "
|
1600 |
msgstr ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2019-10-10 09:23+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:209
|
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:412
|
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:225
|
43 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1234
|
44 |
msgid "Shipped"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:242
|
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:256
|
55 |
msgid "Change status to shipped"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:266
|
59 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:295
|
60 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1684
|
61 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1896
|
62 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2341
|
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:216
|
66 |
msgid "Delivered"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:271
|
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:277
|
77 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:306
|
78 |
msgid "Updated Tracking"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:282
|
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:336
|
89 |
msgid "Change status to delivered"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:543
|
93 |
msgid "Shipment status"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:655
|
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:688
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
msgid "Data saved successfully."
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:689
|
107 |
msgid "Really delete this entry? This will not be undo."
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:690
|
111 |
msgid "You can upload only csv file."
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:691
|
115 |
msgid "This browser does not support HTML5."
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:692
|
119 |
msgid "Please upload a valid CSV file."
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:761
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
msgid "Shipping Providers"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:763
|
127 |
msgid "Bulk Upload"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:769
|
131 |
+
#: includes/views/admin_options_bulk_upload.php:58
|
132 |
+
#: includes/views/admin_options_trackship_integration.php:71
|
133 |
+
#: includes/views/zorem_admin_ts_sidebar.php:12
|
|
|
|
|
|
|
134 |
msgid "Documentation"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:770
|
138 |
msgid "How to Video"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:898
|
142 |
+
msgid "Custom Statuses"
|
|
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:944
|
146 |
+
#: includes/views/admin_options_trackship_integration.php:37
|
147 |
+
msgid "Connected"
|
|
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1051
|
151 |
#, php-format
|
152 |
+
msgid "%s %s orders with tracking info"
|
|
|
|
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1052
|
156 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1061
|
157 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1645
|
158 |
+
#: includes/views/admin_options_trackship_integration.php:241
|
159 |
+
msgid "Get Shipment Status"
|
160 |
+
msgstr ""
|
161 |
+
|
162 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1060
|
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:1098
|
|
|
168 |
msgid "Enable/Disable"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1104
|
172 |
msgid "Set order status Delivered when order is delivered"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1136
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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:1144
|
182 |
msgid "Select Tracking Page"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1152
|
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:1158
|
190 |
msgid "Select primary color for tracking page"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1164
|
194 |
msgid "Select content border color for tracking page"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1170
|
198 |
msgid "Hide tracking events details"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1176
|
202 |
msgid "Remove TrackShip branding"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1235
|
206 |
msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1236
|
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:1239
|
|
|
|
|
|
|
|
|
216 |
msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
|
217 |
msgstr ""
|
218 |
|
219 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1240
|
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:1305
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
msgid "Rename the “Completed” Order status to “Shipped”"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1318
|
230 |
msgid "On which order status email to include the shipment tracking info?"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1324
|
234 |
msgid "Show tracking info in Invoice"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1330
|
238 |
msgid "Show tracking info in Packing Slip"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1347
|
242 |
msgid "Enable custom order status “Delivered\""
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1348
|
246 |
msgid ""
|
247 |
"if you enable the delivered item, you will have the option to send delivered "
|
248 |
"email notifications."
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1354
|
252 |
msgid "Delivered Label color"
|
253 |
msgstr ""
|
254 |
|
255 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1360
|
256 |
msgid "Delivered Label font color"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1363
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
msgid "Light"
|
261 |
msgstr ""
|
262 |
|
263 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1364
|
264 |
msgid "Dark"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1371
|
268 |
msgid "Enable the Delivered order status email"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1678
|
272 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2338
|
273 |
+
#: includes/customizer/class-wcast-customizer.php:76
|
274 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:127
|
275 |
+
#: includes/views/admin_options_trackship_integration.php:161
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
276 |
msgid "In Transit"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1681
|
280 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2337
|
281 |
+
#: includes/customizer/class-wcast-customizer.php:68
|
282 |
msgid "Pre Transit"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1687
|
286 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2340
|
287 |
+
#: includes/customizer/class-wcast-customizer.php:98
|
288 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
|
289 |
+
#: includes/views/admin_options_trackship_integration.php:202
|
290 |
+
msgid "Out For Delivery"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1690
|
294 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2339
|
295 |
+
#: includes/customizer/class-wcast-customizer.php:91
|
296 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:124
|
297 |
+
#: includes/views/admin_options_trackship_integration.php:189
|
298 |
msgid "Available For Pickup"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1693
|
302 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2345
|
303 |
+
#: includes/customizer/class-wcast-customizer.php:84
|
304 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:124
|
305 |
+
#: includes/views/admin_options_trackship_integration.php:175
|
306 |
msgid "Return To Sender"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1696
|
310 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2342
|
311 |
+
#: includes/customizer/class-wcast-customizer.php:114
|
312 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:124
|
313 |
+
#: includes/views/admin_options_trackship_integration.php:231
|
314 |
+
msgid "Failed Attempt"
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1699
|
318 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2336
|
319 |
msgid "Unknown"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1702
|
323 |
msgid "Pending TrackShip"
|
324 |
msgstr ""
|
325 |
|
326 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1705
|
327 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2346
|
328 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:677
|
329 |
+
msgid "Invalid Tracking Number"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1708
|
333 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2344
|
334 |
+
msgid "Carrier Unsupported"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1711
|
338 |
msgid "Invalid User Key"
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1714
|
342 |
msgid "Wrong Shipping Provider"
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1787
|
|
|
|
|
|
|
|
|
346 |
msgid "Resend delivered order notification"
|
347 |
msgstr ""
|
348 |
|
349 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1850
|
350 |
msgid "Shipped Order"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1874
|
354 |
msgid "Mark order as delivered"
|
355 |
msgstr ""
|
356 |
|
357 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1881
|
358 |
msgid "Add Tracking"
|
359 |
msgstr ""
|
360 |
|
361 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1908
|
362 |
msgid "Change order status to"
|
363 |
msgstr ""
|
364 |
|
365 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2011
|
366 |
+
#: includes/views/admin_options_shipping_provider.php:95
|
367 |
#, php-format
|
368 |
msgid "You don't have any %s shipping providers."
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2289
|
372 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2304
|
373 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2319
|
374 |
msgid "view details"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2290
|
378 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2305
|
379 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2320
|
380 |
msgid "hide details"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2351
|
384 |
+
msgid "Filter by shipment status"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2622
|
388 |
+
msgid "Shipment Providers"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2625
|
392 |
+
msgid "Shipment Status"
|
|
|
|
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:2637
|
396 |
+
msgid "View More Details In Trackship"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:152
|
400 |
msgid ""
|
401 |
"To track your order please enter your Order ID in the box below and press "
|
402 |
"the \"Track\" button. This was given to you on your receipt and in the "
|
403 |
"confirmation email you should have received."
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:153
|
407 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:154
|
|
|
|
|
|
|
|
|
408 |
msgid "Found in your order confirmation email."
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:154
|
412 |
msgid "Order Email"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:157
|
416 |
+
#: includes/class-wc-advanced-shipment-tracking.php:265
|
417 |
+
#: includes/class-wc-advanced-shipment-tracking.php:661
|
418 |
+
#: includes/class-wc-advanced-shipment-tracking.php:784
|
419 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:147
|
420 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:444
|
421 |
+
#: templates/emails/tracking-info.php:173
|
422 |
+
#: templates/myaccount/tracking-info.php:125
|
|
|
423 |
msgid "Track"
|
424 |
msgstr ""
|
425 |
|
426 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:235
|
427 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:519
|
428 |
#, php-format
|
429 |
msgid "Shipment - %s (out of %s)"
|
430 |
msgstr ""
|
431 |
|
432 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:248
|
433 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:252
|
434 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:532
|
435 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:536
|
|
|
|
|
|
|
|
|
|
|
436 |
msgid "Estimated Delivery Date: "
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:361
|
440 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:646
|
441 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:826
|
442 |
msgid "Tracking Details"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:380
|
446 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:665
|
447 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:847
|
448 |
msgid "view more"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:381
|
452 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:666
|
453 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:848
|
454 |
msgid "view less"
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:389
|
458 |
+
msgid "Tracking details not found in TrackShip"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: includes/class-wc-advanced-shipment-tracking-front.php:761
|
462 |
+
msgid "Estimated Delivery Date"
|
|
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: includes/class-wc-advanced-shipment-tracking.php:95
|
466 |
+
#: includes/class-wc-advanced-shipment-tracking.php:249
|
467 |
+
#: includes/customizer/class-wcast-customizer.php:31
|
468 |
msgid "Shipment Tracking"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: includes/class-wc-advanced-shipment-tracking.php:184
|
472 |
+
#: includes/class-wc-advanced-shipment-tracking.php:358
|
473 |
+
msgid "Mark as Shipped?"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: includes/class-wc-advanced-shipment-tracking.php:186
|
477 |
+
#: includes/class-wc-advanced-shipment-tracking.php:360
|
478 |
+
msgid "Mark as Completed?"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: includes/class-wc-advanced-shipment-tracking.php:191
|
482 |
msgid "Add Tracking Number"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: includes/class-wc-advanced-shipment-tracking.php:196
|
486 |
+
#: includes/class-wc-advanced-shipment-tracking.php:376
|
487 |
msgid "Provider:"
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: includes/class-wc-advanced-shipment-tracking.php:216
|
491 |
+
#: includes/class-wc-advanced-shipment-tracking.php:414
|
492 |
msgid "Tracking number:"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: includes/class-wc-advanced-shipment-tracking.php:222
|
496 |
+
#: includes/class-wc-advanced-shipment-tracking.php:422
|
497 |
msgid "Date shipped:"
|
498 |
msgstr ""
|
499 |
|
500 |
+
#: includes/class-wc-advanced-shipment-tracking.php:223
|
501 |
+
#: includes/class-wc-advanced-shipment-tracking.php:226
|
502 |
+
#: includes/class-wc-advanced-shipment-tracking.php:423
|
503 |
+
#: includes/class-wc-advanced-shipment-tracking.php:426
|
504 |
msgid "Y-m-d"
|
505 |
msgstr ""
|
506 |
|
507 |
+
#: includes/class-wc-advanced-shipment-tracking.php:265
|
508 |
+
#: includes/class-wc-advanced-shipment-tracking.php:438
|
509 |
msgid "Click here to track your shipment"
|
510 |
msgstr ""
|
511 |
|
512 |
#. 1: shipping date
|
513 |
+
#: includes/class-wc-advanced-shipment-tracking.php:273
|
|
|
514 |
#, php-format
|
515 |
msgid "Shipped on %s"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: includes/class-wc-advanced-shipment-tracking.php:372
|
|
|
|
|
|
|
|
|
519 |
msgid "Add Tracking Info"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: includes/class-wc-advanced-shipment-tracking.php:377
|
523 |
msgid "Select Provider"
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: includes/class-wc-advanced-shipment-tracking.php:437
|
527 |
msgid "Save Tracking"
|
528 |
msgstr ""
|
529 |
|
530 |
+
#: includes/class-wc-advanced-shipment-tracking.php:438
|
531 |
msgid "Preview:"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: includes/class-wc-advanced-shipment-tracking.php:635
|
|
|
|
|
|
|
|
|
535 |
#, php-format
|
536 |
msgid ""
|
537 |
"Tracking info was deleted for tracking provider %s with tracking number %s"
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: includes/class-wc-advanced-shipment-tracking.php:977
|
541 |
#, php-format
|
542 |
msgid "Order was shipped with %s and tracking number is: %s"
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: includes/customizer/class-wcast-customizer.php:40
|
546 |
msgid "Shipment Status Emails"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: includes/customizer/class-wcast-customizer.php:52
|
550 |
msgid "Tracking info display"
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: includes/customizer/class-wcast-customizer.php:60
|
554 |
+
#: includes/customizer/class-wc-email-customizer.php:163
|
555 |
msgid "Delivered order status email"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: includes/customizer/class-wcast-customizer.php:369
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
msgid "Select order to preview"
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:123
|
563 |
msgid "Your order #{order_number} is available for pickup"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:125
|
567 |
msgid ""
|
568 |
"Hi there. we thought you'd like to know that your recent order from "
|
569 |
"{site_title} is available for pickup."
|
570 |
msgstr ""
|
571 |
|
572 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:156
|
573 |
msgid "Available For Pickup shipment status email"
|
574 |
msgstr ""
|
575 |
|
576 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:157
|
577 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:158
|
578 |
+
#: includes/customizer/class-wc-email-customizer.php:164
|
579 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:157
|
580 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:160
|
581 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:159
|
582 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:157
|
583 |
msgid "This section lets you customize the Email Content."
|
584 |
msgstr ""
|
585 |
|
586 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:171
|
587 |
msgid "Enable Available For Pickup shipment status email"
|
588 |
msgstr ""
|
589 |
|
590 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:187
|
591 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:188
|
592 |
+
#: includes/customizer/class-wc-email-customizer.php:197
|
593 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:187
|
594 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:191
|
595 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:189
|
596 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:187
|
597 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:178
|
598 |
msgid "Preview order"
|
599 |
msgstr ""
|
600 |
|
601 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:215
|
602 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:216
|
603 |
+
#: includes/customizer/class-wc-email-customizer.php:226
|
604 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:215
|
605 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:219
|
606 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:217
|
607 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:215
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
608 |
msgid "E.g. {customer.email}, admin@example.org"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:231
|
612 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:253
|
613 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:232
|
614 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:254
|
615 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:231
|
616 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:253
|
617 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:235
|
618 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:257
|
619 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:233
|
620 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:255
|
621 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:231
|
622 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:253
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
623 |
msgid "Available placeholders: {site_title}, {order_number}"
|
624 |
msgstr ""
|
625 |
|
626 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:237
|
627 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:238
|
628 |
+
#: includes/customizer/class-wc-email-customizer.php:249
|
629 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:237
|
630 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:241
|
631 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:239
|
632 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:237
|
633 |
msgid "Please enter email subject here"
|
634 |
msgstr ""
|
635 |
|
636 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:259
|
637 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:260
|
638 |
+
#: includes/customizer/class-wc-email-customizer.php:272
|
639 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:259
|
640 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:263
|
641 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:261
|
642 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:259
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
643 |
msgid "Please enter email heading here"
|
644 |
msgstr ""
|
645 |
|
646 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
|
647 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:275
|
648 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:274
|
649 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:278
|
650 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:276
|
651 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:274
|
652 |
msgid "Show tracking details"
|
653 |
msgstr ""
|
654 |
|
655 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:290
|
656 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:291
|
657 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:290
|
658 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:294
|
659 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:292
|
660 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:290
|
661 |
msgid "Show order details"
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:306
|
665 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:307
|
666 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:306
|
667 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:310
|
668 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:308
|
669 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:306
|
670 |
msgid "Show billing address"
|
671 |
msgstr ""
|
672 |
|
673 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:323
|
674 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:324
|
675 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:323
|
676 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:327
|
677 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:325
|
678 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:323
|
679 |
msgid "Show shipping address"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:339
|
683 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:340
|
684 |
+
#: includes/customizer/class-wc-email-customizer.php:392
|
685 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:339
|
686 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:363
|
687 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:341
|
688 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:339
|
689 |
msgid "Google Analytics link tracking"
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:340
|
693 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:341
|
694 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:340
|
695 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:364
|
696 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:342
|
697 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:340
|
698 |
msgid "This will be appended to URL in the email content"
|
699 |
msgstr ""
|
700 |
|
701 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:361
|
702 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:362
|
703 |
+
#: includes/customizer/class-wc-email-customizer.php:288
|
704 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:361
|
705 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:344
|
706 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:363
|
707 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:361
|
708 |
msgid "Email content"
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:380
|
712 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:382
|
713 |
+
#: includes/customizer/class-wc-email-customizer.php:413
|
714 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:381
|
715 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:385
|
716 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:383
|
717 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:381
|
718 |
msgid "Available placeholders"
|
719 |
msgstr ""
|
720 |
|
721 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:427
|
722 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:429
|
723 |
+
#: includes/customizer/class-wc-email-customizer.php:446
|
724 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:428
|
725 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:431
|
726 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:429
|
727 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:427
|
728 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:791
|
729 |
+
msgid "Please select order to preview."
|
730 |
msgstr ""
|
731 |
|
732 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:124
|
733 |
msgid "Your order #{order_number} has been delivered"
|
734 |
msgstr ""
|
735 |
|
736 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:126
|
737 |
+
#: includes/customizer/class-wc-email-customizer.php:132
|
738 |
msgid ""
|
739 |
"Hi there. we thought you'd like to know that your recent order from "
|
740 |
"{site_title} has been Delivered."
|
741 |
msgstr ""
|
742 |
|
743 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:157
|
744 |
msgid "Delivered shipment status email"
|
745 |
msgstr ""
|
746 |
|
747 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:172
|
748 |
msgid "Enable Delivered shipment status email"
|
749 |
msgstr ""
|
750 |
|
751 |
+
#: includes/customizer/class-wc-email-customizer.php:130
|
752 |
+
#: includes/emails/class-shipment-delivered-email.php:94
|
753 |
msgid "Your {site_title} order is now delivered"
|
754 |
msgstr ""
|
755 |
|
756 |
+
#: includes/customizer/class-wc-email-customizer.php:179
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
757 |
msgid "Enable Delivered order status email"
|
758 |
msgstr ""
|
759 |
|
760 |
+
#: includes/customizer/class-wc-email-customizer.php:201
|
761 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:182
|
762 |
msgid "Please select a order..."
|
763 |
msgstr ""
|
764 |
|
765 |
+
#: includes/customizer/class-wc-email-customizer.php:243
|
766 |
+
#: includes/customizer/class-wc-email-customizer.php:266
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
767 |
msgid "Available variables: {site_title}, {order_number}"
|
768 |
msgstr ""
|
769 |
|
770 |
+
#: includes/customizer/class-wc-email-customizer.php:289
|
771 |
msgid ""
|
772 |
"available variables: {site_title}, {customer_email}, {customer_first_name}, "
|
773 |
"{customer_last_name}, {customer_username}, {order_number}"
|
774 |
msgstr ""
|
775 |
|
776 |
+
#: includes/customizer/class-wc-email-customizer.php:308
|
777 |
msgid "Display tracking details"
|
778 |
msgstr ""
|
779 |
|
780 |
+
#: includes/customizer/class-wc-email-customizer.php:324
|
781 |
msgid "Display order details"
|
782 |
msgstr ""
|
783 |
|
784 |
+
#: includes/customizer/class-wc-email-customizer.php:341
|
785 |
msgid "Display Shipping Address"
|
786 |
msgstr ""
|
787 |
|
788 |
+
#: includes/customizer/class-wc-email-customizer.php:358
|
789 |
msgid "Display Billing Address"
|
790 |
msgstr ""
|
791 |
|
792 |
+
#: includes/customizer/class-wc-email-customizer.php:375
|
793 |
msgid "Enable Google Analytics tracking"
|
794 |
msgstr ""
|
795 |
|
796 |
+
#: includes/customizer/class-wc-email-customizer.php:393
|
797 |
msgid ""
|
798 |
"This will be appended to URL in the email content – e.g. "
|
799 |
"utm_source=ast&utm_medium=email&utm_campaign=delivered"
|
800 |
msgstr ""
|
801 |
|
802 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:123
|
803 |
msgid "Your order #{order_number} is Failed Attempt"
|
804 |
msgstr ""
|
805 |
|
806 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:125
|
807 |
msgid ""
|
808 |
"Hi there. we thought you'd like to know that your recent order from "
|
809 |
"{site_title} is Failed Attempt"
|
810 |
msgstr ""
|
811 |
|
812 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:156
|
813 |
msgid "Failed Attempt shipment status email"
|
814 |
msgstr ""
|
815 |
|
816 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:171
|
817 |
msgid "Enable Failed Attempt shipment status email"
|
818 |
msgstr ""
|
819 |
|
820 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:126
|
821 |
msgid "Your order #{order_number} is in transit"
|
822 |
msgstr ""
|
823 |
|
824 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:128
|
825 |
msgid ""
|
826 |
"Hi there. we thought you'd like to know that your recent order from "
|
827 |
"{site_title} is in transit"
|
828 |
msgstr ""
|
829 |
|
830 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:159
|
831 |
msgid "In Transit shipment status email"
|
832 |
msgstr ""
|
833 |
|
834 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:174
|
835 |
msgid "Enable In Transit shipment status email"
|
836 |
msgstr ""
|
837 |
|
838 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:125
|
839 |
msgid "Your order #{order_number} is out for delivery"
|
840 |
msgstr ""
|
841 |
|
842 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:127
|
843 |
msgid ""
|
844 |
"Hi there. we thought you'd like to know that your recent order from "
|
845 |
"{site_title} is out for delivery."
|
846 |
msgstr ""
|
847 |
|
848 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:158
|
849 |
msgid "Out For Delivery shipment status email"
|
850 |
msgstr ""
|
851 |
|
852 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:173
|
853 |
msgid "Enable Out For Delivery shipment status email"
|
854 |
msgstr ""
|
855 |
|
856 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:123
|
857 |
msgid "Your order #{order_number} has returned to sender"
|
858 |
msgstr ""
|
859 |
|
860 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:125
|
861 |
msgid ""
|
862 |
"Hi there. we thought you'd like to know that your recent order from "
|
863 |
"{site_title} has been returned to sender."
|
864 |
msgstr ""
|
865 |
|
866 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:156
|
867 |
msgid "Return To Sender shipment status email"
|
868 |
msgstr ""
|
869 |
|
870 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:171
|
871 |
msgid "Enable Return To Sender shipment status email"
|
872 |
msgstr ""
|
873 |
|
874 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:144
|
875 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:364
|
876 |
+
#: templates/emails/tracking-info.php:131
|
877 |
+
#: templates/myaccount/tracking-info.php:91
|
878 |
msgid "Provider"
|
879 |
msgstr ""
|
880 |
|
881 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:145
|
882 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:386
|
883 |
+
#: templates/emails/tracking-info.php:155
|
884 |
+
#: templates/myaccount/tracking-info.php:113
|
|
|
885 |
msgid "Tracking Number"
|
886 |
msgstr ""
|
887 |
|
888 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:146
|
889 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:407
|
890 |
msgid "Shipped Date"
|
891 |
msgstr ""
|
892 |
|
893 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:179
|
894 |
msgid ""
|
895 |
"select from last 20 orders one order that you added tracking info in order "
|
896 |
"to preview and design the tracking info table."
|
897 |
msgstr ""
|
898 |
|
899 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:198
|
900 |
+
#: includes/views/admin_options_settings.php:15
|
901 |
+
#: includes/views/admin_options_trackship_integration.php:82
|
902 |
msgid "General Settings"
|
903 |
msgstr ""
|
904 |
|
905 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:213
|
906 |
msgid "Tracking Display Position"
|
907 |
msgstr ""
|
908 |
|
909 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:217
|
910 |
msgid "Before Order Details"
|
911 |
msgstr ""
|
912 |
|
913 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:218
|
914 |
msgid "After Order Details"
|
915 |
msgstr ""
|
916 |
|
917 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:233
|
918 |
msgid "Main Header text"
|
919 |
msgstr ""
|
920 |
|
921 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:240
|
|
|
922 |
msgid "Tracking Information"
|
923 |
msgstr ""
|
924 |
|
925 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:255
|
926 |
msgid "Additional text after header"
|
927 |
msgstr ""
|
928 |
|
929 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:276
|
930 |
msgid "Table Content"
|
931 |
msgstr ""
|
932 |
|
933 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:291
|
934 |
msgid "Display Shipment Provider image"
|
935 |
msgstr ""
|
936 |
|
937 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:308
|
938 |
msgid "Hide date"
|
939 |
msgstr ""
|
940 |
|
941 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:325
|
942 |
+
msgid "Table Header"
|
943 |
+
msgstr ""
|
944 |
+
|
945 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:340
|
946 |
+
msgid "Hide Header"
|
947 |
+
msgstr ""
|
948 |
+
|
949 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:357
|
950 |
msgid "Provider Header Text"
|
951 |
msgstr ""
|
952 |
|
953 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:379
|
954 |
msgid "Tracking Number Header Text"
|
955 |
msgstr ""
|
956 |
|
957 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:400
|
958 |
msgid "Shipped Date Header Text"
|
959 |
msgstr ""
|
960 |
|
961 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:421
|
962 |
msgid "Track Label"
|
963 |
msgstr ""
|
964 |
|
965 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:437
|
966 |
msgid "Track Header Text"
|
967 |
msgstr ""
|
968 |
|
969 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:459
|
970 |
+
msgid "Table header font size"
|
971 |
+
msgstr ""
|
972 |
+
|
973 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:476
|
974 |
+
msgid "Table header font color"
|
975 |
+
msgstr ""
|
976 |
+
|
977 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:492
|
978 |
msgid "Table Design"
|
979 |
msgstr ""
|
980 |
|
981 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:507
|
982 |
msgid "Padding"
|
983 |
msgstr ""
|
984 |
|
985 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:527
|
986 |
msgid "Background color"
|
987 |
msgstr ""
|
988 |
|
989 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:555
|
990 |
msgid "Border color"
|
991 |
msgstr ""
|
992 |
|
993 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:571
|
994 |
msgid "Border size"
|
995 |
msgstr ""
|
996 |
|
997 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:595
|
998 |
msgid "Table text align"
|
999 |
msgstr ""
|
1000 |
|
1001 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:618
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1002 |
msgid "Table content font size"
|
1003 |
msgstr ""
|
1004 |
|
1005 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:635
|
1006 |
msgid "Table content font color"
|
1007 |
msgstr ""
|
1008 |
|
1009 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:651
|
1010 |
msgid "Content line height"
|
1011 |
msgstr ""
|
1012 |
|
1013 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:672
|
1014 |
msgid "Content font weight"
|
1015 |
msgstr ""
|
1016 |
|
1017 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:694
|
1018 |
msgid "Track Button Design"
|
1019 |
msgstr ""
|
1020 |
|
1021 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:708
|
1022 |
msgid "Track Link Font Color"
|
1023 |
msgstr ""
|
1024 |
|
1025 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:724
|
1026 |
msgid "Track Link Background Color"
|
1027 |
msgstr ""
|
1028 |
|
1029 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:739
|
1030 |
msgid "Track link Border"
|
1031 |
msgstr ""
|
1032 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1033 |
#: includes/emails/class-shipment-delivered-email.php:32
|
1034 |
msgid "Delivered order"
|
1035 |
msgstr ""
|
1040 |
"delivered and usually indicate that their orders have been shipped."
|
1041 |
msgstr ""
|
1042 |
|
1043 |
+
#: includes/emails/class-shipment-delivered-email.php:279
|
1044 |
+
msgid "Click Here"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1045 |
msgstr ""
|
1046 |
|
1047 |
+
#: includes/emails/class-shipment-delivered-email.php:280
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1048 |
msgid "Edit in customizer"
|
1049 |
msgstr ""
|
1050 |
|
1051 |
+
#: includes/views/admin_options_bulk_upload.php:10
|
1052 |
msgid "Upload CSV"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
+
#: includes/views/admin_options_bulk_upload.php:20
|
1056 |
msgid ""
|
1057 |
"Replace tracking info if exists? (if not checked, the tracking info will be "
|
1058 |
"added)"
|
1059 |
msgstr ""
|
1060 |
|
1061 |
+
#: includes/views/admin_options_bulk_upload.php:29
|
1062 |
+
#: includes/views/admin_options_shipping_provider.php:119
|
1063 |
+
#: includes/views/admin_options_shipping_provider.php:153
|
1064 |
msgid "Upload"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
+
#: includes/views/admin_options_bulk_upload.php:31
|
1068 |
msgid "Settings Saved."
|
1069 |
msgstr ""
|
1070 |
|
1071 |
+
#: includes/views/admin_options_bulk_upload.php:41
|
1072 |
msgid "Upload Progress - "
|
1073 |
msgstr ""
|
1074 |
|
1075 |
+
#: includes/views/admin_options_bulk_upload.php:45
|
1076 |
msgid "Sample CSV"
|
1077 |
msgstr ""
|
1078 |
|
1079 |
+
#: includes/views/admin_options_bulk_upload.php:50
|
1080 |
msgid "You can download an example of the csv file:"
|
1081 |
msgstr ""
|
1082 |
|
1083 |
+
#: includes/views/admin_options_bulk_upload.php:53
|
1084 |
msgid "Download sample csv file"
|
1085 |
msgstr ""
|
1086 |
|
1087 |
+
#: includes/views/admin_options_bulk_upload.php:58
|
1088 |
msgid ""
|
1089 |
"For detailed instructions on how to upload tracking info in bulk, see our"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
+
#: includes/views/admin_options_settings.php:26
|
1093 |
+
#: includes/views/admin_options_settings.php:74
|
1094 |
+
#: includes/views/admin_options_trackship_integration.php:93
|
1095 |
+
#: includes/views/admin_options_trackship_integration.php:124
|
|
|
|
|
|
|
|
|
1096 |
msgid "Save Changes"
|
1097 |
msgstr ""
|
1098 |
|
1099 |
+
#: includes/views/admin_options_settings.php:40
|
1100 |
msgid "Tracking Info Display"
|
1101 |
msgstr ""
|
1102 |
|
1103 |
+
#: includes/views/admin_options_settings.php:49
|
1104 |
msgid "You can customize the tracking info display on emails and my account"
|
1105 |
msgstr ""
|
1106 |
|
1107 |
+
#: includes/views/admin_options_settings.php:52
|
1108 |
msgid "Launch Customizer"
|
1109 |
msgstr ""
|
1110 |
|
1111 |
+
#: includes/views/admin_options_settings.php:62
|
1112 |
msgid "Delivered Order Status"
|
1113 |
msgstr ""
|
1114 |
|
1115 |
+
#: includes/views/admin_options_shipping_provider.php:12
|
1116 |
+
#: includes/views/admin_options_shipping_provider.php:23
|
1117 |
+
msgid "Active"
|
1118 |
+
msgstr ""
|
1119 |
+
|
1120 |
+
#: includes/views/admin_options_shipping_provider.php:13
|
1121 |
+
#: includes/views/admin_options_shipping_provider.php:23
|
1122 |
+
msgid "Inactive"
|
1123 |
+
msgstr ""
|
1124 |
+
|
1125 |
+
#: includes/views/admin_options_shipping_provider.php:14
|
1126 |
+
msgid "Custom"
|
1127 |
+
msgstr ""
|
1128 |
+
|
1129 |
+
#: includes/views/admin_options_shipping_provider.php:21
|
1130 |
+
msgid "Add Custom Provider"
|
1131 |
+
msgstr ""
|
1132 |
+
|
1133 |
+
#: includes/views/admin_options_shipping_provider.php:22
|
1134 |
+
#: includes/views/admin_options_shipping_provider.php:170
|
1135 |
+
#: includes/views/admin_options_shipping_provider.php:177
|
1136 |
+
msgid "Sync Shipping Providers"
|
1137 |
+
msgstr ""
|
1138 |
+
|
1139 |
+
#: includes/views/admin_options_shipping_provider.php:23
|
1140 |
+
msgid "Reset"
|
1141 |
+
msgstr ""
|
1142 |
+
|
1143 |
+
#: includes/views/admin_options_shipping_provider.php:27
|
1144 |
+
msgid "Search by provider / country"
|
1145 |
+
msgstr ""
|
1146 |
+
|
1147 |
+
#: includes/views/admin_options_shipping_provider.php:101
|
1148 |
msgid "Add Custom Shipping Provider"
|
1149 |
msgstr ""
|
1150 |
|
1151 |
+
#: includes/views/admin_options_shipping_provider.php:108
|
1152 |
+
#: includes/views/admin_options_shipping_provider.php:142
|
1153 |
+
msgid "Shipping Country"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
+
#: includes/views/admin_options_shipping_provider.php:109
|
1157 |
+
#: includes/views/admin_options_shipping_provider.php:143
|
1158 |
msgid "Global"
|
1159 |
msgstr ""
|
1160 |
|
1161 |
+
#: includes/views/admin_options_shipping_provider.php:135
|
1162 |
msgid "Edit Custom Shipping Provider"
|
1163 |
msgstr ""
|
1164 |
|
1165 |
+
#: includes/views/admin_options_shipping_provider.php:171
|
1166 |
+
msgid ""
|
1167 |
+
"Syncing the shipping providers list add or updates the pre-set shipping "
|
1168 |
+
"providers and will not effect custom shipping providers."
|
|
|
|
|
|
|
1169 |
msgstr ""
|
1170 |
|
1171 |
+
#: includes/views/admin_options_shipping_provider.php:173
|
1172 |
msgid "Providers Added"
|
1173 |
msgstr ""
|
1174 |
|
1175 |
+
#: includes/views/admin_options_shipping_provider.php:174
|
1176 |
msgid "Providers Updated"
|
1177 |
msgstr ""
|
1178 |
|
1179 |
+
#: includes/views/admin_options_shipping_provider.php:175
|
1180 |
msgid "Providers Deleted"
|
1181 |
msgstr ""
|
1182 |
|
1183 |
+
#: includes/views/admin_options_trackship_integration.php:26
|
|
|
|
|
|
|
|
|
1184 |
msgid "Connection status"
|
1185 |
msgstr ""
|
1186 |
|
1187 |
+
#: includes/views/admin_options_trackship_integration.php:33
|
1188 |
msgid "TrackShip Connection Status"
|
1189 |
msgstr ""
|
1190 |
|
1191 |
+
#: includes/views/admin_options_trackship_integration.php:43
|
1192 |
+
msgid "Trackers Balance"
|
1193 |
+
msgstr ""
|
1194 |
+
|
1195 |
+
#: includes/views/admin_options_trackship_integration.php:51
|
1196 |
+
msgid "Current Plan"
|
1197 |
+
msgstr ""
|
1198 |
+
|
1199 |
+
#: includes/views/admin_options_trackship_integration.php:66
|
1200 |
msgid ""
|
1201 |
"You are now connected with TrackShip! TrackShip makes it effortless to "
|
1202 |
"automate your post shipping operations and get tracking and delivery status "
|
1203 |
"updates directly in the WooCommerce admin."
|
1204 |
msgstr ""
|
1205 |
|
1206 |
+
#: includes/views/admin_options_trackship_integration.php:72
|
1207 |
msgid "TrackShip Dashboard"
|
1208 |
msgstr ""
|
1209 |
|
1210 |
+
#: includes/views/admin_options_trackship_integration.php:107
|
1211 |
msgid "Tracking Page"
|
1212 |
msgstr ""
|
1213 |
|
1214 |
+
#: includes/views/admin_options_trackship_integration.php:117
|
1215 |
msgid "Click to preview the tracking page"
|
1216 |
msgstr ""
|
1217 |
|
1218 |
+
#: includes/views/admin_options_trackship_integration.php:118
|
1219 |
msgid "PLEASE NOTE - make sure to save your settings before preview."
|
1220 |
msgstr ""
|
1221 |
|
1222 |
+
#: includes/views/admin_options_trackship_integration.php:137
|
1223 |
msgid "Shipment Status Notifications "
|
1224 |
msgstr ""
|
1225 |
|
1226 |
+
#: includes/views/admin_options_trackship_integration.php:163
|
1227 |
msgid ""
|
1228 |
"Carrier has accepted or picked up shipment from shipper. The shipment is on "
|
1229 |
"the way."
|
1230 |
msgstr ""
|
1231 |
|
1232 |
+
#: includes/views/admin_options_trackship_integration.php:177
|
1233 |
msgid "Shipment is returned to sender"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
+
#: includes/views/admin_options_trackship_integration.php:191
|
1237 |
msgid "The shipment is ready to pickup."
|
1238 |
msgstr ""
|
1239 |
|
1240 |
+
#: includes/views/admin_options_trackship_integration.php:204
|
1241 |
msgid "Carrier is about to deliver the shipment"
|
1242 |
msgstr ""
|
1243 |
|
1244 |
+
#: includes/views/admin_options_trackship_integration.php:218
|
1245 |
msgid "The shipment was delivered successfully"
|
1246 |
msgstr ""
|
1247 |
|
1248 |
+
#: includes/views/admin_options_trackship_integration.php:219
|
1249 |
msgid ""
|
1250 |
"You already have delivered email enabled, to enable this email you'll need "
|
1251 |
"to disable the order status delivered in settings."
|
1252 |
msgstr ""
|
1253 |
|
1254 |
+
#: includes/views/admin_options_trackship_integration.php:233
|
1255 |
msgid ""
|
1256 |
"Carrier attempted to deliver but failed, and usually leaves a notice and "
|
1257 |
"will try to deliver the package again."
|
1258 |
msgstr ""
|
1259 |
|
1260 |
+
#: includes/views/admin_options_trackship_integration.php:250
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1261 |
msgid ""
|
1262 |
+
"You can send all your orders from the last 30 days to get shipment status "
|
1263 |
+
"from TrackShip:"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1264 |
msgstr ""
|
1265 |
|
1266 |
#. %s: Order ID.
|
1269 |
msgid "Order number: %s"
|
1270 |
msgstr ""
|
1271 |
|
1272 |
+
#. Name of the plugin
|
1273 |
+
msgid "Advanced Shipment Tracking for WooCommerce"
|
1274 |
+
msgstr ""
|
1275 |
+
|
1276 |
+
#. Description of the plugin
|
1277 |
+
msgid ""
|
1278 |
+
"Add shipment tracking information to your WooCommerce orders and provide "
|
1279 |
+
"customers with an easy way to track their orders. Shipment tracking Info "
|
1280 |
+
"will appear in customers accounts (in the order panel) and in WooCommerce "
|
1281 |
+
"order complete email."
|
1282 |
msgstr ""
|
1283 |
|
1284 |
+
#. Author of the plugin
|
1285 |
+
msgid "zorem"
|
1286 |
msgstr ""
|
readme.txt
CHANGED
@@ -121,6 +121,30 @@ http://a32694-tmp.s415.upress.link/wp-json/wc/v1/orders/<order-id>/shipment-trac
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
= 2.5 =
|
125 |
* Added validation in tracking number for special character when add new tracking info in order and also in bulk upload
|
126 |
* Added filter in Trackship tracking page text
|
121 |
|
122 |
== Changelog ==
|
123 |
|
124 |
+
= 2.6 =
|
125 |
+
* Added Trackship analytics widget in admin dashboard
|
126 |
+
* Added tracker balance and current plan in trackship tab
|
127 |
+
* Updated translaed string in language template file
|
128 |
+
* Updated "On which order status email to include the shipment tracking info?" option in settings tab
|
129 |
+
* Fixed issue with Divi theme
|
130 |
+
* Fixed issue with RTL in settings and tracking page
|
131 |
+
|
132 |
+
= 2.5.5 =
|
133 |
+
* Added Bulk Actions section in TrackShip tab
|
134 |
+
* Updated design trackship connection button
|
135 |
+
* Updated settingd of Tracking Info Display customizer
|
136 |
+
* Updated translation .pot file
|
137 |
+
* Removed admin message for users which is not connected to trackship
|
138 |
+
* Fixed design issue of tracking page for trackship for RTL
|
139 |
+
* Fixed design issue of shipping providers list for small screen
|
140 |
+
* Fixed warning - Undefined index: custom_tracking_provider
|
141 |
+
|
142 |
+
= 2.5.1 =
|
143 |
+
* Added filter for change tracking provider name - "ast_provider_title"
|
144 |
+
* Updated translation strings
|
145 |
+
* Removed white gaps from settings / bulk upload bottom
|
146 |
+
* Fixed design issue with WeDocs plugin
|
147 |
+
|
148 |
= 2.5 =
|
149 |
* Added validation in tracking number for special character when add new tracking info in order and also in bulk upload
|
150 |
* Added filter in Trackship tracking page text
|
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,13 +150,13 @@ 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'] ); ?>
|
136 |
</td>
|
137 |
<?php if($preview){ ?>
|
138 |
-
<td class="date-shipped <?php if($remove_date_from_tracking_info == 1){ echo 'hide'; } ?>" data-title="<?php _e( 'Status', '
|
139 |
<time datetime="<?php echo date( 'Y-m-d', $tracking_item['date_shipped'] ); ?>" title="<?php echo date( 'Y-m-d', $tracking_item['date_shipped'] ); ?>"><?php echo date_i18n( get_option( 'date_format' ), $tracking_item['date_shipped'] ); ?></time>
|
140 |
</td>
|
141 |
<?php } else{
|
@@ -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'] ); ?>
|
157 |
</td>
|
158 |
<?php if($preview){ ?>
|
159 |
+
<td class="date-shipped <?php if($remove_date_from_tracking_info == 1){ echo 'hide'; } ?>" data-title="<?php _e( 'Status', 'woocommerce' ); ?>" style="<?php echo $td_column_style; ?>">
|
160 |
<time datetime="<?php echo date( 'Y-m-d', $tracking_item['date_shipped'] ); ?>" title="<?php echo date( 'Y-m-d', $tracking_item['date_shipped'] ); ?>"><?php echo date_i18n( get_option( 'date_format' ), $tracking_item['date_shipped'] ); ?></time>
|
161 |
</td>
|
162 |
<?php } else{
|
179 |
</table><br /><br />
|
180 |
|
181 |
<?php
|
182 |
+
endif;
|
templates/emails/wcast-billing-email-addresses.php
CHANGED
@@ -39,4 +39,4 @@ $shipping = $order->get_formatted_shipping_address();
|
|
39 |
</address>
|
40 |
</td>
|
41 |
</tr>
|
42 |
-
</table>
|
39 |
</address>
|
40 |
</td>
|
41 |
</tr>
|
42 |
+
</table>
|
templates/emails/wcast-email-order-details.php
CHANGED
@@ -23,12 +23,12 @@ $text_align = is_rtl() ? 'right' : 'left';
|
|
23 |
if (class_exists('Kadence_Woomail_Customizer')) {
|
24 |
$responsive_check = Kadence_Woomail_Customizer::opt( 'responsive_mode' );
|
25 |
}
|
26 |
-
|
27 |
?>
|
28 |
<br>
|
29 |
<h2>
|
30 |
<?php
|
31 |
-
echo __( 'Order Details', '
|
32 |
?>
|
33 |
</h2>
|
34 |
<table class="order-info-split-table" cellspacing="0" cellpadding="0" width="100%" border="0">
|
@@ -51,7 +51,7 @@ if (class_exists('Kadence_Woomail_Customizer')) {
|
|
51 |
<td align="right" valign="middle">
|
52 |
<h3 style="text-align: right;">
|
53 |
<?php
|
54 |
-
echo wp_kses_post( sprintf( __( 'Order
|
55 |
?>
|
56 |
</h3>
|
57 |
</td>
|
@@ -155,4 +155,4 @@ if ( true == $responsive_check ) { ?>
|
|
155 |
</tfoot>
|
156 |
</table>
|
157 |
</div>
|
158 |
-
<?php } ?>
|
23 |
if (class_exists('Kadence_Woomail_Customizer')) {
|
24 |
$responsive_check = Kadence_Woomail_Customizer::opt( 'responsive_mode' );
|
25 |
}
|
26 |
+
|
27 |
?>
|
28 |
<br>
|
29 |
<h2>
|
30 |
<?php
|
31 |
+
echo __( 'Order Details', 'woocommerce' );
|
32 |
?>
|
33 |
</h2>
|
34 |
<table class="order-info-split-table" cellspacing="0" cellpadding="0" width="100%" border="0">
|
51 |
<td align="right" valign="middle">
|
52 |
<h3 style="text-align: right;">
|
53 |
<?php
|
54 |
+
echo wp_kses_post( sprintf( __( 'Order Date', 'woocommerce' ) . ': <time datetime="%s">%s</time>', $order->get_date_created()->format( 'c' ), wc_format_datetime( $order->get_date_created() ) ) );
|
55 |
?>
|
56 |
</h3>
|
57 |
</td>
|
155 |
</tfoot>
|
156 |
</table>
|
157 |
</div>
|
158 |
+
<?php } ?>
|
templates/myaccount/{view-order.php → tracking-info.php}
RENAMED
@@ -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,14 +4,14 @@
|
|
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.
|
8 |
* Author: zorem
|
9 |
* Author URI:
|
10 |
* License: GPL-2.0+
|
11 |
* License URI:
|
12 |
* Text Domain: woo-advanced-shipment-tracking
|
13 |
* Domain Path: /lang/
|
14 |
-
* WC tested up to: 3.7
|
15 |
*/
|
16 |
|
17 |
|
@@ -22,7 +22,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
22 |
*
|
23 |
* @var string
|
24 |
*/
|
25 |
-
public $version = '2.
|
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 |
*
|
@@ -176,9 +177,8 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
176 |
$wc_ast_status_delivered = get_option('wc_ast_status_delivered');
|
177 |
if($wc_ast_status_delivered == 1)
|
178 |
add_action( 'woocommerce_order_status_delivered', array( $this, 'email_trigger_delivered' ), 10, 2 );
|
179 |
-
|
180 |
-
add_action( '
|
181 |
-
add_action( 'wp_ajax_preview_tracking_page', array( $this->front, 'preview_tracking_page') );
|
182 |
add_filter( 'apg_sms_message', array( $this, 'apg_sms_message_fun' ), 10, 2 );
|
183 |
}
|
184 |
|
@@ -205,13 +205,17 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
205 |
$tracking_items = $ast->get_tracking_items( $order_id );
|
206 |
if ( count( $tracking_items ) > 0 ) {
|
207 |
foreach ( $tracking_items as $key => $tracking_item ) {
|
208 |
-
$message .=
|
|
|
209 |
}
|
210 |
}
|
211 |
}
|
212 |
return $message;
|
213 |
}
|
214 |
|
|
|
|
|
|
|
215 |
public function tracking_info_shortcode(){
|
216 |
ob_start();
|
217 |
$order_id = $woo_mb_base->order_id;
|
@@ -224,6 +228,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
224 |
ob_end_clean();
|
225 |
return $html;
|
226 |
}
|
|
|
227 |
/**
|
228 |
* Init advanced shipment tracking REST API.
|
229 |
*
|
@@ -231,14 +236,12 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
231 |
private function init_rest_api() {
|
232 |
add_action( 'rest_api_init', array( $this, 'rest_api_register_routes' ) );
|
233 |
}
|
234 |
-
|
235 |
-
|
236 |
/*** Method load Language file ***/
|
237 |
function wst_load_textdomain() {
|
238 |
load_plugin_textdomain( 'woo-advanced-shipment-tracking', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
|
239 |
}
|
240 |
-
|
241 |
-
|
242 |
/**
|
243 |
* Gets the absolute plugin path without a trailing slash, e.g.
|
244 |
* /path/to/wp-content/plugins/plugin-directory.
|
@@ -299,6 +302,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
299 |
ORDER BY id ASC
|
300 |
", $output );
|
301 |
}
|
|
|
302 |
/*
|
303 |
* include files
|
304 |
*/
|
@@ -346,6 +350,10 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
346 |
WC()->api->WC_Advanced_Shipment_Tracking_REST_API_Controller->register_routes();
|
347 |
|
348 |
}
|
|
|
|
|
|
|
|
|
349 |
public function on_plugins_loaded() {
|
350 |
require_once $this->get_plugin_path() . '/includes/email-manager.php';
|
351 |
|
@@ -367,28 +375,20 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
367 |
|
368 |
require_once $this->get_plugin_path() . '/includes/customizer/class-wc-availableforpickup-email-customizer.php';
|
369 |
}
|
370 |
-
|
371 |
-
return plugin_dir_url( __FILE__ );
|
372 |
-
}
|
373 |
/*
|
374 |
-
*
|
375 |
*/
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
remove_action( 'woocommerce_order_status_completed_notification', array( WC()->mailer()->emails['WC_Email_Customer_Completed_Order'], 'trigger' ) );
|
381 |
-
|
382 |
-
$statuses = ['delivered'];
|
383 |
-
$orders = wc_get_orders( ['limit' => -1, 'status' => $statuses] );
|
384 |
-
foreach($orders as $order){
|
385 |
-
$order_id = $order->get_id();
|
386 |
-
$order = new WC_Order($order_id);
|
387 |
-
$order->update_status('completed');
|
388 |
-
}
|
389 |
-
}*/
|
390 |
|
391 |
-
|
|
|
|
|
|
|
|
|
|
|
392 |
<script>
|
393 |
jQuery(document).on("click","[data-slug='woo-advanced-shipment-tracking'] .deactivate a",function(e){
|
394 |
e.preventDefault();
|
@@ -408,7 +408,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
408 |
</script>
|
409 |
<div id="" class="popupwrapper uninstall_popup" style="display:none;">
|
410 |
<div class="popuprow" style="text-align: left;max-width: 380px;">
|
411 |
-
<h3 class="popup_title"
|
412 |
<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>
|
413 |
<p class="" style="text-align:left;">
|
414 |
<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.6
|
8 |
* Author: zorem
|
9 |
* Author URI:
|
10 |
* License: GPL-2.0+
|
11 |
* License URI:
|
12 |
* Text Domain: woo-advanced-shipment-tracking
|
13 |
* Domain Path: /lang/
|
14 |
+
* WC tested up to: 3.7.1
|
15 |
*/
|
16 |
|
17 |
|
22 |
*
|
23 |
* @var string
|
24 |
*/
|
25 |
+
public $version = '2.6';
|
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 |
*
|
177 |
$wc_ast_status_delivered = get_option('wc_ast_status_delivered');
|
178 |
if($wc_ast_status_delivered == 1)
|
179 |
add_action( 'woocommerce_order_status_delivered', array( $this, 'email_trigger_delivered' ), 10, 2 );
|
180 |
+
|
181 |
+
add_action( 'template_redirect', array( $this->front, 'preview_tracking_page') );
|
|
|
182 |
add_filter( 'apg_sms_message', array( $this, 'apg_sms_message_fun' ), 10, 2 );
|
183 |
}
|
184 |
|
205 |
$tracking_items = $ast->get_tracking_items( $order_id );
|
206 |
if ( count( $tracking_items ) > 0 ) {
|
207 |
foreach ( $tracking_items as $key => $tracking_item ) {
|
208 |
+
$message .= '<br>';
|
209 |
+
$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'] );
|
210 |
}
|
211 |
}
|
212 |
}
|
213 |
return $message;
|
214 |
}
|
215 |
|
216 |
+
/*
|
217 |
+
* Tracking info shortcode
|
218 |
+
*/
|
219 |
public function tracking_info_shortcode(){
|
220 |
ob_start();
|
221 |
$order_id = $woo_mb_base->order_id;
|
228 |
ob_end_clean();
|
229 |
return $html;
|
230 |
}
|
231 |
+
|
232 |
/**
|
233 |
* Init advanced shipment tracking REST API.
|
234 |
*
|
236 |
private function init_rest_api() {
|
237 |
add_action( 'rest_api_init', array( $this, 'rest_api_register_routes' ) );
|
238 |
}
|
239 |
+
|
|
|
240 |
/*** Method load Language file ***/
|
241 |
function wst_load_textdomain() {
|
242 |
load_plugin_textdomain( 'woo-advanced-shipment-tracking', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
|
243 |
}
|
244 |
+
|
|
|
245 |
/**
|
246 |
* Gets the absolute plugin path without a trailing slash, e.g.
|
247 |
* /path/to/wp-content/plugins/plugin-directory.
|
302 |
ORDER BY id ASC
|
303 |
", $output );
|
304 |
}
|
305 |
+
|
306 |
/*
|
307 |
* include files
|
308 |
*/
|
350 |
WC()->api->WC_Advanced_Shipment_Tracking_REST_API_Controller->register_routes();
|
351 |
|
352 |
}
|
353 |
+
|
354 |
+
/*
|
355 |
+
* include file on plugin load
|
356 |
+
*/
|
357 |
public function on_plugins_loaded() {
|
358 |
require_once $this->get_plugin_path() . '/includes/email-manager.php';
|
359 |
|
375 |
|
376 |
require_once $this->get_plugin_path() . '/includes/customizer/class-wc-availableforpickup-email-customizer.php';
|
377 |
}
|
378 |
+
|
|
|
|
|
379 |
/*
|
380 |
+
* return plugin directory URL
|
381 |
*/
|
382 |
+
public function plugin_dir_url(){
|
383 |
+
return plugin_dir_url( __FILE__ );
|
384 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
385 |
|
386 |
+
/*
|
387 |
+
* Plugin uninstall code
|
388 |
+
*/
|
389 |
+
public function uninstall_notice(){
|
390 |
+
wp_enqueue_style( 'shipment_tracking_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
|
391 |
+
?>
|
392 |
<script>
|
393 |
jQuery(document).on("click","[data-slug='woo-advanced-shipment-tracking'] .deactivate a",function(e){
|
394 |
e.preventDefault();
|
408 |
</script>
|
409 |
<div id="" class="popupwrapper uninstall_popup" style="display:none;">
|
410 |
<div class="popuprow" style="text-align: left;max-width: 380px;">
|
411 |
+
<h3 class="popup_title">Advanced Shipment Tracking for WooCommerce</h2>
|
412 |
<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>
|
413 |
<p class="" style="text-align:left;">
|
414 |
<input type="button" value="Uninstall" class="uninstall_plugin button-primary btn_green">
|