Support

Home Forums Event Espresso Premium Eventprice appearance

Eventprice appearance

Posted: August 29, 2012 at 10:53 am

Viewing 5 reply threads


dhastedt

August 29, 2012 at 10:53 am

In every event list, the event price for meetings always shows like this: Price: EUR75.00 without space between EUR and the amount. How can I add generally a space between? Thanks, dh

  • This topic was modified 12 years, 3 months ago by dhastedt.


Chris Reynolds

  • Support Staff

August 29, 2012 at 12:04 pm

I’m not sure this is possible without hacking the organization_settings.php file and adding a space in the currency array. The other option would be pulling the price value from the database and adding the currency in front of it manually. Here’s an example of something I did for a customization that required two different currencies to be used depending on the category the event was in (which was based on the location of the event):

      <label class="views-label-sell-price">Price:</label>
      <?php $category_name = espresso_event_category_data($event_id);
      if ( $category_name['category_name'] == "London " ) { ?>
      <span class="field-content"><span class="uc-price-product uc-price-sell_price uc-price">&pound;<?php echo do_shortcode('[EVENT_PRICE event_id="'.$event_id.'" number="0"]'); ?></span></span>
      <?php } else { ?>
      <span class="field-content"><span class="uc-price-product uc-price-sell_price uc-price">A$<?php echo do_shortcode('[EVENT_PRICE event_id="'.$event_id.'" number="0"]'); ?></span></span>
      <?php } ?>

You could modify that to take out the if statement and put an &euro; in front of the EVENT_PRICE shortcode.


dhastedt

August 30, 2012 at 9:32 am

Just for clarification:
I assume the sample text was copied from the organization_settings.php?
Where do I find this organization_settings.php? Path?

As I am not a programmer and not very familiar with php,
would you mind to give me the line in the php file and show me the correct wording of the ‘€ in front of the EVENT_PRICE shortcode’?
Thank you.
dh


dhastedt

August 30, 2012 at 9:50 am

I found the organization_config.php but there’s not such an area. Isn’t it possible to change it in the Event_list_display.php or the pricing.php?


rishitejo

August 31, 2012 at 4:10 pm

Hi Chris

Can you give more information on how you achieved multiple currency listing based on location?
I am working on a multi-country multi-city event where events have to be listed in local currency
For example, Same Program happening in multiple cities, multiple events created
Event in Turkey: 100 Lira
Event in Canada: 100 C$
etc
Thanks!

(dhastedt: Sorry, didnt mean to hijack your thread, but the answer Chris gives will really help my requirement)


Chris Reynolds

  • Support Staff

September 4, 2012 at 1:47 pm

@dhastedt The code above isn’t from the organization_config.php. It’s from a customized table display template I used on a specific site. A variation of that could be used on any display template (e.g. event_list_display.php).

@rishitejo For their site, I have categories set up for the different locations. They have 3 locations in Australia and one in London, so in the templates, I am doing a check for whether the category is the ‘London’ category — if so, I display the £, if not I display A$. There are a bunch of different files that need to have this check and I had to add a hidden input field in the reg form with the price because I removed the event_price_dropdown function in favor of a hard-coded event price pulled from the database value. Note: Event Espresso doesn’t actually support multiple currencies and even this setup is flawed — there are still some places where the A$ is being displayed because that’s the country set in the Organization Config options that need to be dealt with. On the payment page, I also needed to do a check for the category to display one gateway if the event is in London and a different gateway if it isn’t. That’s the only way to actually accept multiple currencies (using 2 different gateways).

Viewing 5 reply threads

The support post ‘Eventprice appearance’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso