Woocommerce products sorting issue
Hi guys,
I am having difficulties sorting the products shown on product page the way I want. Default sorting options are not working in my case, so I need to sort it by price. But such an option is not available in Brizy by default.
I am switching to Brizy + Blocksy from an older page made using The Ark theme. On that page there is a field to add PHP query arguments for products sorting and I was using following arguments:
$args['post_type']='product';
$args['product_cat']='card-game-accessories';
$args['orderby']='meta_value_num';
$args['meta_key']='_price';
$args['order']='ASC';
$args['posts_per_page']=99;
Is there a way to add this to Brizy, so my products are rendered in ascending order filtered by price?
-
Hi,
Unfortunately, at the moment, the Products elements don't have the option to filter the products by price as you already noticed. I would not recommend adding a PHP query to the Brizy files because it can cause some inconveniences and wrong behaviour in the working of the builder.
I will inform our team about this request and they will make a decision on this aspect. I'm sorry for this inconvenience.
Best regards,
Sandra0
Please sign in to leave a comment.
Comments
1 comment