New Landing How can we help? Themeforest Theme Support Neighborhood Top Rated products on Homepage doesn't work properly

Viewing 6 posts - 1 through 6 (of 6 total)
  • #155706
    ricovanlent
    Member
    Post count: 7

    Hi support,

    The” top rated products” on our homepage doesn’t work properly. Also the related products on the product page is not working correctly, it shows random products. Do you know how to fix this?

    Thank you,

    #155827
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Are you using latest version of theme and plugins?
    Thanks
    Mohammad

    #155849
    ricovanlent
    Member
    Post count: 7

    Hi Mohammad,

    Thanks for your reply.
    Yes everything is up to date.

    #155851
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me specific page url and wordpress admin login detail.
    Thanks
    Mohammad

    #155952
    ricovanlent
    Member
    Post count: 7
    This reply has been marked as private.
    #155980
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Top rated products are displaying perfectly. There are many related products so its showing randomly. I have resolved it. I edited related.php file at /neighborhood/woocommerce/single-product/

    Find this code:-
    global $product, $woocommerce_loop, $sf_carouselID;
    
    $related = $product->get_related(12);
    
    if ( sizeof( $related ) == 0 ) return;
    $args = apply_filters('woocommerce_related_products_args', array(
    	'post_type'				=> 'product',
    	'ignore_sticky_posts'	=> 1,
    	'no_found_rows' 		=> 1,
    	'posts_per_page' 		=> 12,
    	'orderby' 				=> $orderby,
    	'post__in' 				=> $related,
    	'post__not_in'			=> array($product->id)
    ) );
    
    Change with:-
    global $product, $woocommerce_loop, $sf_carouselID;
    
    $related = $product->get_related(12);
    
    if ( sizeof( $related ) == 0 ) return;
    
    $args = apply_filters('woocommerce_related_products_args', array(
    	'post_type'				=> 'product',
    	'ignore_sticky_posts'	=> 1,
    	'no_found_rows' 		=> 1,
    	'posts_per_page' 		=> 12,
    	'orderby' 				=> 'title',
    	'order'   => 'ASC',
    	'post__in' 				=> $related,
    	'post__not_in'			=> array($product->id)
    ) );

    Thanks
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register