Version Description
- Enhancement - Updated the Shipment Tracking settings page design
- Enhancement - Updated the Shipping Providers listing page design
- Enhancement - Moved the TrackShip settings inside Shipment Tracking
- Enhancement - Updated the TrackShip settings page design
- Enhancement - Changed TrackShip dashboard widget
- Enhancement - Moved the TrackShip tracking page settings to customizer
- Enhancement - Updated Add Tracking lightbox design on orders page
- Dev - Removed delivered order status and moved only for TrackShip users
Download this release
Release Info
Developer | zorem |
Plugin | Advanced Shipment Tracking for WooCommerce |
Version | 3.2.1 |
Comparing to | |
See all releases |
Code changes from version 3.2.0.1 to 3.2.1
- assets/css/admin.css +475 -1449
- assets/css/customizer-styles.css +11 -121
- assets/css/trackship.css +174 -561
- assets/images/addon-icon.png +0 -0
- assets/images/paypal-addon-banner.png +0 -0
- assets/images/tpi-addon-icon.png +0 -0
- assets/{shipment-provider-img → images}/usps.png +0 -0
- assets/js/admin.min.js +0 -1
- assets/js/amcharts/amcharts.js +0 -403
- assets/js/amcharts/light.js +0 -1
- assets/js/amcharts/serial.js +0 -9
- assets/js/customizer-scripts.js +12 -394
- assets/js/settings.js +0 -8
- assets/js/shipping_row.js +146 -373
- assets/js/trackship.js +124 -35
- assets/shipment-provider-img/4px.png +0 -0
- assets/shipment-provider-img/7-eleven.png +0 -0
- assets/shipment-provider-img/abf.png +0 -0
- assets/shipment-provider-img/acs-courier.png +0 -0
- assets/shipment-provider-img/aliexpress-standard-shipping.png +0 -0
- assets/shipment-provider-img/an-post.png +0 -0
- assets/shipment-provider-img/apc-overnight.png +0 -0
- assets/shipment-provider-img/apc.png +0 -0
- assets/shipment-provider-img/aramex.png +0 -0
- assets/shipment-provider-img/aras-kargo.png +0 -0
- assets/shipment-provider-img/arrowxl.png +0 -0
- assets/shipment-provider-img/asendia-uk.png +0 -0
- assets/shipment-provider-img/associated-global-systems.png +0 -0
- assets/shipment-provider-img/australia-ems.png +0 -0
- assets/shipment-provider-img/australia-post.png +0 -0
- assets/shipment-provider-img/bangladesh-ems.png +0 -0
- assets/shipment-provider-img/bluedart.png +0 -0
- assets/shipment-provider-img/border-express.png +0 -0
- assets/shipment-provider-img/boxberry.png +0 -0
- assets/shipment-provider-img/bpost.png +0 -0
- assets/shipment-provider-img/brazil-correios.png +0 -0
- assets/shipment-provider-img/bring.png +0 -0
- assets/shipment-provider-img/brt.png +0 -0
- assets/shipment-provider-img/bulgaria-post.png +0 -0
- assets/shipment-provider-img/canada-post.png +0 -0
- assets/shipment-provider-img/canpar.png +0 -0
- assets/shipment-provider-img/castle-parcels.png +0 -0
- assets/shipment-provider-img/ceska-posta.png +0 -0
- assets/shipment-provider-img/china-post.png +0 -0
- assets/shipment-provider-img/chit-chats.png +0 -0
- assets/shipment-provider-img/chronopost.png +0 -0
- assets/shipment-provider-img/cj-logistics.png +0 -0
- assets/shipment-provider-img/cjpacket.png +0 -0
- assets/shipment-provider-img/cne-express.png +0 -0
- assets/shipment-provider-img/colis-prive.png +0 -0
- assets/shipment-provider-img/colissimo.png +0 -0
- assets/shipment-provider-img/collectplus.png +0 -0
- assets/shipment-provider-img/colombia-post.png +0 -0
- assets/shipment-provider-img/correos-chile.png +0 -0
- assets/shipment-provider-img/correos-costa-rica.png +0 -0
- assets/shipment-provider-img/correos-espana.png +0 -0
- assets/shipment-provider-img/correos-express.png +0 -0
- assets/shipment-provider-img/costa-rica-post.png +0 -0
- assets/shipment-provider-img/courierpost.png +0 -0
- assets/shipment-provider-img/couriersplease.png +0 -0
- assets/shipment-provider-img/croatia-post.png +0 -0
- assets/shipment-provider-img/cyprus-post.png +0 -0
- assets/shipment-provider-img/dai-post.png +0 -0
- assets/shipment-provider-img/dawn-wing.png +0 -0
- assets/shipment-provider-img/db-schenker.png +0 -0
- assets/shipment-provider-img/delhivery.png +0 -0
- assets/shipment-provider-img/deliv.png +0 -0
- assets/shipment-provider-img/dellin.png +0 -0
- assets/shipment-provider-img/denmark-post.png +0 -0
- assets/shipment-provider-img/deppon.png +0 -0
- assets/shipment-provider-img/deutsche-post-dhl.png +0 -0
- assets/shipment-provider-img/deutsche-post.png +0 -0
- assets/shipment-provider-img/dhl-at.png +0 -0
- assets/shipment-provider-img/dhl-cz.png +0 -0
- assets/shipment-provider-img/dhl-ecommerce.png +0 -0
- assets/shipment-provider-img/dhl-express-uk.png +0 -0
- assets/shipment-provider-img/dhl-express.png +0 -0
- assets/shipment-provider-img/dhl-freight.png +0 -0
- assets/shipment-provider-img/dhl-intraship-de.png +0 -0
- assets/shipment-provider-img/dhl-paket.png +0 -0
- assets/shipment-provider-img/dhl-parcel-uk.png +0 -0
- assets/shipment-provider-img/dhl-parcel.png +0 -0
- assets/shipment-provider-img/dhl-poland.png +0 -0
- assets/shipment-provider-img/dhl-se.png +0 -0
- assets/shipment-provider-img/dhl-spain.png +0 -0
- assets/shipment-provider-img/dhl-us.png +0 -0
- assets/shipment-provider-img/dhlparcel-nl.png +0 -0
- assets/shipment-provider-img/dicom.png +0 -0
- assets/shipment-provider-img/direct-link.png +0 -0
- assets/shipment-provider-img/dotzot.png +0 -0
- assets/shipment-provider-img/dpd-at.png +0 -0
- assets/shipment-provider-img/dpd-cz.png +0 -0
- assets/shipment-provider-img/dpd-de.png +0 -0
- assets/shipment-provider-img/dpd-fr.png +0 -0
- assets/shipment-provider-img/dpd-ie.png +0 -0
- assets/shipment-provider-img/dpd-nl.png +0 -0
- assets/shipment-provider-img/dpd-poland.png +0 -0
- assets/shipment-provider-img/dpd-portugal.png +0 -0
- assets/shipment-provider-img/dpd-romania.png +0 -0
- assets/shipment-provider-img/dpd-slovenia.png +0 -0
- assets/shipment-provider-img/dpd-uk.png +0 -0
- assets/shipment-provider-img/dtdc-plus.png +0 -0
- assets/shipment-provider-img/dtdc.png +0 -0
- assets/shipment-provider-img/dx-mail.png +0 -0
- assets/shipment-provider-img/ec-firstclass.png +0 -0
- assets/shipment-provider-img/ecom-express.png +0 -0
- assets/shipment-provider-img/ekart.png +0 -0
- assets/shipment-provider-img/elta-courier.png +0 -0
- assets/shipment-provider-img/ems.png +0 -0
- assets/shipment-provider-img/epacket.png +0 -0
- assets/shipment-provider-img/estonia-post.png +0 -0
- assets/shipment-provider-img/ethiopia-post.png +0 -0
- assets/shipment-provider-img/fastway-au.png +0 -0
- assets/shipment-provider-img/fastway-ireland.png +0 -0
- assets/shipment-provider-img/fastway-nz.png +0 -0
- assets/shipment-provider-img/fedex-freight.png +0 -0
- assets/shipment-provider-img/fedex-ground.png +0 -0
- assets/shipment-provider-img/fedex-poland.png +0 -0
- assets/shipment-provider-img/fedex-sameday.png +0 -0
- assets/shipment-provider-img/fedex-uk.png +0 -0
- assets/shipment-provider-img/fedex.png +0 -0
- assets/shipment-provider-img/finland-post.png +0 -0
- assets/shipment-provider-img/gati.png +0 -0
- assets/shipment-provider-img/gig-logistics.png +0 -0
- assets/shipment-provider-img/global-order-tracking.png +0 -0
- assets/shipment-provider-img/gls-denmark.png +0 -0
- assets/shipment-provider-img/gls-europe.png +0 -0
- assets/shipment-provider-img/gls-france.png +0 -0
- assets/shipment-provider-img/gls-italy.png +0 -0
- assets/shipment-provider-img/gls-netherlands.png +0 -0
- assets/shipment-provider-img/gls-paket.png +0 -0
- assets/shipment-provider-img/gls-slovenia.png +0 -0
- assets/shipment-provider-img/gls-spain.png +0 -0
- assets/shipment-provider-img/gso.png +0 -0
- assets/shipment-provider-img/hermes-germany.png +0 -0
- assets/shipment-provider-img/hermes-world.png +0 -0
- assets/shipment-provider-img/hfd.png +0 -0
- assets/shipment-provider-img/hong-kong-post.png +0 -0
- assets/shipment-provider-img/india-post.png +0 -0
- assets/shipment-provider-img/interlink.png +0 -0
- assets/shipment-provider-img/israel-post.png +0 -0
- assets/shipment-provider-img/ivory-coast-ems.png +0 -0
- assets/shipment-provider-img/jcex.png +0 -0
- assets/shipment-provider-img/jet-express.png +0 -0
- assets/shipment-provider-img/jne.png +0 -0
- assets/shipment-provider-img/jp-post.png +0 -0
- assets/shipment-provider-img/jt.png +0 -0
- assets/shipment-provider-img/kerry-express.png +0 -0
- assets/shipment-provider-img/korea-post.png +0 -0
- assets/shipment-provider-img/la-poste.png +0 -0
- assets/shipment-provider-img/landmark-global.png +0 -0
- assets/shipment-provider-img/laos-post.png +0 -0
- assets/shipment-provider-img/lasership.png +0 -0
- assets/shipment-provider-img/latvijas-pasts.png +0 -0
- assets/shipment-provider-img/lion-parcel.png +0 -0
- assets/shipment-provider-img/lithuania-post.png +0 -0
- assets/shipment-provider-img/loomis-express.png +0 -0
- assets/shipment-provider-img/luxembourg-post.png +0 -0
- assets/shipment-provider-img/magyar-posta.png +0 -0
- assets/shipment-provider-img/mail-boxes-etc.png +0 -0
- assets/shipment-provider-img/malaysia-post.png +0 -0
- assets/shipment-provider-img/mng-kargo.png +0 -0
- assets/shipment-provider-img/monaco-ems.png +0 -0
- assets/shipment-provider-img/mondial-relay.png +0 -0
- assets/shipment-provider-img/mrw-portugal.png +0 -0
- assets/shipment-provider-img/mrw.png +0 -0
- assets/shipment-provider-img/nacex.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/ninja-express.png +0 -0
- assets/shipment-provider-img/ninja-van.png +0 -0
- assets/shipment-provider-img/now-couriers.png +0 -0
- assets/shipment-provider-img/nz-couriers.png +0 -0
- assets/shipment-provider-img/ontime.png +0 -0
- assets/shipment-provider-img/ontrac.png +0 -0
- assets/shipment-provider-img/overseas-territory-fr-ems.png +0 -0
- assets/shipment-provider-img/palletways.png +0 -0
- assets/shipment-provider-img/parcelforce.png +0 -0
- assets/shipment-provider-img/poland-post.png +0 -0
- assets/shipment-provider-img/portugal-post-ctt.png +0 -0
- assets/shipment-provider-img/pos-indonesia.png +0 -0
- assets/shipment-provider-img/post-at.png +0 -0
- assets/shipment-provider-img/post-haste.png +0 -0
- assets/shipment-provider-img/poste-italiane.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/postnl-international-3s.png +0 -0
- assets/shipment-provider-img/postnl.png +0 -0
- assets/shipment-provider-img/postnord-sverige-ab.png +0 -0
- assets/shipment-provider-img/ptt-kargo.png +0 -0
- assets/shipment-provider-img/purolator.png +0 -0
- assets/shipment-provider-img/raben.png +0 -0
- assets/shipment-provider-img/redpack.png +0 -0
- assets/shipment-provider-img/redur-spain.png +0 -0
- assets/shipment-provider-img/royal-mail.png +0 -0
- assets/shipment-provider-img/russian-post.png +0 -0
- assets/shipment-provider-img/s-f-express.png +0 -0
- assets/shipment-provider-img/sagawa.png +0 -0
- assets/shipment-provider-img/saudi-post.png +0 -0
- assets/shipment-provider-img/sda.png +0 -0
- assets/shipment-provider-img/sendle.png +0 -0
- assets/shipment-provider-img/serbia-post.png +0 -0
- assets/shipment-provider-img/shadowfax.png +0 -0
- assets/shipment-provider-img/shree-maruti-courier.png +0 -0
- assets/shipment-provider-img/shree-tirupati-courier.png +0 -0
- assets/shipment-provider-img/sicepat.png +0 -0
- assets/shipment-provider-img/singapore-post.png +0 -0
- assets/shipment-provider-img/skynet-worldwide-express.png +0 -0
- assets/shipment-provider-img/skynet.png +0 -0
- assets/shipment-provider-img/smsa-express.png +0 -0
- assets/shipment-provider-img/south-african-post-office.png +0 -0
- assets/shipment-provider-img/spee-dee.png +0 -0
- assets/shipment-provider-img/speedex-courier.png +0 -0
- assets/shipment-provider-img/startrack.png +0 -0
- assets/shipment-provider-img/swiss-post.png +0 -0
- assets/shipment-provider-img/thailand-post.png +0 -0
- assets/shipment-provider-img/the-professional-couriers.png +0 -0
- assets/shipment-provider-img/tiki.png +0 -0
- assets/shipment-provider-img/tipsa.png +0 -0
- assets/shipment-provider-img/tnt-australia.png +0 -0
- assets/shipment-provider-img/tnt-click.png +0 -0
- assets/shipment-provider-img/tnt-france.png +0 -0
- assets/shipment-provider-img/tnt-italy.png +0 -0
- assets/shipment-provider-img/tnt-reference.png +0 -0
- assets/shipment-provider-img/tnt-sweden.png +0 -0
- assets/shipment-provider-img/tnt-uk.png +0 -0
- assets/shipment-provider-img/tnt.png +0 -0
- assets/shipment-provider-img/toll-ipec.png +0 -0
- assets/shipment-provider-img/toll.png +0 -0
- assets/shipment-provider-img/trackon.png +0 -0
- assets/shipment-provider-img/turkey-post.png +0 -0
- assets/shipment-provider-img/turkish-post.png +0 -0
- assets/shipment-provider-img/ubi-smart-parcel.png +0 -0
- assets/shipment-provider-img/ukraine-ems.png +0 -0
- assets/shipment-provider-img/ukrposhta.png +0 -0
- assets/shipment-provider-img/ups-germany.png +0 -0
- assets/shipment-provider-img/ups-i-parcel.png +0 -0
- assets/shipment-provider-img/ups-se.png +0 -0
- assets/shipment-provider-img/ups.png +0 -0
- assets/shipment-provider-img/vietnam-post.png +0 -0
- assets/shipment-provider-img/wahana.png +0 -0
- assets/shipment-provider-img/xpressbees.png +0 -0
- assets/shipment-provider-img/yamato.png +0 -0
- assets/shipment-provider-img/yanwen.png +0 -0
- assets/shipment-provider-img/yodel.png +0 -0
- assets/shipment-provider-img/yun-express-tracking.png +0 -0
- assets/shipment-provider-img/yurtici-kargo.png +0 -0
- includes/class-wc-advanced-shipment-tracking-admin.php +196 -487
- includes/class-wc-advanced-shipment-tracking-front.php +4 -4
- includes/class-wc-advanced-shipment-tracking-install.php +2 -20
- includes/class-wc-advanced-shipment-tracking-settings.php +24 -26
- includes/class-wc-advanced-shipment-tracking-trackship.php +290 -382
- includes/class-wc-advanced-shipment-tracking.php +9 -21
- includes/customizer/class-wc-availableforpickup-email-customizer.php +36 -88
- includes/customizer/class-wc-delivered-email-customizer.php +36 -91
- includes/customizer/class-wc-email-customizer.php +12 -8
- includes/customizer/class-wc-failure-email-customizer.php +35 -88
- includes/customizer/class-wc-intransit-email-customizer.php +39 -94
- includes/customizer/class-wc-onhold-email-customizer.php +34 -88
- includes/customizer/class-wc-outfordelivery-email-customizer.php +36 -90
- includes/customizer/class-wc-partial-shipped-email-customizer.php +48 -1
- includes/customizer/class-wc-returntosender-email-customizer.php +33 -70
- includes/customizer/class-wc-tracking-info-customizer.php +175 -57
- includes/customizer/class-wc-tracking-page-customizer.php +281 -0
- includes/customizer/class-wc-updated-tracking-email-customizer.php +0 -1
- includes/customizer/class-wcast-customizer.php +28 -98
- includes/customizer/preview/tracking_page_preview.php +28 -0
- includes/email-manager.php +0 -6
- includes/emails/class-shipment-delivered-email.php +0 -307
- includes/trackship-email-manager.php +26 -60
- includes/views/admin_options_addons.php +96 -106
- includes/views/admin_options_bulk_upload.php +6 -4
- includes/views/admin_options_osm.php +12 -44
- includes/views/admin_options_settings.php +42 -32
- includes/views/admin_options_shipping_provider.php +48 -50
- includes/views/admin_options_tools.php +18 -10
- includes/views/admin_options_trackship_integration.php +13 -95
- includes/views/admin_status_notifications.php +139 -125
- includes/views/admin_tracking_page_settings.php +3 -3
- includes/views/admin_trackship_dashboard.php +32 -46
- includes/views/front/preview_tracking_page.php +1 -1
- includes/views/trackship_settings.php +126 -39
- includes/views/trackship_sidebar.php +0 -36
- includes/views/zorem_admin_addons_sidebar.php +0 -30
- includes/views/zorem_admin_bulk_upload_sidebar.php +0 -56
- includes/views/zorem_admin_sidebar.php +0 -53
- lang/woo-advanced-shipment-tracking-de_DE.mo +0 -0
- lang/woo-advanced-shipment-tracking-de_DE.po +659 -658
- lang/woo-advanced-shipment-tracking.pot +631 -617
- readme.txt +11 -1
- templates/emails/tracking-info.php +12 -24
- templates/emails/wcast-email-order-details.php +2 -54
- woocommerce-advanced-shipment-tracking.php +6 -20
assets/css/admin.css
CHANGED
@@ -2,27 +2,6 @@
|
|
2 |
body.shipment_tracking_admin_settings{
|
3 |
background: #fafafa;
|
4 |
}
|
5 |
-
@font-face {
|
6 |
-
font-family: 'Material Icons';
|
7 |
-
font-style: normal;
|
8 |
-
font-weight: 400;
|
9 |
-
src: url(https://fonts.gstatic.com/s/materialicons/v43/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
|
10 |
-
}
|
11 |
-
.material-icons {
|
12 |
-
font-family: 'Material Icons';
|
13 |
-
font-weight: normal;
|
14 |
-
font-style: normal;
|
15 |
-
font-size: 24px;
|
16 |
-
line-height: 1;
|
17 |
-
letter-spacing: normal;
|
18 |
-
text-transform: none;
|
19 |
-
display: inline-block;
|
20 |
-
white-space: nowrap;
|
21 |
-
word-wrap: normal;
|
22 |
-
direction: ltr;
|
23 |
-
-webkit-font-feature-settings: 'liga';
|
24 |
-
-webkit-font-smoothing: antialiased;
|
25 |
-
}
|
26 |
.zorem-layout {
|
27 |
margin: 0;
|
28 |
padding: 0;
|
@@ -56,68 +35,25 @@ body.shipment_tracking_admin_settings{
|
|
56 |
color: #555d66;
|
57 |
margin: 0 2px;
|
58 |
}
|
59 |
-
.zorem-
|
60 |
display: flex;
|
61 |
flex-direction: row;
|
62 |
-
align-items: center;
|
63 |
right: 0;
|
64 |
height: 56px;
|
65 |
-
|
66 |
-
}
|
67 |
-
.shipment_tracking_admin_settings .zorem-layout__logo-panel .header-plugin-logo{
|
68 |
-
width: 80px;
|
69 |
-
display: flex;
|
70 |
-
justify-content: flex-end;
|
71 |
-
margin-right: 10px;
|
72 |
}
|
73 |
-
.
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
display: none;
|
78 |
-
position: absolute;
|
79 |
-
right: 0;
|
80 |
-
background-color: #f9f9f9;
|
81 |
-
min-width: 220px;
|
82 |
-
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
83 |
-
z-index: 100;
|
84 |
-
border: 1px solid #ccc;
|
85 |
-
padding: .5rem;
|
86 |
-
margin-top: 0;
|
87 |
-
text-align: left;
|
88 |
-
top: 40px;
|
89 |
-
}
|
90 |
-
.ast-dropdown-content:before {
|
91 |
-
content: '';
|
92 |
-
width: .75rem;
|
93 |
-
height: .75rem;
|
94 |
-
position: absolute;
|
95 |
-
z-index: 1;
|
96 |
-
top: -0.375rem;
|
97 |
-
right: 9px;
|
98 |
-
background-color: #fff;
|
99 |
-
transform: rotate(45deg);
|
100 |
-
border: 1px solid #aebacc;
|
101 |
-
border-width: 1px 0 0 1px;
|
102 |
-
margin-top: -1px;
|
103 |
-
}
|
104 |
-
.ast-dropdown-content li {
|
105 |
-
margin-bottom: 0;
|
106 |
-
border-bottom: 1px solid #ebeef2;
|
107 |
-
padding: .5rem;
|
108 |
-
}
|
109 |
-
.ast-dropdown-content li a {
|
110 |
-
color: black;
|
111 |
text-decoration: none;
|
112 |
-
|
|
|
113 |
}
|
114 |
-
.ast-
|
115 |
-
|
116 |
-
|
117 |
-
color: #005b9a;
|
118 |
-
font-size: 20px;
|
119 |
-
vertical-align: middle;
|
120 |
-
transform: rotate(90deg);
|
121 |
}
|
122 |
#woocommerce-advanced-shipment-tracking .inside {
|
123 |
padding: 0 12px 12px;
|
@@ -185,30 +121,29 @@ body.shipment_tracking_admin_settings{
|
|
185 |
}
|
186 |
section.tab_section {
|
187 |
display: none;
|
188 |
-
padding: 0
|
189 |
border-top: 1px solid #ddd;
|
190 |
}
|
191 |
section.inner_tab_section {
|
192 |
display: none;
|
193 |
-
|
194 |
-
|
195 |
-
display: none;
|
196 |
}
|
197 |
input.tab_input,input.inner_tab_input {
|
198 |
display: none;
|
199 |
}
|
200 |
label.tab_label {
|
201 |
text-decoration: none;
|
202 |
-
padding:
|
203 |
font-size: 14px;
|
204 |
color: #005b9a;
|
205 |
display: inline-block;
|
206 |
-
margin-left:
|
207 |
line-height: 1;
|
208 |
outline: none;
|
209 |
}
|
210 |
label.tab_label.first_label {
|
211 |
-
margin-left:
|
212 |
}
|
213 |
label.inner_tab_label {
|
214 |
text-decoration: none;
|
@@ -220,22 +155,32 @@ label.inner_tab_label {
|
|
220 |
outline: none;
|
221 |
font-weight: 600;
|
222 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
label.inner_tab_label.single_tab_label {
|
224 |
font-size: 17px;
|
225 |
}
|
226 |
label.tab_label:hover {
|
227 |
-
color: #
|
228 |
cursor: pointer;
|
229 |
}
|
230 |
input.tab_input:checked + label {
|
231 |
-
color: #
|
232 |
-
border-bottom: 3px solid #
|
233 |
-
|
234 |
}
|
235 |
input.inner_tab_input:checked + label{
|
236 |
-
border-bottom:
|
237 |
padding: 24px 12px 15px;
|
238 |
}
|
|
|
|
|
|
|
239 |
input.tab_input_1 {
|
240 |
display: none;
|
241 |
}
|
@@ -250,127 +195,55 @@ input.tab_input_1:checked + label{
|
|
250 |
}
|
251 |
.tab_inner_container {
|
252 |
padding: 0;
|
253 |
-
display: table-cell;
|
254 |
vertical-align: top;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
255 |
}
|
256 |
.addons_page_dtable{
|
257 |
max-width: 930px;
|
258 |
-
|
259 |
-
#wc_ast_trackship_form {
|
260 |
-
border-top: 1px solid #eee;
|
261 |
}
|
262 |
.tab_inner_container h4 {
|
263 |
margin-top: 0;
|
264 |
}
|
265 |
-
#tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3, #tab4:checked ~ #content4, #tab5:checked ~ #content5, #tab6:checked ~ #content6, #tab7:checked ~ #content7, #tab8:checked ~ #content8, #tab9:checked ~ #content9, #tab10:checked ~ #content10,#tab_trackship_dashboard:checked ~ #content_trackship_dashboard,#tab_tracking_page:checked ~ #content_tracking_page,#tab_status_notifications:checked ~ #content_status_notifications,#tab_tools:checked ~ #content_tools, #tab_license:checked ~ #content_tab_license, #tab_addons:checked ~ #content_tab_addons, #tab_osm:checked ~ #content_osm {
|
266 |
display: block !important;
|
267 |
}
|
268 |
-
.
|
269 |
-
|
270 |
}
|
271 |
-
|
272 |
.ast_admin_content {
|
273 |
width: 100%;
|
274 |
vertical-align: top;
|
275 |
border-top: 1px solid #ddd;
|
276 |
}
|
277 |
-
.
|
278 |
-
|
279 |
-
|
280 |
-
display: table-cell;
|
281 |
-
vertical-align: top;
|
282 |
-
padding: 25px 0px 25px 20px;
|
283 |
-
}
|
284 |
-
.zorem-sidebar__section{
|
285 |
-
background: #fff;
|
286 |
-
border: 1px solid #e0e0e0;
|
287 |
-
border-radius: 3px;
|
288 |
-
padding: 15px;
|
289 |
-
margin-bottom: 15px;
|
290 |
-
}
|
291 |
-
.zorem_admin_sidebar_inner {
|
292 |
-
border-left: 1px solid #e0e0e0;
|
293 |
-
padding-left: 20px;
|
294 |
-
}
|
295 |
-
.zorem_admin_sidebar img{
|
296 |
-
width: 100%;
|
297 |
-
border-radius: 3px;
|
298 |
-
}
|
299 |
-
.zorem_admin_layout .zorem_admin_sidebar h3{
|
300 |
-
color: #005B9A;
|
301 |
-
margin: 0;
|
302 |
-
padding: 0 0 10px;
|
303 |
-
font-size: 16px;
|
304 |
-
}
|
305 |
-
.wp-core-ui .button-primary.btn_ast_sidebar{
|
306 |
-
background: transparent;
|
307 |
-
color: #005b9a;
|
308 |
-
border-color: #74c2e1;
|
309 |
-
text-transform: uppercase;
|
310 |
-
padding: 0 11px;
|
311 |
-
font-size: 12px;
|
312 |
-
height: 30px;
|
313 |
-
line-height: 28px;
|
314 |
-
margin-top: 10px;
|
315 |
-
}
|
316 |
-
.zorem-sidebar-title {
|
317 |
-
padding: 10px 0;
|
318 |
-
border-bottom: 1px solid #1ead94;
|
319 |
-
color: #1ead94;
|
320 |
-
line-height: 15px;
|
321 |
-
}
|
322 |
-
.zorem-sidebar__section li:before {
|
323 |
-
position: absolute;
|
324 |
-
left: 0;
|
325 |
-
font-weight: 700;
|
326 |
-
}
|
327 |
-
.zorem-sidebar__section ul {
|
328 |
-
position: relative;
|
329 |
-
margin: 0;
|
330 |
-
}
|
331 |
-
.zorem-sidebar__section li {
|
332 |
-
list-style: none;
|
333 |
-
margin-bottom: 0;
|
334 |
}
|
335 |
-
.
|
336 |
-
|
337 |
-
display: inline-block;
|
338 |
}
|
339 |
-
.
|
340 |
-
width: 67%;
|
341 |
-
vertical-align: middle;
|
342 |
display: inline-block;
|
343 |
-
|
344 |
-
margin-right: 0;
|
345 |
-
line-height: 20px;
|
346 |
-
}
|
347 |
-
.zorem-sidebar__section div a {
|
348 |
-
color: #0085ba;
|
349 |
-
}
|
350 |
-
.sidebar_addon_inner {
|
351 |
-
border: 1px solid #e9e9e9;
|
352 |
-
padding: 0;
|
353 |
-
margin-top: 10px;
|
354 |
-
}
|
355 |
-
.sidebar_addon_logo{
|
356 |
-
max-width: 100%;
|
357 |
-
}
|
358 |
-
.addon_button_div {
|
359 |
-
padding: 10px 15px;
|
360 |
-
border-top: 1px solid #e9e9e9;
|
361 |
-
background-color: #fff;
|
362 |
-
}
|
363 |
-
.addon_widget_button .dashicons{
|
364 |
-
vertical-align:middle;
|
365 |
-
}
|
366 |
-
.wcast_shipping_country {
|
367 |
-
max-width: 100%;
|
368 |
-
width: 100%;
|
369 |
-
}
|
370 |
-
.spinner.active {
|
371 |
-
visibility: visible;
|
372 |
}
|
373 |
-
.success_msg
|
374 |
border-left: 3px solid;
|
375 |
border-color: green;
|
376 |
background: #fff;
|
@@ -390,33 +263,11 @@ input.tab_input_1:checked + label{
|
|
390 |
.ast_admin_content table.form-table.upload_csv_table th{
|
391 |
width: 40%;
|
392 |
}
|
393 |
-
.ast_admin_content .form-table.table-layout-2 th.titledesc {
|
394 |
-
width: 2.5%;
|
395 |
-
vertical-align:middle;
|
396 |
-
}
|
397 |
-
.ast_admin_content .form-table.table-layout-2 .html2_title1{
|
398 |
-
display: block;
|
399 |
-
font-weight: 400;
|
400 |
-
margin-top: 5px;
|
401 |
-
}
|
402 |
-
.ast_admin_content .trackship_status_section .form-table th.titledesc{
|
403 |
-
width: 20%;
|
404 |
-
padding: 10px 24px 10px 15px;
|
405 |
-
}
|
406 |
-
.woocommerce.zorem_admin_layout .trackship_status_section table.form-table td {
|
407 |
-
padding: 10px 15px;
|
408 |
-
}
|
409 |
.woocommerce .ast_admin_content table.form-table th label .woocommerce-help-tip{
|
410 |
margin: -4px 0 0 5px;
|
411 |
position: relative;
|
412 |
font-size: 21px;
|
413 |
}
|
414 |
-
.woocommerce.zorem_admin_layout table.form-table th.th_80 {
|
415 |
-
width: 80%;
|
416 |
-
}
|
417 |
-
.ast_admin_content .form-table .th_20 {
|
418 |
-
width: 20%;
|
419 |
-
}
|
420 |
|
421 |
.woocommerce .ast_admin_content table.form-table select{
|
422 |
width: 100%;
|
@@ -428,38 +279,7 @@ input.tab_input_1:checked + label{
|
|
428 |
#wc_ast_status_label_color,#wc_ast_status_partial_shipped_label_color,#wc_ast_status_updated_tracking_label_color,#wc_ast_select_primary_color,#wc_ast_select_border_color,#wc_ast_shipped_status_label_color {
|
429 |
width: 80px;
|
430 |
}
|
431 |
-
.color_field input[type=text] {
|
432 |
-
width: 80px !important;
|
433 |
-
}
|
434 |
|
435 |
-
thead .mdl-list__item-secondary-action {
|
436 |
-
margin-right: 9px;
|
437 |
-
}
|
438 |
-
|
439 |
-
#demo-toast-example.mdl-snackbar {
|
440 |
-
background: #3c4758;
|
441 |
-
z-index: 100000;
|
442 |
-
bottom: 10px;
|
443 |
-
}
|
444 |
-
#demo-toast-example .mdl-snackbar__text {
|
445 |
-
float: unset;
|
446 |
-
width: 100%;
|
447 |
-
text-align: center;
|
448 |
-
}
|
449 |
-
#demo-toast-example .mdl-snackbar__action {
|
450 |
-
display: none;
|
451 |
-
}
|
452 |
-
|
453 |
-
.wp-core-ui .btn_green {
|
454 |
-
background: rgb(35, 54, 152);
|
455 |
-
text-shadow: none;
|
456 |
-
border-color: rgb(35, 54, 152);
|
457 |
-
box-shadow: none;
|
458 |
-
font-size: 14px;
|
459 |
-
line-height: 30px;
|
460 |
-
height: 35px;
|
461 |
-
padding: 0 20px;
|
462 |
-
}
|
463 |
.wp-core-ui .btn_green2 {
|
464 |
background: #59c889;
|
465 |
text-shadow: none;
|
@@ -470,16 +290,6 @@ thead .mdl-list__item-secondary-action {
|
|
470 |
height: 35px;
|
471 |
padding: 0 20px;
|
472 |
}
|
473 |
-
.wp-core-ui .btn_ast1{
|
474 |
-
background: #74C2E1;
|
475 |
-
text-shadow: none;
|
476 |
-
border-color: #74C2E1;
|
477 |
-
box-shadow: none;
|
478 |
-
font-size: 14px;
|
479 |
-
line-height: 32px;
|
480 |
-
height: 35px;
|
481 |
-
padding: 0 20px;
|
482 |
-
}
|
483 |
.wp-core-ui .btn_ast2{
|
484 |
background: #005B9A;
|
485 |
text-shadow: none;
|
@@ -530,6 +340,12 @@ thead .mdl-list__item-secondary-action {
|
|
530 |
padding: 0 20px;
|
531 |
font-size: 15px;
|
532 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
.wp-core-ui .btn_large .dashicons{
|
534 |
vertical-align: sub;
|
535 |
margin-left: 5px;
|
@@ -552,13 +368,6 @@ thead .mdl-list__item-secondary-action {
|
|
552 |
text-shadow: none;
|
553 |
box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
|
554 |
}
|
555 |
-
.wp-core-ui .btn_ast1:hover, .wp-core-ui .btn_ast1:focus {
|
556 |
-
background: #74C2E1;
|
557 |
-
border-color: rgba(0,0,0,0.05);
|
558 |
-
color: #fff;
|
559 |
-
text-shadow: none;
|
560 |
-
box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
|
561 |
-
}
|
562 |
.wp-core-ui .btn_ast2:hover, .wp-core-ui .btn_ast2:focus {
|
563 |
background: #005B9A;
|
564 |
border-color: rgba(0,0,0,0.05);
|
@@ -566,13 +375,6 @@ thead .mdl-list__item-secondary-action {
|
|
566 |
text-shadow: none;
|
567 |
box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
|
568 |
}
|
569 |
-
.wp-core-ui .btn_green2:hover, .wp-core-ui .btn_green2:focus {
|
570 |
-
background: #3c4858;
|
571 |
-
border-color: #3c4858;
|
572 |
-
color: #fff;
|
573 |
-
text-shadow: none;
|
574 |
-
box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
|
575 |
-
}
|
576 |
.wp-core-ui .btn_ts_transparent:hover, .wp-core-ui .btn_ts_transparent:focus {
|
577 |
background: transparent;
|
578 |
border-color: #59c889;
|
@@ -638,106 +440,7 @@ thead .mdl-list__item-secondary-action {
|
|
638 |
#wc_ast_settings_form .form-table tr.multiple_checkbox_title_tr th{
|
639 |
padding-bottom: 0;
|
640 |
}
|
641 |
-
input#wc_ast_api_key {
|
642 |
-
width: 260px;
|
643 |
-
}
|
644 |
|
645 |
-
.ac-container {
|
646 |
-
margin: 0 auto 0 auto;
|
647 |
-
text-align: left;
|
648 |
-
display: table;
|
649 |
-
width: 100%;
|
650 |
-
table-layout: fixed;
|
651 |
-
}
|
652 |
-
.ac-container .headig_label {
|
653 |
-
padding: 15px 20px 15px 20px;
|
654 |
-
margin-bottom: 0;
|
655 |
-
position: relative;
|
656 |
-
display: block;
|
657 |
-
cursor: default;
|
658 |
-
color: #777;
|
659 |
-
text-shadow: 1px 1px 1px rgba(255,255,255,0.8);
|
660 |
-
font-size: 14px;
|
661 |
-
border-bottom: 1px solid #eee;
|
662 |
-
}
|
663 |
-
.email_heading{
|
664 |
-
font-size: 14px!important;
|
665 |
-
font-weight: 600;
|
666 |
-
text-decoration: none;
|
667 |
-
line-height: 20px;
|
668 |
-
}
|
669 |
-
.email_heading:focus,.email_heading:hover{
|
670 |
-
outline:none;
|
671 |
-
box-shadow: none;
|
672 |
-
}
|
673 |
-
.ac-container .headig_label.enable {
|
674 |
-
background: #ffffff;
|
675 |
-
}
|
676 |
-
.ac-container .headig_label.disable {
|
677 |
-
background: #f9f9f9;
|
678 |
-
}
|
679 |
-
|
680 |
-
.ac-container input.accordion-radio {
|
681 |
-
display: none;
|
682 |
-
}
|
683 |
-
.ac-container article {
|
684 |
-
background: rgba(255, 255, 255, 0.5);
|
685 |
-
margin-top: -1px;
|
686 |
-
overflow: hidden;
|
687 |
-
height: 0px;
|
688 |
-
position: relative;
|
689 |
-
z-index: 10;
|
690 |
-
-webkit-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
|
691 |
-
-moz-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
|
692 |
-
-o-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
|
693 |
-
-ms-transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
|
694 |
-
transition: height 0.3s ease-in-out, box-shadow 0.6s linear;
|
695 |
-
}
|
696 |
-
.ac-container article table.form-table {
|
697 |
-
width: 65%;
|
698 |
-
float: left;
|
699 |
-
}
|
700 |
-
.ac-container article .variable_div {
|
701 |
-
width: 30%;
|
702 |
-
float: right;
|
703 |
-
}
|
704 |
-
.ac-container input:checked ~ article {
|
705 |
-
-webkit-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
|
706 |
-
-moz-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
|
707 |
-
-o-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
|
708 |
-
-ms-transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
|
709 |
-
transition: height 0.5s ease-in-out, box-shadow 0.1s linear;
|
710 |
-
box-shadow: 0px 0px 0px 1px rgba(155,155,155,0.3);
|
711 |
-
}
|
712 |
-
.ac-container input:checked ~ article.ac-small {
|
713 |
-
height: 930px;
|
714 |
-
overflow: auto;
|
715 |
-
}
|
716 |
-
.ac-container table.form-table td input[type=text] {
|
717 |
-
width: 100%;
|
718 |
-
}
|
719 |
-
.ac-container table.form-table td select {
|
720 |
-
width: 100%;
|
721 |
-
}
|
722 |
-
.ac-container table.form-table td textarea {
|
723 |
-
width: 100%;
|
724 |
-
height: 150px;
|
725 |
-
}
|
726 |
-
.ac-container table.form-table th {
|
727 |
-
padding-left: 24px;
|
728 |
-
}
|
729 |
-
|
730 |
-
span.email_status_span i {
|
731 |
-
vertical-align: middle;
|
732 |
-
cursor:default;
|
733 |
-
line-height: 1.5;
|
734 |
-
}
|
735 |
-
span.email_status_span i:hover,span.email_status_span i:focus{
|
736 |
-
outline:none;
|
737 |
-
}
|
738 |
-
span.email_status_span i.enable {
|
739 |
-
color: #83bd31;
|
740 |
-
}
|
741 |
.tracking-content-div{
|
742 |
margin-bottom: 5px;
|
743 |
}
|
@@ -753,148 +456,6 @@ span.email_status_span i.enable {
|
|
753 |
.ast-shipment-status i {
|
754 |
font-size: 18px;
|
755 |
}
|
756 |
-
.label_content {
|
757 |
-
font-weight: 600;
|
758 |
-
padding: 12px;
|
759 |
-
}
|
760 |
-
.ac-container article .variable_div.variable_before_content {
|
761 |
-
display: none;
|
762 |
-
}
|
763 |
-
.wcast-shipment-status-icon {
|
764 |
-
float: left;
|
765 |
-
margin-bottom: 1px;
|
766 |
-
margin-right: 10px;
|
767 |
-
}
|
768 |
-
.wcast-shipment-status-icon span{
|
769 |
-
margin-top: 0px;
|
770 |
-
display: inline-block;
|
771 |
-
}
|
772 |
-
.wcast-shipment-status-icon .icon-invalid_user_key:before{
|
773 |
-
content: ' ';
|
774 |
-
background-image: url(icons/invalid-user-key-v4.png);
|
775 |
-
width: 16px;
|
776 |
-
height: 16px;
|
777 |
-
background-size: cover;
|
778 |
-
display: inline-block;
|
779 |
-
vertical-align: middle;
|
780 |
-
}
|
781 |
-
.wcast-shipment-status-icon .icon-delivered:before{
|
782 |
-
content: ' ';
|
783 |
-
background-image: url(icons/delivered-v4.png);
|
784 |
-
width: 16px;
|
785 |
-
height: 16px;
|
786 |
-
background-size: cover;
|
787 |
-
display: inline-block;
|
788 |
-
vertical-align: middle;
|
789 |
-
}
|
790 |
-
.wcast-shipment-status-icon .icon-in_transit:before{
|
791 |
-
content: ' ';
|
792 |
-
background-image: url(icons/in-transit-v4.png);
|
793 |
-
width: 16px;
|
794 |
-
height: 16px;
|
795 |
-
background-size: cover;
|
796 |
-
display: inline-block;
|
797 |
-
vertical-align: middle;
|
798 |
-
}
|
799 |
-
.wcast-shipment-status-icon .icon-on_hold:before{
|
800 |
-
content: ' ';
|
801 |
-
background-image: url(icons/On-hold-v3.png);
|
802 |
-
width: 16px;
|
803 |
-
height: 16px;
|
804 |
-
background-size: cover;
|
805 |
-
display: inline-block;
|
806 |
-
vertical-align: middle;
|
807 |
-
}
|
808 |
-
.wcast-shipment-status-icon .icon-pre_transit:before{
|
809 |
-
content: ' ';
|
810 |
-
background-image: url(icons/pre-transit-v4.png);
|
811 |
-
width: 16px;
|
812 |
-
height: 16px;
|
813 |
-
background-size: cover;
|
814 |
-
display: inline-block;
|
815 |
-
vertical-align: middle;
|
816 |
-
}
|
817 |
-
.wcast-shipment-status-icon .icon-out_for_delivery:before{
|
818 |
-
content: ' ';
|
819 |
-
background-image: url(icons/out-for-delivery-v4.png);
|
820 |
-
width: 16px;
|
821 |
-
height: 16px;
|
822 |
-
background-size: cover;
|
823 |
-
display: inline-block;
|
824 |
-
vertical-align: middle;
|
825 |
-
}
|
826 |
-
.wcast-shipment-status-icon .icon-available_for_pickup:before{
|
827 |
-
content: ' ';
|
828 |
-
background-image: url(icons/available-for-picup-v4.png);
|
829 |
-
width: 16px;
|
830 |
-
height: 16px;
|
831 |
-
background-size: cover;
|
832 |
-
display: inline-block;
|
833 |
-
vertical-align: middle;
|
834 |
-
}
|
835 |
-
.wcast-shipment-status-icon .icon-return_to_sender:before{
|
836 |
-
content: ' ';
|
837 |
-
background-image: url(icons/return-to-sender-v4.png);
|
838 |
-
width: 16px;
|
839 |
-
height: 16px;
|
840 |
-
background-size: cover;
|
841 |
-
display: inline-block;
|
842 |
-
vertical-align: middle;
|
843 |
-
}
|
844 |
-
.wcast-shipment-status-icon .icon-failure:before{
|
845 |
-
content: ' ';
|
846 |
-
background-image: url(icons/failure-v4.png);
|
847 |
-
width: 16px;
|
848 |
-
height: 16px;
|
849 |
-
background-size: cover;
|
850 |
-
display: inline-block;
|
851 |
-
vertical-align: middle;
|
852 |
-
}
|
853 |
-
.wcast-shipment-status-icon .icon-unknown:before{
|
854 |
-
content: ' ';
|
855 |
-
background-image: url(icons/unknown-v4.png);
|
856 |
-
width: 16px;
|
857 |
-
height: 16px;
|
858 |
-
background-size: cover;
|
859 |
-
display: inline-block;
|
860 |
-
vertical-align: middle;
|
861 |
-
}
|
862 |
-
.wcast-shipment-status-icon .icon-pending_trackship:before{
|
863 |
-
content: ' ';
|
864 |
-
background-image: url(icons/pending-trackship-v4.png);
|
865 |
-
width: 16px;
|
866 |
-
height: 16px;
|
867 |
-
background-size: cover;
|
868 |
-
display: inline-block;
|
869 |
-
vertical-align: middle;
|
870 |
-
}
|
871 |
-
.wcast-shipment-status-icon .icon-INVALID_TRACKING_NUM:before{
|
872 |
-
content: ' ';
|
873 |
-
background-image: url(icons/invalid-v3.png);
|
874 |
-
width: 16px;
|
875 |
-
height: 16px;
|
876 |
-
background-size: cover;
|
877 |
-
display: inline-block;
|
878 |
-
vertical-align: middle;
|
879 |
-
}
|
880 |
-
.wcast-shipment-status-icon .icon-wrong_shipping_provider:before{
|
881 |
-
content: ' ';
|
882 |
-
background-image: url(icons/invalid-v3.png);
|
883 |
-
width: 16px;
|
884 |
-
height: 16px;
|
885 |
-
background-size: cover;
|
886 |
-
display: inline-block;
|
887 |
-
vertical-align: middle;
|
888 |
-
}
|
889 |
-
.wcast-shipment-status-icon .icon-default:before{
|
890 |
-
content: ' ';
|
891 |
-
background-image: url(icons/invalid-v3.png);
|
892 |
-
width: 16px;
|
893 |
-
height: 16px;
|
894 |
-
background-size: cover;
|
895 |
-
display: inline-block;
|
896 |
-
vertical-align: middle;
|
897 |
-
}
|
898 |
.ast-shipment-status .shipment-icon:before{
|
899 |
content: ' ';
|
900 |
width: 16px;
|
@@ -951,21 +512,10 @@ span.email_status_span i.enable {
|
|
951 |
.ast-shipment-status .icon-invalid_user_key:before{
|
952 |
background-image: url(icons/invalid-user-key-v4.png);
|
953 |
}
|
954 |
-
|
955 |
-
|
956 |
-
.wcast-shipment-status-icon i {
|
957 |
-
font-size: 25px;
|
958 |
-
margin-top: 7px;
|
959 |
-
}
|
960 |
.wcast-shipment-status-list .wcast-shipment-est-delivery {
|
961 |
display: block;
|
962 |
}
|
963 |
-
|
964 |
-
display: none;
|
965 |
-
}
|
966 |
-
.has_est_delivery_1 .showif_has_est_delivery_1 {
|
967 |
-
display: inline;
|
968 |
-
}
|
969 |
.has_est_delivery_0 .showif_has_est_delivery_0 {
|
970 |
display: block;
|
971 |
}
|
@@ -1014,9 +564,6 @@ ul.wcast-tracking-number-list, ul.wcast-shipment-status-list {
|
|
1014 |
.select2-results .select2-results__group, .select2-results .select2-results__option{
|
1015 |
padding: 4px;
|
1016 |
}
|
1017 |
-
.email_status_span{
|
1018 |
-
display: inline-block;
|
1019 |
-
}
|
1020 |
.edit_customizer_a{
|
1021 |
margin-left: 10px;
|
1022 |
line-height: 20px;
|
@@ -1027,58 +574,17 @@ ul.wcast-tracking-number-list, ul.wcast-shipment-status-list {
|
|
1027 |
outline:none;
|
1028 |
box-shadow:none;
|
1029 |
}
|
1030 |
-
.row-actions{
|
1031 |
-
position: relative;
|
1032 |
-
left: -9999em;
|
1033 |
-
}
|
1034 |
-
.ac-container .headig_label .edit_customizer_a{
|
1035 |
-
float: right;
|
1036 |
-
margin: 0 20px 0 10px;
|
1037 |
-
}
|
1038 |
-
.ac-container .headig_label:hover .edit_customizer_a{
|
1039 |
-
display:inline-block;
|
1040 |
-
}
|
1041 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #wpcontent{
|
1042 |
padding-left: 0;
|
1043 |
}
|
1044 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #wpbody-content{
|
1045 |
padding-bottom: 40px;
|
1046 |
}
|
1047 |
-
.woocommerce_page_woocommerce-advanced-shipment-tracking .white-bg{
|
1048 |
-
background: #fff;
|
1049 |
-
}
|
1050 |
-
.trackship_logo{
|
1051 |
-
width: 200px;
|
1052 |
-
height: auto;
|
1053 |
-
}
|
1054 |
-
.text-center{
|
1055 |
-
text-align:center;
|
1056 |
-
}
|
1057 |
-
.trackship_section .heading{
|
1058 |
-
font-size: 25px;
|
1059 |
-
}
|
1060 |
-
|
1061 |
-
.multiple_checkbox .mdl-switch.is-upgraded{
|
1062 |
-
padding-left: 42px;
|
1063 |
-
margin-bottom: 6px;
|
1064 |
-
}
|
1065 |
.multiple_label{
|
1066 |
font-weight:400;
|
1067 |
line-height: 23px;
|
1068 |
}
|
1069 |
|
1070 |
-
@media screen and (max-width: 1150px) {
|
1071 |
-
.ast_admin_content {
|
1072 |
-
display: block;
|
1073 |
-
}
|
1074 |
-
.zorem_admin_sidebar {
|
1075 |
-
display: none;
|
1076 |
-
}
|
1077 |
-
#content1 .tab_inner_container{
|
1078 |
-
display: block;
|
1079 |
-
}
|
1080 |
-
}
|
1081 |
-
|
1082 |
@media screen and (max-width: 650px) {
|
1083 |
label.tab_label:before {
|
1084 |
margin: 0;
|
@@ -1109,219 +615,47 @@ ul.wcast-tracking-number-list, ul.wcast-shipment-status-list {
|
|
1109 |
}
|
1110 |
table.wp-list-table img.provider-thumb{
|
1111 |
margin: 1px 0 1px 0;
|
1112 |
-
|
1113 |
-
|
1114 |
-
height: 35px;
|
1115 |
-
}
|
1116 |
-
.left-div {
|
1117 |
-
box-sizing: border-box;
|
1118 |
-
display: block;
|
1119 |
-
}
|
1120 |
-
.right-div {
|
1121 |
-
width: 100%;
|
1122 |
-
display: block;
|
1123 |
}
|
1124 |
span.provider_name {
|
1125 |
font-weight: 500;
|
1126 |
font-size: 14px;
|
1127 |
-
|
1128 |
-
.provider_list .row-1 {
|
1129 |
-
margin-bottom: 0;
|
1130 |
-
display: flex;
|
1131 |
-
align-items: start;
|
1132 |
-
}
|
1133 |
-
.provider_list .row-1:after {
|
1134 |
-
content: '';
|
1135 |
-
clear: both;
|
1136 |
display: block;
|
1137 |
}
|
1138 |
-
|
1139 |
-
margin-top: 15px;
|
1140 |
-
border-top: 1px solid #ccc;
|
1141 |
-
padding-top: 10px;
|
1142 |
-
}
|
1143 |
-
.active_provider .row-2{
|
1144 |
-
border-top: 1px solid #eee;
|
1145 |
-
}
|
1146 |
-
.default-provider {
|
1147 |
-
float: left;
|
1148 |
-
}
|
1149 |
-
.checked-img {
|
1150 |
-
width: 18px;
|
1151 |
-
display: inline-block;
|
1152 |
-
vertical-align: bottom;
|
1153 |
-
}
|
1154 |
-
.provider-status {
|
1155 |
-
float: right;
|
1156 |
-
padding-right: 10px;
|
1157 |
-
}
|
1158 |
-
.provider_list .row-2:after{
|
1159 |
-
content:'';
|
1160 |
-
clear:both;
|
1161 |
-
display: block;
|
1162 |
-
}
|
1163 |
-
.active_provider .provider_inner{
|
1164 |
-
border: 1px solid rgba(116, 194, 225, 0.5);
|
1165 |
-
background: #fff;
|
1166 |
-
}
|
1167 |
-
.status_filter {
|
1168 |
-
margin: 0 8px 0 0;
|
1169 |
-
padding: 30px 0 10px;
|
1170 |
-
width: 85%;
|
1171 |
-
}
|
1172 |
-
.status_filter a{
|
1173 |
-
text-decoration: none;
|
1174 |
-
color: #005b9a;
|
1175 |
-
font-size: 14px;
|
1176 |
-
padding: 5px 12px 8px;
|
1177 |
-
line-height: 1;
|
1178 |
-
}
|
1179 |
-
.status_filter a:focus{
|
1180 |
-
outline: none;
|
1181 |
-
box-shadow: none;
|
1182 |
-
}
|
1183 |
-
.status_filter a.active{
|
1184 |
-
color: #74C2E1;
|
1185 |
-
border-bottom: 3px solid #74C2E1;
|
1186 |
-
font-weight: 600;
|
1187 |
-
}
|
1188 |
#search_provider{
|
1189 |
-
width:
|
1190 |
-
min-width:
|
1191 |
font-size: 12px;
|
1192 |
-
border: 1px solid #
|
1193 |
-
|
1194 |
-
padding: 0 0 0 30px;
|
1195 |
line-height: 2;
|
1196 |
-
min-height:
|
|
|
1197 |
}
|
1198 |
.search_section .search-icon{
|
1199 |
position: absolute;
|
1200 |
-
padding:
|
1201 |
color: #005b9a;
|
|
|
1202 |
}
|
1203 |
-
|
1204 |
.provider_top:after{
|
1205 |
content:'';
|
1206 |
-
clear:both;
|
1207 |
-
display:block;
|
1208 |
-
}
|
1209 |
-
.provider_top {
|
1210 |
-
display: flex;
|
1211 |
-
align-items: center;
|
1212 |
-
position: relative;
|
1213 |
-
border-bottom: 1px solid #ddd;
|
1214 |
-
}
|
1215 |
-
.
|
1216 |
-
/* Tooltip container */
|
1217 |
-
.provider_settings .tooltip {
|
1218 |
-
position: relative;
|
1219 |
-
display: inline-block;
|
1220 |
-
}
|
1221 |
-
|
1222 |
-
/* Tooltip text */
|
1223 |
-
.provider_settings .tooltip .tooltiptext {
|
1224 |
-
visibility: hidden;
|
1225 |
-
width: 100px;
|
1226 |
-
background-color: black;
|
1227 |
-
color: #fff;
|
1228 |
-
text-align: center;
|
1229 |
-
padding: 5px 0;
|
1230 |
-
border-radius: 6px;
|
1231 |
-
position: absolute;
|
1232 |
-
z-index: 1;
|
1233 |
-
}
|
1234 |
-
.provider_settings .tooltip-top{
|
1235 |
-
bottom: 125%;
|
1236 |
-
left: 20%;
|
1237 |
-
margin-left: -52px;
|
1238 |
-
}
|
1239 |
-
.provider_settings .tooltip .tooltiptext::after {
|
1240 |
-
content: " ";
|
1241 |
-
position: absolute;
|
1242 |
-
top: 100%; /* At the bottom of the tooltip */
|
1243 |
-
left: 58%;
|
1244 |
-
margin-left: -5px;
|
1245 |
-
border-width: 5px;
|
1246 |
-
border-style: solid;
|
1247 |
-
border-color: black transparent transparent transparent;
|
1248 |
-
}
|
1249 |
-
/* Show the tooltip text when you mouse over the tooltip container */
|
1250 |
-
.provider_settings .tooltip:hover .tooltiptext {
|
1251 |
-
visibility: visible;
|
1252 |
-
}
|
1253 |
-
|
1254 |
-
ul.provider_settings_ul {
|
1255 |
-
margin: 5px 0 0;
|
1256 |
-
}
|
1257 |
-
.provider_settings_ul li {
|
1258 |
-
display: inline-block;
|
1259 |
-
margin: 0 5px;
|
1260 |
-
}
|
1261 |
-
.provider_settings_ul li a {
|
1262 |
-
text-decoration: none;
|
1263 |
-
}
|
1264 |
-
.dropdown-content {
|
1265 |
-
display: none;
|
1266 |
-
position: absolute;
|
1267 |
-
right: 7px;
|
1268 |
-
background-color: #f9f9f9;
|
1269 |
-
min-width: 220px;
|
1270 |
-
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
1271 |
-
z-index: 100;
|
1272 |
-
border: 1px solid #ccc;
|
1273 |
-
padding: .5rem;
|
1274 |
-
margin-top: 0;
|
1275 |
-
text-align: left;
|
1276 |
-
top: 45px;
|
1277 |
-
}
|
1278 |
-
.dropdown-content li {
|
1279 |
-
margin-bottom: 0;
|
1280 |
-
border-bottom: 1px solid #ebeef2;
|
1281 |
-
padding: .5rem;
|
1282 |
-
}
|
1283 |
-
.dropdown-content li a {
|
1284 |
-
color: black;
|
1285 |
-
text-decoration: none;
|
1286 |
-
display: block;
|
1287 |
-
|
1288 |
-
}
|
1289 |
-
.dropdown-content li a.reset_active,.dropdown-content li a.reset_inactive{
|
1290 |
-
display: inline-block;
|
1291 |
-
color: #0073aa;
|
1292 |
-
}
|
1293 |
-
.dropdown-content li:last-child{
|
1294 |
-
border-bottom: none;
|
1295 |
-
}
|
1296 |
-
.dropdown-content li:hover {background-color: #f1f1f1;}
|
1297 |
-
|
1298 |
-
.dropdown_menu{
|
1299 |
-
cursor: pointer;
|
1300 |
-
padding: 10px;
|
1301 |
-
color: #005b9a;
|
1302 |
}
|
1303 |
-
.
|
1304 |
-
|
1305 |
-
|
1306 |
-
height: .75rem;
|
1307 |
-
position: absolute;
|
1308 |
-
z-index: 1;
|
1309 |
-
top: -0.375rem;
|
1310 |
-
right: 10px;
|
1311 |
-
background-color: #fff;
|
1312 |
-
transform: rotate(45deg);
|
1313 |
-
border: 1px solid #aebacc;
|
1314 |
-
border-width: 1px 0 0 1px;
|
1315 |
-
margin-top: -1px;
|
1316 |
}
|
1317 |
-
|
1318 |
-
|
1319 |
-
width: 600px;
|
1320 |
}
|
1321 |
-
.
|
1322 |
-
|
1323 |
}
|
1324 |
-
|
1325 |
.popupwrapper {
|
1326 |
position: fixed;
|
1327 |
top: 0;
|
@@ -1333,6 +667,9 @@ ul.provider_settings_ul {
|
|
1333 |
height: 100%;
|
1334 |
text-align: center;
|
1335 |
}
|
|
|
|
|
|
|
1336 |
.popupwrapper.ts_video_popup{
|
1337 |
background: rgb(250 250 250 / 0.8);
|
1338 |
}
|
@@ -1368,13 +705,13 @@ ul.provider_settings_ul {
|
|
1368 |
padding: 0;
|
1369 |
position: relative;
|
1370 |
z-index: 10;
|
1371 |
-
border-radius:
|
1372 |
width: 97%;
|
1373 |
width: calc(100% - 5px);
|
1374 |
max-height: 90%;
|
1375 |
overflow-y: overlay;
|
1376 |
text-align: left;
|
1377 |
-
border: 1px solid #
|
1378 |
}
|
1379 |
.uninstall_popup .popuprow{
|
1380 |
max-width: 520px;
|
@@ -1404,7 +741,7 @@ ul.provider_settings_ul {
|
|
1404 |
.trackingpopup_row {
|
1405 |
display: inline-block;
|
1406 |
vertical-align: middle;
|
1407 |
-
max-width:
|
1408 |
text-align:left;
|
1409 |
background: #fff;
|
1410 |
border: 1px solid #e0e0e0;
|
@@ -1419,7 +756,7 @@ ul.provider_settings_ul {
|
|
1419 |
}
|
1420 |
.trackingpopup_row .popup_header{
|
1421 |
border-bottom: 1px solid #e0e0e0;
|
1422 |
-
padding: 15px
|
1423 |
}
|
1424 |
.popuprow .popup_header {
|
1425 |
border-bottom: 1px solid #e0e0e0;
|
@@ -1454,7 +791,7 @@ ul.provider_settings_ul {
|
|
1454 |
padding: 10px 30px;
|
1455 |
}
|
1456 |
.popuprow .popup_body{
|
1457 |
-
padding: 20px
|
1458 |
}
|
1459 |
.popup_body .sync_message{
|
1460 |
margin-top: 0;
|
@@ -1501,30 +838,66 @@ ul.provider_settings_ul {
|
|
1501 |
vertical-align: -webkit-baseline-middle;
|
1502 |
}
|
1503 |
.popupwrapper input[type=text]{
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
|
|
|
|
1508 |
}
|
1509 |
.trackingpopup_wrapper input[type=text]{
|
1510 |
line-height: 24px;
|
1511 |
-
color: #
|
1512 |
-
width:
|
1513 |
-
margin
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1514 |
}
|
1515 |
.popupwrapper input[type=text].image_path{
|
1516 |
width: calc(100% - 71px);
|
1517 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1518 |
.trackingpopup_wrapper input[type=text].image_path{
|
1519 |
width: 100%;
|
1520 |
}
|
1521 |
-
.popupwrapper select,.popupwrapper .select2{
|
1522 |
line-height: 24px;
|
1523 |
-
color: #
|
1524 |
-
width:
|
1525 |
max-width: 100%;
|
1526 |
-
|
1527 |
-
|
|
|
1528 |
}
|
1529 |
.popupwrapper.uninstall_popup select{
|
1530 |
width: auto;
|
@@ -1535,8 +908,18 @@ ul.provider_settings_ul {
|
|
1535 |
color: #0d0d0d;
|
1536 |
width: 100%;
|
1537 |
max-width: 100%;
|
1538 |
-
margin
|
1539 |
-
height:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1540 |
}
|
1541 |
.popupwrapper .popuprow .popup_title,.trackingpopup_wrapper .trackingpopup_row .popup_title{
|
1542 |
color: #005B9A;
|
@@ -1557,26 +940,16 @@ ul.provider_settings_ul {
|
|
1557 |
a.reset_default_provider {
|
1558 |
margin-left: 10px;
|
1559 |
}
|
1560 |
-
.close-button{
|
1561 |
-
background: #000 none repeat scroll 0 0;
|
1562 |
-
height: 50px;
|
1563 |
-
margin-top: 10px;
|
1564 |
-
padding: 10px;
|
1565 |
-
color: #fff;
|
1566 |
-
position: absolute;
|
1567 |
-
bottom: 8px;
|
1568 |
-
right: 10px;
|
1569 |
-
height: 34px;
|
1570 |
-
}
|
1571 |
.change_order_to_shipped_field ul{
|
1572 |
-
margin: 5px 0 0
|
|
|
|
|
|
|
|
|
1573 |
}
|
1574 |
.change_order_to_shipped_field ul li {
|
1575 |
display: inline-block;
|
1576 |
-
margin
|
1577 |
-
}
|
1578 |
-
.provider-status .mdl-switch{
|
1579 |
-
width: auto;
|
1580 |
}
|
1581 |
.provider .edit_provider,.provider .remove{
|
1582 |
display:none;
|
@@ -1592,26 +965,12 @@ a.reset_default_provider {
|
|
1592 |
text-decoration: none;
|
1593 |
color: #444;
|
1594 |
}
|
1595 |
-
h1.plugin-title {
|
1596 |
-
padding: 20px 30px 10px 30px;
|
1597 |
-
font-size: 1.7em;
|
1598 |
-
color: #071d57;
|
1599 |
-
}
|
1600 |
-
.plugin-logo{
|
1601 |
-
max-width: 400px;
|
1602 |
-
padding: 15px 0px 15px 30px;
|
1603 |
-
}
|
1604 |
.disable_label span {
|
1605 |
color: #999;
|
1606 |
}
|
1607 |
.wp-core-ui .button-primary.close_synch_popup{
|
1608 |
display:none;
|
1609 |
}
|
1610 |
-
|
1611 |
-
.shipment_about{
|
1612 |
-
margin:0;
|
1613 |
-
line-height: 20px;
|
1614 |
-
}
|
1615 |
.disabled_link{
|
1616 |
pointer-events: none;
|
1617 |
cursor: default;
|
@@ -1621,15 +980,6 @@ h1.plugin-title {
|
|
1621 |
margin:0;
|
1622 |
line-height: 20px;
|
1623 |
}
|
1624 |
-
.delivered_enabel p.shipment_about{
|
1625 |
-
display: none;
|
1626 |
-
}
|
1627 |
-
.email-icon{
|
1628 |
-
position: absolute;
|
1629 |
-
left: 15px;
|
1630 |
-
top: 17px;
|
1631 |
-
width: 35px;
|
1632 |
-
}
|
1633 |
.woocommerce.zorem_admin_layout table.form-table{
|
1634 |
border: 0;
|
1635 |
margin-top: 0;
|
@@ -1641,42 +991,11 @@ h1.plugin-title {
|
|
1641 |
.woocommerce.zorem_admin_layout table.form-table.heading-table{
|
1642 |
margin: 0;
|
1643 |
border: 0;
|
1644 |
-
}
|
1645 |
-
.woocommerce.zorem_admin_layout table.form-table.tracking-info-customizer-table{
|
1646 |
-
background: #fff;
|
1647 |
-
border: 1px solid #e0e0e0;
|
1648 |
-
margin-top: 20px;
|
1649 |
-
}
|
1650 |
-
.ast_admin_content .form-table.tracking-info-customizer-table th.titledesc{
|
1651 |
-
width: 75%;
|
1652 |
-
padding: 15px;
|
1653 |
-
}
|
1654 |
-
.ast_admin_content .form-table.tracking-info-customizer-table th.titledesc span{
|
1655 |
-
font-weight: 400;
|
1656 |
-
margin-top: 5px;
|
1657 |
-
display: block;
|
1658 |
-
font-size: 12px;
|
1659 |
-
}
|
1660 |
-
.custom-order-status-label {
|
1661 |
-
font-weight: 600;
|
1662 |
-
color: #444;
|
1663 |
-
font-size: 14px;
|
1664 |
-
margin: 20px 0 0;
|
1665 |
-
display: block;
|
1666 |
-
border: 1px solid #e0e0e0;
|
1667 |
-
padding: 0 15px 15px;
|
1668 |
-
background: #fff;
|
1669 |
-
border-bottom: 0;
|
1670 |
-
}
|
1671 |
-
.custom-order-status-label p{
|
1672 |
-
margin-bottom: 3px;
|
1673 |
-
}
|
1674 |
-
.custom-order-status-label span{
|
1675 |
-
font-weight: 400;
|
1676 |
-
font-size: 12px;
|
1677 |
-
}
|
1678 |
.woocommerce.zorem_admin_layout table.form-table.heading-table td{
|
1679 |
-
padding: 12px
|
|
|
|
|
1680 |
}
|
1681 |
.woocommerce.zorem_admin_layout .border_0 table.form-table.heading-table tr{
|
1682 |
border-bottom: 1px solid #e0e0e0;
|
@@ -1754,14 +1073,10 @@ h1.plugin-title {
|
|
1754 |
.woocommerce.zorem_admin_layout table.form-table.order-status-table td{
|
1755 |
padding: 15px;
|
1756 |
}
|
1757 |
-
.outer_form_table table.form-table.order-status-table tr td.status-label-column{
|
1758 |
-
border-left: 1px solid #e0e0e0;
|
1759 |
-
}
|
1760 |
.woocommerce.zorem_admin_layout table.form-table.order-status-table td:first-child{
|
1761 |
padding:20px 15px 20px 15px;
|
1762 |
width: 37px;
|
1763 |
}
|
1764 |
-
|
1765 |
.woocommerce.zorem_admin_layout table.form-table th label{
|
1766 |
font-weight: 600;
|
1767 |
color: #444;
|
@@ -1774,8 +1089,9 @@ span.radio_section {
|
|
1774 |
vertical-align: bottom;
|
1775 |
}
|
1776 |
span.multiple_checkbox {
|
1777 |
-
display: block;
|
1778 |
-
|
|
|
1779 |
}
|
1780 |
.woocommerce.zorem_admin_layout table.form-table p.inline_checkbox{
|
1781 |
line-height: 30px;
|
@@ -1785,34 +1101,57 @@ span.multiple_checkbox {
|
|
1785 |
font-weight: 400;
|
1786 |
margin-top: 5px;
|
1787 |
}
|
|
|
|
|
|
|
1788 |
.settings_ul{
|
1789 |
-
margin
|
1790 |
-
margin-bottom: 0;
|
1791 |
}
|
1792 |
-
.settings_ul
|
1793 |
-
|
1794 |
}
|
1795 |
.settings_ul li{
|
1796 |
-
padding: 15px
|
1797 |
-
border-bottom: 1px solid #
|
1798 |
margin: 0;
|
1799 |
min-height: 25px;
|
|
|
1800 |
}
|
1801 |
.settings_ul li:last-child {
|
1802 |
border-bottom: 0;
|
1803 |
}
|
|
|
|
|
|
|
|
|
1804 |
.settings_ul .settings_radio_li .radio_section{
|
1805 |
display: inline-block;
|
1806 |
padding: 0 10px;
|
1807 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1808 |
.multiple_checkbox_parent {
|
1809 |
display: inline-block;
|
1810 |
-
vertical-align: top;
|
1811 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1812 |
}
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
|
|
1816 |
}
|
1817 |
|
1818 |
.updated_details {
|
@@ -1844,15 +1183,16 @@ p.tracking-preview-desc {
|
|
1844 |
min-width: 90px;
|
1845 |
line-height: 20px;
|
1846 |
}
|
1847 |
-
.trackship-icon{
|
1848 |
-
width: 70px;
|
1849 |
-
}
|
1850 |
.add_tracking_number_form .form-field{
|
1851 |
margin: 0;
|
1852 |
text-align:left;
|
1853 |
}
|
|
|
|
|
|
|
1854 |
.add_tracking_number_form input[type=checkbox]{
|
1855 |
margin: 0px 4px 0 0px;
|
|
|
1856 |
}
|
1857 |
.d_table{
|
1858 |
display:table;
|
@@ -1864,16 +1204,6 @@ p.tracking-preview-desc {
|
|
1864 |
.zorem_admin_layout h3{
|
1865 |
margin: 1em 0;
|
1866 |
}
|
1867 |
-
.ts_description{
|
1868 |
-
width: 80%;
|
1869 |
-
margin: 1em auto;
|
1870 |
-
}
|
1871 |
-
.description-below-table{
|
1872 |
-
margin-top: 0;
|
1873 |
-
margin-bottom: 0;
|
1874 |
-
padding: 5px 0;
|
1875 |
-
border-top: 0;
|
1876 |
-
}
|
1877 |
.ast_admin_content div.submit .spinner{
|
1878 |
display: none;
|
1879 |
float: none;
|
@@ -1882,68 +1212,6 @@ p.tracking-preview-desc {
|
|
1882 |
.ast_admin_content div.submit .spinner.active{
|
1883 |
display: inline-block;
|
1884 |
}
|
1885 |
-
|
1886 |
-
/*** AST Notice CSS ***/
|
1887 |
-
.ast-notice {
|
1888 |
-
position: relative;
|
1889 |
-
color: #444;
|
1890 |
-
}
|
1891 |
-
.ast-notice .ast-notice-inner {
|
1892 |
-
margin-top: 25px;
|
1893 |
-
padding: 20px;
|
1894 |
-
background: #fff;
|
1895 |
-
border-left: 3px solid;
|
1896 |
-
line-height: 1.5;
|
1897 |
-
font-size: 14px;
|
1898 |
-
border-left-color: #83bd31;
|
1899 |
-
}
|
1900 |
-
.ast-notice .dismiss-notice {
|
1901 |
-
border: none;
|
1902 |
-
background: none;
|
1903 |
-
padding: 0;
|
1904 |
-
margin: 0;
|
1905 |
-
display: inline-block;
|
1906 |
-
cursor: pointer;
|
1907 |
-
color: #acbdc9;
|
1908 |
-
position: relative;
|
1909 |
-
float: right;
|
1910 |
-
}
|
1911 |
-
.ast-notice .ast-notice-inner .notice-title {
|
1912 |
-
color: #061c58;
|
1913 |
-
font-weight: 700;
|
1914 |
-
display: block;
|
1915 |
-
margin: 0 0 6px;
|
1916 |
-
padding: 0;
|
1917 |
-
}
|
1918 |
-
.ast-notice .notice-content {
|
1919 |
-
margin-right: 20px;
|
1920 |
-
margin-bottom: 20px;
|
1921 |
-
}
|
1922 |
-
.nav_doc_section {
|
1923 |
-
float: right;
|
1924 |
-
padding: 9px 0;
|
1925 |
-
margin-right: 30px;
|
1926 |
-
}
|
1927 |
-
.nav_doc_section a {
|
1928 |
-
color: #005b9a;
|
1929 |
-
text-decoration: none;
|
1930 |
-
font-size: 14px;
|
1931 |
-
}
|
1932 |
-
.nav_doc_section a:hover{
|
1933 |
-
color: #74C2E1;
|
1934 |
-
}
|
1935 |
-
.nav_doc_section a:focus{
|
1936 |
-
outline: none;
|
1937 |
-
box-shadow: none;
|
1938 |
-
}
|
1939 |
-
.nav_doc_section a.open_video_popup:after {
|
1940 |
-
content: "\f236";
|
1941 |
-
font-family: dashicons;
|
1942 |
-
font-size: 18px;
|
1943 |
-
vertical-align: bottom;
|
1944 |
-
margin-left: 5px;
|
1945 |
-
clear: both;
|
1946 |
-
}
|
1947 |
.videoWrapper {
|
1948 |
position: relative;
|
1949 |
padding-bottom: 56.25%; /* 16:9 */
|
@@ -1969,86 +1237,11 @@ span.dashicons.dashicons-edit.edit_provider {
|
|
1969 |
cursor: pointer;
|
1970 |
}
|
1971 |
span.dashicons.dashicons-trash.remove {
|
1972 |
-
|
1973 |
-
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
}
|
1978 |
-
.notice.ast-admin-notice .ast-admin-notice-inner {
|
1979 |
-
display: block;
|
1980 |
-
}
|
1981 |
-
.notice.ast-admin-notice .ast-admin-notice-inner .ast-admin-notice-content {
|
1982 |
-
display: block;
|
1983 |
-
padding: 0;
|
1984 |
-
}
|
1985 |
-
.notice.ast-admin-notice .ast-admin-notice-inner .ast-admin-notice-icon,
|
1986 |
-
.notice.ast-admin-notice .ast-admin-notice-inner .trackship-install-now {
|
1987 |
-
display: none;
|
1988 |
-
}
|
1989 |
-
}
|
1990 |
-
|
1991 |
-
/*** Trackship Upsell CSS ***/
|
1992 |
-
.trackship-upsell-overlay {
|
1993 |
-
width: 750px;
|
1994 |
-
max-width: 100%;
|
1995 |
-
-webkit-box-shadow: 0 5px 25px 0 rgba(0,0,0,.15);
|
1996 |
-
box-shadow: 0 5px 25px 0 rgba(0,0,0,.15);
|
1997 |
-
background-color: #fff;
|
1998 |
-
border: 1px solid #eee;
|
1999 |
-
margin: 70px auto 50px;
|
2000 |
-
}
|
2001 |
-
.trackship-upsell-overlay .trackship-upsell-top {
|
2002 |
-
padding: 0 40px;
|
2003 |
-
}
|
2004 |
-
.trackship-upsell-overlay h3 {
|
2005 |
-
text-align: center;
|
2006 |
-
color: #393f4c;
|
2007 |
-
font-size: 20px;
|
2008 |
-
margin: 32px 0 20px;
|
2009 |
-
line-height: 1.4;
|
2010 |
-
}
|
2011 |
-
.trackship-upsell-overlay .trackship-upsell-subtitle {
|
2012 |
-
color: #071d57;
|
2013 |
-
font-size: 16px;
|
2014 |
-
text-align: center;
|
2015 |
-
}
|
2016 |
-
.trackship-upsell-overlay .trackship-upsell-content {
|
2017 |
-
border-top: 1px solid #eee;
|
2018 |
-
background: #f9fbff;
|
2019 |
-
padding: 40px;
|
2020 |
-
}
|
2021 |
-
.trackship-upsell-overlay .trackship-upsell-content ul {
|
2022 |
-
margin: 0 auto;
|
2023 |
-
max-width: 520px;
|
2024 |
-
}
|
2025 |
-
.trackship-upsell-overlay .trackship-upsell-content ul li {
|
2026 |
-
color: #071d57;
|
2027 |
-
font-size: 16px;
|
2028 |
-
margin: 0 0 20px;
|
2029 |
-
padding-left: 40px;
|
2030 |
-
position: relative;
|
2031 |
-
line-height: 1.5;
|
2032 |
-
}
|
2033 |
-
.trackship-upsell-overlay .trackship-upsell-content ul li:before {
|
2034 |
-
position: absolute;
|
2035 |
-
content: "\f147";
|
2036 |
-
width: 20px;
|
2037 |
-
height: 20px;
|
2038 |
-
background: #83bd31;
|
2039 |
-
left: 0;
|
2040 |
-
border-radius: 50%;
|
2041 |
-
display: inline-block;
|
2042 |
-
font-family: dashicons;
|
2043 |
-
font-style: normal;
|
2044 |
-
font-weight: 400;
|
2045 |
-
-webkit-font-smoothing: antialiased;
|
2046 |
-
-moz-osx-font-smoothing: grayscale;
|
2047 |
-
color: #f9fbff;
|
2048 |
-
font-size: 14px;
|
2049 |
-
text-align: center;
|
2050 |
-
line-height: 20px;
|
2051 |
-
top: 4px;
|
2052 |
}
|
2053 |
|
2054 |
/*** Dashboard Widget CSS ***/
|
@@ -2105,8 +1298,10 @@ section.widget_tab_section {
|
|
2105 |
overflow-y: auto;
|
2106 |
}
|
2107 |
/**** -------- ****/
|
2108 |
-
.woocommerce_page_woocommerce-advanced-shipment-tracking .woocommerce-help-tip{
|
2109 |
color: #005B9A;
|
|
|
|
|
2110 |
}
|
2111 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #tiptip_content{
|
2112 |
background:#005B9A;
|
@@ -2120,9 +1315,6 @@ section.widget_tab_section {
|
|
2120 |
border-bottom-color: #005B9A;
|
2121 |
}
|
2122 |
|
2123 |
-
.doc_link{
|
2124 |
-
margin-right: 25px;
|
2125 |
-
}
|
2126 |
#trackship_dashboard_widget .inside h3{
|
2127 |
font-weight:600;
|
2128 |
}
|
@@ -2130,84 +1322,7 @@ section.widget_tab_section {
|
|
2130 |
padding: 0;
|
2131 |
margin: 0;
|
2132 |
}
|
2133 |
-
|
2134 |
-
display: list-item;
|
2135 |
-
list-style: none;
|
2136 |
-
}
|
2137 |
-
.ast_admin_content .ast_addons_section .form-table th.titledesc{
|
2138 |
-
width: 25%;
|
2139 |
-
}
|
2140 |
-
.ast_admin_content .ast_addons_section .license_div {
|
2141 |
-
margin-bottom: 20px;
|
2142 |
-
}
|
2143 |
-
.ast_admin_content .ast_addons_section span.api_connected{
|
2144 |
-
line-height: 36px;
|
2145 |
-
height: 40px;
|
2146 |
-
padding: 10px 20px;
|
2147 |
-
font-size: 15px;
|
2148 |
-
}
|
2149 |
-
.woocommerce.zorem_admin_layout table.form-table.heading-table tr.addons_header td{
|
2150 |
-
padding:0;
|
2151 |
-
}
|
2152 |
-
.woocommerce.zorem_admin_layout table.form-table.heading-table tr.addons_header td img{
|
2153 |
-
width:100%;
|
2154 |
-
}
|
2155 |
-
.ast_addons_section .submit .btn_ast2{
|
2156 |
-
display: inline-block;
|
2157 |
-
float: none;
|
2158 |
-
}
|
2159 |
-
.ast_addons_section .submit .pesan{
|
2160 |
-
width: 65%;
|
2161 |
-
vertical-align: bottom;
|
2162 |
-
line-height: 25px;
|
2163 |
-
position: absolute;
|
2164 |
-
}
|
2165 |
-
.ast_addons_section .submit{
|
2166 |
-
margin: 0;
|
2167 |
-
}
|
2168 |
-
.ast_addons_section .submit .pesan.license_active{
|
2169 |
-
color:green;
|
2170 |
-
}
|
2171 |
-
.ast_addons_section .submit:after{
|
2172 |
-
display: block;
|
2173 |
-
content: '';
|
2174 |
-
clear: both;
|
2175 |
-
}
|
2176 |
-
.ts_addons_header,.tracking_item_addons_header{
|
2177 |
-
position: relative;
|
2178 |
-
display: inline-block;
|
2179 |
-
cursor: pointer;
|
2180 |
-
}
|
2181 |
-
.ts_addons_header:before,.tracking_item_addons_header:before{
|
2182 |
-
color: #eee;
|
2183 |
-
}
|
2184 |
-
.ts_addons_header:after,.tracking_item_addons_header:after{
|
2185 |
-
position:absolute;
|
2186 |
-
top: 50%;
|
2187 |
-
left: 50%;
|
2188 |
-
transform: translate(-50%, -50%);
|
2189 |
-
-webkit-transform: translate(-50%, -50%);
|
2190 |
-
content: "\f236";
|
2191 |
-
font-family: dashicons;
|
2192 |
-
font-size: 70px;
|
2193 |
-
color: #fff;
|
2194 |
-
opacity: .8;
|
2195 |
-
text-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5);
|
2196 |
-
}
|
2197 |
-
.woocommerce.zorem_admin_layout .license_div table.form-table{
|
2198 |
-
background: 0;
|
2199 |
-
border: 0;
|
2200 |
-
}
|
2201 |
-
.ast_admin_content .ast_addons_section .license_div .form-table th.titledesc {
|
2202 |
-
padding: 0px 24px 0px 15px;
|
2203 |
-
vertical-align: middle;
|
2204 |
-
}
|
2205 |
-
.ast_admin_content .ast_addons_section .license_div .form-table td {
|
2206 |
-
padding: 0 15px;
|
2207 |
-
}
|
2208 |
-
#wc_ast_addons_form .license_div .form-table tr{
|
2209 |
-
border-bottom:0;
|
2210 |
-
}
|
2211 |
#woocommerce-advanced-shipment-tracking.postbox{
|
2212 |
background: #f9f9f9;
|
2213 |
}
|
@@ -2230,7 +1345,7 @@ span.tracking_product_list {
|
|
2230 |
pointer-events: auto;
|
2231 |
}
|
2232 |
.order-status-table td:last-child{
|
2233 |
-
text-align:
|
2234 |
}
|
2235 |
.order-status-table .order-label{
|
2236 |
display: -webkit-inline-box;
|
@@ -2254,49 +1369,16 @@ span.tracking_product_list {
|
|
2254 |
display: inline-block;
|
2255 |
vertical-align: middle;
|
2256 |
}
|
2257 |
-
.form-table.order-status-table td .send_email_label {
|
2258 |
-
margin: 0 5px !important;
|
2259 |
-
}
|
2260 |
-
.add_custom_p_a{
|
2261 |
-
font-weight: 500;
|
2262 |
-
font-size: 14px;
|
2263 |
-
display: block;
|
2264 |
-
text-align: center;
|
2265 |
-
margin-top: 14px;
|
2266 |
-
}
|
2267 |
-
.add_custom_inner .dashicons{
|
2268 |
-
display: block;
|
2269 |
-
text-align: center;
|
2270 |
-
margin: 10px auto;
|
2271 |
-
font-size: 35px;
|
2272 |
-
width: 40px;
|
2273 |
-
height: 38px;
|
2274 |
-
cursor: pointer;
|
2275 |
-
color:#005B9A;
|
2276 |
-
}
|
2277 |
-
.add_custom_provider_div{
|
2278 |
-
background: #fff;
|
2279 |
-
border: 1px solid rgba(116, 194, 225, 0.5);
|
2280 |
-
padding: 10px 10px 0px 10px;
|
2281 |
-
}
|
2282 |
-
.ast_admin_content .tracking-layout-table.form-table th.titledesc{
|
2283 |
-
width: 50%;
|
2284 |
-
}
|
2285 |
-
.woocommerce.zorem_admin_layout .border_0 table.form-table.settings-form-table td.custom-order-statuses-td{
|
2286 |
-
padding: 0;
|
2287 |
-
background: transparent;
|
2288 |
-
border: 0;
|
2289 |
-
}
|
2290 |
-
.woocommerce.zorem_admin_layout .border_0 table.form-table.settings-form-table td.tracking-info-customizer-td{
|
2291 |
-
padding: 0;
|
2292 |
-
}
|
2293 |
-
.woocommerce.zorem_admin_layout .border_0 table.form-table.settings-form-table td.tracking-info-customizer-td table td{
|
2294 |
-
border: 0;
|
2295 |
}
|
2296 |
-
.
|
2297 |
-
|
2298 |
-
|
2299 |
-
|
|
|
|
|
|
|
2300 |
}
|
2301 |
|
2302 |
.ast_radio_label {
|
@@ -2310,6 +1392,7 @@ span.tracking_product_list {
|
|
2310 |
border: 1px solid #e0e0e0;
|
2311 |
margin-top: 25px;
|
2312 |
border-radius: 3px;
|
|
|
2313 |
}
|
2314 |
#wc_ast_upload_csv_form .outer_form_table{
|
2315 |
margin-top: 20px;
|
@@ -2339,30 +1422,35 @@ span.tracking_product_list {
|
|
2339 |
.provider_list .pagination>li>a, .provider_list .pagination>li>span {
|
2340 |
position: relative;
|
2341 |
float: left;
|
2342 |
-
padding:
|
2343 |
margin-left: -1px;
|
2344 |
line-height: 1.42857143;
|
2345 |
-
color: #
|
2346 |
text-decoration: none;
|
2347 |
-
background-color: #
|
2348 |
-
border: 1px solid #
|
2349 |
-
border-radius:
|
2350 |
cursor: pointer;
|
2351 |
}
|
2352 |
.provider_list .pagination>.active>a, .provider_list .pagination>.active>a:focus, .provider_list .pagination>.active>a:hover, .provider_list .pagination>.active>span, .provider_list .pagination>.active>span:focus, .provider_list .pagination>.active>span:hover {
|
2353 |
z-index: 2;
|
2354 |
-
color: #
|
2355 |
cursor: default;
|
2356 |
-
background-color:
|
2357 |
-
border-color: #74C2E1;
|
2358 |
}
|
2359 |
table.provder_table{
|
2360 |
-
border:
|
2361 |
border-bottom: 0;
|
2362 |
box-shadow: none;
|
|
|
|
|
|
|
2363 |
}
|
2364 |
table.provder_table thead{
|
2365 |
-
|
|
|
|
|
|
|
2366 |
}
|
2367 |
table.provder_table tbody tr:hover{
|
2368 |
background: #f9f9f9;
|
@@ -2377,49 +1465,52 @@ table.provder_table th:last-child{
|
|
2377 |
border-right: 0;
|
2378 |
}
|
2379 |
table.provder_table td{
|
2380 |
-
vertical-align: middle;
|
2381 |
-
|
2382 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2383 |
}
|
2384 |
-
table.provder_table tr:last-child
|
2385 |
-
|
|
|
|
|
|
|
2386 |
}
|
2387 |
table.provder_table td:first-child{
|
2388 |
width: 30px;
|
|
|
2389 |
}
|
2390 |
-
table.provder_table
|
2391 |
-
|
|
|
2392 |
}
|
2393 |
-
table.provder_table td:nth-last-child(2){
|
2394 |
-
|
2395 |
}
|
2396 |
-
|
2397 |
-
|
2398 |
-
padding: 5px;
|
2399 |
color: #005b9a;
|
2400 |
-
|
2401 |
-
|
2402 |
-
|
2403 |
-
|
2404 |
-
width: 18px;
|
2405 |
-
background-color: #eaf8fb;
|
2406 |
}
|
2407 |
.provider_table_hc {
|
2408 |
-
|
2409 |
-
border-left: 1px solid #ddd;
|
2410 |
-
border-right: 1px solid #ddd;
|
2411 |
-
background: #fff;
|
2412 |
-
padding: 10px;
|
2413 |
-
}
|
2414 |
-
.provider_table_hc.provider_table_hc_footer{
|
2415 |
-
border-bottom: 1px solid #ddd;
|
2416 |
}
|
2417 |
.shipping_provider_counter {
|
2418 |
display: inline-block;
|
2419 |
line-height: 32px;
|
2420 |
}
|
2421 |
-
.paging.shipping_provider_paging{
|
2422 |
-
float: right;
|
2423 |
}
|
2424 |
.shipping_provider_paging::after {
|
2425 |
content: "";
|
@@ -2471,11 +1562,13 @@ table.provder_table .provider_actions_btn{
|
|
2471 |
margin: 25px 10px;
|
2472 |
max-width: 100%;
|
2473 |
}
|
2474 |
-
.
|
2475 |
-
|
2476 |
}
|
2477 |
.bulk_upload_documentation_ul li {
|
2478 |
-
padding:
|
|
|
|
|
2479 |
}
|
2480 |
.woocommerce.zorem_admin_layout table.form-table td.bulk_upload_status_td {
|
2481 |
text-align: center;
|
@@ -2519,25 +1612,13 @@ table.provder_table .provider_actions_btn{
|
|
2519 |
.woocommerce_page_woocommerce-advanced-shipment-tracking .woocommerce-help-tip.dashicons{
|
2520 |
font-size: 20px;
|
2521 |
}
|
2522 |
-
|
2523 |
-
border: 1px solid #eee
|
2524 |
-
}
|
2525 |
-
.post-type-shop_order .wp-list-table.admin_tracking_details_table tbody tr td{
|
2526 |
-
padding: 5px !important;
|
2527 |
-
border-bottom: 1px solid #eee;
|
2528 |
-
}
|
2529 |
.open_tracking_details{
|
2530 |
cursor:pointer;
|
2531 |
}
|
2532 |
-
.add_custom_provider_h3{
|
2533 |
-
color: #005b9a;
|
2534 |
-
}
|
2535 |
-
.add_custom_provider_h3 a{
|
2536 |
-
color: #005b9a;
|
2537 |
-
text-decoration:none;
|
2538 |
-
}
|
2539 |
|
2540 |
-
|
|
|
2541 |
img.zorem_logo {
|
2542 |
width: 150px;
|
2543 |
margin-top: 20px;
|
@@ -2578,6 +1659,15 @@ p.zorem_description {
|
|
2578 |
margin: 0 4% 0 0;
|
2579 |
vertical-align: top;
|
2580 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2581 |
.plugins_section.free_plugin_section .plugin_image img{
|
2582 |
width: 100%;
|
2583 |
}
|
@@ -2605,14 +1695,67 @@ p.zorem_description {
|
|
2605 |
background: #fff;
|
2606 |
padding: 15px;
|
2607 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2608 |
.addons_page_title{
|
2609 |
color: #333333;
|
2610 |
-
|
2611 |
-
|
2612 |
-
|
2613 |
-
|
2614 |
-
|
2615 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2616 |
}
|
2617 |
.addons_title_divider{
|
2618 |
background-color: #005B9A;
|
@@ -2622,55 +1765,29 @@ p.zorem_description {
|
|
2622 |
width: 100%;
|
2623 |
max-width: 30px;
|
2624 |
}
|
2625 |
-
|
2626 |
-
color: #005b9a;
|
2627 |
-
margin: 10px 0 -10px;
|
2628 |
-
font-size: 20px;
|
2629 |
-
}
|
2630 |
.zorem_admin_layout .csv_heading_section{
|
2631 |
text-align:left;
|
2632 |
margin-bottom: 25px;
|
2633 |
}
|
2634 |
-
.zorem_admin_layout .csv_heading_section .border0_heading{
|
2635 |
-
margin: 10px 0 0;
|
2636 |
-
}
|
2637 |
.border-bottom-1{
|
2638 |
border-bottom:1px solid #eee;
|
2639 |
}
|
2640 |
-
.import_tracking_sidebar{
|
2641 |
-
position: relative;
|
2642 |
-
display: inline-block;
|
2643 |
-
cursor: pointer;
|
2644 |
-
}
|
2645 |
-
.import_tracking_sidebar:after{
|
2646 |
-
position: absolute;
|
2647 |
-
top: 52%;
|
2648 |
-
left: 50%;
|
2649 |
-
transform: translate(-50%, -50%);
|
2650 |
-
-webkit-transform: translate(-50%, -50%);
|
2651 |
-
content: "\f236";
|
2652 |
-
font-family: dashicons;
|
2653 |
-
font-size: 20px;
|
2654 |
-
color: #444444;
|
2655 |
-
}
|
2656 |
-
hr.inner_tabs_hr {
|
2657 |
-
margin: 0;
|
2658 |
-
}
|
2659 |
|
2660 |
/** Toggle CSS **/
|
2661 |
-
input[type=checkbox].tgl {
|
2662 |
display: none;
|
2663 |
}
|
2664 |
-
.tgl, .tgl:after, .tgl:before, .tgl *, .tgl *:after, .tgl *:before, .tgl + .tgl-btn {
|
2665 |
box-sizing: border-box;
|
2666 |
}
|
2667 |
-
.tgl::-moz-selection, .tgl:after::-moz-selection, .tgl:before::-moz-selection, .tgl *::-moz-selection, .tgl *:after::-moz-selection, .tgl *:before::-moz-selection, .tgl + .tgl-btn::-moz-selection {
|
2668 |
background: none;
|
2669 |
}
|
2670 |
-
.tgl::selection, .tgl:after::selection, .tgl:before::selection, .tgl *::selection, .tgl *:after::selection, .tgl *:before::selection, .tgl + .tgl-btn::selection {
|
2671 |
background: none;
|
2672 |
}
|
2673 |
-
.tgl + .tgl-btn {
|
2674 |
outline: 0;
|
2675 |
display: inline-block;
|
2676 |
width: 36px;
|
@@ -2682,23 +1799,23 @@ input[type=checkbox].tgl {
|
|
2682 |
-ms-user-select: none;
|
2683 |
user-select: none;
|
2684 |
}
|
2685 |
-
.tgl + .tgl-btn:after, .tgl + .tgl-btn:before {
|
2686 |
position: relative;
|
2687 |
display: block;
|
2688 |
content: "";
|
2689 |
width: 40%;
|
2690 |
height: 100%;
|
2691 |
}
|
2692 |
-
.tgl + .tgl-btn:after {
|
2693 |
left: 0;
|
2694 |
}
|
2695 |
-
.tgl + .tgl-btn:before {
|
2696 |
display: none;
|
2697 |
}
|
2698 |
-
.tgl:checked + .tgl-btn:after {
|
2699 |
left: 50%;
|
2700 |
}
|
2701 |
-
.tgl-flat + .tgl-btn {
|
2702 |
padding: 2px;
|
2703 |
-webkit-transition: all .3s ease;
|
2704 |
transition: all .3s ease;
|
@@ -2706,18 +1823,18 @@ input[type=checkbox].tgl {
|
|
2706 |
border: 1px solid #ccc;
|
2707 |
border-radius: 2em;
|
2708 |
}
|
2709 |
-
.tgl-flat + .tgl-btn:after {
|
2710 |
-webkit-transition: all .2s ease;
|
2711 |
transition: all .2s ease;
|
2712 |
background: #f2f2f2;
|
2713 |
content: "";
|
2714 |
border-radius: 1em;
|
2715 |
}
|
2716 |
-
.tgl-flat:checked + .tgl-btn {
|
2717 |
border: 1px solid #ccc;
|
2718 |
background: #74C2E1;
|
2719 |
}
|
2720 |
-
.tgl-flat:checked + .tgl-btn:after {
|
2721 |
left: 55%;
|
2722 |
background: #005B9A;
|
2723 |
}
|
@@ -2835,12 +1952,10 @@ table.ast-license-form{
|
|
2835 |
.ast_admin_content .ast-license-form div.submit .button-primary{
|
2836 |
vertical-align: middle;
|
2837 |
}
|
2838 |
-
|
2839 |
max-width: 930px;
|
2840 |
-
|
2841 |
-
|
2842 |
-
border: 1px solid #e0e0e0;
|
2843 |
-
border-top-color: #ccc;
|
2844 |
}
|
2845 |
.woocommerce.zorem_admin_layout .border_0 table.form-table.settings-form-table .order-status-table td{
|
2846 |
border: 0;
|
@@ -2883,131 +1998,73 @@ ul.csv_error_details_ul li:before{
|
|
2883 |
margin-left: 10px;
|
2884 |
}
|
2885 |
.popupwrapper input[type=text].api_provider_name{
|
2886 |
-
|
2887 |
}
|
2888 |
-
.popupwrapper .add_more_api_provider{
|
2889 |
-
|
2890 |
-
|
2891 |
-
|
|
|
|
|
|
|
2892 |
}
|
2893 |
.popupwrapper .remove_more_api_provider {
|
2894 |
-
vertical-align:
|
2895 |
cursor: pointer;
|
2896 |
margin-left: 3px;
|
2897 |
color: red;
|
|
|
|
|
|
|
|
|
|
|
|
|
2898 |
}
|
2899 |
|
2900 |
-
|
2901 |
-
|
2902 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2903 |
}
|
2904 |
-
.
|
2905 |
-
|
|
|
|
|
2906 |
}
|
2907 |
-
.
|
2908 |
-
|
2909 |
-
|
|
|
2910 |
}
|
2911 |
-
.
|
2912 |
-
|
2913 |
-
|
|
|
2914 |
}
|
2915 |
-
|
2916 |
-
|
2917 |
-
|
|
|
2918 |
}
|
2919 |
.rtl.shipment_tracking_admin_settings #wpcontent {
|
2920 |
padding-right: 0;
|
2921 |
}
|
2922 |
-
.rtl.shipment_tracking_admin_settings .white-bg {
|
2923 |
-
background: #fff;
|
2924 |
-
}
|
2925 |
-
.rtl .plugin-logo {
|
2926 |
-
padding: 15px 30px 15px 0px;
|
2927 |
-
}
|
2928 |
-
.rtl .nav_doc_section {
|
2929 |
-
float: left;
|
2930 |
-
margin-left: 30px;
|
2931 |
-
}
|
2932 |
-
.rtl .doc_link{
|
2933 |
-
margin-left: 25px;
|
2934 |
-
margin-right: 0;
|
2935 |
-
}
|
2936 |
-
.rtl .nav_doc_section a.open_video_popup:after{
|
2937 |
-
margin-right: 5px;
|
2938 |
-
margin-left: 0;
|
2939 |
-
}
|
2940 |
.rtl label.tab_label.first_label{
|
2941 |
margin-right: 30px;
|
2942 |
}
|
2943 |
-
.rtl .zorem_admin_sidebar{
|
2944 |
-
padding: 25px 30px 25px 0px;
|
2945 |
-
}
|
2946 |
-
.rtl .zorem-sidebar__section li a.plugin_url{
|
2947 |
-
margin-right: 10px;
|
2948 |
-
margin-left: 0;
|
2949 |
-
}
|
2950 |
-
.rtl .multiple_checkbox .mdl-switch.is-upgraded{
|
2951 |
-
padding-right: 42px;
|
2952 |
-
margin-left: 0;
|
2953 |
-
}
|
2954 |
-
.rtl .mdl-switch__track{
|
2955 |
-
right: 0;
|
2956 |
-
left: auto;
|
2957 |
-
}
|
2958 |
-
.rtl .mdl-switch__thumb{
|
2959 |
-
right: 0;
|
2960 |
-
left: auto;
|
2961 |
-
}
|
2962 |
-
.rtl .mdl-switch__ripple-container{
|
2963 |
-
right: -14px;
|
2964 |
-
left: auto;
|
2965 |
-
}
|
2966 |
-
.rtl .mdl-switch.is-checked .mdl-switch__ripple-container {
|
2967 |
-
right: 2px;
|
2968 |
-
left: auto;
|
2969 |
-
}
|
2970 |
-
.rtl .status_filter{
|
2971 |
-
margin: 5px 0 10px 8px;
|
2972 |
-
padding-bottom: 11px;
|
2973 |
-
}
|
2974 |
.rtl #search_provider{
|
2975 |
padding-left:0;
|
2976 |
padding-right: 30px;
|
2977 |
}
|
2978 |
-
.rtl .dropdown_menu{
|
2979 |
-
padding: 0 5px 10px;
|
2980 |
-
}
|
2981 |
.rtl .provider_settings{
|
2982 |
margin-left:0;
|
2983 |
margin-right: 11px;
|
2984 |
}
|
2985 |
-
.rtl .right-div{
|
2986 |
-
margin-right: 15px;
|
2987 |
-
}
|
2988 |
-
.rtl .provider_inner{
|
2989 |
-
min-height: 110px;
|
2990 |
-
}
|
2991 |
-
.rtl .dropdown-content{
|
2992 |
-
left: 0;
|
2993 |
-
right:auto;
|
2994 |
-
top: 35px;
|
2995 |
-
}
|
2996 |
-
.rtl .dropdown-content:before{
|
2997 |
-
left: 12px;
|
2998 |
-
right:auto;
|
2999 |
-
}
|
3000 |
-
.rtl .email_status_span{
|
3001 |
-
float: left;
|
3002 |
-
}
|
3003 |
-
.rtl .ac-container .headig_label{
|
3004 |
-
padding: 15px 60px 15px 20px;
|
3005 |
-
text-align: right;
|
3006 |
-
}
|
3007 |
-
.rtl .email-icon{
|
3008 |
-
right: 15px;
|
3009 |
-
left: auto;
|
3010 |
-
}
|
3011 |
.rtl .paging.shipping_provider_paging {
|
3012 |
float: left;
|
3013 |
}
|
@@ -3017,10 +2074,6 @@ ul.csv_error_details_ul li:before{
|
|
3017 |
.rtl .ast_admin_content table.form-table.upload_csv_table tr td{
|
3018 |
text-align: right;
|
3019 |
}
|
3020 |
-
.rtl.shipment_tracking_admin_settings .mdl-progress > .progressbar{
|
3021 |
-
left: auto;
|
3022 |
-
right: 0;
|
3023 |
-
}
|
3024 |
.rtl .popupwrapper .popuprow .popup_title, .rtl .trackingpopup_wrapper .trackingpopup_row .popup_title{
|
3025 |
text-align: right;
|
3026 |
}
|
@@ -3070,24 +2123,15 @@ ul.csv_error_details_ul li:before{
|
|
3070 |
margin-right: 0;
|
3071 |
margin-left: 10px;
|
3072 |
}
|
3073 |
-
.rtl .tgl-flat:checked + .rtl .tgl-btn:after {
|
3074 |
left: 55%;
|
3075 |
}
|
3076 |
-
.rtl .tgl + .tgl-btn:after{
|
3077 |
right:0;
|
3078 |
}
|
3079 |
-
.rtl .woocommerce.zorem_admin_layout .border_0 table.form-table.settings-form-table td.tracking-info-customizer-td table td:last-child{
|
3080 |
-
text-align: left;
|
3081 |
-
}
|
3082 |
.rtl .woocommerce.zorem_admin_layout table.form-table.settings-form-table th.titledesc{
|
3083 |
padding: 20px 0 20px 20px;
|
3084 |
}
|
3085 |
-
.rtl .zorem_admin_sidebar_inner {
|
3086 |
-
padding-right: 20px;
|
3087 |
-
padding-left: 0;
|
3088 |
-
border-right: 1px solid #e0e0e0;
|
3089 |
-
border-left: 0;
|
3090 |
-
}
|
3091 |
.rtl .single_plugin{
|
3092 |
padding: 20px 0 0 20px;
|
3093 |
}
|
@@ -3111,16 +2155,41 @@ ul.csv_error_details_ul li:before{
|
|
3111 |
padding-left: 0;
|
3112 |
padding-right: 12px;
|
3113 |
}
|
3114 |
-
|
3115 |
-
|
3116 |
-
|
3117 |
-
|
3118 |
-
|
3119 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3120 |
@media screen and (min-width: 768px) and (max-width: 1269px) {
|
3121 |
-
.provider{
|
3122 |
-
width: 25%;
|
3123 |
-
}
|
3124 |
#search_provider{
|
3125 |
width: 210px;
|
3126 |
min-width: 210px;
|
@@ -3128,9 +2197,6 @@ ul.csv_error_details_ul li:before{
|
|
3128 |
.provider-thumb {
|
3129 |
height: 40px;
|
3130 |
}
|
3131 |
-
.right-div{
|
3132 |
-
width: 60%;
|
3133 |
-
}
|
3134 |
span.provider_name {
|
3135 |
font-size: 12px;
|
3136 |
}
|
@@ -3145,30 +2211,23 @@ ul.csv_error_details_ul li:before{
|
|
3145 |
.form-table.order-status-table td .send_email_label {
|
3146 |
line-height: 30px;
|
3147 |
}
|
3148 |
-
.woocommerce.zorem_admin_layout .border_0 table.form-table.settings-form-table td.tracking-info-customizer-td table td:last-child {
|
3149 |
-
width: auto;
|
3150 |
-
}
|
3151 |
}
|
3152 |
-
@media screen and (max-width: 820px) {
|
3153 |
-
.
|
3154 |
-
|
3155 |
-
margin-left: 30px;
|
3156 |
-
margin-right: 0;
|
3157 |
}
|
3158 |
-
|
3159 |
-
|
3160 |
-
.search_section {
|
3161 |
-
margin: 10px 0px 5px 0;
|
3162 |
-
float: none;
|
3163 |
}
|
3164 |
-
.
|
3165 |
-
|
3166 |
}
|
3167 |
-
|
3168 |
-
@media screen and (max-width: 750px) {
|
3169 |
-
.d_table{
|
3170 |
-
display:block;
|
3171 |
width: 100%;
|
|
|
|
|
|
|
|
|
3172 |
}
|
3173 |
}
|
3174 |
@media screen and (max-width: 768px) {
|
@@ -3177,24 +2236,10 @@ ul.csv_error_details_ul li:before{
|
|
3177 |
}
|
3178 |
.search_section .search-icon{
|
3179 |
padding: 8px 5px;
|
3180 |
-
}
|
3181 |
-
.provider_top {
|
3182 |
-
margin-bottom: 10px;
|
3183 |
-
}
|
3184 |
-
.nav_doc_section{
|
3185 |
-
float: none;
|
3186 |
-
padding: 15px 0 15px;
|
3187 |
-
margin-left: 20px;
|
3188 |
-
}
|
3189 |
.status_filter{
|
3190 |
width: auto;
|
3191 |
-
}
|
3192 |
-
.provder_table_mobile{
|
3193 |
-
display:table;
|
3194 |
-
}
|
3195 |
-
.provder_table_desktop{
|
3196 |
-
display:none;
|
3197 |
-
}
|
3198 |
table.provder_table td:nth-last-child(2) {
|
3199 |
text-align: left;
|
3200 |
}
|
@@ -3210,65 +2255,46 @@ ul.csv_error_details_ul li:before{
|
|
3210 |
width: 100%;
|
3211 |
max-width: 100%
|
3212 |
}
|
3213 |
-
|
3214 |
-
padding: 0 10px 0 0;
|
3215 |
-
}
|
3216 |
-
.shipment_tracking_admin_settings .zorem-layout__logo-panel .header-plugin-logo{
|
3217 |
-
width: 55px;
|
3218 |
-
margin-right: 5px;
|
3219 |
-
}
|
3220 |
.zorem-layout__header .zorem-layout__header-breadcrumbs{
|
3221 |
padding: 0 0 0 20px;
|
3222 |
}
|
3223 |
-
label.tab_label.first_label{
|
3224 |
-
margin-left: 20px;
|
3225 |
-
}
|
3226 |
.settings_ul .settings_radio_li .radio_section{
|
3227 |
padding: 0;
|
3228 |
margin-top: 10px;
|
3229 |
display: block;
|
3230 |
}
|
3231 |
-
.zorem-layout__logo-panel .header-plugin-logo{
|
3232 |
-
margin-right: 0;
|
3233 |
-
}
|
3234 |
-
.ast_admin_content table.form-table.upload_csv_table th{
|
3235 |
-
width: 100%;
|
3236 |
-
}
|
3237 |
-
.outer_form_table table.form-table.order-status-table tr td{
|
3238 |
-
float: left;
|
3239 |
-
}
|
3240 |
-
.outer_form_table table.form-table.order-status-table tr td:last-child {
|
3241 |
-
margin-left: 67px;
|
3242 |
-
border-left: 1px solid #e0e0e0;
|
3243 |
-
}
|
3244 |
.woocommerce.zorem_admin_layout table.form-table.order-status-table td{
|
3245 |
padding: 12px 15px !important;
|
3246 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
3247 |
.order-status-table td:last-child {
|
3248 |
text-align: unset;
|
3249 |
}
|
3250 |
.woocommerce.zorem_admin_layout table.form-table.order-status-table select{
|
3251 |
margin: 15px 0;
|
3252 |
}
|
3253 |
-
.
|
3254 |
-
|
3255 |
}
|
3256 |
-
|
3257 |
-
|
3258 |
-
.provider{
|
3259 |
-
width: 50%;
|
3260 |
}
|
3261 |
-
|
3262 |
width: 100%;
|
|
|
3263 |
}
|
3264 |
-
.
|
3265 |
-
|
|
|
|
|
|
|
3266 |
}
|
3267 |
-
}
|
3268 |
-
@media screen and (min-width: 768px) and (max-width: 1050px) {
|
3269 |
-
.provider{
|
3270 |
-
width: 33.3%;
|
3271 |
-
}
|
3272 |
}
|
3273 |
@media screen and (min-width: 1300px){
|
3274 |
content .woocommerce-progress-form-wrapper {
|
2 |
body.shipment_tracking_admin_settings{
|
3 |
background: #fafafa;
|
4 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
.zorem-layout {
|
6 |
margin: 0;
|
7 |
padding: 0;
|
35 |
color: #555d66;
|
36 |
margin: 0 2px;
|
37 |
}
|
38 |
+
.zorem-layout__header .zorem-layout__docs-panel{
|
39 |
display: flex;
|
40 |
flex-direction: row;
|
41 |
+
align-items: center;
|
42 |
right: 0;
|
43 |
height: 56px;
|
44 |
+
padding: 0 30px 0 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
+
.ast-docs-btn {
|
47 |
+
background: #fafafa;
|
48 |
+
border: 1px solid #e0e0e0;
|
49 |
+
padding: 10px 15px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
text-decoration: none;
|
51 |
+
text-transform: uppercase;
|
52 |
+
border-radius: 3px;
|
53 |
}
|
54 |
+
.ast-docs-btn span.dashicons{
|
55 |
+
vertical-align: bottom;
|
56 |
+
margin-left: 2px;
|
|
|
|
|
|
|
|
|
57 |
}
|
58 |
#woocommerce-advanced-shipment-tracking .inside {
|
59 |
padding: 0 12px 12px;
|
121 |
}
|
122 |
section.tab_section {
|
123 |
display: none;
|
124 |
+
padding: 0;
|
125 |
border-top: 1px solid #ddd;
|
126 |
}
|
127 |
section.inner_tab_section {
|
128 |
display: none;
|
129 |
+
padding: 0;
|
130 |
+
border-top: 1px solid #ddd;
|
|
|
131 |
}
|
132 |
input.tab_input,input.inner_tab_input {
|
133 |
display: none;
|
134 |
}
|
135 |
label.tab_label {
|
136 |
text-decoration: none;
|
137 |
+
padding: 10px 15px 13px;
|
138 |
font-size: 14px;
|
139 |
color: #005b9a;
|
140 |
display: inline-block;
|
141 |
+
margin-left: 0;
|
142 |
line-height: 1;
|
143 |
outline: none;
|
144 |
}
|
145 |
label.tab_label.first_label {
|
146 |
+
margin-left: 15px;
|
147 |
}
|
148 |
label.inner_tab_label {
|
149 |
text-decoration: none;
|
155 |
outline: none;
|
156 |
font-weight: 600;
|
157 |
}
|
158 |
+
.ts_notifications_outer_table label.inner_tab_label{
|
159 |
+
padding: 15px 12px 15px;
|
160 |
+
}
|
161 |
+
.ts_notifications_outer_table input.inner_tab_input:checked + label {
|
162 |
+
border-bottom: 3px solid #005b9a;
|
163 |
+
padding: 15px 12px 12px;
|
164 |
+
}
|
165 |
label.inner_tab_label.single_tab_label {
|
166 |
font-size: 17px;
|
167 |
}
|
168 |
label.tab_label:hover {
|
169 |
+
color: #000;
|
170 |
cursor: pointer;
|
171 |
}
|
172 |
input.tab_input:checked + label {
|
173 |
+
color: #000;
|
174 |
+
border-bottom: 3px solid #005b9a;
|
175 |
+
padding: 10px 15px 10px;
|
176 |
}
|
177 |
input.inner_tab_input:checked + label{
|
178 |
+
border-bottom: 3px solid #005b9a;
|
179 |
padding: 24px 12px 15px;
|
180 |
}
|
181 |
+
input.inner_tab_input:checked + label.ts_tabs_label{
|
182 |
+
border-bottom: 3px solid #59c889;
|
183 |
+
}
|
184 |
input.tab_input_1 {
|
185 |
display: none;
|
186 |
}
|
195 |
}
|
196 |
.tab_inner_container {
|
197 |
padding: 0;
|
|
|
198 |
vertical-align: top;
|
199 |
+
max-width: 930px;
|
200 |
+
margin: 0 auto;
|
201 |
+
}
|
202 |
+
.provider_settings_icon {
|
203 |
+
text-decoration: none;
|
204 |
+
margin: 5px;
|
205 |
+
line-height: 30px;
|
206 |
+
}
|
207 |
+
.provider_settings_icon span{
|
208 |
+
width: 26px;
|
209 |
+
height: 26px;
|
210 |
+
font-size: 26px;
|
211 |
+
vertical-align: middle;
|
212 |
+
}
|
213 |
+
.provider_settings .tgl-btn{
|
214 |
+
margin-left: 5px;
|
215 |
+
vertical-align: middle;
|
216 |
}
|
217 |
.addons_page_dtable{
|
218 |
max-width: 930px;
|
219 |
+
margin: 0 auto;
|
|
|
|
|
220 |
}
|
221 |
.tab_inner_container h4 {
|
222 |
margin-top: 0;
|
223 |
}
|
224 |
+
#tab1:checked ~ #content1, #tab2:checked ~ #content2, #tab3:checked ~ #content3, #tab4:checked ~ #content4, #tab5:checked ~ #content5, #tab6:checked ~ #content6, #tab7:checked ~ #content7, #tab8:checked ~ #content8, #tab9:checked ~ #content9, #tab10:checked ~ #content10,#tab_trackship_dashboard:checked ~ #content_trackship_dashboard,#tab_trackship_settings:checked ~ #content_trackship_settings,#tab_tracking_page:checked ~ #content_tracking_page,#tab_status_notifications:checked ~ #content_status_notifications,#tab_tools:checked ~ #content_tools, #tab_license:checked ~ #content_tab_license, #tab_addons:checked ~ #content_tab_addons, #tab_osm:checked ~ #content_osm, #trackship_tab:checked ~ #content_trackship_dashboard {
|
225 |
display: block !important;
|
226 |
}
|
227 |
+
#tab_email_notifications:checked ~ .shipment-status-email-section,#tab_sms_notifications:checked ~ .shipment-status-sms-section{
|
228 |
+
display: block !important;
|
229 |
}
|
|
|
230 |
.ast_admin_content {
|
231 |
width: 100%;
|
232 |
vertical-align: top;
|
233 |
border-top: 1px solid #ddd;
|
234 |
}
|
235 |
+
.zorem_admin_layout .settings_ul_submit .spinner{
|
236 |
+
display: none;
|
237 |
+
float: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
}
|
239 |
+
.spinner.active {
|
240 |
+
visibility: visible;
|
|
|
241 |
}
|
242 |
+
.zorem_admin_layout .settings_ul_submit .spinner.active{
|
|
|
|
|
243 |
display: inline-block;
|
244 |
+
vertical-align: sub;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
}
|
246 |
+
.success_msg{
|
247 |
border-left: 3px solid;
|
248 |
border-color: green;
|
249 |
background: #fff;
|
263 |
.ast_admin_content table.form-table.upload_csv_table th{
|
264 |
width: 40%;
|
265 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
.woocommerce .ast_admin_content table.form-table th label .woocommerce-help-tip{
|
267 |
margin: -4px 0 0 5px;
|
268 |
position: relative;
|
269 |
font-size: 21px;
|
270 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
|
272 |
.woocommerce .ast_admin_content table.form-table select{
|
273 |
width: 100%;
|
279 |
#wc_ast_status_label_color,#wc_ast_status_partial_shipped_label_color,#wc_ast_status_updated_tracking_label_color,#wc_ast_select_primary_color,#wc_ast_select_border_color,#wc_ast_shipped_status_label_color {
|
280 |
width: 80px;
|
281 |
}
|
|
|
|
|
|
|
282 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
.wp-core-ui .btn_green2 {
|
284 |
background: #59c889;
|
285 |
text-shadow: none;
|
290 |
height: 35px;
|
291 |
padding: 0 20px;
|
292 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
.wp-core-ui .btn_ast2{
|
294 |
background: #005B9A;
|
295 |
text-shadow: none;
|
340 |
padding: 0 20px;
|
341 |
font-size: 15px;
|
342 |
}
|
343 |
+
.launch_customizer_label{
|
344 |
+
line-height: 40px;
|
345 |
+
}
|
346 |
+
.wp-core-ui .launch_customizer_btn{
|
347 |
+
float: right;
|
348 |
+
}
|
349 |
.wp-core-ui .btn_large .dashicons{
|
350 |
vertical-align: sub;
|
351 |
margin-left: 5px;
|
368 |
text-shadow: none;
|
369 |
box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
|
370 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
.wp-core-ui .btn_ast2:hover, .wp-core-ui .btn_ast2:focus {
|
372 |
background: #005B9A;
|
373 |
border-color: rgba(0,0,0,0.05);
|
375 |
text-shadow: none;
|
376 |
box-shadow: inset 0 0 0 100px rgba(0,0,0,0.2);
|
377 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
.wp-core-ui .btn_ts_transparent:hover, .wp-core-ui .btn_ts_transparent:focus {
|
379 |
background: transparent;
|
380 |
border-color: #59c889;
|
440 |
#wc_ast_settings_form .form-table tr.multiple_checkbox_title_tr th{
|
441 |
padding-bottom: 0;
|
442 |
}
|
|
|
|
|
|
|
443 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
444 |
.tracking-content-div{
|
445 |
margin-bottom: 5px;
|
446 |
}
|
456 |
.ast-shipment-status i {
|
457 |
font-size: 18px;
|
458 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
.ast-shipment-status .shipment-icon:before{
|
460 |
content: ' ';
|
461 |
width: 16px;
|
512 |
.ast-shipment-status .icon-invalid_user_key:before{
|
513 |
background-image: url(icons/invalid-user-key-v4.png);
|
514 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
515 |
.wcast-shipment-status-list .wcast-shipment-est-delivery {
|
516 |
display: block;
|
517 |
}
|
518 |
+
|
|
|
|
|
|
|
|
|
|
|
519 |
.has_est_delivery_0 .showif_has_est_delivery_0 {
|
520 |
display: block;
|
521 |
}
|
564 |
.select2-results .select2-results__group, .select2-results .select2-results__option{
|
565 |
padding: 4px;
|
566 |
}
|
|
|
|
|
|
|
567 |
.edit_customizer_a{
|
568 |
margin-left: 10px;
|
569 |
line-height: 20px;
|
574 |
outline:none;
|
575 |
box-shadow:none;
|
576 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
577 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #wpcontent{
|
578 |
padding-left: 0;
|
579 |
}
|
580 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #wpbody-content{
|
581 |
padding-bottom: 40px;
|
582 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
583 |
.multiple_label{
|
584 |
font-weight:400;
|
585 |
line-height: 23px;
|
586 |
}
|
587 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
588 |
@media screen and (max-width: 650px) {
|
589 |
label.tab_label:before {
|
590 |
margin: 0;
|
615 |
}
|
616 |
table.wp-list-table img.provider-thumb{
|
617 |
margin: 1px 0 1px 0;
|
618 |
+
height: 45px;
|
619 |
+
vertical-align: middle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
620 |
}
|
621 |
span.provider_name {
|
622 |
font-weight: 500;
|
623 |
font-size: 14px;
|
624 |
+
margin-bottom: 5px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
625 |
display: block;
|
626 |
}
|
627 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
628 |
#search_provider{
|
629 |
+
width: 225px;
|
630 |
+
min-width: 225px;
|
631 |
font-size: 12px;
|
632 |
+
border: 1px solid #e0e0e0;
|
633 |
+
padding: 0 0 0 45px;
|
|
|
634 |
line-height: 2;
|
635 |
+
min-height: 35px;
|
636 |
+
border-radius: 0;
|
637 |
}
|
638 |
.search_section .search-icon{
|
639 |
position: absolute;
|
640 |
+
padding: 8px 8px 8px 12px;
|
641 |
color: #005b9a;
|
642 |
+
border-right: 1px solid #e0e0e0;
|
643 |
}
|
|
|
644 |
.provider_top:after{
|
645 |
content:'';
|
646 |
+
clear:both;
|
647 |
+
display:block;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
}
|
649 |
+
.provider_top {
|
650 |
+
border-bottom: 1px solid #e0e0e0;
|
651 |
+
padding: 20px 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
652 |
}
|
653 |
+
.search_section{
|
654 |
+
float: left;
|
|
|
655 |
}
|
656 |
+
.provider_settings{
|
657 |
+
float: right;
|
658 |
}
|
|
|
659 |
.popupwrapper {
|
660 |
position: fixed;
|
661 |
top: 0;
|
667 |
height: 100%;
|
668 |
text-align: center;
|
669 |
}
|
670 |
+
.popupwrapper.add_provider_popup .popuprow,.popupwrapper.custom_provider .popuprow{
|
671 |
+
max-width: 600px;
|
672 |
+
}
|
673 |
.popupwrapper.ts_video_popup{
|
674 |
background: rgb(250 250 250 / 0.8);
|
675 |
}
|
705 |
padding: 0;
|
706 |
position: relative;
|
707 |
z-index: 10;
|
708 |
+
border-radius: 3px;
|
709 |
width: 97%;
|
710 |
width: calc(100% - 5px);
|
711 |
max-height: 90%;
|
712 |
overflow-y: overlay;
|
713 |
text-align: left;
|
714 |
+
border: 1px solid #e0e0e0;
|
715 |
}
|
716 |
.uninstall_popup .popuprow{
|
717 |
max-width: 520px;
|
741 |
.trackingpopup_row {
|
742 |
display: inline-block;
|
743 |
vertical-align: middle;
|
744 |
+
max-width: 600px;
|
745 |
text-align:left;
|
746 |
background: #fff;
|
747 |
border: 1px solid #e0e0e0;
|
756 |
}
|
757 |
.trackingpopup_row .popup_header{
|
758 |
border-bottom: 1px solid #e0e0e0;
|
759 |
+
padding: 15px 30px;
|
760 |
}
|
761 |
.popuprow .popup_header {
|
762 |
border-bottom: 1px solid #e0e0e0;
|
791 |
padding: 10px 30px;
|
792 |
}
|
793 |
.popuprow .popup_body{
|
794 |
+
padding: 20px 25px;
|
795 |
}
|
796 |
.popup_body .sync_message{
|
797 |
margin-top: 0;
|
838 |
vertical-align: -webkit-baseline-middle;
|
839 |
}
|
840 |
.popupwrapper input[type=text]{
|
841 |
+
line-height: 24px;
|
842 |
+
color: #424242;
|
843 |
+
width: 100%;
|
844 |
+
border-color: #e0e0e0;
|
845 |
+
border-radius: 3px;
|
846 |
+
padding: 5px 10px;
|
847 |
}
|
848 |
.trackingpopup_wrapper input[type=text]{
|
849 |
line-height: 24px;
|
850 |
+
color: #424242;
|
851 |
+
width: 90%;
|
852 |
+
margin: 5px 0 10px;
|
853 |
+
border-radius: 3px;
|
854 |
+
border-color: #e0e0e0;
|
855 |
+
padding: 5px 10px;
|
856 |
+
}
|
857 |
+
|
858 |
+
.popupwrapper .form-field{
|
859 |
+
margin-bottom: 10px;
|
860 |
+
}
|
861 |
+
.popupwrapper .form-field.form-50{
|
862 |
+
width: 47%;
|
863 |
+
display: inline-block;
|
864 |
+
margin-right:25px;
|
865 |
+
}
|
866 |
+
.popupwrapper.default_provider .form-field.form-50{
|
867 |
+
width: 100%;
|
868 |
+
}
|
869 |
+
.popupwrapper .form-field.form-50.margin-0{
|
870 |
+
margin-right: 0;
|
871 |
+
}
|
872 |
+
|
873 |
+
.popupwrapper .form-field label{
|
874 |
+
margin-bottom: 5px;
|
875 |
+
display: block;
|
876 |
}
|
877 |
.popupwrapper input[type=text].image_path{
|
878 |
width: calc(100% - 71px);
|
879 |
}
|
880 |
+
.wp-core-ui .popupwrapper .upload_image_button{
|
881 |
+
padding: 3px 10px;
|
882 |
+
border-color: #e0e0e0;
|
883 |
+
background: #fafafa;
|
884 |
+
color: #005b9a;
|
885 |
+
}
|
886 |
+
p.form-field.form-50 {
|
887 |
+
width: 49%;
|
888 |
+
display: inline-block;
|
889 |
+
}
|
890 |
.trackingpopup_wrapper input[type=text].image_path{
|
891 |
width: 100%;
|
892 |
}
|
893 |
+
.popupwrapper select,.popupwrapper .select2{
|
894 |
line-height: 24px;
|
895 |
+
color: #424242;
|
896 |
+
width: 100%;
|
897 |
max-width: 100%;
|
898 |
+
border-color: #e0e0e0;
|
899 |
+
border-radius: 3px;
|
900 |
+
padding: 5px 10px;
|
901 |
}
|
902 |
.popupwrapper.uninstall_popup select{
|
903 |
width: auto;
|
908 |
color: #0d0d0d;
|
909 |
width: 100%;
|
910 |
max-width: 100%;
|
911 |
+
margin: 5px 0 10px;
|
912 |
+
height: 30px;
|
913 |
+
}
|
914 |
+
.trackingpopup_wrapper hr{
|
915 |
+
margin: 5px -30px;
|
916 |
+
}
|
917 |
+
.trackingpopup_wrapper .select2-container .select2-selection--single {
|
918 |
+
border-color: #e0e0e0;
|
919 |
+
border-radius: 3px;
|
920 |
+
color: #424242;
|
921 |
+
padding: 3px 10px;
|
922 |
+
height: 36px;
|
923 |
}
|
924 |
.popupwrapper .popuprow .popup_title,.trackingpopup_wrapper .trackingpopup_row .popup_title{
|
925 |
color: #005B9A;
|
940 |
a.reset_default_provider {
|
941 |
margin-left: 10px;
|
942 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
943 |
.change_order_to_shipped_field ul{
|
944 |
+
margin: 5px 0 0 10px;
|
945 |
+
display: inline-block;
|
946 |
+
}
|
947 |
+
.postbox .change_order_to_shipped_field ul{
|
948 |
+
margin: 0;
|
949 |
}
|
950 |
.change_order_to_shipped_field ul li {
|
951 |
display: inline-block;
|
952 |
+
margin: 0 5px 8px;
|
|
|
|
|
|
|
953 |
}
|
954 |
.provider .edit_provider,.provider .remove{
|
955 |
display:none;
|
965 |
text-decoration: none;
|
966 |
color: #444;
|
967 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
968 |
.disable_label span {
|
969 |
color: #999;
|
970 |
}
|
971 |
.wp-core-ui .button-primary.close_synch_popup{
|
972 |
display:none;
|
973 |
}
|
|
|
|
|
|
|
|
|
|
|
974 |
.disabled_link{
|
975 |
pointer-events: none;
|
976 |
cursor: default;
|
980 |
margin:0;
|
981 |
line-height: 20px;
|
982 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
983 |
.woocommerce.zorem_admin_layout table.form-table{
|
984 |
border: 0;
|
985 |
margin-top: 0;
|
991 |
.woocommerce.zorem_admin_layout table.form-table.heading-table{
|
992 |
margin: 0;
|
993 |
border: 0;
|
994 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
995 |
.woocommerce.zorem_admin_layout table.form-table.heading-table td{
|
996 |
+
padding: 12px 25px;
|
997 |
+
border-bottom: 1px solid #e0e0e0;
|
998 |
+
height: 40px;
|
999 |
}
|
1000 |
.woocommerce.zorem_admin_layout .border_0 table.form-table.heading-table tr{
|
1001 |
border-bottom: 1px solid #e0e0e0;
|
1073 |
.woocommerce.zorem_admin_layout table.form-table.order-status-table td{
|
1074 |
padding: 15px;
|
1075 |
}
|
|
|
|
|
|
|
1076 |
.woocommerce.zorem_admin_layout table.form-table.order-status-table td:first-child{
|
1077 |
padding:20px 15px 20px 15px;
|
1078 |
width: 37px;
|
1079 |
}
|
|
|
1080 |
.woocommerce.zorem_admin_layout table.form-table th label{
|
1081 |
font-weight: 600;
|
1082 |
color: #444;
|
1089 |
vertical-align: bottom;
|
1090 |
}
|
1091 |
span.multiple_checkbox {
|
1092 |
+
display: inline-block;
|
1093 |
+
line-height: 30px;
|
1094 |
+
width: 49%;
|
1095 |
}
|
1096 |
.woocommerce.zorem_admin_layout table.form-table p.inline_checkbox{
|
1097 |
line-height: 30px;
|
1101 |
font-weight: 400;
|
1102 |
margin-top: 5px;
|
1103 |
}
|
1104 |
+
.settings_ul_submit{
|
1105 |
+
text-align: right;
|
1106 |
+
}
|
1107 |
.settings_ul{
|
1108 |
+
margin: 0;
|
|
|
1109 |
}
|
1110 |
+
.settings_ul li> input[type=checkbox] {
|
1111 |
+
vertical-align: bottom;
|
1112 |
}
|
1113 |
.settings_ul li{
|
1114 |
+
padding: 15px 25px;
|
1115 |
+
border-bottom: 1px solid #e0e0e0;
|
1116 |
margin: 0;
|
1117 |
min-height: 25px;
|
1118 |
+
position: relative;
|
1119 |
}
|
1120 |
.settings_ul li:last-child {
|
1121 |
border-bottom: 0;
|
1122 |
}
|
1123 |
+
.settings_ul .settings_radio_li>label {
|
1124 |
+
width: 40%;
|
1125 |
+
display: inline-block;
|
1126 |
+
}
|
1127 |
.settings_ul .settings_radio_li .radio_section{
|
1128 |
display: inline-block;
|
1129 |
padding: 0 10px;
|
1130 |
}
|
1131 |
+
.settings_ul fieldset {
|
1132 |
+
display: inline-block;
|
1133 |
+
vertical-align: middle;
|
1134 |
+
}
|
1135 |
+
.settings_ul fieldset input[type=text]{
|
1136 |
+
min-width: 500px;
|
1137 |
+
}
|
1138 |
.multiple_checkbox_parent {
|
1139 |
display: inline-block;
|
1140 |
+
vertical-align: top;
|
1141 |
+
width: 58%;
|
1142 |
+
}
|
1143 |
+
.setting_ul_tgl_checkbox_label{
|
1144 |
+
margin-left: 10px;
|
1145 |
+
}
|
1146 |
+
.multiple_checkbox_label {
|
1147 |
+
display: inline-block;
|
1148 |
+
width: 40%;
|
1149 |
+
margin-right: 10px;
|
1150 |
}
|
1151 |
+
.multiple_checkbox_description{
|
1152 |
+
display: block;
|
1153 |
+
margin-top: 5px;
|
1154 |
+
max-width: 250px;
|
1155 |
}
|
1156 |
|
1157 |
.updated_details {
|
1183 |
min-width: 90px;
|
1184 |
line-height: 20px;
|
1185 |
}
|
|
|
|
|
|
|
1186 |
.add_tracking_number_form .form-field{
|
1187 |
margin: 0;
|
1188 |
text-align:left;
|
1189 |
}
|
1190 |
+
.add_tracking_number_form .form-field span {
|
1191 |
+
vertical-align: middle;
|
1192 |
+
}
|
1193 |
.add_tracking_number_form input[type=checkbox]{
|
1194 |
margin: 0px 4px 0 0px;
|
1195 |
+
vertical-align: text-bottom;
|
1196 |
}
|
1197 |
.d_table{
|
1198 |
display:table;
|
1204 |
.zorem_admin_layout h3{
|
1205 |
margin: 1em 0;
|
1206 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1207 |
.ast_admin_content div.submit .spinner{
|
1208 |
display: none;
|
1209 |
float: none;
|
1212 |
.ast_admin_content div.submit .spinner.active{
|
1213 |
display: inline-block;
|
1214 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1215 |
.videoWrapper {
|
1216 |
position: relative;
|
1217 |
padding-bottom: 56.25%; /* 16:9 */
|
1237 |
cursor: pointer;
|
1238 |
}
|
1239 |
span.dashicons.dashicons-trash.remove {
|
1240 |
+
cursor: pointer;
|
1241 |
+
text-decoration: none;
|
1242 |
+
height: 17px;
|
1243 |
+
font-size: 15px;
|
1244 |
+
vertical-align: middle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1245 |
}
|
1246 |
|
1247 |
/*** Dashboard Widget CSS ***/
|
1298 |
overflow-y: auto;
|
1299 |
}
|
1300 |
/**** -------- ****/
|
1301 |
+
.woocommerce_page_woocommerce-advanced-shipment-tracking .zorem-layout .woocommerce-help-tip{
|
1302 |
color: #005B9A;
|
1303 |
+
font-size: 20px;
|
1304 |
+
vertical-align: top;
|
1305 |
}
|
1306 |
.woocommerce_page_woocommerce-advanced-shipment-tracking #tiptip_content{
|
1307 |
background:#005B9A;
|
1315 |
border-bottom-color: #005B9A;
|
1316 |
}
|
1317 |
|
|
|
|
|
|
|
1318 |
#trackship_dashboard_widget .inside h3{
|
1319 |
font-weight:600;
|
1320 |
}
|
1322 |
padding: 0;
|
1323 |
margin: 0;
|
1324 |
}
|
1325 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1326 |
#woocommerce-advanced-shipment-tracking.postbox{
|
1327 |
background: #f9f9f9;
|
1328 |
}
|
1345 |
pointer-events: auto;
|
1346 |
}
|
1347 |
.order-status-table td:last-child{
|
1348 |
+
text-align:left;
|
1349 |
}
|
1350 |
.order-status-table .order-label{
|
1351 |
display: -webkit-inline-box;
|
1369 |
display: inline-block;
|
1370 |
vertical-align: middle;
|
1371 |
}
|
1372 |
+
.form-table.order-status-table td .send_email_label {
|
1373 |
+
margin: 0 5px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1374 |
}
|
1375 |
+
.form-table.order-status-table td a.settings_edit {
|
1376 |
+
background: #fafafa;
|
1377 |
+
color: #005b9a;
|
1378 |
+
border: 1px solid #005b9a;
|
1379 |
+
padding: 5px 10px 7px;
|
1380 |
+
text-decoration: none;
|
1381 |
+
border-radius: 4px;
|
1382 |
}
|
1383 |
|
1384 |
.ast_radio_label {
|
1392 |
border: 1px solid #e0e0e0;
|
1393 |
margin-top: 25px;
|
1394 |
border-radius: 3px;
|
1395 |
+
background: #fff;
|
1396 |
}
|
1397 |
#wc_ast_upload_csv_form .outer_form_table{
|
1398 |
margin-top: 20px;
|
1422 |
.provider_list .pagination>li>a, .provider_list .pagination>li>span {
|
1423 |
position: relative;
|
1424 |
float: left;
|
1425 |
+
padding: 8px 12px;
|
1426 |
margin-left: -1px;
|
1427 |
line-height: 1.42857143;
|
1428 |
+
color: #005b9a;
|
1429 |
text-decoration: none;
|
1430 |
+
background-color: #f5f5f5;
|
1431 |
+
border: 1px solid #e0e0e0;
|
1432 |
+
border-radius: 3px;
|
1433 |
cursor: pointer;
|
1434 |
}
|
1435 |
.provider_list .pagination>.active>a, .provider_list .pagination>.active>a:focus, .provider_list .pagination>.active>a:hover, .provider_list .pagination>.active>span, .provider_list .pagination>.active>span:focus, .provider_list .pagination>.active>span:hover {
|
1436 |
z-index: 2;
|
1437 |
+
color: #424242;
|
1438 |
cursor: default;
|
1439 |
+
background-color: transparent;
|
|
|
1440 |
}
|
1441 |
table.provder_table{
|
1442 |
+
border: 0;
|
1443 |
border-bottom: 0;
|
1444 |
box-shadow: none;
|
1445 |
+
border-collapse: separate;
|
1446 |
+
border-spacing: 0 8px;
|
1447 |
+
background: transparent;
|
1448 |
}
|
1449 |
table.provder_table thead{
|
1450 |
+
display: none;
|
1451 |
+
}
|
1452 |
+
table.provder_table tr {
|
1453 |
+
background: #fff;
|
1454 |
}
|
1455 |
table.provder_table tbody tr:hover{
|
1456 |
background: #f9f9f9;
|
1465 |
border-right: 0;
|
1466 |
}
|
1467 |
table.provder_table td{
|
1468 |
+
vertical-align: middle;
|
1469 |
+
padding: 10px;
|
1470 |
+
border-top: 1px solid #e0e0e0;
|
1471 |
+
border-bottom: 1px solid #e0e0e0;
|
1472 |
+
border-radius: 3px;
|
1473 |
+
}
|
1474 |
+
table.provder_table tr td:nth-last-child(2) span.dashicons {
|
1475 |
+
font-size: 17px;
|
1476 |
+
width: 17px;
|
1477 |
+
height: 17px;
|
1478 |
+
margin-right: 5px;
|
1479 |
}
|
1480 |
+
table.provder_table tr td:nth-last-child(2) span.dashicons.dashicons-yes-alt{
|
1481 |
+
color: #59c889;
|
1482 |
+
}
|
1483 |
+
table td.provider_trackship_td span{
|
1484 |
+
vertical-align: middle;
|
1485 |
}
|
1486 |
table.provder_table td:first-child{
|
1487 |
width: 30px;
|
1488 |
+
border-left: 1px solid #e0e0e0;
|
1489 |
}
|
1490 |
+
table.provder_table td:last-child{
|
1491 |
+
border-right: 1px solid #e0e0e0;
|
1492 |
+
width: 40px;
|
1493 |
}
|
1494 |
+
table.provder_table td:nth-last-child(2){
|
1495 |
+
width: 80px;
|
1496 |
}
|
1497 |
+
|
1498 |
+
table.provder_table .provider_actions_btn{
|
|
|
1499 |
color: #005b9a;
|
1500 |
+
font-size: 12px;
|
1501 |
+
text-decoration: underline;
|
1502 |
+
cursor: pointer;
|
1503 |
+
margin: 0 5px;
|
|
|
|
|
1504 |
}
|
1505 |
.provider_table_hc {
|
1506 |
+
padding: 10px 0 2px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1507 |
}
|
1508 |
.shipping_provider_counter {
|
1509 |
display: inline-block;
|
1510 |
line-height: 32px;
|
1511 |
}
|
1512 |
+
.paging.shipping_provider_paging{
|
1513 |
+
float: right;
|
1514 |
}
|
1515 |
.shipping_provider_paging::after {
|
1516 |
content: "";
|
1562 |
margin: 25px 10px;
|
1563 |
max-width: 100%;
|
1564 |
}
|
1565 |
+
.bulk_upload_documentation_ul{
|
1566 |
+
text-align: left;
|
1567 |
}
|
1568 |
.bulk_upload_documentation_ul li {
|
1569 |
+
padding: 0 10px 0 0;
|
1570 |
+
display: inline-block;
|
1571 |
+
color: #005b9a;
|
1572 |
}
|
1573 |
.woocommerce.zorem_admin_layout table.form-table td.bulk_upload_status_td {
|
1574 |
text-align: center;
|
1612 |
.woocommerce_page_woocommerce-advanced-shipment-tracking .woocommerce-help-tip.dashicons{
|
1613 |
font-size: 20px;
|
1614 |
}
|
1615 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
1616 |
.open_tracking_details{
|
1617 |
cursor:pointer;
|
1618 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1619 |
|
1620 |
+
|
1621 |
+
|
1622 |
img.zorem_logo {
|
1623 |
width: 150px;
|
1624 |
margin-top: 20px;
|
1659 |
margin: 0 4% 0 0;
|
1660 |
vertical-align: top;
|
1661 |
}
|
1662 |
+
.plugins_section.free_plugin_section .paid_plugin_image{
|
1663 |
+
text-align: center;
|
1664 |
+
margin: 0 -15px;
|
1665 |
+
border-bottom: 1px solid #e0e0e0;
|
1666 |
+
padding: 0 0 15px;
|
1667 |
+
}
|
1668 |
+
.plugins_section.free_plugin_section .paid_plugin_image img{
|
1669 |
+
max-width: 100px;
|
1670 |
+
}
|
1671 |
.plugins_section.free_plugin_section .plugin_image img{
|
1672 |
width: 100%;
|
1673 |
}
|
1695 |
background: #fff;
|
1696 |
padding: 15px;
|
1697 |
}
|
1698 |
+
.zorem_plugin_section {
|
1699 |
+
border: 1px solid #e0e0e0;
|
1700 |
+
margin-top: 20px;
|
1701 |
+
background: #fff;
|
1702 |
+
}
|
1703 |
+
.addons_page_header{
|
1704 |
+
padding: 20px;
|
1705 |
+
border-bottom: 1px solid #e0e0e0;
|
1706 |
+
}
|
1707 |
+
.addons_page_header p{
|
1708 |
+
margin-bottom: 0;
|
1709 |
+
}
|
1710 |
.addons_page_title{
|
1711 |
color: #333333;
|
1712 |
+
margin: 0;
|
1713 |
+
font-size: 20px;
|
1714 |
+
}
|
1715 |
+
.zorem_plugin_container {
|
1716 |
+
display: flex;
|
1717 |
+
flex-wrap: wrap;
|
1718 |
+
}
|
1719 |
+
.zorem_single_plugin {
|
1720 |
+
width: 50%;
|
1721 |
+
max-width: 50%;
|
1722 |
+
flex-grow: 1;
|
1723 |
+
padding: 20px;
|
1724 |
+
box-sizing: border-box;
|
1725 |
+
border-bottom: 1px solid #e0e0e0;
|
1726 |
+
}
|
1727 |
+
.zorem_single_plugin:nth-child(odd) {
|
1728 |
+
border-right: 1px solid #e0e0e0;
|
1729 |
+
}
|
1730 |
+
.zorem_single_plugin:nth-last-child(-n+2) {
|
1731 |
+
border-bottom: 0;
|
1732 |
+
}
|
1733 |
+
.zorem_single_plugin .plugin_image {
|
1734 |
+
max-width: 128px;
|
1735 |
+
display: inline-block;
|
1736 |
+
margin: 0 4% 0 0;
|
1737 |
+
vertical-align: top;
|
1738 |
+
}
|
1739 |
+
.zorem_single_plugin .plugin_image img{
|
1740 |
+
width: 100%;
|
1741 |
+
}
|
1742 |
+
.zorem_single_plugin .plugin_description {
|
1743 |
+
width: -webkit-calc(95% - 130px);
|
1744 |
+
width: calc(95% - 130px);
|
1745 |
+
margin: auto;
|
1746 |
+
vertical-align: top;
|
1747 |
+
display: -webkit-inline-box;
|
1748 |
+
-webkit-box-orient: vertical;
|
1749 |
+
}
|
1750 |
+
.zorem_single_plugin .plugin_description h3 {
|
1751 |
+
margin: 0;
|
1752 |
+
}
|
1753 |
+
.zorem_single_plugin .plugin_description p {
|
1754 |
+
display: -webkit-inline-box;
|
1755 |
+
-webkit-line-clamp: 4;
|
1756 |
+
-webkit-box-orient: vertical;
|
1757 |
+
overflow: hidden;
|
1758 |
+
text-overflow: ellipsis;
|
1759 |
}
|
1760 |
.addons_title_divider{
|
1761 |
background-color: #005B9A;
|
1765 |
width: 100%;
|
1766 |
max-width: 30px;
|
1767 |
}
|
1768 |
+
|
|
|
|
|
|
|
|
|
1769 |
.zorem_admin_layout .csv_heading_section{
|
1770 |
text-align:left;
|
1771 |
margin-bottom: 25px;
|
1772 |
}
|
|
|
|
|
|
|
1773 |
.border-bottom-1{
|
1774 |
border-bottom:1px solid #eee;
|
1775 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1776 |
|
1777 |
/** Toggle CSS **/
|
1778 |
+
input[type=checkbox].ast-tgl {
|
1779 |
display: none;
|
1780 |
}
|
1781 |
+
.ast-tgl, .ast-tgl:after, .ast-tgl:before, .ast-tgl *, .ast-tgl *:after, .ast-tgl *:before, .ast-tgl + .ast-tgl-btn {
|
1782 |
box-sizing: border-box;
|
1783 |
}
|
1784 |
+
.ast-tgl::-moz-selection, .ast-tgl:after::-moz-selection, .ast-tgl:before::-moz-selection, .ast-tgl *::-moz-selection, .ast-tgl *:after::-moz-selection, .ast-tgl *:before::-moz-selection, .ast-tgl + .ast-tgl-btn::-moz-selection {
|
1785 |
background: none;
|
1786 |
}
|
1787 |
+
.ast-tgl::selection, .ast-tgl:after::selection, .ast-tgl:before::selection, .ast-tgl *::selection, .ast-tgl *:after::selection, .ast-tgl *:before::selection, .ast-tgl + .ast-tgl-btn::selection {
|
1788 |
background: none;
|
1789 |
}
|
1790 |
+
.ast-tgl + .ast-tgl-btn {
|
1791 |
outline: 0;
|
1792 |
display: inline-block;
|
1793 |
width: 36px;
|
1799 |
-ms-user-select: none;
|
1800 |
user-select: none;
|
1801 |
}
|
1802 |
+
.ast-tgl + .ast-tgl-btn:after, .ast-tgl + .ast-tgl-btn:before {
|
1803 |
position: relative;
|
1804 |
display: block;
|
1805 |
content: "";
|
1806 |
width: 40%;
|
1807 |
height: 100%;
|
1808 |
}
|
1809 |
+
.ast-tgl + .ast-tgl-btn:after {
|
1810 |
left: 0;
|
1811 |
}
|
1812 |
+
.ast-tgl + .ast-tgl-btn:before {
|
1813 |
display: none;
|
1814 |
}
|
1815 |
+
.ast-tgl:checked + .ast-tgl-btn:after {
|
1816 |
left: 50%;
|
1817 |
}
|
1818 |
+
.ast-tgl-flat + .ast-tgl-btn {
|
1819 |
padding: 2px;
|
1820 |
-webkit-transition: all .3s ease;
|
1821 |
transition: all .3s ease;
|
1823 |
border: 1px solid #ccc;
|
1824 |
border-radius: 2em;
|
1825 |
}
|
1826 |
+
.ast-tgl-flat + .ast-tgl-btn:after {
|
1827 |
-webkit-transition: all .2s ease;
|
1828 |
transition: all .2s ease;
|
1829 |
background: #f2f2f2;
|
1830 |
content: "";
|
1831 |
border-radius: 1em;
|
1832 |
}
|
1833 |
+
.ast-tgl-flat:checked + .ast-tgl-btn {
|
1834 |
border: 1px solid #ccc;
|
1835 |
background: #74C2E1;
|
1836 |
}
|
1837 |
+
.ast-tgl-flat:checked + .ast-tgl-btn:after {
|
1838 |
left: 55%;
|
1839 |
background: #005B9A;
|
1840 |
}
|
1952 |
.ast_admin_content .ast-license-form div.submit .button-primary{
|
1953 |
vertical-align: middle;
|
1954 |
}
|
1955 |
+
.tab_inner_container.center{
|
1956 |
max-width: 930px;
|
1957 |
+
margin: 0 auto;
|
1958 |
+
display: block;
|
|
|
|
|
1959 |
}
|
1960 |
.woocommerce.zorem_admin_layout .border_0 table.form-table.settings-form-table .order-status-table td{
|
1961 |
border: 0;
|
1998 |
margin-left: 10px;
|
1999 |
}
|
2000 |
.popupwrapper input[type=text].api_provider_name{
|
2001 |
+
margin-bottom: 5px;
|
2002 |
}
|
2003 |
+
.woocommerce_page_woocommerce-advanced-shipment-tracking .popupwrapper .add_more_api_provider{
|
2004 |
+
vertical-align: text-top;
|
2005 |
+
cursor: pointer;
|
2006 |
+
color: #005b9a;
|
2007 |
+
font-size: 25px;
|
2008 |
+
height: 25px;
|
2009 |
+
width: 25px;
|
2010 |
}
|
2011 |
.popupwrapper .remove_more_api_provider {
|
2012 |
+
vertical-align: middle;
|
2013 |
cursor: pointer;
|
2014 |
margin-left: 3px;
|
2015 |
color: red;
|
2016 |
+
font-size: 25px;
|
2017 |
+
height: 25px;
|
2018 |
+
width: 25px;
|
2019 |
+
}
|
2020 |
+
.status_shipped_label{
|
2021 |
+
text-align:left;
|
2022 |
}
|
2023 |
|
2024 |
+
.ast-row {
|
2025 |
+
-js-display: flex;
|
2026 |
+
display: -ms-flexbox;
|
2027 |
+
display: flex;
|
2028 |
+
-ms-flex-flow: row wrap;
|
2029 |
+
flex-flow: row wrap;
|
2030 |
+
padding: 0 15px;
|
2031 |
+
align-items: center;
|
2032 |
+
justify-content: center;
|
2033 |
}
|
2034 |
+
.as-col-4 {
|
2035 |
+
max-width: 33%;
|
2036 |
+
-ms-flex-preferred-size: 33%;
|
2037 |
+
flex-basis: 33%;
|
2038 |
}
|
2039 |
+
.as-col-6 {
|
2040 |
+
max-width: 50%;
|
2041 |
+
-ms-flex-preferred-size: 50%;
|
2042 |
+
flex-basis: 50%;
|
2043 |
}
|
2044 |
+
.as-col-8 {
|
2045 |
+
max-width: 66%;
|
2046 |
+
-ms-flex-preferred-size: 66%;
|
2047 |
+
flex-basis: 66%;
|
2048 |
}
|
2049 |
+
|
2050 |
+
/*** RTL CSS ***/
|
2051 |
+
.rtl .zorem-layout__header .zorem-layout__header-breadcrumbs{
|
2052 |
+
padding: 0 30px 0 0;
|
2053 |
}
|
2054 |
.rtl.shipment_tracking_admin_settings #wpcontent {
|
2055 |
padding-right: 0;
|
2056 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2057 |
.rtl label.tab_label.first_label{
|
2058 |
margin-right: 30px;
|
2059 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2060 |
.rtl #search_provider{
|
2061 |
padding-left:0;
|
2062 |
padding-right: 30px;
|
2063 |
}
|
|
|
|
|
|
|
2064 |
.rtl .provider_settings{
|
2065 |
margin-left:0;
|
2066 |
margin-right: 11px;
|
2067 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2068 |
.rtl .paging.shipping_provider_paging {
|
2069 |
float: left;
|
2070 |
}
|
2074 |
.rtl .ast_admin_content table.form-table.upload_csv_table tr td{
|
2075 |
text-align: right;
|
2076 |
}
|
|
|
|
|
|
|
|
|
2077 |
.rtl .popupwrapper .popuprow .popup_title, .rtl .trackingpopup_wrapper .trackingpopup_row .popup_title{
|
2078 |
text-align: right;
|
2079 |
}
|
2123 |
margin-right: 0;
|
2124 |
margin-left: 10px;
|
2125 |
}
|
2126 |
+
.rtl .ast-tgl-flat:checked + .rtl .ast-tgl-btn:after {
|
2127 |
left: 55%;
|
2128 |
}
|
2129 |
+
.rtl .ast-tgl + .ast-tgl-btn:after{
|
2130 |
right:0;
|
2131 |
}
|
|
|
|
|
|
|
2132 |
.rtl .woocommerce.zorem_admin_layout table.form-table.settings-form-table th.titledesc{
|
2133 |
padding: 20px 0 20px 20px;
|
2134 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2135 |
.rtl .single_plugin{
|
2136 |
padding: 20px 0 0 20px;
|
2137 |
}
|
2155 |
padding-left: 0;
|
2156 |
padding-right: 12px;
|
2157 |
}
|
2158 |
+
.rtl .settings_ul_submit {
|
2159 |
+
text-align: left;
|
2160 |
+
}
|
2161 |
+
.rtl.wp-core-ui .launch_customizer_btn {
|
2162 |
+
float: left;
|
2163 |
}
|
2164 |
+
.rtl .status_shipped_label{
|
2165 |
+
text-align:right !important;
|
2166 |
+
}
|
2167 |
+
.rtl .wp-core-ui .launch_customizer_btn{
|
2168 |
+
float: left;
|
2169 |
+
}
|
2170 |
+
.rtl table.provder_table td:first-child{
|
2171 |
+
border-right: 1px solid #e0e0e0;
|
2172 |
+
border-left: 0;
|
2173 |
+
}
|
2174 |
+
.rtl table.provder_table td:last-child{
|
2175 |
+
border-right: 0;
|
2176 |
+
border-left: 1px solid #e0e0e0;
|
2177 |
+
}
|
2178 |
+
.rtl .zorem_single_plugin:nth-child(odd) {
|
2179 |
+
border-right: 0;
|
2180 |
+
border-left: 1px solid #e0e0e0;
|
2181 |
+
}
|
2182 |
+
.rtl .zorem_single_plugin .plugin_image{
|
2183 |
+
margin: 0 0 0 4%;
|
2184 |
+
}
|
2185 |
+
.rtl .zorem-layout__header .zorem-layout__docs-panel{
|
2186 |
+
padding: 0 0 0 30px;
|
2187 |
+
}
|
2188 |
+
.rtl .order-status-table td:last-child{
|
2189 |
+
text-align:right;
|
2190 |
+
}
|
2191 |
+
|
2192 |
@media screen and (min-width: 768px) and (max-width: 1269px) {
|
|
|
|
|
|
|
2193 |
#search_provider{
|
2194 |
width: 210px;
|
2195 |
min-width: 210px;
|
2197 |
.provider-thumb {
|
2198 |
height: 40px;
|
2199 |
}
|
|
|
|
|
|
|
2200 |
span.provider_name {
|
2201 |
font-size: 12px;
|
2202 |
}
|
2211 |
.form-table.order-status-table td .send_email_label {
|
2212 |
line-height: 30px;
|
2213 |
}
|
|
|
|
|
|
|
2214 |
}
|
2215 |
+
@media screen and (max-width: 820px) {
|
2216 |
+
.woocommerce.zorem_admin_layout table.form-table.heading-table td{
|
2217 |
+
display: table-cell;
|
|
|
|
|
2218 |
}
|
2219 |
+
.multiple_checkbox_label{
|
2220 |
+
width: 100%;
|
|
|
|
|
|
|
2221 |
}
|
2222 |
+
.multiple_checkbox_description{
|
2223 |
+
max-width: 100%;
|
2224 |
}
|
2225 |
+
.multiple_checkbox_parent{
|
|
|
|
|
|
|
2226 |
width: 100%;
|
2227 |
+
margin-top: 10px;
|
2228 |
+
}
|
2229 |
+
.wp-core-ui .launch_customizer_btn {
|
2230 |
+
float: none;
|
2231 |
}
|
2232 |
}
|
2233 |
@media screen and (max-width: 768px) {
|
2236 |
}
|
2237 |
.search_section .search-icon{
|
2238 |
padding: 8px 5px;
|
2239 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2240 |
.status_filter{
|
2241 |
width: auto;
|
2242 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2243 |
table.provder_table td:nth-last-child(2) {
|
2244 |
text-align: left;
|
2245 |
}
|
2255 |
width: 100%;
|
2256 |
max-width: 100%
|
2257 |
}
|
2258 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
2259 |
.zorem-layout__header .zorem-layout__header-breadcrumbs{
|
2260 |
padding: 0 0 0 20px;
|
2261 |
}
|
|
|
|
|
|
|
2262 |
.settings_ul .settings_radio_li .radio_section{
|
2263 |
padding: 0;
|
2264 |
margin-top: 10px;
|
2265 |
display: block;
|
2266 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2267 |
.woocommerce.zorem_admin_layout table.form-table.order-status-table td{
|
2268 |
padding: 12px 15px !important;
|
2269 |
}
|
2270 |
+
.woocommerce.zorem_admin_layout table.form-table.order-status-table td:first-child{
|
2271 |
+
width: auto;
|
2272 |
+
}
|
2273 |
+
.order-status-table tr td.status-label-column{
|
2274 |
+
width: auto;
|
2275 |
+
}
|
2276 |
.order-status-table td:last-child {
|
2277 |
text-align: unset;
|
2278 |
}
|
2279 |
.woocommerce.zorem_admin_layout table.form-table.order-status-table select{
|
2280 |
margin: 15px 0;
|
2281 |
}
|
2282 |
+
.ast_admin_content table.form-table.upload_csv_table th{
|
2283 |
+
width: auto;
|
2284 |
}
|
2285 |
+
.addons_page_dtable{
|
2286 |
+
padding: 0 10px;
|
|
|
|
|
2287 |
}
|
2288 |
+
.zorem_single_plugin{
|
2289 |
width: 100%;
|
2290 |
+
max-width: 100%;
|
2291 |
}
|
2292 |
+
.single_plugin:nth-child(2n){
|
2293 |
+
padding-right: 20px;
|
2294 |
+
}
|
2295 |
+
.tab_inner_container{
|
2296 |
+
padding: 0 10px;
|
2297 |
}
|
|
|
|
|
|
|
|
|
|
|
2298 |
}
|
2299 |
@media screen and (min-width: 1300px){
|
2300 |
content .woocommerce-progress-form-wrapper {
|
assets/css/customizer-styles.css
CHANGED
@@ -1,34 +1,15 @@
|
|
1 |
-
#accordion-section-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
display: inline-block;
|
8 |
-
vertical-align: middle;
|
9 |
-
background-repeat: no-repeat;
|
10 |
-
}
|
11 |
-
#accordion-section-customer_partial_shipped_email>h3:before{
|
12 |
-
content: ' ';
|
13 |
-
background-image: url(icons/partial-shipped-icon.png);
|
14 |
-
width: 20px;
|
15 |
-
height: 20px;
|
16 |
-
background-size: contain;
|
17 |
-
display: inline-block;
|
18 |
-
vertical-align: middle;
|
19 |
-
background-repeat: no-repeat;
|
20 |
-
}
|
21 |
-
#accordion-section-customer_updated_tracking_email>h3:before{
|
22 |
-
content: ' ';
|
23 |
-
background-image: url(icons/updated-tracking-icon.png);
|
24 |
-
width: 20px;
|
25 |
-
height: 20px;
|
26 |
-
background-size: contain;
|
27 |
-
display: inline-block;
|
28 |
vertical-align: middle;
|
29 |
-
|
|
|
|
|
30 |
}
|
31 |
-
#accordion-
|
32 |
font-family: 'Dashicons';
|
33 |
font-size: 20px;
|
34 |
font-weight: thin !important;
|
@@ -50,98 +31,7 @@
|
|
50 |
top: -1px;
|
51 |
content: "\f231";
|
52 |
}
|
53 |
-
#accordion-section-
|
54 |
-
content: ' ';
|
55 |
-
background-image: url(icons/Delivered-o.png);
|
56 |
-
width: 20px;
|
57 |
-
height: 20px;
|
58 |
-
background-size: cover;
|
59 |
-
display: inline-block;
|
60 |
-
vertical-align: middle;
|
61 |
-
}
|
62 |
-
#accordion-section-customer_shipped_email>h3:before{
|
63 |
-
content: ' ';
|
64 |
-
background-image: url(icons/shipped-o.png);
|
65 |
-
width: 20px;
|
66 |
-
height: 20px;
|
67 |
-
background-size: cover;
|
68 |
-
display: inline-block;
|
69 |
-
vertical-align: middle;
|
70 |
-
}
|
71 |
-
#accordion-section-customer_failure_email>h3:before{
|
72 |
-
content: ' ';
|
73 |
-
background-image: url(icons/failure-v4.png);
|
74 |
-
width: 20px;
|
75 |
-
height: 20px;
|
76 |
-
background-size: cover;
|
77 |
-
display: inline-block;
|
78 |
-
vertical-align: middle;
|
79 |
-
}
|
80 |
-
#accordion-section-customer_intransit_email>h3:before{
|
81 |
-
content: ' ';
|
82 |
-
background-image: url(icons/in-transit-v4.png);
|
83 |
-
width: 20px;
|
84 |
-
height: 20px;
|
85 |
-
background-size: cover;
|
86 |
-
display: inline-block;
|
87 |
-
vertical-align: middle;
|
88 |
-
}
|
89 |
-
#accordion-section-customer_onhold_email>h3:before{
|
90 |
-
content: ' ';
|
91 |
-
background-image: url(icons/On-hold-v3.png);
|
92 |
-
width: 20px;
|
93 |
-
height: 20px;
|
94 |
-
background-size: cover;
|
95 |
-
display: inline-block;
|
96 |
-
vertical-align: middle;
|
97 |
-
}
|
98 |
-
#accordion-section-customer_outfordelivery_email>h3:before{
|
99 |
-
content: ' ';
|
100 |
-
background-image: url(icons/out-for-delivery-v4.png);
|
101 |
-
width: 20px;
|
102 |
-
height: 20px;
|
103 |
-
background-size: cover;
|
104 |
-
display: inline-block;
|
105 |
-
vertical-align: middle;
|
106 |
-
}
|
107 |
-
#accordion-section-customer_delivered_status_email>h3:before{
|
108 |
-
content: ' ';
|
109 |
-
background-image: url(icons/delivered-v4.png);
|
110 |
-
width: 20px;
|
111 |
-
height: 20px;
|
112 |
-
background-size: cover;
|
113 |
-
display: inline-block;
|
114 |
-
vertical-align: middle;
|
115 |
-
}
|
116 |
-
#accordion-section-customer_returntosender_email>h3:before{
|
117 |
-
content: ' ';
|
118 |
-
background-image: url(icons/return-to-sender-v4.png);
|
119 |
-
width: 20px;
|
120 |
-
height: 20px;
|
121 |
-
background-size: cover;
|
122 |
-
display: inline-block;
|
123 |
-
vertical-align: middle;
|
124 |
-
}
|
125 |
-
#accordion-section-customer_availableforpickup_email>h3:before{
|
126 |
-
content: ' ';
|
127 |
-
background-image: url(icons/available-for-picup-v4.png);
|
128 |
-
width: 20px;
|
129 |
-
height: 20px;
|
130 |
-
background-size: cover;
|
131 |
-
display: inline-block;
|
132 |
-
vertical-align: middle;
|
133 |
-
}
|
134 |
-
#accordion-section-admin_late_shipments_email>h3:before{
|
135 |
-
content: ' ';
|
136 |
-
background-image: url(icons/late-shipment-v3.png);
|
137 |
-
width: 20px;
|
138 |
-
height: 20px;
|
139 |
-
background-size: cover;
|
140 |
-
display: inline-block;
|
141 |
-
vertical-align: middle;
|
142 |
-
}
|
143 |
-
|
144 |
-
#accordion-section-tracking_page_section>h3:before{
|
145 |
font-family: 'Dashicons';
|
146 |
font-size: 20px;
|
147 |
font-weight: thin !important;
|
1 |
+
#accordion-section-custom_order_status_email>h3:before{
|
2 |
+
font-family: 'Dashicons';
|
3 |
+
font-size: 20px;
|
4 |
+
font-weight: thin !important;
|
5 |
+
position: relative;
|
6 |
+
line-height: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
vertical-align: middle;
|
8 |
+
opacity: .6;
|
9 |
+
top: -1px;
|
10 |
+
content: "\f465";
|
11 |
}
|
12 |
+
#accordion-section-trackship_shipment_status_email>h3:before{
|
13 |
font-family: 'Dashicons';
|
14 |
font-size: 20px;
|
15 |
font-weight: thin !important;
|
31 |
top: -1px;
|
32 |
content: "\f231";
|
33 |
}
|
34 |
+
#accordion-section-ast_tracking_page_section>h3:before{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
font-family: 'Dashicons';
|
36 |
font-size: 20px;
|
37 |
font-weight: thin !important;
|
assets/css/trackship.css
CHANGED
@@ -1,278 +1,70 @@
|
|
1 |
-
|
2 |
-
background: #fafafa;
|
3 |
-
}
|
4 |
-
.woocommerce_page_trackship-for-woocommerce #wpcontent {
|
5 |
-
padding-left: 0;
|
6 |
-
}
|
7 |
-
.woocommerce_page_trackship-for-woocommerce #wpbody-content {
|
8 |
-
padding-bottom: 40px;
|
9 |
-
}
|
10 |
-
|
11 |
-
/* TS Landing page CSS */
|
12 |
-
.ts_row {
|
13 |
-
-js-display: flex;
|
14 |
-
display: -ms-flexbox;
|
15 |
-
display: flex;
|
16 |
-
-ms-flex-flow: row wrap;
|
17 |
-
flex-flow: row wrap;
|
18 |
-
}
|
19 |
-
.trackship_addon_section{
|
20 |
background: #fff;
|
21 |
-
|
|
|
22 |
padding: 30px;
|
23 |
-
margin:
|
24 |
-
|
25 |
-
.ts_features_section {
|
26 |
-
margin-top: 45px;
|
27 |
-
}
|
28 |
-
.ts_col_2 {
|
29 |
-
max-width: 17%;
|
30 |
-
-ms-flex-preferred-size: 17%;
|
31 |
-
flex-basis: 17%;
|
32 |
-
}
|
33 |
-
.ts_col_4 {
|
34 |
-
max-width: 33%;
|
35 |
-
-ms-flex-preferred-size: 33%;
|
36 |
-
flex-basis: 33%;
|
37 |
-
}
|
38 |
-
.ts_col_6 {
|
39 |
-
max-width: 50%;
|
40 |
-
-ms-flex-preferred-size: 50%;
|
41 |
-
flex-basis: 50%;
|
42 |
-
}
|
43 |
-
.ts_col_8 {
|
44 |
-
max-width: 66%;
|
45 |
-
-ms-flex-preferred-size: 66%;
|
46 |
-
flex-basis: 66%;
|
47 |
-
}
|
48 |
-
.ts_col_12 {
|
49 |
-
max-width: 100%;
|
50 |
-
-ms-flex-preferred-size: 100%;
|
51 |
-
flex-basis: 100%;
|
52 |
-
}
|
53 |
-
.ts_addon_logo_section img {
|
54 |
-
max-height: 40px;
|
55 |
-
vertical-align: middle;
|
56 |
-
}
|
57 |
-
.ts_addon_logo_section .dashicons {
|
58 |
-
vertical-align: middle;
|
59 |
-
margin: 0 10px;
|
60 |
-
}
|
61 |
-
.ts_landing_banner{
|
62 |
-
text-align:center;
|
63 |
-
}
|
64 |
-
.ts_landing_banner img{
|
65 |
-
width:100%;
|
66 |
}
|
67 |
.ts_landing_header{
|
68 |
font-size: 20px;
|
69 |
line-height: 28px;
|
|
|
70 |
}
|
71 |
.ts_landing_description{
|
72 |
font-size: 15px;
|
|
|
|
|
73 |
}
|
74 |
-
.
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
background-color: #59c889;
|
83 |
-
height: 3px;
|
84 |
-
display: block;
|
85 |
-
margin: 0 auto 30px;
|
86 |
-
width: 100%;
|
87 |
-
max-width: 30px;
|
88 |
-
}
|
89 |
-
.ts_con_box_img{
|
90 |
-
text-align: center;
|
91 |
-
}
|
92 |
-
.ts_con_box_img img{
|
93 |
-
max-width: 200px;
|
94 |
-
}
|
95 |
-
.ts_icon_box_text{
|
96 |
-
text-align:center;
|
97 |
-
}
|
98 |
-
.ts_icon_box_text h3{
|
99 |
-
font-size: 20px;
|
100 |
-
line-height: 22px;
|
101 |
-
}
|
102 |
-
.ts_icon_box_text p{
|
103 |
-
font-size: 14px;
|
104 |
-
margin-bottom: 0;
|
105 |
-
}
|
106 |
-
.ts_icon_box_text a{
|
107 |
-
color: #59c889;
|
108 |
-
margin: 10px 0 0;
|
109 |
-
display: block;
|
110 |
-
text-decoration: none;
|
111 |
-
}
|
112 |
-
.ts_features_section .ts_col_4 .ts_col_inner{
|
113 |
-
box-shadow: 0 1px 3px -2px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
|
114 |
-
padding: 10px 15px;
|
115 |
}
|
116 |
-
.
|
117 |
-
|
118 |
-
padding: 0;
|
119 |
}
|
120 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
background: #fff;
|
122 |
-
|
123 |
-
justify-content: space-between;
|
124 |
-
flex-direction: row;
|
125 |
-
box-sizing: border-box;
|
126 |
-
border-bottom: 1px solid #fff;
|
127 |
-
padding: 0;
|
128 |
-
width: 100%;
|
129 |
-
top: 32px;
|
130 |
-
z-index: 1001;
|
131 |
-
align-items: center;
|
132 |
-
}
|
133 |
-
.zorem-layout__header .zorem-layout__header-breadcrumbs {
|
134 |
-
font-size: 13px;
|
135 |
-
font-weight: 400;
|
136 |
-
padding: 15px 0 15px 30px;
|
137 |
-
margin: 0;
|
138 |
-
flex: 1 auto;
|
139 |
-
line-height: 30px;
|
140 |
-
}
|
141 |
-
.zorem-layout__header .zorem-layout__header-breadcrumbs span+span:before {
|
142 |
-
content: " / ";
|
143 |
-
color: #555d66;
|
144 |
-
margin: 0 2px;
|
145 |
-
}
|
146 |
-
.zorem-layout__logo-panel{
|
147 |
-
display: flex;
|
148 |
-
flex-direction: row;
|
149 |
-
align-items: center;
|
150 |
-
right: 0;
|
151 |
-
height: 56px;
|
152 |
-
padding: 0 30px 0 0;
|
153 |
-
}
|
154 |
-
.zorem-layout__logo-panel .header-plugin-logo{
|
155 |
-
width: 110px;
|
156 |
-
display: flex;
|
157 |
-
justify-content: flex-end;
|
158 |
-
margin-right: 10px;
|
159 |
-
}
|
160 |
-
.trackship_admin_content {
|
161 |
-
width: 100%;
|
162 |
-
vertical-align: top;
|
163 |
-
border-top: 1px solid #ddd;
|
164 |
-
}
|
165 |
-
.d_table {
|
166 |
-
display: table;
|
167 |
-
width: 100%;
|
168 |
-
}
|
169 |
-
.woocommerce table.form-table {
|
170 |
-
margin: 0;
|
171 |
-
position: relative;
|
172 |
-
table-layout: fixed;
|
173 |
}
|
|
|
174 |
.trackship_admin_content section.inner_tab_section {
|
175 |
display: none;
|
176 |
-
padding: 0
|
177 |
border-top: 1px solid #ddd;
|
178 |
}
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
182 |
}
|
183 |
-
.woocommerce.
|
184 |
font-weight: 500;
|
185 |
color: #444;
|
186 |
cursor: auto;
|
187 |
}
|
188 |
-
|
189 |
-
display: block;
|
190 |
-
font-weight: 400;
|
191 |
-
margin-top: 5px;
|
192 |
-
}
|
193 |
.trackship_admin_content .get_shipment_status_tool .form-table th.titledesc {
|
194 |
width: 70%;
|
195 |
}
|
196 |
-
.zorem_admin_sidebar {
|
197 |
-
width: 280px;
|
198 |
-
min-width: 280px;
|
199 |
-
display: table-cell;
|
200 |
-
vertical-align: top;
|
201 |
-
padding: 25px 0px 25px 20px;
|
202 |
-
}
|
203 |
-
.zorem_admin_sidebar_inner {
|
204 |
-
border-left: 1px solid #e0e0e0;
|
205 |
-
padding-left: 20px;
|
206 |
-
}
|
207 |
-
.zorem-sidebar__section.padding_0{
|
208 |
-
padding: 0;
|
209 |
-
}
|
210 |
-
.wp-core-ui .button-primary.btn_ts_sidebar {
|
211 |
-
background: transparent;
|
212 |
-
color: #3c4858;
|
213 |
-
border-color: #59c889;
|
214 |
-
text-transform: uppercase;
|
215 |
-
margin-top: 10px;
|
216 |
-
padding: 0 11px;
|
217 |
-
font-size: 12px;
|
218 |
-
height: 30px;
|
219 |
-
line-height: 28px;
|
220 |
-
}
|
221 |
-
.wp-core-ui .button-primary.btn_plugin_sidebar {
|
222 |
-
background: transparent;
|
223 |
-
color: #005b9a;
|
224 |
-
border-color: #74c2e1;
|
225 |
-
text-transform: uppercase;
|
226 |
-
padding: 0 11px;
|
227 |
-
font-size: 12px;
|
228 |
-
height: 30px;
|
229 |
-
line-height: 28px;
|
230 |
-
}
|
231 |
-
.trackship_admin_layout .zorem_admin_sidebar h3 {
|
232 |
-
margin: 0;
|
233 |
-
color: #3c4858;
|
234 |
-
padding: 0 0 10px;
|
235 |
-
font-size: 16px;
|
236 |
-
}
|
237 |
-
.trackship_admin_layout .zorem_admin_sidebar h3.top-border {
|
238 |
-
padding: 10px 0 10px;
|
239 |
-
}
|
240 |
-
|
241 |
-
.zorem-sidebar__section ul {
|
242 |
-
position: relative;
|
243 |
-
margin: 0;
|
244 |
-
}
|
245 |
-
.zorem-sidebar__section li {
|
246 |
-
list-style: none;
|
247 |
-
margin-bottom: 0;
|
248 |
-
}
|
249 |
-
.zorem-sidebar__section li img.plugin_thumbnail {
|
250 |
-
width: 60px;
|
251 |
-
display: inline-block;
|
252 |
-
}
|
253 |
-
.zorem-sidebar__section li a.plugin_url {
|
254 |
-
width: 67%;
|
255 |
-
vertical-align: middle;
|
256 |
-
display: inline-block;
|
257 |
-
margin-left: 10px;
|
258 |
-
margin-right: 0;
|
259 |
-
line-height: 20px;
|
260 |
-
}
|
261 |
|
262 |
-
.
|
263 |
-
border: 0;
|
264 |
-
margin-top: 0;
|
265 |
-
margin-bottom: 0px;
|
266 |
-
}
|
267 |
-
.trackship_admin_layout table.form-table.late-shipments-email-content-table{
|
268 |
background: #fff;
|
269 |
display: none;
|
270 |
}
|
271 |
-
.
|
272 |
-
margin: 0;
|
273 |
-
border: 0;
|
274 |
-
}
|
275 |
-
.trackship_admin_layout h3.table-heading {
|
276 |
background: #fafeff;
|
277 |
color: #005B9A;
|
278 |
margin: 0;
|
@@ -284,55 +76,38 @@ body.trackship_admin_settings{
|
|
284 |
clear: both;
|
285 |
}
|
286 |
|
287 |
-
.woocommerce.
|
288 |
-
padding: 12px
|
|
|
|
|
289 |
}
|
290 |
-
.woocommerce.
|
291 |
padding: 0 0 5px;
|
292 |
}
|
293 |
-
.
|
294 |
margin: 1em 0;
|
295 |
}
|
296 |
-
.woocommerce.
|
297 |
margin: 0;
|
298 |
color: #3c4858;
|
299 |
font-weight: 500;
|
300 |
}
|
301 |
-
.
|
302 |
-
width: 2%;
|
303 |
-
vertical-align: middle;
|
304 |
-
}
|
305 |
-
.woocommerce.trackship_admin_layout table.form-table.table-layout-2 th.titledesc {
|
306 |
-
padding: 20px 15px 20px 15px;
|
307 |
-
}
|
308 |
-
.woocommerce.trackship_admin_layout .border_0 table.form-table.table-layout-2 th.titledesc {
|
309 |
-
padding: 20px 15px 20px 0;
|
310 |
-
}
|
311 |
-
.woocommerce.trackship_admin_layout table.form-table td.button-column {
|
312 |
padding: 5px 15px;
|
313 |
}
|
314 |
-
.woocommerce.
|
315 |
padding: 5px 15px 5px 0;
|
316 |
}
|
317 |
-
.woocommerce.
|
318 |
padding: 0 10px 0px 15px;
|
319 |
border-bottom: 1px solid #e0e0e0;
|
320 |
vertical-align: middle;
|
321 |
}
|
322 |
-
.woocommerce.
|
323 |
padding: 10px;
|
324 |
border-bottom: 1px solid #e0e0e0;
|
325 |
text-align: right;
|
326 |
}
|
327 |
-
.trackship_admin_layout .get_shipment_status_tool table.form-table{
|
328 |
-
border: 1px solid #e0e0e0;
|
329 |
-
background: #fff;
|
330 |
-
}
|
331 |
-
.get_shipment_status_tool_description{
|
332 |
-
border-bottom: 1px solid #eee;
|
333 |
-
padding: 5px 0 15px;
|
334 |
-
margin: 0;
|
335 |
-
}
|
336 |
.trackship_admin_content div.submit {
|
337 |
padding: 0;
|
338 |
}
|
@@ -372,16 +147,6 @@ ul.trackship_dashboard_ul li strong{
|
|
372 |
margin-top: 5px;
|
373 |
padding-left: 20px;
|
374 |
}
|
375 |
-
.api_connected {
|
376 |
-
color: #59c889;
|
377 |
-
text-decoration: none;
|
378 |
-
font-weight: 800;
|
379 |
-
font-size: 15px;
|
380 |
-
}
|
381 |
-
.api_connected .dashicons {
|
382 |
-
height: 18px;
|
383 |
-
width: 18px;
|
384 |
-
}
|
385 |
.sidebar_subscription_details{
|
386 |
color: #3c4858;
|
387 |
}
|
@@ -406,85 +171,15 @@ ul.trackship_dashboard_ul li strong{
|
|
406 |
}
|
407 |
.menu_trackship_link{
|
408 |
text-decoration: none;
|
409 |
-
padding:
|
410 |
font-size: 14px;
|
411 |
color: #005b9a;
|
412 |
-
display: inline-block;
|
413 |
-
margin-left: 20px;
|
414 |
line-height: 1;
|
415 |
outline: none;
|
416 |
vertical-align: middle;
|
417 |
}
|
418 |
|
419 |
-
.woocommerce table.form-table.tracking_page_design_table td select{
|
420 |
-
width: auto;
|
421 |
-
}
|
422 |
-
#wc_ast_trackship_page_id{
|
423 |
-
margin-bottom:10px;
|
424 |
-
}
|
425 |
-
.tracking_page_design_table .radio-img {
|
426 |
-
position: absolute;
|
427 |
-
left: -9999px;
|
428 |
-
}
|
429 |
-
.tracking_page_design_table .radio-img + label>img {
|
430 |
-
border: 1px solid #bdbdbd;
|
431 |
-
width: 100%;
|
432 |
-
border-radius: 5px;
|
433 |
-
filter: grayscale(100%);
|
434 |
-
}
|
435 |
-
.tracking_page_design_table .radio-img:checked + label>img {
|
436 |
-
border: 1px solid #74C2E1;
|
437 |
-
filter: grayscale(0);
|
438 |
-
}
|
439 |
-
table.form-table.tracking_page_heading {
|
440 |
-
background: #fff;
|
441 |
-
border: 1px solid #e0e0e0;
|
442 |
-
}
|
443 |
-
table.form-table.tracking_page_heading td{
|
444 |
-
padding: 15px 20px;
|
445 |
-
}
|
446 |
-
table.form-table.tracking_page_heading td h3{
|
447 |
-
margin: 0 0 5px;
|
448 |
-
}
|
449 |
-
table.form-table.tracking_page_heading td:last-child{
|
450 |
-
text-align:right;
|
451 |
-
}
|
452 |
-
table.form-table.tracking_page_design_table {
|
453 |
-
background: #fff;
|
454 |
-
border: 1px solid #e0e0e0;
|
455 |
-
border-top: 0;
|
456 |
-
border-bottom: 0;
|
457 |
-
}
|
458 |
-
table.form-table.tracking_page_design_table tr:last-child{
|
459 |
-
border-bottom: 0;
|
460 |
-
}
|
461 |
-
.woocommerce.trackship_admin_layout table.form-table.tracking_page_design_table td,.woocommerce.trackship_admin_layout table.form-table.tracking_page_design_table th{
|
462 |
-
padding: 15px 20px;
|
463 |
-
}
|
464 |
-
.woocommerce.trackship_admin_layout table.form-table.tracking_page_design_table tr:last-child td,.woocommerce.trackship_admin_layout table.form-table.tracking_page_design_table tr:last-child th{
|
465 |
-
padding: 15px 20px 0;
|
466 |
-
}
|
467 |
-
.tracking_page_display_options_td label {
|
468 |
-
display: block;
|
469 |
-
line-height: 30px;
|
470 |
-
}
|
471 |
-
.tracking_page_display_options_td label:last-child{
|
472 |
-
margin-bottom: 0;
|
473 |
-
}
|
474 |
-
label.tracking_color_label {
|
475 |
-
margin-right: 10px;
|
476 |
-
}
|
477 |
-
table.form-table.tracking_page_save_table{
|
478 |
-
background: #fff;
|
479 |
-
border: 1px solid #e0e0e0;
|
480 |
-
border-top: 0;
|
481 |
-
}
|
482 |
-
table.form-table.tracking_page_save_table .spinner{
|
483 |
-
float: none;
|
484 |
-
}
|
485 |
-
table.form-table.tracking_page_save_table td{
|
486 |
-
padding: 20px 20px 20px;
|
487 |
-
}
|
488 |
.post-type-shop_order .wp-list-table .column-shipment_status {
|
489 |
width: 20ch;
|
490 |
padding: .5em;
|
@@ -569,94 +264,16 @@ ul.wcast-shipment-status-list {
|
|
569 |
.ast-shipment-status .icon-invalid_user_key:before{
|
570 |
background-image: url(icons/invalid-user-key-v4.png);
|
571 |
}
|
572 |
-
.
|
573 |
-
position: relative;
|
574 |
-
}
|
575 |
-
.trackship-dropdown-menu{
|
576 |
-
cursor: pointer;
|
577 |
-
padding: 4px 5px 2px;
|
578 |
-
color: #3c4858;
|
579 |
-
font-size: 24px;
|
580 |
-
vertical-align: baseline;
|
581 |
-
}
|
582 |
-
.trackship-dropdown-content {
|
583 |
-
display: none;
|
584 |
-
position: absolute;
|
585 |
-
right: 0;
|
586 |
-
background-color: #f9f9f9;
|
587 |
-
min-width: 220px;
|
588 |
-
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
|
589 |
-
z-index: 100;
|
590 |
-
border: 1px solid #ccc;
|
591 |
-
padding: .5rem;
|
592 |
-
margin-top: 0;
|
593 |
-
text-align: left;
|
594 |
-
top: 35px;
|
595 |
-
}
|
596 |
-
.trackship-dropdown-content:before {
|
597 |
-
content: '';
|
598 |
-
width: .75rem;
|
599 |
-
height: .75rem;
|
600 |
-
position: absolute;
|
601 |
-
z-index: 1;
|
602 |
-
top: -0.375rem;
|
603 |
-
right: 8px;
|
604 |
-
background-color: #fff;
|
605 |
-
transform: rotate(45deg);
|
606 |
-
border: 1px solid #aebacc;
|
607 |
-
border-width: 1px 0 0 1px;
|
608 |
-
margin-top: -1px;
|
609 |
-
}
|
610 |
-
.trackship-dropdown-content li {
|
611 |
-
margin-bottom: 0;
|
612 |
-
border-bottom: 1px solid #ebeef2;
|
613 |
-
padding: .5rem;
|
614 |
-
}
|
615 |
-
.trackship-dropdown-content li a {
|
616 |
-
color: black;
|
617 |
-
text-decoration: none;
|
618 |
-
display: block;
|
619 |
-
}
|
620 |
-
#trackship-snackbar.mdl-snackbar {
|
621 |
-
background: #3c4758;
|
622 |
-
z-index: 100000;
|
623 |
-
bottom: 10px;
|
624 |
-
}
|
625 |
-
#trackship-snackbar .mdl-snackbar__text {
|
626 |
-
float: unset;
|
627 |
-
width: 100%;
|
628 |
-
text-align: center;
|
629 |
-
}
|
630 |
-
#trackship-snackbar .mdl-snackbar__action {
|
631 |
-
display: none;
|
632 |
-
}
|
633 |
-
.tracking_page_toggle{
|
634 |
-
display: inline-block;
|
635 |
-
vertical-align: middle;
|
636 |
-
}
|
637 |
-
.woocommerce.trackship_admin_layout table.form-table.heading-table td h3.tracking_page_heading{
|
638 |
-
display: inline-block;
|
639 |
-
vertical-align: top;
|
640 |
-
margin-left: 25px;
|
641 |
-
}
|
642 |
-
|
643 |
-
.trackship_admin_content div.submit .spinner.active{
|
644 |
-
display: inline-block;
|
645 |
-
visibility: visible;
|
646 |
-
}
|
647 |
-
.trackship_admin_layout h3.border0_heading {
|
648 |
-
color: #3c4858;
|
649 |
-
margin: 25px 0 -15px;
|
650 |
-
}
|
651 |
-
.woocommerce.trackship_admin_layout table.form-table.shipment-status-email-table td {
|
652 |
padding: 15px;
|
653 |
}
|
654 |
-
.woocommerce.
|
655 |
-
|
656 |
-
|
657 |
-
|
|
|
658 |
}
|
659 |
-
.woocommerce.
|
660 |
border-bottom: 1px solid #e0e0e0;
|
661 |
}
|
662 |
.shipment-status-email-table tr td.status-label-column {
|
@@ -670,7 +287,7 @@ ul.wcast-shipment-status-list {
|
|
670 |
color: #fff;
|
671 |
background: #e5e5e5;
|
672 |
border-radius: 4px;
|
673 |
-
border
|
674 |
margin: -.25em 0;
|
675 |
cursor: pointer;
|
676 |
white-space: nowrap;
|
@@ -709,44 +326,21 @@ ul.wcast-shipment-status-list {
|
|
709 |
.shipment-status-email-table tr.disable td:last-child {
|
710 |
pointer-events: none;
|
711 |
}
|
712 |
-
|
713 |
-
|
714 |
-
}
|
715 |
-
.trackship_admin_layout input.tab_input:checked + label, .trackship_admin_layout input.inner_tab_input:checked + label{
|
716 |
-
color: #59c889;
|
717 |
-
border-bottom: 2px solid #59c889;
|
718 |
-
}
|
719 |
-
.trackship_admin_layout label.tab_label:hover {
|
720 |
-
color: #59c889;
|
721 |
-
}
|
722 |
-
.trackship_admin_layout .nav_doc_section a{
|
723 |
-
color:#3c4858;
|
724 |
-
}
|
725 |
-
.trackship_admin_layout .nav_doc_section a:hover{
|
726 |
-
color: #59c889;
|
727 |
-
}
|
728 |
-
.trackship_admin_layout .shipment-status-email-table tr.enable{
|
729 |
background: #fff;
|
730 |
}
|
731 |
-
.
|
732 |
background: transparent;
|
733 |
}
|
734 |
-
.
|
735 |
-
pointer-events:none;
|
736 |
-
}
|
737 |
-
.trackship_admin_layout .shipment-status-email-table tr.disable td:last-child{
|
738 |
pointer-events:none;
|
739 |
}
|
740 |
p.delivered_message {
|
741 |
display: inline-block;
|
742 |
max-width: 85%;
|
743 |
}
|
744 |
-
|
745 |
-
margin: 0;
|
746 |
-
color: #3c4858;
|
747 |
-
font-weight: 500;
|
748 |
-
font-size: 18px;
|
749 |
-
}
|
750 |
.woocommerce table.form-table .shipment-status-label.woocommerce-help-tip{
|
751 |
font-size: 14px;
|
752 |
padding: 0 1em;
|
@@ -779,10 +373,7 @@ p.delivered_message {
|
|
779 |
margin: 0;
|
780 |
color: #3c4858;
|
781 |
}
|
782 |
-
|
783 |
-
width: 100%;
|
784 |
-
height: 590px;
|
785 |
-
}
|
786 |
.popup_header .popup_close_icon{
|
787 |
color: #59c889;
|
788 |
width: 60px;
|
@@ -798,29 +389,7 @@ p.delivered_message {
|
|
798 |
vertical-align: middle;
|
799 |
vertical-align: -webkit-baseline-middle;
|
800 |
}
|
801 |
-
|
802 |
-
max-width: 700px;
|
803 |
-
padding: 0;
|
804 |
-
background: transparent;
|
805 |
-
border: 0;
|
806 |
-
border-radius: 0;
|
807 |
-
}
|
808 |
-
.popupwrapper.tracking_page_preview_popup .popuprow .popup_body{
|
809 |
-
padding: 0;
|
810 |
-
}
|
811 |
-
.tracking_page_preview_popup .popup_header{
|
812 |
-
background: #fff;
|
813 |
-
}
|
814 |
-
.tracking_page_preview_popup .popup_header h3{
|
815 |
-
text-align: left;
|
816 |
-
display: block;
|
817 |
-
}
|
818 |
-
.tracking_page_preview_popup .popup_header .popup_close_icon{
|
819 |
-
z-index: 10;
|
820 |
-
}
|
821 |
-
.tracking_page_preview_popup .col.tracking-detail{
|
822 |
-
margin: 0 auto;
|
823 |
-
}
|
824 |
|
825 |
.wp-core-ui .btn_ts_outline{
|
826 |
background: transparent;
|
@@ -832,52 +401,131 @@ p.delivered_message {
|
|
832 |
border: 1px solid #59c889;
|
833 |
color: #59c889;
|
834 |
}
|
835 |
-
.
|
836 |
width: 60px;
|
837 |
}
|
838 |
-
.
|
839 |
width: 100%;
|
840 |
height: 80px;
|
841 |
margin-bottom: 10px;
|
842 |
}
|
843 |
-
.
|
844 |
padding: 15px 15px;
|
845 |
}
|
846 |
-
.
|
847 |
border-top: 1px solid #e0e0e0;
|
848 |
}
|
849 |
-
.
|
850 |
width: 100px;
|
851 |
vertical-align: middle;
|
852 |
}
|
853 |
-
.
|
854 |
margin-right: 10px;
|
855 |
}
|
856 |
|
857 |
-
|
858 |
-
|
859 |
-
background: rgb(89 200 137 / 0.4);
|
860 |
}
|
861 |
-
.
|
862 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
863 |
}
|
864 |
|
865 |
-
.
|
866 |
-
|
867 |
-
|
868 |
}
|
869 |
-
.
|
870 |
-
|
871 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
872 |
}
|
873 |
-
.
|
874 |
-
|
875 |
-
|
|
|
|
|
|
|
876 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
877 |
.rtl.trackship_admin_settings #wpcontent {
|
878 |
padding-right: 0;
|
879 |
}
|
880 |
-
.rtl .woocommerce.
|
881 |
margin-right: 25px;
|
882 |
}
|
883 |
.rtl ul.trackship_dashboard_ul li{
|
@@ -897,65 +545,30 @@ p.delivered_message {
|
|
897 |
margin-right: 25px;
|
898 |
}
|
899 |
.rtl .tracking_page_desc{
|
900 |
-
width: 44%;
|
901 |
-
margin-left: 0;
|
902 |
margin-right: 25px;
|
903 |
}
|
904 |
.rtl .shipment-status-email-table td:last-child{
|
905 |
text-align: left;
|
906 |
}
|
907 |
-
.rtl .woocommerce.
|
908 |
text-align: left;
|
909 |
}
|
910 |
.rtl .settings_ul .setting_ul_checkbox_label{
|
911 |
margin-right: 10px;
|
912 |
margin-left: auto;
|
913 |
}
|
914 |
-
.rtl
|
915 |
text-align: left;
|
916 |
}
|
917 |
-
.rtl
|
918 |
-
|
919 |
-
|
920 |
}
|
921 |
|
922 |
-
|
923 |
-
|
|
|
924 |
width: auto;
|
925 |
-
|
926 |
-
padding: 25px 0px 25px 0;
|
927 |
-
}
|
928 |
-
}
|
929 |
-
@media screen and (max-width: 767px) {
|
930 |
-
.ts_col_4 {
|
931 |
-
max-width: 100%;
|
932 |
-
-ms-flex-preferred-size: 100%;
|
933 |
-
flex-basis: 100%;
|
934 |
-
}
|
935 |
-
.ts_col_6 {
|
936 |
-
max-width: 100%;
|
937 |
-
-ms-flex-preferred-size: 100%;
|
938 |
-
flex-basis: 100%;
|
939 |
-
}
|
940 |
-
.ts_col_8 {
|
941 |
-
max-width: 100%;
|
942 |
-
-ms-flex-preferred-size: 100%;
|
943 |
-
flex-basis: 100%;
|
944 |
-
}
|
945 |
-
.ts_landing_banner img{
|
946 |
-
display: none;
|
947 |
-
}
|
948 |
-
.zorem-layout__logo-panel{
|
949 |
-
padding: 0 10px 0 0;
|
950 |
-
}
|
951 |
-
.shipment_tracking_admin_settings .zorem-layout__logo-panel .header-plugin-logo{
|
952 |
-
width: 55px;
|
953 |
-
margin-right: 5px;
|
954 |
-
}
|
955 |
-
.zorem-layout__header .zorem-layout__header-breadcrumbs{
|
956 |
-
padding: 0 0 0 20px;
|
957 |
-
}
|
958 |
-
.zorem-layout__logo-panel .header-plugin-logo{
|
959 |
-
margin-right: 0;
|
960 |
}
|
961 |
}
|
1 |
+
.trackship_section {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
background: #fff;
|
3 |
+
border: 1px solid #e0e0e0;
|
4 |
+
border-radius: 3px;
|
5 |
padding: 30px;
|
6 |
+
margin-top: 30px;
|
7 |
+
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
9 |
.ts_landing_header{
|
10 |
font-size: 20px;
|
11 |
line-height: 28px;
|
12 |
+
margin: 0;
|
13 |
}
|
14 |
.ts_landing_description{
|
15 |
font-size: 15px;
|
16 |
+
max-width: 585px;
|
17 |
+
margin: 1em auto;
|
18 |
}
|
19 |
+
.ts_landing_banner{
|
20 |
+
text-align:center;
|
21 |
+
background: #fafafa;
|
22 |
+
border: 1px solid #e0e0e0;
|
23 |
+
padding: 15px;
|
24 |
+
max-width: 400px;
|
25 |
+
margin: 30px auto;
|
26 |
+
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
+
.ts_landing_banner img{
|
29 |
+
width: 100%;
|
|
|
30 |
}
|
31 |
+
.open_ts_video{
|
32 |
+
position: absolute;
|
33 |
+
width: 60px;
|
34 |
+
height: 60px;
|
35 |
+
font-size: 60px;
|
36 |
+
top: 42%;
|
37 |
+
left: 44%;
|
38 |
+
color: #59c889;
|
39 |
background: #fff;
|
40 |
+
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
+
|
43 |
.trackship_admin_content section.inner_tab_section {
|
44 |
display: none;
|
45 |
+
padding: 0;
|
46 |
border-top: 1px solid #ddd;
|
47 |
}
|
48 |
+
.woocommerce.zorem_admin_layout table.form-table th, .woocommerce.zorem_admin_layout table.form-table td{
|
49 |
+
padding: 15px 24px 15px 15px;
|
50 |
+
border-bottom: 1px solid #e0e0e0;
|
51 |
+
vertical-align: middle;
|
52 |
}
|
53 |
+
.woocommerce.zorem_admin_layout table.form-table th label {
|
54 |
font-weight: 500;
|
55 |
color: #444;
|
56 |
cursor: auto;
|
57 |
}
|
58 |
+
|
|
|
|
|
|
|
|
|
59 |
.trackship_admin_content .get_shipment_status_tool .form-table th.titledesc {
|
60 |
width: 70%;
|
61 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
+
.zorem_admin_layout table.form-table.late-shipments-email-content-table{
|
|
|
|
|
|
|
|
|
|
|
64 |
background: #fff;
|
65 |
display: none;
|
66 |
}
|
67 |
+
.zorem_admin_layout h3.table-heading {
|
|
|
|
|
|
|
|
|
68 |
background: #fafeff;
|
69 |
color: #005B9A;
|
70 |
margin: 0;
|
76 |
clear: both;
|
77 |
}
|
78 |
|
79 |
+
.woocommerce.zorem_admin_layout table.form-table.heading-table td {
|
80 |
+
padding: 12px 25px;
|
81 |
+
border-bottom: 1px solid #e0e0e0;
|
82 |
+
height: 40px;
|
83 |
}
|
84 |
+
.woocommerce.zorem_admin_layout .border_0 table.form-table.heading-table td{
|
85 |
padding: 0 0 5px;
|
86 |
}
|
87 |
+
.zorem_admin_layout h3 {
|
88 |
margin: 1em 0;
|
89 |
}
|
90 |
+
.woocommerce.zorem_admin_layout table.form-table.heading-table td h3 {
|
91 |
margin: 0;
|
92 |
color: #3c4858;
|
93 |
font-weight: 500;
|
94 |
}
|
95 |
+
.woocommerce.zorem_admin_layout table.form-table td.button-column {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
padding: 5px 15px;
|
97 |
}
|
98 |
+
.woocommerce.zorem_admin_layout .border_0 table.form-table td.button-column {
|
99 |
padding: 5px 15px 5px 0;
|
100 |
}
|
101 |
+
.woocommerce.zorem_admin_layout .get_shipment_status_tool.border_0 table.form-table th{
|
102 |
padding: 0 10px 0px 15px;
|
103 |
border-bottom: 1px solid #e0e0e0;
|
104 |
vertical-align: middle;
|
105 |
}
|
106 |
+
.woocommerce.zorem_admin_layout .get_shipment_status_tool.border_0 table.form-table td{
|
107 |
padding: 10px;
|
108 |
border-bottom: 1px solid #e0e0e0;
|
109 |
text-align: right;
|
110 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
.trackship_admin_content div.submit {
|
112 |
padding: 0;
|
113 |
}
|
147 |
margin-top: 5px;
|
148 |
padding-left: 20px;
|
149 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
.sidebar_subscription_details{
|
151 |
color: #3c4858;
|
152 |
}
|
171 |
}
|
172 |
.menu_trackship_link{
|
173 |
text-decoration: none;
|
174 |
+
padding: 15px 15px 10px;
|
175 |
font-size: 14px;
|
176 |
color: #005b9a;
|
177 |
+
display: inline-block;
|
|
|
178 |
line-height: 1;
|
179 |
outline: none;
|
180 |
vertical-align: middle;
|
181 |
}
|
182 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
.post-type-shop_order .wp-list-table .column-shipment_status {
|
184 |
width: 20ch;
|
185 |
padding: .5em;
|
264 |
.ast-shipment-status .icon-invalid_user_key:before{
|
265 |
background-image: url(icons/invalid-user-key-v4.png);
|
266 |
}
|
267 |
+
.woocommerce.zorem_admin_layout table.form-table.shipment-status-email-table td {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
padding: 15px;
|
269 |
}
|
270 |
+
.woocommerce.zorem_admin_layout table.form-table.shipment-status-email-table td:first-child {
|
271 |
+
width: 240px;
|
272 |
+
}
|
273 |
+
span.shipment_status_toggle {
|
274 |
+
margin-right: 15px;
|
275 |
}
|
276 |
+
.woocommerce.zorem_admin_layout table.form-table.shipment-status-email-table td {
|
277 |
border-bottom: 1px solid #e0e0e0;
|
278 |
}
|
279 |
.shipment-status-email-table tr td.status-label-column {
|
287 |
color: #fff;
|
288 |
background: #e5e5e5;
|
289 |
border-radius: 4px;
|
290 |
+
border: 0;
|
291 |
margin: -.25em 0;
|
292 |
cursor: pointer;
|
293 |
white-space: nowrap;
|
326 |
.shipment-status-email-table tr.disable td:last-child {
|
327 |
pointer-events: none;
|
328 |
}
|
329 |
+
|
330 |
+
.zorem_admin_layout .shipment-status-email-table tr.enable{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
331 |
background: #fff;
|
332 |
}
|
333 |
+
.zorem_admin_layout .shipment-status-email-table tr.disable{
|
334 |
background: transparent;
|
335 |
}
|
336 |
+
.zorem_admin_layout .shipment-status-email-table tr.disable td:last-child{
|
|
|
|
|
|
|
337 |
pointer-events:none;
|
338 |
}
|
339 |
p.delivered_message {
|
340 |
display: inline-block;
|
341 |
max-width: 85%;
|
342 |
}
|
343 |
+
|
|
|
|
|
|
|
|
|
|
|
344 |
.woocommerce table.form-table .shipment-status-label.woocommerce-help-tip{
|
345 |
font-size: 14px;
|
346 |
padding: 0 1em;
|
373 |
margin: 0;
|
374 |
color: #3c4858;
|
375 |
}
|
376 |
+
|
|
|
|
|
|
|
377 |
.popup_header .popup_close_icon{
|
378 |
color: #59c889;
|
379 |
width: 60px;
|
389 |
vertical-align: middle;
|
390 |
vertical-align: -webkit-baseline-middle;
|
391 |
}
|
392 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
|
394 |
.wp-core-ui .btn_ts_outline{
|
395 |
background: transparent;
|
401 |
border: 1px solid #59c889;
|
402 |
color: #59c889;
|
403 |
}
|
404 |
+
.zorem_admin_layout table.form-table.late-shipments-email-content-table #wcast_late_shipments_days{
|
405 |
width: 60px;
|
406 |
}
|
407 |
+
.zorem_admin_layout table.form-table.late-shipments-email-content-table #wcast_late_shipments_email_content{
|
408 |
width: 100%;
|
409 |
height: 80px;
|
410 |
margin-bottom: 10px;
|
411 |
}
|
412 |
+
.zorem_admin_layout table.form-table.late-shipments-email-content-table tr td{
|
413 |
padding: 15px 15px;
|
414 |
}
|
415 |
+
.zorem_admin_layout table.form-table.late-shipments-email-content-table tr:last-child{
|
416 |
border-top: 1px solid #e0e0e0;
|
417 |
}
|
418 |
+
.zorem_admin_layout table.form-table.late-shipments-email-content-table tr td select{
|
419 |
width: 100px;
|
420 |
vertical-align: middle;
|
421 |
}
|
422 |
+
.zorem_admin_layout table.form-table.late-shipments-email-content-table tr td label{
|
423 |
margin-right: 10px;
|
424 |
}
|
425 |
|
426 |
+
.wp-core-ui .ts_launch_customizer_btn{
|
427 |
+
float: right;
|
|
|
428 |
}
|
429 |
+
.wp-core-ui .btn_ts_transparent {
|
430 |
+
background: transparent;
|
431 |
+
text-shadow: none;
|
432 |
+
border-color: #bdbdbd;
|
433 |
+
box-shadow: none;
|
434 |
+
font-size: 14px;
|
435 |
+
line-height: 32px;
|
436 |
+
height: 35px;
|
437 |
+
padding: 0 20px;
|
438 |
+
color: #59c889;
|
439 |
+
background: #fafafa;
|
440 |
+
font-weight: 700;
|
441 |
}
|
442 |
|
443 |
+
.trackship_status_section {
|
444 |
+
width: 50%;
|
445 |
+
float: left;
|
446 |
}
|
447 |
+
.trackship_status_section.first .outer_form_table{
|
448 |
+
margin-right: 10px;
|
449 |
+
}
|
450 |
+
.trackship_status_section.last .outer_form_table{
|
451 |
+
margin-left: 10px;
|
452 |
+
}
|
453 |
+
.clearfix::after {
|
454 |
+
content: "";
|
455 |
+
clear: both;
|
456 |
+
display: table;
|
457 |
+
}
|
458 |
+
.wp-core-ui .btn_large.api_connected .dashicons {
|
459 |
+
vertical-align: middle;
|
460 |
+
margin-right: 5px;
|
461 |
}
|
462 |
+
.trackship_status_table tr td:last-child{
|
463 |
+
text-align:right;
|
464 |
+
}
|
465 |
+
#trackship_dashboard_widget .inside{
|
466 |
+
padding: 0;
|
467 |
+
margin: 0;
|
468 |
}
|
469 |
+
.ts-widget-content{
|
470 |
+
width: 100%;
|
471 |
+
}
|
472 |
+
.ts-widget-row{
|
473 |
+
display: flex;
|
474 |
+
}
|
475 |
+
.ts-widget-content .ts-widget__section{
|
476 |
+
flex: 1;
|
477 |
+
padding: 15px;
|
478 |
+
}
|
479 |
+
.ts-widget-rborder{
|
480 |
+
border-right: 1px solid #e0e0e0;
|
481 |
+
}
|
482 |
+
.ts-widget-bborder{
|
483 |
+
border-bottom: 1px solid #e0e0e0;
|
484 |
+
}
|
485 |
+
#trackship_dashboard_widget .ts-widget-content h3{
|
486 |
+
margin: 0;
|
487 |
+
font-weight: 400;
|
488 |
+
font-size: 16px;
|
489 |
+
}
|
490 |
+
.ts-widget-content .ts-widget-analytics-number{
|
491 |
+
font-size: 24px;
|
492 |
+
display: block;
|
493 |
+
}
|
494 |
+
.ts-widget-footer{
|
495 |
+
padding: 15px;
|
496 |
+
}
|
497 |
+
.ts-widget-footer a{
|
498 |
+
color: #2196f3;
|
499 |
+
}
|
500 |
+
|
501 |
+
.tracking_page_select {
|
502 |
+
margin: 0 10px 0 20px;
|
503 |
+
}
|
504 |
+
.tracking_page_desc {
|
505 |
+
display: inline-block;
|
506 |
+
margin: 0;
|
507 |
+
}
|
508 |
+
.ts_customizer_btn{
|
509 |
+
position: absolute;
|
510 |
+
right: 25px;
|
511 |
+
bottom: 10px;
|
512 |
+
}
|
513 |
+
.disable_ts_btn{
|
514 |
+
background: transparent;
|
515 |
+
opacity: 0.7;
|
516 |
+
pointer-events:none;
|
517 |
+
}
|
518 |
+
.ast-tgl-flat:checked + .ast-tgl-btn.ast-tgl-btn-green{
|
519 |
+
background: rgb(89 200 137 / 0.4);
|
520 |
+
}
|
521 |
+
.ast-tgl-flat:checked + .ast-tgl-btn.ast-tgl-btn-green:after {
|
522 |
+
background: #59c889;
|
523 |
+
}
|
524 |
+
|
525 |
.rtl.trackship_admin_settings #wpcontent {
|
526 |
padding-right: 0;
|
527 |
}
|
528 |
+
.rtl .woocommerce.zorem_admin_layout table.form-table.heading-table td h3.tracking_page_heading{
|
529 |
margin-right: 25px;
|
530 |
}
|
531 |
.rtl ul.trackship_dashboard_ul li{
|
545 |
margin-right: 25px;
|
546 |
}
|
547 |
.rtl .tracking_page_desc{
|
|
|
|
|
548 |
margin-right: 25px;
|
549 |
}
|
550 |
.rtl .shipment-status-email-table td:last-child{
|
551 |
text-align: left;
|
552 |
}
|
553 |
+
.rtl .woocommerce.zorem_admin_layout .get_shipment_status_tool.border_0 table.form-table td{
|
554 |
text-align: left;
|
555 |
}
|
556 |
.rtl .settings_ul .setting_ul_checkbox_label{
|
557 |
margin-right: 10px;
|
558 |
margin-left: auto;
|
559 |
}
|
560 |
+
.rtl .trackship_status_table tr td:last-child{
|
561 |
text-align: left;
|
562 |
}
|
563 |
+
.rtl .ts_customizer_btn{
|
564 |
+
right: auto;
|
565 |
+
left: 25px;
|
566 |
}
|
567 |
|
568 |
+
|
569 |
+
@media screen and (max-width: 782px) {
|
570 |
+
.trackship_status_section {
|
571 |
width: auto;
|
572 |
+
float: none;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
}
|
574 |
}
|
assets/images/addon-icon.png
ADDED
Binary file
|
assets/images/paypal-addon-banner.png
ADDED
Binary file
|
assets/images/tpi-addon-icon.png
ADDED
Binary file
|
assets/{shipment-provider-img → images}/usps.png
RENAMED
File without changes
|
assets/js/admin.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
jQuery(function(a){var b={init:function(){a("#woocommerce-shipment-tracking").on("click","a.delete-tracking",this.delete_tracking).on("click","button.button-show-form",this.show_form).on("click","button.button-save-form",this.save_form)},save_form:function(){if(!a("input#tracking_number").val())return!1;a("#shipment-tracking-form").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var b={action:"wc_shipment_tracking_save_form",order_id:woocommerce_admin_meta_boxes.post_id,tracking_provider:a("#tracking_provider").val(),custom_tracking_provider:a("#custom_tracking_provider").val(),custom_tracking_link:a("input#custom_tracking_link").val(),tracking_number:a("input#tracking_number").val(),date_shipped:a("input#date_shipped").val(),security:a("#wc_shipment_tracking_create_nonce").val()};return a.post(woocommerce_admin_meta_boxes.ajax_url,b,function(b){a("#shipment-tracking-form").unblock(),"-1"!=b&&(a("#shipment-tracking-form").hide(),a("#woocommerce-shipment-tracking #tracking-items").append(b),a("#woocommerce-shipment-tracking button.button-show-form").show(),a("#tracking_provider").selectedIndex=0,a("#custom_tracking_provider").val(""),a("input#custom_tracking_link").val(""),a("input#tracking_number").val(""),a("input#date_shipped").val(""),a("p.preview_tracking_link").hide())}),!1},show_form:function(){a("#shipment-tracking-form").show(),a("#woocommerce-shipment-tracking button.button-show-form").hide()},delete_tracking:function(){var b=a(this).attr("rel");a("#tracking-item-"+b).block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var c={action:"wc_shipment_tracking_delete_item",order_id:woocommerce_admin_meta_boxes.post_id,tracking_id:b,security:a("#wc_shipment_tracking_delete_nonce").val()};return a.post(woocommerce_admin_meta_boxes.ajax_url,c,function(c){a("#tracking-item-"+b).unblock(),"-1"!=c&&a("#tracking-item-"+b).remove()}),!1},refresh_items:function(){var b={action:"wc_shipment_tracking_get_items",order_id:woocommerce_admin_meta_boxes.post_id,security:a("#wc_shipment_tracking_get_nonce").val()};a("#woocommerce-shipment-tracking").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),a.post(woocommerce_admin_meta_boxes.ajax_url,b,function(b){a("#woocommerce-shipment-tracking").unblock(),"-1"!=b&&a("#woocommerce-shipment-tracking #tracking-items").html(b)})}};b.init(),window.wc_shipment_tracking_refresh=b.refresh_items});
|
|
assets/js/amcharts/amcharts.js
DELETED
@@ -1,403 +0,0 @@
|
|
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
DELETED
@@ -1 +0,0 @@
|
|
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
DELETED
@@ -1,9 +0,0 @@
|
|
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
@@ -7,273 +7,18 @@ jQuery(document).ready(function() {
|
|
7 |
|
8 |
/**
|
9 |
* Change description
|
10 |
-
*/
|
11 |
-
//jQuery(wcast_customizer.trigger_click).trigger( "click" );
|
12 |
jQuery('#customize-theme-controls #accordion-section-themes').hide();
|
13 |
|
14 |
if(wcast_customizer.wcast_enable_delivered_email == 'yes'){
|
15 |
jQuery('#customize-control-wcast_delivered_email_settings-wcast_enable_delivered_status_email input').prop('disabled', true);
|
16 |
-
}
|
17 |
-
|
18 |
-
if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") != true){
|
19 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
|
20 |
-
}
|
21 |
-
|
22 |
-
if(jQuery("#customize-control-tracking_info_settings-hide_trackig_header input").prop("checked") == true){
|
23 |
-
jQuery('#customize-control-tracking_info_settings-header_text_change').hide();
|
24 |
-
}
|
25 |
|
26 |
if(jQuery("#customize-control-woocommerce_customer_delivered_order_settings-wcast_enable_delivered_ga_tracking input").prop("checked") != true){
|
27 |
jQuery('#customize-control-woocommerce_customer_delivered_order_settings-wcast_delivered_analytics_link').hide();
|
28 |
-
}
|
29 |
-
if(jQuery('#customize-control-tracking_info_settings-hide_table_header input').prop("checked") == true){
|
30 |
-
jQuery('#customize-control-tracking_info_settings-provider_header_text').hide();
|
31 |
-
jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').hide();
|
32 |
-
jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').hide();
|
33 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
|
34 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
|
35 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_size').hide();
|
36 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_color').hide();
|
37 |
-
} else{
|
38 |
-
jQuery('#customize-control-tracking_info_settings-provider_header_text').show();
|
39 |
-
jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').show();
|
40 |
-
jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').show();
|
41 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').show();
|
42 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_size').show();
|
43 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_color').show();
|
44 |
-
if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") == true){
|
45 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').show();
|
46 |
-
} else{
|
47 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
|
48 |
-
}
|
49 |
-
}
|
50 |
-
|
51 |
-
if(jQuery('#customize-control-tracking_info_settings-tracking_number_link input').prop("checked") == true){
|
52 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
|
53 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
|
54 |
-
jQuery('#customize-control-tracking_info_settings-shipment_link_header').hide();
|
55 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').hide();
|
56 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').hide();
|
57 |
-
} else{
|
58 |
-
if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") == true && jQuery('#customize-control-tracking_info_settings-tracking_number_link input').prop("checked") != true){
|
59 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').show();
|
60 |
-
}
|
61 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').show();
|
62 |
-
jQuery('#customize-control-tracking_info_settings-shipment_link_header').show();
|
63 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').show();
|
64 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').show();
|
65 |
-
}
|
66 |
-
|
67 |
-
var tracking_template = jQuery(".tracking_template_select").val();
|
68 |
-
if(tracking_template == 'simple_list'){
|
69 |
-
jQuery('#customize-control-tracking_info_settings-table_content_header').css('display','none');
|
70 |
-
jQuery('#customize-control-tracking_info_settings-display_shipment_provider_image').css('display','none');
|
71 |
-
jQuery('#customize-control-tracking_info_settings-display_shipment_provider_name').css('display','none');
|
72 |
-
jQuery('#customize-control-tracking_info_settings-remove_date_from_tracking').css('display','none');
|
73 |
-
jQuery('#customize-control-tracking_info_settings-table_header_block').css('display','none');
|
74 |
-
jQuery('#customize-control-tracking_info_settings-hide_table_header').css('display','none');
|
75 |
-
jQuery('#customize-control-tracking_info_settings-provider_header_text').css('display','none');
|
76 |
-
jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').css('display','none');
|
77 |
-
jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').css('display','none');
|
78 |
-
jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').css('display','none');
|
79 |
-
jQuery('#customize-control-tracking_info_settings-tracking_number_link').css('display','none');
|
80 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').css('display','none');
|
81 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').css('display','none');
|
82 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_size').css('display','none');
|
83 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_color').css('display','none');
|
84 |
-
jQuery('#customize-control-table_header').css('display','none');
|
85 |
-
jQuery('#customize-control-tracking_info_settings-table_padding').css('display','none');
|
86 |
-
jQuery('#customize-control-tracking_info_settings-table_bg_color').css('display','none');
|
87 |
-
jQuery('#customize-control-tracking_info_settings-table_border_color').css('display','none');
|
88 |
-
jQuery('#customize-control-tracking_info_settings-table_border_size').css('display','none');
|
89 |
-
jQuery('#customize-control-tracking_info_settings-header_content_text_align').css('display','none');
|
90 |
-
jQuery('#customize-control-tracking_info_settings-table_content_font_size').css('display','none');
|
91 |
-
jQuery('#customize-control-tracking_info_settings-table_content_font_color').css('display','none');
|
92 |
-
jQuery('#customize-control-tracking_info_settings-table_content_line_height').css('display','none');
|
93 |
-
jQuery('#customize-control-tracking_info_settings-table_content_font_weight').css('display','none');
|
94 |
-
jQuery('#customize-control-tracking_info_settings-shipment_link_header').css('display','none');
|
95 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').css('display','none');
|
96 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').css('display','none');
|
97 |
-
jQuery('#customize-control-tracking_info_settings-table_design_options').css('display','none');
|
98 |
-
jQuery('#customize-control-tracking_info_settings-table_header_bg_color').css('display','none');
|
99 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_weight').css('display','none');
|
100 |
-
jQuery('#customize-control-tracking_info_settings-simple_content_header').css('display','block');
|
101 |
-
jQuery('#customize-control-tracking_info_settings-simple_layout_content').css('display','block');
|
102 |
-
jQuery('#customize-control-tracking_info_settings-simple_content_variables').css('display','block');
|
103 |
-
jQuery('#customize-control-tracking_info_settings-simple_provider_font_size').css('display','block');
|
104 |
-
jQuery('#customize-control-tracking_info_settings-simple_provider_font_color').css('display','block');
|
105 |
-
jQuery('#customize-control-tracking_info_settings-show_provider_border').css('display','block');
|
106 |
-
|
107 |
-
if(jQuery('#customize-control-tracking_info_settings-show_provider_border input').prop("checked") == true){
|
108 |
-
jQuery('#customize-control-tracking_info_settings-provider_border_color').css('display','block');
|
109 |
-
}
|
110 |
-
} else{
|
111 |
-
jQuery('#customize-control-tracking_info_settings-simple_content_header').css('display','none');
|
112 |
-
jQuery('#customize-control-tracking_info_settings-simple_layout_content').css('display','none');
|
113 |
-
jQuery('#customize-control-tracking_info_settings-simple_content_variables').css('display','none');
|
114 |
-
jQuery('#customize-control-tracking_info_settings-simple_provider_font_size').css('display','none');
|
115 |
-
jQuery('#customize-control-tracking_info_settings-simple_provider_font_color').css('display','none');
|
116 |
-
jQuery('#customize-control-tracking_info_settings-show_provider_border').css('display','none');
|
117 |
-
jQuery('#customize-control-tracking_info_settings-provider_border_color').css('display','none');
|
118 |
-
}
|
119 |
-
});
|
120 |
-
|
121 |
-
jQuery(document).on("click", "#customize-control-tracking_info_settings-show_provider_border input", function(){
|
122 |
-
if(jQuery(this).prop("checked") == true){
|
123 |
-
jQuery('#customize-control-tracking_info_settings-provider_border_color').show();
|
124 |
-
} else{
|
125 |
-
jQuery('#customize-control-tracking_info_settings-provider_border_color').hide();
|
126 |
-
}
|
127 |
-
});
|
128 |
-
|
129 |
-
jQuery(document).on("click", "#customize-control-tracking_info_settings-hide_trackig_header input", function(){
|
130 |
-
if(jQuery(this).prop("checked") == true){
|
131 |
-
jQuery('#customize-control-tracking_info_settings-header_text_change').hide();
|
132 |
-
} else{
|
133 |
-
jQuery('#customize-control-tracking_info_settings-header_text_change').show();
|
134 |
-
}
|
135 |
-
});
|
136 |
-
|
137 |
-
jQuery(document).on("change", ".tracking_template_select", function(){
|
138 |
-
var tracking_template = jQuery(this).val();
|
139 |
-
|
140 |
-
if(tracking_template == 'simple_list'){
|
141 |
-
jQuery('#customize-control-tracking_info_settings-table_content_header').css('display','none');
|
142 |
-
jQuery('#customize-control-tracking_info_settings-display_shipment_provider_image').css('display','none');
|
143 |
-
jQuery('#customize-control-tracking_info_settings-display_shipment_provider_name').css('display','none');
|
144 |
-
jQuery('#customize-control-tracking_info_settings-remove_date_from_tracking').css('display','none');
|
145 |
-
jQuery('#customize-control-tracking_info_settings-table_header_block').css('display','none');
|
146 |
-
jQuery('#customize-control-tracking_info_settings-hide_table_header').css('display','none');
|
147 |
-
jQuery('#customize-control-tracking_info_settings-provider_header_text').css('display','none');
|
148 |
-
jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').css('display','none');
|
149 |
-
jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').css('display','none');
|
150 |
-
jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').css('display','none');
|
151 |
-
jQuery('#customize-control-tracking_info_settings-tracking_number_link').css('display','none');
|
152 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').css('display','none');
|
153 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').css('display','none');
|
154 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_size').css('display','none');
|
155 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_color').css('display','none');
|
156 |
-
jQuery('#customize-control-table_header').css('display','none');
|
157 |
-
jQuery('#customize-control-tracking_info_settings-table_padding').css('display','none');
|
158 |
-
jQuery('#customize-control-tracking_info_settings-table_bg_color').css('display','none');
|
159 |
-
jQuery('#customize-control-tracking_info_settings-table_border_color').css('display','none');
|
160 |
-
jQuery('#customize-control-tracking_info_settings-table_border_size').css('display','none');
|
161 |
-
jQuery('#customize-control-tracking_info_settings-header_content_text_align').css('display','none');
|
162 |
-
jQuery('#customize-control-tracking_info_settings-table_content_font_size').css('display','none');
|
163 |
-
jQuery('#customize-control-tracking_info_settings-table_content_font_color').css('display','none');
|
164 |
-
jQuery('#customize-control-tracking_info_settings-table_content_line_height').css('display','none');
|
165 |
-
jQuery('#customize-control-tracking_info_settings-table_content_font_weight').css('display','none');
|
166 |
-
jQuery('#customize-control-tracking_info_settings-shipment_link_header').css('display','none');
|
167 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').css('display','none');
|
168 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').css('display','none');
|
169 |
-
jQuery('#customize-control-tracking_info_settings-table_design_options').css('display','none');
|
170 |
-
jQuery('#customize-control-tracking_info_settings-table_header_bg_color').css('display','none');
|
171 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_weight').css('display','none');
|
172 |
-
jQuery('#customize-control-tracking_info_settings-simple_content_header').css('display','block');
|
173 |
-
jQuery('#customize-control-tracking_info_settings-simple_layout_content').css('display','block');
|
174 |
-
jQuery('#customize-control-tracking_info_settings-simple_content_variables').css('display','block');
|
175 |
-
jQuery('#customize-control-tracking_info_settings-simple_provider_font_size').css('display','block');
|
176 |
-
jQuery('#customize-control-tracking_info_settings-simple_provider_font_color').css('display','block');
|
177 |
-
jQuery('#customize-control-tracking_info_settings-show_provider_border').css('display','block');
|
178 |
-
if(jQuery('#customize-control-tracking_info_settings-show_provider_border input').prop("checked") == true){
|
179 |
-
jQuery('#customize-control-tracking_info_settings-provider_border_color').css('display','block');
|
180 |
-
}
|
181 |
-
} else{
|
182 |
-
jQuery('#customize-control-tracking_info_settings-simple_content_header').css('display','none');
|
183 |
-
jQuery('#customize-control-tracking_info_settings-simple_layout_content').css('display','none');
|
184 |
-
jQuery('#customize-control-tracking_info_settings-simple_content_variables').css('display','none');
|
185 |
-
jQuery('#customize-control-tracking_info_settings-simple_provider_font_size').css('display','none');
|
186 |
-
jQuery('#customize-control-tracking_info_settings-simple_provider_font_color').css('display','none');
|
187 |
-
jQuery('#customize-control-tracking_info_settings-show_provider_border').css('display','none');
|
188 |
-
jQuery('#customize-control-tracking_info_settings-provider_border_color').css('display','none');
|
189 |
-
jQuery('#customize-control-tracking_info_settings-table_content_header').css('display','block');
|
190 |
-
jQuery('#customize-control-tracking_info_settings-display_shipment_provider_image').css('display','block');
|
191 |
-
jQuery('#customize-control-tracking_info_settings-display_shipment_provider_name').css('display','block');
|
192 |
-
jQuery('#customize-control-tracking_info_settings-remove_date_from_tracking').css('display','block');
|
193 |
-
jQuery('#customize-control-tracking_info_settings-table_header_block').css('display','block');
|
194 |
-
jQuery('#customize-control-show_table_header').css('display','block');
|
195 |
-
jQuery('#customize-control-tracking_info_settings-tracking_number_link').css('display','block');
|
196 |
-
jQuery('#customize-control-table_header').css('display','block');
|
197 |
-
jQuery('#customize-control-tracking_info_settings-table_padding').css('display','block');
|
198 |
-
jQuery('#customize-control-tracking_info_settings-table_bg_color').css('display','block');
|
199 |
-
jQuery('#customize-control-tracking_info_settings-table_border_color').css('display','block');
|
200 |
-
jQuery('#customize-control-tracking_info_settings-table_border_size').css('display','block');
|
201 |
-
jQuery('#customize-control-tracking_info_settings-header_content_text_align').css('display','block');
|
202 |
-
jQuery('#customize-control-tracking_info_settings-table_content_font_size').css('display','block');
|
203 |
-
jQuery('#customize-control-tracking_info_settings-table_content_font_color').css('display','block');
|
204 |
-
jQuery('#customize-control-tracking_info_settings-table_content_line_height').css('display','block');
|
205 |
-
jQuery('#customize-control-tracking_info_settings-table_content_font_weight').css('display','block');
|
206 |
-
jQuery('#customize-control-tracking_info_settings-hide_table_header').css('display','block');
|
207 |
-
jQuery('#customize-control-tracking_info_settings-table_design_options').css('display','block');
|
208 |
-
jQuery('#customize-control-tracking_info_settings-table_header_bg_color').css('display','block');
|
209 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_weight').css('display','block');
|
210 |
-
if(jQuery('#customize-control-tracking_info_settings-hide_table_header input').prop("checked") != true){
|
211 |
-
jQuery('#customize-control-tracking_info_settings-provider_header_text').css('display','block');
|
212 |
-
jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').css('display','block');
|
213 |
-
jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').css('display','block');
|
214 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_size').css('display','block');
|
215 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_color').css('display','block');
|
216 |
-
}
|
217 |
-
if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") == true && jQuery('#customize-control-tracking_info_settings-tracking_number_link input').prop("checked") != true){
|
218 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').css('display','block');
|
219 |
-
}
|
220 |
-
if(jQuery('#customize-control-tracking_info_settings-tracking_number_link input').prop("checked") != true){
|
221 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').css('display','block');
|
222 |
-
jQuery('#customize-control-tracking_info_settings-shipment_link_header').css('display','block');
|
223 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').css('display','block');
|
224 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').css('display','block');
|
225 |
-
}
|
226 |
-
}
|
227 |
-
});
|
228 |
-
jQuery(document).on("change", "#customize-control-tracking_info_settings-tracking_number_link input", function(){
|
229 |
-
if(jQuery(this).prop("checked") == true){
|
230 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
|
231 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
|
232 |
-
jQuery('#customize-control-tracking_info_settings-shipment_link_header').hide();
|
233 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').hide();
|
234 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').hide();
|
235 |
-
} else{
|
236 |
-
if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") == true){
|
237 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').show();
|
238 |
-
}
|
239 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').show();
|
240 |
-
jQuery('#customize-control-tracking_info_settings-shipment_link_header').show();
|
241 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_bg_color').show();
|
242 |
-
jQuery('#customize-control-tracking_info_settings-tracking_link_font_color').show();
|
243 |
-
}
|
244 |
-
});
|
245 |
-
|
246 |
-
jQuery(document).on("change", "#customize-control-tracking_info_settings-show_track_label input", function(){
|
247 |
-
if(jQuery(this).prop("checked") == true){
|
248 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').show();
|
249 |
-
} else{
|
250 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
|
251 |
-
}
|
252 |
});
|
253 |
|
254 |
-
jQuery(document).on("change", "#customize-control-tracking_info_settings-hide_table_header input", function(){
|
255 |
-
if(jQuery(this).prop("checked") == true){
|
256 |
-
jQuery('#customize-control-tracking_info_settings-provider_header_text').hide();
|
257 |
-
jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').hide();
|
258 |
-
jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').hide();
|
259 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
|
260 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').hide();
|
261 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').hide();
|
262 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_size').hide();
|
263 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_color').hide();
|
264 |
-
} else{
|
265 |
-
jQuery('#customize-control-tracking_info_settings-provider_header_text').show();
|
266 |
-
jQuery('#customize-control-tracking_info_settings-tracking_number_header_text').show();
|
267 |
-
jQuery('#customize-control-tracking_info_settings-shipped_date_header_text').show();
|
268 |
-
jQuery('#customize-control-tracking_info_settings-show_track_label').show();
|
269 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').show();
|
270 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_size').show();
|
271 |
-
jQuery('#customize-control-tracking_info_settings-table_header_font_color').show();
|
272 |
-
if(jQuery("#customize-control-tracking_info_settings-show_track_label input").prop("checked") == true){
|
273 |
-
jQuery('#customize-control-tracking_info_settings-track_header_text').show();
|
274 |
-
}
|
275 |
-
}
|
276 |
-
});
|
277 |
jQuery(document).on("change", "#customize-control-woocommerce_customer_delivered_order_settings-wcast_enable_delivered_ga_tracking input", function(){
|
278 |
if(jQuery(this).prop("checked") == true){
|
279 |
jQuery('#customize-control-woocommerce_customer_delivered_order_settings-wcast_delivered_analytics_link').show();
|
@@ -281,6 +26,7 @@ jQuery(document).on("change", "#customize-control-woocommerce_customer_delivered
|
|
281 |
jQuery('#customize-control-woocommerce_customer_delivered_order_settings-wcast_delivered_analytics_link').hide();
|
282 |
}
|
283 |
});
|
|
|
284 |
jQuery(document).on("change", "#_customize-input-customizer_delivered_order_settings_enabled", function(){
|
285 |
if(jQuery(this).prop("checked") == true){
|
286 |
jQuery('#customize-control-wcast_delivered_email_settings-wcast_enable_delivered_status_email input').prop('disabled', true);
|
@@ -335,10 +81,8 @@ jQuery(document).on("change", "#_customize-input-customizer_delivered_order_sett
|
|
335 |
if ( isExpanded ) {
|
336 |
jQuery('#save').trigger('click');
|
337 |
var order_status = jQuery(".preview_email_type option:selected").val();
|
338 |
-
|
339 |
-
|
340 |
-
api.previewer.previewUrl.set( url );
|
341 |
-
} else if(order_status == 'partially_shipped'){
|
342 |
url = wcast_customizer.partial_shipped_email_preview_url;
|
343 |
api.previewer.previewUrl.set( url );
|
344 |
} else if(order_status == 'updated_tracking'){
|
@@ -351,7 +95,7 @@ jQuery(document).on("change", "#_customize-input-customizer_delivered_order_sett
|
|
351 |
} ( wp.customize ) );
|
352 |
|
353 |
(function ( api ) {
|
354 |
-
api.section( '
|
355 |
section.expanded.bind( function( isExpanded ) {
|
356 |
var url;
|
357 |
if ( isExpanded ) {
|
@@ -399,135 +143,12 @@ jQuery(document).on("change", "#_customize-input-customizer_delivered_order_sett
|
|
399 |
} ( wp.customize ) );
|
400 |
|
401 |
(function ( api ) {
|
402 |
-
api.section( '
|
403 |
section.expanded.bind( function( isExpanded ) {
|
404 |
var url;
|
405 |
if ( isExpanded ) {
|
406 |
jQuery('#save').trigger('click');
|
407 |
-
url = wcast_customizer.
|
408 |
-
api.previewer.previewUrl.set( url );
|
409 |
-
}
|
410 |
-
} );
|
411 |
-
} );
|
412 |
-
} ( wp.customize ) );
|
413 |
-
|
414 |
-
(function ( api ) {
|
415 |
-
api.section( 'ast_tracking_table_section', function( section ) {
|
416 |
-
section.expanded.bind( function( isExpanded ) {
|
417 |
-
var url;
|
418 |
-
if ( isExpanded ) {
|
419 |
-
jQuery('#save').trigger('click');
|
420 |
-
url = wcast_customizer.tracking_preview_url;
|
421 |
-
api.previewer.previewUrl.set( url );
|
422 |
-
}
|
423 |
-
} );
|
424 |
-
} );
|
425 |
-
} ( wp.customize ) );
|
426 |
-
|
427 |
-
(function ( api ) {
|
428 |
-
api.section( 'ast_tracking_per_item', function( section ) {
|
429 |
-
section.expanded.bind( function( isExpanded ) {
|
430 |
-
var url;
|
431 |
-
if ( isExpanded ) {
|
432 |
-
jQuery('#save').trigger('click');
|
433 |
-
url = wcast_customizer.tracking_preview_url;
|
434 |
-
api.previewer.previewUrl.set( url );
|
435 |
-
}
|
436 |
-
} );
|
437 |
-
} );
|
438 |
-
} ( wp.customize ) );
|
439 |
-
|
440 |
-
(function ( api ) {
|
441 |
-
api.section( 'customer_failure_email', function( section ) {
|
442 |
-
section.expanded.bind( function( isExpanded ) {
|
443 |
-
var url;
|
444 |
-
if ( isExpanded ) {
|
445 |
-
jQuery('#save').trigger('click');
|
446 |
-
url = wcast_customizer.customer_failure_preview_url;
|
447 |
-
api.previewer.previewUrl.set( url );
|
448 |
-
}
|
449 |
-
} );
|
450 |
-
} );
|
451 |
-
} ( wp.customize ) );
|
452 |
-
(function ( api ) {
|
453 |
-
api.section( 'customer_intransit_email', function( section ) {
|
454 |
-
section.expanded.bind( function( isExpanded ) {
|
455 |
-
var url;
|
456 |
-
if ( isExpanded ) {
|
457 |
-
jQuery('#save').trigger('click');
|
458 |
-
url = wcast_customizer.customer_intransit_preview_url;
|
459 |
-
api.previewer.previewUrl.set( url );
|
460 |
-
}
|
461 |
-
} );
|
462 |
-
} );
|
463 |
-
} ( wp.customize ) );
|
464 |
-
(function ( api ) {
|
465 |
-
api.section( 'customer_onhold_email', function( section ) {
|
466 |
-
section.expanded.bind( function( isExpanded ) {
|
467 |
-
var url;
|
468 |
-
if ( isExpanded ) {
|
469 |
-
jQuery('#save').trigger('click');
|
470 |
-
url = wcast_customizer.customer_onhold_preview_url;
|
471 |
-
api.previewer.previewUrl.set( url );
|
472 |
-
}
|
473 |
-
} );
|
474 |
-
} );
|
475 |
-
} ( wp.customize ) );
|
476 |
-
(function ( api ) {
|
477 |
-
api.section( 'customer_outfordelivery_email', function( section ) {
|
478 |
-
section.expanded.bind( function( isExpanded ) {
|
479 |
-
var url;
|
480 |
-
if ( isExpanded ) {
|
481 |
-
jQuery('#save').trigger('click');
|
482 |
-
url = wcast_customizer.customer_outfordelivery_preview_url;
|
483 |
-
api.previewer.previewUrl.set( url );
|
484 |
-
}
|
485 |
-
} );
|
486 |
-
} );
|
487 |
-
} ( wp.customize ) );
|
488 |
-
(function ( api ) {
|
489 |
-
api.section( 'customer_delivered_status_email', function( section ) {
|
490 |
-
section.expanded.bind( function( isExpanded ) {
|
491 |
-
var url;
|
492 |
-
if ( isExpanded ) {
|
493 |
-
jQuery('#save').trigger('click');
|
494 |
-
url = wcast_customizer.customer_delivered_preview_url;
|
495 |
-
api.previewer.previewUrl.set( url );
|
496 |
-
}
|
497 |
-
} );
|
498 |
-
} );
|
499 |
-
} ( wp.customize ) );
|
500 |
-
(function ( api ) {
|
501 |
-
api.section( 'customer_returntosender_email', function( section ) {
|
502 |
-
section.expanded.bind( function( isExpanded ) {
|
503 |
-
var url;
|
504 |
-
if ( isExpanded ) {
|
505 |
-
jQuery('#save').trigger('click');
|
506 |
-
url = wcast_customizer.customer_returntosender_preview_url;
|
507 |
-
api.previewer.previewUrl.set( url );
|
508 |
-
}
|
509 |
-
} );
|
510 |
-
} );
|
511 |
-
} ( wp.customize ) );
|
512 |
-
(function ( api ) {
|
513 |
-
api.section( 'customer_availableforpickup_email', function( section ) {
|
514 |
-
section.expanded.bind( function( isExpanded ) {
|
515 |
-
var url;
|
516 |
-
if ( isExpanded ) {
|
517 |
-
jQuery('#save').trigger('click');
|
518 |
-
url = wcast_customizer.customer_availableforpickup_preview_url;
|
519 |
-
api.previewer.previewUrl.set( url );
|
520 |
-
}
|
521 |
-
} );
|
522 |
-
} );
|
523 |
-
} ( wp.customize ) );
|
524 |
-
(function ( api ) {
|
525 |
-
api.section( 'admin_late_shipments_email', function( section ) {
|
526 |
-
section.expanded.bind( function( isExpanded ) {
|
527 |
-
var url;
|
528 |
-
if ( isExpanded ) {
|
529 |
-
jQuery('#save').trigger('click');
|
530 |
-
url = wcast_customizer.admin_late_shipments_preview_url;
|
531 |
api.previewer.previewUrl.set( url );
|
532 |
}
|
533 |
} );
|
@@ -556,21 +177,18 @@ jQuery(document).on("change", ".preview_order_select", function(){
|
|
556 |
|
557 |
wp.customize( 'wcast_order_status_email_type', function( value ) {
|
558 |
value.bind( function( wcast_order_status_email_type ) {
|
559 |
-
if(wcast_order_status_email_type == '
|
560 |
-
wp.customize.previewer.previewUrl(wcast_customizer.email_preview_url);
|
561 |
-
wp.customize.previewer.refresh();
|
562 |
-
} else if(wcast_order_status_email_type == 'partially_shipped'){
|
563 |
wp.customize.previewer.previewUrl(wcast_customizer.partial_shipped_email_preview_url);
|
564 |
wp.customize.previewer.refresh();
|
565 |
} else if(wcast_order_status_email_type == 'updated_tracking'){
|
566 |
wp.customize.previewer.previewUrl(wcast_customizer.updated_tracking_email_preview_url);
|
567 |
wp.customize.previewer.refresh();
|
568 |
-
}
|
569 |
});
|
570 |
});
|
571 |
jQuery(document).ready(function() {
|
572 |
var email_type = wcast_customizer.email_type;
|
573 |
-
jQuery(".preview_email_type").val(email_type);
|
574 |
|
575 |
var shipment_status = wcast_customizer.shipment_status;
|
576 |
jQuery(".preview_shipment_status_type").val(shipment_status);
|
7 |
|
8 |
/**
|
9 |
* Change description
|
10 |
+
*/
|
|
|
11 |
jQuery('#customize-theme-controls #accordion-section-themes').hide();
|
12 |
|
13 |
if(wcast_customizer.wcast_enable_delivered_email == 'yes'){
|
14 |
jQuery('#customize-control-wcast_delivered_email_settings-wcast_enable_delivered_status_email input').prop('disabled', true);
|
15 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
if(jQuery("#customize-control-woocommerce_customer_delivered_order_settings-wcast_enable_delivered_ga_tracking input").prop("checked") != true){
|
18 |
jQuery('#customize-control-woocommerce_customer_delivered_order_settings-wcast_delivered_analytics_link').hide();
|
19 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
});
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
jQuery(document).on("change", "#customize-control-woocommerce_customer_delivered_order_settings-wcast_enable_delivered_ga_tracking input", function(){
|
23 |
if(jQuery(this).prop("checked") == true){
|
24 |
jQuery('#customize-control-woocommerce_customer_delivered_order_settings-wcast_delivered_analytics_link').show();
|
26 |
jQuery('#customize-control-woocommerce_customer_delivered_order_settings-wcast_delivered_analytics_link').hide();
|
27 |
}
|
28 |
});
|
29 |
+
|
30 |
jQuery(document).on("change", "#_customize-input-customizer_delivered_order_settings_enabled", function(){
|
31 |
if(jQuery(this).prop("checked") == true){
|
32 |
jQuery('#customize-control-wcast_delivered_email_settings-wcast_enable_delivered_status_email input').prop('disabled', true);
|
81 |
if ( isExpanded ) {
|
82 |
jQuery('#save').trigger('click');
|
83 |
var order_status = jQuery(".preview_email_type option:selected").val();
|
84 |
+
|
85 |
+
if(order_status == 'partially_shipped'){
|
|
|
|
|
86 |
url = wcast_customizer.partial_shipped_email_preview_url;
|
87 |
api.previewer.previewUrl.set( url );
|
88 |
} else if(order_status == 'updated_tracking'){
|
95 |
} ( wp.customize ) );
|
96 |
|
97 |
(function ( api ) {
|
98 |
+
api.section( 'trackship_shipment_status_email', function( section ) {
|
99 |
section.expanded.bind( function( isExpanded ) {
|
100 |
var url;
|
101 |
if ( isExpanded ) {
|
143 |
} ( wp.customize ) );
|
144 |
|
145 |
(function ( api ) {
|
146 |
+
api.section( 'ast_tracking_page_section', function( section ) {
|
147 |
section.expanded.bind( function( isExpanded ) {
|
148 |
var url;
|
149 |
if ( isExpanded ) {
|
150 |
jQuery('#save').trigger('click');
|
151 |
+
url = wcast_customizer.tracking_page_preview_url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
api.previewer.previewUrl.set( url );
|
153 |
}
|
154 |
} );
|
177 |
|
178 |
wp.customize( 'wcast_order_status_email_type', function( value ) {
|
179 |
value.bind( function( wcast_order_status_email_type ) {
|
180 |
+
if(wcast_order_status_email_type == 'partially_shipped'){
|
|
|
|
|
|
|
181 |
wp.customize.previewer.previewUrl(wcast_customizer.partial_shipped_email_preview_url);
|
182 |
wp.customize.previewer.refresh();
|
183 |
} else if(wcast_order_status_email_type == 'updated_tracking'){
|
184 |
wp.customize.previewer.previewUrl(wcast_customizer.updated_tracking_email_preview_url);
|
185 |
wp.customize.previewer.refresh();
|
186 |
+
}
|
187 |
});
|
188 |
});
|
189 |
jQuery(document).ready(function() {
|
190 |
var email_type = wcast_customizer.email_type;
|
191 |
+
jQuery(".preview_email_type").val(email_type);
|
192 |
|
193 |
var shipment_status = wcast_customizer.shipment_status;
|
194 |
jQuery(".preview_shipment_status_type").val(shipment_status);
|
assets/js/settings.js
CHANGED
@@ -91,14 +91,6 @@ jQuery( document ).ready(function() {
|
|
91 |
|
92 |
jQuery('.color_field input').wpColorPicker();
|
93 |
});
|
94 |
-
jQuery(document).on("change", "#wc_ast_status_label_font_color", function(){
|
95 |
-
var font_color = jQuery(this).val();
|
96 |
-
jQuery('.order-status-table .order-label.wc-delivered').css('color',font_color);
|
97 |
-
});
|
98 |
-
jQuery(document).on("change", "#wc_ast_shipped_status_label_font_color", function(){
|
99 |
-
var font_color = jQuery(this).val();
|
100 |
-
jQuery('.order-status-table .order-label.wc-shipped').css('color',font_color);
|
101 |
-
});
|
102 |
jQuery(document).on("change", "#wc_ast_status_partial_shipped_label_font_color", function(){
|
103 |
var font_color = jQuery(this).val();
|
104 |
jQuery('.order-status-table .order-label.wc-partially-shipped').css('color',font_color);
|
91 |
|
92 |
jQuery('.color_field input').wpColorPicker();
|
93 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
jQuery(document).on("change", "#wc_ast_status_partial_shipped_label_font_color", function(){
|
95 |
var font_color = jQuery(this).val();
|
96 |
jQuery('.order-status-table .order-label.wc-partially-shipped').css('color',font_color);
|
assets/js/shipping_row.js
CHANGED
@@ -1,9 +1,6 @@
|
|
1 |
( function( $, data, wp, ajaxurl ) {
|
2 |
|
3 |
-
var $wc_ast_settings_form = $("#wc_ast_settings_form");
|
4 |
-
var $wc_ast_trackship_form = $("#wc_ast_trackship_form");
|
5 |
-
var $wc_ast_addons_form = $("#wc_ast_addons_form");
|
6 |
-
|
7 |
|
8 |
var wc_table_rate_rows = {
|
9 |
|
@@ -63,40 +60,42 @@ jQuery(document).on("change", ".wc_ast_default_provider", function(){
|
|
63 |
}
|
64 |
});
|
65 |
});
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
// If the media frame already exists, reopen it.
|
73 |
-
if (file_frame) {
|
74 |
-
file_frame.open();
|
75 |
-
return;
|
76 |
-
}
|
77 |
-
|
78 |
-
// Create the media frame.
|
79 |
-
file_frame = wp.media.frames.file_frame = wp.media({
|
80 |
-
title: 'Upload Media',
|
81 |
-
button: {
|
82 |
-
text: 'Add',
|
83 |
-
},
|
84 |
-
multiple: false // Set to true to allow multiple files to be selected
|
85 |
-
});
|
86 |
|
87 |
-
|
88 |
-
|
89 |
-
attachment = file_frame.state().get('selection').first().toJSON();
|
90 |
-
var id = attachment.id;
|
91 |
-
var url = attachment.url;
|
92 |
-
image_path.val(url);
|
93 |
-
image_id.val(id);
|
94 |
-
});
|
95 |
-
// Finally, open the modal
|
96 |
file_frame.open();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
});
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
|
|
|
100 |
jQuery('.csv_upload_status li').remove();
|
101 |
jQuery('.bulk_upload_status_tr').hide();
|
102 |
jQuery('.progress_title').hide();
|
@@ -131,54 +130,52 @@ jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
|
|
131 |
return false;
|
132 |
}
|
133 |
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
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 |
-
|
166 |
-
|
|
|
|
|
167 |
var csv_length = trackings.length;
|
|
|
168 |
|
169 |
jQuery("#wc_ast_upload_csv_form")[0].reset();
|
170 |
-
|
171 |
jQuery(".progress-moved .progress-bar2").css('width',0+'%');
|
172 |
-
|
173 |
-
|
174 |
jQuery(".progress_step1").removeClass("active");
|
175 |
jQuery(".progress_step1").addClass("done");
|
176 |
jQuery(".progress_step2").addClass("active");
|
177 |
jQuery(".upload_csv_div").hide();
|
178 |
jQuery(".bulk_upload_status_div").show();
|
179 |
|
180 |
-
var run_data = 0;
|
181 |
-
|
182 |
var tracking_import = jQuery(trackings).each(function(index, element) {
|
183 |
var sku = '';
|
184 |
var qty = '';
|
@@ -199,21 +196,20 @@ jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
|
|
199 |
}
|
200 |
|
201 |
var data = {
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
|
215 |
var option = {
|
216 |
-
|
217 |
url: ajaxurl,
|
218 |
data: data,
|
219 |
type: 'POST',
|
@@ -272,7 +268,7 @@ jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
|
|
272 |
} else{
|
273 |
jQuery(".bulk_upload_status_overview_td.csv_success_msg").hide();
|
274 |
}
|
275 |
-
|
276 |
if(invalid_order_id_error_class > 0){
|
277 |
jQuery(".csv_error_details_ul").append('<li>'+invalid_order_id_error_class+' tracking numbers import failed due to invalid order id</li>');
|
278 |
}
|
@@ -307,17 +303,15 @@ jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
|
|
307 |
jQuery.ajaxQueue.run();
|
308 |
run_data++;
|
309 |
});
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
alert(shipment_tracking_table_rows.i18n.upload_valid_csv_file);
|
320 |
-
}
|
321 |
return false;
|
322 |
});
|
323 |
|
@@ -379,52 +373,6 @@ jQuery(document).on("change", "#wcast_enable_late_shipments_admin_email", functi
|
|
379 |
});
|
380 |
});
|
381 |
|
382 |
-
|
383 |
-
jQuery(document).on("click", ".status_filter a", function(){
|
384 |
-
jQuery("#content1 ").block({
|
385 |
-
message: null,
|
386 |
-
overlayCSS: {
|
387 |
-
background: "#fff",
|
388 |
-
opacity: .6
|
389 |
-
}
|
390 |
-
});
|
391 |
-
jQuery('.status_filter a').removeClass('active');
|
392 |
-
jQuery('#search_provider').removeAttr('value');
|
393 |
-
jQuery(this).addClass('active');
|
394 |
-
var status = jQuery(this).data('status');
|
395 |
-
var ajax_data = {
|
396 |
-
action: 'filter_shipiing_provider_by_status',
|
397 |
-
status: status,
|
398 |
-
};
|
399 |
-
jQuery.ajax({
|
400 |
-
url: ajaxurl,
|
401 |
-
data: ajax_data,
|
402 |
-
type: 'POST',
|
403 |
-
success: function(response) {
|
404 |
-
jQuery(".provider_list").replaceWith(response);
|
405 |
-
jQuery("#content1 ").unblock();
|
406 |
-
jQuery('#shipping-provider-table').datatable({
|
407 |
-
pageSize: 50,
|
408 |
-
pagingDivClass: 'text-left',
|
409 |
-
firstPage:'',
|
410 |
-
prevPage:'',
|
411 |
-
nextPage:'',
|
412 |
-
lastPage:'',
|
413 |
-
sort: [false, false, false, false, false, false],
|
414 |
-
onChange: function(old_page, new_page){
|
415 |
-
jQuery(".woocommerce-help-tip").tipTip();
|
416 |
-
},
|
417 |
-
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
418 |
-
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
419 |
-
}
|
420 |
-
});
|
421 |
-
jQuery(".woocommerce-help-tip").tipTip();
|
422 |
-
},
|
423 |
-
error: function(response) {
|
424 |
-
}
|
425 |
-
});
|
426 |
-
});
|
427 |
-
|
428 |
jQuery(document).on("click", ".status_slide", function(){
|
429 |
var id = jQuery(this).val();
|
430 |
if(jQuery(this).prop("checked") == true){
|
@@ -498,8 +446,6 @@ jQuery(document).on("change", ".make_provider_default", function(){
|
|
498 |
});
|
499 |
|
500 |
jQuery(document).on( "input", "#search_provider", function(){
|
501 |
-
jQuery('.status_filter a').removeClass('active');
|
502 |
-
jQuery("[data-status=all]").addClass('active');
|
503 |
|
504 |
var ajax_data = {
|
505 |
action: 'filter_shipiing_provider_by_status',
|
@@ -536,7 +482,7 @@ jQuery(document).on( "input", "#search_provider", function(){
|
|
536 |
}
|
537 |
|
538 |
jQuery('#shipping-provider-table').datatable({
|
539 |
-
pageSize:
|
540 |
pagingDivClass: 'text-left',
|
541 |
firstPage:'',
|
542 |
prevPage:'',
|
@@ -550,7 +496,7 @@ jQuery(document).on( "input", "#search_provider", function(){
|
|
550 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
551 |
}
|
552 |
});
|
553 |
-
jQuery(".woocommerce-help-tip").tipTip();
|
554 |
},
|
555 |
error: function(response) {
|
556 |
}
|
@@ -639,13 +585,12 @@ jQuery(document).on("click", ".close_synch_popup", function(){
|
|
639 |
type: 'POST',
|
640 |
success: function(response) {
|
641 |
jQuery(".provider_list").replaceWith(response);
|
642 |
-
form[0].reset();
|
643 |
-
jQuery('.status_filter a').removeClass('active');
|
644 |
-
jQuery("[data-status=custom]").addClass('active');
|
645 |
jQuery('.add_provider_popup').hide();
|
646 |
-
jQuery(".add_provider_popup").unblock();
|
|
|
647 |
jQuery('#shipping-provider-table').datatable({
|
648 |
-
pageSize:
|
649 |
pagingDivClass: 'text-left',
|
650 |
firstPage:'',
|
651 |
prevPage:'',
|
@@ -658,8 +603,7 @@ jQuery(document).on("click", ".close_synch_popup", function(){
|
|
658 |
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
659 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
660 |
}
|
661 |
-
});
|
662 |
-
jQuery(".woocommerce-help-tip").tipTip();
|
663 |
},
|
664 |
error: function(response) {
|
665 |
console.log(response);
|
@@ -698,12 +642,10 @@ jQuery(document).on("click", ".remove", function(){
|
|
698 |
data: ajax_data,
|
699 |
type: 'POST',
|
700 |
success: function(response) {
|
701 |
-
jQuery(".provider_list").replaceWith(response);
|
702 |
-
jQuery(
|
703 |
-
jQuery("[data-status=custom]").addClass('active');
|
704 |
-
jQuery("#content1").unblock();
|
705 |
jQuery('#shipping-provider-table').datatable({
|
706 |
-
pageSize:
|
707 |
pagingDivClass: 'text-left',
|
708 |
firstPage:'',
|
709 |
prevPage:'',
|
@@ -716,7 +658,7 @@ jQuery(document).on("click", ".remove", function(){
|
|
716 |
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
717 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
718 |
}
|
719 |
-
});
|
720 |
jQuery(".woocommerce-help-tip").tipTip();
|
721 |
},
|
722 |
error: function(response) {
|
@@ -755,7 +697,10 @@ jQuery(document).on("click", ".edit_provider", function(){
|
|
755 |
var custom_thumb_id = response.custom_thumb_id;
|
756 |
var image = response.image;
|
757 |
var api_length = 0;
|
758 |
-
|
|
|
|
|
|
|
759 |
if(provider == 'custom_provider'){
|
760 |
jQuery('.edit_provider_popup .shipping_provider').val(provider_name);
|
761 |
jQuery('.edit_provider_popup .shipping_display_name').val(custom_provider_name);
|
@@ -769,8 +714,7 @@ jQuery(document).on("click", ".edit_provider", function(){
|
|
769 |
jQuery('.edit_provider_popup .tracking_url').show();
|
770 |
jQuery(".edit_provider_popup .shipping_country").show();
|
771 |
jQuery(".edit_provider_popup .shipping_provider").show();
|
772 |
-
jQuery('.edit_provider_popup').show();
|
773 |
-
jQuery('.edit_provider_msg').hide();
|
774 |
jQuery('.api_provider_name_container').hide();
|
775 |
jQuery('.reset_default_provider').hide();
|
776 |
jQuery('.custom_provider_instruction').show();
|
@@ -779,8 +723,9 @@ jQuery(document).on("click", ".edit_provider", function(){
|
|
779 |
jQuery('.edit_provider_popup .shipping_display_name').val(custom_provider_name);
|
780 |
jQuery('.api_provider_new').remove();
|
781 |
|
782 |
-
if(response.api_provider_name == null){
|
783 |
-
jQuery('.edit_provider_popup .api_provider_name').val(response.api_provider_name);
|
|
|
784 |
} else if( IsValidJSONString(response.api_provider_name) ){
|
785 |
var api_provider_name = jQuery.parseJSON( response.api_provider_name );
|
786 |
var api_length = api_provider_name.length;
|
@@ -790,14 +735,16 @@ jQuery(document).on("click", ".edit_provider", function(){
|
|
790 |
if( index == 0){
|
791 |
jQuery('.edit_provider_popup .api_provider_name').val(value);
|
792 |
} else{
|
793 |
-
jQuery('.api_provider_name_container').append('<div class="api_provider_new"><input type="text" name="api_provider_name[]" class="api_provider_name" value="'+value+'" placeholder="API Name"
|
794 |
}
|
795 |
});
|
796 |
} else{
|
797 |
jQuery('.edit_provider_popup .api_provider_name').val(api_provider_name);
|
798 |
}
|
|
|
799 |
} else{
|
800 |
jQuery('.edit_provider_popup .api_provider_name').val(response.api_provider_name);
|
|
|
801 |
}
|
802 |
|
803 |
jQuery('.edit_provider_popup .thumb_url').val(image);
|
@@ -806,11 +753,9 @@ jQuery(document).on("click", ".edit_provider", function(){
|
|
806 |
jQuery('.edit_provider_popup #provider_type').val(provider);
|
807 |
jQuery('.edit_provider_popup .tracking_url').hide();
|
808 |
jQuery(".edit_provider_popup .shipping_country").hide();
|
809 |
-
jQuery(".edit_provider_popup .shipping_provider").hide();
|
810 |
-
jQuery('.edit_provider_popup').show();
|
811 |
-
jQuery('.
|
812 |
-
jQuery('.reset_default_provider').show();
|
813 |
-
jQuery('.api_provider_name_container').show();
|
814 |
jQuery('.custom_provider_instruction').hide();
|
815 |
}
|
816 |
},
|
@@ -854,13 +799,11 @@ jQuery(document).on("click", ".reset_default_provider", function(){
|
|
854 |
type: 'POST',
|
855 |
success: function(response) {
|
856 |
jQuery(".provider_list").replaceWith(response);
|
857 |
-
form[0].reset();
|
858 |
-
jQuery('.status_filter a').removeClass('active');
|
859 |
-
jQuery("[data-status=active]").addClass('active');
|
860 |
jQuery('.edit_provider_popup').hide();
|
861 |
-
jQuery(".edit_provider_popup").unblock();
|
862 |
jQuery('#shipping-provider-table').datatable({
|
863 |
-
pageSize:
|
864 |
pagingDivClass: 'text-left',
|
865 |
firstPage:'',
|
866 |
prevPage:'',
|
@@ -873,7 +816,7 @@ jQuery(document).on("click", ".reset_default_provider", function(){
|
|
873 |
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
874 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
875 |
}
|
876 |
-
});
|
877 |
jQuery(".woocommerce-help-tip").tipTip();
|
878 |
},
|
879 |
error: function(response) {
|
@@ -889,7 +832,7 @@ jQuery(document).on("submit", "#edit_provider_form", function(){
|
|
889 |
var error;
|
890 |
var shipping_provider = jQuery("#edit_provider_form .shipping_provider");
|
891 |
var shipping_country = jQuery("#edit_provider_form .shipping_country");
|
892 |
-
var api_provider_name = jQuery(".api_provider_new .api_provider_name");
|
893 |
var thumb_url = jQuery("#edit_provider_form .thumb_url");
|
894 |
var tracking_url = jQuery("#edit_provider_form .tracking_url");
|
895 |
var provider_type = jQuery("#edit_provider_form #provider_type");
|
@@ -910,14 +853,7 @@ jQuery(document).on("submit", "#edit_provider_form", function(){
|
|
910 |
}
|
911 |
}
|
912 |
|
913 |
-
if(provider_type.val() == 'default_provider'){
|
914 |
-
/*if( api_provider_name.val() === '' ){
|
915 |
-
showerror(api_provider_name);
|
916 |
-
error = true;
|
917 |
-
} else{
|
918 |
-
hideerror(api_provider_name);
|
919 |
-
}*/
|
920 |
-
|
921 |
for(var i=0; i<api_provider_name.length; i++) {
|
922 |
if(validate(api_provider_name[i]) == false){
|
923 |
showerror(jQuery(api_provider_name[i]));
|
@@ -926,7 +862,7 @@ jQuery(document).on("submit", "#edit_provider_form", function(){
|
|
926 |
hideerror(jQuery(api_provider_name[i]));
|
927 |
}
|
928 |
}
|
929 |
-
}
|
930 |
|
931 |
if(error == true){
|
932 |
return false;
|
@@ -947,13 +883,11 @@ jQuery(document).on("submit", "#edit_provider_form", function(){
|
|
947 |
type: 'POST',
|
948 |
success: function(response) {
|
949 |
jQuery(".provider_list").replaceWith(response);
|
950 |
-
form[0].reset();
|
951 |
-
jQuery('.status_filter a').removeClass('active');
|
952 |
-
jQuery("[data-status=active]").addClass('active');
|
953 |
jQuery('.edit_provider_popup').hide();
|
954 |
-
jQuery(".edit_provider_popup").unblock();
|
955 |
jQuery('#shipping-provider-table').datatable({
|
956 |
-
pageSize:
|
957 |
pagingDivClass: 'text-left',
|
958 |
firstPage:'',
|
959 |
prevPage:'',
|
@@ -966,7 +900,7 @@ jQuery(document).on("submit", "#edit_provider_form", function(){
|
|
966 |
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
967 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
968 |
}
|
969 |
-
});
|
970 |
jQuery(".woocommerce-help-tip").tipTip();
|
971 |
},
|
972 |
error: function(response) {
|
@@ -983,7 +917,7 @@ jQuery( ".thumb_url" ).keyup(function() {
|
|
983 |
}
|
984 |
});
|
985 |
|
986 |
-
jQuery(document).on("click", "
|
987 |
jQuery("#content1 ").block({
|
988 |
message: null,
|
989 |
overlayCSS: {
|
@@ -991,60 +925,7 @@ jQuery(document).on("click", ".reset_active", function(){
|
|
991 |
opacity: .6
|
992 |
}
|
993 |
});
|
994 |
-
var r = confirm( 'Do you really want to change all provider status
|
995 |
-
if (r === true) {
|
996 |
-
} else {
|
997 |
-
jQuery("#content1").unblock();
|
998 |
-
return;
|
999 |
-
}
|
1000 |
-
|
1001 |
-
jQuery('#search_provider').removeAttr('value');
|
1002 |
-
|
1003 |
-
var error;
|
1004 |
-
var ajax_data = {
|
1005 |
-
action: 'update_provider_status_active',
|
1006 |
-
};
|
1007 |
-
jQuery.ajax({
|
1008 |
-
url: ajaxurl,
|
1009 |
-
data: ajax_data,
|
1010 |
-
type: 'POST',
|
1011 |
-
success: function(response) {
|
1012 |
-
jQuery(".provider_list").replaceWith(response);
|
1013 |
-
jQuery('.status_filter a').removeClass('active');
|
1014 |
-
jQuery("[data-status=active]").addClass('active');
|
1015 |
-
jQuery("#content1").unblock();
|
1016 |
-
jQuery('#shipping-provider-table').datatable({
|
1017 |
-
pageSize: 50,
|
1018 |
-
pagingDivClass: 'text-left',
|
1019 |
-
firstPage:'',
|
1020 |
-
prevPage:'',
|
1021 |
-
nextPage:'',
|
1022 |
-
lastPage:'',
|
1023 |
-
sort: [false, false, false, false, false, false],
|
1024 |
-
onChange: function(old_page, new_page){
|
1025 |
-
jQuery(".woocommerce-help-tip").tipTip();
|
1026 |
-
},
|
1027 |
-
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
1028 |
-
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
1029 |
-
}
|
1030 |
-
});
|
1031 |
-
jQuery(".woocommerce-help-tip").tipTip();
|
1032 |
-
},
|
1033 |
-
error: function(response) {
|
1034 |
-
console.log(response);
|
1035 |
-
}
|
1036 |
-
});
|
1037 |
-
});
|
1038 |
-
|
1039 |
-
jQuery(document).on("click", ".reset_inactive", function(){
|
1040 |
-
jQuery("#content1 ").block({
|
1041 |
-
message: null,
|
1042 |
-
overlayCSS: {
|
1043 |
-
background: "#fff",
|
1044 |
-
opacity: .6
|
1045 |
-
}
|
1046 |
-
});
|
1047 |
-
var r = confirm( 'Do you really want to change all provider status to inactive?' );
|
1048 |
if (r === true) {
|
1049 |
} else {
|
1050 |
jQuery("#content1").unblock();
|
@@ -1053,34 +934,23 @@ jQuery(document).on("click", ".reset_inactive", function(){
|
|
1053 |
|
1054 |
jQuery('#search_provider').removeAttr('value');
|
1055 |
|
|
|
|
|
|
|
|
|
|
|
1056 |
var error;
|
1057 |
var ajax_data = {
|
1058 |
-
action: '
|
|
|
1059 |
};
|
1060 |
jQuery.ajax({
|
1061 |
url: ajaxurl,
|
1062 |
data: ajax_data,
|
1063 |
type: 'POST',
|
1064 |
success: function(response) {
|
1065 |
-
jQuery(".provider_list").replaceWith(response);
|
1066 |
-
jQuery('.status_filter a').removeClass('active');
|
1067 |
-
jQuery("[data-status=inactive]").addClass('active');
|
1068 |
jQuery("#content1").unblock();
|
1069 |
-
jQuery('#shipping-provider-table').datatable({
|
1070 |
-
pageSize: 50,
|
1071 |
-
pagingDivClass: 'text-left',
|
1072 |
-
firstPage:'',
|
1073 |
-
prevPage:'',
|
1074 |
-
nextPage:'',
|
1075 |
-
lastPage:'',
|
1076 |
-
sort: [false, false, false, false, false, false],
|
1077 |
-
onChange: function(old_page, new_page){
|
1078 |
-
jQuery(".woocommerce-help-tip").tipTip();
|
1079 |
-
},
|
1080 |
-
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
1081 |
-
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
1082 |
-
}
|
1083 |
-
});
|
1084 |
jQuery(".woocommerce-help-tip").tipTip();
|
1085 |
},
|
1086 |
error: function(response) {
|
@@ -1119,9 +989,7 @@ jQuery(document).on("click", ".sync_providers_btn", function(){
|
|
1119 |
dataType: "json",
|
1120 |
success: function(response) {
|
1121 |
jQuery('.sync_provider_popup .spinner').removeClass('active');
|
1122 |
-
jQuery(".provider_list").replaceWith(response.html);
|
1123 |
-
jQuery('.status_filter a').removeClass('active');
|
1124 |
-
jQuery("[data-status=active]").addClass('active');
|
1125 |
|
1126 |
if(response.sync_error == 1 ){
|
1127 |
jQuery( ".sync_message" ).text( response.message );
|
@@ -1151,10 +1019,10 @@ jQuery(document).on("click", ".sync_providers_btn", function(){
|
|
1151 |
jQuery(".reset_db_fieldset").hide();
|
1152 |
jQuery(".sync_providers_btn").attr("disabled", false);
|
1153 |
jQuery(".sync_providers_btn").hide();
|
1154 |
-
jQuery(".close_synch_popup").show();
|
1155 |
-
|
1156 |
jQuery('#shipping-provider-table').datatable({
|
1157 |
-
pageSize:
|
1158 |
pagingDivClass: 'text-left',
|
1159 |
firstPage:'',
|
1160 |
prevPage:'',
|
@@ -1166,9 +1034,8 @@ jQuery(document).on("click", ".sync_providers_btn", function(){
|
|
1166 |
},
|
1167 |
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
1168 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
1169 |
-
}
|
1170 |
-
});
|
1171 |
-
jQuery(".woocommerce-help-tip").tipTip();
|
1172 |
},
|
1173 |
error: function(response) {
|
1174 |
console.log(response);
|
@@ -1209,51 +1076,6 @@ jQuery(document).on("click", "#hide_deleted_details", function(){
|
|
1209 |
jQuery('#view_deleted_details').show();
|
1210 |
});
|
1211 |
|
1212 |
-
jQuery(document).on("change", "#wcast_enable_delivered_email", function(){
|
1213 |
-
if(jQuery(this).prop("checked") == true){
|
1214 |
-
jQuery('.delivered_shipment_label').addClass('delivered_enabel');
|
1215 |
-
jQuery('.delivered_shipment_label .email_heading').addClass('disabled_link');
|
1216 |
-
jQuery('.delivered_shipment_label .edit_customizer_a').addClass('disabled_link');
|
1217 |
-
jQuery('.delivered_shipment_label .delivered_message').addClass('disable_delivered');
|
1218 |
-
jQuery('#wcast_enable_delivered_status_email').prop('disabled', true);
|
1219 |
-
} else{
|
1220 |
-
jQuery('.delivered_shipment_label').removeClass('delivered_enabel');
|
1221 |
-
jQuery('.delivered_shipment_label .email_heading').removeClass('disabled_link');
|
1222 |
-
jQuery('.delivered_shipment_label .edit_customizer_a').removeClass('disabled_link');
|
1223 |
-
jQuery('.delivered_shipment_label .delivered_message').removeClass('disable_delivered');
|
1224 |
-
jQuery('#wcast_enable_delivered_status_email').removeAttr('disabled');
|
1225 |
-
}
|
1226 |
-
});
|
1227 |
-
jQuery(document).on("change", "#wc_ast_status_delivered", function(){
|
1228 |
-
if(jQuery(this).prop("checked") == false){
|
1229 |
-
jQuery('#wcast_enable_delivered_email')[0].checked = false;
|
1230 |
-
}
|
1231 |
-
if(jQuery(this).prop("checked") == true && jQuery("#wcast_enable_delivered_email").prop("checked") == true){
|
1232 |
-
jQuery('.delivered_shipment_label').addClass('delivered_enabel');
|
1233 |
-
jQuery('.delivered_shipment_label .email_heading').addClass('disabled_link');
|
1234 |
-
jQuery('.delivered_shipment_label .edit_customizer_a').addClass('disabled_link');
|
1235 |
-
jQuery('.delivered_shipment_label .delivered_message').addClass('disable_delivered');
|
1236 |
-
jQuery('#wcast_enable_delivered_status_email').prop('disabled', true);
|
1237 |
-
} else{
|
1238 |
-
jQuery('.delivered_shipment_label').removeClass('delivered_enabel');
|
1239 |
-
jQuery('.delivered_shipment_label .email_heading').removeClass('disabled_link');
|
1240 |
-
jQuery('.delivered_shipment_label .edit_customizer_a').removeClass('disabled_link');
|
1241 |
-
jQuery('.delivered_shipment_label .delivered_message').removeClass('disable_delivered');
|
1242 |
-
jQuery('#wcast_enable_delivered_status_email').removeAttr('disabled');
|
1243 |
-
}
|
1244 |
-
});
|
1245 |
-
|
1246 |
-
jQuery(document).click(function(){
|
1247 |
-
var $trigger = jQuery(".dropdown");
|
1248 |
-
if($trigger !== event.target && !$trigger.has(event.target).length){
|
1249 |
-
jQuery(".dropdown-content").hide();
|
1250 |
-
}
|
1251 |
-
});
|
1252 |
-
|
1253 |
-
jQuery(document).on("click", ".dropdown_menu", function(){
|
1254 |
-
jQuery('.dropdown-content').show();
|
1255 |
-
});
|
1256 |
-
|
1257 |
function validate (input) {
|
1258 |
if(jQuery(input).val().trim() == '' || jQuery(input).val().trim() == 0){
|
1259 |
return false;
|
@@ -1283,35 +1105,11 @@ jQuery(document).on("click", ".tab_input", function(){
|
|
1283 |
var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=woocommerce-advanced-shipment-tracking&tab="+tab;
|
1284 |
window.history.pushState({path:url},'',url);
|
1285 |
});
|
1286 |
-
jQuery(document).on("click", ".inner_tab_input", function(){
|
1287 |
var tab = jQuery(this).data('tab');
|
1288 |
var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=woocommerce-advanced-shipment-tracking&tab="+tab;
|
1289 |
window.history.pushState({path:url},'',url);
|
1290 |
-
})
|
1291 |
-
|
1292 |
-
jQuery(document).click(function(){
|
1293 |
-
var $trigger = jQuery(".ast_dropdown");
|
1294 |
-
if($trigger !== event.target && !$trigger.has(event.target).length){
|
1295 |
-
jQuery(".ast-dropdown-content").hide();
|
1296 |
-
}
|
1297 |
-
});
|
1298 |
-
|
1299 |
-
jQuery(document).on("click", ".ast-dropdown-menu", function(){
|
1300 |
-
jQuery('.ast-dropdown-content').show();
|
1301 |
-
});
|
1302 |
-
|
1303 |
-
jQuery(document).on("click", ".ast-dropdown-content li a", function(){
|
1304 |
-
var tab = jQuery(this).data('tab');
|
1305 |
-
var label = jQuery(this).data('label');
|
1306 |
-
var section = jQuery(this).data('section');
|
1307 |
-
jQuery('.inner_tab_section').hide();
|
1308 |
-
jQuery('.ast_nav_div').find("[data-tab='" + tab + "']").prop('checked', true);
|
1309 |
-
jQuery('#'+section).show();
|
1310 |
-
jQuery('.zorem-layout__header-breadcrumbs .header-breadcrumbs-last').text(label);
|
1311 |
-
var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=woocommerce-advanced-shipment-tracking&tab="+tab;
|
1312 |
-
window.history.pushState({path:url},'',url);
|
1313 |
-
jQuery(".ast-dropdown-content").hide();
|
1314 |
-
});
|
1315 |
|
1316 |
jQuery(document).on("click", ".open_video_popup", function(){
|
1317 |
jQuery('.how_to_video_popup').show();
|
@@ -1344,7 +1142,7 @@ jQuery(document).on("click", ".import_tracking_video_popup .popupclose", functio
|
|
1344 |
});
|
1345 |
|
1346 |
jQuery('#shipping-provider-table').datatable({
|
1347 |
-
pageSize:
|
1348 |
pagingDivClass: 'text-left',
|
1349 |
firstPage:'',
|
1350 |
prevPage:'',
|
@@ -1364,34 +1162,9 @@ jQuery(document).on("click", ".tool_link", function(){
|
|
1364 |
jQuery('#tab_tools').trigger( "click" );
|
1365 |
});
|
1366 |
|
1367 |
-
jQuery(document).on("change", ".order_status_toggle", function(){
|
1368 |
-
save_custom_order_status();
|
1369 |
-
});
|
1370 |
-
|
1371 |
-
jQuery(document).on("change", ".enable_order_status_email_input", function(){
|
1372 |
-
save_custom_order_status();
|
1373 |
-
});
|
1374 |
-
|
1375 |
-
jQuery(document).on("change", ".custom_order_color_select", function(){
|
1376 |
save_custom_order_status();
|
1377 |
});
|
1378 |
-
|
1379 |
-
jQuery('#wc_ast_status_label_color').wpColorPicker({
|
1380 |
-
change: function(e, ui) {
|
1381 |
-
var color = ui.color.toString();
|
1382 |
-
jQuery('.order-status-table .order-label.wc-delivered').css('background',color);
|
1383 |
-
},
|
1384 |
-
});
|
1385 |
-
|
1386 |
-
jQuery('body').click( function(){
|
1387 |
-
if ( jQuery('.delivered_row button.button.wp-color-result').hasClass( 'wp-picker-open' ) ) {
|
1388 |
-
save_custom_order_status();
|
1389 |
-
}
|
1390 |
-
});
|
1391 |
-
|
1392 |
-
jQuery('.delivered_row button.button.wp-color-result').click( function(){
|
1393 |
-
if ( jQuery(this).hasClass( 'wp-picker-open' ) ) {}else{save_custom_order_status();}
|
1394 |
-
});
|
1395 |
|
1396 |
jQuery('#wc_ast_status_partial_shipped_label_color').wpColorPicker({
|
1397 |
change: function(e, ui) {
|
1 |
( function( $, data, wp, ajaxurl ) {
|
2 |
|
3 |
+
var $wc_ast_settings_form = $("#wc_ast_settings_form");
|
|
|
|
|
|
|
4 |
|
5 |
var wc_table_rate_rows = {
|
6 |
|
60 |
}
|
61 |
});
|
62 |
});
|
63 |
+
|
64 |
+
var file_frame;
|
65 |
+
jQuery('.upload_image_button').on('click', function(product) {
|
66 |
+
product.preventDefault();
|
67 |
+
var image_id = jQuery(this).siblings(".image_id");
|
68 |
+
var image_path = jQuery(this).siblings(".image_path");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
|
70 |
+
// If the media frame already exists, reopen it.
|
71 |
+
if (file_frame) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
file_frame.open();
|
73 |
+
return;
|
74 |
+
}
|
75 |
+
|
76 |
+
// Create the media frame.
|
77 |
+
file_frame = wp.media.frames.file_frame = wp.media({
|
78 |
+
title: 'Upload Media',
|
79 |
+
button: {
|
80 |
+
text: 'Add',
|
81 |
+
},
|
82 |
+
multiple: false // Set to true to allow multiple files to be selected
|
83 |
});
|
84 |
|
85 |
+
// When a file is selected, run a callback.
|
86 |
+
file_frame.on('select', function(){
|
87 |
+
attachment = file_frame.state().get('selection').first().toJSON();
|
88 |
+
var id = attachment.id;
|
89 |
+
var url = attachment.url;
|
90 |
+
image_path.val(url);
|
91 |
+
image_id.val(id);
|
92 |
+
});
|
93 |
+
// Finally, open the modal
|
94 |
+
file_frame.open();
|
95 |
+
});
|
96 |
+
|
97 |
jQuery(document).on("submit", "#wc_ast_upload_csv_form", function(){
|
98 |
+
|
99 |
jQuery('.csv_upload_status li').remove();
|
100 |
jQuery('.bulk_upload_status_tr').hide();
|
101 |
jQuery('.progress_title').hide();
|
130 |
return false;
|
131 |
}
|
132 |
|
133 |
+
var regex = /([a-zA-Z0-9\s_\\.\-\(\):])+(.csv|.txt)$/;
|
134 |
+
if (regex.test(jQuery("#trcking_csv_file").val().toLowerCase())) {
|
135 |
+
if (typeof (FileReader) != "undefined") {
|
136 |
+
var reader = new FileReader();
|
137 |
+
reader.onload = function (e) {
|
138 |
+
|
139 |
+
var trackings = new Array();
|
140 |
+
var rows = e.target.result.split("\n");
|
141 |
+
|
142 |
+
if(rows.length <= 1){
|
143 |
+
alert('There are some issue with CSV file.');
|
144 |
+
return false;
|
145 |
+
}
|
146 |
+
|
147 |
+
for (var i = 1; i < rows.length; i++) {
|
148 |
+
var cells = rows[i].split(",");
|
149 |
+
if (cells.length > 1) {
|
150 |
+
var tracking = {};
|
151 |
+
tracking.order_id = cells[0];
|
152 |
+
tracking.tracking_provider = cells[1];
|
153 |
+
tracking.tracking_number = cells[2];
|
154 |
+
tracking.date_shipped = cells[3];
|
155 |
+
tracking.status_shipped = cells[4];
|
156 |
+
if(cells[5]){
|
157 |
+
tracking.sku = cells[5];
|
158 |
+
}
|
159 |
+
if(cells[6]){
|
160 |
+
tracking.qty = cells[6];
|
161 |
+
}
|
162 |
+
if(tracking.order_id){
|
163 |
+
trackings.push(tracking);
|
164 |
+
}
|
165 |
+
}
|
166 |
+
}
|
167 |
+
|
168 |
var csv_length = trackings.length;
|
169 |
+
var run_data = 0;
|
170 |
|
171 |
jQuery("#wc_ast_upload_csv_form")[0].reset();
|
|
|
172 |
jQuery(".progress-moved .progress-bar2").css('width',0+'%');
|
|
|
|
|
173 |
jQuery(".progress_step1").removeClass("active");
|
174 |
jQuery(".progress_step1").addClass("done");
|
175 |
jQuery(".progress_step2").addClass("active");
|
176 |
jQuery(".upload_csv_div").hide();
|
177 |
jQuery(".bulk_upload_status_div").show();
|
178 |
|
|
|
|
|
179 |
var tracking_import = jQuery(trackings).each(function(index, element) {
|
180 |
var sku = '';
|
181 |
var qty = '';
|
196 |
}
|
197 |
|
198 |
var data = {
|
199 |
+
action: 'wc_ast_upload_csv_form_update',
|
200 |
+
order_id: order_id,
|
201 |
+
date_format_for_csv_import: date_format_for_csv_import,
|
202 |
+
tracking_provider: tracking_provider,
|
203 |
+
tracking_number: tracking_number,
|
204 |
+
date_shipped: date_shipped,
|
205 |
+
status_shipped: status_shipped,
|
206 |
+
sku: sku,
|
207 |
+
qty: qty,
|
208 |
+
replace_tracking_info: replace_tracking_info,
|
209 |
+
trackings: trackings,
|
210 |
+
};
|
211 |
|
212 |
var option = {
|
|
|
213 |
url: ajaxurl,
|
214 |
data: data,
|
215 |
type: 'POST',
|
268 |
} else{
|
269 |
jQuery(".bulk_upload_status_overview_td.csv_success_msg").hide();
|
270 |
}
|
271 |
+
|
272 |
if(invalid_order_id_error_class > 0){
|
273 |
jQuery(".csv_error_details_ul").append('<li>'+invalid_order_id_error_class+' tracking numbers import failed due to invalid order id</li>');
|
274 |
}
|
303 |
jQuery.ajaxQueue.run();
|
304 |
run_data++;
|
305 |
});
|
306 |
+
|
307 |
+
}
|
308 |
+
reader.readAsText(jQuery("#trcking_csv_file")[0].files[0]);
|
309 |
+
} else {
|
310 |
+
alert(shipment_tracking_table_rows.i18n.browser_not_html);
|
311 |
+
}
|
312 |
+
} else {
|
313 |
+
alert(shipment_tracking_table_rows.i18n.upload_valid_csv_file);
|
314 |
+
}
|
|
|
|
|
315 |
return false;
|
316 |
});
|
317 |
|
373 |
});
|
374 |
});
|
375 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
376 |
jQuery(document).on("click", ".status_slide", function(){
|
377 |
var id = jQuery(this).val();
|
378 |
if(jQuery(this).prop("checked") == true){
|
446 |
});
|
447 |
|
448 |
jQuery(document).on( "input", "#search_provider", function(){
|
|
|
|
|
449 |
|
450 |
var ajax_data = {
|
451 |
action: 'filter_shipiing_provider_by_status',
|
482 |
}
|
483 |
|
484 |
jQuery('#shipping-provider-table').datatable({
|
485 |
+
pageSize: 25,
|
486 |
pagingDivClass: 'text-left',
|
487 |
firstPage:'',
|
488 |
prevPage:'',
|
496 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
497 |
}
|
498 |
});
|
499 |
+
jQuery(".woocommerce-help-tip").tipTip();
|
500 |
},
|
501 |
error: function(response) {
|
502 |
}
|
585 |
type: 'POST',
|
586 |
success: function(response) {
|
587 |
jQuery(".provider_list").replaceWith(response);
|
588 |
+
form[0].reset();
|
|
|
|
|
589 |
jQuery('.add_provider_popup').hide();
|
590 |
+
jQuery(".add_provider_popup").unblock();
|
591 |
+
jQuery(".woocommerce-help-tip").tipTip();
|
592 |
jQuery('#shipping-provider-table').datatable({
|
593 |
+
pageSize: 25,
|
594 |
pagingDivClass: 'text-left',
|
595 |
firstPage:'',
|
596 |
prevPage:'',
|
603 |
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
604 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
605 |
}
|
606 |
+
});
|
|
|
607 |
},
|
608 |
error: function(response) {
|
609 |
console.log(response);
|
642 |
data: ajax_data,
|
643 |
type: 'POST',
|
644 |
success: function(response) {
|
645 |
+
jQuery(".provider_list").replaceWith(response);
|
646 |
+
jQuery("#content1").unblock();
|
|
|
|
|
647 |
jQuery('#shipping-provider-table').datatable({
|
648 |
+
pageSize: 25,
|
649 |
pagingDivClass: 'text-left',
|
650 |
firstPage:'',
|
651 |
prevPage:'',
|
658 |
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
659 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
660 |
}
|
661 |
+
});
|
662 |
jQuery(".woocommerce-help-tip").tipTip();
|
663 |
},
|
664 |
error: function(response) {
|
697 |
var custom_thumb_id = response.custom_thumb_id;
|
698 |
var image = response.image;
|
699 |
var api_length = 0;
|
700 |
+
jQuery('.edit_provider_title').html(provider_name);
|
701 |
+
jQuery('.edit_provider_popup').removeClass('default_provider');
|
702 |
+
jQuery('.edit_provider_popup').removeClass('custom_provider');
|
703 |
+
jQuery('.edit_provider_popup').addClass(provider);
|
704 |
if(provider == 'custom_provider'){
|
705 |
jQuery('.edit_provider_popup .shipping_provider').val(provider_name);
|
706 |
jQuery('.edit_provider_popup .shipping_display_name').val(custom_provider_name);
|
714 |
jQuery('.edit_provider_popup .tracking_url').show();
|
715 |
jQuery(".edit_provider_popup .shipping_country").show();
|
716 |
jQuery(".edit_provider_popup .shipping_provider").show();
|
717 |
+
jQuery('.edit_provider_popup').show();
|
|
|
718 |
jQuery('.api_provider_name_container').hide();
|
719 |
jQuery('.reset_default_provider').hide();
|
720 |
jQuery('.custom_provider_instruction').show();
|
723 |
jQuery('.edit_provider_popup .shipping_display_name').val(custom_provider_name);
|
724 |
jQuery('.api_provider_new').remove();
|
725 |
|
726 |
+
if(response.api_provider_name == null){
|
727 |
+
//jQuery('.edit_provider_popup .api_provider_name').val(response.api_provider_name);
|
728 |
+
jQuery('.api_provider_name_container').hide();
|
729 |
} else if( IsValidJSONString(response.api_provider_name) ){
|
730 |
var api_provider_name = jQuery.parseJSON( response.api_provider_name );
|
731 |
var api_length = api_provider_name.length;
|
735 |
if( index == 0){
|
736 |
jQuery('.edit_provider_popup .api_provider_name').val(value);
|
737 |
} else{
|
738 |
+
jQuery('.api_provider_name_container').append('<div class="api_provider_new"><input type="text" name="api_provider_name[]" class="api_provider_name" value="'+value+'" placeholder="API Name" readonly="true"><!--span class="dashicons dashicons-remove remove_more_api_provider"></span--></div>');
|
739 |
}
|
740 |
});
|
741 |
} else{
|
742 |
jQuery('.edit_provider_popup .api_provider_name').val(api_provider_name);
|
743 |
}
|
744 |
+
jQuery('.api_provider_name_container').show();
|
745 |
} else{
|
746 |
jQuery('.edit_provider_popup .api_provider_name').val(response.api_provider_name);
|
747 |
+
jQuery('.api_provider_name_container').show();
|
748 |
}
|
749 |
|
750 |
jQuery('.edit_provider_popup .thumb_url').val(image);
|
753 |
jQuery('.edit_provider_popup #provider_type').val(provider);
|
754 |
jQuery('.edit_provider_popup .tracking_url').hide();
|
755 |
jQuery(".edit_provider_popup .shipping_country").hide();
|
756 |
+
jQuery(".edit_provider_popup .shipping_provider").hide();
|
757 |
+
jQuery('.edit_provider_popup').show();
|
758 |
+
jQuery('.reset_default_provider').show();
|
|
|
|
|
759 |
jQuery('.custom_provider_instruction').hide();
|
760 |
}
|
761 |
},
|
799 |
type: 'POST',
|
800 |
success: function(response) {
|
801 |
jQuery(".provider_list").replaceWith(response);
|
802 |
+
form[0].reset();
|
|
|
|
|
803 |
jQuery('.edit_provider_popup').hide();
|
804 |
+
jQuery(".edit_provider_popup").unblock();
|
805 |
jQuery('#shipping-provider-table').datatable({
|
806 |
+
pageSize: 25,
|
807 |
pagingDivClass: 'text-left',
|
808 |
firstPage:'',
|
809 |
prevPage:'',
|
816 |
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
817 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
818 |
}
|
819 |
+
});
|
820 |
jQuery(".woocommerce-help-tip").tipTip();
|
821 |
},
|
822 |
error: function(response) {
|
832 |
var error;
|
833 |
var shipping_provider = jQuery("#edit_provider_form .shipping_provider");
|
834 |
var shipping_country = jQuery("#edit_provider_form .shipping_country");
|
835 |
+
//var api_provider_name = jQuery(".api_provider_new .api_provider_name");
|
836 |
var thumb_url = jQuery("#edit_provider_form .thumb_url");
|
837 |
var tracking_url = jQuery("#edit_provider_form .tracking_url");
|
838 |
var provider_type = jQuery("#edit_provider_form #provider_type");
|
853 |
}
|
854 |
}
|
855 |
|
856 |
+
/*if(provider_type.val() == 'default_provider'){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
857 |
for(var i=0; i<api_provider_name.length; i++) {
|
858 |
if(validate(api_provider_name[i]) == false){
|
859 |
showerror(jQuery(api_provider_name[i]));
|
862 |
hideerror(jQuery(api_provider_name[i]));
|
863 |
}
|
864 |
}
|
865 |
+
}*/
|
866 |
|
867 |
if(error == true){
|
868 |
return false;
|
883 |
type: 'POST',
|
884 |
success: function(response) {
|
885 |
jQuery(".provider_list").replaceWith(response);
|
886 |
+
form[0].reset();
|
|
|
|
|
887 |
jQuery('.edit_provider_popup').hide();
|
888 |
+
jQuery(".edit_provider_popup").unblock();
|
889 |
jQuery('#shipping-provider-table').datatable({
|
890 |
+
pageSize: 25,
|
891 |
pagingDivClass: 'text-left',
|
892 |
firstPage:'',
|
893 |
prevPage:'',
|
900 |
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
901 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
902 |
}
|
903 |
+
});
|
904 |
jQuery(".woocommerce-help-tip").tipTip();
|
905 |
},
|
906 |
error: function(response) {
|
917 |
}
|
918 |
});
|
919 |
|
920 |
+
jQuery(document).on("click", "#reset_providers", function(){
|
921 |
jQuery("#content1 ").block({
|
922 |
message: null,
|
923 |
overlayCSS: {
|
925 |
opacity: .6
|
926 |
}
|
927 |
});
|
928 |
+
var r = confirm( 'Do you really want to change all provider status?' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
929 |
if (r === true) {
|
930 |
} else {
|
931 |
jQuery("#content1").unblock();
|
934 |
|
935 |
jQuery('#search_provider').removeAttr('value');
|
936 |
|
937 |
+
var reset_checked = 0;
|
938 |
+
if(jQuery(this).prop("checked") == true){
|
939 |
+
reset_checked = 1;
|
940 |
+
}
|
941 |
+
|
942 |
var error;
|
943 |
var ajax_data = {
|
944 |
+
action: 'update_provider_status',
|
945 |
+
status: reset_checked,
|
946 |
};
|
947 |
jQuery.ajax({
|
948 |
url: ajaxurl,
|
949 |
data: ajax_data,
|
950 |
type: 'POST',
|
951 |
success: function(response) {
|
952 |
+
jQuery(".provider_list").replaceWith(response);
|
|
|
|
|
953 |
jQuery("#content1").unblock();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
954 |
jQuery(".woocommerce-help-tip").tipTip();
|
955 |
},
|
956 |
error: function(response) {
|
989 |
dataType: "json",
|
990 |
success: function(response) {
|
991 |
jQuery('.sync_provider_popup .spinner').removeClass('active');
|
992 |
+
jQuery(".provider_list").replaceWith(response.html);
|
|
|
|
|
993 |
|
994 |
if(response.sync_error == 1 ){
|
995 |
jQuery( ".sync_message" ).text( response.message );
|
1019 |
jQuery(".reset_db_fieldset").hide();
|
1020 |
jQuery(".sync_providers_btn").attr("disabled", false);
|
1021 |
jQuery(".sync_providers_btn").hide();
|
1022 |
+
jQuery(".close_synch_popup").show();
|
1023 |
+
jQuery(".woocommerce-help-tip").tipTip();
|
1024 |
jQuery('#shipping-provider-table').datatable({
|
1025 |
+
pageSize: 25,
|
1026 |
pagingDivClass: 'text-left',
|
1027 |
firstPage:'',
|
1028 |
prevPage:'',
|
1034 |
},
|
1035 |
counterText: function (currentPage, totalPage, firstRow, lastRow, totalRow) {
|
1036 |
return 'Showing ' + firstRow + ' to ' + lastRow + ' of ' + totalRow + ' entries' ;
|
1037 |
+
}
|
1038 |
+
});
|
|
|
1039 |
},
|
1040 |
error: function(response) {
|
1041 |
console.log(response);
|
1076 |
jQuery('#view_deleted_details').show();
|
1077 |
});
|
1078 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1079 |
function validate (input) {
|
1080 |
if(jQuery(input).val().trim() == '' || jQuery(input).val().trim() == 0){
|
1081 |
return false;
|
1105 |
var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=woocommerce-advanced-shipment-tracking&tab="+tab;
|
1106 |
window.history.pushState({path:url},'',url);
|
1107 |
});
|
1108 |
+
/*jQuery(document).on("click", ".inner_tab_input", function(){
|
1109 |
var tab = jQuery(this).data('tab');
|
1110 |
var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=woocommerce-advanced-shipment-tracking&tab="+tab;
|
1111 |
window.history.pushState({path:url},'',url);
|
1112 |
+
});*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1113 |
|
1114 |
jQuery(document).on("click", ".open_video_popup", function(){
|
1115 |
jQuery('.how_to_video_popup').show();
|
1142 |
});
|
1143 |
|
1144 |
jQuery('#shipping-provider-table').datatable({
|
1145 |
+
pageSize: 25,
|
1146 |
pagingDivClass: 'text-left',
|
1147 |
firstPage:'',
|
1148 |
prevPage:'',
|
1162 |
jQuery('#tab_tools').trigger( "click" );
|
1163 |
});
|
1164 |
|
1165 |
+
jQuery(document).on("change", ".order_status_toggle,.enable_order_status_email_input,.custom_order_color_select, #wc_ast_status_shipped", function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1166 |
save_custom_order_status();
|
1167 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1168 |
|
1169 |
jQuery('#wc_ast_status_partial_shipped_label_color').wpColorPicker({
|
1170 |
change: function(e, ui) {
|
assets/js/trackship.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
( function( $, data, wp, ajaxurl ) {
|
2 |
var $wc_ast_trackship_form = $("#wc_ast_trackship_form");
|
3 |
|
4 |
-
|
5 |
var trackship_js = {
|
6 |
|
7 |
init: function() {
|
@@ -23,9 +22,9 @@
|
|
23 |
$.post( ajaxurl, ajax_data, function(response) {
|
24 |
$("#wc_ast_trackship_form").find(".spinner").removeClass("active");
|
25 |
|
26 |
-
jQuery("#
|
27 |
-
jQuery("#
|
28 |
-
setTimeout(function(){ jQuery("#
|
29 |
});
|
30 |
|
31 |
},
|
@@ -38,9 +37,9 @@
|
|
38 |
$.post( ajaxurl, ajax_data, function(response) {
|
39 |
$("#trackship_tracking_page_form").find(".spinner").removeClass("active");
|
40 |
|
41 |
-
jQuery("#
|
42 |
-
jQuery("#
|
43 |
-
setTimeout(function(){ jQuery("#
|
44 |
|
45 |
jQuery('.tracking_page_preview').prop("disabled", false);
|
46 |
});
|
@@ -54,9 +53,9 @@
|
|
54 |
$.post( ajaxurl, ajax_data, function(response) {
|
55 |
$("#trackship_late_shipments_form").find(".spinner").removeClass("active");
|
56 |
|
57 |
-
jQuery("#
|
58 |
-
jQuery("#
|
59 |
-
setTimeout(function(){ jQuery("#
|
60 |
});
|
61 |
},
|
62 |
};
|
@@ -141,30 +140,6 @@ jQuery(document).on("click", ".tab_input", function(){
|
|
141 |
window.history.pushState({path:url},'',url);
|
142 |
});
|
143 |
|
144 |
-
jQuery(document).click(function(){
|
145 |
-
var $trigger = jQuery(".trackship_dropdown");
|
146 |
-
if($trigger !== event.target && !$trigger.has(event.target).length){
|
147 |
-
jQuery(".trackship-dropdown-content").hide();
|
148 |
-
}
|
149 |
-
});
|
150 |
-
|
151 |
-
jQuery(document).on("click", ".trackship-dropdown-menu", function(){
|
152 |
-
jQuery('.trackship-dropdown-content').show();
|
153 |
-
});
|
154 |
-
|
155 |
-
jQuery(document).on("click", ".trackship-dropdown-content li a", function(){
|
156 |
-
var tab = jQuery(this).data('tab');
|
157 |
-
var label = jQuery(this).data('label');
|
158 |
-
var section = jQuery(this).data('section');
|
159 |
-
jQuery('.inner_tab_section').hide();
|
160 |
-
jQuery('.trackship_nav_div').find("[data-tab='" + tab + "']").prop('checked', true);
|
161 |
-
jQuery('#'+section).show();
|
162 |
-
jQuery('.zorem-layout__header-breadcrumbs .header-breadcrumbs-last').text(label);
|
163 |
-
var url = window.location.protocol + "//" + window.location.host + window.location.pathname+"?page=trackship-for-woocommerce&tab="+tab;
|
164 |
-
window.history.pushState({path:url},'',url);
|
165 |
-
jQuery(".trackship-dropdown-content").hide();
|
166 |
-
});
|
167 |
-
|
168 |
jQuery(document).on("click", ".bulk_shipment_status_button", function(){
|
169 |
jQuery("#content3").block({
|
170 |
message: null,
|
@@ -314,4 +289,118 @@ jQuery(document).on("change", ".shipment_status_toggle input", function(){
|
|
314 |
|
315 |
jQuery(document).on("click", ".late_shipments_a", function(){
|
316 |
jQuery('.late-shipments-email-content-table').toggle();
|
317 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
( function( $, data, wp, ajaxurl ) {
|
2 |
var $wc_ast_trackship_form = $("#wc_ast_trackship_form");
|
3 |
|
|
|
4 |
var trackship_js = {
|
5 |
|
6 |
init: function() {
|
22 |
$.post( ajaxurl, ajax_data, function(response) {
|
23 |
$("#wc_ast_trackship_form").find(".spinner").removeClass("active");
|
24 |
|
25 |
+
jQuery("#ast_settings_snackbar").addClass('show_snackbar');
|
26 |
+
jQuery("#ast_settings_snackbar").text(trackship_script.i18n.data_saved);
|
27 |
+
setTimeout(function(){ jQuery("#ast_settings_snackbar").removeClass('show_snackbar'); }, 3000);
|
28 |
});
|
29 |
|
30 |
},
|
37 |
$.post( ajaxurl, ajax_data, function(response) {
|
38 |
$("#trackship_tracking_page_form").find(".spinner").removeClass("active");
|
39 |
|
40 |
+
jQuery("#ast_settings_snackbar").addClass('show_snackbar');
|
41 |
+
jQuery("#ast_settings_snackbar").text(trackship_script.i18n.data_saved);
|
42 |
+
setTimeout(function(){ jQuery("#ast_settings_snackbar").removeClass('show_snackbar'); }, 3000);
|
43 |
|
44 |
jQuery('.tracking_page_preview').prop("disabled", false);
|
45 |
});
|
53 |
$.post( ajaxurl, ajax_data, function(response) {
|
54 |
$("#trackship_late_shipments_form").find(".spinner").removeClass("active");
|
55 |
|
56 |
+
jQuery("#ast_settings_snackbar").addClass('show_snackbar');
|
57 |
+
jQuery("#ast_settings_snackbar").text(trackship_script.i18n.data_saved);
|
58 |
+
setTimeout(function(){ jQuery("#ast_settings_snackbar").removeClass('show_snackbar'); }, 3000);
|
59 |
});
|
60 |
},
|
61 |
};
|
140 |
window.history.pushState({path:url},'',url);
|
141 |
});
|
142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
jQuery(document).on("click", ".bulk_shipment_status_button", function(){
|
144 |
jQuery("#content3").block({
|
145 |
message: null,
|
289 |
|
290 |
jQuery(document).on("click", ".late_shipments_a", function(){
|
291 |
jQuery('.late-shipments-email-content-table').toggle();
|
292 |
+
});
|
293 |
+
|
294 |
+
jQuery('#wc_ast_status_label_color').wpColorPicker({
|
295 |
+
change: function(e, ui) {
|
296 |
+
var color = ui.color.toString();
|
297 |
+
jQuery('.order-status-table .order-label.wc-delivered').css('background',color);
|
298 |
+
},
|
299 |
+
});
|
300 |
+
|
301 |
+
jQuery('body').click( function(){
|
302 |
+
if ( jQuery('.delivered_row button.button.wp-color-result').hasClass( 'wp-picker-open' ) ) {
|
303 |
+
save_automation_form();
|
304 |
+
}
|
305 |
+
});
|
306 |
+
|
307 |
+
jQuery('.delivered_row button.button.wp-color-result').click( function(){
|
308 |
+
if ( jQuery(this).hasClass( 'wp-picker-open' ) ) {}else{save_automation_form();}
|
309 |
+
});
|
310 |
+
|
311 |
+
jQuery(document).on("change", ".ts_custom_order_color_select, #wc_ast_status_change_to_delivered", function(){
|
312 |
+
save_automation_form();
|
313 |
+
});
|
314 |
+
jQuery(document).on("change", ".ts_order_status_toggle", function(){
|
315 |
+
|
316 |
+
if(jQuery(this).prop("checked") == true){
|
317 |
+
jQuery('.status_change_to_delivered_tr').fadeIn();
|
318 |
+
} else{
|
319 |
+
jQuery('.status_change_to_delivered_tr').fadeOut();
|
320 |
+
}
|
321 |
+
|
322 |
+
save_automation_form();
|
323 |
+
});
|
324 |
+
|
325 |
+
jQuery(document).on("change", "#wc_ast_status_label_font_color", function(){
|
326 |
+
var font_color = jQuery(this).val();
|
327 |
+
jQuery('.order-status-table .order-label.wc-delivered').css('color',font_color);
|
328 |
+
});
|
329 |
+
|
330 |
+
function save_automation_form(){
|
331 |
+
jQuery(".order-status-table").block({
|
332 |
+
message: null,
|
333 |
+
overlayCSS: {
|
334 |
+
background: "#fff",
|
335 |
+
opacity: .6
|
336 |
+
}
|
337 |
+
});
|
338 |
+
var form = jQuery('#wc_ast_trackship_automation_form');
|
339 |
+
jQuery.ajax({
|
340 |
+
url: ajaxurl,
|
341 |
+
data: form.serialize(),
|
342 |
+
type: 'POST',
|
343 |
+
success: function(response) {
|
344 |
+
jQuery(".order-status-table").unblock();
|
345 |
+
},
|
346 |
+
error: function(response) {
|
347 |
+
console.log(response);
|
348 |
+
}
|
349 |
+
});
|
350 |
+
return false;
|
351 |
+
}
|
352 |
+
|
353 |
+
jQuery(document).on("change", "#wc_ast_show_shipment_status_filter, #wc_ast_trackship_page_id", function(){
|
354 |
+
save_trackship_form();
|
355 |
+
});
|
356 |
+
|
357 |
+
jQuery(document).on( "input", "#wc_ast_trackship_other_page", function(){
|
358 |
+
save_trackship_form();
|
359 |
+
});
|
360 |
+
|
361 |
+
jQuery(document).on("change", "#wc_ast_use_tracking_page", function(){
|
362 |
+
if(jQuery(this).prop("checked") == true){
|
363 |
+
jQuery('.ts_customizer_btn').removeClass('disable_ts_btn');
|
364 |
+
jQuery(this).parent('li').next('li').fadeIn();
|
365 |
+
} else{
|
366 |
+
jQuery('.ts_customizer_btn').addClass('disable_ts_btn');
|
367 |
+
jQuery(this).parent('li').next('li').fadeOut();
|
368 |
+
}
|
369 |
+
save_trackship_form();
|
370 |
+
});
|
371 |
+
|
372 |
+
jQuery( document ).ready(function() {
|
373 |
+
if(jQuery('#wc_ast_use_tracking_page').prop("checked") == true){
|
374 |
+
jQuery('.ts_customizer_btn').removeClass('disable_ts_btn');
|
375 |
+
jQuery('#wc_ast_use_tracking_page').parent('li').next('li').fadeIn();
|
376 |
+
} else{
|
377 |
+
jQuery('.ts_customizer_btn').addClass('disable_ts_btn');
|
378 |
+
jQuery('#wc_ast_use_tracking_page').parent('li').next('li').fadeOut();
|
379 |
+
}
|
380 |
+
});
|
381 |
+
|
382 |
+
function save_trackship_form(){
|
383 |
+
jQuery("#wc_ast_trackship_form").block({
|
384 |
+
message: null,
|
385 |
+
overlayCSS: {
|
386 |
+
background: "#fff",
|
387 |
+
opacity: .6
|
388 |
+
}
|
389 |
+
});
|
390 |
+
var form = jQuery('#wc_ast_trackship_form');
|
391 |
+
jQuery.ajax({
|
392 |
+
url: ajaxurl,
|
393 |
+
data: form.serialize(),
|
394 |
+
type: 'POST',
|
395 |
+
success: function(response) {
|
396 |
+
jQuery("#wc_ast_trackship_form").unblock();
|
397 |
+
jQuery("#ast_settings_snackbar").addClass('show_snackbar');
|
398 |
+
jQuery("#ast_settings_snackbar").text(trackship_script.i18n.data_saved);
|
399 |
+
setTimeout(function(){ jQuery("#ast_settings_snackbar").removeClass('show_snackbar'); }, 3000);
|
400 |
+
},
|
401 |
+
error: function(response) {
|
402 |
+
console.log(response);
|
403 |
+
}
|
404 |
+
});
|
405 |
+
return false;
|
406 |
+
}
|
assets/shipment-provider-img/4px.png
DELETED
Binary file
|
assets/shipment-provider-img/7-eleven.png
DELETED
Binary file
|
assets/shipment-provider-img/abf.png
DELETED
Binary file
|
assets/shipment-provider-img/acs-courier.png
DELETED
Binary file
|
assets/shipment-provider-img/aliexpress-standard-shipping.png
DELETED
Binary file
|
assets/shipment-provider-img/an-post.png
DELETED
Binary file
|
assets/shipment-provider-img/apc-overnight.png
DELETED
Binary file
|
assets/shipment-provider-img/apc.png
DELETED
Binary file
|
assets/shipment-provider-img/aramex.png
DELETED
Binary file
|
assets/shipment-provider-img/aras-kargo.png
DELETED
Binary file
|
assets/shipment-provider-img/arrowxl.png
DELETED
Binary file
|
assets/shipment-provider-img/asendia-uk.png
DELETED
Binary file
|
assets/shipment-provider-img/associated-global-systems.png
DELETED
Binary file
|
assets/shipment-provider-img/australia-ems.png
DELETED
Binary file
|
assets/shipment-provider-img/australia-post.png
DELETED
Binary file
|
assets/shipment-provider-img/bangladesh-ems.png
DELETED
Binary file
|
assets/shipment-provider-img/bluedart.png
DELETED
Binary file
|
assets/shipment-provider-img/border-express.png
DELETED
Binary file
|
assets/shipment-provider-img/boxberry.png
DELETED
Binary file
|
assets/shipment-provider-img/bpost.png
DELETED
Binary file
|
assets/shipment-provider-img/brazil-correios.png
DELETED
Binary file
|
assets/shipment-provider-img/bring.png
DELETED
Binary file
|
assets/shipment-provider-img/brt.png
DELETED
Binary file
|
assets/shipment-provider-img/bulgaria-post.png
DELETED
Binary file
|
assets/shipment-provider-img/canada-post.png
DELETED
Binary file
|
assets/shipment-provider-img/canpar.png
DELETED
Binary file
|
assets/shipment-provider-img/castle-parcels.png
DELETED
Binary file
|
assets/shipment-provider-img/ceska-posta.png
DELETED
Binary file
|
assets/shipment-provider-img/china-post.png
DELETED
Binary file
|
assets/shipment-provider-img/chit-chats.png
DELETED
Binary file
|
assets/shipment-provider-img/chronopost.png
DELETED
Binary file
|
assets/shipment-provider-img/cj-logistics.png
DELETED
Binary file
|
assets/shipment-provider-img/cjpacket.png
DELETED
Binary file
|
assets/shipment-provider-img/cne-express.png
DELETED
Binary file
|
assets/shipment-provider-img/colis-prive.png
DELETED
Binary file
|
assets/shipment-provider-img/colissimo.png
DELETED
Binary file
|
assets/shipment-provider-img/collectplus.png
DELETED
Binary file
|
assets/shipment-provider-img/colombia-post.png
DELETED
Binary file
|
assets/shipment-provider-img/correos-chile.png
DELETED
Binary file
|
assets/shipment-provider-img/correos-costa-rica.png
DELETED
Binary file
|
assets/shipment-provider-img/correos-espana.png
DELETED
Binary file
|
assets/shipment-provider-img/correos-express.png
DELETED
Binary file
|
assets/shipment-provider-img/costa-rica-post.png
DELETED
Binary file
|
assets/shipment-provider-img/courierpost.png
DELETED
Binary file
|
assets/shipment-provider-img/couriersplease.png
DELETED
Binary file
|
assets/shipment-provider-img/croatia-post.png
DELETED
Binary file
|
assets/shipment-provider-img/cyprus-post.png
DELETED
Binary file
|
assets/shipment-provider-img/dai-post.png
DELETED
Binary file
|
assets/shipment-provider-img/dawn-wing.png
DELETED
Binary file
|
assets/shipment-provider-img/db-schenker.png
DELETED
Binary file
|
assets/shipment-provider-img/delhivery.png
DELETED
Binary file
|
assets/shipment-provider-img/deliv.png
DELETED
Binary file
|
assets/shipment-provider-img/dellin.png
DELETED
Binary file
|
assets/shipment-provider-img/denmark-post.png
DELETED
Binary file
|
assets/shipment-provider-img/deppon.png
DELETED
Binary file
|
assets/shipment-provider-img/deutsche-post-dhl.png
DELETED
Binary file
|
assets/shipment-provider-img/deutsche-post.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-at.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-cz.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-ecommerce.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-express-uk.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-express.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-freight.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-intraship-de.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-paket.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-parcel-uk.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-parcel.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-poland.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-se.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-spain.png
DELETED
Binary file
|
assets/shipment-provider-img/dhl-us.png
DELETED
Binary file
|
assets/shipment-provider-img/dhlparcel-nl.png
DELETED
Binary file
|
assets/shipment-provider-img/dicom.png
DELETED
Binary file
|
assets/shipment-provider-img/direct-link.png
DELETED
Binary file
|
assets/shipment-provider-img/dotzot.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-at.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-cz.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-de.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-fr.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-ie.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-nl.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-poland.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-portugal.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-romania.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-slovenia.png
DELETED
Binary file
|
assets/shipment-provider-img/dpd-uk.png
DELETED
Binary file
|
assets/shipment-provider-img/dtdc-plus.png
DELETED
Binary file
|
assets/shipment-provider-img/dtdc.png
DELETED
Binary file
|
assets/shipment-provider-img/dx-mail.png
DELETED
Binary file
|
assets/shipment-provider-img/ec-firstclass.png
DELETED
Binary file
|
assets/shipment-provider-img/ecom-express.png
DELETED
Binary file
|
assets/shipment-provider-img/ekart.png
DELETED
Binary file
|
assets/shipment-provider-img/elta-courier.png
DELETED
Binary file
|
assets/shipment-provider-img/ems.png
DELETED
Binary file
|
assets/shipment-provider-img/epacket.png
DELETED
Binary file
|
assets/shipment-provider-img/estonia-post.png
DELETED
Binary file
|
assets/shipment-provider-img/ethiopia-post.png
DELETED
Binary file
|
assets/shipment-provider-img/fastway-au.png
DELETED
Binary file
|
assets/shipment-provider-img/fastway-ireland.png
DELETED
Binary file
|
assets/shipment-provider-img/fastway-nz.png
DELETED
Binary file
|
assets/shipment-provider-img/fedex-freight.png
DELETED
Binary file
|
assets/shipment-provider-img/fedex-ground.png
DELETED
Binary file
|
assets/shipment-provider-img/fedex-poland.png
DELETED
Binary file
|
assets/shipment-provider-img/fedex-sameday.png
DELETED
Binary file
|
assets/shipment-provider-img/fedex-uk.png
DELETED
Binary file
|
assets/shipment-provider-img/fedex.png
DELETED
Binary file
|
assets/shipment-provider-img/finland-post.png
DELETED
Binary file
|
assets/shipment-provider-img/gati.png
DELETED
Binary file
|
assets/shipment-provider-img/gig-logistics.png
DELETED
Binary file
|
assets/shipment-provider-img/global-order-tracking.png
DELETED
Binary file
|
assets/shipment-provider-img/gls-denmark.png
DELETED
Binary file
|
assets/shipment-provider-img/gls-europe.png
DELETED
Binary file
|
assets/shipment-provider-img/gls-france.png
DELETED
Binary file
|
assets/shipment-provider-img/gls-italy.png
DELETED
Binary file
|
assets/shipment-provider-img/gls-netherlands.png
DELETED
Binary file
|
assets/shipment-provider-img/gls-paket.png
DELETED
Binary file
|
assets/shipment-provider-img/gls-slovenia.png
DELETED
Binary file
|
assets/shipment-provider-img/gls-spain.png
DELETED
Binary file
|
assets/shipment-provider-img/gso.png
DELETED
Binary file
|
assets/shipment-provider-img/hermes-germany.png
DELETED
Binary file
|
assets/shipment-provider-img/hermes-world.png
DELETED
Binary file
|
assets/shipment-provider-img/hfd.png
DELETED
Binary file
|
assets/shipment-provider-img/hong-kong-post.png
DELETED
Binary file
|
assets/shipment-provider-img/india-post.png
DELETED
Binary file
|
assets/shipment-provider-img/interlink.png
DELETED
Binary file
|
assets/shipment-provider-img/israel-post.png
DELETED
Binary file
|
assets/shipment-provider-img/ivory-coast-ems.png
DELETED
Binary file
|
assets/shipment-provider-img/jcex.png
DELETED
Binary file
|
assets/shipment-provider-img/jet-express.png
DELETED
Binary file
|
assets/shipment-provider-img/jne.png
DELETED
Binary file
|
assets/shipment-provider-img/jp-post.png
DELETED
Binary file
|
assets/shipment-provider-img/jt.png
DELETED
Binary file
|
assets/shipment-provider-img/kerry-express.png
DELETED
Binary file
|
assets/shipment-provider-img/korea-post.png
DELETED
Binary file
|
assets/shipment-provider-img/la-poste.png
DELETED
Binary file
|
assets/shipment-provider-img/landmark-global.png
DELETED
Binary file
|
assets/shipment-provider-img/laos-post.png
DELETED
Binary file
|
assets/shipment-provider-img/lasership.png
DELETED
Binary file
|
assets/shipment-provider-img/latvijas-pasts.png
DELETED
Binary file
|
assets/shipment-provider-img/lion-parcel.png
DELETED
Binary file
|
assets/shipment-provider-img/lithuania-post.png
DELETED
Binary file
|
assets/shipment-provider-img/loomis-express.png
DELETED
Binary file
|
assets/shipment-provider-img/luxembourg-post.png
DELETED
Binary file
|
assets/shipment-provider-img/magyar-posta.png
DELETED
Binary file
|
assets/shipment-provider-img/mail-boxes-etc.png
DELETED
Binary file
|
assets/shipment-provider-img/malaysia-post.png
DELETED
Binary file
|
assets/shipment-provider-img/mng-kargo.png
DELETED
Binary file
|
assets/shipment-provider-img/monaco-ems.png
DELETED
Binary file
|
assets/shipment-provider-img/mondial-relay.png
DELETED
Binary file
|
assets/shipment-provider-img/mrw-portugal.png
DELETED
Binary file
|
assets/shipment-provider-img/mrw.png
DELETED
Binary file
|
assets/shipment-provider-img/nacex.png
DELETED
Binary file
|
assets/shipment-provider-img/naqel.png
DELETED
Binary file
|
assets/shipment-provider-img/new-zealand-post.png
DELETED
Binary file
|
assets/shipment-provider-img/ninja-express.png
DELETED
Binary file
|
assets/shipment-provider-img/ninja-van.png
DELETED
Binary file
|
assets/shipment-provider-img/now-couriers.png
DELETED
Binary file
|
assets/shipment-provider-img/nz-couriers.png
DELETED
Binary file
|
assets/shipment-provider-img/ontime.png
DELETED
Binary file
|
assets/shipment-provider-img/ontrac.png
DELETED
Binary file
|
assets/shipment-provider-img/overseas-territory-fr-ems.png
DELETED
Binary file
|
assets/shipment-provider-img/palletways.png
DELETED
Binary file
|
assets/shipment-provider-img/parcelforce.png
DELETED
Binary file
|
assets/shipment-provider-img/poland-post.png
DELETED
Binary file
|
assets/shipment-provider-img/portugal-post-ctt.png
DELETED
Binary file
|
assets/shipment-provider-img/pos-indonesia.png
DELETED
Binary file
|
assets/shipment-provider-img/post-at.png
DELETED
Binary file
|
assets/shipment-provider-img/post-haste.png
DELETED
Binary file
|
assets/shipment-provider-img/poste-italiane.png
DELETED
Binary file
|
assets/shipment-provider-img/poste-maroc.png
DELETED
Binary file
|
assets/shipment-provider-img/posten-norge.png
DELETED
Binary file
|
assets/shipment-provider-img/postnl-international-3s.png
DELETED
Binary file
|
assets/shipment-provider-img/postnl.png
DELETED
Binary file
|
assets/shipment-provider-img/postnord-sverige-ab.png
DELETED
Binary file
|
assets/shipment-provider-img/ptt-kargo.png
DELETED
Binary file
|
assets/shipment-provider-img/purolator.png
DELETED
Binary file
|
assets/shipment-provider-img/raben.png
DELETED
Binary file
|
assets/shipment-provider-img/redpack.png
DELETED
Binary file
|
assets/shipment-provider-img/redur-spain.png
DELETED
Binary file
|
assets/shipment-provider-img/royal-mail.png
DELETED
Binary file
|
assets/shipment-provider-img/russian-post.png
DELETED
Binary file
|
assets/shipment-provider-img/s-f-express.png
DELETED
Binary file
|
assets/shipment-provider-img/sagawa.png
DELETED
Binary file
|
assets/shipment-provider-img/saudi-post.png
DELETED
Binary file
|
assets/shipment-provider-img/sda.png
DELETED
Binary file
|
assets/shipment-provider-img/sendle.png
DELETED
Binary file
|
assets/shipment-provider-img/serbia-post.png
DELETED
Binary file
|
assets/shipment-provider-img/shadowfax.png
DELETED
Binary file
|
assets/shipment-provider-img/shree-maruti-courier.png
DELETED
Binary file
|
assets/shipment-provider-img/shree-tirupati-courier.png
DELETED
Binary file
|
assets/shipment-provider-img/sicepat.png
DELETED
Binary file
|
assets/shipment-provider-img/singapore-post.png
DELETED
Binary file
|
assets/shipment-provider-img/skynet-worldwide-express.png
DELETED
Binary file
|
assets/shipment-provider-img/skynet.png
DELETED
Binary file
|
assets/shipment-provider-img/smsa-express.png
DELETED
Binary file
|
assets/shipment-provider-img/south-african-post-office.png
DELETED
Binary file
|
assets/shipment-provider-img/spee-dee.png
DELETED
Binary file
|
assets/shipment-provider-img/speedex-courier.png
DELETED
Binary file
|
assets/shipment-provider-img/startrack.png
DELETED
Binary file
|
assets/shipment-provider-img/swiss-post.png
DELETED
Binary file
|
assets/shipment-provider-img/thailand-post.png
DELETED
Binary file
|
assets/shipment-provider-img/the-professional-couriers.png
DELETED
Binary file
|
assets/shipment-provider-img/tiki.png
DELETED
Binary file
|
assets/shipment-provider-img/tipsa.png
DELETED
Binary file
|
assets/shipment-provider-img/tnt-australia.png
DELETED
Binary file
|
assets/shipment-provider-img/tnt-click.png
DELETED
Binary file
|
assets/shipment-provider-img/tnt-france.png
DELETED
Binary file
|
assets/shipment-provider-img/tnt-italy.png
DELETED
Binary file
|
assets/shipment-provider-img/tnt-reference.png
DELETED
Binary file
|
assets/shipment-provider-img/tnt-sweden.png
DELETED
Binary file
|
assets/shipment-provider-img/tnt-uk.png
DELETED
Binary file
|
assets/shipment-provider-img/tnt.png
DELETED
Binary file
|
assets/shipment-provider-img/toll-ipec.png
DELETED
Binary file
|
assets/shipment-provider-img/toll.png
DELETED
Binary file
|
assets/shipment-provider-img/trackon.png
DELETED
Binary file
|
assets/shipment-provider-img/turkey-post.png
DELETED
Binary file
|
assets/shipment-provider-img/turkish-post.png
DELETED
Binary file
|
assets/shipment-provider-img/ubi-smart-parcel.png
DELETED
Binary file
|
assets/shipment-provider-img/ukraine-ems.png
DELETED
Binary file
|
assets/shipment-provider-img/ukrposhta.png
DELETED
Binary file
|
assets/shipment-provider-img/ups-germany.png
DELETED
Binary file
|
assets/shipment-provider-img/ups-i-parcel.png
DELETED
Binary file
|
assets/shipment-provider-img/ups-se.png
DELETED
Binary file
|
assets/shipment-provider-img/ups.png
DELETED
Binary file
|
assets/shipment-provider-img/vietnam-post.png
DELETED
Binary file
|
assets/shipment-provider-img/wahana.png
DELETED
Binary file
|
assets/shipment-provider-img/xpressbees.png
DELETED
Binary file
|
assets/shipment-provider-img/yamato.png
DELETED
Binary file
|
assets/shipment-provider-img/yanwen.png
DELETED
Binary file
|
assets/shipment-provider-img/yodel.png
DELETED
Binary file
|
assets/shipment-provider-img/yun-express-tracking.png
DELETED
Binary file
|
assets/shipment-provider-img/yurtici-kargo.png
DELETED
Binary file
|
includes/class-wc-advanced-shipment-tracking-admin.php
CHANGED
@@ -76,8 +76,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
76 |
add_filter( 'woocommerce_email_title', array( $this, 'change_completed_woocommerce_email_title'), 10, 2 );
|
77 |
|
78 |
|
79 |
-
add_action( 'wp_ajax_wc_ast_upload_csv_form_update', array( $this, 'upload_tracking_csv_fun') );
|
80 |
-
add_action( 'wp_ajax_wc_ast_upload_csv_form_action', array( $this, 'wc_ast_upload_csv_form_action') );
|
81 |
|
82 |
add_action( 'wp_ajax_update_delivered_order_email_status', array( $this, 'update_delivered_order_email_status_fun') );
|
83 |
|
@@ -101,9 +100,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
101 |
|
102 |
add_action( 'wp_ajax_woocommerce_shipping_provider_delete', array( $this, 'woocommerce_shipping_provider_delete' ) );
|
103 |
|
104 |
-
add_action( '
|
105 |
-
|
106 |
-
add_action( 'wp_ajax_update_provider_status_inactive', array( $this, 'update_provider_status_inactive_fun') );
|
107 |
|
108 |
add_action( 'wp_ajax_reset_shipping_providers_database', array( $this, 'reset_shipping_providers_database_fun') );
|
109 |
|
@@ -187,10 +184,11 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
187 |
wp_enqueue_script( 'select2');
|
188 |
|
189 |
wp_enqueue_style( 'ast_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
|
|
|
190 |
|
191 |
wp_enqueue_style( 'front_style', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/front.css', array(), wc_advanced_shipment_tracking()->version );
|
192 |
|
193 |
-
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);
|
194 |
|
195 |
wp_register_script( 'selectWoo', WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full' . $suffix . '.js', array( 'jquery' ), '1.0.4' );
|
196 |
wp_register_script( 'wc-enhanced-select', WC()->plugin_url() . '/assets/js/admin/wc-enhanced-select' . $suffix . '.js', array( 'jquery', 'selectWoo' ), WC_VERSION );
|
@@ -212,10 +210,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
212 |
wp_enqueue_script( 'jquery-ui-sortable' );
|
213 |
wp_enqueue_script('media-upload');
|
214 |
wp_enqueue_script('thickbox');
|
215 |
-
wp_enqueue_style('thickbox');
|
216 |
-
|
217 |
-
//wp_enqueue_style( 'material-css', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/material.css', array(), wc_advanced_shipment_tracking()->version );
|
218 |
-
//wp_enqueue_script( 'material-js', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/material.min.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
|
219 |
|
220 |
wp_enqueue_script( 'ajax-queue', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/jquery.ajax.queue.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version);
|
221 |
|
@@ -273,7 +269,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
273 |
|
274 |
global $wpdb;
|
275 |
$woo_shippment_table_name = $this->table;
|
276 |
-
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $woo_shippment_table_name
|
277 |
|
278 |
foreach($default_shippment_providers as $key => $value){
|
279 |
$search = array('(US)', '(UK)');
|
@@ -292,74 +288,32 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
292 |
}
|
293 |
}
|
294 |
|
295 |
-
wp_enqueue_script( 'shipment_tracking_table_rows' );
|
296 |
-
$wc_ast_api_key = get_option('wc_ast_api_key');
|
297 |
?>
|
298 |
<div class="zorem-layout">
|
299 |
<div class="zorem-layout__header">
|
300 |
<h1 class="zorem-layout__header-breadcrumbs"><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=wc-admin' ) ); ?>"><?php _e('WooCommerce', 'woocommerce'); ?></a></span><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=woocommerce-advanced-shipment-tracking' ) ); ?>"><?php _e('Shipment Tracking', 'woo-advanced-shipment-tracking'); ?></a></span><span class="header-breadcrumbs-last"><?php _e('Settings', 'woocommerce'); ?></span></h1>
|
301 |
-
<div class="zorem-
|
302 |
-
<
|
303 |
-
|
304 |
-
<span class="dashicons dashicons-ellipsis ast-dropdown-menu"></span>
|
305 |
-
<ul class="ast-dropdown-content">
|
306 |
-
<li><a href="javaScript:void(0);" data-label="<?php _e('Settings', 'woocommerce'); ?>" data-tab="settings" data-section="content2"><?php _e('Settings', 'woocommerce'); ?></a></li>
|
307 |
-
<li><a href="javaScript:void(0);" data-label="<?php _e('Shipping Providers', 'woo-advanced-shipment-tracking'); ?>" data-tab="shipping-providers" data-section="content1"><?php _e('Shipping Providers', 'woo-advanced-shipment-tracking'); ?></a></li>
|
308 |
-
<li><a href="javaScript:void(0);" data-label="<?php _e('CSV Import', 'woo-advanced-shipment-tracking'); ?>" data-tab="bulk-upload" data-section="content4"><?php _e('CSV Import', 'woo-advanced-shipment-tracking'); ?></a></li>
|
309 |
-
<?php if($wc_ast_api_key){ ?>
|
310 |
-
<li><a href="<?php echo esc_url( admin_url( '/admin.php?page=trackship-for-woocommerce' ) ); ?>" data-label="<?php _e('CSV Import', 'woo-advanced-shipment-tracking'); ?>">TrackShip</a></li>
|
311 |
-
<?php } ?>
|
312 |
-
<li><a href="javaScript:void(0);" data-label="<?php _e('Add-ons', 'woo-advanced-shipment-tracking'); ?>" data-tab="addons" data-section="content6"><?php _e('Add-ons', 'woo-advanced-shipment-tracking'); ?></a></li>
|
313 |
-
</ul>
|
314 |
-
</div>
|
315 |
-
</div>
|
316 |
</div>
|
317 |
<?php do_action('ast_settings_admin_notice');?>
|
318 |
<div class="woocommerce zorem_admin_layout">
|
319 |
<div class="ast_admin_content" >
|
320 |
-
<div class="ast_nav_div">
|
321 |
-
<!--input id="tab2" type="radio" name="tabs" class="tab_input" data-tab="settings" data-label="<?php _e('Settings', 'woocommerce'); ?>" checked>
|
322 |
-
<label for="tab2" class="tab_label first_label"><?php _e('Settings', 'woocommerce'); ?></label>
|
323 |
-
|
324 |
-
<input id="tab1" type="radio" name="tabs" class="tab_input" data-tab="shipping-providers" data-label="<?php _e('Shipping Providers', 'woocommerce'); ?>" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'shipping-providers'){ echo 'checked'; } ?>>
|
325 |
-
<label for="tab1" class="tab_label"><?php _e('Shipping Providers', 'woo-advanced-shipment-tracking'); ?></label>
|
326 |
-
<input id="tab4" type="radio" name="tabs" class="tab_input" data-tab="bulk-upload" data-label="<?php _e('CSV Import', 'woocommerce'); ?>" <?php if(isset($_GET['tab']) && $_GET['tab'] == 'bulk-upload'){ echo 'checked'; } ?>>
|
327 |
-
<label for="tab4" class="tab_label"><?php _e('CSV Import', 'woo-advanced-shipment-tracking'); ?></label>
|
328 |
|
329 |
-
<?php
|
330 |
-
<a class="menu_trackship_link" href="<?php echo esc_url( admin_url( '/admin.php?page=trackship-for-woocommerce' ) ); ?>">TrackShip</a>
|
331 |
-
<?php } ?>
|
332 |
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
<div class="nav_doc_section">
|
339 |
-
<a target="blank" class="doc_link" href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a>
|
340 |
-
<a href="JavaScript:void(0);" class="open_video_popup"><?php _e( 'How to Video', 'woo-advanced-shipment-tracking' ); ?></a>
|
341 |
-
</div>
|
342 |
-
<?php
|
343 |
-
require_once( 'views/admin_options_shipping_provider.php' );
|
344 |
-
require_once( 'views/admin_options_settings.php' );
|
345 |
-
require_once( 'views/admin_options_bulk_upload.php' );
|
346 |
-
require_once( 'views/admin_options_trackship_integration.php' );
|
347 |
-
do_action('ast_paypal_settings_panel');
|
348 |
-
require_once( 'views/admin_options_addons.php' ); ?>
|
349 |
</div>
|
350 |
</div>
|
351 |
</div>
|
352 |
|
353 |
-
<div id="ast_settings_snackbar" class="ast_snackbar"><?php _e( 'Data saved successfully.', 'woo-advanced-shipment-tracking' )?></div>
|
354 |
-
|
355 |
-
<div id="" class="popupwrapper how_to_video_popup" style="display:none;">
|
356 |
-
<div class="popuprow">
|
357 |
-
<div class="videoWrapper">
|
358 |
-
<iframe id="how_to_video" src="https://www.youtube.com/embed/QOVbwfgXQdU" frameborder="0" allowfullscreen></iframe>
|
359 |
-
</div>
|
360 |
-
</div>
|
361 |
-
<div class="popupclose"></div>
|
362 |
-
</div>
|
363 |
|
364 |
<div id="" class="popupwrapper ts_video_popup" style="display:none;">
|
365 |
<div class="popuprow">
|
@@ -377,7 +331,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
377 |
</div>
|
378 |
<div class="popupclose"></div>
|
379 |
</div>
|
380 |
-
</div
|
381 |
<?php
|
382 |
if(isset( $_GET['tab'] ) && $_GET['tab'] == 'trackship'){ ?>
|
383 |
<script>
|
@@ -416,7 +370,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
416 |
'name' => 'tabs',
|
417 |
'position' => 3,
|
418 |
),
|
419 |
-
'trackship' => array(
|
420 |
'title' => 'TrackShip',
|
421 |
'show' => true,
|
422 |
'class' => 'tab_label',
|
@@ -424,7 +378,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
424 |
'data-label' => 'TrackShip',
|
425 |
'name' => 'tabs',
|
426 |
'position' => 4,
|
427 |
-
)
|
428 |
'tab6' => array(
|
429 |
'title' => __( 'Add-ons', 'woo-advanced-shipment-tracking' ),
|
430 |
'show' => true,
|
@@ -443,15 +397,15 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
443 |
$tab = isset( $_GET['tab'] ) ? sanitize_text_field($_GET['tab']) : 'settings';
|
444 |
if( $tab == 'license')$tab = 'addons';
|
445 |
foreach( (array)$arrays as $id => $array ){
|
446 |
-
if($id == 'trackship'){
|
447 |
$wc_ast_api_key = get_option('wc_ast_api_key');
|
448 |
if($wc_ast_api_key){ ?>
|
449 |
<a class="menu_trackship_link" href="<?php echo esc_url( admin_url( '/admin.php?page=trackship-for-woocommerce' ) ); ?>">TrackShip</a>
|
450 |
<?php }
|
451 |
-
} else{
|
452 |
<input class="tab_input" id="<?php echo $id?>" name="<?php echo $array['name']; ?>" type="radio" data-tab="<?php echo $array['data-tab']; ?>" data-label="<?php echo $array['data-label']; ?>" <?php if($tab == $array['data-tab']){ echo 'checked'; } ?> />
|
453 |
<label class="<?php echo $array['class']; ?>" for="<?php echo $id?>"><?php echo $array['title']; ?></label>
|
454 |
-
<?php } }
|
455 |
}
|
456 |
/*
|
457 |
* get html of fields
|
@@ -460,7 +414,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
460 |
|
461 |
$checked = '';
|
462 |
?>
|
463 |
-
<table class="form-table
|
464 |
<tbody>
|
465 |
<?php foreach( (array)$arrays as $id => $array ){
|
466 |
|
@@ -519,8 +473,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
519 |
}
|
520 |
?>
|
521 |
<input type="hidden" name="<?php echo $id?>" value="0"/>
|
522 |
-
<input class="tgl tgl-flat" id="<?php echo $id?>" name="<?php echo $id?>" type="checkbox" <?php echo $checked ?> value="1"/>
|
523 |
-
<label class="tgl-btn" for="<?php echo $id?>"></label>
|
524 |
<?php }
|
525 |
elseif( isset( $array['type'] ) && $array['type'] == 'multiple_checkbox' ){ ?>
|
526 |
<?php
|
@@ -635,6 +589,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
635 |
public function get_html_ul( $arrays ){ ?>
|
636 |
<ul class="settings_ul">
|
637 |
<?php foreach( (array)$arrays as $id => $array ){
|
|
|
638 |
if($array['show']){
|
639 |
if( $array['type'] == 'checkbox' ){
|
640 |
if(get_option($id)){
|
@@ -645,18 +600,45 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
645 |
?>
|
646 |
<li>
|
647 |
<input type="hidden" name="<?php echo $id?>" value="0"/>
|
648 |
-
<input class="
|
649 |
-
|
650 |
-
|
651 |
<label class="setting_ul_checkbox_label"><?php echo $array['title']?>
|
652 |
<?php if( isset($array['tooltip']) ){?>
|
653 |
<span class="woocommerce-help-tip tipTip" title="<?php echo $array['tooltip']?>"></span>
|
654 |
<?php } ?>
|
655 |
</label>
|
656 |
</li>
|
657 |
-
<?php } if( $array['type'] == '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
658 |
<li class="settings_radio_li">
|
659 |
-
<label><strong><?php echo $array['title']?></strong
|
|
|
|
|
|
|
|
|
660 |
<?php foreach((array)$array['options'] as $key => $val ){
|
661 |
$selected = '';
|
662 |
if( get_option($id,$array['default']) == (string)$key )$selected = 'checked'; ?>
|
@@ -669,9 +651,12 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
669 |
</span>
|
670 |
<?php } ?>
|
671 |
</li>
|
672 |
-
<?php } if($array['type'] == 'multiple_checkbox'){ ?>
|
673 |
<li>
|
674 |
-
<div
|
|
|
|
|
|
|
675 |
<div class="multiple_checkbox_parent">
|
676 |
<?php $op = 1;
|
677 |
foreach((array)$array['options'] as $key => $val ){
|
@@ -685,160 +670,38 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
685 |
<span class="multiple_checkbox">
|
686 |
<label class="" for="">
|
687 |
<input type="hidden" name="<?php echo $id?>[<?php echo $key?>]" value="0"/>
|
688 |
-
<input type="checkbox"
|
689 |
<span class="multiple_label"><?php echo $val['status']; ?></span>
|
690 |
</br>
|
691 |
</label>
|
692 |
</span>
|
693 |
<?php } } ?>
|
694 |
-
</div>
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
} else{
|
702 |
-
$checked="";
|
703 |
-
}
|
704 |
-
if($op == 1){ ?>
|
705 |
-
<div style="margin-bottom: 5px;">
|
706 |
-
<strong><?php _e( 'Custom Order Statuses', 'woo-advanced-shipment-tracking' ); ?></strong>
|
707 |
-
</div>
|
708 |
<?php } ?>
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
<
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
|
|
|
|
719 |
</li>
|
720 |
<?php }
|
721 |
}
|
722 |
} ?>
|
723 |
</ul>
|
724 |
-
<?php }
|
725 |
-
|
726 |
-
/*
|
727 |
-
* get html of fields
|
728 |
-
*/
|
729 |
-
public function get_html_2( $arrays ){
|
730 |
-
|
731 |
-
$checked = '';
|
732 |
-
?>
|
733 |
-
<table class="form-table table-layout-2">
|
734 |
-
<tbody>
|
735 |
-
<?php foreach( (array)$arrays as $id => $array ){
|
736 |
-
|
737 |
-
if($array['show']){ ?>
|
738 |
-
<tr valign="top" class="<?php echo $array['class']; ?>">
|
739 |
-
|
740 |
-
<th scope="row" class="titledesc" <?php if($array['type'] == 'desc'){ ?> colspan=2 <?php } ?>>
|
741 |
-
<?php if( $array['type'] == 'checkbox' ){
|
742 |
-
if($id === 'wcast_enable_delivered_email'){
|
743 |
-
$wcast_enable_delivered_email = get_option('woocommerce_customer_delivered_order_settings');
|
744 |
-
|
745 |
-
if($wcast_enable_delivered_email['enabled'] == 'yes' || $wcast_enable_delivered_email['enabled'] == 1){
|
746 |
-
$checked = 'checked';
|
747 |
-
} else{
|
748 |
-
$checked = '';
|
749 |
-
}
|
750 |
-
|
751 |
-
} elseif($id === 'wcast_enable_partial_shipped_email'){
|
752 |
-
$wcast_enable_partial_shipped_email = get_option('woocommerce_customer_partial_shipped_order_settings');
|
753 |
-
|
754 |
-
if($wcast_enable_partial_shipped_email['enabled'] == 'yes' || $wcast_enable_partial_shipped_email['enabled'] == 1){
|
755 |
-
$checked = 'checked';
|
756 |
-
} else{
|
757 |
-
$checked = '';
|
758 |
-
}
|
759 |
-
} else{
|
760 |
-
if(get_option($id)){
|
761 |
-
$checked = 'checked';
|
762 |
-
} else{
|
763 |
-
$checked = '';
|
764 |
-
}
|
765 |
-
}
|
766 |
-
|
767 |
-
if(isset($array['disabled']) && $array['disabled'] == true){
|
768 |
-
$disabled = 'disabled';
|
769 |
-
$checked = '';
|
770 |
-
} else{
|
771 |
-
$disabled = '';
|
772 |
-
}
|
773 |
-
?>
|
774 |
-
<input type="hidden" name="<?php echo $id?>" value="0"/>
|
775 |
-
<input class="tgl tgl-flat" id="<?php echo $id?>" name="<?php echo $id?>" type="checkbox" <?php echo $checked ?> <?php echo $disabled; ?> value="1"/>
|
776 |
-
<label class="tgl-btn" for="<?php echo $id?>"></label>
|
777 |
-
<?php } elseif( isset( $array['type'] ) && $array['type'] == 'dropdown' ){?>
|
778 |
-
<?php
|
779 |
-
if( isset($array['multiple']) ){
|
780 |
-
$multiple = 'multiple';
|
781 |
-
$field_id = $array['multiple'];
|
782 |
-
} else {
|
783 |
-
$multiple = '';
|
784 |
-
$field_id = $id;
|
785 |
-
}
|
786 |
-
?>
|
787 |
-
<fieldset>
|
788 |
-
<select class="select select2" id="<?php echo $field_id?>" name="<?php echo $id?>" <?php echo $multiple;?>> <?php foreach((array)$array['options'] as $key => $val ){?>
|
789 |
-
<?php
|
790 |
-
$selected = '';
|
791 |
-
if( isset($array['multiple']) ){
|
792 |
-
if (in_array($key, (array)$this->data->$field_id ))$selected = 'selected';
|
793 |
-
} else {
|
794 |
-
if( get_option($id) == (string)$key )$selected = 'selected';
|
795 |
-
}
|
796 |
-
|
797 |
-
?>
|
798 |
-
<option value="<?php echo $key?>" <?php echo $selected?> ><?php echo $val?></option>
|
799 |
-
<?php } ?>
|
800 |
-
</select>
|
801 |
-
</fieldset>
|
802 |
-
<?php }
|
803 |
-
elseif( $array['type'] == 'label' ){ ?>
|
804 |
-
<fieldset>
|
805 |
-
<label><?php echo $array['value']; ?></label>
|
806 |
-
</fieldset>
|
807 |
-
<?php }
|
808 |
-
elseif( $array['type'] == 'tooltip_button' ){ ?>
|
809 |
-
<fieldset>
|
810 |
-
<a href="<?php echo $array['link']; ?>" class="button-primary" target="<?php echo $array['target'];?>"><?php echo $array['link_label'];?></a>
|
811 |
-
</fieldset>
|
812 |
-
<?php }
|
813 |
-
elseif( $array['type'] == 'button' ){ ?>
|
814 |
-
<fieldset>
|
815 |
-
<button class="button-primary btn_green2 <?php echo $array['button_class'];?>" <?php if($array['disable'] == 1){ echo 'disabled'; }?>><?php echo $array['label'];?></button>
|
816 |
-
</fieldset>
|
817 |
-
<?php }
|
818 |
-
else { ?>
|
819 |
-
|
820 |
-
<fieldset>
|
821 |
-
<input class="input-text regular-input " type="text" name="<?php echo $id?>" id="<?php echo $id?>" style="" value="<?php echo get_option($id)?>" placeholder="<?php if(!empty($array['placeholder'])){echo $array['placeholder'];} ?>">
|
822 |
-
</fieldset>
|
823 |
-
<?php } ?>
|
824 |
-
|
825 |
-
</th>
|
826 |
-
<?php if($array['type'] != 'desc'){ ?>
|
827 |
-
<th class="forminp">
|
828 |
-
<label for=""><span><?php echo $array['title']?><?php if( isset($array['tooltip']) ){?>
|
829 |
-
<span class="woocommerce-help-tip tipTip" title="<?php echo $array['tooltip']?>"></span>
|
830 |
-
<?php } ?></span><span class="html2_title1"><?php echo $array['title1']?></span></label>
|
831 |
-
</th>
|
832 |
-
<?php } ?>
|
833 |
-
</tr>
|
834 |
-
<?php if(isset($array['desc']) && $array['desc'] != ''){ ?>
|
835 |
-
<tr class="<?php echo $array['class']; ?>"><td colspan="2" style=""><p class="description"><?php echo (isset($array['desc']))? $array['desc']: ''?></p></td></tr>
|
836 |
-
<?php } ?>
|
837 |
-
<?php } } ?>
|
838 |
-
</tbody>
|
839 |
-
</table>
|
840 |
-
<?php
|
841 |
-
}
|
842 |
|
843 |
/*
|
844 |
* return licence valid
|
@@ -996,16 +859,18 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
996 |
//$ast_add_tracking_options = apply_filters( 'ast_add_tracking_options', $ast_add_tracking_options );
|
997 |
|
998 |
$form_data = array(
|
999 |
-
'
|
1000 |
-
'type' => '
|
1001 |
-
'title' => __( '
|
1002 |
-
'checkbox_array' => array(
|
1003 |
-
"wc_ast_status_shipped" => __( 'Rename the “Completed” Order status label to “Shipped”', 'woo-advanced-shipment-tracking' ),
|
1004 |
-
"wc_ast_default_mark_shipped" => __( 'Set the "mark as shipped" option checked when adding tracking info to orders', 'woo-advanced-shipment-tracking' )
|
1005 |
-
),
|
1006 |
'show' => true,
|
1007 |
'class' => '',
|
1008 |
-
),
|
|
|
|
|
|
|
|
|
|
|
|
|
1009 |
'wc_ast_unclude_tracking_info' => array(
|
1010 |
'type' => 'multiple_checkbox',
|
1011 |
'title' => __( 'Order Email Display', 'woo-advanced-shipment-tracking' ),
|
@@ -1022,27 +887,23 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1022 |
'show' => true,
|
1023 |
'class' => '',
|
1024 |
),
|
1025 |
-
'
|
1026 |
-
'type' => '
|
1027 |
-
'title' => __( '
|
1028 |
-
'checkbox_array' => array(
|
1029 |
-
"display_track_in_my_account" => __( 'Display Track button on the Orders history list in my-account', 'woo-advanced-shipment-tracking' ),
|
1030 |
-
"open_track_in_new_tab" => __( 'Open the track link in a new tab', 'woo-advanced-shipment-tracking' )
|
1031 |
-
),
|
1032 |
'show' => true,
|
1033 |
'class' => '',
|
1034 |
-
),
|
1035 |
-
|
1036 |
-
'type' => '
|
1037 |
-
'title' => __( '
|
1038 |
-
'checkbox_array' => $ast_add_tracking_options,
|
1039 |
'show' => true,
|
1040 |
'class' => '',
|
1041 |
-
)
|
1042 |
'wc_ast_api_date_format' => array(
|
1043 |
'type' => 'radio',
|
1044 |
-
'title' => __( 'API Date Format', 'woo-advanced-shipment-tracking' ),
|
1045 |
'desc' => __( 'Choose for which Order status to display', 'woo-advanced-shipment-tracking' ),
|
|
|
1046 |
'options' => array(
|
1047 |
"d-m-Y" => 'DD/MM/YYYY',
|
1048 |
"m-d-Y" => 'MM/DD/YYYY',
|
@@ -1057,48 +918,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1057 |
|
1058 |
return $form_data;
|
1059 |
|
1060 |
-
}
|
1061 |
-
|
1062 |
-
/*
|
1063 |
-
* get settings tab array data
|
1064 |
-
* return array
|
1065 |
-
*/
|
1066 |
-
function get_delivered_data(){
|
1067 |
-
$form_data = array(
|
1068 |
-
'wc_ast_status_delivered' => array(
|
1069 |
-
'type' => 'checkbox',
|
1070 |
-
'title' => __( 'Enable custom order status “Delivered"', '' ),
|
1071 |
-
'show' => true,
|
1072 |
-
'class' => '',
|
1073 |
-
),
|
1074 |
-
'wc_ast_status_label_color' => array(
|
1075 |
-
'type' => 'color',
|
1076 |
-
'title' => __( 'Delivered Label color', '' ),
|
1077 |
-
'class' => 'status_label_color_th',
|
1078 |
-
'show' => true,
|
1079 |
-
),
|
1080 |
-
'wc_ast_status_label_font_color' => array(
|
1081 |
-
'type' => 'dropdown',
|
1082 |
-
'title' => __( 'Delivered Label font color', '' ),
|
1083 |
-
'options' => array(
|
1084 |
-
"" =>__( 'Select', 'woocommerce' ),
|
1085 |
-
"#fff" =>__( 'Light', '' ),
|
1086 |
-
"#000" =>__( 'Dark', '' ),
|
1087 |
-
),
|
1088 |
-
'class' => 'status_label_color_th',
|
1089 |
-
'show' => true,
|
1090 |
-
),
|
1091 |
-
'wcast_enable_delivered_email' => array(
|
1092 |
-
'type' => 'checkbox',
|
1093 |
-
'title' => __( 'Enable the Delivered order status email', '' ),
|
1094 |
-
'title_link'=> "<a class='settings_edit' href='".wcast_initialise_customizer_email::get_customizer_url('custom_order_status_email','delivered')."'>".__( 'Edit', 'woocommerce' )."</a>",
|
1095 |
-
'class' => 'status_label_color_th',
|
1096 |
-
'show' => true,
|
1097 |
-
),
|
1098 |
-
);
|
1099 |
-
return $form_data;
|
1100 |
-
|
1101 |
-
}
|
1102 |
|
1103 |
/*
|
1104 |
* get updated tracking status settings array data
|
@@ -1132,7 +952,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1132 |
'wcast_enable_updated_tracking_email' => array(
|
1133 |
'type' => 'checkbox',
|
1134 |
'title' => __( 'Enable the Updated Tracking order status email', '' ),
|
1135 |
-
'title_link'=> "<a class='settings_edit' href='".
|
1136 |
'class' => 'updated_tracking_status_label_color_th',
|
1137 |
'show' => true,
|
1138 |
),
|
@@ -1211,30 +1031,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1211 |
*/
|
1212 |
public function wc_ast_custom_order_status_form_update(){
|
1213 |
if ( ! empty( $_POST ) && check_admin_referer( 'wc_ast_order_status_form', 'wc_ast_order_status_form_nonce' ) ) {
|
1214 |
-
$data = $this->get_delivered_data();
|
1215 |
-
foreach( $data as $key => $val ){
|
1216 |
-
|
1217 |
-
if($key == 'wcast_enable_delivered_email'){
|
1218 |
-
if(isset($_POST['wcast_enable_delivered_email'])){
|
1219 |
-
|
1220 |
-
if($_POST['wcast_enable_delivered_email'] == 1){
|
1221 |
-
update_option( 'customizer_delivered_order_settings_enabled',wc_clean($_POST['wcast_enable_delivered_email']));
|
1222 |
-
$enabled = 'yes';
|
1223 |
-
} else{
|
1224 |
-
update_option( 'customizer_delivered_order_settings_enabled','');
|
1225 |
-
$enabled = 'no';
|
1226 |
-
}
|
1227 |
|
1228 |
-
|
1229 |
-
$wcast_enable_delivered_email['enabled'] = $enabled;
|
1230 |
-
update_option( 'woocommerce_customer_delivered_order_settings', $wcast_enable_delivered_email );
|
1231 |
-
}
|
1232 |
-
}
|
1233 |
-
|
1234 |
-
if(isset($_POST[ $key ])){
|
1235 |
-
update_option( $key, wc_clean($_POST[ $key ]) );
|
1236 |
-
}
|
1237 |
-
}
|
1238 |
|
1239 |
$data = $this->get_partial_shipped_data();
|
1240 |
|
@@ -1350,8 +1148,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1350 |
|
1351 |
if(empty($date_shipped)){
|
1352 |
$date_shipped = date("d-m-Y");
|
1353 |
-
}
|
1354 |
-
$replace_tracking_info = $_POST['replace_tracking_info'];
|
1355 |
|
1356 |
global $wpdb;
|
1357 |
|
@@ -1399,8 +1196,14 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1399 |
$tracking_items = $wast->get_tracking_items( $order_id );
|
1400 |
|
1401 |
if ( count( $tracking_items ) > 0 ) {
|
1402 |
-
foreach ( $tracking_items as $key => $item ) {
|
1403 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1404 |
|
1405 |
if($tracking_exist == false) {
|
1406 |
unset( $tracking_items[ $key ] );
|
@@ -1694,7 +1497,7 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1694 |
}
|
1695 |
if($status == 'all'){
|
1696 |
$status = '';
|
1697 |
-
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table" );
|
1698 |
}
|
1699 |
$html = $this->get_provider_html($default_shippment_providers,$status);
|
1700 |
echo $html;exit;
|
@@ -1716,27 +1519,22 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1716 |
</br><a href="javaScript:void(0);" class="button-primary btn_ast2 btn_large add_custom_provider" id="add-custom"><span class="dashicons dashicons-plus-alt"></span><?php _e( 'Add Custom Provider', 'woo-advanced-shipment-tracking' ); ?></a>
|
1717 |
<?php } ?>
|
1718 |
<div class="provider_table_hc">
|
1719 |
-
<div class="shipping_provider_counter counter"></div>
|
1720 |
-
<div class="paging shipping_provider_paging"></div>
|
1721 |
</div>
|
1722 |
-
<table class="wp-list-table widefat posts provder_table
|
1723 |
<thead>
|
1724 |
<tr>
|
1725 |
-
<th
|
1726 |
-
<th
|
1727 |
-
|
1728 |
-
<?php do_action('ast_shipping_provider_column_after_api_name'); ?>
|
1729 |
-
<th><?php _e( 'Country', 'woo-advanced-shipment-tracking'); ?></th>
|
1730 |
-
<th><?php _e( 'Default', 'woo-advanced-shipment-tracking'); ?></th>
|
1731 |
<th><?php _e( 'TrackShip', 'woo-advanced-shipment-tracking'); ?></th>
|
1732 |
-
<th
|
1733 |
-
<th style=""><?php _e( 'Active', 'woo-advanced-shipment-tracking'); ?></th>
|
1734 |
</tr>
|
1735 |
</thead>
|
1736 |
<tbody>
|
1737 |
<?php
|
1738 |
foreach($default_shippment_providers as $d_s_p){ ?>
|
1739 |
-
<tr>
|
1740 |
<td>
|
1741 |
<?php
|
1742 |
$custom_thumb_id = $d_s_p->custom_thumb_id;
|
@@ -1744,152 +1542,75 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1744 |
if($custom_thumb_id != 0){
|
1745 |
$image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
|
1746 |
$provider_image = $image_attributes[0];
|
1747 |
-
} else if(!file_exists($ast_base_directory.''.sanitize_title($d_s_p->provider_name).'.png')){
|
1748 |
-
$provider_image = wc_advanced_shipment_tracking()->plugin_dir_url().'assets/shipment-provider-img/'.sanitize_title($d_s_p->provider_name).'.png?v='.wc_advanced_shipment_tracking()->version;
|
1749 |
} else{
|
1750 |
$provider_image = $ast_directory.''.sanitize_title($d_s_p->provider_name).'.png?v='.wc_advanced_shipment_tracking()->version;
|
1751 |
}
|
1752 |
?>
|
1753 |
<img class="provider-thumb" src="<?php echo $provider_image; ?>">
|
1754 |
<?php } else{
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
<?php } ?>
|
1764 |
|
1765 |
</td>
|
1766 |
<td>
|
1767 |
-
<span class="provider_name"
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
|
|
|
|
|
|
|
|
1778 |
$search = array('(US)', '(UK)');
|
1779 |
$replace = array('', '');
|
1780 |
if($d_s_p->shipping_country && $d_s_p->shipping_country != 'Global'){
|
1781 |
echo esc_html(str_replace($search, $replace, $WC_Countries->countries[$d_s_p->shipping_country]));
|
1782 |
} elseif($d_s_p->shipping_country && $d_s_p->shipping_country == 'Global'){
|
1783 |
echo esc_html('Global');
|
1784 |
-
}
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1789 |
<label for="make_default_<?php echo $d_s_p->id; ?>" id="default_label_<?php echo $d_s_p->id; ?>" class="<?php if($d_s_p->display_in_order != 1) { echo 'disable_label'; } ?>">
|
1790 |
<input type="checkbox" id="make_default_<?php echo $d_s_p->id; ?>" name="make_provider_default" data-id="<?php echo $d_s_p->id; ?>" class="make_provider_default" value="<?php echo sanitize_title( $d_s_p->provider_name )?>" <?php if( $default_provider == sanitize_title( $d_s_p->provider_name ) )echo 'checked';?> <?php if($d_s_p->display_in_order != 1) { echo 'disabled'; } ?>>
|
|
|
1791 |
</label>
|
1792 |
-
</td>
|
1793 |
-
<td>
|
1794 |
-
<?php if($d_s_p->trackship_supported == 1) { echo '<span class="woocommerce-help-tip tipTip dashicons dashicons-yes" title="'.__( 'TrackShip supported', 'woo-advanced-shipment-tracking').'"></span>'; } else{ echo '<span class="woocommerce-help-tip tipTip dashicons dashicons-no-alt" title="'.__( 'TrackShip not supported', 'woo-advanced-shipment-tracking').'"></span>'; }?>
|
1795 |
</td>
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
<span class="dashicons dashicons-edit edit_provider provider_actions_btn" data-provider="<?php echo ($d_s_p->shipping_default == 1) ? 'default_provider' : 'custom_provider';?>" data-pid="<?php echo $d_s_p->id; ?>"></span>
|
1801 |
-
<a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank"><span class="dashicons dashicons-external provider_actions_btn"></span></a>
|
1802 |
-
</td>
|
1803 |
<td>
|
1804 |
-
<input class="tgl tgl-flat status_slide" id="list-switch-<?php echo $d_s_p->id; ?>" name="select_custom_provider[]" type="checkbox" <?php if($d_s_p->display_in_order == 1) { echo 'checked'; } ?> value="<?php echo $d_s_p->id; ?>"/>
|
1805 |
-
<label class="tgl-btn" for="list-switch-<?php echo $d_s_p->id; ?>"></label>
|
1806 |
</td>
|
1807 |
</tr>
|
1808 |
<?php } ?>
|
1809 |
</tbody>
|
1810 |
-
</table>
|
1811 |
-
<
|
1812 |
-
<
|
1813 |
-
|
1814 |
-
<th><?php _e( 'Provider', 'woo-advanced-shipment-tracking'); ?></th>
|
1815 |
-
<th><?php _e( 'Default', 'woo-advanced-shipment-tracking'); ?></th>
|
1816 |
-
<th><?php _e( 'Actions', 'woo-advanced-shipment-tracking'); ?></th>
|
1817 |
-
</tr>
|
1818 |
-
</thead>
|
1819 |
-
<tbody>
|
1820 |
-
<?php
|
1821 |
-
foreach($default_shippment_providers as $d_s_p){ ?>
|
1822 |
-
<tr>
|
1823 |
-
<td>
|
1824 |
-
<?php
|
1825 |
-
?>
|
1826 |
-
<div class="row-1">
|
1827 |
-
<div class="left-div">
|
1828 |
-
<a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank">
|
1829 |
-
<?php
|
1830 |
-
$custom_thumb_id = $d_s_p->custom_thumb_id;
|
1831 |
-
if( $d_s_p->shipping_default == 1 ){
|
1832 |
-
if($custom_thumb_id != 0){
|
1833 |
-
$image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
|
1834 |
-
$provider_image = $image_attributes[0];
|
1835 |
-
} else if(!file_exists($ast_base_directory.''.sanitize_title($d_s_p->provider_name).'.png')){
|
1836 |
-
$provider_image = wc_advanced_shipment_tracking()->plugin_dir_url().'assets/shipment-provider-img/'.sanitize_title($d_s_p->provider_name).'.png?v='.wc_advanced_shipment_tracking()->version;
|
1837 |
-
} else{
|
1838 |
-
$provider_image = $ast_directory.''.sanitize_title($d_s_p->provider_name).'.png?v='.wc_advanced_shipment_tracking()->version;
|
1839 |
-
}
|
1840 |
-
?>
|
1841 |
-
<img class="provider-thumb" src="<?php echo $provider_image; ?>">
|
1842 |
-
<?php } else{
|
1843 |
-
$image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
|
1844 |
-
|
1845 |
-
if($custom_thumb_id != 0){ ?>
|
1846 |
-
<img class="provider-thumb" src="<?php echo $image_attributes[0]; ?>">
|
1847 |
-
<?php } else{
|
1848 |
-
?>
|
1849 |
-
<img class="provider-thumb" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/icon-default.png">
|
1850 |
-
<?php } ?>
|
1851 |
-
<?php } ?>
|
1852 |
-
</a>
|
1853 |
-
</div>
|
1854 |
-
<div class="right-div">
|
1855 |
-
<a href="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" title="<?php echo str_replace("%number%","",$d_s_p->provider_url ); ?>" target="_blank">
|
1856 |
-
<span class="provider_name"><?php echo $d_s_p->provider_name; ?></span>
|
1857 |
-
</a><br>
|
1858 |
-
<span class="provider_country"><?php
|
1859 |
-
$search = array('(US)', '(UK)');
|
1860 |
-
$replace = array('', '');
|
1861 |
-
if($d_s_p->shipping_country && $d_s_p->shipping_country != 'Global'){
|
1862 |
-
echo str_replace($search, $replace, $WC_Countries->countries[$d_s_p->shipping_country]);
|
1863 |
-
} elseif($d_s_p->shipping_country && $d_s_p->shipping_country == 'Global'){
|
1864 |
-
echo 'Global';
|
1865 |
-
} ?>
|
1866 |
-
</span>
|
1867 |
-
</div>
|
1868 |
-
</div>
|
1869 |
-
</td>
|
1870 |
-
<td><?php $default_provider = get_option("wc_ast_default_provider" );?>
|
1871 |
-
<label for="make_default_<?php echo $d_s_p->id; ?>" id="default_label_<?php echo $d_s_p->id; ?>" class="<?php if($d_s_p->display_in_order != 1) { echo 'disable_label'; } ?>">
|
1872 |
-
<input type="checkbox" id="make_default_<?php echo $d_s_p->id; ?>" name="make_provider_default" data-id="<?php echo $d_s_p->id; ?>" class="make_provider_default" value="<?php echo sanitize_title( $d_s_p->provider_name )?>" <?php if( $default_provider == sanitize_title( $d_s_p->provider_name ) )echo 'checked';?> <?php if($d_s_p->display_in_order != 1) { echo 'disabled'; } ?>>
|
1873 |
-
</label>
|
1874 |
-
</td>
|
1875 |
-
<td>
|
1876 |
-
<?php if( $d_s_p->shipping_default == 0 ){ ?>
|
1877 |
-
<span class="dashicons dashicons-edit edit_provider provider_actions_btn" data-pid="<?php echo $d_s_p->id; ?>"></span>
|
1878 |
-
<span class="dashicons dashicons-trash remove provider_actions_btn" data-pid="<?php echo $d_s_p->id; ?>"></span>
|
1879 |
-
<?php } ?>
|
1880 |
-
<span class="mdl-list__item-secondary-action">
|
1881 |
-
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="mobile-list-switch-<?php echo $d_s_p->id; ?>">
|
1882 |
-
<input type="checkbox" name="select_custom_provider[]" id="mobile-list-switch-<?php echo $d_s_p->id; ?>" class="mdl-switch__input status_slide" value="<?php echo $d_s_p->id; ?>" <?php if($d_s_p->display_in_order == 1) { echo 'checked'; } ?> />
|
1883 |
-
</label>
|
1884 |
-
</span>
|
1885 |
-
</td>
|
1886 |
-
</tr>
|
1887 |
-
<?php } ?>
|
1888 |
-
</tbody>
|
1889 |
-
</table>
|
1890 |
-
<div class="provider_table_hc provider_table_hc_footer">
|
1891 |
-
<div class="shipping_provider_counter counter"></div>
|
1892 |
-
<div class="paging shipping_provider_paging"></div>
|
1893 |
</div>
|
1894 |
<?php } else{
|
1895 |
if($status == 'custom'){ ?>
|
@@ -1993,8 +1714,8 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
1993 |
|
1994 |
$result = $wpdb->insert( $woo_shippment_table_name, $data_array );
|
1995 |
|
1996 |
-
$status = '
|
1997 |
-
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table
|
1998 |
$html = $this->get_provider_html($default_shippment_providers,$status);
|
1999 |
echo $html;exit;
|
2000 |
}
|
@@ -2013,9 +1734,9 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2013 |
);
|
2014 |
$wpdb->delete( $this->table, $where );
|
2015 |
}
|
2016 |
-
$status = '
|
2017 |
|
2018 |
-
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table
|
2019 |
$html = $this->get_provider_html($default_shippment_providers,$status);
|
2020 |
echo $html;exit;
|
2021 |
}
|
@@ -2047,19 +1768,17 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2047 |
|
2048 |
global $wpdb;
|
2049 |
|
2050 |
-
|
2051 |
-
|
2052 |
-
$api_provider_name = NULL;
|
2053 |
-
//echo '</pre>';print_r($_POST['api_provider_name']);exit;
|
2054 |
} else{
|
2055 |
$api_provider_name = wc_clean(json_encode($_POST['api_provider_name']));
|
2056 |
-
}
|
2057 |
|
2058 |
$provider_type = $_POST['provider_type'];
|
2059 |
if($provider_type == 'default_provider'){
|
2060 |
$data_array = array(
|
2061 |
'custom_provider_name' => sanitize_text_field($_POST['shipping_display_name']),
|
2062 |
-
'api_provider_name' => $api_provider_name,
|
2063 |
'custom_thumb_id' => sanitize_text_field($_POST['thumb_id']),
|
2064 |
);
|
2065 |
} else{
|
@@ -2107,39 +1826,29 @@ class WC_Advanced_Shipment_Tracking_Admin {
|
|
2107 |
/**
|
2108 |
* Update bulk status of providers to active
|
2109 |
*/
|
2110 |
-
public function
|
2111 |
-
global $wpdb;
|
2112 |
-
$data_array = array(
|
2113 |
-
'display_in_order' => 1,
|
2114 |
-
);
|
2115 |
-
$where_array = array(
|
2116 |
-
'display_in_order' => 0,
|
2117 |
-
);
|
2118 |
-
$wpdb->update( $this->table, $data_array, $where_array);
|
2119 |
-
$status = 'active';
|
2120 |
-
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table WHERE display_in_order = 1" );
|
2121 |
-
$html = $this->get_provider_html($default_shippment_providers,$status);
|
2122 |
-
exit;
|
2123 |
-
}
|
2124 |
-
|
2125 |
-
/**
|
2126 |
-
* Update bulk status of providers to inactive
|
2127 |
-
*/
|
2128 |
-
public function update_provider_status_inactive_fun(){
|
2129 |
global $wpdb;
|
|
|
2130 |
$data_array = array(
|
2131 |
-
'display_in_order' =>
|
2132 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2133 |
$where_array = array(
|
2134 |
-
'display_in_order' =>
|
2135 |
);
|
2136 |
-
|
2137 |
-
$wpdb->update( $this->table, $data_array, $where_array);
|
2138 |
-
|
2139 |
-
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table
|
2140 |
$html = $this->get_provider_html($default_shippment_providers,$status);
|
2141 |
exit;
|
2142 |
-
}
|
2143 |
|
2144 |
/**
|
2145 |
* Add bulk filter for Shipping provider in orders list
|
76 |
add_filter( 'woocommerce_email_title', array( $this, 'change_completed_woocommerce_email_title'), 10, 2 );
|
77 |
|
78 |
|
79 |
+
add_action( 'wp_ajax_wc_ast_upload_csv_form_update', array( $this, 'upload_tracking_csv_fun') );
|
|
|
80 |
|
81 |
add_action( 'wp_ajax_update_delivered_order_email_status', array( $this, 'update_delivered_order_email_status_fun') );
|
82 |
|
100 |
|
101 |
add_action( 'wp_ajax_woocommerce_shipping_provider_delete', array( $this, 'woocommerce_shipping_provider_delete' ) );
|
102 |
|
103 |
+
add_action( 'wp_ajax_update_provider_status', array( $this, 'update_provider_status_fun') );
|
|
|
|
|
104 |
|
105 |
add_action( 'wp_ajax_reset_shipping_providers_database', array( $this, 'reset_shipping_providers_database_fun') );
|
106 |
|
184 |
wp_enqueue_script( 'select2');
|
185 |
|
186 |
wp_enqueue_style( 'ast_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
|
187 |
+
wp_register_style( 'trackship_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/trackship.css', array(), wc_advanced_shipment_tracking()->version );
|
188 |
|
189 |
wp_enqueue_style( 'front_style', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/front.css', array(), wc_advanced_shipment_tracking()->version );
|
190 |
|
191 |
+
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, true );
|
192 |
|
193 |
wp_register_script( 'selectWoo', WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full' . $suffix . '.js', array( 'jquery' ), '1.0.4' );
|
194 |
wp_register_script( 'wc-enhanced-select', WC()->plugin_url() . '/assets/js/admin/wc-enhanced-select' . $suffix . '.js', array( 'jquery', 'selectWoo' ), WC_VERSION );
|
210 |
wp_enqueue_script( 'jquery-ui-sortable' );
|
211 |
wp_enqueue_script('media-upload');
|
212 |
wp_enqueue_script('thickbox');
|
213 |
+
wp_enqueue_style('thickbox');
|
214 |
+
wp_enqueue_style( 'trackship_styles' );
|
|
|
|
|
215 |
|
216 |
wp_enqueue_script( 'ajax-queue', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/jquery.ajax.queue.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version);
|
217 |
|
269 |
|
270 |
global $wpdb;
|
271 |
$woo_shippment_table_name = $this->table;
|
272 |
+
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $woo_shippment_table_name ORDER BY display_in_order DESC, trackship_supported DESC, id ASC" );
|
273 |
|
274 |
foreach($default_shippment_providers as $key => $value){
|
275 |
$search = array('(US)', '(UK)');
|
288 |
}
|
289 |
}
|
290 |
|
291 |
+
wp_enqueue_script( 'shipment_tracking_table_rows' );
|
|
|
292 |
?>
|
293 |
<div class="zorem-layout">
|
294 |
<div class="zorem-layout__header">
|
295 |
<h1 class="zorem-layout__header-breadcrumbs"><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=wc-admin' ) ); ?>"><?php _e('WooCommerce', 'woocommerce'); ?></a></span><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=woocommerce-advanced-shipment-tracking' ) ); ?>"><?php _e('Shipment Tracking', 'woo-advanced-shipment-tracking'); ?></a></span><span class="header-breadcrumbs-last"><?php _e('Settings', 'woocommerce'); ?></span></h1>
|
296 |
+
<div class="zorem-layout__docs-panel">
|
297 |
+
<a class="ast-docs-btn" target="blank" href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/?utm_source=wp-admin&utm_medium=ASTHeader&utm_campaign=header"><?php _e('Docs', 'woo-advanced-shipment-tracking'); ?><span class="dashicons dashicons-media-default"></span></a>
|
298 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
</div>
|
300 |
<?php do_action('ast_settings_admin_notice');?>
|
301 |
<div class="woocommerce zorem_admin_layout">
|
302 |
<div class="ast_admin_content" >
|
303 |
+
<div class="ast_nav_div">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
|
305 |
+
<?php $this->get_html_menu_tab( $this->get_ast_tab_settings_data());
|
|
|
|
|
306 |
|
307 |
+
require_once( 'views/admin_options_shipping_provider.php' );
|
308 |
+
require_once( 'views/admin_options_settings.php' );
|
309 |
+
require_once( 'views/admin_options_bulk_upload.php' );
|
310 |
+
do_action('ast_paypal_settings_panel');
|
311 |
+
require_once( 'views/admin_options_addons.php' ); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
</div>
|
313 |
</div>
|
314 |
</div>
|
315 |
|
316 |
+
<div id="ast_settings_snackbar" class="ast_snackbar"><?php _e( 'Data saved successfully.', 'woo-advanced-shipment-tracking' )?></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
317 |
|
318 |
<div id="" class="popupwrapper ts_video_popup" style="display:none;">
|
319 |
<div class="popuprow">
|
331 |
</div>
|
332 |
<div class="popupclose"></div>
|
333 |
</div>
|
334 |
+
</div>
|
335 |
<?php
|
336 |
if(isset( $_GET['tab'] ) && $_GET['tab'] == 'trackship'){ ?>
|
337 |
<script>
|
370 |
'name' => 'tabs',
|
371 |
'position' => 3,
|
372 |
),
|
373 |
+
/*'trackship' => array(
|
374 |
'title' => 'TrackShip',
|
375 |
'show' => true,
|
376 |
'class' => 'tab_label',
|
378 |
'data-label' => 'TrackShip',
|
379 |
'name' => 'tabs',
|
380 |
'position' => 4,
|
381 |
+
),*/
|
382 |
'tab6' => array(
|
383 |
'title' => __( 'Add-ons', 'woo-advanced-shipment-tracking' ),
|
384 |
'show' => true,
|
397 |
$tab = isset( $_GET['tab'] ) ? sanitize_text_field($_GET['tab']) : 'settings';
|
398 |
if( $tab == 'license')$tab = 'addons';
|
399 |
foreach( (array)$arrays as $id => $array ){
|
400 |
+
/*if($id == 'trackship'){
|
401 |
$wc_ast_api_key = get_option('wc_ast_api_key');
|
402 |
if($wc_ast_api_key){ ?>
|
403 |
<a class="menu_trackship_link" href="<?php echo esc_url( admin_url( '/admin.php?page=trackship-for-woocommerce' ) ); ?>">TrackShip</a>
|
404 |
<?php }
|
405 |
+
} else{ */?>
|
406 |
<input class="tab_input" id="<?php echo $id?>" name="<?php echo $array['name']; ?>" type="radio" data-tab="<?php echo $array['data-tab']; ?>" data-label="<?php echo $array['data-label']; ?>" <?php if($tab == $array['data-tab']){ echo 'checked'; } ?> />
|
407 |
<label class="<?php echo $array['class']; ?>" for="<?php echo $id?>"><?php echo $array['title']; ?></label>
|
408 |
+
<?php /*}*/ }
|
409 |
}
|
410 |
/*
|
411 |
* get html of fields
|
414 |
|
415 |
$checked = '';
|
416 |
?>
|
417 |
+
<table class="form-table">
|
418 |
<tbody>
|
419 |
<?php foreach( (array)$arrays as $id => $array ){
|
420 |
|
473 |
}
|
474 |
?>
|
475 |
<input type="hidden" name="<?php echo $id?>" value="0"/>
|
476 |
+
<input class="ast-tgl ast-tgl-flat" id="<?php echo $id?>" name="<?php echo $id?>" type="checkbox" <?php echo $checked ?> value="1"/>
|
477 |
+
<label class="ast-tgl-btn" for="<?php echo $id?>"></label>
|
478 |
<?php }
|
479 |
elseif( isset( $array['type'] ) && $array['type'] == 'multiple_checkbox' ){ ?>
|
480 |
<?php
|
589 |
public function get_html_ul( $arrays ){ ?>
|
590 |
<ul class="settings_ul">
|
591 |
<?php foreach( (array)$arrays as $id => $array ){
|
592 |
+
|
593 |
if($array['show']){
|
594 |
if( $array['type'] == 'checkbox' ){
|
595 |
if(get_option($id)){
|
600 |
?>
|
601 |
<li>
|
602 |
<input type="hidden" name="<?php echo $id?>" value="0"/>
|
603 |
+
<input class="" id="<?php echo $id?>" name="<?php echo $id?>" type="checkbox" <?php echo $checked ?> value="1"/>
|
604 |
+
|
|
|
605 |
<label class="setting_ul_checkbox_label"><?php echo $array['title']?>
|
606 |
<?php if( isset($array['tooltip']) ){?>
|
607 |
<span class="woocommerce-help-tip tipTip" title="<?php echo $array['tooltip']?>"></span>
|
608 |
<?php } ?>
|
609 |
</label>
|
610 |
</li>
|
611 |
+
<?php } else if( $array['type'] == 'tgl_checkbox' ){
|
612 |
+
if(get_option($id)){
|
613 |
+
$checked = 'checked';
|
614 |
+
} else{
|
615 |
+
$checked = '';
|
616 |
+
}
|
617 |
+
$tgl_class = '';
|
618 |
+
if( isset($array['tgl_color']) ){
|
619 |
+
$tgl_class = 'ast-tgl-btn-green';
|
620 |
+
} ?>
|
621 |
+
<li>
|
622 |
+
<input type="hidden" name="<?php echo $id?>" value="0"/>
|
623 |
+
<input class="ast-tgl ast-tgl-flat" id="<?php echo $id?>" name="<?php echo $id?>" type="checkbox" <?php echo $checked ?> value="1"/>
|
624 |
+
<label class="ast-tgl-btn <?php echo $tgl_class; ?>" for="<?php echo $id?>"></label>
|
625 |
+
|
626 |
+
<label class="setting_ul_tgl_checkbox_label"><?php echo $array['title']?>
|
627 |
+
<?php if( isset($array['tooltip']) ){?>
|
628 |
+
<span class="woocommerce-help-tip tipTip" title="<?php echo $array['tooltip']?>"></span>
|
629 |
+
<?php } ?>
|
630 |
+
</label>
|
631 |
+
<?php if( isset($array['customize_link']) ){?>
|
632 |
+
<a href="<?php echo $array['customize_link']?>" class="button-primary btn_ts_transparent btn_large ts_customizer_btn"><?php _e( 'Customize', 'woo-advanced-shipment-tracking' ); ?></a>
|
633 |
+
<?php } ?>
|
634 |
+
</li>
|
635 |
+
<?php } else if( $array['type'] == 'radio' ){ ?>
|
636 |
<li class="settings_radio_li">
|
637 |
+
<label><strong><?php echo $array['title']?></strong>
|
638 |
+
<?php if( isset($array['tooltip']) ){?>
|
639 |
+
<span class="woocommerce-help-tip tipTip" title="<?php echo $array['tooltip']?>"></span>
|
640 |
+
<?php } ?>
|
641 |
+
</label>
|
642 |
<?php foreach((array)$array['options'] as $key => $val ){
|
643 |
$selected = '';
|
644 |
if( get_option($id,$array['default']) == (string)$key )$selected = 'checked'; ?>
|
651 |
</span>
|
652 |
<?php } ?>
|
653 |
</li>
|
654 |
+
<?php } else if($array['type'] == 'multiple_checkbox'){ ?>
|
655 |
<li>
|
656 |
+
<div class="multiple_checkbox_label">
|
657 |
+
<label for=""><strong><?php echo $array['title']?></strong></label>
|
658 |
+
<span class="multiple_checkbox_description"><?php echo $array['desc']?></span>
|
659 |
+
</div >
|
660 |
<div class="multiple_checkbox_parent">
|
661 |
<?php $op = 1;
|
662 |
foreach((array)$array['options'] as $key => $val ){
|
670 |
<span class="multiple_checkbox">
|
671 |
<label class="" for="">
|
672 |
<input type="hidden" name="<?php echo $id?>[<?php echo $key?>]" value="0"/>
|
673 |
+
<input type="checkbox" name="<?php echo $id?>[<?php echo $key?>]" class="" <?php echo $checked; ?> value="1"/>
|
674 |
<span class="multiple_label"><?php echo $val['status']; ?></span>
|
675 |
</br>
|
676 |
</label>
|
677 |
</span>
|
678 |
<?php } } ?>
|
679 |
+
</div>
|
680 |
+
</li>
|
681 |
+
<?php } else if($array['type'] == 'dropdown_tpage'){ ?>
|
682 |
+
<li>
|
683 |
+
<label><?php echo $array['title']?>
|
684 |
+
<?php if( isset($array['tooltip']) ){?>
|
685 |
+
<span class="woocommerce-help-tip tipTip" title="<?php echo $array['tooltip']?>"></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
686 |
<?php } ?>
|
687 |
+
</label>
|
688 |
+
<select class="select select2 tracking_page_select" id="<?php echo $id?>" name="<?php echo $id?>">
|
689 |
+
<?php
|
690 |
+
foreach((array)$array['options'] as $page_id => $page_name){ ?>
|
691 |
+
<option <?php if(get_option( $id ) == $page_id){ echo 'selected'; }?> value="<?php echo $page_id; ?>"><?php echo $page_name; ?></option>
|
692 |
+
<?php } ?>
|
693 |
+
<option <?php if(get_option( $id ) == 'other'){ echo 'selected'; }?> value="other"><?php _e( 'Other', 'woo-advanced-shipment-tracking' ); ?></option>
|
694 |
+
</select>
|
695 |
+
<fieldset style="<?php if(get_option( $id ) != 'other'){ echo 'display:none;'; }?>" class="trackship_other_page_fieldset">
|
696 |
+
<input type="text" name="wc_ast_trackship_other_page" id="wc_ast_trackship_other_page" value="<?php echo get_option('wc_ast_trackship_other_page'); ?>">
|
697 |
+
</fieldset>
|
698 |
+
<p class="tracking_page_desc"><?php _e( 'add the [wcast-track-order] shortcode in the selected page.', 'woo-advanced-shipment-tracking' ); ?> <a href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/integration/" target="blank"><?php _e( 'more info', 'woo-advanced-shipment-tracking' ); ?></a></p>
|
699 |
</li>
|
700 |
<?php }
|
701 |
}
|
702 |
} ?>
|
703 |
</ul>
|
704 |
+
<?php }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
705 |
|
706 |
/*
|
707 |
* return licence valid
|
859 |
//$ast_add_tracking_options = apply_filters( 'ast_add_tracking_options', $ast_add_tracking_options );
|
860 |
|
861 |
$form_data = array(
|
862 |
+
/*'wc_ast_status_shipped' => array(
|
863 |
+
'type' => 'checkbox',
|
864 |
+
'title' => __( 'Rename the “Completed” Order status label to “Shipped”', 'woo-advanced-shipment-tracking' ),
|
|
|
|
|
|
|
|
|
865 |
'show' => true,
|
866 |
'class' => '',
|
867 |
+
), */
|
868 |
+
'wc_ast_default_mark_shipped' => array(
|
869 |
+
'type' => 'checkbox',
|
870 |
+
'title' => __( 'Set the "mark as shipped" option checked when adding tracking info to orders', 'woo-advanced-shipment-tracking' ),
|
871 |
+
'show' => true,
|
872 |
+
'class' => '',
|
873 |
+
),
|
874 |
'wc_ast_unclude_tracking_info' => array(
|
875 |
'type' => 'multiple_checkbox',
|
876 |
'title' => __( 'Order Email Display', 'woo-advanced-shipment-tracking' ),
|
887 |
'show' => true,
|
888 |
'class' => '',
|
889 |
),
|
890 |
+
'display_track_in_my_account' => array(
|
891 |
+
'type' => 'checkbox',
|
892 |
+
'title' => __( 'Display Track button on the Orders history list in customer accounts', 'woo-advanced-shipment-tracking' ),
|
|
|
|
|
|
|
|
|
893 |
'show' => true,
|
894 |
'class' => '',
|
895 |
+
),
|
896 |
+
'open_track_in_new_tab' => array(
|
897 |
+
'type' => 'checkbox',
|
898 |
+
'title' => __( 'Open the track link in a new tab', 'woo-advanced-shipment-tracking' ),
|
|
|
899 |
'show' => true,
|
900 |
'class' => '',
|
901 |
+
),
|
902 |
'wc_ast_api_date_format' => array(
|
903 |
'type' => 'radio',
|
904 |
+
'title' => __( 'API Date Format', 'woo-advanced-shipment-tracking' ),
|
905 |
'desc' => __( 'Choose for which Order status to display', 'woo-advanced-shipment-tracking' ),
|
906 |
+
'tooltip' => __( 'The date format which your external service update the API', 'woo-advanced-shipment-tracking' ),
|
907 |
'options' => array(
|
908 |
"d-m-Y" => 'DD/MM/YYYY',
|
909 |
"m-d-Y" => 'MM/DD/YYYY',
|
918 |
|
919 |
return $form_data;
|
920 |
|
921 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
922 |
|
923 |
/*
|
924 |
* get updated tracking status settings array data
|
952 |
'wcast_enable_updated_tracking_email' => array(
|
953 |
'type' => 'checkbox',
|
954 |
'title' => __( 'Enable the Updated Tracking order status email', '' ),
|
955 |
+
'title_link'=> "<a class='settings_edit' href='".wcast_partial_shipped_customizer_email::get_customizer_url('custom_order_status_email','updated_tracking')."'>".__( 'Edit', 'woocommerce' )."</a>",
|
956 |
'class' => 'updated_tracking_status_label_color_th',
|
957 |
'show' => true,
|
958 |
),
|
1031 |
*/
|
1032 |
public function wc_ast_custom_order_status_form_update(){
|
1033 |
if ( ! empty( $_POST ) && check_admin_referer( 'wc_ast_order_status_form', 'wc_ast_order_status_form_nonce' ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1034 |
|
1035 |
+
update_option( 'wc_ast_status_shipped', wc_clean($_POST[ 'wc_ast_status_shipped' ]) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1036 |
|
1037 |
$data = $this->get_partial_shipped_data();
|
1038 |
|
1148 |
|
1149 |
if(empty($date_shipped)){
|
1150 |
$date_shipped = date("d-m-Y");
|
1151 |
+
}
|
|
|
1152 |
|
1153 |
global $wpdb;
|
1154 |
|
1196 |
$tracking_items = $wast->get_tracking_items( $order_id );
|
1197 |
|
1198 |
if ( count( $tracking_items ) > 0 ) {
|
1199 |
+
foreach ( $tracking_items as $key => $item ) {
|
1200 |
+
|
1201 |
+
$tracking_exist = false;
|
1202 |
+
|
1203 |
+
if ( class_exists( 'ast_woo_advanced_shipment_tracking_by_products' ) ) {
|
1204 |
+
$item_tracking_number = $item['tracking_number'];
|
1205 |
+
$tracking_exist = in_array($item_tracking_number, array_column($_POST['trackings'], 'tracking_number'));
|
1206 |
+
}
|
1207 |
|
1208 |
if($tracking_exist == false) {
|
1209 |
unset( $tracking_items[ $key ] );
|
1497 |
}
|
1498 |
if($status == 'all'){
|
1499 |
$status = '';
|
1500 |
+
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table ORDER BY display_in_order DESC, trackship_supported DESC, id ASC" );
|
1501 |
}
|
1502 |
$html = $this->get_provider_html($default_shippment_providers,$status);
|
1503 |
echo $html;exit;
|
1519 |
</br><a href="javaScript:void(0);" class="button-primary btn_ast2 btn_large add_custom_provider" id="add-custom"><span class="dashicons dashicons-plus-alt"></span><?php _e( 'Add Custom Provider', 'woo-advanced-shipment-tracking' ); ?></a>
|
1520 |
<?php } ?>
|
1521 |
<div class="provider_table_hc">
|
1522 |
+
<div class="shipping_provider_counter counter"></div>
|
|
|
1523 |
</div>
|
1524 |
+
<table class="wp-list-table widefat posts provder_table" id="shipping-provider-table">
|
1525 |
<thead>
|
1526 |
<tr>
|
1527 |
+
<th><?php _e( 'Shipping Providers', 'woo-advanced-shipment-tracking'); ?></th>
|
1528 |
+
<th><?php _e( 'Display Name', 'woo-advanced-shipment-tracking'); ?></th>
|
1529 |
+
<?php do_action('ast_shipping_provider_column_after_api_name'); ?>
|
|
|
|
|
|
|
1530 |
<th><?php _e( 'TrackShip', 'woo-advanced-shipment-tracking'); ?></th>
|
1531 |
+
<th><?php _e( 'Actions', 'woo-advanced-shipment-tracking'); ?></th>
|
|
|
1532 |
</tr>
|
1533 |
</thead>
|
1534 |
<tbody>
|
1535 |
<?php
|
1536 |
foreach($default_shippment_providers as $d_s_p){ ?>
|
1537 |
+
<tr class="<?php if($d_s_p->display_in_order == 1) { echo 'enable'; } else{ echo 'disable'; } ?>">
|
1538 |
<td>
|
1539 |
<?php
|
1540 |
$custom_thumb_id = $d_s_p->custom_thumb_id;
|
1542 |
if($custom_thumb_id != 0){
|
1543 |
$image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
|
1544 |
$provider_image = $image_attributes[0];
|
|
|
|
|
1545 |
} else{
|
1546 |
$provider_image = $ast_directory.''.sanitize_title($d_s_p->provider_name).'.png?v='.wc_advanced_shipment_tracking()->version;
|
1547 |
}
|
1548 |
?>
|
1549 |
<img class="provider-thumb" src="<?php echo $provider_image; ?>">
|
1550 |
<?php } else{
|
1551 |
+
$image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
|
1552 |
+
|
1553 |
+
if($custom_thumb_id != 0){ ?>
|
1554 |
+
<img class="provider-thumb" src="<?php echo $image_attributes[0]; ?>">
|
1555 |
+
<?php } else{ ?>
|
1556 |
+
<img class="provider-thumb" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/icon-default.png">
|
1557 |
+
<?php }
|
1558 |
+
} ?>
|
|
|
1559 |
|
1560 |
</td>
|
1561 |
<td>
|
1562 |
+
<span class="provider_name">
|
1563 |
+
<?php echo $d_s_p->provider_name;
|
1564 |
+
if($d_s_p->custom_provider_name != ''){ echo ' ('.$d_s_p->custom_provider_name.')'; }
|
1565 |
+
if($d_s_p->api_provider_name != ''){
|
1566 |
+
if($this->isJSON($d_s_p->api_provider_name)){
|
1567 |
+
$api_count = count(json_decode($d_s_p->api_provider_name));
|
1568 |
+
} else{
|
1569 |
+
$api_count = 1;
|
1570 |
+
}
|
1571 |
+
$api_text = __('API aliases','woo-advanced-shipment-tracking');
|
1572 |
+
echo ' ('.$api_count.' '.$api_text.')';
|
1573 |
+
}
|
1574 |
+
?>
|
1575 |
+
</span>
|
1576 |
+
<span class="provider_country"><?php
|
1577 |
$search = array('(US)', '(UK)');
|
1578 |
$replace = array('', '');
|
1579 |
if($d_s_p->shipping_country && $d_s_p->shipping_country != 'Global'){
|
1580 |
echo esc_html(str_replace($search, $replace, $WC_Countries->countries[$d_s_p->shipping_country]));
|
1581 |
} elseif($d_s_p->shipping_country && $d_s_p->shipping_country == 'Global'){
|
1582 |
echo esc_html('Global');
|
1583 |
+
} ?>
|
1584 |
+
</span>
|
1585 |
+
|
1586 |
+
<?php if( $d_s_p->shipping_default == 0 ){ ?>
|
1587 |
+
<span class="dashicons dashicons-trash remove provider_actions_btn" data-pid="<?php echo $d_s_p->id; ?>"></span>
|
1588 |
+
<?php } ?>
|
1589 |
+
|
1590 |
+
<span class="edit_provider provider_actions_btn" data-provider="<?php echo ($d_s_p->shipping_default == 1) ? 'default_provider' : 'custom_provider';?>" data-pid="<?php echo $d_s_p->id; ?>"><?php _e( 'edit', 'woo-advanced-shipment-tracking' ); ?></span>
|
1591 |
+
|
1592 |
+
<?php $default_provider = get_option("wc_ast_default_provider" );?>
|
1593 |
+
|
1594 |
<label for="make_default_<?php echo $d_s_p->id; ?>" id="default_label_<?php echo $d_s_p->id; ?>" class="<?php if($d_s_p->display_in_order != 1) { echo 'disable_label'; } ?>">
|
1595 |
<input type="checkbox" id="make_default_<?php echo $d_s_p->id; ?>" name="make_provider_default" data-id="<?php echo $d_s_p->id; ?>" class="make_provider_default" value="<?php echo sanitize_title( $d_s_p->provider_name )?>" <?php if( $default_provider == sanitize_title( $d_s_p->provider_name ) )echo 'checked';?> <?php if($d_s_p->display_in_order != 1) { echo 'disabled'; } ?>>
|
1596 |
+
<?php _e( 'default', 'woo-advanced-shipment-tracking' ); ?>
|
1597 |
</label>
|
|
|
|
|
|
|
1598 |
</td>
|
1599 |
+
<?php do_action('ast_shipping_provider_column_content_after_api_name', $d_s_p->provider_name); ?>
|
1600 |
+
<td class="provider_trackship_td">
|
1601 |
+
<?php if($d_s_p->trackship_supported == 1) { echo '<span class="dashicons dashicons-yes-alt"></span>'; } else{ echo '<span class="dashicons dashicons-dismiss"></span>'; }?><span>TrackShip</span>
|
1602 |
+
</td>
|
|
|
|
|
|
|
1603 |
<td>
|
1604 |
+
<input class="ast-tgl ast-tgl-flat status_slide" id="list-switch-<?php echo $d_s_p->id; ?>" name="select_custom_provider[]" type="checkbox" <?php if($d_s_p->display_in_order == 1) { echo 'checked'; } ?> value="<?php echo $d_s_p->id; ?>"/>
|
1605 |
+
<label class="ast-tgl-btn" for="list-switch-<?php echo $d_s_p->id; ?>"></label>
|
1606 |
</td>
|
1607 |
</tr>
|
1608 |
<?php } ?>
|
1609 |
</tbody>
|
1610 |
+
</table>
|
1611 |
+
<div class="provider_table_hc_footer">
|
1612 |
+
<div class="shipping_provider_counter counter"></div>
|
1613 |
+
<div class="paging shipping_provider_paging"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1614 |
</div>
|
1615 |
<?php } else{
|
1616 |
if($status == 'custom'){ ?>
|
1714 |
|
1715 |
$result = $wpdb->insert( $woo_shippment_table_name, $data_array );
|
1716 |
|
1717 |
+
$status = 'all';
|
1718 |
+
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table" );
|
1719 |
$html = $this->get_provider_html($default_shippment_providers,$status);
|
1720 |
echo $html;exit;
|
1721 |
}
|
1734 |
);
|
1735 |
$wpdb->delete( $this->table, $where );
|
1736 |
}
|
1737 |
+
$status = 'all';
|
1738 |
|
1739 |
+
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table" );
|
1740 |
$html = $this->get_provider_html($default_shippment_providers,$status);
|
1741 |
echo $html;exit;
|
1742 |
}
|
1768 |
|
1769 |
global $wpdb;
|
1770 |
|
1771 |
+
/*if (array_filter($_POST['api_provider_name']) == []) {
|
1772 |
+
$api_provider_name = NULL;
|
|
|
|
|
1773 |
} else{
|
1774 |
$api_provider_name = wc_clean(json_encode($_POST['api_provider_name']));
|
1775 |
+
}*/
|
1776 |
|
1777 |
$provider_type = $_POST['provider_type'];
|
1778 |
if($provider_type == 'default_provider'){
|
1779 |
$data_array = array(
|
1780 |
'custom_provider_name' => sanitize_text_field($_POST['shipping_display_name']),
|
1781 |
+
//'api_provider_name' => $api_provider_name,
|
1782 |
'custom_thumb_id' => sanitize_text_field($_POST['thumb_id']),
|
1783 |
);
|
1784 |
} else{
|
1826 |
/**
|
1827 |
* Update bulk status of providers to active
|
1828 |
*/
|
1829 |
+
public function update_provider_status_fun(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1830 |
global $wpdb;
|
1831 |
+
|
1832 |
$data_array = array(
|
1833 |
+
'display_in_order' => $_POST['status'],
|
1834 |
);
|
1835 |
+
|
1836 |
+
if( $_POST['status'] == 1){
|
1837 |
+
$display_in_order = 0;
|
1838 |
+
} else{
|
1839 |
+
$display_in_order = 1;
|
1840 |
+
}
|
1841 |
+
|
1842 |
$where_array = array(
|
1843 |
+
'display_in_order' => $display_in_order,
|
1844 |
);
|
1845 |
+
|
1846 |
+
$wpdb->update( $this->table, $data_array, $where_array );
|
1847 |
+
$status = 'all';
|
1848 |
+
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table" );
|
1849 |
$html = $this->get_provider_html($default_shippment_providers,$status);
|
1850 |
exit;
|
1851 |
+
}
|
1852 |
|
1853 |
/**
|
1854 |
* Add bulk filter for Shipping provider in orders list
|
includes/class-wc-advanced-shipment-tracking-front.php
CHANGED
@@ -409,8 +409,6 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
409 |
if($custom_thumb_id != 0){
|
410 |
$image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
|
411 |
$src = $image_attributes[0];
|
412 |
-
} else if(!file_exists($ast_base_directory.''.sanitize_title($tracking_provider).'.png')){
|
413 |
-
$src = wc_advanced_shipment_tracking()->plugin_dir_url().'assets/shipment-provider-img/'.sanitize_title($tracking_provider).'.png?v='.wc_advanced_shipment_tracking()->version;
|
414 |
} else{
|
415 |
$src = $ast_directory.''.sanitize_title($tracking_provider).'.png?v='.wc_advanced_shipment_tracking()->version;
|
416 |
}
|
@@ -572,7 +570,7 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
572 |
$action = (isset($_REQUEST["action"])?$_REQUEST["action"]:"");
|
573 |
if($action != 'preview_tracking_page')return;
|
574 |
|
575 |
-
|
576 |
|
577 |
$primary_color = get_option('wc_ast_select_primary_color');
|
578 |
$border_color = get_option('wc_ast_select_border_color');
|
@@ -586,6 +584,8 @@ class WC_Advanced_Shipment_Tracking_Front {
|
|
586 |
$ast_directory = $upload_dir['baseurl'] . '/ast-shipping-providers/';
|
587 |
$ast_base_directory = $upload_dir['basedir'] . '/ast-shipping-providers/';
|
588 |
|
589 |
-
include 'views/front/preview_tracking_page.php';
|
|
|
|
|
590 |
}
|
591 |
}
|
409 |
if($custom_thumb_id != 0){
|
410 |
$image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
|
411 |
$src = $image_attributes[0];
|
|
|
|
|
412 |
} else{
|
413 |
$src = $ast_directory.''.sanitize_title($tracking_provider).'.png?v='.wc_advanced_shipment_tracking()->version;
|
414 |
}
|
570 |
$action = (isset($_REQUEST["action"])?$_REQUEST["action"]:"");
|
571 |
if($action != 'preview_tracking_page')return;
|
572 |
|
573 |
+
get_header();
|
574 |
|
575 |
$primary_color = get_option('wc_ast_select_primary_color');
|
576 |
$border_color = get_option('wc_ast_select_border_color');
|
584 |
$ast_directory = $upload_dir['baseurl'] . '/ast-shipping-providers/';
|
585 |
$ast_base_directory = $upload_dir['basedir'] . '/ast-shipping-providers/';
|
586 |
|
587 |
+
include 'views/front/preview_tracking_page.php';
|
588 |
+
get_footer();
|
589 |
+
exit;
|
590 |
}
|
591 |
}
|
includes/class-wc-advanced-shipment-tracking-install.php
CHANGED
@@ -190,9 +190,7 @@ class WC_Advanced_Shipment_Tracking_Install {
|
|
190 |
'provider_border_color' => get_theme_mod('provider_border_color',$wcast_customizer_settings->defaults['provider_border_color']),
|
191 |
'display_shipment_provider_name' => get_theme_mod('display_shipment_provider_name',$wcast_customizer_settings->defaults['display_shipment_provider_name']),
|
192 |
'display_shipment_provider_image' => get_theme_mod('display_shipment_provider_image',$wcast_customizer_settings->defaults['display_shipment_provider_image']),
|
193 |
-
'remove_date_from_tracking' => get_theme_mod('remove_date_from_tracking',$wcast_customizer_settings->defaults['remove_date_from_tracking']),
|
194 |
-
'tracking_number_link' => get_theme_mod('tracking_number_link',$wcast_customizer_settings->defaults['tracking_number_link']),
|
195 |
-
'hide_table_header' => get_theme_mod('hide_table_header',$wcast_customizer_settings->defaults['hide_table_header']),'provider_header_text' => get_theme_mod('provider_header_text',$wcast_customizer_settings->defaults['provider_header_text']),
|
196 |
'tracking_number_header_text' => get_theme_mod('tracking_number_header_text',$wcast_customizer_settings->defaults['tracking_number_header_text']),
|
197 |
'shipped_date_header_text' => get_theme_mod('shipped_date_header_text',$wcast_customizer_settings->defaults['shipped_date_header_text']),
|
198 |
'show_track_label' => get_theme_mod('show_track_label',$wcast_customizer_settings->defaults['show_track_label']),'track_header_text' => get_theme_mod('track_header_text',$wcast_customizer_settings->defaults['track_header_text']),'table_header_font_size' => get_theme_mod('table_header_font_size',$wcast_customizer_settings->defaults['table_header_font_size']),
|
@@ -207,23 +205,7 @@ class WC_Advanced_Shipment_Tracking_Install {
|
|
207 |
'tracking_link_bg_color' => get_theme_mod('tracking_link_bg_color',$wcast_customizer_settings->defaults['tracking_link_bg_color']),
|
208 |
'tracking_link_border' => get_theme_mod('tracking_link_border',$wcast_customizer_settings->defaults['tracking_link_border']),
|
209 |
);
|
210 |
-
update_option('tracking_info_settings',$opt);
|
211 |
-
|
212 |
-
$wcast_delivered_order_email = new wcast_initialise_customizer_email();
|
213 |
-
$woocommerce_customer_delivered_order_settings = get_option('woocommerce_customer_delivered_order_settings');
|
214 |
-
$delivered_email_opt = array(
|
215 |
-
'enabled' => $woocommerce_customer_delivered_order_settings['enabled'],
|
216 |
-
'subject' => $woocommerce_customer_delivered_order_settings['subject'],
|
217 |
-
'heading' => $woocommerce_customer_delivered_order_settings['heading'],
|
218 |
-
'wcast_delivered_email_content' => get_theme_mod('wcast_delivered_email_content',$wcast_delivered_order_email->defaults['wcast_delivered_email_content']),
|
219 |
-
'wcast_show_tracking_details' => get_theme_mod('wcast_show_tracking_details',$wcast_delivered_order_email->defaults['wcast_show_tracking_details']),
|
220 |
-
'wcast_show_order_details' => get_theme_mod('wcast_show_order_details',$wcast_delivered_order_email->defaults['wcast_show_order_details']),
|
221 |
-
'wcast_show_shipping_address' => get_theme_mod('wcast_show_shipping_address',$wcast_delivered_order_email->defaults['wcast_show_shipping_address']),
|
222 |
-
'wcast_show_billing_address' => get_theme_mod('wcast_show_billing_address',$wcast_delivered_order_email->defaults['wcast_show_billing_address']),
|
223 |
-
'wcast_enable_delivered_ga_tracking' => get_theme_mod('wcast_enable_delivered_ga_tracking',''),
|
224 |
-
'wcast_delivered_analytics_link' => get_theme_mod('wcast_delivered_analytics_link',''),
|
225 |
-
);
|
226 |
-
update_option( 'woocommerce_customer_delivered_order_settings', $delivered_email_opt );
|
227 |
|
228 |
$wcast_partial_shipped_customizer_email = new wcast_partial_shipped_customizer_email();
|
229 |
$woocommerce_customer_partial_shipped_order_settings = get_option('woocommerce_customer_partial_shipped_order_settings');
|
190 |
'provider_border_color' => get_theme_mod('provider_border_color',$wcast_customizer_settings->defaults['provider_border_color']),
|
191 |
'display_shipment_provider_name' => get_theme_mod('display_shipment_provider_name',$wcast_customizer_settings->defaults['display_shipment_provider_name']),
|
192 |
'display_shipment_provider_image' => get_theme_mod('display_shipment_provider_image',$wcast_customizer_settings->defaults['display_shipment_provider_image']),
|
193 |
+
'remove_date_from_tracking' => get_theme_mod('remove_date_from_tracking',$wcast_customizer_settings->defaults['remove_date_from_tracking']),
|
|
|
|
|
194 |
'tracking_number_header_text' => get_theme_mod('tracking_number_header_text',$wcast_customizer_settings->defaults['tracking_number_header_text']),
|
195 |
'shipped_date_header_text' => get_theme_mod('shipped_date_header_text',$wcast_customizer_settings->defaults['shipped_date_header_text']),
|
196 |
'show_track_label' => get_theme_mod('show_track_label',$wcast_customizer_settings->defaults['show_track_label']),'track_header_text' => get_theme_mod('track_header_text',$wcast_customizer_settings->defaults['track_header_text']),'table_header_font_size' => get_theme_mod('table_header_font_size',$wcast_customizer_settings->defaults['table_header_font_size']),
|
205 |
'tracking_link_bg_color' => get_theme_mod('tracking_link_bg_color',$wcast_customizer_settings->defaults['tracking_link_bg_color']),
|
206 |
'tracking_link_border' => get_theme_mod('tracking_link_border',$wcast_customizer_settings->defaults['tracking_link_border']),
|
207 |
);
|
208 |
+
update_option('tracking_info_settings',$opt);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
|
210 |
$wcast_partial_shipped_customizer_email = new wcast_partial_shipped_customizer_email();
|
211 |
$woocommerce_customer_partial_shipped_order_settings = get_option('woocommerce_customer_partial_shipped_order_settings');
|
includes/class-wc-advanced-shipment-tracking-settings.php
CHANGED
@@ -426,19 +426,19 @@ class WC_Advanced_Shipment_Tracking_Settings {
|
|
426 |
<div id="" class="trackingpopup_wrapper add_tracking_popup" style="display:none;">
|
427 |
<div class="trackingpopup_row">
|
428 |
<div class="popup_header">
|
429 |
-
<h3 class="popup_title"><?php _e( 'Add Tracking - order ', 'woo-advanced-shipment-tracking'); ?> - #<?php echo $custom_order_number; ?></h2>
|
430 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ast-logo.png" class="poppup_header_logo">
|
431 |
<span class="dashicons dashicons-no-alt popup_close_icon"></span>
|
432 |
</div>
|
433 |
<div class="popup_body">
|
434 |
-
<form id="add_tracking_number_form" method="POST" class="add_tracking_number_form">
|
435 |
-
|
436 |
-
|
437 |
-
<
|
|
|
438 |
</p>
|
439 |
-
<p class="form-field">
|
440 |
-
<label for="tracking_number"><?php _e( 'Shipping Provider:', 'woo-advanced-shipment-tracking'); ?></label
|
441 |
-
<select class="chosen_select" id="tracking_provider" name="tracking_provider"
|
442 |
<option value=""><?php _e( 'Shipping Provider:', 'woo-advanced-shipment-tracking' ); ?></option>
|
443 |
<?php
|
444 |
foreach($shippment_countries as $s_c){
|
@@ -458,20 +458,17 @@ class WC_Advanced_Shipment_Tracking_Settings {
|
|
458 |
} ?>
|
459 |
</select>
|
460 |
</p>
|
461 |
-
<p class="form-field tracking_product_code_field">
|
462 |
-
<label for="tracking_product_code"><?php _e( 'Product Code:', 'woo-advanced-shipment-tracking'); ?></label
|
463 |
-
<input type="text" class="short"
|
464 |
</p>
|
465 |
-
<p class="form-field date_shipped_field">
|
466 |
-
<label for="date_shipped"><?php _e( 'Date shipped:', 'woo-advanced-shipment-tracking'); ?></label
|
467 |
-
<input type="text" class="date-picker-field"
|
468 |
</p>
|
469 |
-
<?php
|
470 |
-
|
471 |
-
|
472 |
-
do_action("ast_tracking_form_between_form", $order_id);
|
473 |
-
|
474 |
-
if($wc_ast_status_partial_shipped){ ?>
|
475 |
<fieldset class="form-field change_order_to_shipped_field">
|
476 |
<span><?php _e( 'Mark order as:', 'woo-advanced-shipment-tracking'); ?></span>
|
477 |
<ul class="wc-radios">
|
@@ -485,10 +482,11 @@ class WC_Advanced_Shipment_Tracking_Settings {
|
|
485 |
<input type="checkbox" class="checkbox" style="" name="change_order_to_shipped" id="change_order_to_shipped" value="yes" <?php if($wc_ast_default_mark_shipped == 1){ echo 'checked'; }?>>
|
486 |
</p>
|
487 |
<?php } ?>
|
488 |
-
<
|
|
|
489 |
<input type="hidden" name="action" value="add_inline_tracking_number">
|
490 |
<input type="hidden" name="order_id" id="order_id" value="<?php echo $order_id; ?>">
|
491 |
-
<input type="submit" name="Submit" value="<?php _e( '
|
492 |
</p>
|
493 |
</form>
|
494 |
</div>
|
@@ -594,7 +592,7 @@ class WC_Advanced_Shipment_Tracking_Settings {
|
|
594 |
$result = $wpdb->insert( $this->table, $data_array );
|
595 |
}
|
596 |
$status = 'active';
|
597 |
-
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table
|
598 |
ob_start();
|
599 |
$admin = new WC_Advanced_Shipment_Tracking_Admin;
|
600 |
$html = $admin->get_provider_html($default_shippment_providers,$status);
|
@@ -603,7 +601,7 @@ class WC_Advanced_Shipment_Tracking_Settings {
|
|
603 |
echo json_encode( array( 'html' => $html) );exit;
|
604 |
} else{
|
605 |
|
606 |
-
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table
|
607 |
|
608 |
foreach ( $default_shippment_providers as $key => $val ){
|
609 |
$shippment_providers[ $val->provider_name ] = $val;
|
@@ -725,7 +723,7 @@ class WC_Advanced_Shipment_Tracking_Settings {
|
|
725 |
}
|
726 |
|
727 |
$status = 'active';
|
728 |
-
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table
|
729 |
ob_start();
|
730 |
$admin = new WC_Advanced_Shipment_Tracking_Admin;
|
731 |
$html = $admin->get_provider_html($default_shippment_providers,$status);
|
426 |
<div id="" class="trackingpopup_wrapper add_tracking_popup" style="display:none;">
|
427 |
<div class="trackingpopup_row">
|
428 |
<div class="popup_header">
|
429 |
+
<h3 class="popup_title"><?php _e( 'Add Tracking - order ', 'woo-advanced-shipment-tracking'); ?> - #<?php echo $custom_order_number; ?></h2>
|
|
|
430 |
<span class="dashicons dashicons-no-alt popup_close_icon"></span>
|
431 |
</div>
|
432 |
<div class="popup_body">
|
433 |
+
<form id="add_tracking_number_form" method="POST" class="add_tracking_number_form">
|
434 |
+
<?php do_action("ast_tracking_form_between_form", $order_id, 'inline'); ?>
|
435 |
+
<p class="form-field tracking_number_field form-50">
|
436 |
+
<label for="tracking_number"><?php _e( 'Tracking number:', 'woo-advanced-shipment-tracking'); ?></label>
|
437 |
+
<input type="text" class="short" name="tracking_number" id="tracking_number" value="" autocomplete="off">
|
438 |
</p>
|
439 |
+
<p class="form-field form-50">
|
440 |
+
<label for="tracking_number"><?php _e( 'Shipping Provider:', 'woo-advanced-shipment-tracking'); ?></label>
|
441 |
+
<select class="chosen_select" id="tracking_provider" name="tracking_provider">
|
442 |
<option value=""><?php _e( 'Shipping Provider:', 'woo-advanced-shipment-tracking' ); ?></option>
|
443 |
<?php
|
444 |
foreach($shippment_countries as $s_c){
|
458 |
} ?>
|
459 |
</select>
|
460 |
</p>
|
461 |
+
<p class="form-field tracking_product_code_field form-50">
|
462 |
+
<label for="tracking_product_code"><?php _e( 'Product Code:', 'woo-advanced-shipment-tracking'); ?></label>
|
463 |
+
<input type="text" class="short" name="tracking_product_code" id="tracking_product_code" value="">
|
464 |
</p>
|
465 |
+
<p class="form-field date_shipped_field form-50">
|
466 |
+
<label for="date_shipped"><?php _e( 'Date shipped:', 'woo-advanced-shipment-tracking'); ?></label>
|
467 |
+
<input type="text" class="date-picker-field" name="date_shipped" id="date_shipped" value="<?php echo date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), current_time( 'timestamp' ) ); ?>" placeholder="<?php echo date_i18n( __( 'Y-m-d', 'woo-advanced-shipment-tracking' ), time() ); ?>">
|
468 |
</p>
|
469 |
+
<?php do_action("ast_after_tracking_field", $order_id); ?>
|
470 |
+
<hr>
|
471 |
+
<?php if($wc_ast_status_partial_shipped){ ?>
|
|
|
|
|
|
|
472 |
<fieldset class="form-field change_order_to_shipped_field">
|
473 |
<span><?php _e( 'Mark order as:', 'woo-advanced-shipment-tracking'); ?></span>
|
474 |
<ul class="wc-radios">
|
482 |
<input type="checkbox" class="checkbox" style="" name="change_order_to_shipped" id="change_order_to_shipped" value="yes" <?php if($wc_ast_default_mark_shipped == 1){ echo 'checked'; }?>>
|
483 |
</p>
|
484 |
<?php } ?>
|
485 |
+
<hr>
|
486 |
+
<p>
|
487 |
<input type="hidden" name="action" value="add_inline_tracking_number">
|
488 |
<input type="hidden" name="order_id" id="order_id" value="<?php echo $order_id; ?>">
|
489 |
+
<input type="submit" name="Submit" value="<?php _e( 'Fulfill Order', 'woo-advanced-shipment-tracking'); ?>" class="button-primary btn_green">
|
490 |
</p>
|
491 |
</form>
|
492 |
</div>
|
592 |
$result = $wpdb->insert( $this->table, $data_array );
|
593 |
}
|
594 |
$status = 'active';
|
595 |
+
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table ORDER BY display_in_order DESC, trackship_supported DESC, id ASC" );
|
596 |
ob_start();
|
597 |
$admin = new WC_Advanced_Shipment_Tracking_Admin;
|
598 |
$html = $admin->get_provider_html($default_shippment_providers,$status);
|
601 |
echo json_encode( array( 'html' => $html) );exit;
|
602 |
} else{
|
603 |
|
604 |
+
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table ORDER BY display_in_order DESC, trackship_supported DESC, id ASC" );
|
605 |
|
606 |
foreach ( $default_shippment_providers as $key => $val ){
|
607 |
$shippment_providers[ $val->provider_name ] = $val;
|
723 |
}
|
724 |
|
725 |
$status = 'active';
|
726 |
+
$default_shippment_providers = $wpdb->get_results( "SELECT * FROM $this->table ORDER BY display_in_order DESC, trackship_supported DESC, id ASC" );
|
727 |
ob_start();
|
728 |
$admin = new WC_Advanced_Shipment_Tracking_Admin;
|
729 |
$html = $admin->get_provider_html($default_shippment_providers,$status);
|
includes/class-wc-advanced-shipment-tracking-trackship.php
CHANGED
@@ -61,48 +61,45 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
61 |
//load trackship css js
|
62 |
add_action( 'admin_enqueue_scripts', array( $this, 'trackship_styles' ), 4);
|
63 |
|
64 |
-
add_action('admin_menu', array( $this, 'register_woocommerce_trackship_menu' ), 99 );
|
65 |
|
66 |
//ajax save admin trackship settings
|
67 |
add_action( 'wp_ajax_wc_ast_trackship_form_update', array( $this, 'wc_ast_trackship_form_update_callback' ) );
|
68 |
add_action( 'wp_ajax_trackship_tracking_page_form_update', array( $this, 'trackship_tracking_page_form_update_callback' ) );
|
69 |
add_action( 'wp_ajax_ts_late_shipments_email_form_update', array( $this, 'ts_late_shipments_email_form_update_callback' ) );
|
|
|
|
|
|
|
|
|
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 |
-
add_action( '
|
97 |
-
|
98 |
-
|
99 |
-
// add bulk order filter for exported / non-exported orders
|
100 |
-
$wc_ast_show_shipment_status_filter = get_option( 'wc_ast_show_shipment_status_filter', 0 );
|
101 |
-
if( $wc_ast_show_shipment_status_filter == 1 ){
|
102 |
-
add_action( 'restrict_manage_posts', array( $this, 'filter_orders_by_shipment_status') , 20 );
|
103 |
-
add_filter( 'request', array( $this, 'filter_orders_by_shipment_status_query' ) );
|
104 |
-
}
|
105 |
-
}
|
106 |
|
107 |
// trigger when order status changed to shipped or completed
|
108 |
add_action( 'woocommerce_order_status_completed', array( $this, 'trigger_woocommerce_order_status_completed'), 10, 1 );
|
@@ -130,14 +127,16 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
130 |
//fix shipment tracking for deleted tracking
|
131 |
add_action("fix_shipment_tracking_for_deleted_tracking", array( $this, 'func_fix_shipment_tracking_for_deleted_tracking' ), 10, 3 );
|
132 |
|
133 |
-
|
134 |
-
if( $api_enabled == true ){
|
135 |
-
add_action( 'wp_dashboard_setup', array( $this, 'ast_add_dashboard_widgets') );
|
136 |
-
}
|
137 |
|
138 |
//filter in shipped orders
|
139 |
add_filter( 'is_order_shipped', array( $this, "check_tracking_exist" ),10,2);
|
140 |
add_filter( 'is_order_shipped', array( $this, "check_order_status" ),5,2);
|
|
|
|
|
|
|
|
|
|
|
141 |
}
|
142 |
|
143 |
/**
|
@@ -148,42 +147,45 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
148 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
149 |
|
150 |
wp_register_style( 'trackship_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/trackship.css', array(), wc_advanced_shipment_tracking()->version );
|
151 |
-
|
152 |
-
wp_register_style( 'woocommerce_admin_styles', WC()->plugin_url() . '/assets/css/admin.css', array(), WC_VERSION );
|
153 |
-
|
154 |
-
wp_register_script( 'jquery-tiptip', WC()->plugin_url() . '/assets/js/jquery-tiptip/jquery.tipTip.min.js', array( 'jquery' ), WC_VERSION, true );
|
155 |
-
wp_register_script( 'jquery-blockui', WC()->plugin_url() . '/assets/js/jquery-blockui/jquery.blockUI' . $suffix . '.js', array( 'jquery' ), '2.70', true );
|
156 |
-
wp_register_script( 'trackship_script', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/trackship.js', array( 'jquery', 'wp-util' ), wc_advanced_shipment_tracking()->version );
|
157 |
wp_localize_script( 'trackship_script', 'trackship_script', array(
|
158 |
'i18n' => array(
|
159 |
'data_saved' => __( 'Data saved successfully.', 'woo-advanced-shipment-tracking' ),
|
160 |
),
|
161 |
-
) );
|
162 |
-
|
163 |
-
//wp_register_style( 'material-css', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/material.css', array(), wc_advanced_shipment_tracking()->version );
|
164 |
-
//wp_register_script( 'material-js', wc_advanced_shipment_tracking()->plugin_dir_url().'assets/js/material.min.js', array( 'jquery' ), wc_advanced_shipment_tracking()->version );
|
165 |
|
166 |
if(!isset($_GET['page'])) {
|
167 |
return;
|
168 |
}
|
169 |
|
170 |
-
if( $_GET['page'] != '
|
171 |
return;
|
172 |
}
|
173 |
-
|
174 |
-
wp_enqueue_style( '
|
175 |
-
//wp_enqueue_style( 'material-css' );
|
176 |
-
wp_enqueue_style( 'ast_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
|
177 |
-
wp_enqueue_style( 'trackship_styles' );
|
178 |
-
wp_enqueue_style( 'woocommerce_admin_styles' );
|
179 |
-
|
180 |
-
wp_enqueue_script( 'jquery-tiptip' );
|
181 |
-
wp_enqueue_script( 'jquery-blockui' );
|
182 |
-
wp_enqueue_script( 'wp-color-picker' );
|
183 |
-
//wp_enqueue_script( 'material-js' );
|
184 |
wp_enqueue_script( 'trackship_script' );
|
185 |
}
|
186 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
/*
|
188 |
* Admin Menu add function
|
189 |
* WC sub menu
|
@@ -206,23 +208,7 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
206 |
<h1 class="zorem-layout__header-breadcrumbs"><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=wc-admin' ) ); ?>"><?php _e('WooCommerce', 'woocommerce'); ?></a></span><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=trackship-for-woocommerce' ) ); ?>">TrackShip</a></span><span class="header-breadcrumbs-last"><?php _e('Settings', 'woocommerce'); ?></span></h1>
|
207 |
<?php } else{ ?>
|
208 |
<h1 class="zorem-layout__header-breadcrumbs"><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=wc-admin' ) ); ?>"><?php _e('WooCommerce', 'woocommerce'); ?></a></span><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=trackship-for-woocommerce' ) ); ?>"><?php _e('Shipment Tracking', 'woo-advanced-shipment-tracking'); ?></a></span><span class="header-breadcrumbs-last">TrackShip</span></h1>
|
209 |
-
<?php } ?>
|
210 |
-
<div class="zorem-layout__logo-panel">
|
211 |
-
<img class="header-plugin-logo" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/trackship-logo.png">
|
212 |
-
<?php if($wc_ast_api_key){ ?>
|
213 |
-
<div class="trackship_menu trackship_dropdown">
|
214 |
-
<span class="dashicons dashicons-menu trackship-dropdown-menu"></span>
|
215 |
-
<ul class="trackship-dropdown-content">
|
216 |
-
<li><a href="javaScript:void(0);" data-label="<?php _e('Settings', 'woocommerce'); ?>" data-tab="trackship" data-section="content_trackship_dashboard"><?php _e('Settings', 'woocommerce'); ?></a></li>
|
217 |
-
<li><a href="javaScript:void(0);" data-label="<?php _e('Tracking Page', 'woo-advanced-shipment-tracking'); ?>" data-tab="tracking-page" data-section="content_tracking_page"><?php _e('Tracking Page', 'woo-advanced-shipment-tracking'); ?></a></li>
|
218 |
-
<li><a href="javaScript:void(0);" data-label="<?php _e('Notifications', 'woo-advanced-shipment-tracking'); ?>" data-tab="notifications" data-section="content_status_notifications"><?php _e('Notifications', 'woo-advanced-shipment-tracking'); ?></a></li>
|
219 |
-
<li><a href="javaScript:void(0);" data-label="<?php _e('Tools', 'woo-advanced-shipment-tracking'); ?>" data-tab="tools" data-section="content_tools"><?php _e('Tools', 'woo-advanced-shipment-tracking'); ?></a></li>
|
220 |
-
<li><a target="blank" href="https://trackship.info/documentation/?utm_source=wpadmin&utm_medium=ts_settings&utm_campaign=docs"><?php _e( 'Documentation', 'woo-advanced-shipment-tracking' ); ?></a></li>
|
221 |
-
<li><a href="https://trackship.info/my-account/?utm_source=wpadmin&utm_medium=ts_settings&utm_campaign=dashboard" target="blank">TrackShip Account</a></li>
|
222 |
-
</ul>
|
223 |
-
</div>
|
224 |
-
<?php } ?>
|
225 |
-
</div>
|
226 |
</div>
|
227 |
<?php require_once( 'views/trackship_settings.php' );?>
|
228 |
|
@@ -234,6 +220,7 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
234 |
* include file on plugin load
|
235 |
*/
|
236 |
public function on_plugins_loaded() {
|
|
|
237 |
require_once wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/class-wc-intransit-email-customizer.php';
|
238 |
require_once wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/class-wc-failure-email-customizer.php';
|
239 |
require_once wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/class-wc-outfordelivery-email-customizer.php';
|
@@ -252,17 +239,12 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
252 |
|
253 |
if ( ! empty( $_POST ) && check_admin_referer( 'wc_ast_trackship_form', 'wc_ast_trackship_form_nonce' ) ) {
|
254 |
|
255 |
-
$data2 = $this->get_trackship_general_data();
|
256 |
-
$data3 = $this->get_trackship_automation_data();
|
257 |
|
258 |
foreach( $data2 as $key2 => $val2 ){
|
259 |
update_option( $key2, sanitize_text_field( $_POST[ $key2 ] ) );
|
260 |
-
}
|
261 |
-
|
262 |
-
foreach( $data3 as $key3 => $val3 ){
|
263 |
-
update_option( $key3, sanitize_text_field( $_POST[ $key3 ] ) );
|
264 |
}
|
265 |
-
|
266 |
echo json_encode( array('success' => 'true') );die();
|
267 |
}
|
268 |
}
|
@@ -414,68 +396,101 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
414 |
* return array
|
415 |
*/
|
416 |
function get_trackship_general_data(){
|
417 |
-
$wc_ast_api_key = get_option('wc_ast_api_key');
|
418 |
-
|
419 |
-
|
420 |
-
$show_trackship_field = true;
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
|
|
|
|
|
|
427 |
|
428 |
-
$
|
429 |
-
'
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
'wc_ast_show_shipment_status_filter' => array(
|
436 |
-
'type' => '
|
437 |
-
'
|
|
|
438 |
'show' => $show_trackship_field,
|
439 |
'class' => '',
|
440 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
);
|
442 |
return $form_data;
|
443 |
-
}
|
444 |
|
445 |
/*
|
446 |
* get settings tab array data
|
447 |
* return array
|
448 |
*/
|
449 |
-
function
|
450 |
-
$
|
451 |
-
|
452 |
-
if($wc_ast_api_key){
|
453 |
-
$connected = true;
|
454 |
-
$show_trackship_field = true;
|
455 |
-
$show_trackship_description = false;
|
456 |
-
} else{
|
457 |
-
$connected = false;
|
458 |
-
$show_trackship_field = false;
|
459 |
-
$show_trackship_description = true;
|
460 |
-
}
|
461 |
-
if($wc_ast_status_delivered){
|
462 |
-
$disabled_change_to_delivered = false;
|
463 |
-
} else{
|
464 |
-
$disabled_change_to_delivered = true;
|
465 |
-
}
|
466 |
-
|
467 |
-
$form_data = array(
|
468 |
-
'wc_ast_status_change_to_delivered' => array(
|
469 |
'type' => 'checkbox',
|
470 |
-
'title' => __( '
|
471 |
-
'
|
472 |
-
'show' => $show_trackship_field,
|
473 |
'class' => '',
|
474 |
-
'disabled' => $disabled_change_to_delivered,
|
475 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
476 |
);
|
477 |
return $form_data;
|
|
|
478 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
479 |
|
480 |
/**
|
481 |
* Adds 'shipment_status' column header to 'Orders' page immediately after 'woocommerce-advanced-shipment-tracking' column.
|
@@ -492,7 +507,7 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
492 |
$new_columns[ $column_name ] = $column_info;
|
493 |
|
494 |
if ( 'woocommerce-advanced-shipment-tracking' === $column_name ) {
|
495 |
-
$new_columns['shipment_status'] = __( 'Shipment
|
496 |
}
|
497 |
}
|
498 |
return $new_columns;
|
@@ -814,11 +829,8 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
814 |
|
815 |
//error_log( "Order shipped : $order_shipped", 0 );
|
816 |
if( $order_shipped ){
|
817 |
-
$
|
818 |
-
|
819 |
-
$api = new WC_Advanced_Shipment_Tracking_Api_Call;
|
820 |
-
$array = $api->get_trackship_apicall( $order_id );
|
821 |
-
}
|
822 |
}
|
823 |
}
|
824 |
|
@@ -1193,18 +1205,14 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
1193 |
*/
|
1194 |
public function delete_tracking_number_from_trackship( $tracking_items, $tracking_id, $order_id ){
|
1195 |
|
1196 |
-
$
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
$array = $api->delete_tracking_number_from_trackship( $order_id, $tracking_number, $tracking_provider );
|
1205 |
-
}
|
1206 |
-
}
|
1207 |
-
}
|
1208 |
}
|
1209 |
|
1210 |
/*
|
@@ -1233,12 +1241,21 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
1233 |
}
|
1234 |
}
|
1235 |
if( count($shipment_status) > 0 && $delivered == true && $wc_ast_status_delivered){
|
|
|
1236 |
//trigger order deleivered
|
1237 |
$delivered_enabled = get_option( "wc_ast_status_change_to_delivered", 0);
|
|
|
1238 |
if( $delivered_enabled ){
|
1239 |
$order = wc_get_order( $order_id );
|
1240 |
$order_status = $order->get_status();
|
1241 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1242 |
$order->update_status('delivered');
|
1243 |
}
|
1244 |
}
|
@@ -1266,13 +1283,7 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
1266 |
* Add a new dashboard widget.
|
1267 |
*/
|
1268 |
public function ast_add_dashboard_widgets() {
|
1269 |
-
|
1270 |
-
wp_enqueue_script( 'amcharts', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/amcharts/amcharts.js' );
|
1271 |
-
wp_enqueue_script( 'amcharts-light-theme', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/amcharts/light.js' );
|
1272 |
-
wp_enqueue_script( 'amcharts-serial', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/amcharts/serial.js' );
|
1273 |
-
|
1274 |
-
wp_enqueue_style( 'ast_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/admin.css', array(), wc_advanced_shipment_tracking()->version );
|
1275 |
-
|
1276 |
wp_add_dashboard_widget( 'trackship_dashboard_widget', 'Tracking Analytics <small>(last 30 days)</small>', array( $this, 'dashboard_widget_function') );
|
1277 |
}
|
1278 |
|
@@ -1280,252 +1291,149 @@ class WC_Advanced_Shipment_Tracking_Trackship {
|
|
1280 |
* Output the contents of the dashboard widget
|
1281 |
*/
|
1282 |
public function dashboard_widget_function( $post, $callback_args ) {
|
1283 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1284 |
global $wpdb;
|
1285 |
-
$paid_order_statuses = array('completed','delivered','shipped');
|
1286 |
-
$shipment_status_results = $wpdb->get_results( "
|
1287 |
-
SELECT p.ID, pm.* FROM {$wpdb->prefix}posts AS p
|
1288 |
-
INNER JOIN {$wpdb->prefix}postmeta AS pm ON p.ID = pm.post_id
|
1289 |
-
WHERE p.post_status IN ( 'wc-" . implode( "','wc-", $paid_order_statuses ) . "' )
|
1290 |
-
AND p.post_type LIKE 'shop_order'
|
1291 |
-
AND pm.meta_key = 'shipment_status'
|
1292 |
-
AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'
|
1293 |
-
" );
|
1294 |
|
1295 |
-
$
|
1296 |
-
SELECT
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1304 |
$shipment_status = array();
|
1305 |
$shipment_status_merge = array();
|
1306 |
$tracking_item_merge = array();
|
1307 |
|
1308 |
foreach($shipment_status_results as $order){
|
1309 |
$order_id = $order->ID;
|
1310 |
-
$shipment_status = unserialize($order->
|
1311 |
|
1312 |
if(is_array($shipment_status)){
|
1313 |
$shipment_status_merge = array_merge($shipment_status_merge, $shipment_status);
|
1314 |
}
|
1315 |
}
|
1316 |
-
|
1317 |
-
foreach($tracking_items_results as $order){
|
1318 |
-
$order_id = $order->ID;
|
1319 |
-
$tracking_items = unserialize($order->meta_value);
|
1320 |
-
|
1321 |
-
if($tracking_items){
|
1322 |
-
foreach ( $tracking_items as $key => $tracking_item ) {
|
1323 |
-
if( isset($shipment_status[$key]) ){
|
1324 |
-
$tracking_item_merge[] = $tracking_item;
|
1325 |
-
}
|
1326 |
-
}
|
1327 |
-
}
|
1328 |
-
}
|
1329 |
-
|
1330 |
-
$shipment_status_arr = array();
|
1331 |
-
|
1332 |
-
foreach ((array)$shipment_status_merge as $key => $item) {
|
1333 |
-
if(isset($item['status'])){
|
1334 |
-
$shipment_status_arr[$item['status']][$key] = $item;
|
1335 |
-
}
|
1336 |
-
}
|
1337 |
-
|
1338 |
-
$tracking_provider_arr = array();
|
1339 |
-
|
1340 |
-
foreach ($tracking_item_merge as $key => $item) {
|
1341 |
-
$tracking_provider = $wpdb->get_var( "SELECT provider_name FROM {$this->table} WHERE ts_slug = '".$item['tracking_provider']."'" );
|
1342 |
-
$tracking_provider_arr[$tracking_provider][$key] = $item;
|
1343 |
-
}
|
1344 |
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
|
1352 |
-
|
1353 |
-
ksort($tracking_provider_arr, SORT_NUMERIC);
|
1354 |
-
?>
|
1355 |
-
<script type="text/javascript">
|
1356 |
-
AmCharts.makeChart("ast_dashboard_status_chart",
|
1357 |
-
{
|
1358 |
-
"type": "serial",
|
1359 |
-
"categoryField": "shipment_status",
|
1360 |
-
"startDuration": 1,
|
1361 |
-
"handDrawScatter": 4,
|
1362 |
-
"theme": "light",
|
1363 |
-
"categoryAxis": {
|
1364 |
-
"autoRotateAngle": 0,
|
1365 |
-
"autoRotateCount": 0,
|
1366 |
-
"autoWrap": true,
|
1367 |
-
"gridPosition": "start",
|
1368 |
-
"minHorizontalGap": 10,
|
1369 |
-
"offset": 1
|
1370 |
-
},
|
1371 |
-
"trendLines": [],
|
1372 |
-
"graphs": [
|
1373 |
-
{
|
1374 |
-
"balloonText": " [[shipment_status]] : [[value]]",
|
1375 |
-
"bulletBorderThickness": 7,
|
1376 |
-
"colorField": "color",
|
1377 |
-
"fillAlphas": 1,
|
1378 |
-
"id": "AmGraph-1",
|
1379 |
-
"lineColorField": "color",
|
1380 |
-
"title": "graph 1",
|
1381 |
-
"type": "column",
|
1382 |
-
"valueField": "count"
|
1383 |
-
}
|
1384 |
-
],
|
1385 |
-
"guides": [],
|
1386 |
-
"valueAxes": [
|
1387 |
-
{
|
1388 |
-
"id": "ValueAxis-1",
|
1389 |
-
"title": ""
|
1390 |
-
}
|
1391 |
-
],
|
1392 |
-
"allLabels": [],
|
1393 |
-
"balloon": {},
|
1394 |
-
"titles": [
|
1395 |
-
{
|
1396 |
-
"id": "Title-1",
|
1397 |
-
"size": 15,
|
1398 |
-
"text": ""
|
1399 |
-
}
|
1400 |
-
],
|
1401 |
-
"dataProvider": [
|
1402 |
-
<?php
|
1403 |
-
foreach($shipment_status_arr as $status => $array){ ?>
|
1404 |
-
{
|
1405 |
-
"shipment_status": "<?php echo apply_filters("trackship_status_filter",$status); ?>",
|
1406 |
-
"count": <?php echo count($array); ?>,
|
1407 |
-
"color": "#BBE285",
|
1408 |
-
},
|
1409 |
-
<?php
|
1410 |
-
} ?>
|
1411 |
-
]
|
1412 |
-
}
|
1413 |
-
);
|
1414 |
-
</script>
|
1415 |
-
<script type="text/javascript">
|
1416 |
-
AmCharts.makeChart("ast_dashboard_providers_chart",
|
1417 |
-
{
|
1418 |
-
"type": "serial",
|
1419 |
-
"categoryField": "shipment_provider",
|
1420 |
-
"startDuration": 1,
|
1421 |
-
"handDrawScatter": 4,
|
1422 |
-
"theme": "light",
|
1423 |
-
"categoryAxis": {
|
1424 |
-
"autoRotateAngle": 0,
|
1425 |
-
"autoRotateCount": 0,
|
1426 |
-
"autoWrap": true,
|
1427 |
-
"gridPosition": "start",
|
1428 |
-
"minHorizontalGap": 10,
|
1429 |
-
"offset": 1
|
1430 |
-
},
|
1431 |
-
"trendLines": [],
|
1432 |
-
"graphs": [
|
1433 |
-
{
|
1434 |
-
"balloonText": " [[shipment_provider]] : [[value]]",
|
1435 |
-
"bulletBorderThickness": 7,
|
1436 |
-
"colorField": "color",
|
1437 |
-
"fillAlphas": 1,
|
1438 |
-
"id": "AmGraph-1",
|
1439 |
-
"lineColorField": "color",
|
1440 |
-
"title": "graph 1",
|
1441 |
-
"type": "column",
|
1442 |
-
"valueField": "count"
|
1443 |
-
}
|
1444 |
-
],
|
1445 |
-
"guides": [],
|
1446 |
-
"valueAxes": [
|
1447 |
-
{
|
1448 |
-
"id": "ValueAxis-1",
|
1449 |
-
"title": ""
|
1450 |
-
}
|
1451 |
-
],
|
1452 |
-
"allLabels": [],
|
1453 |
-
"balloon": {},
|
1454 |
-
"titles": [
|
1455 |
-
{
|
1456 |
-
"id": "Title-1",
|
1457 |
-
"size": 15,
|
1458 |
-
"text": ""
|
1459 |
-
}
|
1460 |
-
],
|
1461 |
-
"dataProvider": [
|
1462 |
-
<?php
|
1463 |
-
foreach($tracking_provider_arr as $provider => $array){ ?>
|
1464 |
-
{
|
1465 |
-
"shipment_provider": "<?php echo $provider; ?>",
|
1466 |
-
"count": <?php echo count($array); ?>,
|
1467 |
-
"color": "#BBE285",
|
1468 |
-
},
|
1469 |
-
<?php
|
1470 |
-
} ?>
|
1471 |
-
]
|
1472 |
-
}
|
1473 |
-
);
|
1474 |
-
</script>
|
1475 |
-
<style>
|
1476 |
-
a[href="http://www.amcharts.com"] {
|
1477 |
-
display: none !important;
|
1478 |
-
}
|
1479 |
-
</style>
|
1480 |
-
<div class="ast-dashborad-widget">
|
1481 |
|
1482 |
-
|
1483 |
-
|
1484 |
|
1485 |
-
|
1486 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1487 |
|
1488 |
-
|
1489 |
-
<label for="tab_t_issues" class="widget_tab_label"><?php _e('Tracking issues', 'woo-advanced-shipment-tracking'); ?></label>
|
1490 |
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
<?php } else{ ?>
|
1495 |
-
<p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
|
1496 |
-
<?php } ?>
|
1497 |
-
</section>
|
1498 |
|
1499 |
-
|
1500 |
-
|
1501 |
-
<div id="ast_dashboard_status_chart" class="" style="width: 100%;height: 300px;"></div>
|
1502 |
-
<?php } else{ ?>
|
1503 |
-
<p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
|
1504 |
-
<?php } ?>
|
1505 |
-
</section>
|
1506 |
-
|
1507 |
-
<section id="content_t_issues" class="widget_tab_section">
|
1508 |
-
<?php if($tracking_issue_array){ ?>
|
1509 |
-
<table class="table widefat fixed striped" style="border: 0;border-bottom: 1px solid #e5e5e5;">
|
1510 |
-
<tbody>
|
1511 |
-
<?php foreach($tracking_issue_array as $status => $array){ ?>
|
1512 |
-
<tr>
|
1513 |
-
<td><a href="<?php echo get_site_url(); ?>/wp-admin/edit.php?s&post_status=all&post_type=shop_order&_shop_order_shipment_status=<?php echo $status; ?>"><?php echo apply_filters("trackship_status_filter",$status); ?></a></td>
|
1514 |
-
<td><?php echo count($array); ?></td>
|
1515 |
-
</tr>
|
1516 |
-
<?php } ?>
|
1517 |
-
</tbody>
|
1518 |
-
</table>
|
1519 |
-
<?php } else{ ?>
|
1520 |
-
<p style="padding: 8px 12px;"><?php _e('data not available.', 'woo-advanced-shipment-tracking'); ?></p>
|
1521 |
-
<?php } ?>
|
1522 |
-
</section>
|
1523 |
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1529 |
|
1530 |
/**
|
1531 |
* Create tracking page after store is connected
|
61 |
//load trackship css js
|
62 |
add_action( 'admin_enqueue_scripts', array( $this, 'trackship_styles' ), 4);
|
63 |
|
64 |
+
//add_action('admin_menu', array( $this, 'register_woocommerce_trackship_menu' ), 99 );
|
65 |
|
66 |
//ajax save admin trackship settings
|
67 |
add_action( 'wp_ajax_wc_ast_trackship_form_update', array( $this, 'wc_ast_trackship_form_update_callback' ) );
|
68 |
add_action( 'wp_ajax_trackship_tracking_page_form_update', array( $this, 'trackship_tracking_page_form_update_callback' ) );
|
69 |
add_action( 'wp_ajax_ts_late_shipments_email_form_update', array( $this, 'ts_late_shipments_email_form_update_callback' ) );
|
70 |
+
|
71 |
+
//add Shipment status column after tracking
|
72 |
+
add_filter( 'manage_edit-shop_order_columns', array( $this, 'wc_add_order_shipment_status_column_header'), 20 );
|
73 |
+
add_action( 'manage_shop_order_posts_custom_column', array( $this, 'wc_add_order_shipment_status_column_content') );
|
74 |
|
75 |
+
//add bulk action - get shipment status
|
76 |
+
add_filter( 'bulk_actions-edit-shop_order', array( $this, 'add_bulk_actions_get_shipment_status'), 10, 1 );
|
77 |
+
|
78 |
+
// Make the action from selected orders to get shipment status
|
79 |
+
add_filter( 'handle_bulk_actions-edit-shop_order', array( $this, 'get_shipment_status_handle_bulk_action_edit_shop_order'), 10, 3 );
|
80 |
+
|
81 |
+
// Bulk shipment status sync ajax call from settings
|
82 |
+
add_action( 'wp_ajax_bulk_shipment_status_from_settings', array( $this, 'bulk_shipment_status_from_settings_fun' ) );
|
83 |
+
|
84 |
+
// Bulk shipment status sync for empty balance ajax call from settings
|
85 |
+
add_action( 'wp_ajax_bulk_shipment_status_for_empty_balance_from_settings', array( $this, 'bulk_shipment_status_for_empty_balance_from_settings_fun' ) );
|
86 |
+
|
87 |
+
// Bulk shipment status sync for please do connection status ajax call from settings
|
88 |
+
add_action( 'wp_ajax_bulk_shipment_status_for_do_connection_from_settings', array( $this, 'bulk_shipment_status_for_do_connection_from_settings_fun' ) );
|
89 |
+
|
90 |
+
// The results notice from bulk action on orders
|
91 |
+
add_action( 'admin_notices', array( $this, 'shipment_status_bulk_action_admin_notice' ) );
|
92 |
+
|
93 |
+
// add 'get_shipment_status' order meta box order action
|
94 |
+
add_action( 'woocommerce_order_actions', array( $this, 'add_order_meta_box_get_shipment_status_actions' ) );
|
95 |
+
add_action( 'woocommerce_order_action_get_shipment_status_edit_order', array( $this, 'process_order_meta_box_actions_get_shipment_status' ) );
|
96 |
+
|
97 |
+
// add bulk order filter for exported / non-exported orders
|
98 |
+
$wc_ast_show_shipment_status_filter = get_option( 'wc_ast_show_shipment_status_filter', 0 );
|
99 |
+
if( $wc_ast_show_shipment_status_filter == 1 ){
|
100 |
+
add_action( 'restrict_manage_posts', array( $this, 'filter_orders_by_shipment_status') , 20 );
|
101 |
+
add_filter( 'request', array( $this, 'filter_orders_by_shipment_status_query' ) );
|
102 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
|
104 |
// trigger when order status changed to shipped or completed
|
105 |
add_action( 'woocommerce_order_status_completed', array( $this, 'trigger_woocommerce_order_status_completed'), 10, 1 );
|
127 |
//fix shipment tracking for deleted tracking
|
128 |
add_action("fix_shipment_tracking_for_deleted_tracking", array( $this, 'func_fix_shipment_tracking_for_deleted_tracking' ), 10, 3 );
|
129 |
|
130 |
+
add_action( 'wp_dashboard_setup', array( $this, 'ast_add_dashboard_widgets') );
|
|
|
|
|
|
|
131 |
|
132 |
//filter in shipped orders
|
133 |
add_filter( 'is_order_shipped', array( $this, "check_tracking_exist" ),10,2);
|
134 |
add_filter( 'is_order_shipped', array( $this, "check_order_status" ),5,2);
|
135 |
+
|
136 |
+
add_filter( 'ast_menu_tab_options', array( $this, 'ast_menu_trackship_options' ) );
|
137 |
+
add_action( 'ast_paypal_settings_panel', array( $this, 'ast_trackship_settings_panel' ) );
|
138 |
+
|
139 |
+
add_action( 'wp_ajax_wc_ast_trackship_automation_form_update', array( $this, 'wc_ast_trackship_automation_form_update') );
|
140 |
}
|
141 |
|
142 |
/**
|
147 |
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
148 |
|
149 |
wp_register_style( 'trackship_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/trackship.css', array(), wc_advanced_shipment_tracking()->version );
|
150 |
+
wp_register_script( 'trackship_script', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/trackship.js', array( 'jquery', 'wp-util' ), wc_advanced_shipment_tracking()->version, true );
|
|
|
|
|
|
|
|
|
|
|
151 |
wp_localize_script( 'trackship_script', 'trackship_script', array(
|
152 |
'i18n' => array(
|
153 |
'data_saved' => __( 'Data saved successfully.', 'woo-advanced-shipment-tracking' ),
|
154 |
),
|
155 |
+
) );
|
|
|
|
|
|
|
156 |
|
157 |
if(!isset($_GET['page'])) {
|
158 |
return;
|
159 |
}
|
160 |
|
161 |
+
if( $_GET['page'] != 'woocommerce-advanced-shipment-tracking' ) {
|
162 |
return;
|
163 |
}
|
164 |
+
|
165 |
+
wp_enqueue_style( 'trackship_styles' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
wp_enqueue_script( 'trackship_script' );
|
167 |
}
|
168 |
+
|
169 |
+
public function ast_menu_trackship_options( $setting_data ){
|
170 |
+
$trackship_tab = array(
|
171 |
+
'trackship_tab' => array(
|
172 |
+
'title' => 'TrackShip',
|
173 |
+
'show' => true,
|
174 |
+
'class' => 'tab_label',
|
175 |
+
'data-tab' => 'trackship',
|
176 |
+
'data-label' => 'TrackShip',
|
177 |
+
'name' => 'tabs',
|
178 |
+
),
|
179 |
+
);
|
180 |
+
|
181 |
+
$setting_data = array_slice($setting_data, 0, 3, true) + $trackship_tab + array_slice($setting_data, 3, count($setting_data) - 1, true);
|
182 |
+
return $setting_data;
|
183 |
+
}
|
184 |
+
|
185 |
+
public function ast_trackship_settings_panel(){
|
186 |
+
require_once( 'views/admin_trackship_dashboard.php' );
|
187 |
+
}
|
188 |
+
|
189 |
/*
|
190 |
* Admin Menu add function
|
191 |
* WC sub menu
|
208 |
<h1 class="zorem-layout__header-breadcrumbs"><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=wc-admin' ) ); ?>"><?php _e('WooCommerce', 'woocommerce'); ?></a></span><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=trackship-for-woocommerce' ) ); ?>">TrackShip</a></span><span class="header-breadcrumbs-last"><?php _e('Settings', 'woocommerce'); ?></span></h1>
|
209 |
<?php } else{ ?>
|
210 |
<h1 class="zorem-layout__header-breadcrumbs"><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=wc-admin' ) ); ?>"><?php _e('WooCommerce', 'woocommerce'); ?></a></span><span><a href="<?php echo esc_url( admin_url( '/admin.php?page=trackship-for-woocommerce' ) ); ?>"><?php _e('Shipment Tracking', 'woo-advanced-shipment-tracking'); ?></a></span><span class="header-breadcrumbs-last">TrackShip</span></h1>
|
211 |
+
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
</div>
|
213 |
<?php require_once( 'views/trackship_settings.php' );?>
|
214 |
|
220 |
* include file on plugin load
|
221 |
*/
|
222 |
public function on_plugins_loaded() {
|
223 |
+
require_once wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/class-wc-tracking-page-customizer.php';
|
224 |
require_once wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/class-wc-intransit-email-customizer.php';
|
225 |
require_once wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/class-wc-failure-email-customizer.php';
|
226 |
require_once wc_advanced_shipment_tracking()->get_plugin_path() . '/includes/customizer/class-wc-outfordelivery-email-customizer.php';
|
239 |
|
240 |
if ( ! empty( $_POST ) && check_admin_referer( 'wc_ast_trackship_form', 'wc_ast_trackship_form_nonce' ) ) {
|
241 |
|
242 |
+
$data2 = $this->get_trackship_general_data();
|
|
|
243 |
|
244 |
foreach( $data2 as $key2 => $val2 ){
|
245 |
update_option( $key2, sanitize_text_field( $_POST[ $key2 ] ) );
|
|
|
|
|
|
|
|
|
246 |
}
|
247 |
+
update_option( 'wc_ast_trackship_other_page', sanitize_text_field( $_POST[ 'wc_ast_trackship_other_page' ] ) );
|
248 |
echo json_encode( array('success' => 'true') );die();
|
249 |
}
|
250 |
}
|
396 |
* return array
|
397 |
*/
|
398 |
function get_trackship_general_data(){
|
399 |
+
$wc_ast_api_key = get_option('wc_ast_api_key');
|
400 |
+
|
401 |
+
if($wc_ast_api_key){
|
402 |
+
$show_trackship_field = true;
|
403 |
+
} else{
|
404 |
+
$show_trackship_field = false;
|
405 |
+
}
|
406 |
+
|
407 |
+
$slug = '';
|
408 |
+
$page_list = wp_list_pluck( get_pages(), 'post_title', 'ID' );
|
409 |
+
$wc_ast_trackship_page_id = get_option('wc_ast_trackship_page_id');
|
410 |
+
$post = get_post($wc_ast_trackship_page_id);
|
411 |
+
if( $post )$slug = $post->post_name;
|
412 |
|
413 |
+
if($slug != 'ts-shipment-tracking'){
|
414 |
+
$page_desc = __( 'You must add the shortcode [wcast-track-order] to the selected page in order for the tracking page to work.', 'woo-advanced-shipment-tracking' );
|
415 |
+
} else{
|
416 |
+
$page_desc = '';
|
417 |
+
}
|
418 |
+
|
419 |
+
$form_data = array(
|
420 |
'wc_ast_show_shipment_status_filter' => array(
|
421 |
+
'type' => 'tgl_checkbox',
|
422 |
+
'tgl_color' => 'green',
|
423 |
+
'title' => __( 'Display shipment status filter on orders admin', 'woo-advanced-shipment-tracking' ),
|
424 |
'show' => $show_trackship_field,
|
425 |
'class' => '',
|
426 |
),
|
427 |
+
'wc_ast_use_tracking_page' => array(
|
428 |
+
'type' => 'tgl_checkbox',
|
429 |
+
'tgl_color' => 'green',
|
430 |
+
'title' => __( 'Enable a tracking page', 'woo-advanced-shipment-tracking' ),
|
431 |
+
'show' => $show_trackship_field,
|
432 |
+
'class' => '',
|
433 |
+
'customize_link' => ts_tracking_page_customizer::get_customizer_url('ast_tracking_page_section','trackship'),
|
434 |
+
),
|
435 |
+
'wc_ast_trackship_page_id' => array(
|
436 |
+
'type' => 'dropdown_tpage',
|
437 |
+
'title' => __( 'Select tracking page', 'woo-advanced-shipment-tracking' ),
|
438 |
+
'options' => $page_list,
|
439 |
+
'show' => $show_trackship_field,
|
440 |
+
'desc' => $page_desc,
|
441 |
+
'class' => '',
|
442 |
+
),
|
443 |
);
|
444 |
return $form_data;
|
445 |
+
}
|
446 |
|
447 |
/*
|
448 |
* get settings tab array data
|
449 |
* return array
|
450 |
*/
|
451 |
+
function get_delivered_data(){
|
452 |
+
$form_data = array(
|
453 |
+
'wc_ast_status_delivered' => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
'type' => 'checkbox',
|
455 |
+
'title' => __( 'Enable custom order status “Delivered"', '' ),
|
456 |
+
'show' => true,
|
|
|
457 |
'class' => '',
|
|
|
458 |
),
|
459 |
+
'wc_ast_status_label_color' => array(
|
460 |
+
'type' => 'color',
|
461 |
+
'title' => __( 'Delivered Label color', '' ),
|
462 |
+
'class' => 'status_label_color_th',
|
463 |
+
'show' => true,
|
464 |
+
),
|
465 |
+
'wc_ast_status_label_font_color' => array(
|
466 |
+
'type' => 'dropdown',
|
467 |
+
'title' => __( 'Delivered Label font color', '' ),
|
468 |
+
'options' => array(
|
469 |
+
"" =>__( 'Select', 'woocommerce' ),
|
470 |
+
"#fff" =>__( 'Light', '' ),
|
471 |
+
"#000" =>__( 'Dark', '' ),
|
472 |
+
),
|
473 |
+
'class' => 'status_label_color_th',
|
474 |
+
'show' => true,
|
475 |
+
),
|
476 |
);
|
477 |
return $form_data;
|
478 |
+
|
479 |
}
|
480 |
+
/*
|
481 |
+
* Trackship Automation form save
|
482 |
+
*/
|
483 |
+
public function wc_ast_trackship_automation_form_update(){
|
484 |
+
update_option( 'wc_ast_status_change_to_delivered', wc_clean($_POST[ 'wc_ast_status_change_to_delivered' ]) );
|
485 |
+
|
486 |
+
$data = $this->get_delivered_data();
|
487 |
+
|
488 |
+
foreach( $data as $key => $val ){
|
489 |
+
if(isset($_POST[ $key ])){
|
490 |
+
update_option( $key, wc_clean($_POST[ $key ]) );
|
491 |
+
}
|
492 |
+
}
|
493 |
+
}
|
494 |
|
495 |
/**
|
496 |
* Adds 'shipment_status' column header to 'Orders' page immediately after 'woocommerce-advanced-shipment-tracking' column.
|
507 |
$new_columns[ $column_name ] = $column_info;
|
508 |
|
509 |
if ( 'woocommerce-advanced-shipment-tracking' === $column_name ) {
|
510 |
+
$new_columns['shipment_status'] = __( 'Shipment Status', 'woo-advanced-shipment-tracking' );
|
511 |
}
|
512 |
}
|
513 |
return $new_columns;
|
829 |
|
830 |
//error_log( "Order shipped : $order_shipped", 0 );
|
831 |
if( $order_shipped ){
|
832 |
+
$api = new WC_Advanced_Shipment_Tracking_Api_Call;
|
833 |
+
$array = $api->get_trackship_apicall( $order_id );
|
|
|
|
|
|
|
834 |
}
|
835 |
}
|
836 |
|
1205 |
*/
|
1206 |
public function delete_tracking_number_from_trackship( $tracking_items, $tracking_id, $order_id ){
|
1207 |
|
1208 |
+
foreach($tracking_items as $tracking_item){
|
1209 |
+
if($tracking_item['tracking_id'] == $_POST['tracking_id']){
|
1210 |
+
$tracking_number = $tracking_item['tracking_number'];
|
1211 |
+
$tracking_provider = $tracking_item['tracking_provider'];
|
1212 |
+
$api = new WC_Advanced_Shipment_Tracking_Api_Call;
|
1213 |
+
$array = $api->delete_tracking_number_from_trackship( $order_id, $tracking_number, $tracking_provider );
|
1214 |
+
}
|
1215 |
+
}
|
|
|
|
|
|
|
|
|
1216 |
}
|
1217 |
|
1218 |
/*
|
1241 |
}
|
1242 |
}
|
1243 |
if( count($shipment_status) > 0 && $delivered == true && $wc_ast_status_delivered){
|
1244 |
+
|
1245 |
//trigger order deleivered
|
1246 |
$delivered_enabled = get_option( "wc_ast_status_change_to_delivered", 0);
|
1247 |
+
|
1248 |
if( $delivered_enabled ){
|
1249 |
$order = wc_get_order( $order_id );
|
1250 |
$order_status = $order->get_status();
|
1251 |
+
|
1252 |
+
$change_to_delivered = apply_filters( 'ts_change_order_to_delivered', false, $order_status );
|
1253 |
+
|
1254 |
+
if( $order_status == 'completed' || $order_status == 'updated-tracking' || $order_status == 'shipped' ){
|
1255 |
+
$change_to_delivered = true;
|
1256 |
+
}
|
1257 |
+
|
1258 |
+
if( $change_to_delivered ){
|
1259 |
$order->update_status('delivered');
|
1260 |
}
|
1261 |
}
|
1283 |
* Add a new dashboard widget.
|
1284 |
*/
|
1285 |
public function ast_add_dashboard_widgets() {
|
1286 |
+
wp_enqueue_style( 'trackship_styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/trackship.css', array(), wc_advanced_shipment_tracking()->version );
|
|
|
|
|
|
|
|
|
|
|
|
|
1287 |
wp_add_dashboard_widget( 'trackship_dashboard_widget', 'Tracking Analytics <small>(last 30 days)</small>', array( $this, 'dashboard_widget_function') );
|
1288 |
}
|
1289 |
|
1291 |
* Output the contents of the dashboard widget
|
1292 |
*/
|
1293 |
public function dashboard_widget_function( $post, $callback_args ) {
|
1294 |
+
$tracking_analytics = $this->get_tracking_analytics_overview(); ?>
|
1295 |
+
<div class="ts-widget-content ">
|
1296 |
+
<div class="ts-widget-row">
|
1297 |
+
<div class="ts-widget__section ts-widget-rborder ts-widget-bborder">
|
1298 |
+
<h3><?php _e( 'Total Shipments', 'woo-advanced-shipment-tracking' ); ?></h3>
|
1299 |
+
<span class="ts-widget-analytics-number"><?php echo $tracking_analytics['total_shipments']; ?></span>
|
1300 |
+
<span>(<?php echo $tracking_analytics['total_orders']; ?> <?php _e( 'Orders', 'woocommerce' ); ?>)</span>
|
1301 |
+
</div>
|
1302 |
+
<div class="ts-widget__section ts-widget-bborder">
|
1303 |
+
<h3><?php _e( 'Avg Shipment Length', 'woo-advanced-shipment-tracking' ); ?></h3>
|
1304 |
+
<span class="ts-widget-analytics-number"><?php echo round($tracking_analytics['avg_shipment_length']); ?></span>
|
1305 |
+
<span><?php _e( 'days', 'woo-advanced-shipment-tracking' ); ?></span>
|
1306 |
+
</div>
|
1307 |
+
</div>
|
1308 |
+
<div class="ts-widget-row">
|
1309 |
+
<div class="ts-widget__section ts-widget-rborder ts-widget-bborder">
|
1310 |
+
<h3><?php _e( 'Active Shipments', 'woo-advanced-shipment-tracking' ); ?></h3>
|
1311 |
+
<span class="ts-widget-analytics-number"><?php echo $tracking_analytics['active_shipments']; ?></span>
|
1312 |
+
</div>
|
1313 |
+
<div class="ts-widget__section ts-widget-bborder">
|
1314 |
+
<h3><?php _e( 'Delivered', 'woo-advanced-shipment-tracking' ); ?></h3>
|
1315 |
+
<span class="ts-widget-analytics-number"><?php echo $tracking_analytics['delivered_shipments']; ?></span>
|
1316 |
+
</div>
|
1317 |
+
</div>
|
1318 |
+
<div class="ts-widget-footer">
|
1319 |
+
<a class="" href="https://trackship.info/my-account/analytics/" target="blank"><?php _e( 'View Tracking Analytics','woo-advanced-shipment-tracking' ); ?></a>
|
1320 |
+
</div>
|
1321 |
+
</div>
|
1322 |
+
<?php
|
1323 |
+
}
|
1324 |
+
|
1325 |
+
/*
|
1326 |
+
* TrackShip Analytics Overview
|
1327 |
+
*/
|
1328 |
+
public function get_tracking_analytics_overview(){
|
1329 |
+
global $wpdb;
|
1330 |
+
$paid_order_statuses = array('completed','delivered','shipped');
|
1331 |
+
|
1332 |
+
$end_date = date('Y-m-d', strtotime('today - 30 days'));
|
1333 |
+
$start_date = date('Y-m-d');
|
1334 |
+
|
1335 |
global $wpdb;
|
1336 |
+
$paid_order_statuses = array('completed','delivered','shipped');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1337 |
|
1338 |
+
$order_query = "
|
1339 |
+
SELECT
|
1340 |
+
posts.post_status as ordr_status,
|
1341 |
+
shipment_tracking_items.meta_value as shipment_tracking_items,
|
1342 |
+
shipment_status.meta_value as shipment_status,
|
1343 |
+
posts.ID AS ID
|
1344 |
+
|
1345 |
+
FROM {$wpdb->posts} AS posts
|
1346 |
+
LEFT JOIN {$wpdb->postmeta} AS shipment_tracking_items ON(posts.ID = shipment_tracking_items.post_id)
|
1347 |
+
LEFT JOIN {$wpdb->postmeta} AS shipment_status ON(posts.ID = shipment_status.post_id)
|
1348 |
+
WHERE
|
1349 |
+
posts.post_status IN ( 'wc-" . implode( "','wc-", $paid_order_statuses ) . "' )
|
1350 |
+
AND posts.post_type IN ( 'shop_order' )
|
1351 |
+
AND shipment_tracking_items.meta_key IN ( '_wc_shipment_tracking_items')
|
1352 |
+
AND shipment_tracking_items.meta_key IS NOT NULL
|
1353 |
+
AND shipment_status.meta_key IN ( 'shipment_status')
|
1354 |
+
AND post_date < '".$start_date."'
|
1355 |
+
AND post_date > '".$end_date."'
|
1356 |
+
|
1357 |
+
ORDER BY
|
1358 |
+
posts.ID DESC
|
1359 |
+
";
|
1360 |
+
$shipment_status_results = $wpdb->get_results($order_query);
|
1361 |
$shipment_status = array();
|
1362 |
$shipment_status_merge = array();
|
1363 |
$tracking_item_merge = array();
|
1364 |
|
1365 |
foreach($shipment_status_results as $order){
|
1366 |
$order_id = $order->ID;
|
1367 |
+
$shipment_status = unserialize($order->shipment_status);
|
1368 |
|
1369 |
if(is_array($shipment_status)){
|
1370 |
$shipment_status_merge = array_merge($shipment_status_merge, $shipment_status);
|
1371 |
}
|
1372 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1373 |
|
1374 |
+
|
1375 |
+
$tracking_issues = 0;
|
1376 |
+
$active_shipments = 0;
|
1377 |
+
$delivered_shipments = 0;
|
1378 |
+
$avg_shipment_days_array = array();
|
1379 |
+
$avg_shipment_length = '';
|
1380 |
|
1381 |
+
foreach($shipment_status_merge as $key => $val){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1382 |
|
1383 |
+
$first = ( isset($val['tracking_events']) ) ? reset($val['tracking_events']) : '';
|
1384 |
+
$first_date = ( isset($first->datetime) ) ? $first->datetime : '';
|
1385 |
|
1386 |
+
if( isset( $val['tracking_destination_events'] ) && count( $val['tracking_destination_events'] ) > 0 ){
|
1387 |
+
$last = end($val['tracking_destination_events']);
|
1388 |
+
} elseif( isset( $val['tracking_events'] ) ){
|
1389 |
+
$last = end($val['tracking_events']);
|
1390 |
+
} else{
|
1391 |
+
$last = '';
|
1392 |
+
}
|
1393 |
+
$last_date = ( isset($last->datetime) ) ? $last->datetime : '';
|
1394 |
|
1395 |
+
$status = isset( $val['status'] ) ? $val['status'] : '';
|
|
|
1396 |
|
1397 |
+
if( $status != 'delivered' ){
|
1398 |
+
$last_date = date("Y-m-d H:i:s");
|
1399 |
+
}
|
|
|
|
|
|
|
|
|
1400 |
|
1401 |
+
$days = NULL;
|
1402 |
+
$days = $this->get_num_of_days( $first_date, $last_date );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1403 |
|
1404 |
+
$avg_shipment_days_array[] = $days;
|
1405 |
+
|
1406 |
+
$avg_shipment_length = $this->get_average( $avg_shipment_days_array );
|
1407 |
+
|
1408 |
+
if( $status == 'carrier_unsupported' || $status == 'INVALID_TRACKING_NUM' || $status == 'unknown' || $status == 'wrong_shipping_provider' )$tracking_issues ++;
|
1409 |
+
if( $status == 'delivered' )$delivered_shipments ++;
|
1410 |
+
if( $status != 'delivered' )$active_shipments ++;
|
1411 |
+
}
|
1412 |
+
|
1413 |
+
$result = array();
|
1414 |
+
|
1415 |
+
$result['total_shipments'] = count($shipment_status_merge);
|
1416 |
+
$result['tracking_issues'] = $tracking_issues;
|
1417 |
+
$result['active_shipments'] = $active_shipments;
|
1418 |
+
$result['delivered_shipments'] = $delivered_shipments;
|
1419 |
+
$result['avg_shipment_length'] = $avg_shipment_length;
|
1420 |
+
$result['total_orders'] = count($shipment_status_results);
|
1421 |
+
return $result;
|
1422 |
+
}
|
1423 |
+
|
1424 |
+
/*
|
1425 |
+
*
|
1426 |
+
*/
|
1427 |
+
function get_num_of_days( $first_date, $last_date ){
|
1428 |
+
$date1 = strtotime($first_date);
|
1429 |
+
$date2 = strtotime($last_date);
|
1430 |
+
$diff = abs($date2 - $date1);
|
1431 |
+
return date( "d", $diff );
|
1432 |
+
}
|
1433 |
+
|
1434 |
+
function get_average( $array ){
|
1435 |
+
return round(array_sum($array) / count($array), 2);
|
1436 |
+
}
|
1437 |
|
1438 |
/**
|
1439 |
* Create tracking page after store is connected
|
includes/class-wc-advanced-shipment-tracking.php
CHANGED
@@ -388,7 +388,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
388 |
) );
|
389 |
|
390 |
do_action("ast_after_tracking_field", $post->ID);
|
391 |
-
do_action("ast_tracking_form_between_form", $post->ID);
|
392 |
|
393 |
if($order_status != 'auto-draft'){
|
394 |
if($wc_ast_status_partial_shipped){
|
@@ -535,13 +535,7 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
535 |
$custom_thumb_id = $results->custom_thumb_id;
|
536 |
|
537 |
if($custom_thumb_id == 0 && $results->shipping_default == 1){
|
538 |
-
|
539 |
-
if(!file_exists($ast_base_directory.''.sanitize_title($results->provider_name).'.png')){
|
540 |
-
$src = wc_advanced_shipment_tracking()->plugin_dir_url().'assets/shipment-provider-img/'.sanitize_title($results->provider_name).'.png?v='.wc_advanced_shipment_tracking()->version;
|
541 |
-
} else{
|
542 |
-
$src = $ast_directory.''.sanitize_title($results->provider_name).'.png?v='.wc_advanced_shipment_tracking()->version;
|
543 |
-
}
|
544 |
-
|
545 |
} else{
|
546 |
$image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
|
547 |
if($image_attributes[0]){
|
@@ -851,22 +845,16 @@ class WC_Advanced_Shipment_Tracking_Actions {
|
|
851 |
|
852 |
} else if($order){
|
853 |
$order_status = $order->get_status();
|
854 |
-
|
855 |
-
if ( is_a( $email, 'WC_Email_Customer_Invoice' ) && isset($wc_ast_unclude_tracking_info['show_in_customer_invoice']) && $wc_ast_unclude_tracking_info['show_in_customer_invoice'] == 0){
|
856 |
-
return;
|
857 |
-
}
|
858 |
|
859 |
-
if ( is_a( $email, '
|
860 |
-
return;
|
861 |
-
}
|
862 |
-
|
863 |
-
if(isset($wc_ast_unclude_tracking_info[$order_status]) && $wc_ast_unclude_tracking_info[$order_status] == 0 && !is_a( $email, 'WC_Email_Customer_Invoice' ) && !is_a( $email, 'WC_Email_Customer_Note' )){
|
864 |
-
return;
|
865 |
-
}
|
866 |
-
|
867 |
-
$tracking_items = $this->get_tracking_items( $order_id, true );
|
868 |
|
|
|
|
|
|
|
869 |
|
|
|
|
|
|
|
870 |
|
871 |
if ( true === $plain_text ) {
|
872 |
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
388 |
) );
|
389 |
|
390 |
do_action("ast_after_tracking_field", $post->ID);
|
391 |
+
do_action("ast_tracking_form_between_form", $post->ID, 'single_order' );
|
392 |
|
393 |
if($order_status != 'auto-draft'){
|
394 |
if($wc_ast_status_partial_shipped){
|
535 |
$custom_thumb_id = $results->custom_thumb_id;
|
536 |
|
537 |
if($custom_thumb_id == 0 && $results->shipping_default == 1){
|
538 |
+
$src = $ast_directory.''.sanitize_title($results->provider_name).'.png?v='.wc_advanced_shipment_tracking()->version;
|
|
|
|
|
|
|
|
|
|
|
|
|
539 |
} else{
|
540 |
$image_attributes = wp_get_attachment_image_src( $custom_thumb_id , array('60','60') );
|
541 |
if($image_attributes[0]){
|
845 |
|
846 |
} else if($order){
|
847 |
$order_status = $order->get_status();
|
|
|
|
|
|
|
|
|
848 |
|
849 |
+
if ( is_a( $email, 'WC_Email_Customer_Invoice' ) && isset($wc_ast_unclude_tracking_info['show_in_customer_invoice']) && $wc_ast_unclude_tracking_info['show_in_customer_invoice'] == 0)return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
850 |
|
851 |
+
if ( is_a( $email, 'WC_Email_Customer_Note' ) && isset($wc_ast_unclude_tracking_info['show_in_customer_note']) && $wc_ast_unclude_tracking_info['show_in_customer_note'] == 0)return;
|
852 |
+
|
853 |
+
if(isset($wc_ast_unclude_tracking_info[$order_status]) && $wc_ast_unclude_tracking_info[$order_status] == 0 && !is_a( $email, 'WC_Email_Customer_Invoice' ) && !is_a( $email, 'WC_Email_Customer_Note' ))return;
|
854 |
|
855 |
+
if ( is_a( $email, 'WC_Email_Customer_Refunded_Order' ) && isset($wc_ast_unclude_tracking_info['refunded']) && $wc_ast_unclude_tracking_info['refunded'] == 0)return;
|
856 |
+
|
857 |
+
$tracking_items = $this->get_tracking_items( $order_id, true );
|
858 |
|
859 |
if ( true === $plain_text ) {
|
860 |
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
includes/customizer/class-wc-availableforpickup-email-customizer.php
CHANGED
@@ -23,7 +23,7 @@ class wcast_availableforpickup_customizer_email {
|
|
23 |
if ( ! wcast_availableforpickup_customizer_email::is_own_customizer_request() && ! wcast_availableforpickup_customizer_email::is_own_preview_request() ) {
|
24 |
return;
|
25 |
}
|
26 |
-
|
27 |
// Register our sections
|
28 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
29 |
|
@@ -87,7 +87,7 @@ class wcast_availableforpickup_customizer_email {
|
|
87 |
* @return bool
|
88 |
*/
|
89 |
public static function is_own_customizer_request() {
|
90 |
-
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === '
|
91 |
}
|
92 |
|
93 |
/**
|
@@ -99,7 +99,7 @@ class wcast_availableforpickup_customizer_email {
|
|
99 |
'wcast-customizer' => '1',
|
100 |
'email' => $email,
|
101 |
'shipment_status' => $shipment_status,
|
102 |
-
'autofocus[section]' => '
|
103 |
'url' => urlencode( add_query_arg( array( 'wcast-availableforpickup-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
104 |
'return' => urlencode( wcast_availableforpickup_customizer_email::get_email_settings_page_url($return_tab) ),
|
105 |
), admin_url( 'customize.php' ) );
|
@@ -160,7 +160,7 @@ class wcast_availableforpickup_customizer_email {
|
|
160 |
array(
|
161 |
'label' => __( 'Enable Available For Pickup email', 'woo-advanced-shipment-tracking' ),
|
162 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
163 |
-
'section' => '
|
164 |
'type' => 'checkbox',
|
165 |
'active_callback' => array( $this, 'active_callback' ),
|
166 |
)
|
@@ -179,7 +179,7 @@ class wcast_availableforpickup_customizer_email {
|
|
179 |
array(
|
180 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
181 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses.', 'woocommerce' ),
|
182 |
-
'section' => '
|
183 |
'type' => 'text',
|
184 |
'input_attrs' => array(
|
185 |
'class' => '',
|
@@ -203,7 +203,7 @@ class wcast_availableforpickup_customizer_email {
|
|
203 |
array(
|
204 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
205 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ) . ' {site_title}, {order_number}',
|
206 |
-
'section' => '
|
207 |
'type' => 'text',
|
208 |
'input_attrs' => array(
|
209 |
'class' => '',
|
@@ -227,7 +227,7 @@ class wcast_availableforpickup_customizer_email {
|
|
227 |
array(
|
228 |
'label' => __( 'Email heading', 'woocommerce' ),
|
229 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ) . ' {site_title}, {order_number}',
|
230 |
-
'section' => '
|
231 |
'type' => 'text',
|
232 |
'input_attrs' => array(
|
233 |
'class' => '',
|
@@ -251,7 +251,7 @@ class wcast_availableforpickup_customizer_email {
|
|
251 |
array(
|
252 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
253 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
254 |
-
'section' => '
|
255 |
'input_attrs' => array(
|
256 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
257 |
'mediaButtons' => true,
|
@@ -273,28 +273,11 @@ class wcast_availableforpickup_customizer_email {
|
|
273 |
array(
|
274 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
275 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
276 |
-
'section' => '
|
277 |
'active_callback' => array( $this, 'active_callback' ),
|
278 |
)
|
279 |
) );
|
280 |
-
|
281 |
-
$wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_tracking_details]',
|
282 |
-
array(
|
283 |
-
'default' => $this->defaults['wcast_availableforpickup_show_tracking_details'],
|
284 |
-
'transport' => 'refresh',
|
285 |
-
'type' => 'option',
|
286 |
-
'sanitize_callback' => ''
|
287 |
-
)
|
288 |
-
);
|
289 |
-
$wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_tracking_details]',
|
290 |
-
array(
|
291 |
-
'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
|
292 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
293 |
-
'section' => 'custom_shipment_status_email',
|
294 |
-
'type' => 'checkbox',
|
295 |
-
'active_callback' => array( $this, 'active_callback' ),
|
296 |
-
)
|
297 |
-
);
|
298 |
// Display Shipment Provider image/thumbnail
|
299 |
$wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_order_details]',
|
300 |
array(
|
@@ -306,31 +289,13 @@ class wcast_availableforpickup_customizer_email {
|
|
306 |
);
|
307 |
$wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_order_details]',
|
308 |
array(
|
309 |
-
'label' => __( '
|
310 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
311 |
-
'section' => '
|
312 |
'type' => 'checkbox',
|
313 |
'active_callback' => array( $this, 'active_callback' ),
|
314 |
)
|
315 |
-
);
|
316 |
-
// Display Shipment Provider image/thumbnail
|
317 |
-
$wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_billing_address]',
|
318 |
-
array(
|
319 |
-
'default' => $this->defaults['wcast_availableforpickup_show_billing_address'],
|
320 |
-
'transport' => 'refresh',
|
321 |
-
'type' => 'option',
|
322 |
-
'sanitize_callback' => ''
|
323 |
-
)
|
324 |
-
);
|
325 |
-
$wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_billing_address]',
|
326 |
-
array(
|
327 |
-
'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
|
328 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
329 |
-
'section' => 'custom_shipment_status_email',
|
330 |
-
'type' => 'checkbox',
|
331 |
-
'active_callback' => array( $this, 'active_callback' ),
|
332 |
-
)
|
333 |
-
);
|
334 |
|
335 |
// Display Shipment Provider image/thumbnail
|
336 |
$wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_shipping_address]',
|
@@ -343,9 +308,9 @@ class wcast_availableforpickup_customizer_email {
|
|
343 |
);
|
344 |
$wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_shipping_address]',
|
345 |
array(
|
346 |
-
'label' => __( '
|
347 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
348 |
-
'section' => '
|
349 |
'type' => 'checkbox',
|
350 |
'active_callback' => array( $this, 'active_callback' ),
|
351 |
)
|
@@ -363,7 +328,7 @@ class wcast_availableforpickup_customizer_email {
|
|
363 |
array(
|
364 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
365 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
366 |
-
'section' => '
|
367 |
'type' => 'text',
|
368 |
'input_attrs' => array(
|
369 |
'class' => '',
|
@@ -417,11 +382,7 @@ class wcast_availableforpickup_customizer_email {
|
|
417 |
|
418 |
$email_content = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_email_content',$this->defaults['wcast_availableforpickup_email_content']);
|
419 |
|
420 |
-
$
|
421 |
-
|
422 |
-
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_show_order_details',$this->defaults['wcast_availableforpickup_show_order_details']);
|
423 |
-
|
424 |
-
$wcast_show_billing_address = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_show_billing_address',$this->defaults['wcast_availableforpickup_show_billing_address']);
|
425 |
|
426 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_show_shipping_address',$this->defaults['wcast_availableforpickup_show_shipping_address']);
|
427 |
|
@@ -458,25 +419,25 @@ class wcast_availableforpickup_customizer_email {
|
|
458 |
}
|
459 |
|
460 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
$message .= ob_get_clean();
|
479 |
}
|
|
|
480 |
|
481 |
if($wcast_show_order_details == 1){
|
482 |
|
@@ -492,20 +453,7 @@ class wcast_availableforpickup_customizer_email {
|
|
492 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
493 |
);
|
494 |
$message .= ob_get_clean();
|
495 |
-
}
|
496 |
-
|
497 |
-
if($wcast_show_billing_address == 1){
|
498 |
-
ob_start();
|
499 |
-
wc_get_template(
|
500 |
-
'emails/wcast-billing-email-addresses.php', array(
|
501 |
-
'order' => $order,
|
502 |
-
'sent_to_admin' => $sent_to_admin,
|
503 |
-
),
|
504 |
-
'woocommerce-advanced-shipment-tracking/',
|
505 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
506 |
-
);
|
507 |
-
$message .= ob_get_clean();
|
508 |
-
}
|
509 |
|
510 |
if($wcast_show_shipping_address == 1){
|
511 |
ob_start();
|
23 |
if ( ! wcast_availableforpickup_customizer_email::is_own_customizer_request() && ! wcast_availableforpickup_customizer_email::is_own_preview_request() ) {
|
24 |
return;
|
25 |
}
|
26 |
+
|
27 |
// Register our sections
|
28 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
29 |
|
87 |
* @return bool
|
88 |
*/
|
89 |
public static function is_own_customizer_request() {
|
90 |
+
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'trackship_shipment_status_email';
|
91 |
}
|
92 |
|
93 |
/**
|
99 |
'wcast-customizer' => '1',
|
100 |
'email' => $email,
|
101 |
'shipment_status' => $shipment_status,
|
102 |
+
'autofocus[section]' => 'trackship_shipment_status_email',
|
103 |
'url' => urlencode( add_query_arg( array( 'wcast-availableforpickup-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
104 |
'return' => urlencode( wcast_availableforpickup_customizer_email::get_email_settings_page_url($return_tab) ),
|
105 |
), admin_url( 'customize.php' ) );
|
160 |
array(
|
161 |
'label' => __( 'Enable Available For Pickup email', 'woo-advanced-shipment-tracking' ),
|
162 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
163 |
+
'section' => 'trackship_shipment_status_email',
|
164 |
'type' => 'checkbox',
|
165 |
'active_callback' => array( $this, 'active_callback' ),
|
166 |
)
|
179 |
array(
|
180 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
181 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses.', 'woocommerce' ),
|
182 |
+
'section' => 'trackship_shipment_status_email',
|
183 |
'type' => 'text',
|
184 |
'input_attrs' => array(
|
185 |
'class' => '',
|
203 |
array(
|
204 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
205 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ) . ' {site_title}, {order_number}',
|
206 |
+
'section' => 'trackship_shipment_status_email',
|
207 |
'type' => 'text',
|
208 |
'input_attrs' => array(
|
209 |
'class' => '',
|
227 |
array(
|
228 |
'label' => __( 'Email heading', 'woocommerce' ),
|
229 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ) . ' {site_title}, {order_number}',
|
230 |
+
'section' => 'trackship_shipment_status_email',
|
231 |
'type' => 'text',
|
232 |
'input_attrs' => array(
|
233 |
'class' => '',
|
251 |
array(
|
252 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
253 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
254 |
+
'section' => 'trackship_shipment_status_email',
|
255 |
'input_attrs' => array(
|
256 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
257 |
'mediaButtons' => true,
|
273 |
array(
|
274 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
275 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
276 |
+
'section' => 'trackship_shipment_status_email',
|
277 |
'active_callback' => array( $this, 'active_callback' ),
|
278 |
)
|
279 |
) );
|
280 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
// Display Shipment Provider image/thumbnail
|
282 |
$wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_order_details]',
|
283 |
array(
|
289 |
);
|
290 |
$wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_order_details]',
|
291 |
array(
|
292 |
+
'label' => __( 'Display the Shipping items', 'woo-advanced-shipment-tracking' ),
|
293 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
294 |
+
'section' => 'trackship_shipment_status_email',
|
295 |
'type' => 'checkbox',
|
296 |
'active_callback' => array( $this, 'active_callback' ),
|
297 |
)
|
298 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
|
300 |
// Display Shipment Provider image/thumbnail
|
301 |
$wp_customize->add_setting( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_shipping_address]',
|
308 |
);
|
309 |
$wp_customize->add_control( 'wcast_availableforpickup_email_settings[wcast_availableforpickup_show_shipping_address]',
|
310 |
array(
|
311 |
+
'label' => __( 'Display the shipping address', 'woo-advanced-shipment-tracking' ),
|
312 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
313 |
+
'section' => 'trackship_shipment_status_email',
|
314 |
'type' => 'checkbox',
|
315 |
'active_callback' => array( $this, 'active_callback' ),
|
316 |
)
|
328 |
array(
|
329 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
330 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
331 |
+
'section' => 'trackship_shipment_status_email',
|
332 |
'type' => 'text',
|
333 |
'input_attrs' => array(
|
334 |
'class' => '',
|
382 |
|
383 |
$email_content = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_email_content',$this->defaults['wcast_availableforpickup_email_content']);
|
384 |
|
385 |
+
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_show_order_details',$this->defaults['wcast_availableforpickup_show_order_details']);
|
|
|
|
|
|
|
|
|
386 |
|
387 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_availableforpickup_show_shipping_address',$this->defaults['wcast_availableforpickup_show_shipping_address']);
|
388 |
|
419 |
}
|
420 |
|
421 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
422 |
+
|
423 |
+
ob_start();
|
424 |
+
$local_template = get_stylesheet_directory().'/woocommerce/emails/tracking-info.php';
|
425 |
+
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
426 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
427 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
428 |
+
'order_id' => $preview_id,
|
429 |
+
'show_shipment_status' => true,
|
430 |
+
'new_status' => 'available_for_pickup',
|
431 |
+
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
432 |
+
} else{
|
433 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
434 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
435 |
+
'order_id' => $preview_id,
|
436 |
+
'show_shipment_status' => true,
|
437 |
+
'new_status' => 'available_for_pickup',
|
438 |
+
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
|
|
439 |
}
|
440 |
+
$message .= ob_get_clean();
|
441 |
|
442 |
if($wcast_show_order_details == 1){
|
443 |
|
453 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
454 |
);
|
455 |
$message .= ob_get_clean();
|
456 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
|
458 |
if($wcast_show_shipping_address == 1){
|
459 |
ob_start();
|
includes/customizer/class-wc-delivered-email-customizer.php
CHANGED
@@ -24,8 +24,7 @@ class wcast_delivered_customizer_email {
|
|
24 |
// Only proceed if this is own request.
|
25 |
if ( ! wcast_delivered_customizer_email::is_own_customizer_request() && ! wcast_delivered_customizer_email::is_own_preview_request() ) {
|
26 |
return;
|
27 |
-
}
|
28 |
-
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
|
29 |
// Register our sections
|
30 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
31 |
|
@@ -89,7 +88,7 @@ class wcast_delivered_customizer_email {
|
|
89 |
* @return bool
|
90 |
*/
|
91 |
public static function is_own_customizer_request() {
|
92 |
-
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === '
|
93 |
}
|
94 |
|
95 |
/**
|
@@ -101,7 +100,7 @@ class wcast_delivered_customizer_email {
|
|
101 |
'wcast-customizer' => '1',
|
102 |
'email' => $email,
|
103 |
'shipment_status' => $shipment_status,
|
104 |
-
'autofocus[section]' => '
|
105 |
'url' => urlencode( add_query_arg( array( 'wcast-delivered-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
106 |
'return' => urlencode( wcast_delivered_customizer_email::get_email_settings_page_url($return_tab) ),
|
107 |
), admin_url( 'customize.php' ) );
|
@@ -125,8 +124,7 @@ class wcast_delivered_customizer_email {
|
|
125 |
$customizer_defaults = array(
|
126 |
'wcast_delivered_status_email_subject' => __( 'Your order #{order_number} has been delivered', 'woo-advanced-shipment-tracking' ),
|
127 |
'wcast_delivered_status_email_heading' => __( 'Delivered', 'woo-advanced-shipment-tracking' ),
|
128 |
-
'wcast_delivered_status_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' ),
|
129 |
-
'wcast_enable_delivered_status_email' => '',
|
130 |
'wcast_delivered_status_email_to' => '{customer_email}',
|
131 |
'wcast_delivered_status_show_tracking_details' => '',
|
132 |
'wcast_delivered_status_show_order_details' => '',
|
@@ -160,7 +158,7 @@ class wcast_delivered_customizer_email {
|
|
160 |
array(
|
161 |
'label' => __( 'Enable Delivered email', 'woo-advanced-shipment-tracking' ),
|
162 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
163 |
-
'section' => '
|
164 |
'type' => 'checkbox',
|
165 |
'active_callback' => array( $this, 'active_callback' ),
|
166 |
)
|
@@ -179,7 +177,7 @@ class wcast_delivered_customizer_email {
|
|
179 |
array(
|
180 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
181 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses.', 'woocommerce' ),
|
182 |
-
'section' => '
|
183 |
'type' => 'text',
|
184 |
'input_attrs' => array(
|
185 |
'class' => '',
|
@@ -203,7 +201,7 @@ class wcast_delivered_customizer_email {
|
|
203 |
array(
|
204 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
205 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
206 |
-
'section' => '
|
207 |
'type' => 'text',
|
208 |
'input_attrs' => array(
|
209 |
'class' => '',
|
@@ -227,7 +225,7 @@ class wcast_delivered_customizer_email {
|
|
227 |
array(
|
228 |
'label' => __( 'Email heading', 'woocommerce' ),
|
229 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
230 |
-
'section' => '
|
231 |
'type' => 'text',
|
232 |
'input_attrs' => array(
|
233 |
'class' => '',
|
@@ -251,7 +249,7 @@ class wcast_delivered_customizer_email {
|
|
251 |
array(
|
252 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
253 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
254 |
-
'section' => '
|
255 |
'input_attrs' => array(
|
256 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
257 |
'mediaButtons' => true,
|
@@ -273,29 +271,11 @@ class wcast_delivered_customizer_email {
|
|
273 |
array(
|
274 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
275 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
276 |
-
'section' => '
|
277 |
'active_callback' => array( $this, 'active_callback' ),
|
278 |
)
|
279 |
) );
|
280 |
-
|
281 |
-
// Display Shipment Provider image/thumbnail
|
282 |
-
$wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_show_tracking_details]',
|
283 |
-
array(
|
284 |
-
'default' => $this->defaults['wcast_delivered_status_show_tracking_details'],
|
285 |
-
'transport' => 'refresh',
|
286 |
-
'type' => 'option',
|
287 |
-
'sanitize_callback' => ''
|
288 |
-
)
|
289 |
-
);
|
290 |
-
$wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_show_tracking_details]',
|
291 |
-
array(
|
292 |
-
'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
|
293 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
294 |
-
'section' => 'custom_shipment_status_email',
|
295 |
-
'type' => 'checkbox',
|
296 |
-
'active_callback' => array( $this, 'active_callback' ),
|
297 |
-
)
|
298 |
-
);
|
299 |
// Display Shipment Provider image/thumbnail
|
300 |
$wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_show_order_details]',
|
301 |
array(
|
@@ -307,31 +287,13 @@ class wcast_delivered_customizer_email {
|
|
307 |
);
|
308 |
$wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_show_order_details]',
|
309 |
array(
|
310 |
-
'label' => __( '
|
311 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
312 |
-
'section' => '
|
313 |
'type' => 'checkbox',
|
314 |
'active_callback' => array( $this, 'active_callback' ),
|
315 |
)
|
316 |
-
);
|
317 |
-
// Display Shipment Provider image/thumbnail
|
318 |
-
$wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_show_billing_address]',
|
319 |
-
array(
|
320 |
-
'default' => $this->defaults['wcast_delivered_status_show_billing_address'],
|
321 |
-
'transport' => 'refresh',
|
322 |
-
'type' => 'option',
|
323 |
-
'sanitize_callback' => ''
|
324 |
-
)
|
325 |
-
);
|
326 |
-
$wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_show_billing_address]',
|
327 |
-
array(
|
328 |
-
'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
|
329 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
330 |
-
'section' => 'custom_shipment_status_email',
|
331 |
-
'type' => 'checkbox',
|
332 |
-
'active_callback' => array( $this, 'active_callback' ),
|
333 |
-
)
|
334 |
-
);
|
335 |
|
336 |
// Display Shipment Provider image/thumbnail
|
337 |
$wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_show_shipping_address]',
|
@@ -344,9 +306,9 @@ class wcast_delivered_customizer_email {
|
|
344 |
);
|
345 |
$wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_show_shipping_address]',
|
346 |
array(
|
347 |
-
'label' => __( '
|
348 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
349 |
-
'section' => '
|
350 |
'type' => 'checkbox',
|
351 |
'active_callback' => array( $this, 'active_callback' ),
|
352 |
)
|
@@ -364,7 +326,7 @@ class wcast_delivered_customizer_email {
|
|
364 |
array(
|
365 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
366 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
367 |
-
'section' => '
|
368 |
'type' => 'text',
|
369 |
'input_attrs' => array(
|
370 |
'class' => '',
|
@@ -416,14 +378,10 @@ class wcast_delivered_customizer_email {
|
|
416 |
$email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
|
417 |
$email_heading = str_replace( '{order_number}', $order_id, $email_heading );
|
418 |
|
419 |
-
$email_content = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_email_content',$this->defaults['wcast_delivered_status_email_content']);
|
420 |
-
|
421 |
-
$wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_tracking_details',$this->defaults['wcast_delivered_status_show_tracking_details']);
|
422 |
|
423 |
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_order_details',$this->defaults['wcast_delivered_status_show_order_details']);
|
424 |
|
425 |
-
$wcast_show_billing_address = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_billing_address',$this->defaults['wcast_delivered_status_show_billing_address']);
|
426 |
-
|
427 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_shipping_address',$this->defaults['wcast_delivered_status_show_shipping_address']);
|
428 |
|
429 |
$sent_to_admin = false;
|
@@ -460,24 +418,24 @@ class wcast_delivered_customizer_email {
|
|
460 |
|
461 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
462 |
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
$message .= ob_get_clean();
|
480 |
}
|
|
|
481 |
|
482 |
if($wcast_show_order_details == 1){
|
483 |
|
@@ -493,20 +451,7 @@ class wcast_delivered_customizer_email {
|
|
493 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
494 |
);
|
495 |
$message .= ob_get_clean();
|
496 |
-
}
|
497 |
-
|
498 |
-
if($wcast_show_billing_address == 1){
|
499 |
-
ob_start();
|
500 |
-
wc_get_template(
|
501 |
-
'emails/wcast-billing-email-addresses.php', array(
|
502 |
-
'order' => $order,
|
503 |
-
'sent_to_admin' => $sent_to_admin,
|
504 |
-
),
|
505 |
-
'woocommerce-advanced-shipment-tracking/',
|
506 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
507 |
-
);
|
508 |
-
$message .= ob_get_clean();
|
509 |
-
}
|
510 |
|
511 |
if($wcast_show_shipping_address == 1){
|
512 |
ob_start();
|
24 |
// Only proceed if this is own request.
|
25 |
if ( ! wcast_delivered_customizer_email::is_own_customizer_request() && ! wcast_delivered_customizer_email::is_own_preview_request() ) {
|
26 |
return;
|
27 |
+
}
|
|
|
28 |
// Register our sections
|
29 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
30 |
|
88 |
* @return bool
|
89 |
*/
|
90 |
public static function is_own_customizer_request() {
|
91 |
+
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'trackship_shipment_status_email';
|
92 |
}
|
93 |
|
94 |
/**
|
100 |
'wcast-customizer' => '1',
|
101 |
'email' => $email,
|
102 |
'shipment_status' => $shipment_status,
|
103 |
+
'autofocus[section]' => 'trackship_shipment_status_email',
|
104 |
'url' => urlencode( add_query_arg( array( 'wcast-delivered-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
105 |
'return' => urlencode( wcast_delivered_customizer_email::get_email_settings_page_url($return_tab) ),
|
106 |
), admin_url( 'customize.php' ) );
|
124 |
$customizer_defaults = array(
|
125 |
'wcast_delivered_status_email_subject' => __( 'Your order #{order_number} has been delivered', 'woo-advanced-shipment-tracking' ),
|
126 |
'wcast_delivered_status_email_heading' => __( 'Delivered', 'woo-advanced-shipment-tracking' ),
|
127 |
+
'wcast_delivered_status_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' ),'wcast_enable_delivered_status_email' => '',
|
|
|
128 |
'wcast_delivered_status_email_to' => '{customer_email}',
|
129 |
'wcast_delivered_status_show_tracking_details' => '',
|
130 |
'wcast_delivered_status_show_order_details' => '',
|
158 |
array(
|
159 |
'label' => __( 'Enable Delivered email', 'woo-advanced-shipment-tracking' ),
|
160 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
161 |
+
'section' => 'trackship_shipment_status_email',
|
162 |
'type' => 'checkbox',
|
163 |
'active_callback' => array( $this, 'active_callback' ),
|
164 |
)
|
177 |
array(
|
178 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
179 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses.', 'woocommerce' ),
|
180 |
+
'section' => 'trackship_shipment_status_email',
|
181 |
'type' => 'text',
|
182 |
'input_attrs' => array(
|
183 |
'class' => '',
|
201 |
array(
|
202 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
203 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
204 |
+
'section' => 'trackship_shipment_status_email',
|
205 |
'type' => 'text',
|
206 |
'input_attrs' => array(
|
207 |
'class' => '',
|
225 |
array(
|
226 |
'label' => __( 'Email heading', 'woocommerce' ),
|
227 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
228 |
+
'section' => 'trackship_shipment_status_email',
|
229 |
'type' => 'text',
|
230 |
'input_attrs' => array(
|
231 |
'class' => '',
|
249 |
array(
|
250 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
251 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
252 |
+
'section' => 'trackship_shipment_status_email',
|
253 |
'input_attrs' => array(
|
254 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
255 |
'mediaButtons' => true,
|
271 |
array(
|
272 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
273 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
274 |
+
'section' => 'trackship_shipment_status_email',
|
275 |
'active_callback' => array( $this, 'active_callback' ),
|
276 |
)
|
277 |
) );
|
278 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
// Display Shipment Provider image/thumbnail
|
280 |
$wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_show_order_details]',
|
281 |
array(
|
287 |
);
|
288 |
$wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_show_order_details]',
|
289 |
array(
|
290 |
+
'label' => __( 'Display the Shipping items', 'woo-advanced-shipment-tracking' ),
|
291 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
292 |
+
'section' => 'trackship_shipment_status_email',
|
293 |
'type' => 'checkbox',
|
294 |
'active_callback' => array( $this, 'active_callback' ),
|
295 |
)
|
296 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
|
298 |
// Display Shipment Provider image/thumbnail
|
299 |
$wp_customize->add_setting( 'wcast_delivered_email_settings[wcast_delivered_status_show_shipping_address]',
|
306 |
);
|
307 |
$wp_customize->add_control( 'wcast_delivered_email_settings[wcast_delivered_status_show_shipping_address]',
|
308 |
array(
|
309 |
+
'label' => __( 'Display the shipping address', 'woo-advanced-shipment-tracking' ),
|
310 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
311 |
+
'section' => 'trackship_shipment_status_email',
|
312 |
'type' => 'checkbox',
|
313 |
'active_callback' => array( $this, 'active_callback' ),
|
314 |
)
|
326 |
array(
|
327 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
328 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
329 |
+
'section' => 'trackship_shipment_status_email',
|
330 |
'type' => 'text',
|
331 |
'input_attrs' => array(
|
332 |
'class' => '',
|
378 |
$email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
|
379 |
$email_heading = str_replace( '{order_number}', $order_id, $email_heading );
|
380 |
|
381 |
+
$email_content = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_email_content',$this->defaults['wcast_delivered_status_email_content']);
|
|
|
|
|
382 |
|
383 |
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_order_details',$this->defaults['wcast_delivered_status_show_order_details']);
|
384 |
|
|
|
|
|
385 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_shipping_address',$this->defaults['wcast_delivered_status_show_shipping_address']);
|
386 |
|
387 |
$sent_to_admin = false;
|
418 |
|
419 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
420 |
|
421 |
+
ob_start();
|
422 |
+
$local_template = get_stylesheet_directory().'/woocommerce/emails/tracking-info.php';
|
423 |
+
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
424 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
425 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
426 |
+
'order_id' => $preview_id,
|
427 |
+
'show_shipment_status' => true,
|
428 |
+
'new_status' => 'delivered',
|
429 |
+
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
430 |
+
} else{
|
431 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
432 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
433 |
+
'order_id' => $preview_id,
|
434 |
+
'show_shipment_status' => true,
|
435 |
+
'new_status' => 'delivered',
|
436 |
+
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
|
|
437 |
}
|
438 |
+
$message .= ob_get_clean();
|
439 |
|
440 |
if($wcast_show_order_details == 1){
|
441 |
|
451 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
452 |
);
|
453 |
$message .= ob_get_clean();
|
454 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
|
456 |
if($wcast_show_shipping_address == 1){
|
457 |
ob_start();
|
includes/customizer/class-wc-email-customizer.php
CHANGED
@@ -14,15 +14,13 @@ class wcast_initialise_customizer_email {
|
|
14 |
$this->defaults = $this->wcast_generate_defaults();
|
15 |
|
16 |
// Register our sample default controls
|
17 |
-
add_action( 'customize_register', array( $this, 'wcast_register_sample_default_controls' ) );
|
18 |
-
|
19 |
|
20 |
// Only proceed if this is own request.
|
21 |
if ( ! wcast_initialise_customizer_email::is_own_customizer_request() && ! wcast_initialise_customizer_email::is_own_preview_request() ) {
|
22 |
return;
|
23 |
}
|
24 |
-
|
25 |
-
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
|
26 |
// Register our sections
|
27 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
28 |
|
@@ -48,7 +46,7 @@ class wcast_initialise_customizer_email {
|
|
48 |
public function enqueue_preview_scripts() {
|
49 |
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);
|
50 |
wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
|
51 |
-
|
52 |
$preview_id = get_theme_mod('wcast_email_preview_order_id');
|
53 |
wp_localize_script('wcast-email-preview-scripts', 'wcast_preview', array(
|
54 |
'site_title' => $this->get_blogname(),
|
@@ -180,10 +178,16 @@ class wcast_initialise_customizer_email {
|
|
180 |
'placeholder' => __( 'Select email type', 'woo-advanced-shipment-tracking' ),
|
181 |
'class' => 'preview_email_type',
|
182 |
),
|
183 |
-
'choices' => array(
|
184 |
-
'delivered' => __( 'Delivered', 'woo-advanced-shipment-tracking' ),
|
185 |
'partially_shipped' => __( 'Partially Shipped', 'woo-advanced-shipment-tracking' ),
|
186 |
-
'updated_tracking' => __( 'Updated Tracking', 'woo-advanced-shipment-tracking' )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
),
|
188 |
)
|
189 |
) );
|
14 |
$this->defaults = $this->wcast_generate_defaults();
|
15 |
|
16 |
// Register our sample default controls
|
17 |
+
add_action( 'customize_register', array( $this, 'wcast_register_sample_default_controls' ) );
|
|
|
18 |
|
19 |
// Only proceed if this is own request.
|
20 |
if ( ! wcast_initialise_customizer_email::is_own_customizer_request() && ! wcast_initialise_customizer_email::is_own_preview_request() ) {
|
21 |
return;
|
22 |
}
|
23 |
+
|
|
|
24 |
// Register our sections
|
25 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
26 |
|
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(),
|
178 |
'placeholder' => __( 'Select email type', 'woo-advanced-shipment-tracking' ),
|
179 |
'class' => 'preview_email_type',
|
180 |
),
|
181 |
+
'choices' => array(
|
|
|
182 |
'partially_shipped' => __( 'Partially Shipped', 'woo-advanced-shipment-tracking' ),
|
183 |
+
'updated_tracking' => __( 'Updated Tracking', 'woo-advanced-shipment-tracking' ),
|
184 |
+
'in_transit' => __( 'In Transit', 'woo-advanced-shipment-tracking' ),
|
185 |
+
'on_hold' => __( 'On Hold', 'woo-advanced-shipment-tracking' ),
|
186 |
+
'return_to_sender' => __( 'Return To Sender', 'woo-advanced-shipment-tracking' ),
|
187 |
+
'available_for_pickup' => __( 'Available For Pickup', 'woo-advanced-shipment-tracking' ),
|
188 |
+
'out_for_delivery' => __( 'Out For Delivery', 'woo-advanced-shipment-tracking' ),
|
189 |
+
'delivered' => __( 'Delivered', 'woo-advanced-shipment-tracking' ),
|
190 |
+
'failure' => __( 'Failed Attempt', 'woo-advanced-shipment-tracking' ),
|
191 |
),
|
192 |
)
|
193 |
) );
|
includes/customizer/class-wc-failure-email-customizer.php
CHANGED
@@ -23,7 +23,7 @@ class wcast_failure_customizer_email {
|
|
23 |
if ( ! wcast_failure_customizer_email::is_own_customizer_request() && ! wcast_failure_customizer_email::is_own_preview_request() ) {
|
24 |
return;
|
25 |
}
|
26 |
-
|
27 |
// Register our sections
|
28 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
29 |
|
@@ -87,7 +87,7 @@ class wcast_failure_customizer_email {
|
|
87 |
* @return bool
|
88 |
*/
|
89 |
public static function is_own_customizer_request() {
|
90 |
-
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === '
|
91 |
}
|
92 |
|
93 |
/**
|
@@ -99,7 +99,7 @@ class wcast_failure_customizer_email {
|
|
99 |
'wcast-customizer' => '1',
|
100 |
'email' => $email,
|
101 |
'shipment_status' => $shipment_status,
|
102 |
-
'autofocus[section]' => '
|
103 |
'url' => urlencode( add_query_arg( array( 'wcast-failure-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
104 |
'return' => urlencode( wcast_failure_customizer_email::get_email_settings_page_url($return_tab) ),
|
105 |
), admin_url( 'customize.php' ) );
|
@@ -159,7 +159,7 @@ class wcast_failure_customizer_email {
|
|
159 |
array(
|
160 |
'label' => __( 'Enable Failed Attempt email', 'woo-advanced-shipment-tracking' ),
|
161 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
162 |
-
'section' => '
|
163 |
'type' => 'checkbox',
|
164 |
'active_callback' => array( $this, 'active_callback' ),
|
165 |
)
|
@@ -178,7 +178,7 @@ class wcast_failure_customizer_email {
|
|
178 |
array(
|
179 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
180 |
'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
|
181 |
-
'section' => '
|
182 |
'type' => 'text',
|
183 |
'input_attrs' => array(
|
184 |
'class' => '',
|
@@ -202,7 +202,7 @@ class wcast_failure_customizer_email {
|
|
202 |
array(
|
203 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
204 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
205 |
-
'section' => '
|
206 |
'type' => 'text',
|
207 |
'input_attrs' => array(
|
208 |
'class' => '',
|
@@ -226,7 +226,7 @@ class wcast_failure_customizer_email {
|
|
226 |
array(
|
227 |
'label' => __( 'Email heading', 'woocommerce' ),
|
228 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
229 |
-
'section' => '
|
230 |
'type' => 'text',
|
231 |
'input_attrs' => array(
|
232 |
'class' => '',
|
@@ -250,7 +250,7 @@ class wcast_failure_customizer_email {
|
|
250 |
array(
|
251 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
252 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
253 |
-
'section' => '
|
254 |
'input_attrs' => array(
|
255 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
256 |
'mediaButtons' => true,
|
@@ -272,29 +272,11 @@ class wcast_failure_customizer_email {
|
|
272 |
array(
|
273 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
274 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
275 |
-
'section' => '
|
276 |
'active_callback' => array( $this, 'active_callback' ),
|
277 |
)
|
278 |
) );
|
279 |
-
|
280 |
-
// Display Shipment Provider image/thumbnail
|
281 |
-
$wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_show_tracking_details]',
|
282 |
-
array(
|
283 |
-
'default' => $this->defaults['wcast_failure_show_tracking_details'],
|
284 |
-
'transport' => 'refresh',
|
285 |
-
'type' => 'option',
|
286 |
-
'sanitize_callback' => ''
|
287 |
-
)
|
288 |
-
);
|
289 |
-
$wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_show_tracking_details]',
|
290 |
-
array(
|
291 |
-
'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
|
292 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
293 |
-
'section' => 'custom_shipment_status_email',
|
294 |
-
'type' => 'checkbox',
|
295 |
-
'active_callback' => array( $this, 'active_callback' ),
|
296 |
-
)
|
297 |
-
);
|
298 |
// Display Shipment Provider image/thumbnail
|
299 |
$wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_show_order_details]',
|
300 |
array(
|
@@ -306,31 +288,13 @@ class wcast_failure_customizer_email {
|
|
306 |
);
|
307 |
$wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_show_order_details]',
|
308 |
array(
|
309 |
-
'label' => __( '
|
310 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
311 |
-
'section' => 'custom_shipment_status_email',
|
312 |
-
'type' => 'checkbox',
|
313 |
-
'active_callback' => array( $this, 'active_callback' ),
|
314 |
-
)
|
315 |
-
);
|
316 |
-
// Display Shipment Provider image/thumbnail
|
317 |
-
$wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_show_billing_address]',
|
318 |
-
array(
|
319 |
-
'default' => $this->defaults['wcast_failure_show_billing_address'],
|
320 |
-
'transport' => 'refresh',
|
321 |
-
'type' => 'option',
|
322 |
-
'sanitize_callback' => ''
|
323 |
-
)
|
324 |
-
);
|
325 |
-
$wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_show_billing_address]',
|
326 |
-
array(
|
327 |
-
'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
|
328 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
329 |
-
'section' => '
|
330 |
'type' => 'checkbox',
|
331 |
'active_callback' => array( $this, 'active_callback' ),
|
332 |
)
|
333 |
-
);
|
334 |
|
335 |
// Display Shipment Provider image/thumbnail
|
336 |
$wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_show_shipping_address]',
|
@@ -343,9 +307,9 @@ class wcast_failure_customizer_email {
|
|
343 |
);
|
344 |
$wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_show_shipping_address]',
|
345 |
array(
|
346 |
-
'label' => __( '
|
347 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
348 |
-
'section' => '
|
349 |
'type' => 'checkbox',
|
350 |
'active_callback' => array( $this, 'active_callback' ),
|
351 |
)
|
@@ -363,7 +327,7 @@ class wcast_failure_customizer_email {
|
|
363 |
array(
|
364 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
365 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
366 |
-
'section' => '
|
367 |
'type' => 'text',
|
368 |
'input_attrs' => array(
|
369 |
'class' => '',
|
@@ -415,14 +379,10 @@ class wcast_failure_customizer_email {
|
|
415 |
$email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
|
416 |
$email_heading = str_replace( '{order_number}', $order_id, $email_heading );
|
417 |
|
418 |
-
$email_content = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_email_content',$this->defaults['wcast_failure_email_content']);
|
419 |
-
|
420 |
-
$wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_show_tracking_details',$this->defaults['wcast_failure_show_tracking_details']);
|
421 |
|
422 |
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_show_order_details',$this->defaults['wcast_failure_show_order_details']);
|
423 |
|
424 |
-
$wcast_show_billing_address = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_show_billing_address',$this->defaults['wcast_failure_show_billing_address']);
|
425 |
-
|
426 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_show_shipping_address',$this->defaults['wcast_failure_show_shipping_address']);
|
427 |
|
428 |
$sent_to_admin = false;
|
@@ -460,24 +420,24 @@ class wcast_failure_customizer_email {
|
|
460 |
|
461 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
462 |
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
$message .= ob_get_clean();
|
480 |
}
|
|
|
481 |
|
482 |
if($wcast_show_order_details == 1){
|
483 |
|
@@ -493,20 +453,7 @@ class wcast_failure_customizer_email {
|
|
493 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
494 |
);
|
495 |
$message .= ob_get_clean();
|
496 |
-
}
|
497 |
-
|
498 |
-
if($wcast_show_billing_address == 1){
|
499 |
-
ob_start();
|
500 |
-
wc_get_template(
|
501 |
-
'emails/wcast-billing-email-addresses.php', array(
|
502 |
-
'order' => $order,
|
503 |
-
'sent_to_admin' => $sent_to_admin,
|
504 |
-
),
|
505 |
-
'woocommerce-advanced-shipment-tracking/',
|
506 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
507 |
-
);
|
508 |
-
$message .= ob_get_clean();
|
509 |
-
}
|
510 |
|
511 |
if($wcast_show_shipping_address == 1){
|
512 |
ob_start();
|
23 |
if ( ! wcast_failure_customizer_email::is_own_customizer_request() && ! wcast_failure_customizer_email::is_own_preview_request() ) {
|
24 |
return;
|
25 |
}
|
26 |
+
|
27 |
// Register our sections
|
28 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
29 |
|
87 |
* @return bool
|
88 |
*/
|
89 |
public static function is_own_customizer_request() {
|
90 |
+
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'trackship_shipment_status_email';
|
91 |
}
|
92 |
|
93 |
/**
|
99 |
'wcast-customizer' => '1',
|
100 |
'email' => $email,
|
101 |
'shipment_status' => $shipment_status,
|
102 |
+
'autofocus[section]' => 'trackship_shipment_status_email',
|
103 |
'url' => urlencode( add_query_arg( array( 'wcast-failure-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
104 |
'return' => urlencode( wcast_failure_customizer_email::get_email_settings_page_url($return_tab) ),
|
105 |
), admin_url( 'customize.php' ) );
|
159 |
array(
|
160 |
'label' => __( 'Enable Failed Attempt email', 'woo-advanced-shipment-tracking' ),
|
161 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
162 |
+
'section' => 'trackship_shipment_status_email',
|
163 |
'type' => 'checkbox',
|
164 |
'active_callback' => array( $this, 'active_callback' ),
|
165 |
)
|
178 |
array(
|
179 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
180 |
'description' => esc_html__( 'Enter emails here or use variables such as {customer_email}. Multiple emails can be separated by commas.', 'woocommerce' ),
|
181 |
+
'section' => 'trackship_shipment_status_email',
|
182 |
'type' => 'text',
|
183 |
'input_attrs' => array(
|
184 |
'class' => '',
|
202 |
array(
|
203 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
204 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
205 |
+
'section' => 'trackship_shipment_status_email',
|
206 |
'type' => 'text',
|
207 |
'input_attrs' => array(
|
208 |
'class' => '',
|
226 |
array(
|
227 |
'label' => __( 'Email heading', 'woocommerce' ),
|
228 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
229 |
+
'section' => 'trackship_shipment_status_email',
|
230 |
'type' => 'text',
|
231 |
'input_attrs' => array(
|
232 |
'class' => '',
|
250 |
array(
|
251 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
252 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
253 |
+
'section' => 'trackship_shipment_status_email',
|
254 |
'input_attrs' => array(
|
255 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
256 |
'mediaButtons' => true,
|
272 |
array(
|
273 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
274 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
275 |
+
'section' => 'trackship_shipment_status_email',
|
276 |
'active_callback' => array( $this, 'active_callback' ),
|
277 |
)
|
278 |
) );
|
279 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
// Display Shipment Provider image/thumbnail
|
281 |
$wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_show_order_details]',
|
282 |
array(
|
288 |
);
|
289 |
$wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_show_order_details]',
|
290 |
array(
|
291 |
+
'label' => __( 'Display the Shipping items', 'woo-advanced-shipment-tracking' ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
293 |
+
'section' => 'trackship_shipment_status_email',
|
294 |
'type' => 'checkbox',
|
295 |
'active_callback' => array( $this, 'active_callback' ),
|
296 |
)
|
297 |
+
);
|
298 |
|
299 |
// Display Shipment Provider image/thumbnail
|
300 |
$wp_customize->add_setting( 'wcast_failure_email_settings[wcast_failure_show_shipping_address]',
|
307 |
);
|
308 |
$wp_customize->add_control( 'wcast_failure_email_settings[wcast_failure_show_shipping_address]',
|
309 |
array(
|
310 |
+
'label' => __( 'Display the shipping address', 'woo-advanced-shipment-tracking' ),
|
311 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
312 |
+
'section' => 'trackship_shipment_status_email',
|
313 |
'type' => 'checkbox',
|
314 |
'active_callback' => array( $this, 'active_callback' ),
|
315 |
)
|
327 |
array(
|
328 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
329 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
330 |
+
'section' => 'trackship_shipment_status_email',
|
331 |
'type' => 'text',
|
332 |
'input_attrs' => array(
|
333 |
'class' => '',
|
379 |
$email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
|
380 |
$email_heading = str_replace( '{order_number}', $order_id, $email_heading );
|
381 |
|
382 |
+
$email_content = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_email_content',$this->defaults['wcast_failure_email_content']);
|
|
|
|
|
383 |
|
384 |
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_show_order_details',$this->defaults['wcast_failure_show_order_details']);
|
385 |
|
|
|
|
|
386 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_failure_email_settings','wcast_failure_show_shipping_address',$this->defaults['wcast_failure_show_shipping_address']);
|
387 |
|
388 |
$sent_to_admin = false;
|
420 |
|
421 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
422 |
|
423 |
+
ob_start();
|
424 |
+
$local_template = get_stylesheet_directory().'/woocommerce/emails/tracking-info.php';
|
425 |
+
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
426 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
427 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
428 |
+
'order_id' => $preview_id,
|
429 |
+
'show_shipment_status' => true,
|
430 |
+
'new_status' => 'failure',
|
431 |
+
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
432 |
+
} else{
|
433 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
434 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
435 |
+
'order_id' => $preview_id,
|
436 |
+
'show_shipment_status' => true,
|
437 |
+
'new_status' => 'failure',
|
438 |
+
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
|
|
439 |
}
|
440 |
+
$message .= ob_get_clean();
|
441 |
|
442 |
if($wcast_show_order_details == 1){
|
443 |
|
453 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
454 |
);
|
455 |
$message .= ob_get_clean();
|
456 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
|
458 |
if($wcast_show_shipping_address == 1){
|
459 |
ob_start();
|
includes/customizer/class-wc-intransit-email-customizer.php
CHANGED
@@ -26,7 +26,7 @@ class wcast_intransit_customizer_email {
|
|
26 |
if ( ! wcast_intransit_customizer_email::is_own_customizer_request() && ! wcast_intransit_customizer_email::is_own_preview_request() ) {
|
27 |
return;
|
28 |
}
|
29 |
-
|
30 |
// Register our sections
|
31 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
32 |
|
@@ -90,7 +90,7 @@ class wcast_intransit_customizer_email {
|
|
90 |
* @return bool
|
91 |
*/
|
92 |
public static function is_own_customizer_request() {
|
93 |
-
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === '
|
94 |
}
|
95 |
|
96 |
/**
|
@@ -102,7 +102,7 @@ class wcast_intransit_customizer_email {
|
|
102 |
'wcast-customizer' => '1',
|
103 |
'email' => $email,
|
104 |
'shipment_status' => $shipment_status,
|
105 |
-
'autofocus[section]' => '
|
106 |
'url' => urlencode( add_query_arg( array( 'wcast-intransit-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
107 |
'return' => urlencode( wcast_intransit_customizer_email::get_email_settings_page_url($return_tab) ),
|
108 |
), admin_url( 'customize.php' ) );
|
@@ -129,10 +129,8 @@ class wcast_intransit_customizer_email {
|
|
129 |
'wcast_intransit_email_heading' => __( 'In Transit', 'woo-advanced-shipment-tracking' ),
|
130 |
'wcast_intransit_email_content' => __( "Hi there. we thought you'd like to know that your recent order from {site_title} is in transit", 'woo-advanced-shipment-tracking' ),
|
131 |
'wcast_enable_intransit_email' => '',
|
132 |
-
'wcast_intransit_email_to' => '{customer_email}',
|
133 |
-
'
|
134 |
-
'wcast_intransit_show_order_details' => '',
|
135 |
-
'wcast_intransit_show_billing_address' => '',
|
136 |
'wcast_intransit_show_shipping_address' => '',
|
137 |
'wcast_intransit_email_code_block' => '',
|
138 |
);
|
@@ -148,7 +146,7 @@ class wcast_intransit_customizer_email {
|
|
148 |
* Load all our Customizer Custom Controls
|
149 |
*/
|
150 |
require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
|
151 |
-
|
152 |
// Preview Order
|
153 |
$wp_customize->add_setting( 'wcast_intransit_email_preview_order_id',
|
154 |
array(
|
@@ -161,7 +159,7 @@ class wcast_intransit_customizer_email {
|
|
161 |
array(
|
162 |
'label' => __( 'Preview order', 'woo-advanced-shipment-tracking' ),
|
163 |
'description' => '',
|
164 |
-
'section' => '
|
165 |
'input_attrs' => array(
|
166 |
'placeholder' => __( 'Please select a order...', 'skyrocket' ),
|
167 |
'class' => 'preview_order_select',
|
@@ -183,7 +181,7 @@ class wcast_intransit_customizer_email {
|
|
183 |
array(
|
184 |
'label' => __( 'Shipment Status', 'woo-advanced-shipment-tracking' ),
|
185 |
'description' => '',
|
186 |
-
'section' => '
|
187 |
'input_attrs' => array(
|
188 |
'placeholder' => __( 'Select shipment status', 'woo-advanced-shipment-tracking' ),
|
189 |
'class' => 'preview_shipment_status_type',
|
@@ -213,7 +211,7 @@ class wcast_intransit_customizer_email {
|
|
213 |
array(
|
214 |
'label' => __( 'Enable In Transit email', 'woo-advanced-shipment-tracking' ),
|
215 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
216 |
-
'section' => '
|
217 |
'type' => 'checkbox',
|
218 |
'active_callback' => array( $this, 'active_callback' ),
|
219 |
)
|
@@ -232,7 +230,7 @@ class wcast_intransit_customizer_email {
|
|
232 |
array(
|
233 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
234 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses', 'woocommerce' ),
|
235 |
-
'section' => '
|
236 |
'type' => 'text',
|
237 |
'input_attrs' => array(
|
238 |
'class' => '',
|
@@ -256,7 +254,7 @@ class wcast_intransit_customizer_email {
|
|
256 |
array(
|
257 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
258 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
259 |
-
'section' => '
|
260 |
'type' => 'text',
|
261 |
'input_attrs' => array(
|
262 |
'class' => '',
|
@@ -280,7 +278,7 @@ class wcast_intransit_customizer_email {
|
|
280 |
array(
|
281 |
'label' => __( 'Email heading', 'woocommerce' ),
|
282 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
283 |
-
'section' => '
|
284 |
'type' => 'text',
|
285 |
'input_attrs' => array(
|
286 |
'class' => '',
|
@@ -304,7 +302,7 @@ class wcast_intransit_customizer_email {
|
|
304 |
array(
|
305 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
306 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
307 |
-
'section' => '
|
308 |
'input_attrs' => array(
|
309 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
310 |
'mediaButtons' => true,
|
@@ -326,29 +324,11 @@ class wcast_intransit_customizer_email {
|
|
326 |
array(
|
327 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
328 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
329 |
-
'section' => '
|
330 |
'active_callback' => array( $this, 'active_callback' ),
|
331 |
)
|
332 |
) );
|
333 |
-
|
334 |
-
// Display Shipment Provider image/thumbnail
|
335 |
-
$wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_show_tracking_details]',
|
336 |
-
array(
|
337 |
-
'default' => $this->defaults['wcast_intransit_show_tracking_details'],
|
338 |
-
'transport' => 'refresh',
|
339 |
-
'type' => 'option',
|
340 |
-
'sanitize_callback' => ''
|
341 |
-
)
|
342 |
-
);
|
343 |
-
$wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_show_tracking_details]',
|
344 |
-
array(
|
345 |
-
'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
|
346 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
347 |
-
'section' => 'custom_shipment_status_email',
|
348 |
-
'type' => 'checkbox',
|
349 |
-
'active_callback' => array( $this, 'active_callback' ),
|
350 |
-
)
|
351 |
-
);
|
352 |
// Display Shipment Provider image/thumbnail
|
353 |
$wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_show_order_details]',
|
354 |
array(
|
@@ -360,31 +340,13 @@ class wcast_intransit_customizer_email {
|
|
360 |
);
|
361 |
$wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_show_order_details]',
|
362 |
array(
|
363 |
-
'label' => __( '
|
364 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
365 |
-
'section' => '
|
366 |
'type' => 'checkbox',
|
367 |
'active_callback' => array( $this, 'active_callback' ),
|
368 |
)
|
369 |
-
);
|
370 |
-
// Display Shipment Provider image/thumbnail
|
371 |
-
$wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_show_billing_address]',
|
372 |
-
array(
|
373 |
-
'default' => $this->defaults['wcast_intransit_show_billing_address'],
|
374 |
-
'transport' => 'refresh',
|
375 |
-
'type' => 'option',
|
376 |
-
'sanitize_callback' => ''
|
377 |
-
)
|
378 |
-
);
|
379 |
-
$wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_show_billing_address]',
|
380 |
-
array(
|
381 |
-
'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
|
382 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
383 |
-
'section' => 'custom_shipment_status_email',
|
384 |
-
'type' => 'checkbox',
|
385 |
-
'active_callback' => array( $this, 'active_callback' ),
|
386 |
-
)
|
387 |
-
);
|
388 |
|
389 |
// Display Shipment Provider image/thumbnail
|
390 |
$wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_show_shipping_address]',
|
@@ -397,9 +359,9 @@ class wcast_intransit_customizer_email {
|
|
397 |
);
|
398 |
$wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_show_shipping_address]',
|
399 |
array(
|
400 |
-
'label' => __( '
|
401 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
402 |
-
'section' => '
|
403 |
'type' => 'checkbox',
|
404 |
'active_callback' => array( $this, 'active_callback' ),
|
405 |
)
|
@@ -417,7 +379,7 @@ class wcast_intransit_customizer_email {
|
|
417 |
array(
|
418 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
419 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
420 |
-
'section' => '
|
421 |
'type' => 'text',
|
422 |
'input_attrs' => array(
|
423 |
'class' => '',
|
@@ -470,12 +432,8 @@ class wcast_intransit_customizer_email {
|
|
470 |
|
471 |
$email_content = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_email_content',$this->defaults['wcast_intransit_email_content']);
|
472 |
|
473 |
-
$wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_show_tracking_details',$this->defaults['wcast_intransit_show_tracking_details']);
|
474 |
-
|
475 |
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_show_order_details',$this->defaults['wcast_intransit_show_order_details']);
|
476 |
|
477 |
-
$wcast_show_billing_address = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_show_billing_address',$this->defaults['wcast_intransit_show_billing_address']);
|
478 |
-
|
479 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_show_shipping_address',$this->defaults['wcast_intransit_show_shipping_address']);
|
480 |
|
481 |
$sent_to_admin = false;
|
@@ -513,24 +471,24 @@ class wcast_intransit_customizer_email {
|
|
513 |
|
514 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
515 |
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
$message .= ob_get_clean();
|
533 |
}
|
|
|
534 |
|
535 |
if($wcast_show_order_details == 1){
|
536 |
ob_start();
|
@@ -545,20 +503,7 @@ class wcast_intransit_customizer_email {
|
|
545 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
546 |
);
|
547 |
$message .= ob_get_clean();
|
548 |
-
}
|
549 |
-
|
550 |
-
if($wcast_show_billing_address == 1){
|
551 |
-
ob_start();
|
552 |
-
wc_get_template(
|
553 |
-
'emails/wcast-billing-email-addresses.php', array(
|
554 |
-
'order' => $order,
|
555 |
-
'sent_to_admin' => $sent_to_admin,
|
556 |
-
),
|
557 |
-
'woocommerce-advanced-shipment-tracking/',
|
558 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
559 |
-
);
|
560 |
-
$message .= ob_get_clean();
|
561 |
-
}
|
562 |
|
563 |
if($wcast_show_shipping_address == 1){
|
564 |
ob_start();
|
26 |
if ( ! wcast_intransit_customizer_email::is_own_customizer_request() && ! wcast_intransit_customizer_email::is_own_preview_request() ) {
|
27 |
return;
|
28 |
}
|
29 |
+
|
30 |
// Register our sections
|
31 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
32 |
|
90 |
* @return bool
|
91 |
*/
|
92 |
public static function is_own_customizer_request() {
|
93 |
+
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'trackship_shipment_status_email';
|
94 |
}
|
95 |
|
96 |
/**
|
102 |
'wcast-customizer' => '1',
|
103 |
'email' => $email,
|
104 |
'shipment_status' => $shipment_status,
|
105 |
+
'autofocus[section]' => 'trackship_shipment_status_email',
|
106 |
'url' => urlencode( add_query_arg( array( 'wcast-intransit-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
107 |
'return' => urlencode( wcast_intransit_customizer_email::get_email_settings_page_url($return_tab) ),
|
108 |
), admin_url( 'customize.php' ) );
|
129 |
'wcast_intransit_email_heading' => __( 'In Transit', 'woo-advanced-shipment-tracking' ),
|
130 |
'wcast_intransit_email_content' => __( "Hi there. we thought you'd like to know that your recent order from {site_title} is in transit", 'woo-advanced-shipment-tracking' ),
|
131 |
'wcast_enable_intransit_email' => '',
|
132 |
+
'wcast_intransit_email_to' => '{customer_email}',
|
133 |
+
'wcast_intransit_show_order_details' => '',
|
|
|
|
|
134 |
'wcast_intransit_show_shipping_address' => '',
|
135 |
'wcast_intransit_email_code_block' => '',
|
136 |
);
|
146 |
* Load all our Customizer Custom Controls
|
147 |
*/
|
148 |
require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
|
149 |
+
|
150 |
// Preview Order
|
151 |
$wp_customize->add_setting( 'wcast_intransit_email_preview_order_id',
|
152 |
array(
|
159 |
array(
|
160 |
'label' => __( 'Preview order', 'woo-advanced-shipment-tracking' ),
|
161 |
'description' => '',
|
162 |
+
'section' => 'trackship_shipment_status_email',
|
163 |
'input_attrs' => array(
|
164 |
'placeholder' => __( 'Please select a order...', 'skyrocket' ),
|
165 |
'class' => 'preview_order_select',
|
181 |
array(
|
182 |
'label' => __( 'Shipment Status', 'woo-advanced-shipment-tracking' ),
|
183 |
'description' => '',
|
184 |
+
'section' => 'trackship_shipment_status_email',
|
185 |
'input_attrs' => array(
|
186 |
'placeholder' => __( 'Select shipment status', 'woo-advanced-shipment-tracking' ),
|
187 |
'class' => 'preview_shipment_status_type',
|
211 |
array(
|
212 |
'label' => __( 'Enable In Transit email', 'woo-advanced-shipment-tracking' ),
|
213 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
214 |
+
'section' => 'trackship_shipment_status_email',
|
215 |
'type' => 'checkbox',
|
216 |
'active_callback' => array( $this, 'active_callback' ),
|
217 |
)
|
230 |
array(
|
231 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
232 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses', 'woocommerce' ),
|
233 |
+
'section' => 'trackship_shipment_status_email',
|
234 |
'type' => 'text',
|
235 |
'input_attrs' => array(
|
236 |
'class' => '',
|
254 |
array(
|
255 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
256 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
257 |
+
'section' => 'trackship_shipment_status_email',
|
258 |
'type' => 'text',
|
259 |
'input_attrs' => array(
|
260 |
'class' => '',
|
278 |
array(
|
279 |
'label' => __( 'Email heading', 'woocommerce' ),
|
280 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
281 |
+
'section' => 'trackship_shipment_status_email',
|
282 |
'type' => 'text',
|
283 |
'input_attrs' => array(
|
284 |
'class' => '',
|
302 |
array(
|
303 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
304 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
305 |
+
'section' => 'trackship_shipment_status_email',
|
306 |
'input_attrs' => array(
|
307 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
308 |
'mediaButtons' => true,
|
324 |
array(
|
325 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
326 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
327 |
+
'section' => 'trackship_shipment_status_email',
|
328 |
'active_callback' => array( $this, 'active_callback' ),
|
329 |
)
|
330 |
) );
|
331 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
// Display Shipment Provider image/thumbnail
|
333 |
$wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_show_order_details]',
|
334 |
array(
|
340 |
);
|
341 |
$wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_show_order_details]',
|
342 |
array(
|
343 |
+
'label' => __( 'Display the Shipping items', 'woo-advanced-shipment-tracking' ),
|
344 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
345 |
+
'section' => 'trackship_shipment_status_email',
|
346 |
'type' => 'checkbox',
|
347 |
'active_callback' => array( $this, 'active_callback' ),
|
348 |
)
|
349 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
|
351 |
// Display Shipment Provider image/thumbnail
|
352 |
$wp_customize->add_setting( 'wcast_intransit_email_settings[wcast_intransit_show_shipping_address]',
|
359 |
);
|
360 |
$wp_customize->add_control( 'wcast_intransit_email_settings[wcast_intransit_show_shipping_address]',
|
361 |
array(
|
362 |
+
'label' => __( 'Display the shipping address', 'woo-advanced-shipment-tracking' ),
|
363 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
364 |
+
'section' => 'trackship_shipment_status_email',
|
365 |
'type' => 'checkbox',
|
366 |
'active_callback' => array( $this, 'active_callback' ),
|
367 |
)
|
379 |
array(
|
380 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
381 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
382 |
+
'section' => 'trackship_shipment_status_email',
|
383 |
'type' => 'text',
|
384 |
'input_attrs' => array(
|
385 |
'class' => '',
|
432 |
|
433 |
$email_content = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_email_content',$this->defaults['wcast_intransit_email_content']);
|
434 |
|
|
|
|
|
435 |
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_show_order_details',$this->defaults['wcast_intransit_show_order_details']);
|
436 |
|
|
|
|
|
437 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_intransit_email_settings','wcast_intransit_show_shipping_address',$this->defaults['wcast_intransit_show_shipping_address']);
|
438 |
|
439 |
$sent_to_admin = false;
|
471 |
|
472 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
473 |
|
474 |
+
ob_start();
|
475 |
+
$local_template = get_stylesheet_directory().'/woocommerce/emails/tracking-info.php';
|
476 |
+
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
477 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
478 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
479 |
+
'order_id' => $preview_id,
|
480 |
+
'show_shipment_status' => true,
|
481 |
+
'new_status' => 'in_transit',
|
482 |
+
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
483 |
+
} else{
|
484 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
485 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
486 |
+
'order_id' => $preview_id,
|
487 |
+
'show_shipment_status' => true,
|
488 |
+
'new_status' => 'in_transit',
|
489 |
+
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
|
|
490 |
}
|
491 |
+
$message .= ob_get_clean();
|
492 |
|
493 |
if($wcast_show_order_details == 1){
|
494 |
ob_start();
|
503 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
504 |
);
|
505 |
$message .= ob_get_clean();
|
506 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
|
508 |
if($wcast_show_shipping_address == 1){
|
509 |
ob_start();
|
includes/customizer/class-wc-onhold-email-customizer.php
CHANGED
@@ -25,8 +25,7 @@ class wcast_onhold_customizer_email {
|
|
25 |
// Only proceed if this is own request.
|
26 |
if ( ! wcast_onhold_customizer_email::is_own_customizer_request() && ! wcast_onhold_customizer_email::is_own_preview_request() ) {
|
27 |
return;
|
28 |
-
}
|
29 |
-
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
|
30 |
// Register our sections
|
31 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
32 |
|
@@ -90,7 +89,7 @@ class wcast_onhold_customizer_email {
|
|
90 |
* @return bool
|
91 |
*/
|
92 |
public static function is_own_customizer_request() {
|
93 |
-
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === '
|
94 |
}
|
95 |
|
96 |
/**
|
@@ -102,7 +101,7 @@ class wcast_onhold_customizer_email {
|
|
102 |
'wcast-customizer' => '1',
|
103 |
'email' => $email,
|
104 |
'shipment_status' => $shipment_status,
|
105 |
-
'autofocus[section]' => '
|
106 |
'url' => urlencode( add_query_arg( array( 'wcast-onhold-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
107 |
'return' => urlencode( wcast_onhold_customizer_email::get_email_settings_page_url($return_tab) ),
|
108 |
), admin_url( 'customize.php' ) );
|
@@ -162,7 +161,7 @@ class wcast_onhold_customizer_email {
|
|
162 |
array(
|
163 |
'label' => __( 'Enable On Hold email', 'woo-advanced-shipment-tracking' ),
|
164 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
165 |
-
'section' => '
|
166 |
'type' => 'checkbox',
|
167 |
'active_callback' => array( $this, 'active_callback' ),
|
168 |
)
|
@@ -181,7 +180,7 @@ class wcast_onhold_customizer_email {
|
|
181 |
array(
|
182 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
183 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses.', 'woocommerce' ),
|
184 |
-
'section' => '
|
185 |
'type' => 'text',
|
186 |
'input_attrs' => array(
|
187 |
'class' => '',
|
@@ -205,7 +204,7 @@ class wcast_onhold_customizer_email {
|
|
205 |
array(
|
206 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
207 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
208 |
-
'section' => '
|
209 |
'type' => 'text',
|
210 |
'input_attrs' => array(
|
211 |
'class' => '',
|
@@ -229,7 +228,7 @@ class wcast_onhold_customizer_email {
|
|
229 |
array(
|
230 |
'label' => __( 'Email heading', 'woocommerce' ),
|
231 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
232 |
-
'section' => '
|
233 |
'type' => 'text',
|
234 |
'input_attrs' => array(
|
235 |
'class' => '',
|
@@ -253,7 +252,7 @@ class wcast_onhold_customizer_email {
|
|
253 |
array(
|
254 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
255 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
256 |
-
'section' => '
|
257 |
'input_attrs' => array(
|
258 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
259 |
'mediaButtons' => true,
|
@@ -275,29 +274,11 @@ class wcast_onhold_customizer_email {
|
|
275 |
array(
|
276 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
277 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
278 |
-
'section' => '
|
279 |
'active_callback' => array( $this, 'active_callback' ),
|
280 |
)
|
281 |
) );
|
282 |
-
|
283 |
-
// Display Shipment Provider image/thumbnail
|
284 |
-
$wp_customize->add_setting( 'wcast_onhold_email_settings[wcast_onhold_show_tracking_details]',
|
285 |
-
array(
|
286 |
-
'default' => $this->defaults['wcast_onhold_show_tracking_details'],
|
287 |
-
'transport' => 'refresh',
|
288 |
-
'type' => 'option',
|
289 |
-
'sanitize_callback' => ''
|
290 |
-
)
|
291 |
-
);
|
292 |
-
$wp_customize->add_control( 'wcast_onhold_email_settings[wcast_onhold_show_tracking_details]',
|
293 |
-
array(
|
294 |
-
'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
|
295 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
296 |
-
'section' => 'custom_shipment_status_email',
|
297 |
-
'type' => 'checkbox',
|
298 |
-
'active_callback' => array( $this, 'active_callback' ),
|
299 |
-
)
|
300 |
-
);
|
301 |
// Display Shipment Provider image/thumbnail
|
302 |
$wp_customize->add_setting( 'wcast_onhold_email_settings[wcast_onhold_show_order_details]',
|
303 |
array(
|
@@ -309,31 +290,13 @@ class wcast_onhold_customizer_email {
|
|
309 |
);
|
310 |
$wp_customize->add_control( 'wcast_onhold_email_settings[wcast_onhold_show_order_details]',
|
311 |
array(
|
312 |
-
'label' => __( '
|
313 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
314 |
-
'section' => 'custom_shipment_status_email',
|
315 |
-
'type' => 'checkbox',
|
316 |
-
'active_callback' => array( $this, 'active_callback' ),
|
317 |
-
)
|
318 |
-
);
|
319 |
-
// Display Shipment Provider image/thumbnail
|
320 |
-
$wp_customize->add_setting( 'wcast_onhold_email_settings[wcast_onhold_show_billing_address]',
|
321 |
-
array(
|
322 |
-
'default' => $this->defaults['wcast_onhold_show_billing_address'],
|
323 |
-
'transport' => 'refresh',
|
324 |
-
'type' => 'option',
|
325 |
-
'sanitize_callback' => ''
|
326 |
-
)
|
327 |
-
);
|
328 |
-
$wp_customize->add_control( 'wcast_onhold_email_settings[wcast_onhold_show_billing_address]',
|
329 |
-
array(
|
330 |
-
'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
|
331 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
332 |
-
'section' => '
|
333 |
'type' => 'checkbox',
|
334 |
'active_callback' => array( $this, 'active_callback' ),
|
335 |
)
|
336 |
-
);
|
337 |
|
338 |
// Display Shipment Provider image/thumbnail
|
339 |
$wp_customize->add_setting( 'wcast_onhold_email_settings[wcast_onhold_show_shipping_address]',
|
@@ -346,9 +309,9 @@ class wcast_onhold_customizer_email {
|
|
346 |
);
|
347 |
$wp_customize->add_control( 'wcast_onhold_email_settings[wcast_onhold_show_shipping_address]',
|
348 |
array(
|
349 |
-
'label' => __( '
|
350 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
351 |
-
'section' => '
|
352 |
'type' => 'checkbox',
|
353 |
'active_callback' => array( $this, 'active_callback' ),
|
354 |
)
|
@@ -366,7 +329,7 @@ class wcast_onhold_customizer_email {
|
|
366 |
array(
|
367 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
368 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
369 |
-
'section' => '
|
370 |
'type' => 'text',
|
371 |
'input_attrs' => array(
|
372 |
'class' => '',
|
@@ -419,12 +382,8 @@ class wcast_onhold_customizer_email {
|
|
419 |
|
420 |
$email_content = $ast->get_option_value_from_array('wcast_onhold_email_settings','wcast_onhold_email_content',$this->defaults['wcast_onhold_email_content']);
|
421 |
|
422 |
-
$wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_onhold_email_settings','wcast_onhold_show_tracking_details',$this->defaults['wcast_onhold_show_tracking_details']);
|
423 |
-
|
424 |
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_onhold_email_settings','wcast_onhold_show_order_details',$this->defaults['wcast_onhold_show_order_details']);
|
425 |
|
426 |
-
$wcast_show_billing_address = $ast->get_option_value_from_array('wcast_onhold_email_settings','wcast_onhold_show_billing_address',$this->defaults['wcast_onhold_show_billing_address']);
|
427 |
-
|
428 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_onhold_email_settings','wcast_onhold_show_shipping_address',$this->defaults['wcast_onhold_show_shipping_address']);
|
429 |
|
430 |
$sent_to_admin = false;
|
@@ -462,24 +421,24 @@ class wcast_onhold_customizer_email {
|
|
462 |
|
463 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
464 |
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
$message .= ob_get_clean();
|
482 |
}
|
|
|
483 |
|
484 |
if($wcast_show_order_details == 1){
|
485 |
ob_start();
|
@@ -494,20 +453,7 @@ class wcast_onhold_customizer_email {
|
|
494 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
495 |
);
|
496 |
$message .= ob_get_clean();
|
497 |
-
}
|
498 |
-
|
499 |
-
if($wcast_show_billing_address == 1){
|
500 |
-
ob_start();
|
501 |
-
wc_get_template(
|
502 |
-
'emails/wcast-billing-email-addresses.php', array(
|
503 |
-
'order' => $order,
|
504 |
-
'sent_to_admin' => $sent_to_admin,
|
505 |
-
),
|
506 |
-
'woocommerce-advanced-shipment-tracking/',
|
507 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
508 |
-
);
|
509 |
-
$message .= ob_get_clean();
|
510 |
-
}
|
511 |
|
512 |
if($wcast_show_shipping_address == 1){
|
513 |
ob_start();
|
25 |
// Only proceed if this is own request.
|
26 |
if ( ! wcast_onhold_customizer_email::is_own_customizer_request() && ! wcast_onhold_customizer_email::is_own_preview_request() ) {
|
27 |
return;
|
28 |
+
}
|
|
|
29 |
// Register our sections
|
30 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
31 |
|
89 |
* @return bool
|
90 |
*/
|
91 |
public static function is_own_customizer_request() {
|
92 |
+
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'trackship_shipment_status_email';
|
93 |
}
|
94 |
|
95 |
/**
|
101 |
'wcast-customizer' => '1',
|
102 |
'email' => $email,
|
103 |
'shipment_status' => $shipment_status,
|
104 |
+
'autofocus[section]' => 'trackship_shipment_status_email',
|
105 |
'url' => urlencode( add_query_arg( array( 'wcast-onhold-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
106 |
'return' => urlencode( wcast_onhold_customizer_email::get_email_settings_page_url($return_tab) ),
|
107 |
), admin_url( 'customize.php' ) );
|
161 |
array(
|
162 |
'label' => __( 'Enable On Hold email', 'woo-advanced-shipment-tracking' ),
|
163 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
164 |
+
'section' => 'trackship_shipment_status_email',
|
165 |
'type' => 'checkbox',
|
166 |
'active_callback' => array( $this, 'active_callback' ),
|
167 |
)
|
180 |
array(
|
181 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
182 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses.', 'woocommerce' ),
|
183 |
+
'section' => 'trackship_shipment_status_email',
|
184 |
'type' => 'text',
|
185 |
'input_attrs' => array(
|
186 |
'class' => '',
|
204 |
array(
|
205 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
206 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
207 |
+
'section' => 'trackship_shipment_status_email',
|
208 |
'type' => 'text',
|
209 |
'input_attrs' => array(
|
210 |
'class' => '',
|
228 |
array(
|
229 |
'label' => __( 'Email heading', 'woocommerce' ),
|
230 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
231 |
+
'section' => 'trackship_shipment_status_email',
|
232 |
'type' => 'text',
|
233 |
'input_attrs' => array(
|
234 |
'class' => '',
|
252 |
array(
|
253 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
254 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
255 |
+
'section' => 'trackship_shipment_status_email',
|
256 |
'input_attrs' => array(
|
257 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
258 |
'mediaButtons' => true,
|
274 |
array(
|
275 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
276 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
277 |
+
'section' => 'trackship_shipment_status_email',
|
278 |
'active_callback' => array( $this, 'active_callback' ),
|
279 |
)
|
280 |
) );
|
281 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
282 |
// Display Shipment Provider image/thumbnail
|
283 |
$wp_customize->add_setting( 'wcast_onhold_email_settings[wcast_onhold_show_order_details]',
|
284 |
array(
|
290 |
);
|
291 |
$wp_customize->add_control( 'wcast_onhold_email_settings[wcast_onhold_show_order_details]',
|
292 |
array(
|
293 |
+
'label' => __( 'Display the Shipping items', 'woo-advanced-shipment-tracking' ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
295 |
+
'section' => 'trackship_shipment_status_email',
|
296 |
'type' => 'checkbox',
|
297 |
'active_callback' => array( $this, 'active_callback' ),
|
298 |
)
|
299 |
+
);
|
300 |
|
301 |
// Display Shipment Provider image/thumbnail
|
302 |
$wp_customize->add_setting( 'wcast_onhold_email_settings[wcast_onhold_show_shipping_address]',
|
309 |
);
|
310 |
$wp_customize->add_control( 'wcast_onhold_email_settings[wcast_onhold_show_shipping_address]',
|
311 |
array(
|
312 |
+
'label' => __( 'Display the shipping address', 'woo-advanced-shipment-tracking' ),
|
313 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
314 |
+
'section' => 'trackship_shipment_status_email',
|
315 |
'type' => 'checkbox',
|
316 |
'active_callback' => array( $this, 'active_callback' ),
|
317 |
)
|
329 |
array(
|
330 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
331 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
332 |
+
'section' => 'trackship_shipment_status_email',
|
333 |
'type' => 'text',
|
334 |
'input_attrs' => array(
|
335 |
'class' => '',
|
382 |
|
383 |
$email_content = $ast->get_option_value_from_array('wcast_onhold_email_settings','wcast_onhold_email_content',$this->defaults['wcast_onhold_email_content']);
|
384 |
|
|
|
|
|
385 |
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_onhold_email_settings','wcast_onhold_show_order_details',$this->defaults['wcast_onhold_show_order_details']);
|
386 |
|
|
|
|
|
387 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_onhold_email_settings','wcast_onhold_show_shipping_address',$this->defaults['wcast_onhold_show_shipping_address']);
|
388 |
|
389 |
$sent_to_admin = false;
|
421 |
|
422 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
423 |
|
424 |
+
ob_start();
|
425 |
+
$local_template = get_stylesheet_directory().'/woocommerce/emails/tracking-info.php';
|
426 |
+
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
427 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
428 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
429 |
+
'order_id' => $preview_id,
|
430 |
+
'show_shipment_status' => true,
|
431 |
+
'new_status' => 'on_hold',
|
432 |
+
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
433 |
+
} else{
|
434 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
435 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
436 |
+
'order_id' => $preview_id,
|
437 |
+
'show_shipment_status' => true,
|
438 |
+
'new_status' => 'on_hold',
|
439 |
+
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
|
|
440 |
}
|
441 |
+
$message .= ob_get_clean();
|
442 |
|
443 |
if($wcast_show_order_details == 1){
|
444 |
ob_start();
|
453 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
454 |
);
|
455 |
$message .= ob_get_clean();
|
456 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
|
458 |
if($wcast_show_shipping_address == 1){
|
459 |
ob_start();
|
includes/customizer/class-wc-outfordelivery-email-customizer.php
CHANGED
@@ -24,8 +24,7 @@ class wcast_outfordelivery_customizer_email {
|
|
24 |
// Only proceed if this is own request.
|
25 |
if ( ! wcast_outfordelivery_customizer_email::is_own_customizer_request() && ! wcast_outfordelivery_customizer_email::is_own_preview_request() ) {
|
26 |
return;
|
27 |
-
}
|
28 |
-
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
|
29 |
// Register our sections
|
30 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
31 |
|
@@ -89,7 +88,7 @@ class wcast_outfordelivery_customizer_email {
|
|
89 |
* @return bool
|
90 |
*/
|
91 |
public static function is_own_customizer_request() {
|
92 |
-
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === '
|
93 |
}
|
94 |
|
95 |
/**
|
@@ -101,7 +100,7 @@ class wcast_outfordelivery_customizer_email {
|
|
101 |
'wcast-customizer' => '1',
|
102 |
'email' => $email,
|
103 |
'shipment_status' => $shipment_status,
|
104 |
-
'autofocus[section]' => '
|
105 |
'url' => urlencode( add_query_arg( array( 'wcast-outfordelivery-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
106 |
'return' => urlencode( wcast_outfordelivery_customizer_email::get_email_settings_page_url($return_tab) ),
|
107 |
), admin_url( 'customize.php' ) );
|
@@ -161,7 +160,7 @@ class wcast_outfordelivery_customizer_email {
|
|
161 |
array(
|
162 |
'label' => __( 'Enable Out For Delivery email', 'woo-advanced-shipment-tracking' ),
|
163 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
164 |
-
'section' => '
|
165 |
'type' => 'checkbox',
|
166 |
'active_callback' => array( $this, 'active_callback' ),
|
167 |
)
|
@@ -180,7 +179,7 @@ class wcast_outfordelivery_customizer_email {
|
|
180 |
array(
|
181 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
182 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses', 'woocommerce' ),
|
183 |
-
'section' => '
|
184 |
'type' => 'text',
|
185 |
'input_attrs' => array(
|
186 |
'class' => '',
|
@@ -204,7 +203,7 @@ class wcast_outfordelivery_customizer_email {
|
|
204 |
array(
|
205 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
206 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
207 |
-
'section' => '
|
208 |
'type' => 'text',
|
209 |
'input_attrs' => array(
|
210 |
'class' => '',
|
@@ -228,7 +227,7 @@ class wcast_outfordelivery_customizer_email {
|
|
228 |
array(
|
229 |
'label' => __( 'Email heading', 'woocommerce' ),
|
230 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
231 |
-
'section' => '
|
232 |
'type' => 'text',
|
233 |
'input_attrs' => array(
|
234 |
'class' => '',
|
@@ -252,7 +251,7 @@ class wcast_outfordelivery_customizer_email {
|
|
252 |
array(
|
253 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
254 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
255 |
-
'section' => '
|
256 |
'input_attrs' => array(
|
257 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
258 |
'mediaButtons' => true,
|
@@ -274,29 +273,11 @@ class wcast_outfordelivery_customizer_email {
|
|
274 |
array(
|
275 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
276 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
277 |
-
'section' => '
|
278 |
'active_callback' => array( $this, 'active_callback' ),
|
279 |
)
|
280 |
) );
|
281 |
-
|
282 |
-
// Display Shipment Provider image/thumbnail
|
283 |
-
$wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_tracking_details]',
|
284 |
-
array(
|
285 |
-
'default' => $this->defaults['wcast_outfordelivery_show_tracking_details'],
|
286 |
-
'transport' => 'refresh',
|
287 |
-
'type' => 'option',
|
288 |
-
'sanitize_callback' => ''
|
289 |
-
)
|
290 |
-
);
|
291 |
-
$wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_tracking_details]',
|
292 |
-
array(
|
293 |
-
'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
|
294 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
295 |
-
'section' => 'custom_shipment_status_email',
|
296 |
-
'type' => 'checkbox',
|
297 |
-
'active_callback' => array( $this, 'active_callback' ),
|
298 |
-
)
|
299 |
-
);
|
300 |
// Display Shipment Provider image/thumbnail
|
301 |
$wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_order_details]',
|
302 |
array(
|
@@ -308,31 +289,13 @@ class wcast_outfordelivery_customizer_email {
|
|
308 |
);
|
309 |
$wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_order_details]',
|
310 |
array(
|
311 |
-
'label' => __( '
|
312 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
313 |
-
'section' => '
|
314 |
'type' => 'checkbox',
|
315 |
'active_callback' => array( $this, 'active_callback' ),
|
316 |
)
|
317 |
-
);
|
318 |
-
// Display Shipment Provider image/thumbnail
|
319 |
-
$wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_billing_address]',
|
320 |
-
array(
|
321 |
-
'default' => $this->defaults['wcast_outfordelivery_show_billing_address'],
|
322 |
-
'transport' => 'refresh',
|
323 |
-
'type' => 'option',
|
324 |
-
'sanitize_callback' => ''
|
325 |
-
)
|
326 |
-
);
|
327 |
-
$wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_billing_address]',
|
328 |
-
array(
|
329 |
-
'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
|
330 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
331 |
-
'section' => 'custom_shipment_status_email',
|
332 |
-
'type' => 'checkbox',
|
333 |
-
'active_callback' => array( $this, 'active_callback' ),
|
334 |
-
)
|
335 |
-
);
|
336 |
|
337 |
// Display Shipment Provider image/thumbnail
|
338 |
$wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_shipping_address]',
|
@@ -345,9 +308,9 @@ class wcast_outfordelivery_customizer_email {
|
|
345 |
);
|
346 |
$wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_shipping_address]',
|
347 |
array(
|
348 |
-
'label' => __( '
|
349 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
350 |
-
'section' => '
|
351 |
'type' => 'checkbox',
|
352 |
'active_callback' => array( $this, 'active_callback' ),
|
353 |
)
|
@@ -365,7 +328,7 @@ class wcast_outfordelivery_customizer_email {
|
|
365 |
array(
|
366 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
367 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
368 |
-
'section' => '
|
369 |
'type' => 'text',
|
370 |
'input_attrs' => array(
|
371 |
'class' => '',
|
@@ -417,13 +380,9 @@ class wcast_outfordelivery_customizer_email {
|
|
417 |
$email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
|
418 |
$email_heading = str_replace( '{order_number}', $order_id, $email_heading );
|
419 |
|
420 |
-
$email_content = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_email_content',$this->defaults['wcast_outfordelivery_email_content']);
|
421 |
|
422 |
-
$
|
423 |
-
|
424 |
-
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_show_order_details',$this->defaults['wcast_outfordelivery_show_order_details']);
|
425 |
-
|
426 |
-
$wcast_show_billing_address = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_show_billing_address',$this->defaults['wcast_outfordelivery_show_billing_address']);
|
427 |
|
428 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_show_shipping_address',$this->defaults['wcast_outfordelivery_show_shipping_address']);
|
429 |
|
@@ -462,24 +421,24 @@ class wcast_outfordelivery_customizer_email {
|
|
462 |
|
463 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
464 |
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
$message .= ob_get_clean();
|
482 |
}
|
|
|
483 |
|
484 |
if($wcast_show_order_details == 1){
|
485 |
|
@@ -495,20 +454,7 @@ class wcast_outfordelivery_customizer_email {
|
|
495 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
496 |
);
|
497 |
$message .= ob_get_clean();
|
498 |
-
}
|
499 |
-
|
500 |
-
if($wcast_show_billing_address == 1){
|
501 |
-
ob_start();
|
502 |
-
wc_get_template(
|
503 |
-
'emails/wcast-billing-email-addresses.php', array(
|
504 |
-
'order' => $order,
|
505 |
-
'sent_to_admin' => $sent_to_admin,
|
506 |
-
),
|
507 |
-
'woocommerce-advanced-shipment-tracking/',
|
508 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
509 |
-
);
|
510 |
-
$message .= ob_get_clean();
|
511 |
-
}
|
512 |
|
513 |
if($wcast_show_shipping_address == 1){
|
514 |
ob_start();
|
24 |
// Only proceed if this is own request.
|
25 |
if ( ! wcast_outfordelivery_customizer_email::is_own_customizer_request() && ! wcast_outfordelivery_customizer_email::is_own_preview_request() ) {
|
26 |
return;
|
27 |
+
}
|
|
|
28 |
// Register our sections
|
29 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
30 |
|
88 |
* @return bool
|
89 |
*/
|
90 |
public static function is_own_customizer_request() {
|
91 |
+
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'trackship_shipment_status_email';
|
92 |
}
|
93 |
|
94 |
/**
|
100 |
'wcast-customizer' => '1',
|
101 |
'email' => $email,
|
102 |
'shipment_status' => $shipment_status,
|
103 |
+
'autofocus[section]' => 'trackship_shipment_status_email',
|
104 |
'url' => urlencode( add_query_arg( array( 'wcast-outfordelivery-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
105 |
'return' => urlencode( wcast_outfordelivery_customizer_email::get_email_settings_page_url($return_tab) ),
|
106 |
), admin_url( 'customize.php' ) );
|
160 |
array(
|
161 |
'label' => __( 'Enable Out For Delivery email', 'woo-advanced-shipment-tracking' ),
|
162 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
163 |
+
'section' => 'trackship_shipment_status_email',
|
164 |
'type' => 'checkbox',
|
165 |
'active_callback' => array( $this, 'active_callback' ),
|
166 |
)
|
179 |
array(
|
180 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
181 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses', 'woocommerce' ),
|
182 |
+
'section' => 'trackship_shipment_status_email',
|
183 |
'type' => 'text',
|
184 |
'input_attrs' => array(
|
185 |
'class' => '',
|
203 |
array(
|
204 |
'label' => __( 'Email Subject', 'woo-advanced-shipment-tracking' ),
|
205 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
206 |
+
'section' => 'trackship_shipment_status_email',
|
207 |
'type' => 'text',
|
208 |
'input_attrs' => array(
|
209 |
'class' => '',
|
227 |
array(
|
228 |
'label' => __( 'Email heading', 'woocommerce' ),
|
229 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
230 |
+
'section' => 'trackship_shipment_status_email',
|
231 |
'type' => 'text',
|
232 |
'input_attrs' => array(
|
233 |
'class' => '',
|
251 |
array(
|
252 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
253 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
254 |
+
'section' => 'trackship_shipment_status_email',
|
255 |
'input_attrs' => array(
|
256 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
257 |
'mediaButtons' => true,
|
273 |
array(
|
274 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
275 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
276 |
+
'section' => 'trackship_shipment_status_email',
|
277 |
'active_callback' => array( $this, 'active_callback' ),
|
278 |
)
|
279 |
) );
|
280 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
// Display Shipment Provider image/thumbnail
|
282 |
$wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_order_details]',
|
283 |
array(
|
289 |
);
|
290 |
$wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_order_details]',
|
291 |
array(
|
292 |
+
'label' => __( 'Display the Shipping items', 'woo-advanced-shipment-tracking' ),
|
293 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
294 |
+
'section' => 'trackship_shipment_status_email',
|
295 |
'type' => 'checkbox',
|
296 |
'active_callback' => array( $this, 'active_callback' ),
|
297 |
)
|
298 |
+
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
|
300 |
// Display Shipment Provider image/thumbnail
|
301 |
$wp_customize->add_setting( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_shipping_address]',
|
308 |
);
|
309 |
$wp_customize->add_control( 'wcast_outfordelivery_email_settings[wcast_outfordelivery_show_shipping_address]',
|
310 |
array(
|
311 |
+
'label' => __( 'Display the shipping address', 'woo-advanced-shipment-tracking' ),
|
312 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
313 |
+
'section' => 'trackship_shipment_status_email',
|
314 |
'type' => 'checkbox',
|
315 |
'active_callback' => array( $this, 'active_callback' ),
|
316 |
)
|
328 |
array(
|
329 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
330 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
331 |
+
'section' => 'trackship_shipment_status_email',
|
332 |
'type' => 'text',
|
333 |
'input_attrs' => array(
|
334 |
'class' => '',
|
380 |
$email_heading = str_replace( '{site_title}', $this->get_blogname(), $email_heading );
|
381 |
$email_heading = str_replace( '{order_number}', $order_id, $email_heading );
|
382 |
|
383 |
+
$email_content = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_email_content',$this->defaults['wcast_outfordelivery_email_content']);
|
384 |
|
385 |
+
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_show_order_details',$this->defaults['wcast_outfordelivery_show_order_details']);
|
|
|
|
|
|
|
|
|
386 |
|
387 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_outfordelivery_email_settings','wcast_outfordelivery_show_shipping_address',$this->defaults['wcast_outfordelivery_show_shipping_address']);
|
388 |
|
421 |
|
422 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
423 |
|
424 |
+
ob_start();
|
425 |
+
$local_template = get_stylesheet_directory().'/woocommerce/emails/tracking-info.php';
|
426 |
+
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
427 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
428 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
429 |
+
'order_id' => $preview_id,
|
430 |
+
'show_shipment_status' => true,
|
431 |
+
'new_status' => 'out_for_delivery',
|
432 |
+
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
433 |
+
} else{
|
434 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
435 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
436 |
+
'order_id' => $preview_id,
|
437 |
+
'show_shipment_status' => true,
|
438 |
+
'new_status' => 'out_for_delivery',
|
439 |
+
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
|
|
440 |
}
|
441 |
+
$message .= ob_get_clean();
|
442 |
|
443 |
if($wcast_show_order_details == 1){
|
444 |
|
454 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
455 |
);
|
456 |
$message .= ob_get_clean();
|
457 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
|
459 |
if($wcast_show_shipping_address == 1){
|
460 |
ob_start();
|
includes/customizer/class-wc-partial-shipped-email-customizer.php
CHANGED
@@ -20,7 +20,7 @@ class wcast_partial_shipped_customizer_email {
|
|
20 |
if ( ! wcast_partial_shipped_customizer_email::is_own_customizer_request() && ! wcast_partial_shipped_customizer_email::is_own_preview_request() ) {
|
21 |
return;
|
22 |
}
|
23 |
-
|
24 |
// Register our sections
|
25 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
26 |
|
@@ -147,6 +147,53 @@ class wcast_partial_shipped_customizer_email {
|
|
147 |
'section' => 'custom_order_status_email'
|
148 |
)
|
149 |
) );*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
// Display Shipment Provider image/thumbnail
|
151 |
$wp_customize->add_setting( 'customizer_partial_shipped_order_settings_enabled',
|
152 |
array(
|
20 |
if ( ! wcast_partial_shipped_customizer_email::is_own_customizer_request() && ! wcast_partial_shipped_customizer_email::is_own_preview_request() ) {
|
21 |
return;
|
22 |
}
|
23 |
+
|
24 |
// Register our sections
|
25 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
26 |
|
147 |
'section' => 'custom_order_status_email'
|
148 |
)
|
149 |
) );*/
|
150 |
+
|
151 |
+
// Preview Order
|
152 |
+
$wp_customize->add_setting( 'wcast_email_preview_order_id',
|
153 |
+
array(
|
154 |
+
'default' => 'mockup',
|
155 |
+
'transport' => 'refresh',
|
156 |
+
'sanitize_callback' => ''
|
157 |
+
)
|
158 |
+
);
|
159 |
+
$wp_customize->add_control( new Skyrocket_Dropdown_Select_Custom_Control( $wp_customize, 'wcast_email_preview_order_id',
|
160 |
+
array(
|
161 |
+
'label' => __( 'Preview order', 'woo-advanced-shipment-tracking' ),
|
162 |
+
'description' => '',
|
163 |
+
'section' => 'custom_order_status_email',
|
164 |
+
'input_attrs' => array(
|
165 |
+
'placeholder' => __( 'Mockup Order', 'woo-advanced-shipment-tracking' ),
|
166 |
+
'class' => 'preview_order_select',
|
167 |
+
),
|
168 |
+
'choices' => wcast_customizer()->get_order_ids(),
|
169 |
+
)
|
170 |
+
) );
|
171 |
+
|
172 |
+
// Preview Order
|
173 |
+
$wp_customize->add_setting( 'wcast_order_status_email_type',
|
174 |
+
array(
|
175 |
+
'default' => 'mockup',
|
176 |
+
'transport' => 'postMessage',
|
177 |
+
'sanitize_callback' => '',
|
178 |
+
'type' => 'option',
|
179 |
+
)
|
180 |
+
);
|
181 |
+
$wp_customize->add_control( new Skyrocket_Dropdown_Select_Custom_Control( $wp_customize, 'wcast_order_status_email_type',
|
182 |
+
array(
|
183 |
+
'label' => __( 'Email Type', 'woo-advanced-shipment-tracking' ),
|
184 |
+
'description' => '',
|
185 |
+
'section' => 'custom_order_status_email',
|
186 |
+
'input_attrs' => array(
|
187 |
+
'placeholder' => __( 'Select email type', 'woo-advanced-shipment-tracking' ),
|
188 |
+
'class' => 'preview_email_type',
|
189 |
+
),
|
190 |
+
'choices' => array(
|
191 |
+
'partially_shipped' => __( 'Partially Shipped', 'woo-advanced-shipment-tracking' ),
|
192 |
+
'updated_tracking' => __( 'Updated Tracking', 'woo-advanced-shipment-tracking' ),
|
193 |
+
),
|
194 |
+
)
|
195 |
+
) );
|
196 |
+
|
197 |
// Display Shipment Provider image/thumbnail
|
198 |
$wp_customize->add_setting( 'customizer_partial_shipped_order_settings_enabled',
|
199 |
array(
|
includes/customizer/class-wc-returntosender-email-customizer.php
CHANGED
@@ -22,8 +22,7 @@ class wcast_returntosender_customizer_email {
|
|
22 |
// Only proceed if this is own request.
|
23 |
if ( ! wcast_returntosender_customizer_email::is_own_customizer_request() && ! wcast_returntosender_customizer_email::is_own_preview_request() ) {
|
24 |
return;
|
25 |
-
}
|
26 |
-
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
|
27 |
// Register our sections
|
28 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
29 |
|
@@ -87,7 +86,7 @@ class wcast_returntosender_customizer_email {
|
|
87 |
* @return bool
|
88 |
*/
|
89 |
public static function is_own_customizer_request() {
|
90 |
-
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === '
|
91 |
}
|
92 |
|
93 |
/**
|
@@ -99,7 +98,7 @@ class wcast_returntosender_customizer_email {
|
|
99 |
'wcast-customizer' => '1',
|
100 |
'email' => $email,
|
101 |
'shipment_status' => $shipment_status,
|
102 |
-
'autofocus[section]' => '
|
103 |
'url' => urlencode( add_query_arg( array( 'wcast-returntosender-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
104 |
'return' => urlencode( wcast_returntosender_customizer_email::get_email_settings_page_url($return_tab) ),
|
105 |
), admin_url( 'customize.php' ) );
|
@@ -159,7 +158,7 @@ class wcast_returntosender_customizer_email {
|
|
159 |
array(
|
160 |
'label' => __( 'Enable Return To Sender email', 'woo-advanced-shipment-tracking' ),
|
161 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
162 |
-
'section' => '
|
163 |
'type' => 'checkbox',
|
164 |
'active_callback' => array( $this, 'active_callback' ),
|
165 |
)
|
@@ -178,7 +177,7 @@ class wcast_returntosender_customizer_email {
|
|
178 |
array(
|
179 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
180 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses.', 'woocommerce' ),
|
181 |
-
'section' => '
|
182 |
'type' => 'text',
|
183 |
'input_attrs' => array(
|
184 |
'class' => '',
|
@@ -202,7 +201,7 @@ class wcast_returntosender_customizer_email {
|
|
202 |
array(
|
203 |
'label' => __( 'Email Subject', 'woocommerce' ),
|
204 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
205 |
-
'section' => '
|
206 |
'type' => 'text',
|
207 |
'input_attrs' => array(
|
208 |
'class' => '',
|
@@ -226,7 +225,7 @@ class wcast_returntosender_customizer_email {
|
|
226 |
array(
|
227 |
'label' => __( 'Email heading', 'woocommerce' ),
|
228 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
229 |
-
'section' => '
|
230 |
'type' => 'text',
|
231 |
'input_attrs' => array(
|
232 |
'class' => '',
|
@@ -250,7 +249,7 @@ class wcast_returntosender_customizer_email {
|
|
250 |
array(
|
251 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
252 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
253 |
-
'section' => '
|
254 |
'input_attrs' => array(
|
255 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
256 |
'mediaButtons' => true,
|
@@ -271,29 +270,11 @@ class wcast_returntosender_customizer_email {
|
|
271 |
array(
|
272 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
273 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
274 |
-
'section' => '
|
275 |
'active_callback' => array( $this, 'active_callback' ),
|
276 |
)
|
277 |
) );
|
278 |
-
|
279 |
-
// Display Shipment Provider image/thumbnail
|
280 |
-
$wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_show_tracking_details]',
|
281 |
-
array(
|
282 |
-
'default' => $this->defaults['wcast_returntosender_show_tracking_details'],
|
283 |
-
'transport' => 'refresh',
|
284 |
-
'type' => 'option',
|
285 |
-
'sanitize_callback' => ''
|
286 |
-
)
|
287 |
-
);
|
288 |
-
$wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_show_tracking_details]',
|
289 |
-
array(
|
290 |
-
'label' => __( 'Show tracking details', 'woo-advanced-shipment-tracking' ),
|
291 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
292 |
-
'section' => 'custom_shipment_status_email',
|
293 |
-
'type' => 'checkbox',
|
294 |
-
'active_callback' => array( $this, 'active_callback' ),
|
295 |
-
)
|
296 |
-
);
|
297 |
// Display Shipment Provider image/thumbnail
|
298 |
$wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_show_order_details]',
|
299 |
array(
|
@@ -305,31 +286,13 @@ class wcast_returntosender_customizer_email {
|
|
305 |
);
|
306 |
$wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_show_order_details]',
|
307 |
array(
|
308 |
-
'label' => __( '
|
309 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
310 |
-
'section' => 'custom_shipment_status_email',
|
311 |
-
'type' => 'checkbox',
|
312 |
-
'active_callback' => array( $this, 'active_callback' ),
|
313 |
-
)
|
314 |
-
);
|
315 |
-
// Display Shipment Provider image/thumbnail
|
316 |
-
$wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_show_billing_address]',
|
317 |
-
array(
|
318 |
-
'default' => $this->defaults['wcast_returntosender_show_billing_address'],
|
319 |
-
'transport' => 'refresh',
|
320 |
-
'type' => 'option',
|
321 |
-
'sanitize_callback' => ''
|
322 |
-
)
|
323 |
-
);
|
324 |
-
$wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_show_billing_address]',
|
325 |
-
array(
|
326 |
-
'label' => __( 'Show billing address', 'woo-advanced-shipment-tracking' ),
|
327 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
328 |
-
'section' => '
|
329 |
'type' => 'checkbox',
|
330 |
'active_callback' => array( $this, 'active_callback' ),
|
331 |
)
|
332 |
-
);
|
333 |
|
334 |
// Display Shipment Provider image/thumbnail
|
335 |
$wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_show_shipping_address]',
|
@@ -342,9 +305,9 @@ class wcast_returntosender_customizer_email {
|
|
342 |
);
|
343 |
$wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_show_shipping_address]',
|
344 |
array(
|
345 |
-
'label' => __( '
|
346 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
347 |
-
'section' => '
|
348 |
'type' => 'checkbox',
|
349 |
'active_callback' => array( $this, 'active_callback' ),
|
350 |
)
|
@@ -362,7 +325,7 @@ class wcast_returntosender_customizer_email {
|
|
362 |
array(
|
363 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
364 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
365 |
-
'section' => '
|
366 |
'type' => 'text',
|
367 |
'input_attrs' => array(
|
368 |
'class' => '',
|
@@ -458,24 +421,24 @@ class wcast_returntosender_customizer_email {
|
|
458 |
|
459 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
460 |
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
$message .= ob_get_clean();
|
478 |
}
|
|
|
479 |
|
480 |
if($wcast_show_order_details == 1){
|
481 |
|
22 |
// Only proceed if this is own request.
|
23 |
if ( ! wcast_returntosender_customizer_email::is_own_customizer_request() && ! wcast_returntosender_customizer_email::is_own_preview_request() ) {
|
24 |
return;
|
25 |
+
}
|
|
|
26 |
// Register our sections
|
27 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
28 |
|
86 |
* @return bool
|
87 |
*/
|
88 |
public static function is_own_customizer_request() {
|
89 |
+
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'trackship_shipment_status_email';
|
90 |
}
|
91 |
|
92 |
/**
|
98 |
'wcast-customizer' => '1',
|
99 |
'email' => $email,
|
100 |
'shipment_status' => $shipment_status,
|
101 |
+
'autofocus[section]' => 'trackship_shipment_status_email',
|
102 |
'url' => urlencode( add_query_arg( array( 'wcast-returntosender-email-customizer-preview' => '1' ), home_url( '/' ) ) ),
|
103 |
'return' => urlencode( wcast_returntosender_customizer_email::get_email_settings_page_url($return_tab) ),
|
104 |
), admin_url( 'customize.php' ) );
|
158 |
array(
|
159 |
'label' => __( 'Enable Return To Sender email', 'woo-advanced-shipment-tracking' ),
|
160 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
161 |
+
'section' => 'trackship_shipment_status_email',
|
162 |
'type' => 'checkbox',
|
163 |
'active_callback' => array( $this, 'active_callback' ),
|
164 |
)
|
177 |
array(
|
178 |
'label' => __( 'Recipient(s)', 'woocommerce' ),
|
179 |
'description' => esc_html__( 'Use the {customer_email} placeholder, you can add comma separated email addresses.', 'woocommerce' ),
|
180 |
+
'section' => 'trackship_shipment_status_email',
|
181 |
'type' => 'text',
|
182 |
'input_attrs' => array(
|
183 |
'class' => '',
|
201 |
array(
|
202 |
'label' => __( 'Email Subject', 'woocommerce' ),
|
203 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
204 |
+
'section' => 'trackship_shipment_status_email',
|
205 |
'type' => 'text',
|
206 |
'input_attrs' => array(
|
207 |
'class' => '',
|
225 |
array(
|
226 |
'label' => __( 'Email heading', 'woocommerce' ),
|
227 |
'description' => esc_html__( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_number}',
|
228 |
+
'section' => 'trackship_shipment_status_email',
|
229 |
'type' => 'text',
|
230 |
'input_attrs' => array(
|
231 |
'class' => '',
|
249 |
array(
|
250 |
'label' => __( 'Email content', 'woo-advanced-shipment-tracking' ),
|
251 |
'description' => __( '', 'woo-advanced-shipment-tracking' ),
|
252 |
+
'section' => 'trackship_shipment_status_email',
|
253 |
'input_attrs' => array(
|
254 |
'toolbar1' => 'bold italic bullist numlist alignleft aligncenter alignright link',
|
255 |
'mediaButtons' => true,
|
270 |
array(
|
271 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
272 |
'description' => '<code>{site_title}<br>{customer_email}<br>{customer_first_name}<br>{customer_last_name}<br>{customer_company_name}<br>{customer_username}<br>{order_number}<br>{est_delivery_date}</code>',
|
273 |
+
'section' => 'trackship_shipment_status_email',
|
274 |
'active_callback' => array( $this, 'active_callback' ),
|
275 |
)
|
276 |
) );
|
277 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
// Display Shipment Provider image/thumbnail
|
279 |
$wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_show_order_details]',
|
280 |
array(
|
286 |
);
|
287 |
$wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_show_order_details]',
|
288 |
array(
|
289 |
+
'label' => __( 'Display the Shipping items', 'woo-advanced-shipment-tracking' ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
290 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
291 |
+
'section' => 'trackship_shipment_status_email',
|
292 |
'type' => 'checkbox',
|
293 |
'active_callback' => array( $this, 'active_callback' ),
|
294 |
)
|
295 |
+
);
|
296 |
|
297 |
// Display Shipment Provider image/thumbnail
|
298 |
$wp_customize->add_setting( 'wcast_returntosender_email_settings[wcast_returntosender_show_shipping_address]',
|
305 |
);
|
306 |
$wp_customize->add_control( 'wcast_returntosender_email_settings[wcast_returntosender_show_shipping_address]',
|
307 |
array(
|
308 |
+
'label' => __( 'Display the shipping address', 'woo-advanced-shipment-tracking' ),
|
309 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
310 |
+
'section' => 'trackship_shipment_status_email',
|
311 |
'type' => 'checkbox',
|
312 |
'active_callback' => array( $this, 'active_callback' ),
|
313 |
)
|
325 |
array(
|
326 |
'label' => __( 'Google Analytics link tracking', 'woo-advanced-shipment-tracking' ),
|
327 |
'description' => esc_html__( 'This will be appended to URL in the email content', 'woo-advanced-shipment-tracking' ),
|
328 |
+
'section' => 'trackship_shipment_status_email',
|
329 |
'type' => 'text',
|
330 |
'input_attrs' => array(
|
331 |
'class' => '',
|
421 |
|
422 |
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
423 |
|
424 |
+
ob_start();
|
425 |
+
$local_template = get_stylesheet_directory().'/woocommerce/emails/tracking-info.php';
|
426 |
+
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
427 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
428 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
429 |
+
'order_id' => $preview_id,
|
430 |
+
'show_shipment_status' => true,
|
431 |
+
'new_status' => 'return_to_sender',
|
432 |
+
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
433 |
+
} else{
|
434 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
435 |
+
'tracking_items' => $wast->get_tracking_items( $preview_id, true ),
|
436 |
+
'order_id' => $preview_id,
|
437 |
+
'show_shipment_status' => true,
|
438 |
+
'new_status' => 'return_to_sender',
|
439 |
+
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
|
|
440 |
}
|
441 |
+
$message .= ob_get_clean();
|
442 |
|
443 |
if($wcast_show_order_details == 1){
|
444 |
|
includes/customizer/class-wc-tracking-info-customizer.php
CHANGED
@@ -21,10 +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 |
-
|
26 |
-
// Register our Panels
|
27 |
-
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
|
28 |
|
29 |
// Register our sections
|
30 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
@@ -160,7 +157,7 @@ class wcast_initialise_customizer_settings {
|
|
160 |
'simple_layout_content' => __( 'Shipped on {ship_date} via {shipping_provider} - {tracking_number_link}', 'woo-advanced-shipment-tracking' ),
|
161 |
);
|
162 |
|
163 |
-
return apply_filters( '
|
164 |
}
|
165 |
|
166 |
/**
|
@@ -223,7 +220,7 @@ class wcast_initialise_customizer_settings {
|
|
223 |
$wp_customize->add_setting( 'tracking_info_settings[hide_trackig_header]',
|
224 |
array(
|
225 |
'default' => '',
|
226 |
-
'transport' => '
|
227 |
'sanitize_callback' => '',
|
228 |
'type' => 'option',
|
229 |
)
|
@@ -257,6 +254,7 @@ class wcast_initialise_customizer_settings {
|
|
257 |
'style' => '',
|
258 |
'placeholder' => __( 'Tracking Information', 'woo-advanced-shipment-tracking' ),
|
259 |
),
|
|
|
260 |
)
|
261 |
);
|
262 |
|
@@ -283,6 +281,13 @@ class wcast_initialise_customizer_settings {
|
|
283 |
);
|
284 |
|
285 |
// Tracking display layout
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
286 |
$wp_customize->add_setting( 'tracking_info_settings[select_tracking_template]',
|
287 |
array(
|
288 |
'default' => $this->defaults['select_tracking_template'],
|
@@ -299,11 +304,7 @@ class wcast_initialise_customizer_settings {
|
|
299 |
'placeholder' => __( 'Tracking display layout', 'woo-advanced-shipment-tracking' ),
|
300 |
'class' => 'tracking_template_select',
|
301 |
),
|
302 |
-
'choices' =>
|
303 |
-
'' => __( 'Select Template', 'woo-advanced-shipment-tracking' ),
|
304 |
-
'default_table' => __( 'Table Layout', 'woo-advanced-shipment-tracking' ),
|
305 |
-
'simple_list' => 'Simple Layout',
|
306 |
-
),
|
307 |
)
|
308 |
) );
|
309 |
|
@@ -319,7 +320,8 @@ class wcast_initialise_customizer_settings {
|
|
319 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[simple_content_header]',
|
320 |
array(
|
321 |
'label' => __( 'Simple Layout Design', 'woo-advanced-shipment-tracking' ),
|
322 |
-
'section' => 'ast_tracking_general_section'
|
|
|
323 |
)
|
324 |
) );
|
325 |
|
@@ -342,6 +344,7 @@ class wcast_initialise_customizer_settings {
|
|
342 |
'style' => '',
|
343 |
'placeholder' =>'',
|
344 |
),
|
|
|
345 |
)
|
346 |
);
|
347 |
|
@@ -356,7 +359,8 @@ class wcast_initialise_customizer_settings {
|
|
356 |
array(
|
357 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
358 |
'description' => '<code>{ship_date}<br>{shipping_provider}<br>{tracking_number_link}</code>',
|
359 |
-
'section' => 'ast_tracking_general_section',
|
|
|
360 |
)
|
361 |
) );
|
362 |
|
@@ -374,7 +378,8 @@ class wcast_initialise_customizer_settings {
|
|
374 |
'label' => __( 'Content font size', 'woo-advanced-shipment-tracking' ),
|
375 |
'section' => 'ast_tracking_general_section',
|
376 |
'type' => 'select',
|
377 |
-
'choices' => $font_size_array
|
|
|
378 |
)
|
379 |
);
|
380 |
|
@@ -391,7 +396,8 @@ class wcast_initialise_customizer_settings {
|
|
391 |
array(
|
392 |
'label' => __( 'Content font color', 'woo-advanced-shipment-tracking' ),
|
393 |
'section' => 'ast_tracking_general_section',
|
394 |
-
'type' => 'color'
|
|
|
395 |
)
|
396 |
);
|
397 |
|
@@ -399,7 +405,7 @@ class wcast_initialise_customizer_settings {
|
|
399 |
$wp_customize->add_setting( 'tracking_info_settings[show_provider_border]',
|
400 |
array(
|
401 |
'default' => $this->defaults['show_provider_border'],
|
402 |
-
'transport' => '
|
403 |
'sanitize_callback' => '',
|
404 |
'type' => 'option',
|
405 |
)
|
@@ -409,7 +415,8 @@ class wcast_initialise_customizer_settings {
|
|
409 |
'label' => __( 'Show bottom border', 'woo-advanced-shipment-tracking' ),
|
410 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
411 |
'section' => 'ast_tracking_general_section',
|
412 |
-
'type' => 'checkbox'
|
|
|
413 |
)
|
414 |
);
|
415 |
|
@@ -426,7 +433,8 @@ class wcast_initialise_customizer_settings {
|
|
426 |
array(
|
427 |
'label' => __( 'Bottom border color', 'woo-advanced-shipment-tracking' ),
|
428 |
'section' => 'ast_tracking_general_section',
|
429 |
-
'type' => 'color'
|
|
|
430 |
)
|
431 |
);
|
432 |
|
@@ -444,7 +452,8 @@ class wcast_initialise_customizer_settings {
|
|
444 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[table_content_header]',
|
445 |
array(
|
446 |
'label' => __( 'Table Options', 'woo-advanced-shipment-tracking' ),
|
447 |
-
'section' => 'ast_tracking_general_section'
|
|
|
448 |
)
|
449 |
) );
|
450 |
|
@@ -462,7 +471,8 @@ class wcast_initialise_customizer_settings {
|
|
462 |
'label' => __( 'Display shipping provider name', 'woo-advanced-shipment-tracking' ),
|
463 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
464 |
'section' => 'ast_tracking_general_section',
|
465 |
-
'type' => 'checkbox'
|
|
|
466 |
)
|
467 |
);
|
468 |
|
@@ -480,7 +490,8 @@ class wcast_initialise_customizer_settings {
|
|
480 |
'label' => __( 'Display shipping provider image', 'woo-advanced-shipment-tracking' ),
|
481 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
482 |
'section' => 'ast_tracking_general_section',
|
483 |
-
'type' => 'checkbox'
|
|
|
484 |
)
|
485 |
);
|
486 |
|
@@ -498,7 +509,8 @@ class wcast_initialise_customizer_settings {
|
|
498 |
'label' => __( 'Hide the shipped date', 'woo-advanced-shipment-tracking' ),
|
499 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
500 |
'section' => 'ast_tracking_general_section',
|
501 |
-
'type' => 'checkbox'
|
|
|
502 |
)
|
503 |
);
|
504 |
|
@@ -516,7 +528,8 @@ class wcast_initialise_customizer_settings {
|
|
516 |
'label' => __( 'Use tracking number as a link', 'woo-advanced-shipment-tracking' ),
|
517 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
518 |
'section' => 'ast_tracking_general_section',
|
519 |
-
'type' => 'checkbox'
|
|
|
520 |
)
|
521 |
);
|
522 |
|
@@ -532,7 +545,8 @@ class wcast_initialise_customizer_settings {
|
|
532 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[table_design_options]',
|
533 |
array(
|
534 |
'label' => __( 'Table Design Options', 'woo-advanced-shipment-tracking' ),
|
535 |
-
'section' => 'ast_tracking_general_section'
|
|
|
536 |
)
|
537 |
) );
|
538 |
|
@@ -549,7 +563,8 @@ class wcast_initialise_customizer_settings {
|
|
549 |
array(
|
550 |
'label' => __( 'Border color', 'woo-advanced-shipment-tracking' ),
|
551 |
'section' => 'ast_tracking_general_section',
|
552 |
-
'type' => 'color'
|
|
|
553 |
)
|
554 |
);
|
555 |
|
@@ -574,7 +589,8 @@ class wcast_initialise_customizer_settings {
|
|
574 |
'3' => '3 px',
|
575 |
'4' => '4 px',
|
576 |
'5' => '5 px',
|
577 |
-
)
|
|
|
578 |
)
|
579 |
);
|
580 |
|
@@ -597,7 +613,8 @@ class wcast_initialise_customizer_settings {
|
|
597 |
'left' => __( 'Left', '' ),
|
598 |
'right' => __( 'Right', '' ),
|
599 |
'center' => __( 'Center', '' )
|
600 |
-
)
|
|
|
601 |
)
|
602 |
);
|
603 |
|
@@ -613,7 +630,8 @@ class wcast_initialise_customizer_settings {
|
|
613 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[table_header_block]',
|
614 |
array(
|
615 |
'label' => __( 'Table Header', 'woo-advanced-shipment-tracking' ),
|
616 |
-
'section' => 'ast_tracking_general_section'
|
|
|
617 |
)
|
618 |
) );
|
619 |
|
@@ -621,7 +639,7 @@ class wcast_initialise_customizer_settings {
|
|
621 |
$wp_customize->add_setting( 'tracking_info_settings[hide_table_header]',
|
622 |
array(
|
623 |
'default' => '',
|
624 |
-
'transport' => '
|
625 |
'sanitize_callback' => '',
|
626 |
'type' => 'option',
|
627 |
)
|
@@ -631,7 +649,8 @@ class wcast_initialise_customizer_settings {
|
|
631 |
'label' => __( 'Hide Table Headers', 'woo-advanced-shipment-tracking' ),
|
632 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
633 |
'section' => 'ast_tracking_general_section',
|
634 |
-
'type' => 'checkbox'
|
|
|
635 |
)
|
636 |
);
|
637 |
|
@@ -655,6 +674,7 @@ class wcast_initialise_customizer_settings {
|
|
655 |
'style' => '',
|
656 |
'placeholder' => __( 'Provider', 'woo-advanced-shipment-tracking' ),
|
657 |
),
|
|
|
658 |
)
|
659 |
);
|
660 |
|
@@ -678,6 +698,7 @@ class wcast_initialise_customizer_settings {
|
|
678 |
'style' => '',
|
679 |
'placeholder' => __( 'Tracking Number', 'woo-advanced-shipment-tracking' ),
|
680 |
),
|
|
|
681 |
)
|
682 |
);
|
683 |
// Shipped Date Header Text
|
@@ -700,6 +721,7 @@ class wcast_initialise_customizer_settings {
|
|
700 |
'style' => '',
|
701 |
'placeholder' => __( 'Shipped Date', 'woo-advanced-shipment-tracking' ),
|
702 |
),
|
|
|
703 |
)
|
704 |
);
|
705 |
|
@@ -717,7 +739,8 @@ class wcast_initialise_customizer_settings {
|
|
717 |
'label' => __( 'Headers font size', 'woo-advanced-shipment-tracking' ),
|
718 |
'section' => 'ast_tracking_general_section',
|
719 |
'type' => 'select',
|
720 |
-
'choices' => $font_size_array
|
|
|
721 |
)
|
722 |
);
|
723 |
|
@@ -734,7 +757,8 @@ class wcast_initialise_customizer_settings {
|
|
734 |
array(
|
735 |
'label' => __( 'Headers background color', 'woo-advanced-shipment-tracking' ),
|
736 |
'section' => 'ast_tracking_general_section',
|
737 |
-
'type' => 'color'
|
|
|
738 |
)
|
739 |
);
|
740 |
|
@@ -751,7 +775,8 @@ class wcast_initialise_customizer_settings {
|
|
751 |
array(
|
752 |
'label' => __( 'Headers font color', 'woo-advanced-shipment-tracking' ),
|
753 |
'section' => 'ast_tracking_general_section',
|
754 |
-
'type' => 'color'
|
|
|
755 |
)
|
756 |
);
|
757 |
|
@@ -769,11 +794,12 @@ class wcast_initialise_customizer_settings {
|
|
769 |
'label' => __( 'Headers font weight', 'woo-advanced-shipment-tracking' ),
|
770 |
'section' => 'ast_tracking_general_section',
|
771 |
'input_attrs' => array(
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
|
|
777 |
)
|
778 |
));
|
779 |
|
@@ -789,7 +815,8 @@ class wcast_initialise_customizer_settings {
|
|
789 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'table_header',
|
790 |
array(
|
791 |
'label' => __( 'Table Content', 'woo-advanced-shipment-tracking' ),
|
792 |
-
'section' => 'ast_tracking_general_section'
|
|
|
793 |
)
|
794 |
) );
|
795 |
|
@@ -806,7 +833,8 @@ class wcast_initialise_customizer_settings {
|
|
806 |
array(
|
807 |
'label' => __( 'Content Background color', 'woo-advanced-shipment-tracking' ),
|
808 |
'section' => 'ast_tracking_general_section',
|
809 |
-
'type' => 'color',
|
|
|
810 |
)
|
811 |
);
|
812 |
|
@@ -823,7 +851,8 @@ class wcast_initialise_customizer_settings {
|
|
823 |
array(
|
824 |
'label' => __( 'Content font color', 'woo-advanced-shipment-tracking' ),
|
825 |
'section' => 'ast_tracking_general_section',
|
826 |
-
'type' => 'color'
|
|
|
827 |
)
|
828 |
);
|
829 |
|
@@ -841,7 +870,8 @@ class wcast_initialise_customizer_settings {
|
|
841 |
'label' => __( 'Content font size', 'woo-advanced-shipment-tracking' ),
|
842 |
'section' => 'ast_tracking_general_section',
|
843 |
'type' => 'select',
|
844 |
-
'choices' => $font_size_array
|
|
|
845 |
)
|
846 |
);
|
847 |
|
@@ -859,11 +889,12 @@ class wcast_initialise_customizer_settings {
|
|
859 |
'label' => __( 'Content line height', 'woo-advanced-shipment-tracking' ),
|
860 |
'section' => 'ast_tracking_general_section',
|
861 |
'input_attrs' => array(
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
|
|
867 |
)
|
868 |
));
|
869 |
|
@@ -881,11 +912,12 @@ class wcast_initialise_customizer_settings {
|
|
881 |
'label' => __( 'Content font weight', 'woo-advanced-shipment-tracking' ),
|
882 |
'section' => 'ast_tracking_general_section',
|
883 |
'input_attrs' => array(
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
|
|
889 |
)
|
890 |
));
|
891 |
|
@@ -901,7 +933,8 @@ class wcast_initialise_customizer_settings {
|
|
901 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[shipment_link_header]',
|
902 |
array(
|
903 |
'label' => __( 'Track Button', 'woo-advanced-shipment-tracking' ),
|
904 |
-
'section' => 'ast_tracking_general_section'
|
|
|
905 |
)
|
906 |
) );
|
907 |
|
@@ -909,7 +942,7 @@ class wcast_initialise_customizer_settings {
|
|
909 |
$wp_customize->add_setting( 'tracking_info_settings[show_track_label]',
|
910 |
array(
|
911 |
'default' => $this->defaults['show_track_label'],
|
912 |
-
'transport' => '
|
913 |
'sanitize_callback' => '',
|
914 |
'type' => 'option',
|
915 |
)
|
@@ -919,7 +952,8 @@ class wcast_initialise_customizer_settings {
|
|
919 |
'label' => __( 'Track Header', 'woo-advanced-shipment-tracking' ),
|
920 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
921 |
'section' => 'ast_tracking_general_section',
|
922 |
-
'type' => 'checkbox',
|
|
|
923 |
)
|
924 |
);
|
925 |
|
@@ -943,6 +977,7 @@ class wcast_initialise_customizer_settings {
|
|
943 |
'style' => '',
|
944 |
'placeholder' => __( 'Track', 'woo-advanced-shipment-tracking' ),
|
945 |
),
|
|
|
946 |
)
|
947 |
);
|
948 |
|
@@ -959,7 +994,8 @@ class wcast_initialise_customizer_settings {
|
|
959 |
array(
|
960 |
'label' => __( 'Button color', 'woo-advanced-shipment-tracking' ),
|
961 |
'section' => 'ast_tracking_general_section',
|
962 |
-
'type' => 'color'
|
|
|
963 |
)
|
964 |
);
|
965 |
|
@@ -976,10 +1012,92 @@ class wcast_initialise_customizer_settings {
|
|
976 |
array(
|
977 |
'label' => __( 'Button font color', 'woo-advanced-shipment-tracking' ),
|
978 |
'section' => 'ast_tracking_general_section',
|
979 |
-
'type' => 'color'
|
|
|
980 |
)
|
981 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
982 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
983 |
|
984 |
/**
|
985 |
* Set up preview
|
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 sections
|
27 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
157 |
'simple_layout_content' => __( 'Shipped on {ship_date} via {shipping_provider} - {tracking_number_link}', 'woo-advanced-shipment-tracking' ),
|
158 |
);
|
159 |
|
160 |
+
return apply_filters( 'ast_customizer_defaults', $customizer_defaults );
|
161 |
}
|
162 |
|
163 |
/**
|
220 |
$wp_customize->add_setting( 'tracking_info_settings[hide_trackig_header]',
|
221 |
array(
|
222 |
'default' => '',
|
223 |
+
'transport' => 'refresh',
|
224 |
'sanitize_callback' => '',
|
225 |
'type' => 'option',
|
226 |
)
|
254 |
'style' => '',
|
255 |
'placeholder' => __( 'Tracking Information', 'woo-advanced-shipment-tracking' ),
|
256 |
),
|
257 |
+
'active_callback' => array( $this, 'active_callback_for_hide_trackig_header' ),
|
258 |
)
|
259 |
);
|
260 |
|
281 |
);
|
282 |
|
283 |
// Tracking display layout
|
284 |
+
|
285 |
+
$tracking_template = array(
|
286 |
+
'' => __( 'Select Template', 'woo-advanced-shipment-tracking' ),
|
287 |
+
'default_table' => __( 'Table Layout', 'woo-advanced-shipment-tracking' ),
|
288 |
+
'simple_list' => 'Simple Layout',
|
289 |
+
);
|
290 |
+
$tracking_template = apply_filters('ast_tracking_template', $tracking_template);
|
291 |
$wp_customize->add_setting( 'tracking_info_settings[select_tracking_template]',
|
292 |
array(
|
293 |
'default' => $this->defaults['select_tracking_template'],
|
304 |
'placeholder' => __( 'Tracking display layout', 'woo-advanced-shipment-tracking' ),
|
305 |
'class' => 'tracking_template_select',
|
306 |
),
|
307 |
+
'choices' => $tracking_template,
|
|
|
|
|
|
|
|
|
308 |
)
|
309 |
) );
|
310 |
|
320 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[simple_content_header]',
|
321 |
array(
|
322 |
'label' => __( 'Simple Layout Design', 'woo-advanced-shipment-tracking' ),
|
323 |
+
'section' => 'ast_tracking_general_section',
|
324 |
+
'active_callback' => array( $this, 'active_callback_for_simple_layout' ),
|
325 |
)
|
326 |
) );
|
327 |
|
344 |
'style' => '',
|
345 |
'placeholder' =>'',
|
346 |
),
|
347 |
+
'active_callback' => array( $this, 'active_callback_for_simple_layout' ),
|
348 |
)
|
349 |
);
|
350 |
|
359 |
array(
|
360 |
'label' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ),
|
361 |
'description' => '<code>{ship_date}<br>{shipping_provider}<br>{tracking_number_link}</code>',
|
362 |
+
'section' => 'ast_tracking_general_section',
|
363 |
+
'active_callback' => array( $this, 'active_callback_for_simple_layout' ),
|
364 |
)
|
365 |
) );
|
366 |
|
378 |
'label' => __( 'Content font size', 'woo-advanced-shipment-tracking' ),
|
379 |
'section' => 'ast_tracking_general_section',
|
380 |
'type' => 'select',
|
381 |
+
'choices' => $font_size_array,
|
382 |
+
'active_callback' => array( $this, 'active_callback_for_simple_layout' ),
|
383 |
)
|
384 |
);
|
385 |
|
396 |
array(
|
397 |
'label' => __( 'Content font color', 'woo-advanced-shipment-tracking' ),
|
398 |
'section' => 'ast_tracking_general_section',
|
399 |
+
'type' => 'color',
|
400 |
+
'active_callback' => array( $this, 'active_callback_for_simple_layout' ),
|
401 |
)
|
402 |
);
|
403 |
|
405 |
$wp_customize->add_setting( 'tracking_info_settings[show_provider_border]',
|
406 |
array(
|
407 |
'default' => $this->defaults['show_provider_border'],
|
408 |
+
'transport' => 'refresh',
|
409 |
'sanitize_callback' => '',
|
410 |
'type' => 'option',
|
411 |
)
|
415 |
'label' => __( 'Show bottom border', 'woo-advanced-shipment-tracking' ),
|
416 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
417 |
'section' => 'ast_tracking_general_section',
|
418 |
+
'type' => 'checkbox',
|
419 |
+
'active_callback' => array( $this, 'active_callback_for_simple_layout' ),
|
420 |
)
|
421 |
);
|
422 |
|
433 |
array(
|
434 |
'label' => __( 'Bottom border color', 'woo-advanced-shipment-tracking' ),
|
435 |
'section' => 'ast_tracking_general_section',
|
436 |
+
'type' => 'color',
|
437 |
+
'active_callback' => array( $this, 'active_callback_for_simple_layout_show_provider_border' ),
|
438 |
)
|
439 |
);
|
440 |
|
452 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[table_content_header]',
|
453 |
array(
|
454 |
'label' => __( 'Table Options', 'woo-advanced-shipment-tracking' ),
|
455 |
+
'section' => 'ast_tracking_general_section',
|
456 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
457 |
)
|
458 |
) );
|
459 |
|
471 |
'label' => __( 'Display shipping provider name', 'woo-advanced-shipment-tracking' ),
|
472 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
473 |
'section' => 'ast_tracking_general_section',
|
474 |
+
'type' => 'checkbox',
|
475 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
476 |
)
|
477 |
);
|
478 |
|
490 |
'label' => __( 'Display shipping provider image', 'woo-advanced-shipment-tracking' ),
|
491 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
492 |
'section' => 'ast_tracking_general_section',
|
493 |
+
'type' => 'checkbox',
|
494 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
495 |
)
|
496 |
);
|
497 |
|
509 |
'label' => __( 'Hide the shipped date', 'woo-advanced-shipment-tracking' ),
|
510 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
511 |
'section' => 'ast_tracking_general_section',
|
512 |
+
'type' => 'checkbox',
|
513 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
514 |
)
|
515 |
);
|
516 |
|
528 |
'label' => __( 'Use tracking number as a link', 'woo-advanced-shipment-tracking' ),
|
529 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
530 |
'section' => 'ast_tracking_general_section',
|
531 |
+
'type' => 'checkbox',
|
532 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
533 |
)
|
534 |
);
|
535 |
|
545 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[table_design_options]',
|
546 |
array(
|
547 |
'label' => __( 'Table Design Options', 'woo-advanced-shipment-tracking' ),
|
548 |
+
'section' => 'ast_tracking_general_section',
|
549 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
550 |
)
|
551 |
) );
|
552 |
|
563 |
array(
|
564 |
'label' => __( 'Border color', 'woo-advanced-shipment-tracking' ),
|
565 |
'section' => 'ast_tracking_general_section',
|
566 |
+
'type' => 'color',
|
567 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
568 |
)
|
569 |
);
|
570 |
|
589 |
'3' => '3 px',
|
590 |
'4' => '4 px',
|
591 |
'5' => '5 px',
|
592 |
+
),
|
593 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
594 |
)
|
595 |
);
|
596 |
|
613 |
'left' => __( 'Left', '' ),
|
614 |
'right' => __( 'Right', '' ),
|
615 |
'center' => __( 'Center', '' )
|
616 |
+
),
|
617 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
618 |
)
|
619 |
);
|
620 |
|
630 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[table_header_block]',
|
631 |
array(
|
632 |
'label' => __( 'Table Header', 'woo-advanced-shipment-tracking' ),
|
633 |
+
'section' => 'ast_tracking_general_section',
|
634 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
635 |
)
|
636 |
) );
|
637 |
|
639 |
$wp_customize->add_setting( 'tracking_info_settings[hide_table_header]',
|
640 |
array(
|
641 |
'default' => '',
|
642 |
+
'transport' => 'refresh',
|
643 |
'sanitize_callback' => '',
|
644 |
'type' => 'option',
|
645 |
)
|
649 |
'label' => __( 'Hide Table Headers', 'woo-advanced-shipment-tracking' ),
|
650 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
651 |
'section' => 'ast_tracking_general_section',
|
652 |
+
'type' => 'checkbox',
|
653 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
654 |
)
|
655 |
);
|
656 |
|
674 |
'style' => '',
|
675 |
'placeholder' => __( 'Provider', 'woo-advanced-shipment-tracking' ),
|
676 |
),
|
677 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_table_header' ),
|
678 |
)
|
679 |
);
|
680 |
|
698 |
'style' => '',
|
699 |
'placeholder' => __( 'Tracking Number', 'woo-advanced-shipment-tracking' ),
|
700 |
),
|
701 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_table_header' ),
|
702 |
)
|
703 |
);
|
704 |
// Shipped Date Header Text
|
721 |
'style' => '',
|
722 |
'placeholder' => __( 'Shipped Date', 'woo-advanced-shipment-tracking' ),
|
723 |
),
|
724 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_table_header' ),
|
725 |
)
|
726 |
);
|
727 |
|
739 |
'label' => __( 'Headers font size', 'woo-advanced-shipment-tracking' ),
|
740 |
'section' => 'ast_tracking_general_section',
|
741 |
'type' => 'select',
|
742 |
+
'choices' => $font_size_array,
|
743 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_table_header' ),
|
744 |
)
|
745 |
);
|
746 |
|
757 |
array(
|
758 |
'label' => __( 'Headers background color', 'woo-advanced-shipment-tracking' ),
|
759 |
'section' => 'ast_tracking_general_section',
|
760 |
+
'type' => 'color',
|
761 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_table_header' ),
|
762 |
)
|
763 |
);
|
764 |
|
775 |
array(
|
776 |
'label' => __( 'Headers font color', 'woo-advanced-shipment-tracking' ),
|
777 |
'section' => 'ast_tracking_general_section',
|
778 |
+
'type' => 'color',
|
779 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_table_header' ),
|
780 |
)
|
781 |
);
|
782 |
|
794 |
'label' => __( 'Headers font weight', 'woo-advanced-shipment-tracking' ),
|
795 |
'section' => 'ast_tracking_general_section',
|
796 |
'input_attrs' => array(
|
797 |
+
'default' => $this->defaults['table_header_font_weight'],
|
798 |
+
'step' => 100,
|
799 |
+
'min' => 400,
|
800 |
+
'max' => 900,
|
801 |
+
),
|
802 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_table_header' ),
|
803 |
)
|
804 |
));
|
805 |
|
815 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'table_header',
|
816 |
array(
|
817 |
'label' => __( 'Table Content', 'woo-advanced-shipment-tracking' ),
|
818 |
+
'section' => 'ast_tracking_general_section',
|
819 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
820 |
)
|
821 |
) );
|
822 |
|
833 |
array(
|
834 |
'label' => __( 'Content Background color', 'woo-advanced-shipment-tracking' ),
|
835 |
'section' => 'ast_tracking_general_section',
|
836 |
+
'type' => 'color',
|
837 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
838 |
)
|
839 |
);
|
840 |
|
851 |
array(
|
852 |
'label' => __( 'Content font color', 'woo-advanced-shipment-tracking' ),
|
853 |
'section' => 'ast_tracking_general_section',
|
854 |
+
'type' => 'color',
|
855 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
856 |
)
|
857 |
);
|
858 |
|
870 |
'label' => __( 'Content font size', 'woo-advanced-shipment-tracking' ),
|
871 |
'section' => 'ast_tracking_general_section',
|
872 |
'type' => 'select',
|
873 |
+
'choices' => $font_size_array,
|
874 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
875 |
)
|
876 |
);
|
877 |
|
889 |
'label' => __( 'Content line height', 'woo-advanced-shipment-tracking' ),
|
890 |
'section' => 'ast_tracking_general_section',
|
891 |
'input_attrs' => array(
|
892 |
+
'default' => $this->defaults['table_content_line_height'],
|
893 |
+
'step' => 1,
|
894 |
+
'min' => 20,
|
895 |
+
'max' => 90,
|
896 |
+
),
|
897 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
898 |
)
|
899 |
));
|
900 |
|
912 |
'label' => __( 'Content font weight', 'woo-advanced-shipment-tracking' ),
|
913 |
'section' => 'ast_tracking_general_section',
|
914 |
'input_attrs' => array(
|
915 |
+
'default' => $this->defaults['table_content_font_weight'],
|
916 |
+
'step' => 100,
|
917 |
+
'min' => 400,
|
918 |
+
'max' => 900,
|
919 |
+
),
|
920 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout' ),
|
921 |
)
|
922 |
));
|
923 |
|
933 |
$wp_customize->add_control( new WP_Customize_Heading_Control( $wp_customize, 'tracking_info_settings[shipment_link_header]',
|
934 |
array(
|
935 |
'label' => __( 'Track Button', 'woo-advanced-shipment-tracking' ),
|
936 |
+
'section' => 'ast_tracking_general_section',
|
937 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_tracking_link' ),
|
938 |
)
|
939 |
) );
|
940 |
|
942 |
$wp_customize->add_setting( 'tracking_info_settings[show_track_label]',
|
943 |
array(
|
944 |
'default' => $this->defaults['show_track_label'],
|
945 |
+
'transport' => 'refresh',
|
946 |
'sanitize_callback' => '',
|
947 |
'type' => 'option',
|
948 |
)
|
952 |
'label' => __( 'Track Header', 'woo-advanced-shipment-tracking' ),
|
953 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
954 |
'section' => 'ast_tracking_general_section',
|
955 |
+
'type' => 'checkbox',
|
956 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_tracking_link' ),
|
957 |
)
|
958 |
);
|
959 |
|
977 |
'style' => '',
|
978 |
'placeholder' => __( 'Track', 'woo-advanced-shipment-tracking' ),
|
979 |
),
|
980 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_tracking_link_track_header' ),
|
981 |
)
|
982 |
);
|
983 |
|
994 |
array(
|
995 |
'label' => __( 'Button color', 'woo-advanced-shipment-tracking' ),
|
996 |
'section' => 'ast_tracking_general_section',
|
997 |
+
'type' => 'color',
|
998 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_tracking_link' ),
|
999 |
)
|
1000 |
);
|
1001 |
|
1012 |
array(
|
1013 |
'label' => __( 'Button font color', 'woo-advanced-shipment-tracking' ),
|
1014 |
'section' => 'ast_tracking_general_section',
|
1015 |
+
'type' => 'color',
|
1016 |
+
'active_callback' => array( $this, 'active_callback_for_table_layout_tracking_link' ),
|
1017 |
)
|
1018 |
);
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
|
1022 |
+
public function active_callback_for_hide_trackig_header(){
|
1023 |
+
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
1024 |
+
$hide_trackig_header = $ast->get_option_value_from_array('tracking_info_settings','hide_trackig_header','');
|
1025 |
+
|
1026 |
+
if( !$hide_trackig_header ){
|
1027 |
+
return true;
|
1028 |
+
} else{
|
1029 |
+
return false;
|
1030 |
+
}
|
1031 |
+
}
|
1032 |
+
|
1033 |
+
public function active_callback_for_table_layout(){
|
1034 |
+
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
1035 |
+
$select_tracking_template = $ast->get_option_value_from_array('tracking_info_settings','select_tracking_template',$this->defaults['select_tracking_template']);
|
1036 |
+
if( $select_tracking_template == 'default_table'){
|
1037 |
+
return true;
|
1038 |
+
} else{
|
1039 |
+
return false;
|
1040 |
+
}
|
1041 |
+
}
|
1042 |
+
|
1043 |
+
public function active_callback_for_table_layout_table_header(){
|
1044 |
+
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
1045 |
+
$select_tracking_template = $ast->get_option_value_from_array('tracking_info_settings','select_tracking_template',$this->defaults['select_tracking_template']);
|
1046 |
+
$hide_table_header = $ast->get_option_value_from_array( 'tracking_info_settings','hide_table_header', '' );
|
1047 |
+
|
1048 |
+
if( $select_tracking_template == 'default_table' && !$hide_table_header ){
|
1049 |
+
return true;
|
1050 |
+
} else{
|
1051 |
+
return false;
|
1052 |
+
}
|
1053 |
}
|
1054 |
+
|
1055 |
+
public function active_callback_for_table_layout_tracking_link(){
|
1056 |
+
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
1057 |
+
$select_tracking_template = $ast->get_option_value_from_array('tracking_info_settings','select_tracking_template',$this->defaults['select_tracking_template']);
|
1058 |
+
$tracking_number_link = $ast->get_option_value_from_array( 'tracking_info_settings','tracking_number_link', '' );
|
1059 |
+
|
1060 |
+
if( $select_tracking_template == 'default_table' && !$tracking_number_link ){
|
1061 |
+
return true;
|
1062 |
+
} else{
|
1063 |
+
return false;
|
1064 |
+
}
|
1065 |
+
}
|
1066 |
+
|
1067 |
+
public function active_callback_for_table_layout_tracking_link_track_header(){
|
1068 |
+
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
1069 |
+
$select_tracking_template = $ast->get_option_value_from_array('tracking_info_settings','select_tracking_template',$this->defaults['select_tracking_template']);
|
1070 |
+
$tracking_number_link = $ast->get_option_value_from_array( 'tracking_info_settings','tracking_number_link', '' );
|
1071 |
+
$show_track_label = $ast->get_option_value_from_array( 'tracking_info_settings','show_track_label', '' );
|
1072 |
+
|
1073 |
+
if( $select_tracking_template == 'default_table' && !$tracking_number_link && $show_track_label ){
|
1074 |
+
return true;
|
1075 |
+
} else{
|
1076 |
+
return false;
|
1077 |
+
}
|
1078 |
+
}
|
1079 |
+
|
1080 |
+
public function active_callback_for_simple_layout(){
|
1081 |
+
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
1082 |
+
$select_tracking_template = $ast->get_option_value_from_array('tracking_info_settings','select_tracking_template',$this->defaults['select_tracking_template']);
|
1083 |
+
if( $select_tracking_template == 'simple_list'){
|
1084 |
+
return true;
|
1085 |
+
} else{
|
1086 |
+
return false;
|
1087 |
+
}
|
1088 |
+
}
|
1089 |
+
|
1090 |
+
public function active_callback_for_simple_layout_show_provider_border(){
|
1091 |
+
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
1092 |
+
$select_tracking_template = $ast->get_option_value_from_array('tracking_info_settings','select_tracking_template',$this->defaults['select_tracking_template']);
|
1093 |
+
$show_provider_border = $ast->get_option_value_from_array( 'tracking_info_settings','show_provider_border', $this->defaults['show_provider_border'] );
|
1094 |
+
|
1095 |
+
if( $select_tracking_template == 'simple_list' && $show_provider_border ){
|
1096 |
+
return true;
|
1097 |
+
} else{
|
1098 |
+
return false;
|
1099 |
+
}
|
1100 |
+
}
|
1101 |
|
1102 |
/**
|
1103 |
* Set up preview
|
includes/customizer/class-wc-tracking-page-customizer.php
ADDED
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 ts_tracking_page_customizer {
|
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' ) );
|
20 |
+
|
21 |
+
// Only proceed if this is own request.
|
22 |
+
if ( ! ts_tracking_page_customizer::is_own_customizer_request() && ! ts_tracking_page_customizer::is_own_preview_request() ) {
|
23 |
+
return;
|
24 |
+
}
|
25 |
+
|
26 |
+
// Register our sections
|
27 |
+
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
28 |
+
|
29 |
+
// Remove unrelated components.
|
30 |
+
add_filter( 'customize_loaded_components', array( wcast_customizer(), 'remove_unrelated_components' ), 99, 2 );
|
31 |
+
|
32 |
+
// Remove unrelated sections.
|
33 |
+
add_filter( 'customize_section_active', array( wcast_customizer(), 'remove_unrelated_sections' ), 10, 2 );
|
34 |
+
|
35 |
+
// Unhook divi front end.
|
36 |
+
add_action( 'woomail_footer', array( wcast_customizer(), 'unhook_divi' ), 10 );
|
37 |
+
|
38 |
+
// Unhook Flatsome js
|
39 |
+
add_action( 'customize_preview_init', array( wcast_customizer(), 'unhook_flatsome' ), 50 );
|
40 |
+
|
41 |
+
add_filter( 'customize_controls_enqueue_scripts', array( wcast_customizer(), 'enqueue_customizer_scripts' ) );
|
42 |
+
|
43 |
+
//add_action( 'parse_request', array( $this, 'set_up_preview' ) );
|
44 |
+
|
45 |
+
add_action( 'customize_preview_init', array( $this, 'enqueue_preview_scripts' ) );
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
/**
|
50 |
+
* add css and js for preview
|
51 |
+
*/
|
52 |
+
public function enqueue_preview_scripts() {
|
53 |
+
wp_enqueue_script('wcast-preview-scripts', wc_advanced_shipment_tracking()->plugin_dir_url() . '/assets/js/preview-scripts.js', array('jquery', 'customize-preview'), wc_advanced_shipment_tracking()->version, true);
|
54 |
+
wp_enqueue_style('wcast-preview-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/preview-styles.css', array(), wc_advanced_shipment_tracking()->version );
|
55 |
+
$preview_id = get_theme_mod('wcast_email_preview_order_id');
|
56 |
+
wp_localize_script('wcast-preview-scripts', 'wcast_preview', array(
|
57 |
+
'site_title' => $this->get_blogname(),
|
58 |
+
'order_number' => $preview_id,
|
59 |
+
));
|
60 |
+
}
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Get blog name formatted for emails.
|
64 |
+
*
|
65 |
+
* @return string
|
66 |
+
*/
|
67 |
+
public function get_blogname() {
|
68 |
+
return wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES );
|
69 |
+
}
|
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['action'] ) && 'preview_tracking_page' === $_REQUEST['action'];
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Checks to see if we are opening our custom customizer controls
|
83 |
+
*
|
84 |
+
* @access public
|
85 |
+
* @return bool
|
86 |
+
*/
|
87 |
+
public static function is_own_customizer_request() {
|
88 |
+
return isset( $_REQUEST['email'] ) && $_REQUEST['email'] === 'ast_tracking_page_section';
|
89 |
+
}
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Get Customizer URL
|
93 |
+
*
|
94 |
+
*/
|
95 |
+
public static function get_customizer_url( $email, $return_tab ) {
|
96 |
+
//echo $return_tab;exit;
|
97 |
+
$customizer_url = add_query_arg( array(
|
98 |
+
'wcast-customizer' => '1',
|
99 |
+
'email' => $email,
|
100 |
+
'autofocus[section]' => 'ast_tracking_page_section',
|
101 |
+
'url' => urlencode( add_query_arg( array( 'action' => 'preview_tracking_page' ), home_url( '/' ) ) ),
|
102 |
+
'return' => urlencode( ts_tracking_page_customizer::get_email_settings_page_url( $return_tab ) ),
|
103 |
+
), admin_url( 'customize.php' ) );
|
104 |
+
|
105 |
+
return $customizer_url;
|
106 |
+
}
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Get WooCommerce email settings page URL
|
110 |
+
*
|
111 |
+
* @access public
|
112 |
+
* @return string
|
113 |
+
*/
|
114 |
+
public static function get_email_settings_page_url( $return_tab ) {
|
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 |
+
'wc_ast_select_tracking_page_layout' => 't_layout_1',
|
124 |
+
'wc_ast_select_border_color' => '#e0e0e0',
|
125 |
+
'wc_ast_select_bg_color' => '#fff',
|
126 |
+
'wc_ast_hide_tracking_provider_image' => 0,
|
127 |
+
'wc_ast_link_to_shipping_provider' => 0,
|
128 |
+
'wc_ast_remove_trackship_branding' => 0,
|
129 |
+
'wc_ast_hide_tracking_events' => 0,
|
130 |
+
);
|
131 |
+
|
132 |
+
return apply_filters( 'ast_customizer_defaults', $customizer_defaults );
|
133 |
+
}
|
134 |
+
|
135 |
+
/**
|
136 |
+
* Register our sample default controls
|
137 |
+
*/
|
138 |
+
public function wcast_register_sample_default_controls( $wp_customize ) {
|
139 |
+
/**
|
140 |
+
* Load all our Customizer Custom Controls
|
141 |
+
*/
|
142 |
+
require_once trailingslashit( dirname(__FILE__) ) . 'custom-controls.php';
|
143 |
+
|
144 |
+
$font_size_array[ '' ] = __( 'Select', 'woocommerce' );
|
145 |
+
for ( $i = 10; $i <= 30; $i++ ) {
|
146 |
+
$font_size_array[ $i ] = $i."px";
|
147 |
+
}
|
148 |
+
|
149 |
+
$wp_customize->add_setting( 'wc_ast_select_tracking_page_layout',
|
150 |
+
array(
|
151 |
+
'default' => $this->defaults['wc_ast_select_tracking_page_layout'],
|
152 |
+
'transport' => 'refresh',
|
153 |
+
'sanitize_callback' => '',
|
154 |
+
'type' => 'option',
|
155 |
+
)
|
156 |
+
);
|
157 |
+
$wp_customize->add_control( new Skyrocket_Dropdown_Select_Custom_Control( $wp_customize, 'wc_ast_select_tracking_page_layout',
|
158 |
+
array(
|
159 |
+
'label' => __( 'Widget Tracker Type', 'woo-advanced-shipment-tracking' ),
|
160 |
+
'section' => 'ast_tracking_page_section',
|
161 |
+
'input_attrs' => array(
|
162 |
+
'placeholder' => __( 'Widget Tracker Type', 'woo-advanced-shipment-tracking' ),
|
163 |
+
'class' => '',
|
164 |
+
),
|
165 |
+
'choices' => array(
|
166 |
+
't_layout_2' => __( 'Progress Bar', 'woo-advanced-shipment-tracking' ),
|
167 |
+
't_layout_1' => __( 'Tracking Icons', 'woo-advanced-shipment-tracking' ),
|
168 |
+
),
|
169 |
+
)
|
170 |
+
) );
|
171 |
+
|
172 |
+
$wp_customize->add_setting( 'wc_ast_select_border_color',
|
173 |
+
array(
|
174 |
+
'default' => $this->defaults['wc_ast_select_border_color'],
|
175 |
+
'transport' => 'refresh',
|
176 |
+
'sanitize_callback' => '',
|
177 |
+
'type' => 'option',
|
178 |
+
)
|
179 |
+
);
|
180 |
+
$wp_customize->add_control( 'wc_ast_select_border_color',
|
181 |
+
array(
|
182 |
+
'label' => __( 'Widget border color', 'woo-advanced-shipment-tracking' ),
|
183 |
+
'section' => 'ast_tracking_page_section',
|
184 |
+
'type' => 'color',
|
185 |
+
)
|
186 |
+
);
|
187 |
+
|
188 |
+
$wp_customize->add_setting( 'wc_ast_select_bg_color',
|
189 |
+
array(
|
190 |
+
'default' => $this->defaults['wc_ast_select_bg_color'],
|
191 |
+
'transport' => 'refresh',
|
192 |
+
'sanitize_callback' => '',
|
193 |
+
'type' => 'option',
|
194 |
+
)
|
195 |
+
);
|
196 |
+
$wp_customize->add_control( 'wc_ast_select_bg_color',
|
197 |
+
array(
|
198 |
+
'label' => __( 'Widget background color', 'woo-advanced-shipment-tracking' ),
|
199 |
+
'section' => 'ast_tracking_page_section',
|
200 |
+
'type' => 'color',
|
201 |
+
)
|
202 |
+
);
|
203 |
+
|
204 |
+
$wp_customize->add_setting( 'wc_ast_hide_tracking_events',
|
205 |
+
array(
|
206 |
+
'default' => $this->defaults['wc_ast_hide_tracking_events'],
|
207 |
+
'transport' => 'refresh',
|
208 |
+
'sanitize_callback' => '',
|
209 |
+
'type' => 'option',
|
210 |
+
)
|
211 |
+
);
|
212 |
+
$wp_customize->add_control( new Skyrocket_Dropdown_Select_Custom_Control( $wp_customize, 'wc_ast_hide_tracking_events',
|
213 |
+
array(
|
214 |
+
'label' => __( 'Events Display Type', 'woo-advanced-shipment-tracking' ),
|
215 |
+
'section' => 'ast_tracking_page_section',
|
216 |
+
'input_attrs' => array(
|
217 |
+
'placeholder' => __( 'Events Display Type', 'woo-advanced-shipment-tracking' ),
|
218 |
+
'class' => '',
|
219 |
+
),
|
220 |
+
'choices' => array(
|
221 |
+
0 => __( 'Show all Events', 'woo-advanced-shipment-tracking' ),
|
222 |
+
1 => __( 'Hide tracking events', 'woo-advanced-shipment-tracking' ),
|
223 |
+
),
|
224 |
+
)
|
225 |
+
) );
|
226 |
+
|
227 |
+
$wp_customize->add_setting( 'wc_ast_hide_tracking_provider_image',
|
228 |
+
array(
|
229 |
+
'default' => $this->defaults['wc_ast_hide_tracking_provider_image'],
|
230 |
+
'transport' => 'refresh',
|
231 |
+
'sanitize_callback' => '',
|
232 |
+
'type' => 'option',
|
233 |
+
)
|
234 |
+
);
|
235 |
+
$wp_customize->add_control( 'wc_ast_hide_tracking_provider_image',
|
236 |
+
array(
|
237 |
+
'label' => __( 'Hide the Shipping Provider logo', 'woo-advanced-shipment-tracking' ),
|
238 |
+
'section' => 'ast_tracking_page_section',
|
239 |
+
'type' => 'checkbox',
|
240 |
+
)
|
241 |
+
);
|
242 |
+
|
243 |
+
$wp_customize->add_setting( 'wc_ast_link_to_shipping_provider',
|
244 |
+
array(
|
245 |
+
'default' => $this->defaults['wc_ast_link_to_shipping_provider'],
|
246 |
+
'transport' => 'refresh',
|
247 |
+
'sanitize_callback' => '',
|
248 |
+
'type' => 'option',
|
249 |
+
)
|
250 |
+
);
|
251 |
+
$wp_customize->add_control( 'wc_ast_link_to_shipping_provider',
|
252 |
+
array(
|
253 |
+
'label' => __( 'Enable Tracking # link to Carrier', 'woo-advanced-shipment-tracking' ),
|
254 |
+
'section' => 'ast_tracking_page_section',
|
255 |
+
'type' => 'checkbox',
|
256 |
+
)
|
257 |
+
);
|
258 |
+
|
259 |
+
$wp_customize->add_setting( 'wc_ast_remove_trackship_branding',
|
260 |
+
array(
|
261 |
+
'default' => $this->defaults['wc_ast_remove_trackship_branding'],
|
262 |
+
'transport' => 'refresh',
|
263 |
+
'sanitize_callback' => '',
|
264 |
+
'type' => 'option',
|
265 |
+
)
|
266 |
+
);
|
267 |
+
$wp_customize->add_control( 'wc_ast_remove_trackship_branding',
|
268 |
+
array(
|
269 |
+
'label' => __( 'Hide TrackShip Branding', 'woo-advanced-shipment-tracking' ),
|
270 |
+
'section' => 'ast_tracking_page_section',
|
271 |
+
'type' => 'checkbox',
|
272 |
+
)
|
273 |
+
);
|
274 |
+
}
|
275 |
+
|
276 |
+
}
|
277 |
+
/**
|
278 |
+
* Initialise our Customizer settings
|
279 |
+
*/
|
280 |
+
|
281 |
+
$ts_tracking_page_customizer = new ts_tracking_page_customizer();
|
includes/customizer/class-wc-updated-tracking-email-customizer.php
CHANGED
@@ -20,7 +20,6 @@ class wcast_updated_tracking_customizer_email {
|
|
20 |
if ( ! wcast_updated_tracking_customizer_email::is_own_customizer_request() && ! wcast_updated_tracking_customizer_email::is_own_preview_request() ) {
|
21 |
return;
|
22 |
}
|
23 |
-
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_panels' ) );
|
24 |
// Register our sections
|
25 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
26 |
|
20 |
if ( ! wcast_updated_tracking_customizer_email::is_own_customizer_request() && ! wcast_updated_tracking_customizer_email::is_own_preview_request() ) {
|
21 |
return;
|
22 |
}
|
|
|
23 |
// Register our sections
|
24 |
add_action( 'customize_register', array( wcast_customizer(), 'wcast_add_customizer_sections' ) );
|
25 |
|
includes/customizer/class-wcast-customizer.php
CHANGED
@@ -20,123 +20,40 @@ class WC_Advanced_Shipment_Tracking_Customizer {
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
-
* Register the Customizer
|
24 |
*/
|
25 |
-
public function
|
26 |
|
27 |
-
|
28 |
-
* Tracking Display Customizer Panel
|
29 |
-
*/
|
30 |
-
$wp_customize->add_panel( 'ast_tracking_display_panel',
|
31 |
array(
|
32 |
'title' => __( 'Tracking info display', 'woo-advanced-shipment-tracking' ),
|
33 |
-
'description' =>
|
34 |
)
|
35 |
-
);
|
36 |
|
37 |
/**
|
38 |
-
*
|
39 |
*/
|
40 |
-
$wp_customize->
|
41 |
array(
|
42 |
-
'title' => __( '
|
43 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' )
|
44 |
)
|
45 |
);
|
46 |
|
47 |
-
/**
|
48 |
-
* Add our Header & Navigation Panel
|
49 |
-
*/
|
50 |
-
$wp_customize->add_panel( 'wcast_emails_panel',
|
51 |
-
array(
|
52 |
-
'title' => __( 'Shipment Status Emails', 'woo-advanced-shipment-tracking' ),
|
53 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' )
|
54 |
-
)
|
55 |
-
);
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* Register the Customizer sections
|
60 |
-
*/
|
61 |
-
public function wcast_add_customizer_sections( $wp_customize ) {
|
62 |
-
|
63 |
-
$wp_customize->add_section( 'ast_tracking_general_section',
|
64 |
-
array(
|
65 |
-
'title' => __( 'Tracking info display', 'woo-advanced-shipment-tracking' ),
|
66 |
-
'description' => '',
|
67 |
-
//'panel' => 'ast_tracking_display_panel'
|
68 |
-
)
|
69 |
-
);
|
70 |
-
|
71 |
$wp_customize->add_section( 'custom_order_status_email',
|
72 |
array(
|
73 |
'title' => __( 'Custom order status email', 'woo-advanced-shipment-tracking' ),
|
74 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
75 |
-
//'panel' => 'wcast_naviation_panel'
|
76 |
-
)
|
77 |
-
);
|
78 |
-
|
79 |
-
$wp_customize->add_section( 'custom_shipment_status_email',
|
80 |
-
array(
|
81 |
-
'title' => __( 'Shipment Status Email', 'woo-advanced-shipment-tracking' ),
|
82 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
83 |
-
//'panel' => 'wcast_emails_panel'
|
84 |
-
)
|
85 |
-
);
|
86 |
-
|
87 |
-
$wp_customize->add_section( 'customer_onhold_email',
|
88 |
-
array(
|
89 |
-
'title' => __( 'On Hold', 'woo-advanced-shipment-tracking' ),
|
90 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
91 |
-
'panel' => 'wcast_emails_panel'
|
92 |
-
)
|
93 |
-
);
|
94 |
-
|
95 |
-
$wp_customize->add_section( 'customer_returntosender_email',
|
96 |
-
array(
|
97 |
-
'title' => __( 'Return To Sender', 'woo-advanced-shipment-tracking' ),
|
98 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
99 |
-
'panel' => 'wcast_emails_panel'
|
100 |
-
)
|
101 |
-
);
|
102 |
-
$wp_customize->add_section( 'customer_availableforpickup_email',
|
103 |
-
array(
|
104 |
-
'title' => __( 'Available For Pickup', 'woo-advanced-shipment-tracking' ),
|
105 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
106 |
-
'panel' => 'wcast_emails_panel'
|
107 |
-
)
|
108 |
-
);
|
109 |
-
$wp_customize->add_section( 'customer_outfordelivery_email',
|
110 |
-
array(
|
111 |
-
'title' => __( 'Out For Delivery', 'woo-advanced-shipment-tracking' ),
|
112 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
113 |
-
'panel' => 'wcast_emails_panel'
|
114 |
)
|
115 |
);
|
116 |
-
|
117 |
-
$wp_customize->add_section( 'customer_delivered_status_email',
|
118 |
-
array(
|
119 |
-
'title' => __( 'Delivered', 'woo-advanced-shipment-tracking' ),
|
120 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
121 |
-
'panel' => 'wcast_emails_panel'
|
122 |
-
)
|
123 |
-
);
|
124 |
|
125 |
-
$wp_customize->add_section( '
|
126 |
array(
|
127 |
-
'title' => __( '
|
128 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
129 |
-
'panel' => 'wcast_emails_panel'
|
130 |
)
|
131 |
);
|
132 |
-
|
133 |
-
$wp_customize->add_section( 'admin_late_shipments_email',
|
134 |
-
array(
|
135 |
-
'title' => __( 'Late Shipments', 'woo-advanced-shipment-tracking' ),
|
136 |
-
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
137 |
-
'panel' => 'wcast_admin_emails_panel'
|
138 |
-
)
|
139 |
-
);
|
140 |
}
|
141 |
|
142 |
/**
|
@@ -149,7 +66,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
|
|
149 |
wp_enqueue_style('wcast-customizer-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/customizer-styles.css', array(), wc_advanced_shipment_tracking()->version );
|
150 |
wp_enqueue_script('wcast-customizer-scripts', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/customizer-scripts.js', array('jquery', 'customize-controls','wp-color-picker'), wc_advanced_shipment_tracking()->version, true);
|
151 |
|
152 |
-
$email_type = '
|
153 |
if(isset( $_REQUEST['order_status'] )){
|
154 |
$email_type = $_REQUEST['order_status'];
|
155 |
}
|
@@ -167,7 +84,8 @@ class WC_Advanced_Shipment_Tracking_Customizer {
|
|
167 |
'updated_tracking_email_preview_url' => $this->get_updated_tracking_email_preview_url(),
|
168 |
'email_type' => $email_type,
|
169 |
'shipment_status' => $shipment_status,
|
170 |
-
'tracking_preview_url' => $this->get_tracking_preview_url(),
|
|
|
171 |
'customer_failure_preview_url' => $this->get_customer_failure_preview_url(),
|
172 |
'customer_intransit_preview_url' => $this->get_customer_intransit_preview_url(),
|
173 |
'customer_onhold_preview_url' => $this->get_customer_onhold_preview_url(),
|
@@ -249,6 +167,18 @@ class WC_Advanced_Shipment_Tracking_Customizer {
|
|
249 |
), home_url( '' ) );
|
250 |
|
251 |
return $tracking_preview_url;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
}
|
253 |
|
254 |
/**
|
@@ -422,7 +352,7 @@ class WC_Advanced_Shipment_Tracking_Customizer {
|
|
422 |
*/
|
423 |
public static function is_own_section( $key ) {
|
424 |
|
425 |
-
if ($key === 'wcast_naviation_panel' || $key === 'ast_tracking_general_section' || $key === 'custom_order_status_email' || $key === '
|
426 |
return true;
|
427 |
}
|
428 |
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
+
* Register the Customizer sections
|
24 |
*/
|
25 |
+
public function wcast_add_customizer_sections( $wp_customize ) {
|
26 |
|
27 |
+
$wp_customize->add_section( 'ast_tracking_general_section',
|
|
|
|
|
|
|
28 |
array(
|
29 |
'title' => __( 'Tracking info display', 'woo-advanced-shipment-tracking' ),
|
30 |
+
'description' => '',
|
31 |
)
|
32 |
+
);
|
33 |
|
34 |
/**
|
35 |
+
* Tracking Page Customizer Section
|
36 |
*/
|
37 |
+
$wp_customize->add_section( 'ast_tracking_page_section',
|
38 |
array(
|
39 |
+
'title' => __( 'Tracking Page Widget', 'woo-advanced-shipment-tracking' ),
|
40 |
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' )
|
41 |
)
|
42 |
);
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
$wp_customize->add_section( 'custom_order_status_email',
|
45 |
array(
|
46 |
'title' => __( 'Custom order status email', 'woo-advanced-shipment-tracking' ),
|
47 |
+
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
)
|
49 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
|
51 |
+
$wp_customize->add_section( 'trackship_shipment_status_email',
|
52 |
array(
|
53 |
+
'title' => __( 'TrackShip Email Notifications', 'woo-advanced-shipment-tracking' ),
|
54 |
+
'description' => esc_html__( '', 'woo-advanced-shipment-tracking' ),
|
|
|
55 |
)
|
56 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
}
|
58 |
|
59 |
/**
|
66 |
wp_enqueue_style('wcast-customizer-styles', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/css/customizer-styles.css', array(), wc_advanced_shipment_tracking()->version );
|
67 |
wp_enqueue_script('wcast-customizer-scripts', wc_advanced_shipment_tracking()->plugin_dir_url() . 'assets/js/customizer-scripts.js', array('jquery', 'customize-controls','wp-color-picker'), wc_advanced_shipment_tracking()->version, true);
|
68 |
|
69 |
+
$email_type = 'partially_shipped';
|
70 |
if(isset( $_REQUEST['order_status'] )){
|
71 |
$email_type = $_REQUEST['order_status'];
|
72 |
}
|
84 |
'updated_tracking_email_preview_url' => $this->get_updated_tracking_email_preview_url(),
|
85 |
'email_type' => $email_type,
|
86 |
'shipment_status' => $shipment_status,
|
87 |
+
'tracking_preview_url' => $this->get_tracking_preview_url(),
|
88 |
+
'tracking_page_preview_url' => $this->get_tracking_page_preview_url(),
|
89 |
'customer_failure_preview_url' => $this->get_customer_failure_preview_url(),
|
90 |
'customer_intransit_preview_url' => $this->get_customer_intransit_preview_url(),
|
91 |
'customer_onhold_preview_url' => $this->get_customer_onhold_preview_url(),
|
167 |
), home_url( '' ) );
|
168 |
|
169 |
return $tracking_preview_url;
|
170 |
+
}
|
171 |
+
|
172 |
+
/**
|
173 |
+
* Get Tracking Page Preview URL
|
174 |
+
*
|
175 |
+
*/
|
176 |
+
public static function get_tracking_page_preview_url() {
|
177 |
+
$tracking_page_preview_url = add_query_arg( array(
|
178 |
+
'action' => 'preview_tracking_page',
|
179 |
+
), home_url( '' ) );
|
180 |
+
|
181 |
+
return $tracking_page_preview_url;
|
182 |
}
|
183 |
|
184 |
/**
|
352 |
*/
|
353 |
public static function is_own_section( $key ) {
|
354 |
|
355 |
+
if ($key === 'wcast_naviation_panel' || $key === 'ast_tracking_general_section' || $key === 'custom_order_status_email' || $key === 'trackship_shipment_status_email' || $key === 'ast_tracking_page_section' ) {
|
356 |
return true;
|
357 |
}
|
358 |
|
includes/customizer/preview/tracking_page_preview.php
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
// Exit if accessed directly
|
3 |
+
if (!defined('ABSPATH')) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
wp_head();
|
7 |
+
?>
|
8 |
+
|
9 |
+
<head>
|
10 |
+
|
11 |
+
<meta charset="<?php bloginfo('charset'); ?>" />
|
12 |
+
<meta name="viewport" content="width=device-width" />
|
13 |
+
<style type="text/css" id="ast_designer_custom_css">.woocommerce-store-notice.demo_store, .mfp-hide {display: none;}</style>
|
14 |
+
</head>
|
15 |
+
|
16 |
+
<body class="ast_preview_body">
|
17 |
+
<div id="overlay"></div>
|
18 |
+
<div id="ast_preview_wrapper" style="display: block;">
|
19 |
+
<?php //ts_tracking_page_customizer::preview_tracking_page(); ?>
|
20 |
+
</div>
|
21 |
+
|
22 |
+
<?php
|
23 |
+
do_action( 'woomail_footer' );
|
24 |
+
wp_footer(); ?>
|
25 |
+
|
26 |
+
</body>
|
27 |
+
|
28 |
+
</html>
|
includes/email-manager.php
CHANGED
@@ -22,12 +22,6 @@ class WC_Advanced_Shipment_Tracking_Email_Manager {
|
|
22 |
public function custom_init_emails( $emails ) {
|
23 |
|
24 |
// Include the email class file if it's not included already
|
25 |
-
$newstatus = get_option( "wc_ast_status_delivered", 0);
|
26 |
-
if( $newstatus == true ){
|
27 |
-
if ( ! isset( $emails[ 'WC_Email_Customer_Delivered_Order' ] ) ) {
|
28 |
-
$emails[ 'WC_Email_Customer_Delivered_Order' ] = include_once( 'emails/class-shipment-delivered-email.php' );
|
29 |
-
}
|
30 |
-
}
|
31 |
|
32 |
$partial_shipped_status = get_option( "wc_ast_status_partial_shipped", 0);
|
33 |
if( $partial_shipped_status == true ){
|
22 |
public function custom_init_emails( $emails ) {
|
23 |
|
24 |
// Include the email class file if it's not included already
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
$partial_shipped_status = get_option( "wc_ast_status_partial_shipped", 0);
|
27 |
if( $partial_shipped_status == true ){
|
includes/emails/class-shipment-delivered-email.php
DELETED
@@ -1,307 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Class WC_Email_Customer_Delivered_Order file.
|
4 |
-
*
|
5 |
-
* @package WooCommerce\Emails
|
6 |
-
*/
|
7 |
-
|
8 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
-
exit; // Exit if accessed directly.
|
10 |
-
}
|
11 |
-
|
12 |
-
if ( ! class_exists( 'WC_Email_Customer_Delivered_Order', false ) ) :
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Customer Delivered Order Email.
|
16 |
-
*
|
17 |
-
* Order delivered emails are sent to the customer when the order is marked delivered and usual indicates that the order has been shipped.
|
18 |
-
*
|
19 |
-
* @class WC_Email_Customer_Delivered_Order
|
20 |
-
* @version 2.0.0
|
21 |
-
* @package WooCommerce/Classes/Emails
|
22 |
-
* @extends WC_Email
|
23 |
-
*/
|
24 |
-
class WC_Email_Customer_Delivered_Order extends WC_Email {
|
25 |
-
|
26 |
-
/**
|
27 |
-
* Constructor.
|
28 |
-
*/
|
29 |
-
public function __construct() {
|
30 |
-
$this->id = 'customer_delivered_order';
|
31 |
-
//$this->customer_email = true;
|
32 |
-
$this->title = __( 'Delivered order', 'woo-advanced-shipment-tracking' );
|
33 |
-
$this->description = __( 'Order delivered emails are sent to customers when their orders are marked delivered and usually indicate that their orders have been shipped.', 'woo-advanced-shipment-tracking' );
|
34 |
-
$this->template_html = 'emails/customer-delivered-order.php';
|
35 |
-
$this->template_plain = 'emails/plain/customer-delivered-order.php';
|
36 |
-
$this->placeholders = array(
|
37 |
-
'{site_title}' => $this->get_blogname(),
|
38 |
-
'{order_date}' => '',
|
39 |
-
'{order_number}' => '',
|
40 |
-
);
|
41 |
-
$this->recipient = $this->get_option( 'recipient', '{customer_email}' );
|
42 |
-
$this->template_base = AST_TEMPLATE_PATH;
|
43 |
-
|
44 |
-
// Call parent constructor.
|
45 |
-
parent::__construct();
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Get valid recipients.
|
50 |
-
*
|
51 |
-
* @return string
|
52 |
-
*/
|
53 |
-
public function get_delivered_recipient() {
|
54 |
-
$recipient = apply_filters( 'woocommerce_email_recipient_' . $this->id, $this->recipient, $this->object );
|
55 |
-
$recipient = str_replace( '{customer_email}', $this->object->get_billing_email(), $recipient );
|
56 |
-
$recipients = array_map( 'trim', explode( ',', $recipient ) );
|
57 |
-
return implode( ', ', $recipients );
|
58 |
-
}
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Trigger the sending of this email.
|
62 |
-
*
|
63 |
-
* @param int $order_id The order ID.
|
64 |
-
* @param WC_Order|false $order Order object.
|
65 |
-
*/
|
66 |
-
public function trigger( $order_id, $order = false ) {
|
67 |
-
//echo $this->template_base;exit;
|
68 |
-
$this->setup_locale();
|
69 |
-
|
70 |
-
if ( $order_id && ! is_a( $order, 'WC_Order' ) ) {
|
71 |
-
$order = wc_get_order( $order_id );
|
72 |
-
}
|
73 |
-
|
74 |
-
if ( is_a( $order, 'WC_Order' ) ) {
|
75 |
-
$this->object = $order;
|
76 |
-
$this->placeholders['{order_date}'] = wc_format_datetime( $this->object->get_date_created() );
|
77 |
-
$this->placeholders['{order_number}'] = $this->object->get_order_number();
|
78 |
-
}
|
79 |
-
|
80 |
-
if ( $this->is_enabled() && $this->get_delivered_recipient() ) {
|
81 |
-
$this->send( $this->get_delivered_recipient(), $this->get_subject(), $this->get_content(), $this->get_headers(), $this->get_attachments() );
|
82 |
-
}
|
83 |
-
|
84 |
-
$this->restore_locale();
|
85 |
-
}
|
86 |
-
|
87 |
-
/**
|
88 |
-
* Get email subject.
|
89 |
-
*
|
90 |
-
* @since 3.1.0
|
91 |
-
* @return string
|
92 |
-
*/
|
93 |
-
public function get_default_subject() {
|
94 |
-
return __( 'Your {site_title} order is now delivered', 'woo-advanced-shipment-tracking' );
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* Get email heading.
|
99 |
-
*
|
100 |
-
* @since 3.1.0
|
101 |
-
* @return string
|
102 |
-
*/
|
103 |
-
public function get_default_heading() {
|
104 |
-
return __( 'Thanks for shopping with us', 'woocommerce' );
|
105 |
-
}
|
106 |
-
|
107 |
-
/**
|
108 |
-
* Get content html.
|
109 |
-
*
|
110 |
-
* @return string
|
111 |
-
*/
|
112 |
-
public function get_content_html() {
|
113 |
-
$template = $this->get_template( 'template_html' );
|
114 |
-
$local_file = $this->get_theme_template_file( $template );
|
115 |
-
|
116 |
-
if ( file_exists( $local_file ) && is_writable( $local_file )){
|
117 |
-
//echo $local_file;exit;
|
118 |
-
return wc_get_template_html(
|
119 |
-
$this->template_html,
|
120 |
-
array(
|
121 |
-
'order' => $this->object,
|
122 |
-
'email_heading' => $this->get_heading(),
|
123 |
-
'sent_to_admin' => false,
|
124 |
-
'plain_text' => false,
|
125 |
-
'email' => $this,
|
126 |
-
)
|
127 |
-
);
|
128 |
-
} else{
|
129 |
-
$order = $this->object;
|
130 |
-
$order_id = $order->get_id();
|
131 |
-
$mailer = WC()->mailer();
|
132 |
-
|
133 |
-
$email_heading = $this->get_heading();
|
134 |
-
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
135 |
-
$wcast_initialise_customizer_email = new wcast_initialise_customizer_email;
|
136 |
-
//ob_start();
|
137 |
-
$woocommerce_customer_delivered_order_settings = get_option('woocommerce_customer_delivered_order_settings');
|
138 |
-
|
139 |
-
|
140 |
-
$email_content = $ast->get_option_value_from_array('woocommerce_customer_delivered_order_settings','wcast_delivered_email_content',$wcast_initialise_customizer_email->defaults['wcast_delivered_email_content']);
|
141 |
-
|
142 |
-
$wcast_show_tracking_details = $ast->get_option_value_from_array('woocommerce_customer_delivered_order_settings','wcast_show_tracking_details','');
|
143 |
-
$wcast_show_order_details = $ast->get_option_value_from_array('woocommerce_customer_delivered_order_settings','wcast_show_order_details','');
|
144 |
-
$wcast_show_billing_address = $ast->get_option_value_from_array('woocommerce_customer_delivered_order_settings','wcast_show_billing_address','');
|
145 |
-
$wcast_show_shipping_address = $ast->get_option_value_from_array('woocommerce_customer_delivered_order_settings','wcast_show_shipping_address','');
|
146 |
-
|
147 |
-
$message = wc_advanced_shipment_tracking_email_class()->email_content($email_content,$order_id,$order);
|
148 |
-
|
149 |
-
$wcast_enable_delivered_ga_tracking = $ast->get_option_value_from_array('woocommerce_customer_delivered_order_settings','wcast_enable_delivered_ga_tracking','');
|
150 |
-
$wcast_delivered_analytics_link = $ast->get_option_value_from_array('woocommerce_customer_delivered_order_settings','wcast_delivered_analytics_link','');
|
151 |
-
|
152 |
-
if($wcast_delivered_analytics_link && $wcast_enable_delivered_ga_tracking == 1){
|
153 |
-
$regex = '#(<a href=")([^"]*)("[^>]*?>)#i';
|
154 |
-
$message = preg_replace_callback($regex, array( $this, '_appendCampaignToString'), $message);
|
155 |
-
}
|
156 |
-
|
157 |
-
$wast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
|
158 |
-
$sent_to_admin = false;
|
159 |
-
$plain_text = false;
|
160 |
-
|
161 |
-
ob_start();
|
162 |
-
do_action( 'wcast_email_before_email_content', $order, $sent_to_admin, $plain_text, $this );
|
163 |
-
$message .= ob_get_clean();
|
164 |
-
|
165 |
-
if($wcast_show_tracking_details == 1){
|
166 |
-
ob_start();
|
167 |
-
$local_template = get_stylesheet_directory().'/woocommerce/emails/tracking-info.php';
|
168 |
-
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
169 |
-
wc_get_template( 'emails/tracking-info.php', array(
|
170 |
-
'tracking_items' => $wast->get_tracking_items( $order_id, true ),
|
171 |
-
'order_id'=> $order_id
|
172 |
-
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
173 |
-
} else{
|
174 |
-
wc_get_template( 'emails/tracking-info.php', array(
|
175 |
-
'tracking_items' => $wast->get_tracking_items( $order_id, true ),
|
176 |
-
'order_id' => $order_id
|
177 |
-
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
178 |
-
}
|
179 |
-
$message .= ob_get_clean();
|
180 |
-
}
|
181 |
-
|
182 |
-
if($wcast_show_order_details == 1){
|
183 |
-
ob_start();
|
184 |
-
wc_get_template(
|
185 |
-
'emails/wcast-email-order-details.php', array(
|
186 |
-
'order' => $order,
|
187 |
-
'sent_to_admin' => $sent_to_admin,
|
188 |
-
'plain_text' => $plain_text,
|
189 |
-
'email' => $this,
|
190 |
-
),
|
191 |
-
'woocommerce-advanced-shipment-tracking/',
|
192 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
193 |
-
);
|
194 |
-
$message .= ob_get_clean();
|
195 |
-
}
|
196 |
-
|
197 |
-
if($wcast_show_billing_address == 1){
|
198 |
-
ob_start();
|
199 |
-
wc_get_template(
|
200 |
-
'emails/wcast-billing-email-addresses.php', array(
|
201 |
-
'order' => $order,
|
202 |
-
'sent_to_admin' => $sent_to_admin,
|
203 |
-
),
|
204 |
-
'woocommerce-advanced-shipment-tracking/',
|
205 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
206 |
-
);
|
207 |
-
$message .= ob_get_clean();
|
208 |
-
}
|
209 |
-
|
210 |
-
if($wcast_show_shipping_address == 1){
|
211 |
-
ob_start();
|
212 |
-
wc_get_template(
|
213 |
-
'emails/wcast-shipping-email-addresses.php', array(
|
214 |
-
'order' => $order,
|
215 |
-
'sent_to_admin' => $sent_to_admin,
|
216 |
-
),
|
217 |
-
'woocommerce-advanced-shipment-tracking/',
|
218 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
219 |
-
);
|
220 |
-
$message .= ob_get_clean();
|
221 |
-
}
|
222 |
-
ob_start();
|
223 |
-
do_action( 'wcast_email_after_email_content', $order, $sent_to_admin, $plain_text, $this );
|
224 |
-
$message .= ob_get_clean();
|
225 |
-
|
226 |
-
// create a new email
|
227 |
-
$email = new WC_Email();
|
228 |
-
$email->id = 'WC_Delivered_email';
|
229 |
-
|
230 |
-
// wrap the content with the email template and then add styles
|
231 |
-
$message = apply_filters( 'woocommerce_mail_content', $email->style_inline( $mailer->wrap_message( $email_heading, $message ) ) );
|
232 |
-
return $message;
|
233 |
-
}
|
234 |
-
}
|
235 |
-
|
236 |
-
/**
|
237 |
-
* code for append analytics link into rl inside email content.
|
238 |
-
*/
|
239 |
-
public function _appendCampaignToString($match){
|
240 |
-
$woocommerce_customer_delivered_order_settings = get_option('woocommerce_customer_delivered_order_settings');
|
241 |
-
$url = $match[2];
|
242 |
-
if (strpos($url, '?') === false) {
|
243 |
-
$url .= '?';
|
244 |
-
}
|
245 |
-
$url .= $woocommerce_customer_delivered_order_settings['wcast_delivered_analytics_link'];
|
246 |
-
return $match[1].$url.$match[3];
|
247 |
-
}
|
248 |
-
|
249 |
-
/**
|
250 |
-
* Initialise settings form fields.
|
251 |
-
*/
|
252 |
-
public function init_form_fields() {
|
253 |
-
$this->form_fields = array(
|
254 |
-
'enabled' => array(
|
255 |
-
'title' => __( 'Enable/Disable', 'woocommerce' ),
|
256 |
-
'type' => 'checkbox',
|
257 |
-
'label' => __( 'Enable this email notification', 'woocommerce' ),
|
258 |
-
'default' => 'yes',
|
259 |
-
),
|
260 |
-
'recipient' => array(
|
261 |
-
'title' => __( 'Recipient(s)', 'woocommerce' ),
|
262 |
-
'type' => 'text',
|
263 |
-
/* translators: %s: WP admin email */
|
264 |
-
'description' => sprintf( __( 'Enter recipients (comma separated) for this email. Defaults to %s.', 'woocommerce' ), '<code>' . esc_attr( get_option( 'admin_email' ) ) . '</code>' ),
|
265 |
-
'placeholder' => '',
|
266 |
-
'default' => '{customer_email}',
|
267 |
-
'desc_tip' => true,
|
268 |
-
),
|
269 |
-
'subject' => array(
|
270 |
-
'title' => __( 'Subject', 'woocommerce' ),
|
271 |
-
'type' => 'text',
|
272 |
-
'desc_tip' => true,
|
273 |
-
/* translators: %s: list of placeholders */
|
274 |
-
'description' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_date}, {order_number}',
|
275 |
-
'placeholder' => $this->get_default_subject(),
|
276 |
-
'default' => '',
|
277 |
-
),
|
278 |
-
'heading' => array(
|
279 |
-
'title' => __( 'Email heading', 'woocommerce' ),
|
280 |
-
'type' => 'text',
|
281 |
-
'desc_tip' => true,
|
282 |
-
/* translators: %s: list of placeholders */
|
283 |
-
'description' => __( 'Available variables:', 'woo-advanced-shipment-tracking' ).' {site_title}, {order_date}, {order_number}',
|
284 |
-
'placeholder' => $this->get_default_heading(),
|
285 |
-
'default' => '',
|
286 |
-
),
|
287 |
-
'email_type' => array(
|
288 |
-
'title' => __( 'Email type', 'woocommerce' ),
|
289 |
-
'type' => 'select',
|
290 |
-
'description' => __( 'Choose which format of email to send.', 'woocommerce' ),
|
291 |
-
'default' => 'html',
|
292 |
-
'class' => 'email_type wc-enhanced-select',
|
293 |
-
'options' => $this->get_email_type_options(),
|
294 |
-
'desc_tip' => true,
|
295 |
-
),
|
296 |
-
'edit_in_customizer' => array(
|
297 |
-
'type' => 'title',
|
298 |
-
'description' => '<a href="'.wcast_initialise_customizer_email::get_customizer_url( 'custom_order_status_email','delivered' ).'" >'.__( 'Click Here', 'woo-advanced-shipment-tracking' ).'</a>',
|
299 |
-
'title' => __( 'Edit in customizer', 'woo-advanced-shipment-tracking' ),
|
300 |
-
),
|
301 |
-
);
|
302 |
-
}
|
303 |
-
}
|
304 |
-
|
305 |
-
endif;
|
306 |
-
|
307 |
-
return new WC_Email_Customer_Delivered_Order();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/trackship-email-manager.php
CHANGED
@@ -36,13 +36,9 @@ class WC_TrackShip_Email_Manager {
|
|
36 |
foreach($email_to as $email){
|
37 |
$email_heading = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_email_heading',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_heading']);
|
38 |
|
39 |
-
$email_content = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_email_content',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_content']);
|
40 |
|
41 |
-
$
|
42 |
-
|
43 |
-
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_show_order_details','');
|
44 |
-
|
45 |
-
$wcast_show_billing_address = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_show_billing_address','');
|
46 |
|
47 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_show_shipping_address','');
|
48 |
|
@@ -69,27 +65,25 @@ class WC_TrackShip_Email_Manager {
|
|
69 |
unset($tracking_items[$key]);
|
70 |
}
|
71 |
}
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
$message .= ob_get_clean();
|
92 |
-
}
|
93 |
|
94 |
if($wcast_show_order_details == 1){
|
95 |
ob_start();
|
@@ -104,20 +98,7 @@ class WC_TrackShip_Email_Manager {
|
|
104 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
105 |
);
|
106 |
$message .= ob_get_clean();
|
107 |
-
}
|
108 |
-
|
109 |
-
if($wcast_show_billing_address == 1){
|
110 |
-
ob_start();
|
111 |
-
wc_get_template(
|
112 |
-
'emails/wcast-billing-email-addresses.php', array(
|
113 |
-
'order' => $order,
|
114 |
-
'sent_to_admin' => $sent_to_admin,
|
115 |
-
),
|
116 |
-
'woocommerce-advanced-shipment-tracking/',
|
117 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
118 |
-
);
|
119 |
-
$message .= ob_get_clean();
|
120 |
-
}
|
121 |
|
122 |
if($wcast_show_shipping_address == 1){
|
123 |
ob_start();
|
@@ -176,9 +157,7 @@ class WC_TrackShip_Email_Manager {
|
|
176 |
|
177 |
$wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_tracking_details',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_tracking_details']);
|
178 |
|
179 |
-
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_order_details',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_order_details']);
|
180 |
-
|
181 |
-
$wcast_show_billing_address = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_billing_address',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_billing_address']);
|
182 |
|
183 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_shipping_address',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_shipping_address']);
|
184 |
|
@@ -212,14 +191,14 @@ class WC_TrackShip_Email_Manager {
|
|
212 |
wc_get_template( 'emails/tracking-info.php', array(
|
213 |
'tracking_items' => $tracking_items,
|
214 |
'order_id' => $order_id,
|
215 |
-
'show_shipment_status' =>
|
216 |
'new_status' => $new_status,
|
217 |
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
218 |
} else{
|
219 |
wc_get_template( 'emails/tracking-info.php', array(
|
220 |
'tracking_items' => $tracking_items,
|
221 |
'order_id' => $order_id,
|
222 |
-
'show_shipment_status' =>
|
223 |
'new_status' => $new_status,
|
224 |
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
225 |
}
|
@@ -240,20 +219,7 @@ class WC_TrackShip_Email_Manager {
|
|
240 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
241 |
);
|
242 |
$message .= ob_get_clean();
|
243 |
-
}
|
244 |
-
|
245 |
-
if($wcast_show_billing_address == 1){
|
246 |
-
ob_start();
|
247 |
-
wc_get_template(
|
248 |
-
'emails/wcast-billing-email-addresses.php', array(
|
249 |
-
'order' => $order,
|
250 |
-
'sent_to_admin' => $sent_to_admin,
|
251 |
-
),
|
252 |
-
'woocommerce-advanced-shipment-tracking/',
|
253 |
-
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
254 |
-
);
|
255 |
-
$message .= ob_get_clean();
|
256 |
-
}
|
257 |
|
258 |
if($wcast_show_shipping_address == 1){
|
259 |
ob_start();
|
36 |
foreach($email_to as $email){
|
37 |
$email_heading = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_email_heading',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_heading']);
|
38 |
|
39 |
+
$email_content = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_email_content',$wcast_status_customizer_email->defaults['wcast_'.$status.'_email_content']);
|
40 |
|
41 |
+
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_show_order_details','');
|
|
|
|
|
|
|
|
|
42 |
|
43 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_'.$status.'_email_settings','wcast_'.$status.'_show_shipping_address','');
|
44 |
|
65 |
unset($tracking_items[$key]);
|
66 |
}
|
67 |
}
|
68 |
+
|
69 |
+
ob_start();
|
70 |
+
$local_template = get_stylesheet_directory().'/woocommerce/emails/tracking-info.php';
|
71 |
+
if ( file_exists( $local_template ) && is_writable( $local_template )){
|
72 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
73 |
+
'tracking_items' => $tracking_items,
|
74 |
+
'order_id' => $order_id,
|
75 |
+
'show_shipment_status' => true,
|
76 |
+
'new_status' => $new_status,
|
77 |
+
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
78 |
+
} else{
|
79 |
+
wc_get_template( 'emails/tracking-info.php', array(
|
80 |
+
'tracking_items' => $tracking_items,
|
81 |
+
'order_id' => $order_id,
|
82 |
+
'show_shipment_status' => true,
|
83 |
+
'new_status' => $new_status,
|
84 |
+
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
85 |
+
}
|
86 |
+
$message .= ob_get_clean();
|
|
|
|
|
87 |
|
88 |
if($wcast_show_order_details == 1){
|
89 |
ob_start();
|
98 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
99 |
);
|
100 |
$message .= ob_get_clean();
|
101 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
if($wcast_show_shipping_address == 1){
|
104 |
ob_start();
|
157 |
|
158 |
$wcast_show_tracking_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_tracking_details',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_tracking_details']);
|
159 |
|
160 |
+
$wcast_show_order_details = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_order_details',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_order_details']);
|
|
|
|
|
161 |
|
162 |
$wcast_show_shipping_address = $ast->get_option_value_from_array('wcast_delivered_email_settings','wcast_delivered_status_show_shipping_address',$wcast_delivered_customizer_email->defaults['wcast_delivered_status_show_shipping_address']);
|
163 |
|
191 |
wc_get_template( 'emails/tracking-info.php', array(
|
192 |
'tracking_items' => $tracking_items,
|
193 |
'order_id' => $order_id,
|
194 |
+
'show_shipment_status' => true,
|
195 |
'new_status' => $new_status,
|
196 |
), 'woocommerce-advanced-shipment-tracking/', get_stylesheet_directory() . '/woocommerce/' );
|
197 |
} else{
|
198 |
wc_get_template( 'emails/tracking-info.php', array(
|
199 |
'tracking_items' => $tracking_items,
|
200 |
'order_id' => $order_id,
|
201 |
+
'show_shipment_status' => true,
|
202 |
'new_status' => $new_status,
|
203 |
), 'woocommerce-advanced-shipment-tracking/', wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/' );
|
204 |
}
|
219 |
wc_advanced_shipment_tracking()->get_plugin_path() . '/templates/'
|
220 |
);
|
221 |
$message .= ob_get_clean();
|
222 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
|
224 |
if($wcast_show_shipping_address == 1){
|
225 |
ob_start();
|
includes/views/admin_options_addons.php
CHANGED
@@ -4,105 +4,98 @@
|
|
4 |
*/
|
5 |
$more_plugins = array(
|
6 |
0 => array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
'title' => 'SMS for WooCommerce',
|
8 |
'description' => 'Keep your customers informed by sending them automated SMS text messages with order & delivery updates. You can send SMS notifications to customers when the order status is updated or when the shipment is out for delivery and more…',
|
9 |
'image' => 'smswoo-addons-icon.jpg',
|
10 |
-
'url' => 'https://www.zorem.com/
|
11 |
-
'file' => 'sms-for-woocommerce/sms-for-woocommerce.php'
|
|
|
12 |
),
|
13 |
-
|
14 |
'title' => 'Country Based Restrictions Pro',
|
15 |
'description' => 'The country-based restrictions plugin by zorem works by the WooCommerce Geolocation or the shipping country added by the customer and allows you to restrict products on your store to sell or not to sell to specific countries.',
|
16 |
'image' => 'cbr-icon.png',
|
17 |
-
'url' => 'https://www.zorem.com/
|
18 |
-
'file' => 'country-base-restrictions-pro-addon/country-base-restrictions-pro-addon.php'
|
|
|
19 |
),
|
20 |
-
|
21 |
'title' => 'Advanced Order Status Manager',
|
22 |
'description' => 'The Advanced Order Status Manager allows store owners to manage the WooCommerce orders statuses, create, edit, and delete custom Custom Order Statuses and integrate them into the WooCommerce orders flow.',
|
23 |
'image' => 'AOSM-addons-icon.jpg',
|
24 |
-
'url' => 'https://www.zorem.com/
|
25 |
-
'file' => 'advanced-order-status-manager/advanced-order-status-manager.php'
|
|
|
26 |
),
|
27 |
-
|
28 |
'title' => 'Sales Report Email Pro',
|
29 |
'description' => 'The Sales Report Email Pro will help know how well your store is performing and how your products are selling by sending you a daily, weekly, or monthly sales report by email, directly from your WooCommerce store.',
|
30 |
'image' => 'sre-icon.png',
|
31 |
-
'url' => 'https://www.zorem.com/
|
32 |
-
'file' => 'sales-report-email-pro-addon/sales-report-email-pro-addon.php'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
),
|
34 |
);
|
35 |
|
36 |
-
|
37 |
-
$pro_plugins = array(
|
38 |
0 => array(
|
39 |
'title' => 'Tracking Per Item Add-on',
|
40 |
'description' => 'The Tracking per item is add-on for the Advanced Shipment Tracking for WooCommerce plugin that lets you attach tracking numbers to line items and to line item quantities.',
|
41 |
-
'url' => 'https://www.zorem.com/
|
42 |
-
'image' => 'tpi-icon.png',
|
43 |
-
|
|
|
|
|
44 |
1 => array(
|
45 |
-
'title' => '
|
46 |
-
'description' => '
|
47 |
-
'url' => 'https://www.zorem.com/
|
48 |
-
'image' => '
|
49 |
-
|
50 |
-
|
51 |
-
'title' => 'Advanced Order Status Manager',
|
52 |
-
'description' => 'The Advanced Order Status Manager allows store owners to manage the WooCommerce orders statuses, create, edit, and delete custom Custom Order Statuses and integrate them into the WooCommerce orders flow.',
|
53 |
-
'url' => 'https://www.zorem.com/products/advanced-order-status-manager/',
|
54 |
-
'image' => 'AOSM-banner.png',
|
55 |
-
),
|
56 |
-
3 => array(
|
57 |
-
'title' => 'Country Based Restriction Pro',
|
58 |
-
'description' => 'The country-based restrictions plugin by zorem works by the WooCommerce Geolocation or the shipping country added by the customer and allows you to restrict products on your store to sell or not to sell to specific countries.',
|
59 |
-
'url' => 'https://www.zorem.com/products/country-based-restriction-pro/',
|
60 |
-
'image' => 'cbr-banner.png',
|
61 |
-
),
|
62 |
-
4 => array(
|
63 |
-
'title' => 'Sales Report Email Pro',
|
64 |
-
'description' => 'The Sales Report Email Pro will help know how well your store is performing and how your products are selling by sending you a daily, weekly, or monthly sales report by email, directly from your WooCommerce store.',
|
65 |
-
'url' => 'https://www.zorem.com/products/sales-report-email-for-woocommerce/',
|
66 |
-
'image' => 'sre-banner.png',
|
67 |
),
|
68 |
);
|
69 |
-
|
70 |
-
$ast_addons = array(
|
71 |
-
0 => array(
|
72 |
-
'title' => 'Tracking Per Item Add-on',
|
73 |
-
'description' => 'The Tracking per item is add-on for the Advanced Shipment Tracking for WooCommerce plugin that lets you attach tracking numbers to line items and to line item quantities.',
|
74 |
-
'url' => 'https://www.zorem.com/products/tracking-per-item-ast-add-on/',
|
75 |
-
'image' => 'tpi-addon-icon.jpg',
|
76 |
-
'file' => 'ast-tracking-per-order-items/ast-tracking-per-order-items.php'
|
77 |
-
),
|
78 |
1 => array(
|
79 |
'title' => 'WC Shipping Tracking Add-on',
|
80 |
'description' => 'Add Advanced Shipment Tracking for WooCommerce Compatibility with WooCommerce Services plugin.',
|
81 |
'url' => 'https://www.zorem.com/product/wc-shipping-tracking-add-on/',
|
82 |
'image' => 'wc-addon-banner.jpg',
|
83 |
-
'file' => 'ast-compatibility-with-wc-shipstation/ast-compatibility-with-wc-shipstation.php'
|
|
|
84 |
),
|
85 |
2 => array(
|
86 |
'title' => 'ShipStation Tracking Add-on',
|
87 |
'description' => 'Add Advanced Shipment Tracking for WooCommerce Compatibility with WooCommerce ShipStation Integration plugin.',
|
88 |
'url' => 'https://www.zorem.com/product/shipstation-tracking-add-on/',
|
89 |
'image' => 'shipstations-addon-banner.jpg',
|
90 |
-
'file' => 'ast-compatibility-with-wc-shipstation/ast-compatibility-with-wc-shipstation.php'
|
|
|
91 |
),
|
92 |
3 => array(
|
93 |
'title' => 'ReadyToShip Tracking Add-on',
|
94 |
'description' => 'This plugin extends the API to work with Advanced Shipment Tracking for WooCommerce(AST) module, allowing for tracking numbers to be added and retrieved via the API',
|
95 |
'url' => 'https://www.zorem.com/product/readytoship-tracking-add-on/',
|
96 |
'image' => 'readytoship-addon-banner.jpg',
|
97 |
-
'file' => 'ready-to-ship-ast-Integration/ready-to-ship-ast-Integration.php'
|
98 |
-
|
99 |
-
|
100 |
-
'title' => 'PayPal Tracking Add-on',
|
101 |
-
'description' => 'This add-on extends the Advanced shipment tracking plugin and will automatically send tracking numbers and associated information from WooCommerce to PayPal using the PayPal API.',
|
102 |
-
'url' => 'https://www.zorem.com/product/paypal-tracking-add-on/',
|
103 |
-
'image' => 'paypal-addon-banner.jpg',
|
104 |
-
'file' => 'paypal-tracking-add-on-for-ast/paypal-tracking-add-on-for-ast.php'
|
105 |
-
),
|
106 |
);
|
107 |
|
108 |
|
@@ -114,7 +107,7 @@ $wc_ast_api_key = get_option('wc_ast_api_key');
|
|
114 |
<?php
|
115 |
$show_addons_tab = apply_filters( 'ast_show_addons_tab', false );
|
116 |
|
117 |
-
if ( class_exists( '
|
118 |
$show_addons_tab = true;
|
119 |
} elseif ( class_exists( 'ast_compatibility_with_wc_shipstation' ) ) {
|
120 |
$show_addons_tab = true;
|
@@ -131,67 +124,35 @@ $wc_ast_api_key = get_option('wc_ast_api_key');
|
|
131 |
<label for="tab_addons" class="inner_tab_label"><?php _e( 'Add-ons', 'woo-advanced-shipment-tracking' ); ?></label>
|
132 |
|
133 |
<input id="tab_license" type="radio" name="inner_tabs" class="inner_tab_input" data-tab="license">
|
134 |
-
<label for="tab_license" class="inner_tab_label"><?php _e( 'License', 'woo-advanced-shipment-tracking' ); ?></label>
|
135 |
-
|
136 |
-
|
137 |
-
<label for="tab_addons" class="inner_tab_label single_tab_label"><?php _e( 'Add-ons', 'woo-advanced-shipment-tracking' ); ?></label>
|
138 |
-
<hr class="inner_tabs_hr">
|
139 |
-
<?php } ?>
|
140 |
<section id="content_tab_addons" class="<?php if ( $show_addons_tab ) { ?>inner_tab_section<?php } ?>">
|
141 |
|
142 |
-
<div class="section-content trackship_addon_section">
|
143 |
-
<div class="ts_row">
|
144 |
-
<div class="ts_col_8">
|
145 |
-
<div class="ts_col_inner">
|
146 |
-
<div class="ts_addon_logo_section">
|
147 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/trackship-logo.png">
|
148 |
-
<span class="dashicons dashicons-plus"></span>
|
149 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ast-logo.png">
|
150 |
-
</div>
|
151 |
-
<h1 class="ts_landing_header">Spend less time on managing and more on marketing</h1>
|
152 |
-
<p class="ts_landing_description">Trackship is a Multi-Carrier Shipment Tracking API that seamlessly integrates into your WooCommerce store and auto-tracks your shipments, automates your orders workflow, reduces the time spent on customer service and lets you provide a superior post-purchase experience to your customers.</p>
|
153 |
-
<a href="javascript:void(0);" target="_self" class="button-primary btn_ts_transparent btn_large open_ts_video"><span><?php _e('Watch Video', 'woo-advanced-shipment-tracking'); ?></span><span class="dashicons dashicons-video-alt3"></span></a>
|
154 |
-
<?php if($wc_ast_api_key){ ?>
|
155 |
-
<a href="https://trackship.info/my-account/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" class="button-primary btn_green2 btn_large" target="_blank" ><?php _e( 'Account Dashboard', 'woo-advanced-shipment-tracking' ); ?></a>
|
156 |
-
<?php } else{ ?>
|
157 |
-
<a href="https://trackship.info/?utm_source=wpadmin&utm_campaign=tspage" target="_blank" class="button-primary btn_green2 btn_large"><span><?php _e('Start your free trial', 'woo-advanced-shipment-tracking'); ?></span></a>
|
158 |
-
<?php } ?>
|
159 |
-
</div>
|
160 |
-
</div>
|
161 |
-
<div class="ts_col_4">
|
162 |
-
<div class="ts_col_inner ts_landing_banner">
|
163 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ts-header-banner.png">
|
164 |
-
</div>
|
165 |
-
</div>
|
166 |
-
</div>
|
167 |
-
</div>
|
168 |
-
|
169 |
<div class="plugins_section free_plugin_section">
|
170 |
-
<?php foreach($
|
171 |
<div class="single_plugin">
|
172 |
<div class="free_plugin_inner">
|
173 |
-
<div class="
|
174 |
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/<?php echo $plugin['image']; ?>">
|
175 |
</div>
|
176 |
-
<div class="
|
177 |
<h3 class="plugin_title"><?php echo $plugin['title']; ?></h3>
|
178 |
<p><?php echo $plugin['description']; ?></p>
|
179 |
<?php
|
180 |
if ( is_plugin_active( $plugin['file'] ) ) { ?>
|
181 |
-
<button type="button" class="button button-
|
182 |
<?php } else{ ?>
|
183 |
-
<a href="<?php echo $plugin['url']; ?>" class="
|
184 |
-
<?php } ?>
|
185 |
</div>
|
186 |
-
</div>
|
187 |
</div>
|
188 |
-
<?php } ?>
|
189 |
-
</div>
|
190 |
-
|
191 |
-
<h2 class="addons_page_title">More WooCommerce plugins by zorem</h2>
|
192 |
|
193 |
<div class="plugins_section free_plugin_section">
|
194 |
-
<?php foreach($
|
195 |
<div class="single_plugin">
|
196 |
<div class="free_plugin_inner">
|
197 |
<div class="plugin_image">
|
@@ -202,14 +163,43 @@ $wc_ast_api_key = get_option('wc_ast_api_key');
|
|
202 |
<p><?php echo $plugin['description']; ?></p>
|
203 |
<?php
|
204 |
if ( is_plugin_active( $plugin['file'] ) ) { ?>
|
205 |
-
<button type="button" class="button button-
|
206 |
<?php } else{ ?>
|
207 |
-
<a href="<?php echo $plugin['url']; ?>" class="
|
208 |
<?php } ?>
|
209 |
</div>
|
210 |
</div>
|
211 |
</div>
|
212 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
</div>
|
214 |
</section>
|
215 |
|
4 |
*/
|
5 |
$more_plugins = array(
|
6 |
0 => array(
|
7 |
+
'title' => 'Advanced Local Pickup Pro',
|
8 |
+
'description' => 'The Advanced Local Pickup (ALP) helps you manage the local pickup orders workflow more conveniently by extending the WooCommerce Local Pickup shipping method. The Pro you set up multiple pickup locations, , split the business hours, apply discounts by pickup location, display local pickup message on the products pages, allow customers to choose pickup location per product, force products to be local pickup only and more…',
|
9 |
+
'image' => 'alp-icon.png',
|
10 |
+
'url' => 'https://www.zorem.com/product/advanced-local-pickup-for-woocommerce/',
|
11 |
+
'file' => 'advanced-local-pickup-pro/advanced-local-pickup-pro.php',
|
12 |
+
'price' => 79,
|
13 |
+
),
|
14 |
+
1 => array(
|
15 |
'title' => 'SMS for WooCommerce',
|
16 |
'description' => 'Keep your customers informed by sending them automated SMS text messages with order & delivery updates. You can send SMS notifications to customers when the order status is updated or when the shipment is out for delivery and more…',
|
17 |
'image' => 'smswoo-addons-icon.jpg',
|
18 |
+
'url' => 'https://www.zorem.com/product/sms-for-woocommerce/',
|
19 |
+
'file' => 'sms-for-woocommerce/sms-for-woocommerce.php',
|
20 |
+
'price' => 59,
|
21 |
),
|
22 |
+
2 => array(
|
23 |
'title' => 'Country Based Restrictions Pro',
|
24 |
'description' => 'The country-based restrictions plugin by zorem works by the WooCommerce Geolocation or the shipping country added by the customer and allows you to restrict products on your store to sell or not to sell to specific countries.',
|
25 |
'image' => 'cbr-icon.png',
|
26 |
+
'url' => 'https://www.zorem.com/product/country-based-restriction-pro/',
|
27 |
+
'file' => 'country-base-restrictions-pro-addon/country-base-restrictions-pro-addon.php',
|
28 |
+
'price' => 59,
|
29 |
),
|
30 |
+
3 => array(
|
31 |
'title' => 'Advanced Order Status Manager',
|
32 |
'description' => 'The Advanced Order Status Manager allows store owners to manage the WooCommerce orders statuses, create, edit, and delete custom Custom Order Statuses and integrate them into the WooCommerce orders flow.',
|
33 |
'image' => 'AOSM-addons-icon.jpg',
|
34 |
+
'url' => 'https://www.zorem.com/product/advanced-order-status-manager/',
|
35 |
+
'file' => 'advanced-order-status-manager/advanced-order-status-manager.php',
|
36 |
+
'price' => 49,
|
37 |
),
|
38 |
+
4 => array(
|
39 |
'title' => 'Sales Report Email Pro',
|
40 |
'description' => 'The Sales Report Email Pro will help know how well your store is performing and how your products are selling by sending you a daily, weekly, or monthly sales report by email, directly from your WooCommerce store.',
|
41 |
'image' => 'sre-icon.png',
|
42 |
+
'url' => 'https://www.zorem.com/product/sales-report-email-for-woocommerce/',
|
43 |
+
'file' => 'sales-report-email-pro-addon/sales-report-email-pro-addon.php',
|
44 |
+
'price' => 59,
|
45 |
+
),
|
46 |
+
5 => array(
|
47 |
+
'title' => 'Sales Report By Country',
|
48 |
+
'description' => 'This plugin simply adds a report tab to display sales report by country WooCommerce Reports. The plugin adds an additional report tab which display sales report by country. You’ll find this report available in WooCommerce reports section.',
|
49 |
+
'image' => 'src-icon.png',
|
50 |
+
'url' => 'https://www.zorem.com/product/woocommerce-sales-report-by-country/',
|
51 |
+
'file' => 'woo-sales-by-country-reports/woocommerce-sales-by-country-report.php',
|
52 |
+
'price' => '',
|
53 |
),
|
54 |
);
|
55 |
|
56 |
+
$ast_paid_addons = array(
|
|
|
57 |
0 => array(
|
58 |
'title' => 'Tracking Per Item Add-on',
|
59 |
'description' => 'The Tracking per item is add-on for the Advanced Shipment Tracking for WooCommerce plugin that lets you attach tracking numbers to line items and to line item quantities.',
|
60 |
+
'url' => 'https://www.zorem.com/product/tracking-per-item-ast-add-on/',
|
61 |
+
'image' => 'tpi-addon-icon.png',
|
62 |
+
'file' => 'ast-tracking-per-order-items/ast-tracking-per-order-items.php',
|
63 |
+
'price' => 59,
|
64 |
+
),
|
65 |
1 => array(
|
66 |
+
'title' => 'PayPal Tracking Add-on',
|
67 |
+
'description' => 'This add-on extends the Advanced shipment tracking plugin and will automatically send tracking numbers and associated information from WooCommerce to PayPal using the PayPal API.',
|
68 |
+
'url' => 'https://www.zorem.com/product/paypal-tracking-add-on/',
|
69 |
+
'image' => 'paypal-addon-banner.png',
|
70 |
+
'file' => 'paypal-tracking-add-on-for-ast/paypal-tracking-add-on-for-ast.php',
|
71 |
+
'price' => 49,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
),
|
73 |
);
|
74 |
+
$ast_addons = array(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
1 => array(
|
76 |
'title' => 'WC Shipping Tracking Add-on',
|
77 |
'description' => 'Add Advanced Shipment Tracking for WooCommerce Compatibility with WooCommerce Services plugin.',
|
78 |
'url' => 'https://www.zorem.com/product/wc-shipping-tracking-add-on/',
|
79 |
'image' => 'wc-addon-banner.jpg',
|
80 |
+
'file' => 'ast-compatibility-with-wc-shipstation/ast-compatibility-with-wc-shipstation.php',
|
81 |
+
'price' => 49,
|
82 |
),
|
83 |
2 => array(
|
84 |
'title' => 'ShipStation Tracking Add-on',
|
85 |
'description' => 'Add Advanced Shipment Tracking for WooCommerce Compatibility with WooCommerce ShipStation Integration plugin.',
|
86 |
'url' => 'https://www.zorem.com/product/shipstation-tracking-add-on/',
|
87 |
'image' => 'shipstations-addon-banner.jpg',
|
88 |
+
'file' => 'ast-compatibility-with-wc-shipstation/ast-compatibility-with-wc-shipstation.php',
|
89 |
+
'price' => 49,
|
90 |
),
|
91 |
3 => array(
|
92 |
'title' => 'ReadyToShip Tracking Add-on',
|
93 |
'description' => 'This plugin extends the API to work with Advanced Shipment Tracking for WooCommerce(AST) module, allowing for tracking numbers to be added and retrieved via the API',
|
94 |
'url' => 'https://www.zorem.com/product/readytoship-tracking-add-on/',
|
95 |
'image' => 'readytoship-addon-banner.jpg',
|
96 |
+
'file' => 'ready-to-ship-ast-Integration/ready-to-ship-ast-Integration.php',
|
97 |
+
'price' => 49,
|
98 |
+
),
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
);
|
100 |
|
101 |
|
107 |
<?php
|
108 |
$show_addons_tab = apply_filters( 'ast_show_addons_tab', false );
|
109 |
|
110 |
+
if ( class_exists( 'ast_pro' ) ) {
|
111 |
$show_addons_tab = true;
|
112 |
} elseif ( class_exists( 'ast_compatibility_with_wc_shipstation' ) ) {
|
113 |
$show_addons_tab = true;
|
124 |
<label for="tab_addons" class="inner_tab_label"><?php _e( 'Add-ons', 'woo-advanced-shipment-tracking' ); ?></label>
|
125 |
|
126 |
<input id="tab_license" type="radio" name="inner_tabs" class="inner_tab_input" data-tab="license">
|
127 |
+
<label for="tab_license" class="inner_tab_label"><?php _e( 'License', 'woo-advanced-shipment-tracking' ); ?></label>
|
128 |
+
<?php } ?>
|
129 |
+
|
|
|
|
|
|
|
130 |
<section id="content_tab_addons" class="<?php if ( $show_addons_tab ) { ?>inner_tab_section<?php } ?>">
|
131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
<div class="plugins_section free_plugin_section">
|
133 |
+
<?php foreach($ast_paid_addons as $plugin){ ?>
|
134 |
<div class="single_plugin">
|
135 |
<div class="free_plugin_inner">
|
136 |
+
<div class="paid_plugin_image">
|
137 |
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/<?php echo $plugin['image']; ?>">
|
138 |
</div>
|
139 |
+
<div class="paid_plugin_description">
|
140 |
<h3 class="plugin_title"><?php echo $plugin['title']; ?></h3>
|
141 |
<p><?php echo $plugin['description']; ?></p>
|
142 |
<?php
|
143 |
if ( is_plugin_active( $plugin['file'] ) ) { ?>
|
144 |
+
<button type="button" class="button button button-primary btn_green2">Active</button>
|
145 |
<?php } else{ ?>
|
146 |
+
<a href="<?php echo $plugin['url']; ?>" class="button button-primary btn_ast2" target="blank"><?php _e('From', 'woo-advanced-shipment-tracking'); ?> $<?php echo $plugin['price']; ?></a>
|
147 |
+
<?php } ?>
|
148 |
</div>
|
149 |
+
</div>
|
150 |
</div>
|
151 |
+
<?php } ?>
|
152 |
+
</div>
|
|
|
|
|
153 |
|
154 |
<div class="plugins_section free_plugin_section">
|
155 |
+
<?php foreach($ast_addons as $plugin){ ?>
|
156 |
<div class="single_plugin">
|
157 |
<div class="free_plugin_inner">
|
158 |
<div class="plugin_image">
|
163 |
<p><?php echo $plugin['description']; ?></p>
|
164 |
<?php
|
165 |
if ( is_plugin_active( $plugin['file'] ) ) { ?>
|
166 |
+
<button type="button" class="button button button-primary btn_green2">Active</button>
|
167 |
<?php } else{ ?>
|
168 |
+
<a href="<?php echo $plugin['url']; ?>" class="button button-primary btn_ast2" target="blank"><?php _e('From', 'woo-advanced-shipment-tracking'); ?> $<?php echo $plugin['price']; ?></a>
|
169 |
<?php } ?>
|
170 |
</div>
|
171 |
</div>
|
172 |
</div>
|
173 |
<?php } ?>
|
174 |
+
</div>
|
175 |
+
|
176 |
+
|
177 |
+
<div class="plugins_section zorem_plugin_section">
|
178 |
+
<div class="addons_page_header">
|
179 |
+
<h2 class="addons_page_title">WooCommerce plugins by zorem</h2>
|
180 |
+
<p>Improve your store, automate your workflow and save time managing your store</p>
|
181 |
+
</div>
|
182 |
+
<div class="zorem_plugin_container">
|
183 |
+
<?php foreach($more_plugins as $plugin){ ?>
|
184 |
+
<div class="zorem_single_plugin">
|
185 |
+
<div class="free_plugin_inner">
|
186 |
+
<div class="plugin_image">
|
187 |
+
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/<?php echo $plugin['image']; ?>">
|
188 |
+
</div>
|
189 |
+
<div class="plugin_description">
|
190 |
+
<h3 class="plugin_title"><?php echo $plugin['title']; ?></h3>
|
191 |
+
<p><?php echo $plugin['description']; ?></p>
|
192 |
+
<?php
|
193 |
+
if ( is_plugin_active( $plugin['file'] ) ) { ?>
|
194 |
+
<button type="button" class="button button button-primary btn_green2">Active</button>
|
195 |
+
<?php } else{ ?>
|
196 |
+
<a href="<?php echo $plugin['url']; ?>" class="button button-primary btn_ast2" target="blank"><?php if($plugin['price'] == ''){ echo 'Free'; } else{ _e('From', 'woo-advanced-shipment-tracking'); ?> $<?php echo $plugin['price']; } ?></a>
|
197 |
+
<?php } ?>
|
198 |
+
</div>
|
199 |
+
</div>
|
200 |
+
</div>
|
201 |
+
<?php } ?>
|
202 |
+
</div>
|
203 |
</div>
|
204 |
</section>
|
205 |
|
includes/views/admin_options_bulk_upload.php
CHANGED
@@ -7,8 +7,7 @@
|
|
7 |
<div class="tab_inner_container" style="width: 100%;">
|
8 |
<!-- progressbar -->
|
9 |
<section class="woocommerce-progress-form-wrapper" style="display:block;">
|
10 |
-
<div class="csv_heading_section">
|
11 |
-
<h3 class="border0_heading"><?php _e( 'CSV Import', 'woo-advanced-shipment-tracking' ); ?></h3>
|
12 |
<p><?php _e('Use our CSV Import Tool to bulk Import tracking info to orders from a CSV file', 'woo-advanced-shipment-tracking'); ?></p>
|
13 |
</div>
|
14 |
<ol class="wc-progress-steps">
|
@@ -115,7 +114,10 @@
|
|
115 |
</div>
|
116 |
|
117 |
</form>
|
|
|
|
|
|
|
|
|
118 |
</section>
|
119 |
-
</div>
|
120 |
-
<?php include 'zorem_admin_bulk_upload_sidebar.php';?>
|
121 |
</section>
|
7 |
<div class="tab_inner_container" style="width: 100%;">
|
8 |
<!-- progressbar -->
|
9 |
<section class="woocommerce-progress-form-wrapper" style="display:block;">
|
10 |
+
<div class="csv_heading_section">
|
|
|
11 |
<p><?php _e('Use our CSV Import Tool to bulk Import tracking info to orders from a CSV file', 'woo-advanced-shipment-tracking'); ?></p>
|
12 |
</div>
|
13 |
<ol class="wc-progress-steps">
|
114 |
</div>
|
115 |
|
116 |
</form>
|
117 |
+
<ul class="bulk_upload_documentation_ul">
|
118 |
+
<li><span class="dashicons dashicons-download"></span><a class="" href="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>/assets/tracking.csv"><?php _e('Download sample csv', 'woo-advanced-shipment-tracking'); ?></a></li>
|
119 |
+
<li><span class="dashicons dashicons-media-document"></span><a target="blank" href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/bulk-import-shipment-tracking/"><?php _e('How to import tracking number from CSV files?', 'woo-advanced-shipment-tracking'); ?></a></li>
|
120 |
+
</ul>
|
121 |
</section>
|
122 |
+
</div>
|
|
|
123 |
</section>
|
includes/views/admin_options_osm.php
CHANGED
@@ -1,54 +1,22 @@
|
|
1 |
<form method="post" id="wc_ast_order_status_form" action="" enctype="multipart/form-data">
|
2 |
<div class="custom_order_status_section">
|
3 |
<table class="form-table order-status-table">
|
4 |
-
<tbody>
|
5 |
-
<tr valign="top"
|
6 |
<td class="forminp">
|
7 |
-
<input type="hidden" name="
|
8 |
-
<input class="tgl tgl-flat
|
9 |
-
<label class="tgl-btn" for="
|
10 |
-
</td>
|
11 |
-
<td class="forminp status-label-column">
|
12 |
-
<span class="order-label wc-delivered">
|
13 |
-
<?php
|
14 |
-
if(get_option('wc_ast_status_delivered')){
|
15 |
-
_e( wc_get_order_status_name( 'delivered' ), 'woo-advanced-shipment-tracking' );
|
16 |
-
} else{
|
17 |
-
_e( 'Delivered', 'woo-advanced-shipment-tracking' );
|
18 |
-
} ?>
|
19 |
-
</span>
|
20 |
-
</td>
|
21 |
-
<td class="forminp">
|
22 |
-
<?php
|
23 |
-
$wcast_enable_delivered_email = get_option('woocommerce_customer_delivered_order_settings');
|
24 |
-
|
25 |
-
$delivered_checked = '';
|
26 |
-
|
27 |
-
if(isset( $wcast_enable_delivered_email['enabled'] )){
|
28 |
-
if( $wcast_enable_delivered_email['enabled'] == 'yes' || $wcast_enable_delivered_email['enabled'] == 1 ){
|
29 |
-
$delivered_checked = 'checked';
|
30 |
-
}
|
31 |
-
}
|
32 |
-
?>
|
33 |
-
<fieldset>
|
34 |
-
<input class="input-text regular-input color_input" type="text" name="wc_ast_status_label_color" id="wc_ast_status_label_color" style="" value="<?php echo get_option('wc_ast_status_label_color','#59c889')?>" placeholder="">
|
35 |
-
<select class="select custom_order_color_select" id="wc_ast_status_label_font_color" name="wc_ast_status_label_font_color">
|
36 |
-
<option value="#fff" <?php if(get_option('wc_ast_status_label_font_color','#fff') == '#fff'){ echo 'selected'; }?>><?php _e( 'Light Font', 'woo-advanced-shipment-tracking' ); ?></option>
|
37 |
-
<option value="#000" <?php if(get_option('wc_ast_status_label_font_color','#fff') == '#000'){ echo 'selected'; }?>><?php _e( 'Dark Font', 'woo-advanced-shipment-tracking' ); ?></option>
|
38 |
-
</select>
|
39 |
-
<label class="send_email_label">
|
40 |
-
<input type="hidden" name="wcast_enable_delivered_email" value="0"/>
|
41 |
-
<input type="checkbox" name="wcast_enable_delivered_email" id="wcast_enable_delivered_email" <?php echo $delivered_checked; ?> value="1" class="enable_order_status_email_input"><?php _e( 'Send Email', 'woo-advanced-shipment-tracking' ); ?>
|
42 |
-
</label>
|
43 |
-
<a class='settings_edit' href="<?php echo wcast_initialise_customizer_email::get_customizer_url( 'custom_order_status_email','delivered' ); ?>"><?php _e( 'edit email', 'woocommerce' ) ?></a>
|
44 |
-
</fieldset>
|
45 |
</td>
|
|
|
|
|
|
|
46 |
</tr>
|
47 |
<tr valign="top" class="partial_shipped_row <?php if(!get_option('wc_ast_status_partial_shipped')){echo 'disable_row'; } ?>">
|
48 |
<td class="forminp">
|
49 |
<input type="hidden" name="wc_ast_status_partial_shipped" value="0"/>
|
50 |
-
<input class="tgl tgl-flat order_status_toggle" id="wc_ast_status_partial_shipped" name="wc_ast_status_partial_shipped" type="checkbox" <?php if(get_option('wc_ast_status_partial_shipped')){echo 'checked'; } ?> value="1"/>
|
51 |
-
<label class="tgl-btn" for="wc_ast_status_partial_shipped"></label>
|
52 |
</td>
|
53 |
<td class="forminp status-label-column">
|
54 |
<span class="order-label wc-partially-shipped">
|
@@ -89,8 +57,8 @@
|
|
89 |
<tr valign="top" class="updated_tracking_row <?php if(!get_option('wc_ast_status_updated_tracking')){echo 'disable_row'; } ?>">
|
90 |
<td class="forminp">
|
91 |
<input type="hidden" name="wc_ast_status_updated_tracking" value="0"/>
|
92 |
-
<input class="tgl tgl-flat order_status_toggle" id="wc_ast_status_updated_tracking" name="wc_ast_status_updated_tracking" type="checkbox" <?php if(get_option('wc_ast_status_updated_tracking')){echo 'checked'; } ?> value="1"/>
|
93 |
-
<label class="tgl-btn" for="wc_ast_status_updated_tracking"></label>
|
94 |
</td>
|
95 |
<td class="forminp status-label-column">
|
96 |
<span class="order-label wc-updated-tracking">
|
1 |
<form method="post" id="wc_ast_order_status_form" action="" enctype="multipart/form-data">
|
2 |
<div class="custom_order_status_section">
|
3 |
<table class="form-table order-status-table">
|
4 |
+
<tbody>
|
5 |
+
<tr valign="top">
|
6 |
<td class="forminp">
|
7 |
+
<input type="hidden" name="wc_ast_status_shipped" value="0"/>
|
8 |
+
<input class="ast-tgl ast-tgl-flat" id="wc_ast_status_shipped" name="wc_ast_status_shipped" type="checkbox" <?php if(get_option('wc_ast_status_shipped')){echo 'checked'; } ?> value="1"/>
|
9 |
+
<label class="ast-tgl-btn" for="wc_ast_status_shipped"></label>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
</td>
|
11 |
+
<td colspan="2" class="status_shipped_label">
|
12 |
+
<?php _e( 'Rename the “Completed” Order status label to “Shipped”', 'woo-advanced-shipment-tracking' ); ?>
|
13 |
+
</td>
|
14 |
</tr>
|
15 |
<tr valign="top" class="partial_shipped_row <?php if(!get_option('wc_ast_status_partial_shipped')){echo 'disable_row'; } ?>">
|
16 |
<td class="forminp">
|
17 |
<input type="hidden" name="wc_ast_status_partial_shipped" value="0"/>
|
18 |
+
<input class="ast-tgl ast-tgl-flat order_status_toggle" id="wc_ast_status_partial_shipped" name="wc_ast_status_partial_shipped" type="checkbox" <?php if(get_option('wc_ast_status_partial_shipped')){echo 'checked'; } ?> value="1"/>
|
19 |
+
<label class="ast-tgl-btn" for="wc_ast_status_partial_shipped"></label>
|
20 |
</td>
|
21 |
<td class="forminp status-label-column">
|
22 |
<span class="order-label wc-partially-shipped">
|
57 |
<tr valign="top" class="updated_tracking_row <?php if(!get_option('wc_ast_status_updated_tracking')){echo 'disable_row'; } ?>">
|
58 |
<td class="forminp">
|
59 |
<input type="hidden" name="wc_ast_status_updated_tracking" value="0"/>
|
60 |
+
<input class="ast-tgl ast-tgl-flat order_status_toggle" id="wc_ast_status_updated_tracking" name="wc_ast_status_updated_tracking" type="checkbox" <?php if(get_option('wc_ast_status_updated_tracking')){echo 'checked'; } ?> value="1"/>
|
61 |
+
<label class="ast-tgl-btn" for="wc_ast_status_updated_tracking"></label>
|
62 |
</td>
|
63 |
<td class="forminp status-label-column">
|
64 |
<span class="order-label wc-updated-tracking">
|
includes/views/admin_options_settings.php
CHANGED
@@ -4,52 +4,62 @@
|
|
4 |
*/
|
5 |
?>
|
6 |
<section id="content2" class="tab_section">
|
7 |
-
<div class="tab_inner_container">
|
8 |
<form method="post" id="wc_ast_settings_form" action="" enctype="multipart/form-data">
|
9 |
<?php #nonce?>
|
10 |
-
<div class="outer_form_table
|
11 |
<table class="form-table heading-table">
|
12 |
<tbody>
|
13 |
<tr valign="top">
|
14 |
<td>
|
15 |
-
<h3 style=""><?php _e( 'Settings', 'woo-advanced-shipment-tracking' ); ?></h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
</td>
|
17 |
</tr>
|
18 |
</tbody>
|
19 |
</table>
|
20 |
-
<?php $this->
|
21 |
-
<hr>
|
22 |
-
<div class="submit">
|
23 |
-
<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>
|
24 |
-
<div class="spinner"></div>
|
25 |
-
<?php wp_nonce_field( 'wc_ast_settings_form', 'wc_ast_settings_form_nonce' );?>
|
26 |
-
<input type="hidden" name="action" value="wc_ast_settings_form_update">
|
27 |
-
</div>
|
28 |
</div>
|
29 |
</form>
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
32 |
<tbody>
|
33 |
<tr valign="top">
|
34 |
-
<
|
35 |
-
<
|
36 |
-
|
37 |
-
|
38 |
-
<td class="tracking-info-customizer-td">
|
39 |
-
<a href="<?php echo wcast_initialise_customizer_settings::get_customizer_url('ast_tracking_general_section','settings') ?>" class="button-primary btn_ast_transparent btn_large launch_customizer_btn"><?php _e( 'Launch Customizer', 'woo-advanced-shipment-tracking' ); ?></a>
|
40 |
-
</td>
|
41 |
-
</tr>
|
42 |
</tbody>
|
43 |
-
</table>
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
49 |
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
</section>
|
4 |
*/
|
5 |
?>
|
6 |
<section id="content2" class="tab_section">
|
7 |
+
<div class="tab_inner_container center">
|
8 |
<form method="post" id="wc_ast_settings_form" action="" enctype="multipart/form-data">
|
9 |
<?php #nonce?>
|
10 |
+
<div class="outer_form_table">
|
11 |
<table class="form-table heading-table">
|
12 |
<tbody>
|
13 |
<tr valign="top">
|
14 |
<td>
|
15 |
+
<h3 style=""><?php _e( 'General Settings', 'woo-advanced-shipment-tracking' ); ?></h3>
|
16 |
+
</td>
|
17 |
+
<td>
|
18 |
+
<div class="settings_ul_submit">
|
19 |
+
<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>
|
20 |
+
<div class="spinner"></div>
|
21 |
+
<?php wp_nonce_field( 'wc_ast_settings_form', 'wc_ast_settings_form_nonce' );?>
|
22 |
+
<input type="hidden" name="action" value="wc_ast_settings_form_update">
|
23 |
+
</div>
|
24 |
</td>
|
25 |
</tr>
|
26 |
</tbody>
|
27 |
</table>
|
28 |
+
<?php $this->get_html_ul( $this->get_settings_data() );?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
</div>
|
30 |
</form>
|
31 |
+
|
32 |
+
<?php do_action('ast_generat_settings_end'); ?>
|
33 |
+
|
34 |
+
<div class="outer_form_table">
|
35 |
+
<table class="form-table heading-table">
|
36 |
<tbody>
|
37 |
<tr valign="top">
|
38 |
+
<td>
|
39 |
+
<h3 style=""><?php _e( 'Tracking information display', 'woo-advanced-shipment-tracking' ); ?></h3>
|
40 |
+
</td>
|
41 |
+
</tr>
|
|
|
|
|
|
|
|
|
42 |
</tbody>
|
43 |
+
</table>
|
44 |
+
<ul class="settings_ul">
|
45 |
+
<li>
|
46 |
+
<label class="launch_customizer_label"><?php _e( 'Customize how the Tracking information display on the order emails and my-account', 'woo-advanced-shipment-tracking' ); ?></label>
|
47 |
+
<a href="<?php echo wcast_initialise_customizer_settings::get_customizer_url('ast_tracking_general_section','settings') ?>" class="button-primary btn_ast_transparent btn_large launch_customizer_btn"><?php _e( 'Launch Customizer', 'woo-advanced-shipment-tracking' ); ?></a>
|
48 |
+
</li>
|
49 |
+
</ul>
|
50 |
+
</div>
|
51 |
|
52 |
+
<div class="outer_form_table">
|
53 |
+
<table class="form-table heading-table">
|
54 |
+
<tbody>
|
55 |
+
<tr valign="top">
|
56 |
+
<td>
|
57 |
+
<h3 style=""><?php _e( 'Order Status Manager', 'woo-advanced-shipment-tracking' ); ?></h3>
|
58 |
+
</td>
|
59 |
+
</tr>
|
60 |
+
</tbody>
|
61 |
+
</table>
|
62 |
+
<?php require_once( 'admin_options_osm.php' ); ?>
|
63 |
+
</div>
|
64 |
+
</div>
|
65 |
</section>
|
includes/views/admin_options_shipping_provider.php
CHANGED
@@ -17,50 +17,43 @@ if(isset($_GET['open']) && $_GET['open'] == 'synch_providers'){ ?>
|
|
17 |
<section id="content1" class="tab_section">
|
18 |
<div class="d_table" style="">
|
19 |
<div class="tab_inner_container">
|
20 |
-
<div class="provider_top">
|
21 |
-
<div class="status_filter">
|
22 |
-
<a href="javaScript:void(0);" data-status="active" class="active"><?php _e( 'Active Providers', 'woo-advanced-shipment-tracking'); ?></a>
|
23 |
-
<a href="javaScript:void(0);" data-status="all"><?php _e( 'Browse Providers', 'woo-advanced-shipment-tracking'); ?></a>
|
24 |
-
<a href="javaScript:void(0);" data-status="custom"><?php _e( 'Custom Providers', 'woo-advanced-shipment-tracking'); ?></a>
|
25 |
-
</div>
|
26 |
|
27 |
<div class="search_section">
|
28 |
<span class="dashicons dashicons-search search-icon"></span>
|
29 |
<input class="provider_search_bar " type="text" name="search_provider" id="search_provider" placeholder="<?php _e( 'Search by provider / country', 'woo-advanced-shipment-tracking'); ?>">
|
30 |
</div>
|
31 |
-
|
32 |
-
<
|
33 |
-
<
|
34 |
-
<
|
35 |
-
<
|
36 |
-
|
37 |
-
<div class="provider_settings dropdown">
|
38 |
-
<span class="dashicons dashicons-admin-generic dropdown_menu"></span>
|
39 |
</div>
|
40 |
</div>
|
41 |
<div class="provider_list">
|
42 |
<?php if($default_shippment_providers){
|
43 |
-
echo $this->get_provider_html($default_shippment_providers,'
|
44 |
-
}
|
45 |
-
<p class="provider_message"><?php echo sprintf(__("You don't have any %s shipping providers.", 'woo-advanced-shipment-tracking'), $status); ?></p>
|
46 |
-
<?php } ?>
|
47 |
</div>
|
48 |
<div id="" class="popupwrapper add_provider_popup" style="display:none;">
|
49 |
<div class="popuprow">
|
50 |
<div class="popup_header">
|
51 |
-
<h3 class="popup_title"><?php _e( 'Add Custom Shipping Provider', 'woo-advanced-shipment-tracking'); ?></h2>
|
52 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ast-logo.png" class="poppup_header_logo">
|
53 |
<span class="dashicons dashicons-no-alt popup_close_icon"></span>
|
54 |
</div>
|
55 |
<div class="popup_body">
|
56 |
<form id="add_provider_form" method="POST" class="add_provider_form">
|
57 |
-
<div>
|
58 |
-
<
|
|
|
59 |
</div>
|
60 |
-
<div>
|
61 |
-
<
|
|
|
62 |
</div>
|
63 |
-
<div>
|
|
|
64 |
<select class="select wcast_shipping_country shipping_country" name="shipping_country">
|
65 |
<option value=""><?php _e( 'Shipping Country', 'woo-advanced-shipment-tracking' ); ?></option>
|
66 |
<option value="Global"><?php _e( 'Global', 'woo-advanced-shipment-tracking' ); ?></option>
|
@@ -70,19 +63,21 @@ if(isset($_GET['open']) && $_GET['open'] == 'synch_providers'){ ?>
|
|
70 |
<?php } ?>
|
71 |
</select>
|
72 |
</div>
|
73 |
-
<div>
|
|
|
74 |
<input type='text' placeholder='Image' name='thumb_url' class='image_path thumb_url' value=''>
|
75 |
<input type='hidden' name='thumb_id' class='image_id thumb_id' placeholder="Image" value='' style="">
|
76 |
<input type="button" class="button upload_image_button" value="<?php _e( 'Upload' , 'woo-advanced-shipment-tracking'); ?>" />
|
77 |
</div>
|
78 |
-
<div>
|
79 |
-
<
|
|
|
80 |
</div>
|
81 |
-
<div class="custom_provider_instruction">
|
82 |
<p><?php _e( 'You can use the variables %number%, %postal_code% and %country_code% in the URL, for more info, check our ', 'woo-advanced-shipment-tracking' ); ?><?php echo sprintf(__('<a href="%s" target="blank">documentation</a>', 'woo-advanced-shipment-tracking'), 'http://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/setting-shipping-providers/#adding-custom-shipping-provider'); ?></p>
|
83 |
</div>
|
84 |
<input type="hidden" name="action" value="add_custom_shipment_provider">
|
85 |
-
<input type="submit" name="Submit" value="
|
86 |
</form>
|
87 |
</div>
|
88 |
</div>
|
@@ -92,27 +87,29 @@ if(isset($_GET['open']) && $_GET['open'] == 'synch_providers'){ ?>
|
|
92 |
<div id="" class="popupwrapper edit_provider_popup" style="display:none;">
|
93 |
<div class="popuprow">
|
94 |
<div class="popup_header">
|
95 |
-
<h3 class="popup_title"><?php _e( 'Edit Shipping Provider', 'woo-advanced-shipment-tracking'); ?></h2>
|
96 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ast-logo.png" class="poppup_header_logo">
|
97 |
<span class="dashicons dashicons-no-alt popup_close_icon"></span>
|
98 |
</div>
|
99 |
-
<div class="popup_body">
|
100 |
-
<p class="edit_provider_msg" style="display:none;"><?php _e( 'The custom name will display in the tracking info section on the customer order emails, my-account, shipment tracking page and shipment status emails.', 'woo-advanced-shipment-tracking' ); ?></p>
|
101 |
<form id="edit_provider_form" method="POST" class="edit_provider_form">
|
102 |
-
<div>
|
103 |
-
<
|
|
|
104 |
</div>
|
105 |
-
<div>
|
106 |
-
<
|
|
|
107 |
</div>
|
108 |
-
<div class="api_provider_name_container">
|
109 |
-
<
|
110 |
-
|
111 |
-
<
|
|
|
112 |
</div>
|
113 |
</div>
|
114 |
-
<div>
|
115 |
-
<
|
|
|
116 |
<option value=""><?php _e( 'Shipping Country', 'woo-advanced-shipment-tracking' ); ?></option>
|
117 |
<option value="Global"><?php _e( 'Global', 'woo-advanced-shipment-tracking' ); ?></option>
|
118 |
<?php foreach($countries as $key=>$val){ ?>
|
@@ -120,15 +117,17 @@ if(isset($_GET['open']) && $_GET['open'] == 'synch_providers'){ ?>
|
|
120 |
<?php } ?>
|
121 |
</select>
|
122 |
</div>
|
123 |
-
<div>
|
|
|
124 |
<input type='text' placeholder='Image' name='thumb_url' class='image_path thumb_url' value=''>
|
125 |
<input type='hidden' name='thumb_id' class='image_id thumb_id' placeholder="Image" value=''>
|
126 |
<input type="button" class="button upload_image_button" value="<?php _e( 'Upload' , 'woo-advanced-shipment-tracking'); ?>" />
|
127 |
</div>
|
128 |
-
<div>
|
129 |
-
<
|
|
|
130 |
</div>
|
131 |
-
<div class="custom_provider_instruction">
|
132 |
<p><?php _e( 'You can use the variables %number%, %postal_code% and %country_code% in the URL, for more info, check our ', 'woo-advanced-shipment-tracking' ); ?><?php echo sprintf(__('<a href="%s" target="blank">documentation</a>', 'woo-advanced-shipment-tracking'), 'http://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/setting-shipping-providers/#adding-custom-shipping-provider'); ?></p>
|
133 |
</div>
|
134 |
<input type="hidden" name="action" value="update_custom_shipment_provider">
|
@@ -145,8 +144,7 @@ if(isset($_GET['open']) && $_GET['open'] == 'synch_providers'){ ?>
|
|
145 |
<div id="" class="popupwrapper sync_provider_popup" style="display:none;">
|
146 |
<div class="popuprow">
|
147 |
<div class="popup_header">
|
148 |
-
<h3 class="popup_title"><?php _e( 'Sync Shipping Providers', 'woo-advanced-shipment-tracking'); ?></h2>
|
149 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ast-logo.png" class="poppup_header_logo">
|
150 |
<span class="dashicons dashicons-no-alt popup_close_icon"></span>
|
151 |
</div>
|
152 |
<div class="popup_body">
|
17 |
<section id="content1" class="tab_section">
|
18 |
<div class="d_table" style="">
|
19 |
<div class="tab_inner_container">
|
20 |
+
<div class="provider_top">
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
<div class="search_section">
|
23 |
<span class="dashicons dashicons-search search-icon"></span>
|
24 |
<input class="provider_search_bar " type="text" name="search_provider" id="search_provider" placeholder="<?php _e( 'Search by provider / country', 'woo-advanced-shipment-tracking'); ?>">
|
25 |
</div>
|
26 |
+
|
27 |
+
<div class="provider_settings">
|
28 |
+
<a href="javaScript:void(0);" class="add_custom_provider provider_settings_icon" id="add-custom"><span class="dashicons dashicons-plus-alt"></span></a>
|
29 |
+
<a href="javaScript:void(0);" class="sync_providers provider_settings_icon"><span class="dashicons dashicons-update"></span></a>
|
30 |
+
<input class="ast-tgl ast-tgl-flat" id="reset_providers" name="reset_providers" type="checkbox" value="1"/>
|
31 |
+
<label class="ast-tgl-btn" for="reset_providers"></label>
|
|
|
|
|
32 |
</div>
|
33 |
</div>
|
34 |
<div class="provider_list">
|
35 |
<?php if($default_shippment_providers){
|
36 |
+
echo $this->get_provider_html( $default_shippment_providers,'all' );
|
37 |
+
} ?>
|
|
|
|
|
38 |
</div>
|
39 |
<div id="" class="popupwrapper add_provider_popup" style="display:none;">
|
40 |
<div class="popuprow">
|
41 |
<div class="popup_header">
|
42 |
+
<h3 class="popup_title"><?php _e( 'Add Custom Shipping Provider', 'woo-advanced-shipment-tracking'); ?></h2>
|
|
|
43 |
<span class="dashicons dashicons-no-alt popup_close_icon"></span>
|
44 |
</div>
|
45 |
<div class="popup_body">
|
46 |
<form id="add_provider_form" method="POST" class="add_provider_form">
|
47 |
+
<div class="form-field form-50">
|
48 |
+
<label><?php _e( 'Provider Name', 'woo-advanced-shipment-tracking' ); ?></label>
|
49 |
+
<input type="text" name="shipping_provider" class="shipping_provider" placeholder="<?php _e( 'Custom Provider', 'woo-advanced-shipment-tracking' ); ?>">
|
50 |
</div>
|
51 |
+
<div class="form-field form-50 margin-0">
|
52 |
+
<label><?php _e( 'Custom Display Name', 'woo-advanced-shipment-tracking' ); ?> <span class="woocommerce-help-tip tipTip" title="<?php _e( "The custom display name will show in the tracking info section on the customer order emails, my-account, and TrackShip's tracking page and email notifications", 'woo-advanced-shipment-tracking' ); ?>"></span> </label>
|
53 |
+
<input type="text" name="shipping_display_name" class="shipping_display_name" value="" placeholder="<?php _e( 'White Label Provider Name', 'woo-advanced-shipment-tracking' ); ?>">
|
54 |
</div>
|
55 |
+
<div class="form-field form-50">
|
56 |
+
<label><?php _e( 'Country', 'woo-advanced-shipment-tracking' ); ?></label>
|
57 |
<select class="select wcast_shipping_country shipping_country" name="shipping_country">
|
58 |
<option value=""><?php _e( 'Shipping Country', 'woo-advanced-shipment-tracking' ); ?></option>
|
59 |
<option value="Global"><?php _e( 'Global', 'woo-advanced-shipment-tracking' ); ?></option>
|
63 |
<?php } ?>
|
64 |
</select>
|
65 |
</div>
|
66 |
+
<div class="form-field form-50 margin-0">
|
67 |
+
<label><?php _e( 'Logo image', 'woo-advanced-shipment-tracking' ); ?></label>
|
68 |
<input type='text' placeholder='Image' name='thumb_url' class='image_path thumb_url' value=''>
|
69 |
<input type='hidden' name='thumb_id' class='image_id thumb_id' placeholder="Image" value='' style="">
|
70 |
<input type="button" class="button upload_image_button" value="<?php _e( 'Upload' , 'woo-advanced-shipment-tracking'); ?>" />
|
71 |
</div>
|
72 |
+
<div class="form-field">
|
73 |
+
<label><?php _e( 'Custom URL', 'woo-advanced-shipment-tracking' ); ?></label>
|
74 |
+
<input type="text" name="tracking_url" class="tracking_url" placeholder="<?php _e( 'My White Label Provider URL', 'woo-advanced-shipment-tracking' ); ?> ">
|
75 |
</div>
|
76 |
+
<div class="form-field custom_provider_instruction">
|
77 |
<p><?php _e( 'You can use the variables %number%, %postal_code% and %country_code% in the URL, for more info, check our ', 'woo-advanced-shipment-tracking' ); ?><?php echo sprintf(__('<a href="%s" target="blank">documentation</a>', 'woo-advanced-shipment-tracking'), 'http://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/setting-shipping-providers/#adding-custom-shipping-provider'); ?></p>
|
78 |
</div>
|
79 |
<input type="hidden" name="action" value="add_custom_shipment_provider">
|
80 |
+
<input type="submit" name="Submit" value="<?php _e( 'Add Custom Provider', 'woo-advanced-shipment-tracking' ); ?>" class="button-primary btn_ast2 btn_large">
|
81 |
</form>
|
82 |
</div>
|
83 |
</div>
|
87 |
<div id="" class="popupwrapper edit_provider_popup" style="display:none;">
|
88 |
<div class="popuprow">
|
89 |
<div class="popup_header">
|
90 |
+
<h3 class="popup_title"><?php _e( 'Edit Shipping Provider', 'woo-advanced-shipment-tracking'); ?></h2> - <h3 class="popup_title edit_provider_title"></h2>
|
|
|
91 |
<span class="dashicons dashicons-no-alt popup_close_icon"></span>
|
92 |
</div>
|
93 |
+
<div class="popup_body">
|
|
|
94 |
<form id="edit_provider_form" method="POST" class="edit_provider_form">
|
95 |
+
<div class="shipping_provider form-field form-50">
|
96 |
+
<label><?php _e( 'Provider Name', 'woo-advanced-shipment-tracking' ); ?></label>
|
97 |
+
<input type="text" name="shipping_provider" value="" placeholder="<?php _e( 'Shipping Provider', 'woo-advanced-shipment-tracking' ); ?>">
|
98 |
</div>
|
99 |
+
<div class="shipping_display_name form-field form-50 margin-0">
|
100 |
+
<label><?php _e( 'Custom display name', 'woo-advanced-shipment-tracking' ); ?> <span class="woocommerce-help-tip tipTip" title="<?php _e( "The custom display name will show in the tracking info section on the customer order emails, my-account, and TrackShip's tracking page and email notifications", 'woo-advanced-shipment-tracking' ); ?>"></span> </label>
|
101 |
+
<input type="text" name="shipping_display_name" value="" placeholder="<?php _e( 'White Label Provider Name', 'woo-advanced-shipment-tracking' ); ?>">
|
102 |
</div>
|
103 |
+
<div class="form-field api_provider_name_container">
|
104 |
+
<label><?php _e( 'Custom API name', 'woo-advanced-shipment-tracking' ); ?> <span class="woocommerce-help-tip tipTip" title="<?php _e( "Add API name aliases to map Shipping providers names with the provider names that are updated in the shipment tracking API by external shipping services", 'woo-advanced-shipment-tracking' ); ?>"></span></label>
|
105 |
+
<div class="api_provider_div">
|
106 |
+
<input type="text" name="api_provider_name[]" class="api_provider_name" value="" placeholder="<?php _e( 'API Name', 'woo-advanced-shipment-tracking' ); ?>" readonly="true">
|
107 |
+
<!--span class="dashicons dashicons-insert woocommerce-help-tip tipTip add_more_api_provider" title="<?php _e( "Add API Name alias", 'woo-advanced-shipment-tracking' ); ?>"></span-->
|
108 |
</div>
|
109 |
</div>
|
110 |
+
<div class="shipping_country form-field form-50">
|
111 |
+
<label><?php _e( 'Country', 'woo-advanced-shipment-tracking' ); ?></label>
|
112 |
+
<select class="select wcast_shipping_country" name="shipping_country">
|
113 |
<option value=""><?php _e( 'Shipping Country', 'woo-advanced-shipment-tracking' ); ?></option>
|
114 |
<option value="Global"><?php _e( 'Global', 'woo-advanced-shipment-tracking' ); ?></option>
|
115 |
<?php foreach($countries as $key=>$val){ ?>
|
117 |
<?php } ?>
|
118 |
</select>
|
119 |
</div>
|
120 |
+
<div class="form-field form-50 margin-0">
|
121 |
+
<label><?php _e( 'Logo image', 'woo-advanced-shipment-tracking' ); ?></label>
|
122 |
<input type='text' placeholder='Image' name='thumb_url' class='image_path thumb_url' value=''>
|
123 |
<input type='hidden' name='thumb_id' class='image_id thumb_id' placeholder="Image" value=''>
|
124 |
<input type="button" class="button upload_image_button" value="<?php _e( 'Upload' , 'woo-advanced-shipment-tracking'); ?>" />
|
125 |
</div>
|
126 |
+
<div class="tracking_url form-field">
|
127 |
+
<label><?php _e( 'Custom URL', 'woo-advanced-shipment-tracking' ); ?></label>
|
128 |
+
<input type="text" name="tracking_url" class="" placeholder="Tracking URL">
|
129 |
</div>
|
130 |
+
<div class="form-field custom_provider_instruction">
|
131 |
<p><?php _e( 'You can use the variables %number%, %postal_code% and %country_code% in the URL, for more info, check our ', 'woo-advanced-shipment-tracking' ); ?><?php echo sprintf(__('<a href="%s" target="blank">documentation</a>', 'woo-advanced-shipment-tracking'), 'http://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/setting-shipping-providers/#adding-custom-shipping-provider'); ?></p>
|
132 |
</div>
|
133 |
<input type="hidden" name="action" value="update_custom_shipment_provider">
|
144 |
<div id="" class="popupwrapper sync_provider_popup" style="display:none;">
|
145 |
<div class="popuprow">
|
146 |
<div class="popup_header">
|
147 |
+
<h3 class="popup_title"><?php _e( 'Sync Shipping Providers', 'woo-advanced-shipment-tracking'); ?></h2>
|
|
|
148 |
<span class="dashicons dashicons-no-alt popup_close_icon"></span>
|
149 |
</div>
|
150 |
<div class="popup_body">
|
includes/views/admin_options_tools.php
CHANGED
@@ -4,14 +4,23 @@
|
|
4 |
*/
|
5 |
?>
|
6 |
<section id="content_tools" class="inner_tab_section">
|
7 |
-
<div class="tab_inner_container">
|
8 |
-
<div class="d_table" style="">
|
9 |
-
<div class="
|
10 |
-
<
|
11 |
-
|
12 |
-
|
13 |
-
<
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
<?php
|
16 |
$trackship = WC_Advanced_Shipment_Tracking_Trackship::get_instance();
|
17 |
$admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
|
@@ -19,5 +28,4 @@
|
|
19 |
</div>
|
20 |
</div>
|
21 |
</div>
|
22 |
-
|
23 |
-
</section>
|
4 |
*/
|
5 |
?>
|
6 |
<section id="content_tools" class="inner_tab_section">
|
7 |
+
<div class="tab_inner_container">
|
8 |
+
<div class="d_table" style="">
|
9 |
+
<div class="trackship-notice bulk_shipment_status_success" style="display:none;">
|
10 |
+
<p><?php echo __('Tracking info sent to Trackship for all Orders.', 'woo-advanced-shipment-tracking'); ?></p>
|
11 |
+
</div>
|
12 |
+
<div class="outer_form_table get_shipment_status_tool">
|
13 |
+
<table class="form-table heading-table">
|
14 |
+
<tbody>
|
15 |
+
<tr valign="top">
|
16 |
+
<td>
|
17 |
+
<h3 style=""><?php _e( 'Tools', 'woo-advanced-shipment-tracking' ); ?></h3>
|
18 |
+
<p class="get_shipment_status_tool_description"><?php _e( 'You can send all your orders from the last 30 days to get shipment status from TrackShip:', 'woo-advanced-shipment-tracking' ); ?></p>
|
19 |
+
</td>
|
20 |
+
</tr>
|
21 |
+
</tbody>
|
22 |
+
</table>
|
23 |
+
|
24 |
<?php
|
25 |
$trackship = WC_Advanced_Shipment_Tracking_Trackship::get_instance();
|
26 |
$admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
|
28 |
</div>
|
29 |
</div>
|
30 |
</div>
|
31 |
+
</section>
|
|
includes/views/admin_options_trackship_integration.php
CHANGED
@@ -4,103 +4,21 @@
|
|
4 |
*/
|
5 |
wp_enqueue_script( 'trackship_script' );
|
6 |
?>
|
7 |
-
<
|
8 |
-
<div class="
|
9 |
-
<div class="
|
10 |
-
<
|
11 |
-
|
12 |
-
<div class="ts_col_6">
|
13 |
-
<div class="ts_col_inner">
|
14 |
-
<h1 class="ts_landing_header">Your Post-Shipping & Delivery Autopilot</h1>
|
15 |
-
<p class="ts_landing_description">Trackship is a Multi-Carrier Shipment Tracking API that seamlessly integrates into your WooCommerce store and auto-tracks your shipments, automates your orders workflow, reduces the time spent on customer service and lets you provide a superior post-purchase experience to your customers.</p>
|
16 |
-
<a href="javascript:void(0);" target="_self" class="button-primary btn_green2 btn_large open_ts_video"><span><?php _e('Watch Video', 'woo-advanced-shipment-tracking'); ?></span><span class="dashicons dashicons-video-alt3"></span></a>
|
17 |
-
<a href="https://trackship.info/?utm_source=wpadmin&utm_campaign=tspage" target="_blank" class="button-primary btn_green2 btn_large"><span><?php _e('Start your free trial', 'woo-advanced-shipment-tracking'); ?></span></a>
|
18 |
-
</div>
|
19 |
-
</div>
|
20 |
-
<div class="ts_col_6">
|
21 |
-
<div class="ts_col_inner ts_landing_banner">
|
22 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ts-header-banner.png">
|
23 |
-
</div>
|
24 |
-
</div>
|
25 |
-
</div>
|
26 |
-
<div class="ts_row ts_features_section">
|
27 |
-
<div class="ts_col_4">
|
28 |
-
<div class="ts_col_inner">
|
29 |
-
<div class="ts_con_box_img">
|
30 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ts-100-supported-carriers.png">
|
31 |
-
</div>
|
32 |
-
<div class="ts_icon_box_text">
|
33 |
-
<h3>Auto-Track Your Shipments</h3>
|
34 |
-
<p>Our Tracking API auto-tracks shipments with 200+ shipping providers across the globe</p>
|
35 |
-
<a href="https://trackship.info/features/auto-track-shipments/" target="blank">read more</a>
|
36 |
-
</div>
|
37 |
-
</div>
|
38 |
-
</div>
|
39 |
-
<div class="ts_col_4">
|
40 |
-
<div class="ts_col_inner">
|
41 |
-
<div class="ts_con_box_img">
|
42 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ts-woocommerce-integration.png">
|
43 |
-
</div>
|
44 |
-
<div class="ts_icon_box_text">
|
45 |
-
<h3>Seamless Integration</h3>
|
46 |
-
<p>Fully integrated into your store and can be easily managed on your WooCommerce admin</p>
|
47 |
-
<a href="https://trackship.info/docs/setup-trackship-on-woocommerce/" target="blank">read more</a>
|
48 |
-
</div>
|
49 |
-
</div>
|
50 |
-
</div>
|
51 |
-
<div class="ts_col_4">
|
52 |
-
<div class="ts_col_inner">
|
53 |
-
<div class="ts_con_box_img">
|
54 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ts-home-better-customer-support.png">
|
55 |
-
</div>
|
56 |
-
<div class="ts_icon_box_text">
|
57 |
-
<h3>Post-Shipping Automation</h3>
|
58 |
-
<p>TrackShip proactively updates tracking & delivery changes and automates your orders workflow</p>
|
59 |
-
<a href="https://trackship.info/features/post-shipping-automation/" target="blank">read more</a>
|
60 |
-
</div>
|
61 |
-
</div>
|
62 |
-
</div>
|
63 |
-
<div class="ts_col_4">
|
64 |
-
<div class="ts_col_inner">
|
65 |
-
<div class="ts_con_box_img">
|
66 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ts-home-email-notifications.png">
|
67 |
-
</div>
|
68 |
-
<div class="ts_icon_box_text">
|
69 |
-
<h3>Keep Your Customers informed</h3>
|
70 |
-
<p>Keep Your Customers informed with automated shipment & delivery notifications</p>
|
71 |
-
<a href="https://trackship.info/features/shipment-status-notifications/" target="blank">read more</a>
|
72 |
-
</div>
|
73 |
-
</div>
|
74 |
-
</div>
|
75 |
-
<div class="ts_col_4">
|
76 |
-
<div class="ts_col_inner">
|
77 |
-
<div class="ts_con_box_img">
|
78 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ts-home-tracking-page.png">
|
79 |
-
</div>
|
80 |
-
<div class="ts_icon_box_text">
|
81 |
-
<h3>Tracking Page on Your Store</h3>
|
82 |
-
<p>Engage your customers with a tracking page on your store with up-to-date shipment tracking info</p>
|
83 |
-
<a href="https://trackship.info/features/tracking-page/" target="blank">read more</a>
|
84 |
-
</div>
|
85 |
-
</div>
|
86 |
-
</div>
|
87 |
-
<div class="ts_col_4">
|
88 |
-
<div class="ts_col_inner">
|
89 |
-
<div class="ts_con_box_img">
|
90 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ts-home-tracking-delivery-analytics.png">
|
91 |
-
</div>
|
92 |
-
<div class="ts_icon_box_text">
|
93 |
-
<h3>Shipping & Delivery Analytics</h3>
|
94 |
-
<p>Analyse delivery performance, find out exception and get an overview of your shipments data</p>
|
95 |
-
<a href="https://trackship.info/features/tracking-delivery-analytics/" target="blank">read more</a>
|
96 |
-
</div>
|
97 |
-
</div>
|
98 |
-
</div>
|
99 |
-
</div>
|
100 |
-
</div>
|
101 |
</div>
|
102 |
</div>
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
<div id="" class="popupwrapper ts_video_popup" style="display:none;">
|
105 |
<div class="popuprow">
|
106 |
<div class="videoWrapper">
|
4 |
*/
|
5 |
wp_enqueue_script( 'trackship_script' );
|
6 |
?>
|
7 |
+
<div class="section-content trackship_section">
|
8 |
+
<div class="">
|
9 |
+
<div class="ts_col_inner">
|
10 |
+
<h1 class="ts_landing_header">Your Post-Shipping & Delivery Autopilot</h1>
|
11 |
+
<p class="ts_landing_description">Trackship is a Multi-Carrier Shipment Tracking API that seamlessly integrates into your WooCommerce store and auto-tracks your shipments, automates your orders workflow, reduces the time spent on customer service and lets you provide a superior post-purchase experience to your customers.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
</div>
|
13 |
</div>
|
14 |
+
<div class="">
|
15 |
+
<div class="ts_col_inner ts_landing_banner">
|
16 |
+
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ts-header-banner.png">
|
17 |
+
<span class="dashicons dashicons-video-alt3 open_ts_video"></span>
|
18 |
+
</div>
|
19 |
+
<a href="https://trackship.info/?utm_source=wpadmin&utm_campaign=tspage" target="_blank" class="button-primary btn_green2 btn_large"><span><?php _e('Start for Free', 'woo-advanced-shipment-tracking'); ?></span><span class="dashicons dashicons-arrow-right-alt2"></span></a>
|
20 |
+
</div>
|
21 |
+
</div>
|
22 |
<div id="" class="popupwrapper ts_video_popup" style="display:none;">
|
23 |
<div class="popuprow">
|
24 |
<div class="videoWrapper">
|
includes/views/admin_status_notifications.php
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<section id="content_status_notifications" class="inner_tab_section">
|
2 |
<div class="tab_inner_container">
|
3 |
-
<
|
4 |
-
<div class="outer_form_table">
|
5 |
<?php
|
6 |
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
7 |
|
@@ -22,140 +21,156 @@
|
|
22 |
$wcast_enable_availableforpickup_email = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_enable_availableforpickup_email','');
|
23 |
|
24 |
$wcast_enable_late_shipments_admin_email = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_enable_late_shipments_admin_email','');
|
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 |
-
|
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 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
</div>
|
139 |
|
140 |
<?php do_action( 'after_shipment_status_email_notifications' ); ?>
|
141 |
-
<h3 class="border0_heading"><?php _e('Admin Notifications', 'woo-advanced-shipment-tracking'); ?></h3>
|
142 |
<form method="post" id="trackship_late_shipments_form" action="" enctype="multipart/form-data">
|
143 |
<div class="outer_form_table">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
<table class="form-table shipment-status-email-table">
|
145 |
<tbody>
|
146 |
<tr class="<?php if($wcast_enable_late_shipments_admin_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
147 |
-
<td class="forminp">
|
148 |
<span class="shipment_status_toggle">
|
149 |
<input type="hidden" name="wcast_enable_late_shipments_admin_email" value="0"/>
|
150 |
-
<input class="tgl tgl-flat" id="wcast_enable_late_shipments_admin_email" name="wcast_enable_late_shipments_admin_email" data-settings="late_shipments_email_settings" type="checkbox" <?php if($wcast_enable_late_shipments_admin_email == 1) { echo 'checked'; } ?> value="1"/>
|
151 |
-
<label class="tgl-btn" for="wcast_enable_late_shipments_admin_email"></label>
|
152 |
</span>
|
153 |
-
|
154 |
-
<td class="forminp status-label-column">
|
155 |
-
<a href="javascript:void(0);" class="shipment-status-label late-shipments woocommerce-help-tip tipTip" title="<?php _e('If a shipment reached the number of days that you define, and the shipment is not "delivered" or "Returned to Sender" than email will trigger.', 'woo-advanced-shipment-tracking'); ?>"><?php _e('Late Shipments', 'woo-advanced-shipment-tracking'); ?></a>
|
156 |
</td>
|
157 |
<td class="forminp">
|
158 |
-
<a class="edit_customizer_a late_shipments_a" href="javascript:void(0);"><?php _e('
|
159 |
</td>
|
160 |
</tr>
|
161 |
</tbody>
|
@@ -251,6 +266,5 @@
|
|
251 |
</table>
|
252 |
</div>
|
253 |
</form>
|
254 |
-
</div>
|
255 |
-
<?php include 'trackship_sidebar.php'; ?>
|
256 |
</section>
|
1 |
<section id="content_status_notifications" class="inner_tab_section">
|
2 |
<div class="tab_inner_container">
|
3 |
+
<div class="outer_form_table ts_notifications_outer_table">
|
|
|
4 |
<?php
|
5 |
$ast = new WC_Advanced_Shipment_Tracking_Actions;
|
6 |
|
21 |
$wcast_enable_availableforpickup_email = $ast->get_option_value_from_array('wcast_availableforpickup_email_settings','wcast_enable_availableforpickup_email','');
|
22 |
|
23 |
$wcast_enable_late_shipments_admin_email = $ast->get_option_value_from_array('late_shipments_email_settings','wcast_enable_late_shipments_admin_email','');
|
24 |
+
?>
|
25 |
+
<input id="tab_email_notifications" type="radio" name="ts_notification_tabs" class="inner_tab_input" checked="">
|
26 |
+
<label for="tab_email_notifications" class="inner_tab_label ts_tabs_label"><?php _e( 'Email Notifications', 'woo-advanced-shipment-tracking' ); ?></label>
|
27 |
+
|
28 |
+
<input id="tab_sms_notifications" type="radio" name="ts_notification_tabs" class="inner_tab_input">
|
29 |
+
<label for="tab_sms_notifications" class="inner_tab_label ts_tabs_label"><?php _e( 'SMS Notifications', 'woo-advanced-shipment-tracking' ); ?></label>
|
30 |
+
|
31 |
+
<section class="inner_tab_section shipment-status-email-section">
|
32 |
+
<table class="form-table shipment-status-email-table">
|
33 |
+
<tbody>
|
34 |
+
<tr class="<?php if($wcast_enable_intransit_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
35 |
+
<td class="forminp status-label-column">
|
36 |
+
<span class="shipment_status_toggle">
|
37 |
+
<input type="hidden" name="wcast_enable_intransit_email" value="0"/>
|
38 |
+
<input class="ast-tgl ast-tgl-flat" id="wcast_enable_intransit_email" name="wcast_enable_intransit_email" data-settings="wcast_intransit_email_settings" type="checkbox" <?php if($wcast_enable_intransit_email == 1) { echo 'checked'; } ?> value="yes"/>
|
39 |
+
<label class="ast-tgl-btn ast-tgl-btn-green" for="wcast_enable_intransit_email"></label>
|
40 |
+
</span>
|
41 |
+
<button class="button button-primary shipment-status-label in-transit"><?php _e('In Transit', 'woo-advanced-shipment-tracking'); ?></button>
|
42 |
+
</td>
|
43 |
+
<td class="forminp">
|
44 |
+
<a class="button-primary btn_ts_transparent edit_customizer_a" href="<?php echo wcast_intransit_customizer_email::get_customizer_url('trackship_shipment_status_email','in_transit','notifications') ?>"><?php _e('Customize', 'woo-advanced-shipment-tracking'); ?></a>
|
45 |
+
</td>
|
46 |
+
</tr>
|
47 |
+
<tr class="<?php if($wcast_enable_onhold_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
48 |
+
<td class="forminp status-label-column">
|
49 |
+
<span class="shipment_status_toggle">
|
50 |
+
<input type="hidden" name="wcast_enable_onhold_email" value="0"/>
|
51 |
+
<input class="ast-tgl ast-tgl-flat" id="wcast_enable_onhold_email" name="wcast_enable_onhold_email" data-settings="wcast_onhold_email_settings" type="checkbox" <?php if($wcast_enable_onhold_email == 1) { echo 'checked'; } ?> value="yes"/>
|
52 |
+
<label class="ast-tgl-btn ast-tgl-btn-green" for="wcast_enable_onhold_email"></label>
|
53 |
+
</span>
|
54 |
+
<button class="button button-primary shipment-status-label on-hold"><?php _e('On Hold', 'woo-advanced-shipment-tracking'); ?></button>
|
55 |
+
</td>
|
56 |
+
<td class="forminp">
|
57 |
+
<a class="button-primary btn_ts_transparent edit_customizer_a" href="<?php echo wcast_onhold_customizer_email::get_customizer_url('trackship_shipment_status_email','on_hold','notifications') ?>"><?php _e('Customize', 'woo-advanced-shipment-tracking'); ?></a>
|
58 |
+
</td>
|
59 |
+
</tr>
|
60 |
+
<tr class="<?php if($wcast_enable_returntosender_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
61 |
+
<td class="forminp status-label-column">
|
62 |
+
<span class="shipment_status_toggle">
|
63 |
+
<input type="hidden" name="wcast_enable_returntosender_email" value="0"/>
|
64 |
+
<input class="ast-tgl ast-tgl-flat" id="wcast_enable_returntosender_email" name="wcast_enable_returntosender_email" data-settings="wcast_returntosender_email_settings" type="checkbox" <?php if($wcast_enable_returntosender_email == 1) { echo 'checked'; } ?> value="yes"/>
|
65 |
+
<label class="ast-tgl-btn ast-tgl-btn-green" for="wcast_enable_returntosender_email"></label>
|
66 |
+
</span>
|
67 |
+
<button class="button button-primary shipment-status-label return-to-sender"><?php _e('Return To Sender', 'woo-advanced-shipment-tracking'); ?></button>
|
68 |
+
</td>
|
69 |
+
<td class="forminp">
|
70 |
+
<a class="button-primary btn_ts_transparent edit_customizer_a" href="<?php echo wcast_returntosender_customizer_email::get_customizer_url('trackship_shipment_status_email','return_to_sender','notifications') ?>"><?php _e('Customize', 'woo-advanced-shipment-tracking'); ?></a>
|
71 |
+
</td>
|
72 |
+
</tr>
|
73 |
+
<tr class="<?php if($wcast_enable_availableforpickup_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
74 |
+
<td class="forminp status-label-column">
|
75 |
+
<span class="shipment_status_toggle">
|
76 |
+
<input type="hidden" name="wcast_enable_availableforpickup_email" value="0"/>
|
77 |
+
<input class="ast-tgl ast-tgl-flat" id="wcast_enable_availableforpickup_email" name="wcast_enable_availableforpickup_email" data-settings="wcast_availableforpickup_email_settings" type="checkbox" <?php if($wcast_enable_availableforpickup_email == 1) { echo 'checked'; } ?> value="yes"/>
|
78 |
+
<label class="ast-tgl-btn ast-tgl-btn-green" for="wcast_enable_availableforpickup_email"></label>
|
79 |
+
</span>
|
80 |
+
<button class="button button-primary shipment-status-label available-for-pickup"><?php _e('Available For Pickup', 'woo-advanced-shipment-tracking'); ?></button>
|
81 |
+
</td>
|
82 |
+
<td class="forminp">
|
83 |
+
<a class="button-primary btn_ts_transparent edit_customizer_a" href="<?php echo wcast_availableforpickup_customizer_email::get_customizer_url('trackship_shipment_status_email','available_for_pickup','notifications') ?>"><?php _e('Customize', 'woo-advanced-shipment-tracking'); ?></a>
|
84 |
+
</td>
|
85 |
+
</tr>
|
86 |
+
<tr class="<?php if($wcast_enable_outfordelivery_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
87 |
+
<td class="forminp status-label-column">
|
88 |
+
<span class="shipment_status_toggle">
|
89 |
+
<input type="hidden" name="wcast_enable_outfordelivery_email" value="0"/>
|
90 |
+
<input class="ast-tgl ast-tgl-flat" id="wcast_enable_outfordelivery_email" name="wcast_enable_outfordelivery_email" data-settings="wcast_outfordelivery_email_settings" type="checkbox" <?php if($wcast_enable_outfordelivery_email == 1) { echo 'checked'; } ?> value="yes"/>
|
91 |
+
<label class="ast-tgl-btn ast-tgl-btn-green" for="wcast_enable_outfordelivery_email"></label>
|
92 |
+
</span>
|
93 |
+
<button class="button button-primary shipment-status-label out-for-delivery"><?php _e('Out For Delivery', 'woo-advanced-shipment-tracking'); ?></button>
|
94 |
+
</td>
|
95 |
+
<td class="forminp">
|
96 |
+
<a class="button-primary btn_ts_transparent edit_customizer_a" href="<?php echo wcast_outfordelivery_customizer_email::get_customizer_url('trackship_shipment_status_email','out_for_delivery','notifications') ?>"><?php _e('Customize', 'woo-advanced-shipment-tracking'); ?></a>
|
97 |
+
</td>
|
98 |
+
</tr>
|
99 |
+
<tr class="<?php if( $wcast_enable_delivered_status_email == 1 ){ echo 'enable'; } else{ echo 'disable'; }?>">
|
100 |
+
<td class="forminp status-label-column">
|
101 |
+
<span class="shipment_status_toggle">
|
102 |
+
<input type="hidden" name="wcast_enable_delivered_status_email" value="0"/>
|
103 |
+
<input class="ast-tgl ast-tgl-flat" id="wcast_enable_delivered_status_email" name="wcast_enable_delivered_status_email" data-settings="wcast_delivered_email_settings" type="checkbox" <?php if( $wcast_enable_delivered_status_email == 1 ) { echo 'checked'; } ?> value="yes"/>
|
104 |
+
<label class="ast-tgl-btn ast-tgl-btn-green" for="wcast_enable_delivered_status_email"></label>
|
105 |
+
</span>
|
106 |
+
<button class="button button-primary shipment-status-label delivered-status"><?php _e('Delivered', 'woo-advanced-shipment-tracking'); ?></button>
|
107 |
+
</td>
|
108 |
+
<td class="forminp">
|
109 |
+
<a class="button-primary btn_ts_transparent edit_customizer_a" href="<?php echo wcast_delivered_customizer_email::get_customizer_url('trackship_shipment_status_email','delivered','notifications') ?>"><?php _e('Customize', 'woo-advanced-shipment-tracking'); ?></a>
|
110 |
+
</td>
|
111 |
+
</tr>
|
112 |
+
<tr class="<?php if($wcast_enable_failure_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
113 |
+
<td class="forminp status-label-column">
|
114 |
+
<span class="shipment_status_toggle">
|
115 |
+
<input type="hidden" name="wcast_enable_failure_email" value="0"/>
|
116 |
+
<input class="ast-tgl ast-tgl-flat" id="wcast_enable_failure_email" name="wcast_enable_failure_email" data-settings="wcast_failure_email_settings" type="checkbox" <?php if($wcast_enable_failure_email == 1) { echo 'checked'; } ?> value="yes"/>
|
117 |
+
<label class="ast-tgl-btn ast-tgl-btn-green" for="wcast_enable_failure_email"></label>
|
118 |
+
</span>
|
119 |
+
<button class="button button-primary shipment-status-label failed-attempt"><?php _e('Failed Attempt', 'woo-advanced-shipment-tracking'); ?></button>
|
120 |
+
</td>
|
121 |
+
<td class="forminp">
|
122 |
+
<a class="button-primary btn_ts_transparent edit_customizer_a" href="<?php echo wcast_failure_customizer_email::get_customizer_url('trackship_shipment_status_email','failure','notifications') ?>"><?php _e('Customize', 'woo-advanced-shipment-tracking'); ?></a>
|
123 |
+
</td>
|
124 |
+
</tr>
|
125 |
+
</tbody>
|
126 |
+
</table>
|
127 |
+
</section>
|
128 |
+
<section class="inner_tab_section shipment-status-sms-section">
|
129 |
+
<?php
|
130 |
+
if(!class_exists('SMS_for_WooCommerce')){ ?>
|
131 |
+
<div class="smswoo_notification_section">
|
132 |
+
<div class="ast-row">
|
133 |
+
<div class="ast-col as-col-4">
|
134 |
+
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/smswoo-addons-icon.jpg">
|
135 |
+
</div>
|
136 |
+
<div class="ast-col as-col-8">
|
137 |
+
<h3>SMSWOO – SMS for WooCommerce</h3>
|
138 |
+
<p>The SMSWOO plugin connects your WooCommerce store with SMS API service providers and lets you send your customers automated SMS notifications about order & delivery updates. You can also send SMS messages to store admins about new orders, refunds, low stock, and you can even manually send custom SMS text messages to customers from the order admin.</p>
|
139 |
+
<a href="https://www.zorem.com/product/sms-for-woocommerce/" class="button button-primary btn_ast2" target="blank">From $79</a>
|
140 |
+
</div>
|
141 |
+
</div>
|
142 |
+
</div>
|
143 |
+
<?php }
|
144 |
+
do_action( 'shipment_status_sms_section' );
|
145 |
+
?>
|
146 |
+
</section>
|
147 |
</div>
|
148 |
|
149 |
<?php do_action( 'after_shipment_status_email_notifications' ); ?>
|
|
|
150 |
<form method="post" id="trackship_late_shipments_form" action="" enctype="multipart/form-data">
|
151 |
<div class="outer_form_table">
|
152 |
+
<table class="form-table heading-table">
|
153 |
+
<tbody>
|
154 |
+
<tr valign="top">
|
155 |
+
<td>
|
156 |
+
<h3 style=""><?php _e( 'Admin Notifications', 'woo-advanced-shipment-tracking' ); ?></h3>
|
157 |
+
</td>
|
158 |
+
</tr>
|
159 |
+
</tbody>
|
160 |
+
</table>
|
161 |
<table class="form-table shipment-status-email-table">
|
162 |
<tbody>
|
163 |
<tr class="<?php if($wcast_enable_late_shipments_admin_email == 1){ echo 'enable'; } else{ echo 'disable'; }?>">
|
164 |
+
<td class="forminp status-label-column">
|
165 |
<span class="shipment_status_toggle">
|
166 |
<input type="hidden" name="wcast_enable_late_shipments_admin_email" value="0"/>
|
167 |
+
<input class="ast-tgl ast-tgl-flat" id="wcast_enable_late_shipments_admin_email" name="wcast_enable_late_shipments_admin_email" data-settings="late_shipments_email_settings" type="checkbox" <?php if($wcast_enable_late_shipments_admin_email == 1) { echo 'checked'; } ?> value="1"/>
|
168 |
+
<label class="ast-tgl-btn ast-tgl-btn-green" for="wcast_enable_late_shipments_admin_email"></label>
|
169 |
</span>
|
170 |
+
<button class="button button-primary shipment-status-label late-shipments"><?php _e('Late Shipments', 'woo-advanced-shipment-tracking'); ?></button>
|
|
|
|
|
171 |
</td>
|
172 |
<td class="forminp">
|
173 |
+
<a class="edit_customizer_a late_shipments_a button-primary btn_ts_transparent" href="javascript:void(0);"><?php _e('Customize', 'woo-advanced-shipment-tracking'); ?></a>
|
174 |
</td>
|
175 |
</tr>
|
176 |
</tbody>
|
266 |
</table>
|
267 |
</div>
|
268 |
</form>
|
269 |
+
</div>
|
|
|
270 |
</section>
|
includes/views/admin_tracking_page_settings.php
CHANGED
@@ -12,8 +12,8 @@
|
|
12 |
<td>
|
13 |
<span class="tracking_page_toggle checkbox_span">
|
14 |
<input type="hidden" name="wc_ast_use_tracking_page" value="0"/>
|
15 |
-
<input class="tgl tgl-flat" id="wc_ast_use_tracking_page" name="wc_ast_use_tracking_page" type="checkbox" <?php if(get_option('wc_ast_use_tracking_page') == 1){ echo 'checked'; } ?> value="1"/>
|
16 |
-
<label class="tgl-btn" for="wc_ast_use_tracking_page"></label>
|
17 |
</span>
|
18 |
</td>
|
19 |
</tr>
|
@@ -125,5 +125,5 @@
|
|
125 |
</div>
|
126 |
</form>
|
127 |
</div>
|
128 |
-
<?php include 'trackship_sidebar.php'; ?>
|
129 |
</section>
|
12 |
<td>
|
13 |
<span class="tracking_page_toggle checkbox_span">
|
14 |
<input type="hidden" name="wc_ast_use_tracking_page" value="0"/>
|
15 |
+
<input class="ast-tgl ast-tgl-flat" id="wc_ast_use_tracking_page" name="wc_ast_use_tracking_page" type="checkbox" <?php if(get_option('wc_ast_use_tracking_page') == 1){ echo 'checked'; } ?> value="1"/>
|
16 |
+
<label class="ast-tgl-btn" for="wc_ast_use_tracking_page"></label>
|
17 |
</span>
|
18 |
</td>
|
19 |
</tr>
|
125 |
</div>
|
126 |
</form>
|
127 |
</div>
|
128 |
+
<?php //include 'trackship_sidebar.php'; ?>
|
129 |
</section>
|
includes/views/admin_trackship_dashboard.php
CHANGED
@@ -1,58 +1,44 @@
|
|
1 |
<section id="content_trackship_dashboard" class="inner_tab_section">
|
2 |
<div class="tab_inner_container">
|
3 |
<?php
|
|
|
|
|
4 |
$trackship = WC_Advanced_Shipment_Tracking_Trackship::get_instance();
|
5 |
$admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
|
6 |
$completed_order_with_tracking = $trackship->completed_order_with_tracking();
|
7 |
$completed_order_with_zero_balance = $trackship->completed_order_with_zero_balance();
|
8 |
$completed_order_with_do_connection = $trackship->completed_order_with_do_connection();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
if($completed_order_with_tracking > 0 || $completed_order_with_zero_balance > 0 || $completed_order_with_do_connection > 0){
|
10 |
-
$total_orders = $completed_order_with_tracking + $completed_order_with_zero_balance + $completed_order_with_do_connection;
|
11 |
-
?>
|
12 |
<div class="trackship-notice">
|
13 |
<p><?php echo sprintf(__('You have %s Shipped Orders from the last 30 days that you can bulk send to <a href="javascript:void(0);" class="tool_link">Get Shipment Status</a>', 'woo-advanced-shipment-tracking'),$total_orders ); ?></p>
|
14 |
-
</div>
|
15 |
-
<?php } ?>
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
</td>
|
35 |
-
</tr>
|
36 |
-
</tbody>
|
37 |
-
</table>
|
38 |
-
<?php $admin->get_html_ul( $trackship->get_trackship_automation_data() ); ?>
|
39 |
-
|
40 |
-
<table class="form-table">
|
41 |
-
<tbody>
|
42 |
-
<tr valign="top">
|
43 |
-
<td class="button-column">
|
44 |
-
<div class="submit">
|
45 |
-
<button name="save" class="button-primary woocommerce-save-button btn_green2 btn_large" type="submit" value="Save changes"><?php _e( 'Save Changes', 'woo-advanced-shipment-tracking' ); ?></button>
|
46 |
-
<div class="spinner"></div>
|
47 |
-
<?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form_nonce' );?>
|
48 |
-
<input type="hidden" name="action" value="wc_ast_trackship_form_update">
|
49 |
-
</div>
|
50 |
-
</td>
|
51 |
-
</tr>
|
52 |
-
</tbody>
|
53 |
-
</table>
|
54 |
-
</div>
|
55 |
-
</form>
|
56 |
-
</div>
|
57 |
-
<?php include 'trackship_sidebar.php'; ?>
|
58 |
</section>
|
1 |
<section id="content_trackship_dashboard" class="inner_tab_section">
|
2 |
<div class="tab_inner_container">
|
3 |
<?php
|
4 |
+
$wc_ast_api_key = get_option('wc_ast_api_key');
|
5 |
+
if($wc_ast_api_key){
|
6 |
$trackship = WC_Advanced_Shipment_Tracking_Trackship::get_instance();
|
7 |
$admin = WC_Advanced_Shipment_Tracking_Admin::get_instance();
|
8 |
$completed_order_with_tracking = $trackship->completed_order_with_tracking();
|
9 |
$completed_order_with_zero_balance = $trackship->completed_order_with_zero_balance();
|
10 |
$completed_order_with_do_connection = $trackship->completed_order_with_do_connection();
|
11 |
+
|
12 |
+
|
13 |
+
$url = 'https://my.trackship.info/wp-json/tracking/get_user_plan';
|
14 |
+
$args['body'] = array(
|
15 |
+
'user_key' => $wc_ast_api_key,
|
16 |
+
);
|
17 |
+
$response = wp_remote_post( $url, $args );
|
18 |
+
if ( !is_wp_error( $response ) )$plan_data = json_decode($response['body']);
|
19 |
+
|
20 |
if($completed_order_with_tracking > 0 || $completed_order_with_zero_balance > 0 || $completed_order_with_do_connection > 0){
|
21 |
+
$total_orders = $completed_order_with_tracking + $completed_order_with_zero_balance + $completed_order_with_do_connection; ?>
|
|
|
22 |
<div class="trackship-notice">
|
23 |
<p><?php echo sprintf(__('You have %s Shipped Orders from the last 30 days that you can bulk send to <a href="javascript:void(0);" class="tool_link">Get Shipment Status</a>', 'woo-advanced-shipment-tracking'),$total_orders ); ?></p>
|
24 |
+
</div>
|
25 |
+
<?php } ?>
|
26 |
+
|
27 |
+
<input id="tab_trackship_settings" type="radio" name="ts_inner_tabs" class="inner_tab_input" checked>
|
28 |
+
<label for="tab_trackship_settings" class="inner_tab_label ts_tabs_label"><?php _e('Settings', 'woocommerce'); ?></label>
|
29 |
+
|
30 |
+
<input id="tab_status_notifications" type="radio" name="ts_inner_tabs" class="inner_tab_input">
|
31 |
+
<label for="tab_status_notifications" class="inner_tab_label ts_tabs_label"><?php _e('Notifications', 'woo-advanced-shipment-tracking'); ?></label>
|
32 |
+
|
33 |
+
<input id="tab_tools" type="radio" name="ts_inner_tabs" class="inner_tab_input">
|
34 |
+
<label for="tab_tools" class="inner_tab_label ts_tabs_label"><?php _e('Tools', 'woo-advanced-shipment-tracking'); ?></label>
|
35 |
+
|
36 |
+
<?php include 'trackship_settings.php'; ?>
|
37 |
+
<?php include 'admin_status_notifications.php'; ?>
|
38 |
+
<?php include 'admin_options_tools.php';
|
39 |
+
} else{
|
40 |
+
include 'admin_options_trackship_integration.php';
|
41 |
+
}
|
42 |
+
?>
|
43 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
</section>
|
includes/views/front/preview_tracking_page.php
CHANGED
@@ -27,7 +27,7 @@
|
|
27 |
</div>
|
28 |
<div class="tracking-header">
|
29 |
<div class="provider_image_div" style="<?php if($hide_tracking_provider_image == 1) { echo 'display:none'; }; ?>">
|
30 |
-
<img class="provider_image" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/
|
31 |
</div>
|
32 |
<div class="tracking_number_div">
|
33 |
<ul>
|
27 |
</div>
|
28 |
<div class="tracking-header">
|
29 |
<div class="provider_image_div" style="<?php if($hide_tracking_provider_image == 1) { echo 'display:none'; }; ?>">
|
30 |
+
<img class="provider_image" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/usps.png?v=3.1.1">
|
31 |
</div>
|
32 |
<div class="tracking_number_div">
|
33 |
<ul>
|
includes/views/trackship_settings.php
CHANGED
@@ -1,39 +1,126 @@
|
|
1 |
-
<
|
2 |
-
<div class="
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<section id="content_trackship_settings" class="inner_tab_section">
|
2 |
+
<div class="tab_inner_container">
|
3 |
+
|
4 |
+
<div class="trackship_status_section first">
|
5 |
+
<div class="outer_form_table">
|
6 |
+
<table class="form-table heading-table">
|
7 |
+
<tbody>
|
8 |
+
<tr valign="top">
|
9 |
+
<td><h3 style=""><?php _e( 'TrackShip Connection Status', 'woo-advanced-shipment-tracking' ); ?></h3></td>
|
10 |
+
</tr>
|
11 |
+
</tbody>
|
12 |
+
</table>
|
13 |
+
<table class="form-table trackship_status_table">
|
14 |
+
<tbody>
|
15 |
+
<tr valign="top">
|
16 |
+
<td scope="row" class="titledesc"><label><strong><?php _e( 'Connection Status', 'woo-advanced-shipment-tracking' ); ?></strong></label></td>
|
17 |
+
<td class="forminp">
|
18 |
+
<a href="https://trackship.info/my-account/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="_blank" class="button-primary btn_green2 btn_large api_connected"><span class="dashicons dashicons-yes"></span><?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></a>
|
19 |
+
</td>
|
20 |
+
</tr>
|
21 |
+
</tbody>
|
22 |
+
</table>
|
23 |
+
</div>
|
24 |
+
</div>
|
25 |
+
|
26 |
+
<div class="trackship_status_section last">
|
27 |
+
<div class="outer_form_table">
|
28 |
+
<table class="form-table heading-table">
|
29 |
+
<tbody>
|
30 |
+
<tr valign="top">
|
31 |
+
<td><h3 style=""><?php _e( 'TrackShip Account', 'woo-advanced-shipment-tracking' ); ?></h3></td>
|
32 |
+
</tr>
|
33 |
+
</tbody>
|
34 |
+
</table>
|
35 |
+
<table class="form-table trackship_status_table">
|
36 |
+
<tbody>
|
37 |
+
<tr valign="top">
|
38 |
+
<td scope="row" class="titledesc">
|
39 |
+
<label><?php _e( 'Subscription: ', 'woo-advanced-shipment-tracking' ); ?></label><strong><?php if(isset($plan_data->subscription_plan)){ echo $plan_data->subscription_plan; } ?></strong></br>
|
40 |
+
<label><?php _e( 'Trackers Balance: ', 'woo-advanced-shipment-tracking' ); ?></label><strong><?php echo get_option('trackers_balance'); ?></strong>
|
41 |
+
</td>
|
42 |
+
<td class="forminp">
|
43 |
+
<a href="https://trackship.info/my-account/?utm_source=wpadmin&utm_medium=ts_settings&utm_campaign=dashboard" class="button-primary btn_ts_transparent" target="blank"><?php _e( 'TrackShip Dashboard', 'woo-advanced-shipment-tracking' ); ?></a>
|
44 |
+
</td>
|
45 |
+
</tr>
|
46 |
+
</tbody>
|
47 |
+
</table>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
|
51 |
+
<div class="clearfix"></div>
|
52 |
+
|
53 |
+
<form method="post" id="wc_ast_trackship_form" action="" enctype="multipart/form-data">
|
54 |
+
<div class="outer_form_table">
|
55 |
+
<table class="form-table heading-table">
|
56 |
+
<tbody>
|
57 |
+
<tr valign="top">
|
58 |
+
<td>
|
59 |
+
<h3 style=""><?php _e( 'General Settings', 'woo-advanced-shipment-tracking' ); ?></h3>
|
60 |
+
<?php wp_nonce_field( 'wc_ast_trackship_form', 'wc_ast_trackship_form_nonce' );?>
|
61 |
+
<input type="hidden" name="action" value="wc_ast_trackship_form_update">
|
62 |
+
</td>
|
63 |
+
</tr>
|
64 |
+
</tbody>
|
65 |
+
</table>
|
66 |
+
<?php $admin->get_html_ul( $trackship->get_trackship_general_data() ); ?>
|
67 |
+
</div>
|
68 |
+
</form>
|
69 |
+
|
70 |
+
<form method="post" id="wc_ast_trackship_automation_form" action="" enctype="multipart/form-data">
|
71 |
+
<div class="outer_form_table">
|
72 |
+
<table class="form-table heading-table">
|
73 |
+
<tbody>
|
74 |
+
<tr valign="top">
|
75 |
+
<td>
|
76 |
+
<h3 style=""><?php _e( 'Automation', 'woo-advanced-shipment-tracking' ); ?></h3>
|
77 |
+
<?php wp_nonce_field( 'wc_ast_trackship_automation_form', 'wc_ast_trackship_automation_form_nonce' );?>
|
78 |
+
<input type="hidden" name="action" value="wc_ast_trackship_automation_form_update">
|
79 |
+
</td>
|
80 |
+
</tr>
|
81 |
+
</tbody>
|
82 |
+
</table>
|
83 |
+
<table class="form-table order-status-table">
|
84 |
+
<tbody>
|
85 |
+
<tr valign="top" class="delivered_row <?php if(!get_option('wc_ast_status_delivered')){echo 'disable_row'; } ?>">
|
86 |
+
<td class="forminp">
|
87 |
+
<input type="hidden" name="wc_ast_status_delivered" value="0"/>
|
88 |
+
<input class="ast-tgl ast-tgl-flat ts_order_status_toggle" id="wc_ast_status_delivered" name="wc_ast_status_delivered" type="checkbox" <?php if(get_option('wc_ast_status_delivered')){echo 'checked'; } ?> value="1"/>
|
89 |
+
<label class="ast-tgl-btn ast-tgl-btn-green" for="wc_ast_status_delivered"></label>
|
90 |
+
</td>
|
91 |
+
<td class="forminp status-label-column">
|
92 |
+
<span class="order-label wc-delivered">
|
93 |
+
<?php
|
94 |
+
if(get_option('wc_ast_status_delivered')){
|
95 |
+
_e( wc_get_order_status_name( 'delivered' ), 'woo-advanced-shipment-tracking' );
|
96 |
+
} else{
|
97 |
+
_e( 'Delivered', 'woo-advanced-shipment-tracking' );
|
98 |
+
} ?>
|
99 |
+
</span>
|
100 |
+
</td>
|
101 |
+
<td class="forminp">
|
102 |
+
<fieldset>
|
103 |
+
<input class="input-text regular-input color_input" type="text" name="wc_ast_status_label_color" id="wc_ast_status_label_color" style="" value="<?php echo get_option('wc_ast_status_label_color','#59c889')?>" placeholder="">
|
104 |
+
<select class="select ts_custom_order_color_select" id="wc_ast_status_label_font_color" name="wc_ast_status_label_font_color">
|
105 |
+
<option value="#fff" <?php if(get_option('wc_ast_status_label_font_color','#fff') == '#fff'){ echo 'selected'; }?>><?php _e( 'Light Font', 'woo-advanced-shipment-tracking' ); ?></option>
|
106 |
+
<option value="#000" <?php if(get_option('wc_ast_status_label_font_color','#fff') == '#000'){ echo 'selected'; }?>><?php _e( 'Dark Font', 'woo-advanced-shipment-tracking' ); ?></option>
|
107 |
+
</select>
|
108 |
+
</fieldset>
|
109 |
+
</td>
|
110 |
+
</tr>
|
111 |
+
<tr valign="top" class="status_change_to_delivered_tr" style="<?php if(!get_option('wc_ast_status_delivered')){ echo 'display:none;';}?>">
|
112 |
+
<td class="forminp">
|
113 |
+
<input type="hidden" name="wc_ast_status_change_to_delivered" value="0"/>
|
114 |
+
<input class="ast-tgl ast-tgl-flat" id="wc_ast_status_change_to_delivered" name="wc_ast_status_change_to_delivered" type="checkbox" <?php if(get_option('wc_ast_status_change_to_delivered')){echo 'checked'; } ?> value="1"/>
|
115 |
+
<label class="ast-tgl-btn ast-tgl-btn-green" for="wc_ast_status_change_to_delivered"></label>
|
116 |
+
</td>
|
117 |
+
<td colspan="2" style="text-align: left;">
|
118 |
+
<?php _e( 'Automatically update the order status to Delivered when all shipments are Delivered', 'woo-advanced-shipment-tracking' ); ?>
|
119 |
+
</td>
|
120 |
+
</tr>
|
121 |
+
</tbody>
|
122 |
+
</table>
|
123 |
+
</div>
|
124 |
+
</form>
|
125 |
+
</div>
|
126 |
+
</section>
|
includes/views/trackship_sidebar.php
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* html code for admin sidebar
|
4 |
-
*/
|
5 |
-
?>
|
6 |
-
<div class="zorem_admin_sidebar">
|
7 |
-
<div class="zorem_admin_sidebar_inner">
|
8 |
-
|
9 |
-
<?php $wc_ast_api_key = get_option('wc_ast_api_key'); ?>
|
10 |
-
|
11 |
-
<div class="zorem-sidebar__section">
|
12 |
-
<h3><?php _e( 'TrackShip Connection Status', 'woo-advanced-shipment-tracking' ); ?></h3>
|
13 |
-
<div class="api_connected"><span class="dashicons dashicons-yes-alt"></span> <?php _e( 'Connected', 'woo-advanced-shipment-tracking' ); ?></div>
|
14 |
-
<a href="https://trackship.info/my-account/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" class="button-primary btn_ts_sidebar" target="_blank" ><?php _e( 'Account Dashboard', 'woo-advanced-shipment-tracking' ); ?></a>
|
15 |
-
</div>
|
16 |
-
|
17 |
-
<div class="zorem-sidebar__section">
|
18 |
-
<table class="sidebar_subscription_details">
|
19 |
-
<tr>
|
20 |
-
<td><?php _e( 'Trackers Balance', 'woo-advanced-shipment-tracking' ); ?></td>
|
21 |
-
<td><strong><?php echo get_option('trackers_balance'); ?></strong></td>
|
22 |
-
</tr>
|
23 |
-
<tr>
|
24 |
-
<td><?php _e( 'Subscription Plan', 'woo-advanced-shipment-tracking' ); ?></td>
|
25 |
-
<td><strong><?php if(isset($plan_data->subscription_plan))echo $plan_data->subscription_plan; ?></strong></td>
|
26 |
-
</tr>
|
27 |
-
</table>
|
28 |
-
<a href="https://trackship.info/my-account/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" class="button-primary btn_ts_sidebar" target="_blank" ><?php _e( 'Upgrade Now', 'woo-advanced-shipment-tracking' ); ?></a>
|
29 |
-
</div>
|
30 |
-
<?php if(!class_exists('SMS_for_WooCommerce')){ ?>
|
31 |
-
<div class="zorem-sidebar__section padding_0">
|
32 |
-
<a href="https://www.zorem.com/products/sms-for-woocommerce/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/SMSWOO-sidebar-banner.png"></a>
|
33 |
-
</div>
|
34 |
-
<?php } ?>
|
35 |
-
</div>
|
36 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/views/zorem_admin_addons_sidebar.php
DELETED
@@ -1,30 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* html code for admin sidebar
|
4 |
-
*/
|
5 |
-
?>
|
6 |
-
<div class="zorem_admin_sidebar">
|
7 |
-
<div class="zorem_admin_sidebar_inner">
|
8 |
-
<?php $wc_ast_api_key = get_option('wc_ast_api_key'); ?>
|
9 |
-
<div class="zorem-sidebar__section">
|
10 |
-
<h3 class="top-border">Your opinion matters to us!</h3>
|
11 |
-
<p>If you enjoy using The Advanced Shipment Tracking plugin, please take a minute and <a href="https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/reviews/#new-post" target="_blank">share your review</a>
|
12 |
-
</p>
|
13 |
-
</div>
|
14 |
-
|
15 |
-
<div class="zorem-sidebar__section">
|
16 |
-
<h3 class="top-border">More plugins by zorem</h3>
|
17 |
-
<?php
|
18 |
-
$plugin_list = $this->get_zorem_pluginlist();
|
19 |
-
?>
|
20 |
-
<ul>
|
21 |
-
<?php foreach($plugin_list as $plugin){
|
22 |
-
if( 'Advanced Shipment Tracking for WooCommerce' != $plugin->title && 'Tracking Per Item Add-on' != $plugin->title) {
|
23 |
-
?>
|
24 |
-
<li><img class="plugin_thumbnail" src="<?php echo $plugin->image_url; ?>"><a class="plugin_url" href="<?php echo $plugin->url; ?>" target="_blank"><?php echo $plugin->title; ?></a></li>
|
25 |
-
<?php }
|
26 |
-
}?>
|
27 |
-
</ul>
|
28 |
-
</div>
|
29 |
-
</div>
|
30 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/views/zorem_admin_bulk_upload_sidebar.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* html code for admin sidebar
|
4 |
-
*/
|
5 |
-
?>
|
6 |
-
<div class="zorem_admin_sidebar">
|
7 |
-
<div class="zorem_admin_sidebar_inner">
|
8 |
-
<div class="zorem-sidebar__section padding_0 import_tracking_sidebar">
|
9 |
-
<img class="import_tracking_csv_banner" src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/CSV-Import-Tracking-info.png">
|
10 |
-
</div>
|
11 |
-
<div class="zorem-sidebar__section">
|
12 |
-
<ul class="bulk_upload_documentation_ul">
|
13 |
-
<li><a class="" href="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>/assets/tracking.csv"><?php _e('Download sample csv', 'woo-advanced-shipment-tracking'); ?></a></li>
|
14 |
-
<li><a target="blank" href="https://www.zorem.com/docs/woocommerce-advanced-shipment-tracking/bulk-import-shipment-tracking/"><?php _e('Documentation', 'woo-advanced-shipment-tracking'); ?></a></li>
|
15 |
-
</ul>
|
16 |
-
</div>
|
17 |
-
<?php $wc_ast_api_key = get_option('wc_ast_api_key');
|
18 |
-
|
19 |
-
if(!$wc_ast_api_key){ ?>
|
20 |
-
<div class="zorem-sidebar__section padding_0">
|
21 |
-
<a href="https://trackship.info/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="_blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/trackship-sidebar-banner.png"></a>
|
22 |
-
</div>
|
23 |
-
<?php }
|
24 |
-
|
25 |
-
if(!class_exists('ast_woo_advanced_shipment_tracking_by_products')){ ?>
|
26 |
-
<div class="zorem-sidebar__section padding_0">
|
27 |
-
<a href="https://www.zorem.com/shop/tracking-per-item-ast-add-on/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/tpi-icon.png"></a>
|
28 |
-
</div>
|
29 |
-
<?php } ?>
|
30 |
-
|
31 |
-
<?php if(!class_exists('SMS_for_WooCommerce')){ ?>
|
32 |
-
<div class="zorem-sidebar__section padding_0">
|
33 |
-
<a href="https://www.zorem.com/products/sms-for-woocommerce/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/sms-woo-icon.png"></a>
|
34 |
-
</div>
|
35 |
-
<?php } ?>
|
36 |
-
|
37 |
-
<?php if(!class_exists('Advanced_Order_Status_Manager')){ ?>
|
38 |
-
<div class="zorem-sidebar__section padding_0">
|
39 |
-
<a href="https://www.zorem.com/products/advanced-order-status-manager/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/AOSM-banner.png"></a>
|
40 |
-
</div>
|
41 |
-
<?php } ?>
|
42 |
-
|
43 |
-
<?php if(!class_exists('ZH_Product_Country_Restrictions')){ ?>
|
44 |
-
<div class="zorem-sidebar__section padding_0">
|
45 |
-
<a href="https://www.zorem.com/products/country-based-restriction-pro/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/cbr-banner.png"></a>
|
46 |
-
</div>
|
47 |
-
<?php } ?>
|
48 |
-
|
49 |
-
<?php if(!class_exists('Woocommerce_Advanced_Sales_Report_Email')){ ?>
|
50 |
-
<div class="zorem-sidebar__section padding_0">
|
51 |
-
<a href="https://www.zorem.com/products/sales-report-email-for-woocommerce/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/sre-banner.png"></a>
|
52 |
-
</div>
|
53 |
-
<?php } ?>
|
54 |
-
|
55 |
-
</div>
|
56 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/views/zorem_admin_sidebar.php
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* html code for admin sidebar
|
4 |
-
*/
|
5 |
-
?>
|
6 |
-
<div class="zorem_admin_sidebar">
|
7 |
-
<div class="zorem_admin_sidebar_inner">
|
8 |
-
<div class="zorem-sidebar__section">
|
9 |
-
<h3>Your opinion matters to us!</h3>
|
10 |
-
<p>If you enjoy using The Advanced Shipment Tracking plugin, please take a minute and share your review</p>
|
11 |
-
<a href="https://wordpress.org/support/plugin/woo-advanced-shipment-tracking/reviews/#new-post" class="button-primary btn_ast_sidebar" target="_blank" >Add your review</a>
|
12 |
-
</div>
|
13 |
-
|
14 |
-
<?php $wc_ast_api_key = get_option('wc_ast_api_key');
|
15 |
-
|
16 |
-
if(!$wc_ast_api_key){ ?>
|
17 |
-
<div class="zorem-sidebar__section padding_0">
|
18 |
-
<a href="https://trackship.info/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="_blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/trackship-sidebar-banner.png"></a>
|
19 |
-
</div>
|
20 |
-
<?php }
|
21 |
-
|
22 |
-
if(!class_exists('ast_woo_advanced_shipment_tracking_by_products')){ ?>
|
23 |
-
<div class="zorem-sidebar__section padding_0">
|
24 |
-
<a href="https://www.zorem.com/shop/tracking-per-item-ast-add-on/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/tpi-icon.png"></a>
|
25 |
-
</div>
|
26 |
-
<?php } ?>
|
27 |
-
|
28 |
-
<?php if(!class_exists('SMS_for_WooCommerce')){ ?>
|
29 |
-
<div class="zorem-sidebar__section padding_0">
|
30 |
-
<a href="https://www.zorem.com/products/sms-for-woocommerce/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/sms-woo-icon.png"></a>
|
31 |
-
</div>
|
32 |
-
<?php } ?>
|
33 |
-
|
34 |
-
<?php if(!class_exists('Advanced_Order_Status_Manager')){ ?>
|
35 |
-
<div class="zorem-sidebar__section padding_0">
|
36 |
-
<a href="https://www.zorem.com/products/advanced-order-status-manager/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/AOSM-banner.png"></a>
|
37 |
-
</div>
|
38 |
-
<?php } ?>
|
39 |
-
|
40 |
-
<?php if(!class_exists('ZH_Product_Country_Restrictions')){ ?>
|
41 |
-
<div class="zorem-sidebar__section padding_0">
|
42 |
-
<a href="https://www.zorem.com/products/country-based-restriction-pro/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/cbr-banner.png"></a>
|
43 |
-
</div>
|
44 |
-
<?php } ?>
|
45 |
-
|
46 |
-
<?php if(!class_exists('Woocommerce_Advanced_Sales_Report_Email')){ ?>
|
47 |
-
<div class="zorem-sidebar__section padding_0">
|
48 |
-
<a href="https://www.zorem.com/products/sales-report-email-for-woocommerce/?utm_source=wpadmin&utm_medium=sidebar&utm_campaign=upgrade" target="blank"><img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/sre-banner.png"></a>
|
49 |
-
</div>
|
50 |
-
<?php } ?>
|
51 |
-
|
52 |
-
</div>
|
53 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lang/woo-advanced-shipment-tracking-de_DE.mo
CHANGED
Binary file
|
lang/woo-advanced-shipment-tracking-de_DE.po
CHANGED
@@ -3,7 +3,7 @@ msgstr ""
|
|
3 |
"Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2020-11-11 09:34+0000\n"
|
6 |
-
"PO-Revision-Date:
|
7 |
"Last-Translator: John\n"
|
8 |
"Language-Team: German\n"
|
9 |
"Language: de_DE\n"
|
@@ -12,47 +12,60 @@ msgstr ""
|
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
14 |
"X-Generator: Loco https://localise.biz/\n"
|
15 |
-
"X-Loco-Version: 2.
|
16 |
|
17 |
-
#: includes/views/admin_options_shipping_provider.php:
|
18 |
-
#: includes/views/admin_options_shipping_provider.php:
|
19 |
#, php-format
|
20 |
msgid "<a href=\"%s\" target=\"blank\">documentation</a>"
|
21 |
msgstr "Dokumentation"
|
22 |
|
23 |
-
#: includes/
|
24 |
-
#: includes/views/trackship_sidebar.php:14
|
25 |
-
msgid "Account Dashboard"
|
26 |
-
msgstr "Benutzerkonto Übersicht"
|
27 |
-
|
28 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1732
|
29 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1816
|
30 |
msgid "Actions"
|
31 |
msgstr "Aktionen"
|
32 |
|
33 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
34 |
-
msgid "Active"
|
35 |
-
msgstr "Aktiv"
|
36 |
-
|
37 |
-
#: includes/views/admin_options_shipping_provider.php:22
|
38 |
-
msgid "Active Providers"
|
39 |
msgstr ""
|
40 |
|
41 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
42 |
#: includes/views/admin_tracking_page_settings.php:71
|
43 |
msgid "Add a link to the Shipping provider page"
|
44 |
msgstr "Fügen Sie einen Link zur Seite Versandanbieter hinzu"
|
45 |
|
46 |
-
#: includes/
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
msgid "Add Custom Provider"
|
49 |
msgstr "Benutzerdefinierten Anbieter hinzufügen"
|
50 |
|
51 |
-
#: includes/views/admin_options_shipping_provider.php:
|
52 |
msgid "Add Custom Shipping Provider"
|
53 |
msgstr "Fügen Sie einen benutzerdefinierten Versandanbieter hinzu"
|
54 |
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
msgid "Add Tracking"
|
57 |
msgstr "Add Tracking"
|
58 |
|
@@ -60,7 +73,7 @@ msgstr "Add Tracking"
|
|
60 |
msgid "Add Tracking - order\t"
|
61 |
msgstr "Tracking hinzufügen - Bestellung"
|
62 |
|
63 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
64 |
msgid "Add Tracking action "
|
65 |
msgstr ""
|
66 |
|
@@ -68,16 +81,13 @@ msgstr ""
|
|
68 |
msgid "Add Tracking Info"
|
69 |
msgstr "Tracking-Info hinzufügen"
|
70 |
|
71 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
72 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
73 |
-
#: includes/
|
74 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:433
|
75 |
-
#: includes/views/admin_options_addons.php:131
|
76 |
-
#: includes/views/admin_options_addons.php:137
|
77 |
msgid "Add-ons"
|
78 |
msgstr "Add-ons"
|
79 |
|
80 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
81 |
msgid "Additional text after header"
|
82 |
msgstr "Zusätzlicher Text nach Kopfzeile"
|
83 |
|
@@ -85,16 +95,23 @@ msgstr "Zusätzlicher Text nach Kopfzeile"
|
|
85 |
msgid "Admin Notifications"
|
86 |
msgstr "Admin-Benachrichtigungen"
|
87 |
|
88 |
-
|
|
|
|
|
|
|
|
|
89 |
msgid "After Order Details"
|
90 |
msgstr "Nach Auftragsdetails"
|
91 |
|
92 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
|
|
|
|
|
|
|
|
93 |
msgid "API Date Format"
|
94 |
msgstr "API-Datumsformat"
|
95 |
|
96 |
-
#: includes/
|
97 |
-
#: includes/views/admin_options_shipping_provider.php:110
|
98 |
msgid "API Name"
|
99 |
msgstr "API-Name"
|
100 |
|
@@ -102,95 +119,96 @@ msgstr "API-Name"
|
|
102 |
msgid "As it Happens"
|
103 |
msgstr "Wie es passiert"
|
104 |
|
105 |
-
#: includes/
|
|
|
|
|
|
|
|
|
106 |
msgid ""
|
107 |
-
"Automatically
|
108 |
-
"
|
109 |
msgstr ""
|
110 |
"Setzen Sie den Bestellstatus automatisch auf \"Geliefert\", wenn die Sendung "
|
111 |
"geliefert wird"
|
112 |
|
113 |
-
#: includes/views/
|
114 |
msgid "Automation"
|
115 |
msgstr "Automatisierung"
|
116 |
|
117 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
118 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
119 |
-
#: includes/customizer/class-wcast-customizer.php:104
|
120 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:126
|
121 |
-
#: includes/customizer/class-wc-
|
|
|
122 |
#: includes/views/admin_status_notifications.php:82
|
123 |
msgid "Available For Pickup"
|
124 |
msgstr ""
|
125 |
"Zur Abholung bereit\n"
|
126 |
|
127 |
-
#. %s: list of placeholders
|
128 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:205
|
129 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:229
|
130 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
|
131 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
132 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
133 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
134 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
135 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
136 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
137 |
#: includes/customizer/class-wc-failure-email-customizer.php:204
|
138 |
#: includes/customizer/class-wc-failure-email-customizer.php:228
|
139 |
#: includes/customizer/class-wc-failure-email-customizer.php:273
|
140 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
141 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
142 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
143 |
-
#: includes/customizer/class-wc-
|
144 |
-
#: includes/customizer/class-wc-
|
145 |
-
#: includes/customizer/class-wc-
|
146 |
-
#: includes/customizer/class-wc-
|
147 |
-
#: includes/customizer/class-wc-
|
148 |
-
#: includes/customizer/class-wc-
|
149 |
-
#: includes/customizer/class-wc-
|
150 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
151 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
152 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
153 |
-
#: includes/customizer/class-wc-
|
154 |
-
#: includes/customizer/class-wc-
|
155 |
-
#: includes/customizer/class-wc-
|
156 |
-
#: includes/customizer/class-wc-
|
157 |
-
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:
|
158 |
-
#: includes/customizer/class-wc-
|
159 |
-
#: includes/customizer/class-wc-
|
160 |
-
#: includes/customizer/class-wc-
|
161 |
-
#: includes/emails/class-shipment-delivered-email.php:274
|
162 |
-
#: includes/emails/class-shipment-delivered-email.php:283
|
163 |
#: includes/views/admin_status_notifications.php:212
|
164 |
msgid "Available variables:"
|
165 |
msgstr "Verfügbare Variablen:"
|
166 |
|
167 |
-
#: includes/
|
|
|
|
|
|
|
|
|
168 |
msgid "Before Order Details"
|
169 |
msgstr "Vor der Bestellung Details"
|
170 |
|
171 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
172 |
msgid "Border color"
|
173 |
msgstr "Randfarbe"
|
174 |
|
175 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
176 |
msgid "Border size"
|
177 |
msgstr ""
|
178 |
"Rahmengrösse\n"
|
179 |
|
180 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
181 |
msgid "Bottom border color"
|
182 |
msgstr ""
|
183 |
"Farbe des unteren Randes\n"
|
184 |
|
185 |
-
#: includes/
|
186 |
-
msgid "Browse Providers"
|
187 |
-
msgstr ""
|
188 |
-
|
189 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:960
|
190 |
msgid "Button color"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
194 |
msgid "Button font color"
|
195 |
msgstr ""
|
196 |
|
@@ -199,21 +217,12 @@ msgid "Cannot create existing order shipment tracking."
|
|
199 |
msgstr ""
|
200 |
"Bestehende Sendungsverfolgung für Bestellungen kann nicht erstellt werden.\n"
|
201 |
|
202 |
-
#: includes/
|
203 |
-
|
204 |
-
msgstr ""
|
205 |
-
"Der Spediteur hat versucht, das Paket zu liefern, ist jedoch fehlgeschlagen."
|
206 |
-
|
207 |
-
#: includes/views/admin_status_notifications.php:97
|
208 |
-
msgid "Carrier is about to deliver the shipment."
|
209 |
-
msgstr "Der Spediteur ist im Begriff, die Sendung zu liefern."
|
210 |
-
|
211 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:769
|
212 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:867
|
213 |
msgid "Carrier Unsupported"
|
214 |
msgstr "Träger nicht unterstützt"
|
215 |
|
216 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
217 |
msgid "Change order status to"
|
218 |
msgstr "Ändern Sie den Auftragsstatus in"
|
219 |
|
@@ -222,123 +231,129 @@ msgid "Change status to shipped"
|
|
222 |
msgstr ""
|
223 |
"Ändern Sie den Status in \"Versand\"\n"
|
224 |
|
225 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
226 |
msgid "Choose for which Order status to display"
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
230 |
msgid "Choose for which Order status to display Add Tracking action button"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
234 |
msgid "Choose on which order emails to include the shipment tracking info"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: includes/views/admin_options_bulk_upload.php:
|
238 |
msgid "Choose the Shipped Date format"
|
239 |
msgstr "Wählen Sie das Versanddatum-Format"
|
240 |
|
241 |
-
#: includes/emails/class-shipment-delivered-email.php:298
|
242 |
-
msgid "Click Here"
|
243 |
-
msgstr ""
|
244 |
-
"Klick hier\n"
|
245 |
-
|
246 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:420
|
247 |
msgid "Completed"
|
248 |
msgstr "vollendet, fertiggestellt"
|
249 |
|
250 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
251 |
-
#: includes/views/
|
252 |
msgid "Connected"
|
253 |
msgstr ""
|
254 |
"In Verbindung gebracht\n"
|
255 |
|
256 |
-
#: includes/
|
|
|
|
|
|
|
|
|
257 |
msgid "Content"
|
258 |
msgstr "Inhalt"
|
259 |
|
260 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
261 |
msgid "Content Background color"
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
265 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
266 |
msgid "Content font color"
|
267 |
msgstr ""
|
268 |
"Schriftfarbe des Inhalts\n"
|
269 |
|
270 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
271 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
272 |
msgid "Content font size"
|
273 |
msgstr ""
|
274 |
"Schriftgröße des Inhalts\n"
|
275 |
|
276 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
277 |
msgid "Content font weight"
|
278 |
msgstr ""
|
279 |
"Schriftgröße des Inhalts\n"
|
280 |
|
281 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
282 |
msgid "Content line height"
|
283 |
msgstr "Höhe der Inhaltszeile"
|
284 |
|
285 |
-
#: includes/views/admin_options_bulk_upload.php:
|
286 |
msgid "Continue"
|
287 |
msgstr "Fortsetzen"
|
288 |
|
289 |
-
#: includes/
|
|
|
290 |
msgid "Country"
|
291 |
msgstr "Land"
|
292 |
|
293 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
294 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
295 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:327
|
296 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:411
|
297 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:415
|
298 |
-
#: includes/views/admin_options_bulk_upload.php:11
|
299 |
msgid "CSV Import"
|
300 |
msgstr "CSV-Import"
|
301 |
|
302 |
-
#: includes/views/admin_options_shipping_provider.php:
|
303 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
msgid "Custom display name"
|
305 |
msgstr "Benutzerdefinierter Anzeigename"
|
306 |
|
307 |
-
#: includes/customizer/class-wcast-customizer.php:
|
308 |
msgid "Custom order status email"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: includes/
|
312 |
-
|
313 |
-
|
314 |
-
msgstr "Status der benutzerdefinierten Bestellung"
|
315 |
|
316 |
-
#: includes/views/admin_options_shipping_provider.php:
|
317 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
318 |
msgstr ""
|
319 |
|
320 |
#: includes/views/admin_status_notifications.php:234
|
321 |
msgid "Daily Digest on"
|
322 |
msgstr "Daily Digest on"
|
323 |
|
324 |
-
#: includes/views/admin_options_osm.php:
|
325 |
-
#: includes/views/admin_options_osm.php:
|
326 |
-
#: includes/views/
|
327 |
msgid "Dark Font"
|
328 |
msgstr ""
|
329 |
"Dunkle Schrift\n"
|
330 |
|
331 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
332 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
333 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
334 |
-
|
335 |
-
msgstr ""
|
336 |
-
"keine Daten verfügbar.\n"
|
337 |
-
|
338 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:159
|
339 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:229
|
340 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:233
|
341 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:353
|
342 |
msgid "Data saved successfully."
|
343 |
msgstr "Daten erfolgreich gespeichert."
|
344 |
|
@@ -347,32 +362,37 @@ msgstr "Daten erfolgreich gespeichert."
|
|
347 |
msgid "Date shipped:"
|
348 |
msgstr "Lieferdatum:"
|
349 |
|
350 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
351 |
-
|
352 |
-
|
|
|
|
|
|
|
|
|
|
|
353 |
msgstr "Standard"
|
354 |
|
355 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
356 |
msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
|
357 |
msgstr ""
|
358 |
"Standard \"als <span class =\" shipped_label \"> abgeschlossen </ span> "
|
359 |
"markieren\""
|
360 |
|
361 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
362 |
msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
|
363 |
msgstr "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
|
364 |
|
|
|
365 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:134
|
366 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:179
|
367 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
368 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
369 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
370 |
-
#: includes/customizer/class-
|
371 |
-
#: includes/customizer/class-wc-
|
372 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
373 |
-
#: includes/
|
374 |
-
#: includes/views/
|
375 |
-
#: includes/views/admin_options_osm.php:17
|
376 |
msgid "Delivered"
|
377 |
msgstr "Geliefert"
|
378 |
|
@@ -385,64 +405,79 @@ msgstr[0] ""
|
|
385 |
msgstr[1] ""
|
386 |
"Geliefert <span class=\"count\">(%s)</span>\n"
|
387 |
|
388 |
-
#: includes/emails/class-shipment-delivered-email.php:32
|
389 |
-
msgid "Delivered order"
|
390 |
-
msgstr ""
|
391 |
-
"Gelieferte Bestellung\n"
|
392 |
-
|
393 |
#: includes/views/front/layout1_tracking_details.php:8
|
394 |
msgid "Destination Details"
|
395 |
msgstr "Zieldetails"
|
396 |
|
397 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
398 |
msgid "Display Billing Address"
|
399 |
msgstr ""
|
400 |
"Rechnungsadresse anzeigen\n"
|
401 |
|
402 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
403 |
msgid "Display Name"
|
404 |
msgstr "Anzeigename"
|
405 |
|
406 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
407 |
msgid "Display order details"
|
408 |
msgstr ""
|
409 |
"Bestelldetails anzeigen\n"
|
410 |
|
411 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
412 |
-
|
|
|
|
|
413 |
msgstr "Sendungsstatusfilter im Auftragsadministrator anzeigen"
|
414 |
|
415 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
416 |
msgid "Display Shipping Address"
|
417 |
msgstr ""
|
418 |
"Lieferadresse anzeigen\n"
|
419 |
|
420 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
421 |
msgid "Display shipping provider image"
|
422 |
msgstr ""
|
423 |
"Bild des Versandanbieters anzeigen\n"
|
424 |
|
425 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
426 |
msgid "Display shipping provider name"
|
427 |
msgstr ""
|
428 |
"Name des Versandanbieters anzeigen\n"
|
429 |
|
430 |
-
#: includes/class-wc-
|
431 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
435 |
msgid "Display tracking details"
|
436 |
msgstr ""
|
437 |
"Tracking-Details anzeigen\n"
|
438 |
|
439 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
440 |
-
|
441 |
-
|
442 |
-
msgid "Documentation"
|
443 |
-
msgstr "Dokumentation"
|
444 |
|
445 |
-
#: includes/views/
|
446 |
msgid "Download sample csv"
|
447 |
msgstr "Beispiel-CSV herunterladen"
|
448 |
|
@@ -451,52 +486,56 @@ msgid "E.g. {admin_email}, admin@example.org"
|
|
451 |
msgstr "Z.B. {admin_email}, admin@example.org"
|
452 |
|
453 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:187
|
454 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
455 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
456 |
#: includes/customizer/class-wc-failure-email-customizer.php:186
|
457 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
458 |
-
#: includes/customizer/class-wc-
|
459 |
-
#: includes/customizer/class-wc-
|
460 |
-
#: includes/customizer/class-wc-
|
461 |
msgid "E.g. {customer.email}, admin@example.org"
|
462 |
msgstr "Z.B. {customer.email}, admin@example.org"
|
463 |
|
464 |
-
#: includes/
|
465 |
-
msgid "
|
466 |
msgstr ""
|
467 |
-
"Bearbeiten Sie im Customizer\n"
|
468 |
|
469 |
-
#: includes/views/admin_options_shipping_provider.php:
|
470 |
msgid "Edit Shipping Provider"
|
471 |
msgstr "Versandanbieter bearbeiten"
|
472 |
|
473 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:252
|
474 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
475 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
476 |
#: includes/customizer/class-wc-failure-email-customizer.php:251
|
477 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
478 |
-
#: includes/customizer/class-wc-
|
479 |
-
#: includes/customizer/class-wc-
|
480 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
481 |
-
#: includes/customizer/class-wc-
|
482 |
-
#: includes/customizer/class-wc-
|
483 |
#: includes/views/admin_status_notifications.php:206
|
484 |
msgid "Email content"
|
485 |
msgstr "E-Mail-Inhalt"
|
486 |
|
487 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:204
|
488 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
489 |
#: includes/customizer/class-wc-failure-email-customizer.php:203
|
490 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
491 |
-
#: includes/customizer/class-wc-
|
492 |
-
#: includes/customizer/class-wc-
|
493 |
msgid "Email Subject"
|
494 |
msgstr "E-Mail Betreff"
|
495 |
|
496 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
|
|
497 |
msgid "Email Type"
|
498 |
msgstr ""
|
499 |
|
|
|
|
|
|
|
|
|
500 |
#: includes/views/admin_tracking_page_settings.php:10
|
501 |
msgid "Enable a tracking page on your store"
|
502 |
msgstr "Aktivieren Sie eine Tracking-Seite in Ihrem Shop"
|
@@ -505,15 +544,11 @@ msgstr "Aktivieren Sie eine Tracking-Seite in Ihrem Shop"
|
|
505 |
msgid "Enable Available For Pickup email"
|
506 |
msgstr "Aktivieren Sie Verfügbar für Abhol-E-Mail"
|
507 |
|
508 |
-
#: includes/
|
509 |
-
msgid "Enable custom order statuses to streamline your fulfillment workflow"
|
510 |
-
msgstr ""
|
511 |
-
|
512 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:161
|
513 |
msgid "Enable Delivered email"
|
514 |
msgstr "Aktivieren Sie die zugestellte E-Mail"
|
515 |
|
516 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
517 |
msgid "Enable Delivered order status email"
|
518 |
msgstr ""
|
519 |
"Aktivieren Sie die Status-E-Mail für die gelieferte Bestellung\n"
|
@@ -522,37 +557,37 @@ msgstr ""
|
|
522 |
msgid "Enable Failed Attempt email"
|
523 |
msgstr "Aktivieren Sie die E-Mail \"Fehlgeschlagener Versuch\""
|
524 |
|
525 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
526 |
msgid "Enable Google Analytics tracking"
|
527 |
msgstr ""
|
528 |
"Aktivieren Sie das Google Analytics-Tracking\n"
|
529 |
|
530 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
531 |
msgid "Enable In Transit email"
|
532 |
msgstr "In Transit-E-Mail aktivieren"
|
533 |
|
534 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:
|
535 |
msgid "Enable On Hold email"
|
536 |
msgstr "E-Mail aktivieren"
|
537 |
|
538 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
539 |
msgid "Enable Out For Delivery email"
|
540 |
msgstr "Aktivieren Sie Out for Delivery E-Mail"
|
541 |
|
542 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
543 |
msgid "Enable Partially Shipped order status email"
|
544 |
msgstr ""
|
545 |
"Teilweise versendete Bestellstatus-E-Mail aktivieren\n"
|
546 |
|
547 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
548 |
msgid "Enable Return To Sender email"
|
549 |
msgstr "Aktivieren Sie Return To Sender E-Mail"
|
550 |
|
551 |
-
#: includes/class-wc-
|
552 |
-
msgid "Enable
|
553 |
-
msgstr "
|
554 |
|
555 |
-
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:
|
556 |
msgid "Enable Updated Tracking order status email"
|
557 |
msgstr ""
|
558 |
"Aktivieren Sie die E-Mail mit dem Status der aktualisierten "
|
@@ -563,24 +598,29 @@ msgid "Est. Delivery Date"
|
|
563 |
msgstr ""
|
564 |
"Europäische Sommerzeit. Lieferdatum\n"
|
565 |
|
566 |
-
#: includes/class-wc-
|
|
|
|
|
|
|
|
|
|
|
567 |
msgid "Exception"
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
571 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
572 |
-
#: includes/customizer/class-
|
573 |
#: includes/customizer/class-wc-failure-email-customizer.php:126
|
574 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
575 |
-
#: includes/views/admin_status_notifications.php:
|
576 |
msgid "Failed Attempt"
|
577 |
msgstr "Misslungener Versuch"
|
578 |
|
579 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
580 |
msgid "Filter by shipment status"
|
581 |
msgstr "Filtern nach Sendungsstatus"
|
582 |
|
583 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
584 |
msgid "Filter by shipping provider"
|
585 |
msgstr "Nach Versandanbieter filtern"
|
586 |
|
@@ -590,54 +630,65 @@ msgid "Found in your order confirmation email."
|
|
590 |
msgstr ""
|
591 |
"Gefunden in Ihrer Auftragsbestätigungs-E-Mail.\n"
|
592 |
|
593 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
594 |
msgid "General Settings"
|
595 |
msgstr "Allgemeine Einstellungen"
|
596 |
|
597 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
598 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
599 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
600 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
601 |
msgid "Get Shipment Status"
|
602 |
msgstr ""
|
603 |
"Sendungsstatus abrufen\n"
|
604 |
|
605 |
-
#: includes/views/admin_options_shipping_provider.php:
|
606 |
-
#: includes/views/admin_options_shipping_provider.php:
|
607 |
msgid "Global"
|
608 |
msgstr "Global"
|
609 |
|
610 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
611 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
612 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
613 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
614 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
615 |
-
#: includes/customizer/class-wc-
|
616 |
-
#: includes/customizer/class-wc-
|
617 |
-
#: includes/customizer/class-wc-
|
618 |
msgid "Google Analytics link tracking"
|
619 |
msgstr ""
|
620 |
"Google Analytics-Linkverfolgung\n"
|
621 |
|
622 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
623 |
msgid "Headers background color"
|
624 |
msgstr ""
|
625 |
|
626 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
627 |
msgid "Headers font color"
|
628 |
msgstr ""
|
629 |
"Schriftfarbe der Überschriften\n"
|
630 |
|
631 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
632 |
msgid "Headers font size"
|
633 |
msgstr ""
|
634 |
"Schriftgröße der Überschriften\n"
|
635 |
|
636 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
637 |
msgid "Headers font weight"
|
638 |
msgstr ""
|
639 |
|
640 |
-
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:
|
641 |
msgid ""
|
642 |
"Hi there. we thought you'd like to know that the shipment tracking for your "
|
643 |
"recent order from {site_title} has been updated."
|
@@ -645,8 +696,8 @@ msgstr ""
|
|
645 |
"Hallo. Wir dachten, Sie möchten wissen, dass die Sendungsverfolgung für Ihre "
|
646 |
"letzte Bestellung von {site_title} aktualisiert wurde.\n"
|
647 |
|
648 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
649 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
650 |
msgid ""
|
651 |
"Hi there. we thought you'd like to know that your recent order from "
|
652 |
"{site_title} has been Delivered."
|
@@ -662,7 +713,7 @@ msgstr ""
|
|
662 |
"Hallo. Wir dachten, Sie möchten wissen, dass Ihre letzte Bestellung von "
|
663 |
"{site_title} teilweise versendet wurde.\n"
|
664 |
|
665 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
666 |
msgid ""
|
667 |
"Hi there. we thought you'd like to know that your recent order from "
|
668 |
"{site_title} has been returned to sender."
|
@@ -694,7 +745,7 @@ msgstr ""
|
|
694 |
"Hallo. Wir dachten, Sie möchten wissen, dass Ihre letzte Bestellung von "
|
695 |
"{site_title} unterwegs ist\n"
|
696 |
|
697 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:
|
698 |
msgid ""
|
699 |
"Hi there. we thought you'd like to know that your recent order from "
|
700 |
"{site_title} is on hold"
|
@@ -702,7 +753,7 @@ msgstr ""
|
|
702 |
"Hallo. Wir dachten, Sie möchten wissen, dass Ihre letzte Bestellung von "
|
703 |
"{site_title} zurückgestellt wurde"
|
704 |
|
705 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
706 |
msgid ""
|
707 |
"Hi there. we thought you'd like to know that your recent order from "
|
708 |
"{site_title} is out for delivery."
|
@@ -710,85 +761,96 @@ msgstr ""
|
|
710 |
"Hallo. Wir dachten, Sie möchten wissen, dass Ihre letzte Bestellung von "
|
711 |
"{site_title} nicht lieferbar ist.\n"
|
712 |
|
713 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
714 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
715 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
716 |
msgid "hide details"
|
717 |
msgstr ""
|
718 |
"Details ausblenden\n"
|
719 |
|
720 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
721 |
#: includes/views/admin_tracking_page_settings.php:76
|
722 |
msgid "Hide Shipping Provider Image"
|
723 |
msgstr ""
|
724 |
"Bild des Versandanbieters ausblenden\n"
|
725 |
|
726 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
727 |
msgid "Hide Table Headers"
|
728 |
msgstr ""
|
729 |
"Tabellenüberschriften ausblenden\n"
|
730 |
|
731 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
732 |
#, fuzzy
|
733 |
#| msgid "Hide the ship date"
|
734 |
msgid "Hide the shipped date"
|
735 |
msgstr ""
|
736 |
"Verstecken Sie das Versanddatum\n"
|
737 |
|
|
|
|
|
|
|
|
|
738 |
#: includes/views/admin_tracking_page_settings.php:81
|
739 |
msgid "Hide tracking event details"
|
740 |
msgstr ""
|
741 |
"Tracking-Ereignisdetails ausblenden\n"
|
742 |
|
743 |
-
#: includes/class-wc-
|
|
|
|
|
|
|
|
|
744 |
msgid "Hide tracking events details"
|
745 |
msgstr "Details zu Tracking-Ereignissen ausblenden"
|
746 |
|
747 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
748 |
msgid "Hide Tracking Header"
|
749 |
msgstr "Tracking-Header ausblenden"
|
750 |
|
751 |
-
#: includes/class-wc-
|
752 |
-
msgid "
|
753 |
-
msgstr "
|
|
|
|
|
|
|
|
|
754 |
|
755 |
-
|
756 |
-
msgid ""
|
757 |
-
"If a shipment reached the number of days that you define, and the shipment "
|
758 |
-
"is not \"delivered\" or \"Returned to Sender\" than email will trigger."
|
759 |
msgstr ""
|
760 |
-
"Wenn eine Sendung die von Ihnen festgelegte Anzahl von Tagen erreicht hat "
|
761 |
-
"und die Sendung nicht \"geliefert\" oder \"an den Absender zurückgesandt\" "
|
762 |
-
"ist, wird eine E-Mail ausgelöst."
|
763 |
|
764 |
-
|
|
|
|
|
|
|
|
|
765 |
msgid "Import in Progress"
|
766 |
msgstr "Import in Bearbeitung"
|
767 |
|
768 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
769 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
|
|
770 |
#: includes/customizer/class-wc-intransit-email-customizer.php:129
|
771 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
772 |
-
#: includes/views/admin_status_notifications.php:
|
773 |
msgid "In Transit"
|
774 |
-
msgstr ""
|
775 |
-
"Im Transit\n"
|
776 |
|
777 |
#: includes/api/class-wc-advanced-shipment-tracking-rest-api-controller.php:397
|
778 |
msgid "Invalid order ID."
|
779 |
msgstr ""
|
780 |
"Ungültige Bestellnummer.\n"
|
781 |
|
782 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
783 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
784 |
msgid "Invalid Tracking Number"
|
785 |
msgstr "Ungültige Tracking-Nummer"
|
786 |
|
787 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
788 |
msgid "Invalid User Key"
|
789 |
msgstr "Ungültiger Benutzerschlüssel"
|
790 |
|
791 |
-
#: includes/views/admin_options_bulk_upload.php:
|
792 |
msgid ""
|
793 |
"Keep unchecked for the tracking info to be added to any existing tracking "
|
794 |
"info added to the orders."
|
@@ -810,33 +872,37 @@ msgstr "Späte Versandtage"
|
|
810 |
msgid "Late shipment for order #{order_number}"
|
811 |
msgstr "Verspäteter Versand für Bestellnummer {Bestellnummer}"
|
812 |
|
813 |
-
#: includes/customizer/class-wcast-customizer.php:135
|
814 |
#: includes/views/admin_status_notifications.php:155
|
815 |
msgid "Late Shipments"
|
816 |
msgstr "Verspätete Lieferungen"
|
817 |
|
818 |
-
#: includes/views/admin_options_settings.php:
|
819 |
msgid "Launch Customizer"
|
820 |
msgstr ""
|
821 |
"Starten Sie den Customizer\n"
|
822 |
|
823 |
-
#: includes/views/admin_options_addons.php:
|
824 |
msgid "License"
|
825 |
msgstr "Lizenz"
|
826 |
|
827 |
-
#: includes/views/admin_options_osm.php:
|
828 |
-
#: includes/views/admin_options_osm.php:
|
829 |
-
#: includes/views/
|
830 |
msgid "Light Font"
|
831 |
msgstr ""
|
832 |
"Leichte Schrift\n"
|
833 |
|
|
|
|
|
|
|
|
|
|
|
834 |
#: includes/class-wc-advanced-shipment-tracking.php:316
|
835 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:419
|
836 |
msgid "Mark as Completed?"
|
837 |
msgstr "Als erledigt markieren?"
|
838 |
|
839 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
840 |
msgid "Mark as Shipped"
|
841 |
msgstr "Als versandt markieren"
|
842 |
|
@@ -845,28 +911,34 @@ msgstr "Als versandt markieren"
|
|
845 |
msgid "Mark as Shipped?"
|
846 |
msgstr "Als versandt markieren?"
|
847 |
|
848 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
849 |
msgid "Mark order as delivered"
|
850 |
msgstr "Bestellung als geliefert markieren"
|
851 |
|
852 |
#: includes/class-wc-advanced-shipment-tracking.php:397
|
853 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
854 |
msgid "Mark order as:"
|
855 |
msgstr "Bestellung markieren als:"
|
856 |
|
857 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
|
|
858 |
msgid "Mockup Order"
|
859 |
msgstr ""
|
860 |
|
861 |
-
#: includes/customizer/class-wcast-customizer.php:
|
862 |
msgid "Mockup order"
|
863 |
msgstr ""
|
864 |
|
|
|
865 |
#: includes/views/admin_tracking_page_settings.php:41
|
866 |
msgid "more info"
|
867 |
msgstr ""
|
868 |
"Mehr Info\n"
|
869 |
|
|
|
|
|
|
|
|
|
870 |
#: includes/views/admin_tracking_page_settings.php:41
|
871 |
msgid ""
|
872 |
"Note - If you select a different page than the Shipment Tracking page, add "
|
@@ -876,39 +948,28 @@ msgstr ""
|
|
876 |
"auswählen, fügen Sie dem ausgewählten Seiteninhalt den Shortcode [wcast-"
|
877 |
"track-order] hinzu.\n"
|
878 |
|
879 |
-
#: includes/
|
880 |
-
#: includes/views/trackship_settings.php:12
|
881 |
-
#: includes/views/trackship_settings.php:13
|
882 |
msgid "Notifications"
|
883 |
msgstr "Benachrichtigungen"
|
884 |
|
885 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
886 |
-
#: includes/customizer/class-
|
887 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
888 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:
|
889 |
-
#: includes/views/admin_status_notifications.php:
|
890 |
msgid "On Hold"
|
891 |
msgstr "In Wartestellung"
|
892 |
|
893 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
894 |
msgid "Open the track link in a new tab"
|
895 |
msgstr ""
|
896 |
|
897 |
-
#: includes/emails/class-shipment-delivered-email.php:33
|
898 |
-
msgid ""
|
899 |
-
"Order delivered emails are sent to customers when their orders are marked "
|
900 |
-
"delivered and usually indicate that their orders have been shipped."
|
901 |
-
msgstr ""
|
902 |
-
"Von der Bestellung zugestellte E-Mails werden an Kunden gesendet, wenn ihre "
|
903 |
-
"Bestellungen als zugestellt markiert sind und in der Regel angeben, dass "
|
904 |
-
"ihre Bestellungen versandt wurden.\n"
|
905 |
-
|
906 |
#: templates/tracking/tracking-form.php:13
|
907 |
msgid "Order Email"
|
908 |
msgstr ""
|
909 |
"E-Mail bestellen\n"
|
910 |
|
911 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
912 |
msgid "Order Email Display"
|
913 |
msgstr ""
|
914 |
|
@@ -924,12 +985,12 @@ msgid "Order number: %s"
|
|
924 |
msgstr ""
|
925 |
"Bestellnummer:% s\n"
|
926 |
|
927 |
-
#: includes/
|
928 |
-
msgid "Order Status
|
929 |
-
msgstr "
|
930 |
|
931 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
932 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
933 |
#, php-format
|
934 |
msgid "Order was shipped with %s and tracking number is: %s"
|
935 |
msgstr ""
|
@@ -939,32 +1000,34 @@ msgstr ""
|
|
939 |
msgid "Origin Details"
|
940 |
msgstr "Origin Details"
|
941 |
|
|
|
942 |
#: includes/views/admin_tracking_page_settings.php:36
|
943 |
msgid "Other"
|
944 |
msgstr "Andere"
|
945 |
|
946 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
947 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
948 |
-
#: includes/customizer/class-
|
949 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
950 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
951 |
msgid "Out For Delivery"
|
952 |
msgstr ""
|
953 |
"Raus zur Lieferung\n"
|
954 |
|
955 |
-
#: includes/views/admin_status_notifications.php:
|
956 |
msgid "Out For delivery"
|
957 |
msgstr "Raus zur Lieferung"
|
958 |
|
959 |
#: includes/class-wc-advanced-shipment-tracking.php:400
|
960 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
961 |
msgid "Partial Shipped"
|
962 |
msgstr "Teilweise versandt"
|
963 |
|
964 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:162
|
965 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:208
|
966 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
967 |
-
#: includes/
|
|
|
968 |
msgid "Partially Shipped"
|
969 |
msgstr ""
|
970 |
"zum Teil versandt\n"
|
@@ -978,8 +1041,8 @@ msgstr[0] ""
|
|
978 |
msgstr[1] ""
|
979 |
"Teilweise versandt <span class=\"count\">(%s)</span>\n"
|
980 |
|
981 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
982 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
983 |
msgid "Pending TrackShip"
|
984 |
msgstr "Ausstehendes TrackShip"
|
985 |
|
@@ -990,41 +1053,41 @@ msgid ""
|
|
990 |
"for WooCommerce!"
|
991 |
msgstr ""
|
992 |
|
993 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
994 |
msgid "Please select a order..."
|
995 |
msgstr ""
|
996 |
"Bitte wählen Sie eine Bestellung aus ...\n"
|
997 |
|
998 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
999 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
1000 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
1001 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
1002 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1003 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1004 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
1005 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
1006 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1007 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1008 |
-
#: includes/customizer/class-wc-
|
1009 |
-
#: includes/customizer/class-wc-
|
1010 |
-
#: includes/customizer/class-wc-
|
1011 |
-
#: includes/customizer/class-wc-
|
1012 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
1013 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
1014 |
-
#: includes/customizer/class-wc-
|
1015 |
-
#: includes/customizer/class-wc-
|
1016 |
-
#: includes/customizer/class-wc-
|
1017 |
-
#: includes/customizer/class-wc-
|
1018 |
msgid "Please select order to preview."
|
1019 |
msgstr ""
|
1020 |
"Bitte wählen Sie eine Bestellung aus, um eine Vorschau anzuzeigen.\n"
|
1021 |
|
1022 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1023 |
msgid "Please upload a valid CSV file."
|
1024 |
msgstr "Please upload a valid CSV file."
|
1025 |
|
1026 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1027 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1028 |
msgid "Pre Transit"
|
1029 |
msgstr ""
|
1030 |
"Pre Transit\n"
|
@@ -1033,9 +1096,10 @@ msgstr ""
|
|
1033 |
msgid "Preview"
|
1034 |
msgstr "Vorschau"
|
1035 |
|
1036 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1037 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1038 |
-
#: includes/customizer/class-wc-
|
|
|
1039 |
msgid "Preview order"
|
1040 |
msgstr "Vorschau der Bestellung"
|
1041 |
|
@@ -1048,104 +1112,108 @@ msgstr "Vorschau:"
|
|
1048 |
msgid "Product Code:"
|
1049 |
msgstr "Produktcode:"
|
1050 |
|
1051 |
-
#: includes/class-wc-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
|
|
|
|
|
|
1055 |
#: templates/myaccount/tracking-info.php:211
|
1056 |
msgid "Provider"
|
1057 |
msgstr "Anbieter"
|
1058 |
|
1059 |
-
#:
|
|
|
|
|
1060 |
#: templates/myaccount/tracking-info.php:216
|
1061 |
msgid "Provider Name"
|
1062 |
msgstr "Anbietername"
|
1063 |
|
1064 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1065 |
msgid "Providers Added"
|
1066 |
msgstr "Anbieter hinzugefügt"
|
1067 |
|
1068 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1069 |
msgid "Providers Deleted"
|
1070 |
msgstr "Anbieter gelöscht"
|
1071 |
|
1072 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1073 |
msgid "Providers Updated"
|
1074 |
msgstr "Anbieter aktualisiert"
|
1075 |
|
1076 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1077 |
msgid "Really delete this entry? This will not be undo."
|
1078 |
msgstr "Diesen Eintrag wirklich löschen? Dies wird nicht rückgängig gemacht."
|
1079 |
|
1080 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1081 |
#: includes/views/admin_tracking_page_settings.php:86
|
1082 |
msgid "Remove TrackShip branding"
|
1083 |
msgstr ""
|
1084 |
"Entfernen Sie das TrackShip-Branding\n"
|
1085 |
|
1086 |
-
#: includes/
|
1087 |
msgid "Rename the “Completed” Order status label to “Shipped”"
|
1088 |
msgstr ""
|
1089 |
|
1090 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1091 |
msgid "Replace tracking information?"
|
1092 |
msgstr "Tracking-Informationen ersetzen?"
|
1093 |
|
1094 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
1095 |
msgid "Resend delivered order notification"
|
1096 |
msgstr ""
|
1097 |
"Senden Sie die gelieferte Bestellbenachrichtigung erneut\n"
|
1098 |
|
1099 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1100 |
msgid "Reset"
|
1101 |
msgstr "Zurücksetzen"
|
1102 |
|
1103 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1104 |
msgid ""
|
1105 |
"Reset providers database, it will reset all your shipping provider database"
|
1106 |
msgstr ""
|
1107 |
"Anbieter-Datenbank zurücksetzen, setzt Ihre gesamte Versandanbieter-"
|
1108 |
"Datenbank zurück"
|
1109 |
|
1110 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1111 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1112 |
-
#: includes/customizer/class-
|
1113 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1114 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
1115 |
-
#: includes/views/admin_status_notifications.php:
|
1116 |
msgid "Return To Sender"
|
1117 |
msgstr ""
|
1118 |
"Zurück an den Absender\n"
|
1119 |
|
1120 |
-
#: includes/views/admin_options_settings.php:
|
1121 |
-
#: includes/views/admin_trackship_dashboard.php:45
|
1122 |
-
#: includes/views/admin_tracking_page_settings.php:104
|
1123 |
#: includes/views/admin_status_notifications.php:245
|
|
|
1124 |
msgid "Save Changes"
|
1125 |
msgstr ""
|
1126 |
"Änderungen speichern\n"
|
1127 |
|
1128 |
#: includes/class-wc-advanced-shipment-tracking.php:416
|
1129 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:491
|
1130 |
msgid "Save Tracking"
|
1131 |
msgstr "Tracking speichern"
|
1132 |
|
1133 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1134 |
msgid "Search by provider / country"
|
1135 |
msgstr ""
|
1136 |
"Suche nach Anbieter / Land\n"
|
1137 |
|
1138 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1139 |
msgid "Select an order to preview and design the tracking info display."
|
1140 |
msgstr ""
|
1141 |
"Wählen Sie eine Bestellung aus, um eine Vorschau anzuzeigen und die Anzeige "
|
1142 |
"der Tracking-Informationen zu gestalten.\n"
|
1143 |
|
1144 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1145 |
msgid "Select content border color for tracking page"
|
1146 |
msgstr "Wählen Sie die Farbe des Inhaltsrahmens für die Tracking-Seite aus"
|
1147 |
|
1148 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
|
|
1149 |
msgid "Select email type"
|
1150 |
msgstr ""
|
1151 |
|
@@ -1153,49 +1221,51 @@ msgstr ""
|
|
1153 |
msgid "Select Provider"
|
1154 |
msgstr "Wählen Sie Provider aus"
|
1155 |
|
1156 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1157 |
msgid "Select shipment status"
|
1158 |
msgstr ""
|
1159 |
|
1160 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1161 |
msgid "Select Template"
|
1162 |
msgstr ""
|
1163 |
"Vorlage auswählen\n"
|
1164 |
|
1165 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1166 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1167 |
#: includes/views/admin_tracking_page_settings.php:27
|
1168 |
msgid "Select Tracking Page"
|
1169 |
msgstr ""
|
1170 |
"Wählen Sie Tracking-Seite\n"
|
1171 |
|
1172 |
-
#: includes/
|
1173 |
-
|
1174 |
-
|
|
|
|
|
|
|
1175 |
msgid "Send Email"
|
1176 |
msgstr ""
|
1177 |
"E-Mail senden\n"
|
1178 |
|
1179 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1180 |
msgid ""
|
1181 |
"Set the \"mark as shipped\" option checked when adding tracking info to "
|
1182 |
"orders"
|
1183 |
msgstr ""
|
1184 |
|
1185 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1186 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1187 |
-
#: includes/views/admin_options_settings.php:15
|
1188 |
msgid "Settings"
|
1189 |
msgstr ""
|
1190 |
|
1191 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1192 |
msgid "Settings Saved."
|
1193 |
msgstr "Einstellungen gespeichert."
|
1194 |
|
1195 |
#: includes/class-wc-advanced-shipment-tracking-front.php:327
|
1196 |
#: includes/views/front/preview_tracking_page.php:25
|
1197 |
msgid "Shipment"
|
1198 |
-
msgstr ""
|
1199 |
|
1200 |
#: includes/class-wc-advanced-shipment-tracking-front.php:355
|
1201 |
#, php-format
|
@@ -1208,24 +1278,12 @@ msgstr ""
|
|
1208 |
msgid "Shipment : %s (out of %s)"
|
1209 |
msgstr ""
|
1210 |
|
1211 |
-
#: includes/
|
1212 |
-
msgid "Shipment is returned to sender."
|
1213 |
-
msgstr "Shipment is returned to sender."
|
1214 |
-
|
1215 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1483
|
1216 |
-
msgid "Shipment Providers"
|
1217 |
-
msgstr ""
|
1218 |
-
"Versandanbieter\n"
|
1219 |
-
|
1220 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1486
|
1221 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:184
|
1222 |
-
#: templates/emails/tracking-info.php:218
|
1223 |
-
#: templates/emails/tracking-info.php:248
|
1224 |
msgid "Shipment Status"
|
1225 |
msgstr ""
|
1226 |
"Versandstatus\n"
|
1227 |
|
1228 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1229 |
msgid "Shipment status"
|
1230 |
msgstr "Shipment status"
|
1231 |
|
@@ -1234,29 +1292,17 @@ msgstr "Shipment status"
|
|
1234 |
msgid "Shipment status changed to %s"
|
1235 |
msgstr "Der Sendungsstatus wurde in% s geändert"
|
1236 |
|
1237 |
-
#: includes/
|
1238 |
-
|
1239 |
-
msgstr ""
|
1240 |
-
|
1241 |
-
#: includes/views/admin_status_notifications.php:3
|
1242 |
-
msgid "Shipment Status Email Notifications"
|
1243 |
-
msgstr "Versandstatus E-Mail-Benachrichtigungen"
|
1244 |
-
|
1245 |
-
#: includes/customizer/class-wcast-customizer.php:52
|
1246 |
-
msgid "Shipment Status Emails"
|
1247 |
-
msgstr "Sendungsstatus-E-Mails"
|
1248 |
-
|
1249 |
#: includes/class-wc-advanced-shipment-tracking.php:141
|
1250 |
#: includes/class-wc-advanced-shipment-tracking.php:223
|
1251 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1252 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:249
|
1253 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:300
|
1254 |
msgid "Shipment Tracking"
|
1255 |
msgstr "Sendungsverfolgung"
|
1256 |
|
|
|
1257 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:327
|
1258 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:417
|
1259 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:870
|
1260 |
msgid "Shipped"
|
1261 |
msgstr "Versendet"
|
1262 |
|
@@ -1269,12 +1315,12 @@ msgstr[0] ""
|
|
1269 |
msgstr[1] ""
|
1270 |
"Versand <span class=\"count\">(%s)</span>\n"
|
1271 |
|
1272 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1273 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1274 |
msgid "Shipped Date"
|
1275 |
msgstr "Versanddatum"
|
1276 |
|
1277 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1278 |
#, fuzzy
|
1279 |
#| msgid "Ship date header text"
|
1280 |
msgid "Shipped date header text"
|
@@ -1287,27 +1333,30 @@ msgstr ""
|
|
1287 |
msgid "Shipped on %s"
|
1288 |
msgstr "Versand auf% s"
|
1289 |
|
1290 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1291 |
msgid "Shipped on {ship_date} via {shipping_provider} - {tracking_number_link}"
|
1292 |
msgstr ""
|
1293 |
"Versand am {Schiffsdatum} über {Versandanbieter} - {Tracking-Nummer_Link}"
|
1294 |
|
1295 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1296 |
msgid "Shipped Order"
|
1297 |
msgstr "Versandbestellung"
|
1298 |
|
1299 |
-
#: includes/views/
|
1300 |
-
|
|
|
|
|
|
|
|
|
1301 |
msgid "Shipping Country"
|
1302 |
msgstr ""
|
1303 |
"Lieferungsland\n"
|
1304 |
|
1305 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1306 |
-
#: includes/views/admin_options_shipping_provider.php:103
|
1307 |
msgid "Shipping Provider"
|
1308 |
msgstr "Versandanbieter"
|
1309 |
|
1310 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1311 |
msgid "Shipping provider header text"
|
1312 |
msgstr ""
|
1313 |
|
@@ -1317,67 +1366,26 @@ msgstr ""
|
|
1317 |
msgid "Shipping Provider:"
|
1318 |
msgstr "Versandanbieter:"
|
1319 |
|
1320 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1321 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1322 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1323 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:406
|
1324 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1725
|
1325 |
msgid "Shipping Providers"
|
1326 |
msgstr "Versandanbieter"
|
1327 |
|
1328 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1329 |
msgid "Shipping providers database reset successfully."
|
1330 |
msgstr "Datenbank der Versandanbieter erfolgreich zurückgesetzt."
|
1331 |
|
1332 |
-
#: includes/customizer/class-wc-
|
1333 |
-
|
1334 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:327
|
1335 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:381
|
1336 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:329
|
1337 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:326
|
1338 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:330
|
1339 |
-
msgid "Show billing address"
|
1340 |
msgstr ""
|
1341 |
-
"Rechnungsadresse anzeigen\n"
|
1342 |
|
1343 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1344 |
msgid "Show bottom border"
|
1345 |
msgstr ""
|
1346 |
"Zeige unteren Rand\n"
|
1347 |
|
1348 |
-
#: includes/customizer/class-wc-
|
1349 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:310
|
1350 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:309
|
1351 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:363
|
1352 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:311
|
1353 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:308
|
1354 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:312
|
1355 |
-
msgid "Show order details"
|
1356 |
-
msgstr ""
|
1357 |
-
"Bestelldetails anzeigen\n"
|
1358 |
-
|
1359 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:346
|
1360 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:347
|
1361 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:346
|
1362 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:400
|
1363 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:348
|
1364 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:345
|
1365 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:349
|
1366 |
-
msgid "Show shipping address"
|
1367 |
-
msgstr ""
|
1368 |
-
"Lieferadresse anzeigen\n"
|
1369 |
-
|
1370 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:291
|
1371 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:292
|
1372 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:291
|
1373 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:345
|
1374 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:293
|
1375 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:290
|
1376 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:294
|
1377 |
-
msgid "Show tracking details"
|
1378 |
-
msgstr "Tracking-Details anzeigen"
|
1379 |
-
|
1380 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:321
|
1381 |
msgid "Simple Layout Design"
|
1382 |
msgstr ""
|
1383 |
"Einfaches Layout Design\n"
|
@@ -1387,22 +1395,21 @@ msgid "Special character not allowd in tracking number"
|
|
1387 |
msgstr ""
|
1388 |
"Sonderzeichen in Tracking-Nummer nicht zulässig\n"
|
1389 |
|
1390 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1391 |
-
|
1392 |
-
|
1393 |
-
msgstr "Starten Sie Ihre kostenlose Testversion"
|
1394 |
|
1395 |
-
#: includes/views/
|
1396 |
-
msgid "Subscription
|
1397 |
-
msgstr "
|
1398 |
|
1399 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1400 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1401 |
msgid "Sync Shipping Providers"
|
1402 |
msgstr ""
|
1403 |
"Versandanbieter synchronisieren\n"
|
1404 |
|
1405 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1406 |
msgid ""
|
1407 |
"Syncing the shipping providers list add or updates the pre-set shipping "
|
1408 |
"providers and will not effect custom shipping providers."
|
@@ -1411,72 +1418,58 @@ msgstr ""
|
|
1411 |
"voreingestellten Versandanbieter hinzugefügt oder aktualisiert. "
|
1412 |
"Benutzerdefinierte Versandanbieter werden davon nicht betroffen.\n"
|
1413 |
|
1414 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1415 |
msgid "Table Content"
|
1416 |
msgstr ""
|
1417 |
"Tabelleninhalt\n"
|
1418 |
|
1419 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1420 |
msgid "Table Design Options"
|
1421 |
msgstr ""
|
1422 |
|
1423 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1424 |
#, fuzzy
|
1425 |
#| msgid "Table Headers"
|
1426 |
msgid "Table Header"
|
1427 |
msgstr ""
|
1428 |
"Tabellenüberschriften\n"
|
1429 |
|
1430 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1431 |
msgid "Table Layout"
|
1432 |
msgstr ""
|
1433 |
"Tabellenlayout\n"
|
1434 |
|
1435 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1436 |
msgid "Table Options"
|
1437 |
msgstr ""
|
1438 |
|
1439 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1440 |
msgid "Text align"
|
1441 |
msgstr ""
|
1442 |
|
1443 |
-
#: includes/
|
1444 |
#: includes/views/admin_options_shipping_provider.php:100
|
1445 |
msgid ""
|
1446 |
-
"The custom name will
|
1447 |
-
"order emails, my-account,
|
|
|
1448 |
msgstr ""
|
1449 |
-
"Der benutzerdefinierte Name wird im Abschnitt \"Tracking-Informationen\" in "
|
1450 |
-
"den E-Mails mit Kundenbestellungen, meinem Konto, der "
|
1451 |
-
"Sendungsverfolgungsseite und den Sendungsstatus-E-Mails angezeigt."
|
1452 |
|
1453 |
-
#: includes/
|
1454 |
-
msgid "The
|
1455 |
-
msgstr "
|
1456 |
-
|
1457 |
-
#: includes/views/admin_status_notifications.php:82
|
1458 |
-
msgid "The shipment is ready to by picked up."
|
1459 |
-
msgstr "Die Sendung ist abholbereit."
|
1460 |
-
|
1461 |
-
#: includes/views/admin_status_notifications.php:37
|
1462 |
-
msgid "The shipment was accepted by the shipping provider and its on the way."
|
1463 |
-
msgstr "Die Sendung wurde vom Versandanbieter angenommen und ist unterwegs."
|
1464 |
-
|
1465 |
-
#: includes/views/admin_status_notifications.php:112
|
1466 |
-
msgid "The shipment was delivered successfully."
|
1467 |
-
msgstr "Die Sendung wurde erfolgreich geliefert."
|
1468 |
|
1469 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
1470 |
msgid "There are some issue with sync, Please Retry."
|
1471 |
msgstr ""
|
1472 |
"Es gibt ein Problem mit der Synchronisierung. Bitte versuchen Sie es erneut."
|
1473 |
"\n"
|
1474 |
|
1475 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1476 |
msgid "This browser does not support HTML5."
|
1477 |
msgstr "Dieser Browser unterstützt HTML5 nicht."
|
1478 |
|
1479 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1480 |
msgid ""
|
1481 |
"This means that the 'mark as <span class='shipped_label'>completed</span>' "
|
1482 |
"will be selected by default when adding tracking info to orders."
|
@@ -1485,7 +1478,7 @@ msgstr ""
|
|
1485 |
"Bestellungen standardmäßig die Option 'Markieren als <span class =' "
|
1486 |
"shipped_label '> erledigt </ span>' ausgewählt wird."
|
1487 |
|
1488 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1489 |
msgid ""
|
1490 |
"This means that the 'mark as <span class='shipped_label'>shipped</span>' "
|
1491 |
"will be selected by default when adding tracking info to orders."
|
@@ -1503,18 +1496,18 @@ msgstr ""
|
|
1503 |
"Diese Bestellung wurde vor {Versandlänge} Tagen versandt, der Versandstatus "
|
1504 |
"ist {Versandstatus} und das voraussichtliche Lieferdatum ist {Versanddatum}."
|
1505 |
|
1506 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
1507 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
1508 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
1509 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1510 |
-
#: includes/customizer/class-wc-
|
1511 |
-
#: includes/customizer/class-wc-
|
1512 |
-
#: includes/customizer/class-wc-
|
1513 |
msgid "This will be appended to URL in the email content"
|
1514 |
msgstr ""
|
1515 |
"Dies wird an die URL im E-Mail-Inhalt angehängt\n"
|
1516 |
|
1517 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1518 |
msgid ""
|
1519 |
"This will be appended to URL in the email content – e.g. "
|
1520 |
"utm_source=ast&utm_medium=email&utm_campaign=delivered"
|
@@ -1522,14 +1515,6 @@ msgstr ""
|
|
1522 |
"Dies wird an die URL im E-Mail-Inhalt angehängt - z. utm_source = ast & "
|
1523 |
"utm_medium = email & utm_campaign = geliefert\n"
|
1524 |
|
1525 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:471
|
1526 |
-
msgid ""
|
1527 |
-
"To enable this option, the 'Delivered' order status should be enabled in the "
|
1528 |
-
"AST settings."
|
1529 |
-
msgstr ""
|
1530 |
-
"Um diese Option zu aktivieren, sollte der Auftragsstatus \"Geliefert\" in "
|
1531 |
-
"den AST-Einstellungen aktiviert sein."
|
1532 |
-
|
1533 |
#: templates/tracking/tracking-form.php:11
|
1534 |
msgid ""
|
1535 |
"To track your order please enter your Order ID in the box below and press "
|
@@ -1541,33 +1526,35 @@ msgstr ""
|
|
1541 |
"auf Ihrer Quittung und in der Bestätigungs-E-Mail, die Sie hätten erhalten "
|
1542 |
"sollen, mitgeteilt.\n"
|
1543 |
|
1544 |
-
#: includes/
|
1545 |
-
#: includes/views/
|
1546 |
-
#: includes/views/trackship_settings.php:15
|
1547 |
-
#: includes/views/trackship_settings.php:16
|
1548 |
msgid "Tools"
|
1549 |
msgstr "Werkzeuge"
|
1550 |
|
1551 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
#: includes/
|
1556 |
-
#:
|
|
|
|
|
|
|
|
|
1557 |
#: templates/myaccount/tracking-info.php:241
|
1558 |
#: templates/tracking/tracking-form.php:16
|
1559 |
msgid "Track"
|
1560 |
msgstr "Verfolgen"
|
1561 |
|
1562 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1563 |
msgid "Track Button"
|
1564 |
msgstr ""
|
1565 |
|
1566 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1567 |
msgid "Track Header"
|
1568 |
msgstr ""
|
1569 |
|
1570 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1571 |
msgid "Track header text"
|
1572 |
msgstr ""
|
1573 |
"Verfolgen Sie den Header-Text\n"
|
@@ -1578,8 +1565,10 @@ msgid "Track Shipment"
|
|
1578 |
msgstr ""
|
1579 |
"Sendung verfolgen\n"
|
1580 |
|
1581 |
-
#: includes/views/
|
1582 |
-
|
|
|
|
|
1583 |
msgstr "Tracker Balance"
|
1584 |
|
1585 |
#: includes/views/front/layout1_tracking_details.php:4
|
@@ -1594,39 +1583,37 @@ msgstr ""
|
|
1594 |
msgid "Tracking details not found in TrackShip"
|
1595 |
msgstr "Tracking-Details wurden in TrackShip nicht gefunden"
|
1596 |
|
1597 |
-
#: includes/
|
1598 |
-
|
1599 |
-
msgstr ""
|
1600 |
-
|
1601 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:296
|
1602 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:299
|
1603 |
msgid "Tracking display layout"
|
1604 |
msgstr "Tracking-Display-Layout"
|
1605 |
|
1606 |
-
#: includes/class-wc-
|
1607 |
-
msgid "Tracking Display My Account"
|
1608 |
-
msgstr ""
|
1609 |
-
|
1610 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:212
|
1611 |
msgid "Tracking Display Position"
|
1612 |
msgstr "Verfolgung der Anzeigeposition"
|
1613 |
|
1614 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1615 |
msgid "Tracking Header text"
|
1616 |
msgstr ""
|
1617 |
"Tracking-Header-Text\n"
|
1618 |
|
1619 |
-
#: includes/customizer/class-
|
1620 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1621 |
msgid "Tracking info display"
|
1622 |
msgstr ""
|
1623 |
"Tracking-Info-Anzeige\n"
|
1624 |
|
1625 |
-
#: includes/views/admin_options_tools.php:
|
1626 |
msgid "Tracking info sent to Trackship for all Orders."
|
1627 |
msgstr "Tracking-Informationen für alle Bestellungen an Trackhip gesendet."
|
1628 |
|
1629 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
1630 |
#, php-format
|
1631 |
msgid ""
|
1632 |
"Tracking info was deleted for tracking provider %s with tracking number %s"
|
@@ -1634,10 +1621,14 @@ msgstr ""
|
|
1634 |
"Die Tracking-Informationen wurden für den Tracking-Anbieter% s mit der "
|
1635 |
"Tracking-Nummer% s gelöscht"
|
1636 |
|
1637 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1638 |
msgid "Tracking Information"
|
1639 |
msgstr "Tracking-Informationen"
|
1640 |
|
|
|
|
|
|
|
|
|
1641 |
#: includes/views/front/tracking_page_header.php:33
|
1642 |
msgid "Tracking information is not available, please try again in a few hour."
|
1643 |
msgstr ""
|
@@ -1647,19 +1638,14 @@ msgid ""
|
|
1647 |
"Tracking information is not available, please try again in a few minutes."
|
1648 |
msgstr ""
|
1649 |
|
1650 |
-
#: includes/class-wc-
|
1651 |
-
|
1652 |
-
|
1653 |
-
"Verfolgung von Problemen\n"
|
1654 |
-
|
1655 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:151
|
1656 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:679
|
1657 |
-
#: templates/emails/tracking-info.php:285
|
1658 |
#: templates/myaccount/tracking-info.php:221
|
1659 |
msgid "Tracking Number"
|
1660 |
msgstr "Auftragsnummer, Frachtnummer, Sendungscode"
|
1661 |
|
1662 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1663 |
#, fuzzy
|
1664 |
#| msgid "Tracking Number header text"
|
1665 |
msgid "Tracking number header text"
|
@@ -1671,18 +1657,19 @@ msgstr ""
|
|
1671 |
msgid "Tracking number:"
|
1672 |
msgstr "Auftragsnummer, Frachtnummer, Sendungscode:"
|
1673 |
|
1674 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:217
|
1675 |
#: includes/views/admin_tracking_page_settings.php:9
|
1676 |
-
#: includes/views/trackship_settings.php:9
|
1677 |
-
#: includes/views/trackship_settings.php:10
|
1678 |
msgid "Tracking Page"
|
1679 |
msgstr "Tracking-Seite"
|
1680 |
|
1681 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1682 |
msgid "Tracking Page Layout"
|
1683 |
msgstr ""
|
1684 |
"Seitenlayout verfolgen\n"
|
1685 |
|
|
|
|
|
|
|
|
|
1686 |
#: includes/views/admin_tracking_page_settings.php:92
|
1687 |
msgid "Tracking Widget Border Color"
|
1688 |
msgstr ""
|
@@ -1699,39 +1686,44 @@ msgstr ""
|
|
1699 |
msgid "Tracking Widget Preview"
|
1700 |
msgstr "Vorschau des Tracking-Widgets"
|
1701 |
|
1702 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1703 |
msgid "TrackShip"
|
1704 |
msgstr "TrackShip"
|
1705 |
|
1706 |
-
#: includes/views/
|
|
|
|
|
|
|
|
|
1707 |
msgid "TrackShip Connection Status"
|
1708 |
msgstr "TrackShip-Verbindungsstatus"
|
1709 |
|
1710 |
-
#: includes/
|
1711 |
-
msgid "TrackShip
|
1712 |
-
msgstr "
|
1713 |
|
1714 |
-
#: includes/class-
|
1715 |
-
msgid "TrackShip
|
1716 |
-
msgstr "
|
1717 |
|
1718 |
#: includes/views/admin_status_notifications.php:225
|
1719 |
msgid "Trigger Alert"
|
1720 |
msgstr "Alarm auslösen"
|
1721 |
|
1722 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1723 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1724 |
msgid "Unknown"
|
1725 |
msgstr "Unknown"
|
1726 |
|
1727 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1728 |
msgid "Update"
|
1729 |
msgstr "Aktualisieren"
|
1730 |
|
1731 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:148
|
1732 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:194
|
1733 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1734 |
-
#: includes/
|
|
|
1735 |
msgid "Updated Tracking"
|
1736 |
msgstr ""
|
1737 |
"Aktualisiertes Tracking\n"
|
@@ -1745,33 +1737,20 @@ msgstr[0] ""
|
|
1745 |
msgstr[1] ""
|
1746 |
"Aktualisiertes Tracking <span class=\"count\">(%s)</span>\n"
|
1747 |
|
1748 |
-
#: includes/views/
|
1749 |
-
|
1750 |
-
msgstr "Jetzt upgraden"
|
1751 |
-
|
1752 |
-
#: includes/views/admin_options_shipping_provider.php:76
|
1753 |
-
#: includes/views/admin_options_shipping_provider.php:126
|
1754 |
msgid "Upload"
|
1755 |
msgstr "Hochladen"
|
1756 |
|
1757 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1758 |
msgid "Upload a CSV file from your computer:"
|
1759 |
msgstr "Laden Sie eine CSV-Datei von Ihrem Computer hoch:"
|
1760 |
|
1761 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1762 |
msgid "Upload again"
|
1763 |
msgstr "Erneut hochladen"
|
1764 |
|
1765 |
-
#: includes/views/
|
1766 |
-
msgid ""
|
1767 |
-
"Use a customizer with a preview to customize the tracking info display on "
|
1768 |
-
"customer order emails and my-account."
|
1769 |
-
msgstr ""
|
1770 |
-
"Verwenden Sie einen Customizer mit einer Vorschau, um die Anzeige der "
|
1771 |
-
"Tracking-Informationen in Kundenbestellungs-E-Mails und in meinem Konto "
|
1772 |
-
"anzupassen."
|
1773 |
-
|
1774 |
-
#: includes/views/admin_options_bulk_upload.php:12
|
1775 |
msgid ""
|
1776 |
"Use our CSV Import Tool to bulk Import tracking info to orders from a CSV "
|
1777 |
"file"
|
@@ -1779,40 +1758,34 @@ msgstr ""
|
|
1779 |
"Verwenden Sie unser CSV-Import-Tool, um Tracking-Informationen in "
|
1780 |
"Bestellungen aus einer CSV-Datei zu importieren"
|
1781 |
|
1782 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1783 |
msgid "Use the tracking page in the customer email/my account tracking link"
|
1784 |
msgstr ""
|
1785 |
"Verwenden Sie die Tracking-Seite im Kunden-E-Mail- / Mein Account-Tracking-"
|
1786 |
"Link"
|
1787 |
|
1788 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1789 |
msgid "Use tracking number as a link"
|
1790 |
msgstr ""
|
1791 |
"Verwenden Sie die Tracking-Nummer als Link\n"
|
1792 |
|
1793 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
1794 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
1795 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
1796 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1797 |
msgid "view details"
|
1798 |
msgstr ""
|
1799 |
"Details anzeigen\n"
|
1800 |
|
1801 |
-
#: includes/
|
1802 |
-
msgid "View more on TrackShip"
|
1803 |
-
msgstr ""
|
1804 |
-
"Erfahren Sie mehr über TrackShip\n"
|
1805 |
-
|
1806 |
-
#: includes/views/admin_options_bulk_upload.php:108
|
1807 |
msgid "View Orders"
|
1808 |
msgstr "Bestellungen anzeigen"
|
1809 |
|
1810 |
-
#: includes/
|
1811 |
-
|
1812 |
-
|
1813 |
-
msgstr "Schau Video"
|
1814 |
|
1815 |
-
#: woocommerce-advanced-shipment-tracking.php:
|
1816 |
#, php-format
|
1817 |
msgid ""
|
1818 |
"We detected %s orders that use the Delivered order status, You can reassign "
|
@@ -1821,7 +1794,7 @@ msgstr ""
|
|
1821 |
"Wir haben% s Bestellungen erkannt, die den Status \"Gelieferte Bestellung\" "
|
1822 |
"verwenden. Sie können diese Bestellungen einem anderen Status zuweisen"
|
1823 |
|
1824 |
-
#: woocommerce-advanced-shipment-tracking.php:
|
1825 |
#, php-format
|
1826 |
msgid ""
|
1827 |
"We detected %s orders that use the Partially Shipped order status, You can "
|
@@ -1830,7 +1803,7 @@ msgstr ""
|
|
1830 |
"Wir haben% s Bestellungen festgestellt, die den Status \"Teilversand\" "
|
1831 |
"verwenden. Sie können diese Bestellungen einem anderen Status zuweisen"
|
1832 |
|
1833 |
-
#: woocommerce-advanced-shipment-tracking.php:
|
1834 |
#, php-format
|
1835 |
msgid ""
|
1836 |
"We detected %s orders that use the Updated Tracking order status, You can "
|
@@ -1840,17 +1813,42 @@ msgstr ""
|
|
1840 |
"Nachverfolgungsbestellung\" verwenden. Sie können diese Bestellungen einem "
|
1841 |
"anderen Status zuweisen"
|
1842 |
|
1843 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1844 |
msgid "Wrong Shipping Provider"
|
1845 |
msgstr "Falscher Versandanbieter"
|
1846 |
|
1847 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1848 |
msgid ""
|
1849 |
"You already have delivered order status email enabled, to enable this email "
|
1850 |
"you'll need to disable the delivered order status email in settings."
|
1851 |
msgstr ""
|
1852 |
|
1853 |
-
#: includes/views/admin_options_tools.php:
|
1854 |
msgid ""
|
1855 |
"You can send all your orders from the last 30 days to get shipment status "
|
1856 |
"from TrackShip:"
|
@@ -1858,12 +1856,12 @@ msgstr ""
|
|
1858 |
"Sie können alle Ihre Bestellungen der letzten 30 Tage senden, um den "
|
1859 |
"Sendungsstatus von TrackShip zu erhalten:\n"
|
1860 |
|
1861 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1862 |
msgid "You can upload only csv file."
|
1863 |
msgstr "Sie können nur CSV-Dateien hochladen."
|
1864 |
|
1865 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1866 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1867 |
msgid ""
|
1868 |
"You can use the variables %number%, %postal_code% and %country_code% in the "
|
1869 |
"URL, for more info, check our "
|
@@ -1871,32 +1869,31 @@ msgstr ""
|
|
1871 |
"You can use the variables %number%, %postal_code% and %country_code% in the "
|
1872 |
"URL, for more info, check our "
|
1873 |
|
1874 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1875 |
#, php-format
|
1876 |
msgid "You did not create any %s shipping providers yet."
|
1877 |
msgstr "Sie haben noch keine% s Versandanbieter erstellt."
|
1878 |
|
1879 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1880 |
-
#: includes/views/admin_options_shipping_provider.php:45
|
1881 |
#, php-format
|
1882 |
msgid "You don't have any %s shipping providers."
|
1883 |
msgstr "Sie haben keine% s Versandanbieter."
|
1884 |
|
1885 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1886 |
#, php-format
|
1887 |
msgid "You got %s %s orders with shipment status “TrackShip connection issue”"
|
1888 |
msgstr ""
|
1889 |
"Sie haben% s% s Bestellungen mit dem Sendungsstatus \"TrackShip-"
|
1890 |
"Verbindungsproblem\" erhalten."
|
1891 |
|
1892 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1893 |
#, php-format
|
1894 |
msgid "You got %s %s orders with shipment status “TrackShip balance is 0”"
|
1895 |
msgstr ""
|
1896 |
"Sie haben% s% s Bestellungen mit dem Sendungsstatus \"TrackShip-Guthaben ist "
|
1897 |
"0\" erhalten."
|
1898 |
|
1899 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1900 |
#, php-format
|
1901 |
msgid ""
|
1902 |
"You got %s %s orders with tracking info that were not sent to track on "
|
@@ -1905,7 +1902,7 @@ msgstr ""
|
|
1905 |
"Sie haben% s% s Bestellungen mit Tracking-Informationen erhalten, die nicht "
|
1906 |
"an TrackShip gesendet wurden"
|
1907 |
|
1908 |
-
#: includes/views/admin_trackship_dashboard.php:
|
1909 |
#, php-format
|
1910 |
msgid ""
|
1911 |
"You have %s Shipped Orders from the last 30 days that you can bulk send to "
|
@@ -1915,7 +1912,8 @@ msgstr ""
|
|
1915 |
"Massenversand an <a href = \"javascript: void (0);\" senden können. class = "
|
1916 |
"\"tool_link\"> Sendungsstatus abrufen </a>"
|
1917 |
|
1918 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
|
|
1919 |
msgid ""
|
1920 |
"You must add the shortcode [wcast-track-order] to the selected page in order "
|
1921 |
"for the tracking page to work."
|
@@ -1923,12 +1921,12 @@ msgstr ""
|
|
1923 |
"Sie müssen der ausgewählten Seite den Shortcode [wcast-track-order] "
|
1924 |
"hinzufügen, damit die Tracking-Seite funktioniert."
|
1925 |
|
1926 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
1927 |
msgid "Your order #{order_number} has been delivered"
|
1928 |
msgstr ""
|
1929 |
"Ihre Bestellung Nr. {Order_number} wurde geliefert\n"
|
1930 |
|
1931 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
1932 |
msgid "Your order #{order_number} has returned to sender"
|
1933 |
msgstr ""
|
1934 |
"Ihre Bestellung Nr. {Order_number} wurde an den Absender zurückgeschickt\n"
|
@@ -1946,17 +1944,16 @@ msgid "Your order #{order_number} is in transit"
|
|
1946 |
msgstr ""
|
1947 |
"Ihre Bestellung Nr. {Order_number} ist in Bearbeitung\n"
|
1948 |
|
1949 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:
|
1950 |
msgid "Your order #{order_number} is on hold"
|
1951 |
msgstr "Ihre Bestellnummer {Bestellnummer} wird gehalten"
|
1952 |
|
1953 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
1954 |
msgid "Your order #{order_number} is out for delivery"
|
1955 |
msgstr ""
|
1956 |
"Ihre Bestellung Nr. {Order_number} ist nicht lieferbar\n"
|
1957 |
|
1958 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1959 |
-
#: includes/emails/class-shipment-delivered-email.php:94
|
1960 |
msgid "Your {site_title} order is now delivered"
|
1961 |
msgstr ""
|
1962 |
"Ihre {site_title} Bestellung wird jetzt geliefert\n"
|
@@ -1966,7 +1963,11 @@ msgid "Your {site_title} order is now partially shipped"
|
|
1966 |
msgstr ""
|
1967 |
"Ihre {site_title} Bestellung wird jetzt teilweise versendet\n"
|
1968 |
|
1969 |
-
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:
|
1970 |
msgid "Your {site_title} order is now updated tracking"
|
1971 |
msgstr ""
|
1972 |
"Ihre {site_title} Bestellung wird jetzt nachverfolgt\n"
|
|
|
|
|
|
|
|
3 |
"Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
"POT-Creation-Date: 2020-11-11 09:34+0000\n"
|
6 |
+
"PO-Revision-Date: 2021-01-25 09:01+0000\n"
|
7 |
"Last-Translator: John\n"
|
8 |
"Language-Team: German\n"
|
9 |
"Language: de_DE\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
14 |
"X-Generator: Loco https://localise.biz/\n"
|
15 |
+
"X-Loco-Version: 2.5.0; wp-5.6"
|
16 |
|
17 |
+
#: includes/views/admin_options_shipping_provider.php:77
|
18 |
+
#: includes/views/admin_options_shipping_provider.php:131
|
19 |
#, php-format
|
20 |
msgid "<a href=\"%s\" target=\"blank\">documentation</a>"
|
21 |
msgstr "Dokumentation"
|
22 |
|
23 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1531
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
msgid "Actions"
|
25 |
msgstr "Aktionen"
|
26 |
|
27 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1310
|
28 |
+
msgid "Active Shipments"
|
|
|
|
|
|
|
|
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:368
|
32 |
#: includes/views/admin_tracking_page_settings.php:71
|
33 |
msgid "Add a link to the Shipping provider page"
|
34 |
msgstr "Fügen Sie einen Link zur Seite Versandanbieter hinzu"
|
35 |
|
36 |
+
#: includes/views/admin_options_shipping_provider.php:107
|
37 |
+
msgid "Add API Name alias"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: includes/views/admin_options_shipping_provider.php:104
|
41 |
+
msgid ""
|
42 |
+
"Add API name aliases to map Shipping providers names with the provider names "
|
43 |
+
"that are updated in the shipment tracking API by external shipping services"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1519
|
47 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1618
|
48 |
+
#: includes/views/admin_options_shipping_provider.php:80
|
49 |
msgid "Add Custom Provider"
|
50 |
msgstr "Benutzerdefinierten Anbieter hinzufügen"
|
51 |
|
52 |
+
#: includes/views/admin_options_shipping_provider.php:42
|
53 |
msgid "Add Custom Shipping Provider"
|
54 |
msgstr "Fügen Sie einen benutzerdefinierten Versandanbieter hinzu"
|
55 |
|
56 |
+
#. Description of the plugin
|
57 |
+
msgid ""
|
58 |
+
"Add shipment tracking information to your WooCommerce orders and provide "
|
59 |
+
"customers with an easy way to track their orders. Shipment tracking Info "
|
60 |
+
"will appear in customers accounts (in the order panel) and in WooCommerce "
|
61 |
+
"order complete email."
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:698
|
65 |
+
msgid "add the [wcast-track-order] shortcode in the selected page."
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1438
|
69 |
msgid "Add Tracking"
|
70 |
msgstr "Add Tracking"
|
71 |
|
73 |
msgid "Add Tracking - order\t"
|
74 |
msgstr "Tracking hinzufügen - Bestellung"
|
75 |
|
76 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:884
|
77 |
msgid "Add Tracking action "
|
78 |
msgstr ""
|
79 |
|
81 |
msgid "Add Tracking Info"
|
82 |
msgstr "Tracking-Info hinzufügen"
|
83 |
|
84 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:383
|
85 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:387
|
86 |
+
#: includes/views/admin_options_addons.php:124
|
|
|
|
|
|
|
87 |
msgid "Add-ons"
|
88 |
msgstr "Add-ons"
|
89 |
|
90 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:272
|
91 |
msgid "Additional text after header"
|
92 |
msgstr "Zusätzlicher Text nach Kopfzeile"
|
93 |
|
95 |
msgid "Admin Notifications"
|
96 |
msgstr "Admin-Benachrichtigungen"
|
97 |
|
98 |
+
#. Name of the plugin
|
99 |
+
msgid "Advanced Shipment Tracking for WooCommerce"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:214
|
103 |
msgid "After Order Details"
|
104 |
msgstr "Nach Auftragsdetails"
|
105 |
|
106 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1571
|
107 |
+
msgid "API aliases"
|
108 |
+
msgstr ""
|
109 |
+
|
110 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:904
|
111 |
msgid "API Date Format"
|
112 |
msgstr "API-Datumsformat"
|
113 |
|
114 |
+
#: includes/views/admin_options_shipping_provider.php:106
|
|
|
115 |
msgid "API Name"
|
116 |
msgstr "API-Name"
|
117 |
|
119 |
msgid "As it Happens"
|
120 |
msgstr "Wie es passiert"
|
121 |
|
122 |
+
#: includes/views/trackship_settings.php:118
|
123 |
+
#, fuzzy
|
124 |
+
#| msgid ""
|
125 |
+
#| "Automatically set the Order Status to Delivered when the shipment is "
|
126 |
+
#| "delivered "
|
127 |
msgid ""
|
128 |
+
"Automatically update the order status to Delivered when all shipments are "
|
129 |
+
"Delivered"
|
130 |
msgstr ""
|
131 |
"Setzen Sie den Bestellstatus automatisch auf \"Geliefert\", wenn die Sendung "
|
132 |
"geliefert wird"
|
133 |
|
134 |
+
#: includes/views/trackship_settings.php:76
|
135 |
msgid "Automation"
|
136 |
msgstr "Automatisierung"
|
137 |
|
138 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:779
|
139 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:858
|
|
|
140 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:126
|
141 |
+
#: includes/customizer/class-wc-email-customizer.php:187
|
142 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:193
|
143 |
#: includes/views/admin_status_notifications.php:82
|
144 |
msgid "Available For Pickup"
|
145 |
msgstr ""
|
146 |
"Zur Abholung bereit\n"
|
147 |
|
|
|
148 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:205
|
149 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:229
|
150 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
|
151 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:203
|
152 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:227
|
153 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:272
|
154 |
+
#: includes/customizer/class-wc-email-customizer.php:250
|
155 |
+
#: includes/customizer/class-wc-email-customizer.php:274
|
156 |
+
#: includes/customizer/class-wc-email-customizer.php:319
|
157 |
#: includes/customizer/class-wc-failure-email-customizer.php:204
|
158 |
#: includes/customizer/class-wc-failure-email-customizer.php:228
|
159 |
#: includes/customizer/class-wc-failure-email-customizer.php:273
|
160 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:256
|
161 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:280
|
162 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:325
|
163 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:206
|
164 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:230
|
165 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:275
|
166 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:205
|
167 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:229
|
168 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:274
|
169 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:249
|
170 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:273
|
171 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:298
|
172 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:318
|
173 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:203
|
174 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:227
|
175 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:271
|
176 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:360
|
177 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:203
|
178 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:227
|
179 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:252
|
180 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:272
|
|
|
|
|
181 |
#: includes/views/admin_status_notifications.php:212
|
182 |
msgid "Available variables:"
|
183 |
msgstr "Verfügbare Variablen:"
|
184 |
|
185 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1303
|
186 |
+
msgid "Avg Shipment Length"
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:213
|
190 |
msgid "Before Order Details"
|
191 |
msgstr "Vor der Bestellung Details"
|
192 |
|
193 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:564
|
194 |
msgid "Border color"
|
195 |
msgstr "Randfarbe"
|
196 |
|
197 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:582
|
198 |
msgid "Border size"
|
199 |
msgstr ""
|
200 |
"Rahmengrösse\n"
|
201 |
|
202 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:434
|
203 |
msgid "Bottom border color"
|
204 |
msgstr ""
|
205 |
"Farbe des unteren Randes\n"
|
206 |
|
207 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:995
|
|
|
|
|
|
|
|
|
208 |
msgid "Button color"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:1013
|
212 |
msgid "Button font color"
|
213 |
msgstr ""
|
214 |
|
217 |
msgstr ""
|
218 |
"Bestehende Sendungsverfolgung für Bestellungen kann nicht erstellt werden.\n"
|
219 |
|
220 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:784
|
221 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:879
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
msgid "Carrier Unsupported"
|
223 |
msgstr "Träger nicht unterstützt"
|
224 |
|
225 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1474
|
226 |
msgid "Change order status to"
|
227 |
msgstr "Ändern Sie den Auftragsstatus in"
|
228 |
|
231 |
msgstr ""
|
232 |
"Ändern Sie den Status in \"Versand\"\n"
|
233 |
|
234 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:905
|
235 |
msgid "Choose for which Order status to display"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:885
|
239 |
msgid "Choose for which Order status to display Add Tracking action button"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:877
|
243 |
msgid "Choose on which order emails to include the shipment tracking info"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: includes/views/admin_options_bulk_upload.php:33
|
247 |
msgid "Choose the Shipped Date format"
|
248 |
msgstr "Wählen Sie das Versanddatum-Format"
|
249 |
|
|
|
|
|
|
|
|
|
|
|
250 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:420
|
251 |
msgid "Completed"
|
252 |
msgstr "vollendet, fertiggestellt"
|
253 |
|
254 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:553
|
255 |
+
#: includes/views/trackship_settings.php:18
|
256 |
msgid "Connected"
|
257 |
msgstr ""
|
258 |
"In Verbindung gebracht\n"
|
259 |
|
260 |
+
#: includes/views/trackship_settings.php:16
|
261 |
+
msgid "Connection Status"
|
262 |
+
msgstr ""
|
263 |
+
|
264 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:339
|
265 |
msgid "Content"
|
266 |
msgstr "Inhalt"
|
267 |
|
268 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:834
|
269 |
msgid "Content Background color"
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:397
|
273 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:852
|
274 |
msgid "Content font color"
|
275 |
msgstr ""
|
276 |
"Schriftfarbe des Inhalts\n"
|
277 |
|
278 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:378
|
279 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:870
|
280 |
msgid "Content font size"
|
281 |
msgstr ""
|
282 |
"Schriftgröße des Inhalts\n"
|
283 |
|
284 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:912
|
285 |
msgid "Content font weight"
|
286 |
msgstr ""
|
287 |
"Schriftgröße des Inhalts\n"
|
288 |
|
289 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:889
|
290 |
msgid "Content line height"
|
291 |
msgstr "Höhe der Inhaltszeile"
|
292 |
|
293 |
+
#: includes/views/admin_options_bulk_upload.php:56
|
294 |
msgid "Continue"
|
295 |
msgstr "Fortsetzen"
|
296 |
|
297 |
+
#: includes/views/admin_options_shipping_provider.php:56
|
298 |
+
#: includes/views/admin_options_shipping_provider.php:111
|
299 |
msgid "Country"
|
300 |
msgstr "Land"
|
301 |
|
302 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:365
|
303 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:369
|
|
|
|
|
|
|
|
|
304 |
msgid "CSV Import"
|
305 |
msgstr "CSV-Import"
|
306 |
|
307 |
+
#: includes/views/admin_options_shipping_provider.php:104
|
308 |
+
msgid "Custom API name"
|
309 |
+
msgstr ""
|
310 |
+
|
311 |
+
#: includes/views/admin_options_shipping_provider.php:52
|
312 |
+
msgid "Custom Display Name"
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#: includes/views/admin_options_shipping_provider.php:100
|
316 |
msgid "Custom display name"
|
317 |
msgstr "Benutzerdefinierter Anzeigename"
|
318 |
|
319 |
+
#: includes/customizer/class-wcast-customizer.php:46
|
320 |
msgid "Custom order status email"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: includes/views/admin_options_shipping_provider.php:49
|
324 |
+
msgid "Custom Provider"
|
325 |
+
msgstr ""
|
|
|
326 |
|
327 |
+
#: includes/views/admin_options_shipping_provider.php:73
|
328 |
+
#: includes/views/admin_options_shipping_provider.php:127
|
329 |
+
msgid "Custom URL"
|
330 |
+
msgstr ""
|
331 |
+
|
332 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:632
|
333 |
+
msgid "Customize"
|
334 |
+
msgstr ""
|
335 |
+
|
336 |
+
#: includes/views/admin_options_settings.php:46
|
337 |
+
msgid ""
|
338 |
+
"Customize how the Tracking information display on the order emails and my-"
|
339 |
+
"account"
|
340 |
msgstr ""
|
341 |
|
342 |
#: includes/views/admin_status_notifications.php:234
|
343 |
msgid "Daily Digest on"
|
344 |
msgstr "Daily Digest on"
|
345 |
|
346 |
+
#: includes/views/admin_options_osm.php:48
|
347 |
+
#: includes/views/admin_options_osm.php:88
|
348 |
+
#: includes/views/trackship_settings.php:106
|
349 |
msgid "Dark Font"
|
350 |
msgstr ""
|
351 |
"Dunkle Schrift\n"
|
352 |
|
353 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:229
|
354 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:316
|
355 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:153
|
356 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:215
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
msgid "Data saved successfully."
|
358 |
msgstr "Daten erfolgreich gespeichert."
|
359 |
|
362 |
msgid "Date shipped:"
|
363 |
msgstr "Lieferdatum:"
|
364 |
|
365 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1305
|
366 |
+
msgid "days"
|
367 |
+
msgstr ""
|
368 |
+
|
369 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1596
|
370 |
+
#, fuzzy
|
371 |
+
#| msgid "Default"
|
372 |
+
msgid "default"
|
373 |
msgstr "Standard"
|
374 |
|
375 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:738
|
376 |
msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
|
377 |
msgstr ""
|
378 |
"Standard \"als <span class =\" shipped_label \"> abgeschlossen </ span> "
|
379 |
"markieren\""
|
380 |
|
381 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:734
|
382 |
msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
|
383 |
msgstr "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
|
384 |
|
385 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1462
|
386 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:134
|
387 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:179
|
388 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:781
|
389 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:852
|
390 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1314
|
391 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:126
|
392 |
+
#: includes/customizer/class-wc-email-customizer.php:189
|
393 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:195
|
394 |
+
#: includes/views/admin_status_notifications.php:108
|
395 |
+
#: includes/views/trackship_settings.php:97
|
|
|
396 |
msgid "Delivered"
|
397 |
msgstr "Geliefert"
|
398 |
|
405 |
msgstr[1] ""
|
406 |
"Geliefert <span class=\"count\">(%s)</span>\n"
|
407 |
|
|
|
|
|
|
|
|
|
|
|
408 |
#: includes/views/front/layout1_tracking_details.php:8
|
409 |
msgid "Destination Details"
|
410 |
msgstr "Zieldetails"
|
411 |
|
412 |
+
#: includes/customizer/class-wc-email-customizer.php:393
|
413 |
msgid "Display Billing Address"
|
414 |
msgstr ""
|
415 |
"Rechnungsadresse anzeigen\n"
|
416 |
|
417 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1528
|
418 |
msgid "Display Name"
|
419 |
msgstr "Anzeigename"
|
420 |
|
421 |
+
#: includes/customizer/class-wc-email-customizer.php:355
|
422 |
msgid "Display order details"
|
423 |
msgstr ""
|
424 |
"Bestelldetails anzeigen\n"
|
425 |
|
426 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:423
|
427 |
+
#, fuzzy
|
428 |
+
#| msgid "Display Shipment Status Filter on Orders admin"
|
429 |
+
msgid "Display shipment status filter on orders admin"
|
430 |
msgstr "Sendungsstatusfilter im Auftragsadministrator anzeigen"
|
431 |
|
432 |
+
#: includes/customizer/class-wc-email-customizer.php:374
|
433 |
msgid "Display Shipping Address"
|
434 |
msgstr ""
|
435 |
"Lieferadresse anzeigen\n"
|
436 |
|
437 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:490
|
438 |
msgid "Display shipping provider image"
|
439 |
msgstr ""
|
440 |
"Bild des Versandanbieters anzeigen\n"
|
441 |
|
442 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:471
|
443 |
msgid "Display shipping provider name"
|
444 |
msgstr ""
|
445 |
"Name des Versandanbieters anzeigen\n"
|
446 |
|
447 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:311
|
448 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:309
|
449 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:310
|
450 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:362
|
451 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:312
|
452 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:311
|
453 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:308
|
454 |
+
msgid "Display the shipping address"
|
455 |
+
msgstr ""
|
456 |
+
|
457 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:292
|
458 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:290
|
459 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:291
|
460 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:343
|
461 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:293
|
462 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:292
|
463 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:289
|
464 |
+
msgid "Display the Shipping items"
|
465 |
+
msgstr ""
|
466 |
+
|
467 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:892
|
468 |
+
msgid "Display Track button on the Orders history list in customer accounts"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: includes/customizer/class-wc-email-customizer.php:337
|
472 |
msgid "Display tracking details"
|
473 |
msgstr ""
|
474 |
"Tracking-Details anzeigen\n"
|
475 |
|
476 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:297
|
477 |
+
msgid "Docs"
|
478 |
+
msgstr ""
|
|
|
|
|
479 |
|
480 |
+
#: includes/views/admin_options_bulk_upload.php:118
|
481 |
msgid "Download sample csv"
|
482 |
msgstr "Beispiel-CSV herunterladen"
|
483 |
|
486 |
msgstr "Z.B. {admin_email}, admin@example.org"
|
487 |
|
488 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:187
|
489 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:185
|
490 |
+
#: includes/customizer/class-wc-email-customizer.php:232
|
491 |
#: includes/customizer/class-wc-failure-email-customizer.php:186
|
492 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:238
|
493 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:188
|
494 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:187
|
495 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:185
|
496 |
msgid "E.g. {customer.email}, admin@example.org"
|
497 |
msgstr "Z.B. {customer.email}, admin@example.org"
|
498 |
|
499 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1590
|
500 |
+
msgid "edit"
|
501 |
msgstr ""
|
|
|
502 |
|
503 |
+
#: includes/views/admin_options_shipping_provider.php:90
|
504 |
msgid "Edit Shipping Provider"
|
505 |
msgstr "Versandanbieter bearbeiten"
|
506 |
|
507 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:252
|
508 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:250
|
509 |
+
#: includes/customizer/class-wc-email-customizer.php:298
|
510 |
#: includes/customizer/class-wc-failure-email-customizer.php:251
|
511 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:303
|
512 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:253
|
513 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:252
|
514 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:297
|
515 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:250
|
516 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:251
|
517 |
#: includes/views/admin_status_notifications.php:206
|
518 |
msgid "Email content"
|
519 |
msgstr "E-Mail-Inhalt"
|
520 |
|
521 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:204
|
522 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:202
|
523 |
#: includes/customizer/class-wc-failure-email-customizer.php:203
|
524 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:255
|
525 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:205
|
526 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:204
|
527 |
msgid "Email Subject"
|
528 |
msgstr "E-Mail Betreff"
|
529 |
|
530 |
+
#: includes/customizer/class-wc-email-customizer.php:174
|
531 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:183
|
532 |
msgid "Email Type"
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:430
|
536 |
+
msgid "Enable a tracking page"
|
537 |
+
msgstr ""
|
538 |
+
|
539 |
#: includes/views/admin_tracking_page_settings.php:10
|
540 |
msgid "Enable a tracking page on your store"
|
541 |
msgstr "Aktivieren Sie eine Tracking-Seite in Ihrem Shop"
|
544 |
msgid "Enable Available For Pickup email"
|
545 |
msgstr "Aktivieren Sie Verfügbar für Abhol-E-Mail"
|
546 |
|
547 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:159
|
|
|
|
|
|
|
|
|
548 |
msgid "Enable Delivered email"
|
549 |
msgstr "Aktivieren Sie die zugestellte E-Mail"
|
550 |
|
551 |
+
#: includes/customizer/class-wc-email-customizer.php:206
|
552 |
msgid "Enable Delivered order status email"
|
553 |
msgstr ""
|
554 |
"Aktivieren Sie die Status-E-Mail für die gelieferte Bestellung\n"
|
557 |
msgid "Enable Failed Attempt email"
|
558 |
msgstr "Aktivieren Sie die E-Mail \"Fehlgeschlagener Versuch\""
|
559 |
|
560 |
+
#: includes/customizer/class-wc-email-customizer.php:412
|
561 |
msgid "Enable Google Analytics tracking"
|
562 |
msgstr ""
|
563 |
"Aktivieren Sie das Google Analytics-Tracking\n"
|
564 |
|
565 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:212
|
566 |
msgid "Enable In Transit email"
|
567 |
msgstr "In Transit-E-Mail aktivieren"
|
568 |
|
569 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:162
|
570 |
msgid "Enable On Hold email"
|
571 |
msgstr "E-Mail aktivieren"
|
572 |
|
573 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:161
|
574 |
msgid "Enable Out For Delivery email"
|
575 |
msgstr "Aktivieren Sie Out for Delivery E-Mail"
|
576 |
|
577 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:208
|
578 |
msgid "Enable Partially Shipped order status email"
|
579 |
msgstr ""
|
580 |
"Teilweise versendete Bestellstatus-E-Mail aktivieren\n"
|
581 |
|
582 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:159
|
583 |
msgid "Enable Return To Sender email"
|
584 |
msgstr "Aktivieren Sie Return To Sender E-Mail"
|
585 |
|
586 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:253
|
587 |
+
msgid "Enable Tracking # link to Carrier"
|
588 |
+
msgstr ""
|
589 |
|
590 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:161
|
591 |
msgid "Enable Updated Tracking order status email"
|
592 |
msgstr ""
|
593 |
"Aktivieren Sie die E-Mail mit dem Status der aktualisierten "
|
598 |
msgstr ""
|
599 |
"Europäische Sommerzeit. Lieferdatum\n"
|
600 |
|
601 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:214
|
602 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:217
|
603 |
+
msgid "Events Display Type"
|
604 |
+
msgstr ""
|
605 |
+
|
606 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:867
|
607 |
msgid "Exception"
|
608 |
msgstr ""
|
609 |
|
610 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:782
|
611 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:864
|
612 |
+
#: includes/customizer/class-wc-email-customizer.php:190
|
613 |
#: includes/customizer/class-wc-failure-email-customizer.php:126
|
614 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:196
|
615 |
+
#: includes/views/admin_status_notifications.php:124
|
616 |
msgid "Failed Attempt"
|
617 |
msgstr "Misslungener Versuch"
|
618 |
|
619 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:791
|
620 |
msgid "Filter by shipment status"
|
621 |
msgstr "Filtern nach Sendungsstatus"
|
622 |
|
623 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1866
|
624 |
msgid "Filter by shipping provider"
|
625 |
msgstr "Nach Versandanbieter filtern"
|
626 |
|
630 |
msgstr ""
|
631 |
"Gefunden in Ihrer Auftragsbestätigungs-E-Mail.\n"
|
632 |
|
633 |
+
#: includes/views/admin_options_addons.php:146
|
634 |
+
#: includes/views/admin_options_addons.php:168
|
635 |
+
#: includes/views/admin_options_addons.php:196
|
636 |
+
msgid "From"
|
637 |
+
msgstr ""
|
638 |
+
|
639 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:489
|
640 |
+
msgid "Fulfill Order"
|
641 |
+
msgstr ""
|
642 |
+
|
643 |
+
#: includes/views/admin_options_settings.php:15
|
644 |
+
#: includes/views/trackship_settings.php:59
|
645 |
msgid "General Settings"
|
646 |
msgstr "Allgemeine Einstellungen"
|
647 |
|
648 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:753
|
649 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1019
|
650 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1028
|
651 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1037
|
652 |
msgid "Get Shipment Status"
|
653 |
msgstr ""
|
654 |
"Sendungsstatus abrufen\n"
|
655 |
|
656 |
+
#: includes/views/admin_options_shipping_provider.php:59
|
657 |
+
#: includes/views/admin_options_shipping_provider.php:114
|
658 |
msgid "Global"
|
659 |
msgstr "Global"
|
660 |
|
661 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:329
|
662 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:327
|
663 |
+
#: includes/customizer/class-wc-email-customizer.php:431
|
664 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:328
|
665 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:380
|
666 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:330
|
667 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:329
|
668 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:326
|
669 |
msgid "Google Analytics link tracking"
|
670 |
msgstr ""
|
671 |
"Google Analytics-Linkverfolgung\n"
|
672 |
|
673 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:758
|
674 |
msgid "Headers background color"
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:776
|
678 |
msgid "Headers font color"
|
679 |
msgstr ""
|
680 |
"Schriftfarbe der Überschriften\n"
|
681 |
|
682 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:739
|
683 |
msgid "Headers font size"
|
684 |
msgstr ""
|
685 |
"Schriftgröße der Überschriften\n"
|
686 |
|
687 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:794
|
688 |
msgid "Headers font weight"
|
689 |
msgstr ""
|
690 |
|
691 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:119
|
692 |
msgid ""
|
693 |
"Hi there. we thought you'd like to know that the shipment tracking for your "
|
694 |
"recent order from {site_title} has been updated."
|
696 |
"Hallo. Wir dachten, Sie möchten wissen, dass die Sendungsverfolgung für Ihre "
|
697 |
"letzte Bestellung von {site_title} aktualisiert wurde.\n"
|
698 |
|
699 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:127
|
700 |
+
#: includes/customizer/class-wc-email-customizer.php:120
|
701 |
msgid ""
|
702 |
"Hi there. we thought you'd like to know that your recent order from "
|
703 |
"{site_title} has been Delivered."
|
713 |
"Hallo. Wir dachten, Sie möchten wissen, dass Ihre letzte Bestellung von "
|
714 |
"{site_title} teilweise versendet wurde.\n"
|
715 |
|
716 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:126
|
717 |
msgid ""
|
718 |
"Hi there. we thought you'd like to know that your recent order from "
|
719 |
"{site_title} has been returned to sender."
|
745 |
"Hallo. Wir dachten, Sie möchten wissen, dass Ihre letzte Bestellung von "
|
746 |
"{site_title} unterwegs ist\n"
|
747 |
|
748 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:129
|
749 |
msgid ""
|
750 |
"Hi there. we thought you'd like to know that your recent order from "
|
751 |
"{site_title} is on hold"
|
753 |
"Hallo. Wir dachten, Sie möchten wissen, dass Ihre letzte Bestellung von "
|
754 |
"{site_title} zurückgestellt wurde"
|
755 |
|
756 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:128
|
757 |
msgid ""
|
758 |
"Hi there. we thought you'd like to know that your recent order from "
|
759 |
"{site_title} is out for delivery."
|
761 |
"Hallo. Wir dachten, Sie möchten wissen, dass Ihre letzte Bestellung von "
|
762 |
"{site_title} nicht lieferbar ist.\n"
|
763 |
|
764 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:751
|
765 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:766
|
766 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:781
|
767 |
msgid "hide details"
|
768 |
msgstr ""
|
769 |
"Details ausblenden\n"
|
770 |
|
771 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:374
|
772 |
#: includes/views/admin_tracking_page_settings.php:76
|
773 |
msgid "Hide Shipping Provider Image"
|
774 |
msgstr ""
|
775 |
"Bild des Versandanbieters ausblenden\n"
|
776 |
|
777 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:649
|
778 |
msgid "Hide Table Headers"
|
779 |
msgstr ""
|
780 |
"Tabellenüberschriften ausblenden\n"
|
781 |
|
782 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:509
|
783 |
#, fuzzy
|
784 |
#| msgid "Hide the ship date"
|
785 |
msgid "Hide the shipped date"
|
786 |
msgstr ""
|
787 |
"Verstecken Sie das Versanddatum\n"
|
788 |
|
789 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:237
|
790 |
+
msgid "Hide the Shipping Provider logo"
|
791 |
+
msgstr ""
|
792 |
+
|
793 |
#: includes/views/admin_tracking_page_settings.php:81
|
794 |
msgid "Hide tracking event details"
|
795 |
msgstr ""
|
796 |
"Tracking-Ereignisdetails ausblenden\n"
|
797 |
|
798 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:222
|
799 |
+
msgid "Hide tracking events"
|
800 |
+
msgstr ""
|
801 |
+
|
802 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:380
|
803 |
msgid "Hide tracking events details"
|
804 |
msgstr "Details zu Tracking-Ereignissen ausblenden"
|
805 |
|
806 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:230
|
807 |
msgid "Hide Tracking Header"
|
808 |
msgstr "Tracking-Header ausblenden"
|
809 |
|
810 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:269
|
811 |
+
msgid "Hide TrackShip Branding"
|
812 |
+
msgstr ""
|
813 |
+
|
814 |
+
#: includes/views/admin_options_bulk_upload.php:119
|
815 |
+
msgid "How to import tracking number from CSV files?"
|
816 |
+
msgstr ""
|
817 |
|
818 |
+
#. Author URI of the plugin
|
819 |
+
msgid "https://www.zorem.com"
|
|
|
|
|
820 |
msgstr ""
|
|
|
|
|
|
|
821 |
|
822 |
+
#. URI of the plugin
|
823 |
+
msgid "https://www.zorem.com/products/woocommerce-advanced-shipment-tracking/"
|
824 |
+
msgstr ""
|
825 |
+
|
826 |
+
#: includes/views/admin_options_bulk_upload.php:75
|
827 |
msgid "Import in Progress"
|
828 |
msgstr "Import in Bearbeitung"
|
829 |
|
830 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:778
|
831 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:843
|
832 |
+
#: includes/customizer/class-wc-email-customizer.php:184
|
833 |
#: includes/customizer/class-wc-intransit-email-customizer.php:129
|
834 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:190
|
835 |
+
#: includes/views/admin_status_notifications.php:43
|
836 |
msgid "In Transit"
|
837 |
+
msgstr "Unterwegs"
|
|
|
838 |
|
839 |
#: includes/api/class-wc-advanced-shipment-tracking-rest-api-controller.php:397
|
840 |
msgid "Invalid order ID."
|
841 |
msgstr ""
|
842 |
"Ungültige Bestellnummer.\n"
|
843 |
|
844 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:786
|
845 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:876
|
846 |
msgid "Invalid Tracking Number"
|
847 |
msgstr "Ungültige Tracking-Nummer"
|
848 |
|
849 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:882
|
850 |
msgid "Invalid User Key"
|
851 |
msgstr "Ungültiger Benutzerschlüssel"
|
852 |
|
853 |
+
#: includes/views/admin_options_bulk_upload.php:47
|
854 |
msgid ""
|
855 |
"Keep unchecked for the tracking info to be added to any existing tracking "
|
856 |
"info added to the orders."
|
872 |
msgid "Late shipment for order #{order_number}"
|
873 |
msgstr "Verspäteter Versand für Bestellnummer {Bestellnummer}"
|
874 |
|
|
|
875 |
#: includes/views/admin_status_notifications.php:155
|
876 |
msgid "Late Shipments"
|
877 |
msgstr "Verspätete Lieferungen"
|
878 |
|
879 |
+
#: includes/views/admin_options_settings.php:47
|
880 |
msgid "Launch Customizer"
|
881 |
msgstr ""
|
882 |
"Starten Sie den Customizer\n"
|
883 |
|
884 |
+
#: includes/views/admin_options_addons.php:127
|
885 |
msgid "License"
|
886 |
msgstr "Lizenz"
|
887 |
|
888 |
+
#: includes/views/admin_options_osm.php:47
|
889 |
+
#: includes/views/admin_options_osm.php:87
|
890 |
+
#: includes/views/trackship_settings.php:105
|
891 |
msgid "Light Font"
|
892 |
msgstr ""
|
893 |
"Leichte Schrift\n"
|
894 |
|
895 |
+
#: includes/views/admin_options_shipping_provider.php:67
|
896 |
+
#: includes/views/admin_options_shipping_provider.php:121
|
897 |
+
msgid "Logo image"
|
898 |
+
msgstr ""
|
899 |
+
|
900 |
#: includes/class-wc-advanced-shipment-tracking.php:316
|
901 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:419
|
902 |
msgid "Mark as Completed?"
|
903 |
msgstr "Als erledigt markieren?"
|
904 |
|
905 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1447
|
906 |
msgid "Mark as Shipped"
|
907 |
msgstr "Als versandt markieren"
|
908 |
|
911 |
msgid "Mark as Shipped?"
|
912 |
msgstr "Als versandt markieren?"
|
913 |
|
914 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1420
|
915 |
msgid "Mark order as delivered"
|
916 |
msgstr "Bestellung als geliefert markieren"
|
917 |
|
918 |
#: includes/class-wc-advanced-shipment-tracking.php:397
|
919 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:473
|
920 |
msgid "Mark order as:"
|
921 |
msgstr "Bestellung markieren als:"
|
922 |
|
923 |
+
#: includes/customizer/class-wc-email-customizer.php:156
|
924 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:165
|
925 |
msgid "Mockup Order"
|
926 |
msgstr ""
|
927 |
|
928 |
+
#: includes/customizer/class-wcast-customizer.php:389
|
929 |
msgid "Mockup order"
|
930 |
msgstr ""
|
931 |
|
932 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:698
|
933 |
#: includes/views/admin_tracking_page_settings.php:41
|
934 |
msgid "more info"
|
935 |
msgstr ""
|
936 |
"Mehr Info\n"
|
937 |
|
938 |
+
#: includes/views/admin_options_shipping_provider.php:74
|
939 |
+
msgid "My White Label Provider URL"
|
940 |
+
msgstr ""
|
941 |
+
|
942 |
#: includes/views/admin_tracking_page_settings.php:41
|
943 |
msgid ""
|
944 |
"Note - If you select a different page than the Shipment Tracking page, add "
|
948 |
"auswählen, fügen Sie dem ausgewählten Seiteninhalt den Shortcode [wcast-"
|
949 |
"track-order] hinzu.\n"
|
950 |
|
951 |
+
#: includes/views/admin_trackship_dashboard.php:31
|
|
|
|
|
952 |
msgid "Notifications"
|
953 |
msgstr "Benachrichtigungen"
|
954 |
|
955 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:846
|
956 |
+
#: includes/customizer/class-wc-email-customizer.php:185
|
957 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:191
|
958 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:128
|
959 |
+
#: includes/views/admin_status_notifications.php:56
|
960 |
msgid "On Hold"
|
961 |
msgstr "In Wartestellung"
|
962 |
|
963 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:898
|
964 |
msgid "Open the track link in a new tab"
|
965 |
msgstr ""
|
966 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
967 |
#: templates/tracking/tracking-form.php:13
|
968 |
msgid "Order Email"
|
969 |
msgstr ""
|
970 |
"E-Mail bestellen\n"
|
971 |
|
972 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:876
|
973 |
msgid "Order Email Display"
|
974 |
msgstr ""
|
975 |
|
985 |
msgstr ""
|
986 |
"Bestellnummer:% s\n"
|
987 |
|
988 |
+
#: includes/views/admin_options_settings.php:57
|
989 |
+
msgid "Order Status Manager"
|
990 |
+
msgstr ""
|
991 |
|
992 |
+
#: includes/class-wc-advanced-shipment-tracking.php:1169
|
993 |
+
#: includes/class-wc-advanced-shipment-tracking.php:1255
|
994 |
#, php-format
|
995 |
msgid "Order was shipped with %s and tracking number is: %s"
|
996 |
msgstr ""
|
1000 |
msgid "Origin Details"
|
1001 |
msgstr "Origin Details"
|
1002 |
|
1003 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:693
|
1004 |
#: includes/views/admin_tracking_page_settings.php:36
|
1005 |
msgid "Other"
|
1006 |
msgstr "Andere"
|
1007 |
|
1008 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:780
|
1009 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:855
|
1010 |
+
#: includes/customizer/class-wc-email-customizer.php:188
|
1011 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:194
|
1012 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:127
|
1013 |
msgid "Out For Delivery"
|
1014 |
msgstr ""
|
1015 |
"Raus zur Lieferung\n"
|
1016 |
|
1017 |
+
#: includes/views/admin_status_notifications.php:95
|
1018 |
msgid "Out For delivery"
|
1019 |
msgstr "Raus zur Lieferung"
|
1020 |
|
1021 |
#: includes/class-wc-advanced-shipment-tracking.php:400
|
1022 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:476
|
1023 |
msgid "Partial Shipped"
|
1024 |
msgstr "Teilweise versandt"
|
1025 |
|
1026 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:162
|
1027 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:208
|
1028 |
+
#: includes/customizer/class-wc-email-customizer.php:182
|
1029 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:191
|
1030 |
+
#: includes/views/admin_options_osm.php:27
|
1031 |
msgid "Partially Shipped"
|
1032 |
msgstr ""
|
1033 |
"zum Teil versandt\n"
|
1041 |
msgstr[1] ""
|
1042 |
"Teilweise versandt <span class=\"count\">(%s)</span>\n"
|
1043 |
|
1044 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:775
|
1045 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:873
|
1046 |
msgid "Pending TrackShip"
|
1047 |
msgstr "Ausstehendes TrackShip"
|
1048 |
|
1053 |
"for WooCommerce!"
|
1054 |
msgstr ""
|
1055 |
|
1056 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:191
|
1057 |
msgid "Please select a order..."
|
1058 |
msgstr ""
|
1059 |
"Bitte wählen Sie eine Bestellung aus ...\n"
|
1060 |
|
1061 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:394
|
1062 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:401
|
1063 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:392
|
1064 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:399
|
1065 |
+
#: includes/customizer/class-wc-email-customizer.php:479
|
1066 |
+
#: includes/customizer/class-wc-email-customizer.php:487
|
1067 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:393
|
1068 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:401
|
1069 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:444
|
1070 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:452
|
1071 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:394
|
1072 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:402
|
1073 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:394
|
1074 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:402
|
1075 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:360
|
1076 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:368
|
1077 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:394
|
1078 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:402
|
1079 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:313
|
1080 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:321
|
1081 |
msgid "Please select order to preview."
|
1082 |
msgstr ""
|
1083 |
"Bitte wählen Sie eine Bestellung aus, um eine Vorschau anzuzeigen.\n"
|
1084 |
|
1085 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:233
|
1086 |
msgid "Please upload a valid CSV file."
|
1087 |
msgstr "Please upload a valid CSV file."
|
1088 |
|
1089 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:777
|
1090 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:849
|
1091 |
msgid "Pre Transit"
|
1092 |
msgstr ""
|
1093 |
"Pre Transit\n"
|
1096 |
msgid "Preview"
|
1097 |
msgstr "Vorschau"
|
1098 |
|
1099 |
+
#: includes/customizer/class-wc-email-customizer.php:152
|
1100 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:160
|
1101 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:161
|
1102 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:187
|
1103 |
msgid "Preview order"
|
1104 |
msgstr "Vorschau der Bestellung"
|
1105 |
|
1112 |
msgid "Product Code:"
|
1113 |
msgstr "Produktcode:"
|
1114 |
|
1115 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:166
|
1116 |
+
msgid "Progress Bar"
|
1117 |
+
msgstr ""
|
1118 |
+
|
1119 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:147
|
1120 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:675
|
1121 |
+
#: templates/emails/tracking-info.php:265
|
1122 |
#: templates/myaccount/tracking-info.php:211
|
1123 |
msgid "Provider"
|
1124 |
msgstr "Anbieter"
|
1125 |
|
1126 |
+
#: includes/views/admin_options_shipping_provider.php:48
|
1127 |
+
#: includes/views/admin_options_shipping_provider.php:96
|
1128 |
+
#: templates/emails/tracking-info.php:270
|
1129 |
#: templates/myaccount/tracking-info.php:216
|
1130 |
msgid "Provider Name"
|
1131 |
msgstr "Anbietername"
|
1132 |
|
1133 |
+
#: includes/views/admin_options_shipping_provider.php:153
|
1134 |
msgid "Providers Added"
|
1135 |
msgstr "Anbieter hinzugefügt"
|
1136 |
|
1137 |
+
#: includes/views/admin_options_shipping_provider.php:155
|
1138 |
msgid "Providers Deleted"
|
1139 |
msgstr "Anbieter gelöscht"
|
1140 |
|
1141 |
+
#: includes/views/admin_options_shipping_provider.php:154
|
1142 |
msgid "Providers Updated"
|
1143 |
msgstr "Anbieter aktualisiert"
|
1144 |
|
1145 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:230
|
1146 |
msgid "Really delete this entry? This will not be undo."
|
1147 |
msgstr "Diesen Eintrag wirklich löschen? Dies wird nicht rückgängig gemacht."
|
1148 |
|
1149 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:386
|
1150 |
#: includes/views/admin_tracking_page_settings.php:86
|
1151 |
msgid "Remove TrackShip branding"
|
1152 |
msgstr ""
|
1153 |
"Entfernen Sie das TrackShip-Branding\n"
|
1154 |
|
1155 |
+
#: includes/views/admin_options_osm.php:12
|
1156 |
msgid "Rename the “Completed” Order status label to “Shipped”"
|
1157 |
msgstr ""
|
1158 |
|
1159 |
+
#: includes/views/admin_options_bulk_upload.php:47
|
1160 |
msgid "Replace tracking information?"
|
1161 |
msgstr "Tracking-Informationen ersetzen?"
|
1162 |
|
1163 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:505
|
1164 |
msgid "Resend delivered order notification"
|
1165 |
msgstr ""
|
1166 |
"Senden Sie die gelieferte Bestellbenachrichtigung erneut\n"
|
1167 |
|
1168 |
+
#: includes/views/admin_options_shipping_provider.php:137
|
1169 |
msgid "Reset"
|
1170 |
msgstr "Zurücksetzen"
|
1171 |
|
1172 |
+
#: includes/views/admin_options_shipping_provider.php:159
|
1173 |
msgid ""
|
1174 |
"Reset providers database, it will reset all your shipping provider database"
|
1175 |
msgstr ""
|
1176 |
"Anbieter-Datenbank zurücksetzen, setzt Ihre gesamte Versandanbieter-"
|
1177 |
"Datenbank zurück"
|
1178 |
|
1179 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:785
|
1180 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:861
|
1181 |
+
#: includes/customizer/class-wc-email-customizer.php:186
|
1182 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:192
|
1183 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:125
|
1184 |
+
#: includes/views/admin_status_notifications.php:69
|
1185 |
msgid "Return To Sender"
|
1186 |
msgstr ""
|
1187 |
"Zurück an den Absender\n"
|
1188 |
|
1189 |
+
#: includes/views/admin_options_settings.php:19
|
|
|
|
|
1190 |
#: includes/views/admin_status_notifications.php:245
|
1191 |
+
#: includes/views/admin_tracking_page_settings.php:104
|
1192 |
msgid "Save Changes"
|
1193 |
msgstr ""
|
1194 |
"Änderungen speichern\n"
|
1195 |
|
1196 |
#: includes/class-wc-advanced-shipment-tracking.php:416
|
|
|
1197 |
msgid "Save Tracking"
|
1198 |
msgstr "Tracking speichern"
|
1199 |
|
1200 |
+
#: includes/views/admin_options_shipping_provider.php:24
|
1201 |
msgid "Search by provider / country"
|
1202 |
msgstr ""
|
1203 |
"Suche nach Anbieter / Land\n"
|
1204 |
|
1205 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:188
|
1206 |
msgid "Select an order to preview and design the tracking info display."
|
1207 |
msgstr ""
|
1208 |
"Wählen Sie eine Bestellung aus, um eine Vorschau anzuzeigen und die Anzeige "
|
1209 |
"der Tracking-Informationen zu gestalten.\n"
|
1210 |
|
1211 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:362
|
1212 |
msgid "Select content border color for tracking page"
|
1213 |
msgstr "Wählen Sie die Farbe des Inhaltsrahmens für die Tracking-Seite aus"
|
1214 |
|
1215 |
+
#: includes/customizer/class-wc-email-customizer.php:178
|
1216 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:187
|
1217 |
msgid "Select email type"
|
1218 |
msgstr ""
|
1219 |
|
1221 |
msgid "Select Provider"
|
1222 |
msgstr "Wählen Sie Provider aus"
|
1223 |
|
1224 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:186
|
1225 |
msgid "Select shipment status"
|
1226 |
msgstr ""
|
1227 |
|
1228 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:286
|
1229 |
msgid "Select Template"
|
1230 |
msgstr ""
|
1231 |
"Vorlage auswählen\n"
|
1232 |
|
1233 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:331
|
1234 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:339
|
1235 |
#: includes/views/admin_tracking_page_settings.php:27
|
1236 |
msgid "Select Tracking Page"
|
1237 |
msgstr ""
|
1238 |
"Wählen Sie Tracking-Seite\n"
|
1239 |
|
1240 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:437
|
1241 |
+
msgid "Select tracking page"
|
1242 |
+
msgstr ""
|
1243 |
+
|
1244 |
+
#: includes/views/admin_options_osm.php:52
|
1245 |
+
#: includes/views/admin_options_osm.php:92
|
1246 |
msgid "Send Email"
|
1247 |
msgstr ""
|
1248 |
"E-Mail senden\n"
|
1249 |
|
1250 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:870
|
1251 |
msgid ""
|
1252 |
"Set the \"mark as shipped\" option checked when adding tracking info to "
|
1253 |
"orders"
|
1254 |
msgstr ""
|
1255 |
|
1256 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:347
|
1257 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:351
|
|
|
1258 |
msgid "Settings"
|
1259 |
msgstr ""
|
1260 |
|
1261 |
+
#: includes/views/admin_options_bulk_upload.php:58
|
1262 |
msgid "Settings Saved."
|
1263 |
msgstr "Einstellungen gespeichert."
|
1264 |
|
1265 |
#: includes/class-wc-advanced-shipment-tracking-front.php:327
|
1266 |
#: includes/views/front/preview_tracking_page.php:25
|
1267 |
msgid "Shipment"
|
1268 |
+
msgstr "Sendung"
|
1269 |
|
1270 |
#: includes/class-wc-advanced-shipment-tracking-front.php:355
|
1271 |
#, php-format
|
1278 |
msgid "Shipment : %s (out of %s)"
|
1279 |
msgstr ""
|
1280 |
|
1281 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:182
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1282 |
msgid "Shipment Status"
|
1283 |
msgstr ""
|
1284 |
"Versandstatus\n"
|
1285 |
|
1286 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:510
|
1287 |
msgid "Shipment status"
|
1288 |
msgstr "Shipment status"
|
1289 |
|
1292 |
msgid "Shipment status changed to %s"
|
1293 |
msgstr "Der Sendungsstatus wurde in% s geändert"
|
1294 |
|
1295 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:245
|
1296 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:295
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1297 |
#: includes/class-wc-advanced-shipment-tracking.php:141
|
1298 |
#: includes/class-wc-advanced-shipment-tracking.php:223
|
1299 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:210
|
|
|
|
|
1300 |
msgid "Shipment Tracking"
|
1301 |
msgstr "Sendungsverfolgung"
|
1302 |
|
1303 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:733
|
1304 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:327
|
1305 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:417
|
|
|
1306 |
msgid "Shipped"
|
1307 |
msgstr "Versendet"
|
1308 |
|
1315 |
msgstr[1] ""
|
1316 |
"Versand <span class=\"count\">(%s)</span>\n"
|
1317 |
|
1318 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:149
|
1319 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:722
|
1320 |
msgid "Shipped Date"
|
1321 |
msgstr "Versanddatum"
|
1322 |
|
1323 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:715
|
1324 |
#, fuzzy
|
1325 |
#| msgid "Ship date header text"
|
1326 |
msgid "Shipped date header text"
|
1333 |
msgid "Shipped on %s"
|
1334 |
msgstr "Versand auf% s"
|
1335 |
|
1336 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:157
|
1337 |
msgid "Shipped on {ship_date} via {shipping_provider} - {tracking_number_link}"
|
1338 |
msgstr ""
|
1339 |
"Versand am {Schiffsdatum} über {Versandanbieter} - {Tracking-Nummer_Link}"
|
1340 |
|
1341 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1396
|
1342 |
msgid "Shipped Order"
|
1343 |
msgstr "Versandbestellung"
|
1344 |
|
1345 |
+
#: includes/views/admin_status_notifications.php:29
|
1346 |
+
msgid "Shipping & Delivery Notifications"
|
1347 |
+
msgstr ""
|
1348 |
+
|
1349 |
+
#: includes/views/admin_options_shipping_provider.php:58
|
1350 |
+
#: includes/views/admin_options_shipping_provider.php:113
|
1351 |
msgid "Shipping Country"
|
1352 |
msgstr ""
|
1353 |
"Lieferungsland\n"
|
1354 |
|
1355 |
+
#: includes/views/admin_options_shipping_provider.php:97
|
|
|
1356 |
msgid "Shipping Provider"
|
1357 |
msgstr "Versandanbieter"
|
1358 |
|
1359 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:668
|
1360 |
msgid "Shipping provider header text"
|
1361 |
msgstr ""
|
1362 |
|
1366 |
msgid "Shipping Provider:"
|
1367 |
msgstr "Versandanbieter:"
|
1368 |
|
1369 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:356
|
1370 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:360
|
1371 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1527
|
|
|
|
|
1372 |
msgid "Shipping Providers"
|
1373 |
msgstr "Versandanbieter"
|
1374 |
|
1375 |
+
#: includes/views/admin_options_shipping_provider.php:157
|
1376 |
msgid "Shipping providers database reset successfully."
|
1377 |
msgstr "Datenbank der Versandanbieter erfolgreich zurückgesetzt."
|
1378 |
|
1379 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:221
|
1380 |
+
msgid "Show all Events"
|
|
|
|
|
|
|
|
|
|
|
|
|
1381 |
msgstr ""
|
|
|
1382 |
|
1383 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:415
|
1384 |
msgid "Show bottom border"
|
1385 |
msgstr ""
|
1386 |
"Zeige unteren Rand\n"
|
1387 |
|
1388 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:322
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1389 |
msgid "Simple Layout Design"
|
1390 |
msgstr ""
|
1391 |
"Einfaches Layout Design\n"
|
1395 |
msgstr ""
|
1396 |
"Sonderzeichen in Tracking-Nummer nicht zulässig\n"
|
1397 |
|
1398 |
+
#: includes/views/admin_options_trackship_integration.php:19
|
1399 |
+
msgid "Start for Free"
|
1400 |
+
msgstr ""
|
|
|
1401 |
|
1402 |
+
#: includes/views/trackship_settings.php:39
|
1403 |
+
msgid "Subscription: "
|
1404 |
+
msgstr ""
|
1405 |
|
1406 |
+
#: includes/views/admin_options_shipping_provider.php:147
|
1407 |
+
#: includes/views/admin_options_shipping_provider.php:161
|
1408 |
msgid "Sync Shipping Providers"
|
1409 |
msgstr ""
|
1410 |
"Versandanbieter synchronisieren\n"
|
1411 |
|
1412 |
+
#: includes/views/admin_options_shipping_provider.php:151
|
1413 |
msgid ""
|
1414 |
"Syncing the shipping providers list add or updates the pre-set shipping "
|
1415 |
"providers and will not effect custom shipping providers."
|
1418 |
"voreingestellten Versandanbieter hinzugefügt oder aktualisiert. "
|
1419 |
"Benutzerdefinierte Versandanbieter werden davon nicht betroffen.\n"
|
1420 |
|
1421 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:817
|
1422 |
msgid "Table Content"
|
1423 |
msgstr ""
|
1424 |
"Tabelleninhalt\n"
|
1425 |
|
1426 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:547
|
1427 |
msgid "Table Design Options"
|
1428 |
msgstr ""
|
1429 |
|
1430 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:632
|
1431 |
#, fuzzy
|
1432 |
#| msgid "Table Headers"
|
1433 |
msgid "Table Header"
|
1434 |
msgstr ""
|
1435 |
"Tabellenüberschriften\n"
|
1436 |
|
1437 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:287
|
1438 |
msgid "Table Layout"
|
1439 |
msgstr ""
|
1440 |
"Tabellenlayout\n"
|
1441 |
|
1442 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:454
|
1443 |
msgid "Table Options"
|
1444 |
msgstr ""
|
1445 |
|
1446 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:608
|
1447 |
msgid "Text align"
|
1448 |
msgstr ""
|
1449 |
|
1450 |
+
#: includes/views/admin_options_shipping_provider.php:52
|
1451 |
#: includes/views/admin_options_shipping_provider.php:100
|
1452 |
msgid ""
|
1453 |
+
"The custom display name will show in the tracking info section on the "
|
1454 |
+
"customer order emails, my-account, and TrackShip's tracking page and email "
|
1455 |
+
"notifications"
|
1456 |
msgstr ""
|
|
|
|
|
|
|
1457 |
|
1458 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:906
|
1459 |
+
msgid "The date format which your external service update the API"
|
1460 |
+
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1461 |
|
1462 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:735
|
1463 |
msgid "There are some issue with sync, Please Retry."
|
1464 |
msgstr ""
|
1465 |
"Es gibt ein Problem mit der Synchronisierung. Bitte versuchen Sie es erneut."
|
1466 |
"\n"
|
1467 |
|
1468 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:232
|
1469 |
msgid "This browser does not support HTML5."
|
1470 |
msgstr "Dieser Browser unterstützt HTML5 nicht."
|
1471 |
|
1472 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:739
|
1473 |
msgid ""
|
1474 |
"This means that the 'mark as <span class='shipped_label'>completed</span>' "
|
1475 |
"will be selected by default when adding tracking info to orders."
|
1478 |
"Bestellungen standardmäßig die Option 'Markieren als <span class =' "
|
1479 |
"shipped_label '> erledigt </ span>' ausgewählt wird."
|
1480 |
|
1481 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:735
|
1482 |
msgid ""
|
1483 |
"This means that the 'mark as <span class='shipped_label'>shipped</span>' "
|
1484 |
"will be selected by default when adding tracking info to orders."
|
1496 |
"Diese Bestellung wurde vor {Versandlänge} Tagen versandt, der Versandstatus "
|
1497 |
"ist {Versandstatus} und das voraussichtliche Lieferdatum ist {Versanddatum}."
|
1498 |
|
1499 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:330
|
1500 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:328
|
1501 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:329
|
1502 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:381
|
1503 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:331
|
1504 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:330
|
1505 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:327
|
1506 |
msgid "This will be appended to URL in the email content"
|
1507 |
msgstr ""
|
1508 |
"Dies wird an die URL im E-Mail-Inhalt angehängt\n"
|
1509 |
|
1510 |
+
#: includes/customizer/class-wc-email-customizer.php:432
|
1511 |
msgid ""
|
1512 |
"This will be appended to URL in the email content – e.g. "
|
1513 |
"utm_source=ast&utm_medium=email&utm_campaign=delivered"
|
1515 |
"Dies wird an die URL im E-Mail-Inhalt angehängt - z. utm_source = ast & "
|
1516 |
"utm_medium = email & utm_campaign = geliefert\n"
|
1517 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1518 |
#: templates/tracking/tracking-form.php:11
|
1519 |
msgid ""
|
1520 |
"To track your order please enter your Order ID in the box below and press "
|
1526 |
"auf Ihrer Quittung und in der Bestätigungs-E-Mail, die Sie hätten erhalten "
|
1527 |
"sollen, mitgeteilt.\n"
|
1528 |
|
1529 |
+
#: includes/views/admin_options_tools.php:17
|
1530 |
+
#: includes/views/admin_trackship_dashboard.php:34
|
|
|
|
|
1531 |
msgid "Tools"
|
1532 |
msgstr "Werkzeuge"
|
1533 |
|
1534 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1298
|
1535 |
+
msgid "Total Shipments"
|
1536 |
+
msgstr ""
|
1537 |
+
|
1538 |
+
#: includes/class-wc-advanced-shipment-tracking.php:753
|
1539 |
+
#: includes/class-wc-advanced-shipment-tracking.php:780
|
1540 |
+
#: includes/class-wc-advanced-shipment-tracking.php:796
|
1541 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:150
|
1542 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:978
|
1543 |
+
#: templates/emails/tracking-info.php:301
|
1544 |
#: templates/myaccount/tracking-info.php:241
|
1545 |
#: templates/tracking/tracking-form.php:16
|
1546 |
msgid "Track"
|
1547 |
msgstr "Verfolgen"
|
1548 |
|
1549 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:935
|
1550 |
msgid "Track Button"
|
1551 |
msgstr ""
|
1552 |
|
1553 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:952
|
1554 |
msgid "Track Header"
|
1555 |
msgstr ""
|
1556 |
|
1557 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:971
|
1558 |
msgid "Track header text"
|
1559 |
msgstr ""
|
1560 |
"Verfolgen Sie den Header-Text\n"
|
1565 |
msgstr ""
|
1566 |
"Sendung verfolgen\n"
|
1567 |
|
1568 |
+
#: includes/views/trackship_settings.php:40
|
1569 |
+
#, fuzzy
|
1570 |
+
#| msgid "Trackers Balance"
|
1571 |
+
msgid "Trackers Balance: "
|
1572 |
msgstr "Tracker Balance"
|
1573 |
|
1574 |
#: includes/views/front/layout1_tracking_details.php:4
|
1583 |
msgid "Tracking details not found in TrackShip"
|
1584 |
msgstr "Tracking-Details wurden in TrackShip nicht gefunden"
|
1585 |
|
1586 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:301
|
1587 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:304
|
|
|
|
|
|
|
|
|
1588 |
msgid "Tracking display layout"
|
1589 |
msgstr "Tracking-Display-Layout"
|
1590 |
|
1591 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:209
|
|
|
|
|
|
|
|
|
1592 |
msgid "Tracking Display Position"
|
1593 |
msgstr "Verfolgung der Anzeigeposition"
|
1594 |
|
1595 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:248
|
1596 |
msgid "Tracking Header text"
|
1597 |
msgstr ""
|
1598 |
"Tracking-Header-Text\n"
|
1599 |
|
1600 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:167
|
1601 |
+
#, fuzzy
|
1602 |
+
#| msgid "Tracking issues"
|
1603 |
+
msgid "Tracking Icons"
|
1604 |
+
msgstr ""
|
1605 |
+
"Verfolgung von Problemen\n"
|
1606 |
+
|
1607 |
+
#: includes/customizer/class-wcast-customizer.php:29
|
1608 |
msgid "Tracking info display"
|
1609 |
msgstr ""
|
1610 |
"Tracking-Info-Anzeige\n"
|
1611 |
|
1612 |
+
#: includes/views/admin_options_tools.php:10
|
1613 |
msgid "Tracking info sent to Trackship for all Orders."
|
1614 |
msgstr "Tracking-Informationen für alle Bestellungen an Trackhip gesendet."
|
1615 |
|
1616 |
+
#: includes/class-wc-advanced-shipment-tracking.php:715
|
1617 |
#, php-format
|
1618 |
msgid ""
|
1619 |
"Tracking info was deleted for tracking provider %s with tracking number %s"
|
1621 |
"Die Tracking-Informationen wurden für den Tracking-Anbieter% s mit der "
|
1622 |
"Tracking-Nummer% s gelöscht"
|
1623 |
|
1624 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:255
|
1625 |
msgid "Tracking Information"
|
1626 |
msgstr "Tracking-Informationen"
|
1627 |
|
1628 |
+
#: includes/views/admin_options_settings.php:39
|
1629 |
+
msgid "Tracking information display"
|
1630 |
+
msgstr ""
|
1631 |
+
|
1632 |
#: includes/views/front/tracking_page_header.php:33
|
1633 |
msgid "Tracking information is not available, please try again in a few hour."
|
1634 |
msgstr ""
|
1638 |
"Tracking information is not available, please try again in a few minutes."
|
1639 |
msgstr ""
|
1640 |
|
1641 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:148
|
1642 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:699
|
1643 |
+
#: templates/emails/tracking-info.php:277
|
|
|
|
|
|
|
|
|
|
|
1644 |
#: templates/myaccount/tracking-info.php:221
|
1645 |
msgid "Tracking Number"
|
1646 |
msgstr "Auftragsnummer, Frachtnummer, Sendungscode"
|
1647 |
|
1648 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:692
|
1649 |
#, fuzzy
|
1650 |
#| msgid "Tracking Number header text"
|
1651 |
msgid "Tracking number header text"
|
1657 |
msgid "Tracking number:"
|
1658 |
msgstr "Auftragsnummer, Frachtnummer, Sendungscode:"
|
1659 |
|
|
|
1660 |
#: includes/views/admin_tracking_page_settings.php:9
|
|
|
|
|
1661 |
msgid "Tracking Page"
|
1662 |
msgstr "Tracking-Seite"
|
1663 |
|
1664 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:351
|
1665 |
msgid "Tracking Page Layout"
|
1666 |
msgstr ""
|
1667 |
"Seitenlayout verfolgen\n"
|
1668 |
|
1669 |
+
#: includes/customizer/class-wcast-customizer.php:39
|
1670 |
+
msgid "Tracking Page Widget"
|
1671 |
+
msgstr ""
|
1672 |
+
|
1673 |
#: includes/views/admin_tracking_page_settings.php:92
|
1674 |
msgid "Tracking Widget Border Color"
|
1675 |
msgstr ""
|
1686 |
msgid "Tracking Widget Preview"
|
1687 |
msgstr "Vorschau des Tracking-Widgets"
|
1688 |
|
1689 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1530
|
1690 |
msgid "TrackShip"
|
1691 |
msgstr "TrackShip"
|
1692 |
|
1693 |
+
#: includes/views/trackship_settings.php:31
|
1694 |
+
msgid "TrackShip Account"
|
1695 |
+
msgstr ""
|
1696 |
+
|
1697 |
+
#: includes/views/trackship_settings.php:9
|
1698 |
msgid "TrackShip Connection Status"
|
1699 |
msgstr "TrackShip-Verbindungsstatus"
|
1700 |
|
1701 |
+
#: includes/views/trackship_settings.php:43
|
1702 |
+
msgid "TrackShip Dashboard"
|
1703 |
+
msgstr ""
|
1704 |
|
1705 |
+
#: includes/customizer/class-wcast-customizer.php:53
|
1706 |
+
msgid "TrackShip Email Notifications"
|
1707 |
+
msgstr ""
|
1708 |
|
1709 |
#: includes/views/admin_status_notifications.php:225
|
1710 |
msgid "Trigger Alert"
|
1711 |
msgstr "Alarm auslösen"
|
1712 |
|
1713 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:776
|
1714 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:870
|
1715 |
msgid "Unknown"
|
1716 |
msgstr "Unknown"
|
1717 |
|
1718 |
+
#: includes/views/admin_options_shipping_provider.php:136
|
1719 |
msgid "Update"
|
1720 |
msgstr "Aktualisieren"
|
1721 |
|
1722 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:148
|
1723 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:194
|
1724 |
+
#: includes/customizer/class-wc-email-customizer.php:183
|
1725 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:192
|
1726 |
+
#: includes/views/admin_options_osm.php:69
|
1727 |
msgid "Updated Tracking"
|
1728 |
msgstr ""
|
1729 |
"Aktualisiertes Tracking\n"
|
1737 |
msgstr[1] ""
|
1738 |
"Aktualisiertes Tracking <span class=\"count\">(%s)</span>\n"
|
1739 |
|
1740 |
+
#: includes/views/admin_options_shipping_provider.php:70
|
1741 |
+
#: includes/views/admin_options_shipping_provider.php:124
|
|
|
|
|
|
|
|
|
1742 |
msgid "Upload"
|
1743 |
msgstr "Hochladen"
|
1744 |
|
1745 |
+
#: includes/views/admin_options_bulk_upload.php:25
|
1746 |
msgid "Upload a CSV file from your computer:"
|
1747 |
msgstr "Laden Sie eine CSV-Datei von Ihrem Computer hoch:"
|
1748 |
|
1749 |
+
#: includes/views/admin_options_bulk_upload.php:108
|
1750 |
msgid "Upload again"
|
1751 |
msgstr "Erneut hochladen"
|
1752 |
|
1753 |
+
#: includes/views/admin_options_bulk_upload.php:11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1754 |
msgid ""
|
1755 |
"Use our CSV Import Tool to bulk Import tracking info to orders from a CSV "
|
1756 |
"file"
|
1758 |
"Verwenden Sie unser CSV-Import-Tool, um Tracking-Informationen in "
|
1759 |
"Bestellungen aus einer CSV-Datei zu importieren"
|
1760 |
|
1761 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:345
|
1762 |
msgid "Use the tracking page in the customer email/my account tracking link"
|
1763 |
msgstr ""
|
1764 |
"Verwenden Sie die Tracking-Seite im Kunden-E-Mail- / Mein Account-Tracking-"
|
1765 |
"Link"
|
1766 |
|
1767 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:528
|
1768 |
msgid "Use tracking number as a link"
|
1769 |
msgstr ""
|
1770 |
"Verwenden Sie die Tracking-Nummer als Link\n"
|
1771 |
|
1772 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:750
|
1773 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:765
|
1774 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:780
|
1775 |
+
#: includes/views/admin_options_bulk_upload.php:86
|
1776 |
msgid "view details"
|
1777 |
msgstr ""
|
1778 |
"Details anzeigen\n"
|
1779 |
|
1780 |
+
#: includes/views/admin_options_bulk_upload.php:107
|
|
|
|
|
|
|
|
|
|
|
1781 |
msgid "View Orders"
|
1782 |
msgstr "Bestellungen anzeigen"
|
1783 |
|
1784 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1319
|
1785 |
+
msgid "View Tracking Analytics"
|
1786 |
+
msgstr ""
|
|
|
1787 |
|
1788 |
+
#: woocommerce-advanced-shipment-tracking.php:473
|
1789 |
#, php-format
|
1790 |
msgid ""
|
1791 |
"We detected %s orders that use the Delivered order status, You can reassign "
|
1794 |
"Wir haben% s Bestellungen erkannt, die den Status \"Gelieferte Bestellung\" "
|
1795 |
"verwenden. Sie können diese Bestellungen einem anderen Status zuweisen"
|
1796 |
|
1797 |
+
#: woocommerce-advanced-shipment-tracking.php:485
|
1798 |
#, php-format
|
1799 |
msgid ""
|
1800 |
"We detected %s orders that use the Partially Shipped order status, You can "
|
1803 |
"Wir haben% s Bestellungen festgestellt, die den Status \"Teilversand\" "
|
1804 |
"verwenden. Sie können diese Bestellungen einem anderen Status zuweisen"
|
1805 |
|
1806 |
+
#: woocommerce-advanced-shipment-tracking.php:497
|
1807 |
#, php-format
|
1808 |
msgid ""
|
1809 |
"We detected %s orders that use the Updated Tracking order status, You can "
|
1813 |
"Nachverfolgungsbestellung\" verwenden. Sie können diese Bestellungen einem "
|
1814 |
"anderen Status zuweisen"
|
1815 |
|
1816 |
+
#: includes/views/admin_options_shipping_provider.php:53
|
1817 |
+
#: includes/views/admin_options_shipping_provider.php:101
|
1818 |
+
msgid "White Label Provider Name"
|
1819 |
+
msgstr ""
|
1820 |
+
|
1821 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:198
|
1822 |
+
msgid "Widget background color"
|
1823 |
+
msgstr ""
|
1824 |
+
|
1825 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:182
|
1826 |
+
msgid "Widget border color"
|
1827 |
+
msgstr ""
|
1828 |
+
|
1829 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:159
|
1830 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:162
|
1831 |
+
msgid "Widget Tracker Type"
|
1832 |
+
msgstr ""
|
1833 |
+
|
1834 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:885
|
1835 |
msgid "Wrong Shipping Provider"
|
1836 |
msgstr "Falscher Versandanbieter"
|
1837 |
|
1838 |
+
#: includes/class-wc-advanced-shipment-tracking.php:384
|
1839 |
+
#: includes/class-wc-advanced-shipment-tracking.php:387
|
1840 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:467
|
1841 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:467
|
1842 |
+
msgid "Y-m-d"
|
1843 |
+
msgstr ""
|
1844 |
+
|
1845 |
+
#: includes/views/admin_status_notifications.php:112
|
1846 |
msgid ""
|
1847 |
"You already have delivered order status email enabled, to enable this email "
|
1848 |
"you'll need to disable the delivered order status email in settings."
|
1849 |
msgstr ""
|
1850 |
|
1851 |
+
#: includes/views/admin_options_tools.php:18
|
1852 |
msgid ""
|
1853 |
"You can send all your orders from the last 30 days to get shipment status "
|
1854 |
"from TrackShip:"
|
1856 |
"Sie können alle Ihre Bestellungen der letzten 30 Tage senden, um den "
|
1857 |
"Sendungsstatus von TrackShip zu erhalten:\n"
|
1858 |
|
1859 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:231
|
1860 |
msgid "You can upload only csv file."
|
1861 |
msgstr "Sie können nur CSV-Dateien hochladen."
|
1862 |
|
1863 |
+
#: includes/views/admin_options_shipping_provider.php:77
|
1864 |
+
#: includes/views/admin_options_shipping_provider.php:131
|
1865 |
msgid ""
|
1866 |
"You can use the variables %number%, %postal_code% and %country_code% in the "
|
1867 |
"URL, for more info, check our "
|
1869 |
"You can use the variables %number%, %postal_code% and %country_code% in the "
|
1870 |
"URL, for more info, check our "
|
1871 |
|
1872 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1617
|
1873 |
#, php-format
|
1874 |
msgid "You did not create any %s shipping providers yet."
|
1875 |
msgstr "Sie haben noch keine% s Versandanbieter erstellt."
|
1876 |
|
1877 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1620
|
|
|
1878 |
#, php-format
|
1879 |
msgid "You don't have any %s shipping providers."
|
1880 |
msgstr "Sie haben keine% s Versandanbieter."
|
1881 |
|
1882 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1036
|
1883 |
#, php-format
|
1884 |
msgid "You got %s %s orders with shipment status “TrackShip connection issue”"
|
1885 |
msgstr ""
|
1886 |
"Sie haben% s% s Bestellungen mit dem Sendungsstatus \"TrackShip-"
|
1887 |
"Verbindungsproblem\" erhalten."
|
1888 |
|
1889 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1027
|
1890 |
#, php-format
|
1891 |
msgid "You got %s %s orders with shipment status “TrackShip balance is 0”"
|
1892 |
msgstr ""
|
1893 |
"Sie haben% s% s Bestellungen mit dem Sendungsstatus \"TrackShip-Guthaben ist "
|
1894 |
"0\" erhalten."
|
1895 |
|
1896 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1018
|
1897 |
#, php-format
|
1898 |
msgid ""
|
1899 |
"You got %s %s orders with tracking info that were not sent to track on "
|
1902 |
"Sie haben% s% s Bestellungen mit Tracking-Informationen erhalten, die nicht "
|
1903 |
"an TrackShip gesendet wurden"
|
1904 |
|
1905 |
+
#: includes/views/admin_trackship_dashboard.php:23
|
1906 |
#, php-format
|
1907 |
msgid ""
|
1908 |
"You have %s Shipped Orders from the last 30 days that you can bulk send to "
|
1912 |
"Massenversand an <a href = \"javascript: void (0);\" senden können. class = "
|
1913 |
"\"tool_link\"> Sendungsstatus abrufen </a>"
|
1914 |
|
1915 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:323
|
1916 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:414
|
1917 |
msgid ""
|
1918 |
"You must add the shortcode [wcast-track-order] to the selected page in order "
|
1919 |
"for the tracking page to work."
|
1921 |
"Sie müssen der ausgewählten Seite den Shortcode [wcast-track-order] "
|
1922 |
"hinzufügen, damit die Tracking-Seite funktioniert."
|
1923 |
|
1924 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:125
|
1925 |
msgid "Your order #{order_number} has been delivered"
|
1926 |
msgstr ""
|
1927 |
"Ihre Bestellung Nr. {Order_number} wurde geliefert\n"
|
1928 |
|
1929 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:124
|
1930 |
msgid "Your order #{order_number} has returned to sender"
|
1931 |
msgstr ""
|
1932 |
"Ihre Bestellung Nr. {Order_number} wurde an den Absender zurückgeschickt\n"
|
1944 |
msgstr ""
|
1945 |
"Ihre Bestellung Nr. {Order_number} ist in Bearbeitung\n"
|
1946 |
|
1947 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:127
|
1948 |
msgid "Your order #{order_number} is on hold"
|
1949 |
msgstr "Ihre Bestellnummer {Bestellnummer} wird gehalten"
|
1950 |
|
1951 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
|
1952 |
msgid "Your order #{order_number} is out for delivery"
|
1953 |
msgstr ""
|
1954 |
"Ihre Bestellung Nr. {Order_number} ist nicht lieferbar\n"
|
1955 |
|
1956 |
+
#: includes/customizer/class-wc-email-customizer.php:118
|
|
|
1957 |
msgid "Your {site_title} order is now delivered"
|
1958 |
msgstr ""
|
1959 |
"Ihre {site_title} Bestellung wird jetzt geliefert\n"
|
1963 |
msgstr ""
|
1964 |
"Ihre {site_title} Bestellung wird jetzt teilweise versendet\n"
|
1965 |
|
1966 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:117
|
1967 |
msgid "Your {site_title} order is now updated tracking"
|
1968 |
msgstr ""
|
1969 |
"Ihre {site_title} Bestellung wird jetzt nachverfolgt\n"
|
1970 |
+
|
1971 |
+
#. Author of the plugin
|
1972 |
+
msgid "zorem"
|
1973 |
+
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:
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
@@ -15,45 +15,58 @@ msgstr ""
|
|
15 |
"X-Generator: Loco https://localise.biz/\n"
|
16 |
"X-Loco-Version: 2.2.0; wp-5.0.3"
|
17 |
|
18 |
-
#: includes/views/admin_options_shipping_provider.php:
|
19 |
-
#: includes/views/admin_options_shipping_provider.php:
|
20 |
#, php-format
|
21 |
msgid "<a href=\"%s\" target=\"blank\">documentation</a>"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: includes/
|
25 |
-
|
26 |
-
msgid "Account Dashboard"
|
27 |
msgstr ""
|
28 |
|
29 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
30 |
-
|
31 |
-
msgid "Actions"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
35 |
-
|
|
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: includes/views/admin_options_shipping_provider.php:
|
39 |
-
msgid "
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: includes/
|
43 |
-
|
44 |
-
|
|
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
48 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
|
|
49 |
msgid "Add Custom Provider"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: includes/views/admin_options_shipping_provider.php:
|
53 |
msgid "Add Custom Shipping Provider"
|
54 |
msgstr ""
|
55 |
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
msgid "Add Tracking"
|
58 |
msgstr ""
|
59 |
|
@@ -61,7 +74,7 @@ msgstr ""
|
|
61 |
msgid "Add Tracking - order\t"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
65 |
msgid "Add Tracking action "
|
66 |
msgstr ""
|
67 |
|
@@ -69,16 +82,13 @@ msgstr ""
|
|
69 |
msgid "Add Tracking Info"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
73 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
74 |
-
#: includes/
|
75 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:433
|
76 |
-
#: includes/views/admin_options_addons.php:131
|
77 |
-
#: includes/views/admin_options_addons.php:137
|
78 |
msgid "Add-ons"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
82 |
msgid "Additional text after header"
|
83 |
msgstr ""
|
84 |
|
@@ -86,16 +96,23 @@ msgstr ""
|
|
86 |
msgid "Admin Notifications"
|
87 |
msgstr ""
|
88 |
|
89 |
-
|
|
|
|
|
|
|
|
|
90 |
msgid "After Order Details"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
|
|
|
|
|
|
|
|
94 |
msgid "API Date Format"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: includes/
|
98 |
-
#: includes/views/admin_options_shipping_provider.php:110
|
99 |
msgid "API Name"
|
100 |
msgstr ""
|
101 |
|
@@ -103,90 +120,87 @@ msgstr ""
|
|
103 |
msgid "As it Happens"
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: includes/
|
107 |
msgid ""
|
108 |
-
"Automatically
|
109 |
-
"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: includes/views/
|
113 |
msgid "Automation"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
117 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
118 |
-
#: includes/customizer/class-wcast-customizer.php:104
|
119 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:126
|
120 |
-
#: includes/customizer/class-wc-
|
|
|
121 |
#: includes/views/admin_status_notifications.php:82
|
122 |
msgid "Available For Pickup"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#. %s: list of placeholders
|
126 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:205
|
127 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:229
|
128 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
|
129 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
130 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
131 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
132 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
133 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
134 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
135 |
#: includes/customizer/class-wc-failure-email-customizer.php:204
|
136 |
#: includes/customizer/class-wc-failure-email-customizer.php:228
|
137 |
#: includes/customizer/class-wc-failure-email-customizer.php:273
|
138 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
139 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
140 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
141 |
-
#: includes/customizer/class-wc-
|
142 |
-
#: includes/customizer/class-wc-
|
143 |
-
#: includes/customizer/class-wc-
|
144 |
-
#: includes/customizer/class-wc-
|
145 |
-
#: includes/customizer/class-wc-
|
146 |
-
#: includes/customizer/class-wc-
|
147 |
-
#: includes/customizer/class-wc-
|
148 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
149 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
150 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
151 |
-
#: includes/customizer/class-wc-
|
152 |
-
#: includes/customizer/class-wc-
|
153 |
-
#: includes/customizer/class-wc-
|
154 |
-
#: includes/customizer/class-wc-
|
155 |
-
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:
|
156 |
-
#: includes/customizer/class-wc-
|
157 |
-
#: includes/customizer/class-wc-
|
158 |
-
#: includes/customizer/class-wc-
|
159 |
-
#: includes/emails/class-shipment-delivered-email.php:274
|
160 |
-
#: includes/emails/class-shipment-delivered-email.php:283
|
161 |
#: includes/views/admin_status_notifications.php:212
|
162 |
msgid "Available variables:"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: includes/
|
|
|
|
|
|
|
|
|
166 |
msgid "Before Order Details"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
170 |
msgid "Border color"
|
171 |
msgstr ""
|
172 |
|
173 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
174 |
msgid "Border size"
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
178 |
msgid "Bottom border color"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: includes/
|
182 |
-
msgid "Browse Providers"
|
183 |
-
msgstr ""
|
184 |
-
|
185 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:960
|
186 |
msgid "Button color"
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
190 |
msgid "Button font color"
|
191 |
msgstr ""
|
192 |
|
@@ -194,20 +208,12 @@ msgstr ""
|
|
194 |
msgid "Cannot create existing order shipment tracking."
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: includes/
|
198 |
-
|
199 |
-
msgstr ""
|
200 |
-
|
201 |
-
#: includes/views/admin_status_notifications.php:97
|
202 |
-
msgid "Carrier is about to deliver the shipment."
|
203 |
-
msgstr ""
|
204 |
-
|
205 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:769
|
206 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:867
|
207 |
msgid "Carrier Unsupported"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
211 |
msgid "Change order status to"
|
212 |
msgstr ""
|
213 |
|
@@ -215,116 +221,124 @@ msgstr ""
|
|
215 |
msgid "Change status to shipped"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
219 |
msgid "Choose for which Order status to display"
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
223 |
msgid "Choose for which Order status to display Add Tracking action button"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
227 |
msgid "Choose on which order emails to include the shipment tracking info"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: includes/views/admin_options_bulk_upload.php:
|
231 |
msgid "Choose the Shipped Date format"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: includes/emails/class-shipment-delivered-email.php:298
|
235 |
-
msgid "Click Here"
|
236 |
-
msgstr ""
|
237 |
-
|
238 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:420
|
239 |
msgid "Completed"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
243 |
-
#: includes/views/
|
244 |
msgid "Connected"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: includes/
|
|
|
|
|
|
|
|
|
248 |
msgid "Content"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
252 |
msgid "Content Background color"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
256 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
257 |
msgid "Content font color"
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
261 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
262 |
msgid "Content font size"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
266 |
msgid "Content font weight"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
270 |
msgid "Content line height"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: includes/views/admin_options_bulk_upload.php:
|
274 |
msgid "Continue"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: includes/
|
|
|
278 |
msgid "Country"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
282 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
283 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:327
|
284 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:411
|
285 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:415
|
286 |
-
#: includes/views/admin_options_bulk_upload.php:11
|
287 |
msgid "CSV Import"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: includes/views/admin_options_shipping_provider.php:
|
291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
msgid "Custom display name"
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: includes/customizer/class-wcast-customizer.php:
|
296 |
msgid "Custom order status email"
|
297 |
msgstr ""
|
298 |
|
299 |
-
#: includes/
|
300 |
-
|
301 |
-
msgid "Custom Order Statuses"
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: includes/views/admin_options_shipping_provider.php:
|
305 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
msgstr ""
|
307 |
|
308 |
#: includes/views/admin_status_notifications.php:234
|
309 |
msgid "Daily Digest on"
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: includes/views/admin_options_osm.php:
|
313 |
-
#: includes/views/admin_options_osm.php:
|
314 |
-
#: includes/views/
|
315 |
msgid "Dark Font"
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
319 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
320 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
321 |
-
|
322 |
-
msgstr ""
|
323 |
-
|
324 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:159
|
325 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:229
|
326 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:233
|
327 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:353
|
328 |
msgid "Data saved successfully."
|
329 |
msgstr ""
|
330 |
|
@@ -333,30 +347,33 @@ msgstr ""
|
|
333 |
msgid "Date shipped:"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
337 |
-
|
338 |
-
msgid "Default"
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
|
|
|
|
|
|
|
|
342 |
msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
346 |
msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
|
347 |
msgstr ""
|
348 |
|
|
|
349 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:134
|
350 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:179
|
351 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
352 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
353 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
354 |
-
#: includes/customizer/class-
|
355 |
-
#: includes/customizer/class-wc-
|
356 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
357 |
-
#: includes/
|
358 |
-
#: includes/views/
|
359 |
-
#: includes/views/admin_options_osm.php:17
|
360 |
msgid "Delivered"
|
361 |
msgstr ""
|
362 |
|
@@ -367,57 +384,71 @@ msgid_plural "Delivered <span class=\"count\">(%s)</span>"
|
|
367 |
msgstr[0] ""
|
368 |
msgstr[1] ""
|
369 |
|
370 |
-
#: includes/emails/class-shipment-delivered-email.php:32
|
371 |
-
msgid "Delivered order"
|
372 |
-
msgstr ""
|
373 |
-
|
374 |
#: includes/views/front/layout1_tracking_details.php:8
|
375 |
msgid "Destination Details"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
379 |
msgid "Display Billing Address"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
383 |
msgid "Display Name"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
387 |
msgid "Display order details"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
391 |
-
msgid "Display
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
395 |
msgid "Display Shipping Address"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
399 |
msgid "Display shipping provider image"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
403 |
msgid "Display shipping provider name"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: includes/class-wc-
|
407 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
msgid "Display tracking details"
|
412 |
msgstr ""
|
413 |
|
414 |
-
#: includes/class-wc-advanced-shipment-tracking-
|
415 |
-
|
416 |
-
#: includes/views/zorem_admin_bulk_upload_sidebar.php:14
|
417 |
-
msgid "Documentation"
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: includes/views/
|
421 |
msgid "Download sample csv"
|
422 |
msgstr ""
|
423 |
|
@@ -426,51 +457,56 @@ msgid "E.g. {admin_email}, admin@example.org"
|
|
426 |
msgstr ""
|
427 |
|
428 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:187
|
429 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
430 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
431 |
#: includes/customizer/class-wc-failure-email-customizer.php:186
|
432 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
433 |
-
#: includes/customizer/class-wc-
|
434 |
-
#: includes/customizer/class-wc-
|
435 |
-
#: includes/customizer/class-wc-
|
436 |
msgid "E.g. {customer.email}, admin@example.org"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: includes/
|
440 |
-
msgid "
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: includes/views/admin_options_shipping_provider.php:
|
444 |
msgid "Edit Shipping Provider"
|
445 |
msgstr ""
|
446 |
|
447 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:252
|
448 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
449 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
450 |
#: includes/customizer/class-wc-failure-email-customizer.php:251
|
451 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
452 |
-
#: includes/customizer/class-wc-
|
453 |
-
#: includes/customizer/class-wc-
|
454 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
455 |
-
#: includes/customizer/class-wc-
|
456 |
-
#: includes/customizer/class-wc-
|
457 |
#: includes/views/admin_status_notifications.php:206
|
458 |
msgid "Email content"
|
459 |
msgstr ""
|
460 |
|
461 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:204
|
462 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
463 |
#: includes/customizer/class-wc-failure-email-customizer.php:203
|
464 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
465 |
-
#: includes/customizer/class-wc-
|
466 |
-
#: includes/customizer/class-wc-
|
467 |
msgid "Email Subject"
|
468 |
msgstr ""
|
469 |
|
470 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
|
|
471 |
msgid "Email Type"
|
472 |
msgstr ""
|
473 |
|
|
|
|
|
|
|
|
|
474 |
#: includes/views/admin_tracking_page_settings.php:10
|
475 |
msgid "Enable a tracking page on your store"
|
476 |
msgstr ""
|
@@ -479,15 +515,11 @@ msgstr ""
|
|
479 |
msgid "Enable Available For Pickup email"
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: includes/
|
483 |
-
msgid "Enable custom order statuses to streamline your fulfillment workflow"
|
484 |
-
msgstr ""
|
485 |
-
|
486 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:161
|
487 |
msgid "Enable Delivered email"
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
491 |
msgid "Enable Delivered order status email"
|
492 |
msgstr ""
|
493 |
|
@@ -495,35 +527,35 @@ msgstr ""
|
|
495 |
msgid "Enable Failed Attempt email"
|
496 |
msgstr ""
|
497 |
|
498 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
499 |
msgid "Enable Google Analytics tracking"
|
500 |
msgstr ""
|
501 |
|
502 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
503 |
msgid "Enable In Transit email"
|
504 |
msgstr ""
|
505 |
|
506 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:
|
507 |
msgid "Enable On Hold email"
|
508 |
msgstr ""
|
509 |
|
510 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
511 |
msgid "Enable Out For Delivery email"
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
515 |
msgid "Enable Partially Shipped order status email"
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
519 |
msgid "Enable Return To Sender email"
|
520 |
msgstr ""
|
521 |
|
522 |
-
#: includes/class-wc-
|
523 |
-
msgid "Enable
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:
|
527 |
msgid "Enable Updated Tracking order status email"
|
528 |
msgstr ""
|
529 |
|
@@ -531,24 +563,29 @@ msgstr ""
|
|
531 |
msgid "Est. Delivery Date"
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: includes/class-wc-
|
|
|
|
|
|
|
|
|
|
|
535 |
msgid "Exception"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
539 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
540 |
-
#: includes/customizer/class-
|
541 |
#: includes/customizer/class-wc-failure-email-customizer.php:126
|
542 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
543 |
-
#: includes/views/admin_status_notifications.php:
|
544 |
msgid "Failed Attempt"
|
545 |
msgstr ""
|
546 |
|
547 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
548 |
msgid "Filter by shipment status"
|
549 |
msgstr ""
|
550 |
|
551 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
552 |
msgid "Filter by shipping provider"
|
553 |
msgstr ""
|
554 |
|
@@ -557,57 +594,68 @@ msgstr ""
|
|
557 |
msgid "Found in your order confirmation email."
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
561 |
msgid "General Settings"
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
565 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
566 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
567 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
568 |
msgid "Get Shipment Status"
|
569 |
msgstr ""
|
570 |
|
571 |
-
#: includes/views/admin_options_shipping_provider.php:
|
572 |
-
#: includes/views/admin_options_shipping_provider.php:
|
573 |
msgid "Global"
|
574 |
msgstr ""
|
575 |
|
576 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
577 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
578 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
579 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
580 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
581 |
-
#: includes/customizer/class-wc-
|
582 |
-
#: includes/customizer/class-wc-
|
583 |
-
#: includes/customizer/class-wc-
|
584 |
msgid "Google Analytics link tracking"
|
585 |
msgstr ""
|
586 |
|
587 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
588 |
msgid "Headers background color"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
592 |
msgid "Headers font color"
|
593 |
msgstr ""
|
594 |
|
595 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
596 |
msgid "Headers font size"
|
597 |
msgstr ""
|
598 |
|
599 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
600 |
msgid "Headers font weight"
|
601 |
msgstr ""
|
602 |
|
603 |
-
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:
|
604 |
msgid ""
|
605 |
"Hi there. we thought you'd like to know that the shipment tracking for your "
|
606 |
"recent order from {site_title} has been updated."
|
607 |
msgstr ""
|
608 |
|
609 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
610 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
611 |
msgid ""
|
612 |
"Hi there. we thought you'd like to know that your recent order from "
|
613 |
"{site_title} has been Delivered."
|
@@ -619,7 +667,7 @@ msgid ""
|
|
619 |
"{site_title} has been partially shipped."
|
620 |
msgstr ""
|
621 |
|
622 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
623 |
msgid ""
|
624 |
"Hi there. we thought you'd like to know that your recent order from "
|
625 |
"{site_title} has been returned to sender."
|
@@ -643,68 +691,83 @@ msgid ""
|
|
643 |
"{site_title} is in transit"
|
644 |
msgstr ""
|
645 |
|
646 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:
|
647 |
msgid ""
|
648 |
"Hi there. we thought you'd like to know that your recent order from "
|
649 |
"{site_title} is on hold"
|
650 |
msgstr ""
|
651 |
|
652 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
653 |
msgid ""
|
654 |
"Hi there. we thought you'd like to know that your recent order from "
|
655 |
"{site_title} is out for delivery."
|
656 |
msgstr ""
|
657 |
|
658 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
659 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
660 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
661 |
msgid "hide details"
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
665 |
#: includes/views/admin_tracking_page_settings.php:76
|
666 |
msgid "Hide Shipping Provider Image"
|
667 |
msgstr ""
|
668 |
|
669 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
670 |
msgid "Hide Table Headers"
|
671 |
msgstr ""
|
672 |
|
673 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
674 |
msgid "Hide the shipped date"
|
675 |
msgstr ""
|
676 |
|
|
|
|
|
|
|
|
|
677 |
#: includes/views/admin_tracking_page_settings.php:81
|
678 |
msgid "Hide tracking event details"
|
679 |
msgstr ""
|
680 |
|
681 |
-
#: includes/class-wc-
|
|
|
|
|
|
|
|
|
682 |
msgid "Hide tracking events details"
|
683 |
msgstr ""
|
684 |
|
685 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
686 |
msgid "Hide Tracking Header"
|
687 |
msgstr ""
|
688 |
|
689 |
-
#: includes/class-wc-
|
690 |
-
msgid "
|
691 |
msgstr ""
|
692 |
|
693 |
-
#: includes/views/
|
694 |
-
msgid ""
|
695 |
-
|
696 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: includes/views/admin_options_bulk_upload.php:
|
700 |
msgid "Import in Progress"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
704 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
|
|
705 |
#: includes/customizer/class-wc-intransit-email-customizer.php:129
|
706 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
707 |
-
#: includes/views/admin_status_notifications.php:
|
708 |
msgid "In Transit"
|
709 |
msgstr ""
|
710 |
|
@@ -712,16 +775,16 @@ msgstr ""
|
|
712 |
msgid "Invalid order ID."
|
713 |
msgstr ""
|
714 |
|
715 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
716 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
717 |
msgid "Invalid Tracking Number"
|
718 |
msgstr ""
|
719 |
|
720 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
721 |
msgid "Invalid User Key"
|
722 |
msgstr ""
|
723 |
|
724 |
-
#: includes/views/admin_options_bulk_upload.php:
|
725 |
msgid ""
|
726 |
"Keep unchecked for the tracking info to be added to any existing tracking "
|
727 |
"info added to the orders."
|
@@ -740,31 +803,35 @@ msgstr ""
|
|
740 |
msgid "Late shipment for order #{order_number}"
|
741 |
msgstr ""
|
742 |
|
743 |
-
#: includes/customizer/class-wcast-customizer.php:135
|
744 |
#: includes/views/admin_status_notifications.php:155
|
745 |
msgid "Late Shipments"
|
746 |
msgstr ""
|
747 |
|
748 |
-
#: includes/views/admin_options_settings.php:
|
749 |
msgid "Launch Customizer"
|
750 |
msgstr ""
|
751 |
|
752 |
-
#: includes/views/admin_options_addons.php:
|
753 |
msgid "License"
|
754 |
msgstr ""
|
755 |
|
756 |
-
#: includes/views/admin_options_osm.php:
|
757 |
-
#: includes/views/admin_options_osm.php:
|
758 |
-
#: includes/views/
|
759 |
msgid "Light Font"
|
760 |
msgstr ""
|
761 |
|
|
|
|
|
|
|
|
|
|
|
762 |
#: includes/class-wc-advanced-shipment-tracking.php:316
|
763 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:419
|
764 |
msgid "Mark as Completed?"
|
765 |
msgstr ""
|
766 |
|
767 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
768 |
msgid "Mark as Shipped"
|
769 |
msgstr ""
|
770 |
|
@@ -773,62 +840,60 @@ msgstr ""
|
|
773 |
msgid "Mark as Shipped?"
|
774 |
msgstr ""
|
775 |
|
776 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
777 |
msgid "Mark order as delivered"
|
778 |
msgstr ""
|
779 |
|
780 |
#: includes/class-wc-advanced-shipment-tracking.php:397
|
781 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
782 |
msgid "Mark order as:"
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
|
|
786 |
msgid "Mockup Order"
|
787 |
msgstr ""
|
788 |
|
789 |
-
#: includes/customizer/class-wcast-customizer.php:
|
790 |
msgid "Mockup order"
|
791 |
msgstr ""
|
792 |
|
|
|
793 |
#: includes/views/admin_tracking_page_settings.php:41
|
794 |
msgid "more info"
|
795 |
msgstr ""
|
796 |
|
|
|
|
|
|
|
|
|
797 |
#: includes/views/admin_tracking_page_settings.php:41
|
798 |
msgid ""
|
799 |
"Note - If you select a different page than the Shipment Tracking page, add "
|
800 |
"the [wcast-track-order] shortcode to the selected page content."
|
801 |
msgstr ""
|
802 |
|
803 |
-
#: includes/
|
804 |
-
#: includes/views/trackship_settings.php:12
|
805 |
-
#: includes/views/trackship_settings.php:13
|
806 |
msgid "Notifications"
|
807 |
msgstr ""
|
808 |
|
809 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
810 |
-
#: includes/customizer/class-
|
811 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
812 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:
|
813 |
-
#: includes/views/admin_status_notifications.php:
|
814 |
msgid "On Hold"
|
815 |
msgstr ""
|
816 |
|
817 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
818 |
msgid "Open the track link in a new tab"
|
819 |
msgstr ""
|
820 |
|
821 |
-
#: includes/emails/class-shipment-delivered-email.php:33
|
822 |
-
msgid ""
|
823 |
-
"Order delivered emails are sent to customers when their orders are marked "
|
824 |
-
"delivered and usually indicate that their orders have been shipped."
|
825 |
-
msgstr ""
|
826 |
-
|
827 |
#: templates/tracking/tracking-form.php:13
|
828 |
msgid "Order Email"
|
829 |
msgstr ""
|
830 |
|
831 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
832 |
msgid "Order Email Display"
|
833 |
msgstr ""
|
834 |
|
@@ -843,12 +908,12 @@ msgstr ""
|
|
843 |
msgid "Order number: %s"
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: includes/
|
847 |
-
msgid "Order Status
|
848 |
msgstr ""
|
849 |
|
850 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
851 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
852 |
#, php-format
|
853 |
msgid "Order was shipped with %s and tracking number is: %s"
|
854 |
msgstr ""
|
@@ -857,31 +922,33 @@ msgstr ""
|
|
857 |
msgid "Origin Details"
|
858 |
msgstr ""
|
859 |
|
|
|
860 |
#: includes/views/admin_tracking_page_settings.php:36
|
861 |
msgid "Other"
|
862 |
msgstr ""
|
863 |
|
864 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
865 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
866 |
-
#: includes/customizer/class-
|
867 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
868 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
869 |
msgid "Out For Delivery"
|
870 |
msgstr ""
|
871 |
|
872 |
-
#: includes/views/admin_status_notifications.php:
|
873 |
msgid "Out For delivery"
|
874 |
msgstr ""
|
875 |
|
876 |
#: includes/class-wc-advanced-shipment-tracking.php:400
|
877 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
878 |
msgid "Partial Shipped"
|
879 |
msgstr ""
|
880 |
|
881 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:162
|
882 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:208
|
883 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
884 |
-
#: includes/
|
|
|
885 |
msgid "Partially Shipped"
|
886 |
msgstr ""
|
887 |
|
@@ -892,8 +959,8 @@ msgid_plural "Partially Shipped <span class=\"count\">(%s)</span>"
|
|
892 |
msgstr[0] ""
|
893 |
msgstr[1] ""
|
894 |
|
895 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
896 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
897 |
msgid "Pending TrackShip"
|
898 |
msgstr ""
|
899 |
|
@@ -904,39 +971,39 @@ msgid ""
|
|
904 |
"for WooCommerce!"
|
905 |
msgstr ""
|
906 |
|
907 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
908 |
msgid "Please select a order..."
|
909 |
msgstr ""
|
910 |
|
911 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
912 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
913 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
914 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
915 |
-
#: includes/customizer/class-wc-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-failure-email-customizer.php:
|
919 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
920 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
921 |
-
#: includes/customizer/class-wc-
|
922 |
-
#: includes/customizer/class-wc-
|
923 |
-
#: includes/customizer/class-wc-
|
924 |
-
#: includes/customizer/class-wc-
|
925 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
926 |
-
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:
|
927 |
-
#: includes/customizer/class-wc-
|
928 |
-
#: includes/customizer/class-wc-
|
929 |
-
#: includes/customizer/class-wc-
|
930 |
-
#: includes/customizer/class-wc-
|
931 |
msgid "Please select order to preview."
|
932 |
msgstr ""
|
933 |
|
934 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
935 |
msgid "Please upload a valid CSV file."
|
936 |
msgstr ""
|
937 |
|
938 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
939 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
940 |
msgid "Pre Transit"
|
941 |
msgstr ""
|
942 |
|
@@ -944,9 +1011,10 @@ msgstr ""
|
|
944 |
msgid "Preview"
|
945 |
msgstr ""
|
946 |
|
947 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
948 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
949 |
-
#: includes/customizer/class-wc-
|
|
|
950 |
msgid "Preview order"
|
951 |
msgstr ""
|
952 |
|
@@ -959,95 +1027,99 @@ msgstr ""
|
|
959 |
msgid "Product Code:"
|
960 |
msgstr ""
|
961 |
|
962 |
-
#: includes/class-wc-
|
963 |
-
|
964 |
-
|
965 |
-
|
|
|
|
|
|
|
966 |
#: templates/myaccount/tracking-info.php:211
|
967 |
msgid "Provider"
|
968 |
msgstr ""
|
969 |
|
970 |
-
#:
|
|
|
|
|
971 |
#: templates/myaccount/tracking-info.php:216
|
972 |
msgid "Provider Name"
|
973 |
msgstr ""
|
974 |
|
975 |
-
#: includes/views/admin_options_shipping_provider.php:
|
976 |
msgid "Providers Added"
|
977 |
msgstr ""
|
978 |
|
979 |
-
#: includes/views/admin_options_shipping_provider.php:
|
980 |
msgid "Providers Deleted"
|
981 |
msgstr ""
|
982 |
|
983 |
-
#: includes/views/admin_options_shipping_provider.php:
|
984 |
msgid "Providers Updated"
|
985 |
msgstr ""
|
986 |
|
987 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
988 |
msgid "Really delete this entry? This will not be undo."
|
989 |
msgstr ""
|
990 |
|
991 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
992 |
#: includes/views/admin_tracking_page_settings.php:86
|
993 |
msgid "Remove TrackShip branding"
|
994 |
msgstr ""
|
995 |
|
996 |
-
#: includes/
|
997 |
msgid "Rename the “Completed” Order status label to “Shipped”"
|
998 |
msgstr ""
|
999 |
|
1000 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1001 |
msgid "Replace tracking information?"
|
1002 |
msgstr ""
|
1003 |
|
1004 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
1005 |
msgid "Resend delivered order notification"
|
1006 |
msgstr ""
|
1007 |
|
1008 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1009 |
msgid "Reset"
|
1010 |
msgstr ""
|
1011 |
|
1012 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1013 |
msgid ""
|
1014 |
"Reset providers database, it will reset all your shipping provider database"
|
1015 |
msgstr ""
|
1016 |
|
1017 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1018 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1019 |
-
#: includes/customizer/class-
|
1020 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1021 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
1022 |
-
#: includes/views/admin_status_notifications.php:
|
1023 |
msgid "Return To Sender"
|
1024 |
msgstr ""
|
1025 |
|
1026 |
-
#: includes/views/admin_options_settings.php:
|
1027 |
-
#: includes/views/admin_trackship_dashboard.php:45
|
1028 |
-
#: includes/views/admin_tracking_page_settings.php:104
|
1029 |
#: includes/views/admin_status_notifications.php:245
|
|
|
1030 |
msgid "Save Changes"
|
1031 |
msgstr ""
|
1032 |
|
1033 |
#: includes/class-wc-advanced-shipment-tracking.php:416
|
1034 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:491
|
1035 |
msgid "Save Tracking"
|
1036 |
msgstr ""
|
1037 |
|
1038 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1039 |
msgid "Search by provider / country"
|
1040 |
msgstr ""
|
1041 |
|
1042 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1043 |
msgid "Select an order to preview and design the tracking info display."
|
1044 |
msgstr ""
|
1045 |
|
1046 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1047 |
msgid "Select content border color for tracking page"
|
1048 |
msgstr ""
|
1049 |
|
1050 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
|
|
1051 |
msgid "Select email type"
|
1052 |
msgstr ""
|
1053 |
|
@@ -1055,39 +1127,41 @@ msgstr ""
|
|
1055 |
msgid "Select Provider"
|
1056 |
msgstr ""
|
1057 |
|
1058 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1059 |
msgid "Select shipment status"
|
1060 |
msgstr ""
|
1061 |
|
1062 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1063 |
msgid "Select Template"
|
1064 |
msgstr ""
|
1065 |
|
1066 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1067 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1068 |
#: includes/views/admin_tracking_page_settings.php:27
|
1069 |
msgid "Select Tracking Page"
|
1070 |
msgstr ""
|
1071 |
|
1072 |
-
#: includes/
|
1073 |
-
|
1074 |
-
|
|
|
|
|
|
|
1075 |
msgid "Send Email"
|
1076 |
msgstr ""
|
1077 |
|
1078 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1079 |
msgid ""
|
1080 |
"Set the \"mark as shipped\" option checked when adding tracking info to "
|
1081 |
"orders"
|
1082 |
msgstr ""
|
1083 |
|
1084 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1085 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1086 |
-
#: includes/views/admin_options_settings.php:15
|
1087 |
msgid "Settings"
|
1088 |
msgstr ""
|
1089 |
|
1090 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1091 |
msgid "Settings Saved."
|
1092 |
msgstr ""
|
1093 |
|
@@ -1106,22 +1180,11 @@ msgstr ""
|
|
1106 |
msgid "Shipment : %s (out of %s)"
|
1107 |
msgstr ""
|
1108 |
|
1109 |
-
#: includes/
|
1110 |
-
msgid "Shipment is returned to sender."
|
1111 |
-
msgstr ""
|
1112 |
-
|
1113 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1483
|
1114 |
-
msgid "Shipment Providers"
|
1115 |
-
msgstr ""
|
1116 |
-
|
1117 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1486
|
1118 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:184
|
1119 |
-
#: templates/emails/tracking-info.php:218
|
1120 |
-
#: templates/emails/tracking-info.php:248
|
1121 |
msgid "Shipment Status"
|
1122 |
msgstr ""
|
1123 |
|
1124 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1125 |
msgid "Shipment status"
|
1126 |
msgstr ""
|
1127 |
|
@@ -1130,29 +1193,17 @@ msgstr ""
|
|
1130 |
msgid "Shipment status changed to %s"
|
1131 |
msgstr ""
|
1132 |
|
1133 |
-
#: includes/
|
1134 |
-
|
1135 |
-
msgstr ""
|
1136 |
-
|
1137 |
-
#: includes/views/admin_status_notifications.php:3
|
1138 |
-
msgid "Shipment Status Email Notifications"
|
1139 |
-
msgstr ""
|
1140 |
-
|
1141 |
-
#: includes/customizer/class-wcast-customizer.php:52
|
1142 |
-
msgid "Shipment Status Emails"
|
1143 |
-
msgstr ""
|
1144 |
-
|
1145 |
#: includes/class-wc-advanced-shipment-tracking.php:141
|
1146 |
#: includes/class-wc-advanced-shipment-tracking.php:223
|
1147 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1148 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:249
|
1149 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:300
|
1150 |
msgid "Shipment Tracking"
|
1151 |
msgstr ""
|
1152 |
|
|
|
1153 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:327
|
1154 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:417
|
1155 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:870
|
1156 |
msgid "Shipped"
|
1157 |
msgstr ""
|
1158 |
|
@@ -1163,12 +1214,12 @@ msgid_plural "Shipped <span class=\"count\">(%s)</span>"
|
|
1163 |
msgstr[0] ""
|
1164 |
msgstr[1] ""
|
1165 |
|
1166 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1167 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1168 |
msgid "Shipped Date"
|
1169 |
msgstr ""
|
1170 |
|
1171 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1172 |
msgid "Shipped date header text"
|
1173 |
msgstr ""
|
1174 |
|
@@ -1178,25 +1229,28 @@ msgstr ""
|
|
1178 |
msgid "Shipped on %s"
|
1179 |
msgstr ""
|
1180 |
|
1181 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1182 |
msgid "Shipped on {ship_date} via {shipping_provider} - {tracking_number_link}"
|
1183 |
msgstr ""
|
1184 |
|
1185 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1186 |
msgid "Shipped Order"
|
1187 |
msgstr ""
|
1188 |
|
1189 |
-
#: includes/views/
|
1190 |
-
|
1191 |
-
msgid "Shipping Country"
|
1192 |
msgstr ""
|
1193 |
|
1194 |
#: includes/views/admin_options_shipping_provider.php:58
|
1195 |
-
#: includes/views/admin_options_shipping_provider.php:
|
|
|
|
|
|
|
|
|
1196 |
msgid "Shipping Provider"
|
1197 |
msgstr ""
|
1198 |
|
1199 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1200 |
msgid "Shipping provider header text"
|
1201 |
msgstr ""
|
1202 |
|
@@ -1206,63 +1260,25 @@ msgstr ""
|
|
1206 |
msgid "Shipping Provider:"
|
1207 |
msgstr ""
|
1208 |
|
1209 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1210 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1211 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1212 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:406
|
1213 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:1725
|
1214 |
msgid "Shipping Providers"
|
1215 |
msgstr ""
|
1216 |
|
1217 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1218 |
msgid "Shipping providers database reset successfully."
|
1219 |
msgstr ""
|
1220 |
|
1221 |
-
#: includes/customizer/class-wc-
|
1222 |
-
|
1223 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:327
|
1224 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:381
|
1225 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:329
|
1226 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:326
|
1227 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:330
|
1228 |
-
msgid "Show billing address"
|
1229 |
msgstr ""
|
1230 |
|
1231 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1232 |
msgid "Show bottom border"
|
1233 |
msgstr ""
|
1234 |
|
1235 |
-
#: includes/customizer/class-wc-
|
1236 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:310
|
1237 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:309
|
1238 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:363
|
1239 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:311
|
1240 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:308
|
1241 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:312
|
1242 |
-
msgid "Show order details"
|
1243 |
-
msgstr ""
|
1244 |
-
|
1245 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:346
|
1246 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:347
|
1247 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:346
|
1248 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:400
|
1249 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:348
|
1250 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:345
|
1251 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:349
|
1252 |
-
msgid "Show shipping address"
|
1253 |
-
msgstr ""
|
1254 |
-
|
1255 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:291
|
1256 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:292
|
1257 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:291
|
1258 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:345
|
1259 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:293
|
1260 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:290
|
1261 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:294
|
1262 |
-
msgid "Show tracking details"
|
1263 |
-
msgstr ""
|
1264 |
-
|
1265 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:321
|
1266 |
msgid "Simple Layout Design"
|
1267 |
msgstr ""
|
1268 |
|
@@ -1270,88 +1286,76 @@ msgstr ""
|
|
1270 |
msgid "Special character not allowd in tracking number"
|
1271 |
msgstr ""
|
1272 |
|
1273 |
-
#: includes/views/admin_options_trackship_integration.php:
|
1274 |
-
|
1275 |
-
msgid "Start your free trial"
|
1276 |
msgstr ""
|
1277 |
|
1278 |
-
#: includes/views/
|
1279 |
-
msgid "Subscription
|
1280 |
msgstr ""
|
1281 |
|
1282 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1283 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1284 |
msgid "Sync Shipping Providers"
|
1285 |
msgstr ""
|
1286 |
|
1287 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1288 |
msgid ""
|
1289 |
"Syncing the shipping providers list add or updates the pre-set shipping "
|
1290 |
"providers and will not effect custom shipping providers."
|
1291 |
msgstr ""
|
1292 |
|
1293 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1294 |
msgid "Table Content"
|
1295 |
msgstr ""
|
1296 |
|
1297 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1298 |
msgid "Table Design Options"
|
1299 |
msgstr ""
|
1300 |
|
1301 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1302 |
msgid "Table Header"
|
1303 |
msgstr ""
|
1304 |
|
1305 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1306 |
msgid "Table Layout"
|
1307 |
msgstr ""
|
1308 |
|
1309 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1310 |
msgid "Table Options"
|
1311 |
msgstr ""
|
1312 |
|
1313 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1314 |
msgid "Text align"
|
1315 |
msgstr ""
|
1316 |
|
1317 |
-
#: includes/
|
1318 |
#: includes/views/admin_options_shipping_provider.php:100
|
1319 |
msgid ""
|
1320 |
-
"The custom name will
|
1321 |
-
"order emails, my-account,
|
1322 |
-
|
1323 |
-
|
1324 |
-
#: includes/views/admin_status_notifications.php:52
|
1325 |
-
msgid "The shipment is On Hold."
|
1326 |
msgstr ""
|
1327 |
|
1328 |
-
#: includes/
|
1329 |
-
msgid "The
|
1330 |
-
msgstr ""
|
1331 |
-
|
1332 |
-
#: includes/views/admin_status_notifications.php:37
|
1333 |
-
msgid "The shipment was accepted by the shipping provider and its on the way."
|
1334 |
-
msgstr ""
|
1335 |
-
|
1336 |
-
#: includes/views/admin_status_notifications.php:112
|
1337 |
-
msgid "The shipment was delivered successfully."
|
1338 |
msgstr ""
|
1339 |
|
1340 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
1341 |
msgid "There are some issue with sync, Please Retry."
|
1342 |
msgstr ""
|
1343 |
|
1344 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1345 |
msgid "This browser does not support HTML5."
|
1346 |
msgstr ""
|
1347 |
|
1348 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1349 |
msgid ""
|
1350 |
"This means that the 'mark as <span class='shipped_label'>completed</span>' "
|
1351 |
"will be selected by default when adding tracking info to orders."
|
1352 |
msgstr ""
|
1353 |
|
1354 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1355 |
msgid ""
|
1356 |
"This means that the 'mark as <span class='shipped_label'>shipped</span>' "
|
1357 |
"will be selected by default when adding tracking info to orders."
|
@@ -1364,28 +1368,22 @@ msgid ""
|
|
1364 |
"{shipment_status} and its est. delivery date is {est_delivery_date}."
|
1365 |
msgstr ""
|
1366 |
|
1367 |
-
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:
|
1368 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
1369 |
-
#: includes/customizer/class-wc-failure-email-customizer.php:
|
1370 |
-
#: includes/customizer/class-wc-intransit-email-customizer.php:
|
1371 |
-
#: includes/customizer/class-wc-
|
1372 |
-
#: includes/customizer/class-wc-
|
1373 |
-
#: includes/customizer/class-wc-
|
1374 |
msgid "This will be appended to URL in the email content"
|
1375 |
msgstr ""
|
1376 |
|
1377 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1378 |
msgid ""
|
1379 |
"This will be appended to URL in the email content – e.g. "
|
1380 |
"utm_source=ast&utm_medium=email&utm_campaign=delivered"
|
1381 |
msgstr ""
|
1382 |
|
1383 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:471
|
1384 |
-
msgid ""
|
1385 |
-
"To enable this option, the 'Delivered' order status should be enabled in the "
|
1386 |
-
"AST settings."
|
1387 |
-
msgstr ""
|
1388 |
-
|
1389 |
#: templates/tracking/tracking-form.php:11
|
1390 |
msgid ""
|
1391 |
"To track your order please enter your Order ID in the box below and press "
|
@@ -1393,33 +1391,35 @@ msgid ""
|
|
1393 |
"confirmation email you should have received."
|
1394 |
msgstr ""
|
1395 |
|
1396 |
-
#: includes/
|
1397 |
-
#: includes/views/
|
1398 |
-
#: includes/views/trackship_settings.php:15
|
1399 |
-
#: includes/views/trackship_settings.php:16
|
1400 |
msgid "Tools"
|
1401 |
msgstr ""
|
1402 |
|
1403 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
#: includes/
|
1408 |
-
#:
|
|
|
|
|
|
|
|
|
1409 |
#: templates/myaccount/tracking-info.php:241
|
1410 |
#: templates/tracking/tracking-form.php:16
|
1411 |
msgid "Track"
|
1412 |
msgstr ""
|
1413 |
|
1414 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1415 |
msgid "Track Button"
|
1416 |
msgstr ""
|
1417 |
|
1418 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1419 |
msgid "Track Header"
|
1420 |
msgstr ""
|
1421 |
|
1422 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1423 |
msgid "Track header text"
|
1424 |
msgstr ""
|
1425 |
|
@@ -1428,8 +1428,8 @@ msgstr ""
|
|
1428 |
msgid "Track Shipment"
|
1429 |
msgstr ""
|
1430 |
|
1431 |
-
#: includes/views/
|
1432 |
-
msgid "Trackers Balance"
|
1433 |
msgstr ""
|
1434 |
|
1435 |
#: includes/views/front/layout1_tracking_details.php:4
|
@@ -1444,46 +1444,45 @@ msgstr ""
|
|
1444 |
msgid "Tracking details not found in TrackShip"
|
1445 |
msgstr ""
|
1446 |
|
1447 |
-
#: includes/
|
1448 |
-
|
1449 |
-
msgstr ""
|
1450 |
-
|
1451 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:296
|
1452 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:299
|
1453 |
msgid "Tracking display layout"
|
1454 |
msgstr ""
|
1455 |
|
1456 |
-
#: includes/class-wc-
|
1457 |
-
msgid "Tracking Display My Account"
|
1458 |
-
msgstr ""
|
1459 |
-
|
1460 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:212
|
1461 |
msgid "Tracking Display Position"
|
1462 |
msgstr ""
|
1463 |
|
1464 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1465 |
msgid "Tracking Header text"
|
1466 |
msgstr ""
|
1467 |
|
1468 |
-
#: includes/customizer/class-
|
1469 |
-
|
|
|
|
|
|
|
1470 |
msgid "Tracking info display"
|
1471 |
msgstr ""
|
1472 |
|
1473 |
-
#: includes/views/admin_options_tools.php:
|
1474 |
msgid "Tracking info sent to Trackship for all Orders."
|
1475 |
msgstr ""
|
1476 |
|
1477 |
-
#: includes/class-wc-advanced-shipment-tracking.php:
|
1478 |
#, php-format
|
1479 |
msgid ""
|
1480 |
"Tracking info was deleted for tracking provider %s with tracking number %s"
|
1481 |
msgstr ""
|
1482 |
|
1483 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1484 |
msgid "Tracking Information"
|
1485 |
msgstr ""
|
1486 |
|
|
|
|
|
|
|
|
|
1487 |
#: includes/views/front/tracking_page_header.php:33
|
1488 |
msgid "Tracking information is not available, please try again in a few hour."
|
1489 |
msgstr ""
|
@@ -1493,18 +1492,14 @@ msgid ""
|
|
1493 |
"Tracking information is not available, please try again in a few minutes."
|
1494 |
msgstr ""
|
1495 |
|
1496 |
-
#: includes/class-wc-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:151
|
1501 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:679
|
1502 |
-
#: templates/emails/tracking-info.php:285
|
1503 |
#: templates/myaccount/tracking-info.php:221
|
1504 |
msgid "Tracking Number"
|
1505 |
msgstr ""
|
1506 |
|
1507 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1508 |
msgid "Tracking number header text"
|
1509 |
msgstr ""
|
1510 |
|
@@ -1513,17 +1508,18 @@ msgstr ""
|
|
1513 |
msgid "Tracking number:"
|
1514 |
msgstr ""
|
1515 |
|
1516 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:217
|
1517 |
#: includes/views/admin_tracking_page_settings.php:9
|
1518 |
-
#: includes/views/trackship_settings.php:9
|
1519 |
-
#: includes/views/trackship_settings.php:10
|
1520 |
msgid "Tracking Page"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1524 |
msgid "Tracking Page Layout"
|
1525 |
msgstr ""
|
1526 |
|
|
|
|
|
|
|
|
|
1527 |
#: includes/views/admin_tracking_page_settings.php:92
|
1528 |
msgid "Tracking Widget Border Color"
|
1529 |
msgstr ""
|
@@ -1540,39 +1536,44 @@ msgstr ""
|
|
1540 |
msgid "Tracking Widget Preview"
|
1541 |
msgstr ""
|
1542 |
|
1543 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1544 |
msgid "TrackShip"
|
1545 |
msgstr ""
|
1546 |
|
1547 |
-
#: includes/views/
|
|
|
|
|
|
|
|
|
1548 |
msgid "TrackShip Connection Status"
|
1549 |
msgstr ""
|
1550 |
|
1551 |
-
#: includes/
|
1552 |
-
msgid "TrackShip
|
1553 |
msgstr ""
|
1554 |
|
1555 |
-
#: includes/class-
|
1556 |
-
msgid "TrackShip
|
1557 |
msgstr ""
|
1558 |
|
1559 |
#: includes/views/admin_status_notifications.php:225
|
1560 |
msgid "Trigger Alert"
|
1561 |
msgstr ""
|
1562 |
|
1563 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1564 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1565 |
msgid "Unknown"
|
1566 |
msgstr ""
|
1567 |
|
1568 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1569 |
msgid "Update"
|
1570 |
msgstr ""
|
1571 |
|
1572 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:148
|
1573 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:194
|
1574 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1575 |
-
#: includes/
|
|
|
1576 |
msgid "Updated Tracking"
|
1577 |
msgstr ""
|
1578 |
|
@@ -1583,157 +1584,167 @@ msgid_plural "Updated Tracking <span class=\"count\">(%s)</span>"
|
|
1583 |
msgstr[0] ""
|
1584 |
msgstr[1] ""
|
1585 |
|
1586 |
-
#: includes/views/
|
1587 |
-
|
1588 |
-
msgstr ""
|
1589 |
-
|
1590 |
-
#: includes/views/admin_options_shipping_provider.php:76
|
1591 |
-
#: includes/views/admin_options_shipping_provider.php:126
|
1592 |
msgid "Upload"
|
1593 |
msgstr ""
|
1594 |
|
1595 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1596 |
msgid "Upload a CSV file from your computer:"
|
1597 |
msgstr ""
|
1598 |
|
1599 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1600 |
msgid "Upload again"
|
1601 |
msgstr ""
|
1602 |
|
1603 |
-
#: includes/views/
|
1604 |
-
msgid ""
|
1605 |
-
"Use a customizer with a preview to customize the tracking info display on "
|
1606 |
-
"customer order emails and my-account."
|
1607 |
-
msgstr ""
|
1608 |
-
|
1609 |
-
#: includes/views/admin_options_bulk_upload.php:12
|
1610 |
msgid ""
|
1611 |
"Use our CSV Import Tool to bulk Import tracking info to orders from a CSV "
|
1612 |
"file"
|
1613 |
msgstr ""
|
1614 |
|
1615 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1616 |
msgid "Use the tracking page in the customer email/my account tracking link"
|
1617 |
msgstr ""
|
1618 |
|
1619 |
-
#: includes/customizer/class-wc-tracking-info-customizer.php:
|
1620 |
msgid "Use tracking number as a link"
|
1621 |
msgstr ""
|
1622 |
|
1623 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
1624 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
1625 |
-
#: includes/class-wc-advanced-shipment-tracking-settings.php:
|
1626 |
-
#: includes/views/admin_options_bulk_upload.php:
|
1627 |
msgid "view details"
|
1628 |
msgstr ""
|
1629 |
|
1630 |
-
#: includes/
|
1631 |
-
msgid "View more on TrackShip"
|
1632 |
-
msgstr ""
|
1633 |
-
|
1634 |
-
#: includes/views/admin_options_bulk_upload.php:108
|
1635 |
msgid "View Orders"
|
1636 |
msgstr ""
|
1637 |
|
1638 |
-
#: includes/
|
1639 |
-
|
1640 |
-
msgid "Watch Video"
|
1641 |
msgstr ""
|
1642 |
|
1643 |
-
#: woocommerce-advanced-shipment-tracking.php:
|
1644 |
#, php-format
|
1645 |
msgid ""
|
1646 |
"We detected %s orders that use the Delivered order status, You can reassign "
|
1647 |
"these orders to a different status"
|
1648 |
msgstr ""
|
1649 |
|
1650 |
-
#: woocommerce-advanced-shipment-tracking.php:
|
1651 |
#, php-format
|
1652 |
msgid ""
|
1653 |
"We detected %s orders that use the Partially Shipped order status, You can "
|
1654 |
"reassign these orders to a different status"
|
1655 |
msgstr ""
|
1656 |
|
1657 |
-
#: woocommerce-advanced-shipment-tracking.php:
|
1658 |
#, php-format
|
1659 |
msgid ""
|
1660 |
"We detected %s orders that use the Updated Tracking order status, You can "
|
1661 |
"reassign these orders to a different status"
|
1662 |
msgstr ""
|
1663 |
|
1664 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1665 |
msgid "Wrong Shipping Provider"
|
1666 |
msgstr ""
|
1667 |
|
1668 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1669 |
msgid ""
|
1670 |
"You already have delivered order status email enabled, to enable this email "
|
1671 |
"you'll need to disable the delivered order status email in settings."
|
1672 |
msgstr ""
|
1673 |
|
1674 |
-
#: includes/views/admin_options_tools.php:
|
1675 |
msgid ""
|
1676 |
"You can send all your orders from the last 30 days to get shipment status "
|
1677 |
"from TrackShip:"
|
1678 |
msgstr ""
|
1679 |
|
1680 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1681 |
msgid "You can upload only csv file."
|
1682 |
msgstr ""
|
1683 |
|
1684 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1685 |
-
#: includes/views/admin_options_shipping_provider.php:
|
1686 |
msgid ""
|
1687 |
"You can use the variables %number%, %postal_code% and %country_code% in the "
|
1688 |
"URL, for more info, check our "
|
1689 |
msgstr ""
|
1690 |
|
1691 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1692 |
#, php-format
|
1693 |
msgid "You did not create any %s shipping providers yet."
|
1694 |
msgstr ""
|
1695 |
|
1696 |
-
#: includes/class-wc-advanced-shipment-tracking-admin.php:
|
1697 |
-
#: includes/views/admin_options_shipping_provider.php:45
|
1698 |
#, php-format
|
1699 |
msgid "You don't have any %s shipping providers."
|
1700 |
msgstr ""
|
1701 |
|
1702 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1703 |
#, php-format
|
1704 |
msgid "You got %s %s orders with shipment status “TrackShip connection issue”"
|
1705 |
msgstr ""
|
1706 |
|
1707 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1708 |
#, php-format
|
1709 |
msgid "You got %s %s orders with shipment status “TrackShip balance is 0”"
|
1710 |
msgstr ""
|
1711 |
|
1712 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
1713 |
#, php-format
|
1714 |
msgid ""
|
1715 |
"You got %s %s orders with tracking info that were not sent to track on "
|
1716 |
"TrackShip"
|
1717 |
msgstr ""
|
1718 |
|
1719 |
-
#: includes/views/admin_trackship_dashboard.php:
|
1720 |
#, php-format
|
1721 |
msgid ""
|
1722 |
"You have %s Shipped Orders from the last 30 days that you can bulk send to "
|
1723 |
"<a href=\"javascript:void(0);\" class=\"tool_link\">Get Shipment Status</a>"
|
1724 |
msgstr ""
|
1725 |
|
1726 |
-
#: includes/class-wc-advanced-shipment-tracking-trackship.php:
|
|
|
1727 |
msgid ""
|
1728 |
"You must add the shortcode [wcast-track-order] to the selected page in order "
|
1729 |
"for the tracking page to work."
|
1730 |
msgstr ""
|
1731 |
|
1732 |
-
#: includes/customizer/class-wc-delivered-email-customizer.php:
|
1733 |
msgid "Your order #{order_number} has been delivered"
|
1734 |
msgstr ""
|
1735 |
|
1736 |
-
#: includes/customizer/class-wc-returntosender-email-customizer.php:
|
1737 |
msgid "Your order #{order_number} has returned to sender"
|
1738 |
msgstr ""
|
1739 |
|
@@ -1749,16 +1760,15 @@ msgstr ""
|
|
1749 |
msgid "Your order #{order_number} is in transit"
|
1750 |
msgstr ""
|
1751 |
|
1752 |
-
#: includes/customizer/class-wc-onhold-email-customizer.php:
|
1753 |
msgid "Your order #{order_number} is on hold"
|
1754 |
msgstr ""
|
1755 |
|
1756 |
-
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:
|
1757 |
msgid "Your order #{order_number} is out for delivery"
|
1758 |
msgstr ""
|
1759 |
|
1760 |
-
#: includes/customizer/class-wc-email-customizer.php:
|
1761 |
-
#: includes/emails/class-shipment-delivered-email.php:94
|
1762 |
msgid "Your {site_title} order is now delivered"
|
1763 |
msgstr ""
|
1764 |
|
@@ -1766,6 +1776,10 @@ msgstr ""
|
|
1766 |
msgid "Your {site_title} order is now partially shipped"
|
1767 |
msgstr ""
|
1768 |
|
1769 |
-
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:
|
1770 |
msgid "Your {site_title} order is now updated tracking"
|
1771 |
msgstr ""
|
|
|
|
|
|
|
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: WooCommerce Advanced Shipment Tracking\n"
|
5 |
"Report-Msgid-Bugs-To: \n"
|
6 |
+
"POT-Creation-Date: 2021-01-25 08:17+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 |
+
#: includes/views/admin_options_shipping_provider.php:77
|
19 |
+
#: includes/views/admin_options_shipping_provider.php:131
|
20 |
#, php-format
|
21 |
msgid "<a href=\"%s\" target=\"blank\">documentation</a>"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1531
|
25 |
+
msgid "Actions"
|
|
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1310
|
29 |
+
msgid "Active Shipments"
|
|
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:368
|
33 |
+
#: includes/views/admin_tracking_page_settings.php:71
|
34 |
+
msgid "Add a link to the Shipping provider page"
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: includes/views/admin_options_shipping_provider.php:107
|
38 |
+
msgid "Add API Name alias"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: includes/views/admin_options_shipping_provider.php:104
|
42 |
+
msgid ""
|
43 |
+
"Add API name aliases to map Shipping providers names with the provider names "
|
44 |
+
"that are updated in the shipment tracking API by external shipping services"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1519
|
48 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1618
|
49 |
+
#: includes/views/admin_options_shipping_provider.php:80
|
50 |
msgid "Add Custom Provider"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: includes/views/admin_options_shipping_provider.php:42
|
54 |
msgid "Add Custom Shipping Provider"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#. Description of the plugin
|
58 |
+
msgid ""
|
59 |
+
"Add shipment tracking information to your WooCommerce orders and provide "
|
60 |
+
"customers with an easy way to track their orders. Shipment tracking Info "
|
61 |
+
"will appear in customers accounts (in the order panel) and in WooCommerce "
|
62 |
+
"order complete email."
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:698
|
66 |
+
msgid "add the [wcast-track-order] shortcode in the selected page."
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1438
|
70 |
msgid "Add Tracking"
|
71 |
msgstr ""
|
72 |
|
74 |
msgid "Add Tracking - order\t"
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:884
|
78 |
msgid "Add Tracking action "
|
79 |
msgstr ""
|
80 |
|
82 |
msgid "Add Tracking Info"
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:383
|
86 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:387
|
87 |
+
#: includes/views/admin_options_addons.php:124
|
|
|
|
|
|
|
88 |
msgid "Add-ons"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:272
|
92 |
msgid "Additional text after header"
|
93 |
msgstr ""
|
94 |
|
96 |
msgid "Admin Notifications"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#. Name of the plugin
|
100 |
+
msgid "Advanced Shipment Tracking for WooCommerce"
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:214
|
104 |
msgid "After Order Details"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1571
|
108 |
+
msgid "API aliases"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:904
|
112 |
msgid "API Date Format"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: includes/views/admin_options_shipping_provider.php:106
|
|
|
116 |
msgid "API Name"
|
117 |
msgstr ""
|
118 |
|
120 |
msgid "As it Happens"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: includes/views/trackship_settings.php:118
|
124 |
msgid ""
|
125 |
+
"Automatically update the order status to Delivered when all shipments are "
|
126 |
+
"Delivered"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: includes/views/trackship_settings.php:76
|
130 |
msgid "Automation"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:779
|
134 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:858
|
|
|
135 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:126
|
136 |
+
#: includes/customizer/class-wc-email-customizer.php:187
|
137 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:193
|
138 |
#: includes/views/admin_status_notifications.php:82
|
139 |
msgid "Available For Pickup"
|
140 |
msgstr ""
|
141 |
|
|
|
142 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:205
|
143 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:229
|
144 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:274
|
145 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:203
|
146 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:227
|
147 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:272
|
148 |
+
#: includes/customizer/class-wc-email-customizer.php:250
|
149 |
+
#: includes/customizer/class-wc-email-customizer.php:274
|
150 |
+
#: includes/customizer/class-wc-email-customizer.php:319
|
151 |
#: includes/customizer/class-wc-failure-email-customizer.php:204
|
152 |
#: includes/customizer/class-wc-failure-email-customizer.php:228
|
153 |
#: includes/customizer/class-wc-failure-email-customizer.php:273
|
154 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:256
|
155 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:280
|
156 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:325
|
157 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:206
|
158 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:230
|
159 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:275
|
160 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:205
|
161 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:229
|
162 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:274
|
163 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:249
|
164 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:273
|
165 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:298
|
166 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:318
|
167 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:203
|
168 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:227
|
169 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:271
|
170 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:360
|
171 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:203
|
172 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:227
|
173 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:252
|
174 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:272
|
|
|
|
|
175 |
#: includes/views/admin_status_notifications.php:212
|
176 |
msgid "Available variables:"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1303
|
180 |
+
msgid "Avg Shipment Length"
|
181 |
+
msgstr ""
|
182 |
+
|
183 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:213
|
184 |
msgid "Before Order Details"
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:564
|
188 |
msgid "Border color"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:582
|
192 |
msgid "Border size"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:434
|
196 |
msgid "Bottom border color"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:995
|
|
|
|
|
|
|
|
|
200 |
msgid "Button color"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:1013
|
204 |
msgid "Button font color"
|
205 |
msgstr ""
|
206 |
|
208 |
msgid "Cannot create existing order shipment tracking."
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:784
|
212 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:879
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
msgid "Carrier Unsupported"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1474
|
217 |
msgid "Change order status to"
|
218 |
msgstr ""
|
219 |
|
221 |
msgid "Change status to shipped"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:905
|
225 |
msgid "Choose for which Order status to display"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:885
|
229 |
msgid "Choose for which Order status to display Add Tracking action button"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:877
|
233 |
msgid "Choose on which order emails to include the shipment tracking info"
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: includes/views/admin_options_bulk_upload.php:33
|
237 |
msgid "Choose the Shipped Date format"
|
238 |
msgstr ""
|
239 |
|
|
|
|
|
|
|
|
|
240 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:420
|
241 |
msgid "Completed"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:553
|
245 |
+
#: includes/views/trackship_settings.php:18
|
246 |
msgid "Connected"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: includes/views/trackship_settings.php:16
|
250 |
+
msgid "Connection Status"
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:339
|
254 |
msgid "Content"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:834
|
258 |
msgid "Content Background color"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:397
|
262 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:852
|
263 |
msgid "Content font color"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:378
|
267 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:870
|
268 |
msgid "Content font size"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:912
|
272 |
msgid "Content font weight"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:889
|
276 |
msgid "Content line height"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: includes/views/admin_options_bulk_upload.php:56
|
280 |
msgid "Continue"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: includes/views/admin_options_shipping_provider.php:56
|
284 |
+
#: includes/views/admin_options_shipping_provider.php:111
|
285 |
msgid "Country"
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:365
|
289 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:369
|
|
|
|
|
|
|
|
|
290 |
msgid "CSV Import"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: includes/views/admin_options_shipping_provider.php:104
|
294 |
+
msgid "Custom API name"
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#: includes/views/admin_options_shipping_provider.php:52
|
298 |
+
msgid "Custom Display Name"
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: includes/views/admin_options_shipping_provider.php:100
|
302 |
msgid "Custom display name"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: includes/customizer/class-wcast-customizer.php:46
|
306 |
msgid "Custom order status email"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: includes/views/admin_options_shipping_provider.php:49
|
310 |
+
msgid "Custom Provider"
|
|
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: includes/views/admin_options_shipping_provider.php:73
|
314 |
+
#: includes/views/admin_options_shipping_provider.php:127
|
315 |
+
msgid "Custom URL"
|
316 |
+
msgstr ""
|
317 |
+
|
318 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:632
|
319 |
+
msgid "Customize"
|
320 |
+
msgstr ""
|
321 |
+
|
322 |
+
#: includes/views/admin_options_settings.php:46
|
323 |
+
msgid ""
|
324 |
+
"Customize how the Tracking information display on the order emails and my-"
|
325 |
+
"account"
|
326 |
msgstr ""
|
327 |
|
328 |
#: includes/views/admin_status_notifications.php:234
|
329 |
msgid "Daily Digest on"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: includes/views/admin_options_osm.php:48
|
333 |
+
#: includes/views/admin_options_osm.php:88
|
334 |
+
#: includes/views/trackship_settings.php:106
|
335 |
msgid "Dark Font"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:229
|
339 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:316
|
340 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:153
|
341 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:215
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
msgid "Data saved successfully."
|
343 |
msgstr ""
|
344 |
|
347 |
msgid "Date shipped:"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1305
|
351 |
+
msgid "days"
|
|
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1596
|
355 |
+
msgid "default"
|
356 |
+
msgstr ""
|
357 |
+
|
358 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:738
|
359 |
msgid "Default \"mark as <span class=\"shipped_label\">completed</span>\""
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:734
|
363 |
msgid "Default \"mark as <span class=\"shipped_label\">shipped</span>\""
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1462
|
367 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:134
|
368 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:179
|
369 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:781
|
370 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:852
|
371 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1314
|
372 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:126
|
373 |
+
#: includes/customizer/class-wc-email-customizer.php:189
|
374 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:195
|
375 |
+
#: includes/views/admin_status_notifications.php:108
|
376 |
+
#: includes/views/trackship_settings.php:97
|
|
|
377 |
msgid "Delivered"
|
378 |
msgstr ""
|
379 |
|
384 |
msgstr[0] ""
|
385 |
msgstr[1] ""
|
386 |
|
|
|
|
|
|
|
|
|
387 |
#: includes/views/front/layout1_tracking_details.php:8
|
388 |
msgid "Destination Details"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: includes/customizer/class-wc-email-customizer.php:393
|
392 |
msgid "Display Billing Address"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1528
|
396 |
msgid "Display Name"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: includes/customizer/class-wc-email-customizer.php:355
|
400 |
msgid "Display order details"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:423
|
404 |
+
msgid "Display shipment status filter on orders admin"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: includes/customizer/class-wc-email-customizer.php:374
|
408 |
msgid "Display Shipping Address"
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:490
|
412 |
msgid "Display shipping provider image"
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:471
|
416 |
msgid "Display shipping provider name"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:311
|
420 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:309
|
421 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:310
|
422 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:362
|
423 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:312
|
424 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:311
|
425 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:308
|
426 |
+
msgid "Display the shipping address"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:292
|
430 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:290
|
431 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:291
|
432 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:343
|
433 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:293
|
434 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:292
|
435 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:289
|
436 |
+
msgid "Display the Shipping items"
|
437 |
+
msgstr ""
|
438 |
+
|
439 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:892
|
440 |
+
msgid "Display Track button on the Orders history list in customer accounts"
|
441 |
+
msgstr ""
|
442 |
+
|
443 |
+
#: includes/customizer/class-wc-email-customizer.php:337
|
444 |
msgid "Display tracking details"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:297
|
448 |
+
msgid "Docs"
|
|
|
|
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: includes/views/admin_options_bulk_upload.php:118
|
452 |
msgid "Download sample csv"
|
453 |
msgstr ""
|
454 |
|
457 |
msgstr ""
|
458 |
|
459 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:187
|
460 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:185
|
461 |
+
#: includes/customizer/class-wc-email-customizer.php:232
|
462 |
#: includes/customizer/class-wc-failure-email-customizer.php:186
|
463 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:238
|
464 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:188
|
465 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:187
|
466 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:185
|
467 |
msgid "E.g. {customer.email}, admin@example.org"
|
468 |
msgstr ""
|
469 |
|
470 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1590
|
471 |
+
msgid "edit"
|
472 |
msgstr ""
|
473 |
|
474 |
+
#: includes/views/admin_options_shipping_provider.php:90
|
475 |
msgid "Edit Shipping Provider"
|
476 |
msgstr ""
|
477 |
|
478 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:252
|
479 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:250
|
480 |
+
#: includes/customizer/class-wc-email-customizer.php:298
|
481 |
#: includes/customizer/class-wc-failure-email-customizer.php:251
|
482 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:303
|
483 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:253
|
484 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:252
|
485 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:297
|
486 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:250
|
487 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:251
|
488 |
#: includes/views/admin_status_notifications.php:206
|
489 |
msgid "Email content"
|
490 |
msgstr ""
|
491 |
|
492 |
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:204
|
493 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:202
|
494 |
#: includes/customizer/class-wc-failure-email-customizer.php:203
|
495 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:255
|
496 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:205
|
497 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:204
|
498 |
msgid "Email Subject"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: includes/customizer/class-wc-email-customizer.php:174
|
502 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:183
|
503 |
msgid "Email Type"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:430
|
507 |
+
msgid "Enable a tracking page"
|
508 |
+
msgstr ""
|
509 |
+
|
510 |
#: includes/views/admin_tracking_page_settings.php:10
|
511 |
msgid "Enable a tracking page on your store"
|
512 |
msgstr ""
|
515 |
msgid "Enable Available For Pickup email"
|
516 |
msgstr ""
|
517 |
|
518 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:159
|
|
|
|
|
|
|
|
|
519 |
msgid "Enable Delivered email"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: includes/customizer/class-wc-email-customizer.php:206
|
523 |
msgid "Enable Delivered order status email"
|
524 |
msgstr ""
|
525 |
|
527 |
msgid "Enable Failed Attempt email"
|
528 |
msgstr ""
|
529 |
|
530 |
+
#: includes/customizer/class-wc-email-customizer.php:412
|
531 |
msgid "Enable Google Analytics tracking"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:212
|
535 |
msgid "Enable In Transit email"
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:162
|
539 |
msgid "Enable On Hold email"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:161
|
543 |
msgid "Enable Out For Delivery email"
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:208
|
547 |
msgid "Enable Partially Shipped order status email"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:159
|
551 |
msgid "Enable Return To Sender email"
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:253
|
555 |
+
msgid "Enable Tracking # link to Carrier"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:161
|
559 |
msgid "Enable Updated Tracking order status email"
|
560 |
msgstr ""
|
561 |
|
563 |
msgid "Est. Delivery Date"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:214
|
567 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:217
|
568 |
+
msgid "Events Display Type"
|
569 |
+
msgstr ""
|
570 |
+
|
571 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:867
|
572 |
msgid "Exception"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:782
|
576 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:864
|
577 |
+
#: includes/customizer/class-wc-email-customizer.php:190
|
578 |
#: includes/customizer/class-wc-failure-email-customizer.php:126
|
579 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:196
|
580 |
+
#: includes/views/admin_status_notifications.php:124
|
581 |
msgid "Failed Attempt"
|
582 |
msgstr ""
|
583 |
|
584 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:791
|
585 |
msgid "Filter by shipment status"
|
586 |
msgstr ""
|
587 |
|
588 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1866
|
589 |
msgid "Filter by shipping provider"
|
590 |
msgstr ""
|
591 |
|
594 |
msgid "Found in your order confirmation email."
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: includes/views/admin_options_addons.php:146
|
598 |
+
#: includes/views/admin_options_addons.php:168
|
599 |
+
#: includes/views/admin_options_addons.php:196
|
600 |
+
msgid "From"
|
601 |
+
msgstr ""
|
602 |
+
|
603 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:489
|
604 |
+
msgid "Fulfill Order"
|
605 |
+
msgstr ""
|
606 |
+
|
607 |
+
#: includes/views/admin_options_settings.php:15
|
608 |
+
#: includes/views/trackship_settings.php:59
|
609 |
msgid "General Settings"
|
610 |
msgstr ""
|
611 |
|
612 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:753
|
613 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1019
|
614 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1028
|
615 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1037
|
616 |
msgid "Get Shipment Status"
|
617 |
msgstr ""
|
618 |
|
619 |
+
#: includes/views/admin_options_shipping_provider.php:59
|
620 |
+
#: includes/views/admin_options_shipping_provider.php:114
|
621 |
msgid "Global"
|
622 |
msgstr ""
|
623 |
|
624 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:329
|
625 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:327
|
626 |
+
#: includes/customizer/class-wc-email-customizer.php:431
|
627 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:328
|
628 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:380
|
629 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:330
|
630 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:329
|
631 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:326
|
632 |
msgid "Google Analytics link tracking"
|
633 |
msgstr ""
|
634 |
|
635 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:758
|
636 |
msgid "Headers background color"
|
637 |
msgstr ""
|
638 |
|
639 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:776
|
640 |
msgid "Headers font color"
|
641 |
msgstr ""
|
642 |
|
643 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:739
|
644 |
msgid "Headers font size"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:794
|
648 |
msgid "Headers font weight"
|
649 |
msgstr ""
|
650 |
|
651 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:119
|
652 |
msgid ""
|
653 |
"Hi there. we thought you'd like to know that the shipment tracking for your "
|
654 |
"recent order from {site_title} has been updated."
|
655 |
msgstr ""
|
656 |
|
657 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:127
|
658 |
+
#: includes/customizer/class-wc-email-customizer.php:120
|
659 |
msgid ""
|
660 |
"Hi there. we thought you'd like to know that your recent order from "
|
661 |
"{site_title} has been Delivered."
|
667 |
"{site_title} has been partially shipped."
|
668 |
msgstr ""
|
669 |
|
670 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:126
|
671 |
msgid ""
|
672 |
"Hi there. we thought you'd like to know that your recent order from "
|
673 |
"{site_title} has been returned to sender."
|
691 |
"{site_title} is in transit"
|
692 |
msgstr ""
|
693 |
|
694 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:129
|
695 |
msgid ""
|
696 |
"Hi there. we thought you'd like to know that your recent order from "
|
697 |
"{site_title} is on hold"
|
698 |
msgstr ""
|
699 |
|
700 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:128
|
701 |
msgid ""
|
702 |
"Hi there. we thought you'd like to know that your recent order from "
|
703 |
"{site_title} is out for delivery."
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:751
|
707 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:766
|
708 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:781
|
709 |
msgid "hide details"
|
710 |
msgstr ""
|
711 |
|
712 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:374
|
713 |
#: includes/views/admin_tracking_page_settings.php:76
|
714 |
msgid "Hide Shipping Provider Image"
|
715 |
msgstr ""
|
716 |
|
717 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:649
|
718 |
msgid "Hide Table Headers"
|
719 |
msgstr ""
|
720 |
|
721 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:509
|
722 |
msgid "Hide the shipped date"
|
723 |
msgstr ""
|
724 |
|
725 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:237
|
726 |
+
msgid "Hide the Shipping Provider logo"
|
727 |
+
msgstr ""
|
728 |
+
|
729 |
#: includes/views/admin_tracking_page_settings.php:81
|
730 |
msgid "Hide tracking event details"
|
731 |
msgstr ""
|
732 |
|
733 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:222
|
734 |
+
msgid "Hide tracking events"
|
735 |
+
msgstr ""
|
736 |
+
|
737 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:380
|
738 |
msgid "Hide tracking events details"
|
739 |
msgstr ""
|
740 |
|
741 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:230
|
742 |
msgid "Hide Tracking Header"
|
743 |
msgstr ""
|
744 |
|
745 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:269
|
746 |
+
msgid "Hide TrackShip Branding"
|
747 |
msgstr ""
|
748 |
|
749 |
+
#: includes/views/admin_options_bulk_upload.php:119
|
750 |
+
msgid "How to import tracking number from CSV files?"
|
751 |
+
msgstr ""
|
752 |
+
|
753 |
+
#. Author URI of the plugin
|
754 |
+
msgid "https://www.zorem.com"
|
755 |
+
msgstr ""
|
756 |
+
|
757 |
+
#. URI of the plugin
|
758 |
+
msgid "https://www.zorem.com/products/woocommerce-advanced-shipment-tracking/"
|
759 |
msgstr ""
|
760 |
|
761 |
+
#: includes/views/admin_options_bulk_upload.php:75
|
762 |
msgid "Import in Progress"
|
763 |
msgstr ""
|
764 |
|
765 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:778
|
766 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:843
|
767 |
+
#: includes/customizer/class-wc-email-customizer.php:184
|
768 |
#: includes/customizer/class-wc-intransit-email-customizer.php:129
|
769 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:190
|
770 |
+
#: includes/views/admin_status_notifications.php:43
|
771 |
msgid "In Transit"
|
772 |
msgstr ""
|
773 |
|
775 |
msgid "Invalid order ID."
|
776 |
msgstr ""
|
777 |
|
778 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:786
|
779 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:876
|
780 |
msgid "Invalid Tracking Number"
|
781 |
msgstr ""
|
782 |
|
783 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:882
|
784 |
msgid "Invalid User Key"
|
785 |
msgstr ""
|
786 |
|
787 |
+
#: includes/views/admin_options_bulk_upload.php:47
|
788 |
msgid ""
|
789 |
"Keep unchecked for the tracking info to be added to any existing tracking "
|
790 |
"info added to the orders."
|
803 |
msgid "Late shipment for order #{order_number}"
|
804 |
msgstr ""
|
805 |
|
|
|
806 |
#: includes/views/admin_status_notifications.php:155
|
807 |
msgid "Late Shipments"
|
808 |
msgstr ""
|
809 |
|
810 |
+
#: includes/views/admin_options_settings.php:47
|
811 |
msgid "Launch Customizer"
|
812 |
msgstr ""
|
813 |
|
814 |
+
#: includes/views/admin_options_addons.php:127
|
815 |
msgid "License"
|
816 |
msgstr ""
|
817 |
|
818 |
+
#: includes/views/admin_options_osm.php:47
|
819 |
+
#: includes/views/admin_options_osm.php:87
|
820 |
+
#: includes/views/trackship_settings.php:105
|
821 |
msgid "Light Font"
|
822 |
msgstr ""
|
823 |
|
824 |
+
#: includes/views/admin_options_shipping_provider.php:67
|
825 |
+
#: includes/views/admin_options_shipping_provider.php:121
|
826 |
+
msgid "Logo image"
|
827 |
+
msgstr ""
|
828 |
+
|
829 |
#: includes/class-wc-advanced-shipment-tracking.php:316
|
830 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:419
|
831 |
msgid "Mark as Completed?"
|
832 |
msgstr ""
|
833 |
|
834 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1447
|
835 |
msgid "Mark as Shipped"
|
836 |
msgstr ""
|
837 |
|
840 |
msgid "Mark as Shipped?"
|
841 |
msgstr ""
|
842 |
|
843 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1420
|
844 |
msgid "Mark order as delivered"
|
845 |
msgstr ""
|
846 |
|
847 |
#: includes/class-wc-advanced-shipment-tracking.php:397
|
848 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:473
|
849 |
msgid "Mark order as:"
|
850 |
msgstr ""
|
851 |
|
852 |
+
#: includes/customizer/class-wc-email-customizer.php:156
|
853 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:165
|
854 |
msgid "Mockup Order"
|
855 |
msgstr ""
|
856 |
|
857 |
+
#: includes/customizer/class-wcast-customizer.php:389
|
858 |
msgid "Mockup order"
|
859 |
msgstr ""
|
860 |
|
861 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:698
|
862 |
#: includes/views/admin_tracking_page_settings.php:41
|
863 |
msgid "more info"
|
864 |
msgstr ""
|
865 |
|
866 |
+
#: includes/views/admin_options_shipping_provider.php:74
|
867 |
+
msgid "My White Label Provider URL"
|
868 |
+
msgstr ""
|
869 |
+
|
870 |
#: includes/views/admin_tracking_page_settings.php:41
|
871 |
msgid ""
|
872 |
"Note - If you select a different page than the Shipment Tracking page, add "
|
873 |
"the [wcast-track-order] shortcode to the selected page content."
|
874 |
msgstr ""
|
875 |
|
876 |
+
#: includes/views/admin_trackship_dashboard.php:31
|
|
|
|
|
877 |
msgid "Notifications"
|
878 |
msgstr ""
|
879 |
|
880 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:846
|
881 |
+
#: includes/customizer/class-wc-email-customizer.php:185
|
882 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:191
|
883 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:128
|
884 |
+
#: includes/views/admin_status_notifications.php:56
|
885 |
msgid "On Hold"
|
886 |
msgstr ""
|
887 |
|
888 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:898
|
889 |
msgid "Open the track link in a new tab"
|
890 |
msgstr ""
|
891 |
|
|
|
|
|
|
|
|
|
|
|
|
|
892 |
#: templates/tracking/tracking-form.php:13
|
893 |
msgid "Order Email"
|
894 |
msgstr ""
|
895 |
|
896 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:876
|
897 |
msgid "Order Email Display"
|
898 |
msgstr ""
|
899 |
|
908 |
msgid "Order number: %s"
|
909 |
msgstr ""
|
910 |
|
911 |
+
#: includes/views/admin_options_settings.php:57
|
912 |
+
msgid "Order Status Manager"
|
913 |
msgstr ""
|
914 |
|
915 |
+
#: includes/class-wc-advanced-shipment-tracking.php:1169
|
916 |
+
#: includes/class-wc-advanced-shipment-tracking.php:1255
|
917 |
#, php-format
|
918 |
msgid "Order was shipped with %s and tracking number is: %s"
|
919 |
msgstr ""
|
922 |
msgid "Origin Details"
|
923 |
msgstr ""
|
924 |
|
925 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:693
|
926 |
#: includes/views/admin_tracking_page_settings.php:36
|
927 |
msgid "Other"
|
928 |
msgstr ""
|
929 |
|
930 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:780
|
931 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:855
|
932 |
+
#: includes/customizer/class-wc-email-customizer.php:188
|
933 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:194
|
934 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:127
|
935 |
msgid "Out For Delivery"
|
936 |
msgstr ""
|
937 |
|
938 |
+
#: includes/views/admin_status_notifications.php:95
|
939 |
msgid "Out For delivery"
|
940 |
msgstr ""
|
941 |
|
942 |
#: includes/class-wc-advanced-shipment-tracking.php:400
|
943 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:476
|
944 |
msgid "Partial Shipped"
|
945 |
msgstr ""
|
946 |
|
947 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:162
|
948 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:208
|
949 |
+
#: includes/customizer/class-wc-email-customizer.php:182
|
950 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:191
|
951 |
+
#: includes/views/admin_options_osm.php:27
|
952 |
msgid "Partially Shipped"
|
953 |
msgstr ""
|
954 |
|
959 |
msgstr[0] ""
|
960 |
msgstr[1] ""
|
961 |
|
962 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:775
|
963 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:873
|
964 |
msgid "Pending TrackShip"
|
965 |
msgstr ""
|
966 |
|
971 |
"for WooCommerce!"
|
972 |
msgstr ""
|
973 |
|
974 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:191
|
975 |
msgid "Please select a order..."
|
976 |
msgstr ""
|
977 |
|
978 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:394
|
979 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:401
|
980 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:392
|
981 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:399
|
982 |
+
#: includes/customizer/class-wc-email-customizer.php:479
|
983 |
+
#: includes/customizer/class-wc-email-customizer.php:487
|
984 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:393
|
985 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:401
|
986 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:444
|
987 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:452
|
988 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:394
|
989 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:402
|
990 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:394
|
991 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:402
|
992 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:360
|
993 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:368
|
994 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:394
|
995 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:402
|
996 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:313
|
997 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:321
|
998 |
msgid "Please select order to preview."
|
999 |
msgstr ""
|
1000 |
|
1001 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:233
|
1002 |
msgid "Please upload a valid CSV file."
|
1003 |
msgstr ""
|
1004 |
|
1005 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:777
|
1006 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:849
|
1007 |
msgid "Pre Transit"
|
1008 |
msgstr ""
|
1009 |
|
1011 |
msgid "Preview"
|
1012 |
msgstr ""
|
1013 |
|
1014 |
+
#: includes/customizer/class-wc-email-customizer.php:152
|
1015 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:160
|
1016 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:161
|
1017 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:187
|
1018 |
msgid "Preview order"
|
1019 |
msgstr ""
|
1020 |
|
1027 |
msgid "Product Code:"
|
1028 |
msgstr ""
|
1029 |
|
1030 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:166
|
1031 |
+
msgid "Progress Bar"
|
1032 |
+
msgstr ""
|
1033 |
+
|
1034 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:147
|
1035 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:675
|
1036 |
+
#: templates/emails/tracking-info.php:265
|
1037 |
#: templates/myaccount/tracking-info.php:211
|
1038 |
msgid "Provider"
|
1039 |
msgstr ""
|
1040 |
|
1041 |
+
#: includes/views/admin_options_shipping_provider.php:48
|
1042 |
+
#: includes/views/admin_options_shipping_provider.php:96
|
1043 |
+
#: templates/emails/tracking-info.php:270
|
1044 |
#: templates/myaccount/tracking-info.php:216
|
1045 |
msgid "Provider Name"
|
1046 |
msgstr ""
|
1047 |
|
1048 |
+
#: includes/views/admin_options_shipping_provider.php:153
|
1049 |
msgid "Providers Added"
|
1050 |
msgstr ""
|
1051 |
|
1052 |
+
#: includes/views/admin_options_shipping_provider.php:155
|
1053 |
msgid "Providers Deleted"
|
1054 |
msgstr ""
|
1055 |
|
1056 |
+
#: includes/views/admin_options_shipping_provider.php:154
|
1057 |
msgid "Providers Updated"
|
1058 |
msgstr ""
|
1059 |
|
1060 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:230
|
1061 |
msgid "Really delete this entry? This will not be undo."
|
1062 |
msgstr ""
|
1063 |
|
1064 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:386
|
1065 |
#: includes/views/admin_tracking_page_settings.php:86
|
1066 |
msgid "Remove TrackShip branding"
|
1067 |
msgstr ""
|
1068 |
|
1069 |
+
#: includes/views/admin_options_osm.php:12
|
1070 |
msgid "Rename the “Completed” Order status label to “Shipped”"
|
1071 |
msgstr ""
|
1072 |
|
1073 |
+
#: includes/views/admin_options_bulk_upload.php:47
|
1074 |
msgid "Replace tracking information?"
|
1075 |
msgstr ""
|
1076 |
|
1077 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:505
|
1078 |
msgid "Resend delivered order notification"
|
1079 |
msgstr ""
|
1080 |
|
1081 |
+
#: includes/views/admin_options_shipping_provider.php:137
|
1082 |
msgid "Reset"
|
1083 |
msgstr ""
|
1084 |
|
1085 |
+
#: includes/views/admin_options_shipping_provider.php:159
|
1086 |
msgid ""
|
1087 |
"Reset providers database, it will reset all your shipping provider database"
|
1088 |
msgstr ""
|
1089 |
|
1090 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:785
|
1091 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:861
|
1092 |
+
#: includes/customizer/class-wc-email-customizer.php:186
|
1093 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:192
|
1094 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:125
|
1095 |
+
#: includes/views/admin_status_notifications.php:69
|
1096 |
msgid "Return To Sender"
|
1097 |
msgstr ""
|
1098 |
|
1099 |
+
#: includes/views/admin_options_settings.php:19
|
|
|
|
|
1100 |
#: includes/views/admin_status_notifications.php:245
|
1101 |
+
#: includes/views/admin_tracking_page_settings.php:104
|
1102 |
msgid "Save Changes"
|
1103 |
msgstr ""
|
1104 |
|
1105 |
#: includes/class-wc-advanced-shipment-tracking.php:416
|
|
|
1106 |
msgid "Save Tracking"
|
1107 |
msgstr ""
|
1108 |
|
1109 |
+
#: includes/views/admin_options_shipping_provider.php:24
|
1110 |
msgid "Search by provider / country"
|
1111 |
msgstr ""
|
1112 |
|
1113 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:188
|
1114 |
msgid "Select an order to preview and design the tracking info display."
|
1115 |
msgstr ""
|
1116 |
|
1117 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:362
|
1118 |
msgid "Select content border color for tracking page"
|
1119 |
msgstr ""
|
1120 |
|
1121 |
+
#: includes/customizer/class-wc-email-customizer.php:178
|
1122 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:187
|
1123 |
msgid "Select email type"
|
1124 |
msgstr ""
|
1125 |
|
1127 |
msgid "Select Provider"
|
1128 |
msgstr ""
|
1129 |
|
1130 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:186
|
1131 |
msgid "Select shipment status"
|
1132 |
msgstr ""
|
1133 |
|
1134 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:286
|
1135 |
msgid "Select Template"
|
1136 |
msgstr ""
|
1137 |
|
1138 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:331
|
1139 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:339
|
1140 |
#: includes/views/admin_tracking_page_settings.php:27
|
1141 |
msgid "Select Tracking Page"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:437
|
1145 |
+
msgid "Select tracking page"
|
1146 |
+
msgstr ""
|
1147 |
+
|
1148 |
+
#: includes/views/admin_options_osm.php:52
|
1149 |
+
#: includes/views/admin_options_osm.php:92
|
1150 |
msgid "Send Email"
|
1151 |
msgstr ""
|
1152 |
|
1153 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:870
|
1154 |
msgid ""
|
1155 |
"Set the \"mark as shipped\" option checked when adding tracking info to "
|
1156 |
"orders"
|
1157 |
msgstr ""
|
1158 |
|
1159 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:347
|
1160 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:351
|
|
|
1161 |
msgid "Settings"
|
1162 |
msgstr ""
|
1163 |
|
1164 |
+
#: includes/views/admin_options_bulk_upload.php:58
|
1165 |
msgid "Settings Saved."
|
1166 |
msgstr ""
|
1167 |
|
1180 |
msgid "Shipment : %s (out of %s)"
|
1181 |
msgstr ""
|
1182 |
|
1183 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:182
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1184 |
msgid "Shipment Status"
|
1185 |
msgstr ""
|
1186 |
|
1187 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:510
|
1188 |
msgid "Shipment status"
|
1189 |
msgstr ""
|
1190 |
|
1193 |
msgid "Shipment status changed to %s"
|
1194 |
msgstr ""
|
1195 |
|
1196 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:245
|
1197 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:295
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1198 |
#: includes/class-wc-advanced-shipment-tracking.php:141
|
1199 |
#: includes/class-wc-advanced-shipment-tracking.php:223
|
1200 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:210
|
|
|
|
|
1201 |
msgid "Shipment Tracking"
|
1202 |
msgstr ""
|
1203 |
|
1204 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:733
|
1205 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:327
|
1206 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:417
|
|
|
1207 |
msgid "Shipped"
|
1208 |
msgstr ""
|
1209 |
|
1214 |
msgstr[0] ""
|
1215 |
msgstr[1] ""
|
1216 |
|
1217 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:149
|
1218 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:722
|
1219 |
msgid "Shipped Date"
|
1220 |
msgstr ""
|
1221 |
|
1222 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:715
|
1223 |
msgid "Shipped date header text"
|
1224 |
msgstr ""
|
1225 |
|
1229 |
msgid "Shipped on %s"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:157
|
1233 |
msgid "Shipped on {ship_date} via {shipping_provider} - {tracking_number_link}"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1396
|
1237 |
msgid "Shipped Order"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
+
#: includes/views/admin_status_notifications.php:29
|
1241 |
+
msgid "Shipping & Delivery Notifications"
|
|
|
1242 |
msgstr ""
|
1243 |
|
1244 |
#: includes/views/admin_options_shipping_provider.php:58
|
1245 |
+
#: includes/views/admin_options_shipping_provider.php:113
|
1246 |
+
msgid "Shipping Country"
|
1247 |
+
msgstr ""
|
1248 |
+
|
1249 |
+
#: includes/views/admin_options_shipping_provider.php:97
|
1250 |
msgid "Shipping Provider"
|
1251 |
msgstr ""
|
1252 |
|
1253 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:668
|
1254 |
msgid "Shipping provider header text"
|
1255 |
msgstr ""
|
1256 |
|
1260 |
msgid "Shipping Provider:"
|
1261 |
msgstr ""
|
1262 |
|
1263 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:356
|
1264 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:360
|
1265 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1527
|
|
|
|
|
1266 |
msgid "Shipping Providers"
|
1267 |
msgstr ""
|
1268 |
|
1269 |
+
#: includes/views/admin_options_shipping_provider.php:157
|
1270 |
msgid "Shipping providers database reset successfully."
|
1271 |
msgstr ""
|
1272 |
|
1273 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:221
|
1274 |
+
msgid "Show all Events"
|
|
|
|
|
|
|
|
|
|
|
|
|
1275 |
msgstr ""
|
1276 |
|
1277 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:415
|
1278 |
msgid "Show bottom border"
|
1279 |
msgstr ""
|
1280 |
|
1281 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:322
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1282 |
msgid "Simple Layout Design"
|
1283 |
msgstr ""
|
1284 |
|
1286 |
msgid "Special character not allowd in tracking number"
|
1287 |
msgstr ""
|
1288 |
|
1289 |
+
#: includes/views/admin_options_trackship_integration.php:19
|
1290 |
+
msgid "Start for Free"
|
|
|
1291 |
msgstr ""
|
1292 |
|
1293 |
+
#: includes/views/trackship_settings.php:39
|
1294 |
+
msgid "Subscription: "
|
1295 |
msgstr ""
|
1296 |
|
1297 |
+
#: includes/views/admin_options_shipping_provider.php:147
|
1298 |
+
#: includes/views/admin_options_shipping_provider.php:161
|
1299 |
msgid "Sync Shipping Providers"
|
1300 |
msgstr ""
|
1301 |
|
1302 |
+
#: includes/views/admin_options_shipping_provider.php:151
|
1303 |
msgid ""
|
1304 |
"Syncing the shipping providers list add or updates the pre-set shipping "
|
1305 |
"providers and will not effect custom shipping providers."
|
1306 |
msgstr ""
|
1307 |
|
1308 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:817
|
1309 |
msgid "Table Content"
|
1310 |
msgstr ""
|
1311 |
|
1312 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:547
|
1313 |
msgid "Table Design Options"
|
1314 |
msgstr ""
|
1315 |
|
1316 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:632
|
1317 |
msgid "Table Header"
|
1318 |
msgstr ""
|
1319 |
|
1320 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:287
|
1321 |
msgid "Table Layout"
|
1322 |
msgstr ""
|
1323 |
|
1324 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:454
|
1325 |
msgid "Table Options"
|
1326 |
msgstr ""
|
1327 |
|
1328 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:608
|
1329 |
msgid "Text align"
|
1330 |
msgstr ""
|
1331 |
|
1332 |
+
#: includes/views/admin_options_shipping_provider.php:52
|
1333 |
#: includes/views/admin_options_shipping_provider.php:100
|
1334 |
msgid ""
|
1335 |
+
"The custom display name will show in the tracking info section on the "
|
1336 |
+
"customer order emails, my-account, and TrackShip's tracking page and email "
|
1337 |
+
"notifications"
|
|
|
|
|
|
|
1338 |
msgstr ""
|
1339 |
|
1340 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:906
|
1341 |
+
msgid "The date format which your external service update the API"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1342 |
msgstr ""
|
1343 |
|
1344 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:735
|
1345 |
msgid "There are some issue with sync, Please Retry."
|
1346 |
msgstr ""
|
1347 |
|
1348 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:232
|
1349 |
msgid "This browser does not support HTML5."
|
1350 |
msgstr ""
|
1351 |
|
1352 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:739
|
1353 |
msgid ""
|
1354 |
"This means that the 'mark as <span class='shipped_label'>completed</span>' "
|
1355 |
"will be selected by default when adding tracking info to orders."
|
1356 |
msgstr ""
|
1357 |
|
1358 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:735
|
1359 |
msgid ""
|
1360 |
"This means that the 'mark as <span class='shipped_label'>shipped</span>' "
|
1361 |
"will be selected by default when adding tracking info to orders."
|
1368 |
"{shipment_status} and its est. delivery date is {est_delivery_date}."
|
1369 |
msgstr ""
|
1370 |
|
1371 |
+
#: includes/customizer/class-wc-availableforpickup-email-customizer.php:330
|
1372 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:328
|
1373 |
+
#: includes/customizer/class-wc-failure-email-customizer.php:329
|
1374 |
+
#: includes/customizer/class-wc-intransit-email-customizer.php:381
|
1375 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:331
|
1376 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:330
|
1377 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:327
|
1378 |
msgid "This will be appended to URL in the email content"
|
1379 |
msgstr ""
|
1380 |
|
1381 |
+
#: includes/customizer/class-wc-email-customizer.php:432
|
1382 |
msgid ""
|
1383 |
"This will be appended to URL in the email content – e.g. "
|
1384 |
"utm_source=ast&utm_medium=email&utm_campaign=delivered"
|
1385 |
msgstr ""
|
1386 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1387 |
#: templates/tracking/tracking-form.php:11
|
1388 |
msgid ""
|
1389 |
"To track your order please enter your Order ID in the box below and press "
|
1391 |
"confirmation email you should have received."
|
1392 |
msgstr ""
|
1393 |
|
1394 |
+
#: includes/views/admin_options_tools.php:17
|
1395 |
+
#: includes/views/admin_trackship_dashboard.php:34
|
|
|
|
|
1396 |
msgid "Tools"
|
1397 |
msgstr ""
|
1398 |
|
1399 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1298
|
1400 |
+
msgid "Total Shipments"
|
1401 |
+
msgstr ""
|
1402 |
+
|
1403 |
+
#: includes/class-wc-advanced-shipment-tracking.php:753
|
1404 |
+
#: includes/class-wc-advanced-shipment-tracking.php:780
|
1405 |
+
#: includes/class-wc-advanced-shipment-tracking.php:796
|
1406 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:150
|
1407 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:978
|
1408 |
+
#: templates/emails/tracking-info.php:301
|
1409 |
#: templates/myaccount/tracking-info.php:241
|
1410 |
#: templates/tracking/tracking-form.php:16
|
1411 |
msgid "Track"
|
1412 |
msgstr ""
|
1413 |
|
1414 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:935
|
1415 |
msgid "Track Button"
|
1416 |
msgstr ""
|
1417 |
|
1418 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:952
|
1419 |
msgid "Track Header"
|
1420 |
msgstr ""
|
1421 |
|
1422 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:971
|
1423 |
msgid "Track header text"
|
1424 |
msgstr ""
|
1425 |
|
1428 |
msgid "Track Shipment"
|
1429 |
msgstr ""
|
1430 |
|
1431 |
+
#: includes/views/trackship_settings.php:40
|
1432 |
+
msgid "Trackers Balance: "
|
1433 |
msgstr ""
|
1434 |
|
1435 |
#: includes/views/front/layout1_tracking_details.php:4
|
1444 |
msgid "Tracking details not found in TrackShip"
|
1445 |
msgstr ""
|
1446 |
|
1447 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:301
|
1448 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:304
|
|
|
|
|
|
|
|
|
1449 |
msgid "Tracking display layout"
|
1450 |
msgstr ""
|
1451 |
|
1452 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:209
|
|
|
|
|
|
|
|
|
1453 |
msgid "Tracking Display Position"
|
1454 |
msgstr ""
|
1455 |
|
1456 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:248
|
1457 |
msgid "Tracking Header text"
|
1458 |
msgstr ""
|
1459 |
|
1460 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:167
|
1461 |
+
msgid "Tracking Icons"
|
1462 |
+
msgstr ""
|
1463 |
+
|
1464 |
+
#: includes/customizer/class-wcast-customizer.php:29
|
1465 |
msgid "Tracking info display"
|
1466 |
msgstr ""
|
1467 |
|
1468 |
+
#: includes/views/admin_options_tools.php:10
|
1469 |
msgid "Tracking info sent to Trackship for all Orders."
|
1470 |
msgstr ""
|
1471 |
|
1472 |
+
#: includes/class-wc-advanced-shipment-tracking.php:715
|
1473 |
#, php-format
|
1474 |
msgid ""
|
1475 |
"Tracking info was deleted for tracking provider %s with tracking number %s"
|
1476 |
msgstr ""
|
1477 |
|
1478 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:255
|
1479 |
msgid "Tracking Information"
|
1480 |
msgstr ""
|
1481 |
|
1482 |
+
#: includes/views/admin_options_settings.php:39
|
1483 |
+
msgid "Tracking information display"
|
1484 |
+
msgstr ""
|
1485 |
+
|
1486 |
#: includes/views/front/tracking_page_header.php:33
|
1487 |
msgid "Tracking information is not available, please try again in a few hour."
|
1488 |
msgstr ""
|
1492 |
"Tracking information is not available, please try again in a few minutes."
|
1493 |
msgstr ""
|
1494 |
|
1495 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:148
|
1496 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:699
|
1497 |
+
#: templates/emails/tracking-info.php:277
|
|
|
|
|
|
|
|
|
1498 |
#: templates/myaccount/tracking-info.php:221
|
1499 |
msgid "Tracking Number"
|
1500 |
msgstr ""
|
1501 |
|
1502 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:692
|
1503 |
msgid "Tracking number header text"
|
1504 |
msgstr ""
|
1505 |
|
1508 |
msgid "Tracking number:"
|
1509 |
msgstr ""
|
1510 |
|
|
|
1511 |
#: includes/views/admin_tracking_page_settings.php:9
|
|
|
|
|
1512 |
msgid "Tracking Page"
|
1513 |
msgstr ""
|
1514 |
|
1515 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:351
|
1516 |
msgid "Tracking Page Layout"
|
1517 |
msgstr ""
|
1518 |
|
1519 |
+
#: includes/customizer/class-wcast-customizer.php:39
|
1520 |
+
msgid "Tracking Page Widget"
|
1521 |
+
msgstr ""
|
1522 |
+
|
1523 |
#: includes/views/admin_tracking_page_settings.php:92
|
1524 |
msgid "Tracking Widget Border Color"
|
1525 |
msgstr ""
|
1536 |
msgid "Tracking Widget Preview"
|
1537 |
msgstr ""
|
1538 |
|
1539 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1530
|
1540 |
msgid "TrackShip"
|
1541 |
msgstr ""
|
1542 |
|
1543 |
+
#: includes/views/trackship_settings.php:31
|
1544 |
+
msgid "TrackShip Account"
|
1545 |
+
msgstr ""
|
1546 |
+
|
1547 |
+
#: includes/views/trackship_settings.php:9
|
1548 |
msgid "TrackShip Connection Status"
|
1549 |
msgstr ""
|
1550 |
|
1551 |
+
#: includes/views/trackship_settings.php:43
|
1552 |
+
msgid "TrackShip Dashboard"
|
1553 |
msgstr ""
|
1554 |
|
1555 |
+
#: includes/customizer/class-wcast-customizer.php:53
|
1556 |
+
msgid "TrackShip Email Notifications"
|
1557 |
msgstr ""
|
1558 |
|
1559 |
#: includes/views/admin_status_notifications.php:225
|
1560 |
msgid "Trigger Alert"
|
1561 |
msgstr ""
|
1562 |
|
1563 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:776
|
1564 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:870
|
1565 |
msgid "Unknown"
|
1566 |
msgstr ""
|
1567 |
|
1568 |
+
#: includes/views/admin_options_shipping_provider.php:136
|
1569 |
msgid "Update"
|
1570 |
msgstr ""
|
1571 |
|
1572 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:148
|
1573 |
#: includes/class-wc-advanced-shipment-tracking-settings.php:194
|
1574 |
+
#: includes/customizer/class-wc-email-customizer.php:183
|
1575 |
+
#: includes/customizer/class-wc-partial-shipped-email-customizer.php:192
|
1576 |
+
#: includes/views/admin_options_osm.php:69
|
1577 |
msgid "Updated Tracking"
|
1578 |
msgstr ""
|
1579 |
|
1584 |
msgstr[0] ""
|
1585 |
msgstr[1] ""
|
1586 |
|
1587 |
+
#: includes/views/admin_options_shipping_provider.php:70
|
1588 |
+
#: includes/views/admin_options_shipping_provider.php:124
|
|
|
|
|
|
|
|
|
1589 |
msgid "Upload"
|
1590 |
msgstr ""
|
1591 |
|
1592 |
+
#: includes/views/admin_options_bulk_upload.php:25
|
1593 |
msgid "Upload a CSV file from your computer:"
|
1594 |
msgstr ""
|
1595 |
|
1596 |
+
#: includes/views/admin_options_bulk_upload.php:108
|
1597 |
msgid "Upload again"
|
1598 |
msgstr ""
|
1599 |
|
1600 |
+
#: includes/views/admin_options_bulk_upload.php:11
|
|
|
|
|
|
|
|
|
|
|
|
|
1601 |
msgid ""
|
1602 |
"Use our CSV Import Tool to bulk Import tracking info to orders from a CSV "
|
1603 |
"file"
|
1604 |
msgstr ""
|
1605 |
|
1606 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:345
|
1607 |
msgid "Use the tracking page in the customer email/my account tracking link"
|
1608 |
msgstr ""
|
1609 |
|
1610 |
+
#: includes/customizer/class-wc-tracking-info-customizer.php:528
|
1611 |
msgid "Use tracking number as a link"
|
1612 |
msgstr ""
|
1613 |
|
1614 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:750
|
1615 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:765
|
1616 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:780
|
1617 |
+
#: includes/views/admin_options_bulk_upload.php:86
|
1618 |
msgid "view details"
|
1619 |
msgstr ""
|
1620 |
|
1621 |
+
#: includes/views/admin_options_bulk_upload.php:107
|
|
|
|
|
|
|
|
|
1622 |
msgid "View Orders"
|
1623 |
msgstr ""
|
1624 |
|
1625 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1319
|
1626 |
+
msgid "View Tracking Analytics"
|
|
|
1627 |
msgstr ""
|
1628 |
|
1629 |
+
#: woocommerce-advanced-shipment-tracking.php:473
|
1630 |
#, php-format
|
1631 |
msgid ""
|
1632 |
"We detected %s orders that use the Delivered order status, You can reassign "
|
1633 |
"these orders to a different status"
|
1634 |
msgstr ""
|
1635 |
|
1636 |
+
#: woocommerce-advanced-shipment-tracking.php:485
|
1637 |
#, php-format
|
1638 |
msgid ""
|
1639 |
"We detected %s orders that use the Partially Shipped order status, You can "
|
1640 |
"reassign these orders to a different status"
|
1641 |
msgstr ""
|
1642 |
|
1643 |
+
#: woocommerce-advanced-shipment-tracking.php:497
|
1644 |
#, php-format
|
1645 |
msgid ""
|
1646 |
"We detected %s orders that use the Updated Tracking order status, You can "
|
1647 |
"reassign these orders to a different status"
|
1648 |
msgstr ""
|
1649 |
|
1650 |
+
#: includes/views/admin_options_shipping_provider.php:53
|
1651 |
+
#: includes/views/admin_options_shipping_provider.php:101
|
1652 |
+
msgid "White Label Provider Name"
|
1653 |
+
msgstr ""
|
1654 |
+
|
1655 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:198
|
1656 |
+
msgid "Widget background color"
|
1657 |
+
msgstr ""
|
1658 |
+
|
1659 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:182
|
1660 |
+
msgid "Widget border color"
|
1661 |
+
msgstr ""
|
1662 |
+
|
1663 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:159
|
1664 |
+
#: includes/customizer/class-wc-tracking-page-customizer.php:162
|
1665 |
+
msgid "Widget Tracker Type"
|
1666 |
+
msgstr ""
|
1667 |
+
|
1668 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:885
|
1669 |
msgid "Wrong Shipping Provider"
|
1670 |
msgstr ""
|
1671 |
|
1672 |
+
#: includes/class-wc-advanced-shipment-tracking.php:384
|
1673 |
+
#: includes/class-wc-advanced-shipment-tracking.php:387
|
1674 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:467
|
1675 |
+
#: includes/class-wc-advanced-shipment-tracking-settings.php:467
|
1676 |
+
msgid "Y-m-d"
|
1677 |
+
msgstr ""
|
1678 |
+
|
1679 |
+
#: includes/views/admin_status_notifications.php:112
|
1680 |
msgid ""
|
1681 |
"You already have delivered order status email enabled, to enable this email "
|
1682 |
"you'll need to disable the delivered order status email in settings."
|
1683 |
msgstr ""
|
1684 |
|
1685 |
+
#: includes/views/admin_options_tools.php:18
|
1686 |
msgid ""
|
1687 |
"You can send all your orders from the last 30 days to get shipment status "
|
1688 |
"from TrackShip:"
|
1689 |
msgstr ""
|
1690 |
|
1691 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:231
|
1692 |
msgid "You can upload only csv file."
|
1693 |
msgstr ""
|
1694 |
|
1695 |
+
#: includes/views/admin_options_shipping_provider.php:77
|
1696 |
+
#: includes/views/admin_options_shipping_provider.php:131
|
1697 |
msgid ""
|
1698 |
"You can use the variables %number%, %postal_code% and %country_code% in the "
|
1699 |
"URL, for more info, check our "
|
1700 |
msgstr ""
|
1701 |
|
1702 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1617
|
1703 |
#, php-format
|
1704 |
msgid "You did not create any %s shipping providers yet."
|
1705 |
msgstr ""
|
1706 |
|
1707 |
+
#: includes/class-wc-advanced-shipment-tracking-admin.php:1620
|
|
|
1708 |
#, php-format
|
1709 |
msgid "You don't have any %s shipping providers."
|
1710 |
msgstr ""
|
1711 |
|
1712 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1036
|
1713 |
#, php-format
|
1714 |
msgid "You got %s %s orders with shipment status “TrackShip connection issue”"
|
1715 |
msgstr ""
|
1716 |
|
1717 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1027
|
1718 |
#, php-format
|
1719 |
msgid "You got %s %s orders with shipment status “TrackShip balance is 0”"
|
1720 |
msgstr ""
|
1721 |
|
1722 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:1018
|
1723 |
#, php-format
|
1724 |
msgid ""
|
1725 |
"You got %s %s orders with tracking info that were not sent to track on "
|
1726 |
"TrackShip"
|
1727 |
msgstr ""
|
1728 |
|
1729 |
+
#: includes/views/admin_trackship_dashboard.php:23
|
1730 |
#, php-format
|
1731 |
msgid ""
|
1732 |
"You have %s Shipped Orders from the last 30 days that you can bulk send to "
|
1733 |
"<a href=\"javascript:void(0);\" class=\"tool_link\">Get Shipment Status</a>"
|
1734 |
msgstr ""
|
1735 |
|
1736 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:323
|
1737 |
+
#: includes/class-wc-advanced-shipment-tracking-trackship.php:414
|
1738 |
msgid ""
|
1739 |
"You must add the shortcode [wcast-track-order] to the selected page in order "
|
1740 |
"for the tracking page to work."
|
1741 |
msgstr ""
|
1742 |
|
1743 |
+
#: includes/customizer/class-wc-delivered-email-customizer.php:125
|
1744 |
msgid "Your order #{order_number} has been delivered"
|
1745 |
msgstr ""
|
1746 |
|
1747 |
+
#: includes/customizer/class-wc-returntosender-email-customizer.php:124
|
1748 |
msgid "Your order #{order_number} has returned to sender"
|
1749 |
msgstr ""
|
1750 |
|
1760 |
msgid "Your order #{order_number} is in transit"
|
1761 |
msgstr ""
|
1762 |
|
1763 |
+
#: includes/customizer/class-wc-onhold-email-customizer.php:127
|
1764 |
msgid "Your order #{order_number} is on hold"
|
1765 |
msgstr ""
|
1766 |
|
1767 |
+
#: includes/customizer/class-wc-outfordelivery-email-customizer.php:126
|
1768 |
msgid "Your order #{order_number} is out for delivery"
|
1769 |
msgstr ""
|
1770 |
|
1771 |
+
#: includes/customizer/class-wc-email-customizer.php:118
|
|
|
1772 |
msgid "Your {site_title} order is now delivered"
|
1773 |
msgstr ""
|
1774 |
|
1776 |
msgid "Your {site_title} order is now partially shipped"
|
1777 |
msgstr ""
|
1778 |
|
1779 |
+
#: includes/customizer/class-wc-updated-tracking-email-customizer.php:117
|
1780 |
msgid "Your {site_title} order is now updated tracking"
|
1781 |
msgstr ""
|
1782 |
+
|
1783 |
+
#. Author of the plugin
|
1784 |
+
msgid "zorem"
|
1785 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
=== Advanced Shipment Tracking for WooCommerce ===
|
2 |
Contributors: zorem
|
3 |
Tags: WooCommerce, delivery, shipping, shipment tracking, tracking
|
4 |
-
Requires at least: 5.
|
5 |
Tested up to: 5.6
|
6 |
Requires PHP: 7.0
|
7 |
Stable tag: 4.0.1
|
@@ -143,6 +143,16 @@ Yes, if you use external shipping services that work with the WooCommerce REST A
|
|
143 |
== Changelog ==
|
144 |
|
145 |
= 3.2.1 =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
* Fix - Fixed - PHP warning when tracking number added via API or an external source via ast_insert_tracking_number function
|
147 |
|
148 |
|
1 |
=== Advanced Shipment Tracking for WooCommerce ===
|
2 |
Contributors: zorem
|
3 |
Tags: WooCommerce, delivery, shipping, shipment tracking, tracking
|
4 |
+
Requires at least: 5.3
|
5 |
Tested up to: 5.6
|
6 |
Requires PHP: 7.0
|
7 |
Stable tag: 4.0.1
|
143 |
== Changelog ==
|
144 |
|
145 |
= 3.2.1 =
|
146 |
+
* Enhancement - Updated the Shipment Tracking settings page design
|
147 |
+
* Enhancement - Updated the Shipping Providers listing page design
|
148 |
+
* Enhancement - Moved the TrackShip settings inside Shipment Tracking
|
149 |
+
* Enhancement - Updated the TrackShip settings page design
|
150 |
+
* Enhancement - Changed TrackShip dashboard widget
|
151 |
+
* Enhancement - Moved the TrackShip tracking page settings to customizer
|
152 |
+
* Enhancement - Updated Add Tracking lightbox design on orders page
|
153 |
+
* Dev - Removed delivered order status and moved only for TrackShip users
|
154 |
+
|
155 |
+
= 3.2.0.1 =
|
156 |
* Fix - Fixed - PHP warning when tracking number added via API or an external source via ast_insert_tracking_number function
|
157 |
|
158 |
|
templates/emails/tracking-info.php
CHANGED
@@ -146,7 +146,7 @@ if ( $tracking_items ) :
|
|
146 |
<?php } ?>
|
147 |
<p class="addition_header"><?php echo $shipment_tracking_header_text; ?></p>
|
148 |
|
149 |
-
<?php if($select_tracking_template == 'simple_list'){ ?>
|
150 |
<div class="tracking_info">
|
151 |
<ul class="tracking_list">
|
152 |
<?php foreach ( $tracking_items as $tracking_item ) {
|
@@ -188,7 +188,7 @@ if ( $tracking_items ) :
|
|
188 |
<?php } ?>
|
189 |
</ul>
|
190 |
</div>
|
191 |
-
<?php } else{ ?>
|
192 |
<table class="td tracking_table" cellspacing="0" cellpadding="6" style="width: 100%;border-collapse: collapse;background:<?php echo $email_table_backgroud_color; ?>" border="1">
|
193 |
<?php if($preview){ ?>
|
194 |
<thead class="<?php if($hide_table_header){ echo 'hide'; }?>">
|
@@ -213,11 +213,7 @@ if ( $tracking_items ) :
|
|
213 |
<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>
|
214 |
<?php } else{ ?>
|
215 |
<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>
|
216 |
-
<?php } }
|
217 |
-
if(isset($show_shipment_status) && $show_shipment_status){ ?>
|
218 |
-
<th class="shipment-status" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( 'Shipment Status', 'woo-advanced-shipment-tracking' ); ?></th>
|
219 |
-
<?php }
|
220 |
-
?>
|
221 |
</tr>
|
222 |
</thead>
|
223 |
<?php } else{ ?>
|
@@ -243,11 +239,7 @@ if ( $tracking_items ) :
|
|
243 |
<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>
|
244 |
<?php } else{ ?>
|
245 |
<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>
|
246 |
-
<?php } }
|
247 |
-
if(isset($show_shipment_status) && $show_shipment_status){ ?>
|
248 |
-
<th class="shipment-status" scope="col" class="td" style="<?php echo $th_column_style; ?>"><?php _e( 'Shipment Status', 'woo-advanced-shipment-tracking' ); ?></th>
|
249 |
-
<?php }
|
250 |
-
?>
|
251 |
</tr>
|
252 |
</thead>
|
253 |
<?php } ?>
|
@@ -304,23 +296,19 @@ if ( $tracking_items ) :
|
|
304 |
if(!$tracking_number_link){
|
305 |
?>
|
306 |
<td class="order-actions" style="<?php echo $td_column_style; ?>">
|
307 |
-
|
308 |
-
|
309 |
-
<?php
|
|
|
310 |
</td>
|
311 |
-
<?php }
|
312 |
-
if(isset($show_shipment_status) && $show_shipment_status){
|
313 |
-
$data = $shipment_status[$key];
|
314 |
-
$status = $data["status"];
|
315 |
-
?>
|
316 |
-
<td class="shipment-status" style="<?php echo $td_column_style; ?>"><?php echo apply_filters("trackship_status_filter",$status)?></td>
|
317 |
-
<?php }
|
318 |
-
?>
|
319 |
</tr><?php
|
320 |
}
|
321 |
?></tbody>
|
322 |
</table><br/>
|
323 |
-
<?php }
|
|
|
|
|
324 |
|
325 |
<style>
|
326 |
ul.tracking_list{
|
146 |
<?php } ?>
|
147 |
<p class="addition_header"><?php echo $shipment_tracking_header_text; ?></p>
|
148 |
|
149 |
+
<?php if( $select_tracking_template == 'simple_list' ){ ?>
|
150 |
<div class="tracking_info">
|
151 |
<ul class="tracking_list">
|
152 |
<?php foreach ( $tracking_items as $tracking_item ) {
|
188 |
<?php } ?>
|
189 |
</ul>
|
190 |
</div>
|
191 |
+
<?php } else if( $select_tracking_template == 'default_table' ){ ?>
|
192 |
<table class="td tracking_table" cellspacing="0" cellpadding="6" style="width: 100%;border-collapse: collapse;background:<?php echo $email_table_backgroud_color; ?>" border="1">
|
193 |
<?php if($preview){ ?>
|
194 |
<thead class="<?php if($hide_table_header){ echo 'hide'; }?>">
|
213 |
<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>
|
214 |
<?php } else{ ?>
|
215 |
<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>
|
216 |
+
<?php } } ?>
|
|
|
|
|
|
|
|
|
217 |
</tr>
|
218 |
</thead>
|
219 |
<?php } else{ ?>
|
239 |
<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>
|
240 |
<?php } else{ ?>
|
241 |
<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>
|
242 |
+
<?php } } ?>
|
|
|
|
|
|
|
|
|
243 |
</tr>
|
244 |
</thead>
|
245 |
<?php } ?>
|
296 |
if(!$tracking_number_link){
|
297 |
?>
|
298 |
<td class="order-actions" style="<?php echo $td_column_style; ?>">
|
299 |
+
<?php if($tracking_item['formatted_tracking_link']){
|
300 |
+
$url = str_replace('%number%',$tracking_item['tracking_number'],$tracking_item['formatted_tracking_link']); ?>
|
301 |
+
<a href="<?php echo esc_url( $url ); ?>" style="<?php echo $tracking_link_style; ?>" target="_blank"><?php _e( 'Track', 'woo-advanced-shipment-tracking' ); ?></a>
|
302 |
+
<?php } ?>
|
303 |
</td>
|
304 |
+
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
305 |
</tr><?php
|
306 |
}
|
307 |
?></tbody>
|
308 |
</table><br/>
|
309 |
+
<?php }
|
310 |
+
if( !isset($show_shipment_status) ) $show_shipment_status = false;
|
311 |
+
do_action( 'tracking_info_template' , $order_id, $tracking_items, $show_shipment_status ); ?>
|
312 |
|
313 |
<style>
|
314 |
ul.tracking_list{
|
templates/emails/wcast-email-order-details.php
CHANGED
@@ -80,33 +80,7 @@ if ( true == $responsive_check ) { ?>
|
|
80 |
$args = apply_filters( 'ast_email_order_items_args', $args);
|
81 |
echo wc_get_email_order_items( $order, $args );
|
82 |
?>
|
83 |
-
</tbody>
|
84 |
-
<tfoot>
|
85 |
-
<?php
|
86 |
-
$totals = $order->get_order_item_totals();
|
87 |
-
|
88 |
-
if ( $totals ) {
|
89 |
-
$i = 0;
|
90 |
-
foreach ( $totals as $total ) {
|
91 |
-
$i++;
|
92 |
-
?>
|
93 |
-
<tr>
|
94 |
-
<th class="td" scope="row" colspan="1" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['label'] ); ?></th>
|
95 |
-
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['value'] ); ?></td>
|
96 |
-
</tr>
|
97 |
-
<?php
|
98 |
-
}
|
99 |
-
}
|
100 |
-
if ( $order->get_customer_note() ) {
|
101 |
-
?>
|
102 |
-
<tr>
|
103 |
-
<th class="td" scope="row" colspan="1" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Note:', 'woocommerce' ); ?></th>
|
104 |
-
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( wptexturize( $order->get_customer_note() ) ); ?></td>
|
105 |
-
</tr>
|
106 |
-
<?php
|
107 |
-
}
|
108 |
-
?>
|
109 |
-
</tfoot>
|
110 |
</table>
|
111 |
</div>
|
112 |
<?php } else{ ?>
|
@@ -131,33 +105,7 @@ if ( true == $responsive_check ) { ?>
|
|
131 |
$args = apply_filters( 'ast_email_order_items_args', $args);
|
132 |
echo wc_get_email_order_items( $order, $args );
|
133 |
?>
|
134 |
-
</tbody>
|
135 |
-
<tfoot>
|
136 |
-
<?php
|
137 |
-
$totals = $order->get_order_item_totals();
|
138 |
-
|
139 |
-
if ( $totals ) {
|
140 |
-
$i = 0;
|
141 |
-
foreach ( $totals as $total ) {
|
142 |
-
$i++;
|
143 |
-
?>
|
144 |
-
<tr>
|
145 |
-
<th class="td" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['label'] ); ?></th>
|
146 |
-
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo wp_kses_post( $total['value'] ); ?></td>
|
147 |
-
</tr>
|
148 |
-
<?php
|
149 |
-
}
|
150 |
-
}
|
151 |
-
if ( $order->get_customer_note() ) {
|
152 |
-
?>
|
153 |
-
<tr>
|
154 |
-
<th class="td" scope="row" colspan="2" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php esc_html_e( 'Note:', 'woocommerce' ); ?></th>
|
155 |
-
<td class="td" style="text-align:<?php echo esc_attr( $text_align ); ?>;"><?php echo wp_kses_post( wptexturize( $order->get_customer_note() ) ); ?></td>
|
156 |
-
</tr>
|
157 |
-
<?php
|
158 |
-
}
|
159 |
-
?>
|
160 |
-
</tfoot>
|
161 |
</table>
|
162 |
</div>
|
163 |
<?php } ?>
|
80 |
$args = apply_filters( 'ast_email_order_items_args', $args);
|
81 |
echo wc_get_email_order_items( $order, $args );
|
82 |
?>
|
83 |
+
</tbody>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
</table>
|
85 |
</div>
|
86 |
<?php } else{ ?>
|
105 |
$args = apply_filters( 'ast_email_order_items_args', $args);
|
106 |
echo wc_get_email_order_items( $order, $args );
|
107 |
?>
|
108 |
+
</tbody>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
</table>
|
110 |
</div>
|
111 |
<?php } ?>
|
woocommerce-advanced-shipment-tracking.php
CHANGED
@@ -4,13 +4,13 @@
|
|
4 |
* Plugin Name: Advanced Shipment Tracking for WooCommerce
|
5 |
* Plugin URI: https://www.zorem.com/products/woocommerce-advanced-shipment-tracking/
|
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: 3.2.
|
8 |
* Author: zorem
|
9 |
* Author URI: https://www.zorem.com
|
10 |
* License: GPL-2.0+
|
11 |
* License URI:
|
12 |
* Text Domain: woo-advanced-shipment-tracking
|
13 |
-
* WC tested up to: 4.
|
14 |
*/
|
15 |
|
16 |
|
@@ -21,7 +21,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
21 |
*
|
22 |
* @var string
|
23 |
*/
|
24 |
-
public $version = '3.2.
|
25 |
|
26 |
/**
|
27 |
* Initialize the main plugin function
|
@@ -179,11 +179,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
179 |
//ajax save admin api settings
|
180 |
add_action( 'wp_ajax_wc_ast_settings_form_update', array( $this->admin, 'wc_ast_settings_form_update_callback' ) );
|
181 |
|
182 |
-
add_action( 'wp_ajax_wc_ast_custom_order_status_form_update', array( $this->admin, 'wc_ast_custom_order_status_form_update') );
|
183 |
-
|
184 |
-
$wc_ast_status_delivered = get_option('wc_ast_status_delivered');
|
185 |
-
if($wc_ast_status_delivered == 1)
|
186 |
-
add_action( 'woocommerce_order_status_delivered', array( $this, 'email_trigger_delivered' ), 10, 2 );
|
187 |
|
188 |
$wc_ast_status_partial_shipped = get_option('wc_ast_status_partial_shipped');
|
189 |
if($wc_ast_status_partial_shipped == 1)
|
@@ -198,15 +194,6 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
198 |
}
|
199 |
}
|
200 |
|
201 |
-
/**
|
202 |
-
* Send email when order status change to "Delivered"
|
203 |
-
*
|
204 |
-
*/
|
205 |
-
public function email_trigger_delivered($order_id, $order = false){
|
206 |
-
require_once( 'includes/email-manager.php' );
|
207 |
-
WC()->mailer()->emails['WC_Email_Customer_Delivered_Order']->trigger( $order_id, $order );
|
208 |
-
}
|
209 |
-
|
210 |
/**
|
211 |
* Send email when order status change to "Partial Shipped"
|
212 |
*
|
@@ -389,7 +376,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
389 |
|
390 |
require_once $this->get_plugin_path() . '/includes/customizer/class-wc-tracking-info-customizer.php';
|
391 |
|
392 |
-
require_once $this->get_plugin_path() . '/includes/customizer/class-wc-email-customizer.php';
|
393 |
|
394 |
require_once $this->get_plugin_path() . '/includes/customizer/class-wc-partial-shipped-email-customizer.php';
|
395 |
|
@@ -476,8 +463,7 @@ class zorem_woocommerce_advanced_shipment_tracking {
|
|
476 |
<div id="" class="popupwrapper uninstall_popup" style="display:none;">
|
477 |
<div class="popuprow">
|
478 |
<div class="popup_header">
|
479 |
-
<h3 class="popup_title">Advanced Shipment Tracking for WooCommerce</h3>
|
480 |
-
<img src="<?php echo wc_advanced_shipment_tracking()->plugin_dir_url()?>assets/images/ast-logo.png" class="poppup_header_logo">
|
481 |
<span class="dashicons dashicons-no-alt popup_close_icon"></span>
|
482 |
</div>
|
483 |
<div class="popup_body">
|
4 |
* Plugin Name: Advanced Shipment Tracking for WooCommerce
|
5 |
* Plugin URI: https://www.zorem.com/products/woocommerce-advanced-shipment-tracking/
|
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: 3.2.1
|
8 |
* Author: zorem
|
9 |
* Author URI: https://www.zorem.com
|
10 |
* License: GPL-2.0+
|
11 |
* License URI:
|
12 |
* Text Domain: woo-advanced-shipment-tracking
|
13 |
+
* WC tested up to: 4.9.2
|
14 |
*/
|
15 |
|
16 |
|
21 |
*
|
22 |
* @var string
|
23 |
*/
|
24 |
+
public $version = '3.2.1';
|
25 |
|
26 |
/**
|
27 |
* Initialize the main plugin function
|
179 |
//ajax save admin api settings
|
180 |
add_action( 'wp_ajax_wc_ast_settings_form_update', array( $this->admin, 'wc_ast_settings_form_update_callback' ) );
|
181 |
|
182 |
+
add_action( 'wp_ajax_wc_ast_custom_order_status_form_update', array( $this->admin, 'wc_ast_custom_order_status_form_update') );
|
|
|
|
|
|
|
|
|
183 |
|
184 |
$wc_ast_status_partial_shipped = get_option('wc_ast_status_partial_shipped');
|
185 |
if($wc_ast_status_partial_shipped == 1)
|
194 |
}
|
195 |
}
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
/**
|
198 |
* Send email when order status change to "Partial Shipped"
|
199 |
*
|
376 |
|
377 |
require_once $this->get_plugin_path() . '/includes/customizer/class-wc-tracking-info-customizer.php';
|
378 |
|
379 |
+
//require_once $this->get_plugin_path() . '/includes/customizer/class-wc-email-customizer.php';
|
380 |
|
381 |
require_once $this->get_plugin_path() . '/includes/customizer/class-wc-partial-shipped-email-customizer.php';
|
382 |
|
463 |
<div id="" class="popupwrapper uninstall_popup" style="display:none;">
|
464 |
<div class="popuprow">
|
465 |
<div class="popup_header">
|
466 |
+
<h3 class="popup_title">Advanced Shipment Tracking for WooCommerce</h3>
|
|
|
467 |
<span class="dashicons dashicons-no-alt popup_close_icon"></span>
|
468 |
</div>
|
469 |
<div class="popup_body">
|