Map icons keep reverting to parent category icon

This topic contains 10 replies, has 3 voices, and was last updated by  Guust 8 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #45218

    jimmymoto
    Full Member
    Post count: 91

    I have spent a great deal of time creating map icons for subcategories to visually separate the variety of business types on the map.

    For example, I have a parent category “Automotive” and subcategories “mechanics”, “car wash”, “auto body”, etc –each with their own icon.

    After importing listings (categories pre-setup with custom icons), the listing icons all revert back to the parent icon (ie. all listings just show “automotive” parent icon). The default_category column in my csv import file is ignored.

    In phpMyAdmin, I noticed that the “default_category” id always reflects the lowest numerical category id in the “gd_businesscategory” column. Since I methodically created all my parent categories before the subcategories, the parent category id is logically always lower than the subcategory.

    As far as I remember, it’s recommended to ensure a listing is listed under the parent category as well as the subcategory (otherwise “auto body” listings won’t show up when someone selects the parent “automotive” category?)–which makes me think this icon problem is a bug.

    How can I get GD to display the subcategory icon instead of the parent icon? Having the icon determined by the lowest category id number is a big problem for my sanity (spent days creating hundred of icons).

    #45219

    jimmymoto
    Full Member
    Post count: 91
    This reply has been marked as private.
    #45220

    Guust
    Moderator
    Post count: 29970

    I have changed GD > Business settings > category field > to ajax chained
    That allows you to choose a default category for the listing and that should change the marker.

    #45221

    Guust
    Moderator
    Post count: 29970
    This reply has been marked as private.
    #45222

    jimmymoto
    Full Member
    Post count: 91

    OK, I see this working now. I initially chose “multiselect” since I found “ajax-chained” to be confusing to use.

    However, I tried csv import again and the default_category fields are not importing properly. This means I’d need to edit each post to correct the default category.

    This problem would relate to the last support topic I made:
    https://wpgeodirectory.com/support/topic/cannot-import-expire_date-package-id-etc/

    Can you please check into whether or not importing default_category from csv should work?

    #45223

    jimmymoto
    Full Member
    Post count: 91

    Hmm. Now my site hangs when trying to edit any listings–even CPT’s that have not been changed to ajax-chained. I was able to play around with editing a listing once (getting a feel for ajax-linked selections), but attempting to edit another listing caused hang-up.

    I tried changing GD > Business settings > category field > back to multiselect but that did not solve the problem.

    All I did was delete all gd_business listings and reimport. When I hit the back button after listing edit attempt hangs, sometimes the previous pages takes a while to load, then the site is snappy again (except still hangs on listing edit).

    Any idea what has happened?

    #45226

    Guust
    Moderator
    Post count: 29970

    Export your CSV file to see what columns you should have, I doubt there is a default_category column. To make a category the default category, you need to add it as the first category in the field.

    #45245

    Paolo
    Site Admin
    Post count: 31206

    Just FYI, the default category is only needed for the URL of the listing detail page.

    When a listing is added to more than one category, Google Maps script will use the icon of the category with lower ID.

    Only if the listing belongs to only 1 category you can be sure the correct marker will be used all the time.

    This is a problem we faced 1st with GeoTheme 4 years ago, for which unfortunately there is no possible solution.

    Google Maps would have to change their script. It is not something we can force.

    Thanks

    #45296

    jimmymoto
    Full Member
    Post count: 91

    Thanks for the explanation Paolo. I’ll have to redesign a few icons to be a little more generic.

    btw. The hanging problem was due to the GD social importer plugin (I keep forgetting to disable it when I import my listings). It was quite busy posting the imported listings in the background.

    #45304

    jimmymoto
    Full Member
    Post count: 91

    I spoke too soon about the GD social importer causing the hang-up (my assumption). I’ll start a new support thread.

    #45317

    Guust
    Moderator
    Post count: 29970
Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket