WooCommerce Print Invoice & Delivery Note - Version 2.0.2

Version Description

  • FIX: The print data is now generated with the order metadata. This solves a problem where the items weren't displayed when the product was deleted. (thanks MDesigner0)
  • UPDATE: Added some missing translations to the pot.
  • NEW: Added the telephone and email to the template.
  • DELETE: Removed the possibility to show the download links because the urls are always so long that most probably no one will ever use them.
Download this release

Release Info

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

Code changes from version 1.2.1 to 2.0.2

Files changed (45) hide show
  1. classes/class-wcdn-print.php +123 -129
  2. classes/class-wcdn-settings.php +88 -148
  3. classes/class-wcdn-writepanel.php +53 -39
  4. css/style.css +28 -13
  5. images/print-delivery-note.png +0 -0
  6. images/print-invoice.png +0 -0
  7. js/script-media-uploader.js +0 -11
  8. js/script.js +61 -14
  9. languages/woocommerce-delivery-notes-da_DK.mo +0 -0
  10. languages/woocommerce-delivery-notes-da_DK.po +297 -0
  11. languages/woocommerce-delivery-notes-de_DE.mo +0 -0
  12. languages/woocommerce-delivery-notes-de_DE.po +321 -321
  13. languages/woocommerce-delivery-notes-es_ES.mo +0 -0
  14. languages/woocommerce-delivery-notes-es_ES.po +173 -180
  15. languages/woocommerce-delivery-notes-fi.mo +0 -0
  16. languages/woocommerce-delivery-notes-fi.po +295 -0
  17. languages/woocommerce-delivery-notes-fr_FR.mo +0 -0
  18. languages/woocommerce-delivery-notes-fr_FR.po +143 -152
  19. languages/woocommerce-delivery-notes-it_IT.mo +0 -0
  20. languages/woocommerce-delivery-notes-it_IT.po +364 -0
  21. languages/woocommerce-delivery-notes-nl_NL.mo +0 -0
  22. languages/woocommerce-delivery-notes-nl_NL.po +151 -160
  23. languages/woocommerce-delivery-notes-pl_PL.mo +0 -0
  24. languages/woocommerce-delivery-notes-pl_PL.po +295 -0
  25. languages/woocommerce-delivery-notes-pt_BR.mo +0 -0
  26. languages/woocommerce-delivery-notes-pt_BR.po +295 -0
  27. languages/woocommerce-delivery-notes-ru_RU.mo +0 -0
  28. languages/woocommerce-delivery-notes-ru_RU.po +295 -0
  29. languages/woocommerce-delivery-notes-sk_SK.mo +0 -0
  30. languages/woocommerce-delivery-notes-sk_SK.po +295 -0
  31. languages/woocommerce-delivery-notes-sv_SE.mo +0 -0
  32. languages/woocommerce-delivery-notes-sv_SE.po +153 -162
  33. languages/woocommerce-delivery-notes-tr_TR.mo +0 -0
  34. languages/woocommerce-delivery-notes-tr_TR.po +295 -0
  35. languages/woocommerce-delivery-notes.mo +0 -0
  36. languages/woocommerce-delivery-notes.po +100 -138
  37. languages/woocommerce-delivery-notes.pot +188 -188
  38. readme.txt +130 -58
  39. templates/delivery-notes/css/style.css +0 -309
  40. templates/delivery-notes/print.php +0 -136
  41. templates/print/print-delivery-note.php +119 -0
  42. templates/print/print-invoice.php +1 -0
  43. templates/print/style.css +257 -0
  44. woocommerce-delivery-notes-print.php +0 -557
  45. woocommerce-delivery-notes.php +484 -32
classes/class-wcdn-print.php CHANGED
@@ -2,129 +2,119 @@
2
3
/**
4
* Print class
5
- *
6
- * @since 1.0
7
*/
8
if ( ! class_exists( 'WooCommerce_Delivery_Notes_Print' ) ) {
9
10
class WooCommerce_Delivery_Notes_Print {
11
12
- public $template_url;
13
- public $template_dir;
14
- public $template_base;
15
- public $template_name;
16
- public $theme_base;
17
- public $theme_path;
18
- public $order_id;
19
20
private $order;
21
22
/**
23
* Constructor
24
- *
25
- * @since 1.0
26
*/
27
public function __construct() {
28
}
29
30
/**
31
* Load the class
32
- *
33
- * @since 1.0
34
*/
35
- public function load( $order_id = 0 ) {
36
- global $woocommerce;
37
-
38
- $this->order_id = $order_id;
39
- $this->template_name = 'delivery-note';
40
- $this->template_base = 'templates/';
41
- $this->theme_base = $woocommerce->template_url;
42
- $this->template_dir = 'delivery-notes/';
43
- $this->theme_path = trailingslashit( get_stylesheet_directory() );
44
-
45
- if ( $this->order_id > 0 ) {
46
- $this->order = new WC_Order( $this->order_id );
47
- }
48
}
49
50
/**
51
* Load the admin hooks
52
- *
53
- * @since 1.0
54
*/
55
- public function load_hooks() {
56
}
57
58
/**
59
- * Read the template file
60
- *
61
- * @since 1.0
62
*/
63
- public function get_print_page( $template_name = 'delivery-note' ) {
64
- $this->template_name = $template_name;
65
- return $this->get_template_content( 'print', $this->template_name );
66
}
67
-
68
/**
69
- * Read the template file
70
- *
71
- * @since 1.0
72
*/
73
- private function get_template_content( $slug, $name = '' ) {
74
- $template = null;
75
- $template_file = null;
76
-
77
- // Look in yourtheme/woocommerce/delivery-notes/
78
- $template_file = $this->theme_path . $this->theme_base . $this->template_dir . $slug.'-'.$name.'.php';
79
- if ( !$template && $name && file_exists( $template_file) ) {
80
- $template = $template_file;
81
- $this->template_url = trailingslashit( get_stylesheet_directory_uri() ) . $this->theme_base . $this->template_dir;
82
- }
83
-
84
- // Fall back to slug.php in yourtheme/woocommerce/delivery-notes/
85
- $template_file = $this->theme_path . $this->theme_base . $this->template_dir . $slug.'.php';
86
- if ( !$template && file_exists( $template_file ) ) {
87
- $template = $template_file;
88
- $this->template_url = trailingslashit( get_stylesheet_directory_uri() ) . $this->theme_base . $this->template_dir;
89
}
90
91
- // Legacy support for old custom template folder structure
92
- $template_file = $this->theme_path . $this->theme_base . 'delivery-note-template/template.php';
93
- if ( !$template && file_exists( $template_file ) ) {
94
- $template = $template_file;
95
- $this->template_url = trailingslashit( get_stylesheet_directory_uri() ) . 'delivery-note-template/';
96
}
97
98
- // Look in pluginname/templates/delivery-notes/
99
- $template_file = WooCommerce_Delivery_Notes::$plugin_path . $this->template_base . $this->template_dir . $slug.'-'.$name.'.php';
100
- if ( !$template && $name && file_exists( $template_file ) ) {
101
- $template = $template_file;
102
- $this->template_url = WooCommerce_Delivery_Notes::$plugin_url . $this->template_base . $this->template_dir;
103
}
104
-
105
- // Fall back to slug.php in pluginname/templates/delivery-notes/
106
- $template_file = WooCommerce_Delivery_Notes::$plugin_path . $this->template_base . $this->template_dir . $slug.'.php';
107
- if ( !$template && file_exists( $template_file ) ) {
108
- $template = $template_file;
109
- $this->template_url = WooCommerce_Delivery_Notes::$plugin_url . $this->template_base . $this->template_dir;
110
}
111
112
- // Return the content of the template
113
- if ( $template ) {
114
- ob_start();
115
- require_once( $template );
116
- $content = ob_get_clean();
117
- return $content;
118
}
119
120
- // Return no content when no file was found
121
- return;
122
}
123
124
/**
125
* Get the current order
126
- *
127
- * @since 1.0
128
*/
129
public function get_order() {
130
return $this->order;
@@ -132,85 +122,89 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Print' ) ) {
132
133
/**
134
* Get the current order items
135
- *
136
- * @since 1.0
137
- * @version 1.1
138
*/
139
public function get_order_items() {
140
global $woocommerce;
141
global $_product;
142
143
- if(!$this->order) {
144
- return;
145
- }
146
-
147
$items = $this->order->get_items();
148
$data_list = array();
149
150
- if ( sizeof( $items ) > 0 ) {
151
foreach ( $items as $item ) {
152
// Array with data for the printing template
153
$data = array();
154
155
- // Create the product
156
- if ( isset( $item['variation_id'] ) && $item['variation_id'] > 0 ) {
157
- $product = new WC_Product_Variation( $item['variation_id'] );
158
- $data['variation'] = woocommerce_get_formatted_variation( $product->get_variation_attributes(), true );
159
- } else {
160
- $product = new WC_Product( $item['id'] );
161
- $data['variation'] = null;
162
- }
163
-
164
// Set item name
165
$data['name'] = $item['name'];
166
167
// Set item quantity
168
$data['quantity'] = $item['qty'];
169
170
- // Set item meta
171
- $meta = new order_item_meta( $item['item_meta'] );
172
- $data['meta'] = $meta->display(true, true);
173
174
- // Set item download url
175
- $data['download_url'] = null;
176
- if ( $product->exists && $product->is_downloadable() && $this->order->status == 'completed' ) {
177
- $data['download_url'] = $this->order->get_downloadable_file_url( $item['id'], $item['variation_id'] );
178
- }
179
180
- // Set the price
181
- $data['price'] = $this->order->get_formatted_line_subtotal( $item );
182
183
- // Set the single price
184
- $data['single_price'] = $product->get_price();
185
-
186
- // Set item SKU
187
- $data['sku'] = $product->get_sku();
188
-
189
- // Set item weight
190
- $data['weight'] = $product->get_weight();
191
192
- // Set item dimensions
193
- $data['dimensions'] = $product->get_dimensions();
194
195
- // Pass complete item array - more freedom for template developers
196
- $data['item'] = $item;
197
198
- $data_list[] = $data;
199
}
200
}
201
202
- return $data_list;
203
}
204
-
205
/**
206
- * Get the content for an option
207
- *
208
- * @since 1.0
209
*/
210
- public function get_setting( $name ) {
211
- return get_option( WooCommerce_Delivery_Notes::$plugin_prefix . $name );
212
}
213
-
214
}
215
216
}
2
3
/**
4
* Print class
5
*/
6
if ( ! class_exists( 'WooCommerce_Delivery_Notes_Print' ) ) {
7
8
class WooCommerce_Delivery_Notes_Print {
9
10
+ private $template_directory_name;
11
+ private $template_path;
12
+ private $template_default_path;
13
+ private $template_default_uri;
14
15
private $order;
16
+
17
+ public $template_type;
18
+ public $order_id;
19
20
/**
21
* Constructor
22
*/
23
public function __construct() {
24
+ global $woocommerce;
25
+ $this->order = new WC_Order();
26
+ $this->template_directory_name = 'print';
27
+ $this->template_path = $woocommerce->template_url . $this->template_directory_name . '/';
28
+ $this->template_default_path = WooCommerce_Delivery_Notes::$plugin_path . 'templates/' . $this->template_directory_name . '/';
29
+ $this->template_default_uri = WooCommerce_Delivery_Notes::$plugin_url . 'templates/' . $this->template_directory_name . '/';
30
}
31
32
/**
33
* Load the class
34
*/
35
+ public function load() {
36
+ add_action( 'admin_init', array( $this, 'load_hooks' ) );
37
}
38
39
/**
40
* Load the admin hooks
41
*/
42
+ public function load_hooks() {
43
+ add_action('wp_ajax_generate_print_content', array($this, 'generate_print_content_ajax'));
44
}
45
46
/**
47
+ * Generate the template output
48
*/
49
+ public function generate_print_content( $template_type, $order_id ) {
50
+ $this->template_type = $template_type;
51
+ $this->order_id = $order_id;
52
+ $this->order->get_order( $this->order_id );
53
+ $this->get_template( apply_filters( 'wcdn_template_file_name', 'print-' . $this->template_type . '.php', $template_type, $order_id, $this ) );
54
+ do_action( 'wcdn_generate_print_content' );
55
}
56
+
57
/**
58
+ * Load and generate the template output with ajax
59
*/
60
+ public function generate_print_content_ajax() {
61
+ // Let the backend only access the page
62
+ if( !is_admin() ) {
63
+ wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
64
}
65
66
+ // Check the user privileges
67
+ if( !current_user_can( 'manage_woocommerce_orders' ) && !current_user_can( 'edit_shop_orders' ) ) {
68
+ wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
69
}
70
71
+ // Check the nonce
72
+ if( empty( $_GET['action'] ) || !check_admin_referer( $_GET['action'] ) ) {
73
+ wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
74
}
75
+
76
+ // Check if all parameters are set
77
+ if( empty( $_GET['template_type'] ) || empty( $_GET['order_id'] ) ) {
78
+ wp_die( __( 'You do not have sufficient permissions to access this page.' ) );
79
}
80
81
+ // Generate the output
82
+ $this->generate_print_content( $_GET['template_type'], $_GET['order_id'] );
83
+
84
+ exit;
85
+ }
86
+
87
+ /**
88
+ * Get the template url for a file. locate by file existience
89
+ * and then return the corresponding url.
90
+ */
91
+ public function get_template_url( $name ) {
92
+ global $woocommerce;
93
+
94
+ $uri = $this->template_default_uri . $name;
95
+ $child_theme_path = get_stylesheet_directory() . '/' . $this->template_path;
96
+ $child_theme_uri = get_stylesheet_directory_uri() . '/' . $this->template_path;
97
+ $theme_path = get_template_directory() . '/' . $this->template_path;
98
+ $theme_uri = get_template_directory_uri() . '/' . $this->template_path;
99
+
100
+ if( file_exists( $child_theme_path . $name ) ) {
101
+ $uri = $child_theme_uri . $name;
102
+ } elseif( file_exists( $theme_path . $name ) ) {
103
+ $uri = $theme_uri . $name;
104
}
105
106
+ return $uri;
107
}
108
109
+ /**
110
+ * Load the template file content
111
+ */
112
+ public function get_template( $name ) {
113
+ woocommerce_get_template( $name, null, $this->template_path, $this->template_default_path );
114
+ }
115
+
116
/**
117
* Get the current order
118
*/
119
public function get_order() {
120
return $this->order;
122
123
/**
124
* Get the current order items
125
*/
126
public function get_order_items() {
127
global $woocommerce;
128
global $_product;
129
130
$items = $this->order->get_items();
131
$data_list = array();
132
133
+ if( sizeof( $items ) > 0 ) {
134
foreach ( $items as $item ) {
135
// Array with data for the printing template
136
$data = array();
137
138
+ // Set the id
139
+ $data['product_id'] = $item['product_id'];
140
+ $data['variation_id'] = $item['variation_id'];
141
+
142
// Set item name
143
$data['name'] = $item['name'];
144
145
// Set item quantity
146
$data['quantity'] = $item['qty'];
147
+
148
+ // Set the subtotal for the number of products
149
+ $data['line_total'] = $item['line_total'];
150
+ $data['line_tax'] = $item['line_tax'];
151
152
+ // Set the final subtotal for all products
153
+ $data['line_subtotal'] = $item['line_subtotal'];
154
+ $data['line_subtotal_tax'] = $item['line_subtotal_tax'];
155
+ $data['formatted_line_subtotal'] = $this->order->get_formatted_line_subtotal( $item );
156
+ $data['price'] = $data['formatted_line_subtotal'];
157
158
+ // Set item meta and replace it when it is empty
159
+ $meta = new WC_Order_Item_Meta( $item['item_meta'] );
160
+ $data['meta'] = $meta->display( false, true );
161
162
+ // Pass complete item array
163
+ $data['item'] = $item;
164
165
+ // Create the product to display more info
166
+ $data['product'] = null;
167
168
+ $product = $this->order->get_product_from_item( $item );
169
170
+ // Checking fo existance, thanks to MDesigner0
171
+ if(!empty($product)) {
172
+ // Set the single price
173
+ $data['single_price'] = $product->get_price();
174
+
175
+ // Set item SKU
176
+ $data['sku'] = $product->get_sku();
177
+
178
+ // Set item weight
179
+ $data['weight'] = $product->get_weight();
180
+
181
+
182
+ // Set item dimensions
183
+ $data['dimensions'] = $product->get_dimensions();
184
185
+ // Pass complete product object
186
+ $data['product'] = $product;
187
+
188
+ }
189
+
190
+ $data_list[] = apply_filters( 'wcdn_order_item_data', $data );
191
}
192
}
193
194
+ return apply_filters( 'wcdn_order_items_data', $data_list );
195
}
196
+
197
/**
198
+ * Get order custom field
199
*/
200
+ public function get_order_field( $field ) {
201
+ if( isset( $this->get_order()->order_custom_fields[$field] ) ) {
202
+ return $this->get_order()->order_custom_fields[$field][0];
203
+ }
204
+ return;
205
}
206
}
207
208
}
209
+
210
+ ?>
classes/class-wcdn-settings.php CHANGED
@@ -2,20 +2,16 @@
2
3
/**
4
* Settings class
5
- *
6
- * @since 1.0
7
*/
8
if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
9
10
class WooCommerce_Delivery_Notes_Settings {
11
12
- private $tab_name;
13
- private $hidden_submit;
14
15
/**
16
* Constructor
17
- *
18
- * @since 1.0
19
*/
20
public function __construct() {
21
$this->tab_name = 'woocommerce-delivery-notes';
@@ -24,8 +20,6 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
24
25
/**
26
* Load the class
27
- *
28
- * @since 1.0
29
*/
30
public function load() {
31
add_action( 'admin_init', array( $this, 'load_hooks' ) );
@@ -33,59 +27,70 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
33
34
/**
35
* Load the admin hooks
36
- *
37
- * @since 1.0
38
*/
39
public function load_hooks() {
40
- add_filter( 'plugin_action_links_' . WooCommerce_Delivery_Notes::$plugin_basefile, array( $this, 'add_settings_link') );
41
add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_tab' ) );
42
add_action( 'woocommerce_settings_tabs_' . $this->tab_name, array( $this, 'create_settings_page' ) );
43
add_action( 'woocommerce_update_options_' . $this->tab_name, array( $this, 'save_settings_page' ) );
44
- add_action( 'admin_init', array( $this, 'load_help' ), 20 );
45
- add_action( 'admin_print_styles', array( $this, 'add_styles' ) );
46
- add_action( 'admin_print_scripts', array( $this, 'add_scripts' ) );
47
- add_action( 'admin_print_scripts-media-upload-popup', array( $this, 'add_media_scripts_and_styles' ) );
48
- add_filter( 'media_upload_tabs', array( $this, 'remove_media_tabs' ) );
49
add_action( 'wp_ajax_load_thumbnail', array( $this, 'load_thumbnail_ajax' ) );
50
- add_filter( 'attachment_fields_to_edit', array( $this, 'edit_media_options' ), 20, 2 );
51
}
52
53
/**
54
* Add the styles
55
*/
56
public function add_styles() {
57
- if( $this->is_settings_page() ) {
58
- wp_enqueue_style( 'thickbox' );
59
- wp_enqueue_style( 'woocommerce-delivery-notes-styles', WooCommerce_Delivery_Notes::$plugin_url . 'css/style.css' );
60
- }
61
}
62
63
/**
64
* Add the scripts
65
*/
66
public function add_scripts() {
67
- if( $this->is_settings_page() ) {
68
- wp_enqueue_script( 'media-upload' );
69
- wp_enqueue_script( 'thickbox' );
70
- wp_enqueue_script( 'woocommerce-delivery-notes-scripts', WooCommerce_Delivery_Notes::$plugin_url . 'js/script.js', array( 'jquery', 'media-upload', 'thickbox' ) );
71
- }
72
- }
73
74
/**
75
- * Add the media uploader scripts
76
*/
77
- public function add_media_scripts_and_styles() {
78
- wp_enqueue_style( 'woocommerce-delivery-notes-styles', WooCommerce_Delivery_Notes::$plugin_url . 'css/style.css' );
79
- wp_enqueue_script( 'woocommerce-delivery-notes-media-scripts', WooCommerce_Delivery_Notes::$plugin_url . 'js/script-media-uploader.js', array( 'jquery' ) );
80
}
81
82
/**
83
- * Check if we are on settings page
84
- *
85
- * @since 1.0
86
*/
87
- public function is_settings_page() {
88
- if ( isset($_GET['page']) && isset( $_GET['tab'] ) && $_GET['tab'] == $this->tab_name ) {
89
return true;
90
} else {
91
return false;
@@ -94,8 +99,6 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
94
95
/**
96
* Check if sequential order plugin is activated
97
- *
98
- * @since 1.0
99
*/
100
public function is_woocommerce_sequential_order_numbers_activated() {
101
if ( in_array( 'woocommerce-sequential-order-numbers/woocommerce-sequential-order-numbers.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
@@ -109,84 +112,23 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
109
* Remove the media uploader tabs
110
*/
111
public function remove_media_tabs( $tabs ) {
112
- if( isset( $_GET['post_id'] ) && $_GET['post_id'] == 0 ) {
113
- unset( $tabs['type_url'] );
114
- }
115
return $tabs;
116
}
117
118
- /**
119
- * Modfy the media uploader input fields
120
- */
121
- public function edit_media_options( $fields, $post ) {
122
- if ( isset( $_GET['post_id'] ) ) {
123
- $calling_post_id = absint( $_GET['post_id'] );
124
- } elseif ( isset( $_POST ) && count( $_POST ) ) {
125
- $calling_post_id = $post->post_parent;
126
- }
127
-
128
- // only add the thickbox media managment page (media.php)
129
- if( empty( $calling_post_id ) ) {
130
- if ( isset( $fields['image-size'] ) && isset( $post->ID ) ) {
131
- if( substr($post->post_mime_type, 0, 5) == 'image' && !isset( $_GET['attachment_id'] ) ) {
132
- $attachment_id = $post->ID;
133
- $fields['additional_buttons']['label'] = '';
134
- $fields['additional_buttons']['input'] = 'html';
135
- $fields['additional_buttons']['html'] = get_submit_button( __( 'Use as Company Logo', 'woocommerce-delivery-notes' ), 'button use-image-button', 'use-image-button-' . $attachment_id, false );
136
- }
137
- }
138
- }
139
-
140
- return $fields;
141
- }
142
-
143
- /**
144
- * Add "Settings" link to plugin page
145
- *
146
- * @since 1.0
147
- */
148
- public function add_settings_link( $links ) {
149
- $settings = sprintf( '<a href="%s" title="%s">%s</a>' , admin_url( 'admin.php?page=woocommerce&tab=' . $this->tab_name ) , __( 'Go to the settings page', 'woocommerce-delivery-notes' ) , __( 'Settings', 'woocommerce-delivery-notes' ) );
150
- array_unshift( $links, $settings );
151
-
152
- return $links;
153
- }
154
-
155
- /**
156
- * Load the help system
157
- *
158
- * @since 1.0
159
- */
160
- public function load_help() {
161
- // Get the hookname and load the help tabs
162
- if ( $this->is_settings_page() ) {
163
- $menu_slug = plugin_basename( $_GET['page'] );
164
- $hookname = get_plugin_page_hookname( $menu_slug, '' );
165
-
166
- add_action( 'load-' . $hookname, array( $this, 'add_help_tabs' ) );
167
- }
168
- }
169
-
170
/**
171
* Add the help tabs
172
- *
173
- * @since 1.0
174
*/
175
public function add_help_tabs() {
176
// Check current admin screen
177
$screen = get_current_screen();
178
-
179
- // Don't load help tab system prior WordPress 3.3
180
- if ( ! class_exists( 'WP_Screen' ) || ! $screen ) {
181
- return;
182
- }
183
-
184
// Remove all existing tabs
185
$screen->remove_help_tabs();
186
187
// Create arrays with help tab titles
188
$screen->add_help_tab(array(
189
- 'id' => 'wcdn-usage',
190
'title' => __( 'About the Plugin', 'woocommerce-delivery-notes' ),
191
'content' =>
192
'<h3>' . __( 'Plugin: WooCommerce Print Invoices & Delivery Notes', 'woocommerce-delivery-notes' ) . '</h3>' .
@@ -199,16 +141,14 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
199
$screen->set_help_sidebar(
200
'<p><strong>' . __( 'For more information:', 'woocommerce-delivery-notes' ) . '</strong></p>'.
201
'<p><a href="http://wordpress.org/extend/plugins/woocommerce-delivery-notes/faq/" target="_blank">' . __( 'Frequently Asked Questions', 'woocommerce-delivery-notes' ) . '</a></p>' .
202
'<p><a href="http://wordpress.org/extend/plugins/woocommerce-delivery-notes/" target="_blank">' . __( 'Project on WordPress.org', 'woocommerce-delivery-notes' ) . '</a></p>' .
203
- '<p><a href="https://github.com/deckerweb/woocommerce-delivery-notes" target="_blank">' . __( 'Project on GitHub', 'woocommerce-delivery-notes' ) . '</a></p>' .
204
- '<p><a href="http://wordpress.org/tags/woocommerce-delivery-notes?forum_id=10" target="_blank">' . __( 'Discuss in the Forum', 'woocommerce-delivery-notes' ) . '</a></p>'
205
);
206
}
207
208
/**
209
* Add a tab to the settings page
210
- *
211
- * @since 1.0
212
*/
213
public function add_settings_tab($tabs) {
214
$tabs[$this->tab_name] = __( 'Print', 'woocommerce-delivery-notes' );
@@ -237,17 +177,17 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
237
* Create the thumbnail
238
*/
239
public function create_thumbnail( $attachment_id ) {
240
- $attachment_src = wp_get_attachment_image_src( $attachment_id, array( 200, 200 ), false );
241
?>
242
- <img src="<?php echo $attachment_src[0]; ?>" width="<?php echo $attachment_src[1]; ?>" height="<?php echo $attachment_src[2]; ?>" />
243
<?php
244
}
245
246
/**
247
* Create the settings page content
248
- *
249
- * @since 1.0
250
- * @version 1.1
251
*/
252
public function create_settings_page() {
253
?>
@@ -268,8 +208,8 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
268
<a href="#" <?php if( !empty( $attachment_id ) ) : ?>style="display: none;"<?php endif; ?> id="company-logo-add-button"><?php _e( 'Set Logo', 'woocommerce-delivery-notes' ); ?></a>
269
<span class="description">
270
<?php _e( 'A company/shop logo representing your business.', 'woocommerce-delivery-notes' ); ?>
271
- <br /><strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
272
- <?php _e( 'The Logo will be resized if it is larger than 300px &times; 300px.', 'woocommerce-delivery-notes' ); ?>
273
</span>
274
</td>
275
</tr>
@@ -281,7 +221,7 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
281
<textarea name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>custom_company_name" rows="2" class="large-text"><?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'custom_company_name' ) ); ?></textarea>
282
<span class="description">
283
<?php _e( 'Your company/shop name for the Delivery Note.', 'woocommerce-delivery-notes' ); ?>
284
- <br /><strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
285
<?php _e( 'Leave blank to use the default Website/ Blog title defined in WordPress settings.', 'woocommerce-delivery-notes' ); ?>
286
</span>
287
</td>
@@ -294,7 +234,7 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
294
<textarea name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>company_address" rows="5" class="large-text"><?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'company_address' ) ); ?></textarea>
295
<span class="description">
296
<?php _e( 'The postal address of the company/shop, which gets printed right of the company/shop name, above the order listings.', 'woocommerce-delivery-notes' ); ?>
297
- <br /><strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
298
<?php _e('Leave blank to not print an address.', 'woocommerce-delivery-notes' ); ?>
299
</span>
300
</td>
@@ -307,7 +247,7 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
307
<textarea name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>personal_notes" rows="5" class="large-text"><?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'personal_notes' ) ); ?></textarea>
308
<span class="description">
309
<?php _e( 'Add some personal notes, or season greetings or whatever (e.g. Thank You for Your Order!, Merry Christmas!, etc.).', 'woocommerce-delivery-notes' ); ?>
310
- <br /><strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
311
<?php _e('Leave blank to not print any personal notes.', 'woocommerce-delivery-notes' ); ?>
312
</span>
313
</td>
@@ -320,7 +260,7 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
320
<textarea name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>policies_conditions" rows="5" class="large-text"><?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'policies_conditions' ) ); ?></textarea>
321
<span class="description">
322
<?php _e( 'Here you can add some more policies, conditions etc. For example add a returns policy in case the client would like to send back some goods. In some countries (e.g. in the European Union) this is required so please add any required info in accordance with the statutory regulations.', 'woocommerce-delivery-notes' ); ?>
323
- <br /><strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
324
<?php _e('Leave blank to not print any policies or conditions.', 'woocommerce-delivery-notes' ); ?>
325
</span>
326
</td>
@@ -333,48 +273,42 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
333
<textarea name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>footer_imprint" rows="5" class="large-text"><?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'footer_imprint' ) ); ?></textarea>
334
<span class="description">
335
<?php _e( 'Add some further footer imprint, copyright notes etc. to get the printed sheets a bit more branded to your needs.', 'woocommerce-delivery-notes' ); ?>
336
- <br /><strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
337
<?php _e('Leave blank to not print a footer.', 'woocommerce-delivery-notes' ); ?>
338
</span>
339
</td>
340
</tr>
341
- </tbody>
342
- </table>
343
- <h3><?php _e( 'Preview Options', 'woocommerce-delivery-notes' ); ?></h3>
344
- <table class="form-table">
345
- <tbody>
346
<tr>
347
<th>
348
- <?php _e( 'Preview opens', 'woocommerce-delivery-notes' ); ?>
349
</th>
350
<td>
351
- <input name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>open_print_window" type="hidden" value="no" />
352
- <label for="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>open_print_window"><input name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>open_print_window" type="checkbox" value="yes" <?php checked( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'open_print_window' ), 'yes' );?> /> <?php _e( 'Start printing when the preview page opens', 'woocommerce-delivery-notes' ); ?></label>
353
</td>
354
</tr>
355
</tbody>
356
</table>
357
<h3><?php _e( 'Order Numbering Options', 'woocommerce-delivery-notes' ); ?></h3>
358
<table class="form-table">
359
- <tbody>
360
- <tr>
361
- <th>
362
- <label for="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>before_order_number"><?php _e( 'Before order number', 'woocommerce-delivery-notes' ); ?></label>
363
- </th>
364
- <td>
365
- <input name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>before_order_number" type="text" value="<?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'before_order_number' ) ); ?>" />
366
- <span class="description"><?php _e( 'This text will be placed before the order number ie. "YOUR-TEXT123".', 'woocommerce-delivery-notes' ); ?></span>
367
- </td>
368
- </tr>
369
- <tr>
370
- <th>
371
- <label for="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>after_order_number"><?php _e( 'After order number', 'woocommerce-delivery-notes' ); ?></label>
372
- </th>
373
- <td>
374
- <input name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>after_order_number" type="text" value="<?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'after_order_number' ) ); ?>" />
375
- <span class="description"><?php _e( 'This text will be placed after the order number ie. "123YOUR-TEXT".', 'woocommerce-delivery-notes' ); ?></span>
376
- </td>
377
- </tr>
378
<tr>
379
<th>
380
<label for="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>order_number_offset"><?php _e( 'Sequential order number', 'woocommerce-delivery-notes' ); ?></label>
@@ -394,11 +328,15 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
394
<?php
395
}
396
397
/**
398
* Save all settings
399
- *
400
- * @since 1.0
401
- * @version 1.1
402
*/
403
public function save_settings_page() {
404
if ( isset( $_POST[ $this->hidden_submit ] ) && $_POST[ $this->hidden_submit ] == 'submitted' ) {
@@ -422,3 +360,5 @@ if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
422
}
423
424
}
2
3
/**
4
* Settings class
5
*/
6
if ( ! class_exists( 'WooCommerce_Delivery_Notes_Settings' ) ) {
7
8
class WooCommerce_Delivery_Notes_Settings {
9
10
+ public $tab_name;
11
+ public $hidden_submit;
12
13
/**
14
* Constructor
15
*/
16
public function __construct() {
17
$this->tab_name = 'woocommerce-delivery-notes';
20
21
/**
22
* Load the class
23
*/
24
public function load() {
25
add_action( 'admin_init', array( $this, 'load_hooks' ) );
27
28
/**
29
* Load the admin hooks
30
*/
31
public function load_hooks() {
32
add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_tab' ) );
33
add_action( 'woocommerce_settings_tabs_' . $this->tab_name, array( $this, 'create_settings_page' ) );
34
add_action( 'woocommerce_update_options_' . $this->tab_name, array( $this, 'save_settings_page' ) );
35
+ add_action( 'current_screen', array( $this, 'load_screen_hooks' ) );
36
add_action( 'wp_ajax_load_thumbnail', array( $this, 'load_thumbnail_ajax' ) );
37
+ }
38
+
39
+ /**
40
+ * Add the scripts
41
+ */
42
+ public function load_screen_hooks() {
43
+ $screen = get_current_screen();
44
+
45
+ if( $this->is_settings_page() ) {
46
+ add_action( 'admin_print_styles', array( $this, 'add_styles' ) );
47
+ add_action( 'admin_print_scripts', array( $this, 'add_scripts' ) );
48
+ add_action( 'load-' . $screen->id, array( $this, 'add_help_tabs' ) );
49
+ }
50
+
51
+ if( $this->is_media_uploader_page() ) {
52
+ add_filter( 'media_upload_tabs', array( $this, 'remove_media_tabs' ) );
53
+ }
54
}
55
56
/**
57
* Add the styles
58
*/
59
public function add_styles() {
60
+ wp_enqueue_style( 'thickbox' );
61
+ wp_enqueue_style( 'woocommerce-delivery-notes', WooCommerce_Delivery_Notes::$plugin_url . 'css/style.css' );
62
}
63
64
/**
65
* Add the scripts
66
*/
67
public function add_scripts() {
68
+ ?>
69
+ <script type="text/javascript">
70
+ var show_print_preview = 'yes';
71
+ </script>
72
+ <?php
73
+ wp_enqueue_script( 'media-upload' );
74
+ wp_enqueue_script( 'thickbox' );
75
+ wp_enqueue_script( 'woocommerce-delivery-notes', WooCommerce_Delivery_Notes::$plugin_url . 'js/script.js', array( 'jquery', 'media-upload', 'thickbox' ) );
76
+ }
77
78
/**
79
+ * Check if we are on settings page
80
*/
81
+ public function is_settings_page() {
82
+ if( isset( $_GET['page'] ) && isset( $_GET['tab'] ) && $_GET['tab'] == $this->tab_name ) {
83
+ return true;
84
+ } else {
85
+ return false;
86
+ }
87
}
88
89
/**
90
+ * Check if we are on media uploader page
91
*/
92
+ public function is_media_uploader_page() {
93
+ if( isset( $_GET['post_id'] ) && isset( $_GET['company_logo_image'] ) && $_GET['post_id'] == '0' && $_GET['company_logo_image'] == 'true' ) {
94
return true;
95
} else {
96
return false;
99
100
/**
101
* Check if sequential order plugin is activated
102
*/
103
public function is_woocommerce_sequential_order_numbers_activated() {
104
if ( in_array( 'woocommerce-sequential-order-numbers/woocommerce-sequential-order-numbers.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
112
* Remove the media uploader tabs
113
*/
114
public function remove_media_tabs( $tabs ) {
115
+ unset( $tabs['type_url'] );
116
return $tabs;
117
}
118
119
/**
120
* Add the help tabs
121
*/
122
public function add_help_tabs() {
123
// Check current admin screen
124
$screen = get_current_screen();
125
+
126
// Remove all existing tabs
127
$screen->remove_help_tabs();
128
129
// Create arrays with help tab titles
130
$screen->add_help_tab(array(
131
+ 'id' => 'woocommerce-delivery-notes-usage',
132
'title' => __( 'About the Plugin', 'woocommerce-delivery-notes' ),
133
'content' =>
134
'<h3>' . __( 'Plugin: WooCommerce Print Invoices & Delivery Notes', 'woocommerce-delivery-notes' ) . '</h3>' .
141
$screen->set_help_sidebar(
142
'<p><strong>' . __( 'For more information:', 'woocommerce-delivery-notes' ) . '</strong></p>'.
143
'<p><a href="http://wordpress.org/extend/plugins/woocommerce-delivery-notes/faq/" target="_blank">' . __( 'Frequently Asked Questions', 'woocommerce-delivery-notes' ) . '</a></p>' .
144
+ '<p><a href="http://wordpress.org/support/plugin/woocommerce-delivery-notes" target="_blank">' . __( 'Get Community Support', 'woocommerce-delivery-notes' ) . '</a></p>' .
145
'<p><a href="http://wordpress.org/extend/plugins/woocommerce-delivery-notes/" target="_blank">' . __( 'Project on WordPress.org', 'woocommerce-delivery-notes' ) . '</a></p>' .
146
+ '<p><a href="https://github.com/deckerweb/woocommerce-delivery-notes" target="_blank">' . __( 'Project on GitHub', 'woocommerce-delivery-notes' ) . '</a></p>'
147
);
148
}
149
150
/**
151
* Add a tab to the settings page
152
*/
153
public function add_settings_tab($tabs) {
154
$tabs[$this->tab_name] = __( 'Print', 'woocommerce-delivery-notes' );
177
* Create the thumbnail
178
*/
179
public function create_thumbnail( $attachment_id ) {
180
+ $attachment_src = wp_get_attachment_image_src( $attachment_id, 'full', false );
181
+
182
+ // resize the image to a 1/4 of the original size
183
+ // to have a printing point density of about 288ppi.
184
?>
185
+ <img src="<?php echo $attachment_src[0]; ?>" width="<?php echo $attachment_src[1] / 4; ?>" height="<?php echo $attachment_src[2] / 4; ?>" alt="" />
186
<?php
187
}
188
189
/**
190
* Create the settings page content
191
*/
192
public function create_settings_page() {
193
?>
208
<a href="#" <?php if( !empty( $attachment_id ) ) : ?>style="display: none;"<?php endif; ?> id="company-logo-add-button"><?php _e( 'Set Logo', 'woocommerce-delivery-notes' ); ?></a>
209
<span class="description">
210
<?php _e( 'A company/shop logo representing your business.', 'woocommerce-delivery-notes' ); ?>
211
+ <strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
212
+ <?php _e( 'When the image is printed, its pixel density will automatically be eight times higher than the original. This means, 1 printed inch will correspond to about 288 pixels on the screen. Example: an image with a width of 576 pixels and a height of 288 pixels will have a printed size of about 2 inches to 1 inch.', 'woocommerce-delivery-notes' ); ?>
213
</span>
214
</td>
215
</tr>
221
<textarea name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>custom_company_name" rows="2" class="large-text"><?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'custom_company_name' ) ); ?></textarea>
222
<span class="description">
223
<?php _e( 'Your company/shop name for the Delivery Note.', 'woocommerce-delivery-notes' ); ?>
224
+ <strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
225
<?php _e( 'Leave blank to use the default Website/ Blog title defined in WordPress settings.', 'woocommerce-delivery-notes' ); ?>
226
</span>
227
</td>
234
<textarea name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>company_address" rows="5" class="large-text"><?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'company_address' ) ); ?></textarea>
235
<span class="description">
236
<?php _e( 'The postal address of the company/shop, which gets printed right of the company/shop name, above the order listings.', 'woocommerce-delivery-notes' ); ?>
237
+ <strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
238
<?php _e('Leave blank to not print an address.', 'woocommerce-delivery-notes' ); ?>
239
</span>
240
</td>
247
<textarea name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>personal_notes" rows="5" class="large-text"><?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'personal_notes' ) ); ?></textarea>
248
<span class="description">
249
<?php _e( 'Add some personal notes, or season greetings or whatever (e.g. Thank You for Your Order!, Merry Christmas!, etc.).', 'woocommerce-delivery-notes' ); ?>
250
+ <strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
251
<?php _e('Leave blank to not print any personal notes.', 'woocommerce-delivery-notes' ); ?>
252
</span>
253
</td>
260
<textarea name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>policies_conditions" rows="5" class="large-text"><?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'policies_conditions' ) ); ?></textarea>
261
<span class="description">
262
<?php _e( 'Here you can add some more policies, conditions etc. For example add a returns policy in case the client would like to send back some goods. In some countries (e.g. in the European Union) this is required so please add any required info in accordance with the statutory regulations.', 'woocommerce-delivery-notes' ); ?>
263
+ <strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
264
<?php _e('Leave blank to not print any policies or conditions.', 'woocommerce-delivery-notes' ); ?>
265
</span>
266
</td>
273
<textarea name="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>footer_imprint" rows="5" class="large-text"><?php echo wp_kses_stripslashes( get_option( WooCommerce_Delivery_Notes::$plugin_prefix . 'footer_imprint' ) ); ?></textarea>
274
<span class="description">
275
<?php _e( 'Add some further footer imprint, copyright notes etc. to get the printed sheets a bit more branded to your needs.', 'woocommerce-delivery-notes' ); ?>
276
+ <strong><?php _e( 'Note:', 'woocommerce-delivery-notes' ); ?></strong>
277
<?php _e('Leave blank to not print a footer.', 'woocommerce-delivery-notes' ); ?>
278
</span>
279
</td>
280
</tr>
281
<tr>
282
<th>
283
</th>
284
<td>
285
+ <?php
286
+ // show template preview links when an order is available
287
+ $args = array(
288
+ 'post_type' => 'shop_order',
289
+ 'posts_per_page' => 1
290
+ );
291
+ $query = new WP_Query( $args );
292
+
293
+ if($query->have_posts()) : ?>
294
+ <?php
295
+ $results = $query->get_posts();
296
+ $test_id = $results[0]->ID;
297
+ $invoice_url = wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_print_content&template_type=invoice&order_id=' . $test_id ), 'generate_print_content' );
298
+ $note_url = wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_print_content&template_type=delivery-note&order_id=' . $test_id ), 'generate_print_content' );
299
+ ?>
300
+ <span class="description">
301
+ <?php printf( __( 'You can <a href="%1$s" target="%3$s" class="%4$s">preview the invoice template</a> or <a href="%2$s" target="%3$s" class="%4$s">the delivery note template</a>.', 'woocommerce-delivery-notes' ), $invoice_url, $note_url, '_blank', 'print-preview-button' ); ?>
302
+ <?php _e( 'For more advanced control copy <code>woocommerce-delivery-notes/templates/print/style.css</code> to <code>your-theme-name/woocommerce/print/style.css</code>.', 'woocommerce-delivery-notes' ); ?>
303
+ </span>
304
+ <?php endif; ?>
305
</td>
306
</tr>
307
</tbody>
308
</table>
309
<h3><?php _e( 'Order Numbering Options', 'woocommerce-delivery-notes' ); ?></h3>
310
<table class="form-table">
311
+ <tbody>
312
<tr>
313
<th>
314
<label for="<?php echo WooCommerce_Delivery_Notes::$plugin_prefix; ?>order_number_offset"><?php _e( 'Sequential order number', 'woocommerce-delivery-notes' ); ?></label>
328
<?php
329
}
330
331
+ /**
332
+ * Get the content for an option
333
+ */
334
+ public function get_setting( $name ) {
335
+ return get_option( WooCommerce_Delivery_Notes::$plugin_prefix . $name );
336
+ }
337
+
338
/**
339
* Save all settings
340
*/
341
public function save_settings_page() {
342
if ( isset( $_POST[ $this->hidden_submit ] ) && $_POST[ $this->hidden_submit ] == 'submitted' ) {
360
}
361
362
}
363
+
364
+ ?>
classes/class-wcdn-writepanel.php CHANGED
@@ -2,8 +2,6 @@
2
3
/**
4
* Writepanel class
5
- *
6
- * @since 1.0
7
*/
8
if ( !class_exists( 'WooCommerce_Delivery_Notes_Writepanel' ) ) {
9
@@ -11,16 +9,12 @@ if ( !class_exists( 'WooCommerce_Delivery_Notes_Writepanel' ) ) {
11
12
/**
13
* Constructor
14
- *
15
- * @since 1.0
16
*/
17
public function __construct() {
18
}
19
20
/**
21
* Load the class
22
- *
23
- * @since 1.0
24
*/
25
public function load() {
26
add_action( 'admin_init', array( $this, 'load_hooks' ) );
@@ -28,51 +22,71 @@ if ( !class_exists( 'WooCommerce_Delivery_Notes_Writepanel' ) ) {
28
29
/**
30
* Load the admin hooks
31
- *
32
- * @since 1.0
33
*/
34
public function load_hooks() {
35
- add_filter( 'plugin_row_meta', array( $this, 'add_support_links' ), 10, 2 );
36
add_action( 'add_meta_boxes_shop_order', array( $this, 'add_box' ) );
37
- add_action( 'admin_print_styles-post.php', array( $this, 'print_styles' ) );
38
}
39
40
/**
41
- * Load the styles
42
- *
43
- * @since 1.0
44
*/
45
- public function print_styles() {
46
- global $post_type;
47
-
48
- if ( $post_type == 'shop_order' ) {
49
- wp_enqueue_style( 'woocommerce-delivery-notes-styles', WooCommerce_Delivery_Notes::$plugin_url . 'css/style.css' );
50
}
51
}
52
53
/**
54
- * Add various support links to plugin page
55
- *
56
- * @since 1.0
57
*/
58
- public function add_support_links( $links, $file ) {
59
- if ( !current_user_can( 'install_plugins' ) ) {
60
- return $links;
61
}
62
-
63
- if ( $file == WooCommerce_Delivery_Notes::$plugin_basefile ) {
64
- $links[] = '<a href="http://wordpress.org/extend/plugins/woocommerce-delivery-notes/faq/" target="_new" title="' . __( 'FAQ', 'woocommerce-delivery-notes' ) . '">' . __( 'FAQ', 'woocommerce-delivery-notes' ) . '</a>';
65
- $links[] = '<a href="http://wordpress.org/tags/woocommerce-delivery-notes?forum_id=10" target="_new" title="' . __( 'Support', 'woocommerce-delivery-notes' ) . '">' . __( 'Support', 'woocommerce-delivery-notes' ) . '</a>';
66
- $links[] = '<a href="' . __( 'http://genesisthemes.de/en/donate/', 'woocommerce-delivery-notes' ) . '" target="_new" title="' . __( 'Donate', 'woocommerce-delivery-notes' ) . '">' . __( 'Donate', 'woocommerce-delivery-notes' ) . '</a>';
67
}
68
-
69
- return $links;
70
}
71
-
72
/**
73
* Add the meta box on the single order page
74
- *
75
- * @since 1.0
76
*/
77
public function add_box() {
78
add_meta_box( 'woocommerce-delivery-notes-box', __( 'Order Print', 'woocommerce-delivery-notes' ), array( $this, 'create_box_content' ), 'shop_order', 'side', 'default' );
@@ -80,20 +94,20 @@ if ( !class_exists( 'WooCommerce_Delivery_Notes_Writepanel' ) ) {
80
81
/**
82
* Create the meta box content on the single order page
83
- *
84
- * @since 1.0
85
*/
86
public function create_box_content() {
87
global $post_id;
88
-
89
?>
90
<ul class="woocommerce-delivery-notes-actions">
91
- <li><a href="<?php echo WooCommerce_Delivery_Notes::$plugin_url; ?>woocommerce-delivery-notes-print.php?order=<?php echo $post_id; ?>&name=invoice" id="woocommerce-delivery-notes-print-invoice" class="button button" target="_blank"><?php _e( 'Print Invoice', 'woocommerce-delivery-notes' ); ?></a></li>
92
- <li><a href="<?php echo WooCommerce_Delivery_Notes::$plugin_url; ?>woocommerce-delivery-notes-print.php?order=<?php echo $post_id; ?>&name=delivery-note" id="woocommerce-delivery-notes-print-delivery-note" class="button button" target="_blank"><?php _e( 'Print Delivery Note', 'woocommerce-delivery-notes' ); ?></a></li>
93
</ul>
94
<?php
95
}
96
97
}
98
99
}
2
3
/**
4
* Writepanel class
5
*/
6
if ( !class_exists( 'WooCommerce_Delivery_Notes_Writepanel' ) ) {
7
9
10
/**
11
* Constructor
12
*/
13
public function __construct() {
14
}
15
16
/**
17
* Load the class
18
*/
19
public function load() {
20
add_action( 'admin_init', array( $this, 'load_hooks' ) );
22
23
/**
24
* Load the admin hooks
25
*/
26
public function load_hooks() {
27
+ add_action( 'woocommerce_admin_order_actions_end', array( $this, 'add_listing_actions' ) );
28
add_action( 'add_meta_boxes_shop_order', array( $this, 'add_box' ) );
29
+ add_action( 'admin_print_scripts', array( $this, 'add_scripts' ) );
30
+ add_action( 'admin_print_styles', array( $this, 'add_styles' ) );
31
}
32
33
/**
34
+ * Add the styles
35
*/
36
+ public function add_styles() {
37
+ if( $this->is_order_edit_page() ) {
38
+ wp_enqueue_style( 'thickbox' );
39
+ wp_enqueue_style( 'woocommerce-delivery-notes', WooCommerce_Delivery_Notes::$plugin_url . 'css/style.css' );
40
}
41
}
42
43
/**
44
+ * Add the scripts
45
*/
46
+ public function add_scripts() {
47
+ if( $this->is_order_edit_page() ) {
48
+ ?>
49
+ <script type="text/javascript">
50
+ var show_print_preview = 'no';
51
+ </script>
52
+ <?php
53
+ wp_enqueue_script( 'media-upload' );
54
+ wp_enqueue_script( 'thickbox' );
55
+ wp_enqueue_script( 'woocommerce-delivery-notes', WooCommerce_Delivery_Notes::$plugin_url . 'js/script.js', array( 'jquery', 'media-upload', 'thickbox' ) );
56
}
57
+ }
58
+
59
+ /**
60
+ * Is order page
61
+ */
62
+ public function is_order_edit_page() {
63
+ global $post_type;
64
+ if( $post_type == 'shop_order' ) {
65
+ return true;
66
+ } else {
67
+ return false;
68
}
69
+ }
70
+
71
+ /**
72
+ * Add print actions to the orders listing
73
+ */
74
+ public function add_listing_actions( $order ) {
75
+ ?>
76
+ <a href="<?php echo wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_print_content&template_type=invoice&order_id=' . $order->id ), 'generate_print_content' ); ?>" class="button tips print-preview-button" target="_blank" alt="<?php esc_attr_e( 'Print Invoice', 'woocommerce-delivery-notes' ); ?>" data-tip="<?php esc_attr_e( 'Print Invoice', 'woocommerce-delivery-notes' ); ?>">
77
+ <span><?php _e( 'Print Invoice', 'woocommerce-delivery-notes' ); ?></span>
78
+ <img src="<?php echo WooCommerce_Delivery_Notes::$plugin_url . 'images/print-invoice.png'; ?>" alt="<?php esc_attr_e( 'Print Delivery Note', 'woocommerce-delivery-notes' ); ?>" width="14">
79
+ </a>
80
+ <a href="<?php echo wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_print_content&template_type=delivery-note&order_id=' . $order->id ), 'generate_print_content' ); ?>" class="button tips print-preview-button" target="_blank" alt="<?php esc_attr_e( 'Print Delivery Note', 'woocommerce-delivery-notes' ); ?>" data-tip="<?php esc_attr_e( 'Print Delivery Note', 'woocommerce-delivery-notes' ); ?>">
81
+ <span><?php _e( 'Print Delivery Note', 'woocommerce-delivery-notes' ); ?></span>
82
+ <img src="<?php echo WooCommerce_Delivery_Notes::$plugin_url . 'images/print-delivery-note.png'; ?>" alt="<?php esc_attr_e( 'Print Delivery Note', 'woocommerce-delivery-notes' ); ?>" width="14">
83
+ </a>
84
+ <img src="<?php echo admin_url( 'images/wpspin_light.gif' ); ?>" class="loading" alt="">
85
+ <?php
86
}
87
+
88
/**
89
* Add the meta box on the single order page
90
*/
91
public function add_box() {
92
add_meta_box( 'woocommerce-delivery-notes-box', __( 'Order Print', 'woocommerce-delivery-notes' ), array( $this, 'create_box_content' ), 'shop_order', 'side', 'default' );
94
95
/**
96
* Create the meta box content on the single order page
97
*/
98
public function create_box_content() {
99
global $post_id;
100
?>
101
<ul class="woocommerce-delivery-notes-actions">
102
+ <li><a href="<?php echo wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_print_content&template_type=invoice&order_id=' . $post_id ), 'generate_print_content' ); ?>" class="button print-preview-button" target="_blank" alt="<?php esc_attr_e( 'Print Invoice', 'woocommerce-delivery-notes' ); ?>"><?php _e( 'Print Invoice', 'woocommerce-delivery-notes' ); ?></a></li>
103
+ <li><a href="<?php echo wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_print_content&template_type=delivery-note&order_id=' . $post_id ), 'generate_print_content' ); ?>" class="button print-preview-button" target="_blank" alt="<?php esc_attr_e( 'Print Delivery Note', 'woocommerce-delivery-notes' ); ?>"><?php _e( 'Print Delivery Note', 'woocommerce-delivery-notes' ); ?></a></li>
104
</ul>
105
+ <img src="<?php echo admin_url( 'images/wpspin_light.gif' ); ?>" class="loading" alt="">
106
<?php
107
}
108
109
}
110
111
}
112
+
113
+ ?>
css/style.css CHANGED
@@ -1,25 +1,40 @@
1
- ul.woocommerce-delivery-notes-actions {
2
- text-align: center;
3
}
4
- ul.woocommerce-delivery-notes-actions li {
5
- margin: 5px;
6
- display: inline-block;
7
}
8
#company-logo-placeholder {
9
display: block;
10
}
11
#company-logo-placeholder.loading {
12
- background-image: url("../../../../wp-admin/images/loading.gif");
13
background-repeat: no-repeat;
14
height: 20px;
15
}
16
#company-logo-placeholder img {
17
cursor: pointer;
18
- }
19
- #media-upload .savesend input.button,
20
- #media-upload #go_button {
21
- display: none;
22
- }
23
- .savesend input.button.use-image-button {
24
- display: block;
25
}
1
+ #woocommerce-delivery-notes-box .inside {
2
+ text-align: left;
3
+ position: relative;
4
}
5
+ #woocommerce-delivery-notes-box .inside ul {
6
+ overflow: hidden;
7
+ margin: 0px;
8
+ }
9
+ #woocommerce-delivery-notes-box .inside ul li {
10
+ float: left;
11
+ margin: 3px;
12
+ }
13
+ #woocommerce-delivery-notes-box .inside img.loading {
14
+ position: absolute;
15
+ right: 7px;
16
+ top: 0px;
17
+ }
18
+ #woocommerce-delivery-notes-box .inside img.loading,
19
+ .type-shop_order .column-order_actions img.loading {
20
+ display: none;
21
+ vertical-align: middle;
22
+ }
23
+ .type-shop_order .column-order_actions img.loading {
24
+ float: left;
25
+ margin-top: 3px;
26
+ }
27
+ .type-shop_order .column-order_actions .print-preview-button span {
28
+ display: none;
29
}
30
#company-logo-placeholder {
31
display: block;
32
}
33
#company-logo-placeholder.loading {
34
+ background-image: url("../../../../wp-admin/images/wpspin_light.gif");
35
background-repeat: no-repeat;
36
height: 20px;
37
}
38
#company-logo-placeholder img {
39
cursor: pointer;
40
}
images/print-delivery-note.png ADDED
Binary file
images/print-invoice.png ADDED
Binary file
js/script-media-uploader.js DELETED
@@ -1,11 +0,0 @@
1
- jQuery(document).ready(function($) {
2
-
3
- // button to send media to content
4
- $('#media-upload .use-image-button').live('click', function(event) {
5
- var id = Number($(this).attr('id').substr(17));
6
- var image = $(this).closest('.describe').find('.thumbnail').attr('src');
7
- var win = window.dialogArguments || opener || parent || top;
8
- win.sendImageToContent(id, image);
9
- event.preventDefault();
10
- });
11
- });
js/script.js CHANGED
@@ -1,8 +1,54 @@
1
jQuery(document).ready(function($) {
2
3
// button to open the media uploader
4
- $('#company-logo-add-button, #company-logo-placeholder img').on('click', function(event) {
5
- tb_show('', 'media-upload.php?post_id=0&amp;type=image&amp;TB_iframe=true');
6
event.preventDefault();
7
});
8
@@ -12,32 +58,33 @@ jQuery(document).ready(function($) {
12
event.preventDefault();
13
});
14
15
- // this javascript is called from the custom
16
- // button inside the media manager. see the
17
- // script-media-uploader.js for details.
18
- // close the media uploader and set the media
19
- window.sendImageToContent = function(id, image) {
20
- console.log(this);
21
tb_remove();
22
23
- $('#company-logo-image-id').val(id);
24
- $('#company-logo-placeholder').addClass('loading').empty();
25
-
26
// load the image
27
var data = {
28
- attachment_id: id,
29
action: 'load_thumbnail'
30
}
31
32
$.post(ajaxurl, data, function(response) {
33
- $('#company-logo-placeholder').removeClass('loading').append(response);
34
$('#company-logo-add-button').hide();
35
$('#company-logo-remove-button').show();
36
}).error(function() {
37
removeImage();
38
});
39
}
40
-
41
// remove media
42
function removeImage() {
43
$('#company-logo-image-id').val('');
1
jQuery(document).ready(function($) {
2
+
3
+ // click print button
4
+ $('.print-preview-button').on('click', function(event) {
5
+
6
+ var iframe = null;
7
+ var url = $(this).attr('href');
8
+
9
+ // just open the href link when iframe printing is not supported
10
+ if($.browser.opera || ($.browser.msie && parseInt($.browser.version) > 9)) {
11
+ return;
12
+ }
13
+
14
+ // otherwise continue with the cool iframe printing
15
+ if(show_print_preview == 'yes') {
16
+ // show the print settings preview in thickbox
17
+ tb_show('', url + '&TB_iframe=true&width=720&height=460');
18
+
19
+ return false;
20
+ } else {
21
+ // create the iframe and print dialogue
22
+ $('#woocommerce-delivery-notes-box .loading').show();
23
+ $(this).parent().find('.loading').show();
24
+
25
+ // print the page with a hidden preview window
26
+ if(!$('#printPreview')[0]) {
27
+ // create a new iframe
28
+ var iframe = '<iframe id="printPreview" name="printPreview" src=' + url + ' style="position:absolute;top:-9999px;left:-9999px;border:0px;overfow:none; z-index:-1"></iframe>';
29
+ $('body').append(iframe);
30
31
+ // print when the iframe is loaded
32
+ $('#printPreview').on('load',function() {
33
+ $('#woocommerce-delivery-notes-box .loading').hide();
34
+ $(this).parent().find('.loading').hide();
35
+ frames['printPreview'].focus();
36
+ frames['printPreview'].print();
37
+ });
38
+ } else {
39
+ // change the iframe src when the iframe is already appended
40
+ $('#printPreview').attr('src', url);
41
+ }
42
+
43
+ return false;
44
+ }
45
+
46
+ return false;
47
+ });
48
+
49
// button to open the media uploader
50
+ $('#company-logo-add-button, #company-logo-placeholder').on('click', function(event) {
51
+ tb_show('', 'media-upload.php?post_id=0&company_logo_image=true&type=image&TB_iframe=true');
52
event.preventDefault();
53
});
54
58
event.preventDefault();
59
});
60
61
+ // called when the "Insert into post" button is clicked
62
+ window.send_to_editor = function(html) {
63
+ removeImage();
64
tb_remove();
65
66
+ // find the attachment id
67
+ var tag = $('<div></div>');
68
+ tag.append(html);
69
+ var imgClass = $('img', tag).attr('class');
70
+ var imgID = parseInt(imgClass.replace(/\D/g, ''), 10);
71
+
72
// load the image
73
var data = {
74
+ attachment_id: imgID,
75
action: 'load_thumbnail'
76
}
77
78
$.post(ajaxurl, data, function(response) {
79
+ $('#company-logo-image-id').val(data.attachment_id);
80
+ $('#company-logo-placeholder').removeClass('loading').html(response);
81
$('#company-logo-add-button').hide();
82
$('#company-logo-remove-button').show();
83
}).error(function() {
84
removeImage();
85
});
86
}
87
+
88
// remove media
89
function removeImage() {
90
$('#company-logo-image-id').val('');
languages/woocommerce-delivery-notes-da_DK.mo ADDED
Binary file
languages/woocommerce-delivery-notes-da_DK.po ADDED
@@ -0,0 +1,297 @@
1
+ # Translation of WooCommerce Print Invoices & Delivery Notes in Danish
2
+ # This file is distributed under the same license as the WooCommerce Print Invoices & Delivery Notes package.
3
+ msgid ""
4
+ msgstr ""
5
+ "PO-Revision-Date: 2013-03-11 14:33+0100\n"
6
+ "MIME-Version: 1.0\n"
7
+ "Content-Type: text/plain; charset=UTF-8\n"
8
+ "Content-Transfer-Encoding: 8bit\n"
9
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
10
+ "X-Generator: GlotPress/0.1\n"
11
+ "Project-Id-Version: WooCommerce Print Invoices & Delivery Notes\n"
12
+ "POT-Creation-Date: \n"
13
+ "Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
14
+ "Language-Team: \n"
15
+
16
+ #: classes/class-wcdn-settings.php:301
17
+ msgid "You can <a href=\"%1$s\" target=\"%3$s\" class=\"%4$s\">preview the invoice template</a> or <a href=\"%2$s\" target=\"%3$s\" class=\"%4$s\">the delivery note template</a>."
18
+ msgstr ""
19
+
20
+ #: classes/class-wcdn-settings.php:302
21
+ msgid "For more advanced control copy <code>woocommerce-delivery-notes/templates/print/style.css</code> to <code>your-theme-name/woocommerce/print/style.css</code>."
22
+ msgstr ""
23
+
24
+ #: templates/print/print-delivery-note.php:38
25
+ msgid "Billing Date"
26
+ msgstr ""
27
+
28
+ #: templates/print/print-delivery-note.php:40
29
+ msgid "Shipping Date"
30
+ msgstr ""
31
+
32
+ #: templates/print/print-delivery-note.php:45
33
+ msgid "Order Number"
34
+ msgstr ""
35
+
36
+ #: templates/print/print-delivery-note.php:49
37
+ msgid "Payment Method"
38
+ msgstr ""
39
+
40
+ #: woocommerce-delivery-notes.php:0
41
+ msgid "2.0"
42
+ msgstr "2.0"
43
+
44
+ #: classes/class-wcdn-settings.php:144
45
+ msgid "Get Community Support"
46
+ msgstr "Få Community Support"
47
+
48
+ #: classes/class-wcdn-settings.php:212
49
+ msgid "When the image is printed, its pixel density will automatically be eight times higher than the original. This means, 1 printed inch will correspond to about 288 pixels on the screen. Example: an image with a width of 576 pixels and a height of 288 pixels will have a printed size of about 2 inches to 1 inch."
50
+ msgstr "Når billedet udskrives, vil dens pixeltæthed automatisk være otte gange højere end den oprindelige. Dette betyder, at 1 cm papir er ca 113 pixels på skærmen. Eksempel: et billede med en bredde på 600 pixel og en højde på 400 pixels har en trykt størrelse på omkring 5,3 * 3,5 cm."
51
+
52
+ #: templates/print/print-delivery-note.php:58
53
+ msgid "Product"
54
+ msgstr "Produkt"
55
+
56
+ #: templates/print/print-delivery-note.php:60
57
+ msgid "Totals"
58
+ msgstr "I alt"
59
+
60
+ #: templates/print/print-delivery-note.php:70
61
+ msgid "Download:"
62
+ msgstr "Download:"
63
+
64
+ #: woocommerce-delivery-notes.php:291
65
+ #: woocommerce-delivery-notes.php:305
66
+ msgid "N/A"
67
+ msgstr "N/A"
68
+
69
+ #: classes/class-wcdn-settings.php:202
70
+ msgid "Company/Shop Logo"
71
+ msgstr "Firma/Shop Logo"
72
+
73
+ #: classes/class-wcdn-settings.php:207
74
+ msgid "Remove Logo"
75
+ msgstr "Fjern Logo"
76
+
77
+ #: classes/class-wcdn-settings.php:208
78
+ msgid "Set Logo"
79
+ msgstr "Indsæt Logo"
80
+
81
+ #: classes/class-wcdn-settings.php:210
82
+ msgid "A company/shop logo representing your business."
83
+ msgstr "Et firma/Shop Logo præsenterer din forretning"
84
+
85
+ #: classes/class-wcdn-settings.php:223
86
+ msgid "Your company/shop name for the Delivery Note."
87
+ msgstr "Dit firma/shop navn for Følgesedlen."
88
+
89
+ #: classes/class-wcdn-settings.php:314
90
+ msgid "Sequential order number"
91
+ msgstr "Sekventiel ordrenummer"
92
+
93
+ #: classes/class-wcdn-settings.php:318
94
+ msgid "Sequential numbering is enabled."
95
+ msgstr "Sekventiel ordrenummer er aktiveret"
96
+
97
+ #: classes/class-wcdn-settings.php:320
98
+ msgid "Install and activate the free <a href=\"%s\">WooCommerce Sequential Order Numbers</a> Plugin."
99
+ msgstr "Installer og aktiver den gratis <a href=\"%s\">WooCommerce Sekventil ordrenummer</ a>Plugin."
100
+
101
+ #: woocommerce-delivery-notes.php:0
102
+ msgid "https://github.com/piffpaffpuff/woocommerce-delivery-notes"
103
+ msgstr "https://github.com/piffpaffpuff/woocommerce-delivery-notes"
104
+
105
+ #: woocommerce-delivery-notes.php:203
106
+ msgid "Delivery Note"
107
+ msgstr "Følgeseddel"
108
+
109
+ #: templates/print/print-delivery-note.php:59
110
+ msgid "Quantity"
111
+ msgstr "Antal"
112
+
113
+ #: classes/class-wcdn-print.php:63
114
+ #: classes/class-wcdn-print.php:68
115
+ #: classes/class-wcdn-print.php:73
116
+ #: classes/class-wcdn-print.php:78
117
+ msgid "You do not have sufficient permissions to access this page."
118
+ msgstr "Du har ikke tilladelse til at se denne side."
119
+
120
+ #: woocommerce-delivery-notes.php:134
121
+ msgid "Go to the settings page"
122
+ msgstr "Gå til indstillinger"
123
+
124
+ #: woocommerce-delivery-notes.php:134
125
+ msgid "Settings"
126
+ msgstr "Indstillinger"
127
+
128
+ #: woocommerce-delivery-notes.php:124
129
+ msgid "FAQ"
130
+ msgstr "OSS"
131
+
132
+ #: woocommerce-delivery-notes.php:125
133
+ msgid "Support"
134
+ msgstr "Support"
135
+
136
+ #: classes/class-wcdn-settings.php:257
137
+ msgid "Returns Policy, Conditions, etc.:"
138
+ msgstr "Returpolitik, Salgsbetingelser mv:"
139
+
140
+ #: templates/print/print-delivery-note.php:68
141
+ msgid "SKU:"
142
+ msgstr "SKU:"
143
+
144
+ #: templates/print/print-delivery-note.php:69
145
+ msgid "Weight:"
146
+ msgstr "Vægt:"
147
+
148
+ #: classes/class-wcdn-settings.php:134
149
+ msgid "Plugin: WooCommerce Print Invoices & Delivery Notes"
150
+ msgstr "Plugin: WooCommerce udskriv Fakturaer og Følgesedler"
151
+
152
+ #: classes/class-wcdn-settings.php:211
153
+ #: classes/class-wcdn-settings.php:224
154
+ #: classes/class-wcdn-settings.php:237
155
+ #: classes/class-wcdn-settings.php:250
156
+ #: classes/class-wcdn-settings.php:263
157
+ #: classes/class-wcdn-settings.php:276
158
+ msgid "Note:"
159
+ msgstr "Note:"
160
+
161
+ #: classes/class-wcdn-settings.php:236
162
+ msgid "The postal address of the company/shop, which gets printed right of the company/shop name, above the order listings."
163
+ msgstr "Postadressen bliver trykt til højre for Firma/Shop navn, ovenover ordrelisten."
164
+
165
+ #: classes/class-wcdn-settings.php:249
166
+ msgid "Add some personal notes, or season greetings or whatever (e.g. Thank You for Your Order!, Merry Christmas!, etc.)."
167
+ msgstr "Tilføj nogle personlige beskeder, eller lignende (f.eks Tak for din bestilling!, Glædelig Jul!, Osv.)."
168
+
169
+ #: classes/class-wcdn-settings.php:275
170
+ msgid "Add some further footer imprint, copyright notes etc. to get the printed sheets a bit more branded to your needs."
171
+ msgstr "Tilføj nogle yderligere Footer imprints, ophavsret bemærkninger osv. "
172
+
173
+ #: classes/class-wcdn-settings.php:132
174
+ #: classes/class-wcdn-settings.php:135
175
+ msgid "About the Plugin"
176
+ msgstr "Om plugin'en"
177
+
178
+ #: classes/class-wcdn-settings.php:142
179
+ msgid "For more information:"
180
+ msgstr "For mere information:"
181
+
182
+ #: classes/class-wcdn-settings.php:143
183
+ msgid "Frequently Asked Questions"
184
+ msgstr "Ofte Stillede Spørgsmål"
185
+
186
+ #: classes/class-wcdn-settings.php:145
187
+ msgid "Project on WordPress.org"
188
+ msgstr "Projekt på WordPress.org"
189
+
190
+ #: classes/class-wcdn-settings.php:146
191
+ msgid "Project on GitHub"
192
+ msgstr "Projekt på GitHub"
193
+
194
+ #: classes/class-wcdn-settings.php:154
195
+ msgid "Print"
196
+ msgstr "Udskriv"
197
+
198
+ #: classes/class-wcdn-settings.php:194
199
+ msgid "Invoices and Delivery Notes"
200
+ msgstr "Fakturaer og Følgesedler"
201
+
202
+ #: classes/class-wcdn-settings.php:218
203
+ msgid "Company/Shop Name"
204
+ msgstr "Firme/Shop Navn"
205
+
206
+ #: classes/class-wcdn-settings.php:225
207
+ msgid "Leave blank to use the default Website/ Blog title defined in WordPress settings."
208
+ msgstr "Efterlad tom for at bruge standard-hjemmeside / blog titel defineret under WordPress-indstillinger."
209
+
210
+ #: classes/class-wcdn-settings.php:231
211
+ msgid "Company/Shop Address"
212
+ msgstr "Firma/Shop Adresse"
213
+
214
+ #: classes/class-wcdn-settings.php:238
215
+ msgid "Leave blank to not print an address."
216
+ msgstr "Efterlad tomt felt for ikke at udskrive en adresse."
217
+
218
+ #: classes/class-wcdn-settings.php:244
219
+ msgid "Personal Notes"
220
+ msgstr "Personlige Besked:"
221
+
222
+ #: classes/class-wcdn-settings.php:251
223
+ msgid "Leave blank to not print any personal notes."
224
+ msgstr "Efterlad tomt felt for ikke at udskrive nogen besked."
225
+
226
+ #: classes/class-wcdn-settings.php:262
227
+ msgid "Here you can add some more policies, conditions etc. For example add a returns policy in case the client would like to send back some goods. In some countries (e.g. in the European Union) this is required so please add any required info in accordance with the statutory regulations."
228
+ msgstr "Her kan du tilføje vilkår mv. For eksempel tilføje en returpolitik i tilfælde af at kunden gerne vil sende varer tilbage. I nogle lande (f.eks i Den Europæiske Union) dette er påkrævet, så kan du tilføje alle nødvendige oplysninger i overensstemmelse med de lovmæssige bestemmelser."
229
+
230
+ #: classes/class-wcdn-settings.php:264
231
+ msgid "Leave blank to not print any policies or conditions."
232
+ msgstr "Efterlad tomt felt for ikke at udskrive noget."
233
+
234
+ #: classes/class-wcdn-settings.php:270
235
+ msgid "Footer Imprint"
236
+ msgstr "Footer Imprint"
237
+
238
+ #: classes/class-wcdn-settings.php:277
239
+ msgid "Leave blank to not print a footer."
240
+ msgstr "Efterlad tomt felt for ikke at udskrive footer."
241
+
242
+ #: classes/class-wcdn-settings.php:309
243
+ msgid "Order Numbering Options"
244
+ msgstr "Ordrer Nummererings-muligheder"
245
+
246
+ #: classes/class-wcdn-writepanel.php:92
247
+ msgid "Order Print"
248
+ msgstr "Udskriv Ordrer"
249
+
250
+ #: classes/class-wcdn-writepanel.php:76
251
+ #: classes/class-wcdn-writepanel.php:77
252
+ #: classes/class-wcdn-writepanel.php:102
253
+ msgid "Print Invoice"
254
+ msgstr "Udskriv Faktura"
255
+
256
+ #: classes/class-wcdn-writepanel.php:78
257
+ #: classes/class-wcdn-writepanel.php:80
258
+ #: classes/class-wcdn-writepanel.php:81
259
+ #: classes/class-wcdn-writepanel.php:82
260
+ #: classes/class-wcdn-writepanel.php:103
261
+ msgid "Print Delivery Note"
262
+ msgstr "Udskriv Følgeseddel"
263
+
264
+ #: woocommerce-delivery-notes.php:201
265
+ msgid "Invoice"
266
+ msgstr "Faktura"
267
+
268
+ #: templates/print/print-delivery-note.php:20
269
+ msgid "Recipient"
270
+ msgstr "Modtager"
271
+
272
+ #: templates/print/print-delivery-note.php:96
273
+ msgid "Customer Notes"
274
+ msgstr "Kundebemærkninger"
275
+
276
+ #: woocommerce-delivery-notes.php:0
277
+ msgid "WooCommerce Print Invoices & Delivery Notes"
278
+ msgstr "WooCommerce Udskriver Faktura og Følgeseddel"
279
+
280
+ #: woocommerce-delivery-notes.php:0
281
+ msgid "Print order invoices & delivery notes for WooCommerce shop plugin. You can add company/shop info as well as personal notes & policies to print pages."
282
+ msgstr "Udskriv ordrer, fakturaer og følgesedler for WooCommerce butik plugin. Du kan tilføje firma/shop info samt personlige noter og politikker til de udskrivne sider."
283
+
284
+ #: woocommerce-delivery-notes.php:0
285
+ msgid "Steve Clark, Triggvy Gunderson, David Decker"
286
+ msgstr "Steve Clark, Triggvy Gunderson, David Decker"
287
+
288
+ #: classes/class-wcdn-settings.php:136
289
+ msgid "This plugin enables you to add a Invoice or simple Delivery Note page for printing for your orders in WooCommerce shop plugin. You can add your company postal address, further add personal notes, refund or other policies and a footer note/branding. This helps speed up your daily shop and order management. In some countries (e.g. in the European Union) it is also required to advice the customer with proper refund policies so this little plugin might help you a bit with that too."
290
+ msgstr ""
291
+ "Denne plugin giver dig mulighed for at tilføje en Faktura eller Leveringsbetingelse til udskrift af dine ordre i WooCommerce shop plugin. Du kan tilføje dit firma's post-adresse og andre personlige meddelelser, politik om refundering og andet, fodnoter og andet. Dette kan hjælpe dig i den daglige administration af din shop. \n"
292
+ "I nogle lande (f.eks i Den Europæiske Union) er det også nødvendigt at rådgive kunden med rette tilbagebetaling politikker, så det kan denne lille plugin også hjælpe dig med."
293
+
294
+ #: classes/class-wcdn-settings.php:137
295
+ msgid "Just look under <a href=\"%1$s\">WooCommerce > Orders</a> and there go to a single order view. On the right side you will see the Order Print meta box. Click one of the buttons and you get the invoice or delivery note printing page. Yes, it is that easy :-)."
296
+ msgstr "Se under <a href=\"%1$s\"> WooCommerce> Ordrer </ a>, og derfra gå til den enkelte ordre udsigt. På højre side vil du se Udskriv Ordrer meta boks. Klik på en af knapperne, og du får en faktura eller følgeseddel udskrivning side. Ja, det er faktisk så let :-)."
297
+
languages/woocommerce-delivery-notes-de_DE.mo CHANGED
Binary file
languages/woocommerce-delivery-notes-de_DE.po CHANGED
@@ -1,4 +1,4 @@
1
- # This German Language File: Copyright (C) 2011-2012 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 WordPress sind hier zu finden:
@@ -6,418 +6,418 @@
6
#
7
msgid ""
8
msgstr ""
9
- "Project-Id-Version: WooCommerce Print Invoices & Delivery Notes (Plugin, SIE-Version)\n"
10
- "Report-Msgid-Bugs-To: http://wordpress.org/tags/woocommerce-delivery-notes\n"
11
- "POT-Creation-Date: 2012-05-06 19:17+0100\n"
12
- "PO-Revision-Date: 2012-05-08 22:02+0100\n"
13
- "Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
14
"Language-Team: DECKERWEB <deckerweb.mobil@googlemail.com>\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=2; plural=n != 1;\n"
19
- "X-Poedit-Language: German\n"
20
- "X-Poedit-Country: GERMANY\n"
21
"X-Poedit-SourceCharset: utf-8\n"
22
- "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
23
"X-Textdomain-Support: yes\n"
24
- "X-Poedit-SearchPath-0: .\n"
25
26
- #@ woocommerce-delivery-notes
27
- #: templates/delivery-notes/print.php:5
28
- #: templates/delivery-notes/print.php:21
29
- #: templates/delivery-notes/print.php:45
30
- msgid "Delivery Note"
31
- msgstr "Lieferschein"
32
-
33
- #@ woocommerce-delivery-notes
34
- #: woocommerce-delivery-notes-print.php:91
35
- msgid "Print Page"
36
- msgstr "Seite ausdrucken"
37
-
38
- #@ woocommerce-delivery-notes
39
- #: templates/delivery-notes/print.php:63
40
- msgid "Quantity"
41
- msgstr "Menge"
42
-
43
- #@ woocommerce-delivery-notes
44
- #: templates/delivery-notes/print.php:64
45
- msgid "Price"
46
- msgstr "Preis"
47
-
48
- #@ woocommerce-delivery-notes
49
- #: templates/delivery-notes/print.php:84
50
- msgid "Subtotal"
51
- msgstr "Zwischensumme"
52
-
53
- #@ woocommerce-delivery-notes
54
- #: templates/delivery-notes/print.php:89
55
- msgid "Shipping"
56
- msgstr "Versand"
57
-
58
- #@ woocommerce-delivery-notes
59
- #: templates/delivery-notes/print.php:95
60
- msgid "Tax"
61
- msgstr "Mwst."
62
-
63
- #@ woocommerce-delivery-notes
64
- #: templates/delivery-notes/print.php:101
65
- msgid "Discount"
66
- msgstr "Rabatt"
67
-
68
- #@ woocommerce-delivery-notes
69
- #: templates/delivery-notes/print.php:106
70
- msgid "Grand Total"
71
- msgstr "Gesamtsumme"
72
-
73
- #@ woocommerce-delivery-notes
74
- #: woocommerce-delivery-notes-print.php:18
75
- msgid "You do not have sufficient permissions to access this page."
76
- msgstr "Sie haben keine ausreichende Rechte, um auf diese Seite zugreifen zu können."
77
-
78
- #@ woocommerce-delivery-notes
79
- #: classes/class-wcdn-settings.php:149
80
- msgid "Go to the settings page"
81
- msgstr "Zur Einstellungsseite des Plugins"
82
-
83
- #@ woocommerce-delivery-notes
84
- #: classes/class-wcdn-settings.php:149
85
- msgid "Settings"
86
- msgstr "Einstellungen"
87
-
88
- #@ woocommerce-delivery-notes
89
- #: classes/class-wcdn-writepanel.php:64
90
msgid "FAQ"
91
msgstr "FAQ - Häufige Fragen"
92
93
- #@ woocommerce-delivery-notes
94
- #: classes/class-wcdn-writepanel.php:65
95
msgid "Support"
96
msgstr "Hilfe und Unterstützung (Support)"
97
98
- #@ woocommerce-delivery-notes
99
- #: classes/class-wcdn-writepanel.php:66
100
- msgid "http://genesisthemes.de/en/donate/"
101
- msgstr "http://genesisthemes.de/spenden/"
102
103
- #@ woocommerce-delivery-notes
104
- #: classes/class-wcdn-writepanel.php:66
105
- msgid "Donate"
106
- msgstr "Spenden"
107
108
- #@ woocommerce-delivery-notes
109
- #: templates/delivery-notes/print.php:62
110
- msgid "Product Name"
111
- msgstr "Produktbezeichnung"
112
113
- #@ woocommerce-delivery-notes
114
- #: classes/class-wcdn-settings.php:317
115
- msgid "Returns Policy, Conditions, etc.:"
116
- msgstr "Rückgabe- und sonstige Bedingungen:"
117
118
- #@ woocommerce-delivery-notes
119
- #: templates/delivery-notes/print.php:49
120
- msgid "Order No."
121
- msgstr "Bestell-Nr."
122
123
- #@ woocommerce-delivery-notes
124
- #: templates/delivery-notes/print.php:53
125
- msgid "Order Date"
126
- msgstr "Bestelldatum"
127
128
- #@ woocommerce-delivery-notes
129
- #: templates/delivery-notes/print.php:70
130
- msgid "SKU:"
131
- msgstr "Art.-Nr.:"
132
133
- #@ woocommerce-delivery-notes
134
- #: templates/delivery-notes/print.php:70
135
- msgid "Weight:"
136
- msgstr "Gewicht:"
137
138
- #@ woocommerce-delivery-notes
139
- #: classes/class-wcdn-settings.php:192
140
msgid "Plugin: WooCommerce Print Invoices & Delivery Notes"
141
msgstr "Plugin: WooCommerce Rechnungen & Lieferscheine drucken"
142
143
- #@ woocommerce-delivery-notes
144
- #: classes/class-wcdn-settings.php:271
145
- #: classes/class-wcdn-settings.php:284
146
- #: classes/class-wcdn-settings.php:297
147
- #: classes/class-wcdn-settings.php:310
148
- #: classes/class-wcdn-settings.php:323
149
- #: classes/class-wcdn-settings.php:336
150
- msgid "Note:"
151
- msgstr "Hinweis:"
152
-
153
- #@ woocommerce-delivery-notes
154
- #: classes/class-wcdn-settings.php:296
155
- msgid "The postal address of the company/shop, which gets printed right of the company/shop name, above the order listings."
156
- msgstr "Die Postanschrift der Firma bzw. des Shops, welche rechts neben dem Firmen-/ Shopname ausgegeben wird, über den Bestelldaten."
157
-
158
- #@ woocommerce-delivery-notes
159
- #: classes/class-wcdn-settings.php:309
160
- msgid "Add some personal notes, or season greetings or whatever (e.g. Thank You for Your Order!, Merry Christmas!, etc.)."
161
- msgstr "Fügen Sie einige persönliche Anmerkungen wie Dank, jahreszeitliche Grüße hinzu (z.B.: Danke für Ihre Bestellung!, Frohe Weihnachten!, etc.)."
162
-
163
- #@ woocommerce-delivery-notes
164
- #: classes/class-wcdn-settings.php:335
165
- msgid "Add some further footer imprint, copyright notes etc. to get the printed sheets a bit more branded to your needs."
166
- msgstr "Fügen Sie Impressumangaben in der Fußzeile hinzu. Damit können die Ausdrucke noch stärker an Ihr CI bzw. rechtliche Anforderungen angepasst werden."
167
-
168
- #@ woocommerce-delivery-notes
169
- #: classes/class-wcdn-settings.php:190
170
- #: classes/class-wcdn-settings.php:193
171
- msgid "About the Plugin"
172
- msgstr "Über das Plugin"
173
174
- #@ woocommerce-delivery-notes
175
- #: classes/class-wcdn-settings.php:200
176
msgid "For more information:"
177
msgstr "Weitere Informationen:"
178
179
- #@ woocommerce-delivery-notes
180
- #: classes/class-wcdn-settings.php:201
181
msgid "Frequently Asked Questions"
182
msgstr "Häufige Fragen (FAQ)"
183
184
- #@ woocommerce-delivery-notes
185
- #: classes/class-wcdn-settings.php:202
186
msgid "Project on WordPress.org"
187
msgstr "Projekt bei WordPress.org"
188
189
- #@ woocommerce-delivery-notes
190
- #: classes/class-wcdn-settings.php:203
191
msgid "Project on GitHub"
192
msgstr "Projekt bei GitHub"
193
194
- #@ woocommerce-delivery-notes
195
- #: classes/class-wcdn-settings.php:204
196
- msgid "Discuss in the Forum"
197
- msgstr "Im Forum diskutieren"
198
-
199
- #@ woocommerce-delivery-notes
200
- #: classes/class-wcdn-settings.php:214
201
- msgid "Print"
202
- msgstr "Druck"
203
-
204
- #@ woocommerce-delivery-notes
205
- #: classes/class-wcdn-settings.php:254
206
msgid "Invoices and Delivery Notes"
207
msgstr "Rechnungen und Lieferscheine"
208
209
- #@ woocommerce-delivery-notes
210
- #: classes/class-wcdn-settings.php:278
211
msgid "Company/Shop Name"
212
msgstr "Firmen-/ Shopname"
213
214
- #@ woocommerce-delivery-notes
215
- #: classes/class-wcdn-settings.php:285
216
- msgid "Leave blank to use the default Website/ Blog title defined in WordPress settings."
217
- msgstr "Leer lassen, um den standardmäßigen Webseiten- bzw. Blogtitel zu verwenden, der in den WordPress-Einstellungen festgelegt wird."
218
219
- #@ woocommerce-delivery-notes
220
- #: classes/class-wcdn-settings.php:291
221
msgid "Company/Shop Address"
222
msgstr "Firmen-/ Shop-Anschrift"
223
224
- #@ woocommerce-delivery-notes
225
- #: classes/class-wcdn-settings.php:298
226
msgid "Leave blank to not print an address."
227
msgstr "Leer lassen, um keine Anschrift mit auszudrucken."
228
229
- #@ woocommerce-delivery-notes
230
- #: classes/class-wcdn-settings.php:304
231
msgid "Personal Notes"
232
msgstr "Persönliche Anmerkungen"
233
234
- #@ woocommerce-delivery-notes
235
- #: classes/class-wcdn-settings.php:311
236
msgid "Leave blank to not print any personal notes."
237
msgstr "Leer lassen, um keine persönlichen Anmerkungen mit auszudrucken."
238
239
- #@ woocommerce-delivery-notes
240
- #: classes/class-wcdn-settings.php:322
241
- msgid "Here you can add some more policies, conditions etc. For example add a returns policy in case the client would like to send back some goods. In some countries (e.g. in the European Union) this is required so please add any required info in accordance with the statutory regulations."
242
- msgstr "Hier können Sie einige weitere Bedingungen angeben. Zum Beispiel Bedingungen für die Rückgabe, Widerrufsbelehrung etc. In einigen Ländern (z.B. innerhalb der EU) ist dies sogar vorgeschrieben - informieren Sie sich daher über die entsprechenden gesetzlichen Bestimmungen für Ihr Land."
243
244
- #@ woocommerce-delivery-notes
245
- #: classes/class-wcdn-settings.php:324
246
msgid "Leave blank to not print any policies or conditions."
247
msgstr "Leer lassen, um keine Bedingungen mit auszudrucken."
248
249
- #@ woocommerce-delivery-notes
250
- #: classes/class-wcdn-settings.php:330
251
msgid "Footer Imprint"
252
msgstr "Fußzeile Impressum"
253
254
- #@ woocommerce-delivery-notes
255
- #: classes/class-wcdn-settings.php:337
256
- msgid "Leave blank to not print a footer."
257
- msgstr "Leer lassen, um keine Impressumangaben in der Fußzeile mit auszudrucken."
258
259
- #@ woocommerce-delivery-notes
260
- #: classes/class-wcdn-settings.php:343
261
- msgid "Preview Options"
262
- msgstr "Vorschau-Optionen"
263
264
- #@ woocommerce-delivery-notes
265
- #: classes/class-wcdn-settings.php:348
266
- msgid "Preview opens"
267
- msgstr "Vorschau öffnet"
268
269
- #@ woocommerce-delivery-notes
270
- #: classes/class-wcdn-settings.php:352
271
- msgid "Start printing when the preview page opens"
272
- msgstr "Mit dem Druck beginnen, wenn die Druckvorschau-Seite öffnet"
273
274
- #@ woocommerce-delivery-notes
275
- #: classes/class-wcdn-settings.php:357
276
msgid "Order Numbering Options"
277
msgstr "Bestellnummern-Optionen"
278
279
- #@ woocommerce-delivery-notes
280
- #: classes/class-wcdn-settings.php:362
281
- msgid "Before order number"
282
- msgstr "Vor der Bestellnummer"
283
-
284
- #@ woocommerce-delivery-notes
285
- #: classes/class-wcdn-settings.php:366
286
- msgid "This text will be placed before the order number ie. \"YOUR-TEXT123\"."
287
- msgstr "Dieser Text wird der Bestellnummer vorangestellt, zum Beispiel <code>IHR-TEXT123</code>."
288
-
289
- #@ woocommerce-delivery-notes
290
- #: classes/class-wcdn-settings.php:371
291
- msgid "After order number"
292
- msgstr "Nach der Bestellnummer"
293
294
- #@ woocommerce-delivery-notes
295
- #: classes/class-wcdn-settings.php:375
296
- msgid "This text will be placed after the order number ie. \"123YOUR-TEXT\"."
297
- msgstr "Dieser Text wird nach der Bestellnummer angefügt, zum Beispiel <code>123IHR-TEXT</code>."
298
299
- #@ woocommerce-delivery-notes
300
- #: classes/class-wcdn-writepanel.php:78
301
- msgid "Order Print"
302
- msgstr "Bestellung drucken"
303
304
- #@ woocommerce-delivery-notes
305
- #: classes/class-wcdn-writepanel.php:91
306
msgid "Print Invoice"
307
msgstr "Rechnung drucken"
308
309
- #@ woocommerce-delivery-notes
310
- #: classes/class-wcdn-writepanel.php:92
311
msgid "Print Delivery Note"
312
msgstr "Lieferschein drucken"
313
314
- #@ woocommerce-delivery-notes
315
- #: templates/delivery-notes/print.php:5
316
- #: templates/delivery-notes/print.php:21
317
- #: templates/delivery-notes/print.php:45
318
- msgid "Invoice"
319
- msgstr "Rechnung"
320
321
- #@ woocommerce-delivery-notes
322
- #: templates/delivery-notes/print.php:29
323
msgid "Recipient"
324
msgstr "Empfänger"
325
326
- #@ woocommerce-delivery-notes
327
- #: templates/delivery-notes/print.php:116
328
- msgid "Customer Notes"
329
- msgstr "Kundennotizen"
330
-
331
- #@ woocommerce-delivery-notes
332
- #. translators: plugin header field 'Name'
333
- #: woocommerce-delivery-notes.php:0
334
- msgid "WooCommerce Print Invoices & Delivery Notes"
335
- msgstr "WooCommerce Rechnungen & Lieferscheine drucken"
336
-
337
- #@ woocommerce-delivery-notes
338
- #. translators: plugin header field 'PluginURI'
339
- #. translators: plugin header field 'AuthorURI'
340
- #: woocommerce-delivery-notes.php:0
341
- msgid "https://github.com/piffpaffpuff/woocommerce-delivery-notes"
342
- msgstr "https://github.com/piffpaffpuff/woocommerce-delivery-notes"
343
-
344
- #@ woocommerce-delivery-notes
345
- #. translators: plugin header field 'Author'
346
- #: woocommerce-delivery-notes.php:0
347
- msgid "Steve Clark, Triggvy Gunderson, David Decker"
348
- msgstr "Steve Clark, Triggvy Gunderson, David Decker"
349
-
350
- #@ woocommerce-delivery-notes
351
- #: classes/class-wcdn-settings.php:194
352
- msgid "This plugin enables you to add a Invoice or simple Delivery Note page for printing for your orders in WooCommerce shop plugin. You can add your company postal address, further add personal notes, refund or other policies and a footer note/branding. This helps speed up your daily shop and order management. In some countries (e.g. in the European Union) it is also required to advice the customer with proper refund policies so this little plugin might help you a bit with that too."
353
- msgstr "Dieses Plugin ermöglicht es, eine einfache Rechnung oder einen einfachen Lieferschein zum Ausdrucken für das WooCommerce Shop-Plugin zu erhalten. Sie können Ihre Firmen-/ Shop-Informationen, ebenso persönliche Anmerkungen, weiterhin Bedingungen/ Widerrufsbelehrung u.Ä. sowie eine Fußzeile (Impressum/ Branding) hinzufügen. Damit beschleunigen Sie die tägliche Shop-Verwaltung. Da in Ländern der Europäischen Union oftmals vorgeschrieben ist, Widerrufsbelehrungen u.Ä. der Bestellung beizulegen, können Sie dies hiermit besser erfüllen und außerdem Ihren Kunden bequem die Bestell-Infos in die Hand geben."
354
-
355
- #@ woocommerce-delivery-notes
356
- #: classes/class-wcdn-settings.php:195
357
- #, php-format
358
- msgid "Just look under <a href=\"%1$s\">WooCommerce > Orders</a> and there go to a single order view. On the right side you will see the Order Print meta box. Click one of the buttons and you get the invoice or delivery note printing page. Yes, it is that easy :-)."
359
- msgstr "Schauen Sie einfach unter <a href=\"%1$s\">WooCommerce > Bestellungen</a> und rufen Sie dort eine einzelne Bestellung auf. Auf rechten Seite erscheint die <em>Bestellung drucken</em> Metabox. Klicken Sie dort und es öffnet sich die Rechnung oder der Lieferschein zum Ausdrucken. Das ist schon alles :-)."
360
361
- #@ woocommerce-delivery-notes
362
- #: classes/class-wcdn-settings.php:135
363
- msgid "Use as Company Logo"
364
- msgstr "Als Firmenlogo verwenden"
365
366
- #@ woocommerce-delivery-notes
367
- #: classes/class-wcdn-settings.php:262
368
- msgid "Company/Shop Logo"
369
- msgstr "Firmen-/ Shop-Logo"
370
371
- #@ woocommerce-delivery-notes
372
- #: classes/class-wcdn-settings.php:267
373
- msgid "Remove Logo"
374
- msgstr "Logo entfernen"
375
376
- #@ woocommerce-delivery-notes
377
- #: classes/class-wcdn-settings.php:268
378
- msgid "Set Logo"
379
- msgstr "Logo festlegen"
380
381
- #@ woocommerce-delivery-notes
382
- #: classes/class-wcdn-settings.php:270
383
- msgid "A company/shop logo representing your business."
384
- msgstr "Ein Firmen-/ Shop-Logo, welches Ihr Geschäft repräsentiert."
385
386
- #@ woocommerce-delivery-notes
387
- #: classes/class-wcdn-settings.php:272
388
- msgid "The Logo will be resized if it is larger than 300px &times; 300px."
389
- msgstr "Das Logo wird entsprechend verkleinert, falls es größer als 300 &times; 300 Pixel sein sollte."
390
391
- #@ woocommerce-delivery-notes
392
- #: classes/class-wcdn-settings.php:283
393
- msgid "Your company/shop name for the Delivery Note."
394
- msgstr "Ihr Firmen-/ Shop-Name für den Lieferschein/ die Rechnung."
395
396
- #@ woocommerce-delivery-notes
397
- #: classes/class-wcdn-settings.php:380
398
- msgid "Sequential order number"
399
- msgstr "Fortlaufende Bestellnummer"
400
-
401
- #@ woocommerce-delivery-notes
402
- #: classes/class-wcdn-settings.php:384
403
- msgid "Sequential numbering is enabled."
404
- msgstr "Fortlaufende Nummerierung ist aktiviert."
405
-
406
- #@ woocommerce-delivery-notes
407
- #: classes/class-wcdn-settings.php:386
408
- #, php-format
409
- msgid "Install and activate the free <a href=\"%s\">WooCommerce Sequential Order Numbers</a> Plugin."
410
- msgstr "Installieren und aktivieren Sie das kostenlose Plugin <a href=\"%s\">WooCommerce Sequential Order Numbers</a>."
411
412
- #@ woocommerce-delivery-notes
413
- #. translators: plugin header field 'Description'
414
- #: woocommerce-delivery-notes.php:0
415
- msgid "Print order invoices & delivery notes for WooCommerce shop plugin. You can add company/shop info as well as personal notes & policies to print pages."
416
- msgstr "Dieses Plugin stellt einfache Rechnungen und Lieferscheine für das WooCommerce Shop Plugin bereit. Es können dabei auch Firmen-/ Shop-Infos ebenso wie persönliche Anmerkungen oder Bedingungen/ Widerrufsbelehrungen zu den Druckseiten hinzugefügt werden."
417
418
- #@ woocommerce-delivery-notes
419
- #. translators: plugin header field 'Version'
420
- #: woocommerce-delivery-notes.php:0
421
- msgid "1.2.1"
422
- msgstr "1.2.1"
423
1
+ # This German Language File: Copyright (C) 2012 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 WordPress sind hier zu finden:
6
#
7
msgid ""
8
msgstr ""
9
+ "Project-Id-Version: WooCommerce Print Invoices & Delivery Notes\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2013-06-16 14:03+0100\n"
12
+ "PO-Revision-Date: 2013-06-16 14:06+0100\n"
13
+ "Last-Translator: \n"
14
"Language-Team: DECKERWEB <deckerweb.mobil@googlemail.com>\n"
15
+ "Language: de_DE\n"
16
"MIME-Version: 1.0\n"
17
"Content-Type: text/plain; charset=UTF-8\n"
18
"Content-Transfer-Encoding: 8bit\n"
19
"Plural-Forms: nplurals=2; plural=n != 1;\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\n"
23
"X-Textdomain-Support: yes\n"
24
+ "X-Poedit-Basepath: .\n"
25
+ "X-Generator: Poedit 1.5.5\n"
26
27
+ # @ woocommerce-delivery-notes
28
+ #: ../woocommerce-delivery-notes.php:124
29
msgid "FAQ"
30
msgstr "FAQ - Häufige Fragen"
31
32
+ # @ woocommerce-delivery-notes
33
+ #: ../woocommerce-delivery-notes.php:125
34
msgid "Support"
35
msgstr "Hilfe und Unterstützung (Support)"
36
37
+ # @ woocommerce-delivery-notes
38
+ #: ../woocommerce-delivery-notes.php:134
39
+ msgid "Go to the settings page"
40
+ msgstr "Zur Einstellungsseite des Plugins"
41
42
+ # @ woocommerce-delivery-notes
43
+ #: ../woocommerce-delivery-notes.php:134
44
+ msgid "Settings"
45
+ msgstr "Einstellungen"
46
47
+ # @ woocommerce-delivery-notes
48
+ #: ../woocommerce-delivery-notes.php:201
49
+ msgid "Invoice"
50
+ msgstr "Rechnung"
51
52
+ # @ woocommerce-delivery-notes
53
+ #: ../woocommerce-delivery-notes.php:203
54
+ msgid "Delivery Note"
55
+ msgstr "Lieferschein"
56
57
+ # @ woocommerce-delivery-notes
58
+ #: ../woocommerce-delivery-notes.php:302
59
+ #: ../classes/class-wcdn-settings.php:154
60
+ msgid "Print"
61
+ msgstr "Drucken"
62
63
+ # @ woocommerce
64
+ #: ../woocommerce-delivery-notes.php:391 ../woocommerce-delivery-notes.php:405
65
+ msgid "N/A"
66
+ msgstr "k.A."
67
68
+ #: ../classes/class-wcdn-print.php:63 ../classes/class-wcdn-print.php:68
69
+ #: ../classes/class-wcdn-print.php:73 ../classes/class-wcdn-print.php:78
70
+ msgid "You do not have sufficient permissions to access this page."
71
+ msgstr "Sie haben nicht genügend Rechte für den Zugriff auf diese Seite."
72
73
+ # @ woocommerce-delivery-notes
74
+ #: ../classes/class-wcdn-settings.php:132
75
+ #: ../classes/class-wcdn-settings.php:135
76
+ msgid "About the Plugin"
77
+ msgstr "Über das Plugin"
78
79
+ # @ woocommerce-delivery-notes
80
+ #: ../classes/class-wcdn-settings.php:134
81
msgid "Plugin: WooCommerce Print Invoices & Delivery Notes"
82
msgstr "Plugin: WooCommerce Rechnungen & Lieferscheine drucken"
83
84
+ # @ woocommerce-delivery-notes
85
+ #: ../classes/class-wcdn-settings.php:136
86
+ msgid ""
87
+ "This plugin enables you to add a Invoice or simple Delivery Note page for "
88
+ "printing for your orders in WooCommerce shop plugin. You can add your "
89
+ "company postal address, further add personal notes, refund or other policies "
90
+ "and a footer note/branding. This helps speed up your daily shop and order "
91
+ "management. In some countries (e.g. in the European Union) it is also "
92
+ "required to advice the customer with proper refund policies so this little "
93
+ "plugin might help you a bit with that too."
94
+ msgstr ""
95
+ "Dieses Plugin ermöglicht es, eine einfache Rechnung oder einen einfachen "
96
+ "Lieferschein zum Ausdrucken für das WooCommerce Shop-Plugin zu erhalten. Sie "
97
+ "können Ihre Firmen-/ Shop-Informationen, ebenso persönliche Anmerkungen, "
98
+ "weiterhin Bedingungen/ Widerrufsbelehrung u.Ä. sowie eine Fußzeile "
99
+ "(Impressum/ Branding) hinzufügen. Damit beschleunigen Sie die tägliche Shop-"
100
+ "Verwaltung. Da in Ländern der Europäischen Union oftmals vorgeschrieben ist, "
101
+ "Widerrufsbelehrungen u.Ä. der Bestellung beizulegen, können Sie dies hiermit "
102
+ "besser erfüllen und außerdem Ihren Kunden bequem die Bestell-Infos in die "
103
+ "Hand geben."
104
+
105
+ # @ woocommerce-delivery-notes
106
+ #: ../classes/class-wcdn-settings.php:137
107
+ #, php-format
108
+ msgid ""
109
+ "Just look under <a href=\"%1$s\">WooCommerce > Orders</a> and there go to a "
110
+ "single order view. On the right side you will see the Order Print meta box. "
111
+ "Click one of the buttons and you get the invoice or delivery note printing "
112
+ "page. Yes, it is that easy :-)."
113
+ msgstr ""
114
+ "Schauen Sie einfach unter <a href=\"%1$s\">WooCommerce > Bestellungen</a> "
115
+ "und rufen Sie dort eine einzelne Bestellung auf. Auf rechten Seite erscheint "
116
+ "die <em>Bestellung drucken</em> Metabox. Klicken Sie dort und es öffnet sich "
117
+ "die Rechnung oder der Lieferschein zum Ausdrucken. Das ist schon alles :-)."
118
119
+ # @ woocommerce-delivery-notes
120
+ #: ../classes/class-wcdn-settings.php:142
121
msgid "For more information:"
122
msgstr "Weitere Informationen:"
123
124
+ # @ woocommerce-delivery-notes
125
+ #: ../classes/class-wcdn-settings.php:143
126
msgid "Frequently Asked Questions"
127
msgstr "Häufige Fragen (FAQ)"
128
129
+ # @ woocommerce-delivery-notes
130
+ #: ../classes/class-wcdn-settings.php:144
131
+ msgid "Get Community Support"
132
+ msgstr "Community-Support erhalten"
133
+
134
+ # @ woocommerce-delivery-notes
135
+ #: ../classes/class-wcdn-settings.php:145
136
msgid "Project on WordPress.org"
137
msgstr "Projekt bei WordPress.org"
138
139
+ # @ woocommerce-delivery-notes
140
+ #: ../classes/class-wcdn-settings.php:146
141
msgid "Project on GitHub"
142
msgstr "Projekt bei GitHub"
143
144
+ # @ woocommerce-delivery-notes
145
+ #: ../classes/class-wcdn-settings.php:194
146
msgid "Invoices and Delivery Notes"
147
msgstr "Rechnungen und Lieferscheine"
148
149
+ # @ woocommerce-delivery-notes
150
+ #: ../classes/class-wcdn-settings.php:202
151
+ msgid "Company/Shop Logo"
152
+ msgstr "Firmen-/ Shop-Logo"
153
+
154
+ # @ woocommerce-delivery-notes
155
+ #: ../classes/class-wcdn-settings.php:207
156
+ msgid "Remove Logo"
157
+ msgstr "Logo entfernen"
158
+
159
+ # @ woocommerce-delivery-notes
160
+ #: ../classes/class-wcdn-settings.php:208
161
+ msgid "Set Logo"
162
+ msgstr "Logo festlegen"
163
+
164
+ # @ woocommerce-delivery-notes
165
+ #: ../classes/class-wcdn-settings.php:210
166
+ msgid "A company/shop logo representing your business."
167
+ msgstr "Ein Firmen-/ Shop-Logo, welches Ihr Geschäft repräsentiert."
168
+
169
+ # @ woocommerce-delivery-notes
170
+ #: ../classes/class-wcdn-settings.php:211
171
+ #: ../classes/class-wcdn-settings.php:224
172
+ #: ../classes/class-wcdn-settings.php:237
173
+ #: ../classes/class-wcdn-settings.php:250
174
+ #: ../classes/class-wcdn-settings.php:263
175
+ #: ../classes/class-wcdn-settings.php:276
176
+ msgid "Note:"
177
+ msgstr "Hinweis:"
178
+
179
+ # @ woocommerce-delivery-notes
180
+ #: ../classes/class-wcdn-settings.php:212
181
+ msgid ""
182
+ "When the image is printed, its pixel density will automatically be eight "
183
+ "times higher than the original. This means, 1 printed inch will correspond "
184
+ "to about 288 pixels on the screen. Example: an image with a width of 576 "
185
+ "pixels and a height of 288 pixels will have a printed size of about 2 inches "
186
+ "to 1 inch."
187
+ msgstr ""
188
+ "Wenn das Bild gedruckt wird, wird dessen Pixeldichte automatisch höher sein "
189
+ "als das Original. Dies bedeutet, die Fläche von einem gedruckten Quadratzoll "
190
+ "(ca. 2.54cm x 2.54cm) wird mit 288 Pixeln auf dem Bildschirm in Verbindung "
191
+ "stehen. Beispiel: Ein Bild mit einer Breite von 576 Pixeln und einer Höhe "
192
+ "von 288 Pixeln wird eine gedruckte Größe von etwa 2 Zoll x 1 Zoll aufweisen "
193
+ "(ca. 5.08 cm x 2.54cm)."
194
+
195
+ # @ woocommerce-delivery-notes
196
+ #: ../classes/class-wcdn-settings.php:218
197
msgid "Company/Shop Name"
198
msgstr "Firmen-/ Shopname"
199
200
+ # @ woocommerce-delivery-notes
201
+ #: ../classes/class-wcdn-settings.php:223
202
+ msgid "Your company/shop name for the Delivery Note."
203
+ msgstr "Ihr Firmen-/ Shop-Name für den Lieferschein/ die Rechnung."
204
205
+ # @ woocommerce-delivery-notes
206
+ #: ../classes/class-wcdn-settings.php:225
207
+ msgid ""
208
+ "Leave blank to use the default Website/ Blog title defined in WordPress "
209
+ "settings."
210
+ msgstr ""
211
+ "Leer lassen, um den standardmäßigen Webseiten- bzw. Blogtitel zu verwenden, "
212
+ "der in den WordPress-Einstellungen festgelegt wird."
213
+
214
+ # @ woocommerce-delivery-notes
215
+ #: ../classes/class-wcdn-settings.php:231
216
msgid "Company/Shop Address"
217
msgstr "Firmen-/ Shop-Anschrift"
218
219
+ # @ woocommerce-delivery-notes
220
+ #: ../classes/class-wcdn-settings.php:236
221
+ msgid ""
222
+ "The postal address of the company/shop, which gets printed right of the "
223
+ "company/shop name, above the order listings."
224
+ msgstr ""
225
+ "Die Postanschrift der Firma bzw. des Shops, welche rechts neben dem Firmen-/ "
226
+ "Shopname ausgegeben wird, über den Bestelldaten."
227
+
228
+ # @ woocommerce-delivery-notes
229
+ #: ../classes/class-wcdn-settings.php:238
230
msgid "Leave blank to not print an address."
231
msgstr "Leer lassen, um keine Anschrift mit auszudrucken."
232
233
+ # @ woocommerce-delivery-notes
234
+ #: ../classes/class-wcdn-settings.php:244
235
msgid "Personal Notes"
236
msgstr "Persönliche Anmerkungen"
237
238