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 is only visible to logged in Business Bloomer Club members with a "CLASSES" or active "SPONSOR" pass.
If you joined already, please log in.
Otherwise, here are 5 reasons 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 NEW MEMBERS:

  • Marcus
  • IAN
  • Prabhaharan
  • Cito
  • Daniel
  • Sergio
  • Barry
  • Guido
  • Collins
  • JORGE
  • Robert
  • Stephen
  • Francesco
  • Aleksandar
  • Ron
  • Noëlle
  • Simon
  • Bill
  • Karolína
  • Emil
  • Daniele
  • Angelo
  • Patrick
  • James
  • Simon
  • Annette
  • Elke
  • Bob
  • Diego
  • Nick
  • Adedayo
  • Supreet
  • James
  • Daniel
  • Matt
Leave a Reply

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