Change “add to cart” button color based on Woocommerce product category [closed]

This is a filter. It should return value, not render HTML/CSS/JS inside. For your color change, why didn’t you override the template file. eg: woocomerce\single-product\add-to-cart\simple.php

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