There you are.
Thanks
I was not able to attach de file so I'll copy de code, anyway you can access to the file if you want. I gave you FTP access.
<?php
add_action( 'woocommerce_after_add_to_cart_button', 'flytheme_single_addcart', 10 );
function flytheme_single_addcart(){
/* compare & wishlist */
global $product;
$html = '';
$html .= '<div class="single-product-addcart">';
if( is_plugin_active( 'yith-woocommerce-compare/init.php' ) ){
/*$yith_compare = new YITH_Woocompare_Frontend();
add_shortcode( 'yith_compare_button', array( $yith_compare , 'compare_button_sc' ) );
$html .= do_shortcode( "[yith_compare_button]" );*/
$html .= '<div class="compare-button"><a href="javascript:void(0)" class="compare button" data-product_id="'. $product_id .'" rel="nofollow">'. esc_html__( 'Compare', 'furnicom' ) .'</a></div>';
}
if( is_plugin_active( 'yith-woocommerce-wishlist/init.php' ) ){
$html .= do_shortcode( "[yith_wcwl_add_to_wishlist]" );
}
$html .= '</div>';
echo $html;
}
function ya_cpwl_init(){
if( is_plugin_active( 'yith-woocommerce-compare/init.php' ) ){
update_option( 'yith_woocompare_compare_button_in_product_page', 'no' );
update_option( 'yith_woocompare_compare_button_in_products_list', 'no' );
}
if( is_plugin_active( 'yith-woocommerce-wishlist/init.php' ) ){
update_option( 'yith_wcwl_button_position', 'shortcode' );
}
}
add_action('admin_init','ya_cpwl_init');
?>