Store Locator Plus® has a new release coming soon that adds some new features to the product offering. The new 5.3 release builds on the current Results Layout formatting by adding a new ifnotset attribute to the [slp_location] shortcodes. This allows user to display location data or option values by using either the “ifset” or “ifnotset” logic.
Display Phone Number If Set, Otherwise Display Fax Number
In this example, the results layout will show users the location phone number when that field has data in it. If the phone number is not set it will render the fax field. This goes in the Store Locator Plus® | Settings | Results | Results Layout setting.
... <div class="slp_phone">[slp_location phone ifset="data.sl_phone"][slp_location fax ifnotset="data.sl_phone"]</div> ...
Other Uses
The [slp_option] shortcode has been modified in 5.3 to also allow for use of the ifset and ifnotset attributes. For example, display the Results Box Title setting value if the phone is not set:
... [slp_option results_box_title ifnotset="data.sl_phone"] ---
Coming Soon
This new feature is coming soon to our SaaS and our self-managed WordPress plugins.
If you are on our SaaS product you will be able to start using the new feature soon, no updates required on your end — we’ll take care of the software upgrade along with the related maintenance tasks like pre-update backups and pre-production stability testing.
Like the idea of a fully managed locator service? Check out our SaaS subscriptions today:
Advanced
- 150 Locations
- 1,000 Map Views
- Extra map views billed at $5/1000 views
- Basic locator styling
Professional
- 5,000 Locations
- 5,000 Map Views
- Extra map views billed at $5/1000 views
- Unlimited Categories
- GPS Location Sensor
- CSV import and export
- Full control over search form and results layout
- Map color scheme and element styling
- Feature locations
- Directory listings
Enterprise
- 15,000 Locations
- 8,000 Map Views
- Extra map views billed at $5/1000 views
- Unlimited Categories
- GPS Location Sensor
- CSV import and export
- Full control over search form and results layout
- Map color scheme and element styling
- Feature locations
- Directory listings
- Scheduled CSV Imports
- Advanced Reporting
- Territories
- Cluster Map Markers