How to disable comments on new blog post, but allow on new products?

I found this snippet & it seems working: https://www.businessbloomer.com/woocommerce-override-single-product-settings/

So I guess my problem is solved.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)