Dokan Geolocation Module with AJAX
-
I am trying to get the Dokan Pro Geolocation module to integrate with the built-in AJAX functionality of the WoodMart theme (from Xtemos).
Essentially, the Geolocation module is broken up into two main sections: (1) the Map and (2) the Filters.
The Map is working with AJAX after using the following code in the theme’s “on document ready” custom JS field:
jQuery(document).on('pjax:end', function () { if ('undefined' !== typeof DokanGeo) { DokanGeo.LocationsMaps.init(); } });
With that said, I cannot get the Filters section working. I have been looking through the dokan-geolocation-filters.js file and I see what appears to be relevant code to initialize the filters but after many attempts, I can’t get it right. I believe I need to init the GeolocationFilter function but it’s not as simple as the Map code above.
Any help would be greatly appreciated. Thank you!
- The topic ‘Dokan Geolocation Module with AJAX’ is closed to new replies.