Version Description
- Tweak: Spanish translation update (thanks prepu!)
- Fix: More advanced checks to determine if a customer can download the invoice (including a status filter)
Download this release
Release Info
Developer | pomegranate |
Plugin | WooCommerce PDF Invoices & Packing Slips |
Version | 1.2.6 |
Comparing to | |
See all releases |
Code changes from version 1.2.5 to 1.2.6
- includes/class-wcpdf-export.php +5 -0
- includes/class-wcpdf-writepanels.php +2 -1
- languages/wpo_wcpdf-es_ES.mo +0 -0
- languages/wpo_wcpdf-es_ES.po +81 -62
- languages/wpo_wcpdf-nl_NL.mo +0 -0
- languages/wpo_wcpdf-nl_NL.po +15 -15
- readme.txt +56 -2
- templates/pdf/Simple/invoice.php +1 -1
- woocommerce-pdf-invoices-packingslips.php +1 -1
includes/class-wcpdf-export.php
CHANGED
@@ -55,6 +55,11 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
|
|
55 |
|
56 |
$output_html[$order_id] = $this->get_template($template);
|
57 |
|
|
|
|
|
|
|
|
|
|
|
58 |
// Wipe post from cache
|
59 |
wp_cache_delete( $order_id, 'posts' );
|
60 |
wp_cache_delete( $order_id, 'post_meta' );
|
55 |
|
56 |
$output_html[$order_id] = $this->get_template($template);
|
57 |
|
58 |
+
// store meta to be able to check if an invoice for an order has been created already
|
59 |
+
if ( $template_type == 'invoice' ) {
|
60 |
+
update_post_meta( $order_id, '_wcpdf_invoice_exists', 1 );
|
61 |
+
}
|
62 |
+
|
63 |
// Wipe post from cache
|
64 |
wp_cache_delete( $order_id, 'posts' );
|
65 |
wp_cache_delete( $order_id, 'post_meta' );
|
includes/class-wcpdf-writepanels.php
CHANGED
@@ -136,7 +136,8 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
|
|
136 |
public function my_account_pdf_link( $actions, $order ) {
|
137 |
$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' );
|
138 |
|
139 |
-
if (
|
|
|
140 |
$actions['invoice'] = array(
|
141 |
'url' => $pdf_url,
|
142 |
'name' => __( 'Download invoice (PDF)', 'wpo_wcpdf' )
|
136 |
public function my_account_pdf_link( $actions, $order ) {
|
137 |
$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' );
|
138 |
|
139 |
+
// Check if invoice has been created already or if status allows download (filter your own array of allowed statuses)
|
140 |
+
if (get_post_meta($order->id,'_wcpdf_invoice_exists',true) || get_post_meta($order->id,'_wcpdf_invoice_number',true) || in_array($order->status, apply_filters( 'wpo_wcpdf_myaccount_allowed_order_statuses', array() ) ) ) {
|
141 |
$actions['invoice'] = array(
|
142 |
'url' => $pdf_url,
|
143 |
'name' => __( 'Download invoice (PDF)', 'wpo_wcpdf' )
|
languages/wpo_wcpdf-es_ES.mo
CHANGED
Binary file
|
languages/wpo_wcpdf-es_ES.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
|
4 |
-
"POT-Creation-Date: 2014-02-
|
5 |
-
"PO-Revision-Date: 2014-02-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: WP Overnight <support@wpovernight.com>\n"
|
8 |
"Language: es_ES\n"
|
@@ -16,27 +16,27 @@ msgstr ""
|
|
16 |
"X-Poedit-KeywordsList: __;_e;_x;_n:1,2\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
-
#: includes/class-wcpdf-export.php:
|
20 |
-
#: includes/class-wcpdf-export.php:
|
21 |
-
#: includes/class-wcpdf-export.php:
|
22 |
msgid "You do not have sufficient permissions to access this page."
|
23 |
msgstr "No tiene suficientes permitos para acceder a esta página."
|
24 |
|
25 |
-
#: includes/class-wcpdf-export.php:
|
26 |
msgid "invoice"
|
27 |
msgid_plural "invoices"
|
28 |
msgstr[0] "factura"
|
29 |
msgstr[1] "facturas"
|
30 |
|
31 |
-
#: includes/class-wcpdf-export.php:
|
32 |
msgid "packing-slip"
|
33 |
msgid_plural "packing-slips"
|
34 |
msgstr[0] "albarán de entrega"
|
35 |
msgstr[1] "albaranes de entrega"
|
36 |
|
37 |
#: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
|
38 |
-
#: includes/class-wcpdf-writepanels.php:
|
39 |
-
#: includes/class-wcpdf-writepanels.php:
|
40 |
msgid "PDF Invoices"
|
41 |
msgstr "Facturas PDF"
|
42 |
|
@@ -56,7 +56,18 @@ msgstr "General"
|
|
56 |
msgid "Template"
|
57 |
msgstr "Plantilla"
|
58 |
|
59 |
-
#: includes/class-wcpdf-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
#, php-format
|
61 |
msgid ""
|
62 |
"Looking for more advanced templates? Check out the Premium PDF Invoice & "
|
@@ -65,48 +76,48 @@ msgstr ""
|
|
65 |
"¿Buscando plantillas más avanzadas? Echa un vistazo a las plantillas premium "
|
66 |
"de PDF Invoice & Packing Slips en %s."
|
67 |
|
68 |
-
#: includes/class-wcpdf-settings.php:
|
69 |
#, php-format
|
70 |
msgid "For custom templates, contact us at %s."
|
71 |
msgstr "Para plantillas personalizadas, contacte con nosotros en %s."
|
72 |
|
73 |
-
#: includes/class-wcpdf-settings.php:
|
74 |
msgid "General settings"
|
75 |
msgstr "Ajustes generales"
|
76 |
|
77 |
-
#: includes/class-wcpdf-settings.php:
|
78 |
msgid "How do you want to view the PDF?"
|
79 |
msgstr "¿Cómo desea visualizar el PDF?"
|
80 |
|
81 |
-
#: includes/class-wcpdf-settings.php:
|
82 |
msgid "Download the PDF"
|
83 |
msgstr "Descargándolo."
|
84 |
|
85 |
-
#: includes/class-wcpdf-settings.php:
|
86 |
msgid "Open the PDF in a new browser tab/window"
|
87 |
msgstr "Abriéndolo en una nueva pestaña/ventana del navegador."
|
88 |
|
89 |
-
#: includes/class-wcpdf-settings.php:
|
90 |
msgid "Attach invoice to:"
|
91 |
msgstr "Adjuntar factura a:"
|
92 |
|
93 |
-
#: includes/class-wcpdf-settings.php:
|
94 |
msgid "Admin New Order email"
|
95 |
msgstr "Correo electrónico del administrador al crear un nuevo pedido."
|
96 |
|
97 |
-
#: includes/class-wcpdf-settings.php:
|
98 |
msgid "Customer Processing Order email"
|
99 |
msgstr "Correo electrónico del cliente al procesar el pedido."
|
100 |
|
101 |
-
#: includes/class-wcpdf-settings.php:
|
102 |
msgid "Customer Completed Order email"
|
103 |
msgstr "Correo electrónico del cliente al completar el pedido."
|
104 |
|
105 |
-
#: includes/class-wcpdf-settings.php:
|
106 |
msgid "Customer Invoice email"
|
107 |
msgstr "Correo electrónico de la factura del cliente."
|
108 |
|
109 |
-
#: includes/class-wcpdf-settings.php:
|
110 |
#, php-format
|
111 |
msgid ""
|
112 |
"It looks like the temp folder (<code>%s</code>) is not writable, check the "
|
@@ -117,15 +128,19 @@ msgstr ""
|
|
117 |
"¡compruebe los permisos para esta carpeta! Sin acceso de escritura a esta "
|
118 |
"carpeta, el plugin no será capaz de enviar facturas por correo electrónico."
|
119 |
|
120 |
-
#: includes/class-wcpdf-settings.php:
|
|
|
|
|
|
|
|
|
121 |
msgid "PDF Template settings"
|
122 |
msgstr "Ajustes de la plantilla PDF"
|
123 |
|
124 |
-
#: includes/class-wcpdf-settings.php:
|
125 |
msgid "Choose a template"
|
126 |
msgstr "Elige una plantilla"
|
127 |
|
128 |
-
#: includes/class-wcpdf-settings.php:
|
129 |
msgid ""
|
130 |
"Want to use your own template? Copy all the files from <code>woocommerce-pdf-"
|
131 |
"invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/"
|
@@ -135,59 +150,59 @@ msgstr ""
|
|
135 |
"<code>woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/</code> a "
|
136 |
"<code>yourtheme/woocommerce/pdf/yourtemplate/</code> y personalícela."
|
137 |
|
138 |
-
#: includes/class-wcpdf-settings.php:
|
139 |
msgid "Paper size"
|
140 |
msgstr "Tamaño del papel"
|
141 |
|
142 |
-
#: includes/class-wcpdf-settings.php:
|
143 |
msgid "A4"
|
144 |
msgstr "A4"
|
145 |
|
146 |
-
#: includes/class-wcpdf-settings.php:
|
147 |
msgid "Letter"
|
148 |
msgstr "Carta"
|
149 |
|
150 |
-
#: includes/class-wcpdf-settings.php:
|
151 |
msgid "Shop header/logo"
|
152 |
msgstr "Logotipo de la tienda"
|
153 |
|
154 |
-
#: includes/class-wcpdf-settings.php:
|
155 |
msgid "Select or upload your invoice header/logo"
|
156 |
msgstr "Selecciona o sube una logotipo para la cabecera de la factura"
|
157 |
|
158 |
-
#: includes/class-wcpdf-settings.php:
|
159 |
msgid "Set image"
|
160 |
msgstr "Añadir imagen"
|
161 |
|
162 |
-
#: includes/class-wcpdf-settings.php:
|
163 |
msgid "Remove image"
|
164 |
msgstr "Eliminar la imagen"
|
165 |
|
166 |
-
#: includes/class-wcpdf-settings.php:
|
167 |
msgid "Shop Name"
|
168 |
msgstr "Nombre de la tienda"
|
169 |
|
170 |
-
#: includes/class-wcpdf-settings.php:
|
171 |
msgid "Shop Address"
|
172 |
msgstr "Dirección de la tienda"
|
173 |
|
174 |
-
#: includes/class-wcpdf-settings.php:
|
175 |
msgid "Footer: terms & conditions, policies, etc."
|
176 |
msgstr "Pie de página: Términos y condiciones, políticas, etc."
|
177 |
|
178 |
-
#: includes/class-wcpdf-settings.php:
|
179 |
msgid "Number to display on invoice"
|
180 |
msgstr "Número a mostrar en la factura"
|
181 |
|
182 |
-
#: includes/class-wcpdf-settings.php:
|
183 |
msgid "WooCommerce order number"
|
184 |
msgstr "Número de pedido de WooCommerce "
|
185 |
|
186 |
-
#: includes/class-wcpdf-settings.php:
|
187 |
msgid "Built-in sequential invoice number"
|
188 |
msgstr "Crear numeración secuencial de factura"
|
189 |
|
190 |
-
#: includes/class-wcpdf-settings.php:
|
191 |
msgid ""
|
192 |
"If you are using the WooCommerce Sequential Order Numbers plugin, select the "
|
193 |
"WooCommerce order number"
|
@@ -195,11 +210,11 @@ msgstr ""
|
|
195 |
"Si está utilizando el plugin WooCommerce Sequential Order Numbers, "
|
196 |
"seleccione el número de pedido de WooCommerce."
|
197 |
|
198 |
-
#: includes/class-wcpdf-settings.php:
|
199 |
msgid "Next invoice number (without prefix/suffix etc.)"
|
200 |
msgstr "Siguiente número de la factura (sin prefijo/sufijo, etc.)"
|
201 |
|
202 |
-
#: includes/class-wcpdf-settings.php:
|
203 |
msgid ""
|
204 |
"This is the number that will be used on the next invoice that is created. By "
|
205 |
"default, numbering starts from the WooCommerce Order Number of the first "
|
@@ -217,57 +232,57 @@ msgstr ""
|
|
217 |
"invoices-packing-slips/faq/\" target=\"_blank\">FAQ</a> para obtener "
|
218 |
"instrucciones sobre cómo formatear el número de la factura."
|
219 |
|
220 |
-
#: includes/class-wcpdf-settings.php:
|
221 |
msgid "Date to display on invoice"
|
222 |
msgstr "Fecha a mostrar en la factura"
|
223 |
|
224 |
-
#: includes/class-wcpdf-settings.php:
|
225 |
msgid "Order date"
|
226 |
msgstr "Fecha del pedido"
|
227 |
|
228 |
-
#: includes/class-wcpdf-settings.php:
|
229 |
msgid "Invoice date"
|
230 |
msgstr "Fecha de la factura"
|
231 |
|
232 |
-
#: includes/class-wcpdf-settings.php:
|
233 |
msgid "Extra template fields"
|
234 |
msgstr "Campos extra de la plantilla"
|
235 |
|
236 |
-
#: includes/class-wcpdf-settings.php:
|
237 |
msgid "Extra field 1"
|
238 |
msgstr "Campo extra 1"
|
239 |
|
240 |
-
#: includes/class-wcpdf-settings.php:
|
241 |
msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
|
242 |
msgstr ""
|
243 |
"Esta es la columna 1 del pie de página en la plantilla <i>Modern (Premium)</"
|
244 |
"i>."
|
245 |
|
246 |
-
#: includes/class-wcpdf-settings.php:
|
247 |
msgid "Extra field 2"
|
248 |
msgstr "Campo extra 2"
|
249 |
|
250 |
-
#: includes/class-wcpdf-settings.php:
|
251 |
msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
|
252 |
msgstr ""
|
253 |
"Esta es la columna 2 del pie de página en la plantilla <i>Modern (Premium)</"
|
254 |
"i>."
|
255 |
|
256 |
-
#: includes/class-wcpdf-settings.php:
|
257 |
msgid "Extra field 3"
|
258 |
msgstr "Campo extra 3"
|
259 |
|
260 |
-
#: includes/class-wcpdf-settings.php:
|
261 |
msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
|
262 |
msgstr ""
|
263 |
"Esta es la columna 3 del pie de página en la plantilla <i>Modern (Premium)</"
|
264 |
"i>."
|
265 |
|
266 |
-
#: includes/class-wcpdf-settings.php:
|
267 |
msgid "Image resolution"
|
268 |
msgstr "Resolución de la imagen"
|
269 |
|
270 |
-
#: includes/class-wcpdf-settings.php:
|
271 |
msgid ""
|
272 |
"These are used for the (optional) footer columns in the <em>Modern "
|
273 |
"(Premium)</em> template, but can also be used for other elements in your "
|
@@ -277,30 +292,34 @@ msgstr ""
|
|
277 |
"plantilla <em>Modern (Premium)</em>, pero también se pueden emplear en la "
|
278 |
"plantilla personalizada:"
|
279 |
|
280 |
-
#: includes/class-wcpdf-writepanels.php:
|
|
|
|
|
|
|
|
|
281 |
msgid "Create PDF"
|
282 |
msgstr "Crear PDF"
|
283 |
|
284 |
-
#: includes/class-wcpdf-writepanels.php:
|
285 |
msgid "Download invoice (PDF)"
|
286 |
msgstr "Descargar factura (PDF)"
|
287 |
|
288 |
-
#: includes/class-wcpdf-writepanels.php:
|
289 |
msgid "PDF invoice"
|
290 |
msgstr "Factura PDF "
|
291 |
|
292 |
-
#: includes/class-wcpdf-writepanels.php:
|
293 |
msgid "PDF Packing Slip"
|
294 |
msgstr "Albarán de entrega PDF"
|
295 |
|
296 |
-
#: includes/class-wcpdf-writepanels.php:
|
297 |
-
#: includes/class-wcpdf-writepanels.php:
|
298 |
msgid "PDF Packing Slips"
|
299 |
msgstr "Albaranes de entrega PDF"
|
300 |
|
301 |
-
#: includes/class-wcpdf-writepanels.php:
|
302 |
-
msgid "PDF Invoice Number"
|
303 |
-
msgstr "Nº de la factura PDF"
|
304 |
|
305 |
#: templates/pdf/Simple/html-document-wrapper.php:6
|
306 |
#: templates/pdf/Simple/invoice.php:9 templates/pdf/Simple/invoice.php:21
|
@@ -324,7 +343,7 @@ msgstr "Fecha del pedido:"
|
|
324 |
|
325 |
#: templates/pdf/Simple/invoice.php:46
|
326 |
msgid "Invoice Number:"
|
327 |
-
msgstr "Nº
|
328 |
|
329 |
#: templates/pdf/Simple/invoice.php:49
|
330 |
#: templates/pdf/Simple/packing-slip.php:32
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
|
4 |
+
"POT-Creation-Date: 2014-02-21 13:53+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-02-23 13:34+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: WP Overnight <support@wpovernight.com>\n"
|
8 |
"Language: es_ES\n"
|
16 |
"X-Poedit-KeywordsList: __;_e;_x;_n:1,2\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
+
#: includes/class-wcpdf-export.php:137 includes/class-wcpdf-export.php:142
|
20 |
+
#: includes/class-wcpdf-export.php:147 includes/class-wcpdf-export.php:158
|
21 |
+
#: includes/class-wcpdf-export.php:171
|
22 |
msgid "You do not have sufficient permissions to access this page."
|
23 |
msgstr "No tiene suficientes permitos para acceder a esta página."
|
24 |
|
25 |
+
#: includes/class-wcpdf-export.php:192 includes/class-wcpdf-export.php:263
|
26 |
msgid "invoice"
|
27 |
msgid_plural "invoices"
|
28 |
msgstr[0] "factura"
|
29 |
msgstr[1] "facturas"
|
30 |
|
31 |
+
#: includes/class-wcpdf-export.php:194
|
32 |
msgid "packing-slip"
|
33 |
msgid_plural "packing-slips"
|
34 |
msgstr[0] "albarán de entrega"
|
35 |
msgstr[1] "albaranes de entrega"
|
36 |
|
37 |
#: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
|
38 |
+
#: includes/class-wcpdf-writepanels.php:172
|
39 |
+
#: includes/class-wcpdf-writepanels.php:173
|
40 |
msgid "PDF Invoices"
|
41 |
msgstr "Facturas PDF"
|
42 |
|
56 |
msgid "Template"
|
57 |
msgstr "Plantilla"
|
58 |
|
59 |
+
#: includes/class-wcpdf-settings.php:96
|
60 |
+
#, php-format
|
61 |
+
msgid ""
|
62 |
+
"Your WP Memory Limit is currently set to %s - We recommend setting it to at "
|
63 |
+
"least 64MB (128MB for optimal performance). See: <a href=\"%s\">Increasing "
|
64 |
+
"memory allocated to PHP</a>"
|
65 |
+
msgstr ""
|
66 |
+
"Actualmente el límite de memoria de WP está fijado en %s - Se recomienda "
|
67 |
+
"aumentarlo al menos a 64MB (128 MB para un uso óptimo). Ver: <a href=\"%s"
|
68 |
+
"\">Ampliar memoria dedicada a PHP</a>"
|
69 |
+
|
70 |
+
#: includes/class-wcpdf-settings.php:106
|
71 |
#, php-format
|
72 |
msgid ""
|
73 |
"Looking for more advanced templates? Check out the Premium PDF Invoice & "
|
76 |
"¿Buscando plantillas más avanzadas? Echa un vistazo a las plantillas premium "
|
77 |
"de PDF Invoice & Packing Slips en %s."
|
78 |
|
79 |
+
#: includes/class-wcpdf-settings.php:107
|
80 |
#, php-format
|
81 |
msgid "For custom templates, contact us at %s."
|
82 |
msgstr "Para plantillas personalizadas, contacte con nosotros en %s."
|
83 |
|
84 |
+
#: includes/class-wcpdf-settings.php:161
|
85 |
msgid "General settings"
|
86 |
msgstr "Ajustes generales"
|
87 |
|
88 |
+
#: includes/class-wcpdf-settings.php:168
|
89 |
msgid "How do you want to view the PDF?"
|
90 |
msgstr "¿Cómo desea visualizar el PDF?"
|
91 |
|
92 |
+
#: includes/class-wcpdf-settings.php:176
|
93 |
msgid "Download the PDF"
|
94 |
msgstr "Descargándolo."
|
95 |
|
96 |
+
#: includes/class-wcpdf-settings.php:177
|
97 |
msgid "Open the PDF in a new browser tab/window"
|
98 |
msgstr "Abriéndolo en una nueva pestaña/ventana del navegador."
|
99 |
|
100 |
+
#: includes/class-wcpdf-settings.php:187
|
101 |
msgid "Attach invoice to:"
|
102 |
msgstr "Adjuntar factura a:"
|
103 |
|
104 |
+
#: includes/class-wcpdf-settings.php:195
|
105 |
msgid "Admin New Order email"
|
106 |
msgstr "Correo electrónico del administrador al crear un nuevo pedido."
|
107 |
|
108 |
+
#: includes/class-wcpdf-settings.php:196
|
109 |
msgid "Customer Processing Order email"
|
110 |
msgstr "Correo electrónico del cliente al procesar el pedido."
|
111 |
|
112 |
+
#: includes/class-wcpdf-settings.php:197
|
113 |
msgid "Customer Completed Order email"
|
114 |
msgstr "Correo electrónico del cliente al completar el pedido."
|
115 |
|
116 |
+
#: includes/class-wcpdf-settings.php:198
|
117 |
msgid "Customer Invoice email"
|
118 |
msgstr "Correo electrónico de la factura del cliente."
|
119 |
|
120 |
+
#: includes/class-wcpdf-settings.php:200
|
121 |
#, php-format
|
122 |
msgid ""
|
123 |
"It looks like the temp folder (<code>%s</code>) is not writable, check the "
|
128 |
"¡compruebe los permisos para esta carpeta! Sin acceso de escritura a esta "
|
129 |
"carpeta, el plugin no será capaz de enviar facturas por correo electrónico."
|
130 |
|
131 |
+
#: includes/class-wcpdf-settings.php:206
|
132 |
+
msgid "Enable invoice number column in the orders list"
|
133 |
+
msgstr "Activar la columna de número de factura en pedidos"
|
134 |
+
|
135 |
+
#: includes/class-wcpdf-settings.php:245
|
136 |
msgid "PDF Template settings"
|
137 |
msgstr "Ajustes de la plantilla PDF"
|
138 |
|
139 |
+
#: includes/class-wcpdf-settings.php:252
|
140 |
msgid "Choose a template"
|
141 |
msgstr "Elige una plantilla"
|
142 |
|
143 |
+
#: includes/class-wcpdf-settings.php:260
|
144 |
msgid ""
|
145 |
"Want to use your own template? Copy all the files from <code>woocommerce-pdf-"
|
146 |
"invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/"
|
150 |
"<code>woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/</code> a "
|
151 |
"<code>yourtheme/woocommerce/pdf/yourtemplate/</code> y personalícela."
|
152 |
|
153 |
+
#: includes/class-wcpdf-settings.php:266
|
154 |
msgid "Paper size"
|
155 |
msgstr "Tamaño del papel"
|
156 |
|
157 |
+
#: includes/class-wcpdf-settings.php:274
|
158 |
msgid "A4"
|
159 |
msgstr "A4"
|
160 |
|
161 |
+
#: includes/class-wcpdf-settings.php:275
|
162 |
msgid "Letter"
|
163 |
msgstr "Carta"
|
164 |
|
165 |
+
#: includes/class-wcpdf-settings.php:282
|
166 |
msgid "Shop header/logo"
|
167 |
msgstr "Logotipo de la tienda"
|
168 |
|
169 |
+
#: includes/class-wcpdf-settings.php:289
|
170 |
msgid "Select or upload your invoice header/logo"
|
171 |
msgstr "Selecciona o sube una logotipo para la cabecera de la factura"
|
172 |
|
173 |
+
#: includes/class-wcpdf-settings.php:290
|
174 |
msgid "Set image"
|
175 |
msgstr "Añadir imagen"
|
176 |
|
177 |
+
#: includes/class-wcpdf-settings.php:291
|
178 |
msgid "Remove image"
|
179 |
msgstr "Eliminar la imagen"
|
180 |
|
181 |
+
#: includes/class-wcpdf-settings.php:298
|
182 |
msgid "Shop Name"
|
183 |
msgstr "Nombre de la tienda"
|
184 |
|
185 |
+
#: includes/class-wcpdf-settings.php:311
|
186 |
msgid "Shop Address"
|
187 |
msgstr "Dirección de la tienda"
|
188 |
|
189 |
+
#: includes/class-wcpdf-settings.php:343
|
190 |
msgid "Footer: terms & conditions, policies, etc."
|
191 |
msgstr "Pie de página: Términos y condiciones, políticas, etc."
|
192 |
|
193 |
+
#: includes/class-wcpdf-settings.php:358
|
194 |
msgid "Number to display on invoice"
|
195 |
msgstr "Número a mostrar en la factura"
|
196 |
|
197 |
+
#: includes/class-wcpdf-settings.php:366
|
198 |
msgid "WooCommerce order number"
|
199 |
msgstr "Número de pedido de WooCommerce "
|
200 |
|
201 |
+
#: includes/class-wcpdf-settings.php:367
|
202 |
msgid "Built-in sequential invoice number"
|
203 |
msgstr "Crear numeración secuencial de factura"
|
204 |
|
205 |
+
#: includes/class-wcpdf-settings.php:369
|
206 |
msgid ""
|
207 |
"If you are using the WooCommerce Sequential Order Numbers plugin, select the "
|
208 |
"WooCommerce order number"
|
210 |
"Si está utilizando el plugin WooCommerce Sequential Order Numbers, "
|
211 |
"seleccione el número de pedido de WooCommerce."
|
212 |
|
213 |
+
#: includes/class-wcpdf-settings.php:375
|
214 |
msgid "Next invoice number (without prefix/suffix etc.)"
|
215 |
msgstr "Siguiente número de la factura (sin prefijo/sufijo, etc.)"
|
216 |
|
217 |
+
#: includes/class-wcpdf-settings.php:383
|
218 |
msgid ""
|
219 |
"This is the number that will be used on the next invoice that is created. By "
|
220 |
"default, numbering starts from the WooCommerce Order Number of the first "
|
232 |
"invoices-packing-slips/faq/\" target=\"_blank\">FAQ</a> para obtener "
|
233 |
"instrucciones sobre cómo formatear el número de la factura."
|
234 |
|
235 |
+
#: includes/class-wcpdf-settings.php:390
|
236 |
msgid "Date to display on invoice"
|
237 |
msgstr "Fecha a mostrar en la factura"
|
238 |
|
239 |
+
#: includes/class-wcpdf-settings.php:398
|
240 |
msgid "Order date"
|
241 |
msgstr "Fecha del pedido"
|
242 |
|
243 |
+
#: includes/class-wcpdf-settings.php:399
|
244 |
msgid "Invoice date"
|
245 |
msgstr "Fecha de la factura"
|
246 |
|
247 |
+
#: includes/class-wcpdf-settings.php:407
|
248 |
msgid "Extra template fields"
|
249 |
msgstr "Campos extra de la plantilla"
|
250 |
|
251 |
+
#: includes/class-wcpdf-settings.php:414
|
252 |
msgid "Extra field 1"
|
253 |
msgstr "Campo extra 1"
|
254 |
|
255 |
+
#: includes/class-wcpdf-settings.php:423
|
256 |
msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
|
257 |
msgstr ""
|
258 |
"Esta es la columna 1 del pie de página en la plantilla <i>Modern (Premium)</"
|
259 |
"i>."
|
260 |
|
261 |
+
#: includes/class-wcpdf-settings.php:429
|
262 |
msgid "Extra field 2"
|
263 |
msgstr "Campo extra 2"
|
264 |
|
265 |
+
#: includes/class-wcpdf-settings.php:438
|
266 |
msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
|
267 |
msgstr ""
|
268 |
"Esta es la columna 2 del pie de página en la plantilla <i>Modern (Premium)</"
|
269 |
"i>."
|
270 |
|
271 |
+
#: includes/class-wcpdf-settings.php:444
|
272 |
msgid "Extra field 3"
|
273 |
msgstr "Campo extra 3"
|
274 |
|
275 |
+
#: includes/class-wcpdf-settings.php:453
|
276 |
msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
|
277 |
msgstr ""
|
278 |
"Esta es la columna 3 del pie de página en la plantilla <i>Modern (Premium)</"
|
279 |
"i>."
|
280 |
|
281 |
+
#: includes/class-wcpdf-settings.php:710
|
282 |
msgid "Image resolution"
|
283 |
msgstr "Resolución de la imagen"
|
284 |
|
285 |
+
#: includes/class-wcpdf-settings.php:740
|
286 |
msgid ""
|
287 |
"These are used for the (optional) footer columns in the <em>Modern "
|
288 |
"(Premium)</em> template, but can also be used for other elements in your "
|
292 |
"plantilla <em>Modern (Premium)</em>, pero también se pueden emplear en la "
|
293 |
"plantilla personalizada:"
|
294 |
|
295 |
+
#: includes/class-wcpdf-writepanels.php:102
|
296 |
+
msgid "Invoice Number"
|
297 |
+
msgstr "Nº de la factura"
|
298 |
+
|
299 |
+
#: includes/class-wcpdf-writepanels.php:133
|
300 |
msgid "Create PDF"
|
301 |
msgstr "Crear PDF"
|
302 |
|
303 |
+
#: includes/class-wcpdf-writepanels.php:142
|
304 |
msgid "Download invoice (PDF)"
|
305 |
msgstr "Descargar factura (PDF)"
|
306 |
|
307 |
+
#: includes/class-wcpdf-writepanels.php:156
|
308 |
msgid "PDF invoice"
|
309 |
msgstr "Factura PDF "
|
310 |
|
311 |
+
#: includes/class-wcpdf-writepanels.php:157
|
312 |
msgid "PDF Packing Slip"
|
313 |
msgstr "Albarán de entrega PDF"
|
314 |
|
315 |
+
#: includes/class-wcpdf-writepanels.php:174
|
316 |
+
#: includes/class-wcpdf-writepanels.php:175
|
317 |
msgid "PDF Packing Slips"
|
318 |
msgstr "Albaranes de entrega PDF"
|
319 |
|
320 |
+
#: includes/class-wcpdf-writepanels.php:186
|
321 |
+
msgid "PDF Invoice Number (unformatted!)"
|
322 |
+
msgstr "Nº de la factura PDF (¡sin formato!)"
|
323 |
|
324 |
#: templates/pdf/Simple/html-document-wrapper.php:6
|
325 |
#: templates/pdf/Simple/invoice.php:9 templates/pdf/Simple/invoice.php:21
|
343 |
|
344 |
#: templates/pdf/Simple/invoice.php:46
|
345 |
msgid "Invoice Number:"
|
346 |
+
msgstr "Nº de la factura:"
|
347 |
|
348 |
#: templates/pdf/Simple/invoice.php:49
|
349 |
#: templates/pdf/Simple/packing-slip.php:32
|
languages/wpo_wcpdf-nl_NL.mo
CHANGED
Binary file
|
languages/wpo_wcpdf-nl_NL.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2014-02-
|
6 |
-
"PO-Revision-Date: 2014-02-
|
7 |
"Last-Translator: Ewout Fernhout <chocolade@extrapuur.nl>\n"
|
8 |
"Language-Team: WP Overnight <support@wpovernight.com>\n"
|
9 |
"Language: nl_NL\n"
|
@@ -19,27 +19,27 @@ msgstr ""
|
|
19 |
"X-Generator: Poedit 1.6.4\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
|
22 |
-
#: includes/class-wcpdf-export.php:
|
23 |
-
#: includes/class-wcpdf-export.php:
|
24 |
-
#: includes/class-wcpdf-export.php:
|
25 |
msgid "You do not have sufficient permissions to access this page."
|
26 |
msgstr "Je hebt onvoldoende rechten voor deze pagina."
|
27 |
|
28 |
-
#: includes/class-wcpdf-export.php:
|
29 |
msgid "invoice"
|
30 |
msgid_plural "invoices"
|
31 |
msgstr[0] "factuur"
|
32 |
msgstr[1] "facturen"
|
33 |
|
34 |
-
#: includes/class-wcpdf-export.php:
|
35 |
msgid "packing-slip"
|
36 |
msgid_plural "packing-slips"
|
37 |
msgstr[0] "pakbon"
|
38 |
msgstr[1] "pakbonnen"
|
39 |
|
40 |
#: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
|
41 |
-
#: includes/class-wcpdf-writepanels.php:172
|
42 |
#: includes/class-wcpdf-writepanels.php:173
|
|
|
43 |
msgid "PDF Invoices"
|
44 |
msgstr "PDF facturen"
|
45 |
|
@@ -299,26 +299,26 @@ msgstr "Factuurnummer"
|
|
299 |
msgid "Create PDF"
|
300 |
msgstr "Maak PDF"
|
301 |
|
302 |
-
#: includes/class-wcpdf-writepanels.php:
|
303 |
msgid "Download invoice (PDF)"
|
304 |
msgstr "Download factuur (PDF)"
|
305 |
|
306 |
-
#: includes/class-wcpdf-writepanels.php:
|
307 |
msgid "PDF invoice"
|
308 |
msgstr "PDF factuur"
|
309 |
|
310 |
-
#: includes/class-wcpdf-writepanels.php:
|
311 |
msgid "PDF Packing Slip"
|
312 |
msgstr "PDF Pakbon"
|
313 |
|
314 |
-
#: includes/class-wcpdf-writepanels.php:174
|
315 |
#: includes/class-wcpdf-writepanels.php:175
|
|
|
316 |
msgid "PDF Packing Slips"
|
317 |
msgstr "PDF Pakbonnen"
|
318 |
|
319 |
-
#: includes/class-wcpdf-writepanels.php:
|
320 |
-
msgid "PDF Invoice Number"
|
321 |
-
msgstr "PDF Factuurnummer"
|
322 |
|
323 |
#: templates/pdf/Simple/html-document-wrapper.php:6
|
324 |
#: templates/pdf/Simple/invoice.php:9 templates/pdf/Simple/invoice.php:21
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-02-24 11:58+0100\n"
|
6 |
+
"PO-Revision-Date: 2014-02-24 11:59+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.4\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
|
22 |
+
#: includes/class-wcpdf-export.php:142 includes/class-wcpdf-export.php:147
|
23 |
+
#: includes/class-wcpdf-export.php:152 includes/class-wcpdf-export.php:163
|
24 |
+
#: includes/class-wcpdf-export.php:176
|
25 |
msgid "You do not have sufficient permissions to access this page."
|
26 |
msgstr "Je hebt onvoldoende rechten voor deze pagina."
|
27 |
|
28 |
+
#: includes/class-wcpdf-export.php:197 includes/class-wcpdf-export.php:268
|
29 |
msgid "invoice"
|
30 |
msgid_plural "invoices"
|
31 |
msgstr[0] "factuur"
|
32 |
msgstr[1] "facturen"
|
33 |
|
34 |
+
#: includes/class-wcpdf-export.php:199
|
35 |
msgid "packing-slip"
|
36 |
msgid_plural "packing-slips"
|
37 |
msgstr[0] "pakbon"
|
38 |
msgstr[1] "pakbonnen"
|
39 |
|
40 |
#: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
|
|
|
41 |
#: includes/class-wcpdf-writepanels.php:173
|
42 |
+
#: includes/class-wcpdf-writepanels.php:174
|
43 |
msgid "PDF Invoices"
|
44 |
msgstr "PDF facturen"
|
45 |
|
299 |
msgid "Create PDF"
|
300 |
msgstr "Maak PDF"
|
301 |
|
302 |
+
#: includes/class-wcpdf-writepanels.php:143
|
303 |
msgid "Download invoice (PDF)"
|
304 |
msgstr "Download factuur (PDF)"
|
305 |
|
306 |
+
#: includes/class-wcpdf-writepanels.php:157
|
307 |
msgid "PDF invoice"
|
308 |
msgstr "PDF factuur"
|
309 |
|
310 |
+
#: includes/class-wcpdf-writepanels.php:158
|
311 |
msgid "PDF Packing Slip"
|
312 |
msgstr "PDF Pakbon"
|
313 |
|
|
|
314 |
#: includes/class-wcpdf-writepanels.php:175
|
315 |
+
#: includes/class-wcpdf-writepanels.php:176
|
316 |
msgid "PDF Packing Slips"
|
317 |
msgstr "PDF Pakbonnen"
|
318 |
|
319 |
+
#: includes/class-wcpdf-writepanels.php:187
|
320 |
+
msgid "PDF Invoice Number (unformatted!)"
|
321 |
+
msgstr "PDF Factuurnummer (zonder formatting!)"
|
322 |
|
323 |
#: templates/pdf/Simple/html-document-wrapper.php:6
|
324 |
#: templates/pdf/Simple/invoice.php:9 templates/pdf/Simple/invoice.php:21
|
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.1 and WooCommerce 2.1
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -84,7 +84,57 @@ function wpo_wcpdf_invoice_number( $invoice_number, $order_number, $order_id, $o
|
|
84 |
$invoice_number = $prefix . $order_year . sprintf('%0'.$padding.'d', $invoice_number) . $suffix ;
|
85 |
return $invoice_number;
|
86 |
}
|
87 |
-
`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
|
89 |
= Fatal error: Allowed memory size of ######## bytes exhausted (tried to allocate ### bytes) =
|
90 |
|
@@ -99,6 +149,10 @@ This usually only happens on batch actions. PDF creation is a memory intensive j
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
|
|
102 |
= 1.2.5 =
|
103 |
* Feature: Optional Invoice Number column for the orders listing
|
104 |
* Feature: Better support for international characters
|
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.1 and WooCommerce 2.1
|
6 |
+
Stable tag: 1.2.6
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
84 |
$invoice_number = $prefix . $order_year . sprintf('%0'.$padding.'d', $invoice_number) . $suffix ;
|
85 |
return $invoice_number;
|
86 |
}
|
87 |
+
`
|
88 |
+
|
89 |
+
= How do can I modify the pdf filename? =
|
90 |
+
|
91 |
+
You can do this via a filter in your theme's `functions.php` (Some themes have a "custom functions" area in the settings).
|
92 |
+
|
93 |
+
For the export filename (from the woocommerce admin or the my account page):
|
94 |
+
|
95 |
+
`
|
96 |
+
add_filter( 'wpo_wcpdf_bulk_filename', 'my_pdf_bulk_filename', 10, 4 );
|
97 |
+
function my_pdf_bulk_filename( $filename, $order_ids, $template_name, $template_type ) {
|
98 |
+
global $wpo_wcpdf;
|
99 |
+
if (count($order_ids) == 1) {
|
100 |
+
// single
|
101 |
+
$invoice_number = $wpo_wcpdf->get_invoice_number();
|
102 |
+
$filename = 'myshopname_' . $template_name . '-' . $invoice_number . '.pdf';
|
103 |
+
} else {
|
104 |
+
// multiple invoices/packing slips export
|
105 |
+
// create your own rules/ be creative!
|
106 |
+
}
|
107 |
+
|
108 |
+
return $filename;
|
109 |
+
}
|
110 |
+
`
|
111 |
+
|
112 |
+
For the email attachment filename:
|
113 |
+
`
|
114 |
+
add_filter( 'wpo_wcpdf_attachment_filename', 'my_pdf_attachment_filename', 10, 3 );
|
115 |
+
function my_pdf_attachment_filename( $filename, $display_number, $order_id ) {
|
116 |
+
//$display_number is either the order number or invoice number, according to your settings
|
117 |
+
$filename = 'myshopname_invoice-' . $display_number . '.pdf';
|
118 |
+
|
119 |
+
return $filename;
|
120 |
+
}
|
121 |
+
`
|
122 |
+
|
123 |
+
= Why does the download link not display on the My Account page? =
|
124 |
+
To prevent customers from prematurely creating invoices, the default setting is that a customer can only see/download an invoice from an order that already has an invoice - either created automatically for the email attachment, or manually by the shop manager. This means that ultimately the shop mananger determines whether an invoice is available to the customer. If you want to make the invoice available to everyone you can either of the following:
|
125 |
+
|
126 |
+
1. Change the email setting to attach invoices to processing and/or new order emails as well
|
127 |
+
2. Add a filter to your themes functions.php for greater control:
|
128 |
+
|
129 |
+
`
|
130 |
+
add_filter( 'wpo_wcpdf_myaccount_allowed_order_statuses', 'wpo_wcpdf_myaccount_allowed_order_statuses' );
|
131 |
+
function wpo_wcpdf_myaccount_allowed_order_statuses( $allowed_statuses ) {
|
132 |
+
// Possible statuses : pending, failed, on-hold, processing, completed, refunded, cancelled
|
133 |
+
$allowed_statuses = array ( 'processing', 'completed' );
|
134 |
+
|
135 |
+
return $allowed_statuses;
|
136 |
+
}
|
137 |
+
`
|
138 |
|
139 |
= Fatal error: Allowed memory size of ######## bytes exhausted (tried to allocate ### bytes) =
|
140 |
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
= 1.2.6 =
|
153 |
+
* Tweak: Spanish translation update (thanks prepu!)
|
154 |
+
* Fix: More advanced checks to determine if a customer can download the invoice (including a status filter)
|
155 |
+
|
156 |
= 1.2.5 =
|
157 |
* Feature: Optional Invoice Number column for the orders listing
|
158 |
* Feature: Better support for international characters
|
templates/pdf/Simple/invoice.php
CHANGED
@@ -93,7 +93,7 @@
|
|
93 |
<tr>
|
94 |
<td class="no-borders"> </td>
|
95 |
<th class="description"><?php echo $total['label']; ?></th>
|
96 |
-
<td class="price"
|
97 |
</tr>
|
98 |
<?php endforeach; ?>
|
99 |
</tfoot>
|
93 |
<tr>
|
94 |
<td class="no-borders"> </td>
|
95 |
<th class="description"><?php echo $total['label']; ?></th>
|
96 |
+
<td class="price"><?php echo $total['value']; ?></td>
|
97 |
</tr>
|
98 |
<?php endforeach; ?>
|
99 |
</tfoot>
|
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.2.
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|
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.2.6
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|