Do you have a link where we could see this occurring at?
Thread Starter
sapl
(@sapl)
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
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
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.
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 2 years, 10 months ago by
sapl.
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?
The best place to reach out for any sort of private correspondence should be done through https://pluginize.com/contact/