I made my own plugin that lets me set a limit on user spending for a specific time period, the plugin checks if adding a product (and in the chosen quantity) to the cart exceeds the limit, and if it does, it removes the added quantity from the cart and shows a message that the limit was exceeded.
The issue I've run into is that I'm using the following code to get the product, which I run on the 'woocommerce_add_to_cart' hook that brings along the Cart ID, Product ID, and Product Quantity.
$product = wc_get_product($productId);
$productPrice = $product->get_price();
The issue is that this only gets the base price, not any prices set on a B2Bking group/user set using B2Bking itself. Is there a way to get the listed price on the user's shop page specifically? The alternative is that I compare their new cart total to the old, but that requires a pageload and I feel like that's not a good solution.