Version Description
- Feature: Added function to call custom fields more easily (see FAQ)
- Feature: Change the my account button text via a filter (wpo_wcpdf_myaccount_button_text)
- Translations: Added Danish (Thanks Mads!)
- Tweak: only load PDF engine if it's not already loaded by another plugin
Download this release
Release Info
Developer | pomegranate |
Plugin | WooCommerce PDF Invoices & Packing Slips |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.3
- includes/class-wcpdf-export.php +8 -1
- includes/class-wcpdf-writepanels.php +1 -1
- languages/wpo_wcpdf-da_DK.mo +0 -0
- languages/wpo_wcpdf-da_DK.po +462 -0
- readme.txt +22 -2
- woocommerce-pdf-invoices-packingslips.php +16 -1
includes/class-wcpdf-export.php
CHANGED
@@ -116,7 +116,14 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
|
|
116 |
$paper_size = apply_filters( 'wpo_wcpdf_paper_format', $this->template_settings['paper_size'], $template_type );
|
117 |
$paper_orientation = apply_filters( 'wpo_wcpdf_paper_orientation', 'portrait', $template_type);
|
118 |
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
$dompdf = new DOMPDF();
|
121 |
$dompdf->load_html($this->process_template( $template_type, $order_ids ));
|
122 |
$dompdf->set_paper( $paper_size, $paper_orientation );
|
116 |
$paper_size = apply_filters( 'wpo_wcpdf_paper_format', $this->template_settings['paper_size'], $template_type );
|
117 |
$paper_orientation = apply_filters( 'wpo_wcpdf_paper_orientation', 'portrait', $template_type);
|
118 |
|
119 |
+
if ( !class_exists('DOMPDF') ) {
|
120 |
+
// extra check to avoid clashes with other plugins using DOMPDF
|
121 |
+
// This could have unwanted side-effects when the version that's already
|
122 |
+
// loaded is different, and it could also miss fonts etc, but it's better
|
123 |
+
// than not checking...
|
124 |
+
require_once( WooCommerce_PDF_Invoices::$plugin_path . "lib/dompdf/dompdf_config.inc.php" );
|
125 |
+
}
|
126 |
+
|
127 |
$dompdf = new DOMPDF();
|
128 |
$dompdf->load_html($this->process_template( $template_type, $order_ids ));
|
129 |
$dompdf->set_paper( $paper_size, $paper_orientation );
|
includes/class-wcpdf-writepanels.php
CHANGED
@@ -140,7 +140,7 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices_Writepanels' ) ) {
|
|
140 |
if ( get_post_meta($order->id,'_wcpdf_invoice_exists',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' )
|
144 |
);
|
145 |
}
|
146 |
|
140 |
if ( get_post_meta($order->id,'_wcpdf_invoice_exists',true) || in_array($order->status, apply_filters( 'wpo_wcpdf_myaccount_allowed_order_statuses', array() ) ) ) {
|
141 |
$actions['invoice'] = array(
|
142 |
'url' => $pdf_url,
|
143 |
+
'name' => apply_filters( 'wpo_wcpdf_myaccount_button_text', __( 'Download invoice (PDF)', 'wpo_wcpdf' ) )
|
144 |
);
|
145 |
}
|
146 |
|
languages/wpo_wcpdf-da_DK.mo
ADDED
Binary file
|
languages/wpo_wcpdf-da_DK.po
ADDED
@@ -0,0 +1,462 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
|
4 |
+
"POT-Creation-Date: 2014-05-12 22:22+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-07-12 13:27+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.5\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: da_DK\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
|
19 |
+
#: includes/class-wcpdf-export.php:151 includes/class-wcpdf-export.php:156
|
20 |
+
#: includes/class-wcpdf-export.php:161 includes/class-wcpdf-export.php:172
|
21 |
+
#: includes/class-wcpdf-export.php:185
|
22 |
+
msgid "You do not have sufficient permissions to access this page."
|
23 |
+
msgstr "Du har ikke tilstrækkelig tilladelse til at tilgå denne side. "
|
24 |
+
|
25 |
+
# This is a filename (prefix). do not use spaces or special characters!
|
26 |
+
#: includes/class-wcpdf-export.php:206 includes/class-wcpdf-export.php:285
|
27 |
+
msgid "invoice"
|
28 |
+
msgid_plural "invoices"
|
29 |
+
msgstr[0] "Faktura"
|
30 |
+
msgstr[1] "Fakturaen "
|
31 |
+
|
32 |
+
# This is a filename (prefix). do not use spaces or special characters!
|
33 |
+
#: includes/class-wcpdf-export.php:208
|
34 |
+
msgid "packing-slip"
|
35 |
+
msgid_plural "packing-slips"
|
36 |
+
msgstr[0] "Følgeseddel "
|
37 |
+
msgstr[1] "Følgesedler "
|
38 |
+
|
39 |
+
#: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
|
40 |
+
#: includes/class-wcpdf-writepanels.php:173
|
41 |
+
#: includes/class-wcpdf-writepanels.php:174
|
42 |
+
msgid "PDF Invoices"
|
43 |
+
msgstr "PDF fakturaer "
|
44 |
+
|
45 |
+
#: includes/class-wcpdf-settings.php:60
|
46 |
+
msgid "Settings"
|
47 |
+
msgstr "Indstillinger "
|
48 |
+
|
49 |
+
#: includes/class-wcpdf-settings.php:82
|
50 |
+
msgid "General"
|
51 |
+
msgstr "Generelt "
|
52 |
+
|
53 |
+
#: includes/class-wcpdf-settings.php:83
|
54 |
+
msgid "Template"
|
55 |
+
msgstr "Skabelon "
|
56 |
+
|
57 |
+
#: includes/class-wcpdf-settings.php:92
|
58 |
+
msgid "WooCommerce PDF Invoices"
|
59 |
+
msgstr "WooCommerce PDF faktura"
|
60 |
+
|
61 |
+
#: includes/class-wcpdf-settings.php:98
|
62 |
+
msgid "Status"
|
63 |
+
msgstr "Status"
|
64 |
+
|
65 |
+
#: includes/class-wcpdf-settings.php:109
|
66 |
+
#, php-format
|
67 |
+
msgid ""
|
68 |
+
"Upload all invoices automatically to your dropbox!<br/>Check out the %s "
|
69 |
+
"extension."
|
70 |
+
msgstr ""
|
71 |
+
"Upload alle fakturaer automatisk til din Dropbox! <br/> Tjek denne %s "
|
72 |
+
"udvidelse "
|
73 |
+
|
74 |
+
#: includes/class-wcpdf-settings.php:119
|
75 |
+
#, php-format
|
76 |
+
msgid ""
|
77 |
+
"Looking for more advanced templates? Check out the Premium PDF Invoice & "
|
78 |
+
"Packing Slips templates at %s."
|
79 |
+
msgstr ""
|
80 |
+
"Leder du efter flere avancerede skabeloner? Se Premium PDF Invoice & Packing "
|
81 |
+
"Slips templates ved %s."
|
82 |
+
|
83 |
+
#: includes/class-wcpdf-settings.php:120
|
84 |
+
#, php-format
|
85 |
+
msgid "For custom templates, contact us at %s."
|
86 |
+
msgstr "For brugerdefinerede skabeloner, kontakt os på %s."
|
87 |
+
|
88 |
+
#: includes/class-wcpdf-settings.php:175
|
89 |
+
msgid "General settings"
|
90 |
+
msgstr "Generelle indstillinger "
|
91 |
+
|
92 |
+
#: includes/class-wcpdf-settings.php:182
|
93 |
+
msgid "How do you want to view the PDF?"
|
94 |
+
msgstr "Hvordan ønsker du at vise PDF'en?"
|
95 |
+
|
96 |
+
#: includes/class-wcpdf-settings.php:190
|
97 |
+
msgid "Download the PDF"
|
98 |
+
msgstr "Hent PDF'en"
|
99 |
+
|
100 |
+
#: includes/class-wcpdf-settings.php:191
|
101 |
+
msgid "Open the PDF in a new browser tab/window"
|
102 |
+
msgstr "Åben PDF'en i en ny browser fane/vindue "
|
103 |
+
|
104 |
+
#: includes/class-wcpdf-settings.php:201
|
105 |
+
msgid "Attach invoice to:"
|
106 |
+
msgstr "Vedhæft fakturaen til: "
|
107 |
+
|
108 |
+
#: includes/class-wcpdf-settings.php:209
|
109 |
+
msgid "Admin New Order email"
|
110 |
+
msgstr "Admin ny ordre e-mail"
|
111 |
+
|
112 |
+
#: includes/class-wcpdf-settings.php:210
|
113 |
+
msgid "Customer Processing Order email"
|
114 |
+
msgstr "Kunde behandler ordre e-mail"
|
115 |
+
|
116 |
+
#: includes/class-wcpdf-settings.php:211
|
117 |
+
msgid "Customer Completed Order email"
|
118 |
+
msgstr "Kunde fuldført ordre e-mail "
|
119 |
+
|
120 |
+
#: includes/class-wcpdf-settings.php:212
|
121 |
+
msgid "Customer Invoice email"
|
122 |
+
msgstr "Kunde faktura e-mail"
|
123 |
+
|
124 |
+
#: includes/class-wcpdf-settings.php:214
|
125 |
+
#, php-format
|
126 |
+
msgid ""
|
127 |
+
"It looks like the temp folder (<code>%s</code>) is not writable, check the "
|
128 |
+
"permissions for this folder! Without having write access to this folder, the "
|
129 |
+
"plugin will not be able to email invoices."
|
130 |
+
msgstr ""
|
131 |
+
"Det ser ud som om at skabelon mappen (<code>%s</code>) ikke er skrivebar, "
|
132 |
+
"kontrollere adgangskravene for denne mappe. Uden at have adgang til at "
|
133 |
+
"redigere i mappen, vil dette plugin ikke være i stand til at sende e-mails "
|
134 |
+
"med fakturaer. "
|
135 |
+
|
136 |
+
#: includes/class-wcpdf-settings.php:220
|
137 |
+
msgid "Enable invoice number column in the orders list"
|
138 |
+
msgstr "Aktiver faktura nummer kolonne i ordre listen "
|
139 |
+
|
140 |
+
#: includes/class-wcpdf-settings.php:259
|
141 |
+
msgid "PDF Template settings"
|
142 |
+
msgstr "PDF skabelon indstillinger "
|
143 |
+
|
144 |
+
#: includes/class-wcpdf-settings.php:266
|
145 |
+
msgid "Choose a template"
|
146 |
+
msgstr "Vælg en skabelon"
|
147 |
+
|
148 |
+
#: includes/class-wcpdf-settings.php:274
|
149 |
+
msgid ""
|
150 |
+
"Want to use your own template? Copy all the files from <code>woocommerce-pdf-"
|
151 |
+
"invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/"
|
152 |
+
"woocommerce/pdf/yourtemplate/</code> to customize them"
|
153 |
+
msgstr ""
|
154 |
+
"Ønsker du at benytte din egen skabelon? Kopier alle filerne fra "
|
155 |
+
"<code>woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/</code> "
|
156 |
+
"til <code>yourtheme/woocommerce/pdf/yourtemplate/</code> for at tilpasse den"
|
157 |
+
|
158 |
+
#: includes/class-wcpdf-settings.php:280
|
159 |
+
msgid "Paper size"
|
160 |
+
msgstr "Papir størrelse "
|
161 |
+
|
162 |
+
#: includes/class-wcpdf-settings.php:288
|
163 |
+
msgid "A4"
|
164 |
+
msgstr "A4"
|
165 |
+
|
166 |
+
#: includes/class-wcpdf-settings.php:289
|
167 |
+
msgid "Letter"
|
168 |
+
msgstr "Brev"
|
169 |
+
|
170 |
+
#: includes/class-wcpdf-settings.php:296
|
171 |
+
msgid "Shop header/logo"
|
172 |
+
msgstr "Butik header/logo "
|
173 |
+
|
174 |
+
#: includes/class-wcpdf-settings.php:303
|
175 |
+
msgid "Select or upload your invoice header/logo"
|
176 |
+
msgstr "Vælg eller upload dit faktura header/logo"
|
177 |
+
|
178 |
+
#: includes/class-wcpdf-settings.php:304
|
179 |
+
msgid "Set image"
|
180 |
+
msgstr "Indstil billedet "
|
181 |
+
|
182 |
+
#: includes/class-wcpdf-settings.php:305
|
183 |
+
msgid "Remove image"
|
184 |
+
msgstr "Fjern billede"
|
185 |
+
|
186 |
+
#: includes/class-wcpdf-settings.php:312
|
187 |
+
msgid "Shop Name"
|
188 |
+
msgstr "Butik navn"
|
189 |
+
|
190 |
+
#: includes/class-wcpdf-settings.php:325
|
191 |
+
msgid "Shop Address"
|
192 |
+
msgstr "Butik adresse "
|
193 |
+
|
194 |
+
#: includes/class-wcpdf-settings.php:357
|
195 |
+
msgid "Footer: terms & conditions, policies, etc."
|
196 |
+
msgstr "Sidefod: Vilkår & betingelser, politikker mm. "
|
197 |
+
|
198 |
+
#: includes/class-wcpdf-settings.php:372
|
199 |
+
msgid "Number to display on invoice"
|
200 |
+
msgstr "Nummer der vises på fakturaen "
|
201 |
+
|
202 |
+
#: includes/class-wcpdf-settings.php:380
|
203 |
+
msgid "WooCommerce order number"
|
204 |
+
msgstr "WooCommerce ordre nummer "
|
205 |
+
|
206 |
+
#: includes/class-wcpdf-settings.php:381
|
207 |
+
msgid "Built-in sequential invoice number"
|
208 |
+
msgstr "Indbygget sekventiel faktura nummer"
|
209 |
+
|
210 |
+
#: includes/class-wcpdf-settings.php:383
|
211 |
+
msgid ""
|
212 |
+
"If you are using the WooCommerce Sequential Order Numbers plugin, select the "
|
213 |
+
"WooCommerce order number"
|
214 |
+
msgstr ""
|
215 |
+
"Hvis du benytter WooCommerce sekventiel ordre nummer plugin, vælg "
|
216 |
+
"WooCommerce ordre nummer "
|
217 |
+
|
218 |
+
#: includes/class-wcpdf-settings.php:389
|
219 |
+
msgid "Next invoice number (without prefix/suffix etc.)"
|
220 |
+
msgstr "Næste faktura nummer (uden prefix/suffix mm.) "
|
221 |
+
|
222 |
+
#: includes/class-wcpdf-settings.php:397
|
223 |
+
msgid ""
|
224 |
+
"This is the number that will be used on the next invoice that is created. By "
|
225 |
+
"default, numbering starts from the WooCommerce Order Number of the first "
|
226 |
+
"invoice that is created and increases for every new invoice. Note that if "
|
227 |
+
"you override this and set it lower than the highest (PDF) invoice number, "
|
228 |
+
"this could create double invoice numbers!"
|
229 |
+
msgstr ""
|
230 |
+
"Dette er nummeret som vil blive brugt på den næste faktura. Som standard "
|
231 |
+
"starter numrene fra WooCommerce ordre nummer for den første faktura der "
|
232 |
+
"bliver oprettet og stiger med en for hver ny faktura. Bemærk: Hvis du "
|
233 |
+
"tilsidesætter dette og sætter den lavere end den højeste (PDF) "
|
234 |
+
"fakturanummer, kan dette skabe dobbelt fakturanumre. "
|
235 |
+
|
236 |
+
#: includes/class-wcpdf-settings.php:403
|
237 |
+
msgid "Invoice number format"
|
238 |
+
msgstr "Fakturanummer format "
|
239 |
+
|
240 |
+
#: includes/class-wcpdf-settings.php:412
|
241 |
+
msgid "Prefix"
|
242 |
+
msgstr "Prefix"
|
243 |
+
|
244 |
+
#: includes/class-wcpdf-settings.php:414
|
245 |
+
msgid ""
|
246 |
+
"to use the order year and/or month, use [order_year] or [order_month] "
|
247 |
+
"respectively"
|
248 |
+
msgstr ""
|
249 |
+
"for at bruge ordre år og/eller måned, brug [order_year] eller [order_month]. "
|
250 |
+
|
251 |
+
#: includes/class-wcpdf-settings.php:417
|
252 |
+
msgid "Suffix"
|
253 |
+
msgstr "Suffix "
|
254 |
+
|
255 |
+
#: includes/class-wcpdf-settings.php:422
|
256 |
+
msgid "Padding"
|
257 |
+
msgstr "Padding "
|
258 |
+
|
259 |
+
#: includes/class-wcpdf-settings.php:424
|
260 |
+
msgid "enter the number of digits here - enter \"6\" to display 42 as 000042"
|
261 |
+
msgstr ""
|
262 |
+
"Indtast nummeret af cifre her - indtast \"6\" for at vise 42 som 000042"
|
263 |
+
|
264 |
+
#: includes/class-wcpdf-settings.php:427
|
265 |
+
msgid ""
|
266 |
+
"note: if you have already created a custom invoice number format with a "
|
267 |
+
"filter, the above settings will be ignored"
|
268 |
+
msgstr ""
|
269 |
+
"Bemærk: Hvis du allerede har oprettet et brugerdefinerede fakturanummer "
|
270 |
+
"format med et filter, så vil denne indstillingen ovenover blive ignoreret. "
|
271 |
+
|
272 |
+
#: includes/class-wcpdf-settings.php:435
|
273 |
+
msgid "Date to display on invoice"
|
274 |
+
msgstr "Dato der skal vises på fakturaerne "
|
275 |
+
|
276 |
+
#: includes/class-wcpdf-settings.php:443
|
277 |
+
msgid "Order date"
|
278 |
+
msgstr "Ordredato"
|
279 |
+
|
280 |
+
#: includes/class-wcpdf-settings.php:444
|
281 |
+
msgid "Invoice date"
|
282 |
+
msgstr "Fakturadato"
|
283 |
+
|
284 |
+
#: includes/class-wcpdf-settings.php:452
|
285 |
+
msgid "Extra template fields"
|
286 |
+
msgstr "Ekstra skabelons felter "
|
287 |
+
|
288 |
+
#: includes/class-wcpdf-settings.php:459
|
289 |
+
msgid "Extra field 1"
|
290 |
+
msgstr "Ekstra felt 1"
|
291 |
+
|
292 |
+
#: includes/class-wcpdf-settings.php:468
|
293 |
+
msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
|
294 |
+
msgstr "Dette er sidefon kolonne 1 i <i>Modern (Premium)</i> skabelonen "
|
295 |
+
|
296 |
+
#: includes/class-wcpdf-settings.php:474
|
297 |
+
msgid "Extra field 2"
|
298 |
+
msgstr "Ekstra felt 2"
|
299 |
+
|
300 |
+
#: includes/class-wcpdf-settings.php:483
|
301 |
+
msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
|
302 |
+
msgstr "Dette er sidefod kolonne 2 i <i>Modern (Premium)</i> skabelonen "
|
303 |
+
|
304 |
+
#: includes/class-wcpdf-settings.php:489
|
305 |
+
msgid "Extra field 3"
|
306 |
+
msgstr "Ekstra felt 3"
|
307 |
+
|
308 |
+
#: includes/class-wcpdf-settings.php:498
|
309 |
+
msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
|
310 |
+
msgstr "Dette er sidefod kolonne 3 i <i>Modern (Premium)</i> skabelonen "
|
311 |
+
|
312 |
+
#: includes/class-wcpdf-settings.php:755
|
313 |
+
msgid "Image resolution"
|
314 |
+
msgstr "Billede opløsning"
|
315 |
+
|
316 |
+
#: includes/class-wcpdf-settings.php:822
|
317 |
+
msgid ""
|
318 |
+
"These are used for the (optional) footer columns in the <em>Modern "
|
319 |
+
"(Premium)</em> template, but can also be used for other elements in your "
|
320 |
+
"custom template"
|
321 |
+
msgstr "Disse bruges (valgfrit)"
|
322 |
+
|
323 |
+
#: includes/class-wcpdf-writepanels.php:102
|
324 |
+
msgid "Invoice Number"
|
325 |
+
msgstr "Fakturanummer "
|
326 |
+
|
327 |
+
#: includes/class-wcpdf-writepanels.php:133
|
328 |
+
msgid "Create PDF"
|
329 |
+
msgstr "Opret PDF"
|
330 |
+
|
331 |
+
#: includes/class-wcpdf-writepanels.php:143
|
332 |
+
msgid "Download invoice (PDF)"
|
333 |
+
msgstr "Hent faktura (PDF) "
|
334 |
+
|
335 |
+
#: includes/class-wcpdf-writepanels.php:157
|
336 |
+
msgid "PDF invoice"
|
337 |
+
msgstr "PDF faktura "
|
338 |
+
|
339 |
+
#: includes/class-wcpdf-writepanels.php:158
|
340 |
+
msgid "PDF Packing Slip"
|
341 |
+
msgstr "PDF følgeseddel "
|
342 |
+
|
343 |
+
#: includes/class-wcpdf-writepanels.php:175
|
344 |
+
#: includes/class-wcpdf-writepanels.php:176
|
345 |
+
msgid "PDF Packing Slips"
|
346 |
+
msgstr "PDF følgesedler "
|
347 |
+
|
348 |
+
#: includes/class-wcpdf-writepanels.php:189
|
349 |
+
msgid "PDF Invoice Number (unformatted!)"
|
350 |
+
msgstr "PDF faktura nummer (uformateret!)"
|
351 |
+
|
352 |
+
#: templates/pdf/Simple/html-document-wrapper.php:6
|
353 |
+
#: templates/pdf/Simple/invoice.php:9 templates/pdf/Simple/invoice.php:21
|
354 |
+
msgid "Invoice"
|
355 |
+
msgstr "Faktura "
|
356 |
+
|
357 |
+
#: templates/pdf/Simple/html-document-wrapper.php:6
|
358 |
+
#: templates/pdf/Simple/packing-slip.php:9
|
359 |
+
#: templates/pdf/Simple/packing-slip.php:21
|
360 |
+
msgid "Packing Slip"
|
361 |
+
msgstr "Følgeseddel "
|
362 |
+
|
363 |
+
#: templates/pdf/Simple/invoice.php:37
|
364 |
+
msgid "Invoice Date:"
|
365 |
+
msgstr "Fakturadato: "
|
366 |
+
|
367 |
+
#: templates/pdf/Simple/invoice.php:40
|
368 |
+
#: templates/pdf/Simple/packing-slip.php:30
|
369 |
+
msgid "Order Date:"
|
370 |
+
msgstr "Ordredato: "
|
371 |
+
|
372 |
+
#: templates/pdf/Simple/invoice.php:46
|
373 |
+
msgid "Invoice Number:"
|
374 |
+
msgstr "Fakturanummer: "
|
375 |
+
|
376 |
+
#: templates/pdf/Simple/invoice.php:49
|
377 |
+
#: templates/pdf/Simple/packing-slip.php:32
|
378 |
+
msgid "Order Number:"
|
379 |
+
msgstr "Ordrenummer:"
|
380 |
+
|
381 |
+
#: templates/pdf/Simple/invoice.php:56
|
382 |
+
msgid "Payment Method:"
|
383 |
+
msgstr "Betaling: "
|
384 |
+
|
385 |
+
#: templates/pdf/Simple/invoice.php:69
|
386 |
+
#: templates/pdf/Simple/packing-slip.php:45
|
387 |
+
msgid "Product"
|
388 |
+
msgstr "Produkt"
|
389 |
+
|
390 |
+
#: templates/pdf/Simple/invoice.php:70
|
391 |
+
#: templates/pdf/Simple/packing-slip.php:46
|
392 |
+
msgid "Quantity"
|
393 |
+
msgstr "Antal "
|
394 |
+
|
395 |
+
#: templates/pdf/Simple/invoice.php:71
|
396 |
+
msgid "Price"
|
397 |
+
msgstr "Pris"
|
398 |
+
|
399 |
+
#: templates/pdf/Simple/invoice.php:77
|
400 |
+
msgid "Description"
|
401 |
+
msgstr "Beskrivelse "
|
402 |
+
|
403 |
+
#: templates/pdf/Simple/invoice.php:80
|
404 |
+
#: templates/pdf/Simple/packing-slip.php:54
|
405 |
+
msgid "SKU:"
|
406 |
+
msgstr "Varenummer: "
|
407 |
+
|
408 |
+
#: templates/pdf/Simple/invoice.php:81
|
409 |
+
#: templates/pdf/Simple/packing-slip.php:55
|
410 |
+
msgid "Weight:"
|
411 |
+
msgstr "Vægt: "
|
412 |
+
|
413 |
+
#: templates/pdf/Simple/invoice.php:113
|
414 |
+
#: templates/pdf/Simple/packing-slip.php:69
|
415 |
+
msgid "Customer Notes"
|
416 |
+
msgstr "Kunde bemærkning"
|
417 |
+
|
418 |
+
#: woocommerce-pdf-invoices-packingslips.php:96
|
419 |
+
#, php-format
|
420 |
+
msgid ""
|
421 |
+
"WooCommerce PDF Invoices & Packing Slips requires %sWooCommerce%s to be "
|
422 |
+
"installed & activated!"
|
423 |
+
msgstr ""
|
424 |
+
"WooCommerce PDF faktura & følgeseddel kræver at %sWooCommerce%s er "
|
425 |
+
"installeret og aktiveret! "
|
426 |
+
|
427 |
+
#: woocommerce-pdf-invoices-packingslips.php:191
|
428 |
+
#: woocommerce-pdf-invoices-packingslips.php:227
|
429 |
+
msgid "N/A"
|
430 |
+
msgstr "N/A"
|
431 |
+
|
432 |
+
#: woocommerce-pdf-invoices-packingslips.php:249
|
433 |
+
msgid "Payment method"
|
434 |
+
msgstr "Betaling"
|
435 |
+
|
436 |
+
#: woocommerce-pdf-invoices-packingslips.php:260
|
437 |
+
msgid "Shipping method"
|
438 |
+
msgstr "Fragt"
|
439 |
+
|
440 |
+
#: woocommerce-pdf-invoices-packingslips.php:360
|
441 |
+
msgid "Subtotal"
|
442 |
+
msgstr "Subtotal"
|
443 |
+
|
444 |
+
#: woocommerce-pdf-invoices-packingslips.php:382
|
445 |
+
msgid "Shipping"
|
446 |
+
msgstr "Fragt"
|
447 |
+
|
448 |
+
#: woocommerce-pdf-invoices-packingslips.php:416
|
449 |
+
msgid "Discount"
|
450 |
+
msgstr "Rabat"
|
451 |
+
|
452 |
+
#: woocommerce-pdf-invoices-packingslips.php:455
|
453 |
+
msgid "VAT"
|
454 |
+
msgstr "Moms"
|
455 |
+
|
456 |
+
#: woocommerce-pdf-invoices-packingslips.php:487
|
457 |
+
msgid "Total ex. VAT"
|
458 |
+
msgstr "Total ex. moms"
|
459 |
+
|
460 |
+
#: woocommerce-pdf-invoices-packingslips.php:490
|
461 |
+
msgid "Total"
|
462 |
+
msgstr "Total"
|
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.9.1 and WooCommerce 2.1
|
6 |
-
Stable tag: 1.4.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -55,7 +55,7 @@ In the search field type "WooCommerce PDF Invoices & Packing Slips" and click Se
|
|
55 |
|
56 |
= How do I create my own custom template? =
|
57 |
|
58 |
-
Copy the files from `wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/` to `wp-content/themes/yourtheme/woocommerce/pdf/yourtemplate` and customize them there. The new template will
|
59 |
|
60 |
= Where can I find more templates? =
|
61 |
|
@@ -78,6 +78,20 @@ This plugin is translation ready, which means that you can translate it using st
|
|
78 |
7. Enter the translations. invoice and packing-slip now have two translation fields, single & plural. Note that this is a filename, so replace spaces with a - just to be sure!
|
79 |
8. Save as `wpo_wcpdf-xx_XX.po`, where you replace xx_XX with your language code & country code suffix (da_DK, pl_PL, de_DE etc.)
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
= How do can I modify the pdf filename? =
|
82 |
|
83 |
You can do this via a filter in your theme's `functions.php` (Some themes have a "custom functions" area in the settings).
|
@@ -160,6 +174,12 @@ This usually only happens on batch actions. PDF creation is a memory intensive j
|
|
160 |
|
161 |
== Changelog ==
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
= 1.4.2 =
|
164 |
* Fix: Don't create invoice number when exporting packing slips
|
165 |
* Fix: Division by zero for 0 quantity items
|
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.9.1 and WooCommerce 2.1
|
6 |
+
Stable tag: 1.4.3
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
55 |
|
56 |
= How do I create my own custom template? =
|
57 |
|
58 |
+
Copy the files from `wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/` to `wp-content/themes/yourtheme/woocommerce/pdf/yourtemplate` and customize them there. The new template will show up as 'yourtemplate' (the folder name) in the settings panel.
|
59 |
|
60 |
= Where can I find more templates? =
|
61 |
|
78 |
7. Enter the translations. invoice and packing-slip now have two translation fields, single & plural. Note that this is a filename, so replace spaces with a - just to be sure!
|
79 |
8. Save as `wpo_wcpdf-xx_XX.po`, where you replace xx_XX with your language code & country code suffix (da_DK, pl_PL, de_DE etc.)
|
80 |
|
81 |
+
= How can I display custom fields in the invoice or packing slip? =
|
82 |
+
First, you need to create a custom template following instructions from the first item in this FAQ.
|
83 |
+
Then place the following snippet where you would like the custom field to appear:
|
84 |
+
|
85 |
+
`
|
86 |
+
<?php $wpo_wcpdf->custom_field('custom_fieldname', 'Custom field:'); ?>
|
87 |
+
`
|
88 |
+
|
89 |
+
Where you replace 'custom_fieldname' with the name of the field you want to display, and 'Custom field' with the label. The plugin only displays the field when it contains data. If you also want to display the label when the field is empty, you can pass a third parameter (true), like this:
|
90 |
+
|
91 |
+
`
|
92 |
+
<?php $wpo_wcpdf->custom_field('custom_fieldname', 'Custom field:', true); ?>
|
93 |
+
`
|
94 |
+
|
95 |
= How do can I modify the pdf filename? =
|
96 |
|
97 |
You can do this via a filter in your theme's `functions.php` (Some themes have a "custom functions" area in the settings).
|
174 |
|
175 |
== Changelog ==
|
176 |
|
177 |
+
= 1.4.3 =
|
178 |
+
* Feature: Added function to call custom fields more easily (see FAQ)
|
179 |
+
* Feature: Change the my account button text via a filter (wpo_wcpdf_myaccount_button_text)
|
180 |
+
* Translations: Added Danish (Thanks Mads!)
|
181 |
+
* Tweak: only load PDF engine if it's not already loaded by another plugin
|
182 |
+
|
183 |
= 1.4.2 =
|
184 |
* Fix: Don't create invoice number when exporting packing slips
|
185 |
* Fix: Division by zero for 0 quantity items
|
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.4.
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|
@@ -231,6 +231,21 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
|
|
231 |
public function shipping_address() {
|
232 |
echo $this->get_shipping_address();
|
233 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
|
235 |
/**
|
236 |
* Return/Show the current date
|
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.4.3
|
7 |
* Author: Ewout Fernhout
|
8 |
* Author URI: http://www.wpovernight.com
|
9 |
* License: GPLv2 or later
|
231 |
public function shipping_address() {
|
232 |
echo $this->get_shipping_address();
|
233 |
}
|
234 |
+
|
235 |
+
/**
|
236 |
+
* Return/Show a custom field
|
237 |
+
*/
|
238 |
+
public function custom_field( $field_name, $field_label = '', $display_empty = false ) {
|
239 |
+
$custom_field = get_post_meta($this->export->order->id,$field_name,true);
|
240 |
+
if (!empty($field_label)){
|
241 |
+
// add a a trailing space to the label
|
242 |
+
$field_label .= ' ';
|
243 |
+
}
|
244 |
+
|
245 |
+
if (!empty($custom_field) || $display_empty) {
|
246 |
+
echo $field_label . $custom_field;
|
247 |
+
}
|
248 |
+
}
|
249 |
|
250 |
/**
|
251 |
* Return/Show the current date
|