Coder Social home page Coder Social logo

Comments (3)

craigchristenson avatar craigchristenson commented on August 11, 2024

The extension uses your woocommerce shop currency on all transactions. According to the WooCommerce documentation, you can only price in 1 currency unless you are using a plugin. If you are using a plugin to get multi-currency support please let me know which one and I will see if I can add support for you.

from woocommerce-2checkout-api.

dansanti avatar dansanti commented on August 11, 2024

hi! i'm using this plugin https://wordpress.org/plugins/woocommerce-product-price-based-on-countries/

with paypal and others payment gateway, works fine.

from woocommerce-2checkout-api.

Jon007 avatar Jon007 commented on August 11, 2024

Yes, orders do have a currency, the order currency should be used rather than the shop currency for plugin compatibility.
WooCommerce Stripe gateway etc will use:
$order->get_currency()

... obviously if no currency switcher is installed the order currency will normally be the same as the shop currency, but it is important to always use the order currency. For example the shop currency could be changed, but the order currency of existing orders (and any subsequent refunds) should remain in the original currency.

from woocommerce-2checkout-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.