We are building a Woocommerce website with Sage and have run into an issue.
We have a custom post type called “internship” and each internship is linked to a Woo product. In the internship page, when we want to check whether the product is a simple or variable product, we are getting incorrect return value in get_type method for $product.
The behavior you’re describing seems like it’s WooCommerce-related, not Sage-related.
Have you examined $product directly to verify that the correct products are being retrieved/created, and it’s only the type test that’s not working correctly?