That error simply just means there are two functions with the same name causing "redeclare" error.
Assuming it is coming from a plugin, you can either rename the function to something else yourself and update all references to it or simply don't use that plugin if there is already a built in function in WooCommerce that does it.