Liquid、JavaScript、主题、销售渠道。
Graphql >> discountCodeBasicCreate
指定用户部分
customerSelection: {
"customers": {
"add": "gid://shopify/Customer/xxx"
}
}
我尝试过 "add": ["gid://shopify/Customer/xxx"]
都是错误 {"message":"Parse error on \"customers\" (STRING) at [9, 7]
这个地方应该怎么写啊
content-type 还是这个application/graphql 这个没有改~~
是shopify-cli 下载的PHP
我说的改是 query 里面 那一个小部分修改
不是修改 content-type
意思就是我如果里面的内容是应用于全部客户, 可以成功返回, 但是如果我指定特定用户使用就错误,
我在想是不是我的query 指定特定用户得那一小段内容有问题~~正确的格式应该是什么样子的
是参数使用方式错误
$graphQL = <<<Query mutation ($input: CustomerInput!) { customerCreate(input: $input) { customer { id displayName } userErrors { field message } } } Query; $variables = [ "input" => [ "firstName" => "Greg", "lastName" => "Variables", "email" => "gregvariables@teleworm.us" ] ] $shopify->GraphQL->post($graphQL, null, null, $variables);
类似找各种参数方式就可以了
想象一下你作为消费者第一次访问 DTC(直接面对消费者的品牌)网站时,你对这个品牌、产品质量或是用户满意度一无所知。跟其他消费者一样,你很可能会希望透过其他消费者的评价,寻求符合自...
By gina826 Sep 17, 2023持续跟踪您的 Shopify Payments 收入款项有时可能会有一点挑战,尤其是当您的商店每天收到大量订单和付款时。 丢失款项的情况并不常见,而且通常是有另一些因素导致的。我们...
By Alice_Z Aug 29, 2023亲爱的用户, 我们衷心感谢在过去几年中,利用我们的微信支持渠道的所有用户。您的参与和反馈对我们来说非常宝贵。 经过慎重考虑,我们决定于8月25日停止微信支持渠道。因此...
By Jasonh Aug 15, 2023