This topic has 11 replies, 3 voices, and was last updated 9 years, 9 months ago ago by Olga Barlow
Hi 8theme,
I have selected Only List view in Theme Options > Products Page Layout but I still get grid view for product filters (latest products, featured products, best sellers, etc) whatever variables I use in the shortcode. Is there a solution to ensure I have only list view displayed for product filters please?
Many thanks
dwd
Hello,
Please provide us with wp-admin panel credentials in Private Content to check this issue.
Thank you.
Regards,
Eva Kemp.
Thanks. Please see below.
dwd
Hello,
Sorry, but the credentials are incorrect.
Please check them.
Thank you.
Regards,
Eva Kemp.
OK. My bad. Please try again.
Thanks
dwd
Hello,
As you’re using shortcodes for those pages the products are shown in grid view. Unfortunately there is no option to display shortcode products in list view. Sorry.
Regards,
Eva Kemp.
Thanks for your answer. In that case may I suggest that you could add this feature to the next release? is this a realistic ask?
Or, can you suggest a method to show these product groups in list view please?
Thanks
dwd
Hello,
We’re sorry, but for now there is no such possibility.
We’ve taken your query into our account and will try to implement it in future updates.
Thank you.
Regards,
Eva Kemp.
Thanks.
I would argue that this is a fundamental oversight in your design and should be rectified. However, if you don’t wish to help please could you recommend a developer that may be able to build this feature in for me?
Thanks
dwd
Hello,
You can contact our specialists via this contact form https://www.8theme.com/contact-us/
Thank you.
Regards,
Eva Kemp.
Hello,
You need to alter etheme_woocommerce_best_selling_products shortcode. Edit idstore/code/woo.php (lines 937-984) replace by following code:
function etheme_woocommerce_best_selling_products( $atts ){
global $woocommerce_loop;
extract( shortcode_atts( array(
'limit' => '12',
'columns' => '4'
), $atts ) );
$args = array(
'post_type' => 'product',
'post_status' => 'publish',
'ignore_sticky_posts' => 1,
'posts_per_page' => $limit,
'meta_key' => 'total_sales',
'orderby' => 'meta_value',
'meta_query' => array(
array(
'key' => '_visibility',
'value' => array( 'catalog', 'visible' ),
'compare' => 'IN'
)
)
);
ob_start();
$products = new WP_Query( $args );
$woocommerce_loop['columns'] = $columns;
if ( $products->have_posts() ) : ?>
<div id="products-grid" class="products_grid products-list row rows-count<?php echo $columns ?>">
<?php while ( $products->have_posts() ) : $products->the_post(); ?>
<?php woocommerce_get_template_part( 'content', 'product' ); ?>
<?php endwhile; // end of the loop. ?>
</div>
<div class="clear"></div>
<script type="text/javascript">imageTooltip(jQuery('.imageTooltip'))</script>
<?php endif;
wp_reset_query();
return ob_get_clean();
}
Regards,
Olga Barlow
Tagged: idstore, list view, product-filters, woocommerce, woocommerce templates, wordpress
The issue related to '‘List View for product-filters IDStore WP’' has been successfully resolved, and the topic is now closed for further responses