Support » Plugin: WooCommerce » Treat cart items individually without using grouped products

  • I am working on a site that allows a person to personalize each item they add to the cart (custom embroidery). It is possible that a person will add the same sku to the cart but have different personalization for each item. Initially when the same sku is added the cart total reflects this, however, when you go to checkout it simply replaces the first item that was added to the cart with the most recent one.

    How can I get each item be displayed separately?

    I came across this thread and was hoping that it would solve my problem:

    Unfortunately after adding the suggested code below I still cannot add cart items with the same sku individually.

    function namespace_force_individual_cart_items($cart_item_data, $product_id)
    	$unique_cart_item_key = md5(microtime().rand()."Hi Mom!");
    	$cart_item_data['unique_key'] = $unique_cart_item_key;
    	return $cart_item_data;

    Any help would be greatly appreciated!

  • The topic ‘Treat cart items individually without using grouped products’ is closed to new replies.