Quick woocommerce PHP advice. Where is the data?

I am trying to edit some of our wordpress, woocommerce data for a client and our PHP programmer is out of action so it falls on me. I am not a PHP programmer and pretty new to woocommerce too. I think I have narrowed the data I need to alter to this loop:

<?php while ( have_posts() ) : the_post(); ?>

    <?php wc_get_template_part( 'content', 'product' ); ?> 

<?php endwhile; // end of the loop. ?>

I think the “content” and “product” data is what I need to edit. My question is, where is this data stored? It calls “get_Template_part” and retrieves that data to display it, but where is it? And for clarification, I am not looking to alter the product metadata but the structure and layout of the post itself. Thanks for any help!

Related posts

Leave a Reply

1 comment

  1. The content should be located in your theme directory in a folder called woocommerce assuming the programmer made the appropriate overrides. If not, you need to make a woocommerce folder and put the contents of plugins/woocommerce/templates in there. See Template Structure + overriding templates via a theme by Woo.

    The file should be content-product.php.

    See Github for a master WooCommerce template structure. You might also be working on an older WooCommerce install.

    You can restructure using overrides on the hooks referenced in the pluginswoocommerceincludeswc-template-hooks.php file using your functions.php file or here: http://docs.woothemes.com/document/hooks/.