M A
asked on
Automate filter in Opencart.
Automate filter in Opencart default template.
I replaced with this code but it hide the refine search button but it is not giving the right result.
Now the refine button is hidden but not getting the right result. I want to update the filter when I tick the tickbox.
Is there anyone who can guide me to get the filter on check box event.
<script type="text/javascript">
$(document).ready(function() {
// hide the "submit" button
$('#button-filter').hide();
// bind onChange event to the checkboxes
$('.click_checkbox_manufacturers-filter').live('change', function() {
filter = [];
$('.box-filter input[type=\'checkbox\']:checked').each(function(element) {
filter.push(this.value);
});
window.location = '<?php echo $action; ?>&filter=' + filter.join(',');
});
});
//--></script>
I replaced with this code but it hide the refine search button but it is not giving the right result.
Now the refine button is hidden but not getting the right result. I want to update the filter when I tick the tickbox.
Is there anyone who can guide me to get the filter on check box event.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window