Adding product to WooCommerce cart [closed]

I had used this plugin for similar scenario. Please check it’s BOGO (Buy One Get One) feature. That will address your requirement.

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