Get product IDs which jave been added to the cart
-
How can I get the IDs of the products, currently added in the cart (cart.php)? The cart.php already have generated the list of products –
‘printf(‘%s‘, esc_url( get_permalink( apply_filters(‘woocommerce_in_cart_product_id’, $values[‘product_id’] ) ) ), apply_filters(‘woocommerce_in_cart_product_title’, $_product->get_title(), $values, $cart_item_key ) ); ‘
But I need the ID numbers, not product names.
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get product IDs which jave been added to the cart’ is closed to new replies.