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] = itemshopify-api-node:用于创建草稿订单的"^2.15.0",但是由于某种原因货币没有被设置。
我将加拿大的currency_code和货币设置为CAD,但订单草稿总是显示在AUD中(我的商店位于澳大利亚)。
我已经尝试了许多不同的设置草稿顺序的变体。就像设置:
currency_code, currency, currency_initials, cart_params: { currency_iso_name: "CAD" }, exchange_rate但是什么都不起作用
发布于 2018-12-05 21:15:57
根据Shopify documentation的说法,不可能允许顾客用不同的货币结账。你可以使用不同的应用程序或Shopify tutorial来显示不同货币的价格,但在结账页面上,将使用你商店的默认货币进行支付。
正如你已经提到的,它恢复为Shopify AUD,我假设这是你的Shopify商店的默认货币。到目前为止,你正在尝试实现的目标还不可能实现。
然而,Shopify Unite 2018宣布,Shopify将支持多种货币为Shopify Plus客户结账。
https://stackoverflow.com/questions/53625891
复制相似问题