Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • This post shows resolved but i don’t see a support post answering the question. Were you able to solve for this? If so please share ??

    has anybody been able to figure this out?

    Thread Starter itsdps

    (@itsdps)

    I was able to chat with the theme developer and found a solution in the theme itself – now your plugin works great. Thank you so much for your help and providing us all with such a fantastic store locator plugin ??

    Thread Starter itsdps

    (@itsdps)

    I did some research and there are a few of them the most popular seems to be: “Ajax Store Locator” plugin for WP. Also, the Store Locator Plus plugin “requires Ajax” according to their documentation.

    Its disappointing because i prefer the layout and look of your product which is why i chose it to begin with.

    Thread Starter itsdps

    (@itsdps)

    I guess anybody running Ajax will need to find another plugin. Do you have any recommendations? I will be searching for a plugin that works.

    Thanks,

    Thread Starter itsdps

    (@itsdps)

    now i see why it looks different when I copy & paste your code, it’s because the original had quote symbols but what you told me to look for had the quot written out. i guess its the same thing.

    sorry for the confusion.

    I still don’t know how to fix this problem.

    I did notice an ajax wpsl file while i was in there – should we be editing something in the ajax file like the theme support told me to do?

    Thread Starter itsdps

    (@itsdps)

    Sorry – i copied the wrong code:

    This is what was originally there:
    if ( $( “#wpsl-gmap” ).length ) {
    google.maps.event.addDomListener( window, “load”, initializeGmap );

    This is what you said i should look for:
    if ( $( "#wpsl-gmap" ).length ) {
    ???google.maps.event.addDomListener( window, "load", initializeGmap );

    Thread Starter itsdps

    (@itsdps)

    Access it the way that our guests would normally do so you can replicate what they are experiencing. Go to our homepage: https://www.microcarbonation.com and then navigate to the “locate” page from the menu.

    Note that there is a discrepancy in what you told me to look for and what was actually there to begin with in the js/wpsl-gmap.js.

    This is what was originally there:
    if ( $( “#wpsl-gmap” ).length ) {
    google.maps.event.addDomListener( window, “load”, initializeGmap );

    This is what you said i should look for:
    if ( $( "#wpsl-gmap" ).length ) {
    ???google.maps.event.addDomListener( window, "load", initializeGmap );

    This is what you wanted me to change it to:
    if ( $( "#wpsl-gmap" ).length ) {
    ??initializeGmap();

    Also note that i changed the code twice to see if either instance would produce results. I changed it to what you told me to look for and what you recommended i replace it with. In both instances i experienced the same problem AND also in both instances when i went to refresh the page the map didn’t populate (which normally worked with what was originally there).

    Thread Starter itsdps

    (@itsdps)

    I made the change that you suggested and it didn’t fix it ?? btw: i’ve left it on the change you suggested rather than revert to original.

    do you have any other ideas?

    Thread Starter itsdps

    (@itsdps)

    I finally got a response from QODE theme and they had this to say: “If you say that your plugin works well after refresh, it is problem that this plugin doesn’t work well with ajax. You should add your plugin initialization in ajax.js (ajax.min.js)”

    Others using the store locator plugin may be experiencing a similar issue so i wanted to post this.

    Now the big question: How do i add the store locator plugin initialization to ajax??

    Thank you for your help

    Thread Starter itsdps

    (@itsdps)

    Thank you for your response. The start location is set to Vancouver, BC. Try postal code: V4A 8M6 with 50 km radius and you should get more than 6 listings.

    I am using Safari 7.0.6 on Mac running Mac OS 10.9.4. The WP theme I am using is: Qode Bridge. Here is a list of plugins I am using – could any of them be making problems for the map?

    Akismet
    Black Studio TinyMCE Widget
    Contact Form 7
    Duplicate Post
    Easy Maintenance Mode
    Jetpack by WordPress
    LayerSlider WP
    Mojo Marketplace
    WooCommerce
    WPBakery Visual Composer (has a red line on it & gave me an error code recently for some reason)
    WP Store Locator
    WP Super Cache

    it’s weird that a couple of times i got a pop up asking to use my current location and then the map worked. But now it isn’t. Any help you can give will be appreciated.

    Thank you

    Thread Starter itsdps

    (@itsdps)

    as soon as i posted this question I went back to the page and saw that the search code was laid out differently (in a single line) and it worked! I was able to search by postal code and it returned results. Then i logged out and logged back in and it was displayed in 4 lines rather than in a single line (see below) and it didn’t work anymore.

    Your location
    Search radius
    Results
    Search Button

    It prompts me to find out my location and seems to work. Unsure why it works sometimes and other times it doesn’t.

Viewing 12 replies - 1 through 12 (of 12 total)