• Resolved sapl

    (@sapl)


    I have an error in console: algoliasearch is not defined
    And I have no idea why.
    I’m not using any cache plugins

    If I’m logged in admin it working correctly, but if I’m not it display that is not defined

    • This topic was modified 1 year, 7 months ago by sapl.
Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Do you have a link where we could see this occurring at?

    Thread Starter sapl

    (@sapl)

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    How much have you configured the Autocomplete settings? For example have you checked the “Enable” checkbox, and then also gotten some Autocomplete indexes created for some content types?

    The plugin does have the enqueuing of the JS libraries conditional on “should_load_autocomplete” which checks for settings and configuration first.

    Thread Starter sapl

    (@sapl)

    Autocomplete is set for:
    Products
    Products Categories
    Variants
    Custom Taxonomy Manufacturers

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Any customizations being done?

    Are you willing to do some temp editing of files to see if we’re getting to the point of enqueuing the assets?

    Thread Starter sapl

    (@sapl)

    What do you exactly mean by “any customizations” ?

    Yes, I can do it

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Customized the template at all, any code-based edits to behavior, etc. Or are you so far only doing anything via the UI?

    For testing, I was thinking have you open up includes/class-algolia-template-loader.php from inside the wp-search-with-algolia folder and then around line 57, there’s this:

    if ( $this->should_load_autocomplete() ) {

    Add in say echo 'testing'; after the opening bracket, save, and then refresh the frontend. If the conditions are being met, you should see “testing” at the top of the page.

    Thread Starter sapl

    (@sapl)

    Yes, I customized the whole theme

    https://prnt.sc/_Md6_xoylxQm – it display only when I’m not logged in, which is weird.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hmm, not sure at this point. Definitely getting to the point where enqueuing should occur, but the script isn’t getting added.

    Thread Starter sapl

    (@sapl)

    That’s double weird. When we at page “first-time” or after clear/reload cache, console display error. When we add any product to cart, and refresh page, error disappear ??

    • This reply was modified 1 year, 7 months ago by sapl.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Without being able to access the site files directly, I’m sadly out of ideas for what’s going on

    Thread Starter sapl

    (@sapl)

    Where I can send you pass?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The best place to reach out for any sort of private correspondence should be done through https://pluginize.com/contact/

    Thread Starter sapl

    (@sapl)

    Done

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Confirmed received.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Algoliasearch is not defined’ is closed to new replies.