Support

Home Forums Event Espresso Premium Content Changes

Content Changes

Posted: October 25, 2018 at 7:33 am


Matt

October 25, 2018 at 7:33 am

I need to change the wording of some things using EE4 with Multi-Registration and am not sure how to do this:

1. Change “Attendee” to “Shipping” address conditionally. We have a few dozen Events, but also sell one product. It would be great to integrate this in by just changing the Primary Attendee to “Shipping Address” if the event description included a certain word, or something.

2. Change leading paragraph on the Attendee Information page to add a few lines of text.

3. Add Attendee name to PayPal. Is there any way to pass the Attendee details into “function formatLineItemName(\EEI_Line_Item $line_item, \EEI_Payment $payment)”? I’ve successfully added $line_item->desc() in, so I just need the data to be added but all my attempts end in errors.

Are these things possible?

Thx
Matt


Josh

  • Support Staff

October 25, 2018 at 7:56 am

Hi Matt,

What you can do for item 1 is create a new question group called “Shipping information”, then add some new questions specific for capturing shipping info. Then you assign those questions to that question group.

Then, you go in to edit your “product” event and check the box next to the Shipping information question group located in the “Questions for Primary Registrant” box.

Item 2 can be done by means of adding a callback function to a filter hook. e.g.

add_filter(
'FHEE__registration_page_attendee_information__attendee_information_pg',
'my_custom_reg_form_opening'
);

function my_custom_reg_form_opening($text) {
  $text .= '<br>Your additional text goes here.';
  return $text;
}

You’ll find a code example for item 3 here:

https://gist.github.com/joshfeck/28fd4886176dd189f09d51f6a5ffd2b2


Matt

October 28, 2018 at 8:28 pm

Thanks!

#1 & #2 work. That’s great.

Is there a way to make #3 work in Multi-Registration? Right now it’s not showing up.

Thx.
Matt


Tony

  • Support Staff

October 29, 2018 at 10:18 am

Hi Matt,

I’ve successfully added $line_item->desc() in, so I just need the data to be added but all my attempts end in errors.

May I ask where are you adding that and how?

Is there a way to make #3 work in Multi-Registration? Right now it’s not showing up.

When you say it’s not showing up, do you mean at all, or it’s only showing the primary registrant’s details?


Matt

October 30, 2018 at 9:35 am

Hi Tony,

You can disregard my first attempt. It was just trying to manually change things instead of using custom functions – which is obviously preferable. I’m just saying, I found the place to manually change the code, if needed, but would rather use the suggested function since it doesn’t give me Attendee information in the existing function.

Second, when I send this to PayPal it doesn’t send Primary Registrant or anyone else.

Thx
Matt


Tony

  • Support Staff

October 30, 2018 at 4:01 pm

You can disregard my first attempt. It was just trying to manually change things instead of using custom functions – which is obviously preferable.

Ah ok, sorry, I misunderstood.

Second, when I send this to PayPal it doesn’t send Primary Registrant or anyone else.

Hmm, strange.

Which Paypal payment method are you using? And it only fails when using MER?


Matt

October 31, 2018 at 5:51 am

I am using EE4.6 and PayPal Standard. I’m not sure what you mean by MER but it basically does not add the Primary Registrant to the ticket line. It only fails if I try to add manual elements in the Gateway function.

Please also note that I am using Multi-Registration.

Thanks,
Matt


Josh

  • Support Staff

October 31, 2018 at 7:25 am

Hi Matt,

MER is an abbreviation for Multi Event Registration.

We advise to use PayPal Express instead of PayPal Standard, because PayPal Standard has been deprecated. You can use your same PayPal account with PayPal Express, and this guide shows how to get the API keys:
https://eventespresso.com/wiki/paypal-express-payment-gateway/#locate

The PayPal Express gateway makes use of a method that has filter hooks that allows for sending the primary registrant name along with the item description. Here’s a link to a gist that shows an example of a callback function that makes that happen:
https://gist.github.com/joshfeck/28fd4886176dd189f09d51f6a5ffd2b2

You can add the above to a functions plugin.


Matt

October 31, 2018 at 8:18 am

Hi. Sorry, I’m using EE 4.9.61 – forgot the nine – and PayPal Standard is my only option other than Pro in the tabs. Am I missing something?


Josh

  • Support Staff

October 31, 2018 at 8:29 am

Quite likely you’re missing the user capability that’s attached to the PayPal Express gateway. You can refresh the capabilities by going to Event Espresso > Maintenance > Reset, then click the “Reset Event Espresso Capabilities” button.

The support post ‘Content Changes’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 2 weeks, 5 days ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[i]
[i]