Hi, I’m after some help please :)
I’m trying to get a drop down on my shop that has the filter “default” and “by price” only. I also can’t figure out how to get this to show on my product grids? I have product grids on many pages but can’t get them to show them there. (I also don’t want the “display number of products per page” to show.)
It would be good to have the sidebar with other clickable options like on the demo – https://kriesi.at/themes/enfold-shop/shop/ but I can’t figure that out either. I notice that the filters disappear on the mobile view, is there a way of keeping them?
Thank you so much for your help on this,
Sarah
Hey glodesign,
Thank you for the inquiry.
The product filter only works on the default shop and archive pages; unfortunately, it’s not designed to work within the product grid element.
To adjust the options in the dropdown, you can add this filter in the functions.php file:
function avf_custom_wc_product_order_dropdown($product_order) {
return [
'default' => __( 'Default', 'avia_framework' ),
'price' => __( 'Price', 'avia_framework' ),
];
}
add_filter('avf_wc_product_order_dropdown_frontend', 'avf_custom_wc_product_order_dropdown');
Best regards,
Ismael
Hi Ismael, thank you for this. I have allocated the page I want to sort as the default shop page, added the code, and no sorting is showing apart from one about how many products per page should show which I don’t want on there anyway? Please can you help ASAP
Hi,
When I test the function above on my test site, only default & price shows in the “sort by” drop down, to also hide the “display” drop down try adding this css to your Quick CSS in the theme options:
.template-shop .product-sorting .sort-param-count {
display: none;
}
Best regards,
Mike