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.
See code snippet snapshot - http://prntscr.com/nisk0k
(Woo,WP,Sage all latest versions as of today)
We have declare woocommerce support and wc-status shows Theme support is enabled.
Any help / tips on what we might be doing wrong?