Tagged: Product Grid, product list, product slider, woocommerce
-
AuthorPosts
-
August 23, 2017 at 2:28 am #842834
Several sites that I support that have Grouped products in Woocommerce are now showing the single hidden products that make up the group when displaying the products on a page. I have tested this on a few different sites, on a few different servers, and then tested for conflicts with other plugins and nothing worked to make the products not show using the Enfold Woo Addons. The default Woo /Shop page is working correctly in all cases that I tested. It is only showing the group product, and the hidden single products are not showing.
August 23, 2017 at 4:56 am #842847Hey ronduring,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Best regards,
John TorvikAugust 23, 2017 at 5:41 am #842860Thanks, let me know what you find.
August 23, 2017 at 10:41 pm #843311I’ve been having the same issue.
August 26, 2017 at 4:49 am #844273Hi,
@ronduring: What is the login url? I tried “wp-admin” and “wp-admin” but it’s not working.Best regards,
IsmaelAugust 26, 2017 at 5:37 pm #844366This reply has been marked as private.August 28, 2017 at 6:42 am #844678Hi,
Thank you for the update.
The “Editor” panel is not accessible. Please try this filter in the functions.php file:
add_filter('avia_product_slide_query', 'avia_product_slide_query_mod', 10, 2); function avia_product_slide_query_mod($query, $params) { $grouped_term = get_term_by( 'name', 'grouped', 'product_type' ); if( $grouped_term instanceof WP_Term ) { $query['tax_query'][] = array( 'taxonomy' => 'product_type', 'field' => 'term_taxonomy_id', 'terms' => array( $grouped_term->term_taxonomy_id ), 'operator' => 'NOT IN' ); } return $query; }
Best regards,
IsmaelAugust 28, 2017 at 6:44 am #844679This reply has been marked as private.August 28, 2017 at 6:55 am #844685The code was put in the functions file at the bottom. When it was added the grouped product is not showing now, but the singles are. It needs to be the opposite of that. Show the grouped product, but hide the associated products in the group that are set as hidden in woo. Access to the editor is back on.
August 28, 2017 at 7:21 am #844693Hi,
I see. We modified the code in the functions.php file.
add_filter('avia_product_slide_query', 'avia_product_slide_query_mod', 10, 2); function avia_product_slide_query_mod($query, $params) { $hidden_term = get_term_by( 'name', 'exclude-from-catalog', 'product_visibility' ); if( $hidden_term instanceof WP_Term ) { $query['tax_query'][] = array( 'taxonomy' => 'product_visibility', 'field' => 'name', 'terms' => 'exclude-from-catalog', 'operator' => 'NOT IN' ); } return $query; }
Best regards,
IsmaelAugust 28, 2017 at 7:27 am #844699Thanks, that worked! Is this something that will be added in a future release, or should I create a child theme to add this code?
August 28, 2017 at 7:32 am #844700 -
AuthorPosts
- The topic ‘Enfold Product Grid, Product Slider, Product List Showing Hidden Products’ is closed to new replies.