This topic has 18 replies, 3 voices, and was last updated 4 years, 8 months ago ago by Olga Barlow
I have enabled the ajax loading on theme options for the shop page, but when i click on categories on the sidebar or on the filters, page still refreshes and doesn’t load via ajax.
Can you help.
Hello,
Product categories widget is a default one and ajax doesn’t work for it, unfortunately.
Regards
For what does the ajax loading work then? It also doesn’t work with the filters
It should work for our (8theme) filters, for example, 8theme – Swatches filter, 8theme – Filter Products by Price, 8theme – Filter Products by Brands, 8theme – Active Product Filters.
Check how it works in our demo – https://xstore.8theme.com/product-category/all/
Regards
Okay, got it. Then i have another question.
Can i easily customize the sidebar so i can filter through the sidebar as in the demo, but not with the taxonomies that are shown there, but custom taxonomies i have created for my products.
So basically not filter by brand but filter by ‘custom taxonomy’ which should be similar to brand but different name and different entries… If so, can you quickly show me where the shop sidebar template file is located so i can customize that accordingly.
Thanks
Hello,
You may check the third-party filter plugins, for example https://codecanyon.net/item/woocommerce-product-filter/8514038 or similar and make sure that it has filter by custom taxonomy. Or additional customization but it’s not included in our support.
Regards
I’m not looking for plugins or customization from your support.
I asked you to point me out to the file responsive for the shop sidebar ( where category filters are located ) and i’ll customize that myself.
I could find that file myself, but i thought it would be quicker if you pointed me out to the file so i don’t have to browse through the theme files.
Thanks
Hello,
Point is that if you want to create filter by the custom taxonomy then you don’t need the sidebar file because we use custom widget – 8theme Brand filter widget. So, if you want to have the similar filter you also need to create the custom widget (check this tutorial, for example, https://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget/ ) and probably to use the custom script in addition, to make it work with the Ajax.
Use child theme for any kind of customization and never change the parent theme or XStore core plugin files because you will lose your customization after theme or core plugin update.
If you need help with additional customization you can submit request here.
Regards
Thanks for the info
Can you point me to the file path for the 8theme brand filter widget
Thanks
Hello,
wp-content/plugins/et-core-plugin/app/models/brands-filter.php
Regards
i cannot find the file on the directory you specified…. probably you mean this
wp-content/plugins/et-core-plugin/app/models/widgets/brands-filter.php
Also, can this file be overriden on the child-theme and if so, what folder structure should i keep…..
If it can’t be overriden on child-theme like woocommerce then do you have some pre-made hook function to customize the file.
Hello,
Yes, I missed the widget folder. That file can’t be overridden in the child theme because this is the file of the core plugin, not theme file. And I would not recommend you to edit our Brand widget. I would suggest you check how it was created and use child theme functions.php to create your own widget.
Regards
yeah i thought so, but i asked to be sure. Thanks for the info.
You are welcome.
Regards
Quick thing… Can you please remove the url from the first message i sent you here… Apparently that is public and i didn’t want to make that public. Since these tickets aren’t private but public i don”t want my url to be shared with others ( spam, security etcc ) and i think it’s not a good idea to suggest it as a field to be filled on the public side of the topic.
Please remove it from the first comment, or delete the topic at all.
Thanks
Hello,
Site URL that you add to special input during topic creation is private and visible only for you and support staff.
Regards
You must be logged in to reply to this topic.Log in/Sign up