WooCommerce Print Invoice & Delivery Note - Version 4.3.6

Version Description

(19.12.2017) =

  • Added translation for the word 'Price' for dutch language
  • Removed Pro version link that was not going anywhere
Download this release

Release Info

Developer tychesoftwares
Plugin Icon 128x128 WooCommerce Print Invoice & Delivery Note
Version 4.3.6
Comparing to
See all releases

Code changes from version 4.3.2 to 4.3.6

includes/class-wcdn-settings.php CHANGED
@@ -93,7 +93,7 @@ if ( !class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
93
 
94
  array(
95
  'title' => __( 'Style', 'woocommerce-delivery-notes' ),
96
- 'desc' => sprintf( __( 'The default print style. Read the <a href="%1$s">FAQ</a> to learn how to customize it or get more styles with <a href="%2$s">WooCommerce Print Invoice & Delivery Note Pro</a>.', 'woocommerce-delivery-notes' ), 'https://wordpress.org/plugins/woocommerce-delivery-notes/faq/', '#' ),
97
  'id' => 'wcdn_template_style',
98
  'class' => 'wc-enhanced-select',
99
  'default' => '',
93
 
94
  array(
95
  'title' => __( 'Style', 'woocommerce-delivery-notes' ),
96
+ 'desc' => sprintf( __( 'The default print style. Read the <a href="%1$s">FAQ</a> to learn how to customize it.', 'woocommerce-delivery-notes' ), 'https://wordpress.org/plugins/woocommerce-delivery-notes/faq/', '#' ),
97
  'id' => 'wcdn_template_style',
98
  'class' => 'wc-enhanced-select',
99
  'default' => '',
includes/wcdn-template-functions.php CHANGED
@@ -1,551 +1,551 @@
1
- <?php
2
-
3
- /**
4
- * Exit if accessed directly
5
- */
6
- if ( !defined( 'ABSPATH' ) ) {
7
- exit;
8
- }
9
-
10
- /**
11
- * Output the template part
12
- */
13
- function wcdn_get_template_content( $name, $args = null ) {
14
- global $wcdn;
15
- $location = $wcdn->print->get_template_file_location( $name );
16
- if( $location ) {
17
- wc_get_template( $name, $args, $location, $location );
18
- }
19
- }
20
-
21
- /**
22
- * Return Type of the print template
23
- */
24
- function wcdn_get_template_type() {
25
- global $wcdn;
26
- return apply_filters( 'wcdn_template_type', $wcdn->print->template['type'] );
27
- }
28
-
29
- /**
30
- * Return Title of the print template
31
- */
32
- function wcdn_get_template_title() {
33
- global $wcdn;
34
- return apply_filters( 'wcdn_template_title', __( $wcdn->print->template['labels']['name'], 'woocommerce-delivery-notes' ) );
35
- }
36
-
37
- /**
38
- * Return print page link
39
- */
40
- function wcdn_get_print_link( $order_ids, $template_type = 'order', $order_email = null, $permalink = false ) {
41
- global $wcdn;
42
- return $wcdn->print->get_print_page_url( $order_ids, $template_type, $order_email, $permalink );
43
- }
44
-
45
- /**
46
- * Output the document title depending on type
47
- */
48
- function wcdn_document_title() {
49
- echo apply_filters( 'wcdn_document_title', wcdn_get_template_title() );
50
- }
51
-
52
- /**
53
- * Output the print navigation style
54
- */
55
- function wcdn_navigation_style() {
56
- ?>
57
- <style>
58
- #navigation {
59
- font-family: sans-serif;
60
- background-color: #f1f1f1;
61
- z-index: 200;
62
- border-bottom: 1px solid #dfdfdf;
63
- left: 0;
64
- right: 0;
65
- bottom: 0;
66
- position: fixed;
67
- padding: 6px 8px;
68
- text-align: right;
69
- }
70
-
71
- #navigation .button {
72
- transition-property: border, background, color;
73
- display: inline-block;
74
- font-size: 13px;
75
- line-height: 26px;
76
- height: 28px;
77
- margin: 0;
78
- padding: 0 10px 1px;
79
- cursor: pointer;
80
- border-width: 1px;
81
- border-style: solid;
82
- -webkit-border-radius: 3px;
83
- -webkit-appearance: none;
84
- border-radius: 3px;
85
- white-space: nowrap;
86
- -webkit-box-sizing: border-box;
87
- -moz-box-sizing: border-box;
88
- box-sizing: border-box;
89
-
90
- background: #2ea2cc;
91
- border-color: #0074a2;
92
- -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5), 0 1px 0 rgba(0,0,0,.15);
93
- box-shadow: inset 0 1px 0 rgba(120,200,230,0.5), 0 1px 0 rgba(0,0,0,.15);
94
- color: #fff;
95
- text-decoration: none;
96
- }
97
-
98
- #navigation .button:hover,
99
- #navigation .button:focus {
100
- background: #1e8cbe;
101
- border-color: #0074a2;
102
- -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
103
- box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
104
- color: #fff;
105
- }
106
-
107
- #navigation .button:active {
108
- background: #1b7aa6;
109
- border-color: #005684;
110
- color: rgba(255,255,255,0.95);
111
- -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
112
- box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
113
- }
114
-
115
- @media print {
116
- #navigation {
117
- display: none;
118
- }
119
- }
120
- </style>
121
- <?php
122
- }
123
-
124
- /**
125
- * Create print navigation
126
- */
127
- function wcdn_navigation() {
128
- ?>
129
- <div id="navigation">
130
- <a href="#" class="button" onclick="window.print();return false;"><?php _e( 'Print', 'woocommerce-delivery-notes' ); ?></a>
131
- </div><!-- #navigation -->
132
- <?php
133
- }
134
-
135
- /**
136
- * Output template stylesheet
137
- */
138
- function wcdn_template_stylesheet() {
139
- global $wcdn;
140
- $name = apply_filters( 'wcdn_template_stylesheet_name', 'style.css' );
141
- ?>
142
- <link rel="stylesheet" href="<?php echo $wcdn->print->get_template_file_location( $name, true ) . $name; ?>" type="text/css" media="screen,print" />
143
- <?php
144
- }
145
-
146
- /**
147
- * Output the template print content
148
- */
149
- function wcdn_content( $order, $template_type ) {
150
- global $wcdn;
151
-
152
- // Add WooCommerce hooks here to not
153
- // make global changes to the totals
154
- add_filter( 'woocommerce_get_order_item_totals', 'wcdn_remove_semicolon_from_totals', 10, 2 );
155
- add_filter( 'woocommerce_get_order_item_totals', 'wcdn_remove_payment_method_from_totals', 20, 2 );
156
- add_filter( 'woocommerce_get_order_item_totals', 'wcdn_add_refunded_order_totals', 30, 2 );
157
-
158
- // Load the template
159
- wcdn_get_template_content( 'print-content.php', array( 'order' => $order, 'template_type' => $template_type ) );
160
- }
161
-
162
- /**
163
- * Return logo id
164
- */
165
- function wcdn_get_company_logo_id() {
166
- global $wcdn;
167
- return apply_filters( 'wcdn_company_logo_id', get_option( 'wcdn_company_logo_image_id' ) );
168
- }
169
-
170
- /**
171
- * Show logo html
172
- */
173
- function wcdn_company_logo() {
174
- global $wcdn;
175
- $attachment_id = wcdn_get_company_logo_id();
176
- $company = get_option( 'wcdn_custom_company_name' );
177
- if( $attachment_id ) {
178
- $attachment_src = wp_get_attachment_image_src( $attachment_id, 'full', false );
179
-
180
- // resize the image to a 1/4 of the original size
181
- // to have a printing point density of about 288ppi.
182
- ?>
183
- <img src="<?php echo $attachment_src[0]; ?>" width="<?php echo round( $attachment_src[1] / 4 ); ?>" height="<?php echo round( $attachment_src[2] / 4 ); ?>" alt="<?php echo esc_attr( $company ); ?>" />
184
- <?php
185
- }
186
- }
187
-
188
- /**
189
- * Return default title name of Delivery Note
190
- */
191
- function wcdn_company_name() {
192
- global $wcdn;
193
- $name = trim( get_option( 'wcdn_custom_company_name' ) );
194
- if( !empty( $name ) ) {
195
- echo apply_filters( 'wcdn_company_name', stripslashes( wptexturize( $name ) ) );
196
- } else {
197
- echo apply_filters( 'wcdn_company_name', get_bloginfo( 'name' ) );
198
- }
199
- }
200
-
201
- /**
202
- * Return shop/company info if provided
203
- */
204
- function wcdn_company_info() {
205
- global $wcdn;
206
- echo stripslashes( wpautop( wptexturize( get_option( 'wcdn_company_address' ) ) ) );
207
- }
208
-
209
- /**
210
- * Get orders as array. Every order is a normal WC_Order instance.
211
- */
212
- function wcdn_get_orders() {
213
- global $wcdn;
214
- return $wcdn->print->orders;
215
- }
216
-
217
- /**
218
- * Get an order
219
- */
220
- function wcdn_get_order( $order_id ) {
221
- global $wcdn;
222
- return $wcdn->print->get_order( $order_id );
223
- }
224
-
225
- /**
226
- * Get the order info fields
227
- */
228
- function wcdn_get_order_info( $order ) {
229
- global $wcdn;
230
- $fields = array();
231
- $create_invoice_number = get_option( 'wcdn_create_invoice_number' );
232
-
233
-
234
-
235
- $wdn_order_id = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_id() : $order->id;
236
- $order_post = get_post( $wdn_order_id );
237
-
238
- $wdn_order_order_date = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order_post->post_date : $order->order_date;
239
- $wdn_order_payment_method_title = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_payment_method_title() : $order->payment_method_title;
240
- $wdn_order_billing_id = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_billing_email() : $order->billing_email;
241
- $wdn_order_billing_phone = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_billing_phone() : $order->billing_phone;
242
-
243
- if( wcdn_get_template_type() == 'invoice' && !empty( $create_invoice_number ) && $create_invoice_number == 'yes' ) {
244
-
245
- $fields['invoice_number'] = array(
246
- 'label' => __( 'Invoice Number', 'woocommerce-delivery-notes' ),
247
- 'value' => wcdn_get_order_invoice_number( $wdn_order_id )
248
- );
249
- }
250
-
251
- if( wcdn_get_template_type() == 'invoice' ) {
252
- $fields['invoice_date'] = array(
253
- 'label' => __( 'Invoice Date', 'woocommerce-delivery-notes' ),
254
- 'value' => wcdn_get_order_invoice_date( $wdn_order_id )
255
- );
256
- }
257
-
258
- $fields['order_number'] = array(
259
- 'label' => __( 'Order Number', 'woocommerce-delivery-notes' ),
260
- 'value' => $order->get_order_number()
261
- );
262
-
263
- $fields['order_date'] = array(
264
- 'label' => __( 'Order Date', 'woocommerce-delivery-notes' ),
265
- 'value' => date_i18n( get_option( 'date_format' ), strtotime( $wdn_order_order_date ) )
266
- );
267
-
268
- $fields['payment_method'] = array(
269
- 'label' => __( 'Payment Method', 'woocommerce-delivery-notes' ),
270
- 'value' => __( $wdn_order_payment_method_title, 'woocommerce' )
271
- );
272
-
273
- if( $wdn_order_billing_id ) {
274
- $fields['billing_email'] = array(
275
- 'label' => __( 'Email', 'woocommerce-delivery-notes' ),
276
- 'value' => $wdn_order_billing_id
277
- );
278
- }
279
-
280
- if( $wdn_order_billing_phone ) {
281
- $fields['billing_phone'] = array(
282
- 'label' => __( 'Telephone', 'woocommerce-delivery-notes' ),
283
- 'value' => $wdn_order_billing_phone
284
- );
285
- }
286
-
287
- return $fields;
288
- }
289
-
290
- /**
291
- * Get the invoice number of an order
292
- */
293
- function wcdn_get_order_invoice_number( $order_id ) {
294
- global $wcdn;
295
- return $wcdn->print->get_order_invoice_number( $order_id );
296
- }
297
-
298
- /**
299
- * Get the invoice date of an order
300
- */
301
- function wcdn_get_order_invoice_date( $order_id ) {
302
- global $wcdn;
303
- return $wcdn->print->get_order_invoice_date( $order_id );
304
- }
305
-
306
- /**
307
- * Additional fields for the product
308
- */
309
- function wcdn_additional_product_fields( $fields = null, $product = null, $order ) {
310
- $new_fields = array();
311
-
312
- // Stock keeping unit
313
- if( $product && $product->exists() && $product->get_sku() ) {
314
- $fields['sku'] = array(
315
- 'label' => __( 'SKU:', 'woocommerce-delivery-notes' ),
316
- 'value' => $product->get_sku()
317
- );
318
- }
319
- return array_merge( $fields, $new_fields );
320
- }
321
-
322
- /**
323
- * Check if a shipping address is enabled
324
- */
325
- function wcdn_has_shipping_address( $order ) {
326
- // Works only with WooCommerce 2.2 and higher
327
- if( version_compare( WC_VERSION, '2.2.0', '>=' ) ) {
328
- if( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) {
329
- return true;
330
- } else {
331
- return false;
332
- }
333
- }
334
- return true;
335
- }
336
-
337
- /**
338
- * Check if an order contains a refund
339
- */
340
- function wcdn_has_refund( $order ) {
341
- // Works only with WooCommerce 2.2 and higher
342
- if( version_compare( WC_VERSION, '2.2.0', '>=' ) ) {
343
- if( $order->get_total_refunded() ) {
344
- return true;
345
- }
346
- }
347
- return false;
348
- }
349
-
350
- /**
351
- * Gets formatted item subtotal for display.
352
- */
353
- function wcdn_get_formatted_item_price( $order, $item, $tax_display = '' ) {
354
- if ( ! $tax_display ) {
355
- $tax_display = get_option( 'woocommerce_tax_display_cart' );
356
- }
357
-
358
- if ( ! isset( $item['line_subtotal'] ) || ! isset( $item['line_subtotal_tax'] ) ) {
359
- return '';
360
- }
361
-
362
- $wdn_order_currency = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_currency() : $order->get_order_currency();
363
-
364
- if ( 'excl' == $tax_display ) {
365
- if ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ){
366
- $ex_tax_label = wc_prices_include_tax() ? 1 : 0;
367
- }else{
368
- $ex_tax_label = $order->prices_include_tax ? 1 : 0;
369
- }
370
-
371
-
372
- $subtotal = wc_price( $order->get_item_subtotal( $item ), array( 'ex_tax_label' => $ex_tax_label, 'currency' => $wdn_order_currency ) );
373
- } else {
374
- $subtotal = wc_price( $order->get_item_subtotal( $item, true ), array('currency' => $wdn_order_currency ) );
375
- }
376
-
377
- return apply_filters( 'wcdn_formatted_item_price', $subtotal, $item, $order );
378
- }
379
-
380
- /**
381
- * Add refund totals
382
- */
383
- function wcdn_add_refunded_order_totals( $total_rows, $order ) {
384
- if( wcdn_has_refund( $order ) ) {
385
- $wdn_order_currency = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_currency() : $order->get_order_currency();
386
-
387
- if( version_compare( WC_VERSION, '2.3.0', '>=' ) ) {
388
- $refunded_tax_del = '';
389
- $refunded_tax_ins = '';
390
-
391
- // Tax for inclusive prices
392
- if ( wc_tax_enabled() && 'incl' == $order->tax_display_cart ) {
393
- $tax_del_array = array();
394
- $tax_ins_array = array();
395
-
396
- if ( 'itemized' == get_option( 'woocommerce_tax_total_display' ) ) {
397
-
398
- foreach ( $order->get_tax_totals() as $code => $tax ) {
399
- $tax_del_array[] = sprintf( '%s %s', $tax->formatted_amount, $tax->label );
400
- $tax_ins_array[] = sprintf( '%s %s', wc_price( $tax->amount - $order->get_total_tax_refunded_by_rate_id( $tax->rate_id ), array( 'currency' => $wdn_order_currency ) ), $tax->label );
401
- }
402
-
403
- } else {
404
- $tax_del_array[] = sprintf( '%s %s', wc_price( $order->get_total_tax(), array( 'currency' => $wdn_order_currency ) ), WC()->countries->tax_or_vat() );
405
- $tax_ins_array[] = sprintf( '%s %s', wc_price( $order->get_total_tax() - $order->get_total_tax_refunded(), array( 'currency' => $wdn_order_currency ) ), WC()->countries->tax_or_vat() );
406
- }
407
-
408
- if ( ! empty( $tax_del_array ) ) {
409
- $refunded_tax_del .= ' ' . sprintf( __( '(Includes %s)', 'woocommerce' ), implode( ', ', $tax_del_array ) );
410
- }
411
-
412
- if ( ! empty( $tax_ins_array ) ) {
413
- $refunded_tax_ins .= ' ' . sprintf( __( '(Includes %s)', 'woocommerce' ), implode( ', ', $tax_ins_array ) );
414
- }
415
- }
416
-
417
- // use only the number for new wc versions
418
- $order_subtotal = wc_price( $order->get_total(), array( 'currency' => $wdn_order_currency ) );
419
- } else {
420
- $refunded_tax_del = '';
421
- $refunded_tax_ins = '';
422
-
423
- // use the normal total for older wc versions
424
- $order_subtotal = $total_rows['order_total']['value'];
425
- }
426
-
427
- // Add refunded totals row
428
- $total_rows['wcdn_refunded_total'] = array(
429
- 'label' => __( 'Refund', 'woocommerce-delivery-notes' ),
430
- 'value' => wc_price( -$order->get_total_refunded(), array( 'currency' => $wdn_order_currency ) )
431
- );
432
-
433
- // Add new order totals row
434
- $total_rows['wcdn_order_total'] = array(
435
- 'label' => $total_rows['order_total']['label'],
436
- 'value' => wc_price( $order->get_total() - $order->get_total_refunded(), array( 'currency' => $wdn_order_currency ) ) . $refunded_tax_ins
437
- );
438
-
439
- // Edit the original order total row
440
- $total_rows['order_total'] = array(
441
- 'label' => __( 'Order Subtotal', 'woocommerce-delivery-notes' ),
442
- 'value' => $order_subtotal
443
- );
444
- }
445
-
446
- return $total_rows;
447
- }
448
-
449
- /**
450
- * Remove the semicolon from the totals
451
- */
452
- function wcdn_remove_semicolon_from_totals( $total_rows, $order ) {
453
- foreach( $total_rows as $key => $row ) {
454
- $label = $row['label'];
455
- $colon = strrpos( $label, ':' );
456
- if( $colon !== false ) {
457
- $label = substr_replace( $label, '', $colon, 1 );
458
- }
459
- $total_rows[$key]['label'] = $label;
460
- }
461
- return $total_rows;
462
- }
463
-
464
- /**
465
- * Remove the payment method text from the totals
466
- */
467
- function wcdn_remove_payment_method_from_totals( $total_rows, $order ) {
468
- unset($total_rows['payment_method']);
469
- return $total_rows;
470
- }
471
-
472
- /**
473
- * Return customer notes
474
- */
475
- function wcdn_get_customer_notes( $order ) {
476
- global $wcdn;
477
-
478
- $wdn_order_customer_notes = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_customer_note() : $order->customer_note;
479
- return stripslashes( wpautop( wptexturize( $wdn_order_customer_notes ) ) );
480
- }
481
-
482
- /**
483
- * Show customer notes
484
- */
485
- function wcdn_customer_notes( $order ) {
486
- global $wcdn;
487
- echo wcdn_get_customer_notes( $order );
488
- }
489
-
490
- /**
491
- * Return has customer notes
492
- */
493
- function wcdn_has_customer_notes( $order ) {
494
- global $wcdn;
495
- if( wcdn_get_customer_notes( $order ) ) {
496
- return true;
497
- } else {
498
- return false;
499
- }
500
- }
501
-
502
- /**
503
- * Return personal notes, season greetings etc.
504
- */
505
- function wcdn_get_personal_notes() {
506
- global $wcdn;
507
- return stripslashes( wpautop( wptexturize( get_option( 'wcdn_personal_notes' ) ) ) );
508
- }
509
-
510
- /**
511
- * Show personal notes, season greetings etc.
512
- */
513
- function wcdn_personal_notes() {
514
- global $wcdn;
515
- echo wcdn_get_personal_notes();
516
- }
517
-
518
- /**
519
- * Return policy for returns
520
- */
521
- function wcdn_get_policies_conditions() {
522
- global $wcdn;
523
- return stripslashes( wpautop( wptexturize( get_option( 'wcdn_policies_conditions' ) ) ) );
524
- }
525
-
526
- /**
527
- * Show policy for returns
528
- */
529
- function wcdn_policies_conditions() {
530
- global $wcdn;
531
- echo wcdn_get_policies_conditions();
532
- }
533
-
534
- /**
535
- * Return shop/company footer imprint, copyright etc.
536
- */
537
- function wcdn_get_imprint() {
538
- global $wcdn;
539
- return stripslashes( wpautop( wptexturize( get_option( 'wcdn_footer_imprint' ) ) ) );
540
- }
541
-
542
- /**
543
- * Show shop/company footer imprint, copyright etc.
544
- */
545
- function wcdn_imprint() {
546
- global $wcdn;
547
- echo wcdn_get_imprint();
548
- }
549
-
550
-
551
- ?>
1
+ <?php
2
+
3
+ /**
4
+ * Exit if accessed directly
5
+ */
6
+ if ( !defined( 'ABSPATH' ) ) {
7
+ exit;
8
+ }
9
+
10
+ /**
11
+ * Output the template part
12
+ */
13
+ function wcdn_get_template_content( $name, $args = null ) {
14
+ global $wcdn;
15
+ $location = $wcdn->print->get_template_file_location( $name );
16
+ if( $location ) {
17
+ wc_get_template( $name, $args, $location, $location );
18
+ }
19
+ }
20
+
21
+ /**
22
+ * Return Type of the print template
23
+ */
24
+ function wcdn_get_template_type() {
25
+ global $wcdn;
26
+ return apply_filters( 'wcdn_template_type', $wcdn->print->template['type'] );
27
+ }
28
+
29
+ /**
30
+ * Return Title of the print template
31
+ */
32
+ function wcdn_get_template_title() {
33
+ global $wcdn;
34
+ return apply_filters( 'wcdn_template_title', __( $wcdn->print->template['labels']['name'], 'woocommerce-delivery-notes' ) );
35
+ }
36
+
37
+ /**
38
+ * Return print page link
39
+ */
40
+ function wcdn_get_print_link( $order_ids, $template_type = 'order', $order_email = null, $permalink = false ) {
41
+ global $wcdn;
42
+ return $wcdn->print->get_print_page_url( $order_ids, $template_type, $order_email, $permalink );
43
+ }
44
+
45
+ /**
46
+ * Output the document title depending on type
47
+ */
48
+ function wcdn_document_title() {
49
+ echo apply_filters( 'wcdn_document_title', wcdn_get_template_title() );
50
+ }
51
+
52
+ /**
53
+ * Output the print navigation style
54
+ */
55
+ function wcdn_navigation_style() {
56
+ ?>
57
+ <style>
58
+ #navigation {
59
+ font-family: sans-serif;
60
+ background-color: #f1f1f1;
61
+ z-index: 200;
62
+ border-bottom: 1px solid #dfdfdf;
63
+ left: 0;
64
+ right: 0;
65
+ bottom: 0;
66
+ position: fixed;
67
+ padding: 6px 8px;
68
+ text-align: right;
69
+ }
70
+
71
+ #navigation .button {
72
+ transition-property: border, background, color;
73
+ display: inline-block;
74
+ font-size: 13px;
75
+ line-height: 26px;
76
+ height: 28px;
77
+ margin: 0;
78
+ padding: 0 10px 1px;
79
+ cursor: pointer;
80
+ border-width: 1px;
81
+ border-style: solid;
82
+ -webkit-border-radius: 3px;
83
+ -webkit-appearance: none;
84
+ border-radius: 3px;
85
+ white-space: nowrap;
86
+ -webkit-box-sizing: border-box;
87
+ -moz-box-sizing: border-box;
88
+ box-sizing: border-box;
89
+
90
+ background: #2ea2cc;
91
+ border-color: #0074a2;
92
+ -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.5), 0 1px 0 rgba(0,0,0,.15);
93
+ box-shadow: inset 0 1px 0 rgba(120,200,230,0.5), 0 1px 0 rgba(0,0,0,.15);
94
+ color: #fff;
95
+ text-decoration: none;
96
+ }
97
+
98
+ #navigation .button:hover,
99
+ #navigation .button:focus {
100
+ background: #1e8cbe;
101
+ border-color: #0074a2;
102
+ -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
103
+ box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);
104
+ color: #fff;
105
+ }
106
+
107
+ #navigation .button:active {
108
+ background: #1b7aa6;
109
+ border-color: #005684;
110
+ color: rgba(255,255,255,0.95);
111
+ -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
112
+ box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);
113
+ }
114
+
115
+ @media print {
116
+ #navigation {
117
+ display: none;
118
+ }
119
+ }
120
+ </style>
121
+ <?php
122
+ }
123
+
124
+ /**
125
+ * Create print navigation
126
+ */
127
+ function wcdn_navigation() {
128
+ ?>
129
+ <div id="navigation">
130
+ <a href="#" class="button" onclick="window.print();return false;"><?php _e( 'Print', 'woocommerce-delivery-notes' ); ?></a>
131
+ </div><!-- #navigation -->
132
+ <?php
133
+ }
134
+
135
+ /**
136
+ * Output template stylesheet
137
+ */
138
+ function wcdn_template_stylesheet() {
139
+ global $wcdn;
140
+ $name = apply_filters( 'wcdn_template_stylesheet_name', 'style.css' );
141
+ ?>
142
+ <link rel="stylesheet" href="<?php echo $wcdn->print->get_template_file_location( $name, true ) . $name; ?>" type="text/css" media="screen,print" />
143
+ <?php
144
+ }
145
+
146
+ /**
147
+ * Output the template print content
148
+ */
149
+ function wcdn_content( $order, $template_type ) {
150
+ global $wcdn;
151
+
152
+ // Add WooCommerce hooks here to not
153
+ // make global changes to the totals
154
+ add_filter( 'woocommerce_get_order_item_totals', 'wcdn_remove_semicolon_from_totals', 10, 2 );
155
+ add_filter( 'woocommerce_get_order_item_totals', 'wcdn_remove_payment_method_from_totals', 20, 2 );
156
+ add_filter( 'woocommerce_get_order_item_totals', 'wcdn_add_refunded_order_totals', 30, 2 );
157
+
158
+ // Load the template
159
+ wcdn_get_template_content( 'print-content.php', array( 'order' => $order, 'template_type' => $template_type ) );
160
+ }
161
+
162
+ /**
163
+ * Return logo id
164
+ */
165
+ function wcdn_get_company_logo_id() {
166
+ global $wcdn;
167
+ return apply_filters( 'wcdn_company_logo_id', get_option( 'wcdn_company_logo_image_id' ) );
168
+ }
169
+
170
+ /**
171
+ * Show logo html
172
+ */
173
+ function wcdn_company_logo() {
174
+ global $wcdn;
175
+ $attachment_id = wcdn_get_company_logo_id();
176
+ $company = get_option( 'wcdn_custom_company_name' );
177
+ if( $attachment_id ) {
178
+ $attachment_src = wp_get_attachment_image_src( $attachment_id, 'full', false );
179
+
180
+ // resize the image to a 1/4 of the original size
181
+ // to have a printing point density of about 288ppi.
182
+ ?>
183
+ <img src="<?php echo $attachment_src[0]; ?>" width="<?php echo round( $attachment_src[1] / 4 ); ?>" height="<?php echo round( $attachment_src[2] / 4 ); ?>" alt="<?php echo esc_attr( $company ); ?>" />
184
+ <?php
185
+ }
186
+ }
187
+
188
+ /**
189
+ * Return default title name of Delivery Note
190
+ */
191
+ function wcdn_company_name() {
192
+ global $wcdn;
193
+ $name = trim( get_option( 'wcdn_custom_company_name' ) );
194
+ if( !empty( $name ) ) {
195
+ echo apply_filters( 'wcdn_company_name', stripslashes( wptexturize( $name ) ) );
196
+ } else {
197
+ echo apply_filters( 'wcdn_company_name', get_bloginfo( 'name' ) );
198
+ }
199
+ }
200
+
201
+ /**
202
+ * Return shop/company info if provided
203
+ */
204
+ function wcdn_company_info() {
205
+ global $wcdn;
206
+ echo stripslashes( wpautop( wptexturize( get_option( 'wcdn_company_address' ) ) ) );
207
+ }
208
+
209
+ /**
210
+ * Get orders as array. Every order is a normal WC_Order instance.
211
+ */
212
+ function wcdn_get_orders() {
213
+ global $wcdn;
214
+ return $wcdn->print->orders;
215
+ }
216
+
217
+ /**
218
+ * Get an order
219
+ */
220
+ function wcdn_get_order( $order_id ) {
221
+ global $wcdn;
222
+ return $wcdn->print->get_order( $order_id );
223
+ }
224
+
225
+ /**
226
+ * Get the order info fields
227
+ */
228
+ function wcdn_get_order_info( $order ) {
229
+ global $wcdn;
230
+ $fields = array();
231
+ $create_invoice_number = get_option( 'wcdn_create_invoice_number' );
232
+
233
+
234
+
235
+ $wdn_order_id = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_id() : $order->id;
236
+ $order_post = get_post( $wdn_order_id );
237
+
238
+ $wdn_order_order_date = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order_post->post_date : $order->order_date;
239
+ $wdn_order_payment_method_title = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_payment_method_title() : $order->payment_method_title;
240
+ $wdn_order_billing_id = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_billing_email() : $order->billing_email;
241
+ $wdn_order_billing_phone = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_billing_phone() : $order->billing_phone;
242
+
243
+ if( wcdn_get_template_type() == 'invoice' && !empty( $create_invoice_number ) && $create_invoice_number == 'yes' ) {
244
+
245
+ $fields['invoice_number'] = array(
246
+ 'label' => __( 'Invoice Number', 'woocommerce-delivery-notes' ),
247
+ 'value' => wcdn_get_order_invoice_number( $wdn_order_id )
248
+ );
249
+ }
250
+
251
+ if( wcdn_get_template_type() == 'invoice:' ) {
252
+ $fields['invoice_date'] = array(
253
+ 'label' => __( 'Invoice Date', 'woocommerce-delivery-notes' ),
254
+ 'value' => wcdn_get_order_invoice_date( $wdn_order_id )
255
+ );
256
+ }
257
+
258
+ $fields['order_number'] = array(
259
+ 'label' => __( 'Order Number', 'woocommerce-delivery-notes' ),
260
+ 'value' => $order->get_order_number()
261
+ );
262
+
263
+ $fields['order_date'] = array(
264
+ 'label' => __( 'Order Date', 'woocommerce-delivery-notes' ),
265
+ 'value' => date_i18n( get_option( 'date_format' ), strtotime( $wdn_order_order_date ) )
266
+ );
267
+
268
+ $fields['payment_method'] = array(
269
+ 'label' => __( 'Payment Method', 'woocommerce-delivery-notes' ),
270
+ 'value' => __( $wdn_order_payment_method_title, 'woocommerce' )
271
+ );
272
+
273
+ if( $wdn_order_billing_id ) {
274
+ $fields['billing_email'] = array(
275
+ 'label' => __( 'Email', 'woocommerce-delivery-notes' ),
276
+ 'value' => $wdn_order_billing_id
277
+ );
278
+ }
279
+
280
+ if( $wdn_order_billing_phone ) {
281
+ $fields['billing_phone'] = array(
282
+ 'label' => __( 'Telephone', 'woocommerce-delivery-notes' ),
283
+ 'value' => $wdn_order_billing_phone
284
+ );
285
+ }
286
+
287
+ return $fields;
288
+ }
289
+
290
+ /**
291
+ * Get the invoice number of an order
292
+ */
293
+ function wcdn_get_order_invoice_number( $order_id ) {
294
+ global $wcdn;
295
+ return $wcdn->print->get_order_invoice_number( $order_id );
296
+ }
297
+
298
+ /**
299
+ * Get the invoice date of an order
300
+ */
301
+ function wcdn_get_order_invoice_date( $order_id ) {
302
+ global $wcdn;
303
+ return $wcdn->print->get_order_invoice_date( $order_id );
304
+ }
305
+
306
+ /**
307
+ * Additional fields for the product
308
+ */
309
+ function wcdn_additional_product_fields( $fields = null, $product = null, $order ) {
310
+ $new_fields = array();
311
+
312
+ // Stock keeping unit
313
+ if( $product && $product->exists() && $product->get_sku() ) {
314
+ $fields['sku'] = array(
315
+ 'label' => __( 'SKU:', 'woocommerce-delivery-notes' ),
316
+ 'value' => $product->get_sku()
317
+ );
318
+ }
319
+ return array_merge( $fields, $new_fields );
320
+ }
321
+
322
+ /**
323
+ * Check if a shipping address is enabled
324
+ */
325
+ function wcdn_has_shipping_address( $order ) {
326
+ // Works only with WooCommerce 2.2 and higher
327
+ if( version_compare( WC_VERSION, '2.2.0', '>=' ) ) {
328
+ if( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && get_option( 'woocommerce_calc_shipping' ) !== 'no' ) {
329
+ return true;
330
+ } else {
331
+ return false;
332
+ }
333
+ }
334
+ return true;
335
+ }
336
+
337
+ /**
338
+ * Check if an order contains a refund
339
+ */
340
+ function wcdn_has_refund( $order ) {
341
+ // Works only with WooCommerce 2.2 and higher
342
+ if( version_compare( WC_VERSION, '2.2.0', '>=' ) ) {
343
+ if( $order->get_total_refunded() ) {
344
+ return true;
345
+ }
346
+ }
347
+ return false;
348
+ }
349
+
350
+ /**
351
+ * Gets formatted item subtotal for display.
352
+ */
353
+ function wcdn_get_formatted_item_price( $order, $item, $tax_display = '' ) {
354
+ if ( ! $tax_display ) {
355
+ $tax_display = get_option( 'woocommerce_tax_display_cart' );
356
+ }
357
+
358
+ if ( ! isset( $item['line_subtotal'] ) || ! isset( $item['line_subtotal_tax'] ) ) {
359
+ return '';
360
+ }
361
+
362
+ $wdn_order_currency = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_currency() : $order->get_order_currency();
363
+
364
+ if ( 'excl' == $tax_display ) {
365
+ if ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ){
366
+ $ex_tax_label = wc_prices_include_tax() ? 1 : 0;
367
+ }else{
368
+ $ex_tax_label = $order->prices_include_tax ? 1 : 0;
369
+ }
370
+
371
+
372
+ $subtotal = wc_price( $order->get_item_subtotal( $item ), array( 'ex_tax_label' => $ex_tax_label, 'currency' => $wdn_order_currency ) );
373
+ } else {
374
+ $subtotal = wc_price( $order->get_item_subtotal( $item, true ), array('currency' => $wdn_order_currency ) );
375
+ }
376
+
377
+ return apply_filters( 'wcdn_formatted_item_price', $subtotal, $item, $order );
378
+ }
379
+
380
+ /**
381
+ * Add refund totals
382
+ */
383
+ function wcdn_add_refunded_order_totals( $total_rows, $order ) {
384
+ if( wcdn_has_refund( $order ) ) {
385
+ $wdn_order_currency = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_currency() : $order->get_order_currency();
386
+
387
+ if( version_compare( WC_VERSION, '2.3.0', '>=' ) ) {
388
+ $refunded_tax_del = '';
389
+ $refunded_tax_ins = '';
390
+
391
+ // Tax for inclusive prices
392
+ if ( wc_tax_enabled() && 'incl' == $order->tax_display_cart ) {
393
+ $tax_del_array = array();
394
+ $tax_ins_array = array();
395
+
396
+ if ( 'itemized' == get_option( 'woocommerce_tax_total_display' ) ) {
397
+
398
+ foreach ( $order->get_tax_totals() as $code => $tax ) {
399
+ $tax_del_array[] = sprintf( '%s %s', $tax->formatted_amount, $tax->label );
400
+ $tax_ins_array[] = sprintf( '%s %s', wc_price( $tax->amount - $order->get_total_tax_refunded_by_rate_id( $tax->rate_id ), array( 'currency' => $wdn_order_currency ) ), $tax->label );
401
+ }
402
+
403
+ } else {
404
+ $tax_del_array[] = sprintf( '%s %s', wc_price( $order->get_total_tax(), array( 'currency' => $wdn_order_currency ) ), WC()->countries->tax_or_vat() );
405
+ $tax_ins_array[] = sprintf( '%s %s', wc_price( $order->get_total_tax() - $order->get_total_tax_refunded(), array( 'currency' => $wdn_order_currency ) ), WC()->countries->tax_or_vat() );
406
+ }
407
+
408
+ if ( ! empty( $tax_del_array ) ) {
409
+ $refunded_tax_del .= ' ' . sprintf( __( '(Includes %s)', 'woocommerce' ), implode( ', ', $tax_del_array ) );
410
+ }
411
+
412
+ if ( ! empty( $tax_ins_array ) ) {
413
+ $refunded_tax_ins .= ' ' . sprintf( __( '(Includes %s)', 'woocommerce' ), implode( ', ', $tax_ins_array ) );
414
+ }
415
+ }
416
+
417
+ // use only the number for new wc versions
418
+ $order_subtotal = wc_price( $order->get_total(), array( 'currency' => $wdn_order_currency ) );
419
+ } else {
420
+ $refunded_tax_del = '';
421
+ $refunded_tax_ins = '';
422
+
423
+ // use the normal total for older wc versions
424
+ $order_subtotal = $total_rows['order_total']['value'];
425
+ }
426
+
427
+ // Add refunded totals row
428
+ $total_rows['wcdn_refunded_total'] = array(
429
+ 'label' => __( 'Refund', 'woocommerce-delivery-notes' ),
430
+ 'value' => wc_price( -$order->get_total_refunded(), array( 'currency' => $wdn_order_currency ) )
431
+ );
432
+
433
+ // Add new order totals row
434
+ $total_rows['wcdn_order_total'] = array(
435
+ 'label' => $total_rows['order_total']['label'],
436
+ 'value' => wc_price( $order->get_total() - $order->get_total_refunded(), array( 'currency' => $wdn_order_currency ) ) . $refunded_tax_ins
437
+ );
438
+
439
+ // Edit the original order total row
440
+ $total_rows['order_total'] = array(
441
+ 'label' => __( 'Order Subtotal', 'woocommerce-delivery-notes' ),
442
+ 'value' => $order_subtotal
443
+ );
444
+ }
445
+
446
+ return $total_rows;
447
+ }
448
+
449
+ /**
450
+ * Remove the semicolon from the totals
451
+ */
452
+ function wcdn_remove_semicolon_from_totals( $total_rows, $order ) {
453
+ foreach( $total_rows as $key => $row ) {
454
+ $label = $row['label'];
455
+ $colon = strrpos( $label, ':' );
456
+ if( $colon !== false ) {
457
+ $label = substr_replace( $label, '', $colon, 1 );
458
+ }
459
+ $total_rows[$key]['label'] = $label;
460
+ }
461
+ return $total_rows;
462
+ }
463
+
464
+ /**
465
+ * Remove the payment method text from the totals
466
+ */
467
+ function wcdn_remove_payment_method_from_totals( $total_rows, $order ) {
468
+ unset($total_rows['payment_method']);
469
+ return $total_rows;
470
+ }
471
+
472
+ /**
473
+ * Return customer notes
474
+ */
475
+ function wcdn_get_customer_notes( $order ) {
476
+ global $wcdn;
477
+
478
+ $wdn_order_customer_notes = ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) ? $order->get_customer_note() : $order->customer_note;
479
+ return stripslashes( wpautop( wptexturize( $wdn_order_customer_notes ) ) );
480
+ }
481
+
482
+ /**
483
+ * Show customer notes
484
+ */
485
+ function wcdn_customer_notes( $order ) {
486
+ global $wcdn;
487
+ echo wcdn_get_customer_notes( $order );
488
+ }
489
+
490
+ /**
491
+ * Return has customer notes
492
+ */
493
+ function wcdn_has_customer_notes( $order ) {
494
+ global $wcdn;
495
+ if( wcdn_get_customer_notes( $order ) ) {
496
+ return true;
497
+ } else {
498
+ return false;
499
+ }
500
+ }
501
+
502
+ /**
503
+ * Return personal notes, season greetings etc.
504
+ */
505
+ function wcdn_get_personal_notes() {
506
+ global $wcdn;
507
+ return stripslashes( wpautop( wptexturize( get_option( 'wcdn_personal_notes' ) ) ) );
508
+ }
509
+
510
+ /**
511
+ * Show personal notes, season greetings etc.
512
+ */
513
+ function wcdn_personal_notes() {
514
+ global $wcdn;
515
+ echo wcdn_get_personal_notes();
516
+ }
517
+
518
+ /**
519
+ * Return policy for returns
520
+ */
521
+ function wcdn_get_policies_conditions() {
522
+ global $wcdn;
523
+ return stripslashes( wpautop( wptexturize( get_option( 'wcdn_policies_conditions' ) ) ) );
524
+ }
525
+
526
+ /**
527
+ * Show policy for returns
528
+ */
529
+ function wcdn_policies_conditions() {
530
+ global $wcdn;
531
+ echo wcdn_get_policies_conditions();
532
+ }
533
+
534
+ /**
535
+ * Return shop/company footer imprint, copyright etc.
536
+ */
537
+ function wcdn_get_imprint() {
538
+ global $wcdn;
539
+ return stripslashes( wpautop( wptexturize( get_option( 'wcdn_footer_imprint' ) ) ) );
540
+ }
541
+
542
+ /**
543
+ * Show shop/company footer imprint, copyright etc.
544
+ */
545
+ function wcdn_imprint() {
546
+ global $wcdn;
547
+ echo wcdn_get_imprint();
548
+ }
549
+
550
+
551
+ ?>
languages/woocommerce-delivery-notes-ja.mo ADDED
Binary file
languages/woocommerce-delivery-notes-ja.po ADDED
@@ -0,0 +1,551 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This German Language File: Copyright (C) 2011-2013 by David Decker of deckerweb.de & genesisthemes.de
2
+ # This file is distributed under the same license as the WooCommerce Print Invoices & Delivery Notes Plugin package.
3
+ #
4
+ # Weitere deutsche Sprachdateien fuer WooCommerce und Extensions (Erweiterungen)
5
+ # sowie fuer WordPress-Plugins und -Themes finden Sie unter:
6
+ # --> http://deckerweb.de/sprachdateien/
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Project-Id-Version: WooCommerce Print Invoice & Delivery Note\n"
11
+ "Report-Msgid-Bugs-To: http://deckerweb.de/kontakt/\n"
12
+ "POT-Creation-Date: 2017-05-10 16:13+0900\n"
13
+ "PO-Revision-Date: 2017-05-10 17:07+0900\n"
14
+ "Language-Team: \n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=UTF-8\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Plural-Forms: nplurals=1; plural=0;\n"
19
+ "X-Generator: Poedit 1.8.11\n"
20
+ "X-Poedit-SourceCharset: UTF-8\n"
21
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
22
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
23
+ "esc_attr_e;esc_attr__\n"
24
+ "X-Poedit-Basepath: .\n"
25
+ "X-Textdomain-Support: yes\n"
26
+ "Last-Translator: \n"
27
+ "Language: ja\n"
28
+ "X-Poedit-SearchPath-0: ..\n"
29
+
30
+ # @ woocommerce-delivery-notes
31
+ #: ../includes/class-wcdn-print.php:41
32
+ msgid "Invoice"
33
+ msgstr "請求書"
34
+
35
+ #: ../includes/class-wcdn-print.php:42
36
+ msgid "Invoices"
37
+ msgstr "請求書"
38
+
39
+ # @ woocommerce-delivery-notes
40
+ #: ../includes/class-wcdn-print.php:43
41
+ msgid "Print Invoice"
42
+ msgstr "請求書印刷"
43
+
44
+ #: ../includes/class-wcdn-print.php:44
45
+ msgid "Print Invoices"
46
+ msgstr "請求書印刷"
47
+
48
+ # @ woocommerce-delivery-notes
49
+ #: ../includes/class-wcdn-print.php:45
50
+ msgid "Invoice created."
51
+ msgstr ""
52
+
53
+ #: ../includes/class-wcdn-print.php:46
54
+ msgid "Invoices created."
55
+ msgstr ""
56
+
57
+ #: ../includes/class-wcdn-print.php:47
58
+ msgid "Enable Invoices"
59
+ msgstr ""
60
+
61
+ # @ woocommerce-delivery-notes
62
+ #: ../includes/class-wcdn-print.php:53
63
+ msgid "Delivery Note"
64
+ msgstr "納品書"
65
+
66
+ #: ../includes/class-wcdn-print.php:54
67
+ msgid "Delivery Notes"
68
+ msgstr "納品書"
69
+
70
+ # @ woocommerce-delivery-notes
71
+ #: ../includes/class-wcdn-print.php:55
72
+ msgid "Print Delivery Note"
73
+ msgstr "納品書印刷"
74
+
75
+ #: ../includes/class-wcdn-print.php:56
76
+ msgid "Print Delivery Notes"
77
+ msgstr "納品書印刷"
78
+
79
+ #: ../includes/class-wcdn-print.php:57
80
+ msgid "Delivery Note created."
81
+ msgstr ""
82
+
83
+ #: ../includes/class-wcdn-print.php:58
84
+ msgid "Delivery Notes created."
85
+ msgstr ""
86
+
87
+ #: ../includes/class-wcdn-print.php:59
88
+ msgid "Enable Delivery Notes"
89
+ msgstr ""
90
+
91
+ #: ../includes/class-wcdn-print.php:65
92
+ msgid "Receipt"
93
+ msgstr ""
94
+
95
+ #: ../includes/class-wcdn-print.php:66
96
+ msgid "Receipts"
97
+ msgstr ""
98
+
99
+ #: ../includes/class-wcdn-print.php:67
100
+ msgid "Print Receipt"
101
+ msgstr "領収書印刷"
102
+
103
+ #: ../includes/class-wcdn-print.php:68
104
+ msgid "Print Receipts"
105
+ msgstr "領収書印刷"
106
+
107
+ #: ../includes/class-wcdn-print.php:69
108
+ msgid "Receipt created."
109
+ msgstr ""
110
+
111
+ #: ../includes/class-wcdn-print.php:70
112
+ msgid "Receipts created."
113
+ msgstr ""
114
+
115
+ #: ../includes/class-wcdn-print.php:71
116
+ msgid "Enable Receipts"
117
+ msgstr ""
118
+
119
+ # @ woocommerce-delivery-notes
120
+ #: ../includes/class-wcdn-print.php:80
121
+ msgid "Order"
122
+ msgstr "注文"
123
+
124
+ #: ../includes/class-wcdn-print.php:81
125
+ msgid "Orders"
126
+ msgstr "注文"
127
+
128
+ # @ woocommerce-delivery-notes
129
+ #: ../includes/class-wcdn-print.php:82 ../includes/class-wcdn-settings.php:157
130
+ msgid "Print Order"
131
+ msgstr ""
132
+
133
+ #: ../includes/class-wcdn-print.php:83
134
+ msgid "Print Orders"
135
+ msgstr ""
136
+
137
+ #: ../includes/class-wcdn-settings.php:72
138
+ msgid ""
139
+ "Do you really want to reset the counter to zero? This process can't be "
140
+ "undone."
141
+ msgstr ""
142
+
143
+ # @ woocommerce-delivery-notes
144
+ #: ../includes/class-wcdn-settings.php:102 ../includes/class-wcdn-theme.php:56
145
+ #: ../includes/class-wcdn-theme.php:91
146
+ #: ../includes/wcdn-template-functions.php:127
147
+ msgid "Print"
148
+ msgstr ""
149
+
150
+ #: ../includes/class-wcdn-settings.php:176
151
+ #, php-format
152
+ msgid ""
153
+ "You can preview the <a href=\"%1$s\" target=\"%4$s\" class=\"%5$s\">invoice</"
154
+ "a>, <a href=\"%2$s\" target=\"%4$s\" class=\"%5$s\">delivery note</a> or <a "
155
+ "href=\"%3$s\" target=\"%4$s\" class=\"%5$s\">receipt</a> template."
156
+ msgstr ""
157
+
158
+ # @ woocommerce-delivery-notes
159
+ #: ../includes/class-wcdn-settings.php:177
160
+ msgid ""
161
+ "With the FAQ in the readme file you can learn how to customize the template."
162
+ msgstr ""
163
+
164
+ # @ woocommerce-delivery-notes
165
+ #: ../includes/class-wcdn-settings.php:188
166
+ msgid "Company/Shop Logo"
167
+ msgstr ""
168
+
169
+ # @ woocommerce-delivery-notes
170
+ #: ../includes/class-wcdn-settings.php:194
171
+ msgid "Remove Logo"
172
+ msgstr ""
173
+
174
+ # @ woocommerce-delivery-notes
175
+ #: ../includes/class-wcdn-settings.php:195
176
+ msgid "Set Logo"
177
+ msgstr ""
178
+
179
+ # @ woocommerce-delivery-notes
180
+ #: ../includes/class-wcdn-settings.php:199
181
+ msgid "A company/shop logo representing your business."
182
+ msgstr ""
183
+
184
+ # @ woocommerce-delivery-notes
185
+ #: ../includes/class-wcdn-settings.php:200
186
+ #: ../includes/class-wcdn-settings.php:213
187
+ #: ../includes/class-wcdn-settings.php:226
188
+ #: ../includes/class-wcdn-settings.php:239
189
+ #: ../includes/class-wcdn-settings.php:252
190
+ #: ../includes/class-wcdn-settings.php:265
191
+ #: ../includes/class-wcdn-settings.php:382
192
+ #: ../includes/class-wcdn-settings.php:397
193
+ #: ../includes/class-wcdn-settings.php:412
194
+ msgid "Note:"
195
+ msgstr ""
196
+
197
+ # @ woocommerce-delivery-notes
198
+ #: ../includes/class-wcdn-settings.php:201
199
+ msgid ""
200
+ "When the image is printed, its pixel density will automatically be eight "
201
+ "times higher than the original. This means, 1 printed inch will correspond "
202
+ "to about 288 pixels on the screen. Example: an image with a width of 576 "
203
+ "pixels and a height of 288 pixels will have a printed size of about 2 inches "
204
+ "to 1 inch."
205
+ msgstr ""
206
+
207
+ # @ woocommerce-delivery-notes
208
+ #: ../includes/class-wcdn-settings.php:207
209
+ msgid "Company/Shop Name"
210
+ msgstr ""
211
+
212
+ # @ woocommerce-delivery-notes
213
+ #: ../includes/class-wcdn-settings.php:212
214
+ msgid "Your company/shop name for the Delivery Note."
215
+ msgstr ""
216
+
217
+ # @ woocommerce-delivery-notes
218
+ #: ../includes/class-wcdn-settings.php:214
219
+ msgid ""
220
+ "Leave blank to use the default Website/Blog title defined in WordPress "
221
+ "settings. The name will be ignored when a Logo is set."
222
+ msgstr ""
223
+
224
+ # @ woocommerce-delivery-notes
225
+ #: ../includes/class-wcdn-settings.php:220
226
+ msgid "Company/Shop Address"
227
+ msgstr ""
228
+
229
+ # @ woocommerce-delivery-notes
230
+ #: ../includes/class-wcdn-settings.php:225
231
+ msgid ""
232
+ "The postal address of the company/shop or even e-mail or telephone, which "
233
+ "gets printed right after the company/shop name."
234
+ msgstr ""
235
+
236
+ # @ woocommerce-delivery-notes
237
+ #: ../includes/class-wcdn-settings.php:227
238
+ msgid "Leave blank to not print an address."
239
+ msgstr ""
240
+
241
+ #: ../includes/class-wcdn-settings.php:233
242
+ msgid "Complimentary Close"
243
+ msgstr ""
244
+
245
+ # @ woocommerce-delivery-notes
246
+ #: ../includes/class-wcdn-settings.php:238
247
+ msgid ""
248
+ "Add some personal notes, or season greetings or whatever (e.g. Thank You for "
249
+ "Your Order!, Merry Christmas!, etc.)."
250
+ msgstr ""
251
+
252
+ # @ woocommerce-delivery-notes
253
+ #: ../includes/class-wcdn-settings.php:240
254
+ msgid "Leave blank to not print any personal notes."
255
+ msgstr ""
256
+
257
+ # @ woocommerce-delivery-notes
258
+ #: ../includes/class-wcdn-settings.php:246
259
+ msgid "Returns Policy, Conditions, etc"
260
+ msgstr ""
261
+
262
+ # @ woocommerce-delivery-notes
263
+ #: ../includes/class-wcdn-settings.php:251
264
+ msgid ""
265
+ "Here you can add some more policies, conditions etc. For example add a "
266
+ "returns policy in case the client would like to send back some goods. In "
267
+ "some countries (e.g. in the European Union) this is required so please add "
268
+ "any required info in accordance with the statutory regulations."
269
+ msgstr ""
270
+
271
+ # @ woocommerce-delivery-notes
272
+ #: ../includes/class-wcdn-settings.php:253
273
+ msgid "Leave blank to not print any policies or conditions."
274
+ msgstr ""
275
+
276
+ # @ woocommerce-delivery-notes
277
+ #: ../includes/class-wcdn-settings.php:259
278
+ msgid "Footer"
279
+ msgstr ""
280
+
281
+ # @ woocommerce-delivery-notes
282
+ #: ../includes/class-wcdn-settings.php:264
283
+ msgid ""
284
+ "Add some further footer imprint, e-mail, telephone, copyright notes etc. "
285
+ "This makes the printed sheets a bit more branded."
286
+ msgstr ""
287
+
288
+ # @ woocommerce-delivery-notes
289
+ #: ../includes/class-wcdn-settings.php:266
290
+ msgid "Leave blank to not print a footer."
291
+ msgstr ""
292
+
293
+ #: ../includes/class-wcdn-settings.php:273
294
+ msgid "Print Options"
295
+ msgstr ""
296
+
297
+ #: ../includes/class-wcdn-settings.php:278
298
+ msgid "Types"
299
+ msgstr ""
300
+
301
+ #: ../includes/class-wcdn-settings.php:297
302
+ msgid "Theme Options"
303
+ msgstr ""
304
+
305
+ # @ woocommerce-delivery-notes
306
+ #: ../includes/class-wcdn-settings.php:302
307
+ msgid "Print Page Endpoint"
308
+ msgstr ""
309
+
310
+ # @ woocommerce-delivery-notes
311
+ #: ../includes/class-wcdn-settings.php:309
312
+ msgid ""
313
+ "The endpoint is appended to the accounts page URL to print the order. It "
314
+ "should be unique."
315
+ msgstr ""
316
+
317
+ #: ../includes/class-wcdn-settings.php:315
318
+ msgid "My Account"
319
+ msgstr ""
320
+
321
+ # @ woocommerce-delivery-notes
322
+ #: ../includes/class-wcdn-settings.php:322
323
+ msgid "Show print button on the \"View Order\" page"
324
+ msgstr ""
325
+
326
+ # @ woocommerce-delivery-notes
327
+ #: ../includes/class-wcdn-settings.php:329
328
+ msgid "Show print buttons on the \"My Account\" page"
329
+ msgstr ""
330
+
331
+ # @ woocommerce-delivery-notes
332
+ #: ../includes/class-wcdn-settings.php:336
333
+ #: ../includes/wcdn-template-functions.php:254
334
+ msgid "Email"
335
+ msgstr "Eメール"
336
+
337
+ #: ../includes/class-wcdn-settings.php:343
338
+ msgid "Show print link in customer emails"
339
+ msgstr ""
340
+
341
+ #: ../includes/class-wcdn-settings.php:347
342
+ msgid ""
343
+ "This includes the emails for a new, processing and completed order. On top "
344
+ "of that the customer invoice email also includes the link."
345
+ msgstr ""
346
+
347
+ # @ woocommerce-delivery-notes
348
+ #: ../includes/class-wcdn-settings.php:354
349
+ msgid "Order Numbering"
350
+ msgstr ""
351
+
352
+ #: ../includes/class-wcdn-settings.php:359
353
+ msgid "Invoice Numbering"
354
+ msgstr ""
355
+
356
+ #: ../includes/class-wcdn-settings.php:367
357
+ msgid "Create invoice numbers"
358
+ msgstr ""
359
+
360
+ #: ../includes/class-wcdn-settings.php:374
361
+ msgid "Invoice Number Start"
362
+ msgstr ""
363
+
364
+ #: ../includes/class-wcdn-settings.php:381
365
+ msgid "Start the numbering at the specified number."
366
+ msgstr ""
367
+
368
+ #: ../includes/class-wcdn-settings.php:383
369
+ msgid "Use only integers."
370
+ msgstr ""
371
+
372
+ #: ../includes/class-wcdn-settings.php:389
373
+ msgid "Invoice Number Prefix"
374
+ msgstr ""
375
+
376
+ #: ../includes/class-wcdn-settings.php:396
377
+ msgid "This text will be prepended to the invoice number."
378
+ msgstr ""
379
+
380
+ #: ../includes/class-wcdn-settings.php:398
381
+ msgid "Leave blank to not add a prefix."
382
+ msgstr ""
383
+
384
+ #: ../includes/class-wcdn-settings.php:404
385
+ msgid "Invoice Number Suffix"
386
+ msgstr ""
387
+
388
+ #: ../includes/class-wcdn-settings.php:411
389
+ msgid "This text will be appended to the invoice number."
390
+ msgstr ""
391
+
392
+ #: ../includes/class-wcdn-settings.php:413
393
+ msgid "Leave blank to not add a suffix."
394
+ msgstr ""
395
+
396
+ #: ../includes/class-wcdn-settings.php:419
397
+ msgid "Invoice Number Counter"
398
+ msgstr ""
399
+
400
+ #: ../includes/class-wcdn-settings.php:428
401
+ msgid "Reset Counter …"
402
+ msgstr ""
403
+
404
+ #: ../includes/class-wcdn-settings.php:434
405
+ msgid "Sequential Order Number"
406
+ msgstr ""
407
+
408
+ # @ woocommerce-delivery-notes
409
+ #: ../includes/class-wcdn-settings.php:439
410
+ msgid "Sequential numbering is enabled."
411
+ msgstr ""
412
+
413
+ # @ woocommerce-delivery-notes
414
+ #: ../includes/class-wcdn-settings.php:441
415
+ #, php-format
416
+ msgid ""
417
+ "Install and activate the free <a href=\"%s\">WooCommerce Sequential Order "
418
+ "Numbers</a> Plugin."
419
+ msgstr ""
420
+
421
+ #: ../includes/class-wcdn-theme.php:106
422
+ msgid "Print your order"
423
+ msgstr ""
424
+
425
+ #: ../includes/class-wcdn-theme.php:112
426
+ msgid "Print:"
427
+ msgstr ""
428
+
429
+ #: ../includes/class-wcdn-theme.php:112
430
+ msgid "Open print view in browser"
431
+ msgstr ""
432
+
433
+ # @ woocommerce-delivery-notes
434
+ #: ../includes/class-wcdn-writepanel.php:214
435
+ msgid "Print now"
436
+ msgstr ""
437
+
438
+ # @ woocommerce-delivery-notes
439
+ #: ../includes/class-wcdn-writepanel.php:228
440
+ msgid "Order Printing"
441
+ msgstr "書類印刷"
442
+
443
+ #: ../includes/class-wcdn-writepanel.php:256
444
+ msgid "Invoice number: "
445
+ msgstr ""
446
+
447
+ #: ../includes/class-wcdn-writepanel.php:257
448
+ msgid "Invoice date: "
449
+ msgstr ""
450
+
451
+ #: ../includes/wcdn-template-functions.php:232
452
+ msgid "Invoice Number"
453
+ msgstr ""
454
+
455
+ # @ woocommerce-delivery-notes
456
+ #: ../includes/wcdn-template-functions.php:238
457
+ msgid "Order Number"
458
+ msgstr "注文番号"
459
+
460
+ # @ woocommerce-delivery-notes
461
+ #: ../includes/wcdn-template-functions.php:243
462
+ msgid "Order Date"
463
+ msgstr "注文日"
464
+
465
+ # @ woocommerce-delivery-notes
466
+ #: ../includes/wcdn-template-functions.php:248
467
+ msgid "Payment Method"
468
+ msgstr "お支払い方法"
469
+
470
+ # @ woocommerce-delivery-notes
471
+ #: ../includes/wcdn-template-functions.php:261
472
+ msgid "Telephone"
473
+ msgstr "電話番号"
474
+
475
+ #: ../includes/wcdn-template-functions.php:294
476
+ msgid "SKU:"
477
+ msgstr ""
478
+
479
+ #: ../includes/wcdn-template-functions.php:380
480
+ #: ../includes/wcdn-template-functions.php:384
481
+ #, php-format
482
+ msgid "(Includes %s)"
483
+ msgstr ""
484
+
485
+ #: ../includes/wcdn-template-functions.php:400
486
+ msgid "Refund"
487
+ msgstr ""
488
+
489
+ #: ../includes/wcdn-template-functions.php:412
490
+ msgid "Order Subtotal"
491
+ msgstr ""
492
+
493
+ # @ woocommerce-delivery-notes
494
+ #: ../templates/print-order/print-content.php:28
495
+ msgid "Billing Address"
496
+ msgstr "請求先"
497
+
498
+ # @ woocommerce-delivery-notes
499
+ #: ../templates/print-order/print-content.php:31
500
+ #: ../templates/print-order/print-content.php:40
501
+ msgid "N/A"
502
+ msgstr ""
503
+
504
+ # @ woocommerce-delivery-notes
505
+ #: ../templates/print-order/print-content.php:37
506
+ msgid "Shipping Address"
507
+ msgstr "お届け先"
508
+
509
+ # @ woocommerce-delivery-notes
510
+ #: ../templates/print-order/print-content.php:70
511
+ msgid "Product"
512
+ msgstr ""
513
+
514
+ #: ../templates/print-order/print-content.php:71
515
+ msgid "Price"
516
+ msgstr ""
517
+
518
+ #: ../templates/print-order/print-content.php:72
519
+ msgid "Quantity"
520
+ msgstr ""
521
+
522
+ # @ woocommerce-delivery-notes
523
+ #: ../templates/print-order/print-content.php:73
524
+ msgid "Total"
525
+ msgstr ""
526
+
527
+ # @ woocommerce-delivery-notes
528
+ #: ../templates/print-order/print-content.php:97
529
+ msgid "Download:"
530
+ msgstr ""
531
+
532
+ # @ woocommerce-delivery-notes
533
+ #: ../templates/print-order/print-content.php:98
534
+ #, php-format
535
+ msgid "%s Files"
536
+ msgstr ""
537
+
538
+ # @ woocommerce-delivery-notes
539
+ #: ../templates/print-order/print-content.php:147
540
+ msgid "Customer Note"
541
+ msgstr ""
542
+
543
+ # @ woocommerce-delivery-notes
544
+ #: ../woocommerce-delivery-notes.php:181
545
+ msgid "Go to the settings page"
546
+ msgstr ""
547
+
548
+ # @ woocommerce-delivery-notes
549
+ #: ../woocommerce-delivery-notes.php:181
550
+ msgid "Settings"
551
+ msgstr ""
languages/woocommerce-delivery-notes-nb_NO.mo ADDED
Binary file
languages/woocommerce-delivery-notes-nb_NO.po ADDED
@@ -0,0 +1,564 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WooCommerce Print Invoice & Delivery Note\n"
4
+ "Report-Msgid-Bugs-To: http://deckerweb.de/kontakt/\n"
5
+ "POT-Creation-Date: 2015-01-31 15:44+0100\n"
6
+ "PO-Revision-Date: 2017-08-21 11: