Support

Home Forums Event Espresso Premium Payment Overview Page (2)

Payment Overview Page (2)

Posted: September 11, 2013 at 12:10 pm

Viewing 3 reply threads


Elizabeth Sillen

September 11, 2013 at 12:10 pm

Hello Support Team,

I am only using the Check option on the payment overview page. How can it by default show the Check Payment Option div (check-payment-option-form-dv). Right now this div is hidden and the user must click the button to get the info which is potentially confusing for our users. Also, I would like to customize the “Attention! If you wish to pay by check…” Message. Can you tell me how I can change the wording?

Thanks in Advance.

  • This topic was modified 4 years, 8 months ago by Garth.


Josh

  • Support Staff

September 11, 2013 at 12:57 pm

Hi Elizabeth,

You can override the default behavior where it hides the div for each payment optioin by adding a bit of CSS to your custom stylesheet:

.hide-if-js {
display:block!important;
}

You could change the wording a few ways. One way being opening up check_payment_vars.php and editing the text there. Then you can copy the check folder to /wp-content/uploads/espresso/gateways to make sure your changes do not get overwritten on an update.

This way has its drawbacks, because if some changes get made to the check folder in the Event Espresso plugin down the road, your check folder will be “stuck” on the version you are now and could potentially cause some problems.

If you look at the text strings there around line 59 of /gateways/check/check_payment_vars.php you’ll notice that they wrapped in the _e function so they are translation ready.

This makes it possible to use a custom translation function, a plugin, or an edited copy of a translation file to change the wording without changing any Event Espresso code directly. This is recommended.

There is a guide on how to change wording here:

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


Elizabeth Sillen

September 11, 2013 at 2:54 pm

Sounds great, Thanks Josh. When I try to change line 60 of check_payment_vars in Poedit (via the method described in How to Change Wording with Poedit not directly in the php file which I can find), I searched “If you wish to pay by check or money order, then please make note of the information above, and click to” but I can’t find it in the .po file. Is this something that has been updated in the last 6 months? I found a similar line and updated it but it was incorrect. Thank you in advance.


Josh

  • Support Staff

September 11, 2013 at 3:53 pm

I’d advise changing the text string via a function if you can’t find it in the .po file.

Viewing 3 reply threads

The support post ‘Payment Overview Page (2)’ 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