Support

Home Forums Event Espresso Premium Users > My Events

Users > My Events

Posted: September 11, 2015 at 11:40 pm

Viewing 15 reply threads


Angus Russell

September 11, 2015 at 11:40 pm

Hi,

Despite having made some amendments so that the site now runs in AED I noticed that this page is still in US$, is there anyway to amend it to show AED as well please?

Thanks
Angus


Lorenzo Orlando Caum

  • Support Staff

September 12, 2015 at 1:18 pm

Hi Angus,

Could you post a screenshot?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


Lorenzo


Angus Russell

September 13, 2015 at 5:38 am

https://www.dropbox.com/s/0x49699d89f7k2v/Screenshot%202015-09-13%2010.18.05.png?dl=0

Thanks


Tony

  • Support Staff

September 14, 2015 at 4:12 am

Hi there,

That table uses the currency symbol set from your ‘Organisation Country’ set within Event Espresso -> General Settings – http://take.ms/wCK6n

However currently Event Espresso will continue to use $ as it does not have a currency for AED so in order to change the currency used there you will needed to modify the template.

As a quick fix you can edit:

\wp-content\plugins\espresso-members\my_events_page.php

Line 176 has:

<td class="date column-date"><?php echo $org_options[ 'currency_symbol' ] ?><?php echo $amount_pd?></td>

You could use something like:

<td class="date column-date"><?php echo 'AED ' . $amount_pd?></td>

This isn’t really a recommended solution as each update to the members add-on will remove that modification although it will get you up and running.

I have created a ticket to see what other options we can provide here.


Angus Russell

September 15, 2015 at 8:27 am

It was line 177 in my file, I hope that isn’t meaningful! However, it did the job, thanks.

All I need to do now is work out why the address details in the PDF invoice don’t match anything I’ve put into the system! Any ideas?

Thanks
Angus


Tony

  • Support Staff

September 15, 2015 at 8:32 am

Go to Event Espresso -> Payment Settings -> Invoice settings.

If the invoice gateway is de-activated then please temporarily active it.

Within the settings there is the incorrect address shown?


Angus Russell

September 15, 2015 at 9:19 am

Thanks, made the changes.

So, do I leave it active but choose not showing on the payment page, or deactivate? What’s the difference?

Thank you


Angus Russell

September 15, 2015 at 9:22 am

I also added our logo but I had an FPDF error – alpha channel not supported? The logo was in our media library.


Tony

  • Support Staff

September 15, 2015 at 10:59 am

So, do I leave it active but choose not showing on the payment page, or deactivate? What’s the difference?

You can do either.

Hiding it from the payment page but leaving it active allows you to update the invoice settings without needing to re-activate/de-activate the Invoice gateway each time.

I also added our logo but I had an FPDF error – alpha channel not supported? The logo was in our media library.

That will be because your using a PNG with transparency, which is not supported within FPDF (the library EE uses to build the PDF’s). You can either use another PNG with no transparency, or switch to another format such as JPG for the logo.


Angus Russell

September 15, 2015 at 11:21 am

Magic, thanks Tony.


Tony

  • Support Staff

September 16, 2015 at 2:15 am

You’re most welcome 🙂


Angus Russell

September 19, 2015 at 4:46 am

Next question, is it possible to change the order of events, so that they with the most recent on at the top of the list?

Thanks


Tony

  • Support Staff

September 21, 2015 at 6:37 am

The My Events section shows all events the user has registered onto to allow them to download invoices/receipts and view past events.

So it can be changed to order the events by start date for example, sorted ASC would show from the earliest to the latest.

Would that work?

If so around line 110 you’ll have this:

if ($wpdb->num_rows > 0) {
	$events = $wpdb->get_results(
		$wpdb->prepare(
			"SELECT e.id event_id, e.event_name, e.event_code, e.start_date, e.event_desc, e.display_desc, a.id attendee_id, a.event_time start_time, a.payment_status, a.payment_date, a.amount_pd, u.user_id user_id, a.registration_id, a.fname, a.lname, a.price_option, a.event_time
				FROM " . EVENTS_ATTENDEE_TABLE . " a
				JOIN " . EVENTS_MEMBER_REL_TABLE . " u ON u.attendee_id = a.id
				JOIN " . EVENTS_DETAIL_TABLE . " e ON e.id = u.event_id
				WHERE u.user_id = '%d' AND a.payment_status != 'Cancelled'",
			$current_user->ID
		)
	);

Change it to this:

if ($wpdb->num_rows > 0) {
	$events = $wpdb->get_results(
		$wpdb->prepare(
			"SELECT e.id event_id, e.event_name, e.event_code, e.start_date, e.event_desc, e.display_desc, a.id attendee_id, a.event_time start_time, a.payment_status, a.payment_date, a.amount_pd, u.user_id user_id, a.registration_id, a.fname, a.lname, a.price_option, a.event_time
				FROM " . EVENTS_ATTENDEE_TABLE . " a
				JOIN " . EVENTS_MEMBER_REL_TABLE . " u ON u.attendee_id = a.id
				JOIN " . EVENTS_DETAIL_TABLE . " e ON e.id = u.event_id
				WHERE u.user_id = '%d' AND a.payment_status != 'Cancelled'
				ORDER BY e.start_date DESC",
			$current_user->ID
		)
	);

It just changes the query by adding ‘ORDER BY e.start_date DESC’ to the end.

  • This reply was modified 9 years, 2 months ago by Tony. Reason: Change ASC to DESC


Angus Russell

September 21, 2015 at 7:39 am

Excellent, thanks, that did the trick. Had to change ASC to DESC though since we wanted the most recent at the top.

Thanks
Angus


Tony

  • Support Staff

September 21, 2015 at 9:22 am

Ah, apologies.

I swapped them around when testing to double check, then posted what I had before changing. I’ll edit the post above in case anyone else uses it further down the line.


Angus Russell

September 21, 2015 at 9:32 am

No worries, might be a good idea though 🙂

Viewing 15 reply threads

The support post ‘Users > My Events’ 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