Add javascript to a woocommerce page template

There is Woocommerce conditional tag for single product page

Try

if(is_product())

instead of

if ( is_page_template( 'single-product.php' ))

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