
-
AuthorPosts
-
November 6, 2024 at 9:06 am #1470740
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
November 7, 2024 at 5:42 am #1470803Hey 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,
IsmaelNovember 9, 2024 at 12:02 pm #1470952Hi 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
November 9, 2024 at 8:29 pm #1470979Hi,
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,
MikeFebruary 3, 2025 at 1:33 pm #1476236Hi, so I’ve since installed the Barn2 plug in “Woocommerce product filters” but I can’t get it to work on Enfold’s product grid. Please can you help?
Thank you
Sarah
February 4, 2025 at 6:03 am #1476279Hi,
The Product Grid element generates its own query and the plugin might be designed to modify only the default WooCommerce queries or templates. You may need to avoid using it with the Product Grid element and instead apply it to default WooCommerce templates, such as the base shop page or product category pages. Unfortunately, making the plugin compatible with the theme falls outside the scope of support.
Thank you for your understanding.
Best regards,
IsmaelFebruary 4, 2025 at 7:48 am #1476294Hi Ismael, thank you – is there a paid option for the work to get this sorted?
February 4, 2025 at 9:58 pm #1476357 -
AuthorPosts
- You must be logged in to reply to this topic.