Ready to get started?Download WordPress


WooCommerce - excelling eCommerce
[resolved] archive-product.php template overwrite not working. (4 posts)

  1. nikasama83
    Posted 7 months ago #

    Im trying to overwrite the landing shop template: myTheme/ woocommerce/ archive-product.php .

    Woocommerce shows it as overwritten under System Status but it is not changing, i have successfully changed other templates without problems but this one refuses to change.

    WP 3.7.1 , Woo 2.0.20 . It also happened with Woo 2.0.19.

    I have seen other posts about the same issue, most of them +9 months old but with no clear solution.

    Am I missing something? Is this a known bug that I keep overlooking? How to fix this?

    Thanks guys, any ideas would be great.


  2. nikasama83
    Posted 7 months ago #

    SO since i didnt get any support from woo i end up spending a large amount of time looking for the problem ... and a solution.

    Issue: archive-product.php custom template would get completely ignored.

    Problem: woocommerce-template.php, woocommerce_content() function is wrong for any archive product case.

    quick solution: on your woocommerce.php template you created instead of


    use this logic:

    if ( is_singular( 'product' ) ) {
       //For ANY product archive.
       //Product taxonomy, product search or /shop landing
        woocommerce_get_template( 'archive-product.php' );

    This will call your woo template, that would be YOURTHEME/ woocommerce/ archive-product.php and you wont have to edit any file inside the plugin folder

    I hope this helps anyone with a similar problem that did not buy their theme.

  3. bassjobsen
    Posted 4 months ago #

    Thanks for posting your issue and solution here. I found something similar, your fix helps here too. See: https://github.com/bassjobsen/jamedo-bootstrap-start-theme/archive/master.zip

    For me its not clear why the template system not work with woocommerce_content().

  4. joeleade
    Posted 2 months ago #

    Thanks @nikasama83. I've taken on a project using a non-WooThemes theme and had the same problem. This snippet has got me back on track.



You must log in to post.

About this Plugin

About this Topic


No tags yet.