Home › Forums › WoodMart support forum › Ajax Load Subcategory
Ajax Load Subcategory
- This topic has 9 replies, 2 voices, and was last updated 11 months, 1 week ago by Luke Nielsen.
-
AuthorPosts
-
June 13, 2023 at 3:18 pm #474621
squaritiveParticipantHi, I would like to have an ajax loading of the subcategory displayed on the title.
It is working fine on the Demo Retail Theme https://prnt.sc/MbIGkxa3Db7q. I just select the subcategory and it loads on the same page.
However, on the Mega Electronic Demo, When I click a subcategory, it takes me to a new subcategory page. https://prnt.sc/UggMRYqKAKpV
How can I keep it on the same page just like Demo Retail Theme?
Using Elementor.
June 13, 2023 at 4:42 pm #474670
Luke NielsenKeymasterHello,
It’s because you have separate pages for Categories. Please navigate to Dashboard -> Layouts -> Products archive -> leave enabled only this one: https://take.ms/E1gvC
In the meantime, feel free to ask me any questions you may have.
Kind Regards
June 13, 2023 at 5:04 pm #474690
squaritiveParticipantI did that, But still it opens on a different page. What is the setting in the first screenshot that it loads on the same page and how can I achieve it in the second screenshot I sent?
June 13, 2023 at 6:17 pm #474702
squaritiveParticipantAlso, when I change the type to Navigation, it works just fine.
https://prnt.sc/3WTqLF3QQ1u9It opens the subcategory products on the same page.I want this flow to happen with the Grid Type because I want a category slider. Not a dropdown on mobile view.
June 13, 2023 at 6:40 pm #474703
squaritiveParticipantAlso, when I change the type to Navigation, it works just fine. Opens the subcategory products on the same page.
I want this flow to happen with the Grid Type because I want a category slider. Not a dropdown on mobile view.
Attachments:
You must be logged in to view attached files.June 14, 2023 at 9:42 am #474785
Luke NielsenKeymasterHello,
Is there any chance that you could give me access to the dashboard area so I can have a look at the settings on your website, please?
Kind Regards
June 14, 2023 at 10:49 am #474818
squaritiveParticipantProvided
June 15, 2023 at 10:37 am #475078
Luke NielsenKeymasterHello,
In the element, you have set the “Woocommerce query” type: https://take.ms/iB5P0 . It always shows child categories of a specific category, which is why it doesn’t work the way you want it to.
You need to set the “Custom query” in the “Data source” field so then it should work as you want.
Kind Regards
June 15, 2023 at 11:56 am #475111
squaritiveParticipantYes, it works fine that way. But I need the following to happen:
When I open a parent category, it should show subcategories. When I click a subcategory of a parent category, it should open on the same page and not on a different page.
When I do Custom Query in the data source, it does work fine but that way it shows all the categories in the system and not just the subcategories of a parent category I clicked on.
June 15, 2023 at 2:47 pm #475155
Luke NielsenKeymasterHello,
Sorry, but there is no way to make it work in the way as you want with the “Grid” type, unfortunately.
I’d be happy to assist if you have any other questions or concerns.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register