• Resolved mkhenrik

    (@mkhenrik)


    Hi,

    On several of my sites using Woocommerce 3.3.x the theme-files has stopped working.

    Woocommerce seems to use page.php as the theme file instead of single-product.php.

    It works to put archive-product.php and single-product.php directly in the theme folder (and not in “woocommerce” sub folder), but when i have a multilanguage site (with WPML), the archive-product.php is not working for any language but the main language.

    Anyone else having this problem?

    Kind regards
    Henrik

    • This topic was modified 6 years, 1 month ago by mkhenrik.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Make sure the theme properly declares WooCommerce support if you plan on overriding templates: https://github.com/woocommerce/woocommerce/wiki/Declaring-WooCommerce-support-in-themes

    Thread Starter mkhenrik

    (@mkhenrik)

    I have made my own custom themes and it has worked nicely for the last 1-2 years. Have you made big changes in how the templating works between 3.2.6 and 3.3.x?

    Is it expected that Woocommerce uses “theme-name/page.php” as template file before using “theme-name/woocommerce/single-product.php”?

    Do you have any documentation of the recent changes in the templating functionallity?

    Kind regards
    Henrik

    Thread Starter mkhenrik

    (@mkhenrik)

    Sorry i misunderstood your answer at first. To declare Woocommerce support solved all my problems! Huge thanks!

    Kind regards
    Henrik

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce uses page.php instead of child theme files’ is closed to new replies.