How to set cart expiration in woocommerce within 15 minutes?

Solution:

Add the following to your themes functions.php file

add_filter('wc_session_expiring', 28800);
add_filter('wc_session_expiration' , 28800);

28800 is 8 hours in seconds so replace this with 900