
-
AuthorPosts
-
March 13, 2014 at 7:57 pm #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/4vG9VrJust to check, I created a page where the only content is the product grid and it isn´t working:
http://goo.gl/3RsxnZThe 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]
March 15, 2014 at 6:18 am #237939Hey Gabriel!
Are you using the latest version of Enfold (2.6.1)?
Cheers!
JosueMarch 17, 2014 at 5:49 pm #238872This reply has been marked as private.March 17, 2014 at 7:25 pm #238936Hello,
Please try to deactivate all third party plugins (except WooCommerce) to see if it gets fixed.
Regards,
JosueMarch 17, 2014 at 7:45 pm #238950This reply has been marked as private.March 18, 2014 at 9:03 am #239217Hey!
Please create me an admin account – I’ll look into it.
Cheers!
PeterMarch 18, 2014 at 5:29 pm #239465This reply has been marked as private.March 19, 2014 at 8:14 am #239901Hey!
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!
PeterMarch 19, 2014 at 2:44 pm #240069This reply has been marked as private.March 20, 2014 at 9:12 am #240560Hey!
I found a temporary fix. Please leave the ftp account active because I want to show the conflicting code to Kriesi.
Cheers!
PeterMarch 20, 2014 at 4:52 pm #240783This reply has been marked as private.March 21, 2014 at 8:41 am #241054Hey!
Ok :)
Best regards,
PeterApril 16, 2014 at 9:26 pm #252304This reply has been marked as private.April 18, 2014 at 8:43 am #253038Hey!
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,
PeterApril 21, 2014 at 5:16 pm #253933This reply has been marked as private.April 22, 2014 at 7:19 am #254198Hi!
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 -
This topic was modified 11 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.