List View for product-filters IDStore WP

This topic has 11 replies, 3 voices, and was last updated 9 years, 9 months ago ago by Olga Barlow

  • Avatar: dwd
    dwd
    Participant
    January 30, 2015 at 03:42

    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

    Please, contact administrator
    for this information.
    10 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    January 30, 2015 at 12:42

    Hello,

    Please provide us with wp-admin panel credentials in Private Content to check this issue.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: dwd
    dwd
    Participant
    February 1, 2015 at 03:20

    Thanks. Please see below.

    dwd

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    February 2, 2015 at 13:01

    Hello,

    Sorry, but the credentials are incorrect.
    Please check them.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: dwd
    dwd
    Participant
    February 3, 2015 at 02:36

    OK. My bad. Please try again.

    Thanks

    dwd

    Avatar: Eva
    Eva Kemp
    Support staff
    February 3, 2015 at 11:10

    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.

    Avatar: dwd
    dwd
    Participant
    February 3, 2015 at 14:29

    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

    Avatar: Eva
    Eva Kemp
    Support staff
    February 3, 2015 at 15:41

    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.

    Avatar: dwd
    dwd
    Participant
    February 3, 2015 at 17:21

    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

    Avatar: Eva
    Eva Kemp
    Support staff
    February 3, 2015 at 19:07

    Hello,

    You can contact our specialists via this contact form https://www.8theme.com/contact-us/
    Thank you.

    Regards,
    Eva Kemp.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 6, 2015 at 09:20

    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

  • Viewing 11 results - 1 through 11 (of 11 total)

The issue related to '‘List View for product-filters IDStore WP’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.