Error thrown

Call to undefined method WC_Product_Simple::get_date_on_sale_to()