Forum Replies Created
-
wpsolrKeymaster2 years, 1 month ago in reply to: Massive Algolia Billing #45845
although the plugin has not been enabled correctly with the correct API keys
Can you delete the index first, and verify that no calls to Algolia are made anymore?
wpsolrKeymaster2 years, 1 month ago in reply to: Massive Algolia Billing #45841In screen 2.2, select the option to prevent indexing in real-time.
You can then use our Cron Scheduling add-on to index at your convenience.
wpsolrKeymaster2 years, 1 month ago in reply to: Unexpected scrolling after same page anchor link is clicked #45838The conclusion of the original thread was that it is apparently related to a Chrome bug, irrespective of the settings you choose in WPSolr.
wpsolrKeymaster2 years, 1 month ago in reply to: Unexpected scrolling after same page anchor link is clicked #45828This is a duplicate of /forums/topic/autocomplete_solr-js-drives-an-endless-reload-loop-in-chrome-when-url-has/
It appears to be a Chrome bug.
wpsolrKeymaster2 years, 1 month ago in reply to: Massive Algolia Billing #45820Based on your feedback, it could be related to /forums/topic/autocomplete_solr-js-drives-an-endless-reload-loop-in-chrome-when-url-has/
But I doubt it, as the API you mentioned is performing write operations: https://www.algolia.com/doc/rest-api/search/#batch-write-operations
And write operations in WPSolr are performed while indexing data.wpsolrKeymaster2 years, 2 months ago in reply to: Tracking event error in Algolia #45813Here is the new release: https://www.dropbox.com/s/evviw9zo2ygpn4c/wpsolr-enterprise.23.9-new-custom-add-to-cart-js-events.zip?dl=1
As shown in the js code below, it now can call your own code that will unpack the objectid and quantity stored in the parameter “data” produced by your theme into the expected parameter object “event_data”. You can start by using console.log(data) to understand how this parameter is made.
You’ll just need to enqueue your JS code file in your child theme functions.php.jQuery(document).ready(function ($) { /* * Custom js events that can perform some transformations on event_data, * if cart data structure was modified by plugin or theme. * Must update event_data like {product_id: '123', quantity: 1} */ // Add to cart button with Ajax on shop or product search page $(document).on('wpsolr_on_adding_to_cart_event', function (e, data, event_data) { event_data.product_id = (extract from parameter "data"); event_data.quantity = (extract from parameter "data"); }); // Add to cart button on product page with form submit and page reload $(document).on('wpsolr_on_added_to_cart_event', function (e, data, event_data) { event_data.product_id = (extract from parameter "data"); event_data.quantity = (extract from parameter "data"); }); });wpsolrKeymaster2 years, 2 months ago in reply to: Tracking event error in Algolia #45812Working now on our JS scripts to trigger an event that lets you extract the object ID from the cart data, according to your theme’s data structures.
The script will enable anyone to adapt the default add-to-cart behaviour to their own environment (plugin or theme).
Testing it right now.
wpsolrKeymaster2 years, 2 months ago in reply to: Tracking event error in Algolia #45801Also, now I am getting this error on page reload: wp_localize_script_autocomplete is not defined, and autocomplete is not working anymore.
Which page is it?
wpsolrKeymaster2 years, 2 months ago in reply to: Tracking event error in Algolia #45799It could be that your theme is modifying the structure of the WooCommerce ‘adding_to_cart’ JS event.
wpsolrKeymaster2 years, 2 months ago in reply to: Tracking event error in Algolia #45796Do you use a plugin for managing the cart?
wpsolrKeymaster2 years, 2 months ago in reply to: Massive Algolia Billing #45795Have you checked in Algolia’s dashboard the type of queries sent?
Could be direct visits from a campaign, crawlers, DDOS, or a process importing data all day long.
wpsolrKeymaster2 years, 2 months ago in reply to: Tracking event error in Algolia #45788Can you activate the event debugger setting on screen 2.1?
wpsolrKeymaster2 years, 2 months ago in reply to: Tracking event error in Algolia #45783On the product page url, what are the parameters?
wpsolrKeymaster2 years, 2 months ago in reply to: Tracking event error in Algolia #45781Can you describe the user actions sequence that leads to the event?
wpsolrKeymaster2 years, 2 months ago in reply to: Tracking event error in Algolia #45775Here is a fix that should solve your issue: https://www.dropbox.com/s/1psvstywx6nzv6q/wpsolr-enterprise.23.9-fix-algolia-events-1.zip?dl=1
Please download and install it to replace your current WPSolr Enterprise release.