I already have some actions/filters on my functions php that they work I just added the snipet at the bottom maybe theres something that brokes the filter? Here I leave all my functions.php
<?php
/**
* Use this file for all your template filters and actions.
* Requires WooCommerce PDF Invoices & Packing Slips 1.4.13 or higher
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_add_woo_delivery_data', 10, 2 );
function wpo_wcpdf_add_woo_delivery_data( $template_type, $order ) {
$document = wcpdf_get_document( $template_type, $order );
$delivery_data = array( 'delivery_date', 'delivery_time', 'pickup_date', 'pickup_time' );
foreach( $document->get_woocommerce_totals() as $key => $total ) {
if ( in_array( $key, $delivery_data ) ) {
?>
<tr class="woo-delivery">
<th><?php echo $total['label']; ?></th>
<td><?php echo $total['value']; ?></td>
</tr>
<style>table.totals tr.<?php echo $key; ?> { display: none; }</style>
<?php
}
}
}
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_bold_sku', 10, 2 );
function wpo_wcpdf_bold_sku ( $document_type, $document ) {
?>
dd.sku {
font-weight: bold;
}
<?php
}
add_filter( 'wpo_wcpdf_invoice_title', 'wpo_wcpdf_invoice_title', 10, 2 );
function wpo_wcpdf_invoice_title ( $title, $document ) {
$title = 'Comanda';
return $title;
}