Default currency symbol not showing

Home Forums Calendar Products Events Calendar PRO Default currency symbol not showing

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #971251
    Steve
    Participant

    I have my default currency symbol set to £, but when I create a new event, nothing is showing. I’ve searched and there seem to be some related threads, but they’re old and marked as resolved.

    The issue seems to be events-meta-box.php line 42:

    <input tabindex="<?php tribe_events_tab_index(); ?>" type='text' id='EventCurrencySymbol' name='EventCurrencySymbol' size='2' value='<?php echo ( isset( $_EventCurrencySymbol ) ) ? esc_attr( $_EventCurrencySymbol ) : tribe_get_option( 'defaultCurrencySymbol', '$' ); ?>' />

    I’ve tried replacing esc_attr( $_EventCurrencySymbol ) with “test”, and that gets output – so I guess $_EventCurrencySymbol must be set to nothing somehow? Would using !empty() instead of isset() work better?

    #971456
    Nico
    Member

    Hey Mike,

    Thanks for reaching out to us! And also for digging further into the issue.

    From what you describe I understand you’re not seeing the currency symbol (£) when you create a new event from WP Backend, right? If you publish that event, is the currency symbol visible in the event page of the site? Is this affecting existing events or just new ones?

    Can you please go through the steps provided in our Testing for conflicts guide? That way we can make sure this issue is not caused by a conflict with other plugins or the theme.

    Looking forward to solving this,
    Best,
    Nico

    #971471
    Steve
    Participant

    Ah, maybe I misunderstood how the default works. The default symbol is showing on the frontend view even if nothing’s set in the backend. So the default operates at the front rather than in the admin edit screen?

    #971889
    Nico
    Member

    Hey Mike,

    Indeed that’s how it works 🙂 Setting the ‘Currency Symbol’ when creating the event in WP Back-end will override configured default value. As this is sorted, I’m going to close this topic – but please don’t hesitate to create new topics if you need help with anything else.

    Have a good one,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Default currency symbol not showing’ is closed to new replies.