Title: Adding Woocommerce Loop to page.php
Last modified: August 31, 2016

---

# Adding Woocommerce Loop to page.php

 *  [riverbum75](https://wordpress.org/support/users/riverbum75/)
 * (@riverbum75)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/adding-woocommerce-loop-to-pagephp/)
 * Hi,
 * I’ve added Woocommerce to my site and following [the instructions](https://docs.woothemes.com/document/third-party-custom-theme-compatibility/)
   I am trying to add the Woocommerce Loop to the page.php of my template.
 * I am having trouble identifying what exactly I need to replace – this is the 
   code from my page.php
 *     ```
       <?php
       get_template_part('single', 'config');
       get_header();
       global $blogConf, $show, $single_content_type, $data, $isFrontendEditorPage, $isProfileOptionsPage, $isFavoritePage, $isDraftPage;
       if (have_posts ()) { the_post();
           $isFrontendEditorPage=isset($data['frontend_editor_page'])&&$data['frontend_editor_page']==$post->ID ? true:false;
           $isProfileOptionsPage=isset($data['profile_options_page'])&&$data['profile_options_page']==$post->ID ? true:false;
           $isFavoritePage      =isset($data['favorite_page'])       &&$data['favorite_page']       ==$post->ID ? true:false;
       	$isDraftPage      =isset($data['draft_page'])       &&$data['draft_page']       ==$post->ID ? true:false;
           $single_content_type=array('item','teaser');
           if($isFavoritePage || $isDraftPage){get_template_part('frontend','favorite');}
           else{get_template_part('content', 'single');}
       }
       get_footer();
       ```
   
 * Any help or suggestions gratefully received!
 * Thanks

The topic ‘Adding Woocommerce Loop to page.php’ is closed to new replies.

## Tags

 * [page.php](https://wordpress.org/support/topic-tag/page-php/)
 * [woocommerce.php](https://wordpress.org/support/topic-tag/woocommerce-php/)

 * 0 replies
 * 1 participant
 * Last reply from: [riverbum75](https://wordpress.org/support/users/riverbum75/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/adding-woocommerce-loop-to-pagephp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
