• Hola
    Necesito imprimir las etiquetas de envío de los pedidos WooCommerce (con los datos de remitente y destinatario, no de bultos, volumen y peso) + un listado de los pedidos expedidos en el día con los mismos datos que sirva como albarán de recogida para la empresa de transporte.
    ?WooCommerce PDF Invoices & Packing Slips permite hacerlo?

    Hello
    I need to print the shipping labels of the WooCommerce orders (with the sender and recipient data, number of packages, volume and weight) + a list of the orders issued on the day with the same data that serves as a delivery note for the company Of transport.

    ?WooCommerce PDF Invoices & Packing Slips lets do it?

Viewing 1 replies (of 1 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @mariajosediaz,

    Shop address and the customer’s shipping address are already displayed by default in our template. So are the quantity and weight of each product. To add the total volume per line you can use the following code snippet:

    add_action( 'wpo_wcpdf_after_item_meta', 'wpo_wcpdf_add_total_volume_per_line', 10, 3 );
    function wpo_wcpdf_add_total_volume_per_line ( $template_type, $item, $order ) {
    	if ( $template_type == 'packing-slip' && $product = $item['product'] ) {
    		$total_volume = ( floatval( $product->get_length() ) * floatval( $product->get_width() ) * floatval( $product->get_height() ) ) * $item['quantity'];
    		printf( '<span><strong>Total volume: </strong>%s cm&sup3;</span>', $total_volume );
    	}	
    }

    This code snippet should be placed in the functions.php of your child theme. If you haven’t worked with code snippets or functions.php before please read this: How to use filters
    To create a list of orders within a specific timeframe check out our Print Order List plugin.

    • This reply was modified 5 years, 3 months ago by kluver.
    • This reply was modified 5 years, 3 months ago by kluver.
Viewing 1 replies (of 1 total)
  • The topic ‘imprimir las etiquetas de envío de los pedidos WooCommerce’ is closed to new replies.