【问题标题】:Specifying draft order currency Shopify指定草稿订单货币 Shopify
【发布时间】:2018-12-05 05:46:14
【问题描述】:
var draft = {
    line_items: [],
    applied_discount: '',
    currency_code: "CAD",
    currency: "CAD",
    email: "fake@email.com",
    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" 创建草稿订单,但由于某种原因未设置货币。

我将加拿大的currency_code 和货币设置为CAD,但草稿订单始终显示在AUD 中(我的商店位于澳大利亚)。

我尝试了许多不同的设置草稿顺序的变体。喜欢设置:

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

但没有任何效果

【问题讨论】:

    标签: node.js api shopify currency


    【解决方案1】:

    根据Shopify documentation,不允许客户以不同货币结账。您可以使用不同的应用程序或Shopify tutorial 以不同的货币显示价格,但在结帐页面上,将使用您商店的默认货币进行付款。

    正如您已经提到的,它会恢复为 AUD,我认为这是您 Shopify 商店的默认货币。你想要达到的目标目前还不可能。

    不过Shopify Unite 2018 宣布 Shopify 将支持 Shopify Plus 客户的多种货币结账。

    【讨论】:

      猜你喜欢
      • 2017-06-27
      • 1970-01-01
      • 2023-01-04
      • 2021-07-11
      • 2018-03-20
      • 2016-07-26
      • 1970-01-01
      • 2018-06-18
      • 1970-01-01
      相关资源
      最近更新 更多