user10549725
user10549725

Reputation: 41

Specifying draft order currency Shopify

var draft = {
    line_items: [],
    applied_discount: '',
    currency_code: "CAD",
    currency: "CAD",
    email: "[email protected]",
    shipping_address: {
        first_name: "John"
        last_name: "Smith"
    },
    billing_address: {
        first_name: "John"
        last_name: "Smith"
    },
}

    var item = {
        variant_id: request.query.variant[i],
        product_id: request.query.product[i],
        quantity: quantity,
        custom: true,
    }

    draft.line_items[0] = item

shopify-api-node: "^2.15.0" to create a draft order but the currency for some reason isn't getting set.

I'm setting the currency_code and currency to CAD for Canada but the draft orders always appears in AUD (my store is located in Australia).

I've tried many different variations of setting the draft order. Like setting:

currency_code, currency, currency_initials, cart_params: { currency_iso_name: "CAD" }, exchange_rate

But nothing works

Upvotes: 1

Views: 550

Answers (1)

Bilal Akbar
Bilal Akbar

Reputation: 4930

According to Shopify documentation, it is not possible to allow customers to checkout in different currencies. You can use different apps or a Shopify tutorial to display prices in different currencies but on the checkout page, default currency of your store will be used for payment.

As you already mentioned that it reverts to AUD and I assume that is the default currency of your Shopify store. What you are trying to achieve is not possible as of yet.

However Shopify Unite 2018 announced that Shopify will support multiple currencies for checkout for Shopify Plus customers.

Upvotes: 1

Related Questions