<?php if ( class_exists( 'WooCommerce' ) && is_woocommerce() ) { ?>

<aside class="sidebar" role="complementary">
	<?php dynamic_sidebar( 'shop-sidebar' ); ?>
</aside>

<?php } else { ?>

<aside class="sidebar" role="complementary">
	<?php dynamic_sidebar( 'blog-sidebar' ); ?>
</aside>

<?php } ?>