Title: WooCommerce functionality
Last modified: August 21, 2016

---

# WooCommerce functionality

 *  [johngab](https://wordpress.org/support/users/johngab/)
 * (@johngab)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-functionality/)
 * I’ve been looking for the page.php in order to copy and Woocommerce to my site.
   As of yet, I haven’t been able to locate a simple page.php file. Does anyone 
   know if one exists? Or how to make this theme compatible with Woocommerce?

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Thread Starter [johngab](https://wordpress.org/support/users/johngab/)
 * (@johngab)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964501)
 * Nevermind. I found a post by Nikeo indicating there wasn’t a e-commerce plugin
   as of yet. Guess I’ll have to find a different theme 🙁
 *  [decoy3339](https://wordpress.org/support/users/decoy3339/)
 * (@decoy3339)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964689)
 * I guess I don’t understand – I have the Woo plugs running, and while I am barely
   fluent in all of this, they do seem to be there and operating… What exactly were
   you trying to accomplish that you couldn’t?
 *  [resortvibe](https://wordpress.org/support/users/resortvibe/)
 * (@resortvibe)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964690)
 * decoy3339, what is the website you have Customizr working with WooCommerce? I’d
   like to take a look to see if you’ve got it working the way I need it to.
 *  [decoy3339](https://wordpress.org/support/users/decoy3339/)
 * (@decoy3339)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964691)
 * I’m pretty sure I don’t have it working at all – I’m just trying to anticipate
   the problems down the road.
 *  [HappySage](https://wordpress.org/support/users/happysage/)
 * (@happysage)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964797)
 * Ok so the short answer to make the woocommerce.php put in to it the following
   code but that’s not quite all of it.
 *     ```
       <?php
       /*
       Template Name: Woocommerce Page
       */
       get_header();
          do_action( '__fp_block' );
          do_action( '__breadcrumb' );?>
            <div class="container" role="main">
              <div class="row">
                <?php do_action( '__sidebar' , 'left' );?>
                <div class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
                  <?php woocommerce_content(); ?>
                </div>
       	 <?php    do_action( '__sidebar' , 'right' );?>
              </div><!--#row -->
            </div><!-- #container -->
          <?php
       get_footer();
       ?>
       ```
   
 * you also need to add this line to the functions.php
    `remove_action( 'woocommerce_sidebar','
   woocommerce_get_sidebar', 10);`
 * And the fun way To do this so that you wont loose anything when you upgrade the
   theme is to create a child theme its easy, if you don’t know how look [here](http://codex.wordpress.org/Child_Themes)
   then add the following to the functions.php in your child theme.
 *     ```
       /*
        * Adding WooCommerce theme support to this theme.
        */
       remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);
       remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);
   
       remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);
   
       function my_theme_wrapper_start() {
        do_action( '__fp_block' );
           do_action( '__breadcrumb' );
             ?>
               <div class="container" role="main">
                   <div class="row">
                       <?php
                           do_action( '__sidebar' , 'left' );?>
       		  <div class="<?php echo tc__f( '__screen_layout' , tc__f ( '__ID' ) , 'class' ) ?> article-container">
       			  <?php
       }
   
       function my_theme_wrapper_end() {
         ?></div><!--.article-container --><?php
          do_action( '__sidebar' , 'right' );
                       ?>
                   </div><!--#row -->
               </div><!-- #container -->
           <?php
       }
   
       add_theme_support( 'woocommerce' );
       ```
   
 * It works good for me.
 *  [DeaJae](https://wordpress.org/support/users/deajae/)
 * (@deajae)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964806)
 * With a little modification works with Jigoshop too. I abandoned the functions
   side of things and went editing the plugin’s actions directly as i didn’t thin
   kthe PHP from loop would parse easily.
    It’s a start but needs lot of CSS tweaking
 *  [marvelycious](https://wordpress.org/support/users/marvelycious/)
 * (@marvelycious)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964818)
 * Ok! I already have my child theme created. So where do I put these codes? Do 
   I need to revert to my original theme to make the changes? Please advise. Thank
   you. Oh I am still on CSS for dummies:)
 *  [DeaJae](https://wordpress.org/support/users/deajae/)
 * (@deajae)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964820)
 * put the first box of code into a new file called woocommerce.php, upload to your
   child theme.
    Put the second box of code into your child theme’s function.php
   at the bottom and reupload/save.
 * With all that done switch wordpress to use your child theme and see how that 
   looks.
 * You may have to select woocommerce page as the page type to get it to work on
   certain pages.
    I found replacing `<div class="<?php echo tc__f( '__screen_layout',
   tc__f ( '__ID' ) , 'class' ) ?> article-container">` with `<div class="<?php 
   span6 article-container">` worked for me in function.php as another plugin was
   possibly stripping/disrupting the PHP and showing the result as ‘Array’
 *  [HappySage](https://wordpress.org/support/users/happysage/)
 * (@happysage)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964821)
 * Ok there are three pieces of code in the post i wrote.
 * **do one of either create the woocommerce.php file from the first box**
 *  OR
 *  put the second box into your functions.php file
 * If woocommerce.php file exists it will not look in the functions.php file for
   the answer so the functions file will be redundant.
 * I found that woocommerce still puts in its own sidebar and that was messing with
   the layout so i added
 * `remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);`
    to fix
   that.
 *  [HappySage](https://wordpress.org/support/users/happysage/)
 * (@happysage)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964822)
 * Oh also DeaJae, The line
    `<div class="<?php echo tc__f( '__screen_layout' , 
   tc__f ( '__ID' ) , 'class' ) ?> article-container">` is the line if coad that
   i traced down is responsible for creating the line `<div class="<?php span6 article-
   container">` It will also work for all other types of screenlayout that the theme
   might generate.
 *  [shadow666](https://wordpress.org/support/users/shadow666/)
 * (@shadow666)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964829)
 * Might add MarketPress eCommerce from wpmu dev. Integrates well without php tweaks.
   One drawback .. the plugin doesn’t respond to grid view settings for the shop.
   Think it’s due to the Twitter bootstrap underneath.
 *  [marvelycious](https://wordpress.org/support/users/marvelycious/)
 * (@marvelycious)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964830)
 * What? I am more confused than before tee hee. Ok I am going to give it a try 
   and see. Thanks for helping..
 *  [weifu](https://wordpress.org/support/users/weifu/)
 * (@weifu)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964838)
 * [@happysage](https://wordpress.org/support/users/happysage/) – thank you for 
   your explanation. I’ve successfully integrated WooCommerce with Customizr child
   theme.
 * I have another question I’m wondering if you or anyone could help me with?
 * For the featured page option, instead of page, how could I insert a WooCommerce
   product page?
 * I’m trying to achieve this look: [http://www.gbvalley.com/store](http://www.gbvalley.com/store)
 * Thanks.
 *  [Seahawksean](https://wordpress.org/support/users/seahawksean/)
 * (@seahawksean)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964839)
 * You’ll find a very easy to follow explanation how to incorporate Woocommerce 
   into any theme here:
    [http://docs.woothemes.com/document/third-party-custom-theme-compatibility/](http://docs.woothemes.com/document/third-party-custom-theme-compatibility/)

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘WooCommerce functionality’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

 * 14 replies
 * 9 participants
 * Last reply from: [Seahawksean](https://wordpress.org/support/users/seahawksean/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/woocommerce-functionality/#post-3964839)
 * Status: not resolved