piffpaffpuff
Forum Replies Created
-
you could actually style every type however you want.
function woocommerce_style_order_print_templates() { ?> <style> /* Print order delivery note style */ .delivery-note .head-item-price, .delivery-note .head-price, .delivery-note .product-item-price, .delivery-note .product-price, .delivery-note .order-items tfoot { display: none; } .delivery-note .head-name, .delivery-note .product-name { width: 50%; } .delivery-note .head-quantity, .delivery-note .product-quantity { width: 50%; } .delivery-note .order-items tbody tr:last-child { border-bottom: 0.24em solid black; } /* Print order receipt style */ .receipt .content { padding: 4% 6%; } .receipt .company-address, .receipt .order-addresses { display: none; } .receipt .order-info li span { display: inline-block; float: right; } .receipt .order-thanks { margin-left: inherit; } </style> <?php } add_action( 'wcdn_head', 'woocommerce_style_order_print_templates', 20 );or you could even overload the php files with your on html. the whole system is build for flexibility. it is up to the user to create his own templates.
but besides that it wold also make it possible to include multiple templates in the future.
here’s the updated version:
function my_price_free_delivery_note() { ?> <style> .delivery-note .head-item-price, .delivery-note .head-price, .delivery-note .product-item-price, .delivery-note .product-price, .delivery-note .order-items tfoot { display: none; } .delivery-note .head-name, .delivery-note .product-name { width: 50%; } .delivery-note .head-quantity, .delivery-note .product-quantity { width: 50%; } .delivery-note .order-items tbody tr:last-child { border-bottom: 0.24em solid black; } </style> <?php } add_action( 'wcdn_head', 'my_price_free_delivery_note', 20 );Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Invoice Date@alemarengo84 nice hack but i wouldn’t edit plugin files, it’s not update proof. you could edit the template by copying it. but there is even an easier solution via a filter in functions.php:
https://wordpress.org/support/topic/invoice-data?replies=3
the invoice date is generated when you print the invoice for the first time.
Hi, I’m sorry but the file from that download link ist terribly out of date. Please use the .pot file in the plugin folder to create a new translation. You can also find a little bit more info about language contributions here: https://github.com/piffpaffpuff/woocommerce-delivery-notes#translating
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Quantity runs in with pricenormally all columns are aligned to the left. do you use any custom styling? you need to edit it if you do so. otherwise could you please post a screenshot? thanks
do you have poedit installed?
after that open the danish po file.
then select “Update from POT file” choose the pot (not po file) file from the plugin languages folder. now all string should be loaded and ready for translation.
commit your changes to github: https://github.com/piffpaffpuff/woocommerce-delivery-notes#translating
@maximan i’m sorry that it didn’t resolve the problem. maybe you forgot to delete your copy of the template in your themes/woocommerce folder?
@cteevee yes this code part has changed because woocommerce made some modifications in WC 2.2. actually the issue should be solved with the latest WC, WP and plugin.
to your modifications/features:
1. & 2. you can do that with a hook, check the template and use the addresses hook.
3. there is an example here: https://wordpress.org/support/topic/make-font-bigger-1?replies=4
4. will be included in the next update
5. create your own translation pot file.
6. – 8. this can all be done with css. please check the faq for that. and then you probably have to learn some css because i currently do not have time to write it for you. but maybe another forum user likes to join in.Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Increase the font size@cteevee I think this isn’t the best solution to the issue. Your issue stems rather from an unwanted combination of WooCommerce 2.1.x settings.
By default the shipping address is hidden when “Only ship to the users billing address” is activated. That’s fine but it can happen that this setting is activated without knowing it. Follow these steps to reproduce the issue and probably fix it:
- Go to the WooCommerce Settings an switch to the “Shipping” tab and locate the “Shipping Destination” section.
- Make sure “Ship to billing address by default” and “Only ship to the users billing address” are checked. Attention: The “Only ship to the users billing address” is only revealed when the other option is activated. And most probably that setting was activated but the other not.
- Save your settings. Note: Now only the billing address will be printed. If that’s your desired setting, you can stop here otherwise go to next step.
- Uncheck “Only ship to the users billing address”
- Save your settings. Note: Now the billing and shipping address will be printed. Continue to the next step if you want that your customers have to always enter both addresses at the checkout. Otherwise stop here.
- Uncheck “Ship to billing address by default” to oblige your customers to enter both addresses on the checkout.
Sorry this was a left over test comment. Fixed in 3.4.2
@cteevee thanks for the feedback. more about your issue: https://wordpress.org/support/topic/exclude-prices-from-delivery-note?replies=2
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] blank print pageThanks for the feedback, you’re welcome.
Actually the opposite is true. The plugin is mostly tested against the latest WooCommerce version only and I try to not include much legacy support. But this time I had to.
I recommend to always update WooCommerce to the latest version as soon as you know your Plugins support it. Most Plugin developers mention the support in their release notes.
I see. Unfortunately I have no idea what plugin you use and I can’t support plugins that cost. but you can try something like that in the functions.php (not tested):
`
function print_order_barcode( $order ) {
if( class_exists( ‘WC_Order_Barcodes’ ) ) {
echo WC_Order_Barcodes()->display_barcode( $order->id );
}
}
add_action( ‘wcdn_after_colophon’, ‘print_order_barcode’ );
`