Version Description
- Feature: Totals can now be called with simpler template functions
- Feature: Italian translations - thanks max66max!
- Tweak: improved memory performance
Download this release
Release Info
Developer | pomegranate |
Plugin | WooCommerce PDF Invoices & Packing Slips |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- includes/class-wcpdf-export.php +13 -1
- includes/class-wcpdf-settings.php +4 -2
- languages/wpo_wcpdf-it_IT.mo +0 -0
- languages/wpo_wcpdf-it_IT.po +308 -0
- languages/wpo_wcpdf.pot +3 -1
- readme.txt +9 -4
- woocommerce-pdf-invoices-packingslips.php +24 -7
includes/class-wcpdf-export.php
CHANGED
@@ -52,11 +52,20 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
|
|
52 |
$output_html[$order_id] = $this->get_template($template);
|
53 |
}
|
54 |
|
|
|
|
|
|
|
55 |
$page_break = "\n<div style=\"page-break-before: always;\"></div>\n";
|
56 |
$this->output_body = implode($page_break, $output_html);
|
57 |
-
|
|
|
|
|
|
|
58 |
$template_wrapper = $this->template_path . '/html-document-wrapper.php';
|
59 |
$complete_pdf = $this->get_template($template_wrapper);
|
|
|
|
|
|
|
60 |
|
61 |
// clean up special characters
|
62 |
$complete_pdf = utf8_decode(mb_convert_encoding($complete_pdf, 'HTML-ENTITIES', 'UTF-8'));
|
@@ -69,6 +78,9 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
|
|
69 |
$dompdf->set_paper($this->template_settings['paper_size'], 'portrait');
|
70 |
$dompdf->render();
|
71 |
|
|
|
|
|
|
|
72 |
return $dompdf;
|
73 |
}
|
74 |
|
52 |
$output_html[$order_id] = $this->get_template($template);
|
53 |
}
|
54 |
|
55 |
+
// Try to clean up a bit of memory
|
56 |
+
unset($this->order);
|
57 |
+
|
58 |
$page_break = "\n<div style=\"page-break-before: always;\"></div>\n";
|
59 |
$this->output_body = implode($page_break, $output_html);
|
60 |
+
|
61 |
+
// Try to clean up a bit of memory
|
62 |
+
unset($output_html);
|
63 |
+
|
64 |
$template_wrapper = $this->template_path . '/html-document-wrapper.php';
|
65 |
$complete_pdf = $this->get_template($template_wrapper);
|
66 |
+
|
67 |
+
// Try to clean up a bit of memory
|
68 |
+
unset($this->output_body);
|
69 |
|
70 |
// clean up special characters
|
71 |
$complete_pdf = utf8_decode(mb_convert_encoding($complete_pdf, 'HTML-ENTITIES', 'UTF-8'));
|
78 |
$dompdf->set_paper($this->template_settings['paper_size'], 'portrait');
|
79 |
$dompdf->render();
|
80 |
|
81 |
+
// Try to clean up a bit of memory
|
82 |
+
unset($complete_pdf);
|
83 |
+
|
84 |
return $dompdf;
|
85 |
}
|
86 |
|
includes/class-wcpdf-settings.php
CHANGED
@@ -90,11 +90,13 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Settings' ) ) {
|
|
90 |
</h2>
|
91 |
|
92 |
<?php if (!class_exists('WooCommerce_PDF_IPS_Templates')) {
|
93 |
-
$
|
|
|
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'), $
|
|
|
98 |
</div>
|
99 |
|
100 |
<?php } ?>
|
90 |
</h2>
|
91 |
|
92 |
<?php if (!class_exists('WooCommerce_PDF_IPS_Templates')) {
|
93 |
+
$template_link = '<a href="https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/" target="_blank">wpovernight.com</a>';
|
94 |
+
$email_link = '<a href="mailto:support@wpovernight.com">support@wpovernight.com</a>'
|
95 |
?>
|
96 |
|
97 |
<div class="wcpdf-pro-templates" style="border: 1px solid #ccc; border-radius: 5px; padding: 10px; margin-top: 15px; background-color: #eee;">
|
98 |
+
<?php printf( __("Looking for more advanced templates? Check out the Premium PDF Invoice & Packing Slips templates at %s.", 'wpo_wcpdf'), $template_link );?> <br />
|
99 |
+
<?php printf( __("For custom templates, contact us at %s.", 'wpo_wcpdf'), $email_link );?>
|
100 |
</div>
|
101 |
|
102 |
<?php } ?>
|
languages/wpo_wcpdf-it_IT.mo
ADDED
Binary file
|
languages/wpo_wcpdf-it_IT.po
ADDED
@@ -0,0 +1,308 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-24 12:42+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 |
+
"WooCommerce PDF Invoices & Packing Slips richiede% sWooCommerce% s per "
|
26 |
+
"essere installato e attivato!"
|
27 |
+
|
28 |
+
#: woocommerce-pdf-invoices-packingslips.php:183
|
29 |
+
#: woocommerce-pdf-invoices-packingslips.php:219
|
30 |
+
msgid "N/A"
|
31 |
+
msgstr "N/A"
|
32 |
+
|
33 |
+
#: woocommerce-pdf-invoices-packingslips.php:320
|
34 |
+
msgid "Subtotal"
|
35 |
+
msgstr "Totale parziale"
|
36 |
+
|
37 |
+
#: woocommerce-pdf-invoices-packingslips.php:338
|
38 |
+
msgid "Shipping"
|
39 |
+
msgstr "Spedizione"
|
40 |
+
|
41 |
+
#: woocommerce-pdf-invoices-packingslips.php:353
|
42 |
+
msgid "Discount"
|
43 |
+
msgstr "Sconto"
|
44 |
+
|
45 |
+
#: woocommerce-pdf-invoices-packingslips.php:418
|
46 |
+
msgid "Total ex. VAT"
|
47 |
+
msgstr "Totale (IVA esclusa)"
|
48 |
+
|
49 |
+
#: woocommerce-pdf-invoices-packingslips.php:421
|
50 |
+
msgid "Total"
|
51 |
+
msgstr "Totale"
|
52 |
+
|
53 |
+
#: includes/class-wcpdf-export.php:98 includes/class-wcpdf-export.php:103
|
54 |
+
#: includes/class-wcpdf-export.php:108
|
55 |
+
msgid "You do not have sufficient permissions to access this page."
|
56 |
+
msgstr ""
|
57 |
+
"Non si dispone di autorizzazioni sufficienti per accedere a questa pagina."
|
58 |
+
|
59 |
+
#: includes/class-wcpdf-export.php:115 includes/class-wcpdf-export.php:175
|
60 |
+
msgid "invoice"
|
61 |
+
msgid_plural "invoices"
|
62 |
+
msgstr[0] "fattura"
|
63 |
+
msgstr[1] "fatture"
|
64 |
+
|
65 |
+
#: includes/class-wcpdf-export.php:117
|
66 |
+
msgid "packing-slip"
|
67 |
+
msgid_plural "packing-slips"
|
68 |
+
msgstr[0] "DDT"
|
69 |
+
msgstr[1] "DDT"
|
70 |
+
|
71 |
+
#: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
|
72 |
+
#: includes/class-wcpdf-writepanels.php:115
|
73 |
+
#: includes/class-wcpdf-writepanels.php:116
|
74 |
+
msgid "PDF Invoices"
|
75 |
+
msgstr "PDF Fatture"
|
76 |
+
|
77 |
+
#: includes/class-wcpdf-settings.php:60
|
78 |
+
msgid "Settings"
|
79 |
+
msgstr "Impostazioni"
|
80 |
+
|
81 |
+
#: includes/class-wcpdf-settings.php:75
|
82 |
+
msgid "..."
|
83 |
+
msgstr "..."
|
84 |
+
|
85 |
+
#: includes/class-wcpdf-settings.php:86
|
86 |
+
msgid "WooCommerce PDF Invoices"
|
87 |
+
msgstr "WooCommerce PDF Fatture"
|
88 |
+
|
89 |
+
#: includes/class-wcpdf-settings.php:88
|
90 |
+
msgid "General"
|
91 |
+
msgstr "Generale"
|
92 |
+
|
93 |
+
#: includes/class-wcpdf-settings.php:89
|
94 |
+
msgid "Template"
|
95 |
+
msgstr "Modello"
|
96 |
+
|
97 |
+
#: includes/class-wcpdf-settings.php:97
|
98 |
+
#, php-format
|
99 |
+
msgid ""
|
100 |
+
"Looking for more advanced templates? Check out the Premium PDF Invoice & "
|
101 |
+
"Packing Slips templates at %s."
|
102 |
+
msgstr ""
|
103 |
+
"Looking for more advanced templates? Check out the Premium PDF Invoice & "
|
104 |
+
"Packing Slips templates at %s."
|
105 |
+
|
106 |
+
#: includes/class-wcpdf-settings.php:151
|
107 |
+
msgid "General settings"
|
108 |
+
msgstr "Impostazioni generali"
|
109 |
+
|
110 |
+
#: includes/class-wcpdf-settings.php:158
|
111 |
+
msgid "How do you want to view the PDF?"
|
112 |
+
msgstr "Come si desidera visualizzare il file PDF?"
|
113 |
+
|
114 |
+
#: includes/class-wcpdf-settings.php:166
|
115 |
+
msgid "Download the PDF"
|
116 |
+
msgstr "Scarica il PDF"
|
117 |
+
|
118 |
+
#: includes/class-wcpdf-settings.php:167
|
119 |
+
msgid "Open the PDF in a new browser tab/window"
|
120 |
+
msgstr "Aprire il file PDF in una nuova scheda / finestra del browser"
|
121 |
+
|
122 |
+
#: includes/class-wcpdf-settings.php:177
|
123 |
+
msgid "Email invoice (attach to order confirmation or invoice email)"
|
124 |
+
msgstr "Email Fattura (allegare alla conferma dell'ordine o e-mail fattura)"
|
125 |
+
|
126 |
+
#: includes/class-wcpdf-settings.php:184
|
127 |
+
#, php-format
|
128 |
+
msgid ""
|
129 |
+
"It looks like the temp folder (<code>%s</code>) is not writable, check the "
|
130 |
+
"permissions for this folder! Without having write access to this folder, the "
|
131 |
+
"plugin will not be able to email invoices."
|
132 |
+
msgstr ""
|
133 |
+
"Sembra che la cartella temp (<code>% s </ code>) non è scrivibile, "
|
134 |
+
"controllare le autorizzazioni per questa cartella! Senza avere accesso in "
|
135 |
+
"scrittura a questa cartella, il plugin non sarà in grado di fatture email."
|
136 |
+
|
137 |
+
#: includes/class-wcpdf-settings.php:206
|
138 |
+
msgid "PDF Template settings"
|
139 |
+
msgstr "Impostazioni modello PDF "
|
140 |
+
|
141 |
+
#: includes/class-wcpdf-settings.php:213
|
142 |
+
msgid "Choose a template"
|
143 |
+
msgstr "Scegli un modello"
|
144 |
+
|
145 |
+
#: includes/class-wcpdf-settings.php:221
|
146 |
+
msgid ""
|
147 |
+
"Want to use your own template? Copy all the files from <code>woocommerce-pdf-"
|
148 |
+
"invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/"
|
149 |
+
"woocommerce/pdf/yourtemplate/</code> to customize them"
|
150 |
+
msgstr ""
|
151 |
+
"Vuoi usare il proprio modello? Copiare tutti i file dalla <code> woocommerce-"
|
152 |
+
"pdf-invoices-packing-slips/templates/pdf/Simple / </ code> per <code> "
|
153 |
+
"yourtheme / woocommerce / pdf / yourtemplate / </ code> per personalizzarle"
|
154 |
+
|
155 |
+
#: includes/class-wcpdf-settings.php:227
|
156 |
+
msgid "Paper size"
|
157 |
+
msgstr "Formato carta"
|
158 |
+
|
159 |
+
#: includes/class-wcpdf-settings.php:235
|
160 |
+
msgid "A4"
|
161 |
+
msgstr "A4"
|
162 |
+
|
163 |
+
#: includes/class-wcpdf-settings.php:236
|
164 |
+
msgid "Letter"
|
165 |
+
msgstr "Lettera"
|
166 |
+
|
167 |
+
#: includes/class-wcpdf-settings.php:243
|
168 |
+
msgid "Shop header/logo"
|
169 |
+
msgstr "Intestazione Negozio / logo"
|
170 |
+
|
171 |
+
#: includes/class-wcpdf-settings.php:250
|
172 |
+
msgid "Select or upload your invoice header/logo"
|
173 |
+
msgstr "Selezionare o caricare l'intestazione della fattura / logo"
|
174 |
+
|
175 |
+
#: includes/class-wcpdf-settings.php:251
|
176 |
+
msgid "Set image"
|
177 |
+
msgstr "Imposta immagine "
|
178 |
+
|
179 |
+
#: includes/class-wcpdf-settings.php:252
|
180 |
+
msgid "Remove image"
|
181 |
+
msgstr "Rimuovi immagine"
|
182 |
+
|
183 |
+
#: includes/class-wcpdf-settings.php:259
|
184 |
+
msgid "Shop Name"
|
185 |
+
msgstr "Nome negozio"
|
186 |
+
|
187 |
+
#: includes/class-wcpdf-settings.php:272
|
188 |
+
msgid "Shop Address"
|
189 |
+
msgstr "Indirizzo negozio"
|
190 |
+
|
191 |
+
#: includes/class-wcpdf-settings.php:304
|
192 |
+
msgid "Footer: terms & conditions, policies, etc."
|
193 |
+
msgstr "Piè di pagina: termini e condizioni, politiche, ecc"
|
194 |
+
|
195 |
+
#: includes/class-wcpdf-settings.php:320
|
196 |
+
msgid "Extra template fields"
|
197 |
+
msgstr "Campi modello Extra"
|
198 |
+
|
199 |
+
#: includes/class-wcpdf-settings.php:327
|
200 |
+
msgid "Extra field 1"
|
201 |
+
msgstr "Campo Extra 1"
|
202 |
+
|
203 |
+
#: includes/class-wcpdf-settings.php:336
|
204 |
+
msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
|
205 |
+
msgstr "Questo è footer colonna 1 nella <i> Moderno (Premium) </ i> template"
|
206 |
+
|
207 |
+
#: includes/class-wcpdf-settings.php:342
|
208 |
+
msgid "Extra field 2"
|
209 |
+
msgstr "Campo Extra 2"
|
210 |
+
|
211 |
+
#: includes/class-wcpdf-settings.php:351
|
212 |
+
msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
|
213 |
+
msgstr "Questo è footer colonna 2 nella <i> Moderno (Premium) </ i> template"
|
214 |
+
|
215 |
+
#: includes/class-wcpdf-settings.php:357
|
216 |
+
msgid "Extra field 3"
|
217 |
+
msgstr "Campo Extra 3"
|
218 |
+
|
219 |
+
#: includes/class-wcpdf-settings.php:366
|
220 |
+
msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
|
221 |
+
msgstr "Questo è footer colonna 3 nella <i> Moderno (Premium) </ i> template"
|
222 |
+
|
223 |
+
#: includes/class-wcpdf-settings.php:579
|
224 |
+
msgid "Image resolution"
|
225 |
+
msgstr "Risoluzione immagine"
|
226 |
+
|
227 |
+
#: includes/class-wcpdf-settings.php:609
|
228 |
+
msgid ""
|
229 |
+
"These are used for the (optional) footer columns in the <em>Modern "
|
230 |
+
"(Premium)</em> template, but can also be used for other elements in your "
|
231 |
+
"custom template"
|
232 |
+
msgstr ""
|
233 |
+
"Questi sono utilizzati per le (opzionale) colonne piè di pagina nel <em> "
|
234 |
+
"Moderna (Premium) </ em> di modello, ma può essere utilizzato anche per "
|
235 |
+
"altri elementi nel vostro modello personalizzato"
|
236 |
+
|
237 |
+
#: includes/class-wcpdf-writepanels.php:81
|
238 |
+
msgid "Create PDF"
|
239 |
+
msgstr "Crea PDF"
|
240 |
+
|
241 |
+
#: includes/class-wcpdf-writepanels.php:87
|
242 |
+
msgid "Download invoice (PDF)"
|
243 |
+
msgstr "Scarica fattura (PDF)"
|
244 |
+
|
245 |
+
#: includes/class-wcpdf-writepanels.php:100
|
246 |
+
msgid "PDF invoice"
|
247 |
+
msgstr "Fattura in formato PDF"
|
248 |
+
|
249 |
+
#: includes/class-wcpdf-writepanels.php:101
|
250 |
+
msgid "PDF Packing Slip"
|
251 |
+
msgstr "PDF bolla di accompagnamento"
|
252 |
+
|
253 |
+
#: includes/class-wcpdf-writepanels.php:117
|
254 |
+
#: includes/class-wcpdf-writepanels.php:118
|
255 |
+
msgid "PDF Packing Slips"
|
256 |
+
msgstr "PDF bolle di accompagnamento"
|
257 |
+
|
258 |
+
#: templates/pdf/Simple/invoice.php:9 templates/pdf/Simple/invoice.php:21
|
259 |
+
msgid "Invoice"
|
260 |
+
msgstr "Fattura"
|
261 |
+
|
262 |
+
#: templates/pdf/Simple/invoice.php:30
|
263 |
+
#: templates/pdf/Simple/packing-slip.php:30
|
264 |
+
msgid "Order Date:"
|
265 |
+
msgstr "Data fattura:"
|
266 |
+
|
267 |
+
#: templates/pdf/Simple/invoice.php:32
|
268 |
+
#: templates/pdf/Simple/packing-slip.php:32
|
269 |
+
msgid "Order Number:"
|
270 |
+
msgstr "Fattura n.:"
|
271 |
+
|
272 |
+
#: templates/pdf/Simple/invoice.php:34
|
273 |
+
msgid "Payment Method:"
|
274 |
+
msgstr "Metodo di pagamento:"
|
275 |
+
|
276 |
+
#: templates/pdf/Simple/invoice.php:47
|
277 |
+
#: templates/pdf/Simple/packing-slip.php:45
|
278 |
+
msgid "Product"
|
279 |
+
msgstr "Prodotto"
|
280 |
+
|
281 |
+
#: templates/pdf/Simple/invoice.php:48
|
282 |
+
#: templates/pdf/Simple/packing-slip.php:46
|
283 |
+
msgid "Quantity"
|
284 |
+
msgstr "Quantità"
|
285 |
+
|
286 |
+
#: templates/pdf/Simple/invoice.php:49
|
287 |
+
msgid "Price"
|
288 |
+
msgstr "Prezzo"
|
289 |
+
|
290 |
+
#: templates/pdf/Simple/invoice.php:57
|
291 |
+
#: templates/pdf/Simple/packing-slip.php:54
|
292 |
+
msgid "SKU:"
|
293 |
+
msgstr "Codice:"
|
294 |
+
|
295 |
+
#: templates/pdf/Simple/invoice.php:58
|
296 |
+
#: templates/pdf/Simple/packing-slip.php:55
|
297 |
+
msgid "Weight:"
|
298 |
+
msgstr "Peso:"
|
299 |
+
|
300 |
+
#: templates/pdf/Simple/invoice.php:91
|
301 |
+
#: templates/pdf/Simple/packing-slip.php:69
|
302 |
+
msgid "Customer Notes"
|
303 |
+
msgstr "Nota del Cliente"
|
304 |
+
|
305 |
+
#: templates/pdf/Simple/packing-slip.php:9
|
306 |
+
#: templates/pdf/Simple/packing-slip.php:21
|
307 |
+
msgid "Packing Slip"
|
308 |
+
msgstr "Documento di trasporto"
|
languages/wpo_wcpdf.pot
CHANGED
@@ -2,7 +2,7 @@ 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
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: WP Overnight <support@wpovernight.com>\n"
|
8 |
"Language: en_US\n"
|
@@ -53,12 +53,14 @@ msgstr ""
|
|
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"
|
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 16:00+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: WP Overnight <support@wpovernight.com>\n"
|
8 |
"Language: en_US\n"
|
53 |
msgid "You do not have sufficient permissions to access this page."
|
54 |
msgstr ""
|
55 |
|
56 |
+
# This is a filename (prefix). do not use spaces or special characters!
|
57 |
#: includes/class-wcpdf-export.php:115 includes/class-wcpdf-export.php:175
|
58 |
msgid "invoice"
|
59 |
msgid_plural "invoices"
|
60 |
msgstr[0] ""
|
61 |
msgstr[1] ""
|
62 |
|
63 |
+
# This is a filename (prefix). do not use spaces or special characters!
|
64 |
#: includes/class-wcpdf-export.php:117
|
65 |
msgid "packing-slip"
|
66 |
msgid_plural "packing-slips"
|
readme.txt
CHANGED
@@ -3,15 +3,15 @@ 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.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
-
Create, print & email PDF invoices & packing slips for WooCommerce orders.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
This WooCommerce extension
|
15 |
|
16 |
= Main features =
|
17 |
* Export invoices or packing slips to PDF (individually or in bulk)
|
@@ -55,7 +55,7 @@ Copy the files from `woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple
|
|
55 |
|
56 |
= Where can I find more templates? =
|
57 |
|
58 |
-
Go to [wpovernight.com](https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/) to checkout more templates! These include templates with more tax details and product thumbnails.
|
59 |
|
60 |
== Screenshots ==
|
61 |
|
@@ -66,6 +66,11 @@ Go to [wpovernight.com](https://wpovernight.com/downloads/woocommerce-pdf-invoic
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
= 1.1.1 =
|
70 |
* Feature: French translations - thanks Guillaume!
|
71 |
|
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.1.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
+
Create, print & automatically email PDF invoices & packing slips for WooCommerce orders.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
This WooCommerce extension automatically adds 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)
|
55 |
|
56 |
= Where can I find more templates? =
|
57 |
|
58 |
+
Go to [wpovernight.com](https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/) to checkout more templates! These include templates with more tax details and product thumbnails. Need a custom templates? Contact us at support@wpovernight.com for more information.
|
59 |
|
60 |
== Screenshots ==
|
61 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 1.1.2 =
|
70 |
+
* Feature: Totals can now be called with simpler template functions
|
71 |
+
* Feature: Italian translations - thanks max66max!
|
72 |
+
* Tweak: improved memory performance
|
73 |
+
|
74 |
= 1.1.1 =
|
75 |
* Feature: French translations - thanks Guillaume!
|
76 |
|
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.1.
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|
@@ -307,7 +307,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
|
|
307 |
}
|
308 |
|
309 |
/**
|
310 |
-
* Return the order subtotal
|
311 |
*/
|
312 |
public function get_order_subtotal( $tax = 'excl', $discount = 'incl' ) { // set $tax to 'incl' to include tax, same for $discount
|
313 |
//$compound = ($discount == 'incl')?true:false;
|
@@ -323,13 +323,17 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
|
|
323 |
|
324 |
return apply_filters( 'wpo_wcpdf_order_subtotal', $subtotal );
|
325 |
}
|
|
|
|
|
|
|
|
|
326 |
|
327 |
/**
|
328 |
-
* Return the order shipping costs
|
329 |
*/
|
330 |
public function get_order_shipping( $tax = 'excl' ) { // set $tax to 'incl' to include tax
|
331 |
if ($tax = 'excl' ) {
|
332 |
-
$shipping_costs = $this->export->order->
|
333 |
} else {
|
334 |
$shipping_costs = woocommerce_price ( $this->export->order->order_shipping + $this->export->order->order_shipping_tax );
|
335 |
}
|
@@ -340,9 +344,13 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
|
|
340 |
);
|
341 |
return apply_filters( 'wpo_wcpdf_order_shipping', $shipping );
|
342 |
}
|
343 |
-
|
|
|
|
|
|
|
|
|
344 |
/**
|
345 |
-
* Return the total discount
|
346 |
*/
|
347 |
public function get_order_discount() {
|
348 |
$cart_discount = $this->export->order->get_cart_discount_to_display(); //before tax
|
@@ -357,6 +365,10 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
|
|
357 |
if ( $total_discount > 0 )
|
358 |
return apply_filters( 'wpo_wcpdf_order_discount', $discount );
|
359 |
}
|
|
|
|
|
|
|
|
|
360 |
|
361 |
/**
|
362 |
* Return the order fees
|
@@ -397,7 +409,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
|
|
397 |
}
|
398 |
|
399 |
/**
|
400 |
-
* Return the order grand total
|
401 |
*/
|
402 |
public function get_order_grand_total( $tax = 'incl' ) {
|
403 |
if ($tax == 'excl' ) {
|
@@ -428,6 +440,11 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
|
|
428 |
|
429 |
return apply_filters( 'wpo_wcpdf_order_grand_total', $grand_total );
|
430 |
}
|
|
|
|
|
|
|
|
|
|
|
431 |
|
432 |
/**
|
433 |
* Return/Show shipping notes
|
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.1.2
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|
307 |
}
|
308 |
|
309 |
/**
|
310 |
+
* Return/show the order subtotal
|
311 |
*/
|
312 |
public function get_order_subtotal( $tax = 'excl', $discount = 'incl' ) { // set $tax to 'incl' to include tax, same for $discount
|
313 |
//$compound = ($discount == 'incl')?true:false;
|
323 |
|
324 |
return apply_filters( 'wpo_wcpdf_order_subtotal', $subtotal );
|
325 |
}
|
326 |
+
public function order_subtotal( $tax = 'excl', $discount = 'incl' ) {
|
327 |
+
$subtotal = $this->get_order_subtotal( $tax, $discount );
|
328 |
+
echo $subtotal['value'];
|
329 |
+
}
|
330 |
|
331 |
/**
|
332 |
+
* Return/show the order shipping costs
|
333 |
*/
|
334 |
public function get_order_shipping( $tax = 'excl' ) { // set $tax to 'incl' to include tax
|
335 |
if ($tax = 'excl' ) {
|
336 |
+
$shipping_costs = woocommerce_price ( $this->export->order->order_shipping );
|
337 |
} else {
|
338 |
$shipping_costs = woocommerce_price ( $this->export->order->order_shipping + $this->export->order->order_shipping_tax );
|
339 |
}
|
344 |
);
|
345 |
return apply_filters( 'wpo_wcpdf_order_shipping', $shipping );
|
346 |
}
|
347 |
+
public function order_shipping( $tax = 'excl' ) {
|
348 |
+
$shipping = $this->get_order_shipping( $tax );
|
349 |
+
echo $shipping['value'];
|
350 |
+
}
|
351 |
+
|
352 |
/**
|
353 |
+
* Return/show the total discount
|
354 |
*/
|
355 |
public function get_order_discount() {
|
356 |
$cart_discount = $this->export->order->get_cart_discount_to_display(); //before tax
|
365 |
if ( $total_discount > 0 )
|
366 |
return apply_filters( 'wpo_wcpdf_order_discount', $discount );
|
367 |
}
|
368 |
+
public function order_discount() {
|
369 |
+
$discount = $this->get_order_discount();
|
370 |
+
echo $discount['value'];
|
371 |
+
}
|
372 |
|
373 |
/**
|
374 |
* Return the order fees
|
409 |
}
|
410 |
|
411 |
/**
|
412 |
+
* Return/show the order grand total
|
413 |
*/
|
414 |
public function get_order_grand_total( $tax = 'incl' ) {
|
415 |
if ($tax == 'excl' ) {
|
440 |
|
441 |
return apply_filters( 'wpo_wcpdf_order_grand_total', $grand_total );
|
442 |
}
|
443 |
+
public function order_grand_total( $tax = 'incl' ) {
|
444 |
+
$grand_total = $this->get_order_grand_total( $tax );
|
445 |
+
echo $grand_total['value'];
|
446 |
+
}
|
447 |
+
|
448 |
|
449 |
/**
|
450 |
* Return/Show shipping notes
|