Change subtotal
-
Hi,
I’ve try to change subtotal by Sous-total HT but… nothing
Can you help me to understand where i’ve made an error please ?Thank you
my code :
add_filter( ‘wpo_wcpdf_order_subtotal’, ‘wpo_wcpdf_order_subtotal_HT’, 10, 1 );
function wpo_wcpdf_order_subtotal_HT ( $subtotal, $tax, $discount, $order_document ) {
foreach($totals as $key => $total) {
if($key == ‘order_subtotal’) {
$totals[$key][‘label’] = ‘Sous Total HT’;
}
}
return $totals;
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Change subtotal’ is closed to new replies.