Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #371483

    Hello

    I using “Woocommerce” and “WP e-Commerce Compare Products” plugins and need to manually set compare button position next to the Add to Cart button. Can you please help me to add this code `<?php if ( function_exists(‘woo_add_compare_button’ ) ) echo woo_add_compare_button(); ?>
    ` next to the Add to Cart button.

    #371654

    Hey zibaloon2!

    Open up /enfold/config-woocommerce/config.php and find line 226 which should look like this.

    if($output && !post_password_required()) echo "<div class='avia_cart_buttons $extraClass'>$output</div>";
    

    Try adding this above it.

    if ( function_exists( 'woo_add_compare_button' ) ) { $output .= woo_add_compare_button(); }
    

    You may have to do some CSS work with it though.

    Regards,
    Elliott

    • This reply was modified 9 years, 11 months ago by Elliott.
    #371657

    Hey zibaloon2!

    What do you mean? what kind of help do you want?
    I think you should add this code to the file functions.php

    Cheers!
    Andy

    #374649

    Hi Bro

    Does not work for me.

    #375212

    Hi!

    Perhaps the plugin function is echoing out the content instead of returning it. It would be best to contact the plugin authors about this.

    Best regards,
    Elliott

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.