Support

Home Forums Custom Files Add-on (EE3) multisite-payment-option

multisite-payment-option

Posted: July 8, 2014 at 5:36 pm


wayne christian

July 8, 2014 at 5:36 pm

hi all
i found this in the forum https://eventespresso.com/topic/multisite-payment-options/ by Chris Reynolds. My client has just dropped that they need tickets selling in euros and GBP. I have been doing tests with multi sites which seems viable although there have been comments about the app which is in integral part of it so need it working well. Also creating multiple ipn call back from paypal could be a problem (has anyone else done this?) if the referer is http://www.mysite.com/multiste1 will it automatically go to http://www.mysite.com/multiste1/transactions and update the payment?

Chris Reynolds im interested in your site which catered for this. Do you have a work flow of files to update to accomplish the same thing, a function / plugin or at least support or sell these modifications. Changing the currency symbol should be fine but am interested in where the paypal form function is to modify it to change the currency. Any support would be great

running Event Espresso – 3.1.36.5.P and WordPress 3.9.1

Thanks

Wayne


Dean

July 9, 2014 at 1:45 am

Hi Wayne,

Unfortunately Chris no longer works for Event Espresso, and his modifications weren’t documented or it was work separate from EE (it was a year ago so hard to say).

We do have a list of recommended developers that may be able to assist with this type of customisation – https://eventespresso.com/developers/event-espresso-pros/


wayne christian

July 9, 2014 at 4:20 am

thanks for your reply, Im happy to update and customise, I have bought some support but am not sure if this is covered.

I noticed 2 global variables $org_options and $paypal_settings = get_option(‘event_espresso_paypal_settings’); Can these be changed dynamically in some kind of function?

ie if (event_category_venue ==”paris”){
$paypal_settings[‘currency_format’]=”EUR”;
$org_options[‘organization_country’] =”FRA”
}
Would this then change the paypal form and $org_options[‘currency_symbol’] to EUR throughout the site?

Many thanks

WAYNE


Chris Reynolds

  • Support Staff

July 9, 2014 at 8:04 am

Hi Wayne —

That site wasn’t a multisite, so that’s the first potential roadblock. They had a site that was using a multilanguage plugin to provide different content for their two locations (one in England and one in Australia). They had already set up their categories so that if you were on an England version of their events page, you’d get a category list of all events at their England location and the same if you were on an Australia page. That was how the site was set up already, before I even touched it.

My job for them was to get the payment gateways to match up. Because Event Espresso supports multiple gateways, but you don’t want a British bank showing up as an option for your Australian courses and because you don’t want the currency symbol for GBP to be the default across the board for all courses (bc Event Espresso doesn’t support — or didn’t at the time, anyway — multiple simultaneous currencies). So I had to basically hijack the payment gateway process to say “if we’re in a category that’s all England-based courses, show GBP as the currency AND use this payment gateway over here” and “if we’re in a category that’s all Australia-based courses, show AUD as the currency AND use this other gateway, over there.”

Unfortunately, I don’t have any documentation, but I may have the files lying around. However, if what you’re looking to do is multisite-based, this solution may not be the right one for you.


wayne christian

July 9, 2014 at 9:26 am

Hi Chris thanks for the speedy reply. I only set up multi site as a test. The current site is a single site and what you have explained seems perfect. We have english and french and need to change the currency symbol and make sure it sets the paypal form currency to euros so no exchange rate differences. We currently have separate the events by venues and check to see which event the venue is at either London or paris.
I assume if you can swap payment gateways the paypal form can be dynamically changed?

Many thanks

Wayne


Sidney Harrell

July 10, 2014 at 11:26 am

If you are using WPML for different languages, then I just did some work to make EE3 work with WPML. I put the work in our development branch of EE3, (3.1.38) so you’ll need a copy of that. Are you trying to use two different gateways, (ie, Paypal for one language, and Authnet for the other language), or the same gateway with different credentials and currency for the two languages?


wayne christian

July 10, 2014 at 2:58 pm

Hi Sidney, We are are using the same gateway, paypal. I have actually managed to check the venue and change the currency in paypal,I have also managed to change the currency symbol, but this relies on the finding the venue for each event, but feel mine is a dirty hack. id love to see your branch, its funny as i am literally about to implement WPML so sounds amazing!


Sidney Harrell

July 14, 2014 at 12:05 pm

I’ve emailed you the file. You probably know already that you can move the gateway to uploads/espresso/gateways to preserve customizations from updates. I would take a look at like 13 of paypal_vars.php. You can do something similar to switch the paypal id being used based on the current WPML language.

The support post ‘multisite-payment-option’ 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