Following Set only specific products sale price programmatically in WooCommerce 3, the related cart items price are not updated with the product's generated sale price.
How can I get the generated sale price for specific products, in the related cart items?
Any help is appreciated.
To get the right generated sale price in cart item for specific product IDs try the following:
Code goes in function.php file of your active child theme (active theme). Tested and works.