Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #237149

    Hello,
    This is a new problem I have encountered:

    When I place a product grid object in a page the Enfold Latest News widget doesn’t show the latest posts
    Here is an Example:
    http://goo.gl/TUZwbO
    (the product grid is located at the bottom before the footer, the latest news widget is the one in the center column in the footer)

    In the rest of the website where the product grid is not showing the latest news widget works ok:
    eg. http://goo.gl/4vG9Vr

    Just to check, I created a page where the only content is the product grid and it isn´t working:
    http://goo.gl/3RsxnZ

    The same happens with the default latest posts widget, so the problem may be laying on the Product Grid Object.

    I´ve been using the template for around 6 months and this bug is new, it used to be working fine. I don´t know if it has anything to do with the latest update of woo commerce. I mention this as it might help find the error

    Thanks in advance for your fix,
    Gabriel

    • This topic was modified 11 years, 1 month ago by gabrielbaril. Reason: [hide original url so it is not indexed in search engines]
    #237939

    Hey Gabriel!

    Are you using the latest version of Enfold (2.6.1)?

    Cheers!
    Josue

    #238872
    This reply has been marked as private.
    #238936

    Hello,

    Please try to deactivate all third party plugins (except WooCommerce) to see if it gets fixed.

    Regards,
    Josue

    #238950
    This reply has been marked as private.
    #239217

    Hey!

    Please create me an admin account – I’ll look into it.

    Cheers!
    Peter

    #239465
    This reply has been marked as private.
    #239901

    Hey!

    While I debugged the code I provoke a php error. Please replace the functions.php file (wp-content/themes/enfold/functions.php) with the original functions.php file to get rid of the error. You can use ftp to replace the file. Please also create me an ftp account because I must modify a file I can’t access with the default theme editor ( wp-content/themes/enfold/framework/php/class-framework-widgets.php ) and I don’t want to break your website while I debug the code.

    Cheers!
    Peter

    #240069
    This reply has been marked as private.
    #240560

    Hey!

    I found a temporary fix. Please leave the ftp account active because I want to show the conflicting code to Kriesi.

    Cheers!
    Peter

    #240783
    This reply has been marked as private.
    #241054

    Hey!

    Ok :)

    Best regards,
    Peter

    #252304
    This reply has been marked as private.
    #253038

    Hey!

    Thanks. I found a logical error in my solution. Please open up wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php and replace

    
    			if($orderBY == 'popularity' || $orderBY == 'rating')
    			{
    		    		remove_filter( 'posts_clauses', array( WC()->query, 'order_by_popularity_post_clauses' ) );
    				remove_filter( 'posts_clauses', array( WC()->query, 'order_by_rating_post_clauses' ) );
    			}
    

    with

    
    
    	    	remove_filter( 'posts_clauses', array( $woocommerce->query, 'order_by_popularity_post_clauses' ) );
    			remove_filter( 'posts_clauses', array( $woocommerce->query, 'order_by_rating_post_clauses' ) );
    

    We’ll include this fix in Enfold 2.7.

    Best regards,
    Peter

    #253933
    This reply has been marked as private.
    #254198

    Hi!

    Ok, then replace

    
    query_posts($query);
    

    with

    
    query_posts($query);
    
    	    	remove_filter( 'posts_clauses', array( $woocommerce->query, 'order_by_popularity_post_clauses' ) );
    			remove_filter( 'posts_clauses', array( $woocommerce->query, 'order_by_rating_post_clauses' ) );
    

    Best regards,
    Peter

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.