Support

Home Forums Ticketing Add-on 'Complete Registration' link in check gateway bigger ?

'Complete Registration' link in check gateway bigger ?

Posted: February 22, 2014 at 10:51 am


Sebastien Matte

February 22, 2014 at 10:51 am

Hello again,

I use offline payments as I ask for a mail deposit for our events instead of paypal and such. I use wp-user integration and also multi-event registration.

When people get to the confirmation page after tickets are chosen and personal information filled , they get to the ‘Payment Overview’, with a message like ‘ Your registration is not completed until payment is received’.Then they click on Off-line payment options and see what I have written there, with mailing address.

This thing is they see this warning : ‘ Attention!
If you wish to pay by check or money order, then please make note of the information above, and click to Complete your Registration ‘

And the ‘click to complete your registration ‘ is just in bold and nothing else, so everyone just leave this page and get an error. Luckily they still receive a confirmation email even if technically the process is not completed..

So I tried to modify in the check gateway files in the plugin this file, ‘check_payment_vars.php’.

I see the code part :
” p>
<?php _e(‘Attention!’, ‘event_espresso’); ?><br />
<?php _e(‘If you wish to pay by check or money order, then please make note of the information above, and click to ‘, ‘event_espresso’); ?>
” title=”<?php _e(‘Complete your Registration’, ‘event_espresso’); ?>”>
<?php _e(‘Complete your Registration’, ‘event_espresso’); ?>

<div class=”clear”></div>
</p>


——————————————
I tried two things at the same time, and none worked; I’d settle for easy visible, quick solution:

Is it possible to change the ‘complete registration’ link into a big yellow sign written ‘Complete your registration’, or ‘ click to Complete your Registration’ ? You can go on my website, http://healingorchestra.org, at the bottom I have an example of the button, this one written with shortcode.

So, would the code accept some html span attributes at least, or something ?

I tried to duplicate that part of the code in the file [‘if you wish to..’ part] and change the text as I have both french and english users, but also I tried to change the ‘Complete Your Registration’ and maybe it was a class or I guess something important and not merely text because these two changes together just got me a blank website and I had to reupload the plugin using ftp [ and this is a problem because with secure server I won’t have ftp access for myself until next week, I had to get one of the admins to reupload for me thursday evenint at midnight.. ]. I was glad to not loose all my work.. !

And now the website is online and live, people are registering and I can’t afford to screw the website and get it offline. But I would really love to modify that code and

1, most important, get the ‘Complete Your Registration ‘ link way more visible [ my people are just sooooo not proficient event with simplicity ], with a big nice yellow button ?

2, modify safely this generic phrase “If you wish to pay by check..”

3, know if there is a way to duplicate the code so I get a french translation and an english one for these two element [ wish to pay, & complete your registration “or it would just break everything. Right now I wrote in the check instructions both french & english at the same time without any styling.

——————————-

I know this is some customizing I ask for, but I would truly benefit from a more visible ‘Complete’.. link, I guess it is not that complicated to implement, and if I knew more than the most basics in php / html code I would know how to do it myself 😉

‘ Obi-Wan Kenobi, You are my Only Hope ‘ !

Thanks for everything,

РS̩bastien


Dean

February 24, 2014 at 2:13 am

Hi,

1) Use CSS, something like this

.finalize_button {
padding: 10px;
background-color: yellow;
border: #000 thin solid;
border-radius: 5px;
}

will give you this http://take.ms/deurB

Simply add it to your themes style.css or even better to a plugin such as My Custom CSS (that way it avoids over writes on theme update).

2) Language files to the rescue! https://eventespresso.com/wiki/how-to-change-wording-with-poedit/

3) That’s harder. I would say that the best way to do it would be to edit the gateway file, duplicate it and hard code it in whichever language. EE isn’t well set up for dual language sites.

Start by copying the event-espresso/gateways/check folder or to wp-content/uploads/espresso

then in wp-content/uploads/espresso/check/ find the check_payment_vars.php

Near the bottom you will see

			<p>
				<strong><?php _e('Attention!', 'event_espresso'); ?></strong><br />
				<?php _e('If you wish to pay by check or money order, then please make note of the information above, and click to ', 'event_espresso'); ?>
				<a id="finalize_check" class="finalize_button allow-leave-page inline-link" href="<?php echo $finalize_link; ?>" title="<?php _e('Complete your Registration', 'event_espresso'); ?>">
					<?php _e('Complete your Registration', 'event_espresso'); ?>
				</a>
				<div class="clear"></div>
			</p>

Just copy and paste it below the original so you have 2 and then modify the text as needed.

You would end up with something like this http://take.ms/E9qt9

“Han shot first”


Sebastien Matte

February 24, 2014 at 8:14 am

Wow you’re fast.. ! Ok, I’ll try them later today, thanks ! — So if I implement the two ‘Attention’ lines, one in french and one in english, and I want to change the title of the ‘Finalize_button’ to something in french then it should be the first ‘Complete your Registration’ I change the one in the title code, and not the next one in php _e .. ? [ in the copy of code ] — I guess it should work then, an that the error I made thursday was to modify both the title and the php _ e ‘ COmplete your Registration ‘. ASAP I’m reading on web programming 🙂

You’re the best use money I spent on the internet, ever.

РS̩bastien


Josh

  • Support Staff

February 24, 2014 at 6:38 pm

Hi there,

You could change either phrase.

The support post ‘'Complete Registration' link in check gateway bigger ?’ 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