Please try to add the below hook in your child theme’s functions.php.
function thwepof_enable_sold_individually($cart_id, $product_id, $variation_id, $variation, $cart_item_data){
if($product_id == Your_product_id){
unset($cart_item_data['thwepof_options']);
unset($cart_item_data['unique_key']);
THWEPOF_Utils::write_log($cart_item_data);
$id_parts = array( $product_id );
if ( $variation_id && 0 !== $variation_id ) {
$id_parts[] = $variation_id;
}
if ( is_array( $variation ) && ! empty( $variation ) ) {
$variation_key = '';
foreach ( $variation as $key => $value ) {
$variation_key .= trim( $key ) . trim( $value );
}
$id_parts[] = $variation_key;
}
if ( is_array( $cart_item_data ) && ! empty( $cart_item_data ) ) {
$cart_item_data_key = '';
foreach ( $cart_item_data as $key => $value ) {
if ( is_array( $value ) || is_object( $value ) ) {
$value = http_build_query( $value );
}
$cart_item_data_key .= trim( $key ) . trim( $value );
}
$id_parts[] = $cart_item_data_key;
}
$cart_id = md5( implode( '_', $id_parts ));
}
return $cart_id;
}
add_filter( 'woocommerce_cart_id', 'thwepof_enable_sold_individually', 10, 5 );
You need to replace Your_product_id with the ID of your product.
Hope this will help.
Thank you