WooCommerce PDF Invoices & Packing Slips - Version 1.0.1

Version Description

  • Feature: Fees can now also be called ex. VAT
  • Feature: Invoices can now be downloaded from the My Account page
  • Feature: Spanish translation & POT file included
  • Tweak: Packing slip now displays shipping address instead of billing address
  • Tweak: Variation data is now displayed by default
  • Fix: ternary statement that caused an error
Download this release

Release Info

Developer pomegranate
Plugin Icon 128x128 WooCommerce PDF Invoices & Packing Slips
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

includes/class-wcpdf-export.php CHANGED
@@ -91,8 +91,7 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
91
  /**
92
  * Load and generate the template output with ajax
93
  */
94
- public function generate_pdf_ajax() {
95
-
96
  // Check the nonce
97
  if( empty( $_GET['action'] ) || ! is_user_logged_in() || !check_admin_referer( $_GET['action'] ) ) {
98
  wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpo_wcpdf' ) );
@@ -102,14 +101,37 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
102
  if( empty( $_GET['template_type'] ) || empty( $_GET['order_ids'] ) ) {
103
  wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpo_wcpdf' ) );
104
  }
105
-
106
  // Check the user privileges
107
- if( !current_user_can( 'manage_woocommerce_orders' ) && !current_user_can( 'edit_shop_orders' ) ) {
108
  wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpo_wcpdf' ) );
109
  }
110
-
111
  $order_ids = (array) explode('x',$_GET['order_ids']);
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  $template_type = $_GET['template_type'];
114
  if ($template_type == 'invoice' ) {
115
  $template_name = _n( 'invoice', 'invoices', count($order_ids), 'wpo_wcpdf' );
@@ -117,7 +139,6 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
117
  $template_name = _n( 'packing-slip', 'packing-slips', count($order_ids), 'wpo_wcpdf' );
118
  }
119
 
120
-
121
  // Filename
122
  if ( count($order_ids) > 1 ) {
123
  $filename = $template_name . '-' . date('Y-m-d') . '.pdf'; // 'invoices-2020-11-11.pdf'
91
  /**
92
  * Load and generate the template output with ajax
93
  */
94
+ public function generate_pdf_ajax() {
 
95
  // Check the nonce
96
  if( empty( $_GET['action'] ) || ! is_user_logged_in() || !check_admin_referer( $_GET['action'] ) ) {
97
  wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpo_wcpdf' ) );
101
  if( empty( $_GET['template_type'] ) || empty( $_GET['order_ids'] ) ) {
102
  wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpo_wcpdf' ) );
103
  }
104
+
105
  // Check the user privileges
106
+ if( !current_user_can( 'manage_woocommerce_orders' ) && !current_user_can( 'edit_shop_orders' ) && !isset( $_GET['my-account'] ) ) {
107
  wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpo_wcpdf' ) );
108
  }
109
+
110
  $order_ids = (array) explode('x',$_GET['order_ids']);
111
 
112
+ // User call from my-account page
113
+ if ( isset( $_GET['my-account'] ) ) {
114
+ // Only for single orders!
115
+ if ( count( $order_ids ) > 1 ) {
116
+ wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpo_wcpdf' ) );
117
+ }
118
+
119
+ // Get user_id of order
120
+ $order = new WC_Order ( $order_ids[0] );
121
+ $order_user = $order->user_id;
122
+ // Destroy object to save memory
123
+ unset($order);
124
+ // Get user_id of current user
125
+ $user_id = get_current_user_id();
126
+
127
+ // Check if current user is owner of order IMPORTANT!!!
128
+ if ( $order_user != $user_id ) {
129
+ wp_die( __( 'You do not have sufficient permissions to access this page.', 'wpo_wcpdf' ) );
130
+ }
131
+
132
+ // if we got here, we're safe to go!
133
+ }
134
+
135
  $template_type = $_GET['template_type'];
136
  if ($template_type == 'invoice' ) {
137
  $template_name = _n( 'invoice', 'invoices', count($order_ids), 'wpo_wcpdf' );
139
  $template_name = _n( 'packing-slip', 'packing-slips', count($order_ids), 'wpo_wcpdf' );
140
  }
141
 
 
142
  // Filename
143
  if ( count($order_ids) > 1 ) {
144
  $filename = $template_name . '-' . date('Y-m-d') . '.pdf'; // 'invoices-2020-11-11.pdf'
includes/class-wcpdf-settings.php CHANGED
@@ -57,9 +57,9 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Settings' ) ) {
57
  * Add settings link to plugins page
58
  */
59
  public function wpo_wcpdf_add_settings_link( $links ) {
60
- $settings_link = '<a href="admin.php?page=wpo_wcpdf_options_page">'. __( 'Settings', 'woocommerce' ) . '</a>';
61
- array_push( $links, $settings_link );
62
- return $links;
63
  }
64
 
65
  /**
@@ -85,17 +85,19 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Settings' ) ) {
85
  <div class="icon32" id="icon-options-general"><br /></div>
86
  <h2><?php _e( 'WooCommerce PDF Invoices', 'wpo_wcpdf' ); ?></h2>
87
  <h2 class="nav-tab-wrapper">
88
- <a href="?page=wpo_wcpdf_options_page&tab=general" class="nav-tab <?php echo $active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General','wpo_wcpdf') ?></a>
89
- <a href="?page=wpo_wcpdf_options_page&tab=template" class="nav-tab <?php echo $active_tab == 'template' ? 'nav-tab-active' : ''; ?>"><?php _e('Template','wpo_wcpdf') ?></a>
90
  </h2>
91
 
92
- <?php if (!class_exists('WooCommerce_PDF_IPS_Templates')) { ?>
 
 
93
 
94
- <div class="wcpdf-pro-templates" style="border: 1px solid #ccc; border-radius: 5px; padding: 10px; margin-top: 15px; background-color: #eee;">
95
- <?php _e('Looking for more advanced templates? Check out the Premium PDF Invoice & Packing Slips templates at <a href="#">wpovernight.com</a>.', 'wpo_wcpdf');?>
96
- </div>
97
 
98
- <?php } ?>
99
 
100
  <form method="post" action="options.php">
101
  <?php
@@ -216,7 +218,7 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Settings' ) ) {
216
  'menu' => $option,
217
  'id' => 'template_path',
218
  'options' => $this->find_templates(),
219
- 'description' => __( 'Want to use your own template? Copy the files from <code>woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/woocommerce/pdf/yourtemplate/</code> to customize them' , 'wpo_wcpdf' ),
220
  )
221
  );
222
 
57
  * Add settings link to plugins page
58
  */
59
  public function wpo_wcpdf_add_settings_link( $links ) {
60
+ $settings_link = '<a href="admin.php?page=wpo_wcpdf_options_page">'. __( 'Settings', 'woocommerce' ) . '</a>';
61
+ array_push( $links, $settings_link );
62
+ return $links;
63
  }
64
 
65
  /**
85
  <div class="icon32" id="icon-options-general"><br /></div>
86
  <h2><?php _e( 'WooCommerce PDF Invoices', 'wpo_wcpdf' ); ?></h2>
87
  <h2 class="nav-tab-wrapper">
88
+ <a href="?page=wpo_wcpdf_options_page&tab=general" class="nav-tab <?php echo $active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General','wpo_wcpdf') ?></a>
89
+ <a href="?page=wpo_wcpdf_options_page&tab=template" class="nav-tab <?php echo $active_tab == 'template' ? 'nav-tab-active' : ''; ?>"><?php _e('Template','wpo_wcpdf') ?></a>
90
  </h2>
91
 
92
+ <?php if (!class_exists('WooCommerce_PDF_IPS_Templates')) {
93
+ $template_url = '<a href="https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/" target="_blank">wpovernight.com</a>';
94
+ ?>
95
 
96
+ <div class="wcpdf-pro-templates" style="border: 1px solid #ccc; border-radius: 5px; padding: 10px; margin-top: 15px; background-color: #eee;">
97
+ <?php printf( __("Looking for more advanced templates? Check out the Premium PDF Invoice & Packing Slips templates at %s.", 'wpo_wcpdf'), $template_url );?>
98
+ </div>
99
 
100
+ <?php } ?>
101
 
102
  <form method="post" action="options.php">
103
  <?php
218
  'menu' => $option,
219
  'id' => 'template_path',
220
  'options' => $this->find_templates(),
221
+ 'description' => __( 'Want to use your own template? Copy all the files from <code>woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/woocommerce/pdf/yourtemplate/</code> to customize them' , 'wpo_wcpdf' ),
222
  )
223
  );
224
 
includes/class-wcpdf-writepanels.php CHANGED
@@ -13,6 +13,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
13
  public function __construct() {
14
  add_action( 'woocommerce_admin_order_actions_end', array( $this, 'add_listing_actions' ) );
15
  add_action( 'add_meta_boxes_shop_order', array( $this, 'add_box' ) );
 
16
  add_action( 'admin_print_scripts', array( $this, 'add_scripts' ) );
17
  add_action( 'admin_print_styles', array( $this, 'add_styles' ) );
18
  add_action( 'admin_footer-edit.php', array(&$this, 'bulk_actions') );
@@ -80,6 +81,17 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
80
  add_meta_box( 'wpo_wcpdf-box', __( 'Create PDF', 'wpo_wcpdf' ), array( $this, 'create_box_content' ), 'shop_order', 'side', 'default' );
81
  }
82
 
 
 
 
 
 
 
 
 
 
 
 
83
  /**
84
  * Create the meta box content on the single order page
85
  */
13
  public function __construct() {
14
  add_action( 'woocommerce_admin_order_actions_end', array( $this, 'add_listing_actions' ) );
15
  add_action( 'add_meta_boxes_shop_order', array( $this, 'add_box' ) );
16
+ add_filter( 'woocommerce_my_account_my_orders_actions', array( $this, 'my_account_pdf_link' ), 10, 2 );
17
  add_action( 'admin_print_scripts', array( $this, 'add_scripts' ) );
18
  add_action( 'admin_print_styles', array( $this, 'add_styles' ) );
19
  add_action( 'admin_footer-edit.php', array(&$this, 'bulk_actions') );
81
  add_meta_box( 'wpo_wcpdf-box', __( 'Create PDF', 'wpo_wcpdf' ), array( $this, 'create_box_content' ), 'shop_order', 'side', 'default' );
82
  }
83
 
84
+ public function my_account_pdf_link( $actions, $order ) {
85
+ $pdf_url = wp_nonce_url( admin_url( 'admin-ajax.php?action=generate_wpo_wcpdf&template_type=invoice&order_ids=' . $order->id . '&my-account'), 'generate_wpo_wcpdf' );
86
+
87
+ $actions['invoice'] = array(
88
+ 'url' => $pdf_url,
89
+ 'name' => __( 'Download invoice (PDF)', 'wpo_wcpdf' )
90
+ );
91
+
92
+ return $actions;
93
+ }
94
+
95
  /**
96
  * Create the meta box content on the single order page
97
  */
languages/wpo_wcpdf-es_ES.mo ADDED
Binary file
languages/wpo_wcpdf-es_ES.po ADDED
@@ -0,0 +1,294 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
4
+ "POT-Creation-Date: 2014-01-23 12:32+0100\n"
5
+ "PO-Revision-Date: 2014-01-23 12:54+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: WP Overnight <support@wpovernight.com>\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.6.3\n"
12
+ "X-Poedit-Basepath: ../\n"
13
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;_x;_n:1,2\n"
16
+ "Language: es_ES\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: woocommerce-pdf-invoices-packingslips.php:96
20
+ #, php-format
21
+ msgid ""
22
+ "WooCommerce PDF Invoices & Packing Slips requires %sWooCommerce%s to be "
23
+ "installed & activated!"
24
+ msgstr ""
25
+
26
+ #: woocommerce-pdf-invoices-packingslips.php:183
27
+ #: woocommerce-pdf-invoices-packingslips.php:219
28
+ msgid "N/A"
29
+ msgstr ""
30
+
31
+ #: woocommerce-pdf-invoices-packingslips.php:320
32
+ msgid "Subtotal"
33
+ msgstr "Subtotal"
34
+
35
+ #: woocommerce-pdf-invoices-packingslips.php:338
36
+ msgid "Shipping"
37
+ msgstr "Envío"
38
+
39
+ #: woocommerce-pdf-invoices-packingslips.php:353
40
+ msgid "Discount"
41
+ msgstr "Descuento"
42
+
43
+ #: woocommerce-pdf-invoices-packingslips.php:418
44
+ msgid "Total ex. VAT"
45
+ msgstr "Total (IVA no incluído)"
46
+
47
+ #: woocommerce-pdf-invoices-packingslips.php:421
48
+ msgid "Total"
49
+ msgstr "Total"
50
+
51
+ #: includes/class-wcpdf-export.php:98 includes/class-wcpdf-export.php:103
52
+ #: includes/class-wcpdf-export.php:108
53
+ msgid "You do not have sufficient permissions to access this page."
54
+ msgstr ""
55
+
56
+ #: includes/class-wcpdf-export.php:115 includes/class-wcpdf-export.php:175
57
+ msgid "invoice"
58
+ msgid_plural "invoices"
59
+ msgstr[0] "factura"
60
+ msgstr[1] "facturas"
61
+
62
+ #: includes/class-wcpdf-export.php:117
63
+ msgid "packing-slip"
64
+ msgid_plural "packing-slips"
65
+ msgstr[0] "nota-de-entrega"
66
+ msgstr[1] "nota-de-entrega"
67
+
68
+ #: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
69
+ #: includes/class-wcpdf-writepanels.php:115
70
+ #: includes/class-wcpdf-writepanels.php:116
71
+ msgid "PDF Invoices"
72
+ msgstr "PDF Facturas"
73
+
74
+ #: includes/class-wcpdf-settings.php:60
75
+ msgid "Settings"
76
+ msgstr "Ajustes"
77
+
78
+ #: includes/class-wcpdf-settings.php:75
79
+ msgid "..."
80
+ msgstr ""
81
+
82
+ #: includes/class-wcpdf-settings.php:86
83
+ msgid "WooCommerce PDF Invoices"
84
+ msgstr "WooCommerce PDF Facturas"
85
+
86
+ #: includes/class-wcpdf-settings.php:88
87
+ msgid "General"
88
+ msgstr "General"
89
+
90
+ #: includes/class-wcpdf-settings.php:89
91
+ msgid "Template"
92
+ msgstr "Plantilla"
93
+
94
+ #: includes/class-wcpdf-settings.php:97
95
+ #, php-format
96
+ msgid ""
97
+ "Looking for more advanced templates? Check out the Premium PDF Invoice & "
98
+ "Packing Slips templates at %s."
99
+ msgstr ""
100
+
101
+ #: includes/class-wcpdf-settings.php:151
102
+ msgid "General settings"
103
+ msgstr "Ajustes generales"
104
+
105
+ #: includes/class-wcpdf-settings.php:158
106
+ msgid "How do you want to view the PDF?"
107
+ msgstr ""
108
+
109
+ #: includes/class-wcpdf-settings.php:166
110
+ msgid "Download the PDF"
111
+ msgstr ""
112
+
113
+ #: includes/class-wcpdf-settings.php:167
114
+ msgid "Open the PDF in a new browser tab/window"
115
+ msgstr ""
116
+
117
+ #: includes/class-wcpdf-settings.php:177
118
+ msgid "Email invoice (attach to order confirmation or invoice email)"
119
+ msgstr ""
120
+
121
+ #: includes/class-wcpdf-settings.php:184
122
+ #, php-format
123
+ msgid ""
124
+ "It looks like the temp folder (<code>%s</code>) is not writable, check the "
125
+ "permissions for this folder! Without having write access to this folder, the "
126
+ "plugin will not be able to email invoices."
127
+ msgstr ""
128
+
129
+ #: includes/class-wcpdf-settings.php:206
130
+ msgid "PDF Template settings"
131
+ msgstr ""
132
+
133
+ #: includes/class-wcpdf-settings.php:213
134
+ msgid "Choose a template"
135
+ msgstr ""
136
+
137
+ #: includes/class-wcpdf-settings.php:221
138
+ msgid ""
139
+ "Want to use your own template? Copy all the files from <code>woocommerce-pdf-"
140
+ "invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/"
141
+ "woocommerce/pdf/yourtemplate/</code> to customize them"
142
+ msgstr ""
143
+
144
+ #: includes/class-wcpdf-settings.php:227
145
+ msgid "Paper size"
146
+ msgstr ""
147
+
148
+ #: includes/class-wcpdf-settings.php:235
149
+ msgid "A4"
150
+ msgstr ""
151
+
152
+ #: includes/class-wcpdf-settings.php:236
153
+ msgid "Letter"
154
+ msgstr ""
155
+
156
+ #: includes/class-wcpdf-settings.php:243
157
+ msgid "Shop header/logo"
158
+ msgstr ""
159
+
160
+ #: includes/class-wcpdf-settings.php:250
161
+ msgid "Select or upload your invoice header/logo"
162
+ msgstr ""
163
+
164
+ #: includes/class-wcpdf-settings.php:251
165
+ msgid "Set image"
166
+ msgstr ""
167
+
168
+ #: includes/class-wcpdf-settings.php:252
169
+ msgid "Remove image"
170
+ msgstr ""
171
+
172
+ #: includes/class-wcpdf-settings.php:259
173
+ msgid "Shop Name"
174
+ msgstr ""
175
+
176
+ #: includes/class-wcpdf-settings.php:272
177
+ msgid "Shop Address"
178
+ msgstr ""
179
+
180
+ #: includes/class-wcpdf-settings.php:304
181
+ msgid "Footer: terms & conditions, policies, etc."
182
+ msgstr ""
183
+
184
+ #: includes/class-wcpdf-settings.php:320
185
+ msgid "Extra template fields"
186
+ msgstr ""
187
+
188
+ #: includes/class-wcpdf-settings.php:327
189
+ msgid "Extra field 1"
190
+ msgstr ""
191
+
192
+ #: includes/class-wcpdf-settings.php:336
193
+ msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
194
+ msgstr ""
195
+
196
+ #: includes/class-wcpdf-settings.php:342
197
+ msgid "Extra field 2"
198
+ msgstr ""
199
+
200
+ #: includes/class-wcpdf-settings.php:351
201
+ msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
202
+ msgstr ""
203
+
204
+ #: includes/class-wcpdf-settings.php:357
205
+ msgid "Extra field 3"
206
+ msgstr ""
207
+
208
+ #: includes/class-wcpdf-settings.php:366
209
+ msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
210
+ msgstr ""
211
+
212
+ #: includes/class-wcpdf-settings.php:579
213
+ msgid "Image resolution"
214
+ msgstr ""
215
+
216
+ #: includes/class-wcpdf-settings.php:609
217
+ msgid ""
218
+ "These are used for the (optional) footer columns in the <em>Modern "
219
+ "(Premium)</em> template, but can also be used for other elements in your "
220
+ "custom template"
221
+ msgstr ""
222
+
223
+ #: includes/class-wcpdf-writepanels.php:81
224
+ msgid "Create PDF"
225
+ msgstr "Crear PDF"
226
+
227
+ #: includes/class-wcpdf-writepanels.php:87
228
+ msgid "Download invoice (PDF)"
229
+ msgstr "Descargar factura (PDF)"
230
+
231
+ #: includes/class-wcpdf-writepanels.php:100
232
+ msgid "PDF invoice"
233
+ msgstr "PDF factura"
234
+
235
+ #: includes/class-wcpdf-writepanels.php:101
236
+ msgid "PDF Packing Slip"
237
+ msgstr "PDF Notas de entrega"
238
+
239
+ #: includes/class-wcpdf-writepanels.php:117
240
+ #: includes/class-wcpdf-writepanels.php:118
241
+ msgid "PDF Packing Slips"
242
+ msgstr "PDF Nota de entrega"
243
+
244
+ #: templates/pdf/Simple/invoice.php:9 templates/pdf/Simple/invoice.php:21
245
+ msgid "Invoice"
246
+ msgstr "Factura"
247
+
248
+ #: templates/pdf/Simple/invoice.php:30
249
+ #: templates/pdf/Simple/packing-slip.php:30
250
+ msgid "Order Date:"
251
+ msgstr "Fecha de la Orden:"
252
+
253
+ #: templates/pdf/Simple/invoice.php:32
254
+ #: templates/pdf/Simple/packing-slip.php:32
255
+ msgid "Order Number:"
256
+ msgstr "Orden número:"
257
+
258
+ #: templates/pdf/Simple/invoice.php:34
259
+ msgid "Payment Method:"
260
+ msgstr "Método de pago:"
261
+
262
+ #: templates/pdf/Simple/invoice.php:47
263
+ #: templates/pdf/Simple/packing-slip.php:45
264
+ msgid "Product"
265
+ msgstr "Producto"
266
+
267
+ #: templates/pdf/Simple/invoice.php:48
268
+ #: templates/pdf/Simple/packing-slip.php:46
269
+ msgid "Quantity"
270
+ msgstr "Cantidad"
271
+
272
+ #: templates/pdf/Simple/invoice.php:49
273
+ msgid "Price"
274
+ msgstr "Precio"
275
+
276
+ #: templates/pdf/Simple/invoice.php:57
277
+ #: templates/pdf/Simple/packing-slip.php:54
278
+ msgid "SKU:"
279
+ msgstr "SKU:"
280
+
281
+ #: templates/pdf/Simple/invoice.php:58
282
+ #: templates/pdf/Simple/packing-slip.php:55
283
+ msgid "Weight:"
284
+ msgstr "Peso:"
285
+
286
+ #: templates/pdf/Simple/invoice.php:91
287
+ #: templates/pdf/Simple/packing-slip.php:69
288
+ msgid "Customer Notes"
289
+ msgstr "Notas del Cliente"
290
+
291
+ #: templates/pdf/Simple/packing-slip.php:9
292
+ #: templates/pdf/Simple/packing-slip.php:21
293
+ msgid "Packing Slip"
294
+ msgstr "Nota de entrega"
languages/wpo_wcpdf-nl_NL.mo CHANGED
Binary file
languages/wpo_wcpdf-nl_NL.po CHANGED
@@ -1,9 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP Menu Cart\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2014-01-12 20:16+0100\n"
6
- "PO-Revision-Date: 2014-01-12 20:16+0100\n"
7
  "Last-Translator: Ewout Fernhout <chocolade@extrapuur.nl>\n"
8
  "Language-Team: WP Overnight <support@wpovernight.com>\n"
9
  "Language: nl_NL\n"
@@ -19,35 +19,37 @@ msgstr ""
19
  "X-Generator: Poedit 1.6.3\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
 
22
- #: woocommerce-pdf-invoices-packingslips.php:106
23
  #, php-format
24
  msgid ""
25
- "WooCommerce PDF Invoices & Packing Slips requires <a href=\"%s"
26
- "\">WooCommerce</a> to be installed & activated!"
27
  msgstr ""
 
 
28
 
29
- #: woocommerce-pdf-invoices-packingslips.php:204
30
- #: woocommerce-pdf-invoices-packingslips.php:240
31
  msgid "N/A"
32
  msgstr ""
33
 
34
- #: woocommerce-pdf-invoices-packingslips.php:341
35
  msgid "Subtotal"
36
  msgstr "Subtotaal"
37
 
38
- #: woocommerce-pdf-invoices-packingslips.php:359
39
  msgid "Shipping"
40
  msgstr "Verzendkosten"
41
 
42
- #: woocommerce-pdf-invoices-packingslips.php:374
43
  msgid "Discount"
44
  msgstr "Korting"
45
 
46
- #: woocommerce-pdf-invoices-packingslips.php:432
47
  msgid "Total ex. VAT"
48
  msgstr "Totaal excl. BTW"
49
 
50
- #: woocommerce-pdf-invoices-packingslips.php:435
51
  msgid "Total"
52
  msgstr "Totaal"
53
 
@@ -69,8 +71,8 @@ msgstr[0] "pakbon"
69
  msgstr[1] "pakbonnen"
70
 
71
  #: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
72
- #: includes/class-wcpdf-writepanels.php:105
73
- #: includes/class-wcpdf-writepanels.php:106
74
  msgid "PDF Invoices"
75
  msgstr "PDF facturen"
76
 
@@ -94,27 +96,36 @@ msgstr "Algemeen"
94
  msgid "Template"
95
  msgstr "Sjabloon"
96
 
97
- #: includes/class-wcpdf-settings.php:142
 
 
 
 
 
 
 
 
 
98
  msgid "General settings"
99
  msgstr "Algemene instellingen"
100
 
101
- #: includes/class-wcpdf-settings.php:149
102
  msgid "How do you want to view the PDF?"
103
  msgstr "Hoe wil je de PDF bekijken?"
104
 
105
- #: includes/class-wcpdf-settings.php:157
106
  msgid "Download the PDF"
107
  msgstr "Download de PDF"
108
 
109
- #: includes/class-wcpdf-settings.php:158
110
  msgid "Open the PDF in a new browser tab/window"
111
  msgstr "Open de PDF in een nieuwe browser tab/venster"
112
 
113
- #: includes/class-wcpdf-settings.php:168
114
  msgid "Email invoice (attach to order confirmation or invoice email)"
115
  msgstr "Email factuur (voeg toe aan orderbevestigings-email of factuur email)"
116
 
117
- #: includes/class-wcpdf-settings.php:175
118
  #, php-format
119
  msgid ""
120
  "It looks like the temp folder (<code>%s</code>) is not writable, check the "
@@ -125,98 +136,98 @@ msgstr ""
125
  "controleer de rechten op deze folder! Zonder schrijfrechten kan de plugin "
126
  "geen facturen emailen."
127
 
128
- #: includes/class-wcpdf-settings.php:197
129
  msgid "PDF Template settings"
130
  msgstr "PDF Template instellingen"
131
 
132
- #: includes/class-wcpdf-settings.php:204
133
  msgid "Choose a template"
134
  msgstr "Kies een sjabloon"
135
 
136
- #: includes/class-wcpdf-settings.php:212
137
  msgid ""
138
- "Want to use your own template? Copy the files from <code>woocommerce-pdf-"
139
  "invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/"
140
  "woocommerce/pdf/yourtemplate/</code> to customize them"
141
  msgstr ""
142
- "Wil je je eigen sjabloon gebruiken? Kopieer de bestanden van "
143
  "<code>woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/</code> "
144
  "naar <code>jouwtheme/woocommerce/pdf/jouwtemplate/</code> en pas ze aan naar "
145
  "je wensen."
146
 
147
- #: includes/class-wcpdf-settings.php:218
148
  msgid "Paper size"
149
  msgstr "Papier formaat"
150
 
151
- #: includes/class-wcpdf-settings.php:226
152
  msgid "A4"
153
  msgstr "A4"
154
 
155
- #: includes/class-wcpdf-settings.php:227
156
  msgid "Letter"
157
  msgstr "Letter (US)"
158
 
159
- #: includes/class-wcpdf-settings.php:234
160
  msgid "Shop header/logo"
161
  msgstr "Shop header/logo"
162
 
163
- #: includes/class-wcpdf-settings.php:241
164
  msgid "Select or upload your invoice header/logo"
165
  msgstr "Selecteer of upload je factuur header/logo"
166
 
167
- #: includes/class-wcpdf-settings.php:242
168
  msgid "Set image"
169
  msgstr "Stel afbeelding in"
170
 
171
- #: includes/class-wcpdf-settings.php:243
172
  msgid "Remove image"
173
  msgstr "Verwijder afbeelding"
174
 
175
- #: includes/class-wcpdf-settings.php:250
176
  msgid "Shop Name"
177
  msgstr "Shop Naam"
178
 
179
- #: includes/class-wcpdf-settings.php:263
180
  msgid "Shop Address"
181
  msgstr "Shop Adres"
182
 
183
- #: includes/class-wcpdf-settings.php:295
184
  msgid "Footer: terms & conditions, policies, etc."
185
  msgstr "Voettekst: algemene voorwaarden, retourenbeleid, etc."
186
 
187
- #: includes/class-wcpdf-settings.php:311
188
  msgid "Extra template fields"
189
  msgstr "Extra sjabloonvelden"
190
 
191
- #: includes/class-wcpdf-settings.php:318
192
  msgid "Extra field 1"
193
  msgstr "Extra veld 1"
194
 
195
- #: includes/class-wcpdf-settings.php:327
196
  msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
197
  msgstr "Dit is voettekst kolom 1 in het <i>Modern (Premium)</i> sjabloon"
198
 
199
- #: includes/class-wcpdf-settings.php:333
200
  msgid "Extra field 2"
201
  msgstr "Extra veld 2"
202
 
203
- #: includes/class-wcpdf-settings.php:342
204
  msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
205
  msgstr "Dit is voettekst kolom 2 in het <i>Modern (Premium)</i> sjabloon"
206
 
207
- #: includes/class-wcpdf-settings.php:348
208
  msgid "Extra field 3"
209
  msgstr "Extra veld 3"
210
 
211
- #: includes/class-wcpdf-settings.php:357
212
  msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
213
  msgstr "Dit is voettekst kolom 3 in het <i>Modern (Premium)</i> sjabloon"
214
 
215
- #: includes/class-wcpdf-settings.php:570
216
  msgid "Image resolution"
217
  msgstr "Afbeeldings resolutie"
218
 
219
- #: includes/class-wcpdf-settings.php:600
220
  msgid ""
221
  "These are used for the (optional) footer columns in the <em>Modern "
222
  "(Premium)</em> template, but can also be used for other elements in your "
@@ -226,20 +237,24 @@ msgstr ""
226
  "<em>Modern (Premium)</em> sjabloon, maar kunnen ook gebruikt worden voor "
227
  "andere elementen in je eigen custom sjabloon."
228
 
229
- #: includes/class-wcpdf-writepanels.php:80
230
  msgid "Create PDF"
231
  msgstr "Maak PDF"
232
 
233
- #: includes/class-wcpdf-writepanels.php:90
 
 
 
 
234
  msgid "PDF invoice"
235
  msgstr "PDF factuur"
236
 
237
- #: includes/class-wcpdf-writepanels.php:91
238
  msgid "PDF Packing Slip"
239
  msgstr "PDF Pakbon"
240
 
241
- #: includes/class-wcpdf-writepanels.php:107
242
- #: includes/class-wcpdf-writepanels.php:108
243
  msgid "PDF Packing Slips"
244
  msgstr "PDF Pakbonnen"
245
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2014-01-23 12:28+0100\n"
6
+ "PO-Revision-Date: 2014-01-23 13:46+0100\n"
7
  "Last-Translator: Ewout Fernhout <chocolade@extrapuur.nl>\n"
8
  "Language-Team: WP Overnight <support@wpovernight.com>\n"
9
  "Language: nl_NL\n"
19
  "X-Generator: Poedit 1.6.3\n"
20
  "X-Poedit-SearchPath-0: .\n"
21
 
22
+ #: woocommerce-pdf-invoices-packingslips.php:96
23
  #, php-format
24
  msgid ""
25
+ "WooCommerce PDF Invoices & Packing Slips requires %sWooCommerce%s to be "
26
+ "installed & activated!"
27
  msgstr ""
28
+ "WooCommerce PDF Invoices & Packing Slips vereist dat %sWooCommerce%s is "
29
+ "geïnstalleerd & geactiveerd!"
30
 
31
+ #: woocommerce-pdf-invoices-packingslips.php:183
32
+ #: woocommerce-pdf-invoices-packingslips.php:219
33
  msgid "N/A"
34
  msgstr ""
35
 
36
+ #: woocommerce-pdf-invoices-packingslips.php:320
37
  msgid "Subtotal"
38
  msgstr "Subtotaal"
39
 
40
+ #: woocommerce-pdf-invoices-packingslips.php:338
41
  msgid "Shipping"
42
  msgstr "Verzendkosten"
43
 
44
+ #: woocommerce-pdf-invoices-packingslips.php:353
45
  msgid "Discount"
46
  msgstr "Korting"
47
 
48
+ #: woocommerce-pdf-invoices-packingslips.php:418
49
  msgid "Total ex. VAT"
50
  msgstr "Totaal excl. BTW"
51
 
52
+ #: woocommerce-pdf-invoices-packingslips.php:421
53
  msgid "Total"
54
  msgstr "Totaal"
55
 
71
  msgstr[1] "pakbonnen"
72
 
73
  #: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
74
+ #: includes/class-wcpdf-writepanels.php:115
75
+ #: includes/class-wcpdf-writepanels.php:116
76
  msgid "PDF Invoices"
77
  msgstr "PDF facturen"
78
 
96
  msgid "Template"
97
  msgstr "Sjabloon"
98
 
99
+ #: includes/class-wcpdf-settings.php:97
100
+ #, php-format
101
+ msgid ""
102
+ "Looking for more advanced templates? Check out the Premium PDF Invoice & "
103
+ "Packing Slips templates at %s."
104
+ msgstr ""
105
+ "Op zoek naar geavanceerdere sjablonen? Bekijk de Premium PDF Invoice & "
106
+ "Packing Slips sjablonen op %s."
107
+
108
+ #: includes/class-wcpdf-settings.php:151
109
  msgid "General settings"
110
  msgstr "Algemene instellingen"
111
 
112
+ #: includes/class-wcpdf-settings.php:158
113
  msgid "How do you want to view the PDF?"
114
  msgstr "Hoe wil je de PDF bekijken?"
115
 
116
+ #: includes/class-wcpdf-settings.php:166
117
  msgid "Download the PDF"
118
  msgstr "Download de PDF"
119
 
120
+ #: includes/class-wcpdf-settings.php:167
121
  msgid "Open the PDF in a new browser tab/window"
122
  msgstr "Open de PDF in een nieuwe browser tab/venster"
123
 
124
+ #: includes/class-wcpdf-settings.php:177
125
  msgid "Email invoice (attach to order confirmation or invoice email)"
126
  msgstr "Email factuur (voeg toe aan orderbevestigings-email of factuur email)"
127
 
128
+ #: includes/class-wcpdf-settings.php:184
129
  #, php-format
130
  msgid ""
131
  "It looks like the temp folder (<code>%s</code>) is not writable, check the "
136
  "controleer de rechten op deze folder! Zonder schrijfrechten kan de plugin "
137
  "geen facturen emailen."
138
 
139
+ #: includes/class-wcpdf-settings.php:206
140
  msgid "PDF Template settings"
141
  msgstr "PDF Template instellingen"
142
 
143
+ #: includes/class-wcpdf-settings.php:213
144
  msgid "Choose a template"
145
  msgstr "Kies een sjabloon"
146
 
147
+ #: includes/class-wcpdf-settings.php:221
148
  msgid ""
149
+ "Want to use your own template? Copy all the files from <code>woocommerce-pdf-"
150
  "invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/"
151
  "woocommerce/pdf/yourtemplate/</code> to customize them"
152
  msgstr ""
153
+ "Wil je je eigen sjabloon gebruiken? Kopieer alle bestanden van "
154
  "<code>woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/</code> "
155
  "naar <code>jouwtheme/woocommerce/pdf/jouwtemplate/</code> en pas ze aan naar "
156
  "je wensen."
157
 
158
+ #: includes/class-wcpdf-settings.php:227
159
  msgid "Paper size"
160
  msgstr "Papier formaat"
161
 
162
+ #: includes/class-wcpdf-settings.php:235
163
  msgid "A4"
164
  msgstr "A4"
165
 
166
+ #: includes/class-wcpdf-settings.php:236
167
  msgid "Letter"
168
  msgstr "Letter (US)"
169
 
170
+ #: includes/class-wcpdf-settings.php:243
171
  msgid "Shop header/logo"
172
  msgstr "Shop header/logo"
173
 
174
+ #: includes/class-wcpdf-settings.php:250
175
  msgid "Select or upload your invoice header/logo"
176
  msgstr "Selecteer of upload je factuur header/logo"
177
 
178
+ #: includes/class-wcpdf-settings.php:251
179
  msgid "Set image"
180
  msgstr "Stel afbeelding in"
181
 
182
+ #: includes/class-wcpdf-settings.php:252
183
  msgid "Remove image"
184
  msgstr "Verwijder afbeelding"
185
 
186
+ #: includes/class-wcpdf-settings.php:259
187
  msgid "Shop Name"
188
  msgstr "Shop Naam"
189
 
190
+ #: includes/class-wcpdf-settings.php:272
191
  msgid "Shop Address"
192
  msgstr "Shop Adres"
193
 
194
+ #: includes/class-wcpdf-settings.php:304
195
  msgid "Footer: terms & conditions, policies, etc."
196
  msgstr "Voettekst: algemene voorwaarden, retourenbeleid, etc."
197
 
198
+ #: includes/class-wcpdf-settings.php:320
199
  msgid "Extra template fields"
200
  msgstr "Extra sjabloonvelden"
201
 
202
+ #: includes/class-wcpdf-settings.php:327
203
  msgid "Extra field 1"
204
  msgstr "Extra veld 1"
205
 
206
+ #: includes/class-wcpdf-settings.php:336
207
  msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
208
  msgstr "Dit is voettekst kolom 1 in het <i>Modern (Premium)</i> sjabloon"
209
 
210
+ #: includes/class-wcpdf-settings.php:342
211
  msgid "Extra field 2"
212
  msgstr "Extra veld 2"
213
 
214
+ #: includes/class-wcpdf-settings.php:351
215
  msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
216
  msgstr "Dit is voettekst kolom 2 in het <i>Modern (Premium)</i> sjabloon"
217
 
218
+ #: includes/class-wcpdf-settings.php:357
219
  msgid "Extra field 3"
220
  msgstr "Extra veld 3"
221
 
222
+ #: includes/class-wcpdf-settings.php:366
223
  msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
224
  msgstr "Dit is voettekst kolom 3 in het <i>Modern (Premium)</i> sjabloon"
225
 
226
+ #: includes/class-wcpdf-settings.php:579
227
  msgid "Image resolution"
228
  msgstr "Afbeeldings resolutie"
229
 
230
+ #: includes/class-wcpdf-settings.php:609
231
  msgid ""
232
  "These are used for the (optional) footer columns in the <em>Modern "
233
  "(Premium)</em> template, but can also be used for other elements in your "
237
  "<em>Modern (Premium)</em> sjabloon, maar kunnen ook gebruikt worden voor "
238
  "andere elementen in je eigen custom sjabloon."
239
 
240
+ #: includes/class-wcpdf-writepanels.php:81
241
  msgid "Create PDF"
242
  msgstr "Maak PDF"
243
 
244
+ #: includes/class-wcpdf-writepanels.php:87
245
+ msgid "Download invoice (PDF)"
246
+ msgstr "Download factuur (PDF)"
247
+
248
+ #: includes/class-wcpdf-writepanels.php:100
249
  msgid "PDF invoice"
250
  msgstr "PDF factuur"
251
 
252
+ #: includes/class-wcpdf-writepanels.php:101
253
  msgid "PDF Packing Slip"
254
  msgstr "PDF Pakbon"
255
 
256
+ #: includes/class-wcpdf-writepanels.php:117
257
+ #: includes/class-wcpdf-writepanels.php:118
258
  msgid "PDF Packing Slips"
259
  msgstr "PDF Pakbonnen"
260
 
languages/wpo_wcpdf.pot ADDED
@@ -0,0 +1,294 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
4
+ "POT-Creation-Date: 2014-01-23 12:32+0100\n"
5
+ "PO-Revision-Date: 2014-01-23 12:32+0100\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: WP Overnight <support@wpovernight.com>\n"
8
+ "Language: en_US\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.6.3\n"
13
+ "X-Poedit-Basepath: ../\n"
14
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;_x;_n:1,2\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: woocommerce-pdf-invoices-packingslips.php:96
20
+ #, php-format
21
+ msgid ""
22
+ "WooCommerce PDF Invoices & Packing Slips requires %sWooCommerce%s to be "
23
+ "installed & activated!"
24
+ msgstr ""
25
+
26
+ #: woocommerce-pdf-invoices-packingslips.php:183
27
+ #: woocommerce-pdf-invoices-packingslips.php:219
28
+ msgid "N/A"
29
+ msgstr ""
30
+
31
+ #: woocommerce-pdf-invoices-packingslips.php:320
32
+ msgid "Subtotal"
33
+ msgstr ""
34
+
35
+ #: woocommerce-pdf-invoices-packingslips.php:338
36
+ msgid "Shipping"
37
+ msgstr ""
38
+
39
+ #: woocommerce-pdf-invoices-packingslips.php:353
40
+ msgid "Discount"
41
+ msgstr ""
42
+
43
+ #: woocommerce-pdf-invoices-packingslips.php:418
44
+ msgid "Total ex. VAT"
45
+ msgstr ""
46
+
47
+ #: woocommerce-pdf-invoices-packingslips.php:421
48
+ msgid "Total"
49
+ msgstr ""
50
+
51
+ #: includes/class-wcpdf-export.php:98 includes/class-wcpdf-export.php:103
52
+ #: includes/class-wcpdf-export.php:108
53
+ msgid "You do not have sufficient permissions to access this page."
54
+ msgstr ""
55
+
56
+ #: includes/class-wcpdf-export.php:115 includes/class-wcpdf-export.php:175
57
+ msgid "invoice"
58
+ msgid_plural "invoices"
59
+ msgstr[0] ""
60
+ msgstr[1] ""
61
+
62
+ #: includes/class-wcpdf-export.php:117
63
+ msgid "packing-slip"
64
+ msgid_plural "packing-slips"
65
+ msgstr[0] ""
66
+ msgstr[1] ""
67
+
68
+ #: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
69
+ #: includes/class-wcpdf-writepanels.php:115
70
+ #: includes/class-wcpdf-writepanels.php:116
71
+ msgid "PDF Invoices"
72
+ msgstr ""
73
+
74
+ #: includes/class-wcpdf-settings.php:60
75
+ msgid "Settings"
76
+ msgstr ""
77
+
78
+ #: includes/class-wcpdf-settings.php:75
79
+ msgid "..."
80
+ msgstr ""
81
+
82
+ #: includes/class-wcpdf-settings.php:86
83
+ msgid "WooCommerce PDF Invoices"
84
+ msgstr ""
85
+
86
+ #: includes/class-wcpdf-settings.php:88
87
+ msgid "General"
88
+ msgstr ""
89
+
90
+ #: includes/class-wcpdf-settings.php:89
91
+ msgid "Template"
92
+ msgstr ""
93
+
94
+ #: includes/class-wcpdf-settings.php:97
95
+ #, php-format
96
+ msgid ""
97
+ "Looking for more advanced templates? Check out the Premium PDF Invoice & "
98
+ "Packing Slips templates at %s."
99
+ msgstr ""
100
+
101
+ #: includes/class-wcpdf-settings.php:151
102
+ msgid "General settings"
103
+ msgstr ""
104
+
105
+ #: includes/class-wcpdf-settings.php:158
106
+ msgid "How do you want to view the PDF?"
107
+ msgstr ""
108
+
109
+ #: includes/class-wcpdf-settings.php:166
110
+ msgid "Download the PDF"
111
+ msgstr ""
112
+
113
+ #: includes/class-wcpdf-settings.php:167
114
+ msgid "Open the PDF in a new browser tab/window"
115
+ msgstr ""
116
+
117
+ #: includes/class-wcpdf-settings.php:177
118
+ msgid "Email invoice (attach to order confirmation or invoice email)"
119
+ msgstr ""
120
+
121
+ #: includes/class-wcpdf-settings.php:184
122
+ #, php-format
123
+ msgid ""
124
+ "It looks like the temp folder (<code>%s</code>) is not writable, check the "
125
+ "permissions for this folder! Without having write access to this folder, the "
126
+ "plugin will not be able to email invoices."
127
+ msgstr ""
128
+
129
+ #: includes/class-wcpdf-settings.php:206
130
+ msgid "PDF Template settings"
131
+ msgstr ""
132
+
133
+ #: includes/class-wcpdf-settings.php:213
134
+ msgid "Choose a template"
135
+ msgstr ""
136
+
137
+ #: includes/class-wcpdf-settings.php:221
138
+ msgid ""
139
+ "Want to use your own template? Copy all the files from <code>woocommerce-pdf-"
140
+ "invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/"
141
+ "woocommerce/pdf/yourtemplate/</code> to customize them"
142
+ msgstr ""
143
+
144
+ #: includes/class-wcpdf-settings.php:227
145
+ msgid "Paper size"
146
+ msgstr ""
147
+
148
+ #: includes/class-wcpdf-settings.php:235
149
+ msgid "A4"
150
+ msgstr ""
151
+
152
+ #: includes/class-wcpdf-settings.php:236
153
+ msgid "Letter"
154
+ msgstr ""
155
+
156
+ #: includes/class-wcpdf-settings.php:243
157
+ msgid "Shop header/logo"
158
+ msgstr ""
159
+
160
+ #: includes/class-wcpdf-settings.php:250
161
+ msgid "Select or upload your invoice header/logo"
162
+ msgstr ""
163
+
164
+ #: includes/class-wcpdf-settings.php:251
165
+ msgid "Set image"
166
+ msgstr ""
167
+
168
+ #: includes/class-wcpdf-settings.php:252
169
+ msgid "Remove image"
170
+ msgstr ""
171
+
172
+ #: includes/class-wcpdf-settings.php:259
173
+ msgid "Shop Name"
174
+ msgstr ""
175
+
176
+ #: includes/class-wcpdf-settings.php:272
177
+ msgid "Shop Address"
178
+ msgstr ""
179
+
180
+ #: includes/class-wcpdf-settings.php:304
181
+ msgid "Footer: terms & conditions, policies, etc."
182
+ msgstr ""
183
+
184
+ #: includes/class-wcpdf-settings.php:320
185
+ msgid "Extra template fields"
186
+ msgstr ""
187
+
188
+ #: includes/class-wcpdf-settings.php:327
189
+ msgid "Extra field 1"
190
+ msgstr ""
191
+
192
+ #: includes/class-wcpdf-settings.php:336
193
+ msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
194
+ msgstr ""
195
+
196
+ #: includes/class-wcpdf-settings.php:342
197
+ msgid "Extra field 2"
198
+ msgstr ""
199
+
200
+ #: includes/class-wcpdf-settings.php:351
201
+ msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
202
+ msgstr ""
203
+
204
+ #: includes/class-wcpdf-settings.php:357
205
+ msgid "Extra field 3"
206
+ msgstr ""
207
+
208
+ #: includes/class-wcpdf-settings.php:366
209
+ msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
210
+ msgstr ""
211
+
212
+ #: includes/class-wcpdf-settings.php:579
213
+ msgid "Image resolution"
214
+ msgstr ""
215
+
216
+ #: includes/class-wcpdf-settings.php:609
217
+ msgid ""
218
+ "These are used for the (optional) footer columns in the <em>Modern "
219
+ "(Premium)</em> template, but can also be used for other elements in your "
220
+ "custom template"
221
+ msgstr ""
222
+
223
+ #: includes/class-wcpdf-writepanels.php:81
224
+ msgid "Create PDF"
225
+ msgstr ""
226
+
227
+ #: includes/class-wcpdf-writepanels.php:87
228
+ msgid "Download invoice (PDF)"
229
+ msgstr ""
230
+
231
+ #: includes/class-wcpdf-writepanels.php:100
232
+ msgid "PDF invoice"
233
+ msgstr ""
234
+
235
+ #: includes/class-wcpdf-writepanels.php:101
236
+ msgid "PDF Packing Slip"
237
+ msgstr ""
238
+
239
+ #: includes/class-wcpdf-writepanels.php:117
240
+ #: includes/class-wcpdf-writepanels.php:118
241
+ msgid "PDF Packing Slips"
242
+ msgstr ""
243
+
244
+ #: templates/pdf/Simple/invoice.php:9 templates/pdf/Simple/invoice.php:21
245
+ msgid "Invoice"
246
+ msgstr ""
247
+
248
+ #: templates/pdf/Simple/invoice.php:30
249
+ #: templates/pdf/Simple/packing-slip.php:30
250
+ msgid "Order Date:"
251
+ msgstr ""
252
+
253
+ #: templates/pdf/Simple/invoice.php:32
254
+ #: templates/pdf/Simple/packing-slip.php:32
255
+ msgid "Order Number:"
256
+ msgstr ""
257
+
258
+ #: templates/pdf/Simple/invoice.php:34
259
+ msgid "Payment Method:"
260
+ msgstr ""
261
+
262
+ #: templates/pdf/Simple/invoice.php:47
263
+ #: templates/pdf/Simple/packing-slip.php:45
264
+ msgid "Product"
265
+ msgstr ""
266
+
267
+ #: templates/pdf/Simple/invoice.php:48
268
+ #: templates/pdf/Simple/packing-slip.php:46
269
+ msgid "Quantity"
270
+ msgstr ""
271
+
272
+ #: templates/pdf/Simple/invoice.php:49
273
+ msgid "Price"
274
+ msgstr ""
275
+
276
+ #: templates/pdf/Simple/invoice.php:57
277
+ #: templates/pdf/Simple/packing-slip.php:54
278
+ msgid "SKU:"
279
+ msgstr ""
280
+
281
+ #: templates/pdf/Simple/invoice.php:58
282
+ #: templates/pdf/Simple/packing-slip.php:55
283
+ msgid "Weight:"
284
+ msgstr ""
285
+
286
+ #: templates/pdf/Simple/invoice.php:91
287
+ #: templates/pdf/Simple/packing-slip.php:69
288
+ msgid "Customer Notes"
289
+ msgstr ""
290
+
291
+ #: templates/pdf/Simple/packing-slip.php:9
292
+ #: templates/pdf/Simple/packing-slip.php:21
293
+ msgid "Packing Slip"
294
+ msgstr ""
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pomegranate
3
  Tags: woocommerce, print, pdf, bulk, packing slips, invoices, delivery notes, invoice, packing slip, export, email
4
  Requires at least: 3.5 and WooCommerce 2.0
5
  Tested up to: 3.8 and WooCommerce 2.1
6
- Stable tag: 1.0.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -13,16 +13,16 @@ Create, print & email PDF invoices & packing slips for WooCommerce orders.
13
 
14
  This WooCommerce extension lets you add a PDF invoice to the order confirmation emails sent out to your customers. Includes a basic template (additional templates are available from [WP Overnight](https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/)) as well as the possibility to modify/create your own templates. In addition, you can choose to download or print invoices and packing slips from the WooCommerce order admin.
15
 
16
- = Fully customizable =
17
- In addition to a number of default settings (including a custom header/logo) and several layout fields that you can use out of the box, the plugin contains html/css based templates that allow for customization & full control over the PDF output.
18
-
19
  = Main features =
20
  * Export invoices or packing slips to PDF (individually or in bulk)
21
  * Automatically attach invoice PDF to order confirmation email
 
 
 
 
22
  * Insert customer header image/logo
23
  * Modify shop data / footer / disclaimer etc. on the invoices & packing slips
24
  * Select paper size (Letter or A4)
25
- * Custom templating engine
26
  * Translation ready
27
 
28
  If you want more control over the invoice numbers, we recommend that you also install the (free) [WooCommerce Sequential Order Numbers plugin](http://wordpress.org/plugins/woocommerce-sequential-order-numbers/)
@@ -65,5 +65,13 @@ Go to [wpovernight.com](https://wpovernight.com/downloads/woocommerce-pdf-invoic
65
 
66
  == Changelog ==
67
 
 
 
 
 
 
 
 
 
68
  = 1.0.0 =
69
  * First release
3
  Tags: woocommerce, print, pdf, bulk, packing slips, invoices, delivery notes, invoice, packing slip, export, email
4
  Requires at least: 3.5 and WooCommerce 2.0
5
  Tested up to: 3.8 and WooCommerce 2.1
6
+ Stable tag: 1.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
13
 
14
  This WooCommerce extension lets you add a PDF invoice to the order confirmation emails sent out to your customers. Includes a basic template (additional templates are available from [WP Overnight](https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/)) as well as the possibility to modify/create your own templates. In addition, you can choose to download or print invoices and packing slips from the WooCommerce order admin.
15
 
 
 
 
16
  = Main features =
17
  * Export invoices or packing slips to PDF (individually or in bulk)
18
  * Automatically attach invoice PDF to order confirmation email
19
+ * Users can download their invoices from the My Account page
20
+
21
+ = Fully customizable =
22
+ In addition to a number of default settings (including a custom header/logo) and several layout fields that you can use out of the box, the plugin contains HTML/CSS based templates that allow for customization & full control over the PDF output.
23
  * Insert customer header image/logo
24
  * Modify shop data / footer / disclaimer etc. on the invoices & packing slips
25
  * Select paper size (Letter or A4)
 
26
  * Translation ready
27
 
28
  If you want more control over the invoice numbers, we recommend that you also install the (free) [WooCommerce Sequential Order Numbers plugin](http://wordpress.org/plugins/woocommerce-sequential-order-numbers/)
65
 
66
  == Changelog ==
67
 
68
+ = 1.0.1 =
69
+ * Feature: Fees can now also be called ex. VAT
70
+ * Feature: Invoices can now be downloaded from the My Account page
71
+ * Feature: Spanish translation & POT file included
72
+ * Tweak: Packing slip now displays shipping address instead of billing address
73
+ * Tweak: Variation data is now displayed by default
74
+ * Fix: ternary statement that caused an error
75
+
76
  = 1.0.0 =
77
  * First release
templates/pdf/Simple/invoice.php CHANGED
@@ -52,7 +52,7 @@
52
  <tbody>
53
  <?php $items = $wpo_wcpdf->get_order_items(); if( sizeof( $items ) > 0 ) : foreach( $items as $item ) : ?><tr>
54
  <td class="description">
55
- <?php echo $item['name']; ?>
56
  <dl class="meta">
57
  <?php if( !empty( $item['sku'] ) ) : ?><dt><?php _e( 'SKU:', 'wpo_wcpdf' ); ?></dt><dd><?php echo $item['sku']; ?></dd><?php endif; ?>
58
  <?php if( !empty( $item['weight'] ) ) : ?><dt><?php _e( 'Weight:', 'wpo_wcpdf' ); ?></dt><dd><?php echo $item['weight']; ?><?php echo get_option('woocommerce_weight_unit'); ?></dd><?php endif; ?>
52
  <tbody>
53
  <?php $items = $wpo_wcpdf->get_order_items(); if( sizeof( $items ) > 0 ) : foreach( $items as $item ) : ?><tr>
54
  <td class="description">
55
+ <?php echo $item['name']; ?><?php echo $item['meta']; ?>
56
  <dl class="meta">
57
  <?php if( !empty( $item['sku'] ) ) : ?><dt><?php _e( 'SKU:', 'wpo_wcpdf' ); ?></dt><dd><?php echo $item['sku']; ?></dd><?php endif; ?>
58
  <?php if( !empty( $item['weight'] ) ) : ?><dt><?php _e( 'Weight:', 'wpo_wcpdf' ); ?></dt><dd><?php echo $item['weight']; ?><?php echo get_option('woocommerce_weight_unit'); ?></dd><?php endif; ?>
templates/pdf/Simple/packing-slip.php CHANGED
@@ -34,7 +34,7 @@
34
  </div>
35
  </td>
36
  <td>
37
- <div class="recipient-address"><?php $wpo_wcpdf->billing_address(); ?></div>
38
  </td>
39
  </tr>
40
  </table><!-- head container -->
@@ -49,7 +49,7 @@
49
  <tbody>
50
  <?php $items = $wpo_wcpdf->get_order_items(); if( sizeof( $items ) > 0 ) : foreach( $items as $item ) : ?><tr>
51
  <td class="description">
52
- <?php echo $item['name']; ?>
53
  <dl class="meta">
54
  <?php if( !empty( $item['sku'] ) ) : ?><dt><?php _e( 'SKU:', 'wpo_wcpdf' ); ?></dt><dd><?php echo $item['sku']; ?></dd><?php endif; ?>
55
  <?php if( !empty( $item['weight'] ) ) : ?><dt><?php _e( 'Weight:', 'wpo_wcpdf' ); ?></dt><dd><?php echo $item['weight']; ?><?php echo get_option('woocommerce_weight_unit'); ?></dd><?php endif; ?>
34
  </div>
35
  </td>
36
  <td>
37
+ <div class="recipient-address"><?php $wpo_wcpdf->shipping_address(); ?></div>
38
  </td>
39
  </tr>
40
  </table><!-- head container -->
49
  <tbody>
50
  <?php $items = $wpo_wcpdf->get_order_items(); if( sizeof( $items ) > 0 ) : foreach( $items as $item ) : ?><tr>
51
  <td class="description">
52
+ <?php echo $item['name']; ?><?php echo $item['meta']; ?>
53
  <dl class="meta">
54
  <?php if( !empty( $item['sku'] ) ) : ?><dt><?php _e( 'SKU:', 'wpo_wcpdf' ); ?></dt><dd><?php echo $item['sku']; ?></dd><?php endif; ?>
55
  <?php if( !empty( $item['weight'] ) ) : ?><dt><?php _e( 'Weight:', 'wpo_wcpdf' ); ?></dt><dd><?php echo $item['weight']; ?><?php echo get_option('woocommerce_weight_unit'); ?></dd><?php endif; ?>
woocommerce-pdf-invoices-packingslips.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: http://www.wpovernight.com
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
- * Version: 1.0.0
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
@@ -93,7 +93,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
93
  */
94
 
95
  public function need_woocommerce() {
96
- $error = sprintf( __( 'WooCommerce PDF Invoices & Packing Slips requires <a href="%s">WooCommerce</a> to be installed & activated!' , 'wpo_wcpdf' ), 'http://wordpress.org/extend/plugins/woocommerce/' );
97
 
98
  $message = '<div class="error"><p>' . $error . '</p></div>';
99
 
@@ -135,7 +135,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
135
  public function header_logo() {
136
  if ($this->get_header_logo_id()) {
137
  $attachment_id = $this->get_header_logo_id();
138
- $company = isset($this->settings->template_settings['shop_name'])?:'';
139
  if( $attachment_id ) {
140
  $attachment = wp_get_attachment_image_src( $attachment_id, 'full', false );
141
 
@@ -361,12 +361,19 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
361
  /**
362
  * Return the order fees
363
  */
364
- public function get_order_fees() {
365
  if ( $wcfees = $this->export->order->get_fees() ) {
366
  foreach( $wcfees as $id => $fee ) {
 
 
 
 
 
 
 
367
  $fees[ $id ] = array(
368
  'label' => $fee['name'],
369
- 'value' => woocommerce_price( $fee['line_total'] + $fee['line_tax'] )
370
  );
371
  }
372
  return $fees;
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: http://www.wpovernight.com
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
+ * Version: 1.0.1
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
93
  */
94
 
95
  public function need_woocommerce() {
96
+ $error = sprintf( __( 'WooCommerce PDF Invoices & Packing Slips requires %sWooCommerce%s to be installed & activated!' , 'wpo_wcpdf' ), '<a href="http://wordpress.org/extend/plugins/woocommerce/">', '</a>' );
97
 
98
  $message = '<div class="error"><p>' . $error . '</p></div>';
99
 
135
  public function header_logo() {
136
  if ($this->get_header_logo_id()) {
137
  $attachment_id = $this->get_header_logo_id();
138
+ $company = isset($this->settings->template_settings['shop_name'])? $this->settings->template_settings['shop_name'] : '';
139
  if( $attachment_id ) {
140
  $attachment = wp_get_attachment_image_src( $attachment_id, 'full', false );
141
 
361
  /**
362
  * Return the order fees
363
  */
364
+ public function get_order_fees( $tax = 'excl' ) {
365
  if ( $wcfees = $this->export->order->get_fees() ) {
366
  foreach( $wcfees as $id => $fee ) {
367
+ if ($tax = 'excl' ) {
368
+ $fee_price = woocommerce_price( $fee['line_total'] );
369
+ } else {
370
+ $fee_price = woocommerce_price( $fee['line_total'] + $fee['line_tax'] );
371
+ }
372
+
373
+
374
  $fees[ $id ] = array(
375
  'label' => $fee['name'],
376
+ 'value' => $fee_price
377
  );
378
  }
379
  return $fees;