Support

Home Forums Event Espresso Premium View receipt button in user's profile does not work

View receipt button in user's profile does not work

Posted: October 2, 2015 at 1:57 pm

Viewing 11 reply threads


Ieksejo Auditoru Instituts

October 2, 2015 at 1:57 pm

Hello
In EE 4.8.13.pversion with latest WP users add-on link to view receipt does not work properly
http://snag.gy/mjW50.jpg

Instead of view receipt/invoice, it opens same event.


Jonathan Wilson

October 2, 2015 at 2:32 pm

Hey there,

I just tested this out on EE 4.8.13.p and WP User Integration 2.0.6.p. I did not get the same results as you did.

Try to rule out any plugin conflicts. Deactivate all non Event Espresso plugins and test to see if the issue is still occurring. If it is not, then we know it is a problem with another plugin. You can then find out which plugin it is by reactivating each plugin individually and testing to see if the problem starts happening after the activation. When it occurs after activating a plugin, then we know this is the culprit.


Ieksejo Auditoru Instituts

October 2, 2015 at 2:39 pm

I have deactivated all plugins except EE, EE WP user and EE UTF font fix. Problem still presist.
Maybe it’s an issue with permalinks? I use post name.

I have created a user name for you on iai.lv page
[removed sensitive login information]

when you register go to your profile and press “mani rezervejumi” to see your reservations

  • This reply was modified 9 years ago by Jonathan Wilson. Reason: removed sensitive data


Tony

  • Support Staff

October 2, 2015 at 3:59 pm

Hi,

That link is actually for the Receipt rather than the Invoice.

It looks like you have the receipt messenger de-activated, so the receipt url is an empty string which means the link will then link to the same page.

I have created a ticket to remove the Receipt link when the receipt messenger is de-activated.

To display the invoice url within that section you will need to edit the template, do you have FTP access to the site?


Ieksejo Auditoru Instituts

October 2, 2015 at 4:00 pm

i know it’s disabled. i don;t need it. I need only invoice to show up instead of receipt. Yes, i have FTP


Tony

  • Support Staff

October 2, 2015 at 4:10 pm

You’ll need to copy the template /eea-wp-user-integration/templates/content-espresso_my_events-event_section_tickets.template.php

Within that file you will find this code:

//receipt link?
if ( $registration->is_primary_registrant() ) {
	$actions['receipt'] = '<a aria-label="' . __( 'Link to view receipt', 'event_espresso' ) . '" href="' . $registration->receipt_url() . '">'
		. '<span class="dashicons dashicons-media-default ee-icon-size-18"></span></a>';
}

Change that to:

//invoice link?
if ( $registration->is_primary_registrant() && $registration->invoice_url() ) {
	$actions['invoice'] = '<a aria-label="' . __( 'Link to view invoice', 'event_espresso' ) . '" href="' . $registration->invoice_url() . '">'
	                      . '<span class="dashicons dashicons-media-spreadsheet TEST ee-icon-size-18"></span></a>';
}

To use the invoice in place of the receipt link.

Then place that template within /wp-content/uploads/espresso/templates/ to override the default template.


Ieksejo Auditoru Instituts

October 2, 2015 at 5:44 pm

Fantastic!! Work like a charm!! I hope it won’t be broken again after EE update?


Tony

  • Support Staff

October 5, 2015 at 4:37 am

Copying the template to /wp-content/uploads/espresso/templates/ means that the EE4 User Integration Add-on will use that template in place of the default one.

This means it should not break on updates, however if we add features to that template your install will continue to use the version you have within that templates directory so if you want the latest features you’ll need to pull the template and apply the same changes above to the newer version of the template.


Ieksejo Auditoru Instituts

October 5, 2015 at 6:13 am

Ok. Thanks. You can evaluate to have both receipt and invoice showing up to avoid any future manipulations with templates. But it’s up to you. You can mark this one as solved.


Tony

  • Support Staff

October 5, 2015 at 6:43 am

We’ve tried to keep the output as minimal as possible as to not overwhelm the end user. The receipt has the ‘switcher’ button that allows users to switch between invoice and receipt, although obviously that doesn’t work when not using the receipt 🙂

I’ve created a feature request ticket to include both the Receipt and Invoice within the output.


Josh

  • Support Staff

October 7, 2015 at 2:26 pm

The latest update to the WP Users add-on includes both the receipt and invoice (if the messengers are active). If you remove your custom template after you do the update you’ll get that change.


Ieksejo Auditoru Instituts

October 9, 2015 at 12:21 am

excellent. That works. You can close this topic.

Viewing 11 reply threads

The support post ‘View receipt button in user's profile does not work’ 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