• Resolved Kahil

    (@kahil)


    Are they all supposed to look exactly alike? I’ve tested various other plugins to handle this task, and they all have different layouts with the other plugins. For instance…the delivery note (the slip that goes in when shipping) is just a very trimmed down version with only a brief summary of contents, etc.

    Just trying to figure out what your intended purpose for all of them when they all are exactly the same. Seems redundant to not just have one version. Unless of course having different versions is your future goal?

    https://ww.wp.xz.cn/plugins/woocommerce-delivery-notes/

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)

The topic ‘Difference between invoice, note and receipt?’ is closed to new replies.