Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

jameskoster on "[Plugin: WooCommerce - excelling eCommerce] my current theme doesnt support woocoomers"

$
0
0

Duplicate that page and rename it 'woocommerce.php'.

Then, replace:

global $post;
if (have_posts()) {
	while (have_posts()) {
		the_post();
		$original_post = $post;
		do_action('suffusion_before_post', $post->ID, 'blog', 1);
?>
		<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php suffusion_after_begin_post(); ?>
			<div class="entry-container fix">
				<div class="entry fix">
					<?php suffusion_content(); ?>
				</div><!--/entry -->
			<?php
				// Due to the inclusion of Ad Hoc Widgets the global variable $post might have got changed. We will reset it to the original value.
				$post = $original_post;
				suffusion_after_content();
			?>
			</div><!-- .entry-container -->
<?php
suffusion_before_end_post();
comments_template();
?>

		</article><!--/post -->

<?php
		do_action('suffusion_after_post', $post->ID, 'blog', 1);
	}
}

with:

woocommerce_content();

Thanks


Viewing all articles
Browse latest Browse all 104029

Trending Articles