I plugin WooCommerce B2B o di sconti sono supportati nel PDF?
Per ottenere il prezzo di un prodotto usiamo la funzione standard di WooCommerce get_price_html. Se il tuo plugin B2B o di sconti di terze parti si aggancia a questa funzione, funzionerà.
Puoi anche agganciarti tu al filtro applicato lì, così:
// define the woocommerce_get_price_html callback
function filter_woocommerce_get_price_html( $price, $instance ) {
if($instance->get_id() == 96) {
$price = '40 €';
}
return $price;
};
// add the filter
add_filter( 'woocommerce_get_price_html', 'filter_woocommerce_get_price_html', 10, 2 );