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:16+0000\n"
7
+ "Last-Translator: Jon Kristian Nilsen <admin@divint.no>\n"
8
+ "Language-Team: Norwegian (Bokmål)\n"
9
+ "Language: nb-NO\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Plural-Forms: nplurals=2; plural=n != 1\n"
14
+ "X-Generator: Loco - https://localise.biz/\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;"
18
+ "esc_attr_e;esc_attr__\n"
19
+ "X-Poedit-Basepath: .\n"
20
+ "X-Textdomain-Support: yes\n"
21
+ "X-Poedit-SearchPath-0: .."
22
+
23
+ #: ../includes/class-wcdn-settings.php:233
24
+ msgid "Complimentary Close"
25
+ msgstr "Avsluttningskompliment"
26
+
27
+ # @ woocommerce-delivery-notes
28
+ #: ../includes/class-wcdn-settings.php:238
29
+ msgid ""
30
+ "Add some personal notes, or season greetings or whatever (e.g. Thank You for "
31
+ "Your Order!, Merry Christmas!, etc.)."
32
+ msgstr "Legg til personlig notat (f.eks. Takk for din ordre! God Jul!, etc.)."
33
+
34
+ # @ woocommerce-delivery-notes
35
+ #: ../includes/class-wcdn-settings.php:240
36
+ msgid "Leave blank to not print any personal notes."
37
+ msgstr "La stå tom for ikke å printe personlig notat."
38
+
39
+ # @ woocommerce-delivery-notes
40
+ #: ../includes/class-wcdn-settings.php:246
41
+ msgid "Returns Policy, Conditions, etc"
42
+ msgstr "Returrett, salgsbetingelser, etc."
43
+
44
+ # @ woocommerce-delivery-notes
45
+ #: ../includes/class-wcdn-settings.php:251
46
+ msgid ""
47
+ "Here you can add some more policies, conditions etc. For example add a "
48
+ "returns policy in case the client would like to send back some goods. In "
49
+ "some countries (e.g. in the European Union) this is required so please add "
50
+ "any required info in accordance with the statutory regulations."
51
+ msgstr ""
52
+ "Her kan du legge til flere betingelser. For eksempel en returrett i tilfelle "
53
+ "kunden ønsker å sende tilbake varer. I noen land (f.eks. EU) er dette "
54
+ "påkrevd så vennligst følg reglementet."
55
+
56
+ # @ woocommerce-delivery-notes
57
+ #: ../includes/class-wcdn-settings.php:253
58
+ msgid "Leave blank to not print any policies or conditions."
59
+ msgstr "La stå tom for ikke å skrive ut."
60
+
61
+ # @ woocommerce-delivery-notes
62
+ #: ../includes/class-wcdn-settings.php:259
63
+ msgid "Footer"
64
+ msgstr "Bunn"
65
+
66
+ # @ woocommerce-delivery-notes
67
+ #: ../includes/class-wcdn-settings.php:264
68
+ msgid ""
69
+ "Add some further footer imprint, e-mail, telephone, copyright notes etc. "
70
+ "This makes the printed sheets a bit more branded."
71
+ msgstr "Legg til noe i bunnen, e-post, telefon eller adresse."
72
+
73
+ # @ woocommerce-delivery-notes
74
+ #: ../includes/class-wcdn-settings.php:266
75
+ msgid "Leave blank to not print a footer."
76
+ msgstr "La stå tom for ikke å skrive ut."
77
+
78
+ #: ../includes/class-wcdn-settings.php:273
79
+ msgid "Print Options"
80
+ msgstr "Utskriftsvalg"
81
+
82
+ #: ../includes/class-wcdn-settings.php:278
83
+ msgid "Types"
84
+ msgstr "Typer"
85
+
86
+ #: ../includes/class-wcdn-settings.php:297
87
+ msgid "Theme Options"
88
+ msgstr "Temavalg"
89
+
90
+ # @ woocommerce-delivery-notes
91
+ #: ../includes/class-wcdn-settings.php:302
92
+ msgid "Print Page Endpoint"
93
+ msgstr "Utskriftssidens endepunkt"
94
+
95
+ # @ woocommerce-delivery-notes
96
+ #: ../includes/class-wcdn-settings.php:309
97
+ msgid ""
98
+ "The endpoint is appended to the accounts page URL to print the order. It "
99
+ "should be unique."
100
+ msgstr ""
101
+ "Endepunktet legges til kontoens URL for å skrive ut ordren. Den bør være "
102
+ "unik."
103
+
104
+ #: ../includes/class-wcdn-settings.php:315
105
+ msgid "My Account"
106
+ msgstr "Min konto"
107
+
108
+ # @ woocommerce-delivery-notes
109
+ #: ../includes/class-wcdn-settings.php:322
110
+ msgid "Show print button on the \"View Order\" page"
111
+ msgstr "Vis utskriftsknapp på \"Vis ordre\" -siden."
112
+
113
+ # @ woocommerce-delivery-notes
114
+ #: ../includes/class-wcdn-settings.php:329
115
+ msgid "Show print buttons on the \"My Account\" page"
116
+ msgstr "Vis utskriftsknapp på \"Min konto\" -siden."
117
+
118
+ # @ woocommerce-delivery-notes
119
+ #: ../includes/class-wcdn-settings.php:336
120
+ #: ../includes/wcdn-template-functions.php:254
121
+ msgid "Email"
122
+ msgstr "E-post"
123
+
124
+ #: ../includes/class-wcdn-settings.php:343
125
+ msgid "Show print link in customer emails"
126
+ msgstr "Vis skriv ut lenke i kundeepost."
127
+
128
+ #: ../includes/class-wcdn-settings.php:347
129
+ msgid ""
130
+ "This includes the emails for a new, processing and completed order. On top "
131
+ "of that the customer invoice email also includes the link."
132
+ msgstr ""
133
+ "Dette inkluderer e-post for ny, behandler og ferdigstilte ordre. I tillegg "
134
+ "vil kundefaktura også inkludere lenken."
135
+
136
+ # @ woocommerce-delivery-notes
137
+ #: ../includes/class-wcdn-settings.php:354
138
+ msgid "Order Numbering"
139
+ msgstr "Ordrenummerering"
140
+
141
+ #: ../includes/class-wcdn-settings.php:359
142
+ msgid "Invoice Numbering"
143
+ msgstr "Fakturanummerering"
144
+
145
+ #: ../includes/class-wcdn-settings.php:367
146
+ msgid "Create invoice numbers"
147
+ msgstr "Lag fakturanummer"
148
+
149
+ #: ../includes/class-wcdn-settings.php:374
150
+ msgid "Invoice Number Start"
151
+ msgstr "Fakturanummer start"
152
+
153
+ #: ../includes/class-wcdn-settings.php:381
154
+ msgid "Start the numbering at the specified number."
155
+ msgstr "Start nummerering på ett spesifikt nummer."
156
+
157
+ #: ../includes/class-wcdn-settings.php:383
158
+ msgid "Use only integers."
159
+ msgstr "Bruk bare tall."
160
+
161
+ #: ../includes/class-wcdn-settings.php:389
162
+ msgid "Invoice Number Prefix"
163
+ msgstr "Prefiks for fakturanummer"
164
+
165
+ #: ../includes/class-wcdn-settings.php:396
166
+ msgid "This text will be prepended to the invoice number."
167
+ msgstr "Denne teksten vil legges i front av fakturanummer."
168
+
169
+ #: ../includes/class-wcdn-settings.php:398
170
+ msgid "Leave blank to not add a prefix."
171
+ msgstr "La stå blank for ikke å legge til."
172
+
173
+ #: ../includes/class-wcdn-settings.php:404
174
+ msgid "Invoice Number Suffix"
175
+ msgstr "Suffiks for fakturanummer"
176
+
177
+ #: ../includes/class-wcdn-settings.php:411
178
+ msgid "This text will be appended to the invoice number."
179
+ msgstr "Denne teksten vil legges bak fakturanummer."
180
+
181
+ #: ../includes/class-wcdn-settings.php:413
182
+ msgid "Leave blank to not add a suffix."
183
+ msgstr "La stå blank for ikke å legge til."
184
+
185
+ #: ../includes/class-wcdn-settings.php:419
186
+ msgid "Invoice Number Counter"
187
+ msgstr "Teller for fakturanummer"
188
+
189
+ #: ../includes/class-wcdn-settings.php:428
190
+ msgid "Reset Counter …"
191
+ msgstr "Nullstill teller ..."
192
+
193
+ #: ../includes/class-wcdn-settings.php:434
194
+ msgid "Sequential Order Number"
195
+ msgstr "Sekvensielle ordrenummer"
196
+
197
+ # @ woocommerce-delivery-notes
198
+ #: ../includes/class-wcdn-settings.php:439
199
+ msgid "Sequential numbering is enabled."
200
+ msgstr "Sekvensiell nummerering er aktivert."
201
+
202
+ # @ woocommerce-delivery-notes
203
+ #: ../includes/class-wcdn-settings.php:441
204
+ #, php-format
205
+ msgid ""
206
+ "Install and activate the free <a href=\"%s\">WooCommerce Sequential Order "
207
+ "Numbers</a> Plugin."
208
+ msgstr ""
209
+ "Installer og aktiver gratisutvidelse av <a href=\"%s\">WooCommerce "
210
+ "Sequential Order Numbers</a>."
211
+
212
+ #: ../includes/class-wcdn-theme.php:106
213
+ msgid "Print your order"
214
+ msgstr "Skriv ut din ordre"
215
+
216
+ #: ../includes/class-wcdn-theme.php:112
217
+ msgid "Print:"
218
+ msgstr "Skriv ut:"
219
+
220
+ #: ../includes/class-wcdn-theme.php:112
221
+ msgid "Open print view in browser"
222
+ msgstr "Åpne utskriftsvisning i nettleser"
223
+
224
+ # @ woocommerce-delivery-notes
225
+ #: ../includes/class-wcdn-writepanel.php:214
226
+ msgid "Print now"
227
+ msgstr "Skriv ut nå"
228
+
229
+ # @ woocommerce-delivery-notes
230
+ #: ../includes/class-wcdn-writepanel.php:228
231
+ msgid "Order Printing"
232
+ msgstr "Ordren skrives ut"
233
+
234
+ #: ../includes/class-wcdn-writepanel.php:256
235
+ msgid "Invoice number: "
236
+ msgstr "Fakturanummer:"
237
+
238
+ #: ../includes/class-wcdn-writepanel.php:257
239
+ msgid "Invoice date: "
240
+ msgstr "Fakturadato:"
241
+
242
+ #: ../includes/wcdn-template-functions.php:232
243
+ msgid "Invoice Number"
244
+ msgstr "Fakturanummer:"
245
+
246
+ # @ woocommerce-delivery-notes
247
+ #: ../includes/wcdn-template-functions.php:238
248
+ msgid "Order Number"
249
+ msgstr "Ordrenummer"
250
+
251
+ # @ woocommerce-delivery-notes
252
+ #: ../includes/wcdn-template-functions.php:243
253
+ msgid "Order Date"
254
+ msgstr "Ordredato"
255
+
256
+ # @ woocommerce-delivery-notes
257
+ #: ../includes/wcdn-template-functions.php:248
258
+ msgid "Payment Method"
259
+ msgstr "Betalingsmetode"
260
+
261
+ # @ woocommerce-delivery-notes
262
+ #: ../includes/wcdn-template-functions.php:261
263
+ msgid "Telephone"
264
+ msgstr "Telefon"
265
+
266
+ #: ../includes/wcdn-template-functions.php:294
267
+ msgid "SKU:"
268
+ msgstr "SKU:"
269
+
270
+ #: ../includes/wcdn-template-functions.php:380
271
+ #: ../includes/wcdn-template-functions.php:384
272
+ #, php-format
273
+ msgid "(Includes %s)"
274
+ msgstr "(Inkluderer %s)"
275
+
276
+ #: ../includes/wcdn-template-functions.php:400
277
+ msgid "Refund"
278
+ msgstr "Refundere"
279
+
280
+ #: ../includes/wcdn-template-functions.php:412
281
+ msgid "Order Subtotal"
282
+ msgstr "Ordre subtotal"
283
+
284
+ # @ woocommerce-delivery-notes
285
+ #: ../templates/print-order/print-content.php:28
286
+ msgid "Billing Address"
287
+ msgstr "Fakturaadresse"
288
+
289
+ # @ woocommerce-delivery-notes
290
+ #: ../templates/print-order/print-content.php:31
291
+ #: ../templates/print-order/print-content.php:40
292
+ msgid "N/A"
293
+ msgstr "N/A"
294
+
295
+ # @ woocommerce-delivery-notes
296
+ #: ../templates/print-order/print-content.php:37
297
+ msgid "Shipping Address"
298
+ msgstr "Leveringsadresse"
299
+
300
+ # @ woocommerce-delivery-notes
301
+ #: ../templates/print-order/print-content.php:70
302
+ msgid "Product"
303
+ msgstr "Produkt"
304
+
305
+ #: ../templates/print-order/print-content.php:71
306
+ msgid "Price"
307
+ msgstr "Pris"
308
+
309
+ #: ../templates/print-order/print-content.php:72
310
+ msgid "Quantity"
311
+ msgstr "Kvantitet"
312
+
313
+ # @ woocommerce-delivery-notes
314
+ #: ../templates/print-order/print-content.php:73
315
+ msgid "Total"
316
+ msgstr "Total"
317
+
318
+ # @ woocommerce-delivery-notes
319
+ #: ../templates/print-order/print-content.php:97
320
+ msgid "Download:"
321
+ msgstr "Last ned:"
322
+
323
+ # @ woocommerce-delivery-notes
324
+ #: ../templates/print-order/print-content.php:98
325
+ #, php-format
326
+ msgid "%s Files"
327
+ msgstr "%s filer"
328
+
329
+ # @ woocommerce-delivery-notes
330
+ #: ../templates/print-order/print-content.php:147
331
+ msgid "Customer Note"
332
+ msgstr "Kundenotat"
333
+
334
+ # @ woocommerce-delivery-notes
335
+ #: ../woocommerce-delivery-notes.php:181
336
+ msgid "Go to the settings page"
337
+ msgstr "Gå til instillinger"
338
+
339
+ # @ woocommerce-delivery-notes
340
+ #: ../woocommerce-delivery-notes.php:181
341
+ msgid "Settings"
342
+ msgstr "Instillinger"
343
+
344
+ # @ woocommerce-delivery-notes
345
+ #: ../includes/class-wcdn-print.php:41
346
+ msgid "Invoice"
347
+ msgstr "Faktura"
348
+
349
+ #: ../includes/class-wcdn-print.php:42
350
+ msgid "Invoices"
351
+ msgstr "Fakturaer"
352
+
353
+ # @ woocommerce-delivery-notes
354
+ #: ../includes/class-wcdn-print.php:43
355
+ msgid "Print Invoice"
356
+ msgstr "Skriv ut faktura"
357
+
358
+ #: ../includes/class-wcdn-print.php:44
359
+ msgid "Print Invoices"
360
+ msgstr "Skriv ut fakturaer"
361
+
362
+ # @ woocommerce-delivery-notes
363
+ #: ../includes/class-wcdn-print.php:45
364
+ msgid "Invoice created."
365
+ msgstr "Faktura opprettet."
366
+
367
+ #: ../includes/class-wcdn-print.php:46
368
+ msgid "Invoices created."
369
+ msgstr "Fakturaer opprettet."
370
+
371
+ #: ../includes/class-wcdn-print.php:47
372
+ msgid "Enable Invoices"
373
+ msgstr "Aktiver fakturaer"
374
+
375
+ # @ woocommerce-delivery-notes
376
+ #: ../includes/class-wcdn-print.php:53
377
+ msgid "Delivery Note"
378
+ msgstr "Leveringsnotat"
379
+
380
+ #: ../includes/class-wcdn-print.php:54
381
+ msgid "Delivery Notes"
382
+ msgstr "Leveringsnotater"
383
+
384
+ # @ woocommerce-delivery-notes
385
+ #: ../includes/class-wcdn-print.php:55
386
+ msgid "Print Delivery Note"
387
+ msgstr "Skriv ut leveringsnotat"
388
+
389
+ #: ../includes/class-wcdn-print.php:56
390
+ msgid "Print Delivery Notes"
391
+ msgstr "Skriv ut leveringsnotater"
392
+
393
+ #: ../includes/class-wcdn-print.php:57
394
+ msgid "Delivery Note created."
395
+ msgstr "Leveringsnotat opprettet."
396
+
397
+ #: ../includes/class-wcdn-print.php:58
398
+ msgid "Delivery Notes created."
399
+ msgstr "Leveringsnotater opprettet."
400
+
401
+ #: ../includes/class-wcdn-print.php:59
402
+ msgid "Enable Delivery Notes"
403
+ msgstr "Aktiver leveringsnotater"
404
+
405
+ #: ../includes/class-wcdn-print.php:65
406
+ msgid "Receipt"
407
+ msgstr "Kvittering"
408
+
409
+ #: ../includes/class-wcdn-print.php:66
410
+ msgid "Receipts"
411
+ msgstr "Kvitteringer"
412
+
413
+ #: ../includes/class-wcdn-print.php:67
414
+ msgid "Print Receipt"
415
+ msgstr "Skriv ut kvittering"
416
+
417
+ #: ../includes/class-wcdn-print.php:68
418
+ msgid "Print Receipts"
419
+ msgstr "Skriv ut kvitteringer"
420
+
421
+ #: ../includes/class-wcdn-print.php:69
422
+ msgid "Receipt created."
423
+ msgstr "Kvittering opprettet."
424
+
425
+ #: ../includes/class-wcdn-print.php:70
426
+ msgid "Receipts created."
427
+ msgstr "Kvitteringer opprettet."
428
+
429
+ #: ../includes/class-wcdn-print.php:71
430
+ msgid "Enable Receipts"
431
+ msgstr "Aktiver kvitteringer"
432
+
433
+ # @ woocommerce-delivery-notes
434
+ #: ../includes/class-wcdn-print.php:80
435
+ msgid "Order"
436
+ msgstr "Ordre"
437
+
438
+ #: ../includes/class-wcdn-print.php:81
439
+ msgid "Orders"
440
+ msgstr "Ordrer"
441
+
442
+ # @ woocommerce-delivery-notes
443
+ #: ../includes/class-wcdn-print.php:82 ../includes/class-wcdn-settings.php:157
444
+ msgid "Print Order"
445
+ msgstr "Skriv ut ordre"
446
+
447
+ #: ../includes/class-wcdn-print.php:83
448
+ msgid "Print Orders"
449
+ msgstr "Skriv ut ordrer"
450
+
451
+ #: ../includes/class-wcdn-settings.php:72
452
+ msgid ""
453
+ "Do you really want to reset the counter to zero? This process can't be "
454
+ "undone."
455
+ msgstr ""
456
+ "Er du sikkert på at du vil nullstille telleren? Du kan ikke angre denne "
457
+ "prosessen."
458
+
459
+ # @ woocommerce-delivery-notes
460
+ #: ../includes/class-wcdn-settings.php:102 ../includes/class-wcdn-theme.php:56
461
+ #: ../includes/class-wcdn-theme.php:91
462
+ #: ../includes/wcdn-template-functions.php:127
463
+ msgid "Print"
464
+ msgstr "Skriv ut"
465
+
466
+ #: ../includes/class-wcdn-settings.php:176
467
+ #, php-format
468
+ msgid ""
469
+ "You can preview the <a href=\"%1$s\" target=\"%4$s\" class=\"%5$s\">"
470
+ "invoice</a>, <a href=\"%2$s\" target=\"%4$s\" class=\"%5$s\">delivery "
471
+ "note</a> or <a href=\"%3$s\" target=\"%4$s\" class=\"%5$s\">receipt</a> "
472
+ "template."
473
+ msgstr "Du kan forhåndsvise faktura, leveringsnotat eller kvitteringsmalen."
474
+
475
+ # @ woocommerce-delivery-notes
476
+ #: ../includes/class-wcdn-settings.php:177
477
+ msgid ""
478
+ "With the FAQ in the readme file you can learn how to customize the template."
479
+ msgstr "Via FAQ i readme-fila kan du lære mer om hvordan du skreddersyr malen."
480
+
481
+ # @ woocommerce-delivery-notes
482
+ #: ../includes/class-wcdn-settings.php:188
483
+ msgid "Company/Shop Logo"
484
+ msgstr "Firma/Butikklogo"
485
+
486
+ # @ woocommerce-delivery-notes
487
+ #: ../includes/class-wcdn-settings.php:194
488
+ msgid "Remove Logo"
489
+ msgstr "Fjern logo"
490
+
491
+ # @ woocommerce-delivery-notes
492
+ #: ../includes/class-wcdn-settings.php:195
493
+ msgid "Set Logo"
494
+ msgstr "Sett logo"
495
+
496
+ # @ woocommerce-delivery-notes
497
+ #: ../includes/class-wcdn-settings.php:199
498
+ msgid "A company/shop logo representing your business."
499
+ msgstr "En firma/butikklogo som representerer din bedrift."
500
+
501
+ # @ woocommerce-delivery-notes
502
+ #: ../includes/class-wcdn-settings.php:200
503
+ #: ../includes/class-wcdn-settings.php:213
504
+ #: ../includes/class-wcdn-settings.php:226
505
+ #: ../includes/class-wcdn-settings.php:239
506
+ #: ../includes/class-wcdn-settings.php:252
507
+ #: ../includes/class-wcdn-settings.php:265
508
+ #: ../includes/class-wcdn-settings.php:382
509
+ #: ../includes/class-wcdn-settings.php:397
510
+ #: ../includes/class-wcdn-settings.php:412
511
+ msgid "Note:"
512
+ msgstr "Notat:"
513
+
514
+ # @ woocommerce-delivery-notes
515
+ #: ../includes/class-wcdn-settings.php:201
516
+ msgid ""
517
+ "When the image is printed, its pixel density will automatically be eight "
518
+ "times higher than the original. This means, 1 printed inch will correspond "
519
+ "to about 288 pixels on the screen. Example: an image with a width of 576 "
520
+ "pixels and a height of 288 pixels will have a printed size of about 2 inches "
521
+ "to 1 inch."
522
+ msgstr ""
523
+ "Når bildet skrives ut, vil pikseltettheten være åtte ganger høyere enn "
524
+ "original. Hvilket betyr at 1 tomme på print tilsvarer rundt 288 piksler på "
525
+ "skjerm. Eksempel: ett bilde med en bredde på 576 piksler og høyde på 288 "
526
+ "piksler vil skrives med størrelse på ca 2 tommer til en tomme."
527
+
528
+ # @ woocommerce-delivery-notes
529
+ #: ../includes/class-wcdn-settings.php:207
530
+ msgid "Company/Shop Name"
531
+ msgstr "Firma/Butikklogo"
532
+
533
+ # @ woocommerce-delivery-notes
534
+ #: ../includes/class-wcdn-settings.php:212
535
+ msgid "Your company/shop name for the Delivery Note."
536
+ msgstr "Ditt firma/butikknavn for leveringsnotatet."
537
+
538
+ # @ woocommerce-delivery-notes
539
+ #: ../includes/class-wcdn-settings.php:214
540
+ msgid ""
541
+ "Leave blank to use the default Website/Blog title defined in WordPress "
542
+ "settings. The name will be ignored when a Logo is set."
543
+ msgstr ""
544
+ "La stå tom for å benytte standard Nettside/Blog tittel definert i WordPress "
545
+ "sine instillinger. Navnet ignoreres hvis logo blir definert."
546
+
547
+ # @ woocommerce-delivery-notes
548
+ #: ../includes/class-wcdn-settings.php:220
549
+ msgid "Company/Shop Address"
550
+ msgstr "Firma/Butikkadresse"
551
+
552
+ # @ woocommerce-delivery-notes
553
+ #: ../includes/class-wcdn-settings.php:225
554
+ msgid ""
555
+ "The postal address of the company/shop or even e-mail or telephone, which "
556
+ "gets printed right after the company/shop name."
557
+ msgstr ""
558
+ "Postadressen til firma/butikk eller e-post og telefon som vil bli skrevet "
559
+ "rett etter firma/butikknavn."
560
+
561
+ # @ woocommerce-delivery-notes
562
+ #: ../includes/class-wcdn-settings.php:227
563
+ msgid "Leave blank to not print an address."
564
+ msgstr "La stå tom hvis du ikke ønsker å ha med adresse."
languages/woocommerce-delivery-notes-nl_NL.mo CHANGED
Binary file
languages/woocommerce-delivery-notes-nl_NL.po CHANGED
@@ -399,6 +399,10 @@ msgstr "Verzendadres"
399
  msgid "Product"
400
  msgstr "Product"
401
 
 
 
 
 
402
  #: ../templates/print-order/print-content.php:75
403
  msgid "Quantity"
404
  msgstr "Hoeveelheid"
399
  msgid "Product"
400
  msgstr "Product"
401
 
402
+ #: ../templates/print-order/print-content.php:71
403
+ msgid "Price"
404
+ msgstr "Prijs"
405
+
406
  #: ../templates/print-order/print-content.php:75
407
  msgid "Quantity"
408
  msgstr "Hoeveelheid"
readme.txt CHANGED
@@ -2,11 +2,11 @@
2
 
3
  Contributors: ashokrane, bhavik.kiri, tychesoftwares, chabis
4
  Donate link: https://www.paypal.me/TycheSoftwares
5
- Tags: delivery note, packing slip, invoice, delivery, shipping, print, order, woocommerce, woothemes, shop
6
  Requires at least: 4.0
7
  Tested up to: 4.8.1
8
  Author URI: https://www.tychesoftwares.com/
9
- Stable tag: 4.3.2
10
  License: GPLv3 or later
11
  License URI: http://www.opensource.org/licenses/gpl-license.php
12
 
@@ -14,9 +14,6 @@ Print invoices and delivery notes for WooCommerce orders.
14
 
15
  == Description ==
16
 
17
- = Announcement: TYCHE SOFTWARES TEAM HAS TAKEN OVER THE OWNERSHIP & DEVELOPMENT OF THIS PLUGIN. THE ORIGINAL AUTHOR OF THIS PLUGIN IS TRIGGVY GUNDERSON. =
18
-
19
-
20
  You can print out invoices and delivery notes for the WooCommerce orders. You can also edit the Company/Shop name, Company/Shop postal address and also add personal notes, conditions/policies (like a refund policy) and a footer imprint.
21
 
22
  The plugin adds a new side panel on the order page to allow shop administrators to print out the invoice or delivery note. Registered customers can also print their order with a button that is added to the order screen.
@@ -58,6 +55,7 @@ When your language is missing you can contribute a translation to the [GitHub re
58
 
59
  4. **[Product Delivery Date Pro for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/product-delivery-date-pro-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=WCDeliveryNotes "Product Delivery Date Pro for WooCommerce")**
60
 
 
61
 
62
  **Some of our other free plugins:**
63
 
@@ -330,6 +328,29 @@ Please [contribute your translation](https://github.com/TycheSoftwares/woocommer
330
 
331
  = Minimum Requirements: WooCommerce 2.2 =
332
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
333
  = 4.3.2 (05.09.2017) =
334
 
335
  * In this version deprecated functions and classes have been removed. Because of that attributes were missing and attribute slug was getting printed on Invoice page. This has been fixed.
@@ -503,4 +524,4 @@ Please [contribute your translation](https://github.com/TycheSoftwares/woocommer
503
 
504
  = 4.1.5 =
505
 
506
- 4.1.5 requires at least WooCommerce 2.2.
2
 
3
  Contributors: ashokrane, bhavik.kiri, tychesoftwares, chabis
4
  Donate link: https://www.paypal.me/TycheSoftwares
5
+ Tags: delivery note, packing slip, pdf invoice, delivery, shipping, print order, woocommerce, woothemes, shop
6
  Requires at least: 4.0
7
  Tested up to: 4.8.1
8
  Author URI: https://www.tychesoftwares.com/
9
+ Stable tag: 4.3.6
10
  License: GPLv3 or later
11
  License URI: http://www.opensource.org/licenses/gpl-license.php
12
 
14
 
15
  == Description ==
16
 
 
 
 
17
  You can print out invoices and delivery notes for the WooCommerce orders. You can also edit the Company/Shop name, Company/Shop postal address and also add personal notes, conditions/policies (like a refund policy) and a footer imprint.
18
 
19
  The plugin adds a new side panel on the order page to allow shop administrators to print out the invoice or delivery note. Registered customers can also print their order with a button that is added to the order screen.
55
 
56
  4. **[Product Delivery Date Pro for WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/product-delivery-date-pro-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=WCDeliveryNotes "Product Delivery Date Pro for WooCommerce")**
57
 
58
+ 5. **[Deposits For WooCommerce](https://www.tychesoftwares.com/store/premium-plugins/deposits-for-woocommerce/?utm_source=wprepo&utm_medium=link&utm_campaign=WCDeliveryNotes "Deposits For WooCommerce")**
59
 
60
  **Some of our other free plugins:**
61
 
328
 
329
  = Minimum Requirements: WooCommerce 2.2 =
330
 
331
+ = 4.3.6 (19.12.2017) =
332
+
333
+ * Added translation for the word 'Price' for dutch language
334
+ * Removed Pro version link that was not going anywhere
335
+
336
+ = 4.3.5 (14.11.2017) =
337
+
338
+ * Fix issue of invoice date label not appearing translated
339
+
340
+ = 4.3.4.1 (07.11.2017) =
341
+
342
+ * Updating missing .mo files for Japanese and Norwegian.
343
+
344
+ = 4.3.4 (26.09.2017) =
345
+
346
+ * .po and .mo files for Japanese and Norwegian language is added in the plugin. The plugin strings can now be translated to this languages using these files.
347
+
348
+ = 4.3.3 (13.09.2017) =
349
+
350
+ * Fix - The unwanted attributes from products were getting displayed in the invoice.
351
+
352
+ * Fix - Notice of deprecated function get_item_downloads() in the invoice for downloadable products.
353
+
354
  = 4.3.2 (05.09.2017) =
355
 
356
  * In this version deprecated functions and classes have been removed. Because of that attributes were missing and attribute slug was getting printed on Invoice page. This has been fixed.
524
 
525
  = 4.1.5 =
526
 
527
+ 4.1.5 requires at least WooCommerce 2.2.
templates/print-order/print-content.php CHANGED
@@ -111,19 +111,27 @@ if ( !defined( 'ABSPATH' ) ) exit;
111
  // }
112
 
113
  if ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) {
114
- if(isset($item['variation_id'])){
115
- $variation = wc_get_product($item['variation_id']);
116
- foreach ($item['item_meta'] as $key => $value) {
117
- $term = get_term_by('slug', $value, $key);
118
- $attribute_name = wc_attribute_label( $key, $variation );
119
- if(isset($term->name)){
120
- echo '<br>'.$attribute_name.':'.$term->name;
121
- }else{
122
- echo '<br>'.$attribute_name.':'.$value;
 
 
 
 
 
 
 
 
123
  }
124
  }
125
  }
126
- }else{
127
  $item_meta_new = new WC_Order_Item_Meta( $item['item_meta'], $product );
128
  $item_meta_new->display( );
129
 
@@ -134,7 +142,7 @@ if ( !defined( 'ABSPATH' ) ) exit;
134
  <?php if( $product && $product->exists() && $product->is_downloadable() && $order->is_download_permitted() ) : ?>
135
 
136
  <dt><?php _e( 'Download:', 'woocommerce-delivery-notes' ); ?></dt>
137
- <dd><?php printf( __( '%s Files', 'woocommerce-delivery-notes' ), count( $order->get_item_downloads( $item ) ) ); ?></dd>
138
 
139
  <?php endif; ?>
140
 
111
  // }
112
 
113
  if ( version_compare( get_option( 'woocommerce_version' ), '3.0.0', ">=" ) ) {
114
+ if( isset( $item[ 'variation_id' ] ) && $item[ 'variation_id' ] != 0 ) {
115
+ $variation = wc_get_product( $item[ 'product_id' ] );
116
+ foreach ( $item[ 'item_meta' ] as $key => $value ) {
117
+ if( !( 0 === strpos($key, '_' ) ) ) {
118
+ $term = get_term_by( 'slug', $value, $key );
119
+ $attribute_name = wc_attribute_label( $key, $variation );
120
+ if( isset( $term->name ) ) {
121
+ echo '<br>'.$attribute_name.':'.$term->name;
122
+ } else {
123
+ echo '<br>'.$attribute_name.':'.$value;
124
+ }
125
+ }
126
+ }
127
+ } else {
128
+ foreach ( $item[ 'item_meta' ] as $key => $value ) {
129
+ if( !( 0 === strpos( $key, '_' ) ) ) {
130
+ echo '<br>' . $key . ':' . $value;
131
  }
132
  }
133
  }
134
+ } else {
135
  $item_meta_new = new WC_Order_Item_Meta( $item['item_meta'], $product );
136
  $item_meta_new->display( );
137
 
142
  <?php if( $product && $product->exists() && $product->is_downloadable() && $order->is_download_permitted() ) : ?>
143
 
144
  <dt><?php _e( 'Download:', 'woocommerce-delivery-notes' ); ?></dt>
145
+ <dd><?php printf( __( '%s Files', 'woocommerce-delivery-notes' ), count( $item->get_item_downloads() ) ); ?></dd>
146
 
147
  <?php endif; ?>
148
 
woocommerce-delivery-notes.php CHANGED
@@ -5,13 +5,16 @@
5
  * Plugin Name: WooCommerce Print Invoice & Delivery Note
6
  * Plugin URI: https://www.tychesoftwares.com/
7
  * Description: Print Invoices & Delivery Notes for WooCommerce Orders.
8
- * Version: 4.3.2
9
  * Author: Tyche Softwares
10
  * Author URI: https://www.tychesoftwares.com/
11
  * License: GPLv3 or later
12
  * License URI: http://www.opensource.org/licenses/gpl-license.php
13
  * Text Domain: woocommerce-delivery-notes
14
  * Domain Path: /languages
 
 
 
15
  *
16
  * Copyright 2015 Tyche Softwares
17
  *
@@ -277,4 +280,4 @@ function WCDN() {
277
  */
278
  $GLOBALS['wcdn'] = WCDN();
279
 
280
- ?>
5
  * Plugin Name: WooCommerce Print Invoice & Delivery Note
6
  * Plugin URI: https://www.tychesoftwares.com/
7
  * Description: Print Invoices & Delivery Notes for WooCommerce Orders.
8
+ * Version: 4.3.6
9
  * Author: Tyche Softwares
10
  * Author URI: https://www.tychesoftwares.com/
11
  * License: GPLv3 or later
12
  * License URI: http://www.opensource.org/licenses/gpl-license.php
13
  * Text Domain: woocommerce-delivery-notes
14
  * Domain Path: /languages
15
+ * Requires PHP: 5.6
16
+ * WC requires at least: 3.0.0
17
+ * WC tested up to: 3.2.0
18
  *
19
  * Copyright 2015 Tyche Softwares
20
  *
280
  */
281
  $GLOBALS['wcdn'] = WCDN();
282
 
283
+ ?>