Print order invoices & delivery notes for WooCommerce shop. You can add company/shop info as well as personal notes & policies to print pages.
Printed paper needs a higher pixel density for images than the screen. To make your printed logo look nice and crisp it will be resized via CSS to a fourth of the uploaded pixel size. This means: An image of 400p x 400px will be displayed as a 100px x 100px image but will be printed with the original amount of pixels. With the resizing, 288 pixels of the original image width correspond to about 1 printed inch.
WooCommerce includes address formats for many different countries. But maybe your country format isn't included. For such cases you can define your own format with a filter in your functions.php if you know your country code (ie LI).
function custom_localisation_address_formats($formats) {
$formats['LI'] = "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}";
return $formats;
}
add_filter('woocommerce_localisation_address_formats', 'custom_localisation_address_formats');
Copy the style.css (and no other file) from the /wp-content/plugins/woocommerce-delivery-notes/templates/print folder and paste it inside your /wp-content/themes/your-theme-name/woocommerce/print folder (if not there just create it). You can modify CSS to fit your own needs.
Note: There is automatically a class assigned to the html tag that helps you to target the template-type in your CSS.
If you want to use your own template then all you need to do is copy the the files you want to edit from /wp-content/plugins/woocommerce-delivery-notes/templates/print folder and paste them inside your /wp-content/themes/your-theme-name/woocommerce/print folder (if not there just create it). The folder from the plugin comes with the default templates and the basic CSS files. You can modifiy those to fit your own needs.
All WordPress and all functions from other plugins and themes can be used. There are also many many specific template functions. Open the /wp-content/plugins/woocommerce-delivery-notes/woocommerce-delivery-notes.php file to see all of them.
Create a custom template (see questions above). Then edit the file to your needs. You can use all functions that are available in WordPress or any activated plugin or theme.
Example: Show an order custom field that was added by another plugin (e.g. '_my_custom_field')
echo wcdn_get_order_custom_field('_my_custom_field');
The page will be printed as you see it in your browser when you enabled the preview.
Beyond the styling of the template be aware of any special features of the used browser. They may not print websites properly or add a pagination or website url. Use a "Print Preview" feature of your browser which all current versions of Firefox, Chrome, Safari and Opera support.
For custom and update-secure language files please upload them to /wp-content/languages/woocommerce-delivery-notes/ (just create this folder) - This enables you to use fully custom translations that won't be overridden on plugin updates. Also, complete custom English wording is possible with that, just use a language file like woocommerce-delivery-notes-en_US.mo/.po to achieve that (for creating one see the tools on "Other Notes"). And finally contact one of the developers if you would like to add your translation to the standard distribution.
Requires: 3.5 and WooCommerce 2.0 or higher
Compatible up to: 3.5.1 and WooCommerce 2.0.8
Last Updated: 2013-6-16
Downloads: 40,165
2 of 21 support threads in the last two months have been resolved.
Got something to say? Need help?