Version Description
- Initial release
- Forked and extended from original plugin for Jigoshop ("Jigoshop Delivery Notes" at GitHub)
=
Download this release
Release Info
Developer | daveshine |
Plugin | WooCommerce Print Invoice & Delivery Note |
Version | 1.0 |
Comparing to | |
See all releases |
Version 1.0
- delivery-note-template/css/style.css +286 -0
- delivery-note-template/template.php +134 -0
- languages/woocommerce-delivery-notes-de_DE.mo +0 -0
- languages/woocommerce-delivery-notes-de_DE.po +445 -0
- languages/woocommerce-delivery-notes.pot +440 -0
- readme.txt +94 -0
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- wcdn-classes.php +369 -0
- wcdn-help.php +166 -0
- wcdn-print.php +415 -0
- woocommerce-delivery-notes.php +78 -0
delivery-note-template/css/style.css
ADDED
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @description WooCommerce Delivery Notes styles
|
3 |
+
* @since 1.0
|
4 |
+
*
|
5 |
+
* @author David Decker - DECKERWEB
|
6 |
+
* @author-link http://deckerweb.de/
|
7 |
+
* @copyright Copyright 2011, David Decker - DECKERWEB
|
8 |
+
* @license GPLv3
|
9 |
+
* @package WooCommerce Delivery Notes
|
10 |
+
*/
|
11 |
+
|
12 |
+
/* Table of Contents
|
13 |
+
|
14 |
+
* CSS Reset
|
15 |
+
* Delivery Note Page Layout
|
16 |
+
* CSS Media Queries for Print
|
17 |
+
|
18 |
+
*/
|
19 |
+
|
20 |
+
/* CSS Reset (Do not edit)
|
21 |
+
------------------------------------------*/
|
22 |
+
|
23 |
+
/**
|
24 |
+
* @link http://meyerweb.com/eric/tools/css/reset/
|
25 |
+
* @version v2.0 | 20110126
|
26 |
+
* @license none (public domain)
|
27 |
+
*/
|
28 |
+
|
29 |
+
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, table {
|
30 |
+
border: 0 none;
|
31 |
+
font: inherit;
|
32 |
+
margin: 0;
|
33 |
+
padding: 0;
|
34 |
+
vertical-align: baseline;
|
35 |
+
}
|
36 |
+
|
37 |
+
body {
|
38 |
+
line-height: 1;
|
39 |
+
}
|
40 |
+
|
41 |
+
ol,
|
42 |
+
ul {
|
43 |
+
list-style: none;
|
44 |
+
}
|
45 |
+
|
46 |
+
table {
|
47 |
+
border-collapse: collapse;
|
48 |
+
border-spacing: 0;
|
49 |
+
}
|
50 |
+
|
51 |
+
|
52 |
+
/* Delivery Note Page Layout
|
53 |
+
------------------------------------------*/
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Edit all the following rules to your needs
|
57 |
+
*/
|
58 |
+
|
59 |
+
body {
|
60 |
+
background: #fff;
|
61 |
+
color: #000;
|
62 |
+
font-family: sans-serif;
|
63 |
+
font-size: .875em;
|
64 |
+
line-height: 125%;
|
65 |
+
}
|
66 |
+
|
67 |
+
td,
|
68 |
+
th {
|
69 |
+
border: 1px #ccc solid;
|
70 |
+
padding: 3px 5px;
|
71 |
+
vertical-align: top;
|
72 |
+
}
|
73 |
+
|
74 |
+
th {
|
75 |
+
color: #000;
|
76 |
+
font-weight: 700;
|
77 |
+
}
|
78 |
+
|
79 |
+
#container {
|
80 |
+
margin-left: auto;
|
81 |
+
margin-right: auto;
|
82 |
+
padding-left: 80px;
|
83 |
+
padding-right: 80px;
|
84 |
+
padding-top: 40px;
|
85 |
+
text-align: left;
|
86 |
+
width: 900px;
|
87 |
+
}
|
88 |
+
|
89 |
+
#header,
|
90 |
+
#footer {
|
91 |
+
overflow: hidden;
|
92 |
+
padding-bottom: 20px;
|
93 |
+
padding-top: 20px;
|
94 |
+
}
|
95 |
+
|
96 |
+
#footer {
|
97 |
+
margin-top: 40px;
|
98 |
+
}
|
99 |
+
|
100 |
+
/* Options link - "Print Page" */
|
101 |
+
.options a {
|
102 |
+
background-color: #f2f2f2;
|
103 |
+
border: 1px solid #bbb;
|
104 |
+
border-radius: 11px;
|
105 |
+
-webkit-border-radius: 11px;
|
106 |
+
-moz-border-radius: 11px;
|
107 |
+
color: #000;
|
108 |
+
display: block;
|
109 |
+
float: right;
|
110 |
+
font-size: .90em;
|
111 |
+
height: 22px;
|
112 |
+
line-height: 22px;
|
113 |
+
padding-left: 20px;
|
114 |
+
padding-right: 20px;
|
115 |
+
text-decoration: none;
|
116 |
+
}
|
117 |
+
|
118 |
+
.options a:active {
|
119 |
+
background-color: #eee;
|
120 |
+
border: 1px solid #666;
|
121 |
+
}
|
122 |
+
|
123 |
+
#wcdn-head,
|
124 |
+
#order-items,
|
125 |
+
#order-summary {
|
126 |
+
margin-bottom: 60px;
|
127 |
+
}
|
128 |
+
|
129 |
+
#order-info {
|
130 |
+
margin-bottom: 100px;
|
131 |
+
}
|
132 |
+
|
133 |
+
#wcdn-head,
|
134 |
+
#order-info,
|
135 |
+
#order-summary,
|
136 |
+
#order-notes {
|
137 |
+
overflow: hidden;
|
138 |
+
}
|
139 |
+
|
140 |
+
/* Delivery Notes Head - #wcdn-head */
|
141 |
+
#wcdn-head .wcdn-heading {
|
142 |
+
border-bottom: 1px solid #ccc;
|
143 |
+
border-top: 1px solid #ccc;
|
144 |
+
font-size: 1.1em;
|
145 |
+
font-weight: 700;
|
146 |
+
margin-bottom: 15px;
|
147 |
+
padding: 9px 0 6px;
|
148 |
+
text-align: center;
|
149 |
+
text-transform: uppercase;
|
150 |
+
width: 100%;
|
151 |
+
}
|
152 |
+
|
153 |
+
#wcdn-head div {
|
154 |
+
width: 400px;
|
155 |
+
}
|
156 |
+
|
157 |
+
#wcdn-head .company-name {
|
158 |
+
float: left;
|
159 |
+
font-size: 2.5em;
|
160 |
+
line-height: 125%;
|
161 |
+
}
|
162 |
+
|
163 |
+
#wcdn-head .company-info {
|
164 |
+
float: right;
|
165 |
+
text-align: right;
|
166 |
+
}
|
167 |
+
|
168 |
+
/* Order Listing/Info - #order-listing */
|
169 |
+
#order-listing h3 {
|
170 |
+
font-size: 1.1em;
|
171 |
+
font-weight: 700;
|
172 |
+
}
|
173 |
+
|
174 |
+
#order-listing .shipping-info {
|
175 |
+
float: left;
|
176 |
+
margin-left: 20px;
|
177 |
+
width: 350px;
|
178 |
+
}
|
179 |
+
|
180 |
+
#order-listing table {
|
181 |
+
float: right;
|
182 |
+
width: 350px;
|
183 |
+
}
|
184 |
+
|
185 |
+
#order-listing th {
|
186 |
+
width: 165px;
|
187 |
+
}
|
188 |
+
|
189 |
+
/* Order Items - #order-items */
|
190 |
+
#order-items {
|
191 |
+
clear: both;
|
192 |
+
margin-top: 20px;
|
193 |
+
}
|
194 |
+
|
195 |
+
#order-items table {
|
196 |
+
width: 100%;
|
197 |
+
}
|
198 |
+
|
199 |
+
#order-items .description {
|
200 |
+
width: 539px;
|
201 |
+
}
|
202 |
+
|
203 |
+
#order-items .quantity {
|
204 |
+
width: 165px;
|
205 |
+
}
|
206 |
+
|
207 |
+
#order-items .sku,
|
208 |
+
#order-items .weight {
|
209 |
+
color: #666;
|
210 |
+
font-size: 0.85em;
|
211 |
+
font-style: italic;
|
212 |
+
margin-left: 15px;
|
213 |
+
}
|
214 |
+
|
215 |
+
/* Order Summary - #order-summary */
|
216 |
+
#order-summary table {
|
217 |
+
float: right;
|
218 |
+
width: 350px;
|
219 |
+
}
|
220 |
+
|
221 |
+
#order-summary th {
|
222 |
+
width: 165px;
|
223 |
+
}
|
224 |
+
|
225 |
+
#order-summary #total-label,
|
226 |
+
#order-summary #total-number {
|
227 |
+
border-top: 2px solid #999;
|
228 |
+
border-bottom: 3px solid #999;
|
229 |
+
padding-top: 7px;
|
230 |
+
}
|
231 |
+
|
232 |
+
|
233 |
+
/* Order Notes - #order-notes */
|
234 |
+
#order-notes {
|
235 |
+
border-top: 1px solid #ccc;
|
236 |
+
margin-top: 60px;
|
237 |
+
padding-top: 10px;
|
238 |
+
}
|
239 |
+
|
240 |
+
#order-notes .notes-personal,
|
241 |
+
#order-notes .notes-shipping,
|
242 |
+
#order-notes .notes-policies {
|
243 |
+
margin-bottom: 20px;
|
244 |
+
}
|
245 |
+
|
246 |
+
#order-notes .notes-personal {
|
247 |
+
color: #666;
|
248 |
+
font-size: 1.2em;
|
249 |
+
font-style: italic;
|
250 |
+
padding: 10px 20px;
|
251 |
+
/* text-align: center; */
|
252 |
+
}
|
253 |
+
|
254 |
+
#order-notes .notes-shipping,
|
255 |
+
#order-notes .notes-policies {
|
256 |
+
color: #444;
|
257 |
+
/* float: left; */
|
258 |
+
font-size: .95em;
|
259 |
+
line-height: 125%;
|
260 |
+
/* width: 350px; */
|
261 |
+
}
|
262 |
+
|
263 |
+
/* Footer Imprint - #wcdn-footer */
|
264 |
+
#wcdn-footer {
|
265 |
+
border-top: 1px solid #ccc;
|
266 |
+
padding: 10px 20px;
|
267 |
+
}
|
268 |
+
|
269 |
+
#wcdn-footer .wcdn-footer-imprint {
|
270 |
+
color: #666;
|
271 |
+
float: right;
|
272 |
+
font-size: .80em;
|
273 |
+
font-style: italic;
|
274 |
+
text-align: right;
|
275 |
+
}
|
276 |
+
|
277 |
+
|
278 |
+
/* CSS Media Queries for Print
|
279 |
+
------------------------------------------*/
|
280 |
+
|
281 |
+
@media print {
|
282 |
+
#header,
|
283 |
+
#footer {
|
284 |
+
display: none;
|
285 |
+
}
|
286 |
+
}
|
delivery-note-template/template.php
ADDED
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<meta charset="utf-8">
|
5 |
+
<title><?php _e( 'Delivery Note', 'woocommerce-delivery-notes' ); ?></title>
|
6 |
+
<link rel="stylesheet" href="<?php echo wcdn_template_url(); ?>css/style.css" type="text/css" media="screen,print" charset="utf-8"/>
|
7 |
+
<script type="text/javascript">
|
8 |
+
function openPrintWindow() {
|
9 |
+
window.print();
|
10 |
+
}
|
11 |
+
</script>
|
12 |
+
</head>
|
13 |
+
|
14 |
+
<body>
|
15 |
+
<div id="container">
|
16 |
+
<div id="header">
|
17 |
+
<div class="options">
|
18 |
+
<a href="#print" onclick="javascript:openPrintWindow();return false;"><?php _e( 'Print Page', 'woocommerce-delivery-notes' ); ?></a>
|
19 |
+
</div><!-- .entry-content -->
|
20 |
+
</div><!-- #header -->
|
21 |
+
|
22 |
+
<div id="content">
|
23 |
+
<div id="page">
|
24 |
+
<div id="wcdn-head">
|
25 |
+
<div class="wcdn-heading"><?php _e( 'Delivery Note', 'woocommerce-delivery-notes' ); ?></div>
|
26 |
+
<div class="company-name"><?php
|
27 |
+
if ( wcdn_custom_company_name() ) {
|
28 |
+
echo wcdn_custom_company_name();
|
29 |
+
} else {
|
30 |
+
echo wcdn_company_name();
|
31 |
+
} ?></div>
|
32 |
+
<div class="company-info"><?php echo wcdn_company_info(); ?></div>
|
33 |
+
</div>
|
34 |
+
|
35 |
+
<div id="order-listing">
|
36 |
+
<h3><?php _e( 'Recipient:', 'woocommerce-delivery-notes' ); ?></h3>
|
37 |
+
<div class="shipping-info">
|
38 |
+
<br /><?php if( wcdn_shipping_company() ) : ?><?php echo wcdn_shipping_company(); ?><br /><?php endif; ?>
|
39 |
+
<?php echo wcdn_shipping_name(); ?><br />
|
40 |
+
<?php echo wcdn_shipping_address_1(); ?><br />
|
41 |
+
<?php if( wcdn_shipping_address_2() ) : ?><?php echo wcdn_shipping_address_2(); ?><br /><?php endif; ?>
|
42 |
+
<?php echo wcdn_shipping_city(); ?>, <?php echo wcdn_shipping_state(); ?><br />
|
43 |
+
<?php echo wcdn_shipping_postcode(); ?>
|
44 |
+
|
45 |
+
<?php if( wcdn_shipping_country() ) : ?><br /><?php echo wcdn_shipping_country(); ?><?php endif; ?>
|
46 |
+
</div><!-- .shipping-info -->
|
47 |
+
|
48 |
+
<table id="order-info">
|
49 |
+
<tbody>
|
50 |
+
<tr>
|
51 |
+
<th class="order-number-label"><?php _e( 'Order No.', 'woocommerce-delivery-notes' ); ?></th>
|
52 |
+
<td class="order-number"><?php echo wcdn_order_number(); ?></td>
|
53 |
+
</tr>
|
54 |
+
<tr>
|
55 |
+
<th class="order-date-label"><?php _e( 'Order Date', 'woocommerce-delivery-notes' ); ?></th>
|
56 |
+
<td class="order-date"><?php echo wcdn_order_date(); ?></td>
|
57 |
+
</tr>
|
58 |
+
</tbody>
|
59 |
+
</table><!-- #order-info -->
|
60 |
+
</div><!-- #order-listing -->
|
61 |
+
|
62 |
+
<div id="order-items">
|
63 |
+
<table>
|
64 |
+
<thead>
|
65 |
+
<tr>
|
66 |
+
<th class="description" id="description-label"><?php _e( 'Product Name', 'woocommerce-delivery-notes' ); ?></th>
|
67 |
+
<th class="quantity" id="quantity-label"><?php _e( 'Quantity', 'woocommerce-delivery-notes' ); ?></th>
|
68 |
+
<th class="price" id="price-label"><?php _e( 'Price', 'woocommerce-delivery-notes' ); ?></th>
|
69 |
+
</tr>
|
70 |
+
</thead>
|
71 |
+
<tfoot>
|
72 |
+
<?php $items = wcdn_get_order_items(); foreach( $items as $item ) : ?><tr>
|
73 |
+
<td class="description"><?php echo $item['name']; ?><?php if( $item['variation'] ) : ?> <span class="variation"><?php echo $item['variation']; ?></span><?php endif; ?>
|
74 |
+
<?php if( $item['sku'] || $item['weight'] ) : ?><br /><?php endif; ?><?php if( $item['sku'] ) : ?><span class="sku"><?php _e( 'SKU:', 'woocommerce-delivery-notes' ); ?> <?php echo $item['sku']; ?></span><?php endif; ?><?php if( $item['weight'] ) : ?><span class="weight"> <?php _e( 'Weight:', 'woocommerce-delivery-notes' ); ?> <?php echo $item['weight']; ?></span><?php endif; ?></td>
|
75 |
+
<td class="quantity"><?php echo $item['quantity']; ?></td>
|
76 |
+
<td class="price"><?php echo $item['price'] ?></td>
|
77 |
+
<tr><?php endforeach; ?>
|
78 |
+
</tfoot>
|
79 |
+
</table>
|
80 |
+
</div><!-- #order-items -->
|
81 |
+
|
82 |
+
<div id="order-summary">
|
83 |
+
<table>
|
84 |
+
<tbody>
|
85 |
+
<tr>
|
86 |
+
<th class="description" id="subtotal-label"><?php _e( 'Subtotal', 'woocommerce-delivery-notes' ); ?></th>
|
87 |
+
<td class="price" id="subtotal-number"><?php echo wcdn_order_subtotal(); ?></td>
|
88 |
+
</tr>
|
89 |
+
<?php if ( wcdn_has_shipping() ) : ?>
|
90 |
+
<tr>
|
91 |
+
<th class="description" id="tax-label"><?php _e( 'Shipping', 'woocommerce-delivery-notes' ); ?></th>
|
92 |
+
<td class="price" id="tax-number"><?php echo wcdn_order_shipping(); ?></td>
|
93 |
+
</tr>
|
94 |
+
<?php endif; ?>
|
95 |
+
<?php if( wcdn_has_tax() ) : ?>
|
96 |
+
<tr>
|
97 |
+
<th class="description" id="tax-label"><?php _e( 'Tax', 'woocommerce-delivery-notes' ); ?></th>
|
98 |
+
<td class="price" id="tax-number"><?php echo wcdn_order_tax(); ?></td>
|
99 |
+
</tr>
|
100 |
+
<?php endif; ?>
|
101 |
+
<?php if( wcdn_has_discount() ) : ?>
|
102 |
+
<tr>
|
103 |
+
<th class="description" id="tax-label"><?php _e( 'Discount', 'woocommerce-delivery-notes' ); ?></th>
|
104 |
+
<td class="price" id="tax-number"><?php echo wcdn_order_discount(); ?></td>
|
105 |
+
</tr>
|
106 |
+
<?php endif; ?>
|
107 |
+
<tr>
|
108 |
+
<th class="description" id="total-label"><?php _e( 'Grand Total', 'woocommerce-delivery-notes' ); ?></th>
|
109 |
+
<td class="price" id="total-number"><?php echo wcdn_order_total(); ?></td>
|
110 |
+
</tr>
|
111 |
+
</tbody>
|
112 |
+
</table>
|
113 |
+
</div><!-- #order-summery -->
|
114 |
+
|
115 |
+
<div id="order-notes">
|
116 |
+
<div class="notes-personal"><?php echo wcdn_personal_notes(); ?></div>
|
117 |
+
<div class="notes-shipping"><?php echo wcdn_shipping_notes(); ?></div>
|
118 |
+
<div class="notes-policies"><?php echo wcdn_policies_conditions(); ?></div>
|
119 |
+
</div>
|
120 |
+
|
121 |
+
<div id="wcdn-footer">
|
122 |
+
<div class="wcdn-footer-imprint"><?php echo wcdn_footer_imprint(); ?></div>
|
123 |
+
</div>
|
124 |
+
</div><!-- #page -->
|
125 |
+
</div><!-- #content -->
|
126 |
+
|
127 |
+
<div id="footer">
|
128 |
+
<div class="options">
|
129 |
+
<a href="#print" onclick="javascript:openPrintWindow();return false;"><?php _e( 'Print Page', 'woocommerce-delivery-notes' ); ?></a>
|
130 |
+
</div><!-- .options -->
|
131 |
+
</div><!-- #footer -->
|
132 |
+
</div><!-- #container -->
|
133 |
+
</body>
|
134 |
+
</html>
|
languages/woocommerce-delivery-notes-de_DE.mo
ADDED
Binary file
|
languages/woocommerce-delivery-notes-de_DE.po
ADDED
@@ -0,0 +1,445 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This German Language File: Copyright (C) 2011 by David Decker of deckerweb.de & genesisthemes.de
|
2 |
+
# This file is distributed under the same license as the WooCommerce Delivery Notes Plugin package.
|
3 |
+
#
|
4 |
+
# Weitere deutsche Sprachdateien fuer WooCommerce und WordPress sind hier zu finden:
|
5 |
+
# --> http://deckerweb.de/sprachdateien/
|
6 |
+
#
|
7 |
+
msgid ""
|
8 |
+
msgstr ""
|
9 |
+
"Project-Id-Version: WooCommerce Delivery Notes (Plugin, SIE-Version)\n"
|
10 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tags/woocommerce-delivery-notes\n"
|
11 |
+
"POT-Creation-Date: 2011-12-26 14:02+0100\n"
|
12 |
+
"PO-Revision-Date: 2011-12-30 01:43+0100\n"
|
13 |
+
"Last-Translator: David Decker <deckerweb.mobil@googlemail.com>\n"
|
14 |
+
"Language-Team: DECKERWEB <deckerweb.mobil@googlemail.com>\n"
|
15 |
+
"MIME-Version: 1.0\n"
|
16 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
17 |
+
"Content-Transfer-Encoding: 8bit\n"
|
18 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
19 |
+
"X-Poedit-Language: German\n"
|
20 |
+
"X-Poedit-Country: GERMANY\n"
|
21 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
22 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
23 |
+
"X-Textdomain-Support: yes\n"
|
24 |
+
"X-Poedit-SearchPath-0: .\n"
|
25 |
+
|
26 |
+
#@ woocommerce-delivery-notes
|
27 |
+
#: delivery-note-template/template.php:5
|
28 |
+
#: delivery-note-template/template.php:25
|
29 |
+
#: wcdn-classes.php:101
|
30 |
+
msgid "Delivery Note"
|
31 |
+
msgstr "Lieferschein"
|
32 |
+
|
33 |
+
#@ woocommerce-delivery-notes
|
34 |
+
#: delivery-note-template/template.php:18
|
35 |
+
#: delivery-note-template/template.php:129
|
36 |
+
msgid "Print Page"
|
37 |
+
msgstr "Seite ausdrucken"
|
38 |
+
|
39 |
+
#@ woocommerce-delivery-notes
|
40 |
+
#: delivery-note-template/template.php:67
|
41 |
+
msgid "Quantity"
|
42 |
+
msgstr "Menge"
|
43 |
+
|
44 |
+
#@ woocommerce-delivery-notes
|
45 |
+
#: delivery-note-template/template.php:68
|
46 |
+
msgid "Price"
|
47 |
+
msgstr "Preis"
|
48 |
+
|
49 |
+
#@ woocommerce-delivery-notes
|
50 |
+
#: delivery-note-template/template.php:86
|
51 |
+
msgid "Subtotal"
|
52 |
+
msgstr "Zwischensumme"
|
53 |
+
|
54 |
+
#@ woocommerce-delivery-notes
|
55 |
+
#: delivery-note-template/template.php:91
|
56 |
+
msgid "Shipping"
|
57 |
+
msgstr "Versand"
|
58 |
+
|
59 |
+
#@ woocommerce-delivery-notes
|
60 |
+
#: delivery-note-template/template.php:97
|
61 |
+
msgid "Tax"
|
62 |
+
msgstr "Mwst."
|
63 |
+
|
64 |
+
#@ woocommerce-delivery-notes
|
65 |
+
#: delivery-note-template/template.php:103
|
66 |
+
msgid "Discount"
|
67 |
+
msgstr "Rabatt"
|
68 |
+
|
69 |
+
#@ woocommerce-delivery-notes
|
70 |
+
#: delivery-note-template/template.php:108
|
71 |
+
msgid "Grand Total"
|
72 |
+
msgstr "Gesamtsumme"
|
73 |
+
|
74 |
+
#@ woocommerce-delivery-notes
|
75 |
+
#: wcdn-classes.php:144
|
76 |
+
#: wcdn-print.php:27
|
77 |
+
msgid "You do not have sufficient permissions to access this page."
|
78 |
+
msgstr "Sie haben keine ausreichende Rechte, um auf diese Seite zugreifen zu können."
|
79 |
+
|
80 |
+
#@ woocommerce-delivery-notes
|
81 |
+
#: wcdn-classes.php:115
|
82 |
+
msgid "View & Print Delivery Note"
|
83 |
+
msgstr "Lieferschein Anzeigen & Drucken"
|
84 |
+
|
85 |
+
#@ woocommerce-delivery-notes
|
86 |
+
#: wcdn-classes.php:132
|
87 |
+
msgid "Delivery Notes Settings"
|
88 |
+
msgstr "Lieferschein-Einstellungen"
|
89 |
+
|
90 |
+
#@ woocommerce-delivery-notes
|
91 |
+
#: wcdn-classes.php:160
|
92 |
+
msgid "Settings saved."
|
93 |
+
msgstr "Einstellungen gespeichert."
|
94 |
+
|
95 |
+
#@ woocommerce-delivery-notes
|
96 |
+
#: wcdn-classes.php:248
|
97 |
+
msgid "Save Changes"
|
98 |
+
msgstr "Änderungen speichern"
|
99 |
+
|
100 |
+
#@ woocommerce-delivery-notes
|
101 |
+
#. translators: plugin header field 'Name'
|
102 |
+
#: woocommerce-delivery-notes.php:0
|
103 |
+
msgid "WooCommerce Delivery Notes"
|
104 |
+
msgstr "WooCommerce Lieferscheine"
|
105 |
+
|
106 |
+
#@ woocommerce-delivery-notes
|
107 |
+
#. translators: plugin header field 'PluginURI'
|
108 |
+
#: woocommerce-delivery-notes.php:0
|
109 |
+
msgid "http://genesisthemes.de/en/wp-plugins/woocommerce-delivery-notes/"
|
110 |
+
msgstr "http://genesisthemes.de/plugins/woocommerce-delivery-notes/"
|
111 |
+
|
112 |
+
#@ woocommerce-delivery-notes
|
113 |
+
#. translators: plugin header field 'Author'
|
114 |
+
#: woocommerce-delivery-notes.php:0
|
115 |
+
msgid "David Decker - DECKERWEB"
|
116 |
+
msgstr "David Decker - DECKERWEB.de"
|
117 |
+
|
118 |
+
#@ woocommerce-delivery-notes
|
119 |
+
#. translators: plugin header field 'AuthorURI'
|
120 |
+
#: woocommerce-delivery-notes.php:0
|
121 |
+
msgid "http://deckerweb.de/"
|
122 |
+
msgstr "http://deckerweb.de/"
|
123 |
+
|
124 |
+
#@ woocommerce-delivery-notes
|
125 |
+
#. translators: plugin header field 'Version'
|
126 |
+
#: woocommerce-delivery-notes.php:0
|
127 |
+
msgid "1.0"
|
128 |
+
msgstr "1.0"
|
129 |
+
|
130 |
+
#@ woocommerce-delivery-notes
|
131 |
+
#: woocommerce-delivery-notes.php:48
|
132 |
+
msgid "Go to the settings page"
|
133 |
+
msgstr "Zur Einstellungsseite des Plugins"
|
134 |
+
|
135 |
+
#@ woocommerce-delivery-notes
|
136 |
+
#: woocommerce-delivery-notes.php:48
|
137 |
+
msgid "Settings"
|
138 |
+
msgstr "Einstellungen"
|
139 |
+
|
140 |
+
#@ woocommerce-delivery-notes
|
141 |
+
#: wcdn-help.php:23
|
142 |
+
msgid "FAQ"
|
143 |
+
msgstr "FAQ - Häufige Fragen"
|
144 |
+
|
145 |
+
#@ woocommerce-delivery-notes
|
146 |
+
#: wcdn-help.php:24
|
147 |
+
msgid "Support"
|
148 |
+
msgstr "Hilfe und Unterstützung (Support)"
|
149 |
+
|
150 |
+
#@ woocommerce-delivery-notes
|
151 |
+
#: wcdn-help.php:25
|
152 |
+
#: wcdn-help.php:147
|
153 |
+
msgid "http://genesisthemes.de/en/donate/"
|
154 |
+
msgstr "http://genesisthemes.de/spenden/"
|
155 |
+
|
156 |
+
#@ woocommerce-delivery-notes
|
157 |
+
#: wcdn-help.php:25
|
158 |
+
msgid "Donate"
|
159 |
+
msgstr "Spenden"
|
160 |
+
|
161 |
+
#@ woocommerce-delivery-notes
|
162 |
+
#: delivery-note-template/template.php:66
|
163 |
+
msgid "Product Name"
|
164 |
+
msgstr "Produktbezeichnung"
|
165 |
+
|
166 |
+
#@ woocommerce-delivery-notes
|
167 |
+
#: wcdn-classes.php:194
|
168 |
+
msgid "Company/Shop Address:"
|
169 |
+
msgstr "Firmen-/ Shop-Anschrift:"
|
170 |
+
|
171 |
+
#@ woocommerce-delivery-notes
|
172 |
+
#: wcdn-classes.php:207
|
173 |
+
msgid "Personal Notes:"
|
174 |
+
msgstr "Persönliche Anmerkungen:"
|
175 |
+
|
176 |
+
#@ woocommerce-delivery-notes
|
177 |
+
#: wcdn-classes.php:220
|
178 |
+
msgid "Returns Policy, Conditions, etc.:"
|
179 |
+
msgstr "Rückgabe- und sonstige Bedingungen:"
|
180 |
+
|
181 |
+
#@ woocommerce-delivery-notes
|
182 |
+
#: wcdn-classes.php:233
|
183 |
+
msgid "Footer Imprint:"
|
184 |
+
msgstr "Fußzeile Impressum:"
|
185 |
+
|
186 |
+
#@ woocommerce-delivery-notes
|
187 |
+
#: delivery-note-template/template.php:36
|
188 |
+
msgid "Recipient:"
|
189 |
+
msgstr "Empfänger:"
|
190 |
+
|
191 |
+
#@ woocommerce-delivery-notes
|
192 |
+
#: delivery-note-template/template.php:51
|
193 |
+
msgid "Order No."
|
194 |
+
msgstr "Bestell-Nr."
|
195 |
+
|
196 |
+
#@ woocommerce-delivery-notes
|
197 |
+
#: delivery-note-template/template.php:55
|
198 |
+
msgid "Order Date"
|
199 |
+
msgstr "Bestelldatum"
|
200 |
+
|
201 |
+
#@ woocommerce-delivery-notes
|
202 |
+
#: delivery-note-template/template.php:74
|
203 |
+
msgid "SKU:"
|
204 |
+
msgstr "Art.-Nr.:"
|
205 |
+
|
206 |
+
#@ woocommerce-delivery-notes
|
207 |
+
#: delivery-note-template/template.php:74
|
208 |
+
msgid "Weight:"
|
209 |
+
msgstr "Gewicht:"
|
210 |
+
|
211 |
+
#@ woocommerce-delivery-notes
|
212 |
+
#: wcdn-help.php:69
|
213 |
+
#: wcdn-help.php:110
|
214 |
+
msgid "What the Plugin Does"
|
215 |
+
msgstr "Was das Plugin bewirkt"
|
216 |
+
|
217 |
+
#@ woocommerce-delivery-notes
|
218 |
+
#: wcdn-help.php:74
|
219 |
+
#: wcdn-help.php:121
|
220 |
+
msgid "FAQ - Frequently Asked Questions"
|
221 |
+
msgstr "FAQ - Häufig gestellte Fragen"
|
222 |
+
|
223 |
+
#@ woocommerce-delivery-notes
|
224 |
+
#: wcdn-help.php:84
|
225 |
+
#: wcdn-help.php:158
|
226 |
+
msgid "Author - License"
|
227 |
+
msgstr "Autor - Lizenz"
|
228 |
+
|
229 |
+
#@ woocommerce-delivery-notes
|
230 |
+
#: wcdn-help.php:79
|
231 |
+
#: wcdn-help.php:146
|
232 |
+
msgid "Support - Donations - Rating & Tips"
|
233 |
+
msgstr "Hilfe & Unterstützung - Spenden - Bewertung & Tipps"
|
234 |
+
|
235 |
+
#@ woocommerce-delivery-notes
|
236 |
+
#: wcdn-help.php:108
|
237 |
+
#: wcdn-help.php:119
|
238 |
+
#: wcdn-help.php:144
|
239 |
+
#: wcdn-help.php:156
|
240 |
+
msgid "Plugin: WooCommerce Delivery Notes"
|
241 |
+
msgstr "Plugin: WooCommerce Lieferscheine"
|
242 |
+
|
243 |
+
#@ woocommerce-delivery-notes
|
244 |
+
#: wcdn-help.php:111
|
245 |
+
msgid "This plugin enables you to add a simple Delivery Note page for printing for your orders in WooCommerce shop plugin. You can add your company postal address, further add personal notes, refund or other policies and a footer note/branding. This helps speed up your daily shop and order management. In some countries (e.g. in the European Union) it is also required to advice the customer with proper refund policies so this little plugin might help you a bit with that too."
|
246 |
+
msgstr "Dieses Plugin ermöglicht es, einen einfachen Lieferschein zum Ausdrucken für das WooCommerce Shop-Plugin zu erhalten. Sie können Ihre Firmen-/ Shop-Informationen, ebenso persönliche Anmerkungen, weiterhin Bedingungen/ Widerrufbelehrung u.Ä. sowie eine Fußzeile (Impressum/ Branding) hinzufügen. Damit beschleunigen Sie die tägliche Shop-Verwaltung. Da in Ländern der Europäischen Union oftmals vorgeschrieben ist, Widerrufsbelehrungen u.Ä. der Bestellung beizulegen, können Sie dies hiermit besser erfüllen und außerdem Ihren Kunden bequem die Bestell-Infos in die Hand geben."
|
247 |
+
|
248 |
+
#@ woocommerce-delivery-notes
|
249 |
+
#: wcdn-help.php:147
|
250 |
+
#, php-format
|
251 |
+
msgid "<strong>Donations:</strong> Please %1$sdonate to support the further maintenance and development%2$s of the plugin. <em>Thank you in advance!</em>"
|
252 |
+
msgstr "<strong>Spenden:</strong> Bitte %1$sspenden für die weitere Pflege und Entwicklung dieses Plugins%2$s. <em>Bereits im Voraus vielen Dank für jede Unterstützung!</em>"
|
253 |
+
|
254 |
+
#@ woocommerce-delivery-notes
|
255 |
+
#: wcdn-help.php:148
|
256 |
+
#, php-format
|
257 |
+
msgid "<strong>Support:</strong> Done via %1$sWordPress.org plugin page support forum%2$s. - Maybe I will setup my own support forum in the future, though."
|
258 |
+
msgstr "<strong>Unterstützung (Support):</strong> Erfolgt via %1$sWordPress.org Plugin-Supportforum%2$s. - Hinweis: Eventuell wird es in Zukunft ein eigenes Supportforum geben."
|
259 |
+
|
260 |
+
#@ woocommerce-delivery-notes
|
261 |
+
#: wcdn-classes.php:181
|
262 |
+
msgid "Company/Shop Name:"
|
263 |
+
msgstr "Firmen-/ Shop-Name:"
|
264 |
+
|
265 |
+
#@ woocommerce-delivery-notes
|
266 |
+
#. translators: plugin header field 'Description'
|
267 |
+
#: woocommerce-delivery-notes.php:0
|
268 |
+
msgid "This plugin adds simple Delivery Notes for the WooCommerce Shop Plugin. You can add company/shop info as well as personal notes and policies to the print page."
|
269 |
+
msgstr "Dieses Plugin stellt einfache Lieferscheine für das WooCommerce Shop Plugin bereit. Es können dabei auch Firmen-/ Shop-Infos ebenso wie persönliche Anmerkungen oder Bedingungen/ Widerrufsbelehrungen zur Druckseite hinzugefügt werden."
|
270 |
+
|
271 |
+
#@ woocommerce-delivery-notes
|
272 |
+
#: wcdn-classes.php:186
|
273 |
+
msgid "Your custom company or shop name for the Delivery Note."
|
274 |
+
msgstr "Ihr benutzerdefinierter Firmen- oder Shop-Name für den Lieferschein."
|
275 |
+
|
276 |
+
#@ woocommerce-delivery-notes
|
277 |
+
#: wcdn-classes.php:187
|
278 |
+
#: wcdn-classes.php:200
|
279 |
+
#: wcdn-classes.php:213
|
280 |
+
#: wcdn-classes.php:226
|
281 |
+
#: wcdn-classes.php:239
|
282 |
+
msgid "Note:"
|
283 |
+
msgstr "Hinweis:"
|
284 |
+
|
285 |
+
#@ woocommerce-delivery-notes
|
286 |
+
#: wcdn-classes.php:188
|
287 |
+
msgid "Leave blank to use your default Website/ Blog title defined in WordPress settings."
|
288 |
+
msgstr "Leer lassen, um den standardmäßigen Webseiten- bzw. Blogtitel zu verwenden, der in den WordPress-Einstellungen festgelegt wird."
|
289 |
+
|
290 |
+
#@ woocommerce-delivery-notes
|
291 |
+
#: wcdn-classes.php:199
|
292 |
+
msgid "The postal address of the company/shop, which gets printed right of the company/shop name, above the order listings."
|
293 |
+
msgstr "Die Postanschrift der Firma bzw. des Shops, welche rechts neben dem Firmen-/ Shopname ausgegeben wird, über den Bestelldaten."
|
294 |
+
|
295 |
+
#@ woocommerce-delivery-notes
|
296 |
+
#: wcdn-classes.php:201
|
297 |
+
msgid "Here, you can also add some other contact information like the telephone and email."
|
298 |
+
msgstr "Hier können Sie ebenfalls weitere Kontaktinformationen wie etwa Telefon oder E-Mail-Adresse angeben."
|
299 |
+
|
300 |
+
#@ woocommerce-delivery-notes
|
301 |
+
#: wcdn-classes.php:212
|
302 |
+
msgid "Add some personal notes, or season greetings or whatever (e.g. Thank You for Your Order!, Merry Christmas!, etc.)."
|
303 |
+
msgstr "Fügen Sie einige persönliche Anmerkungen wie Dank, jahreszeitliche Grüße hinzu (z.B.: Danke für Ihre Bestellung!, Frohe Weihnachten!, etc.)."
|
304 |
+
|
305 |
+
#@ woocommerce-delivery-notes
|
306 |
+
#: wcdn-classes.php:214
|
307 |
+
msgid "This info gets printed below the order listings but above the regular shipping notes (added at WooCommerce single order pages). These personal notes here will get styled with bigger font size."
|
308 |
+
msgstr "Diese Informationen werden direkt unter den Bestelldaten ausgegeben, aber über den regulären Bestellnotizen (die auf den WooCommerce-Bestellseiten hinzugefügt werden). Diese persönlichen Anmerkungen werden etwas hervorgehobener dargestellt, insbesondere mit etwas größerer Schriftgröße."
|
309 |
+
|
310 |
+
#@ woocommerce-delivery-notes
|
311 |
+
#: wcdn-classes.php:225
|
312 |
+
msgid "Here you can add some more policies, conditions etc. For example add a returns policy in case the client would like to send back some goods."
|
313 |
+
msgstr "Hier können Sie einige weitere Bedingungen angeben. Zum Beispiel Bedingungen für die Rückgabe, Widerrufsbelehrung etc."
|
314 |
+
|
315 |
+
#@ woocommerce-delivery-notes
|
316 |
+
#: wcdn-classes.php:227
|
317 |
+
msgid "In some countries (e.g. in the European Union) this is required so please add any required info in accordance with the statutory regulations."
|
318 |
+
msgstr "In einigen Ländern (z.B. innerhalb der EU) ist dies sogar vorgeschrieben - informieren Sie sich daher über die entsprechenden gesetzlichen Bestimmungen für Ihr Land."
|
319 |
+
|
320 |
+
#@ woocommerce-delivery-notes
|
321 |
+
#: wcdn-classes.php:238
|
322 |
+
msgid "Add some further footer imprint, copyright notes etc. to get the printed sheets a bit more branded to your needs."
|
323 |
+
msgstr "Fügen Sie Impressumangaben in der Fußzeile hinzu. Damit können die Ausdrucke noch stärker an Ihr CI bzw. rechtliche Anforderungen angepasst werden."
|
324 |
+
|
325 |
+
#@ woocommerce-delivery-notes
|
326 |
+
#: wcdn-classes.php:240
|
327 |
+
msgid " This footer info gets printed in lower font size and a bit lighter text color."
|
328 |
+
msgstr "Diese Informationen werden in kleinerer Schriftgröße und hellerer Textfarbe am Fuß ausgegeben."
|
329 |
+
|
330 |
+
#@ woocommerce-delivery-notes
|
331 |
+
#: wcdn-classes.php:170
|
332 |
+
msgid "WooCommerce - Delivery Notes Settings"
|
333 |
+
msgstr "WooCommerce - Lieferschein-Einstellungen"
|
334 |
+
|
335 |
+
#@ woocommerce-delivery-notes
|
336 |
+
#: wcdn-classes.php:172
|
337 |
+
msgid "All setting fields below are optional - you can leave them empty to not use them at all or only apply what you need."
|
338 |
+
msgstr "Alle Einstellungsfelder unten sind optional - Felder, die leer bleiben, erscheinen dann nicht auf dem Lieferschein."
|
339 |
+
|
340 |
+
#@ woocommerce-delivery-notes
|
341 |
+
#: wcdn-help.php:90
|
342 |
+
msgid "Feedback and more about the Author"
|
343 |
+
msgstr "Feedback und mehr über den Autor"
|
344 |
+
|
345 |
+
#@ woocommerce-delivery-notes
|
346 |
+
#: wcdn-help.php:92
|
347 |
+
msgid "Social:"
|
348 |
+
msgstr "Soziale Netzwerke:"
|
349 |
+
|
350 |
+
#@ woocommerce-delivery-notes
|
351 |
+
#: wcdn-help.php:92
|
352 |
+
msgid "Twitter"
|
353 |
+
msgstr "Twitter"
|
354 |
+
|
355 |
+
#@ woocommerce-delivery-notes
|
356 |
+
#: wcdn-help.php:92
|
357 |
+
msgid "Facebook"
|
358 |
+
msgstr "Facebook"
|
359 |
+
|
360 |
+
#@ woocommerce-delivery-notes
|
361 |
+
#: wcdn-help.php:92
|
362 |
+
msgid "Google+"
|
363 |
+
msgstr "Google+"
|
364 |
+
|
365 |
+
#@ woocommerce-delivery-notes
|
366 |
+
#: wcdn-help.php:112
|
367 |
+
#, php-format
|
368 |
+
msgid "Just look under <a href=\"%1$s\">WooCommerce > Orders</a> and there go to a single order view. On the right side you will see the Delivery Note meta box. Click and you get the delivery Note printing page. Yes, it is that easy :-)."
|
369 |
+
msgstr "Schauen Sie einfach unter <a href=\"%1$s\">WooCommerce > Bestellungen</a> und rufen Sie dort eine einzelne Bestellung auf. Auf rechten Seite erscheint die <em>Lieferschein</em>-Metabox. Klicken Sie dort und es öffnet sich der Lieferschein zum Ausdrucken. Das ist schon alles :-)."
|
370 |
+
|
371 |
+
#@ woocommerce-delivery-notes
|
372 |
+
#: wcdn-help.php:124
|
373 |
+
#: wcdn-help.php:132
|
374 |
+
msgid "Question:"
|
375 |
+
msgstr "Frage:"
|
376 |
+
|
377 |
+
#@ woocommerce-delivery-notes
|
378 |
+
#: wcdn-help.php:126
|
379 |
+
#: wcdn-help.php:134
|
380 |
+
msgid "Answer:"
|
381 |
+
msgstr "Antwort:"
|
382 |
+
|
383 |
+
#@ woocommerce-delivery-notes
|
384 |
+
#: wcdn-help.php:149
|
385 |
+
#, php-format
|
386 |
+
msgid "<strong>Rating & Tips:</strong> If you like the plugin please %1$srate at WordPress.org%2$s with 5 stars. <em>Thank you!</em> — %3$sMore plugins for WordPress by DECKERWEB%2$s"
|
387 |
+
msgstr "<strong>Bewerten & Tipps:</strong> Wenn das Plugin gefällt, einfach %1$sbei WordPress.org%2$s mit 5 Sternen bewerten. <em>Vielen Dank! :)</em> — %3$sMehr Plugins für Genesis von DECKERWEB%2$s"
|
388 |
+
|
389 |
+
#@ woocommerce-delivery-notes
|
390 |
+
#: wcdn-help.php:159
|
391 |
+
#, php-format
|
392 |
+
msgid "<strong>Author:</strong> David Decker of %1$sdeckerweb.de%2$s and %3$sGenesisThemes%2$s - Join me at %4$sTwitter%2$s, %5$sFacebook%2$s and %6$sGoogle Plus%2$s :-)"
|
393 |
+
msgstr "<strong>Autor:</strong> David Decker von %1$sdeckerweb.de%2$s und %3$sGenesisThemes.de%2$s - Mich unterstützen bei %4$sTwitter%2$s, %5$sFacebook%2$s und %6$sGoogle Plus%2$s :-)"
|
394 |
+
|
395 |
+
#@ woocommerce-delivery-notes
|
396 |
+
#: wcdn-help.php:160
|
397 |
+
#, php-format
|
398 |
+
msgid "<strong>License:</strong> GPL v3 - %1$sMore info on the GPL license ...%2$s"
|
399 |
+
msgstr "<strong>Lizenz:</strong> GPL v3 - %1$sMehr Informationen zur GPL-Lizenz (Engl.) ...%2$s"
|
400 |
+
|
401 |
+
#@ woocommerce-delivery-notes
|
402 |
+
#: wcdn-help.php:91
|
403 |
+
msgid "Website"
|
404 |
+
msgstr "Webseite"
|
405 |
+
|
406 |
+
#@ woocommerce-delivery-notes
|
407 |
+
#: wcdn-help.php:93
|
408 |
+
msgid "at WordPress.org"
|
409 |
+
msgstr "bei WordPress.org"
|
410 |
+
|
411 |
+
#@ woocommerce-delivery-notes
|
412 |
+
#: wcdn-help.php:91
|
413 |
+
msgid "http://genesisthemes.de/en/"
|
414 |
+
msgstr "http://deckerweb.de/"
|
415 |
+
|
416 |
+
#@ woocommerce-delivery-notes
|
417 |
+
#: wcdn-help.php:125
|
418 |
+
msgid "Can I use a Custom Template for the printing page?"
|
419 |
+
msgstr "Kann ein benutzerdefiniertes Template für die Lieferschein-Druckseite verwendet werden?"
|
420 |
+
|
421 |
+
#@ woocommerce-delivery-notes
|
422 |
+
#: wcdn-help.php:128
|
423 |
+
msgid "Note: This works with both single themes and child themes (if you use some framework like Genesis). If your current active theme is a child theme put the custom folder there! (e.g. <code>/wp-content/themes/your-child-theme-name/woocommerce</code>)"
|
424 |
+
msgstr "Hinweis: Dies funktioniert mit beiden, Single-Themes und Child Themes (wenn Frameworks wie etwa Genesis verwendet werden). Wenn Ihr derzeit aktives Theme ein Child Theme ist, fügen Sie den benutzerdefinierten Ordner dort ein! (z.B. <code>/wp-content/themes/ihr-child-theme-name/woocommerce</code>)"
|
425 |
+
|
426 |
+
#@ woocommerce-delivery-notes
|
427 |
+
#: wcdn-help.php:133
|
428 |
+
msgid "What Template Functions can I use?"
|
429 |
+
msgstr "Welche Template-Funktionen können verwendet werden?"
|
430 |
+
|
431 |
+
#@ woocommerce-delivery-notes
|
432 |
+
#: wcdn-help.php:127
|
433 |
+
msgid "If you want to use your own template then all you need to do is copy the <code>/wp-content/plugins/woocommerce-delivery-notes/delivery-note-template</code> folder and paste it inside your <code>/wp-content/themes/your-theme-name/woocommerce</code> folder (if not there just create it). The folder from the plugin comes with the default template and the basic CSS stylesheet file. You can modifiy this to fit your own needs."
|
434 |
+
msgstr "Wenn Sie Ihr eigenes Template verwenden wollen, müssen Sie den entsprechenden Ordner <code>/wp-content/plugins/woocommerce-delivery-notes/delivery-note-template</code> in Ihren Theme-Ordner kopieren <code>/wp-content/themes/ihr-theme-name/woocommerce</code>. Falls es diesen noch nicht gibt, einfach erstellen. Der Plugin-Ordner enthält das Standard-Template und das CSS-Stylesheet. Beide können an eigene Bedürfnisse angepasst werden."
|
435 |
+
|
436 |
+
#@ woocommerce-delivery-notes
|
437 |
+
#: wcdn-help.php:136
|
438 |
+
msgid "Important note: This is only intended for developers who know what they do! Please be careful with adding any code/functions! The default template and functions should fit most use cases."
|
439 |
+
msgstr "Wichtiger Hinweis: Dies wird nur empfohlen für Entwickler, die wissen, was sie tun! Bitte seien Sie vorsichtig beim Hinzufügen eigener Codes bzw. Funktionen! Das Standard-Template sollte für die meisten Anwendungsfälle bereits ausreichen."
|
440 |
+
|
441 |
+
#@ woocommerce-delivery-notes
|
442 |
+
#: wcdn-help.php:135
|
443 |
+
msgid "Arbitrary php code and all WordPress functions are available in the template. Besides that there are many Delivery Notes specific template functions. Open the <code>woocommerce-delivery-notes/wcdn-print.php</code> file to see all available functions."
|
444 |
+
msgstr "Im Template sind alle WordPress-Funktionen und beliebiger PHP-Code verfügbar. Außerdem sind viele Lieferschein-spezifische Template-Funktionen verfügbar. Diese sind in der Plugin-Datei <code>woocommerce-delivery-notes/wcdn-print.php</code> zu finden bzw. dokumentiert."
|
445 |
+
|
languages/woocommerce-delivery-notes.pot
ADDED
@@ -0,0 +1,440 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This German Language File: Copyright (C) 2011 by David Decker of deckerweb.de & genesisthemes.de
|
2 |
+
# This file is distributed under the same license as the WooCommerce Delivery Notes Plugin package.
|
3 |
+
#
|
4 |
+
msgid ""
|
5 |
+
msgstr ""
|
6 |
+
"Project-Id-Version: WooCommerce Delivery Notes\n"
|
7 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tags/woocommerce-delivery-notes\n"
|
8 |
+
"POT-Creation-Date: 2011-12-26 14:02+0100\n"
|
9 |
+
"PO-Revision-Date: \n"
|
10 |
+
"Last-Translator: \n"
|
11 |
+
"Language-Team: \n"
|
12 |
+
"MIME-Version: 1.0\n"
|
13 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
+
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
17 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
18 |
+
"X-Textdomain-Support: yes\n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
|
21 |
+
#@ woocommerce-delivery-notes
|
22 |
+
#: delivery-note-template/template.php:5
|
23 |
+
#: delivery-note-template/template.php:25
|
24 |
+
#: wcdn-classes.php:101
|
25 |
+
msgid "Delivery Note"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#@ woocommerce-delivery-notes
|
29 |
+
#: delivery-note-template/template.php:18
|
30 |
+
#: delivery-note-template/template.php:129
|
31 |
+
msgid "Print Page"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#@ woocommerce-delivery-notes
|
35 |
+
#: delivery-note-template/template.php:67
|
36 |
+
msgid "Quantity"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#@ woocommerce-delivery-notes
|
40 |
+
#: delivery-note-template/template.php:68
|
41 |
+
msgid "Price"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#@ woocommerce-delivery-notes
|
45 |
+
#: delivery-note-template/template.php:86
|
46 |
+
msgid "Subtotal"
|
47 |
+
msgstr ""
|
48 |
+
|
49 |
+
#@ woocommerce-delivery-notes
|
50 |
+
#: delivery-note-template/template.php:91
|
51 |
+
msgid "Shipping"
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#@ woocommerce-delivery-notes
|
55 |
+
#: delivery-note-template/template.php:97
|
56 |
+
msgid "Tax"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#@ woocommerce-delivery-notes
|
60 |
+
#: delivery-note-template/template.php:103
|
61 |
+
msgid "Discount"
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#@ woocommerce-delivery-notes
|
65 |
+
#: delivery-note-template/template.php:108
|
66 |
+
msgid "Grand Total"
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#@ woocommerce-delivery-notes
|
70 |
+
#: wcdn-classes.php:144
|
71 |
+
#: wcdn-print.php:27
|
72 |
+
msgid "You do not have sufficient permissions to access this page."
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#@ woocommerce-delivery-notes
|
76 |
+
#: wcdn-classes.php:115
|
77 |
+
msgid "View & Print Delivery Note"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#@ woocommerce-delivery-notes
|
81 |
+
#: wcdn-classes.php:132
|
82 |
+
msgid "Delivery Notes Settings"
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#@ woocommerce-delivery-notes
|
86 |
+
#: wcdn-classes.php:160
|
87 |
+
msgid "Settings saved."
|
88 |
+
msgstr ""
|
89 |
+
|
90 |
+
#@ woocommerce-delivery-notes
|
91 |
+
#: wcdn-classes.php:248
|
92 |
+
msgid "Save Changes"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#@ woocommerce-delivery-notes
|
96 |
+
#. translators: plugin header field 'Name'
|
97 |
+
#: woocommerce-delivery-notes.php:0
|
98 |
+
msgid "WooCommerce Delivery Notes"
|
99 |
+
msgstr ""
|
100 |
+
|
101 |
+
#@ woocommerce-delivery-notes
|
102 |
+
#. translators: plugin header field 'PluginURI'
|
103 |
+
#: woocommerce-delivery-notes.php:0
|
104 |
+
msgid "http://genesisthemes.de/en/wp-plugins/woocommerce-delivery-notes/"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#@ woocommerce-delivery-notes
|
108 |
+
#. translators: plugin header field 'Author'
|
109 |
+
#: woocommerce-delivery-notes.php:0
|
110 |
+
msgid "David Decker - DECKERWEB"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#@ woocommerce-delivery-notes
|
114 |
+
#. translators: plugin header field 'AuthorURI'
|
115 |
+
#: woocommerce-delivery-notes.php:0
|
116 |
+
msgid "http://deckerweb.de/"
|
117 |
+
msgstr ""
|
118 |
+
|
119 |
+
#@ woocommerce-delivery-notes
|
120 |
+
#. translators: plugin header field 'Version'
|
121 |
+
#: woocommerce-delivery-notes.php:0
|
122 |
+
msgid "1.0"
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#@ woocommerce-delivery-notes
|
126 |
+
#: woocommerce-delivery-notes.php:48
|
127 |
+
msgid "Go to the settings page"
|
128 |
+
msgstr ""
|
129 |
+
|
130 |
+
#@ woocommerce-delivery-notes
|
131 |
+
#: woocommerce-delivery-notes.php:48
|
132 |
+
msgid "Settings"
|
133 |
+
msgstr ""
|
134 |
+
|
135 |
+
#@ woocommerce-delivery-notes
|
136 |
+
#: wcdn-help.php:23
|
137 |
+
msgid "FAQ"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#@ woocommerce-delivery-notes
|
141 |
+
#: wcdn-help.php:24
|
142 |
+
msgid "Support"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#@ woocommerce-delivery-notes
|
146 |
+
#: wcdn-help.php:25
|
147 |
+
#: wcdn-help.php:147
|
148 |
+
msgid "http://genesisthemes.de/en/donate/"
|
149 |
+
msgstr ""
|
150 |
+
|
151 |
+
#@ woocommerce-delivery-notes
|
152 |
+
#: wcdn-help.php:25
|
153 |
+
msgid "Donate"
|
154 |
+
msgstr ""
|
155 |
+
|
156 |
+
#@ woocommerce-delivery-notes
|
157 |
+
#: delivery-note-template/template.php:66
|
158 |
+
msgid "Product Name"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#@ woocommerce-delivery-notes
|
162 |
+
#: wcdn-classes.php:194
|
163 |
+
msgid "Company/Shop Address:"
|
164 |
+
msgstr ""
|
165 |
+
|
166 |
+
#@ woocommerce-delivery-notes
|
167 |
+
#: wcdn-classes.php:207
|
168 |
+
msgid "Personal Notes:"
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#@ woocommerce-delivery-notes
|
172 |
+
#: wcdn-classes.php:220
|
173 |
+
msgid "Returns Policy, Conditions, etc.:"
|
174 |
+
msgstr ""
|
175 |
+
|
176 |
+
#@ woocommerce-delivery-notes
|
177 |
+
#: wcdn-classes.php:233
|
178 |
+
msgid "Footer Imprint:"
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#@ woocommerce-delivery-notes
|
182 |
+
#: delivery-note-template/template.php:36
|
183 |
+
msgid "Recipient:"
|
184 |
+
msgstr ""
|
185 |
+
|
186 |
+
#@ woocommerce-delivery-notes
|
187 |
+
#: delivery-note-template/template.php:51
|
188 |
+
msgid "Order No."
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#@ woocommerce-delivery-notes
|
192 |
+
#: delivery-note-template/template.php:55
|
193 |
+
msgid "Order Date"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#@ woocommerce-delivery-notes
|
197 |
+
#: delivery-note-template/template.php:74
|
198 |
+
msgid "SKU:"
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#@ woocommerce-delivery-notes
|
202 |
+
#: delivery-note-template/template.php:74
|
203 |
+
msgid "Weight:"
|
204 |
+
msgstr ""
|
205 |
+
|
206 |
+
#@ woocommerce-delivery-notes
|
207 |
+
#: wcdn-help.php:69
|
208 |
+
#: wcdn-help.php:110
|
209 |
+
msgid "What the Plugin Does"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#@ woocommerce-delivery-notes
|
213 |
+
#: wcdn-help.php:74
|
214 |
+
#: wcdn-help.php:121
|
215 |
+
msgid "FAQ - Frequently Asked Questions"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#@ woocommerce-delivery-notes
|
219 |
+
#: wcdn-help.php:84
|
220 |
+
#: wcdn-help.php:158
|
221 |
+
msgid "Author - License"
|
222 |
+
msgstr ""
|
223 |
+
|
224 |
+
#@ woocommerce-delivery-notes
|
225 |
+
#: wcdn-help.php:79
|
226 |
+
#: wcdn-help.php:146
|
227 |
+
msgid "Support - Donations - Rating & Tips"
|
228 |
+
msgstr ""
|
229 |
+
|
230 |
+
#@ woocommerce-delivery-notes
|
231 |
+
#: wcdn-help.php:108
|
232 |
+
#: wcdn-help.php:119
|
233 |
+
#: wcdn-help.php:144
|
234 |
+
#: wcdn-help.php:156
|
235 |
+
msgid "Plugin: WooCommerce Delivery Notes"
|
236 |
+
msgstr ""
|
237 |
+
|
238 |
+
#@ woocommerce-delivery-notes
|
239 |
+
#: wcdn-help.php:111
|
240 |
+
msgid "This plugin enables you to add a simple Delivery Note page for printing for your orders in WooCommerce shop plugin. You can add your company postal address, further add personal notes, refund or other policies and a footer note/branding. This helps speed up your daily shop and order management. In some countries (e.g. in the European Union) it is also required to advice the customer with proper refund policies so this little plugin might help you a bit with that too."
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#@ woocommerce-delivery-notes
|
244 |
+
#: wcdn-help.php:147
|
245 |
+
#, php-format
|
246 |
+
msgid "<strong>Donations:</strong> Please %1$sdonate to support the further maintenance and development%2$s of the plugin. <em>Thank you in advance!</em>"
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
+
#@ woocommerce-delivery-notes
|
250 |
+
#: wcdn-help.php:148
|
251 |
+
#, php-format
|
252 |
+
msgid "<strong>Support:</strong> Done via %1$sWordPress.org plugin page support forum%2$s. - Maybe I will setup my own support forum in the future, though."
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#@ woocommerce-delivery-notes
|
256 |
+
#: wcdn-classes.php:181
|
257 |
+
msgid "Company/Shop Name:"
|
258 |
+
msgstr ""
|
259 |
+
|
260 |
+
#@ woocommerce-delivery-notes
|
261 |
+
#. translators: plugin header field 'Description'
|
262 |
+
#: woocommerce-delivery-notes.php:0
|
263 |
+
msgid "This plugin adds simple Delivery Notes for the WooCommerce Shop Plugin. You can add company/shop info as well as personal notes and policies to the print page."
|
264 |
+
msgstr ""
|
265 |
+
|
266 |
+
#@ woocommerce-delivery-notes
|
267 |
+
#: wcdn-classes.php:186
|
268 |
+
msgid "Your custom company or shop name for the Delivery Note."
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#@ woocommerce-delivery-notes
|
272 |
+
#: wcdn-classes.php:187
|
273 |
+
#: wcdn-classes.php:200
|
274 |
+
#: wcdn-classes.php:213
|
275 |
+
#: wcdn-classes.php:226
|
276 |
+
#: wcdn-classes.php:239
|
277 |
+
msgid "Note:"
|
278 |
+
msgstr ""
|
279 |
+
|
280 |
+
#@ woocommerce-delivery-notes
|
281 |
+
#: wcdn-classes.php:188
|
282 |
+
msgid "Leave blank to use your default Website/ Blog title defined in WordPress settings."
|
283 |
+
msgstr ""
|
284 |
+
|
285 |
+
#@ woocommerce-delivery-notes
|
286 |
+
#: wcdn-classes.php:199
|
287 |
+
msgid "The postal address of the company/shop, which gets printed right of the company/shop name, above the order listings."
|
288 |
+
msgstr ""
|
289 |
+
|
290 |
+
#@ woocommerce-delivery-notes
|
291 |
+
#: wcdn-classes.php:201
|
292 |
+
msgid "Here, you can also add some other contact information like the telephone and email."
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
+
#@ woocommerce-delivery-notes
|
296 |
+
#: wcdn-classes.php:212
|
297 |
+
msgid "Add some personal notes, or season greetings or whatever (e.g. Thank You for Your Order!, Merry Christmas!, etc.)."
|
298 |
+
msgstr ""
|
299 |
+
|
300 |
+
#@ woocommerce-delivery-notes
|
301 |
+
#: wcdn-classes.php:214
|
302 |
+
msgid "This info gets printed below the order listings but above the regular shipping notes (added at WooCommerce single order pages). These personal notes here will get styled with bigger font size."
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#@ woocommerce-delivery-notes
|
306 |
+
#: wcdn-classes.php:225
|
307 |
+
msgid "Here you can add some more policies, conditions etc. For example add a returns policy in case the client would like to send back some goods."
|
308 |
+
msgstr ""
|
309 |
+
|
310 |
+
#@ woocommerce-delivery-notes
|
311 |
+
#: wcdn-classes.php:227
|
312 |
+
msgid "In some countries (e.g. in the European Union) this is required so please add any required info in accordance with the statutory regulations."
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#@ woocommerce-delivery-notes
|
316 |
+
#: wcdn-classes.php:238
|
317 |
+
msgid "Add some further footer imprint, copyright notes etc. to get the printed sheets a bit more branded to your needs."
|
318 |
+
msgstr ""
|
319 |
+
|
320 |
+
#@ woocommerce-delivery-notes
|
321 |
+
#: wcdn-classes.php:240
|
322 |
+
msgid " This footer info gets printed in lower font size and a bit lighter text color."
|
323 |
+
msgstr "Diese Informationen werden in kleinerer Schriftgröße und hellerer Textfarbe am Fuß ausgegeben."
|
324 |
+
|
325 |
+
#@ woocommerce-delivery-notes
|
326 |
+
#: wcdn-classes.php:170
|
327 |
+
msgid "WooCommerce - Delivery Notes Settings"
|
328 |
+
msgstr ""
|
329 |
+
|
330 |
+
#@ woocommerce-delivery-notes
|
331 |
+
#: wcdn-classes.php:172
|
332 |
+
msgid "All setting fields below are optional - you can leave them empty to not use them at all or only apply what you need."
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#@ woocommerce-delivery-notes
|
336 |
+
#: wcdn-help.php:90
|
337 |
+
msgid "Feedback and more about the Author"
|
338 |
+
msgstr ""
|
339 |
+
|
340 |
+
#@ woocommerce-delivery-notes
|
341 |
+
#: wcdn-help.php:92
|
342 |
+
msgid "Social:"
|
343 |
+
msgstr ""
|
344 |
+
|
345 |
+
#@ woocommerce-delivery-notes
|
346 |
+
#: wcdn-help.php:92
|
347 |
+
msgid "Twitter"
|
348 |
+
msgstr ""
|
349 |
+
|
350 |
+
#@ woocommerce-delivery-notes
|
351 |
+
#: wcdn-help.php:92
|
352 |
+
msgid "Facebook"
|
353 |
+
msgstr ""
|
354 |
+
|
355 |
+
#@ woocommerce-delivery-notes
|
356 |
+
#: wcdn-help.php:92
|
357 |
+
msgid "Google+"
|
358 |
+
msgstr ""
|
359 |
+
|
360 |
+
#@ woocommerce-delivery-notes
|
361 |
+
#: wcdn-help.php:112
|
362 |
+
#, php-format
|
363 |
+
msgid "Just look under <a href=\"%1$s\">WooCommerce > Orders</a> and there go to a single order view. On the right side you will see the Delivery Note meta box. Click and you get the delivery Note printing page. Yes, it is that easy :-)."
|
364 |
+
msgstr ""
|
365 |
+
|
366 |
+
#@ woocommerce-delivery-notes
|
367 |
+
#: wcdn-help.php:124
|
368 |
+
#: wcdn-help.php:132
|
369 |
+
msgid "Question:"
|
370 |
+
msgstr ""
|
371 |
+
|
372 |
+
#@ woocommerce-delivery-notes
|
373 |
+
#: wcdn-help.php:126
|
374 |
+
#: wcdn-help.php:134
|
375 |
+
msgid "Answer:"
|
376 |
+
msgstr ""
|
377 |
+
|
378 |
+
#@ woocommerce-delivery-notes
|
379 |
+
#: wcdn-help.php:149
|
380 |
+
#, php-format
|
381 |
+
msgid "<strong>Rating & Tips:</strong> If you like the plugin please %1$srate at WordPress.org%2$s with 5 stars. <em>Thank you!</em> — %3$sMore plugins for WordPress by DECKERWEB%2$s"
|
382 |
+
msgstr ""
|
383 |
+
|
384 |
+
#@ woocommerce-delivery-notes
|
385 |
+
#: wcdn-help.php:159
|
386 |
+
#, php-format
|
387 |
+
msgid "<strong>Author:</strong> David Decker of %1$sdeckerweb.de%2$s and %3$sGenesisThemes%2$s - Join me at %4$sTwitter%2$s, %5$sFacebook%2$s and %6$sGoogle Plus%2$s :-)"
|
388 |
+
msgstr ""
|
389 |
+
|
390 |
+
#@ woocommerce-delivery-notes
|
391 |
+
#: wcdn-help.php:160
|
392 |
+
#, php-format
|
393 |
+
msgid "<strong>License:</strong> GPL v3 - %1$sMore info on the GPL license ...%2$s"
|
394 |
+
msgstr ""
|
395 |
+
|
396 |
+
#@ woocommerce-delivery-notes
|
397 |
+
#: wcdn-help.php:91
|
398 |
+
msgid "Website"
|
399 |
+
msgstr ""
|
400 |
+
|
401 |
+
#@ woocommerce-delivery-notes
|
402 |
+
#: wcdn-help.php:93
|
403 |
+
msgid "at WordPress.org"
|
404 |
+
msgstr ""
|
405 |
+
|
406 |
+
#@ woocommerce-delivery-notes
|
407 |
+
#: wcdn-help.php:91
|
408 |
+
msgid "http://genesisthemes.de/en/"
|
409 |
+
msgstr ""
|
410 |
+
|
411 |
+
#@ woocommerce-delivery-notes
|
412 |
+
#: wcdn-help.php:125
|
413 |
+
msgid "Can I use a Custom Template for the printing page?"
|
414 |
+
msgstr ""
|
415 |
+
|
416 |
+
#@ woocommerce-delivery-notes
|
417 |
+
#: wcdn-help.php:128
|
418 |
+
msgid "Note: This works with both single themes and child themes (if you use some framework like Genesis). If your current active theme is a child theme put the custom folder there! (e.g. <code>/wp-content/themes/your-child-theme-name/woocommerce</code>)"
|
419 |
+
msgstr ""
|
420 |
+
|
421 |
+
#@ woocommerce-delivery-notes
|
422 |
+
#: wcdn-help.php:133
|
423 |
+
msgid "What Template Functions can I use?"
|
424 |
+
msgstr ""
|
425 |
+
|
426 |
+
#@ woocommerce-delivery-notes
|
427 |
+
#: wcdn-help.php:127
|
428 |
+
msgid "If you want to use your own template then all you need to do is copy the <code>/wp-content/plugins/woocommerce-delivery-notes/delivery-note-template</code> folder and paste it inside your <code>/wp-content/themes/your-theme-name/woocommerce</code> folder (if not there just create it). The folder from the plugin comes with the default template and the basic CSS stylesheet file. You can modifiy this to fit your own needs."
|
429 |
+
msgstr ""
|
430 |
+
|
431 |
+
#@ woocommerce-delivery-notes
|
432 |
+
#: wcdn-help.php:136
|
433 |
+
msgid "Important note: This is only intended for developers who know what they do! Please be careful with adding any code/functions! The default template and functions should fit most use cases."
|
434 |
+
msgstr ""
|
435 |
+
|
436 |
+
#@ woocommerce-delivery-notes
|
437 |
+
#: wcdn-help.php:135
|
438 |
+
msgid "Arbitrary php code and all WordPress functions are available in the template. Besides that there are many Delivery Notes specific template functions. Open the <code>woocommerce-delivery-notes/wcdn-print.php</code> file to see all available functions."
|
439 |
+
msgstr ""
|
440 |
+
|
readme.txt
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== WooCommerce Delivery Notes ===
|
2 |
+
Contributors: daveshine
|
3 |
+
Donate link: http://genesisthemes.de/en/donate/
|
4 |
+
Tags: delivery notes, delivery, shipping, print, order, invoice, woocommerce, woo commerce, woothemes, administration, shop, shop manager, deckerweb
|
5 |
+
Requires at least: 3.3
|
6 |
+
Tested up to: 3.3
|
7 |
+
Stable tag: 1.0
|
8 |
+
|
9 |
+
This plugin adds Delivery Notes for the WooCommerce Shop Plugin. You can add company info as well as personal notes and policies to the print page.
|
10 |
+
|
11 |
+
== Description ==
|
12 |
+
|
13 |
+
With this plugin you can print out delivery notes for the orders via the WooCommerce Shop Plugin. You can edit the Company/Shop name, Company/Shop postal address and also add personal notes, conditions/policies (like a refund policy) and a footer imprint/branding.
|
14 |
+
|
15 |
+
The plugin adds a new side panel on the order page to allow shop administrators to print out delivery notes. This is useful for a lot of shops that sell goods which need delivery notes for shipping or with added refund policies etc. In some countries (e.g. in the European Union) such refund policies are required so this plugin could help to combine this with the order info for the customer.
|
16 |
+
|
17 |
+
= Special Features =
|
18 |
+
* The plugin comes with an attached template for the delivery note (printing) page - you could also copy this to your theme and customize it to your needs! The plugin will recognize the new place. (See under [FAQ here](http://wordpress.org/extend/plugins/woocommerce-delivery-notes/faq/))
|
19 |
+
* All setting fields on the settings pages are optional - you can leave them empty to not use them at all or only apply what you need.
|
20 |
+
* If the company/shop name field is left empty then the regular website/blog title is used (defined via regular WordPress options)
|
21 |
+
* Included contextual help tab system with new WordPress 3.3 standard! (Will also be extended if needed!)
|
22 |
+
|
23 |
+
= Localization =
|
24 |
+
* English (default) - always included
|
25 |
+
* German - always included
|
26 |
+
* .pot file (`woocommerce-delivery-notes.pot`) for translators is also always included :)
|
27 |
+
* Your translation? - [Just send it in](http://genesisthemes.de/en/contact/)
|
28 |
+
|
29 |
+
Credit where credit is due: This plugin here is inspired and based on the work of Steve Clark, Trigvvy Gunderson and PiffPaffPuff and the awesome "Jigoshop Delivery Notes" plugin! See below how you can contribute to the further development of both:
|
30 |
+
|
31 |
+
= Contribute =
|
32 |
+
Since this is a fork I've made the plugin available in a developer repository at GitHub just like the original.
|
33 |
+
|
34 |
+
* [Forked WooCommerce Delivery Notes repository at GitHub.com](https://github.com/deckerweb/woocommerce-delivery-notes)
|
35 |
+
* [Original Jigoshop Delivery Notes repository at GitHub.com](https://github.com/piffpaffpuff/jigoshop-delivery-notes)
|
36 |
+
* Thank you in advance for all feedback, suggestions, contributions/commits!
|
37 |
+
|
38 |
+
[A plugin from deckerweb.de and GenesisThemes](http://genesisthemes.de/en/)
|
39 |
+
|
40 |
+
= Feedback =
|
41 |
+
* I am open for your suggestions and feedback - Thank you for using or trying out one of my plugins!
|
42 |
+
* Drop me a line [@deckerweb](http://twitter.com/#!/deckerweb) on Twitter
|
43 |
+
* Follow me on [my Facebook page](http://www.facebook.com/deckerweb.service)
|
44 |
+
* Or follow me on [@David Decker](http://deckerweb.de/gplus) on Google Plus ;-)
|
45 |
+
|
46 |
+
= More =
|
47 |
+
* [Also see my other plugins](http://genesisthemes.de/en/wp-plugins/) or see [my WordPress.org profile page](http://profiles.wordpress.org/users/daveshine/)
|
48 |
+
* Tip: [*GenesisFinder* - Find then create. Your Genesis Framework Search Engine.](http://genesisfinder.com/)
|
49 |
+
|
50 |
+
== Installation ==
|
51 |
+
|
52 |
+
1. Upload the entire `woocommerce-delivery-notes` folder to the `/wp-content/plugins/` directory
|
53 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress
|
54 |
+
3. Look under the WooCommerce menu for the entry "Delivery Notes Settings" and adjust them to your needs
|
55 |
+
4. On single order pages you'll find a new meta box on the right side where it says "View & Print Delivery Note" you can open the delivery note for the actual order and print it out directly
|
56 |
+
5. Go and manage your orders - good luck with sales :)
|
57 |
+
|
58 |
+
== Frequently Asked Questions ==
|
59 |
+
|
60 |
+
= Can I use a Custom Template for the printing page? =
|
61 |
+
If you want to use your own template then all you need to do is copy the `/wp-content/plugins/woocommerce-delivery-notes/delivery-note-template` folder and paste it inside your `/wp-content/themes/your-theme-name/woocommerce` folder (if not there just create it). The folder from the plugin comes with the default template and the basic CSS stylesheet file. You can modifiy this to fit your own needs.
|
62 |
+
|
63 |
+
*Note:* This works with both single themes and child themes (if you use some framework like Genesis). If your current active theme is a child theme put the custom folder there! (e.g. `/wp-content/themes/your-child-theme-name/woocommerce`)
|
64 |
+
|
65 |
+
= What Template Functions can I use? =
|
66 |
+
Various functions are available in the template, especially many Delivery Notes specific template functions. Open the `woocommerce-delivery-notes/wcdn-print.php` file to see all available functions.
|
67 |
+
|
68 |
+
*Please note:* This is only intended for developers who know what they do! Please be careful with adding any code/functions! The default template and functions should fit most use cases.
|
69 |
+
|
70 |
+
== Screenshots ==
|
71 |
+
|
72 |
+
1. Plugin's settings page where you can set up to four fields for the delivery note.
|
73 |
+
2. Contextual help tabs on the plugin's settings page.
|
74 |
+
3. Delivery Note printing page with default template - and the four custom sections marked (yellow)
|
75 |
+
|
76 |
+
== Changelog ==
|
77 |
+
|
78 |
+
= 1.0 =
|
79 |
+
* Initial release
|
80 |
+
* Forked and extended from original plugin for Jigoshop ("Jigoshop Delivery Notes" at GitHub)
|
81 |
+
|
82 |
+
== Upgrade Notice ==
|
83 |
+
= 1.0 =
|
84 |
+
Just released into the wild.
|
85 |
+
|
86 |
+
== Translations ==
|
87 |
+
|
88 |
+
* English - default, always included
|
89 |
+
* German: Deutsch - immer dabei! [Download auch via deckerweb.de](http://deckerweb.de/material/sprachdateien/woocommerce-und-extensions/#woocommerce-delivery-notes)
|
90 |
+
|
91 |
+
Note: All my plugins are localized/ translateable by default. This is very important for all users worldwide. So please contribute your language to the plugin to make it even more useful. For translating I recommend the awesome ["Codestyling Localization" plugin](http://wordpress.org/extend/plugins/codestyling-localization/) and for validating the ["Poedit Editor"](http://www.poedit.net/).
|
92 |
+
|
93 |
+
== Additional Info ==
|
94 |
+
**Idea Behind / Philosophy:** Just a little plugin for all the WooCommerce shop managers out there to make their daily shop admin life a bit easier.
|
screenshot-1.png
ADDED
Binary file
|
screenshot-2.png
ADDED
Binary file
|
screenshot-3.png
ADDED
Binary file
|
wcdn-classes.php
ADDED
@@ -0,0 +1,369 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* All core plugin classes.
|
4 |
+
*
|
5 |
+
* @package WooCommerce Delivery Notes
|
6 |
+
* @author David Decker - DECKERWEB
|
7 |
+
* @license http://www.opensource.org/licenses/gpl-license.php GPL v3.0 (or later)
|
8 |
+
* @link http://genesisthemes.de/en/wp-plugins/
|
9 |
+
*/
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Base class
|
13 |
+
*
|
14 |
+
* @since 1.0
|
15 |
+
*/
|
16 |
+
if ( !class_exists( 'WooCommerce_Delivery_Notes' ) ) {
|
17 |
+
|
18 |
+
class WooCommerce_Delivery_Notes {
|
19 |
+
|
20 |
+
public $prefix;
|
21 |
+
public $plugin_url;
|
22 |
+
public $plugin_path;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Constructor
|
26 |
+
*
|
27 |
+
* @since 1.0
|
28 |
+
*/
|
29 |
+
public function WooCommerce_Delivery_Notes() {
|
30 |
+
$this->prefix = 'wcdn_';
|
31 |
+
$this->plugin_url = plugin_dir_url(__FILE__);
|
32 |
+
$this->plugin_path = plugin_dir_path(__FILE__);
|
33 |
+
}
|
34 |
+
|
35 |
+
} // enf of class WooCommerce_Delivery_Notes
|
36 |
+
|
37 |
+
} // enf of conditional
|
38 |
+
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Admin class
|
42 |
+
*
|
43 |
+
* @since 1.0
|
44 |
+
*/
|
45 |
+
if ( !class_exists( 'WooCommerce_Delivery_Notes_Admin' ) ) {
|
46 |
+
|
47 |
+
class WooCommerce_Delivery_Notes_Admin extends WooCommerce_Delivery_Notes {
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Constructor
|
51 |
+
*
|
52 |
+
* @since 1.0
|
53 |
+
*/
|
54 |
+
public function WooCommerce_Delivery_Notes_Admin() {
|
55 |
+
parent::WooCommerce_Delivery_Notes();
|
56 |
+
|
57 |
+
// Load the plugin when WooCommerce is enabled
|
58 |
+
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
|
59 |
+
add_action( 'init', array( $this, 'load_all_hooks' ) );
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Load the admin hooks
|
65 |
+
*
|
66 |
+
* @since 1.0
|
67 |
+
*/
|
68 |
+
public function load_all_hooks() {
|
69 |
+
|
70 |
+
add_action( 'admin_print_styles', array( $this, 'add_styles' ) );
|
71 |
+
add_action( 'admin_print_scripts', array( $this, 'add_scripts' ) );
|
72 |
+
add_action( 'add_meta_boxes', array( $this, 'add_box' ) );
|
73 |
+
add_action( 'admin_menu', array( $this, 'add_menu' ) );
|
74 |
+
}
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Add the styles
|
78 |
+
*
|
79 |
+
* @since 1.0
|
80 |
+
*/
|
81 |
+
public function add_styles() {
|
82 |
+
wp_enqueue_style( 'thickbox' );
|
83 |
+
}
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Add the scripts
|
87 |
+
*
|
88 |
+
* @since 1.0
|
89 |
+
*/
|
90 |
+
public function add_scripts() {
|
91 |
+
wp_enqueue_script( 'media-upload' );
|
92 |
+
wp_enqueue_script( 'thickbox' );
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Add the meta box on the single order page
|
97 |
+
*
|
98 |
+
* @since 1.0
|
99 |
+
*/
|
100 |
+
public function add_box() {
|
101 |
+
add_meta_box( 'woocommerce-delivery-notes-box', __( 'Delivery Note', 'woocommerce-delivery-notes' ), array( $this, 'create_box_content' ), 'shop_order', 'side', 'default' );
|
102 |
+
}
|
103 |
+
|
104 |
+
/**
|
105 |
+
* Create the meta box content on the single order page
|
106 |
+
*
|
107 |
+
* @since 1.0
|
108 |
+
*/
|
109 |
+
public function create_box_content() {
|
110 |
+
global $post_id;
|
111 |
+
|
112 |
+
?>
|
113 |
+
<table class="form-table">
|
114 |
+
<tr>
|
115 |
+
<td><a href="<?php echo $this->plugin_url; ?>wcdn-print.php?order=<?php echo $post_id; ?>" id="print_delivery_note" class="button button-primary" target="_blank"><?php _e( 'View & Print Delivery Note', 'woocommerce-delivery-notes' ); ?></a></td>
|
116 |
+
</tr>
|
117 |
+
</table>
|
118 |
+
<?php
|
119 |
+
}
|
120 |
+
|
121 |
+
/**
|
122 |
+
* Add the sub menu entry for the WooCommerce admin page menu
|
123 |
+
*
|
124 |
+
* @since 1.0
|
125 |
+
*/
|
126 |
+
public function add_menu() {
|
127 |
+
|
128 |
+
// Pagehook for settings page
|
129 |
+
global $_wcdn_settings_pagehook;
|
130 |
+
|
131 |
+
// Register settings page menu
|
132 |
+
$_wcdn_settings_pagehook = add_submenu_page( 'woocommerce', __( 'Delivery Notes Settings', 'woocommerce-delivery-notes' ), __( 'Delivery Notes Settings', 'woocommerce-delivery-notes' ), 'manage_woocommerce', 'woocommerce_delivery_notes', array($this, 'ddw_wcdn_settings_page' ) );
|
133 |
+
}
|
134 |
+
|
135 |
+
/**
|
136 |
+
* Create the settings page content
|
137 |
+
*
|
138 |
+
* @since 1.0
|
139 |
+
*/
|
140 |
+
public function ddw_wcdn_settings_page() {
|
141 |
+
|
142 |
+
// Check the user capabilities
|
143 |
+
if ( !current_user_can( 'manage_woocommerce' ) ) {
|
144 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.', 'woocommerce-delivery-notes' ) );
|
145 |
+
}
|
146 |
+
|
147 |
+
// Save the field values
|
148 |
+
$fields_submitted = $this->prefix . 'fields_submitted';
|
149 |
+
if ( isset($_POST[ $fields_submitted ]) && $_POST[ $fields_submitted ] == 'submitted' ) {
|
150 |
+
foreach ($_POST as $key => $value) {
|
151 |
+
if ( get_option( $key ) != $value ) {
|
152 |
+
update_option( $key, $value );
|
153 |
+
}
|
154 |
+
else {
|
155 |
+
add_option( $key, $value, '', 'no' );
|
156 |
+
}
|
157 |
+
}
|
158 |
+
|
159 |
+
?><div id="setting-error-settings_updated" class="updated settings-error">
|
160 |
+
<p><strong><?php _e( 'Settings saved.', 'woocommerce-delivery-notes' ); ?></strong></p>
|
161 |
+
</div><?php
|
162 |
+
}
|
163 |
+
|
164 |
+
// Show page content and settings fields
|
165 |
+
?>
|
166 |
+
<div class="wrap">
|
167 |
+
<div id="icon-options-general" class="icon32">
|
168 |
+
<br />
|
169 |
+
</div>
|
170 |
+
<h2><?php _e( 'WooCommerce - Delivery Notes Settings', 'woocommerce-delivery-notes' ); ?></h2>
|
171 |
+
|
172 |
+
<p><?php _e( 'All setting fields below are optional - you can leave them empty to not use them at all or only apply what you need.', 'woocommerce-delivery-notes' ); ?></p>
|
173 |
+
|
174 |
+
<form method="post" action="">
|
175 |
+
<input type="hidden" name="<?php echo $fields_submitted; ?>" value="submitted">
|
176 |
+
|
177 |
+
<table class="form-table">
|
178 |
+
<tbody>
|
179 |
+
<tr>
|
180 |
+
<th>
|
181 |
+
<label for="<?php echo $this->prefix; ?>custom_company_name"><b><?php _e( 'Company/Shop Name:', 'woocommerce-delivery-notes' ); ?><b></label>
|
182 |
+
</th>
|
183 |
+
<td>
|
184 |
+
<textarea name="<?php echo $this->prefix; ?>custom_company_name" rows="1" class="large-text"><?php echo get_option( $this->prefix . 'custom_company_name' ); ?></textarea>
|
185 |
+
<span class="description"><?php
|
186 |
+
echo __( 'Your custom company or shop name for the Delivery Note.', 'woocommerce-delivery-notes' );
|
187 |
+
echo '<br /><strong>' . __( 'Note:', 'woocommerce-delivery-notes' ) . '</strong> ';
|
188 |
+
echo __( 'Leave blank to use your default Website/ Blog title defined in WordPress settings.', 'woocommerce-delivery-notes' );
|
189 |
+
?></span>
|
190 |
+
</td>
|
191 |
+
</tr>
|
192 |
+
<tr>
|
193 |
+
<th>
|
194 |
+
<label for="<?php echo $this->prefix; ?>company_address"><b><?php _e( 'Company/Shop Address:', 'woocommerce-delivery-notes' ); ?><b></label>
|
195 |
+
</th>
|
196 |
+
<td>
|
197 |
+
<textarea name="<?php echo $this->prefix; ?>company_address" rows="6" class="large-text"><?php echo get_option( $this->prefix . 'company_address' ); ?></textarea>
|
198 |
+
<span class="description"><?php
|
199 |
+
echo __( 'The postal address of the company/shop, which gets printed right of the company/shop name, above the order listings.', 'woocommerce-delivery-notes' );
|
200 |
+
echo '<br /><strong>' . __( 'Note:', 'woocommerce-delivery-notes' ) . '</strong> ';
|
201 |
+
echo __( 'Here, you can also add some other contact information like the telephone and email.', 'woocommerce-delivery-notes' );
|
202 |
+
?></span>
|
203 |
+
</td>
|
204 |
+
</tr>
|
205 |
+
<tr>
|
206 |
+
<th>
|
207 |
+
<label for="<?php echo $this->prefix; ?>personal_notes"><b><?php _e( 'Personal Notes:', 'woocommerce-delivery-notes' ); ?></b></label>
|
208 |
+
</th>
|
209 |
+
<td>
|
210 |
+
<textarea name="<?php echo $this->prefix; ?>personal_notes" rows="3" class="large-text"><?php echo get_option( $this->prefix . 'personal_notes' ); ?></textarea>
|
211 |
+
<span class="description"><?php
|
212 |
+
echo __( 'Add some personal notes, or season greetings or whatever (e.g. Thank You for Your Order!, Merry Christmas!, etc.).', 'woocommerce-delivery-notes' );
|
213 |
+
echo '<br /><strong>' . __( 'Note:', 'woocommerce-delivery-notes' ) . '</strong> ';
|
214 |
+
echo __( 'This info gets printed below the order listings but above the regular shipping notes (added at WooCommerce single order pages). These personal notes here will get styled with bigger font size.', 'woocommerce-delivery-notes' );
|
215 |
+
?></span>
|
216 |
+
</td>
|
217 |
+
</tr>
|
218 |
+
<tr>
|
219 |
+
<th>
|
220 |
+
<label for="<?php echo $this->prefix; ?>policies_conditions"><b><?php _e( 'Returns Policy, Conditions, etc.:', 'woocommerce-delivery-notes' ); ?></b></label>
|
221 |
+
</th>
|
222 |
+
<td>
|
223 |
+
<textarea name="<?php echo $this->prefix; ?>policies_conditions" rows="6" class="large-text"><?php echo get_option( $this->prefix . 'policies_conditions' ); ?></textarea>
|
224 |
+
<span class="description"><?php
|
225 |
+
echo __( 'Here you can add some more policies, conditions etc. For example add a returns policy in case the client would like to send back some goods.', 'woocommerce-delivery-notes' );
|
226 |
+
echo '<br /><strong>' . __( 'Note:', 'woocommerce-delivery-notes' ) . '</strong> ';
|
227 |
+
echo __( 'In some countries (e.g. in the European Union) this is required so please add any required info in accordance with the statutory regulations.', 'woocommerce-delivery-notes' );
|
228 |
+
?></span>
|
229 |
+
</td>
|
230 |
+
</tr>
|
231 |
+
<tr>
|
232 |
+
<th>
|
233 |
+
<label for="<?php echo $this->prefix; ?>footer_imprint"><b><?php _e( 'Footer Imprint:', 'woocommerce-delivery-notes' ); ?></b></label>
|
234 |
+
</th>
|
235 |
+
<td>
|
236 |
+
<textarea name="<?php echo $this->prefix; ?>footer_imprint" rows="2" class="large-text"><?php echo get_option( $this->prefix . 'footer_imprint' ); ?></textarea>
|
237 |
+
<span class="description"><?php
|
238 |
+
echo __( 'Add some further footer imprint, copyright notes etc. to get the printed sheets a bit more branded to your needs.', 'woocommerce-delivery-notes' );
|
239 |
+
echo '<br /><strong>' . __( 'Note:', 'woocommerce-delivery-notes' ) . '</strong> ';
|
240 |
+
echo __(' This footer info gets printed in lower font size and a bit lighter text color.', 'woocommerce-delivery-notes' );
|
241 |
+
?></span>
|
242 |
+
</td>
|
243 |
+
</tr>
|
244 |
+
</tbody>
|
245 |
+
</table>
|
246 |
+
|
247 |
+
<p class="submit">
|
248 |
+
<input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'woocommerce-delivery-notes' ); ?>" />
|
249 |
+
</p>
|
250 |
+
</form>
|
251 |
+
</div><!-- .wrap -->
|
252 |
+
<?php
|
253 |
+
}
|
254 |
+
|
255 |
+
} // end of class WooCommerce_Delivery_Notes_Admin
|
256 |
+
|
257 |
+
} // end of conditional
|
258 |
+
|
259 |
+
|
260 |
+
/**
|
261 |
+
* Print class
|
262 |
+
*
|
263 |
+
* @since 1.0
|
264 |
+
*/
|
265 |
+
if ( !class_exists( 'WooCommerce_Delivery_Notes_Print' ) ) {
|
266 |
+
|
267 |
+
class WooCommerce_Delivery_Notes_Print extends WooCommerce_Delivery_Notes {
|
268 |
+
|
269 |
+
public $template_name;
|
270 |
+
public $template_dir_name;
|
271 |
+
public $template_dir_url;
|
272 |
+
public $template_dir_path;
|
273 |
+
|
274 |
+
private $order;
|
275 |
+
|
276 |
+
/**
|
277 |
+
* Constructor
|
278 |
+
*
|
279 |
+
* @since 1.0
|
280 |
+
*/
|
281 |
+
public function WooCommerce_Delivery_Notes_Print() {
|
282 |
+
parent::WooCommerce_Delivery_Notes();
|
283 |
+
|
284 |
+
$this->template_name = 'template.php';
|
285 |
+
$this->template_dir_name = 'delivery-note-template/';
|
286 |
+
$this->template_dir_url = $this->plugin_url . $this->template_dir_name;
|
287 |
+
$this->template_dir_path = $this->plugin_path . $this->template_dir_name;
|
288 |
+
}
|
289 |
+
|
290 |
+
/**
|
291 |
+
* Read the template file
|
292 |
+
*
|
293 |
+
* @since 1.0
|
294 |
+
*/
|
295 |
+
public function get_template_content() {
|
296 |
+
|
297 |
+
// Check for a custom template folder in the theme
|
298 |
+
$is_custom_html = @file_exists( trailingslashit( get_stylesheet_directory() ) . 'woocommerce/' . $this->template_dir_name . $this->template_name);
|
299 |
+
if ( $is_custom_html ) {
|
300 |
+
$this->template_dir_url = trailingslashit( get_stylesheet_directory_uri() ) . 'woocommerce/' . $this->template_dir_name;
|
301 |
+
$this->template_dir_path = trailingslashit( get_stylesheet_directory() ) . 'woocommerce/' . $this->template_dir_name;
|
302 |
+
|
303 |
+
}
|
304 |
+
|
305 |
+
// Read the file
|
306 |
+
ob_start();
|
307 |
+
require_once $this->template_dir_path . $this->template_name;
|
308 |
+
$content = ob_get_clean();
|
309 |
+
|
310 |
+
return $content;
|
311 |
+
}
|
312 |
+
|
313 |
+
/**
|
314 |
+
* Get the current order
|
315 |
+
*
|
316 |
+
* @since 1.0
|
317 |
+
*/
|
318 |
+
public function get_order( $order_id ) {
|
319 |
+
if ( !isset( $this->order ) && $order_id ) {
|
320 |
+
$this->order = new woocommerce_order( $order_id );
|
321 |
+
}
|
322 |
+
return $this->order;
|
323 |
+
}
|
324 |
+
|
325 |
+
/**
|
326 |
+
* Get the current order items
|
327 |
+
*
|
328 |
+
* @since 1.0
|
329 |
+
*/
|
330 |
+
public function get_order_items( $order_id ) {
|
331 |
+
$order = $this->get_order( $order_id );
|
332 |
+
$items = $order->items;
|
333 |
+
$data_list = array();
|
334 |
+
|
335 |
+
foreach ( $items as $item ) {
|
336 |
+
$product = $order->get_product_from_item( $item );
|
337 |
+
|
338 |
+
$data = array();
|
339 |
+
$data['name'] = $item['name'];
|
340 |
+
$data['variation'] = null;
|
341 |
+
$data['quantity'] = $item['qty'];
|
342 |
+
$data['price'] = woocommerce_price( $item['cost'] * $item['qty'], array('ex_tax_label' => 1) );
|
343 |
+
$data['taxrate'] = $item['taxrate'];
|
344 |
+
$data['sku'] = $product->sku;
|
345 |
+
$data['weight'] = $product->data['weight'];
|
346 |
+
|
347 |
+
if ( isset( $item['variation_id'] ) && $item['variation_id'] > 0 ) {
|
348 |
+
$product = new woocommerce_product_variation( $item['variation_id'] );
|
349 |
+
$data['variation'] = woocommerce_get_formatted_variation( $product->get_variation_attributes(), true );
|
350 |
+
}
|
351 |
+
|
352 |
+
$data_list[] = $data;
|
353 |
+
}
|
354 |
+
|
355 |
+
return $data_list;
|
356 |
+
}
|
357 |
+
|
358 |
+
/**
|
359 |
+
* Get the content for an option
|
360 |
+
*
|
361 |
+
* @since 1.0
|
362 |
+
*/
|
363 |
+
public function get_setting( $name ) {
|
364 |
+
return get_option( $this->prefix . $name );
|
365 |
+
}
|
366 |
+
|
367 |
+
} // enf of class WooCommerce_Delivery_Notes_Print
|
368 |
+
|
369 |
+
} // enf of conditional
|
wcdn-help.php
ADDED
@@ -0,0 +1,166 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Load help tabs for admin settings page and support links on plugins listing page.
|
4 |
+
*
|
5 |
+
* @package WooCommerce Delivery Notes
|
6 |
+
* @author David Decker - DECKERWEB
|
7 |
+
* @license http://www.opensource.org/licenses/gpl-license.php GPL v3.0 (or later)
|
8 |
+
* @link http://genesisthemes.de/en/wp-plugins/
|
9 |
+
*/
|
10 |
+
|
11 |
+
add_filter( 'plugin_row_meta', 'ddw_wcdn_plugin_links', 10, 2 );
|
12 |
+
/**
|
13 |
+
* Add various support links to plugin page
|
14 |
+
*
|
15 |
+
* @since 1.0
|
16 |
+
*/
|
17 |
+
function ddw_wcdn_plugin_links( $wcdn_links, $wcdn_file ) {
|
18 |
+
|
19 |
+
if ( !current_user_can( 'install_plugins' ) )
|
20 |
+
return $wcdn_links;
|
21 |
+
|
22 |
+
if ( $wcdn_file == WCDN_PLUGIN_BASEDIR . '/woocommerce-delivery-notes.php' ) {
|
23 |
+
$wcdn_links[] = '<a href="http://wordpress.org/extend/plugins/woocommerce-delivery-notes/faq/" target="_new" title="' . __( 'FAQ', 'woocommerce-delivery-notes' ) . '">' . __( 'FAQ', 'woocommerce-delivery-notes' ) . '</a>';
|
24 |
+
$wcdn_links[] = '<a href="http://wordpress.org/tags/woocommerce-delivery-notes?forum_id=10" target="_new" title="' . __( 'Support', 'woocommerce-delivery-notes' ) . '">' . __( 'Support', 'woocommerce-delivery-notes' ) . '</a>';
|
25 |
+
$wcdn_links[] = '<a href="' . __( 'http://genesisthemes.de/en/donate/', 'woocommerce-delivery-notes' ) . '" target="_new" title="' . __( 'Donate', 'woocommerce-delivery-notes' ) . '">' . __( 'Donate', 'woocommerce-delivery-notes' ) . '</a>';
|
26 |
+
}
|
27 |
+
|
28 |
+
return $wcdn_links;
|
29 |
+
}
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
add_action( 'admin_menu', 'ddw_wcdn_help_tab_init', 15 );
|
34 |
+
/**
|
35 |
+
* Load help tab on settings page
|
36 |
+
*
|
37 |
+
* @since 1.0
|
38 |
+
*/
|
39 |
+
function ddw_wcdn_help_tab_init() {
|
40 |
+
|
41 |
+
// Pagehook for settings page
|
42 |
+
global $_wcdn_settings_pagehook;
|
43 |
+
|
44 |
+
// Load help tabs for WordPress 3.3 and higher
|
45 |
+
add_action( 'load-'.$_wcdn_settings_pagehook, 'ddw_wcdn_help_tabs' );
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Set up the help tab titles for the settings page - for WordPress 3.3 and higher
|
51 |
+
*
|
52 |
+
* @since 1.0
|
53 |
+
*/
|
54 |
+
function ddw_wcdn_help_tabs() {
|
55 |
+
|
56 |
+
// Pagehook for settings page
|
57 |
+
global $_wcdn_settings_pagehook;
|
58 |
+
|
59 |
+
// Check current admin screen
|
60 |
+
$screen = get_current_screen();
|
61 |
+
|
62 |
+
// Don't load help tab system prior WordPress 3.3
|
63 |
+
if( !class_exists( 'WP_Screen' ) || !$screen || $screen->id != $_wcdn_settings_pagehook )
|
64 |
+
return;
|
65 |
+
|
66 |
+
// Create arrays with help tab titles
|
67 |
+
$screen->add_help_tab(array(
|
68 |
+
'id' => 'wcdn-usage',
|
69 |
+
'title' => __( 'What the Plugin Does', 'woocommerce-delivery-notes' ),
|
70 |
+
'content' => ddw_wcdn_help_tab_content( 'wcdn-usage' )
|
71 |
+
) );
|
72 |
+
$screen->add_help_tab(array(
|
73 |
+
'id' => 'wcdn-faq',
|
74 |
+
'title' => __( 'FAQ - Frequently Asked Questions', 'woocommerce-delivery-notes' ),
|
75 |
+
'content' => ddw_wcdn_help_tab_content( 'wcdn-faq' )
|
76 |
+
) );
|
77 |
+
$screen->add_help_tab(array(
|
78 |
+
'id' => 'wcdn-support-donation-rating-tips',
|
79 |
+
'title' => __( 'Support - Donations - Rating & Tips', 'woocommerce-delivery-notes' ),
|
80 |
+
'content' => ddw_wcdn_help_tab_content( 'wcdn-support-donation-rating-tips' )
|
81 |
+
) );
|
82 |
+
$screen->add_help_tab(array(
|
83 |
+
'id' => 'wcdn-autor-license',
|
84 |
+
'title' => __( 'Author - License', 'woocommerce-delivery-notes' ),
|
85 |
+
'content' => ddw_wcdn_help_tab_content( 'wcdn-author-license' )
|
86 |
+
) );
|
87 |
+
|
88 |
+
// Create help sidebar
|
89 |
+
$screen->set_help_sidebar(
|
90 |
+
'<p><strong>' . __( 'Feedback and more about the Author', 'woocommerce-delivery-notes' ) . '</strong></p>'.
|
91 |
+
'<p><a href="' . __( 'http://genesisthemes.de/en/', 'woocommerce-delivery-notes' ) . '" target="_blank" title="' . __( 'Website', 'woocommerce-delivery-notes' ) . '">' . __( 'Website', 'woocommerce-delivery-notes' ) . '</a></p>'.
|
92 |
+
'<p>' . __( 'Social:', 'woocommerce-delivery-notes' ) . '<br /><a href="http://twitter.com/#!/deckerweb" target="_blank">' . __( 'Twitter', 'woocommerce-delivery-notes' ) . '</a> | <a href="http://www.facebook.com/deckerweb.service" target="_blank">' . __( 'Facebook', 'woocommerce-delivery-notes' ) . '</a> | <a href="http://deckerweb.de/gplus" target="_blank">' . __( 'Google+', 'woocommerce-delivery-notes' ) . '</a></p>'.
|
93 |
+
'<p><a href="http://profiles.wordpress.org/users/daveshine/" target="_blank">' . __( 'at WordPress.org', 'woocommerce-delivery-notes' ) . '</a></p>'
|
94 |
+
);
|
95 |
+
|
96 |
+
}
|
97 |
+
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Add the actual help tabs content for the settings page - for WordPress 3.3 and higher
|
101 |
+
*
|
102 |
+
* @since 1.0
|
103 |
+
*/
|
104 |
+
function ddw_wcdn_help_tab_content( $tab = 'wcdn-usage' ) {
|
105 |
+
if ( $tab == 'wcdn-usage' ) {
|
106 |
+
|
107 |
+
ob_start();
|
108 |
+
echo '<h3>' . __( 'Plugin: WooCommerce Delivery Notes', 'woocommerce-delivery-notes' ) . '</h3>';
|
109 |
+
|
110 |
+
echo '<h4>' . __( 'What the Plugin Does', 'woocommerce-delivery-notes' ) . '</h4>';
|
111 |
+
echo '<p>' . __( 'This plugin enables you to add a simple Delivery Note page for printing for your orders in WooCommerce shop plugin. You can add your company postal address, further add personal notes, refund or other policies and a footer note/branding. This helps speed up your daily shop and order management. In some countries (e.g. in the European Union) it is also required to advice the customer with proper refund policies so this little plugin might help you a bit with that too.', 'woocommerce-delivery-notes' ) . '</p>';
|
112 |
+
echo '<p>' . sprintf( __( 'Just look under <a href="%1$s">WooCommerce > Orders</a> and there go to a single order view. On the right side you will see the Delivery Note meta box. Click and you get the delivery Note printing page. Yes, it is that easy :-).', 'woocommerce-delivery-notes' ), admin_url( 'edit.php?post_type=shop_order' ) ) . '</p>';
|
113 |
+
|
114 |
+
return ob_get_clean();
|
115 |
+
|
116 |
+
} elseif ( $tab == 'wcdn-faq' ) {
|
117 |
+
|
118 |
+
ob_start();
|
119 |
+
echo '<h3>' . __( 'Plugin: WooCommerce Delivery Notes', 'woocommerce-delivery-notes' ) . '</h3>';
|
120 |
+
|
121 |
+
echo '<h4>' . __( 'FAQ - Frequently Asked Questions', 'woocommerce-delivery-notes' ) . '</h4>';
|
122 |
+
|
123 |
+
// First FAQ entry
|
124 |
+
echo '<p><em><strong>' . __( 'Question:', 'woocommerce-delivery-notes' ) . '</strong> ';
|
125 |
+
echo __( 'Can I use a Custom Template for the printing page?', 'woocommerce-delivery-notes' ) . '</em><br />';
|
126 |
+
echo '<strong>' . __( 'Answer:', 'woocommerce-delivery-notes' ) . '</strong> ';
|
127 |
+
echo __( 'If you want to use your own template then all you need to do is copy the <code>/wp-content/plugins/woocommerce-delivery-notes/delivery-note-template</code> folder and paste it inside your <code>/wp-content/themes/your-theme-name/woocommerce</code> folder (if not there just create it). The folder from the plugin comes with the default template and the basic CSS stylesheet file. You can modifiy this to fit your own needs.', 'woocommerce-delivery-notes' );
|
128 |
+
echo '<br />' . __( 'Note: This works with both single themes and child themes (if you use some framework like Genesis). If your current active theme is a child theme put the custom folder there! (e.g. <code>/wp-content/themes/your-child-theme-name/woocommerce</code>)', 'woocommerce-delivery-notes' ) . '</p>';
|
129 |
+
|
130 |
+
// Second FAQ entry - show this one only for admins
|
131 |
+
if ( current_user_can( 'install_plugins' ) ) {
|
132 |
+
echo '<p><em><strong>' . __( 'Question:', 'woocommerce-delivery-notes' ) . '</strong> ';
|
133 |
+
echo __( 'What Template Functions can I use?', 'woocommerce-delivery-notes' ) . '</em><br />';
|
134 |
+
echo '<strong>' . __( 'Answer:', 'woocommerce-delivery-notes' ) . '</strong> ';
|
135 |
+
echo __( 'Arbitrary php code and all WordPress functions are available in the template. Besides that there are many Delivery Notes specific template functions. Open the <code>woocommerce-delivery-notes/wcdn-print.php</code> file to see all available functions.', 'woocommerce-delivery-notes' );
|
136 |
+
echo '<br />' . __( 'Important note: This is only intended for developers who know what they do! Please be careful with adding any code/functions! The default template and functions should fit most use cases.', 'woocommerce-delivery-notes' ) . '</p>';
|
137 |
+
}
|
138 |
+
|
139 |
+
return ob_get_clean();
|
140 |
+
|
141 |
+
} elseif ( $tab == 'wcdn-support-donation-rating-tips' ) {
|
142 |
+
|
143 |
+
ob_start();
|
144 |
+
echo '<h3>' . __( 'Plugin: WooCommerce Delivery Notes', 'woocommerce-delivery-notes' ) . '</h3>';
|
145 |
+
|
146 |
+
echo '<h4>' . __( 'Support - Donations - Rating & Tips', 'woocommerce-delivery-notes' ) . '</h4>';
|
147 |
+
echo '<p>• ' . sprintf( __( '<strong>Donations:</strong> Please %1$sdonate to support the further maintenance and development%2$s of the plugin. <em>Thank you in advance!</em>', 'woocommerce-delivery-notes' ), '<a href="' . __( 'http://genesisthemes.de/en/donate/', 'woocommerce-delivery-notes' ) . '" target="_new">', '</a>' ) . '</p>';
|
148 |
+
echo '<p>• ' . sprintf( __( '<strong>Support:</strong> Done via %1$sWordPress.org plugin page support forum%2$s. - Maybe I will setup my own support forum in the future, though.', 'woocommerce-delivery-notes' ), '<a href="http://wordpress.org/tags/woocommerce-delivery-notes?forum_id=10" target="_new" title="WordPress.org Plugin Support Forum ...">', '</a>' ) . '</p>';
|
149 |
+
echo '<p>• ' . sprintf( __( '<strong>Rating & Tips:</strong> If you like the plugin please %1$srate at WordPress.org%2$s with 5 stars. <em>Thank you!</em> — %3$sMore plugins for WordPress by DECKERWEB%2$s', 'woocommerce-delivery-notes' ), '<a href="http://wordpress.org/extend/plugins/genesis-layout-extras/" target="_new">', '</a>', '<a href="http://wordpress.org/extend/plugins/tags/deckerweb" target="_new" title="DECKERWEB WordPress Plugins ...">' ) . '</p>';
|
150 |
+
|
151 |
+
return ob_get_clean();
|
152 |
+
|
153 |
+
} elseif ( $tab == 'wcdn-author-license' ) {
|
154 |
+
|
155 |
+
ob_start();
|
156 |
+
echo '<h3>' . __( 'Plugin: WooCommerce Delivery Notes', 'woocommerce-delivery-notes' ) . '</h3>';
|
157 |
+
|
158 |
+
echo '<h4>' . __( 'Author - License', 'woocommerce-delivery-notes' ) . '</h4>';
|
159 |
+
echo '<p>• ' . sprintf( __( '<strong>Author:</strong> David Decker of %1$sdeckerweb.de%2$s and %3$sGenesisThemes%2$s - Join me at %4$sTwitter%2$s, %5$sFacebook%2$s and %6$sGoogle Plus%2$s :-)', 'woocommerce-delivery-notes' ), '<a href="http://deckerweb.de/" target="_new">', '</a>', '<a href="http://genesisthemes.de/en/" target="_new">', '<a href="http://twitter.com/#!/deckerweb" target="_new" title="Twitter @deckerweb ...">', '<a href="http://www.facebook.com/deckerweb.service" target="_new" title="deckerweb Facebook ...">', '<a href="http://deckerweb.de/gplus" target="_new" title="deckerweb Google Plus ...">' ) . '</p>';
|
160 |
+
echo '<p>• ' . sprintf( __( '<strong>License:</strong> GPL v3 - %1$sMore info on the GPL license ...%2$s', 'woocommerce-delivery-notes' ), '<a href="http://www.opensource.org/licenses/gpl-license.php" target="_new" title="GPL ...">', '</a>' ) . '</p>';
|
161 |
+
|
162 |
+
return ob_get_clean();
|
163 |
+
|
164 |
+
}
|
165 |
+
|
166 |
+
}
|
wcdn-print.php
ADDED
@@ -0,0 +1,415 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Load all available data for the Delivery Notes printing page.
|
4 |
+
*
|
5 |
+
* @package WooCommerce Delivery Notes
|
6 |
+
* @author David Decker - DECKERWEB
|
7 |
+
* @license http://www.opensource.org/licenses/gpl-license.php GPL v3.0 (or later)
|
8 |
+
* @link http://genesisthemes.de/en/wp-plugins/
|
9 |
+
*/
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Load Wordpress to use its functions
|
13 |
+
*
|
14 |
+
* @since 1.0
|
15 |
+
*/
|
16 |
+
if ( !defined( 'ABSPATH' ) ) {
|
17 |
+
require_once '../../../wp-load.php';
|
18 |
+
}
|
19 |
+
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Check the current user capabilities
|
23 |
+
*
|
24 |
+
* @since 1.0
|
25 |
+
*/
|
26 |
+
if ( !current_user_can( 'manage_options' ) || !$_GET['order'] ) {
|
27 |
+
wp_die( __( 'You do not have sufficient permissions to access this page.', 'woocommerce-delivery-notes' ) );
|
28 |
+
}
|
29 |
+
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Load the plugin's classes
|
33 |
+
*
|
34 |
+
* @since 1.0
|
35 |
+
*/
|
36 |
+
require_once 'wcdn-classes.php';
|
37 |
+
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Create plugin instance
|
41 |
+
*
|
42 |
+
* @since 1.0
|
43 |
+
*/
|
44 |
+
$wcdn_print = new WooCommerce_Delivery_Notes_Print();
|
45 |
+
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Return Delivery Note template url
|
49 |
+
*
|
50 |
+
* @since 1.0
|
51 |
+
*/
|
52 |
+
if ( !function_exists( 'wcdn_template_url' ) ) {
|
53 |
+
function wcdn_template_url() {
|
54 |
+
global $wcdn_print;
|
55 |
+
return $wcdn_print->template_dir_url;
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Return default title name of Delivery Note (= default Website Name)
|
62 |
+
*
|
63 |
+
* @since 1.0
|
64 |
+
*/
|
65 |
+
if ( !function_exists( 'wcdn_company_name' ) ) {
|
66 |
+
function wcdn_company_name() {
|
67 |
+
return get_bloginfo( 'name' );
|
68 |
+
}
|
69 |
+
}
|
70 |
+
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Return custom title name of Delivery Note (= custom title)
|
74 |
+
*
|
75 |
+
* @since 1.0
|
76 |
+
*/
|
77 |
+
if ( !function_exists( 'wcdn_custom_company_name' ) ) {
|
78 |
+
function wcdn_custom_company_name() {
|
79 |
+
global $wcdn_print;
|
80 |
+
return wpautop( wptexturize( $wcdn_print->get_setting( 'custom_company_name' ) ) );
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Return shop/company info if provided
|
87 |
+
*
|
88 |
+
* @since 1.0
|
89 |
+
*/
|
90 |
+
if (!function_exists( 'wcdn_company_info' ) ) {
|
91 |
+
function wcdn_company_info() {
|
92 |
+
global $wcdn_print;
|
93 |
+
return wpautop( wptexturize( $wcdn_print->get_setting( 'company_address' ) ) );
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
|
98 |
+
/**
|
99 |
+
* Return shipping name
|
100 |
+
*
|
101 |
+
* @since 1.0
|
102 |
+
*/
|
103 |
+
if ( !function_exists( 'wcdn_shipping_name' ) ) {
|
104 |
+
function wcdn_shipping_name() {
|
105 |
+
global $wcdn_print;
|
106 |
+
return $wcdn_print->get_order( $_GET['order'] )->shipping_first_name . ' ' . $wcdn_print->get_order( $_GET['order'] )->shipping_last_name;
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
110 |
+
|
111 |
+
/**
|
112 |
+
* Return shipping company
|
113 |
+
*
|
114 |
+
* @since 1.0
|
115 |
+
*/
|
116 |
+
if ( !function_exists( 'wcdn_shipping_company' ) ) {
|
117 |
+
function wcdn_shipping_company() {
|
118 |
+
global $wcdn_print;
|
119 |
+
return $wcdn_print->get_order( $_GET['order'] )->shipping_company;
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Return shipping address 1
|
126 |
+
*
|
127 |
+
* @since 1.0
|
128 |
+
*/
|
129 |
+
if ( !function_exists( 'wcdn_shipping_address_1' ) ) {
|
130 |
+
function wcdn_shipping_address_1() {
|
131 |
+
global $wcdn_print;
|
132 |
+
return $wcdn_print->get_order( $_GET['order'] )->shipping_address_1;
|
133 |
+
}
|
134 |
+
}
|
135 |
+
|
136 |
+
|
137 |
+
/**
|
138 |
+
* Return shipping address 2
|
139 |
+
*
|
140 |
+
* @since 1.0
|
141 |
+
*/
|
142 |
+
if ( !function_exists( 'wcdn_shipping_address_2' ) ) {
|
143 |
+
function wcdn_shipping_address_2() {
|
144 |
+
global $wcdn_print;
|
145 |
+
return $wcdn_print->get_order( $_GET['order'] )->shipping_address_2;
|
146 |
+
}
|
147 |
+
}
|
148 |
+
|
149 |
+
|
150 |
+
/**
|
151 |
+
* Return shipping city
|
152 |
+
*
|
153 |
+
* @since 1.0
|
154 |
+
*/
|
155 |
+
if ( !function_exists( 'wcdn_shipping_city' ) ) {
|
156 |
+
function wcdn_shipping_city() {
|
157 |
+
global $wcdn_print;
|
158 |
+
return $wcdn_print->get_order( $_GET['order'] )->shipping_city;
|
159 |
+
}
|
160 |
+
}
|
161 |
+
|
162 |
+
|
163 |
+
/**
|
164 |
+
* Return shipping state
|
165 |
+
*
|
166 |
+
* @since 1.0
|
167 |
+
*/
|
168 |
+
if ( !function_exists( 'wcdn_shipping_state' ) ) {
|
169 |
+
function wcdn_shipping_state() {
|
170 |
+
global $wcdn_print;
|
171 |
+
return $wcdn_print->get_order( $_GET['order'] )->shipping_state;
|
172 |
+
}
|
173 |
+
}
|
174 |
+
|
175 |
+
|
176 |
+
/**
|
177 |
+
* Return shipping postcode
|
178 |
+
*
|
179 |
+
* @since 1.0
|
180 |
+
*/
|
181 |
+
if ( !function_exists( 'wcdn_shipping_postcode' ) ) {
|
182 |
+
function wcdn_shipping_postcode() {
|
183 |
+
global $wcdn_print;
|
184 |
+
return $wcdn_print->get_order( $_GET['order'] )->shipping_postcode;
|
185 |
+
}
|
186 |
+
}
|
187 |
+
|
188 |
+
|
189 |
+
/**
|
190 |
+
* Return shipping country
|
191 |
+
*
|
192 |
+
* @since 1.0
|
193 |
+
*/
|
194 |
+
if ( !function_exists( 'wcdn_shipping_country' ) ) {
|
195 |
+
function wcdn_shipping_country() {
|
196 |
+
global $wcdn_print;
|
197 |
+
return $wcdn_print->get_order( $_GET['order'] )->shipping_country;
|
198 |
+
}
|
199 |
+
}
|
200 |
+
|
201 |
+
|
202 |
+
/**
|
203 |
+
* Return shipping notes
|
204 |
+
*
|
205 |
+
* @since 1.0
|
206 |
+
*/
|
207 |
+
if ( !function_exists( 'wcdn_shipping_notes' ) ) {
|
208 |
+
function wcdn_shipping_notes() {
|
209 |
+
global $wcdn_print;
|
210 |
+
return wpautop( wptexturize( $wcdn_print->get_order( $_GET['order'] )->customer_note ) );
|
211 |
+
}
|
212 |
+
}
|
213 |
+
|
214 |
+
|
215 |
+
/**
|
216 |
+
* Return order id
|
217 |
+
*
|
218 |
+
* @since 1.0
|
219 |
+
*/
|
220 |
+
if ( !function_exists( 'wcdn_order_number' ) ) {
|
221 |
+
function wcdn_order_number() {
|
222 |
+
return $_GET['order'];
|
223 |
+
}
|
224 |
+
}
|
225 |
+
|
226 |
+
|
227 |
+
/**
|
228 |
+
* Return the order date
|
229 |
+
*
|
230 |
+
* @since 1.0
|
231 |
+
*/
|
232 |
+
if ( !function_exists( 'wcdn_order_date')) {
|
233 |
+
function wcdn_order_date() {
|
234 |
+
global $wcdn_print;
|
235 |
+
$order = $wcdn_print->get_order( $_GET['order'] );
|
236 |
+
return date( get_option( 'date_format' ), strtotime( $order->order_date ) );
|
237 |
+
}
|
238 |
+
}
|
239 |
+
|
240 |
+
|
241 |
+
/**
|
242 |
+
* Return the order items
|
243 |
+
*
|
244 |
+
* @since 1.0
|
245 |
+
*/
|
246 |
+
if ( !function_exists( 'wcdn_get_order_items' ) ) {
|
247 |
+
function wcdn_get_order_items() {
|
248 |
+
global $wcdn_print;
|
249 |
+
return $wcdn_print->get_order_items( $_GET['order'] );
|
250 |
+
}
|
251 |
+
}
|
252 |
+
|
253 |
+
|
254 |
+
/**
|
255 |
+
* Return the order items price
|
256 |
+
*
|
257 |
+
* @since 1.0
|
258 |
+
*/
|
259 |
+
if ( !function_exists( 'wcdn_format_price' ) ) {
|
260 |
+
function wcdn_format_price( $price, $tax_rate = 0 ) {
|
261 |
+
$tax_included = ( $tax_rate > 0 ) ? 0 : 1;
|
262 |
+
return woocommerce_price( ( ( $price / 100 ) * $tax_rate ) + $price, array( 'ex_tax_label' => $tax_included ) );
|
263 |
+
}
|
264 |
+
}
|
265 |
+
|
266 |
+
|
267 |
+
/**
|
268 |
+
* Return the order subtotal
|
269 |
+
*
|
270 |
+
* @since 1.0
|
271 |
+
*/
|
272 |
+
if ( !function_exists( 'wcdn_order_subtotal' ) ) {
|
273 |
+
function wcdn_order_subtotal() {
|
274 |
+
global $wcdn_print;
|
275 |
+
return $wcdn_print->get_order( $_GET['order'] )->get_subtotal_to_display();
|
276 |
+
}
|
277 |
+
}
|
278 |
+
|
279 |
+
|
280 |
+
/**
|
281 |
+
* Return the order tax
|
282 |
+
*
|
283 |
+
* @since 1.0
|
284 |
+
*/
|
285 |
+
if ( !function_exists( 'wcdn_order_tax' ) ) {
|
286 |
+
function wcdn_order_tax() {
|
287 |
+
global $wcdn_print;
|
288 |
+
return woocommerce_price( $wcdn_print->get_order( $_GET['order'] )->get_total_tax() );
|
289 |
+
}
|
290 |
+
}
|
291 |
+
|
292 |
+
|
293 |
+
/**
|
294 |
+
* Return the order shipping
|
295 |
+
*
|
296 |
+
* @since 1.0
|
297 |
+
*/
|
298 |
+
if ( !function_exists( 'wcdn_order_shipping' ) ) {
|
299 |
+
function wcdn_order_shipping() {
|
300 |
+
global $wcdn_print;
|
301 |
+
return $wcdn_print->get_order( $_GET['order'] )->get_shipping_to_display();
|
302 |
+
}
|
303 |
+
}
|
304 |
+
|
305 |
+
|
306 |
+
/**
|
307 |
+
* Return the order discount
|
308 |
+
*
|
309 |
+
* @since 1.0
|
310 |
+
*/
|
311 |
+
if ( !function_exists( 'wcdn_order_discount' ) ) {
|
312 |
+
function wcdn_order_discount() {
|
313 |
+
global $wcdn_print;
|
314 |
+
return woocommerce_price( $wcdn_print->get_order( $_GET['order'] )->order_discount );
|
315 |
+
}
|
316 |
+
}
|
317 |
+
|
318 |
+
|
319 |
+
/**
|
320 |
+
* Return the order grand total
|
321 |
+
*
|
322 |
+
* @since 1.0
|
323 |
+
*/
|
324 |
+
if ( !function_exists( 'wcdn_order_total' ) ) {
|
325 |
+
function wcdn_order_total() {
|
326 |
+
global $wcdn_print;
|
327 |
+
return woocommerce_price( $wcdn_print->get_order( $_GET['order'] )->order_total );
|
328 |
+
}
|
329 |
+
}
|
330 |
+
|
331 |
+
|
332 |
+
/**
|
333 |
+
* Return if the order has a shipping
|
334 |
+
*
|
335 |
+
* @since 1.0
|
336 |
+
*/
|
337 |
+
if ( !function_exists( 'wcdn_has_shipping' ) ) {
|
338 |
+
function wcdn_has_shipping() {
|
339 |
+
global $wcdn_print;
|
340 |
+
return ( $wcdn_print->get_order( $_GET['order'] )->order_shipping > 0 ) ? true : false;
|
341 |
+
}
|
342 |
+
}
|
343 |
+
|
344 |
+
|
345 |
+
/**
|
346 |
+
* Return if the order has a tax
|
347 |
+
*
|
348 |
+
* @since 1.0
|
349 |
+
*/
|
350 |
+
if ( !function_exists( 'wcdn_has_tax' ) ) {
|
351 |
+
function wcdn_has_tax() {
|
352 |
+
global $wcdn_print;
|
353 |
+
return ( $wcdn_print->get_order( $_GET['order'] )->get_total_tax() > 0) ? true : false;
|
354 |
+
}
|
355 |
+
}
|
356 |
+
|
357 |
+
|
358 |
+
/**
|
359 |
+
* Return if the order has a discount
|
360 |
+
*
|
361 |
+
* @since 1.0
|
362 |
+
*/
|
363 |
+
if ( !function_exists( 'wcdn_has_discount' ) ) {
|
364 |
+
function wcdn_has_discount() {
|
365 |
+
global $wcdn_print;
|
366 |
+
return ( $wcdn_print->get_order( $_GET['order'] )->order_discount > 0 ) ? true : false;
|
367 |
+
}
|
368 |
+
}
|
369 |
+
|
370 |
+
|
371 |
+
/**
|
372 |
+
* Return personal notes, season greetings etc.
|
373 |
+
*
|
374 |
+
* @since 1.0
|
375 |
+
*/
|
376 |
+
if ( !function_exists( 'wcdn_personal_notes' ) ) {
|
377 |
+
function wcdn_personal_notes() {
|
378 |
+
global $wcdn_print;
|
379 |
+
return wpautop( wptexturize( $wcdn_print->get_setting( 'personal_notes' ) ) );
|
380 |
+
}
|
381 |
+
}
|
382 |
+
|
383 |
+
|
384 |
+
/**
|
385 |
+
* Return policy for returns
|
386 |
+
*
|
387 |
+
* @since 1.0
|
388 |
+
*/
|
389 |
+
if ( !function_exists( 'wcdn_policies_conditions' ) ) {
|
390 |
+
function wcdn_policies_conditions() {
|
391 |
+
global $wcdn_print;
|
392 |
+
return wpautop( wptexturize( $wcdn_print->get_setting( 'policies_conditions' ) ) );
|
393 |
+
}
|
394 |
+
}
|
395 |
+
|
396 |
+
|
397 |
+
/**
|
398 |
+
* Return shop/company footer imprint, copyright etc.
|
399 |
+
*
|
400 |
+
* @since 1.0
|
401 |
+
*/
|
402 |
+
if ( !function_exists( 'wcdn_footer_imprint' ) ) {
|
403 |
+
function wcdn_footer_imprint() {
|
404 |
+
global $wcdn_print;
|
405 |
+
return wpautop( wptexturize( $wcdn_print->get_setting( 'footer_imprint' ) ) );
|
406 |
+
}
|
407 |
+
}
|
408 |
+
|
409 |
+
|
410 |
+
/*
|
411 |
+
* Finally output the template
|
412 |
+
*
|
413 |
+
* @since 1.0
|
414 |
+
*/
|
415 |
+
echo $wcdn_print->get_template_content();
|
woocommerce-delivery-notes.php
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Main plugin file. This plugin adds simple Delivery Notes for the WooCommerce Shop Plugin. You can add company/shop info as well as personal notes and policies to the print page.
|
4 |
+
*
|
5 |
+
* @package WooCommerceDeliveryNotes
|
6 |
+
* @author David Decker
|
7 |
+
*
|
8 |
+
* @credits Inspired and based on the plugin "Jigoshop Delivery Notes" by Steve Clark, Trigvvy Gunderson and PiffPaffPuff
|
9 |
+
* @link http://www.clark-studios.co.uk/blog/
|
10 |
+
* @link https://github.com/piffpaffpuff
|
11 |
+
*
|
12 |
+
* Plugin Name: WooCommerce Delivery Notes
|
13 |
+
* Plugin URI: http://genesisthemes.de/en/wp-plugins/woocommerce-delivery-notes/
|
14 |
+
* Description: This plugin adds simple Delivery Notes for the WooCommerce Shop Plugin. You can add company/shop info as well as personal notes and policies to the print page.
|
15 |
+
* Version: 1.0
|
16 |
+
* Author: David Decker - DECKERWEB
|
17 |
+
* Author URI: http://deckerweb.de/
|
18 |
+
* License: GPLv3
|
19 |
+
* Text Domain: woocommerce-delivery-notes
|
20 |
+
* Domain Path: /languages/
|
21 |
+
*/
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Setting constants
|
25 |
+
*
|
26 |
+
* @since 1.0
|
27 |
+
*/
|
28 |
+
define( 'WCDN_PLUGIN_DIR', dirname( __FILE__ ) );
|
29 |
+
define( 'WCDN_PLUGIN_BASEDIR', dirname( plugin_basename( __FILE__ ) ) );
|
30 |
+
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Load the text domain for translation of the plugin
|
34 |
+
*
|
35 |
+
* @since 1.0
|
36 |
+
*/
|
37 |
+
load_plugin_textdomain( 'woocommerce-delivery-notes', false, WCDN_PLUGIN_BASEDIR . '/languages' );
|
38 |
+
|
39 |
+
|
40 |
+
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__) , 'ddw_wcdn_settings_link' );
|
41 |
+
/**
|
42 |
+
* Add "Settings" link to plugin page
|
43 |
+
*
|
44 |
+
* @since 1.0
|
45 |
+
*/
|
46 |
+
function ddw_wcdn_settings_link( $links ) {
|
47 |
+
|
48 |
+
$ddw_wcdn_settings_link = sprintf( '<a href="%s" title="%s">%s</a>' , admin_url( 'admin.php?page=woocommerce_delivery_notes' ) , __( 'Go to the settings page', 'woocommerce-delivery-notes' ) , __( 'Settings', 'woocommerce-delivery-notes' ) );
|
49 |
+
|
50 |
+
array_unshift( $links, $ddw_wcdn_settings_link );
|
51 |
+
|
52 |
+
return $links;
|
53 |
+
|
54 |
+
}
|
55 |
+
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Load admin help tabs and support links on plugins listing page
|
59 |
+
*
|
60 |
+
* @since 1.0
|
61 |
+
*/
|
62 |
+
require_once 'wcdn-help.php';
|
63 |
+
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Load the main plugin classes and functions
|
67 |
+
*
|
68 |
+
* @since 1.0
|
69 |
+
*/
|
70 |
+
require_once 'wcdn-classes.php';
|
71 |
+
|
72 |
+
|
73 |
+
/**
|
74 |
+
* Create an admin instance
|
75 |
+
*
|
76 |
+
* @since 1.0
|
77 |
+
*/
|
78 |
+
$wcdn_admin = new WooCommerce_Delivery_Notes_Admin();
|