Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Fires for each of the cart item details in the order summary.
Parameters #
$cart_item(array) – The cart item array containing product data, quantity, and other cart item information.$cart_item_key(string) – The unique key for this cart item.$product(WC_Product) – The WooCommerce product object for this cart item.
Examples #
/**
* Add product SKU to cart item details
*/
function add_cart_item_sku( $cart_item, $cart_item_key, $product ) {
if ( $product->get_sku() ) {
echo '<div class="cart-item__element cart-item__sku">SKU: ' . esc_html( $product->get_sku() ) . '</div>';
}
}
add_action( 'fc_order_summary_cart_item_details', 'add_cart_item_sku', 10, 3 );
