• Resolved mattborgman

    (@mattborgman)


    I’m trying to add the woocommerce notice for adding to cart to my archive page.

    I’ve read online about adding theme support to my functions.php file as well as editing woocommerce.php to include

    
    if (is_singular('product')) {
    	woocommerce_content():
    } else {
    	woocmmerce_get_template('archive-product.php');
    }
    

    The action that I see online that I need to add to archive-product.php seems to be
    do_action('woocommerce_before_single_product');
    but no matter what I do I can’t seem to edit archive.php

    Any help would be greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @mattborgman ,

    Can you please elaborate a little more about the expected result from your code?

    The action hook will add content to the single product page. Not directly on the archive page. If you can give me a detailed expectation, I could suggest the right steps for that.

    Looking forward to your response.

    Thank you ??

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to add add to cart notice on archive page’ is closed to new replies.