Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • webprom
    Participant

    I confirm search is working again in v.5.04, no need to create special redirect, thank you!

    webprom
    Participant

    ok, waiting for the article then. i have all latest versions of slp and wp.

    thanks.

    webprom
    Participant

    SLP worked ok with previous versions. Search is broken after update of wp5 and slp.

    Developer can probably make 2 paths for sites with wp in directory and in the root, i guess. Or to use the same method that allows initial search of predefined location without a problem.

    webprom
    Participant

    When will you release 5.04? Looks like all sites with wp url in a folder have this problem now.

    webprom
    Participant

    According to this article https://www.storelocatorplus.com/address-lookup-failures-on-wpslp/ my setup is correct, I’m able to login from https://www.—-.com/art/wp-login/

    Still there is an error 404 for locations.

    —————–

    REQUEST

    GET /art/wp-json/store-locator-plus/v2/geocode/9a29e207757d96a36a7449aefb1967a0/us/san%20diego HTTP/1.1
    Host: http://www.—-.com
    Connection: keep-alive
    Pragma: no-cache
    Cache-Control: no-cache
    Accept: application/json, text/javascript, */*; q=0.01
    X-Requested-With: XMLHttpRequest
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
    Referer: https://www.——.com/store-locator/
    Accept-Encoding: gzip, deflate, br
    Accept-Language: en-US,en;q=0.9,he;q=0.8,ru;q=0.7,uk;q=0.6
    Cookie: PHPSESSID=7f5666e1cee374f2664f4bce2caea9ef; caosLocalGa=GA1.3.997967176.1548725043; caosLocalGa_gid=GA1.3.1494446156.1548725043; wp_woocommerce_session_9a29e207757d96a36a7449aefb1967a0=34bbb21bbe63b29fb6c279ce8a7d86b9%7C%7C1548898848%7C%7C1548895248%7C%7C61d6f5dbdd32204b405b4302db944b74; woocommerce_recently_viewed=928

    —————

    RESPONSE HEADERS

    HTTP/1.1 404 Not Found
    Date: Tue, 29 Jan 2019 21:23:49 GMT
    Server: Apache
    Pragma: no-cache
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    Link: <https://www.—&#8211;.com/wp-json/>; rel=”https://api.w.org/&#8221;
    Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
    Vary: Accept-Encoding,Cookie
    Keep-Alive: timeout=5, max=100
    Connection: Keep-Alive
    Transfer-Encoding: chunked
    Content-Type: text/html; charset=UTF-8

     

    in reply to: #44732
    webprom
    Participant

    Works for me, based on @nicoblue code!
    Just echo '<span class="total-locations-number">' . $totalLocations . '</span>'; with php in theme file.

    in reply to: #44731
    webprom
    Participant

    I need it too to show in my theme. Simple shortcode with $totalLocations. Please help.

    Thanks.

    in reply to: 'No locations found' Text will not translate #44730
    webprom
    Participant

    I had to replace this text with css. It’s not translatable 🙁

    
    
    .no_results_found h2 {
    	overflow: hidden;
    	width: 1px;
    	text-indent: -2000em;
    	display: inline-block;
    }
    .no_results_found h2:before {
    	content: 'YOUR LANGUAGE TRANSLATION';
    	width: auto;
    	text-indent: 0;
    	display: block;
    	position: absolute;
    	font-size: .8em;
    }
    
    
Viewing 8 posts - 1 through 8 (of 8 total)