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

elames on "[Plugin: WooCommerce - excelling eCommerce] Woo Commerce Side bar on product page"

$
0
0

Ok...I FINALLY found the solution!!

Create a sidebar-shop.php

Put in this code then ftp to the theme folder.

Hope this will help someone!!

<div id="sidebar">

<?php
wp_reset_query();
if(is_product()) {
generated_dynamic_sidebar();
} else {
$shop_page_id = get_option('woocommerce_shop_page_id');
$name = get_post_meta($shop_page_id, 'sbg_selected_sidebar_replacement', true);
if($name) {
generated_dynamic_sidebar($name[0]);
}
}
?>
</div>


Viewing all articles
Browse latest Browse all 104029

Trending Articles