Live Coding a Simple WooCommerce Checkout Currency Switcher

I definitely need a EUR/USD switcher in my Woo shop, and I’d love to try implementing it without a plugin. Let’s code it live!

Hosted by Rodolfo Melogli

Masterclass overview

My WooCommerce website sells plugins, courses, memberships, sponsorships in USD only – and that’s because WordPress developers are used to buy in that currency.

However, my PayPal and Stripe fees for currency conversion (so, when a EUR customer using a EUR card buys a USD product) are somewhat ridiculous and I’d love to decrease them.

Therefore I really, really, want to try implementing a simple currency switcher on my WooCommerce checkout page, offering to EU customers an optional switch to EUR (which means I’ll also need to convert prices to EUR based on a custom USD/EUR conversion rate).

In this class, we will first figure out how to add a custom checkout field (a checkbox in this case) and how to show it conditionally (only when the billing country uses EUR in this case). After that, if the checkbox is checked, we will create a function that will update the order currency accordingly, as well as changing the prices.

If there will be enough time, we will also try to get the correct daily exchange rate from an external API.

This is an amazing opportunity to see how a simple yet effective functionality can be coded, so that you can learn a new thing or two for your WooCommerce website or your WooCommerce clients. It’s also a great opportunity to hang out with like-minded professionals during the live class.

Video Recording & Materials

Sorry, this video recording is only visible to logged in Business Bloomer Club members.
If you are a member, please log in.
Otherwise, here is why you should join the Club.

What you’ll learn

How to add a custom checkout field, conditionally
How to set the currency on the Woo checkout page
How to update prices and reload the checkout with Ajax

Requirements

Basic knowledge of PHP and WordPress hooks

Upcoming masterclasses

BACKED BY:

AND OUR LATEST MEMBERS:

  • Jeff
  • Teo
  • Clark Kent
  • Bradley
  • Raymond
  • Olli
  • Jason
  • lehlogonolo
  • Georgi
  • Robert
  • Steffi
  • Mohamad Hazwan
  • Jacek
  • Rosanne
  • Ejayhan
  • Kees
  • Rene
  • Narayanan
  • Maik
  • Fabrizio
  • Iliana
  • Matej
  • Yonah
  • Kristoffer
  • Antonio
  • Soleh
  • Koen
  • Jason
  • Istvan
  • Sridhar
  • Milan
  • Dennis
  • Daniel
  • James
  • Supreet
  • Diego
  • Annette
  • Patrick
  • Karl
  • Simon
  • Tom
  • Stephen
  • MH
  • Guido
Leave a Reply

Your email address will not be published. Required fields are marked *