updated the woocommerce_instance method