farroyo
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] Front end location / Form to add locationHi!
I am not familiar with Formidable Forms, but thanks for the info, I will surely take a look, these things are always welcome!!
Thanks again for this 🙂
Regards,Forum: Plugins
In reply to: [WP Store Locator] Two pages with two different objects groupsNo worries! The important thing is that you are up and running.
Cheers!
Forum: Plugins
In reply to: [WP Store Locator] Two pages with two different objects groupsHi again!
Actually the right way to call the shortcode with the category parameter is, as explained in the documentation:
[wpsl category=”weather_stations”]
instead of:
[wpsl category id =”weather_stations”]So please check the syntax, I hope that solves your issue!
Regards,Forum: Plugins
In reply to: [WP Store Locator] Two pages with two different objects groupsHi again.
There seems to be an issue with your Google Maps API keys, see screenshot.
This can lead to inconsistent results when searching, and it probably has to do with your issue.
It seems some of the features of the google APIs haven’t been enabled in your project. So please check this article in our documentation and manually enable the required APIs.
If you have already created a project for your website in the Google Developers Console, then make sure to enable the following Google Maps APIs.
JavaScript API
Geocoding API
Directions API
Distance Matrix API
Elevation API
Places API
Static Maps APIThis should solve your issues once all the APIs have been enabled, so please try and get back to us if the map is still not working as it should after doing this 🙂
Forum: Plugins
In reply to: [WP Store Locator] Two pages with two different objects groupsHi!
I guess you mean two different URLs in the same domain (i.e., mydomain.com/brand1, mydomain.com/brand2, with brand1 and brand2 being different subsets of stores that are not supposed to appear together in the same map).
The easiest way to accomplish this is to assign categories to your stores in your backend, so when you want to display the store locator you pick just one (or multiple) category(ies) and the map shows just that.
For instance, suppose you have categorized your stores with the categories “brand1” and “brand2”. Then all you have to do in mydomain.com/brand1 is to show the map with:
[wpsl category=”brand1″]
And consequently, you show the map in the mydomain.com/brand2 URL with the shortcode
[wpsl category=”brand2″]
You can find more info in our documentation.
I hope this helps 🙂
Forum: Plugins
In reply to: [WP Store Locator] Search only works if logged into backendOk, no problem. Please get back to us if you cannot fix it!!
Forum: Plugins
In reply to: [WP Store Locator] Search fails for country codesHi again!
Thanks so much for your kind words and for the 5-star review!!!!
Take care,Forum: Plugins
In reply to: [WP Store Locator] Switch zipcode and placeHi there!
Yes, it is totally possible to customize the address format. Please take a look at the wpsl_address_formats filter in the documentation. You can create custom address format to suit your needs.
But maybe you can find what you want in one of the predefined address formats in the settings page (see screenshot).
I hope this helps.
Regards!Forum: Plugins
In reply to: [WP Store Locator] Search only works if logged into backendHi there Keith!
Thanks for reaching us. Well, there seem to be a number of Javascript errors in your website, these errors are probably preventing wp store locator from working properly (see screenshot).
Sometimes the Javascript stack is not loaded in the same order when you are logged in, or maybe you have a cache plugin that is interfering with JS execution and it is disabled when you are logged in. These are common causes for something to work only when logged in.
On the other hand, the AJAX request that should load the stores is returning something a bit weird (see screenshot). Instead of a JSON response it is returning some random <style> tag. I really don’t know what to make of this.
I suggest that you temporarily disable all other plugins but Wp store locator and see if the problem persists. If not, re-enable plugins one by one until you find the culprit.
You can also write us a support ticket if you want us to take a look at your site.
Let us know.
Regards,Forum: Plugins
In reply to: [WP Store Locator] Use data from CPT for Store detailsHi!
Wp Store Locator registers its own CPT (wpsl_stores), there is no way of using a different CPT without heavily altering the plugin code.
Regards,
Forum: Plugins
In reply to: [WP Store Locator] Get number of stores in categoryHi!
Unfortunately that is only possible with custom code.
If you are comfortable with JS, then load a custom JS file, count the number of LI elements and insert that on top of the search results list.
Regards,
Forum: Plugins
In reply to: [WP Store Locator] Search by url parameterHi there!
Yes, it is definitely possible with a little hack. Consider this little code snippet that you can place in your active theme’s functions.php file:
add_action( 'wp_footer', function () { ?> <script type='text/javascript'> // pure jquery snippet for loading the location from GET jQuery( window ).load(function() { let searchParams = new URLSearchParams(window.location.search); if (searchParams.has('location')) { let location = searchParams.get('location'); jQuery('#wpsl-search-input').val(location); jQuery('#wpsl-search-btn').trigger('click'); } else { console.log('location not received'); } }); </script> <?php } );
This way you can use a URLs like
example.com/store-locator/?location=90210
or
example.com/store-locator/?location=Beverly+Hills
And you will get the desired behaviour.
I hope that helps!
Forum: Plugins
In reply to: [WP Store Locator] get featured image urlThat is super! I’m glad you made this work.
Regards,
Forum: Plugins
In reply to: [WP Store Locator] get featured image urlHi there!
We have some documentation on how to display the featured image in the store pages.
If you want to show this image in the store listing or the info window template, you can try something like:
add_filter( 'wpsl_store_meta', 'custom_store_meta', 10, 2 ); function custom_store_meta( $store_meta, $store_id ) { $url = the_post_thumbnail_url( $store_id, 'medium' ); $store_meta['post_thumbnail_url'] = $url; return $store_meta; }
And then you can use the
<%= post_thumbnail_url %>
variable inside the wpsl_listing_template or wpsl_info_window_template filters.Bear in mind that the
the_post_thumbnail_url
function returns the image url already embedded in antag with the size you chose in the function call.
I hope that helps.
Regards,Forum: Plugins
In reply to: [WP Store Locator] Search fails for country codesHi!
It is weird that you say that, because actually search works on ISO country codes, see screenshot.
Could you please share with us the URL for your website so we can take a look?
Thanks!