ResolvedProduct filter – Custom shop page
Tagged: refer filter, Shop Page, Sidebar, widget
- This topic has 7 replies, 3 voices, and was last updated 3 years ago by
Althemist.
- AuthorPosts
- August 31, 2020 at 10:34 am #25427
mou
ParticipantHi,
I’m creating a new shop page with elements that I want. I’d like to use your filter, but for some reason it never displays.
I used the widget element and also the page properties enabling the “Product filters sidebar”, none of them display the filter. When using the page properties it shows an empty space for a sidebar, but anything inside.
In the Shop page default, everything works fine, filters are shown. But when I try to add your filter in other pages that are showing woocommerce products, nothing happens.
Please, could you assist me? I’m not sure if it’s some validation. I checked your code and just saw validations that the filter should be enabled to work, which it is, so I don’t know the reason.Thanks!
September 1, 2020 at 11:10 pm #25459Alex
KeymasterHi mou,
Could you send us temporary admin account, so we can check?
You can use the “Set as private reply” checkbox below.
Regards,
AlexSeptember 2, 2020 at 8:31 am #25464mou
ParticipantThis reply has been marked as private.September 3, 2020 at 11:12 am #25487Alex
KeymasterHello,
Sorry, I misunderstood your question. I actually didn’t need your credentials.
Product filters can be used only on the Shop page, category, tags and taxonomy WooCommerce pages. Not on a custom page where you put a shortcode to list the products. That’s because the “Product filters sidebar” is displayed only on those pages.
Regards,
AlexSeptember 6, 2020 at 11:06 pm #25541mou
ParticipantHi Alex,
Thanks for the explanation. I added the shop page as a parent page of it. It shouldn’t work? “shop/custom-page/”
Can I add custom pages in our verification to display the filter? I mean, in which file and where should I add this verification? I believe you already have this if somewhere.I have two other questions.
2) Is there a way to show the filter box opened through an URL? By default, I set to be closed. But for some links, I’ll redirect the user to a filtered product list page. The filter works, but it can be confusing for the user if they are not seeing that filters are applied because the bar is closed.
Something like shop/?filter_open=true3) I hide the price range filter, but now the bar has a large empty space. Is there a way to display some text in this part?
Thank you!
September 8, 2020 at 9:16 am #25548Althemist
KeymasterHello mou,
No, it actually can’t work like this.
Product filters can only work on the default product-archive.php generated pages. They can’t work on a standard page with products shortcode. This is not theme related, it’s how WooCommerce work and it’s the same with any theme.
2) Yes, you can do this. Just add the following query tot end of the URL:
?refine_area_state=closed
– e.g.yoursite.com/shop/?refine_area_state=closed
3. I am afraid no. In all default themes where there is no price filter there it’s the same – large empty are with just the sorting controls on the right.
Hope this helps.
Regards,
DimitarSeptember 8, 2020 at 9:54 am #25553mou
ParticipantHi Dimitar!
Thanks for your answers.
I understood your first reply, but I’m not sure of what you were referring to in your last reply.
Could you please explain?Regards,
September 9, 2020 at 11:59 am #25585Althemist
KeymasterHello mou,
sorry about that. It looks like I posted in the wrong topic. Removing it now.
- AuthorPosts
You must be logged in and have valid license to reply to this topic.