• First of all I am a novice to WordPress and on this forrum too. I am recently developing a shopping cart site with WooCommerce(version 2.2.8).
    I have developed a theme with WooCommerce compatibility following this link: http://docs.woothemes.com/document/third-party-custom-theme-compatibility
    Now, the thing is I want to customize the “single product page” & I have copied the “single-product.php” file from “wp-content/plugins/woocommerce/templates/” directory to “wp-content/themes/my_theme/woocommerce/” directory as mentioned in that particular file:
    <?php
    /**
    * The Template for displaying all single products.
    *
    * Override this template by copying it to yourtheme/woocommerce/single-product.php
    *
    * @author WooThemes
    * @package WooCommerce/Templates
    * @version 1.6.4
    */
    ………….. ?>
    but is still not overriding! I dont know why! Can anyone tell me what is the procedure for overriding this template?

Viewing 1 replies (of 1 total)
  • Thread Starter Jeet Banerjee

    (@jeetb89)

    Oh! I have got it. I have written a file called woocommerce.php in theme’s root directory, which has the highest priority than all other page templates. I just deleted the file & after that the copied single-product.php is working. Is the “woocommerce.php” file is necessary to keep?

Viewing 1 replies (of 1 total)

The topic ‘Overriding WooCommerce Default Templates’ is closed to new replies.