Home Forums Porto Template Combo Sorting Bug

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10031417
    dmarketinggirl
    Participant

    Hi,

    We noticed a bug with the combo sorter that keeps the filtered data from the second sorter when you click ‘show all’ on the first sorter.

    how to see the bug:
    load the page, click ‘Plasti-Fab EPS Product Solutions’, click one of the secondary sorting filter links ie. Geotechnical, then click ‘Show All’ on the first sorter.

    Wondering if there is a way to clear the sorted data after clicking Show all?


    #10031420
    Support2
    Keymaster

    Hello, thanks for your purchase.

    Please note that it’s no a bug, but the expected behavior.

    Note that the combination filter needs to match the classes of the two filters to show the respective items. If the filters match only one class, then the item will not be displayed.

    Regarding “Wondering if there is a way to clear the sorted data after clicking Show all?”:

    This is possible. For it change the code in js/examples/examples.portfolio.js around line 654 to this new:

    $('.filters').on('click', 'a', function(e) {
    	
    	e.preventDefault();
    	
    	var $this = $(this);
    
    	if( $this.parent().data('option-value') == '*' ) {
    		$grid.isotope({
    			filter: '**'
    		});
    
    		$('.portfolio-filter-group[data-filter-group="group2"]')
    			.find('li')
    			.removeClass('active');
    
    		$('.portfolio-filter-group[data-filter-group="group2"]')
    			.find('a')
    			.removeClass('active');
    
    		$('.portfolio-filter-group[data-filter-group="group2"]')
    			.find('li')
    			.first()
    			.addClass('active')
    			.find('a')
    			.addClass('active');
    
    		return;
    	}
    
    	var $buttonGroup = $this.parents('.portfolio-filter-group');
    	var filterGroup = $buttonGroup.attr('data-filter-group');
    	
    	filters[filterGroup] = $this.parent().attr('data-option-value');
    	
    	var filterValue = concatValues(filters);
    
    	$grid.isotope({
    		filter: filterValue
    	});
    });

    Please try that and let us know if you need further assistance.

    Kind Regards,

    Rodrigo.


    #10031425
    dmarketinggirl
    Participant

    That has fixed our issue. Thanks for your help!


    #10031427
    Support2
    Keymaster

    Hello,

    Great!

    If you need further assistance feel free to contact us.

    Kind Regards,

    Rodrigo.


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