Skip to main content

fc_order_summary_cart_item_totals_before

Type: Action

Fires before the line total of an order summary cart item.

Signature​

do_action( 'fc_order_summary_cart_item_totals_before', $cart_item, $cart_item_key, $_product );

Parameters​

NameTypeDescription
$cart_itemarrayCart item data.
$cart_item_keystringCart item key.
$_product\WC_ProductProduct object.

Since​

  • 3.0.5

Source: templates/fc/checkout-steps/checkout/review-order.php

Examples​

add_action( 'fc_order_summary_cart_item_totals_before',
/**
* Add cart totals header.
*
* @param array $cart_item Cart item data.
* @param string $cart_item_key Cart item key.
* @param \WC_Product $_product Product object.
*/
function( $cart_item, $cart_item_key, $_product ) {
echo '<div>Product total</div>';
},
10,
3
);