Remove “Comments are closed” Notice from Custom Post Type template

Add a post type check to the if clause;

if ( ! comments_open() && ! is_page() && 'duka' != get_post_type() ) :

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