Support

Home Forums Event Espresso Premium Customization help

Customization help

Posted: January 24, 2015 at 4:55 pm

Viewing 18 reply threads


Carrie Schulstad

January 24, 2015 at 4:55 pm

I am using this plugin for Vendors ro register for an event. Here is a link to what I have so far: http://cwplantfair.org/events/plant-fair-2015

We would like the orange colored “Goes on Sale” to say Start.
When the Show Details is expanded there is still a reference to Tickets which needs to say Booth Registration. Registration Sale Dates can be removed.
We would like “Attendee Information” one the second page to say Vendor Information.
Under Payment Options it still has a reference to Ticket

I have tried to locate the php files that contain this information so I can just change the words but I have not been able to figure out what the files are named.

Thanks for your help.


Carrie Schulstad

January 24, 2015 at 5:05 pm

One other thing: We have a hold harmless statement on this form: http://cwplantfair.org/plant-fair-vendor-sign-up (at the bottom) that we would like to have on the vendor registration form. When I added a text area to the form it does not allow me to enter the paragraph we need them to agree to. How can that get onto the registration form?


Lorenzo Orlando Caum

  • Support Staff

January 24, 2015 at 5:37 pm

Hi Carrie, we do not recommend editing the core plugin as your changes will be lost on a software update.

At this time, I can’t get to registration checkout.

Could you ask your web host to adjust the settings for mod security to allow use of base64. This is used by the ticket selector.

There is an example here:

https://eventespresso.com/topic/403-when-trying-to-register/#post-136070

Please update this support post once that has been done.


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

January 24, 2015 at 6:36 pm

Hi, please see this tutorial here:

https://gist.github.com/lorenzocaum/fcd9ce5ecf2e4375d430

It has examples for filters that can be used to adjust the messaging that is used for the ticket action status in the quantity column of the ticket selector.

You’ll want to use the second example which is for adjusting the goes on sale messaging / verbiage.

It can be added to your child theme’s functions.php file (do not include the opening php tag) or a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

We’ll need those security rules to be adjusted so we can share feedback on your other questions.


Lorenzo


Carrie Schulstad

January 25, 2015 at 9:30 am

I removed a few unused plugins and a caching plugin. Maybe that will help remove the security block – although I have no problem seeing the pages. Here is a direct link to the registration form page: http://cwplantfair.org/registration-checkout?ee=_register
On that page I need Attendee to read Vendor and I would like to insert a paragraph of text at the bottom that they have to agree to.


Lorenzo Orlando Caum

  • Support Staff

January 25, 2015 at 4:16 pm

Hi there,

Try this sample coding for changing attendee to vendor:

//* Replace abbreviations for quantity with the actual word
function ee_change_attendee_information_registration_checkout_messaging( $translated, $original, $domain ) {
 
    $strings = array(
        '%s Attendee Information' => '%s Vendor Information',
    );

    if ( isset( $strings[$original] ) ) {
        $translations = &get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'ee_change_attendee_information_registration_checkout_messaging', 10, 3 );

Try this sample coding for adjusting the other messaging relating to the tickets for attendees:

//* Change the messaging for the additional tickets/attendees on the registration checkout page
add_action( 'FHEE__registration_page_attendee_information__auto_copy_attendee_pg', 'ee_custom_messaging_above_information_additional_tickets_attendees' );
function ee_custom_messaging_above_information_additional_tickets_attendees() {

 return 'Replace me with new messaging or delete this entire statement to remove the messaging.';
}

Both code snippets can be added to your child theme’s functions.php file (do not add or include the opening php tag) or a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Lorenzo


Carrie Schulstad

January 26, 2015 at 11:37 am

Thanks – we are getting very close. The final page (payment area) still says Ticket Name and Description,

One the first page where the registration starts under Show Details it also still says Ticket Price Breakdown and This ticket allows access to the following event dates and times.


Lorenzo Orlando Caum

  • Support Staff

January 26, 2015 at 1:07 pm

Alright, it looks like you are interested in changing the word “ticket” to something else.

See this sample coding:

https://gist.github.com/lorenzocaum/b4bbd1bb839a1c80b2b4

It can be applied in the same manner as the earlier code snippet that I shared (i.e. child themes functions.php file or a site specific plugin).


Lorenzo


Carrie Schulstad

January 26, 2015 at 6:20 pm

I am already using that code. It changed most of the Ticket areas but not the ones listed above.


Lorenzo Orlando Caum

  • Support Staff

January 27, 2015 at 12:32 pm

Alright, this will update those as well:

https://gist.github.com/lorenzocaum/b4bbd1bb839a1c80b2b4#file-new_gist_file2-php


Lorenzo


Carrie Schulstad

January 27, 2015 at 2:15 pm

Can you provide code that changes the Payment screen? See screenshot.
http://cwplantfair.org/wp-content/uploads/ticket.png


Lorenzo Orlando Caum

  • Support Staff

January 27, 2015 at 6:51 pm

Hi,

Additional entries were added to the first code snippet on this page:

https://gist.github.com/lorenzocaum/b4bbd1bb839a1c80b2b4


Lorenzo


Carrie Schulstad

January 28, 2015 at 9:50 am

Hi Lorenzo
I have all the code snipets provided on the site and that ticket location has not changed yet.


Lorenzo Orlando Caum

  • Support Staff

January 28, 2015 at 10:26 am

Hi, the following line handles that:

http://cl.ly/image/3s210a1g2443

Although it seems like I’m linking to the same page repeatedly, there have been changes to the examples.

Can you confirm that you have removed the existing code snippets and replaced them with the newest code snippets?

I’ve tested them and they are working:

http://cl.ly/image/2C1f2a0e2Q2X


Lorenzo


Carrie Schulstad

January 28, 2015 at 11:54 am

I thought I had them all. I will go back and make sure that is added correctly. There is also a pop up error message that shows the word Ticket. It shows if the registration button is clicked without choosing the one you want to register for on the first screen.


Lorenzo Orlando Caum

  • Support Staff

January 28, 2015 at 12:29 pm

Thanks, additional entries were made here:

https://gist.github.com/lorenzocaum/b4bbd1bb839a1c80b2b4#file-new_gist_file-php

They are being changed via a gettext filter or a specific filter for that phrase:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/#custom-function


Lorenzo


Carrie Schulstad

January 28, 2015 at 6:48 pm

Hi Lorenzo
Can Attendee 1 be removed (see screenshot) http://cwplantfair.org/wp-content/uploads/Attendee.png

And there is one more instance of Ticket found (see screenshot)http://cwplantfair.org/wp-content/uploads/Ticket2.png


Lorenzo Orlando Caum

  • Support Staff

January 29, 2015 at 10:36 am

Hi there,

You can inspect any element on a page using a free tool like Chrome Developer Tools (available with Google Chrome) or Firebug (available as a web browser extension).

This will show you the CSS that is handling the styling including the file and line number. Then you can add new styling to your child theme’s stylesheet or through a plugin like Reaktiv CSS builder or My Custom CSS.

Try this CSS:

.spco-attendee-lgnd {display:none;
}

Then force refresh to see the changes:

http://en.support.wordpress.com/browser-issues/#force-refresh

There is a new entry at the end of this example for the other messaging:

https://gist.github.com/lorenzocaum/b4bbd1bb839a1c80b2b4#file-new_gist_file2-php

If you need help with anything else, please open a new support post here:

https://eventespresso.com/support/forums/


Lorenzo


Carrie Schulstad

January 29, 2015 at 1:29 pm

Thank you for your help Lorenzo.

Viewing 18 reply threads

The support post ‘Customization help’ 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