Support

Home Forums Event Espresso Premium Mandatory "state" in payment procedure

Mandatory "state" in payment procedure

Posted: March 17, 2016 at 10:17 am

Viewing 6 reply threads


Mie Dohn

March 17, 2016 at 10:17 am

Hi,
I have the same problem at stated in this issue: https://eventespresso.com/topic/problem-with-mandatory-state-field-in-pay-by-credit-card/

I just don’t know where to add this code:
add_filter( ‘FHEE__EE_Billing_Attendee_Info_Form__state_field’, ‘ee_billing_locale_text_field’, 10, 1 );
add_filter( ‘FHEE__EE_Billing_Attendee_Info_Form__country_field’, ‘ee_billing_locale_text_field’, 10, 1 );
function ee_billing_locale_text_field( $original_field ) {
return new EE_Text_Input(
array(
‘required’ => false, // make it optional
‘html_class’ => ‘ee-billing-qstn’ // make it a text field
));
}

Can anyone send me some screen dumps?

Thank you!


Lorenzo Orlando Caum

  • Support Staff

March 17, 2016 at 11:12 am

Hi Mie,

There is another way to handle that:

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

The blue text here should be copied into a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/):

http://cl.ly/2y2n3R0V2G1l

Where are you located and what payment method are you currently using?


Lorenzo


Mie Dohn

March 17, 2016 at 11:52 am

Hi again,
I’m located in Denmark and using PayPal pro


Mie Dohn

March 17, 2016 at 11:56 am

I don’t think I can manage to create a site specific plugin… I’m not that hard core… Is there an easier way to do it?
Or can you help me if I give you TeamViewer access?


Tony

  • Support Staff

March 18, 2016 at 4:06 am

Hi Mie,

Creating a site specific plugin is actually much easier than it sounds 🙂

I’ve created a plugin using the instructions Lorenzo provided above, you can download that here – http://take.ms/yW5Rj

Then simply install that from Dashboard -> Plugins -> Add new -> Upload plugin.


Mie Dohn

March 18, 2016 at 7:31 am

Hi Tony,
You were right; it wasn’t that hard at all. Thank you.
The “state” field is not mandatory anymore but the “country” field is still mandatory, and it only shows Denmark, USA and Canada. Is it possible to change this to non-mandatory as well?


Lorenzo Orlando Caum

  • Support Staff

March 18, 2016 at 9:39 am

Hi Mie,

Please see this video on how to disable the United States and Canada:

https://eventespresso.com/wiki/change-countries-used-event-espresso/#video

Next, I had a question about your location and PayPal Pro (PayPal Website Payments Pro).

According to the page below, PayPal Pro is available in the United States, Canada, and the United Kingdom:

https://developer.paypal.com/docs/classic/howto_product_matrix/

PayPal Pro also has a monthly service fee.

Could you confirm that you have a PayPal Pro account?


Lorenzo

Viewing 6 reply threads

The support post ‘Mandatory "state" in payment procedure’ 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