Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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.

    #842847

    Hey 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Best regards,
    John Torvik

    #842860

    Thanks, let me know what you find.

    #843311

    I’ve been having the same issue.

    #844273

    Hi,


    @ronduring
    : What is the login url? I tried “wp-admin” and “wp-admin” but it’s not working.

    Best regards,
    Ismael

    #844366
    This reply has been marked as private.
    #844678

    Hi,

    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,
    Ismael

    #844679
    This reply has been marked as private.
    #844685

    The 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.

    #844693

    Hi,

    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,
    Ismael

    #844699

    Thanks, that worked! Is this something that will be added in a future release, or should I create a child theme to add this code?

    #844700

    Hey!

    We have reported the issue to Kriesi. For now, please create a child theme. Thank you for using Enfold.

    Regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Enfold Product Grid, Product Slider, Product List Showing Hidden Products’ is closed to new replies.