The Community Events form received a significant redesign as of version 4.5 in June 2017.
One of the things that changed was the removal of the “Currency Symbol” plain text field when creating a new Event.
Installing and activating this extension allows you to set defaults for your users to choose from instead of just having a plain text field.
It also allows you to set a default currency symbol specific to the Community Events form that doesn’t affect the rest of the events on your site (like ones created via wp-admin).
This extension’s settings are in the Event Cost Currency Extension section of the Community tab at wp-admin > Events > Settings.
Here’s a view of the new settings added by this extension:
The allowed currency symbols need to be pipe-separated, and 2 sets of examples are provided for your quick reference:
- Example 1: $|€|£|Fr|¥|CNY|C$|AU$
- Example 2: USD|EUR|GBP|JPY|CNY|CAD|AUD
You can choose to use one of these examples as-is, rearrange them, add your own options, or enter whatever else you want to whitelist into the drop-down selection for your event creators.
After you set the pipe-separated symbols that you’d like to enable for your event creators to choose from, refreshing the settings page will then allow you to set the Default Currency Symbol option. You have to refresh the settings screen so that the default can be picked from amongst the available options.
By default, event creators will be able to choose whether the currency symbol should appear before or after the cost value, per your site’s default (from the General settings tab), or override it to be the opposite. You can check the Disallow Currency Position Selector checkbox to remove this option from the Community Events form and always force displaying the currency symbol according to your site’s default, regardless of which currency symbol your event creator may choose.
Community Events Form
Here’s a preview of the new Community Events form with this extension active (after entering some settings):
For comparison, here’s how the pre-4.5 version of the Community Events form looked:
The new implementation of the cost currency symbol and position are more controllable, more user-friendly, and easily disabled simply by deactivating the plugin.
Also note that the Community Event form’s Event Cost module may not display if our Community Tickets add-on is in use.
- Version 1.0.0
- Initial release.
- Version 1.0.1
- Fix – Extension now conditionally requires the Settings_Helper.php file to prevent the Cannot declare class Tribe__Extension__Settings_Helper because the name is already in use error.