Home Forums Themes Support Bibo Products Ajax Category Tab doesn't work

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #628

    Hi all Customer,
    When WooCommerce update and maybe some functions doesn’t work with shortcode Products Ajax Category Tab doesn’t work.
    So you can fix it by following steps:
    Step 1: Go to path {yourwebroot}/wp-content/plugins/milo-bibo-core/includes/shortcodes/products-creative/products-in-category-tabs/utils/ then open file ajax-action.php
    Step 2: Find the code

    $args = array(
    	'post_type'           => 'product',
    	'post_status'         => 'publish',
    	'ignore_sticky_posts' => 1,
    	'posts_per_page'      => $per_page,
    	'orderby'             => 'date',
    	'order'               => 'desc',
    	'meta_query'          => array(
    		array(
    			'key'     => '_visibility',
    			'value'   => array('catalog', 'visible'),
    			'compare' => 'IN'
    		)
    	)
    );		

    and change to

    $args = array(
    	'post_type'           => 'product',
    	'post_status'         => 'publish',
    	'ignore_sticky_posts' => 1,
    	'posts_per_page'      => $per_page,
    	'orderby'             => 'date',
    	'order'               => 'desc'
    );

    Hope this help all!
    P/s: we’ll update this in new version so new customer can don’t worry about this problem!

    *********
    Best regards,
    MiloTheme

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.