Ajax loading doesn't work. - by gstore

This topic has 18 replies, 3 voices, and was last updated 4 years, 1 months ago ago by Olga Barlow

  • Avatar: gstore
    gstore
    Participant
    March 12, 2020 at 09:53

    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.

    Please, contact administrator
    for this information.
    17 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 12, 2020 at 09:59

    Hello,

    Product categories widget is a default one and ajax doesn’t work for it, unfortunately.

    Regards

    Avatar: gstore
    gstore
    Participant
    March 12, 2020 at 10:00

    For what does the ajax loading work then? It also doesn’t work with the filters

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 12, 2020 at 10:07

    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

    Avatar: gstore
    gstore
    Participant
    March 12, 2020 at 10:54

    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

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 12, 2020 at 12:34

    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

    Avatar: gstore
    gstore
    Participant
    March 12, 2020 at 12:41

    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

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 12, 2020 at 15:16

    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

    Avatar: gstore
    gstore
    Participant
    March 12, 2020 at 15:25

    Thanks for the info

    Avatar: gstore
    gstore
    Participant
    March 12, 2020 at 15:44

    Can you point me to the file path for the 8theme brand filter widget

    Thanks

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 12, 2020 at 16:17

    Hello,

    wp-content/plugins/et-core-plugin/app/models/brands-filter.php

    Regards

    Avatar: gstore
    gstore
    Participant
    March 12, 2020 at 16:42

    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

    Avatar: gstore
    gstore
    Participant
    March 12, 2020 at 16:45

    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.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 12, 2020 at 17:27

    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

    Avatar: gstore
    gstore
    Participant
    March 12, 2020 at 17:32

    yeah i thought so, but i asked to be sure. Thanks for the info.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 12, 2020 at 18:08

    You are welcome.

    Regards

    Avatar: gstore
    gstore
    Participant
    March 18, 2020 at 19:12

    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

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 18, 2020 at 19:35

    Hello,

    Site URL that you add to special input during topic creation is private and visible only for you and support staff.

    Regards

  • Viewing 18 results - 1 through 18 (of 18 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.