Filters dropdowns - by Web Admin - on WordPress WooCommerce support

This topic has 7 replies, 2 voices, and was last updated 4 years, 8 months ago ago by Web Admin

  • Avatar: jonathan
    Web Admin
    Participant
    March 11, 2021 at 04:53

    Hi Team,

    The dropdowns for the filters for the shop widget are displaying different. We wish to have it preferably like the ‘filter by brand’ dropdown style, as it shows better on mobile view.

    We have already fixed this on our other site bla.com.au. There were two files that were edited child-theme functions.php also xstore/js/ajax-filters.min.js.

    I’ve tried copying the same functions.php from bla.com.au however it’s not working. My next move would be to copy over the ajax-filters.min.js however I’m not sure if I should be touching xstore files. Im led to believe that updates would overwrite the file, however we’ve updated bla.com.au and the dropdown is all good. I guess I am wondering from the updates do they overwrite only if the files are newer and have changed since the previous version? And whether or not I should touch the core files or if I should wait for xstore to ship the changes for ajax-filters.min.js in a future update?

    Please advise.

    We are wishing to have the shop page widget display as seen in
    https://bla.com.au/product-category/new-products/

    To be the same on
    https://bla.co.nz/product-category/new-products/

    Thanks

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Participant
    March 11, 2021 at 17:12

    Hello,

    You will lose changes after theme update if you do them in parent theme files.
    If you want to have filter by drand like drop-down we would recommend you to create a new widget based on our widget code using child theme with the functionality you need and do all the changes in the child theme.

    Regards

    Avatar: jonathan
    Web Admin
    Participant
    March 11, 2021 at 23:47

    Hello,

    How would I do this? I assume I would create the same folder structure as the parent theme and copy over xstore/js/ajax-filters.min.js? and function.php into the child-theme?

    Also why when I did updates to bla.com.au the updates didn’t override any changes? The dropdown styles remained consistent in the widget.

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    March 12, 2021 at 11:35

    Hello,

    I don’t know what changes you did in the mentioned file, so can’t tell you exactly. But I meant that you develop our own widget https://developer.wordpress.org/themes/functionality/widgets/ Don’t change the existing one but create your own that will have drop-down instead of the checkboxes.

    Regards

    Avatar: jonathan
    Web Admin
    Participant
    March 17, 2021 at 02:56

    Hi,

    I didn’t do any changes to make the filters display the same for the bla.com.au. 8theme team implement those changes to the two files mentioned. I was just wanting to copy the changes to our other site bla.co.nz using those two files?

    Avatar: Olga Barlow
    Olga Barlow
    Participant
    March 17, 2021 at 12:31

    Hello,

    I checked your support conversation. Ignore ajax-filters.min.js file, fixes that we made there were included in the theme update and you don’t need to copy it anywhere. Copy just code from the child theme functions.php. As I can see you have already done that for the https://bla.co.nz/

    Regards

    Avatar: jonathan
    Web Admin
    Participant
    March 24, 2021 at 04:28

    Awesome thank you very much!

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

The issue related to '‘Filters dropdowns’' has been successfully resolved, and the topic is now closed for further responses

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