Map icons keep reverting to parent category icon
This topic contains 10 replies, has 3 voices, and was last updated by Guust 9 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
July 10, 2015 at 7:45 am #45218
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).
July 10, 2015 at 7:48 am #45219This reply has been marked as private.July 10, 2015 at 8:04 am #45220I 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.July 10, 2015 at 8:05 am #45221This reply has been marked as private.July 10, 2015 at 9:40 am #45222OK, 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?
July 10, 2015 at 9:55 am #45223Hmm. 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?
July 10, 2015 at 1:02 pm #45226Export 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.
July 10, 2015 at 5:16 pm #45245Just 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
July 11, 2015 at 5:42 am #45296Thanks 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.
July 11, 2015 at 7:44 am #45304I spoke too soon about the GD social importer causing the hang-up (my assumption). I’ll start a new support thread.
July 11, 2015 at 9:31 am #45317 -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket