Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter gasparirob

    (@gasparirob)

    After 2 afternoons, I’m quite sure there were some misconfigurations between W3 Total Cache and Nginx reverse proxy… But I’m not sure where exaxtly the problem was. Even disabling and deleting W3TC I was getting the page cached by W3TC (via cUrl). Even disabling Nginx reverse proxy.
    I don’t know what I have done next, but now i get a correct 404!
    Now I’ll try to re-enable Nginx reverse proxy and reinstall W3TC (or maybe WP Super Cache?)

    Thanks anyway

    Thread Starter gasparirob

    (@gasparirob)

    Me too it’s a cache problem, but I think I’ve cleaned all server cache (I’m on a dedicated server, Centos 7 & Plesk 17), browser cache too (I’ve used a “clean” browser too: IE), but I still view a file that doesn’t exist:

    wp-content/plugins/wp-store-locator/js/wpsl-gmap.min.js?ver=2.2.13

    where wpsl-gmap.min.js has been renamed to wpsl-gmap.min.js.BAK

    But any string different from “2.2.13” leads to correct 404:
    wp-content/plugins/wp-store-locator/js/wpsl-gmap.min.js?ver=2.2.1 (for example)

    I’ve restarted the server too…

    Thread Starter gasparirob

    (@gasparirob)

    No, I’m not using custom code.
    Yes, it also happen with the default WP theme

    Thread Starter gasparirob

    (@gasparirob)

    Sorry, it’s not yet published…

    Thread Starter gasparirob

    (@gasparirob)

    Nope.
    I’ve purged all cache via W3 Total Cache and cleared browser cache. But issue is still present.

    Forum: Plugins
    In reply to: [WP Store Locator] Category

    if you say HOW you have solved, maybe you can help someone else…

    Thread Starter gasparirob

    (@gasparirob)

    Update:

    file markercluster.js -> row 438

    added:

    if (marker['storeId']!=0)

    What do you think about? Do you have a better solution?

    Thread Starter gasparirob

    (@gasparirob)

    Nope! it duplicates starting poing at every search…

    Thread Starter gasparirob

    (@gasparirob)

    I’v done so:

    wpsl-gmap.js -> row 1533

    // Store the marker for later use.
    if ( storeId != 0 ) markersArray.push( marker );

    It seems it works….

    Thread Starter gasparirob

    (@gasparirob)

    Absolutely TOP!!! ??

    Thread Starter gasparirob

    (@gasparirob)

    UPDATE:

    for the ‘Italy map’ case, I found a solution:
    $cat_filter=” in class-frontend.php (section “Check if we need to filter the results by category”) I replaced it with:

    $cat_filter = “INNER JOIN $wpdb->term_relationships AS term_rel ON posts.ID = term_rel.object_id INNER JOIN $wpdb->term_taxonomy AS term_tax ON term_rel.term_taxonomy_id = term_tax.term_taxonomy_id AND term_tax.taxonomy = ‘wpsl_store_category’ AND term_tax.term_id IN (83,84)”;

    83 and 84 are the two category AAAAA and BBBBB

    Now, it seems to work, both Italy and World maps….

    Obviously, If you have a best solution it would be appreciated
    (even for the realtime-update-category-changes thing)

    Anyway, I offer you a coffe… A symbolic thanks ??

    Thread Starter gasparirob

    (@gasparirob)

    I’m doing some tests…

    There’s some (little) problems:
    – ‘World map’ case, two categories come out (“All” and “World”), but I solved with shortcode [wpsl category=”world”] that doesn’t show any category, as I want.
    – ‘Italy map’ case, three categories come out (“All”, “AAAAA, “BBBB”), but in result list world items appear. Only when I check AAAA or BBBB the results are correct.

    I (you) should set a filter on the first load page. ??

    And what about to update the list even when the user changes the category dropdown menu element, without have to fill-in the city input and click “search”?
    (The page opens, and All markers are displayed. Next AAAAA is selected and list and map update automatically… so with BBBBB… or All….)

    Thread Starter gasparirob

    (@gasparirob)

    Thanks man. I’ll try as soon as possible…

    Thread Starter gasparirob

    (@gasparirob)

    Sorry Tijmen for me to insist, my boss is pressing me…. ??

    Is there a way to obtain that behaviour (the post above)?

    Sorry again ??

    Thread Starter gasparirob

    (@gasparirob)

    Yes, I could do that way, but I lose sub-categories in Italy map.
    The best thing should be this:
    – category “Italy” (emty, in my case: I only have elements in subcategories)
    — subcategory “AAA” (800/900 elements)
    — subcategory “BBB” (10/20 elements)
    – category “World” (40/50 elements)

    Then, 2 pages, one with [wpsl category=”Italy”] and one with [wpsl category=”World”]

    This, now, is not working, ’cause the category dropdown menu is not showing subcategories “AAA” and “BBB”

Viewing 15 replies - 1 through 15 (of 17 total)