So I added the Germanized Woocommerce plugin for my site. Now I can print shipping labels directly from WordPress.
I would like to make a small change to the printed labels. When it prints I want to see the ordered product on the label + the amount of product ordered.
This is the code to the label customization but I am not good at coding. How could I change it so that the product can be shown on the label? Thank you!
<?php
add_filter( 'woocommerce_gzd_dhl_label_customer_reference', 'my_child_adjust_dhl_customer_reference', 10, 3 );
function my_child_adjust_dhl_customer_reference( $ref, $label, $shipment ) {
// Adjust $ref
return $ref;
}