ResolvedProduct filter – Custom shop page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #25427
    mou
    Participant

    Hi,

    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!

    #25459
    Alex
    Keymaster

    Hi mou,

    Could you send us temporary admin account, so we can check?

    You can use the “Set as private reply” checkbox below.

    Regards,
    Alex

    #25464
    mou
    Participant
    This reply has been marked as private.
    #25487
    Alex
    Keymaster

    Hello,

    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,
    Alex

    #25541
    mou
    Participant

    Hi 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=true

    3) 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!

    #25548
    Althemist
    Keymaster

    Hello 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,
    Dimitar

    #25553
    mou
    Participant

    Hi 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,

    #25585
    Althemist
    Keymaster

    Hello mou,

    sorry about that. It looks like I posted in the wrong topic. Removing it now.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for any item belonging to this account
AlThemist

AlThemist

sales 17932, followers 752
Login and Registration Log in · Register