My client wanted to show the total price of a multi seat purchase for WooCommerce Teams directly on the page. I thought it would be easy, and then found [this starting code](https://alexanderdejong.com/wordpress/wp-tutorial/add-total-price-calculation-woocommerce-product-page-ajax/) I could use to get myself going.

It worked out of the box, but didn’t calculate the total price properly since you start with a set quantity of seats for a given product. A quick call to `get_post_meta` to find the minimum seats for a product let me show the starting price. Then Alexander’s code takes over and runs the calculation as the user changes the quantity.