I'm trying to fetch the WooCommerce products meta data using $product = new WC_Product( get_the_ID() );
I'm getting the product price and all the other values the products are downloadable WooCommerce products, I want to fetch the following data:
Whenever i try to fetch $product->downloads->id
or $product->downloads->file
i'm getting null in return. Please tell me what i'm doing wrong over here.