farroyo
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Store Locator] Locations not displayingHi there, thanks for writing.
I have been taking a look at the URL you provided (https://rustcheck.com/dealer-locator/), and the map works fine there. Is this the “B” site where the store locator was not working? If not, I’d like to have a look at it to see if I can spot any errors in the browser’s javascript console. Many thanks!
Forum: Plugins
In reply to: [WP Store Locator] Line break between adressesHi there, thanks for writing.
In order to modify the appearance of the search results, you will need to create a custom listing template. This can be achieved with the wpsl_listing_template filter. This filter has to be included in your active theme’s functions.php file.
If you just want to have an extra space between the fields address1 and address2, then this code snippet will do:
add_filter( 'wpsl_listing_template', 'custom_listing_template' ); function custom_listing_template() { global $wpsl, $wpsl_settings; $listing_template = '<li data-store-id="<%= id %>">' . "\r\n"; $listing_template .= "\t\t" . '<div class="wpsl-store-location">' . "\r\n"; $listing_template .= "\t\t\t" . '<p><%= thumb %>' . "\r\n"; $listing_template .= "\t\t\t\t" . wpsl_store_header_template( 'listing' ) . "\r\n"; // Check which header format we use $listing_template .= "\t\t\t\t" . '<span class="wpsl-street"><%= address %></span>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<% if ( address2 ) { %>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<br/>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<span class="wpsl-street"><%= address2 %></span>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t\t" . '<span>' . wpsl_address_format_placeholders() . '</span>' . "\r\n"; // Use the correct address format if ( !$wpsl_settings['hide_country'] ) { $listing_template .= "\t\t\t\t" . '<span class="wpsl-country"><%= country %></span>' . "\r\n"; } $listing_template .= "\t\t\t" . '</p>' . "\r\n"; // Show the phone, fax or email data if they exist. if ( $wpsl_settings['show_contact_details'] ) { $listing_template .= "\t\t\t" . '<p class="wpsl-contact-details">' . "\r\n"; $listing_template .= "\t\t\t" . '<% if ( phone ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'phone_label', __( 'Phone', 'wpsl' ) ) ) . '</strong>: <%= formatPhoneNumber( phone ) %></span>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t" . '<% if ( fax ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'fax_label', __( 'Fax', 'wpsl' ) ) ) . '</strong>: <%= fax %></span>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t" . '<% if ( email ) { %>' . "\r\n"; $listing_template .= "\t\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'email_label', __( 'Email', 'wpsl' ) ) ) . '</strong>: <%= email %></span>' . "\r\n"; $listing_template .= "\t\t\t" . '<% } %>' . "\r\n"; $listing_template .= "\t\t\t" . '</p>' . "\r\n"; } $listing_template .= "\t\t\t" . wpsl_more_info_template() . "\r\n"; // Check if we need to show the 'More Info' link and info $listing_template .= "\t\t" . '</div>' . "\r\n"; $listing_template .= "\t\t" . '<div class="wpsl-direction-wrap">' . "\r\n"; if ( !$wpsl_settings['hide_distance'] ) { $listing_template .= "\t\t\t" . '<%= distance %> ' . esc_html( $wpsl_settings['distance_unit'] ) . '' . "\r\n"; } $listing_template .= "\t\t\t" . '<%= createDirectionUrl() %>' . "\r\n"; $listing_template .= "\t\t" . '</div>' . "\r\n"; $listing_template .= "\t" . '</li>'; return $listing_template; }
Please notice that all I did was to insert a
<br/>
in the template before printing the address2 field.I hope that helps, but please get back otherwise.
Best regards,Forum: Plugins
In reply to: [WP Store Locator] Searchbar takes me back to the top of the pageHi again,
Apologies for the delay, I got back to you in the ticket you sent us, please do let us know if the issue is finally fixed or not.
Best regards,
Forum: Plugins
In reply to: [WP Store Locator] Search bar with free textHi again,
Thanks for your kind words.
We are a small team, so I honestly cannot give you an ETA for version 3.0. We are currently beta testing, but these things can take some time, apologies and thanks for your patience.
Best regards,
Forum: Plugins
In reply to: [WP Store Locator] Search bar with free textHi there Kim, thanks for writing,
For the time being it is not possible to search by store name or any other field. The plugin expects to receive just a location name or zipcode, and it will initiate the search from there and retrieve results from your database that are inside the defined search radius.
This will change, though, with version 3.0, since we will include the possibility to search by store name, so stay tuned!
Best regards,
Forum: Plugins
In reply to: [WP Store Locator] Cannot add custom field to custom info window templateHi there, thanks for writing.
One possible cause for the error you mention is that the site still keeps the old transient store locator cache from before you added the new metadata field. Please go to the Wp Store Locator settings page and click the “Clear store locator transient cache” button, near the end. Let us know if that doesn’t fix your issue.
Best regards,
Forum: Plugins
In reply to: [WP Store Locator] issues with custom store templateHi again,
All WordPress themes do have the built-in feature to have different templates for different post types, you just have to follow a certain naming convention for the templates. As mentioned in our article about how to create custom store page templates:
The default store page shows a map with the store location on it, the address details, and if enabled, the opening hours. You can change this by creating a single-wpsl_stores.php file in your theme folder and adjusting it to your needs.
So all you have to do is, in your theme folder, creaete a template file with the name
single-wpsl_stores.php
with your desired layout, and that should be it.Please let us know if that doesn’t fix your issue.
Best regards,Forum: Plugins
In reply to: [WP Store Locator] Filter on countryHi there, thanks for writing.
Actually, the current version of Wp Store Locator is not built with country filtering in mind (that will change in the upcoming version 3.0, though). What the plugin does is, it takes a search term (a location name or a zipcode), and uses it as the center of a hypothetical circumference with the search radius that you have configured. Then, it retrieves all the store locations that fall within that radius and returns them, sorted by distance to the searched point.
So, the search term is meant to be, as I said, a zipcode or a location name, not a whole country, that is why it does not work well apparently.
You could, for example, create a category for each of your store locations where each category corresponds to a country, and then you could enable category filtering in the frontend, so only stores belonging to certain countries would be returned, but even in this case, you would always have to initiate a search with a location or postcode, and a search radius, so it could happen that not all the stores in the countries you are searching match the search criteria.
Please let me know if you need any clarifications about the above.
Best regards,Forum: Plugins
In reply to: [WP Store Locator] issues with custom store templateHi there, thanks for writing.
As you mention, store locations in our plugin are indeed WordPress posts, but they have a custom post type attribute to set them apart from the regular posts in your backend. This is standard WordPress practice, the vast majority of the plugins that include a certain custom content type use this same approach of using WordPress posts with custom attributes, so that shouldn’t come as a surprise indeed.
The article from our documentation that deals with creating a custom store page template mentions that the provided example is tailored for the default Twenty Fifteen theme. It may work with other themes but that is not guaranteed. You should check your theme’s documentation (Flatsome, it seems) so your custom template for the wpsl_stores custom post type is different from the standard post type and removes all unwanted elements (sidebar, etc.).
I hope that helps, but please get back otherwise.
Best regards,Forum: Plugins
In reply to: [WP Store Locator] store locator not show new locationsHi there, thanks for writing.
When examining your website I noticed you are not using the Wp Store Locator plugin. Instead, your locator plugin seems to be called “store-locator-le”. I cannot find it in the WordPress plugin directory, so I don’t really know who created this plugin so I can forward you to their support page, sorry about that.
Best regards,
Forum: Plugins
In reply to: [WP Store Locator] Searchbar takes me back to the top of the pageHi again, thanks for the URL.
If you sent us a ticket, we didn’t get it, I also checked on our spam folder but it is not there ˉ\_(ツ)_/ˉ
However, I clicked on the URL but the website seems to be password protected.. can you double check that the store locator is publicly available so I can have a look at your issue? Many thanks!
Forum: Plugins
In reply to: [WP Store Locator] Searchbar takes me back to the top of the pageHi again,
I am sorry but we didn’t receive any ticket related to your issue, I don’t know what could have gone wrong. In any case, could you please try again? Apologies!
Forum: Plugins
In reply to: [WP Store Locator] Random Locations Not ShowingHi there, thanks for writing.
Well, the fact that certain postcodes return no results can be caused by a number of reasons. The most common is that maybe the plugin is mistakenly searching for that postcode in another country, where that same postcode also exists (since postcodes in many countries are just a string of five numbers, the same postcode can exist in multiple countries). In this case the best thing to do, and only in the case where all of your stores are in the same country, is to enable the setting labeled “Restrict the geocoding results to the selected map region?”. Please try that and let us know if that does not fix your issue.
Best regards,
Forum: Plugins
In reply to: [WP Store Locator] Searchbar takes me back to the top of the pageHi again, thanks for getting back.
It would be useful if you could share with us the URL where you are experiencing the issue. If you don’t want to disclose the URL publicly, we also have a private ticketing system where you can reach us.
Forum: Plugins
In reply to: [WP Store Locator] Searchbar takes me back to the top of the pageHi there, thanks for writing.
This is issue is generally related to the option you mention, “On page load move the mouse cursor to the search field?”, so if this still keeps happening to you, I’d suggest clearing the store locator transient cache first (a button in the settings page, near the end), and then let us know if the issue persists.
Best regards!