A. Category ranking is a feature when you are using the Power Add-on and the category manager. The rank is used to sort the categories which will affect the map marker that is used when a location has been assigned more than one category. Following the page ranking paradigm set by WordPress, the rank field is a simple numeric weighting for the categories. This extended data attribute for categories makes it easy to re-arrange the “weight” of categories for map marker selection without mangling category slugs. The lower the number, the higher the precedence for the map marker.
The Category Manager section provides a full management interface for Store Categories. This is where you will add new categories, determine if you want them to be a parent or a child , rank the category (optional) in the extended data, add a medium icon and/or map marker.
Once a location is setup with a territory the map markers that are sent back from the server during a user search will include a ‘in_territory’ property set to ‘1’ if the user’s location is within the territory and ‘0’ if not. An additional ‘in_territory_class’ property will also be set to either ‘in_territory’ or a blank string. Both settings are part of the ‘data’ property of the location marker.
Continue reading “Highlighting Locations Served By Territory”