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

    Hi Guys,

    I need to add and extra button on some single product listings (woocomerce), I have found many code snippets online such as –

    add_action( ‘woocommerce_single_product_summary’, ‘my_funtion_sample’, 30 );
    function my_funtion_sample() {
    global $product;
    echo ‘Back to cart‘;

    However non seem to work with Enfold and I have tried adding it to both functions.php and the enfold functions file as well.

    Also, I need to add it to only specific product categories, anyone had this issue?

    Thanks guys


    Hey Gekko101,

    Ive checked your site and theres many errors in the console, solve all of them.

    Best regards,
    John Torvik


    Thanks for the reply, however can you explain how that relates?

    Is the code snippet I’m using correct, what functions file do I edit?

    Is there a specific console error that’s stopping this from working?


    The console errors are to do with icons only btw.



    Can you try to manually change the (‘) single quotes? I have tried your code and it worked after changing it. Hope this helps.

    Best regards,

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