woocommerce_cart_item_name

  • 0

This hook, works for each product in cart. Its arguments are, name, cart item details and a item key.

add_filter(‘woocommerce_cart_item_name’,’cart_single_item’);

function cart_single_item($product_name, $values, $cart_item_key )   {

echo $product_name;

print_r($values);

print_r($cart_item_key);

}

If you need to append anything in each cart item, use this filter.

 

This hook, works for each product in cart. Its arguments are, name, cart item details and a item key. add_filter(‘woocommerce_cart_item_name’,’cart_single_item’); function cart_single_item($product_name, $values, $cart_item_key )   { echo $product_name; print_r($values); print_r($cart_item_key); } If you need to append anything in each cart item, use this filter.  

This hook, works for each product in cart. Its arguments are, name, cart item details and a item key. add_filter(‘woocommerce_cart_item_name’,’cart_single_item’); function cart_single_item($product_name, $values, $cart_item_key )   { echo $product_name; print_r($values); print_r($cart_item_key); } If you need to append anything in each cart item, use this filter.