mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Add filter for the total
This commit is contained in:
parent
cb624eb3bf
commit
0038922fe8
1 changed files with 1 additions and 0 deletions
|
@ -131,6 +131,7 @@ class WooCommerceOrderCreator {
|
||||||
}
|
}
|
||||||
|
|
||||||
$total = $product->get_price() * $quantity;
|
$total = $product->get_price() * $quantity;
|
||||||
|
$total = apply_filters( 'woocommerce_paypal_payments_shipping_callback_cart_line_item_total', $total, $cart_item );
|
||||||
|
|
||||||
$item->set_name( $product->get_name() );
|
$item->set_name( $product->get_name() );
|
||||||
$item->set_subtotal( $total );
|
$item->set_subtotal( $total );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue