Extensions

Search Extensions

Add Cost Currency Symbol to the Community Events Form

Our Community Events add-on for The Events Calendar allows your front-end site visitors to create new Events, Organizers, and Venues.

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).

Settings

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.

Changelog

  • Version 1.1.0
    • Fix – Extension now properly loads the text domain.
    • Tweak – Text domain has been adjusted to match the plugin name.
    • Tweak – Main plugin file name has been adjusted to match the plugin name.
    • Tweak – Added .pot file to aid with translations.
    • Tweak – Added readme file.
  • 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.
  • Version 1.0.0
    • Initial release.

Download Extension

👋 Heads up! We provide limited support for extensions, but you can still open a ticket over at our Help Desk to report any issues.
Install Instructions